/*
 * Aptia Skills design system. ONE file for the catalogue home, the site-wide pages and (later) every course page.
 * Course pages link it as <link rel="stylesheet" href="/theme.css"> and set data-accent on <body>.
 *
 * RULES
 *  - Every colour is a token. Hex and rgb() values appear ONLY in the token blocks directly below
 *    (:root and [data-accent]); a test fails the build if a component hard-codes one.
 *  - Self-hosted Archivo (fonts/), no other requests. No inline style="" anywhere (the CSP forbids it).
 *  - Motion runs once, uses transform and opacity, and stops under prefers-reduced-motion.
 *
 * MAIN COLOUR: "Lagoon" teal, --brand #0a7c86 (4.95:1 with white text). It sits between blue (trust)
 * and green (growth), and is not the orange of vaultxt.com or the magenta of trek11.com.au.
 * Each subject area has its own accent (food, nursing, french, ...): put data-accent="<area id>" on
 * <body> or on any block and the whole block follows it. No data-accent = Lagoon.
 *
 * COMPONENTS (generic class names, safe for course pages)
 *  Layout       .wrap  .band  .band-wash  .band-night  .sec-head  .grid-bg  .prose  .page-head
 *  Type         .display (h1)  .h2  .h3  .lede  .dot  .small  .fine
 *  Controls     .btn  .btn-accent  .btn-ink  .btn-ghost  .btn-lg  .link-more  .chips > .chip  .tag  .tag-accent
 *  Header       .hdr > .wrap.hdr-in > .wm (inline logo svg) + .nav + .hdr-end (.lang menu + .menu (phones) + .btn)
 *  Home proof   .ticks  .next  .sample  .src-list  .biz  .cert-line
 *  Mockup       .stage > .stage-panel + .sheet + .phone > .screen (.scr-*, .opt, .why, .scr-go) + .note-float
 *  Picker       .picker (sentence with a select; shown only when JavaScript runs: html.js)
 *  Course list  .area-group > .area-head + .course-rows > .course-row (+ .is-planned)
 *  Steps        .steps > .step         Q&A  .qa > details > summary + p
 *  Facts        .fact-box (a calm bordered box for key facts)
 *  Footer       .ftr > .wrap > .ftr-top / .ftr-cols / .ftr-legal
 *  Photos       img.pic (+ .pos-l/.pos-c crop focus)  figure.area-fig / .end-fig  .unmask (clip-path wipe)  .par (scroll parallax)  .reveal / .rv-stagger (enter once)
 *  Stage photo  .stage-photo > img.ph (.is-on = shown; the script cross-fades a new one in)  .row-marker (dot that rides to the course row you point at)
 *  Utility      .sr-only  .skip  [hidden]
 */

