/* ==========================================================================
   Hongdoc Studio — 2026
   Fonts: Inter, Pretendard, Geist Mono (SIL OFL), self-hosted & subset.
   ========================================================================== */

@font-face { font-family: "Inter"; src: url(../assets/fonts/inter.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
/* Korean: the core subset (declared last, so checked first) holds every glyph the page uses;
   the extended KS X 1001 set only downloads if new copy needs a syllable the core lacks. */
@font-face { font-family: "Pretendard"; src: url(../assets/fonts/pretendard-ext.woff2) format("woff2"); font-weight: 45 920; font-display: swap; unicode-range: U+AC00-D7A3, U+3131-318E; }
@font-face { font-family: "Pretendard"; src: url(../assets/fonts/pretendard.woff2) format("woff2"); font-weight: 45 920; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(../assets/fonts/geist-mono.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #07101f;
  --bg-2: #0b1730;
  --bg-3: #10203e;
  --ink: #f5f8ff;
  --muted: #a5b4cd;
  --dim: #6f809c;
  --line: rgba(129, 183, 255, .16);
  --line-2: rgba(129, 183, 255, .28);
  --blue: #81b7ff;
  --blue-hi: #dbeaff;
  --blue-deep: #3b6fd8;
  --sans: "Inter", "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --kr: "Pretendard", "Inter", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --pad: clamp(20px, 4vw, 64px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --header-h: 76px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: auto; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1rem/1.7 var(--kr); word-break: keep-all; overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
img, svg, canvas, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--blue); color: var(--bg); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mono { font-family: var(--mono); font-size: 12px; font-weight: 450; letter-spacing: .14em; text-transform: uppercase; line-height: 1.6; }
.skip { position: fixed; left: 16px; top: 16px; z-index: 300; padding: 10px 16px; border-radius: 99px; background: var(--blue); color: var(--bg); font-weight: 650; transform: translateY(-160%); transition: transform .3s var(--ease); }
.skip:focus { transform: none; }

/* lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- ambient layers ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.4 -.25'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}
.progress { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 120; pointer-events: none; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue-deep), var(--blue), var(--blue-hi)); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 400; pointer-events: none; display: none; }
.has-cursor .cursor { display: block; }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor summary { cursor: none; }
.cursor__dot, .cursor__ring { position: absolute; left: 0; top: 0; border-radius: 50%; will-change: transform; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff; mix-blend-mode: difference; }
.cursor__ring {
  width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 1px solid rgba(255, 255, 255, .55);
  display: grid; place-items: center; mix-blend-mode: difference;
  transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background-color .45s var(--ease), border-color .45s var(--ease);
}
.cursor__label { font: 600 10px/1 var(--mono); letter-spacing: .16em; color: #000; opacity: 0; transform: scale(.6); transition: opacity .3s, transform .45s var(--ease); }
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .9); }
.cursor.has-label .cursor__ring { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: #fff; border-color: #fff; }
.cursor.has-label .cursor__label { opacity: 1; transform: none; }
.cursor.has-label .cursor__dot { opacity: 0; }
.cursor.is-hidden { opacity: 0; }

/* ---------- buttons ---------- */
.pill {
  --h: 44px;
  display: inline-flex; align-items: center; gap: 12px; min-height: var(--h); padding: 0 20px;
  border-radius: 99px; border: 1px solid var(--line-2); color: var(--ink); font: 600 .9375rem/1 var(--kr);
  background: rgba(7, 16, 31, .35); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  position: relative; overflow: hidden; isolation: isolate; white-space: nowrap;
  transition: color .5s var(--ease), border-color .5s var(--ease);
}
.pill::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--blue);
  transform: translateY(102%); transition: transform .55s var(--ease);
}
.pill:hover { color: var(--bg); border-color: var(--blue); }
.pill:hover::before { transform: none; }
.pill--solid { background: var(--blue); border-color: var(--blue); color: var(--bg); }
.pill--solid::before { background: var(--ink); }
.pill--solid:hover { border-color: var(--ink); }
.pill--lg { --h: 56px; padding: 0 26px; font-size: 1rem; }
.pill .mono { font-size: 11px; opacity: .65; }

/* ---------- header ---------- */
.header {
  position: fixed; left: 0; right: 0; top: 0; z-index: 100; height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 0 var(--pad);
  transition: transform .6s var(--ease), background-color .6s, backdrop-filter .6s;
}
.header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); opacity: 0; transition: opacity .6s; }
.header.is-scrolled { background: rgba(7, 16, 31, .62); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); }
.header.is-scrolled::after { opacity: 1; }
.header.is-hidden { transform: translateY(-110%); }
.brand { display: inline-flex; align-items: center; gap: 12px; justify-self: start; }
.brand__mark { width: 30px; height: 30px; fill: var(--blue); filter: drop-shadow(0 0 18px rgba(85, 156, 255, .35)); transition: transform .6s var(--ease); }
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.08); }
.brand__word { font: 700 1.125rem/1.02 var(--sans); letter-spacing: -.05em; }
.brand__word small { display: block; font: 500 .625rem/1.6 var(--sans); letter-spacing: .32em; color: var(--muted); }
.nav { display: flex; gap: 4px; padding: 5px; border-radius: 99px; border: 1px solid var(--line); background: rgba(7, 16, 31, .4); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav a { position: relative; display: block; padding: 8px 16px; border-radius: 99px; font-size: .875rem; font-weight: 550; color: var(--muted); overflow: hidden; transition: color .4s, background-color .4s; }
.nav a:hover, .nav a.is-active { color: var(--ink); background: rgba(129, 183, 255, .12); }
.roll { display: inline-block; overflow: hidden; vertical-align: top; line-height: 1.35; }
.roll > span { display: inline-block; position: relative; transition: transform .5s var(--ease); }
.roll > span::after { content: attr(data-text); position: absolute; left: 0; top: 100%; }
[data-roll]:hover .roll > span { transform: translateY(-100%); }
.header__actions { display: flex; align-items: center; gap: 10px; justify-self: end; }
.header__cta { --h: 40px; padding: 0 18px; font-size: .875rem; }
.motion-toggle { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px; border-radius: 99px; color: var(--muted); font-size: .8125rem; font-weight: 550; transition: color .3s, background-color .3s; }
.motion-toggle:hover { color: var(--ink); background: rgba(129, 183, 255, .1); }
.motion-toggle:disabled { opacity: .55; cursor: not-allowed; }
.motion-toggle__icon { width: 10px; height: 11px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.motion-toggle[aria-pressed="true"] .motion-toggle__icon { border: 0; width: 0; height: 0; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); place-items: center; }
.menu-btn__lines, .menu-btn__lines::before { display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative; transition: transform .5s var(--ease); }
.menu-btn__lines::before { content: ""; position: absolute; top: 6px; }
.menu-btn__lines { transform: translateY(-3px); }
.menu-btn[aria-expanded="true"] .menu-btn__lines { transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__lines::before { transform: translateY(-6px) rotate(-90deg); }
.menu { position: fixed; inset: 0; z-index: 95; background: rgba(7, 16, 31, .96); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); padding: calc(var(--header-h) + 40px) var(--pad) 40px; display: flex; flex-direction: column; justify-content: space-between; }
.menu[hidden] { display: none; }
.menu__list a { display: flex; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font: 700 clamp(2.4rem, 11vw, 4rem)/1.05 var(--kr); letter-spacing: -.04em; }
.menu__list .mono { color: var(--blue); font-size: 12px; }
.menu__mail { font-size: 1.125rem; color: var(--blue); }

/* ---------- shared section bits ---------- */
.eyebrow { display: inline-flex; gap: 10px; align-items: center; color: var(--muted); }
.eyebrow span { color: var(--blue); }
.section-head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 28px; padding: 0 var(--pad); }
.section-head .eyebrow { grid-column: 1 / -1; }
.section-title { grid-column: 1 / span 8; font: 760 clamp(2.75rem, 7vw, 7.5rem)/.98 var(--kr); letter-spacing: -.05em; }
.section-title--xl { font-size: clamp(3.2rem, 9.5vw, 10rem); grid-column: 1 / -1; }
.tone { background: linear-gradient(105deg, var(--blue-hi) 4%, #83b6ff 70%, #5d97ff); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 520; }
.section-lede { grid-column: 9 / -1; align-self: end; color: var(--muted); font-size: clamp(1rem, 1.15vw, 1.125rem); line-height: 1.75; }
.split-line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }

/* ---------- hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; isolation: isolate;
  background: radial-gradient(ellipse 70% 60% at 50% 44%, #13306066, transparent 70%), radial-gradient(ellipse 50% 50% at 88% 10%, #17356a40, transparent 70%); }
.hero__orbit { position: absolute; left: 50%; top: 45%; width: min(64vh, 54vw); aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; }
.hero__fallback { position: absolute; left: 50%; top: 45%; width: min(64vh, 54vw); height: auto; transform: translate(-50%, -50%); mix-blend-mode: screen; opacity: .95; z-index: 1;
  -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent); mask-image: radial-gradient(closest-side, #000 72%, transparent); }
.gl-on .hero__fallback { display: none; }
.hero__gl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.hero__title {
  position: absolute; z-index: 1; left: var(--pad); right: var(--pad); top: 53%; transform: translateY(-50%);
  font: 760 clamp(3.4rem, 14.4vw, 17rem)/.86 var(--sans); letter-spacing: -.055em; pointer-events: none; user-select: none;
}
.hero__line { display: block; white-space: nowrap; }
.hero__line--2 { text-align: right; font-weight: 440; color: #9cc6ff; }
.hero__line .char { display: inline-block; text-align: center; will-change: transform; }
.hero__hud { position: absolute; inset: calc(var(--header-h) + 8px) var(--pad) 22px; z-index: 3; pointer-events: none; }
.corner { position: absolute; width: 18px; height: 18px; border: 0 solid var(--line-2); }
.corner--tl { left: 0; top: 0; border-left-width: 1px; border-top-width: 1px; }
.corner--tr { right: 0; top: 0; border-right-width: 1px; border-top-width: 1px; }
.corner--bl { left: 0; bottom: 0; border-left-width: 1px; border-bottom-width: 1px; }
.corner--br { right: 0; bottom: 0; border-right-width: 1px; border-bottom-width: 1px; }
.hud { position: absolute; top: 14px; font-size: 11px; color: var(--muted); }
.hud span { color: var(--dim); }
.hud--l { left: 28px; }
.hud--r { right: 28px; text-align: right; }
.hud--r [data-clock] { color: var(--blue); }
.hud--hint { top: auto; bottom: 120px; left: 50%; transform: translateX(-50%); color: var(--dim); white-space: nowrap; transition: opacity .6s; }
.hud--hint.is-gone { opacity: 0; }
.hero__foot {
  position: absolute; z-index: 4; left: var(--pad); right: var(--pad); bottom: 44px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: 32px;
}
.hero__lede { max-width: 400px; color: var(--muted); font-size: .9375rem; line-height: 1.7; }
.hero__lede strong { display: block; color: var(--ink); font-size: 1.0625rem; font-weight: 650; margin-bottom: 4px; }
.hero__actions { display: flex; gap: 12px; }
.showreel-btn__play { width: 0; height: 0; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.hero__scroll { justify-self: end; display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 11px; }
.hero__scroll span { width: 64px; height: 1px; background: var(--line-2); position: relative; overflow: hidden; }
.hero__scroll span::after { content: ""; position: absolute; inset: 0; background: var(--blue); transform: translateX(-100%); animation: scrollcue 2.2s var(--ease-io) infinite; }
@keyframes scrollcue { 0% { transform: translateX(-100%); } 55% { transform: translateX(0); } 100% { transform: translateX(100%); } }

/* pre-entrance state (only when JS + motion are on) */
.js:not(.no-motion) .hero__title, .js:not(.no-motion) .hero__foot, .js:not(.no-motion) .hero__hud, .js:not(.no-motion) .hero__gl, .js:not(.no-motion) .hero__fallback { visibility: hidden; }
.js.hero-ready .hero__title, .js.hero-ready .hero__foot, .js.hero-ready .hero__hud, .js.hero-ready .hero__gl, .js.hero-ready .hero__fallback { visibility: visible; }

/* ---------- manifesto ---------- */
.manifesto { padding: clamp(120px, 20vh, 220px) var(--pad) clamp(80px, 12vh, 140px); display: grid; gap: 40px; }
.manifesto__text { font: 680 clamp(2rem, 4.9vw, 5.25rem)/1.12 var(--kr); letter-spacing: -.045em; max-width: 1500px; }
.inline-icon { display: inline-block; width: .92em; height: .92em; vertical-align: -.12em; margin: 0 .08em 0 .18em; border-radius: 22%; box-shadow: 0 .12em .4em rgba(0, 0, 0, .45); }
.manifesto__en { color: var(--blue); }
.fill-word { display: inline; }

/* ---------- marquee ---------- */
.marquee { padding: 24px 0 clamp(80px, 12vh, 140px); overflow: hidden; display: grid; gap: 4px; }
.marquee__row { display: flex; white-space: nowrap; }
.marquee__track { display: flex; align-items: center; gap: .45em; padding-right: .45em; flex: none; font: 800 clamp(3rem, 8.5vw, 9rem)/1 var(--sans); letter-spacing: -.045em; will-change: transform; }
.marquee__track i { font-style: normal; color: var(--blue); font-weight: 300; font-size: .7em; }
.marquee__row--outline .marquee__track { color: transparent; -webkit-text-stroke: 1.2px rgba(129, 183, 255, .55); font-weight: 600; }
.marquee__row--outline .marquee__track i { -webkit-text-stroke: 0; color: var(--line-2); }

/* ---------- apps ---------- */
.apps { position: relative; }
.apps > .section-head { padding-bottom: clamp(56px, 9vh, 96px); }
.apps__index { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; }
.apps__index a { display: inline-flex; align-items: center; gap: 12px; padding: 8px 18px 8px 8px; border-radius: 99px; border: 1px solid var(--line); font-weight: 600; transition: border-color .4s, background-color .4s; }
.apps__index a:hover { border-color: var(--blue); background: rgba(129, 183, 255, .08); }
.apps__index img { width: 32px; height: 32px; border-radius: 9px; }
.apps__index .mono { color: var(--blue); margin-left: 6px; }
.apps__pin { position: relative; }
.apps__track { display: flex; flex-direction: column; }
.world {
  --w-bg: #0b0a10; --w-ink: var(--ink); --w-muted: var(--muted); --w-accent: var(--blue); --w-line: var(--line-2);
  position: relative; flex: none; width: 100%; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; background: var(--w-bg); color: var(--w-ink);
}
/* horizontal, scroll-pinned sequence only when JS + motion are on (desktop) */
@media (min-width: 1024px) {
  .js:not(.no-motion) .apps__pin { height: 100vh; height: 100svh; overflow: hidden; }
  .js:not(.no-motion) .apps__track { flex-direction: row; width: max-content; height: 100%; will-change: transform; }
  .js:not(.no-motion) .world { width: 100vw; height: 100%; min-height: 0; }
}
.world--fg { --w-bg: #0a090e; --w-accent: #d9b25f; --w-line: rgba(217, 178, 95, .35); }
.world--hm { --w-bg: #061224; --w-accent: #4f9fff; --w-line: rgba(79, 159, 255, .35); }
.world--ma { --w-bg: #050c1d; --w-accent: #e3c27a; --w-line: rgba(227, 194, 122, .35); }
.world--ti { --w-bg: #f3eee2; --w-ink: #1f3550; --w-muted: #5c6b7f; --w-accent: #3f7f86; --w-line: rgba(31, 53, 80, .25); }
.world__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.world__scrim { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, var(--w-bg) 0%, transparent 56%); background: linear-gradient(90deg, var(--w-bg) 0%, color-mix(in srgb, var(--w-bg) 78%, transparent) 28%, transparent 52%); }
.world__copy { position: absolute; z-index: 2; left: var(--pad); top: 50%; transform: translate3d(var(--px, 0px), -46%, 0); width: min(520px, 38vw); display: grid; gap: 22px; }
.world__meta { display: flex; gap: 18px; color: var(--w-accent); }
.world__meta span + span { color: var(--w-muted); }
.world__id { display: flex; align-items: center; gap: 18px; }
.world__id img { width: 64px; height: 64px; border-radius: 15px; box-shadow: 0 14px 40px rgba(0, 0, 0, .35); }
.world__id h3 { font: 780 clamp(2.6rem, 4.6vw, 4.75rem)/.95 var(--sans); letter-spacing: -.055em; }
.world--hm .world__id h3, .world--ma .world__id h3 { font-family: var(--kr); letter-spacing: -.05em; }
.world__id p { margin-top: 8px; color: var(--w-muted); font-size: .9375rem; font-weight: 500; }
.world__headline { font: 650 clamp(1.4rem, 2vw, 2rem)/1.32 var(--kr); letter-spacing: -.035em; }
.world__desc { color: var(--w-muted); font-size: .9688rem; line-height: 1.8; max-width: 440px; }
.world__features { display: flex; flex-wrap: wrap; gap: 8px; }
.world__features li { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px; border-radius: 99px; border: 1px solid var(--w-line); font-size: .875rem; font-weight: 550; }
.world__features .mono { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--w-accent); color: var(--w-bg); font-size: 10px; letter-spacing: 0; font-weight: 700; }
.world__links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.store { display: inline-flex; align-items: center; gap: 14px; height: 46px; padding: 0 20px; border-radius: 99px; background: var(--w-ink); color: var(--w-bg); font-weight: 650; font-size: .9375rem; position: relative; overflow: hidden; isolation: isolate; transition: color .5s var(--ease); }
.store::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--w-accent); transform: translateY(102%); transition: transform .55s var(--ease); }
.store:hover::before { transform: none; }
.world__platform { color: var(--w-muted); margin-left: 6px; font-size: 11px; }
.world__shot { position: absolute; z-index: 2; right: 5.5vw; bottom: -9vh; width: clamp(190px, 16.5vw, 300px); border-radius: 30px; overflow: hidden; transform: translate3d(var(--px, 0px), 0, 0) rotate(-7deg);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .08); transform-style: preserve-3d; }
.world--ti .world__shot { box-shadow: 0 40px 90px rgba(60, 40, 10, .28), 0 0 0 1px rgba(31, 53, 80, .12); }
.world__shot img { width: 100%; height: auto; }
.apps__hud { display: none; }
.js:not(.no-motion) .apps__hud { position: absolute; z-index: 5; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; padding: 10px 16px; border-radius: 99px;
  background: rgba(7, 16, 31, .55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line); color: var(--ink); }
