/* Vexous Labs — labs.vexous.com
   One stylesheet. Brand tokens first; everything else reads from them. */

@font-face {
  font-family: "Geist";
  src: url("fonts/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/geist-mono.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* Brand (from the logo) */
  --red: #e31e24;
  --red-bright: #ff3b3f;
  --red-deep: #a8121a;
  --ink: #0a0a0b;
  --white: #ffffff;

  /* Dark surfaces */
  --bg: #0a0a0b;
  --bg-2: #111113;
  --bg-3: #18181b;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f4f4f5;
  --text-2: #a1a1aa;
  --text-3: #85858e;

  /* Light surfaces */
  --paper: #f6f5f3;
  --paper-2: #ffffff;
  --paper-line: rgba(10, 10, 11, 0.09);
  --paper-text: #0a0a0b;
  --paper-text-2: #52525b;

  --ok: #22c55e;
  --warn: #f59e0b;

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 18px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

::selection {
  background: var(--red);
  color: var(--white);
}

:focus-visible {
  outline: 2px solid var(--red-bright);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--red);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
}
.skip:focus {
  top: 16px;
}

/* ---------- Shared type ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--red);
  transform: skewX(-30deg);
}

.h2 {
  font-size: clamp(36px, 5.4vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 650;
  text-wrap: balance;
}
.h2 em {
  font-style: normal;
  color: var(--red);
}

.lede {
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--text-2);
  max-width: 62ch;
  text-wrap: pretty;
}

.section {
  position: relative;
  padding: clamp(88px, 12vw, 160px) 0;
}

.section-head {
  display: grid;
  gap: 22px;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.section-head--split {
  grid-template-columns: 1fr;
  align-items: end;
}
@media (min-width: 900px) {
  .section-head--split {
    grid-template-columns: 1.15fr 1fr;
    gap: 48px;
  }
}

/* ---------- Buttons ---------- */

.btn {
  --btn-bg: var(--white);
  --btn-fg: var(--ink);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition:
    transform 0.35s var(--ease),
    background-color 0.25s,
    border-color 0.25s,
    box-shadow 0.35s var(--ease);
  will-change: transform;
}
.btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.35s var(--ease);
}
.btn:hover svg {
  transform: translateX(3px);
}
.btn--red {
  --btn-bg: var(--red);
  --btn-fg: var(--white);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 10px 40px -10px rgba(227, 30, 36, 0.7);
}
.btn--red:hover {
  --btn-bg: var(--red-bright);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 16px 50px -10px rgba(227, 30, 36, 0.9);
}
.btn--ghost {
  --btn-bg: rgba(255, 255, 255, 0.03);
  --btn-fg: var(--text);
  border-color: var(--line-2);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.35);
  --btn-bg: rgba(255, 255, 255, 0.07);
}
.btn--sm {
  min-height: 42px;
  padding: 0 18px;
  font-size: 15px;
}

/* ---------- Scroll progress ---------- */

.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 60;
  background: linear-gradient(90deg, var(--red-deep), var(--red), var(--red-bright));
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* ---------- Header ---------- */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition:
    background-color 0.4s,
    border-color 0.4s,
    transform 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--line);
}
.header.is-hidden {
  transform: translateY(-100%);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brand__mark {
  width: 40px;
  height: auto;
}
.brand__mark .k {
  fill: var(--white);
}
.brand__word {
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.32em;
  line-height: 1;
  white-space: nowrap;
}
.brand__word b {
  font-weight: 700;
}

.nav {
  display: none;
  gap: 4px;
}
.nav a {
  position: relative;
  padding: 10px 14px;
  font-size: 15px;
  color: var(--text-2);
  border-radius: 999px;
  transition:
    color 0.2s,
    background-color 0.2s;
}
.nav a:hover,
.nav a.is-active {
  color: var(--text);
}
.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--red);
}

.header__cta {
  display: none;
}

