/* MONI Languages & Culture. Design plan: _work/design-plan.md */

@font-face { font-family: 'Brygada 1918'; src: url(../fonts/brygada-1918-latin.woff2) format('woff2'); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Brygada 1918'; src: url(../fonts/brygada-1918-italic-latin.woff2) format('woff2'); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'Albert Sans'; src: url(../fonts/albert-sans-latin.woff2) format('woff2'); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Brygada Fallback'; src: local('Georgia'); size-adjust: 106%; ascent-override: 86.8%; descent-override: 23.6%; line-gap-override: 0%; }
@font-face { font-family: 'Albert Fallback'; src: local('Arial'); size-adjust: 102%; ascent-override: 93%; descent-override: 24.5%; line-gap-override: 0%; }

:root {
  --navy: #1F2A44;
  --navy-2: #2A3756;
  --red: #A84F4A;
  --red-dark: #8E3F3B;
  --red-light: #E3907F;
  --cream: #F5EFE4;
  --paper: #FFFCF7;
  --blush: #F2E2D9;
  --teal-deep: #163A3C;
  --teal: #2F6F6B;
  --gold: #C2964F;
  --gold-light: #E2C38A;
  --ink-soft: #4A5368;
  --line: rgba(31, 42, 68, .16);
  --serif: 'Brygada 1918', 'Brygada Fallback', Georgia, serif;
  --sans: 'Albert Sans', 'Albert Fallback', Arial, sans-serif;
  --gutter: clamp(20px, 4vw, 56px);
  --maxw: 1360px;
  --head-h: 96px;
  --btn-r: 3px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --sec-pad: clamp(80px, 10vw, 140px);
  --media-cap: min(76vh, 760px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; padding-top: var(--head-h); background: var(--paper); color: var(--navy);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.on-dark :focus-visible, .site-foot :focus-visible { outline-color: var(--gold-light); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.08; margin: 0; letter-spacing: -.01em; display: flow-root; }
h1 { font-size: clamp(2.6rem, 6.2vw, 6.2rem); line-height: 1.02; letter-spacing: -.02em; }
h2 { font-size: clamp(2rem, 3.5vw, 3.6rem); }
h3 { font-size: clamp(1.35rem, 1.8vw, 1.9rem); line-height: 1.15; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--navy); color: var(--paper); padding: 10px 16px; border-radius: var(--btn-r); }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Spanish twin: the quiet italic line under a heading */
.es { display: block; font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--red); font-size: clamp(1.15rem, 1.6vw, 1.6rem); line-height: 1.3; margin-top: .45em; letter-spacing: 0; }
.on-dark .es { color: var(--red-light); }
.lede { font-size: clamp(1.08rem, 1.25vw, 1.2rem); line-height: 1.6; color: var(--ink-soft); }
.on-dark { color: var(--paper); }
.on-dark .lede { color: rgba(255, 252, 247, .82); }
.label { font-family: var(--sans); font-weight: 600; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }

/* Heading masks (frontend-design recipe) */
.ln-mask { padding: .2em .15em .5em; margin: -.7em -.15em -.5em; }
.ln-mask:first-child { margin-top: -.2em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 52px; padding: 0 1.6em;
  border-radius: var(--btn-r); border: 1.5px solid transparent; font-family: var(--sans); font-weight: 600; font-size: 1rem;
  letter-spacing: .01em; text-decoration: none; cursor: pointer; position: relative; overflow: hidden; isolation: isolate;
  transition: color .4s var(--ease), border-color .4s var(--ease), background-color .4s var(--ease);
}
.btn::before { content: ''; position: absolute; inset: 0; z-index: -1; transform: scaleY(0); transform-origin: 50% 100%; transition: transform .5s var(--ease); }
.btn:hover::before, .btn:focus-visible::before { transform: scaleY(1); }
.btn--red { background: var(--red); color: var(--paper); }
.btn--red::before { background: var(--navy); }
.on-dark .btn--red::before, .band-red .btn--red::before { background: var(--paper); }
.on-dark .btn--red:hover, .band-red .btn--red:hover { color: var(--navy); }
.btn--line { border-color: currentColor; color: var(--navy); background: transparent; }
.btn--line::before { background: var(--navy); }
.btn--line:hover, .btn--line:focus-visible { color: var(--paper); border-color: var(--navy); }
.on-dark .btn--line { color: var(--paper); }
.on-dark .btn--line::before { background: var(--paper); }
.on-dark .btn--line:hover, .on-dark .btn--line:focus-visible { color: var(--navy); border-color: var(--paper); }
.btn--paper { background: var(--paper); color: var(--navy); }
.btn--paper::before { background: var(--navy); }
.btn--paper:hover, .btn--paper:focus-visible { color: var(--paper); }
.btn--lg { min-height: 58px; font-size: 1.05rem; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.text-link { display: inline-flex; align-items: center; min-height: 44px; gap: .5em; font-weight: 600; text-decoration: none; padding: 6px 0; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .5s var(--ease); }
.text-link:hover, .text-link:focus-visible { background-size: 100% 1.5px; }
.text-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .4s var(--ease); }
.text-link:hover svg { transform: translateX(4px); }

