/* =========================================================
   K10 English School — design system
   Midnight & ivory. K10 red is the signature, used with intent.
   The mark's geometry (the square, the curve, the quarter-circle)
   is the graphic and motion language of the whole site.
   ========================================================= */
@font-face {
  font-family: "Newsreader Fallback";
  src: local("Georgia");
  size-adjust: 94%;
  ascent-override: 96%;
  descent-override: 26%;
}
:root {
  --midnight: #0A1628;
  --navy: #13233A;
  --ivory: #F6F1E8;
  --paper: #FBF8F3;
  --stone: #E7DFD1;
  --red: #E31B2E;
  --red-ink: #C4142A;        /* red text on light, 5.3:1 */
  --red-bright: #FF5A67;     /* small red text on dark, 6:1 */
  --champagne: #B39A72;      /* accents on dark only */
  --champagne-ink: #7A6544;  /* accents on light, 5.2:1 */
  --ink: #0E1B2C;
  --ink-soft: #4A5565;
  --on-dark: #F3EEE5;
  --on-dark-soft: rgba(243, 238, 229, .7);
  --hair-dark: rgba(243, 238, 229, .16);
  --hair-light: rgba(14, 27, 44, .13);
  --edge-light: rgba(14, 27, 44, .45);

  --serif: "Newsreader", "Newsreader Fallback", Georgia, serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --sec: clamp(80px, 12vw, 168px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; }
/* smooth scrolling is switched on by main.js after load, so links like /#programas from other pages still land on their section */
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.light :focus-visible, .level :focus-visible, .card-form :focus-visible { outline-color: var(--ink); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 920px; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ivory); color: var(--ink); padding: 10px 16px; font-size: 13px; }
.skip:focus { top: 16px; }

.dark { background: var(--midnight); color: var(--on-dark); position: relative; isolation: isolate; }
.light { background: var(--paper); }
.grain {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .45;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Type ---------- */
.display, .h2, .statement, .closing-line, .roman, .step-n, .quiz-q, .result-level, .ff-card b, .ai-h {
  font-family: var(--serif); font-weight: 500; letter-spacing: -.012em; font-optical-sizing: auto;
}
em { font-style: italic; }
.display { font-size: clamp(40px, 5.3vw, 82px); line-height: 1.04; margin: 0 0 30px; max-width: 15ch; }
.display em { color: var(--red-bright); }
.h2 { font-size: clamp(34px, 4.3vw, 60px); line-height: 1.08; margin: 0; }
.h2.xl { font-size: clamp(50px, 7.4vw, 104px); line-height: .98; }
.h2 em { color: inherit; }
.label {
  font: 500 11px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase;
  color: var(--champagne-ink); margin: 0 0 26px; display: flex; gap: 14px; align-items: center;
}
.dark .label { color: var(--champagne); }
.label.center { justify-content: center; }
.label .num { color: var(--ink-soft); letter-spacing: .08em; }
.dark .label .num { color: var(--on-dark-soft); }
.label .num::after { content: ""; display: inline-block; width: 28px; height: 1px; background: var(--red); vertical-align: middle; margin-left: 14px; }
.muted { color: var(--ink-soft); font-size: 17px; max-width: 48ch; }
.dark .muted { color: var(--on-dark-soft); }
.muted.big { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.65; }
.lede { font-size: clamp(16px, 1.25vw, 18px); color: var(--on-dark-soft); max-width: 54ch; margin: 0 0 40px; }
.mini-title { font: 600 12px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--champagne-ink); margin: 0 0 24px; }

