/* =========================================================
   Gary Weston — filmmaker & editor
   Monochrome, type-led, motion-first. One signal colour.
   ========================================================= */

:root {
  --ink: #0a0a0a;
  --paper: #f3f2ef;
  --mute-d: #8a8a86;      /* muted text on dark */
  --mute-l: #6b6b67;      /* muted text on light */
  --line-d: rgba(255, 255, 255, .16);
  --line-l: rgba(0, 0, 0, .14);
  --signal: #ffd23f;      /* Spaghetti Weston yellow, used sparingly */

  --display: "Archivo", "Arial Black", sans-serif;
  --sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --gutter: clamp(16px, 2.2vw, 32px);
  --ease: cubic-bezier(.77, 0, .175, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--signal); color: var(--ink); }

.mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.4;
}
.label { margin: 0; color: inherit; opacity: .7; font-weight: 400; }
.label::before {
  content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 10px;
  background: var(--signal); vertical-align: 1px;
}

.big {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(36px, 5.4vw, 92px);
  line-height: .98;
  letter-spacing: -.035em;
  margin: 0;
}

/* line/word reveal helpers (spans injected by JS) */
.rl-line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.rl-inner { display: block; will-change: transform; }
.rw-word { display: inline-block; opacity: .14; transition: opacity .2s linear; }

/* ---------------- PRELOADER ---------------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--ink); color: var(--paper);
  display: grid; place-items: center;
  overflow: hidden;
}
.intro-seen .loader { display: none; }
.loader__logo { width: min(36vmin, 240px); aspect-ratio: 1; }
.loader__logo img { width: 100%; height: 100%; }
/* gate weave + exposure flicker */
.loader__logo { animation: weave .32s steps(1) infinite, flicker .2s steps(1) infinite; }
@keyframes weave {
  0%   { transform: translate(0, 0) rotate(0deg); }
  20%  { transform: translate(-1.5px, 2px) rotate(-.3deg); }
  40%  { transform: translate(1px, -1px) rotate(.2deg); }
  60%  { transform: translate(-.5px, 3px) rotate(0deg); }
  80%  { transform: translate(2px, .5px) rotate(.3deg); }
}
@keyframes flicker {
  0%   { opacity: 1;   filter: brightness(1); }
  25%  { opacity: .86; filter: brightness(1.25); }
  50%  { opacity: 1;   filter: brightness(.9); }
  75%  { opacity: .93; filter: brightness(1.1); }
}
.loader__tc {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  font-size: 13px; letter-spacing: .1em;
}
.loader__flash { position: absolute; inset: 0; background: var(--paper); opacity: 0; pointer-events: none; }