/* The red pen */
.pen { position: absolute; overflow: visible; fill: none; stroke: var(--red); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.on-dark .pen { stroke: var(--red-light); }
.pen-wrap { position: relative; display: inline-block; white-space: nowrap; }
.pen-wrap .pen--underline { left: -2%; width: 104%; height: .32em; bottom: -.12em; }
.pen-wrap .pen--circle { left: -14%; top: -22%; width: 128%; height: 150%; }

/* ---------- Header ---------- */
.site-head { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(245, 239, 228, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: box-shadow .4s var(--ease), background-color .4s; }
.site-head.is-scrolled { box-shadow: 0 1px 0 var(--line); background: rgba(255, 252, 247, .94); }
.site-head__inner { max-width: 1520px; margin-inline: auto; padding-inline: var(--gutter); height: var(--head-h); display: flex; align-items: center; gap: 28px; transition: height .45s var(--ease); }
.site-head.is-scrolled .site-head__inner { height: 76px; }
.brand { display: block; flex: none; }
.brand img { height: 70px; width: auto; transition: height .45s var(--ease); }
.site-head.is-scrolled .brand img { height: 54px; }
.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__item { position: relative; }
.nav__link { display: inline-flex; align-items: center; gap: 6px; padding: 12px 14px; background: none; border: 0; cursor: pointer; font-weight: 500; font-size: 1rem; text-decoration: none; color: var(--navy); position: relative; }
.nav__link svg { width: 11px; height: 8px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .4s var(--ease); }
.nav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav__link::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 1.5px; background: var(--red); transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s var(--ease); }
.nav__link:hover::after, .nav__item.is-current > .nav__link::after, .nav__toggle[aria-expanded="true"]::after { transform: scaleX(1); }
.nav__item--drop + .nav__item--drop .drop { left: auto; right: -10px; }
.drop { position: absolute; top: calc(100% + 8px); left: -10px; width: 360px; background: var(--paper); box-shadow: 0 24px 60px -20px rgba(31, 42, 68, .35), 0 0 0 1px var(--line); padding: 20px 22px 18px; visibility: hidden; opacity: 0; transform: translateY(8px); clip-path: inset(0 0 100% 0); transition: opacity .35s var(--ease), transform .45s var(--ease), clip-path .5s var(--ease), visibility 0s .5s; }
.nav__item.is-open .drop { visibility: visible; opacity: 1; transform: none; clip-path: inset(0 0 0 0); transition: opacity .35s var(--ease), transform .45s var(--ease), clip-path .5s var(--ease), visibility 0s; }
.drop__es { font-family: var(--serif); font-style: italic; color: var(--red); font-size: 1.1rem; margin: 0 0 8px; }
.drop__link { display: block; min-height: 48px; padding: 10px 12px; margin-inline: -12px; text-decoration: none; position: relative; transition: background-color .3s; }
.drop__link:hover, .drop__link:focus-visible { background: var(--cream); }
.drop__title { display: block; font-weight: 600; }
.drop__desc { display: block; font-size: .92rem; color: var(--ink-soft); line-height: 1.4; }
.drop__link.is-current .drop__title { color: var(--red); }
.site-head__cta { min-height: 48px; }
.menu-btn { display: none; align-items: center; gap: 10px; background: none; border: 0; padding: 10px 4px 10px 10px; cursor: pointer; font-weight: 600; color: var(--navy); min-height: 48px; }
.menu-btn__bars { display: grid; gap: 6px; width: 26px; }
.menu-btn__bars i { display: block; height: 2px; background: currentColor; transition: transform .45s var(--ease); }
.menu-btn[aria-expanded="true"] .menu-btn__bars i:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars i:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu { position: fixed; inset: 0; z-index: 90; background: var(--navy); color: var(--paper); padding: calc(var(--head-h) + 12px) var(--gutter) 32px; overflow-y: auto; overscroll-behavior: contain; }
.mobile-menu[hidden] { display: none; }
.mobile-menu__list { display: grid; gap: 22px; }
.mobile-menu__label { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 252, 247, .7); margin: 0 0 6px; }
.mobile-menu__label em { font-family: var(--serif); text-transform: none; letter-spacing: 0; font-size: 1rem; color: var(--red-light); margin-left: 6px; }
.mobile-menu a { text-decoration: none; }
.mobile-menu__group a, .mobile-menu__single a { display: block; font-family: var(--serif); font-size: 1.9rem; line-height: 1.25; padding: 4px 0; }
.mobile-menu a[aria-current="page"] { color: var(--red-light); }
.mobile-menu__cta { margin-top: 28px; width: 100%; }
body.menu-open .site-head { background: var(--navy); box-shadow: none; }
body.menu-open .site-head .brand img { filter: brightness(0) invert(.96); }
body.menu-open .menu-btn { color: var(--paper); }

@media (max-width: 1400px) { .nav__link { padding-inline: 10px; } .nav__link::after { left: 10px; right: 10px; } .site-head__inner { gap: 18px; } }
@media (max-width: 1220px) {
  .nav, .site-head__cta { display: none; }
  .menu-btn { display: inline-flex; margin-left: auto; }
  :root { --head-h: 80px; }
  .brand img { height: 58px; }
  .site-head.is-scrolled .site-head__inner { height: 68px; }
  .site-head.is-scrolled .brand img { height: 50px; }
}

/* ---------- Sections and bands ---------- */
.section { position: relative; padding-block: var(--sec-pad); }
.bg-cream { background: var(--cream); }
.bg-paper { background: var(--paper); }
.bg-blush { background: var(--blush); }
.bg-navy { background: var(--navy); color: var(--paper); }
.bg-teal { background: var(--teal-deep); color: var(--paper); }
.band-red { background: var(--red); color: var(--paper); }
.band-red .lede { color: rgba(255, 252, 247, .88); }
.band-red .es { color: var(--gold-light); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(24px, 4vw, 72px); align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.sec-head .lede { margin: 0; }
@media (max-width: 900px) { .sec-head { grid-template-columns: 1fr; } }

/* Ruled exercise-book texture for the red band */
.ruled { background-image: repeating-linear-gradient(to bottom, transparent 0 39px, rgba(255, 252, 247, .09) 39px 40px); }
.ruled::before { content: ''; position: absolute; top: 0; bottom: 0; left: clamp(28px, 6vw, 96px); width: 1.5px; background: rgba(226, 195, 138, .35); }

/* Media frames: square corners, offset pen-red outline */
.frame { position: relative; }
.frame__img { position: relative; overflow: hidden; }
.frame__img img { width: 100%; height: 100%; object-fit: cover; }
.frame--offset::after { content: ''; position: absolute; inset: 18px -18px -18px 18px; border: 1.5px solid var(--red); z-index: -1; }
.vocab { display: inline-grid; gap: 2px; background: var(--paper); color: var(--navy); padding: 12px 16px 13px; font-size: .92rem; line-height: 1.35; box-shadow: 0 18px 40px -18px rgba(31, 42, 68, .45); }
.vocab b { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; }
.vocab i { font-family: var(--serif); color: var(--red); font-style: italic; margin-left: 6px; font-weight: 400; }
.vocab span { color: var(--ink-soft); }

/* Motion start states: only when scripts run and motion is wanted */
html.js:not(.no-motion):not(.reduced) [data-split] { visibility: hidden; }
html.js:not(.no-motion):not(.reduced) [data-reveal] > * { opacity: 0; }
html.js:not(.no-motion):not(.reduced) [data-wipe] { clip-path: inset(100% 0 0 0); }
html.js:not(.no-motion):not(.reduced) [data-pen] { visibility: hidden; }

/* ---------- Home hero ---------- */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 50fr) minmax(0, 50fr); height: calc(100svh - var(--head-h)); min-height: 620px; max-height: 1100px; background: var(--cream); overflow: clip; }
.hero__text { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; padding: clamp(24px, 4vh, 56px) clamp(28px, 4vw, 72px) clamp(28px, 5vh, 64px) max(var(--gutter), calc((100vw - 1520px) / 2 + var(--gutter))); }
.hero h1 { font-size: clamp(2.7rem, 4.6vw, 5.5rem); }
.hero h1 .pen-wrap .pen--underline { bottom: -.02em; height: .3em; }
.hero__es { font-size: clamp(1.25rem, 1.9vw, 1.9rem); margin-top: .5em; }
.hero__lede { margin: clamp(18px, 2.6vh, 30px) 0 clamp(22px, 3.2vh, 36px); font-size: clamp(1.05rem, 1.2vw, 1.2rem); color: var(--ink-soft); }
.hero__facts { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: clamp(22px, 4vh, 44px); padding-top: 18px; border-top: 1px solid var(--line); font-size: .95rem; font-weight: 500; }
.hero__facts li { display: flex; align-items: center; gap: 10px; }
.hero__facts li::before { content: ''; width: 7px; height: 7px; background: var(--red); transform: rotate(45deg); }
.hero__stage { position: relative; overflow: hidden; background: var(--navy); cursor: crosshair; }
.hero__poster, .hero__slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__slides { position: absolute; inset: 0; }
.hero__slides img { opacity: 0; }
.hero__slides img.is-on { opacity: 1; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1s var(--ease); }
.hero__stage.gl-on .hero__canvas { opacity: 1; }
.hero__shade { position: absolute; inset: auto 0 0 0; height: 46%; background: linear-gradient(to top, rgba(18, 24, 40, .62), rgba(18, 24, 40, 0)); pointer-events: none; }
.hero__note { position: absolute; left: clamp(18px, 2.4vw, 36px); bottom: clamp(18px, 3vh, 36px); max-width: min(380px, calc(100% - 380px)); z-index: 3; }
.hero__note .vocab { min-width: 250px; }
.hero__caption { color: var(--paper); font-size: .95rem; line-height: 1.45; margin: 12px 0 0; text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
.hero__ctrl { position: absolute; right: clamp(18px, 2.4vw, 36px); bottom: clamp(18px, 3vh, 36px); z-index: 3; display: flex; align-items: center; gap: 14px; color: var(--paper); }
.hero__count { font-family: var(--serif); font-size: 1.05rem; font-variant-numeric: tabular-nums; min-width: 4.4em; text-align: right; }
.hero__count b { font-weight: 600; }
.hero__bar { width: clamp(70px, 9vw, 140px); height: 2px; background: rgba(255, 252, 247, .3); position: relative; overflow: hidden; }
.hero__bar i { position: absolute; inset: 0; background: var(--paper); transform-origin: 0 50%; transform: scaleX(0); }
.hero__btn { width: 44px; height: 44px; display: grid; place-items: center; background: rgba(255, 252, 247, .12); border: 1px solid rgba(255, 252, 247, .45); border-radius: var(--btn-r); cursor: pointer; color: var(--paper); transition: background-color .3s, color .3s; }
.hero__btn:hover, .hero__btn:focus-visible { background: var(--paper); color: var(--navy); }
.hero__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.hero__place { position: absolute; top: clamp(18px, 3vh, 32px); right: clamp(18px, 2.4vw, 36px); z-index: 3; background: var(--navy); color: var(--paper); padding: 7px 12px 6px; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; grid-template-rows: auto 1fr; height: auto; min-height: calc(100svh - var(--head-h)); max-height: none; }
  .hero__stage { order: -1; height: 38svh; min-height: 250px; }
  .hero__text { padding: 22px var(--gutter) 30px; justify-content: flex-start; }
  .hero h1 { font-size: clamp(2.3rem, 10vw, 3.4rem); }
  .hero__lede { margin: 14px 0 20px; }
  .hero__facts { margin-top: 20px; padding-top: 14px; gap: 6px 18px; font-size: .88rem; }
  .hero__note { max-width: calc(100% - 28px); bottom: 14px; left: 14px; }
  .hero__place { display: none; }
  .hero__ctrl { top: 14px; bottom: auto; }
  .hero__btn { background: rgba(31, 42, 68, .55); }
  .hero__note .vocab { min-width: 0; padding: 9px 12px; font-size: .9rem; }
  .hero__note .vocab b { font-size: 1.05rem; }
  .hero__caption { display: none; }
  .hero__ctrl { right: 14px; gap: 8px; }
  .hero__bar { display: none; }
}

