/* =========================================================
   Primary Project Labs — revised premium homepage system
   ========================================================= */

:root {
  --navy: #1F2456;
  --navy-deep: #191D49;
  --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: 18px;
  --radius-sm: 11px;
  --section-y: clamp(4.75rem, 8vw, 8.5rem);
  --shadow-sm: 0 2px 12px rgba(31,36,86,0.06);
  --shadow-md: 0 18px 45px rgba(31,36,86,0.12);
  --shadow-lg: 0 34px 90px rgba(31,36,86,0.20);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 104px; }
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;
}
body.intro-open, body.lightbox-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

h1, h2, h3, h4 {
  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.85rem, 1.45rem + 5.2vw, 5rem); }
h2 { font-size: clamp(2rem, 1.25rem + 3vw, 3.4rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.55rem); }
p { margin: 0 0 1rem; }

.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: 760px; margin-bottom: clamp(2.25rem, 4vw, 3.5rem); }
.section-head .section-lede { margin-top: 1.25rem; }
.eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 1rem;
}
.eyebrow.gold, .eyebrow.on-dark { color: var(--gold); }
.section-lede { font-size: clamp(1.05rem, 1rem + 0.45vw, 1.22rem); color: var(--muted); max-width: 68ch; }
.section-lede.on-dark, .on-dark .section-lede { color: rgba(250,250,247,0.84); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--white); }

.reveal { opacity: 1; transform: none; }
.reveal.is-hidden { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 0.95rem 1.85rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.22s var(--ease), background 0.25s var(--ease), color 0.2s var(--ease), box-shadow 0.25s var(--ease), border-color 0.2s var(--ease), filter 0.25s var(--ease);
  will-change: transform;
}
.btn-primary { background: var(--navy); color: var(--white); box-shadow: 0 14px 30px rgba(31,36,86,0.22); }
.btn-primary:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(31,36,86,0.28); background: #272C67; }
.btn-ghost { background: rgba(255,255,255,0.08); color: var(--white); border-color: rgba(255,255,255,0.48); box-shadow: 0 14px 32px rgba(0,0,0,0.16); }
.btn-ghost:hover { background: rgba(255,255,255,0.18); border-color: var(--white); transform: translateY(-4px); box-shadow: 0 26px 56px rgba(0,0,0,0.24); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }
.text-link { font-weight: 700; 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.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(226,230,237,0.72);
  transition: background .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.site-header.scrolled { background: rgba(250,250,247,0.96); box-shadow: 0 10px 32px rgba(31,36,86,0.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: clamp(1rem, 3vw, 2.5rem); min-height: 92px; }
.brand { display: flex; align-items: center; gap: 0.85rem; flex: none; }
.brand-mark { height: 72px; width: auto; filter: drop-shadow(0 6px 12px rgba(31,36,86,0.08)); }
.brand-word { font-family: var(--font-display); font-weight: 650; font-size: clamp(1.18rem, 1rem + .7vw, 1.5rem); color: var(--navy); letter-spacing: -0.01em; }
.nav { display: flex; align-items: center; min-width: 0; }
.nav-menu { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.65rem); list-style: none; margin: 0; padding: 0; }
.nav-menu a {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--navy);
  position: relative;
  white-space: nowrap;
  padding: .4rem .05rem;
  cursor: pointer;
  transition: color .18s var(--ease), transform .18s var(--ease), opacity .18s var(--ease);
}
.nav-menu a[data-nav]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  width: 0;
  height: 3px;
  background: var(--gold);
  border-radius: 99px;
  transition: width 0.25s var(--ease), box-shadow .25s var(--ease);
}
.nav-menu a[data-nav]:hover { color: var(--orange); transform: translateY(-1px); }
.nav-menu a[data-nav]:hover::after, .nav-menu a[data-nav].active::after { width: 100%; box-shadow: 0 5px 12px rgba(244,179,33,.28); }
.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 .2s ease, opacity .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(4.5rem, 12vh, 9rem); overflow: hidden; background: var(--navy); }
.hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06) translate(calc(var(--mx,0) * -10px), calc(var(--my,0) * -8px)); transition: transform .28s ease-out; animation: kenburns 22s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.06); } to { transform: scale(1.13); } }
.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.84) 100%), linear-gradient(90deg, rgba(18,21,54,0.88) 0%, rgba(18,21,54,0.32) 58%, transparent 100%); }
.hero-glow { position: absolute; width: 620px; height: 620px; border-radius: 50%; left: var(--gx, 32%); top: var(--gy, 42%); transform: translate(-50%,-50%); background: radial-gradient(circle, rgba(244,179,33,0.23), rgba(255,122,26,0.09) 35%, transparent 68%); pointer-events: none; transition: left .22s ease, top .22s ease; opacity: .95; mix-blend-mode: screen; }
.hero-content { position: relative; z-index: 2; max-width: 880px; }
.hero-content h1 { color: var(--white); max-width: 18ch; text-shadow: 0 14px 36px rgba(0,0,0,.28); }
.hero-badge { display: inline-block; color: var(--white); background: rgba(244,179,33,0.14); border: 1px solid rgba(244,179,33,0.68); border-radius: 999px; padding: .44rem 1rem; letter-spacing: .1em; margin-bottom: 1.5rem; box-shadow: 0 12px 30px rgba(0,0,0,.16); }
.hero-sub { color: rgba(250,250,247,0.92); font-size: clamp(1.1rem, 1rem + .6vw, 1.4rem); max-width: 52ch; margin-top: 1.2rem; }
.hero-rhythm { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem; margin: 2.4rem 0 0; color: rgba(250,250,247,.76); font-family: var(--font-display); font-style: italic; letter-spacing: .02em; }
.hero-rhythm i { width: clamp(1.2rem, 3vw, 2.4rem); height: 1px; background: rgba(244,179,33,.7); display: inline-block; }
.hero .cta-row .btn-primary { background: rgba(244,179,33,.17); color: var(--white); border-color: var(--gold); box-shadow: 0 16px 42px rgba(0,0,0,.24), inset 0 0 0 1px rgba(255,255,255,.05); }
.hero .cta-row .btn-primary:hover { background: rgba(244,179,33,.31); border-color: var(--gold); box-shadow: 0 26px 60px rgba(0,0,0,.34), 0 0 0 5px rgba(244,179,33,.08); }

