/* ============================================================
   accessero — styles
   Acts: dark (hero/craft/products) → light (design) → dark (specs/cta)
   ============================================================ */

/* ============ Self-hosted fonts (latin subsets, Google Fonts builds) ============ */
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/instrument-serif-400-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../assets/fonts/inter-tight-300.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/inter-tight-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/inter-tight-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/inter-tight-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/inter-tight-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../assets/fonts/inter-tight-800.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("../assets/fonts/inter-tight-900.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/jetbrains-mono-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --black: #070405;
  --ink: #0d0809;
  --paper: #f4f1ef;
  --white: #ffffff;
  --red: #ff2230;
  --red-deep: #b30b16;
  --red-soft: #ffb0b5;   /* light tints of --red: keep in step if it changes */
  --red-bright: #ff5a64;
  --grey: #9b9295;
  --grey-dark: #5d5557;
  --line: rgba(255, 255, 255, 0.1);
  --line-dark: rgba(13, 8, 9, 0.12);

  --font-display: "Inter Tight", system-ui, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.83, 0, 0.17, 1);

  --gutter: clamp(1.25rem, 4vw, 4rem);
  --nav-h: 76px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-display);
  background: var(--black);
  color: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { display: block; max-width: 100%; }
/* <picture> wrappers must not introduce a box: every backdrop img is
   sized 100%/absolutely against its section container. */
picture { display: contents; }
a { color: inherit; text-decoration: none; }
em { font-family: var(--font-serif); font-style: italic; font-weight: 400; }

.container { width: min(1280px, 100% - 2 * var(--gutter)); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

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

.skip-link {
  position: fixed; top: 0.75rem; left: 0.75rem; z-index: 200;
  padding: 0.7rem 1.2rem; border-radius: 99px;
  background: var(--black); color: var(--white);
  border: 1px solid var(--red);
  font-size: 0.85rem; font-weight: 500;
  transform: translateY(-200%);
}
.skip-link:focus-visible { transform: none; }

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

/* ============ Loader ============ */
.loader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-content: center; gap: 1.5rem;
  background: var(--black);
  transition: opacity 0.7s var(--ease-out), visibility 0.7s;
}
.loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader__ring {
  position: absolute; top: 50%; left: 50%;
  width: min(46vw, 420px); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(255, 34, 48, 0.35);
  box-shadow: 0 0 80px rgba(255, 34, 48, 0.25), inset 0 0 60px rgba(255, 34, 48, 0.12);
  animation: ringPulse 1.8s var(--ease-in-out) infinite alternate;
}
/* shared by the loader ring and its CTA echo; tune per element via the vars */
@keyframes ringPulse {
  from {
    transform: translate(-50%, -50%) scale(var(--ring-from, 0.92));
    opacity: var(--ring-min, 0.5);
  }
  to { transform: translate(-50%, -50%) scale(var(--ring-to, 1.04)); opacity: 1; }
}
.loader__word {
  display: flex;
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 800; letter-spacing: 0.02em;
}
.loader__word span {
  opacity: 0; transform: translateY(0.6em);
  animation: loaderChar 0.7s var(--ease-out) forwards;
}
.loader__word span:nth-child(n) { animation-delay: calc(0.05s * var(--i, 0)); }
.loader__word span:nth-child(1) { --i: 1; } .loader__word span:nth-child(2) { --i: 2; }
.loader__word span:nth-child(3) { --i: 3; } .loader__word span:nth-child(4) { --i: 4; }
.loader__word span:nth-child(5) { --i: 5; } .loader__word span:nth-child(6) { --i: 6; }
.loader__word span:nth-child(7) { --i: 7; } .loader__word span:nth-child(8) { --i: 8; }
.loader__word span:nth-child(9) { --i: 9; }
@keyframes loaderChar { to { opacity: 1; transform: none; } }
.loader__bar {
  width: 160px; height: 1px; margin-inline: auto;
  background: var(--line); overflow: hidden;
}
.loader__bar i {
  display: block; height: 100%; width: 100%;
  background: var(--red);
  transform: translateX(-100%);
  animation: loaderBar 1.1s 0.3s var(--ease-in-out) forwards;
}
@keyframes loaderBar { to { transform: none; } }