.menu-btn {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.03);
}
.menu-btn span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.35s var(--ease);
}
.menu-btn span + span {
  margin-top: 5px;
}
.menu-btn__lines {
  display: grid;
}
.menu-open .menu-btn span:first-child {
  transform: translateY(3.25px) rotate(45deg);
}
.menu-open .menu-btn span:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: 76px 0 0 0;
  z-index: 49;
  background: rgba(10, 10, 11, 0.97);
  backdrop-filter: blur(20px);
  padding: 32px var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition:
    opacity 0.3s,
    transform 0.4s var(--ease),
    visibility 0.3s;
}
.menu-open .mobile-nav {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.mobile-nav a:not(.btn) {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.03em;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.mobile-nav .btn {
  margin-top: 24px;
}
.menu-open {
  overflow: hidden;
}

@media (min-width: 980px) {
  .nav,
  .header__cta {
    display: flex;
  }
  .menu-btn,
  .mobile-nav {
    display: none;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 140px 0 96px;
  overflow: hidden;
  isolation: isolate;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero__glow {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(80px);
}
.hero__glow--a {
  width: 720px;
  height: 720px;
  right: -220px;
  top: -200px;
  background: radial-gradient(circle, rgba(227, 30, 36, 0.32), transparent 65%);
}
.hero__glow--b {
  width: 560px;
  height: 560px;
  left: -260px;
  bottom: -260px;
  background: radial-gradient(circle, rgba(227, 30, 36, 0.16), transparent 65%);
}

/* Diagonal slashes echoing the logo and the channel banner */
.hero__slash {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  height: 220%;
  top: -60%;
  transform: rotate(32deg);
  transform-origin: center;
}
.hero__slash--1 {
  right: 6%;
  width: 90px;
  background: linear-gradient(180deg, transparent, rgba(227, 30, 36, 0.22) 45%, transparent 75%);
}
.hero__slash--2 {
  right: 16%;
  width: 2px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.18) 50%, transparent);
}

.hero__grid {
  display: grid;
  gap: 64px;
  align-items: center;
}
@media (min-width: 1080px) {
  .hero__grid {
    grid-template-columns: 1.25fr 0.9fr;
    gap: 56px;
  }
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 8px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 28px;
}
.hero__badge b {
  color: var(--white);
  font-weight: 600;
  background: var(--red);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  font-family: var(--mono);
}

.hero__title {
  font-size: clamp(48px, 8.6vw, 116px);
  line-height: 0.94;
  letter-spacing: -0.055em;
  font-weight: 700;
  text-wrap: balance;
}
.hero__title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}
.hero__title .line > span {
  display: inline-block;
}
.hero__title .accent {
  color: var(--red);
  position: relative;
}
.hero__title .outline {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.55);
}

.hero__sub {
  margin-top: 30px;
  font-size: clamp(18px, 1.6vw, 21px);
  color: var(--text-2);
  max-width: 54ch;
  text-wrap: pretty;
}
.hero__sub strong {
  color: var(--text);
  font-weight: 500;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 36px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-3);
}
.hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero__meta span::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--red);
  transform: rotate(45deg);
}

/* Entrance animation (JS adds .is-ready on <html>) */
.js .hero [data-in] {
  opacity: 0;
  transform: translateY(24px);
}
.js .hero__title .line > span {
  transform: translateY(105%);
}
/* The intro paragraph is the largest element on phones: slide it in, but keep it visible from the
   first paint so it never delays Largest Contentful Paint. */
.js .hero .hero__sub[data-in] {
  opacity: 1;
}
.is-ready .hero [data-in] {
  opacity: 1;
  transform: none;
  transition:
    opacity 1s var(--ease),
    transform 1.1s var(--ease);
  transition-delay: calc(var(--d, 0) * 1ms);
}
.is-ready .hero__title .line > span {
  transform: none;
  transition: transform 1.1s var(--ease);
  transition-delay: calc(var(--d, 0) * 1ms);
}

/* ---------- Ship board (hero right) ---------- */

.board {
  position: relative;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(24, 24, 27, 0.88), rgba(14, 14, 16, 0.92));
  border: 1px solid var(--line-2);
  box-shadow:
    0 40px 120px -30px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
  transform-style: preserve-3d;
}
.board::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(227, 30, 36, 0.7), transparent 35%, transparent 70%, rgba(255, 255, 255, 0.2));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.board__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-3);
}
.board__dots {
  display: flex;
  gap: 6px;
  margin-right: 6px;
}
.board__dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2a2a2e;
}
.board__dots i:first-child {
  background: var(--red);
}
.board__live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ok);
}
.board__live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 currentColor;
  animation: ping 2s infinite;
}
@keyframes ping {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55);
  }
  80%,
  100% {
    box-shadow: 0 0 0 9px rgba(34, 197, 94, 0);
  }
}

