/* ============================================================
   ARTINO — Theatre palette · cinematic art platform
   ============================================================ */

/* ---- Fonts ---- */
/* Loaded via <link> in index.html <head> (preconnect + parallel fetch) so the
   font request doesn't sit behind this stylesheet. */

:root {
  /* Theatre palette */
  --bg:        #0C0A08;
  --surface:   #16120D;
  --surface-2: #1E1812;
  --tungsten:  #E8A33D;
  --halo:      #F4C879;
  --gold:      #C9A227;
  --red:       #6E1A1A;
  --cream:     #F4EEE2;
  --grey:      #A89F92;
  --violet:    #7C3AED;

  --gold-line: rgba(201,162,39,0.30);
  --gold-faint: rgba(201,162,39,0.14);

  /* Type families — display swapped via [data-display-font] */
  --display: 'Fraunces', Georgia, serif;
  --body: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --maxw: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-display-font="playfair"] { --display: 'Playfair Display', Georgia, serif; }

/* tweak hooks */
html[data-grain="off"] body::after { opacity: 0; }
html[data-spotlight="off"] .hero-spot,
html[data-spotlight="off"] .waitlist-spot { opacity: 0; }

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* keep anchored sections clear of the fixed nav when jumping via the menu */
  scroll-padding-top: 88px;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ---- Film grain overlay across whole page ---- */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- Real imagery ---- */
.img-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
img.av { object-fit: cover; display: block; }

/* ---- Shared primitives ---- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

.eyebrow {
  font-family: var(--body);
  text-transform: uppercase;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--gold);
}

.display {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.018em;
  color: var(--cream);
  text-wrap: balance;
}

.mono { font-family: var(--mono); font-feature-settings: "tnum" 1; }

.muted { color: var(--grey); }

/* gold hairline act-break rule */
.act-rule {
  height: 1px; border: 0; margin: 0;
  background: linear-gradient(90deg, transparent, var(--gold-line) 18%, var(--gold-line) 82%, transparent);
}

/* soft tungsten spotlight pool */
.spot {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(40px);
  background: radial-gradient(closest-side, rgba(232,163,61,0.32), rgba(232,163,61,0.10) 55%, transparent 75%);
}

/* ---- Reveal animation (visible by default; hidden only when JS present) ---- */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  font-family: var(--body); font-weight: 600; font-size: 15px; letter-spacing: 0.01em;
  padding: 15px 30px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; text-decoration: none;
  position: relative; overflow: hidden; white-space: nowrap;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.3s, border-color 0.3s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--halo) 0%, var(--tungsten) 52%, var(--gold) 100%);
  color: #1a1206;
  box-shadow: 0 4px 18px -6px rgba(232,163,61,0.5), inset 0 1px 0 rgba(255,255,255,0.4);
}
.btn-primary:hover {
  box-shadow: 0 14px 46px -8px rgba(232,163,61,0.55), inset 0 1px 0 rgba(255,255,255,0.5);
  transform: translateY(-2px);
}
.btn-primary:active { transform: translateY(0); }
/* gold shimmer sweep */
.btn-primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.5) 50%, transparent 70%);
  transform: translateX(-130%); transition: transform 0.7s var(--ease);
}
.btn-primary:hover::after { transform: translateX(130%); }
.btn-ghost {
  background: rgba(244,238,226,0.02); color: var(--cream);
  border-color: var(--gold-line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.btn-ghost:hover {
  border-color: var(--gold); background: rgba(201,162,39,0.08);
  transform: translateY(-2px);
  box-shadow: 0 10px 32px -12px rgba(201,162,39,0.32), inset 0 1px 0 rgba(255,255,255,0.06);
}
.btn-ghost:active { transform: translateY(0); }

/* focus ring */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--tungsten); outline-offset: 3px;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  transition: background 0.5s var(--ease), border-color 0.5s, backdrop-filter 0.5s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(12,10,8,0.72);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--gold-faint);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 18px 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display); font-size: 25px; font-weight: 600;
  letter-spacing: -0.01em; color: var(--cream); text-decoration: none;
}
.brand .mark {
  width: 11px; height: 11px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, var(--halo), var(--tungsten) 55%, var(--gold));
  box-shadow: 0 0 14px 2px rgba(232,163,61,0.6);
  flex: none;
}
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-size: 14px; color: var(--grey); text-decoration: none; font-weight: 500;
  transition: color 0.3s; letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--cream); }
