/* ==========================================================================
   Portfolio — styles
   Dark, visual-first, identical experience on every screen size.
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL Open Font License) ---------- */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-latin-ext.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-italic-latin.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-italic-latin-ext.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/geist-mono-latin.woff2") format("woff2");
  font-weight: 400 600; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/geist-mono-latin-ext.woff2") format("woff2");
  font-weight: 400 600; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #07070a;
  --bg-2: #0b0b0f;
  --surface: #101015;
  --surface-2: #16161c;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #f4f3f1;
  --text-2: #a4a4ae;
  --text-3: #64646e;
  --violet: #8a6bff;
  --pink: #ff4fa0;
  --orange: #ff9a4d;
  --green: #3ee6a0;
  --grad: linear-gradient(100deg, #8a6bff 0%, #ff4fa0 52%, #ff9a4d 100%);
  --ig: linear-gradient(45deg, #feda75 0%, #fa7e1e 22%, #d62976 48%, #962fbf 74%, #4f5bd5 100%);

  --f-display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-serif: "Instrument Serif", "Iowan Old Style", "Times New Roman", serif;
  --f-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --pad: clamp(16px, 4vw, 56px);
  --maxw: 1480px;
  --nav-h: 72px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --radius: clamp(20px, 2.2vw, 32px);
  --section-y: clamp(88px, 14vh, 180px);

  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

/* ---------- Base & viewport lock ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Pan only: no pinch-zoom, no double-tap zoom */
  touch-action: pan-x pan-y;
  overscroll-behavior: none;
  overflow-x: clip;
  scrollbar-width: thin;
  scrollbar-color: #2b2b35 transparent;
}
html.is-locked { overflow: hidden; }

body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-display);
  font-size: 16px;
  line-height: 1.5;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #24242c; border-radius: 10px; border: 3px solid var(--bg); }
::selection { background: var(--violet); color: #fff; }

img, svg, canvas, video { display: block; max-width: 100%; }
img { -webkit-user-drag: none; user-select: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }

.skip {
  position: fixed; left: 12px; top: 12px; z-index: 200;
  padding: 10px 16px; border-radius: 999px; background: #fff; color: #000; font-weight: 600;
  transform: translateY(-160%); transition: transform .3s var(--ease);
}
.skip:focus-visible { transform: none; }

.mono {
  font-family: var(--f-mono);
  font-size: clamp(10.5px, .78vw, 12.5px);
  font-weight: 450;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-2);
}

