/* ==========================================================================
   1516 — studio site
   Theme colours are CSS variables tweened by main.js as each section enters.
   ========================================================================== */

:root {
  --bg: #0b0b0c;
  --fg: #efebe3;
  --accent: #d97757;
  --line: color-mix(in srgb, var(--fg) 16%, transparent);
  --muted: color-mix(in srgb, var(--fg) 62%, transparent);
  --soft: color-mix(in srgb, var(--fg) 6%, transparent);

  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Consolas, monospace;
  --cjk: "Noto Serif TC", "Songti TC", "PMingLiU", serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1480px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --radius: clamp(10px, 1.2vw, 18px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
figure { margin: 0; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
code { font-family: var(--mono); font-size: .86em; padding: .1em .4em; border-radius: 6px; background: var(--soft); }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }

.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; line-height: 1.4; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: fixed; left: 16px; top: -60px; z-index: 200; padding: 10px 14px; background: var(--fg); color: var(--bg); border-radius: 8px; }
.skip:focus { top: 16px; }

.label { display: flex; gap: 14px; align-items: center; color: var(--muted); margin-bottom: clamp(28px, 4vw, 56px); }
.label span { color: var(--accent); }

/* Split words (built by main.js) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .04em .1em; margin: 0 -.04em -.1em; }
.w__i { display: inline-block; will-change: transform; }

/* ---------- Grain, cursor, progress ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%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");
  animation: grain 1.2s 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); }
}

.cursor {
  position: fixed; left: 0; top: 0; z-index: 120; pointer-events: none;
  width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  background: #fff; mix-blend-mode: difference;
  display: grid; place-items: center;
  transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), opacity .3s;
  opacity: 0;
}
.cursor.is-on { opacity: 1; }
.cursor.is-link { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
.cursor.is-label { width: 96px; height: 96px; margin: -48px 0 0 -48px; mix-blend-mode: normal; background: var(--accent); }
.cursor__label { font: 600 13px/1 var(--sans); color: var(--bg); opacity: 0; transition: opacity .2s; }
.cursor.is-label .cursor__label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }
@media (hover: hover) and (pointer: fine) { html.has-cursor, html.has-cursor a, html.has-cursor button { cursor: none; } }

.progress { position: fixed; left: 0; top: 0; z-index: 110; height: 2px; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Loader ---------- */
.loader { display: none; }
html.js .loader {
  position: fixed; inset: 0; z-index: 150; background: #0b0b0c; color: #efebe3;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
}
.loader__digits { display: flex; font: 800 clamp(72px, 16vw, 240px)/1 var(--sans); letter-spacing: -.06em; }
.roll { display: block; height: 1em; overflow: hidden; }
.roll__strip { display: flex; flex-direction: column; }
.roll__strip span { display: block; height: 1em; }
.loader__foot { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 28px; display: flex; justify-content: space-between; color: rgba(239, 235, 227, .6); }
.loader__pct { color: #d97757; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 20px var(--gutter);
  color: #fff; mix-blend-mode: difference;
  transition: transform .6s var(--ease);
}
.nav.is-hidden { transform: translateY(-110%); }
.nav__logo { font: 800 22px/1 var(--sans); letter-spacing: -.04em; }
.nav__logo sup { font-size: .4em; font-weight: 500; margin-left: 2px; vertical-align: super; }
.nav__links { display: flex; gap: clamp(16px, 2.6vw, 40px); font: 500 15px/1 var(--sans); }
.nav__links a { position: relative; overflow: hidden; display: inline-block; }
.nav__links a span { display: inline-block; transition: transform .5s var(--ease); }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { font: 600 14px/1 var(--sans); padding: 12px 18px; border: 1px solid currentColor; border-radius: 999px; transition: background .3s, color .3s; }
.nav__cta:hover { background: #fff; color: #000; }
@media (max-width: 760px) { .nav__links { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; }
.hero__pin { position: relative; height: 100vh; height: 100svh; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; }
.hero__eyebrow {
  position: absolute; left: var(--gutter); right: var(--gutter); top: clamp(84px, 13vh, 130px);
  display: flex; justify-content: space-between; gap: 16px; color: var(--muted);
}
.hero__title {
  display: flex; align-items: center; justify-content: center; gap: clamp(8px, 1.2vw, 20px);
  font: 800 clamp(96px, 30vw, 540px)/1 var(--sans); letter-spacing: -.075em;
  white-space: nowrap; width: 100%; min-width: 0;
}
.hero__half { display: flex; overflow: hidden; flex-shrink: 0; padding: 0 .05em; }
.hero__half .d { display: block; }
.hero__window {
  position: relative; flex-shrink: 0; overflow: hidden;
  width: 17vw; height: .66em; border-radius: clamp(12px, 2vw, 32px);
  background: #151517; letter-spacing: 0;
}
.hero__mosaic {
  position: absolute; left: 50%; top: 50%;
  width: 100vw; height: 100vh; height: 100svh;
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 6px; padding: 6px;
  transform: translate(-50%, -50%) scale(1.35);
}
.tile { position: relative; overflow: hidden; border-radius: 10px; background: #1b1b1e; }
.tile img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.tile__label {
  position: absolute; left: 14px; bottom: 14px; padding: 8px 12px; border-radius: 999px;
  background: rgba(11, 11, 12, .72); color: #efebe3; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 11px; opacity: 0;
}
.hero__caption {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center;
  font: 700 clamp(36px, 6.4vw, 104px)/.95 var(--sans); letter-spacing: -.045em; color: #fff;
  background: radial-gradient(ellipse 70% 60% at center, rgba(8, 8, 9, .82), rgba(8, 8, 9, .45) 75%);
  text-shadow: 0 2px 30px rgba(0, 0, 0, .5);
  opacity: 0; pointer-events: none; white-space: normal;
}
.hero__caption em { color: var(--accent); }
.hero__foot {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(24px, 5vh, 48px);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
}
.hero__lede { max-width: 30ch; font: 500 clamp(19px, 1.9vw, 30px)/1.2 var(--sans); letter-spacing: -.02em; }
.hero__lede em { color: var(--accent); font-size: 1.12em; }
.hero__scroll { display: flex; align-items: center; gap: 12px; color: var(--muted); white-space: nowrap; }
.hero__scroll i { position: relative; width: 1px; height: 44px; background: var(--line); overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 40%; background: var(--fg); animation: drip 1.8s var(--ease) infinite; }
@keyframes drip { from { transform: translateY(-100%); } to { transform: translateY(260%); } }
@media (max-width: 700px) {
  .hero__eyebrow { flex-direction: column; gap: 6px; }
  .hero__scroll { display: none; }
  .hero__title { font-size: 32vw; gap: 6px; }
  .hero__window { width: 20vw; }
  .tile__label { left: 8px; bottom: 8px; padding: 6px 9px; font-size: 9px; letter-spacing: .04em; }
}

/* ---------- Studio / manifesto ---------- */
.studio { padding: clamp(110px, 18vh, 200px) 0 clamp(90px, 14vh, 160px); }
.manifesto {
  font: 500 clamp(28px, 4.1vw, 64px)/1.1 var(--sans); letter-spacing: -.035em;
  max-width: 22em; text-wrap: pretty;
}
.manifesto em { color: var(--accent); }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(80px, 12vh, 140px); border-top: 1px solid var(--line);
}
.stat { padding: 28px 20px 0 0; display: flex; flex-direction: column; gap: 14px; }
.stat + .stat { padding-left: 20px; border-left: 1px solid var(--line); }
.stat__num { font: 400 clamp(48px, 5.6vw, 92px)/.9 var(--serif); letter-spacing: -.02em; }
.stat__label { color: var(--muted); }
.stat--accent .stat__num { color: var(--accent); }
@media (max-width: 900px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat, .stat + .stat { padding: 24px 0 28px; border-left: 0; border-bottom: 1px solid var(--line); }
  .stat:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
}

/* ---------- Projects ---------- */
.project { position: relative; padding: clamp(120px, 18vh, 200px) 0; overflow: clip; }
.project__index {
  position: absolute; right: -2vw; top: 4vh; z-index: 0;
  font: 800 clamp(200px, 38vw, 640px)/.8 var(--sans); letter-spacing: -.08em;
  color: transparent; -webkit-text-stroke: 1px var(--line);
  pointer-events: none; user-select: none;
}
.project__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 110px); align-items: start; }
.project__info { position: sticky; top: clamp(90px, 12vh, 130px); display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.project__info .label { margin-bottom: 0; }
.project__title { font: 700 clamp(44px, 6vw, 96px)/.94 var(--sans); letter-spacing: -.05em; text-wrap: balance; }
.project__title .cjk { display: block; margin-top: .18em; font: 700 .42em/1 var(--cjk); letter-spacing: .12em; color: var(--accent); }
.project__lede { font: 500 clamp(20px, 1.7vw, 27px)/1.25 var(--sans); letter-spacing: -.02em; }
.project__lede em { color: var(--accent); font-size: 1.1em; }
.project__body { color: var(--muted); max-width: 52ch; }
.status { display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); } 80%, 100% { box-shadow: 0 0 0 10px transparent; } }

