/* SIEDM 360 — landing page. Brand: azul marino y oro (lib/paletas.js MARINO), Inter. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('assets/fonts/inter-latin.woff2') format('woff2');
}

:root {
  /* colour roles */
  --navy: #071a3a;        /* brand 950: dark ground */
  --navy-2: #0b2a5b;      /* brand 900: one step up */
  --navy-3: #132f6b;      /* brand 800 */
  --paper: #f1f5f9;       /* the app's own surface */
  --paper-2: #e2e8f0;     /* one step from paper */
  --white: #ffffff;
  --ink: #071a3a;
  --ink-soft: #56657a;
  --on-dark: #ffffff;
  --on-dark-soft: #aebdd6;
  --gold: #facc15;        /* accent: the action */
  --gold-2: #fde68a;
  --ok: #047857;
  --ok-bg: #d1fae5;
  --bad: #be123c;
  --warn: #92400e;
  --warn-bg: #fef3c7;

  /* type: five steps */
  --t-display: clamp(84px, 11vw, 190px);
  --t-xl: clamp(34px, 4.2vw, 64px);
  --t-l: clamp(22px, 2vw, 30px);
  --t-body: 17px;
  --t-small: 15px;

  /* frame */
  --m: clamp(16px, 2vw, 28px);
  --gap: clamp(120px, 14vw, 200px);
  --stage-w: 54vw;

  /* motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--on-dark);
  font: 400 var(--t-body)/1.55 'Inter', ui-sans-serif, system-ui, sans-serif;
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--navy); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.skip {
  position: absolute; left: var(--m); top: -60px; z-index: 50;
  background: var(--gold); color: var(--navy); padding: 10px 16px; border-radius: 999px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: var(--m); }

/* ---------- buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: var(--t-small); text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease-out), background-color .25s ease, color .25s ease;
}
.btn:active { transform: scale(.96); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-2); transform: translateY(-2px); }
.btn-navy { background: var(--navy-2); color: var(--white); }
.btn-navy:hover { background: var(--navy-3); transform: translateY(-2px); }

.link-arrow {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  font-weight: 500; text-decoration: none; color: var(--on-dark);
}
.link-arrow::after {
  content: '→'; transition: transform .35s var(--ease-out);
}
.link-arrow:hover::after { transform: translateX(6px); }
.link-arrow.dark { color: var(--ink); }

/* ---------- navigation ---------- */
.nav {
  position: absolute; top: 0; right: 0; z-index: 10;
  padding: calc(var(--m) + 4px) var(--m) 0 0;
}
.nav nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) {
  font-size: var(--t-small); font-weight: 500; text-decoration: none; color: var(--on-dark);
  transition: color .2s ease;
}
.nav a:not(.btn):hover { color: var(--gold); }

/* =========================================================
   HERO + ROLES: the split stage
   ========================================================= */
.split {
  position: relative;
  display: grid;
  grid-template-columns: var(--stage-w) 1fr;
}

.stage {
  position: sticky; top: var(--m);
  align-self: start;
  height: calc(100svh - 2 * var(--m));
  margin: var(--m) 0 var(--m) var(--m);
  display: grid; grid-template-rows: 1fr auto;
}
/* The current product, as each role sees it: its /brag video, on the same navy it was made on. */
.stage-screen { position: relative; align-self: center; aspect-ratio: 16 / 9; margin-bottom: 28px; }
/* The video is made on the page's own navy; its edges dissolve into the ground instead of drawing a box. */
.stage-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .9s ease;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent), linear-gradient(180deg, transparent, #000 7%, #000 93%, transparent); /* taste-skill-ignore */
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent), linear-gradient(180deg, transparent, #000 7%, #000 93%, transparent); /* taste-skill-ignore */
  mask-composite: intersect;
}
.stage-video.is-on { opacity: 1; }
.stage-pause {
  position: absolute; right: 1.5%; top: 1.5%; z-index: 2;
  min-height: 36px; padding: 0 14px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px;
  background: rgba(7,26,58,.72); color: #fff; font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1; cursor: pointer;
}
.stage-pause:hover { background: var(--navy-2); }
.stage-pause:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.stage-caption {
  padding: 0 0 32px 4px;
  max-width: calc(var(--stage-w) - 10vw - 3 * var(--m));
  min-height: 150px;
}
.cap-line { font-size: var(--t-l); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
.cap-line::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); margin-right: 14px; vertical-align: .18em; }
.stage-caption.swap p { animation: capIn .7s var(--ease-out) both; }
@keyframes capIn { from { opacity: 0; transform: translateY(14px); } }

.column { min-width: 0; }

/* hero copy */
.hero {
  min-height: 100svh;
  display: flex; align-items: flex-start;
  padding: 0 var(--m) 0 clamp(40px, 5vw, 72px);
}
.hero-copy { margin-top: 34svh; max-width: 34ch; }
.hero-lede {
  font-size: var(--t-l); line-height: 1.3; font-weight: 500; letter-spacing: -0.015em;
  max-width: 32ch;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 32px; }
