/* ============================================================================
   Methodesign — main stylesheet
   Palette and type scale mirror the reference production-studio aesthetic:
   pure black ground, single hot-red accent, oversized condensed display type,
   handwritten scribble accents.
   ========================================================================== */

:root {
  --bg:           #000;
  --red:          #ff0000;
  --yellow:       #fff82f;
  --green:        #21d99a;
  --blue:         #80cff6;
  --white:        #ffffff;
  --near-white:   #ebebeb;
  --black:        #000000;
  --near-black:   #020202;
  --grey:         #666666;
  --black-40:     rgba(0, 0, 0, 0.4);
  --black-20:     rgba(0, 0, 0, 0.2);

  --theme-bg:      #000;
  --theme-accent:  #ff0000;
  --theme-text:    #ffffff;
  --theme-text-inv:#000000;

  --font-primary: "Unbounded", sans-serif;
  --font-heading: "Oswald", "Unbounded", sans-serif;
  --font-hand:    "Caveat", cursive;

  --font-weight-light:   200;
  --font-weight-regular: 400;
  --font-weight-bold:    700;
  --font-variant-numeric: slashed-zero;

  --section-padding: clamp(60px, 8vw, 120px);
  --gutter: 1.8em;
  --transition-base: 0.3s ease;
  --transition-slow: 0.6s ease;
  --header-height: 91px;
}

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

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

body {
  margin: 0;
  background: var(--theme-bg);
  color: var(--theme-text);
  font-family: var(--font-primary);
  font-weight: var(--font-weight-regular);
  font-variant-numeric: var(--font-variant-numeric);
  font-size: 16px;
  line-height: 1.4;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
a { color: inherit; }

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

.skip-link {
  position: absolute; top: -60px; left: 1rem; z-index: 999;
  background: var(--theme-accent); color: var(--white);
  padding: .6em 1em; font-size: .75rem; text-transform: uppercase;
  text-decoration: none; transition: top .2s ease;
}
.skip-link:focus { top: 1rem; }

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

/* ── grid helpers (Foundation-flavoured, hand-rolled) ───────────────────── */
.grid-container { width: 100%; padding: 0 var(--gutter); margin: 0 auto; }
.grid-container.full { padding: 0 var(--gutter); }
.grid-x { display: flex; flex-wrap: wrap; }
.grid-margin-x { gap: 0 var(--gutter); }
.align-justify { justify-content: space-between; }
.align-middle  { align-items: center; }
.cell.shrink   { flex: 0 0 auto; }
.text-center { text-align: center; }
.text-right  { text-align: right; }

/* ============================================================================
   HEADER
   ========================================================================== */
header#primary {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  background: transparent;
  transition: transform .45s cubic-bezier(.4, 0, .2, 1),
              background-color .4s ease,
              backdrop-filter .4s ease,
              border-color .4s ease;
  border-bottom: 1px solid transparent;
}
/* condensed state once you leave the opener */
header#primary.is-stuck {
  background: rgba(0, 0, 0, .62);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: rgba(255, 255, 255, .1);
}
/* tuck away when scrolling down, snap back on the way up */
header#primary.is-hidden { transform: translateY(-100%); }

header#primary .header__inner {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gutter);
  padding: 0 var(--gutter);
}

/* ── nav items ──────────────────────────────────────────────────────────── */
header#primary .menu-outer { display: flex; align-items: center; gap: .35em; }

header#primary .menu-item { position: relative; }

header#primary .menu-link {
  display: block;
  position: relative;
  text-decoration: none;
  padding: .55em .85em;
  border-radius: 999px;
  transition: background-color .3s ease;
}
header#primary .menu-item:hover > .menu-link { background: rgba(255, 255, 255, .08); }

header#primary .menu-link__inner,
header#primary .header__cta-inner {
  position: relative;
  display: block;
  overflow: hidden;
  line-height: 1.25;
}
header#primary .cell-text {
  display: block;
  position: relative;
  z-index: 2;
  text-transform: uppercase;
  font-size: .75rem;
  letter-spacing: .09em;
  font-family: var(--font-primary);
  font-weight: var(--font-weight-regular);
  line-height: 1.25;
  color: var(--theme-text);
  white-space: nowrap;
  transition: transform 320ms cubic-bezier(.4, 0, .2, 1);
}
header#primary .cell-text.absolute {
  position: absolute; top: 0; left: 0; z-index: 1;
  transform: translate(0, 101%);
}
header#primary .menu-item:hover .cell-text,
header#primary .header__cta:hover .cell-text { transform: translate(0, -101%); }
header#primary .menu-item:hover .cell-text.absolute,
header#primary .header__cta:hover .cell-text.absolute { transform: translate(0, 0); }

/* accent tick that grows under the item being pointed at */
header#primary .menu-link::after {
  content: "";
  position: absolute; left: 50%; bottom: .3em;
  width: 0; height: 2px;
  background: var(--theme-accent);
  transform: translateX(-50%);
  transition: width .32s cubic-bezier(.4, 0, .2, 1);
}
header#primary .menu-item:hover .menu-link::after { width: 18px; }

/* ── wordmark ───────────────────────────────────────────────────────────── */
.brandmark {
  display: block;
  text-decoration: none;
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
}
.brandmark__logo {
  display: block;
  width: clamp(150px, 15vw, 230px);
  height: auto;
  transition: opacity .35s ease;
}
.brandmark:hover .brandmark__logo { opacity: .78; }

/* ── right cluster ──────────────────────────────────────────────────────── */
.header__right { display: flex; align-items: center; gap: 1em; }

.header__status {
  display: inline-flex; align-items: center; gap: .55em;
  font-size: .625rem; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
  white-space: nowrap;
}
.header__status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
}

.header__cta {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .7em 1.1em;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  text-decoration: none;
  transition: background-color .35s ease, border-color .35s ease, color .35s ease;
}
.header__cta:hover { background: var(--theme-accent); border-color: var(--theme-accent); }
.header__cta-arrow {
  width: 12px; height: 12px; flex-shrink: 0;
  color: var(--theme-accent);
  transition: transform .35s cubic-bezier(.4, 0, .2, 1), color .35s ease;
}
.header__cta:hover .header__cta-arrow { transform: translate(2px, -2px); color: var(--white); }

/* ── scroll progress hairline ───────────────────────────────────────────── */
.header__progress {
  position: absolute; left: 0; right: 0; bottom: -1px;
  height: 2px; overflow: hidden;
}
.header__progress span {
  display: block; height: 100%; width: 100%;
  background: var(--theme-accent);
  transform: scaleX(0); transform-origin: 0 50%;
}

