/* ═══════════════════════════════════════════════════════
   BeBored — bebored.css
   Everything below the hero, plus all inner pages.

   Type:   Inter Tight = headings, numbers, wordmark
           Syne       = text, labels, buttons, nav
   Layout: one 1500px frame on a dark base; depth comes from
           tonal cards, soft green glows and grain, not from
           borders.
   ═══════════════════════════════════════════════════════ */
:root {
  --ink:      #0E0E0D;              /* warm near-black text */
  --paper:    #EDECE7;              /* bone: the page */
  --bone:     #EDECE7;
  --night:    #0B0B0B;              /* dark panel + footer */
  --night-2:  #070707;
  --card:     #111111;              /* dark cards on bone */
  --card-2:   #0D0D0D;
  --edge:     rgba(255,255,255,.08);
  --green:    #196246;
  --green-hi: #2F8F62;
  --mint:     #ABD3AD;
  --hair:     rgba(14,14,13,.09);   /* list separators only */
  --hair-dk:  rgba(255,255,255,.08);
  --muted:    rgba(14,14,13,.56);
  --muted-dk: rgba(255,255,255,.62);
  --f-head:   'Inter Tight', 'Inter', system-ui, sans-serif;
  --f-text:   'Syne', system-ui, sans-serif;
  --wrap:     1500px;
  --gutter:   clamp(1.25rem, 3.5vw, 3rem);
  --nav-h:    88px;
  --r-card:   22px;      /* image cards, frames */
  --pad:      10px;      /* gap between a card edge and the photo inside */
  --r-inner:  calc(var(--r-card) - var(--pad));  /* concentric with the card */
  --r-stack:  28px;      /* service cards */
  --r-stack-in: 14px;    /* = r-stack - 14px visual margin */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ─── Base ─── */
html, body { background: var(--paper); color-scheme: light; }
.site {
  font-family: var(--f-text);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
/* Paper grain over everything: gives the bone background its texture */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  opacity: .07;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%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: 220px 220px;
}
.site img { display: block; }
.site a:focus-visible,
.site button:focus-visible,
.site-footer a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.wrap {
  width: min(var(--wrap), 100% - 2 * var(--gutter));
  margin-inline: auto;
}
.narrow {
  width: min(1080px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

/* Headings share one voice */
.sec-title, .page-title, .h-lead, .proj-card__title, .proj-card__num, .stack-card__title,
.stack-card__num, .team-card__name, .about__quote, .svc-hero__title, .part__title,
.next-link__title, .case-meta dd, .entry-content h2, .entry-content h3, .statement__text, .wordmark {
  font-family: var(--f-head);
}

/* Section head: title left, note or action right */
.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: clamp(2rem, 3.5vw, 3rem);
}
.sec-title {
  font-weight: 500;
  font-size: clamp(1.5rem, 1.9vw, 1.875rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}
.sec-note { font-size: .9375rem; color: var(--muted); margin: 0; }

/* Page title (inner pages) */
.page-title {
  font-weight: 500;
  font-size: clamp(2.75rem, 5.5vw, 5.25rem);
  letter-spacing: -0.04em;
  line-height: .98;
  margin: 0;
  text-wrap: balance;
}
.page-intro {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: 44ch;
  margin: 0;
}

/* Pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.5rem;
  border-radius: 999px;
  border: 1px solid rgba(14,14,13,.26);
  font-family: var(--f-text);
  font-size: .875rem;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  text-decoration: none;
  white-space: nowrap;
  will-change: transform;
  transition: background .3s, color .3s, border-color .3s;
}
.pill:hover { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.pill--fill { background: var(--ink); border-color: var(--ink); color: var(--bone); }
.pill--fill:hover { background: transparent; color: var(--ink); }
.pill--light { color: #fff; border-color: rgba(255,255,255,.3); }
.pill--light:hover { background: #fff; border-color: #fff; color: #000; }
.pill--green { background: var(--green); border-color: var(--green); color: #fff; }
.pill--green:hover { background: #0f4a33; border-color: #0f4a33; color: #fff; }
.pill svg { width: 14px; height: 14px; transition: transform .4s var(--ease-out); }
.pill .arr { display: inline-block; transition: transform .4s var(--ease-out); }
.pill:hover .arr { transform: translateX(4px); }
.pill:hover svg { transform: translate(2px, -2px); }

.text-link {
  display: inline-block;
  color: inherit;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: opacity .25s;
}
.text-link:hover { opacity: .5; }

/* Bracket kicker: [ LABEL ] above headings */
.kicker {
  display: inline-block;
  font-family: var(--f-text);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}
.kicker::before { content: '[ '; color: var(--green); }
.kicker::after  { content: ' ]'; color: var(--green); }
.kicker--light { color: rgba(255,255,255,.7); }
.kicker--light::before, .kicker--light::after { color: var(--mint); }
.sec-head__main, .page-head__main { display: grid; gap: .6rem; justify-items: start; }
.statement .kicker { display: block; margin-bottom: 1.5rem; position: relative; }
.svc-hero .kicker, .contact .kicker { display: block; margin-bottom: 1.25rem; }
.case-intro__head .kicker { margin-bottom: -.5rem; }
.book__head .kicker { display: block; margin-bottom: .75rem; }

/* Reveal masks (motion.js) */
.ln { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.ln > span { display: block; will-change: transform; }
.wd { display: inline-block; will-change: filter, opacity; }

/* ═══ Spotlight + edge glow (reactbits SpotlightCard / MagicBento) ═══ */
.spot { position: relative; }
.spot::before,
.spot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity .5s;
}
.spot::before {
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.07), transparent 60%);
  z-index: 2;
}
.spot::after {
  padding: 1px;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(171,211,173,.85), rgba(255,255,255,.14) 45%, transparent 75%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  z-index: 3;
}
.spot:hover::before,
.spot:hover::after { opacity: 1; }

/* ═══ 1 · Client logo band (sits on the hero's bottom edge) ═══ */
.logos {
  position: relative;
  z-index: 3;
  height: 120px;
  margin-top: -120px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(to bottom, rgba(10,10,10,0), rgba(10,10,10,.85) 40%, #0a0a0a);
  /* edge fade in px: at 8% a phone got a 31px fade, so a logo leaving the band looked cut off */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 clamp(72px, 8%, 120px), #000 calc(100% - clamp(72px, 8%, 120px)), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 clamp(72px, 8%, 120px), #000 calc(100% - clamp(72px, 8%, 120px)), transparent);
  /* the band's own bottom edge, so it reads as one dark strip on the bone page */
  box-shadow: 0 1px 0 rgba(14,14,13,.08);
}
.logos__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: logosScroll calc(var(--n, 8) * 5s) linear infinite; /* 5s per logo: the speed does not change when the row is repeated */
}
.logos:hover .logos__track { animation-play-state: paused; }
/* Even spacing: each logo carries the same gap after it (not a fixed box, which left wide and narrow
   logos with different gaps). A per-item margin also keeps both copies of the track the same width,
   so the loop point of the marquee is seamless. */
.logos__item {
  flex: none;
  display: flex;
  align-items: center;
  margin-right: clamp(3rem, 5.5vw, 5.5rem);
}
.logos__item img {
  display: block;
  width: auto;
  max-width: none;
  filter: brightness(0) invert(1);
  opacity: .6;
  transition: opacity .3s, transform .5s var(--ease-out);
}
.logos__item img.on-white { filter: grayscale(1) invert(1) contrast(1.4); mix-blend-mode: screen; }
.logos__item:hover img { opacity: 1; transform: scale(1.06); }
@keyframes logosScroll { to { transform: translateX(-50%); } }
.hero__explore { bottom: calc(120px + 1.75rem); text-decoration: none; }

/* ═══ 2 · Statement ═══ */
.statement {
  position: relative;
  padding: clamp(7rem, 12vw, 11rem) var(--gutter) clamp(5rem, 8vw, 7.5rem);
  text-align: center;
}
/* Fine dot grid behind the statement, fading out towards the edges */
.statement::before {
  content: '';
  position: absolute;
  left: 50%; top: 0;
  width: min(1300px, 100%);
  height: 100%;
  transform: translateX(-50%);
  background-image: radial-gradient(rgba(14,14,13,.22) 1px, transparent 1.4px);
  background-size: 22px 22px;
  background-position: 11px 11px;
  -webkit-mask-image: radial-gradient(ellipse 55% 60% at 50% 48%, #000 15%, transparent 72%);
          mask-image: radial-gradient(ellipse 55% 60% at 50% 48%, #000 15%, transparent 72%);
  pointer-events: none;
}
.statement__text {
  position: relative;
  font-weight: 500;
  font-size: clamp(1.875rem, 2.7vw, 3.1rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  max-width: 40ch;
  margin: 0 auto;
  text-wrap: balance;
}

/* ═══ 3 · Project card (shared by carousel, grid, "more work") ═══ */
.proj-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--edge), 0 30px 60px -28px rgba(14,14,13,.45);
  color: #fff;
  text-decoration: none;
  isolation: isolate;
  will-change: transform;
  clip-path: inset(0 round var(--r-card)); /* keeps the corners clipped while the card tilts */
}
.proj-card--wide { aspect-ratio: 16 / 10; }
.proj-card__img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: var(--focus, 50% 35%);
  transform: scale(1.02);
  transition: transform 1.2s var(--ease-out), filter .7s;
}
.proj-card--wide .proj-card__img { object-position: var(--focus, 50% 18%); }
@media (max-width: 700px) { .proj-card--wide { aspect-ratio: 4 / 5; } }  /* one column on phones: the 16:10 strip left no room above the glass panel */
.proj-card:hover .proj-card__img { transform: scale(1.07); }
.proj-card__num {
  position: absolute;
  right: 1.5rem; bottom: 1.1rem;
  font-weight: 700;
  font-size: clamp(2.25rem, 3.4vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(255,255,255,.22);
  z-index: 3;
  pointer-events: none;
}
.proj-card__glass {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  min-height: 31.5%;
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(10,10,10,.42);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  z-index: 2;
  transition: background .5s;
}
.proj-card--wide .proj-card__glass { min-height: 27%; }
.proj-card:hover .proj-card__glass { background: rgba(10,10,10,.6); }
.proj-card__cat {
  font-size: .625rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: .55rem;
}
.proj-card__title {
  font-weight: 600;
  font-size: clamp(1.125rem, 1.5vw, 1.5rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 1rem;
}
.proj-card__cta {
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
  transition: color .3s, letter-spacing .4s var(--ease-out);
}
.proj-card:hover .proj-card__cta { color: #fff; letter-spacing: .22em; }

/* Carousel (homepage) */
.projects { padding: clamp(5rem, 9vw, 8.5rem) 0 clamp(4rem, 6vw, 5rem); }
.carousel { position: relative; --bleed: min(32px, var(--gutter)); }
.carousel__viewport { position: relative; }
/* The scrolling track clips at its own edges, so it gets room around the cards for their shadows:
   --bleed to each side and 72px below, pulled back with negative margins so nothing else moves.
   The side zones fade out, so neither a shadow nor a cut-off card ends in a hard edge. */
.proj-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--bleed);
  scrollbar-width: none;
  cursor: grab;
  padding: 0 var(--bleed) 72px;
  margin: 0 calc(-1 * var(--bleed)) -72px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--bleed), #000 calc(100% - var(--bleed)), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 var(--bleed), #000 calc(100% - var(--bleed)), transparent);
}
.proj-track::-webkit-scrollbar { display: none; }
.proj-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.proj-track.is-dragging a { pointer-events: none; }
.proj-card-item { flex: 0 0 calc((100% - 48px) / 3.18); scroll-snap-align: start; perspective: 1200px; }
.proj-arrow {
  position: absolute;
  top: 50%;
  width: 44px; height: 44px;
  margin-top: -22px;
  border-radius: 50%;
  border: 1px solid rgba(14,14,13,.12);
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 3;
  transition: background .25s, color .25s, border-color .25s, opacity .25s;
}
.proj-arrow svg { width: 16px; height: 16px; }
.proj-arrow--prev { left: -22px; }
.proj-arrow--next { right: -22px; }
.proj-arrow:hover { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.proj-arrow:disabled { opacity: .3; pointer-events: none; }
.carousel__dots {
  position: relative; z-index: 1; /* above the track's shadow room */
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: 1.75rem;
}
.carousel__dots button {
  width: 8px; height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(14,14,13,.18);
  cursor: pointer;
  transition: width .4s var(--ease-out), background .3s;
}
.carousel__dots button.is-active { width: 28px; background: var(--ink); }

/* Grid (archive + "more work") */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.proj-grid--3 { grid-template-columns: repeat(3, 1fr); }
.proj-grid .proj-card-item { perspective: 1400px; }
.proj-grid .proj-card__img { filter: grayscale(1) contrast(1.05); }
.proj-grid .proj-card:hover .proj-card__img { filter: none; }

/* ═══ 4 · Services: stacking cards ═══ */
.services { padding: clamp(3rem, 5vw, 4rem) 0 clamp(6rem, 10vw, 9rem); }
.stack { position: relative; }
.stack-card {
  position: sticky;
  top: calc(var(--nav-h) + var(--i, 0) * 16px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: min(66vh, 680px);
  margin-bottom: 1.75rem;
  border-radius: var(--r-stack);
  overflow: hidden;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--edge), 0 40px 90px -30px rgba(14,14,13,.5);
  color: #fff;
  transform-origin: center top;
  will-change: transform, filter;
}
.stack-card:nth-child(1) { --i: 0; }
.stack-card:nth-child(2) { --i: 1; background: var(--card-2); }
.stack-card:nth-child(3) { --i: 2; }
.stack-card:nth-child(4) { --i: 3; background: var(--card-2); }
.stack-card:nth-child(5) { --i: 4; }
.stack-card:last-child { margin-bottom: 0; }
.stack-card__body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(2rem, 4.5vw, 4rem) clamp(2rem, 4.5vw, 4rem) clamp(2rem, 4vw, 3.25rem);
}
.stack-card__num {
  font-weight: 700;
  font-size: clamp(3.5rem, 5.5vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(255,255,255,.08);
}
.stack-card__tag { display: block; font-size: .8125rem; color: var(--mint); margin-bottom: .75rem; }
.stack-card__title {
  font-weight: 500;
  font-size: clamp(2rem, 3.1vw, 3.1rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 0 1.1rem;
}
.stack-card__desc {
  font-size: .9375rem;
  line-height: 1.65;
  color: rgba(255,255,255,.58);
  max-width: 32ch;
  margin: 0 0 2rem;
}
.stack-card__visual {
  position: relative;
  margin: 14px;
  border-radius: var(--r-stack-in);
  overflow: hidden;
  background: #1c1c1c;
}
.stack-card__visual img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease-out);
}
.stack-card:hover .stack-card__visual img { transform: scale(1.04); }

/* ═══ 5 · Team: chroma grid (grey until the cursor brings colour back) ═══ */
.team { padding: 0 0 clamp(2.5rem, 4.5vw, 4rem); }
.team__marquee { overflow: hidden; }
.team__grid {
  position: relative;
  display: flex;
  gap: 1.25rem;
  width: max-content;
  padding: 0 .625rem;
  animation: teamScroll calc(var(--n, 6) * 12.5s) linear infinite;
  will-change: transform;
}
.team-card { flex: none; width: clamp(230px, 19vw, 300px); }
@keyframes teamScroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .team__grid { animation: none; } }
.team-card {
  border-radius: var(--r-card);
  background: var(--card);
  border: 1px solid var(--edge);
  padding: var(--pad);
  color: #fff;
  overflow: hidden;
}
.team-card__photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--r-inner);
  overflow: hidden;
  background: #1a1a1a;
}
.team-card__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.team-card:hover .team-card__photo img { transform: scale(1.05); }
.team-card__info { padding: 1.1rem .5rem .55rem; }
.team-card__name {
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 .3rem;
}
.team-card__role { font-size: .8125rem; color: rgba(255,255,255,.55); margin: 0; }
.team-card__links { display: flex; gap: 1rem; margin-top: .9rem; font-size: .75rem; }
.team-card__links a { color: var(--mint); text-decoration: none; }
.team-card__links a:hover { color: #fff; }
/* Grey overlay lives inside each photo, so only the photos desaturate;
   --cx/--cy are set per photo by motion.js, --cr (radius) on the grid. */
.team-card__photo { position: relative; }
.team-card__fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  backdrop-filter: grayscale(1);
  -webkit-backdrop-filter: grayscale(1);
  -webkit-mask-image: radial-gradient(circle var(--cr, 0px) at var(--cx, 50%) var(--cy, 50%), transparent 0%, transparent 25%, rgba(0,0,0,.65) 60%, #000 100%);
          mask-image: radial-gradient(circle var(--cr, 0px) at var(--cx, 50%) var(--cy, 50%), transparent 0%, transparent 25%, rgba(0,0,0,.65) 60%, #000 100%);
  transition: opacity .6s;
}
.team__grid.is-chroma .team-card__fade { opacity: 1; }

/* ═══ 6 · About ═══ */
.about {
  position: relative;
  color: #fff;
  padding: clamp(6rem, 10vw, 9rem) 0 clamp(8.25rem, 12vw, 12rem); /* bottom ≥ the panel's shadow (130px), which overflow: hidden would cut */
  overflow: hidden;
}
.about .wrap { position: relative; }
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.about__label {
  display: inline-block;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  margin-bottom: 1.5rem;
}
.about__label::before { content: '[ '; color: var(--green-hi); }
.about__label::after  { content: ' ]'; color: var(--green-hi); }
.about__quote {
  font-weight: 700;
  font-size: clamp(2.75rem, 5.6vw, 6.25rem);
  line-height: .98;
  letter-spacing: -0.035em;
  margin: 0 0 0 -0.04em;
}
.about__body { padding-top: clamp(0rem, 3vw, 3rem); }
.about__body p {
  font-size: .9375rem;
  line-height: 1.8;
  color: var(--muted-dk);
  margin: 0 0 1.25rem;
  max-width: 50ch;
}
.about__body .pill { margin-top: 1.5rem; }

/* ═══ 7 · Footer ═══ */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--night-2);
  color: rgba(255,255,255,.62);
  font-family: var(--f-text);
  font-size: .875rem;
  border-top: 1px solid var(--hair-dk);
  padding-top: clamp(3.5rem, 6vw, 5rem);
}
.site-footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: clamp(2.5rem, 4vw, 3.5rem);
  border-bottom: 1px solid var(--hair-dk);
}
.site-footer__logo img { height: 26px; width: auto; filter: brightness(0) invert(1); }
.site-footer__tag { line-height: 1.7; margin: 1rem 0 0; }
.site-footer__label {
  font-size: .6875rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin: 0 0 1.4rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.site-footer a { color: inherit; text-decoration: none; transition: color .25s; }
.site-footer a:hover { color: #fff; }
.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.75rem 0;
  font-size: .75rem;
  color: rgba(255,255,255,.4);
}
.site-footer__bottom p { margin: 0; }
.socials { display: flex; gap: .6rem; }
.socials a {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.7);
  transition: border-color .25s, color .25s, background .25s;
}
.socials a:hover { border-color: #fff; color: var(--night-2); background: #fff; }
.socials svg { width: 14px; height: 14px; }
.wordmark {
  font-weight: 800;
  font-size: clamp(5.5rem, 19.5vw, 22rem);
  line-height: .8;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.1);
  margin-bottom: -0.1em;
  user-select: none;
  white-space: nowrap;
}

