/* ==========================================================================
   ELEVATIONE — base styles
   Design tokens, reset, global texture, shared components.
   Aesthetic: "Vapor Clinic" — a genome sequencing lab inside a Tokyo nightclub.
   ========================================================================== */

:root {
  /* Palette */
  --void: #0a0a14; /* primary dark */
  --plasma: #7b61ff; /* accent */
  --plasma-deep: #5b45d6; /* accent hover layer */
  --ghost: #f0eff4; /* light background */
  --graphite: #18181b; /* body text */

  /* Typography */
  --font-sans: 'Sora', system-ui, sans-serif;
  --font-drama: 'Instrument Serif', Georgia, serif;
  --font-mono: 'Fira Code', ui-monospace, monospace;

  /* Motion */
  --ease-magnetic: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

body,
h1,
h2,
h3,
h4,
p,
figure,
ul,
ol {
  margin: 0;
}

ul[class],
ol[class] {
  padding: 0;
  list-style: none;
}

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

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

button {
  font: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--ghost);
  color: var(--graphite);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection {
  background: var(--plasma);
  color: var(--ghost);
}

/* ---- Global film-grain noise overlay — kills flat digital gradients ---- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.05;
  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.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ==========================================================================
   Shared components
   ========================================================================== */

/* ---- Magnetic pill button ----
   Markup:
   <a class="btn btn--accent" href="#membership">
     <span class="btn__layer" aria-hidden="true"></span>
     <span class="btn__label">Book a consultation</span>
   </a>
*/
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  overflow: hidden;
  border-radius: 9999px;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1;
  transition: transform 0.3s var(--ease-magnetic), color 0.3s var(--ease-magnetic);
}

.btn:hover {
  transform: scale(1.03);
}

.btn:active {
  transform: scale(0.98);
}

.btn__layer {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.3s var(--ease-magnetic);
}

.btn:hover .btn__layer {
  transform: translateY(0);
}

.btn__label {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn--accent {
  background: var(--plasma);
  color: #fff;
}
.btn--accent .btn__layer {
  background: var(--plasma-deep);
}

.btn--dark {
  background: var(--void);
  color: var(--ghost);
}
.btn--dark .btn__layer {
  background: var(--plasma);
}

.btn--outline {
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
}
.btn--outline:hover {
  color: var(--ghost);
}
.btn--outline .btn__layer {
  background: var(--plasma);
}

.btn--sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.75rem;
}

.btn--block {
  width: 100%;
}

/* ---- Interactive lift for links and small controls ---- */
.link-lift {
  display: inline-block;
  transition: transform 0.3s var(--ease-magnetic), color 0.3s var(--ease-magnetic);
}

.link-lift:hover {
  transform: translateY(-1px);
}

/* ---- Type helpers ---- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--plasma);
}

.drama {
  font-family: var(--font-drama);
  font-style: italic;
  font-weight: 400;
}

/* ---- Pulsing status dot ----
   Markup: <span class="status-dot" style="--dot-color: #34d399;"></span>
   Defaults to emerald; override --dot-color for plasma etc.
*/
.status-dot {
  position: relative;
  display: inline-flex;
  width: 8px;
  height: 8px;
  flex-shrink: 0;
}

.status-dot::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--dot-color, #34d399);
  opacity: 0.75;
  animation: ping 1.2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.status-dot::after {
  content: '';
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dot-color, #34d399);
}

/* ---- Keyframes ---- */
@keyframes ping {
  75%,
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.blink {
  animation: blink 1s steps(1) infinite;
}

/* ---- Visually hidden, available to screen readers ---- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---- Masked character reveals (built by SITE.splitChars) ---- */
.char-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.char {
  display: inline-block;
  will-change: transform;
}

/* ---- Smooth scrolling (Lenis drives the scroll when active) ----
   The class deliberately avoids the substring "lenis": Lenis's class
   cleanup would strip it out of the html element's className. */
html.has-smoothing {
  scroll-behavior: auto;
}

/* ---- Reduced motion: collapse every looping/decorative animation ---- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* ==========================================================================
   PRELOADER
   ========================================================================== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--void);
  color: var(--ghost);
}

.preloader__inner {
  width: min(26rem, 80vw);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.preloader__wordmark {
  font-family: var(--font-sans);
  font-size: clamp(1.75rem, 6vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1;
}

.preloader__dot {
  color: var(--plasma);
}

.preloader__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.3em;
  color: rgba(240, 239, 244, 0.4);
}

.preloader__count {
  color: var(--plasma);
}

.preloader__bar {
  position: relative;
  height: 1px;
  background: rgba(240, 239, 244, 0.15);
  overflow: hidden;
}

.preloader__bar-fill {
  position: absolute;
  inset: 0;
  background: var(--plasma);
  transform: scaleX(0);
  transform-origin: left center;
}


/* ==========================================================================
   NAVBAR
   ========================================================================== */
/* =========================================================================
   NAVBAR — "The Floating Island"
   ========================================================================= */

/* Fixed shell, centered with auto margins (NOT translateX — GSAP animates
   the transform on entrance, so centering must not live on `transform`). */
.navbar {
  position: fixed;
  top: 1.25rem;
  left: 0;
  right: 0;
  margin-inline: auto;
  width: fit-content;
  max-width: calc(100% - 2.5rem); /* 1.25rem gutter each side on tiny screens */
  z-index: 50;
}

/* The pill itself. Transparent over the hero by default; the solid
   (frosted glass) state is toggled via .navbar--solid on the header. */
.navbar__nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  border: 1px solid transparent;
  background-color: transparent;
  color: var(--ghost);
  transition:
    background-color 0.5s var(--ease-magnetic),
    color 0.5s var(--ease-magnetic),
    border-color 0.5s var(--ease-magnetic),
    box-shadow 0.5s var(--ease-magnetic),
    backdrop-filter 0.5s var(--ease-magnetic);
}

