/* =========================================================
   GUTO DEVELOPS · portfolio
   ========================================================= */

:root {
  --bg: #050507;
  --bg2: #0a0a0f;
  --panel: #0d0d14;
  --line: rgba(255, 255, 255, .08);
  --line2: rgba(255, 255, 255, .14);
  --text: #f1f1f4;
  --muted: #9a9aab;
  --dim: #5f5f72;
  --lime: #c8ff2e;
  --lime-ink: #0b1000;
  --violet: #7c5cff;
  --cyan: #38d6ff;

  --f-display: "Jost", "Futura", system-ui, sans-serif;
  --f-sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --f-serif: "Instrument Serif", Georgia, serif;

  --gutter: clamp(16px, 4vw, 56px);
  --navh: 76px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
::selection { background: var(--lime); color: #000; }
img { 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, p, figure { margin: 0; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }

.mono { font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); flex: none; }
.dot--live { animation: ping 1.8s infinite; }
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(200, 255, 46, .55); }
  80%, 100% { box-shadow: 0 0 0 9px rgba(200, 255, 46, 0); }
}

/* ---------- buttons ---------- */
.btn {
  --h: 52px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--h);
  padding: 0 24px;
  border-radius: 999px;
  font: 600 15px/1 var(--f-sans);
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: transform .45s var(--ease-out), border-color .3s, color .3s, background .3s;
}
.btn svg { width: 15px; height: 15px; flex: none; transition: transform .45s var(--ease-out); }
.btn:hover svg { transform: translate(2px, -2px); }
.btn--lime { background: var(--lime); color: var(--lime-ink); box-shadow: 0 10px 40px -12px rgba(200, 255, 46, .6); }
.btn--lime::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: #fff; transform: translateY(102%); transition: transform .5s var(--ease-out);
}
.btn--lime:hover::before { transform: translateY(0); }
.btn--ghost { border: 1px solid var(--line2); background: rgba(255, 255, 255, .03); color: var(--text); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn--ghost:hover { border-color: rgba(255, 255, 255, .6); }
.btn--sm { --h: 40px; padding: 0 16px; font-size: 13.5px; }
.btn--xl { --h: 64px; padding: 0 32px; font-size: 17px; }

/* ---------- boot counter (intro) ---------- */
.boot { display: none; }
.js .boot {
  position: absolute; left: 50%; z-index: 6;
  top: calc(46% + var(--gw) * .38 + 34px);
  display: grid; justify-items: center; gap: 8px;
  transform: translateX(-50%);
  color: var(--muted); pointer-events: none;
  transition: opacity .6s, transform .8s var(--ease-out);
}
.boot__num { font: 200 34px/1 var(--f-display); letter-spacing: .08em; color: var(--text); font-variant-numeric: tabular-nums; }
.boot__log { font-size: 10.5px; text-transform: none; letter-spacing: .04em; color: var(--dim); }
.is-ready .boot { opacity: 0; transform: translate(-50%, 10px); }

/* ---------- cursor ---------- */
.cursor { display: none; }
.has-cursor .cursor { display: block; position: fixed; inset: 0; z-index: 1500; pointer-events: none; }
.has-cursor, .has-cursor * { cursor: none !important; }
.has-cursor input, .has-cursor textarea { cursor: text !important; }
.cursor__dot, .cursor__ring { position: fixed; left: 0; top: 0; border-radius: 50%; will-change: transform; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--lime); }
.cursor__ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .45);
  transition: width .4s var(--ease-out), height .4s var(--ease-out), margin .4s var(--ease-out), background .3s, border-color .3s, opacity .3s;
}
.cursor__label { font: 600 10px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: #000; opacity: 0; transition: opacity .2s; }
.cursor.is-link .cursor__ring { width: 60px; height: 60px; margin: -30px 0 0 -30px; border-color: var(--lime); }
.cursor.is-view .cursor__ring { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--lime); border-color: var(--lime); }
.cursor.is-drag .cursor__ring { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: rgba(200, 255, 46, .08); border-color: var(--lime); }
.cursor.is-drag .cursor__label { color: var(--lime); }
.cursor.is-view .cursor__label, .cursor.is-drag .cursor__label { opacity: 1; }
.cursor.is-view .cursor__dot, .cursor.is-drag .cursor__dot { opacity: 0; }
.cursor.is-hidden .cursor__ring, .cursor.is-hidden .cursor__dot { opacity: 0; }