.board__list {
  list-style: none;
  margin: 0;
  padding: 8px;
}
.board__row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px 12px;
  border-radius: 12px;
  transition: background-color 0.25s;
}
.board__row:hover {
  background: rgba(255, 255, 255, 0.04);
}
.board__icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: cover;
  background: var(--bg-3);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  border: 1px solid var(--line);
}
.board__name {
  font-weight: 600;
  font-size: 15px;
  line-height: 1.25;
}
.board__host {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-3);
  font-weight: 400;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--ok);
  background: rgba(34, 197, 94, 0.09);
  border: 1px solid rgba(34, 197, 94, 0.2);
}
.status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.status--build {
  color: var(--warn);
  background: rgba(245, 158, 11, 0.09);
  border-color: rgba(245, 158, 11, 0.22);
}
.status--build::before {
  animation: blink 1.2s steps(2) infinite;
}
@keyframes blink {
  50% {
    opacity: 0.2;
  }
}

.board__term {
  border-top: 1px solid var(--line);
  padding: 16px 20px 18px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--text-3);
  min-height: 110px;
}
.board__term .p {
  color: var(--red);
}
.board__term .ok {
  color: var(--ok);
}
.board__term .w {
  color: var(--text);
}
.caret {
  display: inline-block;
  width: 8px;
  height: 15px;
  vertical-align: -3px;
  background: var(--red);
  animation: blink 1s steps(2) infinite;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
}
.scroll-cue::after {
  content: "";
  width: 1px;
  height: 44px;
  background: linear-gradient(var(--red), transparent);
  animation: cue 2.2s var(--ease) infinite;
  transform-origin: top;
}
@keyframes cue {
  0% {
    transform: scaleY(0);
  }
  50% {
    transform: scaleY(1);
    transform-origin: top;
  }
  51% {
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}
@media (min-width: 1080px) and (min-height: 820px) {
  .scroll-cue {
    display: flex;
  }
}

/* ---------- Marquee ---------- */

.marquee {
  position: relative;
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  padding: 22px 0;
  -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 48s linear infinite;
}
.marquee:hover .marquee__track {
  animation-play-state: paused;
}
.marquee__group {
  display: flex;
  align-items: center;
  gap: 44px;
  padding-right: 44px;
}
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 44px;
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 600;
  letter-spacing: -0.03em;
  white-space: nowrap;
  color: var(--text);
}
.marquee__item::after {
  content: "";
  width: 14px;
  height: 22px;
  background: var(--red);
  clip-path: polygon(60% 0, 100% 0, 40% 100%, 0 100%);
}
.marquee__item:nth-child(even) {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.5);
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Numbers ---------- */

.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
@media (min-width: 900px) {
  .facts {
    grid-template-columns: repeat(4, 1fr);
  }
}
.fact {
  position: relative;
  padding: clamp(24px, 3vw, 40px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.fact__num {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: clamp(56px, 7vw, 96px);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.fact__num sup {
  font-size: 0.4em;
  color: var(--red);
  letter-spacing: 0;
  top: 0;
  align-self: flex-start;
  margin-top: 0.15em;
}
.fact__label {
  margin-top: 14px;
  color: var(--text-2);
  font-size: 15px;
  max-width: 22ch;
}
.fact::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 90px;
  height: 90px;
  background: radial-gradient(circle, rgba(227, 30, 36, 0.25), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
}
.fact:hover::after {
  opacity: 1;
}

/* ---------- Work ---------- */

.work {
  display: grid;
  gap: clamp(72px, 9vw, 140px);
}

.case {
  display: grid;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
@media (min-width: 980px) {
  .case {
    grid-template-columns: 1.15fr 1fr;
  }
  .case--flip .case__media {
    order: 2;
  }
}

.case__media {
  position: relative;
  perspective: 1400px;
}
.frame {
  position: relative;
  border-radius: 16px;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  overflow: hidden;
  box-shadow:
    0 50px 100px -40px rgba(0, 0, 0, 0.9),
    0 30px 60px -30px var(--glow, rgba(227, 30, 36, 0.35));
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.6s var(--ease);
  will-change: transform;
}
.frame__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 38px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: #121214;
}
.frame__bar .board__dots i {
  width: 9px;
  height: 9px;
}
.frame__url {
  flex: 1;
  max-width: 340px;
  margin: 0 auto;
  height: 24px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  overflow: hidden;
  white-space: nowrap;
}
.frame__url svg {
  width: 11px;
  height: 11px;
  opacity: 0.7;
}
.frame img {
  width: 100%;
  aspect-ratio: 1200 / 633;
  object-fit: cover;
  object-position: top;
}
.frame__shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.1), transparent 40%);
  opacity: 0;
  transition: opacity 0.4s;
}
.case__media:hover .frame__shine {
  opacity: 1;
}

