/* ============================================================
   JASSEM — PORTFOLIO STYLES
   Edit the design tokens below to retheme the whole site.
   ============================================================ */
:root {
  /* — Brand color — */
  --accent: #066DE7;
  /* primary blue — used sparingly (CTA, hovers, stats) */
  --accent-600: #055cc4;
  /* darker accent (hover) */
  --on-accent: #ffffff;

  /* — Neutrals — */
  --bg: #ffffff;
  --surface: #f6f7f9;
  /* very light panels */
  --ink: #15171a;
  /* near-black text */
  --muted: #555b62;
  /* secondary text */
  --line: #e6e8eb;
  /* hairline borders */

  /* — Placeholder tile palette (neutral) — */
  --ph-a: #eef0f2;
  --ph-b: #e1e4e8;
  --ph-dark-a: #1b1d20;
  --ph-dark-b: #303338;

  /* — Type — */
  --font: "Schibsted Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  /* — Shape & motion — */
  --r-lg: 18px;
  --r-md: 12px;
  --r-sm: 8px;
  --pill: 999px;
  --ease: cubic-bezier(.22, .61, .36, 1);

  /* — Layout — */
  --maxw: 1180px;
  --gut: clamp(20px, 5vw, 48px);
}

/* ---------- Reset ---------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .72em 1.25em;
  border-radius: var(--pill);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: -.01em;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}

.btn--solid {
  background: var(--ink);
  color: #fff;
}

.btn--solid:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.btn--outline {
  border: 1.5px solid var(--line);
  color: var(--ink);
  background: var(--bg);
}

.btn--outline:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.btn--lg {
  padding: .95em 1.6em;
  font-size: 1.05rem;
}

.btn__arrow {
  font-size: 1.05em;
  transition: transform .25s var(--ease);
}

.btn:hover .btn__arrow {
  transform: translate(2px, -2px);
}

/* ---------- Eyebrow / section heads ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-size: .82rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: .01em;
  margin-bottom: 1.1rem;
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.eyebrow__pic {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
}

.section-head {
  margin-bottom: clamp(28px, 4vw, 52px);
}

.section-head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.section-title {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.02;
}

.section-note {
  color: var(--muted);
  margin-top: .6rem;
  max-width: 46ch;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}

.nav.is-stuck {
  border-color: var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -.02em;
}

.nav__mark {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--ink);
  position: relative;
  display: inline-block;
}

.nav__mark::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent #fff;
}

.nav__links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.nav__links a {
  font-size: .95rem;
  color: var(--muted);
  transition: color .2s var(--ease);
  position: relative;
}

.nav__links a:hover {
  color: var(--ink);
}

.nav__cta {
  margin-left: 6px;
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  padding: 8px;
}

.nav__burger span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: .25s var(--ease);
}

/* ============================================================
   SECTION RAIL  (floating scroll-spy navigator)
   Minimalist ticks that grow + go accent on the active section;
   mono labels reveal on hover. Matches the site's hairline vocab.
   ============================================================ */
.railnav {
  position: fixed;
  z-index: 45;
  right: clamp(14px, 2.2vw, 30px);
  top: 50%;
  transform: translateY(-50%);
}

.railnav__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.railnav__item {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 3px 0;
  /* generous hit area between ticks */
}

.railnav__tick {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  flex: none;
  background: var(--line);
  transition: width .3s var(--ease), background .3s var(--ease);
}

.railnav__item:hover .railnav__tick {
  background: var(--muted);
}

.railnav__label {
  font-family: var(--mono);
  font-size: .76rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  line-height: 1;
  opacity: 1;
  transform: none;
  transition: opacity .28s var(--ease), transform .28s var(--ease), color .28s var(--ease);
}

.railnav:hover .railnav__label {
  opacity: 1;
  transform: none;
}

.railnav__item:hover .railnav__label {
  color: var(--ink);
}

/* active section */
.railnav__item.is-current .railnav__tick {
  width: 34px;
  background: var(--accent);
}

.railnav__item.is-current .railnav__label {
  opacity: 1;
  transform: none;
  color: var(--ink);
  font-weight: 500;
}