em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
}
.section-title em, .hero-title em, .contact-title em, .reel-line em {
  display: inline-block;
  letter-spacing: -.02em;
  padding-right: .09em;
  margin-right: -.09em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 24px;
  border-radius: 999px;
  font: 600 15px/1 var(--f-display);
  letter-spacing: -.01em;
  white-space: nowrap;
  isolation: isolate;
  overflow: hidden;
  transition: transform .6s var(--ease), color .35s, background-color .35s, border-color .35s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-sm { height: 42px; padding: 0 16px 0 14px; font-size: 14px; gap: 8px; }
.btn-sm svg { width: 16px; height: 16px; }
.btn-light { background: var(--text); color: #0a0a0c; }
.btn-light::before, .btn-grad::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--ig);
  transform: translateY(102%);
  transition: transform .65s var(--ease);
}
.btn-grad { background: var(--ig); color: #fff; }
.btn-ghost { color: var(--text); border: 1px solid var(--line-2); background: rgba(14, 14, 18, .35); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn:active { transform: scale(.965); }
@media (hover: hover) {
  .btn-light:hover { color: #fff; }
  .btn-light:hover::before { transform: translateY(0); }
  .btn-ghost:hover { border-color: rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .06); }
}

.icon-btn {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03);
  transition: background-color .3s, border-color .3s, transform .5s var(--ease);
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:active { transform: scale(.92); }
@media (hover: hover) { .icon-btn:hover { background: #fff; color: #000; border-color: #fff; } }

/* Text roll on hover */
[data-roll] { position: relative; display: inline-block; overflow: hidden; vertical-align: top; line-height: 1.2; }
[data-roll] > span { display: block; transition: transform .55s var(--ease); }
[data-roll]::after {
  content: attr(data-text); position: absolute; left: 0; top: 100%; white-space: nowrap;
  transition: transform .55s var(--ease);
}
@media (hover: hover) {
  a:hover > [data-roll] > span, a:hover > [data-roll]::after,
  button:hover > [data-roll] > span, button:hover > [data-roll]::after { transform: translateY(-100%); }
}

/* Availability badge */
.status { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; color: var(--text); }
.status i { position: relative; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--green); }
.status i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--green); animation: ping 2.2s var(--ease) infinite; }
@keyframes ping { from { transform: scale(1); opacity: .7; } to { transform: scale(3.2); opacity: 0; } }
.pill {
  padding: 8px 14px 8px 12px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(12, 12, 16, .4);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 95;
  display: grid; place-items: center;
  background: var(--bg);
  animation: loader-failsafe .5s 4.5s forwards;
  transition: transform 1.15s var(--ease-io), border-radius 1.15s var(--ease-io);
  will-change: transform;
}
.is-booted .loader { animation: none; }
.loader.is-done { transform: translateY(-104%); border-radius: 0 0 50% 50% / 0 0 14vh 14vh; }
@keyframes loader-failsafe { to { opacity: 0; visibility: hidden; } }
.loader-center { text-align: center; }
.loader-name {
  display: flex; justify-content: center; overflow: hidden;
  font-weight: 700; font-size: clamp(56px, 13vw, 190px); line-height: .95; letter-spacing: -.06em;
  padding-bottom: .06em;
}
.loader-name .ch { display: inline-block; transform: translateY(105%); animation: rise 1s var(--ease) forwards; animation-delay: calc(var(--i) * 55ms + 80ms); }
.is-return .loader-name .ch { animation-duration: .5s; animation-delay: calc(var(--i) * 20ms); }
@keyframes rise { to { transform: none; } }
.loader-bar { width: min(260px, 52vw); height: 2px; margin: 22px auto 0; border-radius: 2px; overflow: hidden; background: var(--line-2); }
.loader-bar i { display: block; height: 100%; background: var(--grad); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; }
.loader-foot {
  position: absolute; left: var(--pad); right: var(--pad); bottom: calc(22px + var(--safe-bottom));
  display: flex; justify-content: space-between;
}

/* ---------- Background: shader, fallback, grain ---------- */
.gl, .gl-fallback {
  position: fixed; left: 0; top: 0; width: 100%; height: 100vh; height: 100lvh;
  z-index: 0; pointer-events: none;
  opacity: 0; transition: opacity 1.8s ease;
}
.gl.is-on { opacity: 1; }
.gl-fallback {
  background:
    radial-gradient(60% 50% at 85% 20%, rgba(138, 107, 255, .45), transparent 70%),
    radial-gradient(45% 40% at 70% 45%, rgba(255, 79, 160, .35), transparent 70%),
    radial-gradient(40% 35% at 95% 60%, rgba(255, 154, 77, .3), transparent 70%);
}
.gl-fallback.is-on { opacity: 1; }
.grain {
  position: fixed; inset: 0; z-index: 70; pointer-events: none; opacity: .06;
  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='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

main { position: relative; z-index: 1; }

/* ---------- Cursor (fine pointers only) ---------- */
.cursor { display: none; }
.has-cursor .cursor { display: block; }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor [data-cursor] { cursor: none; }
.cursor-dot, .cursor-ring { position: fixed; left: 0; top: 0; z-index: 120; pointer-events: none; will-change: transform; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #fff; mix-blend-mode: difference; transition: opacity .25s; }
.cursor-ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .35);
  display: grid; place-items: center;
  transition: width .5s var(--ease), height .5s var(--ease), margin .5s var(--ease), background-color .3s, border-color .3s, opacity .3s;
  contain: layout style;
}
.cursor.is-hover .cursor-ring { width: 62px; height: 62px; margin: -31px 0 0 -31px; border-color: rgba(255, 255, 255, .65); }
.cursor.is-label .cursor-ring { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: #fff; border-color: #fff; }
.cursor.is-label .cursor-dot { opacity: 0; }
.cursor-label { font: 600 13px/1 var(--f-display); color: #0a0a0c; opacity: 0; transform: scale(.5); transition: opacity .3s, transform .5s var(--ease); }
.cursor.is-label .cursor-label { opacity: 1; transform: none; }
.cursor.is-out .cursor-dot, .cursor.is-out .cursor-ring { opacity: 0; }
.cursor.is-down .cursor-ring { width: 30px; height: 30px; margin: -15px 0 0 -15px; border-color: rgba(255, 255, 255, .7); }
.cursor.is-down.is-hover .cursor-ring { width: 52px; height: 52px; margin: -26px 0 0 -26px; }
.cursor.is-down.is-label .cursor-ring { width: 80px; height: 80px; margin: -40px 0 0 -40px; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; left: 0; right: 0; top: 0; z-index: 60;
  height: calc(var(--nav-h) + var(--safe-top));
  padding: var(--safe-top) var(--pad) 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  transition: transform .7s var(--ease);
}
.nav::before {
  content: ""; position: absolute; inset: 0 0 -24px; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(7, 7, 10, .9), rgba(7, 7, 10, .55) 60%, rgba(7, 7, 10, 0));
  opacity: 0; transition: opacity .5s;
}
.nav.is-scrolled::before { opacity: 1; }
.nav.is-hidden { transform: translateY(-110%); }
.is-menu-open .nav { transform: none; }
.is-menu-open .nav::before { opacity: 0; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -.035em; }
.brand-mark { flex: none; display: block; width: 36px; height: 36px; padding: 2px; border-radius: 50%; background: var(--ig); box-shadow: 0 0 18px rgba(214, 41, 118, .35); transition: transform .8s var(--ease); }
.brand-mark img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid var(--bg); background: #15151b; }
@media (hover: hover) { .brand:hover .brand-mark { transform: scale(1.08); } }

.nav-links {
  position: absolute; left: 50%; top: calc(var(--safe-top) + var(--nav-h) / 2);
  transform: translate(-50%, -50%);
  display: flex; gap: 2px; padding: 5px;
  border-radius: 999px; border: 1px solid var(--line);
  background: rgba(14, 14, 18, .5);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.nav-links a {
  padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--text-2);
  transition: color .3s, background-color .3s;
}
.nav-links a.is-active { color: var(--text); background: rgba(255, 255, 255, .08); }
@media (hover: hover) { .nav-links a:hover { color: var(--text); } }

.nav-right { display: flex; align-items: center; gap: 10px; }

.menu-btn {
  position: relative; display: none; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line-2); background: rgba(14, 14, 18, .5);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 1.5px; border-radius: 2px; background: var(--text); transition: transform .6s var(--ease); }
.menu-btn span:first-child { top: 16px; }
.menu-btn span:last-child { top: 24px; }
.is-menu-open .menu-btn span:first-child { transform: translateY(4px) rotate(45deg); }
.is-menu-open .menu-btn span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Menu overlay */
.menu {
  position: fixed; inset: 0; z-index: 55;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--nav-h) + var(--safe-top) + 24px) var(--pad) calc(24px + var(--safe-bottom));
  background: var(--bg);
  clip-path: circle(0% at calc(100% - var(--pad) - 21px) calc(var(--safe-top) + var(--nav-h) / 2));
  visibility: hidden;
  transition: clip-path .9s var(--ease-io), visibility 0s .9s;
}
.is-menu-open .menu { clip-path: circle(150% at calc(100% - var(--pad) - 21px) calc(var(--safe-top) + var(--nav-h) / 2)); visibility: visible; transition: clip-path .9s var(--ease-io), visibility 0s; }
.menu-links { display: flex; flex-direction: column; }
.menu-links a { display: flex; align-items: baseline; gap: 14px; padding: 6px 0; border-bottom: 1px solid var(--line); overflow: hidden; }
.menu-word {
  display: inline-block; font-weight: 700; font-size: clamp(46px, 13vw, 96px); line-height: 1.05; letter-spacing: -.055em;
  transform: translateY(110%); transition: transform .9s var(--ease);
}
.menu-links a:nth-child(2) .menu-word { transition-delay: .05s; }
.menu-links a:nth-child(3) .menu-word { transition-delay: .1s; }
.menu-links a:nth-child(4) .menu-word { transition-delay: .15s; }
.is-menu-open .menu-word { transform: none; transition-delay: calc(.25s + var(--d, 0s)); }
.is-menu-open .menu-links a:nth-child(2) .menu-word { --d: .06s; }
.is-menu-open .menu-links a:nth-child(3) .menu-word { --d: .12s; }
.is-menu-open .menu-links a:nth-child(4) .menu-word { --d: .18s; }
.menu-foot { display: flex; flex-direction: column; gap: 18px; opacity: 0; transform: translateY(20px); transition: opacity .6s, transform .8s var(--ease); }
.is-menu-open .menu-foot { opacity: 1; transform: none; transition-delay: .45s; }
.menu-foot .btn { width: 100%; }

/* ---------- Reveal primitives ---------- */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.w:has(em) { padding-right: .1em; margin-right: -.1em; }
.wi { display: inline-block; }
.is-booted [data-split] .wi { transform: translateY(112%); transition: transform 1.15s var(--ease); transition-delay: calc(var(--i, 0) * 55ms); }
.is-booted [data-split].is-in .wi { transform: none; }

.is-booted [data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: var(--delay, 0s); }
.is-booted [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Section heads ---------- */
.section-head {
  position: relative;
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 14px 24px;
  max-width: var(--maxw); margin: 0 auto clamp(36px, 6vh, 76px);
}
.section-head > .mono:first-child { grid-column: 1 / -1; }
.section-title { font-weight: 700; font-size: clamp(44px, 7.6vw, 128px); line-height: .92; letter-spacing: -.055em; max-width: 14ch; }
.section-count { padding-bottom: .6em; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--nav-h) + var(--safe-top) + 20px) var(--pad) clamp(22px, 4.5vh, 48px);
}
.hero::after { /* soft floor so the next section blends in */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 22vh; pointer-events: none;
  background: linear-gradient(to bottom, rgba(7, 7, 10, 0), rgba(7, 7, 10, .5));
}
.hero > * { position: relative; z-index: 1; }
.hero-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.hero-title {
  margin: clamp(14px, 3vh, 34px) 0 clamp(22px, 4.5vh, 50px);
  font-weight: 700;
  font-size: clamp(44px, 12.8vw, 220px);
  line-height: .9;
  letter-spacing: -.058em;
}
@supports (height: 1svh) {
  .hero-title { font-size: clamp(44px, min(12.8vw, 21.5svh), 220px); }
}
.hero-title .line { display: block; overflow: hidden; padding: 0 .1em .11em 0; margin: 0 -.1em -.11em 0; }
.hero-title .line-in { display: block; transform-origin: 0 100%; }
.is-booted .hero-title .line-in { transform: translateY(108%) rotate(4deg); transition: transform 1.4s var(--ease); }
.is-booted .hero-title .line:nth-child(2) .line-in { transition-delay: .09s; }
.is-ready .hero-title .line-in { transform: none; }
.hero-title em { font-size: 1.1em; line-height: .8; letter-spacing: -.035em; }