@media (min-width: 768px) {
  .navbar__nav {
    padding-inline: 1.5rem;
  }
}

/* Solid island — once scrolled past the hero (class added by navbar.js) */
.navbar--solid .navbar__nav {
  background-color: rgba(240, 239, 244, 0.6); /* ghost / 60 */
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border-color: rgba(10, 10, 20, 0.1); /* void / 10 */
  color: var(--void);
  box-shadow:
    0 10px 15px -3px rgba(10, 10, 20, 0.1),
    0 4px 6px -4px rgba(10, 10, 20, 0.1);
}

/* Brand wordmark */
.navbar__brand {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.navbar__brand-dot {
  color: var(--plasma);
}

/* Section anchors — hidden on mobile, inline row from 768px up.
   Color is inherited from the pill (ghost over hero, void when solid).
   Hover rolls a stacked duplicate label up; the incoming line is plasma. */
.navbar__links {
  display: none;
}

@media (min-width: 768px) {
  .navbar__links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }
}

.navbar__link {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.025em;
}

/* Rolling dual-label — a 1em window over two stacked lines */
.navbar__roll {
  display: block;
  overflow: hidden;
  height: 1em;
  line-height: 1em;
}

.navbar__roll-line {
  display: block;
  transform: translateY(0);
  transition: transform 0.4s var(--ease-magnetic);
}

/* The duplicate line waiting below — plasma for the color pop */
.navbar__roll-line[aria-hidden='true'] {
  color: var(--plasma);
}

.navbar__link:hover .navbar__roll-line,
.navbar__link:focus-visible .navbar__roll-line {
  transform: translateY(-100%);
}

/* CTA — hidden on phones (the hamburger menu carries it), shown from 768px */
.navbar__cta {
  display: none;
}

@media (min-width: 768px) {
  .navbar__cta {
    display: inline-flex;
  }
}

/* ---- Hamburger toggle — phones only ----
   44px hit area; negative margins keep the pill visually slim. */
.navbar__burger {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 2.75rem;
  height: 2.75rem;
  margin: -0.5rem -0.625rem -0.5rem -0.75rem;
  border-radius: 9999px;
  color: inherit;
}

@media (min-width: 768px) {
  .navbar__burger {
    display: none;
  }
}

.navbar__burger-line {
  display: block;
  width: 1.125rem;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.4s var(--ease-magnetic);
}

/* Open state — the two lines fold into an X */
.navbar__burger.is-open .navbar__burger-line:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.navbar__burger.is-open .navbar__burger-line:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

/* While the menu is open the pill must read against the void overlay,
   even in its frosted "solid" state. */
.navbar.navbar--menu-open .navbar__nav {
  background-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-color: transparent;
  color: var(--ghost);
  box-shadow: none;
}

/* ---- Full-screen mobile menu overlay ----
   Hidden at rest (visibility); navbar.js animates it as a top curtain.
   z-index sits just under the navbar pill so the burger/X stays tappable. */
.navbar-menu {
  position: fixed;
  inset: 0;
  z-index: 49;
  visibility: hidden;
  display: flex;
  flex-direction: column;
  padding: 6.5rem 1.5rem 2.75rem;
  background:
    radial-gradient(120% 90% at 85% -10%, rgba(123, 97, 255, 0.22), transparent 60%),
    var(--void);
  color: var(--ghost);
  overflow: hidden;
}

@media (min-width: 768px) {
  .navbar-menu {
    display: none;
  }
}

/* No-GSAP / reduced-motion fallback: a plain toggle */
.navbar-menu.is-open {
  visibility: visible;
}

.navbar-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 1.375rem;
  margin-block: auto;
}

.navbar-menu__mask {
  display: block;
  overflow: hidden;
}

