/* =========================================================
   Shemer Salibay — Portfolio styles
   ---------------------------------------------------------
   FONTS
   Brooklyn, Thyga and Refita are commercial typefaces. Until
   licensed web-font files are added, the site falls back to the
   free Google Fonts loaded in each page's <head>:
     Brooklyn -> Fraunces
     Thyga    -> Bricolage Grotesque
     Refita   -> Instrument Serif
   To switch to the real fonts: put the .woff2 files in /fonts,
   then uncomment the @font-face blocks below. Nothing else
   needs to change — the font stacks already list them first.
   ========================================================= */

/*
@font-face { font-family: "Brooklyn"; src: url("../../fonts/Brooklyn-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Brooklyn"; src: url("../../fonts/Brooklyn-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Thyga";    src: url("../../fonts/Thyga-Bold.woff2")      format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Refita";   src: url("../../fonts/Refita-Regular.woff2")  format("woff2"); font-weight: 400; font-display: swap; }
*/

:root {
  /* Palette */
  --oxblood: #3E0703;       /* Deep oxblood — main background */
  --dark-red: #660B05;      /* Dark red */
  --red: #8C1007;           /* Accent red — CTAs, selected states, highlights */
  --cream: #FFF0C4;         /* Warm cream — headings */
  --soft-cream: #F1E2D1;    /* Soft cream — body text, light panels */
  --beige: #DCC3AA;         /* Warm beige — secondary text */
  --wine: #541A1A;          /* Deep wine — alternate sections, cards */

  /* Roles (dark by default) */
  --bg: var(--oxblood);
  --bg-alt: var(--wine);
  --card: var(--wine);
  --media: rgba(0, 0, 0, .22);
  --heading: var(--cream);
  --text: var(--soft-cream);
  --muted: var(--beige);
  --rule: rgba(220, 195, 170, .22);
  --rule-strong: rgba(220, 195, 170, .45);
  --accent: var(--red);
  --focus: var(--cream);
  --print-line: rgba(255, 240, 196, .06);
  --glow: rgba(255, 240, 196, .08);

  /* Type */
  --font-display: "Brooklyn", "Fraunces", Georgia, "Times New Roman", serif;
  --font-accent: "Thyga", "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;
  --font-editorial: "Refita", "Instrument Serif", Georgia, serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --radius-lg: 24px;
  --shadow: 0 1px 2px rgba(20, 2, 1, .25), 0 16px 36px -14px rgba(20, 2, 1, .6);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.22, .8, .26, 1);
  --edge: clamp(20px, 3.5vw, 44px);   /* rounded edge where sections meet */
  --header-h: 76px;
}

/* Light panel: soft cream with dark text. Used sparingly. */
.on-light {
  --heading: var(--oxblood);
  --text: var(--wine);
  --muted: #6A2F24;
  --rule: rgba(84, 26, 26, .2);
  --rule-strong: rgba(84, 26, 26, .4);
  --card: #F8EDDF;
  --focus: var(--red);
  --print-line: rgba(84, 26, 26, .08);
  --glow: rgba(140, 16, 7, .07);
  background: var(--soft-cream); color: var(--text);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); color-scheme: dark; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; color: var(--heading); }
p { margin: 0; }
ul { margin: 0; padding: 0; }
::selection { background: var(--red); color: var(--cream); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--cream); color: var(--oxblood); padding: 10px 16px; border-radius: 8px;
  text-decoration: none; font-weight: 700;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.section--alt { background: var(--bg-alt); --card: var(--oxblood); }

