/* ============================================================
   HOUVAST — Creative content studio
   Bold & expressive · warm canvas · one hot accent
   Hand-written, dependency-free design system
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Color — Houvast brand */
  --ink:        #1E1311;   /* warm near-black (red undertone) */
  --ink-soft:   #32211E;
  --paper:      #FAF6E9;   /* brand cream */
  --paper-2:    #F2EAD4;   /* banding */
  --mist:       #E7DDC4;
  --muted:      #5E524B;   /* AA-compliant muted text on cream (~7:1) */
  --accent:     #A4000F;   /* brand oxblood red */
  --accent-2:   #C70A1A;   /* brighter red (hover) */
  --accent-ink: #FAF6E9;   /* cream text on red */
  --line:       rgba(30,19,17,.16);
  --line-on-dark: rgba(250,246,233,.18);

  /* Type */
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, sans-serif;

  /* Fluid scale */
  --step--1: clamp(.82rem, .78rem + .2vw, .94rem);
  --step-0:  clamp(1rem, .95rem + .25vw, 1.15rem);
  --step-1:  clamp(1.2rem, 1.05rem + .7vw, 1.6rem);
  --step-2:  clamp(1.6rem, 1.3rem + 1.4vw, 2.6rem);
  --step-3:  clamp(2.2rem, 1.6rem + 3vw, 4rem);
  --giant:   clamp(2.3rem, 0.7rem + 6.6vw, 6.6rem);

  /* Space */
  --pad: clamp(1.25rem, 5vw, 6rem);
  --section: clamp(5rem, 9vw, 9.5rem);
  --radius: 18px;

  /* Motion */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --dur: .95s;
}

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

body {
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
::selection { background: var(--accent); color: var(--paper); }

/* Visually-hidden but available to AT */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

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

/* Skip to content (keyboard) */
.skip-link {
  position: fixed; left: 1rem; top: -4rem; z-index: 200;
  background: var(--ink); color: var(--paper);
  padding: .8em 1.3em; border-radius: 100px;
  font-family: var(--display); font-weight: 700; font-size: var(--step--1);
  transition: top .3s var(--ease);
}
.skip-link:focus { top: 1rem; }
main:focus { outline: none; }

/* ---------- Layout ---------- */
.wrap { width: min(1320px, 100%); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: var(--section); }
.lead { max-width: 62ch; }

.eyebrow {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--step--1);
  letter-spacing: .22em;
  text-transform: uppercase;
  display: flex;
  width: fit-content;
  align-items: center;
  gap: .7em;
}
.eyebrow:where(.hero-cine .eyebrow, [style*="center"]) { margin-inline: auto; }
.eyebrow::before {
  content: "";
  width: 1.8em; height: 2px;
  background: var(--accent);
  display: inline-block;
}

h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: .98; letter-spacing: -.02em; }
.display { font-size: var(--giant); line-height: .86; letter-spacing: -.03em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }

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

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink);
  --fg: var(--paper);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: .95em 1.6em;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--step--1);
  letter-spacing: .04em;
  border-radius: 100px;
  overflow: hidden;
  transition: transform .3s var(--ease), color .35s var(--ease);
  will-change: transform;
}
.btn span { position: relative; z-index: 1; }
.btn .arr { transition: transform .35s var(--ease); }
.btn::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease);
  z-index: 0;
}
.btn:hover { color: var(--accent-ink); }
.btn:hover::after { transform: scaleX(1); }
.btn:hover .arr { transform: translateX(4px); }
.btn--accent { --bg: var(--accent); --fg: var(--accent-ink); }
.btn--accent::after { background: var(--ink); }
.btn--accent:hover { color: var(--paper); }
.btn--ghost {
  --bg: transparent; --fg: var(--ink);
  border: 1.5px solid var(--line);
}
.btn--ghost::after { background: var(--ink); }
.btn--ghost:hover { color: var(--paper); }

.textlink {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--display); font-weight: 700;
  letter-spacing: .02em;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: left bottom;
  transition: background-size .4s var(--ease);
  padding-bottom: 2px;
}
.textlink:hover { background-size: 100% 2px; }
.textlink .arr { transition: transform .35s var(--ease); }
.textlink:hover .arr { transform: translate(3px,-3px); }

