/* BIGLOW — biglow.com
   Design system:
   - Cream #F5F2EC, warm black #1A1A1A, maroon #7A1F1F, rule #E0DCDC
   - Display: Cormorant Garamond 700. UI/body: Inter 400/600.
   - Extreme whitespace. Hairline rules. No shadows, no cards, no icons.
*/

:root {
  --cream: #F5F2EC;
  --cream-soft: #EFEBE2;
  --cream-deep: #EAE5DA;
  --ink: #1A1A1A;
  --ink-muted: #6B6862;
  --ink-soft: #2A2A2A;
  --maroon: #7A1F1F;
  --maroon-deep: #5C1717;
  --rule: #E0DCDC;
  --rule-strong: #C9C3BA;
  --gold: #D9B97A;

  --serif: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1.5rem, 5vw, 6rem);
  --section-y: clamp(5rem, 10vw, 10rem);

  --nav-h: 78px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "liga", "calt";
  overflow-x: hidden;
}

:focus-visible { outline: 2px solid var(--maroon); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }

/* Page-level fade for soft transitions */
body.page-fade { opacity: 0; transition: opacity 280ms ease; }
body.page-fade.is-ready { opacity: 1; }
body.page-fade.is-leaving { opacity: 0; transition-duration: 220ms; }

a { color: inherit; text-decoration: none; transition: color 200ms var(--ease); }
a:hover { color: var(--maroon); }

img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--maroon); color: var(--cream); }

/* ---------- Layout primitives ---------- */

.container {
  width: 100%;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}

.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }

/* ---------- Typography ---------- */

.serif { font-family: var(--serif); font-weight: 700; letter-spacing: -0.01em; }

.display {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.5rem, 7.6vw, 7.25rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0;
  padding-bottom: 0.06em;
}

.display-md {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.1rem, 5vw, 4.25rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin: 0;
  padding-bottom: 0.05em;
}

.display-sm {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.65rem, 3.2vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
  padding-bottom: 0.04em;
}

.italic-serif { font-family: var(--serif); font-style: italic; font-weight: 400; }

.label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--ink-muted);
  display: inline-block;
}

.label-light { color: rgba(245, 242, 236, 0.55); }

/* ---------- Animated link underline ---------- */

.link-u {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
}

.link-u::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 360ms var(--ease);
}

.link-u:hover::after { transform: scaleX(1); }

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(245, 242, 236, 0);
  border-bottom: 1px solid transparent;
  transition: background 260ms var(--ease), border-color 260ms var(--ease);
}

.nav.is-scrolled {
  background: rgba(245, 242, 236, 0.92);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom-color: var(--rule);
}

.nav-inner {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding-left: var(--gutter); padding-right: var(--gutter);
}

/* Wordmark — serif, all caps, single maroon dot */
.wordmark {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  gap: 0;
}

.wordmark:hover { color: var(--ink); }

.nav-links {
  display: flex;
  gap: clamp(1.1rem, 2.6vw, 2.25rem);
}

.nav-links a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
}

.nav-links a.is-current { color: var(--maroon); }

/* Mobile nav toggle (hidden on desktop, injected by JS) */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 0.5rem 0;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  line-height: 1;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-block; }
}

/* Full-screen mobile overlay — soft cross-fade with a hairline lift on the
   menu items so the open feels intentional, not abrupt. */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 360ms var(--ease);
}
.nav-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.nav-overlay-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: clamp(1.25rem, 4vw, 2rem) var(--gutter);
}

.nav-overlay-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--nav-h);
}

.nav-overlay .wordmark { font-size: 22px; }

.nav-close {
  background: transparent;
  border: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2.5rem;
  color: var(--maroon);
  line-height: 1;
  padding: 0.5rem 0;
  cursor: pointer;
}

.nav-menu {
  margin: auto 0;
  display: flex;
  flex-direction: column;
  gap: clamp(0.5rem, 1.5vw, 1rem);
}

