/* ==========================================================================
   RepUrSocialite™ — "Velvet Rope" design system
   Ink-black luxury × promo-red energy. Hand-built; no framework.
   Palette roles (never mixed):
     --ink   canvas          --bone  inverted sections + type on ink
     --red   action/energy   --gold  value/status (prices, crown, rules)
     --smoke secondary text
   ========================================================================== */

:root {
  --ink:      #0B0A08;
  --ink-2:    #161310;
  --ink-3:    #201B15;
  --bone:     #F3E4D3;
  --bone-2:   #E9D5BF;
  --red:      #E8442E;
  --red-deep: #C93521;
  --gold:     #D9A441;
  --gold-dim: #8F6B24;
  --smoke:    #A2968A;
  --line:     rgba(243, 228, 211, 0.14);
  --line-strong: rgba(243, 228, 211, 0.3);

  --font-shout: "Anton", "Arial Narrow", sans-serif;
  --font-body: "Archivo", "Helvetica Neue", sans-serif;
  --font-whisper: "Fraunces", Georgia, serif;

  --fs-hero: clamp(4rem, 13vw, 10.5rem);
  --fs-h1: clamp(3rem, 8vw, 6.5rem);
  --fs-h2: clamp(2.25rem, 5.5vw, 4.25rem);
  --fs-h3: clamp(1.5rem, 3vw, 2.25rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;
  --fs-tag: 0.6875rem;

  --space-1: 0.5rem;  --space-2: 1rem;   --space-3: 1.5rem;
  --space-4: 2.5rem;  --space-5: 4rem;   --space-6: 6.5rem;
  --space-7: 9rem;

  --container: 1440px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --radius: 2px;              /* the house is square-shouldered; softness is earned */
  --radius-pill: 999px;

  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-snap: cubic-bezier(0.7, 0, 0.2, 1);
  --dur: 0.55s;
}

/* ---------- Reset (scoped, light) ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Reserve the scrollbar gutter so centered layouts never shift sideways
     when navigating between short and tall pages. */
  scrollbar-gutter: stable;
  overflow-y: scroll;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
::selection { background: var(--red); color: var(--bone); }

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

/* ---------- Type roles ---------- */
.t-shout {
  font-family: var(--font-shout);
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: 0.01em;
  font-weight: 400;
}
.t-whisper {
  font-family: var(--font-whisper);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}
.t-tag {
  font-size: var(--fs-tag);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.t-price {
  font-family: var(--font-body);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--gold);
  letter-spacing: 0.02em;
}
.t-red  { color: var(--red); }
.t-gold { color: var(--gold); }
.t-smoke { color: var(--smoke); }

/* ---------- Layout ---------- */
.wrap { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.sec { padding-block: var(--space-6); }
.sec-tight { padding-block: var(--space-5); }

/* Ink ↔ bone hard cuts — the promo video's edit language */
.sec-bone {
  background: var(--bone);
  color: var(--ink);
}
.sec-bone ::selection { background: var(--ink); color: var(--bone); }
.sec-bone .t-smoke { color: #6E6155; }
.sec-bone .hairline { border-color: rgba(11, 10, 8, 0.16); }

/* Eyebrow: gold rule + label. Structure = "you are entering a room". */
.eyebrow {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: var(--space-3);
}
.eyebrow::before {
  content: ""; width: 44px; height: 1px; background: var(--gold);
  flex: none;
}
.eyebrow .t-tag { color: var(--gold); }

.hairline { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 1.05rem 2.2rem;
  font-weight: 700; font-size: 0.9375rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: var(--radius-pill);
  transition: transform 0.35s var(--ease-out), background-color 0.25s ease,
              color 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn .btn-arrow { transition: transform 0.35s var(--ease-out); }
.btn:hover .btn-arrow { transform: translateX(5px); }

.btn-red { background: var(--red); color: var(--bone); }
.btn-red::after {              /* dark-red wipe on hover, left to right */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--red-deep);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s var(--ease-snap);
}
.btn-red:hover::after { transform: scaleX(1); }

.btn-ghost {
  border: 1px solid var(--line-strong); color: var(--bone);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.sec-bone .btn-ghost { border-color: rgba(11,10,8,0.35); color: var(--ink); }
.sec-bone .btn-ghost:hover { border-color: var(--red); color: var(--red); }

.btn-gold {
  border: 1px solid var(--gold); color: var(--gold); background: transparent;
}
.btn-gold:hover { background: var(--gold); color: var(--ink); }

.btn-sm { padding: 0.65rem 1.4rem; font-size: 0.8125rem; }

/* Text link with gold underline sweep */
.link-sweep { position: relative; font-weight: 600; }
.link-sweep::after {
  content: ""; position: absolute; left: 0; bottom: -3px; height: 1px; width: 100%;
  background: var(--gold);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s var(--ease-snap);
}
.link-sweep:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 80;
  background: color-mix(in srgb, var(--ink) 86%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: transform 0.5s var(--ease-out);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header .nav {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  height: 76px;
}
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  font-size: 0.9rem; font-weight: 600; color: var(--smoke);
  transition: color 0.25s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--bone); }
.nav-brand { display: flex; align-items: center; gap: 12px; flex: none; }
.nav-brand img { width: 40px; height: 40px; border-radius: 50%; }
.nav-brand .brand-word {
  font-family: var(--font-shout); font-size: 1.25rem; letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav-brand .brand-word em { font-style: normal; color: var(--gold); }
.nav-actions { display: flex; align-items: center; gap: 0.9rem; }

.cart-link { position: relative; display: inline-flex; padding: 8px; }
.cart-badge {
  position: absolute; top: -2px; right: -4px;
  min-width: 18px; height: 18px; padding-inline: 4px;
  border-radius: var(--radius-pill);
  background: var(--red); color: var(--bone);
  font-size: 0.6875rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s var(--ease-out);
}
.cart-badge.hidden { display: none; }

/* Burger — two lines that become an X */
.burger { display: none; position: relative; width: 44px; height: 44px; z-index: 101; }
.burger span {
  position: absolute; left: 10px; width: 24px; height: 2px;
  background: currentColor;
  transition: transform 0.4s var(--ease-snap), top 0.4s var(--ease-snap);
}
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 25px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* Full-screen bone menu — mobile gets its own designed room, not a shrunk nav */
.mobile-menu {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bone); color: var(--ink);
  display: flex; flex-direction: column; justify-content: flex-start;
  gap: var(--space-3);
  padding: var(--gutter);
  overflow-y: auto;
  visibility: hidden; opacity: 0;
  transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}
.mm-top {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 44px; margin-bottom: var(--space-2);
}
.mm-close {
  width: 44px; height: 44px; font-size: 1.4rem; line-height: 1;
  color: var(--ink);
  border: 1px solid rgba(11, 10, 8, 0.3); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.mm-close:hover { border-color: var(--red); color: var(--red); }
.mobile-menu.is-open { visibility: visible; opacity: 1; transition-delay: 0s; }
.mobile-menu a.mm-link {
  font-family: var(--font-shout); text-transform: uppercase;
  font-size: clamp(2.6rem, 11vw, 4.5rem); line-height: 1.06;
  color: var(--ink); display: block;
  transition: color 0.2s ease;
}
.mobile-menu a.mm-link:hover, .mobile-menu a.mm-link:active { color: var(--red); }
.mobile-menu .mm-meta {
  margin-top: var(--space-4); display: flex; flex-wrap: wrap; gap: 1rem 1.75rem;
  font-size: 0.9rem; font-weight: 600; color: #6E6155;
}
.menu-open { overflow: hidden; }
.menu-open .site-header { color: var(--ink); }

/* ---------- Cinematic scroll hero (home) ----------
   The promo film sits behind the headline; on desktop GSAP pins the section
   and scrubs the video with scroll while the words tilt away in 3D.
   Mobile / reduced motion: the small loop (or just the poster) plays instead. */
.hero-cine, .hero.hero-cine {
  position: relative;
  min-height: calc(100svh - var(--header-h, 76px));  /* header is sticky in flow */
  display: flex; align-items: center;
  overflow: clip;
  padding-block: 0;
}
.hero-cine-media { position: absolute; inset: 0; z-index: 0; }
.hero-cine-media video {
  width: 100%; height: 100%; object-fit: cover;
  background: var(--ink);
}
.hero-cine-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, var(--ink) 2%, transparent 30%),
    linear-gradient(100deg, rgba(11, 10, 8, 0.88) 8%, rgba(11, 10, 8, 0.45) 52%, rgba(11, 10, 8, 0.18));
}
.hero-cine-content {
  position: relative; z-index: 2; width: 100%;
  padding-block: var(--space-3);  /* stays inside one viewport — the scroll cue must sit on the fold */
  perspective: 900px;
}
.hero-cine .hero-sub { margin-top: var(--space-2); }
.hero-cine .hero-cta { margin-top: var(--space-3); }
.hero-cine .hero-proof { margin-top: var(--space-3); }
.hero-cine .hero-words { transform-style: preserve-3d; will-change: transform, opacity; }
.hero-cine .hero-stamp {
  position: absolute; z-index: 3; right: var(--gutter); top: calc(var(--gutter) + 76px);
}
.hero-scroll-cue {
  position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: var(--gold);
}
.hero-scroll-cue .cue-arrow { font-size: 1.05rem; line-height: 1; }
@media (prefers-reduced-motion: no-preference) {
  .hero-scroll-cue .cue-arrow { animation: cue-bob 1.8s ease-in-out infinite; }
}
@keyframes cue-bob {
  0%, 100% { transform: translateY(0); opacity: 0.55; }
  50% { transform: translateY(6px); opacity: 1; }
}

@media (max-width: 900px) {
  .hero-cine { --header-h: 64px; }
  .hero-cine .hero-stamp { width: 84px; height: 84px; top: calc(var(--gutter) + 64px); }
  .hero-cine-veil {
    background:
      linear-gradient(to top, var(--ink) 4%, transparent 34%),
      linear-gradient(to bottom, rgba(11, 10, 8, 0.78), rgba(11, 10, 8, 0.5) 45%, rgba(11, 10, 8, 0.32));
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(3rem, 7vw, 6rem) var(--space-6);
  overflow: clip;
}
.hero-grid {
  display: grid; gap: var(--space-4);
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
}
.hero-words { position: relative; z-index: 2; }
.hero-word { display: block; overflow: hidden; }
.hero-word > span { display: inline-block; }   /* JS slides these up */
.hero .t-shout { font-size: var(--fs-hero); }
.hero-word .w-red { color: var(--red); }
.hero-word .w-outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--bone);
}
.hero-sub {
  max-width: 34rem; margin-top: var(--space-3);
  color: var(--smoke); font-size: 1.125rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: var(--space-4); }
.hero-proof {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.8rem; margin-top: var(--space-4);
  color: var(--smoke); font-size: var(--fs-small); font-weight: 600;
}
.hero-proof .tick { color: var(--gold); margin-right: 6px; }

/* Portrait in an arch — the crown's silhouette */
.hero-visual { position: relative; }
.hero-arch {
  position: relative;
  border-radius: 999px 999px var(--radius) var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 5;
}
.hero-arch img { width: 100%; height: 100%; object-fit: cover; }
.hero-arch::after {           /* gold hairline inset — framed like a portrait */
  content: ""; position: absolute; inset: 10px;
  border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent);
  border-radius: 999px 999px 1px 1px;
  pointer-events: none;
}
.hero-stamp {
  position: absolute; z-index: 3; right: -26px; top: -26px;
  width: 116px; height: 116px;
  animation: spin 22s linear infinite;
}
@media (prefers-reduced-motion: reduce) { .hero-stamp { animation: none; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* Scribble underline (SVG path; JS draws the stroke) */
.scribble { position: relative; display: inline-block; }
.scribble svg {
  position: absolute; left: -2%; bottom: -0.22em; width: 104%; height: 0.26em;
  overflow: visible; pointer-events: none;
}
.scribble svg path {
  fill: none; stroke: var(--red); stroke-width: 5;
  stroke-linecap: round; stroke-linejoin: round;
  opacity: 0.9;
}
.sec-bone .scribble svg path { stroke: var(--red); }

/* ---------- Marquee rail ---------- */
.marquee {
  border-block: 1px solid var(--line);
  padding-block: 1.1rem;
  overflow: hidden;
  user-select: none;
}
.marquee-track {
  display: flex; gap: 3rem; width: max-content;
  will-change: transform;
}
.marquee-item {
  display: flex; align-items: center; gap: 3rem; flex: none;
  font-family: var(--font-shout); text-transform: uppercase;
  font-size: clamp(1.1rem, 2.2vw, 1.6rem); letter-spacing: 0.06em;
  white-space: nowrap;
}
.marquee-item .star { color: var(--gold); font-size: 0.8em; }
.marquee-bone { background: var(--bone); color: var(--ink); border-color: rgba(11,10,8,0.2); }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px)  { .card-grid { grid-template-columns: repeat(2, 1fr); gap: 0.9rem; } }

.pcard { position: relative; display: block; }
.pcard-media {
  position: relative; aspect-ratio: 1; overflow: hidden;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.pcard-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.9s var(--ease-out), filter 0.4s ease;
}
.pcard:hover .pcard-media img { transform: scale(1.06); }
.pcard-media::after {          /* gold rule sweeps along the bottom on hover */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s var(--ease-snap);
}
.pcard:hover .pcard-media::after { transform: scaleX(1); }
.pcard-body { padding: 0.9rem 2px 0; }
.pcard-name {
  font-weight: 700; font-size: 0.9375rem; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.pcard-meta {
  display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem;
  margin-top: 2px;
}
.pcard-handle { color: var(--smoke); font-size: 0.8125rem; }
.pcard .t-price { font-size: 1rem; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0.3rem 0.7rem; border-radius: var(--radius-pill);
  font-size: var(--fs-tag); font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
}
.badge-red  { background: var(--red); color: var(--bone); }
.badge-gold { border: 1px solid var(--gold); color: var(--gold); background: color-mix(in srgb, var(--ink) 60%, transparent); }
.badge-ink  { background: var(--ink); color: var(--bone); }
.pcard-flag { position: absolute; top: 10px; left: 10px; z-index: 2; }

/* Creator card — velvet-rope roster tile */
.ccard {
  position: relative; display: flex; flex-direction: column; gap: 1rem;
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--ink-2), var(--ink));
  transition: border-color 0.3s ease, transform 0.5s var(--ease-out);
}
.ccard:hover { border-color: var(--gold); transform: translateY(-4px); }
.ccard-ava {
  width: 76px; height: 76px; border-radius: 50%;
  overflow: hidden; border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-shout); font-size: 1.75rem; color: var(--gold);
  background: var(--ink-3);
}
.ccard-ava img { width: 100%; height: 100%; object-fit: cover; }
.ccard-name { font-family: var(--font-shout); font-size: 1.35rem; text-transform: uppercase; letter-spacing: 0.03em; }
.ccard-handle { color: var(--gold); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; }
.ccard-bio { color: var(--smoke); font-size: var(--fs-small); line-height: 1.55; }
.ccard-cta {
  margin-top: auto; display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--bone);
}
.ccard:hover .ccard-cta { color: var(--gold); }

