/* ==========================================================================
   Metro Cabinet Company - homepage concept
   Design language: Nordic Minimal (#2) - type, spacing, composition, motion ONLY
   Palette: Metro's REAL monochrome brand (logo #B8BBBC silver + black/white)
   ========================================================================== */

:root {
  /* Backgrounds - Metro's monochrome brand */
  --ink:          #0b0c0d;
  --ink-2:        #16181a;
  --ink-3:        #212426;
  --paper:        #f6f6f5;
  --mist:         #e8e9ea;
  --white:        #ffffff;

  /* Accent - EXACT silver from their logo mark */
  --silver:        #b8bbbc;
  --silver-bright: #d5d7d8;
  --silver-deep:   #8b8f91;
  /* same neutral, deepened for small text on PAPER/WHITE. --silver-deep is
     tuned for small text on ink; one token could not serve both (rule 51). */
  --silver-ink:    #6c7072;
  --silver-muted:  rgba(184, 187, 188, 0.30);

  /* Text */
  --text-dark:        #0b0c0d;
  --text-body:        #4a4d4f;
  --text-muted:       #6f6f75;
  --text-light:       #f6f6f5;
  /* 0.62 -> 0.85: nav links sit on the transparent nav over a near-white
     ceiling photo and sampled 3.06:1 (rule 51) */
  --text-light-muted: rgba(246, 246, 245, 0.85);

  /* Typography - Nordic Minimal pairing */
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --container:  min(90%, 1180px);
  --container-narrow: min(88%, 940px);
  --gutter:     clamp(1.25rem, 4vw, 3rem);
  --section-y:  clamp(3.5rem, 8vw, 7rem);
  --nav-height: 78px;

  /* Motion - Nordic Minimal: subtle and quick */
  --ease:        cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text-body);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 400; line-height: 1.12; }
p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }
::selection { background: var(--silver); color: var(--ink); }

.container { width: var(--container); margin-inline: auto; }
.container-narrow { width: var(--container-narrow); margin-inline: auto; }

/* Nordic Minimal: fade-only reveals, no vertical drama */
.reveal { opacity: 0; }
html:not(.js) .reveal { opacity: 1; }

/* ------------------------------------------------------------- eyebrow */
.eyebrow {
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--silver-ink);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}
.eyebrow::before {
  content: '';
  width: 34px;
  height: 1px;
  background: var(--silver);
  flex: none;
}
/* silver -> silver-bright: same logo neutral, one step up its own scale, for
   small eyebrows sitting over photography (rule 51, monochrome brand) */
.eyebrow--light { color: var(--silver-bright); }
.eyebrow--center { justify-content: center; }

/* ------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease),
              border-color 0.35s var(--ease), transform 0.35s var(--ease);
  min-height: 46px;
}
.btn__icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  transition: transform 0.35s var(--ease);
}
.btn__icon svg { width: 11px; height: 11px; }
.btn:hover .btn__icon { transform: translateX(3px); }

.btn--solid { background: var(--white); color: var(--ink); }
.btn--solid .btn__icon { background: var(--ink); color: var(--white); }
.btn--solid:hover { background: var(--silver-bright); }

.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark .btn__icon { background: var(--silver); color: var(--ink); }
.btn--dark:hover { background: var(--ink-3); }

.btn--ghost { border-color: rgba(246,246,245,0.35); color: var(--text-light); }
.btn--ghost .btn__icon { border: 1px solid rgba(246,246,245,0.4); }
.btn--ghost:hover { border-color: var(--silver); background: rgba(246,246,245,0.06); }

.btn--outline { border-color: rgba(11,12,13,0.22); color: var(--ink); }
.btn--outline .btn__icon { border: 1px solid rgba(11,12,13,0.25); }
.btn--outline:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn--outline:hover .btn__icon { border-color: rgba(246,246,245,0.4); }

/* ----------------------------------------------------------------- nav */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  /* must sit ABOVE .menu so the hamburger is always clickable (rule 20).
     .nav creates a stacking context, so a child z-index cannot escape it. */
  z-index: 200;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  background: rgba(11,12,13,0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: rgba(184,187,188,0.16);
}
.nav__inner {
  width: var(--container);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.nav__logo img {
  width: auto;
  height: 30px;
  max-width: 180px;
  object-fit: contain;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2.4vw, 2.1rem);
  list-style: none;
  margin: 0; padding: 0;
}
.nav__links a {
  font-size: 0.75rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-light-muted);
  transition: color 0.3s var(--ease);
  padding-block: 0.5rem;
}
.nav__links a:hover { color: var(--white); }
.nav__cta { display: inline-flex; }
.nav__cta .btn { padding: 0.7rem 1.25rem; min-height: 42px; }

