/* MVH Visuals stylesheet
   Brand tokens from the MVH brand board: Dark Charcoal, Graphite, Sage, Sand, White.
   Typography: Manrope (headlines, body), DM Mono (project data only). Fonts are self-hosted. */

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "DM Mono";
  src: url("../fonts/dm-mono.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --charcoal: #0D0E0F;
  --graphite: #2B2E31;
  --sage: #8A9A93;
  --sand: #EBE6E1;
  --white: #FFFFFF;

  /* light surfaces (Work, About) */
  --paper: var(--sand);
  --paper-ink: #16181A;
  --paper-muted: #5B605D;
  --paper-line: #D3CDC6;

  /* dark surfaces (Hero, Services, Contact, Footer) */
  --night: var(--charcoal);
  --night-ink: var(--sand);
  --night-muted: #9DA29F;
  --night-line: #2B2E31;

  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --max: 1440px;
  --section: clamp(5rem, 11vw, 10rem);
  --ease: cubic-bezier(.2, .7, .1, 1);

  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #151719;
    --paper-ink: var(--sand);
    --paper-muted: #9DA29F;
    --paper-line: #2B2E31;
  }
}
:root[data-theme="dark"] {
  --paper: #151719;
  --paper-ink: var(--sand);
  --paper-muted: #9DA29F;
  --paper-line: #2B2E31;
}

*, *::before, *::after { box-sizing: inherit; }
html { scroll-behavior: smooth; scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 5rem); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--night-ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "ss01" on;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--sand); color: var(--charcoal); padding: .75rem 1rem; text-decoration: none;
}
.skip-link:focus { top: calc(env(safe-area-inset-top, 0px) + 1rem); }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 3rem; padding: .8rem 1.5rem;
  border: 1px solid currentColor; border-radius: 0;
  background: transparent; text-decoration: none; font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  cursor: pointer; transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn--solid { background: var(--sand); color: var(--charcoal); border-color: var(--sand); }
.btn--solid:hover { background: var(--white); border-color: var(--white); }
.btn--ghost:hover { background: rgba(235, 230, 225, .1); }
.btn--dark { background: var(--charcoal); color: var(--sand); border-color: var(--charcoal); }
.btn--dark:hover { background: var(--graphite); border-color: var(--graphite); }

