/* ============================================================
   IRONHALL CONSTRUCTION — Showcase Build #2 by SimpliTechPro
   Craft / Materials Studio — warm bone · walnut · concrete · clay
   style.css?v=9 — bump the ?v= on every change
   ============================================================ */

:root {
  --bone:        #F5F1EA;
  --bone-deep:   #EDE7DC;
  --ink:         #2A2420;
  --ink-soft:    #6B6157;
  --clay:        #B4592E;
  --clay-deep:   #96471F;
  --clay-btn:    #A64F26; /* button fill — AA (4.87:1) with bone text */
  --clay-ink:    #8F441F; /* small clay TEXT on light plates — AA on bone (6.1:1) + concrete (4.9:1) */
  --walnut:      #372C24;
  --walnut-soft: #4A3C31;
  --concrete:    #DCD8CF;
  --line:        rgba(42, 36, 32, 0.16);

  --serif: "Fraunces", Georgia, serif;
  --display: "Abril Fatface", "Fraunces", Georgia, serif;
  --clay-lit: #D9835A; /* clay lifted for legibility on dark photo */
  --sans:  "Source Sans 3", "Segoe UI", sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, monospace;
  --roboto: "Roboto", "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bone);
}

::selection { background: var(--clay); color: var(--bone); }

img { max-width: 100%; display: block; }
a { color: inherit; }

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

/* ---------- paper grain (subtle, the craft signature) ---------- */
.plate-bone, .plate-walnut, .plate-concrete { position: relative; }
.plate-bone::before, .plate-walnut::before, .plate-concrete::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  z-index: 0;
}
.plate-bone > *, .plate-walnut > *, .plate-concrete > * { position: relative; z-index: 1; }

.plate-walnut { background: var(--walnut); color: var(--bone); }
.plate-concrete { background: var(--concrete); }

/* ============================== NAV ============================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 241, 234, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 28px;
  display: flex; align-items: center; gap: 34px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { color: var(--clay); display: grid; place-items: center; }
.brand-word { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 22px; letter-spacing: 0.01em; }
.brand-sub { font-family: var(--mono); font-size: 9px; letter-spacing: 0.34em; color: var(--ink-soft); margin-top: 3px; }

.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a {
  text-decoration: none; font-size: 15px; font-weight: 600; color: var(--ink-soft);
  transition: color 0.25s var(--ease);
}
.nav-links a:hover { color: var(--clay); }

/* ============================== BUTTONS ============================== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-weight: 600; font-size: 16px;
  text-decoration: none;
  padding: 13px 26px;
  border: 1.5px solid transparent;
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
              border-color 0.3s var(--ease), transform 0.3s var(--ease),
              box-shadow 0.3s var(--ease);
}
.btn-lg { padding: 16px 32px; font-size: 17px; }
.btn-clay {
  background: var(--clay-btn); color: var(--bone);
  box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 10px 24px -12px rgba(180, 89, 46, 0.55);
}
.btn-clay:hover { background: var(--clay-deep); transform: translateY(-2px); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--bone); transform: translateY(-2px); }
.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.nav-cta { padding: 10px 20px; font-size: 15px; }

/* ============================== HERO (full-screen photo) ============================== */
.hero {
  position: relative;
  min-height: calc(100svh - 64px);
  display: flex;
  align-items: center;
  background:
    linear-gradient(100deg, rgba(26, 20, 16, 0.78) 0%, rgba(26, 20, 16, 0.45) 48%, rgba(26, 20, 16, 0.18) 100%),
    url("assets/hero.jpg") center / cover no-repeat;
  color: var(--bone);
}
.hero-inner {
  position: relative;
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
  padding: 96px 28px 110px;
}
.hero-copy { max-width: 640px; }

.eyebrow {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.22em;
  color: var(--clay-lit);
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 26px;
}
.eyebrow-rule { width: 44px; height: 1.5px; background: var(--clay-lit); flex: none; }

.hero-h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.7rem, 5.2vw, 4.5rem);
  line-height: 1.14;
  letter-spacing: 0.012em;
  margin-bottom: 26px;
  text-shadow: 0 2px 22px rgba(26, 20, 16, 0.45);
}
.hero-h1 em { font-style: normal; color: var(--clay-lit); }

.hero-sub {
  font-size: 19px; line-height: 1.65; color: rgba(245, 241, 234, 0.88);
  max-width: 46ch;
  margin-bottom: 38px;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 34px; }

