/* ==========================================================================
   Jay Chubb — site.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  --grey: #d6d6d6;
  --grey-2: #e2e2e4;
  --ink: #0b0b0c;
  --ink-2: #2a2a2e;
  --muted: #545459;
  --pink: #ff2d96;
  --white: #ffffff;

  --font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mark: "Schibsted Grotesk", "Figtree", system-ui, sans-serif;

  --max: 1280px;
  --gutter: clamp(20px, 5vw, 72px);
  --section-pad: clamp(80px, 12vw, 180px);
  --card-radius: 4px;
  --card-pad: clamp(24px, 2.4vw, 40px);

  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-expo: cubic-bezier(.16, 1, .3, 1);

  --header-h: 92px;
}

/* --------------------------------------------------------------------------
   2. Reset / base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
}

html.no-scroll,
html.menu-open {
  overflow: hidden;
}

body {
  margin: 0;
  background: var(--grey);
  color: var(--ink);
  font-family: var(--font);
  font-size: clamp(17px, 1.25vw, 20px);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  min-height: 100svh;
}

/* Grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9990;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

input,
textarea {
  font: inherit;
  color: inherit;
}

h1, h2, h3, h4, p, figure, blockquote {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

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

section {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-pad);
}

.section--tight {
  padding-block: clamp(60px, 8vw, 120px);
}

.section__head {
  max-width: 22ch;
}

.section-mark {
  margin-bottom: clamp(24px, 3vw, 40px);
}

/* --------------------------------------------------------------------------
   4. Typography
   -------------------------------------------------------------------------- */
.h-hero {
  font-size: clamp(44px, 6.4vw, 92px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0;
}

.h-section {
  font-size: clamp(30px, 4.2vw, 60px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
}

.h-box {
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
}

.lead {
  font-size: clamp(24px, 1.9vw, 31px);
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
  max-width: 34ch;
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.dot {
  color: var(--pink);
}

strong,
em,
u {
  font-style: normal;
  color: var(--pink);
  font-weight: 600;
}

p {
  margin: 0;
}

p + p {
  margin-top: 1em;
}

/* --------------------------------------------------------------------------
   5. The mark
   -------------------------------------------------------------------------- */
.mark {
  display: block;
  width: 44px;
  height: auto;
  color: var(--pink);
}

.mark path {
}

/* Logo tile */
.logo-tile {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 92px;
  min-height: 92px;
  padding: 12px 8px 14px;
  background: var(--pink);
  color: var(--ink);
  flex: none;
}

.logo-tile .mark {
  width: 40px;
  color: var(--ink);
  transform: translateY(-2px);
}

.logo-tile__word {
  font-family: var(--font-mark);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-footer .logo-tile--footer {
  background: var(--ink);
  width: 92px;
  min-height: 92px;
}

.site-footer .logo-tile--footer .mark,
.logo-tile--footer .mark {
  color: var(--pink);
}

/* --------------------------------------------------------------------------
   6. Buttons & links
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--pink);
  color: var(--ink);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 320ms var(--ease), color 320ms var(--ease),
    transform 420ms var(--ease);
  will-change: transform;
}

.btn:hover {
  background: var(--ink);
  color: var(--pink);
}

.btn--dark {
  background: var(--ink);
  color: var(--grey);
}

.btn--dark:hover {
  background: var(--pink);
  color: var(--ink);
}

.btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  margin-top: clamp(32px, 4vw, 56px);
}

.btn-arrow::after {
  content: "→";
  display: inline-block;
  transition: transform 320ms var(--ease);
}

.btn-arrow:hover {
  color: var(--pink);
}

.btn-arrow:hover::after {
  transform: translateX(6px);
}

.menu-overlay .btn {
  margin-top: 8px;
}

/* --------------------------------------------------------------------------
   7. Split lines (hero heading)
   -------------------------------------------------------------------------- */
.split-lines .line {
  display: block;
  overflow: hidden;
}

.split-lines .line__inner {
  display: inline-block;
  will-change: transform;
}

.split-lines .dot {
  display: inline-block;
  transform-origin: center;
  will-change: transform;
}

.js .split-lines .line__inner {
  transform: translateY(105%);
}

.js .split-lines.is-in .line__inner {
  transform: translateY(0);
  transition: transform 1000ms var(--ease-expo);
}

.js .split-lines.is-in .line:nth-child(1) .line__inner { transition-delay: 0ms; }
.js .split-lines.is-in .line:nth-child(2) .line__inner { transition-delay: 90ms; }
.js .split-lines.is-in .line:nth-child(3) .line__inner { transition-delay: 180ms; }
.js .split-lines.is-in .line:nth-child(4) .line__inner { transition-delay: 270ms; }
.js .split-lines.is-in .line:nth-child(5) .line__inner { transition-delay: 360ms; }

.js .split-lines.is-in .dot.is-pop {
  animation: dot-pop 520ms var(--ease) both;
}

@keyframes dot-pop {
  0% { transform: scale(1); }
  55% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

/* --------------------------------------------------------------------------
   8. Photo reveal
   -------------------------------------------------------------------------- */
.photo-reveal {
  overflow: hidden;
  border-radius: var(--card-radius);
}

.photo-reveal img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.js .photo-reveal {
  clip-path: inset(100% 0 0 0);
}

.js .photo-reveal img {
  transform: scale(1.08);
}

.js .photo-reveal.is-in {
  clip-path: inset(0);
  transition: clip-path 1200ms var(--ease-expo);
}

.js .photo-reveal.is-in img {
  transform: scale(1);
  transition: transform 1200ms var(--ease-expo);
}

/* --------------------------------------------------------------------------
   9. Reveal
   -------------------------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease);
}

.js .reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

.js .reveal-stagger > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease);
}

.js .reveal-stagger.is-in > * {
  opacity: 1;
  transform: translateY(0);
}

.js .reveal-stagger.is-in > *:nth-child(1) { transition-delay: 0ms; }
.js .reveal-stagger.is-in > *:nth-child(2) { transition-delay: 80ms; }
.js .reveal-stagger.is-in > *:nth-child(3) { transition-delay: 160ms; }
.js .reveal-stagger.is-in > *:nth-child(4) { transition-delay: 240ms; }
.js .reveal-stagger.is-in > *:nth-child(5) { transition-delay: 320ms; }
.js .reveal-stagger.is-in > *:nth-child(6) { transition-delay: 400ms; }

/* --------------------------------------------------------------------------
   10. Skip link
   -------------------------------------------------------------------------- */
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 10000;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--grey);
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  transition: top 240ms var(--ease);
}

.skip-link:focus-visible,
.skip-link:focus {
  top: 16px;
  outline: 2px solid var(--pink);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   11. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  height: var(--header-h);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0 var(--gutter) 0 0;
  transition: background-color 400ms var(--ease), backdrop-filter 400ms var(--ease),
    transform 480ms var(--ease);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  transition: background-color 400ms var(--ease), backdrop-filter 400ms var(--ease);
  pointer-events: none;
  z-index: -1;
}

.site-header.is-scrolled::before {
  background: rgba(214, 214, 214, 0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.site-header .logo-tile {
  position: relative;
  z-index: 2;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.6vw, 40px);
  padding-top: 26px;
}

.site-nav__link {
  position: relative;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  padding: 4px 0;
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--pink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 340ms var(--ease);
}

.site-nav__link:hover::after,
.site-nav__link[aria-current="page"]::after {
  transform: scaleX(1);
}

.menu-btn {
  display: none;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  font-weight: 600;
  font-size: 15px;
}

.menu-btn__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 22px;
}

.menu-btn__bars span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 300ms var(--ease), opacity 300ms var(--ease);
}

/* --------------------------------------------------------------------------
   12. Menu overlay
   -------------------------------------------------------------------------- */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 950;
  background: var(--ink);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--gutter);
  opacity: 0;
  visibility: hidden;
  transition: opacity 400ms var(--ease), visibility 400ms var(--ease);
}

.menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.menu-overlay__close {
  position: absolute;
  top: 22px;
  right: var(--gutter);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  color: var(--grey);
}

.menu-overlay__close .btn-x {
  position: relative;
  display: inline-block;
  width: 22px;
  height: 22px;
}

.menu-overlay__close .btn-x::before,
.menu-overlay__close .btn-x::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.menu-overlay__close .btn-x::before { transform: rotate(45deg); }
.menu-overlay__close .btn-x::after { transform: rotate(-45deg); }

.menu-overlay__nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.menu-overlay__nav a {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--white);
  transform: translateY(24px);
  opacity: 0;
  transition: transform 600ms var(--ease-expo), opacity 600ms var(--ease-expo);
}

.menu-overlay__nav a::after {
  content: none;
}

.menu-overlay.is-open .menu-overlay__nav a {
  transform: translateY(0);
  opacity: 1;
}

.menu-overlay.is-open .menu-overlay__nav a:nth-child(1) { transition-delay: 80ms; }
.menu-overlay.is-open .menu-overlay__nav a:nth-child(2) { transition-delay: 140ms; }
.menu-overlay.is-open .menu-overlay__nav a:nth-child(3) { transition-delay: 200ms; }
.menu-overlay.is-open .menu-overlay__nav a:nth-child(4) { transition-delay: 260ms; }
.menu-overlay.is-open .menu-overlay__nav a:nth-child(5) { transition-delay: 320ms; }

.menu-overlay__foot {
  margin-top: clamp(32px, 6vw, 64px);
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  color: var(--grey);
  font-size: 15px;
}

/* --------------------------------------------------------------------------
   13. Progress bar / cursor
   -------------------------------------------------------------------------- */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  z-index: 960;
  background: var(--pink);
  transform-origin: left;
  transform: scaleX(0);
  pointer-events: none;
}

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pink);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 320ms var(--ease), height 320ms var(--ease),
    background-color 320ms var(--ease), opacity 320ms var(--ease);
  will-change: transform;
  display: none;
  opacity: 0;
}

@media (pointer: fine) {
  .cursor {
    display: block;
  }
  .cursor.is-visible {
    opacity: 1;
  }
}

.cursor.is-hover {
  width: 44px;
  height: 44px;
  opacity: 0.25;
}

