/* =========================================================
   Primary Project Labs — premium rebuild
   Education design studio. Navy + off-white system, Fraunces + Inter.
   All tokens in :root. Cards used sparingly; each section a distinct pattern.
   ========================================================= */

:root {
  --navy:      #1F2456;
  --offwhite:  #FAFAF7;
  --blue-grey: #EEF2F6;
  --white:     #FFFFFF;
  --gold:      #F4B321;
  --orange:    #FF7A1A;
  --ink:       #1A1C2E;
  --muted:     #5B6072;
  --line:      #E2E6ED;

  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Fraunces', 'Source Serif 4', Georgia, serif;

  --container: 1200px;
  --radius: 16px;
  --radius-sm: 10px;
  --section-y: clamp(4.5rem, 9vw, 9rem);

  --shadow-sm: 0 2px 8px rgba(31, 36, 86, 0.05);
  --shadow-md: 0 18px 50px rgba(31, 36, 86, 0.10);
  --shadow-lg: 0 34px 90px rgba(31, 36, 86, 0.18);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  color: var(--ink);
  background: var(--offwhite);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.08;
  font-weight: 600;
  margin: 0 0 0.5em;
  letter-spacing: -0.018em;
}
h1 { font-size: clamp(2.6rem, 1.5rem + 4.6vw, 4rem); }
h2 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.5rem); }
p { margin: 0 0 1rem; }

/* ---- helpers ---- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
.section { padding-block: var(--section-y); }
.section-head { max-width: 680px; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }

.eyebrow {
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--orange); margin: 0 0 1rem;
}
.eyebrow.gold { color: var(--gold); }
.eyebrow.on-dark { color: var(--gold); }
.section-lede { font-size: clamp(1.05rem, 1rem + 0.45vw, 1.22rem); color: var(--muted); max-width: 62ch; }
.section-lede.on-dark, .on-dark .section-lede { color: rgba(250,250,247,0.82); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--white); }

/* ---- reveal on scroll (additive: visible by default; JS adds .is-hidden only when it
       can also remove it, so content never stays blank if JS is slow or fails) ---- */
.reveal { transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-hidden { opacity: 0; transform: translateY(22px); }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-weight: 600; font-size: 0.98rem; padding: 0.9rem 1.7rem;
  border-radius: 999px; border: 1.5px solid transparent; cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.25s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn-primary { background: var(--navy); color: var(--white); position: relative; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); background: linear-gradient(120deg, var(--navy), #2c225a 70%, var(--orange) 220%); }
.btn-ghost { background: rgba(255,255,255,0.06); color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn-ghost:hover { background: rgba(255,255,255,0.14); border-color: var(--white); transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.cta-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }

.text-link { font-weight: 600; color: var(--navy); display: inline-flex; gap: 0.35rem; transition: gap 0.2s var(--ease), color 0.2s var(--ease); }
.text-link:hover { gap: 0.65rem; color: var(--orange); }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250,250,247,0.72);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.scrolled { background: rgba(250,250,247,0.9); backdrop-filter: saturate(150%) blur(12px); border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(31,36,86,0.05); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand-mark { height: 52px; width: auto; }
.brand-word { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; color: var(--navy); letter-spacing: -0.01em; }

.nav { display: flex; align-items: center; }
.nav-menu { display: flex; align-items: center; gap: 1.7rem; list-style: none; margin: 0; padding: 0; }
.nav-menu a { font-size: 0.95rem; font-weight: 500; color: var(--navy); position: relative; transition: color 0.15s ease; }
.nav-menu a[data-nav]::after { content: ""; position: absolute; left: 0; bottom: -7px; width: 0; height: 2px; background: var(--gold); transition: width 0.25s var(--ease); }
.nav-menu a[data-nav]:hover, .nav-menu a[data-nav].active { color: var(--navy); }
.nav-menu a[data-nav]:hover::after, .nav-menu a[data-nav].active::after { width: 100%; }
.nav-menu .nav-cta { padding: 0.55rem 1.25rem; border: 1.5px solid var(--navy); border-radius: 999px; color: var(--navy); font-weight: 600; transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease); }
.nav-menu .nav-cta:hover { background: var(--navy); color: var(--white); transform: translateY(-1px); }
.nav-menu a:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; border-radius: 4px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- Hero ---------------- */
.hero { position: relative; min-height: min(92vh, 820px); display: flex; align-items: flex-end; padding-block: clamp(4rem, 12vh, 9rem); overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: kenburns 22s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.06); } to { transform: scale(1.16); } }
.hero-overlay { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(20,24,60,0.62) 0%, rgba(20,24,60,0.42) 35%, rgba(18,21,54,0.78) 100%),
  linear-gradient(90deg, rgba(18,21,54,0.85) 0%, rgba(18,21,54,0.25) 60%, transparent 100%); }
