/* ===========================================================
   WORKBLOCK — teaser site
   Brand tokens sourced from the official WorkBlock asset pack.
   =========================================================== */

:root {
  --coal: #080B0B;
  --offwhite: #F5F4F0;
  --volt: #E6FF00;
  --petrol: #1A8D86;
  --slate: #2B3338;

  --font-primary: "Neue Haas Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-secondary: Inter, Arial, sans-serif;

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

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--coal);
  color: var(--offwhite);
  font-family: var(--font-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }

/* visually hidden, still announced by screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- progress rail ---------- */
.progress-rail {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  z-index: 60;
  background: transparent;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--volt);
  transition: width 0.1s linear;
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  padding: 28px clamp(20px, 5vw, 56px);
  z-index: 50;
  pointer-events: none;
}
.mark-link {
  pointer-events: auto;
  display: inline-block;
  line-height: 0;
}

/* ---------- mark (logo bars) ---------- */
.mark { display: block; }
.mark .bar { fill: var(--offwhite); }
.mark .bar--3 { fill: var(--volt); }

.mark--small { width: 78px; height: auto; }
.mark--hero { width: min(46vw, 340px); height: auto; margin: 0 auto; }
.mark--closing { width: 88px; height: auto; margin: 0 auto 22px; }

.mark--hero .bar.draw {
  transform: translateX(-40px);
  opacity: 0;
  animation: barIn 0.9s var(--ease) forwards;
}
.mark--hero .bar--1.draw { animation-delay: 0.15s; }
.mark--hero .bar--2.draw { animation-delay: 0.32s; }
.mark--hero .bar--3.draw { animation-delay: 0.49s; }

@keyframes barIn {
  to { transform: translateX(0); opacity: 1; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.15) contrast(1.08) brightness(0.72);
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8,11,11,0.35) 0%, rgba(8,11,11,0.55) 55%, rgba(8,11,11,0.92) 100%),
    linear-gradient(90deg, rgba(8,11,11,0.35) 0%, rgba(8,11,11,0.05) 40%, rgba(8,11,11,0.05) 60%, rgba(8,11,11,0.35) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
}
.tagline {
  margin: 26px 0 0;
  font-family: var(--font-secondary);
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--volt);
  font-size: clamp(11px, 1.6vw, 15px);
}

.scroll-cue {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.scroll-cue span {
  display: block;
  width: 1px;
  height: 46px;
  background: linear-gradient(180deg, rgba(245,244,240,0.05), rgba(245,244,240,0.75));
  animation: cuePulse 2.2s ease-in-out infinite;
}
@keyframes cuePulse {
  0%, 100% { opacity: 0.35; transform: scaleY(0.7); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

/* ---------- beats (text-only sections) ---------- */
.beat {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(90px, 16vh, 180px) 24px;
  text-align: center;
}
.beat--dark { background: var(--coal); }
.beat-inner { max-width: 780px; }
.beat-text {
  margin: 0;
  font-size: clamp(24px, 4.4vw, 46px);
  line-height: 1.28;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.beat-text .line {
  display: block;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.beat-text .line.in {
  opacity: 1;
  transform: translateY(0);
}

.beat--big { padding: clamp(120px, 22vh, 220px) 24px; }
.beat-huge {
  margin: 0;
  font-size: clamp(40px, 9vw, 128px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.02;
  color: var(--volt);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.beat-small {
  margin: 22px 0 0;
  font-family: var(--font-secondary);
  font-size: clamp(13px, 1.6vw, 16px);
  color: rgba(245,244,240,0.6);
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.9s var(--ease) 0.25s, transform 0.9s var(--ease) 0.25s;
}
.reveal-fade.in.beat-huge,
.reveal-fade.in.beat-small { opacity: 1; transform: translateY(0); }

/* generic reveal-fade for single elements (not staggered lines) */
.reveal-fade {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal-fade.in { opacity: 1; transform: translateY(0); }

/* ---------- image breaks ---------- */
.image-break {
  position: relative;
  height: 84vh;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.image-break-media {
  position: absolute;
  inset: -8% 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
}
.image-break-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(8,11,11,0.85) 0%, rgba(8,11,11,0.1) 45%, rgba(8,11,11,0.15) 100%);
}
.image-break-caption {
  position: relative;
  z-index: 2;
  margin: 0 0 clamp(40px, 8vh, 84px);
  padding: 0 clamp(24px, 6vw, 64px);
  max-width: 640px;
  font-size: clamp(18px, 2.6vw, 28px);
  font-weight: 700;
  line-height: 1.3;
}

/* ---------- video section ---------- */
.video-section {
  background: var(--offwhite);
  color: var(--coal);
  padding: clamp(64px, 12vh, 120px) 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(28px, 5vh, 48px);
}
.video-frame {
  width: min(920px, 92vw);
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--slate);
  border-radius: 2px;
}
.framed-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-caption {
  margin: 0;
  text-align: center;
  font-size: clamp(20px, 3.4vw, 34px);
  font-weight: 700;
  line-height: 1.3;
}
.video-caption .line { display: block; }

/* ---------- closing ---------- */
.closing {
  background: var(--coal);
  padding: clamp(90px, 16vh, 160px) 24px clamp(70px, 12vh, 120px);
  text-align: center;
}
.closing-tagline {
  margin: 0 0 clamp(56px, 12vh, 120px);
  font-family: var(--font-secondary);
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--volt);
  font-size: clamp(11px, 1.4vw, 14px);
}
.closing-contact {
  display: inline-block;
  color: var(--offwhite);
  font-family: var(--font-secondary);
  font-size: clamp(15px, 2vw, 18px);
  text-decoration: none;
  border-bottom: 1px solid rgba(245,244,240,0.3);
  padding-bottom: 6px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.closing-contact:hover,
.closing-contact:focus-visible {
  color: var(--volt);
  border-color: var(--volt);
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mark--hero .bar.draw { animation: none; transform: none; opacity: 1; }
  .scroll-cue span { animation: none; }
  .reveal-fade,
  .beat-text .line,
  .beat-huge,
  .beat-small {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .image-break-media { transform: none !important; }
}

@media (max-width: 640px) {
  .video-frame { aspect-ratio: 4/5; }
}
