/* ============================================================
   pure — frame-scroll + What We Offer (standalone, = localhost:8123)
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { background: #000; }
body { font-family: system-ui, -apple-system, sans-serif; }

@font-face {
  font-family: "Cal Sans";
  src: url("/fonts/CalSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

/* ---------- Loader — logo charges bottom-to-top ---------- */
#loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}
#loader.hidden { opacity: 0; pointer-events: none; }
#loader-logo {
  position: relative;
  width: min(28vw, 180px);
}
.loader-svg {
  display: block;
  width: 100%;
  height: auto;
}
.loader-ghost {
  opacity: 0.27;
}
.loader-fill {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
  /* Start fully clipped from the bottom (nothing visible) */
  clip-path: inset(100% 0 0 0);
}

/* ---------- Cursor follower ----------
   A tight dot + a lagging ring that swells over interactive elements.
   mix-blend-difference keeps both visible over black hero and light
   frames alike. JS only builds it on fine pointers (see initCursor). */
#cursor {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity 0.3s ease;
}
#cursor.is-visible { opacity: 1; }
.cursor-dot,
.cursor-ring {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
  will-change: transform;
}
.cursor-dot { width: 8px; height: 8px; background: #fff; }
.cursor-ring {
  width: 28px;
  height: 28px;
  border: 1px solid #fff;
  transition: width 0.3s ease, height 0.3s ease;
}
.cursor-ring.is-hover { width: 44px; height: 44px; }

/* No follower on touch / coarse pointers. */
@media (pointer: coarse) { #cursor { display: none; } }

/* ============================================================
   Hero — SNOVI shutter-text reveal (entrance, plays after load)
   Each glyph sits in its own clipping cell with three colored slices
   (top/mid/bottom thirds) that swipe across horizontally before the
   solid white letter blurs into place. Ported from the React/Framer
   "hero-shutter-text" component to vanilla GSAP.
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background: #000;
  display: grid;
  place-items: center;
}

.hero-word {
  position: relative;
  z-index: 2;
  margin: 0;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  font-family: "Cal Sans", system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.9;
  color: #fff;
  font-size: min(17vw, 13rem);
  user-select: none;
}

/* Per-glyph cell — clips the swiping slices to the letter box. */
.hero-char {
  position: relative;
  display: inline-block;
  overflow: hidden;
}
.hero-char-main {
  display: block;
  color: #fff;
  will-change: opacity, filter;
}
.hero-slice {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  will-change: transform, opacity;
}
.hero-slice-top { color: #818cf8; clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%); }
.hero-slice-mid { color: #e4e4e7; clip-path: polygon(0 35%, 100% 35%, 100% 65%, 0 65%); }
.hero-slice-bot { color: #818cf8; clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%); }

/* Scroll cue + corner accents — faded in after the shutter resolves. */
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  color: rgba(255, 255, 255, 0.4);
  font-family: "Cal Sans", system-ui, sans-serif;
  font-size: 10px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
}
.hero-scroll span { padding-left: 0.5em; }
.hero-scroll-line {
  width: 1px;
  height: 42px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent);
}

.hero-corner {
  position: absolute;
  width: 48px;
  height: 48px;
  z-index: 2;
  opacity: 0;
  border-color: rgba(255, 255, 255, 0.18);
}
.hero-corner-tl { top: 32px; left: 32px; border-left: 1px solid; border-top: 1px solid; }
.hero-corner-br { bottom: 32px; right: 32px; border-right: 1px solid; border-bottom: 1px solid; }

/* Scroll-driven scrim: darkens the hero to black as it scrolls out, handing
   off cleanly into the frames section "booting up" from pixels. Opacity is
   driven by ScrollTrigger (initHeroOverlay). */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  background: #000;
  will-change: opacity;
}

/* ---------- Frame animation track ----------
   --track sets how much scrolling the full clip takes.
   Effective animation scroll = --track minus one viewport. */
.frames {
  height: var(--track, 573vh);
  position: relative;
}
.canvas-pin {
  height: 100vh;
  width: 100%;
  position: relative;
  overflow: hidden;
}
#canvas {
  display: block;
  width: 100vw;
  height: 100vh;
}
/* Sits directly over #canvas, below the captions (z-index 3). Only painted and
   shown during the closing pixel-dissolve window; inert and invisible otherwise. */
#pixel-gl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  opacity: 0;
  visibility: hidden;
}
#pixel-gl.is-active {
  opacity: 1;
  visibility: visible;
}