/* ═══ Nav: aligned with the 1500px frame; on scroll it becomes a glass pill ═══ */
.nav {
  padding-left: max(var(--gutter), calc((100% - var(--wrap)) / 2));
  padding-right: max(var(--gutter), calc((100% - var(--wrap)) / 2));
  border-bottom: 0;
  transition: top .5s var(--ease-out), left .5s var(--ease-out), right .5s var(--ease-out),
              padding .5s var(--ease-out), border-radius .5s var(--ease-out),
              background .4s, box-shadow .4s, color .3s;
}
.nav.scrolled {
  top: 14px;
  left: max(var(--gutter), calc((100% - var(--wrap)) / 2));
  right: max(var(--gutter), calc((100% - var(--wrap)) / 2));
  padding: .7rem 1.6rem .7rem 1.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.62);
  background: rgba(237,236,231,.5);
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  box-shadow: 0 20px 50px -26px rgba(14,14,13,.5), inset 0 1px 0 rgba(255,255,255,.75), inset 0 -1px 0 rgba(14,14,13,.05);
}
.nav.scrolled.nav--dark {
  background: rgba(18,18,18,.48);
  border-color: rgba(255,255,255,.14);
  box-shadow: 0 20px 50px -26px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.12);
  color: #fff;
}
.nav.scrolled.nav--dark .nav__links a { color: rgba(255,255,255,.8); }
.nav.scrolled.nav--dark .nav__links a:hover { color: #fff; }
.nav.scrolled.nav--dark .nav__logo img { filter: brightness(0) invert(1); }
.nav.scrolled.nav--dark .nav__hamburger span { background: #fff; }

/* Inner pages start on bone, so the nav starts dark */
.page-light .nav { color: var(--ink); }
.page-light .nav__links a { color: rgba(14,14,13,.6); }
.page-light .nav__links a:hover { color: var(--ink); }
.page-light .nav__logo img { filter: none; }
.page-light .nav__hamburger span { background: var(--ink); }

/* ═══ Inner pages ═══ */

.page-head {
  padding: clamp(8rem, 14vw, 12rem) 0 clamp(2.5rem, 4vw, 3.5rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: end;
}
.page-head__aside { display: grid; gap: 1.25rem; justify-items: start; }
.page-count { font-size: .8125rem; color: var(--muted); }
.back-link { font-size: .875rem; color: var(--muted); text-decoration: none; }
.back-link:hover { color: var(--ink); }

/* Service page (and generic pages) */
.svc-hero {
  padding: clamp(9rem, 15vw, 12rem) var(--gutter) clamp(3rem, 5vw, 4rem);
  text-align: center;
}
.svc-hero__back { font-size: .875rem; color: var(--muted); text-decoration: none; }
.svc-hero__back:hover { color: var(--ink); }
.svc-hero__title {
  font-weight: 500;
  font-size: clamp(3rem, 6.5vw, 6rem);
  letter-spacing: -0.045em;
  line-height: .98;
  margin: 1.5rem 0 0;
  text-wrap: balance;
}
.svc-hero .t-small { margin-top: 1.75rem; }

.figure { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.figure__frame { overflow: hidden; aspect-ratio: 21 / 9; border-radius: var(--r-card); background: var(--card); }
.figure__frame img { width: 100%; height: 100%; object-fit: cover; }

.lead {
  padding: clamp(5rem, 9vw, 8rem) var(--gutter) clamp(4rem, 6vw, 5rem);
  text-align: center;
}
.rule {
  width: 1px;
  height: 4rem;
  background: currentColor;
  opacity: .3;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  transform-origin: top;
}
.h-lead {
  font-weight: 500;
  font-size: clamp(2rem, 3.2vw, 3.1rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  max-width: 18ch;
  margin: 0 auto;
  text-wrap: balance;
}
.t-small { font-size: .9375rem; color: var(--muted); max-width: 40ch; margin: 1.5rem auto 0; line-height: 1.65; }

.parts { padding: 0 0 clamp(4rem, 7vw, 6rem); }
.part {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--hair);
}
.part__title { font-weight: 500; font-size: clamp(1.375rem, 2vw, 1.75rem); letter-spacing: -0.03em; line-height: 1.1; margin: 0; }
.part__text { font-size: .9375rem; color: var(--muted); margin: 0; max-width: 44ch; }

/* Horizontal image strip (service page) */
.work { padding: clamp(3rem, 5vw, 4rem) 0 clamp(4rem, 7vw, 6rem); overflow: hidden; }
.work__track {
  display: flex;
  align-items: flex-start;
  gap: clamp(1rem, 2vw, 1.5rem);
  padding: 0 var(--gutter);
  width: max-content;
}
.case { flex: none; display: block; color: inherit; text-decoration: none; }
.case__media { overflow: hidden; border-radius: var(--r-card); background: var(--card); }
.case__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.case:hover .case__media img { transform: scale(1.04); }
.case--a { width: clamp(15rem, 24vw, 23rem); }
.case--a .case__media { aspect-ratio: 4 / 5; }
.case--b { width: clamp(12rem, 16vw, 15rem); margin-top: clamp(3rem, 8vh, 6rem); }
.case--b .case__media { aspect-ratio: 3 / 4; }
.case--c { width: clamp(17rem, 30vw, 28rem); margin-top: clamp(1.5rem, 4vh, 3rem); }
.case--c .case__media { aspect-ratio: 3 / 2; }

.contact {
  padding: clamp(5rem, 9vw, 8rem) var(--gutter) clamp(6rem, 10vw, 9rem);
  text-align: center;
}
.contact .h-lead { margin-bottom: 2rem; }

.next-link {
  display: block;
  text-align: center;
  padding: clamp(4rem, 8vw, 7rem) var(--gutter) clamp(5rem, 9vw, 8rem);
  color: inherit;
  text-decoration: none;
  border-top: 1px solid var(--hair);
}
.next-link__label { font-size: .875rem; color: var(--muted); }
.next-link__title {
  display: block;
  font-weight: 500;
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-top: 1rem;
  transition: opacity .3s;
}
.next-link:hover .next-link__title { opacity: .5; }

/* Editor content */
.entry-content { font-size: 1.0625rem; line-height: 1.7; max-width: 60ch; }
.entry-content > * + * { margin-top: 1.25em; }
.entry-content h2, .entry-content h3 { font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; margin-top: 2em; }
.entry-content h2 { font-size: clamp(1.75rem, 2.6vw, 2.25rem); }
.entry-content h3 { font-size: clamp(1.375rem, 2vw, 1.75rem); }
.entry-content a { color: var(--green); }
.entry-content img { max-width: 100%; height: auto; border-radius: var(--r-card); }
.entry-content ul, .entry-content ol { padding-left: 1.25em; }
.narrow.entry-content { padding: clamp(3rem, 6vw, 5rem) 0 clamp(5rem, 9vw, 8rem); }
.entry-list { list-style: none; padding: 0; border-top: 1px solid var(--hair); }
.entry-list li { border-bottom: 1px solid var(--hair); }
.entry-list a { display: block; padding: 1.25rem 0; font-family: var(--f-head); font-size: 1.375rem; font-weight: 500; letter-spacing: -0.03em; color: inherit; text-decoration: none; }
.entry-list a:hover { opacity: .55; }

/* ═══ Projects archive ═══ */
.archive-grid { padding-bottom: clamp(5rem, 9vw, 8rem); }

/* ═══ Case (single project) ═══ */
.case-hero { padding-top: calc(var(--nav-h) + clamp(1rem, 2vw, 1.5rem)); }
.case-hero__frame {
  aspect-ratio: 21 / 9;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--card);
}
.case-hero__frame img { width: 100%; height: 100%; object-fit: cover; }

.case-intro {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); /* title column a little narrower: title and text sit closer */
  gap: clamp(2rem, 4vw, 4rem);
  padding: clamp(8rem, 14vw, 12rem) 0 clamp(3rem, 5vw, 4rem); /* opens the page: same top room as .page-head */
}
.case-intro__head { display: grid; gap: 1.5rem; align-content: start; justify-items: start; }
.case-intro .entry-content { font-size: 1rem; }
.case-meta {
  display: grid;
  margin: 2.5rem 0 0;
  border-top: 1px solid var(--hair);
}
.case-meta > div {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1rem;
  padding: .9rem 0;
  border-bottom: 1px solid var(--hair);
}
.case-meta dt { font-size: .8125rem; color: var(--muted); }
.case-meta dd { margin: 0; font-weight: 500; font-size: 1rem; letter-spacing: -0.01em; }

.case-video { padding-bottom: 24px; }
.case-video__frame {
  aspect-ratio: 16 / 9;
  border-radius: var(--r-card);
  overflow: hidden;
  background: #000;
}
.case-video__frame iframe, .case-video__frame video { width: 100%; height: 100%; display: block; }

.gal { display: grid; gap: 24px; padding-bottom: clamp(4rem, 7vw, 6rem); }
.gal__row { display: grid; gap: 24px; }
.gal__row--3 { grid-template-columns: repeat(3, 1fr); }
.gal__row--2 { grid-template-columns: repeat(2, 1fr); }
.gal__item { border-radius: var(--r-card); overflow: hidden; background: var(--card); }
.gal__row--3 .gal__item { aspect-ratio: 3 / 4; }
.gal__row--2 .gal__item { aspect-ratio: 4 / 3; }
.gal__row--1 .gal__item { aspect-ratio: 16 / 9; }
.gal__item img { width: 100%; height: 100%; object-fit: cover; }

.more { padding-bottom: clamp(5rem, 9vw, 8rem); }

/* ═══ Responsive ═══ */
@media (max-width: 1100px) {
  .proj-grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  :root { --nav-h: 76px; }
  .logos { height: 96px; margin-top: -96px; }
  .hero__explore { bottom: calc(96px + 1.25rem); }
  .proj-card-item { flex-basis: 78%; }
  .proj-arrow { display: none; }
  .proj-grid, .proj-grid--3 { grid-template-columns: 1fr; }
  .stack-card { grid-template-columns: 1fr; min-height: 0; top: calc(var(--nav-h) + var(--i, 0) * 10px); }
  .stack-card__visual { aspect-ratio: 16 / 10; }
  .stack-card__num { margin-bottom: 1.75rem; }
  .about__grid { grid-template-columns: 1fr; }
  .site-footer__top { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
  .page-head { grid-template-columns: 1fr; }
  .case-intro { grid-template-columns: 1fr; }
  .part { grid-template-columns: 1fr; gap: .5rem; }
  .work__track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .work__track::-webkit-scrollbar { display: none; }
  .case { scroll-snap-align: start; }
  .case--a { width: 70vw; }
  .case--b { width: 54vw; }
  .case--c { width: 80vw; }
  .gal__row--3 { grid-template-columns: 1fr 1fr; }
  .gal__row--3 .gal__item:last-child:nth-child(3) { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
  .case-hero__frame, .figure__frame { aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) {
  .team__grid { gap: .75rem; padding: 0 .375rem; animation-duration: calc(var(--n, 6) * 9.2s); } /* side padding = half a gap, so the loop stays seamless */
  .team-card { padding: 8px; width: 62vw; }
  .team-card__photo { border-radius: calc(var(--r-card) - 8px); }
  .team-card__info { padding: .8rem .35rem .4rem; }
  .team-card__name { font-size: .9375rem; }
  .team-card__role { font-size: .75rem; }
  .gal__row--3, .gal__row--2 { grid-template-columns: 1fr; }
  .gal__row--3 .gal__item, .gal__row--2 .gal__item { aspect-ratio: 4 / 5; }
  .site .sec-head { flex-direction: column; align-items: flex-start; gap: .75rem; }  /* beats the later .sec-head { align-items: flex-end } */
  .case-meta > div { grid-template-columns: 1fr; gap: .25rem; }
}
@media (hover: none), (pointer: coarse) {
  .team-card__fade { display: none; }
  .spot::before, .spot::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .logos__track { animation: none; }
  .proj-card__img, .team-card__photo img, .stack-card__visual img { transition: none; }
}

/* ═══ Cursor: focus brackets + dot; difference blend inverts it on any background ═══ */
.cur { display: none; }
@media (hover: hover) and (pointer: fine) {
  html.has-cursor, html.has-cursor * { cursor: none !important; }
  html.has-cursor.book-open, html.has-cursor.book-open * { cursor: auto !important; }
  .cur {
    display: block;
    position: fixed;
    left: 0; top: 0;
    z-index: 9500;
    pointer-events: none;
    mix-blend-mode: difference;
    color: #fff;
    opacity: 0;
  }
  html.book-open .cur { opacity: 0 !important; }
  .cur__frame {
    position: absolute;
    left: 0; top: 0;
    width: 26px; height: 26px;
    margin: -13px 0 0 -13px;
    opacity: .9;
  }
  .cur__dot {
    position: absolute;
    left: 0; top: 0;
    width: 5px; height: 5px;
    margin: -2.5px 0 0 -2.5px;
    border-radius: 50%;
    background: currentColor;
  }
}

/* ═══ Booking: floating button + Calendly side panel ═══ */
.book-fab {
  position: fixed;
  right: var(--gutter);
  bottom: 1.5rem;
  z-index: 950;
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding: .9rem 1.4rem .9rem 1.15rem;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-family: var(--f-text);
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(0,0,0,.4), inset 0 0 0 1px rgba(255,255,255,.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity .4s, transform .5s var(--ease-out), visibility .4s, background .3s, color .3s;
}
.book-fab.is-visible { opacity: 1; visibility: visible; transform: none; }
.book-fab:hover { background: var(--mint); color: #000; }
.book-fab__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--mint);
  animation: bookPulse 2.4s ease-in-out infinite;
}
.book-fab:hover .book-fab__dot { background: #000; animation: none; }
@keyframes bookPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(171,211,173,.3); }
  50%      { box-shadow: 0 0 0 7px rgba(171,211,173,.08); }
}
html.book-open .book-fab { opacity: 0; visibility: hidden; transform: translateY(16px); }
html.book-open { overflow: hidden; }

.book { position: fixed; inset: 0; z-index: 1200; pointer-events: none; }
.book__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .5s;
}
.book__panel {
  position: absolute;
  top: 0; right: 0;
  height: 100%;
  width: min(600px, 100%);
  display: flex;
  flex-direction: column;
  background: #0f0f0f;
  border-left: 1px solid var(--edge);
  box-shadow: -40px 0 80px rgba(0,0,0,.5);
  transform: translateX(100%);
  transition: transform .7s var(--ease-out);
}
.book.is-open { pointer-events: auto; }
.book.is-open .book__backdrop { opacity: 1; }
.book.is-open .book__panel { transform: none; }
.book__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.5rem, 3vw, 2.25rem) 1.25rem;
  color: #fff;
}
.book__title {
  font-family: var(--f-head);
  font-weight: 500;
  font-size: clamp(1.5rem, 2vw, 2rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 .5rem;
}
.book__text { font-size: .9375rem; color: var(--muted-dk); margin: 0; max-width: 40ch; }
.book__close {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.04);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .25s, color .25s;
}
.book__close:hover { background: #fff; color: #000; }
.book__close svg { width: 16px; height: 16px; }
.book__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 clamp(.75rem, 1.5vw, 1.25rem) clamp(.75rem, 1.5vw, 1.25rem);
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.18) transparent;
}
/* Height is set by booking.js from Calendly's page_height message,
   so the iframe is exactly as tall as the agenda: no white below it. */