@media (max-width: 1440px) {
  .railnav {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {

  .railnav__tick,
  .railnav__label {
    transition: none;
  }
}

/* ============================================================
   PLACEHOLDER TILES  (neutral, correct ratio, never broken)
   ============================================================ */
.ph {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  background: linear-gradient(150deg, var(--ph-a), var(--ph-b));
  display: grid;
  place-items: center;
  border-radius: inherit;
}

.ph--16x9 {
  aspect-ratio: 16 / 9;
}

.ph--9x16 {
  aspect-ratio: 9 / 16;
}

.ph--dark {
  background: linear-gradient(150deg, var(--ph-dark-a), var(--ph-dark-b));
}

.ph__grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .5;
  background-image: repeating-linear-gradient(135deg, rgba(0, 0, 0, .035) 0 1px, transparent 1px 11px);
}

.ph--dark .ph__grain {
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 11px);
}

.ph__tag {
  position: absolute;
  left: 12px;
  bottom: 11px;
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .08em;
  color: var(--muted);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  padding: 3px 7px;
  border-radius: 5px;
  text-transform: uppercase;
}

.ph__tag--light {
  color: rgba(255, 255, 255, .82);
  background: rgba(255, 255, 255, .1);
}

.vcard .ph__tag {
  max-width: calc(100% - 64px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Real poster (when present) sits over the placeholder */
.poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  z-index: 1;
}

/* On-demand video element */
.vid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  z-index: 2;
  opacity: 0;
  transition: opacity .4s var(--ease);
}

.vid.is-playing {
  opacity: 1;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding-top: clamp(36px, 6vw, 80px);
  padding-bottom: clamp(40px, 6vw, 90px);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.hero__title {
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: .98;
  text-wrap: balance;
}

.hero__sub {
  margin-top: 1.4rem;
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: var(--muted);
  max-width: 44ch;
  text-wrap: pretty;
}

.hero__cta {
  margin-top: 2rem;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero__media {
  position: relative;
}

/* ============================================================
   HERO CAROUSEL
   ============================================================ */
.hero-carousel {
  --gap: 16px;
  --c-height: clamp(340px, 45vh, 440px);
  --item-width: calc(var(--c-height) * 9 / 16);

  position: relative;
  height: var(--c-height);
  width: calc(2 * var(--item-width) + var(--gap));
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--r-lg);
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.hero-carousel__track {
  display: flex;
  flex-direction: row;
  width: max-content;
  height: 100%;
  gap: var(--gap);
  animation: heroScroll 25s linear infinite;
}

.hero-carousel__group {
  display: flex;
  flex-direction: row;
  height: 100%;
  gap: var(--gap);
}

.hero-carousel__item {
  height: 100%;
  width: var(--item-width);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  flex: none;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.15);
}

.hero-carousel__item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

@keyframes heroScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - calc(var(--gap) / 2)));
  }
}

.statchip {
  position: absolute;
  left: -10px;
  bottom: -22px;
  z-index: 5;
  background: var(--ink);
  color: #fff;
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .45);
}

.statchip__num {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -.02em;
}

.statchip__num {
  color: #fff;
}

.statchip__label {
  font-size: .78rem;
  color: rgba(255, 255, 255, .7);
  margin-top: 2px;
}

/* ============================================================
   REEL (showreel teaser + full)
   ============================================================ */
.reel {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px -34px rgba(0, 0, 0, .4);
}

.reel--full {
  box-shadow: 0 40px 100px -50px rgba(0, 0, 0, .55);
}

.reel__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  display: grid;
  place-items: center;
  z-index: 3;
  transition: transform .3s var(--ease), background .3s var(--ease);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .4);
}

.reel__play svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
  margin-left: 3px;
}

.reel__play--lg {
  width: 84px;
  height: 84px;
}

.reel__play--lg svg {
  width: 34px;
  height: 34px;
}

.reel:hover .reel__play {
  transform: scale(1.08);
  background: var(--accent);
  color: #fff;
}

.reel__sound {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 3;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .5);
  color: #fff;
  display: grid;
  place-items: center;
  backdrop-filter: blur(6px);
}

.reel__sound svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.reel__sound[data-state="muted"] .reel__wave {
  opacity: .25;
}

/* ============================================================
   SHOWREEL SECTION
   ============================================================ */
.showreel {
  padding-block: clamp(40px, 7vw, 96px);
}