.navbar-menu__link {
  display: block;
  font-family: var(--font-sans);
  font-size: clamp(2.25rem, 9vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.navbar-menu__link:active {
  color: var(--plasma);
}

.navbar-menu__link-inner {
  display: flex;
  align-items: baseline;
  gap: 0.875rem;
}

.navbar-menu__num {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.25em;
  color: var(--plasma);
}

.navbar-menu__meta {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.navbar-menu__contact {
  display: grid;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(240, 239, 244, 0.6);
}


/* ==========================================================================
   HERO
   ========================================================================== */
/* ==========================================================================
   HERO — "The Opening Shot"
   ========================================================================== */

.hero {
  position: relative;
  height: 100vh; /* fallback for browsers without dvh */
  height: 100dvh;
  overflow: hidden;
  background: var(--void);
}

/* Full-bleed backdrop image */
.hero__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

/* Heavy primary-to-black gradient: deep void at the bottom (text legibility
   over the estate photo), near-clear at the top */
.hero__overlay {
  position: absolute;
  inset: 0;
  /* Light hand: just enough floor for the type — the photograph stays
     vibrant. Heavier shading was stacking with the shader and muddying
     the whole hero. */
  background: linear-gradient(
    to top,
    rgba(10, 10, 20, 0.72) 0%,
    rgba(10, 10, 20, 0.28) 42%,
    rgba(10, 10, 20, 0.05) 100%
  );
}

/* ---- Content block — bottom-left third ---- */
.hero__content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  height: 100%;
  max-width: 64rem;
  padding-inline: 1.5rem;
  padding-bottom: 5rem;
}

.hero__eyebrow {
  font-size: 11px; /* base .eyebrow is 0.75rem; mobile runs slightly smaller */
  /* Plasma reads too faint over the photo; ghost + a soft void halo keeps
     the line legible even when bright tiles flip open behind it. */
  color: rgba(240, 239, 244, 0.92);
  text-shadow: 0 1px 14px rgba(10, 10, 20, 0.65);
}

.hero__title {
  margin-top: 1.5rem;
}

/* Line 1 — bold sans */
.hero__title-lead {
  display: block;
  font-family: var(--font-sans);
  font-size: 1.875rem; /* text-3xl */
  line-height: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ghost);
}

/* Line 2 — massive serif italic drama */
.hero__title-drama {
  display: block;
  font-size: 5rem;
  line-height: 0.85;
  white-space: nowrap; /* "Taste." never breaks between word and period */
  color: var(--ghost);
}

/* Char-split target — inline-block keeps the word atomic at 375px */
.hero__drama-word {
  display: inline-block;
}

/* Italic serif glyphs overhang their advance width and (at line-height .85)
   their line box. Pad each mask's clip window out — negative margins keep the
   net advance and line-box height identical. No bottom padding, so chars at
   yPercent 115 stay fully hidden behind the mask before the reveal. */
.hero__drama-word .char-mask {
  padding: 0.12em 0.08em 0;
  margin: -0.12em -0.08em 0;
}

.hero__period {
  display: inline-block; /* gives the scale-in transform a box */
  color: var(--plasma);
}

.hero__sub {
  margin-top: 2rem;
  max-width: 28rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: rgba(240, 239, 244, 0.7);
}

.hero__cta-row {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}

.hero__method-link {
  font-family: var(--font-mono);
  font-size: 0.75rem; /* text-xs */
  line-height: 1rem;
  letter-spacing: 0.1em;
  color: rgba(240, 239, 244, 0.6);
}

.hero__method-link:hover {
  color: var(--ghost);
}

/* ---- Bottom-right index marker (hidden on mobile) ---- */
.hero__marker {
  display: none;
  position: absolute;
  right: 2rem;
  bottom: 6rem;
  z-index: 10;
}

.hero__marker-label {
  display: block;
  transform: rotate(90deg);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: rgba(240, 239, 244, 0.4);
}

/* Thin breathing line beneath the rotated label (looped by initHero) */
.hero__marker-line {
  display: block;
  width: 1px;
  height: 2.5rem;
  margin: 4rem auto 0; /* clears the rotated label's vertical overflow */
  background: rgba(240, 239, 244, 0.4);
  transform-origin: top center;
}

/* ---- Tablet / desktop ---- */
@media (min-width: 768px) {
  .hero__content {
    padding-inline: 4rem;
    padding-bottom: 6rem;
  }

  .hero__eyebrow {
    font-size: 0.75rem; /* md:text-xs */
    line-height: 1rem;
  }

  .hero__title-lead {
    font-size: 3rem; /* md:text-5xl */
    line-height: 1;
  }

  .hero__title-drama {
    font-size: 11rem;
  }

  .hero__sub {
    font-size: 1rem; /* md:text-base — its line-height wins over leading-relaxed in the Tailwind cascade */
    line-height: 1.5rem;
  }

  .hero__cta-row {
    gap: 2rem;
  }

  .hero__marker {
    display: block;
  }
}

@media (min-width: 1024px) {
  .hero__title-drama {
    font-size: 13rem;
  }
}


/* ==========================================================================
   WEBGL
   ========================================================================== */
/* The live reveal canvas renders the same estate photograph as the <img>
   beneath it (which remains the LCP / no-WebGL / reduced-motion fallback),
   so its fade-in is seamless. The cursor melts through to the interior. */
.hero__gl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero__gl.is-on {
  opacity: 1;
}


/* ==========================================================================
   MARQUEE
   ========================================================================== */
.marquee {
  position: relative;
  overflow: hidden;
  background: var(--void);
  color: var(--ghost);
  padding-block: 2.25rem;
}

.marquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.marquee__group {
  display: flex;
  align-items: baseline;
  gap: 2.5rem;
  padding-right: 2.5rem;
  white-space: nowrap;
}

.marquee__item {
  font-family: var(--font-sans);
  font-size: clamp(2.25rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  text-transform: uppercase;
}

.marquee__item.drama {
  text-transform: none;
  color: rgba(240, 239, 244, 0.85);
}

.marquee__sep {
  font-size: clamp(2.25rem, 6vw, 5rem);
  line-height: 1.1;
  color: var(--plasma);
}

@media (min-width: 768px) {
  .marquee {
    padding-block: 3.25rem;
  }
}


/* ==========================================================================
   DOMAINS
   ========================================================================== */
/* =========================================================================
   DOMAINS — "The Unveiling"
   Default styles render the acts as tall stacked figures (the no-JS and
   reduced-motion experience). initDomains() adds .domains--theatre, which
   pins the stage and lets the scrubbed timeline run the acts as a sequence.
   ========================================================================= */

.domains {
  position: relative;
  background: var(--void);
  color: var(--ghost);
}

/* ---- Header ---- */
.domains__header {
  padding: 4rem 1.5rem 1rem;
}

.domains__title {
  margin-top: 1rem;
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.025em;
  font-size: 2.25rem;
  line-height: 1.1;
  color: var(--ghost);
}

.domains__title-accent {
  color: var(--plasma);
}

/* Quiet thesis line under the header */
.domains__sub {
  margin-top: 1rem;
  max-width: 28rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: rgba(240, 239, 244, 0.6);
}

/* ---- Acts: static (no-JS / reduced-motion) layout ---- */
.domains__act {
  position: relative;
  min-height: 72svh;
  margin: 1.5rem;
  border-radius: 2rem;
  overflow: hidden;
}

.domains__media {
  position: absolute;
  inset: 0;
}

.domains__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Daylight shots stay in the void palette */
.domains__act:nth-of-type(1) .domains__img,
.domains__act:nth-of-type(2) .domains__img {
  filter: saturate(0.85);
}

/* Never fully lit: heavy floor for the type, dark edges all around */
.domains__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(10, 10, 20, 0.92) 0%, rgba(10, 10, 20, 0.25) 45%, rgba(10, 10, 20, 0.55) 100%),
    radial-gradient(120% 85% at 70% 40%, rgba(10, 10, 20, 0) 40%, rgba(10, 10, 20, 0.72) 100%);
}

