/*
Theme Name: Hilder Homes
Theme URI: https://www.hilderhomes.com.au/
Description: Bold industrial theme for Hilder Homes — registered builder, South Gippsland. Brand teal #07767F. Projects are a custom post type so new builds can be added from wp-admin.
Author: gilbo.ai
Author URI: https://gilboai.net.au/
Version: 2.5.0
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: hilderhomes
*/

/* ==========================================================================
   1. TOKENS
   ========================================================================== */

:root {
  /* Ink — the dark end. Steel, not black. */
  --ink:        #0E1013;
  --ink-2:      #16191E;
  --ink-3:      #22262D;
  --steel:      #363C45;

  /* Paper — the light end. Warm, like raw concrete and plaster. */
  --paper:      #F4F2EE;
  --paper-2:    #E7E4DD;
  --paper-3:    #D6D2C8;

  /* Brand. --brand is Hilder Homes' actual logo teal; do not alter it.
     The other two are the same hue (184°) lifted or deepened purely to keep
     contrast legal, because #07767F alone can't carry the whole system:
       on ink #0E1013 — 3.54:1  (large text + UI only, fails small text)
       on paper #F4F2EE — 4.81:1 (fine for text)
     So: --brand-lift for anything small on a dark ground (7.52:1), --brand-deep
     for hover states on a light ground (6.91:1). */
  --brand:      #07767F;
  --brand-lift: #2CB3BD;
  --brand-deep: #055C63;

  --muted:      #7C818A;
  --muted-lt:   #A9AEB6;
  --rule:       rgba(14,16,19,.14);
  --rule-dk:    rgba(244,242,238,.16);

  /* Type */
  --display: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Metrics */
  --wrap:    1240px;
  --wrap-nr: 820px;
  --gut:     clamp(20px, 5vw, 56px);
  --header-h: 74px;

  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* ==========================================================================
   2. RESET + BASE
   ========================================================================== */

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

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

body {
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--brand); color: var(--paper); }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}

/* Anything that also carries .wrap must use padding-block, never the `padding`
   shorthand — the shorthand resets padding-inline and drops the element out of
   the site's gutter while everything around it stays aligned. */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}
.wrap--narrow { max-width: var(--wrap-nr); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--brand); color: var(--paper);
  padding: 14px 22px; font-weight: 700;
}
.skip-link:focus { left: 0; }

.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;
}

/* ==========================================================================
   3. TYPE SCALE — heavy, condensed, uppercase display
   ========================================================================== */

h1, h2, h3, h4, .display {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 96%;
  line-height: .95;
  letter-spacing: -.015em;
  text-transform: uppercase;
  text-wrap: balance;
}

h1, .h1 { font-size: clamp(2.75rem, 7.4vw, 6rem); }
h2, .h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h3, .h3 { font-size: clamp(1.4rem, 2.4vw, 1.95rem); line-height: 1.02; }
h4, .h4 { font-size: 1.1rem; letter-spacing: .01em; }

p { text-wrap: pretty; }
p + p { margin-top: 1.05em; }

.lede {
  font-size: clamp(1.06rem, 1.65vw, 1.3rem);
  line-height: 1.55;
  color: var(--steel);
}

/* Micro-label — the uppercase tracked-out eyebrow used all over the site. */
.label {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Section index — 01 / 02 / 03. Structural, not decorative. */
.idx {
  font-family: var(--display);
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .14em;
  color: var(--brand);
}

.rule { height: 2px; background: var(--ink); border: 0; }
.rule--thin { height: 1px; background: var(--rule); }

/* ==========================================================================
   4. BUTTONS
   ========================================================================== */

.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 17px 30px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--display);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  border: 2px solid var(--btn-bg);
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn--brand { --btn-bg: var(--brand); --btn-fg: var(--paper); }
.btn--brand:hover { --btn-bg: var(--brand-deep); }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { --btn-bg: var(--ink); --btn-fg: var(--paper); }

.btn--ghost-lt { --btn-bg: transparent; --btn-fg: var(--paper); border-color: rgba(244,242,238,.45); }
.btn--ghost-lt:hover { --btn-bg: var(--paper); --btn-fg: var(--ink); border-color: var(--paper); }

.btn .arw { transition: transform .2s var(--ease); }
.btn:hover .arw { transform: translateX(4px); }

/* ==========================================================================
   5. HEADER
   ========================================================================== */

