/* MarkOn® Walls — site styles (Foundation direction) */

@import url('https://fonts.googleapis.com/css2?family=Wix+Madefor+Display:wght@400;500;600;700;800&family=Wix+Madefor+Text:wght@400;500;600;700&family=Geist+Mono:wght@400;500&display=swap');

:root {
  --bone:    #EFE9DF;
  --paper:   #FBF7EF;
  --plaster: #D9CBB5;
  --stone:   #A89E91;
  --muted:   #76706A;
  --ink:     #1A1815;
  --clay:    #B8784F;
  --line:    color-mix(in oklab, #D9CBB5 70%, transparent);

  --display: 'Wix Madefor Display', system-ui, sans-serif;
  --text:    'Wix Madefor Text', system-ui, sans-serif;
  --mono:    'Geist Mono', ui-monospace, monospace;

  --pad-x: 56px;
  --maxw: 1480px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bone); color: var(--ink); font-family: var(--text); -webkit-font-smoothing: antialiased; }
html { scroll-behavior: smooth; }
body { font-size: 17px; line-height: 1.55; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; background: none; border: none; outline: none; }
::selection { background: var(--ink); color: var(--bone); }

/* ── Skip link — first focusable element on every page ────────────── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 10000;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--clay);
  transition: top 0.18s ease;
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 16px;
  outline: 2px solid var(--clay);
  outline-offset: 2px;
}

/* ── Screen-reader only utility ───────────────────────────────────── */
.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;
}

/* ── Focus indicators — clay outline on bone/ink alike ────────────── */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
  border-radius: 1px;
}
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
}
/* Form inputs in the contact form use a baseline border, so use a soft box-shadow instead of outline to preserve layout */
.field input:focus-visible,
.field textarea:focus-visible,
.field select:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 4px;
}
/* Contrast lift for focus on dark surfaces (ink-bg areas: footer, hero overlay nav, cta-band) */
.footer a:focus-visible,
.cta-band a:focus-visible,
.cta-band button:focus-visible,
body.has-hero .nav:not(.scrolled) a:focus-visible,
body.has-hero .nav:not(.scrolled) button:focus-visible {
  outline: 2px solid var(--bone);
  outline-offset: 3px;
}

/* Anchor markers — invisible scroll targets for footer navigation */
.anchor-mark {
  display: block;
  position: relative;
  top: -120px;
  visibility: hidden;
  height: 0;
  width: 0;
  pointer-events: none;
}
/* Section scroll offset — the fixed nav is ~101px tall, push anchor scroll positions down */
[id] { scroll-margin-top: 120px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad-x); }