.hero-foot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 24px; }
.hero-sub { max-width: 30ch; font-size: clamp(15px, 1.15vw, 18px); line-height: 1.45; color: var(--text-2); }
.hero-cta { display: flex; gap: 10px; }
.scroll-cue { justify-self: end; display: flex; align-items: center; gap: 12px; }
.scroll-cue i { position: relative; width: 1px; height: 44px; overflow: hidden; background: var(--line-2); }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 50%; background: var(--text); animation: cue 2.2s var(--ease-io) infinite; }
@keyframes cue { from { transform: translateY(-100%); } to { transform: translateY(200%); } }

.is-booted .hero-head, .is-booted .hero-foot { opacity: 0; transform: translateY(24px); transition: opacity 1s ease, transform 1.3s var(--ease); }
.is-booted .hero-foot { transition-delay: .35s; }
.is-booted .hero-head { transition-delay: .2s; }
.is-ready .hero-head, .is-ready .hero-foot { opacity: 1; transform: none; }

/* ==========================================================================
   SHOWREEL WALL
   ========================================================================== */
.reel {
  --card-h: clamp(120px, 16.5vw, 270px);
  --gap: clamp(10px, 1.2vw, 20px);
  position: relative;
  height: clamp(460px, 108vh, 1060px);
  overflow: hidden; overflow: clip;
  background: linear-gradient(to bottom, rgba(7, 7, 10, 0) 0%, rgba(7, 7, 10, .75) 30%, var(--bg) 55%);
}
.reel-stage { position: absolute; inset: 0; perspective: 1500px; perspective-origin: 50% 20%; }
.reel-plane {
  position: absolute; left: 50%; top: 50%;
  display: flex; flex-direction: column; gap: var(--gap);
  transform-style: preserve-3d;
  transform: translate(-50%, -50%) rotateX(28deg) rotateZ(-8deg) scale(1.1);
  will-change: transform;
}
.reel-row { display: flex; }
.reel-track { display: flex; gap: var(--gap); will-change: transform; }
.reel-card {
  position: relative; flex: none; height: var(--card-h);
  border-radius: calc(var(--card-h) * .07);
  overflow: hidden; background: var(--surface);
  border: 1px solid var(--line-2);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .9);
}
.reel-card.is-desktop { width: calc(var(--card-h) * 1.6); }
.reel-card.is-mobile { width: calc(var(--card-h) * .4621); }
.reel-card img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.reel-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); pointer-events: none; }
.reel-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(55% 45% at 50% 55%, rgba(7, 7, 10, .82), rgba(7, 7, 10, 0) 100%),
    linear-gradient(to bottom, var(--bg) 0%, rgba(7, 7, 10, 0) 20%, rgba(7, 7, 10, 0) 56%, rgba(7, 7, 10, .85) 86%, var(--bg) 97%),
    linear-gradient(to right, var(--bg) 0%, rgba(7, 7, 10, 0) 16%, rgba(7, 7, 10, 0) 84%, var(--bg) 100%);
}
.reel-caption {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  padding: 0 var(--pad); text-align: center; pointer-events: none;
}
.reel-line { font-weight: 700; font-size: clamp(40px, 7.4vw, 124px); line-height: .92; letter-spacing: -.055em; text-shadow: 0 10px 60px rgba(0, 0, 0, .6); }

/* ==========================================================================
   SELECTED WORK — stacked cards
   ========================================================================== */
.work { position: relative; background: var(--bg); padding: var(--section-y) var(--pad) calc(var(--section-y) * .6); }
.stack { position: relative; max-width: var(--maxw); margin: 0 auto; }

