/* xolchade.dev — built to DESIGN.md */
@font-face {
  font-family: "Bricolage";
  src: url("fonts/bricolage.woff") format("woff");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
@view-transition { navigation: auto; }

:root {
  color-scheme: light;
  --bg: light-dark(#F4F1EA, #0E0E0E);
  --surface: light-dark(#FFFFFF, #191919);
  --card: light-dark(#E9E5DB, #181818);
  --ink: light-dark(#0E0E0E, #F4F1EA);
  --mute: light-dark(#69655D, #918D85);
  --hair: light-dark(#D9D4C8, #2B2B2B);
  --acc: #2AABEE;
  --on-acc: #0E0E0E;
  --tg: #2AABEE;
  --api: light-dark(#E79A00, #FFB340);
  --ai: light-dark(#E2437A, #FF6092);
  --ui: light-dark(#0FA07E, #5CE0BE);
  --d3: light-dark(#E5562B, #FF7F57);
  --font: "Bricolage", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(22px, 5.2vw, 84px);
  --sec: clamp(96px, 17vh, 210px);
  --r-lg: clamp(20px, 2.2vw, 32px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --intro: .55s;
}
:root[data-theme="dark"] { color-scheme: dark; }
:root.skip-intro { --intro: .1s; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
html.lock { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 18px/1.5 var(--font);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; }
h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
p { text-wrap: pretty; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--ink); color: var(--bg); }

.display {
  font-stretch: 75%;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: .92;
  text-wrap: balance;
}
.lede { font-size: clamp(17px, 1.45vw, 22px); color: var(--mute); max-width: 40ch; }

.skip { position: fixed; left: -999px; top: 12px; z-index: 200; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; }
.skip:focus { left: 12px; }

/* ---------- preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg);
  display: grid; place-items: center;
  animation: pre-out .4s var(--ease-io) .42s forwards;
}
.skip-intro .preloader { display: none; }
.pre-dots { display: flex; gap: 10px; }
.pre-dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--acc); scale: 0; animation: pre-in .3s var(--ease) forwards, pre-merge .2s var(--ease-io) .28s forwards; }
.pre-dots i:nth-child(1) { --m: 22px; }
.pre-dots i:nth-child(2) { --m: 0px; animation-delay: .05s, .28s; }
.pre-dots i:nth-child(3) { --m: -22px; animation-delay: .1s, .28s; }
@keyframes pre-in { to { scale: 1; } }
@keyframes pre-merge { to { translate: var(--m) 0; } }
@keyframes pre-out { to { translate: 0 -100%; visibility: hidden; } }

/* ---------- buttons, links ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  height: 58px; padding: 0 30px;
  border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 17px; line-height: 1;
  text-decoration: none; white-space: nowrap;
  transition: translate .5s var(--ease), scale .2s var(--ease), color .25s, border-color .25s;
}
.btn:active { scale: .97; }
.btn.primary { background: var(--ink); color: var(--bg); }
.btn.primary::before {
  content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: inherit;
  background: var(--acc); translate: 0 102%;
  transition: translate .45s var(--ease);
}
.btn.ghost { border-color: var(--hair); color: var(--ink); background: var(--bg); }
.btn.small { height: 40px; padding: 0 18px; font-size: 15px; }
.btn.big { height: 72px; padding: 0 40px; font-size: 20px; }
@media (hover: hover) {
  .btn.primary:hover { color: var(--on-acc); }
  .btn.primary:hover::before { translate: 0 0; }
  .btn.ghost:hover { border-color: var(--ink); }
}
.ul { position: relative; text-decoration: none; padding-bottom: 2px; }
.ul::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor; transform-origin: left; scale: 0 1; transition: scale .35s var(--ease); }
.ul:hover::after { scale: 1 1; }

/* ---------- header ---------- */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--pad);
  view-transition-name: bar;
}
.bar::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--bg); opacity: 0; transition: opacity .25s; }
.bar.scrolled::before { opacity: 1; }
.logo { font-stretch: 75%; font-weight: 800; font-size: 26px; letter-spacing: -0.01em; text-decoration: none; line-height: 1; }
.bar nav { display: flex; align-items: center; gap: clamp(12px, 2.2vw, 30px); }
.nav-link { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--mute); transition: color .2s; }
.nav-link:hover { color: var(--ink); }
.theme {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid var(--hair); background: transparent; color: var(--ink);
  transition: border-color .2s, rotate .5s var(--ease);
}
.theme:hover { border-color: var(--ink); rotate: 20deg; }
.theme svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.theme .moon { display: none; }
:root[data-theme="dark"] .theme .sun { display: none; }
:root[data-theme="dark"] .theme .moon { display: block; }
.theming * { view-transition-name: none !important; }
.theming::view-transition-old(root), .theming::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* ---------- main ---------- */
main { position: relative; }
main > section { position: relative; z-index: 1; }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  gap: clamp(32px, 5vw, 88px);
  align-items: center;
  min-height: 100svh;
  padding: 104px var(--pad) 120px;
}
.gl { position: absolute; top: 0; left: calc(51% - min(50vw, 400px)); width: min(100vw, 800px); height: 100svh; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .9s; }
.gl.on { opacity: 1; }
.hero h1 { font-size: clamp(52px, 8.3vw, 150px); line-height: .9; text-wrap: wrap; }
.hero .lede { margin-top: clamp(22px, 3vh, 36px); max-width: 30ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(26px, 4vh, 44px); }

.js .split .w { display: inline-block; overflow: clip; overflow-clip-margin: .02em; vertical-align: top; padding: .06em 0 .1em; margin: -.06em 0 -.1em; }
.js .split .w > span { display: inline-block; translate: 0 112%; animation: rise .9s var(--ease) forwards; animation-delay: calc(var(--intro) + var(--i) * 45ms); }
@keyframes rise { to { translate: 0 0; } }
.k { position: relative; display: inline-block; }
.nb { white-space: nowrap; }
.k::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .055em; border-radius: 1em;
  background: var(--acc); transform-origin: left; scale: 0 1;
  transition: scale .6s var(--ease);
}
.k.on::after { scale: 1 1; }
.js .intro { opacity: 0; translate: 0 24px; animation: fade-up .8s var(--ease) forwards; animation-delay: calc(var(--intro) + .45s + var(--n) * 80ms); }
@keyframes fade-up { to { opacity: 1; translate: 0 0; } }

/* chat */
.chat-wrap { position: relative; }
.chat {
  position: relative;
  display: flex; flex-direction: column;
  height: min(600px, 68svh); min-height: 460px;
  background: var(--surface);
  border-radius: 28px;
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--ink) 8%, transparent), 0 50px 90px -50px light-dark(rgb(40 30 10 / .4), rgb(0 0 0 / .9));
}
.chat-head { display: flex; gap: 12px; align-items: center; padding: 16px 20px; }
.chat-head b { display: block; font-weight: 700; font-size: 16px; line-height: 1.2; }
.chat-head small { color: var(--mute); font-size: 13.5px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--bg); font-stretch: 75%; font-weight: 800; font-size: 24px; line-height: 1; padding-bottom: 3px; }
.thread { flex: 1; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 8px; padding: 8px 20px 16px; scrollbar-width: none; }
.thread::-webkit-scrollbar { display: none; }
.msg { max-width: 86%; padding: 10px 15px; border-radius: 20px; font-size: 16px; line-height: 1.38; animation: pop .35s var(--ease) both; }
.msg.bot { background: color-mix(in oklab, var(--ink) 7%, var(--surface)); border-bottom-left-radius: 6px; align-self: flex-start; }
.msg.me { background: var(--acc); color: var(--on-acc); border-bottom-right-radius: 6px; align-self: flex-end; }
.msg a { font-weight: 600; }
.typing { display: flex; gap: 4px; padding: 15px 16px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--mute); opacity: .4; animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: 1; translate: 0 -2px; } }
@keyframes pop { from { opacity: 0; translate: 0 8px; scale: .96; } }
.keyboard { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 0 14px 10px; animation: pop .5s var(--ease) both; }
.keyboard[hidden] { display: none; }
.keyboard button, .keyboard a {
  display: block; text-align: center; text-decoration: none;
  border: 0; border-radius: 13px; padding: 12px 8px;
  background: color-mix(in oklab, var(--acc) 16%, var(--surface)); color: var(--ink);
  font-weight: 600; font-size: 14.5px; line-height: 1.2;
  transition: background .2s, scale .15s;
}
.keyboard button:hover, .keyboard a:hover { background: color-mix(in oklab, var(--acc) 30%, var(--surface)); }
.keyboard button:active { scale: .97; }
.keyboard .wide { grid-column: 1 / -1; }
.ask { display: flex; gap: 8px; padding: 0 14px 14px; }
.ask input { flex: 1; min-width: 0; height: 46px; border: 0; border-radius: 999px; padding: 0 18px; background: color-mix(in oklab, var(--ink) 6%, var(--surface)); font-size: 15.5px; }
.ask input::placeholder { color: var(--mute); }
.ask button { flex: none; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--acc); color: var(--on-acc); display: grid; place-items: center; transition: scale .15s; }
.ask button:active { scale: .92; }
.ask svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.chat-note { margin-top: 14px; font-size: 14px; color: var(--mute); text-align: center; }

