/* ==========================================================================
   keelerstudio.com  |  Randy Keeler, Senior UI/UX Designer
   Hand-built static site. Same system as keelerai.com Version 13.
   ========================================================================== */

/* Self-hosted fonts (SIL Open Font License), latin subset */
@font-face { font-family: "Host Grotesk"; font-style: normal; font-weight: 300; font-display: swap; src: url(../fonts/host-grotesk-latin-300-normal.woff2) format("woff2"); }
@font-face { font-family: "Host Grotesk"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/host-grotesk-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Host Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/host-grotesk-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/inter-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/inter-latin-700-normal.woff2) format("woff2"); }

:root {
  --bg: #1a1a1a;
  --bg-deep: #0d0d0d;
  --black: #000;
  --ink: #fff;
  --soft: #d4d4d4;
  --muted: #a3a3a3;
  --dim: #8a8a8a;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.2);
  --red: #FF2F01;         /* the one brand red, used everywhere */
  --red-hover: #FF5A33;
  --red-deep: #3A1006;    /* top of the footer wordmark gradient */

  --display: "Host Grotesk", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(20px, 4vw, 56px);
  --max: 1328px;
  --header-h: 78px;            /* logo is the trimmed signature, 56px, centered */
  --statement-size: clamp(34px, 5.4vw, 80px);
  --h-section: clamp(40px, 5vw, 72px); /* every section header, sized from the About page */
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--red); color: #000; padding: 10px 14px; font-weight: 600;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
  /* V12: frosted translucent bar at all times, including the very top of the page */
  background: rgba(10, 10, 10, .78);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  transition: background .3s var(--ease);
}
.logo { display: block; }
.logo img { display: block; height: 56px; width: auto; }
@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .logo img { height: 42px; }
}

.nav { display: flex; gap: clamp(18px, 2.4vw, 34px); }
.nav a {
  font-size: 15px; font-weight: 500; letter-spacing: -0.2px;
  color: var(--red); text-transform: uppercase;
  position: relative; padding: 6px 0;
  transition: color .2s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

.menu-btn { display: none; width: 44px; height: 44px; position: relative; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  position: absolute; left: 11px; width: 22px; height: 2px; background: var(--ink);
  transition: transform .3s var(--ease), opacity .2s;
}
.menu-btn span { top: 21px; }
.menu-btn span::before, .menu-btn span::after { content: ""; left: 0; }
.menu-btn span::before { top: -7px; }
.menu-btn span::after { top: 7px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-btn span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; justify-content: center; align-items: flex-start;
    gap: 6px; padding: 0 var(--gutter);
    background: rgba(8, 8, 8, .97);
    opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
  }
  .nav a { font-family: var(--display); font-size: clamp(36px, 10vw, 56px); font-weight: 700; letter-spacing: -0.02em; text-transform: none; }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .menu-open { overflow: hidden; }
}

/* ---------- Hero slideshow ---------- */
.hero {
  position: relative; min-height: 100svh; min-height: 100vh;
  display: flex; align-items: flex-end;
  background: var(--black); overflow: hidden; isolation: isolate;
}
@supports (min-height: 100svh) { .hero { min-height: 100svh; } }
.hero--short { min-height: 78vh; }
@supports (min-height: 100svh) { .hero--short { min-height: 78svh; } }
/* Desktop: inner-page heroes take the image's own 16:9 shape (capped at the
   screen height) so heads aren't cropped; any trim comes off the bottom. */
@media (min-width: 861px) {
  .hero--short { min-height: min(56.25vw, 100vh); }
  @supports (min-height: 100svh) { .hero--short { min-height: min(56.25vw, 100svh); } }
  .hero--short .slide img, .hero--short .slide video { object-position: center top; }
}

.slides { position: absolute; inset: 0; z-index: -2; }
.slide {
  position: absolute; inset: 0; margin: 0;
  opacity: 0; transition: opacity 1.4s var(--ease);
}
.slide img, .slide video { width: 100%; height: 100%; object-fit: cover; }
.slide.is-active { opacity: 1; }
/* 12% black over all hero media (images and video) for text legibility */
.slides::after { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(0, 0, 0, .12); pointer-events: none; }

/* Ken Burns (Images page hero). Zooms OUT from 1.08 to 1.0 so every slide
   settles at native resolution, pin sharp. Each slide drifts a different way. */
.hero--kb .slide img { transform-origin: 50% 50%; }
.hero--kb .slide.kb-run img { animation: kenburns 8s cubic-bezier(.3, .1, .3, 1) both; }
.hero--kb .slide:nth-child(4n+1) { --kb-x: -1.6%; --kb-y: 0%; }
.hero--kb .slide:nth-child(4n+2) { --kb-x: 1.4%;  --kb-y: -1%; }
.hero--kb .slide:nth-child(4n+3) { --kb-x: 0%;    --kb-y: 1.6%; }
.hero--kb .slide:nth-child(4n+4) { --kb-x: -1%;   --kb-y: -1.4%; }
@keyframes kenburns {
  from { transform: scale(1.08) translate(var(--kb-x, 0), var(--kb-y, 0)); }
  to   { transform: scale(1) translate(0, 0); }
}
@media (prefers-reduced-motion: reduce) { .hero--kb .slide.kb-run img { animation: none; } }
.hero { touch-action: pan-y; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    /* Bottom blend: melts the hero into the page background (--bg) over a
       short band, capped at 140px so it never reaches far into the media */
    linear-gradient(to top, var(--bg) 0, rgba(26,26,26,.75) min(5%, 44px), rgba(26,26,26,0) min(16%, 140px)),
    /* Legibility for the title and thumbs */
    linear-gradient(to top, rgba(0,0,0,.6) 0%, rgba(0,0,0,.25) 26%, rgba(0,0,0,0) 48%),
    linear-gradient(to right, rgba(0,0,0,.25), rgba(0,0,0,0) 45%);
}

.hero-copy { width: 100%; padding: 0 var(--gutter) clamp(28px, 5vh, 56px); }
.eyebrow {
  margin: 0; font-family: var(--display); font-weight: 400;
  font-size: clamp(20px, 3vw, 44px); line-height: 1.1; color: var(--muted);
}
.display {
  margin: 0; font-family: var(--display); font-weight: 700;
  font-size: clamp(58px, 9.4vw, 150px); line-height: .98; letter-spacing: -0.01em;
  color: var(--red);
}
/* Hero type (V12, gap 30px since V13): white eyebrow, a touch smaller, set ~30px above the title
   cap height. The margin cancels the fonts' built-in space below the eyebrow
   baseline and above the title caps (measured from Host Grotesk). */