/* Studio */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem,5vw,4.5rem); align-items: start; }
.lead-para { font-size: clamp(1.14rem, 1rem + .65vw, 1.42rem); font-family: var(--font-display); font-weight: 400; line-height: 1.43; color: var(--navy); margin-bottom: 1.4rem; }
.studio-body { color: var(--muted); }
.split-media .framed { border: 10px solid var(--navy); box-shadow: 0 22px 55px rgba(31,36,86,.18); }
.zoom-btn { display: block; width: 100%; background: transparent; padding: 0; border: 0; cursor: zoom-in; text-align: left; }
.framed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); position: relative; display: block; }
.framed::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(31,36,86,.12); border-radius: inherit; pointer-events: none; }
.framed img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/10; transition: transform .65s var(--ease); }
.zoom-btn:hover .framed img { transform: scale(1.045); }
figcaption { margin-top: .9rem; font-size: .88rem; color: var(--muted); }

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

/* Framework */
.framework-grid { display: grid; grid-template-columns: minmax(0,1.28fr) minmax(280px,.72fr); gap: clamp(2rem,5vw,4rem); align-items: start; }
.framework-list { list-style: none; margin: 0; padding: 0; }
.framework-list li { display: grid; grid-template-columns: 56px 1fr 150px; gap: 1.2rem; align-items: center; padding: 1.25rem 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.18rem; margin-bottom: .28rem; }
.framework-list p { color: var(--muted); margin: 0; }
.fw-media { margin: 0; }
.fw-media .framed { border: 3px solid rgba(31,36,86,.06); box-shadow: 0 12px 26px rgba(31,36,86,.12); }
.fw-media .framed img { aspect-ratio: 16/9; }
.framework-why { background: var(--navy); color: var(--offwhite); border-radius: var(--radius); padding: 2rem; position: sticky; top: 120px; box-shadow: 0 34px 80px rgba(31,36,86,.24); border: 1px solid rgba(244,179,33,.35); outline: 8px solid rgba(31,36,86,.05); }
.why-eyebrow { font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 0 0 1rem; }
.why-quote { font-family: var(--font-display); font-size: 1.28rem; 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,.15); display: grid; gap: .85rem; }
.why-points li { position: relative; padding-left: 1.35rem; color: rgba(250,250,247,.88); font-size: .95rem; }
.why-points li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.why-points strong { color: var(--white); }

