/* ==========================================================================
   TILTING PERSPECTIVE
   Automotive photography — Greater Toronto Area

   The design system, in one line: the photography is the page, the
   signature is the voice, and everything else is a hairline.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   Palette pulled from the work itself: the near-black of a closed dealership
   at 2am, the warm off-white of the signature, the amber that shows up in
   every sunset frame, and the red lifted straight out of the logo.
   -------------------------------------------------------------------------- */
:root {
  --ink:        #0A0A0B;
  --ink-raise:  #121214;
  --ink-soft:   #17171A;
  --paper:      #EFECE6;
  --paper-dim:  #98938B;
  --paper-faint:#838079;
  --rule:       rgba(239, 236, 230, 0.13);
  --rule-soft:  rgba(239, 236, 230, 0.07);
  --signal:     #E0231F;   /* logo red — used almost never, on purpose */
  --ember:      #C9873C;   /* sunset amber, from the photography */

  --font-display: "Allura", "Snell Roundhand", "Gabriola", "Segoe Script", "Apple Chancery", cursive;
  --font-ui: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* type */
  --t-eyebrow: 0.6875rem;
  --t-micro: 0.625rem;
  --t-body: clamp(0.9375rem, 0.88rem + 0.25vw, 1.0625rem);
  --t-lede: clamp(1.0625rem, 0.98rem + 0.5vw, 1.375rem);
  --t-script-sm: clamp(2.75rem, 1.8rem + 4.2vw, 5rem);
  --t-script-md: clamp(3.5rem, 1.9rem + 7vw, 8rem);
  --t-script-lg: clamp(4.25rem, 1.8rem + 10.5vw, 12rem);

  /* rhythm */
  --gutter: clamp(1.125rem, 0.6rem + 2.6vw, 3.25rem);
  --bay: clamp(5.5rem, 3rem + 10vw, 13rem);   /* space between movements */
  --bay-sm: clamp(3rem, 2rem + 5vw, 6.5rem);
  --maxw: 1680px;

  /* motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.33, 0.9, 0.25, 1);

  --header-h: 76px;
}

@media (max-width: 700px) { :root { --header-h: 62px; } }

/* --------------------------------------------------------------------------
   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(--paper);
  font-family: var(--font-ui);
  font-size: var(--t-body);
  font-weight: 300;
  line-height: 1.62;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

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

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

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

.skip {
  position: fixed;
  top: 0; left: 50%;
  transform: translate(-50%, -120%);
  z-index: 300;
  padding: 0.75rem 1.25rem;
  background: var(--paper);
  color: var(--ink);
  font-size: var(--t-eyebrow);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: transform 0.3s var(--ease-out);
}
.skip:focus { transform: translate(-50%, 0); }

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

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY
   Two voices only. The signature carries every headline — it is the client's
   own hand, so it does the job an editorial serif would do anywhere else.
   Everything functional is set in a grotesk at small sizes with wide tracking.
   -------------------------------------------------------------------------- */
.script {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0.005em;
  /* the script has long entry strokes; they need room to breathe */
  padding-left: 0.06em;
}
.script--lg { font-size: var(--t-script-lg); }
.script--md { font-size: var(--t-script-md); }
.script--sm { font-size: var(--t-script-sm); }

.eyebrow {
  font-size: var(--t-eyebrow);
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--paper-dim);
  line-height: 1.4;
}
.eyebrow--paper { color: var(--paper); }

.micro {
  font-size: var(--t-micro);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper-faint);
  font-variant-numeric: tabular-nums;
}

.lede {
  font-size: var(--t-lede);
  font-weight: 300;
  line-height: 1.5;
  color: var(--paper);
  max-width: 34ch;
}

.prose p { color: var(--paper-dim); max-width: 62ch; }
.prose p + p { margin-top: 1.35em; }
.prose strong { color: var(--paper); font-weight: 400; }

/* the underline treatment from the logo, reused as a link style */
.ul-link {
  display: inline-block;
  position: relative;
  padding-bottom: 0.28em;
}
.ul-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  opacity: 0.35;
  transform-origin: left;
  transition: opacity 0.4s var(--ease-out), transform 0.6s var(--ease-out);
}
.ul-link:hover::after { opacity: 1; transform: scaleX(1.04); }