/* ---------- Home: three ways in (navy) ---------- */
.ways__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 44px); align-items: start; }
.way { position: relative; display: block; text-decoration: none; color: inherit; }
.way:nth-child(2) { margin-top: clamp(24px, 3vw, 40px); }
.way__media { position: relative; height: min(38vh, 360px); overflow: hidden; }
.way__media img { position: absolute; inset: -6% -4%; width: 108%; height: 112%; max-width: none; object-fit: cover; transition: transform 1.2s var(--ease); }
.way:hover .way__media img { transform: scale(1.04); }
.way__word { position: absolute; left: 16px; bottom: 16px; z-index: 2; }
.way__word .vocab { transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.way:hover .way__word .vocab { transform: translateY(-6px); box-shadow: 0 26px 50px -20px rgba(0, 0, 0, .6); }
.way__strand { position: absolute; top: 16px; left: 16px; z-index: 2; background: var(--navy); color: var(--paper); padding: 6px 10px; }
.way__body { padding-top: 22px; }
.way__body h3 { margin-bottom: 10px; }
.way__body p { color: rgba(255, 252, 247, .8); margin-bottom: 14px; }
.way__links { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.way__links .text-link { color: var(--paper); }
.way-link-cover { position: absolute; inset: 0; z-index: 1; }
@media (max-width: 900px) {
  .ways__grid { grid-template-columns: 1fr; gap: 48px; }
  .way:nth-child(2) { margin-top: 0; }
  .way__media { height: min(56vh, 420px); }
}

/* ---------- Home: Learn, Experience, Connect (pinned) ---------- */
.pillars { background: var(--paper); }
.pillars__pin { min-height: calc(100svh - 76px); display: flex; align-items: center; padding-block: clamp(40px, 6vh, 72px); }
.pillars__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 96px); align-items: center; }
.pillars__intro { margin-bottom: clamp(22px, 3.4vh, 40px); }
.pillars__words { display: grid; gap: clamp(4px, 1vh, 12px); margin-bottom: clamp(18px, 3vh, 32px); }
.pillar-word { position: relative; display: flex; align-items: baseline; gap: 18px; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; color: var(--navy); }
.pillar-word__en { position: relative; font-family: var(--serif); font-weight: 500; font-size: clamp(2.2rem, 4vw, 4rem); line-height: 1.12; opacity: .22; transition: opacity .6s var(--ease); }
.pillar-word__es { font-family: var(--serif); font-style: italic; color: var(--red); font-size: clamp(1.05rem, 1.4vw, 1.4rem); opacity: .4; transform: translateX(-8px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.pillar-word.is-active .pillar-word__en { opacity: 1; }
.pillar-word.is-active .pillar-word__es { opacity: 1; transform: none; }
.pillar-word .pen--circle { left: -6%; top: -12%; width: 112%; height: 128%; }
.pillars__copy { position: relative; min-height: 9.8em; }
.pillars__copy h3 { font-size: clamp(1.25rem, 1.5vw, 1.5rem); margin-bottom: 8px; }
.pillars__copy p { color: var(--ink-soft); margin-bottom: 10px; }
.pillars__list { display: none; }
.pillar-item { margin-bottom: 40px; }
.pillar-item__img { height: min(46vh, 340px); overflow: hidden; margin-bottom: 18px; }
.pillar-item__img img { width: 100%; height: 100%; object-fit: cover; }
.pillar-item h3 { margin-bottom: 8px; }
.pillar-item h3 em { font-style: italic; font-weight: 400; color: var(--red); font-size: .8em; margin-left: 6px; }
.pillar-item p { color: var(--ink-soft); margin-bottom: 8px; }
.pillars__rail { display: flex; gap: 8px; margin-top: 18px; }
.pillars__rail i { flex: 1; height: 2px; background: var(--line); position: relative; overflow: hidden; }
.pillars__rail i b { position: absolute; inset: 0; background: var(--red); transform-origin: 0 50%; transform: scaleX(0); }
.pillars__stage { position: relative; height: min(70vh, 660px); width: 100%; }
.pillars__stage .frame__img { position: absolute; inset: 0; }
.pillar-img { position: absolute; inset: 0; margin: 0; }
.pillar-img img { width: 100%; height: 100%; object-fit: cover; }
.pillar-img figcaption { position: absolute; left: 16px; right: 16px; bottom: 16px; color: var(--paper); font-size: .92rem; line-height: 1.4; text-shadow: 0 1px 12px rgba(0, 0, 0, .5); }
.pillar-img::after { content: ''; position: absolute; inset: 55% 0 0 0; background: linear-gradient(to top, rgba(18, 24, 40, .6), transparent); }
.pillar-img figcaption { z-index: 2; }
@media (max-width: 900px) {
  .pillars__pin { min-height: 0; display: block; padding-block: var(--sec-pad); }
  .pillars__grid { grid-template-columns: 1fr; }
  .pillars__words, .pillars__rail, .pillars__stage, .pillars__copy { display: none; }
  .pillars__list { display: block; }
}


/* ---------- Home: why Moni (blush) ---------- */
.why__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 110px); align-items: center; }
.why__media { position: relative; height: min(64vh, 600px); }
.why__media .frame__img { position: absolute; inset: 0; }
.why__media .frame__img img { position: absolute; inset: -8% 0; height: 116%; }
.why__count { position: absolute; right: -28px; bottom: 40px; z-index: 2; background: var(--navy); color: var(--paper); padding: 18px 22px 16px; min-width: 190px; }
.why__count b { display: block; font-family: var(--serif); font-weight: 500; font-size: 3.4rem; line-height: 1; color: var(--gold-light); font-variant-numeric: tabular-nums; }
.why__count span { font-size: .92rem; }
.why__text h2 { margin-bottom: 4px; }
.why__text .lede { margin: 22px 0 28px; }
.why__list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.why__list li { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.why__list b { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; }
.why__list span { color: var(--ink-soft); }
@media (max-width: 900px) {
  .why__grid { grid-template-columns: 1fr; }
  .why__media { height: min(58vh, 460px); margin-right: 18px; }
  .why__count { right: -18px; bottom: 24px; }
  .why__list li { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- Planner (teaser and page) ---------- */
.planner-teaser { overflow: hidden; }
.planner-teaser__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 96px); align-items: center; }
.planner-teaser h2 { color: var(--paper); }
.planner-teaser .lede { margin-top: 20px; }
.pl-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
.field { display: grid; gap: 6px; }
.field > span, .field legend { font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.select, .input, .textarea {
  width: 100%; min-height: 52px; border: 1.5px solid var(--line); background: var(--paper); color: var(--navy); border-radius: 0;
  font: inherit; font-size: 1rem; padding: 12px 16px; transition: border-color .3s, box-shadow .3s;
}
.select { appearance: none; -webkit-appearance: none; padding-right: 48px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M3 6.5l6 6 6-6' fill='none' stroke='%231F2A44' stroke-width='1.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center; background-size: 18px; }
.select:focus, .input:focus, .textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(168, 79, 74, .2); }
.band-red .select, .bg-navy .select { border-color: transparent; }
.pl-out { background: var(--paper); color: var(--navy); padding: clamp(24px, 3vw, 40px); position: relative; box-shadow: 0 40px 80px -40px rgba(20, 10, 10, .5); }
.pl-out__weeks { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.pl-out__num { display: inline-block; min-width: 2ch; text-align: right; font-family: var(--serif); font-weight: 500; font-size: clamp(4rem, 7vw, 6.4rem); line-height: .95; color: var(--red); font-variant-numeric: tabular-nums; }
.pl-out__unit { font-family: var(--serif); font-size: clamp(1.4rem, 2vw, 2rem); }
.pl-out__line { margin: 10px 0 22px; color: var(--ink-soft); }
.pl-bar { display: flex; height: 54px; gap: 3px; }
.pl-bar__seg { position: relative; flex: 1 1 0; min-width: 0; color: var(--paper); font-size: .78rem; font-weight: 600; padding: 8px 10px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; transform-origin: 0 50%; }
.pl-bar__seg:nth-child(1) { background: var(--navy); }
.pl-bar__seg:nth-child(2) { background: var(--teal); }
.pl-bar__seg:nth-child(3) { background: var(--gold); color: var(--navy); }
.pl-bar__seg:nth-child(4) { background: var(--red); }
.pl-legend { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; margin-top: 10px; font-size: .9rem; color: var(--ink-soft); line-height: 1.35; }
.pl-legend b { display: block; color: var(--navy); font-variant-numeric: tabular-nums; }
.pl-note { font-size: .9rem; color: var(--ink-soft); margin: 18px 0 0; }
.planner-teaser .text-link { color: var(--paper); margin-top: 22px; }
@media (max-width: 900px) {
  .planner-teaser__grid { grid-template-columns: 1fr; }
  .pl-fields { grid-template-columns: 1fr; }
  .pl-legend { grid-template-columns: 1fr 1fr; gap: 10px; }
}

/* ---------- Home: Bilbao filmstrip (teal) ---------- */
.strip { overflow: clip; }
.strip__pin { min-height: calc(100svh - 76px); display: flex; flex-direction: column; justify-content: center; padding-block: clamp(24px, 4vh, 48px); }
.strip__head { display: flex; flex-direction: column; align-items: stretch; gap: 18px; margin-bottom: clamp(20px, 3vh, 36px); }
.strip__head > div:first-child { flex: 1; min-width: 0; }
.strip__viewport { overflow: clip; }
.strip__head .lede { margin: 18px 0 0; }
.strip__meta { display: flex; align-items: center; gap: 16px; flex: none; font-family: var(--serif); font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.strip__progress { width: 160px; height: 2px; background: rgba(255, 252, 247, .25); position: relative; overflow: hidden; }
.strip__progress i { position: absolute; inset: 0; background: var(--gold-light); transform-origin: 0 50%; transform: scaleX(0); }
.strip__track { display: flex; gap: clamp(18px, 2vw, 32px); padding-left: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))); padding-right: var(--gutter); width: max-content; will-change: transform; }
.moment { position: relative; flex: none; width: clamp(280px, 30vw, 440px); margin: 0; }
.moment:nth-child(even) { margin-top: clamp(12px, 2.4vh, 28px); }
.moment__img { position: relative; height: min(44vh, 400px); overflow: hidden; }
.moment__img img { position: absolute; top: 0; left: -10%; width: 120%; max-width: none; height: 100%; object-fit: cover; }
.moment .vocab { position: absolute; left: 14px; bottom: 14px; z-index: 2; }
.moment figcaption { padding-top: 14px; color: rgba(255, 252, 247, .84); font-size: .98rem; line-height: 1.5; }
.moment figcaption b { color: var(--paper); font-family: var(--serif); font-weight: 600; font-size: 1.15rem; margin-right: 4px; }
.moment--end { width: clamp(280px, 28vw, 400px); display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 32px; border: 1.5px solid rgba(255, 252, 247, .3); height: min(44vh, 400px); }
.moment--end h3 { color: var(--paper); }
@media (max-width: 900px) {
  .strip__pin { min-height: 0; padding-block: var(--sec-pad); }
  .strip__head { flex-direction: column; align-items: start; gap: 18px; }
  .strip__viewport { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .strip__viewport::-webkit-scrollbar { display: none; }
  .strip__track { padding-left: var(--gutter); }
  .moment { width: 78vw; scroll-snap-align: start; }
  .moment:nth-child(even) { margin-top: 0; }
  .moment__img { height: min(54vh, 400px); }
  .moment--end { width: 78vw; height: auto; min-height: 300px; }
}

/* ---------- CTA with photo ---------- */
.cta__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(36px, 6vw, 110px); align-items: center; }
.cta__media { position: relative; height: min(64vh, 600px); }
.cta__media .frame__img { position: absolute; inset: 0; }
.cta__media .frame__img img { position: absolute; inset: -8% 0; height: 116%; }
.cta__text .lede { margin: 22px 0 30px; }
.cta__media .pen--arrow { width: 120px; height: 60px; right: -70px; top: 30px; }
@media (max-width: 900px) { .cta__grid { grid-template-columns: 1fr; } .cta__media { height: min(46vh, 360px); } .cta__media .pen--arrow { display: none; } }