/* ---------- Horizontal creator carousel (roster rail) ----------
   A single row of creator cards that scrolls across the screen: drag with the
   mouse, swipe on touch, or use the arrow buttons. Cards stay clickable. */
.roster-controls { display: flex; align-items: center; gap: 0.7rem; }
.roster { position: relative; }
.roster-track {
  display: flex; gap: 1.25rem;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  scrollbar-width: none;                 /* Firefox */
  padding: 6px 2px 10px;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  overscroll-behavior-x: contain;
}
.roster-track::-webkit-scrollbar { display: none; }   /* Chrome / Safari */
.roster-track.is-drag { cursor: grabbing; scroll-behavior: auto; scroll-snap-type: none; }
.roster-track.is-drag * { pointer-events: none; }     /* don't hover-flicker while dragging */
.roster-track > .ccard,
.roster-track > .pcard {
  flex: 0 0 clamp(228px, 23vw, 272px);
  scroll-snap-align: start;
  user-select: none;
}
/* Edge fades — cards bleed off both sides. Color matches the ink section bg. */
.roster::before, .roster::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 64px; z-index: 2;
  pointer-events: none; transition: opacity 0.35s ease;
}
.roster::before { left: -1px;  background: linear-gradient(90deg, var(--ink) 18%, transparent); }
.roster::after  { right: -1px; background: linear-gradient(270deg, var(--ink) 18%, transparent); }
.roster.at-start::before { opacity: 0; }
.roster.at-end::after { opacity: 0; }

