/* ==========================================================================
   MISEN Studios — styles
   Palette from the existing kabirsfilm.com brand: black, white, charcoal.
   Type: Poppins (display) + Manrope (body). No decorative/serif faces.
   ========================================================================== */

:root {
  /* Colour tokens */
  --ink: #0a0a0a;
  --ink-2: #141414;
  --charcoal: #303030;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.4);
  --paper: #f4f2ee;
  --paper-dim: rgba(244, 242, 238, 0.7);
  --paper-faint: rgba(244, 242, 238, 0.5);
  --accent: #f0b56a;       /* warm golden-hour amber: marks the current page in the nav */
  --graphite: #232323;     /* deep graphite: home reels section + contact page */

  /* Type */
  --font-display: "Poppins", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;

  /* Spacing */
  /* Content runs close to the screen edges (like the reference), never boxed in the middle */
  --gutter: clamp(28px, 11vw, 260px);
  /* Tighter inset used by the header and the reel row, closer to the screen edges */
  --edge: clamp(24px, 4.5vw, 110px);
  --section: clamp(96px, 12vw, 176px);
  --max: none;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-std: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 200ms;
  --dur: 700ms;

  /* Layers */
  --z-nav: 40;
  --z-menu: 50;
  --z-dialog: 90;
  --z-loader: 100;
}

*,
*::before,
*::after { box-sizing: border-box; }

/* Always reserve the scrollbar's space: locking scroll (Community pop-up, video player, phone menu) hides the
   scrollbar, which otherwise widened the page and nudged right-aligned things like the menu links sideways */
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
/* No grey/black box flashing behind things when they're tapped on phones (menu button, menu links, etc.) */
* { -webkit-tap-highlight-color: transparent; }
/* Focus rings only for keyboard users, never after a tap or click */
:focus:not(:focus-visible) { outline: none; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

::selection { background: var(--paper); color: var(--ink); }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
  transition: top var(--dur-fast);
}
.skip-link:focus { top: 16px; }

.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;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* 12-column grid used for asymmetric, left-weighted layouts */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
}

/* ---------- Type ---------- */

.eyebrow {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-dim);
}