/* ---------- Header / Nav ---------- */
.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: transform .4s var(--ease), background .4s var(--ease), backdrop-filter .4s var(--ease);
}
.site-head__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: clamp(1rem, 2vw, 1.5rem) var(--pad);
  transition: padding .4s var(--ease);
}
.site-head.is-scrolled {
  background: color-mix(in oklab, var(--paper) 80%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-head.is-scrolled .site-head__inner { padding-block: .7rem; }
.site-head.is-hidden { transform: translateY(-100%); }

.brand { display: inline-flex; align-items: center; }
.brand-logo { height: clamp(24px, 3.4vw, 32px); width: auto; display: block; transition: transform .4s var(--ease); }
.brand:hover .brand-logo { transform: scale(1.03); }
.foot-logo { height: clamp(30px, 5vw, 42px); width: auto; }
.brand-logo--light { display: none; }

/* Header over a media hero: light treatment until scrolled past it */
body.has-media-hero .site-head:not(.is-scrolled) .brand-logo--dark { display: none; }
body.has-media-hero .site-head:not(.is-scrolled) .brand-logo--light { display: block; }
body.has-media-hero .site-head:not(.is-scrolled) .nav a:not(.btn) { color: var(--paper); }
body.has-media-hero .site-head:not(.is-scrolled) .nav a:not(.btn)::after { background: var(--paper); }
body.has-media-hero .site-head:not(.is-scrolled) .lang-toggle { color: var(--paper); border-color: var(--line-on-dark); }
body.has-media-hero .site-head:not(.is-scrolled) .lang-toggle .on { color: var(--paper); }
body.has-media-hero .site-head:not(.is-scrolled) .lang-toggle:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
body.has-media-hero .site-head:not(.is-scrolled) .lang-toggle:hover .on { color: var(--accent); }
body.has-media-hero .site-head:not(.is-scrolled) .nav-toggle { border-color: var(--line-on-dark); }
body.has-media-hero .site-head:not(.is-scrolled) .nav-toggle span { background: var(--paper); }

/* Inline highlight (brand red) */
.hl { color: var(--accent); font-style: normal; }
.band-dark .hl, .tape .hl { color: var(--accent-ink); }

/* Language toggle */
.lang-toggle {
  font-family: var(--display); font-weight: 700; font-size: var(--step--1);
  letter-spacing: .08em; text-transform: uppercase;
  border: 1.5px solid var(--line); border-radius: 100px;
  padding: .5em .9em; line-height: 1;
  display: inline-flex; align-items: center; gap: .3em;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.lang-toggle:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.lang-toggle .on { color: var(--accent); }
.lang-toggle:hover .on { color: var(--accent-2); }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.4rem); }
.nav a:not(.btn) {
  font-family: var(--display); font-weight: 600;
  font-size: var(--step--1); letter-spacing: .02em;
  position: relative; padding-block: .3em;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav a:not(.btn):hover::after,
.nav a.is-active::after { transform: scaleX(1); transform-origin: left; }

.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav { display: none; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; gap: 5px;
    width: 46px; height: 46px; align-items: center; justify-content: center;
    border: 1.5px solid var(--line); border-radius: 50%;
  }
  .nav-toggle span { width: 20px; height: 2px; background: var(--ink); transition: transform .3s var(--ease), opacity .3s; }
  body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .mobile-nav {
    position: fixed; inset: 0; z-index: 45;
    background: var(--ink); color: var(--paper);
    display: flex; flex-direction: column; justify-content: center; gap: .2rem;
    padding: var(--pad);
    transform: translateY(-100%);
    transition: transform .55s var(--ease);
  }
  body.menu-open .mobile-nav { transform: translateY(0); }
  .mobile-nav a {
    font-family: var(--display); font-weight: 800;
    font-size: clamp(2.2rem, 11vw, 4rem); line-height: 1.05;
    letter-spacing: -.02em;
    padding-block: .15em;
    border-bottom: 1px solid var(--line-on-dark);
  }
  .mobile-nav a .idx { font-size: .9rem; vertical-align: super; color: var(--accent-2); margin-right: .4em; font-family: var(--body); }
  .mobile-nav .lang-toggle { align-self: flex-start; margin-top: 1.4rem; border-color: var(--line-on-dark); color: var(--paper); }
  .mobile-nav .lang-toggle:hover { background: var(--paper); color: var(--ink); }
  .mobile-nav .lang-toggle .on { color: var(--accent-2); }
}
@media (min-width: 861px) { .mobile-nav { display: none; } }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-line { overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.reveal-line > * { display: inline-block; transform: translateY(115%); transition: transform .9s var(--ease); }
.reveal-line.in > * { transform: translateY(0); }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; width: 100%; }
.marquee__track {
  display: flex; width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track > * { padding-inline: clamp(1rem, 3vw, 3rem); white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee--reverse .marquee__track { animation-direction: reverse; }

.tape {
  background: var(--accent); color: var(--accent-ink);
  padding-block: clamp(.7rem, 1.4vw, 1.1rem);
  border-block: 2px solid var(--ink);
}
.tape .marquee__track > * {
  font-family: var(--display); font-weight: 800;
  font-size: var(--step-1); letter-spacing: -.01em;
  display: inline-flex; align-items: center; gap: clamp(1rem,3vw,3rem);
  text-transform: uppercase;
}
.tape .star { color: var(--ink); }

/* ---------- Dark band ---------- */
.band-dark { background: var(--ink); color: var(--paper); }
.band-dark .muted { color: color-mix(in oklab, var(--paper) 60%, var(--ink)); }
.band-dark .eyebrow::before { background: var(--accent); }
.band-dark .btn { --bg: var(--paper); --fg: var(--ink); }
.band-dark .btn::after { background: var(--accent); }
.band-dark .btn:hover { color: var(--accent-ink); }
/* ghost buttons on dark bands: transparent w/ visible cream text + border */
.band-dark .btn--ghost { --bg: transparent; --fg: var(--paper); border-color: var(--line-on-dark); }
.band-dark .btn--ghost::after { background: var(--paper); }
.band-dark .btn--ghost:hover { color: var(--ink); }

/* ---------- Cards / grid ---------- */
.grid { display: grid; gap: clamp(1.4rem, 3vw, 2.6rem); }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .cols-2, .cols-3 { grid-template-columns: 1fr; } }

/* Work tiles */
.work-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1rem, 2.2vw, 1.8rem); }
.work-tile { grid-column: span 6; }
.work-tile.is-wide { grid-column: span 12; }
@media (max-width: 760px) { .work-tile, .work-tile.is-wide { grid-column: span 12; } }