/* ── Label / micro ─────────────────────────────────────────────── */
.label, .micro {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.label--ink { color: var(--ink); }
.label--clay { color: var(--clay); }

.rule { height: 1px; background: var(--line); width: 100%; }

/* ── Navigation ────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  background: color-mix(in oklab, var(--bone) 86%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease;
}

/* Pages with a hero behind the nav: start transparent, swap to opaque on scroll.
   !important used here because the .nav base rule's `background` shorthand
   was not being overridden by descendant specificity in some browsers. */
body.has-hero .nav {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom-color: transparent !important;
}
body.has-hero .nav .brand,
body.has-hero .nav .nav-links a,
body.has-hero .nav .nav-tel {
  color: var(--bone) !important;
  transition: color 0.35s ease;
}
body.has-hero .nav .brand-sub {
  color: color-mix(in oklab, var(--bone) 70%, transparent) !important;
}
body.has-hero .nav .nav-links a.nav-tool {
  border-left-color: color-mix(in oklab, var(--bone) 30%, transparent) !important;
}
body.has-hero .nav.scrolled {
  background: color-mix(in oklab, var(--bone) 86%, transparent) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom-color: var(--line) !important;
}
body.has-hero .nav.scrolled .brand,
body.has-hero .nav.scrolled .nav-links a,
body.has-hero .nav.scrolled .nav-tel {
  color: var(--ink) !important;
}
body.has-hero .nav.scrolled .brand-sub { color: var(--muted) !important; }
body.has-hero .nav.scrolled .nav-links a.nav-tool { border-left-color: var(--line) !important; }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0;
  gap: 40px;
}
.brand {
  display: inline-flex; align-items: flex-start; gap: 8px;
  font-family: var(--display); font-weight: 700; font-size: 22px;
  letter-spacing: -0.04em; color: var(--ink); line-height: 1;
}
.brand sup { font-weight: 500; font-size: 11px; margin-top: 2px; }
.brand-sub {
  font-family: var(--display); font-weight: 500; font-size: 10px;
  letter-spacing: 0.34em; color: var(--muted); margin-left: 12px;
  align-self: center; text-transform: uppercase;
}
.nav-links {
  display: flex; gap: 36px;
  font-family: var(--display); font-weight: 500; font-size: 14px;
}
.nav-links a {
  color: var(--ink);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color .2s, color .2s;
}
.nav-links a:hover { color: var(--clay); }
.nav-links a.active { color: var(--ink); border-bottom-color: var(--clay); }
.nav-links a.nav-tool {
  color: var(--clay); font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
  padding-left: 20px; margin-left: 8px;
  border-left: 1px solid var(--line);
}
.nav-links a.nav-tool::before {
  content: ''; width: 7px; height: 7px; background: var(--clay);
  display: inline-block;
}
.nav-actions { display: flex; align-items: center; gap: 18px; }
.nav-tel { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--muted); }

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--display); font-weight: 500; font-size: 14px;
  letter-spacing: 0.02em;
  padding: 16px 24px;
  background: var(--ink); color: var(--bone);
  border: 1px solid var(--ink);
  transition: background .25s, color .25s, border-color .25s;
}
.btn:hover { background: var(--clay); border-color: var(--clay); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.btn--clay { background: var(--clay); border-color: var(--clay); color: #fff; }
.btn--clay:hover { background: var(--ink); border-color: var(--ink); }
.btn .arr { font-family: var(--mono); font-weight: 400; }

/* ── Page header ───────────────────────────────────────────────── */
.pagehead {
  padding: 88px 0 56px;
  border-bottom: 1px solid var(--line);
}
.pagehead-row {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 28px;
}
.pagehead h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(72px, 8.4vw, 168px);
  letter-spacing: -0.055em; line-height: 0.9;
}
.pagehead-meta {
  display: flex; justify-content: space-between;
  margin-top: 36px;
  font-family: var(--text); color: var(--muted);
}
.pagehead-meta strong { color: var(--ink); font-weight: 600; }

/* ── Section heads ─────────────────────────────────────────────── */
.section { padding: 120px 0; }
.section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: 60px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 48px;
}
.section-head .num {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em;
  color: var(--muted); text-transform: uppercase;
}
.section-head h2 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(40px, 4.6vw, 76px); letter-spacing: -0.04em; line-height: 0.95;
}

/* ── Footer ────────────────────────────────────────────────────── */
.footer { background: var(--ink); color: var(--bone); padding: 100px 0 40px; }
.footer .brand { color: var(--bone); }
.footer .brand-sub { color: color-mix(in oklab, var(--bone) 70%, transparent); }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 64px;
}
.footer h3,
.footer h4 {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; color: color-mix(in oklab, var(--bone) 50%, transparent);
  margin-bottom: 22px; font-weight: 500;
}
.footer-grid h3 { font-size: 11px; }
.footer ul { list-style: none; display: grid; gap: 10px; font-size: 14px; }
.footer ul li { line-height: 1.4; }
.footer ul li.muted { color: color-mix(in oklab, var(--bone) 55%, transparent); font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; }
.footer a { color: var(--bone); transition: color .15s; }
.footer a:hover { color: var(--clay); }
.footer .all-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--clay);
  margin-top: 6px;
}

