/* ==========================================================================
   Neon theme ("The way I want it")
   Standalone: these pages do not load the classic stylesheet.
   ========================================================================== */

:root {
  --bg: #06050a;
  --ink: #e8dfe9;
  --ink-hi: #f3eaf2;
  --ink-2: #bfb0c4;
  --ink-3: #9c8aa6;
  --crimson: #d43864;
  --hot: #f8305c;
  --hot-2: #ff5c8e;
  --edge: #b8284f;
  --edge-dim: #842c4c;
  --lav-1: #f6d6ec;
  --lav-2: #e8a8d8;
  --lav-3: #b98ab4;

  /* Display texture: worn specks + plate seams over the lavender fill (clipped to the letters). */
  --tx-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .06 0 0 0 0 .2 9 0 0 0 -6'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --tx-seams:
    repeating-linear-gradient(0deg, transparent 0 41px, rgba(58, 20, 56, 0.75) 41px 42px, transparent 42px 67px, rgba(58, 20, 56, 0.45) 67px 68px),
    repeating-linear-gradient(90deg, transparent 0 89px, rgba(58, 20, 56, 0.7) 89px 90px, transparent 90px 151px, rgba(58, 20, 56, 0.4) 151px 152px);
  --tx-fill: linear-gradient(180deg, var(--lav-1) 0%, var(--lav-2) 55%, var(--lav-3) 100%);
  --tx-shadow: drop-shadow(0 0.04em 0.14em rgba(20, 6, 20, 0.42));

  --font-display: "Saira Stencil One", Impact, "Arial Narrow Bold", sans-serif;
  --font-tech: "Michroma", "Eurostile", "Segoe UI", sans-serif;
  --font-body: "Exo 2", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);

  --rail: 56px;
  /* One design pixel of the 1280x880 hero stage, scaled so the whole hero fits the screen. */
  --k: clamp(0.8px, min(100vw / 1280, 100vh / 880), 1.5px);
  --pad-l: clamp(20px, 3.1vw, 40px);
  --pad-r: clamp(20px, 5.6vw, 72px);
}

@supports (height: 100svh) {
  :root { --k: clamp(0.8px, min(100vw / 1280, 100svh / 880), 1.5px); }
}

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

html {
  background: var(--bg);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
::selection { background: var(--hot); color: #fff; }
:focus-visible { outline: 2px solid var(--hot-2); outline-offset: 4px; }

.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: fixed; left: 12px; top: -60px; z-index: 400;
  padding: 10px 16px; border-radius: 6px; background: var(--hot); color: #fff;
  font-family: var(--font-tech); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
}
.skip:focus { top: 12px; }

/* ------------------------------------------------------------ Backdrop ---- */

.fx { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

.fx__base {
  position: absolute; inset: 0;
  background:
    radial-gradient(45% 40% at 50% 38%, rgba(212, 56, 100, 0.28) 0%, rgba(212, 56, 100, 0) 70%),
    radial-gradient(60% 50% at 50% 100%, rgba(120, 40, 140, 0.16) 0%, rgba(6, 5, 10, 0) 70%);
}
[data-fog="top"] .fx__base {
  background:
    radial-gradient(45% 40% at 50% 12%, rgba(212, 56, 100, 0.22) 0%, rgba(212, 56, 100, 0) 70%),
    radial-gradient(60% 50% at 50% 100%, rgba(120, 40, 140, 0.16) 0%, rgba(6, 5, 10, 0) 70%);
}

.fx__fog, .fx__embers { position: absolute; inset: 0; width: 100%; height: 100%; }
.fx__fog { opacity: 0; transition: opacity 1.8s ease; }
.fx__fog.is-on { opacity: 1; }

.fx__grid {
  position: absolute; inset: -96px 0;
  background:
    repeating-linear-gradient(0deg, rgba(212, 56, 100, 0.05) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, rgba(212, 56, 100, 0.05) 0 1px, transparent 1px 48px);
  opacity: 0.5;
  translate: 0 var(--grid-y, 0px);
}
/* Brighter copy of the grid, visible only in a pool of light around the pointer. */
.fx__grid--hot {
  opacity: 1;
  background:
    repeating-linear-gradient(0deg, rgba(248, 48, 92, 0.28) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, rgba(248, 48, 92, 0.28) 0 1px, transparent 1px 48px);
  -webkit-mask-image: radial-gradient(260px circle at var(--cx, -999px) var(--cy, -999px), #000 0%, transparent 72%);
  mask-image: radial-gradient(260px circle at var(--cx, -999px) var(--cy, -999px), #000 0%, transparent 72%);
}

.fx__noise {
  position: absolute; inset: -120px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.06;
  animation: grain 0.9s steps(5) infinite;
}
@keyframes grain {
  0% { translate: 0 0; } 20% { translate: -40px 30px; } 40% { translate: 30px -50px; }
  60% { translate: -60px -20px; } 80% { translate: 50px 40px; } 100% { translate: 0 0; }
}

.fx__scan {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.22) 0 1px, transparent 1px 3px);
  opacity: 0.22;
}

.fx__vignette {
  position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
}

/* ---------------------------------------------------------------- Rail ---- */

.rail {
  position: fixed; left: 0; top: 0; bottom: 0; z-index: 40;
  width: var(--rail);
  display: flex; flex-direction: column; align-items: center;
  padding: 28px 0 30px;
  background: var(--bg);
  border-right: 1px solid rgba(212, 56, 100, 0.25);
}

.rail__mark { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; width: 16px; height: 16px; }
.rail__mark span { background: var(--hot); transition: background 0.3s, transform 0.4s var(--ease-out); }
.rail__mark span:nth-child(n + 3) { background: var(--ink-3); }
.rail__mark:hover span:nth-child(1) { transform: translate(-2px, -2px); }
.rail__mark:hover span:nth-child(2) { transform: translate(2px, -2px); }
.rail__mark:hover span:nth-child(3) { transform: translate(-2px, 2px); background: var(--hot); }
.rail__mark:hover span:nth-child(4) { transform: translate(2px, 2px); background: var(--hot); }

.rail__dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-3); margin-top: min(132px, 9vh); }