/* A second, smaller floating card (app icon or detail) */
.case__float {
  position: absolute;
  right: -14px;
  bottom: -26px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 12px;
  border-radius: 14px;
  background: rgba(20, 20, 22, 0.9);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.9);
  font-size: 13.5px;
  line-height: 1.3;
  animation: bob 6s ease-in-out infinite;
}
.case--flip .case__float {
  right: auto;
  left: -14px;
}
.case__float img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}
.case__float b {
  display: block;
  font-size: 14.5px;
}
.case__float span {
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 11.5px;
}
@keyframes bob {
  50% {
    transform: translateY(-8px);
  }
}
@media (max-width: 600px) {
  .case__float {
    right: 10px;
    bottom: -22px;
  }
  .case--flip .case__float {
    left: 10px;
  }
}

.case__tag {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.case__tag .n {
  color: var(--red);
}
.case__title {
  margin-top: 16px;
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 700;
}
.case__pitch {
  margin-top: 10px;
  font-size: clamp(18px, 1.6vw, 21px);
  color: var(--text);
  font-weight: 500;
  letter-spacing: -0.015em;
}
.case__body {
  margin-top: 16px;
  color: var(--text-2);
}
.case__points {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 10px;
}
.case__points li {
  position: relative;
  padding-left: 26px;
  font-size: 15.5px;
  color: var(--text-2);
}
.case__points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 12px;
  height: 2px;
  background: var(--red);
  transform: skewX(-30deg);
}
.case__points li b {
  color: var(--text);
  font-weight: 600;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.chip {
  font-family: var(--mono);
  font-size: 12px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.02);
  white-space: nowrap;
}

.case__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 4px;
  transition:
    border-color 0.25s,
    gap 0.3s var(--ease);
}
.link-arrow:hover {
  border-color: var(--red);
  gap: 12px;
}
.link-arrow svg {
  width: 16px;
  height: 16px;
}

/* ---------- Shopify apps strip ---------- */