/* ---------- grain / progress / fixed hud ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 1400; pointer-events: none; opacity: .065;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  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); }
}
.progress { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 600; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--lime); transform: scaleX(0); transform-origin: 0 50%; box-shadow: 0 0 10px var(--lime); }
.hud-fixed {
  position: fixed; left: var(--gutter); right: var(--gutter); bottom: 18px; z-index: 400;
  display: flex; justify-content: space-between; pointer-events: none;
  font-size: 11px; color: var(--dim); opacity: 0; transition: opacity .5s;
}
.hud-fixed.is-on { opacity: 1; }
.hud-fixed span { padding: 6px 10px; border-radius: 99px; border: 1px solid var(--line); background: rgba(5, 5, 7, .62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hud-fixed .hud-pct { color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  height: var(--navh);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 0 var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background .5s, border-color .5s, backdrop-filter .5s, opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.js .nav { opacity: 0; transform: translateY(-14px); }
.is-ready .nav { opacity: 1; transform: none; }
.nav.is-scrolled { background: rgba(5, 5, 7, .62); border-color: var(--line); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); }
.logo { display: flex; align-items: center; gap: 12px; }
.logo__mark { width: 34px; height: auto; overflow: visible; fill: none; stroke: #fff; stroke-width: 13; transition: stroke .4s, transform .8s var(--ease-out); }
.logo:hover .logo__mark { stroke: var(--lime); transform: rotate(-8deg); }
.logo__txt { font: 300 16px/1 var(--f-display); letter-spacing: .16em; white-space: nowrap; }
.nav__links { display: flex; gap: 30px; }
.nav__links a { position: relative; font: 500 13px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); transition: color .3s; padding: 6px 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--lime); transform: scaleX(0); transform-origin: 100% 50%; transition: transform .5s var(--ease-out); }
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }
.nav__right { display: flex; align-items: center; gap: 18px; }
.nav__clock { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11.5px; }
.nav__clock b, .menu__foot b { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }
.lang { display: inline-flex; gap: 4px; font-size: 11.5px; color: var(--dim); }
.lang em { font-style: normal; opacity: .5; }
.lang span { transition: color .3s; }
.lang span.is-on { color: var(--lime); }
.lang:hover span:not(.is-on) { color: var(--text); }
.burger { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line2); position: relative; }
.burger i { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--text); transition: transform .5s var(--ease-out); }
.burger i:first-child { top: 17px; }
.burger i:last-child { top: 23px; }
.menu-open .burger i:first-child { transform: translateY(3px) rotate(45deg); }
.menu-open .burger i:last-child { transform: translateY(-3px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 450;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--navh) + 24px) var(--gutter) 28px;
  background: rgba(5, 5, 7, .97);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  clip-path: inset(0 0 100% 0);
  transition: clip-path .8s var(--ease-out);
  pointer-events: none;
}
.menu-open .menu { clip-path: inset(0 0 0 0); pointer-events: auto; }
.menu__links { display: grid; gap: 6px; }
.menu__links a { display: flex; align-items: baseline; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.menu__links .mono { color: var(--lime); }
.menu__links b { font: 400 clamp(36px, 11vw, 66px)/1 var(--f-display); letter-spacing: -.03em; }
.menu__foot { display: flex; justify-content: space-between; color: var(--muted); }

/* ---------- hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; isolation: isolate; }
.stars { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero__glow {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(55% 45% at 50% 46%, rgba(124, 92, 255, .20), transparent 70%),
    radial-gradient(35% 35% at 82% 72%, rgba(56, 214, 255, .10), transparent 70%),
    radial-gradient(30% 30% at 14% 78%, rgba(200, 255, 46, .07), transparent 70%);
}
.floor {
  position: absolute; left: 0; right: 0; bottom: 0; height: 48%; z-index: 0; pointer-events: none;
  perspective: 380px; perspective-origin: 50% 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 30%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 30%, #000 100%);
}
.floor::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; z-index: 1;
  background: linear-gradient(90deg, transparent, rgba(56, 214, 255, .5), rgba(200, 255, 46, .6), rgba(124, 92, 255, .5), transparent);
  box-shadow: 0 0 24px 2px rgba(124, 92, 255, .35);
}
.floor__grid {
  position: absolute; left: -100%; right: -100%; top: 0; height: 220%;
  transform-origin: 50% 0; transform: rotateX(74deg);
  background-image:
    linear-gradient(rgba(255, 255, 255, .10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .10) 1px, transparent 1px);
  background-size: 70px 70px;
  animation: floor 2.6s linear infinite;
}
@keyframes floor { to { background-position: 0 70px; } }

.hero__kicker { position: absolute; top: calc(var(--navh) + 3.5vh); left: 0; right: 0; z-index: 6; display: flex; justify-content: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 16px;
  border: 1px solid var(--line2); border-radius: 999px;
  background: rgba(255, 255, 255, .03); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font: 500 13px/1 var(--f-sans); color: var(--text);
}

.stage {
  position: absolute; inset: 0; z-index: 2;
  perspective: 1500px; perspective-origin: 50% 47%;
  touch-action: pan-y;
  user-select: none; -webkit-user-select: none;
}
.hero { --gw: clamp(230px, 29vw, 470px); }
.world { position: absolute; left: 50%; top: 46%; width: 0; height: 0; transform-style: preserve-3d; }
.core { position: absolute; left: 0; top: 0; width: var(--gw); transform: translate(-50%, -50%); pointer-events: none; }
.gd { display: block; width: 100%; height: auto; overflow: visible; }
.gd path { fill: none; stroke-linecap: butt; stroke-linejoin: miter; }
.gd__line path { stroke: #fff; stroke-width: 2.4; }
.gd__glow path { stroke: #a99bff; stroke-width: 7; opacity: .7; }
.gd__pulse path { stroke: var(--lime); stroke-width: 3; stroke-dasharray: .06 .94; opacity: 0; transition: opacity 1s; animation: gdPulse 3.6s linear infinite; }
.gd__pulse path + path { animation-delay: -1.8s; }
.js .gd__line path, .js .gd__glow path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.is-ready .gd__pulse path { opacity: 1; }
.is-ready .gd__glow path { animation: gdBreath 4.5s ease-in-out infinite; }
@keyframes gdPulse { to { stroke-dashoffset: -1; } }
@keyframes gdBreath { 50% { opacity: .35; } }

.orbit-card { display: none; }
.js .orbit-card {
  display: block; position: absolute; left: 0; top: 0; margin: 0;
  width: var(--cw); border-radius: 12px; overflow: hidden; background: #111;
  box-shadow: 0 40px 80px -24px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .14);
  opacity: 0; will-change: transform, opacity;
  --cw: clamp(150px, 20vw, 300px);
}
.js .orbit-card.is-m { --cw: clamp(62px, 8.2vw, 124px); border-radius: 14px; }
.orbit-card img { width: 100%; height: auto; pointer-events: none; }
.orbit-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, .20), transparent 38%), rgba(5, 5, 7, var(--shade, 0));
}

.hero__bottom {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: calc(52px + 2vh); z-index: 6;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  pointer-events: none;
}
.hero__bottom > * { pointer-events: auto; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34%; z-index: 4; pointer-events: none; background: linear-gradient(to top, rgba(5, 5, 7, .82), transparent); }
.hero__copy { display: grid; gap: 16px; }
.hero__h1 { max-width: 13ch; font: 400 clamp(38px, 4.6vw, 78px)/1 var(--f-display); letter-spacing: -.035em; }
.hero__h1 em { font-family: var(--f-serif); font-weight: 400; font-style: italic; letter-spacing: -.01em; color: var(--lime); }
.hero__sub { max-width: 40ch; font-size: clamp(15.5px, 1.2vw, 18px); line-height: 1.45; color: var(--muted); }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__hud { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 18px; z-index: 6; display: flex; justify-content: space-between; color: var(--dim); font-size: 11px; pointer-events: none; }
.js .hero__kicker, .js .hero__bottom, .js .hero__hud { opacity: 0; transform: translateY(16px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.js .hero__bottom { transition-delay: .35s; }
.js .hero__hud { transition-delay: .55s; }
.is-ready .hero__kicker, .is-ready .hero__bottom, .is-ready .hero__hud { opacity: 1; transform: none; }

/* ---------- tapes ---------- */
.tapes { position: relative; z-index: 3; height: clamp(170px, 20vw, 290px); margin-top: -2vw; overflow: hidden; }
.tape { position: absolute; left: -6%; right: -6%; top: 50%; padding: clamp(12px, 1.3vw, 20px) 0; overflow: hidden; white-space: nowrap; }
.tape--lime { background: var(--lime); color: #050507; transform: translateY(-50%) rotate(-3.2deg); box-shadow: 0 24px 70px -24px rgba(200, 255, 46, .55); }
.tape--dark { background: #0c0c13; border-block: 1px solid var(--line2); transform: translateY(-50%) rotate(2.6deg); }
.tape__track { display: inline-flex; will-change: transform; }
.tape__seq { display: inline-block; font: 500 clamp(22px, 2.9vw, 44px)/1 var(--f-display); letter-spacing: .01em; text-transform: uppercase; white-space: pre; }
.tape__seq b { display: inline-block; margin: 0 .45em; font-size: .62em; vertical-align: .22em; }
.tape--dark .tape__seq { color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .55); }
.tape--dark .tape__seq b { color: var(--lime); -webkit-text-stroke: 0; }

/* ---------- generic sections ---------- */
.section { position: relative; padding: clamp(100px, 13vw, 190px) var(--gutter); }
.label { display: flex; gap: 14px; margin-bottom: 26px; color: var(--muted); }
.label > span:first-child { color: var(--lime); }
.h2 { font: 400 clamp(44px, 7vw, 124px)/.96 var(--f-display); letter-spacing: -.04em; }
.h2 em { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; color: var(--lime); }
.h2 sup { font: 500 14px/1 var(--f-mono); letter-spacing: .06em; color: var(--lime); vertical-align: top; margin-left: 10px; position: relative; top: .4em; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: clamp(44px, 6vw, 84px); }
.section-sub { max-width: 40ch; margin-top: 20px; color: var(--muted); font-size: clamp(16px, 1.25vw, 18.5px); line-height: 1.5; }

.js .rv { opacity: 0; transform: translateY(34px); transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--rd, 0s); }
.js .rv.is-in { opacity: 1; transform: none; }

