/* ============================================================
   CodebyCarter — theater.css
   Theatrical moves:
     · Page-load cinematic intro
     · Full-bleed Wall of Work scrolling strip
     · Massive scroll-triggered typographic moment
   ============================================================ */

/* ============================================================
   PAGE-LOAD INTRO
   Body starts with .is-loading; everything in the hero is held
   back, then released in a staggered cinematic reveal.
   ============================================================ */
html.is-loading body{overflow:hidden}
html.is-loading .hero-tag,
html.is-loading .hero-h1 .row > span,
html.is-loading .hero-sub,
html.is-loading .hero-cta,
html.is-loading .hero-stats,
html.is-loading .hero-corner,
html.is-loading .scroll-cue{
  opacity:0;transform:translateY(28px);
  transition:opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1);
}
html.is-loading .hero-rule{transform:scaleX(0) !important}
html.is-loading .nav{opacity:0;transform:translate(-50%,-30px)}

/* Curtain — covers the screen at the very start */
.intro-curtain{
  position:fixed;inset:0;z-index:9998;background:#FAFAF7;
  display:grid;place-items:center;
  transition:opacity .8s cubic-bezier(.7,0,.3,1), visibility .8s;
}
.intro-curtain .intro-mark{
  width:120px;height:120px;border-radius:32px;
  background:linear-gradient(135deg,#A855F7,#EC4899,#FB923C,#06B6D4);
  background-size:200% 200%;animation:hue 4s linear infinite, introMarkIn 1s cubic-bezier(.16,1,.3,1);
  display:grid;place-items:center;
  box-shadow:0 30px 80px rgba(168,85,247,.50);
}
.intro-curtain .intro-mark svg{width:60px;height:60px}
.intro-curtain .intro-mark svg path{
  fill:none;stroke:#0A0A0F;stroke-width:3;stroke-linecap:round;
  stroke-dasharray:80;stroke-dashoffset:80;
  animation:drawC 1s cubic-bezier(.16,1,.3,1) .25s forwards;
}
@keyframes introMarkIn{
  from{transform:scale(.4) rotate(-30deg);opacity:0}
  to{transform:scale(1) rotate(0);opacity:1}
}
html.is-revealed .intro-curtain{opacity:0;visibility:hidden;pointer-events:none}

/* Hero reveal cascade — runs once .is-revealed is set */
html.is-revealed .hero-tag        {opacity:1;transform:translateY(0);transition-delay:.05s}
html.is-revealed .hero-corner     {opacity:1;transform:translateY(0);transition-delay:.10s}
html.is-revealed .hero-h1 .row:nth-child(1) > span{opacity:1;transform:translateY(0);transition-delay:.15s}
html.is-revealed .hero-h1 .row:nth-child(2) > span{opacity:1;transform:translateY(0);transition-delay:.30s}
html.is-revealed .hero-h1 .row:nth-child(3) > span{opacity:1;transform:translateY(0);transition-delay:.45s}
html.is-revealed .hero-sub        {opacity:1;transform:translateY(0);transition-delay:.55s}
html.is-revealed .hero-cta        {opacity:1;transform:translateY(0);transition-delay:.65s}
html.is-revealed .hero-stats      {opacity:1;transform:translateY(0);transition-delay:.75s}
html.is-revealed .scroll-cue      {opacity:1;transform:translate(-50%,0) translateY(0);transition-delay:.95s}
html.is-revealed .nav             {opacity:1;transform:translateX(-50%);transition:opacity .6s ease .3s, transform .6s ease .3s}
html.is-revealed .hero-rule{transform:scaleX(1) !important;transition-delay:.35s !important}

/* ============================================================
   WALL OF WORK — full-bleed parade of stylized work cards
   ============================================================ */
.wow{
  position:relative;overflow:hidden;
  padding:clamp(60px,8vw,100px) 0;
  background:#06060A;color:#F5F5F7;
}
.wow::before,.wow::after{
  content:"";position:absolute;top:0;bottom:0;width:140px;z-index:2;pointer-events:none;
}
.wow::before{left:0;background:linear-gradient(90deg,#06060A,transparent)}
.wow::after{right:0;background:linear-gradient(270deg,#06060A,transparent)}

.wow-eyebrow-wrap{padding:0 var(--pad);margin-bottom:36px;position:relative;z-index:1}
.wow-eyebrow-wrap .eyebrow{background:rgba(168,85,247,.10);border-color:rgba(168,85,247,.30)}

.wow-row{
  display:flex;gap:18px;
  width:max-content;
  will-change:transform;
  margin-bottom:18px;
}
.wow-row--1{animation:wowScroll 45s linear infinite}
.wow-row--2{animation:wowScrollReverse 60s linear infinite}
.wow-row:hover{animation-play-state:paused}

@keyframes wowScroll{
  from{transform:translateX(0)}
  to{transform:translateX(-50%)}
}
@keyframes wowScrollReverse{
  from{transform:translateX(-50%)}
  to{transform:translateX(0)}
}

.wow-card{
  flex-shrink:0;width:300px;
  border-radius:16px;overflow:hidden;
  background:rgba(15,15,20,.7);border:1px solid rgba(255,255,255,.10);
  transition:transform .4s cubic-bezier(.16,1,.3,1), border-color .35s ease, box-shadow .4s ease;
  cursor:none;
}
.wow-card:hover{
  transform:scale(1.06) translateY(-4px);
  border-color:rgba(168,85,247,.40);
  box-shadow:0 20px 50px rgba(168,85,247,.30);
  z-index:5;
}

/* Car-card preview */
.wow-car-stage{
  aspect-ratio:16/10;
  background:linear-gradient(180deg, #1F2937 0%, #4B5563 70%, #6B7280 100%);
  position:relative;overflow:hidden;
  display:grid;place-items:center;padding:14px;
}
.wow-car-stage::after{
  content:"";position:absolute;left:8%;right:8%;bottom:18%;height:6px;
  background:radial-gradient(ellipse at center, rgba(0,0,0,.5), transparent 70%);
  filter:blur(2px);
}
.wow-car-stage svg{width:100%;height:auto;max-width:240px;position:relative;z-index:1}

.wow-card-foot{
  padding:14px 16px;display:flex;flex-direction:column;gap:3px;
  background:rgba(0,0,0,.30);
}
.wow-card-name{font-size:14px;font-weight:600;color:#F5F5F7;letter-spacing:-.005em}
.wow-card-tag{
  font-family:'JetBrains Mono',monospace;font-size:10.5px;letter-spacing:.06em;
  text-transform:uppercase;color:#9090A0;font-weight:500;
}
.wow-card-tag b{color:#84CC16;font-weight:700}

@media (max-width:600px){
  .wow-card{width:240px}
  .wow-car-stage{aspect-ratio:16/10}
}

/* ============================================================
   MASSIVE TYPOGRAPHIC MOMENT
   Pinned full-viewport statement that fades letters in and out
   on scroll. Tucked between testimonials and demos.
   ============================================================ */
.shout{
  position:relative;
  background:#0A0A0F;color:#F5F5F7;
  padding:clamp(140px,18vw,260px) 0;
  overflow:hidden;
  text-align:center;
}
.shout::before{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:
    radial-gradient(900px 500px at 30% 30%, rgba(168,85,247,.18), transparent 60%),
    radial-gradient(700px 500px at 70% 70%, rgba(236,72,153,.14), transparent 60%);
}
.shout-line{
  position:relative;z-index:1;
  font-size:clamp(48px,12vw,180px);
  line-height:.92;letter-spacing:-.045em;font-weight:600;
  margin:0 auto;max-width:14ch;
}
.shout-line .ital{
  font-family:'Instrument Serif',serif;font-style:italic;font-weight:400;
  background:linear-gradient(135deg,#A855F7,#EC4899,#FB923C,#06B6D4);
  background-size:200% 200%;animation:hue 6s linear infinite;
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
.shout-word{
  display:inline-block;opacity:.2;
  transition:opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
  transform:translateY(20px);
}
.shout-word.in{opacity:1;transform:translateY(0)}

.shout-sub{
  position:relative;z-index:1;
  margin-top:30px;font-size:clamp(15px,1.8vw,20px);color:#A0A0B0;
  max-width:50ch;margin-left:auto;margin-right:auto;line-height:1.6;
}

/* ============================================================
   Reduced motion respect
   ============================================================ */
@media (prefers-reduced-motion: reduce){
  .wow-row--1,.wow-row--2{animation:none}
  html.is-loading .hero-tag,html.is-loading .hero-h1 .row > span,
  html.is-loading .hero-sub,html.is-loading .hero-cta,
  html.is-loading .hero-stats,html.is-loading .hero-corner{opacity:1;transform:none}
  .intro-curtain{display:none}
}