@font-face { font-family: "Archivo"; src: url(fonts/archivo-latin.woff2) format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; src: url(fonts/archivo-latin-ext.woff2) format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- tokens ---------- */
:root {
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --page: #ffffff;
  --wash: #f2f6f7;            /* cool tinted surface */
  --wash-2: #e6eef0;
  --ink: #0a1418;             /* 18:1 on white */
  --ink-2: #4b5961;           /* muted text, 7:1 on white */
  --line: #dfe7ea;
  --line-2: #c9d5da;
  --night: #08171b;           /* the one dark band */
  --on-night: #ffffff;
  --on-night-2: #b4c5ca;      /* 10:1 on night */
  --ok: #0b8a5f;

  --brand: #0a7c86;           /* Lagoon: white text 4.95:1 */
  --brand-on-night: #35b9c4;  /* the lighter teal for the logo dot on the night band: 8:1 on night */
  --c-food: #15803d;          /* fresh green, 5.0:1 with white */
  --c-nursing: #2450e8;
  --c-french: #b0127a;
  --c-interpreting: #6d3fd1;
  --c-citizenship: #8a5a00;
  --c-english: #b3261e;

  --shadow-rgb: 8 24 30;
  --sh-1: 0 1px 2px rgb(var(--shadow-rgb) / 0.06), 0 6px 16px -4px rgb(var(--shadow-rgb) / 0.09);
  --sh-2: 0 1px 1px rgb(var(--shadow-rgb) / 0.05), 0 8px 16px -6px rgb(var(--shadow-rgb) / 0.13), 0 28px 56px -18px rgb(var(--shadow-rgb) / 0.26);
  --sh-3: 0 2px 4px rgb(var(--shadow-rgb) / 0.06), 0 18px 32px -10px rgb(var(--shadow-rgb) / 0.2), 0 48px 90px -30px rgb(var(--shadow-rgb) / 0.38);
  --bezel: linear-gradient(140deg, #4c5a60 0%, #172126 24%, #080e11 56%, #2c383e 100%);
  --island: #04090b;
  --panel-line: rgb(255 255 255 / 0.1);
  --panel-shine: rgb(255 255 255 / 0.28);
  --bezel-edge: rgb(255 255 255 / 0.2);
  --mask: #000000;       /* only the shape of a mask matters, never its colour */
  --glass: rgb(255 255 255 / 0.94);
  --hdr-bg: #ffffff;
  --grid-line: rgb(var(--shadow-rgb) / 0.07);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  color-scheme: light;
}
:root, [data-accent] {
  --accent: var(--brand);
  --accent-ink: #ffffff;
}
[data-accent="food"] { --accent: var(--c-food); }
[data-accent="nursing"] { --accent: var(--c-nursing); }
[data-accent="french"] { --accent: var(--c-french); }
[data-accent="interpreting"] { --accent: var(--c-interpreting); }
[data-accent="citizenship"] { --accent: var(--c-citizenship); }
[data-accent="english"] { --accent: var(--c-english); }
/* Everything below is derived from --accent, on the same element, so a block with its own data-accent re-colours itself. */
:root, [data-accent] {
  --accent-deep: color-mix(in srgb, var(--accent) 78%, black);
  --accent-soft: color-mix(in srgb, var(--accent) 9%, white);
  --accent-mid: color-mix(in srgb, var(--accent) 22%, white);
  --accent-glow: color-mix(in srgb, var(--accent) 34%, transparent);
  --panel-1: color-mix(in srgb, var(--accent) 72%, white);
  --panel-2: var(--accent);
  --panel-3: color-mix(in srgb, var(--accent) 52%, black);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; scroll-behavior: smooth; background: var(--page); }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
[hidden] { display: none !important; }
img, svg { max-width: 100%; }
p, ul, ol, dl, figure { margin: 0; }
h1, h2, h3, h4 { margin: 0; overflow-wrap: break-word; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: var(--line-2); }
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: max(16px, env(safe-area-inset-left, 0px)); }
@media (min-width: 720px) { .wrap { padding-inline: 32px; } }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--ink); color: var(--page); padding: 12px 16px; border-radius: 999px; font-weight: 600; }
.skip:focus { top: 8px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@view-transition { navigation: auto; }

/* ---------- type ---------- */
.display { font-weight: 800; letter-spacing: -0.035em; line-height: 1; text-wrap: balance; font-size: clamp(34px, 10.2vw, 56px); }
@media (min-width: 640px) { .display { font-size: clamp(48px, 8vw, 76px); } }
@media (min-width: 1000px) { .display { font-size: clamp(52px, 5vw, 76px); } }
.h2 { font-weight: 800; letter-spacing: -0.032em; line-height: 1.04; text-wrap: balance; font-size: clamp(30px, 4.6vw, 56px); }
.h3 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; font-size: clamp(20px, 2.2vw, 26px); }
.lede { font-size: clamp(18px, 2vw, 21px); line-height: 1.5; color: var(--ink-2); max-width: 32em; margin-top: 20px; text-wrap: pretty; }
.dot { color: var(--accent); transition: color 400ms var(--ease); }
.small { font-size: 15.5px; color: var(--ink-2); }
.fine { font-size: 14px; color: var(--ink-2); }
.sec-head { margin-bottom: clamp(32px, 5vw, 60px); max-width: 44rem; }

/* ---------- bands ---------- */
.band { padding-block: clamp(64px, 9vw, 128px); position: relative; }
.band-wash { background: var(--wash); }
.band-night { background: var(--night); color: var(--on-night); overflow: clip; isolation: isolate; }
.band-night .lede { color: var(--on-night-2); }
/* a faint engineering-paper grid, fading out from one corner */
.grid-bg::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 0% 0%, var(--mask) 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 70% at 0% 0%, var(--mask) 0%, transparent 75%); }
.band-night.grid-bg::before { background-image: linear-gradient(var(--accent-glow) 1px, transparent 1px), linear-gradient(90deg, var(--accent-glow) 1px, transparent 1px);
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 100% 100%, var(--mask) 0%, transparent 72%); mask-image: radial-gradient(ellipse 70% 90% at 100% 100%, var(--mask) 0%, transparent 72%); }