.book__embed {
  position: relative;
  min-height: 560px;
  border-radius: var(--r-card);
  overflow: hidden;
  background: #0a0a0a;
  border: 1px solid var(--edge);
}
.book__embed iframe {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity .5s;
}
.book__embed.is-ready iframe { opacity: 1; }
.book__loading { position: absolute; inset: 0; display: grid; place-items: center; font-size: .875rem; color: var(--muted-dk); }
@media (max-width: 640px) {
  .book__panel { width: 100%; border-left: 0; }
  .book-fab { right: 1rem; bottom: 1rem; padding: .8rem 1.1rem .8rem .95rem; }
}

/* ═══ Dark panel for the about block (the one dark moment on the bone page) ═══ */
.about__panel {
  position: relative;
  overflow: hidden;
  background: var(--night);
  color: #fff;
  border-radius: var(--r-stack);
  padding: clamp(2.25rem, 5vw, 5rem) clamp(1.75rem, 4.5vw, 5rem);
  box-shadow: 0 50px 120px -40px rgba(14,14,13,.55);
}
.about__panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(55% 65% at 20% 45%, rgba(25,98,70,.4), transparent 70%);
  pointer-events: none;
}
.about__panel > * { position: relative; }

/* Footer rises as a dark sheet with rounded shoulders */
.site-footer { border-radius: var(--r-stack) var(--r-stack) 0 0; border-top: 0; }

