/* TRESiUpskill landing page (index.php).
   Type: Roboto (Poppins only inside the logo). Components follow Aceternity UI:
   wobble cards (hero choices, closing call), focus cards (Take a Minute), bento grid
   (how learning works), card hover effect (work, business, life), placeholders and
   vanish input (Ask TRESi), 3D card (organisations) and expandable cards (courses). */

:root {
    --font: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    --gutter: clamp(1rem, 3vw, 2.5rem);
    --wrap: 96rem;
    --nav-h: 4.25rem;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --icon-ease: cubic-bezier(0.65, 0, 0.35, 1);
    --soft: cubic-bezier(0.22, 1, 0.36, 1);
    --fill: rgba(222, 232, 244, 0.05);
    --fill-2: rgba(222, 232, 244, 0.09);
    --card-shadow: 0 10px 32px rgba(0, 0, 0, 0.28), 0 1px 1px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.06), 0 4px 6px rgba(0, 0, 0, 0.12), 0 24px 80px rgba(0, 0, 0, 0.22);
    --hl-a: #2f78a6;
    --hl-b: #23897f;
    --hl-text: #ffffff;
    /* path colours: deep, saturated, readable with white text in both themes */
    --c-career: #1d5079;
    --c-business: #135f57;
    --c-money: #8c4a1c;
    --c-rights: #2b3d6b;
    --c-team: #7a3b2e;
    --c-life: #3f5f2a;
    --c-unsure: #1c232d;
    --paper: #f5f0e6;
    --paper-ink: #1d2430;
    --paper-line: rgba(29, 36, 48, 0.18);
    --noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
