/* ============================================================
   JOSH BUTCHER ONLINE — cinematic scroll film
   Ink black · warm orange · cream · rare emerald rim light
   ============================================================ */

/* ---------- Fonts (local, latin subset) ---------- */
@font-face {
  font-family: 'Anton';
  src: url('assets/fonts/anton-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/inter-latin-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #0A0A0A;
  --surface: #141110;
  --orange: #FF6A2B;
  --ember: #C4451A;
  --cream: #F4EFE6;
  --muted: #A69E90;
  --emerald: #2FBF8F;

  --font-display: 'Anton', 'Archivo Black', 'Oswald', Impact, sans-serif;
  --font-body: 'Inter', -apple-system, 'Helvetica Neue', Arial, sans-serif;

  --ease-film: cubic-bezier(0.22, 1, 0.36, 1); /* weighted, filmic */
  --pad-x: clamp(1.25rem, 5vw, 5rem);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  background: var(--ink);
  scrollbar-color: var(--ember) var(--ink);
}

body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

::selection { background: var(--orange); color: var(--ink); }

/* ============================================================
   FIXED CHROME
   ============================================================ */

/* Film grain — SVG turbulence tile, stepped jitter for a live-film feel */
.grain {
  position: fixed;
  inset: -100px;
  z-index: 90;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.055;
  mix-blend-mode: overlay;
  animation: grain-jitter 0.9s steps(4) infinite;
}
@keyframes grain-jitter {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-38px, 22px); }
  50%  { transform: translate(24px, -30px); }
  75%  { transform: translate(-16px, -14px); }
  100% { transform: translate(0, 0); }
}

/* Scroll progress hairline */
.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 100;
  pointer-events: none;
}
.progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--ember), var(--orange));
  transform: scaleX(0);
  transform-origin: left center;
}

/* Custom cursor — desktop, fine pointers only */
.cursor {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--orange);
  z-index: 110;
  pointer-events: none;
  mix-blend-mode: difference;
  transition: width .35s var(--ease-film), height .35s var(--ease-film), opacity .3s;
}
@media (pointer: fine) {
  .cursor { display: block; }
  .cursor.is-hovering { width: 44px; height: 44px; }
}

/* Top bar */
.site-head {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--pad-x);
  background: linear-gradient(180deg, rgba(10,10,10,.75), rgba(10,10,10,0));
}
.brand {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: .14em;
  color: var(--cream);
}
.brand span { color: var(--orange); }
.head-link {
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .3s;
}
.head-link:hover { color: var(--orange); }

/* ============================================================
   SHARED PIECES
   ============================================================ */

/* Scene marker eyebrow — the film-language wayfinding */
.eyebrow {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: clamp(1.5rem, 4vh, 3rem);
}
.eyebrow-tick {
  width: 26px; height: 1px;
  background: var(--orange);
  box-shadow: 0 0 12px rgba(255,106,43,.8);
}

/* Mask-reveal container: JS animates the inner span up out of the mask */
.reveal-mask {
  display: block;
  overflow: hidden;
}
.reveal-mask > span { display: block; }

/* Letterboxed sections — thin cinema rules top and bottom */
.letterbox {
  position: relative;
  border-top: 1px solid rgba(244,239,230,.1);
  border-bottom: 1px solid rgba(244,239,230,.1);
}
.letterbox::before, .letterbox::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 42px; height: 3px;
  background: var(--orange);
}
.letterbox::before { top: -2px; }
.letterbox::after { bottom: -2px; }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  padding: 1.05rem 2.4rem;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .4s var(--ease-film), box-shadow .4s var(--ease-film),
              background-color .4s, color .4s, border-color .4s;
}
.btn--primary {
  background: var(--orange);
  color: var(--ink);
  box-shadow: 0 0 0 rgba(255,106,43,0);
}
.btn--primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 40px rgba(255,106,43,.45), 0 0 80px rgba(196,69,26,.25);
}
.btn--ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(244,239,230,.3);
}
.btn--ghost:hover {
  border-color: var(--orange);
  color: var(--orange);
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(255,106,43,.18);
}