/* ============================================================
   PERSONAL MESSAGE + CONTACT BAND
   ============================================================ */
.band {
  padding-block: clamp(40px, 7vw, 96px);
}

.band__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.band__author-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 12px 20px 12px 12px;
  border-radius: var(--pill);
  margin-bottom: 24px;
  width: 100%;
  max-width: calc(22 * clamp(1.4rem, 2.6vw, 2rem));
  box-shadow: 0 8px 24px -12px rgba(0, 0, 0, .1);
}

.band__author-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}

.band__author-info {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.band__author-info strong {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink);
}

.band__author-info span {
  font-size: .9rem;
  color: var(--muted);
}

.band__msg {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.2;
  max-width: 22ch;
  text-wrap: balance;
}

.band__msg strong {
  font-weight: 700;
}

.band__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 36px;
  margin-top: 2rem;
}

.contact-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.contact-row__ic {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: .25s var(--ease);
}

.contact-row__ic svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.contact-row:hover .contact-row__ic {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.contact-row__txt {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.contact-row__txt small {
  font-size: .72rem;
  color: var(--muted);
}

.contact-row__txt b {
  font-size: .98rem;
  font-weight: 600;
}

.band__btn {
  margin-top: 2rem;
}

.band__photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: linear-gradient(150deg, var(--ph-a), var(--ph-b));
  display: grid;
  place-items: center;
}

.photo--a {
  aspect-ratio: 3 / 4;
  margin-top: 28px;
}

.photo--b {
  aspect-ratio: 3 / 4;
}

.photo .ph__grain {
  position: absolute;
  inset: 0;
  opacity: .5;
  background-image: repeating-linear-gradient(135deg, rgba(0, 0, 0, .035) 0 1px, transparent 1px 11px);
}

.photo .ph__tag {
  position: absolute;
}

/* ============================================================
   VRSS CASE STUDY
   ============================================================ */
.case {
  padding-block: clamp(48px, 8vw, 110px);
  background: var(--surface);
}

.case--alt {
  background: var(--bg);
}

.case__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: clamp(22px, 3vw, 40px);
}

.case__logo {
  height: 46px;
  padding: 0 18px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: .14em;
  font-size: 1.05rem;
}

/* image logo: sit the wordmark on a clean white plate */
.case__logo--img {
  height: auto;
  padding: 9px 20px;
  background: #fff;
  color: inherit;
  border: 1px solid var(--line);
}

.case__logo--img img {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
}

.case__kicker {
  font-family: var(--mono);
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}

.case__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.case__title {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1;
}

.case__body {
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: 1.06rem;
  max-width: 46ch;
  text-wrap: pretty;
}

.case__body strong {
  color: var(--ink);
  font-weight: 600;
}

.case__bigstat {
  margin-top: 2rem;
  padding: 24px 28px;
  border-radius: var(--r-lg);
  background: var(--accent);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.case__bigstat-num {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
}

.case__bigstat-label {
  font-size: .92rem;
  color: rgba(255, 255, 255, .82);
}

.case__ig {
  margin-top: 1.6rem;
}

.ig-ic {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.case__videos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

/* Case videos are bare 9:16 players — no white meta card under them. */
.case__videos .vcard {
  border: none;
  background: none;
}

.case__videos .vcard__meta {
  display: none;
}

/* SCM — 1 horizontal (full width) + 2 vertical below */
.case__videos--scm {
  grid-template-columns: 1fr 1fr;
}

.case__videos--scm .vcard--h {
  grid-column: 1 / -1;
}

/* Alex — scrollable horizontal carousel, sits full-width under the intro */
.case__grid--stack {
  grid-template-columns: 1fr;
  gap: clamp(26px, 4vw, 44px);
}

.case__intro--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.case-carousel__controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.case-carousel__count {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .06em;
  color: var(--muted);
  margin-right: 4px;
  white-space: nowrap;
}

.case-carousel__btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  display: grid;
  place-items: center;
  transition: transform .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease), color .2s var(--ease), opacity .2s var(--ease);
}

.case-carousel__btn svg {
  width: 18px;
  height: 18px;
}

.case-carousel__btn:hover:not(:disabled) {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}

.case-carousel__btn:disabled {
  opacity: .32;
  cursor: default;
}