/* ---------- reveals ---------- */
.js .reveal-mask { overflow: clip; overflow-clip-margin: .04em; padding-bottom: .12em; margin-bottom: -.12em; }
.js .reveal-mask > span { display: block; translate: 0 112%; transition: translate .9s var(--ease); }
.js .reveal-mask.in > span { translate: 0 0; }
.js .reveal { opacity: 0; translate: 0 24px; transition: opacity .8s var(--ease), translate .8s var(--ease); transition-delay: calc(var(--d, 0) * 1ms); }
.js .reveal.in { opacity: 1; translate: 0 0; }

/* ---------- services ---------- */
.services { padding: var(--sec) var(--pad) calc(var(--sec) * .6); }
.services h2, .work h2, .process h2 { font-size: clamp(44px, 6.4vw, 104px); }
.svc-list { margin-top: clamp(40px, 7vh, 88px); display: grid; gap: clamp(36px, 6vh, 64px); }
.svc { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 4vw, 64px); align-items: end; }
.svc h3 { font-size: clamp(38px, 5.6vw, 92px); line-height: .95; transition: translate .5s var(--ease); }
.svc p { position: relative; color: var(--mute); max-width: 46ch; padding: 0 0 .35em 22px; transition: color .3s; }
.svc p::before { content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 9px; border-radius: 50%; background: var(--t); }
@media (hover: hover) {
  .svc:hover h3 { translate: 14px 0; }
  .svc:hover p { color: var(--ink); }
}