.cursor.is-drag {
  width: 84px;
  height: 84px;
  background: var(--ink);
  color: var(--grey);
  opacity: 1;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.cursor.is-drag::after {
  content: "Side scroll";
}

/* --------------------------------------------------------------------------
   14. Preloader
   -------------------------------------------------------------------------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9800;
  background: var(--grey);
  display: grid;
  place-items: center;
  clip-path: inset(0 0 0 0);
}

.preloader.ready {
  transition: clip-path 700ms var(--ease-expo);
  clip-path: inset(0 0 100% 0);
}

.preloader .mark {
  width: 120px;
  color: var(--ink);
}

.preloader .mark {
  clip-path: circle(0% at 0% 100%);
  animation: fan 900ms var(--ease-expo) 120ms forwards;
}

@keyframes fan {
  to { clip-path: circle(150% at 0% 100%); }
}

/* --------------------------------------------------------------------------
   15. Hero
   -------------------------------------------------------------------------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: calc(var(--header-h) + 24px);
  padding-bottom: clamp(32px, 5vw, 64px);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
  align-items: end;
  gap: clamp(24px, 4vw, 64px);
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vw, 48px);
  min-width: 0;
}

.hero__sub {
  margin: 0;
}

.hero__photo {
  width: 100%;
  max-width: 420px;
  margin-left: auto;
}

.hero__photo.photo-reveal {
  will-change: clip-path, transform;
}

.hero__cue {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: clamp(40px, 6vw, 80px);
  align-self: flex-start;
}

.hero__cue-line {
  display: inline-block;
  width: 1px;
  height: 56px;
  background: var(--ink);
  transform-origin: top;
  animation: cue 2.4s var(--ease) infinite;
}

@keyframes cue {
  0%, 100% { transform: scaleY(0.25); }
  50% { transform: scaleY(1); }
}

.hero__cue .eyebrow {
  color: var(--ink);
}

/* Inner-page hero */
.page-hero {
  padding-top: calc(var(--header-h) + clamp(48px, 8vw, 120px));
  padding-bottom: clamp(40px, 6vw, 96px);
}

.page-hero .hero__grid {
  align-items: center;
}

.page-hero .lead {
  color: var(--muted);
  margin-top: clamp(24px, 3vw, 40px);
}

/* --------------------------------------------------------------------------
   16. Black band
   -------------------------------------------------------------------------- */
.band-black {
  background: var(--ink);
  color: var(--grey);
  padding-block: var(--section-pad);
  width: 100%;
}

.band-black .inner {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.band-black .h-section {
  color: var(--grey);
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.band-black .h-section .dot {
  color: var(--pink);
}

.band-black .copy p {
  color: var(--grey);
  margin-bottom: 1.1em;
}

.band-black .copy p:last-child {
  color: var(--pink);
  font-weight: 600;
}

.band-black strong {
  color: var(--pink);
}

.band-black .word {
  opacity: 0.22;
  transition: opacity 300ms var(--ease);
}

.band-black .word.is-lit {
  opacity: 1;
}

.band-black .word--pink {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   17. Cards & grids
   -------------------------------------------------------------------------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  margin-top: clamp(40px, 5vw, 72px);
}

.card {
  background: var(--grey-2);
  border-radius: var(--card-radius);
  padding: var(--card-pad);
  color: var(--ink);
  transition: transform 350ms var(--ease), background-color 350ms var(--ease),
    color 350ms var(--ease);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.card .h-box {
  transition: color 350ms var(--ease);
}

.card p {
  color: var(--muted);
  font-size: clamp(16px, 1.05vw, 17px);
  line-height: 1.5;
  transition: color 350ms var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  background: var(--ink);
  color: var(--grey);
}

.card:hover .h-box {
  color: var(--pink);
}

.card:hover p {
  color: var(--grey);
}

.card__num {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--muted);
  transition: color 350ms var(--ease);
}

.card:hover .card__num {
  color: var(--pink);
}

/* Inverted cards (black band inner) */
.cards-invert .card {
  background: var(--ink-2);
  color: var(--grey);
}

.cards-invert .card p {
  color: var(--grey);
}

.cards-invert .card .h-box {
  color: var(--pink);
}

.cards-invert .card:hover {
  background: var(--grey-2);
  color: var(--ink);
}

.cards-invert .card:hover .h-box {
  color: var(--ink);
}

.cards-invert .card:hover p {
  color: var(--muted);
}

/* Section lead / big mark */
.section-mark--lg {
  margin-bottom: clamp(28px, 4vw, 48px);
}

.section-mark--lg .mark {
  width: 120px;
}

/* --------------------------------------------------------------------------
   18. Work — flapboard + rail
   -------------------------------------------------------------------------- */
.work-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
  margin-top: clamp(40px, 5vw, 72px);
}

.flapboard {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.4vw, 18px);
}

.flapboard__row {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
}

.flapboard__label {
  font-size: clamp(16px, 1.2vw, 19px);
  font-weight: 500;
  color: var(--muted);
  line-height: 1.25;
}

.flapboard__num {
  display: inline-flex;
  gap: 6px;
  flex: none;
}

.flap {
  display: inline-flex;
  gap: 6px;
}

.flap__tile {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(38px, 3.6vw, 52px);
  height: clamp(52px, 5vw, 72px);
  background: var(--ink);
  border-radius: 4px;
  color: var(--grey);
  font-family: var(--font);
  font-size: clamp(26px, 2.6vw, 40px);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  transition: transform 80ms ease, color 300ms var(--ease);
}

.flap__tile::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(0, 0, 0, 0.55);
  transform: translateY(-0.5px);
  pointer-events: none;
}

.flap__tile.is-tilt {
  transform: perspective(300px) rotateX(8deg);
}