.case-carousel {
  position: relative;
  min-width: 0;
}

.case-carousel::before,
.case-carousel::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 18px;
  width: 48px;
  z-index: 6;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s var(--ease);
}

.case-carousel::before {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}

.case-carousel::after {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
}

.case-carousel.has-left::before {
  opacity: 1;
}

.case-carousel.has-right::after {
  opacity: 1;
}

.case__videos--gallery {
  display: flex;
  flex-direction: row;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 6px 0 10px;
  cursor: grab;
}

.case__videos--gallery::-webkit-scrollbar {
  display: none;
}

.case__videos--gallery.is-dragging {
  scroll-snap-type: none;
  scroll-behavior: auto;
  cursor: grabbing;
  user-select: none;
}

.case__videos--gallery .vcard {
  flex: 0 0 calc((100% - 3 * 14px) / 4.2);
  scroll-snap-align: start;
}

.case-carousel__progress {
  margin-top: 10px;
  height: 2px;
  width: 100%;
  background: var(--line);
  border-radius: var(--pill);
  overflow: hidden;
  position: relative;
}

.case-carousel__bar {
  height: 100%;
  width: 30%;
  background: var(--accent);
  border-radius: var(--pill);
  transform-origin: left center;
  transition: transform .15s linear, width .2s var(--ease);
}

/* Humain Rapide — 3 vertical educational clips */
.case__videos--humain {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 960px;
}

.case__videos--humain .vcard {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--r-md);
  overflow: hidden;
}

.case__videos--humain .vcard__meta {
  display: block;
  padding: 10px 14px 14px;
}

.case__videos--humain .vcard__title {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
}

.case__videos--humain .vcard__client {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 2px;
}

.case__quote {
  margin-top: clamp(34px, 5vw, 60px);
  max-width: 760px;
}

.case__quote--wide {
  max-width: none;
}

.case__quote--wide blockquote {
  text-wrap: pretty;
}

.case__quote blockquote {
  font-size: clamp(1.3rem, 2.6vw, 1.85rem);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.28;
  text-wrap: balance;
}

.case__quote figcaption {
  margin-top: 1rem;
  color: var(--muted);
  font-size: .95rem;
}

.case__quote figcaption b {
  color: var(--ink);
}

/* ============================================================
   WORK BENTO  (Highlighted work)
   ============================================================ */
.works {
  padding-block: clamp(48px, 8vw, 110px);
}

.bento__row3 {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 16px;
  align-items: start;
}

.bento__row3left {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.bento {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bento__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 16px;
  align-items: start;
}

.bento__topright {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.bento__bottom {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* generic video card */
.vcard {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}

.vcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -28px rgba(0, 0, 0, .32);
  border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
}

.vcard__media {
  position: relative;
  width: 100%;
}

.vcard__media .ph {
  border-radius: 0;
}

.vcard__badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 4;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .02em;
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  padding: 4px 9px;
  border-radius: var(--pill);
  border: 1px solid rgba(21, 23, 26, .08);
  box-shadow: 0 2px 10px -2px rgba(0, 0, 0, .18);
}

.vcard__corner {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 4;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  display: grid;
  place-items: center;
  border: 1px solid rgba(21, 23, 26, .08);
  box-shadow: 0 2px 10px -2px rgba(0, 0, 0, .18);
  transition: .25s var(--ease);
}

.vcard__corner svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  margin-left: 2px;
}

.vcard:hover .vcard__corner {
  background: var(--accent);
  color: #fff;
}

/* LIVE marker — autoplay compilation reels that loop in the card */
.vcard__live {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: #fff;
  background: rgba(8, 10, 14, .55);
  backdrop-filter: blur(6px);
  padding: 4px 9px 4px 8px;
  border-radius: var(--pill);
  text-transform: uppercase;
}

.vcard__live::first-letter {
  color: #ff3b30;
}

@media (prefers-reduced-motion: no-preference) {
  .vcard__live {
    animation: liveBlink 2s var(--ease) infinite;
  }
}

@keyframes liveBlink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: .72;
  }
}

.vcard__meta {
  padding: 12px 14px 14px;
}

.vcard__title {
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.25;
}

.vcard__client {
  font-size: .8rem;
  color: var(--muted);
  margin-top: 2px;
}