.hood { display: grid; gap: 10px; width: 100%; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: .94em; }
.hood li { position: relative; padding-left: 26px; }
.hood li::before { content: "→"; position: absolute; left: 0; color: var(--accent); }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
.facts div { display: flex; flex-direction: column-reverse; gap: 6px; }
.facts div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: 11px; }
.facts dd { font: 400 clamp(38px, 3.6vw, 56px)/.9 var(--serif); }
.facts dd small { font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; margin-left: 6px; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; font-size: 11px; }
.chips li { padding: 7px 11px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); }

.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px; overflow: hidden; isolation: isolate;
  padding: 16px 24px; border-radius: 999px; border: 1px solid var(--fg);
  font: 600 15px/1 var(--sans); color: var(--fg);
  transition: color .45s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--fg); transform: translateY(101%); border-radius: inherit; transition: transform .45s var(--ease); }
.btn:hover { color: var(--bg); }
.btn:hover::before { transform: translateY(0); }
.footnote { font-size: 13px; color: var(--muted); max-width: 52ch; }

.project__media { position: relative; display: flex; flex-direction: column; gap: clamp(40px, 8vh, 90px); padding-top: clamp(0px, 4vh, 40px); }

/* Browser frame + phone */
.frame {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius);
  background: #111; border: 1px solid color-mix(in srgb, var(--fg) 14%, transparent);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .55), 0 12px 30px -16px rgba(0, 0, 0, .4);
}
.frame__bar { position: relative; z-index: 2; display: flex; align-items: center; gap: 7px; padding: 12px 14px; background: #19191b; color: rgba(255, 255, 255, .55); }
.frame__bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3a3e; }
.frame__bar i:first-child { background: #ff5f57; } .frame__bar i:nth-child(2) { background: #febc2e; } .frame__bar i:nth-child(3) { background: #28c840; }
.frame__bar .mono { margin-left: 10px; font-size: 11px; text-transform: none; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frame img { width: 100%; transition: transform 1.2s var(--ease); }
a.frame:hover img { transform: scale(1.035); }
.frame--small { width: 82%; align-self: flex-end; }

.phone {
  position: relative; overflow: hidden; aspect-ratio: 560 / 1212;
  border-radius: clamp(26px, 3.2vw, 46px); border: clamp(6px, .7vw, 10px) solid #121214; background: #121214;
  box-shadow: 0 50px 80px -30px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .06) inset;
}
.phone img { width: 100%; height: 100%; object-fit: cover; }

/* 01 — WhatsApp chat */
.chat {
  position: relative; z-index: 2; width: min(380px, 78%); margin: calc(clamp(40px, 8vh, 90px) * -1 - 140px) 0 0 auto;
  margin-right: -2%; border-radius: 26px; overflow: hidden;
  background: #0b141a; color: #e9edef; font-size: 14.5px; line-height: 1.4;
  box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .08);
}
.chat__head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #1f2c34; }
.chat__head b { display: block; font-weight: 600; font-size: 15px; }
.chat__head small { display: block; color: #8696a0; font-size: 12px; }
.chat__avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #00a884; color: #fff; font: 700 13px/1 var(--sans); }
.chat__time { margin-left: auto; color: #e4b34a; font-size: 11px; }
.chat__body { display: flex; flex-direction: column; gap: 8px; padding: 16px 14px 18px; min-height: 410px; }
.msg { max-width: 82%; padding: 9px 12px; border-radius: 12px; }
.msg--in { align-self: flex-end; background: #005c4b; border-top-right-radius: 4px; }
.msg--out { align-self: flex-start; background: #202c33; border-top-left-radius: 4px; }
.msg--typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 12px 14px; background: #202c33; }
.msg--typing i { width: 6px; height: 6px; border-radius: 50%; background: #8696a0; animation: blink 1.2s infinite; }
.msg--typing i:nth-child(2) { animation-delay: .15s; } .msg--typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.msg--sys { align-self: center; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: #c9d1d6; background: #182229; border: 1px solid rgba(255, 255, 255, .08); border-radius: 8px; padding: 6px 10px; }
.msg--sys i { width: 7px; height: 7px; border-radius: 50%; background: #25d366; }
html.js .msg--typing { display: none; }

/* 02 — Sticker orbit */
.orbit { position: relative; width: min(100%, 640px); aspect-ratio: 1; margin: 0 auto; }
.orbit__spin, .orbit__ring { position: absolute; inset: 0; }
.sticker {
  position: absolute; left: 50%; top: 50%; width: 20%; aspect-ratio: 1; margin: -10% 0 0 -10%;
  transform: rotate(calc(var(--i, 0) * 30deg)) translateY(-205%) rotate(calc(var(--i, 0) * -30deg));
}
.sticker img { width: 100%; height: 100%; border-radius: 50%; filter: drop-shadow(0 14px 18px rgba(120, 20, 60, .24)); }
.orbit__core {
  position: absolute; left: 50%; top: 50%; width: 40%; aspect-ratio: 1; margin: -20% 0 0 -20%; rotate: -6deg;
  border-radius: 22px; overflow: hidden; background: #fff;
  box-shadow: 0 40px 70px -25px rgba(120, 20, 60, .35);
}
.orbit__core img { width: 100%; height: 100%; object-fit: cover; }
.project--lg .frame { border-color: rgba(43, 11, 28, .1); }

/* 03 — Phone fan */
.project__glyph {
  position: absolute; left: -4vw; bottom: -6vw; z-index: 0;
  font: 700 clamp(260px, 44vw, 720px)/1 var(--cjk); color: var(--accent); opacity: .06;
  pointer-events: none; user-select: none;
}
.fan { position: relative; height: clamp(440px, 62vw, 760px); display: grid; place-items: center; }
.fan .phone { position: absolute; width: clamp(140px, 19vw, 270px); }
html:not(.motion) .fan__l { transform: translateX(-62%) rotate(-11deg); }
html:not(.motion) .fan__r { transform: translateX(62%) rotate(11deg); }
.fan__c { z-index: 3; }
.fan__l, .fan__r { z-index: 2; }
.spark { position: absolute; left: var(--x); top: var(--y); color: #e8b400; font-size: clamp(18px, 2vw, 30px); animation: twinkle 2.6s ease-in-out infinite; }
.spark:nth-of-type(2n) { animation-delay: -1.3s; }
@keyframes twinkle { 0%, 100% { opacity: .25; transform: scale(.7) rotate(0); } 50% { opacity: 1; transform: scale(1.15) rotate(45deg); } }

/* 04 — Christmas */
.snow { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.xmas-stage { position: relative; padding-bottom: clamp(80px, 14vw, 200px); }
.xmas-stage__phone { position: absolute; right: -2%; bottom: 0; width: clamp(150px, 19vw, 260px); z-index: 2; }
.project--xmas .frame { box-shadow: 0 0 120px -20px rgba(242, 193, 78, .25), 0 40px 90px -30px rgba(0, 0, 0, .7); }

@media (max-width: 960px) {
  .project__grid { grid-template-columns: 1fr; }
  .project__info { position: relative; top: 0; }
  .project__media { padding-top: 24px; }
  .chat { margin: -90px auto 0; margin-right: 0; width: min(360px, 88%); }
  .frame--small { width: 92%; }
  .project__index { top: 2vh; }
}

/* ---------- Process ---------- */
.process { padding: clamp(120px, 18vh, 200px) 0 clamp(80px, 12vh, 140px); }
.section-title { font: 700 clamp(44px, 7.4vw, 124px)/.93 var(--sans); letter-spacing: -.05em; max-width: 13em; text-wrap: balance; }
.section-title em { color: var(--accent); }
.process__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 110px); margin-top: clamp(60px, 10vh, 120px); align-items: start; }
.steps { display: grid; }
.step { padding: 30px 0 34px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 56px 1fr; column-gap: 12px; }
.step:last-child { border-bottom: 1px solid var(--line); }
.step__n { color: var(--accent); padding-top: 10px; grid-row: span 2; }
.step h3 { font: 600 clamp(26px, 2.4vw, 38px)/1.1 var(--sans); letter-spacing: -.03em; margin-bottom: 10px; }
.step p { color: var(--muted); }

.term {
  position: sticky; top: clamp(90px, 14vh, 140px);
  border-radius: var(--radius); overflow: hidden; background: #0f0f11; color: #d6d3cc;
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 60px 120px -40px rgba(217, 119, 87, .25), 0 30px 60px -30px rgba(0, 0, 0, .8);
}
.term__bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; background: #19191b; color: rgba(255, 255, 255, .5); }
.term__bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3a3e; }
.term__bar .mono { margin-left: 10px; text-transform: none; letter-spacing: 0; font-size: 12px; }
.term__body { padding: 20px 22px 26px; font-size: clamp(11px, .9vw, 13.5px); text-transform: none; letter-spacing: 0; line-height: 1.75; overflow-x: auto; }
.tl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl b { color: #e4b34a; font-weight: 500; margin-right: 10px; }
.tl b.tl__p { color: #d97757; margin-right: 0; }
.tl--dim { color: #6f6c66; }
.tl--sum { margin-top: 10px; color: #8fd19e; }
.caret { display: inline-block; width: .6em; height: 1.1em; vertical-align: text-bottom; background: #d97757; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
@media (max-width: 960px) { .process__grid { grid-template-columns: 1fr; } .term { position: relative; top: 0; } }

/* ---------- Ticker ---------- */
.ticker { padding: clamp(40px, 8vh, 90px) 0; display: grid; gap: 14px; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ticker__row { display: flex; width: max-content; }
.ticker__track { display: flex; gap: 14px; padding-right: 14px; flex-shrink: 0; }
.ticker__track span {
  display: inline-flex; align-items: center; gap: 14px; white-space: nowrap;
  font: 600 clamp(26px, 3.4vw, 54px)/1 var(--sans); letter-spacing: -.035em;
  padding: 16px 28px; border: 1px solid var(--line); border-radius: 999px;
}
.ticker__track span::before { content: "✦"; color: var(--accent); font-size: .6em; }
.ticker__row--alt .ticker__track span { font: 400 italic clamp(28px, 3.6vw, 58px)/1 var(--serif); letter-spacing: -.01em; background: var(--soft); }

/* ---------- Why ---------- */
.why { padding: clamp(120px, 18vh, 200px) 0; }
.why__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); margin-top: clamp(60px, 9vh, 110px); }
.card {
  position: relative; display: flex; flex-direction: column; gap: 16px; min-height: 340px;
  padding: clamp(24px, 2.4vw, 36px); border-radius: var(--radius);
  border: 1px solid var(--line); background: color-mix(in srgb, #fff 45%, transparent);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(80, 40, 20, .3); }
.card__n { font: 400 italic 64px/1 var(--serif); color: var(--accent); margin-bottom: auto; }
.card__when { color: var(--accent); margin-top: 24px; }
.card h3 { font: 600 clamp(24px, 2vw, 32px)/1.1 var(--sans); letter-spacing: -.03em; }
.card p { color: var(--muted); }
@media (max-width: 900px) { .why__grid { grid-template-columns: 1fr; } .card { min-height: 0; } .card__n { margin-bottom: 12px; } }

/* ---------- Footer ---------- */
.footer { position: relative; padding-top: clamp(120px, 18vh, 200px); overflow: hidden; }
.footer__cta { display: block; font: 700 clamp(48px, 9vw, 160px)/.92 var(--sans); letter-spacing: -.055em; }
.footer__line { display: block; }
.footer__line--em { font-size: .62em; margin-top: .15em; color: var(--accent); }
.footer__line--em em { letter-spacing: -.01em; }
.footer__cta:hover .footer__line:first-child { text-decoration: underline; text-decoration-thickness: .04em; text-underline-offset: .12em; }
.footer__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: clamp(70px, 10vh, 120px); padding-top: 32px; border-top: 1px solid var(--line); }
.footer__h { color: var(--muted); margin-bottom: 14px; }
.footer__grid li + li { margin-top: 6px; }
.link { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.link:hover { background-size: 100% 1px; }
.footer__mark {
  font: 800 34vw/.78 var(--sans); letter-spacing: -.08em; text-align: center; margin: clamp(60px, 10vh, 120px) 0 -.06em;
  color: transparent; -webkit-text-stroke: 1px var(--line);
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), var(--accent), transparent 28%) no-repeat;
  -webkit-background-clip: text; background-clip: text;
  user-select: none;
}
.footer__bar { display: flex; justify-content: space-between; padding-top: 22px; padding-bottom: 26px; color: var(--muted); border-top: 1px solid var(--line); position: relative; z-index: 1; background: var(--bg); }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .grain { display: none; }
  html.js .msg--typing { display: none; }
}