.roster-arrow {
  flex: none; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line-strong); color: var(--bone);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.15rem; line-height: 1;
  transition: border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease, transform 0.15s ease;
}
.roster-arrow:hover:not(:disabled) { border-color: var(--gold); color: var(--gold); }
.roster-arrow:active:not(:disabled) { transform: scale(0.92); }
.roster-arrow:disabled { opacity: 0.28; cursor: default; }
@media (max-width: 640px) { .roster-arrow { display: none; } }   /* mobile: swipe instead */

/* ---------- Stats / counters ---------- */
.stat-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.stat {
  background: var(--ink); padding: var(--space-4) var(--space-3);
  text-align: center;
}
.stat b {
  display: block; font-family: var(--font-shout); font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 4rem); color: var(--gold); line-height: 1;
}
.stat span { color: var(--smoke); font-size: var(--fs-small); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- Countdown ---------- */
.countdown {
  display: inline-flex; gap: 4px; align-items: baseline;
  font-variant-numeric: tabular-nums; font-weight: 800;
}
.countdown .unit { min-width: 2ch; text-align: center; }

/* ---------- Forms ---------- */
.field { display: block; margin-bottom: 1.25rem; }
.field-label {
  display: block; margin-bottom: 8px;
  font-size: var(--fs-tag); font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--smoke);
}
.input {
  width: 100%; padding: 0.95rem 1.1rem;
  background: var(--ink-2); border: 1px solid var(--line);
  border-radius: var(--radius); color: var(--bone);
  transition: border-color 0.25s ease;
}
.input::placeholder { color: color-mix(in srgb, var(--smoke) 70%, transparent); }
.input:focus { outline: none; border-color: var(--gold); }
.sec-bone .input { background: rgba(11,10,8,0.05); border-color: rgba(11,10,8,0.25); color: var(--ink); }
.sec-bone .input:focus { border-color: var(--red); }