.poster {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 16/10; display: block;
  background: var(--ink);
  isolation: isolate;
}
.work-tile.is-wide.poster { aspect-ratio: 21/9; }
.poster__media {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.02);
  transition: transform .9s var(--ease), filter .6s var(--ease);
  filter: saturate(105%);
}
.poster::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, transparent 35%, rgba(10,8,6,.72) 100%);
  opacity: .85; transition: opacity .5s var(--ease);
}
.poster:hover .poster__media { transform: scale(1.07); }
.poster__tag {
  position: absolute; top: 1rem; left: 1rem; z-index: 2;
  font-family: var(--display); font-weight: 700; font-size: var(--step--1);
  letter-spacing: .14em; text-transform: uppercase;
  background: var(--paper); color: var(--ink);
  padding: .4em .9em; border-radius: 100px;
}
.poster__meta {
  position: absolute; left: 1.2rem; right: 1.2rem; bottom: 1.1rem; z-index: 2;
  color: var(--paper);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem;
}
.poster__meta h3 { font-size: var(--step-2); line-height: 1; }
.poster__meta .sub { font-size: var(--step--1); opacity: .8; margin-top: .3em; }
.poster__play {
  width: 54px; height: 54px; border-radius: 50%; flex: none;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center;
  transform: translateY(8px); opacity: 0;
  transition: transform .5s var(--ease), opacity .5s var(--ease);
}
.poster:hover .poster__play { transform: none; opacity: 1; }