.display {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

/* Light-weight contrast word inside a heading (replaces the old serif accent) */
.light { font-weight: 300; }

.h-section { font-size: clamp(2rem, 4.2vw, 3.75rem); }

.lede {
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  line-height: 1.6;
  color: var(--paper-dim);
  max-width: 40ch;
  margin: 0;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;          /* the outline stays its original size... */
  padding: 0 28px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 1.0625rem;      /* ...with a bigger label inside it: 17px (originally 12px) */
  font-weight: 600;
  letter-spacing: 0.1em;     /* tighter spacing keeps the outline from stretching wider */
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  background: transparent;
  transition: background-color 350ms ease, color 350ms ease, border-color 350ms ease; /* quick, visible fade to white */
}
/* Hover effects only for a real mouse: on touchscreens a first tap would otherwise just "hover"
   (button turns solid, label rolls) and need a second tap to actually go */
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
  .btn--solid:hover { background: transparent; color: var(--paper); }
  .btn:hover svg { transform: translateX(3px); }
}
.btn--solid { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn svg { width: 16px; height: 16px; flex: none; transition: transform var(--dur-fast) ease; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

/* Hover text roll, top to bottom: the label drops out through the bottom of the button while an
   identical copy drops in from the button's real top edge. The button itself is the window
   (overflow hidden + its pill radius), so the text only shows inside the button's actual outline.
   main.js wraps each button's text in .btn__label (the copy is hidden from screen readers). */
.btn { overflow: hidden; position: relative; }
.btn__label { position: relative; display: inline-block; vertical-align: middle; }
.btn__text { display: block; transition: transform 450ms cubic-bezier(0.65, 0, 0.35, 1); }
/* 44px = more than half the 48px button + half the text, so the copy starts fully above the top edge */
.btn__text--copy { position: absolute; inset: 0; transform: translateY(-44px); }
.btn:focus-visible .btn__text { transform: translateY(44px); }
.btn:focus-visible .btn__text--copy { transform: translateY(0); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover .btn__text { transform: translateY(44px); }
  .btn:hover .btn__text--copy { transform: translateY(0); }
}
/* Touchscreens: the same white fill + label roll plays on the tap itself (added by main.js), so there's
   feedback without the old "first tap only hovers" problem */
.btn.is-tapped { background: var(--paper); color: var(--ink); border-color: var(--paper);
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease; }
.btn.is-tapped .btn__text { transform: translateY(44px); transition-duration: 300ms; }
.btn.is-tapped .btn__text--copy { transform: translateY(0); }
.founder-banner .btn.is-tapped { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.link-underline {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 300ms var(--ease-out);
  padding-bottom: 2px;
}
.link-underline:hover { background-size: 100% 1px; }

/* ---------- Loader ---------- */

.loader {
  position: fixed;
  inset: 0;
  z-index: var(--z-loader);
  display: grid;
  place-items: center;
  background: var(--graphite); /* same deep graphite as the home reels (video previews) section */
  transition: opacity 600ms ease, visibility 600ms;
}
/* Fallback logo only (no-JS / reduced motion). Scoped with ">" so it can't resize the animated
   intro's logo, which must sit exactly under the drawn lines. */
.loader > img { width: min(240px, 50vw); height: auto; animation: loader-in 900ms var(--ease-out) both; }
.loader.is-done { opacity: 0; visibility: hidden; }

/* Minimal intro: a single fine line traces each letter of the wordmark in place (centre of the
   screen), then the outlines fade into the real logo. Built by main.js; plain <img> is the fallback. */
.loader.is-animating > img { display: none; }
.loader__mark {
  position: relative;
  width: min(320px, 62vw);
  aspect-ratio: 1664 / 213;
}
@media (max-width: 767px) { .loader__mark, .loader > img { width: 40vw; } } /* phones: a much smaller intro logo */
/* Each letter has one line drawn along its centre (viewBox = the logo image's own 1664x213 pixels).
   The lines are a white mask over the real logo: they're drawn wider than the logo's 20px strokes,
   so the logo is revealed exactly, line by line, and is complete when the last line finishes. */
.loader__draw { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
/* Tiny loading percentage just under the logo */
.loader__pct {
  position: absolute;
  left: 50%;
  top: calc(100% + 16px);
  transform: translateX(-50%);
  font-family: "Inter Tight", var(--font-display);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.18em;
  font-variant-numeric: tabular-nums;
  color: rgba(244, 242, 238, 0.6);
  white-space: nowrap;
  transition: opacity 250ms ease;
}
.loader.is-unravel .loader__pct, .loader.is-done .loader__pct { opacity: 0; }
.loader__stroke {
  fill: none;
  stroke: #fff;
  stroke-width: 40;          /* just wide enough to cover every logo pixel (tested), so little shows early */
  stroke-linecap: butt;      /* flat ends: no square block running ahead of the line */
  stroke-linejoin: round;
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
}
.loader__stroke { opacity: 0; } /* square line-ends would otherwise show a dot at each start point early */
.loader.is-drawing .loader__stroke {
  animation: loader-draw 320ms cubic-bezier(0.65, 0, 0.35, 1) both;
  animation-delay: calc(120ms + var(--i) * 45ms);    /* faster: last letter done at ~1.0s */
}
@keyframes loader-draw {
  0%    { stroke-dashoffset: 1; opacity: 0; }
  1%    { opacity: 1; }
  99.9% { stroke-dasharray: 1 1; stroke-dashoffset: 0; opacity: 1; }
  100%  { stroke-dasharray: none; stroke-dashoffset: 0; opacity: 1; } /* finish as a plain solid line (no dash gaps) */
}
@keyframes loader-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-nav);
  transition: background-color 300ms ease, transform 400ms var(--ease-out);
}
/* No background behind the nav. Over the light (cream) section it switches to dark text so it stays readable. */
.nav__logo img, .nav__links a, .nav__pill, .nav__toggle span { transition: filter 250ms ease, color 250ms ease, border-color 250ms ease, background-color 250ms ease; }
.nav.is-light .nav__logo img { filter: invert(1); }
.nav.is-light .nav__links a { color: var(--ink); }
.nav.is-light .nav__links a[aria-current="page"] { color: #a86a1e; text-shadow: none; }
.nav.is-light .nav__pill { border-color: var(--ink); }
.nav.is-light .nav__toggle span { background: var(--ink); }
.nav.is-hidden { transform: translateY(-100%); }
/* Header sits wider than the page content: closer to the screen edges */
.nav .wrap { padding-left: var(--edge); padding-right: var(--edge); }
.nav { padding-top: 24px; } /* a little breathing room from the top edge / video frame */
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.nav__logo img { width: 186px; height: auto; } /* a touch bigger (was 168px) */
/* Home encore: the top-left logo redraws with a quick mini line sequence (built by main.js) */
.nav__logo { position: relative; }
.navdraw { position: absolute; inset: 0; pointer-events: none; }
.navdraw svg { display: block; width: 100%; height: 100%; overflow: visible; }
/* The logo stays at full brightness; a short invisible gap travels through each letter (in one end,
   out the other), starting from the middle letters and spreading outwards. The SVG copy shows the
   logo with the gaps cut out, so the plain image is hidden underneath while it runs. */
.nav__logo.has-svg img { visibility: hidden; }  /* home: the SVG copy is shown permanently (no swapping) */
.nav.is-light .navdraw { filter: invert(1); }  /* match the logo's dark version over light sections */
.navdraw { transition: filter 250ms ease; }
.navdraw__stroke { fill: none; stroke: #000; stroke-width: 40; stroke-linecap: butt; stroke-linejoin: round; stroke-dasharray: 0.35 2; stroke-dashoffset: 0.35; }
.navdraw.is-sweeping .navdraw__stroke {
  animation: navdraw-sweep 760ms cubic-bezier(0.45, 0, 0.25, 1) both;
  animation-delay: calc(var(--d) * 80ms);
}
/* "Made by one who sees differently.": the same invisible strands, once, when it scrolls into view */
.sweep-word { display: inline-block; }
.gap-stroke { fill: none; stroke: #000; stroke-linecap: butt; stroke-linejoin: round; stroke-dasharray: 0.35 2; stroke-dashoffset: 0.35; }
.is-sweeping .gap-stroke {
  animation: navdraw-sweep 760ms cubic-bezier(0.45, 0, 0.25, 1) both;
  animation-delay: calc(var(--d) * 45ms);
}
@keyframes navdraw-sweep {
  from { stroke-dashoffset: 0.35; }   /* strand waiting just before the letter's start */
  to   { stroke-dashoffset: -1; }     /* ...and gone out past its end */
}
/* Home encore: "Get in touch" rolls its label down once, exactly like on hover, and lights up white while it does */
.btn.is-rolling { background: var(--paper); color: var(--ink); border-color: var(--paper);
  transition: background-color 350ms ease, color 350ms ease, border-color 350ms ease; }          /* fades in */
.btn.is-unlit { transition: background-color 650ms ease, color 650ms ease, border-color 650ms ease; } /* fades out slowly */
.btn.is-rolling .btn__text { transform: translateY(44px); }
.btn.is-rolling .btn__text--copy { transform: translateY(0); }

/* Links share one outlined pill that slides to whichever link is hovered/focused */
.nav__links {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(24px, 3.4vw, 64px);
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.nav__links a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
}
/* Current page: text only takes the accent colour; a soft shadow keeps it legible over video */
.nav__links a[aria-current="page"] {
  color: var(--accent);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}
.nav__links a { transition: color var(--dur-fast) ease; }
.nav__pill {
  position: absolute;
  top: 50%;
  left: 0;
  height: 44px;
  width: 0;
  border: 1px solid var(--paper);
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  transform: translate(0, -50%);
  /* Even ease-in-out so the glide between links is clearly visible, not a snap */
  transition: transform 450ms cubic-bezier(0.65, 0, 0.35, 1), width 450ms cubic-bezier(0.65, 0, 0.35, 1), opacity 250ms ease;
}
.nav__pill.is-ready { opacity: 1; }
/* Without JS, fall back to an outline on hover */
.no-js .nav__links a:hover,
.no-js .nav__links a[aria-current="page"] { box-shadow: inset 0 0 0 1px var(--paper); }

.nav__toggle {
  display: none;
  width: 48px;
  height: 48px;
  margin-right: -12px;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.nav__toggle span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 1.5px;
  background: var(--paper);
  transition: transform 300ms var(--ease-out), top 300ms var(--ease-out);
}
.nav__toggle span:nth-child(1) { top: 19px; }
.nav__toggle span:nth-child(2) { top: 28px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { top: 23.5px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { top: 23.5px; transform: rotate(-45deg); }

/* Phone menu: graphite (same as the home video previews), links centred in the thin MISENSTUDIOS. wordmark style */
.menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px var(--gutter) 48px;
  background: var(--graphite);
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms ease, visibility 300ms;
}
.menu.is-open { opacity: 1; visibility: visible; }
/* While the phone menu is open, the top bar sits above it so the two lines (now turned into an X) close it */
.menu-open .nav { z-index: calc(var(--z-menu) + 1); transform: none; }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu li a {
  display: block;
  padding: 8px 0;
  font-family: "Inter Tight", var(--font-display);
  font-size: clamp(1.75rem, 8.6vw, 2.625rem); /* a touch smaller (32px on a typical phone, was 37.5px) */
  font-weight: 300;
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: -0.045em;
}
.menu li a[aria-current="page"] { color: var(--accent); }
/* Back arrow: closes the menu */
.menu__back {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-top: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  transition: background-color var(--dur-fast), color var(--dur-fast);
}
.menu__back:hover { background: var(--paper); color: var(--ink); }
.menu__back svg { width: 17px; height: 17px; }

/* ---------- Hero (home) ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center; /* text block sits in the vertical middle, still left-aligned */
  overflow: hidden;
  isolation: isolate;
  /* Charcoal frame around the showreel, like the reference's cream border */
  --frame: clamp(10px, 1.1vw, 18px);
  background: var(--charcoal);
}
.hero__media {
  position: absolute;
  inset: var(--frame);
  z-index: -2;
  width: calc(100% - 2 * var(--frame));
  height: calc(100% - 2 * var(--frame));
  object-fit: cover;
  border-radius: 14px;
}
/* No darkening over the hero video and no shadows on its text: video at full brightness, plain text. */
.hero__content { padding-top: 108px; } /* offsets the fixed nav so the block centres in the visible area */
.hero__title { font-size: clamp(1.875rem, 4.5vw, 4.75rem); } /* ~20% smaller than the original */
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: inline-block; }
/* "Compose the whole" stays on one line on tablets and up; phones may wrap it */
@media (min-width: 768px) { .hero__title .line > span { white-space: nowrap; } }
.hero__sub {
  margin: 20px 0 36px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
/* Hero heading + "Frame by frame." are written by fine lines straight after the intro (built by main.js) */
.hero__drawn { position: absolute; overflow: visible; pointer-events: none; }
.hd-stroke { fill: none; stroke: #fff; stroke-linecap: butt; stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; opacity: 0; }
.hero.is-drawing .hd-stroke {
  animation: loader-draw 240ms cubic-bezier(0.65, 0, 0.35, 1) both;
  /* --delay = the moment this letter's string arrives from the logo (set by main.js) */
  animation-delay: var(--delay, calc(150ms + var(--i) * 38ms));
}

/* Intro -> hero hand-off: the graphite fades, the logo unravels along its own lines, and fine strings
   leave each logo letter and curve down to write the heading. */
.loader.is-unravel { background-color: transparent; pointer-events: none; transition: background-color 700ms ease, opacity 600ms ease, visibility 600ms; }
.loader.is-unravel .loader__stroke {
  animation: loader-unravel 380ms cubic-bezier(0.55, 0, 0.45, 1) both;
  animation-delay: var(--out, 0ms);
}
@keyframes loader-unravel {
  from { stroke-dasharray: 1 1; stroke-dashoffset: 0; opacity: 1; }
  to   { stroke-dasharray: 1 1; stroke-dashoffset: -1; opacity: 1; }   /* the line slips away from its start to its end */
}
.string-flow { position: fixed; inset: 0; width: 100vw; height: 100vh; overflow: visible; pointer-events: none; }
.string-flow__line {
  fill: none;
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 1.2;
  stroke-linecap: butt;   /* a round cap leaves a dot where the string's dash shrinks to nothing at each end */
  stroke-dasharray: 0.26 2;
  stroke-dashoffset: 0.26;
  animation: string-run 420ms cubic-bezier(0.45, 0, 0.3, 1) both;
}
@keyframes string-run {
  from { stroke-dashoffset: 0.26; }              /* the string waits at the logo letter */
  99%  { opacity: 1; }
  to   { stroke-dashoffset: -1; opacity: 0; }    /* ...runs the whole way down and disappears into the letter */
}
/* Phones: a tiny scroll hint at the bottom of the hero video; fades in once the heading is written, then bobs */
.hero__scroll { display: none; }
@media (max-width: 767px) {
  .hero__scroll {
    display: block;
    position: absolute;
    left: 50%;
    bottom: calc(var(--frame) + 14px);
    width: 18px;
    height: 18px;
    margin-left: -9px;
    color: rgba(244, 242, 238, 0.8);
    opacity: 0;
    animation: scroll-hint-in 600ms ease 2.6s forwards, scroll-hint-bob 1.8s ease-in-out 3.2s infinite;
    pointer-events: none;
  }
  .hero__scroll svg { display: block; width: 100%; height: 100%; }
}
@keyframes scroll-hint-in { to { opacity: 1; } }
@keyframes scroll-hint-bob { 0%, 100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(5px); opacity: 0.55; } }
/* Phones: a much smaller hero heading, line and button */
@media (max-width: 767px) {
  .hero__title { font-size: 1.375rem; }                 /* 22px (was 30px) */
  .hero__sub { font-size: 1rem; margin: 10px 0 20px; }  /* 16px (was 24px) */
  .hero .btn { min-height: 36px; padding: 0 18px; font-size: 0.75rem; }
  .hero .btn__text--copy { transform: translateY(-32px); }
  .hero .btn:focus-visible .btn__text, .hero .btn.is-rolling .btn__text { transform: translateY(32px); }
  .hero .btn.is-rolling .btn__text--copy { transform: translateY(0); }
}

/* ---------- Definition ---------- */

.definition { padding: clamp(72px, 8vw, 128px) 0; }
/* Home: the MISEN section continues the charcoal of the hero frame */
.definition--charcoal { background: var(--charcoal); }
.definition__head { grid-column: 1 / span 5; }
/* Matches the MISENSTUDIOS. wordmark: thin, tightly tracked sans */
.definition__word {
  font-family: "Inter Tight", var(--font-display);
  font-weight: 300;
  letter-spacing: -0.045em;
  font-size: clamp(2.75rem, 5.6vw, 5.25rem);
}
.definition__meta { display: grid; gap: 4px; margin-top: 20px; color: var(--paper-dim); font-size: 1rem; }
/* Paragraph sits directly under the [noun] line, in the same left column, at a smaller size */
.definition__body {
  grid-column: 1 / -1;
  max-width: 100ch; /* wide enough to read as ~2 lines on desktop */
  margin: 28px 0 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1rem, 1.1vw, 1.125rem);
  line-height: 1.6;
  text-wrap: pretty;
}
.definition__body .dim { color: var(--paper-faint); }
/* Phones: the whole MISEN definition block scaled down */
@media (max-width: 767px) {
  .definition { padding: 36px 0; }
  .definition__word { font-size: 1.75rem; }                                /* 28px (was 44px) */
  .definition__meta { margin-top: 10px; gap: 2px; font-size: 0.75rem; }   /* 12px (was 16px) */
  .definition__body { margin-top: 14px; font-size: 0.8125rem; line-height: 1.55; } /* 13px */
}

/* ---------- Section heads ---------- */

.section { padding: var(--section) 0; }
.section--tight-top { padding-top: 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px 32px;
  flex-wrap: wrap;
  margin-bottom: clamp(32px, 4vw, 56px);
}

/* Heading with a rule running to the right edge */
.rule-head {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  margin-bottom: clamp(32px, 4vw, 56px);
}
.rule-head::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }

/* ---------- Placeholder frames ---------- */
/* Swap a .ph for an <img> or <video> when your real media is ready. */

.ph {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 20% 15%, rgba(255,255,255,0.08), transparent 55%),
    linear-gradient(160deg, #262626 0%, #141414 55%, #0d0d0d 100%);
}
.ph::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.ph__label {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Reel takeover (home) ---------- */
/* A row of panels. The active panel grows to take over the row; the rest shrink to slivers. */

.reels-section { padding-top: clamp(48px, 6vw, 96px); padding-bottom: clamp(48px, 6vw, 96px); background: var(--graphite); } /* equal graphite above and below the reels */ /* deep graphite: a step down from the charcoal MISEN section */ /* gap between the MISEN section and the reels */
.reels-hint { display: none; } /* phones only (hover does the job on desktop) */
.reels {
  /* Row height is derived from the width so the OPEN panel is exactly 16:9 landscape.
     --others = number of reels minus one (6 reels -> 5). */
  --pad: clamp(12px, 1.2vw, 24px);
  --gap: 8px;
  --grow: 12;
  --others: 4; /* 5 reels */
  display: flex;
  gap: var(--gap);
  padding: 0 var(--pad); /* almost edge to edge, like the reference */
  height: calc((100vw - 2 * var(--pad) - var(--others) * var(--gap)) * var(--grow) / (var(--grow) + var(--others)) * 9 / 16);
}
.reel {
  position: relative;
  flex: 1 1 0%;
  min-width: 0;
  overflow: hidden;
  border-radius: 0; /* sharp corners */
  background: var(--ink-2);
  isolation: isolate;
  cursor: pointer;
  transition: flex 500ms var(--ease-std);
}
.reel.is-active { flex: var(--grow) 1 0%; }
/* Footage settles from a slight zoom as its panel expands */
.reel > .ph,
.reel > img,
.reel > video {
  z-index: -2;
  transform: scale(1.12);
  transition: transform 700ms var(--ease-std);
}
.reel.is-active > .ph,
.reel.is-active > img,
.reel.is-active > video { transform: scale(1); }
/* Closed-panel thumbnail: a still with a face framed for the thin strip (object-position set per film).
   It fades out when the panel opens and the video takes over. */
.reel > .reel__thumb {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -1;
  transform: none; opacity: 1;
  transition: opacity 400ms ease;
}
.reel.is-active > .reel__thumb { opacity: 0; transform: none; }
/* No darkening over the reel videos: every panel shows its footage at full strength.
   Titles stay readable with a soft text shadow instead. */
.reel__content { text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55); }
.reel__content {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 300ms ease, transform 500ms var(--ease-out);
  pointer-events: none;
}
.reel.is-active .reel__content { opacity: 1; transform: none; transition-delay: 160ms; }
.reel__title { font-size: clamp(1.75rem, 4vw, 3.5rem); white-space: nowrap; }
.reel__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
}
.reel__cta svg { width: 14px; height: 14px; }
/* Vertical label on collapsed panels */
.reel__tab {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-dim);
  white-space: nowrap;
  transition: opacity 300ms ease;
}
.reel.is-active .reel__tab { opacity: 0; }
.reel .ph__label { opacity: 0; transition: opacity 300ms ease; }
.reel.is-active .ph__label { opacity: 1; }

/* ---------- Founder banner (home) ---------- */
/* Full-width photo with the heading + button over its lower left, like the reference */

.founder-banner {
  position: relative;
  /* Same sizing rule as the reference: height grows slowly with width and stops at 484px
     (420px tall at 1024 wide, 473px at 1366, 484px from ~1440 up), so wide screens get a long strip */
  --fb-h: min(532px, calc(17vw + 287px)); /* ~10% taller than the reference */
  display: flex;
  align-items: center; /* heading + button sit in the vertical middle of the banner */
  height: var(--fb-h);
  overflow: hidden;
  isolation: isolate;
  background: #d9d9d9;
  color: var(--ink);
}
.founder-banner__img {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 0% 50%; /* image is 5.4:1 with Kabir near its left; narrower screens trim the empty right side */
}
/* Heading + button sit in the open backdrop, always to the right of Kabir
   (his photo ends ~1.23x the banner height from the left edge) */
.founder-banner__content.wrap {
  padding-left: max(45%, calc(var(--fb-h) * 1.3 + 40px));
  padding-right: var(--edge);
}
/* Two lines: "Made by one who" / "sees differently." */
.founder-banner__content .h-section { font-size: clamp(1.75rem, 2.6vw, 3rem); margin-bottom: 24px; }
.nowrap { white-space: nowrap; }
/* Narrow tablets: too little room beside the photo, so let the lines wrap */
@media (max-width: 959px) { .founder-banner .nowrap { white-space: normal; } }
@media (hover: hover) and (pointer: fine) {
  .founder-banner .btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
}

/* ---------- Founder ---------- */

.founder { align-items: start; }
.founder__media { grid-column: 1 / span 5; position: relative; aspect-ratio: 4 / 5; border-radius: 8px; overflow: hidden; }
.founder__text { grid-column: 8 / -1; padding-top: clamp(24px, 8vw, 140px); }
.founder__text p:not(.eyebrow) { color: var(--paper-dim); font-size: 1.0625rem; max-width: 44ch; margin: 0 0 18px; }
.founder__text .h-section { margin-bottom: 28px; }
.founder__text .btn { margin-top: 16px; }

/* ---------- Services ---------- */

/* A slim band: just a little taller than the founder banner above it.
   Text column on the left; wide image grid stretches to near the right edge. */
.services {
  --svc-pad: clamp(24px, 2.4vw, 44px);
  --svc-split: 55vw; /* where the images start; the step dividers run up to just before it */
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(min(532px, 17vw + 287px) + 130px);
  padding: var(--svc-pad) 0;
  background: var(--paper);
  color: var(--ink);
}
.services .eyebrow { color: rgba(10,10,10,0.6); margin-bottom: 10px; }
.services .h-section { font-size: clamp(1.75rem, 2.8vw, 2.75rem); }
.services > .wrap { padding-left: var(--edge); } /* text sits closer to the left edge, in line with the logo */
.services__head { grid-column: 1 / span 6; margin-bottom: clamp(16px, 2vw, 28px); }
.services > .wrap.grid-12 { display: block; }
/* List (and its divider lines) stretches across the gap to just before the images */
.services__list { width: calc(var(--svc-split) - var(--edge) - clamp(24px, 2.4vw, 44px)); }
.services__media {
  position: absolute;
  top: var(--svc-pad);
  bottom: var(--svc-pad);
  left: var(--svc-split);
  right: clamp(12px, 1.2vw, 24px); /* near the edge, same inset as the reels */
  border-radius: 6px;
  overflow: hidden;
}
.service { padding: clamp(10px, 1.1vw, 18px) 0; border-top: 1px solid rgba(10,10,10,0.16); }
.service:first-child { border-top: 0; } /* only the two dividers between steps remain */
.service__head { display: flex; align-items: baseline; gap: 16px; }
.service__num { font-family: var(--font-display); font-size: clamp(1rem, 1.7vw, 1.625rem); color: rgba(10,10,10,0.5); } /* a bit under half the step heading size */
.service__name { font-size: clamp(2.25rem, 4vw, 3.75rem); font-weight: 500; } /* big step headings, slightly lighter than the 600 used elsewhere */
.service__tag { margin: 6px 0 0; font-family: var(--font-display); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.75rem; }
/* A short paragraph per step, always visible */
.service__text { margin: 4px 0 0; max-width: 52ch; color: rgba(10,10,10,0.72); font-size: 0.9375rem; line-height: 1.55; }

/* Process gallery: three stills per step, the matching set fades in when a step is hovered/focused */
.process-set {
  position: absolute;
  inset: 0;
  display: grid;
  /* 2 x 2: four images per step. minmax(0, 1fr) stops tall images from stretching the rows
     past the gallery (which made the Release set overflow and overlap). */
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  opacity: 0;
  transition: opacity 300ms ease;
}
.process-set.is-active { opacity: 1; }
.process-set img { width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: cover; border-radius: 10px; } /* plain crossfade, no zoom; every image rounded on all corners */
/* Home page: a single looping video per step, filling the panel, same rounded corners as the photos */
.process-gallery--video .process-set { display: block; }
.process-set video { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
/* Home page: a square video panel with one equal gap above, below and to the right of it.
   The band's height is exactly the square plus the two gaps, so all three gaps always match. */
.services--home {
  --sq: 44vw;                          /* side of the square */
  --sq-gap: clamp(10px, 0.9vw, 18px);  /* the same gap on top, bottom and right */
  --svc-split: calc(100vw - var(--sq) - var(--sq-gap) - 16px);
  min-height: calc(var(--sq) + 2 * var(--sq-gap));
  padding: var(--sq-gap) 0;
}
.services--home .services__media {
  top: var(--sq-gap);
  bottom: auto;
  right: var(--sq-gap);
  left: auto;
  width: var(--sq);
  aspect-ratio: 1 / 1;
}
/* Steps: roomier, with three short bullet points each instead of a paragraph */
.services--home .service { padding: clamp(10px, 1.1vw, 24px) 0; }
.services--home .service__name { font-size: clamp(2rem, 3.4vw, 3.5rem); }
/* One-line subtitle under each step heading */
.services--home .service__sub {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1rem, 1.25vw, 1.25rem);
  line-height: 1.3;
  color: var(--ink);
}
.services--home .service__points {
  margin: clamp(8px, 0.7vw, 14px) 0 0;
  padding: 0;
  list-style: none;
  color: rgba(10,10,10,0.72);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.services--home .service__points li { position: relative; padding-left: 18px; }
.services--home .service__points li + li { margin-top: 6px; }
/* Smaller laptops: a touch tighter so the steps never outgrow the square (which would unbalance the gaps) */
@media (min-width: 1024px) and (max-width: 1399px) {
  .services--home .service { padding: 8px 0; }
  .services--home .service__points { margin-top: 6px; font-size: 0.875rem; }
  .services--home .service__points li + li { margin-top: 3px; }
}
.services--home .service__points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

/* Steps: all stay full strength; only the active step's number turns amber */
.service { cursor: pointer; outline-offset: 6px; }
.service__num { transition: color 250ms ease; }
.service.is-active .service__num { color: #a86a1e; font-weight: 600; } /* deeper amber so it reads on cream */

/* ---------- CTA ---------- */

/* "Have something in mind?" band: close-up camera photo (Media/more.JPG_1.2.1.jpg, 4K grade). Heading + button centred. */
.cta {
  --paper: #f4f2ee;          /* always light text here, even on the white About page */
  --paper-dim: rgba(244, 242, 238, 0.75);
  --ink: #0a0a0a;
  position: relative;
  isolation: isolate;
  padding: var(--section) 0;
  color: var(--paper);
  background: #1a1a1a url("../img/more.webp?v=2") 50% 33% / cover no-repeat;
}
.cta__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; }
/* Heading is clearly bigger than the button text (17px) */
.cta__title { font-size: clamp(1.25rem, 1.9vw, 1.75rem); } /* much smaller: ~26px on a laptop (was ~49px) */
.cta__title a { transition: opacity var(--dur-fast); }
/* Phones: a much smaller "Have something in mind?" band */
@media (max-width: 767px) {
  .cta { padding: 56px 0; }
  .cta__inner { gap: 16px; }
  .cta__title { font-size: 1rem; }                                       /* 16px on phones */
  .cta .btn { min-height: 34px; padding: 0 16px; font-size: 0.6875rem; }
  .cta .btn__text--copy { transform: translateY(-30px); }
  .cta .btn:focus-visible .btn__text { transform: translateY(30px); }
}
.cta__title a:hover { opacity: 0.7; }

/* ---------- Page header (inner pages) ---------- */

.page-head { padding: clamp(150px, 18vw, 230px) 0 clamp(48px, 6vw, 88px); }
.page-head__title { grid-column: 1 / span 7; font-size: clamp(2.75rem, 7vw, 6.5rem); }
.page-head__lede { grid-column: 9 / -1; align-self: end; justify-self: end; }

/* ---------- Work grid ---------- */
/* Edge-to-edge tiles, title laid over each, video preview on hover. */

.work-only { padding-top: 108px; padding-bottom: 0; } /* no page title: grid starts just under the menu and runs straight into the CTA below */
.work-grid {
  border-top: 1px solid #ffffff; /* thin white line across the top row, edge to edge */
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0; /* tiles sit flush against each other, no seams */
}
.tile {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--ink-2);
  isolation: isolate;
  cursor: pointer;
}
/* "More to come" placeholder: only shown where the grid has two columns (it would add a gap in the 3-column grid) */
.tile--soon { display: block; cursor: default; }
/* PC (3 columns): a thin full-width strip under the last row, the same 7:1 shape as the Showreel banner on top */
@media (min-width: 1024px) {
  .tile--soon { grid-column: 1 / -1; aspect-ratio: 7 / 1; }
  .tile--soon .tile__title { font-size: clamp(1.75rem, 3.4vw, 3.25rem); }
}
.tile--soon .tile__title { font-weight: 500; letter-spacing: 0.04em; opacity: 0.92; }
/* Showreel opens the grid as a very thin full-width strip (7:1); the 15 films below fill 5 rows of 3 */
.tile--wide { grid-column: 1 / -1; aspect-ratio: 7 / 1; }
.tile--wide > img, .tile--wide > video { object-position: 50% 40%; } /* keep her eyes in the strip */
.tile--wide .tile__title { font-size: clamp(1.75rem, 3.4vw, 3.25rem); }
.tile > .ph,
.tile > img,
.tile > video { z-index: -2; }
/* Preview just fades in over the still; no hover zoom (scaling a playing video made it shimmer) */
.tile__preview { opacity: 0; transition: opacity 400ms ease; }
.tile.is-previewing .tile__preview { opacity: 1; }
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(10,10,10,0.2); /* a light tint on the still thumbnail only, so titles stay readable */
  transition: background-color 400ms ease;
}
.tile.is-previewing::after { background: rgba(10,10,10,0); } /* the hover preview plays at full brightness */
.tile__body {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  padding: 20px;
  text-align: center;
}
.tile__title { font-size: clamp(1.375rem, 2.4vw, 2.25rem); }
.tile__tag { font-family: var(--font-display); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--paper-dim); }
.tile .ph__label { opacity: 0.8; }