/* ============================================================
   01 · HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero-media video {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 50% 10%, rgba(10,10,10,0) 30%, rgba(10,10,10,.55) 100%),
    linear-gradient(180deg, rgba(10,10,10,.35) 0%, rgba(10,10,10,.05) 40%, rgba(10,10,10,.88) 96%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 var(--pad-x) clamp(4.5rem, 10vh, 7rem);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: .88;
  letter-spacing: .01em;
  text-transform: uppercase;
  margin-bottom: clamp(1.2rem, 3vh, 2rem);
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line-inner {
  display: block;
  font-size: clamp(4.5rem, 16.5vw, 15rem);
  color: var(--cream);
  /* no text-shadow here: the reveal mask (overflow:hidden) would clip a
     large glow into a visible rectangle — section scrims carry the light */
}
.hero-title .line--outline .line-inner {
  color: transparent;
  -webkit-text-stroke: 2px var(--cream);
}

.hero-sub span {
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  font-weight: 500;
  color: var(--cream);
  max-width: 34ch;
}
.hero-tags { margin-top: .8rem; }
.hero-tags span {
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-cta { margin-top: 2rem; }

.scroll-hint {
  position: absolute;
  right: var(--pad-x);
  bottom: clamp(4.5rem, 10vh, 7rem);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .8rem;
}
.scroll-hint-label {
  font-size: .68rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--muted);
  writing-mode: vertical-rl;
}
.scroll-hint-line {
  width: 1px; height: 56px;
  background: linear-gradient(180deg, var(--orange), transparent);
  animation: hint-drop 2.2s var(--ease-film) infinite;
  transform-origin: top center;
}
@keyframes hint-drop {
  0% { transform: scaleY(0); }
  45% { transform: scaleY(1); transform-origin: top center; }
  55% { transform-origin: bottom center; }
  100% { transform: scaleY(0); transform-origin: bottom center; }
}

/* ============================================================
   02 · STATS STRIP
   ============================================================ */
.stats {
  background: var(--surface);
  border-top: 1px solid rgba(244,239,230,.06);
  border-bottom: 1px solid rgba(244,239,230,.06);
  padding: clamp(3rem, 7vh, 5rem) var(--pad-x);
}
.stats-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  line-height: 1;
  color: var(--orange);
  text-shadow: 0 0 50px rgba(255,106,43,.35);
  margin-bottom: .5rem;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================================================
   03 · MISSION
   ============================================================ */
.mission {
  padding: clamp(8rem, 22vh, 15rem) var(--pad-x);
  text-align: center;
  background:
    radial-gradient(60% 45% at 50% 55%, rgba(196,69,26,.12) 0%, rgba(10,10,10,0) 70%),
    var(--ink);
}
.mission-lines {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.04;
  max-width: 1300px;
  margin: 0 auto;
}
.mission-line span {
  font-size: clamp(1.9rem, 5.4vw, 5rem);
  color: var(--cream);
}
.mission-line--accent span { color: var(--orange); }
.mission-line--quiet {
  margin-top: clamp(1.6rem, 4vh, 3rem);
}
.mission-line--quiet span {
  font-family: var(--font-body);
  font-size: clamp(.95rem, 1.5vw, 1.25rem);
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================================================
   04 · PILLARS
   ============================================================ */
.pillars {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
.pillars-media {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.pillars-media video {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(.7);
}
.pillars-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10,10,10,.92) 0%, rgba(10,10,10,.55) 46%, rgba(10,10,10,.15) 100%),
    linear-gradient(180deg, rgba(10,10,10,.6), rgba(10,10,10,.15) 30%, rgba(10,10,10,.7) 100%);
}

.pillars-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--pad-x);
  max-width: 1500px;
}