.text-link {
  text-decoration: none; font-weight: 600;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 2px; transition: background-size .3s var(--ease);
}
.text-link:hover { background-size: 0 1px; background-position: 100% 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  color: var(--sand);
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-solid {
  background: rgba(13, 14, 15, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom-color: rgba(235, 230, 225, .08);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 2rem; height: 4.5rem; }
.brand { display: inline-flex; align-items: center; text-decoration: none; color: inherit; }
.brand svg { width: 4.75rem; height: auto; }
.nav ul { display: flex; align-items: center; gap: clamp(1.25rem, 2.4vw, 2.25rem); list-style: none; margin: 0; padding: 0; }
.nav a:not(.btn) { text-decoration: none; font-size: .95rem; font-weight: 500; opacity: .82; transition: opacity .2s; }
.nav a:not(.btn):hover, .nav a[aria-current="true"] { opacity: 1; }
.nav .btn { min-height: 2.6rem; padding: .55rem 1.1rem; font-size: .9rem; }
.menu-toggle { display: none; }

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex; align-items: center; gap: .6rem;
    background: none; border: 0; padding: .6rem 0; cursor: pointer; font-weight: 600; font-size: .95rem;
  }
  .menu-toggle .bars { width: 1.4rem; height: .7rem; position: relative; }
  .menu-toggle .bars::before, .menu-toggle .bars::after {
    content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .3s var(--ease), top .3s var(--ease);
  }
  .menu-toggle .bars::before { top: 0; }
  .menu-toggle .bars::after { top: calc(100% - 1.5px); }
  .menu-open .menu-toggle .bars::before { top: calc(50% - .75px); transform: rotate(45deg); }
  .menu-open .menu-toggle .bars::after { top: calc(50% - .75px); transform: rotate(-45deg); }

  .nav {
    position: fixed; inset: 0; z-index: -1;
    background: var(--charcoal);
    padding: calc(env(safe-area-inset-top, 0px) + 6rem) var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 2rem);
    display: flex; flex-direction: column;
    opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility 0s linear .3s;
  }
  .menu-open .nav { opacity: 1; visibility: visible; transition: opacity .3s var(--ease); }
  .nav ul { flex-direction: column; align-items: flex-start; gap: .25rem; }
  .nav a:not(.btn) { font-size: clamp(2rem, 9vw, 2.75rem); font-weight: 500; letter-spacing: -.02em; opacity: 1; line-height: 1.35; }
  .nav .btn { margin-top: 1.5rem; font-size: 1rem; min-height: 3.25rem; padding: .8rem 1.5rem; }
  .menu-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; min-height: 100vh;
  display: grid; align-items: end; overflow: hidden; background: var(--charcoal);
  isolation: isolate;
}
@supports (height: 100svh) { .hero { min-height: 100svh; } }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img, .hero__media video { width: 100%; height: 100%; object-fit: cover; }
.hero__media video { position: absolute; inset: 0; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(13,14,15,.55) 0%, rgba(13,14,15,0) 22%),
    linear-gradient(0deg, rgba(13,14,15,.88) 0%, rgba(13,14,15,.45) 38%, rgba(13,14,15,0) 65%);
}
.hero__inner {
  width: 100%; max-width: var(--max); margin-inline: auto;
  padding: 8rem var(--gutter) clamp(2.5rem, 6vw, 4.5rem);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 2rem 4rem;
}
.hero__lockup { max-width: 40rem; }
.hero__mark { width: clamp(15rem, 42vw, 34rem); color: var(--sand); }
.hero__visuals {
  display: block; margin-top: clamp(.9rem, 1.6vw, 1.4rem);
  font-size: clamp(1rem, 2.1vw, 1.7rem); font-weight: 400;
  color: var(--sand); width: clamp(15rem, 42vw, 34rem);
  display: flex; justify-content: space-between; line-height: 1;
}
.hero__tagline {
  margin-top: 1.4rem; font-size: clamp(.8rem, 1.1vw, .95rem); font-weight: 500;
  letter-spacing: .28em; text-transform: uppercase; color: rgba(235, 230, 225, .78);
}
.hero__copy { max-width: 26rem; justify-self: end; }
.hero__lead { font-size: clamp(1.35rem, 2.2vw, 1.8rem); line-height: 1.25; font-weight: 500; letter-spacing: -.015em; }
.hero__sub { margin-top: .9rem; color: rgba(235, 230, 225, .78); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero__caption {
  position: absolute; right: var(--gutter); top: calc(env(safe-area-inset-top, 0px) + 5.5rem);
  display: flex; align-items: center; gap: .9rem;
  font-family: var(--mono); font-size: .75rem; color: rgba(235, 230, 225, .75);
}
.motion-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border: 1px solid rgba(235, 230, 225, .4); background: rgba(13,14,15,.3);
  color: var(--sand); cursor: pointer; padding: 0;
}
.motion-toggle svg { width: .7rem; height: .7rem; }
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; gap: 2rem; padding-top: 7rem; }
  .hero__copy { justify-self: start; }
}

