/* =========================================================
   ASIA MEDIA — Podcast Production Studio
   Brand: Prettywise Black (titles) · Arial (body) · Nokie (logo)
   ========================================================= */

@font-face { font-family: 'Prettywise'; src: url(../assets/fonts/Prettywise-Black.otf) format('opentype'); font-weight: 900; font-display: swap; }

:root {
  /* brand */
  --orange: #F47820;
  --pink: #ED2681;
  --green: #72BF44;
  --blue: #6FCCDD;
  --cream: #FEFBDD;
  --ink: #16122B;          /* the navy of the cartoon arms */
  --kraft: #a57a4f;
  --paper: #f6f1dc;

  /* type */
  --f-title: 'Prettywise', 'Didot', 'Bodoni MT', Georgia, serif;
  --f-body: Arial, 'Helvetica Neue', Helvetica, sans-serif;

  /* geometry (overwritten live by main.js) */
  --tab-h: 44px;
  --top-bar: 70px;
  --home-h: 70vh;
  --scroll-h: 60vh;

  /* motion */
  --ease-out: cubic-bezier(.2, .85, .25, 1);
  --t-file: 620ms;
  --t-peek: 380ms;

  /* layers */
  --z-home: 1;
  --z-dialog: 1000;

  --cursor: url(../assets/img/cursor/pointer-60.png) 3 2;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  overflow: hidden;
  background: #2b5a30 url(../assets/tex/grid-green.webp) center / cover;
  color: var(--ink);
  font: 16px/1.55 var(--f-body);
  -webkit-font-smoothing: antialiased;
  /* "Mouse Cursor.png" — the click point is the tip of the index finger (top left) */
  cursor: var(--cursor), auto;
  cursor: -webkit-image-set(url(../assets/img/cursor/pointer-60.png) 1x, url(../assets/img/cursor/pointer-120.png) 2x) 3 2, auto;
  cursor: image-set(url(../assets/img/cursor/pointer-60.png) 1x, url(../assets/img/cursor/pointer-120.png) 2x) 3 2, auto;
}

/* glove everywhere — including links & buttons — except text fields, which keep the I-beam */
a, button, [role="button"], label, summary, video, .file-tab, .file-body { cursor: inherit; }
input, textarea { cursor: text; }

img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--cream); outline-offset: 3px; box-shadow: 0 0 0 6px var(--ink); border-radius: 6px; }

.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 2000;
  background: var(--cream); padding: 10px 16px; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 12px; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* =========================================================
   HOME
   ========================================================= */
.home {
  position: fixed; inset: 0;
  z-index: var(--z-home);
  transition: transform var(--t-peek) var(--ease-out);
}
.home::after { /* soft vignette so the grid reads like a cutting mat */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(0,0,0,.28));
}

.home-bar {
  position: relative; z-index: 3;
  height: var(--top-bar);
  display: flex; align-items: center; gap: 16px;
  padding: 0 clamp(16px, 3vw, 40px);
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--cream); min-height: 44px; }
.brand-mark { width: auto; height: 42px; filter: drop-shadow(0 2px 0 rgba(0,0,0,.2)); }
.brand-tag {
  font-weight: 700; font-size: 15px; line-height: 1.15;
  letter-spacing: .1em; text-transform: uppercase;
  padding-left: 14px; border-left: 2px solid rgba(254, 251, 221, .45);
  text-shadow: 1px 1px 0 rgba(22, 18, 43, .5);
}

.home-back {
  display: none;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink); background: var(--cream);
  padding: 6px 12px; border-radius: 999px;
  box-shadow: 2px 2px 0 var(--ink);
}
body.is-open .home-back { display: inline-block; }
body.is-open .home { cursor: inherit; }

.bar-cta {
  margin-left: auto;
  font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  background: var(--pink); color: var(--cream);
  padding: 11px 18px; border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center;
  border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}
.bar-cta:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.bar-cta:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

.home-main {
  position: relative; z-index: 2;
  height: calc(var(--home-h) - var(--top-bar));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr);
  gap: clamp(16px, 3vw, 48px);
  align-items: center;
  padding: 0 clamp(16px, 4vw, 64px) clamp(28px, 5vh, 56px);
  transition: opacity var(--t-peek) ease;
}
body.is-open .home-main { opacity: .35; }