.hero-proof {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.08em;
  color: rgba(245, 241, 234, 0.72);
}

/* ghost button reads on the dark photo */
.hero .btn-ghost { border-color: var(--bone); color: var(--bone); }
.hero .btn-ghost:hover { background: var(--bone); color: var(--ink); }

/* stamp + project tag pinned to the photo's lower-right */
.hero-stamp {
  position: absolute; right: 48px; bottom: 96px;
  color: var(--clay-lit);
  opacity: 0.94;
  filter: drop-shadow(0 2px 8px rgba(26,20,16,0.5));
}
.photo-tag {
  position: absolute; right: 48px; bottom: 44px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em;
  color: rgba(245, 241, 234, 0.78);
}

/* ============================== TRUST BAR ============================== */
.trustbar { background: var(--walnut); color: var(--bone); }
.trustbar-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 15px 28px;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 18px;
  font-family: var(--roboto); font-weight: 500; font-size: 13.5px; letter-spacing: 0.1em;
}
.trustbar-inner i { font-style: normal; color: var(--clay); }

/* ============================== SECTIONS (shared) ============================== */
.section { scroll-margin-top: 72px; }
.section-inner { max-width: var(--maxw); margin: 0 auto; padding: 110px 28px; }
.section-tight .section-inner { padding-top: 90px; }

.kicker {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.24em;
  color: var(--clay-ink);
  margin-bottom: 20px;
}
.plate-walnut .kicker, .plate-walnut .kicker-num { color: var(--clay-lit); }
.kicker-num { font-size: 13px; }

.section-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  line-height: 1.18;
  letter-spacing: 0.01em;
  margin-bottom: 18px;
}
.section-sub { font-size: 18px; color: var(--ink-soft); max-width: 56ch; }
.plate-walnut .section-sub { color: rgba(245,241,234,0.75); }
.section-head { margin-bottom: 56px; }

/* ============================== 01 · WHAT WE BUILD ============================== */
.build-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(245,241,234,0.18);
}
.build-item {
  padding: 36px 26px 40px 0;
  border-right: 1px solid rgba(245,241,234,0.14);
  padding-left: 26px;
}
.build-item:first-child { padding-left: 0; }
.build-item:last-child { border-right: none; }
.build-num { font-family: var(--mono); font-size: 12px; color: var(--clay-lit); letter-spacing: 0.2em; }
.build-item h3 {
  font-family: var(--serif); font-weight: 550; font-size: 23px;
  margin: 14px 0 10px;
}
.build-item p { font-size: 15.5px; color: rgba(245,241,234,0.72); line-height: 1.6; }

/* ============================== BEFORE / AFTER ============================== */
.ba-slider {
  position: relative;
  overflow: hidden;
  height: min(66vh, 620px);
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  box-shadow: 0 30px 60px -30px rgba(42,36,32,0.45);
}
.ba-pane { position: absolute; inset: 0; }
.ba-pane img {
  width: 100%; height: 100%; object-fit: cover;
  pointer-events: none;           /* pointer events belong to the slider */
  -webkit-user-drag: none;
}
.ba-slider { cursor: ew-resize; }
.ba-slider:focus-visible { outline: 2px solid var(--clay); outline-offset: 4px; }
.ba-slider.is-dragging .ba-handle span { transform: translate(-50%, -50%) scale(1.12); }
.ba-handle span { transition: transform 0.25s var(--ease); }
.ba-after { clip-path: inset(0 0 0 50%); }
.ba-label {
  position: absolute; top: 20px; left: 20px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.24em;
  color: var(--bone);
  background: rgba(42, 36, 32, 0.72);
  padding: 7px 14px;
}
.ba-label-after { left: auto; right: 20px; background: var(--clay-deep); }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 2px; background: var(--bone);
  transform: translateX(-1px);
  cursor: ew-resize;
}
.ba-handle span {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--bone);
  box-shadow: 0 4px 16px rgba(42,36,32,0.35);
}
.ba-handle span::before, .ba-handle span::after {
  content: "";
  position: absolute; top: 50%;
  width: 0; height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  transform: translateY(-50%);
}
.ba-handle span::before { left: 9px; border-right: 7px solid var(--clay); }
.ba-handle span::after { right: 9px; border-left: 7px solid var(--clay); }
.ba-note {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em;
  color: var(--ink-soft);
  margin-top: 18px; text-align: right;
}
/* static fallback until M3 wires the drag (and for reduced-motion) */
.ba-slider.is-static .ba-after { clip-path: inset(0 0 0 50%); }

