/* ==========================================================================
   Strata Printing
   Brand: near-black ink + warm sand (from the STRATA wordmark)
   ========================================================================== */

:root {
  /* brand */
  --ink: #15120e;
  --ink-2: #1e1a15;
  --ink-3: #2a251e;
  --sand: #e8d4ad;
  --sand-strong: #f1e2c3;
  --sand-muted: #b9a888;
  --paper: #f6f1e7;
  --paper-2: #ece4d4;

  /* semantic */
  --text-on-ink: #f3ece0;
  --muted-on-ink: #b5aa98;      /* 7.6:1 on --ink */
  --text-on-paper: #1a1612;
  --muted-on-paper: #5c5245;    /* 7.0:1 on --paper */
  --line-on-ink: rgba(232, 212, 173, 0.14);
  --line-on-paper: rgba(26, 22, 18, 0.12);
  --error: #b42318;
  --error-on-ink: #ff9b8f;
  --focus: #e8d4ad;

  /* type */
  --font-display: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* spacing (spacious) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 72px;
  --space-8: 112px;

  --radius: 14px;
  --radius-lg: 22px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 76px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text-on-ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.15; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
figure { margin: 0; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.section--paper :focus-visible { outline-color: var(--ink); }

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

.skip-link {
  position: absolute; left: var(--space-3); top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 999px;
  background: var(--sand); color: var(--ink); font-weight: 600; text-decoration: none;
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: var(--space-3); }

.container { width: min(1200px, 100% - 2 * var(--space-4)); margin-inline: auto; }
.container--narrow { width: min(760px, 100% - 2 * var(--space-4)); }
.center { text-align: center; }

.section { padding-block: var(--space-8); }
.section--ink { background: var(--ink); color: var(--text-on-ink); }
.section--paper { background: var(--paper); color: var(--text-on-paper); }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: var(--space-3);
}
.eyebrow--dark { color: #7a6748; } /* 4.9:1 on paper */

/* ---------------------------------------------------------------- buttons */
.btn {
  --btn-bg: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: 12px 28px;
  border-radius: 999px; border: 1px solid transparent;
  background: var(--btn-bg);
  font-family: var(--font-display); font-size: 0.95rem; font-weight: 500; letter-spacing: 0.02em;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease-out), color .2s var(--ease-out), border-color .2s var(--ease-out), transform .2s var(--ease-out);
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn--sand { --btn-bg: var(--sand); color: var(--ink); }
.btn--sand:hover { --btn-bg: var(--sand-strong); }
.btn--ink { --btn-bg: var(--ink); color: var(--sand); }
.btn--ink:hover { --btn-bg: var(--ink-3); }
.btn--ghost { color: var(--text-on-ink); border-color: rgba(243, 236, 224, .45); }
.btn--ghost:hover { border-color: var(--sand); color: var(--sand); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  transition: background-color .3s var(--ease-out), box-shadow .3s var(--ease-out), backdrop-filter .3s;
}
.site-header.is-solid {
  background: rgba(21, 18, 14, .86);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line-on-ink);
}
.site-header.is-menu-open { background: var(--ink); backdrop-filter: none; -webkit-backdrop-filter: none; }
.nav {
  height: 100%;
  width: min(1200px, 100% - 2 * var(--space-4)); margin-inline: auto;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--space-4);
}
.nav__group { display: flex; align-items: center; gap: var(--space-5); }
.nav__group--right { justify-content: flex-end; }
.nav__group a {
  font-family: var(--font-display); font-size: 0.8rem; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; color: var(--text-on-ink); opacity: .86;
  padding-block: 10px; transition: opacity .2s, color .2s;
}
.nav__group a:hover { opacity: 1; color: var(--sand); }
.nav__group a[aria-current="page"], .mobile-menu a[aria-current="page"] { opacity: 1; color: var(--sand); }
.nav__group a.nav__cta {
  opacity: 1; padding: 10px 18px; border-radius: 999px; border: 1px solid rgba(232, 212, 173, .55); color: var(--sand);
}
.nav__group a.nav__cta:hover { background: var(--sand); color: var(--ink); }
.nav__logo img { height: 24px; width: auto; }
.nav__toggle {
  display: none; justify-self: end;
  width: 48px; height: 48px; border: 0; border-radius: 12px; background: transparent; color: var(--text-on-ink); cursor: pointer;
}
.nav__toggle .i-close { display: none; }
.nav__toggle[aria-expanded="true"] .i-open { display: none; }
.nav__toggle[aria-expanded="true"] .i-close { display: block; }