/* logo draw-on (one orchestrated moment, on load) */
.js .hero__mark path { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
.js .is-drawn .hero__mark path { animation: draw 1s var(--ease) forwards; animation-delay: var(--d); }
.js .hero__visuals, .js .hero__tagline, .js .hero__copy { opacity: 0; transform: translateY(10px); }
.hero__visuals span, .footer__brand .visuals span { display: block; }
.js .is-drawn .hero__visuals, .js .is-drawn .hero__tagline, .js .is-drawn .hero__copy {
  animation: rise .9s var(--ease) forwards;
}
.js .is-drawn .hero__visuals { animation-delay: 1.35s; }
.js .is-drawn .hero__tagline { animation-delay: 1.55s; }
.js .is-drawn .hero__copy { animation-delay: 1.75s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Section basics ---------- */
.section { padding-block: var(--section); }
.section--paper { background: var(--paper); color: var(--paper-ink); }
.section--night { background: var(--night); color: var(--night-ink); }
.section-head {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 1.5rem 3rem; align-items: end;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.section-title {
  font-size: clamp(3rem, 8.5vw, 7.5rem); line-height: .92; font-weight: 500; letter-spacing: -.045em;
}
.section-intro { max-width: 32rem; color: var(--muted, inherit); font-size: 1.125rem; }
.section--paper .section-intro { color: var(--paper-muted); }
.section--night .section-intro { color: var(--night-muted); }
@media (max-width: 760px) { .section-head { grid-template-columns: 1fr; } }

.meta { font-family: var(--mono); font-size: .8rem; line-height: 1.5; letter-spacing: 0; }
.section--paper .meta { color: var(--paper-muted); }

/* ---------- Work ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.filter {
  border: 1px solid var(--paper-line); background: transparent; color: var(--paper-ink);
  padding: .55rem 1.1rem; min-height: 2.75rem; font-size: .92rem; font-weight: 500; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.filter:hover { border-color: var(--paper-ink); }
.filter[aria-pressed="true"] { background: var(--paper-ink); color: var(--paper); border-color: var(--paper-ink); }
.filter .count { font-family: var(--mono); font-size: .75rem; opacity: .6; margin-left: .35rem; }

.grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(2.5rem, 5vw, 4.5rem) clamp(1rem, 2.5vw, 2rem);
  grid-auto-flow: row dense;
}
.card { grid-column: span 12; position: relative; }
.card[hidden] { display: none; }
.card__link { display: block; text-decoration: none; color: inherit; }
.card__media { position: relative; overflow: hidden; background: var(--graphite); }
.card__media img, .card__media video { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.card__media video { position: absolute; inset: 0; opacity: 0; transition: opacity .5s var(--ease); }
.card.is-previewing .card__media video { opacity: 1; }
.card__link:hover .card__media img { transform: scale(1.025); }
.card__body { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem 2rem; flex-wrap: wrap; padding-top: 1rem; }
.card__title { font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.card__badge {
  position: absolute; left: 1rem; bottom: 1rem; display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(13, 14, 15, .7); color: var(--sand); padding: .45rem .7rem; font-family: var(--mono); font-size: .75rem;
}
.card__badge svg { width: .65rem; height: .65rem; }

.card--featured .card__media { aspect-ratio: 16 / 8; }
.card--featured .card__title { font-size: clamp(1.75rem, 3.6vw, 3rem); letter-spacing: -.035em; }
.card--featured .card__summary { max-width: 34rem; color: var(--paper-muted); margin-top: .5rem; }

@media (min-width: 761px) {
  .card--tall { grid-column: span 5; }
  .card--tall .card__media { aspect-ratio: 4 / 5; }
  .card--wide { grid-column: span 7; align-self: end; }
  .card--wide .card__media { aspect-ratio: 16 / 11; }
  .card--mid { grid-column: span 5; }
  .card--mid .card__media { aspect-ratio: 4 / 3; }
  .card--narrow { grid-column: span 4; }
  .card--narrow .card__media { aspect-ratio: 3 / 4; }
  .card--offset { margin-top: clamp(0rem, 8vw, 7rem); }
  .card--slot { grid-column: span 3; }
}
@media (max-width: 760px) {
  .card__media { aspect-ratio: 4 / 3; }
  .card--tall .card__media, .card--narrow .card__media { aspect-ratio: 4 / 5; }
  .card--featured .card__media { aspect-ratio: 4 / 3; }
}

.card--slot .slot {
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; height: 100%; min-height: 16rem;
  border: 1px dashed var(--paper-line); padding: 1.5rem; text-decoration: none; color: inherit;
  transition: border-color .25s, background-color .25s;
}
.card--slot .slot:hover { border-color: var(--paper-ink); background: rgba(13, 14, 15, .03); }
.slot__title { font-size: 1.35rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; }
.slot p { color: var(--paper-muted); font-size: .98rem; margin-top: .5rem; }

.empty-filter { display: none; color: var(--paper-muted); }
.empty-filter.is-visible { display: block; }

/* image reveal */
.js .reveal { opacity: 0; transition: opacity 1s var(--ease); }
.js .reveal.is-in { opacity: 1; }

/* ---------- Services ---------- */
.services { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--night-line); }
.service {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) 15rem; gap: 1rem 3rem; align-items: start;
  padding-block: clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--night-line);
}
.service__name { font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: 1; font-weight: 500; letter-spacing: -.035em; }
.service__desc { color: var(--night-muted); max-width: 36rem; padding-top: .35rem; }
.service__desc strong { color: var(--night-ink); font-weight: 600; }
.service .text-link { white-space: nowrap; margin-top: .35rem; color: var(--sand); justify-self: end; }
@media (max-width: 860px) { .service .text-link { justify-self: start; } }
@media (max-width: 860px) {
  .service { grid-template-columns: 1fr; }
}