/* ---- Act content ---- */
.domains__content {
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 1.75rem;
  z-index: 2;
}

.domains__index {
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--plasma);
}

.domains__rule {
  display: inline-block;
  width: 2.5rem;
  height: 1px;
  margin-left: 0.875rem;
  background: var(--plasma);
}

.domains__name {
  margin-top: 0.75rem;
  font-size: clamp(3rem, 9vw, 6.5rem);
  line-height: 1;
  color: var(--ghost);
  font-weight: 400;
}

/* Mask for the title rise — padding/margin trade keeps italic overhangs */
.domains__name-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding: 0.12em 0.1em 0;
  margin: -0.12em -0.1em 0;
}

.domains__name-inner {
  display: inline-block;
}

.domains__caption {
  margin-top: 0.875rem;
  max-width: 24rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(240, 239, 244, 0.72);
}

/* ---- Instrument callouts ---- */
.domains__spec {
  position: absolute;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: rgba(240, 239, 244, 0.45);
}

.domains__spec--count {
  top: 1.75rem;
  right: 1.5rem;
}

.domains__spec--line {
  bottom: 1.75rem;
  right: 1.5rem;
  text-align: right;
}

/* =========================================================================
   Theatre mode — applied by initDomains() when GSAP can run the sequence
   ========================================================================= */

.domains--theatre {
  height: 460svh;
}

.domains--theatre .domains__stage {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
}

.domains--theatre .domains__header {
  position: absolute;
  top: 4.5rem;
  left: 1.5rem;
  right: 1.5rem;
  z-index: 5;
  padding: 0;
  pointer-events: none;
}

.domains--theatre .domains__act {
  position: absolute;
  inset: 0;
  margin: 0;
  border-radius: 0;
  min-height: 0;
}

@media (min-width: 768px) {
  .domains__header {
    padding: 6rem 4rem 1.5rem;
  }

  .domains__title {
    font-size: 3rem;
  }

  .domains__act {
    margin: 2rem 4rem;
  }

  .domains__content {
    left: 4rem;
    right: 4rem;
    bottom: 3.5rem;
  }

  .domains__spec--count {
    top: 3rem;
    right: 4rem;
  }

  .domains__spec--line {
    bottom: 3.75rem;
    right: 4rem;
  }

  .domains--theatre .domains__header {
    top: 6rem;
    left: 4rem;
    right: 4rem;
  }
}


/* ==========================================================================
   FEATURES
   ========================================================================== */
/* ==========================================================================
   FEATURES — "The Method" — three interactive instrument cards
   ========================================================================== */

.features {
  padding: 6rem 1.5rem; /* py-24 px-6 */
  background: var(--ghost);
}

.features__inner {
  max-width: 80rem; /* max-w-7xl */
  margin-inline: auto;
}

/* ---- Header ---- */
.features__title {
  margin-top: 1rem;
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.025em; /* tracking-tight */
  font-size: 1.875rem; /* text-3xl */
  line-height: 2.25rem;
  color: var(--void);
}

.features__title-drama {
  color: var(--plasma);
}

/* Masked line-rise reveal — JS animates the inner from yPercent 110.
   Tiny padding/margin trade keeps italic descenders from clipping. */
.features__h2-mask {
  display: block;
  overflow: hidden;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}

.features__h2-inner {
  display: block;
}

/* ---- Card grid ---- */
.features__grid {
  display: grid;
  gap: 1.25rem; /* gap-5 */
  margin-top: 3rem; /* mt-12 */
}

/* ---- Card shell ---- */
.features-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.7); /* bg-white/70 */
  border: 1px solid rgba(10, 10, 20, 0.1); /* border-void/10 */
  border-radius: 2rem;
  padding: 1.75rem; /* p-7 */
  box-shadow: 0 24px 60px -30px rgba(10, 10, 20, 0.25);
  transition: box-shadow 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Hover lift reads as a deeper shadow only — transform belongs to the
   GSAP tilt, so CSS never fights it. Desktop pointers only. */
@media (hover: hover) and (pointer: fine) {
  .features-card:hover {
    box-shadow: 0 36px 90px -28px rgba(10, 10, 20, 0.45);
  }
}