/* ratio variants */
.vcard--v .vcard__media {
  aspect-ratio: 9 / 16;
}

/* vertical (text below adds height) */
.vcard--h .vcard__media {
  aspect-ratio: 16 / 9;
}

/* horizontal VSL — true 16:9 */

/* ============================================================
   GALLERY  (Work by category, filterable)
   ============================================================ */
.gallery {
  padding-block: clamp(40px, 7vw, 96px);
}

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter {
  padding: .5em 1.05em;
  border-radius: var(--pill);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
  font-weight: 500;
  transition: .22s var(--ease);
}

.filter:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.filter.is-active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.grid .vcard.is-hidden {
  display: none;
}

.grid .vcard {
  animation: cardIn .4s var(--ease) both;
}

/* Horizontal (16:9) cards span 2 columns and match the height of vertical (9:16) cards.
   Vertical media ratio = 9:16, so height = colW × 16/9.
   Horizontal card width = 2 × colW, so aspect = 2colW / (colW × 16/9) = 9/8. */
.grid .vcard--h {
  grid-column: span 2;
}

.grid .vcard--h .vcard__media {
  aspect-ratio: 9 / 8;
}

@keyframes cardIn {
  from {
    transform: translateY(10px);
  }

  to {
    transform: none;
  }
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials {
  padding-block: clamp(40px, 7vw, 96px);
}

.t-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.t-card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 24px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}

.t-card:hover {
  border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
  transform: translateY(-3px);
}

.t-stars {
  color: var(--accent);
  letter-spacing: 2px;
  font-size: .9rem;
}

.t-card blockquote {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1.4;
  text-wrap: pretty;
}

.t-card figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.t-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--ph-a), var(--ph-b));
  flex: none;
  overflow: hidden;
}

.t-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.t-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.t-meta b {
  font-size: .95rem;
}

.t-meta small {
  font-size: .8rem;
  color: var(--muted);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(48px, 7vw, 90px) 36px;
}

.footer__lead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  padding-bottom: clamp(36px, 5vw, 60px);
}

.footer__title {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1;
  max-width: 16ch;
  text-wrap: balance;
}

.footer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-weight: 700;
}

.footer__social {
  display: flex;
  gap: 22px;
}

.footer__social a {
  color: var(--muted);
  font-size: .92rem;
  transition: color .2s var(--ease);
}

.footer__social a:hover {
  color: var(--ink);
}

.footer__copy {
  color: var(--muted);
}

/* ============================================================
   MODAL
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
}

.modal.is-open {
  display: grid;
  place-items: center;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 11, 13, .78);
  backdrop-filter: blur(6px);
  animation: fade .3s var(--ease);
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 1040px, calc((90vh - 100px) * 16 / 9));
  animation: pop .35s var(--ease);
}

/* Vertical (9:16) videos: shrink the dialog so the content fills the viewport height
   without leaving dead space on the sides. */
.modal__dialog--vertical {
  width: min(92vw, calc((90vh - 100px) * 9 / 16));
}

.modal__stage {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, .7);
}

.modal__stage .ph {
  border-radius: var(--r-lg);
}

.modal__stage video,
.modal__stage img {
  width: 100%;
  display: block;
  border-radius: var(--r-lg);
  background: #000;
}

.modal__stage iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: 0;
  border-radius: var(--r-lg);
  background: #000;
}

.modal__dialog--vertical .modal__stage iframe {
  aspect-ratio: 9 / 16;
}

.modal__close {
  position: absolute;
  right: 0;
  top: -46px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  display: grid;
  place-items: center;
}

.modal__close svg {
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.modal__close:hover {
  background: rgba(255, 255, 255, .26);
}

.modal__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  color: #fff;
}

.modal__title {
  font-size: 1.2rem;
  font-weight: 600;
}

.modal__client {
  font-size: .9rem;
  color: rgba(255, 255, 255, .7);
}

.modal__ig {
  color: #fff;
  font-size: .92rem;
  border-bottom: 1px solid rgba(255, 255, 255, .4);
  padding-bottom: 2px;
}