:root[data-theme="light"] {
    --fill: rgba(10, 26, 63, 0.035);
    --fill-2: rgba(10, 26, 63, 0.07);
    --card-shadow: 0 10px 32px rgba(34, 42, 53, 0.12), 0 1px 1px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(34, 42, 53, 0.05), 0 4px 6px rgba(34, 42, 53, 0.08), 0 24px 80px rgba(47, 48, 55, 0.1);
    --hl-a: #bfe0f2;
    --hl-b: #bfeae2;
    --hl-text: #0b1626;
    --c-unsure: #26303d;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 1rem); accent-color: var(--accent); }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
::selection { background: var(--accent); color: #fff; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 0.5rem; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    min-height: 3rem; padding: 0 1.5rem; border: 0; border-radius: 999px;
    font-family: var(--font); font-weight: 500; font-size: 0.98rem;
    text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: transform 0.25s var(--ease), background-color 0.2s, box-shadow 0.2s;
}
.btn-sm { min-height: 2.5rem; padding: 0 1.15rem; font-size: 0.92rem; }
.btn-solid { background: var(--btn-bg); color: var(--btn-text); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.18); }
.btn-solid:hover { transform: translateY(-2px); }
.btn-ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { background: var(--fill); }
.btn-white { background: #fff; color: #0b1626; }
.btn-white:hover { transform: translateY(-2px); }
.btn-clear { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4); }
.btn-clear:hover { background: rgba(255, 255, 255, 0.1); }
.btn:disabled { opacity: 0.55; cursor: progress; transform: none; }
/* ================= icons: every one is drawn, and every one moves when used ================= */
/* arrow: on hover the arrow leaves to the right and a fresh one slides in from the left */
.arr { width: 1.1em; height: 1.1em; flex: none; overflow: hidden; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.arr g { transition: transform 1.2s var(--icon-ease); }
.arr-b { transition-delay: 0.14s; }
:is(a, button):not(:hover):not(:focus-visible) .arr-a { transition-delay: 0.14s; }
:is(a, button):not(:hover):not(:focus-visible) .arr-b { transition-delay: 0s; }
.arr-b { transform: translateX(-24px); }
:is(a, button):is(:hover, :focus-visible) .arr-a { transform: translateX(24px); }
:is(a, button):is(:hover, :focus-visible) .arr-b { transform: translateX(0); }
:is(a, button):active .arr { transform: translateX(2px); transition: transform 0.4s var(--icon-ease); }

/* play button: a ring draws itself around the circle, the triangle leans forward, a press squeezes and rings out */
.pbtn { display: block; flex: none; overflow: visible; }
.pbtn-bg { fill: var(--pb-bg, #fff); transform-box: fill-box; transform-origin: center; transition: transform 0.8s var(--icon-ease); }
.pbtn-ring { fill: none; stroke: var(--pb-ring, rgba(255, 255, 255, 0.9)); stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transform-box: fill-box; transform-origin: center; transform: rotate(-90deg); transition: stroke-dashoffset 1.3s var(--icon-ease); }
.pbtn-tri { fill: var(--pb-fg, #0b1626); transform-box: fill-box; transform-origin: 40% 50%; transition: transform 0.8s var(--icon-ease); }
:is(a, button):is(:hover, :focus-visible) .pbtn-bg { transform: scale(1.07); }
:is(a, button):is(:hover, :focus-visible) .pbtn-ring { stroke-dashoffset: 0; }
:is(a, button):is(:hover, :focus-visible) .pbtn-tri { transform: translateX(1.5px) scale(1.1); }
:is(a, button):active .pbtn-bg { transform: scale(0.9); }
:is(a, button):active .pbtn-tri { transform: scale(0.82); }
.pbtn.is-burst .pbtn-ring { animation: ring-out 1s var(--icon-ease); }
@keyframes ring-out { 0% { stroke-dashoffset: 0; transform: rotate(-90deg) scale(1); opacity: 1; } 100% { stroke-dashoffset: 0; transform: rotate(-90deg) scale(1.45); opacity: 0; } }

/* small play mark inside text buttons: the triangle runs out and a new one runs in */
.pmini { width: 0.85em; height: 0.85em; flex: none; overflow: hidden; fill: currentColor; }
.pmini path { transition: transform 1.2s var(--icon-ease); }
.pmini-b { transition-delay: 0.14s; }
.pmini-b { transform: translateX(-20px); }
:is(a, button):is(:hover, :focus-visible) .pmini-a { transform: translateX(20px); }
:is(a, button):is(:hover, :focus-visible) .pmini-b { transform: translateX(0); }

/* close: the cross turns a quarter and redraws itself */
.xic { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; transition: transform 0.9s var(--icon-ease); }
.xic path { stroke-dasharray: 1; stroke-dashoffset: 0; }
:is(a, button):is(:hover, :focus-visible) .xic { transform: rotate(90deg); }
:is(a, button):is(:hover, :focus-visible) .xic-1 { animation: draw 0.8s var(--icon-ease) both; }
:is(a, button):is(:hover, :focus-visible) .xic-2 { animation: draw 0.8s var(--icon-ease) 0.2s both; }
:is(a, button):active .xic { transform: rotate(90deg) scale(0.8); }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* choose again: the loop turns back */
.again { width: 1.05em; height: 1.05em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 1.1s var(--icon-ease); }
:is(a, button):is(:hover, :focus-visible) .again { transform: rotate(-200deg); }

/* skip and take another: two triangles race forward */
.skipic { width: 1.1em; height: 1.1em; flex: none; overflow: visible; fill: currentColor; }
.skipic path { transform-box: fill-box; }
:is(a, button):is(:hover, :focus-visible) .skipic-1 { animation: skip-run 1.4s var(--icon-ease) infinite; }
:is(a, button):is(:hover, :focus-visible) .skipic-2 { animation: skip-run 1.4s var(--icon-ease) 0.2s infinite; }
@keyframes skip-run { 0% { transform: translateX(0); opacity: 1; } 50% { transform: translateX(4px); opacity: 0.55; } 100% { transform: translateX(0); opacity: 1; } }

/* every button gives a little under the finger */
.btn:active, .tab:active, .xitem:active, .quiz-options button:active, .ask-examples button:active { transform: scale(0.97); }

/* ---------- nav: Aceternity "navbar with children" with the "simple navbar" hover pill ---------- */
.nav {
    position: fixed; inset: 0 0 auto; z-index: 40;
    height: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
    padding: env(safe-area-inset-top, 0px) var(--gutter) 0;
    transition: background-color 0.3s, box-shadow 0.3s;
}
.nav.is-solid { background: color-mix(in srgb, var(--bg) 92%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); box-shadow: 0 1px 0 var(--line); }
.nav-pill { display: flex; align-items: center; gap: 2rem; height: 100%; }
.nav-links { position: relative; display: flex; align-items: center; gap: 0; margin-inline: auto; }
.nav-link {
    position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 0.35rem;
    height: 2.4rem; padding: 0 0.875rem; border: 0; border-radius: 999px; background: none;
    font-family: var(--font); font-size: 0.94rem; font-weight: 500; color: var(--muted); text-decoration: none; cursor: pointer;
    transition: color 0.3s;
}
.nav-link:hover, .nav-link:focus-visible, .nav-link.is-here, .has-menu.is-open > .nav-link { color: var(--text); }
/* the soft pill slides from link to link */
.nav-hover {
    position: absolute; top: 50%; left: 0; z-index: 0; height: 2.4rem; width: var(--hw, 0px); border-radius: 999px;
    background: var(--fill-2); opacity: 0; pointer-events: none;
    transform: translate(var(--hx, 0px), -50%);
    transition: transform 0.55s cubic-bezier(0.34, 1.2, 0.64, 1), width 0.55s cubic-bezier(0.34, 1.2, 0.64, 1), opacity 0.3s;
}
.nav-hover.is-on { opacity: 1; }
.nav-hover.is-jump { transition: opacity 0.3s; }
.chev { width: 0.85rem; height: 0.85rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.6s var(--icon-ease); }
.has-menu.is-open .chev { transform: rotate(180deg); }
.nav-signin { font-size: 0.94rem; font-weight: 500; color: var(--muted); text-decoration: none; white-space: nowrap; transition: color 0.2s; }
.nav-signin:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 1.25rem; margin-left: auto; }
.nav-links + .nav-actions { margin-left: 0; }

/* Discover: the panel springs open under the tab, the way Aceternity's "Products" children do */
.has-menu { position: relative; }
.nav-menu {
    position: absolute; top: 100%; left: 50%; padding-top: 1.1rem;
    opacity: 0; visibility: hidden; pointer-events: none;
    transform: translateX(-50%) translateY(10px) scale(0.86); transform-origin: 50% 0;
    transition: opacity 0.3s, transform 0.55s cubic-bezier(0.34, 1.4, 0.64, 1), visibility 0s 0.55s;
}
.has-menu.is-open .nav-menu {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translateX(-50%);
    transition: opacity 0.3s, transform 0.6s cubic-bezier(0.34, 1.4, 0.64, 1), visibility 0s;
}
.nav-menu-panel { width: min(52rem, calc(100vw - 2rem)); padding: 1.4rem; border-radius: 1.4rem; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2), 0 34px 70px -24px rgba(0, 0, 0, 0.6); }
.nav-menu-intro { margin: 0 0 1rem 0.5rem; font-size: 0.9rem; color: var(--muted); }
.nav-journeys { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.nav-journey { display: flex; flex-direction: column; gap: 0.5rem; }
.nav-journey { opacity: 0; transform: translateY(8px); transition: opacity 0.4s, transform 0.6s var(--soft); }
.has-menu.is-open .nav-journey { opacity: 1; transform: none; transition-delay: calc(0.08s + var(--k) * 0.08s); }
.nav-product { display: flex; gap: 1rem; align-items: flex-start; padding: 0.6rem; border-radius: 1rem; color: var(--text); text-decoration: none; transition: background-color 0.3s; }
.nav-product:hover, .nav-product:focus-visible { background: var(--fill); }
.np-img { flex: none; width: 9rem; aspect-ratio: 4 / 3; border-radius: 0.7rem; box-shadow: 0 14px 28px -14px rgba(0, 0, 0, 0.7); }
.np-img img { transition: transform 0.9s var(--icon-ease); }
.nav-product:hover .np-img img { transform: scale(1.06); }
.xcover.np-img--org { display: grid; place-items: center; background: radial-gradient(88% 100% at top, rgba(255, 255, 255, 0.2), transparent), var(--c-business); }
.np-mini { display: flex; flex-direction: column; gap: 0.45rem; width: 70%; }
.np-mini i { display: block; height: 0.42rem; border-radius: 1rem; background: rgba(255, 255, 255, 0.22); position: relative; overflow: hidden; }
.np-mini i::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--p); border-radius: inherit; background: rgba(255, 255, 255, 0.85); transform-origin: left; transform: scaleX(0.15); transition: transform 1.1s var(--icon-ease); }
.has-menu.is-open .np-mini i::after { transform: scaleX(1); }
.np-mini i:nth-child(2)::after { transition-delay: 0.08s; } .np-mini i:nth-child(3)::after { transition-delay: 0.16s; } .np-mini i:nth-child(4)::after { transition-delay: 0.24s; }
.np-text { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; padding-top: 0.15rem; }
.np-text b { font-size: 1.12rem; font-weight: 700; line-height: 1.25; }
.np-text small { font-size: 0.9rem; line-height: 1.45; color: var(--muted); }
.np-cta { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.35rem; font-size: 0.9rem; font-weight: 500; color: var(--accent); }
.nav-product:is(:hover, :focus-visible) .np-cta .arr-a { transform: translateX(24px); }
.nav-product:is(:hover, :focus-visible) .np-cta .arr-b { transform: translateX(0); }
.np-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.1rem 0.5rem; margin: 0; padding: 0 0.6rem; list-style: none; }
.np-links a { display: block; padding: 0.5rem 0.6rem; margin-inline: -0.6rem; border-radius: 0.6rem; font-size: 0.92rem; color: var(--muted); text-decoration: none; transition: color 0.3s, background-color 0.3s; }
.np-links a:hover, .np-links a:focus-visible { color: var(--text); background: var(--fill); }

/* ================= hero ================= */
.hero {
    position: relative; isolation: isolate;
    display: grid; height: 100svh; min-height: 34rem;
    padding: calc(var(--nav-h) + clamp(1rem, 4vh, 3rem)) 0 clamp(1rem, 3vh, 2rem);
    overflow: hidden;
}
.hero[data-state="quiz"] { height: auto; min-height: 100svh; }
.hero-canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hero-ask, .hero-scene, .hero-quiz { grid-area: 1 / 1; }
.hero-ask { display: flex; flex-direction: column; gap: clamp(0.9rem, 3vh, 2.25rem); min-height: 0; width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.hero-head { flex: none; display: flex; flex-direction: column; align-items: center; text-align: center; gap: clamp(0.5rem, 2vh, 1.35rem); }
.hero-title { width: 100%; font-weight: 700; font-size: clamp(1.9rem, min(5.2vw, 6.8vh), 4.8rem); line-height: 1.06; letter-spacing: -0.02em; max-width: 30ch; }
.hero-title { min-height: calc(2 * 1.08em); display: flex; flex-direction: column; justify-content: center; }
/* big headlines fill their column instead of balancing into short lines */
.hero-title, .sec-title, .scene-headline, .quiz-step h2, .close-card h2 { text-wrap: pretty; }
.hero-lead { min-height: calc(2 * 1.6em); }
/* hidden until the script has written them, so the plain text never flashes first */
.js .hero-head:not(.is-ready) :is(.ht, .ht-sub) { visibility: hidden; }

/* text generate effect: each word arrives out of a blur, one after another */
/* the stacked layers: the old line and the new line share one place, so nothing re-flows while they change */
.ht-stack { display: grid; }
.ht-stack > * { grid-area: 1 / 1; }
.ht-stack > .is-out { pointer-events: none; }
.tg { display: inline-block; opacity: 0; filter: blur(12px); transform: translateY(var(--rise, 0.28em)); animation: tg-in 1.5s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0s) forwards; will-change: opacity, filter, transform; }
@keyframes tg-in { to { opacity: 1; filter: blur(0); transform: none; } }
.is-out .tg { animation: tg-out 1s cubic-bezier(0.45, 0, 0.55, 1) var(--o, 0s) both; }
@keyframes tg-out { from { opacity: 1; filter: blur(0); transform: none; } to { opacity: 0; filter: blur(10px); transform: translateY(calc(var(--rise, 0.28em) * -0.8)); } }
.ht-sub .tg { --rise: 0.14em; }
/* flip words: the highlighted word's letters flip in one by one, the old word lifts off */
.hl-word { display: inline-block; perspective: 600px; }
.fl { display: inline-block; opacity: 0; filter: blur(6px); transform: translateY(0.4em) rotateX(-80deg); transform-origin: 50% 100%; animation: fl-in 1.3s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0s) forwards; will-change: opacity, filter, transform; }
@keyframes fl-in { to { opacity: 1; filter: blur(0); transform: none; } }
.is-out .fl { animation: fl-out 1s cubic-bezier(0.45, 0, 0.55, 1) var(--o, 0s) both; }
@keyframes fl-out { from { opacity: 1; filter: blur(0); transform: none; } to { opacity: 0; filter: blur(6px); transform: translateY(-0.45em) rotateX(80deg); } }
/* a soft band of light passes over the pill as a new word lands */
.hl::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.32) 50%, transparent 70%) 150% 0 / 250% 100% no-repeat; pointer-events: none; }
.hl.is-land::after { animation: shine 1.6s var(--icon-ease); }
@keyframes shine { from { background-position: 150% 0; } to { background-position: -60% 0; } }

