/* ===========================================================================
   Zachary Szafranski — Portfolio
   "Low-light movie set" theme: cool cinema black, set-light blue accent,
   pale storyboard panels pinned to a dark production wall. Oswald poster
   titles, Source Sans body, Courier Prime call-sheet labels. Section breaks
   are screenplay "CUT TO:" rules; the disciplines ticker sits under the hero.
   =========================================================================== */

:root {
  /* production wall (dark) */
  --bg:           #0d1218;   /* cool cinema black */
  --bg-2:         #141b24;
  --card-dark:    #10151c;

  /* light text on the wall */
  --ink:          #e9edf2;   /* cool paper white */
  --ink-soft:     #aeb7c4;
  --ink-dim:      #808b98;

  /* storyboard sheets (light panels) */
  --sheet:        #eae8e1;
  --sheet-2:      #dcdad1;
  --pencil:       #1f242b;   /* graphite ink on the sheets */
  --pencil-soft:  #545c66;

  /* accents */
  --accent:       #2f9dff;   /* electric set-light blue */
  --accent-deep:  #1668c4;
  --red:          #f6453e;   /* REC / signal red — the rare counterpoint */

  /* screening room (hero / overlays) — deeper still */
  --dark:         #04070b;
  --dark-2:       #0e131a;
  --cream:        #e9edf2;
  --cream-muted:  rgba(233, 237, 242, 0.78);
  --cream-dim:    rgba(233, 237, 242, 0.5);
  --cream-line:   rgba(233, 237, 242, 0.28);

  /* hard poster shadow + a soft ambient drop = staged lighting depth */
  --hard:         5px 5px 0 rgba(0, 0, 0, 0.7), 0 26px 60px -24px rgba(0, 0, 0, 0.8);
  --hard-sm:      3px 3px 0 rgba(0, 0, 0, 0.7), 0 16px 36px -18px rgba(0, 0, 0, 0.75);
  --stripes:      repeating-linear-gradient(-45deg, #e9edf2 0 12px, #0d1218 12px 24px);

  /* Strict three-role type system:
     display = ALL headings, labels, meta, UI chrome (one poster voice)
     body    = prose only
     mono    = production readouts ONLY (slate/timecode, counters, CUT TO:, stamp) */
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-label:   "Oswald", "Arial Narrow", sans-serif;
  --font-body:    "Source Sans 3", "Segoe UI", sans-serif;
  --font-mono:    "Courier Prime", "Courier New", monospace;

  --maxw:         1180px;
  --nav-h:        72px;
  --ease:         cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.02rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Faint pegboard grid on the production wall, lit from above, dark at the
   edges — the whole site sits inside a pool of set light */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: var(--bg);
  background-image:
    radial-gradient(130% 100% at 50% 8%, transparent 52%, rgba(2, 4, 7, 0.62) 100%),
    radial-gradient(90% 70% at 50% 0%, rgba(47, 157, 255, 0.08), transparent 60%),
    linear-gradient(rgba(233, 237, 242, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(233, 237, 242, 0.045) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 56px 56px, 56px 56px;
}

/* Film-grain overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 950;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

h1, h2, h3 {
  margin: 0;
  line-height: 1.08;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.01em;
}

::selection { background: var(--accent); color: var(--dark); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}
.container-wide { max-width: none; padding: 0 clamp(18px, 3vw, 56px); }

/* Accent words inside headings: a solid blue title card — sharp, no glow */
.accent-text {
  display: inline-block;
  padding: 0.04em 0.18em 0.08em;
  background: var(--accent);
  color: var(--dark);
  line-height: 1;
}

/* ----------------------------------------------------------- Navigation --- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--cream-line);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
body.home .nav:not(.scrolled) {
  background: transparent;
  border-bottom-color: transparent;
  color: var(--cream);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav.scrolled { box-shadow: 0 16px 40px -26px rgba(0, 0, 0, 0.9); }
.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.logo .dot { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(6px, 2.4vw, 34px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  position: relative;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: inherit;
  opacity: 0.78;
  padding: 8px 2px;
  transition: opacity 0.2s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 2px; right: 2px; bottom: 2px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav-links a:hover,
.nav-links a.active { opacity: 1; }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

/* Contact = marquee ticket button */
.nav-links a.nav-cta {
  opacity: 1;
  color: var(--dark);
  background: var(--accent);
  border: 2px solid var(--dark);
  padding: 7px 18px;
  box-shadow: var(--hard-sm);
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.nav-links a.nav-cta:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--hard);
}
.nav-links a.nav-cta::after { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle svg { width: 24px; height: 24px; }

/* ------------------------------------------------------------------ Hero --- */
.hero {
  position: relative;
  min-height: 96vh;
  min-height: 100svh;
  display: flex;
  align-items: center;  /* poster composition: centered over the footage */
  text-align: center;
  padding-top: var(--nav-h);
  padding-bottom: 72px;  /* keeps the center clear of the slate line */
  overflow: hidden;
  background: var(--dark);
  color: var(--cream);
}
.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-video video,
.hero-video iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 0;
  transform: translate(-50%, -50%) scale(1.06);
  filter: brightness(0.42) saturate(0.9);
  pointer-events: none;
}
.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-video iframe {
  width: 100vw;
  height: 56.25vw;
  min-width: 177.78vh;
  min-height: 100vh;
}
/* Projector scrim over the video: blue key light, darker at the edges */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(75% 60% at 50% 40%, rgba(47, 157, 255, 0.14), transparent 65%),
    linear-gradient(180deg, rgba(4, 7, 11, 0.62) 0%, rgba(4, 7, 11, 0.3) 45%, rgba(4, 7, 11, 0.85) 100%);
  pointer-events: none;
}
/* Camera-viewfinder corner brackets */
.hero-marks { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hero-marks i {
  position: absolute;
  width: 32px; height: 32px;
  opacity: 0.6;
  border: 0 solid var(--cream);
}
.hero-marks i:nth-child(1) { top: calc(var(--nav-h) + 22px); left: 24px;  border-top-width: 2px; border-left-width: 2px; }
.hero-marks i:nth-child(2) { top: calc(var(--nav-h) + 22px); right: 24px; border-top-width: 2px; border-right-width: 2px; }
.hero-marks i:nth-child(3) { bottom: 56px; left: 24px;  border-bottom-width: 2px; border-left-width: 2px; }
.hero-marks i:nth-child(4) { bottom: 56px; right: 24px; border-bottom-width: 2px; border-right-width: 2px; }

.hero .container { position: relative; z-index: 3; }
/* Billing line above the title: letterspaced credit, nothing else */
.hero-kicker {
  margin: 0 0 clamp(18px, 3vh, 30px);
  font-family: var(--font-label);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cream-muted);
}
.hero h1 {
  font-size: clamp(3.2rem, 9.5vw, 7.8rem);
  font-weight: 600;
  line-height: 0.96;
  text-transform: uppercase;
  letter-spacing: 0.005em;
}
.hero h1 .accent-text { margin-top: 0.08em; }
/* Deck below the title: centered lede, then centered CTAs */
.hero-deck {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(26px, 4vh, 38px);
  margin-top: clamp(24px, 4vh, 40px);
}
.hero .lede {
  margin: 0 auto;
  max-width: 58ch;
  font-size: clamp(1.02rem, 1.8vw, 1.15rem);
  line-height: 1.6;
  color: var(--cream-muted);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.hero-cta .btn { padding: 15px 28px; font-size: 1rem; }
/* the secondary CTA reads as etched glass over the footage */
.hero-cta .btn-ghost { background: rgba(4, 7, 11, 0.45); }
/* the reel button breathes light until hovered */
.hero-cta .btn-primary { animation: cta-glow 3.2s ease-in-out infinite; }
.hero-cta .btn-primary:hover { animation: none; }
@keyframes cta-glow {
  0%, 100% { box-shadow: var(--hard-sm); }
  50%      { box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.7), 0 0 38px rgba(47, 157, 255, 0.55); }
}

/* Title-sequence entrance: kicker, title, then the deck rise in on load */
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}
.hero-kicker,
.hero h1,
.hero-deck { animation: hero-rise 0.9s var(--ease) backwards; }
.hero-kicker { animation-delay: 0.05s; }
.hero h1     { animation-delay: 0.18s; }
.hero-deck   { animation-delay: 0.38s; }
/* Call-sheet slate line inside the hero */
.hero-slate {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(20px, 5vw, 48px);
  border-top: 1px solid var(--cream-line);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream-dim);
}
.hero-slate .rec { color: var(--red); animation: rec-blink 1.6s steps(2, start) infinite; }

