/* ============================================================
   Project — Think Move — pitch site
   Warm palette · Fraunces display serif · Instrument Sans body
   ============================================================ */

:root {
  --ground:      #FAF6EF;
  --ground-alt:  #F3ECE0;
  --surface:     #FFFCF7;
  --ink:         #241C14;
  --ink-soft:    #5C4B3A;
  --muted:       #8A7660;
  --orange:      #C2601F;
  --orange-deep: #9E4C14;
  --gold:        #B8873B;
  --gold-soft:   #E4D3B3;
  --espresso:    #2A1F14;
  --espresso-2:  #3A2A1C;
  --cream:       #F5EDDF;
  --rule:        #E3D8C4;
  --rule-soft:   #EDE4D2;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Instrument Sans", -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  --shadow-warm: 0 1px 2px rgba(58, 42, 28, 0.05), 0 10px 32px -12px rgba(58, 42, 28, 0.18);
  --shadow-lift: 0 2px 4px rgba(58, 42, 28, 0.06), 0 18px 44px -16px rgba(58, 42, 28, 0.24);

  --radius: 6px;
  --ease: cubic-bezier(0.22, 0.61, 0.2, 1);
}

/* ---------- base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* paper grain — inline SVG turbulence at very low opacity */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
}

h2 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); line-height: 1.12; }

p { margin: 0 0 1.05rem; }

.lead {
  font-size: clamp(1.06rem, 2vw, 1.22rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 42rem;
}

.wrap      { max-width: 66rem;  margin: 0 auto; padding: 0 1.5rem; }
.wrap-wide { max-width: 76rem;  margin: 0 auto; padding: 0 1.5rem; }

.section { padding: clamp(4.5rem, 9vw, 8rem) 0; position: relative; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.4rem;
}

.sec-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.sec-label::after {
  content: "";
  height: 1px;
  width: 3.2rem;
  background: var(--gold);
  opacity: 0.7;
}
.sec-label-gold { color: var(--gold); }

h2 + .lead, .sec-label + h2 { margin-top: 0; }
.section .lead { margin-top: 1.1rem; }

/* focus */
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- reveal on scroll ----------
   Hidden ONLY when scripting is available (html.js), so the page renders
   fully without JavaScript. html.reveal-fallback is the watchdog escape:
   if script.js never initialises, everything is forced visible. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.js [data-reveal].in { opacity: 1; transform: none; }

.reveal-fallback [data-reveal],
.reveal-fallback .tr-line,
.reveal-fallback .tr-card,
.reveal-fallback .ab-value {
  opacity: 1 !important;
  transform: none !important;
}

/* ---------- progress bar ---------- */
.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 60;
  background: transparent;
}
.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--orange));
  transition: width 0.1s linear;
}