/* ---------------- CURSOR ---------------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 90;
  width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--paper);
  mix-blend-mode: difference;
  pointer-events: none;
  display: grid; place-items: center;
  opacity: 0;
  transition: width .45s var(--ease-out), height .45s var(--ease-out), margin .45s var(--ease-out), background .3s;
}
.cursor__label { color: var(--ink); opacity: 0; transition: opacity .2s; white-space: nowrap; }
.cursor.is-active { width: 92px; height: 92px; margin: -46px 0 0 -46px; mix-blend-mode: normal; background: var(--signal); }
.cursor.is-active .cursor__label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------------- HEADER ---------------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--gutter);
  color: #fff;
  mix-blend-mode: difference;
  transition: transform .6s var(--ease);
}
.header.is-hidden { transform: translateY(-110%); }
.header__mark {
  font-family: var(--display);
  font-variation-settings: "wdth" 125;
  font-weight: 900; font-size: 20px; letter-spacing: -.04em;
}
.header__mark { display: block; width: 44px; height: 44px; }
.brand {
  position: fixed; top: 10px; left: var(--gutter); z-index: 61;
  display: block; line-height: 0;
  transition: transform .6s var(--ease);
}
.brand img { width: 44px; height: 44px; transition: transform .6s var(--ease-out); }
.brand:hover img { transform: rotate(-8deg) scale(1.06); }
.brand.is-hidden { transform: translateY(-140%); }
.header__meta { display: flex; gap: 10px; }
.header__sep { opacity: .5; }
.header__menu { display: flex; align-items: center; gap: 10px; }
.header__menu-icon { position: relative; width: 16px; height: 8px; }
.header__menu-icon i {
  position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
  transition: transform .5s var(--ease), top .5s var(--ease);
}
.header__menu-icon i:first-child { top: 0; }
.header__menu-icon i:last-child { top: 6.5px; }
.menu-open .header__menu-icon i:first-child { top: 3.25px; transform: rotate(45deg); }
.menu-open .header__menu-icon i:last-child { top: 3.25px; transform: rotate(-45deg); }
@media (max-width: 720px) { .header__meta { display: none; } }

/* ---------------- MENU ---------------- */
.menu {
  position: fixed; inset: 0; z-index: 55;
  background: var(--paper); color: var(--ink);
  clip-path: inset(0 0 100% 0);
  transition: clip-path .9s var(--ease);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 90px var(--gutter) 24px;
  visibility: hidden;
}
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; }
.menu__list { list-style: none; margin: 0; padding: 0; }
.menu__list li { overflow: hidden; border-bottom: 1px solid var(--line-l); }
.menu__list a {
  display: flex; align-items: baseline; gap: 18px; padding: .06em 0;
  transform: translateY(105%);
  transition: transform .9s var(--ease);
}
.menu-open .menu__list a { transform: none; }
.menu__list li:nth-child(2) a { transition-delay: .05s; }
.menu__list li:nth-child(3) a { transition-delay: .1s; }
.menu__list li:nth-child(4) a { transition-delay: .15s; }
.menu__list li:nth-child(5) a { transition-delay: .2s; }
.menu__word {
  font-family: var(--display); font-variation-settings: "wdth" 125;
  font-weight: 900; text-transform: uppercase; letter-spacing: -.04em;
  font-size: clamp(48px, 10vw, 150px); line-height: .95;
  transition: transform .5s var(--ease-out);
}
.menu__list a:hover .menu__word { transform: translateX(.15em); }
.menu__foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.menu__foot a:hover { text-decoration: underline; }

/* ---------------- FAB ---------------- */
.fab {
  position: fixed; right: var(--gutter); bottom: var(--gutter); z-index: 58;
  width: 92px; height: 92px; border-radius: 50%;
  background: var(--paper); color: var(--ink);
  display: grid; place-items: center;
  transition: transform .5s var(--ease-out), background .3s;
}
.fab:hover { transform: scale(1.08); background: var(--signal); }
.fab__ring {
  position: absolute; inset: 0; width: 100%; height: 100%;
  animation: spin 14s linear infinite;
}
.fab__ring text { font-family: var(--mono); font-size: 8.6px; letter-spacing: .12em; fill: currentColor; }
.fab__label { font-size: 10px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 720px) { .fab { width: 72px; height: 72px; } }

