/* APEX Institute — site styles. Pages are generated by _src/build.mjs. */

/* ---------- tokens ---------- */
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('../fonts/cormorant-garamond.woff2') format('woff2'); }
@font-face { font-family: 'Mrs Saint Delafield'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/mrs-saint-delafield.woff2') format('woff2'); }
:root {
  --navy: #111111;
  --navy-2: #1B1B1B;
  --navy-3: #2B2B2B;
  --navy-deep: #0A0A0A;
  --ink: #111111;
  --ink-2: #3D3D3D;
  --muted: #6E6E6E;
  --line: #E6E6E3;
  --line-2: #D3D3CF;
  --mist: #F4F4F2;
  --paper: #F5F5F2;
  --tint: #F0F0ED;
  --white: #FFFFFF;
  --accent: #6CC3D2;
  --accent-soft: #DDF1F5;
  --accent-ink: #006F7E;
  --on-dark: #FFFFFF;
  --on-dark-2: #C2C2C2;
  --on-dark-3: #8F8F8F;
  --line-dark: rgba(255, 255, 255, .16);

  /* the three PACE labs share the black-and-mint look; their names tell them apart */
  --g: #111; --g-deep: #000; --g-line: var(--accent); --g-tint: var(--mist);
  --v: #111; --v-deep: #000; --v-line: var(--accent); --v-tint: var(--mist);
  --r: #111; --r-deep: #000; --r-line: var(--accent); --r-tint: var(--mist);

  --sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', system-ui, sans-serif;

  --hh: 64px;
  --gutter: 20px;
  --maxw: 1200px;
  --radius: 24px;
  --sec: clamp(80px, 9vw, 136px);
  --shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 12px 32px -14px rgba(0, 0, 0, .18);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .06), 0 28px 60px -22px rgba(0, 0, 0, .34);
  /* Latin display type for a few points only (self-hosted, SIL OFL; licences in assets/fonts/): a thin serif and a handwritten script */
  --serif-en: 'Cormorant Garamond', 'Times New Roman', serif;
  --script: 'Mrs Saint Delafield', 'Snell Roundhand', cursive;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 768px) { :root { --gutter: 40px; } }
@media (min-width: 1024px) { :root { --hh: 76px; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hh) + 24px); }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.7; color: var(--ink-2); background: var(--white); word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
@media (min-width: 768px) { body { font-size: 17px; } }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.3; font-weight: 700; letter-spacing: -.02em; }
::selection { background: var(--accent); color: var(--navy); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 300; padding: 12px 18px; border-radius: 12px; background: var(--accent); color: var(--navy); font-weight: 700; }
.skip:focus { top: 12px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--sec); }
.section.slim { padding-block: 40px; }
.section.flush-top { padding-top: clamp(56px, 6vw, 88px); }
.paper { background: var(--paper); }
.tint { background: var(--tint); }
main { display: block; }
body:not(.has-dark-hero) main { padding-top: var(--hh); }

/* ---------- type ---------- */
/* labels: a mint dot, then (in section heads) a hairline that runs out to the right */
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 13px; line-height: 1.5; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); margin-bottom: 16px; }
.eyebrow::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.sec-head .eyebrow::after, .philo-copy .eyebrow::after, .im-head .eyebrow::after { content: ''; flex: 1; height: 1px; background: currentColor; opacity: .22; }
:is(.cta-band, .nf, .center) .eyebrow { justify-content: center; }
.display { font-weight: 700; font-size: clamp(34px, 5.4vw, 72px); line-height: 1.22; letter-spacing: -.035em; }
.h2 { font-weight: 700; font-size: clamp(27px, 3.4vw, 44px); line-height: 1.32; letter-spacing: -.03em; }
.h3 { font-size: clamp(20px, 2vw, 24px); line-height: 1.4; }
.h4 { font-size: 18px; line-height: 1.4; }
.lead { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.75; color: var(--ink-2); }
/* emphasis: a mint marker under the words; on dark grounds the words turn mint instead */
em.accent { font-style: normal; color: inherit; background: linear-gradient(transparent 62%, var(--accent) 62%, var(--accent) 90%, transparent 90%); }
:is(.tone-dark, .cta-band, .next-band, .mv-card.dark, .net-sec, .pace-hero, .lab-hero, .classic-hero) em.accent { color: var(--accent); background: none; }
.serif-en { font-family: var(--serif-en); font-weight: 300; letter-spacing: 0; }
.script { font-family: var(--script); font-weight: 400; font-style: normal; letter-spacing: 0; background: none; }
.accent-ink { color: var(--accent-ink); }
.note { margin-top: 20px; font-size: 14px; line-height: 1.65; color: var(--muted); }
.note a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.center-note { margin-top: 40px; display: flex; justify-content: center; }
.br-pc { display: none; }
@media (min-width: 1024px) { .br-pc { display: inline; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 1.5px solid transparent; border-radius: 999px; font-size: 16px; font-weight: 600; line-height: 1.2; text-align: center; transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.btn:hover { transform: translateY(-1px); }
.btn svg { flex: none; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 17px; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-block { display: flex; width: 100%; }
.btn-accent { background: var(--accent); color: var(--navy); }
.btn-accent:hover { background: #86D0DC; box-shadow: 0 10px 28px -10px rgba(108, 195, 210, .7); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-3); }
.btn-ghost { border-color: rgba(255, 255, 255, .42); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); }
.btn-ghost-dark { border-color: var(--line-2); color: var(--ink); background: var(--white); }
.btn-ghost-dark:hover { border-color: var(--ink); }
.btn-soft { background: var(--accent-soft); color: var(--navy); }
.btn-soft:hover { background: #C9E9EF; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.btn-row.center { justify-content: center; }
.more-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; color: var(--ink); white-space: nowrap; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 7px; }
.more-link svg { transition: transform .2s var(--ease); }
.more-link:hover svg { transform: translateX(4px); }

/* ---------- header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--hh); color: var(--ink); background: rgba(255, 255, 255, .94); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); transition: background-color .3s, color .3s, border-color .3s; }
.header-in { height: 100%; display: flex; align-items: center; gap: 24px; }
.logo { display: flex; align-items: center; min-height: 44px; margin-right: auto; }
.logo img { height: 34px; width: auto; }
@media (min-width: 1024px) { .logo img { height: 38px; } }
.logo-light { display: none !important; }
.gnb { display: none; }
.gnb ul { display: flex; gap: 4px; }
.gnb a { position: relative; display: flex; align-items: center; min-height: 44px; padding: 0 16px; font-size: 16px; font-weight: 600; letter-spacing: .01em; opacity: .86; transition: opacity .2s; }
.gnb a:hover, .gnb a[aria-current] { opacity: 1; }
.gnb a::after { content: ''; position: absolute; left: 16px; right: 16px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transition: transform .25s var(--ease); }
.gnb a:hover::after, .gnb a[aria-current]::after { transform: scaleX(1); }
.header-cta { display: none; }
.menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-right: -10px; border: 0; border-radius: 12px; background: transparent; color: inherit; }
@media (min-width: 420px) { .header-cta { display: inline-flex; } }
@media (min-width: 1024px) { .gnb { display: block; } .menu-btn { display: none; } }

html.js .has-dark-hero .site-header:not(.is-solid):not(.is-open) { background: transparent; border-color: transparent; color: var(--white); -webkit-backdrop-filter: none; backdrop-filter: none; }
html.js .has-dark-hero .site-header:not(.is-solid):not(.is-open) .logo-dark { display: none !important; }
html.js .has-dark-hero .site-header:not(.is-solid):not(.is-open) .logo-light { display: block !important; }
/* backdrop-filter would make the header the containing block of the fixed menu panel, so it is off while open. */
.site-header.is-open { background: var(--navy); color: var(--white); border-color: var(--line-dark); -webkit-backdrop-filter: none; backdrop-filter: none; }
.site-header.is-open .logo-dark { display: none !important; }
.site-header.is-open .logo-light { display: block !important; }

.mobile-menu { position: fixed; inset: var(--hh) 0 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px var(--gutter) calc(32px + env(safe-area-inset-bottom)); background: var(--navy); color: var(--white); }
.mobile-menu > nav > ul > li { padding-block: 14px; border-bottom: 1px solid var(--line-dark); }
.m-top { display: flex; align-items: baseline; gap: 12px; min-height: 48px; padding-block: 6px; }
.m-top span { font-size: 26px; font-weight: 700; line-height: 1.3; letter-spacing: -.02em; }
.m-top small { font-size: 14px; color: var(--on-dark-3); }
.m-top[aria-current] span { color: var(--accent); }
.mobile-menu nav ul ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.mobile-menu nav ul ul a { display: flex; align-items: center; min-height: 44px; font-size: 16px; color: var(--on-dark-2); }
.mobile-menu .btn { margin-top: 28px; }
body.menu-open { overflow: hidden; }

/* ---------- page heroes ---------- */
.page-hero { position: relative; overflow: hidden; padding: calc(var(--hh) + clamp(56px, 7vw, 104px)) 0 clamp(56px, 7vw, 104px); }
.page-hero .wrap { position: relative; }
.page-hero .display { max-width: 15em; }
.page-hero .lead { max-width: 40em; margin-top: 24px; }
.page-hero.tone-dark { background: radial-gradient(120% 120% at 85% 0%, var(--navy-3) 0%, var(--navy) 55%); color: var(--on-dark); }
.page-hero.tone-dark .display { color: var(--white); }
.page-hero.tone-dark .lead { color: var(--on-dark-2); }
.page-hero.tone-dark .eyebrow { color: var(--white); }
.page-hero.tone-light { background: var(--paper); padding-top: clamp(56px, 7vw, 96px); }
.page-hero.tone-light .display { font-size: clamp(34px, 4.4vw, 56px); }
/* a handwritten English line above each page title, written in from the left as the page opens */
.ph-script { margin: -.12em 0 .04em -.03em; font-size: clamp(54px, 6vw, 96px); line-height: 1.15; color: var(--accent); animation: ph-write 1.4s cubic-bezier(.6, 0, .3, 1) .3s both; }
.tone-light .ph-script { color: var(--ink); }
@keyframes ph-write { from { clip-path: inset(-40% 100% -40% -20%); } to { clip-path: inset(-40% -20% -40% -20%); } }
html[data-motion='off'] .ph-script { animation: none; }
.page-hero-art { position: absolute; inset: 0; opacity: .28; }
.page-hero-art img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 10, 10, .3), var(--navy) 96%); }
/* Night scene: lifted so the stars still read against the navy. */
.art-meaning img { filter: brightness(1.7) saturate(1.15); }
@media (min-width: 768px) {
  .page-hero-art { inset: 0 0 0 auto; width: 52%; opacity: .62; -webkit-mask-image: linear-gradient(90deg, transparent, #000 55%); mask-image: linear-gradient(90deg, transparent, #000 55%); }
  .page-hero-art::after { background: linear-gradient(180deg, rgba(10, 10, 10, .1), rgba(10, 10, 10, .55)); }
}
.crumbs { margin-bottom: 28px; font-size: 14px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; }
.crumbs li { display: flex; align-items: center; color: var(--muted); }
.crumbs li + li::before { content: '/'; margin: 0 10px; opacity: .5; }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 2px; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: text-decoration-color .2s; }
.crumbs a:hover { text-decoration-color: currentColor; }
.tone-dark .crumbs li, .pace-hero .crumbs li, .lab-hero .crumbs li, .classic-hero .crumbs li { color: var(--on-dark-2); }
.crumbs [aria-current] { color: inherit; font-weight: 600; }
.tone-dark .crumbs [aria-current], .pace-hero .crumbs [aria-current], .lab-hero .crumbs [aria-current], .classic-hero .crumbs [aria-current] { color: var(--white); }

/* sub navigation */
.sub-nav { position: sticky; top: var(--hh); z-index: 50; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.sub-nav ul { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.sub-nav ul::-webkit-scrollbar { display: none; }
.sub-nav a { position: relative; display: flex; align-items: center; min-height: 56px; padding: 0 14px; font-size: 15px; font-weight: 600; color: var(--muted); white-space: nowrap; transition: color .2s; }
.sub-nav a:hover, .sub-nav a.is-active { color: var(--ink); }
.sub-nav a::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .25s var(--ease); }
.sub-nav a.is-active::after { transform: scaleX(1); }

/* section heads */
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; margin-bottom: clamp(36px, 4vw, 56px); }
.sec-head > div { max-width: 46em; }
.sec-head .lead { margin-top: 16px; }
/* section heads sit on the left everywhere, as on the home page */
.sec-head.center { justify-content: space-between; text-align: left; }
.sec-head.center > div { margin-inline: 0; }

.scroll-cue { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 14px; font-weight: 600; color: var(--on-dark-2); }
.scroll-cue svg { animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

@keyframes marquee { to { transform: translateX(-100%); } }

/* motion toggle */
.motion-toggle { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--white); font-size: 14px; font-weight: 600; color: var(--ink-2); }
.motion-toggle span { display: inline-flex; align-items: center; gap: 8px; }
.motion-toggle.on-dark { border-color: var(--line-dark); background: transparent; color: var(--on-dark-2); }
.motion-toggle .mt-on { display: none; }
html[data-motion='off'] .motion-toggle .mt-off { display: none; }
html[data-motion='off'] .motion-toggle .mt-on { display: inline-flex; }
html[data-motion='off'] .pl-track, html[data-motion='off'] .scroll-cue svg { animation-play-state: paused; }

/* ---------- today: question + content ---------- */
.today-sec { background: var(--paper); }
.today { display: grid; gap: 24px; }
@media (min-width: 1024px) { .today { grid-template-columns: 1.3fr 1fr; align-items: stretch; gap: 32px; } }
.q-card { position: relative; display: flex; flex-direction: column; gap: 28px; padding: clamp(28px, 4vw, 56px); border-radius: 28px; background: var(--white); box-shadow: var(--shadow); overflow: hidden; }
.q-text { position: relative; }
.q-date { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--muted); }
.q-badge { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 999px; background: var(--navy); color: var(--white); font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.q-question { margin-top: 24px; font-size: clamp(24px, 2.9vw, 38px); font-weight: 700; line-height: 1.42; color: var(--ink); letter-spacing: -.03em; }
.q-hint { margin-top: 20px; font-size: 15px; color: var(--muted); }
.q-write { position: relative; align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 24px 0 18px; border: 0; border-radius: 999px; background: var(--accent); color: var(--navy); font-size: 16px; font-weight: 700; transition: transform .2s var(--ease), box-shadow .2s; }
.q-write:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(108, 195, 210, .55); }
@media (min-width: 768px) {
  .q-card { flex-direction: row; align-items: center; justify-content: space-between; gap: 40px; }
  .q-text { max-width: 30em; }
  .q-write { flex: none; align-self: center; flex-direction: column; justify-content: center; gap: 6px; width: 128px; height: 128px; padding: 0; border-radius: 50%; font-size: 15px; }
}
.today-content .h4 { margin-bottom: 14px; color: var(--ink); }
.tc-card { display: grid; grid-template-columns: 112px 1fr; gap: 18px; padding: 16px; border-radius: 24px; background: var(--white); box-shadow: var(--shadow); transition: transform .25s var(--ease), box-shadow .25s; }
.tc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.tc-img { position: relative; display: block; border-radius: 16px; overflow: hidden; aspect-ratio: 3 / 4; background: var(--navy-3); }
.tc-img img { width: 100%; height: 100%; object-fit: cover; }
.tc-chip { position: absolute; left: 8px; top: 8px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .92); font-size: 12px; font-weight: 700; color: var(--navy); }
.tc-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tc-title { font-size: 17px; font-weight: 700; line-height: 1.5; color: var(--ink); }
.tc-title mark { background: linear-gradient(transparent 58%, var(--accent-soft) 58%); color: inherit; }
.tc-desc { font-size: 15px; line-height: 1.7; color: var(--ink-2); }
.tc-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 14px; color: var(--muted); }
.tc-go { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; font-size: 15px; font-weight: 700; color: var(--ink); }
@media (min-width: 560px) { .tc-card { grid-template-columns: 180px 1fr; padding: 20px; gap: 24px; } .tc-title { font-size: 19px; } }
@media (min-width: 1024px) {
  .today-content { display: flex; flex-direction: column; }
  .tc-card { flex: 1; grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .tc-img { aspect-ratio: 16 / 10; }
}

/* dialogs */
dialog { max-width: calc(100% - 32px); max-height: calc(100% - 32px); padding: 0; border: 0; border-radius: 24px; color: var(--ink-2); background: var(--white); box-shadow: var(--shadow-lg); }
dialog::backdrop { background: rgba(10, 10, 10, .72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.note-dialog { width: 640px; }
.note-form { display: flex; flex-direction: column; gap: 16px; padding: clamp(24px, 4vw, 40px); }
.note-form .h3 { letter-spacing: -.02em; }
.note-form textarea { width: 100%; min-height: 180px; padding: 16px; border: 1.5px solid var(--line-2); border-radius: 16px; font-size: 17px; line-height: 1.7; resize: vertical; }
.note-form textarea:focus { outline: none; border-color: var(--accent-ink); box-shadow: 0 0 0 4px var(--accent-soft); }
.note-help { font-size: 14px; color: var(--muted); }
.note-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }

/* ---------- audio carousel ---------- */
.carousel { display: flex; flex-direction: column; }
.carousel-track { order: 1; }
.carousel-nav { order: 2; display: none; }
@media (min-width: 768px) { .carousel-nav { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; } }
.c-btn { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border: 1.5px solid var(--line-2); border-radius: 50%; background: var(--white); color: var(--ink); transition: border-color .2s, opacity .2s; }
.c-btn:hover { border-color: var(--ink); }
.c-btn:disabled { opacity: .35; cursor: default; }
.carousel-track { display: grid; grid-auto-flow: column; grid-auto-columns: min(72%, 260px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 20px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.carousel-track:focus-visible { outline-offset: -3px; }
@media (min-width: 768px) { .carousel-track { grid-auto-columns: 272px; gap: 24px; } }
.audio-card { scroll-snap-align: start; }
.ac-cover { position: relative; aspect-ratio: 3 / 4; border-radius: 22px; overflow: hidden; background: var(--navy-3); isolation: isolate; }
.ac-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.audio-card:hover .ac-cover img { transform: scale(1.04); }
.ac-cover::after { content: ''; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(10, 10, 10, 0) 42%, rgba(10, 10, 10, .9) 100%); }
.ac-badge { position: absolute; z-index: 1; left: 14px; top: 14px; padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, .92); font-size: 12px; font-weight: 700; color: var(--navy); }
.ac-title { position: absolute; z-index: 1; left: 18px; right: 80px; bottom: 18px; font-size: 23px; font-weight: 700; line-height: 1.3; letter-spacing: -.02em; color: var(--white); }
.ac-play { position: absolute; z-index: 1; right: 14px; bottom: 14px; display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; padding-left: 3px; border: 0; border-radius: 50%; background: var(--accent); color: var(--navy); transition: transform .2s var(--ease); }
.ac-play:hover { transform: scale(1.06); }
.ic-play, .ic-pause { display: inline-flex; }
[data-audio] .ic-pause, [data-audio].is-playing .ic-play { display: none; }
[data-audio].is-playing .ic-pause { display: inline-flex; }
.ac-play.is-playing { padding-left: 0; box-shadow: 0 0 0 6px rgba(108, 195, 210, .32); }
.ac-progress { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .16); }
.ac-progress i, .cba-progress i, .ta-progress i { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.audio-note { order: 3; margin-top: 4px; font-size: 13px; color: var(--muted); }
.ac-body { padding: 14px 4px 0; }
.ac-ep { font-size: 16px; font-weight: 700; line-height: 1.5; color: var(--ink); }
.ac-meta { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 14px; color: var(--muted); }

/* ---------- philosophy: rings + talents ---------- */
.philosophy-sec { background: var(--tint); }
.philosophy-sec, #philosophy { overflow-x: clip; }
.philo-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .philo-grid { grid-template-columns: 1fr 1fr; gap: 72px; } }
.philo-copy .lead { margin-top: 24px; }
.philo-copy .more-link { margin-top: 20px; }

/* ---------- programs ---------- */
.programs-sec .btn-row { margin-top: 48px; }
.lab-growth { --lab: var(--g); --lab-deep: var(--g-deep); --lab-line: var(--g-line); --lab-tint: var(--g-tint); }
.lab-vision { --lab: var(--v); --lab-deep: var(--v-deep); --lab-line: var(--v-line); --lab-tint: var(--v-tint); }
.lab-relation { --lab: var(--r); --lab-deep: var(--r-deep); --lab-line: var(--r-line); --lab-tint: var(--r-tint); }
.lab-cards { display: grid; grid-auto-flow: column; grid-auto-columns: min(84%, 380px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 16px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.lab-card { scroll-snap-align: start; }
@media (min-width: 900px) { .lab-cards { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); gap: 24px; overflow: visible; margin-inline: 0; padding: 0; } }
.lab-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--white); border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s; }
.lab-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.lab-band { position: relative; display: flex; align-items: flex-end; min-height: 148px; padding: 24px 28px; background: radial-gradient(120% 140% at 100% 0%, var(--lab-line) -40%, var(--lab) 45%, var(--lab-deep) 100%); color: var(--white); overflow: hidden; }
.lab-mark { position: absolute; right: 22px; top: 22px; opacity: .85; }
.lab-word { font-size: 52px; line-height: 1; font-weight: 800; letter-spacing: -.05em; }
.lab-band sup { margin: 0 0 30px 6px; font-size: 15px; font-weight: 700; }
.lab-body { display: flex; flex: 1; flex-direction: column; padding: 28px; }
.lab-name { font-size: 22px; }
.lab-topic { margin-top: 4px; font-size: 15px; font-weight: 700; color: var(--lab); }
.lab-list { margin-top: 20px; display: grid; gap: 10px; }
.lab-list li { position: relative; padding-left: 18px; font-size: 16px; line-height: 1.6; }
.lab-list li::before { content: ''; position: absolute; left: 0; top: .65em; width: 7px; height: 7px; border-radius: 50%; background: var(--lab); }
.lab-tag { margin-top: 24px; padding: 14px 16px; border-radius: 14px; background: var(--lab-tint); font-size: 16px; font-weight: 600; color: var(--lab-deep); }
.lab-tag::before { content: '#'; margin-right: 6px; color: var(--lab); }
.lab-dur { display: flex; align-items: center; gap: 8px; margin-top: 20px; font-size: 15px; color: var(--muted); }
.lab-more { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; min-height: 44px; margin-top: auto; padding-top: 12px; font-weight: 700; color: var(--lab); }
.lab-more svg { transition: transform .2s var(--ease); }
.lab-card:hover .lab-more svg { transform: translateX(4px); }
.mini-programs { display: grid; margin-top: 64px; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .mini-programs { grid-template-columns: repeat(3, 1fr); } .mini-programs li + li { border-left: 1px solid var(--line); } }
.mini-programs li { border-bottom: 1px solid var(--line); }
.mini-programs a { display: flex; align-items: center; gap: 16px; min-height: 104px; padding: 20px 24px; transition: background-color .2s; }
.mini-programs a:hover { background: var(--mist); }
.mp-no { font-size: 28px; font-family: var(--serif-en); font-weight: 400; font-variant-numeric: lining-nums; letter-spacing: -.03em; color: var(--ink); }
.mp-text { flex: 1; display: flex; flex-direction: column; }
.mp-text b { font-size: 18px; color: var(--ink); }
.mp-text span { font-size: 15px; color: var(--muted); }
.mini-programs svg { flex: none; color: var(--muted); }