/* ---------- buttons, tags, chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px; font-weight: 700; font-size: 16px; line-height: 1.2; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 150ms var(--ease), background-color 250ms var(--ease), box-shadow 250ms var(--ease); }
.btn:active { transform: scale(0.97); }
.btn-accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 1px 2px var(--accent-glow), 0 10px 20px -8px var(--accent-glow); }
.btn-accent:hover { background: var(--accent-deep); }
.btn-ink { background: var(--ink); color: var(--page); min-height: 44px; padding: 0 20px; font-size: 15.5px; }
.btn-ink:hover { background: var(--accent-deep); }
.btn-ghost { background: var(--page); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent-deep); }
.band-night .btn-ghost { background: transparent; color: var(--on-night); box-shadow: inset 0 0 0 1.5px var(--on-night-2); }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 18px; }
.link-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); text-decoration: none; }
.link-more svg { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 250ms var(--ease); }
.link-more:hover svg { transform: translateX(4px); }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; line-height: 1.3; padding: 5px 12px; border-radius: 999px; background: var(--wash-2); color: var(--ink); }
.tag-accent { background: var(--accent-soft); color: var(--accent-deep); }
.chips { list-style: none; padding: 0; margin: 0 0 clamp(28px, 4vw, 44px); display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--page); color: var(--ink); font-weight: 600; font-size: 15px; box-shadow: inset 0 0 0 1.5px var(--line-2); transition: background-color 150ms var(--ease), color 150ms var(--ease), box-shadow 150ms var(--ease); }
.chip:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--page); box-shadow: none; }
html:not(.js) .chips { display: none; }

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 60; background: var(--hdr-bg); border-bottom: 1px solid transparent; transition: border-color 250ms, box-shadow 250ms; }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) { .hdr { -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px); } }
.hdr.is-stuck { border-bottom-color: var(--line); box-shadow: 0 10px 24px -20px rgb(var(--shadow-rgb) / 0.4); }
.hdr-in { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.wm { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; flex: none; line-height: 0; }
.logo { display: block; height: 36px; width: auto; overflow: visible; }
.logo-dot { fill: var(--brand); }
.wm.is-light .logo { height: 40px; }
.wm.is-light .logo-dot { fill: var(--brand-on-night); }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { font-size: 15.5px; font-weight: 500; color: var(--ink); text-decoration: none; padding: 10px 14px; border-radius: 999px; white-space: nowrap; transition: background-color 200ms; }
.nav a:hover { background: var(--wash); }
.nav a[aria-current="page"] { font-weight: 700; }
.hdr-end { display: flex; align-items: center; gap: 8px; margin-left: 8px; }
.hdr-end .btn { margin: 0; }
.lbl-short { display: none; }
/* phone menu: below 900px the nav hides and this details menu carries the same links (Help included); below 480px it also stands in for the Courses button */
.menu { position: relative; display: none; }
.menu summary { list-style: none; -webkit-tap-highlight-color: transparent; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; flex: none; }
.menu[open] summary { background: var(--accent-deep); }
@media (max-width: 899px) { .nav { display: none; } .hdr-end { margin-left: auto; } .menu { display: block; } .hdr-end > .btn { background: var(--page); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); } }
@media (max-width: 479px) { .lbl-long { display: none; } .lbl-short { display: inline; } .hdr-end > .btn { display: none; } }

/* language switch: a details menu, so it works without JavaScript */
.lang { position: relative; }
.lang summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 999px; cursor: pointer; font-weight: 700; font-size: 15px; box-shadow: inset 0 0 0 1.5px var(--line-2); transition: box-shadow 150ms var(--ease), background-color 150ms var(--ease); -webkit-tap-highlight-color: transparent; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.lang[open] summary { background: var(--wash); box-shadow: inset 0 0 0 1.5px var(--ink); }
.lang summary svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.lang summary svg:last-child { width: 16px; height: 16px; stroke-width: 2.2; transition: transform 200ms var(--ease); }
.lang[open] summary svg:last-child { transform: rotate(180deg); }
.lang-list, .menu-list { list-style: none; margin: 8px 0 0; padding: 6px; position: absolute; right: 0; top: 100%; min-width: 176px; border-radius: 18px; background: var(--page); box-shadow: var(--sh-2), inset 0 0 0 1px var(--line); z-index: 70; animation: lang-in 200ms var(--ease) both; }
@keyframes lang-in { from { opacity: 0; transform: translateY(-6px); } }
.lang-list a, .menu-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 0 14px; border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 16px; }
.lang-list a:hover, .menu-list a:hover { background: var(--wash); }
.lang-note { padding: 8px 14px 6px; font-size: 13px; line-height: 1.35; color: var(--muted); max-width: 220px; }
.lang-two { display: flex; flex-direction: column; line-height: 1.2; padding: 6px 0; }
.lang-home { font-weight: 400; color: var(--muted); font-size: 13px; }
.lang-list:has(.lang-note) { min-width: 220px; }
.menu-list { min-width: 208px; }
.menu-list a[aria-current="page"] { font-weight: 800; background: var(--accent-soft); }
.lang-list a[aria-current="true"] { font-weight: 800; background: var(--accent-soft); }
.lang-list a[aria-current="true"]::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.wm.is-light { color: var(--on-night); }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; overflow: clip; padding-block: clamp(28px, 4vw, 56px) clamp(64px, 8vw, 112px); }
.hero-grid { display: grid; gap: clamp(28px, 5vw, 56px); grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); } }
@media (max-width: 999px) {
  /* phones and tablets: headline, a real picture of the product, then the picker and the button (the picture shows on the first screen) */
  .hero-grid { gap: 0; }
  .hero-copy { display: contents; }
  .hero-copy > .display { order: 1; }
  .hero-copy > .lede { order: 2; }
  .hero-vis { order: 3; margin-top: 22px; }
  .hero-copy > .picker { order: 4; }
  .hero-copy > .hero-cta { order: 5; }
  .hero-copy > .hero-note { order: 6; }
  .stage-cap { display: none; }
}
.hero-copy > * { animation: rise 900ms var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: 70ms; }
.hero-copy > :nth-child(3) { animation-delay: 140ms; }
.hero-copy > :nth-child(4) { animation-delay: 210ms; }
.hero-copy > :nth-child(5) { animation-delay: 280ms; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 26px; }
.hero-note { display: flex; align-items: flex-start; gap: 10px; margin-top: 24px; font-size: 15.5px; color: var(--ink-2); max-width: 30em; }
.okdot { width: 9px; height: 9px; margin-top: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 16%, transparent); flex: none; }