/* ============================== 02 · SELECTED WORK ============================== */
.work-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.chip {
  font-family: var(--sans); font-weight: 600; font-size: 14px;
  padding: 9px 20px;
  background: transparent;
  border: 1.5px solid var(--line);
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.chip:hover { border-color: var(--clay); color: var(--clay); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--bone); }

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px 28px;
}
.work-card { text-decoration: none; color: var(--ink); display: block; }
.work-card.is-hidden { display: none; }
.work-img { overflow: hidden; position: relative; }
.work-img img {
  width: 100%; height: 300px; object-fit: cover;
  filter: saturate(1.03);
  transition: transform 0.7s var(--ease);
}
.work-card:hover .work-img img { transform: scale(1.045); }
.work-img::after {
  content: "VIEW PROJECT →";
  position: absolute; left: 0; right: 0; bottom: 0;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em;
  color: var(--bone);
  background: linear-gradient(to top, rgba(42,36,32,0.82), rgba(42,36,32,0));
  padding: 34px 18px 14px;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.work-card:hover .work-img::after { opacity: 1; }
.work-meta h3 { font-family: var(--serif); font-weight: 550; font-size: 20px; margin: 16px 0 4px; }
.work-meta p { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--ink-soft); }

/* ============================== STATS BAND ============================== */
.statband-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 64px 28px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; text-align: center;
}
.stat-big {
  display: block;
  font-family: var(--display);
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  color: var(--bone);
  line-height: 1.05;
}
.stat-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.28em;
  color: var(--clay-lit);
  margin-top: 10px; display: block;
}

/* ============================== 03 · HOW WE BUILD ============================== */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  counter-reset: step;
}
.step {
  background: var(--bone);
  border: 1px solid var(--line);
  padding: 30px 26px 34px;
  position: relative;
}
.step-num {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em;
  color: var(--clay-ink);
}
.step h3 { font-family: var(--serif); font-weight: 550; font-size: 22px; margin: 14px 0 10px; }
.step p { font-size: 15px; color: var(--ink-soft); line-height: 1.62; }

.guarantee {
  margin-top: 54px;
  display: flex; align-items: center; gap: 30px;
  background: var(--walnut); color: var(--bone);
  padding: 34px 38px;
}
.guarantee-stamp { color: var(--clay-lit); flex: none; }
.guarantee h3 { font-family: var(--serif); font-weight: 550; font-size: 21px; margin-bottom: 8px; }
.guarantee p { font-size: 15.5px; color: rgba(245,241,234,0.78); max-width: 68ch; }

/* ============================== REVIEWS ============================== */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.review {
  border-top: 2px solid var(--clay);
  background: #FBF8F2;
  padding: 32px 30px 30px;
}
.review p {
  font-family: var(--serif); font-style: italic; font-weight: 450;
  font-size: 18.5px; line-height: 1.6;
  margin-bottom: 22px;
}
.review footer {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  color: var(--ink-soft);
}

/* ============================== SERVICE AREAS ============================== */
.area-list {
  list-style: none;
  display: flex; flex-wrap: wrap; gap: 14px;
}
.area-list li {
  font-family: var(--mono); font-size: 14px; letter-spacing: 0.1em;
  border: 1px solid rgba(245,241,234,0.28);
  color: rgba(245,241,234,0.88);
  padding: 12px 22px;
  transition: all 0.3s var(--ease);
}
.area-list li:hover { border-color: var(--clay-lit); color: var(--clay-lit); }

/* ============================== CLOSING CTA ============================== */
.closing-inner { text-align: center; padding-top: 130px; padding-bottom: 140px; }
.closing-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.15;
  margin-bottom: 20px;
}
.closing-title em { font-style: normal; color: var(--clay); }
.closing-sub { font-size: 18.5px; color: var(--ink-soft); margin-bottom: 40px; }

/* ============================== FOOTER ============================== */
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 30px 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-top: 70px; padding-bottom: 50px;
  border-bottom: 1px solid rgba(245,241,234,0.14);
}
.footer-brand .brand-mark { color: var(--clay-lit); }
.footer-name { font-family: var(--serif); font-weight: 550; font-size: 20px; margin-top: 14px; }
.footer-tag { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.26em; color: rgba(245,241,234,0.6); margin-top: 6px; }
.footer-col h4 {
  font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: 0.24em;
  color: var(--clay-lit);
  margin-bottom: 16px;
}
.footer-col a, .footer-col p {
  display: block;
  font-size: 15px; color: rgba(245,241,234,0.78);
  text-decoration: none;
  margin-bottom: 10px;
}
.footer-col a:hover { color: var(--bone); }
.footer-bottom { text-align: center; padding-top: 26px; padding-bottom: 30px; }
.footer-honesty { font-size: 14px; color: rgba(245,241,234,0.72); }
.footer-honesty a { color: var(--bone); }