.burger {
  display: none;
  width: 34px; height: 22px; padding: 0;
  background: none; border: 0; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 7px;
}
.burger span {
  display: block; width: 100%; height: 1.5px; background: var(--theme-text);
  transition: transform .3s ease, opacity .3s ease;
}
.burger[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child  { transform: translateY(-4.25px) rotate(-45deg); }

/* ── mobile menu ────────────────────────────────────────────────────────── */
.mobile-menu {
  position: fixed; inset: 0; z-index: 190;
  background: var(--black);
  padding: calc(var(--header-height) + 2rem) var(--gutter) var(--gutter);
  display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; transition: opacity .35s ease;
  /* on a short screen the menu can outgrow the viewport; let it scroll
     natively (see data-lenis-prevent on the element) */
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
/* the class sets display:flex, which would otherwise beat the UA [hidden] rule */
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { opacity: 1; }
body.menu-open { overflow: hidden; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu > ul > li { margin-bottom: 1.1em; }
.mobile-menu > ul > li > a {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  font-size: clamp(2.4rem, 13vw, 4rem);
  line-height: .9;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--theme-text);
}
.mobile-menu__contact { display: flex; flex-direction: column; gap: .4em; }
.mobile-menu__contact a { font-size: .75rem; text-decoration: none; opacity: .6; }

/* ============================================================================
   SHOWREEL — full-bleed opener
   ========================================================================== */
.block { position: relative; }

/* faux-broadcast scanline sweep — stands in for the reel video */
.hi__scan {
  position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(to bottom,
      rgba(255,255,255,.045) 0 1px, transparent 1px 3px),
    linear-gradient(to bottom, transparent 0%, rgba(255,0,0,.16) 50%, transparent 100%);
  background-size: 100% 3px, 100% 42%;
  background-repeat: repeat, no-repeat;
  animation: scan-sweep 6.5s linear infinite;
  mix-blend-mode: screen;
  opacity: .55;
}
@keyframes scan-sweep {
  0%   { background-position: 0 0, 0 -60%; }
  100% { background-position: 0 0, 0 160%; }
}
@keyframes pulse-dot {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%      { transform: scale(1.9); opacity: .35; }
}
@keyframes pulse-dot-white {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,.5); }
  100%     { box-shadow: 0 0 0 12px rgba(255,255,255,0); }
}
@keyframes cue-bob { 0%,100% { transform: translateY(0); opacity:.4 } 50% { transform: translateY(7px); opacity:1 } }


/* ============================================================================
   HERO — reel running behind a knocked-out wordmark
   The section is 200vh so there is scroll length to fly through the letters;
   .hi__stage sticks for the first viewport of that.
   ========================================================================== */
.block-hero-intro { position: relative; height: 200vh; background: var(--black); }

.hi__stage {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
  cursor: none;
}

.hi__media { position: absolute; inset: 0; z-index: 1; }
.hi__video {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  background: var(--black);
  will-change: transform;
  /* the studio gel reads strongly magenta; pulling saturation back keeps the
     footage cinematic and lets the page's own red stay the loudest colour */
  filter: brightness(1.06) contrast(1.16) saturate(.82);
}
/* never let the platform's own poster/play chrome sit inside the letters */
.hi__video::-webkit-media-controls,
.hi__video::-webkit-media-controls-start-playback-button { display: none !important; }

/* pointer light — screen blend lifts the reel where the cursor is */
.hi__spot {
  position: absolute; inset: 0; z-index: 2;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity .5s ease;
  background: radial-gradient(circle 320px at var(--mx, 50%) var(--my, 50%),
              rgba(255, 240, 220, .28), rgba(255, 60, 40, .10) 45%, transparent 70%);
}
.hi__stage:hover .hi__spot { opacity: 1; }

.hi__knockout {
  position: absolute; inset: 0; z-index: 3;
  width: 100%; height: 100%;
  pointer-events: none;
  display: block;
}
.hi__masktext {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.005em;
}

/* ── centred controls ───────────────────────────────────────────────────── */
.hi__ui {
  position: absolute; z-index: 4;
  left: 50%; bottom: 19vh;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 1.6rem;
  text-align: center;
}
.hi__tagline {
  margin: 0;
  font-size: .75rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
  white-space: nowrap;
}

.hi__play {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: .9rem;
  width: 116px; height: 116px;
  justify-content: center;
  padding: 0; border: 0; background: none;
  overflow: visible;   /* the UA button style clips the label otherwise */
  color: var(--white);
  cursor: none;
  will-change: transform;
}
.hi__play-ring {
  position: absolute; inset: 0;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  transition: transform .45s cubic-bezier(.4, 0, .2, 1),
              border-color .45s ease, background-color .45s ease;
}
.hi__play:hover .hi__play-ring {
  transform: scale(1.12);
  border-color: var(--theme-accent);
  background: rgba(255, 0, 0, .12);
}
/* pause glyph by default; becomes a play triangle when the reel is stopped */
.hi__play-icon {
  position: relative;
  width: 14px; height: 18px;
  border-left: 4px solid currentColor;
  border-right: 4px solid currentColor;
  transition: border-color .3s ease;
}
.hi__play.is-paused .hi__play-icon {
  width: 0; height: 0;
  border-left: 16px solid currentColor;
  border-right: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  margin-left: 5px;
}
.hi__play-dash {
  position: absolute; inset: -8px;
  width: calc(100% + 16px); height: calc(100% + 16px);
  color: var(--white);
  animation: ring-spin 18s linear infinite;
}
.hi__play:hover .hi__play-dash { color: var(--theme-accent); }
@keyframes ring-spin { to { transform: rotate(360deg); } }

.hi__play-label {
  position: absolute; top: calc(100% + 1.1rem); left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-hand);
  font-size: 1.55rem;
  white-space: nowrap;
  opacity: .92;
  transition: opacity .3s ease;
}
.hi__play:hover .hi__play-label { opacity: 1; }

/* ── corners ────────────────────────────────────────────────────────────── */
.hi__meta {
  position: absolute; z-index: 4;
  left: 0; right: 0; bottom: 1.6rem;
  padding: 0 var(--gutter);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-size: .625rem; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
  pointer-events: none;
}
.hi__meta-item { display: inline-flex; align-items: center; gap: .55em; white-space: nowrap; }
.hi__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
}

.hi__meta-group { display: inline-flex; align-items: center; gap: 1.6rem; }