/* the one signature moment: a sentence you finish */
.picker { margin-top: 26px; font-size: clamp(20px, 3.4vw, 26px); font-weight: 600; line-height: 1.35; color: var(--ink-2); }
.picker strong { color: var(--ink); font-weight: 800; border-bottom: 4px solid var(--accent); transition: border-color 400ms var(--ease); }
.picker-js { display: none; }
html.js .picker-js { display: block; }
html.js .picker-static { display: none; }
.picker label { display: block; }
.picker-select { position: relative; display: block; margin-top: 8px; max-width: 100%; }
.picker select { appearance: none; -webkit-appearance: none; width: 100%; min-height: 56px; padding: 10px 52px 10px 20px; border: 0; border-radius: 18px; background: var(--page); color: var(--ink); font-weight: 800; font-size: clamp(18px, 3vw, 22px); letter-spacing: -0.015em; box-shadow: var(--sh-1), inset 0 0 0 2px var(--accent); transition: box-shadow 400ms var(--ease); cursor: pointer; }
.picker select:hover { box-shadow: var(--sh-2), inset 0 0 0 2px var(--accent); }
.picker-select::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -8px; border-right: 3px solid var(--accent); border-bottom: 3px solid var(--accent); transform: rotate(45deg); pointer-events: none; transition: border-color 400ms var(--ease); }
@media (min-width: 640px) { .picker-select { display: inline-block; margin-top: 0; margin-left: 6px; vertical-align: middle; min-width: min(22em, 100%); max-width: 100%; } .picker label { display: inline; } }