.nav-menu a {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.5rem, 9vw, 4.5rem);
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.05;
  padding-bottom: 0.08em;
  /* Each link starts low + transparent; lifts into place when overlay opens. */
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 460ms var(--ease), transform 520ms var(--ease);
}
.nav-overlay.is-open .nav-menu a {
  opacity: 1;
  transform: none;
}
/* Stagger: each link's transition kicks slightly later than the one above it. */
.nav-overlay.is-open .nav-menu a:nth-child(1) { transition-delay: 80ms; }
.nav-overlay.is-open .nav-menu a:nth-child(2) { transition-delay: 140ms; }
.nav-overlay.is-open .nav-menu a:nth-child(3) { transition-delay: 200ms; }
.nav-overlay.is-open .nav-menu a:nth-child(4) { transition-delay: 260ms; }
.nav-overlay.is-open .nav-menu a:nth-child(5) { transition-delay: 320ms; }
.nav-overlay.is-open .nav-menu a:nth-child(6) { transition-delay: 380ms; }

.nav-menu a.is-current { color: var(--maroon); }

.nav-overlay-foot {
  /* Foot fades up after the menu links — a quiet last beat. */
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 460ms var(--ease) 320ms, transform 520ms var(--ease) 320ms;
}
.nav-overlay.is-open .nav-overlay-foot {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .nav-menu a,
  .nav-overlay-foot { opacity: 1 !important; transform: none !important; transition: none !important; }
}

.nav-overlay-foot {
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}

.nav-overlay-foot a { color: var(--ink); }

/* ---------- Reveal animations ---------- */

.fade {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}
.fade.is-in { opacity: 1; transform: none; }

/* Stagger reveal — each .line or .word fades in with a small lift.
   No overflow:hidden anywhere — protects descenders. */
.stagger .line,
.stagger .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 600ms var(--ease), transform 700ms var(--ease);
  will-change: opacity, transform;
}
.stagger.is-in .line,
.stagger.is-in .word {
  opacity: 1;
  transform: none;
}
.stagger .line { display: block; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade, .stagger .word, .stagger .line { opacity: 1 !important; transform: none !important; transition: none !important; }
  body.page-fade, body.page-fade.is-leaving { opacity: 1 !important; transition: none !important; }
}

/* ---------- Hero ---------- */

.hero {
  min-height: calc(100vh - 0px);
  display: flex; flex-direction: column;
  justify-content: space-between;
  padding-top: calc(var(--nav-h) + clamp(2.5rem, 6vw, 5rem));
  padding-bottom: clamp(2rem, 5vw, 4rem);
}

.hero-top { flex: 0 0 auto; }
.hero-mid { flex: 1 1 auto; display: flex; align-items: center; }

.hero h1 {
  font-size: clamp(2.4rem, 7.2vw, 7rem);
  line-height: 1.04;
  max-width: 17ch;
  padding-bottom: 0.06em;
}

.hero-sub {
  margin-top: clamp(1.25rem, 2.5vw, 2rem);
  max-width: 48ch;
  font-size: clamp(0.95rem, 1.15vw, 1.05rem);
  color: var(--ink-soft);
  line-height: 1.55;
}

/* Hero H1 hover — the headline is a link to /contact, with a maroon hairline
   that draws beneath "brands move." on hover/focus. Width: max-content shrinks
   the line to its text so the underline spans only the phrase. */
.hero-h1-link {
  display: block;
  color: inherit;
}
.hero-h1-link:hover { color: inherit; }
.hero-h1 .line:last-child {
  position: relative;
  width: max-content;
  max-width: 100%;
}
.hero-h1 .line:last-child::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.04em;
  height: 2px;
  background: var(--maroon);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 700ms var(--ease);
  pointer-events: none;
}
.hero-h1:hover .line:last-child::after,
.hero-h1:focus-within .line:last-child::after { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  .hero-h1 .line:last-child::after { transition: none !important; }
  .hero-h1:hover .line:last-child::after,
  .hero-h1:focus-within .line:last-child::after { transform: none; }
}