/* ---------- Buttons: the quarter-circle wipe (from the mark's cut) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  padding: 20px 32px; border: 1px solid transparent; position: relative; overflow: hidden; isolation: isolate;
  transition: color .5s var(--ease), border-color .5s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--red);
  clip-path: circle(0% at 100% 100%); transition: clip-path .7s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { clip-path: circle(150% at 100% 100%); }
.btn-solid { background: var(--ivory); color: var(--ink); }
.btn-solid:hover, .btn-solid:focus-visible { color: #fff; }
.light .btn-solid, .card-form .btn-solid, .level .btn-solid { background: var(--ink); color: var(--ivory); }
.btn-line { border-color: currentColor; }
.btn-line::before { background: var(--ivory); }
.btn-line:hover { color: var(--ink); border-color: var(--ivory); }
.btn-sm { padding: 13px 18px; font-size: 11px; }
.btn-block { width: 100%; }
.btn .wa { width: 18px; height: 18px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  padding: 8px 0; border-bottom: 1px solid var(--hair-dark); transition: border-color .4s var(--ease);
}
.link-arrow i { font-style: normal; transition: transform .4s var(--ease); }
.link-arrow:hover { border-color: var(--red); }
.link-arrow:hover i { transform: translateX(6px); }
.link-arrow.ink { color: var(--ink); border-color: var(--edge-light); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; color: var(--on-dark);
  transition: background .5s var(--ease), color .5s var(--ease), box-shadow .5s var(--ease), transform .5s var(--ease);
}
.site-header.scrolled {
  background: rgba(251, 248, 243, .9); color: var(--ink);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--hair-light);
}
.site-header.static { position: relative; }
.site-header.hidden:not(:focus-within) { transform: translateY(-100%); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; flex: none; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-word { display: flex; flex-direction: column; line-height: 1.1; }
.brand-word b { font: 600 15px/1 var(--sans); letter-spacing: .14em; }
.brand-word span { font: 500 9.5px/1.4 var(--sans); letter-spacing: .32em; text-transform: uppercase; opacity: .75; margin-top: 3px; }
.nav { display: flex; gap: clamp(18px, 2.2vw, 34px); }
.nav a {
  font: 500 11.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
  position: relative; padding: 6px 0; opacity: .85; transition: opacity .3s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--red);
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav a:hover, .nav a[aria-current] { opacity: 1; }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.lang { display: flex; align-items: center; gap: 2px; font: 600 11px/1 var(--sans); letter-spacing: .12em; }
.lang span { opacity: .35; }
.lang a { opacity: .55; padding: 10px 6px; transition: opacity .3s; }
.lang a[aria-current], .lang a:hover { opacity: 1; }
.scrolled .btn-line::before { background: var(--ink); }
.scrolled .btn-line:hover { color: var(--ivory); border-color: var(--ink); }

.menu-toggle { display: none; width: 44px; height: 44px; position: relative; z-index: 2; }
.menu-toggle span:not(.sr) { position: absolute; left: 10px; right: 10px; height: 1px; background: currentColor; transition: transform .4s var(--ease); }
.menu-toggle span:nth-child(1) { top: 18px; }
.menu-toggle span:nth-child(2) { top: 25px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 40; background: var(--midnight); color: var(--on-dark);
  display: flex; align-items: center; padding: 100px var(--gutter) 40px; overflow-y: auto;
  clip-path: circle(0 at calc(100% - 40px) 40px); transition: clip-path .7s var(--ease);
}
.mobile-menu.open { clip-path: circle(150vmax at calc(100% - 40px) 40px); }
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 4px; width: 100%; }
.mobile-menu a:not(.mm-cta) {
  font: 500 34px/1.3 var(--serif); padding: 8px 0; border-bottom: 1px solid var(--hair-dark);
  opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.mobile-menu.open a:not(.mm-cta) { opacity: 1; transform: none; }
.mobile-menu.open a:nth-child(2) { transition-delay: .05s; }
.mobile-menu.open a:nth-child(3) { transition-delay: .1s; }
.mobile-menu.open a:nth-child(4) { transition-delay: .15s; }
.mobile-menu.open a:nth-child(5) { transition-delay: .2s; }
.mobile-menu .mm-cta { font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; background: var(--ivory); color: var(--ink); padding: 20px; text-align: center; margin-top: 28px; }
.menu-open .site-header { color: var(--on-dark); background: transparent; box-shadow: none; backdrop-filter: none; transform: none; }

/* ---------- Hero ---------- */
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; padding-top: 120px; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(70% 60% at 82% 38%, rgba(27, 47, 77, .95), transparent 70%),
              radial-gradient(50% 50% at 8% 100%, rgba(19, 35, 58, .8), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; padding-bottom: 56px; flex: 1; }
.eyebrow { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; margin: 0 0 30px; font: 500 11px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.eyebrow .kw { color: var(--champagne); }
.eyebrow .status { display: inline-flex; align-items: center; gap: 10px; color: var(--on-dark-soft); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(227, 27, 46, .6); } 70%, 100% { box-shadow: 0 0 0 10px rgba(227, 27, 46, 0); } }
.hero-cta { display: flex; flex-wrap: wrap; gap: 24px 34px; align-items: center; }

/* CSS-only intro: copy is visible at first paint (LCP-safe), then settles */
.intro { animation: rise 1s var(--ease) both; }
.intro.d2 { animation-delay: .12s; }
.intro.d3 { animation-delay: .24s; }
@keyframes rise { from { opacity: .01; transform: translateY(22px); } to { opacity: 1; transform: none; } }

.hero-art { margin: 0; position: relative; justify-self: end; width: min(100%, 520px); }
.mark-art { width: 100%; height: auto; overflow: visible; }
.mark-art .ma-fill-b, .mark-art .ma-fill-a { fill: var(--red); }
.mark-art .ma-line { fill: none; stroke: var(--on-dark); stroke-width: 1.2; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; opacity: 0; }
.mark-art .ma-fill-a { transform-box: fill-box; will-change: transform; }
.hero-art.has-photo .ma-photo { filter: saturate(.92) contrast(1.02); }
.ai-cap { display: block; font: 500 10px/1.4 var(--sans); letter-spacing: .08em; color: var(--on-dark-soft); margin-top: 12px; text-align: right; }
.hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--hair-dark); }
.hero-facts > div { padding: 26px 24px 32px 0; display: flex; flex-direction: column; gap: 6px; }
.hero-facts > div + div { padding-left: 28px; border-left: 1px solid var(--hair-dark); }
.fact-k { font: italic 500 24px/1.1 var(--serif); }
.fact-v { font-size: 13px; color: var(--on-dark-soft); }

