:root {
  /* Base palette — warm, editorial */
  --bg: #F6F3EC;           /* warm off-white */
  --bg-card: #FFFFFF;
  --bg-sunken: #EFEBE2;
  --ink: #1A1A17;          /* deep charcoal, not pure black */
  --ink-2: #3D3B35;
  --muted: #6E6A5F;
  --rule: #D9D3C2;
  --rule-soft: #E8E3D6;

  /* Primary — deep Canadian evergreen */
  --primary: #1F3A2E;
  --primary-ink: #0E2118;
  --primary-hover: #16291F;

  /* Accents — coral (Brazil warmth), sky, maple */
  --coral: #E4572E;
  --coral-soft: #F6C9B5;
  --sky: #2E6AA8;
  --maple: #C33A2B;
  --sun: #E8B84A;

  --accent: var(--coral);
  --accent-soft: var(--coral-soft);

  /* Type */
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Rhythm */
  --radius: 6px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 0 rgba(26,26,23,0.04), 0 1px 2px rgba(26,26,23,0.04);
  --shadow-md: 0 2px 0 rgba(26,26,23,0.04), 0 10px 30px -12px rgba(26,26,23,0.16);
}

[data-accent="sky"]   { --accent: var(--sky);   --accent-soft: #CFE0F1; }
[data-accent="maple"] { --accent: var(--maple); --accent-soft: #F1C8C3; }
[data-accent="sun"]   { --accent: var(--sun);   --accent-soft: #F6E3B0; }
[data-accent="coral"] { --accent: var(--coral); --accent-soft: var(--coral-soft); }

[data-density="compact"] { --row: 12px; --sec: 80px; }
[data-density="comfortable"] { --row: 16px; --sec: 112px; }
[data-density="spacious"] { --row: 20px; --sec: 144px; }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
  letter-spacing: -0.005em;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4 { margin: 0; font-weight: 400; letter-spacing: -0.02em; }
p { margin: 0; }

/* Utility */
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.container-tight { max-width: 960px; margin: 0 auto; padding: 0 40px; }

.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; }
.mono  { font-family: var(--mono); font-weight: 500; letter-spacing: 0.02em; }
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow .dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); margin-right: 8px; vertical-align: 1px;
}

.rule { height: 1px; background: var(--rule); width: 100%; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 14px; font-weight: 500;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary); color: #F6F3EC;
}
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--rule);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-accent {
  background: var(--accent); color: #fff;
}
.btn-accent:hover { filter: brightness(0.95); }
.btn-lg { padding: 14px 22px; font-size: 15px; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px 5px 8px;
  border-radius: 999px;
  background: var(--bg-sunken);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  border: 1px solid var(--rule-soft);
}
.pill .bullet {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(246,243,236,0.82);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--rule-soft);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-left { display: flex; align-items: center; gap: 44px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.02em; font-size: 17px; }
.brand-mark {
  width: 26px; height: 26px; border-radius: 7px;
  background: var(--primary); color: #F6F3EC;
  display: grid; place-items: center; font-family: var(--serif); font-size: 18px;
  position: relative; overflow: hidden;
}
.brand-mark::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 8px; background: var(--accent);
}
.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--ink-2); }
.nav-links a { position: relative; padding: 6px 0; white-space: nowrap; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -22px; height: 2px; background: var(--ink);
}
.nav-right { display: flex; align-items: center; gap: 14px; font-size: 14px; }
.lang { color: var(--muted); white-space: nowrap; }
.lang:hover { color: var(--ink); }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .lang, .nav-right .btn-ghost { display: none; }
  .nav-inner { height: 56px; }
  .nav-left { gap: 0; }
}

/* Real logo in nav */
.brand-logo {
  height: 28px; width: auto; display: block;
  mix-blend-mode: multiply; /* white bg vanishes on warm off-white nav */
}

/* Editorial image strip */
.editorial-strip {
  width: 100%; height: 380px; overflow: hidden;
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
}
.editorial-strip img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 25%;
  display: block;
}

/* Sections */
.section { padding: var(--sec) 0; }
.section-sm { padding: calc(var(--sec) * 0.55) 0; }