.hero-foot {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: baseline;
  gap: 1rem;
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
.hero-foot > :first-child { justify-self: start; }
.hero-foot > .scroll-cue { justify-self: center; }
.hero-foot > :last-child { justify-self: end; }

@media (max-width: 540px) {
  .hero-foot { grid-template-columns: 1fr 1fr; row-gap: 0.85rem; }
  .hero-foot > .scroll-cue { grid-column: 1 / -1; justify-self: center; order: 3; }
}

.hero-foot .scroll-cue {
  display: inline-flex; align-items: center; gap: 0.5rem;
  letter-spacing: 0.2em;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  text-transform: inherit;
  cursor: pointer;
  transition: color 200ms var(--ease);
}
.hero-foot .scroll-cue:hover { color: var(--ink); }

.hero-foot .scroll-cue .arrow {
  display: inline-block;
  animation: scrollNudge 2.4s var(--ease-in-out) infinite;
}

@keyframes scrollNudge {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50%      { transform: translateY(4px); opacity: 1; }
}

/* ---------- Marquee (inverted: dark band, cream text) ---------- */

.marquee {
  background: var(--ink);
  padding: clamp(1.5rem, 2.4vw, 2.5rem) 0;
  overflow: hidden;
  white-space: nowrap;
}

/* Adjacent dark marquees collapse padding so they read as one band. */
.marquee + .marquee { border-top: 1px solid rgba(245, 242, 236, 0.08); }

.marquee-track {
  display: inline-flex;
  gap: 3.5rem;
  padding-left: 3.5rem;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 3.4vw, 2.75rem);
  line-height: 1;
  color: var(--cream);
  animation: marquee 60s linear infinite;
  will-change: transform;
}

.marquee-track span { display: inline-flex; align-items: center; }
.marquee-track .sep {
  font-style: normal; color: var(--gold);
  font-family: var(--serif); font-weight: 700;
}

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

/* Client logo marquee — dark band, white-silhouette logos. Sits under top
   words marquee to form a single visual dark zone. Cells are fixed-width
   so logos sit on an even rhythm regardless of their natural widths. */
.marquee-clients {
  background: var(--ink);
  padding: clamp(1.75rem, 2.6vw, 2.75rem) 0;
}
.marquee-clients .marquee-track {
  gap: 0;
  padding-left: 0;
  animation: marquee 60s linear infinite;
}
/* Cells size to their logo's natural width; horizontal padding is the gap.
   Fixed-width cells used to leave narrow text logos (Bode, Hayes Brothers,
   Silver Springs) floating in dead space. Auto-width keeps the rhythm
   visually consistent regardless of how wide each logo renders. */
.client-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0 clamp(1.5rem, 2.5vw, 2.25rem);
}
.client-logo {
  height: clamp(1.5rem, 2.6vw, 2rem);
  width: auto;
  max-width: clamp(7rem, 12vw, 10rem);
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.92;
  transition: opacity 220ms var(--ease);
}
.client-logo:hover { opacity: 1; }
@media (max-width: 540px) {
  .client-cell { padding: 0 1.25rem; }
  .client-logo { height: 1.5rem; max-width: 7rem; }
  .marquee-clients { padding: 1.25rem 0; }
}

/* ---------- Section header ---------- */

.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  gap: 2rem; flex-wrap: wrap;
}

.section-head .head-r {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-muted);
  font-size: clamp(1rem, 1.4vw, 1.25rem);
}

/* ---------- Work list (rows) ---------- */

.work-list { margin: 0; padding: 0; list-style: none; }

.work-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(1rem, 4vw, 4rem);
  align-items: baseline;
  padding: clamp(1.5rem, 3vw, 2.25rem) 0;
  border-top: 1px solid var(--rule);
  position: relative;
  transition: padding 360ms var(--ease), background 360ms var(--ease);
}

.work-list .work-row:last-child { border-bottom: 1px solid var(--rule); }