.rail__chip {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3px;
  width: 22px; height: 22px; padding: 5px; margin-top: 34px;
  border-radius: 5px; background: var(--hot);
  box-shadow: 0 0 14px rgba(248, 48, 92, 0.6);
  animation: chip-pulse 3.2s ease-in-out infinite;
}
.rail__chip span { background: var(--bg); border-radius: 1px; }
@keyframes chip-pulse {
  0%, 100% { box-shadow: 0 0 14px rgba(248, 48, 92, 0.6); }
  50% { box-shadow: 0 0 26px rgba(248, 48, 92, 0.95); }
}

.rail__line { width: 1px; height: min(60px, 6vh); margin-top: 16px; background: linear-gradient(180deg, var(--hot), rgba(248, 48, 92, 0.15)); }

.rail__follow {
  margin-top: min(48px, 4vh);
  writing-mode: vertical-rl; rotate: 180deg;
  font-family: var(--font-tech); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink); white-space: nowrap;
}

.rail__social { display: flex; flex-direction: column; align-items: center; gap: min(28px, 2.6vh); margin-top: min(70px, 5vh); }
.rail__social a {
  display: block; line-height: 0; color: var(--ink); opacity: 0.6;
  transition: opacity 0.3s, color 0.3s, filter 0.3s, translate 0.4s var(--ease-out);
}
.rail__social a:hover, .rail__social a:focus-visible {
  opacity: 1; color: var(--hot-2); translate: 0 -2px;
  filter: drop-shadow(0 0 8px rgba(248, 48, 92, 0.9));
}
.rail__social svg { width: 20px; height: 20px; }
/* The LinkedIn mark fills its whole box, so it reads heavier than the others; scale it down. */
.rail__social a[aria-label="Linkedin"] svg { width: 16px; height: 16px; }

.rail__scroll { margin-top: auto; display: flex; flex-direction: column; align-items: center; }
.rail__track {
  position: relative; width: 1px; height: min(150px, 12vh);
  background: linear-gradient(180deg, rgba(248, 48, 92, 0.5), rgba(248, 48, 92, 0.05));
}
/* Scroll progress: the bright part of the line grows as the page scrolls. */
.rail__track i {
  position: absolute; left: -0.5px; top: 0; width: 2px; height: 100%;
  background: var(--hot); box-shadow: 0 0 10px var(--hot);
  transform-origin: 50% 0; transform: scaleY(var(--p, 0));
}
.rail__label {
  margin-top: 14px; text-align: center;
  font-family: var(--font-tech); font-size: 8px; line-height: 1.5; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3);
}
.rail__knob {
  width: 9px; height: 9px; margin-top: 16px; border-radius: 50%;
  background: var(--hot); box-shadow: 0 0 12px rgba(248, 48, 92, 0.9);
  animation: knob 1.8s var(--ease-io) infinite;
}
@keyframes knob { 0%, 100% { translate: 0 -4px; } 50% { translate: 0 3px; } }

@media (max-height: 700px) {
  .rail__follow, .rail__line { display: none; }
}
@media (max-height: 560px) {
  .rail__dot, .rail__chip { display: none; }
  .rail__social { margin-top: 28px; }
}

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

.top {
  position: fixed; top: 0; left: var(--rail); right: 0; z-index: 50;
  display: flex; align-items: center; gap: 36px;
  padding: 34px var(--pad-r) 16px var(--pad-l);
  transition: transform 0.6s var(--ease-out), padding 0.4s var(--ease-out), background-color 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.top.is-stuck {
  padding-top: 14px; padding-bottom: 14px;
  background: rgba(6, 5, 10, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border-bottom-color: rgba(212, 56, 100, 0.2);
}
.top.is-hidden { transform: translateY(-110%); }

.top__brand {
  font-family: var(--font-tech); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-hi); white-space: nowrap;
}

.top__nav { display: flex; gap: 24px; font-size: 14px; font-weight: 500; letter-spacing: 0.04em; color: #c9bccd; }
.top__nav a { position: relative; padding-bottom: 6px; transition: color 0.25s; }
.top__nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--hot); box-shadow: 0 0 10px rgba(248, 48, 92, 0.8);
  transform: scaleX(0); transform-origin: 100% 50%;
  transition: transform 0.45s var(--ease-out);
}
.top__nav a:hover, .top__nav a:focus-visible { color: var(--ink-hi); }
.top__nav a:hover::after, .top__nav a:focus-visible::after { transform: scaleX(1); transform-origin: 0 50%; }
.top__nav a[aria-current="page"] { color: var(--hot); }
.top__nav a[aria-current="page"]::after { transform: scaleX(1); }

.top__right { margin-left: auto; display: flex; align-items: center; gap: clamp(16px, 3.4vw, 44px); }