/* --------------------------------------------------------------------------
   4. SHELL / GRID
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 1180px; }

.bay { padding-block: var(--bay); }
.bay-sm { padding-block: var(--bay-sm); }

/* a hairline that sits fractionally off level — the house tilt */
.horizon {
  position: relative;
  height: 1px;
  background: var(--rule);
  transform: rotate(-0.28deg);
  transform-origin: left center;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: clamp(2rem, 1rem + 3vw, 4rem);
}
.section-head .script { margin-left: -0.04em; }

/* --------------------------------------------------------------------------
   5. GRAIN + CURSOR
   -------------------------------------------------------------------------- */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 200;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  will-change: transform;
  animation: grainshift 6s steps(6) infinite;
}
@keyframes grainshift {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-2%, 1%); }
  40%  { transform: translate(1%, -2%); }
  60%  { transform: translate(-1%, -1%); }
  80%  { transform: translate(2%, 1%); }
  100% { transform: translate(0, 0); }
}

.cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 190;
  pointer-events: none;
  display: none;
  mix-blend-mode: difference;
}
.cursor__dot {
  position: absolute;
  width: 6px; height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--paper);
  transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out),
              margin 0.35s var(--ease-out), opacity 0.3s linear;
}
.cursor__label {
  position: absolute;
  transform: translate(-50%, -50%);
  font-size: var(--t-micro);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper);
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
  white-space: nowrap;
}
body.has-cursor .cursor { display: block; }
body.has-cursor.cursor-active .cursor__dot { width: 74px; height: 74px; margin: -37px 0 0 -37px; opacity: 0.14; }
body.has-cursor.cursor-active .cursor__label { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  body.has-cursor a, body.has-cursor button, body.has-cursor .frame__btn { cursor: none; }
}

/* --------------------------------------------------------------------------
   6. LOADER
   Short. The wordmark, a line that draws, then the curtain lifts.
   -------------------------------------------------------------------------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: grid;
  place-items: center;
  background: var(--ink);
  transition: transform 1s var(--ease-out), opacity 0.6s linear 0.35s;
}
.loader__mark {
  width: min(360px, 62vw);
  opacity: 0;
  animation: markin 0.9s var(--ease-out) 0.1s forwards;
}
.loader__line {
  width: min(360px, 62vw);
  height: 1px;
  margin-top: 1.25rem;
  background: var(--rule);
  position: relative;
  overflow: hidden;
}
.loader__line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--paper);
  transform: scaleX(0);
  transform-origin: left;
  animation: linedraw 1.1s var(--ease-soft) 0.25s forwards;
}
@keyframes markin {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
@keyframes linedraw {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
body.is-loaded .loader { transform: translateY(-100%); opacity: 0; pointer-events: none; }
body.loading { overflow: hidden; }

/* --------------------------------------------------------------------------
   7. HEADER + MENU
   -------------------------------------------------------------------------- */
.hdr {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 120;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background-color 0.5s var(--ease-out), backdrop-filter 0.5s var(--ease-out);
}
.hdr::after {
  content: "";
  position: absolute;
  left: var(--gutter); right: var(--gutter); bottom: 0;
  height: 1px;
  background: var(--rule);
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
}
.hdr.is-stuck {
  background: rgba(10, 10, 11, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
}
.hdr.is-stuck::after { opacity: 1; }
.hdr.is-hidden { transform: translateY(-100%); transition: transform 0.5s var(--ease-out); }

.hdr__in {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.hdr__mark { display: block; flex: 0 0 auto; }
.hdr__mark img {
  width: clamp(148px, 17vw, 216px);
  height: auto;
  transition: opacity 0.4s var(--ease-out);
}
.hdr__mark:hover img { opacity: 0.72; }

.nav { display: flex; align-items: center; gap: clamp(1.5rem, 2.6vw, 3rem); }
.nav a {
  font-size: var(--t-eyebrow);
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(239, 236, 230, 0.72);
  position: relative;
  padding-block: 0.4rem;
  transition: color 0.35s var(--ease-out);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--paper); }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-out);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav .is-ig { color: rgba(239, 236, 230, 0.48); }
.nav .is-ig:hover { color: var(--paper); }

