/* =========================================================================
   BAND FILMS — Design System
   Palette: near-black projection room + brass film-reel gold + velvet crimson
   Type: Fraunces (display, cinematic serif) / Space Grotesk (body/UI) / JetBrains Mono (timecodes)
   ========================================================================= */

:root {
  /* Color */
  --bg: #0b0b0d;
  --bg-alt: #131217;
  --surface: #17161c;
  --surface-2: #1e1c23;
  --line: rgba(242, 239, 234, 0.1);
  --line-strong: rgba(242, 239, 234, 0.22);
  --cream: #f2efea;
  --cream-dim: #b8b3aa;
  --muted: #837e78;
  --gold: #d4a24c;
  --gold-bright: #eec27a;
  --crimson: #7a2331;
  --crimson-bright: #a53347;

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", ui-serif, Georgia, serif;
  --font-body: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Scale */
  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.92rem);
  --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.6rem, 1.4rem + 1vw, 2.1rem);
  --step-3: clamp(2.1rem, 1.7rem + 2vw, 3.2rem);
  --step-4: clamp(2.8rem, 2.1rem + 3.5vw, 5.2rem);

  /* Layout */
  --maxw: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --radius: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@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; scroll-behavior: auto !important; }
}
body, h1, h2, h3, p, figure, blockquote { margin: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* subtle film-grain overlay across the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%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");
  mix-blend-mode: overlay;
}

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

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: var(--step-4); line-height: 0.98; }
h2 { font-size: var(--step-3); line-height: 1.05; }
h3 { font-size: var(--step-1); line-height: 1.2; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gold);
}

/* ---------- Domain-for-sale banner ---------- */
.domain-sale-banner {
  position: relative;
  z-index: 9999;
  width: 100%;
  color: var(--cream);
  background:
    radial-gradient(circle at 12% 50%, rgba(212, 162, 76, 0.28), transparent 40%),
    linear-gradient(100deg, #050506 0%, #121016 55%, #2a1116 100%);
  border-bottom: 1px solid var(--line-strong);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  font-family: var(--font-body);
}
.domain-sale-banner__content {
  width: min(1180px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.domain-sale-banner__text { display: grid; gap: 4px; line-height: 1.35; }
.domain-sale-banner__text strong {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.domain-sale-banner__text span { color: var(--cream-dim); font-size: 0.92rem; }
.domain-sale-banner__button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 22px;
  color: #17130c;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  border: 1px solid rgba(238, 194, 122, 0.6);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(212, 162, 76, 0.25);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 160ms var(--ease), box-shadow 160ms var(--ease);
}
.domain-sale-banner__button:hover,
.domain-sale-banner__button:focus-visible {
  box-shadow: 0 10px 26px rgba(212, 162, 76, 0.4);
  transform: translateY(-2px);
  outline: none;
}
@media (max-width: 680px) {
  .domain-sale-banner__content { min-height: auto; padding: 14px 0; align-items: stretch; flex-direction: column; gap: 12px; }
  .domain-sale-banner__button { width: 100%; }
}

/* ---------- Sprocket rail (signature element: scroll progress as film sprockets) ---------- */
.sprocket-rail {
  position: fixed;
  top: 0; left: 0;
  width: 6px;
  height: 100%;
  z-index: 1500;
  background: rgba(0,0,0,0.4);
  border-right: 1px solid var(--line);
  display: none;
}
.sprocket-rail__fill {
  width: 100%;
  background: linear-gradient(180deg, var(--gold), var(--crimson-bright));
  height: 0%;
  transition: height 80ms linear;
}
@media (min-width: 900px) { .sprocket-rail { display: block; } }

/* ---------- Header / marquee nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(11, 11, 13, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--cream);
}
.brand img { width: 34px; height: 34px; }
.brand small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
}
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a {
  position: relative;
  display: inline-block;
  padding: 10px 16px;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--cream-dim);
  transition: color 160ms var(--ease);
}
.nav-links a:hover, .nav-links a:focus-visible, .nav-links a[aria-current="page"] { color: var(--cream); outline: none; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 6px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms var(--ease);
}
.nav-links a:hover::after, .nav-links a:focus-visible::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--cream);
  width: 42px; height: 42px;
  border-radius: var(--radius);
  cursor: pointer;
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 260ms var(--ease);
  }
  .nav-links.is-open { max-height: 320px; }
  .nav-links a { padding: 16px var(--gutter); border-bottom: 1px solid var(--line); }
}

/* ---------- Film-strip section divider ---------- */
.filmstrip-divider {
  display: flex;
  height: 22px;
  overflow: hidden;
  background: #000;
  border-block: 1px solid var(--line);
}
.filmstrip-divider span {
  flex: 0 0 auto;
  width: 14px;
  height: 10px;
  margin: auto 8px;
  background: var(--surface-2);
  border-radius: 2px;
}

/* ---------- Hero (title-card style) ---------- */
.hero {
  position: relative;
  padding-block: clamp(64px, 12vw, 140px) clamp(56px, 8vw, 96px);
  text-align: center;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(11,11,13,0.2), var(--bg) 85%),
    url("../images/hero-banner.jpg") center/cover no-repeat;
}
.hero__inner { position: relative; z-index: 2; }
.hero .eyebrow { justify-content: center; margin-bottom: 22px; }
.hero h1 { max-width: 16ch; margin-inline: auto; }
.hero h1 em {
  font-style: italic;
  color: var(--gold-bright);
}
.hero__lede {
  max-width: 52ch;
  margin: 26px auto 0;
  color: var(--cream-dim);
  font-size: var(--step-1);
}
.hero__underline {
  width: 120px;
  height: 2px;
  margin: 34px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: flicker 3.4s ease-in-out infinite;
}
@keyframes flicker {
  0%, 100% { opacity: 0.55; }
  45% { opacity: 1; }
  50% { opacity: 0.4; }
  55% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .hero__underline { animation: none; opacity: 0.85; } }

.hero__actions { display: flex; gap: 14px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 160ms var(--ease), box-shadow 160ms var(--ease), background 160ms var(--ease), border-color 160ms var(--ease);
}
.btn-primary { background: linear-gradient(180deg, var(--gold-bright), var(--gold)); color: #17130c; box-shadow: 0 10px 24px rgba(212,162,76,0.22); }
.btn-primary:hover, .btn-primary:focus-visible { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(212,162,76,0.32); outline: none; }
.btn-ghost { border-color: var(--line-strong); color: var(--cream); background: transparent; }
.btn-ghost:hover, .btn-ghost:focus-visible { border-color: var(--gold); color: var(--gold-bright); outline: none; }

/* ---------- Timecode section labels (used because content is literally footage) ---------- */
.timecode {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ---------- Sections ---------- */
section { padding-block: clamp(56px, 9vw, 108px); }
.section-head { max-width: 60ch; margin-bottom: clamp(36px, 6vw, 56px); }
.section-head h2 { margin-top: 14px; }
.section-head p { color: var(--cream-dim); margin-top: 16px; font-size: var(--step-0); }

/* Reels / services grid */
.reels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.reel {
  background: var(--bg);
  padding: 34px 28px;
  transition: background 200ms var(--ease);
}
.reel:hover { background: var(--surface); }
.reel__icon { width: 44px; height: 44px; color: var(--gold); margin-bottom: 20px; }
.reel h3 { margin-bottom: 10px; }
.reel p { color: var(--cream-dim); font-size: 0.95rem; }

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Reel-to-reel (process) list — a real sequence, so numbering is warranted */
.process { display: grid; gap: 0; border-top: 1px solid var(--line); }
.process__row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding-block: 28px;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.process__code { font-family: var(--font-mono); color: var(--gold); font-size: 0.95rem; }
.process__row h3 { margin-bottom: 8px; }
.process__row p { color: var(--cream-dim); }

/* Reel canister feature (about) */
.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.split figure {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-strong);
}
.split figure img { width: 100%; height: 100%; object-fit: cover; }
.split figure::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.55));
}
.stat-row { display: flex; gap: clamp(24px, 5vw, 48px); margin-top: 36px; flex-wrap: wrap; }
.stat b { display: block; font-family: var(--font-display); font-size: var(--step-2); color: var(--gold-bright); }
.stat span { font-size: 0.85rem; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }

/* Quote / pull */
.pull {
  border-left: 2px solid var(--gold);
  padding-left: 28px;
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.3;
  color: var(--cream);
  max-width: 42ch;
}
.pull cite { display: block; margin-top: 20px; font-family: var(--font-mono); font-style: normal; font-size: 0.85rem; color: var(--muted); }

/* CTA band */
.cta-band {
  text-align: center;
  padding-block: clamp(64px, 10vw, 120px);
  background: radial-gradient(ellipse at center, rgba(122,35,49,0.25), transparent 65%), var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cta-band h2 { max-width: 18ch; margin-inline: auto; }
.cta-band p { color: var(--cream-dim); margin: 18px auto 0; max-width: 46ch; }
.cta-band .btn { margin-top: 34px; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.field input, .field textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 160ms var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field textarea { resize: vertical; min-height: 130px; }
.contact-info-list { display: grid; gap: 20px; margin-top: 8px; }
.contact-info-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-info-list svg { width: 20px; height: 20px; color: var(--gold); flex: none; margin-top: 3px; }
.contact-info-list b { display: block; font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 48px 32px; }
.footer-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-brand { max-width: 34ch; color: var(--cream-dim); font-size: 0.9rem; }
.footer-cols { display: flex; gap: clamp(32px, 6vw, 72px); flex-wrap: wrap; }
.footer-col h4 { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer-col a { display: block; padding-block: 6px; color: var(--cream-dim); text-decoration: none; font-size: 0.9rem; }
.footer-col a:hover, .footer-col a:focus-visible { color: var(--gold-bright); outline: none; }
.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--muted);
  font-family: var(--font-mono);
}

/* ---------- 404 ---------- */
.error-hero {
  text-align: center;
  padding-block: clamp(80px, 16vw, 160px);
}
.error-code {
  font-family: var(--font-mono);
  font-size: clamp(3rem, 14vw, 8rem);
  color: var(--gold);
  letter-spacing: 0.02em;
  line-height: 1;
}
.error-hero p { color: var(--cream-dim); max-width: 44ch; margin: 20px auto 0; }
.error-hero .btn { margin-top: 34px; }

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: #17130c;
  padding: 12px 18px;
  z-index: 10000;
  font-weight: 700;
  border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

::selection { background: var(--gold); color: #17130c; }