/* ═══ Every mini-title uses the bracket style ═══ */
.sec-note, .stack-card__tag, .proj-card__cat, .team-card__role, .case-meta dt,
.site-footer__label, .page-count, .next-link__label, .back-link, .lineup__role {
  font-family: var(--f-text);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.4;
}
.sec-note::before, .stack-card__tag::before, .proj-card__cat::before, .team-card__role::before,
.case-meta dt::before, .site-footer__label::before, .page-count::before, .next-link__label::before, .back-link::before, .lineup__role::before { content: '[ '; color: var(--green); }
.sec-note::after, .stack-card__tag::after, .proj-card__cat::after, .team-card__role::after,
.case-meta dt::after, .site-footer__label::after, .page-count::after, .next-link__label::after, .back-link::after, .lineup__role::after { content: ' ]'; color: var(--green); }

/* on dark surfaces: light text, mint brackets */
.stack-card__tag, .proj-card__cat, .team-card__role, .site-footer__label { color: rgba(255,255,255,.72); }
.stack-card__tag::before, .stack-card__tag::after,
.proj-card__cat::before, .proj-card__cat::after,
.team-card__role::before, .team-card__role::after,
.site-footer__label::before, .site-footer__label::after { color: var(--mint); }
.proj-card__cat { margin-bottom: .6rem; letter-spacing: .04em; }
.team-card__role { margin-top: .35rem; }
.site-footer__label { margin-bottom: 1.25rem; }
.sec-head { align-items: flex-end; }
.sec-head .sec-note { padding-bottom: .35rem; }