@keyframes fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(.96) translateY(8px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
/* Reveal: transform-only entrance — content is ALWAYS opaque, so it can never
   get stuck invisible (some embedded preview frames freeze the CSS timeline). */
.js .reveal {
  transform: translateY(16px);
  transition: transform .6s var(--ease);
}

.js .reveal.in {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    transform: none;
    transition: none;
  }

  * {
    scroll-behavior: auto;
  }
}

/* ============================================================
   LIGHT & DARK MODE & THEME TOGGLE
   ============================================================ */
[data-theme="light"] {
  --muted: #555b62;
}

[data-theme="light"] .nav {
  background: color-mix(in srgb, var(--bg) 94%, transparent);
}

[data-theme="light"] .nav.is-stuck {
  border-color: #dde1e6;
}

[data-theme="light"] .nav__links a {
  color: #3b4046;
}

[data-theme="light"] .nav__links a:hover {
  color: var(--ink);
}

[data-theme="light"] .btn--solid {
  background: var(--ink);
  color: #fff;
}

[data-theme="light"] .btn--solid:hover {
  background: var(--accent);
  color: #fff;
}

[data-theme="light"] .btn--outline {
  border-color: #c8cfd7;
  color: var(--ink);
  background: var(--bg);
}

[data-theme="light"] .btn--outline:hover {
  border-color: var(--ink);
  background: var(--surface);
}

[data-theme="light"] .filter:not(.is-active) {
  border-color: #cfd5dc;
  color: #3b4046;
}

[data-theme="light"] .filter:not(.is-active):hover {
  border-color: var(--ink);
  color: var(--ink);
}

[data-theme="light"] .filter.is-active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

[data-theme="light"] .case-carousel__btn {
  border-color: #cfd5dc;
}

[data-theme="light"] .ph__tag:not(.ph__tag--light) {
  color: #3b4046;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  border: 1px solid rgba(21, 23, 26, .08);
}

[data-theme="dark"] {
  --bg: #0f1115;
  --surface: #171a1f;
  --ink: #f0f2f5;
  --muted: #8e959d;
  --line: #2b3036;

  --ph-a: #1c2026;
  --ph-b: #242930;

  --ph-dark-a: #121417;
  --ph-dark-b: #1b1e22;
}

[data-theme="dark"] .btn--solid,
[data-theme="dark"] .filter.is-active {
  color: var(--bg);
}

[data-theme="dark"] .btn--solid:hover {
  color: #fff;
}

[data-theme="dark"] .nav__mark::after {
  border-color: transparent transparent transparent var(--bg);
}

[data-theme="dark"] .case__logo {
  color: var(--bg);
}

[data-theme="dark"] .statchip {
  background: var(--ink);
  color: var(--bg);
}

[data-theme="dark"] .statchip__num {
  color: var(--bg);
}

[data-theme="dark"] .statchip__label {
  color: color-mix(in srgb, var(--bg) 70%, transparent);
}

/* Keep play buttons and badges black in dark mode */
[data-theme="dark"] .vcard__badge,
[data-theme="dark"] .vcard__corner {
  color: #000;
}

