/* ==========================================================================
   OPEN HOUSE STUDIO — openhousestudio.com.au
   Palette:  Ink #0B0B0B · Paper #F4F2EC · Bone #DBD7CB · Line #55534C · Gold #E0A83E
   Type:     Archivo (expanded display) · Inter Tight (body) · IBM Plex Mono (labels)
             Instrument Serif italic (accent)
   ========================================================================== */

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* Native smooth scrolling only when Lenis is NOT driving. Lenis calls
   window.scrollTo() every frame; with scroll-behavior:smooth the browser
   re-animates each of those calls, which reads as heavy, laggy scrolling. */
html { -webkit-text-size-adjust: 100%; }
html:not(.lenis) { scroll-behavior: smooth; }
img, video, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }

/* ---------- tokens ---------- */
:root {
  --ink: #0B0B0B;
  --paper: #F4F2EC;
  --bone: #DBD7CB;
  --line-dark: #33312C;      /* hairlines on dark */
  --line-light: #C9C4B6;     /* hairlines on light */
  --muted-dark: #8F8B80;     /* secondary text on dark */
  --muted-light: #55534C;    /* secondary text on light (AA on paper) */
  --gold: #E0A83E;
  --gold-deep: #8A6114;      /* gold that passes AA on paper */

  --font-display: "Archivo", "Arial Narrow", sans-serif;
  --font-body: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;
  --font-serif: "Instrument Serif", Georgia, serif;

  --gutter: clamp(1rem, 3.4vw, 3rem);
  --header-h: 4.5rem;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

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

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  background: var(--ink);
  color: var(--paper);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }

.mono {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.6;
}

/* tick: the roofline chevron motif, from the logo mark */
.tick {
  display: inline-block;
  width: 0.65em; height: 0.65em;
  margin-right: 0.75em;
  border-left: 1.5px solid currentColor;
  border-top: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(0.15em);
}

/* section color modes */
.section-dark  { background: var(--ink); color: var(--paper); }
.section-light { background: var(--paper); color: var(--ink); }

/* logo mark: two-tone via currentColor (styled on the symbol itself so it
   applies through <use> shadow trees; currentColor inherits from the use site) */
#oh-mark .lp { fill: currentColor; }
#oh-mark .ls { fill: currentColor; opacity: 0.5; }

/* focus */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 var(--gutter);
  color: var(--paper);
  transition: background 0.4s, backdrop-filter 0.4s;
}
/* Solid rather than backdrop-filter: a blur on a fixed element forces the
   browser to re-blur the strip behind it on every scrolled frame. */
.site-header.is-scrolled { background: rgba(11, 11, 11, 0.94); }

.header-logo { display: flex; align-items: center; gap: 0.7rem; }
.header-logo .logo-mark { width: 2rem; height: auto; }
.logo-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 115%;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.05;
  display: flex; flex-direction: column;
}
.logo-word em {
  font-style: normal; font-weight: 500;
  font-size: 0.62rem; letter-spacing: 0.42em;
}

.header-nav { display: none; align-items: center; gap: 2.2rem; }
.header-nav a {
  font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
  padding: 0.5rem 0;
}
.header-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute; left: 0; bottom: 0.2rem;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}
.header-nav a:not(.nav-cta):hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta {
  border: 1px solid var(--paper);
  padding: 0.55rem 1.1rem !important;
  border-radius: 999px;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.nav-cta:hover { background: var(--paper); color: var(--ink); }

.menu-toggle {
  display: grid; place-content: center; gap: 6px;
  width: 44px; height: 44px;
  background: none; border: 0; cursor: pointer;
}
.menu-toggle span {
  display: block; width: 26px; height: 2px;
  background: currentColor;
  transition: transform 0.35s var(--ease-out);
}
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 50;
  background: var(--ink);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--header-h) var(--gutter) 2rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s;
}
.mobile-menu.is-open { opacity: 1; pointer-events: auto; }
.mobile-menu nav { display: flex; flex-direction: column; margin-bottom: 3rem; }
.mobile-menu nav a {
  font-family: var(--font-display);
  font-weight: 800; font-stretch: 120%;
  font-size: clamp(2.4rem, 10vw, 4rem);
  text-transform: uppercase;
  line-height: 1.12;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--line-dark);
  display: flex; align-items: baseline; gap: 1rem;
}
.mobile-menu nav a small {
  font-family: var(--font-mono); font-size: 0.7rem;
  font-weight: 400; color: var(--gold);
}
.mobile-menu-foot { color: var(--muted-dark); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 1rem) var(--gutter) 1.4rem;
  overflow: hidden;
}
/* Taller than the hero so the parallax translate never exposes an edge —
   cheaper than scaling the video, which resamples it every frame. */