/* ============================== CASE STUDY ============================== */
.cs-hero {
  position: relative;
  min-height: 68svh;
  display: flex; align-items: flex-end;
  background:
    linear-gradient(to top, rgba(26, 20, 16, 0.82) 0%, rgba(26, 20, 16, 0.35) 55%, rgba(26, 20, 16, 0.25) 100%),
    url("assets/hero-dusk.jpg") center / cover no-repeat;
  color: var(--bone);
}
.cs-hero-inner {
  max-width: var(--maxw); width: 100%;
  margin: 0 auto;
  padding: 120px 28px 64px;
}
.cs-hero .kicker { color: var(--clay-lit); }
.cs-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.6rem, 5.6vw, 4.8rem);
  line-height: 1.1;
  margin-bottom: 18px;
  text-shadow: 0 2px 22px rgba(26, 20, 16, 0.45);
}
.cs-title em { font-style: normal; color: var(--clay-lit); }
.cs-oneliner { font-size: 19px; color: rgba(245,241,234,0.9); max-width: 60ch; margin-bottom: 22px; }
.cs-meta { font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; color: rgba(245,241,234,0.72); }

.cs-cols {
  columns: 2; column-gap: 56px;
  font-size: 18px; line-height: 1.75; color: var(--ink-soft);
  max-width: 62rem;
}
.cs-cols p { break-inside: avoid; margin-bottom: 20px; }
.cs-cols p:first-child::first-letter {
  font-family: var(--display);
  font-size: 3.4em; line-height: 0.85;
  float: left;
  padding: 6px 12px 0 0;
  color: var(--clay);
}

.cs-story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.cs-fig img { width: 100%; height: 320px; object-fit: cover; }
.cs-fig figcaption { font-size: 15px; color: var(--ink-soft); line-height: 1.6; margin-top: 16px; }
.cs-fig figcaption span {
  display: block;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em;
  color: var(--clay-ink); margin-bottom: 8px;
}

.cs-details { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cs-detail {
  border: 1px solid rgba(245,241,234,0.2);
  padding: 26px 24px;
}
.cs-detail-label {
  display: block;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.26em;
  color: var(--clay-lit); margin-bottom: 12px;
}
.cs-detail-val { font-family: var(--serif); font-weight: 550; font-size: 19px; }

.cs-quote { margin-top: 60px; max-width: 56rem; }
.cs-quote p {
  font-family: var(--serif); font-style: italic; font-weight: 450;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem); line-height: 1.55;
  margin-bottom: 20px;
}
.cs-quote footer { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; color: var(--clay-lit); }

/* ============================== START-YOUR-BUILD MODAL ============================== */
.modal { position: fixed; inset: 0; z-index: 100; }
.modal[hidden] { display: none; }
.modal-overlay {
  position: absolute; inset: 0;
  background: rgba(26, 20, 16, 0.72);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.modal-box {
  position: relative;
  max-width: 560px;
  margin: 7vh auto 0;
  max-height: 86vh;
  overflow-y: auto;
  background: var(--bone);
  padding: 44px 46px 40px;
  box-shadow: 0 40px 90px -20px rgba(26,20,16,0.6);
}
.modal-close {
  position: absolute; top: 14px; right: 16px;
  font-size: 30px; line-height: 1;
  background: none; border: none;
  color: var(--ink-soft); cursor: pointer;
  padding: 6px 10px;
}
.modal-close:hover { color: var(--clay); }
.modal-title {
  font-family: var(--display); font-weight: 400;
  font-size: 30px; margin: 6px 0 26px;
}
.m-step { border: none; }
.m-q { font-family: var(--serif); font-weight: 550; font-size: 20px; margin-bottom: 18px; }
.m-opts { display: grid; gap: 10px; }
.m-opt { display: block; cursor: pointer; }
.m-opt input { position: absolute; opacity: 0; }
.m-opt span {
  display: block;
  border: 1.5px solid var(--line);
  padding: 13px 18px;
  font-size: 16px; font-weight: 600;
  transition: all 0.22s var(--ease);
}
.m-opt:hover span { border-color: var(--clay); color: var(--clay); }
.m-opt input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--bone); }
.m-opt input:focus-visible + span { outline: 2px solid var(--clay); outline-offset: 2px; }