.nav__toggle {
  display: none;
  width: 46px; height: 46px;
  background: none;
  border: 0;
  cursor: pointer;
  position: relative;
  z-index: 210;
  padding: 0;
}
.nav__toggle span {
  position: absolute;
  left: 12px;
  width: 22px; height: 1.5px;
  background: var(--white);
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
}
.nav__toggle span:nth-child(1) { top: 18px; }
.nav__toggle span:nth-child(2) { top: 24px; }
.nav__toggle span:nth-child(3) { top: 30px; }
body.menu-open .nav__toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.menu-open .nav__toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav__toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* --------------------------------------------------------- mobile menu */
.menu {
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 150;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem var(--gutter) 3rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
  overflow-y: auto;
}
body.menu-open .menu { opacity: 1; visibility: visible; }
.menu__links { list-style: none; margin: 0 0 2rem; padding: 0; }
.menu__links a {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 8vw, 2.9rem);
  color: var(--text-light);
  padding-block: 0.45rem;
  transition: color 0.3s var(--ease);
}
.menu__links a:hover { color: var(--silver); }
.menu__divider { height: 1px; background: rgba(184,187,188,0.22); margin-bottom: 2rem; }
.menu__contact a {
  display: block;
  color: var(--text-light-muted);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  padding-block: 0.65rem;
}
.menu__contact a:hover { color: var(--silver); }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: var(--ink);
}
.hero__media { position: absolute; inset: -6% 0 0; }
.hero__media img { width: 100%; height: 112%; object-fit: cover; }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    /* mid-band lifted 0.28 -> 0.52: the "Sarasota, Florida" eyebrow sat in the
       thin part of the scrim over a bright wall and read 2.35:1 (rule 51) */
    linear-gradient(to top, rgba(11,12,13,0.92) 0%, rgba(11,12,13,0.66) 38%, rgba(11,12,13,0.52) 65%, rgba(11,12,13,0.68) 100%);
}
.hero__inner {
  position: relative;
  width: var(--container);
  margin-inline: auto;
  padding-bottom: clamp(3rem, 7vh, 5.5rem);
  z-index: 2;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 6.2vw, 5.1rem);
  max-width: 17ch;
  margin-bottom: 1.5rem;
}
.hero__sub {
  color: var(--text-light-muted);
  font-size: clamp(1rem, 1.7vw, 1.175rem);
  max-width: 52ch;
  margin-bottom: 2.25rem;
  font-weight: 300;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.hero__meta {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  border-top: 1px solid rgba(184,187,188,0.2);
  z-index: 2;
  display: none;
}
.hero__meta-inner {
  width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.hero__meta-item {
  padding: 1.1rem 0;
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-light-muted);
}
.hero__meta-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--white);
  font-weight: 400;
  margin-top: 0.2rem;
}

/* -------------------------------------------------------------- intro */
.intro {
  background: var(--ink);
  color: var(--text-light);
  padding-block: var(--section-y);
}
.intro__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.intro h2 {
  color: var(--white);
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  max-width: 16ch;
}
.intro__body { color: var(--text-light-muted); font-size: 1.0625rem; }
.intro__quote {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(184,187,188,0.2);
}
.intro__quote blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.1vw, 1.6rem);
  line-height: 1.4;
  color: var(--silver-bright);
}
.intro__quote cite {
  display: block;
  margin-top: 0.9rem;
  font-style: normal;
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver-ink);
}

/* ------------------------------------------- SIGNATURE: proportion study */
.study {
  background: var(--ink-2);
  color: var(--text-light);
  padding-block: var(--section-y);
  overflow: hidden;
}
.study__head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.study__head h2 {
  color: var(--white);
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  margin-bottom: 1.1rem;
}
.study__head p { color: var(--text-light-muted); max-width: 46ch; }

