/* HuzanoTech — one dark, cinematic world for the studio and its apps.
   Graphite ground, warm paper-white type, a titanium accent; each app page
   swaps in its own --accent / --accent2. Everything reads without JS. */

:root {
  --ink: #09090a;
  --ink-2: #0f0f11;
  --ink-3: #16161a;
  --line: rgba(236, 230, 218, .09);
  --line-2: rgba(236, 230, 218, .16);
  --text: #ece8df;
  --mute: #9a968d;
  --dim: #66635d;
  --ti: #cdb894;
  --ti-hi: #f1e5ca;
  --accent: #cdb894;
  --accent2: #8fa3c8;
  --sans: "Be Vietnam Pro", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gut: clamp(20px, 4.4vw, 64px);
  --max: 1320px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--ink); color: var(--text);
  font: 400 17px/1.6 var(--sans); letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: #0b0b0c; }
:focus-visible { outline: 2px solid var(--ti-hi); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.035em; line-height: 1.02; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
em, .serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; }
.mono, .eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; }
.eyebrow { color: var(--mute); display: inline-flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gut); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.grain { position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ── nav ─────────────────────────────────────────────── */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; padding-top: env(safe-area-inset-top, 0px); transition: background .5s, border-color .5s, backdrop-filter .5s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(9, 9, 10, .66); backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4); border-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; max-width: none; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 600; font-size: 16px; letter-spacing: -.02em; }
.brand-mark { width: 26px; height: 26px; border-radius: 7px; box-shadow: 0 0 0 1px var(--line-2); }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 14px; color: var(--mute); }
.nav-links a { transition: color .25s; }
.nav-links a:hover { color: var(--text); }
.nav-links .pill { color: var(--text); padding: 9px 16px 9px 14px; border-radius: 99px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); display: inline-flex; align-items: center; gap: 8px; transition: background .25s, border-color .25s; }
.nav-links .pill:hover { background: rgba(255, 255, 255, .08); border-color: rgba(236, 230, 218, .3); }
.nav-links .pill svg { width: 14px; height: 14px; }
@media (max-width: 760px) { .nav-links .hide-s { display: none; } .nav-links { gap: 18px; } }

