/* MOSY AI — editorial laboratory.
   Layout concept: a white-paper lab notebook wrapped around a pinned, scroll-scrubbed
   film of glass dioramas; hairline grids, a serif voice, mono instrument labels, one red stone. */
:root {
  --paper: #F5F5F4;          /* matches the film's studio white */
  --paper-2: #ECECEA;
  --ink: #0D0D0E;
  --ink-2: #3B3C40;
  --mute: #75767B;
  --line: rgba(13, 13, 14, .12);
  --line-strong: rgba(13, 13, 14, .22);
  --glass: rgba(255, 255, 255, .56);
  --glass-edge: rgba(255, 255, 255, .78);
  --stone: #C8102E;          /* the Redstone */
  --stone-deep: #8E0A20;
  --night: #09090A;
  --night-2: #141416;
  --night-ink: #F2F2F0;
  --night-mute: #9A9AA0;
  --night-line: rgba(242, 242, 240, .14);
  --logo-frame: #676767;
  --logo-fill: #FFFFFF;
  --logo-mark: #343433;

  --f-display: "Newsreader", "Noto Serif", Georgia, "Times New Roman", serif;
  --f-body: "Be Vietnam Pro", "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: clamp(18px, 4.2vw, 64px);
  --max: 1360px;
  --radius: 14px;
  --ease: cubic-bezier(.22, .61, .36, 1);

  --t-hero: clamp(2.5rem, 5.4vw, 5.1rem);
  --t-h2: clamp(2.1rem, 4.4vw, 4rem);
  --t-h3: clamp(1.25rem, 1.6vw, 1.5rem);
  --t-lead: clamp(1.06rem, 1.3vw, 1.25rem);
  --t-body: 1rem;
  --t-small: .875rem;
  --t-label: .72rem;
  color-scheme: light;
}
html:lang(ja) { --f-display: "Newsreader", "Noto Serif JP", serif; --f-body: "Be Vietnam Pro", "Noto Sans JP", sans-serif; }
html:lang(ko) { --f-display: "Newsreader", "Noto Serif KR", serif; --f-body: "Be Vietnam Pro", "Noto Sans KR", sans-serif; }
html:lang(zh) { --f-display: "Newsreader", "Noto Serif SC", serif; --f-body: "Be Vietnam Pro", "Noto Sans SC", sans-serif; }
html:lang(th) { --f-display: "Newsreader", "Noto Serif Thai", serif; --f-body: "Be Vietnam Pro", "Noto Sans Thai", sans-serif; }
html:lang(lo) { --f-display: "Newsreader", "Noto Serif Lao", serif; --f-body: "Be Vietnam Pro", "Noto Sans Lao", sans-serif; }
html:is(:lang(ja), :lang(ko), :lang(zh), :lang(th), :lang(lo)) { --t-hero: clamp(2.1rem, 4.4vw, 4.1rem); --t-h2: clamp(1.8rem, 3.6vw, 3.3rem); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-body); font-size: var(--t-body); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--stone); color: #fff; }
:focus-visible { outline: 2px solid var(--stone); outline-offset: 3px; border-radius: 4px; }
.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: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.label { font-family: var(--f-mono); font-size: var(--t-label); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); font-weight: 500; }
.label--stone { color: var(--stone); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--stone); box-shadow: 0 0 0 4px rgba(200, 16, 46, .14); vertical-align: middle; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 300; letter-spacing: -.02em; line-height: 1.04; margin: 0; text-wrap: balance; font-optical-sizing: auto; }
p { margin: 0; text-wrap: pretty; }
em.soft { font-style: normal; color: var(--mute); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .6em; text-decoration: none; font-family: var(--f-mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; padding: 14px 20px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; transition: transform .35s var(--ease), background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease); white-space: nowrap; }
.btn svg { width: 14px; height: 14px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translate(2px, -2px); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--stone); }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: var(--night-ink); color: var(--night); }
.btn--light:hover { background: var(--stone); color: #fff; }

/* ---------- navigation ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 90; background: var(--paper); }
.nav { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 80; padding-top: 14px; pointer-events: none; transition: color .6s var(--ease); }
.nav__bar { pointer-events: auto; display: flex; align-items: center; gap: 18px; justify-content: space-between; padding: 8px 8px 8px 18px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-edge); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); box-shadow: 0 10px 40px -18px rgba(13, 13, 14, .25); transition: background-color .6s var(--ease), border-color .6s var(--ease); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; flex: none; }
.brand .logo { width: 30px; height: 30px; flex: none; }
.brand__word { font-family: var(--f-body); font-weight: 600; letter-spacing: .14em; font-size: .9rem; }
.brand__word span { font-weight: 300; color: var(--mute); margin-left: .3em; }
.nav__links { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__links a { display: block; text-decoration: none; font-size: .88rem; padding: 8px 14px; border-radius: 999px; color: var(--ink-2); transition: background-color .25s, color .25s; }
.nav__links a:hover { background: rgba(13, 13, 14, .06); color: var(--ink); }
.nav__right { display: flex; align-items: center; gap: 6px; }
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; border-radius: 999px; font-family: var(--f-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.lang summary::-webkit-details-marker { display: none; }
.lang summary svg { width: 15px; height: 15px; }
.lang summary:hover { background: rgba(13, 13, 14, .06); }
.lang__menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 210px; padding: 8px; margin: 0; list-style: none; border-radius: 16px; background: rgba(255, 255, 255, .86); border: 1px solid var(--glass-edge); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 24px 60px -20px rgba(13, 13, 14, .35); color: var(--ink); }
.lang__menu a { display: flex; justify-content: space-between; gap: 16px; text-decoration: none; padding: 9px 12px; border-radius: 10px; font-size: .9rem; }
.lang__menu a span { font-family: var(--f-mono); font-size: .7rem; color: var(--mute); letter-spacing: .08em; text-transform: uppercase; }
.lang__menu a:hover, .lang__menu a[aria-current="true"] { background: rgba(13, 13, 14, .06); }
.lang__menu a[aria-current="true"]::after { content: ""; }
.nav__menu-btn { display: none; border: 0; background: transparent; padding: 10px; border-radius: 999px; cursor: pointer; }
.nav__menu-btn svg { width: 20px; height: 20px; }
.drawer { display: none; }

/* night mode for the chrome while the film shows the night shift */
html:is(.is-night, .on-dark) .nav { color: var(--night-ink); --logo-frame: #FFFFFF; --logo-fill: transparent; --logo-mark: #FFFFFF; }
html:is(.is-night, .on-dark) .nav__bar { background: rgba(20, 20, 22, .5); border-color: rgba(255, 255, 255, .12); }
html:is(.is-night, .on-dark) .nav__links a, html:is(.is-night, .on-dark) .lang summary { color: rgba(242, 242, 240, .78); }
html:is(.is-night, .on-dark) .nav__links a:hover, html:is(.is-night, .on-dark) .lang summary:hover { background: rgba(255, 255, 255, .08); color: var(--night-ink); }
html:is(.is-night, .on-dark) .brand__word span { color: var(--night-mute); }
html:is(.is-night, .on-dark) .nav .btn--ink { background: var(--night-ink); color: var(--night); }

/* ---------- the world (scroll film) ---------- */
.world { position: relative; background: var(--paper); --scrim: var(--paper); --w-ink: var(--ink); --w-ink-2: var(--ink-2); --w-mute: var(--mute); --w-line: var(--line); }
html.is-night .world { --scrim: var(--night); --w-ink: var(--night-ink); --w-ink-2: rgba(242, 242, 240, .78); --w-mute: var(--night-mute); --w-line: var(--night-line); }
.world__pin { position: relative; }
.world__stage, .world__scrim, .world__hud, .world__rail { display: none; }

/* no-JS / reader fallback: chapters as an editorial list */
.chapter { padding: 120px 0 40px; }
.chapter__img { margin-top: 28px; border-radius: var(--radius); width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

.js .world__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.js .world__stage { display: block; position: absolute; inset: 0; z-index: 1; isolation: isolate; }
.js .world__scrim { display: block; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(90deg, var(--scrim) 0%, color-mix(in srgb, var(--scrim) 88%, transparent) 26%, color-mix(in srgb, var(--scrim) 40%, transparent) 46%, transparent 62%); transition: background .6s var(--ease); }
.js .world__copy { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.js .chapter { position: absolute; left: max(var(--gutter), env(safe-area-inset-left, 0px)); top: calc(50% + 36px); width: min(640px, 47vw); padding: 0; opacity: 0; transform: translateY(-50%); will-change: opacity, transform; color: var(--w-ink); transition: color .6s var(--ease); }
.js .chapter:first-child { opacity: 1; }
.js .chapter__img { display: none; }
.js .world__track { display: block; }

.scene { position: absolute; inset: 0; opacity: 0; overflow: hidden; will-change: opacity; }
.scene__still, .scene__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 46%; }
.scene__media { position: absolute; inset: 0; transform: translateX(7vw) scale(1.14); transform-origin: 50% 50%; }
.scene__video { z-index: 1; }
.scene.has-clip .scene__still { opacity: 0; }

.chapter__meta { display: flex; align-items: center; gap: 14px; color: var(--w-mute); }
.chapter__meta .label { color: inherit; }
.chapter__meta i { flex: 0 0 36px; height: 1px; background: currentColor; opacity: .5; }
.chapter__eyebrow { margin-top: 22px; color: var(--stone); }
.chapter__title { margin-top: 14px; font-size: var(--t-h2); }
.chapter:first-child .chapter__title { font-size: clamp(2.4rem, 4.5vw, 4.4rem); }
@media (max-height: 800px) and (min-width: 861px) { .chapter__title, .chapter:first-child .chapter__title { font-size: clamp(2rem, 3.6vw, 3.4rem); } .chapter__body { font-size: 1.02rem; margin-top: 16px; } .chips { margin-top: 18px; } .chapter__cta { margin-top: 22px; } }
.chapter__body { margin-top: 22px; font-size: var(--t-lead); line-height: 1.55; color: var(--w-ink-2); max-width: 46ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 26px 0 0; }
.chips li { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; padding: 8px 12px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-edge); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--w-ink-2); }
html.is-night .chips li { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); }
.chapter__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; pointer-events: auto; }