/* ---------- nav ---------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.5rem;
  background: color-mix(in srgb, var(--ground) 82%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), padding 0.3s var(--ease);
}
.site-nav.scrolled {
  border-bottom-color: var(--rule);
  padding: 0.55rem 1.5rem;
}
.brand {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand::after {
  content: "";
  display: block;
  height: 2px;
  width: 2.1rem;
  background: var(--gold);
  margin-top: 1px;
}
.nav-links {
  display: flex;
  gap: 0.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  white-space: nowrap;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-links a:hover { color: var(--orange); background: rgba(194, 96, 31, 0.07); }
.nav-links a.current { color: var(--orange); background: rgba(194, 96, 31, 0.1); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn-primary {
  background: var(--orange);
  color: #FFF7EC;
  box-shadow: var(--shadow-warm);
}
.btn-primary:hover { background: var(--orange-deep); transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn-ghost {
  border-color: var(--gold);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover { background: rgba(184, 135, 59, 0.1); transform: translateY(-2px); }
.btn-small { padding: 0.6rem 1.1rem; font-size: 0.84rem; }
.btn[hidden] { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 85% 10%, #F6E9D2 0%, transparent 55%),
    radial-gradient(90% 70% at 0% 100%, #F2E4CC 0%, transparent 50%),
    var(--ground);
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 66rem;
  margin: 0 auto;
  padding: 7rem 1.5rem 5rem;
  width: 100%;
}
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-weight: 400;
}
.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--orange);
}
.standfirst {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 36rem;
  margin: 1.6rem 0 0;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.6rem;
}
.hero-note {
  margin: 1.8rem 0 0;
  max-width: 34rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
  border-left: 3px solid var(--gold);
  padding-left: 1rem;
}
.hero-note a {
  color: var(--orange-deep);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
}
.hero-note a:hover { color: var(--orange); }
.hero-art {
  position: absolute;
  right: -6rem;
  top: 50%;
  transform: translateY(-50%);
  width: min(46vw, 40rem);
  opacity: 0.85;
  z-index: 1;
}
.hero-art .ring { stroke: var(--gold-soft); stroke-width: 1; }
.hero-art .ring-1 { stroke-dasharray: 2 6; }
.hero-art .ring-2 { stroke-dasharray: 1 5; }
.hero-art .links line { stroke: var(--gold); stroke-opacity: 0.35; }
.hero-art .node { fill: var(--gold); }
.hero-art .node-core { fill: var(--orange); }
.hero-art .node-small { fill: var(--gold); opacity: 0.6; }
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 1.8rem;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 1.5px solid var(--gold);
  border-radius: 999px;
  z-index: 2;
}
.scroll-hint span {
  position: absolute;
  left: 50%; top: 8px;
  width: 3px; height: 8px;
  margin-left: -1.5px;
  border-radius: 3px;
  background: var(--orange);
  animation: hint 2.2s var(--ease) infinite;
}
@keyframes hint {
  0%   { transform: translateY(0); opacity: 1; }
  70%  { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- split layout ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.split-wide { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.split-lead { position: sticky; top: 6rem; }
.kicker {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--orange-deep);
  border-left: 3px solid var(--gold);
  padding-left: 1.1rem;
  margin-top: 1.8rem;
}

.tick-list {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
}
.tick-list li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.9rem;
  border-bottom: 1px solid var(--rule-soft);
  color: var(--ink-soft);
  font-size: 0.97rem;
}
.tick-list li:last-child { border-bottom: 0; }
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.95rem;
  width: 1rem; height: 1px;
  background: var(--gold);
}
.tick-list li::after {
  content: "";
  position: absolute;
  left: 0.45rem; top: 0.72rem;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--orange);
}

/* ---------- dark section ---------- */
.section-dark {
  background:
    radial-gradient(100% 120% at 100% 0%, #4A3623 0%, transparent 55%),
    var(--espresso);
  color: var(--cream);
}
.h-dark { color: var(--cream); }
.lead-dark { color: #D8C8B2; }
.section-dark .sec-label::after { background: var(--gold); }

.principle {
  margin-top: 3rem;
  border-top: 1px solid rgba(184, 135, 59, 0.4);
  padding-top: 2.4rem;
}
.principle-line {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  line-height: 1.2;
  color: var(--cream);
  margin-bottom: 0.9rem;
}
.principle-line span { color: var(--gold); font-style: italic; }
.principle-sub {
  color: #C4B199;
  max-width: 44rem;
  font-size: 1rem;
}
.chips {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2rem;
}
@media (min-width: 44rem) {
  .chips { grid-template-columns: repeat(2, 1fr); }
}
.chip-row {
  background: rgba(255, 252, 247, 0.05);
  border: 1px solid rgba(184, 135, 59, 0.28);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.chip-row:hover { background: rgba(255, 252, 247, 0.09); transform: translateY(-3px); }
.chip-desc {
  display: block;
  margin-top: 0.65rem;
  font-size: 0.86rem;
  line-height: 1.5;
  color: #C4B199;
}

/* chips */
.chip {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.26rem 0.6rem;
  border-radius: 3px;
  white-space: nowrap;
}
.chip-auto    { background: rgba(194, 96, 31, 0.14); color: #E8905A; }
.chip-agency  { background: rgba(184, 135, 59, 0.2);  color: #E4C88F; }
.chip-student { background: rgba(214, 165, 68, 0.16); color: #F0D9A8; }
.chip-person  { background: rgba(255, 252, 247, 0.14); color: #FFF3E0; border: 1px solid rgba(255, 252, 247, 0.25); }

/* on light surfaces, recolor chips for contrast */
.cap-list .chip-auto    { background: rgba(194, 96, 31, 0.1);  color: var(--orange-deep); }
.cap-list .chip-agency  { background: rgba(184, 135, 59, 0.14); color: #8A6524; }
.cap-list .chip-student { background: rgba(214, 165, 68, 0.16); color: #7A5A18; }
.cap-list .chip-person  { background: var(--espresso); color: var(--cream); border: 0; }

/* ---------- journey ---------- */
.section-journey { background: var(--ground-alt); }

.journey { margin-top: 2.6rem; }

.journey-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  position: relative;
}
/* connecting line */
.journey-track::before {
  content: "";
  position: absolute;
  top: 1.35rem;
  left: 4%;
  right: 4%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-soft), var(--gold), var(--gold-soft));
  z-index: 0;
}
.j-stage { position: relative; z-index: 1; }

.j-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  background: none;
  border: 0;
  padding: 0 0.3rem 0.8rem;
  cursor: pointer;
  font-family: var(--sans);
}
.j-num {
  display: grid;
  place-items: center;
  width: 2.7rem; height: 2.7rem;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--gold);
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.j-name {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  text-align: center;
  line-height: 1.25;
  transition: color 0.25s var(--ease);
}
.j-node:hover .j-num { transform: translateY(-3px); box-shadow: var(--shadow-warm); border-color: var(--orange); color: var(--orange); }
.j-node:hover .j-name { color: var(--orange); }
.j-node[aria-expanded="true"] .j-num {
  background: var(--orange);
  border-color: var(--orange);
  color: #FFF7EC;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}
.j-node[aria-expanded="true"] .j-name { color: var(--orange-deep); }

.journey-detail {
  margin-top: 1.8rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--orange);
  border-radius: var(--radius);
  box-shadow: var(--shadow-warm);
  overflow: hidden;
}
.jd-inner { padding: clamp(1.4rem, 3.5vw, 2.6rem); }
.jd-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.6rem;
}
.jd-num {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--gold);
}
.jd-title {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 500;
}
.jd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1.4rem 2rem;
}
.jd-cell-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 0.5rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--rule);
}
.jd-cell p, .jd-cell ul { font-size: 0.92rem; color: var(--ink-soft); margin: 0; }
.jd-cell ul { padding-left: 1.05rem; }
.jd-cell li { margin-bottom: 0.35rem; }
.jd-cell li::marker { color: var(--gold); }
.jd-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1.4rem, 3.5vw, 2.6rem);
  border-top: 1px solid var(--rule-soft);
  background: var(--ground);
}
.jd-btn {
  background: none;
  border: 0;
  font-family: var(--sans);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--orange);
  cursor: pointer;
  padding: 0.4rem 0.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.2s var(--ease), color 0.2s var(--ease);
}
.jd-btn:hover { gap: 0.7rem; color: var(--orange-deep); }
.jd-btn:disabled { color: var(--muted); cursor: default; }
.jd-btn:disabled:hover { gap: 0.4rem; }