/* ---------- Footer ---------- */
.site-foot { background: var(--navy); color: var(--paper); overflow: hidden; }
.site-foot__marquee { border-bottom: 1px solid rgba(255, 252, 247, .14); padding-block: clamp(22px, 3vw, 36px); }
.marquee { overflow: hidden; white-space: nowrap; }
.marquee__track { display: inline-flex; align-items: baseline; gap: clamp(22px, 3vw, 48px); padding-right: clamp(22px, 3vw, 48px); will-change: transform; }
.marquee__track span { font-family: var(--serif); font-size: clamp(2rem, 4.4vw, 4.2rem); line-height: 1.1; }
.marquee__track em { font-family: var(--serif); font-size: clamp(2rem, 4.4vw, 4.2rem); line-height: 1.1; color: var(--red-light); }
.site-foot__main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(36px, 6vw, 100px); padding-block: clamp(56px, 7vw, 96px) clamp(40px, 5vw, 64px); }
.site-foot__logo img { height: 84px; width: auto; }
.site-foot__brand p { margin: 22px 0 26px; color: rgba(255, 252, 247, .78); }
.site-foot__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.site-foot__head { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 14px; }
.site-foot__col a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; padding: 4px 0; color: rgba(255, 252, 247, .9); background: linear-gradient(var(--red-light), var(--red-light)) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease), color .3s; }
.site-foot__col a:hover, .site-foot__col a:focus-visible { background-size: 100% 1px; color: var(--paper); }
.site-foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 30px; padding-block: 22px 28px; border-top: 1px solid rgba(255, 252, 247, .14); font-size: .92rem; color: rgba(255, 252, 247, .72); }
.site-foot__base p { margin: 0; }
.site-foot__credit a { color: var(--paper); }
@media (max-width: 900px) {
  .site-foot__main { grid-template-columns: 1fr; }
  .site-foot__cols { grid-template-columns: 1fr 1fr; }
}