.features-card__demo {
  position: relative;
  height: 14rem; /* h-56 */
  overflow: hidden;
  margin-bottom: 1.5rem; /* mb-6 */
}

.features-card__heading {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.125rem; /* text-lg */
  line-height: 1.75rem;
  color: var(--void);
}

.features-card__descriptor {
  margin-top: 0.5rem;
  font-size: 0.875rem; /* text-sm */
  line-height: 1.625; /* leading-relaxed */
  color: rgba(24, 24, 27, 0.7); /* text-graphite/70 */
}

/* ---- Card 1 — Diagnostic Shuffler ----
   JS rotates the stack every 3s and re-applies top/scale/z/opacity;
   the spring transition makes the cards bounce into place. */
.features-shuffler {
  position: absolute;
  left: 0.5rem; /* inset-x-2 */
  right: 0.5rem;
  top: 2rem; /* top-8 */
}

.features-shuffler__item {
  position: absolute;
  left: 0; /* inset-x-0 */
  right: 0;
  background: var(--ghost);
  border: 1px solid rgba(10, 10, 20, 0.1);
  border-radius: 1rem; /* rounded-2xl */
  padding: 1rem 1.25rem; /* px-5 py-4 */
  box-shadow: 0 12px 30px -18px rgba(10, 10, 20, 0.4);
  transition: all 0.7s var(--ease-spring);
}

/* Default stack positions before JS takes over (matches first render) */
.features-shuffler__item:nth-child(1) { top: 0;    transform: scale(1);    z-index: 3; opacity: 1; }
.features-shuffler__item:nth-child(2) { top: 18px; transform: scale(0.94); z-index: 2; opacity: 0.75; }
.features-shuffler__item:nth-child(3) { top: 36px; transform: scale(0.88); z-index: 1; opacity: 0.5; }

.features-shuffler__tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--plasma);
  margin-bottom: 0.375rem; /* mb-1.5 */
}

.features-shuffler__name {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.875rem; /* text-sm */
  line-height: 1.25rem;
  color: var(--void);
}

/* ---- Card 2 — Telemetry Typewriter ---- */
.features-terminal {
  background: var(--void);
  border-radius: 1.25rem;
  padding: 1.25rem; /* p-5 */
  height: 100%;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.625; /* leading-relaxed */
  color: rgba(240, 239, 244, 0.8); /* text-ghost/80 */
}

.features-terminal__header {
  display: flex;
  align-items: center;
  gap: 0.625rem; /* gap-2.5 */
  margin-bottom: 1rem; /* mb-4 */
}

.features-terminal__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: rgba(240, 239, 244, 0.5); /* text-ghost/50 */
}

/* space-y-1.5 between feed lines */
.features-terminal__lines > * + * {
  margin-top: 0.375rem;
}

/* Completed lines sit dimmer above the active one. Lines must wrap. */
.features-terminal__history {
  color: rgba(240, 239, 244, 0.4); /* text-ghost/40 */
  overflow-wrap: break-word;
}

.features-terminal__active {
  overflow-wrap: break-word;
}

.features-terminal__cursor {
  color: var(--plasma);
}

/* ---- Card 3 — Cursor Protocol Scheduler ---- */
.features-scheduler__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: rgba(24, 24, 27, 0.5); /* text-graphite/50 */
  margin-bottom: 1rem; /* mb-4 */
}

.features-scheduler__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.375rem; /* gap-1.5 */
}

.features-scheduler__day {
  border-radius: 0.75rem; /* rounded-xl */
  border: 1px solid rgba(10, 10, 20, 0.1);
  background: var(--ghost);
  text-align: center;
  padding-block: 0.75rem; /* py-3 */
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(24, 24, 27, 0.6); /* text-graphite/60 */
}

.features-scheduler__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem; /* mt-4 */
}

.features-scheduler__reserve {
  display: inline-block;
  border-radius: 9999px;
  background: var(--void);
  color: var(--ghost);
  padding: 0.5rem 1rem; /* px-4 py-2 */
  font-size: 11px;
  font-weight: 600;
}

.features-scheduler__cursor {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  color: var(--void); /* SVG uses fill: currentColor */
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1)) drop-shadow(0 1px 1px rgba(0, 0, 0, 0.06));
}

/* ---- Tablet / desktop ---- */
@media (min-width: 768px) {
  .features {
    padding: 8rem 4rem; /* md:py-32 md:px-16 */
  }

  .features__title {
    font-size: 3rem; /* md:text-5xl */
    line-height: 1;
  }

  .features__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* md:grid-cols-3 */
    gap: 1.5rem; /* md:gap-6 */
  }
}


/* ==========================================================================
   PHILOSOPHY
   ========================================================================== */
/* ==========================================================================
   PHILOSOPHY — "The Manifesto"
   Dark void backdrop, parallax interior texture, oversized drama-serif
   manifesto with a word-by-word masked reveal.
   ========================================================================== */

.philosophy {
  position: relative;
  overflow: hidden;
  background: var(--void);
  color: var(--ghost);
  padding: 8rem 1.5rem; /* py-32 px-6 */
}

/* Parallax interior texture — oversized so the yPercent drift never shows edges.
   0.12 (was 0.15 for the nebula): the interior photo is brighter, so it needs
   less presence to sit at the same depth behind the manifesto. */
.philosophy__texture {
  pointer-events: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  opacity: 0.12;
}

/* Corner annotation */
.philosophy__annotation {
  position: absolute;
  top: 2rem;
  left: 1.5rem;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.35em;
  color: rgba(240, 239, 244, 0.4); /* ghost/40 */
}