/* Lives outside <header>: the header's backdrop-filter would otherwise trap this fixed panel inside it. */
.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--ink); padding: var(--space-5) var(--space-4);
}
.mobile-menu ul { display: grid; gap: var(--space-2); }
.mobile-menu a:not(.btn) {
  display: block; padding: 14px 0; border-bottom: 1px solid var(--line-on-ink);
  font-family: var(--font-display); font-size: 1.35rem; text-decoration: none;
}
.mobile-menu .btn { margin-top: var(--space-4); width: 100%; }

@media (max-width: 960px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav__group { display: none; }
  .nav__logo { justify-self: start; }
  .nav__toggle { display: inline-grid; place-items: center; }
}

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  background: var(--ink);
}
.hero__stage { position: absolute; inset: 0; z-index: -2; overflow: hidden; }

/* The rig keeps the photo's own 1280×819 coordinate system, scaled to cover the hero.
   Every layer inside is positioned in % of that box, so the toolhead stays on the rails. */
.rig {
  --rig-ratio: 1.5629;
  position: absolute; left: 50%; top: 50%;
  width: max(100%, calc(100svh * var(--rig-ratio)));
  aspect-ratio: 1280 / 819;
  transform: translate(-50%, -58%);
  filter: saturate(.82) contrast(1.06) brightness(.92);
}
@supports not (height: 100svh) { .rig { width: max(100%, calc(100vh * var(--rig-ratio))); } }
.rig__bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.rig__tubes { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tube { fill: none; stroke-linecap: round; }
.tube--grey-edge  { stroke: #8f949b; stroke-width: 14.5; }
.tube--grey       { stroke: #b7bbc1; stroke-width: 11.5; }
.tube--grey-hi    { stroke: #e3e5e8; stroke-width: 3; opacity: .7; }
.tube--white-edge { stroke: #b9b3a8; stroke-width: 17; }
.tube--white      { stroke: #ece9e2; stroke-width: 14; }
.tube--white-hi   { stroke: #ffffff; stroke-width: 4; opacity: .85; }

.rig__head {
  position: absolute;
  left: 42.8125%;   /* 548 / 1280 */
  top: 24.664%;     /* 202 / 819  */
  width: 25.78125%; /* 330 / 1280 */
  will-change: transform;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .45));
}
.rig__head img { width: 100%; height: auto; }
.rig__head .rig__label { position: absolute; left: 21.9%; top: 13.4%; width: 25%; }

/* Belts: a seamless tooth tile that scrolls with the head (JS sets background-position-x),
   plus a static shading strip that keeps the photo's lighting. Coordinates from src/build_hero.py. */
.rig__belt {
  position: absolute;
  left: 6.09375%;   /* 78 / 1280 */
  width: 88.75%;    /* 1136 / 1280 */
  height: 3.4188%;  /* 28 / 819 */
  background-repeat: repeat-x;
  background-size: 9.419% 100%; /* 107 / 1136 */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 0.8%, #000 99.2%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 0.8%, #000 99.2%, transparent);
}
.rig__belt::after { content: ""; position: absolute; inset: 0; background-size: 100% 100%; }
.rig__belt--upper { top: 41.0256%; background-image: url("../img/belt-upper.webp"); }
.rig__belt--upper::after { background-image: url("../img/belt-upper-shade.png"); }
.rig__belt--lower { top: 53.3578%; background-image: url("../img/belt-lower.webp"); }
.rig__belt--lower::after { background-image: url("../img/belt-lower-shade.png"); }

/* Fan impeller: rotates on click. */
.rig__head .rig__fan {
  position: absolute; left: 11.0606%; top: 29.709%; width: 49.0909%; aspect-ratio: 1;
  will-change: transform;
}
.rig__head .rig__fan img { position: absolute; inset: 0; width: 100%; height: 100%; }
.rig__head .rig__fan .rig__fan-blur { opacity: 0; }

.hero__shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(21, 18, 14, .92) 0%, rgba(21, 18, 14, .55) 14%, rgba(21, 18, 14, 0) 32%),
    linear-gradient(0deg, var(--ink) 0%, rgba(21, 18, 14, .92) 18%, rgba(21, 18, 14, .35) 42%, rgba(21, 18, 14, 0) 60%),
    radial-gradient(120% 80% at 50% 45%, rgba(21, 18, 14, 0) 55%, rgba(21, 18, 14, .55) 100%);
}

@media (max-width: 600px) {
  .rig { transform: translate(-50%, -68%); }
  .hero__shade {
    background:
      linear-gradient(180deg, rgba(21, 18, 14, .9) 0%, rgba(21, 18, 14, 0) 22%),
      linear-gradient(0deg, var(--ink) 0%, rgba(21, 18, 14, .94) 34%, rgba(21, 18, 14, .5) 52%, rgba(21, 18, 14, 0) 68%);
  }
}

.hero__content {
  position: relative; text-align: center;
  padding-bottom: clamp(56px, 9vh, 104px); padding-top: calc(var(--header-h) + 40vh);
}
.hero h1 {
  font-size: clamp(2.1rem, 1.2rem + 3.6vw, 4.1rem);
  font-weight: 500; letter-spacing: -0.02em; line-height: 1.08;
  color: #fbf6ec;
}
.hero__lede { max-width: 56ch; margin: var(--space-4) auto 0; color: var(--muted-on-ink); font-size: clamp(1rem, .95rem + .3vw, 1.15rem); }
.hero__actions { margin-top: var(--space-5); display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); }

/* ---------------------------------------------------------------- welcome */
.welcome__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.welcome__clients { padding-left: clamp(24px, 4vw, 56px); border-left: 1px solid var(--line-on-paper); }
.welcome__clients h3 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); margin-bottom: var(--space-3); }
.welcome__clients p:not(.eyebrow) { color: var(--muted-on-paper); font-size: 1.05rem; }
@media (max-width: 820px) {
  .welcome__grid { grid-template-columns: 1fr; }
  .welcome__clients { padding-left: 0; border-left: 0; padding-top: var(--space-5); border-top: 1px solid var(--line-on-paper); }
}
.welcome__title { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); font-weight: 500; }
.welcome__title span { display: block; margin-top: var(--space-2); color: var(--muted-on-paper); font-weight: 400; font-size: .72em; }
.welcome__body { margin-top: var(--space-4); color: var(--muted-on-paper); font-size: 1.075rem; max-width: 62ch; }