.wa-btn { position: fixed; right: 18px; bottom: 18px; z-index: 80; width: 52px; height: 52px; display: grid; place-items: center; background: var(--navy); color: var(--paper); border-radius: 50%; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5); }
.wa-btn svg { width: 24px; height: 24px; fill: currentColor; }

/* Reduced motion: everything visible, nothing moving */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Home intro start states (the safety net in <head> shows them after 1.5 s if scripts fail) */
html.js:not(.no-motion):not(.reduced) [data-hero-title] { visibility: hidden; }
html.js:not(.no-motion):not(.reduced) [data-hero-es],
html.js:not(.no-motion):not(.reduced) [data-hero-fade],
html.js:not(.no-motion):not(.reduced) .hero__note,
html.js:not(.no-motion):not(.reduced) .hero__ctrl,
html.js:not(.no-motion):not(.reduced) .hero__place,
html.js:not(.no-motion):not(.reduced) .page-home .site-head .brand,
html.js:not(.no-motion):not(.reduced) .page-home .site-head .nav__item,
html.js:not(.no-motion):not(.reduced) .page-home .site-head__cta,
html.js:not(.no-motion):not(.reduced) .page-home .menu-btn { opacity: 0; }

/* 404 */
.pen-wrap .pen--strike { left: -4%; width: 108%; top: 42%; height: .3em; }
.nf { min-height: calc(100svh - var(--head-h)); display: flex; align-items: center; }
.nf__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(36px, 6vw, 100px); align-items: center; }
.nf .lede { margin: 22px 0 30px; }
.nf__media { height: min(64vh, 560px); }
.nf__media .frame__img { position: absolute; inset: 0; }
.nf__media .frame__img img { position: absolute; inset: -8% 0; height: 116%; }
@media (max-width: 900px) { .nf__grid { grid-template-columns: 1fr; } .nf__media { height: 40vh; } }

.ways { padding-block: clamp(64px, 8vh, 96px); }
.ways .sec-head { margin-bottom: clamp(28px, 4vh, 48px); }
.way__body { padding-top: 18px; }
.way__body p { margin-bottom: 8px; }
.why { padding-block: clamp(64px, 8vh, 110px); }

/* ---------- Exam preparation: split opener, image left ---------- */
.ex-open { position: relative; display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); grid-template-rows: 1fr auto; min-height: min(78vh, 760px); background: var(--cream); }
.ex-open__media { position: relative; grid-row: 1 / 3; min-height: 420px; }
.ex-open__img { position: absolute; inset: 0; overflow: hidden; }
.ex-open__img img { width: 100%; height: 100%; object-fit: cover; }
.ex-open__slip { position: absolute; right: -28px; bottom: 96px; z-index: 2; }
.ex-open__slip p { margin: 0; background: var(--paper); padding: 16px 22px 14px; box-shadow: 0 24px 50px -20px rgba(31, 42, 68, .45); display: grid; gap: 2px; }
.ex-open__word { position: relative; font-family: var(--serif); font-size: 1.6rem; font-weight: 600; justify-self: start; }
.ex-open__word .pen--underline { left: -4%; width: 108%; bottom: -.1em; height: .35em; }
.ex-open__slip p > span:last-child { font-size: .95rem; color: var(--ink-soft); }
.ex-open__text { display: flex; flex-direction: column; justify-content: center; padding: clamp(40px, 6vh, 72px) max(var(--gutter), calc((100vw - 1520px) / 2 + var(--gutter))) clamp(28px, 4vh, 48px) clamp(56px, 6vw, 110px); }
.ex-open h1 { font-size: clamp(2.4rem, 4.2vw, 4.4rem); line-height: 1.05; }
.ex-open .lede { margin: 20px 0 28px; }
.ex-open__strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line); padding-left: clamp(56px, 6vw, 110px); padding-right: max(var(--gutter), calc((100vw - 1520px) / 2 + var(--gutter))); }
.ex-open__strip a { display: flex; align-items: center; justify-content: center; min-height: 76px; text-decoration: none; font-family: var(--serif); font-size: clamp(1.15rem, 1.5vw, 1.45rem); font-weight: 500; border-left: 1px solid var(--line); }
.ex-open__strip li:first-child a { border-left: 0; }
.ex-open__strip span { position: relative; }
.ex-open__strip .pen--circle { left: -30%; top: -40%; width: 160%; height: 180%; }
@media (max-width: 900px) {
  .ex-open { grid-template-columns: 1fr; grid-template-rows: auto auto auto; min-height: 0; }
  .ex-open__media { grid-row: auto; min-height: 0; height: 34svh; }
  .ex-open__slip { right: 14px; bottom: 14px; }
  .ex-open__slip p { padding: 10px 14px; }
  .ex-open__word { font-size: 1.2rem; }
  .ex-open__text { padding: 26px var(--gutter) 22px; }
  .ex-open__strip { padding: 0 var(--gutter); grid-template-columns: repeat(5, auto); justify-content: space-between; }
  .ex-open__strip a { min-height: 56px; padding: 0 6px; border-left: 0; font-size: 1.05rem; }
}