.hero {
  --eb-size: clamp(18px, 2.6vw, 38px);
  --title-size: clamp(58px, 9.4vw, 150px);
}
.hero .eyebrow { font-size: var(--eb-size); color: #fff; letter-spacing: -0.01em; margin-bottom: calc(30px - .284 * var(--eb-size) - .117 * var(--title-size)); }
.hero .display { font-size: var(--title-size); letter-spacing: -0.022em; }

.thumbs { display: flex; gap: 12px; margin-top: clamp(20px, 3vh, 36px); flex-wrap: wrap; }
.thumb {
  width: clamp(76px, 8vw, 116px); aspect-ratio: 16 / 9;
  border-radius: 2px; overflow: hidden; position: relative;
  opacity: .5; transition: opacity .3s, transform .3s var(--ease);
  outline: 1px solid var(--line-strong);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
/* Phones: one even row however many slides (no lone thumb on a second row) */
@media (max-width: 520px) {
  .thumbs { flex-wrap: nowrap; gap: 8px; }
  .thumb { flex: 1 1 0; width: auto; min-width: 0; max-width: 96px; }
}
.thumb:hover { opacity: .85; }
.thumb.is-active { opacity: 1; outline: 2px solid var(--red); }
/* Progress along the bottom of the active thumb; JS sets --p from 0 to 1 */
.thumb-bar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--red); transform: scaleX(var(--p, 0)); transform-origin: left;
  opacity: 0; transition: opacity .3s;
}
.thumb.is-active .thumb-bar { opacity: 1; }
.thumb-caption {
  margin: 12px 0 0; font-size: 13px; color: var(--soft); letter-spacing: .01em; min-height: 1.4em;
}

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 12vw, 180px) 0; }
.section--tight { padding: clamp(56px, 8vw, 110px) 0; }

.h-section {
  margin: 0 0 .35em; font-family: var(--display); font-weight: 700;
  font-size: var(--h-section); line-height: 1.06; letter-spacing: -0.01em;
  color: var(--red); text-wrap: balance;
}
.h-sub {
  margin: 0; font-family: var(--display); font-weight: 300;
  font-size: clamp(20px, 2.2vw, 32px); line-height: 1.25; color: var(--soft);
}
.h-section--lead { font-size: var(--statement-size); line-height: 1.08; }
.h-sub--gap { margin-bottom: 1em; color: var(--muted); }
.back-home { margin-top: 24px; }
.back-home a { color: var(--red); }
.prose p { margin: 0 0 1.1em; color: var(--soft); font-size: clamp(16px, 1.25vw, 18px); max-width: 68ch; }
.prose p:last-child { margin-bottom: 0; }

.offset { margin-left: clamp(0px, 22vw, 380px); }
@media (max-width: 860px) { .offset { margin-left: 0; } }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 96px); }
.split--center { align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Word reveal statement */
.statement {
  margin: 0; font-family: var(--display); font-weight: 700;
  font-size: var(--statement-size); line-height: 1.08; letter-spacing: -0.01em;
}
.statement .w { color: rgba(255,255,255,.14); transition: color .5s var(--ease); }
.statement .w.on { color: var(--ink); }
.statement .w.hl.on { color: var(--red); }

/* Full-bleed-ish blocks: 90% of the screen width */
.wide { width: 75vw; margin-left: auto; margin-right: auto; }
@media (max-width: 1024px) { .wide { width: calc(100% - var(--gutter) * 2); } }

/* Figures */
.figure { margin: clamp(28px, 4vw, 56px) auto 0; }
.figure img { width: 100%; height: auto; border-radius: var(--radius); }

/* Page-specific spacing */
.process { padding-bottom: clamp(40px, 5vw, 72px); }
.tiles-section { padding: 0 0 clamp(56px, 8vw, 110px); }
.intro-copy { padding-bottom: clamp(32px, 4vw, 56px); }
.gallery-section { padding: 0 0 clamp(64px, 9vw, 130px); }

/* ---------- Responsive video embed (the Show Reel fix) ----------
   The Framer embed was a fixed 1920px-tall box with a stretching width,
   so the 16:9 video letterboxed and floated at most sizes.
   Here the frame owns the ratio; the iframe just fills it.            */
.reel-section { padding: clamp(56px, 8vw, 120px) 0; }

.video-frame {
  position: relative; width: 100%;
  aspect-ratio: 16 / 9;
  background: #000; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.8);
}
@supports not (aspect-ratio: 16 / 9) {
  .video-frame { height: 0; padding-top: 56.25%; }
}
.video-frame iframe, .video-frame > img, .video-frame > picture, .video-frame > picture img, .video-frame .yt-launch {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.video-frame > img, .video-frame > picture img { object-fit: cover; }

.yt-launch { display: grid; place-items: center; background: transparent; }
.yt-launch::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at center, rgba(0,0,0,0) 30%, rgba(0,0,0,.35) 100%);
  transition: background .3s;
}
.play {
  position: relative; width: clamp(64px, 8vw, 104px); aspect-ratio: 1; border-radius: 50%;
  background: var(--red); display: grid; place-items: center;
  box-shadow: 0 10px 40px rgba(255, 47, 1, .45);
  transition: transform .35s var(--ease), background .2s;
}
.play svg { width: 34%; margin-left: 7%; fill: #fff; }
.yt-launch:hover .play, .yt-launch:focus-visible .play { transform: scale(1.08); background: var(--red-hover); }

/* ---------- Category tiles (home) ---------- */
.tiles { display: grid; gap: clamp(20px, 3vw, 40px); max-width: 1205px; }
@media (min-width: 1025px) { .tiles { width: 75vw; max-width: none; padding: 0; } }
.tile {
  position: relative; display: grid; place-items: center; overflow: hidden;
  border-radius: 16px; aspect-ratio: 16 / 10; background: #000; isolation: isolate;
}
@media (max-width: 700px) { .tile { aspect-ratio: 4 / 3; border-radius: 12px; } }
.tile video, .tile img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  transition: transform 1.2s var(--ease);
}
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(0, 0, 0, .28); transition: background .4s; }
.tile:hover video, .tile:hover img { transform: scale(1.04); }
.tile:hover::after { background: rgba(0, 0, 0, .15); }
.tile-word {
  font-family: var(--display); font-weight: 700; color: var(--ink);
  font-size: clamp(48px, 8vw, 120px); line-height: 1; letter-spacing: -0.02em;
  text-shadow: 0 4px 30px rgba(0, 0, 0, .45);
}

/* ---------- Talking-head video (home) ---------- */
.talk-section { padding: clamp(40px, 8vw, 120px) 0; }
.talk {
  position: relative; max-width: 1205px; margin: 0 auto;
  aspect-ratio: 16 / 9; background: #000; overflow: hidden;
}
.talk video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.talk-play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.12); transition: opacity .3s; }
.talk-play:hover .play { transform: scale(1.08); }
.talk.is-playing .talk-play { opacity: 0; pointer-events: none; }

/* ---------- Quote (home): same word-reveal as the intro statement ---------- */
.quote-section {
  min-height: 80vh; display: flex; align-items: center;
  padding: clamp(80px, 12vw, 160px) 0;
}
@supports (min-height: 80svh) { .quote-section { min-height: 80svh; } }
.quote { margin: 0 auto; max-width: 1100px; text-align: center; }
.statement--center { margin: 0 auto; text-wrap: balance; }
/* Home "Limitless Possibilities." statement (V12): centered, measure capped so
   lines stay even; pretty-wrap avoids a lone last word at every width */
.statement--lead { margin: 0 auto; max-width: 22ch; text-align: center; text-wrap: pretty; }
.h-section--center { text-align: center; }
.quote-cite {
  display: block; margin-top: 1.4em; font-style: normal;
  font-size: clamp(15px, 1.4vw, 20px); color: var(--muted);
}