.section-head {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: end;
  margin-bottom: 56px;
}
.section-head h2 { font-family: var(--serif); font-size: clamp(40px, 4.6vw, 64px); line-height: 1.02; }
.section-head .lede { color: var(--muted); font-size: 17px; max-width: 52ch; }

@media (max-width: 880px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; }
  .container, .container-tight { padding: 0 24px; }
}

/* Hero */
.hero {
  padding: 48px 0 calc(var(--sec) * 0.9);
  position: relative; overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 80px; align-items: start;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(56px, 7.4vw, 112px);
  line-height: 0.96;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.hero h1 em { font-style: italic; color: var(--primary); }
.hero h1 .accent { color: var(--accent); font-style: italic; }
.hero-sub {
  margin-top: 28px; max-width: 46ch; font-size: 18px; color: var(--ink-2); line-height: 1.5;
}
.hero-cta { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta {
  margin-top: 44px; display: flex; gap: 28px; flex-wrap: wrap; color: var(--muted);
  font-size: 13px;
}
.hero-meta strong { color: var(--ink); font-weight: 500; }

/* Hero right: flag-card */
.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  position: relative;
}
.hero-card-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 14px; border-bottom: 1px dashed var(--rule);
  font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted);
}
.hero-card-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--rule-soft);
  font-size: 14px;
}
.hero-card-row:last-child { border-bottom: 0; }
.hero-card-row .k { color: var(--muted); font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.hero-card-row .v { font-weight: 500; }
.hero-card-row .v.big { font-family: var(--serif); font-size: 28px; letter-spacing: -0.01em; }

.hero-foot {
  margin-top: 18px; display: flex; gap: 8px; align-items: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.hero-foot .live {
  display: inline-flex; align-items: center; gap: 6px; color: var(--primary);
}
.hero-foot .live::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--primary);
  box-shadow: 0 0 0 3px rgba(31,58,46,0.14); animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: 0.5 } }

.flag-stripe {
  margin-top: 18px; height: 40px; border-radius: 8px; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr 1fr;
}
.flag-stripe div:nth-child(1) { background: var(--primary); }
.flag-stripe div:nth-child(2) { background: var(--sun); }
.flag-stripe div:nth-child(3) { background: var(--accent); }

/* Ticker */
.ticker {
  border-top: 1px solid var(--rule-soft); border-bottom: 1px solid var(--rule-soft);
  padding: 18px 0; overflow: hidden;
  background: var(--bg);
}
.ticker-track {
  display: flex; gap: 56px; white-space: nowrap; animation: slide 40s linear infinite;
  font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted);
}
.ticker-track span { display: inline-flex; align-items: center; gap: 10px; }
.ticker-track span::before { content: "✦"; color: var(--accent); }
@keyframes slide {
  from { transform: translateX(0) }
  to   { transform: translateX(-50%) }
}

/* Stats */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.stats > div {
  padding: 36px 28px; border-right: 1px solid var(--rule-soft);
}
.stats > div:last-child { border-right: 0; }
.stat-num {
  font-family: var(--serif); font-size: 56px; line-height: 1; letter-spacing: -0.02em;
}
.stat-num small { font-size: 24px; color: var(--muted); margin-left: 2px; }
.stat-label { margin-top: 10px; font-size: 13px; color: var(--muted); }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-sub { font-size: 16px; }
  .editorial-strip { height: 240px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > div:nth-child(2) { border-right: 0; }
  .stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--rule-soft); }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 48px; }
  .field-row { grid-template-columns: 1fr; }
  .modal { padding: 24px 20px; }
  .cta-band { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* How-to steps */
.steps { display: grid; gap: 0; }
.step {
  display: grid; grid-template-columns: 120px 1fr 1fr; gap: 48px;
  padding: 40px 0;
  border-top: 1px solid var(--rule);
  align-items: start;
  transition: background .2s ease;
}
.step:last-child { border-bottom: 1px solid var(--rule); }
.step:hover { background: rgba(255,255,255,0.5); }
.step-num {
  font-family: var(--serif); font-size: 64px; line-height: 0.9;
  color: var(--ink);
  display: flex; align-items: baseline; gap: 6px;
}
.step-num span { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: 0.1em; }
.step h3 { font-family: var(--serif); font-size: 32px; line-height: 1.1; }
.step .desc { color: var(--muted); font-size: 15px; max-width: 48ch; }
.step-tag {
  display: inline-block; margin-top: 12px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
}

@media (max-width: 880px) {
  .step { grid-template-columns: 1fr; gap: 12px; padding: 28px 0; }
  .step-num { font-size: 44px; }
}

/* Talent grid (what's required) */
.talent {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.talent-card {
  background: var(--bg-card);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.talent-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--rule); }
.talent-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--bg-sunken);
  display: grid; place-items: center;
  margin-bottom: 20px;
}
.talent-card h3 { font-family: var(--serif); font-size: 22px; line-height: 1.2; margin-bottom: 8px; }
.talent-card p { color: var(--muted); font-size: 14.5px; }

