/* ==========================================================================
   BK Classes - Design System
   Palette derived from the official BK Classes crest:
   vermilion red, laurel gold, ink navy.
   Theme: locked dark. Radius rule: pills for actions, 18px cards, 12px inputs.
   ========================================================================== */

/* ---------- 1. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, picture, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- 2. Tokens ---------- */
:root {
  /* Surfaces - warm ink, never pure black */
  --ink-900: #0a0c11;
  --ink-850: #0d1017;
  --ink-800: #11151d;
  --ink-750: #161b25;
  --ink-700: #1c222e;

  /* Brand */
  --red:        #e5402a;
  --red-bright: #ff5a41;
  --red-deep:   #b32d1c;
  --gold:       #d9a441;
  --gold-soft:  #e3bb6b;
  --gold-light: #f0d18a;
  --navy:       #1b3a5c;

  /* Text */
  --text:      #edeff3;
  --text-mid:  #b7bfcd;
  --text-dim:  #8b94a5;

  /* Lines */
  --line:        rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);

  /* Radius - documented scale */
  --r-card:  18px;
  --r-input: 12px;
  --r-pill:  999px;

  /* Motion. Strong custom curves; the built-in CSS easings are too weak.
     Chosen per Emil Kowalski's decision tree:
       entering / exiting  -> ease-out   (starts fast, feels responsive)
       moving / morphing   -> ease-in-out
       hover / colour      -> ease
       drawers / sheets    -> the iOS curve
     ease-in is never used for UI: it delays the first frame, which is
     exactly the moment the user is watching. */
  --ease-out:    cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  /* Durations. Every interactive transition stays under 300ms. */
  --t-press: 140ms;   /* button press feedback */
  --t-hover: 200ms;   /* hover and colour changes */
  --t-morph: 260ms;   /* icon morphs, accordion */
  --t-enter: 280ms;   /* drawer in */
  --t-exit:  200ms;   /* drawer out, always faster than in */
  --t-reveal: 460ms;  /* scroll reveal, explanatory so it may run longer */

  /* Layout */
  --shell: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  /* Type */
  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

/* ---------- 3. Base ---------- */
body {
  background: var(--ink-900);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
}

/* Ambient brand wash. Fixed + non-interactive so it never repaints on scroll. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60rem 40rem at 78% -10%, rgba(229, 64, 42, 0.13), transparent 62%),
    radial-gradient(46rem 34rem at 4% 8%, rgba(217, 164, 65, 0.08), transparent 60%);
}

main, header, footer { position: relative; z-index: 1; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

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

section { padding-block: clamp(4.5rem, 9vw, 8rem); }

/* Section heading block */
.head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.head h2 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  margin-bottom: 1.15rem;
}
.head p {
  color: var(--text-mid);
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  max-width: 62ch;
}

/* The one micro-label used on this site, rationed hard. */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.tag::before {
  content: '';
  width: 1.75rem;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.accent { color: var(--red-bright); }
.gold-text { color: var(--gold); }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  padding: 0.95rem 1.75rem;
  border-radius: var(--r-pill);
  /* transform + colour only. box-shadow is deliberately not transitioned:
     it forces a paint on every hover frame for no perceptual gain. */
  transition: transform var(--t-press) var(--ease-out),
              background-color var(--t-hover) ease,
              border-color var(--t-hover) ease,
              color var(--t-hover) ease;
}
/* Instant physical feedback: the interface heard you. */
.btn:active { transform: scale(0.97); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

/* Gold is the action colour across the whole site. Ink text on gold = 9:1. */
.btn-primary {
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  color: #17120a;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset,
              0 10px 30px -12px rgba(217, 164, 65, 0.6);
}
.btn-primary:hover { background: linear-gradient(180deg, #f7dfa8, #e0b055); }

.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn-red {
  background: var(--red);
  color: #fff;
  box-shadow: 0 10px 30px -14px rgba(229, 64, 42, 0.75);
}
.btn-red:hover { background: var(--red-bright); }

.btn-lg { padding: 1.1rem 2.15rem; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* ---------- 5. Header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 74px;
  display: flex;
  align-items: center;
  background: rgba(10, 12, 17, 0.72);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid transparent;
  transition: background-color 250ms ease, border-color 250ms ease;
}
.site-head.stuck {
  background: rgba(10, 12, 17, 0.93);
  border-bottom-color: var(--line);
}
.site-head .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.brand b {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.06rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 1px;
}

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-mid);
  position: relative;
  padding-block: 0.4rem;
  transition: color 180ms ease;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms var(--ease-out);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--text); }

