/* ============================================================
   KYE MOTION — global styles
   Change the accent colour here and it updates everywhere.
   ============================================================ */
:root {
  --bg: #000;
  --fg: #fff;
  --muted: #9a9a9a;
  --accent: #ffb400;          /* amber — change this one value to recolour the whole site */
  --gap: 20px;                /* the small gap between the two reels */
  --hover-ratio: 2.2;         /* how much wider the hovered reel gets vs. the others */
  --speed: 0.6s;              /* resize speed */
  --ease: cubic-bezier(.77, 0, .18, 1);
  --page-pad: clamp(16px, 5vw, 140px);
  --max: 1720px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Archivo", system-ui, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }

/* ---------- Ink splatter background (parallax, every page) ---------- */
.ink-bg {
  --ink-opacity: .4;          /* how strong the splatter is — 1 = full pink */
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 100vh;              /* JS makes it taller so it can drift for the whole page */
  z-index: -1;
  pointer-events: none;
  background: url("../textures/ink-splatter.svg") top center / max(100%, 700px) auto repeat-y;
  opacity: var(--ink-opacity);
  will-change: transform;
}

/* Corporate page: neon facets instead of the ink splatter (same parallax) */
body.corporate .ink-bg {
  --ink-opacity: .6;
  background-image: url("../textures/neon-facets.svg");
}

/* Home page: still pink glow instead of the ink splatter (stays put, no parallax) */
body.home, body.glow {
  background: #000 url("../textures/home-glow.png") center / cover no-repeat fixed;
}

/* ---------- Header ---------- */
.site-header {
  text-align: center;
  padding: clamp(28px, 5vh, 60px) var(--page-pad) clamp(24px, 4vh, 48px);
}
.wordmark {
  display: inline-block;
  font-weight: 900;
  font-stretch: 125%;
  font-variation-settings: "wdth" 125;
  font-size: clamp(42px, 7.2vw, 128px);
  line-height: .9;
  letter-spacing: -0.01em;
  color: var(--accent);
  text-transform: uppercase;
}
.tagline {
  margin-top: 16px;
  font-weight: 500;
  font-size: clamp(10px, 1.05vw, 17px);
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--fg);
}
.tagline span { white-space: nowrap; }
.tagline .dot { color: var(--accent); margin: 0 .6em; }
/* When the line is wider than the screen, main.js adds .is-scrolling and it drifts right to left */
.tagline { overflow: hidden; }
.tagline-track { display: inline-flex; white-space: nowrap; }
.tagline-set { display: inline-flex; }
.tagline-set .loop-dot { display: none; }
.tagline.is-scrolling {
  text-align: left;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.tagline.is-scrolling .loop-dot { display: inline; }
.tagline.is-scrolling .tagline-track { animation: marquee var(--tag-speed, 20s) linear infinite; }

/* ---------- Reels (the hover videos) ---------- */
.reels {
  --n: 3;                     /* number of reels (set by main.js) */
  --w: min(100vw - 2 * var(--page-pad), var(--max));
  width: var(--w);
  margin: 0 auto;
  display: flex;
  gap: var(--gap);
  /* Height = width of the *expanded* reel at 16:9, so the hovered video shows uncropped */
  height: min(calc((var(--w) - (var(--n) - 1) * var(--gap)) * (var(--hover-ratio) / (var(--hover-ratio) + var(--n) - 1)) * 9 / 16), 62vh);
}
.reel {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  background: #111;
  container-type: size;
  cursor: pointer;
  transition: flex-grow var(--speed) var(--ease);
}

/* YouTube reel: sized like object-fit: cover, so widening the box "un-crops" it */
.reel .yt {
  position: absolute;
  inset: 0;
  filter: grayscale(1) contrast(1.05);
  transition: filter .35s ease;
  pointer-events: none;            /* hover/click handled by the link, not YouTube */
}
/* The player is made taller than the video so YouTube letterboxes it: its title bar,
   logo and "More videos" box then sit in the black bars, which the reel crops off. */
.reel .yt iframe {
  --bar: 140px;
  position: absolute;
  top: 50%; left: 50%;
  width: max(100cqw, 100cqh * 16 / 9);
  height: calc(max(100cqh, 100cqw * 9 / 16) + 2 * var(--bar));
  transform: translate(-50%, -50%);
  border: 0;
}
/* Cover image shown until the reel is played for the first time */
.reel .yt-thumb {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: opacity .3s ease;
}
.reel.has-played .yt-thumb { opacity: 0; }
.reel.is-active .yt { filter: grayscale(0) contrast(1); }
.reel.no-video .yt { display: none; }
.reels.has-active .reel.is-active { flex-grow: var(--hover-ratio); }

/* Gallery reel: the photo pile canvas, sized like the videos (a 16:9 frame the reel crops / un-crops) */
.reel .reel-pile {
  position: absolute;
  top: 50%; left: 50%;
  width: max(100cqw, 100cqh * 16 / 9);
  height: 100cqh;
  transform: translate(-50%, -50%);
  filter: grayscale(1) contrast(1.05);
  transition: filter .35s ease;
  pointer-events: none;
}
.reel.is-active .reel-pile { filter: grayscale(0) contrast(1); }

.reel video,
.reel .placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;          /* this is what does the crop / un-crop */
  filter: grayscale(1) contrast(1.05);
  transition: filter .35s ease, transform var(--speed) var(--ease);
}
.reel.is-active video,
.reel.is-active .placeholder {
  filter: grayscale(0) contrast(1);
}