/* ---------- Media grids ---------- */
/* Video/avatar cards: 3 / 2 / 1 across. Flex (not grid) so a short last row
   centers instead of leaving a lone card on the left (V12). */
.grid { --cols: 3; --gap: clamp(14px, 1.6vw, 20px); display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
.grid > * { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); min-width: 0; }
@media (max-width: 1000px) { .grid { --cols: 2; } }
@media (max-width: 560px) { .grid { --cols: 1; } }

.card {
  position: relative; display: block; width: 100%; text-align: left;
  border-radius: var(--radius); overflow: hidden; background: #111;
  aspect-ratio: 16 / 9;
}
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .4s; }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,0) 50%); opacity: .9; transition: opacity .3s; }
.card:hover img { transform: scale(1.05); }
.card-label {
  position: absolute; left: 14px; right: 60px; bottom: 12px; z-index: 1;
  font-size: 14px; line-height: 1.35; color: var(--ink); font-weight: 500;
}
.card .mini-play {
  position: absolute; right: 12px; bottom: 10px; z-index: 1;
  width: 38px; height: 38px; border-radius: 50%; background: var(--red);
  display: grid; place-items: center; transition: transform .3s var(--ease);
}
.card .mini-play svg { width: 13px; margin-left: 2px; fill: #fff; }
.card:hover .mini-play { transform: scale(1.12); }

.masonry { columns: 3 320px; column-gap: clamp(14px, 1.6vw, 20px); }
.masonry .shot {
  break-inside: avoid; margin: 0 0 clamp(14px, 1.6vw, 20px); display: block; width: 100%;
  border-radius: var(--radius); overflow: hidden; position: relative; background: #111;
}
.masonry .shot img { width: 100%; height: auto; transition: transform .8s var(--ease); }
.masonry .shot:hover img { transform: scale(1.03); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center;
  padding: clamp(56px, 7vh, 80px) clamp(12px, 4vw, 72px);
  background: rgba(0, 0, 0, .94);
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox-body { display: flex; flex-direction: column; align-items: center; max-width: 100%; }
.lightbox-stage { width: min(92vw, 1400px, calc((100vh - 170px) * 16 / 9)); }
@supports (height: 100dvh) { .lightbox-stage { width: min(92vw, 1400px, calc((100dvh - 170px) * 16 / 9)); } }
.lightbox-stage.is-image { width: auto; max-width: 92vw; }
.lightbox-stage img { max-width: 100%; max-height: calc(100vh - 160px); width: auto; height: auto; margin: 0 auto; border-radius: var(--radius); }
.lightbox-caption { margin: 14px 0 0; color: var(--soft); font-size: 14px; text-align: center; }
.lb-btn {
  position: absolute; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255,255,255,.08); color: var(--ink);
  transition: background .2s;
}
.lb-btn:hover { background: var(--red); }
.lb-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 700px) {
  .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
}

/* ---------- About ---------- */
.kicker { display: inline-block; margin-bottom: 18px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }

/* ---------- Contact ---------- */
.contact-hero { padding: calc(var(--header-h) + clamp(60px, 10vw, 140px)) 0 clamp(60px, 8vw, 120px); }
.contact-list { list-style: none; margin: clamp(32px, 5vw, 64px) 0 0; padding: 0; border-top: 1px solid var(--line-strong); }
.contact-list li { border-bottom: 1px solid var(--line-strong); }
.contact-list a, .contact-list .row {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: clamp(20px, 2.6vw, 32px) 0;
  font-family: var(--display); font-size: clamp(22px, 3.4vw, 48px); font-weight: 700; line-height: 1.1;
  overflow-wrap: anywhere;
}
.contact-list .label { font-family: var(--body); font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); flex: 0 0 auto; }
.contact-list a { transition: color .2s, padding .3s var(--ease); }
.contact-list a:hover { color: var(--red); padding-left: 10px; }
.contact-list .contact-email { padding: 0; text-align: right; }
.contact-list .contact-email:hover { padding-left: 0; }
.copy-btn {
  font-family: var(--body); font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 100px; color: var(--soft); flex: 0 0 auto;
}
.copy-btn:hover { border-color: var(--red); color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-deep); text-align: center; overflow: hidden;
  padding: clamp(56px, 7vw, 96px) 0 clamp(24px, 3vw, 36px);
}
.foot-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px clamp(20px, 3.2vw, 48px); }
.foot-nav a { color: var(--red); font-size: 14px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; transition: color .2s; }
.foot-nav a:hover { color: var(--ink); }
.foot-legal { margin: clamp(20px, 3vw, 36px) 0 0; color: var(--dim); font-size: 13px; }
.wordmark {
  margin: clamp(12px, 2vw, 28px) 0 0;
  pointer-events: none; /* V02: the giant letters' text box reached up over the footer links and blocked clicks */
  font-weight: 700; color: var(--red);
  font-size: clamp(72px, 19vw, 300px); line-height: .9; letter-spacing: -0.03em;
  white-space: nowrap; user-select: none;
  background: linear-gradient(180deg, var(--red-deep) 0%, var(--red) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.on { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .statement .w { opacity: 1 !important; transform: none !important; transition: none !important; }
  .statement .w { color: var(--ink); }
}

/* Intro panel (Videos, Images, Avatars): one bordered box, red top rule,
   headline beside the copy; stacks on tablets and phones. */
.intro-panel {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 7fr);
  column-gap: clamp(32px, 5vw, 80px); align-items: start;
  padding: clamp(28px, 5vw, 72px);
  border: 1px solid var(--line-strong); border-top: 3px solid var(--red);
  border-radius: var(--radius); background: rgba(255, 255, 255, 0.025);
}
.intro-panel .h-section { margin: 0; text-wrap: balance; font-size: clamp(40px, 4.4vw, 68px); }
@media (min-width: 861px) {
  .intro-panel--lines .hl-line { display: block; white-space: nowrap; } /* Images + Avatars: one phrase per line */
}
.intro-panel .prose { padding-top: .4em; }
@media (max-width: 860px) {
  .intro-panel { grid-template-columns: 1fr; row-gap: 24px; }
  .intro-panel .prose { padding-top: 0; }
}
@media (max-width: 520px) {
  .intro-panel .h-section { font-size: clamp(28px, 8.4vw, 40px); }
}

/* About page: two bordered panels, photo filling one half, text the other. */
.about-stack { display: flex; flex-direction: column; gap: clamp(24px, 3vw, 40px); }
.about-panel {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden;
  border: 1px solid var(--line-strong); border-top: 3px solid var(--red);
  border-radius: var(--radius); background: rgba(255, 255, 255, 0.025);
}
.about-panel--flip .about-photo { order: 2; }
.about-photo { min-height: 100%; }
.about-photo img, .about-photo video { display: block; width: 100%; height: 100%; object-fit: cover; }
.about-photo--studio img { object-position: right bottom; } /* keeps the copyright stamp in frame */
.about-text { display: flex; flex-direction: column; justify-content: center; padding: clamp(28px, 4vw, 64px); }
.about-h { margin-top: 0; font-size: min(56px, 3.9vw); }
.about-h--one-line { white-space: nowrap; }
@media (max-width: 860px) {
  .about-panel { grid-template-columns: 1fr; }
  .about-panel--flip .about-photo { order: 0; }
  .about-photo { aspect-ratio: 16 / 9; min-height: 0; }
  .about-h { font-size: clamp(26px, 7.4vw, 56px); }
}

/* ==========================================================================
   KeelerStudio additions (Version 01)
   Every text box uses the About panel style: red top rule, faint lift.
   ========================================================================== */
:root { --panel-fill: rgba(255, 255, 255, 0.025); }

/* Hero eyebrow: two roles on one line; on phones each role gets its own line */
@media (max-width: 600px) {
  .eb-sep { display: none; }
  .eb-line { display: block; }
}

/* Placeholder: marks media still to come, so gaps are obvious in review */
.ph {
  display: grid; place-items: center; text-align: center; padding: 20px;
  aspect-ratio: 16 / 9; width: 100%;
  border: 1px dashed rgba(255, 255, 255, .28); border-radius: var(--radius);
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 14px, rgba(255,255,255,0) 14px 28px), #141414;
  color: var(--muted); font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
}
.ph strong { display: block; color: var(--red); font-weight: 500; margin-bottom: 6px; }
.slide .ph { position: absolute; inset: 0; aspect-ratio: auto; border: 0; border-radius: 0; align-content: start; padding-top: calc(var(--header-h) + 40px); }
.masonry .ph { break-inside: avoid; margin: 0 0 clamp(14px, 1.6vw, 20px); }