.work-row .name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.75rem, 4.2vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.01em;
  transition: color 320ms var(--ease), transform 360ms var(--ease);
  display: inline-block;
}

.work-row .meta {
  font-size: 12.5px;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  text-align: right;
}

/* Subline under home work-row name — italic serif, muted */
.work-row .credit {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(0.95rem, 1.15vw, 1.1rem);
  color: var(--ink-muted);
  line-height: 1.35;
  margin-top: 0.5rem;
}

.work-row .arrow {
  display: inline-block;
  margin-left: 0.5rem;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 320ms var(--ease), transform 360ms var(--ease);
  color: var(--maroon);
}

.work-row:hover { background: var(--cream-soft); padding-left: 1rem; padding-right: 1rem; }
.work-row:hover .name { color: var(--maroon); }
.work-row:hover .arrow { opacity: 1; transform: translateX(0); }

/* Detail rows (work.html) */
.work-row.detailed {
  grid-template-columns: 1fr auto;
  align-items: start;
  row-gap: 0.85rem;
}
.work-row.detailed .row-main { display: flex; flex-direction: column; gap: 0.7rem; }
.work-row.detailed .desc {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  color: var(--ink-muted);
  max-width: 56ch;
  line-height: 1.4;
}

.tags {
  display: flex; flex-wrap: wrap; gap: 1.25rem;
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--maroon);
}

.view-all {
  display: flex; justify-content: flex-end;
  margin-top: clamp(2rem, 4vw, 3rem);
}
.view-all a { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; }

/* ---------- Services ---------- */

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem) clamp(2rem, 8vw, 8rem);
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

.service { padding: 1rem 0; border-top: 1px solid var(--rule); }
.service h3 {
  margin: 0 0 0.4rem 0;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}
.service p {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink-muted);
  line-height: 1.4;
  max-width: 36ch;
}

.services-foot {
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
  text-align: center;
}
.services-foot p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  color: var(--ink);
  margin: 0;
}

/* ---------- Inverted (dark) section variant ---------- */
.section-invert {
  background: var(--ink);
  color: var(--cream);
}
.section-invert .label { color: rgba(245, 242, 236, 0.55); }
.section-invert .head-r { color: rgba(245, 242, 236, 0.7); }
.section-invert .service { border-top-color: rgba(245, 242, 236, 0.18); }
.section-invert .service h3 { color: var(--cream); }
.section-invert .service p { color: rgba(245, 242, 236, 0.7); }
.section-invert .services-foot p { color: var(--cream); }
.section-invert a { color: var(--cream); }
.section-invert a:hover { color: var(--gold); }

/* Slow ease-in for the inverted band so the dark wash feels intentional. */
.section-invert.fade {
  transition: opacity 1100ms var(--ease), transform 1100ms var(--ease);
}

/* ---------- Home: paired About + Services block ---------- */

.home-pair-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.home-pair-col .label { display: block; margin-bottom: 1.25rem; }
.home-pair-col h3 {
  margin: 0 0 1rem 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 22ch;
}
.home-pair-col p {
  margin: 0 0 1.4rem 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 38ch;
}
.home-pair-col .more {
  display: inline-block;
  margin-right: 1.5rem;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}
.home-pair-col .more + .more { margin-top: 0.4rem; }

@media (max-width: 820px) {
  .home-pair-grid { grid-template-columns: 1fr; gap: 3rem; }
}

/* ---------- About teaser block (home) ---------- */

.about-teaser p {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 1.4em 0;
  max-width: 26ch;
}