.process { margin-top: clamp(4rem, 8vw, 6rem); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 2rem 3rem; }
.process__title { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 500; letter-spacing: -.025em; line-height: 1.2; }
.process__title + p { color: var(--night-muted); margin-top: .75rem; max-width: 22rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; counter-reset: step; }
.steps li { counter-increment: step; border-top: 1px solid var(--night-line); padding-top: 1rem; }
.steps li::before { content: counter(step); font-family: var(--mono); font-size: .8rem; color: var(--sage); display: block; margin-bottom: .75rem; }
.steps h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: .35rem; }
.steps p { color: var(--night-muted); font-size: .95rem; }
@media (max-width: 1000px) { .process { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr 1fr; } }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.about__visual { position: relative; }
.portrait-slot {
  aspect-ratio: 4 / 5; background: var(--graphite); color: var(--night-muted);
  display: grid; place-items: center; text-align: center; padding: 2rem;
  font-family: var(--mono); font-size: .8rem;
}
.about__aside { width: 58%; margin: -22% 0 0 auto; position: relative; border: .5rem solid var(--paper); }
.about__aside figcaption { font-family: var(--mono); font-size: .75rem; color: var(--paper-muted); padding-top: .5rem; background: var(--paper); }
.about__title { font-size: clamp(2.5rem, 6vw, 5rem); line-height: .95; font-weight: 500; letter-spacing: -.045em; margin-bottom: 2rem; }
.about__text p { font-size: 1.125rem; max-width: 36rem; }
.about__text p + p { margin-top: 1.1rem; }
.about__text .lead { font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.35; font-weight: 500; letter-spacing: -.015em; }
.about__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2.5rem; border-top: 1px solid var(--paper-line); padding-top: 1.25rem; max-width: 36rem; }
.about__facts dt { font-family: var(--mono); font-size: .75rem; color: var(--paper-muted); }
.about__facts dd { font-weight: 600; margin-top: .2rem; }
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .about__visual { max-width: 30rem; }
}

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2.5rem, 6vw, 6rem); }
.contact__title { font-size: clamp(3rem, 8vw, 7rem); line-height: .92; font-weight: 500; letter-spacing: -.045em; }
.contact__intro { color: var(--night-muted); margin-top: 1.5rem; max-width: 24rem; font-size: 1.1rem; }
.contact__direct { margin-top: 2.5rem; border-top: 1px solid var(--night-line); padding-top: 1.25rem; }
.contact__direct dt { font-family: var(--mono); font-size: .75rem; color: var(--night-muted); }
.contact__direct dd { font-size: 1.15rem; font-weight: 600; margin: .2rem 0 1.25rem; }
.placeholder { color: var(--sage); font-weight: 500; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 1.5rem; }
.field { display: flex; flex-direction: column; gap: .45rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .9rem; font-weight: 600; }
.field .opt { font-weight: 400; color: var(--night-muted); }
.field input, .field select, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid #45494C; border-radius: 0;
  padding: .7rem 0; font-size: 1.05rem; color: var(--sand); transition: border-color .2s;
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--sand) 50%), linear-gradient(135deg, var(--sand) 50%, transparent 50%);
  background-position: calc(100% - 10px) 55%, calc(100% - 5px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 1.5rem;
}
.field select option { background: var(--charcoal); color: var(--sand); }
.field textarea { min-height: 9rem; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--sand); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { box-shadow: 0 2px 0 0 var(--sage); }
.field input::placeholder, .field textarea::placeholder { color: #6E7370; }
.field [aria-invalid="true"] { border-bottom-color: #D08A7E; }
.field .error { color: #E3A89D; font-size: .85rem; min-height: 0; }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-top: .5rem; }
.form__note { color: var(--night-muted); font-size: .88rem; max-width: 28rem; }
.form__note a { color: var(--sand); }
.form__status { grid-column: 1 / -1; border-left: 2px solid var(--sage); padding: .25rem 0 .25rem 1rem; }
.form__status[hidden] { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: var(--sand); border-top: 1px solid var(--night-line); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer__top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2.5rem 4rem; align-items: start; }
.footer__brand svg { width: 7.5rem; }
.footer__brand .visuals { display: flex; justify-content: space-between; font-size: .8rem; line-height: 1; margin-top: .6rem; width: 7.5rem; }
.footer__tag { margin-top: 1rem; font-size: .8rem; letter-spacing: .24em; text-transform: uppercase; color: var(--night-muted); }
.footer__cols { display: flex; gap: clamp(2.5rem, 6vw, 5rem); flex-wrap: wrap; }
.footer__cols h2 { font-family: var(--mono); font-size: .75rem; font-weight: 400; color: var(--night-muted); margin-bottom: .75rem; }
.footer__cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.footer__cols a { text-decoration: none; opacity: .85; }
.footer__cols a:hover { opacity: 1; text-decoration: underline; }
.footer__legal {
  margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--night-line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem;
  font-family: var(--mono); font-size: .75rem; color: var(--night-muted);
}
.footer__legal ul { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; list-style: none; margin: 0; padding: 0; }
@media (max-width: 700px) { .footer__top { grid-template-columns: 1fr; } }

/* ---------- Project page ---------- */
.project-page { background: var(--paper); color: var(--paper-ink); padding-top: 4.5rem; }
.project { padding-block: clamp(2.5rem, 5vw, 4rem) clamp(4rem, 8vw, 7rem); }
.project__back { margin-bottom: clamp(2rem, 4vw, 3rem); }
.project__back a { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 600; font-size: .95rem; }
.project__back svg { width: 1rem; height: 1rem; }
.project__back a:hover { text-decoration: underline; text-underline-offset: .2em; }
.project__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2rem 4rem; align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.project__title { font-size: clamp(2.75rem, 7vw, 6rem); line-height: .95; font-weight: 500; letter-spacing: -.045em; }
.project__desc { margin-top: 1.5rem; max-width: 38rem; font-size: 1.15rem; color: var(--paper-muted); }
.project__facts { display: grid; grid-template-columns: auto 1fr; gap: .6rem 1.5rem; border-top: 1px solid var(--paper-line); padding-top: 1rem; }
.project__facts dt { font-family: var(--mono); font-size: .78rem; color: var(--paper-muted); padding-top: .15rem; }
.project__facts dd { font-weight: 500; }
@media (max-width: 760px) { .project__head { grid-template-columns: 1fr; } }

/* Content from the WordPress editor */
.project__content > * + * { margin-top: clamp(1rem, 2vw, 1.5rem); }
.project__content figure { margin: 0; }
.project__content img, .project__content video { display: block; width: 100%; height: auto; background: var(--graphite); }
.project__content figcaption, .project__content .wp-element-caption { font-family: var(--mono); font-size: .75rem; color: var(--paper-muted); padding-top: .5rem; margin: 0; text-align: left; }
.project__content h2, .project__content h3 { font-size: 1.1rem; font-weight: 600; letter-spacing: -.01em; margin-top: clamp(2rem, 4vw, 3rem); }
.project__content p { max-width: 42rem; font-size: 1.075rem; }
.project__content .wp-block-columns { display: flex; gap: clamp(1rem, 2vw, 1.5rem); margin-bottom: 0; }
.project__content .wp-block-column { flex: 1 1 0; min-width: 0; }
.project__content .wp-block-column > * + * { margin-top: clamp(1rem, 2vw, 1.5rem); }
.project__content .wp-block-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.project__content .wp-block-gallery.columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.project__content .wp-block-gallery figure { width: auto !important; }
.project__content .wp-block-gallery.is-cropped img { aspect-ratio: 4 / 3; object-fit: cover; height: 100%; }
.project__content .wp-block-embed__wrapper { position: relative; aspect-ratio: 16 / 9; }
.project__content .wp-block-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (max-width: 760px) {
  .project__content .wp-block-columns { flex-direction: column; }
  .project__content .wp-block-gallery { grid-template-columns: 1fr; }
}
.project__next {
  margin-top: clamp(4rem, 8vw, 6rem); border-top: 1px solid var(--paper-line); padding-top: 2rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1.5rem;
}
.project__next p { font-size: clamp(1.4rem, 2.6vw, 2.2rem); font-weight: 500; letter-spacing: -.025em; line-height: 1.15; max-width: 30rem; }
.project__next .meta { display: block; margin-bottom: .5rem; }
.project__next-link { text-decoration: none; }
.project__next-link:hover .next-title { text-decoration: underline; text-underline-offset: .15em; text-decoration-thickness: 1px; }

/* ---------- Legal pages ---------- */
.legal { padding-block: 9rem 6rem; background: var(--paper); color: var(--paper-ink); min-height: 70vh; }
.legal h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1; font-weight: 500; letter-spacing: -.04em; margin-bottom: 2rem; }
.legal h2 { font-size: 1.25rem; margin: 2.5rem 0 .75rem; }
.legal p, .legal li { max-width: 42rem; }
.legal p + p { margin-top: 1rem; }
.legal .note { border-left: 2px solid var(--sage); padding-left: 1rem; color: var(--paper-muted); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .js .hero__mark path { stroke-dashoffset: 0; }
  .js .hero__visuals, .js .hero__tagline, .js .hero__copy, .js .reveal { opacity: 1; transform: none; }
  .card__link:hover .card__media img { transform: none; }
}

/* ---------- WordPress specifics ---------- */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about__aside img { width: 100%; }
.slot__text { display: block; color: var(--paper-muted); font-size: .98rem; margin-top: .5rem; }
.card__media img { aspect-ratio: inherit; }
.legal .page-body > * + * { margin-top: 1rem; }
.legal .page-body h2 { font-size: 1.25rem; margin: 2.5rem 0 .75rem; }
.legal .page-body h3 { font-size: 1.05rem; margin: 2rem 0 .5rem; }
.legal .page-body ul, .legal .page-body ol { max-width: 42rem; padding-left: 1.25rem; }
.legal .page-body a { color: inherit; }
.legal .page-body img { height: auto; }
.post-item + .post-item { margin-top: 3rem; }
.hero__media img { position: absolute; inset: 0; }

/* Hero film fades in over the photo once it actually plays */
.hero__media video { opacity: 0; transition: opacity .8s var(--ease); }
.hero__media video.is-playing { opacity: 1; }