/* ---------- About ---------- */

/* White About page: swap the light/dark tokens inside <main> so every component flips automatically */
.page-about main {
  --paper: #0a0a0a;
  --paper-dim: rgba(10, 10, 10, 0.68);
  --paper-faint: rgba(10, 10, 10, 0.5);
  --ink: #ffffff;
  --line: rgba(10, 10, 10, 0.14);
  --line-strong: rgba(10, 10, 10, 0.4);
  background: #ffffff;
  color: var(--paper);
}

/* The "How we work" section is shared with the home page: keep its own cream background + dark text
   (undo the About page's light/dark token swap inside it) */
.page-about .services {
  --paper: #f4f2ee;
  --paper-dim: rgba(244, 242, 238, 0.7);
  --paper-faint: rgba(244, 242, 238, 0.5);
  --ink: #0a0a0a;
}

/* Slim cinematic video strip; keeps light-on-dark tokens over the footage */
.about-hero {
  --paper: #f4f2ee;
  --ink: #0a0a0a;
  position: relative;
  display: flex;
  align-items: center;
  aspect-ratio: 5.5 / 1; /* slim strip; the 2.35:1 video is cropped top/bottom */
  min-height: 280px;
  max-height: 45vh;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
  background: #0a0a0a;
  color: var(--paper);
}
.about-hero__media { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.about-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,10,10,0.25) 0%, rgba(10,10,10,0) 40%, rgba(10,10,10,0.55) 100%); }
/* Title centred with the button underneath; extra top padding (the menu bar) sits them a little below centre */
.about-hero__content { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; width: 100%; padding: 96px var(--gutter) 20px; }
.about-hero__title { font-size: clamp(1.75rem, 2.6vw, 2.75rem); }
.about-hero__title .line { display: block; overflow: hidden; }
.about-hero__title .line > span { display: inline-block; }