/* ---------- Flash + toast ---------- */
.flash {
  border: 1px solid var(--line); border-left: 3px solid var(--gold);
  padding: 0.9rem 1.2rem; margin-top: 1rem;
  background: var(--ink-2); font-size: var(--fs-small); font-weight: 600;
}
.flash-success { border-left-color: var(--gold); }
.flash-error { border-left-color: var(--red); color: var(--red); }

#rus-toasts { position: fixed; z-index: 120; bottom: 20px; right: 20px; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; pointer-events: none; }
.toast {
  pointer-events: auto;
  display: flex; align-items: center; gap: 10px;
  background: var(--bone); color: var(--ink);
  border-left: 3px solid var(--gold);
  padding: 0.85rem 1.2rem; font-size: var(--fs-small); font-weight: 700;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  transform: translateY(12px); opacity: 0;
  transition: transform 0.3s var(--ease-out), opacity 0.3s ease;
}
.toast.is-in { transform: translateY(0); opacity: 1; }
.toast-error { border-left-color: var(--red); color: var(--red-deep); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: var(--space-7); }
.footer-shout {
  padding: var(--space-5) 0 0;
}
.footer-shout .t-shout {
  font-size: clamp(2.6rem, 9vw, 7.5rem);
  color: transparent; -webkit-text-stroke: 1.5px var(--gold-dim);
  transition: color 0.6s ease;
  line-height: 1;
}
.footer-shout a:hover .t-shout { color: var(--gold); -webkit-text-stroke-color: var(--gold); }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-4);
  padding-block: var(--space-5);
}
.footer-col h4 { font-size: var(--fs-tag); font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.1rem; }
.footer-col a { display: block; padding-block: 0.32rem; color: var(--smoke); font-size: var(--fs-small); font-weight: 600; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--bone); }
.footer-legal {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: 1.5rem; border-top: 1px solid var(--line);
  color: var(--smoke); font-size: 0.8125rem;
}
.footer-social { display: flex; gap: 1.1rem; font-size: 1.1rem; }
.footer-social a { color: var(--smoke); transition: color 0.2s ease; }
.footer-social a:hover { color: var(--gold); }