.hero-media {
  position: absolute;
  left: 0; right: 0; top: -9%;
  height: 118%;
  z-index: -1;
  will-change: transform;
}
.hero-video { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(11,11,11,0.55) 0%, rgba(11,11,11,0.08) 34%, rgba(11,11,11,0.12) 62%, rgba(11,11,11,0.78) 100%);
}

.hero-top {
  display: flex; justify-content: space-between; gap: 1rem;
  text-transform: uppercase;
}
.hero-top-right { text-align: right; }

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 122%;
  text-transform: uppercase;
  font-size: clamp(1.9rem, 9.4vw, 9.6rem);
  line-height: 0.93;
  letter-spacing: -0.012em;
  white-space: nowrap;
  margin-top: auto;
  padding-top: 2rem;
}
.hero-line { display: block; overflow: hidden; }
.hero-line > span { display: inline-block; }

.hero-foot {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem;
  margin-top: 1.6rem;
}
.hero-blurb {
  max-width: 22em;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  font-weight: 500;
  line-height: 1.4;
  text-wrap: balance;
}
.hero-scroll {
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  letter-spacing: 0.3em;
  padding: 0.5rem;
  flex-shrink: 0;
}
.hero-scroll-line {
  width: 1px; height: 3.4rem;
  background: currentColor;
  transform-origin: top;
  animation: scrollPulse 2.2s var(--ease-out) infinite;
}
@keyframes scrollPulse {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ==========================================================================
   INTRO
   ========================================================================== */
.intro { padding: clamp(5rem, 12vw, 10rem) var(--gutter); }
.intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  max-width: 78rem;
  margin-inline: auto;
}
.intro-label { color: var(--gold); text-transform: uppercase; }
.intro-statement {
  font-family: var(--font-display);
  font-weight: 600;
  font-stretch: 105%;
  font-size: clamp(1.55rem, 3.6vw, 3rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  max-width: 24em;
  margin-bottom: 2.4rem;
  text-wrap: balance;
}
.intro-cols {
  display: grid; gap: 1.4rem;
  max-width: 60rem;
  color: var(--muted-dark);
  font-size: 1rem;
}
.intro-cols p { max-width: 34em; }
.intro-chip {
  justify-self: start;
  display: flex; align-items: center; gap: 1rem;
  background: var(--paper); color: var(--ink);
  padding: 1.1rem 1.4rem;
  margin-top: 1rem;
}
.intro-chip .logo-mark { width: 3rem; }
.intro-chip .mono { letter-spacing: 0.18em; }

/* ==========================================================================
   MARQUEE
   ========================================================================== */
.marquee-band {
  display: block;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  padding: clamp(1.6rem, 4vw, 3rem) 0;
  overflow: hidden;
  position: relative;
}
.marquee { position: relative; }
.marquee-track {
  display: flex; width: max-content;
  animation: marquee 26s linear infinite;
  will-change: transform;
}
.marquee-band:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-item {
  font-family: var(--font-display);
  font-weight: 800; font-stretch: 122%;
  font-size: clamp(2.6rem, 7.5vw, 6.5rem);
  line-height: 1.05;
  text-transform: uppercase;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--paper);
  transition: color 0.4s;
}
.marquee-item em {
  font-style: normal;
  color: var(--paper);
  -webkit-text-stroke: 0;
}
.marquee-band:hover .marquee-item { color: var(--paper); }
.marquee-band:hover .marquee-item em { color: var(--gold); }
.marquee-ellipse {
  position: absolute; inset: -12% 4%;
  width: 92%; height: 124%;
  pointer-events: none;
}
.marquee-ellipse ellipse {
  fill: none; stroke: var(--gold); stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

/* ==========================================================================
   SERVICES
   ========================================================================== */
.services { padding: clamp(5rem, 12vw, 10rem) var(--gutter) clamp(4rem, 9vw, 7rem); }
.services-head { max-width: 78rem; margin-inline: auto; }
.services-eyebrow { color: var(--gold-deep); text-transform: uppercase; }

.giant-title {
  position: relative;
  font-family: var(--font-display);
  font-weight: 800; font-stretch: 122%;
  text-transform: uppercase;
  font-size: clamp(2.9rem, 10vw, 9rem);
  line-height: 0.95;
  letter-spacing: -0.012em;
  margin: 1.2rem 0 2.2rem;
}
.giant-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  text-transform: lowercase;
  font-size: 0.92em;
  letter-spacing: 0;
}
.giant-line { display: block; }
.ghost-word {
  position: absolute;
  left: 18%; top: -0.31em;
  font-family: var(--font-serif); font-style: italic;
  font-size: 1.16em;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-light);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  z-index: 0;
}
.giant-line { position: relative; z-index: 1; }