.philosophy__inner {
  position: relative;
  z-index: 10;
  max-width: 64rem; /* max-w-5xl */
}

/* Statement 1 — the common approach, kept quiet */
.philosophy__statement--quiet {
  font-family: var(--font-sans);
  font-size: 1.125rem; /* text-lg */
  line-height: 1.375; /* leading-snug */
  color: rgba(240, 239, 244, 0.5); /* ghost/50 */
}

/* Statement 2 — the manifesto, massive drama serif.
   Font family / italic / weight come from the shared .drama base class. */
.philosophy__statement--manifesto {
  margin-top: 2rem;
  font-size: 3rem; /* text-5xl */
  line-height: 1.05;
}

/* The plasma-colored payoff — survives the word split (class is copied
   onto each generated .philosophy__word span) */
.philosophy__accent {
  color: var(--plasma);
}

/* Word-split structure, generated by philosophy.js:
   the mask clips; the inner word slides up from below it */
.philosophy__word-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.philosophy__word {
  display: inline-block;
}

/* Thin plasma rule — drawn scaleX 0 -> 1 by philosophy.js (origin left) */
.philosophy__rule {
  margin-top: 3rem;
  height: 1px;
  max-width: 28rem; /* matches the closing line measure */
  background: var(--plasma);
  opacity: 0.6;
  transform-origin: left center;
}

/* Closing line */
.philosophy__closing {
  margin-top: 1rem;
  max-width: 28rem; /* max-w-md */
  font-family: var(--font-mono);
  font-size: 0.75rem; /* text-xs */
  line-height: 1.625; /* leading-relaxed */
  letter-spacing: 0.025em; /* tracking-wide */
  color: rgba(240, 239, 244, 0.4); /* ghost/40 */
}

/* ---- Tablet / desktop ---- */
@media (min-width: 768px) {
  .philosophy {
    padding: 11rem 4rem; /* md:py-44 md:px-16 */
  }

  .philosophy__annotation {
    left: 4rem; /* md:left-16 */
  }

  .philosophy__statement--quiet {
    font-size: 1.5rem; /* md:text-2xl */
  }

  .philosophy__statement--manifesto {
    font-size: 6rem; /* md:text-8xl */
  }
}


/* ==========================================================================
   PROTOCOL
   ========================================================================== */
/* ==========================================================================
   PROTOCOL — sticky stacking archive
   Intro strip + three pinned full-screen cards (the "crush" recede effect
   itself is driven by GSAP in protocol.js; CSS only sets the stage).
   ========================================================================== */

.protocol {
  background: var(--void);
}

/* ---- intro strip ---- */
.protocol-intro {
  max-width: 80rem; /* max-w-7xl */
  margin-inline: auto;
  padding: 5rem 1.5rem; /* py-20 px-6 */
}

.protocol-intro__eyebrow {
  margin-bottom: 1.5rem;
}

.protocol-intro__title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.875rem; /* text-3xl */
  letter-spacing: -0.025em;
  color: var(--ghost);
}

.protocol-intro__accent {
  color: var(--plasma);
}

/* masked rise for the intro title — wrapper clips, inner line travels */
.protocol-intro__mask {
  display: block;
  overflow: hidden;
}

.protocol-intro__line {
  display: block;
}

/* ---- stacking cards ---- */
.protocol-stack {
  position: relative;
}

.protocol-card {
  position: sticky;
  top: 0;
  height: 100vh; /* fallback */
  height: 100svh;
  width: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-top: 1px solid rgba(240, 239, 244, 0.1);
  border-radius: 3rem 3rem 0 0;
}

/* each card sits on a slightly different shade of void */
.protocol-card--01 {
  background: #101020;
}
.protocol-card--02 {
  background: #0d0d1c;
}
.protocol-card--03 {
  background: var(--void);
}

.protocol-card__inner {
  width: 100%;
  max-width: 80rem; /* max-w-7xl */
  margin-inline: auto;
  padding-inline: 1.5rem; /* px-6 */
  display: grid;
  gap: 2.5rem; /* gap-10 */
  align-items: center;
}

/* ---- left: copy ---- */
.protocol-card__copy {
  position: relative;
}

/* copy sits above the ghost numeral */
.protocol-card__copy .protocol-reveal {
  position: relative;
  z-index: 1;
}

/* ghost numeral — outlined giant digit peeking behind the title,
   parallaxed by JS (clipped by the card's overflow: hidden) */