.burger {
  display: none;
  width: 40px; height: 40px;
  margin-right: -8px;
  position: relative;
}
.burger span {
  position: absolute;
  left: 8px;
  width: 24px; height: 1px;
  background: var(--paper);
  transition: transform 0.45s var(--ease-out), opacity 0.25s linear;
}
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 23px; width: 16px; }
body.menu-open .burger span:nth-child(1) { transform: translateY(3px) rotate(9deg); }
body.menu-open .burger span:nth-child(2) { transform: translateY(-3px) rotate(-9deg); width: 24px; }

.menu {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 2rem) var(--gutter) 2rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-2%);
  transition: opacity 0.5s var(--ease-out), transform 0.7s var(--ease-out), visibility 0s linear 0.5s;
}
body.menu-open .menu {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity 0.5s var(--ease-out), transform 0.7s var(--ease-out), visibility 0s;
}
.menu__list li { overflow: hidden; }
.menu__list a {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3rem, 15vw, 5.5rem);
  line-height: 1.08;
  padding-block: 0.06em;
  transform: translateY(105%);
  transition: transform 0.8s var(--ease-out);
}
body.menu-open .menu__list a { transform: none; }
body.menu-open .menu__list li:nth-child(1) a { transition-delay: 0.08s; }
body.menu-open .menu__list li:nth-child(2) a { transition-delay: 0.14s; }
body.menu-open .menu__list li:nth-child(3) a { transition-delay: 0.2s; }
body.menu-open .menu__list li:nth-child(4) a { transition-delay: 0.26s; }
.menu__foot {
  margin-top: auto;
  padding-top: 2.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--rule);
  opacity: 0;
  transition: opacity 0.6s var(--ease-out) 0.3s;
}
body.menu-open .menu__foot { opacity: 1; }

@media (max-width: 860px) {
  .nav { display: none; }
  .burger { display: block; }
}

/* --------------------------------------------------------------------------
   8. HERO
   Full bleed, minimal type, and a slow drift as you leave it.
   Built video-first: swap the <img> for a <video> and nothing else changes.
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 540px;
  overflow: hidden;
  background: var(--ink);
}
.hero__media {
  position: absolute;
  inset: -2% -2% -6%;
  will-change: transform;
}
.hero__media img, .hero__media video {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: var(--focal, 50% 50%);
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(10,10,11,0.66) 0%, rgba(10,10,11,0.05) 30%, rgba(10,10,11,0.14) 52%, rgba(10,10,11,0.62) 82%, rgba(10,10,11,0.94) 100%);
}
.hero__content {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0 var(--gutter) clamp(2rem, 5vh, 4.5rem);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  will-change: transform, opacity;
}
.hero__mark {
  width: min(620px, 74vw);
  height: auto;
  opacity: 0;
  transform: translateY(18px);
}
body.is-loaded .hero__mark {
  animation: heroin 1.4s var(--ease-out) 0.15s forwards;
}
@keyframes heroin { to { opacity: 1; transform: none; } }
.hero__sub {
  margin-top: clamp(0.9rem, 2vh, 1.6rem);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  opacity: 0;
}
body.is-loaded .hero__sub { animation: heroin 1.2s var(--ease-out) 0.5s forwards; }
.hero__sub .bar {
  width: clamp(28px, 6vw, 64px);
  height: 1px;
  background: var(--paper);
  opacity: 0.5;
}
.hero__meta { text-align: right; opacity: 0; }
body.is-loaded .hero__meta { animation: heroin 1.2s var(--ease-out) 0.7s forwards; }

.hero__scroll {
  position: absolute;
  left: 50%; bottom: clamp(1.1rem, 2.4vh, 2rem);
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  opacity: 0;
}
body.is-loaded .hero__scroll { animation: heroin 1s var(--ease-out) 1s forwards; }
.hero__scroll .rail {
  width: 1px; height: 46px;
  background: var(--rule);
  position: relative;
  overflow: hidden;
}
.hero__scroll .rail::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 1px; height: 46px;
  background: var(--paper);
  animation: railrun 2.6s var(--ease-soft) infinite;
}
@keyframes railrun {
  0%   { transform: translateY(-100%); }
  55%  { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

@media (max-width: 700px) {
  .hero__content { display: block; padding-bottom: clamp(2.25rem, 6vh, 3.5rem); }
  .hero__meta { display: none; }
  .hero__mark { width: 84vw; }
  .hero__scroll { display: none; }
}

/* background video behaves exactly like a background photograph */
.bg-video { width: 100%; height: 100%; object-fit: cover; }
.hero__media video, .interlude__media video { object-position: var(--focal, 50% 50%); }