.steps { display: grid; gap: 12px; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(5, 1fr); gap: 16px; } }
.steps li { position: relative; display: flex; flex-direction: column; padding: 24px; border-radius: 20px; background: var(--mist); }
.steps li::after { content: ''; position: absolute; left: 24px; right: 24px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent); }
.step-no { font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--muted); }
.step-en { margin-top: 12px; font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.step-ko { font-size: 15px; font-weight: 700; color: var(--muted); }
.steps p { margin-top: 12px; font-size: 15px; line-height: 1.65; }

/* ---------- record: polaroid marquee ---------- */
.record-sec { background: var(--paper); overflow: hidden; }
.record-head { display: grid; gap: 24px; align-items: end; margin-bottom: 48px; }
@media (min-width: 900px) { .record-head { grid-template-columns: auto 1fr; gap: 64px; } }
.record-title { white-space: nowrap; font-size: clamp(34px, 10.5vw, 100px); font-weight: 800; line-height: 1.02; letter-spacing: -.05em; color: var(--ink); }
.record-title span { display: block; }
.polaroid-strip { display: flex; overflow: hidden; padding-block: 24px; }
.pl-track { display: flex; flex: none; gap: 28px; padding-right: 28px; animation: marquee 70s linear infinite; }
.polaroid-strip:hover .pl-track, .polaroid-strip:focus-within .pl-track { animation-play-state: paused; }
.polaroid { flex: none; width: 196px; padding: 10px 10px 14px; background: var(--white); box-shadow: 0 2px 4px rgba(10, 10, 10, .06), 0 16px 32px -14px rgba(10, 10, 10, .32); transform: rotate(var(--tilt)); transition: transform .3s var(--ease); }
.polaroid:hover { transform: rotate(0) scale(1.03); }
.polaroid img { width: 100%; aspect-ratio: 640 / 905; object-fit: cover; background: var(--mist); }
.polaroid span { display: -webkit-box; margin-top: 10px; font-size: 13px; font-weight: 600; line-height: 1.45; color: var(--ink-2); -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.polaroid b, .polaroid i { font: inherit; }
.polaroid i::before { content: ' · '; }
@media (min-width: 768px) { .polaroid { width: 236px; } }
.record-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }

/* ---------- SDGs ---------- */
/* SDG tiles in black with a mint number, as on the home page */
.sdg-tile { display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 1; padding: 10px; border-radius: 8px; background: var(--ink); color: var(--white); }
.sdg-tile b { font-size: 26px; line-height: 1; font-weight: 800; color: var(--accent); }
.sdg-tile span { font-size: 12px; font-weight: 700; line-height: 1.3; }
.sdg-tile.lg { flex: none; width: 96px; padding: 10px; }
.sdg-tile.lg b { font-size: 30px; }

.sdg-board { padding: clamp(20px, 3vw, 36px); border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.sdg-board-title { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin-bottom: 20px; font-size: 15px; font-weight: 800; letter-spacing: .06em; color: var(--ink); }
.sdg-board-title span { font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.sdg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (min-width: 560px) { .sdg-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 900px) { .sdg-grid { grid-template-columns: repeat(6, 1fr); gap: 10px; } }
.sdg-grid li:not(.is-on) .sdg-tile { background: var(--mist); color: var(--muted); }
.sdg-grid li:not(.is-on) .sdg-tile b { color: #8F8F8B; }
.sdg-grid .is-on .sdg-tile { box-shadow: 0 14px 22px -12px rgba(0, 0, 0, .6); }
.sdg-legend { display: flex; align-items: center; gap: 10px; margin-top: 20px; font-size: 14px; color: var(--muted); }
.sdg-legend .dot { width: 14px; height: 14px; border-radius: 4px; background: var(--navy); box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--navy); }

.timeline { position: relative; padding-left: 36px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 12px; bottom: 12px; width: 2px; background: linear-gradient(var(--accent), var(--line)); }
.tl-item { position: relative; }
.tl-item + .tl-item { margin-top: clamp(56px, 6vw, 88px); }
.tl-item::before { content: ''; position: absolute; left: -36px; top: 8px; width: 16px; height: 16px; border-radius: 50%; background: var(--white); border: 4px solid var(--ink); }
.tl-item > .h3 { margin-bottom: 24px; }
.tl-item .lead { margin-top: 20px; max-width: 46em; }
@media (min-width: 768px) { .timeline { padding-left: 64px; } .tl-item::before { left: -64px; } .timeline::before { left: 7px; } }

.flow { display: grid; gap: 14px; max-width: 880px; }
.flow-row { display: grid; gap: 8px; }
@media (min-width: 768px) { .flow-row { grid-template-columns: 1fr 1fr; align-items: center; gap: 20px; } }
.flow-box { display: flex; align-items: center; justify-content: center; min-height: 60px; padding: 12px 24px; border: 2px solid var(--navy); border-radius: 999px; font-weight: 700; color: var(--navy); text-align: center; background: var(--white); }
.flow-side { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--muted); }
.flow-side svg { flex: none; color: var(--accent-ink); }
@media (max-width: 767px) { .flow-side svg { transform: rotate(90deg); } .flow-side { padding-left: 24px; } }
.flow-band { display: grid; gap: 20px; padding: 28px; border-radius: var(--radius); background: var(--navy); color: var(--white); }
.flow-band p { font-size: 20px; font-weight: 700; line-height: 1.5; letter-spacing: -.02em; }
.flow-band ul { display: flex; flex-wrap: wrap; gap: 10px; }
.flow-band li { display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 50%; border: 1.5px solid var(--accent); font-weight: 700; font-size: 15px; }
.flow-band li:last-child { background: var(--accent); color: var(--navy); }
@media (min-width: 768px) { .flow-band { grid-template-columns: auto 1fr; align-items: center; gap: 32px; } .flow-band ul { justify-content: flex-end; } }
.flow-arrow { justify-self: center; width: 2px; height: 36px; background: var(--navy); position: relative; }
.flow-arrow::after { content: ''; position: absolute; left: 50%; bottom: -2px; width: 12px; height: 12px; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: translateX(-50%) rotate(45deg); }
.flow-result { display: flex; align-items: center; justify-content: center; min-height: 64px; padding: 14px 24px; border-radius: 999px; background: var(--accent); color: var(--navy); font-weight: 700; text-align: center; }
.sdg-detail { display: grid; gap: 16px; }
@media (min-width: 900px) { .sdg-detail { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.sdg-detail > li { padding: 28px; border-radius: var(--radius); background: var(--mist); }
.sd-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.sd-head .sdg-tile.lg { width: 84px; }
.sd-head h4 { font-size: 20px; }
@media (max-width: 399px) { .sd-head { flex-direction: column; align-items: flex-start; } }
.sv-en { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--muted); }
.sd-how { display: grid; gap: 8px; margin-top: 16px; }
.sd-how li { display: flex; gap: 8px; font-size: 15px; font-weight: 600; color: var(--ink); }
.sd-how svg { flex: none; margin-top: 3px; color: var(--accent-ink); }
.sdg-values { display: grid; gap: 16px; }
.sdg-values li { display: flex; gap: 16px; }
.sdg-values .sdg-tile { flex: none; width: 88px; }

/* ---------- membership ---------- */
.membership-sec { background: var(--mist); }
.plans { display: grid; grid-auto-flow: column; grid-auto-columns: min(84%, 360px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 16px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.plan { scroll-snap-align: start; }
@media (min-width: 900px) { .plans { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); gap: 24px; overflow: visible; margin-inline: 0; padding: 0; } }
.plan { position: relative; display: flex; flex-direction: column; padding: 36px 28px 28px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.plan.is-featured { background: var(--navy); color: var(--on-dark-2); border-color: var(--navy); box-shadow: var(--shadow-lg); }
.plan-flag { position: absolute; top: 20px; right: 20px; padding: 5px 12px; border-radius: 999px; background: var(--accent); color: var(--navy); font-size: 13px; font-weight: 700; }
.plan-name { font-size: 28px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.is-featured .plan-name, .is-featured .plan-price { color: var(--white); }
.plan-size { margin-top: 4px; font-size: 15px; font-weight: 600; color: var(--ink); }
.is-featured .plan-size { color: var(--accent); }
.plan-price { margin-top: 24px; font-size: 24px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.plan-desc { margin-top: 8px; font-size: 15px; }
.plan-items { display: grid; gap: 10px; margin: 24px 0 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.is-featured .plan-items { border-color: var(--line-dark); }
.plan-items li { display: flex; gap: 10px; font-size: 15px; }
.plan-items svg { flex: none; margin-top: 3px; color: var(--accent-ink); }
.is-featured .plan-items svg { color: var(--accent); }
.plan .btn { margin-top: auto; }

/* ---------- posters / news ---------- */
.poster-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
@media (min-width: 768px) { .poster-grid { grid-template-columns: repeat(3, 1fr); gap: 40px 24px; } }
@media (min-width: 1100px) { .poster-grid:not(.three):not(.mini) { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 559px) { .poster-grid.three > :nth-child(n+3), .book-grid.three > :nth-child(n+3) { display: none; } }
@media (min-width: 560px) { .poster-grid.three { grid-template-columns: repeat(3, 1fr); } }
.poster-grid.mini { grid-template-columns: repeat(3, 1fr); gap: 16px 12px; margin-top: 16px; }
.poster-grid.mini .pc-type, .poster-grid.mini .pc-meta { display: none; }
.poster-grid.mini .pc-title { font-size: 14px; }
.poster-card { display: flex; flex-direction: column; width: 100%; padding: 0; border: 0; background: none; text-align: left; color: inherit; }
.pc-img { display: block; aspect-ratio: 640 / 905; border-radius: 14px; overflow: hidden; background: var(--mist); box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s; }
.pc-img img { width: 100%; height: 100%; object-fit: cover; }
a.poster-card:hover .pc-img { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pc-body { display: flex; flex-direction: column; gap: 4px; margin-top: 14px; }
.pc-type { font-size: 13px; font-weight: 700; color: var(--muted); }
.pc-title { font-size: 16px; font-weight: 700; line-height: 1.45; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-meta { font-size: 14px; color: var(--muted); }
@media (min-width: 768px) { .pc-title { font-size: 17px; } }
.pg-item:target .pc-img { box-shadow: 0 0 0 3px var(--white), 0 0 0 6px var(--accent-ink); }

.news-now { position: relative; z-index: 2; margin-top: -40px; padding-block: 0 24px; }
.now-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding: 28px clamp(24px, 4vw, 48px); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-lg); }
.now-card > div { flex: 1 1 420px; }
.now-card .eyebrow { margin-bottom: 8px; }
.now-card p:not(.eyebrow) { margin-top: 8px; color: var(--ink-2); }

.archive-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { min-height: 44px; padding: 0 18px; border: 1.5px solid var(--line-2); border-radius: 999px; background: var(--white); font-size: 15px; font-weight: 600; color: var(--ink-2); transition: background-color .2s, color .2s, border-color .2s; }
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed='true'] { background: var(--navy); border-color: var(--navy); color: var(--white); }
/* On phones the filter chips stay on one swipeable row instead of stacking. */
@media (max-width: 767px) {
  .filters { flex-wrap: nowrap; width: calc(100% + var(--gutter) * 2); margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter); overflow-x: auto; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filters button { flex: none; padding: 0 16px; }
}
.search { display: flex; align-items: center; flex: 1 1 260px; max-width: 360px; min-height: 52px; padding-left: 20px; border: 1.5px solid var(--line-2); border-radius: 999px; background: var(--white); }
.search:focus-within { border-color: var(--accent-ink); box-shadow: 0 0 0 4px var(--accent-soft); }
.search input { flex: 1; min-width: 0; min-height: 48px; border: 0; background: transparent; font-size: 16px; outline: none; }
.search button { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 0; background: none; color: var(--ink); }
.select-wrap select { min-height: 48px; padding: 0 44px 0 18px; border: 1.5px solid var(--line-2); border-radius: 999px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%230F1720' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center; font-size: 15px; font-weight: 600; -webkit-appearance: none; appearance: none; }
.result-count { margin: 24px 0; font-size: 15px; font-weight: 600; color: var(--muted); }
.empty { padding: 48px 0; text-align: center; }
.empty p { margin-bottom: 16px; font-size: 18px; color: var(--ink); }

/* ---------- CTA band + footer ---------- */
.cta-band { position: relative; overflow: hidden; padding-block: clamp(88px, 10vw, 140px); background: var(--navy); color: var(--on-dark-2); text-align: center; }
.cta-band::before { content: ''; position: absolute; left: 50%; top: 100%; width: 900px; height: 900px; margin: -450px 0 0 -450px; border-radius: 50%; background: radial-gradient(circle, rgba(108, 195, 210, .28), transparent 62%); pointer-events: none; }
.cta-in { position: relative; display: flex; flex-direction: column; align-items: center; }
.cta-band .h2 { color: var(--white); }
.cta-band .lead { margin-top: 16px; color: var(--on-dark-2); }
.cta-band .eyebrow { color: var(--white); }
.site-footer { padding: 72px 0 calc(32px + env(safe-area-inset-bottom)); background: var(--navy-deep); color: var(--on-dark-2); font-size: 15px; }
.foot-top { display: grid; gap: 48px; }
@media (min-width: 1024px) { .foot-top { grid-template-columns: 1fr 2fr; gap: 64px; } }
.foot-brand img { height: 46px; width: auto; }
.foot-brand p { margin-top: 20px; line-height: 1.7; }
.foot-mail { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 12px; font-weight: 600; color: var(--white); word-break: break-all; }
.foot-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
@media (min-width: 768px) { .foot-cols { grid-template-columns: repeat(4, 1fr); } }
.foot-h { margin-bottom: 10px; font-size: 15px; font-weight: 700; color: var(--white); }
.foot-cols a { display: inline-flex; align-items: center; min-height: 40px; color: var(--on-dark-2); transition: color .2s; }
.foot-cols a:hover, .foot-bottom a:hover { color: var(--white); }
.foot-biz { margin-top: 48px; font-size: 14px; color: var(--on-dark-3); }
/* One fact per line on phones, so the address never breaks mid-way. */
@media (max-width: 767px) { .foot-biz span { display: block; } .foot-biz .fb-sep { display: none; } }
.foot-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: 14px; color: var(--on-dark-3); }
.foot-bottom ul { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot-bottom a { display: inline-flex; align-items: center; min-height: 40px; }
.foot-bottom li:first-child a { font-weight: 700; color: var(--on-dark-2); }

/* ---------- about ---------- */
.intro-grid { display: grid; gap: 24px 64px; }
@media (min-width: 1024px) { .intro-grid { grid-template-columns: 1fr 1.4fr; } }
.intro-text p + p { margin-top: 20px; }
.name-meaning { display: grid; gap: 0; margin-top: 32px; border-top: 1px solid var(--line); }
.name-meaning div { display: grid; gap: 4px 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 560px) { .name-meaning div { grid-template-columns: 120px 1fr; align-items: baseline; } }
.name-meaning dt { font-size: 20px; font-weight: 800; letter-spacing: .02em; color: var(--ink); }
.mv-grid { display: grid; gap: 20px; margin-top: clamp(56px, 6vw, 88px); }
@media (min-width: 900px) { .mv-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }
.mv-card { padding: clamp(28px, 4vw, 48px); border-radius: var(--radius); background: var(--paper); }
.mv-card h3 { font-size: clamp(21px, 2.3vw, 28px); line-height: 1.45; letter-spacing: -.025em; }
.mv-card p:not(.eyebrow) { margin-top: 16px; }
.mv-card.dark { background: var(--navy); color: var(--on-dark-2); }
.mv-card.dark h3 { color: var(--white); }
.mv-card.dark .eyebrow { color: var(--white); }
/* core values: four words on one hairline row */
.values { margin-top: clamp(56px, 6vw, 88px); }
.value-list { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--ink); }
@media (min-width: 900px) { .value-list { grid-template-columns: repeat(4, 1fr); } }
.value-list li { display: grid; align-content: start; gap: 4px; padding: 24px 20px 26px 0; border-bottom: 1px solid var(--line-2); }
.vl-en { font-family: var(--serif-en); font-size: clamp(26px, 2.6vw, 34px); font-weight: 400; line-height: 1.1; color: var(--ink); }
.value-list b { margin-top: 6px; font-size: 18px; color: var(--ink); }
.value-list li > span:last-child { font-size: 15px; line-height: 1.6; color: var(--muted); }
/* a quiet hand-off to the next page in the story */
.next-link { margin-top: clamp(48px, 5vw, 72px); }
.next-link a { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 28px clamp(24px, 3vw, 40px); border-radius: var(--radius); background: var(--paper); transition: background .25s; }
.next-link a:hover { background: var(--mist); }
.next-link span { display: grid; gap: 4px; font-size: clamp(20px, 2vw, 24px); font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.next-link small { font-size: 13px; font-weight: 700; color: var(--muted); }
.next-link b { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 7px; }
/* philosophy page: the five things the education aims to grow, and the change it hopes for */
.comp-grid { display: grid; gap: 40px 72px; }
@media (min-width: 1024px) { .comp-grid { grid-template-columns: 1fr 1.15fr; align-items: start; } }
.comp-grid .lead { margin-top: 20px; }
.comp-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 0; margin-top: 32px; }
.comp-flow span { display: inline-flex; align-items: center; font-size: 17px; font-weight: 800; color: var(--ink); }
.comp-flow i { width: 28px; height: 1px; margin: 0 10px; background: var(--ink); opacity: .35; }
@media (max-width: 599px) { .comp-flow i { width: 12px; margin: 0 6px; } .comp-flow span { font-size: 16px; } }
.comp-flow span:last-child { padding: 4px 14px; border-radius: 999px; background: var(--ink); color: var(--accent); }
.comp-list { border-top: 1px solid var(--ink); }
.comp-list li { display: grid; grid-template-columns: 44px 1fr; gap: 2px 16px; padding: 22px 0; border-bottom: 1px solid var(--line-2); }
.cl-no { grid-row: span 3; padding-top: 2px; font-family: var(--serif-en); font-size: 22px; font-variant-numeric: lining-nums; color: var(--ink); }
.cl-en { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.comp-list b { font-size: 20px; letter-spacing: -.02em; color: var(--ink); }
.cl-desc { font-size: 15px; color: var(--ink-2); }
.field-cards { display: grid; gap: 20px; }
@media (min-width: 640px) { .field-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .field-cards { grid-template-columns: repeat(4, 1fr); } }
.field-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--white); border: 1px solid var(--line); }
.field-card figure { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--navy-3); }
.field-card img { width: 100%; height: 100%; object-fit: cover; }
.field-card figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 14px 10px; background: linear-gradient(transparent, rgba(10, 10, 10, .8)); font-size: 12px; line-height: 1.4; color: rgba(255, 255, 255, .88); }
.fc-body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.fc-en { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.fc-body h3 { font-size: 26px; font-weight: 800; letter-spacing: -.03em; margin-top: 4px; }
.fc-body > p:not(.fc-en):not(.fc-books) { margin-top: 12px; font-size: 15px; }
.fc-body > .fc-line { margin-top: 6px; font-size: 16px; font-weight: 700; color: var(--ink); }
.fc-books { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: auto; padding-top: 20px; font-size: 13px; font-weight: 700; color: var(--muted); }
.fc-books a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 999px; background: var(--tint); color: var(--navy); font-size: 14px; }
.fc-books a:hover { background: var(--accent-soft); }
.biz-list { border-top: 1px solid var(--line-2); }
.biz-list li { border-bottom: 1px solid var(--line-2); }
.biz-list a { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 4px 16px; min-height: 96px; padding: 20px 8px; transition: background-color .2s, padding .3s var(--ease); }
.biz-list a:hover { background: var(--white); padding-inline: 20px; }
.biz-no { font-size: 22px; font-family: var(--serif-en); font-weight: 400; font-variant-numeric: lining-nums; color: var(--ink); grid-row: span 2; }
.biz-name { font-size: 20px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.biz-desc { grid-column: 2; font-size: 15px; color: var(--muted); }
.biz-list svg { grid-column: 3; grid-row: 1 / span 2; color: var(--muted); }
@media (min-width: 900px) {
  .biz-list a { grid-template-columns: 72px 1fr 1.2fr auto; }
  .biz-no, .biz-desc, .biz-list svg { grid-row: auto; grid-column: auto; }
  .biz-name { font-size: 24px; }
  .biz-desc { font-size: 16px; }
}
/* Global network: a list on phones, a row of linked cards on wide screens. */
.net-sec { position: relative; overflow: hidden; background: radial-gradient(80% 90% at 50% 0%, var(--navy-3) 0%, var(--navy) 62%); color: var(--on-dark-2); }
.net-sec .eyebrow { color: var(--white); }
.net-sec .h2 { color: var(--white); }
.net-sec .lead { color: var(--on-dark-2); }
.net-cities { position: relative; display: grid; }
.net-cities li { display: grid; grid-template-columns: 44px 1fr auto; align-items: baseline; gap: 2px 12px; padding: 20px 4px; border-top: 1px solid var(--line-dark); }
.net-cities li:last-child { border-bottom: 1px solid var(--line-dark); }
.nc-no { font-size: 16px; font-weight: 300; color: var(--accent); font-variant-numeric: tabular-nums; }
.nc-city { font-size: 22px; font-weight: 700; letter-spacing: -.01em; color: var(--white); }
.nc-country { grid-column: 2; font-size: 14px; color: var(--on-dark-3); }
.nc-time { grid-column: 3; grid-row: 1 / span 2; align-self: center; display: flex; flex-direction: column; align-items: flex-end; font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--on-dark-2); }
.nc-time small { font-size: 12px; font-weight: 500; color: var(--on-dark-3); }
@media (min-width: 900px) {
  .net-cities { grid-template-columns: repeat(5, 1fr); gap: 20px; }
  .net-cities::before { content: ''; position: absolute; top: 50%; left: 6%; right: 6%; border-top: 1px dashed rgba(108, 195, 210, .45); }
  .net-cities li { position: relative; grid-template-columns: 1fr; justify-items: center; gap: 6px; padding: 36px 16px 30px; border: 1px solid var(--line-dark); border-radius: 22px; background: linear-gradient(180deg, var(--navy-2), var(--navy)); text-align: center; transition: border-color .3s, transform .3s var(--ease); }
  .net-cities li:last-child { border-bottom: 1px solid var(--line-dark); }
  .net-cities li:hover { border-color: rgba(108, 195, 210, .6); transform: translateY(-4px); }
  .nc-no { margin-bottom: 10px; font-size: 40px; line-height: 1; letter-spacing: -.03em; }
  .nc-city { font-size: 24px; }
  .nc-country, .nc-time { grid-column: auto; grid-row: auto; }
  .nc-time { align-items: center; gap: 2px; margin-top: 14px; padding-top: 14px; width: 100%; border-top: 1px solid var(--line-dark); font-size: 14px; }
}

.partner-types { display: grid; gap: 20px; }
@media (min-width: 900px) { .partner-types { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.partner-types li { display: flex; flex-direction: column; padding: 32px 28px; border-radius: var(--radius); background: var(--white); }
.pt-no { font-size: 40px; line-height: 1; font-family: var(--serif-en); font-weight: 400; font-variant-numeric: lining-nums; letter-spacing: -.03em; color: var(--ink); }
.partner-types h3 { margin-top: 20px; font-size: 20px; }
.partner-types p { margin: 10px 0 16px; font-size: 15px; }
.partner-types .more-link { margin-top: auto; }

/* ---------- programs page ---------- */
.prog-intro { max-width: 46em; margin-bottom: 48px; }
.prog-intro .lead { margin-top: 20px; }
/* programmes page: the whole line-up as a numbered bar under the hero */
.prog-index a span { margin-right: 8px; font-family: var(--serif-en); font-size: 16px; font-variant-numeric: lining-nums; color: var(--ink); }
.pr-more { margin-top: 8px; }
.prog-row { display: grid; gap: 32px 72px; }
@media (min-width: 1024px) { .prog-row { grid-template-columns: .9fr 1.4fr; } .pr-head { position: sticky; top: calc(var(--hh) + 40px); align-self: start; } }
.pr-index { display: block; margin-bottom: 20px; font-size: clamp(56px, 7vw, 96px); line-height: 1; font-family: var(--serif-en); font-weight: 400; font-variant-numeric: lining-nums; letter-spacing: -.04em; color: var(--ink); }
.pr-line { margin-top: 16px; font-size: 18px; font-weight: 600; color: var(--ink-2); }
.checks { display: grid; gap: 12px; margin-top: 28px; }
.checks li { display: flex; gap: 12px; font-size: 17px; font-weight: 600; color: var(--ink); }
.checks svg { flex: none; margin-top: 2px; color: var(--accent-ink); }
.pr-body .checks { padding: 24px; border-radius: 20px; background: var(--mist); }
.tint .pr-body .checks { background: var(--white); }
.pr-sub { margin-top: 40px; font-size: 15px; font-weight: 700; color: var(--muted); }

.pace-hero { position: relative; overflow: hidden; padding: calc(var(--hh) + clamp(40px, 6vw, 88px)) 0 clamp(64px, 7vw, 104px); background: radial-gradient(90% 90% at 90% 10%, var(--navy-3), var(--navy) 60%); color: var(--on-dark-2); }
.pace-hero-in { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .pace-hero-in { grid-template-columns: 1.15fr 1fr; gap: 64px; } }
.pace-hero .display { color: var(--white); font-size: clamp(36px, 5vw, 66px); }
.pace-hero .eyebrow { color: var(--white); }
.hero-sub2 { margin-top: 16px; font-size: clamp(19px, 2vw, 23px); font-weight: 700; letter-spacing: -.02em; color: var(--accent); }
.pace-body { display: grid; gap: 8px; margin-top: 28px; max-width: 34em; }
.pace-thesis { margin-top: 24px; padding-left: 18px; border-left: 3px solid var(--accent); font-size: 17px; font-weight: 700; line-height: 1.7; color: var(--white); max-width: 34em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chips li { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-dark); background: rgba(255, 255, 255, .05); font-size: 14px; font-weight: 600; color: var(--on-dark); }
.pace-art { max-width: 520px; width: 100%; margin-inline: auto; }
.pace-path { width: 100%; height: auto; overflow: visible; }
.pp-grid line { stroke: rgba(255, 255, 255, .07); stroke-width: 1; }
.pp-axis { stroke: rgba(255, 255, 255, .3); stroke-width: 1.5; }
.pp-weeks text { fill: var(--on-dark-3); font-size: 13px; font-family: var(--sans); }
.pp-line { fill: none; stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 2.4s var(--ease) .3s forwards; }
.pp-line.g { stroke: var(--g-line); } .pp-line.v { stroke: var(--v-line); animation-delay: .5s; } .pp-line.r { stroke: var(--r-line); animation-delay: .7s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.pp-dot.g { fill: var(--g-line); } .pp-dot.v { fill: var(--v-line); } .pp-dot.r { fill: var(--r-line); }
.pp-labels text { font-size: 16px; font-weight: 700; }
.pp-labels .g { fill: var(--g-line); } .pp-labels .v { fill: var(--v-line); } .pp-labels .r { fill: var(--r-line); }
.pp-start-ring { fill: none; stroke: var(--accent); stroke-width: 1.5; opacity: .6; }
.pp-start { fill: var(--accent); }
.pp-start-label { fill: var(--on-dark-2); font-size: 12px; font-weight: 700; letter-spacing: .16em; font-family: var(--sans); }

.process { display: grid; border-top: 1px solid var(--line); }
.process li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.process li.final { margin-top: -1px; padding-inline: 16px; border-radius: 16px; border: 0; background: var(--tint); }
.pr-no { font-size: 26px; line-height: 1.2; font-family: var(--serif-en); font-weight: 400; font-variant-numeric: lining-nums; color: var(--ink); }
.process h3 { font-size: 18px; }
.process p { margin-top: 4px; font-size: 15px; color: var(--muted); }
@media (min-width: 900px) {
  .process:not(.horizontal) { grid-template-columns: repeat(3, 1fr); column-gap: 24px; border-top: 0; }
  .process:not(.horizontal) li { border-top: 1px solid var(--line); }
  .process:not(.horizontal) li.final { border-top: 0; }
}
.process.horizontal { border: 0; gap: 16px; }
@media (min-width: 768px) { .process.horizontal { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .process.horizontal { grid-template-columns: repeat(4, 1fr); } }
.process.horizontal li { grid-template-columns: 1fr; gap: 12px; padding: 24px; border: 0; border-radius: 20px; background: var(--white); }
.facts { display: grid; gap: 16px; margin-top: 40px; }
@media (min-width: 900px) { .facts { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.facts li { display: flex; flex-direction: column; gap: 4px; padding: 24px; border-radius: 20px; background: var(--mist); }
.facts svg { margin-bottom: 12px; color: var(--accent-ink); }
.fact-k { font-size: 14px; font-weight: 700; color: var(--muted); }
.fact-v { font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.fact-s { font-size: 14px; color: var(--muted); }
.fact-v small { margin-left: 6px; font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--muted); }

/* Fee (components fee()): label, then the price with its monthly figure, then the early-bird price. */
.fee { display: grid; gap: 4px; }
.fee dt { font-size: 13px; font-weight: 700; color: var(--muted); }
.fee-v { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.fee-v b { font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.fee-v span, .fee-s { font-size: 14px; color: var(--muted); }
.fee-s b { font-weight: 700; color: var(--accent-ink); }
.fee.is-ask .fee-v b { font-size: 16px; font-weight: 600; line-height: 1.55; }
/* Programs page: a quiet bordered strip above the buttons; under the PACE lab cards it is centred. */
.pr-fee { margin-top: 32px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 16px; }
.pr-fee .fee.is-ask { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.pr-fee.center { width: fit-content; max-width: 100%; margin: 40px auto 0; text-align: center; }
.pr-fee.center .fee-v { justify-content: center; }

/* lab detail pages */
.lab-hero { position: relative; overflow: hidden; padding: calc(var(--hh) + clamp(40px, 6vw, 88px)) 0 clamp(56px, 7vw, 96px); background: radial-gradient(70% 100% at 100% 0%, rgba(108, 195, 210, .34), transparent 62%), var(--navy); color: var(--on-dark-2); }
.lab-hero .display { color: var(--white); font-weight: 800; letter-spacing: -.045em; }
.pill-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 20px; }
.pill { display: inline-flex; align-items: center; min-height: 30px; padding: 0 14px; border-radius: 999px; background: rgba(255, 255, 255, .14); color: var(--white); font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.lab-label { font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--on-dark-2); }
.d-sub { margin-top: 12px; font-size: clamp(18px, 2vw, 22px); font-weight: 700; color: var(--lab-line); }
.d-hook { margin-top: 32px; font-size: clamp(21px, 2.5vw, 30px); font-weight: 700; line-height: 1.5; letter-spacing: -.025em; color: var(--white); }
.lab-hero .lead { margin-top: 16px; max-width: 38em; color: var(--on-dark-2); }
.lab-subnav { background: var(--white); border-bottom: 1px solid var(--line); }
.lab-subnav .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-block: 10px; }
@media (min-width: 900px) { .lab-subnav { position: sticky; top: var(--hh); z-index: 50; } }
.switch { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--mist); overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.switch a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; font-size: 15px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.switch a:hover { color: var(--ink); }
.switch a[aria-current] { background: var(--lab, var(--navy)); color: var(--white); }
.sw-growth[aria-current] { background: var(--g); } .sw-vision[aria-current] { background: var(--v); } .sw-relation[aria-current] { background: var(--r); }
.stepnav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.stepnav a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: 12px; font-size: 15px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.stepnav b { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--mist); font-size: 13px; color: var(--ink-2); }
.stepnav a.is-active { color: var(--lab); }
@media (max-width: 559px) { .stepnav a { padding: 0 6px; font-size: 14px; } }
.stepnav a.is-active b { background: var(--lab); color: var(--white); }
.rows { display: grid; }
.row { display: grid; gap: 20px 64px; padding-block: 40px; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 900px) { .row { grid-template-columns: .8fr 1.6fr; padding-block: 56px; } }
.row-label span { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 800; letter-spacing: .14em; color: var(--lab); }
.row-big { font-size: clamp(21px, 2.3vw, 28px); font-weight: 700; line-height: 1.55; letter-spacing: -.025em; color: var(--ink); }
.exp { display: grid; gap: 12px; }
@media (min-width: 640px) { .exp { grid-template-columns: 1fr 1fr; } }
.exp li { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 18px; background: var(--lab-tint); }
.exp b { font-size: 22px; font-family: var(--serif-en); font-weight: 400; font-variant-numeric: lining-nums; color: var(--ink); }
.exp span { font-size: 17px; font-weight: 700; color: var(--ink); }
.row-body .checks { margin-top: 0; }
.row-body .checks svg { color: var(--lab); }
.weekbar { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin: 32px 0 24px; }
.weekbar div { font-size: 12px; font-weight: 700; color: var(--muted); text-align: center; }
.weekbar i { display: block; height: 8px; margin-bottom: 8px; border-radius: 4px; background: var(--lab); }
.weekbar div:nth-child(1) i { opacity: .25; } .weekbar div:nth-child(2) i { opacity: .4; } .weekbar div:nth-child(3) i { opacity: .55; } .weekbar div:nth-child(4) i { opacity: .7; } .weekbar div:nth-child(5) i { opacity: .85; }
@media (max-width: 399px) { .weekbar div { font-size: 0; } .weekbar i { margin-bottom: 0; } }
.modules { display: grid; gap: 12px; }
.modules li { display: grid; gap: 12px 32px; padding: 24px; border-radius: 20px; background: var(--white); }
@media (min-width: 768px) { .modules li { grid-template-columns: 120px 1fr; padding: 32px; } }
.m-no b { display: block; font-size: 36px; line-height: 1; font-family: var(--serif-en); font-weight: 400; font-variant-numeric: lining-nums; letter-spacing: -.03em; color: var(--ink); }
.m-no span { display: block; margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--muted); }
@media (max-width: 767px) { .m-no { display: flex; align-items: baseline; gap: 12px; } .m-no span { margin-top: 0; } }
.m-en { font-size: 12px; font-weight: 800; letter-spacing: .14em; color: var(--lab); }
.m-body h3 { margin-top: 4px; font-size: 21px; }
.m-desc { margin-top: 10px; }
.m-keys { margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--muted); }
.c-foot { display: grid; gap: 16px; margin-top: 24px; }
@media (min-width: 900px) { .c-foot { grid-template-columns: 1fr 1fr; gap: 20px; } }
.c-box { padding: 32px 28px; border-radius: 20px; background: var(--white); }
.c-box .eyebrow { color: var(--lab); margin-bottom: 8px; }
.c-box h3 { font-size: 20px; margin-bottom: 20px; }
.tool-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tool-chips li { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 999px; background: var(--lab-tint); font-size: 15px; font-weight: 700; color: var(--lab-deep); }
.finals { display: grid; gap: 16px; }
.finals li { display: flex; gap: 16px; align-items: center; }
.finals svg { flex: none; color: var(--lab); }
.finals b { display: block; font-size: 17px; color: var(--ink); }
.finals span { font-size: 14px; color: var(--muted); }
.next-band { padding-block: clamp(80px, 9vw, 120px); background: var(--navy); color: var(--on-dark-2); }
.next-band .h2 { color: var(--white); }
.next-band .eyebrow { color: var(--white); }
.next-band .lead { margin-top: 16px; color: var(--on-dark-2); }
.next-in { display: grid; gap: 8px 48px; align-items: end; }
@media (min-width: 1024px) { .next-in { grid-template-columns: 1.4fr auto; } .next-in .btn-row { margin-top: 0; } }
.other-labs { display: grid; gap: 16px; margin-top: 56px; }
@media (min-width: 768px) { .other-labs { grid-template-columns: 1fr 1fr; gap: 20px; } }
.ol-card { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 24px 72px 24px 24px; border-radius: 20px; border: 1px solid var(--line-dark); background: rgba(255, 255, 255, .04); transition: background-color .2s, border-color .2s; }
.ol-card:hover { background: rgba(255, 255, 255, .08); border-color: var(--lab-line); }
.ol-card span { font-size: 13px; font-weight: 700; color: var(--on-dark-3); }
.ol-card b { font-size: 24px; font-weight: 800; letter-spacing: -.03em; color: var(--white); }
.ol-card em { font-style: normal; font-size: 15px; font-weight: 600; color: var(--lab-line); }
.ol-card svg { position: absolute; right: 24px; top: 50%; margin-top: -10px; color: var(--lab-line); }

/* ---------- knowledge ---------- */
.book-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
@media (min-width: 768px) { .book-grid { grid-template-columns: repeat(3, 1fr); gap: 40px 24px; } }
@media (min-width: 1100px) { .book-grid:not(.three) { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 560px) { .book-grid.three { grid-template-columns: repeat(3, 1fr); } }
.book-card a { display: flex; flex-direction: column; }
.bk-img { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: var(--navy-3); }
.bk-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.book-card a:hover .bk-img img { transform: scale(1.05); }
.bk-theme { position: absolute; left: 10px; bottom: 10px; padding: 4px 11px; border-radius: 999px; background: rgba(255, 255, 255, .92); font-size: 13px; font-weight: 700; color: var(--navy); }
.bk-body { display: flex; flex-direction: column; margin-top: 14px; }
.bk-field { font-size: 13px; font-weight: 700; color: var(--muted); }
.bk-title { margin-top: 2px; font-size: clamp(18px, 1.9vw, 22px); font-weight: 700; line-height: 1.35; letter-spacing: -.025em; color: var(--ink); }
.bk-en { font-size: 14px; font-weight: 500; color: var(--muted); }
.bk-author { margin-top: 6px; font-size: 14px; color: var(--muted); }
.soon-grid { display: grid; gap: 32px 64px; }
@media (min-width: 900px) { .soon-grid { grid-template-columns: 1fr 1.3fr; align-items: center; } }
.soon-list { border-top: 1px solid var(--line); }
.soon-list li { display: grid; gap: 4px 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 560px) { .soon-list li { grid-template-columns: 160px 1fr auto; align-items: center; } .soon-list li::after { content: '준비 중'; padding: 4px 12px; border-radius: 999px; background: var(--mist); font-size: 13px; font-weight: 700; color: var(--muted); } }
.soon-list b { font-size: 18px; color: var(--ink); }
.soon-list span { color: var(--muted); }

.classic-hero { position: relative; overflow: hidden; min-height: min(720px, 86svh); display: flex; align-items: flex-end; background: var(--navy); color: var(--on-dark-2); }
.ch-art { position: absolute; inset: 0; }
.ch-art img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.ch-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 10, 10, .55) 0%, rgba(10, 10, 10, .35) 35%, rgba(10, 10, 10, .96) 100%); }
.ch-in { position: relative; padding-top: calc(var(--hh) + 80px); padding-bottom: clamp(48px, 6vw, 80px); }
.classic-hero .eyebrow { color: var(--white); }
.classic-hero .display { color: var(--white); font-size: clamp(42px, 6.6vw, 88px); letter-spacing: -.045em; }
.ch-en { margin-top: 8px; font-size: clamp(26px, 2.8vw, 40px); line-height: 1.2; color: var(--accent); }
.ch-author { margin-top: 20px; font-size: 16px; font-weight: 600; color: var(--white); }
.ch-author span { font-weight: 400; color: var(--on-dark-2); }
.ch-line { margin-top: 8px; font-size: clamp(17px, 1.9vw, 21px); font-weight: 500; color: var(--on-dark-2); }
.classic-body { display: grid; gap: 48px 72px; padding-block: clamp(64px, 7vw, 104px); }
@media (min-width: 1024px) { .classic-body { grid-template-columns: 1.6fr .9fr; } .cb-side { position: sticky; top: calc(var(--hh) + 32px); align-self: start; } }
.cb-main { display: grid; gap: 56px; }
.cb-main .h3 { margin-bottom: 16px; }
.cb-main section > p + p { margin-top: 16px; }
.cb-main p { font-size: 17px; line-height: 1.9; }
.cb-question blockquote { padding-left: 24px; border-left: 3px solid var(--accent); font-size: clamp(23px, 2.7vw, 32px); font-weight: 700; line-height: 1.5; letter-spacing: -.03em; color: var(--ink); }
.think { display: grid; gap: 12px; counter-reset: th; }
.think li { counter-increment: th; display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 18px 20px; border-radius: 16px; background: var(--mist); font-weight: 600; color: var(--ink); }
.think li::before { content: counter(th); display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: var(--white); font-size: 14px; }
.cb-audio { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; padding: 24px; border-radius: 20px; background: var(--tint); }
.cb-audio > div:nth-child(2) { flex: 1 1 200px; }
.cba-icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: var(--navy); }
.cb-main .cba-k { font-size: 13px; font-weight: 700; color: var(--muted); line-height: 1.5; }
.cb-main .cba-t { font-size: 17px; font-weight: 700; color: var(--ink); line-height: 1.5; }
.cb-main .cba-s { font-size: 14px; color: var(--muted); line-height: 1.5; }
.cba-progress { flex: 1 1 100%; height: 4px; border-radius: 2px; overflow: hidden; background: rgba(10, 10, 10, .08); }
.cba-script { flex: 1 1 100%; }
.cba-script summary { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 700; color: var(--ink); cursor: pointer; }
.cb-main .cba-script p { margin-top: 8px; font-size: 15px; line-height: 1.8; color: var(--ink-2); }
.cb-meta { border-top: 2px solid var(--ink); }
.cb-meta div { display: grid; grid-template-columns: 88px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.cb-meta dt { font-weight: 700; color: var(--muted); }
.cb-meta dd { color: var(--ink); }
.cb-lab { position: relative; display: flex; flex-direction: column; gap: 2px; margin-top: 24px; padding: 24px 56px 24px 24px; border-radius: 20px; background: radial-gradient(120% 140% at 100% 0%, var(--lab) 0%, var(--lab-deep) 60%); color: var(--white); transition: transform .2s var(--ease); }
.cb-lab:hover { transform: translateY(-2px); }
.cb-lab span { font-size: 13px; font-weight: 700; }
.cb-lab b { font-size: 22px; font-weight: 800; letter-spacing: -.03em; color: var(--white); }
.cb-lab em { font-style: normal; font-size: 15px; color: var(--white); opacity: .9; }
.cb-lab svg { position: absolute; right: 22px; top: 50%; margin-top: -9px; color: var(--white); }
.cb-also { margin-top: 8px; }
.cb-fig figcaption { margin-top: 20px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-2); }
.pager a { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; font-weight: 700; color: var(--ink); }
.pager a:last-child { margin-left: auto; text-align: right; }
.pager span { display: flex; flex-direction: column; }
.pager small { font-size: 13px; font-weight: 600; color: var(--muted); }

.why { display: grid; gap: 20px; }
@media (min-width: 900px) { .why { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.why li { padding: 32px 28px; border-radius: var(--radius); background: var(--paper); }
.why-no { font-size: 44px; line-height: 1; font-family: var(--serif-en); font-weight: 400; font-variant-numeric: lining-nums; letter-spacing: -.03em; color: var(--ink); }
.why h3 { margin-top: 20px; font-size: 21px; }
.why p { margin-top: 10px; font-size: 16px; }
.includes { display: grid; gap: 16px; }
@media (min-width: 640px) { .includes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .includes { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.includes li { display: flex; flex-direction: column; gap: 12px; padding: 28px 24px; border-radius: 20px; border: 1px solid var(--line); }
.includes svg { align-self: flex-start; color: var(--accent-ink); height: 40px; width: auto; }
.includes h3 { font-size: 19px; }
.includes p { font-size: 15px; color: var(--muted); }
.faq-wrap { display: grid; gap: 0 72px; }
@media (min-width: 1024px) { .faq-wrap { grid-template-columns: .8fr 1.6fr; } }
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; padding: 16px 0; font-size: 18px; font-weight: 700; color: var(--ink); list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 14px; height: 14px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-4px); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-4px); }
.faq details p { padding: 0 0 24px; color: var(--ink-2); }
.faq details a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* ---------- contact ---------- */
.contact-grid { display: grid; gap: 40px 72px; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: .85fr 1.5fr; align-items: start; } .contact-side { position: sticky; top: calc(var(--hh) + 40px); } }
.contact-types { margin-top: 20px; border-top: 1px solid var(--line); }
.contact-types li { display: flex; flex-direction: column; gap: 2px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-types b { font-size: 17px; color: var(--ink); }
.contact-types span { font-size: 15px; color: var(--muted); }
.contact-mail { margin-top: 28px; padding: 24px; border-radius: 20px; background: var(--mist); }
.contact-mail p { font-size: 14px; font-weight: 700; color: var(--muted); }
.contact-mail a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; color: var(--ink); word-break: break-all; }
.contact-form { display: grid; gap: 20px; padding: clamp(24px, 4vw, 48px); border-radius: 28px; border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--ink); }
.req, .opt { padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; }
.req { background: var(--accent-soft); color: var(--accent-ink); }
.opt { background: var(--mist); color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 0 16px; border: 1.5px solid var(--line-2); border-radius: 14px; background: var(--white); font-size: 16px; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.field textarea { padding: 14px 16px; line-height: 1.7; resize: vertical; }
.field select { padding-right: 44px; -webkit-appearance: none; appearance: none; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%230F1720' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent-ink); box-shadow: 0 0 0 4px var(--accent-soft); }
.field [aria-invalid='true'] { border-color: #B42318; }
.field-error { font-size: 14px; font-weight: 600; color: #B42318; }
.field-row { display: grid; gap: 20px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.agree { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 1.6; cursor: pointer; }
.agree input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent-ink); }
.agree a { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.agree.is-invalid { color: #B42318; }
.hp { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; clip-path: inset(50%); }
.form-note { padding: 14px 18px; border-radius: 14px; background: var(--tint); font-size: 15px; color: var(--ink); }
.form-note.is-error { background: #FDECEC; color: #8A1C12; }
.contact-form .btn { justify-self: start; }
@media (max-width: 559px) { .contact-form .btn { justify-self: stretch; } }

/* ---------- legal / credits / 404 ---------- */
.legal { max-width: 820px; }
.legal h3 { margin: 48px 0 12px; font-size: 20px; }
.legal h3:first-child { margin-top: 0; }
.legal p, .legal li { font-size: 16px; line-height: 1.85; color: var(--ink-2); }
.legal ul { display: grid; gap: 4px; margin-top: 8px; padding-left: 20px; list-style: disc; }
.legal ol { padding-left: 20px; list-style: decimal; }
.credits { display: grid; gap: 16px; }
@media (min-width: 768px) { .credits { grid-template-columns: 1fr 1fr; } }
.credits li { display: flex; gap: 16px; align-items: center; padding: 14px; border-radius: 18px; border: 1px solid var(--line); }
.credits img { flex: none; width: 84px; height: 104px; object-fit: cover; border-radius: 10px; }
.credits div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.credits b { color: var(--ink); line-height: 1.45; }
.credits span { font-size: 14px; color: var(--muted); }
.credits a { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-size: 14px; font-weight: 700; color: var(--ink); }
.nf { display: flex; align-items: center; min-height: 100vh; min-height: 100svh; padding: calc(var(--hh) + 40px) 0 80px; background: radial-gradient(80% 80% at 50% 30%, var(--navy-3), var(--navy) 70%); color: var(--on-dark-2); text-align: center; }
.nf-in { display: flex; flex-direction: column; align-items: center; }
.nf .eyebrow { color: var(--accent); font-size: 20px; font-weight: 800; }
.nf .display { color: var(--white); }
.nf .lead { margin-top: 20px; color: var(--on-dark-2); }

/* ---------- home refresh: darker rhythm, bigger type, motion ---------- */
:root { --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.1'/%3E%3C/svg%3E"); }
:root { --grain-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E"); }
.home .h2 { font-size: clamp(28px, 4.6vw, 62px); line-height: 1.2; letter-spacing: -.04em; }


/* today: question bento */
.today.bento { gap: 16px; }
@media (min-width: 900px) { .today.bento { grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr auto; gap: 20px; } .today.bento .q-card { grid-row: 1 / span 2; } .ta-tile { min-height: 250px; } }
@media (min-width: 1100px) { .today.bento { grid-template-columns: 1.3fr 1fr .9fr; grid-template-rows: auto; } .today.bento .q-card { grid-row: auto; } .today.bento .q-card .q-question { font-size: clamp(30px, 2.7vw, 40px); } .ta-tile { min-height: 0; } }
.today.bento .q-card { min-height: clamp(360px, 40vw, 520px); flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 40px; background: var(--grain), radial-gradient(120% 90% at 0% 0%, var(--navy-3) 0%, var(--navy) 55%, var(--navy-deep) 100%); color: var(--on-dark-2); box-shadow: var(--shadow-lg); }
.today.bento .q-text { z-index: 1; max-width: none; }
.today.bento .q-date { color: var(--on-dark-3); }
.today.bento .q-badge { background: var(--accent); color: var(--navy); }
.today.bento .q-question { margin-top: 28px; font-size: clamp(30px, 4vw, 56px); line-height: 1.24; letter-spacing: -.04em; color: var(--white); }
.today.bento .q-hint { color: var(--on-dark-2); }
.today.bento .q-write { z-index: 1; align-self: flex-start; flex-direction: row; gap: 10px; width: auto; height: auto; min-height: 56px; padding: 0 26px 0 20px; border-radius: 999px; font-size: 16px; }
.tc-tile { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: 300px; border-radius: 28px; overflow: hidden; background: var(--navy-3); color: var(--white); box-shadow: var(--shadow); }
.tc-art { position: absolute; inset: 0; z-index: 0; }
.tc-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.tc-tile:hover .tc-art img { transform: scale(1.04); }
.tc-tile::after { content: ''; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(10, 10, 10, 0) 30%, rgba(10, 10, 10, .92)); }
.tc-tile-body { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 8px; padding: clamp(22px, 2.4vw, 32px); }
.tc-k { font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--accent); }
.tc-tile-title { font-size: clamp(20px, 1.9vw, 24px); font-weight: 700; line-height: 1.4; letter-spacing: -.02em; color: var(--white); }
.tc-tile .tc-go { margin-top: 4px; color: var(--accent); }
.ta-tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; min-height: 300px; padding: 26px 26px 8px; border-radius: 28px; overflow: hidden; background: var(--grain-ink), #ECEAE4; box-shadow: var(--shadow); }
.ta-play { position: relative; z-index: 1; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; padding-left: 3px; border: 0; border-radius: 50%; background: var(--navy); color: var(--accent); transition: transform .2s var(--ease); }
.ta-play:hover { transform: scale(1.06); }
.ta-play.is-playing { padding-left: 0; box-shadow: 0 0 0 6px rgba(108, 195, 210, .35); }
.ta-text { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ta-k { font-size: 13px; font-weight: 700; color: var(--muted); }
.ta-t { font-size: clamp(18px, 1.6vw, 21px); font-weight: 700; line-height: 1.4; letter-spacing: -.02em; color: var(--ink); }
.ta-listeners { display: block; align-self: center; width: 100%; max-width: 380px; margin-top: auto; }
.ta-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: var(--ink); }

/* audio: a dark gallery with duotone covers that regain colour on hover or while playing */
.home .audio-sec { background: var(--grain), radial-gradient(80% 70% at 85% 0%, var(--navy-3) 0%, var(--navy) 55%, var(--navy-deep) 100%); color: var(--on-dark-2); }
.home .audio-sec .h2, .home .audio-sec .ac-ep { color: var(--white); }
.home .audio-sec .lead { color: var(--on-dark-2); }
.home .audio-sec .eyebrow, .home .audio-sec .more-link { color: var(--white); }
.home .audio-sec .ac-meta, .home .audio-sec .audio-note { color: var(--on-dark-3); }
.home .audio-sec .c-btn { border-color: var(--line-dark); background: transparent; color: var(--white); }
.home .audio-sec .c-btn:hover { border-color: var(--white); }
.home .audio-sec .carousel-track { scrollbar-color: var(--navy-3) transparent; }

/* philosophy: the four fields as a numbered list; pinned and lit one at a time on tall wide screens */
.story-pin { position: relative; }
.story-list { margin: 32px 0 20px; border-top: 1px solid rgba(10, 10, 10, .12); }
.story-list li { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid rgba(10, 10, 10, .12); transition: opacity .45s var(--ease); }
.si-no { padding-top: 2px; font-size: 15px; font-weight: 300; color: var(--ink); font-variant-numeric: tabular-nums; }
.si-body b { display: block; font-size: 19px; line-height: 1.4; color: var(--ink); }
.si-body small { margin-left: 6px; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--muted); }
.si-body > span { display: block; margin-top: 4px; font-size: 15px; line-height: 1.65; color: var(--ink-2); }
.philosophy-sec.is-story { padding-top: 0; }
.is-story .story-track { height: 280vh; }
.is-story .story-pin { position: sticky; top: var(--hh); display: flex; align-items: center; height: calc(100vh - var(--hh)); }
.is-story .story-list li { opacity: .36; }
.is-story .story-list li.is-active { opacity: 1; }
.is-story .story-list li.is-active::before { content: ''; position: absolute; left: -20px; top: 18px; bottom: 18px; width: 3px; border-radius: 2px; background: var(--tone, var(--accent)); }
.is-story .story-list li.is-active .si-no { font-weight: 700; }

/* philosophy rings: four linked rings from mint to ink. On the pinned story each ring draws itself as its field comes up and stays
   drawn; the mint point in the middle and the APEX line come on once the loop is closed. Without the story everything is drawn. */
.rings { --rg-bg: var(--tint); width: 100%; max-width: 560px; margin-inline: auto; }
.rg-stage { position: relative; aspect-ratio: 1; container-type: inline-size; }
.rg-art { display: block; width: 100%; height: 100%; overflow: visible; }
.rg-track { fill: none; stroke: rgba(17, 17, 17, .14); stroke-width: 1; stroke-dasharray: 2 6; }
.rg-halo, .rg-stroke { fill: none; stroke-dasharray: 1 1; stroke-dashoffset: var(--off, 0); transition: stroke-dashoffset 1.2s cubic-bezier(.6, 0, .25, 1); }
.rg-halo { stroke: var(--rg-bg); stroke-width: 32; }
.rg-stroke { stroke-width: 20; stroke-linecap: butt; }
.rg-core, .rg-core-glow { fill: var(--accent); transform-box: fill-box; transform-origin: center; transition: opacity .6s var(--ease) .3s, scale .6s var(--ease) .3s; }
.rg-core-glow { opacity: .28; animation: rg-pulse 3.2s ease-in-out infinite; }
@keyframes rg-pulse { 50% { transform: scale(1.7); fill-opacity: .3; } }
.rg-labels { position: absolute; inset: 0; }
.rg-label { position: absolute; display: flex; flex-direction: column; align-items: center; translate: -50% -50%; text-align: center; color: var(--t); opacity: calc(1 - var(--off, 0) * .7); transition: opacity .5s var(--ease); }
.rg-label.rg-0 { left: 29%; top: 29%; }
.rg-label.rg-1 { left: 71%; top: 29%; }
.rg-label.rg-2 { left: 71%; top: 71%; }
.rg-label.rg-3 { left: 29%; top: 71%; }
.rg-label svg { width: clamp(20px, 5.6cqw, 32px); height: auto; margin-bottom: clamp(6px, 1.6cqw, 10px); }
.rg-en { font-size: clamp(9px, 2.2cqw, 12.5px); font-weight: 700; line-height: 1.2; letter-spacing: .16em; text-transform: uppercase; }
.rg-ko { margin-top: 2px; font-size: clamp(15px, 4.4cqw, 24px); font-weight: 800; line-height: 1.3; letter-spacing: -.02em; color: var(--ink); }
.rg-cap { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: clamp(4px, 1.6vw, 16px); text-align: center; transition: opacity .6s var(--ease); }
.rg-cap::before { content: ''; width: min(72%, 340px); height: 2px; margin-bottom: 14px; border-radius: 2px; background: linear-gradient(90deg, #6CC3D2, #2E9DAF, #0E6E7C, #1B1B1B); }
.rg-cap b { padding-left: .34em; font-size: 15px; font-weight: 800; letter-spacing: .34em; color: var(--ink); }
.rg-cap span { font-size: 14px; color: var(--muted); }
.rings[data-active='0'] .rg-1, .rings[data-active='0'] .rg-2, .rings[data-active='0'] .rg-3, .rings[data-active='1'] .rg-2, .rings[data-active='1'] .rg-3, .rings[data-active='2'] .rg-3 { --off: 1; }
.rings[data-active='0'] .rg-core, .rings[data-active='1'] .rg-core, .rings[data-active='2'] .rg-core, .rings[data-active='0'] .rg-core-glow, .rings[data-active='1'] .rg-core-glow, .rings[data-active='2'] .rg-core-glow { opacity: 0; scale: .3; }
.rings[data-active='0'] .rg-cap, .rings[data-active='1'] .rg-cap, .rings[data-active='2'] .rg-cap { opacity: .3; }
html[data-motion='off'] .rg-core-glow { animation-play-state: paused; }
html[data-motion='off'] .rg-halo, html[data-motion='off'] .rg-stroke, html[data-motion='off'] .rg-core, html[data-motion='off'] .rg-core-glow, html[data-motion='off'] .rg-label, html[data-motion='off'] .rg-cap { transition: none; }

/* a classic line over a full-bleed duotone painting that slowly zooms as it scrolls past */
.quote-band { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: center; min-height: clamp(520px, 86vh, 820px); padding-top: clamp(96px, 12vw, 160px); background: var(--navy); color: var(--on-dark-2); }
.quote-band::before { content: ''; position: absolute; inset: 0; z-index: 0; background: var(--grain); pointer-events: none; }
.qb-art { position: absolute; inset: 0; z-index: -1; }
.qb-art img { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.04 + var(--p, .5) * .16)); transform-origin: 60% 40%; }
.qb-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 10, 10, .94) 0%, rgba(10, 10, 10, .6) 55%, rgba(10, 10, 10, .2) 100%), linear-gradient(180deg, rgba(10, 10, 10, 0) 60%, rgba(10, 10, 10, .85)); }
.qb-in, .qb-credit { position: relative; z-index: 1; }
.home .quote-band .eyebrow { color: var(--white); }
.qb-quote p { font-size: clamp(38px, 6.6vw, 96px); font-weight: 800; line-height: 1.16; letter-spacing: -.045em; color: var(--white); }
.qb-quote em { font-style: normal; color: var(--accent); }
.qb-quote footer { margin-top: 28px; font-size: clamp(15px, 1.4vw, 18px); font-weight: 600; color: var(--on-dark-2); }
.qb-credit { margin-top: clamp(64px, 8vw, 120px); padding-bottom: 24px; font-size: 12px; text-align: right; color: var(--on-dark-3); }
@media (max-width: 767px) { .qb-art::after { background: linear-gradient(180deg, rgba(10, 10, 10, .55) 0%, rgba(10, 10, 10, .82) 60%, rgba(10, 10, 10, .95)); } }

/* ---------- home: black & white editorial, mint as the only colour ---------- */
.home .site-header { border-bottom-color: transparent; }
.home .site-header.is-solid { border-bottom-color: var(--line); }

.home .programs-sec .btn-row.center { justify-content: flex-start; }
/* the three PACE labs as dark cards, so they stand clear of the white page; the mint glow in the corner brightens on hover */
.lab-card { background: var(--navy); border-color: var(--navy); color: var(--on-dark-2); box-shadow: var(--shadow); }
.lab-card:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px var(--accent), var(--shadow-lg); }
.lab-band { isolation: isolate; min-height: 168px; border-bottom: 1px solid var(--line-dark); }
.lab-band::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(75% 95% at 100% 0%, rgba(108, 195, 210, .6), transparent 70%); opacity: .55; transition: opacity .4s var(--ease); }
.lab-card:hover .lab-band::after { opacity: 1; }
.lab-name { color: var(--white); }
.lab-topic { color: var(--accent); }
.lab-list li { color: var(--on-dark-2); }
.lab-list li::before { background: var(--accent); }
.lab-tag { border: 1px solid var(--line-dark); background: rgba(255, 255, 255, .07); color: var(--white); }
.lab-tag::before { color: var(--accent); }
.lab-dur { color: var(--on-dark-3); }
.lab-more { color: var(--white); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 7px; }
@media (max-width: 899px) { .lab-cards { padding-bottom: 32px; } }
/* home programmes: PACE and the other ways APEX teaches as the same dark cards — four across on wide screens */
@media (min-width: 900px) { .prog-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .prog-cards { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.prog-cards .lab-band { min-height: 172px; padding: 22px 24px; }
/* Capital display words: sized to the card (cqi = 1% of the band's inner width) so the longest single word, SYMPOSIUM, always fits;
   PACE PROGRAM may break onto two lines and the band is tall enough for that under the flag. */
.prog-cards .lab-band { container-type: inline-size; }
.prog-cards .lab-word { font-size: 34px; font-size: clamp(30px, calc(100cqi / 6.1), 46px); letter-spacing: -.03em; }
.prog-cards .lab-band sup { margin-bottom: 24px; font-size: 13px; }
.prog-cards .lab-body { padding: 24px; }
/* The fee sits at the foot of every card, above the link, so the four line up. */
.prog-cards .lab-list { margin-bottom: 28px; }
.prog-cards .fee { align-content: start; min-height: 136px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line-dark); } /* 136px = PACE's three lines, so every rule lines up */
.prog-cards .fee + .lab-more { margin-top: 10px; }
.prog-cards .fee-v span { flex-basis: 100%; }
.prog-cards .fee dt, .prog-cards .fee-v span, .prog-cards .fee-s { color: var(--on-dark-3); }
.prog-cards .fee-v b { color: var(--white); }
.prog-cards .fee-s b { color: var(--accent); }
.pc-flag { position: absolute; left: 24px; top: 20px; padding: 4px 11px; border-radius: 999px; background: var(--accent); font-size: 12px; font-weight: 800; color: var(--ink); }

/* hero */
.ed-hero { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; min-height: clamp(640px, calc(100svh - var(--hh)), 940px); background: var(--white); color: var(--ink); }
.ed-meta, .ed-foot { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ed-meta { padding-top: 24px; animation: ed-fade 1s var(--ease) .9s both; }
.ed-foot { padding-block: 12px 20px; animation: ed-fade 1s var(--ease) 1.2s both; }
.ed-foot .scroll-cue { color: var(--ink-2); letter-spacing: 0; text-transform: none; }
.ed-stage { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 28px; padding-block: 24px; }
.ed-title { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 16px; font-size: clamp(44px, 12.5vw, 60px); font-weight: 800; line-height: 1.12; letter-spacing: -.05em; color: var(--ink); }
.ed-h-left .ln { display: block; width: fit-content; overflow: hidden; padding: 0 .18em .06em 0; margin-bottom: -.06em; }
.ed-h-left .ln > span { display: block; animation: ed-rise 1.1s var(--ease) both; }
.ed-h-left .ln + .ln > span { animation-delay: .12s; }
.ed-h-right { writing-mode: vertical-lr; font-size: .56em; line-height: 1.16; letter-spacing: -.06em; }
.ed-v { display: block; animation: ed-write 1.3s var(--ease) .45s both; }
.ed-v + .ed-v { padding-top: 1.3em; animation-delay: .7s; }
.ed-h-right em { font-style: normal; background: linear-gradient(90deg, transparent 56%, var(--accent) 56%, var(--accent) 92%, transparent 92%); }
.ed-scenes { position: relative; z-index: 1; height: clamp(220px, 62vw, 340px); margin-inline: calc(var(--gutter) * -1); }
/* two scenes behind the same words: they cross-fade, and the pager bar under the active number fills as the timer (site.js) */
.ed-scene { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.1s var(--ease), visibility 0s 1.1s; }
.ed-scene.is-on { opacity: 1; visibility: visible; transition: opacity 1.1s var(--ease) .2s; }
.ed-books { transition: opacity 1.1s var(--ease), transform 1.4s var(--ease), visibility 0s 1.4s; }
.ed-books:not(.is-on) { transform: translateY(-4%); }
.ed-books.is-on { transition: opacity 1.1s var(--ease) .2s, transform 1.4s var(--ease) .2s; }
/* forum: a 1968 public meeting — speaker, panel and audience — opening from the middle like a stage curtain */
.ef-photo { position: absolute; left: 50%; top: 50%; width: min(calc(100% - var(--gutter) * 2), 560px); translate: -50% -50%; filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .18)); }
.ef-photo img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 5; object-fit: cover; clip-path: inset(0 50%); transition: clip-path 1.5s cubic-bezier(.7, 0, .2, 1) .15s; }
.ed-forum.is-on .ef-photo img { clip-path: inset(0); }
.eb { position: absolute; left: 50%; top: 50%; display: block; translate: 0 0; transform: translate(-50%, -50%) rotate(var(--rot, 0deg)) translateY(calc((var(--p, .5) - .5) * var(--par, 0px))); animation: ed-drop 1.3s var(--ease) both; }
.eb img { display: block; width: 100%; height: auto; filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .18)); animation: ed-float var(--float, 8s) ease-in-out 1.4s infinite; }
.eb-mid { width: min(86%, 400px); --rot: -4deg; --par: -60px; animation-delay: .25s; }
.eb-top, .eb-bot { display: none; }
.ed-under { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; animation: ed-fade 1s var(--ease) 1s both; }
.ed-en { font-size: clamp(34px, 3vw, 44px); line-height: 1; color: var(--ink); }
.ed-links { display: grid; gap: 2px; margin-top: 14px; }
.ed-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 16px; font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 6px; transition: text-decoration-color .2s; }
.ed-links a:hover { text-decoration-color: var(--accent); }
.ed-links svg { transition: transform .25s var(--ease); }
.ed-links a:hover svg { transform: translateX(4px); }
.ed-sub { max-width: 30em; margin-top: 16px; font-size: 16px; line-height: 1.7; color: var(--ink-2); }
/* why now: the reason APEX exists, beside two sourced lines that show why thinking matters today */
.why-grid { display: grid; gap: 48px; }
/* On wide screens the copy stays in view while the two charts scroll past beside it. */
@media (min-width: 1024px) {
  .why-grid { grid-template-columns: 1.05fr 1fr; gap: 88px; align-items: start; }
  .why-copy { position: sticky; top: 140px; }
}
.home .why-copy .h2 { font-size: clamp(28px, 3.6vw, 50px); }
.why-copy .lead { margin-top: 24px; }
.why-close { margin-top: 20px; font-size: clamp(18px, 1.7vw, 21px); font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.evidence { display: grid; border-top: 1px solid var(--ink); }
.evidence > li { display: grid; gap: 14px; padding: 30px 0 34px; border-bottom: 1px solid var(--line-2); }
.ev-k { display: flex; align-items: baseline; gap: 10px; font-size: 13px; font-weight: 700; color: var(--muted); }
.ev-no { font-family: var(--serif-en); font-size: 22px; font-weight: 600; line-height: 1; font-variant-numeric: lining-nums; color: var(--ink); }
.ev-head { font-size: clamp(22px, 2.1vw, 27px); font-weight: 800; line-height: 1.4; letter-spacing: -.03em; color: var(--ink); }
.ev-chart { margin: 10px 0 6px; }
.ch-cap { margin-bottom: 16px; font-size: 13px; font-weight: 600; color: var(--muted); }
.ev-text { font-size: 16px; line-height: 1.7; color: var(--ink-2); }
.ev-src { display: flex; flex-wrap: wrap; align-items: center; gap: 0 14px; font-size: 13px; color: var(--muted); }
.ev-src a { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
/* chart 01: ranked bars out of 100. Gray bars give the context, the mint one is the point; every bar carries its own number. */
.hbars li, .hb-axis { display: grid; grid-template-columns: minmax(0, 10.5em) 1fr; column-gap: 16px; align-items: center; }
.hb-name { padding: 8px 0; font-size: 14.5px; line-height: 1.4; color: var(--ink-2); }
.hb-plot { position: relative; align-self: stretch; min-height: 34px; border-left: 1px solid var(--ink); background: linear-gradient(var(--line), var(--line)) 50% 0 / 1px 100% no-repeat, linear-gradient(var(--line), var(--line)) 100% 0 / 1px 100% no-repeat; }
.hb-bar { position: absolute; left: 0; top: 50%; width: calc(var(--v) * 1%); height: 14px; margin-top: -7px; border-radius: 0 4px 4px 0; background: #DEDED9; transform-origin: left center; }
.hb-val { position: absolute; top: 50%; left: calc(var(--v) * 1% + 10px); transform: translateY(-50%); font-family: var(--serif-en); font-size: 22px; font-weight: 600; line-height: 1; white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; color: var(--muted); }
.hbars .is-key .hb-name { font-weight: 700; color: var(--ink); }
.hbars .is-key .hb-bar { height: 18px; margin-top: -9px; background: var(--accent); }
.hbars .is-key .hb-val { font-size: 30px; color: var(--ink); }
.hb-axis span { grid-column: 2; position: relative; height: 18px; }
.hb-axis i { position: absolute; top: 5px; left: calc(var(--at) * 1%); transform: translateX(-50%); font-size: 12px; font-style: normal; line-height: 1; color: var(--muted); }
.hb-axis i:first-child { transform: none; }
.hb-axis i:last-child { transform: translateX(-100%); }
@media (max-width: 559px) {
  .hbars li, .hb-axis { grid-template-columns: 1fr; }
  .hbars li + li { margin-top: 4px; }
  .hb-name { padding: 0; }
  .hb-axis span { grid-column: 1; }
}
/* chart 02: columns that climb as approaches are combined; only the mint one crosses the dashed 'medium effect' line */
.cols-plot { --H: 200px; --room: 54px; position: relative; }
.cols-plot::before, .cols-plot::after { content: ''; position: absolute; left: 0; right: 0; }
.cols-plot::before { top: calc(var(--room) + var(--H) * (1 - var(--ref))); border-top: 1px dashed var(--muted); }
.cols-plot::after { top: calc(var(--room) + var(--H)); border-top: 1px solid var(--ink); }
.vcols { display: grid; grid-auto-columns: 1fr; grid-auto-flow: column; gap: 12px; }
.vcols li { display: grid; grid-template-rows: calc(var(--room) + var(--H)) auto; justify-items: center; }
.vc-zone { grid-row: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; width: 100%; }
.vc-bar { position: relative; z-index: 1; display: block; width: min(64px, 72%); height: calc(var(--h) * var(--H)); border-radius: 4px 4px 0 0; background: #DEDED9; }
.vcols .is-key .vc-bar { background: var(--accent); }
.vc-val { padding-bottom: 8px; font-family: var(--serif-en); font-size: 24px; font-weight: 600; line-height: 1; font-variant-numeric: lining-nums tabular-nums; color: var(--muted); }
.vcols .is-key .vc-val { font-size: clamp(32px, 3vw, 40px); color: var(--ink); }
.vc-name { grid-row: 2; padding-top: 12px; font-size: 13.5px; line-height: 1.45; text-align: center; color: var(--ink-2); }
.vcols .is-key .vc-name { font-weight: 700; color: var(--ink); }
.vc-ref { position: absolute; left: 0; top: calc(var(--room) + var(--H) * (1 - var(--ref)) - 22px); font-size: 12px; line-height: 1.5; color: var(--muted); }
/* site.js adds .ch-wait to a chart before it is seen (only when motion is allowed) and swaps it for .ch-go as it comes into view.
   Each number rides at the end of its bar while the bar grows. */
.ch-wait .hb-bar { transform: scaleX(0); }
.ch-wait .hb-val { left: 10px; opacity: 0; }
.ch-wait .vc-bar { height: 0; }
.ch-wait .vc-val { opacity: 0; }
.ch-go .hb-bar { transition: transform 1.2s var(--ease) calc(var(--n) * 120ms + 250ms); }
.ch-go .hb-val { transition: left 1.2s var(--ease) calc(var(--n) * 120ms + 250ms), opacity .4s var(--ease) calc(var(--n) * 120ms + 250ms); }
.ch-go .vc-bar { transition: height 1s var(--ease) calc(var(--n) * 220ms + 250ms); }
.ch-go .vc-val { transition: opacity .4s var(--ease) calc(var(--n) * 220ms + 250ms); }
html[data-motion='off'] :is(.ch-wait, .ch-go) .hb-bar { transform: none; transition: none; }
html[data-motion='off'] :is(.ch-wait, .ch-go) .vc-bar { height: calc(var(--h) * var(--H)); transition: none; }
html[data-motion='off'] :is(.ch-wait, .ch-go) .hb-val { left: calc(var(--v) * 1% + 10px); opacity: 1; transition: none; }
html[data-motion='off'] :is(.ch-wait, .ch-go) .vc-val { opacity: 1; transition: none; }
.why-note { margin-top: 28px; font-size: 13px; }
/* approach: the four steps on the home page sit on the warm paper, between the dark quote and the white programmes */
.approach-sec { background: var(--paper); }
.approach-sec .ap-steps li::before { background: var(--paper); }
.approach-sec .ap-steps li:last-child::before { background: var(--ink); }
@media (min-width: 900px) {
  .ed-foot .scroll-cue { display: none; }
  .ed-stage { display: grid; grid-template: 1fr auto / minmax(0, 1fr); gap: 0; padding-block: 16px 8px; }
  .ed-title { align-self: center; grid-template-columns: 1fr minmax(300px, 1.25fr) 1fr; align-items: center; gap: 0; font-size: clamp(56px, 6.2vw, 88px); }
  .ed-h-left { grid-column: 1; grid-row: 1; }
  .ed-h-right { grid-column: 3; grid-row: 1; justify-self: end; font-size: .62em; }
  .ed-scenes { position: absolute; inset: calc(-1 * var(--meta-h, 64px)) 0 calc(-1 * var(--foot-h, 64px)); height: auto; margin: 0; pointer-events: none; }
  /* centred in the gap between the headline and the vertical words, which sits right of the page centre */
  .ef-photo { left: calc(50% + min(5.6vw, 80px)); top: 48%; width: clamp(400px, 40vw, 660px); }
  .ef-photo img { aspect-ratio: 4 / 3; object-position: 56% 50%; }
  .eb-mid { top: 47%; width: clamp(320px, 33vw, 500px); }
  .eb-top, .eb-bot { display: block; }
  .eb-top { top: 0; width: clamp(220px, 21vw, 320px); --rot: 172deg; --par: 90px; --float: 9s; animation-delay: .1s; transform: translate(-56%, -22%) rotate(var(--rot)) translateY(calc((var(--p, .5) - .5) * var(--par))); }
  .eb-bot { top: 100%; width: clamp(240px, 24vw, 360px); --rot: -9deg; --par: -110px; --float: 10s; animation-delay: .4s; transform: translate(-44%, -58%) rotate(var(--rot)) translateY(calc((var(--p, .5) - .5) * var(--par))); }
  .ed-under { align-items: flex-end; }
}
@keyframes ed-rise { from { transform: translateY(105%); } }
@keyframes ed-write { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
@keyframes ed-fade { from { opacity: 0; transform: translateY(12px); } }
@keyframes ed-drop { from { opacity: 0; translate: 0 -48px; } }
@keyframes ed-float { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: 0 -12px; rotate: 1.6deg; } }
html[data-motion='off'] .ed-hero *, html[data-motion='off'] .ed-hero { animation: none !important; }
html[data-motion='off'] .ef-photo img { transition: none; }
/* pager: 01 and 02, each with a hairline; the active one fills over the scene's time */
.ed-pager { display: flex; gap: 18px; }
@media (min-width: 1024px) { .ed-pager { margin: 0 auto 0 28px; } }
.ed-pager button { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 2px; border: 0; background: none; font: inherit; color: var(--muted); cursor: pointer; transition: color .3s; }
.ed-pager button[aria-pressed='true'], .ed-pager button:hover { color: var(--ink); }
.ep-bar { position: relative; width: clamp(28px, 4vw, 56px); height: 2px; overflow: hidden; background: var(--line-2); }
.ep-bar i { position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; }
[aria-pressed='true'] > .ep-bar i { transform: none; animation: ep-fill 7s linear; }
.is-away .ep-bar i { animation-play-state: paused; }
@keyframes ep-fill { from { transform: scaleX(0); } }
@media (max-width: 479px) { .ed-foot .scroll-cue { display: none; } }

/* the classic quote: thin serif and a handwritten word laid over the painting */
.qb-latin { display: flex; flex-direction: column; margin-top: clamp(20px, 3vw, 36px); color: var(--white); line-height: 1; text-shadow: 0 2px 30px rgba(0, 0, 0, .35); }
.qb-latin .script:first-child { font-size: clamp(64px, 8.2vw + 40px, 176px); line-height: 1.1; white-space: nowrap; }
.qb-latin .script + .script { margin: -.2em 0 .2em 1.7em; font-size: clamp(110px, 16vw, 250px); line-height: 1.05; white-space: nowrap; }
@media (max-width: 599px) { .qb-latin .script + .script { margin-left: .9em; } }
.home .qb-quote p { font-size: clamp(24px, 3vw, 40px); font-weight: 700; letter-spacing: -.03em; }
.home .qb-quote footer { margin-top: 14px; }
.home .qb-quote footer span { margin-left: 12px; font-weight: 500; color: var(--on-dark-3); }

/* record: a handwritten title (home), then the posters hung like an exhibition wall — no tilt or frame, captions on a hairline, the rest dim while one is looked at */
.home .record-head { margin-bottom: clamp(40px, 5vw, 72px); }
.home .record-title { font-size: clamp(72px, 8vw + 28px, 156px); font-weight: 400; line-height: 1.02; letter-spacing: 0; color: var(--ink); }
.home .record-title .script + .script { margin-top: -.18em; padding-left: 1.1em; }
@media (max-width: 599px) { .home .record-title .script + .script { padding-left: .5em; } }
.home .record-note { display: grid; gap: 14px; padding-bottom: .6em; }
.home .record-note .eyebrow::after { content: ''; flex: 1; max-width: 120px; height: 1px; background: currentColor; opacity: .22; }
.rv .record-title .script + .script { transition-delay: 1.1s; }
.polaroid-strip { padding-block: 28px 8px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.pl-track { align-items: flex-start; gap: clamp(28px, 3.4vw, 52px); padding-right: clamp(28px, 3.4vw, 52px); animation-duration: 90s; }
.polaroid { width: clamp(188px, 15vw + 80px, 272px); padding: 0; background: none; box-shadow: none; transform: none; transition: opacity .5s var(--ease); }
.polaroid:hover { transform: none; }
.polaroid img { display: block; box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 26px 40px -26px rgba(0, 0, 0, .5); transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.polaroid:hover img { transform: translateY(-10px); box-shadow: 0 2px 4px rgba(0, 0, 0, .06), 0 40px 56px -30px rgba(0, 0, 0, .55); }
.polaroid-strip:hover .polaroid { opacity: .42; }
.polaroid-strip .polaroid:hover { opacity: 1; }
.polaroid span { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--line-2); overflow: visible; }
.polaroid b { display: -webkit-box; font-size: 13px; font-weight: 600; line-height: 1.5; color: var(--ink); -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.polaroid i { flex: none; font-family: var(--serif-en); font-size: 19px; font-weight: 300; line-height: 1; color: var(--muted); }
.polaroid i::before { content: none; }

/* SDGs: the three goals picked out of the seventeen, then one card per goal with what APEX does for it; a card turns black on hover */
.im-head { display: grid; gap: 24px; margin-bottom: clamp(40px, 5vw, 64px); }
@media (min-width: 1024px) { .im-head { grid-template-columns: 1fr 1fr; gap: 80px; align-items: end; } }
.im-intro { display: grid; justify-items: start; gap: 20px; }
.im-pick { display: grid; gap: 16px; margin-bottom: clamp(28px, 3.5vw, 44px); }
.im-pick-cap { font-size: 16px; font-weight: 600; color: var(--ink-2); }
.im-pick-cap b { font-weight: 800; color: var(--ink); }
.im-goals { display: grid; grid-template-columns: repeat(9, 1fr); gap: 6px; }
@media (min-width: 900px) { .im-goals { grid-template-columns: repeat(17, 1fr); gap: 8px; } }
.im-goals li { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; border-radius: 8px; background: var(--mist); font-size: clamp(12px, 1.1vw, 15px); font-weight: 700; color: #8F8F8B; }
.im-goals .is-on { background: var(--ink); font-size: clamp(14px, 1.5vw, 20px); font-weight: 800; color: var(--accent); box-shadow: 0 14px 22px -12px rgba(0, 0, 0, .6); }
.im-cols { display: grid; gap: 16px; }
@media (min-width: 900px) { .im-cols { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.im-cols > li { display: flex; flex-direction: column; padding: clamp(24px, 2.6vw, 36px); border: 1.5px solid var(--ink); border-radius: var(--radius); background: var(--white); transition: background .35s var(--ease), transform .35s var(--ease); }
.im-cols > li * { transition: color .35s, border-color .35s; }
.im-no span { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .16em; color: var(--ink); }
.im-no span::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.im-no b { display: block; margin-top: 14px; font-family: var(--serif-en); font-size: clamp(64px, 5.6vw, 96px); font-weight: 600; font-variant-numeric: lining-nums; line-height: .8; letter-spacing: -.02em; color: var(--ink); }
.im-goal { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line-2); font-size: 14px; font-weight: 700; color: var(--ink-2); }
.im-goal span { display: block; margin-top: 4px; font-size: 11px; letter-spacing: .14em; color: var(--muted); }
.im-cols h3 { margin-top: 14px; font-size: clamp(22px, 2vw, 26px); font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.im-desc { margin-top: 10px; font-size: 15px; line-height: 1.7; color: var(--ink-2); }
.im-label { font-size: 13px; font-weight: 800; letter-spacing: .02em; color: var(--ink); }
.im-cols .im-label { margin-top: 24px; }
.im-how { display: grid; gap: 10px; margin-top: 12px; }
.im-how li { display: flex; gap: 10px; font-size: 15px; font-weight: 600; color: var(--ink); }
.im-how svg { flex: none; margin-top: 2px; color: var(--accent-ink); }
@media (hover: hover) {
  .im-cols > li:hover { background: var(--ink); transform: translateY(-6px); }
  .im-cols > li:hover :is(.im-no span, h3, .im-label, .im-how li) { color: var(--white); }
  .im-cols > li:hover .im-no b, .im-cols > li:hover .im-how svg { color: var(--accent); }
  .im-cols > li:hover :is(.im-goal, .im-desc) { color: var(--on-dark-2); }
  .im-cols > li:hover .im-goal { border-color: var(--line-dark); }
  .im-cols > li:hover .im-goal span { color: var(--on-dark-3); }
}
/* the APEX way of learning: four steps joined by a hairline, the last one — practice — filled; the ways of learning run underneath */
.ap-steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 16px; counter-reset: aps; }
@media (min-width: 900px) { .ap-steps { grid-template-columns: repeat(4, 1fr); gap: 0 24px; } }
.ap-steps li { counter-increment: aps; position: relative; display: grid; align-content: start; justify-items: start; gap: 6px; }
.ap-steps li::before { content: '0' counter(aps); position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; margin-bottom: 10px; border: 1.5px solid var(--ink); border-radius: 50%; background: var(--white); font-family: var(--serif-en); font-size: 19px; font-weight: 300; font-variant-numeric: lining-nums; color: var(--ink); }
.ap-steps li:last-child::before { background: var(--ink); color: var(--accent); }
@media (min-width: 900px) { .ap-steps li:not(:last-child)::after { content: ''; position: absolute; left: 46px; right: -24px; top: 23px; height: 1px; background: var(--line-2); } }
.ap-steps h3 { display: flex; align-items: baseline; gap: 8px; font-size: clamp(19px, 1.8vw, 22px); font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.ap-steps h3 small { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ap-steps p { font-size: 15px; line-height: 1.65; color: var(--ink-2); }
.ap-methods { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: clamp(36px, 4vw, 52px); padding-top: 24px; border-top: 1px solid var(--line); }
.ap-methods b { margin-right: 8px; font-size: 13px; font-weight: 800; letter-spacing: .02em; color: var(--ink); }
.ap-methods span { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink-2); }

/* audio: the section title set into a bookshelf; spines rise onto the shelves as it scrolls in */
.shelf { --sh-h: clamp(52px, 6.6vw, 92px); --sh-paper: #ECEAE4; --sh-ink: #171717; margin-bottom: clamp(40px, 5vw, 64px); border: clamp(6px, .8vw, 10px) solid var(--sh-paper); background: var(--grain), #222; }
.sh-row { display: flex; align-items: flex-end; height: var(--sh-h); padding-top: 6px; overflow: hidden; border-bottom: clamp(5px, .6vw, 8px) solid var(--sh-paper); }
.sh-row:last-child { border-bottom: 0; }
.sh-run { flex: 1 1 0; min-width: 0; height: 100%; }
.sh-run:not(:last-child) { flex-grow: 0; }
.sh-books { display: block; width: 100%; height: 100%; }
.sh-books rect { fill: var(--sh-ink); }
.sh-books rect.s { fill: var(--sh-paper); }
.sh-books .m rect.s { fill: var(--accent); }
.sh-books > g { transition: transform .35s var(--ease); }
.sh-books > g:not([transform]):hover { transform: translateY(-5px); }
.sh-word { flex: none; align-self: center; padding-inline: clamp(12px, 1.8vw, 28px); font-size: clamp(18px, 2.4vw, 34px); font-weight: 300; line-height: 1.2; letter-spacing: -.02em; white-space: nowrap; color: var(--sh-paper); }
.sh-word.is-accent { font-weight: 600; color: var(--accent); }
.shelf.rv { opacity: 1; transform: none; }
.shelf.rv .sh-books { transform: translateY(104%); transition: transform .9s var(--ease) calc(var(--r) * 100ms); }
.shelf.rv .sh-word { opacity: 0; transition: opacity .6s var(--ease) calc(var(--r) * 100ms + 350ms); }
.shelf.rv.is-in .sh-books { transform: none; }
.shelf.rv.is-in .sh-word { opacity: 1; }
html[data-motion='off'] .shelf.rv .sh-books, html[data-motion='off'] .shelf.rv .sh-word { opacity: 1; transform: none; transition: none; }
/* the carousel's last card: a book open like a door onto the archive */
.ac-door .ac-cover { display: block; background: #D9DEDF; }
.door-art { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .8s var(--ease); }
.ac-door:hover .door-art { transform: scale(1.04); }
.ac-door .ac-play { padding-left: 0; }

/* closing band: a marble bust standing in front of a serif word, a mint handwritten one across it */
.home .cta-band { padding-top: clamp(56px, 7vw, 96px); }
.home .cta-band::before { top: 0; margin-top: -120px; background: radial-gradient(circle, rgba(108, 195, 210, .16), transparent 60%); }
.cta-stage { position: relative; display: grid; justify-items: center; width: 100%; margin-bottom: clamp(28px, 4vw, 48px); color: var(--white); }
.cta-stage > * { grid-area: 1 / 1; }
.cta-stage .serif-en { position: relative; z-index: 0; font-size: clamp(76px, 17vw, 230px); line-height: .8; letter-spacing: .08em; padding-left: .08em; }
.cta-stage img { position: relative; z-index: 1; width: clamp(210px, 30vw, 380px); height: auto; margin-top: clamp(50px, 8.6vw, 116px); -webkit-mask-image: linear-gradient(180deg, #000 64%, transparent 96%); mask-image: linear-gradient(180deg, #000 64%, transparent 96%); }
.cta-stage .script { position: relative; z-index: 2; align-self: end; margin: 0 0 6% 18%; font-size: clamp(64px, 10vw, 150px); line-height: 1; color: var(--accent); rotate: -6deg; }
.credits-h { margin: 8px 0 20px; }
.credits-h:not(:first-child) { margin-top: 56px; }
.credits img.is-cutout { object-fit: contain; background: var(--mist); }

/* scroll reveals: site.js adds .rv only when motion is allowed, then removes it once the element is in */
.rv { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.rv.is-in { opacity: 1; transform: none; }
.ln-mask { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.ln-in { display: block; }
.rv .ln-in { transform: translateY(110%); transition: transform 1s var(--ease); transition-delay: calc(var(--ln, 0) * 110ms + 120ms); }
.rv.is-in .ln-in { transform: none; }
/* handwritten words write themselves in from the left */
.rv .script { clip-path: inset(-40% 100% -40% -20%); transition: clip-path 1.1s cubic-bezier(.6, 0, .3, 1) .25s; }
.rv.is-in .script { clip-path: inset(-40% -20% -40% -20%); }
.rv .qb-latin .script + .script { transition-delay: 1.1s; }
html[data-motion='off'] .rv, html[data-motion='off'] .rv .ln-in { opacity: 1; transform: none; transition: none; }
html[data-motion='off'] .rv .script { clip-path: none; transition: none; }
html[data-motion='off'] [data-parallax] { --p: .5 !important; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 250; max-width: calc(100% - 32px); padding: 14px 22px; border-radius: 999px; background: var(--navy); color: var(--white); font-size: 15px; font-weight: 600; box-shadow: var(--shadow-lg); transform: translateX(-50%); animation: toast-in .3s var(--ease); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 12px); } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .pl-track { animation: none !important; }
  .polaroid-strip { overflow-x: auto; }
  .polaroid-strip .pl-track[aria-hidden] { display: none; }
  .motion-toggle { display: none; }
  .pp-line { stroke-dashoffset: 0; }
  .qb-art img { transform: none; }
  .ed-hero *, .ed-hero { animation: none !important; }
}