.hero-glow { position: absolute; width: 540px; height: 540px; border-radius: 50%; left: var(--gx, 30%); top: var(--gy, 40%); transform: translate(-50%,-50%);
  background: radial-gradient(circle, rgba(244,179,33,0.18), transparent 60%); pointer-events: none; transition: left 0.3s ease, top 0.3s ease; opacity: 0.9; }
.hero-content { position: relative; z-index: 2; max-width: 880px; }
.hero-content h1 { color: var(--white); max-width: 16ch; }
.hero-sub { color: rgba(250,250,247,0.9); font-size: clamp(1.1rem, 1rem + 0.6vw, 1.4rem); max-width: 52ch; margin-top: 1.2rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; margin: 1.6rem 0 0; padding: 0; }
.hero-trust span { color: var(--white); font-size: 0.9rem; font-weight: 600; position: relative; padding-left: 1.1rem; }
.hero-trust span::before { content: ""; position: absolute; left: 0; top: 50%; width: 7px; height: 7px; transform: translateY(-50%); border-radius: 50%; background: var(--gold); }
.hero-rhythm { display: flex; align-items: center; gap: 0.8rem; margin: 2.4rem 0 0; color: rgba(250,250,247,0.7); font-family: var(--font-display); font-style: italic; letter-spacing: 0.02em; }
.hero-rhythm i { width: clamp(1.5rem, 4vw, 3rem); height: 1px; background: rgba(244,179,33,0.7); display: inline-block; }

/* ---------------- Editorial split (studio) ---------------- */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.lead-para { font-size: clamp(1.15rem, 1rem + 0.7vw, 1.45rem); font-family: var(--font-display); font-weight: 400; line-height: 1.4; color: var(--navy); margin-bottom: 1.6rem; }
.studio-beats p { color: var(--muted); }
.studio-beats strong { color: var(--navy); }
.studio-line { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); color: var(--muted); font-style: italic; }
.framed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); position: relative; }
.framed::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(31,36,86,0.12); border-radius: var(--radius); pointer-events: none; }
.framed img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/11; transition: transform 0.6s var(--ease); }
.split-media:hover .framed img { transform: scale(1.04); }
.split-media figcaption, .engine-art figcaption { margin-top: 0.9rem; font-size: 0.85rem; color: var(--muted); letter-spacing: 0.01em; }
.framed-dark { box-shadow: var(--shadow-lg); }

/* ---------------- Bands ---------------- */
.band-soft { background: var(--blue-grey); }
.band-navy { background: var(--navy); color: var(--offwhite); }

/* ---------------- Projects ---------------- */
.grade-feature { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: clamp(1.6rem, 3vw, 2.6rem); margin-bottom: 2rem; border-top: 3px solid var(--gold); }
.grade-feature-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem; padding-bottom: 1.6rem; border-bottom: 1px solid var(--line); margin-bottom: 0.5rem; }
.grade-feature-head h3 { font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.1rem); margin: 0.6rem 0 0.5rem; }
.grade-feature-head p { color: var(--muted); margin: 0; max-width: 54ch; }
.grade-status { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; padding: 0.3rem 0.75rem; border-radius: 999px; }
.grade-status.available { background: var(--gold); color: var(--navy); }
.grade-status.soon { background: var(--blue-grey); color: var(--muted); }
.grade-figure { font-family: var(--font-display); font-weight: 600; font-size: clamp(3rem, 6vw, 5rem); color: var(--line); line-height: 0.8; }
.grade-figure.sm { font-size: 2.4rem; color: var(--gold); }