.about-teaser p:last-of-type { margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.about-teaser .more {
  font-size: 13px; font-weight: 600; letter-spacing: 0.06em;
}

/* ---------- CTA strip (dark) ---------- */

.cta {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(6rem, 13vw, 11rem) var(--gutter);
  text-align: center;
}

.cta .display { color: var(--cream); }

.cta .sub {
  margin: 1.5rem auto 0;
  max-width: 44ch;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: rgba(245, 242, 236, 0.65);
  line-height: 1.6;
}

.cta .email-link {
  display: inline-block;
  margin-top: clamp(2rem, 4vw, 3rem);
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  letter-spacing: -0.01em;
  color: var(--cream);
  border-bottom: 1px solid transparent;
  padding-bottom: 4px;
  transition: color 220ms var(--ease), border-color 220ms var(--ease);
}

.cta .email-link:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.cta .cta-foot {
  margin-top: clamp(3rem, 6vw, 5rem);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(245, 242, 236, 0.4);
}

/* ---------- Subscribe strip ---------- */

.subscribe {
  background: var(--cream-soft);
  border-top: 1px solid var(--rule);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}
.subscribe-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.subscribe-text .label { display: block; margin-bottom: 1rem; }
.subscribe-text h3 {
  margin: 0 0 0.7rem 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.subscribe-text p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-muted);
  max-width: 38ch;
  line-height: 1.55;
}
.subscribe-row {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  border-bottom: 1px solid var(--rule-strong);
  transition: border-color 220ms var(--ease);
}
.subscribe-row:focus-within { border-bottom-color: var(--ink); }
.subscribe-form input[type="email"] {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  padding: 0.95rem 0;
  font: 400 16px/1.4 var(--sans);
  color: var(--ink);
  outline: none;
}
.subscribe-form input[type="email"]::placeholder {
  color: var(--ink-muted);
  opacity: 0.7;
}
.subscribe-form button {
  background: transparent;
  border: 0;
  padding: 0 0 0 0.5rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
  transition: color 200ms var(--ease);
}
.subscribe-form button:hover { color: var(--maroon); }
.subscribe-form button:disabled { opacity: 0.5; cursor: progress; }
.subscribe-status {
  margin: 0.7rem 0 0;
  min-height: 1.2em;
  font-size: 13px;
  color: var(--ink-muted);
}

@media (max-width: 720px) {
  .subscribe-inner { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ---------- Footer ---------- */

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem var(--gutter);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  border-top: 1px solid var(--rule);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer .footer-cta {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}

/* ---------- Page header (work, contact, about) ---------- */
/* Tightened to bring content into view faster — hero-shot peeks above fold on PDPs. */

.page-header {
  padding-top: calc(var(--nav-h) + clamp(2rem, 4vw, 4rem));
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.page-header .label { display: block; margin-bottom: clamp(1.5rem, 2.2vw, 2rem); }
.page-header .hero-sub { margin-top: clamp(1.75rem, 2.4vw, 2.25rem); }

/* Hero-shot inside .page-header (PDPs) — viewport-aware so only the top
   ~100–150px peeks above the fold on typical desktops. Floor lets mobile
   stay sane; ceiling keeps very tall viewports from running away.
   No fixed aspect ratio — the box hugs the image so nothing gets cropped. */
.page-header .hero-shot {
  margin-top: clamp(16rem, calc(100vh - 31rem), 40rem);
  aspect-ratio: auto;
  background: transparent;
}
.page-header .hero-shot img {
  width: 100%;
  height: auto;
  display: block;
  object-position: center;
}

/* Logo card override — fixed frame so the in-development logo sits inside
   a designed dark canvas instead of rendering as a tiny floating mark. */
.page-header .hero-shot--logo {
  aspect-ratio: 21 / 9;
  background: var(--ink);
}
.page-header .hero-shot--logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: clamp(2.5rem, 6vw, 6rem);
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.7fr 1fr;
  gap: clamp(3rem, 7vw, 6rem);
  align-items: start;
}

.contact-left .display-md { margin-bottom: clamp(2rem, 4vw, 3rem); max-width: 14ch; }
.contact-left .meta-line { font-size: 14px; margin-bottom: 0.5rem; color: var(--ink); }
.contact-left .meta-line.muted { color: var(--ink-muted); }

/* Form shell hosts both the form and its success state in the same grid cell;
   the success message replaces the form in place with a soft fade. */
.form-shell { position: relative; }
.form-shell .form,
.form-shell .form-success {
  transition: opacity 360ms var(--ease), transform 360ms var(--ease);
}
.form-shell .form.is-leaving {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
}
.form-shell .form-success {
  opacity: 0;
  transform: translateY(6px);
}
.form-shell .form-success.is-on {
  opacity: 1;
  transform: none;
}
/* [hidden] needs to win over the form's display: flex */
.form[hidden], .form-success[hidden] { display: none !important; }

.form { display: flex; flex-direction: column; gap: 1.85rem; }
.field { display: flex; flex-direction: column; gap: 0.55rem; position: relative; }
.field label {
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ink-muted);
  transition: color 200ms var(--ease);
}
.field:focus-within label { color: var(--ink); }
.field input, .field select, .field textarea {
  background: transparent; border: 0;
  border-bottom: 1px solid var(--rule-strong);
  padding: 0.75rem 0;
  font: 400 16px/1.45 var(--sans);
  color: var(--ink);
  border-radius: 0; outline: none;
  transition: border-color 220ms var(--ease);
  -webkit-appearance: none; appearance: none;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-muted); opacity: 0.65; }
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%),
                    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 14px) 55%, calc(100% - 8px) 55%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 28px;
  cursor: pointer;
}
.field textarea { resize: vertical; min-height: 160px; }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--ink); }