.site-header {
  position: fixed; inset: 0 0 auto 0;
  z-index: 200;
  height: var(--header-h);
  display: flex; align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.site-header.is-solid {
  background: var(--ink);
  border-bottom-color: var(--rule-dk);
}
/* Pages without a dark hero need the solid bar from the start. */
body:not(.has-dark-hero) .site-header { background: var(--ink); border-bottom-color: var(--rule-dk); }

.header-inner {
  width: 100%; max-width: var(--wrap);
  margin-inline: auto; padding-inline: var(--gut);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { height: 44px; width: auto; }
.brand-text {
  font-family: var(--display);
  font-weight: 800; font-size: 1.02rem;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--paper); line-height: 1;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 10px 15px;
  font-family: var(--display);
  font-weight: 600; font-size: .8rem;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--paper-3);
  position: relative;
  transition: color .2s var(--ease);
}
.nav a::after {
  content: ''; position: absolute;
  left: 15px; right: 15px; bottom: 4px; height: 2px;
  background: var(--brand-lift);
  transform: scaleX(0); transform-origin: left;
  transition: transform .22s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--paper); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

.header-cta {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 20px;
  background: var(--brand); color: var(--paper);
  font-family: var(--display);
  font-weight: 700; font-size: .8rem;
  letter-spacing: .1em; text-transform: uppercase;
  white-space: nowrap;
  transition: background .2s var(--ease);
}
.header-cta:hover { background: var(--paper); }

.nav-toggle { display: none; width: 44px; height: 44px; padding: 10px; }
.nav-toggle span {
  display: block; height: 2px; background: var(--paper);
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-toggle span + span { margin-top: 6px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ==========================================================================
   6. HERO
   ========================================================================== */

.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: flex; align-items: flex-end;
  background: var(--ink);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(14,16,19,.94) 0%, rgba(14,16,19,.62) 42%, rgba(14,16,19,.34) 100%),
    linear-gradient(to right, rgba(14,16,19,.7) 0%, rgba(14,16,19,0) 62%);
}

.hero-inner {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--wrap);
  margin-inline: auto; padding: 0 var(--gut) clamp(48px, 7vw, 88px);
  color: var(--paper);
}
.hero .label { color: var(--brand-lift); }
.hero h1 { margin: 18px 0 0; color: var(--paper); max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--brand-lift); }
.hero-sub {
  margin-top: 24px; max-width: 52ch;
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
  line-height: 1.55; color: var(--paper-3);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* Credential strip bolted to the bottom of the hero. */
.hero-strip {
  position: relative; z-index: 2;
  background: var(--brand);
  color: var(--paper);
}
.hero-strip-inner {
  max-width: var(--wrap); margin-inline: auto;
  padding: 16px var(--gut);
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 34px;
  font-family: var(--display);
  font-weight: 700; font-size: .8rem;
  letter-spacing: .12em; text-transform: uppercase;
}
.hero-strip-inner span { display: inline-flex; align-items: center; gap: 9px; }
.hero-strip-inner svg { flex-shrink: 0; }

/* Compact hero for interior pages. */
.page-hero {
  background: var(--ink); color: var(--paper);
  padding: calc(var(--header-h) + clamp(56px, 8vw, 104px)) 0 clamp(44px, 6vw, 76px);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: auto 0 0 0; height: 4px;
  background: var(--brand-lift);
}
.page-hero h1 { color: var(--paper); margin-top: 14px; }
.page-hero .label { color: var(--brand-lift); }
.page-hero .lede { color: var(--paper-3); margin-top: 20px; max-width: 60ch; }

/* ==========================================================================
   7. SECTION FURNITURE
   ========================================================================== */

.section { padding-block: clamp(64px, 9vw, 120px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--dark { background: var(--ink); color: var(--paper); }
.section--dark h2, .section--dark h3 { color: var(--paper); }
.section--dark .lede { color: var(--muted-lt); }
.section--dark .label { color: var(--brand-lift); }
.section--alt { background: var(--paper-2); }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
  padding-bottom: 22px; margin-bottom: clamp(36px, 5vw, 60px);
  border-bottom: 2px solid var(--ink);
}
.section--dark .section-head { border-bottom-color: var(--rule-dk); }
.section-head-l { max-width: 46ch; }
.section-head h2 { margin-top: 12px; }

/* ==========================================================================
   8. SERVICES — numbered, ruled, no cards
   ========================================================================== */

.services { display: grid; gap: 0; grid-template-columns: repeat(3, 1fr); }
.service {
  padding: 34px 30px 38px;
  border-left: 1px solid var(--rule-dk);
  transition: background .25s var(--ease);
}
.service:first-child { border-left: 0; }
.service:hover { background: var(--ink-2); }
.service .idx { color: var(--brand-lift); }
.service h3 { margin: 16px 0 12px; }
.service p { color: var(--muted-lt); font-size: .97rem; }

/* ==========================================================================
   9. STATS
   ========================================================================== */

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
}
.stat { padding: 30px 24px; border-left: 1px solid var(--rule); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-n {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1;
  letter-spacing: -.02em;
}
.stat-l {
  margin-top: 10px;
  font-family: var(--display); font-weight: 600;
  font-size: .72rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--muted);
}

/* ==========================================================================
   10. PROJECT GRID
   ========================================================================== */

.proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 2px;
  background: var(--ink);
  border: 2px solid var(--ink);
}