.lab-index { list-style: none; margin: 0; padding: 0; }
.lab-row { display: grid; grid-template-columns: 48px 1fr auto; gap: 1.2rem; align-items: start; padding: 1.5rem 0.5rem; border-bottom: 1px solid var(--line); transition: background 0.25s var(--ease), padding-left 0.25s var(--ease); border-radius: var(--radius-sm); }
.lab-row:last-child { border-bottom: 0; }
.lab-row:hover, .lab-row:focus-within { background: var(--offwhite); padding-left: 1rem; }
.lab-no { font-family: var(--font-display); font-weight: 700; color: var(--gold); font-size: 1.1rem; }
.lab-main h4 { font-family: var(--font-display); font-size: 1.25rem; color: var(--navy); margin: 0 0 0.35rem; }
.lab-main p { color: var(--muted); margin: 0 0 0.8rem; max-width: 60ch; }
.lab-tag { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 0.25rem 0.7rem; white-space: nowrap; align-self: center; }
.pill-row { list-style: none; display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0 0 0.9rem; padding: 0; }
.pill { font-size: 0.8rem; font-weight: 600; color: var(--navy); background: var(--blue-grey); border-radius: 999px; padding: 0.35rem 0.8rem; }
.sample-link { font-size: 0.9rem; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 1px; transition: color 0.2s var(--ease), border-color 0.2s var(--ease); }
.sample-link:hover { color: var(--navy); border-color: var(--gold); }
.soon-tag { color: var(--muted); font-weight: 500; border: 0; }

/* Projects intro: heading + Earth Systems feature art */
.projects-intro { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.projects-intro .section-head { margin-bottom: 0; }
.projects-art { margin: 0; }
.projects-art .framed img { aspect-ratio: 16/9; }

/* Rhythm: Learning Spiral feature art inside the sticky panel */
.rhythm-art { margin: 1.6rem 0 0; }
.rhythm-art .framed img { aspect-ratio: 16/9; }

.grade-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.grade-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.grade-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.grade-card h3 { margin: 0.4rem 0 0.2rem; font-size: 1.3rem; }
.grade-id { color: var(--muted); font-size: 0.92rem; margin: 0 0 0.9rem; }
.grade-card.tailor { background: var(--navy); border-color: var(--navy); }
.grade-card.tailor h3, .grade-card.tailor .grade-figure.sm { color: var(--white); }
.grade-card.tailor .grade-id { color: rgba(250,250,247,0.7); }
.grade-card.tailor .text-link { color: var(--gold); }
.grade-card.tailor .text-link:hover { color: var(--white); }
.grade-note { margin-top: 1.5rem; color: var(--muted); font-size: 0.95rem; }

/* ---------------- Framework ---------------- */
.framework-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.framework-list { list-style: none; margin: 0; padding: 0; counter-reset: fw; }
.framework-list li { display: grid; grid-template-columns: 56px 1fr; gap: 1.2rem; padding: 1.4rem 0; border-top: 1px solid var(--line); }
.framework-list li:first-child { border-top: 0; padding-top: 0; }
.fw-no { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--gold); }
.framework-list h3 { font-size: 1.2rem; margin-bottom: 0.3rem; }
.framework-list p { color: var(--muted); margin: 0; }
.framework-why { background: var(--navy); color: var(--offwhite); border-radius: var(--radius); padding: 2rem; position: sticky; top: 110px; box-shadow: var(--shadow-md); }
.why-eyebrow { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin: 0 0 1rem; }
.why-quote { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.35; color: var(--white); margin: 0 0 1.5rem; }
.why-points { list-style: none; margin: 0; padding: 1.3rem 0 0; border-top: 1px solid rgba(255,255,255,0.15); display: grid; gap: 0.8rem; }
.why-points li { position: relative; padding-left: 1.4rem; color: rgba(250,250,247,0.88); font-size: 0.95rem; }
.why-points li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