.footer-markets {
  padding: 56px 0;
  border-top: 1px solid color-mix(in oklab, var(--bone) 14%, transparent);
  border-bottom: 1px solid color-mix(in oklab, var(--bone) 14%, transparent);
}
.footer-markets-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 36px;
}
.footer-markets-head h3 {
  font-family: var(--display); font-weight: 600; font-size: 38px;
  letter-spacing: -0.035em; line-height: 1; color: var(--bone);
}
.footer-markets-head .sub {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; color: color-mix(in oklab, var(--bone) 50%, transparent);
}
.footer-markets-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px;
}
.footer-markets-grid h4,
.footer-markets-grid h5 {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--clay);
  margin-bottom: 16px; font-weight: 500;
}
.footer-markets-grid ul { list-style: none; display: grid; gap: 8px; font-size: 13px; line-height: 1.35; }

.footer-lower {
  display: flex; justify-content: space-between; padding-top: 32px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: color-mix(in oklab, var(--bone) 50%, transparent);
}
.footer-lower .legal { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-lower .credit a {
  color: color-mix(in oklab, var(--bone) 80%, transparent);
  border-bottom: 1px solid color-mix(in oklab, var(--clay) 50%, transparent);
  padding-bottom: 1px;
  transition: color .2s, border-color .2s;
}
.footer-lower .credit a:hover { color: var(--clay); border-bottom-color: var(--clay); }

/* ── Reused utility ────────────────────────────────────────────── */
.kv {
  display: grid; grid-template-columns: auto 1fr; gap: 6px 28px;
  font-family: var(--mono); font-size: 12px; line-height: 1.7;
}
.kv dt { color: var(--muted); text-transform: uppercase; letter-spacing: 0.18em; font-size: 10px; align-self: center; }
.kv dd { color: var(--ink); }

.swatch-dot { display: inline-block; width: 12px; height: 12px; background: var(--clay); }

/* ── Image patterns ────────────────────────────────────────────── */

/* Placeholder tile — elegant plaster swatch */
.ph {
  background:
    radial-gradient(ellipse at 30% 25%, rgba(255,253,247,0.7) 0%, rgba(255,253,247,0) 60%),
    radial-gradient(ellipse at 75% 80%, rgba(184,120,79,0.18) 0%, rgba(184,120,79,0) 65%),
    linear-gradient(135deg, #E8DDC9 0%, #D6C7AC 50%, #C3B193 100%);
  display: grid; place-items: center; position: relative;
  color: rgba(26,24,21,0.4);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; text-align: center;
  padding: 20px;
  overflow: hidden;
}
.ph::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 60% 40%, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 50%),
    radial-gradient(ellipse at 20% 80%, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0) 50%);
  pointer-events: none;
}
.ph .ph-label {
  position: relative; z-index: 1; max-width: 75%; line-height: 1.6;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.32em;
  color: rgba(26,24,21,0.35);
}
.ph .ph-tag {
  position: absolute; top: 16px; left: 16px;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.32em;
  color: rgba(26,24,21,0.4); text-transform: uppercase; z-index: 1;
}

/* Plaster swatch variants — for variety */
.ph.charcoal {
  background:
    radial-gradient(ellipse at 30% 25%, rgba(120,108,94,0.4) 0%, rgba(120,108,94,0) 60%),
    radial-gradient(ellipse at 75% 80%, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0) 65%),
    linear-gradient(135deg, #4A4038 0%, #2E2620 50%, #1A1612 100%);
  color: rgba(239,233,223,0.4);
}
.ph.charcoal .ph-label, .ph.charcoal .ph-tag { color: rgba(239,233,223,0.35); }

