/* MiNaDoJa Group: Path & Table
   Shared styles for every page. Tokens first, then base, layout, components, page sections. */

:root {
  /* Brand (never change) */
  --navy: #0D1B2A;
  --forest: #1E3D34;
  --gold: #B9975B;
  --gold-deep: #7A5E2A;
  --charcoal: #2E2F33;

  /* Semantic tokens (light) */
  --bg: #FAF6EE;
  --surface: #FFFDF9;
  --linen: #F1EADC;
  --sage: #E4ECE6;
  --mist: #E6EAF0;
  --honey: #F5ECDA;
  --text: var(--charcoal);
  --heading: var(--navy);
  --muted: #55565C;
  --link: var(--forest);
  --rule: #DDD3C1;
  --focus: var(--navy);
  --btn-bg: var(--navy);
  --btn-text: #FFFDF9;
  --paper: #FFFDF9;      /* cut-out paper stays light in both themes */
  --paper-ink: #2E2F33;
  --closing-bg: var(--navy);
  --shadow: 0 1px 2px rgba(13, 27, 42, .08), 0 8px 24px -12px rgba(13, 27, 42, .25);

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-text: "Figtree", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --curve: clamp(28px, 5vw, 72px);

  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1A22;
    --surface: #15232D;
    --linen: #1A2630;
    --sage: #16271F;
    --mist: #172232;
    --honey: #231F16;
    --text: #E6E1D6;
    --heading: #F6F1E6;
    --muted: #B7B2A6;
    --link: #A9CDB8;
    --rule: #2E3D47;
    --focus: #E9D7A8;
    --btn-bg: #F3EBDA;
    --btn-text: #0D1B2A;
    --closing-bg: #081119;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F1A22;
  --surface: #15232D;
  --linen: #1A2630;
  --sage: #16271F;
  --mist: #172232;
  --honey: #231F16;
  --text: #E6E1D6;
  --heading: #F6F1E6;
  --muted: #B7B2A6;
  --link: #A9CDB8;
  --rule: #2E3D47;
  --focus: #E9D7A8;
  --btn-bg: #F3EBDA;
  --btn-text: #0D1B2A;
  --closing-bg: #081119;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: inherit; }
html { scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 88px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 1.0625rem;           /* 17px mobile */
  line-height: 1.6;
  overflow-x: hidden;
}
@media (min-width: 900px) { body { font-size: 1.125rem; } }  /* 18px desktop */

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--heading);
  font-variation-settings: "SOFT" 100, "WONK" 0;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-weight: 800; font-size: clamp(2.4rem, 4.9vw, 4.3rem); line-height: 1.02; letter-spacing: -.025em; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; }
h2 { font-weight: 700; font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.08; letter-spacing: -.018em; }
h3 { font-weight: 600; font-size: clamp(1.3rem, 2.2vw, 1.6rem); line-height: 1.2; }
p { margin: 0 0 1em; max-width: 65ch; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1.5px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--btn-bg); color: var(--btn-text); padding: 12px 18px; border-radius: 10px; font-weight: 600; }
.skip-link:focus { top: calc(env(safe-area-inset-top, 0px) + 12px); }