/* ---------- brand collage + post-its on the mat ---------- */
.stage {
  height: 100%;
  min-height: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(8px, 2vh, 22px);
  --u: min(1vw, calc(var(--home-h) / 70)); /* scales with the room we have */
}
.collage-img {
  /* fills whatever height the post-its leave; the artwork stays contained */
  flex: 1 1 0; min-height: 0;
  width: 100%; height: auto;
  object-fit: contain;
  filter: drop-shadow(0 14px 18px rgba(0,0,0,.4));
  transform: rotate(-1deg);
}

.services { display: flex; flex-wrap: wrap; justify-content: center; gap: calc(var(--u) * 2); }
.service a {
  display: block; text-decoration: none;
  width: clamp(130px, calc(var(--u) * 16), 200px);
  padding: 10px 12px 12px;
  background: var(--sc);
  color: var(--ink);
  box-shadow: 0 8px 12px -5px rgba(0,0,0,.5);
  transform: rotate(var(--r));
  transition: transform .25s var(--ease-out), box-shadow .25s ease;
  position: relative;
}
.service a::before { /* a strip of tape holding each note to the mat */
  content: ''; position: absolute; top: -9px; left: 50%; width: 46%; height: 18px;
  transform: translateX(-50%) rotate(calc(var(--r) * -1.5));
  background: rgba(254, 251, 221, .7); box-shadow: 0 1px 2px rgba(0,0,0,.18);
}
.service a:hover, .service a:focus-visible { transform: rotate(0deg) translateY(-4px) scale(1.04); box-shadow: 0 14px 20px -8px rgba(0,0,0,.5); }
.service strong { display: block; font-family: var(--f-title); font-size: clamp(18px, calc(var(--u) * 2.2), 26px); line-height: 1; margin-bottom: 4px; }
.service span { display: block; font-size: 12.5px; line-height: 1.35; }
.service.pink { --sc: #f8a5c8; --r: -3deg; }
.service.orange { --sc: #fbbf8e; --r: 2deg; }
.service.green { --sc: #b9e19a; --r: -1.5deg; }

/* ---------- polaroid vibes ---------- */
.vibes {
  position: relative; height: 100%; max-height: 580px;
  /* landscape polaroids: photos keep their own proportions, nothing is cropped */
  --pw: clamp(150px, min(15.2vw, calc(var(--home-h) * .42)), 300px);
}
.polaroid {
  position: absolute; width: var(--pw);
  padding: 8px 8px 0;
  background: #fffdf3;
  box-shadow: 0 10px 20px -8px rgba(0,0,0,.5);
  transform: rotate(var(--tilt));
  transition: transform .3s var(--ease-out), box-shadow .3s ease;
}
.polaroid img { width: 100%; height: auto; background: #ddd; }
.polaroid figcaption { font-weight: 700; font-size: clamp(11px, calc(var(--pw) * .07), 15px); letter-spacing: .06em; text-transform: uppercase; padding: 8px 2px 10px; text-align: center; }
.polaroid::before { /* tape */
  content: ''; position: absolute; left: 50%; top: -12px; width: 44%; height: 24px;
  transform: translateX(-50%) rotate(calc(var(--tilt) * -1.4));
  background: rgba(254, 251, 221, .72);
  box-shadow: 0 1px 2px rgba(0,0,0,.15);
}
.polaroid:hover, .polaroid:focus-within { transform: rotate(0deg) scale(1.08); z-index: 5; box-shadow: 0 18px 30px -10px rgba(0,0,0,.55); }
.polaroid a { display: block; width: 100%; }
.polaroid:nth-child(1) { left: 0%; top: 5%; }
.polaroid:nth-child(2) { left: 34%; top: 0%; }
.polaroid:nth-child(3) { left: 67%; top: 8%; }
.polaroid:nth-child(4) { left: 15%; top: 52%; }
.polaroid:nth-child(5) { left: 52%; top: 48%; }

.pick-note {
  position: absolute; left: clamp(16px, 6vw, 90px); bottom: 2px;
  display: flex; align-items: flex-end; gap: 8px;
  color: var(--cream); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  text-shadow: 1px 1px 0 var(--ink);
  transition: opacity .3s ease;
}
.pick-note img { width: auto; height: 46px; transform: rotate(90deg) translateX(10px); transform-origin: 50% 50%; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: rotate(90deg) translateX(18px); } }
body.is-open .pick-note, body.is-peek .pick-note { opacity: 0; }

/* =========================================================
   FILES
   ========================================================= */
.file {
  position: fixed; left: 0; right: 0; top: 0;
  height: 100vh; height: 100dvh;
  pointer-events: none;
  transform: translate3d(0, var(--y, 100vh), 0);
  transition: transform var(--t-file) var(--ease-out);
  filter: drop-shadow(0 -3px 5px rgba(0,0,0,.28));
  will-change: transform;
}
.file.is-active { filter: none; }
.file.is-active .file-body { box-shadow: 0 -3px 8px rgba(0,0,0,.28); }

.file-tab {
  position: absolute; top: 0; left: var(--tab-x);
  height: calc(var(--tab-h) + 1px);
  min-width: 150px;
  padding: 0 30px;
  border-radius: 16px 16px 0 0;
  background: var(--c) var(--tex) center top / 1920px auto repeat;
  color: var(--cream);
  font-weight: 700; font-size: clamp(14px, 1.3vw, 18px); letter-spacing: .06em; text-transform: uppercase;
  text-shadow: 1.5px 1.5px 0 rgba(22, 18, 43, .55);
  pointer-events: auto;
  display: flex; align-items: center; justify-content: center;
}
/* flared bottom corners, cut from the same paper */
.file-tab::before, .file-tab::after {
  content: ''; position: absolute; bottom: 0; width: 16px; height: 16px;
  background: inherit;
}
.file-tab::before { left: -16px; -webkit-mask: radial-gradient(circle at 0 0, transparent 15.5px, #000 16px); mask: radial-gradient(circle at 0 0, transparent 15.5px, #000 16px); }
.file-tab::after { right: -16px; -webkit-mask: radial-gradient(circle at 100% 0, transparent 15.5px, #000 16px); mask: radial-gradient(circle at 100% 0, transparent 15.5px, #000 16px); }
.file-tab span { transition: transform .25s var(--ease-out); }
.file:not(.is-active) .file-tab:hover span { transform: translateY(-2px); }

.file-body {
  position: absolute; left: 0; right: 0; top: var(--tab-h); bottom: 0;
  background: var(--c) var(--tex) center top / 1920px auto repeat;
  pointer-events: auto;
}
.file-scroll {
  height: var(--scroll-h);
  overflow: hidden;
  overscroll-behavior: contain;
}
.file.is-active .file-scroll { overflow-y: auto; scrollbar-color: rgba(22,18,43,.5) transparent; }

.file-head {
  max-width: 1240px; margin: 0 auto;
  /* the first --band px stay plain paper so the stacked strips read like the reference */
  padding: calc(var(--band, 24px) + 10px) clamp(16px, 4vw, 48px) 0;
  display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 24px;
}
.file.is-active .file-head { padding-top: clamp(14px, 2.5vh, 28px); }
.file-title {
  font-family: var(--f-title); font-weight: 900;
  font-size: clamp(34px, 5vw, 68px); line-height: 1;
  color: var(--cream);
  text-shadow: 3px 3px 0 var(--ink);
  -webkit-text-stroke: 1px var(--ink);
  outline: none;
}
.file-sub { font-size: clamp(14px, 1.3vw, 17px); font-weight: 700; max-width: 52ch; }
.peek-strip { grid-column: 1 / -1; display: flex; gap: 10px; margin-top: 14px; }
.peek-strip img, .peek-strip span { width: 96px; height: 64px; object-fit: cover; border: 3px solid #fffdf3; box-shadow: 0 4px 8px -3px rgba(0,0,0,.4); }
.peek-strip > :nth-child(odd) { transform: rotate(-2deg); }
.peek-strip > :nth-child(even) { transform: rotate(2deg); }
.file.is-active .peek-strip { display: none; }

.file-content {
  max-width: 1240px; margin: 0 auto;
  padding: clamp(20px, 3vh, 36px) clamp(16px, 4vw, 48px) 72px;
}

/* ---------- shared paper card ---------- */
.paper {
  background: var(--paper) url(../assets/tex/paper-cream.webp) center / cover;
  background-blend-mode: multiply;
  box-shadow: 0 14px 28px -12px rgba(0,0,0,.45);
  border-radius: 3px;
}
.section-title {
  font-family: var(--f-title); font-weight: 900;
  font-size: clamp(26px, 3vw, 40px); line-height: 1.05;
  margin-bottom: 6px;
}
.section-intro { max-width: 62ch; margin-bottom: 20px; }

.tag-placeholder {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  background: var(--ink); color: var(--cream); padding: 3px 8px; border-radius: 999px; vertical-align: middle;
}

/* ---------- placeholders ---------- */
.ph {
  display: grid; place-items: center; text-align: center; gap: 6px;
  aspect-ratio: var(--ar, 4 / 5);
  border: 2.5px dashed rgba(22, 18, 43, .55);
  background: rgba(254, 251, 221, .55);
  border-radius: 6px;
  padding: 16px;
  font-weight: 700; font-size: 14px;
}
.ph small { display: block; font-weight: 400; font-size: 12px; opacity: .8; }
.ph img { width: 54px; height: auto; opacity: .85; }

/* ---------- galleries ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 44vw), 1fr)); gap: 14px; }
.gallery.masonry { display: block; columns: 4 220px; column-gap: 14px; }
.gallery.masonry > * { break-inside: avoid; margin-bottom: 14px; }
.shot {
  display: block; width: 100%;
  background: #fffdf3; padding: 6px;
  box-shadow: 0 8px 16px -8px rgba(0,0,0,.5);
  transition: transform .25s var(--ease-out), box-shadow .25s ease;
}
.shot img { width: 100%; height: auto; background: #e8e2c8; }
.gallery:not(.masonry) .shot img { aspect-ratio: 4 / 5; object-fit: cover; height: auto; }
.shot:hover, .shot:focus-visible { transform: translateY(-4px) rotate(-.6deg); box-shadow: 0 16px 24px -10px rgba(0,0,0,.55); }

/* ---------- studios ---------- */
.studio {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 40px);
  padding: clamp(16px, 2.5vw, 30px);
  margin-bottom: clamp(28px, 5vh, 56px);
  position: relative;
}
.studio:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
.studio:nth-child(even) .studio-hero { order: 2; }
.studio:nth-child(odd) { transform: rotate(-.4deg); }
.studio:nth-child(even) { transform: rotate(.4deg); }
.studio-hero img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.studio-num { font-family: var(--f-title); font-size: 15px; color: var(--orange); letter-spacing: .1em; }
.studio h3 { font-family: var(--f-title); font-size: clamp(30px, 3.4vw, 48px); line-height: 1; margin: 4px 0 12px; }
.studio p { max-width: 42ch; }
.studio-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.studio-thumbs .shot { padding: 4px; }
.studio-thumbs .shot img { aspect-ratio: 1; object-fit: cover; }
.studio .clip { position: absolute; top: -18px; left: 28px; width: 34px; transform: rotate(-12deg); }

/* ---------- work ---------- */
.work-nav {
  position: sticky; top: 0; z-index: 5;
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  max-width: 1240px; margin: 14px auto 0;
  padding: 10px clamp(16px, 4vw, 48px);
  background: linear-gradient(to bottom, rgba(0,0,0,.0), rgba(0,0,0,0));
}
.file.is-active .work-nav { background: color-mix(in srgb, var(--green) 88%, black); box-shadow: 0 6px 10px -8px rgba(0,0,0,.5); }
.work-nav::-webkit-scrollbar { display: none; }
.chip {
  flex: none; white-space: nowrap;
  padding: 9px 14px; min-height: 40px;
  border-radius: 999px; border: 2px solid var(--ink);
  background: var(--cream); font-weight: 700; font-size: 13.5px;
  text-decoration: none;
  box-shadow: 2px 2px 0 var(--ink);
  transition: transform .15s ease, background-color .15s ease;
}
.chip:hover { transform: translateY(-2px); }
.chip[aria-current="true"] { background: var(--ink); color: var(--cream); }

.work-block { scroll-margin-top: 80px; margin-bottom: clamp(40px, 7vh, 72px); }
.work-block > header { margin-bottom: 18px; }
.work-kicker { font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }

.process { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; counter-reset: step; }
.step { padding: 16px 16px 18px; position: relative; }
.step:nth-child(4n+1) { background-color: #fde0c8; }
.step:nth-child(4n+2) { background-color: #fbd0e2; }
.step:nth-child(4n+3) { background-color: #d6efc3; }
.step:nth-child(4n+4) { background-color: #cdeef3; }
.step-n { font-family: var(--f-title); font-size: 30px; line-height: 1; opacity: .9; }
.step h4 { font-size: 16px; margin: 8px 0 4px; }
.step p { font-size: 14px; line-height: 1.45; }

.subhead { font-family: var(--f-title); font-size: 24px; margin: 30px 0 14px; }

.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cases .ph { --ar: 16 / 10; }

.clips { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 14px; }
.clip-card { background: var(--ink); padding: 5px; border-radius: 4px; box-shadow: 0 8px 16px -8px rgba(0,0,0,.5); }
.clip-card video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #222; border-radius: 2px; }
.clip-card p { color: var(--cream); font-size: 12px; font-weight: 700; text-transform: capitalize; padding: 6px 4px 2px; }

.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }

.ba { position: relative; overflow: hidden; aspect-ratio: 3 / 2; user-select: none; background: #111; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba .ba-before { clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); filter: saturate(.25) contrast(.72) brightness(1.12) sepia(.1); }
.ba .ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 3px; margin-left: -1.5px; background: var(--cream); pointer-events: none; }
.ba .ba-line::after {
  content: '⟷'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--cream); color: var(--ink); font-weight: 700; border: 2px solid var(--ink);
}
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: ew-resize; }
.ba-label { position: absolute; top: 10px; padding: 4px 10px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; background: rgba(22,18,43,.8); color: var(--cream); border-radius: 999px; pointer-events: none; }
.ba-label.l { left: 10px; } .ba-label.r { right: 10px; }

.video-card { padding: 8px; }
.video-card video { width: 100%; max-height: 62vh; object-fit: contain; background: #111; }
.video-card p { font-weight: 700; padding: 8px 4px 2px; }

.audio-pair { display: grid; gap: 12px; padding: 18px; }
.audio-row { display: grid; grid-template-columns: 90px 1fr; align-items: center; gap: 12px; }
.audio-row strong { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.audio-row .ph { --ar: auto; padding: 12px; }
.audio-row audio { width: 100%; }

.thumbs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.thumbs-grid .ph { --ar: 16 / 9; }

/* ---------- team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 80vw), 1fr)); gap: 20px; }
.team-grid .ph { --ar: 4 / 5; background: rgba(254,251,221,.35); }

/* ---------- contact ---------- */
.contact-card { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); padding: clamp(20px, 3vw, 40px); max-width: 980px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: 12px 14px; min-height: 48px;
  border: 2px solid var(--ink); border-radius: 8px; background: #fffef6;
}
.field textarea { resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; box-shadow: none; }
.field [aria-invalid="true"] { border-color: #b3123f; background: #fff3f6; }
.phone-wrap { display: flex; }
.phone-prefix { display: grid; place-items: center; padding: 0 12px; font-weight: 700; border: 2px solid var(--ink); border-right: 0; border-radius: 8px 0 0 8px; background: var(--blue); }
.phone-wrap input { border-radius: 0 8px 8px 0; }
.field-hint { font-size: 13px; opacity: .8; margin-top: 4px; }
.field-error { font-size: 13.5px; font-weight: 700; color: #a3103a; margin-top: 4px; min-height: 0; }
.field-error:empty { display: none; }
.btn {
  font-weight: 700; font-size: 15px; letter-spacing: .06em; text-transform: uppercase;
  background: var(--pink); color: var(--cream);
  padding: 14px 26px; min-height: 48px; border-radius: 999px;
  border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn[disabled] { opacity: .5; }
.form-status { margin-top: 12px; font-weight: 700; }
.contact-side { border-left: 2px dashed rgba(22,18,43,.35); padding-left: clamp(16px, 3vw, 36px); }
.contact-side p { margin-bottom: 4px; }
.contact-side a { font-weight: 700; }
.contact-label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .75; margin-top: 16px; }
.contact-hand { width: 150px; height: auto; margin-bottom: 8px; }

/* =========================================================
   LIGHTBOX
   ========================================================= */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(16, 13, 30, .94);
  color: var(--cream);
}
.lightbox::backdrop { background: rgba(0,0,0,.5); }
.lightbox[open] { display: grid; place-items: center; animation: fade .2s ease; }
.lightbox figure { max-width: 92vw; max-height: 88dvh; display: grid; justify-items: center; gap: 10px; }
.lightbox img { max-width: 92vw; max-height: 80dvh; object-fit: contain; background: #fffdf3; padding: 8px; }
.lightbox figcaption { font-weight: 700; font-size: 14px; }
.lb-btn { position: fixed; width: 52px; height: 52px; border-radius: 50%; background: var(--cream); color: var(--ink); font-size: 30px; line-height: 1; display: grid; place-items: center; border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
@keyframes fade { from { opacity: 0; } }

/* =========================================================
   STUDIOS (additions)
   ========================================================= */
.studio-tagline { font-weight: 700; font-size: 17px; line-height: 1.35; margin-bottom: 10px; color: #b3521a; }
.studio-info > p:not(.studio-num):not(.studio-tagline) { max-width: 52ch; }
.studio-video { margin-top: 16px; }
.studio-video .clip-card video { aspect-ratio: 16 / 9; }

/* =========================================================
   CASE STUDIES
   ========================================================= */
.case { padding: clamp(18px, 2.6vw, 34px); margin-bottom: clamp(26px, 4vh, 44px); }
.case-head { display: grid; grid-template-columns: auto 1fr; gap: clamp(14px, 2.4vw, 28px); align-items: center; margin-bottom: 18px; }
.case-logo { width: clamp(76px, 9vw, 116px); height: auto; aspect-ratio: 1; object-fit: contain; background: #243b5a; border-radius: 14px; padding: 10px; box-shadow: 3px 3px 0 var(--ink); }
#case-maskoot .case-logo { background: #fff; }
.case-title { font-family: var(--f-title); font-size: clamp(28px, 3.4vw, 46px); line-height: 1.05; margin: 4px 0 10px; }
.case-title [lang="ar"] { font-family: 'Segoe UI', Tahoma, Arial, sans-serif; font-weight: 800; }
.case-title small { font-size: .55em; opacity: .7; margin-left: 6px; }
.deliverables { display: flex; flex-wrap: wrap; gap: 6px; }
.deliverables li { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(22, 18, 43, .08); border: 1.5px solid rgba(22, 18, 43, .35); }

.case-row { margin-top: 18px; }
.case-label { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.case-label::after { content: ''; flex: 1; height: 2px; background: rgba(22, 18, 43, .15); }
.case-grid { display: grid; gap: 12px; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.case-grid.n4 { --cols: 4; }
.case-grid .shot img { aspect-ratio: 16 / 10; object-fit: cover; }
.shot.is-logo { background: #243b5a; }
.shot.is-logo img { object-fit: contain; padding: 12%; background: transparent; }

.case-videos { display: grid; gap: 12px; }
.case-videos.has-tall { grid-template-columns: minmax(0, 1fr) clamp(140px, 16vw, 210px); align-items: start; }
.case-videos-flat { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 12px; }

/* shared video card */
.clip-card { background: var(--ink); padding: 5px; border-radius: 4px; box-shadow: 0 8px 16px -8px rgba(0,0,0,.5); margin: 0; }
.clip-card video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #222; border-radius: 2px; }
.clip-card.is-vertical video { aspect-ratio: 9 / 16; }
.clip-card figcaption { color: var(--cream); font-size: 12px; font-weight: 700; padding: 6px 4px 2px; text-transform: capitalize; }
.clips { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 14px; }

/* =========================================================
   LOGOS & DESIGN
   ========================================================= */
.brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); gap: 16px; }
.brand-card {
  display: flex; flex-direction: column; text-align: left;
  background: #fffdf3; padding: 8px 8px 0;
  box-shadow: 0 10px 18px -10px rgba(0,0,0,.55);
  transition: transform .25s var(--ease-out), box-shadow .25s ease;
}
.brand-card:nth-child(3n+1) { transform: rotate(-.8deg); }
.brand-card:nth-child(3n+2) { transform: rotate(.6deg); }
.brand-card:hover, .brand-card:focus-visible { transform: translateY(-5px) rotate(0deg); box-shadow: 0 18px 26px -12px rgba(0,0,0,.6); }
.brand-cover { display: grid; place-items: center; aspect-ratio: 4 / 3; background: #f2ecd2; overflow: hidden; }
.brand-cover img { width: 100%; height: 100%; object-fit: contain; padding: 10%; }
.brand-cover.is-photo img { object-fit: cover; padding: 0; }
.brand-name { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 10px 4px 12px; font-weight: 800; font-size: 18px; }
.brand-name small { font-size: 12px; font-weight: 700; opacity: .7; text-align: right; }

/* =========================================================
   BEFORE & AFTER PLAYER
   ========================================================= */
.ab-player { padding: clamp(10px, 1.6vw, 18px); margin-bottom: 18px; }
.ab-stage { position: relative; aspect-ratio: 16 / 9; background: #111; overflow: hidden; }
.ab-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .25s ease; }
.ab-player[data-v="after"] .ab-before, .ab-player[data-v="before"] .ab-after { opacity: 0; }
.ab-badge { position: absolute; top: 12px; left: 12px; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: var(--cream); color: var(--ink); border: 2px solid var(--ink); }
.ab-player[data-v="before"] .ab-badge { background: var(--ink); color: var(--cream); border-color: var(--cream); }
.ab-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 12px; }
.ab-toggle { display: inline-flex; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; box-shadow: 3px 3px 0 var(--ink); }
.ab-toggle button { padding: 11px 20px; min-height: 44px; font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; background: var(--cream); }
.ab-toggle button[aria-checked="true"] { background: var(--ink); color: var(--cream); }
.ab-hint { font-size: 14px; font-weight: 700; opacity: .8; }
.video-card figcaption { font-weight: 700; padding: 8px 4px 2px; }

/* =========================================================
   COUPLES — show more
   ========================================================= */
.more-wrap { text-align: center; margin-top: 18px; }
.btn-ghost { background: var(--cream); color: var(--ink); }

/* =========================================================
   TEAM — A cover, B on hover, C in the lightbox
   ========================================================= */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(230px, 44vw), 1fr)); gap: clamp(14px, 2.4vw, 30px); }
.member { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.member-photo { position: relative; display: block; width: 100%; aspect-ratio: 1; transition: transform .35s var(--ease-out); }
.member-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .3s ease; filter: drop-shadow(0 10px 14px rgba(0,0,0,.35)); }
.member-b { opacity: 0; }
.member:hover .member-a, .member:focus-visible .member-a { opacity: 0; }
.member:hover .member-b, .member:focus-visible .member-b { opacity: 1; }
.member:hover .member-photo, .member:focus-visible .member-photo { transform: translateY(-6px) rotate(-2deg) scale(1.03); }
.member-name {
  font-family: var(--f-title); font-size: clamp(20px, 2vw, 28px); line-height: 1;
  color: var(--cream); text-shadow: 2px 2px 0 var(--ink);
}
.member:focus-visible { outline-offset: 6px; }
.peek-strip img.peek-round { width: 64px; height: 64px; border: 0; box-shadow: none; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0,0,0,.3)); }

/* lightbox additions */
.lightbox video { max-width: 92vw; max-height: 80dvh; background: #000; }
.lightbox.is-tall img { max-height: 90dvh; padding: 0; background: transparent; }
.lightbox [hidden] { display: none !important; }

/* hover-to-play clips: poster + play badge until the pointer (or a tap) starts them */
.clip-card { position: relative; }
.clip-card video { display: block; }
.clip-play {
  position: absolute; left: 50%; top: calc((100% - 30px) / 2); transform: translate(-50%, -50%);
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(254, 251, 221, .92); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  pointer-events: none; transition: opacity .2s ease, transform .2s var(--ease-out);
}
.clip-play::after { content: ''; position: absolute; left: 54%; top: 50%; transform: translate(-50%, -50%); border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent var(--ink); }
.clip-card.is-playing .clip-play { opacity: 0; transform: translate(-50%, -50%) scale(.7); }

/* =========================================================
   SCROLL AREA + MEASURING-TAPE SCROLLBAR
   ========================================================= */
/* content runs on behind the next file's label row, so leave room to scroll clear of it */
.file-content { padding-bottom: calc(72px + var(--tab-h)); }

.tape { display: none; }

@media (min-width: 761px) {
  /* the tape replaces the browser scrollbar on desktop */
  .file-scroll { scrollbar-width: none; }
  .file-scroll::-webkit-scrollbar { display: none; }
  .file-head, .file-content, .work-nav { padding-right: max(clamp(16px, 4vw, 48px), 84px); }

  .tape {
    --case-w: 62px;
    display: block;
    position: absolute; top: 8px; right: 8px; z-index: 8;
    width: var(--case-w);
    pointer-events: none;
    opacity: 0; visibility: hidden;
    transition: opacity .3s ease .25s, visibility 0s linear .55s;
  }
  .file.is-active .tape { opacity: 1; visibility: visible; transition: opacity .3s ease .25s; }
  .tape-case {
    position: relative; z-index: 2; display: block;
    width: 100%; height: auto;
    pointer-events: auto; touch-action: none; user-select: none;
    filter: drop-shadow(0 4px 5px rgba(0,0,0,.35));
  }
  /* the tape only ever appears below the case: it is clipped to start at the case mouth,
     and anchored by its hook end so more tape feeds out of the case as it lengthens */
  .tape-strip {
    position: absolute; z-index: 1;
    top: calc(var(--case-w) * 246 / 114 * .93);
    left: calc(var(--case-w) * 28 / 114);
    width: calc(var(--case-w) * 54 / 114);
    height: var(--len, 26px);
    background: center bottom / 100% auto no-repeat;
    pointer-events: auto; touch-action: none; user-select: none;
    filter: drop-shadow(0 3px 4px rgba(0,0,0,.35));
  }
  .tape-strip::after { content: ''; position: absolute; inset: 0 -10px; } /* wider grab area */
  /* the tape artwork is only fetched once a section is actually open */
  .file.is-active .tape-strip { background-image: url(../assets/img/tape/tape.webp); }
  .tape.is-dragging .tape-strip { filter: drop-shadow(0 5px 7px rgba(0,0,0,.45)); }
}

/* =========================================================
   COUPLE ALBUMS
   ========================================================= */
.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: clamp(18px, 3vw, 34px); padding-top: 10px; }
.album { position: relative; display: block; text-align: left; transition: transform .25s var(--ease-out); }
/* two loose prints peeking out behind the cover, like a stack of photos */
.album::before, .album::after { content: ''; position: absolute; inset: 0 0 34px; background: #fffdf3; box-shadow: 0 6px 12px -6px rgba(0,0,0,.45); }
.album::before { transform: rotate(-4deg); }
.album::after { transform: rotate(3deg); }
.album-cover { position: relative; z-index: 1; display: block; padding: 8px; background: #fffdf3; box-shadow: 0 10px 18px -10px rgba(0,0,0,.6); }
.album-cover img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: #e8e2c8; }
.album-count { position: relative; z-index: 1; display: block; margin-top: 10px; font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.album:hover, .album:focus-visible { transform: translateY(-5px) rotate(-1deg); }
.album-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 16px; font-weight: 700; }
.albums[hidden], .album-view[hidden] { display: none; }

/* team member without a full card yet: shown, but not clickable */
.member.is-static:hover .member-photo { transform: none; }
/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-height: 760px) {
  .service span { font-size: 11.5px; }
}
@media (max-height: 640px) {
  .service span { display: none; }
}

@media (max-width: 1024px) {
  .brand-tag { font-size: 13px; }
  .case-grid.n4 { --cols: 2; }
}

@media (max-width: 760px) {
  .brand-tag { display: none; }
  .home-bar { gap: 10px; }
  .brand-mark { height: 30px; }
  .bar-cta { padding: 6px 12px; min-height: 40px; font-size: 11.5px; white-space: nowrap; }
  .home-back { padding: 5px 10px; font-size: 11px; white-space: nowrap; }
  .home-main { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; gap: 10px; padding-bottom: 14px; }
  .stage { --u: min(2.1vw, calc(var(--home-h) / 60)); gap: 12px; }
  .services { gap: 8px; }
  .service a { width: auto; padding: 6px 12px; }
  .service span { display: none; }
  .service strong { font-size: 17px; margin: 0; }
  .vibes { height: auto; display: flex; gap: 10px; --pw: 44vw; overflow-x: auto; padding: 14px 4px 10px; scrollbar-width: none; }
  .vibes::-webkit-scrollbar { display: none; }
  .polaroid { position: relative; flex: none; left: auto !important; top: auto !important; padding: 4px 4px 0; }
  .polaroid figcaption { font-size: 9.5px; padding: 5px 0 6px; }
  .polaroid::before { height: 14px; top: -7px; }
  .file-tab { min-width: 0; padding: 0 16px; font-size: 13px; }
  .file-tab::before, .file-tab::after { width: 12px; height: 12px; }
  .file-tab::before { left: -12px; -webkit-mask: radial-gradient(circle at 0 0, transparent 11.5px, #000 12px); mask: radial-gradient(circle at 0 0, transparent 11.5px, #000 12px); }
  .file-tab::after { right: -12px; -webkit-mask: radial-gradient(circle at 100% 0, transparent 11.5px, #000 12px); mask: radial-gradient(circle at 100% 0, transparent 11.5px, #000 12px); }
  .file-head { grid-template-columns: 1fr; }
  .file-sub { font-size: 14px; margin-top: 6px; }
  .peek-strip img, .peek-strip span { width: 70px; height: 48px; }
  .studio, .studio:nth-child(even) { grid-template-columns: 1fr; transform: none; }
  .studio:nth-child(even) .studio-hero { order: 0; }
  .two-col, .contact-card { grid-template-columns: 1fr; }
  .case-head { grid-template-columns: 1fr; }
  .case-grid, .case-grid.n4 { --cols: 2; }
  .case-videos.has-tall { grid-template-columns: 1fr; }
  .case-videos.has-tall .is-vertical { max-width: 60%; }
  .contact-side { border-left: 0; border-top: 2px dashed rgba(22,18,43,.35); padding: 16px 0 0; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
}

@media (hover: none) {
  .polaroid:hover { transform: rotate(var(--tilt)); }
}

@media (prefers-reduced-motion: reduce) {
  :root { --t-file: 1ms; --t-peek: 1ms; }
  *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; }
}