.pillars-stack {
  position: relative;
  min-height: clamp(16rem, 40vh, 24rem);
  max-width: 620px;
}
.pillar {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.pillar-index {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.6vw, 1.4rem);
  color: var(--orange);
  letter-spacing: .2em;
  margin-bottom: 1rem;
}
.pillar-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 1;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 1.4rem;
  text-shadow: 0 0 60px rgba(10,10,10,.8);
}
.pillar-copy {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: var(--cream);
  opacity: .85;
  max-width: 42ch;
}

.pillar-rail {
  display: flex;
  gap: .6rem;
  margin-top: clamp(2rem, 5vh, 3.5rem);
}
.pillar-dot {
  width: 34px; height: 2px;
  background: rgba(244,239,230,.2);
  transition: background .4s, box-shadow .4s;
}
.pillar-dot.is-active {
  background: var(--orange);
  box-shadow: 0 0 14px rgba(255,106,43,.9);
}

/* ============================================================
   05 · STORY
   ============================================================ */
.story {
  padding: clamp(6rem, 16vh, 11rem) var(--pad-x);
  background: var(--ink);
}
.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}
.story-media {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}
.story-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(.8) contrast(1.06) brightness(.92);
  will-change: transform;
}
.story-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(196,69,26,.18), transparent 45%),
              linear-gradient(0deg, rgba(10,10,10,.5), transparent 35%);
  pointer-events: none;
}
.story-caption {
  position: absolute;
  left: 1.2rem; bottom: 1rem;
  font-size: .7rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: .75;
  z-index: 1;
}

.story-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: .95;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: clamp(1.6rem, 4vh, 2.6rem);
}
.story-title .reveal-mask:last-child span { color: var(--orange); }
.story-body {
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  color: var(--muted);
  max-width: 56ch;
  margin-bottom: 1.4rem;
}
.story-body:last-child { margin-bottom: 0; }

/* ============================================================
   06 · CLUBHOUSE
   ============================================================ */
.clubhouse {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.clubhouse-media {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.clubhouse-media video {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(.75);
}
.clubhouse-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(90% 90% at 50% 100%, rgba(10,10,10,.2) 0%, rgba(10,10,10,.75) 100%),
    linear-gradient(180deg, rgba(10,10,10,.85) 0%, rgba(10,10,10,.25) 35%, rgba(10,10,10,.85) 100%);
}
.clubhouse-content {
  position: relative;
  z-index: 2;
  padding: clamp(7rem, 16vh, 10rem) var(--pad-x);
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}
.clubhouse-content .eyebrow { justify-content: center; }
.clubhouse-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 8vw, 7.5rem);
  line-height: .95;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: clamp(1.6rem, 4vh, 2.4rem);
}
.clubhouse-title .reveal-mask:first-child span {
  color: var(--orange);
}
.clubhouse-body {
  font-size: clamp(1rem, 1.4vw, 1.22rem);
  color: var(--cream);
  opacity: .88;
  max-width: 62ch;
  margin: 0 auto clamp(2rem, 5vh, 3rem);
}

/* ============================================================
   07 · FEATURED WORK
   ============================================================ */
.work {
  padding: clamp(6rem, 16vh, 11rem) var(--pad-x);
  background: var(--ink);
  max-width: 1500px;
  margin: 0 auto;
}
.work-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  text-transform: uppercase;
  line-height: 1;
  color: var(--cream);
  margin-bottom: clamp(2.5rem, 6vh, 4.5rem);
}
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2.2rem);
}