/* ---------- Typography ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 6.2vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
.display em, .h2 em { font-style: italic; }
.mark {
  background-image: linear-gradient(transparent 60%, var(--red) 60%, var(--red) 94%, transparent 94%);
  padding: 0 .06em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 144;
}
.h3 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.6; color: var(--muted); max-width: 38em; }
.kicker {
  display: flex; align-items: baseline; gap: .75rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1.25rem;
}
.kicker::before { content: ""; width: 28px; height: 2px; background: var(--red); transform: translateY(-4px); flex: none; }
.editorial { font-family: var(--font-editorial); font-style: italic; font-weight: 400; }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: .8em 1.4em;
  border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, color .2s, border-color .2s, filter .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }
.btn--primary { background: var(--red); color: var(--cream); border-color: rgba(255, 240, 196, .25); }
.btn--primary:hover { filter: brightness(1.2); }
.btn--light { background: var(--cream); color: var(--oxblood); }
.btn--light:hover { background: var(--soft-cream); }
.on-light .btn--light { background: var(--oxblood); color: var(--cream); }
.btn--ghost { border-color: currentColor; color: var(--heading); background: transparent; }
.btn--ghost:hover { background: rgba(241, 226, 209, .08); }
.on-light .btn--ghost:hover { background: rgba(84, 26, 26, .07); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.text-link {
  display: inline-flex; align-items: center; gap: .4em; color: var(--heading);
  font-weight: 700; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 1px;
}
.text-link svg { width: 1em; height: 1em; transition: transform .2s var(--ease); }
.text-link:hover svg { transform: translateX(3px); }

/* ---------- Header / navigation (floats as a pill once you scroll) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(62, 7, 3, .9);
  backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule);
  transition: background-color .35s var(--ease-out), border-color .35s, padding .35s var(--ease-out);
}
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: calc(var(--header-h) - 2px);
  border: 1px solid transparent;
  transition: max-width .45s var(--ease-out), min-height .35s var(--ease-out), background-color .35s, border-color .35s, border-radius .45s var(--ease-out), box-shadow .35s;
}
.site-header.is-floating {
  background: transparent; border-bottom-color: transparent; padding-top: 8px;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.site-header.is-floating .nav {
  max-width: 1080px; min-height: calc(var(--header-h) - 10px); border-radius: 999px;
  background: rgba(84, 26, 26, .84); border-color: var(--rule);
  backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px);
  box-shadow: 0 14px 34px -16px rgba(20, 2, 1, .8);
  padding-left: clamp(16px, 2.4vw, 24px); padding-right: 8px;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 46px; width: auto; transition: height .35s var(--ease-out); }
.site-header.is-floating .brand img { height: 40px; }
.nav-list { display: flex; align-items: center; gap: .25rem; list-style: none; }
.nav-list a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 .9rem;
  text-decoration: none; font-weight: 500; font-size: .98rem; border-radius: 999px; color: var(--soft-cream);
  border: 1px solid transparent;
}
.nav-list a:hover { background: rgba(241, 226, 209, .08); }
.nav-list a[aria-current="page"] { border-color: var(--rule-strong); color: var(--cream); background: rgba(241, 226, 209, .06); }
.nav-list .nav-cta { background: var(--red); color: var(--cream); font-weight: 700; margin-left: .5rem; }
.nav-list .nav-cta:hover { background: var(--red); filter: brightness(1.2); }
.nav-toggle {
  display: none; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: 0 1rem; border-radius: 999px;
  background: var(--cream); color: var(--oxblood); border: 0; font-weight: 700; cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }
@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .nav-list {
    display: none; position: absolute; left: var(--gutter); right: var(--gutter); top: calc(100% + 6px);
    flex-direction: column; align-items: stretch; gap: .25rem;
    padding: 12px; background: var(--wine); border-radius: var(--radius-lg);
    border: 1px solid var(--rule); box-shadow: 0 24px 40px -20px rgba(20, 2, 1, .8);
  }
  .nav-list.is-open { display: flex; }
  .nav-list a { min-height: 50px; padding: 0 1rem; font-size: 1.05rem; }
  .nav-list .nav-cta { margin: .5rem 0 0; justify-content: center; }
  .no-js .nav-list { display: flex; position: static; box-shadow: none; border: 0; padding: 0 0 12px; background: none; }
  .no-js .nav-toggle { display: none; }
  .no-js .nav { flex-wrap: wrap; }
  .site-header.is-floating .nav { padding-right: 6px; }
}

/* ---------- Hero (home) ---------- */
.hero { padding: clamp(24px, 4vw, 48px) 0 clamp(56px, 7vw, 96px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-role { margin-bottom: 1.5rem; }
.hero .display { margin-bottom: 1.5rem; }
.hero .lede { margin-bottom: 2.25rem; }
.hero-note { margin-top: 1.5rem; font-size: .98rem; color: var(--muted); }
.hero-note a { color: var(--cream); font-weight: 700; text-decoration-color: var(--red); text-underline-offset: 4px; text-decoration-thickness: 2px; }

/* ---------- Results strip ---------- */
.results { padding: clamp(48px, 6vw, 72px) 0 0; overflow: hidden; }
.results-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.results-grid { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; }
.result { padding: 0 clamp(16px, 2vw, 28px); border-left: 1px solid var(--rule); }
.result:first-child { padding-left: 0; border-left: 0; }
.result-value {
  display: block; font-family: var(--font-accent); font-weight: 800; letter-spacing: -0.02em;
  font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; color: var(--heading); margin-bottom: .6rem;
}
.result-value small { font-size: .42em; letter-spacing: .02em; margin-left: .15em; color: var(--red); }
.result-label { display: block; font-weight: 500; font-size: 1.05rem; line-height: 1.35; margin-bottom: .5rem; color: var(--text); }
.result-context { display: block; font-size: .88rem; color: var(--muted); line-height: 1.45; }
@media (max-width: 960px) {
  .results-grid { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
  .result:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 520px) {
  .results-grid { grid-template-columns: 1fr; row-gap: 1.75rem; }
  .result { padding: 0 0 1.75rem; border-left: 0; border-bottom: 1px solid var(--rule); }
  .result:last-child { border-bottom: 0; padding-bottom: 0; }
}

/* Tool strip (from the motion reference: slow marquee; pausable, static for reduced motion) */
.tool-strip { position: relative; margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--rule); display: flex; align-items: center; }
.tool-viewport {
  flex: 1; min-width: 0; overflow: hidden; padding: 18px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.tool-track { display: flex; width: max-content; }
.tool-track ul { display: flex; list-style: none; flex: none; }
.tool-track li {
  display: inline-flex; align-items: center; gap: 1.25rem; padding-right: 1.25rem; white-space: nowrap;
  font-family: var(--font-accent); font-weight: 700; font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--heading);
}
.tool-track li::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.tool-pause {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin: 0 0 0 .5rem; border-radius: 50%;
  border: 1px solid var(--rule-strong); background: transparent; color: var(--heading); cursor: pointer;
}
.tool-pause svg { width: 16px; height: 16px; }
.tool-pause .icon-play { display: none; }
.tool-strip.is-paused .tool-pause .icon-play { display: block; }
.tool-strip.is-paused .tool-pause .icon-pause { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .motion .tool-track { animation: marquee 48s linear infinite; }
  .tool-strip.is-paused .tool-track,
  .tool-strip:hover .tool-track, .tool-strip:focus-within .tool-track { animation-play-state: paused; }
}
@keyframes marquee { to { transform: translateX(-50%); } }
/* Without motion the list simply wraps */
html:not(.motion) .tool-viewport { -webkit-mask-image: none; mask-image: none; }
html:not(.motion) .tool-track { width: auto; }
html:not(.motion) .tool-track ul { flex: 1 1 100%; flex-wrap: wrap; row-gap: .5rem; }
html:not(.motion) .tool-track ul[aria-hidden="true"], html:not(.motion) .tool-pause { display: none; }
@media (prefers-reduced-motion: reduce) {
  .tool-viewport { -webkit-mask-image: none; mask-image: none; }
  .tool-track { width: auto; }
  .tool-track ul { flex: 1 1 100%; flex-wrap: wrap; row-gap: .5rem; }
  .tool-track ul[aria-hidden="true"], .tool-pause { display: none; }
}

/* ---------- Section heads ---------- */
.section-head { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 2rem; align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head .lede { margin-top: 1rem; }
@media (max-width: 720px) { .section-head { grid-template-columns: 1fr; } }

/* ---------- Carousel: "Selected work" row (from the motion reference) ----------
   A full-bleed row of visual-first cards. Each card is as wide as its
   project (screens are wide, reels are tall), the active card lines up with
   the page column, and neighbours peek in from both edges. */
.carousel { position: relative; --work-h: clamp(300px, 34vw, 440px); --start: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); }
.carousel-viewport {
  overflow: hidden; touch-action: pan-y; width: 100vw; margin-left: calc(50% - 50vw);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 calc(var(--start) * .6), #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent 0, #000 calc(var(--start) * .6), #000 94%, transparent);
  cursor: grab; user-select: none; -webkit-user-select: none;
}
.carousel-viewport.is-dragging { cursor: grabbing; }
.carousel-viewport img { -webkit-user-drag: none; }
.carousel-track {
  display: flex; align-items: flex-start; gap: clamp(16px, 2.2vw, 28px);
  padding: 4px var(--start) 8px; width: max-content;
  transition: transform .6s var(--ease-out); will-change: transform;
}
.carousel-viewport.is-dragging .carousel-track { transition: none; }
@media (prefers-reduced-motion: reduce) { .carousel-track { transition: none; } }
.carousel-slide { flex: none; min-width: 0; transition: opacity .45s var(--ease-out); }
.carousel-slide[aria-hidden="true"] { opacity: .42; cursor: pointer; }
.carousel-slide[aria-hidden="true"]:hover { opacity: .7; }
.no-js .carousel-viewport { width: auto; margin: 0; -webkit-mask-image: none; mask-image: none; cursor: auto; }
.no-js .carousel-track { flex-direction: column; padding: 0; width: auto; }
.no-js .carousel-controls { display: none; }

.work-card { display: flex; flex-direction: column; gap: .9rem; }
.work-media {
  position: relative; height: var(--work-h); border-radius: 18px; overflow: hidden;
  background: var(--media); box-shadow: 0 24px 48px -26px rgba(10, 1, 0, .9); display: grid; place-items: center;
}
.work-media .shot-btn { height: 100%; width: auto; border: 0; border-radius: 0; background: transparent; }
.work-media .shot-btn:hover { transform: none; box-shadow: none; }
.work-media .shot-btn img, .work-media .tile-img { height: 100%; width: auto; max-width: min(720px, 78vw); object-fit: contain; }
/* tiles that open their case file: the whole card is the target (the text link inside is for keyboards) */
.work-card[data-href] { cursor: pointer; }
.work-card[data-href] .tile-img { display: block; transition: transform .35s var(--ease-out), filter .35s; }
.work-card[data-href]:hover .tile-img { transform: scale(1.015); filter: brightness(1.06); }
.work-card[data-href]:hover .work-link { text-decoration: underline; text-underline-offset: .2em; }
.slide--tall .work-media { background: #fff; }
.work-media .video-frame { height: 100%; width: auto; border-radius: 0; }
.slide--video-wide .work-media .video-frame { width: min(calc(var(--work-h) * 16 / 9), 78vw); height: auto; }
.work-media .scroll-frame { height: 100%; width: min(300px, 70vw); border: 0; border-radius: 0; }
.work-media .placeholder { width: min(520px, 78vw); height: 100%; border-radius: 18px; }
/* The caption never widens the card: it wraps to the media's width */
.work-caption { width: 0; min-width: 100%; display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem 1rem; }
.work-caption .eyebrow { font-size: .7rem; margin-bottom: .2rem; }
.work-title { font-family: var(--font-display); font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.25; }
.work-result { flex: none; text-align: right; line-height: 1.2; }
.work-result strong { display: inline-block; font-family: var(--font-accent); font-weight: 800; font-size: 1.35rem; line-height: 1; color: var(--cream); background: var(--red); padding: .18em .4em; border-radius: 8px; }
.work-result span { display: block; margin-top: .3rem; font-size: .78rem; color: var(--muted); max-width: 14em; margin-left: auto; }
.work-text { width: 0; min-width: 100%; font-size: .9rem; color: var(--muted); }
.work-link { align-self: flex-start; font-size: .92rem; }
.slide--video .work-caption, .slide--tall .work-caption, .slide--page .work-caption, .slide--reel .work-caption { flex-direction: column; }
.slide--video .work-result, .slide--tall .work-result, .slide--page .work-result, .slide--reel .work-result { text-align: left; }
.slide--video .work-result span, .slide--tall .work-result span, .slide--page .work-result span, .slide--reel .work-result span { margin-left: 0; }
/* Talking-head Reels: shown edge to edge, the whole 9:16 video and nothing around it (no rounding, shadow, panel or tint) */
.slide--reel .work-media { border-radius: 0; background: transparent; box-shadow: none; overflow: visible; }
.slide--reel .work-media .video-frame { border-radius: 0; background: transparent; }
.slide--reel .video-frame video, .slide--reel .video-frame img { object-fit: contain; }
.slide--reel .play-btn { background: transparent; }
@media (max-width: 600px) {
  .carousel { --work-h: 360px; }
  .slide--shot .work-media { height: auto; }
  .slide--shot .work-media .shot-btn, .slide--shot .work-media .shot-btn img, .slide--shot .work-media .tile-img { height: auto; width: 80vw; max-width: none; }
  .work-caption { flex-direction: column; }
  .work-result { text-align: left; }
  .work-result span { margin-left: 0; }
}

.carousel-controls { display: flex; align-items: center; gap: 1rem; }
.carousel-btn {
  display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  border: 1.5px solid var(--rule-strong); background: transparent; color: var(--cream); cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .15s var(--ease-out);
}
.carousel-btn:hover { background: var(--cream); color: var(--oxblood); border-color: var(--cream); }
.carousel-btn:active { transform: scale(.93); }
.carousel-btn svg { width: 20px; height: 20px; }
.carousel-dots { display: flex; gap: .25rem; }
.carousel-dot {
  width: 32px; height: 32px; border: 0; background: transparent; cursor: pointer; padding: 0;
  display: grid; place-items: center;
}
.carousel-dot::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  border: 1.5px solid var(--beige); background: transparent; transition: all .25s var(--ease-out);
}
.carousel-dot[aria-current="true"]::before { background: var(--red); border-color: var(--cream); width: 28px; border-radius: 999px; }
.carousel-status { font-size: .9rem; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 4ch; }
.carousel-footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.5rem; flex-wrap: wrap; }
.carousel--single .carousel-footer { display: none; }

/* ---------- Portfolio sliders (Home) ---------- */
.portfolio-intro { padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(24px, 3vw, 40px); }
.portfolio-intro .lede { margin-top: 1rem; }
.jump-links ul { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.75rem; }
.jump-links a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 1rem; border-radius: 999px;
  border: 1px solid var(--rule-strong); background: rgba(241, 226, 209, .05); text-decoration: none; font-weight: 500; font-size: .92rem;
  transition: background-color .2s, border-color .2s;
}
.jump-links a:hover { border-color: var(--cream); background: rgba(241, 226, 209, .1); }
.slider-block { padding: clamp(48px, 6vw, 80px) 0; scroll-margin-top: 76px; overflow-x: hidden; overflow-x: clip; }
.slider-block--alt { background: var(--bg-alt); --card: var(--oxblood); }
.slider-head { display: grid; grid-template-columns: auto 1fr; gap: 0 clamp(16px, 3vw, 40px); align-items: start; margin-bottom: clamp(24px, 3vw, 40px); }
.slider-num { font-family: var(--font-editorial); font-style: italic; font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1; color: var(--beige); }
.slider-head .h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.slider-head .lede { margin-top: .6rem; font-size: 1.05rem; }
.slider-note { margin-top: .5rem; font-size: .88rem; color: var(--muted); font-style: italic; }
.case-group { padding-top: clamp(40px, 5vw, 64px); scroll-margin-top: 90px; }
.case-group + .case-group { margin-top: clamp(24px, 3vw, 40px); border-top: 1px solid var(--rule); }
.case-thumb img.is-page { left: 22.5%; width: 55%; height: calc(100% - var(--pad)); object-fit: cover; object-position: top; border-radius: 8px 8px 0 0; box-shadow: var(--shadow); }

/* ---------- Meet Shemer ---------- */
.meet .lede { margin: 1.25rem 0 2.5rem; }
.intro-video { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--rule); }
.intro-video video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.intro-status { display: flex; align-items: center; gap: .6rem; margin-top: 1rem; font-weight: 500; color: var(--muted); }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px var(--cream); }

/* ---------- Services (light panel, big stacked titles) ---------- */
.services-panel { margin-inline: clamp(8px, 1.5vw, 20px); }
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--radius-lg); overflow: hidden; list-style: none; }
.service { background: var(--soft-cream); padding: clamp(24px, 3.5vw, 44px); display: flex; flex-direction: column; gap: .85rem; }
.service-num { font-family: var(--font-editorial); font-style: italic; font-size: 1.35rem; color: var(--red); }
.service .h3 {
  font-family: var(--font-accent); font-weight: 800; font-size: clamp(1.6rem, 2.8vw, 2.3rem); line-height: 1.05; letter-spacing: -.015em;
  text-shadow: 0 3px 0 rgba(140, 16, 7, .22), 0 6px 0 rgba(140, 16, 7, .1);
}
.service ul { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .4rem; }
.service li, .chip {
  font-size: .85rem; font-weight: 500; padding: .3rem .75rem; border-radius: 999px;
  border: 1px solid var(--rule-strong); background: rgba(241, 226, 209, .05);
}
.on-light .service li, .on-light .chip { background: #F8EDDF; }
.supporting { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; }
.supporting-label { font-family: var(--font-editorial); font-style: italic; font-size: 1.25rem; color: var(--heading); }
.supporting ul { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; }
@media (max-width: 760px) { .services-grid { grid-template-columns: 1fr; } }

/* ---------- Testimonials ---------- */
.quote-intro { max-width: 22em; }
.testimonials { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; align-items: start; }
.testimonial-stack { display: grid; gap: 20px; }
.testimonial {
  margin: 0; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 1.25rem; position: relative;
}
.testimonial--lead { border-color: transparent; }
.testimonial::before {
  content: "\201C"; font-family: var(--font-display); font-size: 5rem; line-height: .6; color: var(--beige); height: .45em;
}
.testimonial--lead::before { color: var(--red); }
.testimonial blockquote { margin: 0; font-size: 1.05rem; line-height: 1.7; }
.testimonial--lead blockquote { font-family: var(--font-display); font-size: clamp(1.15rem, 1.7vw, 1.35rem); line-height: 1.55; color: var(--oxblood); }
.testimonial blockquote p + p { margin-top: .75rem; }
.testimonial figcaption { display: flex; align-items: center; gap: .9rem; margin-top: auto; }
.avatar {
  flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(241, 226, 209, .12); color: var(--cream); font-weight: 700; font-size: .95rem; border: 1px solid var(--rule-strong);
}
.testimonial--lead .avatar { background: var(--red); color: var(--cream); border-color: transparent; }
.who { display: flex; flex-direction: column; line-height: 1.35; }
.who strong { font-weight: 700; color: var(--heading); }
.who span { font-size: .9rem; color: var(--muted); }
.proof-btn {
  align-self: flex-start; background: none; border: 0; padding: 0; cursor: pointer;
  font-size: .88rem; font-weight: 700; color: var(--heading); text-decoration: underline; text-underline-offset: 3px;
  min-height: 32px;
}
@media (max-width: 860px) { .testimonials { grid-template-columns: 1fr; } }

/* ---------- Contact CTA band ---------- */
.cta-band { position: relative; overflow: hidden; }
.cta-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 2rem; align-items: end; }
.cta-copy { padding: clamp(64px, 8vw, 110px) 0; }
.cta-copy .h2 { margin-bottom: 1.25rem; max-width: 12em; font-size: clamp(2.6rem, 6vw, 4.75rem); line-height: 1; }
.cta-copy .lede { margin-bottom: 2rem; color: var(--text); }
.cta-details { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .5rem 2rem; font-size: .98rem; }
.cta-details a { color: var(--heading); text-decoration-color: var(--red); text-underline-offset: 4px; }
.cta-photo { align-self: stretch; position: relative; display: flex; align-items: flex-end; justify-content: center; min-height: 360px; padding-top: 32px; }
.cta-photo::before {
  content: ""; position: absolute; left: 8%; right: 0; bottom: 0; height: 72%;
  background: var(--oxblood); border-radius: 999px 999px 0 0; box-shadow: inset 0 0 0 2px rgba(255, 240, 196, .12);
}
.cta-photo img { position: relative; height: 480px; width: auto; max-width: 100%; object-fit: contain; object-position: bottom; }
@media (max-width: 860px) {
  .cta-grid { grid-template-columns: 1fr; }
  .cta-copy { padding-bottom: 0; }
  .cta-photo { min-height: 0; width: min(300px, 80%); justify-self: center; padding-top: 0; }
  .cta-photo img { height: 360px; }
}

