/* ------------------------------------------------------------------
   Tokens: lifted from the 2025 portfolio PDF
------------------------------------------------------------------- */
:root {
  --cream: #fefbe4;
  --lime: #e7e86f;
  --ink: #201f20;
  --red: #d6151d;   /* the PDF's red, darkened a touch so white text passes 4.5:1 */
  --grid: rgb(32 31 32 / 0.26);

  --display: "League Spartan", "Arial Black", system-ui, sans-serif;
  --tag: "League Gothic", "Arial Narrow", Impact, sans-serif;
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Built-in CSS easings are too weak; these have punch. */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --bw: 3px;
  --gutter: clamp(16px, 4vw, 48px);
}

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

html {
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 88px;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, dl, dd, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

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

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

.wrap {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* Paints the strip above the sticky header (phone status bar area). */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 30;
  background: var(--cream);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: fixed;
  top: 8px; left: 8px;
  z-index: 100;
  padding: 0.6em 1em;
  background: var(--ink);
  color: var(--lime);
  border-radius: 999px;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* The grid-paper texture from the PDF's cover slides */
.grid-bg {
  background-color: var(--cream);
  background-image:
    linear-gradient(var(--grid) 1.5px, transparent 1.5px),
    linear-gradient(90deg, var(--grid) 1.5px, transparent 1.5px);
  background-size: 38px 38px;
  background-position: -1px -1px;
}

/* ------------------------------------------------------------------
   Shared components
------------------------------------------------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25em 0.9em;
  border: var(--bw) solid var(--ink);
  border-radius: 999px;
  background: var(--lime);
  font: 800 clamp(0.875rem, 1.4vw, 1.125rem)/1.2 var(--display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.pill--cream { background: var(--cream); }
.pill--lime { background: var(--lime); }
.pill--lg { font-size: clamp(1.5rem, 4.4vw, 3.25rem); padding: 0.1em 0.5em; border-radius: 0.5em; }

.box {
  position: relative;
  padding: 1.6rem 1.4rem 1.25rem;
  border: var(--bw) solid var(--ink);
  border-radius: 28px;
  background: color-mix(in srgb, var(--cream) 60%, #fff);
}
.box p + p { margin-top: 0.8em; }
.box strong { font-weight: 700; }

/* Skill chips under the introduction */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chips li {
  padding: 0.28em 0.8em 0.34em;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  background: var(--lime);
  font: 800 0.75rem/1.2 var(--display);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.tab {
  position: absolute;
  top: -1.05rem;
  left: 1.25rem;
  padding: 0.3em 1.1em;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: italic 800 0.9375rem/1.2 var(--display);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.7em 1.35em;
  border: var(--bw) solid var(--ink);
  border-radius: 999px;
  font: 800 0.9375rem/1.1 var(--display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    transform 160ms var(--ease-out),
    background-color 160ms ease,
    color 160ms ease;
}
.btn:active { transform: scale(0.97); }
.btn--ink { background: var(--ink); color: var(--lime); }
.btn--cream { background: var(--cream); }
.btn--red { background: var(--red); color: #fff; }
.btn.is-pending { opacity: 0.55; cursor: default; }
.btn.is-pending:active { transform: none; }

.arrow { display: inline-block; transition: transform 200ms var(--ease-out); }

/* Touch devices fire :hover on tap; gate it. */
@media (hover: hover) and (pointer: fine) {
  .btn--ink:hover { background: var(--lime); color: var(--ink); }
  .btn--cream:hover { background: var(--ink); color: var(--cream); }
  .btn--red:hover { background: var(--ink); }
  .btn:hover .arrow { transform: translate(2px, -2px); }
  .btn--ink:hover .arrow { transform: translateY(2px); }
}

/* ------------------------------------------------------------------
   Header
------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--ink);
}
.bar { display: flex; align-items: center; justify-content: space-between; height: 64px; }

.logo { display: inline-flex; align-items: center; gap: 0.6em; font: 800 1.125rem/1 var(--display); text-transform: uppercase; }
.logo-mark {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  background: var(--lime);
  font-size: 0.875rem;
}
.logo-text { letter-spacing: 0.01em; }

.nav { display: flex; gap: 6px; }
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1em;
  border: 2.5px solid transparent;
  border-radius: 999px;
  font: 700 0.875rem/1 var(--display);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms var(--ease-out);
}
.nav a:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) {
  .nav a:hover { background: var(--lime); border-color: var(--ink); }
}

/* ------------------------------------------------------------------
   Hero
------------------------------------------------------------------- */
.hero {
  background: var(--lime);
  padding-block: clamp(16px, 2vw, 24px);
  padding-left: max(clamp(16px, 2vw, 24px), env(safe-area-inset-left, 0px));
  padding-right: max(clamp(16px, 2vw, 24px), env(safe-area-inset-right, 0px));
  border-bottom: 2px solid var(--ink);
}
.hero-frame {
  max-width: 1320px;
  margin-inline: auto;
  padding: clamp(20px, 4vw, 56px);
  border: var(--bw) solid var(--ink);
  border-radius: clamp(20px, 3vw, 32px);
}

.pills { display: flex; flex-wrap: wrap; gap: 8px; }

/* Landing cover: the name, big, with a collage of the work */
.cover-frame {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  overflow: hidden;
}
.cover-copy { display: grid; justify-items: start; gap: clamp(14px, 2vw, 22px); }
.cover-title {
  margin: clamp(4px, 1vw, 12px) 0 0;
  font: 900 clamp(4.5rem, 17vw, 12.5rem)/0.82 var(--display);
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.cover-title .line { padding-bottom: 0.08em; margin-bottom: -0.08em; }
.cover-role { margin: 0; }
.stamp {
  display: inline-block;
  padding: 0.18em 0.6em 0.22em;
  border: var(--bw) solid var(--ink);
  border-radius: 14px;
  background: var(--lime);
  box-shadow: 5px 5px 0 var(--ink);
  font: 900 clamp(1.4rem, 3.6vw, 2.75rem)/1 var(--display);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  rotate: -2deg;
}
.cover-sub { max-width: 30rem; font-size: clamp(1.0625rem, 1.6vw, 1.3125rem); line-height: 1.45; text-wrap: balance; }

.cover-collage { position: relative; width: 100%; max-width: 520px; aspect-ratio: 1 / 1.12; justify-self: center; }
.cc {
  position: absolute;
  display: block;
  overflow: hidden;
  border: var(--bw) solid var(--ink);
  border-radius: 16px;
  background: var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  rotate: var(--r, 0deg);
  opacity: 0;
  translate: 0 26px;
  animation: cc-in 700ms var(--ease-out) forwards;
  animation-delay: calc(var(--i, 0) * 90ms + 350ms);
}
.cc img { display: block; width: 100%; height: 100%; object-fit: cover; }
@keyframes cc-in { to { opacity: 1; translate: 0 0; } }
.cc-a { left: 0; top: 5%; width: 47%; aspect-ratio: 4 / 5; z-index: 2; }
.cc-b { right: 0; top: 0; width: 44%; aspect-ratio: 4 / 5; z-index: 1; }
.cc-c { left: 6%; bottom: 3%; width: 68%; aspect-ratio: 16 / 9; z-index: 3; }
.cc-d { right: 1%; bottom: 0; width: 27%; aspect-ratio: 9 / 16; z-index: 4; }
.cc-seal {
  position: absolute;
  left: 0;
  bottom: 34%;
  z-index: 5;
  width: clamp(84px, 22%, 118px);
  height: auto;
  animation: seal-spin 22s linear infinite;
}
@keyframes seal-spin { to { rotate: 360deg; } }

/* About: the old hero, now below the landing */
.about { background: var(--cream); padding-top: clamp(40px, 6vw, 96px); }
.display--sm { font-size: clamp(2.2rem, 6.4vw, 5.75rem); }

.event-ig { margin-top: 14px; }

.display {
  margin-block: clamp(16px, 2.4vw, 28px) clamp(24px, 4vw, 48px);
  font: 900 clamp(3.4rem, 14.5vw, 12rem)/0.86 var(--display);
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

/* Each line sits in a mask and rises into view. */
.line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.line > span {
  display: inline-block;
  transform: translateY(110%);
  animation: rise 900ms var(--ease-out) forwards;
  animation-delay: calc(var(--i) * 80ms + 80ms);
}
@keyframes rise { to { transform: none; } }

[data-enter] {
  opacity: 0;
  transform: translateY(12px);
  animation: enter 640ms var(--ease-out) forwards;
  animation-delay: calc(var(--i, 0) * 70ms + 120ms);
}
@keyframes enter { to { opacity: 1; transform: none; } }

.hero-body {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.hero-copy { display: grid; gap: 28px; padding-top: 1rem; }
.hero-copy .box { font-size: clamp(1rem, 1.35vw, 1.1875rem); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }

.portrait {
  overflow: hidden;
  border: var(--bw) solid var(--ink);
  border-radius: clamp(28px, 5vw, 56px);
  background: var(--lime);
}
.portrait img { width: 100%; height: auto; aspect-ratio: 832 / 1028; object-fit: cover; }

/* ------------------------------------------------------------------
   Marquee: constant motion, so linear
------------------------------------------------------------------- */
.marquee {
  overflow: hidden;
  padding-block: 14px;
  background: var(--ink);
  color: var(--lime);
  border-bottom: 2px solid var(--ink);
}
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee ul { display: flex; gap: 32px; padding-right: 32px; }
.marquee li {
  display: flex;
  align-items: center;
  gap: 32px;
  font: 800 clamp(1.125rem, 2.2vw, 1.625rem)/1 var(--display);
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee li::after { content: "✺"; font-size: 0.8em; color: var(--cream); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------------
   Sections
------------------------------------------------------------------- */
.section { padding-block: clamp(64px, 9vw, 128px) 0; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: clamp(24px, 4vw, 48px);
}
.h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15em 0.3em;
  font: 900 clamp(2.75rem, 8vw, 6.5rem)/0.95 var(--display);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.count { color: color-mix(in srgb, var(--ink) 70%, var(--cream)); font-size: 0.9375rem; }

/* Scroll reveal: content is always visible; it only settles into place as it scrolls in. */
.js [data-reveal] {
  transform: translateY(16px);
  transition: transform 700ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js [data-reveal].is-in { transform: none; }

/* ------------------------------------------------------------------
   Video portfolio
------------------------------------------------------------------- */
.vcard {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  transition: transform 160ms var(--ease-out);
}
.vcard:active { transform: scale(0.985); }

.vthumb {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: var(--bw) solid var(--ink);
  border-radius: 20px;
  background: var(--ink);
}
.vgrid--short .vthumb { aspect-ratio: 9 / 16; border-radius: 16px; }
.vthumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }

.play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: clamp(48px, 6vw, 68px);
  aspect-ratio: 1;
  padding-left: 3px;      /* optically centre the triangle */
  border: var(--bw) solid var(--ink);
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform 200ms var(--ease-out), background-color 160ms ease;
}
.vfeature .play { width: clamp(60px, 8vw, 92px); }
.vfeature .play svg { width: 34px; height: 34px; }

.vbadge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: none;
  padding: 0.25em 0.8em;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  background: var(--cream);
  font: 800 0.75rem/1.2 var(--display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
/* Typographic poster for a video that opens on YouTube instead of playing in the page */
.vposter {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: end;
  gap: 6px;
  padding: clamp(12px, 3vw, 20px);
  background: var(--ink);
  color: var(--lime);
}
.vposter-kicker { font: 800 0.6875rem/1.2 var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--cream); }
.vposter-title { font: 900 clamp(1.125rem, 2.2vw, 1.5rem)/1 var(--display); letter-spacing: -0.015em; text-transform: uppercase; }
.vthumb--text .play { top: 38%; }
.vbadge--link { display: block; left: auto; bottom: auto; top: 10px; right: 10px; }

.vcard.is-pending { cursor: default; }
.vcard.is-pending:active { transform: none; }
.vcard.is-pending .vbadge { display: block; }
.vcard.is-pending .play { opacity: 0.55; }

@media (hover: hover) and (pointer: fine) {
  .vcard:not(.is-pending):hover .vthumb img { transform: scale(1.04); }
  .vcard:not(.is-pending):hover .play { transform: translate(-50%, -50%) scale(1.1); background: var(--cream); }
}

.vinfo { display: grid; gap: 2px; margin-top: 12px; }
.vtitle { font: 800 1.0625rem/1.2 var(--display); letter-spacing: -0.005em; text-wrap: balance; }
.vmeta { font-size: 0.875rem; color: color-mix(in srgb, var(--ink) 72%, var(--cream)); }

.vfeature {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(20px, 3vw, 44px);
  align-items: center;
  margin-bottom: clamp(32px, 4vw, 56px);
  padding: clamp(14px, 2.5vw, 32px);
  border: var(--bw) solid var(--ink);
  border-radius: clamp(24px, 3vw, 36px);
  background: var(--lime);
}
.vfeature-copy { display: grid; justify-items: start; gap: 14px; }
.vfeature-title { font: 900 clamp(1.75rem, 3.4vw, 3rem)/0.98 var(--display); letter-spacing: -0.02em; text-transform: uppercase; }
.vfeature .vmeta { color: var(--ink); }

.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 32px 20px; }
.vgrid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vgrid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.vmore { margin-top: clamp(24px, 3vw, 40px); }

/* ------------------------------------------------------------------
   Events 2026: one panel per event, tinted with the event's own colour (--ev)
------------------------------------------------------------------- */
.event {
  --ev: var(--lime);
  --ev-fg: var(--ink);
  margin-bottom: clamp(24px, 3vw, 40px);
  padding: clamp(18px, 3.2vw, 44px);
  border: var(--bw) solid var(--ink);
  border-radius: clamp(24px, 3vw, 36px);
  background: color-mix(in srgb, var(--ev) 13%, var(--cream));
}
.event-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; }
.event-kicker {
  display: inline-block;
  padding: 0.2em 0.9em;
  border: var(--bw) solid var(--ink);
  border-radius: 999px;
  background: var(--ev);
  color: var(--ev-fg);
  font: 800 0.875rem/1.3 var(--display);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.event-title { margin-top: 12px; font: 900 clamp(1.75rem, 4.6vw, 3.75rem)/0.98 var(--display); letter-spacing: -0.02em; text-transform: uppercase; text-wrap: balance; }
.event-facts { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.event-facts dt { font: 700 0.6875rem/1 var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: color-mix(in srgb, var(--ink) 65%, var(--cream)); }
.event-facts dd { margin-top: 4px; font-weight: 600; font-size: 0.9375rem; }
.event-desc { max-width: 50rem; margin-block: 18px 24px; font-style: italic; font-weight: 500; text-wrap: pretty; }

/* Swipeable rail of posts: each keeps its true aspect ratio at a fixed height. */
.rail-wrap { position: relative; }
.rail {
  display: flex;
  gap: 14px;
  padding: 4px 4px 16px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--ink) transparent;
}
.rail li {
  flex: 0 0 auto;
  height: clamp(300px, 34vw, 440px);
  aspect-ratio: var(--ar);
  scroll-snap-align: start;
}
.rail .shot { height: 100%; }
.rail .shot img { height: 100%; aspect-ratio: auto; }

.rail-btn {
  position: absolute;
  top: calc(50% - 30px);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  padding: 0;
  border: var(--bw) solid var(--ink);
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  cursor: pointer;
  transition: transform 160ms var(--ease-out), opacity 160ms ease, background-color 160ms ease;
}
.rail-prev { left: -14px; }
.rail-next { right: -14px; }
.rail-btn:active { transform: scale(0.92); }
.rail-btn[disabled] { opacity: 0; pointer-events: none; }
@media (hover: none), (pointer: coarse) { .rail-btn { display: none; } }
@media (hover: hover) and (pointer: fine) { .rail-btn:hover { background: var(--cream); } }

.event .vtag { margin-block: clamp(20px, 3vw, 32px) 16px; }
.event .vgrid--short { grid-template-columns: repeat(auto-fill, minmax(150px, 210px)); }
.vtag { margin-block: clamp(36px, 5vw, 64px) 18px; }
.vgrid--short { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 24px 16px; }
.vgrid--short .vtitle { font-size: 0.9375rem; }
.vgrid--six { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px 14px; }
.vgrid--six .vbadge--link { font-size: 0.6875rem; top: 8px; right: 8px; }

/* Outbound arrow nudges up and right, whatever button it sits in */
@media (hover: hover) and (pointer: fine) {
  .btn:hover .arrow--out { transform: translate(2px, -2px); }
}

/* ------------------------------------------------------------------
   Chapters (one per team)
------------------------------------------------------------------- */
.chapter {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(28px, 4vw, 56px);
  margin-bottom: clamp(24px, 3vw, 40px);
  padding: clamp(20px, 3.5vw, 48px);
  border: var(--bw) solid var(--ink);
  border-radius: clamp(24px, 3vw, 36px);
}
.chapter--cream { background: var(--cream); }
.chapter--lime { background: var(--lime); }

.chapter-side { display: grid; align-content: start; gap: 14px; }
@media (min-width: 961px) {
  .chapter-side { position: sticky; top: 88px; align-self: start; }
}

.title-pill {
  justify-self: start;
  max-width: 100%;
  padding: 0.12em 0.5em;
  border: var(--bw) solid var(--ink);
  border-radius: 22px;
  font: 900 clamp(2rem, 4.2vw, 3.5rem)/1 var(--display);
  letter-spacing: -0.015em;
  text-transform: uppercase;
}
.title-pill--lime { background: var(--lime); }
.title-pill--cream { background: var(--cream); }

.role { font: 800 1.0625rem/1.2 var(--display); text-transform: uppercase; letter-spacing: 0.01em; }
.dates { font: italic 700 0.9375rem/1 var(--display); text-transform: uppercase; }
.chapter-side .box { margin-top: 12px; font-size: 1rem; }

.brand { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.brand--pair { gap: 28px; flex-wrap: wrap; }
.brand-item { display: grid; justify-items: center; gap: 8px; }
.brand-logo { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; }
.brand-logo--plain { border-radius: 0; object-fit: contain; }
.brand-name { font: 900 1.25rem/1 var(--display); text-transform: uppercase; letter-spacing: -0.01em; }
.brand-item .brand-name { font-size: 0.9375rem; }

.links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

.group { margin-bottom: clamp(36px, 5vw, 64px); }
.group:last-child { margin-bottom: 0; }

.tag {
  display: inline-block;
  padding: 0.05em 0.8em 0.12em;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font: 400 clamp(1.375rem, 2.2vw, 1.75rem)/1.1 var(--tag);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.group-desc {
  max-width: 46rem;
  margin-block: 14px 18px;
  font-style: italic;
  font-weight: 500;
  text-wrap: pretty;
}

/* ------------------------------------------------------------------
   Image galleries: justified rows. Each item grows in proportion to its aspect ratio,
   so every row ends up the same height.
------------------------------------------------------------------- */
.shots {
  --k: 1;
  --h: calc(var(--base) * var(--k));
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.shots::after { content: ""; flex-grow: 1000000; }   /* keeps a short last row from stretching */
.shots--square   { --base: 150px; }
.shots--portrait { --base: 170px; }
.shots--wide     { --base: 120px; }
.shots--short    { --base: 300px; }
.shots--photo    { --base: 160px; }
.shots--mixed    { --base: 120px; }

.shots li {
  flex: var(--ar) 1 calc(var(--ar) * var(--h));
  min-width: 0;
}

.shot {
  display: block;
  width: 100%;
  padding: 0;
  border: 2.5px solid var(--ink);
  border-radius: 16px;
  background: var(--ink);
  overflow: hidden;
  cursor: zoom-in;
  transition: transform 160ms var(--ease-out);
}
.shot:active { transform: scale(0.97); }
.shot img {
  width: 100%;
  height: auto;
  aspect-ratio: var(--ar);
  object-fit: cover;
  transition: transform 500ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .shot:hover img { transform: scale(1.05); }
}

/* Stagger each tile in as its gallery scrolls into view */
.js .shots li {
  transform: translateY(14px) scale(0.98);
  transition: transform 500ms var(--ease-out);
  transition-delay: calc(min(var(--n, 0), 9) * 45ms);
}
.js .shots.is-in li { transform: none; }

/* ------------------------------------------------------------------
   Experience
------------------------------------------------------------------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.step {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 20px 20px;
  border: var(--bw) solid var(--ink);
  border-radius: 24px;
  background: #fff;
}
.step:nth-child(odd) { background: var(--lime); }
.step-date { font: italic 700 0.875rem/1 var(--display); letter-spacing: 0.02em; }
.step-title { margin-top: 6px; font: 900 1.375rem/1.1 var(--display); text-transform: uppercase; letter-spacing: -0.01em; }
.step-org { margin-top: auto; padding-top: 14px; font-size: 0.9375rem; }

/* ------------------------------------------------------------------
   Contact (the PDF's closing slide)
------------------------------------------------------------------- */
.section--contact { padding-block: clamp(64px, 9vw, 128px); background: var(--lime); margin-top: clamp(64px, 9vw, 128px); border-block: 2px solid var(--ink); }
.contact-frame {
  display: grid;
  justify-items: center;
  gap: 16px;
  max-width: 1320px;
  margin-inline: auto;
  padding: clamp(32px, 6vw, 88px) var(--gutter);
  border: var(--bw) solid var(--ink);
  border-radius: clamp(20px, 3vw, 32px);
  text-align: center;
}
.section--contact {
  padding-left: max(clamp(16px, 2vw, 24px), env(safe-area-inset-left, 0px));
  padding-right: max(clamp(16px, 2vw, 24px), env(safe-area-inset-right, 0px));
}

.thanks {
  display: grid;
  font: 900 clamp(2.5rem, 10vw, 8.5rem)/0.92 var(--display);
  letter-spacing: -0.025em;
  text-transform: uppercase;
}
.thanks span:last-child { font-size: 0.72em; }
.see-you { margin-top: 4px; }

.mail {
  position: relative;
  margin-top: clamp(20px, 3vw, 40px);
  font: 800 clamp(1.375rem, 4.4vw, 3.25rem)/1.1 var(--display);
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
.mail::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -0.06em;
  height: 0.09em;
  background: var(--ink);
  transform: scaleX(0.0);
  transform-origin: left;
  transition: transform 400ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .mail:hover::after { transform: scaleX(1); }
}

.contact-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.copy {
  display: inline-grid;
  place-items: center;
  padding: 0.7em 1.35em;
  border: var(--bw) solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--lime);
  font: 800 0.9375rem/1.1 var(--display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 160ms ease, color 160ms ease;
}
.copy:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .copy:hover { background: var(--cream); color: var(--ink); }
}

/* Two labels share one grid cell; blur bridges the swap so it reads as one morph. */
.copy-face { grid-area: 1 / 1; transition: opacity 200ms ease, filter 200ms ease, transform 200ms ease; }
.copy-face--done { opacity: 0; filter: blur(3px); transform: scale(0.9); }
.copy[data-state="done"] .copy-face--idle { opacity: 0; filter: blur(3px); transform: scale(0.9); }
.copy[data-state="done"] .copy-face--done { opacity: 1; filter: none; transform: none; }

/* ------------------------------------------------------------------
   Footer
------------------------------------------------------------------- */
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 24px 36px;
  font: 700 0.875rem/1.2 var(--display);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
@media (hover: hover) and (pointer: fine) {
  .site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
}

/* ------------------------------------------------------------------
   Image viewer. Base state = exit (fast); [open] = enter (slower).
   Arrow-key and button navigation swap the image instantly, with no animation.
------------------------------------------------------------------- */
html:has(dialog[open]) { overflow: hidden; }

.lightbox {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgb(32 31 32 / 0.9);
  color: var(--cream);
  opacity: 0;
  transition: opacity 150ms ease-out, overlay 150ms allow-discrete, display 150ms allow-discrete;
}
.lightbox[open] { opacity: 1; transition-duration: 220ms; }
@starting-style {
  .lightbox[open] { opacity: 0; }
}
.lightbox::backdrop { background: transparent; }

.lb-inner {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(64px, 9vw, 96px) clamp(16px, 7vw, 112px);
}
.lb-img,
.vp-stage {
  max-width: 100%;
  max-height: 100%;
  border: var(--bw) solid var(--cream);
  border-radius: 20px;
  background: var(--ink);
  transform: scale(0.96);
  transition: transform 150ms ease-out;
}
.lightbox[open] .lb-img,
.lightbox[open] .vp-stage { transform: none; transition-duration: 320ms; transition-timing-function: var(--ease-out); }
@starting-style {
  .lightbox[open] .lb-img,
  .lightbox[open] .vp-stage { transform: scale(0.96); }
}

/* Video stage: sized by aspect ratio so 16:9 and 9:16 both fit the screen */
.vp-stage {
  --vr: 1.7778;
  width: min(100%, calc((100dvh - 190px) * var(--vr)));
  aspect-ratio: var(--vr);
  max-height: none;
  overflow: hidden;
  background: #000;
}
.vp-stage iframe,
.vp-stage video { display: block; width: 100%; height: 100%; border: 0; background: #000; }

.lb-btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  padding: 0;
  border: var(--bw) solid var(--ink);
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 160ms ease;
}
.lb-btn:active { transform: scale(0.92); }
.lb-btn:focus-visible { outline-color: var(--lime); }
.lb-close { top: calc(16px + env(safe-area-inset-top, 0px)); right: calc(16px + env(safe-area-inset-right, 0px)); }
.lb-prev, .lb-next { top: 50%; margin-top: -23px; }
.lb-prev { left: calc(16px + env(safe-area-inset-left, 0px)); }
.lb-next { right: calc(16px + env(safe-area-inset-right, 0px)); }
.lb-btn:active.lb-prev, .lb-btn:active.lb-next { transform: scale(0.92); }
@media (hover: hover) and (pointer: fine) {
  .lb-btn:hover { background: var(--cream); }
}
.lb-cap {
  position: absolute;
  left: 16px; right: 16px; bottom: 20px;
  text-align: center;
  font: 700 0.9375rem/1.3 var(--display);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.lb-count { color: var(--lime); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------
   Responsive
------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .vgrid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vgrid--six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .cover-frame { grid-template-columns: 1fr; }
  .cover-collage { max-width: 440px; }
  .vgrid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vfeature { grid-template-columns: 1fr; }
  .chapter { grid-template-columns: 1fr; }
  .hero-body { grid-template-columns: 1fr; }
  .portrait { max-width: 420px; }
}

@media (max-width: 700px) {
  .shots { --k: 0.6; gap: 8px; }
  .shot { border-width: 2px; border-radius: 12px; }
  .logo-text { display: none; }
  .nav { gap: 0; }
  .nav a { padding: 0 0.6em; font-size: 0.75rem; }
  .vgrid, .vgrid--three, .vgrid--four { grid-template-columns: 1fr; }
  .vgrid--short, .vgrid--six, .event .vgrid--short { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rail li { height: 300px; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; margin-top: 0; }
  .lb-prev { left: calc(50% - 56px); }
  .lb-next { right: calc(50% - 56px); }
  .lb-cap { bottom: 74px; }
  .lb-inner { padding-bottom: 120px; }
}

/* Five nav links don't fit a phone; "Experience" is still reachable by scrolling. */
@media (max-width: 480px) {
  .nav li:nth-child(4) { display: none; }
}

/* ------------------------------------------------------------------
   Reduced motion: fewer, gentler animations. Keep fades, drop movement.
------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .line > span { transform: none; animation: fade 300ms ease both; animation-delay: 0ms; }
  [data-enter] { transform: none; animation: fade 300ms ease forwards; animation-delay: 0ms; }
  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }

  .js [data-reveal] { transform: none; transition: none; }
  .js .shots li { transform: none; transition: none; }

  /* Static, wrapped list instead of a scrolling strip */
  .cc { translate: 0 0; animation: fade 300ms ease forwards; animation-delay: 0ms; }
  .cc-seal { animation: none; }

  .marquee-track { width: 100%; animation: none; }
  .marquee ul { flex-wrap: wrap; justify-content: center; gap: 10px 32px; padding-right: 0; width: 100%; }
  .marquee ul:nth-child(2) { display: none; }

  .shot:hover img,
  .vcard:hover .vthumb img { transform: none; }
  .lightbox[open] .lb-img,
  .lightbox[open] .vp-stage { transform: none; }
}