/* ---------------- HERO ---------------- */
.hero {
  position: relative;
  background: var(--paper); color: var(--ink);
}
.hero__inner {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: space-between; gap: 6vh;
  padding: 72px var(--gutter) 20px;
}
.hero__top { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.hero__tag { margin: 0; font-size: clamp(16px, 1.3vw, 20px); line-height: 1.2; font-weight: 500; letter-spacing: -.01em; }
.hero__word {
  position: relative; margin: 0;
  font-family: var(--display);
  font-variation-settings: "wdth" 125;
  font-weight: 900;
  font-size: 20vw;
  line-height: .8;
  letter-spacing: -.055em;
  text-transform: uppercase;
  white-space: nowrap;
}
/* small keyword line inside the H1, styled like the scene labels */
.hero__kicker {
  display: block; margin-bottom: 18px;
  font-size: 11px; line-height: 1.4; letter-spacing: .06em; white-space: normal;
}
.hero__row { display: flex; align-items: stretch; }
.hero__line { display: block; overflow: hidden; padding-top: .04em; margin-left: -.03em; }
.hero__chars { display: inline-block; }
.hero__chars .ch { display: inline-block; will-change: transform; }

/* montage window cut into the first line */
.hero__cut {
  /* square frame, as tall as the capitals */
  position: relative; flex: none; align-self: flex-start;
  height: .7em; aspect-ratio: 1 / 1;
  margin: .1em 0 0 .1em;
  overflow: hidden; background: #1a1a1a;
}
.hero__cut img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  visibility: hidden;
}
.hero__cut img.is-on { visibility: visible; }
.hero__cut-tc {
  position: absolute; left: 6px; bottom: 6px; z-index: 1;
  padding: 2px 4px; background: var(--ink); color: var(--paper);
  font-size: 9px; letter-spacing: .04em;
}
.hero__cut-tc::before { content: attr(data-cut-tc); }  /* drawn by CSS so it is not part of the H1 text */

/* edit timeline under the name */
.timeline { position: relative; padding-right: 110px; --head: 34px; }
.timeline__ruler {
  display: flex; justify-content: space-between;
  height: 24px; padding-left: var(--head);
  font-size: 10px; color: var(--mute-l);
  background: repeating-linear-gradient(to right, var(--line-l) 0 1px, transparent 1px 12px) left bottom / 100% 6px no-repeat;
  border-bottom: 1px solid var(--line-l);
}
.timeline__track { display: flex; gap: 3px; margin-top: 6px; height: 34px; }
.timeline__name {
  flex: none; width: calc(var(--head) - 3px);
  display: grid; place-items: center;
  background: var(--ink); color: var(--paper); font-size: 10px;
}
.timeline__clip {
  flex: var(--g) 1 0; min-width: 0;
  display: flex; align-items: center; padding: 0 10px;
  background: #e2e1dc; border-left: 3px solid var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.timeline__playhead {
  position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px;
  left: calc(var(--head) + var(--p, 0) * (100% - var(--head) - 110px));
  background: var(--ink);
  pointer-events: none;
}
.timeline__playhead::before {
  content: ""; position: absolute; top: 0; left: -5px;
  width: 12px; height: 12px; background: var(--signal);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
@media (max-width: 720px) {
  .timeline { padding-right: 84px; }
  .timeline__playhead { left: calc(var(--head) + var(--p, 0) * (100% - var(--head) - 84px)); }
  .timeline__ruler span:nth-child(even) { visibility: hidden; }
  /* two stacked tracks of two clips, so the role names wrap instead of being cut off */
  .timeline__track { display: grid; grid-template-columns: calc(var(--head) - 3px) 1fr 1fr; height: auto; }
  .timeline__name { grid-row: span 2; width: auto; }
  .timeline__clip {
    min-height: 34px; padding: 6px 8px;
    font-size: 10px; letter-spacing: .02em; line-height: 1.25;
    white-space: normal; overflow: visible;
  }
  .hero__cut-tc { display: none; }
}

.pill {
  display: inline-flex; align-items: center; gap: 12px;
  height: 40px; padding: 0 18px; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  overflow: hidden; position: relative;
  transition: background .3s, color .3s;
}
.pill__arrow { display: inline-block; transition: transform .45s var(--ease-out); }
.pill:hover .pill__arrow { transform: translateX(5px); }
.pill:hover { background: var(--signal); color: var(--ink); }
.pill--light { background: var(--paper); color: var(--ink); }
.pill--ghost { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 1px var(--line-d); }

/* ---------------- REEL (scroll zoom) ---------------- */
.reel { position: relative; background: var(--ink); height: 220vh; }
.reel__pin {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  display: grid; place-items: center;
}
.reel__label { position: absolute; top: 76px; left: var(--gutter); opacity: .7; }
.reel__frame {
  position: relative; display: block;
  width: 100vw; height: 100svh;
  clip-path: inset(30% 34% 30% 34%);
  will-change: clip-path;
  cursor: none;
}
.reel__frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.25); will-change: transform; }
.reel__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.55), transparent 45%); }
.reel__meta {
  position: absolute; left: var(--gutter); bottom: 28px; z-index: 1;
  display: flex; flex-direction: column; gap: 10px; text-align: left;
}
.reel__title {
  font-size: clamp(30px, 4.6vw, 76px); line-height: .95; letter-spacing: -.035em; font-weight: 500;
}
.reel__title em { font-style: normal; opacity: .6; }
.reel__play {
  position: absolute; left: 50%; top: 50%; z-index: 1;
  width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.6);
  display: grid; place-items: center; font-size: 18px;
  backdrop-filter: blur(6px);
}
@media (hover: none), (pointer: coarse) { .reel__frame { cursor: pointer; } }