.nav-cta { margin-left: 6px; }
/* The CTA is a primary button living inside .nav-links, whose `a { color: grey }`
   rule outranks .btn-primary and was painting the label grey-on-gold (only legible
   on hover). Keep the button's dark ink in both rest and hover states. */
.nav-links a.nav-cta,
.nav-links a.nav-cta:hover { color: #1a1206; }
.nav-burger { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-burger span { display: block; width: 24px; height: 1.5px; background: var(--cream); margin: 5px 0; transition: 0.3s; }

/* mobile curtain menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 1500;
  background: linear-gradient(180deg, #0c0a08, #16120d);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  transform: translateY(-100%); transition: transform 0.6s var(--ease);
}
.mobile-menu.open { transform: none; }
.mobile-menu a { font-family: var(--display); font-size: 32px; color: var(--cream); text-decoration: none; padding: 12px; }
.mobile-menu .close { position: absolute; top: 22px; right: 26px; font-size: 30px; color: var(--cream); background: none; border: 0; cursor: pointer; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-bottom: 7vh; overflow: hidden;
}
.hero-photo {
  position: absolute; inset: -6% 0 0 0; z-index: 0;
  will-change: transform;
}
.hero-photo .ph { position: absolute; inset: 0; }
.hero-vignette {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% 18%, transparent 35%, rgba(12,10,8,0.55) 100%),
    linear-gradient(180deg, rgba(12,10,8,0.55) 0%, transparent 28%, transparent 45%, rgba(12,10,8,0.92) 88%, var(--bg) 100%);
}
.hero-spot {
  position: absolute; z-index: 1; width: 760px; height: 760px;
  left: 8%; top: 30%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(232,163,61,0.20), rgba(232,163,61,0.06) 50%, transparent 72%);
  filter: blur(30px);
  transition: transform 0.5s var(--ease);
}
.hero-content { position: relative; z-index: 3; width: 100%; }
.hero h1 {
  font-size: clamp(44px, 7vw, 84px);
  margin: 20px 0 0; max-width: none;
}
.hero h1 .ln {
  display: block; overflow: hidden; white-space: nowrap;
  /* overflow:hidden powers the rise-in reveal but clips the italic descender
     (the "g" in "belongs") because line-height is so tight. Pad the box and
     cancel it in layout so glyphs get room without nudging the sub-headline. */
  padding-bottom: 0.18em; margin-bottom: -0.18em;
}
.hero h1 .ln > span { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .js .hero h1 .ln > span { animation: riseIn 1s var(--ease) both; }
  .js .hero h1 .ln:nth-child(3) > span { animation-delay: 0.10s; }
  .js .hero h1 .ln:nth-child(4) > span { animation-delay: 0.20s; }
}
@keyframes riseIn { from { transform: translateY(106%); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .hero h1 .ln > span { transform: none !important; } }
.hero .sub { max-width: 52ch; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.5; color: var(--cream); margin: 26px 0 0; opacity: 0.92; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero .proof { margin-top: 30px; font-size: 13px; color: var(--grey); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hero .proof .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }

/* floating feed fragment (Language B) */
.hero-feed {
  position: absolute; z-index: 4; right: 5%; bottom: 16vh;
  width: 290px; will-change: transform;
  animation: bob 6s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .hero-feed { animation: none; } }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  position: relative; overflow: hidden; padding: 26px 0;
  border-top: 1px solid var(--gold-faint); border-bottom: 1px solid var(--gold-faint);
  background: linear-gradient(180deg, #100d0a, #0c0a08);
}
.marquee-track { display: flex; gap: 0; width: max-content; animation: scrollx 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }
@keyframes scrollx { to { transform: translateX(-50%); } }
.marquee-item {
  font-family: var(--display); font-size: 30px; font-style: italic; font-weight: 400;
  color: var(--cream); padding: 0 34px; white-space: nowrap; opacity: 0.85;
}
.marquee-item::after { content: "·"; color: var(--gold); margin-left: 68px; }

/* ============================================================
   PLACEHOLDER FRAMES (Language A — cinematic photo slots)
   ============================================================ */
.ph {
  position: relative; overflow: hidden;
  background:
    linear-gradient(135deg, rgba(232,163,61,0.10), transparent 40%),
    repeating-linear-gradient(135deg, #14100b 0 14px, #100d09 14px 28px);
  display: flex; align-items: flex-end;
}
.ph::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 70% 25%, rgba(232,163,61,0.16), transparent 55%);
  mix-blend-mode: screen;
}
.ph .ph-note {
  position: relative; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em;
  color: rgba(244,238,226,0.6); padding: 14px 16px; max-width: 80%;
  border-left: 1px solid var(--gold-line); margin: 16px; line-height: 1.5;
}
.ph .ph-note b { color: var(--tungsten); font-weight: 500; display: block; margin-bottom: 3px; text-transform: uppercase; letter-spacing: 0.12em; font-size: 10px; }

/* ============================================================
   LIVING UI — fragment card primitives (Language B)
   ============================================================ */
.ui {
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid rgba(244,238,226,0.08);
  border-radius: 14px;
  box-shadow: 0 30px 70px -30px rgba(0,0,0,0.85), 0 0 0 1px rgba(201,162,39,0.05) inset;
  padding: 16px;
  backdrop-filter: blur(4px);
}
.ui-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ui-chip {
  font-size: 11px; font-weight: 500; padding: 5px 11px; border-radius: 100px;
  border: 1px solid var(--gold-line); color: var(--cream); background: rgba(201,162,39,0.06);
  white-space: nowrap;
}
.ui-chip.tung { background: rgba(232,163,61,0.14); border-color: rgba(232,163,61,0.4); color: var(--halo); }
.ui-chip.violet { background: rgba(124,58,237,0.14); border-color: rgba(124,58,237,0.45); color: #c4a9f5; }
.ui-label { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey); font-weight: 600; }
.ui-val { font-family: var(--mono); color: var(--cream); font-weight: 500; }
.ui-divider { height: 1px; background: rgba(244,238,226,0.07); margin: 12px 0; border: 0; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 8px 1px rgba(124,58,237,0.8); display: inline-block; }

/* ============================================================
   ROLE CLARITY
   ============================================================ */
.roles { position: relative; padding: 120px 0 100px; }
.roles .head { text-align: center; margin-bottom: 56px; }
.roles .head .t { font-size: clamp(34px, 4.4vw, 56px); margin: 14px 0 0; }
.role-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; }
.role-card {
  position: relative; padding: 40px 32px;
  border: 1px solid var(--gold-faint);
  background: linear-gradient(180deg, rgba(30,24,18,0.5), rgba(22,18,13,0.5));
  transition: background 0.65s var(--ease), transform 0.65s var(--ease), box-shadow 0.65s var(--ease);
}
.role-card:nth-child(2) { transform: translateY(-18px); z-index: 2; }
.role-card:hover { background: linear-gradient(180deg, var(--surface-2), var(--surface)); box-shadow: 0 30px 70px -40px rgba(232,163,61,0.4); }
.role-card .rc-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600;
  padding: 7px 13px; border-radius: 100px; margin-bottom: 22px;
}
.rc-fan { color: #c4a9f5; background: rgba(124,58,237,0.12); border: 1px solid rgba(124,58,237,0.4); }
.rc-artist { color: var(--halo); background: rgba(232,163,61,0.12); border: 1px solid rgba(232,163,61,0.42); }
.rc-org { color: var(--gold); background: rgba(201,162,39,0.1); border: 1px solid var(--gold-line); }
.role-card h3 { font-family: var(--display); font-size: 27px; font-weight: 500; line-height: 1.12; margin: 0 0 14px; letter-spacing: -0.01em; }
.role-card p { margin: 0; font-size: 15.5px; color: var(--grey); line-height: 1.6; }
.role-thread { position: absolute; top: 50%; left: 8%; right: 8%; height: 1px; z-index: 1; background: linear-gradient(90deg, transparent, var(--tungsten), var(--gold), var(--violet), transparent); opacity: 0.5; }
.roles .finep { text-align: center; margin-top: 46px; font-size: 14px; color: var(--grey); }
.roles .finep b { color: var(--cream); font-weight: 500; }