/* detail entrance animation */
.jd-inner { animation: jdIn 0.4s var(--ease); }
@keyframes jdIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- capabilities ---------- */
.cap-grid {
  margin-top: 2.8rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}
.cap-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.6rem 1.7rem 1.4rem;
  box-shadow: var(--shadow-warm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.cap-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.cap-card:nth-child(5) { grid-column: 1 / -1; max-width: calc(50% - 0.7rem); justify-self: center; width: 100%; }
.cap-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 0.9rem;
  margin-bottom: 0.4rem;
  border-bottom: 2px solid var(--gold);
}
.cap-head h3 {
  font-size: 1.3rem;
  font-weight: 500;
}
.cap-strap {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.cap-list { list-style: none; margin: 0; padding: 0; }
.cap-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem 1rem;
  align-items: baseline;
  padding: 0.6rem 0;
  border-bottom: 1px dotted var(--rule);
  font-size: 0.93rem;
  color: var(--ink-soft);
}
.cap-list li:last-child { border-bottom: 0; padding-bottom: 0.2rem; }

/* ---------- transcript demo ---------- */
.section-transcript { background: var(--ground-alt); overflow: hidden; }
.tr-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.6rem;
  align-items: start;
}
.mock-label {
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.9rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--rule);
}
.tr-source {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
  box-shadow: var(--shadow-warm);
}
.tr-line {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 0.7rem;
  padding: 0.3rem 0.55rem;
  border-radius: 4px;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), background 0.5s var(--ease);
}
.js .tr-line { opacity: 0; transform: translateY(8px); }
.tr-line b { color: var(--ink); font-weight: 600; }
.tr-line:last-child { margin-bottom: 0; }
.tr-stage.play .tr-line { opacity: 1; transform: none; }
.tr-line.mark { background: rgba(184, 135, 59, 0.16); }