.protocol-card__ghost {
  position: absolute;
  top: -6rem;
  left: -0.75rem;
  z-index: 0;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(11rem, 26vw, 20rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(240, 239, 244, 0.07);
  text-stroke: 1px rgba(240, 239, 244, 0.07);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

.protocol-card__step {
  font-family: var(--font-mono);
  font-size: 0.875rem; /* text-sm */
  letter-spacing: 0.3em;
  color: var(--plasma);
  margin-bottom: 1.5rem;
}

.protocol-card__title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 2.25rem; /* text-4xl */
  letter-spacing: -0.025em;
  color: var(--ghost);
  margin-bottom: 1.5rem;
}

.protocol-card__body {
  color: rgba(240, 239, 244, 0.6); /* text-ghost/60 */
  font-size: 1rem;
  line-height: 1.625; /* leading-relaxed */
  max-width: 28rem; /* max-w-md */
}

/* ---- right: animation artifact frame ---- */
.protocol-card__artifact {
  position: relative;
  height: 16rem; /* h-64 */
  border-radius: 2rem;
  border: 1px solid rgba(240, 239, 244, 0.1);
  background: rgba(240, 239, 244, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.protocol-card__tag {
  position: absolute;
  top: 1.25rem; /* top-5 */
  left: 1.5rem; /* left-6 */
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(240, 239, 244, 0.3);
}

/* artifact SVG sizing (mirrors the React utility classes) */
.protocol-orbit {
  height: 85%;
  width: auto;
}

.protocol-laser {
  width: 100%;
  height: 100%;
}

.protocol-ekg {
  width: 85%;
  height: auto;
}

/* spacer so the last pinned card releases cleanly */
.protocol-spacer {
  height: 1px;
  width: 100%;
  background: var(--void);
}

/* ---- tablet / desktop ---- */
@media (min-width: 768px) {
  .protocol-intro {
    padding-inline: 4rem; /* md:px-16 */
  }

  .protocol-intro__title {
    font-size: 3rem; /* md:text-5xl */
  }

  .protocol-card__inner {
    padding-inline: 4rem; /* md:px-16 */
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* md:grid-cols-2 */
  }

  .protocol-card__title {
    font-size: 3.75rem; /* md:text-6xl */
  }

  .protocol-card__ghost {
    top: -8rem;
    left: -1.5rem;
  }

  .protocol-card__body {
    font-size: 1.125rem; /* md:text-lg */
  }

  .protocol-card__artifact {
    height: 24rem; /* md:h-96 */
  }
}


/* ==========================================================================
   MEMBERSHIP
   ========================================================================== */
/* ==========================================================================
   MEMBERSHIP — "Commissions" three-tier pricing
   Light section on ghost. Voyage (featured) is a dark void card with a
   2px plasma ring + glow, scaled up 4% on desktop only.
   ========================================================================== */

.membership {
  background: var(--ghost);
  padding: 6rem 1.5rem; /* py-24 px-6 */
}

.membership__inner {
  max-width: 72rem; /* max-w-6xl */
  margin-inline: auto;
}

/* ---- Header ---- */
.membership__title {
  margin-top: 1rem;
  font-family: var(--font-sans);
  font-size: 1.875rem; /* text-3xl */
  line-height: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--void);
}

.membership__title-accent {
  color: var(--plasma);
}

/* Headline split parts: inline-block keeps each phrase intact (no
   mid-word breaks once SITE.splitChars masks the characters inside). */
.membership__title-part,
.membership__title-accent {
  display: inline-block;
}

.membership__sub {
  margin-top: 1rem;
  max-width: 28rem; /* max-w-md */
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: rgba(24, 24, 27, 0.6); /* graphite/60 */
}

/* ---- Tier grid ---- */
.membership__grid {
  margin-top: 3rem;
  display: grid;
  align-items: stretch;
  gap: 1.25rem;
}

/* ---- Cards ---- */
.membership-card {
  display: flex;
  flex-direction: column;
  border-radius: 2.5rem;
  padding: 2rem;
  border: 1px solid rgba(10, 10, 20, 0.1); /* void/10 */
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 24px 60px -30px rgba(10, 10, 20, 0.25);
}

/* Hover lift — light cards only. The lift rides the standalone
   `translate` property (composes with transform) so this transition
   never fights GSAP's transform-based entrance tween. Touch devices
   ignore :hover, so no pointer gating is needed here. */
.membership-card:not(.membership-card--featured) {
  transition:
    translate 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: translate;
}

.membership-card:not(.membership-card--featured):hover {
  translate: 0 -8px;
  box-shadow: 0 36px 80px -28px rgba(10, 10, 20, 0.4);
}

/* Voyage — dark card, plasma ring + glow, pops above neighbours */
.membership-card--featured {
  position: relative;
  z-index: 10;
  border: 0;
  background: var(--void);
  color: var(--ghost);
  box-shadow:
    0 0 0 2px var(--plasma), /* ring-2 ring-plasma */
    0 40px 90px -30px rgba(123, 97, 255, 0.45);
}

/* ---- Card media header — photographic band above the tier name.
   Duotone tint (lighter than the section-scale cohesion gradient)
   keeps the photos legible at card size while seating them in the
   void palette. Daylight shots additionally desaturate slightly. ---- */
.membership-card__media {
  position: relative;
  height: 10rem;
  margin-bottom: 1.5rem;
  border-radius: 1.5rem;
  overflow: hidden;
}

.membership-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.membership-card__media--daylight img {
  filter: saturate(0.85);
}

.membership-card__media-tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 10, 20, 0.55),
    rgba(10, 10, 20, 0.05)
  );
}

/* Slow photographic zoom on card hover — fine pointers only */
@media (hover: hover) and (pointer: fine) {
  .membership-card__media img {
    transition: transform 0.8s var(--ease-magnetic);
  }

  .membership-card:hover .membership-card__media img {
    transform: scale(1.06);
  }
}

.membership-card__tag {
  margin-bottom: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.625rem; /* text-[10px] */
  letter-spacing: 0.3em;
  color: var(--plasma);
}

.membership-card__name {
  font-family: var(--font-sans);
  font-size: 1.5rem; /* text-2xl */
  line-height: 2rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--void);
}

.membership-card--featured .membership-card__name {
  color: var(--ghost);
}

.membership-card__tagline {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  opacity: 0.7;
}

.membership-card__price {
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem; /* text-xs */
  line-height: 1rem;
  letter-spacing: 0.25em;
  color: rgba(24, 24, 27, 0.5); /* graphite/50 */
}