/* ---------- Marquee ---------- */
.marquee { background: var(--ivory); border-bottom: 1px solid var(--hair-light); overflow: hidden; padding: 24px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee ul { display: flex; margin: 0; padding: 0; list-style: none; flex: none; }
.marquee li { font: italic 500 clamp(20px, 2.1vw, 27px)/1 var(--serif); white-space: nowrap; display: flex; align-items: center; transform: skewX(var(--skew, 0deg)); }
.marquee li::after { content: ""; width: 14px; height: 14px; margin: 0 40px; flex: none; background: var(--red);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 392 392'><path d='M0 0H145C145 82 84 148 0 148Z'/><path d='M220 0H392V218C298 218 220 298 220 392H0V224H58C160 224 220 160 220 62Z'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 392 392'><path d='M0 0H145C145 82 84 148 0 148Z'/><path d='M220 0H392V218C298 218 220 298 220 392H0V224H58C160 224 220 160 220 62Z'/></svg>") center/contain no-repeat; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }

/* ---------- Manifesto ---------- */
.manifesto { padding: var(--sec) 0; text-align: center; }
.statement { font-size: clamp(38px, 5.6vw, 80px); line-height: 1.06; margin: 0 auto 52px; max-width: 16ch; }
.statement em { color: var(--red-ink); }
.js .statement .w { opacity: .14; transition: opacity .6s var(--ease); }
.js .statement .w.on { opacity: 1; }
.manifesto-body { max-width: 580px; margin: 0 auto; color: var(--ink-soft); font-size: 17px; }
.manifesto-body .sign { font: italic 500 22px/1.4 var(--serif); color: var(--ink); margin-top: 28px; }
.manifesto-body .sign::before { content: ""; display: block; width: 1px; height: 48px; background: var(--red); margin: 0 auto 24px; }

/* ---------- Section heads ---------- */
.sec-head { margin-bottom: clamp(48px, 6vw, 88px); }
.sec-head .h2 { max-width: 17ch; }
.sec-head.split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: end; }
.sec-head.center { text-align: center; }
.sec-head.center .h2, .sec-head.center .muted { margin-left: auto; margin-right: auto; }
.sec-head.center .muted { margin-top: 22px; }

/* ---------- Personas ---------- */
.audience { padding: 0 0 var(--sec); }
.personas { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.persona h3 { font: 600 13px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; margin: 0 0 12px; }
.persona p { color: var(--ink-soft); margin: 0; max-width: 36ch; }
.p-media {
  position: relative; margin: 0 0 28px; aspect-ratio: 3 / 4; overflow: hidden; background: var(--navy); color: var(--on-dark);
  /* the mark's quarter-circle cut, as a notch in every portrait */
  -webkit-mask: radial-gradient(circle at 100% 100%, transparent 0 21%, #000 calc(21% + 1px));
          mask: radial-gradient(circle at 100% 100%, transparent 0 21%, #000 calc(21% + 1px));
}
.p-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.4s var(--ease); }
.persona:hover .p-media img { transform: scale(1); }
.p-graphic { position: absolute; width: 150%; left: -12%; top: 6%; color: var(--champagne); opacity: .55; transition: translate 1.4s var(--ease); }
.persona:nth-child(2) .p-graphic { rotate: 90deg; left: -40%; top: -10%; }
.persona:nth-child(3) .p-graphic { rotate: 180deg; left: -30%; top: 18%; }
.persona:hover .p-graphic { translate: 0 -10px; }
.p-media::before { content: ""; position: absolute; left: 22px; top: 22px; width: 26px; height: 26px; background: var(--red); clip-path: path("M0 0H26C26 15 15 26 0 26Z"); z-index: 2; }
.p-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(10, 22, 40, .85)); }
.p-scene { position: absolute; left: 22px; bottom: 22px; right: 40%; text-wrap: balance; z-index: 2; font: italic 500 21px/1.2 var(--serif); }
.p-media .ai-cap { position: absolute; top: 20px; right: 18px; z-index: 2; margin: 0; color: rgba(255, 255, 255, .85); text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.roman { font-size: 22px; line-height: 1; color: var(--red-ink); display: block; margin-bottom: 14px; font-style: italic; }
.aside-link { margin: 56px 0 0; }

/* ---------- Method ---------- */
.method { padding: var(--sec) 0; }
.method-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(48px, 8vw, 120px); }
.sticky { position: sticky; top: 130px; }
.method .h2.xl { margin: 0 0 28px; }
.method .h2.xl em { color: var(--red-bright); }
.mark-build { width: 150px; height: 150px; margin: 44px 0; }
.mark-build svg { width: 100%; height: 100%; overflow: visible; }
.mark-build .mb-base { fill: rgba(243, 238, 229, .08); }
.mark-build .mb-w { fill: var(--red); opacity: 0; transition: opacity .6s var(--ease); }
.mark-build .mb-w.on { opacity: 1; }
.mark-build.done svg { animation: done 1s var(--ease); }
@keyframes done { 40% { transform: scale(1.08); } }
.aside { font: italic 500 19px/1.5 var(--serif); color: var(--on-dark); max-width: 32ch; margin: 0; padding-left: 20px; border-left: 1px solid var(--red); }
.steps { list-style: none; margin: 0; padding: 0; }
.step { display: grid; grid-template-columns: 100px 1fr; gap: 24px; padding: 40px 0; border-top: 1px solid var(--hair-dark); }
.step:last-child { border-bottom: 1px solid var(--hair-dark); }
.js .step p, .js .step .step-n { opacity: .45; transition: opacity .7s var(--ease), color .7s var(--ease); }
.js .step.on p, .js .step.on .step-n { opacity: 1; }
.step-n { font-size: 56px; line-height: .9; font-style: italic; color: var(--champagne); }
.js .step.on .step-n { color: var(--red-bright); }
.step h3 { font: 500 32px/1.1 var(--serif); margin: 0 0 10px; }
.step p { margin: 0; color: var(--on-dark-soft); }

/* ---------- Lusophone / false friends ---------- */
.lusophone { padding: var(--sec) 0; }
.lusophone .muted i { font-family: var(--serif); }
.ff-grid { list-style: none; padding: 0; margin: 0 0 72px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ff-card { width: 100%; height: 190px; position: relative; perspective: 900px; text-align: left; }
.ff-face {
  position: absolute; inset: 0; padding: 26px 28px; display: flex; flex-direction: column; justify-content: space-between;
  backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform .8s var(--ease);
  border: 1px solid var(--edge-light);
}
.ff-front { background: var(--paper); }
.ff-back { background: var(--midnight); color: var(--on-dark); border-color: var(--midnight); transform: rotateY(180deg); }
.ff-card[aria-pressed="true"] .ff-front { transform: rotateY(-180deg); }
.ff-card[aria-pressed="true"] .ff-back { transform: rotateY(0); }
.ff-card b { font-size: 34px; line-height: 1; }
.ff-front small { font-size: 14px; color: var(--ink-soft); }
.ff-front i { position: absolute; right: 22px; top: 22px; font-style: normal; color: var(--red-ink); font-size: 18px; transition: transform .6s var(--ease); }
.ff-card:hover .ff-front i { transform: rotate(180deg); }
.ff-back b { color: var(--red-bright); font-size: 22px; }
.ff-back span { font-size: 15px; line-height: 1.5; color: var(--on-dark-soft); }
.ff-back span b { font: 600 15px/1 var(--sans); color: var(--on-dark); letter-spacing: 0; }
.fixes ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; }
.fixes li { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; padding: 20px 0; border-top: 1px solid var(--hair-light); font: 500 21px/1.3 var(--serif); }
.fixes s { color: var(--ink-soft); text-decoration: none; background: linear-gradient(var(--red), var(--red)) 0 55% / 0 1.5px no-repeat; transition: background-size .9s var(--ease) .3s; }
.fixes.in s, .no-js .fixes s { background-size: 100% 1.5px; }
.fixes li span { font-style: italic; }
.fixes li span::before { content: "→ "; color: var(--red-ink); font-style: normal; }

/* ---------- Quiz ---------- */
.level { padding: var(--sec) 0; background: var(--ivory); }
.quiz { background: var(--paper); border: 1px solid var(--hair-light); padding: clamp(28px, 5vw, 60px); position: relative; min-height: 460px; }
.quiz-bar { position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--hair-light); }
.quiz-bar span { display: block; height: 100%; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.quiz-stage { animation: rise .6s var(--ease); }
.quiz-count { font: 600 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--champagne-ink); margin: 0 0 22px; }
.quiz-q { font-size: clamp(24px, 2.8vw, 34px); line-height: 1.25; margin: 0 0 32px; outline: none; }
.quiz-q u { text-decoration: none; border-bottom: 1.5px solid var(--red); padding: 0 .3em; }
.quiz-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quiz-opt {
  text-align: left; padding: 18px 22px; border: 1px solid var(--edge-light); background: transparent; position: relative; overflow: hidden; isolation: isolate;
  font-size: 16px; display: flex; gap: 16px; align-items: center; transition: border-color .3s, color .5s;
}
.quiz-opt::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); clip-path: circle(0 at 100% 100%); transition: clip-path .6s var(--ease); }
.quiz-opt b { font: 600 11px/1 var(--sans); letter-spacing: .1em; color: var(--champagne-ink); width: 14px; }
.quiz-opt:hover:not(:disabled) { border-color: var(--ink); }
.quiz-opt.correct { color: var(--ivory); border-color: var(--ink); }
.quiz-opt.correct::before { clip-path: circle(150% at 100% 100%); }
.quiz-opt.correct b { color: var(--ivory); }
.quiz-opt.wrong { border-color: var(--red-ink); color: var(--red-ink); }
.quiz-opt .tick { margin-left: auto; font-weight: 600; }
.quiz-opt:disabled { cursor: default; }
.quiz-start { text-align: center; padding: 24px 0; }
.quiz-start p.note { color: var(--ink-soft); max-width: 46ch; margin: 0 auto 32px; }
.quiz-result { text-align: center; }
.result-level { font-size: clamp(72px, 11vw, 136px); line-height: 1; margin: 8px 0; font-style: italic; color: var(--red-ink); outline: none; }
.result-name { font: 600 15px/1.4 var(--sans); margin: 0 0 22px; }
.quiz-result p.muted { margin: 0 auto 18px; }
.quiz-result .disclaimer { font-size: 13px; color: var(--ink-soft); max-width: 50ch; margin: 0 auto 32px; }
.quiz-actions { display: flex; gap: 28px; justify-content: center; align-items: center; flex-wrap: wrap; }