.container { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 14px 26px;
  border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem/1.2 var(--font-text); text-decoration: none; text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn-primary { background: var(--btn-bg); color: var(--btn-text); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-secondary { border-color: var(--heading); color: var(--heading); background: transparent; }
.btn-secondary:hover { background: var(--heading); color: var(--bg); }
.btn-light { background: #FAF6EE; color: #0D1B2A; }
.btn-light:hover { transform: translateY(-2px); background: #fff; }

.text-link {
  font-weight: 600; color: var(--link); text-decoration: none;
  background-image: linear-gradient(transparent 62%, var(--honey) 62%);
  background-size: 100% 100%; background-repeat: no-repeat;
  padding: 2px 2px; border-bottom: 1.5px solid currentColor;
  transition: background-size .25s ease;
}
.text-link:hover { background-image: linear-gradient(transparent 20%, var(--honey) 20%); }
.text-link-light { color: #F5ECDA; background-image: none; }
.text-link-light:hover { background-image: none; color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  margin-top: calc(-1 * env(safe-area-inset-top, 0px));
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--rule) 60%, transparent);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: var(--wrap); margin-inline: auto; padding: 12px var(--gutter); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--heading); }
.brand img { width: 44px; height: 44px; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: -.01em; }
.brand-name span { font-weight: 400; color: var(--muted); }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { color: var(--heading); text-decoration: none; font-weight: 500; padding: 8px 2px; border-bottom: 2px solid transparent; }
.site-nav ul a:hover, .site-nav ul a[aria-current="page"] { border-bottom-color: var(--gold); }
.nav-cta { min-height: 46px; padding: 10px 20px; font-size: .95rem; }
.menu-toggle { display: none; }

@media (max-width: 1060px) {
  .menu-toggle {
    display: inline-flex; align-items: center; min-height: 48px; padding: 10px 20px;
    border-radius: 999px; border: 2px solid var(--heading); background: transparent;
    color: var(--heading); font: 600 1rem var(--font-text); cursor: pointer;
  }
  .site-nav {
    position: fixed; inset: 0; z-index: 60;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 24px;
    padding: calc(env(safe-area-inset-top, 0px) + 88px) var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 32px);
    background: var(--bg);
    visibility: hidden; opacity: 0; transition: opacity .2s ease, visibility 0s linear .2s;
    overflow-y: auto;
  }
  .site-nav.is-open { visibility: visible; opacity: 1; transition: opacity .2s ease; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 14px 0; font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; border-bottom: 1px solid var(--rule); }
  .nav-cta { min-height: 56px; font-size: 1.05rem; }
  .menu-toggle { position: relative; z-index: 70; }
}

/* ---------- The journey and gold path ---------- */
.journey { position: relative; }
.path-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; overflow: visible; }
.path-ghost { stroke: var(--gold); stroke-opacity: .22; stroke-width: 5; stroke-linecap: round; stroke-dasharray: .1 16; }
.path-dots { stroke: var(--gold); stroke-width: 7; stroke-linecap: round; stroke-dasharray: .1 16; }
.journey > section { position: relative; }
.journey > section > .container, .hero > * { position: relative; z-index: 2; }
.waypoint { position: absolute; width: 1px; height: 1px; left: 50%; top: 0; }
.wp-l { left: max(18px, 3.5%); }
.wp-r { left: auto; right: max(18px, 3.5%); }
.waypoint::after {
  content: ""; position: absolute; width: 18px; height: 18px; left: -9px; top: -9px;
  border-radius: 50%; background: var(--bg); border: 3px solid var(--gold);
  transition: background-color .3s ease, transform .3s ease; z-index: 3;
}
.waypoint.is-lit::after { background: var(--gold); transform: scale(1.15); }

