/* nestudio.site v2
   One dark "screening room" from top to bottom: near-black ink, a single crimson accent taken from the play mark,
   blue only where web work is meant. Sections are separated by hairlines and space, not by colour changes.
   1280px measure; section rhythm 128/72px; mono labels carry real production units (aspect, seconds). */
:root {
  --bg: #0a0910;
  --bg-2: #110f17;
  --bg-3: #18151f;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --text: #f3f0f5;
  --muted: #a29cab;
  --dim: #6f6878;

  --video: #e81c5a;
  --video-hot: #ff4d7e;
  --web: #2f6bff;
  --web-hot: #6b95ff;

  --f-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --f-body: "Golos Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --f-mark: "Comfortaa", "Varela Round", system-ui, sans-serif;

  --step-0: 1rem;
  --step-1: 1.1875rem;
  --step-2: clamp(1.3rem, 1.1rem + .8vw, 1.65rem);
  --step-3: clamp(1.8rem, 1.25rem + 2vw, 2.7rem);
  --step-4: clamp(2.1rem, 1.3rem + 2.8vw, 3.6rem);

  --measure: 1280px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--f-body); font-size: var(--step-0); line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--video-hot); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--video); color: #fff; }

.wrap {
  width: 100%; max-width: calc(var(--measure) + 64px); margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }
.section { padding-block: clamp(72px, 9vw, 128px); border-top: 1px solid var(--line); }

/* type */
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; letter-spacing: -.025em; line-height: 1.06; margin: 0; text-wrap: balance; }
h2 { font-size: var(--step-4); font-weight: 500; }
h3 { font-size: var(--step-2); line-height: 1.15; font-weight: 500; }
p { margin: 0; }
.label { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lead { font-size: var(--step-1); color: var(--muted); max-width: 56ch; text-wrap: pretty; }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); max-width: 860px; }
.section-head .label { display: inline-flex; align-items: center; gap: 10px; }
.section-head .label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--video); }

/* buttons */
.btn {
  --b: var(--video);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer;
  transition: transform .4s var(--ease), background-color .2s, border-color .2s, color .2s;
}
.btn--primary { background: var(--b); color: #fff; }
.btn--primary:hover { background: var(--video-hot); }
.btn--ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn--ghost:hover { border-color: var(--text); }
.btn svg { width: 18px; height: 18px; flex: none; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--video); flex: none; }
.dot--web { background: var(--web); }