/* Rhythm */
.rhythm-wrap { margin-top: clamp(3rem,6vw,5.5rem); position: relative; border-radius: 28px; overflow: hidden; padding-block: clamp(3rem,6vw,5rem); color: var(--offwhite); box-shadow: var(--shadow-lg); }
.rhythm-wrap::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(31,36,86,.92), rgba(31,36,86,.73)), url('assets/images/hero-build.jpg') center/cover no-repeat; z-index: 0; transform: scale(1.02); }
.rhythm-wrap > * { position: relative; z-index: 1; }
.rhythm-wrap .section-head h2, .rhythm-wrap .r-name { color: var(--white); }
.rhythm-wrap .section-lede { color: rgba(250,250,247,.84); }
.rhythm-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem 2rem; max-width: 940px; }
.r-step { display: grid; grid-template-columns: 64px 1fr; gap: 1.1rem; align-items: start; padding: 1rem 0; border-top: 1px solid rgba(250,250,247,.18); transition: transform .2s var(--ease); }
.r-step:hover { transform: translateX(4px); }
.r-no { font-family: var(--font-display); font-weight: 800; color: var(--gold); font-size: 1.25rem; }
.r-name { font-size: 1.18rem; margin: 0 0 .25rem; }
.r-desc { color: rgba(250,250,247,.78); margin: 0; }

/* Projects */
.grade-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 1.1rem; margin-bottom: 0; }
.grade-card { display: flex; flex-direction: column; min-height: 100%; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .24s var(--ease), box-shadow .24s var(--ease), border-color .24s var(--ease); cursor: pointer; }
.grade-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: rgba(244,179,33,.65); }
.grade-card.is-tailor { background: var(--navy); border-color: var(--navy); color: var(--offwhite); padding: 1.5rem; justify-content: space-between; }
.grade-card.is-tailor h3, .grade-card.is-tailor .grade-id { color: var(--white); }
.grade-card.is-tailor .grade-focus { color: rgba(250,250,247,.78); }
.grade-card.is-tailor .text-link { color: var(--gold); }
.grade-media { position: relative; display: block; overflow: hidden; aspect-ratio: 16/9; background: var(--blue-grey); }
.grade-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.grade-card:hover .grade-media img { transform: scale(1.06); }
.grade-num { position: absolute; left: 1rem; bottom: .85rem; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; background: var(--gold); color: var(--navy); border-radius: 999px; font-family: var(--font-display); font-weight: 800; box-shadow: 0 10px 25px rgba(0,0,0,.18); }
.grade-body { display: flex; flex-direction: column; padding: 1.35rem 1.35rem 1.55rem; flex: 1; }
.grade-status { align-self: flex-start; display: inline-flex; align-items: center; padding: .35rem .8rem; border-radius: 999px; background: var(--blue-grey); color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1rem; }
.grade-status.soon { background: var(--blue-grey); color: var(--muted); }
.grade-card h3 { margin-bottom: .12rem; }
.grade-id { color: var(--muted); font-weight: 700; margin-bottom: .9rem; }
.grade-focus { color: var(--muted); font-size: .98rem; }
.grade-cta { margin-top: auto; padding-top: 1rem; }
.grade-figure.sm { font-size: 3.25rem; color: var(--white); font-weight: 700; }
.journey-note { display: block; margin-top: 1rem; padding: .85rem; border-radius: 12px; background: var(--blue-grey); color: var(--muted); font-size: .9rem; }
.grade-card.is-tailor .journey-note { background: rgba(255,255,255,.08); color: rgba(250,250,247,.8); }
.grade-feature, .pathway-wrap { display: none !important; }

/* Who We Serve */
.serve-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.35rem; }
.serve-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .24s var(--ease), box-shadow .24s var(--ease), border-color .24s var(--ease); }
.serve-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); border-color: rgba(244,179,33,.55); }
.serve-media { display: block; aspect-ratio: 16/7.5; overflow: hidden; background: var(--blue-grey); }
.serve-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s var(--ease); }
.serve-card:hover .serve-media img { transform: scale(1.055); }
.serve-body { display: block; padding: 1.45rem; }
.serve-body h3 { margin-bottom: 1rem; }
.serve-dl { margin: 0; display: grid; gap: 1rem; }
.serve-dl div:nth-child(3) { display: none; }
.serve-dl dt { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); margin-bottom: .38rem; }
.serve-dl dd { margin: 0; color: var(--ink); }