/* Handcrafted tile hover — lift, deepen, caption settle, accent underline */
.poster { transition: opacity var(--dur) var(--ease), transform .55s var(--ease), box-shadow .55s var(--ease); will-change: transform; }
.poster:hover { transform: translateY(-6px); box-shadow: 0 36px 72px -34px rgba(20,8,8,.55); }
.poster:hover::after { opacity: 1; }
.poster__meta { transition: transform .55s var(--ease); }
.poster:hover .poster__meta { transform: translateY(-4px); }
.poster__meta h3 { position: relative; display: block; width: fit-content; max-width: 100%; }
.poster__meta h3::after { content: ""; position: absolute; left: 0; bottom: -.1em; height: 2px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .55s var(--ease); }
.poster:hover .poster__meta h3::after { transform: scaleX(1); }

/* Grain overlay for placeholder posters */
.poster__media.grain::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  mix-blend-mode: overlay; opacity: .25;
}

/* Service list */
.svc-row {
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: clamp(1rem, 3vw, 3rem);
  padding-block: clamp(1.4rem, 3vw, 2.2rem);
  border-top: 1px solid var(--line);
  transition: padding-left .4s var(--ease);
}
.svc-row:last-child { border-bottom: 1px solid var(--line); }
.svc-row:hover { padding-left: clamp(.5rem, 2vw, 1.5rem); }
.svc-row__no { font-family: var(--display); font-weight: 700; color: var(--accent); font-size: var(--step-1); }
.svc-row__title { display: block; font-family: var(--display); font-weight: 800; font-size: var(--step-2); letter-spacing: -.02em; }
.svc-row__desc { display: block; color: var(--muted); max-width: 46ch; margin-top: .5em; font-size: var(--step-0); line-height: 1.55; }
.svc-row__body { min-width: 0; }
.svc-row__arrow { font-size: 1.6rem; transition: transform .4s var(--ease); color: var(--accent); }
.svc-row:hover .svc-row__arrow { transform: translateX(8px); }
/* handcrafted: index ignites, hairline draws under the row */
.svc-row { position: relative; }
.svc-row::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.svc-row:hover::after { transform: scaleX(1); }
.svc-row__no { color: color-mix(in oklab, var(--ink) 34%, var(--paper)); transition: color .45s var(--ease); }
.svc-row:hover .svc-row__no { color: var(--accent); }
.svc-row__title { transition: color .45s var(--ease); }
@media (max-width: 640px) {
  .svc-row { grid-template-columns: auto 1fr; }
  .svc-row__arrow { display: none; }
}

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: clamp(1rem,3vw,2rem); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.stat { border-top: 1px solid var(--line-on-dark); padding-top: clamp(1rem, 2.2vw, 1.5rem); }
.stat__num { font-family: var(--display); font-weight: 800; font-size: var(--step-3); line-height: 1; letter-spacing: -.03em; }
.stat__num .unit { color: var(--accent); }
.stat__label { font-size: var(--step--1); letter-spacing: .04em; margin-top: .5em; text-transform: uppercase; opacity: .7; }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(1.2rem,2.5vw,2rem); align-items: start; }
@media (max-width: 940px) { .price-grid { grid-template-columns: 1fr; } }
.price-card {
  border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  background: var(--paper); display: flex; flex-direction: column; gap: 1.2rem;
  min-width: 0;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background .4s var(--ease);
}
.price-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(22,19,14,.4); }
.price-card.is-featured { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.price-card.is-featured .muted { color: color-mix(in oklab, var(--paper) 60%, var(--ink)); }
.price-card__name { font-family: var(--display); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: var(--step--1); display: flex; gap:.6em; align-items:center; }
.badge { background: var(--accent); color: var(--accent-ink); font-size: .7rem; padding: .25em .7em; border-radius: 100px; letter-spacing: .08em; }
.price-card__price { font-family: var(--display); font-weight: 800; font-size: var(--step-3); line-height: 1; letter-spacing: -.03em; }
.price-card__price small { font-size: .9rem; font-weight: 600; letter-spacing: .02em; }
.price-card ul { list-style: none; padding: 0; display: grid; gap: .8rem; }
.price-card li { display: flex; gap: .7em; font-size: var(--step-0); }
.price-card li svg { flex: none; margin-top: .35em; color: var(--accent); }

/* Process steps */
.steps { counter-reset: step; display: grid; gap: 0; }
.step {
  display: grid; grid-template-columns: clamp(3rem,8vw,6rem) 1fr; gap: clamp(1rem,3vw,2.5rem);
  padding-block: clamp(1.6rem,3vw,2.6rem); border-top: 1px solid var(--line-on-dark);
  align-items: start;
}
.step:last-child { border-bottom: 1px solid var(--line-on-dark); }
.step__no { font-family: var(--display); font-weight: 800; font-size: var(--step-2); color: var(--accent); }
.step h3 { font-size: var(--step-1); margin-bottom: .4em; }

/* FAQ */
.faq details {
  border-top: 1px solid var(--line); padding-block: clamp(1.1rem,2.5vw,1.6rem);
}
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem;
  font-family: var(--display); font-weight: 700; font-size: var(--step-1); letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { flex: none; transition: transform .35s var(--ease); color: var(--accent); font-size: 1.5rem; line-height: 1; }
.faq details[open] summary .ico { transform: rotate(45deg); }
.faq p { margin-top: .9rem; max-width: 70ch; color: var(--muted); }

/* Contact */
.contact-mail {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.6rem, 6vw, 4.5rem); letter-spacing: -.03em; line-height: 1;
  display: inline-block;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 4px; background-repeat: no-repeat; background-position: left bottom;
  transition: background-size .5s var(--ease);
  word-break: break-word;
}
.contact-mail:hover { background-size: 100% 4px; }