.head-cta { display: flex; align-items: center; gap: 0.75rem; }

.burger {
  display: none;
  width: 44px; height: 44px;
  border-radius: var(--r-input);
  border: 1px solid var(--line-strong);
  align-items: center;
  justify-content: center;
  transition: transform var(--t-press) var(--ease-out), border-color var(--t-hover) ease;
}
.burger:active { transform: scale(0.94); }
.burger span {
  display: block;
  width: 17px; height: 1.5px;
  background: var(--text);
  position: relative;
  /* Bars travel and rotate on screen, so this is a morph, not an entrance. */
  transition: transform var(--t-morph) var(--ease-in-out), background-color var(--t-hover) ease;
}
.burger span::before, .burger span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 17px; height: 1.5px;
  background: var(--text);
  transition: transform var(--t-morph) var(--ease-in-out);
}
.burger span::before { top: -5.5px; }
.burger span::after { top: 5.5px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(5.5px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-5.5px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 74px 0 0;
  z-index: 45;
  background: rgba(10, 12, 17, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 2rem var(--gutter) 3rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  /* Closed state carries the EXIT timing, .open carries the ENTER timing.
     Dismissal is the system responding, so it is faster than opening. */
  transition: opacity var(--t-exit) var(--ease-drawer),
              transform var(--t-exit) var(--ease-drawer),
              visibility var(--t-exit);
}
.drawer.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity var(--t-enter) var(--ease-drawer),
              transform var(--t-enter) var(--ease-drawer),
              visibility var(--t-enter);
}
.drawer a {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  padding-block: 0.85rem;
  border-bottom: 1px solid var(--line);
}
.drawer .btn { margin-top: 1.75rem; }

/* ---------- 6. Hero ---------- */
.hero {
  padding-top: clamp(3rem, 6vw, 5.5rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem 0.5rem 0.75rem;
  border: 1px solid rgba(217, 164, 65, 0.34);
  background: rgba(217, 164, 65, 0.08);
  border-radius: var(--r-pill);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--gold-light);
  margin-bottom: 1.6rem;
}
.pill svg { width: 1rem; height: 1rem; color: var(--gold); }

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
}
.hero h1 em {
  font-style: normal;
  color: var(--red-bright);
  position: relative;
  white-space: nowrap;
}
/* Hand-drawn underline sweep under the emphasised word */
.hero h1 em::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -0.12em;
  height: 0.09em;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--red), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  /* Retimed to land after the headline has finished arriving (120ms delay
     plus its 460ms travel), so the underline draws onto a settled word. */
  animation: sweep 700ms var(--ease-out) 640ms forwards;
}
@keyframes sweep { to { transform: scaleX(1); } }

.hero-lede {
  font-size: clamp(1.02rem, 1.7vw, 1.18rem);
  color: var(--text-mid);
  max-width: 34rem;
  margin-bottom: 2.25rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* Portrait composition. Capped so the hero always clears the fold. */
.hero-visual { position: relative; max-width: 430px; margin-inline-start: auto; }
.portrait {
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;
  background: linear-gradient(165deg, var(--ink-750), var(--ink-850));
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9);
}
.portrait img {
  width: 100%;
  /* height:auto is required, otherwise the intrinsic height attribute on the
     image element wins over aspect-ratio and the hero grows past the viewport. */
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  /* The source photo has a near-white studio background. Blend it into the
     dark shell rather than leaving a bright rectangle. */
  mix-blend-mode: luminosity;
  opacity: 0.94;
}
.portrait::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,12,17,0) 42%, rgba(10,12,17,0.92) 100%),
              linear-gradient(120deg, rgba(229,64,42,0.16), transparent 55%);
}
.portrait-name {
  position: absolute;
  left: 1.5rem; right: 1.5rem; bottom: 1.4rem;
  z-index: 2;
}
.portrait-name strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.portrait-name span {
  font-size: 0.85rem;
  color: var(--gold);
}