/* Founder: a compact row (smaller portrait, bio beside it), like the reference About page */
.about-founder { padding: clamp(56px, 7vw, 104px) 0; }
.about-intro { align-items: center; }
.about-intro__media { grid-column: 2 / span 3; position: relative; aspect-ratio: 3 / 5; /* tall portrait, just short of 9:16 */ border-radius: 8px; overflow: hidden; }
/* Portrait: black & white until hovered, then eases into its original colour with a very slight zoom */
.about-intro__media img {
  filter: grayscale(1);
  transform: scale(1);
  transition: filter 700ms ease, transform 900ms var(--ease-out);
}
.about-intro__media:hover img { filter: grayscale(0); transform: scale(1.03); }
/* Bio column; "Our story" below reuses exactly these columns so both texts line up */
.about-intro__story,
.our-story__text { grid-column: 6 / span 5; }
.about-intro__name { font-size: clamp(2rem, 3.4vw, 3rem); margin-bottom: 8px; }
.about-intro__role { margin-bottom: 24px; }
.about-intro__story p:not(.eyebrow),
.our-story__text p {
  font-size: 1.0625rem;
  line-height: 1.7;
  margin: 0 0 1.1em;
  max-width: 62ch;
}
.about-intro__story p:not(.eyebrow) { color: var(--paper-dim); }
.about-intro__social { margin: 4px 0 20px -10px; }
.about-intro__social a { color: var(--paper); }
.about-intro__social a:hover { color: var(--paper-dim); }
.about-intro__social svg { width: 26px; height: 26px; }