.reel-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 0 4cqw;
  font-weight: 900;
  font-variation-settings: "wdth" 125;
  font-stretch: 125%;
  font-size: clamp(22px, 10.5cqw, 120px);
  line-height: .95;
  text-transform: uppercase;
  color: var(--accent);
  pointer-events: none;
  transition: opacity .3s ease, transform .5s var(--ease);
}
.reel.is-active .reel-label { opacity: 0; transform: scale(1.06); }

.reel-cta {
  position: absolute;
  left: 18px; bottom: 16px;
  font-size: 12px;
  letter-spacing: .25em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s ease .15s, transform .3s ease .15s;
  pointer-events: none;
  text-shadow: 0 1px 8px rgba(0,0,0,.6);
}
.reel.is-active .reel-cta { opacity: 1; transform: none; }

/* Placeholder shown until real video files are added */
.placeholder {
  display: none;
  background:
    radial-gradient(circle at 20% 30%, #ff7a00 0 18%, transparent 40%),
    radial-gradient(circle at 80% 70%, #00b3ff 0 15%, transparent 42%),
    radial-gradient(circle at 60% 20%, #00e08a 0 12%, transparent 35%),
    linear-gradient(135deg, #3a1c71, #d76d77 50%, #ffaf7b);
  background-size: 200% 200%;
  animation: drift 8s linear infinite;
  animation-play-state: paused;
}
.reel[data-kind="art"] .placeholder {
  background:
    radial-gradient(circle at 70% 30%, #ff00c8 0 16%, transparent 40%),
    radial-gradient(circle at 25% 75%, #ffe600 0 14%, transparent 38%),
    linear-gradient(45deg, #0f2027, #2c5364 50%, #8e2de2);
  background-size: 200% 200%;
}
.reel.no-video .placeholder { display: block; }
.reel.no-video.is-playing .placeholder { animation-play-state: running; }
/* Placeholder sits behind the YouTube player while it loads */
.reel .placeholder { display: block; }
@keyframes drift {
  0%   { background-position: 0% 0%; }
  50%  { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
}

/* ---------- Logo marquee ---------- */
.logos {
  margin: clamp(32px, 6vh, 64px) 0 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.logos-track {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.logos:hover .logos-track { animation-play-state: paused; }
.logos-set {
  display: flex;
  align-items: center;
  gap: clamp(32px, 4vw, 64px);
  padding-right: clamp(32px, 4vw, 64px);
}
.logos { --logo-h: clamp(22px, 2.24vw, 37px); }  /* base logo size — change this to scale them all */
.logo {
  flex: none;
  height: calc(var(--logo-h) * 1.6);
  display: flex;
  align-items: center;
  opacity: .9;
  transition: opacity .2s;
}
.logo:hover { opacity: 1; }
/* Height per logo is set in main.js so each logo has about the same visual weight */
.logo img { height: var(--logo-h); width: auto; display: block; }
/* Text stand-ins until real logo files go in /assets/logos */
.logo-text {
  font-weight: 800;
  font-size: clamp(18px, 2vw, 30px);
  letter-spacing: .02em;
  text-transform: uppercase;
  white-space: nowrap;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Let's chat button ---------- */
.cta-wrap { text-align: center; padding: clamp(32px, 6vh, 60px) 16px clamp(40px, 7vh, 80px); }
.btn-chat {
  display: inline-block;
  padding: .45em 1.4em;
  border-radius: 20px;
  background: var(--accent);
  color: #000;
  font-weight: 900;
  font-variation-settings: "wdth" 125;
  font-stretch: 125%;
  font-size: clamp(24px, 2.8vw, 48px);
  text-transform: uppercase;
  box-shadow: 0 0 0 0 rgba(255, 180, 0,.0), inset 0 0 18px rgba(255,255,255,.35);
  transition: transform .25s var(--ease), box-shadow .25s ease;
}
.btn-chat:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 40px rgba(255, 180, 0,.45), inset 0 0 18px rgba(255,255,255,.35);
}

/* ---------- Inner pages ---------- */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px var(--page-pad);
  background: #000;            /* solid black bar above the ink texture */
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar .wordmark { font-size: clamp(22px, 2.4vw, 34px); }
.topbar nav { display: flex; gap: clamp(14px, 2.5vw, 36px); }
.topbar nav a {
  font-size: 12px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .2s;
}
.topbar nav a:hover, .topbar nav a[aria-current="page"] { color: var(--accent); }

.page-hero { padding: clamp(30px, 8vh, 90px) var(--page-pad) clamp(24px, 5vh, 50px); }
.page-hero h1 {
  font-weight: 900;
  font-variation-settings: "wdth" 125;
  font-stretch: 125%;
  font-size: clamp(44px, 9vw, 150px);
  line-height: .9;
  text-transform: uppercase;
  color: var(--accent);
}
.page-hero p { margin-top: 18px; max-width: 640px; color: var(--muted); line-height: 1.6; font-size: 17px; }

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr));
  gap: var(--gap);
  padding: 0 var(--page-pad) 80px;
  max-width: calc(var(--max) + 2 * var(--page-pad));
  margin: 0 auto;
}
/* Band layouts: one full-width card per row, or two side by side */
.work-grid.cols-1 { grid-template-columns: minmax(0, 1fr); row-gap: 48px; }
.work-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
.work-grid + .work-grid,
.carousel-block + .work-grid { margin-top: -32px; }   /* bands sit 48px apart, like the cards */
/* Vertical (9:16) band: two portrait videos, sized so each fits on screen */
.work-grid.portrait {
  grid-template-columns: repeat(var(--cols, 2), minmax(0, calc(80vh * 9 / 16)));
  justify-content: center;
  column-gap: clamp(20px, 4vw, 60px);
}
.work-grid.portrait.three { --cols: 3; }
.work-grid.portrait .work-media { aspect-ratio: 9 / 16; }
.work-grid.portrait .work-meta { flex-direction: column; gap: 2px; }

/* Three-across 4:5 band, with one shared info line underneath */
.work-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 0; }
.work-grid.ratio-4x5 .work-media { aspect-ratio: 4 / 5; }
.work-grid .shared-info { grid-column: 1 / -1; margin-top: 14px; }
@media (max-width: 760px) { .work-grid.cols-3 { grid-template-columns: minmax(0, 1fr); row-gap: 32px; } }
@media (max-width: 760px) {
  .work-grid.cols-2 { grid-template-columns: minmax(0, 1fr); }
  .work-grid.portrait { grid-template-columns: minmax(0, min(100%, 420px)); }
}
.work-card { display: block; }
.work-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #151515;
}
.work-media video, .work-media img, .work-media .placeholder {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1);
  transition: filter .35s ease, transform .6s var(--ease);
}
.work-media .placeholder { display: block; animation-play-state: running; }
.work-card:hover .work-media video,
.work-card:hover .work-media img,
.work-card:hover .work-media .placeholder { filter: grayscale(0); transform: scale(1.03); }
.work-meta { display: flex; justify-content: space-between; gap: 16px; padding: 14px 2px 0; }
.work-meta h3 {
  font-weight: 900;
  font-variation-settings: "wdth" 115;
  font-stretch: 115%;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: .01em;
  transition: color .2s;
}
.work-card:hover .work-meta h3 { color: var(--accent); }
.pink { color: var(--accent); }   /* wrap any word in <span class="pink"> to make it pink */
.work-card:hover .work-meta h3 .pink { color: var(--fg); }
.work-desc { margin-top: 8px; padding: 0 2px; color: #a8a8a8; font-size: 15px; line-height: 1.6; max-width: 60ch; }

/* Play button on YouTube project cards */
.work-media .play {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  width: 64px; height: 64px; margin: -32px 0 0 -32px;
  border-radius: 50%;
  background: var(--accent);
  display: grid; place-items: center;
  opacity: 0; transform: scale(.8);
  transition: opacity .25s ease, transform .25s var(--ease);
}
.work-media .play::after {
  content: ""; margin-left: 5px;
  border-style: solid; border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent #000;
}
.work-card:hover .play { opacity: 1; transform: none; }

/* ---------- Photo carousel ---------- */
.carousel-block {
  padding: 0 var(--page-pad) 80px;
  max-width: calc(var(--max) + 2 * var(--page-pad));
  margin: -32px auto 0;
}
.carousel { position: relative; }
.carousel-track {
  display: flex;
  gap: 12px;
  height: min(42vh, 384px);   /* photo height — change this to resize the carousel */
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  cursor: grab;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track.dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.carousel-track img {
  flex: none;
  height: 100%;
  width: auto;
  scroll-snap-align: start;
  background: #151515;
  filter: grayscale(1);
  transition: filter .35s ease;
  user-select: none;
  -webkit-user-drag: none;
}
.carousel-track img:hover { filter: grayscale(0); }
.carousel-track img[data-full] { cursor: zoom-in; }
.carousel-track.dragging img { cursor: grabbing; }

/* Enlarged photo — click anywhere to close */
.photo-view {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0, 0, 0, .94);
  display: grid; place-items: center;
  padding: 16px;
  cursor: zoom-out;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.photo-view.open { opacity: 1; pointer-events: auto; }
.photo-view img {
  max-width: 100%; max-height: calc(100vh - 32px);
  width: auto; height: auto;
  object-fit: contain;
  transform: scale(.96);
  transition: transform .3s var(--ease);
}
.photo-view.open img { transform: none; }
.carousel-btn {
  position: absolute; top: 50%; z-index: 2;
  width: 52px; height: 52px; margin-top: -26px;
  border: 0; border-radius: 50%;
  background: var(--accent); color: #000;
  font-size: 22px; font-weight: 900; line-height: 1;
  cursor: pointer;
  display: grid; place-items: center;
  transition: opacity .25s ease, transform .25s var(--ease);
}
.carousel-btn:hover { transform: scale(1.08); }
.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }
.carousel-btn[disabled] { opacity: 0; pointer-events: none; }
.carousel-count { font-size: 12px; letter-spacing: .25em; color: var(--muted); padding-top: 4px; white-space: nowrap; }
.carousel-block .work-meta { padding: 14px 2px 0; }
@media (max-width: 760px) {
  .carousel-track { height: 36vh; }
  .carousel-btn { width: 42px; height: 42px; margin-top: -21px; font-size: 18px; }
}

/* "Coming soon" card: a client logo on black, not clickable */
.work-card.coming-soon { cursor: default; }
.coming-soon .work-media { background: #0b0b0b; display: grid; place-items: center; }
.coming-soon .work-media .cs-logo {
  position: static; width: auto; height: auto;
  max-width: 34%; max-height: 22%;
  filter: none; opacity: .9;
}
.coming-soon .work-meta h3, .work-card.coming-soon:hover .work-meta h3 { color: var(--accent); }
.coming-soon .work-media .cs-full, .work-card.coming-soon:hover .work-media .cs-full { filter: none; transform: none; }

/* Video playing in place */
.work-media iframe {
  position: absolute; inset: 0; z-index: 3;
  width: 100%; height: 100%; border: 0;
  background: #000;
}
.work-card.is-playing { cursor: default; }
/* While playing, show the whole frame (bars if the video's shape differs from the card) */
.work-card.is-playing .work-media video { filter: none; transform: none; object-fit: contain; background: #000; }
/* class="work-card fill": crop the video to fill the card while playing (add style="--focus: 30%" to move the crop left/right) */
.work-card.fill.is-playing .work-media video { object-fit: cover; object-position: var(--focus, 50%) 50%; }
.work-card.is-playing .play { display: none; }
.work-meta > span { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); padding-top: 4px; white-space: nowrap; }

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(30px, 6vw, 100px);
  padding: 0 var(--page-pad) 90px;
  max-width: calc(var(--max) + 2 * var(--page-pad));
  margin: 0 auto;
}
.about-photo { aspect-ratio: 4 / 5; background: #151515; overflow: hidden; position: relative; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 48% 50%; }
.about-photo .ph { position: absolute; inset: 0; display: grid; place-items: center; color: #444; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; }
.about-copy p { color: #cfcfcf; line-height: 1.7; font-size: 17px; margin-bottom: 18px; max-width: 60ch; }
.contact-list { list-style: none; margin-top: 34px; border-top: 1px solid #222; }
.contact-list li { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; border-bottom: 1px solid #222; }
.contact-list .k { font-size: 12px; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.contact-list a { font-weight: 700; font-size: clamp(16px, 1.6vw, 22px); transition: color .2s; overflow-wrap: anywhere; text-align: right; }
.contact-list a:hover { color: var(--accent); }

/* ---------- Contact form ---------- */
.contact-form { margin-top: 36px; }
.form-title {
  font-weight: 900;
  font-variation-settings: "wdth" 115;
  font-stretch: 115%;
  font-size: 20px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: block; margin-bottom: 14px; }
.field span {
  display: block; margin-bottom: 6px;
  font-size: 11px; letter-spacing: .25em; text-transform: uppercase; color: var(--muted);
}
.field em { font-style: normal; letter-spacing: .1em; text-transform: none; color: #666; }
.field input, .field textarea {
  width: 100%;
  background: rgba(0, 0, 0, .65);
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  color: var(--fg);
  font: 16px/1.5 "Archivo", system-ui, sans-serif;
  padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 180, 0, .2);
}
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 4px; }
.btn-send, .btn-whatsapp {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 26px;
  border-radius: 999px;
  font: 900 15px/1 "Archivo", system-ui, sans-serif;
  font-variation-settings: "wdth" 115;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s ease, background .2s;
}
.btn-send { background: var(--accent); color: #000; border: 0; }
.btn-send:hover { transform: translateY(-2px); box-shadow: 0 8px 26px rgba(255, 180, 0, .4); }
.btn-send[disabled] { opacity: .6; cursor: wait; transform: none; box-shadow: none; }
.btn-whatsapp { background: transparent; color: var(--fg); border: 1px solid #3a3a3a; }
.btn-whatsapp:hover { border-color: #25d366; color: #25d366; transform: translateY(-2px); }
.btn-whatsapp svg { width: 18px; height: 18px; }
.form-status { margin-top: 14px; font-size: 15px; min-height: 1.5em; }
.form-status.ok { color: #6ee7a8; }
.form-status.err { color: var(--accent); }
@media (max-width: 760px) { .field-row { grid-template-columns: 1fr; gap: 0; } }

.site-footer { text-align: center; padding: 30px 16px 40px; color: #555; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }

/* ---------- About me page ---------- */
.bio {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(30px, 6vw, 100px);
  align-items: start;
  padding: 0 var(--page-pad) 100px;
  max-width: calc(var(--max) + 2 * var(--page-pad));
  margin: 0 auto;
}
.bio-photo { position: sticky; top: 100px; aspect-ratio: 1002 / 1409; overflow: hidden; background: #151515; }
.bio-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bio-copy p { color: #d6d6d6; line-height: 1.75; font-size: 18px; margin-bottom: 22px; max-width: 62ch; }
.bio-copy .lead { font-size: clamp(21px, 2vw, 27px); line-height: 1.45; color: #fff; font-weight: 600; }
.bio-copy .closing { color: #fff; border-left: 3px solid var(--accent); padding-left: 20px; margin-top: 34px; }
.bio-cta { margin-top: 18px; }
@media (max-width: 760px) {
  .bio { grid-template-columns: 1fr; }
  .bio-photo { position: static; max-width: 460px; }
}

/* ---------- Gallery page ---------- */
.gal-bar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 24px;
  padding: 18px var(--page-pad);
}
.gal-title {
  font-weight: 900; font-variation-settings: "wdth" 125; font-stretch: 125%;
  font-size: clamp(28px, 4vw, 54px); line-height: 1; text-transform: uppercase; color: var(--accent);
}
.view-switch { display: flex; align-items: center; gap: 12px; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; }
.vs-track { position: relative; display: inline-flex; align-items: center; padding: 4px; border-radius: 999px; background: #111; border: 1px solid #2a2a2a; }
.vs-thumb {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: var(--w, 60px);
  border-radius: 999px; background: var(--accent);
  transform: translateX(var(--x, 0)); transition: transform .35s var(--ease), width .35s var(--ease);
}
.vs-track button {
  position: relative; z-index: 1; border: 0; background: none; cursor: pointer;
  font: inherit; letter-spacing: inherit; text-transform: inherit; font-weight: 800;
  color: var(--muted); padding: 9px 16px; border-radius: 999px; transition: color .25s;
}
.vs-track button[aria-pressed="true"] { color: #000; }
.vs-track button:not([aria-pressed="true"]):hover { color: var(--fg); }
.vs-slash { position: relative; z-index: 1; color: #444; }
.vs-label { color: var(--muted); }

.gal-stage {
  position: relative;
  height: calc(100svh - var(--stage-top, 150px));
  min-height: 380px;
  touch-action: none;           /* finger drags move through the pile instead of scrolling */
  overflow: hidden;
}
.gal-canvas { display: block; width: 100%; height: 100%; }
.gal-canvas.over-photo { cursor: zoom-in; }
.gal-hint {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  padding: 8px 16px; border-radius: 999px; background: rgba(0,0,0,.75);
  color: var(--fg); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap;
  pointer-events: none; transition: opacity .6s ease;
}
.gal-hint.gone { opacity: 0; }
.gal-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 170px), 1fr)); gap: 8px;
  padding: 6px var(--page-pad) 60px;
}
.gal-tile { display: block; padding: 0; border: 0; background: #151515; aspect-ratio: 1; overflow: hidden; cursor: zoom-in; }
.gal-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s var(--ease), opacity .3s; }
.gal-tile:hover img { transform: scale(1.06); }
body.view-fun .gal-grid, body.view-uniform .gal-stage { display: none; }
body.view-fun .site-footer { display: none; }  /* fun view fits the screen exactly */

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  .reels { flex-direction: column; height: auto; }
  .reel { flex: none; aspect-ratio: 16 / 9; }
  .reels.has-active .reel.is-active { flex-grow: 0; }
  .about { grid-template-columns: 1fr; }
  .topbar { flex-direction: column; gap: 14px; }
  .topbar nav { flex-wrap: wrap; justify-content: center; gap: 10px 20px; }
  .topbar nav a { white-space: nowrap; }
  .gal-hint { white-space: normal; text-align: center; width: max-content; max-width: calc(100% - 32px); line-height: 1.6; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .logos-track { animation-duration: 120s; }
  .tagline.is-scrolling .tagline-track { animation-duration: 90s; }
  .reel, .reel video { transition-duration: .01s; }
}
