/* ═══════════════════════════════════════════════════════════════
   ARCFORM° — signature effect layer
   Tailwind handles layout & spacing. This file owns the character:
   grain, aurora, reveals, magnetics, spotlights, 3D, motion.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --ink:   #04050A;
  --deep:  #080A12;
  --slab:  #0C0F1A;
  --mist:  #E9EAF4;
  --haze:  #9AA0B8;
  --faint: #5B6178;
  --iris:  #7C6BFF;
  --aqua:  #4FD1FF;
  --ember: #FF7A59;
  --sand:  #FFCB7D;
  --line:  rgba(255, 255, 255, 0.075);
  --line-2: rgba(255, 255, 255, 0.14);
  --ease:  cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ── Base ───────────────────────────────────────────────────── */

* { -webkit-tap-highlight-color: transparent; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  background: var(--ink);
  /* Reserve the scrollbar gutter so unlocking scroll after the glass
     shatters doesn't shift the whole layout sideways. */
  scrollbar-gutter: stable;
}

body {
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.is-locked { overflow: hidden; }

::selection { background: rgba(124, 107, 255, 0.35); color: #fff; }

::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--iris), var(--aqua));
  border-radius: 99px;
  border: 2px solid var(--ink);
}

:focus-visible {
  outline: 2px solid var(--aqua);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Fluid display type */
.display {
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.95;
  font-size: clamp(2.65rem, 8.2vw, 7.5rem);
}
.display-sm {
  font-weight: 600;
  letter-spacing: -0.042em;
  line-height: 1.02;
  font-size: clamp(2.1rem, 5.4vw, 4.35rem);
}
.display em,
.display-sm em {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.015em;
  background: linear-gradient(100deg, var(--sand), var(--ember) 32%, var(--iris) 68%, var(--aqua));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.06em;
}

.eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--haze);
}

.rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2) 18%, var(--line-2) 82%, transparent);
}

/* ── Ambient overlays ───────────────────────────────────────── */

.grain {
  position: fixed;
  inset: -50%;
  z-index: 60;
  pointer-events: none;
  opacity: 0.26;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  animation: grain-shift 0.6s steps(2) infinite;
}
@keyframes grain-shift {
  0%   { transform: translate(0, 0); }
  50%  { transform: translate(-2.5%, 1.8%); }
  100% { transform: translate(1.4%, -2.2%); }
}

.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 70;
  pointer-events: none;
}
.progress i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--iris), var(--aqua) 45%, var(--ember) 80%, var(--sand));
  box-shadow: 0 0 14px rgba(124, 107, 255, 0.85);
}

/* ── Custom cursor (pointer devices only) ───────────────────── */

.cursor { display: none; }

@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: block;
    position: fixed;
    top: 0; left: 0;
    z-index: 95; /* above the glass pane (90) — it tracks the cracks */
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s;
  }
  .cursor.is-live { opacity: 1; }
  .cursor-dot,
  .cursor-ring {
    position: absolute;
    border-radius: 999px;
    transform: translate(-50%, -50%);
  }
  .cursor-dot {
    width: 5px; height: 5px;
    background: var(--mist);
  }
  .cursor-ring {
    width: 34px; height: 34px;
    border: 1px solid rgba(233, 234, 244, 0.5);
    mix-blend-mode: difference;
    transition: width 0.32s var(--ease), height 0.32s var(--ease),
                background 0.32s var(--ease), border-color 0.32s var(--ease);
  }
  .cursor.is-hover .cursor-ring {
    width: 62px; height: 62px;
    background: rgba(233, 234, 244, 0.12);
    border-color: transparent;
  }
  .cursor.is-hover .cursor-dot { opacity: 0; }
}

/* ── Glass intro ────────────────────────────────────────────────
   A white sheet over the whole viewport. Cracks trace the pointer;
   the first scroll shatters it into the shards tiled inside .glass-pane.
   Shards and pane share ONE viewport-sized background image (offset per
   shard) so the sheet reads as continuous until it breaks.
   ─────────────────────────────────────────────────────────────── */