.apps__hud-no { font-size: 11px; }
.apps__hud-rail { width: 120px; height: 2px; background: var(--line); overflow: hidden; border-radius: 2px; }
.apps__hud-rail span { display: block; height: 100%; background: var(--blue); transform-origin: 0 50%; transform: scaleX(.25); }

/* ---------- journal ---------- */
.journal { position: relative; padding: clamp(120px, 18vh, 200px) 0 clamp(80px, 12vh, 140px); }
.journal > .section-head { padding-bottom: clamp(48px, 8vh, 88px); }
.journal__list { padding: 0 var(--pad); border-bottom: 1px solid var(--line); }
.entry { border-top: 1px solid var(--line); position: relative; }
.entry summary { list-style: none; display: grid; grid-template-columns: 64px 230px minmax(0, 1fr) 52px; align-items: center; gap: 16px; padding: 34px 0; position: relative; isolation: isolate; }
.entry summary::-webkit-details-marker { display: none; }
.entry summary::before { content: ""; position: absolute; inset: 0 calc(var(--pad) * -1); z-index: -1; background: linear-gradient(90deg, rgba(129, 183, 255, .1), rgba(129, 183, 255, .02)); transform: scaleY(0); transform-origin: 50% 100%; transition: transform .6s var(--ease); }
.entry summary:hover::before, .entry[open] summary::before { transform: none; }
.entry__no { color: var(--blue); }
.entry__cat { color: var(--dim); }
.entry__title { font: 650 clamp(1.4rem, 2.6vw, 2.6rem)/1.2 var(--kr); letter-spacing: -.04em; transition: transform .6s var(--ease), color .4s; }
.entry summary:hover .entry__title { transform: translateX(14px); }
.entry__icon { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; transition: background-color .4s, transform .6s var(--ease); }
.entry__icon::before, .entry__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 1.5px; margin: -.75px 0 0 -8px; background: var(--ink); transition: transform .6s var(--ease); }
.entry__icon::after { transform: rotate(90deg); }
.entry[open] .entry__icon { background: var(--blue); transform: rotate(45deg); }
.entry[open] .entry__icon::before, .entry[open] .entry__icon::after { background: var(--bg); }
.entry.is-closing .entry__icon { background: transparent; transform: none; }
.entry.is-closing .entry__icon::before, .entry.is-closing .entry__icon::after { background: var(--ink); }
.entry.is-closing summary::before { transform: scaleY(0); }
.entry__body { overflow: hidden; }
.entry__inner { padding: 0 52px 44px calc(64px + 230px + 32px); display: grid; gap: 16px; max-width: 1180px; color: var(--muted); line-height: 1.85; }
.arrow-link { justify-self: start; display: inline-flex; gap: 10px; color: var(--blue); font-weight: 650; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.arrow-link span { transition: transform .4s var(--ease); }
.arrow-link:hover span { transform: translateX(6px); }
.journal__float { position: fixed; left: 0; top: 0; z-index: 60; width: 168px; height: 168px; pointer-events: none; opacity: 0; transition: opacity .35s; }
.journal__float.is-on { opacity: 1; }
.journal__float img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 22%; box-shadow: 0 30px 70px rgba(0, 0, 0, .5); opacity: 0; transform: scale(.8) rotate(-8deg); transition: opacity .35s, transform .55s var(--ease); }
.journal__float img.is-on { opacity: 1; transform: rotate(-6deg); }