/* --------------------------------------------- Divider 1: marquee ticker --- */
/* The scrolling disciplines bar — clapperboard stripes top and bottom. */
.ticker {
  position: relative;
  z-index: 5;
  background: var(--accent);
  color: var(--dark);
  border-block: 9px solid;
  border-image: var(--stripes) 9;
  transform: rotate(-1deg) scale(1.03);
  margin: -14px 0 10px;
  overflow: hidden;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.4), 0 20px 60px -14px rgba(47, 157, 255, 0.4);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-roll 42s linear infinite;
}
.ticker-seq {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 10px 0 10px 30px;
  white-space: nowrap;
}
.tick {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.tick-sep { color: var(--dark); opacity: 0.55; font-size: 0.85rem; }

/* ------------------------------ Divider: screenplay "CUT TO:" transition -- */
.divider { pointer-events: none; }
.divider-cut {
  display: flex;
  align-items: center;
  gap: 22px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 8px clamp(20px, 5vw, 48px);
}
.divider-cut::before {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(233, 237, 242, 0.25);
}
.divider-cut span {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
}

/* ----------------------------------------------------------------- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 13px 24px;
  border: 2px solid var(--cream);
  background: var(--dark-2);
  color: var(--cream);
  cursor: pointer;
  box-shadow: var(--hard-sm);
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 rgba(47, 157, 255, 0.9), 0 14px 44px -10px rgba(47, 157, 255, 0.45);
}
.btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 rgba(0,0,0,0); }
.btn-primary {
  background: var(--accent);
  border-color: var(--dark);
  color: var(--dark);
}
.btn svg { width: 17px; height: 17px; transition: transform 0.2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-sm { padding: 10px 18px; font-size: 0.85rem; }

/* ---------------------------------------------------------------- Sections --- */
.section { padding: clamp(72px, 12vh, 120px) 0; }
.section-head {
  display: flex;
  align-items: flex-start;
  gap: clamp(18px, 3vw, 34px);
  margin-bottom: 52px;
}
/* Clapperboard scene chip */
.clapper {
  flex: 0 0 auto;
  width: 96px;
  filter: drop-shadow(4px 4px 0 rgba(0, 0, 0, 0.5));
}
.clapper-stripes {
  display: block;
  height: 20px;
  background: var(--stripes);
  border: 2px solid var(--cream);
  border-bottom: 0;
}
.clapper-num {
  display: grid;
  place-items: center;
  padding: 8px 0 10px;
  border: 2px solid var(--cream);
  background: var(--dark-2);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--cream);
}
.section-kicker,
.section-num {
  display: block;
  font-family: var(--font-label);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.section-title {
  font-size: clamp(2.2rem, 4.8vw, 3.6rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-top: 10px;
}
.section-sub {
  margin-top: 14px;
  color: var(--ink-soft);
  max-width: 62ch;
  font-size: 1.04rem;
}

/* -------------------------------------------------------------- About cols --- */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.about-grid p { color: var(--ink-soft); font-size: 1.08rem; }
.about-grid p + p { margin-top: 18px; }

/* Stat cards = production notes on cream index cards, taped up askew */
.stat-notes { display: grid; gap: 22px; }
.stat-note {
  position: relative;
  background: var(--sheet);
  color: var(--pencil);
  padding: 20px 24px 18px;
  box-shadow: var(--hard-sm);
  display: flex;
  align-items: baseline;
  gap: 16px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.stat-note:nth-child(1) { transform: rotate(-1.2deg); }
.stat-note:nth-child(2) { transform: rotate(0.8deg); }
.stat-note:nth-child(3) { transform: rotate(-0.6deg); }
.stat-note:hover { transform: rotate(0deg) translate(-2px, -2px); box-shadow: var(--hard); }
/* masking-tape strip */
.stat-note::before {
  content: "";
  position: absolute;
  top: -12px; left: 50%;
  width: 88px; height: 20px;
  transform: translateX(-50%) rotate(-2deg);
  background: rgba(47, 157, 255, 0.55);
  border-left: 1px dashed rgba(31, 36, 43, 0.35);
  border-right: 1px dashed rgba(31, 36, 43, 0.35);
}
.stat-note .num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--accent-deep);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.stat-note .lbl {
  font-family: var(--font-label);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--pencil-soft);
}

/* ----------------------------------------------------- Featured projects --- */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.featured-lead { margin-bottom: 32px; }

/* Project card = a storyboard panel: cream sheet, drawn frame, typed caption */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--sheet);
  color: var(--pencil);
  padding: 10px 10px 0;
  box-shadow: var(--hard-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card:hover {
  transform: translate(-3px, -3px) rotate(0deg) !important;
  box-shadow: 7px 7px 0 rgba(47, 157, 255, 0.9), 0 22px 60px -16px rgba(47, 157, 255, 0.4);
}
.card-media-wrap {
  position: relative;
  overflow: hidden;
  border: 1.5px solid var(--pencil);
  aspect-ratio: 4 / 3;
}
.card-media {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.card:hover .card-media { transform: scale(1.045); }
.card-body { padding: 13px 8px 15px; }
.card-line { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.card h3 {
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pencil);
}
.card-star { color: var(--red); font-size: 0.95rem; flex: 0 0 auto; }
.card-meta {
  display: block;
  margin-top: 5px;
  font-family: var(--font-label);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pencil-soft);
}
.card .card-sub { color: var(--pencil-soft); font-size: 0.94rem; margin: 9px 0 0; line-height: 1.55; }
.card-arrow {
  position: absolute;
  top: 18px; right: 18px;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: var(--accent);
  border: 2px solid var(--dark);
  color: var(--dark);
  opacity: 0;
  transform: translate(4px, -4px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  z-index: 2;
}
.card:hover .card-arrow { opacity: 1; transform: translate(0, 0); }
.card-arrow svg { width: 16px; height: 16px; }
.play-badge {
  position: absolute;
  top: 18px; left: 18px;
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-label);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 10px 5px 8px;
  background: var(--dark);
  border: 1.5px solid var(--cream);
  color: var(--cream);
  z-index: 2;
}
.play-badge svg { width: 12px; height: 12px; }

/* ------------------------------------------------------------------ Skills --- */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.skill-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 2px;
  border-bottom: 1px dashed rgba(233, 237, 242, 0.28);
}
.skill-row .skill-name { font-weight: 600; font-size: 1rem; }
.skill-dots { display: flex; gap: 6px; flex: 0 0 auto; }
.skill-dots .dot {
  width: 10px; height: 10px;
  border: 1.5px solid var(--ink-soft);
  border-radius: 50%;
  background: transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.reveal.in .skill-dots .dot.fill,
.no-reveal .skill-dots .dot.fill { background: var(--accent); border-color: var(--accent); }

/* the departments board — a cream call sheet */
.disciplines {
  background: var(--sheet);
  color: var(--pencil);
  box-shadow: var(--hard-sm);
  padding: 28px;
}
.disciplines h3 {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--pencil);
}
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-family: var(--font-label);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 8px 13px;
  background: transparent;
  border: 1.5px solid var(--pencil-soft);
  color: var(--pencil-soft);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.chip:hover { background: var(--pencil); border-color: var(--pencil); color: var(--sheet); }