/* --------------------------------------------------------------------------
   9. FRAME — the single media component the whole site is built from
   -------------------------------------------------------------------------- */
.frame { position: relative; }

.frame__media {
  position: relative;
  overflow: hidden;
  background-color: var(--ink-soft);
  background-size: cover;
  background-position: center;
  aspect-ratio: var(--ratio, 1.5);
}
.frame__media img,
.frame__media video {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.045);
  transition: opacity 1.1s var(--ease-out), transform 1.6s var(--ease-out);
}
.frame__media.is-loaded img,
.frame__media.is-loaded video { opacity: 1; transform: scale(1); }

/* click-to-enlarge target */
.frame__btn {
  position: absolute;
  inset: 0;
  width: 100%;
  display: block;
  background: none;
  border: 0;
  padding: 0;
}
.frame:hover .frame__media.is-loaded img { transform: scale(1.035); }
.frame:focus-within .frame__media.is-loaded img { transform: scale(1.035); }

.frame__cap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.25rem;
  margin-top: 0.85rem;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.frame:hover .frame__cap,
.frame:focus-within .frame__cap { opacity: 1; transform: none; }
@media (hover: none) {
  .frame__cap { opacity: 1; transform: none; }
}
.frame__cap .t {
  font-size: var(--t-micro); letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--paper-dim);
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.frame__cap .d { font-size: var(--t-micro); letter-spacing: 0.16em; color: var(--paper-faint); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* --------------------------------------------------------------------------
   10. ROWS — the art direction lives here. No two consecutive rows should
   read the same way, so each layout has its own asymmetry baked in.
   -------------------------------------------------------------------------- */
.rows > * + * { margin-top: clamp(3.25rem, 1.5rem + 7vw, 9rem); }

.row--full {
  width: 100%;
  padding-inline: 0;
}
.row--full .frame__cap { padding-inline: var(--gutter); max-width: var(--maxw); margin-inline: auto; }

.row--pair {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1rem, 0.4rem + 2.4vw, 3rem);
  align-items: start;
}
.row--pair > *:nth-child(1) { grid-column: 1 / span 6; }
.row--pair > *:nth-child(2) { grid-column: 8 / span 5; margin-top: clamp(3rem, 12vw, 11rem); }

.row--trip {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1rem, 0.4rem + 2.2vw, 2.5rem);
  align-items: start;
}
.row--trip > *:nth-child(1) { grid-column: 1 / span 4; }
.row--trip > *:nth-child(2) { grid-column: 5 / span 4; margin-top: clamp(2.5rem, 8vw, 7rem); }
.row--trip > *:nth-child(3) { grid-column: 9 / span 4; margin-top: clamp(1rem, 3vw, 3rem); }

.row--left, .row--right, .row--portrait {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
}
.row--left  > * { grid-column: 1 / span 8; }
.row--right > * { grid-column: 5 / span 8; }
.row--portrait > * { grid-column: 4 / span 5; }
/* a portrait frame given a wide row would swallow the screen */
.row--left.is-portrait  > * { grid-column: 1 / span 5; }
.row--right.is-portrait > * { grid-column: 8 / span 5; }

@media (max-width: 860px) {
  .row--pair > *:nth-child(1) { grid-column: 1 / span 8; }
  .row--pair > *:nth-child(2) { grid-column: 7 / span 6; margin-top: clamp(1.5rem, 8vw, 4rem); }
  .row--trip > *:nth-child(1) { grid-column: 1 / span 7; }
  .row--trip > *:nth-child(2) { grid-column: 8 / span 5; margin-top: 2.5rem; }
  .row--trip > *:nth-child(3) { grid-column: 3 / span 8; margin-top: 2rem; }
  .row--left > *  { grid-column: 1 / span 11; }
  .row--right > * { grid-column: 2 / span 11; }
  .row--portrait > * { grid-column: 2 / span 9; }
  .row--left.is-portrait > *  { grid-column: 1 / span 9; }
  .row--right.is-portrait > * { grid-column: 4 / span 9; }
}