.cap-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem 2rem;
  color: var(--muted-light);
  max-width: 46rem;
  margin-bottom: 3.5rem;
}

.service-rows {
  max-width: 78rem; margin-inline: auto;
  border-top: 1px solid var(--line-light);
}
.service-row { border-bottom: 1px solid var(--line-light); }
.service-row summary {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 1.2rem;
  padding: 1.5rem 0.2rem;
  cursor: pointer;
  transition: padding 0.3s var(--ease-out);
}
.service-row summary:hover { padding-left: 0.8rem; }
.service-index { color: var(--gold-deep); }
.service-name {
  font-family: var(--font-display);
  font-weight: 700; font-stretch: 112%;
  font-size: clamp(1.35rem, 3.4vw, 2.4rem);
  text-transform: uppercase;
  line-height: 1.05;
}
.service-hint { display: none; color: var(--muted-light); }
.service-plus { position: relative; width: 16px; height: 16px; }
.service-plus::before, .service-plus::after {
  content: ""; position: absolute; background: currentColor;
  transition: transform 0.35s var(--ease-out);
}
.service-plus::before { inset: 7px 0; }
.service-plus::after { inset: 0 7px; }
.service-row[open] .service-plus::after { transform: scaleY(0); }
.service-body { padding: 0 0.2rem 1.8rem; max-width: 46em; }
.service-body p:first-child { margin-bottom: 1rem; color: var(--muted-light); font-size: 1.02rem; }
.service-deliverables { color: var(--gold-deep); }

/* ==========================================================================
   WORK
   ========================================================================== */