.flap__tile.is-landed {
  color: var(--pink);
}

.flap__tile.is-blank {
  color: transparent;
}

/* Rail */
.rail-wrap {
  position: relative;
  min-width: 0;
}

.rail {
  display: flex;
  gap: clamp(16px, 1.8vw, 24px);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  cursor: grab;
}

.rail::-webkit-scrollbar {
  display: none;
}

.rail.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  -webkit-user-select: none;
  user-select: none;
}

.rail__card {
  flex: 0 0 420px;
  width: 420px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-radius: var(--card-radius);
  overflow: hidden;
}

.rail__img {
  aspect-ratio: 1920 / 1418;
  overflow: hidden;
  border-radius: var(--card-radius);
  background: var(--grey-2);
}

.rail__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease);
}

.rail__card:hover .rail__img img {
  transform: none;
}

.rail__name {
  font-weight: 700;
  font-size: clamp(18px, 1.5vw, 22px);
  letter-spacing: -0.01em;
}

.rail__desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rail__ctrls {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.rail__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--grey);
  display: grid;
  place-items: center;
  font-size: 18px;
  transition: background-color 300ms var(--ease), color 300ms var(--ease);
}

.rail__btn:hover {
  background: var(--pink);
  color: var(--ink);
}

.rail__btn:disabled {
  opacity: 0.3;
  cursor: default;
}

/* --------------------------------------------------------------------------
   19. Marquee
   -------------------------------------------------------------------------- */
