/* ==========================================================================
   SEGLA STUDIOS
   Creative studio — fashion & lifestyle. Los Angeles / New York.
   One stylesheet. Edit tokens below to reskin the whole site.
   ========================================================================== */

/* --- 1. Tokens ----------------------------------------------------------- */

:root {
  /* Color */
  --ink: #0a0a0a;          /* page ground */
  --ink-2: #121212;         /* raised panels */
  --bone: #eeece7;          /* primary type */
  --bone-dim: #9d9a94;      /* secondary type */
  --bone-faint: #4a4844;    /* rules, borders */
  --accent: #d9d5cc;        /* hover / active */

  /* Type */
  --sans: "Inter Tight", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Fluid scale — clamp(min, preferred, max) */
  --t-hero: clamp(2.1rem, 5.4vw, 5.4rem);
  --t-xl: clamp(1.7rem, 3.6vw, 3.4rem);
  --t-lg: clamp(1.25rem, 2vw, 1.85rem);
  --t-md: clamp(1rem, 1.15vw, 1.15rem);
  --t-sm: 0.875rem;
  --t-xs: 0.6875rem;        /* micro-labels */

  /* Space */
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --section: clamp(5rem, 12vh, 11rem);
  --max: 1680px;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.7s;
}

/* --- 2. Reset ------------------------------------------------------------ */

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-size: var(--t-md);
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

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

:focus-visible {
  outline: 1px solid var(--bone);
  outline-offset: 4px;
}

/* --- 3. Grain overlay ---------------------------------------------------- */
/* Film texture. Cheap, single inline SVG, no network request. */

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 900;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --- 4. Layout primitives ----------------------------------------------- */

.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.bleed { padding-inline: var(--gutter); }

section { position: relative; }

.rule {
  height: 1px;
  background: var(--bone-faint);
  border: 0;
  margin: 0;
}

/* Micro-label: uppercase, tracked out, monospace. Used for all metadata. */
.label {
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-dim);
  font-weight: 400;
}

.label--ink { color: var(--bone); }

/* --- 5. Header ----------------------------------------------------------- */

.hdr {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 800;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem var(--gutter);
  mix-blend-mode: difference;   /* stays legible over any image */
  transition: transform 0.45s var(--ease);
}

/* Retreats while scrolling down so it never sits on top of running text;
   returns the moment you scroll up. Class toggled in js/segla.js. */
.hdr--away { transform: translateY(-110%); }

.hdr__mark {
  font-size: var(--t-sm);
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.hdr__geo {
  justify-self: center;
  display: none;
}

@media (min-width: 800px) {
  .hdr__geo { display: block; }
}

.hdr__nav {
  justify-self: end;
  display: flex;
  gap: clamp(1rem, 2.5vw, 2.25rem);
}

.hdr__nav a {
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}

.hdr__nav a:hover,
.hdr__nav a[aria-current="page"] { border-bottom-color: currentColor; }

/* --- 6. Hero ------------------------------------------------------------- */

.hero {
  min-height: 92svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: clamp(7rem, 22vh, 13rem);
  padding-bottom: clamp(2rem, 5vh, 4rem);
}

.hero__statement {
  font-size: var(--t-hero);
  line-height: 1.02;
  letter-spacing: -0.032em;
  font-weight: 400;
  max-width: 22ch;
  text-wrap: balance;
}

.hero__statement em {
  font-style: normal;
  color: var(--bone-dim);
}

.hero__foot {
  display: grid;
  gap: 1.5rem;
  align-items: end;
  margin-top: var(--section);
}

@media (min-width: 900px) {
  .hero__foot {
    grid-template-columns: 1fr minmax(0, 34ch);
    gap: 4rem;
  }
}

.hero__lede {
  font-size: var(--t-md);
  line-height: 1.5;
  color: var(--bone-dim);
  max-width: 42ch;
}

.hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

/* --- 7. Section headers -------------------------------------------------- */

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

.sec__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--bone-faint);
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.sec__title {
  font-size: var(--t-lg);
  font-weight: 400;
  letter-spacing: -0.02em;
}

/* --- 8. Work grid -------------------------------------------------------- */

.work {
  display: grid;
  gap: clamp(2.5rem, 6vw, 6rem) clamp(1rem, 2vw, 2rem);
}

@media (min-width: 800px) {
  .work { grid-template-columns: repeat(12, 1fr); }

  /* Asymmetric editorial rhythm: wide, narrow-offset, wide-offset, pair */
  .work__item:nth-child(1) { grid-column: 1 / span 8; }
  .work__item:nth-child(2) { grid-column: 10 / span 3; align-self: end; }
  .work__item:nth-child(3) { grid-column: 2 / span 6; }
  .work__item:nth-child(4) { grid-column: 9 / span 4; align-self: center; }
  .work__item:nth-child(5) { grid-column: 1 / span 12; }
}

.work__item { position: relative; }

.work__link { display: block; }

.work__frame {
  position: relative;
  overflow: hidden;
  background: var(--ink-2);
}

.work__frame > * {
  transition: transform 1.1s var(--ease), opacity 0.5s var(--ease);
}

.work__link:hover .work__frame > * { transform: scale(1.03); }

.work__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--bone-faint);
  margin-top: 0.85rem;
}

.work__client {
  font-size: var(--t-md);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.work__title {
  display: block;
  color: var(--bone-dim);
  font-size: var(--t-sm);
  transition: color 0.3s var(--ease);
}

.work__link:hover .work__title { color: var(--bone); }

/* Aspect ratios — set per item in markup via a class */
.ar-3-4 { aspect-ratio: 3 / 4; }
.ar-4-5 { aspect-ratio: 4 / 5; }
.ar-1-1 { aspect-ratio: 1 / 1; }
.ar-3-2 { aspect-ratio: 3 / 2; }
.ar-16-9 { aspect-ratio: 16 / 9; }
.ar-21-9 { aspect-ratio: 21 / 9; }

/* --- 9. Image placeholder system ---------------------------------------- */
/* Every <img> points at a real path in /assets. Until that file exists,
   js/segla.js swaps in .ph so the layout still reads. Drop the file in and
   the photo appears with no code change. See assets/README.md. */

.ph {
  position: relative;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(135deg, #1a1a1a 0%, #101010 45%, #171717 100%);
  display: grid;
  place-content: center;
  gap: 0.35rem;
  text-align: center;
  padding: 1rem;
}

.ph::before {
  content: "";
  position: absolute;
  inset: 0.5rem;
  border: 1px solid rgba(238, 236, 231, 0.07);
}

.ph__name {
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5f5c57;
  word-break: break-all;
  max-width: 34ch;
}

/* --- 10. Capabilities ---------------------------------------------------- */

.caps {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
}

@media (min-width: 700px) { .caps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .caps { grid-template-columns: repeat(4, 1fr); } }

.cap {
  padding-top: 1rem;
  border-top: 1px solid var(--bone-faint);
}

.cap__num {
  display: block;
  margin-bottom: 2.5rem;
}

.cap__name {
  font-size: var(--t-md);
  font-weight: 400;
  margin-bottom: 0.6rem;
}

.cap__body {
  font-size: var(--t-sm);
  line-height: 1.55;
  color: var(--bone-dim);
  max-width: 34ch;
}

/* --- 11. Manifesto / prose ---------------------------------------------- */

.prose {
  max-width: 62ch;
  display: grid;
  gap: 1.4em;
}

.prose p {
  font-size: var(--t-md);
  line-height: 1.6;
  color: var(--bone-dim);
}

.prose p.lead {
  font-size: var(--t-lg);
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: var(--bone);
}

.pull {
  font-size: var(--t-xl);
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 26ch;
  text-wrap: balance;
}

/* --- 12. Marquee --------------------------------------------------------- */

.marq {
  overflow: hidden;
  border-block: 1px solid var(--bone-faint);
  padding-block: 1.1rem;
  display: flex;
  gap: 0;
  user-select: none;
}

.marq__track {
  display: flex;
  flex-shrink: 0;
  gap: 3rem;
  padding-right: 3rem;
  animation: slide 42s linear infinite;
  white-space: nowrap;
}

.marq span {
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* --- 13. Project page --------------------------------------------------- */

.proj-hero {
  padding-top: clamp(7rem, 20vh, 11rem);
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
}

.proj-hero__client {
  font-size: var(--t-hero);
  line-height: 1.02;
  letter-spacing: -0.032em;
  font-weight: 400;
}

.proj-hero__title {
  font-size: var(--t-lg);
  color: var(--bone-dim);
  letter-spacing: -0.02em;
  margin-top: 0.4rem;
}

.proj-info {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  padding-block: clamp(2rem, 5vw, 3.5rem);
}

@media (min-width: 900px) {
  .proj-info { grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); gap: 5rem; }
}

.credits { display: grid; gap: 0.55rem; }

.credits__row {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--bone-faint);
  font-size: var(--t-sm);
}

.credits__row dt { color: var(--bone-dim); font-family: var(--mono); font-size: var(--t-xs); letter-spacing: 0.14em; text-transform: uppercase; padding-top: 0.2em; }
.credits__row dd { margin: 0; }

/* Image stack for project pages */
.stack { display: grid; gap: clamp(1rem, 2vw, 2rem); }

.stack--2 { grid-template-columns: 1fr; }
@media (min-width: 700px) { .stack--2 { grid-template-columns: 1fr 1fr; } }

.stack--3 { grid-template-columns: 1fr; }
@media (min-width: 700px) { .stack--3 { grid-template-columns: repeat(3, 1fr); } }

.frame {
  display: block;
  overflow: hidden;
  background: var(--ink-2);
}

/* Any image inside a ratio-locked frame fills and crops from centre. */
.frame > img,
.frame > video,
.work__frame > img,
.work__frame > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cap-txt {
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bone-dim);
  margin-top: 0.7rem;
}