/* Our story: full-width band, background photo (placeholder for now) with the text in the bio's column */
.our-story {
  /* light studio backdrop, so dark text (inherits the About page's swapped tokens) */
  --paper: #0a0a0a;
  --paper-dim: rgba(10, 10, 10, 0.72);
  --ink: #ffffff;
  --line: rgba(10, 10, 10, 0.14);
  --line-strong: rgba(10, 10, 10, 0.4);
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(420px, 40vw, 640px);
  padding: clamp(44px, 4.5vw, 88px) 0;
  color: var(--paper);
}
.our-story > .wrap { width: 100%; }
/* Kabir (head to camera) pinned left and full height; on wider bands the rest is filled with the
   same backdrop grey sampled from the photo's extended edge, so it reads as one continuous wall */
.our-story__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    /* --story-x is set by main.js so Kabir sits halfway between the left edge and the text */
    url("../img/our-story.webp?v=2") var(--story-x, -20vw) bottom / auto 100% no-repeat,
    linear-gradient(180deg, #eaeef1 0%, #e7ecf0 50%, #e6ebef 100%);
}
/* Phones: the photo becomes a strip across the top, text continues below on the same backdrop grey */
@media (max-width: 767px) {
  .our-story { display: block; background: #e6ebef; padding-top: calc(62vw + 40px); }
  .our-story__bg { bottom: auto; height: 62vw; }
}
.our-story__title { font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 300; margin-bottom: 20px; } /* thin, like the MISEN Studios wordmark */
.our-story .btn { margin-top: 8px; }

.principles { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
.principle { border-top: 1px solid var(--line); padding-top: 24px; }
.principle h3 { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: 1rem; margin: 14px 0 10px; }
.principle p { margin: 0; color: var(--paper-dim); max-width: 38ch; }
.principle .num { font-family: var(--font-display); font-weight: 300; font-size: 1.75rem; line-height: 1; }

/* ---------- Contact ---------- */

/* Contact page: deep graphite instead of black, intro included */
.page-contact, .page-contact .contact-intro { background: var(--graphite); }
.page-work { background: var(--graphite); } /* Work page: same deep graphite as the home reels section, not black */

/* Intro statement that fades out to reveal the form */
.contact-intro {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-nav) - 1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--gutter);
  background: var(--ink);
  transition: opacity 700ms ease, visibility 700ms;
}
/* One centred line, in the same thin, tightly-tracked face and cap height as the logo intro.
   main.js replaces this text with a line-drawn version (this plain text is the no-JS / reduced-motion fallback). */
.contact-intro__text {
  margin: 0;
  font-family: "Inter Tight", var(--font-display);
  font-weight: 300;
  font-size: 49.5px;           /* cap height ≈ 36px, same as the 320px logo in the intro */
  letter-spacing: -0.045em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #fff;
}
.contact-intro__svg { display: block; overflow: visible; }
.contact-intro.is-out { opacity: 0; visibility: hidden; }
.no-js .contact-intro { display: none; }