/* Which exam: tabs */
.exams__tabs { position: relative; display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: clamp(28px, 4vh, 48px); }
.exams__tab { position: relative; flex: none; white-space: nowrap; background: none; border: 0; cursor: pointer; padding: 14px clamp(14px, 2vw, 26px); min-height: 52px; font-family: var(--serif); font-size: clamp(1.1rem, 1.5vw, 1.4rem); font-weight: 500; color: var(--ink-soft); transition: color .3s; }
.exams__tab.is-active, .exams__tab:hover { color: var(--navy); }
.exams__ink { position: absolute; left: 0; bottom: -1px; height: 3px; width: 60px; background: var(--red); }
.exams__panel { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 90px); align-items: center; }
.exams__panel[hidden] { display: none; }
.exams__copy h3 { font-size: clamp(1.5rem, 2.2vw, 2.1rem); margin-bottom: 14px; }
.exams__copy > p { color: var(--ink-soft); font-size: 1.08rem; }
.exams__list { display: grid; gap: 10px; margin: 22px 0 18px; }
.exams__list li { display: flex; gap: 14px; align-items: center; font-weight: 500; }
.exams__list .pen { position: relative; flex: none; width: 26px; height: 22px; }
.exams__media { height: min(56vh, 480px); }
.exams__media .frame__img { position: absolute; inset: 0; }
.exams__media .frame__img img { position: absolute; inset: -8% 0; height: 116%; }
@media (max-width: 900px) {
  .exams__tabs { overflow-x: auto; scrollbar-width: none; }
  .exams__panel { grid-template-columns: 1fr; }
  .exams__media { height: 40vh; margin-right: 18px; }
}

/* The red pen marks a sample answer (pinned, navy) */
.mark__pin { min-height: calc(100svh - 76px); display: flex; align-items: center; padding-block: clamp(32px, 5vh, 64px); }
.mark__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 5vw, 96px); align-items: center; width: 100%; }
.mark__intro .lede { margin: 18px 0 22px; }
.mark__tally { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.mark__tally li { display: flex; gap: 12px; align-items: baseline; opacity: .38; transition: opacity .5s var(--ease); font-size: 1rem; color: rgba(255, 252, 247, .9); }
.mark__tally li.is-on { opacity: 1; }
.mark__tally .pen { position: relative; flex: none; width: 22px; height: 18px; top: 3px; }
.mark__tally b { color: var(--paper); font-weight: 600; }
.mark__paper { position: relative; background: var(--paper); color: var(--navy); padding: clamp(28px, 3.4vw, 52px) clamp(110px, 12vw, 180px) clamp(24px, 3vw, 40px) clamp(48px, 5vw, 80px); box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .6); transform: rotate(-.6deg); }
.mark__paper::before { content: ""; position: absolute; top: 0; bottom: 0; left: clamp(30px, 3.4vw, 56px); width: 1.5px; background: rgba(168, 79, 74, .45); }
.mark__task { font-size: .88rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 18px; }
.mark__text { font-family: var(--serif); font-size: clamp(1.2rem, 1.5vw, 1.5rem); line-height: 52px; margin: 0 0 18px; padding-top: 10px; background-image: repeating-linear-gradient(to bottom, transparent 0 51px, rgba(47, 111, 107, .2) 51px 52px); background-position: 0 4px; }
.mk { position: relative; display: inline-block; white-space: nowrap; }
.mk__wrong { position: relative; display: inline-block; }
.mk__fix { position: absolute; left: 50%; bottom: 74%; line-height: 1; transform: translateX(-50%) rotate(-3deg); font-style: italic; color: #8a8f99; opacity: .14; font-size: .8em; white-space: nowrap; transition: color .4s; }
.mk.is-on .mk__fix { color: var(--red); }
.mk .pen--strike { left: -6%; width: 112%; top: 38%; height: .4em; }
.mk .pen--underline { left: -1%; width: 102%; bottom: -.08em; height: .3em; }
.mk--good .pen--underline { stroke: var(--teal); }
.mark__notes { position: absolute; top: 0; right: 18px; bottom: 0; width: clamp(84px, 9vw, 140px); }
.mark__note { position: absolute; right: 0; font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: #8a8f99; opacity: .16; white-space: nowrap; transform: rotate(-4deg); }
.mark__note.is-on { color: var(--red); }
.mark__note--good.is-on { color: var(--teal); }
.mark__foot { display: flex; gap: 18px; align-items: center; margin: 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: .95rem; color: var(--ink-soft); }
.mark__grade { flex: none; font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--red); border: 2px solid var(--red); padding: 2px 12px; transform: rotate(-4deg); }
@media (max-width: 900px) {
  .mark__pin { min-height: 0; display: block; padding-block: var(--sec-pad); }
  .mark__grid { grid-template-columns: 1fr; }
  .mark__paper { padding: 26px 18px 20px 40px; transform: none; }
  .mark__paper::before { left: 24px; }
  .mark__notes { display: none; }
  .mark__text { font-size: 1.12rem; line-height: 46px; background-image: repeating-linear-gradient(to bottom, transparent 0 45px, rgba(47, 111, 107, .2) 45px 46px); }
  .mk { white-space: normal; }
  .mk--good, .mk--good .mk__wrong { display: inline; }
  .mk--good .pen--underline { display: none; }
  .mk--good.is-on .mk__wrong { background: rgba(47, 111, 107, .16); box-shadow: 0 2px 0 var(--teal); }
}

/* One-to-one or small group */
.formats__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(36px, 6vw, 110px); align-items: center; }
.formats__media { height: min(64vh, 580px); }
.formats__media .frame__img { position: absolute; inset: 0; }
.formats__media .frame__img img { position: absolute; inset: -8% 0; height: 116%; }
.formats__pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 44px); margin: 28px 0 32px; }
.formats__item { border-top: 2px solid var(--red); padding-top: 16px; }
.formats__item h3 { margin-bottom: 8px; }
.formats__item p { color: var(--ink-soft); margin: 0; }
@media (max-width: 900px) { .formats__grid, .formats__pair { grid-template-columns: 1fr; } .formats__media { height: 40vh; margin-right: 18px; } }