.m-fields { display: grid; gap: 16px; }
.m-fields label { font-weight: 600; font-size: 14.5px; display: block; }
.m-optional { color: var(--ink-soft); font-weight: 400; }
.m-fields input {
  display: block; width: 100%;
  margin-top: 7px;
  padding: 12px 14px;
  font-family: var(--sans); font-size: 16px;
  border: 1.5px solid var(--line);
  background: #FBF8F2;
  color: var(--ink);
}
.m-fields input:focus { outline: 2px solid var(--clay); outline-offset: 0; border-color: var(--clay); }
.m-fields input.is-bad { border-color: #B3261E; }

.m-error { color: #B3261E; font-size: 14.5px; font-weight: 600; margin-top: 16px; }

.m-nav { display: flex; justify-content: space-between; gap: 14px; margin-top: 30px; }
.m-nav .m-next { margin-left: auto; }

.m-confirm { text-align: center; padding: 12px 0 6px; }
.m-confirm-stamp { color: var(--clay); margin-bottom: 18px; }
.m-confirm h3 { font-family: var(--serif); font-weight: 550; font-size: 22px; margin-bottom: 12px; }
.m-confirm p { color: var(--ink-soft); margin-bottom: 10px; }
.m-ref { font-family: var(--mono); color: var(--clay-ink); letter-spacing: 0.08em; }
.m-demo-note {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.18em;
  color: var(--ink-soft);
  margin-top: 18px;
}
body.modal-open { overflow: hidden; }

/* ============================== MOBILE CTA (pinned) ============================== */
.mobile-cta {
  display: none;
  position: fixed; left: 14px; right: 14px; bottom: 14px;
  z-index: 60;
  justify-content: center;
  box-shadow: 0 12px 30px -8px rgba(42,36,32,0.5);
}

/* ============================== REVEAL (JS adds .is-in) ============================== */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(22px); }
  .reveal.is-in { opacity: 1; transform: none; transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
}

/* ============================== MOBILE ============================== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero { min-height: calc(100svh - 58px); }
  .hero-inner { padding: 64px 22px 130px; }
  .hero-h1 { font-size: clamp(2.2rem, 9vw, 3.2rem); }
  .hero-sub { font-size: 17.5px; }
  .hero-stamp { right: 18px; bottom: 74px; transform: scale(0.78); transform-origin: bottom right; }
  .photo-tag { right: 18px; bottom: 40px; font-size: 10px; }

  .section-inner { padding: 72px 22px; }
  .section-head { margin-bottom: 40px; }

  .build-grid { grid-template-columns: 1fr; border-top: none; }
  .build-item {
    border-right: none;
    border-top: 1px solid rgba(245,241,234,0.14);
    padding: 26px 0;
  }

  .ba-slider { height: 54vw; min-height: 260px; }

  .work-grid { grid-template-columns: 1fr; gap: 36px; }
  .work-img img { height: 62vw; max-height: 340px; }

  .statband-inner { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; padding: 50px 22px; }

  .steps { grid-template-columns: 1fr; gap: 18px; }
  .guarantee { flex-direction: column; align-items: flex-start; gap: 20px; padding: 28px 24px; }

  .review-grid { grid-template-columns: 1fr; gap: 20px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px 24px; }

  .mobile-cta { display: inline-flex; }
  .footer-bottom { padding-bottom: 92px; } /* room above the pinned CTA */

  .cs-hero { min-height: 56svh; }
  .cs-hero-inner { padding: 90px 22px 46px; }
  .cs-cols { columns: 1; font-size: 17px; }
  .cs-story-grid { grid-template-columns: 1fr; gap: 34px; }
  .cs-fig img { height: 58vw; max-height: 320px; }
  .cs-details { grid-template-columns: 1fr 1fr; gap: 14px; }

  .modal-box { margin: 0; max-width: none; min-height: 100svh; max-height: none; padding: 40px 24px 90px; }
}
@media (max-width: 480px) {
  .hero-ctas .btn-lg { width: 100%; justify-content: center; }
  .nav-cta { padding: 9px 14px; font-size: 13.5px; }
  .brand-sub { display: none; }
}