.study__stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  border: 1px solid rgba(184,187,188,0.18);
  overflow: hidden;
}
.study__stage img { width: 100%; height: 100%; object-fit: cover; }
/* keeps the drafting layer legible over bright photography */
.study__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(11,12,13,0.42), rgba(11,12,13,0.30) 45%, rgba(11,12,13,0.46));
  pointer-events: none;
}
.study__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.study__overlay .line {
  fill: none;
  stroke: var(--silver-bright);
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: var(--len, 1200);
  stroke-dashoffset: var(--len, 1200);
}
.study__overlay .line--fine {
  stroke: rgba(213,215,216,0.55);
  stroke-width: 1;
  stroke-dasharray: 5 6;
  stroke-dashoffset: 0;
  opacity: 0;
}
.study__overlay .tick {
  stroke: var(--silver-bright);
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
  opacity: 0;
}
.study__overlay .node {
  fill: none;
  stroke: var(--silver-bright);
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
  opacity: 0;
}
.study__overlay text {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.18em;
  fill: var(--silver-bright);
  opacity: 0;
}
.study__overlay .dim-label {
  font-size: 13px;
  letter-spacing: 0.12em;
  fill: rgba(213,215,216,0.85);
}

.study__legend {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 1px;
  background: rgba(184,187,188,0.18);
  border: 1px solid rgba(184,187,188,0.18);
  border-top: 0;
}
.study__legend-item {
  background: var(--ink-2);
  padding: 1.35rem 1.25rem;
  transition: background 0.4s var(--ease);
}
.study__legend-item.is-on { background: var(--ink-3); }
.study__legend-num {
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  color: var(--silver-deep);
  display: block;
  margin-bottom: 0.55rem;
}
.study__legend-item h3 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.study__legend-item p {
  font-size: 0.875rem;
  color: var(--text-light-muted);
  line-height: 1.6;
}
.study__hint {
  margin-top: 1.25rem;
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver-deep);
}

/* -------------------------------------------------------------- work */
.work { background: var(--paper); padding-block: var(--section-y); }
.work__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}
.work__head h2 {
  color: var(--ink);
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  max-width: 15ch;
}
.work__head p { color: var(--text-muted); max-width: 34ch; margin: 0; }

.work__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.75rem, 1.6vw, 1.25rem);
}
.project {
  position: relative;
  overflow: hidden;
  background: var(--mist);
  aspect-ratio: 4 / 3;
  display: block;
}
.project--feature { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
.project img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-smooth), filter 0.6s var(--ease);
}
.project:hover img { transform: scale(1.045); }
.project__label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.5rem 1.35rem 1.15rem;
  /* scrim carried further up the label so the small category eyebrow is covered
     too; it previously sat where the gradient had faded out (rule 51) */
  background: linear-gradient(to top, rgba(11,12,13,0.92) 0%, rgba(11,12,13,0.78) 55%, rgba(11,12,13,0.4) 85%, rgba(11,12,13,0) 100%);
  color: var(--white);
}
.project__label span {
  display: block;
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver-bright);
  margin-bottom: 0.3rem;
}
.project__label h3 {
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  color: var(--white);
}

/* ---------------------------------------------------------- services */
.services { background: var(--white); padding-block: var(--section-y); }
.services__head { margin-bottom: clamp(2rem, 4vw, 3rem); max-width: 44rem; }
.services__head h2 { color: var(--ink); font-size: clamp(1.9rem, 3.6vw, 3rem); margin-bottom: 1rem; }
.services__head p { color: var(--text-muted); }
.services__list {
  border-top: 1px solid rgba(11,12,13,0.12);
}
.service {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: clamp(1.4rem, 2.6vw, 2rem) 0;
  border-bottom: 1px solid rgba(11,12,13,0.12);
  align-items: baseline;
  transition: background 0.4s var(--ease);
}
.service:hover { background: var(--paper); }
.service__num {
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  color: var(--silver-ink);
  font-weight: 500;
}
.service h3 {
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  color: var(--ink);
}

/* ---------------------------------------------------------- process */
.process { background: var(--ink); color: var(--text-light); padding-block: var(--section-y); }
.process__head { max-width: 44rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.process__head h2 { color: var(--white); font-size: clamp(1.9rem, 3.6vw, 3rem); margin-bottom: 1rem; }
.process__head p { color: var(--text-light-muted); }
.process__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(184,187,188,0.2);
  border: 1px solid rgba(184,187,188,0.2);
}
.step { background: var(--ink); padding: clamp(1.6rem, 3vw, 2.4rem); }
.step__num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--silver-deep);
  line-height: 1;
  display: block;
  margin-bottom: 1.25rem;
}
.step h3 {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.85rem;
}
.step p { color: var(--text-light-muted); font-size: 0.9375rem; }

/* ------------------------------------------------------- testimonial */
.testimonial { background: var(--paper); padding-block: var(--section-y); }
.testimonial__inner { text-align: center; }
.testimonial blockquote {
  margin: 0 auto;
  max-width: 34rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.6vw, 1.95rem);
  line-height: 1.45;
  color: var(--ink);
}
.testimonial cite {
  display: block;
  margin-top: 1.75rem;
  font-style: normal;
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver-ink);
}