.theme { display: flex; align-items: center; gap: 8px; }
.theme__pill {
  display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px;
  background: rgba(10, 8, 14, 0.6); border: 1px solid rgba(212, 56, 100, 0.35);
}
.theme__opt {
  padding: 5px 10px; border-radius: 999px;
  font-family: var(--font-tech); font-size: 8px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-3); white-space: nowrap;
  transition: color 0.25s, background-color 0.25s;
}
a.theme__opt:hover, a.theme__opt:focus-visible { color: #fff; background: rgba(248, 48, 92, 0.22); }
.theme__opt[aria-current] { background: var(--hot); color: #fff; box-shadow: 0 0 12px rgba(248, 48, 92, 0.5); }

.status {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px; border-radius: 999px;
  background: var(--hot); color: #fff;
  font-size: 13px; font-weight: 500; white-space: nowrap;
  box-shadow: 0 0 22px rgba(248, 48, 92, 0.45);
}
.status i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.status i::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid #fff;
  animation: ping 2s ease-out infinite;
}
@keyframes ping { 0% { scale: 1; opacity: 0.9; } 100% { scale: 3.2; opacity: 0; } }

.burger {
  display: none; margin-left: auto;
  width: 44px; height: 44px; padding: 0; border: 1px solid rgba(212, 56, 100, 0.45); border-radius: 6px;
  background: rgba(10, 8, 14, 0.6); cursor: pointer;
  align-items: center; justify-content: center;
}
.burger span, .burger span::before, .burger span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--ink-hi);
  transition: transform 0.4s var(--ease-out), background-color 0.2s;
}
.burger span { position: relative; }
.burger span::before { position: absolute; top: -6px; }
.burger span::after { position: absolute; top: 6px; }
.menu-open .burger span { background: transparent; }
.menu-open .burger span::before { transform: translateY(6px) rotate(45deg); background: var(--hot); }
.menu-open .burger span::after { transform: translateY(-6px) rotate(-45deg); background: var(--hot); }

/* Full-screen menu (small screens) */
.menu {
  position: fixed; inset: 0; z-index: 45;
  display: flex; flex-direction: column; justify-content: center; gap: 40px;
  padding: 96px 24px 40px;
  background: rgba(6, 5, 10, 0.94);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  visibility: hidden; opacity: 0;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s var(--ease-io), opacity 0.3s, visibility 0s 0.7s;
}
.menu-open .menu { visibility: visible; opacity: 1; clip-path: inset(0); transition: clip-path 0.7s var(--ease-io), opacity 0.3s; }
.menu__nav { display: flex; flex-direction: column; gap: 6px; }
.menu__nav a {
  font-family: var(--font-display); font-weight: 400; font-size: clamp(36px, 11vw, 72px); line-height: 1.05; text-transform: uppercase;
  background: var(--tx-noise), var(--tx-seams), var(--tx-fill);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: var(--tx-shadow);
  translate: 0 40px; opacity: 0;
  transition: translate 0.7s var(--ease-out), opacity 0.5s;
}
.menu__nav a[aria-current="page"] { background: none; color: var(--hot); }
.menu-open .menu__nav a { translate: 0 0; opacity: 1; }
.menu-open .menu__nav a:nth-child(1) { transition-delay: 0.15s; }
.menu-open .menu__nav a:nth-child(2) { transition-delay: 0.22s; }
.menu-open .menu__nav a:nth-child(3) { transition-delay: 0.29s; }
.menu__foot { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }

/* ---------------------------------------------------------------- Main ---- */

main { position: relative; z-index: 1; margin-left: var(--rail); }

/* Shared type */
.display {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  background: var(--tx-noise), var(--tx-seams), var(--tx-fill);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: var(--tx-shadow) drop-shadow(0 0 18px rgba(232, 168, 216, 0.25));
}
/* After the text is split, each piece carries the gradient itself (so it survives transforms). */
.display.is-split { background: none; }
.display .ch, .display .wi {
  display: inline-block;
  background: var(--tx-noise), var(--tx-seams), var(--tx-fill);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.label {
  margin: 0;
  font-family: var(--font-tech); font-size: 18px; font-weight: 400; line-height: 1.1;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--crimson);
}

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

.hero {
  position: relative;
  min-height: 100vh;
  padding: calc(520 * var(--k)) calc(72 * var(--k)) calc(64 * var(--k)) calc(40 * var(--k));
  overflow: hidden;
}
@supports (height: 100svh) { .hero { min-height: 100svh; } }

.hero__title { margin: 0; }

.hero__line {
  position: absolute; z-index: 1;
  font-size: calc(146 * var(--k)); line-height: 1; white-space: nowrap;
  will-change: translate;
}
.hero__line--1 {
  /* "Product" keeps its original left edge; "Designer" (below) is placed to end at the right-hand column. */
  left: calc(50% - var(--rail) / 2 - 491 * var(--k)); top: calc(140 * var(--k));
  translate: calc(var(--px, 0) * -16px + var(--sy, 0) * -180px) calc(var(--py, 0) * -8px);
}
.hero__line--2 {
  /* Saira Stencil One is wide: "Designer" is pulled left so it ends in line with the
     right-hand column, and up so it sits just under "Product".
     Both words drift vertically together (same sign) so that gap never shrinks. */
  left: calc(50% - var(--rail) / 2 - 201 * var(--k)); top: calc(262 * var(--k));
  translate: calc(var(--px, 0) * 16px + var(--sy, 0) * 180px) calc(var(--py, 0) * -8px);
}

/* "Product Designer" only: two slices of the word that keep jumping sideways
   (METAVERSE-style). They appear once the entrance animation has finished. */
.hero__line::before, .hero__line::after {
  content: attr(data-t);
  position: absolute; inset: 0;
  background: var(--tx-noise), var(--tx-seams), var(--tx-fill);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-kerning: none; pointer-events: none;
  opacity: 0; clip-path: inset(0 0 100% 0);
}
.is-settled .hero__line::before { opacity: 1; animation: tx-slice-a 4.2s steps(1) infinite; }
.is-settled .hero__line::after { opacity: 1; animation: tx-slice-b 5.6s steps(1) infinite; }
.hero__line--2::before { animation-delay: -1.7s !important; }
.hero__line--2::after { animation-delay: -2.9s !important; }
@keyframes tx-slice-a {
  0%, 100% { clip-path: inset(31% 0 61% 0); transform: translateX(-0.026em); }
  28% { clip-path: inset(12% 0 80% 0); transform: translateX(0.02em); }
  60% { clip-path: inset(54% 0 38% 0); transform: translateX(-0.034em); }
  84% { clip-path: inset(0 0 100% 0); }
}
@keyframes tx-slice-b {
  0%, 100% { clip-path: inset(72% 0 20% 0); transform: translateX(0.034em); }
  35% { clip-path: inset(0 0 100% 0); }
  52% { clip-path: inset(40% 0 52% 0); transform: translateX(-0.02em); }
  77% { clip-path: inset(84% 0 9% 0); transform: translateX(0.026em); }
}