/* ============ Film grain ============ */
.grain {
  position: fixed; inset: -100px; z-index: 80;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.06;
  mix-blend-mode: overlay;
  animation: grainShift 0.9s steps(4) infinite;
}
@keyframes grainShift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-34px, 22px); }
  50% { transform: translate(18px, -40px); }
  75% { transform: translate(-26px, -14px); }
  100% { transform: translate(30px, 36px); }
}

/* ============ Progress ============ */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  z-index: 60; pointer-events: none;
}
.progress i {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--red-deep), var(--red));
  transform-origin: left; transform: scaleX(0);
}

/* ============ Nav ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: var(--gutter);
  transition: background 0.45s, backdrop-filter 0.45s, border-color 0.45s, transform 0.45s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(7, 4, 5, 0.55);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__logo {
  display: flex; align-items: center; gap: 0.6rem;
  font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em;
}
.nav__logo svg {
  width: 22px; height: 22px;
  fill: none; stroke: var(--red); stroke-width: 3.5;
  transition: transform 0.6s var(--ease-out);
}
.nav__logo:hover svg { transform: rotate(180deg) scale(1.1); }
.nav__links { display: flex; gap: clamp(1.25rem, 2.5vw, 2.5rem); }
.nav__links a {
  position: relative;
  font-size: 0.85rem; font-weight: 500; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--grey);
  transition: color 0.3s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 1px; background: var(--red);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.nav__links a:hover { color: var(--white); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.65rem 1.4rem; border: 1px solid var(--red); border-radius: 99px;
  color: var(--white); overflow: hidden; position: relative;
}
.nav__cta::before {
  content: ""; position: absolute; inset: 0;
  background: var(--red); border-radius: inherit;
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.nav__cta:hover::before { transform: scaleX(1); transform-origin: left; }
.nav__cta-label { position: relative; z-index: 1; }
.nav__burger {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  background: none; border: 0; cursor: pointer;
}
.nav__burger i {
  width: 26px; height: 2px; background: var(--white);
  transition: transform 0.4s var(--ease-out), opacity 0.3s;
}
.nav__burger[aria-expanded="true"] i:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] i:last-child { transform: translateY(-4.5px) rotate(-45deg); }

/* ============ Mobile menu ============ */
.menu {
  position: fixed; inset: 0; z-index: 40;
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--gutter);
  background: rgba(7, 4, 5, 0.88);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.5s var(--ease-out), visibility 0.5s;
}
.menu::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 45% at 85% 8%, rgba(255, 34, 48, 0.22), transparent 70%);
}
.menu.is-open { opacity: 1; visibility: visible; }
.menu__links { display: flex; flex-direction: column; gap: 0.4rem; }
.menu__links a {
  display: flex; align-items: baseline; gap: 1rem;
  font-size: clamp(2.2rem, 9vw, 3.4rem); font-weight: 800; letter-spacing: -0.03em;
  padding-block: 0.35rem;
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out), color 0.3s;
}
.menu__links a:hover { color: var(--red); }
.menu__links a em {
  font-family: var(--font-mono); font-style: normal;
  font-size: 0.8rem; color: var(--red);
}
.menu.is-open .menu__links a { opacity: 1; transform: none; }
.menu.is-open .menu__links a:nth-child(1) { transition-delay: 0.08s; }
.menu.is-open .menu__links a:nth-child(2) { transition-delay: 0.14s; }
.menu.is-open .menu__links a:nth-child(3) { transition-delay: 0.2s; }
.menu.is-open .menu__links a:nth-child(4) { transition-delay: 0.26s; }
.menu.is-open .menu__links a:nth-child(5) { transition-delay: 0.32s; }
.menu.is-open .menu__links a:nth-child(6) { transition-delay: 0.38s; }
.menu__foot {
  margin-top: 3rem;
  font-family: var(--font-serif); font-style: italic;
  color: var(--grey); font-size: 1.1rem;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 1rem 2.2rem; border-radius: 99px;
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  position: relative; overflow: hidden; cursor: pointer;
  transition: color 0.35s, border-color 0.35s;
}
.btn span { position: relative; z-index: 1; }
.btn--solid { background: var(--red); color: var(--white); border: 1px solid var(--red); }
.btn--solid::before {
  content: ""; position: absolute; inset: 0; background: var(--white);
  border-radius: inherit; transform: translateY(101%);
  transition: transform 0.45s var(--ease-out);
}
.btn--solid:hover { color: var(--black); }
.btn--solid:hover::before { transform: none; }
.btn--ghost { border: 1px solid var(--line); color: var(--white); }
.btn--ghost::before {
  content: ""; position: absolute; inset: 0; background: var(--red);
  border-radius: inherit; transform: translateY(101%);
  transition: transform 0.45s var(--ease-out);
}
.btn--ghost:hover { border-color: var(--red); }
.btn--ghost:hover::before { transform: none; }