.marquee {
  overflow: hidden;
  margin-top: clamp(40px, 5vw, 72px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.marquee__track {
  display: flex;
  gap: clamp(16px, 1.8vw, 24px);
  width: max-content;
  animation: marquee 70s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.quote {
  background: var(--grey-2);
  border-radius: var(--card-radius);
  padding: var(--card-pad);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 350ms var(--ease), background-color 350ms var(--ease);
}

.marquee .quote {
  width: 360px;
  flex: none;
}

.quote p {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.quote p strong,
.quote p em {
  color: var(--pink);
}

.quote__mark {
  width: 28px;
  height: 20px;
  color: var(--pink);
}

.quote__attr {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4;
}

.quote__attr b {
  color: var(--ink);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   20. Build / split section (photo + text)
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}

.split__photo {
  width: 100%;
}

.split__text {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.4vw, 32px);
  max-width: 52ch;
}

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

/* Available / engagement rows */
.engagement {
  display: flex;
  flex-direction: column;
  margin-top: clamp(28px, 3vw, 44px);
}

.engagement__row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(16px, 2.4vw, 40px);
  align-items: start;
  padding: clamp(20px, 2.4vw, 32px) 0;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  transition: padding-left 400ms var(--ease);
}

.engagement__row:last-child {
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.engagement__row:hover {
  padding-left: 10px;
}

.engagement__row .card__num {
  padding-top: 6px;
}

.engagement__row:hover .card__num {
  color: var(--pink);
}

.engagement__row h3 {
  font-size: clamp(20px, 1.6vw, 24px);
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.engagement__row p {
  color: var(--muted);
  font-size: clamp(16px, 1.1vw, 18px);
}

/* --------------------------------------------------------------------------
   21. Sticky tabs (services)
   -------------------------------------------------------------------------- */
.tabs {
  position: sticky;
  top: 0;
  z-index: 400;
  background: rgba(214, 214, 214, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.tabs__list {
  display: flex;
  gap: clamp(20px, 3vw, 44px);
  padding-top: 16px;
  padding-bottom: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs__list::-webkit-scrollbar {
  display: none;
}

.tabs__link {
  position: relative;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  padding-bottom: 4px;
  color: var(--muted);
  transition: color 300ms var(--ease);
}

.tabs__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--pink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 340ms var(--ease);
}

.tabs__link.is-active {
  color: var(--ink);
}

.tabs__link.is-active::after {
  transform: scaleX(1);
}

/* Service groups */
.service-group {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
  padding-block: clamp(64px, 9vw, 140px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  scroll-margin-top: 80px;
}

.service-group:first-of-type {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.service-group__aside {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vw, 28px);
}

.service-group__aside .eyebrow {
  color: var(--muted);
}

.service-group__list {
  display: flex;
  flex-direction: column;
}

.service {
  display: block;
  padding: clamp(22px, 2.6vw, 34px) 0;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  position: relative;
}

.service:first-child {
  border-top: 0;
  padding-top: 0;
}

.service h3 {
  font-size: clamp(20px, 1.7vw, 26px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  transition: transform 350ms var(--ease), color 350ms var(--ease);
}

.service h3::after {
  content: "→";
  color: var(--pink);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 350ms var(--ease), transform 350ms var(--ease);
}

.service p {
  color: var(--muted);
  font-size: clamp(16px, 1.1vw, 18px);
  max-width: 56ch;
}

.service:hover h3 {
  transform: translateX(8px);
  color: var(--pink);
}

.service:hover h3::after {
  opacity: 1;
  transform: translateX(0);
}

/* --------------------------------------------------------------------------
   22. Accordion (sectors)
   -------------------------------------------------------------------------- */
.accordion {
  margin-top: clamp(40px, 5vw, 72px);
  border-top: 1px solid rgba(0, 0, 0, 0.15);
}

.accordion__item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
  padding: clamp(22px, 2.6vw, 32px) 0;
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: color 300ms var(--ease);
}

.accordion__trigger:hover {
  color: var(--pink);
}

.accordion__icon {
  position: relative;
  flex: none;
  width: 28px;
  height: 28px;
  transition: transform 400ms var(--ease), color 400ms var(--ease);
  color: var(--ink);
}

.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transform: translate(-50%, -50%);
}

.accordion__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform 400ms var(--ease);
}

.accordion__item.is-open .accordion__icon {
  transform: rotate(45deg);
  color: var(--pink);
}

.accordion__panel {
  overflow: hidden;
  height: 0;
  transition: height 460ms var(--ease);
}

.accordion__panel-inner {
  padding-bottom: clamp(24px, 3vw, 40px);
  max-width: 66ch;
}

.accordion__panel-inner p {
  color: var(--muted);
  font-size: clamp(16px, 1.2vw, 19px);
}

.accordion__panel-inner p + p {
  margin-top: 1em;
}

/* --------------------------------------------------------------------------
   23. Folio page
   -------------------------------------------------------------------------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(32px, 4vw, 56px);
  margin-bottom: clamp(32px, 4vw, 56px);
}

.chip {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--grey-2);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  transition: background-color 300ms var(--ease), color 300ms var(--ease);
}

.chip:hover {
  background: var(--ink-2);
  color: var(--grey);
}

.chip.is-active {
  background: var(--ink);
  color: var(--pink);
}

.folio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3.4vw, 56px) clamp(20px, 2.6vw, 40px);
}

.project {
  display: flex;
  flex-direction: column;
  gap: 18px;
  cursor: pointer;
  transition: opacity 400ms var(--ease), transform 400ms var(--ease);
  min-width: 0;
}

.project.is-filtered {
  display: none;
}

.project__media {
  position: relative;
  aspect-ratio: 1920 / 1418;
  overflow: hidden;
  border-radius: var(--card-radius);
  background: var(--grey-2);
}

.project__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease);
}

.project:hover .project__media img {
  transform: none;
}

.project__view {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--grey);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  transition: opacity 260ms var(--ease), transform 260ms var(--ease);
  will-change: transform;
}

.project:hover .project__view {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.project__meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project__top {
  display: flex;
  align-items: center;
  gap: 14px;
}

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

.project__name {
  font-size: clamp(20px, 1.7vw, 26px);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.region {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--grey-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.project__desc {
  color: var(--muted);
  font-size: clamp(15px, 1vw, 16px);
  line-height: 1.5;
  max-width: 56ch;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--grey-2);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

/* Dialog lightbox */
.lightbox {
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.lightbox::backdrop {
  background: rgba(11, 11, 12, 0.92);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.lightbox__inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: clamp(20px, 5vw, 64px);
  color: var(--grey);
}

.lightbox__media {
  max-width: min(1100px, 100%);
  max-height: 68vh;
  aspect-ratio: 1920 / 1418;
  overflow: hidden;
  border-radius: var(--card-radius);
  background: var(--ink-2);
}

.lightbox__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lightbox__info {
  max-width: 720px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.lightbox__info .project__name {
  color: var(--white);
  font-size: clamp(22px, 2vw, 30px);
}

.lightbox__info .project__desc {
  color: var(--grey);
}

.lightbox__info .tag,
.lightbox__info .region {
  background: var(--ink-2);
  color: var(--grey);
}

.lightbox__close {
  position: absolute;
  top: clamp(16px, 3vw, 32px);
  right: clamp(16px, 3vw, 32px);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink-2);
  color: var(--grey);
  display: grid;
  place-items: center;
  font-size: 18px;
  transition: background-color 300ms var(--ease), color 300ms var(--ease);
}

.lightbox__close:hover {
  background: var(--pink);
  color: var(--ink);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink-2);
  color: var(--grey);
  display: grid;
  place-items: center;
  font-size: 18px;
  transition: background-color 300ms var(--ease), color 300ms var(--ease);
}

.lightbox__nav:hover {
  background: var(--pink);
  color: var(--ink);
}

.lightbox__nav--prev { left: clamp(8px, 2vw, 24px); }
.lightbox__nav--next { right: clamp(8px, 2vw, 24px); }

/* --------------------------------------------------------------------------
   24. Kudos page
   -------------------------------------------------------------------------- */
.quotes-grid {
  columns: 3;
  column-gap: clamp(16px, 2vw, 24px);
  margin-top: clamp(40px, 5vw, 72px);
}

.quotes-grid .quote {
  break-inside: avoid;
  margin-bottom: clamp(16px, 2vw, 24px);
  display: inline-flex;
  width: 100%;
}

.quotes-grid .quote:hover {
  transform: translateY(-4px) rotate(-0.4deg);
}

/* --------------------------------------------------------------------------
   25. Contact page & form
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
  margin-top: clamp(40px, 5vw, 72px);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: clamp(24px, 3vw, 40px);
}

.form-field {
  position: relative;
  display: flex;
  flex-direction: column;
}

.form-field__control {
  width: 100%;
  background: var(--grey-2);
  border: 0;
  border-radius: var(--card-radius);
  padding: 24px 18px 12px;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--ink);
  outline: none;
  resize: none;
  transition: background-color 300ms var(--ease);
}

textarea.form-field__control {
  min-height: 160px;
}

.form-field__label {
  position: absolute;
  left: 18px;
  top: 20px;
  color: var(--muted);
  font-size: 16px;
  pointer-events: none;
  transform-origin: left top;
  transition: transform 260ms var(--ease), color 260ms var(--ease);
}

.form-field__control:focus + .form-field__label,
.form-field__control:not(:placeholder-shown) + .form-field__label,
.form-field.is-filled .form-field__label {
  transform: translateY(-10px) scale(0.72);
  color: var(--ink);
}

.form-field::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--pink);
  border-radius: 0 0 var(--card-radius) var(--card-radius);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 360ms var(--ease);
  pointer-events: none;
}

.form-field:focus-within::after {
  transform: scaleX(1);
}

.form-field__error {
  font-size: 14px;
  color: var(--pink);
  margin-top: 6px;
  min-height: 0;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 240ms var(--ease), transform 240ms var(--ease);
}

.form-field.has-error .form-field__error {
  opacity: 1;
  transform: translateY(0);
}

.form-field.has-error .form-field__control {
  background: #f3dbe6;
}

.form .btn {
  align-self: flex-start;
  margin-top: 8px;
}

.form-thanks {
  margin-top: clamp(24px, 3vw, 40px);
  padding: var(--card-pad);
  background: var(--grey-2);
  border-radius: var(--card-radius);
  color: var(--muted);
  font-size: clamp(17px, 1.2vw, 20px);
  line-height: 1.5;
}

.contact-card {
  background: var(--ink);
  color: var(--grey);
  border-radius: var(--card-radius);
  padding: var(--card-pad);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-card .h-section,
.contact-card h2 {
  color: var(--grey);
  font-size: clamp(28px, 3vw, 42px);
}

.contact-card p {
  color: var(--grey);
  font-size: clamp(16px, 1.1vw, 18px);
}

.contact-card .btn {
  align-self: flex-start;
  margin-top: 4px;
}

.contact-email {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: clamp(20px, 2.4vw, 32px);
  font-size: clamp(16px, 1.2vw, 19px);
}

.contact-email a {
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid currentColor;
  transition: color 300ms var(--ease);
}

.contact-email a:hover {
  color: var(--pink);
}

.copy-btn {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--grey-2);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  transition: background-color 260ms var(--ease), color 260ms var(--ease);
  min-width: 72px;
  text-align: center;
}

.copy-btn:hover {
  background: var(--ink);
  color: var(--pink);
}

.copy-btn.is-copied {
  background: var(--pink);
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   26. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--white);
  color: var(--ink);
  padding-top: clamp(64px, 10vw, 140px);
  overflow-x: clip;
}

.site-footer__talk {
  display: inline-flex;
  align-items: baseline;
  gap: 0.06em;
  font-size: clamp(56px, 10vw, 160px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  transition: color 400ms var(--ease);
}

.site-footer__talk .dot {
  display: inline-block;
  transition: transform 400ms var(--ease);
}

.site-footer__talk:hover {
  color: var(--pink);
}

.site-footer__talk:hover .dot {
  transform: translateX(0.18em);
  color: var(--ink);
}

.site-footer__cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  padding-block: clamp(48px, 7vw, 96px);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  margin-top: clamp(40px, 6vw, 80px);
}

.site-footer h4 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.site-footer__cols p {
  color: var(--muted);
  font-size: 15px;
  max-width: 34ch;
}

.site-footer__cols .btn {
  margin-top: 18px;
}

.site-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer__nav a,
.site-footer__contact a {
  font-size: 15px;
  color: var(--ink);
  width: fit-content;
  position: relative;
}

.site-footer__nav a::after,
.site-footer__contact a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--pink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 320ms var(--ease);
}

.site-footer__nav a:hover::after,
.site-footer__contact a:hover::after {
  transform: scaleX(1);
}

.site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-size: 15px;
}

.site-footer__clock {
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  font-weight: 600;
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 28px;
  padding-block: clamp(28px, 4vw, 44px);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.site-footer__bottom .logo-tile--footer {
  width: 64px;
  min-height: 64px;
  border-radius: 4px;
}

.site-footer__bottom .logo-tile--footer .mark {
  width: 30px;
}

.site-footer__tagline {
  font-size: 15px;
  color: var(--muted);
  flex: 1 1 auto;
}

.site-footer__copy {
  font-size: 14px;
  color: var(--muted);
}

.to-top {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  transition: color 300ms var(--ease);
}

.to-top:hover {
  color: var(--pink);
}

/* --------------------------------------------------------------------------
   27. View transitions
   -------------------------------------------------------------------------- */
@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: vt-out 260ms var(--ease) both;
}

::view-transition-new(root) {
  animation: vt-in 320ms var(--ease) both;
}

@keyframes vt-out {
  to {
    opacity: 0;
    transform: translateY(-12px);
  }
}

@keyframes vt-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

/* --------------------------------------------------------------------------
   28. Helpers
   -------------------------------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.4vw, 32px);
}

/* --------------------------------------------------------------------------
   29. Responsive — 900px
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  :root {
    --header-h: 72px;
  }

  .site-header {
    padding-right: var(--gutter);
  }

  .site-nav {
    display: none;
  }

  .menu-btn {
    display: inline-flex;
  }

  .logo-tile {
    width: 64px;
    min-height: 64px;
    padding: 8px 6px 10px;
    gap: 5px;
  }

  .logo-tile .mark {
    width: 28px;
  }

  .logo-tile__word {
    font-size: 7px;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-h) + 24px);
  }

  .hero__grid {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 32px;
  }

  .hero__photo {
    max-width: 320px;
    margin-left: 0;
  }

  .band-black .inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .band-black .h-section {
    position: static;
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .split__photo {
    max-width: 460px;
  }

  .service-group {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .service-group__aside {
    position: static;
  }

  .folio-grid {
    grid-template-columns: 1fr;
  }

  .quotes-grid {
    columns: 2;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .site-footer__cols {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .menu-overlay__nav a {
    font-size: 40px;
  }
}

/* --------------------------------------------------------------------------
   30. Responsive — 600px
   -------------------------------------------------------------------------- */
@media (max-width: 600px) {
  .h-hero {
    font-size: 44px;
  }

  .h-section {
    font-size: 30px;
  }

  .h-box {
    font-size: 22px;
  }

  body {
    font-size: 17px;
  }

  .lead {
    font-size: 24px;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .hero__cue {
    margin-top: 32px;
  }

  .hero__cue-line {
    height: 40px;
  }

  .section-mark--lg .mark {
    width: 84px;
  }

  .rail__card {
    flex-basis: 78vw;
    width: 78vw;
  }

  .marquee .quote {
    width: 82vw;
  }

  .flapboard__row {
    gap: 14px;
  }

  .flapboard__label {
    font-size: 15px;
  }

  .flap__tile {
    width: 34px;
    height: 46px;
    font-size: 24px;
    border-radius: 3px;
  }

  .accordion__trigger {
    font-size: 22px;
    gap: 16px;
  }

  .quotes-grid {
    columns: 1;
  }

  .menu-overlay__nav a {
    font-size: 34px;
  }

  .lightbox__nav {
    display: none;
  }

  .site-footer__talk {
    font-size: clamp(52px, 16vw, 92px);
  }

  .site-footer__bottom {
    gap: 14px;
  }
}

/* --------------------------------------------------------------------------
   31. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .js .split-lines .line__inner,
  .js .photo-reveal,
  .js .photo-reveal img,
  .js .reveal,
  .js .reveal-stagger > * {
    transform: none !important;
    opacity: 1 !important;
    clip-path: none !important;
  }

  .marquee {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .marquee__track {
    animation: none;
    transform: none;
  }

  .hero__cue-line {
    animation: none;
    transform: scaleY(1);
  }

  .cursor {
    display: none !important;
  }

  .preloader {
    display: none !important;
  }
}
/* Hero headline keeps the author's line breaks on wider screens */
.hero .h-hero { font-size: clamp(40px, 4.9vw, 80px); }
@media (min-width: 901px) { .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 280px) !important; } }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr !important; } .hero__photo { max-width: 300px; margin-left: 0; } }
@media (min-width: 601px) { .split-lines .line { white-space: nowrap; } }

/* Tuning after review */
.band-black .inner { grid-template-columns: 6fr 6fr; }
.band-black .h-section { font-size: clamp(30px, 3.4vw, 54px); }
.band-black .copy p { font-size: clamp(18px, 1.4vw, 22px); line-height: 1.55; }
.card p { font-size: clamp(16px, 1.15vw, 18px); }
@media (max-width: 900px) { .band-black .inner { grid-template-columns: 1fr; } .band-black .h-section { position: static; } }
.cards-invert .card:hover { background: var(--pink); color: var(--ink); }
.cards-invert .card:hover h3, .cards-invert .card:hover p { color: var(--ink); }

/* --------------------------------------------------------------------------
   Logo refresh (Oct 2026): squarer corners to match the stamp (10% radius)
   -------------------------------------------------------------------------- */
:root { --radius-ui: 3px; }
.btn, .skip-link, .chip, .project__view, .region, .tag, .copy-btn { border-radius: var(--radius-ui); }
.site-header .logo-tile { border-radius: 0; }
.site-footer .logo-tile--footer, .site-footer__bottom .logo-tile--footer { border-radius: 9px; }

/* Hero: the line mask clips only top and bottom, so a long line can never
   lose its last letter at the side, and descenders keep their room. */
.split-lines .line {
  overflow: visible;
  clip-path: inset(-0.3em -100vw -0.18em -100vw);
}
.js .split-lines .line__inner { transform: translateY(130%); }
.js .split-lines.is-in .line__inner { transform: translateY(0); }

/* Quotes: two rows, six people each, running in opposite directions */
.marquee { display: grid; gap: clamp(16px, 1.8vw, 24px); }
.marquee__track--reverse { animation-direction: reverse; animation-duration: 80s; }

/* --------------------------------------------------------------------------
   Hero: cut-out portrait standing on the bottom edge, copy level with the face
   -------------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero .container { position: relative; z-index: 2; width: 100%; }
.hero__grid { grid-template-columns: 1fr !important; }
.hero__cut img { display: block; width: 100%; height: auto; }

@media (min-width: 901px) {
  /* Always exactly one window tall, so the photo's bottom edge is the screen's */
  .hero {
    min-height: 100svh;
    max-height: 100svh;
    padding-top: calc(var(--header-h) + 8px);
    padding-bottom: clamp(20px, 3.5vh, 56px);
  }
  /* Close-up portrait, bleeding off the right edge */
  .hero__cut {
    position: absolute;
    z-index: 1;
    right: -10vw;
    bottom: 0;
    width: min(70vw, 86vh, 1150px);
  }
  .hero .container {
    max-width: none;
    padding-left: clamp(24px, 9vw, 180px);
    padding-bottom: clamp(64px, 16vh, 180px);
  }
  .hero__text { max-width: min(62%, 860px); gap: clamp(18px, 3.4vh, 48px); }
  .hero .h-hero { font-size: clamp(34px, min(4.4vw, 7.6vh), 72px); }
  .hero__sub { max-width: 34ch; font-size: clamp(17px, min(1.4vw, 2.6vh), 22px); }
  .hero__cue {
    position: absolute;
    left: clamp(24px, 9vw, 180px);
    bottom: clamp(16px, 3vh, 32px);
    margin: 0;
  }
  .hero__cue-line { height: clamp(28px, 5vh, 56px); }
}