/* Line-draw animation for the contact intro: same style as the logo intro, but quicker (400ms per letter, 50ms apart) */
.ld-stroke { fill: none; stroke: #fff; stroke-linecap: butt; stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; opacity: 0; }
.is-drawing .ld-stroke {
  animation: loader-draw 260ms cubic-bezier(0.65, 0, 0.35, 1) both;
  animation-delay: calc(80ms + var(--i) * 28ms);
}

.contact-page { opacity: 0; transform: translateY(16px); transition: opacity 800ms ease, transform 800ms var(--ease-out); }
.contact-page.is-in, .no-js .contact-page { opacity: 1; transform: none; }

/* Contact: one centred column — heading above the form */
.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: clamp(150px, 16vw, 210px);
  padding-bottom: var(--section);
}
.contact__title { font-size: clamp(2rem, 4.4vw, 3.75rem); max-width: 18ch; margin-bottom: clamp(32px, 4vw, 56px); }
.contact__form { width: min(640px, 100%); text-align: left; }
.contact__form .form__note { text-align: center; }
.contact__form .form > div:has(> .btn) { display: flex; justify-content: center; }

.form { display: grid; gap: 22px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; color: var(--paper-dim); }
.field label .req { color: var(--paper); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 22px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--paper);
  font: inherit;
  font-size: 1rem;
  transition: border-color var(--dur-fast), background-color var(--dur-fast);
}
.field textarea { min-height: 150px; border-radius: 24px; resize: vertical; }
.field select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23f4f2ee' stroke-width='1.5'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 22px center;
}
.field select option { background: var(--ink); color: var(--paper); }
.field input::placeholder, .field textarea::placeholder { color: var(--paper-faint); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--paper-dim); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--paper); background: rgba(255,255,255,0.04); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { box-shadow: 0 0 0 3px rgba(244,242,238,0.25); }
.field [aria-invalid="true"] { border-color: #ff8a80; }
.field__error { margin: 0 0 0 22px; color: #ff8a80; font-size: 0.9375rem; }
.field__error:empty { display: none; }
.form__note { color: var(--paper-faint); font-size: 0.875rem; margin: 0; }
.form__status { margin: 0; }
.form__status:empty { display: none; }

/* ---------- Video player dialog ---------- */

.player {
  width: min(1200px, 92vw);
  max-height: 92vh;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent; /* the video carries its own black; a black box here showed behind the opening animation */
  color: var(--paper);
  overflow: visible;
}
.player::backdrop { background: rgba(0,0,0,0.88); }
.player[open]::backdrop { animation: player-dim 360ms ease both; }
@keyframes player-dim { from { opacity: 0; } to { opacity: 1; } }
/* Opening animation: the poster glides from the tapped film to here; the real player fades in once it lands */
.player video, .player__title, .player__close { transition: opacity 180ms ease; }
.player.is-flying video, .player.is-flying .player__title, .player.is-flying .player__close { opacity: 0; }.player-fly {
  position: fixed;
  z-index: 2;
  border-radius: 0;
  background: transparent center / cover no-repeat;
  pointer-events: none;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.player-fly.is-landing {
  border-radius: 8px;
  transition: left 440ms cubic-bezier(0.65, 0, 0.35, 1), top 440ms cubic-bezier(0.65, 0, 0.35, 1),
              width 440ms cubic-bezier(0.65, 0, 0.35, 1), height 440ms cubic-bezier(0.65, 0, 0.35, 1),
              border-radius 440ms ease;
}
.player video { width: 100%; height: auto; max-height: 86vh; border-radius: 8px; background: transparent; }
.player__title { position: absolute; left: 0; bottom: calc(100% + 14px); margin: 0; font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8125rem; }
.player__close {
  position: absolute;
  right: 0;
  bottom: calc(100% + 6px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 4px;
  border: 0;                 /* just the ✕ and "Close", no circle */
  border-radius: 0;
  background: transparent;
  color: var(--paper);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 250ms ease;
}
.player__close:hover { opacity: 1; }
/* No outline boxes anywhere in the player (the browser focuses Close when it opens and drew a square round it);
   keyboard focus is shown by Close brightening instead */
.player, .player:focus, .player video:focus, .player__close:focus, .player__close:focus-visible { outline: none; }
.player__close:focus-visible { opacity: 1; }
.player__close svg { width: 14px; height: 14px; }

/* ---------- Community pop-up ---------- */
/* Like the reference: a two-panel card over a dimmed page. Photo (Media/community.jpg) on the left,
   the invitation centred on a graphite panel on the right. */
.community {
  --paper: #f4f2ee;
  --paper-dim: rgba(244, 242, 238, 0.72);
  --ink: #0a0a0a;
  --line-strong: rgba(244, 242, 238, 0.4);
  width: min(900px, 92vw);
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--paper);
  overflow: visible;
}
.community::backdrop { background: rgba(10, 10, 10, 0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.community[open] { animation: community-in 420ms var(--ease-out) both; }
.community[open]::backdrop { animation: community-fade 420ms ease both; }
/* Closing: a quick fade of the card and the dimmed backdrop together */
.community.is-closing { animation: community-out 160ms ease both; }
.community.is-closing::backdrop { animation: community-out 160ms ease both; }
@keyframes community-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes community-in { from { opacity: 0; transform: translateY(14px) scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes community-fade { from { opacity: 0; } to { opacity: 1; } }
.community__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  height: min(740px, 90vh);
  border-radius: 10px;
  overflow: hidden;
  background: var(--graphite);
}
.community__media { position: relative; min-height: 0; }
.community__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
/* Logo at the top and the email pill at the bottom, the same distance from each edge; "Join the / VAULT"
   sits a little above the middle, and the tags + launch line sit well below it, nearer the email. */
.community__panel {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto 0.7fr auto 0.4fr auto;
  justify-items: center;
  padding: clamp(40px, 5vw, 64px) clamp(28px, 4vw, 56px);
  text-align: center;
}
.community__logo { grid-row: 1; }
.community__title { grid-row: 3; }
.community__info { grid-row: 5; }
.community__foot { grid-row: 7; position: relative; width: min(320px, 100%); }
.community__foot .community__status { position: absolute; top: 100%; left: 0; right: 0; margin-inline: auto; }
.community__join { display: block; font-size: clamp(1.125rem, 1.5vw, 1.375rem); letter-spacing: -0.02em; margin-bottom: 4px; }
.community__close {
  position: absolute;
  top: 20px;
  right: 20px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  transition: background-color var(--dur-fast), color var(--dur-fast);
}
.community__close:hover { background: var(--paper); color: var(--ink); }
.community__close svg { width: 18px; height: 18px; }
.community__logo { width: min(200px, 60%); height: auto; }
.community__eyebrow {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--paper-dim);
}
.community__title {
  margin: 0;
  font-family: "Inter Tight", var(--font-display);
  font-weight: 300;
  font-size: clamp(2.75rem, 4.4vw, 3.75rem);   /* VAULT; "Join the" above it is much smaller */
  line-height: 1.05;
  letter-spacing: -0.03em;
}
/* "VAULT": the community's own wordmark, set like MISENSTUDIOS. (thin, capitals, tightly tracked).
   main.js adds invisible strands that drift very slowly through its letters while the pop-up is open. */
.vault-mark {
  display: inline-block;
  text-transform: uppercase;
  font-weight: 300;
  letter-spacing: -0.045em;
}
/* Only the A (slanted legs) gets round gap ends, so its cut edges curve instead of chopping square.
   Gaps are hidden while waiting, so a round end can't leave a dot at either end of the letter. */
.vault-mark .gap-stroke { stroke-opacity: 0; }
.vault-mark .gap-stroke.is-round { stroke-linecap: round; }
.vault-mark.is-drifting .gap-stroke {
  animation: vault-drift 6.4s cubic-bezier(0.45, 0, 0.55, 1) infinite both;
  animation-delay: calc(var(--d) * 530ms);
}
@keyframes vault-drift {
  0%   { stroke-dashoffset: 0.35; stroke-opacity: 0; }   /* strand waits just before the letter */
  1%   { stroke-opacity: 1; }
  59%  { stroke-opacity: 1; }
  60%  { stroke-dashoffset: -1; stroke-opacity: 0; }     /* ...drifts slowly through it and out */
  100% { stroke-dashoffset: -1; stroke-opacity: 0; }     /* a long rest before the next pass */
}
.community__tags {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.community__tag { white-space: nowrap; } /* wrap only between tags, never inside "Early previews" */
.community__sep { margin: 0 6px; opacity: 0.6; }
/* Launch timing line, like the reference's "coming soon" */
.community__soon {
  margin: 18px 0 0;
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-dim);
}
.community__text { margin: clamp(28px, 4vh, 40px) 0 0; max-width: 34ch; color: var(--paper-dim); font-size: 0.9375rem; line-height: 1.7; }
.community__link { color: var(--paper); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.community__link:hover { text-decoration-thickness: 2px; }
/* "Add your email" pill with a round arrow button inside, like the reference */
.community__signup {
  position: relative;
  width: 100%;
}
.community__signup input {
  width: 100%;
  height: 52px;
  padding: 0 60px 0 22px;
  border: 1px solid var(--paper);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: 500 0.8125rem/1 var(--font-display);
  letter-spacing: 0.1em;
}
.community__signup input::placeholder { color: rgba(10,10,10,0.55); text-transform: uppercase; }
.community__signup input:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }
.community__signup input[aria-invalid="true"] { border-color: #e07a5f; box-shadow: 0 0 0 1px #e07a5f; }
.community__signup button {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--graphite);
  color: var(--paper);
  cursor: pointer;
  transition: background-color var(--dur-fast), transform var(--dur-fast);
}
.community__signup button:hover { background: var(--ink); transform: translateX(2px); }
.community__signup button svg { width: 18px; height: 18px; }
.community__status { min-height: 1.4em; margin: 10px 0 0; max-width: 32ch; font-size: 0.8125rem; line-height: 1.4; color: var(--paper-dim); }
.our-story__photo { display: none; } /* phones only */
/* Phones: same side-by-side layout as PC (photo left, invitation + email right), everything scaled to fit */
@media (max-width: 767px) {
  .community { width: 94vw; }
  .community__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); height: min(500px, 72vh); }
  .community__panel { padding: 44px 12px; }
  .community__close { top: 10px; right: 10px; width: 30px; height: 30px; }
  .community__close svg { width: 14px; height: 14px; }
  .community__logo { width: 110px; }
  .community__eyebrow { margin-top: 8px; font-size: 0.5rem; letter-spacing: 0.28em; }
  .community__title { font-size: 2rem; }
  .community__join { font-size: 0.875rem; margin-bottom: 2px; }
  .community__tags { font-size: 0.5625rem; letter-spacing: 0.06em; line-height: 1.7; }
  .community__sep { display: none; }                 /* narrow column: one tag per line, no stray dividers */
  .community__tag { display: block; }
  .community__soon { margin-top: 10px; font-size: 0.5rem; letter-spacing: 0.16em; }
  .community__signup input { height: 38px; padding: 0 40px 0 12px; font-size: 0.5625rem; letter-spacing: 0.08em; }
  .community__signup button { top: 4px; right: 4px; width: 30px; height: 30px; }
  .community__signup button svg { width: 14px; height: 14px; }
  .community__status { font-size: 0.6875rem; }
}

/* ---------- Footer ---------- */

.footer { padding: clamp(72px, 9vw, 120px) 0 32px; border-top: 1px solid var(--line); background: var(--graphite); } /* same graphite as the home reels section */
.footer__brand { grid-column: 1 / span 3; }
.footer__col:nth-child(2) { grid-column: 4 / span 2; padding-left: clamp(20px, 2.5vw, 56px); }  /* Navigate: left of the middle, a clear gap after the brand block */
.footer__col h3.eyebrow { font-size: 1rem; font-weight: 600; color: var(--paper); } /* bold and bright, like the name */
.footer__col ul a { font-size: 0.875rem; } /* Home / Work / About / Contact, a touch smaller */ /* "Navigate" / "Socials" a touch larger than other eyebrows */
.footer__col:nth-child(3) { grid-column: 8 / span 3; }  /* Socials: a little further right of the middle */
.footer__logo img { width: 200px; height: auto; margin-bottom: 24px; }
.footer__tagline { font-family: var(--font-display); font-weight: 300; font-size: 1.25rem; margin: 0; }
/* Name, email and phone stacked under the tagline */
.footer .footer__contact { margin-top: 52px; gap: 0; } /* keeps the spot the removed tagline used to fill (32px line + 20px gap) */
/* Name set as wide as the 200px MISEN Studios logo above it */
.footer .footer__contact span {
  justify-self: start;
  padding: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 33.6px;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--paper);
}
.footer .footer__contact a {
  justify-self: start;
  padding: 4px 0;
  background: none;                 /* always underlined instead of the hover-grow line */
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color var(--dur-fast);
}
.footer .footer__contact a:hover { color: var(--paper); }
.footer h3 { margin: 0 0 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.footer ul a { display: inline-block; padding: 6px 0; color: var(--paper-dim); transition: color var(--dur-fast); }
.footer ul a:hover { color: var(--paper); }
.footer address { font-style: normal; color: var(--paper-dim); display: grid; gap: 2px; }
.footer address a { padding: 6px 0; display: inline-block; overflow-wrap: anywhere; }
.footer__base {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: clamp(64px, 8vw, 112px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--paper-faint);
}

/* Bare icons, no circle; the 44px tap area stays, the icon itself is a little larger */
.social-icons { display: flex; gap: 4px; margin-left: -10px; } /* first icon lines up with the "Socials" heading */
.social-icons a {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--paper-dim);
  transition: color var(--dur-fast);
}
.social-icons a:hover { color: var(--paper); }
.social-icons svg { width: 28px; height: 28px; }

/* ---------- Reveal motion ---------- */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
/* Buttons that also scroll-reveal keep their quick white fade on hover (the reveal's own transition used to
   replace it, so the fill snapped). Delays apply to the reveal only, never to the hover fade. */
.btn.reveal { transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out),
                          background-color 350ms ease, color 350ms ease, border-color 350ms ease; }
.btn.reveal[data-delay="1"] { transition-delay: 80ms, 80ms, 0s, 0s, 0s; }
.btn.reveal[data-delay="2"] { transition-delay: 160ms, 160ms, 0s, 0s, 0s; }
.btn.reveal[data-delay="3"] { transition-delay: 240ms, 240ms, 0s, 0s, 0s; }

.split .line > span { transform: translateY(105%); transition: transform 1s var(--ease-out); }
.split.is-in .line > span { transform: none; }
.split.is-in .line:nth-child(2) > span { transition-delay: 90ms; }
.split.is-in .line:nth-child(3) > span { transition-delay: 180ms; }

.no-js .reveal { opacity: 1; transform: none; }
.no-js .split .line > span { transform: none; }
.no-js .loader { display: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1023px) {
  .definition__head { grid-column: 1 / span 8; }
  .definition__body { grid-column: 1 / -1; }
  .founder__media { grid-column: 1 / span 6; }
  .founder__text { grid-column: 7 / -1; padding-top: 0; }
  .services { display: block; min-height: 0; padding: 64px 0; }
  .services__head, .services__list { grid-column: 1 / -1; width: auto; }
  .services__media { grid-column: 1 / -1; position: relative; inset: auto; aspect-ratio: 16 / 9; margin-top: 32px; }
  .services--home { min-height: 0; }
  .services--home .services__media { top: auto; right: auto; width: auto; aspect-ratio: 1 / 1; max-width: 640px; }
  .page-head__title { grid-column: 1 / -1; }
  .page-head__lede { grid-column: 1 / span 8; margin-top: 24px; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-intro__media { grid-column: 1 / span 5; }
  .about-intro__story, .our-story__text { grid-column: 6 / -1; padding-top: 0; }
  .footer__brand { grid-column: 1 / -1; margin-bottom: 40px; }
  .footer__col:nth-child(n) { grid-column: span 4; padding-left: 0; }
}

@media (max-width: 767px) {
  :root { --gutter: 28px; }

  /* Founder: photo on top, heading + button underneath on dark */
  /* Founder: a square banner on the photo's own grey backdrop. Kabir (who sits ~0.75-1.1x the photo's
     height from its left edge) is slid to the left third; heading + button sit to his right. */
  .founder-banner { display: flex; align-items: center; height: auto; aspect-ratio: 1 / 1; background: #c4c4c4; color: var(--ink); }
  .founder-banner__img { top: 0; bottom: auto; left: -68vw; right: auto; width: auto; height: 100%; max-width: none; object-fit: fill; }
  .founder-banner__content.wrap { width: 100%; padding: 0 5vw 0 52vw; }
  .founder-banner__content .h-section { font-size: 1.125rem; line-height: 1.25; margin-bottom: 14px; }
  .founder-banner .btn { min-height: 34px; padding: 0 16px; font-size: 0.6875rem; }
  .founder-banner .btn__text--copy { transform: translateY(-30px); }
  .founder-banner .btn:focus-visible .btn__text { transform: translateY(30px); }
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .nav__logo img { width: 150px; } /* was 136px */

  .definition__head, .definition__body { grid-column: 1 / -1; }

  /* Reels stack vertically on phones; titles always visible (no hover on touch) */
  /* Reels on phones work like desktop: one open panel + thin face strips in a row.
     Tap a strip to open it; tap the open panel to watch the full film. */
  /* We envision / We frame / We release: everything scaled down so the block is far shorter */
  .services--home { padding: 36px 0; }
  .services--home .service { padding: 8px 0; }
  .services--home .service__head { gap: 10px; }
  .services--home .service__num { font-size: 0.75rem; }
  .services--home .service__name { font-size: 1.375rem; }                 /* 22px (was 32px) */
  .services--home .service__sub { margin-top: 2px; font-size: 0.8125rem; } /* 13px (was 16px) */
  .services--home .service__points { margin-top: 6px; font-size: 0.78125rem; line-height: 1.45; } /* 12.5px */
  .services--home .service__points li { padding-left: 14px; }
  .services--home .service__points li + li { margin-top: 2px; }
  .services--home .service__points li::before { width: 4px; height: 4px; }
  .services--home .services__media { margin-top: 20px; aspect-ratio: 4 / 3; }
  .reels-section { padding-top: 26px; padding-bottom: 26px; }             /* was 48px, then 36px */
  .reels-hint {
    display: block;
    margin: 0 0 14px;
    padding: 0 10px;
    font-family: var(--font-display);
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-align: center;
    color: var(--paper-dim);
  }
  .reels { --pad: 10px; --gap: 4px; height: 88vw; } /* taller row: the open panel reads as a portrait-ish frame */
  .reel.is-active { flex: 8 1 0%; }
  .reel__title { font-size: 1.125rem; }
  .reel__content { gap: 8px; padding: 12px; }
  .reel__cta { font-size: 0.5625rem; letter-spacing: 0.18em; gap: 6px; padding-bottom: 3px; }
  .reel__cta svg { width: 10px; height: 10px; }
  .reel__tab { bottom: 12px; font-size: 0.5rem; letter-spacing: 0.16em; }

  .founder__media, .founder__text,
  .about-intro__media, .about-intro__story, .our-story__text { grid-column: 1 / -1; }
  .founder__text, .about-intro__story { padding-top: 40px; }
  .about-intro__media { position: relative; top: 0; max-width: 420px; }

  /* Phones: two films per row, and the Showreel stays a thin strip like on desktop (a touch taller: 5:1) */
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile--wide { aspect-ratio: 5 / 1; }
  .tile__body { padding: 8px; }
  .tile__title { font-size: 0.875rem; line-height: 1.15; }
  .tile--wide .tile__title { font-size: 1.125rem; }
  .principles { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .page-head__lede { grid-column: 1 / -1; }
  .footer__col:nth-child(n) { grid-column: 1 / -1; margin-bottom: 28px; }
  .player__title { display: none; }
}

/* ---------- Phones: About page + Contact page tightening ---------- */
@media (max-width: 767px) {
  /* About header: a thinner strip with a smaller title and button */
  .about-hero { aspect-ratio: auto; min-height: 0; height: 200px; }
  .about-hero__content { gap: 10px; padding: 64px var(--gutter) 12px; }
  .about-hero__title { font-size: 1.375rem; }
  .about-hero .btn,
  .about-intro__story .btn,
  .our-story .btn { min-height: 34px; padding: 0 16px; font-size: 0.6875rem; }
  .about-hero .btn__text--copy, .about-intro__story .btn__text--copy, .our-story .btn__text--copy { transform: translateY(-30px); }
  .about-hero .btn:focus-visible .btn__text, .about-intro__story .btn:focus-visible .btn__text, .our-story .btn:focus-visible .btn__text { transform: translateY(30px); }

  /* About founder: portrait on the left, a much smaller bio on the right.
     Same gap left of the photo and between photo and text; the photo runs the full height of the text. */
  .about-founder { padding: 36px 0; }
  .about-intro.grid-12 { grid-template-columns: 36% minmax(0, 1fr); column-gap: var(--gutter); align-items: stretch; }
  .about-intro .about-intro__media { grid-column: 1; max-width: none; aspect-ratio: auto; height: 100%; min-height: 220px; }
  .about-intro .about-intro__story { grid-column: 2; padding-top: 0; }
  .about-intro__name { font-size: 1.25rem; margin-bottom: 4px; }
  .about-intro__role { margin-bottom: 10px; font-size: 0.5rem; letter-spacing: 0.2em; }
  .about-intro__story p:not(.eyebrow) { font-size: 0.6875rem; line-height: 1.55; margin-bottom: 0.8em; }
  .about-intro__social { margin: 0 0 8px -10px; }
  .about-intro__social a { width: 34px; height: 34px; }
  .about-intro__social svg { width: 18px; height: 18px; }
  .about-intro__story .btn { margin-top: 2px; }

  /* Our story: same layout as the founder section above: full-height portrait left, text right */
  .our-story { display: block; min-height: 0; padding: 36px 0; background: #e6ebef; }
  .our-story__bg { display: none; }
  .our-story > .wrap.grid-12 { display: grid; grid-template-columns: 36% minmax(0, 1fr); column-gap: var(--gutter); align-items: stretch; }
  .our-story__photo { display: block; position: relative; grid-column: 1; min-height: 220px; border-radius: 8px; overflow: hidden; }
  .our-story__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
  .our-story .our-story__text { grid-column: 2; margin-left: 0; }
  .our-story__title { font-size: 1.375rem; margin-bottom: 10px; }
  .our-story__text p { font-size: 0.6875rem; line-height: 1.55; margin-bottom: 0.8em; }

  /* About: Idea & Direction / Capture & Craft / Polish & Release, sized like the home page's steps */
  .page-about .services { padding: 36px 0; }
  .page-about .service { padding: 8px 0; }
  .page-about .service__head { gap: 10px; }
  .page-about .service__num { font-size: 0.75rem; }
  .page-about .service__name { font-size: 1.375rem; }                       /* 22px */
  .page-about .service__text { margin-top: 4px; font-size: 0.78125rem; line-height: 1.5; } /* 12.5px */
  /* Photo grid: each photo sets its own 4:3 shape and the grid grows to fit. (Sizing the box first and making
     photos fill 100% of it squashed them in iPhone Safari.) The visible set sits in the flow; the hidden sets
     stay layered on top of it for the crossfade. */
  .page-about .services__media { margin-top: 20px; aspect-ratio: auto; height: auto; }
  .page-about .process-set { gap: 8px; grid-template-rows: auto auto; }
  .page-about .process-set.is-active { position: relative; }
  .page-about .process-set img { height: auto; aspect-ratio: 4 / 3; }

  /* Contact: the "Have something in mind?" line-draw a bit smaller */
  .contact-intro__text { font-size: 21px; }
  /* Contact form: fields a little smaller */
  .form { gap: 16px; }
  .form__row { gap: 16px; }
  .field { gap: 6px; }
  .field label { font-size: 0.75rem; }
  .field input, .field select, .field textarea { min-height: 44px; padding: 10px 18px; font-size: 0.9375rem; }
  .field textarea { min-height: 120px; border-radius: 20px; }
  .field select { background-position: right 18px center; }
  .form__note { font-size: 0.8125rem; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .split .line > span, .contact-page { opacity: 1; transform: none; }
}
