/* ---------- fonts ---------- */
@font-face {
  font-family: "Inter Tight";
  src: url("fonts/InterTight.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/SourceSerif4-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/SourceSerif4-latin-ext.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- tokens ---------- */
:root {
  --red: #E5261E;
  --red-deep: #c81d16;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --paper: #f5f5f7;
  --white: #fff;
  --black: #000;
  --rule: rgba(0, 0, 0, .12);
  --sans: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1280px;
  --radius: 28px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-roll: cubic-bezier(.625, .05, 0, 1);
  --grain: none; /* set by main.js */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 56px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.47 var(--sans);
  letter-spacing: -.012em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: inherit; }

::selection { background: var(--red); color: var(--white); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }
[data-cursor-tone="light"] :focus-visible { outline-color: var(--white); }
html { scrollbar-color: #b9b9bd var(--paper); }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: #c7c7cc; border-radius: 99px; border: 3px solid var(--paper); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--white); padding: 8px 14px; border-radius: 99px; }
.skip:focus { left: 8px; }

/* ---------- type ---------- */
.display {
  font-family: var(--sans);
  font-weight: 650;
  font-size: clamp(44px, 7vw, 96px);
  line-height: 1;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.voice {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(42px, 6.4vw, 92px);
  line-height: 1.02;
  letter-spacing: -.028em;
  color: var(--white);
  text-wrap: balance;
}
.voice--ink { color: var(--ink); }

/* ---------- links (Heron-style colour fade; the cursor's saturation square does the rest) ---------- */
.link {
  display: inline-flex;
  align-items: center;
  gap: .32em;
  text-decoration: none;
  color: inherit;
  transition: color .4s;
}
.link:hover { color: var(--red); }
/* on red and black, text stays solid white (contrast); hover draws an underline instead of a colour shift */
[data-cursor-tone="light"] .link { color: var(--white); text-decoration: underline 1px transparent; text-underline-offset: .28em; transition: text-decoration-color .4s; }
[data-cursor-tone="light"] .link:hover { color: var(--white); text-decoration-color: currentColor; }
.link svg { width: .55em; height: .9em; flex: none; transition: transform .4s var(--ease-roll); }
.link--chev svg { width: .42em; }
.link:hover svg { transform: translateX(3px); }
.link--ext svg { width: .7em; height: .7em; }
.link--ext:hover svg { transform: translate(2px, -2px); }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: 52px;
  background: rgba(22, 22, 23, .72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
          backdrop-filter: saturate(180%) blur(20px);
  color: var(--white);
  --ground: #161617;
}
.nav__inner {
  max-width: var(--maxw);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__mark {
  font: 400 22px/1 var(--serif);
  letter-spacing: -.02em;
  text-decoration: none;
  margin-right: auto;
}
.nav__links { display: flex; gap: 26px; font-size: 13px; letter-spacing: -.005em; }
@media (max-width: 760px) { .nav__links { display: none; } }

/* ---------- red brand field: grid + grain, background only ---------- */
.field { position: relative; background: var(--red); color: var(--white); isolation: isolate; }
.field::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cpath d='M0 50.5H100M50.5 0V100' stroke='%23fff' stroke-opacity='.13'/%3E%3Cpath d='M43.5 50.5H57.5M50.5 43.5V57.5' stroke='%23fff' stroke-opacity='.72'/%3E%3C/svg%3E"),
    var(--grain);
  background-size: 100px 100px, 180px 180px;
  background-position: calc(50% - 50px) 0, 0 0; /* first row of crosses sits 50px inside the field */
}

/* ---------- hero ---------- */
.hero { padding-top: 52px; overflow: clip; }
.hero__copy {
  min-height: min(62vh, 640px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(56px, 9vh, 110px) var(--gutter) clamp(40px, 6vh, 72px);
}
.hero__title {
  position: relative;
  display: inline-block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(58px, 10.5vw, 168px);
  line-height: .95;
  letter-spacing: -.035em;
  white-space: nowrap;
}
.hero__word { display: inline-block; overflow: hidden; padding: 0 .02em .12em; margin-bottom: -.12em; vertical-align: bottom; }
.hero__word > span { display: inline-block; }
.wincursor {
  position: absolute;
  width: clamp(18px, 1.9vw, 30px);
  height: auto;
  left: calc(100% - .03em);
  top: .42em;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .25));
  z-index: 5;
}
.hero__lede {
  margin-top: clamp(22px, 3vh, 34px);
  max-width: 40ch;
  font-size: clamp(19px, 1.9vw, 24px);
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -.02em;
  color: var(--white);
}
.hero__actions { margin-top: 32px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; justify-content: center; font-size: 17px; }

.hero__stage-wrap { display: flex; flex-direction: column; align-items: center; padding-bottom: clamp(48px, 8vw, 110px); }
.hero__stage {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  cursor: pointer;
  width: 86vw;
  max-width: 1600px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--black);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .4);
  will-change: width, border-radius;
}
.hero__video { width: 100%; height: 100%; object-fit: cover; }
.hero__stage:hover .stage__play, .hero__stage:focus-visible .stage__play { opacity: 1; transform: none; }
.hero__caption {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 22px;
  padding: 0 var(--gutter);
  font-size: 15px;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}
.hero__caption-title { font-weight: 650; color: var(--white); letter-spacing: -.016em; }
.tag--concept-light { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8); color: var(--white); }
@media (max-width: 760px) {
  .hero__stage { width: calc(100vw - 32px); border-radius: 18px; }
  .hero__title { white-space: normal; }
}