.apps {
  display: grid;
  gap: 16px;
  margin-top: clamp(60px, 7vw, 96px);
}
@media (min-width: 860px) {
  .apps {
    grid-template-columns: repeat(3, 1fr);
  }
}
.app {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  transition:
    border-color 0.3s,
    transform 0.5s var(--ease);
}
.app:hover {
  border-color: var(--line-2);
  transform: translateY(-4px);
}
.app__top {
  display: flex;
  align-items: center;
  gap: 14px;
}
.app__top img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}
.app__top b {
  display: block;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.app__top span {
  font-size: 13.5px;
  color: var(--text-3);
}
.app p {
  color: var(--text-2);
  font-size: 15.5px;
}
.app__price {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-3);
}
.app__price a {
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.app__price a:hover {
  color: var(--red-bright);
}

/* ---------- Light section (services) ---------- */

.light {
  background: var(--paper);
  color: var(--paper-text);
  color-scheme: light;
}
.light .eyebrow {
  color: var(--paper-text-2);
}
.light .lede {
  color: var(--paper-text-2);
}

.services {
  display: grid;
  gap: 1px;
  background: var(--paper-line);
  border: 1px solid var(--paper-line);
  border-radius: 24px;
  overflow: hidden;
}
@media (min-width: 720px) {
  .services {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1080px) {
  .services {
    grid-template-columns: repeat(3, 1fr);
  }
}
.service {
  position: relative;
  padding: clamp(28px, 3vw, 40px);
  background: var(--paper-2);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 320px;
  overflow: hidden;
  isolation: isolate;
}
.service::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(227, 30, 36, 0.09), transparent 45%);
  opacity: 0;
  transition: opacity 0.35s;
}
.service:hover::before {
  opacity: 1;
}
.service__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--white);
  transition: background-color 0.3s, transform 0.5s var(--ease);
}
.service:hover .service__icon {
  background: var(--red);
  transform: rotate(-8deg) scale(1.05);
}
.service__icon svg {
  width: 24px;
  height: 24px;
}
.service__n {
  position: absolute;
  top: clamp(28px, 3vw, 40px);
  right: clamp(28px, 3vw, 40px);
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--paper-text-2);
}
.service h3 {
  margin-top: 10px;
  font-size: 24px;
  letter-spacing: -0.03em;
  line-height: 1.15;
  font-weight: 650;
}
.service p {
  color: var(--paper-text-2);
  font-size: 15.5px;
}
.service ul {
  list-style: none;
  padding: 0;
  margin: auto 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 10px;
}
.service li {
  font-family: var(--mono);
  font-size: 11.5px;
  padding: 5px 9px;
  border-radius: 6px;
  background: var(--paper);
  color: var(--paper-text-2);
}
.service--feature {
  background: var(--ink);
  color: var(--white);
}
.service--feature p {
  color: var(--text-2);
}
.service--feature .service__n {
  color: var(--text-3);
}
.service--feature .service__icon {
  background: var(--red);
}
.service--feature li {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-2);
}
.service--feature::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -60px;
  width: 160px;
  height: 260px;
  background: linear-gradient(180deg, var(--red), transparent);
  opacity: 0.25;
  transform: rotate(32deg);
  z-index: -1;
}

/* ---------- Standard (how we build) ---------- */

.standard {
  display: grid;
  gap: 16px;
}
@media (min-width: 900px) {
  .standard {
    grid-template-columns: repeat(12, 1fr);
  }
  .rule:nth-child(1) {
    grid-column: span 7;
  }
  .rule:nth-child(2) {
    grid-column: span 5;
  }
  .rule:nth-child(3),
  .rule:nth-child(4),
  .rule:nth-child(5) {
    grid-column: span 4;
  }
  .rule:nth-child(6) {
    grid-column: span 5;
  }
  .rule:nth-child(7) {
    grid-column: span 7;
  }
}
.rule {
  position: relative;
  padding: clamp(26px, 3vw, 36px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  overflow: hidden;
  isolation: isolate;
}
.rule::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(227, 30, 36, 0.12), transparent 45%);
  opacity: 0;
  transition: opacity 0.35s;
}
.rule:hover::before {
  opacity: 1;
}
.rule__k {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
}
.rule h3 {
  margin-top: 14px;
  font-size: clamp(22px, 2.2vw, 28px);
  letter-spacing: -0.03em;
  line-height: 1.12;
  font-weight: 650;
  text-wrap: balance;
}
.rule p {
  margin-top: 12px;
  color: var(--text-2);
  font-size: 15.5px;
  max-width: 54ch;
}
.rule code {
  font-family: var(--mono);
  font-size: 0.88em;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

/* Budget meters inside the first rule */
.meters {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}
.meter__top {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-2);
}
.meter__top b {
  color: var(--text);
  font-weight: 500;
}
.meter__bar {
  margin-top: 7px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.meter__bar i {
  display: block;
  height: 100%;
  width: var(--v);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red-deep), var(--red-bright));
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.6s var(--ease) 0.2s;
}
.is-in .meter__bar i {
  transform: scaleX(1);
}

/* Pipeline inside the last rule */
.pipeline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 12.5px;
}
.pipeline span {
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-2);
}
.pipeline span.on {
  border-color: rgba(227, 30, 36, 0.5);
  color: var(--text);
  background: rgba(227, 30, 36, 0.1);
}
.pipeline i {
  width: 18px;
  height: 1px;
  background: var(--line-2);
}

/* ---------- Stack ---------- */