.glass {
  --pane: radial-gradient(125% 95% at 50% 8%, #FFFFFF 0%, #F4F5FA 44%, #E5E8F2 78%, #D9DDEB 100%);
  position: fixed;
  inset: 0;
  z-index: 90;
  overflow: hidden;
  touch-action: none;
  overscroll-behavior: none;
  cursor: crosshair;
}
.glass.is-out {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease;
}
.glass.is-gone { display: none; }

.glass-pane {
  position: absolute;
  inset: 0;
  perspective: 1500px;
  transform-style: preserve-3d;
  background-image: var(--pane);
  background-repeat: no-repeat;
}

.shard {
  position: absolute;
  display: block;
  background-image: var(--pane);
  background-repeat: no-repeat;
  backface-visibility: hidden;
  will-change: transform, opacity;
}

.glass-cracks {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.glass-hud {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
  pointer-events: none;
  transition: opacity 0.45s var(--ease), transform 0.7s var(--ease), filter 0.45s;
}
.glass-mark { width: 54px; height: 54px; }
.glass-mark path {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: draw 1.5s var(--ease) forwards;
}
.glass-mark path:nth-child(2) { animation-delay: 0.16s; }
.glass-mark path:nth-child(3) { animation-delay: 0.3s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.glass-word {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.62em;
  text-indent: 0.62em;
  color: #5E6478;
  opacity: 0;
  animation: fade-up 0.9s 0.4s var(--ease) forwards;
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

.glass-track {
  width: 168px;
  height: 1px;
  background: rgba(18, 20, 30, 0.12);
  overflow: hidden;
  transition: opacity 0.5s ease;
}
.glass-track i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--iris), var(--aqua));
}

.glass-hint {
  position: absolute;
  left: 50%;
  bottom: 2.6rem;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  white-space: nowrap;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #6C7288;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}
.glass-hint.is-live { opacity: 0.92; }
.glass-hint i {
  display: block;
  font-style: normal;
  animation: nudge 1.9s var(--ease-io) infinite;
}
@keyframes nudge {
  0%, 100% { transform: translateY(0); opacity: 0.45; }
  50%      { transform: translateY(5px); opacity: 1; }
}

.glass.is-breaking {
  cursor: default;
  /* The page is live the moment the sheet gives way. */
  pointer-events: none;
  /* The backdrop dissolves with the shards, so the gaps open onto the page
     instead of a flat white screen. !important overrides the inline
     first-paint background set in index.html. The opacity leg belongs here
     too: this rule outranks .glass.is-out on source order, and dropping it
     would snap the layer away instead of fading it. */
  background-color: transparent !important;
  transition: background-color 0.7s ease, opacity 0.6s ease;
}
.glass.is-breaking .glass-pane { background-image: none; }
.glass.is-breaking .glass-hud {
  opacity: 0;
  transform: translate(-50%, -50%) scale(1.07);
  filter: blur(5px);
}
.glass.is-breaking .glass-hint { opacity: 0; }

/* ── Navigation ─────────────────────────────────────────────── */

.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: transform 0.5s var(--ease), background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.site-nav[data-state="lifted"] {
  background: rgba(6, 8, 14, 0.72);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: var(--line);
}
.site-nav[data-state="hidden"] { transform: translateY(-104%); }

.nav-link {
  position: relative;
  padding: 0.35rem 0;
  color: var(--haze);
  transition: color 0.28s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, var(--iris), var(--aqua));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.42s var(--ease);
}
.nav-link:hover { color: var(--mist); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }

.burger { width: 26px; height: 12px; position: relative; }
.burger i {
  position: absolute;
  left: 0;
  width: 100%; height: 1.5px;
  background: var(--mist);
  border-radius: 2px;
  transition: transform 0.45s var(--ease), opacity 0.25s;
}
.burger i:nth-child(1) { top: 0; }
.burger i:nth-child(2) { bottom: 0; width: 62%; }
.is-open .burger i:nth-child(1) { transform: translateY(5.25px) rotate(45deg); }
.is-open .burger i:nth-child(2) { transform: translateY(-5.25px) rotate(-45deg); width: 100%; }

/* Fullscreen mobile menu */
.menu {
  position: fixed;
  inset: 0;
  z-index: 49;
  background: rgba(4, 5, 10, 0.97);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.75s var(--ease);
  pointer-events: none;
}
.menu.is-open {
  clip-path: inset(0 0 0 0);
  pointer-events: auto;
}
.menu-item {
  overflow: hidden;
  display: block;
}
.menu-item > span {
  display: block;
  transform: translateY(105%);
  transition: transform 0.7s var(--ease);
}
.menu.is-open .menu-item > span { transform: none; }

/* ── Hero canvas ────────────────────────────────────────────────
   .atmos deliberately overhangs the hero so the crystal field bleeds
   past it — through the marquee band and into the top of the showreel
   — instead of stopping dead at 100svh.
   ─────────────────────────────────────────────────────────────── */

.atmos {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: calc(100svh + 40vh);
  z-index: 0;
  pointer-events: none;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.hero-fallback {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 55% at 22% 28%, rgba(124, 107, 255, 0.55), transparent 68%),
    radial-gradient(55% 50% at 78% 34%, rgba(79, 209, 255, 0.42), transparent 66%),
    radial-gradient(70% 60% at 52% 88%, rgba(255, 122, 89, 0.34), transparent 70%),
    var(--ink);
  filter: blur(28px);
  animation: drift 22s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: scale(1.05) translate3d(-1.5%, 0, 0); }
  to   { transform: scale(1.18) translate3d(2.5%, -2%, 0); }
}