/* Multi-select chip group — toggle pills, fills ink when active */
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding-top: 0.5rem;
}
.checkbox-group label {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.05rem;
  border: 1px solid var(--rule-strong);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  user-select: none;
  line-height: 1;
  transition: background 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease);
}
.checkbox-group label:hover {
  border-color: var(--ink);
}
.checkbox-group input[type="checkbox"] {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  border: 0; opacity: 0;
  pointer-events: none;
}
.checkbox-group label:has(input[type="checkbox"]:checked) {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}
.checkbox-group input[type="checkbox"]:focus-visible + * {
  /* fallback no-op — focus ring is on the label below */
}
.checkbox-group label:focus-within {
  outline: 2px solid var(--maroon);
  outline-offset: 2px;
}

.submit {
  align-self: flex-start;
  margin-top: 0.75rem;
  background: var(--ink);
  color: var(--cream);
  border: 0;
  padding: 1.05rem 1.85rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-radius: 0;
  cursor: pointer;
  transition: background 220ms var(--ease), color 220ms var(--ease), letter-spacing 240ms var(--ease);
}
.submit:hover { background: var(--maroon); letter-spacing: 0.26em; }
.submit:focus-visible { outline: 2px solid var(--maroon); outline-offset: 3px; }
.submit:disabled { opacity: 0.55; cursor: progress; }

/* ---------- About page ---------- */

.about-lede p {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0 0 1.2em 0;
  max-width: 24ch;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
  padding-top: clamp(2rem, 4vw, 3rem);
}
.about-grid .col-l .label { display: block; margin-bottom: 1.5rem; }
.about-grid .col-l h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.about-grid .col-r p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0 0 1.4em 0;
  color: var(--ink-soft);
  max-width: 60ch;
}
.about-grid .col-r p:last-child { margin-bottom: 0; }

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--rule);
  padding-top: clamp(2.5rem, 4vw, 3.5rem);
  margin-top: clamp(4rem, 8vw, 6rem);
}
.facts .fact .label { display: block; margin-bottom: 0.6rem; }
.facts .fact .val {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.15;
}
.facts .fact:nth-child(1) { text-align: left;   justify-self: start;  }
.facts .fact:nth-child(2) { text-align: center; justify-self: center; }
.facts .fact:nth-child(3) { text-align: right;  justify-self: end;    }

/* ---------- Work detail page ---------- */