/* ---------------- Rhythm (sticky panel sequence) ---------------- */
.rhythm-wrap { margin-top: clamp(3rem, 6vw, 5rem); }
.rhythm-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.rhythm-panel { position: sticky; top: 110px; background: var(--blue-grey); border-radius: var(--radius); padding: 2.2rem; border-left: 3px solid var(--gold); }
.rhythm-active-no { font-family: var(--font-display); font-weight: 700; font-size: 3.5rem; color: var(--gold); line-height: 1; margin: 0.4rem 0 0.2rem; }
.rhythm-panel h3 { font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.2rem); margin: 0 0 0.5rem; }
.rhythm-panel > p:not(.eyebrow):not(.rhythm-count) { color: var(--muted); font-size: 1.08rem; min-height: 3.2em; }
.rhythm-count { margin-top: 1.2rem; font-size: 0.85rem; color: var(--muted); letter-spacing: 0.02em; }
.rhythm-steps { list-style: none; margin: 0; padding: 0; position: relative; }
.rhythm-steps::before { content: ""; position: absolute; left: 22px; top: 22px; bottom: 22px; width: 2px; background: var(--line); }
.rhythm-steps::after { content: ""; position: absolute; left: 22px; top: 22px; width: 2px; height: var(--prog, 0%); background: var(--gold); transition: height 0.4s var(--ease); }
.r-step { display: flex; align-items: center; gap: 1.1rem; padding: 0.9rem 0; cursor: pointer; position: relative; z-index: 1; }
.r-node { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--white); border: 2px solid var(--line); color: var(--muted); font-family: var(--font-display); font-weight: 600; transition: all 0.3s var(--ease); }
.r-label { font-family: var(--font-display); font-size: 1.25rem; color: var(--muted); transition: color 0.3s var(--ease); }
.r-step:hover .r-label, .r-step:focus-visible .r-label { color: var(--navy); }
.r-step.is-active .r-node { background: var(--navy); color: var(--white); border-color: var(--navy); box-shadow: 0 0 0 4px rgba(244,179,33,0.25); }
.r-step.is-active .r-label { color: var(--navy); }
.r-step:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

/* ---------------- Staircase ---------------- */
.staircase-sec .staircase { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; align-items: end; }
.staircase-sec .stair {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.16);
  border-top: 3px solid var(--gold); border-radius: var(--radius); padding: 1.8rem 1.5rem;
  position: relative; margin-bottom: calc(var(--i) * clamp(1rem, 2.4vw, 2.2rem));
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.staircase-sec .stair:hover, .staircase-sec .stair:focus-visible { transform: translateY(-6px); background: rgba(255,255,255,0.1); outline: none; }
.staircase-sec .stair::after { content: ""; position: absolute; right: -0.95rem; top: 1.4rem; width: 0.9rem; height: 2px; background: rgba(244,179,33,0.6); }
.staircase-sec .stair:last-child::after { display: none; }
.stair-grade { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.staircase-sec .stair h3 { color: var(--white); margin: 0.6rem 0 0.8rem; font-size: 1.25rem; }
.stair-q { font-family: var(--font-display); font-style: italic; color: rgba(250,250,247,0.7); margin: 0; max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.35s var(--ease), opacity 0.35s var(--ease); }
.staircase-sec .stair:hover .stair-q, .staircase-sec .stair:focus-visible .stair-q, .staircase-sec .stair.is-active .stair-q { max-height: 5em; opacity: 1; }

/* ---------------- Engine ---------------- */
.engine-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.engine-art .framed img { aspect-ratio: 16/9; }
.clusters { list-style: none; margin: 0; padding: 0 0 0 0.5rem; position: relative; }
.clusters::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 2px; background: linear-gradient(var(--gold), var(--line)); }
.cluster { border-bottom: 1px solid var(--line); }
.cluster-head { width: 100%; display: grid; grid-template-columns: 44px 1fr 24px; gap: 1rem; align-items: center; background: none; border: 0; cursor: pointer; padding: 1.3rem 0; text-align: left; }
.cluster-no { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--navy); background: var(--white); width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--line); box-shadow: 0 0 0 4px var(--offwhite); margin-left: -20px; }
.cluster-title { font-family: var(--font-display); font-size: 1.2rem; color: var(--navy); font-weight: 600; }
.cluster-icon { position: relative; width: 16px; height: 16px; justify-self: end; }
.cluster-icon::before, .cluster-icon::after { content: ""; position: absolute; background: var(--gold); transition: transform 0.3s var(--ease); }
.cluster-icon::before { left: 0; top: 7px; width: 16px; height: 2px; }
.cluster-icon::after { left: 7px; top: 0; width: 2px; height: 16px; }
.cluster.is-open .cluster-icon::after { transform: scaleY(0); }
.strand-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.4s var(--ease), opacity 0.3s var(--ease), padding 0.4s var(--ease); }
.cluster.is-open .strand-tags { max-height: 14rem; opacity: 1; padding: 0 0 1.4rem 56px; }
.strand-tags li { font-size: 0.84rem; font-weight: 500; color: var(--navy); background: var(--blue-grey); border-radius: 999px; padding: 0.35rem 0.8rem; }