.hi__cue {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: .625rem; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
}
.hi__cue svg { width: 10px; animation: cue-bob 2.2s ease-in-out infinite; }
@keyframes cue-bob { 0%, 100% { transform: translateY(0); opacity: .4 } 50% { transform: translateY(7px); opacity: 1 } }

/* ── pointer ring, drawn in place of the system cursor ──────────────────── */
.hi-cursor {
  position: fixed; top: 0; left: 0; z-index: 300;
  width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s ease, width .3s ease, height .3s ease,
              margin .3s ease, background-color .3s ease, border-color .3s ease;
}
.hi-cursor.is-visible { opacity: 1; }
.hi-cursor.is-active {
  width: 68px; height: 68px; margin: -34px 0 0 -34px;
  border-color: var(--theme-accent);
  background: rgba(255, 0, 0, .14);
}
.hi-cursor__dot {
  position: absolute; top: 50%; left: 50%;
  width: 3px; height: 3px; margin: -1.5px 0 0 -1.5px;
  border-radius: 50%; background: var(--theme-accent);
}

/* thin accent band between sections — echoes the reference's colour blocks */
.theme-accent-band { height: 8px; background: var(--theme-accent); position: relative; z-index: 5; }

/* ============================================================================
   ABOUT — pinned two-line word reveal
   ========================================================================== */
.block-about { height: 300vh; background: var(--black); }

.about__pin {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  width: 100%;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}

/* ── backdrop ───────────────────────────────────────────────────────────── */
.about__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.about__bg-img {
  position: absolute; inset: -8%;
  width: 116%; height: 116%;
  object-fit: cover;
  /* the source is 64px wide — the browser's own upscale does the blurring,
     so this stays cheap; the small blur just smooths the last of the banding */
  filter: blur(14px) saturate(.30) brightness(.66);
  opacity: .36;
  will-change: transform;
}
.about__bg-grain {
  position: absolute; inset: 0;
  opacity: .16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}
.about__bg-vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 70% at 50% 48%, transparent 0%, rgba(0,0,0,.45) 62%, #000 100%),
    linear-gradient(to bottom, #000 0%, transparent 22%, transparent 78%, #000 100%);
}

/* ── centred lockup ─────────────────────────────────────────────────────── */
.about__inner {
  position: relative; z-index: 2;
  width: 100%;
  padding: 0 var(--gutter);
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}
.about__lines { width: 100%; display: flex; flex-direction: column; align-items: center; }
.about__line {
  width: 100%;
  overflow: hidden;
  line-height: .78;
  /* the caps sit slightly proud of the line box; pad the mask and pull the
     layout back so nothing is clipped at rest */
  padding-bottom: .09em;
  margin-bottom: -.09em;
}
.about__word {
  display: block;
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: -.005em;
  line-height: .78;
  color: var(--white);
  white-space: nowrap;
}
.about__char { display: inline-block; will-change: transform; }
.about__line--two .about__word { color: var(--theme-accent); }

.about__tagline { margin-top: clamp(1.6rem, 4vh, 3.2rem); }
.about__tagline p {
  font-family: var(--font-hand);
  font-size: clamp(22px, 2.4vw, 42px);
  line-height: 1;
  color: rgba(255, 255, 255, .82);
  margin: 0;
}
.about__scribble {
  display: block;
  width: clamp(200px, 24vw, 340px);
  height: auto;
  margin: .5em auto 0;
  color: var(--theme-accent);
}
.about__scribble-line { stroke-dasharray: 600; stroke-dashoffset: 600; }

/* ============================================================================
   IDEAS — scribble draws behind uppercase statement
   ========================================================================== */
.block-ideas {
  position: relative;
  background-color: var(--black);
  color: var(--white);
  overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: max(8vw, var(--section-padding)) var(--gutter);
}
.ideas__scribble {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; z-index: 1; color: var(--theme-accent);
}
.ideas__scribble-svg { width: 100%; max-width: 50%; height: auto; max-height: 100%; }
.ideas__scribble-path { fill: none; stroke-dasharray: 9999; stroke-dashoffset: 9999; }

.ideas__content { position: relative; z-index: 2; width: 100%; text-align: center; }
.ideas__type {
  font-family: var(--font-primary);
  font-size: clamp(29px, 4.4vw, 64px);
  font-weight: var(--font-weight-regular);
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--white);
  margin: 0;
}

/* ── inline image reveals ───────────────────────────────────────────────
   Each wrapped word carries a zero-sized image box. On scroll the box opens
   — sideways in the flow, or vertically while the word slides out of the way
   — so the stills appear to grow out of the sentence itself. */
.type__reveal {
  display: inline-flex; align-items: center;
  vertical-align: baseline;
  position: relative;
}
.type__reveal-word { display: inline-block; position: relative; z-index: 2; }
.type__reveal-img {
  overflow: hidden;
  border-radius: .2em;
  display: block; position: relative; z-index: 1;
  width: 0; height: 0;
}
.type__reveal-img-inner {
  display: block; width: 100%; height: 100%;
  background-size: cover; background-position: center;
}
.type__reveal--up .type__reveal-img,
.type__reveal--down .type__reveal-img { position: absolute; left: 0; }
.type__reveal--up .type__reveal-img   { bottom: 0; transform-origin: center bottom; }
.type__reveal--down .type__reveal-img { top: 0;    transform-origin: center top; }
.type__reveal--left  { flex-direction: row-reverse; gap: .15em; }
.type__reveal--right { flex-direction: row;         gap: .15em; }

/* ============================================================================
   HERO — featured work with vertical marquee, filmstrip thumbs
   ========================================================================== */
.block-hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  overflow: hidden;
  background: var(--black);
}
.hero__bg { position: absolute; inset: -20px; z-index: 1; }
.hero__bg-media {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  /* reference blur value; the extra knock-down is for our brighter source
     footage — theirs is a dark night shoot that needs no help */
  filter: blur(12px) brightness(.42) saturate(.85);
  transform: scale(1.05);
}
.hero__bg-overlay { position: absolute; inset: 0; background: var(--black-40); }

.hero__svg-scroll {
  position: absolute; inset: 0; z-index: 2;
  pointer-events: none; overflow: hidden;
  padding: 0 1.8rem; opacity: .085;
}
.hero__svg-track { display: flex; flex-direction: column; align-items: center; will-change: transform; }
.hero__svg-tile {
  display: block; width: 100%; flex-shrink: 0;
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  font-size: clamp(26px, 5vw, 84px);
  text-transform: uppercase;
  line-height: .8;
  color: var(--white);
  white-space: nowrap;
  text-align: center;
}