/* ---------------------------------------------------------------- split rows */
.split {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(32px, 6vw, 96px);
}
.split + .split { margin-top: var(--space-8); }
.split--reverse .split__media { order: -1; }
.split__title { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); margin-bottom: var(--space-4); }
.split__text p:not(.eyebrow) { color: var(--muted-on-ink); font-size: 1.05rem; max-width: 52ch; }
.split__media { border-radius: var(--radius-lg); overflow: hidden; background: var(--ink-2); aspect-ratio: 1 / 1; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .split__media { aspect-ratio: 4 / 3; }
}

/* ---------------------------------------------------------------- meet the maker */
.maker {
  display: grid; grid-template-columns: 1fr 2fr;
  min-height: min(86vh, 780px);
  background: var(--paper-2); color: var(--text-on-paper);
}
.maker__photo { position: relative; overflow: hidden; background: var(--ink-2); order: 2; } /* text left, photo right */
.maker__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 45% 30%; }
.maker__text { align-self: center; padding: var(--space-7) clamp(24px, 4vw, 64px); }
.maker__title {
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase;
}
.maker__text p {
  margin-top: var(--space-4);
  font-size: 1.075rem; line-height: 1.75; color: var(--muted-on-paper); max-width: 44ch;
}
.maker__btn { margin-top: var(--space-5); }
.maker--page { margin-top: var(--header-h); min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); }
@media (max-width: 900px) {
  .maker { grid-template-columns: 1fr; min-height: 0; }
  .maker__photo { aspect-ratio: 4 / 3; order: 0; } /* photo stays on top on phones */
  .maker__text { padding-block: var(--space-6) var(--space-7); }
}