/* ---------- reel band ---------- */
.reel { background: var(--black); }
.reel__video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* ---------- section heads ---------- */
.work { padding: clamp(96px, 12vw, 168px) 0 clamp(80px, 10vw, 140px); }
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 24px 48px;
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 88px);
}
.section-head__lede { max-width: 44ch; font-size: clamp(17px, 1.4vw, 21px); line-height: 1.42; color: var(--ink-2); letter-spacing: -.016em; }
.section-head__lede em { font-style: normal; color: var(--ink); font-weight: 600; }
.section-head--dark .section-head__lede { color: rgba(255, 255, 255, .62); }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

/* ---------- films ---------- */
.films { display: flex; flex-direction: column; gap: clamp(56px, 7vw, 104px); }
.films__row { display: grid; gap: clamp(20px, 2.4vw, 32px) clamp(16px, 2vw, 28px); }
.films__row--1 { grid-template-columns: 1fr; }
.films__row--2 { grid-template-columns: 1fr 1fr; }
.films__row--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) {
  .films__row--2, .films__row--3 { grid-template-columns: 1fr; }
  .films { gap: 56px; }
  .films__row { gap: 56px; }
}

.film { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.stage {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  padding: 0;
  --bezel: clamp(6px, .8vw, 11px);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--black);
  cursor: pointer;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
}
.films__row--3 .stage { border-radius: 20px; }
.stage video, .stage img { position: absolute; inset: var(--bezel); width: calc(100% - var(--bezel) * 2); height: calc(100% - var(--bezel) * 2); object-fit: cover; border-radius: calc(var(--radius) - var(--bezel)); }
.films__row--3 .stage video, .films__row--3 .stage img { border-radius: calc(20px - var(--bezel)); }
.phone .stage video, .phone .stage img { border-radius: calc(22px - var(--bezel)); }
.stage__play {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px 0 12px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  color: var(--ink);
  font: 600 13px/1 var(--sans);
  letter-spacing: -.005em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .35s, transform .5s var(--ease-out);
}
.stage__play svg { width: 10px; height: 12px; }
.stage:hover .stage__play, .stage:focus-visible .stage__play { opacity: 1; transform: none; }
@media (hover: none) { .stage__play { opacity: 1; transform: none; } }