.ph.clay {
  background:
    radial-gradient(ellipse at 30% 25%, rgba(255,240,220,0.5) 0%, rgba(255,240,220,0) 60%),
    radial-gradient(ellipse at 75% 80%, rgba(80,40,20,0.3) 0%, rgba(80,40,20,0) 65%),
    linear-gradient(135deg, #C58A60 0%, #A56B42 50%, #834F2C 100%);
  color: rgba(255,250,240,0.55);
}
.ph.clay .ph-label, .ph.clay .ph-tag { color: rgba(255,250,240,0.5); }

.ph.bone {
  background:
    radial-gradient(ellipse at 30% 25%, rgba(255,253,247,0.85) 0%, rgba(255,253,247,0) 60%),
    radial-gradient(ellipse at 75% 80%, rgba(180,160,130,0.18) 0%, rgba(180,160,130,0) 65%),
    linear-gradient(135deg, #F4EFE5 0%, #EAE0CD 50%, #DCC9AB 100%);
}

.ph.stone {
  background:
    radial-gradient(ellipse at 30% 25%, rgba(255,250,240,0.5) 0%, rgba(255,250,240,0) 60%),
    radial-gradient(ellipse at 75% 80%, rgba(60,55,48,0.2) 0%, rgba(60,55,48,0) 65%),
    linear-gradient(135deg, #B4A998 0%, #8E826F 50%, #6B6055 100%);
  color: rgba(255,250,240,0.5);
}
.ph.stone .ph-label, .ph.stone .ph-tag { color: rgba(255,250,240,0.5); }

/* Cover an entire frame */
.cover {
  position: relative; overflow: hidden; background: var(--plaster);
}
.cover > img,
.cover > .ph {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.cover > .ph { object-fit: unset; }
.cover .corner {
  position: absolute; top: 18px; left: 18px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em;
  color: var(--bone); text-transform: uppercase; z-index: 2;
}
.cover .corner.right { left: auto; right: 18px; }

/* Image-anchored card */
.icard { display: flex; flex-direction: column; gap: 14px; }
.icard .cover { aspect-ratio: 4/5; }
.icard h3 {
  font-family: var(--display); font-weight: 600; font-size: 26px;
  letter-spacing: -0.025em; line-height: 1.05;
}
.icard .meta {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted);
}
.icard .sub { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* Full-bleed strip (escapes wrap) */
.bleed { width: 100%; }

/* ── Shared layout primitives (plate / duo / col-3)
   Base rules live here so all pages inherit them.
   index.html overrides live in its own inline <style> block
   because inline blocks cascade after external sheets. ──────────────── */

/* Full-bleed hero plate */
.plate {
  position: relative;
  height: 96vh;
  min-height: 720px;
  overflow: hidden;
}
.plate img, .plate .ph {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.plate .ph { position: absolute; inset: 0; }
.plate .scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(26,24,21,0.15) 0%, rgba(26,24,21,0) 35%, rgba(26,24,21,0) 60%, rgba(26,24,21,0.55) 100%);
}
.plate .caption {
  position: absolute; bottom: 32px; left: 56px; right: 56px;
  display: flex; justify-content: space-between; align-items: flex-end;
  color: var(--bone);
}
.plate .caption .a {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: color-mix(in oklab, var(--bone) 80%, transparent);
}
.plate .caption .b {
  font-family: var(--display); font-weight: 600; font-size: 40px;
  letter-spacing: -0.035em; line-height: 0.95;
}

/* Two-photo side-by-side */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.duo .panel { position: relative; aspect-ratio: 1/1; overflow: hidden; }
.duo .panel img, .duo .panel .ph {
  width: 100%; height: 100%;
  object-fit: cover; position: absolute; inset: 0;
}
.duo .panel .scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(26,24,21,0) 50%, rgba(26,24,21,0.6) 100%);
}
.duo .panel .caption {
  position: absolute; left: 28px; bottom: 28px; right: 28px; color: var(--bone);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
}
.duo .panel .caption .a {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; color: color-mix(in oklab, var(--bone) 80%, transparent);
}
.duo .panel .caption .b {
  font-family: var(--display); font-weight: 600; font-size: 36px;
  letter-spacing: -0.035em; line-height: 0.95;
}

/* Three-column image grid */
.col-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.col-3 .panel { position: relative; aspect-ratio: 3/4; overflow: hidden; }
.col-3 .panel img, .col-3 .panel .ph {
  width: 100%; height: 100%;
  object-fit: cover; position: absolute; inset: 0;
}
.col-3 .panel .scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(26,24,21,0) 55%, rgba(26,24,21,0.6) 100%);
}
.col-3 .panel .caption {
  position: absolute; left: 22px; right: 22px; bottom: 22px; color: var(--bone);
  display: flex; flex-direction: column; gap: 4px;
}
.col-3 .panel .caption .a {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; color: color-mix(in oklab, var(--bone) 75%, transparent);
}
.col-3 .panel .caption .b {
  font-family: var(--display); font-weight: 600; font-size: 28px;
  letter-spacing: -0.03em; line-height: 1;
}