/* ---------- studio ---------- */
.studio { padding: clamp(120px, 18vh, 200px) 0; }
.studio > .section-head { padding-bottom: clamp(56px, 9vh, 100px); }
.studio__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 56px; padding: 0 var(--pad); }
.studio__statement { grid-column: 1 / span 7; font: 620 clamp(1.6rem, 2.9vw, 3rem)/1.4 var(--kr); letter-spacing: -.035em; }
.studio__side { grid-column: 9 / -1; display: grid; gap: 40px; align-content: start; }
.studio__en { color: var(--muted); font: 400 1rem/1.8 var(--sans); letter-spacing: -.01em; }
.specs { border-top: 1px solid var(--line); }
.specs__row { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--dim); }
.specs dd { font-weight: 600; text-align: right; }
.principles { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: clamp(80px, 12vh, 140px) var(--pad) 0; }
.principle { --mx: 50%; --my: 50%; position: relative; overflow: hidden; isolation: isolate; min-height: 320px; padding: 36px; border-radius: 28px; border: 1px solid var(--line); background: linear-gradient(160deg, var(--bg-2), var(--bg)); display: grid; align-content: space-between; gap: 40px; transform-style: preserve-3d; }
.principle__no { color: var(--blue); font-size: 12px; }
.principle h3 { font: 700 clamp(1.8rem, 3vw, 3rem)/1.15 var(--kr); letter-spacing: -.045em; }
.principle p { color: var(--muted); margin-top: 12px; max-width: 420px; }
.principle__glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(129, 183, 255, .2), transparent 60%); opacity: 0; transition: opacity .5s; }
.principle:hover .principle__glow { opacity: 1; }