/* header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
.nav { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 50; transition: background-color .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: rgba(10, 9, 16, .74); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-color: var(--line); }
.nav__inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand__mark { width: 32px; height: 34px; flex: none; }
.brand__word { font-family: var(--f-mark); font-weight: 700; font-size: 1.3rem; letter-spacing: -.02em; line-height: 1; position: relative; }
.brand__word sup { position: absolute; top: -.6em; right: -.15em; font-size: .5em; color: var(--video); }
.nav__links { display: flex; gap: 2px; margin-left: auto; }
.nav__links a { padding: 8px 14px; border-radius: 999px; text-decoration: none; font-size: .92rem; color: var(--muted); transition: color .2s, background-color .2s; }
.nav__links a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.nav__right { display: flex; align-items: center; gap: 12px; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang button { border: 0; background: transparent; padding: 5px 10px; border-radius: 999px; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .06em; color: var(--muted); cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.nav .btn { min-height: 40px; padding: 0 18px; font-size: .88rem; }
.nav__burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: transparent; cursor: pointer; position: relative; }
.nav__burger span, .nav__burger::before, .nav__burger::after { content: ""; position: absolute; left: 12px; right: 12px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav__burger::before { top: 15px; } .nav__burger span { top: 21px; } .nav__burger::after { top: 27px; }
.nav.is-open .nav__burger::before { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__burger span { opacity: 0; }
.nav.is-open .nav__burger::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 960px) {
  .nav__links { position: fixed; inset: calc(68px + env(safe-area-inset-top, 0px)) 0 auto 0; flex-direction: column; gap: 0; padding: 12px max(16px, env(safe-area-inset-right, 0px)) 20px max(16px, env(safe-area-inset-left, 0px)); background: rgba(10, 9, 16, .97); border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .3s var(--ease); }
  .nav.is-open .nav__links { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links a { padding: 14px 4px; font-size: 1.1rem; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav__burger { display: block; }
  .nav__right .btn { display: none; }
  .nav__right { margin-left: auto; }
}

/* hero */
.hero { position: relative; overflow: hidden; min-height: clamp(640px, 100svh, 1000px); isolation: isolate; }
/* muted showreel under the particles; the shade keeps the headline and the forms readable */
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: .55; filter: saturate(.85); }
.hero__shade { position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, rgba(10, 9, 16, .94) 0%, rgba(10, 9, 16, .78) 40%, rgba(10, 9, 16, .5) 100%), linear-gradient(to bottom, rgba(10, 9, 16, .55), transparent 30%); }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; touch-action: pan-y; }
.hero__still { position: absolute; inset: 0; z-index: 1; display: none; place-items: center end; padding-right: 8vw; background: radial-gradient(50% 60% at 75% 45%, rgba(232, 28, 90, .18), transparent 70%); }
.hero__still svg { width: min(36vw, 420px); height: auto; aspect-ratio: 703 / 740; color: rgba(255, 255, 255, .85); }
.hero.no-gl .hero__still { display: grid; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 24%; background: linear-gradient(to top, var(--bg), transparent); z-index: 1; pointer-events: none; }
.hero__inner { position: relative; z-index: 2; min-height: inherit; display: grid; align-items: end; padding-top: 120px; padding-bottom: clamp(40px, 6vw, 72px); pointer-events: none; }
.hero__copy { max-width: 640px; display: grid; gap: 24px; pointer-events: auto; }
.hero__copy .label { display: flex; gap: 10px; align-items: center; }
.rec { width: 9px; height: 9px; border-radius: 50%; background: var(--video); box-shadow: 0 0 0 4px rgba(232, 28, 90, .22); animation: rec 1.6s infinite; }
@keyframes rec { 50% { opacity: .35; } }
.hero h1 { font-size: clamp(2.3rem, 1.1rem + 4.4vw, 4.6rem); font-weight: 600; letter-spacing: -.035em; line-height: 1; }
.hero h1 em { font-style: normal; color: var(--video); }
.hero .lead { color: #c9c3d0; max-width: 46ch; }
.picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 640px; margin-top: 6px; }
.pick { --c: var(--video); position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 16px 16px 16px 14px; border-radius: 18px; text-decoration: none; color: var(--text); background: color-mix(in srgb, var(--c) 14%, rgba(10, 9, 16, .55)); border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: background-color .3s, transform .4s var(--ease), border-color .3s; }
.pick--web { --c: var(--web); }
.pick:hover { background: color-mix(in srgb, var(--c) 28%, rgba(10, 9, 16, .55)); border-color: var(--c); transform: translateY(-2px); }
.pick__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--c); color: #fff; }
.pick__icon svg { width: 20px; height: 20px; }
.pick__body { display: grid; gap: 2px; min-width: 0; }
.pick__body b { font-family: var(--f-display); font-weight: 500; font-size: 1.08rem; letter-spacing: -.01em; }
.pick__body span { color: #cfc9d6; font-size: .9rem; line-height: 1.35; }
.pick__body small { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .04em; color: color-mix(in srgb, var(--c) 45%, #fff); margin-top: 4px; }
.pick__go { width: 20px; height: 20px; color: var(--muted); transition: transform .4s var(--ease), color .3s; }
.pick:hover .pick__go { transform: translateX(3px); color: #fff; }
@media (max-width: 560px) { .picks { grid-template-columns: 1fr; } }
.scene { display: none; }
/* tells the visitor the background is our own work */
.hero__credit { position: absolute; z-index: 2; right: max(32px, env(safe-area-inset-right, 0px)); bottom: clamp(40px, 6vw, 72px); display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; background: rgba(10, 9, 16, .55); border: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-family: var(--f-mono); font-size: .7rem; letter-spacing: .04em; color: #d9d3df; text-decoration: none; transition: border-color .3s; }
.hero__credit:hover { border-color: var(--line-2); }
.hero__credit .rec { width: 7px; height: 7px; box-shadow: none; }
@media (max-width: 1179px), (pointer: coarse) { .hero__credit { display: none; } }
@media (max-width: 1179px) {
  .hero { min-height: 0; }
  .hero__inner { min-height: 0; padding-top: max(52svh, 420px); }
  .hero__shade { background: linear-gradient(to bottom, rgba(10, 9, 16, .6), rgba(10, 9, 16, .45) 40%, rgba(10, 9, 16, .92) 62%, var(--bg)); }
}
@media (max-width: 719px) {
  /* phones: smaller particle area so both direction cards are on the first screen */
  .hero__inner { padding-top: max(28svh, 210px); padding-bottom: 28px; }
  .hero__copy { gap: 16px; }
  .hero h1 { font-size: clamp(2rem, 1.2rem + 4.4vw, 2.6rem); }
  .hero .lead { font-size: 1rem; line-height: 1.5; }
  .picks { gap: 10px; }
  .pick { padding: 12px; gap: 12px; border-radius: 16px; }
  .pick__icon { width: 38px; height: 38px; border-radius: 10px; }
  .pick__body span { font-size: .85rem; }
}

/* directions: video is raspberry-purple, websites and bots are blue */
.dir { --c: var(--video); --c-hot: var(--video-hot); position: relative; isolation: isolate; overflow: hidden; }
.dir--web { --c: var(--web); --c-hot: var(--web-hot); }
.dir::before { content: ""; position: absolute; width: 900px; height: 900px; left: 50%; top: -520px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 22%, transparent), transparent); z-index: -1; pointer-events: none; }
.dir .section-head .label::before { background: var(--c); }
.dir__head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px 64px; align-items: end; margin-bottom: clamp(28px, 4vw, 48px); }
.dir__head .section-head { margin-bottom: 0; }
.dir h2 { font-size: var(--step-3); }
.dir__list { list-style: none; margin: 0 0 clamp(28px, 4vw, 44px); padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.dir__list li { display: grid; gap: 8px; align-content: start; padding: 20px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); border-top: 2px solid var(--c); }
.dir__list b { font-family: var(--f-display); font-weight: 500; font-size: 1.02rem; }
.dir__list span { color: var(--muted); font-size: .92rem; }
.dir__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(24px, 3vw, 36px); }
.dir .btn--primary { --b: var(--c); }
.dir .btn--primary:hover { background: var(--c-hot); }
.feature__cap { display: flex; justify-content: space-between; align-items: baseline; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 14px; }
.feature__cap p:last-child { color: var(--muted); max-width: 60ch; }
.trip { display: flex; gap: clamp(6px, 1vw, 12px); aspect-ratio: 16 / 8.2; }
.trip__panel { position: relative; flex: 1 1 0; min-width: 0; margin: 0; overflow: hidden; border-radius: clamp(12px, 1.6vw, 22px); background: var(--bg-3); transition: flex-grow .9s var(--ease); }
.trip-m { display: none; }
.trip-m video { width: 100%; height: 100%; object-fit: cover; }
.trip__panel video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.2s var(--ease); }
@media (hover: hover) {
  .trip:hover .trip__panel { flex-grow: .8; }
  .trip .trip__panel:hover { flex-grow: 1.6; }
  .trip__panel:hover video { transform: scale(1); }
}
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.shot { position: relative; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; padding: 0; background: var(--bg-3); cursor: pointer; aspect-ratio: 16 / 10; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 1s var(--ease); }
.shot span { position: absolute; left: 10px; bottom: 10px; padding: 5px 10px; border-radius: 999px; background: rgba(10, 9, 16, .78); color: var(--text); font-size: .82rem; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.shot:hover img { transform: scale(1.04); }
.shot:hover { border-color: var(--c); }
@media (max-width: 960px) { .dir__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .dir__head { grid-template-columns: 1fr; }
  .trip { display: none; }
  .trip-m { display: block; width: min(100%, 420px); aspect-ratio: 9 / 16; max-height: 82svh; margin-inline: auto; border-radius: 18px; overflow: hidden; background: var(--bg-3); }
  .shots { grid-template-columns: 1fr 1fr; }
  .shots .shot:first-child { grid-column: span 2; }
}
@media (max-width: 480px) { .dir__list { grid-template-columns: 1fr; } .dir__list li { padding: 16px; } }

/* clients: names over a live dot grid, numbers alongside */
.clients { border-top: 0; padding-top: clamp(56px, 7vw, 96px); }
.clients__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(24px, 3vw, 36px); }
.clients__top .section-head { margin-bottom: 0; }
.clients h2 { font-size: var(--step-3); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat { display: grid; gap: 6px; align-content: start; }
.stat__num { font-family: var(--f-display); font-weight: 500; font-size: clamp(2rem, 1.4rem + 2vw, 3.2rem); line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stat__num sup { font-size: .45em; color: var(--video); vertical-align: top; margin-left: 2px; }
.stat p { color: var(--muted); font-size: .85rem; line-height: 1.4; }
.clients__wall { position: relative; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--bg); }
.clients__dots { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.clients__grid { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.clients__grid li { padding: clamp(18px, 2.4vw, 30px) clamp(16px, 2vw, 26px); display: grid; gap: 6px; align-content: center; min-height: 112px; box-shadow: inset -1px -1px 0 var(--line); transition: background-color .3s; }
.clients__grid li:hover { background: rgba(255, 255, 255, .03); }
.clients__grid b { font-family: var(--f-display); font-weight: 500; font-size: clamp(.98rem, .9rem + .35vw, 1.2rem); letter-spacing: -.01em; line-height: 1.2; text-shadow: 0 0 18px var(--bg), 0 0 6px var(--bg); }
.clients__grid small { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.clients__gov { margin-top: 18px; color: var(--muted); font-size: .95rem; max-width: 92ch; }
.clients__gov b { color: var(--text); font-weight: 600; }
@media (max-width: 960px) { .clients__top { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .clients__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .clients__grid li { min-height: 88px; padding: 16px 14px; } .clients__grid b { font-size: .92rem; overflow-wrap: anywhere; } .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; } }

/* works: a list; hovering a row floats its preview next to the cursor */
.works__top { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.works__top .section-head { margin-bottom: 0; }
.filters { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; }
.filters button { border: 0; background: transparent; color: var(--muted); padding: 9px 16px; border-radius: 999px; cursor: pointer; font-size: .9rem; transition: background-color .2s, color .2s; }
.filters button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.wlist { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.wrow {
  width: 100%; display: grid; grid-template-columns: 52px minmax(0, 1fr) 220px 130px 28px; align-items: center; gap: 20px;
  padding: clamp(18px, 2vw, 26px) 0; border: 0; border-top: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer;
  transition: opacity .35s, color .35s;
}
.wrow__n { font-family: var(--f-mono); font-size: .74rem; color: var(--dim); }
.wrow__title { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.15rem, .9rem + 1.1vw, 1.9rem); letter-spacing: -.02em; line-height: 1.15; transition: transform .5s var(--ease), color .3s; }
.wrow__tag { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: .92rem; }
.wrow__meta { font-family: var(--f-mono); font-size: .72rem; color: var(--dim); letter-spacing: .04em; }
.wrow__go { width: 22px; height: 22px; color: var(--dim); transition: transform .5s var(--ease), color .3s; }
.wrow__thumb { display: none; }
@media (hover: hover) {
  .wlist:hover .wrow { opacity: .38; }
  .wlist .wrow:hover { opacity: 1; }
  .wrow:hover .wrow__title { transform: translateX(14px); }
  .wrow:hover .wrow__go { transform: translateX(4px) rotate(-45deg); color: var(--video-hot); }
}
.wrow:focus-visible { outline-offset: -2px; }
.works__more { margin-top: 28px; }
.wprev { position: fixed; left: 0; top: 0; z-index: 40; pointer-events: none; opacity: 0; transition: opacity .3s; }
.wprev.is-on { opacity: 1; }
.wprev__item { position: absolute; width: 340px; aspect-ratio: 16 / 9; left: 36px; top: 0; transform: translateY(-50%) scale(.92); border-radius: 14px; overflow: hidden; background: var(--bg-3); box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px var(--line); opacity: 0; transition: opacity .3s, transform .5s var(--ease); }
.wprev__item--v { width: 210px; aspect-ratio: 9 / 16; }
.wprev__item.is-on { opacity: 1; transform: translateY(-50%) scale(1); }
.wprev__item video, .wprev__item img, .wprev__item .mock { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
@media (max-width: 860px) {
  .wrow { grid-template-columns: 30px minmax(0, 1fr) 64px; grid-template-areas: "n title thumb" "n tag thumb"; gap: 4px 14px; }
  .wrow__n { grid-area: n; align-self: start; padding-top: 6px; }
  .wrow__title { grid-area: title; }
  .wrow__tag { grid-area: tag; font-size: .82rem; }
  .wrow__meta, .wrow__go { display: none; }
  .wrow__thumb { grid-area: thumb; display: block; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--bg-3); position: relative; }
  .wrow__thumb img { width: 100%; height: 100%; object-fit: cover; }
  .wrow__thumb .mock { position: absolute; inset: 0; padding: 6px; font-size: .4rem; gap: 3px; }
  .wprev { display: none; }
}

/* mock UIs for product rows */
.mock { display: grid; padding: 22px; gap: 10px; align-content: start; font-family: var(--f-mono); font-size: .72rem; color: #cfd8ff; background: radial-gradient(120% 90% at 100% 0%, rgba(47, 107, 255, .35), transparent 60%), #0b1022; overflow: hidden; }
.mock__row { display: grid; grid-template-columns: 1.4fr 1fr .5fr; gap: 10px; padding: 8px 10px; border-radius: 8px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .06); white-space: nowrap; overflow: hidden; }
.mock__row span { overflow: hidden; text-overflow: ellipsis; }
.mock__row .ok { color: #5ee0a0; text-align: right; }
.mock__row .wait { color: #f5c96b; text-align: right; }
.mock__head { color: #7f8bb5; text-transform: uppercase; letter-spacing: .06em; font-size: .62rem; }
.mock--chat { background: radial-gradient(120% 90% at 0% 0%, rgba(47, 107, 255, .3), transparent 60%), #0b1022; font-family: var(--f-body); font-size: .8rem; gap: 8px; }
.bubble { max-width: 78%; padding: 9px 12px; border-radius: 14px; line-height: 1.35; color: #e9edff; background: rgba(255, 255, 255, .07); }
.bubble--me { justify-self: end; background: var(--web); color: #fff; border-bottom-right-radius: 4px; }
.bubble--bot { border-bottom-left-radius: 4px; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); background: rgba(6, 5, 10, .84); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; pointer-events: none; transition: opacity .3s; }
.modal.is-open { opacity: 1; pointer-events: auto; }
.modal__box { position: relative; width: min(1180px, 100%); max-height: calc(100svh - 32px); overflow: auto; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); background: var(--bg-2); border: 1px solid var(--line); border-radius: 22px; transform: translateY(16px) scale(.98); transition: transform .45s var(--ease); }
.modal.is-open .modal__box { transform: none; }
.modal__media { background: #000; display: grid; place-items: center; min-height: 280px; }
.modal__media video, .modal__media img { width: 100%; max-height: calc(100svh - 32px); object-fit: contain; }
.modal__media.is-v video { max-width: 420px; }
.modal__text { padding: 32px; display: grid; gap: 18px; align-content: start; }
.modal__text h3 { font-size: var(--step-2); }
.modal__text dl { margin: 0; display: grid; gap: 14px; }
.modal__text dt { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.modal__text dd { margin: 4px 0 0; color: #ddd8e2; }
.modal__close { position: absolute; top: 12px; right: 12px; z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: rgba(10, 9, 16, .7); color: #fff; cursor: pointer; font-size: 1.3rem; line-height: 1; }
.modal__link { color: var(--video-hot); text-decoration: none; font-weight: 600; }
.modal__link:hover { text-decoration: underline; }
@media (max-width: 860px) { .modal__box { grid-template-columns: 1fr; } .modal__text { padding: 22px; } }

/* build (pinned) */
.build { position: relative; height: 420vh; border-top: 1px solid var(--line); }
.build__sticky { position: sticky; top: 0; height: 100svh; display: grid; align-items: center; overflow: hidden; }
.build__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: center; }
.build__copy h2 { font-size: var(--step-3); }
.build__steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 4px; counter-reset: s; }
.build__steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 4px 12px; padding: 11px 0; border-top: 1px solid var(--line); color: var(--dim); transition: color .35s; }
.build__steps li::before { content: "0" counter(s); font-family: var(--f-mono); font-size: .75rem; padding-top: 4px; }
.build__steps li b { font-family: var(--f-display); font-weight: 500; font-size: 1.1rem; }
.build__steps li p { grid-column: 2; font-size: .92rem; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .5s var(--ease), opacity .4s; }
.build__steps li.is-on { color: var(--text); }
.build__steps li.is-on::before { color: var(--video-hot); }
.build__steps li.is-on p { max-height: 80px; opacity: 1; color: var(--muted); }
.frame { position: relative; justify-self: center; width: min(100%, 380px); aspect-ratio: 9 / 16; max-height: 76svh; border-radius: 26px; overflow: hidden; background: #000; box-shadow: 0 40px 120px rgba(232, 28, 90, .16), 0 0 0 1px var(--line); }
.frame__layer { position: absolute; inset: 0; clip-path: inset(100% 0 0 0); }
.frame__layer img, .frame__layer video { width: 100%; height: 100%; object-fit: cover; }
.frame__layer--idea { clip-path: none; display: grid; place-items: center; padding: 28px; background: radial-gradient(90% 60% at 50% 30%, rgba(232, 28, 90, .25), transparent), #0d0b12; }
.prompt { font-family: var(--f-mono); font-size: .9rem; line-height: 1.6; color: #e9e3ee; border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: rgba(255, 255, 255, .04); }
.prompt span { color: var(--video-hot); }
.frame__scan { position: absolute; left: 0; right: 0; height: 2px; background: var(--video-hot); box-shadow: 0 0 18px 4px rgba(255, 77, 126, .6); z-index: 5; top: 100%; opacity: 0; }
.frame__tc { position: absolute; z-index: 6; left: 12px; right: 12px; top: 12px; display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .06em; color: rgba(255, 255, 255, .8); text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
@media (max-width: 860px) {
  .build { height: 380vh; }
  .build__grid { grid-template-columns: 1fr; gap: 18px; }
  .build__copy .lead { display: none; }
  .build__steps { margin-top: 12px; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .build__steps li { grid-template-columns: 1fr; padding: 10px 0 0; }
  .build__steps li b { font-size: .78rem; }
  .build__steps li p { display: none; }
  .frame { width: min(62vw, 300px); max-height: 56svh; }
}

/* process */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.steps li { position: relative; padding: 24px 20px 26px; border-radius: 18px; background: var(--bg-2); border: 1px solid var(--line); display: grid; gap: 12px; align-content: start; min-width: 0; }
.steps .n { font-family: var(--f-mono); font-size: .75rem; color: var(--dim); }
.steps h3 { font-size: 1.12rem; }
.steps p { color: var(--muted); font-size: .94rem; }
.steps li.is-key { border-color: rgba(232, 28, 90, .55); background: linear-gradient(180deg, rgba(232, 28, 90, .14), var(--bg-2) 70%); }
.steps li.is-key .badge { justify-self: start; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--video); padding: 4px 9px; border-radius: 999px; }
@media (max-width: 1060px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .steps li.is-key { grid-column: span 2; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .steps li.is-key { grid-column: auto; } }

/* geography */
.geo__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.geo h2 { font-size: var(--step-3); }
.geo__list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; }
.geo__list li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.geo__list li b { font-family: var(--f-display); font-weight: 500; font-size: .95rem; }
.geo__list li span { color: var(--muted); font-size: .94rem; }
.globe { position: relative; aspect-ratio: 1; width: 100%; max-width: 620px; justify-self: center; cursor: grab; touch-action: pan-y; }
.globe:active { cursor: grabbing; }
.globe canvas { width: 100%; height: 100%; }
@media (max-width: 860px) { .geo__grid { grid-template-columns: 1fr; } .geo__list li { grid-template-columns: 96px 1fr; } }

/* letters */
.letters { overflow: hidden; }
.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 40px; }
.quote { margin: 0; padding: clamp(24px, 3vw, 40px); border-radius: 22px; background: var(--bg-2); border: 1px solid var(--line); display: grid; gap: 24px; align-content: space-between; }
.quote blockquote { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(1.1rem, .95rem + .7vw, 1.5rem); line-height: 1.35; letter-spacing: -.015em; text-wrap: pretty; }
.quote blockquote::before { content: "«"; color: var(--video); }
.quote blockquote::after { content: "»"; color: var(--video); }
.quote figcaption { display: grid; gap: 2px; font-size: .92rem; }
.quote figcaption span { color: var(--muted); }
@media (max-width: 860px) { .quotes { grid-template-columns: 1fr; } }
.lrow { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.lcard { flex: 0 0 auto; width: 200px; scroll-snap-align: start; border: 0; padding: 0; background: transparent; text-align: left; cursor: zoom-in; display: grid; gap: 10px; }
.lcard__img { aspect-ratio: 1 / 1.414; border-radius: 10px; overflow: hidden; background: #fff; opacity: .88; transition: transform .45s var(--ease), opacity .3s; }
.lcard__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.lcard:hover .lcard__img { transform: translateY(-6px) rotate(-1deg); opacity: 1; }
.lcard b { font-size: .95rem; font-weight: 500; }
.lcard span { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .04em; color: var(--dim); text-transform: uppercase; }
.lightbox .modal__box { grid-template-columns: 1fr; width: min(860px, 100%); background: #e9e7ee; }
.lightbox__pages { display: grid; gap: 12px; padding: 12px; }
.lightbox__pages img { width: 100%; border-radius: 6px; }

/* faq */
.faq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 24px 64px; align-items: start; }
.faq h2 { font-size: var(--step-3); }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-weight: 600; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--f-mono); font-size: 1.3rem; color: var(--muted); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); color: var(--text); }
.faq details p { padding: 0 0 20px; color: var(--muted); max-width: 64ch; overflow: hidden; }
@media (max-width: 860px) { .faq__grid { grid-template-columns: 1fr; } }

/* contact */
.cbox { --c: var(--video); position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); padding: clamp(28px, 5vw, 64px); border-radius: 28px; background: var(--c); color: #fff; isolation: isolate; transition: background-color .5s var(--ease); }
.cbox[data-theme="web"] { --c: var(--web); }
.cbox::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 80% at 0% 100%, rgba(10, 9, 16, .5), transparent 70%), radial-gradient(50% 60% at 100% 0%, rgba(255, 255, 255, .22), transparent 70%); }
.btn--light { background: #fff; color: #0a0910; margin-top: 26px; }
.btn--light:hover { background: #f1eef4; }
.cbox .form .btn--primary { --b: var(--c); }
.cbox .form .btn--primary:hover { background: color-mix(in srgb, var(--c) 80%, #fff); }
.cbox .form input:focus, .cbox .form textarea:focus { border-color: var(--c); }
.cbox .label { color: rgba(255, 255, 255, .78); }
.cbox h2 { font-size: clamp(1.9rem, 1.2rem + 2.2vw, 3.1rem); }
.cbox .lead { color: rgba(255, 255, 255, .86); margin-top: 18px; }
.direct { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 10px; }
.direct li { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.direct a { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.05rem, .9rem + .7vw, 1.45rem); text-decoration: none; letter-spacing: -.01em; }
.direct a:hover { text-decoration: underline; text-underline-offset: 4px; }
.direct small { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; opacity: .72; min-width: 72px; }
.copy { border: 1px solid rgba(255, 255, 255, .4); background: transparent; color: #fff; border-radius: 999px; padding: 3px 10px; font-family: var(--f-mono); font-size: .66rem; cursor: pointer; }
.copy:hover { background: rgba(255, 255, 255, .15); }
.form { display: grid; gap: 14px; align-content: start; background: var(--bg); color: var(--text); border-radius: 20px; padding: clamp(20px, 3vw, 32px); }
.form label { display: grid; gap: 6px; font-size: .85rem; color: var(--muted); }
.form input, .form textarea { width: 100%; border: 1px solid var(--line-2); border-radius: 12px; padding: 13px 14px; background: var(--bg-2); color: var(--text); outline: none; transition: border-color .2s; }
.form input:focus, .form textarea:focus { border-color: var(--video-hot); }
.form textarea { min-height: 120px; resize: vertical; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; border: 0; margin: 0; padding: 0; }
.chips legend { font-size: .85rem; color: var(--muted); margin-bottom: 6px; padding: 0; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label { display: inline-flex; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text); cursor: pointer; font-size: .9rem; transition: background-color .2s, border-color .2s, color .2s; }
.chips input:checked + label { background: var(--text); border-color: var(--text); color: var(--bg); }
.chips input:focus-visible + label { outline: 2px solid var(--video-hot); outline-offset: 2px; }
.form .btn { justify-self: start; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn[disabled] { opacity: .6; cursor: progress; }
.form__note { font-size: .82rem; color: var(--dim); }
.form__status { font-size: .9rem; color: var(--text); background: rgba(94, 224, 160, .08); border: 1px solid rgba(94, 224, 160, .35); border-radius: 12px; padding: 12px 14px; }
@media (max-width: 860px) { .cbox { grid-template-columns: 1fr; border-radius: 22px; } }

/* footer */
.foot { color: var(--muted); padding-block: 56px calc(40px + env(safe-area-inset-bottom, 0px)); font-size: .9rem; border-top: 1px solid var(--line); }
.foot__grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot .brand { color: var(--text); }
.foot h4 { margin: 0 0 12px; font-family: var(--f-mono); font-weight: 500; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; color: var(--text); }
.foot a:hover { color: var(--video-hot); }
.foot__base { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .8rem; }
@media (max-width: 860px) { .foot__grid { grid-template-columns: 1fr 1fr; } .foot__grid > :first-child { grid-column: span 2; } }

/* reveal: scroll-driven where supported; everywhere else content is simply visible */
@keyframes rv { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@supports (animation-timeline: view()) {
  .rv { animation: rv linear both; animation-timeline: view(); animation-range: entry 0px entry 180px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .rv { animation: none !important; }
  .build { height: auto; }
  .build__sticky { position: static; height: auto; padding-block: 96px; }
}