.tr-outputs { display: flex; flex-direction: column; gap: 1rem; }
.tr-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  box-shadow: var(--shadow-warm);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.js .tr-card { opacity: 0; transform: translateX(22px); }
.tr-card.show { opacity: 1; transform: none; }
.tr-card-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 0.3rem;
}
.tr-card-title {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 500;
  margin: 0 0 0.55rem;
}
.tr-card ul {
  margin: 0;
  padding-left: 1.05rem;
  font-size: 0.86rem;
  color: var(--ink-soft);
}
.tr-card li { margin-bottom: 0.25rem; }
.tr-card li::marker { color: var(--gold); }

/* ---------- dashboards ---------- */
.role-switch {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 46rem;
  margin: 2.6rem auto 0;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 0.35rem;
  box-shadow: var(--shadow-warm);
}
.role-tab {
  position: relative;
  z-index: 2;
  background: none;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1rem 0.75rem;
  cursor: pointer;
  font-family: var(--sans);
  text-align: center;
  transition: color 0.25s var(--ease);
}
.role-tab-name {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  transition: color 0.25s var(--ease);
}
.role-tab-sub {
  display: block;
  font-size: 0.68rem;
  color: var(--muted);
  margin-top: 0.1rem;
  transition: color 0.25s var(--ease);
}
.role-tab.is-active .role-tab-name { color: #FFF7EC; }
.role-tab.is-active .role-tab-sub { color: rgba(255, 247, 236, 0.75); }
.role-ink {
  position: absolute;
  z-index: 1;
  top: 0.35rem;
  bottom: 0.35rem;
  left: 0.35rem;
  width: calc((100% - 0.7rem) / 3);
  background: var(--orange);
  border-radius: 999px;
  box-shadow: var(--shadow-warm);
  transition: transform 0.35s var(--ease);
}

.dash-frame { margin-top: 2.2rem; position: relative; }
.dash-panel { animation: dashIn 0.45s var(--ease); }
.dash-panel[hidden] { display: none; }
@keyframes dashIn {
  from { opacity: 0; transform: translateY(14px) scale(0.995); }
  to   { opacity: 1; transform: none; }
}

.mock {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 10px;
  box-shadow: var(--shadow-lift);
  padding: clamp(1.3rem, 3.5vw, 2.2rem);
  overflow: hidden;
}
.mock::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--orange), var(--gold));
}
.sample-tag {
  position: absolute;
  top: 1rem; right: 1.1rem;
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(184, 135, 59, 0.1);
  border: 1px solid rgba(184, 135, 59, 0.35);
  padding: 0.3rem 0.6rem;
  border-radius: 3px;
  margin: 0;
}
.mock-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
  padding-right: 9rem;
}
.mock-title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0;
}
.mock-sub {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0.25rem 0 0;
}
.mock-pill {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  white-space: nowrap;
}
.pill-ok   { background: rgba(194, 96, 31, 0.1);  color: var(--orange-deep); }
.pill-warn { background: rgba(184, 135, 59, 0.18); color: #8A6524; }

.mock-progress {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}
.mp-step {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 0.32rem 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.mp-step::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--rule);
}
.mp-step.done { color: var(--ink-soft); border-color: var(--gold-soft); }
.mp-step.done::before { background: var(--gold); }
.mp-step.current {
  color: var(--orange-deep);
  border-color: var(--orange);
  background: rgba(194, 96, 31, 0.07);
  font-weight: 500;
}
.mp-step.current::before { background: var(--orange); }