.hl {
    display: inline-block; padding: 0 0.18em 0.04em; border-radius: 0.35em; color: var(--hl-text);
    position: relative; white-space: nowrap; clip-path: inset(0 round 0.35em);
    background: linear-gradient(90deg, var(--hl-a), var(--hl-b)) left center / 0% 100% no-repeat;
    animation: hl-sweep 1.4s cubic-bezier(0.65, 0, 0.35, 1) var(--pd, 0.5s) forwards;
}
@keyframes hl-sweep { to { background-size: 100% 100%; } }
/* the old pill keeps its colour and dissolves with its word */
.is-out .hl { animation: hl-sweep 0s forwards, hl-out 1s cubic-bezier(0.45, 0, 0.55, 1) var(--o, 0s) forwards; }
@keyframes hl-out { from { opacity: 1; filter: blur(0); transform: none; } to { opacity: 0; filter: blur(8px); transform: translateY(-0.15em); } }

.hero-lead { width: 100%; font-size: clamp(0.95rem, min(1.55vw, 2.35vh), 1.3rem); line-height: 1.5; color: var(--muted); max-width: 76ch; text-wrap: balance; }
.hero-offer {
    display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.4rem 1rem 0.4rem 0.4rem; border-radius: 999px;
    font-size: 0.94rem; font-weight: 500; text-decoration: none; color: var(--text);
    background: var(--fill); box-shadow: inset 0 0 0 1px var(--line-2); transition: background-color 0.2s;
}
.hero-offer:hover { background: var(--fill-2); }
.hero-offer .pbtn { width: 2rem; height: 2rem; --pb-bg: var(--btn-bg); --pb-fg: var(--btn-text); --pb-ring: var(--accent); }
.js .hero-offer, .js .hero-cta { animation: rise 0.9s var(--ease) 0.6s both; }

/* ---------- the hero logo: the official artwork; the opening animation lands exactly on it ---------- */
.hero-brand { position: relative; display: flex; flex-direction: column; align-items: center; gap: clamp(0.35rem, 1.1vh, 0.7rem); }
.hero-mark { display: block; height: clamp(40px, 8.4vh, 92px); width: auto; color: var(--text); overflow: visible; }
.hero-brand-line { display: block; width: clamp(3rem, 8vw, 6rem); height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent); }

/* ---------- the logo opening (js/tresi-logo-reveal.js) ---------- */
html.intro-on { overflow: hidden; }
.intro { position: fixed; inset: 0; z-index: 100; background: #080b10; }
.intro svg#lr-stage { display: block; width: 100%; height: 100%; transform-origin: 0 0; will-change: transform; }
.intro-skip {
    position: absolute; right: var(--gutter); bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
    display: inline-flex; align-items: center; gap: 0.45rem; min-height: 2.5rem; padding: 0 1rem 0 1.15rem;
    border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    color: rgba(232, 238, 245, 0.85); font: 500 0.9rem var(--font); cursor: pointer; transition: background-color 0.3s, color 0.3s;
}
.intro-skip:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }
.intro-skip svg { width: 1.05em; height: 1.05em; fill: currentColor; }
/* while it plays, the hero waits; then it appears in turn as the logo lands */
html.intro-on .hero-mark, html.intro-on .hero-brand-line, html.intro-on .hero-title, html.intro-on .hero-lead, html.intro-on .hero-cta, html.intro-on .choices, html.intro-on .partners { opacity: 0; }
html.intro-on .hero-title, html.intro-on .hero-lead, html.intro-on .hero-cta, html.intro-on .choices { translate: 0 14px; }
html.intro-on .hero-cta { animation: none; }
html.intro-landing .hero-mark { opacity: 0; }
html.intro-landing .hero-cta { animation: none; }
.hero-mark { transition: opacity 0.35s; }
.hero-brand-line, .hero-title, .hero-lead, .hero-cta, .choices { transition: opacity 0.9s var(--soft), translate 0.9s var(--soft); }
.hero-brand-line { transition-delay: 0.1s; }
.hero-title { transition-delay: 0.2s; }
.hero-lead { transition-delay: 0.3s; }
.hero-cta { transition-delay: 0.4s; }
.choices { transition-delay: 0.5s; }
.partners { transition: opacity 0.9s var(--soft) 0.65s; }
/* while the big logo is on screen, the small one in the navbar steps aside */
.nav:not(.is-solid) .nav-pill > .tresi-logo { opacity: 0; pointer-events: none; transform: translateY(-6px); }
.nav-pill > .tresi-logo { transition: opacity 0.5s var(--icon-ease), transform 0.5s var(--icon-ease); }