/* ============ Kicker ============ */
.kicker {
  display: flex; align-items: center; gap: 0.9rem;
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.28em;
  color: var(--grey); margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.kicker span { color: var(--red); }
.kicker::after {
  content: ""; flex: 0 0 56px; height: 1px; background: var(--red);
}
.kicker--dark { color: var(--grey-dark); }

/* ============ Hero ============ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--nav-h) + 2rem) var(--gutter) 2rem;
  overflow: clip;
}
.hero__media { position: absolute; inset: -12% 0; z-index: -2; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 65% 40%;
  transform-origin: center;
  animation: heroZoom 2.6s var(--ease-out) both;
}
@keyframes heroZoom { from { transform: scale(1.12); filter: brightness(0.4); } }
.hero__leak {
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(38% 30% at 18% 28%, rgba(255, 34, 48, 0.32), transparent 70%);
  filter: blur(50px);
  animation: leakDrift 16s var(--ease-in-out) infinite alternate;
  pointer-events: none;
}
@keyframes leakDrift {
  from { transform: translate(0, 0) scale(1); opacity: 0.65; }
  to   { transform: translate(7%, 9%) scale(1.18); opacity: 1; }
}
.hero__vignette {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(7,4,5,0.55) 0%, transparent 30%, transparent 55%, rgba(7,4,5,0.92) 100%),
    radial-gradient(120% 90% at 70% 35%, transparent 40%, rgba(7,4,5,0.65) 100%);
}
.hero__content { max-width: 1280px; width: 100%; margin-inline: auto; }
.hero__eyebrow {
  display: flex; align-items: center; gap: 0.75rem;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.3em;
  color: var(--grey); margin-bottom: clamp(1rem, 2.5vh, 2rem);
}
.hero__eyebrow .tick {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red); box-shadow: 0 0 12px var(--red);
  animation: pulse 2.2s infinite;
}
@keyframes pulse { 50% { opacity: 0.35; } }
.hero__title {
  font-size: clamp(3.4rem, 12.5vw, 11.5rem);
  font-weight: 900; letter-spacing: -0.045em; line-height: 0.92;
  text-wrap: balance;
}
.hero__row {
  display: block; overflow: hidden;
  /* generous side padding: the italic serif "p" overhangs left of its box;
     its descender tail needs ~0.3em on the left */
  padding: 0.14em 0.14em 0.14em 0.3em; margin: -0.14em -0.14em -0.14em -0.3em;
}
.hero__row > span { display: inline-block; }
.hero__row--serif em {
  font-weight: 400; letter-spacing: -0.02em;
  background: linear-gradient(100deg, var(--white) 35%, var(--red-soft) 70%, var(--red-bright));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  /* background-clip:text only paints ink inside the box — pad it so the
     "p" descender's left foot still gets the gradient */
  padding: 0.15em 0.15em 0.15em 0.3em; margin: -0.15em -0.15em -0.15em -0.3em;
}
.hero__sub {
  max-width: 38ch; margin-top: clamp(1.2rem, 3vh, 2rem);
  font-size: clamp(1rem, 1.4vw, 1.2rem); font-weight: 300; color: #cfc6c8;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: clamp(1.5rem, 3.5vh, 2.5rem); }
.hero__meta {
  max-width: 1280px; width: 100%; margin: clamp(2.5rem, 6vh, 4.5rem) auto 0;
  display: flex; align-items: flex-end; justify-content: space-between;
  padding-top: 1.2rem; border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.25em; color: var(--grey);
}
.hero__scroll { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }
.hero__scroll i {
  width: 1px; height: 38px;
  background: linear-gradient(var(--red), transparent);
  animation: scrollHint 1.8s var(--ease-in-out) infinite;
}
@keyframes scrollHint {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Hero entrance choreography */
[data-hero-line], [data-hero-word] {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
[data-hero-word] { transform: translateY(150%); transition-duration: 1.1s; }
body.is-loaded [data-hero-line], body.is-loaded [data-hero-word] { opacity: 1; transform: none; }
body.is-loaded [data-hero-word] { transition-delay: 0.15s; }
body.is-loaded .hero__row:nth-child(2) [data-hero-word] { transition-delay: 0.28s; }
body.is-loaded .hero__eyebrow { transition-delay: 0.5s; }
body.is-loaded .hero__sub { transition-delay: 0.6s; }
body.is-loaded .hero__actions { transition-delay: 0.72s; }
body.is-loaded .hero__meta { transition-delay: 0.9s; }

/* ============ Marquee ============ */
.marquee {
  overflow: clip; border-block: 1px solid var(--line);
  padding-block: 1.1rem; background: var(--ink);
}
.marquee__track {
  display: flex; width: max-content; white-space: nowrap;
  font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--grey);
  animation: marquee 28s linear infinite;
}
/* shift exactly one copy per cycle; JS sets --marquee-copies as it clones */
@keyframes marquee {
  to { transform: translateX(calc(-100% / var(--marquee-copies, 2))); }
}
/* ambient loops cost compositor work even off-screen; JS parks them */
.marquee.is-offstage .marquee__track,
.cta.is-offstage::after { animation-play-state: paused; }

/* ============ Craft ============ */
.craft {
  position: relative; padding: clamp(6rem, 14vh, 11rem) 0;
  overflow: clip;
}
.craft::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(45% 38% at 84% 8%, rgba(255, 34, 48, 0.13), transparent 70%),
    radial-gradient(50% 42% at 6% 96%, rgba(179, 11, 22, 0.11), transparent 70%);
}
.craft__statement {
  font-size: clamp(1.8rem, 4.6vw, 3.9rem);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.12;
  max-width: 22ch; text-wrap: balance;
}
.craft__statement em { color: var(--red); }
.craft__cols {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  margin-top: clamp(3.5rem, 8vh, 6.5rem);
}
.craft__col { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.craft__col h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.7rem; }
.craft__col p { font-size: 0.95rem; font-weight: 300; color: #c4bbbd; }

/* ============ Technology (full-bleed act) ============ */
.tech {
  position: relative; overflow: clip;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: space-between;
  padding-block: clamp(5rem, 12vh, 9rem) clamp(2rem, 5vh, 3.5rem);
}
.tech__bg { position: absolute; inset: -10% 0; z-index: 0; }
.tech__bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: 70% 60%;
  transform: scale(1.04);
}
.tech__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, var(--black) 0%, transparent 25%, transparent 72%, var(--black) 100%),
    linear-gradient(100deg, rgba(7,4,5,0.8) 0%, rgba(7,4,5,0.25) 55%, transparent 100%);
}
.tech__inner { position: relative; z-index: 2; }
.tech__title {
  font-size: clamp(3rem, 8.5vw, 7.5rem);
  font-weight: 900; letter-spacing: -0.045em; line-height: 0.95;
  max-width: 12ch;
}
.tech__title em {
  background: linear-gradient(100deg, var(--white) 25%, var(--red) 85%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.tech__lede {
  margin-block: clamp(1.4rem, 3vh, 2.2rem) clamp(1.8rem, 4vh, 2.6rem);
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  font-weight: 300; color: #d8cfd1; max-width: 46ch;
}
.tech__stats {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-top: clamp(3rem, 8vh, 5rem);
  padding-top: 1.6rem; border-top: 1px solid var(--line);
}
.tech__stat b {
  display: block;
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  font-weight: 900; letter-spacing: -0.03em; line-height: 1;
  color: var(--white);
}
.tech__stat b i { font-style: normal; }
.tech__stat span {
  display: block; margin-top: 0.6rem;
  font-size: 0.85rem; font-weight: 300; color: var(--grey); max-width: 30ch;
}

/* ============ Scenes (backdrop-switching list) ============ */
.scenes {
  position: relative; overflow: clip;
  min-height: 100svh;
  display: flex; align-items: center;
  padding-block: clamp(5rem, 12vh, 9rem);
}
.scenes__bgs { position: absolute; inset: 0; z-index: 0; }
.scenes__bgs img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06);
  transition: opacity 1s var(--ease-out), transform 6s var(--ease-out);
}
.scenes__bgs img.is-active { opacity: 1; transform: scale(1); }
.scenes__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, var(--black) 0%, rgba(7,4,5,0.72) 22%, rgba(7,4,5,0.72) 78%, var(--black) 100%),
    linear-gradient(90deg, rgba(7,4,5,0.78), rgba(7,4,5,0.2) 60%);
}
.scenes__inner { position: relative; z-index: 2; }
.scenes__title {
  font-size: clamp(2.2rem, 5.4vw, 4.6rem);
  font-weight: 800; letter-spacing: -0.035em; line-height: 1.05;
  max-width: 20ch; text-wrap: balance;
  margin-bottom: clamp(2.5rem, 6vh, 4.5rem);
}
.scenes__title em { color: var(--red); }
.scenes__list { list-style: none; }
.scene {
  display: grid;
  grid-template-columns: 3.5rem 1.2fr 1.6fr auto;
  align-items: baseline; gap: clamp(1rem, 2.5vw, 2.5rem);
  padding-block: clamp(1.2rem, 2.8vh, 1.9rem);
  border-top: 1px solid var(--line);
  cursor: pointer;
  transition: opacity 0.45s, padding-left 0.55s var(--ease-out);
}
.scenes__list .scene:last-child { border-bottom: 1px solid var(--line); }
.scene__idx {
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.2em;
  color: var(--grey); transition: color 0.45s;
}
.scene__name {
  font-size: clamp(1.9rem, 4.6vw, 4rem);
  font-weight: 800; letter-spacing: -0.035em; line-height: 1;
  color: var(--grey-dark); transition: color 0.45s;
}
.scene__line {
  font-size: 0.95rem; font-weight: 300; color: var(--grey);
  max-width: 40ch; opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}