/* Footer */
.site-foot { border-top: 1px solid var(--line-on-dark); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: clamp(1.5rem,4vw,3rem); }
.foot-grid > * { min-width: 0; }
.foot-grid a { overflow-wrap: anywhere; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-grid h4 { font-family: var(--display); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: var(--step--1); opacity: .6; margin-bottom: 1rem; }
.foot-grid a { display: block; padding-block: .35em; opacity: .85; transition: opacity .25s, padding-left .3s var(--ease); }
.foot-grid a:hover { opacity: 1; padding-left: .4em; color: var(--accent-2); }
.foot-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.6rem; border-top: 1px solid var(--line-on-dark); font-size: var(--step--1); opacity: .6; }

/* Big outline word */
.bigword {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(4rem, 22vw, 18rem); line-height: .8; letter-spacing: -.04em;
  text-align: center;
  -webkit-text-stroke: 2px currentColor; color: transparent;
  opacity: .14; pointer-events: none; user-select: none;
}

/* Page hero (sub pages) */
.page-hero { padding-top: clamp(8rem, 16vw, 12rem); padding-bottom: var(--section); }

/* ---------- Case study ---------- */
.case-meta { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.8rem; }
.case-meta span { font-family: var(--display); font-weight: 700; font-size: var(--step--1); letter-spacing: .06em; text-transform: uppercase;
  border: 1.5px solid var(--line); border-radius: 100px; padding: .5em 1.05em; }
.case-body { max-width: 68ch; }
.case-body p { font-size: var(--step-1); line-height: 1.7; }
.case-body p + p { margin-top: 1.2rem; }
.credits { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: clamp(1.3rem,3vw,2.2rem) clamp(1.5rem,4vw,3rem); }
.credit__role { font-family: var(--display); font-weight: 700; font-size: var(--step--1); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.credit__name { font-size: var(--step-0); margin-top: .3em; }
.credit__name span { display: block; }
.back-link { display: inline-flex; align-items: center; gap: .5em; font-family: var(--display); font-weight: 700; font-size: var(--step--1); letter-spacing: .04em; text-transform: uppercase; }
.back-link .arr { transition: transform .35s var(--ease); }
.back-link:hover .arr { transform: translateX(-4px); }

/* ---------- Cinematic showreel hero ---------- */
.hero-cine { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; background: var(--ink); color: var(--paper); isolation: isolate; }
.hero-cine__media { position: absolute; inset: 0; z-index: 0; }
.hero-cine__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.82); }
.hero-cine__video { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero-cine__video.is-ready { opacity: 1; }
/* Cover the viewport at the showreel's 16:9 aspect so it fills full-screen with
   no letterbox bars; whichever dimension overflows is cropped (object-fit:cover style). */
.hero-cine__video iframe {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 100vw;
  height: 56.25vw;            /* 100vw * 9/16 */
  min-width: 177.7778svh;     /* 100svh * 16/9 */
  min-height: 100svh;
  border: 0; pointer-events: none;
}
.hero-cine__scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 95% at 50% 42%, rgba(20,8,8,.12), rgba(20,8,8,.5) 68%, rgba(20,8,8,.74)),
    linear-gradient(180deg, rgba(20,8,8,.5) 0%, transparent 24%, transparent 58%, rgba(20,8,8,.82) 100%); }