.mock-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.mock-card {
  background: var(--ground);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
}
.mock-card-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 0.5rem;
}
.mock-big {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  margin: 0 0 0.2rem;
}
.mock-note { font-size: 0.8rem; color: var(--muted); margin: 0; }
.mock-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.mock-table td {
  padding: 0.4rem 0;
  border-bottom: 1px dotted var(--rule);
  color: var(--ink-soft);
}
.mock-table td:last-child {
  text-align: right;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
}
.mock-table tr:last-child td { border-bottom: 0; }

/* ---------- record ---------- */
.section-record { background: var(--ground); }
.pull {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.6vw, 1.55rem);
  font-style: italic;
  line-height: 1.45;
  color: var(--orange-deep);
  border-left: 3px solid var(--gold);
  padding-left: 1.2rem;
  margin-top: 2rem;
}

/* ---------- phases ---------- */
.section-phases { background: var(--ground-alt); }
.phase-list {
  list-style: none;
  margin: 2.8rem 0 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.phase-item { border-bottom: 1px solid var(--rule); }
.phase-head {
  display: grid;
  grid-template-columns: 6.5rem 1fr auto;
  align-items: baseline;
  gap: 1.2rem;
  width: 100%;
  background: none;
  border: 0;
  padding: 1.4rem 0.4rem;
  cursor: pointer;
  text-align: left;
  font-family: var(--sans);
  transition: background 0.2s var(--ease);
}
.phase-head:hover { background: rgba(194, 96, 31, 0.05); }
.phase-num {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  transition: color 0.2s var(--ease);
}
.phase-name {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  font-weight: 500;
  color: var(--ink);
  transition: color 0.2s var(--ease), transform 0.25s var(--ease);
}
.phase-head:hover .phase-name { color: var(--orange-deep); transform: translateX(4px); }
.phase-head[aria-expanded="true"] .phase-num { color: var(--orange); }
.phase-head[aria-expanded="true"] .phase-name { color: var(--orange-deep); }
.phase-chev {
  width: 10px; height: 10px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg);
  transition: transform 0.3s var(--ease);
  align-self: center;
}
.phase-head[aria-expanded="true"] .phase-chev { transform: rotate(225deg); border-color: var(--orange); }
.phase-body {
  padding: 0 0.4rem 1.6rem;
  max-width: 44rem;
  margin-left: 7.7rem;
}
.phase-body p { color: var(--ink-soft); font-size: 0.96rem; }
.phase-proves {
  font-style: italic;
  color: var(--orange-deep) !important;
  border-left: 2px solid var(--gold);
  padding-left: 0.9rem;
  margin-top: 0.8rem;
}
.phase-body[hidden] { display: none; }
.phase-body { animation: jdIn 0.35s var(--ease); }