.stack {
  display: grid;
  gap: 16px;
}
@media (min-width: 760px) {
  .stack {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1100px) {
  .stack {
    grid-template-columns: repeat(3, 1fr);
  }
}
.stack__group {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.stack__group h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.stack__group h3 span {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--text-3);
}
.stack__group ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.stack__group li {
  padding: 8px 13px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  font-size: 14.5px;
  color: var(--text);
  transition:
    border-color 0.25s,
    background-color 0.25s,
    transform 0.35s var(--ease);
}
.stack__group li:hover {
  border-color: rgba(227, 30, 36, 0.55);
  background: rgba(227, 30, 36, 0.08);
  transform: translateY(-2px);
}

/* ---------- Lab (in progress) ---------- */

.lab {
  position: relative;
  border-radius: 28px;
  border: 1px solid var(--line-2);
  background:
    radial-gradient(800px 400px at 100% 0%, rgba(227, 30, 36, 0.18), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
  overflow: hidden;
  padding: clamp(28px, 5vw, 64px);
  display: grid;
  gap: 40px;
}
@media (min-width: 980px) {
  .lab {
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: 64px;
  }
}
.lab__grid-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask: radial-gradient(ellipse at 70% 30%, #000, transparent 70%);
  mask: radial-gradient(ellipse at 70% 30%, #000, transparent 70%);
  pointer-events: none;
}
.lab > :not(.lab__grid-bg) {
  position: relative;
}
.lab h3 {
  margin-top: 18px;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  font-weight: 700;
  text-wrap: balance;
}
.lab p {
  margin-top: 16px;
  color: var(--text-2);
}

.phone {
  position: relative;
  width: min(300px, 80%);
  margin: 0 auto;
  aspect-ratio: 9 / 18.5;
  border-radius: 40px;
  padding: 10px;
  background: linear-gradient(160deg, #2a2a2e, #0c0c0e);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 50px 100px -30px rgba(0, 0, 0, 0.9),
    0 30px 80px -40px rgba(227, 30, 36, 0.6);
}
.phone__screen {
  position: relative;
  height: 100%;
  border-radius: 31px;
  background: #fdf8f6;
  color: #1a1a1a;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-size: 12px;
}
.phone__notch {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 84px;
  height: 22px;
  margin-left: -42px;
  border-radius: 999px;
  background: #0c0c0e;
  z-index: 2;
}
.phone__top {
  padding: 42px 16px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: -0.01em;
  border-bottom: 1px solid #e8e1de;
}
.phone__langs {
  display: flex;
  gap: 4px;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
}
.phone__langs span {
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #e8e1de;
}
.phone__langs span:first-child {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
}
.phone__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.phone__pill {
  align-self: flex-start;
  font-size: 9.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(200, 16, 46, 0.1);
  color: #c8102e;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.phone__pill::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  animation: blink 1.2s steps(2) infinite;
}
.phone__h {
  font-size: 20px;
  line-height: 1.1;
  font-weight: 750;
  letter-spacing: -0.03em;
}
.phone__p {
  color: #5c5c5c;
  font-size: 11px;
  line-height: 1.45;
}
.phone__call {
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  background: #c8102e;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 10px 24px -10px rgba(200, 16, 46, 0.8);
}
.phone__call i {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  animation: ring 1.6s ease-in-out infinite;
}
.phone__call svg {
  width: 15px;
  height: 15px;
}
.phone__call small {
  display: block;
  font-weight: 500;
  font-size: 9.5px;
  opacity: 0.85;
}
@keyframes ring {
  0%,
  60%,
  100% {
    transform: rotate(0);
  }
  10%,
  30% {
    transform: rotate(-14deg);
  }
  20%,
  40% {
    transform: rotate(14deg);
  }
}
.phone__tiles {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  margin-top: 2px;
}
.phone__tiles span {
  padding: 10px 6px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e8e1de;
  font-size: 9.5px;
  font-weight: 600;
  text-align: center;
  line-height: 1.25;
}
.phone__tiles span b {
  display: block;
  width: 18px;
  height: 18px;
  margin: 0 auto 5px;
  border-radius: 6px;
  background: #c8102e;
  opacity: 0.85;
}
.phone__tiles span:nth-child(2) b {
  background: #1a56db;
}
.phone__tiles span:nth-child(3) b {
  background: #16a34a;
}
.phone__bottom {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 10px 12px 18px;
  border-top: 1px solid #e8e1de;
  background: #fff;
}
.phone__bottom span {
  text-align: center;
  padding: 9px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 11px;
  background: #c8102e;
  color: #fff;
}
.phone__bottom span + span {
  background: #1a56db;
}

.lab__specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 28px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
}
.lab__specs div {
  padding: 16px 18px;
  background: rgba(14, 14, 16, 0.92);
}
.lab__specs b {
  display: block;
  font-size: 22px;
  letter-spacing: -0.03em;
}
.lab__specs span {
  font-size: 13.5px;
  color: var(--text-3);
}

/* ---------- Process ---------- */

.process {
  position: relative;
  display: grid;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
}
.process::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--line-2);
}
.process__fill {
  position: absolute;
  left: 23px;
  top: 8px;
  width: 1px;
  height: calc(100% - 16px);
  background: linear-gradient(var(--red), var(--red-bright));
  transform-origin: top;
  transform: scaleY(var(--p, 0));
}
.step {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 24px;
  padding: 0 0 clamp(40px, 5vw, 64px);
}
.step:last-child {
  padding-bottom: 0;
}
.step__dot {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 13px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  color: var(--text-2);
  transition:
    background-color 0.4s,
    border-color 0.4s,
    color 0.4s;
}
.step.is-on .step__dot {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}
.step__body {
  display: grid;
  gap: 10px;
  padding-top: 8px;
}
@media (min-width: 860px) {
  .step__body {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 40px;
  }
}
.step h3 {
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.04em;
  line-height: 1.05;
  font-weight: 650;
}
.step p {
  color: var(--text-2);
}
.step p small {
  display: block;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-3);
}