/* ── Hover zoom on image tiles — subtle "alive" motion ────────────── */
.col-3 .panel,
.duo .panel,
.spec-grid .panel,
.findex .cover,
.team-card .cover,
.pcard .cover {
  overflow: hidden;
}
.col-3 .panel img,
.duo .panel img,
.spec-grid .panel img,
.findex .cover img,
.team-card .cover img,
.pcard .cover img {
  transition: transform 1.3s cubic-bezier(0.2, 0.6, 0.2, 1);
  will-change: transform;
  transform-origin: center;
}
.col-3 .panel:hover img,
.duo .panel:hover img,
.spec-grid .panel:hover img,
.findex a:hover .cover img,
.team-card:hover .cover img,
.pcard:hover .cover img {
  transform: scale(1.06);
}

@media (prefers-reduced-motion: reduce) {
  .col-3 .panel img, .duo .panel img, .spec-grid .panel img,
  .findex .cover img, .team-card .cover img, .pcard .cover img {
    transition: none;
  }
  .col-3 .panel:hover img, .duo .panel:hover img, .spec-grid .panel:hover img,
  .findex a:hover .cover img, .team-card:hover .cover img, .pcard:hover .cover img {
    transform: none;
  }
}

/* ── Scroll reveal — sections fade in as they enter viewport ──────── */
/* The [data-reveal] attribute is added by JS only to below-fold elements,
   so this CSS never fires without JS and never flashes content invisible. */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.85s cubic-bezier(0.22, 0.6, 0.36, 1),
              transform 0.85s cubic-bezier(0.22, 0.6, 0.36, 1);
  will-change: opacity, transform;
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}
/* Stagger: direct children of a revealed section come in sequentially */
[data-reveal].is-revealed > * { transition-delay: 0s; }
[data-reveal].is-revealed > *:nth-child(2) { transition-delay: 0.07s; }
[data-reveal].is-revealed > *:nth-child(3) { transition-delay: 0.14s; }
[data-reveal].is-revealed > *:nth-child(4) { transition-delay: 0.2s; }