/* Card is a positioned container; the title holds the only <a>, stretched over
   the whole card. Never nest a second anchor inside — it shatters the card. */
.proj-card {
  position: relative;
  background: var(--paper);
  overflow: hidden;
  isolation: isolate;
}
.proj-card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink-3); }
.proj-card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease), filter .4s var(--ease);
}
.proj-card:hover .proj-card-media img { transform: scale(1.055); }

.proj-card-body { padding: 24px 26px 30px; }
.proj-card h3 { margin: 12px 0 0; font-size: 1.35rem; }
.proj-card h3 a::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
}
.proj-card-excerpt { margin-top: 12px; font-size: .95rem; color: var(--steel); }

.proj-card-meta {
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  margin-top: 18px; padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-family: var(--display); font-weight: 600;
  font-size: .7rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--muted);
}

/* Status chip — square, structural. */
.chip {
  position: absolute; top: 0; left: 0; z-index: 2;
  padding: 8px 14px;
  background: var(--brand); color: var(--paper);
  font-family: var(--display); font-weight: 700;
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
}
.chip--complete    { background: var(--ink); color: var(--paper); }
.chip--in-progress { background: var(--brand); color: var(--paper); }
.chip--concept     { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }

/* ==========================================================================
   11. SINGLE PROJECT
   ========================================================================== */

.proj-hero { position: relative; background: var(--ink); }
.proj-hero-media { height: clamp(320px, 56vh, 620px); }
.proj-hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: .82; }

.proj-spec {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  margin: clamp(40px, 5vw, 60px) 0;
}
.proj-spec div { padding: 22px 20px; border-left: 1px solid var(--rule); }
.proj-spec div:first-child { border-left: 0; padding-left: 0; }
.proj-spec dt {
  font-family: var(--display); font-weight: 600;
  font-size: .68rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--muted);
}
.proj-spec dd {
  margin-top: 8px;
  font-family: var(--display); font-weight: 700;
  font-size: 1.15rem; text-transform: uppercase; letter-spacing: -.005em;
}

.proj-body { font-size: 1.08rem; line-height: 1.72; }
.proj-body p + p { margin-top: 1.15em; }
.proj-cta { margin-top: 1.9em; }

.gallery {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2px; background: var(--ink); border: 2px solid var(--ink);
}
.gallery figure { margin: 0; background: var(--ink-3); }
.gallery img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.gallery figure:first-child { grid-column: 1 / -1; }
.gallery figure:first-child img { aspect-ratio: 16 / 9; }

.proj-nav {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding-top: 30px; border-top: 2px solid var(--ink);
}
.proj-nav a {
  font-family: var(--display); font-weight: 700;
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
}
.proj-nav a:hover { color: var(--brand-deep); }

/* ==========================================================================
   12. ABOUT / SPLIT
   ========================================================================== */

.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.split-media { position: relative; }
/* Brand block sits behind the photo without negative z-index — the ::after paints
   first, then the positioned img paints over it. */
.split-media::after {
  content: ''; position: absolute;
  left: -14px; bottom: -14px; width: 88px; height: 88px;
  background: var(--brand);
}
.split-media img {
  position: relative;
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
}
.split h2 { margin: 14px 0 22px; }

.cred {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 28px; padding: 14px 20px;
  border: 2px solid var(--ink);
  font-family: var(--display); font-weight: 700;
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
}
.section--dark .cred { border-color: var(--rule-dk); }

/* ==========================================================================
   13. CTA BAND
   ========================================================================== */

.cta-band { background: var(--brand); color: var(--paper); }
.cta-band-inner {
  padding-block: clamp(48px, 7vw, 84px);
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.cta-band h2 { max-width: 18ch; }
/* Full paper, no opacity: nothing below 100% clears 4.5:1 on this teal, and the
   label already reads as secondary from its size and tracking. */
.cta-band .label { color: var(--paper); }
.cta-band .btn { --btn-bg: var(--ink); --btn-fg: var(--paper); }
.cta-band .btn:hover { --btn-bg: var(--paper); --btn-fg: var(--ink); border-color: var(--paper); }

/* ==========================================================================
   14. CONTACT
   ========================================================================== */

.contact-grid {
  display: grid; grid-template-columns: 1fr 1.15fr;
  gap: clamp(36px, 5vw, 72px);
}

.contact-list { list-style: none; }
.contact-list li { padding: 20px 0; border-top: 1px solid var(--rule); }
.contact-list li:first-child { border-top: 2px solid var(--ink); }
.contact-list li:last-child { border-bottom: 2px solid var(--ink); }
.contact-k {
  font-family: var(--display); font-weight: 600;
  font-size: .7rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--muted);
}
.contact-v {
  display: block; margin-top: 7px;
  font-family: var(--display); font-weight: 700;
  font-size: 1.2rem; text-transform: uppercase; letter-spacing: -.005em;
}
a.contact-v:hover { color: var(--brand-deep); }