/* ---------- the mockup: panel + phone + floating notes ---------- */
.hero-vis { container-type: inline-size; min-width: 0; }
.stage { position: relative; font-size: clamp(11px, calc(100cqw / 26), 17px); height: 37em; margin-inline: auto; max-width: 600px; perspective: 1600px; }
.stage-panel { position: absolute; inset: 0 3.4em; border-radius: 3em; overflow: hidden; background: linear-gradient(160deg, var(--panel-1) 0%, var(--panel-2) 52%, var(--panel-3) 100%); box-shadow: var(--sh-3); transition: background 500ms var(--ease); animation: panelin 1100ms var(--ease) both; }
.stage-panel::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--panel-line) 1px, transparent 1px), linear-gradient(90deg, var(--panel-line) 1px, transparent 1px); background-size: 3.2em 3.2em; -webkit-mask-image: radial-gradient(ellipse 80% 70% at 85% 10%, var(--mask), transparent 80%); mask-image: radial-gradient(ellipse 80% 70% at 85% 10%, var(--mask), transparent 80%); }
.stage-panel::after { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 60% at 15% 0%, var(--panel-shine), transparent 62%); }
@keyframes panelin { from { opacity: 0; transform: scale(0.96) translateY(1em); } }
/* two tilted lesson sheets behind the phone */
.sheet { position: absolute; width: 11em; padding: 1.1em 1.1em 1.3em; border-radius: 1em; background: var(--glass); box-shadow: var(--sh-2); display: grid; gap: 0.55em; opacity: 0.94; }
.sheet i { display: block; height: 0.5em; border-radius: 0.3em; background: var(--wash-2); }
.sheet i:first-child { width: 55%; height: 0.7em; background: var(--accent-mid); }
.sheet i:nth-child(3) { width: 85%; } .sheet i:nth-child(4) { width: 70%; } .sheet i:nth-child(5) { width: 40%; }
.sheet-1 { left: 4.6em; top: 4.5em; transform: rotate(-9deg); }
.sheet-2 { right: 4.6em; top: 15em; transform: rotate(8deg); }
.phone { position: absolute; right: 1.2em; top: 2.2em; width: 15.4em; height: 32em; padding: 0.5em; border-radius: 3em; background: var(--bezel); box-shadow: inset 0 0 0 0.07em var(--bezel-edge), inset 0 0 0 0.2em var(--island), 0 2.6em 3.4em -1.4em rgb(var(--shadow-rgb) / 0.45), 0 6em 8em -2.6em rgb(var(--shadow-rgb) / 0.35); transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 600ms var(--ease); animation: phonein 1100ms 150ms var(--ease) both; }
.stage.is-tilting .phone { transition-duration: 140ms; }
@keyframes phonein { from { opacity: 0; transform: translateY(3em) scale(0.97); } }
.screen { position: relative; height: 100%; border-radius: 2.55em; overflow: hidden; background: var(--page); color: var(--ink); display: flex; flex-direction: column; padding: 0 1.05em 1.05em; }
.scr-island { position: absolute; z-index: 5; top: 0.7em; left: 50%; width: 4.6em; height: 1.3em; margin-left: -2.3em; border-radius: 1em; background: var(--island); }
.scr-top { display: flex; justify-content: space-between; align-items: center; gap: 0.6em; padding-top: 2.7em; font-size: 0.72em; font-weight: 700; color: var(--ink-2); }
.scr-top b { color: var(--accent-deep); }
.scr-bar { display: flex; gap: 0.3em; margin: 0.9em 0 1.1em; }
.scr-bar i { flex: 1; height: 0.38em; border-radius: 1em; background: var(--line); transition: background-color 500ms var(--ease); }
.scr-bar i.on { background: var(--accent); }
.scr-q { font-weight: 800; font-size: 1.04em; line-height: 1.25; letter-spacing: -0.015em; text-wrap: balance; }
.scr-opts { display: grid; gap: 0.5em; margin-top: 0.95em; }
.opt { position: relative; display: flex; align-items: center; gap: 0.6em; padding: 0.62em 0.7em; border-radius: 0.85em; font-size: 0.76em; line-height: 1.25; box-shadow: inset 0 0 0 0.13em var(--line); isolation: isolate; }
.opt b { flex: none; display: grid; place-items: center; width: 1.7em; height: 1.7em; border-radius: 50%; background: var(--wash-2); font-size: 0.9em; }
.opt.ok { font-weight: 700; box-shadow: inset 0 0 0 0.15em var(--accent); }
.opt.ok b { background: var(--accent); color: var(--accent-ink); }
.opt.ok::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 0.85em; background: var(--accent-soft); transform-origin: left; animation: sweep 700ms 1100ms var(--ease) both; }
@keyframes sweep { from { transform: scaleX(0); } }
.why { margin-top: 0.8em; padding: 0.7em 0.8em; border-radius: 0.9em; background: var(--wash); font-size: 0.7em; line-height: 1.35; color: var(--ink-2); animation: rise 600ms 1600ms var(--ease) both; }
.why strong { color: var(--ink); }
.scr-go { margin-top: auto; display: flex; justify-content: center; padding: 0.8em; border-radius: 999px; background: var(--ink); color: var(--page); font-weight: 700; font-size: 0.78em; }
.screen .swap { transition: opacity 180ms var(--ease), transform 280ms var(--ease); }
.screen.is-changing .swap { opacity: 0; transform: translateY(0.5em); }
.note-float { position: absolute; z-index: 3; display: flex; align-items: center; gap: 0.7em; padding: 0.65em 1em 0.65em 0.65em; border-radius: 1.3em; background: var(--glass); box-shadow: var(--sh-2); font-size: max(11.5px, 0.9em); line-height: 1.25; white-space: nowrap; animation: noteIn 600ms var(--spring) both; }
.note-float b { display: block; font-weight: 700; }
.note-float small { display: block; color: var(--ink-2); font-size: 0.86em; }
.note-float .ic { flex: none; width: 2.3em; height: 2.3em; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 0.85em; transition: background-color 500ms var(--ease); }
.note-float svg { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.note-float.n1 { left: 0; top: 1.4em; animation-delay: 1200ms; }
.note-float.n2 { left: 4.4em; top: 27.4em; animation-delay: 1450ms; }
.note-float.n3 { left: 0.6em; top: 38.2em; animation-delay: 1700ms; }
@keyframes noteIn { from { opacity: 0; transform: scale(0.8) translateY(0.6em); } }
.stage-cap { text-align: center; margin-top: 12px; }
@media (max-width: 420px) { .note-float small, .note-float.n3 { display: none; } .note-float.n1 { top: 1.4em; } .note-float.n2 { top: 27.4em; } }

/* ---------- course list: grouped by area, not a card grid ---------- */
.area-group { display: grid; gap: 12px 40px; padding-block: 28px; border-top: 1.5px solid var(--ink); }
.area-group + .area-group { margin-top: 12px; }
@media (min-width: 900px) { .area-group { grid-template-columns: 0.34fr 1fr; } }
.area-head { font-size: clamp(22px, 2.6vw, 30px); display: flex; align-items: baseline; gap: 12px; align-self: start; }
.area-head::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); flex: none; transform: translateY(1px); }
.course-rows { list-style: none; margin: 0; padding: 0; }
.course-row { display: grid; gap: 14px 28px; padding: 22px 18px; margin-inline: -18px; border-radius: 22px; align-items: center; position: relative; transition: background-color 250ms var(--ease), box-shadow 250ms var(--ease), transform 250ms var(--ease); }
.course-row + .course-row::before { content: ""; position: absolute; left: 18px; right: 18px; top: 0; height: 1px; background: var(--line); }
@media (min-width: 720px) { .course-row { grid-template-columns: minmax(0, 1fr) auto; } }
.course-row:not(.is-planned):hover { background: var(--page); box-shadow: var(--sh-2); transform: translateY(-2px); }
.course-row:not(.is-planned):hover::before, .course-row:not(.is-planned):hover + .course-row::before { opacity: 0; }
.course-row h3 { font-size: clamp(20px, 2.4vw, 26px); }
.course-row p { margin-top: 6px; color: var(--ink-2); max-width: 36em; }
.course-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.course-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.course-row.is-planned h3 { color: var(--ink-2); }
.course-row.is-planned .soon { font-weight: 600; color: var(--ink-2); }
.course-row[hidden], .area-group[hidden] { display: none !important; }
.empty { color: var(--ink-2); padding: 24px 0; }