/* ---------------------------------------------------------------- project pages */
.project__intro { padding: calc(var(--header-h) + var(--space-7)) 0 var(--space-6); }
.project__back {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: var(--space-5); padding-block: 10px;
  font-size: .9rem; color: var(--muted-on-ink); text-decoration: none;
}
.project__back:hover { color: var(--sand); }
.project__title { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.8rem); letter-spacing: -0.02em; color: #fbf6ec; }
.project__lede { margin-top: var(--space-4); max-width: 60ch; color: var(--muted-on-ink); font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); }
.project__media { padding-bottom: var(--space-8); }
.project__video { border-radius: var(--radius-lg); overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.project__video video { display: block; width: 100%; height: 100%; object-fit: cover; }
.project__body { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.project__text h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); margin-bottom: var(--space-4); }
.project__text p { color: var(--muted-on-paper); font-size: 1.075rem; max-width: 60ch; }
.project__text p + p { margin-top: var(--space-3); }
.project__facts { margin: 0; display: grid; border-top: 1px solid var(--line-on-paper); }
.project__facts div { display: grid; grid-template-columns: 120px 1fr; gap: var(--space-3); padding: var(--space-3) 0; border-bottom: 1px solid var(--line-on-paper); }
.project__facts dt { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: #7a6748; padding-top: 3px; }
.project__facts dd { margin: 0; font-family: var(--font-display); font-weight: 500; }
.project__gallery-wrap { padding-top: 0; }
.project__hero { display: block; max-width: 720px; margin-inline: auto; border-radius: var(--radius-lg); overflow: hidden; cursor: zoom-in; }
.project__hero img { width: 100%; height: auto; }
.project__gallery-title { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); margin-bottom: var(--space-5); }
.project__caption { margin-top: var(--space-2); font-size: .95rem; color: var(--muted-on-paper); }
.project__gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: auto auto; gap: var(--space-4); }
.project__gallery li:first-child { grid-row: span 2; }
.project__gallery a { display: block; height: 100%; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; }
.project__gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.project__gallery a:hover img { transform: scale(1.03); }
.project__gallery > li { min-width: 0; }
/* two portrait shots side by side */
.project__gallery.project__gallery--pair { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
.project__gallery.project__gallery--pair li:first-child { grid-row: auto; }
.project__gallery.project__gallery--pair a { height: auto; aspect-ratio: 3 / 4; }
@media (max-width: 820px) {
  .project__body { grid-template-columns: 1fr; }
  .project__gallery, .project__gallery.project__gallery--pair { grid-template-columns: 1fr; }
  .project__gallery li:first-child { grid-row: auto; }
}

/* ---------------------------------------------------------------- carousel (scroll-snap: swipe on touch, arrows/dots/keys on desktop) */
.carousel { position: relative; }
.carousel__track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  overscroll-behavior-x: contain; scrollbar-width: none; border-radius: var(--radius-lg); background: #0d0b09;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__slide { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; }
.carousel__slide a { display: block; height: min(78vh, 820px); cursor: zoom-in; }
.carousel__slide img { width: 100%; height: 100%; object-fit: contain; }
.carousel__caption { padding: var(--space-3) var(--space-4) var(--space-4); text-align: center; color: var(--muted-on-ink); font-size: .95rem; }
.carousel__btn {
  position: absolute; top: calc(min(78vh, 820px) / 2); transform: translateY(-50%);
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(232, 212, 173, .35); background: rgba(21, 18, 14, .7); color: var(--text-on-ink);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background-color .2s, color .2s, opacity .2s;
}
.carousel__btn:hover { background: var(--sand); color: var(--ink); }
.carousel__btn[disabled] { opacity: 0; pointer-events: none; }
.carousel__btn--prev { left: var(--space-3); }
.carousel__btn--next { right: var(--space-3); }
.carousel__dots { display: flex; justify-content: center; gap: 4px; margin-top: var(--space-2); }
.carousel__dot { width: 32px; height: 32px; padding: 0; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.carousel__dot::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: rgba(232, 212, 173, .3); transition: width .25s var(--ease-out), background-color .25s; }
.carousel__dot[aria-current="true"]::before { width: 22px; background: var(--sand); }
/* landscape photos: frame matches the 4:3 shots, arrows centered on the photo */
.carousel--landscape { max-width: min(100%, calc(72vh * 4 / 3)); margin-inline: auto; }
.carousel--landscape .carousel__slide a { height: auto; aspect-ratio: 4 / 3; }
.carousel--landscape .carousel__slide img { object-fit: cover; }
.carousel--landscape .carousel__btn { top: calc(50% - 20px); }
/* on light sections */
.section--paper .carousel__dot::before { background: rgba(26, 22, 18, .22); }
.section--paper .carousel__dot[aria-current="true"]::before { background: var(--ink); }
@media (max-width: 600px) {
  .carousel__slide a { height: 64vh; }
  .carousel__btn { top: 32vh; width: 44px; height: 44px; }
  .carousel--landscape .carousel__slide a { height: auto; }
  .carousel--landscape .carousel__btn { top: calc(50% - 20px); }
}

/* carousel on the left, description + details on the right (dark section) */
.project__split { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); align-items: start; }
.project__split .carousel__slide a { height: min(70vh, 660px); }
.project__split .carousel__btn { top: calc(min(70vh, 660px) / 2); }
/* light tan card, same tone as the Meet the Maker / custom parts panels */
.project__side {
  align-self: stretch;
  background: var(--paper-2); color: var(--text-on-paper);
  border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 40px);
}
.project__side .project__text h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); color: var(--text-on-paper); margin-bottom: var(--space-3); }
.project__side .project__text p { color: var(--muted-on-paper); font-size: 1rem; }
.project__side .project__facts { margin-top: var(--space-5); }
.project__side .project__facts div { grid-template-columns: 110px 1fr; }
.project__side .project__facts dt { color: #6b5a3e; } /* keeps 4.5:1 on the tan card */
.project__side :focus-visible { outline-color: var(--ink); }
@media (max-width: 960px) {
  .project__split { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .project__split .carousel__slide a { height: 52vh; }
  .project__split .carousel__btn { top: 26vh; }
}

.lightbox {
  width: min(1200px, 100vw - 32px); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: var(--radius);
  background: var(--ink); color: var(--text-on-ink); overflow: hidden;
}
.lightbox::backdrop { background: rgba(10, 8, 6, .86); }
.lightbox img { display: block; width: 100%; max-height: calc(100vh - 110px); object-fit: contain; background: #000; }
.lightbox__bar { display: flex; align-items: center; justify-content: center; gap: var(--space-4); padding: 10px; }
.lightbox__count { font-size: .9rem; color: var(--muted-on-ink); min-width: 4ch; text-align: center; }
.lightbox__btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-on-ink); background: var(--ink-2); color: var(--text-on-ink);
}
.lightbox__btn:hover { border-color: var(--sand); color: var(--sand); }
.lightbox__close { position: absolute; top: 12px; right: 12px; background: rgba(21, 18, 14, .75); }

/* ---------------------------------------------------------------- client strip */
.strip { padding-block: var(--space-7); border-bottom: 1px solid var(--line-on-paper); }
.strip--ink { background: var(--ink); border-bottom: 0; }
.strip--ink .strip__label { color: var(--muted-on-ink); }
.strip--ink .strip__list li { color: var(--text-on-ink); opacity: .85; }
.strip__label { text-align: center; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-on-paper); margin-bottom: var(--space-4); }
.strip__list { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3) var(--space-6); }
.strip__list li { font-family: var(--font-display); font-size: clamp(1rem, .9rem + .4vw, 1.3rem); font-weight: 500; color: var(--text-on-paper); opacity: .72; }