/* Floating credential chip */
.chip {
  position: absolute;
  left: -1.25rem;
  bottom: 3.5rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 1.15rem;
  border-radius: var(--r-card);
  background: rgba(17, 21, 29, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line-strong);
  box-shadow: 0 20px 45px -20px rgba(0, 0, 0, 0.9);
}
.chip b {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.chip small {
  display: block;
  font-size: 0.74rem;
  color: var(--text-dim);
  line-height: 1.35;
  max-width: 8rem;
}

/* ---------- 7. Stat band ---------- */
.stats {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
  padding-block: clamp(2.5rem, 4vw, 3.5rem);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}
.stat {
  background: var(--ink-900);
  padding: 1.25rem clamp(0.75rem, 2vw, 1.75rem);
  text-align: center;
}
.stat b {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}
.stat span {
  display: block;
  margin-top: 0.55rem;
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* ---------- 8. Programs (asymmetric bento, exactly 5 cells) ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.1rem;
}
.prog {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.6rem, 2.6vw, 2.25rem);
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, var(--ink-800), var(--ink-850));
  overflow: hidden;
  transition: transform var(--t-hover) ease, border-color var(--t-hover) ease;
}
.prog:hover { border-color: rgba(217,164,65,0.4); }
.prog::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(28rem 20rem at 82% 0%, rgba(229,64,42,0.16), transparent 62%);
  transition: opacity 320ms ease;
}
.prog:hover::before { opacity: 1; }
.prog > * { position: relative; }

/* Exactly 5 programmes: the two board courses lead on a half-and-half row,
   the three entrance-exam batches share the row beneath. */
.prog:nth-child(1), .prog:nth-child(2) { grid-column: span 3; }
.prog:nth-child(3), .prog:nth-child(4), .prog:nth-child(5) { grid-column: span 2; }

/* The two board programmes are the core offer, so they carry the syllabus
   list and a warmer surface. */
.prog:nth-child(1), .prog:nth-child(2) {
  background:
    radial-gradient(34rem 24rem at 88% 12%, rgba(217,164,65,0.12), transparent 60%),
    linear-gradient(165deg, var(--ink-750), var(--ink-850));
}

.prog-kicker {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red-bright);
  margin-bottom: 0.9rem;
}
.prog h3 {
  font-size: clamp(1.3rem, 2.3vw, 1.85rem);
  margin-bottom: 0.7rem;
}
.prog p {
  color: var(--text-mid);
  font-size: 0.95rem;
  margin-bottom: 1.35rem;
}
.prog ul { display: grid; gap: 0.6rem; margin-bottom: 1.5rem; }
.prog li {
  display: flex;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.5;
}
.prog li svg { width: 1.05rem; height: 1.05rem; flex: none; color: var(--gold); margin-top: 0.18rem; }
.prog .more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gold);
}
.prog .more svg { width: 1rem; height: 1rem; transition: transform var(--t-hover) ease; }

/* ---------- 8b. Programme detail records ---------- */
.pdetail {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
}
.pdetail:first-of-type { border-top: 0; padding-top: 0; }
.pdetail-head { position: sticky; top: 104px; align-self: start; }
.pdetail-head h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); margin-bottom: 1rem; }
.pdetail-head > p { color: var(--text-mid); margin-bottom: 1.75rem; }
.pdetail-body h3 {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}
.checks { display: grid; gap: 0.85rem; }
.checks li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
  color: var(--text-mid);
  font-size: 0.96rem;
}
.checks li:last-child { border-bottom: 0; padding-bottom: 0; }
.checks svg { width: 1.1rem; height: 1.1rem; flex: none; color: var(--gold); margin-top: 0.22rem; }