.hero__feature {
  position: absolute; z-index: 3;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 50vw; aspect-ratio: 16 / 9;
  overflow: visible; cursor: pointer;
  background: var(--black);
}
.hero__feature-media {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.hero__player {
  position: absolute; inset: 0; z-index: 6;
  display: none; background: var(--black);
}
.hero__player.is-active { display: block; }
.hero__player video,
.hero__player iframe { width: 100%; height: 100%; border: 0; object-fit: contain; background: var(--black); }

.hero__feature-title {
  position: absolute; left: 0; bottom: -1.6rem;
  transform: translateY(100%);
  font-family: var(--font-hand);
  font-size: clamp(20px, 2vw, 1.9rem);
  color: var(--white);
  white-space: nowrap;
}
.hero__case-study {
  position: absolute; z-index: 7; right: 0; bottom: -1.6rem;
  transform: translateY(100%);
  font-family: var(--font-primary);
  font-size: clamp(11px, 1vw, 14px);
  text-transform: lowercase; letter-spacing: .04em;
  color: var(--white); text-decoration: none;
  transition: opacity .3s ease;
}
.hero__case-study:hover { opacity: .6; }

/* ── PLAY cursor ────────────────────────────────────────────────────────── */
.hero__cursor {
  position: absolute; top: 0; left: 0; z-index: 20;
  width: 74px; height: 74px; margin: -37px 0 0 -37px;
  border-radius: 50%;
  background: var(--theme-accent);
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
  opacity: 0; transform: scale(.6);
  transition: opacity .3s ease, transform .3s cubic-bezier(.4, 0, .2, 1);
}
.hero__cursor.is-visible { opacity: 1; transform: scale(1); }
.hero__cursor span {
  font-size: .625rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--white);
}

/* ── thumbnails ─────────────────────────────────────────────────────────── */
.hero__thumbs {
  position: absolute; z-index: 5;
  bottom: 4.5rem; right: 2.7rem;
  display: flex; gap: 10px; align-items: flex-end;
}
.hero__thumb-group {
  display: block; padding: 0; border: 0; background: none;
  text-decoration: none; cursor: pointer;
}
.hero__thumb-wrapper {
  position: relative; width: 56px; height: 32px; overflow: hidden;
  display: grid; grid-template-rows: 1fr; grid-template-columns: 1fr;
  background: var(--black);
  transition: width .3s ease, height .3s ease;
}
.hero__thumb-group:hover .hero__thumb-wrapper,
.hero__thumb-group.is-active .hero__thumb-wrapper { width: 144px; height: 80px; }

.hero__thumb-poster {
  grid-row: 1; grid-column: 1;
  width: 100%; height: 100%; object-fit: cover; display: block;
  z-index: 1; opacity: .125; transition: opacity .3s ease;
}
.hero__thumb-group.is-active .hero__thumb-poster,
.hero__thumb-group:hover .hero__thumb-poster { opacity: 1; }

.hero__thumb-corner {
  position: absolute; width: 6px; height: 6px;
  border: 1px solid hsla(0, 0%, 100%, .6);
  z-index: 20; pointer-events: none;
  transition: border-color .3s ease;
}
.hero__thumb-corner--tl { top: 0; left: 0;  border-right: none; border-bottom: none; }
.hero__thumb-corner--tr { top: 0; right: 0; border-left: none;  border-bottom: none; }
.hero__thumb-corner--bl { bottom: 0; left: 0;  border-right: none; border-top: none; }
.hero__thumb-corner--br { bottom: 0; right: 0; border-left: none;  border-top: none; }
.hero__thumb-group.is-active .hero__thumb-corner { border-color: var(--theme-accent); }

/* the black shutter lifts to expose the filmstrip underneath */
.hero__thumb-reveal {
  grid-row: 1; grid-column: 1;
  position: relative; z-index: 10;
  background: var(--black); width: 100%; height: 100%;
  transform: scaleY(0); transform-origin: center;
  transition: transform .2s ease-out 0s;
  overflow: hidden;
}
.hero__thumb-group:hover .hero__thumb-reveal,
.hero__thumb-group.is-active .hero__thumb-reveal { transform: scaleY(1); transition-delay: .3s; }

.hero__filmstrip { display: flex; flex-direction: row; width: 100%; height: 100%; }
.hero__filmstrip img {
  width: 100%; height: 100%; object-fit: cover; flex-shrink: 0; display: block;
}

/* ============================================================================
   INTRO ABOUT US — 800vh pin, words fly in from the right
   ========================================================================== */
.block-intro-about-us {
  position: relative;
  background-color: var(--theme-accent);
  color: var(--black);
}
.intro-about-us__pin-height { height: 480vh; }
.intro-about-us__container {
  position: sticky; top: 0; z-index: 2;
  width: 100%; height: 100vh; height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--section-padding) var(--gutter);
  overflow: hidden;
}
.intro-about-us__paragraph {
  font-family: var(--font-primary);
  font-size: clamp(28px, 3.5vw, 50px);
  font-weight: var(--font-weight-regular);
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--black);
  margin: 0;
  overflow: hidden;
}
.intro-about-us__paragraph .word { display: inline-block; transform: translate(100vw, 0); }

.intro-about-us__scribble {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; z-index: 1; color: var(--black);
}
.intro-about-us__scribble-svg { width: 60%; height: auto; max-height: 80%; opacity: .18; }
.intro-about-us__scribble-path { fill: none; stroke-dasharray: 9999; stroke-dashoffset: 9999; }

.intro-about-us__link-wrap { margin-top: 2rem; }
.intro-about-us__link { display: inline-block; color: var(--black); text-decoration: none; transition: opacity .3s ease; }
.intro-about-us__link:hover { opacity: .7; }
.intro-about-us__link-text {
  font-family: var(--font-hand);
  font-size: clamp(22px, 2.2vw, 2rem);
  line-height: .9; display: block;
}
.intro-about-us__link-scribble { display: block; width: 150px; height: auto; margin-top: .2em; }
/* dash values and the draw are driven by JS on scroll, not on hover */
.intro-about-us__link-scribble-path { stroke-dasharray: 200; stroke-dashoffset: 200; }

/* ============================================================================
   SERVICES — giant words, flip on hover, cursor-trailing stickers
   ========================================================================== */