/* Next project */
.next {
  display: block;
  padding-block: clamp(3rem, 8vw, 6rem);
  border-top: 1px solid var(--bone-faint);
}

.next__name {
  font-size: var(--t-xl);
  letter-spacing: -0.03em;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  transition: gap 0.4s var(--ease);
}

.next:hover .next__name { gap: 1.8rem; }

/* --- 14. Work index list ------------------------------------------------ */

.list { border-top: 1px solid var(--bone-faint); }

.list__row {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  align-items: baseline;
  padding-block: clamp(1.1rem, 2.5vw, 1.8rem);
  border-bottom: 1px solid var(--bone-faint);
  transition: background 0.4s var(--ease), padding-inline 0.4s var(--ease);
}

.list__row:hover { background: var(--ink-2); padding-inline: 1rem; }

@media (min-width: 800px) {
  .list__row { grid-template-columns: 3rem minmax(0, 20rem) minmax(0, 1fr) 8rem 5rem; }
}

.list__client { font-size: var(--t-lg); letter-spacing: -0.02em; }
.list__title { color: var(--bone-dim); font-size: var(--t-sm); }

/* --- 15. Contact -------------------------------------------------------- */

.contact-grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
}

@media (min-width: 850px) {
  .contact-grid { grid-template-columns: 1.2fr 1fr; gap: 6rem; }
}

.big-link {
  font-size: var(--t-xl);
  letter-spacing: -0.03em;
  display: inline-block;
  padding-bottom: 0.15em;
  border-bottom: 1px solid var(--bone-faint);
  transition: border-color 0.35s var(--ease), color 0.35s var(--ease);
  word-break: break-word;
}

.big-link:hover { border-bottom-color: var(--bone); }

.field {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.field input,
.field textarea,
.field select {
  font: inherit;
  font-size: var(--t-sm);
  color: var(--bone);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--bone-faint);
  padding: 0.6rem 0;
  border-radius: 0;
  transition: border-color 0.3s var(--ease);
}

.field textarea { resize: vertical; min-height: 6rem; }

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-bottom-color: var(--bone);
}

.field select option { background: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.95rem 1.6rem;
  border: 1px solid var(--bone-faint);
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}

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

.form-note {
  font-size: var(--t-xs);
  font-family: var(--mono);
  color: var(--bone-dim);
  letter-spacing: 0.06em;
  margin-top: 1rem;
}

/* --- 16. Footer --------------------------------------------------------- */

.ftr {
  padding-block: clamp(3rem, 7vw, 5rem) 2rem;
  border-top: 1px solid var(--bone-faint);
}

.ftr__grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 750px) {
  .ftr__grid { grid-template-columns: 2fr 1fr 1fr; gap: 3rem; }
}

.ftr__col { display: grid; gap: 0.6rem; align-content: start; }

.ftr__col a {
  font-size: var(--t-sm);
  color: var(--bone-dim);
  transition: color 0.3s var(--ease);
  width: fit-content;
}

.ftr__col a:hover { color: var(--bone); }

.ftr__base {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  margin-top: clamp(3rem, 8vw, 6rem);
}

.ftr__word {
  font-size: clamp(2rem, 13vw, 13rem);
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: var(--ink-2);
  margin-top: clamp(2rem, 6vw, 4rem);
  user-select: none;
  pointer-events: none;
}

/* --- 17. Reveal on scroll ----------------------------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .marq__track { animation: none; }
  * { transition-duration: 0.01ms !important; }
}

/* --- 18. Utilities ------------------------------------------------------ */

.u-dim { color: var(--bone-dim); }
.u-right { text-align: right; }
.u-mt { margin-top: clamp(1.5rem, 4vw, 3rem); }
.u-mb { margin-bottom: clamp(1.5rem, 4vw, 3rem); }
.u-hide-sm { display: none; }
@media (min-width: 800px) { .u-hide-sm { display: block; } }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--bone);
  color: var(--ink);
  padding: 0.75rem 1rem;
}
.skip:focus { left: 0; }

/* ==========================================================================
   HOME / 2026
   Cobalt reveal, portfolio-first sales page. Scoped to .home-v2 so the
   existing case studies and secondary pages remain stable while we iterate.
   ========================================================================== */

.home-v2 {
  --cobalt: #2938bb;
  --cobalt-deep: #202eaa;
  --chalk: #f1efe8;
  --chalk-dim: rgba(241, 239, 232, 0.68);
  --paper: #e9e7df;
  --paper-line: rgba(14, 14, 14, 0.2);
  --black: #0c0c0c;
  --home-gutter: clamp(1.1rem, 3.15vw, 3.75rem);
  --home-max: 1800px;
  background: var(--cobalt);
  color: var(--chalk);
}

.home-v2::after {
  opacity: 0.075;
  mix-blend-mode: soft-light;
}

.home-v2 main {
  position: relative;
  z-index: 1;
}

.home-v2 .gothic {
  font-family: "UnifrakturCook", "Old English Text MT", "Lucida Blackletter", Georgia, serif;
  font-weight: 700;
  font-synthesis: none;
}

.home-wrap {
  width: min(100%, var(--home-max));
  margin-inline: auto;
  padding-inline: var(--home-gutter);
}

.home-hdr {
  position: fixed;
  inset: 0 0 auto;
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 4.5rem;
  padding: 0.8rem var(--home-gutter);
  color: var(--chalk);
  opacity: 0;
  transform: translateY(-0.75rem);
  pointer-events: none;
  text-shadow: 0 1px 1rem rgba(0, 0, 0, 0.72);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), color 0.3s ease, text-shadow 0.3s ease;
}

/* Over the light sections the chalk nav was a ghost; switch it to ink. Toggled by js. */
.home-hdr.is-light {
  color: #111;
  text-shadow: none;
}

.home-hdr.is-in {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.home-hdr__mark {
  position: relative;
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  line-height: 1;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.home-hdr__mark span {
  position: absolute;
  transform: rotate(180deg) translate(-0.08em, -0.08em);
  opacity: 0.52;
}

.home-hdr__nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.6vw, 2.5rem);
}

.home-hdr__nav a {
  position: relative;
  padding-block: 0.4rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.home-hdr__nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}

.home-hdr__nav a:hover::after,
.home-hdr__nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* --- The two-act opening ------------------------------------------------ */

.intro {
  --seal-o: 1;
  --seal-scale: 1;
  --word-o: 0;
  --word-y: 2.5rem;
  --cue-o: 0.8;
  position: relative;
  height: 210svh;
  color: var(--chalk);
  background: var(--cobalt);
}

.intro__sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100svh;
  min-height: 35rem;
  overflow: hidden;
  background:
    radial-gradient(90% 70% at 50% 30%, rgba(98, 113, 218, 0.14), transparent 68%),
    linear-gradient(180deg, var(--cobalt) 0%, var(--cobalt-deep) 130%);
}

.intro__sticky::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 10rem rgba(9, 17, 89, 0.11);
}

.intro__seal {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  opacity: var(--seal-o);
  transform: scale(var(--seal-scale));
  will-change: opacity, transform;
}