/* ---------------- INTRO ---------------- */
.intro { padding: 18vh var(--gutter) 16vh; background: var(--ink); }
.intro__grid { display: grid; grid-template-columns: 1fr 3fr; gap: var(--gutter); }
.intro__lead {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 54px); line-height: 1.06; letter-spacing: -.03em; font-weight: 400;
}
.intro__lead a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .12em; }
.intro__lead a:hover { color: var(--signal); }
.intro__cols {
  display: grid; grid-template-columns: 1fr 1.5fr 1.5fr; gap: var(--gutter);
  margin-top: 12vh; color: var(--mute-d);
}
.intro__cols p { margin: 0; max-width: 42ch; }
.intro__cols p:first-child { grid-column: 2; }
@media (max-width: 820px) {
  .intro__grid, .intro__cols { grid-template-columns: 1fr; }
  .intro__cols p:first-child { grid-column: auto; }
}

/* ---------------- WORKS (horizontal reel) ---------------- */
.works { position: relative; background: var(--ink); }
.works__pin {
  height: 100svh; min-height: 640px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; gap: 3vh;
  padding: 84px 0 3vh;
}
.works__head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  padding: 0 var(--gutter);
}
.works__head .label { margin-bottom: 18px; }
.works__counter {
  margin: 0; display: flex; align-items: baseline; gap: 10px;
  font-family: var(--display); font-variation-settings: "wdth" 125; font-weight: 900;
  font-size: clamp(56px, 9vw, 150px); line-height: .8; letter-spacing: -.05em;
}
.works__counter .mono { font-size: 12px; letter-spacing: .06em; color: var(--mute-d); }

.works__track {
  display: flex; gap: var(--gutter);
  width: max-content; padding: 0 var(--gutter);
  will-change: transform;
}
.work {
  flex: none; width: clamp(220px, min(24vw, 32svh), 400px);
  display: flex; flex-direction: column; gap: 10px;
}
.work__meta { display: flex; justify-content: space-between; color: var(--mute-d); }
.work__title { font-size: clamp(15px, 1.15vw, 19px); letter-spacing: -.01em; line-height: 1.15; min-height: 2.3em; }
.work__media { position: relative; overflow: hidden; background: #161616; order: 3; aspect-ratio: 1 / 1; }
/* source images are square, so they fill the frame whole */
.work__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  transition: filter .6s;
  filter: grayscale(.25);
}
.work:hover .work__media img { filter: none; }
.work__media::after {
  content: ""; position: absolute; inset: 0; background: var(--ink);
  transform-origin: left; transform: scaleX(var(--cover, 1));
}

/* reel progress, drawn as a timeline ruler */
.works__progress {
  position: relative; margin: 0 var(--gutter); height: 18px;
  background: repeating-linear-gradient(to right, var(--line-d) 0 1px, transparent 1px 12px) left bottom / 100% 6px no-repeat;
  border-bottom: 1px solid var(--line-d);
}
.works__progress span {
  position: absolute; left: 0; bottom: -1px; height: 3px; width: 100%;
  background: var(--signal);
  transform-origin: left; transform: scaleX(var(--p, 0));
}
.works__pin .more { margin: 0 var(--gutter); padding: 14px 0; }