/* two-column editorial text block */
.cols {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}
.cols > *:nth-child(1) { grid-column: 1 / span 5; }
.cols > *:nth-child(2) { grid-column: 7 / span 6; }
@media (max-width: 860px) {
  .cols > *:nth-child(1) { grid-column: 1 / span 12; }
  .cols > *:nth-child(2) { grid-column: 1 / span 12; }
}

/* --------------------------------------------------------------------------
   11. INTERLUDE — a full-screen still that behaves like a held shot.
   -------------------------------------------------------------------------- */
.interlude {
  position: relative;
  min-height: min(92vh, 900px);
  min-height: min(92svh, 900px);
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}
.interlude__media {
  position: absolute;
  inset: -8% 0;
  z-index: -1;
  will-change: transform;
}
.interlude__media img, .interlude__media video {
  width: 100%; height: 100%; object-fit: cover;
}
.interlude__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,11,0.72), rgba(10,10,11,0.44) 45%, rgba(10,10,11,0.86));
}
.interlude__copy {
  position: relative;
  text-align: center;
  padding: var(--bay-sm) var(--gutter);
  max-width: min(1040px, 86vw);
}
.interlude__copy .script { display: block; }
.interlude__copy .eyebrow { margin-top: 1.75rem; }

/* --------------------------------------------------------------------------
   12. STORIES INDEX
   Reads like a contact sheet index: number, subject, year, and the frame.
   -------------------------------------------------------------------------- */
.stories { display: grid; gap: clamp(3rem, 1.5rem + 6vw, 8rem); }

.story-card { position: relative; display: block; }
.story-card__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1rem, 2vw, 2.5rem);
  align-items: end;
}
.story-card__media { grid-column: 1 / span 8; }
.story-card:nth-child(even) .story-card__media { grid-column: 5 / span 8; order: 2; }
.story-card--portrait .story-card__media { grid-column: 1 / span 6; }
.story-card--portrait:nth-child(even) .story-card__media { grid-column: 7 / span 6; }
.story-card__meta { grid-column: 10 / span 3; padding-bottom: 0.6rem; }
.story-card:nth-child(even) .story-card__meta { grid-column: 1 / span 3; order: 1; }

.story-card__no {
  font-size: var(--t-micro);
  letter-spacing: 0.24em;
  color: var(--paper-faint);
  font-variant-numeric: tabular-nums;
  display: block;
  margin-bottom: 1rem;
}
.story-card__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1.4rem + 3.4vw, 4.5rem);
  line-height: 0.95;
  transition: color 0.4s var(--ease-out);
}
.story-card__sub { margin-top: 0.9rem; }
.story-card__go {
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--t-micro);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-dim);
}
.story-card__go .arrow { transition: transform 0.5s var(--ease-out); }
.story-card:hover .story-card__go .arrow { transform: translateX(6px); }
.story-card:hover .frame__media img { transform: scale(1.035); }

@media (max-width: 860px) {
  .story-card__media,
  .story-card:nth-child(even) .story-card__media { grid-column: 1 / span 12; order: 1; }
  .story-card__meta,
  .story-card:nth-child(even) .story-card__meta { grid-column: 1 / span 12; order: 2; padding-bottom: 0; }
  .story-card__no { margin-bottom: 0.6rem; }
}

/* --------------------------------------------------------------------------
   13. STORY PAGE
   -------------------------------------------------------------------------- */
.story-hero {
  position: relative;
  height: 88vh;
  height: 88svh;
  min-height: 460px;
  overflow: hidden;
}
.story-hero__media { position: absolute; inset: -4% 0 -8%; will-change: transform; }
.story-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.story-hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,11,0.55), rgba(10,10,11,0.12) 40%, rgba(10,10,11,0.92));
}
.story-hero__copy {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0 var(--gutter) clamp(2.5rem, 6vh, 5rem);
  max-width: var(--maxw);
  margin-inline: auto;
}
.story-hero__copy .script { display: block; margin-bottom: 1rem; }
.story-meta {
  display: flex;
  gap: clamp(1.25rem, 3vw, 3.5rem);
  flex-wrap: wrap;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}
.story-meta div { display: grid; gap: 0.4rem; }