/* Questions */
.faq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(36px, 6vw, 100px); align-items: start; }
.faq__media { position: relative; height: min(40vh, 360px); margin-top: 30px; overflow: hidden; }
.faq__media img { position: absolute; inset: -8% 0; height: 116%; width: 100%; object-fit: cover; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item:first-child { border-top: 1px solid var(--line); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 20px 0; min-height: 64px; font-family: var(--serif); font-size: clamp(1.15rem, 1.4vw, 1.35rem); font-weight: 500; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary > span { flex: 1; }
.faq__item summary i { position: relative; flex: none; width: 18px; height: 18px; }
.faq__item summary i::before, .faq__item summary i::after { content: ""; position: absolute; left: 0; top: 8px; width: 18px; height: 2px; background: var(--red); transition: transform .45s var(--ease); }
.faq__item summary i::after { transform: rotate(90deg); }
.faq__item[open] summary i::after { transform: rotate(0deg); }
.faq__body { overflow: hidden; }
.faq__body p { color: var(--ink-soft); padding-bottom: 20px; margin: 0; }
.faq__body a { color: var(--red); font-weight: 600; }
@media (max-width: 900px) { .faq__grid { grid-template-columns: 1fr; } }

/* Photo CTA band */
.band-cta { position: relative; overflow: hidden; isolation: isolate; }
.band-cta__bg { position: absolute; inset: 0; z-index: -1; }
.band-cta__bg img { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; }
.band-cta__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(22, 58, 60, .93) 0%, rgba(22, 58, 60, .7) 50%, rgba(22, 58, 60, .2) 100%); }
.band-cta__inner { padding-block: clamp(20px, 4vh, 40px); }
.band-cta .lede { margin: 18px 0 28px; }

/* ---------- Contact: the form is the opener, beside the map ---------- */
.ct-open { display: grid; grid-template-columns: minmax(0, 56fr) minmax(0, 44fr); min-height: calc(100svh - var(--head-h)); background: var(--cream); }
.ct-open__form { padding: clamp(20px, 3.5vh, 56px) clamp(32px, 4vw, 72px) clamp(20px, 3.5vh, 48px) max(var(--gutter), calc((100vw - 1520px) / 2 + var(--gutter))); display: flex; flex-direction: column; justify-content: center; }
.ct-open h1 { font-size: clamp(2rem, 3.1vw, 3.4rem); line-height: 1.05; }
.ct-open__lede { margin: 10px 0 16px; color: var(--ink-soft); font-size: 1.08rem; }
.form { display: grid; gap: 12px; }
.form[hidden], form#enquiry-form.form[hidden] { display: none; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form__row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form .input, .form .select { min-height: 48px; padding-block: 10px; }
.form .field > span { font-size: .88rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); }
.form .field em { font-style: normal; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--ink-soft); }
.textarea { min-height: 76px; resize: vertical; line-height: 1.5; }
.input::placeholder, .textarea::placeholder { color: #7c8392; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 4px; }
.form__note { margin: 0; font-size: .92rem; color: var(--ink-soft); }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#enquiry-form { scroll-margin-top: 110px; }
.form__status { margin: 0; padding: 14px 18px; font-weight: 600; border-left: 4px solid; }
.form__status--ok { background: rgba(47, 111, 107, .12); border-color: var(--teal); color: var(--teal-deep); }
.form__status--err { background: rgba(168, 79, 74, .12); border-color: var(--red); color: var(--red-dark); }
.ct-open__map { position: relative; display: flex; flex-direction: column; justify-content: center; padding: clamp(24px, 4vh, 48px) clamp(20px, 3vw, 48px); overflow: hidden; }
.map { width: 100%; height: auto; max-height: 62vh; overflow: visible; }
.map__land { fill: #34436A; }
.map__coast { fill: none; stroke: var(--gold-light); stroke-width: 2.2; stroke-linejoin: round; }
.map__sea-lines path { fill: none; stroke: rgba(255, 252, 247, .16); stroke-width: 1.2; }
.map__ria { fill: none; stroke: #7FC4BE; stroke-width: 4; stroke-linecap: round; }
.map__ring { fill: rgba(227, 144, 127, .06); stroke: var(--red-light); stroke-width: 1.8; stroke-dasharray: 6 9; }
.map__town circle { fill: var(--paper); }
.map__town text, .map__pin text { fill: var(--paper); font-family: var(--sans); font-size: 17px; font-weight: 500; }
.map__pin text { font-family: var(--serif); font-size: 26px; font-weight: 600; }
.map__dot { fill: var(--red-light); stroke: var(--paper); stroke-width: 3; }
.map__pulse { fill: none; stroke: var(--red-light); stroke-width: 2; transform-origin: 0 0; }
.map__sea { fill: rgba(255, 252, 247, .55); font-family: var(--serif); font-style: italic; font-size: 20px; }
.map__ring-label { fill: var(--red-light); font-family: var(--serif); font-style: italic; font-size: 19px; }
.ct-open__key { display: grid; gap: 6px; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255, 252, 247, .18); font-size: .98rem; color: rgba(255, 252, 247, .85); }
.ct-open__key p { margin: 0; }
.ct-open__key b { color: var(--paper); }
@media (max-width: 1100px) { .form__row--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) {
  .ct-open { grid-template-columns: 1fr; min-height: 0; }
  .ct-open__form { padding: 26px var(--gutter) 36px; }
  .form__row, .form__row--3 { grid-template-columns: 1fr; }
  .map { max-height: none; }
}

/* What happens next: a real sequence of three */
.next__wrap { position: relative; }
.next__line { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 40px; overflow: visible; fill: none; stroke: var(--red); stroke-width: 2.5; stroke-linecap: round; z-index: 2; pointer-events: none; }
.next__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); list-style: none; margin: 0; padding: 0; }
.next { padding-block: clamp(64px, 8vh, 100px); }
.next__img { position: relative; height: min(30vh, 270px); overflow: hidden; margin-bottom: 28px; }
.next__img img { position: absolute; inset: -8% 0; height: 116%; width: 100%; object-fit: cover; }
.next__step h3 { margin-bottom: 8px; }
.next__n { position: relative; z-index: 3; display: inline-block; font-family: var(--serif); font-style: italic; color: var(--red); font-size: 2.4rem; line-height: 1; background: var(--paper); padding: 0 12px; margin: 0 0 10px -12px; }
.next__step p { color: var(--ink-soft); margin: 0; }
@media (max-width: 900px) { .next__steps { grid-template-columns: 1fr; gap: 36px; } .next__line { display: none; } .next__img { margin-bottom: 18px; } }