@media (max-width: 820px) {
  .works__pin { padding: 12vh 0; height: auto; }
  .works__counter, .works__progress { display: none; }
  .works__track { width: auto; flex-direction: column; gap: 8vh; }
  .work { width: 100%; }
}

.more {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 16vh; padding: 20px 0; border-top: 1px solid var(--line-d); border-bottom: 1px solid var(--line-d);
  transition: padding .5s var(--ease-out), color .3s;
}
.more:hover { padding-left: 14px; padding-right: 14px; color: var(--signal); }

/* ---------------- FILMS ---------------- */
.films { position: relative; background: var(--paper); color: var(--ink); padding: 16vh var(--gutter) 14vh; }
.films__head { display: grid; grid-template-columns: 1fr 3fr; gap: var(--gutter); margin-bottom: 10vh; }
.films__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-l); }
.film {
  position: relative;
  display: grid; grid-template-columns: 1fr 5fr 4fr 1.4fr; gap: var(--gutter); align-items: center;
  padding: 26px 0; border-bottom: 1px solid var(--line-l);
  cursor: none; outline: none;
  transition: padding .6s var(--ease-out), color .4s;
}
.film::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink);
  transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease);
}
.film:hover, .film:focus-visible { color: var(--paper); padding-left: 18px; padding-right: 18px; }
.film:hover::before, .film:focus-visible::before { transform: scaleY(1); }
.film__name {
  font-family: var(--display); font-variation-settings: "wdth" 125; font-weight: 900;
  text-transform: uppercase; letter-spacing: -.04em;
  font-size: clamp(32px, 5vw, 84px); line-height: .9;
}
.film__desc { font-size: 15px; color: var(--mute-l); max-width: 46ch; transition: color .4s; }
.film:hover .film__desc, .film:focus-visible .film__desc { color: var(--mute-d); }
.film__desc a { text-decoration: underline; text-underline-offset: 2px; position: relative; z-index: 2; cursor: pointer; }
.film__tag { justify-self: end; }
.films { isolation: isolate; }
.films__preview {
  position: fixed; top: 0; left: 0; z-index: 40;
  width: 300px; aspect-ratio: 16 / 10; overflow: hidden;
  pointer-events: none;
  opacity: 0; transform: scale(.8);
  transition: opacity .35s, transform .5s var(--ease-out);
  background: #1a1a1a;
}
.films__preview.is-on { opacity: 1; transform: scale(1); }
.films__preview img { width: 100%; height: 100%; object-fit: cover; }
.films .more { border-color: var(--line-l); }
@media (max-width: 820px) {
  .films__head { grid-template-columns: 1fr; }
  .film { grid-template-columns: auto 1fr; cursor: pointer; }
  .film__desc { grid-column: 1 / -1; }
  .film__tag { display: none; }
  .films__preview { display: none; }
}
@media (hover: none), (pointer: coarse) { .film { cursor: pointer; } }