/* ---------- wobble cards (Aceternity) ---------- */
.wobble {
    position: relative; isolation: isolate; overflow: hidden;
    display: block; width: 100%; padding: 0; border: 0; border-radius: 1.25rem;
    background: var(--wc, var(--c-career)); color: #fff; text-align: left;
    box-shadow: var(--card-shadow);
    transform: translate3d(var(--wx, 0px), var(--wy, 0px), 0);
    transition: transform 0.1s ease-out, filter 0.45s var(--ease), opacity 0.45s var(--ease);
}
.wobble::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(88% 100% at top, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0)); pointer-events: none; }
.wobble::after { content: ''; position: absolute; inset: -10%; z-index: -1; background: var(--noise); background-size: 160px; opacity: 0.09; -webkit-mask-image: radial-gradient(#fff, transparent 75%); mask-image: radial-gradient(#fff, transparent 75%); pointer-events: none; }
.wobble-in {
    position: relative; display: flex; flex-direction: column; height: 100%;
    transform: translate3d(calc(var(--wx, 0px) * -1), calc(var(--wy, 0px) * -1), 0) scale(var(--ws, 1));
    transition: transform 0.1s ease-out;
}
.wobble.is-over { --ws: 1.03; }
.art { fill: none; stroke: rgba(255, 255, 255, 0.5); stroke-width: 4px; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 0 9px; overflow: visible; }
.art * { vector-effect: non-scaling-stroke; }
.wobble.is-over .art { animation: march 1.2s linear infinite; stroke: rgba(255, 255, 255, 0.75); }
@keyframes march { to { stroke-dashoffset: -18px; } }

/* hero choices: six wobble cards in a bento */
/* the choices take whatever height is left on the screen */
.choices { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: clamp(0.6rem, 1.6vh, 1rem); }
.choice {
    position: relative; z-index: 1; display: block; min-height: 0; padding: 0; border: 0; background: none;
    color: #fff; text-align: left; cursor: pointer; perspective: 1100px;
    transition: z-index 0s 0.75s;
}
/* the face is the visible card: it can grow back to its full size over its neighbours and tilt in 3D (comet card) */
.choice-face {
    position: absolute; inset: 0; display: block; width: auto;
    transform: translate3d(var(--tx, 0px), var(--ty, 0px), 0) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(var(--cs, 1));
    transform-style: preserve-3d; will-change: transform;
    transition: top 0.75s cubic-bezier(0.22, 1, 0.36, 1), bottom 0.75s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.6s cubic-bezier(0.22, 1, 0.36, 1), filter 0.45s var(--ease);
}
.choice.is-grown { z-index: 8; transition: z-index 0s; }
.choice.is-grown[data-grow="down"] .choice-face { bottom: calc(var(--grow, 48px) * -1); }
.choice.is-grown[data-grow="up"] .choice-face { top: calc(var(--grow, 48px) * -1); }
.choice.is-grown .choice-face { box-shadow: rgba(0, 0, 0, 0.04) 0 120px 80px 0, rgba(0, 0, 0, 0.26) 0 40px 50px -10px, rgba(0, 0, 0, 0.3) 0 18px 36px -8px, inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
.choice.is-grown .art { animation: march 1.2s linear infinite; stroke: rgba(255, 255, 255, 0.75); }
.comet-glare {
    position: absolute; inset: 0; z-index: 5; border-radius: inherit; pointer-events: none; mix-blend-mode: overlay; opacity: 0;
    background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.9) 10%, rgba(255, 255, 255, 0.75) 20%, rgba(255, 255, 255, 0) 80%);
    transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.choice.is-grown .comet-glare { opacity: 0.55; }
.choice:nth-child(1) { grid-column: span 2; }
.choice[data-path="career"] { --wc: var(--c-career); }
.choice[data-path="business"] { --wc: var(--c-business); }
.choice[data-path="money"] { --wc: var(--c-money); }
.choice[data-path="rights"] { --wc: var(--c-rights); }
.choice[data-path="team"] { --wc: var(--c-team); }
.choice[data-path="life"] { --wc: var(--c-life); }
.choice[data-path="unsure"] { --wc: var(--c-unsure); }
.choice[data-path="unsure"] .choice-face { box-shadow: var(--card-shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.choice .wobble-in { padding: clamp(1rem, 2.6vh, 1.6rem) 1.5rem clamp(0.9rem, 2.2vh, 1.4rem); }
.choice-title { position: relative; z-index: 1; font-size: clamp(1.4rem, 2vw, 1.75rem); font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; }
.choice-line { position: relative; z-index: 1; margin-top: 0.4rem; max-width: 19ch; font-size: 0.98rem; line-height: 1.45; color: rgba(255, 255, 255, 0.78); }
.choice-go { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 0.4rem; margin-top: auto; padding-top: 1.25rem; font-size: 0.92rem; font-weight: 500; color: rgba(255, 255, 255, 0.92); }
.choice:hover .choice-go .arr { transform: translateX(4px); }
/* the shorter cards keep "Show me" for when they grow on hover, where there is room for it */
.choice .choice-go { opacity: 0; translate: 0 8px; transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), translate 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.choice.is-grown .choice-go { opacity: 1; translate: 0 0; transition-delay: 0.18s; }
.choice:nth-child(1) .choice-line { max-width: 34ch; }
/* phones: when the cards are too short for a description, they show their title, centred */
@media (max-width: 640px) {
    .choices.is-compact .choice-line { display: none; }
    .choices.is-compact .choice .wobble-in { justify-content: center; padding-block: 0; }
}
@media (min-width: 641px) {
    /* when the cards are too short for a description (js/tresi-landing.js sets .is-compact), they show their
       title; the description rises in as the card grows on hover */
    .choices.is-compact .choice .wobble-in { justify-content: center; padding-block: 0; }
    .choices.is-compact .choice-line { position: absolute; z-index: 1; left: 1.5rem; top: calc(50% + 1.05rem); opacity: 0; translate: 0 8px; transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), translate 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
    .choices.is-compact .choice.is-grown .choice-line { position: relative; left: auto; top: auto; opacity: 1; translate: 0 0; transition-delay: 0.12s; }
    .choices.is-compact .choice.is-grown .wobble-in { justify-content: flex-start; padding-top: clamp(1rem, 2.6vh, 1.6rem); }
    .choices.is-compact .choice-go { display: none; }
}
/* the drawing sits in the lower right corner, clear of the words */
.choice .art { position: absolute; right: -8%; bottom: -14%; width: auto; height: 72%; aspect-ratio: 1; pointer-events: none; }
.choice:nth-child(1) .art { right: 5%; height: 118%; bottom: -16%; }
.js .choice { animation: rise 0.8s var(--ease) both; animation-delay: calc(0.3s + var(--i) * 0.06s); }

/* ---------- sponsors and partners: tiles glide right to left, condensing out of smoke and dissolving back into it ---------- */
.partners { --tile-h: clamp(58px, 9.8vh, 104px); --tile-w: calc(var(--tile-h) * 2.55); flex: none; display: flex; flex-direction: column; align-items: center; gap: clamp(0.35rem, 1vh, 0.6rem); }
.partners-label { font-size: 0.86rem; font-weight: 500; color: #fff }
.partners-track { position: relative; width: 100%; height: var(--tile-h); }
.partners-row { display: flex; justify-content: center; gap: clamp(2rem, 5vw, 4.5rem); height: 100%; margin: 0; padding: 0; list-style: none; }
.partners.is-live .partners-row { display: block; position: relative; }
.partners.is-live .ptile { position: absolute; left: 0; top: 0; }
.ptile {
    display: flex; align-items: center; justify-content: center; flex: none; width: var(--tile-w); height: var(--tile-h); padding: 0.5rem 0.9rem; overflow: hidden;
    border-radius: 0.85rem; background: #fff; box-shadow: 0 12px 26px -16px rgba(0, 0, 0, 0.7);
    will-change: transform, opacity, filter;
}
.ptile img { display: block; width: 100%; height: 100%; object-fit: contain; }
:root[data-theme="light"] .ptile { box-shadow: 0 10px 24px -14px rgba(10, 26, 63, 0.35), 0 1px 3px rgba(10, 26, 63, 0.08); }
.partners.is-live .partners-track { -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }

/* a choice: the others fall away, the picked one holds a beat, then dissolves into light */
.hero.is-picking .choice:not(.is-picked) { filter: opacity(0) blur(4px); transition-delay: calc(var(--i) * 30ms); }
.hero.is-picking .choice.is-picked { --ws: 1.04; }
.hero.is-picking .hero-head { filter: opacity(0) blur(4px); transition: filter 0.45s var(--ease); }
.hero:not([data-state="ask"]) .choice.is-picked { filter: blur(12px) opacity(0); }

/* states: ask -> scene -> done, or ask -> quiz -> scene */
.hero:not([data-state="ask"]) .hero-ask { opacity: 0; pointer-events: none; visibility: hidden; transition: opacity 0.5s var(--ease), visibility 0s 0.6s; }
.hero-scene, .hero-quiz { display: none; }
.hero[data-state="scene"] .hero-scene, .hero[data-state="done"] .hero-scene { display: grid; }
.hero[data-state="quiz"] .hero-quiz { display: flex; }

.hero-scene { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 2rem clamp(2rem, 5vw, 5rem); align-items: center; align-self: stretch; justify-self: center; width: 100%; max-width: var(--wrap); padding-inline: var(--gutter); }
.scene-art { align-self: stretch; min-height: 16rem; }
.scene-text { display: flex; flex-direction: column; align-items: flex-start; gap: 1.2rem; }
.scene-line { min-height: 1.6em; max-width: 52ch; font-size: clamp(1.05rem, 1.6vw, 1.25rem); font-weight: 500; color: var(--accent); }
/* the scene's words wait for their turn, then generate; tg-now shows them at once */
.hero-scene .tg { animation-play-state: paused; }
.hero-scene .is-in .tg { animation-play-state: running; }
.hero-scene.tg-now .tg { animation: none; opacity: 1; filter: none; transform: none; }
.scene-headline { font-weight: 700; font-size: clamp(2.2rem, 4.2vw, 4.4rem); line-height: 1.05; letter-spacing: -0.025em; }
.scene-sub { font-size: clamp(1.05rem, 1.35vw, 1.25rem); color: var(--muted); max-width: 54ch; }
.scene-actions { opacity: 0; translate: 0 1rem; transition: opacity 0.8s var(--ease), translate 0.8s var(--ease); }
.scene-actions.is-in { opacity: 1; translate: 0 0; }
.scene-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.6rem; }
.scene-actions:not(.is-in) { pointer-events: none; }
.scene-skip { position: absolute; right: var(--gutter); bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px)); z-index: 2; display: inline-flex; align-items: center; gap: 0.45rem; min-height: 2.4rem; padding: 0 1rem 0 1.1rem; border: 0; border-radius: 999px; background: var(--fill); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--muted); font-size: 0.88rem; font-weight: 500; cursor: pointer; }
.scene-skip:hover { color: var(--text); }

/* I'm not sure yet */
.hero-quiz { flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.5rem; width: 100%; max-width: var(--wrap); justify-self: center; padding-inline: var(--gutter); }
.quiz-step { display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; width: 100%; animation: rise 0.6s var(--ease) both; }
.quiz-count { font-size: 0.92rem; font-weight: 500; color: var(--muted); }
.quiz-step h2 { font-weight: 700; font-size: clamp(2.1rem, 4.6vw, 4.4rem); line-height: 1.05; letter-spacing: -0.025em; }
.quiz-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; width: 100%; margin-top: 0.75rem; }
.quiz-options--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.quiz-options button { min-height: 4.75rem; padding: 0.9rem 1.25rem; border: 0; border-radius: 1rem; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); text-align: left; font-size: 1.05rem; font-weight: 500; cursor: pointer; transition: background-color 0.2s, transform 0.25s var(--ease), box-shadow 0.2s; }
.quiz-options button:hover { background: var(--surface-2); transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--accent); }
.quiz-back { display: inline-flex; align-items: center; gap: 0.45rem; border: 0; background: none; color: var(--muted); font-size: 0.94rem; cursor: pointer; }
.quiz-back:hover { color: var(--text); }