/* Engine */
.engine { background: var(--navy); color: var(--offwhite); position: relative; overflow: hidden; }
.engine::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 16% 20%, rgba(244,179,33,.11), transparent 28%), radial-gradient(circle at 88% 75%, rgba(255,122,26,.08), transparent 34%); pointer-events: none; }
.engine > .container { position: relative; z-index: 1; }
.engine .eyebrow { color: var(--gold); }
.engine .section-head h2 { color: var(--white); }
.engine .section-lede { color: rgba(250,250,247,.82); }
.engine-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem,5vw,4rem); align-items: start; }
.engine-art .framed { border: 1px solid rgba(244,179,33,.32); box-shadow: 0 34px 90px rgba(0,0,0,.28); }
.engine-art img { aspect-ratio: 16/10; object-fit: cover; }
.engine figcaption { color: rgba(250,250,247,.68); }
.clusters.engine-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
.engine-card { background: rgba(250,250,247,.08); border: 1px solid rgba(250,250,247,.16); border-top: 3px solid var(--gold); border-radius: var(--radius); padding: 1.35rem; box-shadow: 0 24px 50px rgba(0,0,0,.16); transition: transform .22s var(--ease), background .22s var(--ease), border-color .22s var(--ease); }
.engine-card:hover { transform: translateY(-5px); background: rgba(250,250,247,.12); border-color: rgba(244,179,33,.48); }
.engine-card h3 { color: var(--white); font-size: 1.18rem; margin-bottom: .9rem; }
.cluster-no { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 999px; border: 1px solid rgba(244,179,33,.45); color: var(--gold); font-family: var(--font-display); font-weight: 800; margin-bottom: .8rem; }
.strand-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.strand-tags li { background: rgba(250,250,247,.11); color: rgba(250,250,247,.9); border: 1px solid rgba(250,250,247,.14); border-radius: 999px; padding: .45rem .7rem; font-size: .88rem; }
.cluster-head, .cluster-meta, .cluster-icon { display: none; }

/* Insights */
.field-notes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.25rem; }
.field-notes li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease); }
.field-notes li:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(244,179,33,.5); }
.note-no { font-family: var(--font-display); color: var(--gold); font-weight: 800; font-size: 1.15rem; display: block; margin-bottom: 1rem; }
.field-notes h3 { font-size: 1.18rem; }
.field-notes p { color: var(--muted); }
.note-soon { display: inline-flex; margin-top: 1.25rem; font-size: .75rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }

/* Contact */
.contact { background: var(--navy); position: relative; overflow: hidden; }
.contact::after { content: ""; position: absolute; inset: auto 0 0 0; height: 1px; background: rgba(250,250,247,.1); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem,5vw,5rem); align-items: center; }
.contact-intro h2 { color: var(--white); font-size: clamp(2.4rem,1.6rem + 3vw,4rem); }
.contact-intro .section-lede { color: rgba(250,250,247,.82); }
.contact-details { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: .85rem; }
.contact-details li { margin: 0; }
.contact-details a { color: var(--white); font-weight: 700; border-bottom: 1px solid rgba(244,179,33,.45); transition: color .2s var(--ease), border-color .2s var(--ease); }
.contact-details a:hover { color: var(--gold); border-color: var(--gold); }
.contact-form { background: var(--white); color: var(--ink); border-radius: 22px; padding: clamp(1.5rem,4vw,2.4rem); box-shadow: 0 38px 100px rgba(0,0,0,.28); }
.field { display: grid; gap: .5rem; margin-bottom: 1.2rem; }
.field label { color: var(--navy); font-weight: 800; font-size: .9rem; }
.field input, .field select, .field textarea { width: 100%; border: 1.5px solid var(--line); background: var(--offwhite); border-radius: 12px; padding: .9rem 1rem; color: var(--ink); transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--gold); background: var(--white); box-shadow: 0 0 0 4px rgba(244,179,33,.14); }
.hidden-field { display: none; }
.form-status { margin-top: 1rem; font-weight: 700; }
.form-status.ok { color: #155724; }
.form-status.err { color: #8a1f11; }

/* Footer */
.site-footer { background: var(--navy-deep); color: rgba(250,250,247,.78); padding-block: clamp(3.5rem,7vw,5.5rem) 2rem; }
.footer-inner { display: grid; grid-template-columns: 1.25fr .75fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: start; }
.footer-brand { display: grid; grid-template-columns: 76px 1fr; column-gap: 1rem; align-items: center; }
.footer-mark { width: 76px; height: auto; grid-row: span 2; }
.footer-name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--white); align-self: end; }
.footer-tag { color: var(--gold); font-weight: 700; align-self: start; }
.footer-desc { grid-column: 1 / -1; color: rgba(250,250,247,.62); margin-top: 2rem; }
.footer-nav, .footer-meta { display: grid; gap: .7rem; }
.footer-nav a, .footer-meta a { color: rgba(250,250,247,.78); transition: color .2s var(--ease), transform .2s var(--ease); }
.footer-nav a:hover, .footer-meta a:hover { color: var(--gold); transform: translateX(3px); }
.footer-fine { color: rgba(250,250,247,.54); margin-top: .75rem; }
.footer-fine span { display: inline-block; color: var(--gold); margin-top: .4rem; }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(250,250,247,.14); color: rgba(250,250,247,.5); }