.card {
  --rgb: 138, 107, 255;
  position: sticky;
  top: calc(var(--nav-h) + var(--safe-top) + 8px + var(--i) * 12px);
  height: min(80vh, 860px);
  height: min(80svh, 860px);
  min-height: 460px;
  margin-bottom: clamp(48px, 12vh, 140px);
  border-radius: var(--radius);
  overflow: hidden;
  background: #0d0d12;
  border: 1px solid var(--line);
  box-shadow: 0 -30px 60px -30px rgba(0, 0, 0, .8);
  transform-origin: 50% 0;
  isolation: isolate;
}
.card:last-child { margin-bottom: 0; }
.card-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 60% at 62% 78%, rgba(var(--rgb), .34), rgba(var(--rgb), 0) 70%),
    radial-gradient(40% 45% at 8% 0%, rgba(var(--rgb), .13), rgba(var(--rgb), 0) 70%),
    linear-gradient(180deg, #0f0f15, #0a0a0e);
  transition: opacity .6s;
}
.card-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(65% 60% at 60% 70%, #000 10%, transparent 75%);
  mask-image: radial-gradient(65% 60% at 60% 70%, #000 10%, transparent 75%);
}
.card-shade { position: absolute; inset: 0; z-index: 5; background: #000; opacity: 0; pointer-events: none; }
.card-link { position: absolute; inset: 0; z-index: 4; border-radius: inherit; }
.card-link:focus-visible { outline-offset: -4px; }

.card-inner {
  position: absolute; inset: 0;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  gap: clamp(10px, 2vh, 20px);
  padding: clamp(18px, 2.6vw, 38px);
}
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.card-heading { display: flex; align-items: flex-start; gap: clamp(10px, 1.6vw, 22px); }
.card-index { padding-top: .5em; }
.card-title { font-weight: 700; font-size: clamp(34px, 5.4vw, 92px); line-height: .9; letter-spacing: -.055em; }
.card-type { display: block; margin-top: 10px; font-size: clamp(14px, 1.1vw, 17px); color: var(--text-2); letter-spacing: -.01em; }
.card-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03);
  font: 500 11.5px/1 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--text-2);
  white-space: nowrap;
}
.chip-concept { color: #fff; border-color: rgba(var(--rgb), .55); background: rgba(var(--rgb), .14); }

.card-stage { position: relative; display: grid; place-items: center; min-height: 0; container-type: size; }
.devices {
  position: relative;
  width: min(100cqw, 178cqh);
  aspect-ratio: 1.78;
  transition: transform 1s var(--ease);
}
@supports not (width: 1cqw) { .devices { width: 100%; max-height: 100%; } }
.browser {
  position: absolute; left: 0; top: 0; width: 84%; aspect-ratio: 16 / 10.4;
  display: flex; flex-direction: column;
  border-radius: clamp(8px, 1vw, 16px); overflow: hidden;
  background: #121217; border: 1px solid var(--line-2);
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .95), 0 0 0 1px rgba(0, 0, 0, .5);
}
.browser-bar {
  flex: none; height: clamp(16px, 2.1vw, 32px);
  display: flex; align-items: center; gap: clamp(3px, .45vw, 7px);
  padding: 0 clamp(7px, 1vw, 14px);
  background: #19191f; border-bottom: 1px solid var(--line);
}
.browser-bar i { width: clamp(5px, .55vw, 9px); height: clamp(5px, .55vw, 9px); border-radius: 50%; background: #34343d; }
.browser-bar i:nth-child(1) { background: #ff5f57; } .browser-bar i:nth-child(2) { background: #febc2e; } .browser-bar i:nth-child(3) { background: #28c840; }
.browser-url {
  margin: 0 auto; height: 64%; padding: 0 clamp(8px, 1.4vw, 22px);
  display: flex; align-items: center; gap: 5px; border-radius: 6px; background: #24242b;
  font: 500 clamp(6.5px, .72vw, 11px)/1 var(--f-mono); color: var(--text-2); white-space: nowrap;
}
.browser-url::before { content: ""; width: .7em; height: .7em; border-radius: 2px; border: 1.2px solid currentColor; opacity: .6; }
.screen { position: relative; flex: 1; overflow: hidden; background: #0b0b0e; }
.screen img { position: absolute; left: 0; top: 0; width: 100%; height: auto; }
.phone {
  position: absolute; right: 0; bottom: 0; width: 23%; aspect-ratio: 9 / 19.3;
  padding: clamp(3px, .38vw, 6px);
  border-radius: clamp(14px, 2.3vw, 38px);
  background: linear-gradient(145deg, #2a2a33, #131318);
  border: 1px solid var(--line-2);
  box-shadow: -40px 50px 90px -40px rgba(0, 0, 0, .95), inset 0 0 0 1px rgba(255, 255, 255, .05);
}
.phone .screen { position: absolute; inset: clamp(3px, .38vw, 6px); border-radius: calc(clamp(14px, 2.3vw, 38px) - clamp(3px, .38vw, 6px)); }
.phone-island { position: absolute; z-index: 2; top: 4.2%; left: 50%; width: 30%; height: 3.4%; transform: translateX(-50%); border-radius: 99px; background: #000; }

.card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.card-cta { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; font-size: 15px; white-space: nowrap; }
.card-cta .arrow {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--text); color: #0a0a0c; transition: transform .7s var(--ease), background-color .4s;
}
.card-cta .arrow svg { width: 18px; height: 18px; }
@media (hover: hover) {
  .card:hover .devices { transform: translateY(-8px) scale(1.01); }
  .card:hover .card-cta .arrow { transform: rotate(45deg); background: #fff; }
}

/* ==========================================================================
   TAPES
   ========================================================================== */
.tapes {
  position: relative; z-index: 2;
  height: clamp(220px, 23vw, 360px);
  display: grid; place-items: center;
  overflow: hidden; overflow: clip;
  background: var(--bg);
}
.tape { position: absolute; left: -12%; right: -12%; overflow: hidden; white-space: nowrap; padding: clamp(12px, 1.5vw, 22px) 0; }
.tape-a { z-index: 2; transform: rotate(-4deg); background: var(--grad); color: #09090b; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8); }
.tape-b { transform: rotate(3.5deg); background: #0f0f14; border-block: 1px solid var(--line-2); color: var(--text-3); }
.tape-track {
  display: inline-flex; align-items: center; gap: .35em;
  font-weight: 800; font-size: clamp(30px, 5.6vw, 92px); line-height: 1; letter-spacing: -.045em; text-transform: uppercase;
  will-change: transform;
}
.tape-track i { font-style: normal; font-size: .55em; margin: 0 .15em; }
.tape-b .tape-track { color: transparent; -webkit-text-stroke: 1.2px rgba(255, 255, 255, .45); }

/* ==========================================================================
   SERVICES — bento
   ========================================================================== */
.services { position: relative; background: var(--bg); padding: var(--section-y) var(--pad); }
.bento {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(230px, 21vw, 320px);
  gap: clamp(10px, 1.1vw, 18px);
}
.tile {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: space-between; gap: 12px;
  padding: clamp(16px, 1.7vw, 26px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #111117, #0b0b0f);
}
.tile::before { /* soft top highlight */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(80% 60% at 50% 0%, rgba(255, 255, 255, .05), transparent 70%);
}
.tile-label { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 6px; }
.tile-label b { font-weight: 650; font-size: clamp(17px, 1.55vw, 25px); line-height: 1.08; letter-spacing: -.035em; }
.tile:not(.is-visible) *, .tile:not(.is-visible)::after { animation-play-state: paused !important; }

.t-resp { grid-column: span 2; grid-row: span 2; }
.t-design, .t-launch { grid-column: span 2; flex-direction: row; align-items: stretch; }
.t-design .tile-label, .t-launch .tile-label { justify-content: flex-end; flex: 0 0 38%; }

/* 01 responsive morph */
.morph-wrap { position: relative; flex: 1; display: grid; place-items: center; min-height: 0; }
.morph {
  width: 88%; height: 70%;
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 14px; border: 1px solid var(--line-2);
  background: #0e0e13;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9), 0 0 60px -20px rgba(138, 107, 255, .35);
  animation: morph 9s var(--ease-io) infinite;
}
@keyframes morph {
  0%, 26% { width: 90%; height: 70%; border-radius: 14px; }
  33%, 59% { width: 56%; height: 84%; border-radius: 18px; }
  66%, 92% { width: 30%; height: 90%; border-radius: 22px; }
  100% { width: 90%; height: 70%; border-radius: 14px; }
}
.m-bar { flex: none; height: 22px; display: flex; align-items: center; gap: 4px; padding: 0 9px; border-bottom: 1px solid var(--line); background: #15151b; }
.m-bar i { width: 6px; height: 6px; border-radius: 50%; background: #34343d; }
.m-bar span { margin-left: auto; width: 34%; max-width: 90px; height: 6px; border-radius: 4px; background: #24242b; }
.m-body { flex: 1; padding: 10px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.m-hero { display: flex; flex-wrap: wrap; gap: 10px; }
.m-copy { flex: 1 1 110px; display: flex; flex-direction: column; gap: 6px; }
.m-copy b { height: 12px; border-radius: 4px; background: #e9e8e6; width: 90%; }
.m-copy b + b { width: 62%; background: var(--grad); }
.m-copy span { height: 6px; border-radius: 3px; background: #2a2a32; width: 80%; margin-top: 4px; }
.m-copy em { width: 64px; height: 18px; border-radius: 99px; background: #fff; margin-top: 4px; }
.m-art { flex: 1 1 110px; min-height: 64px; border-radius: 10px; background: radial-gradient(circle at 30% 30%, #ff9a4d, transparent 55%), radial-gradient(circle at 70% 70%, #8a6bff, transparent 60%), #1a1a22; }
.m-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 8px; }
.m-grid i { height: 46px; border-radius: 8px; background: #1b1b22; border: 1px solid var(--line); }
.m-grid i:nth-child(2) { background: linear-gradient(135deg, rgba(255, 79, 160, .35), #1b1b22); }
.morph-labels { position: absolute; right: clamp(16px, 1.7vw, 26px); top: clamp(16px, 1.7vw, 26px); display: flex; gap: 12px; }
.morph-labels span { color: var(--text-3); animation: morph-label 9s infinite; }
.morph-labels span:nth-child(2) { animation-delay: -6s; }
.morph-labels span:nth-child(3) { animation-delay: -3s; }
@keyframes morph-label { 0%, 30% { color: var(--text); } 34%, 97% { color: var(--text-3); } 100% { color: var(--text); } }

/* 02 speed gauge */
.gauge { position: relative; width: clamp(96px, 9vw, 150px); aspect-ratio: 1; align-self: center; margin-top: 4px; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge circle { fill: none; stroke-width: 8; }
.g-track { stroke: rgba(255, 255, 255, .07); }
.g-fill { stroke: var(--green); stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 326.7; filter: drop-shadow(0 0 10px rgba(62, 230, 160, .45)); transition: stroke-dashoffset 2.2s var(--ease); }
.t-speed.is-in .g-fill { stroke-dashoffset: 0; }
.gauge-num { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 700; font-size: clamp(28px, 2.8vw, 44px); letter-spacing: -.05em; color: var(--green); }

/* 03 SEO */
.serp { display: flex; flex-direction: column; gap: 10px; }
.serp-search { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 99px; background: #17171d; border: 1px solid var(--line-2); font-size: 13px; color: var(--text-2); }
.serp-search svg { width: 14px; height: 14px; }
.serp-list { position: relative; height: calc(3 * clamp(38px, 3.4vw, 50px)); }
.serp-item {
  position: absolute; left: 0; right: 0; top: 0; height: clamp(38px, 3.4vw, 50px);
  display: flex; align-items: center; gap: 10px; padding: 0 10px;
  border-radius: 12px;
}
.serp-item i { width: 20px; height: 20px; border-radius: 6px; background: #22222a; flex: none; }
.serp-item div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.serp-item b { height: 7px; width: 70%; border-radius: 4px; background: #2c2c35; }
.serp-item span { height: 5px; width: 90%; border-radius: 3px; background: #1e1e25; }
.s-you { background: rgba(62, 230, 160, .09); border: 1px solid rgba(62, 230, 160, .35); }
.s-you i { background: var(--grad); }
.s-you b { height: auto; width: auto; background: none; font-size: 12.5px; font-weight: 600; color: var(--text); line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-you em { font: 600 12px var(--f-mono); color: var(--green); background: none; -webkit-text-fill-color: currentColor; }
.s-a { animation: serp-a 6s var(--ease-io) infinite; }
.s-b { animation: serp-b 6s var(--ease-io) infinite; }
.s-you { animation: serp-you 6s var(--ease-io) infinite; }
@keyframes serp-a { 0%, 22% { transform: translateY(0); } 38%, 86% { transform: translateY(100%); } 100% { transform: translateY(0); } }
@keyframes serp-b { 0%, 22% { transform: translateY(100%); } 38%, 86% { transform: translateY(200%); } 100% { transform: translateY(100%); } }
@keyframes serp-you { 0%, 22% { transform: translateY(200%); opacity: .55; } 38%, 86% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(200%); opacity: .55; } }

/* 04 motion lanes */
.lanes { display: flex; flex-direction: column; gap: clamp(8px, 1vw, 14px); }
.lane { display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: 10px; }
.lane .mono { font-size: 10px; color: var(--text-3); }
.lane-run { position: relative; height: 26px; border-radius: 99px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); overflow: hidden; }
.lane-run span { position: absolute; inset: 3px; }
.lane-run span::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 18px; border-radius: 50%; background: #3a3a44; }
.lane-run i { position: absolute; inset: 0; }
.lane-run span { animation: lane 2.6s infinite alternate; }
.lane:nth-child(1) .lane-run span { animation-timing-function: linear; }
.lane:nth-child(2) .lane-run span { animation-timing-function: ease-in-out; }
.lane:nth-child(3) .lane-run span { animation-timing-function: var(--ease-spring); }
.lane.is-hot .mono { color: var(--text); }
.lane.is-hot .lane-run span::before { background: var(--grad); box-shadow: 0 0 16px rgba(255, 79, 160, .7); }
@keyframes lane { 0%, 12% { transform: translateX(0); } 88%, 100% { transform: translateX(calc(100% - 18px)); } }

/* 05 conversion toasts */
.toasts { position: relative; flex: 1; min-height: 0; }
.toast {
  position: absolute; left: 0; right: 0; top: 0;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 16px;
  background: rgba(30, 30, 38, .92); border: 1px solid var(--line-2);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .9);
  opacity: 0;
  animation: toast 7.5s var(--ease) infinite;
}
.toast:nth-child(2) { animation-delay: -5s; }
.toast:nth-child(3) { animation-delay: -2.5s; }
.toast i { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 10px; background: rgba(255, 255, 255, .06); font-style: normal; font-size: 16px; }
.toast div { min-width: 0; }
.toast b, .toast span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast b { display: block; font-size: 13px; font-weight: 600; line-height: 1.2; }
.toast span { display: block; font-size: 11.5px; color: var(--text-2); line-height: 1.3; }
@keyframes toast {
  0% { transform: translateY(-40%) scale(.92); opacity: 0; }
  7%, 33% { transform: translateY(0) scale(1); opacity: 1; }
  40%, 66% { transform: translateY(62%) scale(.93); opacity: .6; }
  73%, 93% { transform: translateY(116%) scale(.86); opacity: .25; }
  100% { transform: translateY(140%) scale(.82); opacity: 0; }
}

/* 06 custom design */
.canvas { position: relative; flex: 1; min-width: 0; border-radius: 16px; background-color: #0c0c10; background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px); background-size: 14px 14px; border: 1px solid var(--line); overflow: hidden; }
.artboard { position: absolute; left: 8%; top: 12%; right: 30%; bottom: 14%; border-radius: 10px; background: #15151b; border: 1px solid var(--line-2); display: grid; place-items: center; }
.art-tag { position: absolute; left: 0; top: -18px; font-size: 9.5px; color: var(--text-3); }
.art-size { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); font-size: 9px; padding: 3px 6px; border-radius: 4px; background: var(--violet); color: #fff; }
.sel { position: relative; padding: 6px 18px; border: 1.5px solid var(--violet); }
.sel .h { position: absolute; width: 8px; height: 8px; background: #fff; border: 1.5px solid var(--violet); border-radius: 2px; }
.tl { left: -5px; top: -5px; } .tr { right: -5px; top: -5px; } .bl { left: -5px; bottom: -5px; } .br { right: -5px; bottom: -5px; }
.spec { display: block; font-size: clamp(38px, 4.2vw, 68px); line-height: 1; letter-spacing: -.04em; animation: spec 8s steps(1) infinite; }
@keyframes spec {
  0% { font-family: var(--f-display); font-weight: 800; font-style: normal; color: #8a6bff; }
  25% { font-family: var(--f-serif); font-weight: 400; font-style: italic; color: #ff4fa0; }
  50% { font-family: var(--f-mono); font-weight: 500; font-style: normal; color: #ff9a4d; }
  75% { font-family: var(--f-display); font-weight: 300; font-style: normal; color: #3ee6a0; }
}
.swatches { position: absolute; right: 7%; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 8px; }
.swatches i { width: clamp(18px, 1.8vw, 26px); aspect-ratio: 1; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px #0c0c10, 0 0 0 3px var(--line-2); }
.pointer { position: absolute; width: 20px; height: 20px; right: 4%; top: 18%; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .6)); animation: pointer 8s var(--ease-io) infinite; }
@keyframes pointer {
  0%, 18% { transform: translate(-10px, 8px); }
  25%, 43% { transform: translate(-10px, 38px); }
  50%, 68% { transform: translate(-10px, 70px); }
  75%, 93% { transform: translate(-10px, 102px); }
  100% { transform: translate(-10px, 8px); }
}

/* 07 launch terminal */
.term { flex: 1; min-width: 0; display: flex; flex-direction: column; border-radius: 16px; border: 1px solid var(--line-2); background: #0b0b0f; overflow: hidden; }
.term-bar { display: flex; align-items: center; gap: 5px; height: 28px; padding: 0 12px; border-bottom: 1px solid var(--line); background: #131318; }
.term-bar i { width: 7px; height: 7px; border-radius: 50%; background: #34343d; }
.term-bar .mono { margin-left: auto; font-size: 9.5px; color: var(--text-3); }
.term-body { flex: 1; padding: 12px 14px; font: 500 clamp(10.5px, .92vw, 13px)/1.75 var(--f-mono); color: var(--text); overflow: hidden; }
.term-body p { opacity: 0; transform: translateY(6px); animation: term 8s infinite; white-space: nowrap; }
.term-body p:nth-child(2) { animation-delay: .6s; }
.term-body p:nth-child(3) { animation-delay: 1.2s; }
.term-body p:nth-child(4) { animation-delay: 1.8s; }
.term-body p:nth-child(5) { animation-delay: 2.6s; }
@keyframes term { 0% { opacity: 0; transform: translateY(6px); } 4%, 80% { opacity: 1; transform: none; } 88%, 100% { opacity: 0; transform: none; } }
.c-dim { color: var(--text-3); }
.c-ok { color: var(--text-2); }
.c-live { color: var(--green); display: flex; align-items: center; gap: 8px; }
.c-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }

/* ==========================================================================
   PROCESS — DM thread
   ========================================================================== */
.process { position: relative; background: var(--bg); padding: var(--section-y) var(--pad); overflow: hidden; overflow: clip; }
.process::before {
  content: ""; position: absolute; right: -10%; top: 20%; width: 60vw; height: 60vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(circle, rgba(138, 107, 255, .16), transparent 62%); pointer-events: none;
}
.process-grid { position: relative; max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 110px); align-items: center; }
.process .section-head { margin: 0 0 clamp(28px, 5vh, 56px); display: block; }
.process .section-head .mono { display: block; margin-bottom: 14px; }
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; align-items: baseline;
  padding: clamp(14px, 1.5vw, 22px); border-radius: 18px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .02);
  transition: border-color .6s, background-color .6s, transform .8s var(--ease);
}
.step .mono { grid-row: span 2; }
.step b { font-weight: 650; font-size: clamp(19px, 1.8vw, 28px); letter-spacing: -.035em; color: var(--text-3); transition: color .6s; }
.step small { font-size: 13.5px; color: var(--text-3); transition: color .6s; }
.step.is-active { border-color: rgba(255, 79, 160, .45); background: rgba(255, 79, 160, .06); }
.step.is-active b { color: var(--text); }
.step.is-active small { color: var(--text-2); }

.chat-wrap { position: relative; display: grid; justify-items: center; gap: 14px; }
.chat {
  position: relative;
  width: min(360px, 100%); height: clamp(560px, 70vh, 700px);
  display: flex; flex-direction: column;
  border-radius: 48px; padding: 12px;
  background: linear-gradient(150deg, #26262e, #111116);
  border: 1px solid var(--line-2);
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .95), 0 0 100px -30px rgba(255, 79, 160, .35), inset 0 0 0 1px rgba(255, 255, 255, .04);
}
.chat-island { position: absolute; z-index: 3; top: 22px; left: 50%; width: 96px; height: 28px; transform: translateX(-50%); border-radius: 20px; background: #000; }
.chat-head, .chat-body, .chat-input { position: relative; background: #0a0a0d; }
.chat-head {
  display: flex; align-items: center; gap: 10px;
  padding: 54px 16px 14px; border-radius: 37px 37px 0 0; border-bottom: 1px solid var(--line);
}
.chat-back svg, .chat-ig svg { width: 20px; height: 20px; color: var(--text); }
.chat-avatar { position: relative; display: block; flex: none; width: 36px; height: 36px; border-radius: 50%; background: #15151b; }
.chat-avatar img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.chat-avatar::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; background: var(--green); border: 2px solid #0a0a0d; }
.chat-who { flex: 1; display: flex; flex-direction: column; line-height: 1.2; }
.chat-who b { font-size: 15px; font-weight: 650; letter-spacing: -.02em; }
.chat-who small { font-size: 11.5px; color: var(--text-2); }
.chat-body { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 14px 12px; overflow: hidden; }
.chat-body::before { content: ""; position: absolute; z-index: 3; left: 0; right: 0; top: 0; height: 48px; background: linear-gradient(#0a0a0d, rgba(10, 10, 13, 0)); pointer-events: none; }
.msg {
  max-width: 78%; padding: 9px 13px; border-radius: 20px;
  font-size: 14px; line-height: 1.35; letter-spacing: -.01em;
  transform-origin: 0 100%;
}
.msg.them { align-self: flex-start; background: #1f1f26; border-bottom-left-radius: 6px; }
.msg.me { align-self: flex-end; color: #fff; background: linear-gradient(135deg, #7c5cff, #b84dff 60%, #ff4fa0); border-bottom-right-radius: 6px; transform-origin: 100% 100%; }
.is-booted .msg { display: none; }
.is-booted .msg.is-shown { display: block; animation: pop .7s var(--ease-spring) both; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.85); } to { opacity: 1; transform: none; } }
.swatch-row { display: flex; gap: 4px; margin-bottom: 7px; }
.swatch-row i { width: 22px; height: 22px; border-radius: 7px; }
.swatch-row i:nth-child(1) { background: #8a6bff; } .swatch-row i:nth-child(2) { background: #ff4fa0; } .swatch-row i:nth-child(3) { background: #ff9a4d; }
.msg.media { padding: 4px 4px 9px; }
.msg.media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 16px 16px 6px 6px; margin-bottom: 7px; background: #15151b; }
.msg.media span { padding: 0 9px; }
.msg.link { padding: 4px 4px 9px; }
.link-card { display: flex; align-items: center; gap: 10px; padding: 6px; margin-bottom: 7px; border-radius: 14px; background: rgba(0, 0, 0, .25); }
.link-card img { width: 42px; height: 56px; border-radius: 8px; object-fit: cover; object-position: top; background: #15151b; }
.link-card > span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.link-card b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.link-card small { display: flex; align-items: center; gap: 6px; font-size: 11px; opacity: .9; }
.link-card small i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.msg.link > :last-child { padding: 0 9px; }
.typing { display: none; align-self: flex-start; gap: 4px; padding: 13px 15px; border-radius: 20px; border-bottom-left-radius: 6px; background: #1f1f26; }
.typing.is-me { align-self: flex-end; background: #2a2340; border-radius: 20px; border-bottom-right-radius: 6px; }
.typing.is-on { display: flex; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-2); animation: dots 1.1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dots { 0%, 60%, 100% { transform: none; opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }
.chat-input {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px 20px; border-radius: 0 0 37px 37px;
}
.chat-input span { flex: 1; height: 40px; display: flex; align-items: center; padding: 0 16px; border-radius: 99px; border: 1px solid var(--line-2); font-size: 13.5px; color: var(--text-3); }
.chat-input i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--grad); }
.chat-input svg { width: 16px; height: 16px; color: #0a0a0d; }
.chat-replay { padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--text-2); transition: color .3s, border-color .3s; }
@media (hover: hover) { .chat-replay:hover { color: var(--text); border-color: rgba(255, 255, 255, .4); } }

/* ==========================================================================
   CONTACT + FOOTER (over the live background)
   ========================================================================== */
.finale { position: relative; }
.finale::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 40vh; pointer-events: none;
  background: linear-gradient(to bottom, var(--bg), rgba(7, 7, 10, 0));
}
.contact {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center; gap: clamp(18px, 3vh, 30px);
  padding: var(--section-y) var(--pad) clamp(40px, 8vh, 90px);
  max-width: calc(var(--maxw) + var(--pad) * 2); margin: 0 auto;
}
.contact-title { font-weight: 700; font-size: clamp(56px, 13.5vw, 240px); line-height: .88; letter-spacing: -.06em; }
.contact-title em { font-size: 1.08em; }
.contact-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(20px, 3.5vw, 56px); margin-top: clamp(10px, 3vh, 34px); }

.dm-badge { position: relative; display: grid; place-items: center; width: clamp(150px, 15vw, 220px); aspect-ratio: 1; border-radius: 50%; transition: transform .8s var(--ease); }
.dm-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; }
.dm-ring text { font: 600 13.5px var(--f-mono); letter-spacing: 1px; fill: var(--text); text-transform: uppercase; }
.dm-core {
  position: relative; display: grid; place-items: center; width: 56%; aspect-ratio: 1; border-radius: 50%;
  background: var(--ig); color: #fff;
  box-shadow: 0 20px 60px -10px rgba(214, 41, 118, .6), inset 0 0 0 1px rgba(255, 255, 255, .25);
  transition: transform .8s var(--ease-spring);
}
.dm-core svg { width: 40%; height: 40%; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (hover: hover) {
  .dm-badge:hover .dm-core { transform: scale(1.12); }
  .dm-badge:hover .dm-ring { animation-duration: 6s; }
}
.dm-badge:active .dm-core { transform: scale(.94); }

.contact-info { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.handle {
  display: inline-flex; align-items: center; gap: .25em; align-self: flex-start;
  font-weight: 650; font-size: clamp(26px, 3.6vw, 56px); letter-spacing: -.045em; line-height: 1.05;
  word-break: break-all;
}
.handle svg { width: .7em; height: .7em; flex: none; transition: transform .6s var(--ease); }
.handle::after { content: ""; }
@media (hover: hover) { .handle:hover svg { transform: rotate(45deg); } .handle:hover { color: #fff; } }
.contact-note { color: var(--text-2); font-size: clamp(14px, 1.1vw, 17px); }

.qr { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px; border-radius: 22px; background: rgba(14, 14, 18, .55); border: 1px solid var(--line-2); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.qr-code { width: clamp(110px, 9vw, 140px); aspect-ratio: 1; padding: 8px; border-radius: 12px; background: #fff; }
.qr-code svg { width: 100%; height: 100%; }
@media (hover: none), (pointer: coarse) { .qr { display: none; } .contact-row { grid-template-columns: auto 1fr; } }

.footer { position: relative; padding: 0 var(--pad) calc(10px + var(--safe-bottom)); overflow: hidden; overflow: clip; }
.footer-row {
  max-width: var(--maxw); margin: 0 auto; padding: 22px 0;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--line);
}
.footer-row a { color: var(--text); }
.mega {
  display: flex; justify-content: center;
  font-weight: 800; line-height: .82; letter-spacing: -.04em; white-space: nowrap;
  font-size: 22vw; /* refined by JS to fit the width exactly */
  padding: .02em 0 .1em;
  color: var(--text);
  user-select: none; -webkit-user-select: none;
}
.mega .ch { display: inline-block; }
.is-booted .mega .ch { transform: translateY(60%); opacity: 0; transition: transform 1.3s var(--ease), opacity 1s; transition-delay: calc(var(--i) * 60ms); }
.is-booted .mega.is-in .ch { transform: none; opacity: 1; }

/* ==========================================================================
   FLOATING DM
   ========================================================================== */
.fab {
  position: fixed; z-index: 58;
  right: max(var(--pad), env(safe-area-inset-right)); bottom: calc(18px + var(--safe-bottom));
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 20px 0 6px; border-radius: 999px;
  background: rgba(20, 20, 26, .78); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  font-weight: 600; font-size: 15px;
  box-shadow: 0 20px 50px -16px rgba(0, 0, 0, .9);
  transform: translateY(calc(100% + 40px)) scale(.9); opacity: 0;
  transition: transform .8s var(--ease), opacity .5s;
}
.fab.is-on { transform: none; opacity: 1; }
.fab-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ig); color: #fff; }
.fab-icon svg { width: 20px; height: 20px; }
.fab:active { transform: scale(.95); }
.is-menu-open .fab, .is-viewer-open .fab { transform: translateY(calc(100% + 40px)); opacity: 0; }

/* ==========================================================================
   PROJECT VIEWER
   ========================================================================== */
.viewer {
  --t: 50%; --r: 50%; --b: 50%; --l: 50%; --rad: 32px;
  position: fixed; inset: 0; z-index: 85;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: clamp(10px, 2vh, 20px);
  padding: calc(14px + var(--safe-top)) var(--pad) calc(14px + var(--safe-bottom));
  background:
    radial-gradient(60% 50% at 50% 100%, rgba(var(--rgb, 138, 107, 255), .22), transparent 70%),
    #060609;
  clip-path: inset(var(--t) var(--r) var(--b) var(--l) round var(--rad));
  transition: clip-path .85s var(--ease-io);
  overscroll-behavior: contain;
  touch-action: pan-x pan-y;
}
.viewer.is-open { clip-path: inset(0 0 0 0 round 0); }
.viewer > * { opacity: 0; transition: opacity .5s; }
.viewer.is-open > * { opacity: 1; transition: opacity .6s .3s; }

.viewer-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.viewer-info { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; min-width: 0; }
.viewer-title { font-weight: 700; font-size: clamp(26px, 3vw, 44px); letter-spacing: -.05em; line-height: 1; }
.viewer-type { color: var(--text-2); font-size: 15px; }
.viewer-controls { display: flex; align-items: center; gap: 8px; }
.seg { position: relative; display: flex; padding: 4px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); }
.seg button { position: relative; z-index: 1; height: 34px; padding: 0 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--text-2); transition: color .4s; }
.seg button[aria-pressed="true"] { color: #0a0a0c; }
.seg-pill { position: absolute; top: 4px; bottom: 4px; left: 4px; width: var(--w, 80px); border-radius: 999px; background: var(--text); transform: translateX(var(--x, 0)); transition: transform .6s var(--ease), width .6s var(--ease); }

.viewer-stage { position: relative; display: grid; place-items: center; min-height: 0; container-type: size; }
.v-device { position: relative; display: flex; flex-direction: column; overflow: hidden; transition: width .7s var(--ease), height .7s var(--ease), border-radius .7s var(--ease); background: #0b0b0e; border: 1px solid var(--line-2); box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .95); }
.v-device.is-desktop { width: min(100cqw, 158cqh); aspect-ratio: 16 / 10.1; border-radius: 16px; }
.v-device.is-mobile { height: min(100cqh, 205cqw); aspect-ratio: 9 / 19.3; border-radius: 42px; padding: 8px; background: linear-gradient(145deg, #2a2a33, #131318); }
@supports not (width: 1cqw) { .v-device.is-desktop { width: 100%; } .v-device.is-mobile { height: 100%; } }
.v-bar { flex: none; display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; background: #17171d; border-bottom: 1px solid var(--line); }
.v-bar i { width: 10px; height: 10px; border-radius: 50%; }
.v-bar i:nth-child(1) { background: #ff5f57; } .v-bar i:nth-child(2) { background: #febc2e; } .v-bar i:nth-child(3) { background: #28c840; }
.v-url { margin: 0 auto; padding: 6px 18px; border-radius: 8px; background: #24242b; text-transform: none; }
.is-mobile .v-bar { display: none; }
.v-scroll {
  position: relative; flex: 1; min-height: 0;
  overflow-y: auto; overflow-x: hidden;
  overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; touch-action: pan-y;
}
.v-scroll::-webkit-scrollbar { display: none; }
.is-mobile .v-scroll { border-radius: 34px; }
.v-img { width: 100%; height: auto; transition: opacity .4s; }
.v-img.is-loading { opacity: 0; }
.v-hint {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 99px;
  background: rgba(10, 10, 14, .82); border: 1px solid var(--line-2); color: var(--text);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  white-space: nowrap; pointer-events: none; transition: opacity .5s;
}
.v-hint svg { width: 13px; height: 13px; animation: nudge 1.6s var(--ease-io) infinite; }
.v-hint.is-gone { opacity: 0; }
@keyframes nudge { 50% { transform: translateY(3px); } }

.viewer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.viewer-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }

/* ==========================================================================
   RESPONSIVE — same scenes, re-engineered compositions
   ========================================================================== */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .menu-btn { display: block; }
}

@media (max-width: 900px) {
  .process-grid { grid-template-columns: 1fr; }
  .chat-wrap { order: 2; }
  .process-copy { order: 1; }
  .steps { margin-bottom: 8px; }
  .t-design .tile-label, .t-launch .tile-label { flex-basis: 42%; }
}

@media (min-width: 768px) and (orientation: portrait) {
  .card { height: min(92vw, 80svh, 860px); min-height: 0; }
}

@media (max-width: 767px) {
  :root { --nav-h: 64px; --section-y: clamp(64px, 11vh, 110px); }
  .btn { height: 52px; }
  .nav-right .btn-sm span[data-roll] { display: inline-block; }

  .hero-head .hero-role { display: none; }
  .hero-title { font-size: min(15.4vw, 11svh); }
  .hero-foot { grid-template-columns: 1fr; gap: 18px; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .scroll-cue { display: none; }

  .reel { --card-h: clamp(100px, 30vw, 160px); height: clamp(460px, 84svh, 720px); }

  .section-head { grid-template-columns: 1fr; }
  .section-count { display: none; }

  .card { height: min(76vh, 680px); height: min(76svh, 680px); min-height: 440px; top: calc(var(--nav-h) + var(--safe-top) + 6px + var(--i) * 10px); }
  .card-top { flex-direction: column; gap: 10px; }
  .card-heading { gap: 10px; }
  .card-meta { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .devices { width: min(100cqw, 104cqh); aspect-ratio: .96; }
  .browser { width: 96%; top: 0; }
  .phone { width: 45%; }
  .card-tags .chip:nth-child(n+2) { display: none; }
  .card-cta { font-size: 14px; }
  .card-cta .arrow { width: 40px; height: 40px; }

  .tapes { height: clamp(170px, 46vw, 220px); }

  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(176px, 47vw, 230px); gap: 10px; }
  .t-resp { grid-column: span 2; grid-row: span 2; }
  .t-design, .t-launch { grid-column: span 2; }
  .t-design .tile-label, .t-launch .tile-label { flex-basis: 44%; }
  .tile { border-radius: 22px; padding: 16px; }
  .tile-label b { font-size: 16.5px; }
  .morph-labels { position: static; order: 3; justify-content: center; }
  .t-resp .morph-wrap { order: 2; }
  .t-resp .tile-label { order: 1; }
  .m-grid { grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: 6px; }
  .m-grid i { height: 34px; }
  .gauge { width: 84px; }
  .gauge-num { font-size: 24px; }
  .serp-search { height: 28px; font-size: 11.5px; padding: 0 10px; }
  .serp-list { height: 102px; }
  .serp-item { height: 34px; padding: 0 8px; gap: 8px; }
  .serp-item i { width: 16px; height: 16px; }
  .s-you b { font-size: 11px; }
  .s-you em { display: none; }
  .lane { grid-template-columns: 1fr; gap: 3px; }
  .lane-run { height: 22px; }
  .lane-run span::before { width: 14px; }
  @keyframes lane { 0%, 12% { transform: translateX(0); } 88%, 100% { transform: translateX(calc(100% - 14px)); } }
  .toast { padding: 7px 8px; gap: 7px; border-radius: 12px; }
  .toast i { width: 24px; height: 24px; font-size: 12px; border-radius: 7px; }
  .toast b { font-size: 11px; }
  .toast span { font-size: 9.5px; }
  .canvas, .term { border-radius: 12px; }
  .term-body { padding: 8px 10px; font-size: 9.5px; line-height: 1.7; }
  .term-bar { height: 22px; }
  .artboard { right: 26%; }
  .art-size { display: none; }
  .swatches { gap: 5px; right: 6%; }
  .swatches i { width: 14px; }
  @keyframes pointer {
    0%, 18% { transform: translate(-4px, 0); }
    25%, 43% { transform: translate(-4px, 19px); }
    50%, 68% { transform: translate(-4px, 38px); }
    75%, 93% { transform: translate(-4px, 57px); }
    100% { transform: translate(-4px, 0); }
  }
  .pointer { width: 14px; height: 14px; top: 26%; }

  .steps { grid-template-columns: 1fr 1fr; gap: 8px; }
  .step { padding: 13px; border-radius: 16px; grid-template-columns: 1fr; }
  .step .mono { grid-row: auto; }
  .step small { font-size: 12px; line-height: 1.3; }
  .chat { width: min(340px, 100%); height: clamp(520px, 74svh, 620px); border-radius: 44px; padding: 10px; }
  .chat-head { border-radius: 35px 35px 0 0; padding-top: 50px; }
  .chat-input { border-radius: 0 0 35px 35px; }
  .chat-island { top: 19px; }
  .msg { font-size: 13.5px; }

  .contact { min-height: auto; padding-top: calc(var(--section-y) * 1.2); padding-bottom: 56px; }
  .contact-row { grid-template-columns: 1fr; justify-items: start; gap: 22px; }
  .contact-info { width: 100%; }

  .viewer-top { display: grid; grid-template-columns: 1fr auto; gap: 12px; }
  .viewer-info { flex-direction: column; gap: 4px; }
  .viewer-controls { display: contents; }
  .viewer-close { grid-column: 2; grid-row: 1; align-self: start; }
  .seg { grid-column: 1; grid-row: 2; justify-self: start; }
  .viewer-live { grid-column: 2; grid-row: 2; }
  .viewer-live span { display: none; }
  .viewer-live { width: 42px; padding: 0; }
  .v-device.is-desktop { border-radius: 12px; }
  .v-bar { height: 26px; padding: 0 10px; gap: 4px; }
  .v-bar i { width: 7px; height: 7px; }
  .v-url { padding: 3px 12px; font-size: 9.5px; }
  .v-device.is-mobile { border-radius: 36px; padding: 6px; }
  .is-mobile .v-scroll { border-radius: 30px; }
  .viewer-tags .chip:nth-child(n+3) { display: none; }

  .fab { left: 50%; right: auto; transform: translate(-50%, calc(100% + 40px)) scale(.9); }
  .fab.is-on { transform: translate(-50%, 0); }
  .is-menu-open .fab, .is-viewer-open .fab { transform: translate(-50%, calc(100% + 40px)); }
}

/* Landscape phones: keep the hero composed */
@media (max-height: 520px) and (orientation: landscape) {
  .hero-cta { flex-direction: row; }
  .hero-foot { grid-template-columns: 1fr auto; }
  .card { height: 88vh; min-height: 300px; }
  .chat { height: 520px; }
}

/* ---------- Local setup reminder (only shown on file:// or localhost) ---------- */
.dev-note { position: fixed; left: 50%; top: calc(env(safe-area-inset-top) + 10px); z-index: 200; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 32px); padding: 9px 16px; border-radius: 999px; background: #ffd84d; color: #07070a; font: 600 11px/1.35 var(--f-mono); text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,.4); pointer-events: none; animation: dev-note 9s 1s both; }
@keyframes dev-note { 0% { opacity: 0; } 5%, 88% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
.qr.is-placeholder .qr-code { opacity: .35; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .morph { width: 90%; height: 70%; }
  .toast:nth-child(1) { opacity: 1; transform: none; }
}