/* ═══ Passage: a bone tunnel with ink grid lines; projects on the side walls ═══ */
.projects { padding: clamp(5rem, 9vw, 8.5rem) 0 clamp(4rem, 6vw, 5rem); }
.passage {
  --L: 560px;                          /* one grid cell / panel along the depth */
  --d: calc(var(--L) * var(--N, 4));   /* tunnel depth */
  --line: rgba(14,14,13,.42);
  position: relative;
  height: calc(100vh + var(--N, 4) * 80vh);
}
.passage__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: var(--paper);
}
.passage__hud {
  position: absolute;
  left: 0; right: 0;
  top: calc(var(--nav-h) + 1.25rem);
  z-index: 3;
  pointer-events: none;
}
.passage__hud .sec-head { margin-bottom: 0; }
.passage__hud .pill { pointer-events: auto; }
.passage__meta { display: flex; align-items: center; gap: 1.25rem; }
.passage__hint {
  position: absolute;
  left: 50%; bottom: 2rem;
  transform: translateX(-50%);
  z-index: 3;
  transition: opacity .5s;
}
.passage__scene {
  position: absolute;
  inset: 0;
  perspective: 900px;
  perspective-origin: 50% 50%;
}
.passage__tunnel {
  position: absolute;
  left: 50%; top: 50%;
  width: 0; height: 0;
  transform-style: preserve-3d;
  will-change: transform;
}
.wall {
  position: absolute;
  display: flex;
  background-color: var(--paper);
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: var(--L) var(--L);
  backface-visibility: hidden;
}
.wall--left, .wall--right { width: var(--d); height: 100vh; left: calc(var(--d) / -2); top: -50vh; }
.wall--left  { transform: translate3d(-50vw, 0, calc(var(--d) / -2)) rotateY(90deg); }
.wall--right { transform: translate3d( 50vw, 0, calc(var(--d) / -2)) rotateY(-90deg); flex-direction: row-reverse; }
.wall--top, .wall--bottom { width: 100vw; height: var(--d); left: -50vw; top: calc(var(--d) / -2); }
.wall--top    { transform: translate3d(0, -50vh, calc(var(--d) / -2)) rotateX(-90deg); }
.wall--bottom { transform: translate3d(0,  50vh, calc(var(--d) / -2)) rotateX(90deg); }
.wall__panel {
  flex: 0 0 var(--L);
  height: 100%;
  padding: 0 28px;
  align-items: center;
  display: flex;
}
.tile {
  display: flex;
  flex-direction: column;
  gap: .8rem;
  width: 100%;
  height: min(64vh, 720px);
  color: var(--ink);
  text-decoration: none;
}
.tile__img {
  flex: 1;
  min-height: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
}
.tile__pic { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.tile:hover .tile__pic { transform: scale(1.04); }
.tile__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.tile__title { font-family: var(--f-head); font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.02em; }
.tile__cat { font-size: .6875rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.tile__cat::before { content: '[ '; color: var(--green); }
.tile__cat::after  { content: ' ]'; color: var(--green); }
.passage__end {
  position: absolute;
  width: 100vw; height: 100vh;
  left: -50vw; top: -50vh;
  transform: translateZ(calc(var(--d) * -1));
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1.5rem;
  text-align: center;
  background: var(--paper);
  backface-visibility: hidden;
}
.passage__end-title {
  font-family: var(--f-head);
  font-weight: 500;
  font-size: clamp(2rem, 3.4vw, 3.25rem);
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0;
}
/* phones and no-motion get the carousel instead */
.projects__fallback { padding-top: clamp(5rem, 9vw, 8.5rem); }
@media (min-width: 901px) {
  html.has-motion .projects__fallback { display: none; }
}
@media (max-width: 900px) {
  .passage { display: none; }
}
html:not(.has-motion) .passage { display: none; }

/* soften the near walls at the screen edges */
.passage__stage::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--paper), transparent 10%, transparent 90%, var(--paper)),
    linear-gradient(180deg, var(--paper), transparent 12%, transparent 88%, var(--paper));
  opacity: .85;
}