/* ---------------- MARQUEE ---------------- */
.marquee { overflow: hidden; background: var(--ink); padding: 8vh 0; border-bottom: 1px solid var(--line-d); }
.marquee__track {
  display: flex; align-items: center; gap: 4vw; width: max-content;
  animation: marquee 38s linear infinite;
  font-family: var(--display); font-variation-settings: "wdth" 125; font-weight: 900;
  font-size: clamp(44px, 9vw, 150px); letter-spacing: -.045em; text-transform: uppercase; line-height: 1;
  white-space: nowrap;
}
.marquee__track .mono { font-family: var(--mono); font-weight: 400; color: var(--signal); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------- CRAFT ---------------- */
.craft { background: var(--ink); padding: 16vh var(--gutter); }
.craft__title {
  margin: 0; font-weight: 400;
  font-size: clamp(44px, 8.6vw, 150px); line-height: .92; letter-spacing: -.045em;
}
.craft__row {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--gutter);
  margin: 10vh 0 14vh; align-items: start;
}
.craft__list { list-style: disc; margin: 0; padding-left: 14px; display: grid; gap: 4px; }
.craft__aside { margin: 0; color: var(--mute-d); max-width: 32ch; }
.craft__items { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-d); }
.skill { padding: 26px var(--gutter) 10px 0; border-right: 1px solid var(--line-d); }
.skill + .skill { padding-left: var(--gutter); }
.skill:last-child { border-right: 0; }
.skill h3 { font-size: clamp(20px, 1.7vw, 28px); font-weight: 500; letter-spacing: -.02em; line-height: 1.05; margin: 40px 0 14px; }
.skill p { margin: 0; color: var(--mute-d); font-size: 15px; }
.skill__no { color: var(--signal); }
@media (max-width: 960px) {
  .craft__row { grid-template-columns: 1fr; }
  .craft__items { grid-template-columns: 1fr 1fr; }
  .skill:nth-child(2) { border-right: 0; }
  .skill:nth-child(3) { padding-left: 0; }
  .skill:nth-child(n+3) { border-top: 1px solid var(--line-d); }
}
@media (max-width: 560px) {
  .craft__items { grid-template-columns: 1fr; }
  .skill, .skill + .skill { padding-left: 0; border-right: 0; }
  .skill + .skill { border-top: 1px solid var(--line-d); }
}

/* ---------------- CLIENTS ---------------- */
.clients { background: var(--paper); color: var(--ink); padding: 16vh var(--gutter); display: grid; grid-template-columns: 1fr 3fr; gap: var(--gutter); }
.clients__words { margin: 0; font-size: clamp(26px, 3.6vw, 60px); line-height: 1.06; letter-spacing: -.03em; }
@media (max-width: 820px) { .clients { grid-template-columns: 1fr; } }

/* ---------------- COMPANIES ---------------- */
.companies { background: var(--paper); color: var(--ink); padding: 0 var(--gutter) 16vh; }
.companies > .label { margin-bottom: 24px; }
.companies__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); }
.company {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: flex-start; gap: 20px;
  padding: 28px; min-height: 52vh;
  background: #e7e6e2;
  transition: background .5s, color .5s;
}
.company:hover { background: var(--ink); color: var(--paper); }
.company__logo {
  flex: none; width: 96px; height: 96px; border-radius: 50%; overflow: hidden;
  background: #fff; display: grid; place-items: center;
}
.company__logo img { width: 78%; height: 78%; object-fit: contain; }
.company__name {
  margin-top: 8px;
  font-family: var(--sans); font-weight: 500;
  letter-spacing: -.03em; line-height: 1;
  font-size: clamp(28px, 2.8vw, 46px);
}
.company__desc { max-width: 46ch; color: var(--mute-l); transition: color .5s; }
.company:hover .company__desc { color: var(--mute-d); }
.company__cta { margin-top: auto; }
@media (max-width: 820px) {
  .companies__grid { grid-template-columns: 1fr; }
  .company { min-height: 0; }
  .company__logo { width: 72px; height: 72px; }
}

/* ---------------- FAQ ---------------- */
.faq { position: relative; background: var(--ink); padding: 16vh var(--gutter); display: grid; grid-template-columns: 1fr 3fr; gap: var(--gutter); }
.faq__list { border-top: 1px solid var(--line-d); max-width: 900px; }
.q { border-bottom: 1px solid var(--line-d); }
.q summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 18px 0; font-size: clamp(18px, 1.6vw, 26px); letter-spacing: -.015em;
  transition: color .3s;
}
.q summary::-webkit-details-marker { display: none; }
.q summary:hover { color: var(--signal); }
.q summary em { font-style: italic; }
.q__icon { font-family: var(--mono); font-size: 18px; transition: transform .5s var(--ease); }
.q[open] .q__icon { transform: rotate(45deg); }
.q__a { overflow: hidden; }
.q__a p { margin: 0 0 22px; max-width: 60ch; color: var(--mute-d); }
@media (max-width: 820px) { .faq { grid-template-columns: 1fr; } }