.js .world__rail { display: flex; position: absolute; z-index: 4; right: max(var(--gutter), env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%); flex-direction: column; gap: 4px; list-style: none; margin: 0; padding: 0; }
.world__rail button { display: flex; align-items: center; justify-content: flex-end; gap: 12px; border: 0; background: transparent; cursor: pointer; padding: 7px 0; color: var(--w-mute); font-family: var(--f-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; transition: color .3s; }
.world__rail button i { width: 18px; height: 1px; background: currentColor; transition: width .4s var(--ease), background-color .3s; }
.world__rail button span { opacity: 0; transform: translateX(6px); transition: opacity .3s, transform .3s; }
.world__rail:hover button span, .world__rail button.is-active span { opacity: 1; transform: none; }
.world__rail button.is-active { color: var(--w-ink); }
.world__rail button.is-active i { width: 34px; background: var(--stone); }

.js .world__hud { display: flex; position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; padding: 0 max(var(--gutter), env(safe-area-inset-right, 0px)) calc(22px + env(safe-area-inset-bottom, 0px)) max(var(--gutter), env(safe-area-inset-left, 0px)); align-items: flex-end; justify-content: space-between; gap: 20px; color: var(--w-mute); pointer-events: none; }
.hud__status { display: flex; align-items: center; gap: 12px; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.hud__status b { font-weight: 500; color: var(--w-ink); }
.hud__pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--stone); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(200, 16, 46, .45); } 50% { box-shadow: 0 0 0 7px rgba(200, 16, 46, 0); } }
.hud__hint { display: flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; transition: opacity .4s; }
.hud__hint i { width: 1px; height: 34px; background: linear-gradient(var(--w-mute), transparent); position: relative; overflow: hidden; }
.hud__hint i::after { content: ""; position: absolute; left: 0; top: -12px; width: 1px; height: 12px; background: var(--stone); animation: drip 1.8s var(--ease) infinite; }
@keyframes drip { to { top: 34px; } }
.hud__progress { width: 120px; height: 1px; background: var(--w-line); position: relative; }
.hud__progress span { position: absolute; inset: 0; background: var(--w-ink); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- sections ---------- */
.section { padding-block: clamp(96px, 13vw, 180px); position: relative; }
.section--tight { padding-block: clamp(72px, 9vw, 130px); }
.section__head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: end; }
.section__head > * { min-width: 0; }
.section__title { font-size: var(--t-h2); margin-top: 18px; }
.section__lead { font-size: var(--t-lead); color: var(--ink-2); line-height: 1.55; max-width: 52ch; }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* problem / stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line); }
.stat { padding: 28px 28px 8px 0; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.stat + .stat { padding-left: 28px; }
.stat:last-child { border-right: 0; }
.stat__value { font-family: var(--f-display); font-weight: 300; font-size: clamp(3rem, 5.6vw, 5.4rem); letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums lining-nums; }
.stat__label { color: var(--ink-2); font-size: .98rem; max-width: 30ch; }
.stat__src { margin-top: auto; padding-top: 10px; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .06em; color: var(--mute); text-decoration: none; border-top: 1px dashed var(--line); }
.stat__src:hover { color: var(--stone); }

/* pillars */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); margin-top: clamp(48px, 6vw, 80px); }
.pillar { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.pillar__media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper-2); }
.pillar__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.32); transition: transform 1.2s var(--ease); }
.pillar:hover .pillar__media img { transform: scale(1.4); }
.pillar__tag { position: absolute; left: 14px; top: 14px; padding: 7px 11px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-edge); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.pillar h3 { font-size: var(--t-h3); font-weight: 400; letter-spacing: -.01em; }
.pillar p { color: var(--ink-2); max-width: 40ch; }