/* ---------- Reveal states (JS adds .is-in; hidden only when JS present) ---------- */
.js [data-rus-reveal] { opacity: 0; transform: translateY(28px); }
.js [data-rus-reveal].is-in { opacity: 1; transform: none; transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
@media (prefers-reduced-motion: reduce) {
  .js [data-rus-reveal] { opacity: 1; transform: none; }
}

/* ---------- Utility ---------- */
.grid-2 { display: grid; gap: var(--space-4); grid-template-columns: 1fr 1fr; align-items: center; }
.center { text-align: center; }
.mt-1 { margin-top: var(--space-1); } .mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); } .mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
.img-frame { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }

/* Section head with side action */
.sec-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap; margin-bottom: var(--space-4);
}
.sec-head h2 { font-size: var(--fs-h2); }

/* ==========================================================================
   Mobile — designed, not shrunk
   ========================================================================== */
@media (max-width: 900px) {
  .nav-links, .nav-search { display: none; }
  .nav-actions .link-sweep, .nav-actions .btn { display: none; }  /* menu owns these */
  .burger { display: block; }
  .site-header .nav { height: 64px; }

  .hero { padding-top: 1.75rem; }
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-3); }
  /* Words become full-bleed stacked color rows — the video frames themselves */
  .hero .t-shout { font-size: clamp(3.4rem, 17.5vw, 5.5rem); }
  .hero-visual { order: -1; }
  .hero-arch { aspect-ratio: 1; border-radius: 999px 999px 2px 2px; max-width: 78%; margin-inline: auto; }
  .hero-stamp { right: 2px; top: -18px; width: 84px; height: 84px; }
  .hero-cta .btn { flex: 1 1 100%; }

  .grid-2 { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
  .stat { padding: var(--space-3); display: flex; align-items: baseline; justify-content: space-between; text-align: left; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-3); }
  .sec { padding-block: var(--space-5); }

  /* Sticky shop bar: thumb-reach CTA on product pages */
  .buybar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    display: flex; align-items: center; gap: 1rem;
    background: color-mix(in srgb, var(--ink) 92%, transparent);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    padding: 0.8rem var(--gutter) calc(0.8rem + env(safe-area-inset-bottom));
  }
  .buybar .t-price { font-size: 1.2rem; }
  .buybar .btn { flex: 1; padding-block: 0.9rem; }
  body.has-buybar { padding-bottom: 84px; }
}
@media (min-width: 901px) { .buybar { display: none; } }