.block-services-text { background: var(--black); position: relative; z-index: 2; }
.svctxt__items {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: var(--section-padding) 0 calc(var(--section-padding) * 2);
}
.svctxt__item-wrap { position: relative; width: 70vw; }
.svctxt__item {
  display: block; width: 100%;
  color: var(--white); text-decoration: none;
  opacity: .4; transition: opacity .3s ease;
  position: relative; z-index: 2;
}
.svctxt__item:hover, .svctxt__item.is-active { opacity: 1; }
.svctxt__item-inner { display: block; position: relative; overflow: hidden; line-height: .78; }

.svctxt__word {
  display: block; width: 100%;
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  line-height: .78;
  white-space: nowrap;
  transition: transform .4s ease;
}
/* 118%, not 100%: at line-height .78 the caps — plus the overshoot on round
   letters — sit ~10% proud of the line box, so a flat 100% shift leaves a
   sliver of the other word showing inside the crop */
.svctxt__word--visible { transform: translateY(0); }
.svctxt__word--hidden {
  position: absolute; top: 0; left: 0;
  transform: translateY(-118%);
  color: var(--theme-accent);
}
.svctxt__item:hover .svctxt__word--visible { transform: translateY(118%); }
.svctxt__item:hover .svctxt__word--hidden  { transform: translateY(0); }

.svctxt__note {
  margin: .9em 0 0;
  font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--grey);
  transition: color .3s ease;
}
.svctxt__item-wrap:hover .svctxt__note { color: var(--theme-accent); }

.svctxt__spawned {
  position: fixed; top: 0; left: 0;
  width: clamp(120px, 15vw, 250px);
  aspect-ratio: 16 / 10;          /* real stills, so crop to a consistent card */
  height: auto;
  display: block; object-fit: cover;
  background: #111;
  pointer-events: none; z-index: 50; border-radius: 4px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .55);
}

/* ============================================================================
   GET READY — scribble + hover word flip
   ========================================================================== */
.block-get-ready {
  position: relative;
  background-color: var(--black);
  z-index: 99;
  color: var(--theme-accent);
  overflow: hidden;
  margin: 33vh 0 8vw;
  display: flex; align-items: center; justify-content: center;
}
.get-ready__scribble {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; z-index: 0;
}
.get-ready__scribble-svg { width: 80%; height: auto; max-height: 90%; }
.get-ready__scribble-path { fill: none; stroke-dasharray: 9999; stroke-dashoffset: 9999; }

.get-ready__inner { position: relative; z-index: 2; text-align: center; padding: 0 var(--gutter); width: 100%; }
.get-ready__heading {
  display: flex; flex-direction: column; align-items: center;
  gap: clamp(.1rem, .4vw, .6rem);
  cursor: default;
}
.get-ready__line { display: block; width: 100%; text-align: center; line-height: .8; }
.get-ready__line--toget { max-width: 42%; }