/* ----------------------------------------------------------------- Contact --- */
/* the finale: a single spotlight comes up on the last scene */
.contact { position: relative; }
.contact::before {
  content: "";
  position: absolute;
  inset: -18px 0 0 0;   /* extend up to meet the "CUT TO:" divider line above the section */
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(55% 75% at 50% 0%, rgba(47, 157, 255, 0.12), transparent 65%);
}
.contact-inner {
  position: relative;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding-top: 10px;
}
.contact h2 {
  font-size: clamp(2.6rem, 6.2vw, 4.8rem);
  font-weight: 600;
  line-height: 1.02;
  text-transform: uppercase;
}
.contact p { color: var(--ink-soft); margin-top: 18px; font-size: 1.08rem; }
.contact-actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}
/* Production stamp note */
.stamp {
  position: absolute;
  top: -26px; right: -12px;
  transform: rotate(4deg);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  border: 2px solid var(--red);
  padding: 8px 14px;
  opacity: 0.85;
  pointer-events: none;
}
/* --------------------------------------------------- Footer = credits roll --- */
.footer {
  background: var(--dark);
  padding: 44px 0 40px;
  margin-top: 20px;
  border-top: 9px solid;
  border-image: var(--stripes) 9;
  text-align: center;
}
.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.credit-role {
  font-family: var(--font-label);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.credit-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
}
.credit-fine {
  font-family: var(--font-label);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.credit-fine a { color: var(--ink-soft); }
.credit-fine a:hover { color: var(--accent); }

/* ====================================================== PROJECTS PAGE ====== */
.page-header {
  padding: calc(var(--nav-h) + clamp(56px, 10vh, 100px)) 0 clamp(36px, 6vh, 60px);
  position: relative;
}
/* a set light comes up on each page's title */
.page-header::before,
.about-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(60% 90% at 32% 0%, rgba(47, 157, 255, 0.11), transparent 62%);
}
.page-header h1 {
  font-size: clamp(3rem, 8vw, 5.6rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-top: 14px;
}
.page-header h1 .dot { color: var(--accent); }
.page-header p { color: var(--ink-soft); margin-top: 16px; max-width: 58ch; font-size: 1.06rem; }
.page-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.page-header-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  padding-bottom: 8px;
}
.file-count {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}
/* Big marquee banner that opens the catalogue overlay — the page's main CTA */
.catalogue-banner {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 28px);
  width: 100%;
  margin: 0 0 34px;
  padding: clamp(18px, 3vw, 26px) clamp(20px, 3.5vw, 40px);
  padding-left: clamp(40px, 5vw, 60px);
  background: var(--accent);
  color: var(--dark);
  border: 2px solid var(--dark);
  box-shadow: var(--hard);
  cursor: pointer;
  text-align: left;
  overflow: hidden;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.catalogue-banner::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 18px;
  background: var(--stripes);
  border-right: 2px solid var(--dark);
}
.catalogue-banner:hover  { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.65); }
.catalogue-banner:active { transform: translate(2px, 2px); box-shadow: 0 0 0 rgba(0, 0, 0, 0); }
.cb-copy { flex: 1; min-width: 0; }
.cb-label {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.12;
}
.cb-sub {
  display: block;
  margin-top: 4px;
  font-family: var(--font-label);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.72;
}
.cb-arrow {
  flex: 0 0 auto;
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  background: var(--dark);
  color: var(--accent);
  transition: transform 0.2s var(--ease);
}
.cb-arrow svg { width: 22px; height: 22px; }
.catalogue-banner:hover .cb-arrow { transform: translateX(5px); }

