/* === INDO-DUTCH LAB SHARED STYLES === */

:root {
  --bg: #fbfaf7;
  --bg-elev: #ffffff;
  --bg-soft: #f4f0e8;
  --ink: #0a0a0a;
  --ink-soft: #555555;
  --ink-faint: #999999;
  --rule: rgba(10, 10, 10, 0.08);
  --rule-soft: rgba(10, 10, 10, 0.04);
  --accent: #c9501e;     /* warm earth — between saffron and Dutch orange */
  --accent-deep: #a8410f;
  --accent-soft: #f5e9e0;

  --flag-orange: #ff6b1a;   /* punchier than literal saffron, more visible on cream */
  --flag-green: #138808;
  --flag-red: #ae1c28;
  --flag-blue: #21468b;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}
.wrap-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 32px;
}

/* === NAV === */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 250, 247, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-brand {
  font-family: 'Newsreader', serif;
  font-weight: 400;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.nav-brand em {
  font-style: italic;
  color: var(--accent);
}
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--ink); }
.nav-links a.active {
  font-weight: 500;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

/* === HERO (variant: home) === */
.hero {
  padding: 140px 0 120px;
  text-align: center;
  position: relative;
}
.hero-eyebrow {
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 32px;
  font-weight: 500;
}
.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '·';
  margin: 0 12px;
  color: var(--ink-faint);
}
h1 {
  font-family: 'Newsreader', serif;
  font-weight: 300;
  font-size: clamp(54px, 8vw, 104px);
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin-bottom: 32px;
  color: var(--ink);
}
h1 em {
  font-style: italic;
  font-weight: 300;
}
.hero-sub {
  font-family: 'Newsreader', serif;
  font-weight: 300;
  font-size: clamp(20px, 2.5vw, 26px);
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto 56px;
  letter-spacing: -0.01em;
}