/* theme toggle styling */
.nav__theme {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  margin-left: 8px;
  color: var(--ink);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.nav__theme:hover {
  background: var(--surface);
}

.theme-icon {
  width: 18px;
  height: 18px;
}

.theme-icon-sun {
  display: none;
}

[data-theme="dark"] .theme-icon-moon {
  display: none;
}

[data-theme="dark"] .theme-icon-sun {
  display: block;
}

@media (max-width: 680px) {
  .nav__theme {
    margin-left: auto;
  }

  .nav__burger {
    margin-left: 8px;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 920px) {

  .hero__grid,
  .band__grid,
  .case__grid {
    grid-template-columns: 1fr;
  }

  .hero__media {
    order: -1;
  }

  .statchip {
    left: auto;
    right: 12px;
    bottom: 12px;
  }

  .bento__top,
  .bento__row3 {
    grid-template-columns: 1fr;
  }

  .bento__bottom {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .t-grid {
    grid-template-columns: 1fr;
  }

  .case__videos {
    grid-template-columns: repeat(3, 1fr);
  }

  .case__videos--gallery .vcard {
    flex: 0 0 calc((100% - 2 * 14px) / 3.15);
  }

  .hero-carousel {
    --c-height: clamp(160px, 25vh, 260px);
    width: calc(3 * var(--item-width) + 2 * var(--gap));
    mask-image: linear-gradient(to right, black, black 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, black, black 92%, transparent);
  }
}

@media (max-width: 680px) {

  .nav__links,
  .nav__cta {
    display: none;
  }

  .nav__burger {
    display: flex;
  }

  .nav__links.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 18px var(--gut);
    gap: 18px;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento__bottom {
    grid-template-columns: repeat(2, 1fr);
  }

  .case__videos {
    grid-template-columns: repeat(2, 1fr);
  }

  .case-carousel::before,
  .case-carousel::after {
    display: none;
  }

  .case__videos--gallery {
    padding: 6px var(--gut) 12px;
    margin: 0 calc(-1 * var(--gut));
    scroll-padding-inline: var(--gut);
  }

  .case__videos--gallery .vcard {
    flex: 0 0 clamp(175px, 52vw, 220px);
  }

  .case__videos--humain {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    padding: 6px var(--gut) 16px;
    margin: 0 calc(-1 * var(--gut));
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .case__videos--humain::-webkit-scrollbar {
    display: none;
  }

  .case__videos--humain .vcard {
    flex: 0 0 clamp(180px, 54vw, 220px);
    width: clamp(180px, 54vw, 220px);
    scroll-snap-align: start;
  }

  .filters {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }
}

@media (max-width: 600px) {
  .vcard__badge {
    left: 8px;
    top: 8px;
    font-size: .62rem;
    padding: 3px 8px;
  }

  .vcard__live {
    right: 8px;
    top: 8px;
    font-size: .56rem;
    padding: 3px 7px;
  }

  .vcard__corner {
    right: 8px;
    bottom: 8px;
    width: 32px;
    height: 32px;
  }

  .vcard__corner svg {
    width: 13px;
    height: 13px;
    margin-left: 1px;
  }

  .vcard .ph__tag {
    left: 8px;
    bottom: 10px;
    font-size: .52rem;
    letter-spacing: .02em;
    padding: 2px 5px;
    max-width: calc(100% - 52px);
  }
}

@media (max-width: 420px) {

  .grid,
  .bento__bottom {
    grid-template-columns: 1fr 1fr;
  }
}
/* ============================================================
   PROOF STRIP — verifiable numbers under the hero
   ============================================================ */
.proof {
  padding-block: clamp(8px, 2vw, 20px) clamp(28px, 5vw, 56px);
}

.proof__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
}

.proof__item {
  padding: 20px 22px;
  min-width: 0;
}

.proof__item + .proof__item {
  border-left: 1px solid var(--line);
}

.proof__item a {
  color: inherit;
  text-decoration: none;
  display: block;
}

.proof__num {
  display: block;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.05;
}

.proof__label {
  display: block;
  margin-top: 6px;
  font-size: .85rem;
  color: var(--muted);
}

.proof__item a:hover .proof__label {
  color: var(--accent);
}

@media (max-width: 680px) {
  .proof__item {
    padding: 16px 12px;
  }

  .proof__num {
    font-size: 1.1rem;
    white-space: nowrap;
  }

  .proof__label {
    font-size: .75rem;
  }
}

/* VRSS — million-view reels */
.case__hits {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.case__hits a {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  color: inherit;
  text-decoration: none;
  font-size: .9rem;
}

.case__hits a:hover {
  border-color: var(--accent);
}

/* Contact band — free audit offer */
.band__offer {
  margin-top: 1.2rem;
  max-width: 46ch;
  color: var(--muted);
}

/* Tadwin — 16:9 explainer + optional 9:16 cut side by side */
.case__videos--tadwin {
  grid-template-columns: 3fr 1fr;
  align-items: start;
  max-width: 1000px;
}

.case__videos--tadwin .vcard--h:only-child {
  grid-column: 1 / -1;
  max-width: 820px;
}

@media (max-width: 680px) {
  .case__videos--tadwin {
    grid-template-columns: 1fr;
  }
}

/* Mobile overflow guards — grid children may shrink below their content width */
.hero__grid > *,
.band__grid > *,
.band__photos > *,
.case__grid > *,
.section-head--row > * {
  min-width: 0;
}

.hero-carousel {
  max-width: 100%;
}

video.photo {
  width: 100%;
  height: auto;
  display: block;
}