/* ---------- Experience ---------- */
.experience { padding: var(--sec) 0; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--hair-light); border: 1px solid var(--hair-light); }
.pillar { background: var(--paper); padding: 48px 40px 52px; transition: background .5s var(--ease); }
.pillar:hover { background: var(--ivory); }
.pillar svg { width: 48px; height: 48px; fill: none; stroke: var(--ink); stroke-width: 1; margin-bottom: 36px; }
.pillar svg .accent { fill: var(--red); stroke: none; }
.pillar h3 { font: 500 28px/1.15 var(--serif); margin: 0 0 12px; }
.pillar p { color: var(--ink-soft); margin: 0; }
.tracks { margin-top: clamp(80px, 10vw, 140px); }
.track-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; }
.track-list li { display: grid; grid-template-columns: 52px 1fr; padding: 28px 0; border-top: 1px solid var(--hair-light); }
.t-n { font: italic 500 26px/1 var(--serif); color: var(--red-ink); }
.track-list b { font: 500 24px/1.2 var(--serif); display: block; margin-bottom: 8px; }
.track-list p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.ai-line { margin-top: clamp(72px, 9vw, 120px); display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 40px 0 0; border-top: 1px solid var(--ink); }
.ai-h { font-size: clamp(32px, 3.8vw, 52px); line-height: 1.05; margin: 0; }
.ai-h em { color: var(--red-ink); }