/* ---------- Social icon links (WhatsApp, LinkedIn, Instagram, Upwork) ---------- */
.social-links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.social-links .social-link {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%;
  border: 1.5px solid var(--rule-strong); color: var(--heading); background: transparent; text-decoration: none;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.social-links .social-link svg { width: 20px; height: 20px; }
.social-links .social-link:hover { background: var(--red); border-color: var(--red); color: var(--cream); transform: translateY(-2px); text-decoration: none; }
.social-links .social-link[aria-disabled="true"] { opacity: .5; cursor: default; }
.social-links .social-link[aria-disabled="true"]:hover { background: transparent; border-color: var(--rule-strong); color: var(--heading); transform: none; }
.contact-list .social-links { margin-top: 0; }
.site-footer .social-links { margin-top: 1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--oxblood); color: var(--beige); padding: 56px 0 32px; border-top: 1px solid var(--rule); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem; }
.footer-brand img { height: 64px; width: auto; margin-bottom: 1rem; }
.footer-brand p { max-width: 24em; font-size: .95rem; }
.site-footer h2 { font-family: var(--font-body); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cream); margin-bottom: 1rem; }
.site-footer ul { list-style: none; display: grid; gap: .35rem; }
.site-footer a { color: var(--soft-cream); text-decoration: none; display: inline-block; padding: .2rem 0; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-base { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); font-size: .85rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding: clamp(48px, 7vw, 96px) 0 clamp(32px, 4vw, 56px); border-bottom: 1px solid var(--rule); }
.page-head .display { font-size: clamp(2.5rem, 5.5vw, 4.5rem); margin-bottom: 1.25rem; }

/* ---------- Case study cards ---------- */
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 2.5vw, 32px); list-style: none; }
.case-card {
  height: 100%; display: flex; flex-direction: column; background: var(--card);
  border: 1px solid var(--rule); border-radius: var(--radius-lg); overflow: hidden;
  text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.case-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--rule-strong); }
.case-card:focus-visible { outline-offset: 4px; }
.case-thumb { position: relative; aspect-ratio: 16 / 10; background: var(--media); overflow: hidden; --pad: clamp(14px, 2vw, 24px); }
.case-thumb img {
  position: absolute; top: var(--pad); left: var(--pad);
  width: calc(100% - 2 * var(--pad)); height: calc(100% - 2 * var(--pad));
  object-fit: contain; border-radius: 8px;
}
.case-body { padding: clamp(20px, 2.5vw, 32px); display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.case-body .h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
.case-body p { color: var(--muted); }
.case-metric { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--rule); display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.case-metric strong { font-family: var(--font-accent); font-weight: 800; font-size: 1.9rem; line-height: 1; color: var(--cream); }
.case-metric span { font-size: .95rem; color: var(--muted); }
.case-cta { font-weight: 700; display: inline-flex; gap: .4rem; align-items: center; margin-top: .6rem; color: var(--heading); }
.case-cta svg { width: 1em; height: 1em; }
@media (max-width: 760px) { .case-grid { grid-template-columns: 1fr; } }

/* ---------- Case study detail ---------- */
.breadcrumb { font-size: .95rem; margin-bottom: 1.5rem; }
.breadcrumb a { font-weight: 700; text-decoration: none; display: inline-flex; gap: .4rem; align-items: center; min-height: 44px; color: var(--heading); }
.breadcrumb svg { width: 1em; height: 1em; }
.detail-head { padding: clamp(24px, 4vw, 48px) 0 clamp(32px, 5vw, 64px); }
.detail-head .display { font-size: clamp(2.3rem, 5vw, 4.25rem); margin: .75rem 0 1.25rem; max-width: 16em; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin: 0; }
.facts div { padding: 1.1rem 1.25rem 1.1rem 0; }
.facts div + div { padding-left: 1.25rem; border-left: 1px solid var(--rule); }
.facts dt { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .3rem; }
.facts dd { margin: 0; font-weight: 500; line-height: 1.4; color: var(--soft-cream); }
@media (max-width: 860px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts div:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 480px) {
  .facts { grid-template-columns: 1fr; }
  .facts div, .facts div + div { padding: 1rem 0; border-left: 0; }
  .facts div + div { border-top: 1px solid var(--rule); }
}
.metric-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; list-style: none; }
.metric-card { background: var(--soft-cream); color: var(--wine); border-radius: var(--radius); padding: 1.5rem; }
.metric-card strong { display: block; font-family: var(--font-accent); font-weight: 800; font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1; color: var(--oxblood); margin-bottom: .6rem; }
.metric-card span { display: block; font-weight: 500; }
.metric-card small { display: block; margin-top: .5rem; color: #6A2F24; font-size: .85rem; line-height: 1.45; }
.detail-body { display: grid; grid-template-columns: 260px 1fr; gap: clamp(24px, 5vw, 72px); }
.detail-body > aside { position: sticky; top: 100px; align-self: start; }
.detail-body > aside ol { list-style: none; padding: 0; margin: 0; display: grid; gap: .25rem; border-left: 1px solid var(--rule); }
.detail-body > aside a { display: block; padding: .45rem 1rem; text-decoration: none; color: var(--muted); font-weight: 500; }
.detail-body > aside a:hover { color: var(--cream); }
.detail-section { padding-bottom: clamp(32px, 4vw, 56px); margin-bottom: clamp(32px, 4vw, 56px); border-bottom: 1px solid var(--rule); scroll-margin-top: 100px; }
.detail-section:last-child { border-bottom: 0; }
.detail-section > .h3 { margin-bottom: 1rem; }
.detail-section p + p { margin-top: 1rem; }
.detail-section .prose { max-width: 40em; }
.detail-section strong { color: var(--cream); }
.checklist { list-style: none; display: grid; gap: .65rem; max-width: 42em; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: .75rem; }
.checklist li::before {
  content: ""; width: 22px; height: 22px; margin-top: .15em; border-radius: 50%;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFF0C4' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.note {
  margin-top: 1.25rem; padding: .9rem 1.1rem; border-left: 3px solid var(--red);
  background: var(--wine); border-radius: 0 10px 10px 0; font-size: .92rem; color: var(--beige);
}
.quote-source { margin-top: 1rem; font-family: var(--font-editorial); font-style: italic; font-size: 1.15rem; color: var(--muted); }
@media (max-width: 960px) {
  .detail-body { grid-template-columns: 1fr; }
  .detail-body > aside { display: none; }
}
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pager a {
  display: flex; flex-direction: column; gap: .3rem; padding: 1.25rem 1.5rem;
  border: 1px solid var(--rule); border-radius: var(--radius); text-decoration: none; background: var(--wine);
  transition: border-color .2s;
}
.pager a:hover { border-color: var(--cream); }
.pager a:last-child { text-align: right; }
.pager span { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--beige); }
.pager strong { font-family: var(--font-display); font-weight: 400; font-size: 1.2rem; color: var(--cream); }
@media (max-width: 600px) { .pager { grid-template-columns: 1fr; } .pager a:last-child { text-align: left; } }

/* ---------- Galleries, frames, lightbox ---------- */
.gallery { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); list-style: none; }
.gallery--wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.gallery--square { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.gallery--tall { grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); align-items: start; }
@media (max-width: 560px) { .gallery--square, .gallery--tall { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.shot { margin: 0; }
.shot-btn {
  display: block; width: 100%; padding: 0; border: 1px solid var(--rule); border-radius: var(--radius);
  background: var(--wine); cursor: zoom-in; overflow: hidden; transition: box-shadow .2s, transform .2s var(--ease), border-color .2s;
}
.shot-btn:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--rule-strong); }
.shot-btn img { width: 100%; height: auto; }
.shot figcaption { font-size: .88rem; color: var(--muted); margin-top: .6rem; line-height: 1.45; }