/* ---------------------------------------------------------------- section heads */
.section-head { max-width: 640px; margin-bottom: var(--space-7); }
.section-head h2 { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.9rem); }
.section-head p:not(.eyebrow) { margin-top: var(--space-3); font-size: 1.075rem; }
.section--paper .section-head p:not(.eyebrow) { color: var(--muted-on-paper); }
.section--ink .section-head p:not(.eyebrow) { color: var(--muted-on-ink); }
.section-head--split { max-width: none; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); align-items: end; }
@media (max-width: 820px) { .section-head--split { grid-template-columns: 1fr; } }
.clients-head { margin-bottom: 0; }

/* ---------------------------------------------------------------- service cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.card {
  background: #fffdf8; border: 1px solid var(--line-on-paper); border-radius: var(--radius);
  padding: var(--space-5) var(--space-4);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(26, 22, 18, .35); border-color: rgba(26, 22, 18, .22); }
.card__icon { width: 40px; height: 40px; padding: 8px; border-radius: 10px; background: var(--ink); stroke: var(--sand); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin-top: var(--space-4); font-size: 1.15rem; }
.card p { margin-top: var(--space-2); color: var(--muted-on-paper); font-size: .975rem; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }

/* custom parts panel (under the sculpture cards) */
.parts {
  margin-top: var(--space-6);
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center;
  padding: clamp(28px, 4vw, 48px);
  background: var(--paper-2); border-radius: var(--radius-lg);
}
.parts__title { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }
.parts__text > p:not(.eyebrow) { margin: var(--space-3) 0 var(--space-5); color: var(--muted-on-paper); max-width: 54ch; }
.parts__list { display: grid; gap: 0; }
.parts__list li { display: grid; gap: 2px; padding: var(--space-3) 0; border-top: 1px solid var(--line-on-paper); }
.parts__list li:last-child { border-bottom: 1px solid var(--line-on-paper); }
.parts__list strong { font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; }
.parts__list span { color: var(--muted-on-paper); font-size: .95rem; }
@media (max-width: 820px) { .parts { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- big builds */
.builds {
  display: grid; gap: var(--space-4);
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "feat   feat"
    "statue rocky"
    "statue a";
}
.build { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--ink-2); min-height: 280px; }
.build--statue { grid-area: statue; min-height: 820px; display: block; color: inherit; text-decoration: none; }
.build--statue img { object-position: 50% 30%; }
.build--statue .build__title { font-size: 1.5rem; }
.build--rocky { grid-area: rocky; min-height: 400px; display: block; color: inherit; text-decoration: none; }
.build--rocky img { object-position: 50% 20%; }
.build--rocky .build__title { font-size: 1.5rem; }
.build--link { display: block; color: inherit; text-decoration: none; }
.build--a .build__title { font-size: 1.5rem; }
.build--a img { object-position: 50% 32%; }
.build--a { grid-area: a; min-height: 400px; }

/* Featured project: autoplaying loop, whole card links to the project page. */
.build--feature { grid-area: feat; display: block; aspect-ratio: 21 / 9; min-height: 360px; color: inherit; text-decoration: none; }
.build--feature .build__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.build--feature:hover .build__video { transform: scale(1.03); }
.build__caption { position: absolute; inset: auto 0 0 0; z-index: 1; padding: clamp(20px, 3vw, 36px); display: grid; justify-items: start; gap: 6px; }
.build__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); color: #fbf6ec; line-height: 1.15; }
.build__text { color: #d4c9b6; font-size: 1rem; max-width: 52ch; }
.build__more {
  margin-top: var(--space-2); display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; border: 1px solid rgba(232, 212, 173, .55);
  color: var(--sand); font-family: var(--font-display); font-size: .85rem; font-weight: 500;
  transition: background-color .2s, color .2s;
}
a.build:hover .build__more { background: var(--sand); color: var(--ink); }
.build img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.build:hover img { transform: scale(1.04); }
.build::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(21, 18, 14, .94) 0%, rgba(21, 18, 14, .6) 34%, rgba(21, 18, 14, 0) 62%);
}
.build figcaption { position: absolute; inset: auto 0 0 0; z-index: 1; padding: var(--space-4); }
.build__tag {
  display: inline-block; margin-bottom: var(--space-2); padding: 4px 10px; border-radius: 999px;
  font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500;
  color: var(--ink); background: var(--sand);
}
.build h3 { font-size: 1.2rem; color: #fbf6ec; }
.build p { margin-top: 6px; color: #d4c9b6; font-size: .95rem; max-width: 46ch; }
@media (max-width: 960px) {
  .build--statue { min-height: 720px; }
  .build--rocky, .build--a { min-height: 350px; }
  .build--feature { aspect-ratio: 16 / 9; }
}
@media (max-width: 600px) {
  .builds { grid-template-columns: 1fr; grid-template-areas: "feat" "statue" "rocky" "a"; }
  .build--feature { aspect-ratio: 4 / 5; min-height: 0; }
  .build { min-height: 380px; }
  .build--rocky { aspect-ratio: auto; }
  .build--statue { min-height: 560px; }
  .build--a { min-height: 460px; }
}

/* ---------------------------------------------------------------- steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); counter-reset: step; }
.step { position: relative; padding-top: var(--space-5); border-top: 1px solid rgba(26, 22, 18, .25); }
.step::before {
  content: ""; position: absolute; top: -1px; left: 0; height: 2px; width: 44px; background: var(--ink);
}
.step__num { font-family: var(--font-display); font-size: .85rem; letter-spacing: .18em; color: #7a6748; }
.step h3 { margin-top: var(--space-2); font-size: 1.25rem; }
.step p { margin-top: var(--space-2); color: var(--muted-on-paper); }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); row-gap: var(--space-6); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- CTA band */
.cta-band { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(96px, 14vw, 168px); text-align: center; background: var(--ink); }
.cta-band__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; filter: saturate(.8) brightness(.9); }
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(21, 18, 14, .7), rgba(21, 18, 14, .5) 50%, rgba(21, 18, 14, .82));
}
.cta-band h2 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3.2rem); color: #fbf6ec; }
.cta-band p { margin: var(--space-3) auto var(--space-5); color: #ddd2bf; max-width: 50ch; font-size: 1.075rem; }

/* ---------------------------------------------------------------- quote */
.quote { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.quote__intro h2 { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.9rem); }
.quote__intro > p:not(.eyebrow) { margin-top: var(--space-3); color: var(--muted-on-ink); font-size: 1.075rem; }
.quote__facts { margin-top: var(--space-5); display: grid; gap: var(--space-3); }
.quote__facts li { display: flex; align-items: center; gap: 12px; color: var(--text-on-ink); }
.quote__facts svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--sand); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.quote__facts a { text-decoration-color: rgba(232, 212, 173, .4); text-underline-offset: 3px; }
.quote__facts a:hover { color: var(--sand); }
@media (max-width: 880px) { .quote { grid-template-columns: 1fr; } }