.hero-cine__inner { position: relative; z-index: 2; text-align: center; padding-block: clamp(7rem,14vw,9rem) clamp(5rem,9vw,7rem); }
.hero-cine .eyebrow { justify-content: center; }
.hero-cine__title { font-size: var(--giant); line-height: .92; text-shadow: 0 2px 40px rgba(10,4,4,.35); }
.hero-cine__sub { font-family: var(--display); font-weight: 600; letter-spacing: .03em; font-size: var(--step-1);
  margin-top: 1.3rem; color: color-mix(in oklab, var(--paper) 88%, transparent); text-shadow: 0 1px 20px rgba(10,4,4,.4); }
.hero-cine__cta { margin-top: clamp(1.8rem, 4vw, 2.6rem); display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-cine__corners { position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(1.4rem,3vw,2.4rem);
  display: flex; justify-content: space-between; padding-inline: var(--pad);
  font-family: var(--display); font-weight: 700; font-size: var(--step--1); letter-spacing: .14em; text-transform: uppercase;
  color: color-mix(in oklab, var(--paper) 78%, transparent); pointer-events: none; }
@media (max-width: 620px) { .hero-cine__corners { display: none; } }
.hero-cine__scroll { position: absolute; z-index: 2; left: 50%; bottom: clamp(1.1rem,2.6vw,1.8rem); transform: translateX(-50%);
  width: 34px; height: 34px; display: grid; place-items: center; }
.hero-cine__scroll .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); animation: scrollpulse 1.8s var(--ease) infinite; }
@keyframes scrollpulse { 0%,100% { transform: translateY(-4px); opacity: 1; } 50% { transform: translateY(5px); opacity: .35; } }

/* ---------- Reel modal (full reel with sound) ---------- */
.reel-modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: clamp(1rem,4vw,3rem);
  background: rgba(15,7,7,.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; transition: opacity .4s var(--ease); }
.reel-modal[hidden] { display: none; }
.reel-modal.is-open { opacity: 1; }
.reel-modal__frame { position: relative; width: min(1100px, 100%); aspect-ratio: 16/9; background: #000;
  border-radius: var(--radius); overflow: hidden; box-shadow: 0 40px 120px -40px rgba(0,0,0,.85); }
.reel-modal__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.reel-modal__close { position: absolute; top: clamp(1rem,3vw,2rem); right: clamp(1rem,3vw,2rem);
  width: 48px; height: 48px; border-radius: 50%; background: var(--paper); color: var(--ink);
  font-size: 1.3rem; display: grid; place-items: center; z-index: 1;
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease); }
.reel-modal__close:hover { background: var(--accent); color: var(--accent-ink); transform: rotate(90deg); }