/* ---------- how it works: three steps joined by a line that draws once ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; counter-reset: s; position: relative; }
.step { counter-increment: s; position: relative; padding: 26px 24px 28px; border-radius: 26px; background: var(--page); box-shadow: var(--sh-1); }
.step::before { content: counter(s); display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; margin-bottom: 18px; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 20px; box-shadow: 0 0 0 6px var(--accent-soft); }
.step h3 { font-size: clamp(21px, 2.2vw, 26px); margin-bottom: 8px; }
.step p { color: var(--ink-2); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .steps::before { content: ""; position: absolute; left: 24px; right: 24px; top: 49px; height: 2px; background: var(--accent-mid); transform-origin: left; }
  html.js .steps.is-drawn::before { animation: draw 1200ms var(--ease) both; }
}

/* ---------- Q&A ---------- */
.qa-wrap { display: grid; gap: 28px 64px; }
@media (min-width: 900px) { .qa-wrap { grid-template-columns: 0.8fr 1.2fr; } }
.qa details { border-bottom: 1px solid var(--line); }
.qa details:first-child { border-top: 1px solid var(--line); }
.qa summary { cursor: pointer; list-style: none; position: relative; padding: 22px 52px 22px 0; font-weight: 700; font-size: clamp(18px, 2vw, 21px); letter-spacing: -0.015em; line-height: 1.3; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 2px; top: 50%; width: 34px; height: 34px; margin-top: -17px; border-radius: 50%; display: grid; place-items: center; background: var(--wash); font-weight: 500; font-size: 22px; line-height: 1; transition: transform 250ms var(--ease), background-color 250ms var(--ease); }
.qa details[open] summary::after { transform: rotate(45deg); background: var(--accent-mid); }
.qa details p { padding: 0 0 22px; color: var(--ink-2); max-width: 36em; }
.qa details p strong { display: block; color: var(--ink); font-size: 1.04em; margin-bottom: 4px; }

/* ---------- closing band ---------- */
.end { text-align: center; }
.end .h2 { max-width: 14em; margin-inline: auto; }
.end .lede { margin-inline: auto; }
.end .btn { margin-top: 32px; }

/* ---------- plain pages: about, privacy, terms, aviso legal, 404 ---------- */
.page-head { padding-block: clamp(48px, 7vw, 96px) clamp(24px, 3vw, 40px); position: relative; isolation: isolate; overflow: clip; }
.page-head .display { font-size: clamp(34px, 7.4vw, 64px); }
.prose { padding-bottom: clamp(56px, 8vw, 112px); }
.prose > * { max-width: 42em; }
.prose h2 { font-weight: 800; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.15; letter-spacing: -0.02em; margin: 44px 0 12px; }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 14px; }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 8px; }
.prose a { text-decoration-color: var(--accent); }
.fact-box { margin: 26px 0 0; padding: 20px 22px; border-radius: 22px; background: var(--wash); box-shadow: inset 0 0 0 1px var(--line); }
.fact-box p { color: var(--ink); }
.fact-box strong { font-weight: 800; }