/* ---------------- INSTAGRAM ---------------- */
.ig { background: var(--paper); color: var(--ink); padding: 16vh var(--gutter); }
.ig__head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap;
  margin-bottom: 6vh;
}
.ig__head .label { margin-bottom: 18px; }
.ig__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.ig__tile { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: #e2e1dc; }
.ig__tile img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(.25);
  transition: transform 1.2s var(--ease-out), filter .6s;
}
.ig__tile:hover img, .ig__tile:focus-visible img { transform: scale(1.06); filter: none; }
.ig__meta {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; justify-content: space-between; gap: 8px;
  padding: 12px;
  background: rgba(10, 10, 10, .74); color: var(--paper);
  opacity: 0; transition: opacity .35s;
}
.ig__tile:hover .ig__meta, .ig__tile:focus-visible .ig__meta { opacity: 1; }
.ig__kind { color: var(--signal); }
.ig__cap { font-size: 13px; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; }
.ig__tile::after {
  content: ""; position: absolute; inset: 0; z-index: 2; background: var(--paper);
  transform-origin: top; transform: scaleY(var(--cover, 0));
  pointer-events: none;
}
@media (max-width: 820px) {
  .ig__grid { grid-template-columns: repeat(3, 1fr); gap: 4px; }
}
@media (hover: none), (pointer: coarse) { .ig__meta { display: none; } }

/* ---------------- CONTACT ---------------- */
.contact { position: relative; background: var(--ink); padding: 18vh var(--gutter) 20px; overflow: hidden; border-top: 1px solid var(--line-d); }
.contact__title { margin: 0; font-weight: 400; font-size: clamp(52px, 9.4vw, 170px); line-height: .9; letter-spacing: -.05em; }
.contact__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; margin-top: 8vh; }
.contact__ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.contact__end { display: flex; align-items: flex-end; gap: 32px; padding-right: 120px; }
.contact__social { list-style: none; margin: 0; padding: 0; font-size: 18px; line-height: 1.25; }
.contact__green { width: 72px; height: auto; opacity: .85; }
.contact__social a { position: relative; }
.contact__social a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.contact__social a:hover::after { transform: scaleX(1); transform-origin: left; }
.contact__giant {
  display: inline-block;
  margin-top: 12vh;
  font-family: var(--display); font-variation-settings: "wdth" 125; font-weight: 900;
  font-size: 15.4vw; line-height: .78; letter-spacing: -.055em;
  white-space: nowrap; color: #161616; user-select: none;
  margin-left: -.03em;
}
.contact__legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 18px; color: var(--mute-d); }
.contact__legal a:hover { color: var(--paper); }
@media (max-width: 720px) { .contact__end { padding-right: 0; } .contact__green { width: 60px; } }

/* ---------------- MODAL ---------------- */
.modal {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(10,10,10,.96);
  display: grid; place-items: center;
  padding: 70px var(--gutter) var(--gutter);
}
.modal[hidden] { display: none; }
.modal__close { position: absolute; top: 22px; right: var(--gutter); color: var(--paper); }
.modal__close:hover { color: var(--signal); }
.modal__frame { width: min(100%, calc((100svh - 110px) * 16 / 9)); aspect-ratio: 16 / 9; background: #000; }
.modal__frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------------- REDUCED MOTION ---------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reel { height: auto; }
  .reel__pin { position: relative; height: auto; padding: 14vh var(--gutter); }
  .reel__frame { clip-path: none; height: auto; aspect-ratio: 16 / 9; width: 100%; }
  .reel__frame img { transform: none; }
  .rw-word { opacity: 1; }
  .work__media::after { display: none; }
}