/* Panel headline extras */
.intro-panel .kicker, .about-text .kicker { display: block; margin-bottom: 14px; }
.intro-panel .prose p + p { margin-top: 0; }
.lead { color: var(--ink) !important; font-weight: 500; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 8px;
  padding: 12px 22px; border: 1px solid var(--red); border-radius: 100px;
  color: var(--ink); font-size: 14px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--red); color: #fff; }
.btn-row { margin-top: clamp(28px, 4vw, 48px); }
.center { text-align: center; }

/* Case studies (V04 layout #4): facts bar, then one box per section, images full width inside */
.facts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line-strong); border-top: 3px solid var(--red);
  border-radius: var(--radius); background: var(--panel-fill);
}
.facts > div { padding: clamp(18px, 2vw, 28px) clamp(18px, 2vw, 30px); border-right: 1px solid var(--line); }
.facts > div:last-child { border-right: 0; }
.fact-l { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.fact-v { display: block; margin-top: 6px; font-family: var(--display); font-weight: 700; font-size: clamp(17px, 1.4vw, 21px); line-height: 1.25; }
@media (max-width: 860px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts > div:nth-child(2) { border-right: 0; }
  .facts > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
.case-box {
  padding: clamp(28px, 4vw, 64px);
  border: 1px solid var(--line-strong); border-top: 3px solid var(--red);
  border-radius: var(--radius); background: var(--panel-fill);
}
.case-top { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 7fr); column-gap: clamp(32px, 5vw, 80px); align-items: start; }
.case-top .h-section { margin: 0; font-size: clamp(34px, 3.6vw, 56px); }
.case-top .prose { padding-top: .4em; }
@media (max-width: 860px) { .case-top { grid-template-columns: 1fr; row-gap: 20px; } .case-top .prose { padding-top: 0; } }
.case-imgs { display: flex; flex-direction: column; gap: clamp(16px, 2vw, 28px); margin-top: clamp(28px, 3.4vw, 48px); }
.case-img { display: block; overflow: hidden; border-radius: 6px; outline: 1px solid var(--line); background: #111; cursor: zoom-in; }
.case-img img { width: 100%; height: auto; transition: transform .9s var(--ease); }
.case-img:hover img { transform: scale(1.015); }
.case-stats { margin-top: clamp(28px, 3.4vw, 48px); }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr; } }
.stat {
  padding: clamp(24px, 3vw, 44px);
  border: 1px solid var(--line-strong); border-top: 3px solid var(--red);
  border-radius: var(--radius); background: rgba(255,255,255,.02);
}
.stat-num { display: block; font-family: var(--display); font-weight: 700; color: var(--red); font-size: clamp(44px, 5vw, 76px); line-height: 1; letter-spacing: -0.02em; }
.stat-label { display: block; margin-top: 12px; color: var(--soft); }

.case-nav { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line-strong); padding-top: clamp(24px, 3vw, 40px); }
.case-nav a { display: flex; flex-direction: column; gap: 6px; }
.case-nav a:last-child { text-align: right; margin-left: auto; }
.case-nav .label { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.case-nav .title { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 3vw, 44px); color: var(--red); line-height: 1.1; transition: color .2s; }
.case-nav a:hover .title { color: var(--ink); }

/* About: portrait photos keep faces in frame */
.about-photo img { object-position: center top; }
.about-h { text-wrap: balance; }

/* Work page: talking-head avatar video sits inside the wrap */
.talk { width: 100%; border-radius: var(--radius); }
/* Phones: footer menu wraps evenly */
@media (max-width: 520px) { .foot-nav { max-width: 270px; margin: 0 auto; gap: 10px 16px; } } /* wraps 3 + 2, no lone item */

/* ==========================================================================
   Version 02
   ========================================================================== */

/* Plain statements (Home): solid white, no word reveal */
.statement-plain {
  margin: 0 auto; max-width: 22ch; text-align: center; text-wrap: balance;
  font-family: var(--display); font-weight: 700; color: var(--ink);
  font-size: var(--statement-size); line-height: 1.08; letter-spacing: -0.01em;
}
.quote .statement-plain { max-width: none; }

/* Home: case study panels stack as you scroll; each one slides up over the last */
.stack { padding: clamp(24px, 4vw, 56px) 0 clamp(64px, 8vw, 120px); }
.stack-card {
  position: sticky; top: calc(var(--header-h) + 3vh);
  display: block; margin: 0 auto;
  width: min(71vw, calc((100vh - var(--header-h) - 8vh) * 1920 / 1254));
  aspect-ratio: 1920 / 1254; border-radius: 12px; overflow: hidden; background: #000;
  box-shadow: 0 -24px 60px -12px rgba(0, 0, 0, .75);
}
@supports (height: 100svh) {
  .stack-card { width: min(71vw, calc((100svh - var(--header-h) - 8vh) * 1920 / 1254)); }
}
.stack-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.stack-card--contain img { object-fit: contain; }
.stack-card:hover img { transform: scale(1.025); }
.stack-rule {
  width: min(71vw, 1100px); height: 22px; margin: clamp(28px, 4vh, 48px) auto;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.35) 0 1px, transparent 1px 100px) bottom / 100% 14px no-repeat,
    repeating-linear-gradient(90deg, rgba(255,255,255,.16) 0 1px, transparent 1px 10px) bottom / 100% 6px no-repeat;
}
@media (max-width: 860px) {
  .stack-card { width: calc(100% - var(--gutter) * 2); top: calc(var(--header-h) + 16px); }
  .stack-rule { width: calc(100% - var(--gutter) * 2); }
}