.get-ready__text {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  color: var(--theme-accent);
  display: block;
  line-height: .8;
  text-transform: uppercase;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.get-ready__line--toget .get-ready__text { font-weight: var(--font-weight-light); }

.block-get-ready .word { position: relative; display: block; overflow: hidden; }
.block-get-ready .word-hidden {
  position: absolute; top: 0; left: 0; width: 100%;
  transform: translateY(-118%);
  transition: transform .4s ease;
  color: var(--white);
}
.block-get-ready .word-visible { display: block; transition: transform .4s ease; }
.get-ready__heading:hover .word .word-hidden  { transform: translateY(0); }
.get-ready__heading:hover .word .word-visible { transform: translateY(118%); }

.get-ready__link {
  display: inline-block; margin-top: 2rem;
  position: relative; z-index: 2;
  color: var(--white); text-decoration: none; text-align: center;
}
.get-ready__link-text {
  font-family: var(--font-hand);
  font-size: clamp(22px, 3vw, 2.6rem);
  line-height: 1; display: block;
}
.get-ready__link-scribble { display: block; width: clamp(180px, 20vw, 285px); height: auto; margin: 1em auto 0; }
.get-ready__link-scribble-path { stroke-dasharray: 800; stroke-dashoffset: 800; transition: stroke-dashoffset .3s ease; }
.get-ready__link:hover .get-ready__link-scribble-path { stroke-dashoffset: 0; }

/* ============================================================================
   FOOTER
   ========================================================================== */
.block-about-footer {
  position: relative;
  /* was min-height:100vh to hold the oversized wordmark; without it the
     footer should be exactly as tall as its content */
  padding: clamp(2.5rem, 6vw, 5rem) 0 1.6rem;
  display: flex; flex-direction: column;
  background: var(--black);
}
.about-footer__top { position: relative; z-index: 2; margin-bottom: .9em; }
.about-footer__intro { flex: 0 1 42%; }
.about-footer__intro p {
  line-height: 1.1;
  font-size: clamp(15px, 1.5vw, 22px);
  margin: 0;
}
.about-footer__contacts {
  position: relative; z-index: 2;
  flex: 0 1 46%;
  display: flex; flex-wrap: wrap; gap: 1em var(--gutter);
}
.about-footer__contact-row { flex: 0 0 calc(50% - var(--gutter)); display: flex; gap: .6em; }
.about-footer__contact-label {
  flex: 0 0 38%;
  font-size: .8125rem;
  font-family: var(--font-primary);
  text-transform: uppercase;
  color: var(--theme-accent);
  line-height: 1.6;
}
.about-footer__contact-detail { flex: 1 1 auto; line-height: 1.1; }
.about-footer__contact-detail p { font-size: .625rem; line-height: 1.6; margin: 0; }
.about-footer__contact-detail a { color: inherit; text-decoration: none; }
.about-footer__contact-detail a:hover { text-decoration: underline; }




.about-footer__copyright { position: relative; z-index: 2; margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.about-footer__smallprint {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .45em .9em;
  font-size: .625rem; line-height: 1.1; opacity: .33;
}
.about-footer__smallprint li { margin: 0; }
.about-footer__smallprint a.flip-link {
  display: inline-block; position: relative; overflow: hidden;
  color: inherit; text-decoration: none; line-height: 1;
}
.about-footer__smallprint a.flip-link .flip-link__text { display: block; transition: transform 300ms ease; }
.about-footer__smallprint a.flip-link .flip-link__text--clone {
  position: absolute; top: 0; left: 0; transform: translateY(101%);
}
.about-footer__smallprint a.flip-link:hover .flip-link__text { transform: translateY(-101%); }
.about-footer__smallprint a.flip-link:hover .flip-link__text.flip-link__text--clone { transform: translateY(0); }

/* ============================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
  :root { --header-height: 72px; --gutter: 1.1em; }

  .medium-up { display: none !important; }
  .burger { display: flex; margin-left: auto; }
  .brandmark { left: var(--gutter); transform: translate(0, -50%); }
  

    .ideas__scribble-svg { max-width: 92%; }

  .hero__feature { width: 88vw; }
  .hero__cursor { display: none; }

  /* no hover pointer on touch: give the system cursor back, drop the light */
  .hi__stage, .hi__play { cursor: auto; }
  .hi__spot, .hi-cursor { display: none; }
  .hi__ui { bottom: 20vh; gap: 1.2rem; }
  .hi__play { width: 92px; height: 92px; }
  .hi__tagline { font-size: .625rem; letter-spacing: .22em; }
  .hi__meta { font-size: .5rem; letter-spacing: .1em; }
  .hi__meta-item:nth-child(2) { display: none; }
  .hero__thumbs { bottom: 1.4rem; right: 1.1rem; gap: 6px; }
  .hero__thumb-wrapper { width: 40px; height: 24px; }
  .hero__thumb-group:hover .hero__thumb-wrapper,
  .hero__thumb-group.is-active .hero__thumb-wrapper { width: 96px; height: 54px; }

  .intro-about-us__pin-height { height: 380vh; }
  .svctxt__item-wrap { width: 88vw; }
  .get-ready__line--toget { max-width: 56%; }

  .about-footer__intro, .about-footer__contacts { flex: 0 0 100%; }
  .about-footer__intro { margin-bottom: 2em; }
  .about-footer__contact-row { flex: 0 0 100%; }
  .svctxt__spawned { width: clamp(120px, 38vw, 260px); z-index: 1; }
}

@media (min-width: 901px) { .small-only { display: none !important; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .intro-about-us__paragraph .word { transform: none !important; }
  }

/* ============================================================================
   NO-MOTION FALLBACK
   Applied when GSAP is unavailable. Several blocks start hidden because a
   scroll timeline is meant to open them; without that timeline they would
   stay hidden forever, so the start-states are reset to their end-states.
   ========================================================================== */
.no-motion .about__pin       { position: static; height: auto; }
.no-motion .block-about      { height: auto; padding: var(--section-padding) 0; }
.no-motion .about__lines     { height: auto; }

.no-motion .about__scribble-line,
.no-motion .ideas__scribble-path,
.no-motion .get-ready__scribble-path,
.no-motion .intro-about-us__scribble-path { stroke-dashoffset: 0; }

.no-motion .intro-about-us__pin-height { height: auto; }
.no-motion .intro-about-us__container  { position: static; height: auto; }
.no-motion .intro-about-us__paragraph .word { transform: none; }

.no-motion .type__reveal-img { display: none; }
.no-motion .hero__svg-scroll   { display: none; }
.no-motion .hero__thumbs       { display: none; }
.no-motion .hero__cursor       { display: none; }

/* hero without GSAP: no scroll fly-through, so just show the reel plainly */
.no-motion .block-hero-intro { height: 100vh; }
.no-motion .hi__stage { position: relative; cursor: auto; }
.no-motion .hi__knockout { display: none; }
.no-motion .block-hero-intro h1.sr-only {
  position: absolute; z-index: 4;
  left: 0; right: 0; top: 38%;
  width: auto; height: auto; margin: 0; padding: 0 var(--gutter);
  clip: auto; clip-path: none; overflow: visible; white-space: normal;
  text-align: center;
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  font-size: clamp(2.5rem, 9vw, 7rem);
  line-height: .9;
  text-transform: uppercase;
  color: var(--white);
  text-shadow: 0 4px 40px rgba(0, 0, 0, .9);
}
.no-motion .hi__spot { display: none; }

/* ============================================================================
   STUDIO MODAL
   Opened from "More about us". Panel clips open from the centre, content
   staggers in behind it. GSAP drives the motion; these are the rest states.
   ========================================================================== */
.modal {
  position: fixed; inset: 0; z-index: 400;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
}
.modal[hidden] { display: none; }

.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, .78);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  opacity: 0;
  cursor: pointer;
}

.modal__panel {
  position: relative;
  width: min(1120px, 100%);
  max-height: min(88vh, 900px);
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 4px;
  overflow: hidden;
  opacity: 0;
  will-change: transform, clip-path;
}
.modal__scroll {
  max-height: inherit;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;   /* momentum on iOS */
  padding: clamp(2rem, 5vw, 4.5rem) clamp(1.4rem, 5vw, 4.5rem) clamp(2rem, 4vw, 3.5rem);
}
.modal__scroll::-webkit-scrollbar { width: 8px; }
.modal__scroll::-webkit-scrollbar-track { background: transparent; }
.modal__scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .18); border-radius: 4px;
}

/* ── close ──────────────────────────────────────────────────────────────── */
.modal__close {
  position: absolute; top: 1rem; right: 1rem; z-index: 5;
  width: 52px; height: 52px; padding: 0;
  background: none; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.modal__close-ring {
  position: absolute; inset: 0;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  transition: transform .4s cubic-bezier(.4, 0, .2, 1),
              border-color .4s ease, background-color .4s ease;
}
.modal__close:hover .modal__close-ring {
  transform: scale(1.1);
  border-color: var(--theme-accent);
  background: rgba(255, 0, 0, .14);
}
.modal__close-x { position: relative; width: 16px; height: 16px; }
.modal__close-x::before, .modal__close-x::after {
  content: ""; position: absolute; top: 50%; left: 0;
  width: 100%; height: 1.5px; background: var(--white);
  transition: transform .4s cubic-bezier(.4, 0, .2, 1);
}
.modal__close-x::before { transform: rotate(45deg); }
.modal__close-x::after  { transform: rotate(-45deg); }
.modal__close:hover .modal__close-x::before { transform: rotate(135deg); }
.modal__close:hover .modal__close-x::after  { transform: rotate(45deg); }

/* ── content ────────────────────────────────────────────────────────────── */
.modal__head { max-width: 46ch; }
.modal__eyebrow {
  display: flex; align-items: center; gap: .6em;
  margin: 0 0 1.6rem;
  font-size: .625rem; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
}
.modal__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--theme-accent);
  animation: pulse-dot 2s ease-in-out infinite;
}
.modal__title {
  margin: 0 0 1.6rem;
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  font-size: clamp(1.9rem, 4.4vw, 3.6rem);
  line-height: .98;
  text-transform: uppercase;
  color: var(--white);
}
.modal__line { display: block; overflow: hidden; }
.modal__line--accent { color: var(--theme-accent); }
.modal__lede {
  margin: 0;
  font-size: clamp(.9375rem, 1.4vw, 1.125rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, .74);
}