/* -------------------------------------------------------------- team */
.team { background: var(--white); padding-block: var(--section-y); }
.team__head { margin-bottom: clamp(2rem, 4vw, 3rem); max-width: 44rem; }
.team__head h2 { color: var(--ink); font-size: clamp(1.9rem, 3.6vw, 3rem); margin-bottom: 1rem; }
.team__head p { color: var(--text-muted); }
.team__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(11,12,13,0.12);
  border: 1px solid rgba(11,12,13,0.12);
}
.member { background: var(--white); padding: clamp(1.5rem, 2.6vw, 2rem); }
.member__rule { width: 26px; height: 1px; background: var(--silver); margin-bottom: 1.1rem; }
.member h3 {
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.member span {
  display: block;
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------- cta */
.cta {
  position: relative;
  background: var(--ink);
  color: var(--text-light);
  padding-block: clamp(4rem, 9vw, 7.5rem);
  overflow: hidden;
}
.cta__bg { position: absolute; inset: 0; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.22; }
.cta__bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(11,12,13,0.94) 0%, rgba(11,12,13,0.72) 100%);
}
.cta__inner { position: relative; z-index: 2; }
.cta h2 {
  color: var(--white);
  font-size: clamp(2rem, 4.4vw, 3.5rem);
  max-width: 18ch;
  margin-bottom: 1.25rem;
}
.cta p { color: var(--text-light-muted); max-width: 46ch; margin-bottom: 2.25rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* ------------------------------------------------------------ footer */
.footer { background: var(--ink-2); color: var(--text-light-muted); padding-block: clamp(2.5rem, 5vw, 4rem); }
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(184,187,188,0.18);
}
.footer__logo img { width: auto; height: 30px; max-width: 180px; object-fit: contain; margin-bottom: 1.25rem; }
.footer__tag { font-size: 0.9375rem; max-width: 30ch; }
.footer h4 {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 1.1rem;
  font-weight: 500;
}
.footer__list { list-style: none; margin: 0; padding: 0; }
.footer__list a, .footer__list li {
  display: block;
  font-size: 0.9375rem;
  padding-block: 0.65rem;
  line-height: 1.5;
}
.footer__list a { transition: color 0.3s var(--ease); }
.footer__list a:hover { color: var(--silver-bright); }
.footer__bottom {
  padding-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

/* ------------------------------------------------------ 404 (shared) */
.error-section {
  min-height: 100vh;
  min-height: 100svh;
  background: var(--ink);
  color: var(--text-light);
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 3rem) 0 4rem;
}
.error__code {
  font-family: var(--font-display);
  font-size: clamp(6rem, 22vw, 15rem);
  line-height: 0.9;
  color: var(--silver-muted);
  margin-bottom: 1.5rem;
}
.error__title { color: var(--white); font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 1.15rem; }
.error__body { color: var(--text-light-muted); max-width: 44ch; margin-bottom: 2.25rem; }

/* --------------------------------------------------------- responsive */
@media (max-width: 1024px) {
  .work__grid { grid-template-columns: repeat(2, 1fr); }
  .team__grid { grid-template-columns: repeat(2, 1fr); }
  .study__legend { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .intro__grid { grid-template-columns: 1fr; }
  .process__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero { height: auto; min-height: 100svh; padding-top: calc(var(--nav-height) + 2rem); }
  .hero__media img { height: 100%; }
  .hero__inner { padding-top: 4rem; }
  .project--feature { aspect-ratio: 16 / 9; }
  .service { grid-template-columns: 3.25rem 1fr; }
  .cta__actions .btn, .hero__actions .btn { width: 100%; justify-content: space-between; }
}

/* SVG callout text scales with the viewBox and becomes illegible on phones.
   The numbered legend directly below carries the same content there. */
@media (max-width: 700px) {
  .study__overlay text { display: none; }
}

@media (max-width: 480px) {
  .hero { padding-top: calc(var(--nav-height) + 1rem); }
  .study__legend { grid-template-columns: 1fr; }
  .team__grid { grid-template-columns: 1fr; }
  .work__grid { grid-template-columns: 1fr; }
  .project--feature { aspect-ratio: 4 / 3; }
  .footer__bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1 !important; }
  .study__overlay .line { stroke-dashoffset: 0 !important; }
  .study__overlay .tick,
  .study__overlay .node,
  .study__overlay text,
  .study__overlay .line--fine { opacity: 1 !important; }
}