/* Scroll captions over the frames — each block reveals via a masked line-rise
   and drifts upward as you scroll its range, alternating to one side and hugging
   it. Vertical motion (drift + reveal) is owned by GSAP transforms scrubbed from
   initFrameCaptions; horizontal placement is pure CSS so it never fights them. */
.frame-captions {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}
/* Soft radial scrim — opacity driven by JS, peaks only while a caption shows. */
.frame-scrim {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(ellipse at center,
    rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.34) 46%, transparent 82%);
  will-change: opacity;
}
.frame-cap {
  position: absolute;
  top: 50%;
  width: min(46rem, 82vw);
  will-change: transform, opacity;
}
.frame-cap.is-left  { left: 12vw;  text-align: left; }
.frame-cap.is-right { right: 12vw; text-align: right; }

.frame-cap-title {
  font-family: "Cal Sans", system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: #fff;
  font-size: clamp(2.2rem, 6.4vw, 5.2rem);
  text-shadow: 0 2px 34px rgba(0, 0, 0, 0.55);
}
.frame-cap-body {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  line-height: 1.5;
  letter-spacing: 0.005em;
  color: rgba(255, 255, 255, 0.8);
  max-width: 32rem;
  margin-top: 1.4rem;
  text-shadow: 0 1px 20px rgba(0, 0, 0, 0.55);
}
.frame-cap.is-left  .frame-cap-body { margin-right: auto; }
.frame-cap.is-right .frame-cap-body { margin-left: auto; }