/* ---------- stack marquee ---------- */
.stack { padding: calc(var(--sec) * .5) 0; }
.stack-title { padding: 0 var(--pad); color: var(--mute); font-size: 17px; font-weight: 500; margin-bottom: 22px; }
.marquee { display: flex; overflow: hidden; white-space: nowrap; user-select: none; }
.run { flex: none; display: flex; align-items: center; animation: marq 46s linear infinite; }
.marquee.rev .run { animation-direction: reverse; }
@keyframes marq { to { translate: -100% 0; } }
.it { display: inline-flex; align-items: center; font-stretch: 75%; font-weight: 800; font-size: clamp(34px, 5vw, 76px); line-height: 1.15; letter-spacing: -0.01em; }
.it::after { content: ""; width: .22em; height: .22em; border-radius: 50%; background: var(--acc); margin: 0 .5em; }
.marquee.rev .it { color: var(--mute); opacity: .5; }

/* ---------- work ---------- */
.work { padding: var(--sec) var(--pad); }
.work-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px 40px; margin-bottom: clamp(28px, 5vh, 56px); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 18px; border: 0; border-radius: 999px;
  background: color-mix(in oklab, var(--ink) 6%, transparent); color: var(--ink);
  font-size: 15px; font-weight: 500;
  transition: background .25s, color .25s;
}
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.chip:hover { background: color-mix(in oklab, var(--ink) 12%, transparent); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(200px, 21vw, 320px); gap: clamp(12px, 1.4vw, 20px); }
.card, .case-cover, .floater { --c: var(--ink); --c2: var(--card); --w: light-dark(#FFFFFF, #2A2A2A); }
.card {
  position: relative; display: block; overflow: hidden;
  grid-column: span var(--cs); grid-row: span var(--rs);
  border-radius: var(--r-lg);
  background: var(--c2); color: var(--ink); text-decoration: none;
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s var(--ease), opacity .8s var(--ease), translate .8s var(--ease);
}
.card.tilt { transition: transform .1s linear; }
.card::after {
  content: ""; position: absolute; left: -260px; top: -260px; width: 520px; height: 520px; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--acc) 30%, transparent), transparent);
  transform: translate3d(var(--sx, 0px), var(--sy, 0px), 0);
  opacity: 0; transition: opacity .35s;
}
.card .cover { position: absolute; inset: 0; }
.art { position: absolute; left: 6%; top: 5%; width: 88%; height: 70%; translate: var(--px, 0px) var(--py, 0px); transition: scale .7s var(--ease), translate .5s var(--ease); }
.cap { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(16px, 1.6vw, 24px); display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.cap b { display: block; font-size: clamp(19px, 1.6vw, 24px); font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; }
.cap small { display: flex; align-items: center; gap: 7px; margin-top: 3px; font-size: 14px; color: var(--mute); }
.cap small i { width: 8px; height: 8px; border-radius: 50%; background: var(--t); }
.cap .yr { font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--mute); }
@media (hover: hover) {
  .card:hover::after { opacity: 1; }
  .card:hover .art { scale: 1.06; }
  .card:hover { --c: var(--acc); }
}