/* ── Preloader — plaster sweep reveal ──────────────────────────── */
.preload-lock { overflow: hidden; height: 100vh; }
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  pointer-events: none;
  animation: preloader-out 2.7s cubic-bezier(0.76, 0, 0.24, 1) forwards;
  will-change: transform;
}
.preloader-plaster {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 25%, rgba(255,253,247,0.7) 0%, rgba(255,253,247,0) 60%),
    radial-gradient(ellipse at 75% 80%, rgba(184,120,79,0.18) 0%, rgba(184,120,79,0) 65%),
    linear-gradient(135deg, #E8DDC9 0%, #D6C7AC 50%, #C3B193 100%);
}
.preloader-plaster::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 60% 40%, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 50%),
    radial-gradient(ellipse at 20% 80%, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0) 50%);
}
.preloader-sweep {
  position: absolute; top: 0; bottom: 0; width: 38vw;
  background: linear-gradient(100deg,
    transparent 0%,
    rgba(255,255,255,0.0) 30%,
    rgba(255,255,255,0.45) 50%,
    rgba(255,255,255,0.0) 70%,
    transparent 100%);
  filter: blur(2px);
  animation: preloader-sweep 1.6s ease-in-out forwards;
}
.preloader-brand {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex; align-items: flex-start; gap: 8px;
  font-family: var(--display); font-weight: 700; font-size: 32px;
  letter-spacing: -0.04em; color: var(--ink); line-height: 1;
  opacity: 0;
  animation: preloader-brand-in 1s ease-out 0.5s forwards;
}
.preloader-brand sup { font-weight: 500; font-size: 13px; margin-top: 3px; }
.preloader-brand .brand-sub {
  font-family: var(--display); font-weight: 500; font-size: 11px;
  letter-spacing: 0.34em; color: var(--muted);
  margin-left: 14px; align-self: center; text-transform: uppercase;
}
.preloader-progress {
  position: absolute; left: 50%; bottom: 60px;
  width: 240px; height: 1px;
  background: color-mix(in oklab, var(--ink) 18%, transparent);
  transform: translateX(-50%);
  overflow: hidden;
  opacity: 0;
  animation: preloader-brand-in 0.6s ease-out 0.4s forwards;
}
.preloader-progress::after {
  content: ''; position: absolute; inset: 0 100% 0 0;
  background: var(--clay);
  animation: preloader-progress 1.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
}
@keyframes preloader-sweep {
  0%   { left: -38vw; }
  100% { left: 100vw; }
}
@keyframes preloader-brand-in {
  0%   { opacity: 0; transform: translate(-50%, -46%); }
  100% { opacity: 1; transform: translate(-50%, -50%); }
}
@keyframes preloader-progress {
  0%   { inset: 0 100% 0 0; }
  100% { inset: 0 0 0 0; }
}
@keyframes preloader-out {
  0%, 78% { transform: translateY(0); }
  100%    { transform: translateY(-100%); }
}
@media (prefers-reduced-motion: reduce) {
  #preloader { animation: preloader-out-reduced 0.4s ease-out forwards; }
  .preloader-sweep, .preloader-brand, .preloader-progress { animation: none; opacity: 1; }
  @keyframes preloader-out-reduced { to { opacity: 0; visibility: hidden; } }
}

/* ── Global motion guard — collapse animations + transitions for users who opt out ── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  /* Keep instant cross-fades on stacked hero images so the page doesn't go blank */
  .hero-bleed .hero-img { transition: opacity 0.2s ease !important; }
  .hero-bleed .title-stack .title { transition: opacity 0.2s ease !important; transform: none !important; }
}


/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — mobile-first breakpoints
   ═══════════════════════════════════════════════════════════════ */

/* ── Tablet (≤1024px) ──────────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --pad-x: 32px; }

  .nav-inner { padding: 18px 0; gap: 24px; }

  /* Footer compresses to 3 columns */
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-markets-grid { grid-template-columns: repeat(2, 1fr); }

  /* Findex 5→3 cols */
  .findex { grid-template-columns: repeat(3, 1fr); }

  /* Clients 4→3 cols */
  .clients-list { grid-template-columns: repeat(3, 1fr); }
}