/* ---------- B2B ---------- */
.b2b { padding: clamp(80px, 10vw, 140px) 0; background: var(--navy); }
.b2b-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: end; }
.b2b .h2 em { color: var(--red-bright); }
.b2b .muted { margin: 0 0 36px; }

/* ---------- Reserve ---------- */
.reserve { padding: var(--sec) 0; }
.reserve-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 110px); align-items: start; }
.reserve-copy .h2 { margin-bottom: 26px; }
.reserve-copy .h2 em { color: var(--red-bright); }
.reserve-points { list-style: none; padding: 0; margin: 44px 0 0; }
.reserve-points li { display: grid; grid-template-columns: 40px 1fr; padding: 16px 0; border-top: 1px solid var(--hair-dark); color: var(--on-dark-soft); }
.reserve-points li span:first-child { font: italic 18px/1.4 var(--serif); color: var(--champagne); }
.card-form { background: var(--ivory); color: var(--ink); padding: clamp(28px, 4vw, 52px); }
.card-form fieldset { border: 0; padding: 0; margin: 0 0 26px; }
.card-form legend { font: 600 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 14px; padding: 0; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice legend { grid-column: 1 / -1; }
.choice label, .chips label { cursor: pointer; position: relative; }
.choice input, .chips input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--edge-light); height: 100%; transition: border-color .3s, background .3s, box-shadow .3s; }
.choice b { font: 500 19px/1.2 var(--serif); }
.choice small { font-size: 12.5px; color: var(--ink-soft); }
.choice input:checked + span { border-color: var(--ink); background: var(--paper); box-shadow: inset 3px 0 0 var(--red); }
.choice input:focus-visible + span, .chips input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.field { position: relative; margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field input, .field select {
  width: 100%; font: 400 16px/1.4 var(--sans); color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid rgba(14, 27, 44, .55); padding: 26px 0 10px; border-radius: 0;
  appearance: none; -webkit-appearance: none; outline: none; transition: border-color .3s;
}
.field select { background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' fill='none' stroke='%230E1B2C' stroke-width='1.2'/></svg>") right 2px center / 12px no-repeat; padding-right: 22px; }
.field input:focus, .field select:focus { border-bottom: 2px solid var(--ink); padding-bottom: 9px; }
.field label { position: absolute; left: 0; top: 26px; font-size: 15px; color: var(--ink-soft); pointer-events: none; transition: all .3s var(--ease); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field select:focus + label, .field select.filled + label { top: 4px; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; }
.field.invalid input, .field.invalid select { border-bottom-color: var(--red-ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { width: 100%; }
.chips span { display: inline-block; padding: 10px 16px; border: 1px solid var(--edge-light); font-size: 13px; transition: background .3s, color .3s, border-color .3s; }
.chips input:checked + span { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.form-error { color: var(--red-ink); font-size: 13px; margin: -6px 0 16px; }
.form-note { font-size: 12px; color: var(--ink-soft); text-align: center; margin: 16px 0 0; }

/* ---------- FAQ ---------- */
.faq { padding: var(--sec) 0; }
.faq-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(48px, 7vw, 110px); align-items: start; }
.faq .sec-head { position: sticky; top: 130px; margin: 0; }
.faq .sec-head .link-arrow { margin-top: 18px; }
.accordion details { border-top: 1px solid var(--hair-light); }
.accordion details:last-child { border-bottom: 1px solid var(--hair-light); }
.accordion summary { list-style: none; cursor: pointer; padding: 26px 48px 26px 0; position: relative; font: 500 clamp(20px, 2vw, 25px)/1.3 var(--serif); }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::before, .accordion summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 16px; height: 1px; background: var(--ink); transition: transform .4s var(--ease), background .4s; }
.accordion summary::after { transform: rotate(90deg); }
.accordion details[open] summary::after { transform: rotate(0); background: var(--red); }
.accordion details[open] summary::before { background: var(--red); }
.accordion p { margin: 0; padding: 0 48px 30px 0; color: var(--ink-soft); max-width: 60ch; animation: rise .5s var(--ease); }

/* ---------- Closing & footer ---------- */
.closing { padding: var(--sec) 0; text-align: center; overflow: hidden; }
.closing-mark { position: absolute; left: 50%; top: 50%; width: min(90vw, 760px); z-index: -1; color: var(--hair-dark); transform: translate(-50%, -50%) rotate(var(--rot, 0deg)); }
.closing-mark svg { width: 100%; height: auto; }
.closing-line { font-size: clamp(34px, 5vw, 72px); line-height: 1.08; max-width: 20ch; margin: 0 auto 52px; }
.closing-line em { display: block; color: var(--red-bright); }
.site-footer { padding: 84px 0 36px; border-top: 1px solid var(--hair-dark); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.1fr 1.3fr; gap: 48px; }
.brand-mark.lg { width: 52px; height: 52px; margin-bottom: 26px; }
.footer-word { font: 500 30px/1 var(--serif); margin: 0 0 10px; }
.footer-tag { font: 600 11px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--red-bright); margin: 0; }
.footer-h { font: 600 11px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--champagne); margin: 0 0 20px; }
.footer-grid a { display: block; color: var(--on-dark-soft); padding: 6px 0; font-size: 14px; transition: color .3s; }
.footer-grid a:hover { color: var(--on-dark); }
.footer-base { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-top: 64px; padding-top: 26px; border-top: 1px solid var(--hair-dark); font-size: 12px; color: var(--on-dark-soft); }
.ai-note { flex-basis: 100%; order: 3; opacity: .8; }

.wa-float {
  position: fixed; right: 24px; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 30; width: 56px; height: 56px; border-radius: 50%;
  background: var(--red); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 34px rgba(10, 22, 40, .35);
  opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none; transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.wa-float.show { opacity: 1; transform: none; pointer-events: auto; }
.wa-float svg { width: 24px; height: 24px; }
.m-bar { display: none; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; translate: 0 26px; transition: opacity 1s var(--ease) var(--d, 0s), translate 1s var(--ease) var(--d, 0s); }
.js .reveal.in { opacity: 1; translate: 0 0; }

/* ---------- Doc pages ---------- */
.doc-page .site-header { color: var(--ink); }
.doc { padding: 72px var(--gutter) 120px; }
.doc .h2 { margin-bottom: 14px; }
.doc h2:not(.h2) { font: 500 26px/1.2 var(--serif); margin: 48px 0 12px; }
.doc p { color: var(--ink-soft); max-width: 64ch; }
.doc p a { text-decoration: underline; }
.nf { min-height: 100svh; display: grid; place-items: center; text-align: center; }
.nf-mark { width: 72px; margin: 0 auto 28px; }
.nf .label { justify-content: center; }
.nf .muted { margin: 16px auto 36px; }
.nf-links { display: flex; gap: 28px; justify-content: center; align-items: center; flex-wrap: wrap; }

/* ---------- Landing pages ---------- */
.lp-hero { min-height: 0; padding: 184px 0 clamp(72px, 9vw, 128px); }
.lp-hero .display { max-width: 17ch; }
.lp-sec { padding: var(--sec) 0 clamp(48px, 6vw, 80px); }
.lp-sec .sec-head { margin-bottom: 0; }
.lp-sec .sec-head.split { align-items: start; }
.lp-tight { padding-top: 0; padding-bottom: var(--sec); }
.lp-tight .fixes { margin-top: clamp(56px, 7vw, 96px); }
.lp-prose p { color: var(--ink-soft); font-size: 17px; margin: 0 0 18px; max-width: 58ch; }
.lp-prose p:last-child { margin-bottom: 0; }
.lp-related { padding: 0 0 clamp(64px, 8vw, 104px); }
.lp-related ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 18px 48px; }
@media (max-width: 640px) { .lp-hero { padding-top: 132px; } }

/* ---------- Signature motion: the mark draws itself ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .mark-art .ma-line { animation: draw 1.4s var(--ease) .1s both; }
  .js .mark-art .ma-fill-b, .js .mark-art .ma-photo { animation: fillIn 1s var(--ease) .9s both; }
  .js .mark-art .ma-fill-a { animation: fillA 1s var(--ease) 1.05s both; }
  @keyframes draw { 0% { opacity: 1; stroke-dashoffset: 1; } 70% { opacity: 1; stroke-dashoffset: 0; } 100% { opacity: 0; stroke-dashoffset: 0; } }
  @keyframes fillIn { from { opacity: 0; } to { opacity: 1; } }
  @keyframes fillA { from { opacity: 0; translate: -14px -14px; } to { opacity: 1; translate: 0 0; } }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
}
@media (max-width: 900px) {
  .hero-grid, .method-grid, .reserve-grid, .faq-grid, .b2b-grid, .ai-line, .sec-head.split { grid-template-columns: 1fr; }
  .hero-grid { gap: 8px; }
  .hero-art { order: -1; justify-self: start; width: 34vw; max-width: 200px; margin-bottom: 14px; }
  .hero-art .ai-cap { text-align: left; }
  .sticky, .faq .sec-head { position: static; }
  .personas { grid-template-columns: 1fr; gap: 56px; }
  .p-media { aspect-ratio: 4 / 3; }
  .p-media img { object-position: 50% 14%; }
  .p-media img.pf-professional { object-position: 50% 45%; }
  .p-media img.pf-student { object-position: 44% 27%; }
  .pillars, .ff-grid { grid-template-columns: 1fr 1fr; }
  .track-list, .fixes ul { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .mark-build { width: 110px; height: 110px; margin: 32px 0; }
}
@media (max-width: 640px) {
  .hide-sm { display: none; }
  .header-inner { height: 72px; }
  .hero { padding-top: 96px; }
  .eyebrow { letter-spacing: .12em; }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-facts > div, .hero-facts > div + div { padding: 16px 0; border-left: 0; }
  .hero-facts > div + div { border-top: 1px solid var(--hair-dark); }
  .hero-cta .btn { width: 100%; }
  .btn { letter-spacing: .12em; padding: 19px 22px; }
  .step { grid-template-columns: 60px 1fr; padding: 30px 0; }
  .step-n { font-size: 40px; }
  .step h3 { font-size: 27px; }
  .pillars, .ff-grid, .quiz-opts, .choice, .field-row { grid-template-columns: 1fr; }
  .field-row { gap: 0; }
  .ff-card { height: 168px; }
  .pillar { padding: 38px 26px; }
  .footer-grid { grid-template-columns: 1fr; }
  .wa-float { display: none; }
  .m-bar {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(10, 22, 40, .94);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    transform: translateY(110%); transition: transform .5s var(--ease);
  }
  .m-bar.show { transform: none; }
  .m-bar .btn { width: 100%; padding: 16px; }
  .site-footer { padding-bottom: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; translate: 0 0; }
  .js .statement .w { opacity: 1; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
  .marquee ul[aria-hidden] { display: none; }
}

/* ---------- Journey ---------- */
.journey { padding: var(--sec) 0; }
.journey .h2 em { color: var(--red-bright); }
.journey-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; }
.journey-list::before { content: ""; position: absolute; left: 0; right: 0; top: 22px; height: 1px; background: var(--hair-dark); }
.j-step { position: relative; padding: 0 22px 0 0; }
.j-step::before { content: ""; position: relative; display: block; width: 12px; height: 12px; margin: 16px 0 30px; background: var(--red);
  clip-path: path("M0 0H12C12 6.6 6.6 12 0 12Z"); }
.j-n { font: italic 500 15px/1 var(--serif); color: var(--champagne); display: block; margin-bottom: 12px; }
.j-step h3 { font: 500 23px/1.2 var(--serif); margin: 0 0 12px; }
.j-step p { margin: 0; color: var(--on-dark-soft); font-size: 14.5px; }

/* ---------- Pricing ---------- */
.pricing { padding: var(--sec) 0; background: var(--ivory); }
.pricing .h2 em { color: var(--red-ink); }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.tier { background: var(--paper); border: 1px solid var(--hair-light); padding: 40px 34px 36px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.tier::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 64px; height: 64px; background: var(--ivory);
  clip-path: path("M64 0C28.7 0 0 28.7 0 64H64Z"); }
.tier-feature { background: var(--midnight); color: var(--on-dark); border-color: var(--midnight); }
.tier-feature::after { background: var(--red); }
.tier-tag { font: 600 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--champagne-ink); margin: 0 0 18px; }
.tier-feature .tier-tag { color: var(--champagne); }
.tier-name { font: 500 32px/1.1 var(--serif); margin: 0 0 12px; }
.tier-lede { margin: 0 0 28px; color: var(--ink-soft); font-size: 15px; min-height: 3.3em; }
.tier-feature .tier-lede { color: var(--on-dark-soft); }
.tier-price { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.tp-kicker { flex-basis: 100%; font: 600 10.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--red-ink); margin-bottom: 8px; }
.tier-feature .tp-kicker { color: var(--red-bright); }
.tier-price b { font: 500 46px/1 var(--serif); letter-spacing: -.02em; }
.tp-unit { font-size: 14px; color: var(--ink-soft); }
.tier-feature .tp-unit { color: var(--on-dark-soft); }
.tier-std { margin: 8px 0 26px; font-size: 13px; color: var(--ink-soft); text-decoration: line-through; text-decoration-color: rgba(196, 20, 42, .6); }
.tier-feature .tier-std { color: var(--on-dark-soft); }
.tier-specs { list-style: none; margin: 0 0 24px; padding: 20px 0 0; border-top: 1px solid var(--hair-light); flex: 1; }
.tier-feature .tier-specs { border-color: var(--hair-dark); }
.tier-specs li { padding: 7px 0 7px 22px; position: relative; font-size: 14.5px; }
.tier-specs li::before { content: ""; position: absolute; left: 0; top: 14px; width: 9px; height: 9px; background: var(--red); clip-path: path("M0 0H9C9 5 5 9 0 9Z"); }
.tier-trial { font-size: 13px; color: var(--ink-soft); margin: 0 0 22px; padding-right: 40px; }
.tier-feature .tier-trial { color: var(--on-dark-soft); }
.tier-trial b { color: var(--ink); }
.tier-feature .tier-trial b { color: var(--on-dark); }
.tier .btn { align-self: flex-start; position: relative; z-index: 1; }
.btn-line-ink { border-color: var(--ink); color: var(--ink); }
.btn-line-ink:hover, .btn-line-ink:focus-visible { color: #fff; border-color: var(--red); }
.pay-note { text-align: center; color: var(--ink-soft); font-size: 13.5px; max-width: 70ch; margin: 36px auto 0; }

@media (max-width: 1100px) {
  .journey-list { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .journey-list::before { display: none; }
  .j-step::before { margin: 0 0 18px; }
}
@media (max-width: 900px) {
  .tiers { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .tier-lede { min-height: 0; }
}
@media (max-width: 640px) {
  .journey-list { grid-template-columns: 1fr; }
  .tier { padding: 34px 26px 30px; }
}

/* ---------- Academic credentials (Method section) ---------- */
.creds { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 6vw, 96px); margin-top: clamp(64px, 8vw, 110px); padding-top: 44px; border-top: 1px solid var(--hair-dark); align-items: start; }
.creds .label { margin-bottom: 18px; }
.creds-lead { font: 500 clamp(21px, 2vw, 26px)/1.35 var(--serif); margin: 0; }
.creds-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px 36px; }
.creds-list li { padding-left: 20px; border-left: 1px solid var(--red); display: flex; flex-direction: column; gap: 8px; }
.creds-list b { font: 500 19px/1.3 var(--serif); }
.creds-list span { font-size: 13.5px; color: var(--on-dark-soft); }
@media (max-width: 900px) {
  .creds { grid-template-columns: 1fr; }
  .creds-list { grid-template-columns: 1fr; gap: 22px; }
}

/* ---------- Hero map: blurred Angola with a water-ripple surface ---------- */
.hero-map { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; pointer-events: none; }
.hero > .wrap { position: relative; }
.hero-copy { max-width: 760px; }
.hero-note { margin: 18px 0 0; font-size: 13px; color: var(--on-dark-soft); }