.case-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: clamp(1.5rem, 3vw, 2rem) 0;
  margin-top: clamp(2rem, 4vw, 3rem);
}
.case-meta .label { display: block; margin-bottom: 0.45rem; }
.case-meta .val {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink);
  line-height: 1.4;
}
/* Distribute the 3 cells: left-aligned, centered, right-aligned. */
.case-meta > :nth-child(1) { text-align: left;   justify-self: start;  }
.case-meta > :nth-child(2) { text-align: center; justify-self: center; }
.case-meta > :nth-child(3) { text-align: right;  justify-self: end;    }

.case-body {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(3rem, 6vw, 6rem);
  margin-top: clamp(3rem, 6vw, 5rem);
}
.case-body .col-l .label { display: block; margin-bottom: 1rem; }
.case-body .col-r p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0 0 1.3em 0;
  color: var(--ink-soft);
  max-width: 60ch;
}
.case-body .col-r p:last-child { margin-bottom: 0; }

.case-quote {
  margin: clamp(4rem, 8vw, 7rem) auto;
  max-width: 36ch;
  text-align: center;
}
.case-quote blockquote {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.3;
  color: var(--ink);
}
.case-quote cite {
  display: block;
  margin-top: 1.25rem;
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* Image placeholders — clean, on-brand. Replace with <img> when ready. */
.shot {
  position: relative;
  background: var(--cream-deep);
  width: 100%;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.shot.tall { aspect-ratio: 3 / 4; }
.shot.wide { aspect-ratio: 16 / 10; }
.shot.square { aspect-ratio: 1 / 1; }
/* hero-shot intentionally has no aspect-ratio — it auto-fits its image.
   See .page-header .hero-shot for sizing + the .hero-shot--logo override
   that re-introduces a fixed frame for the dark studio-card variant. */
.shot.hero-shot { margin-top: clamp(2rem, 4vw, 3rem); }
.shot .placeholder {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Hero-shot images render at native height (no crop). The .hero-shot--logo
   override below restores fill behaviour for the dark studio-card. */
.hero-shot img { height: auto !important; object-fit: contain !important; }
.hero-shot--logo img { height: 100% !important; }
/* Dark logo card — used when the project is in development and only the
   logo exists. Sits like a studio title card before a film. */
.hero-shot--dark { background: var(--ink); }

.shot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}
.shot-grid .shot { aspect-ratio: 4 / 5; }

.case-next {
  border-top: 1px solid var(--rule);
  margin-top: clamp(5rem, 10vw, 9rem);
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1.5rem;
}
.case-next .label { display: block; margin-bottom: 0.4rem; }
.case-next a {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  letter-spacing: -0.01em;
}

/* ---------- Closer note ---------- */

.closer {
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(4rem, 8vw, 6rem);
  text-align: center;
}
.closer p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  color: var(--ink-muted);
  margin: 0;
}

/* ---------- Visually hidden ---------- */

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

/* ---------- Responsive ---------- */

@media (max-width: 820px) {
  :root { --nav-h: 64px; }

  .nav-links { gap: 1.1rem; }
  .nav-links a { font-size: 12px; }

  .wordmark { font-size: 22px; }

  .hero h1 { max-width: 14ch; }

  .work-row { grid-template-columns: 1fr; row-gap: 0.5rem; }
  .work-row .meta { text-align: left; order: 3; }
  .work-row.detailed { grid-template-columns: 1fr; }
  .work-row:hover { padding-left: 0; padding-right: 0; background: transparent; }

  .services-grid { grid-template-columns: 1fr; gap: 1rem; }

  .contact-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .case-body { grid-template-columns: 1fr; gap: 2rem; }
  .case-meta { grid-template-columns: 1fr; gap: 1.25rem; }
  .case-meta > :nth-child(1),
  .case-meta > :nth-child(2),
  .case-meta > :nth-child(3) { text-align: left; justify-self: start; }
  .facts { grid-template-columns: 1fr; gap: 1.5rem; }
  .facts .fact:nth-child(1),
  .facts .fact:nth-child(2),
  .facts .fact:nth-child(3) { text-align: left; justify-self: start; }
  .shot-grid { grid-template-columns: 1fr; }

  .footer { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
}