.lightbox {
  width: min(1100px, 94vw); max-height: 92vh; padding: 0; border: 1px solid var(--rule); border-radius: var(--radius-lg);
  background: var(--oxblood); color: var(--soft-cream); box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
.lightbox::backdrop { background: rgba(20, 2, 1, .86); }
.lightbox-inner { display: flex; flex-direction: column; max-height: 92vh; }
.lightbox-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .75rem .75rem .75rem 1.25rem; border-bottom: 1px solid var(--rule); }
.lightbox-bar p { font-size: .92rem; color: var(--beige); }
.lightbox-close {
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--cream); color: var(--oxblood);
  display: grid; place-items: center; cursor: pointer;
}
.lightbox-close svg { width: 18px; height: 18px; }
.lightbox-body { overflow: auto; padding: 1rem; display: grid; place-items: center; background: rgba(0, 0, 0, .3); }
.lightbox-body img { max-width: 100%; height: auto; border-radius: 8px; background: #fff; }

/* ---------- Video cards ---------- */
.video-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); list-style: none; }
.video-grid--6 { grid-template-columns: repeat(6, 1fr); gap: 16px; }
.video-grid--4 { grid-template-columns: repeat(4, 1fr); }
.gallery--five { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 960px) {
  .video-grid--6, .gallery--five { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .video-grid--6, .video-grid--4, .gallery--five { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
.video-card { margin: 0; }
.video-frame {
  position: relative; aspect-ratio: 9 / 16; border-radius: var(--radius); overflow: hidden; background: var(--wine);
}
.video-frame--landscape { aspect-ratio: 16 / 9; }
.video-frame video, .video-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.play-btn {
  position: absolute; inset: 0; width: 100%; border: 0; padding: 0; cursor: pointer;
  background: linear-gradient(180deg, rgba(62, 7, 3, 0) 55%, rgba(62, 7, 3, .6) 100%);
  display: grid; place-items: center;
}
.play-btn span {
  width: 64px; height: 64px; border-radius: 50%; background: var(--red); color: var(--cream);
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .4); transition: transform .2s var(--ease);
  border: 1.5px solid rgba(255, 240, 196, .5);
}
.play-btn:hover span, .play-btn:focus-visible span { transform: scale(1.08); }
.play-btn svg { width: 24px; height: 24px; margin-left: 3px; }
.play-btn:focus-visible { outline-offset: -4px; }
.video-card figcaption { margin-top: .65rem; font-size: .92rem; line-height: 1.4; }
.video-card figcaption strong { display: block; font-weight: 700; color: var(--cream); }
.video-card figcaption span { color: var(--muted); font-size: .85rem; }

.placeholder {
  display: grid; place-items: center; text-align: center; gap: .5rem; padding: 1.5rem;
  border: 2px dashed var(--rule-strong); border-radius: var(--radius); background: rgba(241, 226, 209, .04); color: var(--muted);
}
.placeholder strong { color: var(--cream); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }

/* Tall email / funnel designs: complete design, scrollable inside a fixed frame */
.scroll-frame {
  max-width: 360px; margin-inline: auto; /* source designs are only ~370px wide; never enlarge them */
  height: 520px; overflow-y: auto; border: 1px solid var(--rule); border-radius: var(--radius);
  background: #fff; scrollbar-width: thin; overscroll-behavior: contain;
}
.scroll-frame img { width: 100%; height: auto; }
.scroll-hint { font-size: .8rem; color: var(--muted); margin-top: .35rem; }

/* ---------- Creative page sub-nav ---------- */
.subnav { position: sticky; top: calc(var(--header-h) + 1px); z-index: 20; background: rgba(62, 7, 3, .94); border-bottom: 1px solid var(--rule); }
.subnav ul { list-style: none; display: flex; gap: .4rem; overflow-x: auto; padding: .75rem 0; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a {
  display: inline-flex; align-items: center; white-space: nowrap; min-height: 40px; padding: 0 1rem;
  border: 1px solid var(--rule-strong); border-radius: 999px; text-decoration: none; font-weight: 500; font-size: .92rem; background: rgba(241, 226, 209, .05);
}
.subnav a:hover { border-color: var(--cream); }
.creative-block { scroll-margin-top: 150px; }
.creative-block + .creative-block { border-top: 1px solid var(--rule); }
.block-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: 2rem; }
.block-head .h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.block-meta { font-family: var(--font-editorial); font-style: italic; font-size: 1.2rem; color: var(--muted); }
.subhead { font-family: var(--font-body); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--beige); margin: 2.25rem 0 1rem; }
.subhead:first-of-type { margin-top: 0; }

/* ---------- About ---------- */
.about-hero { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.about-photo { position: relative; aspect-ratio: 4 / 5; width: min(460px, 100%); justify-self: center; }
.about-photo::before { content: ""; position: absolute; inset: 12% 0 0; background: var(--wine); border-radius: var(--radius-lg); border: 1px solid var(--rule); }
.about-photo::after { content: ""; position: absolute; width: 26%; aspect-ratio: 1; left: -5%; top: 4%; border-radius: 50%; background: var(--red); }
.about-photo img { position: absolute; z-index: 1; bottom: 0; left: 50%; transform: translateX(-50%); height: 100%; width: auto; max-width: none; object-fit: contain; object-position: bottom; }
.about-hero .prose p + p { margin-top: 1rem; }
.about-hero .prose { color: var(--muted); font-size: 1.08rem; }
.about-hero .prose strong { color: var(--cream); font-weight: 700; }
@media (max-width: 880px) { .about-hero { grid-template-columns: 1fr; } .about-photo { width: min(340px, 86%); } }

.timeline { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.role { display: grid; grid-template-columns: 220px 1fr; gap: 1.5rem 3rem; padding: 2rem 0; border-bottom: 1px solid var(--rule); }
.role-when { font-family: var(--font-editorial); font-style: italic; font-size: 1.3rem; color: var(--beige); }
.role .h3 { margin-bottom: .75rem; }
.role ul { padding-left: 1.1rem; color: var(--muted); display: grid; gap: .4rem; }
.role li::marker { color: var(--beige); }
@media (max-width: 720px) { .role { grid-template-columns: 1fr; gap: .5rem; } }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }
.tool-groups { display: grid; gap: 1.25rem; }
.tool-group h3 { font-family: var(--font-body); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--beige); margin-bottom: .6rem; }
.tool-group ul { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; }

.contact-panel { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.contact-list { list-style: none; display: grid; gap: 0; margin: 2rem 0; border-top: 1px solid var(--rule); }
.contact-list li { display: grid; grid-template-columns: 140px 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.contact-list span { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact-list a { color: var(--heading); font-size: 1.15rem; text-underline-offset: 4px; word-break: break-word; }
.contact-photo {
  position: relative; aspect-ratio: 3 / 4; width: min(360px, 100%); justify-self: center; align-self: end;
  margin-bottom: calc(-1 * clamp(64px, 9vw, 120px)); isolation: isolate;
}
.contact-photo::before { content: ""; position: absolute; z-index: 0; inset: 14% 4% 0; background: var(--oxblood); border-radius: 999px 999px 18px 18px; box-shadow: inset 0 0 0 2px rgba(255, 240, 196, .12); }
.contact-photo::after {
  content: ""; position: absolute; z-index: 0; inset: -5% -8% -3%; pointer-events: none; opacity: .46;
  clip-path: polygon(50% 0, 94% 13%, 91% 62%, 79% 82%, 50% 100%, 21% 82%, 9% 62%, 6% 13%);
  background: radial-gradient(ellipse at 50% 72%, rgba(255, 196, 102, .28), transparent 67%);
  filter: drop-shadow(0 0 18px rgba(255, 196, 102, .32));
}
.contact-photo img { position: absolute; z-index: 1; bottom: 0; left: 50%; transform: translateX(-50%); height: 100%; width: auto; max-width: none; object-fit: contain; object-position: bottom; }
.contact-panel .btn--primary { position: relative; overflow: hidden; isolation: isolate; }
.contact-panel .btn--primary::after {
  content: ""; position: absolute; z-index: 0; top: -45%; bottom: -45%; left: -45%; width: 24%;
  background: linear-gradient(90deg, transparent, rgba(255, 240, 196, .46), transparent); transform: rotate(18deg);
  opacity: 0; pointer-events: none;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .contact-panel .btn--primary:hover::after, .contact-panel .btn--primary:focus-visible::after { animation: contact-light-sweep .8s var(--ease-out); }
  .contact-photo::after { animation: contact-guard-glow 3.8s ease-in-out infinite alternate; }
}
@keyframes contact-light-sweep { 0% { left: -45%; opacity: 0; } 20% { opacity: .8; } 100% { left: 130%; opacity: 0; } }
@keyframes contact-guard-glow { from { opacity: .28; transform: scale(.985); } to { opacity: .62; transform: scale(1.02); } }
@media (max-width: 820px) {
  .contact-panel { grid-template-columns: 1fr; }
  .contact-photo { width: min(280px, 80%); }
  .contact-list li { grid-template-columns: 1fr; gap: .2rem; }
}

.noscript-msg { padding: 1rem 1.25rem; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--wine); }

/* ---------- Editing / campaign fields (tabs on Home, sections on Creative Work) ---------- */
.field-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.field-tab {
  display: inline-flex; align-items: center; gap: .6rem; min-height: 46px; padding: 0 1.1rem 0 .5rem;
  border: 1.5px solid var(--rule-strong); border-radius: 999px; background: transparent; color: var(--soft-cream);
  font-weight: 700; font-size: .95rem; cursor: pointer; transition: border-color .2s, background-color .2s, color .2s;
}
.field-tab:hover { border-color: var(--cream); }
.field-tab[aria-selected="true"] { background: var(--red); border-color: var(--red); color: var(--cream); }
.field-tab-num {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: rgba(241, 226, 209, .12); color: var(--cream); font-family: var(--font-editorial); font-style: italic; font-size: 1.05rem; font-weight: 400;
}
.field-tab[aria-selected="true"] .field-tab-num { background: var(--cream); color: var(--oxblood); }
.field-intro { color: var(--muted); margin-bottom: 1.25rem; max-width: 46em; }
.field-intro strong { color: var(--cream); }
.video-field + .video-field { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--rule); }
.video-field .subhead { margin-top: 0; margin-bottom: .4rem; scroll-margin-top: 150px; }
.video-field { scroll-margin-top: 150px; }
.field-placeholder { min-height: 180px; }
@media (max-width: 600px) {
  .field-tabs { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter) 6px; scrollbar-width: none; }
  .field-tabs::-webkit-scrollbar { display: none; }
  .field-tab { flex: none; }
}

/* 16:9 videos (e.g. podcast episodes) inside sliders and grids */
.video-grid--wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.case-field { scroll-margin-top: 90px; }
.case-field + .case-field { margin-top: clamp(3rem, 5vw, 4.5rem); }
.case-field .subhead { margin: 0 0 .35rem; }

/* =========================================================
   Motion & surface effects
   Everything here is decorative. Content is fully visible
   without it: reveals only apply when JS adds .motion to <html>,
   and all movement is switched off for prefers-reduced-motion.
   ========================================================= */

/* ---------- Background prints (static, low contrast) ---------- */
.print-dots, .print-grid, .print-grain, [data-glow] { position: relative; isolation: isolate; }
.print-dots::before, .print-grid::before, .print-grain::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
}
.print-dots::before {
  background-image: radial-gradient(circle, rgba(255, 240, 196, .16) 1px, transparent 1.6px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 55% 75% at 80% 45%, #000 15%, transparent 75%);
          mask-image: radial-gradient(ellipse 55% 75% at 80% 45%, #000 15%, transparent 75%);
}
.print-grid::before {
  background-image:
    linear-gradient(var(--print-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--print-line) 1px, transparent 1px);
  background-size: 56px 56px; background-position: -1px -1px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 90%);
          mask-image: linear-gradient(180deg, #000 0%, transparent 90%);
}
.print-grain::before {
  opacity: .08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}
.on-light.print-grain::before { filter: invert(1); opacity: .06; }

/* Hero: a soft dark-red glow behind the badge that drifts very slowly */
.hero-glow {
  position: absolute; z-index: -1; pointer-events: none; width: 70vmax; height: 70vmax; right: -25vmax; top: -20vmax;
  background: radial-gradient(circle, rgba(140, 16, 7, .45), rgba(102, 11, 5, 0) 60%);
}
@media (prefers-reduced-motion: no-preference) {
  .hero-glow { animation: glow-drift 18s ease-in-out infinite alternate; }
}
@keyframes glow-drift { to { transform: translate(-6vmax, 4vmax) scale(1.08); } }

/* ---------- Light / dark section edges ---------- */
.edge-round { border-radius: var(--edge); }
.edge-top { border-radius: var(--edge) var(--edge) 0 0; }

/* ---------- Pointer glow (fine pointers only; JS sets --gx/--gy) ---------- */
[data-glow]::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  opacity: 0; transition: opacity .5s ease;
  background: radial-gradient(260px circle at var(--gx, 50%) var(--gy, 50%), var(--glow), transparent 70%);
}
[data-glow].glow-on::after { opacity: 1; }

/* ---------- Hero entrance: film-slate opening (Home) ----------
   A cream slate sits over the hero at first paint, claps, and turns away in
   under a second. It never takes clicks (pointer-events: none) and is hidden
   by default, so if the animation can't run, or motion is reduced, the
   finished hero shows straight away. */
.hero { perspective: 2000px; }
.hero-page { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .hero-page {
    display: grid; place-items: center; position: absolute; inset: 0; z-index: 5; pointer-events: none;
    background:
      linear-gradient(90deg, rgba(62, 7, 3, .14), transparent 7%, transparent 93%, rgba(62, 7, 3, .1)),
      var(--soft-cream);
    color: var(--oxblood); transform-origin: 0 50%;
    -webkit-backface-visibility: hidden; backface-visibility: hidden;
    visibility: hidden;
    animation: page-turn .68s cubic-bezier(.66, 0, .24, 1) .26s both;
  }
  .hero-page::after { /* shading that deepens as the slate lifts */
    content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(62, 7, 3, 0), rgba(62, 7, 3, .45));
    opacity: 0; animation: page-shade .68s cubic-bezier(.66, 0, .24, 1) .26s both;
  }
  .slate-clapper { animation: clap .26s cubic-bezier(.5, 0, .75, 0) both; }
  .hero-grid > :first-child { animation: hero-in .6s var(--ease-out) .42s both; }
  .portrait-tag { animation: rise-in .5s var(--ease-out) .95s both; }
  .hero-chip { animation: rise-in .5s var(--ease-out) 1.1s both; }
}
.slate-clapper {
  position: absolute; left: 0; right: 0; top: 0; height: clamp(40px, 6vw, 64px); transform-origin: 0 100%;
  background: repeating-linear-gradient(-55deg, var(--oxblood) 0 34px, var(--soft-cream) 34px 68px);
  border-bottom: 3px solid var(--oxblood);
}
.hero-page-inner { text-align: center; padding: var(--gutter); }
.hero-page-title { font-family: var(--font-display); font-size: clamp(2.6rem, 7vw, 5.5rem); line-height: 1; letter-spacing: -.02em; }
.hero-page-title em { font-style: italic; color: var(--red); }
.hero-page-sub { margin-bottom: 1rem; font-size: .8rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--wine); }
.slate-grid { display: flex; justify-content: center; margin-top: 1.5rem; border: 2px solid var(--oxblood); border-radius: 8px; overflow: hidden; }
.slate-grid p { padding: .5rem 1.4rem; font-family: var(--font-accent); font-weight: 800; font-size: 1.4rem; line-height: 1; }
.slate-grid p + p { border-left: 2px solid var(--oxblood); }
.slate-grid span { display: block; font: 700 .62rem/1.4 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--wine); }
@keyframes clap { from { transform: rotate(-14deg); } }
@keyframes page-turn {
  0%   { visibility: visible; transform: rotateY(0); }
  100% { visibility: visible; transform: rotateY(-100deg); }
}
@keyframes page-shade { to { opacity: 1; } }
@keyframes hero-in { from { opacity: 0; transform: translateX(28px); } }