.modal__grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  margin-top: clamp(2.4rem, 5vw, 4rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.modal__h3 {
  margin: 0 0 1.4rem;
  font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--theme-accent);
}
.modal__h3--spaced { margin-top: 2.6rem; }

.modal__list { margin: 0; display: flex; flex-direction: column; gap: 1.5rem; }
.modal__list dt {
  font-family: var(--font-primary);
  font-size: .8125rem; letter-spacing: .02em;
  color: var(--white);
  margin-bottom: .45em;
}
.modal__list dd {
  margin: 0;
  font-size: .875rem; line-height: 1.55;
  color: rgba(255, 255, 255, .62);
}

.modal__tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.modal__tags li {
  padding: .45em .85em;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  font-size: .6875rem; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
  transition: border-color .3s ease, color .3s ease;
}
.modal__tags li:hover { border-color: var(--theme-accent); color: var(--white); }

.modal__facts { margin: 0; display: flex; flex-direction: column; }
.modal__facts > div {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .7em 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.modal__facts dt { font-size: .75rem; color: rgba(255, 255, 255, .5); }
.modal__facts dd { margin: 0; font-size: .75rem; color: var(--white); text-align: right; }

.modal__foot {
  margin-top: clamp(2.4rem, 5vw, 3.6rem);
  padding-top: clamp(1.6rem, 3vw, 2.4rem);
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.5rem;
}
.modal__foot-note {
  margin: 0; max-width: 48ch;
  font-family: var(--font-hand);
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  line-height: 1.25;
  color: rgba(255, 255, 255, .8);
}
.modal__cta {
  display: inline-flex; align-items: center; gap: .6em;
  padding: .85em 1.4em;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  font-size: .75rem; letter-spacing: .06em;
  color: var(--white); text-decoration: none;
  white-space: nowrap;
  transition: background-color .35s ease, border-color .35s ease;
}
.modal__cta svg { width: 12px; height: 12px; color: var(--theme-accent); transition: transform .35s ease, color .35s ease; }
.modal__cta:hover { background: var(--theme-accent); border-color: var(--theme-accent); }
.modal__cta:hover svg { transform: translate(2px, -2px); color: var(--white); }

body.modal-open { overflow: hidden; }

@media (max-width: 820px) {
  .modal__grid { grid-template-columns: 1fr; }
  .modal__close { top: .5rem; right: .5rem; width: 44px; height: 44px; }
}

/* without GSAP the dialog becomes a plain section at the end of the page */
.no-motion .modal {
  position: static; display: block; padding: 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.no-motion .modal[hidden] { display: block; }
.no-motion .modal__backdrop, .no-motion .modal__close { display: none; }
.no-motion .modal__panel {
  opacity: 1; max-height: none; width: 100%;
  border: 0; border-radius: 0; clip-path: none !important;
}
.no-motion .modal__scroll { max-height: none; overflow: visible; }

/* ============================================================================
   WORK GALLERY (inside the modal shell)
   ========================================================================== */
.gallery__head { max-width: 62ch; }

.gallery {
  margin-top: clamp(2.4rem, 5vw, 4rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; flex-direction: column;
  gap: clamp(2.6rem, 6vw, 5rem);
}

.gallery__item {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: clamp(1.4rem, 3vw, 3rem);
  align-items: start;
}

.gallery__stage {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #111;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 3px;
}
.gallery__stage img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: opacity .3s ease, transform .8s cubic-bezier(.4, 0, .2, 1);
}
.gallery__item:hover .gallery__stage img { transform: scale(1.03); }

.gallery__thumbs { display: flex; gap: .5rem; margin-top: .6rem; }
.gallery__thumb {
  position: relative;
  width: 74px; height: 46px;
  padding: 0; border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 2px; background: #111;
  overflow: hidden; cursor: pointer;
  opacity: .45;
  transition: opacity .3s ease, border-color .3s ease;
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery__thumb:hover { opacity: .85; }
.gallery__thumb.is-active { opacity: 1; border-color: var(--theme-accent); }

.gallery__index {
  margin: 0 0 .5rem;
  font-size: .625rem; letter-spacing: .16em;
  color: var(--theme-accent);
}
.gallery__title {
  margin: 0 0 .8rem;
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  font-size: clamp(1.25rem, 2.2vw, 1.9rem);
  line-height: 1;
  text-transform: uppercase;
  color: var(--white);
}
.gallery__summary {
  margin: 0 0 1.4rem;
  font-size: .875rem; line-height: 1.55;
  color: rgba(255, 255, 255, .64);
}
.gallery__meta { margin: 0; display: flex; flex-direction: column; }
.gallery__meta > div {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .55em 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.gallery__meta dt { font-size: .6875rem; color: rgba(255, 255, 255, .45); white-space: nowrap; }
.gallery__meta dd {
  margin: 0; font-size: .6875rem; color: var(--white);
  text-align: right; word-break: break-word;
}
.gallery__meta a { color: var(--theme-accent); text-decoration: none; }
.gallery__meta a:hover { text-decoration: underline; }

@media (max-width: 820px) {
  .gallery__item { grid-template-columns: 1fr; }
  .gallery__thumb { width: 60px; height: 38px; }
}

/* ============================================================================
   APPOINTMENT FORM
   ========================================================================== */
.modal__panel--form { width: min(880px, 100%); }

.apt {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: clamp(1.8rem, 3vw, 2.6rem);
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.apt__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}
.apt__field { display: flex; flex-direction: column; }
.apt__field + .apt__field { margin: 0; }
.apt > .apt__field { margin-top: 1.4rem; }

.apt label, .apt__slots-label {
  margin-bottom: .55em;
  font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
}
.apt label span { color: var(--theme-accent); }

.apt input, .apt select, .apt textarea {
  width: 100%;
  padding: .85em 1em;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 3px;
  color: var(--white);
  font-family: var(--font-primary);
  font-size: .8125rem;
  transition: border-color .3s ease, background-color .3s ease;
}
.apt textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.apt select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, rgba(255,255,255,.5) 50%),
                    linear-gradient(135deg, rgba(255,255,255,.5) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2.4em;
}
.apt select option { background: #111; color: var(--white); }
.apt input:focus, .apt select:focus, .apt textarea:focus {
  outline: none;
  border-color: var(--theme-accent);
  background: rgba(255, 255, 255, .07);
}
.apt input[aria-invalid="true"], .apt textarea[aria-invalid="true"] { border-color: var(--theme-accent); }

.apt__error {
  margin: .45em 0 0; min-height: 1em;
  font-size: .625rem; letter-spacing: .04em;
  color: var(--theme-accent);
}
#apt-website { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ── calendar ───────────────────────────────────────────────────────────── */
.apt__when {
  display: grid;
  grid-template-columns: 1fr .8fr;
  gap: clamp(1.4rem, 3vw, 2.4rem);
  margin-top: 1.8rem;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.apt__cal-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem;
}
.apt__cal-month {
  margin: 0;
  font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--white);
}
.apt__cal-nav {
  width: 30px; height: 30px; padding: 0;
  background: none; border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%; color: var(--white);
  font-size: 1rem; line-height: 1; cursor: pointer;
  transition: border-color .3s ease, background-color .3s ease, opacity .3s ease;
}
.apt__cal-nav:hover:not(:disabled) { border-color: var(--theme-accent); background: rgba(255,0,0,.12); }
.apt__cal-nav:disabled { opacity: .28; cursor: not-allowed; }

.apt__cal-dow, .apt__cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px;
}
.apt__cal-dow {
  margin-bottom: .5rem;
  font-size: .5625rem; letter-spacing: .1em; text-align: center;
  color: rgba(255, 255, 255, .35);
}
.apt__day {
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 0; border: 1px solid transparent; border-radius: 3px;
  background: rgba(255, 255, 255, .04);
  color: rgba(255, 255, 255, .8);
  font-family: var(--font-primary); font-size: .75rem;
  cursor: pointer;
  transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}
.apt__day:hover:not(:disabled) { background: rgba(255, 255, 255, .1); border-color: rgba(255,255,255,.3); }
.apt__day:disabled { background: none; color: rgba(255, 255, 255, .16); cursor: not-allowed; }
.apt__day.is-selected {
  background: var(--theme-accent); border-color: var(--theme-accent);
  color: var(--white); font-weight: var(--font-weight-bold);
}
.apt__day--empty { background: none; border: 0; cursor: default; }
.apt__cal-note {
  margin: .9rem 0 0;
  font-size: .5625rem; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255, 255, 255, .32);
}

.apt__slot-list { display: flex; flex-wrap: wrap; gap: .45rem; }
.apt__slot {
  padding: .6em 1em;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  color: rgba(255, 255, 255, .78);
  font-family: var(--font-primary); font-size: .6875rem;
  cursor: pointer;
  transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}
.apt__slot:hover { border-color: rgba(255, 255, 255, .35); color: var(--white); }
.apt__slot.is-selected {
  background: var(--theme-accent); border-color: var(--theme-accent); color: var(--white);
}

/* ── footer of the form ─────────────────────────────────────────────────── */
.apt__foot {
  margin-top: 1.8rem; padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem;
}
.apt__note {
  margin: 0; max-width: 42ch;
  font-size: .6875rem; line-height: 1.5;
  color: rgba(255, 255, 255, .5);
}
.apt__note strong { color: var(--white); font-weight: var(--font-weight-regular); }
.apt__submit {
  display: inline-flex; align-items: center; gap: .6em;
  padding: .95em 1.6em;
  background: none;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  color: var(--white);
  font-family: var(--font-primary); font-size: .75rem; letter-spacing: .06em;
  cursor: pointer; white-space: nowrap;
  transition: background-color .35s ease, border-color .35s ease;
}
.apt__submit svg { width: 12px; height: 12px; color: var(--theme-accent); transition: transform .35s ease, color .35s ease; }
.apt__submit:hover { background: var(--theme-accent); border-color: var(--theme-accent); }
.apt__submit:hover svg { transform: translate(2px, -2px); color: var(--white); }
.apt__submit:disabled { opacity: .5; cursor: not-allowed; }

.apt__status {
  margin: 1.2rem 0 0; min-height: 1.2em;
  font-size: .75rem; line-height: 1.5;
  color: var(--green);
}
.apt__status.is-error { color: var(--theme-accent); }

@media (max-width: 820px) {
  .apt__grid { grid-template-columns: 1fr; }
  .apt__when { grid-template-columns: 1fr; }
  .apt__foot { flex-direction: column; align-items: stretch; }
  .apt__submit { justify-content: center; }
}

/* ── appointment: sent confirmation ─────────────────────────────────────── */
.apt__done {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: clamp(2.4rem, 5vw, 3.6rem) clamp(1.5rem, 4vw, 3rem);
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}
.apt__done[hidden] { display: none; }
.apt__done-mark {
  width: 62px; height: 62px; margin-bottom: 1.6rem;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--green);
  border-radius: 50%;
  color: var(--green);
}
.apt__done-mark svg { width: 26px; height: 26px; }
.apt__done-title {
  margin: 0 0 .8rem; max-width: 22ch;
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  line-height: 1.05; text-transform: uppercase;
  color: var(--white);
}
.apt__done-note {
  margin: 0; max-width: 40ch;
  font-size: .875rem; line-height: 1.55;
  color: rgba(255, 255, 255, .68);
}
.apt__done-slot {
  margin: 1.2rem 0 0;
  font-family: var(--font-hand);
  font-size: 1.25rem;
  color: var(--theme-accent);
}
.apt__done-ok { margin-top: 2rem; min-width: 160px; justify-content: center; }

/* ── policy documents (inside the modal shell) ──────────────────────────── */
.policy {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: clamp(1.8rem, 3vw, 2.6rem);
  border-top: 1px solid rgba(255, 255, 255, .12);
  max-width: 68ch;
}
.policy h3 {
  margin: 2.2rem 0 .7rem;
  font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--theme-accent);
}
.policy h3:first-child { margin-top: 0; }
.policy p, .policy li {
  margin: 0 0 .9rem;
  font-size: .875rem; line-height: 1.65;
  color: rgba(255, 255, 255, .68);
}
.policy ul { margin: 0 0 .9rem; padding-left: 1.1rem; }
.policy li { margin-bottom: .5rem; }
.policy li::marker { color: var(--theme-accent); }
.policy a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.policy a:hover { color: var(--theme-accent); }
.policy__stamp {
  margin: 2.4rem 0 0; padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .625rem; letter-spacing: .06em;
  color: rgba(255, 255, 255, .38);
}