/* ---------- next ---------- */
.section-next {
  background:
    radial-gradient(90% 110% at 0% 0%, #4A3623 0%, transparent 55%),
    var(--espresso);
  color: var(--cream);
}
.next-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  margin-top: 2.6rem;
}
@media (min-width: 44rem) {
  .next-grid { grid-template-columns: repeat(2, 1fr); }
}
.next-card {
  border: 1px solid rgba(184, 135, 59, 0.3);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.2rem;
  background: rgba(255, 252, 247, 0.04);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.next-card:hover { background: rgba(255, 252, 247, 0.08); transform: translateY(-3px); }
.next-num {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin: 0 0 0.7rem;
}
.next-head {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--cream);
  margin: 0 0 0.45rem;
}
.next-card p:last-child {
  font-size: 0.88rem;
  line-height: 1.55;
  color: #C4B199;
  margin: 0;
}
.next-close {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.8vw, 1.7rem);
  font-style: italic;
  color: var(--gold-soft);
  max-width: 40rem;
  margin: 3rem 0 0;
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--espresso);
  border-top: 1px solid rgba(184, 135, 59, 0.3);
  padding: 2.4rem 0 3rem;
  color: #A8957C;
  font-size: 0.84rem;
}
.footer-inner p { margin: 0 0 0.4rem; }
.footer-inner strong { color: var(--cream); font-family: var(--serif); font-weight: 500; }