/* ---------- Color fields with curved edges ---------- */
section.field { padding-block: clamp(72px, 10vw, 140px); background: var(--field-bg); }
.field-honey { --field-bg: var(--honey); }
.field-mist { --field-bg: var(--mist); }
.field-sage { --field-bg: var(--sage); }
.field-paper { --field-bg: var(--surface); }
.curve-top { margin-top: var(--curve); }
.curve-top::before {
  content: ""; position: absolute; left: 0; right: 0; top: calc(-1 * var(--curve) + 1px); height: var(--curve);
  background: var(--field-bg, var(--closing-bg));
  -webkit-mask: radial-gradient(60% 100% at 44% 100%, #000 99%, transparent 100%);
          mask: radial-gradient(60% 100% at 44% 100%, #000 99%, transparent 100%);
}
.curve-bottom { margin-bottom: var(--curve); }
.curve-bottom::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: calc(-1 * var(--curve) + 1px); height: var(--curve);
  background: var(--field-bg);
  -webkit-mask: radial-gradient(60% 100% at 58% 0%, #000 99%, transparent 100%);
          mask: radial-gradient(60% 100% at 58% 0%, #000 99%, transparent 100%);
}
.section-title { max-width: 18ch; }

/* ---------- 1. Hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center;
  gap: clamp(32px, 5vw, 72px);
  max-width: var(--wrap); margin-inline: auto;
  padding: clamp(40px, 7vw, 96px) var(--gutter) clamp(56px, 8vw, 110px);
}
.hero h1 { max-width: 17ch; }
.hero-sub { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--text); max-width: 44ch; margin-top: 1.2em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 30px; }

.stage-wrap { margin: 0; position: relative; }
.stage-wrap .waypoint { top: auto; bottom: -48px; }
.stage {
  position: relative; aspect-ratio: 5 / 4.4; isolation: isolate;
  background: radial-gradient(120% 90% at 30% 20%, color-mix(in srgb, var(--sage) 60%, var(--bg)) 0%, var(--sage) 70%);
  border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%;   /* soft, organic tabletop */
}
.scene { position: absolute; inset: 7% 6%; opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility 0s linear .5s; }
.scene.no-anim, .scene.no-anim * { transition: none !important; }
.scene.is-active { opacity: 1; visibility: visible; transition: opacity .5s ease; }

.piece {
  position: absolute; left: var(--x); top: var(--y); width: var(--w);
  transform: rotate(var(--r));
  transition: transform .9s cubic-bezier(.6, 0, .3, 1), opacity .7s ease .15s, left .9s cubic-bezier(.6,0,.3,1), top .9s cubic-bezier(.6,0,.3,1);
  color: var(--paper-ink);
}
.scene.is-built .piece { left: 34%; top: 32%; transform: rotate(0deg) scale(.55); opacity: 0; }

.page, .slide, .binder { background: var(--paper); border-radius: 6px; box-shadow: var(--shadow); padding: 14px 14px 18px; font-size: .72rem; line-height: 1.3; }
.page { aspect-ratio: 8.5 / 10; display: flex; flex-direction: column; gap: 8px; }
.page-title { font-family: var(--font-display); font-weight: 700; font-size: .95rem; color: #0D1B2A; }
.page-sub { color: #55565C; }
.lines { display: block; height: 44px; background: repeating-linear-gradient(#0D1B2A1f 0 2px, transparent 2px 10px); }
.hl { display: block; height: 10px; width: 80%; background: #E9D7A8; border-radius: 2px; }
.note {
  background: #F2E3B8; padding: 14px; aspect-ratio: 1; display: flex; align-items: center;
  font-family: var(--font-display); font-style: italic; font-size: .95rem; line-height: 1.25; color: #1E3D34;
  box-shadow: var(--shadow); border-radius: 2px;
}
.tape { height: 22px; background: color-mix(in srgb, var(--gold) 55%, transparent); border-radius: 2px; }
.slide { aspect-ratio: 16 / 10; display: flex; flex-direction: column; gap: 8px; border-top: 8px solid #1E3D34; }
.slide-title { font-weight: 700; font-size: .8rem; color: #0D1B2A; }
.bullets { flex: 1; background: repeating-linear-gradient(#0D1B2A1a 0 2px, transparent 2px 11px); margin-left: 10px; }
.slide-no { font-size: .62rem; color: #55565C; align-self: flex-end; }
.binder { aspect-ratio: 4 / 5; background: #1E3D34; position: relative; padding: 0; }
.binder-spine { position: absolute; left: 0; top: 0; bottom: 0; width: 18%; background: #0D1B2A; border-radius: 6px 0 0 6px; }
.binder-label { position: absolute; left: 28%; right: 10%; top: 22%; background: var(--paper); padding: 10px; border-radius: 3px; font-weight: 700; font-size: .8rem; color: #0D1B2A; }
.binder-label small { font-weight: 400; color: #55565C; }

.product {
  position: absolute; left: 50%; top: 50%; width: min(86%, 400px);
  transform: translate(-50%, -46%) scale(.9); opacity: 0;
  transition: transform .7s cubic-bezier(.2, .8, .2, 1) .35s, opacity .5s ease .35s;
  color: var(--paper-ink);
}
.scene.is-built .product { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.prod-label { display: block; font-size: .72rem; font-weight: 600; color: #1E3D34; margin-bottom: 6px; }
.product strong { font-family: var(--font-display); color: #0D1B2A; font-weight: 700; line-height: 1.2; display: block; }

.product-pair { display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px; align-items: start; }
.card-jobaid, .card-video, .card-course, .card-phone { background: var(--paper); border-radius: 16px; box-shadow: var(--shadow); padding: 16px; }
.card-jobaid { border-left: 6px solid var(--gold); }
.card-jobaid strong { font-size: 1rem; }
.card-jobaid ol { margin: 10px 0 0; padding-left: 1.2em; font-size: .78rem; line-height: 1.45; }
.card-video { background: #0D1B2A; color: #FAF6EE; margin-top: 30px; position: relative; aspect-ratio: 4 / 3.4; display: flex; flex-direction: column; justify-content: flex-end; }
.card-video .prod-label { color: #E9D7A8; }
.card-video strong { color: #FAF6EE; font-size: .9rem; }
.card-video .play { position: absolute; top: 18px; left: 16px; width: 40px; height: 40px; border-radius: 50%; background: var(--gold); }
.card-video .play::after { content: ""; position: absolute; left: 15px; top: 12px; border-left: 13px solid #0D1B2A; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.duration { position: absolute; top: 20px; right: 14px; font-size: .75rem; background: #FAF6EE; color: #0D1B2A; padding: 2px 8px; border-radius: 999px; font-weight: 600; }

.card-course { display: flex; flex-direction: column; gap: 8px; }
.card-course strong { font-size: 1.02rem; margin-bottom: 4px; }
.choice { display: block; padding: 9px 12px; border-radius: 10px; border: 1.5px solid #DDD3C1; font-size: .8rem; }
.choice.is-right { border-color: #1E3D34; background: #E4ECE6; font-weight: 600; }
.progress { height: 6px; background: #EFE7D8; border-radius: 99px; margin-top: 6px; overflow: hidden; }
.progress span { display: block; width: 50%; height: 100%; background: var(--gold); }
.card-phone { width: min(62%, 250px); left: 50%; border-radius: 28px; padding: 30px 16px 18px; border: 6px solid #0D1B2A; display: flex; flex-direction: column; gap: 8px; }
.phone-notch { position: absolute; top: 8px; left: 50%; width: 36%; height: 8px; background: #0D1B2A; border-radius: 99px; transform: translateX(-50%); }
.card-phone strong { font-size: .98rem; }
.bubble { background: #E6EAF0; border-radius: 12px 12px 12px 2px; padding: 8px 10px; font-size: .76rem; }

.stage-caption { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 18px; font-family: var(--font-display); font-size: 1.15rem; color: var(--heading); }
.cap-arrow { color: var(--gold-deep); font-size: 1.4rem; line-height: 1; }
.cap-to { font-style: italic; color: var(--link); }
.stage-controls { margin-left: auto; display: inline-flex; gap: 8px; }
.icon-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--rule); background: var(--surface);
  color: var(--heading); display: inline-grid; place-items: center; cursor: pointer;
}
.icon-btn svg { width: 20px; height: 20px; fill: currentColor; }
.icon-btn:hover { border-color: var(--heading); }
.icon-btn .i-play { display: none; }
.icon-btn[data-paused="true"] .i-play { display: block; }
.icon-btn[data-paused="true"] .i-pause { display: none; }

/* ---------- 2. Bring us anything ---------- */
.bring-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.bring-intro h2 { max-width: 12ch; }
.table-top { display: grid; gap: 28px; }
.materials { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 12px; }
.material {
  min-height: 48px; padding: 12px 18px; cursor: pointer;
  font: 600 .98rem/1.2 var(--font-text); color: #2E2F33;
  background: var(--paper); border: 0; border-radius: 4px;
  box-shadow: var(--shadow); transform: rotate(var(--r));
  position: relative; transition: transform .25s ease, background-color .2s ease, color .2s ease;
}
.material::before { /* gold tape */
  content: ""; position: absolute; top: -7px; left: 50%; width: 34px; height: 12px; margin-left: -17px;
  background: color-mix(in srgb, var(--gold) 55%, transparent); transform: rotate(calc(var(--r) * -2));
}
.material:hover { transform: rotate(0deg) translateY(-3px); }
.material[aria-pressed="true"] { background: #1E3D34; color: #FFFDF9; transform: rotate(0deg) scale(1.04); }
.becomes { background: var(--surface); border-radius: 28px 28px 28px 6px; padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow); }
.becomes-lead { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: var(--heading); margin-bottom: .6em; }
.becomes-list { list-style: none; margin: 0 0 1em; padding: 0; display: grid; gap: 10px; }
.becomes-list li { position: relative; padding-left: 28px; }
.becomes-list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); }
.becomes-note { font-family: var(--font-display); font-style: italic; color: var(--link); margin: 0; }

/* ---------- 3. What we make ---------- */
.make { padding-block: clamp(80px, 11vw, 150px); }
.make-title { font-size: clamp(1.1rem, 1.6vw, 1.25rem); font-family: var(--font-text); font-weight: 600; color: var(--muted); letter-spacing: 0; margin-bottom: 18px; }
.make-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .55em; row-gap: .1em; max-width: 1000px; }
.make-list li {
  font-family: var(--font-display); font-weight: 600; color: var(--heading);
  font-size: clamp(1.75rem, 4.2vw, 3.3rem); line-height: 1.18; letter-spacing: -.015em;
  display: inline-flex; align-items: center; gap: .55em;
}
.make-list li:nth-child(3n+2) { font-style: italic; font-weight: 400; color: var(--link); }
.make-list li:not(:last-child)::after { content: ""; width: .26em; height: .26em; border-radius: 50%; background: var(--gold); flex: none; }
.make-more { margin-top: 36px; }

/* ---------- 4. Not always a new course ---------- */
.notcourse-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.big-statement { font-size: clamp(2.4rem, 5.6vw, 4.6rem); font-weight: 800; line-height: 1.02; max-width: 11ch; }
.sometimes { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.sometimes li { padding-left: 30px; position: relative; }
.sometimes li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--gold); }
.sometimes strong { font-family: var(--font-display); font-size: 1.2rem; color: var(--heading); display: block; }

/* ---------- 5. Five ways we help ---------- */
.help { padding-block: clamp(80px, 11vw, 140px); }
.help-flow { display: grid; gap: clamp(36px, 5vw, 56px); margin-top: 40px; }
.help-item { max-width: 560px; }
.help-item:nth-child(odd) { margin-right: auto; }
.help-item:nth-child(even) { margin-left: auto; }
.help-item h3 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 600; font-variation-settings: "SOFT" 100, "WONK" 1; }
.help-name {
  display: inline-block; position: relative; margin: 0 0 .9em; padding: 6px 14px;
  background: var(--paper); color: #1E3D34; font-weight: 700; font-size: .95rem;
  border-radius: 3px; box-shadow: var(--shadow); transform: rotate(-1.5deg);
}
.help-item:nth-child(even) .help-name { transform: rotate(1.5deg); }
.help-name::before { content: ""; position: absolute; top: -6px; left: 14px; width: 30px; height: 11px; background: color-mix(in srgb, var(--gold) 55%, transparent); transform: rotate(-4deg); }
.help-item p:not(.help-name) { color: var(--text); }

/* ---------- 6. How we work ---------- */
.how-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; }
.how-head p { font-size: 1.15rem; }
.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; left: 12px; right: 12px; top: 11px; border-top: 4px dotted var(--gold); }
.steps li { position: relative; counter-increment: step; }
.step-dot { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--gold); margin-bottom: 18px; position: relative; }
.steps h3::before { content: counter(step) ". "; color: var(--gold-deep); }
.steps p { font-size: 1rem; }

/* ---------- 7. Selected work ---------- */
.work { padding-block: clamp(80px, 11vw, 140px); }
.case { margin-top: 32px; }
.case-client { font-weight: 600; color: var(--muted); }
.case-transform { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: clamp(16px, 3vw, 40px); align-items: center; margin: 12px 0 28px; }
.case-before, .case-after { padding: clamp(24px, 3vw, 36px); border-radius: 6px; position: relative; }
.case-before { background: var(--linen); transform: rotate(-1.2deg); box-shadow: 10px 10px 0 -2px color-mix(in srgb, var(--linen) 70%, var(--rule)); }
.case-after { background: var(--sage); border-radius: 30px 30px 30px 8px; }
.case-label { font-weight: 700; color: var(--link); margin-bottom: .3em; }
.case-big { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 2.8vw, 2.2rem); line-height: 1.1; color: var(--heading); }
.case-arrow { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 4rem); color: var(--gold-deep); line-height: 1; }
.case-tags { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.case-tags li { padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--rule); font-size: .92rem; background: var(--surface); }

/* ---------- 8. Public sector ---------- */
.public-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.public .section-title { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
.facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 2px solid var(--heading); }
.facts div { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.facts div:nth-child(odd) { padding-right: 16px; }
.facts dt { font-size: .9rem; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 700; font-size: 1.1rem; color: var(--heading); font-variant-numeric: tabular-nums; letter-spacing: .02em; }

/* ---------- 9. Closing ---------- */
.closing { --field-bg: var(--closing-bg); background: var(--closing-bg); color: #E9E4D9; padding-block: clamp(80px, 10vw, 130px); }
.closing h2 { color: #FAF6EE; max-width: 16ch; }
.closing p { font-size: 1.2rem; max-width: 46ch; }
.closing-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 28px; }
.closing .waypoint::after { background: var(--closing-bg); }
.closing .waypoint.is-lit::after { background: var(--gold); }

/* ---------- Footer ---------- */
.site-footer { background: var(--closing-bg); color: #C9C4B8; padding: 8px 0 40px; border-top: 1px solid #22313F; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-top: 40px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-footer a { color: #F5ECDA; text-decoration: none; display: inline-block; padding: 6px 0; }
.site-footer a:hover { text-decoration: underline; }
.site-footer strong { color: #FAF6EE; }
.footer-brand img { width: 56px; height: 56px; margin-bottom: 12px; background: #FAF6EE; border-radius: 50%; padding: 4px; }
.footer-small { font-size: .9rem; margin-top: 32px; color: #9A958A; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero, .bring-grid, .notcourse-grid, .how-head, .public-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-top: 32px; }
  .stage { aspect-ratio: 5 / 4.8; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps::before { display: none; }
  .case-transform { grid-template-columns: minmax(0, 1fr); }
  .case-arrow { transform: rotate(90deg); justify-self: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .help-item:nth-child(n) { margin-left: 0; }
}
@media (max-width: 760px) {
  /* The path becomes a rail down the left edge */
  .journey { --rail: 18px; }
  .wp-l, .wp-r { left: var(--rail); right: auto; }
  .journey > section > .container { padding-left: calc(var(--gutter) + 20px); }
  .hero { padding-left: calc(var(--gutter) + 20px); }
  .stage-wrap .waypoint { left: calc(-1 * (var(--gutter) + 20px) + var(--rail)); }
  .materials { flex-wrap: nowrap; overflow-x: auto; padding: 12px 4px 16px; scroll-snap-type: x proximity; margin-inline: -4px; }
  .materials li { flex: none; scroll-snap-align: start; }
  .card-jobaid ol { font-size: .72rem; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-actions .btn { width: 100%; }
  .product-pair { grid-template-columns: 1fr; }
  .card-video { display: none; }  /* keep the stage readable on small phones */
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ================= Inner pages ================= */
.page-hero { padding-block: clamp(48px, 8vw, 110px) clamp(32px, 5vw, 64px); }
.page-hero h1 { max-width: 20ch; }
.lead { font-size: clamp(1.15rem, 1.7vw, 1.35rem); max-width: 52ch; margin-top: 1em; }
.jump-links { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.jump-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px;
  border-radius: 999px; border: 1.5px solid var(--rule); background: var(--surface);
  color: var(--heading); text-decoration: none; font-weight: 600; font-size: .95rem;
}
.jump-links a:hover { border-color: var(--heading); }

/* Services */
.svc.plain { padding-block: clamp(64px, 9vw, 120px); }
.svc-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.svc-flip .svc-copy { order: 2; }
.svc-copy h2 { max-width: 16ch; }
.svc-sub { font-family: var(--font-text); font-size: 1rem; font-weight: 700; color: var(--muted); margin-top: 1.6em; }
.dot-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 32px; }
.dot-list li { position: relative; padding-left: 22px; margin-bottom: 8px; break-inside: avoid; }
.dot-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.mini-transform { margin: 0; display: grid; gap: 14px; justify-items: start; }
.mt-before, .mt-after { padding: 20px 22px; width: 100%; max-width: 360px; }
.mt-before { background: var(--paper); color: #2E2F33; border-radius: 4px; box-shadow: var(--shadow); transform: rotate(-2deg); }
.mt-after { background: var(--navy); color: #FAF6EE; border-radius: 28px 28px 28px 6px; justify-self: end; }
.mt-label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 4px; }
.mt-before .mt-label { color: #1E3D34; }
.mt-after .mt-label { color: #E9D7A8; }
.mt-text { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; line-height: 1.2; }
.mt-arrow { font-family: var(--font-display); font-size: 2.6rem; color: var(--gold-deep); transform: rotate(90deg); justify-self: center; line-height: 1; }
.whole-or-piece { padding-block: clamp(64px, 8vw, 110px) clamp(40px, 6vw, 80px); }

/* Work */
.steps-detailed p { font-size: 1rem; }
.stepin { padding-block: clamp(64px, 9vw, 120px); }
.stepin-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin-top: 32px; }
.stepin-grid > div { border-top: 3px solid var(--gold); padding-top: 16px; }
.stepin-grid h3 { font-size: 1.3rem; }
.case-full h2 { max-width: 20ch; }
.story { margin: 40px 0 0; display: grid; gap: 0; }
.story > div { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: 24px; padding: 20px 0; border-top: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); }
.story dt { font-family: var(--font-display); font-weight: 700; color: var(--heading); font-size: 1.15rem; }
.story dd { margin: 0; max-width: 62ch; }
.story .case-tags { margin: 0; }
.more-work { padding-block: clamp(64px, 8vw, 110px) clamp(40px, 6vw, 80px); }

/* About */
.about-hero h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); }
.overlap { list-style: none; margin: 40px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; }
.overlap li {
  width: clamp(190px, 22vw, 250px); aspect-ratio: 1; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 24px; margin: 0 -14px; mix-blend-mode: multiply;
}
.overlap li:nth-child(1) { background: #C9DAD0; }
.overlap li:nth-child(2) { background: #EBDDB9; }
.overlap li:nth-child(3) { background: #D3DBE6; }
.overlap li:nth-child(4) { background: #E6D7C4; }
.overlap strong { font-family: var(--font-display); font-size: 1.25rem; color: #0D1B2A; line-height: 1.15; }
.overlap span { font-size: .95rem; color: #2E2F33; margin-top: 6px; }
.team { padding-block: clamp(64px, 9vw, 120px); }
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 48px); margin-top: 36px; }
.photo {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; margin-bottom: 18px;
  border-radius: 46% 54% 44% 56% / 38% 40% 60% 62%; background: var(--sage);
  display: grid; place-items: center;
}
.person:nth-child(2) .photo { border-radius: 54% 46% 58% 42% / 42% 36% 64% 58%; background: var(--honey); }
.person:nth-child(3) .photo { border-radius: 42% 58% 48% 52% / 36% 44% 56% 64%; background: var(--mist); }
.photo span { font-family: var(--font-display); font-size: 3rem; font-weight: 700; color: var(--heading); opacity: .5; }
.person h3 { margin-bottom: .15em; }
.person-role { font-weight: 700; color: var(--link); }
.group-photo { width: 100%; border-radius: 40px 40px 40px 10px; margin-top: 48px; }
.sigil-story { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.sigil-story img { width: 100%; max-width: 340px; justify-self: center; }
.values { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.values li { padding-left: 26px; position: relative; }
.values li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); }
.values strong { color: var(--heading); }

/* Public sector: official, scannable, no decoration */
.is-official .site-header { border-bottom-color: var(--rule); }
.ps { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); gap: 32px clamp(32px, 5vw, 64px); padding-block: clamp(40px, 6vw, 72px) clamp(64px, 8vw, 100px); }
.ps-intro { grid-column: 1 / -1; border-bottom: 3px solid var(--heading); padding-bottom: 28px; }
.ps-intro h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); font-variation-settings: "SOFT" 50, "WONK" 0; }
.ps-facts { grid-column: 2; grid-row: 2; align-self: start; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 92px); background: var(--surface); border: 1.5px solid var(--rule); border-radius: 12px; padding: 24px; }
.ps-facts h2 { font-size: 1.3rem; margin-bottom: 12px; }
.ps-facts dl { margin: 0; }
.ps-facts dl div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.ps-facts dt { color: var(--muted); font-size: .95rem; }
.ps-facts dd { margin: 0; font-weight: 700; color: var(--heading); text-align: right; }
.code { font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.ps-downloads { display: grid; gap: 10px; margin-top: 20px; }
.ps-main { grid-column: 1; grid-row: 2; }
.ps-main section { padding: 28px 0; border-bottom: 1px solid var(--rule); }
.ps-main section:first-child { padding-top: 0; }
.ps-main h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); font-variation-settings: "SOFT" 50, "WONK" 0; }
.ps-main h3 { font-size: 1.15rem; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.data-table caption { text-align: left; position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.data-table th, .data-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.data-table thead th { font-size: .9rem; color: var(--muted); font-weight: 600; border-bottom: 2px solid var(--heading); }
.data-table tbody th { font-weight: 700; color: var(--heading); white-space: nowrap; font-variant-numeric: tabular-nums; width: 7rem; }
.data-table tbody tr:nth-child(even) { background: color-mix(in srgb, var(--surface) 70%, transparent); }
.plain-list { margin: 0; padding-left: 1.2em; }
.plain-list li { margin-bottom: 6px; }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.6rem; margin-top: 1.4em; }

@media (max-width: 900px) {
  .svc-grid, .sigil-story { grid-template-columns: minmax(0, 1fr); }
  .svc-flip .svc-copy { order: 0; }
  .stepin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .story > div { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .ps { grid-template-columns: minmax(0, 1fr); }
  .ps-facts { grid-column: 1; grid-row: auto; position: static; }
  .ps-main { grid-column: 1; grid-row: auto; }
}
@media (max-width: 560px) {
  .dot-list { columns: 1; }
  .stepin-grid, .team-grid { grid-template-columns: minmax(0, 1fr); }
  .overlap li { margin: -10px 0; }
  .mt-after { justify-self: start; }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .overlap li { mix-blend-mode: normal; }
}
:root[data-theme="dark"] .overlap li { mix-blend-mode: normal; }
main section { position: relative; }
.photo { max-width: 340px; }
/* Sigil art has navy lettering: give it a light backing on dark themes */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand img, :root:not([data-theme="light"]) .sigil-story img { background: #FAF6EE; border-radius: 50%; padding: 3px; }
}
:root[data-theme="dark"] .brand img, :root[data-theme="dark"] .sigil-story img { background: #FAF6EE; border-radius: 50%; padding: 3px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 6vw, 80px); align-items: start; padding-bottom: clamp(72px, 10vw, 130px); }
.contact-form { background: var(--surface); border: 1.5px solid var(--rule); border-radius: 28px 28px 28px 8px; padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); }
.contact-form .field { margin-bottom: 22px; }
.contact-form label { display: block; font-weight: 700; color: var(--heading); margin-bottom: 8px; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; font: inherit; font-size: 1.05rem; color: var(--text); background: var(--bg);
  border: 1.5px solid var(--rule); border-radius: 12px; padding: 12px 14px; min-height: 48px;
}
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form input:focus-visible, .contact-form select:focus-visible, .contact-form textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-color: var(--heading); }
.contact-form [aria-invalid="true"] { border-color: #A3312B; }
.contact-form .btn { border: 0; cursor: pointer; font-size: 1.05rem; }
.contact-form .btn:disabled { opacity: .7; cursor: progress; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formnote { margin-top: 14px; font-size: .98rem; color: var(--muted); }
.formnote.is-error { color: #A3312B; font-weight: 700; }
.formnote.is-sent { color: var(--heading); font-weight: 700; font-size: 1.1rem; }
.info { margin: 0; }
.info div { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.info dt { font-size: .9rem; font-weight: 700; color: var(--muted); }
.info dd { margin: 4px 0 0; color: var(--heading); }
.next-steps { margin-top: 32px; background: var(--sage); border-radius: 24px; padding: 24px 26px; color: #1E3D34; }
.next-steps h2 { font-size: 1.35rem; color: #0D1B2A; }
.next-steps ol { margin: 0; padding-left: 1.2em; }
.next-steps li { margin-bottom: 6px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .formnote.is-error { color: #F0A39D; } }
:root[data-theme="dark"] .formnote.is-error { color: #F0A39D; }
.contact-form .btn { background: var(--btn-bg); color: var(--btn-text); }
.contact-form .btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.person picture { display: block; }
.person img.photo { display: block; height: auto; object-position: center 30%; }