/* Crop mask + the line that rises out of it (descender-safe padding). */
.cap-mask {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.cap-line {
  display: block;
  will-change: transform;
}

@media (max-width: 900px) {
  .frame-cap { width: 86vw; }
  .frame-cap.is-left  { left: 7vw; }
  .frame-cap.is-right { right: 7vw; }
  .frame-cap-body { max-width: 86vw; }
}

/* ============================================================
   What We Offer — scroll-driven globe (logic in /pure/globe.js)
   Pinned 500vh section: globe left, copy right. Four stops, one
   per service; a line links the active city marker to its copy.
   ============================================================ */
.offer { height: 500vh; position: relative; background: #000; }
.offer-pin {
  position: sticky; top: 0;
  height: 100vh; overflow: hidden;
  font-family: "Cal Sans", system-ui, sans-serif;
}

/* Header — same editorial voice as the process/proof heads, centered
   like the old slideshow's title. */
.offer-head {
  position: absolute;
  top: clamp(1.75rem, 4.5vh, 3rem);
  left: 0; right: 0;
  z-index: 6;
  text-align: center;
  pointer-events: none;
}
.offer-title {
  font-size: clamp(2.2rem, 5.5vw, 4.6rem);
  line-height: 0.92;
  font-weight: 400;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0;
  color: #f5f5f5;
}

/* Per-word fade-in-blur reveal — vanilla port of the motion-primitives
   <TextEffect preset="fade-in-blur" per="word">. Each word is wrapped in
   one of these spans and blur-rises in via initHeaderReveals(). */
.fib-word {
  display: inline-block;
  white-space: pre;
  will-change: transform, opacity, filter;
}

/* Globe — bleeds off the left edge, vertically centered. */
.offer-globe-wrap {
  position: absolute;
  left: calc(-10vw + 2cm); top: 50%;
  transform: translateY(-50%);
  width: min(58vw, 96vh);
  aspect-ratio: 1;
  z-index: 1;
}
.offer-globe-wrap canvas {
  width: 100%; height: 100%; display: block;
  cursor: grab;
  touch-action: pan-y;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.offer-globe-wrap canvas.is-on { opacity: 1; }
.offer-globe-wrap canvas.is-dragging { cursor: grabbing; }

/* Connector line overlay — drawn by globe.js. */
.offer-line {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 3;
  pointer-events: none;
}

/* Pulse rings riding the active marker; moved via transform per frame. */
.offer-rings {
  position: absolute; left: 0; top: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  will-change: transform;
}
.offer-ring {
  position: absolute; left: 0; top: 0;
  width: 26px; height: 26px;
  margin: -13px 0 0 -13px;
  border: 1.5px solid #ff2222;
  border-radius: 50%;
  opacity: 0;
  animation: offer-pulse 2s ease-out infinite;
}
.offer-ring-late { animation-delay: 1s; }
.offer-dot {
  position: absolute; left: 0; top: 0;
  width: 7px; height: 7px;
  margin: -3.5px 0 0 -3.5px;
  background: #ff2222;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 34, 34, 0.8);
}
@keyframes offer-pulse {
  0%   { transform: scale(0.4); opacity: 0.85; }
  100% { transform: scale(2.8); opacity: 0; }
}

/* Copy column — all four titles always present; opacity is driven by
   globe.js (active light-up + cursor proximity), so no transition here. */
.offer-list {
  position: absolute;
  right: clamp(1.75rem, 8vw, 10rem);
  top: 50%; transform: translateY(-50%);
  width: min(30rem, 40vw);
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-direction: column;
  gap: clamp(1.4rem, 3.2vh, 2.4rem);
  z-index: 5;
}
.offer-item {
  cursor: pointer;
}
.offer-item:focus-visible {
  outline: 2px solid rgba(255, 34, 34, 0.6);
  outline-offset: 6px;
  border-radius: 4px;
}
.offer-item-title {
  margin: 0;
  width: fit-content; /* the line anchors to this rect — hug the text */
  font-size: clamp(1.5rem, 2.8vw, 2.5rem);
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #f5f5f5;
  opacity: 0.3;
  will-change: opacity, font-size;
  transition: text-shadow 0.35s ease, font-size 0.45s ease;
}
.offer-item.is-active .offer-item-title {
  font-size: clamp(1.9rem, 3.6vw, 3.3rem);
  text-shadow: 0 0 24px rgba(255, 255, 255, 0.35);
}

/* Subtext collapses to zero rows when inactive; the inner copy's fade
   and rise are tweened from globe.js. */
.offer-sub-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s ease;
}
.offer-item.is-active .offer-sub-wrap { grid-template-rows: 1fr; }
.offer-sub {
  overflow: hidden; min-height: 0;
  margin: 0; padding-top: 0.6rem;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.5;
  letter-spacing: 0.005em;
  color: rgba(255, 255, 255, 0.52);
  opacity: 0;
}

/* Mobile — dimmed globe centered behind the copy. */
@media (max-width: 768px) {
  .offer-globe-wrap {
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: min(125vw, 70vh);
    opacity: 0.35;
  }
  .offer-list {
    right: auto; left: 50%;
    transform: translate(-50%, -50%);
    width: 86vw;
    text-align: center;
    align-items: center;
  }
  .offer-item-title { margin: 0 auto; }
  .offer-line { opacity: 0.45; }
}

@media (prefers-reduced-motion: reduce) {
  .offer-ring { animation: none; }
  .offer-sub-wrap { transition: none; }
}

/* ============================================================
   Footer — the sign-off
   Hairline rows in the kicker voice, then a massive ghost SNOVI
   (same transparent-fill / faint-stroke breed as the process
   numerals) spread edge-to-edge and clipped at the bottom so only
   the top 3/4 of the word shows. Red stays rare: the hover dot.
   ============================================================ */
.footer {
  position: relative;
  overflow: hidden;
  background: #000;
  color: #fff;
  font-family: "Cal Sans", system-ui, sans-serif;
  padding-top: clamp(4rem, 10vh, 7rem);
}

.footer-rows {
  margin: 0 clamp(1.75rem, 9vw, 11rem);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: clamp(1.6rem, 4vh, 2.6rem);
}

/* One link per line — a single left-aligned column. */
.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(0.1rem, 0.8vh, 0.4rem);
}

.footer-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.5s ease;
  /* button reset — "back to top" is a <button> */
  background: none;
  border: none;
  font-family: inherit;
  padding: 0;
  cursor: pointer;
}
/* Red dot — same breed as the CTA rows. */
.footer-link::before {
  content: "";
  position: absolute;
  left: -1em;
  top: 50%;
  width: 4px;
  height: 4px;
  margin-top: -2px;
  border-radius: 50%;
  background: #ff2222;
  box-shadow: 0 0 8px rgba(255, 34, 34, 0.8);
  transform: scale(0);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.footer-link:hover,
.footer-link:focus-visible { color: #fff; }
.footer-link:hover::before,
.footer-link:focus-visible::before { transform: scale(1); }
.footer-link:focus-visible { outline: 1px solid rgba(255, 255, 255, 0.5); outline-offset: 4px; }

.footer-up {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.footer-up svg {
  width: 11px;
  height: 11px;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.footer-up:hover svg,
.footer-up:focus-visible svg { transform: translateY(-3px); }

.footer-fine {
  margin: clamp(1.8rem, 4.5vh, 3rem) 0 0;
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

/* The ghost word — five letters spread across the full viewport
   width; line-height crops the box to roughly cap height and the
   negative bottom margin sinks 1/4 of it under the page edge
   (clipped by the footer's overflow: hidden). */
.footer-ghost {
  display: flex;
  justify-content: space-between;
  padding: 0 1vw;
  margin-top: clamp(2.5rem, 8vh, 5.5rem);
  margin-bottom: -0.19em;
  font-size: 29vw;
  line-height: 0.76;
  font-weight: 400;
  pointer-events: none;
  user-select: none;
}
.footer-ghost span {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.1);
  will-change: transform;
}


/* ============================================================
   Process — horizontal scroll (Coppola-style)
   Vertical wheel scroll is mapped to a horizontal glide while the
   section is pinned. Six bold-minimal steps, one viewport each,
   evenly separated. Brief -> website.
   ============================================================ */
.hs {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: #000;
  color: #fff;
  font-family: "Cal Sans", system-ui, sans-serif;
}

/* Track of full-width steps — even separation, one screen each. */
.hs-track {
  display: flex;
  align-items: stretch;
  height: 100vh;
  width: max-content;
  will-change: transform;
}

.hs-step {
  position: relative;
  flex: 0 0 auto;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 clamp(1.75rem, 9vw, 11rem);
  overflow: hidden;
}

/* Decorative scroll-drawn line — spans the whole track, rides its
   translate. Above the ghost numerals (same z, later in tree order),
   below the copy (.hs-body is z-index 2). Never intercepts input. */
.hs-line {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
.hs-line-tip { transition: opacity 0.25s ease; }

/* Oversized ghost numeral behind the content. */
.hs-ghost {
  position: absolute;
  right: clamp(-2rem, -1vw, 2rem);
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(15rem, 40vw, 46rem);
  line-height: 0.8;
  font-weight: 400;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.07);
  letter-spacing: -0.04em;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

.hs-body {
  position: relative;
  z-index: 2;
  max-width: min(44rem, 86vw);
}

/* Oversized display title. */
.hs-title {
  font-size: clamp(2.6rem, 7.5vw, 7rem);
  line-height: 0.92;
  font-weight: 400;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0 0 clamp(1.1rem, 2.6vw, 2rem);
}
/* Per-word split for the fade-in-blur reveal — each word animates on its
   own as a .fib-word (see pure.css .fib-word for the shared styling). */
.hs-title .hs-word { display: inline-block; white-space: nowrap; }

/* Muted body copy — system font for readability against the display caps. */
.hs-desc {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  line-height: 1.5;
  letter-spacing: 0.005em;
  color: rgba(255, 255, 255, 0.52);
  max-width: 32rem;
}

/* Pinned progress line. */
.hs-progress {
  position: absolute;
  left: clamp(1.75rem, 9vw, 11rem);
  right: clamp(1.75rem, 9vw, 11rem);
  bottom: clamp(1.75rem, 4vh, 3rem);
  z-index: 5;
  height: 1px;
  background: rgba(255, 255, 255, 0.14);
}
.hs-progress-fill {
  display: block;
  height: 100%;
  width: 100%;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left center;
}

@media (max-width: 900px) {
  .hs-step { padding: 0 1.75rem; }
  .hs-ghost { font-size: clamp(12rem, 52vw, 22rem); right: -1rem; }
  .hs-desc { max-width: 26rem; }
}

/* ============================================================
   The Proof — client folders (chapter 07, after the process)
   Three 3D folders, black -> red. Hover (fine pointers) or tap
   fans out the three files — testimonial / branding / website —
   and clicking a file expands it into the lightbox below.
   Vanilla port of the React "3d-folder" component, restyled to
   the SNOVI field: black surfaces tinted toward the brand red,
   Cal Sans display, red reserved for the folders + one button.
   ============================================================ */
.proof {
  position: relative;
  overflow: hidden;
  background: #000;
  color: #fff;
  font-family: "Cal Sans", system-ui, sans-serif;
  padding: clamp(6rem, 14vh, 10rem) clamp(1.75rem, 9vw, 11rem) clamp(7rem, 16vh, 11rem);
}

/* Header — same editorial voice as the process steps. */
.proof-head { position: relative; z-index: 2; max-width: min(44rem, 86vw); }
.proof-title {
  font-size: clamp(2.6rem, 7.5vw, 7rem);
  line-height: 0.92;
  font-weight: 400;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0 0 clamp(1.1rem, 2.6vw, 2rem);
}
.proof-desc {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  line-height: 1.5;
  letter-spacing: 0.005em;
  color: rgba(255, 255, 255, 0.52);
  max-width: 32rem;
}

/* Folder row — self-adjusting, no card chrome around the folders. */
.proof-grid {
  position: relative;
  z-index: 2;
  margin-top: clamp(3.5rem, 10vh, 6.5rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(3rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 3rem);
  justify-items: center;
}

/* ---------- One folder ---------- */
.pf {
  position: relative;
  width: 100%;
  max-width: 320px;
  text-align: center;
  cursor: pointer;
  outline: none;
}
.pf:focus-visible .pf-name { color: #ff5347; }
.pf.is-open { z-index: 5; }

/* The 3D stage — panels + cards live in here. Each folder rests at
   its own slight tilt, like real folders dropped on a desk. */
.pf-stage {
  position: relative;
  width: 200px;
  height: 170px;
  margin: 0 auto;
  perspective: 1200px;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.pf:nth-child(1) .pf-stage { transform: rotate(-1.4deg); }
.pf:nth-child(2) .pf-stage { transform: rotate(0.8deg); }
.pf:nth-child(3) .pf-stage { transform: rotate(-0.6deg); }
.pf.is-open .pf-stage { transform: scale(1.05) rotate(-1.5deg); }

/* Red breath under the opened folder. */
.pf-stage::after {
  content: "";
  position: absolute;
  inset: -12% -24%;
  background: radial-gradient(ellipse at 50% 72%, rgba(214, 24, 24, 0.26), transparent 64%);
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
}
.pf.is-open .pf-stage::after { opacity: 1; }

/* Panels — back sheet, tab, front sheet, gloss. All share the
   black -> red gradient; brightness separates the layers. */
.pf-back, .pf-tab, .pf-front, .pf-gloss {
  position: absolute;
  left: 50%;
  transform-origin: bottom center;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.pf-back {
  width: 128px;
  height: 96px;
  margin-left: -64px;
  top: calc(50% - 48px);
  border-radius: 10px;
  background: linear-gradient(135deg, #1c0707 0%, #5a0e0e 58%, #d61818 100%);
  filter: brightness(0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
  z-index: 10;
}
.pf-tab {
  width: 48px;
  height: 16px;
  margin-left: -48px;
  top: calc(50% - 48px - 12px);
  border-radius: 6px 6px 0 0;
  background: linear-gradient(135deg, #240808, #4d0d0d);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: none;
  z-index: 9;
}
.pf-front {
  width: 128px;
  height: 96px;
  margin-left: -64px;
  top: calc(50% - 48px + 4px);
  border-radius: 10px;
  background: linear-gradient(135deg, #140505 0%, #3c0a0a 52%, #b01212 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55);
  z-index: 30;
}
.pf-gloss {
  width: 128px;
  height: 96px;
  margin-left: -64px;
  top: calc(50% - 48px + 4px);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, transparent 58%);
  pointer-events: none;
  z-index: 31;
}
.pf.is-open .pf-back  { transform: rotateX(-20deg) scaleY(1.05); }
.pf.is-open .pf-tab   { transform: rotateX(-30deg) translateY(-3px); }
.pf.is-open .pf-front,
.pf.is-open .pf-gloss { transform: rotateX(35deg) translateY(12px); }

/* ---------- The three files ---------- */
.pf-cards { position: absolute; top: 50%; left: 50%; z-index: 20; }
.pf-card {
  position: absolute;
  left: -40px;
  top: -56px;
  width: 80px;
  height: 112px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translate(0, 0) rotate(0deg) scale(0.4);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.pf-card:nth-child(1) { z-index: 10; }
.pf-card:nth-child(2) { z-index: 11; }
.pf-card:nth-child(3) { z-index: 12; }
.pf.is-open .pf-card { opacity: 1; pointer-events: auto; }
.pf.is-open .pf-card:nth-child(1) { transform: translate(-85px, -88px) rotate(-25deg); transition-delay: 0ms; }
.pf.is-open .pf-card:nth-child(2) { transform: translate(0, -100px) rotate(0deg); transition-delay: 50ms; }
.pf.is-open .pf-card:nth-child(3) { transform: translate(85px, -88px) rotate(25deg); transition-delay: 100ms; }
.pf-card.is-held { opacity: 0 !important; pointer-events: none !important; }

/* Card face — near-black, red-tinted; rises toward the pointer. */
.pf-card-skin {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 9px;
  overflow: hidden;
  background: linear-gradient(160deg, #170909, #0b0505);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.55);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.5s ease, box-shadow 0.5s ease;
}
.pf-card:hover .pf-card-skin,
.pf-card:focus-visible .pf-card-skin {
  transform: translateY(-16px) scale(1.18);
  border-color: rgba(255, 83, 71, 0.65);
  box-shadow: 0 20px 44px rgba(176, 18, 18, 0.38);
}
.pf-card-glyph { width: 22px; height: 22px; color: rgba(255, 255, 255, 0.82); }
.pf-card-glyph svg { width: 100%; height: 100%; }
.pf-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pf-card-img + .pf-card-label {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.85), transparent);
}
.pf-card-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 4px 9px;
  font-size: 8px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

/* Name plate under the stage. */
.pf-name {
  margin-top: 1.6rem;
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  transition: color 0.5s ease;
}
.pf-meta {
  margin-top: 0.35rem;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
  font-variant-numeric: tabular-nums;
}
.pf-hint {
  display: block;
  margin-top: 1rem;
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.26);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.pf.is-open .pf-hint { opacity: 0; transform: translateY(8px); }

/* ============================================================
   The Proof — file lightbox
   ============================================================ */
#pf-lb {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 2.5rem);
  font-family: "Cal Sans", system-ui, sans-serif;
  color: #fff;
}
#pf-lb[hidden] { display: none; }
.pf-lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 2, 2, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

/* Chrome — close + prev/next. */
.pf-lb-btn {
  position: absolute;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}
.pf-lb-btn:hover { background: rgba(255, 255, 255, 0.16); transform: scale(1.08); }
.pf-lb-btn:active { transform: scale(0.95); }
.pf-lb-btn svg { width: 20px; height: 20px; }
.pf-lb-btn[disabled] { opacity: 0; pointer-events: none; }
.pf-lb-close { top: clamp(1rem, 3vw, 1.75rem); right: clamp(1rem, 3vw, 1.75rem); }
.pf-lb-prev { left: clamp(0.6rem, 3vw, 2.5rem); top: 50%; margin-top: -24px; }
.pf-lb-next { right: clamp(0.6rem, 3vw, 2.5rem); top: 50%; margin-top: -24px; }

/* The expanding box. */
.pf-lb-box {
  position: relative;
  z-index: 2;
  width: min(880px, 100%);
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  background: #0c0606;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.6);
  will-change: transform;
}
.pf-lb-stage { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #080404; }
.pf-lb-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.pf-lb-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  display: grid;
  place-items: center;
}
.pf-lb-slide video { width: 100%; height: 100%; object-fit: contain; background: #080404; }
.pf-lb-slide img { width: 100%; height: 100%; object-fit: cover; }

/* Empty file — the stroked type-name with a quiet promise over it. */
.pf-lb-soon { position: relative; display: grid; place-items: center; width: 100%; height: 100%; }
.pf-lb-soon-ghost {
  font-size: clamp(2.2rem, 9vw, 5.6rem);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.1);
  user-select: none;
}
.pf-lb-soon-tag {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.pf-lb-soon-tag i {
  display: block;
  width: 28px;
  height: 1px;
  background: #d61818;
}

/* Live website file — the domain, oversized. */
.pf-lb-site { display: grid; place-items: center; gap: 0.7rem; padding: 2rem; text-align: center; }
.pf-lb-site-kicker {
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.pf-lb-site-domain {
  font-size: clamp(1.5rem, 5vw, 3.2rem);
  letter-spacing: -0.02em;
  word-break: break-all;
}

/* Caption bar. */
.pf-lb-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.3rem 1.7rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.pf-lb-info { min-width: 0; }
.pf-lb-title {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pf-lb-row { display: flex; align-items: center; gap: 1rem; margin-top: 0.55rem; }
.pf-lb-dots { display: flex; align-items: center; gap: 7px; }
.pf-lb-dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transition: transform 0.4s ease, background 0.4s ease;
}
.pf-lb-dot.active { background: #fff; transform: scale(1.5); }
.pf-lb-counter {
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  font-variant-numeric: tabular-nums;
}
.pf-lb-visit {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 0 0 auto;
  padding: 0.85rem 1.4rem;
  border-radius: 12px;
  background: #c81414;
  color: #fff;
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  box-shadow: 0 10px 26px rgba(200, 20, 20, 0.28);
  transition: filter 0.3s ease, transform 0.3s ease;
}
.pf-lb-visit:hover { filter: brightness(1.15); transform: scale(1.04); }
.pf-lb-visit svg { width: 14px; height: 14px; }
.pf-lb-visit[hidden] { display: none; }

@media (max-width: 900px) {
  .proof { padding-left: 1.75rem; padding-right: 1.75rem; }
  .proof-desc { max-width: 26rem; }
  .pf-lb-stage { aspect-ratio: 4 / 3; }
  .pf-lb-bar { padding: 1rem 1.2rem; flex-wrap: wrap; gap: 0.9rem; }
  .pf-lb-title { font-size: 1.05rem; }
  .pf-lb-btn { width: 42px; height: 42px; }
  .pf-lb-prev, .pf-lb-next { top: auto; bottom: clamp(0.8rem, 3vh, 1.5rem); margin-top: 0; }
  .pf-lb-prev { left: calc(50% - 52px); }
  .pf-lb-next { right: calc(50% - 52px); }
}

/* ============================================================
   Your Move — CTA (chapter 08, the closer)
   Three editorial hairline rows, one per channel. No cards, no
   chrome: small kicker, oversized lowercase label, an arrow that
   slides on hover. "write to us" expands the inline contact form
   (grid-rows 0fr -> 1fr, same trick as the offer subtexts). Red
   stays rare: the hover dot, the caret, the send button.
   ============================================================ */
.cta {
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #000;
  color: #fff;
  font-family: "Cal Sans", system-ui, sans-serif;
  padding: clamp(6rem, 14vh, 10rem) clamp(1.75rem, 9vw, 11rem) clamp(7rem, 16vh, 11rem);
}

/* Header — same editorial voice as process + proof. */
.cta-head { position: relative; z-index: 2; max-width: min(44rem, 86vw); }
.cta-title {
  font-size: clamp(2.6rem, 7.5vw, 7rem);
  line-height: 0.92;
  font-weight: 400;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0 0 clamp(1.1rem, 2.6vw, 2rem);
}
.cta-desc {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  line-height: 1.5;
  letter-spacing: 0.005em;
  color: rgba(255, 255, 255, 0.52);
  max-width: 32rem;
}

/* ---------- The three rows ---------- */
.cta-actions {
  position: relative;
  z-index: 2;
  margin-top: clamp(3rem, 9vh, 6rem);
}

.cta-row {
  display: grid;
  grid-template-columns: clamp(6rem, 16vw, 11rem) 1fr auto;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  padding: clamp(1.5rem, 4vh, 2.5rem) 0;
  text-decoration: none;
  color: #fff;
  /* button reset — the email row is a <button> */
  background: none;
  border: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.cta-row:focus-visible { outline: 1px solid rgba(255, 255, 255, 0.5); outline-offset: 4px; }

.cta-kicker {
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.cta-label {
  position: relative;
  font-size: clamp(2rem, 5.5vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.5s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
/* Red dot — wakes up on hover, same breed as the globe marker. */
.cta-label::before {
  content: "";
  position: absolute;
  left: -1.1em;
  top: 50%;
  width: 0.16em;
  height: 0.16em;
  margin-top: -0.08em;
  border-radius: 50%;
  background: #ff2222;
  box-shadow: 0 0 10px rgba(255, 34, 34, 0.8);
  transform: scale(0);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-arrow {
  width: clamp(20px, 2.4vw, 30px);
  height: clamp(20px, 2.4vw, 30px);
  opacity: 0.4;
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-row:hover .cta-label,
.cta-row:focus-visible .cta-label { color: #fff; transform: translateX(0.35em); }
.cta-row:hover .cta-label::before,
.cta-row:focus-visible .cta-label::before { transform: scale(1); }
.cta-row:hover .cta-arrow,
.cta-row:focus-visible .cta-arrow { opacity: 1; transform: translate(6px, -6px); }

/* The plus on the email row rotates instead of flying away. */
.cta-row:hover .cta-arrow-plus,
.cta-row:focus-visible .cta-arrow-plus { transform: rotate(90deg); }
.cta-block.is-open .cta-arrow-plus { transform: rotate(45deg); opacity: 1; }

/* ---------- Inline contact form (collapsed by default) ---------- */
.cta-form-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.cta-block.is-open .cta-form-wrap { grid-template-rows: 1fr; }
.cta-form-inner { overflow: hidden; min-height: 0; }
.cta-form,
.cta-done {
  padding: 0.5rem 0 clamp(2rem, 5vh, 3rem);
  margin-left: clamp(6rem, 16vw, 11rem); /* aligns under the labels */
}

.cta-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
}
.cta-field { display: block; margin-bottom: clamp(1.4rem, 3vh, 2rem); }
.cta-field-name {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.cta-field input,
.cta-field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0;
  padding: 0.55rem 0;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: #fff;
  caret-color: #ff2222;
  transition: border-color 0.4s ease;
  resize: vertical;
}
.cta-field input::placeholder,
.cta-field textarea::placeholder { color: rgba(255, 255, 255, 0.42); }
.cta-field input:focus,
.cta-field textarea:focus { outline: none; border-color: rgba(255, 255, 255, 0.8); }

/* Honeypot — off-screen for everyone with eyes. */
.cta-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cta-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}
.cta-consent input {
  appearance: none;
  position: relative;
  flex: 0 0 auto;
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.15rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.cta-consent input:checked {
  border-color: #ff2222;
  background: #ff2222;
}
.cta-consent input:checked::after {
  content: "";
  position: absolute;
  left: 0.32rem;
  top: 0.1rem;
  width: 0.28rem;
  height: 0.55rem;
  border: solid #000;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.cta-consent input:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}
.cta-consent a {
  color: #fff;
  text-decoration-color: rgba(255, 34, 34, 0.6);
}
.cta-consent a:hover { text-decoration-color: #ff2222; }

.cta-form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cta-form-status {
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.52);
  min-height: 1.3em;
}
.cta-form-status.is-error { color: #ff5347; }

/* Send — the section's one red button, same blood as the lightbox visit. */
.cta-send {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 0 0 auto;
  padding: 0.85rem 1.4rem;
  border: none;
  border-radius: 12px;
  background: #c81414;
  color: #fff;
  font-family: "Cal Sans", system-ui, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(200, 20, 20, 0.28);
  transition: filter 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}
.cta-send:hover { filter: brightness(1.15); transform: scale(1.04); }
.cta-send:active { transform: scale(0.97); }
.cta-send[disabled] { opacity: 0.55; pointer-events: none; }
.cta-send svg { width: 14px; height: 14px; }

/* Sent state — quiet confirmation with the red tick-line. */
.cta-done {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  letter-spacing: -0.01em;
}
.cta-done i {
  display: block;
  width: 28px;
  height: 1px;
  background: #d61818;
}
.cta-done[hidden] { display: none; }

@media (max-width: 900px) {
  .cta { padding-left: 1.75rem; padding-right: 1.75rem; }
  .cta-desc { max-width: 26rem; }
  .cta-row {
    grid-template-columns: 1fr auto;
    gap: 0.6rem 1rem;
  }
  .cta-kicker { grid-column: 1 / -1; }
  .cta-label::before { display: none; } /* no room for the dot at the rail */
  .cta-form,
  .cta-done { margin-left: 0; }
  .cta-form-grid { grid-template-columns: 1fr; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .cta-form-wrap { transition: none; }
  .cta-label,
  .cta-label::before,
  .cta-arrow,
  .cta-send { transition: none; }
}