/* ── Mobile (≤768px) ───────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --pad-x: 20px; }

  /* ── Nav: hide desktop links, show hamburger ─────────────── */
  .nav-links,
  .nav-actions { display: none; }

  .nav-inner { padding: 16px 0; gap: 0; justify-content: space-between; }

  /* On hero pages the nav is fully transparent — add a dark gradient scrim
     so the hamburger bars and wordmark are readable against light photos */
  body.has-hero .nav:not(.scrolled) {
    background: linear-gradient(to bottom, rgba(26,24,21,0.55) 0%, rgba(26,24,21,0) 100%) !important;
  }

  .nav-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 6px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--ink);
    flex-shrink: 0;
    z-index: 40;
    position: relative;
  }
  /* On hero pages, hamburger is bone-colored until scroll */
  body.has-hero .nav:not(.scrolled) .nav-hamburger { color: var(--bone); }
  body.has-hero .nav.scrolled .nav-hamburger { color: var(--ink); }

  .nav-hamburger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: currentColor;
    transition: transform .25s ease, opacity .2s ease;
    transform-origin: center;
  }

  /* Hamburger → X animation */
  .nav.open .nav-hamburger { color: var(--bone) !important; }
  .nav.open .nav-hamburger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav.open .nav-hamburger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .nav.open .nav-hamburger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  /* Full-screen mobile drawer */
  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--ink);
    padding: 100px var(--pad-x) 48px;
    z-index: 35;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav.open .nav-links a {
    color: var(--bone);
    font-family: var(--display);
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.03em;
    padding: 18px 0;
    border-bottom: 1px solid color-mix(in oklab, var(--bone) 10%, transparent);
    border-top: none;
    border-left: none;
    margin-left: 0;
    padding-left: 0;
    transition: color .2s;
  }
  .nav.open .nav-links a:hover { color: var(--clay); }
  .nav.open .nav-links a.active { color: var(--bone); border-bottom-color: var(--clay); }
  .nav.open .nav-links a.nav-tool {
    color: var(--clay);
    border-left: none;
    margin-left: 0;
    padding-left: 0;
    margin-top: 8px;
  }
  .nav.open .nav-links a.nav-tool::before { display: none; }

  /* Actions pinned to bottom */
  .nav.open .nav-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: fixed;
    bottom: 36px; left: var(--pad-x); right: var(--pad-x);
    z-index: 36;
  }
  .nav.open .nav-actions .nav-tel {
    display: block;
    color: color-mix(in oklab, var(--bone) 55%, transparent);
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.1em;
  }
  .nav.open .nav-actions .btn {
    width: 100%;
    justify-content: center;
    background: var(--clay);
    border-color: var(--clay);
    color: #fff;
  }

  /* ── Sections ───────────────────────────────────────────── */
  .section { padding: 64px 0; }
  .section-head {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 32px;
  }
  .section-head .num { display: none; }

  /* ── Pagehead ───────────────────────────────────────────── */
  .pagehead { padding: 48px 0 28px; }
  .pagehead-row { flex-direction: column; gap: 12px; align-items: flex-start; }
  .pagehead h1 { font-size: clamp(52px, 13vw, 88px); }
  .pagehead-meta { flex-direction: column; gap: 8px; margin-top: 20px; }

  /* ── Plate (full-bleed hero) ───────────────────────────── */
  .plate { height: 70vmax; min-height: 400px; }
  .plate .caption { left: var(--pad-x); right: var(--pad-x); bottom: 24px; flex-direction: column; gap: 6px; align-items: flex-start; }
  .plate .caption .b { font-size: 28px; }

  /* ── Shared photo grids ─────────────────────────────────── */
  /* Findex (finishes index) 5/3→2 cols */
  .findex { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .findex .row .name { font-size: 18px; }

  /* Three-col grid → single column */
  .col-3 { grid-template-columns: 1fr; }
  .col-3 .panel { aspect-ratio: 4/3; }

  /* Duo → stacked */
  .duo { grid-template-columns: 1fr; }
  .duo .panel { aspect-ratio: 4/3; }

  /* Spec-grid (finishes) → single column */
  .spec-grid { grid-template-columns: 1fr !important; }

  /* ── Clients grid 4→2 cols ──────────────────────────────── */
  .clients-list { grid-template-columns: repeat(2, 1fr); }

  /* ── Press wall ─────────────────────────────────────────── */
  .press-inner { flex-direction: column; gap: 20px; align-items: flex-start; }
  .press-marks { flex-wrap: wrap; gap: 16px 28px; justify-content: flex-start; }

  /* ── Footer ─────────────────────────────────────────────── */
  .footer { padding: 56px 0 40px; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-markets { padding: 40px 0; }
  .footer-markets-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-markets-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 24px;
  }
  .footer-markets-head h3 { font-size: 24px; }
  .footer-lower {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .footer-lower .legal { gap: 14px; }

  /* ── Buttons full-width on mobile ───────────────────────── */
  .btn { width: 100%; justify-content: center; }

  /* ── icard ──────────────────────────────────────────────── */
  .icard h3 { font-size: 20px; }
}

/* ── Small phone (≤480px) ──────────────────────────────────── */
@media (max-width: 480px) {
  :root { --pad-x: 16px; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-markets-grid { grid-template-columns: 1fr; }
  .footer-lower .legal { flex-direction: column; gap: 10px; }

  .clients-list { grid-template-columns: 1fr 1fr; }
  .findex { grid-template-columns: 1fr 1fr; }
}