/* === HERO ACCENT (the flag dots, now bolder) === */
.hero-accent {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 48px;
}
.hero-accent span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}
.hero-accent .d1 { background: var(--flag-orange); }
.hero-accent .d2 { background: #ffffff; border: 1px solid rgba(10,10,10,0.15); }
.hero-accent .d3 { background: var(--flag-green); }
.hero-accent .d4 { background: var(--flag-red); }
.hero-accent .d5 { background: #ffffff; border: 1px solid rgba(10,10,10,0.15); }
.hero-accent .d6 { background: var(--flag-blue); }

/* === CTA BUTTON === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--bg);
  padding: 14px 28px;
  border-radius: 100px;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}
.btn:hover {
  background: var(--accent);
  transform: translateY(-1px);
}
.btn-arrow {
  transition: transform 0.2s;
}
.btn:hover .btn-arrow {
  transform: translateX(3px);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* === PAGE HEADER (for non-home pages) === */
.page-head {
  padding: 100px 0 60px;
  text-align: center;
  border-bottom: 1px solid var(--rule);
}
.page-eyebrow {
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-weight: 500;
}
.page-title {
  font-family: 'Newsreader', serif;
  font-weight: 300;
  font-size: clamp(48px, 6vw, 84px);
  line-height: 1.0;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}
.page-title em { font-style: italic; }
.page-lede {
  font-family: 'Newsreader', serif;
  font-weight: 300;
  font-size: 22px;
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto;
  letter-spacing: -0.005em;
}

/* === SECTIONS === */
section {
  padding: 100px 0;
}
section.with-border {
  border-top: 1px solid var(--rule);
}
.section-eyebrow {
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
  font-weight: 500;
}
.section-title {
  font-family: 'Newsreader', serif;
  font-weight: 300;
  font-size: clamp(40px, 5.5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.section-title em { font-style: italic; }
.section-lede {
  font-family: 'Newsreader', serif;
  font-weight: 300;
  font-size: 22px;
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 560px;
  margin-bottom: 48px;
  letter-spacing: -0.005em;
}

/* === HOME: WHAT WE DO === */
.what-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.what-card {
  padding: 48px 32px;
  border-right: 1px solid var(--rule);
}
.what-card:last-child { border-right: none; }
.what-card-num {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 18px;
  color: var(--accent);
  margin-bottom: 16px;
}
.what-card h3 {
  font-family: 'Newsreader', serif;
  font-weight: 400;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.what-card p {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.55;
}

/* === ARTICLES LIST === */
.articles-disclaimer {
  background: var(--bg-soft);
  border-left: 3px solid var(--accent);
  padding: 20px 24px;
  border-radius: 4px;
  margin-bottom: 48px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.articles-disclaimer strong {
  color: var(--ink);
  font-weight: 500;
}

.articles-list {
  border-top: 1px solid var(--rule);
}
.article-item {
  padding: 32px 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 32px;
  align-items: baseline;
  text-decoration: none;
  color: inherit;
  transition: padding-left 0.3s, background 0.3s;
}
.article-item:hover {
  padding-left: 16px;
  background: linear-gradient(90deg, var(--bg-soft) 0%, transparent 100%);
}
.article-date {
  font-size: 13px;
  color: var(--ink-faint);
  font-feature-settings: "tnum";
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.article-title {
  font-family: 'Newsreader', serif;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.3;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.article-summary {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-top: 6px;
  max-width: 580px;
}
.article-source {
  font-size: 13px;
  color: var(--ink-faint);
  font-style: italic;
  white-space: nowrap;
}
.article-source::after {
  content: ' ↗';
  font-style: normal;
}
.articles-empty {
  padding: 64px 0;
  text-align: center;
  color: var(--ink-faint);
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-size: 18px;
}

/* === VIDEOS === */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.video-card {
  aspect-ratio: 16/9;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 28px;
  transition: transform 0.3s;
}
.video-card.placeholder {
  background: linear-gradient(135deg, var(--accent-soft) 0%, #f0e4dc 100%);
  border: 1px dashed rgba(201, 80, 30, 0.25);
  cursor: default;
}
.video-card.placeholder:hover { transform: none; }
.video-card-content {
  position: relative;
  z-index: 2;
}
.video-card-eyebrow {
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 500;
}
.video-card-title {
  font-family: 'Newsreader', serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.video-card.placeholder .video-card-title {
  color: var(--ink-faint);
  font-style: italic;
  font-weight: 300;
}

/* === ABOUT PAGE === */
.about-story {
  font-family: 'Newsreader', serif;
  font-weight: 300;
  font-size: 22px;
  line-height: 1.6;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.about-story p {
  margin-bottom: 32px;
}
.about-story p:last-child { margin-bottom: 0; }
.about-story em {
  font-style: italic;
  color: var(--accent);
}
.about-story strong {
  font-weight: 500;
}

.founders-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.founder-card {
  padding: 32px 24px;
  background: var(--bg-elev);
  border-radius: 16px;
  border: 1px solid var(--rule);
}
.founder-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Newsreader', serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--accent);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.founder-name {
  font-family: 'Newsreader', serif;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.015em;
  margin-bottom: 4px;
}
.founder-tag {
  font-size: 13px;
  color: var(--ink-faint);
  margin-bottom: 16px;
}
.founder-bio {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* === MISSION CARD === */
.mission-card {
  background: var(--ink);
  color: var(--bg);
  border-radius: 24px;
  padding: 64px 48px;
  text-align: center;
}
.mission-card h2 {
  font-family: 'Newsreader', serif;
  font-weight: 300;
  font-size: clamp(36px, 4.5vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}
.mission-card h2 em {
  font-style: italic;
  color: var(--flag-orange);
}
.mission-card p {
  font-family: 'Newsreader', serif;
  font-weight: 300;
  font-size: 20px;
  line-height: 1.5;
  color: rgba(251, 250, 247, 0.8);
  max-width: 580px;
  margin: 0 auto;
}

/* === DISCLAIMERS === */
.legal-callout {
  background: var(--bg-soft);
  border-radius: 12px;
  padding: 28px 32px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.legal-callout strong {
  color: var(--ink);
  font-weight: 500;
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* === FORMS === */
.form-section {
  background: var(--bg-elev);
}
.form-card {
  max-width: 580px;
  margin: 0 auto;
}
.form-card .section-eyebrow,
.form-card .section-title,
.form-card .section-lede { text-align: center; }
.form-card .section-lede { margin-left: auto; margin-right: auto; margin-bottom: 48px; }

.form-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}
.form-field {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 18px 22px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--ink);
  transition: border-color 0.2s, background 0.2s;
  outline: none;
}
.form-field::placeholder { color: var(--ink-faint); }
.form-field:focus {
  border-color: var(--ink);
  background: var(--bg-elev);
}
.form-field-row {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}
.form-field-row .form-field { flex: 1; }
textarea.form-field {
  min-height: 120px;
  resize: vertical;
  font-family: 'Inter', sans-serif;
}
.form-label {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 8px;
  font-weight: 500;
}
.form-select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 18px 22px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--ink);
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3e%3cpath fill='none' stroke='%23999' stroke-width='1.5' d='M1 1l5 5 5-5'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 22px center;
  cursor: pointer;
}
.form-submit {
  width: 100%;
  background: var(--ink);
  color: var(--bg);
  border: none;
  border-radius: 12px;
  padding: 18px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  margin-top: 16px;
}
.form-submit:hover {
  background: var(--accent);
  transform: translateY(-1px);
}
.form-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.form-msg {
  margin-top: 16px;
  font-size: 14px;
  color: var(--accent);
  min-height: 20px;
  text-align: center;
}
.form-msg.success { color: #2d7a3a; }
.form-msg.error { color: #c5392a; }
.form-note {
  margin-top: 24px;
  font-size: 13px;
  color: var(--ink-faint);
  text-align: center;
  line-height: 1.5;
}

/* === CONTACT PAGE: EMAILS GRID === */
.emails-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.email-card {
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 24px;
  transition: border-color 0.2s, transform 0.2s;
}
.email-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.email-card-name {
  font-family: 'Newsreader', serif;
  font-weight: 400;
  font-size: 18px;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.email-card-role {
  font-size: 12px;
  color: var(--ink-faint);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.email-card-link {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
  word-break: break-all;
}
.email-card-link:hover {
  text-decoration: underline;
}

/* === FOOTER === */
footer {
  background: var(--ink);
  color: var(--bg);
  padding: 80px 0 40px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
.footer-brand-title {
  font-family: 'Newsreader', serif;
  font-weight: 300;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.footer-brand-title em {
  font-style: italic;
  color: var(--flag-orange);
}
.footer-tag {
  color: rgba(251, 250, 247, 0.6);
  font-size: 15px;
  max-width: 360px;
  margin-bottom: 24px;
  line-height: 1.55;
}
.footer-col-head {
  font-size: 12px;
  color: rgba(251, 250, 247, 0.5);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 500;
}
.footer-col-link {
  display: block;
  color: var(--bg);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-col-link:hover { color: var(--flag-orange); }
.footer-emails {
  margin-top: 16px;
}
.footer-emails-label {
  font-size: 12px;
  color: rgba(251, 250, 247, 0.5);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.footer-email-link {
  display: block;
  color: rgba(251, 250, 247, 0.8);
  text-decoration: none;
  font-size: 13px;
  margin-bottom: 4px;
  transition: color 0.2s;
}
.footer-email-link:hover { color: var(--flag-orange); }

.footer-legal {
  background: rgba(251, 250, 247, 0.04);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 32px;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(251, 250, 247, 0.55);
}
.footer-legal strong {
  color: rgba(251, 250, 247, 0.85);
  font-weight: 500;
}

.footer-bottom {
  border-top: 1px solid rgba(251, 250, 247, 0.1);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(251, 250, 247, 0.5);
}

/* === RESPONSIVE === */
@media (max-width: 800px) {
  .wrap, .wrap-narrow, .nav-inner { padding-left: 20px; padding-right: 20px; }
  .nav-links { gap: 16px; font-size: 13px; }
  .hero { padding: 80px 0 80px; }
  section { padding: 60px 0; }
  .page-head { padding: 60px 0 40px; }
  .what-grid { grid-template-columns: 1fr; }
  .what-card { border-right: none; border-bottom: 1px solid var(--rule); }
  .what-card:last-child { border-bottom: none; }
  .article-item { grid-template-columns: 1fr; gap: 6px; padding: 24px 0; }
  .article-source { order: -1; }
  .videos-grid { grid-template-columns: 1fr; }
  .founders-grid { grid-template-columns: repeat(2, 1fr); }
  .emails-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .form-field-row { flex-direction: column; gap: 16px; }
  .mission-card { padding: 40px 28px; }
}

@media (max-width: 500px) {
  .founders-grid { grid-template-columns: 1fr; }
  .nav-links li:nth-child(n+4) { display: none; }
}

/* === ANIMATIONS === */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