/* ---------- connect ---------- */
.connect { padding: clamp(120px, 18vh, 200px) var(--pad) clamp(96px, 14vh, 160px); display: grid; gap: 28px; }
.connect__big { font: 760 clamp(4.2rem, 17vw, 19rem)/.84 var(--sans); letter-spacing: -.06em; margin-left: -.04em; }
.connect__big .char { display: inline-block; }
.connect__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 64px; margin-top: 32px; }
.connect__copy { grid-column: 1 / span 6; display: grid; gap: 36px; align-content: start; }
.connect__lede { color: var(--muted); font-size: clamp(1.05rem, 1.3vw, 1.25rem); line-height: 1.75; }
.connect__mail { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.mail { display: inline-flex; align-items: baseline; gap: 12px; font: 650 clamp(1.5rem, 3.1vw, 3.1rem)/1.15 var(--sans); letter-spacing: -.04em; color: var(--blue); background: linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat; padding-bottom: 6px; transition: background-size .6s var(--ease), color .4s; }
.mail:hover { background-size: 0 2px; background-position: 100% 100%; color: var(--blue-hi); }
.mail span { font-size: .6em; }
.channels { grid-column: 8 / -1; align-self: start; }
.channels__title { color: var(--muted); padding-bottom: 18px; }
.channels__title span { color: var(--dim); text-transform: none; letter-spacing: 0; font-family: var(--kr); }
.channel { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; padding: 22px 0; border-top: 1px solid var(--line); font: 650 clamp(1.15rem, 1.6vw, 1.5rem)/1.3 var(--kr); letter-spacing: -.03em; position: relative; }
.channel:last-child { border-bottom: 1px solid var(--line); }
.channel__no { color: var(--blue); }
.channel__arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-family: var(--sans); transition: background-color .4s, color .4s, transform .5s var(--ease); }
.channel:hover .channel__arrow { background: var(--blue); color: var(--bg); transform: rotate(45deg); }
.channel__name { transition: transform .6s var(--ease); }
.channel:hover .channel__name { transform: translateX(10px); }