.filter-btn {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 9px 18px;
  background: var(--dark-2);
  border: 2px solid var(--cream-line);
  color: var(--ink-soft);
  cursor: pointer;
  transition: color 0.15s var(--ease), background 0.15s var(--ease),
    border-color 0.15s var(--ease), transform 0.15s var(--ease),
    box-shadow 0.15s var(--ease);
}
.filter-btn:hover {
  color: var(--ink);
  border-color: var(--cream);
  transform: translate(-1px, -1px);
}
.filter-btn.active {
  color: var(--dark);
  background: var(--accent);
  border-color: var(--dark);
  box-shadow: var(--hard-sm);
}

/* Masonry board of storyboard panels */
.tile-grid {
  column-count: 3;
  column-gap: 26px;
  padding-bottom: clamp(60px, 12vh, 120px);
}
.tile {
  width: 100%;
  margin: 0 0 26px;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
}
/* tiles size to their thumbnail's real proportions — the masonry variation
   comes from the images themselves; empty thumbs keep a 4:3 plate */
.tile .card-media-wrap { aspect-ratio: auto; }
.tile .card-media { height: auto; display: block; }
.tile .card-media:not([src]),
.tile .card-media[src=""] { aspect-ratio: 4 / 3; }
.tile-grid .tile:nth-child(odd)  { transform: rotate(0.5deg); }
.tile-grid .tile:nth-child(even) { transform: rotate(-0.5deg); }
.tile-grid .tile:nth-child(3n)   { transform: rotate(0.2deg); }