@media (max-width: 860px) {
  .pdetail { grid-template-columns: 1fr; }
  .pdetail-head { position: static; }
}

/* ---------- 9. Advantage (offset editorial grid) ---------- */
.adv {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.75rem);
}
.adv-item { padding-top: 1.75rem; border-top: 1px solid var(--line-strong); }
/* Offset every second column so the row is not a flat ruler line */
.adv-item:nth-child(3n+2) { transform: translateY(clamp(0px, 2vw, 2.25rem)); }
.adv-ico {
  width: 2.9rem; height: 2.9rem;
  border-radius: var(--r-input);
  display: grid;
  place-items: center;
  background: rgba(229, 64, 42, 0.12);
  border: 1px solid rgba(229, 64, 42, 0.28);
  color: var(--red-bright);
  margin-bottom: 1.15rem;
}
.adv-ico svg { width: 1.35rem; height: 1.35rem; }
.adv-item h3 { font-size: 1.16rem; margin-bottom: 0.55rem; }
.adv-item p { color: var(--text-mid); font-size: 0.93rem; }

/* ---------- 9b. Founder split ---------- */
.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split-media { position: relative; }
.split-copy h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); margin-bottom: 1.25rem; }
.split-copy > p { color: var(--text-mid); font-size: 1.02rem; margin-bottom: 1.25rem; }
.credential {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.1rem 1.35rem;
  margin-top: 1.75rem;
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  background: var(--ink-850);
}
.credential img { width: 2.75rem; height: 2.75rem; object-fit: contain; flex: none; }
.credential b { display: block; font-family: var(--font-display); font-size: 1rem; }
.credential small { display: block; font-size: 0.86rem; color: var(--gold); }

@media (max-width: 1024px) {
  .split { grid-template-columns: 1fr; }
  .split-media { max-width: 24rem; }
}

/* ---------- 10. Results ---------- */
.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.batch {
  padding: clamp(1.5rem, 2.5vw, 2rem);
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, var(--ink-800), var(--ink-850));
  transition: transform var(--t-hover) ease, border-color var(--t-hover) ease;
}
.batch:hover { border-color: rgba(217,164,65,0.4); }
.batch-year {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.4rem 0.85rem;
  border-radius: var(--r-pill);
  background: rgba(229, 64, 42, 0.14);
  border: 1px solid rgba(229, 64, 42, 0.3);
  color: var(--red-bright);
  margin-bottom: 1.5rem;
}
.batch dl { display: grid; gap: 1rem; }
.batch div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.batch dt { font-size: 0.88rem; color: var(--text-dim); }
.batch dd {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.batch div:last-child dd { color: var(--gold); }

/* ---------- 11. Testimonials (masonry column wall) ---------- */
.quotes { columns: 3; column-gap: 1.1rem; }
.quote {
  break-inside: avoid;
  margin-bottom: 1.1rem;
  padding: 1.6rem;
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, var(--ink-800), var(--ink-850));
  transition: border-color var(--t-hover) ease, transform var(--t-hover) ease;
}
.quote:hover { border-color: rgba(217,164,65,0.36); }
.stars { display: flex; gap: 0.15rem; margin-bottom: 0.9rem; }
.stars svg { width: 0.95rem; height: 0.95rem; color: var(--gold); }
.quote p {
  font-size: 0.94rem;
  color: var(--text-mid);
  margin-bottom: 1.15rem;
}
.quote footer { display: flex; align-items: center; gap: 0.75rem; }
.avatar {
  width: 2.4rem; height: 2.4rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: #17120a;
  background: linear-gradient(150deg, var(--gold-light), var(--gold));
}
.quote cite {
  font-style: normal;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  display: block;
  line-height: 1.3;
}
.quote small { color: var(--text-dim); font-size: 0.78rem; }