/* ---------- footer ---------- */
.footer { position: relative; padding: 0 var(--pad); border-top: 1px solid var(--line); overflow: hidden; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding: 28px 0; color: var(--muted); font-size: .875rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer__links a:hover { color: var(--ink); }
.footer__top .mono { font-size: 11px; }
.footer__word { font: 760 25vw/.78 var(--sans); letter-spacing: -.07em; margin: 0 0 -.06em -.04em; white-space: nowrap;
  background: linear-gradient(180deg, var(--blue-hi) 10%, var(--blue) 55%, #2c5bb8); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; }
.footer__word .char { display: inline-block; background: inherit; -webkit-background-clip: text; background-clip: text; }

/* ---------- reveal states (JS + motion only) ---------- */
.js:not(.no-motion) [data-reveal] { opacity: 0; transform: translateY(28px); }
.js:not(.no-motion) [data-reveal].is-in { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1.2s var(--ease); }

/* ---------- intro overlay ---------- */
.intro { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; background: var(--bg); transition: opacity .5s ease, clip-path .9s var(--ease-io); clip-path: inset(0 0 0 0); }
.intro[hidden] { display: none; }
.intro-pending .intro[hidden] { display: grid; }
.intro.is-leaving { clip-path: inset(0 0 100% 0); pointer-events: none; }
.intro__video { width: 100%; height: 100%; object-fit: contain; background: var(--bg); }
.intro__bar { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: rgba(129, 183, 255, .15); }
.intro__bar span { display: block; height: 100%; background: var(--blue); transform-origin: 0 50%; transform: scaleX(0); }
.intro__controls { position: absolute; left: max(28px, env(safe-area-inset-left)); right: max(28px, env(safe-area-inset-right)); bottom: max(24px, env(safe-area-inset-bottom)); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.intro__playback { display: flex; align-items: center; gap: 8px; }
.intro__time { color: var(--muted); font-size: 11px; margin-left: 8px; }
.intro .pill { --h: 44px; font-size: .8125rem; }
.intro__status { position: absolute; bottom: 92px; left: 20px; right: 20px; text-align: center; font-size: .875rem; }
.intro-active { overflow: hidden; }

/* ---------- reduced motion / motion off ---------- */
.no-motion .grain { animation: none; }
.no-motion .hero__scroll span::after { animation: none; }
.no-motion *, .no-motion *::before, .no-motion *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
.no-motion .hud--hint { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .entry summary { grid-template-columns: 52px 1fr 52px; }
  .entry__cat { display: none; }
  .entry__inner { padding-left: calc(52px + 16px); }
  .world__copy { width: min(480px, 46vw); }
}
@media (max-width: 1023px) {
  :root { --header-h: 64px; }
  .header { grid-template-columns: 1fr auto; }
  .nav, .header__cta, .motion-toggle span:last-child { display: none; }
  .menu-btn { display: grid; }
  .section-title { grid-column: 1 / -1; }
  .section-lede { grid-column: 1 / -1; }
  /* apps become a vertical stack of full-bleed worlds */
  .world { height: auto; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; }
  .world__scrim { background: linear-gradient(0deg, var(--w-bg) 0%, transparent 66%); background: linear-gradient(0deg, var(--w-bg) 0%, color-mix(in srgb, var(--w-bg) 86%, transparent) 42%, transparent 64%); }
  .world__copy { position: relative; left: auto; top: auto; transform: none; width: auto; padding: 52vh var(--pad) 64px; }
  .world__shot { right: var(--pad); top: 12vh; bottom: auto; width: clamp(120px, 26vw, 200px); border-radius: 20px; }
  .js:not(.no-motion) .apps__hud { display: none; }
  .studio__statement, .studio__side { grid-column: 1 / -1; }
  .principles { grid-template-columns: 1fr; }
  .connect__copy, .channels { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .intro__controls { left: max(20px, env(safe-area-inset-left)); right: max(20px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); flex-direction: column; align-items: stretch; gap: 10px; }
  .intro__playback { justify-content: center; }
  .intro__time { white-space: nowrap; margin-left: 4px; }
  .intro__skip { width: 100%; justify-content: center; }
  .intro__status { bottom: 124px; }
  .hero__orbit, .hero__fallback { top: 36%; width: 86vw; }
  .hero__title { top: 47%; font-size: 15.2vw; line-height: .92; }
  .hero__line--2 { text-align: left; }
  .hero__foot { grid-template-columns: 1fr; gap: 20px; bottom: 28px; }
  .hero__actions { flex-wrap: wrap; }
  .hero__actions .pill { flex: 1 1 auto; justify-content: center; }
  .hero__scroll, .hud--r, .hud--hint { display: none; }
  .hud { font-size: 10px; }
  .hud--l { left: 20px; }
  .manifesto__text { font-size: clamp(1.9rem, 8.4vw, 3rem); }
  .entry summary { grid-template-columns: 1fr 44px; padding: 26px 0; }
  .entry__no { display: none; }
  .entry__icon { width: 44px; height: 44px; }
  .entry__inner { padding: 0 0 36px; }
  .journal__float { display: none; }
  .principle { min-height: 240px; padding: 28px; }
  .world__copy { padding-top: 46vh; gap: 18px; }
  .world__id img { width: 52px; height: 52px; border-radius: 12px; }
  .footer__word { font-size: 25vw; }
}