.work { padding: clamp(4rem, 9vw, 7rem) var(--gutter); border-top: 1px solid var(--line-light); }
.work-head {
  max-width: 78rem; margin-inline: auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
  margin-bottom: 2.4rem;
  text-transform: uppercase;
}
.work-filters { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.filter {
  background: none;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  min-height: 44px;
  color: var(--muted-light);
  cursor: pointer;
  text-transform: uppercase;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.work-grid {
  max-width: 78rem; margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 0.9rem;
}
.work-tile { position: relative; min-width: 0; }

.tile-open {
  display: block; width: 100%;
  padding: 0; border: 0; background: none;
  cursor: pointer;
  text-align: left;
}
.tile-media {
  position: relative; display: block; overflow: hidden;
  background: var(--bone);
  aspect-ratio: 4 / 3;
}
.is-film .tile-media { aspect-ratio: 16 / 9; }
.tile-media img, .tile-preview {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease-out);
}
.tile-preview {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 0.45s var(--ease-out);
}
.tile-preview.is-showing { opacity: 1; }
.tile-open:hover .tile-media img,
.tile-open:hover .tile-preview { transform: scale(1.04); }

/* play affordance on film tiles */
.tile-play {
  position: absolute; left: 0.9rem; bottom: 0.9rem;
  width: 2.6rem; height: 2.6rem;
  border-radius: 50%;
  background: rgba(11, 11, 11, 0.55);
  border: 1px solid rgba(244, 242, 236, 0.7);
  transition: background 0.3s, transform 0.3s var(--ease-out);
}
.tile-play::after {
  content: "";
  position: absolute; top: 50%; left: 54%;
  transform: translate(-50%, -50%);
  border-left: 0.62rem solid var(--paper);
  border-top: 0.4rem solid transparent;
  border-bottom: 0.4rem solid transparent;
}
.tile-open:hover .tile-play { background: var(--gold); transform: scale(1.08); }
.tile-open:hover .tile-play::after { border-left-color: var(--ink); }

.work-tile figcaption {
  display: flex; justify-content: space-between; align-items: baseline;
  flex-wrap: wrap; gap: 0.2rem 0.8rem;
  padding: 0.6rem 0.1rem 0;
}
.tile-title {
  font-family: var(--font-display);
  font-weight: 700; font-stretch: 112%;
  font-size: clamp(1rem, 1.7vw, 1.35rem);
  text-transform: uppercase;
  line-height: 1.1;
}
.tile-meta {
  display: flex; gap: 0.6rem;
  color: var(--gold-deep);
  text-transform: uppercase;
}
.tile-meta em { font-style: normal; color: var(--muted-light); }
.work-empty { max-width: 78rem; margin: 2rem auto 0; color: var(--muted-light); }

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */
body.lb-open { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: #070707;
  color: var(--paper);
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto 1fr;
  align-items: center;
}
.lightbox[hidden] { display: none; }
.lb-bar {
  grid-column: 1 / -1;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem;
  padding: 1rem var(--gutter);
}
.lb-label { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.lb-title {
  font-family: var(--font-display);
  font-weight: 700; font-stretch: 112%;
  font-size: clamp(1.1rem, 2.4vw, 1.7rem);
  text-transform: uppercase;
  line-height: 1;
}
.lb-sub { color: var(--muted-dark); text-transform: uppercase; }
.lb-controls { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.lb-count { color: var(--muted-dark); }
.lb-close {
  background: none; border: 0; color: var(--paper);
  font-size: 2rem; line-height: 1;
  width: 44px; height: 44px;
  cursor: pointer;
  transition: color 0.25s;
}
.lb-close:hover { color: var(--gold); }

.lb-stage {
  /* pinned to the middle column: the nav arrows are hidden on single-item
     projects, and without this the stage would auto-place into their cell */
  grid-row: 2; grid-column: 2;
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  padding: 0 0.5rem 1.5rem;
  min-height: 0;
}
.lb-img, .lb-video {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
}
.lb-video { width: min(100%, 78rem); }

.lb-nav {
  grid-row: 2;
  background: none; border: 0; color: var(--paper);
  font-size: 2.6rem; line-height: 1;
  width: 48px; height: 64px;
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 0.25s, color 0.25s;
}
.lb-nav:hover { opacity: 1; color: var(--gold); }
.lb-prev { grid-column: 1; }
.lb-next { grid-column: 3; }

/* ==========================================================================
   VISION
   ========================================================================== */
.vision { position: relative; overflow: hidden; }
.vision-media { position: absolute; inset: 0; }
.vision-media img {
  width: 100%; height: 112%; object-fit: cover; opacity: 0.42;
  will-change: transform;
}
.vision::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, var(--ink) 0%, transparent 26%, transparent 68%, var(--ink) 100%);
  pointer-events: none;
}
.vision-inner {
  position: relative; z-index: 1;
  padding: clamp(6rem, 16vw, 13rem) var(--gutter);
  max-width: 78rem; margin-inline: auto;
}
.vision-title { display: flex; flex-direction: column; margin-bottom: 2rem; }
.vision-serif {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: clamp(2.6rem, 8.5vw, 7.2rem);
  line-height: 1;
}
.vision-caps {
  font-family: var(--font-display);
  font-weight: 800; font-stretch: 122%;
  font-size: clamp(2.2rem, 7vw, 6rem);
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -0.01em;
  margin-left: clamp(0rem, 8vw, 7rem);
}
.vision-copy {
  max-width: 34em;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.55;
  color: var(--bone);
  margin-left: auto;
}
.vision-mail {
  display: inline-block;
  margin-top: 2.6rem;
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 0.1em;
  transition: color 0.3s;
}
.vision-mail:hover { color: var(--gold); }

/* ==========================================================================
   BOOK
   ========================================================================== */
.book { padding: clamp(5rem, 12vw, 10rem) var(--gutter); }
.book-grid {
  max-width: 78rem; margin-inline: auto;
  display: grid; grid-template-columns: 1fr; gap: 3rem;
}
.book-head .mono { color: var(--gold-deep); text-transform: uppercase; }
.book-title {
  margin-bottom: 1.6rem;
  font-size: clamp(2.5rem, 4.9vw, 4.6rem);
}
.book-sub { max-width: 32em; color: var(--muted-light); }

.book-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.7rem 2rem;
}
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field label { color: var(--muted-light); text-transform: uppercase; }
.field input, .field select, .field textarea {
  background: transparent;
  border: 0; border-bottom: 1px solid var(--line-light);
  border-radius: 0;
  padding: 0.6rem 0.1rem;
  font-size: 1.05rem;
  transition: border-color 0.3s;
  -webkit-appearance: none; appearance: none;
}
.field select { cursor: pointer; }
.field textarea { resize: vertical; min-height: 3.2rem; }
.field input::placeholder, .field textarea::placeholder { color: #9b968a; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--ink);
}
.field select:invalid { color: #9b968a; }

.book-actions { flex-direction: row; align-items: center; gap: 1.6rem; flex-wrap: wrap; margin-top: 0.4rem; }
.book-submit {
  display: inline-flex; align-items: center; gap: 0.9rem;
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 1rem 1.8rem;
  font-family: var(--font-mono);
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.14em;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}
.book-submit svg { width: 1.1em; height: 1.1em; transition: transform 0.35s var(--ease-out); }
.book-submit:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.book-submit:hover svg { transform: translateX(4px); }
.book-alt { color: var(--muted-light); }
.book-alt a { border-bottom: 1px solid var(--gold-deep); transition: color 0.3s; }
.book-alt a:hover { color: var(--gold-deep); }
.form-status { min-height: 1.2em; color: var(--gold-deep); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  padding: clamp(4rem, 9vw, 7rem) var(--gutter) 1.6rem;
  border-top: 1px solid var(--line-dark);
}
.footer-top {
  max-width: 78rem; margin-inline: auto;
  display: grid; grid-template-columns: 1fr;
  gap: 3.4rem;
  padding-bottom: 4rem;
}
.footer-lockup { display: flex; flex-direction: column; gap: 1.4rem; align-items: flex-start; }
.footer-lockup .logo-mark { width: clamp(4.4rem, 8vw, 6.5rem); }
.footer-wordmark {
  font-family: var(--font-display);
  font-weight: 800; font-stretch: 122%;
  font-size: clamp(2rem, 5.4vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
  display: flex; flex-direction: column;
}
.footer-wordmark em {
  font-style: normal; font-weight: 500;
  font-size: 0.34em; letter-spacing: 0.58em;
  color: var(--muted-dark);
  margin-top: 0.3em;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.4rem 1.6rem;
}
.footer-col { display: flex; flex-direction: column; gap: 0.55rem; align-items: flex-start; }
.footer-col-label { color: var(--muted-dark); margin-bottom: 0.4rem; text-transform: uppercase; }
.footer-col { min-width: 0; }
.footer-col a {
  font-size: 0.98rem;
  position: relative; padding-bottom: 1px;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.footer-col a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}
.footer-col a:hover::after { transform: scaleX(1); transform-origin: left; }
.footer-bottom {
  max-width: 78rem; margin-inline: auto;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-dark);
  color: var(--muted-dark);
  text-transform: uppercase;
}


/* ==========================================================================
   REVEALS — class added by JS only when it can also remove it, so the page
   is fully visible if scripts fail to load.
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(34px); }
.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (min-width: 700px) {
  .cap-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service-hint { display: block; }
  /* Editorial grid: tiles claim 2, 3 or 4 of 6 columns. Aspect follows the
     CONTENT (films are 16:9, stills 4:3) rather than the span, so nothing is
     ever re-cropped to fit a slot. Rows top-align, which staggers them the way
     the reference grid does. */
  .work-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: start; }
  .span-2 { grid-column: span 2; }
  .span-3 { grid-column: span 3; }
  .span-4 { grid-column: span 4; }
}

@media (min-width: 900px) {
  .header-nav { display: flex; }
  .menu-toggle { display: none; }
  .intro-grid { grid-template-columns: minmax(8rem, 14rem) 1fr; }
  .intro-chip { grid-column: 2; }
  .intro-cols { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .book-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 4rem; }
  .book-form { grid-template-columns: 1fr 1fr; align-content: start; }
  .field-wide { grid-column: 1 / -1; }
  .footer-top { grid-template-columns: 1.2fr 1fr; align-items: start; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  /* narrow tiles can't hold title and meta side by side without both wrapping */
  .work-tile figcaption { flex-direction: column; gap: 0.15rem; }
  .tile-meta { flex-wrap: wrap; gap: 0 0.5rem; }
}

@media (max-width: 480px) {
  .hero-top-right { display: none; }
  .hero-foot { flex-direction: column; align-items: flex-start; }
  .hero-scroll { display: none; }
  .work-head { flex-direction: column; }
  .work-count { text-align: left; }
}

/* ==========================================================================
   MOTION SAFETY
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; transform: none; }
  .hero-scroll-line { animation: none; }
}