/* Home: Recommendations. One quote at a time, names as tabs with a progress bar */
.recs2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: clamp(20px, 3vw, 40px); align-items: stretch; }
.recs2-stage {
  display: grid; position: relative;
  padding: clamp(28px, 4vw, 64px);
  border: 1px solid var(--line-strong); border-top: 3px solid var(--red);
  border-radius: var(--radius); background: var(--panel-fill);
}
.recs2-mark { position: absolute; top: clamp(18px, 2.4vw, 34px); left: clamp(28px, 4vw, 64px); width: clamp(36px, 3.4vw, 52px); fill: var(--red); }
.rec2 {
  grid-area: 1 / 1; margin: 0; padding-top: clamp(44px, 4.4vw, 68px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .6s var(--ease), transform .6s var(--ease), visibility .6s;
}
.rec2.is-active { opacity: 1; visibility: visible; transform: none; }
.rec2 blockquote { margin: 0; }
.rec2 blockquote p {
  margin: 0; font-family: var(--display); font-weight: 400; color: var(--ink);
  font-size: clamp(18px, 1.55vw, 25px); line-height: 1.45; text-wrap: pretty;
}
.rec2 figcaption { display: flex; flex-direction: column; gap: 2px; }
.recs2-tabs { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.recs2-tab {
  position: relative; overflow: hidden; width: 100%; text-align: left;
  padding: 16px 18px; border-radius: var(--radius);
  border: 1px solid var(--line); background: rgba(255,255,255,.015);
  transition: border-color .25s, background .25s;
}
.recs2-tab:hover { border-color: var(--line-strong); }
.recs2-tab.is-active { border-color: var(--line-strong); background: rgba(255,255,255,.05); }
.recs2-tab .t-name { display: block; font-family: var(--display); font-weight: 700; font-size: 17px; color: var(--soft); }
.recs2-tab.is-active .t-name { color: var(--ink); }
.recs2-tab .t-org { display: block; margin-top: 2px; font-size: 13px; color: var(--dim); }
.recs2-tab .thumb-bar { opacity: 0; }
.recs2-tab.is-active .thumb-bar { opacity: 1; }
@media (max-width: 960px) {
  .recs2 { grid-template-columns: 1fr; }
  .recs2-tabs { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 2px; }
  .recs2-tabs::-webkit-scrollbar { display: none; }
  .recs2-tabs li { flex: 0 0 auto; scroll-snap-align: start; }
  .recs2-tab { width: auto; white-space: nowrap; padding: 12px 16px; }
}

/* Work: plain section intro (AI Gallery, Films, Avatars), as on the Wix page */
.plain-intro { max-width: 900px; }
.plain-intro .kicker { display: block; }
.plain-intro .h-title { margin: 0 0 .25em; font-family: var(--display); font-weight: 700; color: var(--ink); font-size: clamp(44px, 6vw, 96px); line-height: 1; letter-spacing: -0.02em; }
.plain-intro .h-sub { margin-bottom: .8em; }
.plain-intro .prose p { max-width: 70ch; }

/* ==========================================================================
   Version 03
   ========================================================================== */

/* Work: Case Studies panel holds the three case study cards */
.cs-panel {
  padding: clamp(28px, 5vw, 72px);
  border: 1px solid var(--line-strong); border-top: 3px solid var(--red);
  border-radius: var(--radius); background: var(--panel-fill);
}
.cs-head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 7fr); column-gap: clamp(32px, 5vw, 80px); align-items: start; }
.cs-head .h-section { margin: 0; font-size: clamp(40px, 4.4vw, 68px); }
.cs-head .prose { padding-top: .4em; }
.cs-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px);
  margin-top: clamp(32px, 4vw, 56px); padding-top: clamp(32px, 4vw, 56px); border-top: 1px solid var(--line-strong);
}
.cs-item { display: flex; flex-direction: column; gap: 16px; }
.cs-media { display: block; position: relative; overflow: hidden; border-radius: 8px; background: #000; aspect-ratio: 1920 / 1254; outline: 1px solid var(--line); transition: outline-color .3s; }
.cs-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.cs-item:hover .cs-media img { transform: scale(1.05); }
.cs-item:hover .cs-media { outline-color: rgba(255, 47, 1, .6); }
.cs-meta { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 14px; padding-bottom: 14px; position: relative; }
.cs-meta::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line-strong); }
.cs-meta::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; z-index: 1; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.cs-item:hover .cs-meta::before, .cs-item:focus-visible .cs-meta::before { transform: scaleX(1); }
.cs-num { font-family: var(--display); font-weight: 700; color: var(--red); font-size: 15px; letter-spacing: .04em; }
.cs-name { font-family: var(--display); font-weight: 700; font-size: clamp(20px, 1.7vw, 26px); color: var(--ink); line-height: 1.1; }
.cs-kind { display: block; font-family: var(--body); font-weight: 400; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.cs-arrow { width: 22px; height: 22px; stroke: var(--soft); fill: none; stroke-width: 2; transition: transform .35s var(--ease), stroke .2s; }
.cs-item:hover .cs-arrow { transform: translateX(5px); stroke: var(--red); }
@media (max-width: 860px) {
  .cs-head { grid-template-columns: 1fr; row-gap: 24px; }
  .cs-head .prose { padding-top: 0; }
  .cs-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .cs-head .h-section { font-size: clamp(28px, 8.4vw, 40px); } }

/* Case studies (V04 layout #4): facts bar, then one box per section, images full width inside */
.facts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line-strong); border-top: 3px solid var(--red);
  border-radius: var(--radius); background: var(--panel-fill);
}
.facts > div { padding: clamp(18px, 2vw, 28px) clamp(18px, 2vw, 30px); border-right: 1px solid var(--line); }
.facts > div:last-child { border-right: 0; }
.fact-l { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.fact-v { display: block; margin-top: 6px; font-family: var(--display); font-weight: 700; font-size: clamp(17px, 1.4vw, 21px); line-height: 1.25; }
@media (max-width: 860px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts > div:nth-child(2) { border-right: 0; }
  .facts > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
.case-box {
  padding: clamp(28px, 4vw, 64px);
  border: 1px solid var(--line-strong); border-top: 3px solid var(--red);
  border-radius: var(--radius); background: var(--panel-fill);
}
.case-top { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 7fr); column-gap: clamp(32px, 5vw, 80px); align-items: start; }
.case-top .h-section { margin: 0; font-size: clamp(34px, 3.6vw, 56px); }
.case-top .prose { padding-top: .4em; }
@media (max-width: 860px) { .case-top { grid-template-columns: 1fr; row-gap: 20px; } .case-top .prose { padding-top: 0; } }
.case-imgs { display: flex; flex-direction: column; gap: clamp(16px, 2vw, 28px); margin-top: clamp(28px, 3.4vw, 48px); }
.case-img { display: block; overflow: hidden; border-radius: 6px; outline: 1px solid var(--line); background: #111; cursor: zoom-in; }
.case-img img { width: 100%; height: auto; transition: transform .9s var(--ease); }
.case-img:hover img { transform: scale(1.015); }
.case-stats { margin-top: clamp(28px, 3.4vw, 48px); }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr; } }
.stat {
  padding: clamp(24px, 3vw, 44px);
  border: 1px solid var(--line-strong); border-top: 3px solid var(--red);
  border-radius: var(--radius); background: rgba(255,255,255,.02);
}
.stat-num { display: block; font-family: var(--display); font-weight: 700; color: var(--red); font-size: clamp(44px, 5vw, 76px); line-height: 1; letter-spacing: -0.02em; }
.stat-label { display: block; margin-top: 12px; color: var(--soft); }