/* redstone (black) */
.dark { background: var(--night); color: var(--night-ink); }
.dark .label { color: var(--night-mute); }
.dark .section__lead { color: rgba(242, 242, 240, .74); }
.rs { overflow: hidden; }
.rs__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.rs__top > * { min-width: 0; }
.rs__name { font-size: clamp(4rem, 11vw, 10.5rem); letter-spacing: -.05em; line-height: .9; margin-top: 16px; }
.rs__sub { font-family: var(--f-display); font-style: italic; font-weight: 300; font-size: clamp(1.3rem, 2.1vw, 1.9rem); margin-top: 18px; color: rgba(242, 242, 240, .86); }
.rs__lead { margin-top: 26px; }
.rs__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.gem { position: relative; aspect-ratio: 1; width: 100%; max-width: 560px; justify-self: center; }
.gem canvas { width: 100% !important; height: 100% !important; }
.gem__fallback { position: absolute; inset: 18%; background: radial-gradient(circle at 40% 35%, #ff4d63, var(--stone) 40%, var(--stone-deep) 70%); clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%); filter: drop-shadow(0 30px 60px rgba(200, 16, 46, .45)); }
.gem.is-live .gem__fallback { display: none; }
.gem__glow { position: absolute; inset: 10%; border-radius: 50%; background: radial-gradient(circle, rgba(200, 16, 46, .28), transparent 65%); filter: blur(30px); pointer-events: none; }
.gem__hint { position: absolute; bottom: 4%; left: 50%; transform: translateX(-50%); color: var(--night-mute); white-space: nowrap; }
.modules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(56px, 7vw, 100px); border-top: 1px solid var(--night-line); border-left: 1px solid var(--night-line); }
.module { padding: 26px 24px 30px; border-right: 1px solid var(--night-line); border-bottom: 1px solid var(--night-line); min-width: 0; transition: background-color .4s var(--ease); }
.module:hover { background: var(--night-2); }
.module__idx { font-family: var(--f-mono); font-size: .68rem; color: var(--night-mute); letter-spacing: .1em; }
.module h3 { font-family: var(--f-body); font-weight: 500; font-size: 1.05rem; letter-spacing: 0; margin-top: 34px; }
.module p { margin-top: 10px; color: rgba(242, 242, 240, .66); font-size: .93rem; line-height: 1.55; }

/* approach (a real sequence) */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: clamp(56px, 7vw, 96px); list-style: none; padding: 0; counter-reset: step; }
.step { position: relative; padding: 0 28px 0 0; min-width: 0; }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; color: var(--mute); }
.step__line { height: 1px; background: var(--line); margin: 18px 0 30px; position: relative; }
.step__line::after { content: ""; position: absolute; left: 0; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.step:last-child .step__line::after { background: var(--stone); box-shadow: 0 0 0 4px rgba(200, 16, 46, .14); }
.step h3 { font-size: var(--t-h3); font-weight: 400; letter-spacing: -.01em; }
.step p { margin-top: 12px; color: var(--ink-2); max-width: 34ch; }

/* security (glass over the city) */
.sec { position: relative; overflow: hidden; }
.sec__bg { position: absolute; inset: 0; }
.sec__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; transform: scale(1.08); }
.sec__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--paper) 0%, rgba(245, 245, 244, .15) 30%, rgba(245, 245, 244, .1) 70%, var(--paper) 100%); }
.sec .wrap { position: relative; }
.glass { background: rgba(255, 255, 255, .58); border: 1px solid rgba(255, 255, 255, .85); backdrop-filter: blur(26px) saturate(1.3); -webkit-backdrop-filter: blur(26px) saturate(1.3); border-radius: 22px; box-shadow: 0 40px 90px -40px rgba(13, 13, 14, .35), inset 0 1px 0 rgba(255, 255, 255, .9); }
.sec__panel { position: relative; padding: clamp(28px, 4vw, 56px); max-width: 980px; }
.corner { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.corner--tl { left: 14px; top: 14px; } .corner--tr { right: 14px; top: 14px; } .corner--bl { left: 14px; bottom: 14px; } .corner--br { right: 14px; bottom: 14px; }
.sec__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin-top: 40px; border-top: 1px solid var(--line); }
.sec__item { padding: 24px 24px 24px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.sec__item:nth-child(odd) { border-right: 1px solid var(--line); }
.sec__item:nth-child(even) { padding-left: 24px; }
.sec__item h3 { font-family: var(--f-body); font-size: 1.02rem; font-weight: 500; letter-spacing: 0; }
.sec__item p { margin-top: 8px; color: var(--ink-2); font-size: .95rem; }

/* company */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); }
.fact { padding: 26px 24px 0 0; min-width: 0; }
.fact + .fact { padding-left: 24px; border-left: 1px solid var(--line); }
.fact__value { font-family: var(--f-display); font-weight: 300; font-size: clamp(3rem, 6vw, 5.6rem); letter-spacing: -.04em; line-height: 1; font-variant-numeric: lining-nums; }
.fact__label { margin-top: 12px; color: var(--ink-2); max-width: 28ch; }
.clients { margin-top: clamp(56px, 7vw, 96px); display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 24px; align-items: center; padding-block: 28px; border-block: 1px solid var(--line); }
.clients ul { display: flex; flex-wrap: wrap; gap: 10px 48px; list-style: none; padding: 0; margin: 0; }
.clients li { font-family: var(--f-display); font-size: clamp(1.35rem, 2.2vw, 2rem); font-weight: 400; letter-spacing: -.01em; color: var(--ink); }