.next-story {
  position: relative;
  display: block;
  min-height: min(70vh, 680px);
  min-height: min(70svh, 680px);
  overflow: hidden;
  isolation: isolate;
}
.next-story__media { position: absolute; inset: -6% 0; z-index: -1; }
.next-story__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.next-story:hover .next-story__media img { transform: scale(1.04); }
.next-story__media::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(10,10,11,0.62);
  transition: background 0.6s var(--ease-out);
}
.next-story:hover .next-story__media::after { background: rgba(10,10,11,0.5); }
.next-story__copy {
  position: relative;
  height: 100%;
  min-height: inherit;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 0.75rem;
  padding: var(--bay-sm) var(--gutter);
}

/* --------------------------------------------------------------------------
   14. INDEX LIST (about page credits / capabilities)
   -------------------------------------------------------------------------- */
.spec {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
}
.spec__k { grid-column: span 3; }
.spec__v { grid-column: span 9; }
.spec > div { padding-block: 1.5rem; border-top: 1px solid var(--rule); }
@media (max-width: 700px) {
  .spec__k { grid-column: span 12; padding-bottom: 0.5rem !important; }
  .spec__v { grid-column: span 12; border-top: 0 !important; padding-top: 0 !important; }
}

/* --------------------------------------------------------------------------
   15. CTA BAND + BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.05rem 1.9rem;
  border: 1px solid var(--rule);
  font-size: var(--t-eyebrow);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper);
  position: relative;
  overflow: hidden;
  transition: color 0.45s var(--ease-out), border-color 0.45s var(--ease-out);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--paper);
  transform: translateY(101%);
  transition: transform 0.55s var(--ease-out);
  z-index: -1;
}
.btn { isolation: isolate; }
.btn:hover { color: var(--ink); border-color: var(--paper); }
.btn:hover::before { transform: translateY(0); }
.btn--solid { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--solid::before { background: var(--ink); }
.btn--solid:hover { color: var(--paper); }

.cta { text-align: center; }
.cta .script { display: block; margin-bottom: 1.5rem; }
.cta__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.25rem;
}

/* --------------------------------------------------------------------------
   16. FORM
   -------------------------------------------------------------------------- */
.form { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1.5rem, 3vw, 2.75rem); }
.f { grid-column: span 12; position: relative; }
.f--half { grid-column: span 6; }
.f--third { grid-column: span 4; }
@media (max-width: 700px) { .f--half, .f--third { grid-column: span 12; } }

.f label {
  display: block;
  font-size: var(--t-micro);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-dim);
  margin-bottom: 0.75rem;
}
.f input, .f select, .f textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  color: var(--paper);
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 300;
  padding: 0.55rem 0;
  border-radius: 0;
  transition: border-color 0.4s var(--ease-out);
}
.f textarea { resize: vertical; min-height: 7.5rem; line-height: 1.6; }
.f input:focus, .f select:focus, .f textarea:focus {
  outline: none;
  border-bottom-color: var(--paper);
}
.f input::placeholder, .f textarea::placeholder { color: var(--paper-faint); }
.f select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--paper-dim) 50%),
                    linear-gradient(135deg, var(--paper-dim) 50%, transparent 50%);
  background-position: calc(100% - 9px) calc(50% + 1px), calc(100% - 4px) calc(50% + 1px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 1.5rem;
}
.f select option { background: var(--ink-raise); color: var(--paper); }
.f input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(0.7); cursor: pointer; }

.f.is-bad input, .f.is-bad select, .f.is-bad textarea { border-bottom-color: var(--signal); }
.f__err {
  display: none;
  margin-top: 0.6rem;
  font-size: var(--t-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
}
.f.is-bad .f__err { display: block; }

.form__foot {
  grid-column: span 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-top: 1rem;
}
.form__note { max-width: 40ch; }

.notice {
  padding: 1rem 1.25rem;
  border: 1px solid var(--rule);
  border-left: 2px solid var(--ember);
  background: var(--ink-raise);
}

/* --------------------------------------------------------------------------
   17. FOOTER
   -------------------------------------------------------------------------- */
.ftr { padding-block: clamp(3rem, 6vw, 5.5rem) 2.5rem; }
.ftr__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--rule);
}
.ftr__mark { grid-column: span 4; }
.ftr__col--wide { grid-column: span 4; }
.ftr__email { text-transform: none !important; letter-spacing: 0.03em !important; word-break: break-word; }
.ftr__mark img { width: min(260px, 60vw); }
.ftr__col { grid-column: span 2; display: grid; gap: 0.7rem; align-content: start; }
.ftr__col a, .ftr__col span { font-size: var(--t-micro); letter-spacing: 0.18em; text-transform: uppercase; color: var(--paper-dim); }
.ftr__col a:hover { color: var(--paper); }
.ftr__col .h { color: var(--paper-faint); margin-bottom: 0.3rem; }
.ftr__end {
  grid-column: span 12;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: clamp(2.5rem, 6vw, 5rem);
}
@media (max-width: 860px) {
  .ftr__mark { grid-column: span 12; margin-bottom: 1rem; }
  .ftr__col, .ftr__col--wide { grid-column: span 6; }
}