/* ── buttons ─────────────────────────────────────────── */
.btns { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 26px; border-radius: 99px; font-weight: 500; font-size: 15px; letter-spacing: -.01em; transition: transform .35s var(--ease), background .3s, box-shadow .3s, border-color .3s; }
.btn:hover { transform: translateY(-2px); }
.btn.solid { background: var(--text); color: #0b0b0c; box-shadow: 0 10px 40px -10px rgba(241, 229, 202, .35); }
.btn.solid:hover { box-shadow: 0 16px 50px -10px rgba(241, 229, 202, .5); }
.btn.ghost { border: 1px solid var(--line-2); color: var(--text); background: rgba(255, 255, 255, .02); }
.btn.ghost:hover { border-color: rgba(236, 230, 218, .34); background: rgba(255, 255, 255, .06); }
.btn svg { width: 18px; height: 18px; flex: none; margin-top: -2px; }
.btn { white-space: nowrap; }
.btn .arr { transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.store { display: inline-flex; align-items: center; gap: 13px; height: 62px; padding: 0 26px 0 22px; border-radius: 16px; background: var(--text); color: #0b0b0c; transition: transform .35s var(--ease), box-shadow .3s; box-shadow: 0 14px 44px -14px color-mix(in srgb, var(--accent) 70%, transparent); }
.store:hover { transform: translateY(-2px); }
.store svg { width: 26px; height: 26px; }
.store small { display: block; font-size: 11px; font-weight: 500; letter-spacing: .02em; opacity: .66; line-height: 1.1; }
.store b { display: block; font-size: 18px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.store.soon { background: transparent; color: var(--text); border: 1px solid var(--line-2); box-shadow: none; }

/* ── the device: a real 3D phone built from stacked frame slices ── */
.dev { --s: 1; position: relative; width: calc(19.5em); height: calc(40.6em); font-size: calc(16px * var(--s)); transform-style: preserve-3d; }
.dev-body { position: absolute; inset: 0; transform-style: preserve-3d; }
.dev .slice { position: absolute; inset: 0; border-radius: 3.15em; border: .2em solid #3b3a3f; }
.dev-front { position: absolute; inset: 0; border-radius: 3.15em; backface-visibility: hidden; -webkit-backface-visibility: hidden; transform-style: preserve-3d; transform: translateZ(.52em);
  background: linear-gradient(150deg, #9b978f 0%, #55524d 18%, #2e2d2b 42%, #3d3b38 64%, #8a867f 86%, #b3aea5 100%); }
.dev-front::before { content: ""; position: absolute; inset: .17em; border-radius: 2.99em; background: #020203; box-shadow: inset 0 0 0 .04em rgba(255, 255, 255, .1); }
.dev-screen { position: absolute; inset: .5em; border-radius: 2.67em; clip-path: inset(0 round 2.67em); isolation: isolate; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04); overflow: hidden; background: #000; transform: translateZ(.01em); }
.dev-screen .screens, .dev-screen .screens > * { position: absolute; inset: 0; }
.dev-screen .screens > * { opacity: 0; transition: opacity .55s ease; }
.dev-screen .screens > .on { opacity: 1; }
.dev-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.dev-screen .island { position: absolute; left: 50%; top: 1.25%; width: 30%; height: 3.9%; transform: translateX(-50%); border-radius: 99px; background: #000; z-index: 3; }
.dev-screen .glare { position: absolute; inset: 0; z-index: 4; pointer-events: none; background: linear-gradient(calc(110deg + var(--gl, 0) * 40deg), transparent 35%, rgba(255, 255, 255, .13) 48%, transparent 58%); mix-blend-mode: screen; }
.dev .btn-side { position: absolute; width: .26em; border-radius: .2em; background: linear-gradient(90deg, #2b2a2e, #6a6870, #2b2a2e); }
.dev .btn-side.l1 { left: -.22em; top: 8.6em; height: 2.2em; }
.dev .btn-side.l2 { left: -.22em; top: 12.4em; height: 3.6em; }
.dev .btn-side.l3 { left: -.22em; top: 16.8em; height: 3.6em; }
.dev .btn-side.r1 { right: -.22em; top: 12.8em; height: 5.6em; }
.dev .btn-side.r2 { right: -.16em; top: 24.4em; height: 3.3em; width: .2em; background: linear-gradient(90deg, #1b1b1e, #3c3c44, #1b1b1e); }
.dev .shadow { position: absolute; left: 8%; right: 8%; bottom: -3.4em; height: 3em; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .7), transparent); filter: blur(10px); transform: translateZ(-2em) rotateX(80deg); }
.rig { perspective: 2400px; perspective-origin: 50% 40%; }
.mover, .tilt { transform-style: preserve-3d; }

/* ── HOME: saga (hero + pinned 3D device through the apps) ───────── */
.saga { position: relative; }
.stage { position: relative; min-height: 100svh; overflow: hidden; background: radial-gradient(50% 60% at 74% 50%, rgba(205, 184, 148, .1), transparent 70%), var(--ink); }
#gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stage::after { content: ""; position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(transparent, var(--ink)); pointer-events: none; }
.hero-copy { position: relative; z-index: 3; padding: calc(150px + env(safe-area-inset-top, 0px)) var(--gut) 80px; max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; }
.hero-copy h1 { font-size: clamp(54px, 8.6vw, 142px); font-weight: 600; letter-spacing: -.055em; line-height: .92; margin: 30px 0 34px; max-width: 9.5em; }
.hero-copy h1 em { display: block; color: var(--ti-hi); font-weight: 300; letter-spacing: -.04em; padding-bottom: .06em; }
.hero-copy .lede { max-width: 30em; font-size: clamp(17px, 1.35vw, 20px); color: var(--mute); margin-bottom: 40px; }
.hero-copy .lede b { color: var(--text); font-weight: 500; }
.line { display: block; overflow: hidden; padding-bottom: .04em; }
.line > span { display: block; }
.stage-rig { position: absolute; z-index: 2; right: 7vw; top: 50%; transform: translateY(-46%); }
.stage-rig .dev { font-size: min(16.3px, calc((100svh - 170px) / 40.6)); }
.scroll-cue { position: absolute; z-index: 3; left: 50%; bottom: 28px; transform: translateX(-50%); color: var(--dim); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.scroll-cue i { width: 1px; height: 46px; background: linear-gradient(var(--dim), transparent); animation: cue 2.4s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* chapters that ride over the pinned stage (static, stacked when there is no motion) */
.chap { position: relative; z-index: 3; }
.chap-in { max-width: 30em; }
.chap .k { color: var(--mute); margin-bottom: 22px; display: flex; align-items: center; gap: 12px; }
.chap .k .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--ti)); box-shadow: 0 0 14px var(--c, var(--ti)); }
.chap h2 { font-size: clamp(46px, 6.4vw, 104px); letter-spacing: -.055em; line-height: .94; margin-bottom: 26px; }
.chap h2 em { color: var(--c, var(--ti-hi)); }
.chap p { color: var(--mute); font-size: clamp(17px, 1.3vw, 19px); max-width: 27em; }
.chap .btns { margin-top: 32px; }
.chap .app-id { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.chap .app-id img { width: 64px; height: 64px; border-radius: 15px; box-shadow: 0 0 0 1px var(--line-2), 0 18px 40px -12px var(--c); }
.chap .status { display: inline-flex; align-items: center; gap: 9px; padding: 7px 13px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--text); font-size: 11px; }
.chap .status.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #5fd38d; box-shadow: 0 0 10px #5fd38d; }
.chap .facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; color: var(--mute); font-size: 13px; }
.chap .facts b { color: var(--text); font-weight: 600; }
.static-shot { display: none; }

/* no-motion layout: chapters flow under the hero, each with a flat screenshot */
html:not(.motion) .chap { padding: 90px 0; border-top: 1px solid var(--line); }
html:not(.motion) .chap .wrap { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
html:not(.motion) .static-shot { display: block; width: 240px; border-radius: 30px; box-shadow: 0 0 0 6px #111, 0 0 0 7px #3b3a3f; }
html:not(.motion) .stage-rig { position: relative; right: auto; top: auto; transform: none; display: flex; justify-content: center; padding-bottom: 80px; }
@media (max-width: 760px) { html:not(.motion) .chap .wrap { grid-template-columns: 1fr; } html:not(.motion) .static-shot { width: 200px; } }

/* motion layout: the stage pins, chapters are layered in it */
html.motion .saga .stage { height: 100svh; }
html.motion .saga .chap { position: absolute; inset: 0; display: flex; align-items: center; pointer-events: none; }
html.motion .saga .chap .wrap { pointer-events: auto; max-width: calc(var(--max) + 2 * var(--gut)); }
html.motion .saga .chap.on .wrap { pointer-events: auto; }
html.motion .saga .chap:not(.on) .wrap { pointer-events: none; }
html.motion .hero-copy { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding-top: 68px; padding-bottom: 40px; }
.chap.back-chap .chap-in { max-width: 34em; }
.chap.back-chap h2 { font-size: clamp(42px, 5.6vw, 92px); }
.progress { position: absolute; z-index: 4; left: var(--gut); bottom: 34px; display: none; gap: 8px; }
html.motion .progress { display: flex; }
.progress i { width: 34px; height: 2px; border-radius: 2px; background: var(--line-2); overflow: hidden; position: relative; }
.progress i b { position: absolute; inset: 0; background: var(--ti-hi); transform-origin: left; transform: scaleX(0); }

@media (max-width: 900px) {
  .stage-rig { right: 50%; top: auto; bottom: -26svh; transform: translateX(50%); }
  .stage-rig .dev { font-size: min(11px, calc((100svh - 390px) / 40.6)); }
  .hero-copy .btns .btn { height: 50px; padding: 0 20px; }
  html.motion .hero-copy { justify-content: flex-start; padding-top: calc(112px + env(safe-area-inset-top, 0px)); }
  .hero-copy h1 { margin: 22px 0 22px; }
  .hero-copy .lede { margin-bottom: 26px; }
  html.motion .saga .chap { align-items: flex-start; padding-top: calc(104px + env(safe-area-inset-top, 0px)); }
  .chap h2 { margin-bottom: 16px; }
  .chap .app-id { margin-bottom: 16px; }
  .chap .app-id img { width: 52px; height: 52px; border-radius: 12px; }
  .chap .facts, .chap .btns { margin-top: 18px; }
  .scroll-cue { display: none; }
}
@media (max-width: 900px) and (max-height: 760px) { .chap p { font-size: 15.5px; } }

/* ── karaoke: words light up as you scroll ─────────────── */
.read { padding: clamp(110px, 16vw, 230px) 0 clamp(90px, 12vw, 170px); }
.read .eyebrow { margin-bottom: 40px; }
.kara { font-size: clamp(34px, 4.6vw, 72px); line-height: 1.12; letter-spacing: -.045em; font-weight: 500; max-width: 17em; }
.kara .w { transition: color .35s; }
html.motion .kara .w { color: rgba(236, 230, 218, .16); }
html.motion .kara .w.lit { color: var(--text); }
html.motion .kara .w.now { color: var(--ti-hi); }
.kara em { font-weight: 300; }

/* ── spec numbers ─────────────────────────────────────── */
.specs { border-top: 1px solid var(--line); }
.spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.spec { padding: 52px 30px 58px 0; border-right: 1px solid var(--line); }
.spec + .spec { padding-left: 30px; }
.spec:last-child { border-right: 0; }
.spec .n { font-size: clamp(56px, 6.4vw, 104px); font-weight: 600; letter-spacing: -.06em; line-height: .9; font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: .08em; }
.spec .n small { font-size: .36em; letter-spacing: -.02em; font-weight: 500; color: var(--mute); }
.spec .n .from { white-space: nowrap; font-size: .3em; color: var(--dim); text-decoration: line-through; text-decoration-thickness: 1px; margin-right: .3em; font-weight: 400; letter-spacing: 0; }
.spec p { margin-top: 20px; color: var(--mute); font-size: 15px; max-width: 18em; }
.spec .src { display: block; margin-top: 14px; color: var(--dim); }
@media (max-width: 900px) { .spec-grid { grid-template-columns: 1fr 1fr; } .spec:nth-child(2) { border-right: 0; } .spec:nth-child(n+3) { border-top: 1px solid var(--line); } .spec:nth-child(3) { padding-left: 0; } }
@media (max-width: 520px) { .spec-grid { grid-template-columns: 1fr; } .spec, .spec + .spec { border-right: 0; padding: 40px 0; } .spec + .spec { border-top: 1px solid var(--line); } }

/* ── section heads ────────────────────────────────────── */
.sec { padding: clamp(100px, 13vw, 190px) 0; }
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: clamp(50px, 7vw, 90px); }
.sec-head h2 { font-size: clamp(44px, 6vw, 96px); letter-spacing: -.055em; line-height: .95; margin-top: 26px; }
.sec-head p { color: var(--mute); max-width: 26em; justify-self: end; }
@media (max-width: 820px) { .sec-head { grid-template-columns: 1fr; } .sec-head p { justify-self: start; } }

/* ── apps index ───────────────────────────────────────── */
.apps-list { border-top: 1px solid var(--line); }
.app-row { position: relative; display: grid; grid-template-columns: 96px 1.1fr 1.3fr auto; gap: 34px; align-items: center; padding: 38px 0; border-bottom: 1px solid var(--line); isolation: isolate; }
.app-row::before { content: ""; position: absolute; left: -60px; top: -30%; width: 720px; height: 160%; z-index: -1; opacity: 0; transition: opacity .6s; pointer-events: none; background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 22%, transparent), transparent); }
.app-row:hover::before { opacity: 1; }
.app-row > img { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 0 0 1px var(--line-2); transition: transform .6s var(--ease); }
.app-row:hover > img { transform: rotate(-4deg) scale(1.04); }
.app-row h3 { font-size: clamp(34px, 3.6vw, 56px); letter-spacing: -.05em; }
.app-row .st { margin-top: 12px; display: flex; align-items: center; gap: 8px; color: var(--mute); }
.app-row .st.live { color: #7fdca2; }
.app-row .st.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #5fd38d; box-shadow: 0 0 10px #5fd38d; }
.app-row p { color: var(--mute); max-width: 28em; }
.app-row .go { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; font-size: 14px; white-space: nowrap; }
.app-row .go a { display: inline-flex; gap: 8px; align-items: center; color: var(--text); padding: 10px 18px; border-radius: 99px; border: 1px solid var(--line-2); transition: background .25s, border-color .25s; }
.app-row .go a:hover { background: rgba(255, 255, 255, .07); border-color: rgba(236, 230, 218, .32); }
.app-row .go a { justify-content: center; min-width: 150px; height: 44px; padding: 0 18px; }
.app-row .go a svg { width: 15px; height: 15px; flex: none; margin-top: -2px; }
.app-row .go a.pri { background: var(--text); color: #0b0b0c; border-color: transparent; }
@media (max-width: 900px) {
  .app-row { grid-template-columns: 72px 1fr; gap: 18px 22px; padding: 30px 0; }
  .app-row > img { width: 72px; height: 72px; border-radius: 17px; }
  .app-row p, .app-row .go { grid-column: 1 / -1; }
  .app-row .go { flex-direction: row; align-items: center; flex-wrap: wrap; }
}

/* ── studio principles ────────────────────────────────── */
.studio { border-top: 1px solid var(--line); background: linear-gradient(var(--ink-2), var(--ink)); }
.studio-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 120px); }
.studio-grid .sticky { position: sticky; top: 120px; align-self: start; }
.studio-grid h2 { font-size: clamp(44px, 5.4vw, 86px); letter-spacing: -.055em; line-height: .95; margin-top: 26px; }
.principle { padding: 44px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr; gap: 14px; }
.principle:last-child { border-bottom: 1px solid var(--line); }
.principle h3 { font-size: clamp(28px, 2.6vw, 40px); letter-spacing: -.04em; }
.principle h3 em { color: var(--ti-hi); }
.principle p { color: var(--mute); max-width: 32em; }
@media (max-width: 820px) { .studio-grid { grid-template-columns: 1fr; } .studio-grid .sticky { position: static; } }

/* ── contact + footer ─────────────────────────────────── */
.contact { padding: clamp(110px, 15vw, 220px) 0 clamp(80px, 10vw, 140px); text-align: left; position: relative; overflow: hidden; }
.contact::before { content: ""; position: absolute; left: 50%; top: 40%; width: 120vw; height: 70vw; max-height: 900px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(205, 184, 148, .12), transparent); pointer-events: none; }
.contact h2 { font-size: clamp(44px, 6vw, 96px); letter-spacing: -.055em; margin: 26px 0 50px; max-width: 12em; }
.big-mail { position: relative; display: inline-block; font-size: clamp(30px, 6.4vw, 108px); font-weight: 500; letter-spacing: -.055em; line-height: 1; word-break: break-word; }
.big-mail::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.12em; height: 2px; background: var(--ti); transform: scaleX(.18); transform-origin: left; transition: transform .8s var(--ease); }
.big-mail:hover::after { transform: scaleX(1); }
.big-mail .arr { display: inline-block; color: var(--ti); transition: transform .5s var(--ease); }
.big-mail:hover .arr { transform: translate(.08em, -.08em); }
.contact .note { margin-top: 44px; color: var(--mute); max-width: 32em; }

.foot { border-top: 1px solid var(--line); padding: 70px 0 0; overflow: hidden; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.foot-grid p { margin-top: 16px; color: var(--mute); font-size: 14px; max-width: 22em; }
.foot h4 { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); font-weight: 500; margin-bottom: 18px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; color: var(--mute); }
.foot ul a:hover { color: var(--text); }
.fine { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 60px; padding: 22px 0; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; }
.foot > .wrap { container-type: inline-size; }
/* "HuzanoTech" at 700 / -.07em is ≈5.46em wide, so 17.9cqw fills the column without spilling */
.wordmark { font-size: 17.9cqw; overflow: hidden; font-weight: 700; letter-spacing: -.07em; line-height: .78; margin: 50px 0 -0.1em; color: transparent; -webkit-text-stroke: 1px rgba(236, 230, 218, .14); white-space: nowrap; user-select: none; text-align: center; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div:first-child { grid-column: 1 / -1; } }

/* ── APP PAGES ────────────────────────────────────────── */
.ax-hero { position: relative; min-height: min(100svh, 1000px); display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; padding-top: calc(110px + env(safe-area-inset-top, 0px)); padding-bottom: 70px; }
.ax-hero::before { content: ""; position: absolute; z-index: -1; right: -10vw; top: 8%; width: 70vw; height: 90%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%), radial-gradient(40% 40% at 70% 70%, color-mix(in srgb, var(--accent2) 22%, transparent), transparent 70%); filter: blur(30px); }
.ax-hero .crumbs { color: var(--mute); display: flex; align-items: center; gap: 10px; margin-bottom: 36px; }
.ax-hero .crumbs a:hover { color: var(--text); }
.ax-hero .app-id { display: flex; align-items: center; gap: 18px; margin-bottom: 30px; }
.ax-hero .app-id img { width: 84px; height: 84px; border-radius: 20px; box-shadow: 0 0 0 1px var(--line-2), 0 24px 60px -16px var(--accent); }
.ax-hero h1 { font-size: clamp(60px, 9vw, 150px); letter-spacing: -.06em; line-height: .88; margin-bottom: 30px; }
.ax-hero h1 em { color: var(--accent2); font-weight: 300; }
.ax-hero .sub { font-size: clamp(18px, 1.5vw, 22px); color: var(--mute); max-width: 26em; margin-bottom: 40px; }
.ax-hero .ghosts { display: flex; gap: 22px; margin-top: 26px; color: var(--mute); font-size: 14px; }
.ax-hero .ghosts a { border-bottom: 1px solid var(--line-2); padding-bottom: 2px; }
.ax-hero .ghosts a:hover { color: var(--text); }
.ax-stage { position: relative; display: flex; justify-content: center; align-items: center; min-height: 700px; }
.ax-stage .dev { --s: 1; }
.chips { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.chip { position: absolute; padding: 12px 18px; border-radius: 16px; background: rgba(22, 22, 26, .66); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--line-2); font-size: 14px; color: var(--mute); white-space: nowrap; box-shadow: 0 20px 50px -20px #000; }
.chip b { color: var(--text); font-weight: 600; }
.chip:nth-child(1) { left: 0; top: 18%; }
.chip:nth-child(2) { right: 0; top: 46%; }
.chip:nth-child(3) { left: 6%; bottom: 14%; }
@media (max-width: 960px) {
  .ax-hero { grid-template-columns: 1fr; min-height: 0; }
  .ax-stage { min-height: 560px; }
  .ax-stage .dev { --s: .8; }
  .chip:nth-child(1) { left: 0; } .chip:nth-child(2) { right: 0; } .chip:nth-child(3) { left: 4%; }
}

.ax-story { position: relative; padding: clamp(80px, 10vw, 140px) 0; border-top: 1px solid var(--line); }
.ax-story .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.ax-sticky { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; justify-content: center; }
.ax-sticky .glow { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 34%, transparent), transparent); filter: blur(20px); transition: background 1s; }
.ax-sticky .dev { --s: .92; }
.ax-steps { padding: 20vh 0; }
.ax-step { min-height: 76svh; display: flex; flex-direction: column; justify-content: center; max-width: 30em; transition: opacity .6s; }
html.motion .ax-step { opacity: .28; }
html.motion .ax-step.on { opacity: 1; }
.ax-step .mono { color: var(--accent2); margin-bottom: 20px; }
.ax-step h3 { font-size: clamp(38px, 4.2vw, 66px); letter-spacing: -.05em; line-height: .98; margin-bottom: 22px; }
.ax-step p { color: var(--mute); font-size: 18px; }
.ax-step .flat { display: none; }
@media (max-width: 900px) {
  .ax-story .wrap { grid-template-columns: 1fr; }
  .ax-sticky { display: none; }
  .ax-steps { padding: 30px 0 0; }
  .ax-step { min-height: 0; opacity: 1; padding: 50px 0; border-top: 1px solid var(--line); }
  .ax-step .flat { display: block; width: min(260px, 70%); margin: 30px 0 0; border-radius: 30px; box-shadow: 0 0 0 6px #111, 0 0 0 7px #3b3a3f; }
}

.ax-grid { border-top: 1px solid var(--line); }
.ax-grid h2 { font-size: clamp(40px, 5vw, 80px); letter-spacing: -.05em; max-width: 12em; margin: 26px 0 clamp(50px, 6vw, 80px); }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feat { padding: 40px 34px 46px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .4s; }
.feat:hover { background: rgba(255, 255, 255, .025); }
.feat .ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: var(--accent2); background: color-mix(in srgb, var(--accent) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent2) 28%, transparent); margin-bottom: 30px; }
.feat .ic svg { width: 22px; height: 22px; }
.feat h3 { font-size: 22px; letter-spacing: -.03em; line-height: 1.2; margin-bottom: 10px; }
.feat p { color: var(--mute); font-size: 15.5px; }
@media (max-width: 900px) { .feat-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .feat-grid { grid-template-columns: 1fr; } }

.ax-state { padding: clamp(120px, 16vw, 230px) 0; text-align: left; border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.ax-state::before { content: ""; position: absolute; left: -10%; bottom: -30%; width: 70%; height: 90%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 22%, transparent), transparent); filter: blur(40px); }
.ax-state .eyebrow { margin-bottom: 40px; }
.ax-state .kara { position: relative; }

.ax-cta { padding: clamp(100px, 13vw, 180px) 0; border-top: 1px solid var(--line); text-align: center; }
.ax-cta img { width: 120px; height: 120px; border-radius: 28px; margin: 0 auto 40px; box-shadow: 0 0 0 1px var(--line-2), 0 40px 90px -20px var(--accent); }
.ax-cta h2 { font-size: clamp(44px, 6vw, 96px); letter-spacing: -.055em; margin-bottom: 22px; }
.ax-cta p { color: var(--mute); max-width: 30em; margin: 0 auto 44px; }
.ax-cta .btns { justify-content: center; }
.ax-cta .legal { margin-top: 34px; display: flex; gap: 24px; justify-content: center; color: var(--mute); font-size: 14px; }
.ax-cta .legal a:hover { color: var(--text); }

/* ── legal / support documents ────────────────────────── */
.doc { padding: calc(140px + env(safe-area-inset-top, 0px)) 0 110px; }
.doc .wrap { max-width: 820px; }
.doc .ax-back { display: inline-block; color: var(--mute); margin-bottom: 40px; }
.doc .ax-back:hover { color: var(--text); }
.doc .app-badge { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; color: var(--mute); }
.doc .app-badge img { width: 48px; height: 48px; border-radius: 12px; box-shadow: 0 0 0 1px var(--line-2); }
.doc h1 { font-size: clamp(48px, 7vw, 92px); letter-spacing: -.055em; margin-bottom: 20px; }
.doc .meta { color: var(--mute); margin-bottom: 40px; font-size: 17px; }
.doc h2 { font-size: 28px; letter-spacing: -.035em; margin: 64px 0 18px; }
.doc h3 { font-size: 20px; letter-spacing: -.025em; margin: 34px 0 10px; }
.doc p, .doc li { color: #c9c5bc; }
.doc p + p { margin-top: 14px; }
.doc ul, .doc ol { padding-left: 1.2em; display: grid; gap: 8px; }
.doc a { color: var(--ti-hi); border-bottom: 1px solid rgba(241, 229, 202, .3); }
.doc a:hover { border-color: var(--ti-hi); }
.doc .ax-back, .doc .app-badge a { border: 0; }
.doc .summary { padding: 26px 30px; border-radius: 20px; background: var(--ink-3); border: 1px solid var(--line); margin: 10px 0 20px; }
.doc .summary ul { margin: 0; }
.doc details { border-bottom: 1px solid var(--line); }
.doc details:first-of-type { border-top: 1px solid var(--line); }
.doc summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; font-weight: 500; font-size: 18px; position: relative; letter-spacing: -.015em; }
.doc summary::-webkit-details-marker { display: none; }
.doc summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 300; color: var(--mute); transition: transform .3s; }
.doc details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.doc details p { padding: 0 0 24px; max-width: 40em; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 16px 0; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: #c9c5bc; }
.doc th { color: var(--text); font-weight: 600; }

/* ── reveal (only when motion is on; resting state is visible) ── */
html.motion [data-rise] { opacity: 0; transform: translateY(34px); transition: opacity 1.1s var(--ease), transform 1.2s var(--ease); }
html.motion [data-rise].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