/* ---------- Case-study sequence markers ---------- */
.slate-mark {
  display: inline-flex; align-items: center; gap: .55rem; margin-bottom: .9rem;
  font: 600 .72rem/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .14em; color: var(--beige);
}
.slate-mark i { width: 8px; height: 8px; border-radius: 50%; background: #E0301E; box-shadow: 0 0 0 3px rgba(224, 48, 30, .2); }

/* ---------- Marketing Growth: campaign brief → verified result ---------- */
.result-flip { position: relative; height: 100%; perspective: 1400px; }
.rf-inner { position: relative; height: 100%; transform-style: preserve-3d; transition: transform .8s var(--ease-out); }
.result-flip.is-brief .rf-inner { transform: rotateY(180deg); }
.rf-face { height: 100%; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.rf-result { display: flex; }
.rf-brief {
  position: absolute; inset: 0; transform: rotateY(180deg); overflow: hidden;
  background: var(--soft-cream); color: var(--wine); padding: clamp(18px, 2.5vw, 30px);
  display: flex; flex-direction: column; gap: .7rem;
}
.rf-brief img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--wine); }
.rf-label { font: 700 .7rem/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.rf-brief h5 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.2rem, 1.8vw, 1.6rem); line-height: 1.2; color: var(--oxblood); }
.rf-brief dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; font-size: .88rem; }
.rf-brief dt { font-weight: 700; color: var(--oxblood); }
.rf-brief dd { margin: 0; }
.rf-next { margin-top: auto; font-weight: 700; color: var(--red); font-size: .9rem; }
.rf-toggle {
  position: absolute; right: 12px; top: 12px; z-index: 2; min-height: 36px; padding: 0 .9rem; border-radius: 999px;
  border: 1px solid rgba(255, 240, 196, .5); background: rgba(62, 7, 3, .85); color: var(--cream);
  font: 700 .78rem/1 var(--font-body); cursor: pointer;
}
.rf-toggle:hover { background: var(--red); }
@media (max-width: 600px) {
  .result-flip { min-height: 290px; }
  .rf-result { align-items: center; background: var(--media); }
  .rf-brief { padding: 16px; gap: .5rem; }
  .rf-brief dl { font-size: .8rem; }
}

/* ---------- Distinct entrances and slide changes per portfolio sequence ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.motion [data-reveal="slide"] { transform: translate3d(56px, 0, 0); }
  html.motion [data-reveal="flip"] { transform: perspective(1200px) rotateX(12deg) translate3d(0, 28px, 0); transform-origin: 50% 0; }
  html.motion [data-reveal="depth"] { transform: scale(.94) translate3d(0, 28px, 0); }
  html.motion [data-reveal].is-in { transform: none; }

  [data-transition="paid-ads"] .carousel-slide.is-entering .work-media { animation: focus-pull .5s var(--ease-out); }
  [data-transition="video"] .carousel-slide.is-entering .work-media { animation: edit-wipe .45s var(--ease-out); }
  [data-transition="growth"] .carousel-slide.is-entering .work-card { animation: card-flip .6s var(--ease-out); }
  [data-transition="funnels"] .carousel-slide.is-entering .work-card { animation: depth-rise .55s var(--ease-out); }
  [data-transition="organic"] .carousel-slide.is-entering .work-media { animation: focus-pull .5s var(--ease-out); }
}
@keyframes focus-pull { from { filter: blur(6px); } }
@keyframes edit-wipe { from { clip-path: inset(0 100% 0 0 round 18px); } to { clip-path: inset(0 0 0 0 round 18px); } }
@keyframes card-flip { from { transform: perspective(1200px) rotateY(-16deg); opacity: .5; } }
@keyframes depth-rise { from { transform: translate3d(0, 26px, 0) scale(.95); opacity: .4; } }

/* ---------- Pointer tilt (desktop, fine pointers) ---------- */
.work-media { transition: transform .45s var(--ease-out); }
.is-tilting { transition: transform .12s linear !important; }

@keyframes rise-in { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Scroll reveals ---------- */
@media (prefers-reduced-motion: no-preference) {
  .motion [data-reveal] {
    opacity: 0; transform: translate3d(0, 18px, 0);
    transition: opacity .6s var(--ease-out), transform .6s var(--ease-out), filter .7s var(--ease-out);
    transition-delay: var(--rd, 0ms);
  }
  .motion [data-reveal="blur"] { filter: blur(8px); }
  .motion [data-reveal].is-in, .motion [data-reveal]:focus-within { opacity: 1; transform: none; filter: none; }
  .field-panel.panel-enter { animation: rise-in .32s var(--ease-out); }
}
@media print { [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; } }

/* Results count-up: fixed-width digits so the layout doesn't jump */
.result-value .count { font-variant-numeric: tabular-nums; display: inline-block; }

/* ---------- Case-study cards ---------- */
.case-thumb img { transition: transform .6s var(--ease-out); }
.case-cta svg { transition: transform .25s var(--ease-out); }
.case-peek {
  position: absolute; right: calc(var(--pad) + 8px); top: calc(var(--pad) + 8px); z-index: 1;
  display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .85rem; border-radius: 999px;
  background: var(--cream); color: var(--oxblood); font-size: .85rem; font-weight: 700; line-height: 1.2;
  opacity: 0; transform: translateY(-6px); transition: opacity .3s ease, transform .3s var(--ease-out); pointer-events: none;
  box-shadow: 0 6px 18px rgba(20, 2, 1, .45);
}
.case-peek svg { width: 1em; height: 1em; }
@media (hover: hover) {
  .case-card:hover .case-thumb img, .case-card:focus-visible .case-thumb img { transform: scale(1.04); }
  .case-card:hover .case-peek, .case-card:focus-visible .case-peek { opacity: 1; transform: none; }
  .case-card:hover .case-cta svg { transform: translateX(4px); }
}

/* ---------- Soft, non-interactive mouse light trail (fine pointers only) ---------- */
.pointer-light-trail {
  position: fixed; inset: 0; z-index: 9998; display: block; width: 100vw; height: 100vh;
  pointer-events: none; contain: strict; mix-blend-mode: screen;
}
@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .pointer-light-trail { display: none; }
}