@media (min-width: 1500px) {
  .container-wide .tile-grid { column-count: 4; }
}

/* ================================================== CATALOGUE OVERLAY ====== */
.catalogue {
  position: fixed;
  inset: 0;
  z-index: 350;
  display: none;
  flex-direction: column;
  background: var(--dark);
  color: var(--cream);
  overflow: hidden;
}
.catalogue.open { display: flex; animation: catalogue-in 0.35s var(--ease); }
@keyframes catalogue-in { from { opacity: 0; } to { opacity: 1; } }
.catalogue::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(70% 55% at 50% 35%, rgba(47, 157, 255, 0.07), transparent 65%),
    linear-gradient(rgba(233, 237, 242, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(233, 237, 242, 0.035) 1px, transparent 1px);
  background-size: 100% 100%, 64px 64px, 64px 64px;
  pointer-events: none;
}
.cat-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px clamp(18px, 3vw, 48px);
  border-bottom: 9px solid;
  border-image: var(--stripes) 9;
  flex: 0 0 auto;
}
.cat-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-muted);
}
.cat-counter {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.cat-btn {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  background: transparent;
  border: 2px solid var(--cream-line);
  color: var(--cream);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), transform 0.15s var(--ease);
}
.cat-btn:hover { border-color: var(--dark); background: var(--accent); color: var(--dark); transform: translateY(-2px); }
.cat-btn svg { width: 20px; height: 20px; }
.cat-prev, .cat-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
}
.cat-prev { left: clamp(10px, 2.5vw, 36px); }
.cat-next { right: clamp(10px, 2.5vw, 36px); }
.cat-prev:hover, .cat-next:hover { transform: translateY(calc(-50% - 2px)); }

.cat-swiper {
  position: relative;
  z-index: 1;
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.cat-swiper .swiper-wrapper { align-items: center; }
.catalogue .swiper-slide {
  width: min(76vw, 940px);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0.3;
  transform: scale(0.94);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.catalogue .swiper-slide-active { opacity: 1; transform: scale(1); }
/* storyboard panel matte around each board */
.cat-media {
  margin: 0;
  border: 10px solid var(--sheet);
  outline: 2px solid var(--dark);
  background: var(--dark-2);
  box-shadow: 9px 9px 0 rgba(47, 157, 255, 0.85), 0 40px 110px -28px rgba(47, 157, 255, 0.4);
  overflow: hidden;
}
.cat-media img {
  width: 100%;
  height: 100%;
  max-height: 50vh;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.cat-caption {
  display: flex;
  align-items: flex-start;
  gap: clamp(16px, 3vw, 30px);
  margin-top: 26px;
}
.cat-index {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 0.9;
  letter-spacing: 0;
  color: transparent;
  -webkit-text-stroke: 2px var(--cream);
  flex: 0 0 auto;
}
.cat-info h3 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--cream);
}
.cat-meta {
  display: block;
  margin-top: 8px;
  font-family: var(--font-label);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.cat-info p { color: var(--cream-muted); margin: 12px 0 0; max-width: 58ch; font-size: 1rem; }
.cat-info .btn { margin-top: 18px; }

.catalogue.no-swiper .swiper-wrapper {
  display: flex;
  height: 100%;
  align-items: center;
  transition: transform 0.5s var(--ease);
}
.catalogue.no-swiper .swiper-slide {
  flex: 0 0 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(60px, 9vw, 120px);
}
.catalogue.no-swiper .swiper-slide > * { width: min(76vw, 940px); }

/* ===================================================== SPOTLIGHT PAGE ====== */
.spotlight { padding-top: var(--nav-h); }
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-label);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 38px 0 30px;
  transition: color 0.2s var(--ease), gap 0.2s var(--ease);
}
.back-link:hover { color: var(--accent); gap: 12px; }
.back-link svg { width: 16px; height: 16px; transform: rotate(180deg); }