.hero-note { margin-top: 28px; font-size: var(--t-small); color: var(--on-dark-soft); max-width: 34ch; }

/* the wordmark: one line along the bottom of the first screen, crossing the stage */
.wordmark {
  position: absolute; z-index: 4;
  top: 0; left: calc(var(--stage-w) - 10vw); right: var(--m);
  height: 100svh;
  display: flex; align-items: flex-end; justify-content: flex-end;
  padding-bottom: 32px;
  font-size: var(--t-display); font-weight: 300; line-height: .78; letter-spacing: -0.045em;
  white-space: nowrap; color: var(--on-dark);
}
.wm-inner { display: block; transform-origin: 100% 100%; will-change: transform; }
.js .wm-inner { animation: wmIn .9s var(--ease-out) both; }
@keyframes wmIn { from { opacity: 0; transform: translateY(18%); } }

/* roles reading column */
.roles {
  padding: 40px var(--m) var(--gap) clamp(40px, 5vw, 72px);
}
.roles-head h2 { font-size: var(--t-xl); font-weight: 700; line-height: 1; letter-spacing: -0.035em; }
.roles-head p { margin-top: 24px; font-size: var(--t-body); max-width: 44ch; color: var(--on-dark); }
.role { padding-top: clamp(120px, 18svh, 180px); min-height: 40svh; }
.role:first-of-type { padding-top: clamp(100px, 18svh, 160px); }
.role-media { display: none; }
.role h3 { font-size: var(--t-l); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.role p { margin-top: 16px; max-width: 44ch; }
.role-list { margin-top: 24px; }
.role-list li {
  font-size: var(--t-body); padding: 10px 0 10px 28px; position: relative;
}
.role-list li::before {
  content: ''; position: absolute; left: 0; top: 19px; width: 12px; height: 8px;
  border-left: 2.5px solid var(--gold); border-bottom: 2.5px solid var(--gold);
  transform: rotate(-45deg);
}
.role-facts { margin-top: 28px; display: grid; gap: 4px; max-width: 46ch; }
.role-facts div { background: var(--navy-2); padding: 16px 20px; display: grid; grid-template-columns: 9.5em 1fr; gap: 16px; }
.role-facts dt { font-weight: 600; color: var(--gold); }
.role-facts dd { color: var(--on-dark); }
.role-figure {
  display: flex; align-items: baseline; gap: .35em; flex-wrap: wrap;
  margin-top: 28px !important;
  font-size: var(--t-xl); font-weight: 800; letter-spacing: -0.03em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.role-figure .op { color: var(--on-dark-soft); font-weight: 400; }
.role-figure .neg { color: #fb7185; }
.role-figure .ok { color: var(--navy); background: var(--gold); padding: .06em .18em; }


/* =========================================================
   SHOWCASE: output index, live sheet
   ========================================================= */
.showcase {
  background: var(--paper); color: var(--ink);
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px;
  padding: var(--gap) var(--m) 0;
}
.show-index { grid-column: 1 / 6; align-self: start; padding-top: 24px; }
.small-h { font-size: var(--t-l); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 32px; }
.doc-tabs { display: flex; flex-direction: column; align-items: flex-start; }
.doc-tabs button {
  appearance: none; background: none; border: 0; padding: 4px 0; cursor: pointer; text-align: left;
  font-size: var(--t-xl); font-weight: 700; letter-spacing: -0.035em; line-height: 1.1;
  color: #9aa6b8;
  transition: color .3s ease, transform .45s var(--ease-out);
}
.doc-tabs button:hover { color: var(--ink-soft); transform: translateX(8px); }
.doc-tabs button[aria-selected="true"] { color: var(--ink); }
.show-note { margin-top: 40px; max-width: 38ch; color: var(--ink); }

.show-stage {
  grid-column: 7 / 13;
  position: relative; height: 88svh; min-height: 640px;
  background: var(--paper-2);
  overflow: hidden;
}

/* the sheets (product output, data-ui) */
.sheet {
  position: absolute; top: 72px; left: 64px;
  background: var(--white); color: #0f172a;
  padding: 40px 44px 48px;
  font-size: 14px; line-height: 1.5;
  transition: opacity .2s ease, transform .5s var(--ease-out);
}
.sheet[hidden] { display: block; opacity: 0; transform: translateY(24px); pointer-events: none; visibility: hidden; }
.sheet-doc { width: 560px; min-height: 760px; }
.sheet-mail { width: 440px; }
.sheet-receipt { width: 300px; padding: 28px 24px 36px; }
.sh-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; margin-bottom: 20px; border-bottom: 2px solid var(--navy-2); }
.sh-head strong { display: block; font-size: 15px; color: var(--navy-2); }
.sh-head span { display: block; color: #475569; font-size: 13px; }
.sh-title { font-size: 20px; font-weight: 700; color: var(--navy-2); letter-spacing: -0.01em; margin: 6px 0 14px; }
.sh-meta { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 8px 16px; margin-bottom: 18px; }
.sh-meta dt { color: #475569; font-size: 13px; }
.sh-meta dd { font-weight: 600; }
.sh-meta-stack { grid-template-columns: 1fr; }
.sh-meta-stack div { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; }
.sh-table { width: 100%; border-collapse: collapse; margin-bottom: 16px; font-variant-numeric: tabular-nums; }
.sh-table th { text-align: left; font-size: 13px; color: #475569; font-weight: 600; padding: 6px 0; border-bottom: 1px solid #cbd5e1; }
.sh-table td { padding: 7px 0; border-bottom: 1px solid #e2e8f0; }
.sh-table .r { text-align: right; font-weight: 600; }
.sh-sum td { border-bottom: 0; padding: 4px 0; }
.sh-total td { border-top: 2px solid var(--navy-2); padding-top: 10px; font-weight: 700; color: var(--navy-2); font-size: 16px; }
.sh-sign { margin-top: 18px; color: #334155; font-style: normal; }
.sh-date { color: #475569; margin-bottom: 12px; }
.sheet p + p { margin-top: 10px; }
.sh-ok { margin-top: 16px; padding: 12px 14px; background: var(--ok-bg); color: #065f46; font-weight: 600; border-radius: 6px; }

/* =========================================================
   FORMULA: fixed output, live controls
   ========================================================= */
.formula {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px;
  background: var(--paper); color: var(--ink);
  padding: var(--gap) var(--m) 0;
}
.formula-field { grid-column: 1 / 7; grid-row: 1 / 3; background: var(--navy-2); position: relative; }
.formula-head { grid-column: 8 / 13; grid-row: 1; padding-top: 72px; }
.formula-head h2 { font-size: var(--t-xl); font-weight: 700; letter-spacing: -0.035em; line-height: 1; }
.formula-head p { max-width: 46ch; }
.formula-sticky {
  position: sticky; top: 0; height: 100svh;
  display: grid; place-items: center; padding: 32px;
}
.formula-col { grid-column: 8 / 13; grid-row: 2; padding: 0 0 12svh; }
.formula-col p { max-width: 46ch; }
.formula-col h2 { font-size: var(--t-xl); font-weight: 700; letter-spacing: -0.035em; line-height: 1; }
.formula-intro { margin-top: 24px; }
.fblock { padding-top: 14svh; }
.fsent { font-size: var(--t-l); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.fblock p:not(.fsent) { margin-top: 14px; }

/* controls */
.seg { border: 0; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.seg legend { font-size: var(--t-small); color: var(--ink-soft); font-weight: 500; margin-bottom: 10px; padding: 0; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 52px; height: 48px; padding: 0 16px; border-radius: 999px;
  background: var(--paper-2); color: var(--ink); font-weight: 700;
  transition: background-color .2s ease, color .2s ease, transform .3s var(--ease-out);
}
.seg label:hover span { background: #cbd5e1; }
.seg input:checked + span { background: var(--navy-2); color: var(--white); }
.seg input:active + span { transform: scale(.94); }
.seg input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 3px; }

.range { display: block; margin-top: 24px; }
.range > span { display: block; font-size: var(--t-small); color: var(--ink-soft); font-weight: 500; margin-bottom: 12px; }
.range output { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.range input { width: 100%; height: 44px; accent-color: var(--navy-2); cursor: pointer; }

.stepper { display: inline-flex; align-items: center; gap: 14px; margin-top: 24px; }
.stepper button {
  width: 48px; height: 48px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--paper-2); color: var(--ink); font-size: 22px; font-weight: 600;
  transition: background-color .2s ease, transform .2s var(--ease-out);
}
.stepper button:hover { background: #cbd5e1; }
.stepper button:active { transform: scale(.9); }
.stepper output { font-size: var(--t-l); font-weight: 800; min-width: 1.4em; text-align: center; font-variant-numeric: tabular-nums; }
.stepper span { color: var(--ink-soft); }

.toggle { display: inline-flex; align-items: center; gap: 14px; margin-top: 24px; cursor: pointer; font-weight: 600; position: relative; min-height: 44px; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tg-track { width: 56px; height: 32px; border-radius: 999px; background: #cbd5e1; position: relative; transition: background-color .25s ease; flex: none; }
.tg-dot { position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: var(--white); transition: transform .35s var(--ease-out); }
.toggle input:checked + .tg-track { background: var(--ok); }
.toggle input:checked + .tg-track .tg-dot { transform: translateX(24px); }
.toggle input:focus-visible + .tg-track { outline: 3px solid var(--gold); outline-offset: 3px; }

/* conduct card (data-ui) */
.ccard {
  width: min(440px, 100%);
  background: var(--white); color: #0f172a;
  border-radius: 12px; padding: 24px 26px 22px;
  font-size: 14px;
}
.cc-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.cc-head strong { display: block; font-size: 15px; color: var(--navy-2); }
.cc-head span { display: block; color: #475569; font-size: 13px; margin-top: 2px; }
.cc-state {
  flex: none; font-size: 13px !important; font-weight: 600; margin: 0 !important;
  padding: 4px 10px; border-radius: 999px; background: var(--warn-bg); color: var(--warn) !important;
  transition: background-color .3s ease, color .3s ease;
}
.cc-state.signed { background: var(--ok-bg); color: #065f46 !important; }
.cc-table { width: 100%; border-collapse: collapse; margin: 16px 0 18px; }
.cc-table td { padding: 6px 0; border-bottom: 1px solid #e2e8f0; }
.cc-table td:last-child { text-align: right; font-weight: 700; width: 3.5em; }
.cc-table tr.hit td { background: #fef9c3; }
.cc-table .grade { display: inline-block; min-width: 1.6em; text-align: center; transition: transform .4s var(--ease-out); }
.cc-table tr.hit .grade { transform: scale(1.25); }
.cc-math { display: grid; grid-template-columns: 1fr 1fr 1.15fr; gap: 6px; font-variant-numeric: tabular-nums; }
.cc-math div { background: var(--paper); padding: 10px 12px; border-radius: 8px; }
.cc-math span { display: block; font-size: 13px; color: #475569; }
.cc-math b { display: block; font-size: 26px; letter-spacing: -0.02em; color: var(--navy-2); line-height: 1.15; }
.cc-minus b { color: var(--bad); }
.cc-minus b::before { content: '−'; }
.cc-final { background: var(--ok-bg) !important; transition: background-color .3s ease; }
.cc-final b { color: #065f46; }
.cc-final.lvl-bueno { background: #dbeafe !important; } .cc-final.lvl-bueno b { color: #1e3a8a; }
.cc-final.lvl-regular { background: var(--warn-bg) !important; } .cc-final.lvl-regular b { color: var(--warn); }
.cc-final.lvl-mejorar { background: #ffe4e6 !important; } .cc-final.lvl-mejorar b { color: var(--bad); }
.cc-final b.bump { animation: bump .45s var(--ease-out); }
@keyframes bump { 40% { transform: scale(1.12); } }
.cc-level { margin-top: 12px; font-weight: 700; color: var(--navy-2); font-size: 15px; }
.cc-detail { margin-top: 2px; color: #475569; font-size: 13px; }

/* =========================================================
   QUARTER: itinerary on a slip
   ========================================================= */
.quarter {
  background: var(--navy-2); color: var(--on-dark);
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px;
  padding: var(--gap) var(--m) clamp(80px, 7vw, 110px);
}
.q-text { grid-column: 1 / 6; }
.q-text h2 { font-size: var(--t-xl); font-weight: 700; letter-spacing: -0.035em; line-height: 1; }
.q-text p { margin-top: 24px; max-width: 30ch; font-size: var(--t-l); line-height: 1.35; font-weight: 400; color: var(--on-dark); }
.slip {
  grid-column: 7 / 12; justify-self: start; width: min(480px, 100%);
  background: var(--paper); color: var(--ink);
  padding: 36px 32px 64px;
  font-variant-numeric: tabular-nums;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px),
    97.5% 100%, 95% calc(100% - 14px), 92.5% 100%, 90% calc(100% - 14px), 87.5% 100%, 85% calc(100% - 14px), 82.5% 100%, 80% calc(100% - 14px),
    77.5% 100%, 75% calc(100% - 14px), 72.5% 100%, 70% calc(100% - 14px), 67.5% 100%, 65% calc(100% - 14px), 62.5% 100%, 60% calc(100% - 14px),
    57.5% 100%, 55% calc(100% - 14px), 52.5% 100%, 50% calc(100% - 14px), 47.5% 100%, 45% calc(100% - 14px), 42.5% 100%, 40% calc(100% - 14px),
    37.5% 100%, 35% calc(100% - 14px), 32.5% 100%, 30% calc(100% - 14px), 27.5% 100%, 25% calc(100% - 14px), 22.5% 100%, 20% calc(100% - 14px),
    17.5% 100%, 15% calc(100% - 14px), 12.5% 100%, 10% calc(100% - 14px), 7.5% 100%, 5% calc(100% - 14px), 2.5% 100%, 0 calc(100% - 14px));
}
.slip h3 { font-size: var(--t-body); font-weight: 700; margin-top: 28px; }
.slip h3:first-child { margin-top: 0; }
.slip li { display: flex; align-items: baseline; gap: 8px; padding: 7px 0; font-size: var(--t-body); }
.slip li span { flex: 0 1 auto; }
.slip li i {
  flex: 1 1 24px; min-width: 24px; height: 4px; align-self: center; margin-top: 6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='4'%3E%3Ccircle cx='2' cy='2' r='1.8' fill='%2356657a'/%3E%3C/svg%3E") 0 50% / 8px 4px repeat-x;
}
.slip li b { flex: none; font-weight: 600; }
.slip-total {
  margin: 28px -32px 0; height: 44px; padding: 0 32px;
  display: flex; justify-content: space-between; align-items: center;
  background: var(--navy); color: var(--paper); font-weight: 700;
}

/* =========================================================
   NAMES (proof) and FAQ
   ========================================================= */
.names, .faq {
  background: var(--paper); color: var(--ink);
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px;
  padding: var(--gap) var(--m) 0;
}
.names h2, .faq h2 { grid-column: 1 / 4; font-size: var(--t-l); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.names { padding-top: clamp(112px, 10vw, 150px); }
.names-cols { grid-column: 5 / 13; columns: 3; column-gap: 32px; }
.names-cols ul { break-inside: avoid; margin-bottom: 40px; }
.names-cols li { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; }
.names-cols li.kind { color: var(--ink-soft); }
.names-cols li:not(.kind) { transition: transform .3s var(--ease-out); }
.names-cols li:not(.kind):hover { transform: translateX(6px); }

.faq-text { grid-column: 5 / 13; columns: 2; column-gap: 56px; }
.faq-text p { break-inside: avoid; margin-bottom: 20px; font-size: var(--t-body); line-height: 1.55; }
.faq-text b { font-weight: 600; }

/* =========================================================
   CTA
   ========================================================= */
.cta {
  background: var(--paper); color: var(--ink);
  padding: 30svh var(--m) 20svh;
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px;
}
.cta h2, .cta-actions { grid-column: 5 / 13; }
.cta h2 { font-size: var(--t-l); font-weight: 500; line-height: 1.3; letter-spacing: -0.015em; max-width: 34ch; }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 28px; }

/* =========================================================
   FOOTER: photograph half, menu half
   ========================================================= */
.foot { display: grid; grid-template-columns: 1fr 1fr; min-height: 100svh; background: var(--navy); }
.foot-photo { position: relative; overflow: hidden; }
.foot-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 100% 40%;
  transform: scale(1.7); transform-origin: 88% 45%;
}
.foot-menu { padding: 80px var(--m) 32px clamp(32px, 6vw, 96px); display: flex; flex-direction: column; }
.foot-mark { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: var(--t-body); }
.foot-menu nav { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; margin-top: 48px; }
.foot-menu nav a {
  font-size: clamp(28px, 2.6vw, 44px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05;
  text-decoration: none; transition: transform .35s var(--ease-out), color .25s ease;
}
.foot-menu nav:hover a { color: var(--on-dark-soft); }
.foot-menu nav a:hover { color: var(--gold); transform: translateX(12px); }
.foot-blocks { display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px; margin-top: 64px; font-size: var(--t-small); }
.foot-blocks a { color: var(--gold); }
.foot-legal { margin-top: auto; padding-top: 48px; font-size: var(--t-small); color: var(--on-dark-soft); max-width: 60ch; }

/* =========================================================
   Entrances (only with JS; content stays visible without it)
   ========================================================= */
/* Content never fully disappears: it rises into place from a faint start, so a fast jump never lands on blank. */
.js [data-reveal] {
  opacity: .3; transform: translateY(28px);
  transition: opacity .8s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.js [data-reveal].in { opacity: 1; transform: none; }
.js .show-stage[data-reveal] { transform: translateY(40px) scale(.98); transform-origin: 50% 0; }
.js .show-stage[data-reveal].in { transform: none; }
.js .slip[data-reveal] { transform: translateY(60px) rotate(1.5deg); transition-duration: .9s, 1.2s; }
.js .slip[data-reveal].in { transform: none; }
.js .slip li { opacity: 0; transform: translateX(-12px); transition: opacity .5s ease, transform .6s var(--ease-out); }
.js .slip.in li { opacity: 1; transform: none; }

/* =========================================================
   Tablet and phone
   ========================================================= */
@media (max-width: 1100px) {
  .nav nav { gap: 20px; }
  .names-cols { columns: 2; }
  .faq-text { columns: 1; }
}

@media (max-width: 959px) {
  :root { --gap: 112px; }
  .nav { left: 0; padding: 20px var(--m) 0; }
  .nav nav { justify-content: flex-end; gap: 0; }
  .nav a:not(.btn) { display: none; }
  .nav-cta { min-height: 40px; padding: 0 16px; }

  .split { display: block; }
  .stage {
    position: relative; top: 0;
    height: auto; margin: 64px 0 0; display: block;
  }
  .stage-screen { aspect-ratio: 16 / 9; margin: 0 12px; }
  .stage-caption { display: none; }
  .wordmark {
    position: relative; height: auto; left: auto; right: auto;
    display: block; padding: 0 var(--m); margin-top: -3vw;
    font-size: 18.5vw; line-height: .85;
  }
  .wm-inner { transform-origin: 0 100%; }
  .hero { min-height: 0; display: block; padding: 0; }
  .hero-copy { margin-top: 28px; padding: 0 var(--m); max-width: none; }
  .hero-lede { font-size: 22px; }

  .roles { padding: var(--gap) var(--m) var(--gap); max-width: none; }
  .role, .role:first-of-type { padding-top: 96px; min-height: 0; }
  .role-media { display: block; width: calc(100% + 2 * var(--m)); max-width: none; margin: 0 calc(-1 * var(--m)) 24px; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--navy); }
  .role-facts div { grid-template-columns: 1fr; gap: 4px; }

  .showcase, .formula, .quarter, .names, .faq, .cta { display: block; }
  .show-index { padding-top: 0; }
  .doc-tabs { flex-direction: row; flex-wrap: wrap; gap: 4px 20px; }
  .doc-tabs button { font-size: 22px; min-height: 44px; }
  .doc-tabs button:hover { transform: none; }
  .show-note { margin-top: 20px; }
  .show-stage { height: 70svh; min-height: 520px; margin: 32px calc(-1 * var(--m)) 0; }
  .sheet { top: 16px; left: 16px; }

  .formula { padding-left: 0; padding-right: 0; }
  .formula-field { position: sticky; top: 0; z-index: 2; height: 46svh; overflow: hidden; }
  .formula-sticky { position: static; height: 100%; padding: 12px var(--m); place-items: start center; }
  .ccard { padding: 16px 18px; }
  .cc-table { display: none; }
  .formula-head { padding: 0 var(--m) 40px; }
  .formula-head p { max-width: none; }
  .formula-col { padding: 0 var(--m) 12svh; }
  .fblock:first-child { padding-top: 48px; }
  .fblock { padding-top: 72px; min-height: 0; }
  .fsent { font-size: 22px; }
  .seg span { height: 44px; }

  .q-text p { font-size: 20px; }
  .slip { margin-top: 48px; width: 100%; padding: 28px 20px 56px; }
  .slip li { flex-wrap: wrap; }
  .slip-total { margin: 24px -20px 0; padding: 0 20px; }

  .names h2, .faq h2 { font-size: 26px; margin-bottom: 32px; }
  .names-cols { columns: 2; column-gap: 20px; }
  .names-cols li { font-size: 17px; }
  .faq-text p, .role p, .roles-head p, .formula-col p, .show-note, .cta h2, .hero-lede, .hero-note, .q-text p, .role-facts { max-width: none; }

  .cta { padding: 20svh var(--m) 14svh; }
  .cta h2 { font-size: 20px; }

  .foot { display: block; min-height: 0; }
  .foot-photo { height: 50svh; }
  .foot-menu { padding: 48px var(--m) 32px; }
  .foot-menu nav { gap: 20px; margin-top: 32px; }
  .foot-menu nav a { font-size: 8vw; }
  .foot-blocks { grid-template-columns: 1fr; gap: 20px; margin-top: 48px; }
}

/* On phones the page is long: parts rise into place but are never hidden while they wait. */
@media (max-width: 959px) {
  .js [data-reveal] { opacity: 1; transform: translateY(28px); transition: transform .9s var(--ease-out); }
  .js .slip[data-reveal] { transform: translateY(40px); }
  .js .slip li { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js .slip li { opacity: 1; transform: none; }
}

.hero-by { margin-top: 8px; color: var(--gold); font-weight: 500; }

/* ES | EN: the two pages are the same page in two languages; the current one is filled. */
.nav .lang { display: inline-flex; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 3px; gap: 2px; }
.nav .lang a, .nav .lang a:not(.btn) {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; min-height: 34px; padding: 0 10px; border-radius: 999px;
  font-size: 14px; font-weight: 700; letter-spacing: .04em; color: #fff;
}
.nav .lang a[aria-current="page"] { background: #fff; color: var(--navy); }
.nav .lang a:not([aria-current]):hover { color: var(--gold); }
@media (max-width: 959px) {
  .nav nav { gap: 10px; }
  .nav .lang a:not(.btn) { display: inline-flex; min-width: 36px; min-height: 36px; padding: 0 8px; }
}

@media (max-width: 959px) {
  .stage-pause { top: auto; bottom: 6px; right: 6px; min-height: 32px; padding: 0 10px; font-size: 14px; }
}

/* =========================================================
   GRADES: the gradebook, its basics and what sets it apart
   ========================================================= */
.grades {
  background: var(--white); color: var(--ink);
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px;
  padding: var(--gap) var(--m) clamp(112px, 10vw, 150px);
}
.gr-head { grid-column: 1 / 6; grid-row: 1; align-self: end; }
.gr-head h2 { font-size: var(--t-xl); font-weight: 700; letter-spacing: -0.035em; line-height: 1; }
.gr-head p { margin-top: 24px; font-size: var(--t-l); line-height: 1.35; max-width: 26ch; }
.gr-shot { grid-column: 6 / 13; grid-row: 1 / 3; align-self: start; margin: 0; position: relative; overflow: hidden; background: var(--paper); padding: 20px; }
.gr-shot img { width: 100%; height: auto; }
.gr-shot figcaption { display: inline-block; margin-top: 12px; padding: 8px 14px; background: var(--navy); color: var(--on-dark); font-size: var(--t-small); }
.gr-basics { grid-column: 1 / 6; grid-row: 2; padding-top: 56px; }
.gr-basics h3, .gr-diff h3 { font-size: var(--t-l); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.gr-basics ul { margin-top: 20px; }
.gr-basics li { position: relative; padding: 8px 0 8px 28px; font-size: var(--t-body); }
.gr-basics li::before { content: ''; position: absolute; left: 0; top: 18px; width: 12px; height: 8px; border-left: 2.5px solid var(--navy); border-bottom: 2.5px solid var(--navy); transform: rotate(-45deg); }
.gr-diff { grid-column: 1 / 13; grid-row: 3; padding-top: clamp(96px, 9vw, 140px); }
.gr-diff ol { margin-top: 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 32px; counter-reset: gr; }
.gr-diff li { counter-increment: gr; border-top: 4px solid var(--navy); padding-top: 20px; }
.gr-diff li::before { content: counter(gr, decimal-leading-zero); display: block; font-size: var(--t-small); font-weight: 700; color: var(--ink-soft); margin-bottom: 10px; }
.gr-diff b { display: block; font-size: var(--t-l); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 10px; }
.gr-diff p { font-size: var(--t-body); }
@media (max-width: 959px) {
  .grades { display: block; }
  .gr-head p { max-width: none; }
  .gr-shot { margin: 32px calc(-1 * var(--m)) 0; }
  .gr-basics { padding-top: 40px; }
  .gr-diff ol { grid-template-columns: 1fr; gap: 36px; }
}
@media (min-width: 960px) and (max-width: 1199px) {
  .gr-diff ol { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   Header on phones: a fixed bar with the brand, the demo and a menu
   ========================================================= */
.nav a.nav-brand, .nav-cta-m, .nav-toggle, .nav .nav-more { display: none; }

@media (max-width: 959px) {
  :root { --bar: 60px; }
  html { scroll-padding-top: var(--bar); }
  .nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 40;
    height: var(--bar); padding: 0 var(--m);
    display: flex; align-items: center; gap: 8px;
    background: rgba(7, 26, 58, .94);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }
  .nav a.nav-brand {
    display: inline-flex; align-items: center; gap: 8px; margin-right: auto;
    font-size: 16px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap;
  }
  .nav-brand img { width: 26px; height: 26px; }
  .nav-cta-m { display: inline-flex; min-height: 40px; padding: 0 16px; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 8px;
    min-height: 40px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px;
    background: transparent; color: #fff; font-size: 14px; font-weight: 600; cursor: pointer;
  }
  .nt-icon, .nt-icon::before, .nt-icon::after {
    display: block; width: 16px; height: 2px; border-radius: 2px; background: currentColor;
    transition: transform .3s var(--ease-out), background-color .2s ease;
  }
  .nt-icon { position: relative; }
  .nt-icon::before, .nt-icon::after { content: ''; position: absolute; left: 0; }
  .nt-icon::before { top: -5px; }
  .nt-icon::after { top: 5px; }
  .nav.open .nt-icon { background: transparent; }
  .nav.open .nt-icon::before { transform: translateY(5px) rotate(45deg); }
  .nav.open .nt-icon::after { transform: translateY(-5px) rotate(-45deg); }

  /* the menu: every section, the language and the demo */
  .nav nav {
    position: fixed; top: var(--bar); left: 0; right: 0;
    max-height: calc(100svh - var(--bar)); overflow-y: auto;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 4px var(--m) 28px;
    background: var(--navy);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 28px 48px rgba(0, 0, 0, .4), 0 0 0 100vmax rgba(3, 10, 25, .6); /* dims the page under the menu */
    clip-path: inset(0 0 -100vmax 0);
  }
  .js .nav nav { display: none; }
  .js .nav.open nav { display: flex; animation: menuIn .35s var(--ease-out); }
  .nav nav > a:not(.btn) {
    display: block; padding: 14px 0;
    font-size: 22px; font-weight: 700; letter-spacing: -0.02em;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }
  .nav nav .lang { align-self: flex-start; margin-top: 20px; }
  .nav nav .nav-cta { margin-top: 16px; min-height: 50px; font-size: 16px; }
  html:not(.js) .nav nav, html:not(.js) .nav-toggle { display: none; }

  /* sticky parts sit under the bar */
  .formula-field { top: var(--bar); }
}
@media (max-width: 380px) {
  .nav a.nav-brand span { display: none; }
}
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } }

/* =========================================================
   Demo request form (CTA)
   ========================================================= */
.demo-form, .df-alt { grid-column: 5 / 13; }
.demo-form { margin-top: 32px; max-width: 760px; position: relative; }
.df-intro { color: var(--ink-soft); max-width: 52ch; }
.df-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; margin-top: 24px; }
.df-wide { grid-column: 1 / -1; }
.df-field { display: grid; gap: 8px; }
.df-field > span { font-size: var(--t-small); font-weight: 600; color: var(--ink); }
.df-field i { font-style: normal; font-weight: 400; color: var(--ink-soft); }
.df-field input, .df-field select, .df-field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px;
  border: 1.5px solid #cbd5e1; border-radius: 12px;
  background: var(--white); color: var(--ink);
  font: inherit; font-size: 16px; /* 16px keeps iPhones from zooming in */
  transition: border-color .2s ease, box-shadow .2s ease;
}
.df-field select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23071a3a' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 18px center; }
.df-field textarea { min-height: 104px; resize: vertical; }
.df-field input:hover, .df-field select:hover, .df-field textarea:hover { border-color: #94a3b8; }
.df-field input:focus, .df-field select:focus, .df-field textarea:focus {
  outline: none; border-color: var(--navy-2); box-shadow: 0 0 0 4px rgba(250, 204, 21, .6);
}
.df-field.bad input, .df-field.bad select { border-color: var(--bad); }
.df-hp { position: absolute; left: -10000px; top: 0; width: 1px; height: 1px; overflow: hidden; }
.df-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 24px; }
.df-actions .btn { min-height: 54px; padding: 0 30px; font-size: 16px; border: 0; cursor: pointer; }
.df-actions .btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.df-status { font-weight: 600; }
.df-status.err { color: var(--bad); }
.demo-form.sent .df-intro, .demo-form.sent .df-grid, .demo-form.sent .btn { display: none; }
.demo-form.sent .df-actions { margin-top: 0; }
.demo-form.sent .df-status {
  padding: 22px 24px; border-radius: 12px; background: var(--ok-bg); color: #065f46;
  font-size: var(--t-l); line-height: 1.3; letter-spacing: -0.015em;
}
.df-alt { margin-top: 20px; font-size: var(--t-small); color: var(--ink-soft); }
.df-alt a { color: var(--ink); font-weight: 600; }
html:not(.js) .demo-form { display: none; }
@media (max-width: 959px) {
  .df-grid { grid-template-columns: 1fr; }
  .df-actions .btn { width: 100%; }
}

/* =========================================================
   ADMISSIONS: from application to enrollment
   ========================================================= */
.admit {
  background: var(--navy); color: var(--on-dark);
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px;
  padding: var(--gap) var(--m) clamp(112px, 10vw, 150px);
}
.adm-head { grid-column: 1 / 6; grid-row: 1; align-self: center; }
.adm-head h2 { font-size: var(--t-xl); font-weight: 700; letter-spacing: -0.035em; line-height: 1; }
.adm-head p { margin-top: 24px; font-size: var(--t-l); line-height: 1.35; max-width: 26ch; }
.adm-board { grid-column: 6 / 13; grid-row: 1; margin: 0; }
.adm-board figcaption { margin-top: 14px; font-size: var(--t-small); color: var(--on-dark-soft); }

/* the Admissions list (data-ui) */
.ab-card { background: var(--white); color: #0f172a; border-radius: 14px; padding: 22px 24px 8px; font-size: 14px; }
.ab-open { display: grid; grid-template-columns: 10px 1fr; gap: 2px 10px; align-items: center; padding: 14px 16px; border: 1px solid #e2e8f0; border-radius: 12px; }
.ab-open strong { color: var(--navy-2); font-size: 15px; }
.ab-open > span:last-child { grid-column: 2; color: #475569; font-size: 13px; }
.ab-dot { align-self: start; margin-top: 6px; width: 10px; height: 10px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 4px #d1fae5; }
.ab-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 6px; }
.ab-tabs span { padding: 6px 12px; border: 1px solid #e2e8f0; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--navy-2); }
.ab-tabs .on { background: var(--navy-2); border-color: var(--navy-2); color: var(--white); }
.ab-table { width: 100%; border-collapse: collapse; }
.ab-table th { text-align: left; white-space: nowrap; padding: 10px 10px 8px 0; border-bottom: 1px solid #cbd5e1; font-size: 13px; font-weight: 600; color: #475569; }
.ab-table td { padding: 12px 10px 12px 0; border-bottom: 1px solid #e2e8f0; vertical-align: middle; }
.ab-table tr:last-child td { border-bottom: 0; }
.ab-table td:first-child { font-weight: 600; color: var(--navy-2); }
.ab-warn { color: #b45309; }
.st { display: inline-block; white-space: nowrap; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.st-new { background: #f1f5f9; color: #334155; }
.st-int { background: #dbeafe; color: #1e3a8a; }
.st-ok { background: var(--ok-bg); color: #065f46; }
.st-done { background: var(--navy-2); color: var(--white); }

/* the six steps */
.adm-steps {
  grid-column: 1 / 13; grid-row: 2; margin-top: clamp(80px, 8vw, 120px);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 32px; counter-reset: adm;
}
.adm-steps li { counter-increment: adm; border-top: 4px solid var(--gold); padding-top: 20px; }
.adm-steps li::before { content: counter(adm, decimal-leading-zero); display: block; margin-bottom: 10px; font-size: var(--t-small); font-weight: 700; color: var(--gold); }
.adm-steps b { display: block; margin-bottom: 10px; font-size: var(--t-l); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.adm-steps p { font-size: var(--t-body); }
@media (min-width: 960px) and (max-width: 1199px) {
  .adm-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 959px) {
  .admit { display: block; }
  .adm-head p { max-width: none; font-size: 20px; }
  .adm-board { margin: 32px calc(-1 * var(--m) + 8px) 0; }
  .ab-card { padding: 14px 14px 4px; }
  .ab-opt { display: none; }
  .adm-steps { grid-template-columns: 1fr; gap: 36px; margin-top: 72px; }
}