.seal {
  position: relative;
  width: clamp(6.75rem, 10vw, 9.5rem);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.seal__medallion {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}

.seal__outline { stroke-width: 1.2; }
.seal__outline--fine { stroke-width: 0.45; }
.seal__beading {
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-dasharray: 0.1 4.62;
}
.seal__frame { stroke-width: 0.62; }
.seal__filigree { stroke-width: 1.15; }
.seal__center-ring { stroke-width: 0.5; }
.seal__centerwork { stroke-width: 1.05; }

.intro__word {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: block;
  padding: clamp(4.9rem, 8.5vh, 7.2rem) var(--home-gutter);
  opacity: var(--word-o);
  transform: translateY(var(--word-y));
  will-change: opacity, transform;
}

.intro__wordmark {
  width: 100%;
  font-size: clamp(3.8rem, 12.5vw, 14rem);
  font-weight: 700;
  line-height: 0.66;
  letter-spacing: -0.048em;
  white-space: nowrap;
  text-align: center;
  text-shadow: 0 0 2.4rem rgba(255, 255, 255, 0.035);
}

/* --- Shared homepage section language ---------------------------------- */

.home-sec {
  position: relative;
  padding-block: clamp(6.5rem, 13vw, 13rem);
}

.home-kicker {
  font-family: var(--mono);
  font-size: 0.64rem;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-section-head {
  display: grid;
  grid-template-columns: minmax(11rem, 0.5fr) minmax(0, 1.2fr) auto;
  align-items: end;
  gap: clamp(1.5rem, 5vw, 7rem);
  padding-bottom: clamp(1.5rem, 2.7vw, 2.5rem);
  border-bottom: 1px solid currentColor;
}

.home-section-head h2,
.statement-grid h2,
.speed h2,
.faq-grid h2,
.brief h2 {
  font-weight: 400;
  letter-spacing: -0.052em;
  text-wrap: balance;
}

.home-section-head h2 {
  font-size: clamp(2.8rem, 6vw, 6.8rem);
  line-height: 0.9;
}

.home-section-head > a {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.25rem;
}

.home-section-head--compact {
  grid-template-columns: minmax(11rem, 0.5fr) minmax(0, 1.2fr);
}

/* --- Linked vertical portfolio reel ------------------------------------ */

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

.home-hdr.is-reel {
  opacity: 0;
  transform: translateY(-0.75rem);
  pointer-events: none;
}

.reel {
  position: relative;
  height: 265svh;
  color: #2c2c2c;
  background: #ebebeb;
}

.reel__sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100svh;
  min-height: 35rem;
  overflow: hidden;
  background: #ebebeb;
}

.reel__rail {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 8;
  width: 45px;
  border-right: 1px solid rgba(44, 44, 44, 0.3);
  background: #ebebeb;
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.reel__rail span {
  position: absolute;
  left: 50%;
  writing-mode: vertical-rl;
  transform: translateX(-50%) rotate(180deg);
  white-space: nowrap;
}

.reel__rail span:first-child { top: 2rem; }
.reel__rail span:nth-child(2) { top: 50%; transform: translate(-50%, -50%) rotate(180deg); }
.reel__rail span:last-child { bottom: 2rem; }

.reel__index {
  position: absolute;
  inset: 0 auto 0 45px;
  z-index: 4;
  width: calc(56% - 45px);
  overflow: hidden;
  padding-left: clamp(1.8rem, 3.5vw, 4rem);
  pointer-events: none;
}

.reel__index::before,
.reel__index::after {
  content: "";
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  height: calc(50% - 3.4rem);
  pointer-events: none;
}

.reel__index::before {
  top: 0;
  background: linear-gradient(180deg, #ebebeb 0%, rgba(235,235,235,0.96) 72%, rgba(235,235,235,0.65) 100%);
}

.reel__index::after {
  bottom: 0;
  background: linear-gradient(0deg, #ebebeb 0%, rgba(235,235,235,0.96) 72%, rgba(235,235,235,0.65) 100%);
}

.reel__titles {
  position: absolute;
  inset: 0 auto auto 0;
  width: max-content;
  min-width: 100%;
  will-change: transform;
  transform: translate3d(0, var(--reel-titles-y, 0px), 0);
}

.reel__title {
  height: clamp(4.8rem, 7vw, 6.8rem);
  display: flex;
  align-items: flex-end;
  gap: 0.8rem;
  pointer-events: auto;
  white-space: nowrap;
}

.reel__name {
  display: block;
  color: rgba(44, 44, 44, 0.075);
  font-size: clamp(2.8rem, 4.9vw, 5.7rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
  transition: color 0.45s var(--ease);
}

.reel__title.is-active .reel__name,
.reel__title:hover .reel__name { color: #2c2c2c; }

.reel__legend {
  display: grid;
  gap: 0;
  min-width: 10rem;
  padding-bottom: 0.22rem;
  overflow: hidden;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.reel__legend span {
  transform: translateX(-110%);
  transition: transform 0.7s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.reel__legend span:last-child { transition-delay: 0.12s; }
.reel__title.is-active .reel__legend span,
.reel__title:hover .reel__legend span { transform: none; }

.reel__media-window {
  position: absolute;
  inset: 0 var(--home-gutter) 0 56%;
  z-index: 2;
  overflow: hidden;
}

.reel__media {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  will-change: transform;
  transform: translate3d(0, var(--reel-media-y, 0px), 0);
}

.reel__card {
  position: relative;
  width: 100%;
  display: block;
  margin-bottom: clamp(1rem, 2vw, 2rem);
}

.reel__card-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #d7d7d7;
}

.reel__card-caption { display: none; }

.reel__card img,
.reel__card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.005);
  transition: transform 1s var(--ease), filter 0.6s var(--ease);
}

.reel__card:nth-child(2) img { object-position: center 42%; }

.reel__card-cta {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  padding: 0.62rem 0.8rem;
  border-radius: 999px;
  color: #2c2c2c;
  background: rgba(235, 235, 235, 0.94);
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(0.35rem);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.reel__card:hover img,
.reel__card:hover video { transform: scale(1.03); }
.reel__card:hover .reel__card-cta { opacity: 1; transform: none; }

/* --- Work --------------------------------------------------------------- */

.home-sec--work {
  padding-top: clamp(7rem, 14vw, 14rem);
  color: var(--chalk);
  background: var(--cobalt);
}

.showcase {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(5rem, 12vw, 13rem) clamp(1rem, 2vw, 2rem);
  padding-top: clamp(3rem, 7vw, 7rem);
}

.showcase__item { min-width: 0; }
.showcase__item--wide { grid-column: 1 / span 9; }
.showcase__item--portrait { grid-column: 9 / span 4; margin-top: 11vw; }
.showcase__item--square { grid-column: 1 / span 5; }
.showcase__item--offset { grid-column: 6 / span 7; margin-top: 8vw; }

.showcase__frame {
  position: relative;
  overflow: hidden;
  margin: 0;
  background: rgba(8, 12, 74, 0.35);
}

.showcase__frame--landscape { aspect-ratio: 16 / 10; }
.showcase__frame--portrait { aspect-ratio: 3 / 4; }
.showcase__frame--square { aspect-ratio: 1; }

.showcase__frame img,
.showcase__frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 1.2s var(--ease), filter 0.7s var(--ease);
}

.showcase__item a:hover .showcase__frame img,
.showcase__item a:hover .showcase__frame video {
  transform: scale(1.035);
  filter: saturate(1.05) contrast(1.02);
}

.showcase__play {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  padding: 0.6rem 0.8rem;
  color: var(--black);
  background: var(--chalk);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(0.4rem);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.showcase__item a:hover .showcase__play { opacity: 1; transform: none; }

.showcase__caption {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 1rem;
  align-items: baseline;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(241, 239, 232, 0.5);
  margin-top: 0.85rem;
}

.showcase__caption h3,
.showcase__caption p,
.showcase__caption span {
  font-weight: 400;
  font-size: clamp(0.72rem, 1vw, 0.92rem);
}

.showcase__caption p,
.showcase__caption span { color: var(--chalk-dim); }
.showcase__caption span { font-family: var(--mono); font-size: 0.61rem; }

/* --- Statement + services ---------------------------------------------- */

.home-sec--statement,
.home-sec--services,
.home-sec--faq {
  color: var(--black);
  background: var(--paper);
}

.statement-grid {
  display: grid;
  grid-template-columns: minmax(11rem, 0.42fr) minmax(0, 1.15fr) minmax(15rem, 0.48fr);
  align-items: start;
  gap: clamp(2rem, 5vw, 7rem);
}

.statement-grid h2 {
  max-width: 15ch;
  font-size: clamp(3.2rem, 7vw, 8rem);
  line-height: 0.89;
}

.statement-grid__body {
  max-width: 32ch;
  padding-top: 0.4rem;
  font-size: clamp(1rem, 1.35vw, 1.25rem);
  line-height: 1.45;
}

.home-sec--services { padding-top: 2rem; }

.service-list {
  border-top: 1px solid var(--paper-line);
}

.service {
  display: grid;
  grid-template-columns: 4rem minmax(15rem, 0.8fr) minmax(10rem, 0.42fr) auto;
  gap: clamp(1.5rem, 4vw, 5rem);
  align-items: start;
  padding-block: clamp(2rem, 4.5vw, 4.25rem);
  border-bottom: 1px solid var(--paper-line);
}

.service__num,
.service li,
.service > a {
  font-family: var(--mono);
  font-size: 0.62rem;
  line-height: 1.45;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.service h3 {
  font-size: clamp(2rem, 4.5vw, 5.4rem);
  line-height: 0.9;
  font-weight: 400;
  letter-spacing: -0.05em;
}

.service p {
  max-width: 43ch;
  margin-top: 1.2rem;
  color: rgba(12, 12, 12, 0.65);
  font-size: clamp(0.9rem, 1.15vw, 1.05rem);
}

.service ul { display: grid; gap: 0.4rem; }

.service > a {
  padding-bottom: 0.35rem;
  border-bottom: 1px solid currentColor;
  white-space: nowrap;
}

/* --- Speed -------------------------------------------------------------- */

.speed {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-block: clamp(6rem, 11vw, 11rem);
  color: var(--chalk);
  background: var(--cobalt);
}

.speed::before {
  content: "";
  position: absolute;
  width: min(70vw, 75rem);
  aspect-ratio: 1;
  right: -18%;
  top: -36%;
  border: 1px solid rgba(241, 239, 232, 0.22);
  border-radius: 50%;
}

.speed__noise {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, transparent 0 48%, rgba(255,255,255,0.045) 48.2% 48.5%, transparent 48.7%),
    radial-gradient(circle at 65% 35%, rgba(255,255,255,0.08), transparent 37%);
}

.speed__inner {
  position: relative;
  display: grid;
  grid-template-columns: 0.32fr minmax(0, 1.1fr) minmax(18rem, 0.52fr);
  align-items: end;
  gap: clamp(2rem, 5vw, 7rem);
}

.speed__number {
  margin: 0;
  font-size: clamp(11rem, 30vw, 34rem);
  line-height: 0.62;
  font-weight: 500;
  letter-spacing: -0.1em;
}

.speed__copy {
  position: relative;
  z-index: 2;
  padding-bottom: 1rem;
}

.speed__copy h2 {
  font-size: clamp(3.1rem, 6.6vw, 7.5rem);
  line-height: 0.88;
}

.speed__copy > p {
  max-width: 34ch;
  margin-top: 1.8rem;
  color: var(--chalk-dim);
  font-size: clamp(1rem, 1.35vw, 1.25rem);
  line-height: 1.45;
}

.home-button {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}

.speed .home-button { margin-top: 2rem; }
.home-button--light:hover { color: var(--cobalt); background: var(--chalk); }
.home-button--dark:hover { color: var(--paper); background: var(--black); }

/* --- Audience fit ------------------------------------------------------- */

.home-sec--fit {
  color: var(--chalk);
  background: var(--black);
}

.fit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(241, 239, 232, 0.25);
}

.fit-grid article {
  min-height: clamp(24rem, 37vw, 40rem);
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 3rem);
  border-right: 1px solid rgba(241, 239, 232, 0.25);
}

.fit-grid article:last-child { border-right: 0; }

.fit-grid article > span {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--chalk-dim);
}

.fit-grid h3 {
  max-width: 12ch;
  margin-top: auto;
  font-size: clamp(2.1rem, 4vw, 4.5rem);
  line-height: 0.92;
  font-weight: 400;
  letter-spacing: -0.05em;
}

.fit-grid p {
  max-width: 31ch;
  margin-top: 1.5rem;
  color: var(--chalk-dim);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* --- FAQ --------------------------------------------------------------- */

.faq-grid {
  display: grid;
  grid-template-columns: minmax(15rem, 0.7fr) minmax(0, 1fr);
  gap: clamp(3rem, 8vw, 10rem);
}

.faq-grid h2 {
  max-width: 8ch;
  margin-top: 1.5rem;
  font-size: clamp(3.3rem, 7vw, 8rem);
  line-height: 0.88;
}

.faq-list { border-top: 1px solid var(--paper-line); }

.faq-list details { border-bottom: 1px solid var(--paper-line); }

.faq-list summary {
  position: relative;
  padding: 1.75rem 3.5rem 1.75rem 0;
  cursor: pointer;
  list-style: none;
  font-size: clamp(1.2rem, 1.8vw, 1.75rem);
  letter-spacing: -0.025em;
}

.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 1.65rem;
  font-family: var(--mono);
  font-size: 1rem;
  transition: transform 0.35s var(--ease);
}
.faq-list details[open] summary::after { transform: rotate(45deg); }

.faq-list details p {
  max-width: 57ch;
  padding: 0 3rem 1.9rem 0;
  color: rgba(12, 12, 12, 0.65);
  line-height: 1.55;
}

/* --- Brief + close ------------------------------------------------------ */

.brief {
  padding-block: clamp(6rem, 12vw, 12rem);
  color: var(--black);
  background: var(--paper);
  border-top: 1px solid var(--paper-line);
}

.brief__grid {
  display: grid;
  grid-template-columns: minmax(16rem, 0.75fr) minmax(0, 1fr);
  gap: clamp(3rem, 9vw, 12rem);
}

.brief__intro h2 {
  max-width: 8ch;
  margin-top: 1.4rem;
  font-size: clamp(3.3rem, 7vw, 8rem);
  line-height: 0.88;
}

.brief__intro > p:not(.home-kicker) {
  max-width: 34ch;
  margin-top: 2rem;
  color: rgba(12, 12, 12, 0.65);
}

.brief__intro > a {
  display: inline-block;
  margin-top: 1.5rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid currentColor;
  font-size: clamp(0.95rem, 1.35vw, 1.2rem);
}

.brief__form {
  align-self: start;
  padding: clamp(1.5rem, 3.2vw, 3rem);
  border: 1px solid var(--paper-line);
}

.brief__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.brief__form .field { margin-bottom: 1.65rem; }

.brief__form .field label {
  font-family: var(--mono);
  font-size: 0.59rem;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brief__form .field input,
.brief__form .field textarea,
.brief__form .field select {
  width: 100%;
  color: var(--black);
  border-bottom-color: var(--paper-line);
}

.brief__form .field input::placeholder,
.brief__form .field textarea::placeholder { color: rgba(12, 12, 12, 0.4); }
.brief__form .field select option { color: var(--black); background: var(--paper); }

.brief__note {
  margin-top: 1rem;
  font-family: var(--mono);
  font-size: 0.58rem;
  line-height: 1.45;
  letter-spacing: 0.05em;
  color: rgba(12, 12, 12, 0.5);
}

.home-footer {
  padding-block: clamp(4rem, 8vw, 8rem) 2rem;
  color: var(--chalk);
  background: var(--cobalt);
}

.home-footer__top {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 2rem;
}

.home-footer__top > p {
  font-size: clamp(4rem, 13vw, 14rem);
  line-height: 0.7;
  letter-spacing: -0.05em;
  white-space: nowrap;
}

.home-footer__top > div {
  display: grid;
  justify-items: end;
  gap: 0.7rem;
  padding-bottom: 0.5rem;
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.015em;
}

.home-footer__base {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(3rem, 7vw, 7rem);
  padding-top: 1rem;
  border-top: 1px solid rgba(241, 239, 232, 0.45);
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

.home-footer__contact,
.home-footer__social {
  display: flex;
  align-items: center;
}

.home-footer__contact { gap: 1.25rem; }
.home-footer__social { gap: 0.55rem; }

.home-footer__social a {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(241, 239, 232, 0.5);
  border-radius: 50%;
  transition: color 0.25s ease, background-color 0.25s ease;
}

.home-footer__social a:hover,
.home-footer__social a:focus-visible {
  color: var(--cobalt);
  background: var(--chalk);
}

.home-footer__social svg {
  width: 0.9rem;
  height: 0.9rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-footer__social .social-icon__dot {
  fill: currentColor;
  stroke: none;
}

.home-footer__social .social-icon--x { /* the X mark is a filled shape, not a stroke */
  fill: currentColor;
  stroke: none;
}

/* --- Familiar service cards, cut with real work ----------------------- */

.services {
  position: relative;
  padding: clamp(6rem, 10vw, 10rem) var(--home-gutter);
  color: var(--black);
  background: #ebebeb;
}

.services__head {
  display: block; /* label, then the sentence under it, both left */
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
  border-bottom: 1px solid rgba(12, 12, 12, 0.26);
}

.services__head h2 { margin-bottom: 1.1rem; }

.services__head h2 {
  font-family: var(--sans);
  font-size: 0.7rem;
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(12, 12, 12, 0.55);
}

.services__head p {
  max-width: 42ch;
  color: rgba(12, 12, 12, 0.66);
  font-size: clamp(1rem, 1.45vw, 1.3rem);
  line-height: 1.5;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.8rem, 1.5vw, 1.5rem);
  margin-top: clamp(2.5rem, 5vw, 5rem);
}

/* Service cards in the 48-hour banner's language: flat cobalt, chalk display
   type, hairline rows, an underlined text link. No image, no glass. */
.service-card {
  position: relative;
  min-height: clamp(25rem, 30vw, 29rem);
  display: flex;
  flex-direction: column;
  padding: clamp(1.7rem, 2.3vw, 2.5rem);
  color: var(--black);
  background: var(--chalk);
  border: 1px solid rgba(12, 12, 12, 0.14);
  border-radius: 0.7rem;
}

.service-card__media { display: none; }

.service-card__content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card h3 {
  max-width: 10ch;
  font-size: clamp(2.4rem, 3.1vw, 3.6rem);
  line-height: 0.9;
  font-weight: 400;
  letter-spacing: -0.055em;
}

.service-card__price {
  margin-top: 0.8rem;
  font-size: clamp(1.4rem, 1.7vw, 1.75rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.service-card__summary {
  max-width: 37ch;
  min-height: 3em; /* two lines, so the lists line up across cards */
  margin-top: 1rem;
  color: rgba(12, 12, 12, 0.74);
  font-size: clamp(1rem, 1.1vw, 1.15rem);
  line-height: 1.5;
}

.service-card__list {
  margin: clamp(1.3rem, 1.8vw, 1.9rem) 0 clamp(1.4rem, 2vw, 2rem);
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(12, 12, 12, 0.18);
}

.service-card__list li {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding-block: 0.95rem;
  border-bottom: 1px solid rgba(12, 12, 12, 0.18);
  font-size: clamp(0.98rem, 1.05vw, 1.1rem);
  font-weight: 500;
}

.service-card__list li::before {
  content: "\2713";
  flex: none;
  font-size: 0.8em;
  color: var(--cobalt);
}

.service-card__content > a {
  align-self: flex-start;
  display: inline-flex;
  align-items: baseline;
  gap: 2rem;
  margin-top: auto;
  padding-bottom: 0.35rem;
  color: var(--black);
  border-bottom: 1px solid currentColor;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.service-card__content > a:hover,
.service-card__content > a:focus-visible { color: var(--cobalt); }

.speed-banner {
  min-height: clamp(22rem, 34vw, 36rem);
  display: grid;
  grid-template-columns: minmax(13rem, 0.7fr) minmax(20rem, 1fr) auto;
  align-items: center;
  gap: clamp(2rem, 6vw, 7rem);
  margin-top: clamp(1.5rem, 3vw, 3rem);
  padding: clamp(2rem, 4vw, 4.5rem);
  color: var(--chalk);
  background: var(--cobalt);
}

.speed-banner__number {
  font-size: clamp(9rem, 20vw, 23rem);
  line-height: 0.65;
  letter-spacing: -0.085em;
}

.speed-banner h3 {
  max-width: 12ch;
  font-size: clamp(2.7rem, 4.7vw, 5.4rem);
  line-height: 0.9;
  font-weight: 400;
  letter-spacing: -0.055em;
}

.speed-banner div > p {
  max-width: 44ch;
  margin-top: 1.4rem;
  color: var(--chalk-dim);
  line-height: 1.5;
}

.speed-banner > a {
  align-self: end;
  display: inline-flex;
  gap: 2rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid currentColor;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
}

/* --- Productized booking close ---------------------------------------- */

.booking {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  padding: var(--home-gutter);
  color: var(--chalk);
  background: var(--cobalt);
}

.booking__grid {
  min-height: calc(100svh - (var(--home-gutter) * 2));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(24rem, 0.8fr);
  align-items: center;
  gap: clamp(4rem, 8vw, 10rem);
  padding-block: clamp(5rem, 9vw, 9rem);
}

.booking__intro h2 {
  max-width: 8ch;
  font-size: clamp(4.5rem, 10vw, 11rem);
  line-height: 0.82;
  font-weight: 400;
  letter-spacing: -0.065em;
}

.booking__intro > p:not(.booking__eyebrow):not(.booking__email) {
  max-width: 38ch;
  margin-top: clamp(2rem, 4vw, 4rem);
  color: var(--chalk-dim);
  font-size: clamp(1rem, 1.4vw, 1.3rem);
  line-height: 1.45;
}

.booking__intro > .booking__email {
  display: inline-block;
  margin-top: 1.5rem;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid rgba(241, 239, 232, 0.65);
  font-size: 0.9rem;
}

.booking__card {
  align-self: center;
  justify-self: center;
  width: 100%;
  max-width: 33rem; /* a compact panel, not a full column */
  margin-inline: auto;
  padding: clamp(1.6rem, 2.4vw, 2.4rem);
  color: var(--black);
  background: var(--chalk);
  border-radius: 0.7rem;
  box-shadow: 0 1.5rem 5rem rgba(9, 15, 73, 0.22);
}

.booking__card-copy {
  padding-bottom: clamp(1.1rem, 2vw, 1.6rem);
  border-bottom: 1px solid rgba(12, 12, 12, 0.18);
}

.booking__card-copy h3 {
  max-width: 10ch;
  margin-top: 0.4rem;
  font-size: clamp(2.1rem, 2.5vw, 2.8rem);
  line-height: 0.93;
  font-weight: 400;
  letter-spacing: -0.055em;
}

.booking__card-copy > p {
  margin-top: 1rem;
  color: rgba(12, 12, 12, 0.58);
  font-size: 1rem;
}

/* Duration / Google Meet / timezone rows, like a Cal.com embed. */
.cal-meta {
  display: grid;
  gap: 0.6rem;
  margin-top: 1rem;
  padding: 0;
  list-style: none;
}

.cal-meta li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  line-height: 1;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: rgba(12, 12, 12, 0.72);
}

.cal-meta svg {
  display: block;
  width: 1.05rem;
  height: 1.05rem;
  flex: none;
}

.cal-meta__pair {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.cal-meta__pair > span {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.cal-meta__line {
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cal-tzpick {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-width: 0;
}

.cal-tzpick select {
  appearance: none;
  -webkit-appearance: none;
  max-width: 15rem;
  margin: 0;
  padding: 0;
  text-indent: 0;
  -webkit-padding-start: 0;
  color: inherit;
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 1rem; /* 16px floor keeps iOS from zooming the page on focus */
  text-overflow: ellipsis;
  cursor: pointer;
}

.cal-tzpick select:focus-visible {
  outline: 1.5px solid var(--cobalt);
  outline-offset: 3px;
  border-radius: 2px;
}

.cal-tzpick > svg {
  width: 0.8rem;
  height: 0.8rem;
  flex: none;
}

.booking__button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
  color: var(--chalk);
  background: var(--black);
  border: 1px solid var(--black);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.25s ease, background-color 0.25s ease;
}

.booking__button:hover,
.booking__button:focus-visible {
  color: var(--black);
  background: transparent;
}

.booking__button:disabled {
  cursor: progress;
  opacity: 0.6;
}

/* --- Calendar widget ---------------------------------------------------- */
/* Lives inside the chalk card. Ink on chalk, cobalt for the selected day, the
   same pill language as the rest of the page. */

.cal {
  --cal-line: rgba(12, 12, 12, 0.18);
  --cal-dim: rgba(12, 12, 12, 0.34);
  --cal-mid: rgba(12, 12, 12, 0.6);
  margin-top: 1.2rem;
}

.cal [hidden] { display: none !important; }

.cal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.55rem;
}

.cal__month {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.cal__nav {
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--black);
  background: transparent;
  border: 1px solid var(--cal-line);
  border-radius: 50%;
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.cal__nav:hover:not(:disabled),
.cal__nav:focus-visible { color: var(--chalk); background: var(--black); }
.cal__nav:disabled { opacity: 0.28; cursor: default; }

.cal__weekdays,
.cal__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.cal__weekdays span {
  padding-block: 0.2rem;
  text-align: center;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cal-dim);
}

.cal__grid { row-gap: 0.1rem; }

.cal__cell,
.cal__pad {
  position: relative;
  height: 2.15rem;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--black);
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}

.cal__cell span {
  width: 2.05rem;
  height: 2.05rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s var(--ease);
}

.cal__cell:disabled { color: var(--cal-dim); cursor: default; }
.cal__cell.is-open span { background: rgba(12, 12, 12, 0.06); font-weight: 500; }
.cal__cell.is-open:hover span,
.cal__cell.is-open:focus-visible span { background: rgba(12, 12, 12, 0.14); }
.cal__cell.is-selected span,
.cal__cell.is-selected:hover span { color: var(--chalk); background: var(--cobalt); }
.cal__cell.is-today span { box-shadow: inset 0 0 0 1px var(--cal-line); }
.cal__cell:focus-visible { outline: none; }
.cal__cell:focus-visible span { box-shadow: 0 0 0 2px var(--chalk), 0 0 0 3.5px var(--black); }

.cal__slots {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--cal-line);
}

.cal__slots-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.cal__day {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.cal__tz,
.cal__status {
  font-size: 0.72rem;
  color: var(--cal-mid);
}

.cal__times {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.9rem;
  min-height: 2.6rem;
  max-height: 12.6rem; /* four rows and a peeking fifth; it only shows once a day is picked */ /* half-hour steps double the list; it scrolls instead of stretching the card */
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: 0.2rem;
}

.cal__time {
  min-height: 2.3rem;
  display: grid;
  place-items: center;
  padding: 0.4rem 0.6rem;
  color: var(--black);
  background: transparent;
  border: 1px solid rgba(12, 12, 12, 0.3);
  border-radius: 999px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cal__time:hover,
.cal__time:focus-visible {
  color: var(--chalk);
  background: var(--black);
  border-color: var(--black);
  outline: none;
}

.cal__time--link { grid-column: 1 / -1; }

.cal__status:empty { display: none; }
.cal__status { margin-top: 0.8rem; }

/* Form */

.cal__picked {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--cal-line);
  font-size: 0.95rem;
  font-weight: 500;
}

.cal__change {
  padding: 0 0 0.1rem;
  color: var(--cal-mid);
  background: transparent;
  border: 0;
  border-bottom: 1px solid currentColor;
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
  transition: color 0.2s ease;
}
.cal__change:hover,
.cal__change:focus-visible { color: var(--black); outline: none; }

.cal__field {
  display: block;
  margin-top: 1.1rem;
}

.cal__field span {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cal-mid);
}

.cal__field em {
  font-style: normal;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--cal-dim);
}

.cal__field input,
.cal__field select,
.cal__field textarea {
  width: 100%;
  padding: 0.55rem 0;
  color: var(--black);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(12, 12, 12, 0.3);
  border-radius: 0;
  font: inherit;
  font-size: 1rem;
  line-height: 1.3;
  resize: none;
  transition: border-color 0.2s ease;
}

.cal__field input:focus,
.cal__field select:focus,
.cal__field textarea:focus {
  outline: none;
  border-bottom-color: var(--cobalt);
}

.cal__field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232c2c2c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.1rem center;
  background-size: 0.9rem;
  cursor: pointer;
}

.cal__field select:invalid { color: rgba(12, 12, 12, 0.45); } /* placeholder gray until a range is picked */

.cal__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.cal__form .booking__button { width: 100%; margin-top: 1.6rem; }

.cal__error {
  margin-top: 0.8rem;
  font-size: 0.82rem;
  color: #a8321f;
}

/* Confirmation */

.cal__done { padding-top: 0.4rem; }

.cal__done-title {
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.05em;
}

.cal__done-when {
  margin-top: 1rem;
  font-size: 1rem;
  font-weight: 500;
}

.cal__done-note {
  margin-top: 0.5rem;
  max-width: 34ch;
  color: var(--cal-mid);
  font-size: 0.9rem;
  line-height: 1.45;
}

.cal__done .cal__change { margin-top: 1.6rem; }

/* --- Home responsiveness ------------------------------------------------ */

@media (max-width: 900px) {
  .home-hdr.is-reel {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .home-hdr.is-reel .home-hdr__mark { opacity: 0; pointer-events: none; }
  .home-hdr.is-reel .home-hdr__nav { margin-left: auto; }

  .home-hdr { text-shadow: none; }
  .home-hdr__nav {
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    color: var(--chalk);
    background: transparent;
    transition: color 0.3s ease, background-color 0.3s ease;
  }
  .home-hdr.is-light .home-hdr__nav {
    color: #111;
    background: rgba(235, 235, 235, 0.8);
  }

  /* Reel: the Gordon von Steiner mobile treatment. Same pinned engine as
     desktop — one scroll drives both tracks — but the title index becomes a
     strip across the top (active title inked on the top line, upcoming ones
     ghosted beneath) and the media runs full-bleed underneath, bare tiles,
     no captions. */
  .reel__sticky { min-height: 0; }
  .reel__rail { display: none; }
  .reel__index {
    inset: 0 0 auto 0;
    width: auto;
    height: 47svh; /* Gordon's proportion: titles own the top half */
    padding: 0 var(--home-gutter);
    background: #ebebeb;
  }
  .reel__titles { left: var(--home-gutter); } /* the absolute track ignores the strip's padding */
  .reel__index::before { height: 4.1rem; }  /* under the pill nav */
  .reel__index::after { display: none; }    /* the media edge cuts the queue hard, like his */
  .reel__title {
    height: clamp(2.5rem, 10.2vw, 3.3rem);
    align-items: end;
  }
  .reel__name {
    color: rgba(44, 44, 44, 0.1);
    font-size: clamp(2rem, 8.8vw, 2.85rem);
  }
  /* Passed titles vanish; the queue fades the further down it goes. */
  .reel__title:has(~ .is-active) .reel__name { opacity: 0; }
  .is-active + .reel__title .reel__name { color: rgba(44, 44, 44, 0.26); }
  .is-active + .reel__title + .reel__title .reel__name { color: rgba(44, 44, 44, 0.16); }
  .reel__legend { display: none; }
  .reel__media-window {
    inset: 47svh 0 0 0;
    overflow: hidden;
  }
  .reel__card { margin-bottom: 12px; }
  .reel__card-frame { aspect-ratio: 3 / 2; } /* wide frames, like his */
  .reel__card:nth-child(2) img { object-position: center 38%; }
  .reel__card-cta { display: none; }
  .reel__card-caption { display: none; }

  .home-section-head,
  .home-section-head--compact {
    grid-template-columns: 1fr auto;
  }
  .home-section-head h2 { grid-column: 1 / -1; grid-row: 2; }
  .home-section-head > a { grid-column: 2; grid-row: 1; }

  .showcase__item--wide { grid-column: 1 / -1; }
  .showcase__item--portrait { grid-column: 7 / -1; }
  .showcase__item--square { grid-column: 1 / span 6; }
  .showcase__item--offset { grid-column: 4 / -1; }

  .statement-grid { grid-template-columns: 1fr 2fr; }
  .statement-grid h2 { grid-column: 2; }
  .statement-grid__body { grid-column: 2; }

  .service { grid-template-columns: 3rem minmax(0, 1fr) auto; }
  .service ul { display: none; }

  .speed__inner { grid-template-columns: minmax(0, 1fr) minmax(17rem, 0.65fr); }
  .speed__inner > .home-kicker { grid-column: 1 / -1; }
  .speed__number { grid-column: 1; }
  .speed__copy { grid-column: 2; }

  .services__head { grid-template-columns: 1fr 1fr; }
  .service-cards {
    max-width: 44rem;
    grid-template-columns: 1fr;
    margin-inline: auto;
  }
  .service-card__content > a { margin-top: auto; }
  .speed-banner {
    grid-template-columns: minmax(10rem, 0.55fr) minmax(18rem, 1fr);
  }
  .speed-banner > a { grid-column: 2; justify-self: start; }

  .booking__grid {
    min-height: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0; /* spacing set per item below, so the sentence hugs the headline */
    padding-block: 7rem;
  }

  .booking__intro h2 { font-size: clamp(4.5rem, 17vw, 8rem); }
  /* Stacked: the email fallback belongs under the calendar, so the intro's
     children become grid items and the link is ordered after the card. */
  .booking__intro { display: contents; }
  .booking__intro > p:not(.booking__eyebrow):not(.booking__email) { margin-top: 1.1rem !important; }

  /* The calendar card, stacked: less air on top, smaller month grid. */
  .booking__card { padding: 1.25rem 1.1rem 1.4rem; }
  .booking__card-copy { padding-bottom: 0.9rem; }
  .booking__card-copy h3 { display: none; } /* phones: the card speaks for itself */
  .home-hdr__nav a:nth-child(2) { display: none; } /* phones: Work and Book a call only */
  .cal-meta { margin-top: 0; gap: 0.55rem; } /* heading is hidden here, so the meta rows lead */
  .booking__card { padding-top: 1.1rem; }
  .cal { margin-top: 0.85rem; }
  .cal__head { padding-bottom: 0.35rem; }
  .cal__nav { width: 2rem; height: 2rem; }
  .cal__weekdays span { padding-block: 0.15rem; }
  .cal__cell, .cal__pad { height: 2rem; }
  .cal__cell span { width: 1.9rem; height: 1.9rem; font-size: 0.9rem; }
  .cal__slots { margin-top: 0.7rem; padding-top: 0.7rem; }
  .booking__card { order: 5; margin-top: 2.5rem; }
  .booking__intro > .booking__email { order: 10; justify-self: start; margin-top: 1.4rem; }

  /* Credits strip stacked: label on its own line, logos in a 3 x 2 grid. */
  .credits-band .credits-marquee {
    display: flex;
    flex-direction: column;
    padding: 1.6rem var(--home-gutter) 1.4rem;
  }
  .credits-band .credits-marquee__label { order: 2; margin: 1.2rem 0 0; text-align: center; }
  .credits-band .credits-marquee__track {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-items: center;
    align-items: center;
    gap: 1.5rem 1rem;
    width: 100%;
    padding: 0;
  }
  .credits-band .credits-marquee__track li { display: flex; justify-content: center; max-width: 100%; }
  .credits-band .credit-logo { max-width: 100%; }
  .booking__card {
    max-width: 38rem;
    margin-top: 6rem;
  }
}

@media (max-width: 700px) {
  .home-hdr { min-height: 3.8rem; }
  .home-hdr__nav { gap: 0.8rem; }


  .intro { height: 190svh; }
  .intro__sticky { min-height: 31rem; }
  .intro__word {
    padding: clamp(4.6rem, 10vh, 6.5rem) var(--home-gutter) 0; /* top of the page, matching desktop */
  }
  .intro__wordmark {
    font-size: clamp(3.05rem, 18.5vw, 6rem);
    line-height: 0.7;
  }

  .home-sec { padding-block: 6.5rem; }
  .home-section-head,
  .home-section-head--compact { gap: 1rem; }
  .home-section-head h2 { font-size: clamp(2.7rem, 15vw, 4.5rem); }
  .home-section-head > a { font-size: 0.56rem; }

  .showcase {
    display: block;
    padding-top: 3rem;
  }
  .showcase__item,
  .showcase__item--portrait,
  .showcase__item--offset { margin: 0 0 5.5rem; }
  .showcase__item--portrait { width: 76%; margin-left: auto; }
  .showcase__item--square { width: 84%; }
  .showcase__play { opacity: 1; transform: none; }
  .showcase__caption { grid-template-columns: 1fr auto; }
  .showcase__caption p { grid-column: 1; grid-row: 2; }
  .showcase__caption > span { grid-column: 2; grid-row: 1; }

  .statement-grid { display: block; }
  .statement-grid h2 { margin-top: 2.25rem; }
  .statement-grid__body { margin-top: 2rem; }

  .service {
    grid-template-columns: 2rem minmax(0, 1fr);
    gap: 1rem;
  }
  .service > div { grid-column: 2; }
  .service > a { grid-column: 2; width: fit-content; margin-top: 1.5rem; }

  .speed { min-height: auto; }
  .speed__inner { display: block; }
  .speed__number { margin-top: 4rem; font-size: 55vw; }
  .speed__copy { margin-top: 5rem; }

  .fit-grid { display: block; }
  .fit-grid article {
    min-height: 26rem;
    border-right: 0;
    border-bottom: 1px solid rgba(241, 239, 232, 0.25);
  }

  .faq-grid,
  .brief__grid { display: block; }
  .faq-list { margin-top: 4rem; }
  .brief__form { margin-top: 4rem; }
  .brief__row { display: block; }

  .home-footer__top { display: block; }
  .home-footer__top > p { font-size: clamp(2.6rem, 17.5vw, 6rem); }
  .home-footer__top > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 1rem 1.5rem;
    margin-top: 4rem;
  }
  .home-footer__base { display: grid; }
  .home-footer__contact {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.85rem;
  }

  .services { padding-top: 6rem; }
  .services__head { display: block; }
  .services__head h2 { font-size: 0.7rem; }
  .services__head p { margin-top: 2rem; }
  .service-card h3 { font-size: clamp(2.15rem, 11vw, 3rem); }
  .service-card__content { min-height: 0; padding: 1rem; }
  .service-card__summary { font-size: 0.86rem; line-height: 1.32; }
  .service-card__content > a { font-size: 0.78rem; }
  .speed-banner {
    min-height: 0;
    display: block;
    padding: 2rem 1.5rem 2.5rem;
  }
  .speed-banner__number { font-size: 46vw; }
  .speed-banner > div { margin-top: 4rem; }
  .speed-banner h3 { font-size: clamp(2.7rem, 14vw, 4rem); }
  .speed-banner > a { margin-top: 3rem; }

  .booking { padding-top: 1.25rem; }
  .booking__grid { padding-block: 5.5rem 2rem; }
  .booking__intro h2 {
    margin-top: 1rem;
    font-size: clamp(4.2rem, 20vw, 6.3rem);
  }
  .booking__intro > p:not(.booking__eyebrow):not(.booking__email) { margin-top: 2rem; }
  .booking__card { margin-top: 2.5rem; }
  .booking__card-copy { padding-block: 0 0.9rem; }
  .cal__times { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cal__cell, .cal__pad { height: 2.6rem; }
  .booking__card-copy h3 { font-size: clamp(2rem, 9.5vw, 2.6rem); }
  .booking__details > div { grid-template-columns: 0.8fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .seal__medallion { animation: none; }
}

/* --- Team credits marquee (closes the page) ---------------------------- */
/* Every logo is painted as one ink: the source file is only used as an alpha
   mask, so mixed brand colours and white PNG backgrounds never reach the page.
   The track is duplicated once in the markup; both copies slide by their own
   width, which loops seamlessly. */

.credits-marquee {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3.5rem);
  margin-top: 2rem;
  padding: 1.5rem 0 1.5rem var(--home-gutter);
  color: var(--chalk);
  border-top: 1px solid rgba(241, 239, 232, 0.28);
  user-select: none;
}

.credits-marquee__label {
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(241, 239, 232, 0.6);
}

.credits-marquee__viewport {
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.credits-marquee__track {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: clamp(3rem, 5vw, 5.5rem);
  margin: 0;
  padding: 0 clamp(3rem, 5vw, 5.5rem) 0 0;
  list-style: none;
  animation: credits-slide 160s linear infinite;
}

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

.credits-marquee__track li {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

@keyframes credits-slide {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-100%, 0, 0); }
}

.credit-logo {
  display: block;
  height: var(--logo-h, 1.5rem);
  width: calc(var(--logo-h, 1.5rem) * var(--logo-ar, 3));
  background-color: currentColor;
  opacity: 0.82;
  -webkit-mask: var(--logo) center / contain no-repeat;
  mask: var(--logo) center / contain no-repeat;
}

.credit-logo--snl      { --logo: url("../assets/credits/snl-mask.png");      --logo-ar: 2.32; --logo-h: 1.45rem; }
.credit-logo--a24      { --logo: url("../assets/credits/a24.svg");           --logo-ar: 2.44; --logo-h: 1.4rem; }
.credit-logo--netflix  { --logo: url("../assets/credits/netflix.svg");       --logo-ar: 3.7;  --logo-h: 1.2rem; }
.credit-logo--yc       { --logo: url("../assets/credits/y-combinator-mask.png"); --logo-ar: 6.15; --logo-h: 1.3rem; }
.credit-logo--tribeca  { --logo: url("../assets/credits/tribeca.svg");       --logo-ar: 2.34; --logo-h: 1.65rem; }
.credit-logo--sxsw     { --logo: url("../assets/credits/sxsw.svg");          --logo-ar: 4.37; --logo-h: 1.1rem; }
.credit-logo--pokemon  { --logo: url("../assets/credits/pokemon-mask.png");  --logo-ar: 3.07; --logo-h: 1.35rem; }

@media (max-width: 700px) {
  .credits-marquee {
    display: block;
    margin-top: 2.5rem;
    padding: 1.4rem 0 1.6rem;
  }
  .credits-marquee__label {
    margin: 0 var(--home-gutter) 1.25rem;
  }
  .credits-marquee__track {
    gap: 2.5rem;
    padding-right: 2.5rem;
    animation-duration: 130s;
  }
  .credit-logo { --logo-h: 1.2rem; }
  .credit-logo--snl { --logo-h: 1.25rem; }
  .credit-logo--tribeca { --logo-h: 1.4rem; }
  .credit-logo--netflix { --logo-h: 1.05rem; }
  .credit-logo--sxsw { --logo-h: 0.95rem; }
  .credit-logo--pokemon { --logo-h: 1.15rem; }
  .credit-logo--yc { --logo-h: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .credits-marquee__track { animation: none; }
}

/* Without mask support the spans would be plain chalk boxes; hide the strip. */
@supports not ((mask: url("data:,")) or (-webkit-mask: url("data:,"))) {
  .credits-marquee { display: none; }
}

/* --- Gordon-style project pages --------------------------------------- */

body.project-v2 {
  color: #111;
  background: #ececec;
}

body.project-v2::after { opacity: 0.018; }

.project-v2__rail {
  position: fixed;
  z-index: 20;
  inset: 0 auto 0 0;
  width: 45px;
  border-right: 1px solid rgba(17, 17, 17, 0.24);
  background: #ececec;
  font-size: 0.66rem;
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
}

.project-v2__rail a,
.project-v2__rail span {
  position: absolute;
  left: 50%;
  writing-mode: vertical-rl;
  transform: translateX(-50%) rotate(180deg);
  white-space: nowrap;
}

.project-v2__rail a:first-child { top: 1.7rem; }
.project-v2__rail span { top: 50%; transform: translate(-50%, -50%) rotate(180deg); }
.project-v2__rail a:last-child { bottom: 1.7rem; }

.project-v2__close {
  position: fixed;
  z-index: 30;
  top: 1rem;
  right: clamp(1rem, 2.35vw, 2rem);
  padding-bottom: 0.1rem;
  border-bottom: 1px solid currentColor;
  font-size: 0.68rem;
  line-height: 1;
  text-transform: uppercase;
}

.project-v2__main {
  min-height: 100vh;
  padding: clamp(2.5rem, 3.2vw, 4rem) clamp(1rem, 2.35vw, 2rem) 2rem calc(45px + clamp(1.8rem, 2.35vw, 2rem));
}

.project-v2__media {
  width: 100%;
  overflow: hidden;
  background: #111;
}

.project-v2__media video,
.project-v2__media img,
.project-v2__media iframe {
  display: block;
  width: 100%;
  border: 0;
}

.project-v2__media video,
.project-v2__media img {
  height: auto;
  max-height: calc(100vh - 5rem);
  object-fit: contain;
  background: #111;
}

.project-v2__media--embed {
  position: relative;
  aspect-ratio: 4 / 3;
}

.project-v2__media--embed iframe {
  position: absolute;
  inset: 0;
  height: 100%;
}

.project-v2__media--standard { background: transparent; } /* no pillarbox around a 4:3 film */

.project-v2__media--standard video {
  /* size the element to the 4:3 frame itself: as wide as the column allows, but never
     taller than the viewport cap, so object-fit has nothing to letterbox */
  width: min(100%, calc((100vh - 5rem) * 4 / 3));
  height: auto;
  max-height: none;
  aspect-ratio: 4 / 3;
  margin-inline: auto;
  background: transparent;
}

.project-v2__media--portrait { background: transparent; } /* no pillarbox around a 9:16 film */

.project-v2__media--portrait video {
  width: auto;
  max-width: 100%;
  height: min(calc(100vh - 6rem), 48rem);
  margin-inline: auto;
  aspect-ratio: 9 / 16;
}

.project-v2__title {
  padding: 0.8rem 0 clamp(1rem, 2vw, 1.6rem);
  font-size: clamp(2.35rem, 5vw, 5rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
  font-weight: 400;
}

.project-v2__title--credited { padding-bottom: 0.3rem; }

.project-v2__credit {
  padding-bottom: clamp(1rem, 2vw, 1.6rem);
  color: rgba(17, 17, 17, 0.58);
  font-size: clamp(0.68rem, 0.8vw, 0.82rem);
  font-weight: 500;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.project-v2__gallery {
  display: grid;
  gap: clamp(1.25rem, 2vw, 2rem);
}

.project-v2__gallery img {
  display: block;
  width: 100%;
  height: auto;
  background: #d8d8d8;
}

.project-v2__reels {
  margin-top: clamp(1.5rem, 3vw, 3rem);
  padding-top: 1rem;
  border-top: 1px solid rgba(17, 17, 17, 0.24);
}

.project-v2__reels-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: clamp(1rem, 2vw, 1.5rem);
}

.project-v2__reels-head h2 {
  font-size: clamp(1.7rem, 3vw, 3rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
}

.project-v2__reels-head p {
  color: rgba(17, 17, 17, 0.55);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.project-v2__reel-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(0.5rem, 1vw, 1rem);
}

.project-v2__reel {
  overflow: hidden;
  aspect-ratio: 9 / 16;
  background: #111;
}

.project-v2__reel video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #111;
}

@media (max-width: 1100px) {
  .project-v2__reel-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .project-v2__reel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 460px) {
  .project-v2__reel-grid { grid-template-columns: 1fr; }
}

.project-v2__next {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  margin-top: clamp(3rem, 7vw, 7rem);
  padding: 1.25rem 0 0.25rem;
  border-top: 1px solid rgba(17, 17, 17, 0.24);
}

.project-v2__next span:first-child {
  color: rgba(17, 17, 17, 0.55);
  font-size: 0.72rem;
}

.project-v2__next span:last-child {
  font-size: clamp(1.6rem, 3vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

@media (max-width: 620px) {
  .project-v2__rail { width: 34px; }
  .project-v2__rail span { display: none; }
  .project-v2__main { padding: 3.2rem 0.75rem 1rem calc(34px + 0.75rem); }
  .project-v2__close { top: 1rem; right: 0.75rem; }
  .project-v2__title { padding-top: 0.65rem; }
}

/* --- Cycling word in the speed banner ----------------------------------- */
/* launch -> brand -> vertical, so the 48-hour route reads as every product.
   A clean ticker: the live word sits in a clipped one-line box, the next one
   slides up through it, no fades. JS eases the box width to the live word. */
.swap {
  --swap-ease: cubic-bezier(0.65, 0, 0.35, 1); /* one ease-in-out for word and width, so nothing fights */
  display: inline-grid;
  vertical-align: baseline;
  overflow: hidden;
  transition: width 0.7s var(--swap-ease);
}

.swap__word {
  grid-area: 1 / 1;
  justify-self: start; /* content-sized, so JS can measure each word's own width */
  white-space: nowrap;
  opacity: 0;
  transform: translateY(1.05em);
  will-change: transform, opacity;
  transition: transform 0.7s var(--swap-ease), opacity 0.45s ease;
}

.swap__word.is-on { opacity: 1; transform: none; }
.swap__word.is-off { opacity: 0; transform: translateY(-1.05em); }

@media (prefers-reduced-motion: reduce) {
  .swap, .swap__word { transition: none; }
}


/* Credits are their own cobalt strip, inset by the gutter like the 48 banner,
   with blank light space separating it from the booking section. */
.credits-band {
  padding: 0; /* full-bleed strip, joined to the booking section below */
  background: #ebebeb;
}

.credits-band .credits-marquee {
  margin: 0;
  padding: 1.6rem var(--home-gutter);
  color: var(--chalk);
  background: var(--cobalt);
  border: 0;
  border-bottom: 1px solid rgba(241, 239, 232, 0.22); /* a seam where it meets Book a call */
}

.credits-band__label {
  margin-top: 1.4rem;
  text-align: center; /* a caption to the strip, not a stray line */
  color: rgba(12, 12, 12, 0.55);
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Static credits: six logos fit one row, so no marquee. The first track shows
   its first set evenly spaced; the repeats and the second track are hidden. */
.credits-band .credits-marquee__viewport { display: block; overflow: visible; -webkit-mask-image: none; mask-image: none; } /* the marquee's edge fades would clip a static grid */
.credits-band .credits-marquee__track {
  width: 100%;
  flex-wrap: wrap;
  justify-content: space-evenly;
  gap: 1.6rem clamp(2rem, 4vw, 5rem);
  padding: 0;
  animation: none;
}
.credits-band .credits-marquee__track li:nth-child(n + 7) { display: none; }
.credits-band .credits-marquee__track + .credits-marquee__track { display: none; }

/* Stacked: the headline always breaks after the swapped word, so a wider word
   can never push "in" onto the next line mid-swap. */
.swap__br { display: none; }
@media (max-width: 900px) {
  .swap__br { display: inline; }
}

/* --- Intro positioning line + CTA (bottom-left of the hero, fades with the wordmark) -- */
.intro__line {
  position: absolute;
  left: var(--home-gutter);
  bottom: clamp(2.6rem, 7vh, 4.2rem);
  max-width: 34ch;
  margin: 0;
  color: var(--chalk-dim);
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.5;
}

.intro__cta {
  position: absolute;
  left: var(--home-gutter);
  bottom: clamp(2.4rem, 6vh, 3.6rem);
  display: inline-flex;
  align-items: baseline;
  gap: 0.7rem;
  padding-bottom: 0.35rem;
  color: var(--chalk);
  border-bottom: 1px solid currentColor;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  transition: opacity 0.25s ease;
}

.intro__cta:hover,
.intro__cta:focus-visible { opacity: 0.7; }

@media (max-width: 900px) {
  .intro__line { bottom: 3rem; max-width: 30ch; font-size: 1rem; }
  .intro__cta { bottom: 2.6rem; }
}


/* Times panel enters once a day is picked. */
.cal__slots.is-in { animation: cal-slots-in 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes cal-slots-in { from { opacity: 0; transform: translateY(0.5rem); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .cal__slots.is-in { animation: none; } }

/* The nav is bare chalk text over cobalt; it only wears a pill over light
   content (light sections and the chalk booking card), where it needs one. */
.home-hdr { text-shadow: none; }
.home-hdr__nav {
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  color: var(--chalk);
  background: transparent;
  transition: color 0.3s ease, background-color 0.3s ease;
}
.home-hdr.is-light .home-hdr__nav {
  color: #111;
  background: rgba(235, 235, 235, 0.8);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
}

.home-hdr.is-cover .home-hdr__nav { /* over the credits logos: the same light pill */
  color: #111;
  background: rgba(235, 235, 235, 0.8);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
}

/* Phones have no room for a bare nav over headlines (the wordmark sits right
   under it): cobalt pill everywhere, white pill over light content as usual. */
@media (max-width: 900px) {
  .home-hdr__nav {
    background: rgba(32, 46, 170, 0.72);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    backdrop-filter: blur(14px) saturate(1.4);
  }

  /* Phones keep the hero clean: the nav only arrives once the hero has
     scrolled away (the work reel and everything after). Desktop unchanged. */
  .home-hdr.is-in.is-hero {
    opacity: 0;
    transform: translateY(-0.75rem);
    pointer-events: none;
  }
}