/* ---------- Video embed (lazy click-to-play) ---------- */
.video-embed {
  position: relative; border-radius: var(--radius); overflow: hidden;
  display: block; background: var(--ink); isolation: isolate; cursor: pointer;
  width: 100%; border: 0; padding: 0; text-align: left;
}
.video-embed__poster {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transform: scale(1.02);
  transition: transform .9s var(--ease), filter .6s var(--ease);
  filter: grayscale(15%) saturate(105%);
}
.video-embed:hover .video-embed__poster { transform: scale(1.06); }
.video-embed::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(20,8,8,.25) 0%, transparent 30%, rgba(20,8,8,.7) 100%);
  transition: opacity .5s var(--ease);
}
.video-embed__play {
  position: absolute; z-index: 2; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: clamp(64px, 9vw, 92px); height: clamp(64px, 9vw, 92px); border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center;
  transition: transform .4s var(--ease), background .3s var(--ease);
  box-shadow: 0 10px 40px -8px rgba(164,0,15,.6);
}
.video-embed:hover .video-embed__play { transform: translate(-50%,-50%) scale(1.08); background: var(--accent-2); }
.video-embed__video { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; object-fit: cover; background: #000; border: 0; }
.video-embed.is-playing .video-embed__poster,
.video-embed.is-playing .video-embed__play,
.video-embed.is-playing .poster__tag,
.video-embed.is-playing .poster__meta,
.video-embed.is-playing::after { opacity: 0; pointer-events: none; }

/* ---------- Vertical reels in phone frames ---------- */
.reels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.4rem, 3.5vw, 2.8rem); max-width: 960px; margin: clamp(2rem, 5vw, 3.5rem) auto 0; }
.reel { display: flex; flex-direction: column; gap: 1rem; }
.phone {
  position: relative; background: #0C0A09; border-radius: clamp(1.7rem, 4vw, 2.4rem); padding: .5rem;
  box-shadow: 0 36px 66px -30px rgba(0,0,0,.6), inset 0 0 0 1.5px rgba(250,246,233,.10);
  transition: transform .55s var(--ease), box-shadow .55s var(--ease);
}
.reel:hover .phone { transform: translateY(-6px); box-shadow: 0 46px 80px -32px rgba(0,0,0,.7), inset 0 0 0 1.5px rgba(250,246,233,.16); }
.phone__screen { position: relative; aspect-ratio: 9 / 16; border-radius: clamp(1.2rem, 3vw, 1.7rem); overflow: hidden; background: #000; }
.phone__screen::after { content: ""; position: absolute; top: .55rem; left: 50%; transform: translateX(-50%); width: 26%; height: .5rem; border-radius: 100px; background: #000; z-index: 4; pointer-events: none; }
.phone .video-embed { position: absolute; inset: 0; border-radius: 0; }
.reel__cap { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; padding-inline: .25rem; }
.reel__cap b { font-family: var(--display); font-weight: 700; font-size: var(--step-0); letter-spacing: -.01em; }
.reel__cap span { font-family: var(--display); font-weight: 700; font-size: var(--step--1); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-2); }
@media (max-width: 760px) {
  .reels { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 76%; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; gap: 1rem; margin-inline: calc(var(--pad) * -1); padding: 0 var(--pad) 1.2rem; }
  .reel { scroll-snap-align: center; }
}

/* ---------- Client logo wall ---------- */
.clients-marquee .marquee__track { align-items: center; }
.client-logo { display: inline-flex; padding-inline: clamp(1rem, 2.4vw, 2.2rem); }
.client-logo img {
  height: clamp(50px, 6.5vw, 76px); width: auto; display: block;
  opacity: .58;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.client-logo:hover img { opacity: 1; transform: translateY(-4px); }

/* ---------- About / behind the scenes ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0,5fr) minmax(0,7fr); gap: clamp(1.5rem,4vw,3.5rem); align-items: center; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.about-figure { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; }
.about-figure img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.02); transition: transform 1s var(--ease); }
.about-figure:hover img { transform: scale(1.06); }
.about-figure__tag {
  position: absolute; left: 1rem; bottom: 1rem; z-index: 2;
  font-family: var(--display); font-weight: 700; font-size: var(--step--1);
  letter-spacing: .12em; text-transform: uppercase;
  background: var(--accent); color: var(--accent-ink); padding: .4em .9em; border-radius: 100px;
}
/* BTS slideshow */
.bts-slideshow { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: var(--ink); isolation: isolate; }
.bts-slideshow .slides { position: absolute; inset: 0; }
.bts-slideshow .slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 40%;
  opacity: 0; transform: scale(1.05);
  transition: opacity .9s var(--ease), transform 6s linear;
}
.bts-slideshow .slide.is-active { opacity: 1; transform: scale(1); }
.bts-slideshow::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent 50%, rgba(20,8,8,.55) 100%); }
.slide-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 46px; height: 46px; border-radius: 50%;
  background: color-mix(in oklab, var(--paper) 86%, transparent); color: var(--ink);
  display: grid; place-items: center; font-size: 1.5rem; line-height: 1;
  font-family: var(--display); padding-bottom: .1em;
  opacity: 0; transition: opacity .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
}
.bts-slideshow:hover .slide-nav, .bts-slideshow:focus-within .slide-nav { opacity: 1; }
.slide-nav:hover { background: var(--accent); color: var(--accent-ink); }
.slide-nav.prev { left: .8rem; } .slide-nav.next { right: .8rem; }
@media (hover: none) { .slide-nav { opacity: 1; background: color-mix(in oklab, var(--paper) 78%, transparent); } }
.slide-dots { position: absolute; left: 0; right: 0; bottom: .9rem; z-index: 3; display: flex; gap: .45rem; justify-content: center; }
.slide-dots button { width: 8px; height: 8px; border-radius: 50%; background: rgba(250,246,233,.55); transition: width .3s var(--ease), background .3s var(--ease); }
.slide-dots button[aria-current="true"] { width: 22px; border-radius: 6px; background: var(--accent-ink); }
.bts-slideshow .about-figure__tag { z-index: 3; }