.spot-head {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(24px, 5vw, 56px);
  align-items: end;
  padding-bottom: 40px;
  border-bottom: 9px solid;
  border-image: var(--stripes) 9;
}
.spot-head h1 {
  font-size: clamp(2.6rem, 6.5vw, 4.8rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.spot-head .tag-row { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.spot-meta { display: grid; gap: 18px; }
.meta-item .k {
  font-family: var(--font-label);
  font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 700;
}
.meta-item .v { margin-top: 4px; color: var(--ink); font-weight: 500; }
/* Full-width description: one column, paragraphs follow the newlines in
   content.json */
.spot-desc {
  font-size: 1.14rem;
  color: var(--ink-soft);
  margin: 44px 0;
}
.spot-desc p { margin-bottom: 1.1em; }
.spot-desc p:last-child { margin-bottom: 0; }
.spot-software { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

.pill {
  font-family: var(--font-label);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 11px;
  background: var(--dark-2);
  border: 1.5px solid var(--cream-line);
  color: var(--ink);
}
.pill.accent { background: var(--accent); border-color: var(--dark); color: var(--dark); }

.media-stack {
  display: grid;
  gap: 34px;
  padding-bottom: clamp(48px, 9vh, 90px);
}

/* ------------------------------------------------ Spotlight extra gallery --- */
.gallery-head h2 {
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  padding-bottom: 14px;
  margin-bottom: 22px;
  border-bottom: 2px solid var(--cream-line);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-bottom: clamp(60px, 12vh, 120px);
}
.gallery-item {
  padding: 8px;
  border: 0;
  background: var(--sheet);
  box-shadow: var(--hard-sm);
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.gallery-item:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 rgba(47, 157, 255, 0.9), 0 18px 48px -14px rgba(47, 157, 255, 0.4);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  border: 1.5px solid var(--pencil);
}

/* ---------------------------------------------------------------- Lightbox --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  place-items: center;
  background: rgba(4, 7, 11, 0.94);
  padding: clamp(16px, 5vw, 64px);
}
.lightbox.open { display: grid; animation: lightbox-in 0.25s var(--ease); }
@keyframes lightbox-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox-img {
  max-width: 92vw;
  max-height: 86vh;
  border: 10px solid var(--sheet);
  box-shadow: 9px 9px 0 rgba(47, 157, 255, 0.85), 0 40px 110px -28px rgba(47, 157, 255, 0.4);
}
.lightbox-btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border: 2px solid var(--cream-line);
  background: transparent;
  color: var(--cream);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}
.lightbox-btn:hover { border-color: var(--dark); background: var(--accent); color: var(--dark); }
.lightbox-btn svg { width: 22px; height: 22px; }
.lightbox-close { top: 20px; right: 24px; }
.lightbox-prev { left: clamp(8px, 3vw, 32px); top: 50%; transform: translateY(-50%); }
.lightbox-next { right: clamp(8px, 3vw, 32px); top: 50%; transform: translateY(-50%); }

/* ===================================== DEMO REEL FULLSCREEN OVERLAY ======== */
.reel-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: none;
  place-items: center;
  padding: clamp(16px, 5vw, 72px);
  background: rgba(4, 7, 11, 0);
  transition: background 0.45s var(--ease);
}
.reel-overlay.open { display: grid; }
.reel-overlay.show { background: rgba(4, 7, 11, 0.95); }
.reel-stage {
  position: relative;
  width: min(1120px, 94vw);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
  border: 2px solid var(--cream);
  box-shadow: 10px 10px 0 rgba(47, 157, 255, 0.85), 0 50px 130px -30px rgba(47, 157, 255, 0.45);
  opacity: 0;
  transform: translateY(40px) scale(0.9);
}
.reel-overlay.show .reel-stage {
  opacity: 1;
  transform: none;
  transition:
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.45s var(--ease);
}
.reel-stage iframe,
.reel-stage video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.reel-close {
  position: absolute;
  top: clamp(16px, 3vw, 30px);
  right: clamp(16px, 3vw, 30px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border: 2px solid var(--dark);
  color: var(--dark);
  background: var(--accent);
  box-shadow: var(--hard-sm);
  cursor: pointer;
  opacity: 0;
  transform: translateY(-10px);
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.reel-overlay.show .reel-close {
  opacity: 1;
  transform: none;
  transition: opacity 0.4s 0.25s var(--ease), transform 0.4s 0.25s var(--ease);
}
.reel-close:hover { transform: translate(-2px, -2px); box-shadow: var(--hard); }
.reel-close svg { width: 20px; height: 20px; }

/* big media on the spotlight page = matted storyboard frames */
.media-frame {
  overflow: hidden;
  border: 10px solid var(--sheet);
  outline: 2px solid rgba(0, 0, 0, 0.55);
  background: var(--dark-2);
  box-shadow: var(--hard);
}
.media-frame img { width: 100%; }
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}
.video-frame iframe,
.video-frame video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

.next-project {
  border-top: 1px solid var(--cream-line);
  padding: clamp(50px, 9vh, 90px) 0;
}
.next-project .label {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ink-dim);
}
.next-project a {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.8rem); font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-top: 12px;
  transition: gap 0.25s var(--ease);
}
.next-project a:hover { gap: 24px; }
.next-project svg { width: 32px; height: 32px; color: var(--accent); }

.empty-state {
  text-align: center;
  padding: 100px 0;
  font-family: var(--font-label);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* =========================================== BEFORE / AFTER (2.5D) SLIDER === */
.compare {
  --pos: 50%;
  width: 100%;
}
.compare-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 10px solid var(--sheet);
  outline: 2px solid rgba(0, 0, 0, 0.55);
  background: var(--dark-2);
  box-shadow: var(--hard);
  cursor: ew-resize;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.compare-img {
  display: block;
  width: 100%;
  height: auto;
  -webkit-user-drag: none;
  user-select: none;
}
.compare-after { position: relative; }
.compare-before {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.compare-tag {
  position: absolute;
  top: 12px;
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 11px;
  background: var(--dark);
  border: 1.5px solid var(--cream);
  color: var(--cream);
  pointer-events: none;
  z-index: 3;
}
.compare-tag-before { left: 12px; }
.compare-tag-after  { right: 12px; }
.compare-divider {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos);
  width: 3px;
  background: var(--cream);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5);
  transform: translateX(-1.5px);
  pointer-events: none;
  z-index: 4;
}
.compare-handle {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--dark);
  background: var(--accent);
  border: 2px solid var(--dark);
  cursor: ew-resize;
  pointer-events: auto;
  box-shadow: 0 4px 14px -4px rgba(0, 0, 0, 0.7);
  transition: transform 0.15s var(--ease);
}
.compare-handle:hover { transform: translate(-50%, -50%) scale(1.08); }
.compare-handle:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.compare-handle svg { width: 22px; height: 22px; }
.compare-handle { animation: handle-breathe 2.8s ease-in-out infinite; }
.compare.dragging .compare-handle { transform: translate(-50%, -50%) scale(1.08); animation: none; }
.compare.dragging .compare-tag { opacity: 0; transition: opacity 0.2s var(--ease); }

/* ============================ HOME 2.5D LEAD SHOWCASE (full width) ========= */
.compare-showcase { display: grid; gap: 40px; }
.showcase-item { display: block; }
.showcase-slider { position: relative; }
.showcase-slider .compare-tag { display: none; }
.showcase-slider .compare-frame {
  aspect-ratio: 21 / 9;
  box-shadow: var(--hard), 0 44px 130px -40px rgba(47, 157, 255, 0.32);
}
.showcase-slider .compare-after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.showcase-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  padding: clamp(18px, 3vw, 36px);
  pointer-events: none;
  background: linear-gradient(to top,
    rgba(4, 7, 11, 0.88) 0%, rgba(4, 7, 11, 0.45) 45%, transparent 100%);
}
.showcase-caption h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--cream);
  margin: 8px 0 6px;
}
.showcase-caption .text-link {
  pointer-events: auto;
  margin-top: 10px;
  color: var(--cream);
}
.showcase-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-family: var(--font-label);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.showcase-hint svg { width: 16px; height: 16px; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-family: var(--font-label);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  transition: gap 0.2s var(--ease);
}
.text-link svg { width: 16px; height: 16px; }
.text-link:hover { gap: 13px; }