.film__cap { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: baseline; }
.film__title { font-size: clamp(19px, 1.6vw, 24px); font-weight: 650; letter-spacing: -.024em; line-height: 1.15; }
.film__meta { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tag {
  display: inline-block;
  padding: 3px 9px 4px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
}
.tag--client { background: var(--ink); color: var(--white); }
.tag--concept { box-shadow: inset 0 0 0 1px var(--red); color: var(--red); }
.film__desc { grid-column: 1 / -1; max-width: 62ch; color: var(--ink-2); font-size: 16px; line-height: 1.45; }
.films__row--3 .film__desc { font-size: 15px; }

/* ---------- lyric edits ---------- */
.edits { background: var(--black); color: var(--white); padding: clamp(96px, 12vw, 168px) 0; }
.phones {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 24px);
}
.phone { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.phone .stage { aspect-ratio: 9 / 16; border-radius: 22px; --bezel: 6px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.phone__title { font-size: 17px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.phone__sub { font-size: 13px; color: rgba(255, 255, 255, .55); margin-top: 2px; }
.phone:nth-child(even) { margin-top: clamp(0px, 4vw, 64px); }
.edits__links { margin-top: clamp(48px, 6vw, 80px); display: flex; gap: 32px; flex-wrap: wrap; font-size: 17px; }
@media (max-width: 860px) {
  .phones {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    margin: 0 calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 8px;
    scrollbar-width: none;
  }
  .phones::-webkit-scrollbar { display: none; }
  .phone { flex: 0 0 62vw; max-width: 280px; scroll-snap-align: start; }
  .phone:nth-child(even) { margin-top: 0; }
}

/* ---------- about ---------- */
.about { padding: clamp(96px, 12vw, 168px) 0; }
.about__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.about__photo { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: #ddd; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.about__copy { display: flex; flex-direction: column; gap: 22px; max-width: 58ch; }
.about__copy .voice { margin-bottom: 10px; }
.about__copy p { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; color: var(--ink-2); letter-spacing: -.016em; }
.about__copy p:first-of-type { color: var(--ink); }
.about__tools { font-size: 15px !important; color: var(--ink) !important; font-weight: 600; letter-spacing: -.005em !important; }
.about__links { display: flex; gap: 28px; flex-wrap: wrap; font-size: 17px; }
@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__photo { max-width: 420px; }
}

/* ---------- contact ---------- */
.contact { padding: clamp(110px, 14vw, 200px) 0 0; overflow: clip; }
.contact__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.contact__title { font-size: clamp(48px, 8.4vw, 132px); }
.contact__lede { margin: 22px 0 40px; font-size: clamp(19px, 1.8vw, 24px); font-weight: 500; color: var(--white); letter-spacing: -.02em; }
.socials { list-style: none; margin: 48px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 30px; font-size: 17px; }
.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: clamp(96px, 12vw, 160px);
  padding-top: 20px;
  padding-bottom: 28px;
  border-top: 1px solid rgba(255, 255, 255, .28);
  font-size: 13px;
  color: var(--white);
}

/* ---------- pixel button (from heron-pixel-button, Apple pill) ---------- */
.px-btn {
  --px-fill: var(--ink);
  --px-exit: var(--ground, var(--paper));
  --px-active: #fff;
  position: relative;
  display: inline-flex;
  align-items: stretch;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, .22);
  background: transparent;
  color: var(--ink);
  font: 550 17px/1.3 var(--sans); /* room for descenders inside the clipped label */
  letter-spacing: -.016em;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .3s;
  -webkit-tap-highlight-color: transparent;
}
.px-btn:hover { border-color: var(--ink); }
.px-btn.is-entered { background: var(--px-fill); }
.px-btn__bg {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  background: var(--px-fill);
  -webkit-mask-image: var(--px-mask);
          mask-image: var(--px-mask);
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-size: var(--px-mask-size) 100%;
          mask-size: var(--px-mask-size) 100%;
  -webkit-mask-position: 0% 0%;
          mask-position: 0% 0%;
}
.px-btn.is-exiting .px-btn__bg { background: var(--px-exit); }
.px-btn__label, .px-btn__icon { position: relative; z-index: 1; display: grid; overflow: hidden; }
.px-btn__label { margin: 12px 26px; }
.px-btn__icon { margin: 0 20px 0 -14px; place-items: center; }
.px-btn__label > span, .px-btn__icon > span { grid-area: 1 / 1; transition: transform .4s var(--ease-roll); }
.px-btn__label > span:last-child { transform: translateY(110%); }
.px-btn__icon > span:last-child { transform: translateX(-130%); }
.px-btn__icon svg { width: 19px; height: 19px; }
.px-btn.is-active .px-btn__label > span:first-child { transform: translateY(-110%); }
.px-btn.is-active .px-btn__label > span:last-child { transform: translateY(0); }
.px-btn.is-active .px-btn__icon > span:first-child { transform: translateX(130%); }
.px-btn.is-active .px-btn__icon > span:last-child { transform: translateX(0); }

.px-btn--light { --px-fill: #fff; --px-active: var(--ground); border-color: rgba(255, 255, 255, .55); color: #fff; }
.px-btn--light:hover { border-color: #fff; }
.px-btn--solid { --px-fill: var(--ink); --px-exit: #fff; --px-active: #fff; background: #fff; border-color: #fff; color: var(--red); }
.px-btn--solid:hover { border-color: #fff; }
.px-btn--small { font-size: 13px; font-weight: 600; }
.px-btn--small .px-btn__label { margin: 6px 15px; }
.px-btn--large { font-size: clamp(17px, 1.7vw, 22px); }
.px-btn--large .px-btn__label { margin: 16px 32px; }
.px-btn--large .px-btn__icon { margin-right: 26px; }

/* ---------- player ---------- */
.player {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--white);
  overflow: hidden;
}
.player::backdrop { background: transparent; }
.player__veil {
  position: absolute;
  inset: -2px;
  background: #000;
  -webkit-mask-image: var(--px-mask);
          mask-image: var(--px-mask);
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-size: 2000% 100%;
          mask-size: 2000% 100%;
  -webkit-mask-position: 0% 0%;
          mask-position: 0% 0%;
}
.player.is-open .player__veil { -webkit-mask-image: none; mask-image: none; }
.player__body {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 24px var(--gutter);
  opacity: 0;
}
.player__frame { width: min(100%, calc((100dvh - 160px) * var(--ar, 1.7778))); border-radius: 18px; overflow: hidden; background: #000; }
.player__frame video { width: 100%; height: auto; aspect-ratio: var(--ar, 16 / 9); background: #000; }
.player__meta { width: min(100%, calc((100dvh - 160px) * var(--ar, 1.7778))); min-width: min(100%, 520px); display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.player__title { font-size: 21px; font-weight: 650; letter-spacing: -.022em; }
.player__desc { margin-top: 4px; font-size: 15px; color: rgba(255, 255, 255, .62); max-width: 60ch; }
.player__close {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, .3);
  background: transparent;
  color: var(--white);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color .3s, background-color .3s;
}
.player__close:hover { border-color: #fff; background: rgba(255, 255, 255, .1); }
.player__close svg { width: 14px; height: 14px; }

/* ---------- canvas cursor ---------- */
.cursor-canvas { position: fixed; inset: 0; pointer-events: none; z-index: 2147483600; }
.cursor-hover {
  position: fixed;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  pointer-events: none;
  z-index: 2147483601;
  background: rgb(128, 128, 128);
  mix-blend-mode: saturation;
  border: 1.25px solid transparent;
  opacity: 0;
  will-change: transform, opacity;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .px-btn__label > span, .px-btn__icon > span, .link svg { transition: none; }
}