/* ---------- Application Co-Pilot ---------- */
.section-copilot {
  background:
    radial-gradient(90% 90% at 100% 0%, rgba(184, 135, 59, 0.22) 0%, transparent 55%),
    radial-gradient(70% 80% at 0% 100%, rgba(194, 96, 31, 0.1) 0%, transparent 55%),
    linear-gradient(180deg, #F6EBD3 0%, #F2E3C4 100%);
  border-top: 1px solid var(--gold-soft);
  border-bottom: 1px solid var(--gold-soft);
}
.section-copilot .sec-label { color: var(--orange-deep); }

.cp-grid {
  margin-top: 2.4rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
}
.cp-card {
  background: var(--surface);
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.3rem;
  box-shadow: var(--shadow-warm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.cp-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.cp-card h3 {
  font-size: 1.18rem;
  font-weight: 500;
  margin: 0.8rem 0 0.5rem;
}
.cp-card p { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }
.cp-card .chip-auto    { background: rgba(194, 96, 31, 0.1);  color: var(--orange-deep); }
.cp-card .chip-agency  { background: rgba(184, 135, 59, 0.14); color: #8A6524; }
.cp-card .chip-student { background: rgba(214, 165, 68, 0.16); color: #7A5A18; }
.cp-card .chip-person  { background: var(--espresso); color: var(--cream); border: 0; }

/* answer-bank demo */
.ab-demo {
  margin-top: 2.6rem;
  background: var(--surface);
  border: 1px solid var(--gold-soft);
  border-top: 3px solid var(--gold);
  border-radius: 10px;
  box-shadow: var(--shadow-lift);
  padding: clamp(1.3rem, 3.5vw, 2.2rem);
}
.ab-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.6rem;
}
.ab-title {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  font-weight: 500;
  margin: 0;
}
.ab-sub { font-size: 0.92rem; color: var(--ink-soft); margin: 0.3rem 0 0; }
.ab-controls { display: flex; gap: 0.6rem; padding-top: 0.3rem; }

.ab-stage {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 1.4rem;
  align-items: start;
}
.ab-bank, .ab-form {
  background: var(--ground);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
}
.ab-bank-list { list-style: none; margin: 0; padding: 0; }
.ab-bank-list li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.1rem;
  padding: 0.55rem 0.7rem;
  border-radius: 4px;
  border-left: 3px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.ab-bank-list li.active {
  background: rgba(184, 135, 59, 0.14);
  border-left-color: var(--gold);
}
.ab-bank-list li.done { border-left-color: var(--gold); }
.ab-bank-list li.done .ab-q::after {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  margin-left: 0.5rem;
  vertical-align: 0.12em;
}
.ab-q {
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.ab-a { font-size: 0.9rem; color: var(--ink); font-weight: 500; }

.ab-field {
  padding: 0.6rem 0.7rem;
  border-bottom: 1px dotted var(--rule);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.25rem;
  border-radius: 4px;
  transition: background 0.3s var(--ease);
}
.ab-field:last-child { border-bottom: 0; }
.ab-label {
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.ab-value {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  min-height: 1.4em;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.js .ab-value { opacity: 0; transform: translateY(4px); }
.ab-field.filling { background: rgba(184, 135, 59, 0.12); }
.ab-field.filled .ab-value { opacity: 1; transform: none; }
.ab-field.asked { background: rgba(194, 96, 31, 0.08); border-left: 3px solid var(--orange); }
.ab-field.asked .ab-value {
  opacity: 1;
  transform: none;
  color: var(--orange-deep);
  font-weight: 600;
  font-size: 0.86rem;
}

.ab-approval {
  margin-top: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: wrap;
  background: var(--espresso);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  animation: jdIn 0.45s var(--ease);
}
.ab-approval[hidden] { display: none; }
.ab-approval .mock-label { color: var(--gold); border-bottom-color: rgba(184, 135, 59, 0.4); }
.ab-approval-text { font-size: 0.9rem; color: #D8C8B2; margin: 0; max-width: 38rem; }
.ab-approval-actions { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; }
.ab-result {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.ab-form.submitted { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- responsive ---------- */
@media (max-width: 64rem) {
  .brand { font-size: 1.02rem; }
  .hero-art { opacity: 0.35; right: -10rem; }
  .split, .split-wide { grid-template-columns: 1fr; }
  .split-lead { position: static; }
  .tr-stage { grid-template-columns: 1fr; }
  .cap-grid { grid-template-columns: 1fr; }
  .cap-card:nth-child(5) { grid-column: auto; max-width: none; }
  .cp-grid { grid-template-columns: repeat(2, 1fr); }
  .ab-stage { grid-template-columns: 1fr; }
}

@media (max-width: 48rem) {
  body { font-size: 16px; }
  .site-nav { flex-direction: column; align-items: flex-start; gap: 0.35rem; padding: 0.7rem 1rem; }
  .site-nav.scrolled { padding: 0.5rem 1rem; }
  .nav-links { width: 100%; }
  .hero-inner { padding-top: 9rem; }

  /* journey goes vertical */
  .journey-track { grid-template-columns: 1fr; gap: 0.4rem; }
  .journey-track::before {
    top: 5%;
    bottom: 5%;
    left: 1.34rem;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, var(--gold-soft), var(--gold), var(--gold-soft));
  }
  .j-node {
    flex-direction: row;
    justify-content: flex-start;
    gap: 0.9rem;
    padding: 0.35rem 0;
    text-align: left;
  }
  .j-name { font-size: 0.92rem; }
  .journey-detail { margin-top: 1rem; }
  .journey-track .journey-detail { margin: 0.3rem 0 0.8rem 3.4rem; }

  .mock-grid { grid-template-columns: 1fr; }
  .mock-top { padding-right: 0; }
  .mock-table td:last-child { white-space: normal; }
  .sample-tag { position: static; display: inline-block; margin-bottom: 0.9rem; }
  .phase-head { grid-template-columns: 5rem 1fr auto; gap: 0.8rem; }
  .phase-body { margin-left: 0; }
  .role-tab-sub { display: none; }
  .role-tab { padding: 0.65rem 0.5rem; }
  .cp-grid { grid-template-columns: 1fr; }
}

@media (min-width: 110rem) {
  body { font-size: 18px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .tr-line, .tr-card { opacity: 1 !important; transform: none !important; }
}