/* ================= sections ================= */
.section { padding-block: clamp(4.5rem, 9vw, 7.5rem); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1rem clamp(2rem, 5vw, 5rem); align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.sec-head > :last-child:not(:first-child) { padding-bottom: 0.35rem; }
.sec-title { font-weight: 700; font-size: clamp(2rem, 3.9vw, 3.75rem); line-height: 1.06; letter-spacing: -0.025em; }
.sec-sub { font-size: clamp(1.05rem, 1.3vw, 1.2rem); line-height: 1.55; color: var(--muted); max-width: 54ch; }

/* ---------- expandable course cards (Aceternity) ---------- */
.xitem {
    display: grid; gap: 1rem; width: 100%; padding: 0.75rem; border: 0; border-radius: 1.1rem;
    background: transparent; text-align: left; cursor: pointer; transition: background-color 0.2s;
}
.xitem:hover { background: var(--fill-2); }
.xcover { position: relative; display: block; overflow: hidden; border-radius: 0.8rem; background: var(--pc, var(--c-unsure)); }
.xcover[data-path="career"] { --pc: var(--c-career); }
.xcover[data-path="business"] { --pc: var(--c-business); }
.xcover[data-path="money"] { --pc: var(--c-money); }
.xcover[data-path="rights"] { --pc: var(--c-rights); }
.xcover[data-path="team"] { --pc: var(--c-team); }
.xcover[data-path="life"] { --pc: var(--c-life); }
.xcover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.xitem:hover .xcover img { transform: scale(1.04); }
.cover-art { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(88% 100% at top, rgba(255, 255, 255, 0.2), transparent); }
.cover-art .art { width: 72%; height: 72%; }
.xitem:hover .cover-art .art { animation: march 1.2s linear infinite; }
.xbadge { position: absolute; left: 0.6rem; bottom: 0.6rem; display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.25rem 0.6rem; border-radius: 999px; background: rgba(8, 11, 16, 0.75); color: #fff; font-size: 0.75rem; font-weight: 500; }
.xbadge .pmini { width: 0.7rem; height: 0.7rem; }
.xitem:hover .xbadge .pmini-a { transform: translateX(20px); }
.xitem:hover .xbadge .pmini-b { transform: translateX(0); }
.xbody { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.xtitle { font-weight: 700; font-size: 1.12rem; line-height: 1.3; }
.xdesc { color: var(--muted); font-size: 0.96rem; line-height: 1.5; }
.xmeta { font-size: 0.86rem; color: var(--faint); }
.xgo { align-self: center; display: inline-flex; align-items: center; gap: 0.45rem; min-height: 2.4rem; padding: 0 1.1rem; border-radius: 999px; background: var(--fill-2); font-size: 0.9rem; font-weight: 500; white-space: nowrap; transition: background-color 0.2s, color 0.2s; }
.xitem:hover .xgo { background: var(--btn-bg); color: var(--btn-text); }
.xitem:is(:hover, :focus-visible) .xgo .arr-a { transform: translateX(24px); }
.xitem:is(:hover, :focus-visible) .xgo .arr-b { transform: translateX(0); }

/* library: a list */
.xlist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem 1.5rem; }
.xlist .xitem { grid-template-columns: 6.5rem minmax(0, 1fr) auto; align-items: center; }
.xlist .xcover { aspect-ratio: 1; }
.xlist .xbadge { display: none; }
.xlist .xdesc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.xitem.is-out { display: none; }
/* path: a grid with covers on top */
.path-grid .xitem { grid-template-rows: auto 1fr auto; align-content: start; background: var(--surface); }
.path-grid .xitem:hover { background: var(--surface-2); }
.path-grid .xcover { aspect-ratio: 16 / 9; }
.path-grid .xgo { justify-self: start; }
.path-step { font-size: 0.86rem; font-weight: 500; color: var(--accent); }
.path-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.5rem; }
.path-note { display: block; margin-top: 0.4rem; color: var(--faint); }

/* tabs with a sliding pill */
.tabs { position: relative; justify-self: end; display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem; padding: 0.3rem; border-radius: 999px; background: var(--fill); box-shadow: inset 0 0 0 1px var(--line); }
.tab-bg { position: absolute; top: 0; left: 0; z-index: 0; border-radius: 999px; background: var(--btn-bg); transition: transform 0.4s var(--ease), width 0.4s var(--ease), height 0.4s var(--ease); pointer-events: none; }
.tab { position: relative; z-index: 1; min-height: 2.4rem; padding: 0 1.1rem; border: 0; border-radius: 999px; background: none; color: var(--muted); font-size: 0.93rem; font-weight: 500; cursor: pointer; transition: color 0.3s; }
.tab:hover { color: var(--text); }
.tab.is-on { color: var(--btn-text); }

/* the expanded course */
.xmodal { width: min(42rem, calc(100vw - 1.5rem)); max-height: calc(100svh - 2rem); padding: 0; border: 0; border-radius: 1.5rem; background: var(--surface); color: var(--text); box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.7), 0 0 0 1px var(--line-2); overflow: hidden; }
.xmodal::backdrop { background: rgba(4, 6, 10, 0.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.xm-panel { position: relative; display: flex; flex-direction: column; max-height: calc(100svh - 2rem); }
.xm-close { position: absolute; top: 0.8rem; right: 0.8rem; z-index: 2; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: #0b1626; cursor: pointer; }
.xm-cover { position: relative; flex: none; height: clamp(11rem, 30vh, 17rem); }
.xm-cover .xcover { position: absolute; inset: 0; border-radius: 0; }
.xm-cover .cover-art .art { width: 58%; height: 58%; animation: march 1.2s linear infinite; }
.xm-body { display: flex; flex-direction: column; gap: 1rem; min-height: 0; padding: 1.4rem 1.5rem 0; }
.xm-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.xm-top h2 { font-weight: 700; font-size: 1.45rem; line-height: 1.2; letter-spacing: -0.01em; }
.xm-meta { margin-top: 0.25rem; font-size: 0.9rem; color: var(--muted); }
.xm-acts { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.xm-acts .btn { min-height: 2.6rem; padding: 0 1.15rem; font-size: 0.92rem; }
.xm-desc { color: var(--muted); }
.xm-outline { overflow: auto; padding-bottom: 2rem; -webkit-mask-image: linear-gradient(to bottom, #000 85%, transparent); mask-image: linear-gradient(to bottom, #000 85%, transparent); scrollbar-width: none; }
.xm-mod { padding: 0.9rem 0; }
.xm-mod h3 { font-size: 1rem; font-weight: 700; }
.xm-mod ol { margin: 0.5rem 0 0; padding-left: 1.25rem; color: var(--muted); font-size: 0.95rem; }
.xm-mod li + li { margin-top: 0.2rem; }
.xmodal[open] .xm-body { animation: fade 0.4s ease 0.15s both; }

/* ---------- focus cards (Aceternity) ---------- */
.focus { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.fcard {
    position: relative; display: block; overflow: hidden; height: clamp(20rem, 32vw, 26rem); padding: 0; border: 0; border-radius: 1rem;
    background: var(--surface); text-align: left; cursor: pointer; color: #fff;
    transition: filter 0.3s ease-out, transform 0.3s ease-out;
}
.fcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fplay { position: absolute; inset: 0; z-index: 2; margin: auto; width: 4.5rem; height: 4.5rem; transition: opacity 0.3s; }
.fplay .pbtn { width: 100%; height: 100%; }
.fover { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 0.35rem; padding: 1.75rem 1.5rem; background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.2) 60%, transparent); transition: opacity 0.3s; }
.farea { font-size: 0.85rem; color: rgba(255, 255, 255, 0.75); }
.ftitle { font-size: clamp(1.25rem, 1.8vw, 1.6rem); font-weight: 700; line-height: 1.2; }
.fhook { font-size: 0.95rem; color: rgba(255, 255, 255, 0.82); }
@media (hover: hover) {
    .fcard:not(.fcard--soon) .fover { opacity: 0; }
    .fcard:hover .fover { opacity: 1; }
    .fcard:hover .fplay { opacity: 0.95; }
    .focus:hover .fcard:not(:hover) { filter: blur(4px); transform: scale(0.98); }
}
.fcard--soon { cursor: default; color: var(--text); background: var(--c-unsure); box-shadow: inset 0 0 0 1px var(--line); }
.fcard--soon .fover { background: none; }
.fcard--soon .ftitle { color: #fff; }
.fcard--soon .fhook { color: rgba(255, 255, 255, 0.7); }
.art--soon { position: absolute; top: 12%; left: 50%; width: 60%; height: auto; aspect-ratio: 1; translate: -50% 0; }

/* ---------- bento grid (Aceternity) ---------- */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.bcard { display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; min-width: 0; padding: 1rem; border-radius: 1rem; background: var(--surface); transition: box-shadow 0.2s; }
.bcard:hover { box-shadow: inset 0 0 0 1px var(--line-2), 0 20px 40px -24px rgba(0, 0, 0, 0.6); }
.bcard--wide { grid-column: span 2; }
.bhead { flex: 1; min-height: 12rem; border-radius: 0.75rem; background: var(--bg); padding: 1rem; overflow: hidden; font-size: 0.9rem; }
.btext { padding: 0.25rem 0.4rem 0.4rem; transition: transform 0.2s; }
.bcard:hover .btext { transform: translateX(0.5rem); }
.btext h3 { font-size: 1.15rem; font-weight: 700; }
.btext p { margin-top: 0.25rem; font-size: 0.96rem; color: var(--muted); }

.sk-player { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1rem; align-items: center; }
.sk-screen { position: relative; aspect-ratio: 16 / 9; border-radius: 0.6rem; overflow: hidden; background: var(--surface); }
.sk-screen img { width: 100%; height: 100%; object-fit: cover; }
.sk-playbtn { position: absolute; inset: 0; margin: auto; width: 3.2rem; height: 3.2rem; }
.sk-playbtn .pbtn { width: 100%; height: 100%; }
.bcard:hover .sk-playbtn .pbtn-ring { stroke-dashoffset: 0; }
.bcard:hover .sk-playbtn .pbtn-tri { transform: translateX(1.5px) scale(1.1); }
.sk-bar { position: absolute; left: 0.7rem; right: 0.7rem; bottom: 0.6rem; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.3); }
.sk-bar i { position: absolute; inset: 0 auto 0 0; width: 34%; border-radius: inherit; background: #fff; transition: width 1.6s var(--ease); }
.bcard:hover .sk-bar i { width: 74%; }
.bcard:hover .sk-playbtn .pbtn-bg { transform: scale(1.07); }
.sk-lessons { display: flex; flex-direction: column; gap: 0.1rem; margin: 0; padding: 0; list-style: none; }
.sk-lessons li { display: flex; align-items: flex-start; gap: 0.6rem; padding: 0.5rem 0.6rem; border-radius: 0.5rem; color: var(--faint); line-height: 1.35; }
.sk-lessons li.is-done { color: var(--muted); }
.sk-lessons li.is-now { color: var(--text); background: var(--fill-2); }
.sk-tick { position: relative; flex: none; width: 1rem; height: 1rem; margin-top: 0.1rem; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.is-done .sk-tick { background: var(--accent-2); box-shadow: none; }
.is-done .sk-tick::after { content: ''; position: absolute; left: 0.32rem; top: 0.17rem; width: 0.26rem; height: 0.48rem; border: solid var(--bg); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.is-now .sk-tick { box-shadow: inset 0 0 0 1.5px var(--accent); }

.sk-quiz { display: flex; flex-direction: column; gap: 0.6rem; }
.sk-q { font-weight: 500; line-height: 1.35; }
.sk-quiz ul { display: flex; flex-direction: column; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.sk-quiz li { display: flex; gap: 0.6rem; align-items: baseline; padding: 0.5rem 0.7rem; border-radius: 0.6rem; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--muted); line-height: 1.35; transition: transform 0.3s var(--ease), box-shadow 0.3s, color 0.3s, background-color 0.3s; }
.sk-quiz li b { font-weight: 700; color: var(--faint); }
.sk-quiz li.is-right { box-shadow: inset 0 0 0 1.5px var(--accent-2); color: var(--text); background: var(--success-bg); }
@media (hover: hover) {
    .sk-quiz li.is-right { box-shadow: inset 0 0 0 1px var(--line-2); color: var(--muted); background: transparent; }
    .bcard:hover .sk-quiz li.is-right { box-shadow: inset 0 0 0 1.5px var(--accent-2); color: var(--text); background: var(--success-bg); transform: translateX(6px); }
}

.sk-voice { display: flex; flex-direction: column; justify-content: center; gap: 1rem; }
.sk-wave { display: flex; align-items: center; gap: 3px; height: 3.25rem; }
.sk-wave i { flex: 1; height: 25%; border-radius: 3px; background: var(--accent); animation: wave 1.2s ease-in-out infinite; animation-delay: calc(var(--n, 0) * -0.1s); }
.sk-wave i:nth-child(2n) { --n: 4; background: var(--accent-2); } .sk-wave i:nth-child(3n) { --n: 8; } .sk-wave i:nth-child(5n) { --n: 2; } .sk-wave i:nth-child(7n) { --n: 6; }
.sk-say { color: var(--muted); line-height: 1.45; }
@keyframes wave { 0%, 100% { height: 18%; } 50% { height: 100%; } }

.sk-doc { display: flex; flex-direction: column; gap: 0.2rem; }
.sk-sec { display: grid; grid-template-columns: 1fr auto; gap: 0.45rem 1rem; padding: 0.55rem 0.2rem; }
.sk-sec-title { font-weight: 500; }
.sk-sec-state { font-size: 0.8rem; color: var(--faint); }
.sk-sec--0 .sk-sec-state { color: var(--success); }
.sk-sec--2 .sk-sec-state { color: var(--accent); }
.sk-lines { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 0.35rem; }
.sk-lines i { display: block; height: 0.4rem; border-radius: 1rem; background: var(--line-2); }
.sk-lines i:nth-child(2) { width: 90%; }
.sk-lines i:nth-child(3) { width: 58%; }
.sk-lines i.caret { position: relative; width: 24%; transition: width 1.4s var(--ease); }
.sk-lines i.caret::after { content: ''; position: absolute; right: -6px; top: -0.3rem; width: 2px; height: 1rem; background: var(--accent); animation: blink 1s steps(1) infinite; }
.bcard:hover .sk-lines i.caret { width: 76%; }
@keyframes blink { 50% { opacity: 0; } }

.sk-cert { display: grid; place-items: center; }
.sk-cert-paper { display: flex; flex-direction: column; align-items: center; gap: 0.45rem; width: min(100%, 20rem); padding: 1.4rem 1.2rem 1.2rem; border-radius: 0.3rem; background: var(--paper); color: var(--paper-ink); text-align: center; box-shadow: inset 0 0 0 6px var(--paper), inset 0 0 0 7px var(--paper-line), 0 18px 40px -22px rgba(0, 0, 0, 0.7); transform: rotate(-2deg); transition: transform 0.5s var(--ease); }
.bcard:hover .sk-cert-paper { transform: rotate(0deg) scale(1.03); }
.sk-seal { width: 2.2rem; fill: none; stroke: var(--paper-ink); stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; }
.sk-cert-kind { font-size: 0.78rem; font-weight: 500; color: rgba(29, 36, 48, 0.7); }
.sk-cert-name { width: 60%; padding-block: 0.4rem; box-shadow: 0 1px 0 var(--paper-line); }
.sk-cert-name i { display: block; height: 0.5rem; width: 70%; margin: 0 auto; border-radius: 1rem; background: rgba(29, 36, 48, 0.14); }
.sk-cert-course { font-weight: 700; font-size: 0.95rem; line-height: 1.25; }

/* ---------- card hover effect (Aceternity) ---------- */
.hover-cards { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hover-bg { position: absolute; top: 0; left: 0; z-index: 0; border-radius: 1.5rem; background: var(--fill-2); opacity: 0; pointer-events: none; transition: transform 0.35s var(--ease), width 0.35s var(--ease), height 0.35s var(--ease), opacity 0.2s; }
.hover-bg.is-on { opacity: 1; }
.hcard { position: relative; z-index: 1; margin: 0.5rem; padding: 1.75rem; border-radius: 1rem; background: var(--surface); transition: box-shadow 0.25s; }
.hcard:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
.hcard h3 { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.01em; }
.hcard p { margin-top: 0.5rem; color: var(--muted); }
.hcard ul { display: flex; flex-direction: column; gap: 0.2rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.hcard li button { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; width: 100%; padding: 0.6rem 0.75rem; margin-inline: -0.75rem; width: calc(100% + 1.5rem); border: 0; border-radius: 0.6rem; background: none; text-align: left; font-size: 0.97rem; cursor: pointer; transition: background-color 0.2s; }
.hcard li button:hover { background: var(--fill-2); }
.hcard li button .arr { color: var(--faint); }
.hcard li button:hover .arr { color: var(--text); transform: translateX(3px); }

/* ---------- placeholders and vanish input (Aceternity) ---------- */
.ask-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 2.5rem clamp(2rem, 5vw, 5rem); align-items: start; }
.ask-copy { display: flex; flex-direction: column; gap: 1.1rem; }
.ask-box { display: flex; flex-direction: column; align-items: stretch; padding-top: 0.5rem; }
.vanish { position: relative; width: 100%; height: 3.75rem; border-radius: 999px; background: var(--surface); box-shadow: 0 2px 3px -1px rgba(0, 0, 0, 0.25), inset 0 0 0 1px var(--line-2); overflow: hidden; transition: box-shadow 0.2s; }
.vanish:focus-within { box-shadow: 0 2px 3px -1px rgba(0, 0, 0, 0.25), inset 0 0 0 1.5px var(--accent); }
.vanish input { position: relative; z-index: 2; width: 100%; height: 100%; padding: 0 4.25rem 0 1.6rem; border: 0; border-radius: 999px; background: transparent; color: var(--text); font: inherit; font-size: 1.02rem; outline: none; }
.vanish.is-vanishing input { color: transparent; }
.vanish-canvas { position: absolute; top: 18%; left: 1.6rem; z-index: 1; width: 800px; height: 800px; transform: scale(0.5); transform-origin: top left; pointer-events: none; opacity: 0; }
.vanish.is-vanishing .vanish-canvas { opacity: 1; }
.vanish-ph { position: absolute; top: 0; bottom: 0; left: 1.6rem; right: 4.25rem; z-index: 1; display: flex; align-items: center; overflow: hidden; pointer-events: none; color: var(--muted); font-size: 1.02rem; white-space: nowrap; }
.vanish-ph span { display: block; overflow: hidden; text-overflow: ellipsis; transition: transform 0.3s linear, opacity 0.3s linear; }
.vanish-ph span.is-out { transform: translateY(-1.25rem); opacity: 0; }
.vanish-ph span.is-in { transform: translateY(0.9rem); opacity: 0; transition: none; }
.vanish.has-text .vanish-ph { display: none; }
.vanish-go { position: absolute; top: 50%; right: 0.55rem; z-index: 3; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border: 0; border-radius: 50%; background: var(--btn-bg); color: var(--btn-text); cursor: pointer; translate: 0 -50%; transition: background-color 0.2s, opacity 0.2s; }
.vanish-go:disabled { opacity: 0.35; cursor: default; }
.vanish-go .arr { width: 1.15rem; height: 1.15rem; stroke-width: 2.2; }
.vanish-go:not(:disabled):hover { transform: scale(1.06); }
.vanish-go { transition: background-color 0.3s, opacity 0.3s, transform 0.6s var(--icon-ease); }
.vanish-go.is-sent .arr-a { animation: fly-off 1.2s var(--icon-ease); }
@keyframes fly-off { 0% { transform: translateX(0); } 45% { transform: translateX(26px); opacity: 0; } 46% { transform: translateX(-26px); opacity: 0; } 100% { transform: translateX(0); opacity: 1; } }
.ask-examples { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
.ask-examples button { padding: 0.45rem 0.95rem; border: 0; border-radius: 999px; background: var(--fill); color: var(--muted); font-size: 0.9rem; cursor: pointer; transition: color 0.2s, background-color 0.2s; }
.ask-examples button:hover { color: var(--text); background: var(--fill-2); }
.ask-answer { width: 100%; margin-top: 1.5rem; padding: 1.5rem; border-radius: 1.25rem; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); text-align: left; animation: rise 0.5s var(--ease) both; }
.ask-question { font-size: 0.9rem; color: var(--faint); margin-bottom: 0.7rem; }
.ask-text { font-size: 1.08rem; line-height: 1.65; }
.ask-text span { opacity: 0; filter: blur(4px); animation: word-in 0.5s var(--ease) forwards; animation-delay: calc(var(--w) * 0.025s); }
.ask-recs { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1.25rem; }
.ask-recs-title { font-size: 0.9rem; font-weight: 500; color: var(--muted); }
.ask-rec { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.85rem 1rem; border-radius: 0.9rem; background: var(--fill); box-shadow: inset 0 0 0 1px var(--line); }
.ask-rec b { display: block; font-weight: 700; }
.ask-rec small { display: block; margin-top: 0.1rem; font-size: 0.88rem; color: var(--muted); }
.ask-rec .btn { min-height: 2.4rem; padding: 0 1rem; font-size: 0.9rem; }
.ask-error { color: var(--danger); }
.ask-again { margin-top: 1.1rem; padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 0.2em; }
.ask-wait { display: inline-flex; gap: 0.3rem; }
.ask-wait i { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--muted); animation: pulse 1s ease-in-out infinite; }
.ask-wait i:nth-child(2) { animation-delay: 0.15s; }
.ask-wait i:nth-child(3) { animation-delay: 0.3s; }
.ask-note { font-size: 0.88rem; color: var(--faint); max-width: 44ch; }

/* ---------- 3D card (Aceternity) ---------- */
.org-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.org-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; }

.org-copy .btn { margin-top: 0.5rem; }
.tilt-wrap { perspective: 1000px; padding-block: 1rem; }
.tilt { transform-style: preserve-3d; transition: transform 0.2s linear; }
.tilt > * { transform-style: preserve-3d; transition: transform 0.2s linear; }
.tilt.is-over > [data-z] { transform: translateZ(var(--z, 0px)); }
.roster { border-radius: 1.25rem; background: var(--surface); }
.roster-head { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 1.4rem 0.5rem; font-weight: 700; }
.roster-tag { padding: 0.2rem 0.65rem; border-radius: 999px; background: var(--fill-2); font-size: 0.78rem; font-weight: 500; color: var(--muted); }
.roster-row { display: grid; grid-template-columns: auto minmax(0, 1.3fr) minmax(0, 1fr) 5.5rem; gap: 1rem; align-items: center; padding: 1rem 1.4rem; }
.roster-av { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; font-size: 0.8rem; font-weight: 700; color: #fff; background: var(--c-career); }
.roster-row:nth-child(3) .roster-av { background: var(--c-business); }
.roster-row:nth-child(4) .roster-av { background: var(--c-money); }
.roster-row:nth-child(5) .roster-av { background: var(--c-rights); }
.roster-who { min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.roster-who b { font-weight: 500; }
.roster-who small { font-size: 0.84rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.roster-bar { position: relative; height: 0.45rem; border-radius: 1rem; background: var(--fill-2); overflow: hidden; }
.roster-bar i { position: absolute; inset: 0 auto 0 0; width: var(--p); border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform-origin: left; transition: transform 1.4s var(--ease) 0.2s; }
.js .roster:not(.is-in) .roster-bar i { transform: scaleX(0); }
.roster-state { justify-self: end; font-size: 0.88rem; font-variant-numeric: tabular-nums; color: var(--muted); }
.roster-state.is-done { color: var(--success); font-weight: 700; }

.org-form { margin-top: 3rem; padding: clamp(1.4rem, 3vw, 2.25rem); border-radius: 1.25rem; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); animation: rise 0.6s var(--ease) both; }
.org-form h3 { font-size: 1.4rem; font-weight: 700; }
.org-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem 1.25rem; margin-top: 1.5rem; }
.org-fields label { display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.9rem; font-weight: 500; color: var(--muted); }
.org-fields input:not([type="checkbox"]), .org-fields select { height: 3rem; padding: 0 1rem; border: 0; border-radius: 0.75rem; background: var(--input-bg); color: var(--text); box-shadow: var(--input-ring); font: inherit; font-size: 1rem; }
.org-fields input:focus, .org-fields select:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--accent); }
.org-fields [aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px var(--danger) !important; }
.org-check { flex-direction: row !important; align-items: center; gap: 0.6rem !important; align-self: end; min-height: 3rem; cursor: pointer; }
.org-check input { width: 1.1rem; height: 1.1rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.org-msg { margin-top: 1.2rem; font-size: 0.95rem; color: var(--danger); }
.org-form .btn { margin-top: 1.4rem; }

/* ---------- course catalogue: the whole card opens the details ---------- */
.sec-sub--under { margin-top: 0.9rem; }
.catalog, .path-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr)); gap: 1.25rem; }
.ccard { display: flex; flex-direction: column; overflow: hidden; border-radius: 1.1rem; background: var(--surface); cursor: pointer; transition: box-shadow 0.3s, transform 0.4s var(--icon-ease); }
.ccard:hover { box-shadow: inset 0 0 0 1px var(--line-2), 0 24px 48px -28px rgba(0, 0, 0, 0.7); transform: translateY(-3px); }
.ccard.is-out { display: none; }
.ccard-cover { aspect-ratio: 16 / 9; border-radius: 0; }
.ccard:hover .ccard-cover img { transform: scale(1.04); }
.ccard:hover .cover-art .art { animation: march 1.2s linear infinite; }
.ccard-body { display: flex; flex-direction: column; gap: 0.5rem; flex: 1; padding: 1.25rem 1.35rem 1.35rem; }
.ccard-area, .ccard-step { font-size: 0.85rem; font-weight: 500; color: var(--accent); }
.ccard h3 { font-size: 1.2rem; font-weight: 700; line-height: 1.3; }
.ccard h3 button { padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.ccard h3 button:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.ccard-desc { font-size: 0.97rem; line-height: 1.55; color: var(--muted); }
.ccard-meta { font-size: 0.86rem; color: var(--faint); }
.ccard-acts { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: auto; padding-top: 0.75rem; }
.ccard-acts .btn { min-height: 2.6rem; }
.catalog-empty { margin-top: 1.5rem; color: var(--muted); }

/* ---------- organisations page ---------- */
.org-hero { padding: calc(var(--nav-h) + clamp(2.5rem, 7vh, 5rem)) 0 clamp(3rem, 7vw, 5rem); }
.org-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 2.5rem clamp(2rem, 5vw, 5rem); align-items: center; }
.org-hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; }
.org-hero-title { font-weight: 700; font-size: clamp(2.3rem, 4.8vw, 4.4rem); line-height: 1.06; letter-spacing: -0.025em; }
.org-acts { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }
.osteps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.osteps--list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ostep { display: flex; flex-direction: column; gap: 0.6rem; padding: 1.5rem; border-radius: 1rem; background: var(--surface); }
.ostep-n { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--fill-2); font-weight: 700; color: var(--accent); }
.ostep h3 { font-size: 1.15rem; font-weight: 700; }
.ostep p { color: var(--muted); }
.offer-card { --wc: var(--c-business); margin-top: 1.5rem; min-height: 14rem; }
.offer-card .wobble-in { justify-content: center; gap: 0.9rem; align-items: flex-start; padding: clamp(1.75rem, 4vw, 3rem); }
.offer-card h3 { position: relative; z-index: 1; max-width: 26ch; font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 700; line-height: 1.15; }
.offer-card p { position: relative; z-index: 1; max-width: 60ch; color: rgba(255, 255, 255, 0.85); }
.offer-card .btn { position: relative; z-index: 1; margin-top: 0.4rem; }
.offer-card .art { position: absolute; right: 4%; bottom: -14%; height: 120%; width: auto; aspect-ratio: 1; }
.bento--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.odeliver { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.ocard { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.6rem; border-radius: 1rem; background: var(--surface); }
.ocard h3 { font-size: 1.2rem; font-weight: 700; }
.ocard p { color: var(--muted); }
.org-subtitle { margin: 3rem 0 1.25rem; font-size: 1.4rem; font-weight: 700; }
.org-page .org-form { margin-top: 0; }
.org-wide { grid-column: 1 / -1; }
.org-fields textarea { padding: 0.8rem 1rem; border: 0; border-radius: 0.75rem; background: var(--input-bg); color: var(--text); box-shadow: var(--input-ring); font: inherit; font-size: 1rem; resize: vertical; }
.org-fields textarea:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--accent); }

/* ---------- closing wobble card ---------- */
.close-card { --wc: var(--c-career); min-height: 22rem; }
.close-card .wobble-in { justify-content: center; gap: 1.1rem; padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4.5rem); }
.close-card h2 { position: relative; z-index: 1; max-width: 22ch; font-weight: 700; font-size: clamp(2.2rem, 4.8vw, 4.6rem); line-height: 1.1; letter-spacing: -0.02em; }
.close-card p { position: relative; z-index: 1; max-width: 54ch; font-size: 1.1rem; color: rgba(255, 255, 255, 0.8); }
.close-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.6rem; }
.close-card .art { position: absolute; right: 3%; bottom: -12%; height: 125%; width: auto; aspect-ratio: 1; }