/* ==========================================================================
   Backstage — the app shell behind the rope
   (dashboard, studio, account, admin). Same house, working floor:
   ink canvas, hairline architecture, gold = value, red = act now.
   ========================================================================== */

.app-main { padding-block: var(--space-4) var(--space-6); }
.app-layout {
  display: grid; gap: var(--space-4);
  grid-template-columns: 248px minmax(0, 1fr);
  align-items: start;
}
@media (max-width: 900px) { .app-layout { grid-template-columns: 1fr; } }

/* Sidebar — the service corridor */
.app-nav {
  position: sticky; top: calc(76px + 1.25rem);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--ink-2), var(--ink));
  padding: 0.6rem;
}
.app-nav-head { padding: 0.9rem 1rem 0.7rem; }
.app-nav-head .t-tag { color: var(--gold); }
.app-nav-head a { font-size: 0.875rem; font-weight: 700; color: var(--bone); }
.app-nav-head a:hover { color: var(--gold); }
.app-nav-sep {
  padding: 1rem 1rem 0.4rem;
  font-size: var(--fs-tag); font-weight: 800; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--smoke);
  display: flex; align-items: center; gap: 8px;
}
.app-nav-sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.app-nav a.app-nav-item, .app-nav button.app-nav-item {
  position: relative;
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 0.68rem 1rem;
  font-size: 0.875rem; font-weight: 600; color: var(--smoke);
  border-radius: var(--radius); text-align: left;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.app-nav-item svg { flex: none; opacity: 0.85; }
.app-nav-item:hover { color: var(--bone); background: rgba(243, 228, 211, 0.04); }
.app-nav-item[aria-current="page"] {
  color: var(--bone); background: var(--ink-3);
}
.app-nav-item[aria-current="page"]::before {
  content: ""; position: absolute; left: 0; top: 15%; bottom: 15%;
  width: 2px; background: var(--gold);
}
.app-nav-item[aria-current="page"] svg { color: var(--gold); opacity: 1; }
.app-nav-item.is-danger { color: var(--red); }
.app-nav-item.is-danger:hover { background: color-mix(in srgb, var(--red) 12%, transparent); color: var(--red); }
@media (max-width: 900px) {
  .app-nav { position: static; display: flex; overflow-x: auto; gap: 2px; padding: 0.4rem; scrollbar-width: none; }
  .app-nav::-webkit-scrollbar { display: none; }
  .app-nav-head, .app-nav-sep { display: none; }
  .app-nav a.app-nav-item, .app-nav button.app-nav-item { flex: none; width: auto; white-space: nowrap; padding: 0.6rem 0.9rem; }
  .app-nav-item[aria-current="page"]::before { top: auto; left: 12%; right: 12%; bottom: 0; width: auto; height: 2px; }
}

/* Page head — every room announces itself */
.page-head { margin-bottom: var(--space-4); }
.page-head h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
.page-head .page-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.page-head-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1.25rem; flex-wrap: wrap;
}
.page-sub { color: var(--smoke); font-size: var(--fs-small); margin-top: 0.5rem; max-width: 46rem; }