.scene__tag {
  justify-self: end;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.22em;
  color: var(--red); opacity: 0; transition: opacity 0.55s;
}
.scene.is-active { padding-left: clamp(0.4rem, 1.5vw, 1.2rem); }
.scene.is-active .scene__idx { color: var(--red); }
.scene.is-active .scene__name { color: var(--white); }
.scene.is-active .scene__line { opacity: 1; transform: none; }
.scene.is-active .scene__tag { opacity: 1; }
.scene:focus-visible .scene__name { color: var(--white); }

/* ============ Principles (light, editorial) ============ */
.principles { margin-top: clamp(3rem, 7vh, 5.5rem); }
.principle {
  display: grid; grid-template-columns: clamp(4rem, 10vw, 9rem) 1fr;
  gap: clamp(1.2rem, 3vw, 3rem); align-items: start;
  padding-block: clamp(1.8rem, 4vh, 2.8rem);
  border-top: 1px solid var(--line-dark);
}
.principle:last-child { border-bottom: 1px solid var(--line-dark); }
.principle__num {
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(2.4rem, 5.5vw, 4.5rem); line-height: 0.9;
  color: var(--red-deep);
}
.principle__body h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.9rem);
  font-weight: 700; letter-spacing: -0.02em;
}
.principle__body p {
  margin-top: 0.7rem; max-width: 52ch;
  font-size: clamp(0.95rem, 1.2vw, 1.05rem); color: #4a4244;
}