.membership-card--featured .membership-card__price {
  color: rgba(240, 239, 244, 0.5); /* ghost/50 */
}

/* ---- Feature list ---- */
.membership-card__features {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.membership-card__feature {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: rgba(24, 24, 27, 0.8); /* graphite/80 */
}

.membership-card--featured .membership-card__feature {
  color: rgba(240, 239, 244, 0.8); /* ghost/80 */
}

.membership-card__check {
  margin-top: 0.125rem; /* mt-0.5 */
  flex-shrink: 0;
  color: var(--plasma);
}

/* ---- CTA — pinned to the card bottom so all three align ---- */
.membership-card__cta {
  margin-top: auto;
  padding-top: 2rem;
}

/* Outline CTAs on the light cards read in void (hover still flips to ghost) */
.membership-card__btn-outline {
  color: var(--void);
}

/* ---- Tablet / desktop ---- */
@media (min-width: 768px) {
  .membership {
    padding: 8rem 4rem; /* md:py-32 md:px-16 */
  }

  .membership__title {
    font-size: 3rem; /* md:text-5xl */
    line-height: 1;
  }

  .membership__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .membership-card__media {
    height: 11rem;
  }

  .membership-card--featured {
    transform: scale(1.04); /* md:scale-[1.04] */
  }
}


/* ==========================================================================
   FOOTER
   ========================================================================== */
/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  margin-top: 3rem;
  border-radius: 4rem 4rem 0 0;
  background: var(--void);
  color: var(--ghost);
  padding: 5rem 1.5rem 2.5rem;
  overflow: hidden; /* guards the giant wordmark against 375px overflow */
}

/* ---- Giant wordmark: outline base, fill "inks in" on scroll scrub ---- */
.footer__giant {
  position: relative;
  display: block;
  text-align: center;
  font-family: var(--font-sans);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.9;
  font-size: clamp(3.25rem, 14.5vw, 13rem);
  user-select: none;
  margin-bottom: 4rem;
  transition: letter-spacing 0.8s cubic-bezier(0.455, 0.03, 0.515, 0.955);
}

.footer__giant-outline {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1px rgba(240, 239, 244, 0.22);
}

.footer__giant-fill {
  position: absolute;
  inset: 0;
  display: block;
  color: var(--ghost);
  clip-path: inset(0 100% 0 0);
}

/* Outline dot inherits the stroke; the fill dot lands in plasma */
.footer__giant-fill .footer__giant-dot {
  color: var(--plasma);
}

@media (hover: hover) and (pointer: fine) {
  .footer__giant:hover {
    letter-spacing: -0.02em;
  }
}

/* ---- Main grid: stacked on mobile, 12 columns on desktop ---- */
.footer__grid {
  max-width: 80rem;
  margin-inline: auto;
  display: grid;
  gap: 3rem;
}

/* ---- Brand block ---- */
.footer__logo {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.footer__logo-dot {
  color: var(--plasma);
}

.footer__tagline {
  margin-top: 1rem;
  font-size: 1.25rem;
  line-height: 1.75rem;
  color: rgba(240, 239, 244, 0.7);
}

.footer__meta {
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.625;
  color: rgba(240, 239, 244, 0.6);
}

/* ---- Link columns ---- */
.footer__col-header {
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: rgba(240, 239, 244, 0.6);
}

.footer__list {
  display: grid;
  gap: 0.75rem;
}

.footer__link {
  display: block;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: rgba(240, 239, 244, 0.7);
}

.footer__link:hover {
  color: var(--plasma);
}

/* Non-link contact lines */
.footer__plain {
  display: block;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: rgba(240, 239, 244, 0.7);
}

/* ---- Bottom bar ---- */
.footer__bottom {
  max-width: 80rem;
  margin-inline: auto;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(240, 239, 244, 0.1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.footer__copyright {
  font-size: 0.75rem;
  line-height: 1rem;
  color: rgba(240, 239, 244, 0.6);
}

.footer__legal {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer__legal-link {
  font-size: 0.75rem;
  line-height: 1rem;
  color: rgba(240, 239, 244, 0.6);
}

.footer__legal-link:hover {
  color: var(--ghost);
}

.footer__status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer__status-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: rgba(240, 239, 244, 0.5);
}

/* ---- Tablet / desktop ---- */
@media (min-width: 768px) {
  .footer {
    padding-inline: 4rem;
  }

  .footer__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .footer__brand {
    grid-column: span 5;
  }

  .footer__col--studio,
  .footer__col--commissions {
    grid-column: span 2;
  }

  .footer__col--contact {
    grid-column: span 3;
  }

  .footer__bottom {
    flex-direction: row;
    align-items: center;
  }
}


/* ==========================================================================
   CURSOR
   ========================================================================== */
/* Hidden unless JS confirms a fine pointer (html.has-cursor). */
.cursor {
  display: none;
}

html.has-cursor .cursor {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10001;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

html.has-cursor .cursor.is-awake {
  opacity: 1;
}

.cursor__dot,
.cursor__ring {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  mix-blend-mode: difference;
}

.cursor__dot {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  background: var(--ghost);
}

.cursor__ring {
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border: 1px solid rgba(240, 239, 244, 0.55);
  transition: transform 0.35s var(--ease-magnetic), background-color 0.35s var(--ease-magnetic);
}

.cursor.is-active .cursor__ring {
  transform: scale(1.6);
  background: rgba(240, 239, 244, 0.12);
}