/* Phones and narrow windows: photo sits under the copy */
@media (max-width: 900px) {
  .hero { justify-content: flex-start; }
  .hero .container { order: 1; }
  .hero__cut { order: 2; margin: 32px auto 0; max-width: 360px; width: 100%; }
}


.hero .h-hero .hero__pink { color: var(--pink); font-style: normal; font-weight: inherit; }

/* Bold inside headings must be heavier than the heading itself (700) */
h1 strong, h2 strong, h3 strong, .site-footer__talk strong { font-weight: 800; }

/* --------------------------------------------------------------------------
   Work panel: bigger project previews that run to the right edge of the
   window, with the work done on each project as tags.
   -------------------------------------------------------------------------- */
@media (min-width: 901px) {
  .work-grid { grid-template-columns: auto minmax(0, 1fr); }
  .rail-wrap { margin-right: calc(-1 * (max(0px, (100vw - var(--max)) / 2) + var(--gutter))); }
  .rail { padding-right: var(--gutter); }
  .rail__card { flex: 0 0 clamp(440px, 42vw, 720px); width: clamp(440px, 42vw, 720px); }
}
/* What was done on each project: plain text, not button-like chips */
.rail__tags { display: flex; flex-wrap: wrap; gap: 4px 0; margin-top: 2px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.rail__tag { white-space: nowrap; }
.rail__tag + .rail__tag::before { content: "|"; margin: 0 10px; color: rgba(0, 0, 0, .25); }

/* Ticker: electric crackle while digits flick, a neon flicker as each one
   lands, and an occasional buzz on a landed digit while the board is on screen. */
.flap__tile.is-crackle { animation: flap-crackle 120ms steps(2, end) infinite; }
@keyframes flap-crackle {
  0%   { filter: brightness(1.6); box-shadow: inset 0 0 12px rgba(255, 45, 150, .35); }
  50%  { filter: brightness(.7);  box-shadow: none; }
  100% { filter: brightness(1.3); box-shadow: inset 0 0 6px rgba(255, 45, 150, .2); }
}
.flap__tile.is-landed {
  text-shadow: 0 0 10px rgba(255, 45, 150, .55), 0 0 2px rgba(255, 45, 150, .9);
  animation: flap-neon 520ms linear 1;
}
@keyframes flap-neon {
  0%, 18%, 30%, 52%, 100% { opacity: 1; }
  12%, 24%, 44% { opacity: .25; }
}
.flap__tile.is-buzz { animation: flap-buzz 260ms linear 1; }
@keyframes flap-buzz {
  0%, 100% { opacity: 1; transform: none; }
  20% { opacity: .35; transform: translateX(-1px); }
  40% { opacity: 1; }
  60% { opacity: .5; transform: translateX(1px); }
}
@media (prefers-reduced-motion: reduce) {
  .flap__tile.is-crackle, .flap__tile.is-landed, .flap__tile.is-buzz { animation: none; }
}

/* Client quotes never stop, including while the pointer is over them */
.marquee:hover .marquee__track { animation-play-state: running; }
.pink { color: var(--pink); }

/* Work strip: snap gently so dragging doesn't jerk back to a card edge */
.rail { scroll-snap-type: x proximity; }

.rail img { -webkit-user-drag: none; user-select: none; }

/* Folio: the project grid follows the heading closely, no empty band */
.section--after-hero { padding-top: clamp(16px, 2vw, 32px); }

/* About: candid cut-out standing on the bottom edge, running off the right */
.page-hero--about { position: relative; min-height: min(92svh, 900px); display: flex; align-items: center; }
.page-hero--about .hero__grid, .page-hero--about .hero__text { position: relative; z-index: 2; }
.page-hero--about .hero__grid { flex: 1; }
.page-hero--about .hero__text { max-width: min(52%, 620px); }
.about-cut {
  position: absolute; z-index: 1; bottom: 0;
  right: calc(-1 * (max(0px, (100vw - var(--max)) / 2) + var(--gutter)) - 3vw);
  width: min(40vw, 54vh, 560px);
}
.about-cut img { display: block; width: 100%; height: auto; }
@media (max-width: 900px) {
  .page-hero--about { display: block; min-height: 0; padding-bottom: 0; }
  .page-hero--about .hero__text { max-width: none; }
  .about-cut { position: relative; right: auto; width: min(86vw, 420px); margin: 32px 0 0 auto; }
}