/* Panels — working surfaces */
.panel {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--ink-2);
  padding: 1.5rem;
}
.panel + .panel { margin-top: 1.25rem; }
.panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-bottom: 1.1rem;
}
.panel-title {
  font-family: var(--font-shout); text-transform: uppercase;
  font-size: 1.15rem; letter-spacing: 0.04em;
}
.panel-bone { background: var(--bone); color: var(--ink); border-color: transparent; }
.panel-bone .t-smoke { color: #6E6155; }
.panel-gold { border-color: color-mix(in srgb, var(--gold) 45%, transparent); }
.panel-red { border-left: 3px solid var(--red); }

/* KPI tiles — numbers wear the crown */
.kpi-row { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.kpi-row { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.kpi { background: var(--ink-2); padding: 1.35rem 1.4rem; }
.kpi b {
  display: block; font-family: var(--font-shout); font-weight: 400;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.05; color: var(--gold);
}
.kpi b.is-plain { color: var(--bone); }
.kpi span { display: block; margin-top: 0.35rem; color: var(--smoke); font-size: var(--fs-tag); font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.kpi .kpi-note { margin-top: 0.4rem; font-size: 0.8125rem; color: var(--smoke); text-transform: none; letter-spacing: 0; font-weight: 600; }

/* Data tables — ledgers, not spreadsheets */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-2); }
table.tbl { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.tbl th {
  text-align: left; padding: 0.85rem 1.1rem;
  font-size: var(--fs-tag); font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--smoke); border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}
.tbl td { padding: 0.95rem 1.1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tbody tr { transition: background-color 0.2s ease; }
.tbl tbody tr:hover { background: rgba(243, 228, 211, 0.03); }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .t-price { font-size: 0.9375rem; }

/* Status chips — the house stamp on every state */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0.22rem 0.66rem; border-radius: var(--radius-pill);
  font-size: var(--fs-tag); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid var(--line-strong); color: var(--smoke);
}
.chip::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.chip-gold { border-color: color-mix(in srgb, var(--gold) 60%, transparent); color: var(--gold); }
.chip-red  { border-color: color-mix(in srgb, var(--red) 60%, transparent); color: var(--red); }
.chip-bone { border-color: var(--bone); color: var(--bone); }

/* Forms — working paper */
.form-grid { display: grid; gap: 0 1.5rem; grid-template-columns: 1fr 1fr; }
.form-grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.field-help { margin-top: 6px; font-size: 0.8125rem; color: var(--smoke); }
textarea.input { min-height: 120px; resize: vertical; }
select.input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23A2968A' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
  padding-right: 2.6rem;
}
.check-row { display: flex; align-items: center; gap: 10px; font-size: var(--fs-small); font-weight: 600; }
.check-row input { accent-color: var(--red); width: 16px; height: 16px; }

/* Toggle switch */
.switch { position: relative; display: inline-flex; align-items: center; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.switch .track {
  width: 42px; height: 24px; border-radius: var(--radius-pill);
  background: var(--ink-3); border: 1px solid var(--line-strong);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
.switch .track::after {
  content: ""; position: absolute; top: 50%; left: 4px; transform: translateY(-50%);
  width: 16px; height: 16px; border-radius: 50%; background: var(--smoke);
  transition: transform 0.25s var(--ease-snap), background-color 0.25s ease;
}
.switch input:checked + .track { background: color-mix(in srgb, var(--gold) 30%, var(--ink-3)); border-color: var(--gold); }
.switch input:checked + .track::after { transform: translate(18px, -50%); background: var(--gold); }
.switch input:focus-visible + .track { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Progress — quiet gold advance */
.progress { height: 4px; border-radius: var(--radius-pill); background: var(--ink-3); overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--gold); border-radius: inherit; transition: width 0.8s var(--ease-out); }

/* Copy fields (referral links, QR urls) */
.copy-field {
  display: flex; align-items: stretch; gap: 0;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--ink-2);
}
.copy-field input, .copy-field code {
  flex: 1; min-width: 0; padding: 0.8rem 1rem; background: transparent; border: 0;
  font-size: 0.8125rem; color: var(--bone); font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.copy-field button {
  flex: none; padding: 0 1.1rem; border-left: 1px solid var(--line);
  font-size: var(--fs-tag); font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); transition: background-color 0.2s ease;
}
.copy-field button:hover { background: rgba(217, 164, 65, 0.08); }

/* Empty states — an invitation, not an apology */
.empty {
  text-align: center; padding: var(--space-5) var(--space-3);
  border: 1px dashed var(--line-strong); border-radius: var(--radius);
}
.empty .t-whisper { font-size: 1.35rem; color: var(--bone); display: block; }
.empty p { color: var(--smoke); font-size: var(--fs-small); margin: 0.6rem auto 1.4rem; max-width: 30rem; }

/* Sparkbars — tiny ledgers of momentum (JS fills from data-spark) */
.spark { display: flex; align-items: flex-end; gap: 3px; height: 44px; }
.spark i {
  flex: 1; min-height: 2px; border-radius: 1px 1px 0 0;
  background: color-mix(in srgb, var(--gold) 55%, var(--ink-3));
  transform-origin: bottom;
}
.spark i:last-child { background: var(--gold); }
.js .spark.is-armed i { transform: scaleY(0); }
.js .spark.is-in i { transform: scaleY(1); transition: transform 0.7s var(--ease-out); }

/* Timeline — order/ticket histories */
.tline { list-style: none; margin: 0; padding: 0; }
.tline li { position: relative; padding: 0 0 1.4rem 1.6rem; }
.tline li::before {
  content: ""; position: absolute; left: 4px; top: 8px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold);
}
.tline li::after {
  content: ""; position: absolute; left: 7px; top: 20px; bottom: -2px;
  width: 1px; background: var(--line);
}
.tline li:last-child::after { display: none; }
.tline time { display: block; font-size: var(--fs-tag); font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--smoke); }