/* Lightbox + Dialog */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(17,20,48,.82); display: grid; place-items: center; padding: 2rem; }
.lightbox[hidden] { display: none; }
.lightbox-close, .demo-close { position: absolute; right: 1rem; top: 1rem; border: 0; border-radius: 999px; width: 42px; height: 42px; cursor: pointer; background: var(--white); color: var(--navy); font-size: 1.5rem; box-shadow: var(--shadow-md); }
.lightbox-figure { max-width: min(1000px,90vw); margin: 0; }
.lightbox-figure img { border-radius: 18px; max-height: 78vh; object-fit: contain; box-shadow: var(--shadow-lg); }
.lightbox-figure figcaption { color: var(--offwhite); text-align: center; }
.demo-dialog { border: 0; border-radius: 24px; padding: 0; max-width: min(560px,92vw); box-shadow: var(--shadow-lg); }
.demo-dialog::backdrop { background: rgba(17,20,48,.72); backdrop-filter: blur(6px); }
.demo-body { padding: clamp(1.5rem,4vw,2.4rem); }
.demo-body h2 { margin-bottom: .8rem; }
.demo-lede { color: var(--muted); }
.demo-form { display: grid; gap: 1rem; }
.demo-close-wrap { margin: 0; }
.intro-overlay { position: fixed; inset: 0; z-index: 120; background: var(--offwhite); display: grid; place-items: center; transition: opacity .5s var(--ease), visibility .5s var(--ease); }
.intro-overlay[hidden] { display: none; }
.intro-overlay.is-leaving { opacity: 0; visibility: hidden; }
.intro-inner { width: min(900px,92vw); position: relative; display: grid; place-items: center; }
.intro-logo { position: absolute; z-index: 2; width: min(360px,56vw); filter: drop-shadow(0 20px 40px rgba(0,0,0,.18)); }
.intro-video { width: 100%; border-radius: 24px; box-shadow: var(--shadow-lg); background: var(--navy); }
.intro-skip { position: absolute; right: 1rem; bottom: 1rem; border: 1px solid rgba(31,36,86,.2); background: rgba(250,250,247,.9); color: var(--navy); border-radius: 999px; padding: .7rem 1rem; cursor: pointer; font-weight: 700; }

@media (max-width: 1050px) {
  .grade-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grade-card.is-tailor { min-height: 260px; }
  .serve-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .engine-grid, .framework-grid, .contact-grid, .split { grid-template-columns: 1fr; }
  .framework-why { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .header-inner { min-height: 78px; }
  .brand-mark { height: 58px; }
  .brand-word { font-size: 1.1rem; }
  .nav-toggle { display: flex; }
  .nav-menu { position: absolute; left: 1rem; right: 1rem; top: calc(100% + .5rem); background: var(--offwhite); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 1rem; flex-direction: column; align-items: stretch; gap: .4rem; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s var(--ease); }
  .nav-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-menu a { display: block; padding: .75rem .9rem; }
  .hero { min-height: 760px; }
  .rhythm-steps, .clusters.engine-cards, .field-notes, .serve-grid, .grade-grid { grid-template-columns: 1fr; }
  .framework-list li { grid-template-columns: 46px 1fr; }
  .framework-list .fw-media { grid-column: 2; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  h1 { font-size: clamp(2.6rem, 13vw, 4rem); }
  .brand-word { display: none; }
  .hero { min-height: 700px; align-items: center; }
  .cta-row { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; max-width: 320px; }
  .footer-brand { grid-template-columns: 58px 1fr; }
  .footer-mark { width: 58px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 0.001ms !important; }
}