/* ============ Design (light act) ============ */
.design {
  position: relative; overflow: clip;
  padding: clamp(6rem, 14vh, 11rem) 0;
  background: var(--paper); color: var(--ink);
  border-radius: 32px 32px 0 0;
}
.design__bg { position: absolute; inset: -12% 0; z-index: 0; opacity: 0.85; }
.design__bg img { width: 100%; height: 100%; object-fit: cover; }
.design::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(244,241,239,0.4), rgba(244,241,239,0.05) 40%, rgba(244,241,239,0.55));
  pointer-events: none;
}
.design__inner { position: relative; z-index: 2; }
.design__title {
  font-size: clamp(2.4rem, 6vw, 5.4rem);
  font-weight: 800; letter-spacing: -0.04em; line-height: 1.02;
  max-width: 16ch; text-wrap: balance;
}
.design__title em { color: var(--red-deep); }
.design__lede {
  margin-top: 1.6rem; max-width: 52ch;
  font-size: clamp(1rem, 1.4vw, 1.2rem); font-weight: 400; color: #4a4244;
}
/* (principle rows replace the old framed panels) */

/* ============ Specs ============ */
.specs {
  position: relative; overflow: clip;
  padding: clamp(6rem, 14vh, 11rem) 0;
  background: var(--black);
}
.specs__bg { position: absolute; inset: -12% 0; z-index: 0; opacity: 0.55; }
.specs__bg img { width: 100%; height: 100%; object-fit: cover; }
.specs::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, var(--black), rgba(7,4,5,0.35) 40%, var(--black));
}
.specs .container { position: relative; z-index: 2; }
.specs__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.spec { border-top: 1px solid var(--line); padding-top: 1.6rem; }
.spec__num {
  display: block;
  font-size: clamp(2.8rem, 6.5vw, 5.5rem);
  font-weight: 900; letter-spacing: -0.04em; line-height: 1;
}
.spec__num b { font-weight: 900; }
.spec__label {
  display: block; margin-top: 0.8rem;
  font-size: 0.85rem; font-weight: 300; color: var(--grey);
}