/* ═══ Carousel arrows live in the section head: always visible, never over the cards ═══ */
.sec-head__actions { display: flex; align-items: center; gap: 1rem; }
.carousel__nav { display: flex; gap: .5rem; }
.carousel__nav .proj-arrow {
  position: static;
  margin: 0;
  width: 46px; height: 46px;
  background: var(--ink);
  color: var(--bone);
  border: 1px solid var(--ink);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.carousel__nav .proj-arrow svg { width: 18px; height: 18px; }
.carousel__nav .proj-arrow:hover { background: var(--green); border-color: var(--green); color: #fff; }
.carousel__nav .proj-arrow:disabled { opacity: .25; }
@media (max-width: 900px) {
  .carousel__nav .proj-arrow { display: grid; width: 40px; height: 40px; }
  .sec-head__actions { gap: .6rem; }
}

/* Contact details inside the booking panel */
.book__contact {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem 1.5rem;
  margin-top: 1.1rem;
  font-size: .875rem;
}
.book__contact a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.3);
  padding-bottom: 1px;
  transition: border-color .25s;
}
.book__contact a:hover { border-color: #fff; }
.book__contact span { color: var(--muted-dk); }

/* ═══ Mobile menu: bone sheet, big Inter Tight items, contact at the bottom ═══ */
.nav { z-index: 1100; }                      /* above the mobile menu, below the booking panel */
.nav__hamburger span:nth-child(2) { display: none; }   /* two lines */
.mobile-menu {
  background: var(--paper);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--nav-h) + 1.5rem) var(--gutter) 1.5rem;
}
.mobile-menu__nav { margin: 0; }
.mobile-menu__nav li { border-bottom: 1px solid var(--hair); }
.mobile-menu__nav a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.05rem 0;
  font-family: var(--f-head);
  font-weight: 500;
  font-size: clamp(1.9rem, 8.5vw, 2.6rem);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
  transition: color .3s, padding-left .3s;
}
.mobile-menu__nav a::after {
  content: '\2192';
  font-size: 1.1rem;
  color: var(--muted);
  transition: transform .4s var(--ease-out);
}
.mobile-menu__nav a:hover { color: var(--green); padding-left: 0; }
.mobile-menu__nav a:hover::after { transform: translateX(4px); }
.mobile-menu__foot { display: grid; gap: 1.25rem; justify-items: start; }
.mobile-menu__contact { display: grid; gap: .3rem; font-size: .9375rem; }
.mobile-menu__contact .kicker { margin-bottom: .35rem; }
.mobile-menu__contact a { color: var(--ink); text-decoration: none; }
.mobile-menu__contact span { color: var(--muted); }
.mobile-menu__socials { display: flex; gap: 1.25rem; font-size: .8125rem; }
.mobile-menu__socials a { color: var(--muted); text-decoration: none; }
/* while the menu is open the nav sits on bone: dark logo and lines */
body:has(.mobile-menu.open) .nav { color: var(--ink); background: transparent; border-color: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
body:has(.mobile-menu.open) .nav .nav__logo img { filter: none; }
body:has(.mobile-menu.open) .nav .nav__hamburger span { background: var(--ink); }

/* ═══ Photo marquee: two rows of 4:5 photos on a deep green band ═══ */
.pm {
  background: #0d2a23;
  padding: clamp(2.5rem, 4.5vw, 4rem) 0 clamp(2.75rem, 5vw, 4.5rem);
  overflow: hidden;
  display: grid;
  gap: 18px;
}
.pm__head { margin-bottom: .5rem; }
.pm__row { overflow: hidden; }
.pm__track {
  display: flex; /* spacing sits on the items, not in a gap: both copies then measure exactly the same and the loop has no jump */
  width: max-content;
  animation: pmScroll calc(var(--n, 10) * 7s) linear infinite;
  will-change: transform;
}
.pm__row--rev .pm__track { animation-direction: reverse; }
.pm__item {
  flex: none;
  margin-right: 18px;
  width: clamp(170px, 19vw, 290px);
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  overflow: hidden;
  background: #16342c;
}
.pm__item img { width: 100%; height: 100%; object-fit: cover; }
/* case pages: the same strip on a light sage band, so it reads differently from the deep green slider */
.pm--case { background: #D8E4D5; margin-bottom: clamp(4rem, 7vw, 6rem); }
.pm--case .pm__item { background: rgba(14,14,13,.08); }
@keyframes pmScroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .pm__track { animation: none; } }

/* ═══ Video gallery on a case: a triptych — the active video centred, its neighbours peek in at the sides ═══ */
.vgal { padding: clamp(1rem, 2vw, 2rem) 0 clamp(2.5rem, 4vw, 3.5rem); }
.vgal__stage {
  position: relative;
  height: min(72vh, 760px);
  margin: 0 calc(-1 * var(--gutter));
  padding: 0 var(--gutter);
  perspective: 1600px;
  overflow: clip;         /* fallback: both axes */
  overflow: clip visible; /* sideways only, so the active frame's shadow is not cut at the bottom */
}
.vgal__item {
  position: absolute;
  left: 50%; top: 50%;
  height: calc(100% - 80px);
  transform: translate(-50%, -50%);
  transition: transform .9s var(--ease-out), opacity .6s, filter .6s;
  opacity: 0;
  pointer-events: none;
  will-change: transform;
}
.vgal__item[data-pos="0"]  { opacity: 1; pointer-events: auto; z-index: 3; }
.vgal__item[data-pos="-1"], .vgal__item[data-pos="1"] { opacity: .55; pointer-events: auto; z-index: 2; cursor: pointer; filter: saturate(.6); }
.vgal__item[data-pos="-2"], .vgal__item[data-pos="2"] { opacity: .22; z-index: 1; filter: saturate(.4); }
.vgal__item[data-pos="-1"]:hover, .vgal__item[data-pos="1"]:hover { opacity: .85; filter: none; }
.vgal__frame {
  position: relative;
  height: 100%;
  aspect-ratio: var(--ar, 16 / 9);
  max-width: min(1500px, 100vw - 2 * var(--gutter));
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 40px 90px -30px rgba(14,14,13,.55);
}
.vgal__poster, .vgal__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vgal__frame iframe, .vgal__frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.vgal__play {
  position: absolute;
  left: 50%; top: 50%;
  width: 72px; height: 72px;
  margin: -36px 0 0 -36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(10,10,10,.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .3s, transform .4s var(--ease-out);
}
.vgal__play svg { width: 28px; height: 28px; margin-left: 3px; }
.vgal__play:hover { background: var(--green); transform: scale(1.06); }
.vgal__item:not([data-pos="0"]) .vgal__play { display: none; }
.vgal__item.is-playing .vgal__play, .vgal__item.is-playing .vgal__poster { display: none; }
.vgal__nav { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.vgal__nav .proj-arrow { position: static; margin: 0; width: 46px; height: 46px; background: var(--ink); color: var(--bone); border-color: var(--ink); backdrop-filter: none; }
.vgal__nav .proj-arrow:hover { background: var(--green); border-color: var(--green); color: #fff; }
.vgal__count { min-width: 4ch; text-align: center; }
@media (max-width: 900px) {
  .vgal__stage { height: auto; perspective: none; margin: 0; padding: 0; overflow: visible; touch-action: pan-y; }
  .vgal__item { height: auto; width: 100%; transform: none !important; filter: none !important; transition: opacity .5s; }
  .vgal__item[data-pos="0"] { position: relative; left: auto; top: auto; }
  .vgal__item:not([data-pos="0"]) { position: absolute; left: 0; top: 0; opacity: 0; pointer-events: none; }
  .vgal__frame { height: auto; width: min(100%, 72vw); max-width: none; margin: 0 auto; }
  .vgal__item--wide .vgal__frame { width: 100%; }
  .vgal__nav { margin-top: 1.25rem; }
  .vgal__nav .proj-arrow { display: grid; }
}

/* ═══ About page ═══ */
.page-intro--lg { font-size: clamp(1.0625rem, 1.3vw, 1.25rem); color: var(--ink); max-width: 36ch; }
.page-head__aside .sec-note { margin-top: .25rem; }
.lineup {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(.75rem, 1.4vw, 1.25rem);
  align-items: start;
  padding: clamp(1rem, 2vw, 2rem) 0 clamp(4rem, 7vw, 6rem);
}
.lineup__item { margin: 0; }
.lineup__item:nth-child(even) { margin-top: clamp(1.5rem, 4vw, 3.5rem); }
.lineup__photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 30px 60px -30px rgba(14,14,13,.45);
}
.lineup__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.lineup__item:hover .lineup__photo img { transform: scale(1.04); }
.lineup__cap { display: grid; gap: .35rem; justify-items: start; padding: .9rem .15rem 0; }
.lineup__name { font-family: var(--f-head); font-weight: 600; font-size: 1rem; letter-spacing: -0.02em; line-height: 1.15; }
.lineup__role { color: var(--muted); }
.lineup__links { display: flex; gap: .8rem; font-size: .75rem; margin-top: .15rem; }
.lineup__links a { color: var(--green); text-decoration: none; }
.lineup__links a:hover { color: var(--ink); }
.page-head--solo { grid-template-columns: 1fr; padding-bottom: clamp(1.75rem, 3vw, 2.75rem); }
.about-body { padding-bottom: clamp(3rem, 6vw, 5rem); }
.about-body__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: rgba(14,14,13,.78);
}
.about-body__cols p { margin: 0 0 1.25em; max-width: 60ch; }
.about-body__cols p:last-child { margin-bottom: 0; }
.about-body .entry-content { margin-top: 2.5rem; }
.lineup-head { padding-top: clamp(.5rem, 1.5vw, 1.5rem); }
@media (max-width: 900px) {
  .lineup { grid-template-columns: repeat(3, 1fr); }
  .lineup__item:nth-child(even) { margin-top: 1.25rem; }
  .about-body__cols { grid-template-columns: 1fr; gap: 1.25em; }
}
@media (max-width: 560px) {
  .lineup { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .lineup__name { font-size: .9375rem; }
}