/* Cursor follower (desktop, fine pointer only) */
/* Refined cursor: a subtle ring that only appears over interactive elements */
.cursor-dot {
  position: fixed; top: 0; left: 0; z-index: 100; pointer-events: none;
  width: 10px; height: 10px; border-radius: 50%;
  border: 1.5px solid var(--accent);
  background: color-mix(in oklab, var(--accent) 14%, transparent);
  opacity: 0;
  transition: opacity .3s var(--ease), width .4s var(--ease), height .4s var(--ease);
  display: none;
}
.cursor-dot.is-active { opacity: 1; width: 46px; height: 46px; }
@media (pointer: fine) { .cursor-dot { display: block; } }
@media (prefers-reduced-motion: reduce) { .cursor-dot { display: none !important; } }

/* Scroll progress */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform-origin: left; transform: scaleX(0); background: var(--accent); z-index: 60; }

/* ---------- Mobile: designed for phone, not shrunk ---------- */
@media (max-width: 760px) {
  /* Substantial, editorial cards instead of thin strips */
  .poster { aspect-ratio: 4 / 3; }
  .work-tile.is-wide.poster { aspect-ratio: 16 / 9; }
  .work-grid { gap: 1.1rem; }
  /* Tighter, intentional section rhythm on phone */
  .poster__meta h3 { font-size: var(--step-1); }
}
@media (max-width: 560px) {
  /* Punchier hero headline; full-bleed-feeling type */
  .hero-cine__title { font-size: clamp(2.5rem, 12.5vw, 4rem); }
  .hero-cine__sub { font-size: var(--step-0); }
  /* Hero CTAs: stacked, full-width, comfortable tap targets */
  .hero-cine__cta { flex-direction: column; align-items: stretch; gap: .7rem; width: min(340px, 100%); margin-inline: auto; }
  .hero-cine__cta .btn { justify-content: center; }
  /* Larger tap targets across buttons + nav on touch */
  .btn { padding-block: 1.05em; }
  .mobile-nav a { padding-block: .25em; }
}
@media (max-width: 520px) {
  .foot-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .credits { grid-template-columns: 1fr 1fr; }
}

/* Reduced motion: show everything, kill movement */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .reveal-line > * { transform: none !important; }
  .marquee__track { animation: none !important; }
}

/* Print-ish / no-JS fallback */
.no-js .reveal { opacity: 1; transform: none; }
.no-js .reveal-line > * { transform: none; }

/* ===== Photo case: editorial gallery ===== */
.photo-feature { position: relative; width: 100%; aspect-ratio: 16 / 9;
  overflow: hidden; border-radius: var(--radius); background: var(--paper-2); }
.photo-feature img { width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 1.2s var(--ease); }
.photo-feature:hover img { transform: scale(1.03); }
.photo-masonry { columns: 3; column-gap: clamp(.6rem, 1.2vw, 1rem);
  margin-top: clamp(.6rem, 1.2vw, 1rem); }
.photo-masonry figure { break-inside: avoid; margin: 0 0 clamp(.6rem, 1.2vw, 1rem);
  border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.photo-masonry img { width: 100%; height: auto; display: block;
  transition: transform 1.2s var(--ease); }
.photo-masonry figure:hover img { transform: scale(1.04); }
@media (max-width: 900px) { .photo-masonry { columns: 2; } }
@media (max-width: 560px) { .photo-masonry { columns: 1; } }