/* ============ CTA ============ */
.cta {
  position: relative; overflow: clip;
  padding: clamp(7rem, 18vh, 13rem) 0;
  text-align: center;
}
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(52% 46% at 50% 44%, rgba(255, 34, 48, 0.2), transparent 70%),
    radial-gradient(110% 100% at 50% 50%, transparent 35%, rgba(7, 4, 5, 0.9) 100%);
  pointer-events: none;
}
/* eclipse echo — the loader ring returns behind the closing line.
   The 50svh term keys the ring to viewport height as well as width, so the
   glow stays inside the section's clip edge on short windows too. */
.cta::after {
  content: ""; position: absolute; z-index: 1;
  top: 50%; left: 50%;
  width: min(56vw, 50svh, 520px); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(255, 34, 48, 0.28);
  box-shadow: 0 0 60px rgba(255, 34, 48, 0.18), inset 0 0 60px rgba(255, 34, 48, 0.09);
  pointer-events: none;
  --ring-from: 0.97; --ring-to: 1.02; --ring-min: 0.6; /* gentler than the loader */
  animation: ringPulse 3.4s var(--ease-in-out) infinite alternate;
}
.cta__inner { position: relative; z-index: 2; }
.cta__title {
  font-size: clamp(3rem, 9vw, 8rem);
  font-weight: 900; letter-spacing: -0.045em; line-height: 0.95;
}
.cta__title em {
  background: linear-gradient(100deg, var(--white) 20%, var(--red) 80%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.cta__sub { margin-top: 1.4rem; font-weight: 300; color: #d8cfd1; }
.cta__form {
  display: flex; gap: 0.7rem; justify-content: center; flex-wrap: wrap;
  margin-top: 2.4rem;
}
.cta__form input {
  width: min(360px, 100%);
  padding: 1rem 1.5rem; border-radius: 99px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--line);
  color: var(--white); font-family: var(--font-display); font-size: 0.95rem;
  transition: border-color 0.3s, background 0.3s;
}
.cta__form input::placeholder { color: var(--grey); }
.cta__form input:focus { border-color: var(--red); background: rgba(255,255,255,0.1); }
.cta__fine { margin-top: 1.1rem; font-size: 0.78rem; color: var(--grey); }

/* ============ Footer ============ */
.footer {
  background: var(--ink); border-top: 1px solid var(--line);
  overflow: clip;
}
.footer__top {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2rem; padding-block: clamp(3rem, 7vh, 5rem) 2rem;
}
.footer__col { display: flex; flex-direction: column; gap: 0.55rem; }
.footer__col h4 {
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 400;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--red); margin-bottom: 0.6rem;
}
.footer__col a { font-size: 0.92rem; color: var(--grey); transition: color 0.3s; width: fit-content; }
.footer__col a:hover { color: var(--white); }
.footer__col--note p { font-size: 0.92rem; color: var(--grey); }
.footer__wordmark {
  font-size: clamp(4rem, 17.5vw, 16.5rem);
  font-weight: 900; letter-spacing: -0.05em; line-height: 0.8;
  text-align: center;
  margin-bottom: -0.12em;
  background: linear-gradient(180deg, rgba(255,34,48,0.55), rgba(255,34,48,0.02));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  user-select: none; pointer-events: none; will-change: transform;
}
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding-block: 1.4rem; border-top: 1px solid var(--line);
  font-size: 0.78rem; color: var(--grey);
}
.footer__up { transition: color 0.3s; }
.footer__up:hover { color: var(--red); }