/* ---------------- Who We Serve (selector) ---------------- */
.serve-selector { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-md); overflow: hidden; }
.serve-list { display: flex; flex-direction: column; background: var(--navy); }
.serve-tab { background: none; border: 0; border-left: 3px solid transparent; color: rgba(250,250,247,0.72); font-family: var(--font-display); font-size: 1.15rem; text-align: left; padding: 1.15rem 1.6rem; cursor: pointer; transition: color 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease); }
.serve-tab:hover { color: var(--white); background: rgba(255,255,255,0.05); }
.serve-tab.is-active { color: var(--white); border-left-color: var(--gold); background: rgba(255,255,255,0.08); }
.serve-tab:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.serve-detail { padding: clamp(1.8rem, 3.5vw, 2.8rem); }
.serve-detail h3 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem); margin-bottom: 1.4rem; }
.serve-dl { margin: 0; display: grid; gap: 1.2rem; }
.serve-dl dt { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--orange); margin-bottom: 0.3rem; }
.serve-dl dd { margin: 0; color: var(--ink); font-size: 1.02rem; }

/* ---------------- Insights ---------------- */
.field-notes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.field-notes li { padding: 1.8rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); position: relative; transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.field-notes li:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.note-no { font-family: var(--font-display); font-weight: 700; color: var(--gold); font-size: 1.1rem; }
.field-notes h3 { font-size: 1.2rem; margin: 0.6rem 0 0.4rem; }
.field-notes p { color: var(--muted); margin: 0 0 1.2rem; font-size: 0.95rem; }
.note-soon { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }

/* ---------------- Contact ---------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-details { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1rem; }
.contact-details li { display: grid; grid-template-columns: 64px 1fr; gap: 0.8rem; align-items: baseline; }
.contact-details span { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(250,250,247,0.6); }
.contact-details a { font-weight: 600; color: var(--white); }
.contact-details a:hover { color: var(--gold); }

.brand-film { margin-top: 2.2rem; }
.film-play { display: inline-flex; align-items: center; gap: 0.8rem; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.3); border-radius: 999px; padding: 0.7rem 1.2rem 0.7rem 0.7rem; cursor: pointer; transition: background 0.2s var(--ease), border-color 0.2s var(--ease); }
.film-play:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }
.film-tri { width: 34px; height: 34px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; flex: none; position: relative; }
.film-tri::after { content: ""; border-left: 11px solid var(--navy); border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
.film-label { color: var(--white); font-weight: 600; font-size: 0.92rem; }
#filmVideo { margin-top: 1rem; width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); }

.contact-form { display: grid; gap: 1.2rem; background: var(--white); border-radius: var(--radius); padding: clamp(1.6rem, 3vw, 2.4rem); box-shadow: var(--shadow-lg); }
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 600; font-size: 0.9rem; color: var(--navy); }
.field input, .field select, .field textarea { font-family: var(--font-body); font-size: 1rem; color: var(--ink); background: var(--offwhite); border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 0.8rem 0.95rem; transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); background: var(--white); box-shadow: 0 0 0 3px rgba(31,36,86,0.12); }
.contact-form .btn { justify-self: start; }
.hidden-field { display: none; }

/* ---------------- Footer ---------------- */
.site-footer { background: #181B40; color: rgba(250,250,247,0.85); padding-top: clamp(3rem, 5vw, 4rem); }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.footer-brand { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "mark name" "mark tag" "desc desc"; column-gap: 0.9rem; align-items: center; }
.footer-mark { grid-area: mark; width: 50px; height: 50px; align-self: start; }
.footer-name { grid-area: name; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--offwhite); align-self: end; }
.footer-tag { grid-area: tag; color: var(--gold); font-size: 0.9rem; font-weight: 500; align-self: start; }
.footer-desc { grid-area: desc; color: rgba(250,250,247,0.65); font-size: 0.92rem; margin: 1rem 0 0; }
.footer-nav { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-nav a { color: rgba(250,250,247,0.8); font-size: 0.95rem; width: max-content; transition: color 0.15s ease; }
.footer-nav a:hover { color: var(--gold); }
.footer-meta { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.92rem; }
.footer-meta a { width: max-content; }
.footer-meta a:hover { color: var(--gold); }
.footer-fine { color: rgba(250,250,247,0.5); font-size: 0.82rem; margin-top: 0.3rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-block: 1.4rem; font-size: 0.82rem; color: rgba(250,250,247,0.5); }

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

/* ---------------- Responsive ---------------- */
@media (max-width: 1000px) {
  .split, .framework-grid, .rhythm-grid, .engine-grid, .contact-grid, .serve-selector, .projects-intro { grid-template-columns: 1fr; }
  .projects-art { order: -1; }
  .framework-why, .rhythm-panel { position: static; }
  .split-media { order: -1; }
  .grade-strip { grid-template-columns: repeat(2, 1fr); }
  .staircase-sec .staircase { grid-template-columns: repeat(2, 1fr); align-items: stretch; }
  .staircase-sec .stair { margin-bottom: 0; }
  .staircase-sec .stair::after { display: none; }
  .stair-q { max-height: 5em; opacity: 1; }
  .field-notes { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .serve-list { flex-direction: row; overflow-x: auto; }
  .serve-tab { white-space: nowrap; border-left: 0; border-bottom: 3px solid transparent; }
  .serve-tab.is-active { border-left: 0; border-bottom-color: var(--gold); }
}

@media (max-width: 640px) {
  .brand-word { display: none; }
  .nav-toggle { display: flex; }
  .nav-menu { position: absolute; top: 84px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0.25rem; background: var(--offwhite); border-bottom: 1px solid var(--line); padding: 1rem clamp(1.25rem, 4vw, 2.5rem) 1.5rem; box-shadow: var(--shadow-md); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease; }
  .nav-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-menu li { width: 100%; }
  .nav-menu a { display: block; padding: 0.6rem 0; width: 100%; }
  .nav-menu a[data-nav]::after { display: none; }
  .nav-menu .nav-cta { display: inline-block; margin-top: 0.5rem; }
  .grade-feature-head { flex-direction: column; }
  .lab-row { grid-template-columns: 36px 1fr; }
  .lab-tag { grid-column: 2; justify-self: start; margin-top: 0.4rem; }
  .grade-strip, .field-notes, .footer-inner { grid-template-columns: 1fr; }
  .staircase-sec .staircase { grid-template-columns: 1fr; }
  .cta-row .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal, .reveal.is-hidden { opacity: 1; transform: none; }
  .hero-img { transform: none; }
}