/* ---------- Case-study folders (inspired by file folders: tab, cutout, file peeking out) ---------- */
.case-grid { row-gap: clamp(48px, 5vw, 64px); }
.case-card.folder {
  --folder: var(--wine); position: relative; overflow: visible; margin-top: 30px; background: var(--folder);
  border: 0; border-radius: 0 24px 24px 24px; box-shadow: 0 26px 50px -30px rgba(0, 0, 0, .9);
}
.case-card.folder::after {
  content: ""; position: absolute; z-index: 3; inset: 5px; pointer-events: none; opacity: 0;
  border: 1px solid rgba(255, 226, 160, .72); border-radius: 0 18px 18px 18px;
  clip-path: polygon(0 0, 100% 0, 100% 76%, 50% 100%, 0 76%);
  filter: drop-shadow(0 0 8px rgba(255, 183, 76, .62)); transition: opacity .35s ease;
}
.case-grid > li:nth-child(even) .case-card.folder { --folder: var(--dark-red); }
.folder-tab {
  position: absolute; left: 0; bottom: 100%; height: 30px; display: inline-flex; align-items: center; padding: 0 16px 0 18px;
  background: var(--folder); border-radius: 14px 14px 0 0; color: var(--cream);
  font: 700 .7rem/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .14em; text-transform: uppercase;
}
.folder-tab::after { /* smooth join between the tab and the folder body */
  content: ""; position: absolute; left: 100%; bottom: 0; width: 16px; height: 16px;
  background: radial-gradient(circle at 100% 0, transparent 15.5px, var(--folder) 16px);
}
.case-card.folder::before { /* corner cutout */
  content: ""; position: absolute; right: 0; top: 0; width: 58px; height: 20px; background: var(--bg);
  border-bottom-left-radius: 14px; z-index: 1;
}
.case-card.folder .case-thumb {
  margin: 22px 22px 0; border-radius: 14px; background: #F8EDDF; transform: rotate(-1.4deg);
  box-shadow: 0 16px 30px -16px rgba(0, 0, 0, .8); transition: transform .45s var(--ease-out);
}
.case-card.folder .case-thumb img { border-radius: 6px; }
.result-sticker {
  position: relative; z-index: 2; align-self: flex-end; margin: -24px 22px 0 0; transform: rotate(-4deg);
  display: inline-flex; align-items: baseline; gap: .45rem; max-width: 80%; padding: .5rem .85rem; border-radius: 12px;
  background: var(--cream); color: var(--oxblood); box-shadow: 0 10px 20px -8px rgba(0, 0, 0, .7);
  font-size: .8rem; font-weight: 700; line-height: 1.2;
}
.result-sticker strong { font-family: var(--font-accent); font-weight: 800; font-size: 1.5rem; line-height: 1; color: var(--red); white-space: nowrap; }
.case-card.folder .case-body { padding-top: 1rem; }
.case-card.folder .case-body .h3 {
  font-family: var(--font-accent); font-weight: 800; text-transform: uppercase; letter-spacing: -.01em;
  font-size: clamp(1.45rem, 2.4vw, 2rem); line-height: 1.02;
}
.case-card.folder .case-metric { display: none; } /* the result sits on the sticker */
.case-card.folder .case-cta {
  align-self: flex-start; margin-top: .75rem; padding: .6rem 1.1rem; border-radius: 999px; background: var(--cream); color: var(--oxblood);
}
@media (hover: hover) {
  .case-card.folder:hover .case-thumb, .case-card.folder:focus-visible .case-thumb { transform: translateY(-12px) rotate(-3deg); }
}
.case-card.folder.is-opening .case-thumb { transform: translateY(-28px) rotate(0) scale(1.04); }
.case-card.folder.is-opening { transform: scale(1.02); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .case-card.folder:hover::after, .case-card.folder:focus-visible::after, .case-card.folder.is-opening::after { opacity: .8; }
}
@media (prefers-reduced-motion: no-preference) {
  .detail-head, .facts { animation: file-open .55s var(--ease-out) both; }
  .facts { animation-delay: .08s; }
}
@keyframes file-open { from { opacity: 0; transform: translateY(28px) scale(.985); } }

/* =========================================================
   Scroll sequences (one concept per page)
   Each [data-seq] section is a normal, static block by default.
   On larger screens with motion allowed, JS adds .is-live: the
   section gets extra height and a sticky stage whose animation
   follows scroll progress. The page always scrolls normally.
   ========================================================= */
.seq-stage { position: relative; }
.seq-stage > * { max-width: 100%; }