/* Tabs — hairline, not pills */
.tabs { display: flex; gap: 1.6rem; border-bottom: 1px solid var(--line); margin-bottom: 1.5rem; overflow-x: auto; }
.tabs a, .tabs button {
  position: relative; padding: 0.7rem 2px; white-space: nowrap;
  font-size: var(--fs-small); font-weight: 700; color: var(--smoke);
  transition: color 0.2s ease;
}
.tabs [aria-current="page"], .tabs [aria-selected="true"] { color: var(--bone); }
.tabs [aria-current="page"]::after, .tabs [aria-selected="true"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--gold);
}

/* Ticket / message thread */
.msg { display: flex; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.msg:last-child { border-bottom: 0; }
.msg-ava {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  background: var(--ink-3); border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-shout); font-size: 0.95rem; color: var(--gold);
}
.msg.is-staff .msg-ava { border-color: var(--gold); }
.msg-body { min-width: 0; }
.msg-meta { font-size: var(--fs-tag); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--smoke); margin-bottom: 0.3rem; }
.msg-meta b { color: var(--bone); }
.msg.is-staff .msg-meta b { color: var(--gold); }

/* Legal prose — terms & privacy read like a printed contract */
.prose { max-width: 46rem; }
.prose h2 {
  font-family: var(--font-shout); text-transform: uppercase; letter-spacing: 0.03em;
  font-size: 1.5rem; margin: 2.6rem 0 0.9rem;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.05rem; font-weight: 800; margin: 1.8rem 0 0.6rem; }
.prose p, .prose li { color: color-mix(in srgb, var(--bone) 82%, var(--smoke)); font-size: 0.9875rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: 0.45rem; }
.prose strong { color: var(--bone); }
.prose a { color: var(--gold); }
.prose a:hover { text-decoration: underline; }

/* Auth-ish centered rooms (2FA, checkout success, maintenance) */
.room { max-width: 30rem; margin-inline: auto; text-align: center; padding-block: var(--space-6); }
.room .room-mark { margin: 0 auto 1.6rem; width: 96px; height: 96px; }
.room h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }

/* Backstage mobile */
@media (max-width: 900px) {
  .app-main { padding-block: var(--space-3) var(--space-5); }
  .panel { padding: 1.1rem; }
  .kpi-row { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}