/* ======================================================= ABOUT / RESUME ===== */
.about-hero {
  padding: calc(var(--nav-h) + clamp(48px, 9vh, 90px)) 0 clamp(40px, 7vh, 70px);
  position: relative;
}
.about-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
/* headshot pinned like a casting polaroid */
.portrait {
  position: relative;
  overflow: visible;
  background: var(--sheet);
  box-shadow: var(--hard);
  transform: rotate(-1.5deg);
  padding: 12px 12px 46px;
}
.portrait::after {
  content: "HEADSHOT — Z. SZAFRANSKI";
  position: absolute;
  bottom: 13px; left: 0; right: 0;
  text-align: center;
  font-family: var(--font-label);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--pencil-soft);
}
.portrait img { width: 100%; display: block; aspect-ratio: 4 / 5; object-fit: cover; border: 1.5px solid var(--pencil); }
.about-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 14px;
}
.about-hero .role {
  color: var(--accent); font-weight: 700; margin-top: 12px;
  font-family: var(--font-label);
  font-size: 0.84rem; letter-spacing: 0.06em; text-transform: uppercase;
}
.about-hero .bio { color: var(--ink-soft); margin-top: 18px; max-width: 58ch; font-size: 1.08rem; }
.about-facts {
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  margin-top: 22px;
  color: var(--ink-soft);
  font-family: var(--font-label);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.about-facts span { display: inline-flex; align-items: center; gap: 8px; }
.about-facts svg { width: 15px; height: 15px; color: var(--accent); }
.about-cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 16px; }