/* ---------- manifesto ---------- */
.manifesto { padding-top: clamp(80px, 10vw, 150px); }
.manifesto__text { max-width: 1240px; font: 500 clamp(30px, 4.5vw, 74px)/1.08 var(--f-sans); letter-spacing: -.04em; }
.manifesto__text mark { background: none; color: inherit; }
.manifesto__text em { font-family: var(--f-serif); font-weight: 400; letter-spacing: -.01em; }
.js .manifesto__text .w { color: #24242e; transition: color .35s; }
.js .manifesto__text .w.on { color: var(--text); }
.js .manifesto__text mark .w.on { color: var(--lime); }

/* ---------- projects ---------- */
.work { padding-bottom: clamp(60px, 8vw, 120px); }
.stack { position: relative; }
.project { position: sticky; top: calc(var(--navh) + 10px + var(--i) * 14px); margin-bottom: 7vh; }
.project:last-child { margin-bottom: 0; }
.project__card {
  position: relative;
  height: calc(100vh - var(--navh) - 34px - var(--i) * 14px);
  max-height: 840px; min-height: 560px;
  display: grid; grid-template-columns: minmax(340px, .8fr) 1.2fr;
  border: 1px solid var(--line2); border-radius: 28px; overflow: hidden;
  background: linear-gradient(160deg, #11111a 0%, #08080c 62%);
  transform: scale(var(--s, 1)); transform-origin: 50% 0;
  will-change: transform;
}
.project__card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(55% 70% at 74% 58%, var(--cg), transparent 70%);
}
.project__card::after {
  content: ""; position: absolute; inset: 0; z-index: 10; pointer-events: none;
  background: #050507; opacity: var(--shade, 0); border-radius: inherit;
}
.project__info { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 16px; padding: clamp(26px, 3vw, 46px); }
.project__top { display: flex; justify-content: space-between; color: var(--muted); }
.project__num { color: var(--c); }
.project__status { display: inline-flex; align-items: center; gap: 8px; }
.project__status .dot { background: var(--dim); }
.project__status.is-live .dot { background: var(--lime); animation: ping 1.8s infinite; }
.project__title { margin-top: auto; font: 400 clamp(36px, 3.7vw, 62px)/.96 var(--f-display); letter-spacing: -.035em; hyphens: manual; }
.project__cat { color: var(--c); }
.project__desc { max-width: 44ch; color: var(--muted); font-size: 15.5px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.tags li { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border: 1px solid var(--line2); border-radius: 999px; font-size: 12.5px; color: var(--text); }
.project__meta { display: flex; gap: 32px; margin: 4px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.project__meta dt { color: var(--dim); font-size: 10.5px; }
.project__meta dd { margin: 5px 0 0; font-size: 14.5px; font-weight: 500; }
.project__link { align-self: flex-start; }

.project__visual { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; padding: 6% 7% 6% 2%; perspective: 1800px; }
.browser {
  position: relative; width: 100%; max-width: 780px;
  border-radius: 14px; overflow: hidden;
  background: #0c0c12; border: 1px solid var(--line2);
  box-shadow: 0 70px 140px -40px rgba(0, 0, 0, .95), 0 0 0 1px rgba(255, 255, 255, .03) inset;
  transform: rotateY(-9deg) rotateX(3deg);
  transition: transform 1s var(--ease-out);
}
.project:hover .browser { transform: rotateY(-4deg) rotateX(1.5deg); }
.browser__bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: #111118; border-bottom: 1px solid var(--line); }
.browser__bar > i { width: 10px; height: 10px; border-radius: 50%; background: #2a2a36; }
.browser__url {
  display: block; flex: 0 1 340px; min-width: 0; margin-left: 12px; height: 22px; padding: 0 10px; border-radius: 6px;
  background: #18181f; line-height: 22px;
  font-size: 10.5px; letter-spacing: .02em; text-transform: none; color: var(--muted);
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.screen { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: #111; }
.screen img { width: 100%; height: auto; will-change: transform; user-select: none; -webkit-user-select: none; }
.phone {
  position: absolute; right: 5%; bottom: 6%; z-index: 2;
  width: 20%; min-width: 118px; aspect-ratio: 9 / 19;
  padding: 6px; border-radius: 26px;
  background: #0a0a0f; border: 1px solid rgba(255, 255, 255, .2);
  box-shadow: 0 50px 90px -24px rgba(0, 0, 0, .95), 0 0 0 4px rgba(255, 255, 255, .03);
  transform: rotateY(-9deg) rotateX(3deg) translateZ(70px);
  transition: transform 1s var(--ease-out);
}
.project:hover .phone { transform: rotateY(-4deg) rotateX(1.5deg) translateZ(90px) translateY(-8px); }
.phone .screen { aspect-ratio: auto; height: 100%; border-radius: 20px; }
.phone__notch { position: absolute; z-index: 3; top: 12px; left: 50%; width: 30%; height: 12px; border-radius: 10px; background: #000; transform: translateX(-50%); }

/* ---------- build ---------- */
.build { position: relative; height: 520vh; }
.build__sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: grid; grid-template-columns: minmax(300px, .78fr) 1.5fr; gap: clamp(28px, 4vw, 72px); align-items: center;
  padding: calc(var(--navh) + 8px) var(--gutter) 46px;
}
.build__sticky::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(45% 55% at 72% 55%, rgba(124, 92, 255, .14), transparent 70%),
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 100% 64px,
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 64px 100%;
  -webkit-mask-image: radial-gradient(80% 80% at 60% 50%, #000 30%, transparent 80%);
  mask-image: radial-gradient(80% 80% at 60% 50%, #000 30%, transparent 80%);
}
.build__title { font-size: clamp(40px, 5vw, 86px); }
.steps { position: relative; list-style: none; margin: 34px 0 0; padding: 0; }
.steps::before { content: ""; position: absolute; left: 13px; top: 14px; bottom: 14px; width: 1px; background: var(--line2); }
.steps__fill { position: absolute; left: 13px; top: 14px; width: 1px; height: calc(var(--p, 0) * (100% - 28px)); background: var(--lime); box-shadow: 0 0 12px var(--lime); }
.step { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 18px; padding: 9px 0; color: var(--dim); transition: color .4s; }
.step__n { position: relative; z-index: 1; width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: var(--bg); border: 1px solid var(--line2); font-size: 10px; letter-spacing: 0; transition: all .4s; }
.step.is-done .step__n { color: var(--lime); border-color: var(--lime); }
.step.is-on { color: var(--text); }
.step.is-on .step__n { background: var(--lime); border-color: var(--lime); color: #000; box-shadow: 0 0 22px rgba(200, 255, 46, .6); }
.step h3 { margin-top: 3px; font: 600 18px/1.2 var(--f-sans); letter-spacing: -.01em; }
.step p { max-height: 0; overflow: hidden; opacity: 0; margin-top: 6px; color: var(--muted); font-size: 14.5px; transition: max-height .6s var(--ease-out), opacity .4s; }
.step.is-on p { max-height: 90px; opacity: 1; }

.ide {
  position: relative; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line2);
  background: rgba(11, 11, 17, .88);
  box-shadow: 0 90px 160px -50px rgba(0, 0, 0, .95), 0 0 0 1px rgba(255, 255, 255, .03) inset, 0 0 120px -40px rgba(124, 92, 255, .35);
}
.ide__bar { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-bottom: 1px solid var(--line); background: #0f0f16; }
.ide__bar > i { width: 10px; height: 10px; border-radius: 50%; background: #2a2a36; }
.ide__title { margin-left: 10px; font-size: 11px; text-transform: none; letter-spacing: .02em; color: var(--muted); }
.ide__badge { margin-left: auto; padding: 4px 8px; border-radius: 6px; border: 1px solid var(--line2); color: var(--dim); font-size: 10px; transition: all .4s; }
.ide.is-live .ide__badge { background: var(--lime); border-color: var(--lime); color: #000; box-shadow: 0 0 20px rgba(200, 255, 46, .6); }
.ide__body { display: grid; grid-template-columns: .82fr 1.18fr; height: min(60vh, 560px); }
.ide__status { display: flex; gap: 18px; align-items: center; height: 34px; padding: 0 16px; border-top: 1px solid var(--line); background: #0f0f16; font-size: 10.5px; color: var(--muted); }
.ide__step { color: var(--lime); }
.ide__msg { text-transform: none; letter-spacing: .02em; }
.ide__pct { margin-left: auto; font-variant-numeric: tabular-nums; }

.code { position: relative; overflow: hidden; border-right: 1px solid var(--line); padding: 16px 0; font-size: 12px; font-weight: 400; line-height: 1.85; letter-spacing: 0; text-transform: none; color: #c9c9d6; }
.code__inner { counter-reset: ln; transition: transform .6s var(--ease-out); }
.code .ln { display: block; white-space: pre; overflow: hidden; text-overflow: clip; padding: 0 14px 0 0; counter-increment: ln; opacity: 0; transform: translateX(-8px); transition: opacity .3s, transform .4s var(--ease-out), background .3s; }
.code .ln::before { content: counter(ln); display: inline-block; width: 34px; padding-right: 14px; text-align: right; color: #3b3b4a; }
.code .ln.on { opacity: 1; transform: none; }
.code .ln.cur { background: rgba(200, 255, 46, .06); }
.code .ln.cur::after { content: ""; display: inline-block; width: 7px; height: 1.2em; margin-left: 3px; vertical-align: -.25em; background: var(--lime); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.t-com { color: #5f5f74; font-style: italic; }
.t-tag { color: #7cc4ff; }
.t-attr { color: #c8ff2e; }
.t-str { color: #ffb86b; }
.t-sel { color: #ff7ab8; }
.t-prop { color: #b79cff; }
.t-fn { color: #38d6ff; }
.t-num { color: #ff9d6b; }
.t-lime { color: var(--lime); }

.preview {
  position: relative; overflow: hidden; container-type: inline-size;
  background-color: #08080d;
  background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1.2px);
  background-size: 18px 18px;
}
.pv-url { position: absolute; z-index: 5; top: 10px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; height: 24px; padding: 0 12px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); font-size: 10.5px; text-transform: none; letter-spacing: .02em; color: var(--muted); white-space: nowrap; transition: all .5s; }
.pv-lock { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); transition: background .4s, box-shadow .4s; }
.mini.s4 ~ .pv-url, .preview.is-live .pv-url { color: var(--text); border-color: rgba(200, 255, 46, .4); }
.preview.is-live .pv-lock { background: var(--lime); box-shadow: 0 0 10px var(--lime); }

.mini {
  position: absolute; inset: 0; padding: 13cqw 6cqw 5cqw;
  display: flex; flex-direction: column; gap: 4cqw;
  font-family: var(--f-sans); color: #f6e7d3;
  transition: background 1s var(--ease-out);
}
.mini.s2 { background: radial-gradient(90% 70% at 78% 30%, #4a2412 0%, #1a0f0a 55%, #100a07 100%); }
.mini .m-el { transition: opacity .7s var(--ease-out), transform .9s var(--ease-out), color .8s, background .8s, outline-color .5s, box-shadow .8s, border-color .8s; }
.mini:not(.s1) .m-el { opacity: 0; transform: translateY(10px) scale(.97); }
.mini.s1:not(.s2) .m-el {
  color: transparent !important; background: rgba(255, 255, 255, .025) !important;
  outline: 1px dashed rgba(255, 255, 255, .32); outline-offset: 0; box-shadow: none !important; border-color: transparent !important;
}
.mini.s1:not(.s2) .m-links i { background: rgba(255, 255, 255, .25); }
.mini.s1:not(.s2) .m-btn { color: transparent; background: rgba(255, 255, 255, .04); outline: 1px dashed rgba(255, 255, 255, .32); }
.mini.s1:not(.s2) .m-img { background: linear-gradient(to top right, transparent calc(50% - .5px), rgba(255, 255, 255, .22) 50%, transparent calc(50% + .5px)), linear-gradient(to top left, transparent calc(50% - .5px), rgba(255, 255, 255, .22) 50%, transparent calc(50% + .5px)) !important; }
.mini.s1:not(.s2) .m-img > * { opacity: 0; }
.mini.s1:not(.s2) .m-card b { background: rgba(255, 255, 255, .2); }

.mini__notes { position: absolute; inset: 0; transition: opacity .6s, transform .8s var(--ease-out); }
.mini.s1 .mini__notes { opacity: 0; transform: scale(.92); pointer-events: none; }
.note { position: absolute; padding: 2.2cqw 2.8cqw; font: italic 400 3.4cqw/1.05 var(--f-serif); color: #0b0b0f; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .7); white-space: nowrap; }
.n1 { left: 9%; top: 24%; background: #e8ff9c; transform: rotate(-5deg); }
.n2 { left: 40%; top: 46%; background: #cbbcff; transform: rotate(3deg); }
.n3 { left: 14%; top: 67%; background: #a6ecff; transform: rotate(-2deg); }

.m-nav { display: flex; align-items: center; justify-content: space-between; padding: 1.2cqw 0; border-bottom: 1px solid rgba(246, 231, 211, .14); }
.m-logo { font: 800 2.6cqw/1 var(--f-display); letter-spacing: .14em; }
.m-links { display: flex; gap: 2.4cqw; }
.m-links i { display: block; width: 6cqw; height: .9cqw; border-radius: 1cqw; background: rgba(246, 231, 211, .35); transition: background .8s; }
.m-btn { padding: 1.3cqw 2.6cqw; border-radius: 99px; background: #ff8a3d; color: #1a0e07; font: 600 1.8cqw/1 var(--f-sans); transition: color .8s, background .8s, outline-color .5s; }
.m-hero { flex: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 3cqw; align-items: center; min-height: 0; }
.m-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 1.8cqw; }
.m-kicker { font: 600 1.5cqw/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: #ff8a3d; }
.m-h1 { font: 800 5.4cqw/1 var(--f-display); letter-spacing: -.045em; }
.m-p { font-size: 2cqw; line-height: 1.4; color: rgba(246, 231, 211, .7); }
.m-cta { position: relative; padding: 1.7cqw 3.2cqw; border-radius: 99px; background: #f6e7d3; color: #1a0e07; font: 600 1.9cqw/1 var(--f-sans); }
.m-visual { position: relative; aspect-ratio: 1; border-radius: 50%; }
.m-orb {
  position: absolute; inset: 9%; border-radius: 50%;
  background: conic-gradient(from 210deg, #ff8a3d, #ff3d6e, #7c5cff, #38d6ff, #c8ff2e, #ff8a3d);
  box-shadow: 0 0 9cqw -1cqw rgba(255, 138, 61, .55);
  transition: opacity .8s;
}
.m-orb::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, .55), transparent 28%), radial-gradient(circle at 70% 75%, rgba(0, 0, 0, .55), transparent 55%); }
.m-ring { position: absolute; inset: -2% -14%; border-radius: 50%; border: .35cqw solid rgba(246, 231, 211, .35); transform: rotateX(72deg) rotateZ(-14deg); transition: opacity .8s; }
.m-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.2cqw; }
.m-card { padding: 1.3cqw; border-radius: 1.8cqw; background: rgba(246, 231, 211, .06); border: 1px solid rgba(246, 231, 211, .12); }
.m-card i { display: block; aspect-ratio: 16 / 8; border-radius: 1.1cqw; background: linear-gradient(135deg, #ff8a3d, #6b2a12); }
.m-card:nth-child(2) i { background: linear-gradient(135deg, #7c5cff, #ff3d6e); }
.m-card:nth-child(3) i { background: linear-gradient(135deg, #38d6ff, #1d3a6b); }
.m-card b { display: block; height: .9cqw; width: 72%; margin-top: 1.3cqw; border-radius: 1cqw; background: rgba(246, 231, 211, .4); }
.m-card b + b { width: 46%; margin-top: .9cqw; opacity: .6; }

.mini.s3 .m-orb { animation: spin 7s linear infinite; }
.mini.s3 .m-ring { animation: ringspin 9s linear infinite; }
.mini.s3 .m-cta { animation: glow 2.2s ease-in-out infinite; }
.mini.s3 .m-card { animation: float 3.2s ease-in-out infinite; }
.mini.s3 .m-card:nth-child(2) { animation-delay: -1s; }
.mini.s3 .m-card:nth-child(3) { animation-delay: -2s; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ringspin { to { transform: rotateX(72deg) rotateZ(346deg); } }
@keyframes glow { 50% { box-shadow: 0 0 0 .8cqw rgba(255, 138, 61, .25), 0 0 6cqw rgba(255, 138, 61, .55); } }
@keyframes float { 50% { transform: translateY(-1.2cqw); } }

.m-cursor { position: absolute; left: 80%; top: 90%; width: 4.4cqw; opacity: 0; transition: opacity .4s; pointer-events: none; z-index: 4; }
.mini.s3:not(.s4) .m-cursor { opacity: 1; animation: cursorPath 3.6s var(--ease) infinite; }
@keyframes cursorPath {
  0% { left: 80%; top: 92%; transform: scale(1); }
  40% { left: 16%; top: 62%; transform: scale(1); }
  48% { left: 16%; top: 62%; transform: scale(.82); }
  56% { left: 16%; top: 62%; transform: scale(1); }
  100% { left: 80%; top: 92%; }
}
.m-toast { position: absolute; right: 4cqw; bottom: 4cqw; z-index: 5; padding: 1.8cqw 2.6cqw; border-radius: 1.6cqw; background: var(--lime); color: #000; font-size: max(10px, 1.7cqw); box-shadow: 0 2cqw 6cqw -1cqw rgba(200, 255, 46, .55); opacity: 0; transform: translateY(16px) scale(.96); transition: opacity .5s, transform .7s var(--ease-out); }
.mini.s4 .m-toast { opacity: 1; transform: none; }
.m-sweep { position: absolute; left: 0; right: 0; top: -20%; height: 20%; pointer-events: none; z-index: 6; background: linear-gradient(to bottom, transparent, rgba(200, 255, 46, .18), transparent); opacity: 0; }
.mini.s4 .m-sweep { animation: sweep 1.6s var(--ease) 1; }
@keyframes sweep { 0% { top: -20%; opacity: 1; } 100% { top: 100%; opacity: 1; } }

/* ---------- services ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cell {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 340px; padding: 28px;
  display: flex; flex-direction: column; justify-content: flex-end;
  border-radius: 24px; border: 1px solid var(--line);
  background: linear-gradient(180deg, #0f0f17, #09090d);
}
.cell--design { grid-column: span 2; }
.cell--deploy { grid-column: span 3; min-height: 260px; flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 32px; }
.cell__txt { position: relative; z-index: 2; }
.cell h3 { margin-bottom: 8px; font: 600 22px/1.15 var(--f-sans); letter-spacing: -.02em; }
.cell p { max-width: 42ch; color: var(--muted); font-size: 15px; }
.cell__vis { position: absolute; inset: 0 0 auto 0; height: 62%; display: grid; place-items: center; }
.spot::before {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit; padding: 1px;
  background: radial-gradient(380px circle at var(--mx, -999px) var(--my, -999px), rgba(200, 255, 46, .65), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
}
.spot::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(520px circle at var(--mx, -999px) var(--my, -999px), rgba(255, 255, 255, .055), transparent 42%);
}

.tpl { position: relative; padding: 0 20px; }
.tpl__word { font: 500 clamp(44px, 7vw, 112px)/1 var(--f-display); letter-spacing: -.03em; color: transparent; -webkit-text-stroke: 1.2px rgba(255, 255, 255, .35); }
.tpl__strike { position: absolute; left: 0; right: 0; top: 52%; height: 6px; border-radius: 6px; background: var(--lime); box-shadow: 0 0 24px rgba(200, 255, 46, .7); transform: scaleX(0) rotate(-4deg); transform-origin: 0 50%; transition: transform 1.1s var(--ease-out) .3s; }
.tpl__stamp { position: absolute; right: -6px; top: -26px; padding: 8px 12px; border-radius: 8px; background: var(--lime); color: #000; transform: rotate(8deg) scale(0); transition: transform .8s cubic-bezier(.34, 1.56, .64, 1) 1.1s; }
.cell.is-in .tpl__strike { transform: scaleX(1) rotate(-4deg); }
.cell.is-in .tpl__stamp { transform: rotate(8deg) scale(1); }

.gauge { position: relative; width: 150px; height: 150px; display: grid; place-items: center; }
.gauge svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.gauge circle { fill: none; stroke-width: 6; }
.gauge__bg { stroke: rgba(255, 255, 255, .08); }
.gauge__fg { stroke: var(--lime); stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 326.7; filter: drop-shadow(0 0 6px rgba(200, 255, 46, .7)); transition: stroke-dashoffset 2s var(--ease-out) .2s; }
.cell.is-in .gauge__fg { stroke-dashoffset: 0; }
.gauge__num { font: 300 46px/1 var(--f-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.gauge__lbl { position: absolute; bottom: -26px; color: var(--muted); font-size: 10.5px; }

.mphone { width: 96px; height: 170px; border-radius: 20px; border: 1.5px solid rgba(255, 255, 255, .3); padding: 18px 12px; display: grid; gap: 8px; align-content: start; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8); }
.mphone span { height: 9px; border-radius: 6px; background: rgba(255, 255, 255, .1); transform-origin: 0 50%; }
.mphone span:nth-child(1) { height: 44px; background: linear-gradient(135deg, var(--violet), var(--cyan)); }
.mphone span:nth-child(3) { width: 70%; }
.mphone span:nth-child(5) { width: 55%; height: 16px; border-radius: 99px; background: var(--lime); }
.cell.is-in .mphone span { animation: barIn 2.8s var(--ease-out) infinite; }
.cell.is-in .mphone span:nth-child(2) { animation-delay: .12s; }
.cell.is-in .mphone span:nth-child(3) { animation-delay: .24s; }
.cell.is-in .mphone span:nth-child(4) { animation-delay: .36s; }
.cell.is-in .mphone span:nth-child(5) { animation-delay: .48s; }
@keyframes barIn { 0% { transform: scaleX(0); opacity: 0; } 30%, 85% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }

.serp { width: min(88%, 300px); display: grid; gap: 14px; }
.serp__bar { display: flex; align-items: center; justify-content: space-between; height: 38px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .03); font-size: 11.5px; text-transform: none; letter-spacing: .02em; color: var(--text); }
.serp__bar i { width: 13px; height: 13px; border: 1.5px solid var(--muted); border-radius: 50%; position: relative; }
.serp__bar i::after { content: ""; position: absolute; width: 6px; height: 1.5px; background: var(--muted); right: -5px; bottom: -2px; transform: rotate(45deg); }
.serp__res { position: relative; display: grid; gap: 5px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.serp__res b { color: #8ab4ff; font-weight: 500; font-size: 14px; }
.serp__url { color: #5fd38d; font-size: 11.5px; }
.serp__l { height: 6px; border-radius: 4px; background: rgba(255, 255, 255, .1); }
.serp__l.s { width: 64%; }
.serp__rank { position: absolute; right: -10px; top: -12px; padding: 5px 8px; border-radius: 7px; background: var(--lime); color: #000; font-size: 11px; transform: scale(0) rotate(-10deg); transition: transform .7s cubic-bezier(.34, 1.56, .64, 1) .6s; }
.cell.is-in .serp__rank { transform: scale(1) rotate(-6deg); }

.hello { display: grid; justify-items: center; gap: 18px; }
.hello__w { font: 400 clamp(46px, 5vw, 76px)/1 var(--f-display); letter-spacing: -.03em; background: linear-gradient(180deg, #fff, #9d9db8); -webkit-background-clip: text; background-clip: text; color: transparent; transition: opacity .35s, transform .5s var(--ease-out), filter .35s; }
.hello__w.out { opacity: 0; transform: translateY(-14px); filter: blur(6px); }
.hello__tags { display: flex; gap: 6px; }
.hello__tags i { font-style: normal; padding: 5px 8px; border-radius: 6px; border: 1px solid var(--line2); color: var(--muted); font-size: 10.5px; transition: all .3s; }
.hello__tags i.on { background: var(--lime); border-color: var(--lime); color: #000; }

.term { flex: 0 1 520px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line2); background: #07070b; text-transform: none; letter-spacing: .01em; font-size: 12.5px; font-weight: 400; }
.term__bar { display: flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-bottom: 1px solid var(--line); color: var(--dim); font-size: 11px; }
.term__bar i { width: 9px; height: 9px; border-radius: 50%; background: #2a2a36; }
.term__bar span { margin-left: 8px; }
.term__body { display: grid; gap: 6px; padding: 16px 18px 18px; color: #c9c9d6; }
.term__body > span { opacity: 0; transform: translateX(-8px); transition: opacity .4s, transform .5s var(--ease-out); }
.term__body b { color: var(--lime); font-weight: 500; }
.term__body em { font-style: normal; }
.term__body .tl5 em { color: var(--lime); }
.cell.is-in .term__body > span { opacity: 1; transform: none; }
.cell.is-in .tl2 { transition-delay: .5s !important; }
.cell.is-in .tl3 { transition-delay: .9s !important; }
.cell.is-in .tl4 { transition-delay: 1.3s !important; }
.cell.is-in .tl5 { transition-delay: 1.8s !important; }
.term .on { animation: ping 1.8s infinite; border-radius: 50%; }
.caret { display: inline-block; width: 7px; height: 1.1em; margin-left: 4px; vertical-align: -.15em; background: var(--lime); animation: blink 1s steps(1) infinite; }

/* ---------- about ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 110px); align-items: center; }
.about__media { position: relative; height: min(86vh, 860px); min-height: 560px; }
.holo { position: absolute; margin: 0; overflow: hidden; border-radius: 22px; border: 1px solid var(--line2); background: #111; }
.holo img { width: 100%; height: 100%; object-fit: cover; }
.holo::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .16) 0 1px, transparent 1px 3px); mix-blend-mode: multiply; }
.holo--main { left: 12%; top: 0; width: 60%; height: 100%; }
.holo--a { right: 0; top: 7%; width: 34%; aspect-ratio: 3 / 4; z-index: 2; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .9); }
.holo--b { left: 0; bottom: 5%; width: 32%; aspect-ratio: 3 / 4; z-index: 2; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .9); }
.holo figcaption { position: absolute; left: 10px; bottom: 10px; z-index: 3; padding: 6px 9px; border-radius: 7px; background: rgba(5, 5, 7, .7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-size: 10px; color: var(--text); }
.holo__scan { position: absolute; left: 0; right: 0; top: -30%; height: 30%; z-index: 2; pointer-events: none; background: linear-gradient(to bottom, transparent, rgba(200, 255, 46, .14), transparent); animation: scan 5s linear infinite; }
@keyframes scan { to { top: 100%; } }
.hud { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 7px; background: rgba(5, 5, 7, .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font: 500 10.5px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--lime); }
.hud.tl { top: 18px; left: 18px; } .hud.tr { top: 18px; right: 18px; } .hud.bl { bottom: 18px; left: 18px; } .hud.br { bottom: 18px; right: 18px; }
.corner { position: absolute; z-index: 3; width: 18px; height: 18px; border: 0 solid var(--lime); }
.c1 { top: 8px; left: 8px; border-width: 2px 0 0 2px; } .c2 { top: 8px; right: 8px; border-width: 2px 2px 0 0; }
.c3 { bottom: 8px; left: 8px; border-width: 0 0 2px 2px; } .c4 { bottom: 8px; right: 8px; border-width: 0 2px 2px 0; }
.js .rv-scan { clip-path: inset(0 0 100% 0 round 22px); transition: clip-path 1.5s var(--ease-out); }
.js .rv-scan.is-in { clip-path: inset(0 0 0 0 round 22px); }
.js .holo--a.rv-scan { transition-delay: .3s; }
.js .holo--b.rv-scan { transition-delay: .5s; }

.about__lead { margin-top: 30px; font: 500 clamp(20px, 1.8vw, 27px)/1.3 var(--f-sans); letter-spacing: -.02em; }
.about__p { margin-top: 18px; max-width: 48ch; color: var(--muted); font-size: 17px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line); }
.stat b { display: block; font: 300 clamp(34px, 3.4vw, 54px)/1 var(--f-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat b span[data-i18n] { font-size: .5em; letter-spacing: -.02em; margin-left: .15em; color: var(--lime); }
.stat > span { display: block; margin-top: 10px; color: var(--muted); font-size: 13.5px; line-height: 1.4; }

/* ---------- contact ---------- */
.contact { overflow: hidden; padding-bottom: clamp(90px, 10vw, 150px); }
.contact__glow { position: absolute; left: 50%; top: 36%; width: min(1100px, 140vw); aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; background: radial-gradient(circle, rgba(124, 92, 255, .2), rgba(56, 214, 255, .06) 40%, transparent 65%); }
.contact__title { position: relative; max-width: 12ch; font: 400 clamp(50px, 9vw, 164px)/.92 var(--f-display); letter-spacing: -.045em; }
.contact__title em { display: block; font-family: var(--f-serif); font-weight: 400; font-style: italic; letter-spacing: -.03em; color: var(--lime); }
.brief { position: relative; max-width: 1000px; margin-top: 52px; display: grid; gap: 24px; padding: clamp(20px, 3vw, 36px); border-radius: 26px; border: 1px solid var(--line2); background: rgba(13, 13, 20, .62); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.brief fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.brief legend { padding: 0; margin-bottom: 14px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line2); font-size: 14.5px; transition: background .3s, color .3s, border-color .3s; cursor: pointer; }
.chip span:hover { border-color: rgba(255, 255, 255, .5); }
.chip input:checked + span { background: var(--lime); border-color: var(--lime); color: #000; }
.chip input:focus-visible + span { outline: 2px solid var(--lime); outline-offset: 3px; }
.brief__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 9px; }
.field > span { color: var(--muted); font-size: 11px; }
.field input, .field textarea { width: 100%; padding: 15px 16px; border-radius: 14px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .03); color: var(--text); font: 400 16px/1.4 var(--f-sans); outline: none; resize: vertical; transition: border-color .3s, background .3s; }
.field input:focus, .field textarea:focus { border-color: var(--lime); background: rgba(200, 255, 46, .03); }
.field.is-error input { border-color: #ff5a6a; }
.brief__actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.brief__alt { color: var(--muted); font-size: 14.5px; }
.brief__alt a { color: var(--text); border-bottom: 1px solid var(--lime); }
.brief__msg { min-height: 1em; color: var(--lime); text-transform: none; letter-spacing: .02em; }

/* ---------- footer ---------- */
.footer { position: relative; overflow: hidden; padding: 70px var(--gutter) 26px; border-top: 1px solid var(--line); }
.footer__top { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 32px; align-items: start; }
.footer__col { display: grid; gap: 10px; justify-items: start; font-size: 15px; }
.footer__col .mono { margin-bottom: 6px; color: var(--dim); font-size: 11px; }
.footer__col a { color: var(--muted); transition: color .3s; }
.footer__col a:hover { color: var(--lime); }
.footer__col a[hidden] { display: none; }
.totop { padding: 12px 18px; border: 1px solid var(--line2); border-radius: 99px; color: var(--muted); transition: color .3s, border-color .3s; }
.totop:hover { color: var(--lime); border-color: var(--lime); }
.footer__word { margin: clamp(56px, 8vw, 110px) 0 26px; display: grid; justify-items: center; gap: clamp(20px, 3vw, 40px); white-space: nowrap; }
.footer__mark { width: clamp(70px, 9vw, 130px); height: auto; overflow: visible; fill: none; stroke: rgba(255, 255, 255, .85); stroke-width: 4; }
.fit-word { display: inline-block; font: 200 var(--fw, 12vw)/.9 var(--f-display); letter-spacing: .06em; background: linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .06) 92%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; color: var(--dim); font-size: 11px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav__links { display: none; }
  .project__card { grid-template-columns: minmax(300px, .9fr) 1.1fr; }
}

@media (max-width: 900px) {
  :root { --navh: 64px; }
  .nav__clock, .nav__cta { display: none; }
  .burger { display: block; }
  .hud-fixed { display: none; }

  .hero { --gw: clamp(170px, 50vw, 330px); }
  .world { top: 37%; }
  .stage { perspective-origin: 50% 37%; }
  .js .boot { top: calc(37% + var(--gw) * .38 + 26px); }
  .logo__txt { font-size: 14.5px; letter-spacing: .13em; }
  .js .orbit-card { --cw: clamp(120px, 34vw, 220px); border-radius: 10px; }
  .js .orbit-card.is-m { --cw: clamp(52px, 14vw, 96px); border-radius: 10px; }
  .hero__bottom { flex-direction: column; align-items: stretch; bottom: calc(44px + env(safe-area-inset-bottom)); gap: 20px; }
  .hero__copy { gap: 12px; }
  .hero__h1 { font-size: clamp(36px, 10.4vw, 54px); max-width: 12ch; }
  .hero__sub { font-size: 15.5px; max-width: 34ch; }
  .hero__hud .hud-drag { display: none; }

  .project { position: relative; top: auto; margin-bottom: 18px; }
  .project__card { height: auto; max-height: none; min-height: 0; grid-template-columns: 1fr; transform: none; }
  .project__visual { order: -1; padding: 28px 22px 46px; }
  .browser, .project:hover .browser { transform: none; }
  .phone, .project:hover .phone { width: 26%; min-width: 92px; right: 5%; bottom: 14px; transform: none; padding: 4px; border-radius: 18px; }
  .phone .screen { border-radius: 14px; }
  .phone__notch { top: 8px; height: 8px; }
  .project__title { margin-top: 6px; }

  .build { height: 560vh; }
  .build__sticky { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-items: start; gap: 18px; padding-top: calc(var(--navh) + 14px); padding-bottom: 22px; }
  .build__title { font-size: clamp(34px, 9vw, 54px); }
  .build__sub { display: none; }
  .build .label { margin-bottom: 12px; }
  .steps { margin-top: 16px; min-height: 110px; }
  .steps::before, .steps__fill { display: none; }
  .step { display: none; padding: 0; }
  .step.is-on { display: grid; }
  .ide__body { grid-template-columns: 1fr; height: auto; }
  .code { display: none; }
  .preview { aspect-ratio: 4 / 3.6; }

  .bento { grid-template-columns: 1fr 1fr; }
  .cell--design, .cell--deploy { grid-column: span 2; }
  .cell--deploy { flex-direction: column; align-items: stretch; }
  .term { flex: none; }

  .about__grid { grid-template-columns: 1fr; }
  .about__media { height: 120vw; max-height: 720px; min-height: 0; }

  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .btn { --h: 50px; padding: 0 20px; font-size: 14.5px; }
  .btn--xl { --h: 58px; padding: 0 26px; font-size: 16px; }
  .hero__ctas { width: 100%; }
  .hero__ctas .btn { flex: 1; }
  .hero__kicker { top: calc(var(--navh) + 2vh); }
  .pill { font-size: 12px; height: 32px; }
  .project__info { padding: 22px; }
  .project__meta { gap: 22px; }
  .bento { grid-template-columns: 1fr; }
  .cell, .cell--design, .cell--deploy { grid-column: auto; min-height: 300px; }
  .cell--deploy { min-height: 0; }
  .brief__row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
  .stat > span { font-size: 12.5px; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .grain { animation: none; }
}