/* ---------- footer ---------- */
.foot { padding-block: 2.5rem calc(2.5rem + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -1px 0 var(--line); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2.5rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; }
.foot nav a { font-size: 0.93rem; color: var(--muted); text-decoration: none; }
.foot nav a:hover { color: var(--text); }
.foot p { font-size: 0.85rem; color: var(--faint); }

/* ---------- Take a Minute player ---------- */
.player { width: min(68rem, calc(100vw - 2rem)); max-height: calc(100svh - 2rem); padding: 0; border: 0; border-radius: 1.25rem; background: var(--surface); color: var(--text); box-shadow: 0 0 0 1px var(--line-2), 0 40px 120px -30px rgba(0, 0, 0, 0.8); overflow: hidden; }
.player::backdrop { background: rgba(4, 6, 10, 0.78); }
.player[open] { animation: pop 0.45s var(--ease) both; }
.player-shell { display: flex; flex-direction: column; }
.player-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; }
.player-head h2 { font-size: 1.2rem; font-weight: 700; line-height: 1.25; }
.player-close { flex: none; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border: 0; border-radius: 50%; background: var(--fill-2); cursor: pointer; }
.player-hook { padding: 0 1.25rem 1rem; color: var(--muted); }
.player-stage { position: relative; aspect-ratio: 16 / 9; max-height: 70svh; background: #000; }
.player-stage video { width: 100%; height: 100%; object-fit: contain; }
.player-deeper { position: absolute; left: 50%; bottom: 1.2rem; translate: -50% 0; padding: 0.45rem 1rem; border-radius: 999px; background: rgba(8, 11, 16, 0.8); color: #fff; font-size: 0.93rem; animation: rise 0.6s var(--ease) both; pointer-events: none; }
.player-end { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.4rem; padding: 1.5rem; text-align: center; background: rgba(6, 9, 14, 0.88); color: #fff; animation: fade 0.5s ease both; }
.player-end-title { font-size: clamp(1.35rem, 3vw, 2.1rem); font-weight: 700; line-height: 1.2; max-width: 22ch; }
.player-end-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem; }
.player-bar { display: flex; align-items: center; gap: 1rem; padding: 0.85rem 1.25rem 1rem; }
.player-toggle { flex: none; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border: 0; border-radius: 50%; background: var(--btn-bg); color: var(--btn-text); cursor: pointer; }
.pp { width: 1rem; height: 1rem; fill: currentColor; }
.pp path { transition: d 0.6s var(--icon-ease); }
.pp-l { d: path("M7 5 L11 5 L11 19 L7 19 Z"); }
.pp-r { d: path("M13 5 L17 5 L17 19 L13 19 Z"); }
.player.is-paused .pp-l { d: path("M8 5 L13.5 8.4 L13.5 15.6 L8 19 Z"); }
.player.is-paused .pp-r { d: path("M13.5 8.4 L19 12 L19 12 L13.5 15.6 Z"); }
.player-toggle { transition: transform 0.5s var(--icon-ease); }
.player-toggle:hover { transform: scale(1.08); }
.player-toggle:active { transform: scale(0.92); }
.player-time { flex: none; font-size: 0.88rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.player-track { position: relative; flex: 1; height: 0.3rem; border-radius: 1rem; background: var(--fill-2); overflow: hidden; cursor: pointer; }
.player-track span { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform: scaleX(var(--t, 0)); transform-origin: left; }

/* ---------- motion ---------- */
@keyframes rise { from { opacity: 0; translate: 0 1rem; } to { opacity: 1; translate: 0 0; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; scale: 0.97; } to { opacity: 1; scale: 1; } }
@keyframes word-in { to { opacity: 1; filter: none; } }
@keyframes pulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
    .hl { background-size: 100% 100%; }
}

/* ---------- narrower screens ---------- */
@media (max-width: 1024px) {
    .nav-links { display: none; }
    .choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .choice:nth-child(1) { grid-column: span 2; }
    .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .focus { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hover-cards { grid-template-columns: minmax(0, 1fr); }
    .xlist { grid-template-columns: minmax(0, 1fr); }
    .org-hero-grid { grid-template-columns: minmax(0, 1fr); }
    .osteps, .osteps--list, .odeliver { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .org-grid { grid-template-columns: minmax(0, 1fr); }
    .sec-head, .ask-grid { grid-template-columns: minmax(0, 1fr); }
    .tabs { justify-self: start; }
    .quiz-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .org-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* short phones: the cards keep only their titles so the whole hero still fits on the screen */
@media (max-width: 640px) and (max-height: 720px) {
    .partners { --tile-h: 34px; --tile-w: 86px; gap: 0.25rem; }
    .partners-label { font-size: 0.68rem; }
    .hero-ask { gap: 0.7rem; }
    .choices { gap: 0.4rem; }
    .choice-line { display: none; }
    .choice-title { font-size: 1rem; }
    .choice .wobble-in { padding: 0 0.9rem; justify-content: center; }
    .choice .art { height: 80%; }
}
@media (max-height: 560px) { .hero { height: auto; min-height: 100svh; } .choice { min-height: 9rem; } }
@media (max-width: 900px) {
    .hero-scene { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; align-items: end; padding-bottom: 1rem; }
    .scene-art { min-height: 0; }
}
@media (max-width: 640px) {
    :root { --nav-h: 3.75rem; }
    .nav-actions { gap: 0.85rem; }
    .nav-signin { font-size: 0.88rem; }
    .hero { padding-top: calc(var(--nav-h) + 1rem); }
    .hero-offer { font-size: 0.86rem; padding-block: 0.3rem; }
    .hero-offer .pbtn { width: 1.7rem; height: 1.7rem; }
    .choices { gap: 0.5rem; }
    .choice .wobble-in { padding: 0.85rem 0.9rem; }
    .choice-title { font-size: 1.08rem; }
    .choice-line { font-size: 0.8rem; line-height: 1.35; margin-top: 0.25rem; }
    .choice-go { display: none; }
    .choice .art { height: 62%; }
    .partners { --tile-h: 48px; --tile-w: 122px; }
    .partners-label { font-size: 0.74rem; }
    .hero-scene { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; align-items: end; padding-bottom: 1rem; }
    .scene-art { min-height: 0; }
    .hero-title { min-height: calc(3 * 1.08em); }
    .hero-lead { min-height: calc(3 * 1.6em); }
    .quiz-options { grid-template-columns: minmax(0, 1fr); }
    .bento, .focus { grid-template-columns: minmax(0, 1fr); }
    .bcard--wide { grid-column: auto; }
    .sk-player { grid-template-columns: minmax(0, 1fr); }
    .xlist .xitem { grid-template-columns: 4.5rem minmax(0, 1fr); }
    .xlist .xgo { display: none; }
    .roster-row { grid-template-columns: auto minmax(0, 1fr) 4.5rem; }
    .roster-bar { display: none; }
    .org-fields { grid-template-columns: minmax(0, 1fr); }
    .osteps, .osteps--list, .odeliver, .bento--two { grid-template-columns: minmax(0, 1fr); }
    .vanish { height: 3.4rem; }
    .vanish input, .vanish-ph { font-size: 0.95rem; }
    .fcard { height: 18rem; }
    .close-card .art { opacity: 0.45; }
}