@media (max-width: 880px) { .talent { grid-template-columns: 1fr; } }

/* Roadmap */
.roadmap {
  background: var(--bg-sunken);
  padding: 96px 0;
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
}
.roadmap-track {
  position: relative;
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.roadmap-line {
  position: absolute; top: 14px; left: 4%; right: 4%;
  height: 2px; background: repeating-linear-gradient(90deg, var(--rule) 0 6px, transparent 6px 12px);
}
.roadmap-step {
  cursor: pointer;
  padding-top: 40px;
  position: relative;
}
.roadmap-step::before {
  content: ""; position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--bg-sunken); border: 2px solid var(--rule);
  transition: all .2s ease;
}
.roadmap-step.done::before { background: var(--primary); border-color: var(--primary); }
.roadmap-step.active::before {
  background: var(--accent); border-color: var(--accent);
  box-shadow: 0 0 0 6px rgba(228,87,46,0.15);
}
.roadmap-step .week {
  font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted);
}
.roadmap-step.active .week { color: var(--accent); }
.roadmap-step h4 { font-family: var(--serif); font-size: 20px; margin-top: 6px; }
.roadmap-step p { color: var(--muted); font-size: 13px; margin-top: 6px; }

.roadmap-detail {
  margin-top: 40px;
  background: var(--bg-card);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start;
  min-height: 200px;
}
.roadmap-detail h3 { font-family: var(--serif); font-size: 32px; line-height: 1.1; margin-bottom: 10px; }
.roadmap-detail .meta { color: var(--accent); font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 14px; }
.roadmap-detail .bullets { display: grid; gap: 10px; color: var(--ink-2); font-size: 15px; }
.roadmap-detail .bullets li { list-style: none; padding-left: 22px; position: relative; }
.roadmap-detail .bullets li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 10px; height: 1px; background: var(--accent);
}

@media (max-width: 880px) {
  .roadmap-track { grid-template-columns: 1fr; gap: 8px; }
  .roadmap-line { display: none; }
  .roadmap-step { padding-top: 0; padding-left: 28px; padding-bottom: 16px; border-left: 2px dashed var(--rule); }
  .roadmap-step::before { top: 2px; left: -9px; transform: none; }
  .roadmap-detail { grid-template-columns: 1fr; }
}

/* Stories */
.stories {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.story {
  background: var(--bg-card);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex; flex-direction: column; gap: 20px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.story:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.story .quote { font-family: var(--serif); font-size: 22px; line-height: 1.3; letter-spacing: -0.01em; }
.story .quote::before { content: "“"; font-family: var(--serif); font-size: 64px; line-height: 0; vertical-align: -22px; color: var(--accent); margin-right: 4px; }
.story .byline { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--rule-soft); }
.story .avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #F6F3EC; display: grid; place-items: center;
  font-family: var(--serif); font-size: 18px;
}
.story .byline .name { font-weight: 500; font-size: 14px; }
.story .byline .role { color: var(--muted); font-size: 12.5px; font-family: var(--mono); letter-spacing: 0.02em; }

@media (max-width: 880px) { .stories { grid-template-columns: 1fr; } }