.card {
  position: relative;
  display: block;
  background: var(--surface);
  border: 1px solid rgba(244,239,230,.08);
  border-radius: 16px;
  overflow: hidden;
  transition: transform .5s var(--ease-film), border-color .5s, box-shadow .5s var(--ease-film);
  will-change: transform;
}
.card:hover {
  transform: translateY(-8px);
  border-color: rgba(255,106,43,.55);
  box-shadow: 0 24px 60px rgba(0,0,0,.55), 0 0 50px rgba(255,106,43,.14), inset 0 0 0 1px rgba(255,106,43,.25);
}
.card-art {
  position: relative;
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(80% 90% at 70% 20%, rgba(196,69,26,.16), transparent 65%),
    linear-gradient(180deg, #171310, #0e0c0b);
  overflow: hidden;
}
.card-svg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  transform: scale(1.06);
  transition: transform .8s var(--ease-film);
  will-change: transform;
}
.card:hover .card-svg { transform: scale(1.12); }
.card-body {
  position: relative;
  padding: 1.8rem 1.8rem 2rem;
}
.card-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: .7rem;
  transition: color .4s;
}
.card:hover .card-title { color: var(--orange); }
.card-copy {
  font-size: .95rem;
  color: var(--muted);
  max-width: 34ch;
}
.card-arrow {
  position: absolute;
  right: 1.6rem; bottom: 1.6rem;
  font-size: 1.3rem;
  color: var(--orange);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity .4s, transform .4s var(--ease-film);
}
.card:hover .card-arrow { opacity: 1; transform: translateX(0); }

/* ============================================================
   08 · FINALE
   ============================================================ */
.finale {
  position: relative;
  padding: clamp(9rem, 24vh, 16rem) var(--pad-x);
  text-align: center;
  overflow: hidden;
  background: var(--ink);
}
.finale-glow {
  position: absolute;
  left: 50%; top: 50%;
  width: 90vw; height: 70vh;
  transform: translate(-50%, -50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(255,106,43,.16) 0%, rgba(196,69,26,.07) 45%, transparent 75%);
  pointer-events: none;
}
.finale-title {
  position: relative;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.2rem, 10vw, 9.5rem);
  line-height: .92;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: clamp(1.8rem, 5vh, 3rem);
}
.finale-line--accent span {
  color: var(--orange);
}
.finale-sub {
  position: relative;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: var(--muted);
  max-width: 56ch;
  margin: 0 auto clamp(2.2rem, 6vh, 3.4rem);
}
.finale-actions {
  position: relative;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   09 · FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid rgba(244,239,230,.08);
  padding: 3.5rem var(--pad-x) 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
  text-align: center;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.footer-brand span { color: var(--orange); }
.footer-links {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(244,239,230,.14);
  border-radius: 50%;
  color: var(--muted);
  transition: color .3s, border-color .3s, transform .4s var(--ease-film), box-shadow .4s;
}
.footer-icon svg { width: 20px; height: 20px; }
.footer-icon:hover {
  color: var(--orange);
  border-color: var(--orange);
  transform: translateY(-3px);
  box-shadow: 0 8px 26px rgba(255,106,43,.18);
}
.footer-note {
  font-size: .72rem;
  letter-spacing: .1em;
  color: rgba(166,158,144,.55);
}

/* ============================================================
   ACCESSIBILITY / FOCUS
   ============================================================ */
a:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .stats-list { grid-template-columns: repeat(3, 1fr); row-gap: 2.5rem; }
  .work-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .grain { opacity: 0.035; animation: none; } /* lighter grain, no jitter on mobile */
  .head-link { display: none; }

  .hero { align-items: flex-end; }
  .hero-title .line-inner { font-size: clamp(4rem, 20vw, 7rem); }
  .scroll-hint { display: none; }

  .stats-list { grid-template-columns: repeat(2, 1fr); }
  .stat:last-child { grid-column: span 2; }

  .pillars { height: auto; min-height: 0; }
  .pillars-content { padding-top: 6rem; padding-bottom: 6rem; }
  .pillars-stack { min-height: 0; max-width: none; }
  .pillar { position: relative; inset: auto; margin-bottom: 3.5rem; }
  .pillar:last-child { margin-bottom: 0; }
  .pillar-rail { display: none; }

  .story-grid { grid-template-columns: 1fr; }
  .story-media { max-width: 480px; }

  .work-grid { grid-template-columns: 1fr; }

  .finale-actions .btn { width: 100%; max-width: 340px; }
}

/* ============================================================
   REDUCED MOTION — everything readable, nothing moves
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .grain { animation: none; }
  .scroll-hint-line { animation: none; }
}