/* ---------- YouTube ---------- */

.tube {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 980px) {
  .tube {
    grid-template-columns: 1fr 1.1fr;
    gap: 72px;
  }
}
.tube__screen {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  background:
    linear-gradient(118deg, transparent 0 80%, rgba(227, 30, 36, 0.92) 80% 87%, transparent 87% 90%, rgba(10, 10, 11, 0.9) 90% 92%, transparent 92%),
    linear-gradient(118deg, rgba(227, 30, 36, 0.92) 0 7%, transparent 7% 10%, rgba(10, 10, 11, 0.9) 10% 13%, transparent 13%),
    #f4f4f5;
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.9);
  padding-bottom: 64px;
  transition: transform 0.6s var(--ease);
}
.tube__screen:hover {
  transform: scale(1.015);
}
.tube__brand {
  display: grid;
  justify-items: center;
  gap: 10px;
  color: var(--ink);
  text-align: center;
}
.tube__brand svg {
  width: clamp(80px, 12vw, 130px);
}
.tube__brand b {
  font-weight: 400;
  letter-spacing: 0.3em;
  font-size: clamp(12px, 1.4vw, 16px);
  color: #3f3f46;
}
.tube__brand span {
  font-size: clamp(16px, 2vw, 24px);
  letter-spacing: -0.01em;
}
.tube__play {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 10px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
  font-size: 14px;
}
.tube__play i {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--red);
  display: grid;
  place-items: center;
}
.tube__play svg {
  width: 14px;
  height: 14px;
  margin-left: 2px;
}
.tube__topics {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: grid;
  gap: 1px;
  border-top: 1px solid var(--line);
}
.tube__topics li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
}
.tube__topics li span {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--red);
}

/* ---------- Contact ---------- */

.contact {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.contact__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 500px at 50% 110%, rgba(227, 30, 36, 0.35), transparent 60%),
    var(--bg);
}
.contact__title {
  font-size: clamp(52px, 10vw, 150px);
  line-height: 0.92;
  letter-spacing: -0.06em;
  font-weight: 750;
  text-align: center;
  text-wrap: balance;
}
.contact__title em {
  font-style: normal;
  color: var(--red);
}
.contact__sub {
  margin: 28px auto 0;
  text-align: center;
}
.contact__addr {
  margin-top: 14px;
  text-align: center;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-3);
}
.footer__addr {
  font-style: normal;
  line-height: 1.5;
}