.hero-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(66% 46% at 50% 33%, transparent 6%, rgba(4, 5, 10, 0.44) 58%, rgba(4, 5, 10, 0.84) 100%),
    linear-gradient(to bottom,
      rgba(4, 5, 10, 0.84) 0%,
      rgba(4, 5, 10, 0.12) 20%,
      transparent 46%,
      rgba(4, 5, 10, 0.42) 74%,
      var(--ink) 96%);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 200px 50px rgba(4, 5, 10, 0.75);
}

/* ── Text reveals ───────────────────────────────────────────── */

.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}
.w > i {
  display: inline-block;
  font-style: inherit;
  transform: translateY(112%);
  opacity: 0;
  transition:
    transform 0.95s var(--ease),
    opacity 0.7s ease;
  transition-delay: calc(var(--i, 0) * 52ms + var(--base, 0ms));
}
.is-in .w > i { transform: none; opacity: 1; }

.reveal {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(5px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease),
    filter 0.9s var(--ease);
  transition-delay: var(--d, 0ms);
}
.is-in.reveal,
.is-in .reveal { opacity: 1; transform: none; filter: none; }

.line-grow {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.15s var(--ease) var(--d, 0ms);
}
.is-in .line-grow { transform: scaleX(1); }

/* ── Buttons ────────────────────────────────────────────────── */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--ease), box-shadow 0.4s, color 0.3s, border-color 0.3s;
  will-change: transform;
}

.btn-primary {
  color: #07070C;
  background: linear-gradient(96deg, #FFFFFF, #D9DCF0);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 16px 44px -18px rgba(124, 107, 255, 0.9);
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(96deg, var(--sand), var(--ember) 34%, var(--iris) 70%, var(--aqua));
  opacity: 0;
  transition: opacity 0.42s var(--ease);
}
.btn-primary:hover { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 22px 60px -18px rgba(124, 107, 255, 1); }
.btn-primary:hover::before { opacity: 1; }

.btn-ghost {
  color: var(--mist);
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.06);
}

/* Sheen sweep */
.btn::after {
  content: "";
  position: absolute;
  top: 0; left: -130%;
  width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  transform: skewX(-22deg);
  transition: left 0.75s var(--ease);
}
.btn:hover::after { left: 150%; }

.btn-arrow { transition: transform 0.4s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ── Surfaces ───────────────────────────────────────────────── */

.card {
  position: relative;
  border-radius: 22px;
  border: 1px solid var(--line);
  background:
    linear-gradient(168deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012) 42%, transparent 78%),
    rgba(9, 11, 19, 0.72);
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.45s, transform 0.55s var(--ease), box-shadow 0.55s;
}
.card:hover {
  border-color: var(--line-2);
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.9);
}

/* Cursor-tracking spotlight */
.spot::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.45s;
  background: radial-gradient(
    340px circle at var(--mx, 50%) var(--my, 50%),
    rgba(124, 107, 255, 0.24),
    rgba(79, 209, 255, 0.09) 42%,
    transparent 68%
  );
}
.spot:hover::before { opacity: 1; }

/* Animated conic border for the featured tier */
.beam {
  position: relative;
}
.beam::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from var(--beam-angle, 0deg),
    transparent 0%,
    var(--iris) 12%,
    var(--aqua) 20%,
    var(--sand) 27%,
    transparent 40%,
    transparent 100%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: beam-spin 5.5s linear infinite;
  pointer-events: none;
}
@property --beam-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
@keyframes beam-spin { to { --beam-angle: 360deg; } }

.glow-under::after {
  content: "";
  position: absolute;
  left: 12%; right: 12%;
  bottom: -40px;
  height: 90px;
  background: radial-gradient(50% 100% at 50% 100%, rgba(124, 107, 255, 0.55), transparent 72%);
  filter: blur(26px);
  z-index: -1;
  pointer-events: none;
}