/* Logo row */
.logos {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 0;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.logos > div {
  padding: 28px; text-align: center;
  border-right: 1px solid var(--rule-soft);
  font-family: var(--serif); font-size: 20px; color: var(--muted);
  letter-spacing: -0.01em;
  transition: color .2s ease, background .2s ease;
}
.logos > div:last-child { border-right: 0; }
.logos > div:hover { color: var(--ink); background: var(--bg-card); }

@media (max-width: 880px) {
  .logos { grid-template-columns: repeat(2, 1fr); }
  .logos > div:nth-child(2n) { border-right: 0; }
  .logos > div:not(:nth-last-child(-n+2)) { border-bottom: 1px solid var(--rule-soft); }
}

/* FAQ */
.faq-item {
  border-top: 1px solid var(--rule);
  padding: 28px 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--rule); }
.faq-q {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  width: 100%; text-align: left; padding: 0;
}
.faq-q h3 { font-family: var(--serif); font-size: 26px; line-height: 1.15; }
.faq-toggle {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--rule);
  display: grid; place-items: center;
  transition: transform .3s ease, background .2s ease, border-color .2s ease;
  flex-shrink: 0;
}
.faq-q:hover .faq-toggle { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.faq-item.open .faq-toggle { transform: rotate(45deg); background: var(--accent); color: #fff; border-color: var(--accent); }
.faq-a {
  overflow: hidden; max-height: 0; transition: max-height .4s ease, margin .3s ease;
  color: var(--ink-2); font-size: 15.5px; line-height: 1.55; max-width: 68ch;
}
.faq-item.open .faq-a { max-height: 600px; margin-top: 16px; }

/* CTA band */
.cta-band {
  background: var(--primary); color: #F6F3EC;
  padding: 96px 0;
  position: relative; overflow: hidden;
}
.cta-band h2 { font-family: var(--serif); font-size: clamp(48px, 6vw, 88px); line-height: 1.02; }
.cta-band h2 em { color: var(--accent); font-style: italic; }
.cta-band p { color: rgba(246,243,236,0.7); margin-top: 20px; max-width: 52ch; font-size: 18px; }
.cta-band .btn-primary { background: var(--accent); color: #fff; }
.cta-band .btn-primary:hover { background: var(--accent); filter: brightness(1.08); }
.cta-band .btn-ghost { border-color: rgba(246,243,236,0.3); color: #F6F3EC; }
.cta-band .btn-ghost:hover { border-color: #F6F3EC; }
.cta-band-actions { margin-top: 40px; display: flex; gap: 12px; flex-wrap: wrap; }
.cta-watermark {
  position: absolute; right: -40px; bottom: -80px; font-family: var(--serif); font-size: 420px; line-height: 0.8;
  color: rgba(246,243,236,0.04); font-style: italic; pointer-events: none; user-select: none;
}

/* Footer */
.footer {
  background: var(--ink); color: rgba(246,243,236,0.7);
  padding: 72px 0 36px;
}
.footer a { color: rgba(246,243,236,0.7); }
.footer a:hover { color: #F6F3EC; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
.footer-col h4 { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: rgba(246,243,236,0.45); margin-bottom: 18px; font-weight: 500; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14px; }
.footer-brand h3 {
  font-family: var(--serif); font-size: 40px; line-height: 1; color: #F6F3EC;
  margin-bottom: 16px; letter-spacing: -0.02em;
}
.footer-brand p { max-width: 38ch; font-size: 14px; line-height: 1.55; }
.footer-bottom {
  margin-top: 72px; padding-top: 24px;
  border-top: 1px solid rgba(246,243,236,0.1);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
  color: rgba(246,243,236,0.45);
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* Modal (apply flow) */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(14, 33, 24, 0.5);
  backdrop-filter: blur(6px);
  z-index: 100; display: grid; place-items: center; padding: 24px;
  animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
.modal {
  background: var(--bg-card);
  border-radius: 16px;
  width: 100%; max-width: 560px;
  padding: 32px;
  position: relative;
  box-shadow: 0 30px 80px -20px rgba(14,33,24,0.5);
  animation: pop .25s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes pop {
  from { opacity: 0; transform: translateY(14px) scale(.98) }
  to   { opacity: 1; transform: translateY(0) scale(1) }
}
.modal-close {
  position: absolute; top: 18px; right: 18px;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; color: var(--muted);
  transition: background .2s ease, color .2s ease;
}
.modal-close:hover { background: var(--bg-sunken); color: var(--ink); }
.modal h3 { font-family: var(--serif); font-size: 32px; line-height: 1.1; margin-bottom: 8px; }
.modal .sub { color: var(--muted); font-size: 14.5px; margin-bottom: 24px; }
.modal-steps { display: flex; gap: 8px; margin-bottom: 24px; }
.modal-steps div {
  flex: 1; height: 3px; background: var(--rule); border-radius: 2px;
  transition: background .3s ease;
}
.modal-steps div.active { background: var(--primary); }
.modal-steps div.done { background: var(--accent); }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 15px; color: var(--ink);
  padding: 12px 14px; border-radius: 8px; border: 1px solid var(--rule);
  background: var(--bg); outline: none; transition: border-color .15s ease, box-shadow .15s ease;
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(31,58,46,0.12);
}
.field textarea { min-height: 96px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--rule);
  font-size: 13px; transition: all .15s ease; background: var(--bg-card);
}
.chip:hover { border-color: var(--ink); }
.chip.selected { background: var(--primary); color: #F6F3EC; border-color: var(--primary); }
.modal-actions { display: flex; justify-content: space-between; margin-top: 24px; gap: 10px; }

.modal .success {
  text-align: center; padding: 20px 0;
}
.modal .success .checkmark {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--accent); color: #fff; margin: 0 auto 20px;
  display: grid; place-items: center; font-size: 32px;
  animation: bounce .5s cubic-bezier(.3,1.4,.4,1);
}
@keyframes bounce { 0% { transform: scale(0) } 100% { transform: scale(1) } }

/* Flow animation section */
@keyframes flowStepIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes progressFill {
  from { width: 0 }
  to   { width: 100% }
}
.flow-section {
  background: var(--primary-ink);
  color: #F6F3EC;
  position: relative;
  overflow: hidden;
  padding: 80px 0 72px;
}
.flow-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 72px;
  align-items: center;
  min-height: 460px;
}
@media (max-width: 880px) {
  .flow-grid { grid-template-columns: 1fr; gap: 36px; min-height: auto; }
  .flow-map-wrap { display: none; }
}

/* Tweaks panel */
.tweaks {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--bg-card); border: 1px solid var(--rule);
  border-radius: 14px; padding: 18px; z-index: 60;
  box-shadow: var(--shadow-md);
  width: 260px; font-size: 13px;
  animation: pop .25s cubic-bezier(.2,.9,.3,1.2);
}
.tweaks h4 { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 14px; color: var(--muted); }
.tweak-group { margin-bottom: 14px; }
.tweak-group label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.08em; }
.tweak-swatches { display: flex; gap: 8px; }
.tweak-swatch {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid transparent; transition: border-color .15s ease, transform .15s ease;
}
.tweak-swatch:hover { transform: scale(1.08); }
.tweak-swatch.active { border-color: var(--ink); }
.tweak-segments {
  display: flex; background: var(--bg-sunken); border-radius: 8px; padding: 3px;
}
.tweak-segments button {
  flex: 1; padding: 6px 8px; font-size: 12px; border-radius: 6px;
  color: var(--muted);
}
.tweak-segments button.active { background: var(--bg-card); color: var(--ink); box-shadow: var(--shadow-sm); }
.tweak-toggle {
  display: flex; justify-content: space-between; align-items: center;
}
.tweak-toggle .switch {
  width: 36px; height: 20px; border-radius: 999px; background: var(--rule);
  position: relative; transition: background .2s ease;
}
.tweak-toggle .switch.on { background: var(--primary); }
.tweak-toggle .switch::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px; border-radius: 50%; background: #fff;
  transition: transform .2s ease;
}
.tweak-toggle .switch.on::after { transform: translateX(16px); }