/* ---------- footer ---------- */
.ftr { background: var(--night); color: var(--on-night-2); padding-block: clamp(48px, 6vw, 80px) 40px; font-size: 15.5px; position: relative; isolation: isolate; overflow: clip; }
.ftr a { color: var(--on-night); text-decoration-color: var(--on-night-2); }
.ftr a:hover { text-decoration-color: var(--on-night); }
.ftr-top { display: grid; gap: 36px 56px; padding-bottom: 36px; border-bottom: 1px solid color-mix(in srgb, var(--on-night) 14%, transparent); }
@media (min-width: 800px) { .ftr-top { grid-template-columns: 1.2fr 2fr; } }
.ftr-top p { max-width: 24em; margin-top: 16px; }
.ftr-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
@media (min-width: 560px) { .ftr-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .ftr-cols:has(> div:nth-child(4)) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ftr-cols h2 { font-size: 14px; font-weight: 700; color: var(--on-night); margin-bottom: 14px; letter-spacing: 0; }
.ftr-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ftr-cols a { text-decoration: none; }
.ftr-cols a:hover { text-decoration: underline; }
.ftr-legal { display: grid; gap: 10px; padding-top: 28px; max-width: 52em; font-size: 14.5px; }
.ftr-legal strong { color: var(--on-night); font-weight: 600; }


/* ---------- photos ---------- */
.pic { display: block; width: 100%; height: 100%; object-fit: cover; }
.pos-l { object-position: 28% 50%; }
.pos-c { object-position: 50% 50%; }
.stage-photo { position: absolute; inset: 0; overflow: hidden; background: var(--panel-3); }
.stage-photo .ph { position: absolute; inset: 0; opacity: 0; transition: opacity 600ms var(--ease); will-change: opacity; }
.stage-photo .ph.is-on { opacity: 1; }
/* the accent tint keeps the picked course colour on the page whatever the photo */
.stage-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(165deg, color-mix(in srgb, var(--panel-1) 4%, transparent) 0%, color-mix(in srgb, var(--panel-2) 14%, transparent) 55%, color-mix(in srgb, var(--panel-3) 62%, transparent) 100%); transition: background 500ms var(--ease); }
.stage-panel::before { z-index: 1; }
.stage-panel::after { z-index: 1; }
.area-side { align-self: start; display: grid; gap: 16px; }
@media (min-width: 900px) { .area-side { position: sticky; top: 96px; } }
.area-fig, .end-fig { margin: 0; overflow: hidden; border-radius: 22px; background: var(--wash-2); aspect-ratio: 16 / 9; box-shadow: var(--sh-1); }
@media (min-width: 900px) { .area-fig { aspect-ratio: 4 / 3; } }
.area-fig img, .end-fig img { transform-origin: 50% 50%; }
.row-marker { position: absolute; left: -14px; top: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); opacity: 0; pointer-events: none; transition: transform 380ms var(--ease), opacity 200ms; }
.row-marker.on { opacity: 1; }
.row-marker.snap { transition: none; }
.course-rows { position: relative; }
.course-row.is-active:not(.is-planned) { background: var(--page); box-shadow: var(--sh-2); }

/* ---------- closing band with a photo ---------- */
.end-photo { text-align: left; }
.end-grid { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (min-width: 900px) { .end-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); } }
.end-photo .h2, .end-photo .lede { margin-inline: 0; }
.end-photo .end-fig { aspect-ratio: 16 / 10; box-shadow: none; }
@media (min-width: 900px) { .end-photo .end-fig { aspect-ratio: 4 / 3; } }

/* ---------- motion: enter once, wipe photos open, slow parallax ---------- */
/* Content is visible by default. Browsers with scroll timelines animate it with CSS alone; others get the same
   from the script (html.no-st + .is-in), which adds a class once as each block comes into view. */