.form-row { margin-bottom: 20px; }
.form-row label {
  display: block; margin-bottom: 8px;
  font-family: var(--display); font-weight: 600;
  font-size: .7rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--muted);
}
.form-row input, .form-row textarea {
  width: 100%; padding: 15px 16px;
  background: var(--paper);
  border: 2px solid var(--ink);
  font-size: 1rem; font-family: var(--body);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.form-row input:focus, .form-row textarea:focus {
  outline: 0; border-color: var(--brand);
  box-shadow: inset 0 0 0 2px var(--brand);
}
.form-row textarea { min-height: 168px; resize: vertical; }

.form-note { margin-top: 14px; font-size: .85rem; color: var(--muted); }

.notice {
  padding: 16px 20px; margin-bottom: 26px;
  border-left: 5px solid var(--brand); background: var(--paper-2);
  font-weight: 500;
}
.notice--err { border-left-color: #C0392B; }

/* Honeypot — visually gone, still focusable-hidden from AT. */
.hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

/* ==========================================================================
   15. FOOTER
   ========================================================================== */

.site-footer { background: var(--ink); color: var(--paper-3); }
.footer-top {
  padding: clamp(52px, 7vw, 82px) 0 44px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.footer-brand .brand-text { color: var(--paper); font-size: 1.3rem; }
.footer-logo { height: 58px; width: auto; }
.footer-brand p { margin-top: 20px; max-width: 34ch; font-size: .93rem; color: var(--muted-lt); }

.footer-col h4 {
  font-size: .72rem; letter-spacing: .16em; color: var(--brand-lift);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col li + li { margin-top: 11px; }
.footer-col a { font-size: .94rem; color: var(--paper-3); transition: color .2s var(--ease); }
.footer-col a:hover { color: var(--brand-lift); }

.footer-bot {
  padding: 22px 0 30px;
  border-top: 1px solid var(--rule-dk);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .82rem; color: var(--muted);
}
.footer-bot a:hover { color: var(--brand-lift); }

/* ==========================================================================
   16. GENERIC PAGE CONTENT
   ========================================================================== */

.entry-content { font-size: 1.05rem; line-height: 1.72; }
.entry-content > * + * { margin-top: 1.15em; }
.entry-content h2 { margin-top: 1.8em; }
.entry-content h3 { margin-top: 1.6em; }
.entry-content a { color: var(--brand-deep); text-decoration: underline; text-underline-offset: 3px; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li + li { margin-top: .45em; }
.entry-content blockquote {
  padding-left: 24px; border-left: 4px solid var(--brand);
  font-size: 1.12rem;
}
.entry-content img { margin-block: 1.5em; }

/* ==========================================================================
   17. RESPONSIVE
   ========================================================================== */

@media (max-width: 1000px) {
  .services { grid-template-columns: 1fr; }
  .service { border-left: 0; border-top: 1px solid var(--rule-dk); padding-inline: 0; }
  .service:first-child { border-top: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .split { grid-template-columns: 1fr; }
  .split-media { order: -1; }
  .split-media img { aspect-ratio: 16 / 10; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .header-cta { display: none; }

  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--rule-dk);
    padding: 8px var(--gut) 26px;
    transform: translateY(-12px);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
  .nav a { padding: 15px 0; font-size: .95rem; border-bottom: 1px solid var(--rule-dk); }
  .nav a::after { display: none; }
  .nav .header-cta {
    display: inline-flex; justify-content: center;
    margin-top: 18px; border-bottom: 0;
  }

  .brand img { height: 38px; }
  .hero { min-height: 82vh; }
  .proj-spec div { border-left: 0; border-top: 1px solid var(--rule); padding-left: 0; }
  .proj-spec div:first-child { border-top: 0; }
  .gallery figure:first-child { grid-column: auto; }
  .gallery figure:first-child img { aspect-ratio: 3 / 2; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); }
  .stat:first-child { border-top: 0; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-strip-inner { gap: 10px 20px; font-size: .72rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Reveal-on-scroll. Default is VISIBLE so a JS failure can never blank the page;
   the hidden start state is only applied once .js is on <html>. */
.reveal { opacity: 1; }
.js .reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
}