.hero__line.is-glitch { animation: glitch 0.42s steps(1, end); }
@keyframes glitch {
  0% { transform: translate(3px, -1px) skewX(-8deg); filter: drop-shadow(-5px 0 var(--hot)) drop-shadow(5px 0 #b06cff); }
  20% { transform: translate(-8px, 2px); clip-path: inset(8% 0 52% 0); }
  40% { transform: translate(8px, -2px) skewX(10deg); clip-path: inset(56% 0 6% 0); filter: drop-shadow(4px 0 var(--hot)) drop-shadow(-4px 0 #b06cff); }
  60% { transform: translate(-3px, 0); clip-path: inset(30% 0 30% 0); }
  80% { transform: translate(2px, 1px) skewX(-3deg); clip-path: none; filter: drop-shadow(-2px 0 var(--hot)) drop-shadow(2px 0 #b06cff); }
  100% { transform: none; clip-path: none; }
}

.hero__figure {
  position: absolute; z-index: 0;
  left: calc(50% - var(--rail) / 2); top: calc(110 * var(--k));
  width: calc(620 * var(--k)); aspect-ratio: 960 / 1111;
  translate: calc(-50% + var(--px, 0) * 26px) calc(var(--py, 0) * 16px + var(--sy, 0) * 110px);
  opacity: calc(1 - var(--sy, 0) * 0.55);
  pointer-events: none;
  will-change: translate;
}
.hero__glow {
  position: absolute; inset: 6% -6% 18%;
  background: radial-gradient(closest-side, rgba(248, 48, 92, 0.34), rgba(248, 48, 92, 0));
  filter: blur(34px);
  animation: glow 5.5s ease-in-out infinite;
}
@keyframes glow { 0%, 100% { opacity: 0.55; scale: 0.96; } 50% { opacity: 1; scale: 1.05; } }

.hero__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  -webkit-mask-image: linear-gradient(180deg, #000 90%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 90%, transparent 100%);
  animation: float 8s ease-in-out infinite;
}
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

/* Two extra copies of the figure, shown for a few frames as displaced slices. */
.hero__img--g { opacity: 0; }
.hero__figure.is-glitch .hero__img--g1 { animation: slice-a 0.36s steps(1, end); }
.hero__figure.is-glitch .hero__img--g2 { animation: slice-b 0.36s steps(1, end); }
@keyframes slice-a {
  0% { opacity: 0.9; clip-path: inset(12% 0 70% 0); translate: -14px 0; filter: hue-rotate(40deg) saturate(1.6); }
  33% { opacity: 0.9; clip-path: inset(46% 0 38% 0); translate: 16px 0; }
  66% { opacity: 0.9; clip-path: inset(70% 0 14% 0); translate: -8px 0; }
  100% { opacity: 0; }
}
@keyframes slice-b {
  0% { opacity: 0.8; clip-path: inset(30% 0 56% 0); translate: 12px 0; filter: hue-rotate(-50deg) saturate(1.8); }
  33% { opacity: 0.8; clip-path: inset(4% 0 84% 0); translate: -18px 0; }
  66% { opacity: 0.8; clip-path: inset(58% 0 28% 0); translate: 10px 0; }
  100% { opacity: 0; }
}

.hero__tag {
  position: absolute; z-index: 4;
  right: calc(72 * var(--k)); top: calc(116 * var(--k));
  display: flex; align-items: center; gap: 22px;
}
.hero__tag-text {
  margin: 0; text-align: right;
  font-family: var(--font-tech); font-size: 11px; letter-spacing: 0.22em; line-height: 1.9; text-transform: uppercase;
  color: #c9bccd;
}
.hero__tag-count { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.hero__tag-num { font-family: var(--font-tech); font-size: 24px; line-height: 1; color: var(--hot); text-shadow: 0 0 12px rgba(248, 48, 92, 0.6); }
.hero__tag-bars { display: flex; align-items: center; gap: 6px; }
.hero__tag-bars i { display: block; height: 4px; }
.hero__tag-bars i:nth-child(1) { width: 14px; background: var(--ink); animation: bar 2.4s var(--ease-io) infinite; }
.hero__tag-bars i:nth-child(2) { width: 22px; background: #6f6275; }
.hero__tag-bars span { margin-left: 2px; font-family: var(--font-tech); font-size: 9px; color: #6f6275; }
@keyframes bar { 0%, 100% { width: 14px; } 50% { width: 22px; } }

.hero__cols {
  position: relative; z-index: 3;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 40px;
  min-height: calc(168 * var(--k));
  padding-right: calc(24 * var(--k));
}
.hero__col--l { width: max(300px, calc(380 * var(--k))); }
.hero__col--r { width: max(260px, calc(340 * var(--k))); }
.hero__h {
  margin: 0;
  font-family: var(--font-tech); font-weight: 400; font-size: max(15px, calc(18 * var(--k)));
  line-height: 1.35; letter-spacing: 0.06em; color: var(--crimson);
}
.hero__p { margin: 14px 0 0; font-size: max(13.5px, calc(14.5 * var(--k))); line-height: 1.6; color: var(--ink-2); }

/* Angled call-to-action */
.cta { --bw: max(250px, calc(300 * var(--k))); display: inline-flex; align-items: stretch; margin-top: 20px; }
.cta__body {
  position: relative; display: flex; align-items: center;
  width: var(--bw); aspect-ratio: 300 / 52; padding-left: calc(var(--bw) * 0.087);
  font-family: var(--font-tech); font-size: calc(var(--bw) * 0.04); letter-spacing: 0.12em; text-transform: uppercase;
  color: #eee6ee; white-space: nowrap;
}
.cta--sm { --bw: 260px; }
.cta--sm .cta__body { aspect-ratio: 260 / 52; font-size: 12px; padding-left: 26px; }
.cta__shape { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cta__bg { stroke: var(--edge); stroke-width: 1.2; }
.cta__sweep {
  fill: var(--hot); opacity: 0;
  transform-box: fill-box; transform-origin: 0 50%; transform: scaleX(0);
  transition: transform 0.6s var(--ease-out), opacity 0.3s;
}
.cta__edges { fill: none; stroke: #ff1f4b; stroke-width: 2; stroke-linecap: round; filter: drop-shadow(0 0 3px #ff1f4b); transition: filter 0.3s; }
.cta__label { position: relative; transition: letter-spacing 0.5s var(--ease-out); }
.cta__slashes { flex: none; align-self: center; width: calc(var(--bw) * 0.24); height: auto; aspect-ratio: 72 / 52; margin-left: -6px; overflow: visible; }
.cta__slashes polygon {
  fill: rgba(248, 48, 92, 0); stroke: var(--edge); stroke-width: 1; stroke-opacity: 0.55;
  animation: slash 2.1s linear infinite;
  transition: fill 0.3s, translate 0.5s var(--ease-out);
}
.cta__slashes polygon:nth-child(2) { animation-delay: 0.18s; }
.cta__slashes polygon:nth-child(3) { animation-delay: 0.36s; }
@keyframes slash { 0%, 55%, 100% { stroke-opacity: 0.35; } 20% { stroke-opacity: 1; stroke: var(--hot); } }
.cta:hover .cta__sweep, .cta:focus-visible .cta__sweep { transform: scaleX(1); opacity: 0.92; }
.cta:hover .cta__edges, .cta:focus-visible .cta__edges { filter: drop-shadow(0 0 7px #ff1f4b); }
.cta:hover .cta__label, .cta:focus-visible .cta__label { letter-spacing: 0.17em; }
.cta:hover .cta__slashes polygon { fill: rgba(248, 48, 92, 0.85); stroke-opacity: 1; }
.cta:hover .cta__slashes polygon:nth-child(1) { translate: 4px 0; }
.cta:hover .cta__slashes polygon:nth-child(2) { translate: 9px 0; }
.cta:hover .cta__slashes polygon:nth-child(3) { translate: 14px 0; }

.pill {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; gap: 10px; margin-top: 20px;
  padding: 12px 22px; border: 1px solid var(--crimson); border-radius: 999px;
  font-family: var(--font-tech); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-hi);
  box-shadow: inset 0 0 14px rgba(212, 56, 100, 0.25);
  transition: box-shadow 0.4s, color 0.3s;
}
.pill::before {
  content: ""; position: absolute; z-index: -1; inset: 0; border-radius: inherit;
  background: var(--hot); translate: 0 101%;
  transition: translate 0.55s var(--ease-out);
}
.pill:hover, .pill:focus-visible { color: #fff; box-shadow: 0 0 26px rgba(248, 48, 92, 0.55); }
.pill:hover::before, .pill:focus-visible::before { translate: 0 0; }

/* Glass bar of work cards */
.glass {
  position: relative; z-index: 3; isolation: isolate;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: calc(24 * var(--k));
  border-radius: 20px;
}
.glass::before {
  content: ""; position: absolute; z-index: -2; inset: 0; border-radius: inherit;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 45%),
    radial-gradient(90% 120% at 100% 100%, rgba(212, 56, 100, 0.14) 0%, rgba(212, 56, 100, 0) 60%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.01) 50%, rgba(255, 255, 255, 0.05)),
    rgba(22, 14, 24, 0.22);
  /* Light blur only, so the character behind the bar stays recognisable. */
  -webkit-backdrop-filter: blur(3px) saturate(170%) brightness(0.92);
  backdrop-filter: blur(3px) saturate(170%) brightness(0.92);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45), inset 0 -1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 28px rgba(212, 56, 100, 0.12),
    0 24px 48px rgba(0, 0, 0, 0.5), 0 0 34px rgba(212, 56, 100, 0.28);
}
/* Liquid highlight that follows the pointer across the bar. */
.glass__shine {
  position: absolute; z-index: -1; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none;
  opacity: 0; transition: opacity 0.5s;
}
.glass__shine::before {
  content: ""; position: absolute; left: var(--gx, 50%); top: var(--gy, 50%);
  width: 520px; height: 520px; translate: -50% -50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.22), rgba(248, 48, 92, 0.12) 45%, transparent 70%);
}
.glass:hover .glass__shine { opacity: 1; }

.card {
  position: relative;
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px 20px;
  border-right: 1px solid rgba(212, 56, 100, 0.25);
}
.card:last-of-type { border-right: 0; }
.card__text { flex: 1; min-width: 0; text-shadow: 0 1px 10px rgba(6, 5, 10, 0.95), 0 0 2px rgba(6, 5, 10, 0.8); }
.card__label {
  display: block;
  font-family: var(--font-tech); font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--crimson);
}
.card__title {
  display: block; margin: 8px 0 0;
  font-family: var(--font-tech); font-weight: 400; font-size: max(12.5px, calc(13 * var(--k))); line-height: 1.4; color: var(--ink-hi);
  transition: color 0.3s, text-shadow 0.3s;
}
.card__desc { margin: 8px 0 0; font-size: max(11.5px, calc(11.5 * var(--k))); line-height: 1.5; color: var(--ink-2); }
.card__go {
  flex: none; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--crimson);
  box-shadow: 0 0 18px rgba(212, 56, 100, 0.5), inset 0 0 12px rgba(212, 56, 100, 0.3);
  transition: background-color 0.35s, box-shadow 0.35s, scale 0.5s var(--ease-out);
}
.card__go svg { width: 18px; height: 18px; transition: rotate 0.5s var(--ease-out); }
.card:hover .card__go, .card:focus-visible .card__go {
  background: var(--hot); scale: 1.08;
  box-shadow: 0 0 30px rgba(248, 48, 92, 0.85), inset 0 0 12px rgba(255, 255, 255, 0.25);
}
.card:hover .card__go svg, .card:focus-visible .card__go svg { rotate: -45deg; }
.card:hover .card__title, .card:focus-visible .card__title { color: #fff; text-shadow: 0 0 14px rgba(248, 48, 92, 0.7); }

/* Preview shown only while the pointer is on the card. It never takes pointer events itself. */
.pop {
  position: absolute; z-index: 20; left: 50%; bottom: calc(100% + 22px);
  width: 300px; padding: 10px; border-radius: 18px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.03) 40%), rgba(14, 9, 18, 0.86);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  backdrop-filter: blur(24px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(212, 56, 100, 0.35);
  pointer-events: none;
  opacity: 0;
  transform-origin: 50% 100%;
  transform: translate(calc(-50% + var(--ox, 0px)), 14px) rotate(var(--or, 0deg)) scale(0.94);
  transition: opacity 0.25s ease, transform 0.55s var(--ease-out);
}
.pop::after {
  content: ""; position: absolute; left: 50%; bottom: -7px; width: 14px; height: 14px;
  transform: translateX(-50%) rotate(45deg);
  background: rgba(14, 9, 18, 0.92);
  border-right: 1px solid rgba(255, 255, 255, 0.3); border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}
.pop__img { height: 160px; border-radius: 12px; overflow: hidden; border: 1px solid rgba(212, 56, 100, 0.35); background: #0b0912; }
.pop__img img { width: 100%; height: 100%; object-fit: cover; scale: 1.12; transition: scale 1.2s var(--ease-out); }
.pop__term { height: 100%; padding: 14px 16px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11px; line-height: 1.7; color: var(--ink); }
.pop__term .t-mut { color: var(--ink-3); } .pop__term .t-key { color: var(--hot-2); }
.pop__term .t-fn { color: #ffd36b; } .pop__term .t-str { color: #8fd3ff; }
.pop__body { padding: 14px 6px 6px; }
.pop__cta { display: inline-block; margin-top: 12px; font-family: var(--font-tech); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--hot-2); }

@media (hover: hover) {
  .card:hover .pop, .card:focus-visible .pop {
    opacity: 1;
    transform: translate(calc(-50% + var(--ox, 0px)), 0) rotate(var(--or, 0deg)) scale(1);
  }
  .card:hover .pop__img img, .card:focus-visible .pop__img img { scale: 1; }
}
@media (hover: none) { .pop { display: none; } }

/* ------------------------------------------------------------- Connect ---- */

.connect { position: relative; padding: clamp(72px, 9vw, 130px) var(--pad-r) 40px var(--pad-l); }
.connect__text { margin: 26px 0 0; font-size: 17px; color: var(--ink-2); }

.mail {
  position: relative; display: inline-block; margin-top: 14px;
  font-family: var(--font-tech); font-size: 13px; color: var(--hot);
  text-shadow: 0 0 14px rgba(248, 48, 92, 0.55);
  transition: text-shadow 0.3s, color 0.3s;
}
.mail::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 1px;
  background: currentColor; box-shadow: 0 0 8px currentColor;
  transform: scaleX(0); transform-origin: 100% 50%; transition: transform 0.5s var(--ease-out);
}
.mail:hover, .mail:focus-visible { color: var(--hot-2); text-shadow: 0 0 22px rgba(248, 48, 92, 0.95); }
.mail:hover::after, .mail:focus-visible::after { transform: scaleX(1); transform-origin: 0 50%; }
.mail--xl { margin-top: 34px; font-size: clamp(15px, 1.75vw, 22px); }

.chips { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
/* Parallelogram button: outer shape is the 1px outline, inner shape is the fill. */
.chip {
  --cut: polygon(0 0, calc(100% - 12px) 0, 100% 100%, 12px 100%);
  display: inline-block; padding: 1px;
  background: var(--edge-dim);
  -webkit-clip-path: var(--cut); clip-path: var(--cut);
  font-family: var(--font-tech); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-hi);
  transition: background-color 0.3s;
}
.chip > span {
  position: relative; display: block; padding: 11px 22px; overflow: hidden;
  background: #0a0710;
  -webkit-clip-path: var(--cut); clip-path: var(--cut);
}
.chip > span::before {
  content: ""; position: absolute; inset: 0; background: var(--hot);
  translate: -102% 0; transition: translate 0.5s var(--ease-out);
}
.chip > span > b { position: relative; font-weight: 400; }
.chip:hover, .chip:focus-visible { background: var(--hot); color: #fff; }
.chip:hover > span::before, .chip:focus-visible > span::before { translate: 0 0; }

.colophon {
  margin-top: 72px; padding-top: 18px;
  border-top: 1px solid rgba(212, 56, 100, 0.25);
  font-size: 12px; letter-spacing: 0.08em; color: var(--ink-3);
}

/* --------------------------------------------------------- Inner pages ---- */

.page { position: relative; padding: 0 var(--pad-r) 0 var(--pad-l); }
.page__title { margin: clamp(120px, 14.4vw, 184px) 0 0; max-width: 1000px; font-size: clamp(38px, 6.56vw, 96px); line-height: 0.98; }
.page__title--xl { font-size: clamp(46px, 8.6vw, 128px); line-height: 0.95; }
.page__title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.06em; margin-bottom: -0.06em; }

.about { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 56px; margin-top: 56px; }
.about__text { flex: 1 1 520px; max-width: 640px; font-size: 15.5px; line-height: 1.75; color: var(--ink-2); }
.about__text p { margin: 0 0 18px; }
.about__text p:last-child { margin-bottom: 0; }
.about__side { flex: 0 1 auto; padding-top: 6px; }
.about__side .cta { margin-top: 0; }

.ext {
  color: var(--hot-2);
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size 0.4s var(--ease-out), text-shadow 0.3s, color 0.3s;
}
.ext:hover, .ext:focus-visible { color: #fff; background-size: 100% 100%; background-image: linear-gradient(var(--hot), var(--hot)); text-shadow: none; }

.section { margin-top: clamp(80px, 10vw, 130px); }
.section__intro { margin: 18px 0 0; font-size: 17px; color: var(--ink-2); }

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 36px; perspective: 1200px; }
.illo {
  position: relative; margin: 0; overflow: hidden;
  aspect-ratio: 4 / 3; border-radius: 6px;
  border: 1px solid rgba(212, 56, 100, 0.45);
  box-shadow: 0 0 26px rgba(212, 56, 100, 0.22);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.6s var(--ease-out), box-shadow 0.4s, border-color 0.4s;
  will-change: transform;
}
.illo img { width: 100%; height: 100%; object-fit: cover; scale: 1.06; transition: scale 0.9s var(--ease-out); }
.illo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px circle at var(--lx, 50%) var(--ly, 50%), rgba(255, 255, 255, 0.22), transparent 60%);
  opacity: 0; transition: opacity 0.4s;
}
.illo:hover { border-color: var(--hot); box-shadow: 0 0 44px rgba(248, 48, 92, 0.45); transition: transform 0.12s linear, box-shadow 0.4s, border-color 0.4s; }
.illo:hover img { scale: 1.12; }
.illo:hover::after { opacity: 1; }

.contact__text { margin: 40px 0 0; max-width: 640px; font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.page .connect { padding-left: 0; padding-right: 0; }
.page .chips--tight { margin-top: 26px; }

/* -------------------------------------------------------------- Cursor ---- */

.cursor { position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none; opacity: 0; transition: opacity 0.3s; }
.has-cursor .cursor { opacity: 1; }
.cursor__dot, .cursor__ring { position: fixed; left: 0; top: 0; border-radius: 50%; translate: -50% -50%; will-change: transform; }
.cursor__dot { width: 6px; height: 6px; background: var(--hot); box-shadow: 0 0 12px var(--hot); transition: scale 0.3s var(--ease-out); }
.cursor__ring {
  width: 36px; height: 36px; border: 1px solid rgba(248, 48, 92, 0.75);
  transition: width 0.4s var(--ease-out), height 0.4s var(--ease-out), background-color 0.3s, border-color 0.3s;
}
.cursor.is-link .cursor__ring { width: 62px; height: 62px; background: rgba(248, 48, 92, 0.14); border-color: var(--hot); }
.cursor.is-link .cursor__dot { scale: 0.5; }
.cursor.is-down .cursor__ring { width: 26px; height: 26px; background: rgba(248, 48, 92, 0.35); }
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }

/* ----------------------------------------------- Loader and page wipes ---- */

.loader {
  position: fixed; inset: 0; z-index: 220;
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 72px) clamp(24px, 6vh, 64px);
  background: var(--bg);
  clip-path: inset(0);
  transition: clip-path 0.95s var(--ease-io), visibility 0s 0.95s;
}
.loader::before {
  content: ""; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(212, 56, 100, 0.06) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, rgba(212, 56, 100, 0.06) 0 1px, transparent 1px 48px);
}
.loader__num {
  position: relative;
  font-family: var(--font-display); font-weight: 400; font-size: clamp(80px, 18vw, 260px); line-height: 0.82;
  background: var(--tx-noise), var(--tx-seams), var(--tx-fill);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: var(--tx-shadow);
  font-variant-numeric: tabular-nums;
}
.loader__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(212, 56, 100, 0.2); }
.loader__bar i { display: block; height: 100%; background: var(--hot); box-shadow: 0 0 18px var(--hot); transform-origin: 0 50%; transform: scaleX(var(--lp, 0)); }
.loader.is-done { clip-path: inset(0 0 100% 0); visibility: hidden; }
.no-js .loader, .skip-intro .loader { display: none; }

.curtain {
  position: fixed; inset: 0; z-index: 210; pointer-events: none;
  background: #0b0710;
  transform: scaleY(0); transform-origin: 50% 100%;
}
.curtain::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--hot); box-shadow: 0 0 24px var(--hot); }
.curtain--light { background: #fff; }
.curtain--light::after { display: none; }
/* Arriving from another page of this theme: the curtain starts closed and lifts. */
.js.skip-intro .curtain { transform: scaleY(1); transform-origin: 50% 0; }
.js.skip-intro .curtain::after { top: auto; bottom: 0; }
.js.skip-intro.is-loaded .curtain { transform: scaleY(0); transition: transform 0.75s var(--ease-io); }
.js.is-loaded.is-leaving .curtain { transform: scaleY(1); transform-origin: 50% 100%; transition: transform 0.55s var(--ease-io); }
.js.is-loaded.is-leaving .curtain::after { top: 0; bottom: auto; }

/* ------------------------------------------------------- Intro reveals ---- */

.js [data-intro] { opacity: 0; translate: 0 26px; }
.js.is-loaded [data-intro] {
  opacity: 1; translate: 0 0;
  transition: opacity 0.9s ease calc(var(--d, 0) * 1ms), translate 1.1s var(--ease-out) calc(var(--d, 0) * 1ms);
}
.js .top[data-intro] { translate: 0 -20px; }
.js.is-loaded .top[data-intro] { translate: 0 0; }
.js .rail[data-intro] { translate: -100% 0; opacity: 1; }
.js.is-loaded .rail[data-intro] { translate: 0 0; }
.js .glass[data-intro] { translate: 0 60px; }
.js.is-loaded .glass[data-intro] { translate: 0 0; }

.js .display .ch { opacity: 0; transform: perspective(700px) translateY(60%) rotateX(-80deg); transform-origin: 50% 100%; }
.js.is-loaded .display .ch {
  opacity: 1; transform: none;
  transition:
    opacity 0.5s ease calc(var(--i) * 55ms + var(--d, 0) * 1ms),
    transform 1.2s var(--ease-out) calc(var(--i) * 55ms + var(--d, 0) * 1ms);
}
.js .display .wi { transform: translateY(105%); }
.js.is-loaded .display .wi { transform: none; transition: transform 1.1s var(--ease-out) calc(var(--i) * 60ms + 150ms); }

.js .hero__figure { opacity: 0; scale: 1.1; filter: blur(22px) brightness(1.8); }
.js.is-loaded .hero__figure {
  opacity: calc(1 - var(--sy, 0) * 0.55); scale: 1; filter: none;
  transition: opacity 1.4s ease 0.25s, scale 2s var(--ease-out) 0.25s, filter 1.6s ease 0.25s;
}
/* Once the entrance has finished, drop the transition so scrolling drives opacity directly. */
.js.is-settled .hero__figure { transition: none; }

/* Scroll reveals */
.js [data-reveal] { opacity: 0; translate: 0 34px; filter: blur(8px); }
.js [data-reveal].in {
  opacity: 1; translate: 0 0; filter: none;
  transition: opacity 0.9s ease calc(var(--i, 0) * 90ms), translate 1.1s var(--ease-out) calc(var(--i, 0) * 90ms), filter 0.9s ease calc(var(--i, 0) * 90ms);
}
/* The clip goes on the child: a fully clipped element is never reported as visible. */
.js [data-reveal="clip"] { opacity: 1; translate: 0 0; filter: none; }
.js [data-reveal="clip"] > * { clip-path: inset(100% 0 0 0); }
.js [data-reveal="clip"].in > * { clip-path: inset(0); transition: clip-path 1.2s var(--ease-io) calc(var(--i, 0) * 120ms), scale 0.9s var(--ease-out); }

/* ---------------------------------------------------------- Responsive ---- */

@media (max-width: 1180px) {
  .top { gap: 22px; }
  .top__nav { gap: 18px; }
  .hero__tag-text { display: none; }
}

@media (max-width: 999px) {
  :root { --rail: 0px; }
  .rail { display: none; }

  .top { padding: 18px 20px; gap: 16px; }
  .top.is-stuck { padding: 12px 20px; }
  .top__nav, .top__right { display: none; }
  .burger { display: inline-flex; }
  .menu-open .top { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; transform: none; }

  .hero { padding: calc(92px + 104vw) 20px 56px; min-height: 0; }
  .hero__line { font-size: 16.5vw; }
  .hero__line--1 { left: 20px; top: 168px; translate: calc(var(--sy, 0) * -60px) 0; }
  .hero__line--2 { left: auto; right: 20px; top: calc(168px + 40vw); translate: calc(var(--sy, 0) * 60px) 0; }
  .hero__figure { left: 50%; top: 92px; width: min(96vw, 620px); translate: -50% calc(var(--sy, 0) * 60px); }
  .hero__tag { right: 20px; top: 96px; }
  .hero__tag-text { display: block; font-size: 8px; letter-spacing: 0.18em; }
  .hero__tag-num { font-size: 18px; }

  .hero__cols { flex-direction: column; gap: 36px; min-height: 0; padding-right: 0; }
  .hero__col--l, .hero__col--r { width: 100%; max-width: 520px; }
  .hero__h { font-size: 16px; }
  .hero__p { font-size: 15px; }
  .cta { --bw: min(300px, 78vw); }

  .glass { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 44px; }
  .card { border-bottom: 1px solid rgba(212, 56, 100, 0.25); }
  .card:nth-of-type(2n) { border-right: 0; }
  .card:nth-last-of-type(-n + 2) { border-bottom: 0; }
  .card__title { font-size: 13px; }
  .card__desc { font-size: 13px; }

  .connect { padding: 72px 20px 32px; }
  .page { padding: 0 20px; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 16px; }
  .label { font-size: 15px; }
}

@media (max-width: 620px) {
  .glass { grid-template-columns: 1fr; }
  .card { border-right: 0; }
  .card:nth-last-of-type(2) { border-bottom: 1px solid rgba(212, 56, 100, 0.25); }
  .gallery { grid-template-columns: 1fr; }
  .about { gap: 36px; }
  .top__brand { font-size: 11px; }
}

/* ------------------------------------------------- Without JS or motion ---- */

.no-js .cursor { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .js [data-intro], .js [data-reveal], .js [data-reveal] > *, .js .display .ch, .js .display .wi, .js .hero__figure {
    opacity: 1 !important; translate: 0 0 !important; transform: none !important; filter: none !important; clip-path: none !important; scale: 1 !important;
  }
  .hero__line, .hero__figure { translate: 0 0; }
  .hero__line::before, .hero__line::after { display: none; }
  .js .hero__figure, .hero__figure { translate: -50% 0 !important; }
  .loader, .curtain, .cursor, .fx__fog, .fx__embers { display: none !important; }
}