/* ---------- Portrait treatments (chosen per photo; client work is never filtered) ---------- */
.pt-natural { filter: none; }
.pt-soft { filter: saturate(.88) contrast(.98); }
.pt-faded { filter: saturate(.8) contrast(.95) brightness(1.03) sepia(.05); }
.pt-blend { -webkit-mask-image: linear-gradient(180deg, #000 74%, transparent 99%); mask-image: linear-gradient(180deg, #000 74%, transparent 99%); }

/* ---------- LED studio lighting (selected photos only) ----------
   Soft practical-light glows placed in the environment around a photo:
   warm cream LED strips and deep-red ambient light. Never a wash over the face. */
.laptop-portrait::after { /* vertical LED bar behind the portrait */
  content: ""; position: absolute; z-index: -1; left: -4%; top: 12%; bottom: 26%; width: 4px; border-radius: 4px;
  background: linear-gradient(180deg, rgba(255, 236, 200, .2), #FFE7C2 20%, #FFD9A6 80%, rgba(255, 217, 166, .2));
  box-shadow: 0 0 14px 3px rgba(255, 214, 160, .55), 0 0 90px 34px rgba(140, 16, 7, .38);
}
.laptop-portrait::before {
  background:
    radial-gradient(circle at 88% 10%, rgba(255, 214, 160, .28) 0 10px, transparent 34px),
    radial-gradient(circle at 96% 30%, rgba(255, 214, 160, .18) 0 6px, transparent 22px),
    radial-gradient(circle at 6% 70%, rgba(255, 214, 160, .16) 0 8px, transparent 26px),
    radial-gradient(60% 60% at 55% 45%, rgba(140, 16, 7, .5), transparent 72%) !important;
}
.desk-scene::before { /* warm shelf LED behind the planes */
  content: ""; position: absolute; z-index: 0; left: 6%; right: 6%; top: 34%; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, transparent, #FFE3B8 18%, #FFE3B8 82%, transparent);
  box-shadow: 0 0 16px 3px rgba(255, 214, 160, .45), 0 30px 120px 40px rgba(140, 16, 7, .3);
}

/* ---------- 1. Home: zoom into the laptop ---------- */
.hero-seq { padding: 0; }
.hero-seq .seq-stage { padding: clamp(24px, 4vw, 48px) 0 clamp(56px, 7vw, 96px); }
.laptop-portrait { position: relative; isolation: isolate; margin: 0; justify-self: center; width: min(430px, 100%); }
.laptop-portrait::before {
  content: ""; position: absolute; inset: 14% -10% 4% -10%; z-index: -1; border-radius: 50% 50% 24px 24px;
  background: radial-gradient(60% 60% at 55% 45%, rgba(140, 16, 7, .5), transparent 72%);
}
.laptop-portrait img { width: 100%; height: auto; transform-origin: 56.5% 46.5%; }
.laptop-portrait .portrait-tag {
  position: absolute; left: -12%; top: 16%; z-index: 2; margin: 0;
  background: var(--wine); color: var(--cream); border: 1px solid var(--rule-strong); border-radius: 999px;
  padding: .5rem 1rem; box-shadow: var(--shadow);
  font-family: var(--font-editorial); font-style: italic; font-size: 1.2rem; white-space: nowrap;
}
.laptop-portrait .hero-chip {
  position: absolute; left: -16%; bottom: 20%; z-index: 2; max-width: 11em; margin: 0;
  background: var(--cream); color: var(--wine); border-radius: 14px; padding: .65rem .9rem;
  box-shadow: var(--shadow); font-size: .85rem; line-height: 1.3; font-weight: 500;
}
.hero-chip strong { display: block; font-family: var(--font-accent); font-weight: 800; font-size: 1.6rem; line-height: 1; color: var(--red); margin-bottom: .2rem; }
.screen-layer { display: none; }
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .laptop-portrait { width: min(320px, 82%); }
  .laptop-portrait .portrait-tag { left: -6%; font-size: 1.05rem; }
  .laptop-portrait .hero-chip { left: -8%; font-size: .8rem; }
}
.hero-seq.is-live { height: 230vh; overflow: visible; }
.hero-seq.is-live .seq-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; align-items: center; padding: var(--header-h) 0 0; }
.hero-seq.is-live .hero-grid { width: 100%; }
.hero-seq.is-live .screen-layer { display: block; position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0; }
.screen-frame { position: absolute; inset: 0; overflow: hidden; clip-path: inset(50% 50% 50% 50%); background: #120201; }
.screen-asset { position: absolute; left: 0; top: 0; max-width: none; height: auto; transform-origin: 0 0; }
.screen-bezel {
  position: absolute; left: 0; top: 0; width: 0; height: 0; border: 5px solid #120201; border-radius: 10px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 214, 160, .14), 0 0 60px -10px rgba(140, 16, 7, .6);
}
.screen-reveal {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; padding: var(--gutter);
  background: var(--soft-cream); color: var(--oxblood); opacity: 0;
}
.screen-reveal .kicker { color: var(--red); }
.screen-reveal-title { font-family: var(--font-display); font-size: clamp(2.4rem, 6vw, 5rem); line-height: 1.02; letter-spacing: -.02em; }
.screen-reveal-title em { color: var(--red); }

/* ---------- Case Studies: tabbed folders ---------- */
.ftabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.ftabs::-webkit-scrollbar { display: none; }
.ftab {
  flex: none; position: relative; min-height: 52px; padding: 0 1.5rem; border: 0; border-radius: 16px 16px 0 0; cursor: pointer;
  background: #2A0503; color: var(--beige); font-family: var(--font-accent); font-weight: 800; font-size: 1.05rem; letter-spacing: .02em; text-transform: uppercase;
  transition: background-color .25s, color .25s;
}
.ftab:hover { color: var(--cream); background: #33070A; }
.ftab[aria-selected="true"] { background: var(--wine); color: var(--cream); }
.ftab[aria-selected="true"]::after { content: ""; position: absolute; left: 1.5rem; right: 1.5rem; bottom: 10px; height: 3px; border-radius: 3px; background: var(--red); }
.ftab:focus-visible { outline-offset: -4px; }
.fpanel { background: var(--wine); border-radius: 0 28px 28px 28px; padding: clamp(22px, 3.5vw, 44px); overflow: hidden; }
.fpanel-content { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(20px, 3vw, 40px); align-items: center; min-height: 400px; }
.fpanel-media { display: grid; place-items: center; background: rgba(0, 0, 0, .22); border-radius: 18px; padding: 16px; min-height: 360px; }
.fpanel-media > img { max-height: 420px; width: auto; max-width: 100%; border-radius: 10px; box-shadow: var(--shadow); }
.fpanel-media .video-frame { height: 400px; width: auto; }
.fpanel-media .scroll-frame { height: 400px; width: min(300px, 100%); }
.fpanel-body { display: flex; flex-direction: column; gap: .9rem; align-items: flex-start; }
.fpanel-title { font-family: var(--font-accent); font-weight: 800; text-transform: uppercase; font-size: clamp(1.7rem, 3.2vw, 2.7rem); line-height: 1; letter-spacing: -.01em; }
.fpanel-body .result-sticker { align-self: flex-start; margin: .25rem 0 .25rem; }
.fpanel-note { font-size: .82rem; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .fpanel-content.is-entering { animation: fpanel-in .45s var(--ease-out); }
}
@keyframes fpanel-in { from { opacity: 0; transform: translate3d(var(--dir, 28px), 0, 0); } }
@media (max-width: 800px) {
  .fpanel-content { grid-template-columns: 1fr; min-height: 0; }
  .fpanel-media { min-height: 0; }
  .fpanel { border-radius: 0 20px 20px 20px; }
  .ftab { padding: 0 1.1rem; font-size: .95rem; }
}

/* ---------- 4. Home: the floating desktop ---------- */
.desk { position: relative; background: var(--bg-alt); }
.desk-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); }
.desk-steps { list-style: none; display: grid; gap: .75rem; margin: 1.75rem 0 0; padding: 0; }
.desk-step {
  display: grid; grid-template-columns: 40px 1fr; gap: .9rem; padding: 1rem 1.1rem; border-radius: 16px; border: 1px solid var(--rule);
  transition: opacity .45s var(--ease-out), background-color .45s, border-color .45s;
}
.desk-step > span { font: 700 .8rem/1.6 ui-monospace, "SF Mono", Menlo, monospace; color: var(--beige); }
.desk-step h3 { font-family: var(--font-accent); font-weight: 800; font-size: 1.2rem; margin-bottom: .25rem; }
.desk-step p { color: var(--muted); font-size: .95rem; }
.desk-scene { position: relative; height: clamp(420px, 44vw, 560px); perspective: 1200px; }
.desk-plane {
  position: absolute; margin: 0; border-radius: 12px; overflow: hidden; background: #fff;
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .9);
  transition: transform .7s var(--ease-out), opacity .5s ease, filter .5s ease;
}
.desk-plane img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.desk-plane figcaption {
  position: absolute; left: 8px; bottom: 8px; padding: 4px 7px; border-radius: 5px; background: rgba(62, 7, 3, .85); color: var(--cream);
  font: 600 .62rem/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .08em;
}
.desk-plane--0 { left: 0; top: 8%; width: 46%; aspect-ratio: 1468 / 840; transform-origin: left center; }
.desk-plane--1 { right: 2%; top: 0; width: 22%; aspect-ratio: 9 / 16; transform-origin: right top; }
.desk-plane--2 { left: 4%; bottom: 0; width: 24%; height: 50%; transform-origin: left bottom; }
.desk-plane--3 { right: 0; bottom: 4%; width: 28%; aspect-ratio: 4 / 5; transform-origin: right bottom; }
.desk-portrait { position: absolute; left: 50%; bottom: 0; height: 100%; width: auto; max-width: none; transform: translateX(-50%); z-index: 5; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .55)); pointer-events: none; }
.wonder-shield {
  position: absolute; z-index: 3; left: 50%; top: 50%; width: clamp(90px, 13vw, 168px); height: auto;
  opacity: .2; transform: translate3d(-50%, -50%, 0); transform-style: preserve-3d; pointer-events: none;
  filter: drop-shadow(0 0 18px rgba(255, 214, 160, .45)) drop-shadow(0 20px 24px rgba(0, 0, 0, .5));
}
.shield-shell { fill: rgba(140, 16, 7, .72); stroke: url(#shield-metal); stroke-width: 5; }
.shield-inset { fill: rgba(44, 8, 5, .78); stroke: rgba(255, 240, 196, .8); stroke-width: 2; }
.shield-star { fill: url(#shield-metal); stroke: #fff0c4; stroke-width: 1.5; }
.desk.is-live { height: 280vh; }
.desk.is-live .seq-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; align-items: center; padding-top: var(--header-h); }
.desk.is-live .desk-grid { width: 100%; padding-top: 0; padding-bottom: 0; }
.desk.is-live .desk-step { opacity: .4; }
.desk.is-live .desk-step.is-active { opacity: 1; background: rgba(241, 226, 209, .06); border-color: var(--rule-strong); }
.desk.is-live .desk-plane { opacity: .5; filter: blur(1.5px); transform: translateZ(-60px) scale(.94); translate: 0 calc((var(--p, 0) - .5) * var(--drift, -20px)); }
.desk.is-live .desk-plane.is-forward { opacity: 1; filter: none; transform: translateZ(60px) scale(1.06); z-index: 4; box-shadow: 0 34px 70px -24px rgba(0, 0, 0, .95), 0 0 0 2px rgba(255, 240, 196, .4); }
.desk-plane--1 { --drift: 26px; } .desk-plane--2 { --drift: -14px; } .desk-plane--3 { --drift: 18px; }
@media (max-width: 900px) {
  .desk-grid { grid-template-columns: 1fr; }
  .desk-scene { height: clamp(360px, 90vw, 480px); }
  .wonder-shield { width: clamp(86px, 24vw, 132px); }
}

/* ---------- 6. Funnels case study: the lead journey ---------- */
.journey-note { max-width: 44em; color: var(--muted); margin-bottom: 1.75rem; }
.journey-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; position: relative; }
.journey-steps::before, .journey-steps::after { content: ""; position: absolute; left: 10%; right: 10%; top: 27px; height: 2px; border-radius: 2px; }
.journey-steps::before { background: var(--rule-strong); }
.journey-steps::after { background: var(--red); transform: scaleX(var(--jp, 1)); transform-origin: left center; }
.journey-step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .5rem; transition: opacity .45s var(--ease-out); }
.journey-icon {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--red); color: var(--cream); border: 2px solid var(--cream); box-shadow: 0 0 0 6px rgba(140, 16, 7, .25);
  transition: background-color .45s, color .45s, border-color .45s, box-shadow .45s;
}
.journey-icon svg { width: 24px; height: 24px; }
.journey-step h3 { font-family: var(--font-accent); font-weight: 800; font-size: 1.05rem; line-height: 1.2; }
.journey-step p { font-size: .88rem; color: var(--muted); }
.journey-proof { width: 100%; margin-top: .35rem; }
.journey-proof img { width: 100%; height: 150px; object-fit: cover; object-position: top; border-radius: 10px; border: 1px solid var(--rule); background: #fff; }
.journey-proof figcaption { font-size: .75rem; color: var(--muted); margin-top: .35rem; }
.journey-missing { width: 100%; margin-top: .35rem; padding: .8rem .6rem; border: 1.5px dashed var(--rule-strong); border-radius: 10px; font-size: .75rem; color: var(--muted); }
.journey.is-live .journey-step:not(.is-lit) { opacity: .45; }
.journey.is-live .journey-step:not(.is-lit) .journey-icon { background: var(--wine); color: var(--beige); border-color: var(--rule-strong); box-shadow: none; }
@media (max-width: 860px) {
  .journey-steps { grid-template-columns: 1fr; gap: 22px; }
  .journey-steps::before, .journey-steps::after { left: 27px; right: auto; top: 28px; bottom: 28px; width: 2px; height: auto; }
  .journey-steps::after { transform: scaleY(var(--jp, 1)); transform-origin: center top; }
  .journey-step { display: grid; grid-template-columns: 56px 1fr; column-gap: 1rem; text-align: left; align-items: start; }
  .journey-step > :not(.journey-icon) { grid-column: 2; }
  .journey-icon { grid-row: span 4; }
}

/* =========================================================
   The Conversion Triangle (recurring motif)
   ========================================================= */
.tri-section { position: relative; background: #2A0503; }
.tri-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding-top: clamp(64px, 8vw, 110px); padding-bottom: clamp(64px, 8vw, 110px); }
.tri-left .h2 { margin-bottom: clamp(24px, 3vw, 40px); max-width: 12em; }
.tri { position: relative; width: min(520px, 100%); aspect-ratio: 1 / .92; margin: 0 auto; }
.tri-band { position: absolute; inset: 0; transition: transform .6s var(--ease-out), filter .6s ease; }
.tri-band i { position: absolute; inset: 0; }
.tri-band--1 i { clip-path: polygon(0% 0%, 100% 0%, 83.5% 33%, 16.5% 33%); }
.tri-band--2 i { clip-path: polygon(17.25% 35%, 82.75% 35%, 67% 66%, 33% 66%); }
.tri-band--3 i { clip-path: polygon(33.75% 68%, 66.25% 68%, 50% 100%); }
.tri-depth { background: #1A0302; transform: translateY(10px); }
.tri-shape { background: linear-gradient(180deg, var(--dark-red), var(--red)); transition: background .6s ease, opacity .6s ease; }
.tri-band--2 .tri-shape { background: linear-gradient(180deg, var(--red), var(--dark-red)); }
.tri-band--3 .tri-shape { background: linear-gradient(180deg, var(--cream), var(--beige)); }
.tri-band { filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .55)); }
.tri-label { position: absolute; left: 0; right: 0; margin: 0; text-align: center; pointer-events: none; transition: opacity .5s ease; }
.tri-label b { display: block; font-family: var(--font-accent); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: clamp(1.1rem, 2.2vw, 1.7rem); color: var(--cream); }
.tri-label span { font: 600 .7rem/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .16em; color: var(--beige); }
.tri-label--1 { top: 10%; } .tri-label--2 { top: 43%; } .tri-label--3 { top: 76%; }
.tri-label--3 b { color: var(--oxblood); font-size: clamp(.95rem, 1.7vw, 1.3rem); } .tri-label--3 span { color: var(--wine); }
.tri-sword {
  position: absolute; z-index: 2; top: 7%; right: 4%; width: clamp(42px, 7.5vw, 76px); height: 84%; overflow: visible;
  opacity: .78; pointer-events: none; filter: drop-shadow(0 0 8px rgba(255, 214, 160, .5));
}
.tri-sword-blade { fill: rgba(255, 240, 196, .2); stroke: #ffe7b8; stroke-width: 2; stroke-linejoin: round; }
.tri-sword-hilt { fill: none; stroke: #f2b45f; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.tri-sword-glint { fill: none; stroke: #fff7df; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1000; stroke-dashoffset: 0; }
.tri-sword-pommel { fill: #f2b45f; stroke: #fff0c4; stroke-width: 2; }
.tri-stages { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.tri-stage { background: var(--wine); border: 1px solid var(--rule); border-radius: 22px; padding: clamp(20px, 2.6vw, 30px); display: grid; gap: .6rem; }
.tri-num { font: 700 .75rem/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .16em; text-transform: uppercase; color: var(--beige); }
.tri-stage h3 { font-family: var(--font-display); font-size: clamp(1.35rem, 2.2vw, 1.8rem); line-height: 1.15; }
.tri-stage > p:not(.tri-num):not(.tri-cats) { color: var(--muted); }
.tri-cats { display: flex; flex-wrap: wrap; gap: .45rem; }
.tri-cats a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 .9rem; border-radius: 999px; background: var(--cream); color: var(--oxblood); font-weight: 700; font-size: .85rem; text-decoration: none; }
.tri-cats a:hover { background: var(--soft-cream); }
.tri-work { display: flex; gap: .6rem; align-items: stretch; margin-top: .4rem; }
.tri-work img { flex: 1; min-width: 0; height: 150px; object-fit: cover; object-position: top; border-radius: 10px; border: 1px solid var(--rule); background: #fff; }
.tri-work--results { display: grid; grid-template-columns: 1.3fr 1fr; }
.tri-work--results img { height: auto; }
.tri-missing { flex: 1; display: grid; place-items: center; text-align: center; padding: .6rem; border: 1.5px dashed var(--rule-strong); border-radius: 10px; font-size: .78rem; color: var(--muted); }
.tri-results { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; font-size: .85rem; color: var(--muted); align-content: center; }
.tri-results strong { font-family: var(--font-accent); font-weight: 800; font-size: 1.25rem; color: var(--cream); margin-right: .25rem; }
@media (max-width: 900px) {
  .tri-grid { grid-template-columns: 1fr; }
  .tri { width: min(420px, 100%); }
  .tri-sword { right: 2%; width: 46px; opacity: .56; }
}
/* Live: the stages light top to bottom; only the active stage's work shows */
.tri-section.is-live { height: 300vh; }
.tri-section.is-live .seq-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; align-items: center; padding-top: var(--header-h); }
.tri-section.is-live .tri-grid { width: 100%; padding-top: 0; padding-bottom: 0; }
.tri-section.is-live .tri-stages { display: block; position: relative; min-height: 440px; }
.tri-section.is-live .tri-stage { position: absolute; inset: 0 0 auto 0; opacity: 0; visibility: hidden; transform: translate3d(0, 24px, 0); transition: opacity .5s ease, transform .6s var(--ease-out), visibility .5s; }
.tri-section.is-live .tri-stage.is-active { opacity: 1; visibility: visible; transform: none; }
.tri-section.is-live .tri-band .tri-shape { opacity: .28; }
.tri-section.is-live .tri-label { opacity: .45; }
.tri-section.is-live .tri-band.is-lit .tri-shape, .tri-section.is-live .tri-label.is-lit { opacity: 1; }
.tri-section.is-live .tri-band.is-active { transform: translate3d(0, -8px, 0); filter: drop-shadow(0 22px 34px rgba(0, 0, 0, .6)) drop-shadow(0 0 22px rgba(255, 214, 160, .35)); }

/* Compact triangle (case studies and category headers) */
.tri-mini { margin: 0; display: grid; grid-template-columns: 120px 1fr; gap: 1rem; align-items: center; }
.tri-mini svg { width: 120px; height: auto; overflow: visible; }
.tri-mini-band { fill: rgba(241, 226, 209, .07); stroke: var(--rule-strong); stroke-width: 1.5; }
.tri-mini-band.is-on { fill: var(--red); stroke: var(--cream); }
.tri-mini-text { font: 800 15px var(--font-accent); letter-spacing: .06em; fill: var(--beige); opacity: .55; }
.tri-mini-text.is-on { fill: var(--cream); opacity: 1; }
.tri-mini-label { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--beige); margin-bottom: .4rem; }
.tri-mini ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; font-size: .82rem; }
.tri-mini li { display: grid; gap: .05rem; color: var(--muted); opacity: .6; }
.tri-mini li.is-on { opacity: 1; }
.tri-mini li strong { color: var(--cream); font-size: .85rem; }
.tri-mini li.is-on strong::before { content: "● "; color: var(--red); }

/* ---------- Home: shared case-study browser ---------- */
.cb-panel { --panel-pad: clamp(22px, 3.5vw, 44px); padding: var(--panel-pad); }
.cb-head { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(20px, 3vw, 40px); align-items: start; margin-bottom: clamp(20px, 3vw, 32px); }
.cb-head .h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.cb-head .lede { margin-top: .6rem; font-size: 1.02rem; }
.cb-panel .carousel { --start: var(--panel-pad); }
.cb-panel .carousel-viewport { width: auto; margin-left: calc(-1 * var(--panel-pad)); margin-right: calc(-1 * var(--panel-pad)); }
.cb-panel .carousel-slide[aria-hidden="true"] { opacity: .5; }
.cb-files { margin-top: clamp(24px, 3vw, 36px); padding-top: clamp(20px, 2.5vw, 28px); border-top: 1px solid var(--rule); }
.cb-projects-carousel { --work-h: 210px; --start: var(--panel-pad); }
.cb-projects-carousel .carousel-viewport { width: auto; margin-left: calc(-1 * var(--panel-pad)); margin-right: calc(-1 * var(--panel-pad)); }
.cb-projects-carousel .carousel-slide { width: min(390px, 76vw); }
.cb-projects-carousel .work-media { height: var(--work-h); }
.cb-projects-carousel .work-media .shot-btn { width: 100%; height: 100%; }
.cb-projects-carousel .work-media .shot-btn img, .cb-projects-carousel .work-media .tile-img,
.cb-projects-carousel .work-media > .project-page-thumb { width: 100%; height: 100%; max-width: none; object-fit: contain; }
.cb-projects-carousel .work-caption { flex-direction: column; align-items: flex-start; }
.cb-projects-carousel .work-result { text-align: left; }
.cb-projects-carousel .work-result span { margin-left: 0; }
.cb-projects-carousel .work-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
/* Video folder: every type of edit shown open, one section each */
.cb-type { margin-top: clamp(26px, 3.4vw, 40px); scroll-margin-top: 104px; }
.cb-type:focus { outline: none; }
.cb-type-title { font-family: var(--font-display, inherit); font-size: clamp(1.25rem, 1.05rem + .8vw, 1.6rem); margin-bottom: .4rem; }
.cb-jump-chip { cursor: pointer; font: inherit; }
.cb-jump-chip::after { content: "↓"; margin-left: .5rem; font-weight: 700; color: var(--beige); }
/* "Check more edits" card */
.carousel-slide.slide--more { width: min(390px, 76vw); }
.slide--more .work-media { height: auto; }
.slide--more .work-caption, .slide--more .work-text { display: none; }   /* the card itself carries the title and link */
.more-edits-tile { display: flex; flex-direction: column; justify-content: center; gap: .55rem; width: 100%; height: 210px; padding: 28px;
  border: 1px solid var(--rule); border-radius: 14px; text-decoration: none; color: var(--cream);
  background: radial-gradient(120% 140% at 0% 0%, rgba(214, 174, 98, .22), transparent 60%), linear-gradient(135deg, #5a0d07, #2a0604);
  transition: border-color .2s, transform .2s; }
.more-edits-tile:hover, .more-edits-tile:focus-visible { border-color: var(--cream); transform: translateY(-2px); }
.more-edits-kicker { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--beige); font-weight: 700; }
.more-edits-tile strong { font-family: var(--font-display, inherit); font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); line-height: 1.1; }
.more-edits-cta { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; }
.more-edits-cta svg { width: 1em; height: 1em; }
/* Folder (project) cards shown inside an editing-field slider, e.g. one folder per product under AI Video Editing */
.carousel-slide.slide--project { --work-h: 210px; width: min(390px, 76vw); }
.slide--project .work-media { height: var(--work-h); }
.slide--project .work-media .shot-btn { width: 100%; height: 100%; }
.slide--project .work-media .shot-btn img, .slide--project .work-media .tile-img { width: 100%; height: 100%; max-width: none; object-fit: contain; }
.slide--project .work-caption { flex-direction: column; align-items: flex-start; }
.slide--project .work-result { text-align: left; }
.slide--project .work-result span { margin-left: 0; }
.slide--project .work-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.cb-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.cb-chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: .5rem 1rem; border-radius: 14px; text-decoration: none;
  border: 1px solid var(--rule-strong); background: rgba(0, 0, 0, .18); color: var(--soft-cream); font-weight: 600; font-size: .9rem; line-height: 1.25;
  transition: background-color .2s, border-color .2s, color .2s;
}
.cb-chip:hover { border-color: var(--cream); }
.cb-chip[aria-current="true"] { background: var(--cream); color: var(--oxblood); border-color: var(--cream); }
.cb-body.is-entering { animation: fpanel-in .45s var(--ease-out); }
.cb-file { margin-top: clamp(40px, 5vw, 60px); }
.case-file {
  --folder: var(--oxblood); --case-pad: clamp(22px, 3.5vw, 44px); position: relative; background: var(--folder); border-radius: 0 24px 24px 24px;
  padding: var(--case-pad); scroll-margin-top: calc(var(--header-h) + 50px);
}
.case-file:focus { outline: none; }
.case-file:focus-visible { outline: 3px solid var(--focus); }
.case-file .folder-tab { background: var(--folder); }
.case-file-title { font-family: var(--font-accent); font-weight: 800; text-transform: uppercase; font-size: clamp(1.7rem, 3.4vw, 2.8rem); line-height: 1; letter-spacing: -.01em; margin: .5rem 0 .9rem; }
.case-file-head .lede { font-size: 1.05rem; }
.case-file-top { margin: 1.5rem 0; }
.case-file-top .facts { grid-template-columns: 1fr 1fr; }
.case-file-top .facts div:nth-child(3) { padding-left: 0; border-left: 0; }
.case-file-top .facts div:nth-child(n+3) { border-top: 1px solid var(--rule); }
.case-file .metric-row { margin-bottom: clamp(28px, 3vw, 40px); }
.case-file .detail-section:last-child { margin-bottom: 0; padding-bottom: 0; }
.case-file .facts, .case-file .detail-head { animation: none; }
/* Year-by-year comparison (two-location salon case): one year at a time, ad results beside each location's earnings */
.yc { display: grid; gap: 16px; margin-top: .5rem; }
.yc-bar { display: flex; align-items: center; gap: .6rem; }
.yc-years { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; flex: 1; }
.yc-year { min-height: 44px; padding: .45rem 1rem; border-radius: 999px; border: 1px solid var(--rule-strong); background: transparent;
  color: var(--heading); font: 700 .95rem/1 var(--font-body); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.yc-year:hover { border-color: var(--cream); }
.yc-year[aria-selected="true"] { background: var(--cream); border-color: var(--cream); color: var(--oxblood); }
.yc-year:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.yc-panel { display: grid; gap: 14px; }
.yc-panel[hidden] { display: none; }
.yc-range { margin: 0; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.yc-ads, .yc-loc { margin: 0; display: grid; gap: .8rem; align-content: start; padding: 14px; border: 1px solid var(--rule); border-radius: var(--radius); background: rgba(0, 0, 0, .16); }
.yc figcaption { display: grid; gap: .15rem; }
.yc-kicker { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--beige); }
.yc figcaption strong { font-family: var(--font-accent); font-weight: 800; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.05; color: var(--cream); }
.yc figcaption small { font-size: .85rem; line-height: 1.4; color: var(--muted); }
.yc .shot-btn { background: #fff; }
.yc-locs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.yc-missing { margin: 0; padding: 12px 14px; border: 1px dashed var(--rule-strong); border-radius: var(--radius); font-size: .9rem; color: var(--muted); }
.yc .note { margin: 0; }
.yc-after .shot-btn { max-width: 640px; }
@media (max-width: 760px) {
  .yc-locs { grid-template-columns: 1fr; }
  .yc-bar .yc-step { display: none; }   /* phones: the year buttons alone, no extra arrows */
}
.case-media-carousel { --start: var(--case-pad); --work-h: clamp(320px, 38vw, 500px); margin: 1rem 0; }
.case-media-carousel .carousel-viewport { width: auto; margin-left: calc(-1 * var(--case-pad)); margin-right: calc(-1 * var(--case-pad)); }
.case-media-carousel .work-media .shot-btn { max-width: min(780px, 82vw); }
.case-media-carousel .scroll-frame { width: min(320px, 70vw); }
@media (max-width: 860px) {
  .cb-head, .case-file-top { grid-template-columns: 1fr; }
  .case-file { border-radius: 0 18px 18px 18px; }
}
@media (max-width: 480px) { .case-file-top .facts { grid-template-columns: 1fr; } .case-file-top .facts div { padding-left: 0; border-left: 0; } }

@media (max-width: 520px) {
  .carousel-controls { flex-wrap: wrap; gap: .5rem .75rem; }
  .carousel-btn { width: 46px; height: 46px; }
  .carousel-dot { width: 24px; }
}

/* ---------- Lead journey: moving lead and triangle stage tags ---------- */
.journey-track { position: relative; }
.journey-lead {
  position: absolute; z-index: 2; top: 20px; left: calc(10% + 80% * var(--jp, 1)); width: 16px; height: 16px; margin-left: -8px; border-radius: 50%;
  background: var(--cream); box-shadow: 0 0 0 4px rgba(140, 16, 7, .6), 0 0 18px 4px rgba(255, 214, 160, .55);
}
.journey-stage { font: 700 .66rem/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--beige); }
.journey-step h5 { margin: 0; font-family: var(--font-accent); font-weight: 800; font-size: 1.05rem; line-height: 1.2; color: var(--heading); }
.journey:not(.is-live) .journey-lead { display: none; }
@media (max-width: 860px) {
  .journey-lead { left: 28px; top: calc(28px + (100% - 56px) * var(--jp, 1)); }
}

/* ---------- Reduced motion: remove nonessential movement ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; transition-delay: 0s !important;
  }
  .btn:hover, .shot-btn:hover, .case-card:hover, .carousel-btn:active,
  .case-card:hover .case-thumb img, .case-card:focus-visible .case-thumb img,
  .case-card:hover .case-cta svg, .text-link:hover svg { transform: none; }
}