/* ---------- 12. CTA band ---------- */
.band {
  border-radius: clamp(20px, 3vw, 28px);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
  border: 1px solid rgba(217, 164, 65, 0.26);
  background:
    radial-gradient(38rem 26rem at 50% 0%, rgba(229, 64, 42, 0.2), transparent 65%),
    linear-gradient(165deg, var(--ink-750), var(--ink-850));
  box-shadow: 0 40px 90px -50px rgba(0, 0, 0, 0.95);
}
.band h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); margin-bottom: 1rem; }
.band p {
  color: var(--text-mid);
  max-width: 44ch;
  margin: 0 auto 2rem;
  font-size: clamp(1rem, 1.6vw, 1.1rem);
}
.band .row { display: flex; flex-wrap: wrap; gap: 0.85rem; justify-content: center; }

/* ---------- 13. Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
.reach { display: grid; gap: 0.9rem; margin-bottom: 2rem; }
.reach a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  background: var(--ink-850);
  transition: transform var(--t-hover) ease, border-color var(--t-hover) ease;
}
.reach a:hover { border-color: rgba(217,164,65,0.42); }
.reach a:active { transform: scale(0.99); }
.reach-ico {
  width: 2.75rem; height: 2.75rem;
  border-radius: var(--r-input);
  display: grid; place-items: center;
  flex: none;
  background: rgba(217, 164, 65, 0.12);
  border: 1px solid rgba(217, 164, 65, 0.26);
  color: var(--gold);
}
.reach-ico svg { width: 1.25rem; height: 1.25rem; }
.reach b { display: block; font-family: var(--font-display); font-size: 0.95rem; font-weight: 600; }
.reach-txt { display: block; }
.reach-txt span { display: block; font-size: 0.88rem; color: var(--text-mid); }
.reach-txt small { display: block; font-size: 0.76rem; color: var(--text-dim); margin-top: 0.15rem; }

.map-wrap {
  border-radius: var(--r-card);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-850);
}
.map-wrap iframe { width: 100%; height: 260px; border: 0; display: block; filter: grayscale(1) invert(0.92) hue-rotate(180deg) contrast(0.9); }

/* ---------- 14. Forms ---------- */
.form {
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, var(--ink-800), var(--ink-850));
}
.form h3 { font-size: 1.4rem; margin-bottom: 0.4rem; }
.form > p { color: var(--text-mid); font-size: 0.92rem; margin-bottom: 1.75rem; }
.field { display: grid; gap: 0.5rem; margin-bottom: 1.15rem; }
.field label, .field .lbl { font-size: 0.85rem; font-weight: 500; color: var(--text); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--r-input);
  border: 1px solid var(--line-strong);
  background: var(--ink-900);
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b94a5' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.1rem;
  padding-right: 2.75rem;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(217, 164, 65, 0.16);
}
.field .err { font-size: 0.8rem; color: var(--red-bright); min-height: 1rem; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: var(--red); }

.seg { display: flex; gap: 0.5rem; position: relative; }
.seg label {
  flex: 1;
  text-align: center;
  padding: 0.75rem 1rem;
  border-radius: var(--r-input);
  border: 1px solid var(--line-strong);
  background: var(--ink-900);
  cursor: pointer;
  font-size: 0.92rem;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg input:checked + label {
  border-color: var(--gold);
  background: rgba(217, 164, 65, 0.12);
  color: var(--gold-light);
}
.seg input:focus-visible + label { box-shadow: 0 0 0 3px rgba(217, 164, 65, 0.22); }

.form-note {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 1rem;
}
.form-note svg { width: 0.95rem; height: 0.95rem; flex: none; margin-top: 0.2rem; color: var(--gold); }

/* ---------- 15. FAQ accordion ---------- */
.faq { display: grid; gap: 0.75rem; max-width: 52rem; }
.faq details {
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  background: var(--ink-850);
  overflow: hidden;
  transition: border-color var(--t-hover) ease;
}
/* [open] alone styles the no-JS fallback; [data-open] is the enhanced state. */
.faq details[open]:not([data-open]),
.faq details[data-open="true"] { border-color: rgba(217, 164, 65, 0.36); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  transition: color 180ms ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--gold); }
.faq summary svg {
  width: 1.15rem; height: 1.15rem;
  flex: none;
  color: var(--gold);
  /* The plus rotates into a close icon: a morph, so ease-in-out. */
  transition: transform var(--t-morph) var(--ease-in-out);
}
.faq details[open]:not([data-open]) summary svg,
.faq details[data-open="true"] summary svg { transform: rotate(45deg); }