/* --------------------------------------------------------------------------
   18. LIGHTBOX
   -------------------------------------------------------------------------- */
.lb {
  position: fixed;
  inset: 0;
  z-index: 220;
  background: #050505;
  display: grid;
  grid-template-rows: 1fr auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease-out), visibility 0s linear 0.45s;
}
body.lb-open { overflow: hidden; }
body.lb-open .lb { opacity: 1; visibility: visible; transition: opacity 0.45s var(--ease-out), visibility 0s; }
.lb__stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(3rem, 7vh, 5rem) clamp(1rem, 5vw, 5rem) 0;
  overflow: hidden;
}
.lb__img {
  max-width: 100%;
  max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.985);
  transition: opacity 0.5s var(--ease-out), transform 0.7s var(--ease-out);
}
.lb__img.is-in { opacity: 1; transform: none; }
.lb__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem clamp(1rem, 5vw, 5rem) clamp(1.25rem, 3vh, 2rem);
}
.lb__nav { display: flex; gap: 1.75rem; }
.lb__nav button, .lb__close {
  font-size: var(--t-micro);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-dim);
  transition: color 0.3s var(--ease-out);
}
.lb__nav button:hover, .lb__close:hover { color: var(--paper); }
.lb__close {
  position: absolute;
  top: clamp(0.9rem, 2.4vh, 1.8rem);
  right: clamp(1rem, 5vw, 5rem);
  z-index: 2;
}
.lb__count { font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   19. REVEALS — the house tilt. Frames settle out of a small rotation, which
   is the brand name expressed as motion rather than decoration.
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 34px, 0) rotate(var(--tilt, 0.7deg));
  transition: opacity 1s var(--ease-out), transform 1.25s var(--ease-out);
  will-change: transform, opacity;
}
[data-reveal].is-in { opacity: 1; transform: none; will-change: auto; }
[data-reveal="text"] { transform: translate3d(0, 18px, 0); }
[data-reveal-delay="1"] { transition-delay: 0.09s; }
[data-reveal-delay="2"] { transition-delay: 0.18s; }
[data-reveal-delay="3"] { transition-delay: 0.27s; }

.row--full [data-reveal] { --tilt: 0deg; }

/* --------------------------------------------------------------------------
   20. FILTERS (work page)
   -------------------------------------------------------------------------- */
.filters {
  display: flex;
  gap: clamp(1rem, 2.4vw, 2.25rem);
  flex-wrap: wrap;
  align-items: center;
}
.filters button {
  font-size: var(--t-micro);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-faint);
  padding-bottom: 0.4rem;
  position: relative;
  transition: color 0.35s var(--ease-out);
}
.filters button::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-out);
}
.filters button:hover { color: var(--paper-dim); }
.filters button[aria-pressed="true"] { color: var(--paper); }
.filters button[aria-pressed="true"]::after { transform: scaleX(1); }

.rows.is-filtering .row { display: none; }
.rows.is-filtering .row.is-match { display: grid; }
.rows.is-filtering .row--full.is-match { display: block; }

/* --------------------------------------------------------------------------
   21. MOTION PREFERENCES
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .grain { animation: none; }
  .hero__mark, .hero__sub, .hero__meta, .hero__scroll { opacity: 1; animation: none; }
  .frame__media img, .frame__media video { opacity: 1; transform: none; }
  .frame__cap { opacity: 1; transform: none; }
  .menu__list a { transform: none; }
}