/* ── Marquee ────────────────────────────────────────────────── */

.marquee {
  display: flex;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.marquee-track {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 3rem;
  padding-right: 3rem;
  animation: slide var(--speed, 34s) linear infinite;
  will-change: transform;
}
.marquee[data-dir="rev"] .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-100%); } }

/* ── Bento visuals ──────────────────────────────────────────── */

/* No `position` here — these elements take Tailwind position utilities. */
.viz { overflow: hidden; }

/* orb */
.viz-orb i {
  position: absolute;
  border-radius: 999px;
  filter: blur(24px);
  animation: orb 9s ease-in-out infinite alternate;
}
.viz-orb i:nth-child(1) { width: 130px; height: 130px; right: 8%;  top: 12%; background: rgba(124, 107, 255, 0.75); }
.viz-orb i:nth-child(2) { width: 96px;  height: 96px;  right: 32%; top: 44%; background: rgba(79, 209, 255, 0.6); animation-delay: -3s; }
.viz-orb i:nth-child(3) { width: 74px;  height: 74px;  right: 16%; top: 58%; background: rgba(255, 203, 125, 0.5); animation-delay: -6s; }
@keyframes orb {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-22px, 18px, 0) scale(1.22); }
}

/* code */
.viz-code {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6875rem;
  line-height: 1.85;
  color: var(--faint, #5B6178);
}
.viz-code b { color: var(--iris); font-weight: 400; }
.viz-code u { color: var(--aqua); text-decoration: none; }
.viz-code s { color: var(--sand); text-decoration: none; }
.viz-code em { color: var(--haze); font-style: normal; }
.viz-code .caret {
  display: inline-block;
  width: 6px; height: 1em;
  background: var(--aqua);
  vertical-align: -2px;
  animation: blink 1.1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* score ring */
.ring-track { stroke: rgba(255, 255, 255, 0.09); }
.ring-fill {
  stroke-dasharray: 226;
  stroke-dashoffset: 226;
  transition: stroke-dashoffset 1.9s var(--ease) 0.15s;
}
.is-in .ring-fill { stroke-dashoffset: 6; }

/* palette */
.viz-palette span {
  display: block;
  height: 100%;
  flex: 1;
  transition: flex 0.55s var(--ease);
}
.viz-palette:hover span:nth-child(2) { flex: 2.4; }

/* pulse / equalizer */
.viz-pulse i {
  display: block;
  width: 3px;
  border-radius: 99px;
  background: linear-gradient(to top, var(--iris), var(--aqua));
  animation: eq 1.5s ease-in-out infinite alternate;
}
@keyframes eq { from { height: 18%; opacity: 0.45; } to { height: 100%; opacity: 1; } }

/* cart */
.viz-cart i {
  display: block;
  border-radius: 6px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--line);
  animation: hop 3.4s var(--ease) infinite;
}
@keyframes hop {
  0%, 62%, 100% { transform: translateY(0); }
  72% { transform: translateY(-9px); }
  84% { transform: translateY(0); }
}

/* ── 3D showreel browser ────────────────────────────────────── */

.reel-stage {
  perspective: 1600px;
  perspective-origin: 50% 32%;
}
.reel-frame {
  transform-style: preserve-3d;
  transform:
    rotateX(var(--rx, 26deg))
    scale(var(--sc, 0.78))
    translateY(var(--ty, 4vh));
  transition: box-shadow 0.6s;
  box-shadow:
    0 60px 120px -50px rgba(0, 0, 0, 0.95),
    0 0 0 1px var(--line-2),
    0 0 90px -30px rgba(124, 107, 255, 0.55);
  will-change: transform;
}
.reel-glow {
  position: absolute;
  left: 8%; right: 8%;
  bottom: -6%;
  height: 46%;
  background: radial-gradient(50% 100% at 50% 100%, rgba(124, 107, 255, 0.5), transparent 70%);
  filter: blur(46px);
  opacity: var(--glow, 0.5);
  pointer-events: none;
}

/* fake site inside the frame */
.mini-hero {
  background:
    radial-gradient(90% 120% at 18% 0%, rgba(124, 107, 255, 0.4), transparent 60%),
    radial-gradient(80% 110% at 92% 24%, rgba(255, 122, 89, 0.3), transparent 62%),
    linear-gradient(180deg, #0B0E18, #070910);
}
.mini-shimmer {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
  background-size: 200% 100%;
  animation: shimmer 2.8s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ── Work cards ─────────────────────────────────────────────── */

.tilt {
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease);
  will-change: transform;
}
.work-art {
  position: relative;
  overflow: hidden;
  transition: transform 0.9s var(--ease);
}
.card:hover .work-art { transform: scale(1.045); }

.work-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4, 5, 10, 0.94), transparent 62%);
}
.hue-iris  { background: radial-gradient(115% 95% at 22% 12%, #8F7BFF, #3B2E9E 44%, #0A0B18 82%); }
.hue-aqua  { background: radial-gradient(115% 95% at 78% 16%, #5BD8FF, #17607F 46%, #060F16 82%); }
.hue-ember { background: radial-gradient(115% 95% at 30% 18%, #FF8F6E, #8A3722 46%, #170A08 82%); }
.hue-sand  { background: radial-gradient(115% 95% at 72% 14%, #FFD79A, #8C6430 46%, #16110A 82%); }

.metric-num {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  letter-spacing: -0.02em;
}

/* ── Process rail ───────────────────────────────────────────── */

.rail {
  position: absolute;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--line);
  overflow: hidden;
}
.rail i {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--iris), var(--aqua) 55%, var(--sand));
  transform: scaleY(var(--p, 0));
  transform-origin: top;
  box-shadow: 0 0 16px rgba(124, 107, 255, 0.9);
}
.node { transition: background 0.5s, box-shadow 0.5s, border-color 0.5s; }
.is-in .node {
  background: var(--iris);
  border-color: var(--iris);
  box-shadow: 0 0 0 5px rgba(124, 107, 255, 0.16), 0 0 22px rgba(124, 107, 255, 0.75);
}

/* ── Accordion ──────────────────────────────────────────────── */

.acc-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s var(--ease);
}
.acc-body > div { overflow: hidden; }
.acc.is-open .acc-body { grid-template-rows: 1fr; }

.acc-icon i {
  position: absolute;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.45s var(--ease), opacity 0.3s;
}
.acc-icon i:nth-child(1) { top: 50%; left: 0; width: 100%; height: 1.5px; margin-top: -0.75px; }
.acc-icon i:nth-child(2) { left: 50%; top: 0; height: 100%; width: 1.5px; margin-left: -0.75px; }
.acc.is-open .acc-icon i:nth-child(2) { transform: rotate(90deg); opacity: 0; }
.acc.is-open .acc-icon { color: var(--iris); }

/* ── Contact ────────────────────────────────────────────────── */

.field {
  width: 100%;
  background: transparent;
  border: 0;
  color: var(--mist);
  font-size: 1rem;
  outline: none;
}
.field::placeholder { color: var(--faint, #5B6178); }

.field-shell {
  transition: border-color 0.4s, box-shadow 0.4s, background 0.4s;
}
.field-shell:focus-within {
  border-color: rgba(124, 107, 255, 0.6);
  box-shadow: 0 0 0 4px rgba(124, 107, 255, 0.12);
  background: rgba(255, 255, 255, 0.035);
}

/* ── Footer wordmark ────────────────────────────────────────── */

.wordmark {
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.78;
  font-size: clamp(3.6rem, 19vw, 17rem);
  background: linear-gradient(180deg, rgba(233, 234, 244, 0.2), rgba(233, 234, 244, 0.02) 78%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
}

.to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 45;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(9, 11, 19, 0.78);
  backdrop-filter: blur(10px);
  color: var(--haze);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.45s, transform 0.45s var(--ease), color 0.3s, border-color 0.3s;
}
.to-top svg { width: 17px; height: 17px; }
.to-top.is-live { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { color: var(--mist); border-color: rgba(255, 255, 255, 0.32); }

/* ── Responsive ─────────────────────────────────────────────── */

@media (max-width: 767px) {
  .grain { opacity: 0.18; }
  .reel-stage { perspective: 900px; }
  .marquee-track { gap: 2rem; padding-right: 2rem; }
  .to-top { right: 1rem; bottom: 1rem; }
}

@media (max-width: 400px) {
  .display { font-size: clamp(2.25rem, 11vw, 3rem); }
}

/* ── Reduced motion ─────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .grain { display: none; }
  .w > i { transform: none; opacity: 1; }
  .reveal { opacity: 1; transform: none; filter: none; }
  .line-grow { transform: scaleX(1); }
  .ring-fill { stroke-dashoffset: 6; }
  .reel-frame { --rx: 0deg; --sc: 1; --ty: 0; }
}