/* Not ready to write yet */
.ways-in__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 90px); align-items: center; }
.ways-in__grid .lede { margin-top: 18px; }
.ways-in__links { display: grid; gap: 14px; }
.way-in { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 22px; align-items: center; padding: 14px; background: var(--paper); text-decoration: none; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.way-in:hover, .way-in:focus-visible { transform: translateX(8px); box-shadow: -8px 0 0 var(--red); }
.way-in img { width: 140px; height: 96px; object-fit: cover; }
.way-in b { display: block; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; margin-bottom: 2px; }
.way-in span { color: var(--ink-soft); line-height: 1.45; }
@media (max-width: 900px) { .ways-in__grid { grid-template-columns: 1fr; } .way-in { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; } .way-in img { width: 96px; height: 80px; } }
html.js:not(.no-motion):not(.reduced) [data-map] .map { visibility: hidden; }

/* ---------- Exam planner page: the tool is the opener ---------- */
.pl-open { padding-block: clamp(36px, 6vh, 72px); min-height: 86vh; display: flex; align-items: center; }
.pl-open__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 4.5vw, 80px); align-items: center; }
.pl-open h1 { font-size: clamp(2.2rem, 3.6vw, 3.8rem); line-height: 1.05; }
.pl-open .lede { margin: 16px 0 24px; }
.pl-open__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pl-open .field > span { color: var(--gold-light); }
.pl-out--full { padding: clamp(24px, 3vw, 44px); }
.pl-track { position: relative; margin-bottom: 44px; }
.pl-out--full .pl-bar { height: 64px; }
.pl-months { position: absolute; left: 0; right: 0; top: calc(100% + 8px); height: 20px; }
.pl-months span { position: absolute; transform: translateX(-50%); font-size: .82rem; color: var(--ink-soft); white-space: nowrap; }
.pl-months span::before { content: ""; position: absolute; left: 50%; top: -8px; width: 1px; height: 6px; background: var(--line); }
.pl-months .pl-months__now { transform: none; font-weight: 600; color: var(--navy); }
.pl-flag { position: absolute; right: -10px; bottom: 100%; width: 30px; height: 42px; overflow: visible; fill: none; stroke: var(--red); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.pl-out--full .pl-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
.pl-out--full .pl-legend p { margin: 0; border-top: 3px solid; padding-top: 10px; }
.pl-out--full .pl-legend p:nth-child(1) { border-color: var(--navy); }
.pl-out--full .pl-legend p:nth-child(2) { border-color: var(--teal); }
.pl-out--full .pl-legend p:nth-child(3) { border-color: var(--gold); }
.pl-out--full .pl-legend p:nth-child(4) { border-color: var(--red); }
.pl-out--full .pl-legend span { display: block; margin-top: 2px; font-size: .92rem; }
.pl-out__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 24px; }
.pl-out__actions .pl-note { margin: 0; flex: 1 1 220px; }
@media (max-width: 1000px) {
  .pl-open { min-height: 0; }
  .pl-open__grid { grid-template-columns: 1fr; }
  .pl-open__fields { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .pl-open__fields, .pl-out--full .pl-legend { grid-template-columns: 1fr; }
  .pl-months span:not(.pl-months__now):nth-child(even) { display: none; }
}

/* What the four phases mean: a real sequence */
.phases__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(36px, 6vw, 110px); align-items: center; }
.phases__media { height: min(70vh, 640px); }
.phases__media .frame__img { position: absolute; inset: 0; }
.phases__media .frame__img img { position: absolute; inset: -8% 0; height: 116%; }
.phases__wrap { position: relative; margin-top: 30px; }
.phases__line { position: absolute; left: 8px; top: 10px; bottom: 10px; width: 4px; height: calc(100% - 20px); fill: none; stroke: var(--red); stroke-width: 3; }
.phases__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.phases__list li { position: relative; padding-left: 44px; }
.phases__dot { position: absolute; left: 0; top: 6px; width: 20px; height: 20px; background: var(--cream); border: 3px solid var(--red); border-radius: 50%; }
.phases__list h3 { margin-bottom: 4px; }
.phases__list p { margin: 0; color: var(--ink-soft); }
@media (max-width: 900px) { .phases__grid { grid-template-columns: 1fr; } .phases__media { height: 40vh; margin-right: 18px; } }

/* Red CTA band with photo */
.pl-cta { overflow: hidden; }
.pl-cta__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 90px); align-items: center; }
.pl-cta h2 { color: var(--paper); }
.pl-cta .lede { margin: 18px 0 28px; }
.pl-cta__media { position: relative; height: min(56vh, 480px); overflow: hidden; }
.pl-cta__media img { position: absolute; inset: -8% 0; height: 116%; width: 100%; object-fit: cover; }
@media (max-width: 900px) { .pl-cta__grid { grid-template-columns: 1fr; } .pl-cta__media { height: 40vh; } }
html.js:not(.no-motion):not(.reduced) .pl-flag { visibility: hidden; }

/* ---------- Holding pages: compact opener (about half a screen) ---------- */
.hold-open { display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); min-height: min(58vh, 560px); background: var(--cream); }
.hold-open__text { display: flex; flex-direction: column; justify-content: center; padding: clamp(32px, 5vh, 60px) clamp(32px, 4vw, 72px) clamp(32px, 5vh, 60px) max(var(--gutter), calc((100vw - 1520px) / 2 + var(--gutter))); }
.hold-open h1 { font-size: clamp(2rem, 3.3vw, 3.4rem); line-height: 1.06; }
.hold-open .lede { margin: 14px 0 24px; }
.hold-open__media { position: relative; min-height: 300px; }
.hold-open__img { position: absolute; inset: 0; overflow: hidden; }
.hold-open__img img { width: 100%; height: 100%; object-fit: cover; }
.hold-open__vocab { position: absolute; left: -24px; bottom: 32px; z-index: 2; }
@media (max-width: 900px) {
  .hold-open { grid-template-columns: 1fr; min-height: 0; }
  .hold-open__media { order: -1; height: 34svh; min-height: 220px; }
  .hold-open__vocab { left: 14px; bottom: 14px; }
  .hold-open__text { padding: 24px var(--gutter) 32px; }
}

.soon__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 90px); align-items: center; }
.soon__grid .lede { margin-top: 18px; }
.soon__media { position: relative; height: min(30vh, 260px); overflow: hidden; margin-top: 26px; }
.soon__media img { position: absolute; inset: -8% 0; height: 116%; width: 100%; object-fit: cover; }
.soon__list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.soon__list li { display: flex; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: clamp(1.1rem, 1.35vw, 1.3rem); }
.soon__list .pen { position: relative; flex: none; width: 28px; height: 22px; }
.soon__list .soon__ask { font-family: var(--sans); font-size: 1rem; color: var(--ink-soft); padding-left: 44px; }
.soon__ask a { color: var(--red); font-weight: 600; }
@media (max-width: 900px) { .soon__grid { grid-template-columns: 1fr; } }
html.js:not(.no-motion):not(.reduced) .hold-open__vocab { opacity: 0; }

/* Exercise-book ruling that drifts slowly behind a block (ambient life) */
[data-drift] { background-image: repeating-linear-gradient(to bottom, transparent 0 39px, rgba(31, 42, 68, .07) 39px 40px); }
.on-dark[data-drift], .on-dark [data-drift] { background-image: repeating-linear-gradient(to bottom, transparent 0 39px, rgba(226, 195, 138, .1) 39px 40px); }
.band-red .btn--line { color: var(--paper); border-color: rgba(255, 252, 247, .8); }
.band-red .btn--line::before { background: var(--paper); }
.band-red .btn--line:hover, .band-red .btn--line:focus-visible { color: var(--red); border-color: var(--paper); }
@media (max-width: 900px) { .ruled::before { left: 8px; } }