/* Enhanced expand/collapse. Grid rows animate from 0fr to 1fr so the panel
   grows to its own natural height without measuring anything in JS. */
.faq details[data-open] .answer-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--t-morph) var(--ease-out);
}
.faq details[data-open="true"] .answer-wrap { grid-template-rows: 1fr; }
/* The clip layer carries no padding of its own. Padding on the collapsing box
   cannot shrink below its own value under border-box, which would leave the
   panel a couple of dozen pixels tall when closed. min-height:0 lets the grid
   item shrink past its content. */
.faq details[data-open] .answer-clip { overflow: hidden; min-height: 0; }

.faq .answer { padding: 0 1.5rem 1.4rem; color: var(--text-mid); font-size: 0.94rem; }

/* ---------- 16. Prose (legal pages) ---------- */
.prose { max-width: 46rem; }
.prose h2 {
  font-size: 1.25rem;
  margin: 2.25rem 0 0.75rem;
  color: var(--gold);
}
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--text-mid); margin-bottom: 1rem; }
.prose ul { display: grid; gap: 0.5rem; margin-bottom: 1rem; }
.prose li {
  display: flex;
  gap: 0.65rem;
  color: var(--text-mid);
}
.prose li::before { content: '\25AA'; color: var(--red-bright); flex: none; }
.prose .updated {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

/* Page banner for inner pages */
.banner { padding-block: clamp(3rem, 6vw, 5rem) clamp(2rem, 4vw, 3rem); }
.banner h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); margin-bottom: 1rem; }
.banner p { color: var(--text-mid); max-width: 56ch; font-size: clamp(1rem, 1.6vw, 1.1rem); }

/* ---------- 17. Footer ---------- */
.site-foot {
  border-top: 1px solid var(--line);
  background: var(--ink-850);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: clamp(2rem, 4vw, 3rem);
  padding-bottom: 2.5rem;
}
.foot-grid h4 {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.15rem;
  font-weight: 500;
}
.foot-grid ul { display: grid; gap: 0.7rem; }
.foot-grid li a {
  font-size: 0.92rem;
  color: var(--text-mid);
  transition: color 180ms ease;
}
.foot-grid li a:hover { color: var(--gold); }
.foot-about p {
  color: var(--text-mid);
  font-size: 0.92rem;
  margin: 1.15rem 0 1.5rem;
  max-width: 34ch;
}
.socials { display: flex; gap: 0.6rem; }
.socials a {
  width: 2.4rem; height: 2.4rem;
  border-radius: var(--r-input);
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  color: var(--text-mid);
  transition: color 180ms ease, border-color 180ms ease, transform var(--t-press) var(--ease-out);
}
.socials a:hover { color: var(--gold); border-color: var(--gold); }
.socials a:active { transform: scale(0.94); }
.socials svg { width: 1.1rem; height: 1.1rem; }
.foot-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Sticky mobile call bar */
.callbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  display: none;
  gap: 0.6rem;
  padding: 0.7rem var(--gutter) calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(10, 12, 17, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}
.callbar .btn { flex: 1; padding-inline: 1rem; }

/* ---------- 17b. Hero entrance ----------
   First view only, so the delight budget applies. Deliberately a CSS
   animation rather than the IntersectionObserver reveal used elsewhere:
   this fires while the browser is still fetching fonts and the portrait,
   and CSS animation runs off the main thread where rAF-driven motion
   drops frames. It also needs no JS, so it survives a failed script. */
.enter {
  animation: enter-up var(--t-reveal) var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 60ms);
}
@keyframes enter-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* The portrait is context, not sequence. It settles in place while the copy
   writes over it, so it leads the cascade and never travels. */
.enter-plate { animation: enter-plate 560ms var(--ease-out) both; }
@keyframes enter-plate {
  from { opacity: 0; transform: scale(0.985); }
  to   { opacity: 1; transform: none; }
}