.brief {
  max-width: 820px;
  margin: clamp(48px, 6vw, 72px) auto 0;
  padding: clamp(22px, 3vw, 36px);
  border-radius: 24px;
  border: 1px solid var(--line-2);
  background: rgba(17, 17, 19, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.brief fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}
.brief legend,
.brief label {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 12px;
}
.picks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pick input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.pick span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: 15px;
  color: var(--text-2);
  cursor: pointer;
  user-select: none;
  transition:
    border-color 0.2s,
    background-color 0.2s,
    color 0.2s;
}
.pick span:hover {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--text);
}
.pick input:checked + span {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}
.pick input:focus-visible + span {
  outline: 2px solid var(--red-bright);
  outline-offset: 3px;
}
.brief__row {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}
@media (min-width: 680px) {
  .brief__row {
    grid-template-columns: 1fr 1fr;
  }
}
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 14px 16px;
  transition:
    border-color 0.2s,
    background-color 0.2s;
}
.field textarea {
  min-height: 120px;
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-3);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--red);
  background: rgba(255, 255, 255, 0.05);
}
.brief__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 26px;
}
.brief__foot p {
  font-size: 14px;
  color: var(--text-3);
}
.brief__foot a {
  color: var(--text);
  border-bottom: 1px solid var(--line-2);
}
.brief__foot a:hover {
  border-color: var(--red);
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 36px;
  background: var(--bg);
}
.footer__top {
  display: grid;
  gap: 40px;
}
@media (min-width: 900px) {
  .footer__top {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}
.footer__tag {
  margin-top: 18px;
  color: var(--text-3);
  max-width: 34ch;
  font-size: 15px;
}
.footer__h {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 16px;
}
.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.footer ul a {
  color: var(--text-2);
  font-size: 15px;
  transition: color 0.2s;
}
.footer ul a:hover {
  color: var(--text);
}
.footer__big {
  margin-top: 64px;
  font-size: clamp(56px, 15vw, 220px);
  font-weight: 750;
  letter-spacing: -0.07em;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.12);
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-3);
}

/* ---------- Reveal on scroll ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 1s var(--ease),
    transform 1.1s var(--ease);
  transition-delay: calc(var(--d, 0) * 1ms);
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

.footer__bottom a {
  color: var(--text-2);
  border-bottom: 1px solid var(--line-2);
}
.footer__bottom a:hover {
  color: var(--text);
}

/* ---------- Cookie choice banner (analytics.js) ---------- */

.consent {
  position: fixed;
  z-index: 70;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(17, 17, 19, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line-2);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.9);
  font-size: 14.5px;
  color: var(--text-2);
}
.consent[hidden] {
  display: none;
}
.consent p {
  flex: 1 1 260px;
  margin: 0;
}
.consent p a {
  color: var(--text);
  border-bottom: 1px solid var(--red);
}
.consent__actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

/* ---------- Text pages (privacy) ---------- */

.page {
  padding: 140px 0 100px;
}
.prose {
  max-width: 720px;
}
.prose h1 {
  margin-top: 18px;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1;
  letter-spacing: -0.045em;
}
.prose .updated {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-3);
}
.prose h2 {
  margin-top: 48px;
  font-size: 26px;
  letter-spacing: -0.03em;
  scroll-margin-top: 100px;
}
.prose p,
.prose ul {
  margin-top: 16px;
  color: var(--text-2);
}
.prose ul {
  padding-left: 20px;
}
.prose li + li {
  margin-top: 8px;
}
.prose a:not(.btn) {
  color: var(--text);
  border-bottom: 1px solid var(--red);
}
.prose code {
  font-family: var(--mono);
  font-size: 0.88em;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

/* ---------- 404 ---------- */

.lost {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 120px var(--gutter) 80px;
}
.lost__code {
  font-size: clamp(120px, 26vw, 300px);
  font-weight: 750;
  letter-spacing: -0.08em;
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.3);
}
.lost__code span {
  color: var(--red);
  -webkit-text-stroke: 0;
}
.lost h1 {
  margin-top: 24px;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.04em;
}
.lost p {
  margin: 14px auto 32px;
  color: var(--text-2);
  max-width: 44ch;
}

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
  }
  .marquee__track {
    animation: none;
  }
}