.form { color-scheme: dark; background: var(--ink-2); border: 1px solid var(--line-on-ink); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); display: grid; gap: var(--space-4); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; align-content: start; }
.field label { font-size: .9rem; font-weight: 500; color: var(--text-on-ink); }
.field__opt { color: var(--muted-on-ink); font-weight: 400; }
.field input,
.field select,
.field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: inherit; font-size: 1rem; color: var(--text-on-ink);
  background: var(--ink); border: 1px solid rgba(232, 212, 173, .22); border-radius: 10px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23e8d4ad' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(232, 212, 173, .4); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sand); box-shadow: 0 0 0 3px rgba(232, 212, 173, .2); }
.field [aria-invalid="true"] { border-color: var(--error-on-ink); }
.field__help { font-size: .85rem; color: var(--muted-on-ink); }
.field__error { font-size: .85rem; color: var(--error-on-ink); }
.form__status { min-height: 1.4em; font-size: .95rem; color: var(--muted-on-ink); text-align: center; }
.form__status.is-success { color: var(--sand); }
.form__status.is-error { color: var(--error-on-ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(21, 18, 14, .25); border-top-color: var(--ink); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--ink); border-top: 1px solid var(--line-on-ink); padding-block: var(--space-6); }
.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); }
.footer__logo img { height: 20px; width: auto; }
.footer__nav { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); }
.footer__nav a { font-size: .85rem; text-decoration: none; color: var(--muted-on-ink); padding-block: 8px; display: inline-block; }
.footer__nav a:hover { color: var(--sand); }
.footer__meta { font-size: .85rem; color: var(--muted-on-ink); }
.footer__meta a { color: inherit; text-underline-offset: 3px; }
.footer__meta a:hover { color: var(--sand); }

/* ---------------------------------------------------------------- reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .build img, .card, .btn { transition: none; }
  .build:hover img { transform: none; }
}

/* ---------- legal / long-form text (privacy.html) ---------- */
.legal { color: var(--text-on-paper); }
.legal h2 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); margin: var(--space-6) 0 var(--space-3); scroll-margin-top: calc(var(--header-h) + var(--space-4)); }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--muted-on-paper); font-size: 1.05rem; max-width: 65ch; }
.legal p + p, .legal ul + p, .legal p + ul { margin-top: var(--space-3); }
.legal ul { padding-left: 1.2em; list-style: disc; }
.legal li + li { margin-top: var(--space-2); }
.legal strong { color: var(--text-on-paper); font-weight: 600; }
.legal a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