/* cover drawings */
.art .c { fill: var(--c); } .art .w { fill: var(--w); } .art .ink { fill: var(--ink); }
.art .o3 { opacity: .32; } .art .o6 { opacity: .62; }
.art .ln { fill: none; stroke: var(--c); stroke-width: 3; opacity: .35; stroke-linecap: round; }
.art .ln.run { opacity: 1; stroke-dasharray: 14 130; animation: dash 2.2s linear infinite; }
.art .bgs { fill: none; stroke: var(--c2); stroke-width: 5; stroke-linecap: round; }
.art .sel { fill: none; stroke: var(--ink); stroke-width: 2; stroke-dasharray: 6 6; }
.art .bob { animation: bob 3.2s ease-in-out infinite; }
.art .pop { animation: popk 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.art .pulse { animation: pulse 1.8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.art .dot { animation: blink 1s infinite; }
.art .spin { animation: spin 9s linear infinite; transform-box: fill-box; transform-origin: center; }
.art .spin.rev { animation-direction: reverse; animation-duration: 6s; }
.art .blink { animation: caret 1s steps(1) infinite; }
.art .ptr { animation: ptr 3.4s var(--ease-io) infinite; }
.art .d1 { animation-delay: -.5s; } .art .d2 { animation-delay: -1s; }
.art * { animation-play-state: paused; }
.card:hover .art *, .case-cover .art *, .floater .art * { animation-play-state: running; }
@keyframes dash { to { stroke-dashoffset: -144; } }
@keyframes bob { 50% { translate: 0 -8px; } }
@keyframes popk { 50% { scale: .88; } }
@keyframes pulse { 50% { scale: 1.08; } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes caret { 50% { opacity: 0; } }
@keyframes ptr { 50% { translate: -46px 44px; } }

/* ---------- process ---------- */
.process { padding: var(--sec) 0; }
.process h2 { padding: 0 var(--pad); }
.track { display: grid; gap: 56px; padding: 0 var(--pad); margin-top: clamp(36px, 6vh, 72px); }
.step h3 { font-size: clamp(24px, 2.4vw, 36px); font-weight: 700; letter-spacing: -0.015em; line-height: 1.1; margin-top: 6px; }
.step p { color: var(--mute); max-width: 36ch; margin-top: 12px; }
.num { display: block; font-size: 96px; line-height: .8; color: var(--acc); }
.rail { display: none; }
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .process { --step: clamp(380px, 40vw, 640px); --gap: clamp(40px, 6vw, 110px); padding: 0; height: calc(100vh + var(--pad) + 4 * var(--step) + 3 * var(--gap) + 22vw - 100vw); }
  .pin { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding-top: 72px; }
  .track { display: flex; gap: var(--gap); width: max-content; padding-right: 22vw; margin-top: clamp(20px, 5vh, 60px); will-change: transform; }
  .step { flex: none; width: var(--step); opacity: .22; transition: opacity .5s; }
  .step.on { opacity: 1; }
  .num { font-size: clamp(160px, 19vw, 300px); }
  .rail { display: block; position: relative; height: 2px; margin: clamp(28px, 6vh, 64px) var(--pad) 0; background: var(--hair); border-radius: 2px; }
  .rail i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(0); border-radius: 2px; }
}

/* ---------- contact ---------- */
.contact { padding: var(--sec) var(--pad) calc(var(--sec) * .9); }
.contact h2 { font-size: clamp(52px, 9.4vw, 170px); line-height: .88; max-width: 11ch; }
.contact .lede { margin-top: clamp(22px, 4vh, 40px); }

/* ---------- footer ---------- */
.foot { position: relative; z-index: 1; padding: 0 var(--pad); overflow: hidden; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; font-size: 15px; color: var(--mute); }
.foot-row nav { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.foot-row a { color: var(--ink); font-weight: 500; }
.wordmark { font-size: 26.5vw; font-weight: 800; line-height: .8; letter-spacing: -0.02em; text-align: center; margin: clamp(24px, 5vh, 56px) 0 -0.085em; white-space: nowrap; user-select: none; }
.wordmark span { display: inline-block; transition: transform .35s var(--ease); }

/* ---------- cursor badge ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; width: 0; height: 0; }
.cursor span {
  position: absolute; left: -46px; top: -46px; width: 92px; height: 92px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: var(--bg); font-size: 15px; font-weight: 600;
  opacity: 0; scale: .3; transition: opacity .2s, scale .3s var(--ease);
}
.cursor.on span { opacity: 1; scale: 1; }
.has-cursor [data-cursor] { cursor: none; }

/* ---------- case page ---------- */
.case { padding: 128px var(--pad) var(--sec); position: relative; z-index: 1; }
.back { display: inline-block; font-size: 15px; font-weight: 500; color: var(--mute); margin-bottom: clamp(28px, 6vh, 64px); }
.case-meta { display: flex; align-items: center; gap: 22px; color: var(--mute); font-size: 16px; font-weight: 500; margin-bottom: 18px; }
.case-meta .kind { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.case-meta .kind i { width: 9px; height: 9px; border-radius: 50%; background: var(--t); }
.case h1 { font-size: clamp(52px, 9vw, 160px); }
.case .lede { margin-top: 24px; }
.case-cover { position: relative; margin-top: clamp(36px, 7vh, 80px); aspect-ratio: 16 / 8; max-height: 76vh; width: 100%; border-radius: var(--r-lg); background: var(--c2); overflow: hidden; }
.case-cover .art { left: 5%; top: 8%; width: 90%; height: 84%; }
.case-body { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vh, 56px) 40px; margin-top: clamp(56px, 10vh, 120px); }
.case-body dt { font-stretch: 75%; font-weight: 800; font-size: clamp(30px, 3.6vw, 56px); line-height: 1; letter-spacing: -0.01em; }
.case-body dd { margin: 0; color: var(--mute); max-width: 52ch; font-size: clamp(18px, 1.5vw, 22px); }
.next { display: block; margin-top: clamp(72px, 14vh, 170px); text-decoration: none; }
.next small { color: var(--mute); font-size: 16px; font-weight: 500; }
.next span { display: block; font-stretch: 75%; font-weight: 800; font-size: clamp(48px, 9vw, 150px); line-height: .92; letter-spacing: -0.015em; margin-top: 8px; transition: translate .5s var(--ease); }
@media (hover: hover) { .next:hover span { translate: 18px 0; } }
.floater { position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; width: 320px; aspect-ratio: 4 / 3; margin: 26px 0 0 26px; border-radius: 24px; overflow: hidden; background: var(--c2); opacity: 0; scale: .85; transition: opacity .25s, scale .35s var(--ease); }
.floater.on { opacity: 1; scale: 1; }
.floater .art { left: 8%; top: 8%; width: 84%; height: 84%; }

/* 404 */
.lost { min-height: 100svh; display: grid; place-items: center; padding: 20px; }
.lost .chat { width: min(420px, 100%); height: auto; min-height: 0; }
.lost .thread { flex: none; padding-top: 4px; }

/* ---------- terminal (easter egg) ---------- */
.term { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 16px; background: rgb(0 0 0 / .72); animation: term-in .25s var(--ease) both; }
.term-win { width: min(760px, 100%); height: min(520px, 86svh); display: flex; flex-direction: column; background: #0E0E0E; color: #E8E4DB; border-radius: 18px; box-shadow: 0 0 0 1px #2B2B2B, 0 40px 100px -30px #000; font: 14.5px/1.55 ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace; overflow: hidden; }
.term-bar { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; color: #918D85; font-size: 13px; }
.term-bar button { border: 0; background: none; color: inherit; font: inherit; padding: 2px 8px; }
.term-out { flex: 1; overflow-y: auto; padding: 4px 16px 8px; white-space: pre-wrap; word-break: break-word; }
.term-out .u { color: #2AABEE; } .term-out .a { color: #FFB340; } .term-out .p { color: #FF6092; } .term-out .g { color: #5CE0BE; } .term-out .m { color: #918D85; }
.term-out a { color: #2AABEE; }
.term-in { display: flex; gap: 8px; padding: 8px 16px 14px; }
.term-in span { color: #5CE0BE; }
.term-in input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: inherit; font: inherit; }
.term canvas { display: block; margin: 8px auto 0; border-radius: 8px; background: #191919; max-width: 100%; image-rendering: pixelated; }
@keyframes term-in { from { opacity: 0; scale: .98; } }

/* ---------- view transitions ---------- */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }
::view-transition-group(*) { animation-duration: .5s; animation-timing-function: var(--ease); }

/* ---------- responsive ---------- */
@media (max-width: 899px) {
  body { font-size: 16.5px; }
  .nav-link { display: none; }
  .hero { grid-template-columns: 1fr; align-items: start; gap: 44px; padding: 104px var(--pad) 110px; min-height: 0; }
  .hero h1 { font-size: clamp(46px, 13.6vw, 110px); }
  .gl { left: 0; width: 100%; height: min(100svh, 620px); }
  .chat { height: 520px; }
  .services h2, .work h2, .process h2 { font-size: clamp(40px, 11.5vw, 84px); }
  .svc { grid-template-columns: 1fr; gap: 14px; }
  .svc h3 { font-size: clamp(34px, 10vw, 72px); }
  .svc p { padding-left: 20px; }
  .grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .card { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 3.4; }
  .contact h2 { font-size: clamp(50px, 15vw, 120px); }
  .btn.big { height: 62px; padding: 0 28px; font-size: 18px; }
  .case-body { grid-template-columns: 1fr; gap: 10px; }
  .case-body dd { margin-bottom: 28px; }
  .case-cover { aspect-ratio: 4 / 3; }
}
@media (max-width: 420px) {
  .actions .btn { width: 100%; }
  .keyboard button { font-size: 13.5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .run { animation: none; }
  .art * { animation: none !important; }
  @view-transition { navigation: none; }
}