/* ============ Reveal system ============ */
[data-reveal] {
  opacity: 0; transform: translateY(46px);
  filter: blur(10px);
  transition: opacity 0.95s var(--ease-out), transform 0.95s var(--ease-out),
    filter 0.95s var(--ease-out);
}
[data-reveal].is-visible { opacity: 1; transform: none; filter: none; }
[data-reveal-delay="1"] { transition-delay: 0.12s; }
[data-reveal-delay="2"] { transition-delay: 0.24s; }
[data-reveal-delay="3"] { transition-delay: 0.36s; }

/* split text (JS wraps words) */
[data-split] .w {
  display: inline-block; overflow: clip; vertical-align: top;
  /* breathing room inside the clip box so descenders and italic overhangs
     aren't sheared; negative margins cancel the layout shift. 0.14em per
     side is what the Instrument Serif italics need (matches .hero__row). */
  padding: 0.14em; margin: -0.14em;
}
[data-split] .w > i {
  display: inline-block; font-style: inherit;
  transform: translateY(150%);
  transition: transform 0.9s var(--ease-out);
  transition-delay: calc(0.035s * var(--wi, 0));
}
[data-split].is-visible .w > i { transform: none; }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .specs__grid { grid-template-columns: repeat(2, 1fr); row-gap: 3rem; }
  .scene { grid-template-columns: 2.6rem 1fr auto; }
  .scene__line { grid-column: 2 / -1; max-width: 56ch; }
}

@media (max-width: 760px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .hero { padding-bottom: 1.4rem; }
  .hero__title { font-size: clamp(3.6rem, 16.5vw, 6rem); }
  .hero__meta span:first-child, .hero__meta span:last-child { display: none; }
  .hero__meta { justify-content: center; }
  .marquee__track { font-size: 0.92rem; }
  .craft__cols { grid-template-columns: 1fr; gap: 1.8rem; }
  .tech__title { font-size: clamp(3rem, 14.5vw, 7.5rem); }
  .tech__stats { grid-template-columns: 1fr; gap: 1.4rem; }
  .tech__stat { display: flex; align-items: baseline; gap: 1rem; }
  .tech__stat b { min-width: 4.8ch; }
  .tech__stat span { margin-top: 0; max-width: none; }
  .scenes__title { font-size: clamp(2.4rem, 10vw, 4.6rem); }
  .scene { grid-template-columns: 2.6rem 1fr; padding-block: 1.5rem; }
  .scene__name { font-size: clamp(2.5rem, 11vw, 4rem); }
  .scene__tag { display: none; }
  .scene.is-active { padding-left: 0; }
  .principle { grid-template-columns: clamp(3rem, 14vw, 4.5rem) 1fr; }
  .design__title { font-size: clamp(2.6rem, 12vw, 5.4rem); }
  .cta__title { font-size: clamp(3.2rem, 14vw, 8rem); }
  .footer__top { grid-template-columns: repeat(2, 1fr); }
  .cta__form { flex-direction: column; align-items: stretch; }
  .cta__form .btn { width: 100%; }
  .cta__form input { text-align: center; }
  .btn:active { transform: scale(0.96); transition-duration: 0.15s; }
  .scene:active .scene__name { color: var(--white); }
}

@media (max-width: 480px) {
  .specs__grid { grid-template-columns: 1fr 1fr; }
}

/* ============ 404 ============ */
.lost {
  min-height: 100svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  gap: 1.2rem; padding: var(--gutter);
}
.lost__ring {
  width: 72px; aspect-ratio: 1; border-radius: 50%;
  border: 3px solid var(--red);
  box-shadow: 0 0 60px rgba(255, 34, 48, 0.35);
}
.lost__code {
  font-family: var(--font-mono); font-size: 0.8rem;
  letter-spacing: 0.3em; color: var(--grey);
}
.lost__title {
  font-size: clamp(2.4rem, 8vw, 5rem);
  font-weight: 900; letter-spacing: -0.04em; line-height: 1;
}
.lost__title em { color: var(--red); }
.lost__sub { font-weight: 300; color: var(--grey); max-width: 38ch; }
.lost a.btn { margin-top: 1rem; }

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  [data-reveal], [data-hero-line], [data-hero-word] { opacity: 1; transform: none; filter: none; }
  [data-split] .w > i { transform: none; }
}