.case-nav { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line-strong); padding-top: clamp(24px, 3vw, 40px); }
.case-nav a { display: flex; flex-direction: column; gap: 6px; }
.case-nav a:last-child { text-align: right; margin-left: auto; }
.case-nav .label { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.case-nav .title { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 3vw, 44px); color: var(--red); line-height: 1.1; transition: color .2s; }
.case-nav a:hover .title { color: var(--ink); }

/* About: portrait photos keep faces in frame */
.about-photo img { object-position: center top; }
.about-h { text-wrap: balance; }

/* Work page: talking-head avatar video sits inside the wrap */
.talk { width: 100%; border-radius: var(--radius); }
/* Phones: footer menu wraps evenly */
@media (max-width: 520px) { .foot-nav { max-width: 270px; margin: 0 auto; gap: 10px 16px; } } /* wraps 3 + 2, no lone item */

/* ==========================================================================
   Version 05
   ========================================================================== */

/* Work: UI/UX gallery. Screens in a laptop; tabs pick the project, thumbnails pick the screen */
.dg { display: grid; grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.dg-tabs { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.dg-tab {
  width: 100%; text-align: left; padding: 16px 18px; border-radius: var(--radius);
  border: 1px solid var(--line); border-left: 3px solid transparent; background: rgba(255,255,255,.015);
  font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--muted);
  transition: color .2s, border-color .2s, background .2s;
}
.dg-tab small { display: block; margin-top: 2px; font-family: var(--body); font-weight: 400; font-size: 13px; color: var(--dim); }
.dg-tab:hover { color: var(--soft); border-color: var(--line-strong); }
.dg-tab.is-active { color: var(--ink); border-color: var(--line-strong); border-left-color: var(--red); background: rgba(255,255,255,.05); }
.dg-stage { min-width: 0; }
.laptop { max-width: 1040px; margin: 0 auto; padding: 0 6%; } /* side padding leaves room for the wider base */
.laptop-screen {
  display: block; position: relative; aspect-ratio: 16 / 9; overflow: hidden; cursor: zoom-in;
  border: clamp(8px, 1vw, 14px) solid #232323; border-bottom-width: clamp(12px, 1.3vw, 18px);
  border-radius: 16px 16px 4px 4px; background: #0b0b0b;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 40px 90px -30px rgba(0,0,0,.9);
}
.laptop-screen img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s; }
.laptop-screen.is-swapping img { opacity: 0; }
.laptop-screen .ph { position: absolute; inset: 0; aspect-ratio: auto; border: 0; border-radius: 0; }
.laptop-base { height: clamp(10px, 1.2vw, 16px); margin: 0 -7%; border-radius: 0 0 18px 18px; background: linear-gradient(#3b3b3b, #161616); position: relative; }
.laptop-base::before { content: ""; position: absolute; left: 50%; top: 0; width: 14%; height: 45%; transform: translateX(-50%); border-radius: 0 0 8px 8px; background: #0f0f0f; }
.dg-cap { margin: 22px 0 0; text-align: center; color: var(--muted); font-size: 14px; min-height: 1.4em; }
.dg-thumbs { margin-top: 16px; }
.dg-pane { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.dg-pane[hidden] { display: none; }
.dg-thumb { width: clamp(84px, 8vw, 116px); aspect-ratio: 16 / 9; border-radius: 3px; overflow: hidden; opacity: .5; outline: 1px solid var(--line-strong); transition: opacity .2s; }
.dg-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dg-thumb .ph { height: 100%; aspect-ratio: auto; padding: 0; border: 0; border-radius: 0; font-size: 10px; }
.dg-thumb:hover { opacity: .85; }
.dg-thumb.is-active { opacity: 1; outline: 2px solid var(--red); }
@media (max-width: 960px) {
  .dg { grid-template-columns: 1fr; }
  .dg-tabs { flex-direction: row; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .dg-tabs::-webkit-scrollbar { display: none; }
  .dg-tabs li { flex: 0 0 auto; }
  .dg-tab { white-space: nowrap; padding: 12px 16px; font-size: 17px; }
}

/* Work: Avatars and Films, streaming style. Featured player on top, cards below load into it */
.sc-feature {
  position: relative; aspect-ratio: 16 / 9; max-height: 78vh; width: 100%; overflow: hidden;
  border-radius: 10px; background: #000; outline: 1px solid var(--line);
}
.sc-feature .sc-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .4s; }
.sc-feature::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(0,0,0,.82), rgba(0,0,0,.15) 55%, rgba(0,0,0,0)), linear-gradient(to top, rgba(0,0,0,.6), rgba(0,0,0,0) 45%); }
.sc-info { position: absolute; left: clamp(22px, 4vw, 56px); bottom: clamp(22px, 4vw, 56px); z-index: 2; max-width: 560px; }
.sc-kicker { display: block; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.sc-h { margin: 8px 0 18px; font-family: var(--display); font-weight: 700; font-size: clamp(30px, 4.2vw, 64px); line-height: 1; letter-spacing: -0.02em; color: #fff; }
.sc-go { display: inline-flex; align-items: center; gap: 10px; padding: 13px 24px 13px 18px; border-radius: 100px; background: var(--red); color: #fff; font-weight: 600; font-size: 15px; transition: transform .2s; }
.sc-go:hover { transform: scale(1.04); }
.sc-go-icon svg { width: 16px; height: 16px; fill: currentColor; display: block; }
.sc-feature.is-playing::after, .sc-feature.is-playing .sc-info, .sc-feature.is-playing .sc-poster { display: none; }
.sc-feature iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; }
.sc-row { display: flex; gap: clamp(14px, 1.6vw, 24px); margin-top: clamp(18px, 2vw, 28px); overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.sc-row::-webkit-scrollbar { display: none; }
.sc-card { flex: 0 0 calc((100% - 2 * clamp(14px, 1.6vw, 24px)) / 3); min-width: 220px; text-align: left; color: inherit; }
.sc-card.is-vertical { flex-basis: auto; min-width: 0; }
.sc-thumb { display: block; position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #111; outline: 1px solid var(--line); transition: outline-color .2s; }
.sc-card.is-vertical .sc-thumb { aspect-ratio: 9 / 16; height: calc(((min(100vw, var(--max)) - 2 * var(--gutter)) - 2 * clamp(14px, 1.6vw, 24px)) / 3 * 9 / 16); }
.sc-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.sc-thumb .ph { height: 100%; aspect-ratio: auto; border: 0; border-radius: 0; font-size: 11px; padding: 10px; }
.sc-play { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.55); opacity: 0; transition: opacity .25s, background .2s; }
.sc-play svg { width: 18px; height: 18px; fill: #fff; margin-left: 3px; }
.sc-card:hover .sc-play, .sc-card:focus-visible .sc-play { opacity: 1; background: var(--red); }
.sc-card:hover .sc-thumb img { transform: scale(1.04); }
.sc-card.is-active .sc-thumb { outline: 2px solid var(--red); }
.sc-title { display: block; margin-top: 10px; font-family: var(--display); font-weight: 700; font-size: 17px; color: var(--ink); }
.sc-label { display: block; margin-top: 2px; font-size: 13px; color: var(--dim); }
@media (max-width: 700px) { .sc-card { flex-basis: 72vw; } .sc-card.is-vertical .sc-thumb { height: calc(72vw * 9 / 16); } .sc-info .sc-h { margin-bottom: 12px; } }

/* Work: AI Gallery. Center-focus slider; neighbours peek in dimmed */
.cf { --w2: min(960px, 72vw); --w1: min(300px, 20vw); --gap: clamp(14px, 1.8vw, 28px); outline: none; }
.cf-viewport { overflow: hidden; padding: 4px 0; }
.cf-track {
  display: flex; align-items: center; gap: var(--gap); width: max-content;
  transform: translateX(calc(50vw - var(--i) * (var(--w1) + var(--gap)) - var(--w2) / 2));
  transition: transform .7s var(--ease);
}
.cf-slide {
  flex: 0 0 auto; width: var(--w1); height: calc(var(--w2) * 9 / 16 * .74);
  border-radius: 10px; overflow: hidden; opacity: .35; filter: grayscale(.35); cursor: pointer;
  transition: width .7s var(--ease), height .7s var(--ease), opacity .5s, filter .5s;
}
.cf-slide img { width: 100%; height: 100%; object-fit: cover; }
.cf-slide.is-active { width: var(--w2); height: calc(var(--w2) * 9 / 16); opacity: 1; filter: none; cursor: zoom-in; box-shadow: 0 40px 90px -30px rgba(0,0,0,.9); }
.cf-slide:not(.is-active):hover { opacity: .6; }
.cf-bar { display: grid; grid-template-columns: 1fr auto auto; gap: 24px; align-items: center; margin-top: 24px; max-width: calc(var(--w2) + 2 * var(--gutter)); }
.cf-title { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(20px, 1.8vw, 28px); color: var(--ink); }
.cf-count { margin: 2px 0 0; font-size: 13px; letter-spacing: .1em; color: var(--dim); }
.cf-now { color: var(--red); }
.cf-dots { display: flex; gap: 6px; }
.cf-dot { width: 22px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.22); transition: background .2s, width .3s; }
.cf-dot.is-active { width: 34px; background: var(--red); }
.cf-nav { display: flex; gap: 10px; }
.cf-btn { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); color: var(--ink); transition: background .2s, border-color .2s; }
.cf-btn:hover { background: var(--red); border-color: var(--red); }
.cf-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; }
@media (max-width: 860px) {
  .cf { --w2: 84vw; --w1: 14vw; }
  .cf-bar { grid-template-columns: 1fr auto; }
  .cf-dots { display: none; }
}
.ph[hidden], img[hidden] { display: none !important; }
.sc-card.is-active .sc-thumb::after {
  content: "Now showing"; position: absolute; left: 10px; top: 10px; padding: 4px 9px; border-radius: 100px;
  background: var(--red); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.sc-card.is-active .sc-play { display: none; }

/* ==========================================================================
   Version 06
   ========================================================================== */
.panel-divided { margin-top: clamp(32px, 4vw, 56px); padding-top: clamp(32px, 4vw, 56px); border-top: 1px solid var(--line-strong); }
.cs-panel .dg { grid-template-columns: minmax(200px, 250px) minmax(0, 1fr); }
@media (max-width: 960px) { .cs-panel .dg { grid-template-columns: 1fr; } }

/* Films + Avatars together (concept #7) */
.plain-intro .prose:empty { display: none; }
.sc-intros { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px); margin: clamp(20px, 2.4vw, 32px) 0 clamp(32px, 4vw, 56px); }
.sc-introh { margin: 0 0 12px; font-family: var(--display); font-weight: 700; color: var(--ink); font-size: clamp(24px, 2.2vw, 34px); line-height: 1.1; scroll-margin-top: 120px; }
.sc-intros .prose p { color: var(--soft); }
@media (max-width: 860px) { .sc-intros { grid-template-columns: 1fr; } }
.sc-rowh { margin: clamp(32px, 3.4vw, 48px) 0 0; font-family: var(--display); font-weight: 700; font-size: clamp(20px, 1.7vw, 26px); color: var(--ink); }
.sc-rowh + .sc-row { margin-top: 14px; }

/* ==========================================================================
   Version 07
   ========================================================================== */
/* Films + Avatars: thumbnails at half size (six across) */
.sc-card { flex-basis: calc((100% - 5 * clamp(14px, 1.6vw, 24px)) / 6); min-width: 150px; }
.sc-card.is-vertical .sc-thumb { height: calc(((min(100vw, var(--max)) - 2 * var(--gutter)) - 5 * clamp(14px, 1.6vw, 24px)) / 6 * 9 / 16); min-height: 84px; }
.sc-title { font-size: 15px; }
.sc-play { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
.sc-card.is-active .sc-thumb::after { left: 6px; top: 6px; padding: 3px 7px; font-size: 9.5px; }
.sc-thumb .ph { font-size: 9.5px; padding: 6px; }
@media (max-width: 700px) {
  .sc-card { flex-basis: 40vw; min-width: 0; }
  .sc-card.is-vertical .sc-thumb { height: calc(40vw * 9 / 16); }
}

/* Large quotes: wider measure, white text (words still light up as they arrive) */
.quote { max-width: min(1500px, 100%); }
.quote .statement--center { text-wrap: pretty; } /* fill the wider measure; pretty still avoids a lone last word */
.quote .statement .w { color: rgba(255, 255, 255, .32); }
.quote .statement .w.on, .quote .quote-cite { color: var(--ink); }

/* ==========================================================================
   Version 08: About intro (facts bar + statement with photo pills + balanced My Story)
   ========================================================================== */
.facts--about .fact-v { font-size: clamp(18px, 1.6vw, 24px); color: var(--ink); }
.fact-l2 { display: block; margin-top: 4px; font-size: 13px; color: var(--dim); }
.about-intro { padding: clamp(56px, 7vw, 110px) 0 clamp(8px, 2vw, 24px); }
.about-statement {
  margin: 0; max-width: 22ch; font-family: var(--display); font-weight: 700; color: var(--ink);
  font-size: clamp(40px, 5.6vw, 92px); line-height: 1.06; letter-spacing: -0.02em; text-wrap: balance;
}
.about-statement .red { color: var(--red); }
.about-statement .pill {
  display: inline-block; width: 1.6em; height: .86em; margin: 0 .04em 0 .22em; vertical-align: -.1em;
  object-fit: cover; object-position: center 25%; border-radius: 100px; outline: 1px solid rgba(255,255,255,.15);
}
.about-story { margin-top: clamp(40px, 5vw, 72px); padding-top: clamp(28px, 3vw, 44px); border-top: 1px solid var(--line-strong); }
.about-story .kicker { display: block; margin-bottom: 18px; }
.about-story .prose { columns: 2 320px; column-gap: clamp(32px, 5vw, 80px); }
.about-story .prose p { margin: 0; max-width: none; }
.section.about { padding-top: clamp(20px, 2.4vw, 36px); } /* facts bar sits right under the hero */

/* ==========================================================================
   Version 09: full-width facts bar, text-only About headline
   ========================================================================== */
.facts--full {
  width: 100%; border-radius: 0; border-left: 0; border-right: 0;
  padding: 0 max(0px, calc((100% - var(--max)) / 2 - var(--gutter))); /* bar spans the page; first label lines up with the page content */
}
.facts--full > div { padding-left: var(--gutter); padding-right: var(--gutter); }
.about-statement { max-width: 18ch; }

/* ==========================================================================
   Version 10: quote-style home statements, new panel art
   ========================================================================== */
.quote-section--compact { min-height: 0; padding: clamp(72px, 9vw, 140px) 0; }
@supports (min-height: 80svh) { .quote-section--compact { min-height: 0; } }
.quote-section--compact .wrap { width: 100%; }
.quote-kicker { margin: 0 auto clamp(20px, 2.4vw, 36px); font-size: clamp(15px, 1.3vw, 19px); letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.quote-sub { margin: clamp(24px, 3vw, 40px) auto 0; max-width: 46ch; text-align: center; font-size: clamp(17px, 1.5vw, 22px); line-height: 1.5; color: var(--dim); }
/* New panel art is 2369 x 1537 on a #1f1f1f field: show it whole */
.stack-card { aspect-ratio: 2369 / 1537; background: #1f1f1f; width: min(71vw, calc((100vh - var(--header-h) - 8vh) * 2369 / 1537)); }
@supports (height: 100svh) { .stack-card { width: min(71vw, calc((100svh - var(--header-h) - 8vh) * 2369 / 1537)); } }
@media (max-width: 860px) { .stack-card { width: calc(100% - var(--gutter) * 2); } }
.stack-card img { object-fit: contain; }
.cs-media { aspect-ratio: 2369 / 1537; background: #1f1f1f; }

/* Version 11: case study section headers in white */
.case-page .h-section { color: var(--ink); }

/* Version 12: home cards share the page colour; wider closing statements on case studies */
.stack-card, .cs-media { background: var(--bg); }
.case-page .statement--lead { max-width: min(1500px, 100%); }

/* ==========================================================================
   Version 13: intro heading in the quote type; case study heroes show the whole 16:9 frame
   ========================================================================== */
.quote .quote-head { margin: 0 auto .5em; }
/* (V21) Case study heroes fill the banner again, same as Work; the V13 whole-frame rules were removed */
#limitless-possibilities-with-ai { scroll-margin-top: calc(var(--header-h) + 40px); }

/* ==========================================================================
   Version 14: per-slide framing on hero sliders
   ========================================================================== */
.slide--fit { background: var(--bg); }
.hero .slide--fit img, .hero .slide--fit video { object-fit: contain; object-position: center center; }
.hero .slide--mid img, .hero .slide--mid video { object-position: center center; }
/* Ken Burns on a single slide: settles from 1.08 to the whole frame each time it comes up */
.slide--kb img { transform-origin: 50% 50%; --kb-x: 1.2%; --kb-y: -0.8%; }
.slide--kb.is-active img { animation: kenburns 6s cubic-bezier(.3, .1, .3, 1) both; }
@media (prefers-reduced-motion: reduce) { .slide--kb.is-active img { animation: none; } }

/* ==========================================================================
   Version 17: Work page rhythm
   ========================================================================== */
/* AI Films to AI Gallery: tighter, still scales down on tablets and phones */
#ai-gallery { padding-top: clamp(24px, 3vw, 56px); padding-bottom: 0; }
/* "Limitless Possibilities with AI" on one line wherever it fits (wraps on phones) */
#films-avatars .plain-intro { max-width: none; }
@media (min-width: 640px) { #limitless-possibilities-with-ai { white-space: nowrap; } }
/* Closing line: equal space above and below */
.end-quote { padding: clamp(72px, 10vw, 170px) 0; }
.end-quote .h-section { margin: 0; }
/* Measured: the slider's counter row adds ~40px above the line, so shift 20px from top to bottom */
.end-quote { padding-top: calc(clamp(72px, 10vw, 170px) - 20px); padding-bottom: calc(clamp(72px, 10vw, 170px) + 20px); }

/* ==========================================================================
   Version 19
   ========================================================================== */
/* Whole-frame slides sit below the fixed header, so the top of the clip is never hidden */
.hero--short .slide--fit { top: var(--header-h); }
/* Very slow Ken Burns for a video slide: a gentle push-in across the clip */
.slide--kbslow video { transform-origin: 50% 40%; }
.slide--kbslow.is-active video { animation: kbslow 9s linear both; }
@keyframes kbslow { from { transform: scale(1); } to { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .slide--kbslow.is-active video { animation: none; } }
/* Closing line: words fade up and sharpen one after another as it comes into view */
.fade-words .fw { display: inline-block; opacity: 0; transform: translateY(.35em); filter: blur(8px);
  transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); transition-delay: calc(var(--i) * 90ms); }
.fade-words.in .fw { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) { .fade-words .fw { opacity: 1; transform: none; filter: none; transition: none; } }

/* Version 20: About quote uses the fade-up words; the name follows once the line has landed */
.quote-cite--fade { opacity: 0; transition: opacity .9s var(--ease) 1.2s; }
.quote:has(.fade-words.in) .quote-cite--fade { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .quote-cite--fade { opacity: 1; transition: none; } }

/* ==========================================================================
   Version 21: touch targets (44px rows on phones and tablets, visuals unchanged)
   ========================================================================== */
.foot-nav a { display: inline-block; padding: 11px 2px; }
.foot-nav { row-gap: 0; }
@media (max-width: 520px) { .foot-nav { row-gap: 0; } }
.rec-name a { display: inline-block; padding: 12px 0; margin: -12px 0; }
.back-home a { display: inline-block; padding: 9px 0; }
.contact-list .contact-email { padding-block: 10px; }
/* Gallery dots keep their 3px look but get a 23px-tall tap area */
.cf-dot { box-sizing: content-box; padding: 10px 0; background-clip: content-box; }
/* Phones and tablets: closing quotes size to their text instead of 80% of the screen (no dead space) */
@media (max-width: 860px) {
  .quote-section, .quote-section--compact { min-height: 0; padding: clamp(64px, 14vw, 110px) 0; }
  @supports (min-height: 80svh) { .quote-section { min-height: 0; } }
}
/* Big headings break into even lines instead of leaving one word alone */
.h-title, .h-section, .display, .statement { text-wrap: balance; }
/* Recommendation panels: the tabpanel is now a div wrapping the figure */
.rec2 > figure { display: contents; }
/* Quote words before they light up: just over 3:1 against the page (WCAG large-text minimum) */
.quote .statement .w { color: #6b6b6b; }
.statement .w { color: #6b6b6b; }
.statement .w.on { color: var(--ink); }
.statement .w.hl.on { color: var(--red); }
.cf-dot, .cf-dot.is-active, .cf-dot:hover { background-clip: content-box; }

/* V14/V22 fix: the header blur made the fixed phone menu size itself to the 64px header. Drop the blur while the menu is open so it covers the screen. */
.menu-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; }
@media (max-width: 860px) { .nav { padding-top: var(--header-h); padding-bottom: 16px; } }