/* faq */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 80px); }
.faq > * { min-width: 0; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 24px 0; font-family: var(--f-display); font-size: clamp(1.2rem, 1.7vw, 1.5rem); font-weight: 400; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; width: 22px; height: 22px; position: relative; margin-top: 6px; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1px; background: var(--ink); transform: translate(-50%, -50%); transition: transform .35s var(--ease); }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] summary i::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq details p { padding: 0 48px 26px 0; color: var(--ink-2); max-width: 64ch; }

/* journal cards */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); margin-top: clamp(48px, 6vw, 72px); }
.post-card { display: flex; flex-direction: column; gap: 16px; text-decoration: none; color: inherit; min-width: 0; }
.post-card__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; background: var(--paper-2); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.2); }
.post-card__meta { display: flex; gap: 14px; flex-wrap: wrap; }
.post-card h3 { font-size: clamp(1.3rem, 1.8vw, 1.65rem); font-weight: 400; letter-spacing: -.015em; line-height: 1.15; }
.post-card p { color: var(--ink-2); font-size: .95rem; }
.post-card:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.journal__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }

/* contact (black + glass) */
.contact { position: relative; overflow: hidden; }
.contact::before { content: ""; position: absolute; width: 900px; height: 900px; left: 60%; top: 40%; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(200, 16, 46, .32), rgba(200, 16, 46, .08) 40%, transparent 68%); filter: blur(40px); pointer-events: none; }
.contact__grid { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.contact__grid > * { min-width: 0; }
.contact__direct { margin-top: 40px; display: grid; gap: 18px; }
.contact__direct div { display: grid; gap: 4px; }
.contact__direct a, .contact__direct p { color: var(--night-ink); text-decoration: none; font-size: 1.02rem; }
.contact__direct a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.form { position: relative; padding: clamp(26px, 3.4vw, 48px); border-radius: 22px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.form .corner { background: rgba(242, 242, 240, .7); }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.field { display: grid; gap: 6px; padding: 14px 0 10px; border-bottom: 1px solid rgba(242, 242, 240, .18); min-width: 0; }
.field:focus-within { border-bottom-color: var(--night-ink); }
.field label { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--night-mute); }
.field input, .field textarea, .field select { width: 100%; border: 0; outline: 0; background: transparent; color: var(--night-ink); font: inherit; font-size: 1rem; padding: 4px 0; border-radius: 0; }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--night-mute) 50%), linear-gradient(135deg, var(--night-mute) 50%, transparent 50%); background-position: calc(100% - 10px) 55%, calc(100% - 5px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { color: var(--ink); }
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(242, 242, 240, .32); }
.field__err { font-size: .78rem; color: #FF8A98; min-height: 0; }
.field.is-invalid { border-bottom-color: #FF8A98; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 22px; font-size: .86rem; color: rgba(242, 242, 240, .7); }
.consent input { margin-top: 3px; accent-color: var(--stone); width: 16px; height: 16px; flex: none; }
.consent a { color: var(--night-ink); }
.form__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 26px; flex-wrap: wrap; }
.form__status { font-size: .9rem; color: var(--night-mute); }
.form__status.is-error { color: #FF8A98; }
.form__done { display: none; padding: 32px 0; }
.form.is-done .form__done { display: block; }
.form.is-done .form__body { display: none; }
.form__done h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.form__done p { margin-top: 12px; color: rgba(242, 242, 240, .74); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { margin-top: 18px; min-height: 0; }

/* footer */
.footer { --logo-frame: #FFFFFF; --logo-fill: transparent; --logo-mark: #FFFFFF; background: var(--night); color: var(--night-ink); padding-top: clamp(64px, 8vw, 110px); padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); overflow: hidden; border-top: 1px solid var(--night-line); }
.footer__cols { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer__cols > * { min-width: 0; }
.footer__cols h2 { font-family: var(--f-mono); font-weight: 500; font-size: var(--t-label); letter-spacing: .14em; text-transform: uppercase; color: var(--night-mute); line-height: 1.4; }
.footer__cols ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.footer__cols a { text-decoration: none; color: rgba(242, 242, 240, .82); }
.footer__cols a:hover { color: #fff; }
.footer__tag { font-family: var(--f-display); font-size: clamp(1.4rem, 2vw, 1.9rem); font-weight: 300; line-height: 1.2; max-width: 22ch; margin-top: 18px; }
.legal { margin-top: 56px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 32px; padding-block: 24px; border-block: 1px solid var(--night-line); font-size: .84rem; color: rgba(242, 242, 240, .7); }
.legal > div { min-width: 0; display: grid; gap: 4px; align-content: start; }
.legal b { font-family: var(--f-mono); font-weight: 500; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--night-mute); }
.legal .legal__name { grid-column: 1 / -1; font-size: .95rem; color: var(--night-ink); }
.wordmark { margin-top: 40px; font-family: var(--f-display); font-weight: 300; letter-spacing: -.06em; line-height: .78; font-size: clamp(5rem, 24vw, 23rem); color: var(--night-ink); white-space: nowrap; user-select: none; display: flex; align-items: flex-start; gap: .04em; }
.wordmark sup { font-family: var(--f-mono); font-size: .09em; letter-spacing: .1em; color: var(--stone); margin-top: .9em; font-weight: 500; }
.footer__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 28px; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .08em; color: var(--night-mute); text-transform: uppercase; }
.footer__base a { color: inherit; }

/* recognition (VACD) */
.recog { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(16px, 2vw, 28px); margin-top: clamp(40px, 5vw, 64px); }
.recog > * { min-width: 0; }
.recog__partner, .recog__press { border-radius: 20px; padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 12px; }
.recog__partner { background: var(--night); color: var(--night-ink); }
.recog__partner .label { color: var(--night-mute); }
.recog__name { font-family: var(--f-display); font-weight: 300; font-size: clamp(3.4rem, 6vw, 5.4rem); letter-spacing: -.04em; line-height: .95; margin-top: 8px; }
.recog__full { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(242, 242, 240, .7); }
.recog__partner .recog__body { color: rgba(242, 242, 240, .74); margin-top: auto; padding-top: 18px; }
.recog__press { border: 1px solid var(--line-strong); text-decoration: none; color: inherit; background: var(--glass); transition: border-color .35s var(--ease), transform .35s var(--ease); }
.recog__press:hover { border-color: var(--ink); transform: translateY(-2px); }
.recog__title { font-family: var(--f-display); font-weight: 300; font-size: clamp(1.7rem, 2.8vw, 2.5rem); letter-spacing: -.02em; line-height: 1.1; margin-top: 6px; }
.recog__en { color: var(--mute); font-style: italic; font-family: var(--f-display); font-size: 1.1rem; }
.recog__body { color: var(--ink-2); max-width: 60ch; }
.recog__read { margin-top: auto; padding-top: 10px; color: var(--ink); }

/* team */
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.member { display: grid; grid-template-columns: minmax(0, 168px) minmax(0, 1fr); gap: clamp(20px, 2.6vw, 36px); padding: clamp(28px, 3.4vw, 48px) clamp(20px, 3vw, 44px) clamp(28px, 3.4vw, 48px) 0; border-bottom: 1px solid var(--line); min-width: 0; }
.member:nth-child(even) { padding-left: clamp(20px, 3vw, 44px); padding-right: 0; border-left: 1px solid var(--line); }
.member__mono { aspect-ratio: 1; border-radius: 30%; border: 7px solid var(--logo-frame); background: var(--glass); display: grid; place-items: center; position: relative; box-shadow: 0 24px 50px -30px rgba(13, 13, 14, .4); }
.member__mono::before { content: ""; position: absolute; top: 18%; left: 50%; transform: translateX(-50%); width: 9px; height: 9px; border-radius: 50%; background: var(--stone); box-shadow: 0 0 0 4px rgba(200, 16, 46, .14); }
.member__mono span { font-family: var(--f-display); font-weight: 300; font-size: clamp(2.6rem, 4vw, 3.6rem); letter-spacing: -.04em; color: var(--logo-mark); margin-top: 10%; }
.member__body { min-width: 0; }
.member__name { font-size: clamp(1.9rem, 3vw, 2.7rem); margin-top: 12px; }
.member__focus { margin-top: 12px; }
.member__bio { margin-top: 16px; color: var(--ink-2); max-width: 52ch; }
.member .chips li { background: var(--paper-2); backdrop-filter: none; -webkit-backdrop-filter: none; border-color: var(--line); }

/* ---------- article pages ---------- */
.page-top { padding-top: clamp(130px, 16vw, 200px); }
.article { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 680px) minmax(0, 1fr); }
.article > * { grid-column: 2; min-width: 0; }
.crumbs { display: flex; gap: 10px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0 0 28px; }
.crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--line-strong); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.article__title { font-size: clamp(2.3rem, 5vw, 4.2rem); }
.article__meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.article__hero { grid-column: 1 / -1; margin: 44px 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 21 / 9; max-width: 1180px; justify-self: center; width: 100%; }
.article__hero img { width: 100%; height: 100%; object-fit: cover; }
.prose { font-size: 1.08rem; line-height: 1.75; color: var(--ink-2); }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); color: var(--ink); margin-top: 2.2em; line-height: 1.12; }
.prose h3 { font-family: var(--f-body); font-weight: 600; font-size: 1.12rem; letter-spacing: 0; color: var(--ink); margin-top: 1.8em; }
.prose a { color: var(--ink); text-decoration-color: var(--stone); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: var(--stone); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--mute); }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--stone); font-family: var(--f-display); font-size: 1.3rem; color: var(--ink); }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2.4em 0; }
.prose code { font-family: var(--f-mono); font-size: .88em; background: var(--paper-2); padding: 2px 6px; border-radius: 4px; }
.table-wrap { overflow-x: auto; margin-top: 1.6em; border-top: 1px solid var(--line-strong); }
.prose table { width: 100%; border-collapse: collapse; font-size: .94rem; line-height: 1.5; }
.prose th { text-align: left; font-family: var(--f-mono); font-weight: 500; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); padding: 14px 16px 12px 0; border-bottom: 1px solid var(--line); vertical-align: bottom; }
.prose td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.article__faq { margin-top: 64px; }
.article__faq h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); margin-bottom: 20px; }
.article__sources { margin-top: 56px; padding: 26px 28px; border-radius: var(--radius); background: var(--paper-2); }
.article__sources ol { margin: 14px 0 0; padding-left: 1.2em; display: grid; gap: 8px; font-size: .92rem; }
.article__sources a { color: var(--ink-2); word-break: break-word; }
.article__cta { margin-top: 56px; padding: clamp(26px, 4vw, 44px); border-radius: 22px; background: var(--night); color: var(--night-ink); position: relative; overflow: hidden; }
.article__cta::before { content: ""; position: absolute; right: -120px; top: -160px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(200, 16, 46, .45), transparent 65%); filter: blur(20px); }
.article__cta h2 { position: relative; font-size: clamp(1.6rem, 2.6vw, 2.3rem); }
.article__cta p { position: relative; margin-top: 12px; color: rgba(242, 242, 240, .74); max-width: 48ch; }
.article__cta .btn { position: relative; margin-top: 24px; }
.blog-hero { padding-top: clamp(140px, 17vw, 210px); padding-bottom: clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.blog-hero h1 { font-size: var(--t-hero); margin-top: 18px; max-width: 16ch; }
.blog-hero p { margin-top: 24px; max-width: 56ch; font-size: var(--t-lead); color: var(--ink-2); }
.note { margin-top: 18px; color: var(--mute); font-size: .9rem; }
.simple { max-width: 720px; }
.simple h1 { font-size: clamp(2.3rem, 5vw, 4rem); }
.simple .prose { margin-top: 32px; }
.notfound { min-height: 80vh; display: grid; align-content: center; gap: 24px; }

/* ---------- reveal on scroll (content is visible by default) ---------- */
.js .reveal { transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-pending { opacity: 0; transform: translateY(24px); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__menu-btn { display: inline-flex; }
  .drawer[open] { display: block; position: fixed; inset: 0; z-index: 85; background: rgba(245, 245, 244, .92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); padding: calc(110px + env(safe-area-inset-top, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px)) 40px max(var(--gutter), env(safe-area-inset-left, 0px)); color: var(--ink); }
  .drawer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
  .drawer a { display: block; font-family: var(--f-display); font-size: 2.4rem; font-weight: 300; text-decoration: none; padding: 6px 0; border-bottom: 1px solid var(--line); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3) { padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .modules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 0; }
  .footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__cols > :first-child { grid-column: 1 / -1; }
  .legal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .js .world__scrim { background: linear-gradient(0deg, var(--scrim) 0%, color-mix(in srgb, var(--scrim) 92%, transparent) 34%, color-mix(in srgb, var(--scrim) 30%, transparent) 58%, transparent 74%); }
  .js .chapter { left: max(var(--gutter), env(safe-area-inset-left, 0px)); right: max(var(--gutter), env(safe-area-inset-right, 0px)); top: auto; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); width: auto; transform: none; }
  .scene__media { transform: translateY(-11vh) scale(1.02); }
  .scene__still, .scene__video { object-position: center 50%; }
  .chapter__title, .chapter:first-child .chapter__title { font-size: clamp(1.85rem, 8.4vw, 2.7rem); }
  .chapter__body { font-size: 1rem; margin-top: 14px; }
  .chapter__eyebrow { margin-top: 14px; }
  .chips { margin-top: 16px; }
  .chips li:nth-child(n+3) { display: none; }
  .chapter:first-child .chips { display: none; }
  .chapter__cta { margin-top: 18px; gap: 8px; }
  .chapter__cta .btn { padding: 12px 15px; font-size: .7rem; }
  .hud__hint span { display: none; }
  .js .world__rail { display: none; }
  .hud__status { display: none; }
  .hud__progress { width: 80px; }
  .section__head, .rs__top, .faq, .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .pillars, .posts { grid-template-columns: minmax(0, 1fr); }
  .gem { max-width: 380px; }
  .sec__grid { grid-template-columns: minmax(0, 1fr); }
  .sec__item:nth-child(odd) { border-right: 0; }
  .sec__item:nth-child(even) { padding-left: 0; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .fact + .fact { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 24px; }
  .clients { grid-template-columns: minmax(0, 1fr); }
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .faq details p { padding-right: 0; }
  .team { grid-template-columns: minmax(0, 1fr); }
  .recog { grid-template-columns: minmax(0, 1fr); }
  .member, .member:nth-child(even) { padding-left: 0; padding-right: 0; border-left: 0; }
}
@media (max-width: 560px) {
  .nav { padding-top: 10px; }
  .nav__bar { padding-left: 14px; gap: 8px; }
  .nav .btn--ink { display: none; }
  .stats, .modules, .steps { grid-template-columns: minmax(0, 1fr); }
  .stat, .stat + .stat { padding-left: 0; border-right: 0; border-top: 1px solid var(--line); }
  .stat:first-child { border-top: 0; }
  .footer__cols, .legal { grid-template-columns: minmax(0, 1fr); }
  .article__hero { aspect-ratio: 16 / 10; }
  .member { grid-template-columns: minmax(0, 1fr); }
  .member__mono { width: 112px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal.is-pending { opacity: 1; transform: none; }
}