.resume-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}
.resume-block { margin-bottom: 48px; }
.resume-block:last-child { margin-bottom: 0; }
.resume-block > h2 {
  font-size: 1.6rem;
  font-weight: 600;
  text-transform: uppercase;
  padding-bottom: 14px;
  margin-bottom: 26px;
  border-bottom: 9px solid;
  border-image: var(--stripes) 9;
}
.timeline { position: relative; }
.timeline-item {
  position: relative;
  padding-left: 28px;
  padding-bottom: 30px;
  border-left: 2px solid var(--cream-line);
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -7px; top: 5px;
  width: 12px; height: 12px;
  background: var(--accent);
  border: 2px solid var(--dark);
}
.timeline-item .when {
  font-family: var(--font-label);
  font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-dim);
}
.timeline-item h3 { font-size: 1.2rem; margin: 6px 0 2px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
.timeline-item .org {
  color: var(--accent);
  font-family: var(--font-label);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.timeline-item p { color: var(--ink-soft); margin-top: 10px; font-size: 1rem; }

/* aside panels = cream call sheets */
.resume-aside .panel {
  background: var(--sheet);
  color: var(--pencil);
  box-shadow: var(--hard-sm);
  padding: 26px;
  margin-bottom: 28px;
}
.resume-aside .panel:nth-child(odd) { transform: rotate(0.4deg); }
.resume-aside .panel:nth-child(even) { transform: rotate(-0.4deg); }
.resume-aside .panel:last-child { margin-bottom: 0; }
.resume-aside .panel h3 {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--pencil);
}
/* cream-panel variants of the skill rows */
.resume-aside .skill-row { border-bottom-color: rgba(31, 36, 43, 0.3); }
.resume-aside .skill-row .skill-name { color: var(--pencil); }
.resume-aside .skill-dots .dot { border-color: var(--pencil-soft); }
.resume-aside .reveal.in .skill-dots .dot.fill { background: var(--accent-deep); border-color: var(--accent-deep); }
.resume-list { list-style: none; margin: 0; padding: 0; }
.resume-list li {
  display: flex; gap: 12px;
  padding: 9px 0;
  color: var(--pencil-soft);
  border-bottom: 1px dashed rgba(31, 36, 43, 0.3);
  font-size: 0.96rem;
}
.resume-list li:last-child { border-bottom: 0; }
.resume-list li::before { content: "▸"; color: var(--accent-deep); }

/* ----------------------------------------------------- Micro-interactions --- */
@keyframes rec-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.25; }
}
@keyframes handle-breathe {
  0%, 100% { box-shadow: 0 4px 14px -4px rgba(0,0,0,0.7), 0 0 0 0 rgba(242,182,60,0.5); }
  50%      { box-shadow: 0 4px 14px -4px rgba(0,0,0,0.7), 0 0 0 12px rgba(242,182,60,0); }
}
@keyframes ticker-roll {
  to { transform: translateX(-50%); }
}

.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 4px;
  width: 0;
  z-index: 200;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(47, 157, 255, 0.8);
  transition: width 0.12s linear;
  pointer-events: none;
}

/* -------------------------------------------------------------- Reveal fx --- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
.stat-note.reveal { transition: opacity 0.7s var(--ease); transform: none; }

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 900px) {
  .about-grid,
  .skills-grid,
  .spot-head,
  .showcase-item,
  .about-hero-grid,
  .resume-grid { grid-template-columns: 1fr; }
  .showcase-item { gap: 22px; }
  /* single-column: center the polaroid, open up the stacked columns */
  .portrait { max-width: 300px; margin-inline: auto; }
  .about-grid, .skills-grid, .resume-grid { row-gap: 52px; }
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
  .tile-grid { column-count: 2; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .clapper { width: 76px; }
  .clapper-num { font-size: 1.9rem; }
  .stamp { position: static; display: inline-block; margin-bottom: 18px; }
  .catalogue .swiper-slide { width: 86vw; }
  .cat-prev, .cat-next { top: auto; bottom: 18px; transform: none; }
  .cat-prev:hover, .cat-next:hover { transform: translateY(-2px); }
}

@media (max-width: 620px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    color: var(--ink);
    border-bottom: 2px solid var(--cream-line);
    padding: 8px 0;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 14px clamp(20px, 5vw, 48px); }
  .nav-links a::after { display: none; }
  .nav-links a.nav-cta {
    margin: 10px clamp(20px, 5vw, 48px);
    padding: 12px 20px;
    text-align: center;
    justify-content: center;
    display: flex;
  }
  .featured-grid,
  .gallery-grid { grid-template-columns: 1fr; }
  .tile-grid { column-count: 1; }
  .showcase-slider .compare-frame { aspect-ratio: 4 / 3; }
  .hero-slate { display: none; }
  .cat-caption { flex-direction: column; gap: 10px; }
  .cat-index { display: none; }
  .page-header-actions { align-items: flex-start; }
  /* breathing room: phones get slightly wider margins and looser stacks */
  .container { padding: 0 24px; }
  .featured-grid, .gallery-grid { gap: 32px; }
  .tile { margin-bottom: 32px; }
  .card-body { padding: 15px 10px 18px; }
  .stat-notes { gap: 26px; }
  .skill-row { padding: 14px 2px; }
  .media-stack { gap: 44px; }
  .spot-head { row-gap: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .skill-dots .dot { transition: none !important; }
  .compare-handle, .hero-slate .rec,
  .hero-cta .btn-primary,
  .hero-kicker, .hero h1, .hero-deck { animation: none !important; }
  .ticker-track { animation: none !important; }
  .scroll-progress { display: none; }
  .hero-video { display: none; }
  .reel-stage, .reel-close {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
  .catalogue .swiper-slide { transition: none; }
}