@keyframes rv { from { opacity: 0; transform: translateY(26px); } }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes zoom-out { from { transform: scale(1.22); } to { transform: scale(1.04); } }
@keyframes par { from { transform: translateY(-5%) scale(1.14); } to { transform: translateY(5%) scale(1.14); } }
@keyframes hero-drift { to { transform: scale(1.14) translateY(-2.5%); } }
@supports (animation-timeline: view()) {
  .reveal { animation: rv linear both; animation-timeline: view(); animation-range: entry 4% entry 38%; }
  .rv-stagger > :nth-child(2) { animation-range: entry 10% entry 44%; }
  .rv-stagger > :nth-child(3) { animation-range: entry 16% entry 50%; }
  .unmask { animation: wipe linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
  .unmask .par { animation: par linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
  .stage-photo .ph { animation: hero-drift linear both; animation-timeline: scroll(root); animation-range: 0 80vh; }
}
html.no-st .reveal:not(.is-in) { opacity: 0; transform: translateY(26px); }
html.no-st .reveal { transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
html.no-st .rv-stagger > :nth-child(2) { transition-delay: 90ms; }
html.no-st .rv-stagger > :nth-child(3) { transition-delay: 180ms; }
html.no-st .unmask { transition: clip-path 800ms var(--ease); }
html.no-st .unmask:not(.is-in) { clip-path: inset(0 100% 0 0); }
html.no-st .unmask.is-in { clip-path: inset(0 0 0 0); }
html.no-st .unmask img { transition: transform 1100ms var(--ease); transform: scale(1.14); }
html.no-st .unmask:not(.is-in) img { transform: scale(1.22); }
html.no-st .unmask.is-in img { transform: scale(1.04); }
@media (prefers-reduced-motion: no-preference) {
  /* page to page: the header and wordmark stay put while the content crossfades */
  .hdr { view-transition-name: site-header; }
  .hdr .wm { view-transition-name: site-wordmark; }
  ::view-transition-group(*) { animation-duration: 380ms; animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
  ::view-transition-old(root) { animation: vt-out 160ms ease-in both; }
  ::view-transition-new(root) { animation: vt-in 340ms cubic-bezier(0.16, 1, 0.3, 1) both; }
}
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  /* nothing moves, but every block and photo still shows */
  html.no-st .reveal:not(.is-in), html.no-st .unmask:not(.is-in) { opacity: 1; transform: none; clip-path: none; }
  html.no-st .unmask img, html.no-st .unmask:not(.is-in) img { transform: none; }
  .phone { transform: none !important; }
  @view-transition { navigation: none; }
}

/* ---------- small screens ---------- */
@media (max-width: 719px) { .course-row { margin-inline: -12px; padding: 20px 12px; } .course-row + .course-row::before { left: 12px; right: 12px; } }
@media (max-width: 400px) {
  .hdr-in { gap: 10px; }
  .logo { height: 30px; }
  .lang summary { min-height: 40px; padding: 0 10px; }
  .hdr .btn { min-height: 40px; padding: 0 14px; font-size: 14px; }
}
/* the narrowest phones: the menu becomes a round icon button; its word stays for screen readers */
@media (max-width: 359px) {
  .hdr .menu summary { width: 40px; padding: 0; }
  .menu summary span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
.page-date { margin-top: 16px; }

/* ---------- footer languages ---------- */
.ftr-langs { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.ftr-langs a { text-decoration: none; font-weight: 600; }
.ftr-langs a:hover { text-decoration: underline; }

/* ---------- what you get: ticked lines ---------- */
.ticks { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.ticks li { display: flex; align-items: flex-start; gap: 10px; color: var(--ink); line-height: 1.4; }
.ticks svg { flex: none; width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--accent-soft); fill: none; stroke: var(--accent-deep); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.course-row .ticks { max-width: 38em; }

/* ---------- coming next: one calm line, no empty rows ---------- */
.next { margin-top: clamp(32px, 4vw, 52px); padding-top: 24px; border-top: 1.5px solid var(--ink); display: grid; gap: 12px 40px; }
@media (min-width: 900px) { .next { grid-template-columns: 0.34fr 1fr; } }
.next .h3 { font-size: clamp(20px, 2.2vw, 24px); }
.next-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.next-list li { padding: 7px 14px; border-radius: 999px; background: var(--page); box-shadow: inset 0 0 0 1.5px var(--line-2); font-weight: 600; font-size: 15px; }
.next .small { grid-column: 1 / -1; margin-top: 4px; }
@media (min-width: 900px) { .next .small { grid-column: 2; } }
.next-ask { margin: clamp(28px, 3.5vw, 44px) 0 0; padding-top: 20px; border-top: 1.5px solid var(--line-2); color: var(--ink-2); font-weight: 600; }

/* ---------- sample question ---------- */
.sample-grid { display: grid; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (min-width: 900px) { .sample-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } }
.sample-inside { margin-top: 28px; }
.sample-inside .h3 { font-size: 20px; }
.sample { margin: 0; padding: clamp(20px, 3vw, 32px); border-radius: 28px; background: var(--page); box-shadow: var(--sh-2), inset 0 0 0 1px var(--line); }
.sample-label { font-size: 14px; font-weight: 700; color: var(--accent-deep); }
.sample-q { margin-top: 6px; font-weight: 800; font-size: clamp(19px, 2.3vw, 24px); line-height: 1.25; letter-spacing: -0.015em; text-wrap: balance; }
.sample-opts { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.sample-opts li { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; box-shadow: inset 0 0 0 1.5px var(--line); }
.sample-opts li b { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--wash-2); font-size: 14px; }
.sample-opts li span { flex: 1; }
.sample-opts li.ok { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); font-weight: 700; }
.sample-opts li.ok b { background: var(--accent); color: var(--accent-ink); }
.sample-opts li svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--accent-deep); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.sample-why { margin-top: 14px; padding: 14px 16px; border-radius: 16px; background: var(--wash); color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.sample-why strong { color: var(--ink); }
.sample-tr { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line-2); color: var(--ink-2); font-size: 15.5px; }
.sample-tr p + p { margin-top: 8px; }
.sample-tr strong { color: var(--ink); }

/* ---------- sources ---------- */
.src-list { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.src-row { display: grid; gap: 4px 28px; padding: 18px 0; border-bottom: 1px solid var(--line-2); align-items: baseline; }
@media (min-width: 800px) { .src-row { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 0.9fr); } }
.src-name b { display: block; font-weight: 700; font-size: 17px; }
.src-name span, .src-course, .src-date { color: var(--ink-2); font-size: 15.5px; }
.src-date time { color: var(--ink); font-weight: 600; }
.src-note { margin-top: 18px; max-width: 44em; }

/* ---------- business details, certificate line ---------- */
.biz { margin-top: 32px; }
.biz .h3 { font-size: 20px; }
.biz dl { margin: 14px 0 0; display: grid; gap: 0; }
.biz dl > div { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.biz dt { color: var(--ink-2); font-size: 15.5px; }
.biz dd { margin: 0; font-weight: 600; }
.cert-line { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 36px; }
.cert-line .small { max-width: 30em; }