/* Reduced-motion variant: the sequence still reads, it just stops moving. */
@keyframes enter-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ---------- 18. Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--t-reveal) var(--ease-out),
              transform var(--t-reveal) var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.reveal.in { opacity: 1; transform: none; }

/* Safety net. The reveal starts invisible, so if scripting never runs the
   observer never fires and the page would render blank. Each page also ships
   a <noscript> override for browsers that lack the scripting media feature. */
@media (scripting: none) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

@media (prefers-reduced-motion: reduce) {
  /* Reduced motion means fewer and gentler animations, not zero.
     Movement and position changes go. Opacity and colour stay, because they
     carry meaning: they tell you a thing arrived, or that you are hovering it.
     A blanket `transition: none` would strip that comprehension aid too. */

  /* Content still fades in. It just no longer travels, and no longer waits
     its turn in a cascade. */
  .reveal {
    transform: none;
    transition: opacity var(--t-reveal) ease;
    transition-delay: 0ms;
  }

  /* Press feedback and hover lifts are pure movement. */
  .btn:active,
  .burger:active,
  .reach a:active,
  .socials a:active { transform: none; }

  .prog:hover,
  .batch:hover,
  .quote:hover,
  .reach a:hover,
  .prog:hover .more svg { transform: none; }

  /* The drawer stops sliding but keeps its fade, so it still reads as
     arriving rather than blinking into place. */
  .drawer, .drawer.open { transform: none; }

  /* The burger still becomes an X, instantly instead of rotating. */
  .burger span,
  .burger span::before,
  .burger span::after { transition: none; }

  /* Nav underline stops sweeping and simply appears. */
  .nav a::after { transition: none; }

  /* The hero still arrives in sequence, it just stops travelling. Cutting
     it to nothing would be more than the setting asks for. */
  .enter, .enter-plate {
    animation-name: enter-fade;
    animation-duration: 280ms;
    animation-delay: 0ms;
  }

  /* Purely decorative one-shot: no reason to run it. */
  .hero h1 em::after { animation: none; transform: scaleX(1); }

  /* Accordion snaps open rather than expanding. */
  .faq .answer-wrap { transition: none; }
}

/* Movement on hover is granted only to real pointers. Touch devices fire
   :hover on tap, so an ungated lift makes cards jump under the finger. */
@media (hover: hover) and (pointer: fine) {
  .prog:hover        { transform: translateY(-4px); }
  .batch:hover       { transform: translateY(-4px); }
  .quote:hover       { transform: translateY(-3px); }
  .reach a:hover     { transform: translateX(4px); }
  .prog:hover .more svg { transform: translateX(4px); }
}

/* ---------- 19. Focus ---------- */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--gold);
  color: #17120a;
  border-radius: 0 0 var(--r-input) 0;
  font-weight: 600;
}
.skip:focus { left: 0; }

/* ---------- 20. Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 26rem; }
  .chip { left: auto; right: -0.5rem; }
  .quotes { columns: 2; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .prog:nth-child(n) { grid-column: span 3; }
}

@media (max-width: 860px) {
  .nav, .head-cta .btn-ghost { display: none; }
  .burger { display: flex; }
  .adv { grid-template-columns: 1fr 1fr; }
  .adv-item:nth-child(3n+2) { transform: none; }
  .results-grid { grid-template-columns: 1fr; }
  .prog:nth-child(n) { grid-column: span 6; }
}

@media (max-width: 640px) {
  /* The sticky call bar already carries the booking CTA, so the header
     collapses to identity + menu instead of stacking three controls. */
  .site-head .brand small { display: none; }
  .head-cta .btn-primary { display: none; }
  .site-foot .brand small { display: block; }

  .stats-grid { grid-template-columns: 1fr 1fr; }
  .adv { grid-template-columns: 1fr; }
  .quotes { columns: 1; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1; }
  .callbar { display: flex; }
  body { padding-bottom: 4.5rem; }
  .drawer { padding-bottom: 6rem; }
}
