/* =========================================================
   Ironbark Built – concept site
   Palette from building materials: concrete, Monument steel,
   galvanised grey, spotted gum, drafting blue.
   One family (Archivo) with its width axis doing the work:
   wide = site signage, narrow = drawing annotations.
   ========================================================= */

:root {
  --paper: #ECECE8;
  --paper-2: #E2E2DD;
  --white: #F8F8F6;
  --ink: #2A2C2E;
  --ink-2: #3A3D40;
  --steel: #62676B;
  --line: #C9C9C3;
  --gum: #8F5B34;
  --blueprint: #1F4FD8;
  --blueprint-deep: #1A3A9E;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1400px;
  --nav-h: 72px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  /* Type scale: 1.25 ratio from 16px body */
  --fs-sm: .875rem;
  --fs-base: 1rem;
  --fs-md: 1.25rem;
  --fs-lg: clamp(1.5rem, 1.1rem + 1.2vw, 2rem);
  --fs-xl: clamp(2rem, 1.2rem + 3vw, 3.75rem);
  --fs-hero: clamp(2.6rem, 1rem + 6.4vw, 7.4rem);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif;
  font-variation-settings: "wdth" 100;
  font-size: var(--fs-base);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.is-loading { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--blueprint);
  outline-offset: 3px;
  border-radius: 4px;
}

.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 {
  position: fixed; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px;
  text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Shared type ---------- */
h2 {
  font-size: var(--fs-xl);
  font-variation-settings: "wdth" 118;
  font-weight: 760;
  line-height: 1.02;
  letter-spacing: -.02em;
  text-wrap: balance;
}
h3 { font-weight: 650; letter-spacing: -.01em; }

.section-head {
  display: grid;
  gap: 20px;
  max-width: var(--max);
  margin: 0 auto clamp(40px, 6vw, 80px);
  padding: 0 var(--gutter);
}
.section-head p { max-width: 52ch; color: var(--steel); font-size: var(--fs-md); line-height: 1.5; }
.section-head--split { grid-template-columns: 1.2fr 1fr; align-items: end; gap: 40px; }
@media (max-width: 860px) { .section-head--split { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: 1rem; letter-spacing: -.005em;
  text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color .25s var(--ease-out), color .25s var(--ease-out), border-color .25s var(--ease-out);
  will-change: transform;
}
.btn--ink:hover { --bg: var(--blueprint); }
.btn--paper { --bg: var(--paper); --fg: var(--ink); }
.btn--paper:hover { --bg: var(--white); }
.btn--ghost { --bg: transparent; --fg: var(--ink); border-color: currentColor; }
.btn--ghost:hover { --bg: var(--ink); --fg: var(--paper); border-color: var(--ink); }
.btn--ghost-light { --bg: transparent; --fg: var(--white); border-color: rgba(248,248,246,.7); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: .9375rem; }
.btn--wide { width: 100%; }

/* =========================================================
   Preloader
   ========================================================= */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--ink); color: var(--paper);
  display: grid; place-items: center;
}
.loader__inner { display: grid; justify-items: center; gap: 28px; }
.level {
  width: min(320px, 70vw); height: 54px; border-radius: 12px;
  background: #E7B82B; /* the classic yellow level body */
  display: grid; place-items: center;
  box-shadow: inset 0 -4px 0 rgba(0,0,0,.18);
}
.level__vial {
  position: relative; width: 46%; height: 22px; border-radius: 11px;
  background: linear-gradient(#cfe8a2, #a9d35a);
  box-shadow: inset 0 2px 4px rgba(0,0,0,.25);
  overflow: hidden;
}
.level__mark { position: absolute; top: 0; bottom: 0; width: 2px; background: rgba(0,0,0,.55); }
.level__mark--l { left: 38%; } .level__mark--r { right: 38%; }
.level__bubble {
  position: absolute; top: 3px; left: 50%; width: 30px; height: 16px; margin-left: -15px;
  border-radius: 50%; background: rgba(255,255,255,.85);
  box-shadow: inset 0 -3px 4px rgba(120,160,40,.45);
}
.loader__word {
  font-size: clamp(1.6rem, 1rem + 3vw, 3rem);
  font-variation-settings: "wdth" 125; font-weight: 800; letter-spacing: -.02em;
  overflow: hidden;
}
.loader__word span { display: inline-block; }
.loader__word span + span { font-weight: 300; }
.loader__count { font-variation-settings: "wdth" 70; font-size: var(--fs-sm); color: #A9ADB0; font-variant-numeric: tabular-nums; }

/* =========================================================
   Navigation
   ========================================================= */
.nav {
  position: fixed; z-index: 50; top: 12px; left: 12px; right: 12px;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 28px;
  padding: 0 14px 0 22px;
  border-radius: 18px;
  background: rgba(236,236,232,.82);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid rgba(42,44,46,.08);
  transition: transform .5s var(--ease-out);
}
.nav.is-hidden { transform: translateY(calc(-100% - 16px)); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand__mark { width: 30px; height: 30px; fill: var(--ink); }
.brand__word { font-variation-settings: "wdth" 125; font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
.brand__word em { font-style: normal; font-weight: 300; }
.nav__links { display: flex; gap: 26px; }
.nav__links a, .nav__phone {
  text-decoration: none; font-size: .9375rem; font-weight: 500;
  position: relative; padding: 6px 0;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: var(--blueprint); transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease-out);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__phone { font-variant-numeric: tabular-nums; font-weight: 600; }

/* Scroll progress as a tiny spirit level */
.nav__level {
  position: relative; width: 74px; height: 14px; border-radius: 7px;
  background: linear-gradient(#d6ebb0, #b5d873);
  box-shadow: inset 0 1px 3px rgba(0,0,0,.25);
}
.nav__level::before, .nav__level::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 1.5px; background: rgba(0,0,0,.4);
}
.nav__level::before { left: 40%; } .nav__level::after { right: 40%; }
.nav__level-bubble {
  position: absolute; top: 2px; left: 2px; width: 18px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.9);
}

.nav__burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; }
.nav__burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); transition: transform .35s var(--ease-out); }
.nav__burger span:first-child { top: 17px; } .nav__burger span:last-child { top: 25px; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45; background: var(--paper);
  padding: calc(var(--nav-h) + 48px) var(--gutter) 40px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: grid; gap: 6px; }
.mobile-menu nav a {
  text-decoration: none; font-size: 2.2rem; font-variation-settings: "wdth" 120; font-weight: 750; letter-spacing: -.02em;
  padding: 6px 0;
}
.mobile-menu__phone { font-size: 1.25rem; font-weight: 600; }

@media (max-width: 1180px) { .nav__level { display: none; } }
@media (max-width: 1020px) {
  .nav__links, .nav__phone { display: none; }
}
@media (max-width: 640px) {
  :root { --nav-h: 60px; }
  .nav { top: 8px; left: 8px; right: 8px; gap: 8px; padding: 0 6px 0 14px; border-radius: 14px; }
  .nav .btn--sm { display: none; }
  .nav__burger { display: block; }
  .brand__word { font-size: 1.05rem; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero { position: relative; }
.hero__stage {
  position: relative; height: 100vh; height: 100svh; min-height: 620px;
  overflow: hidden;
}
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(31,79,216,.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,79,216,.10) 1px, transparent 1px),
    linear-gradient(rgba(31,79,216,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,79,216,.05) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
  mask-image: radial-gradient(ellipse 90% 80% at 60% 45%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 60% 45%, #000 40%, transparent 100%);
}

.plan {
  position: absolute;
  right: calc(var(--gutter) * -0.5); top: calc(var(--nav-h) + 8px);
  width: min(70vw, 1180px, calc((100svh - 400px) * 2.1)); height: auto;
  overflow: visible;
}
.plan__lines path, .plan__lines rect, .plan__lines line, .plan__lines polyline, .plan__lines circle {
  fill: none; stroke: var(--blueprint); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.plan__lines .thin { stroke-width: .8; opacity: .7; }
.plan__lines .heavy { stroke-width: 2.6; }
.plan__lines .tree { stroke: var(--steel); stroke-width: 1.2; }
.plan__notes text {
  fill: var(--blueprint); font-family: "Archivo", sans-serif; font-variation-settings: "wdth" 68;
  font-size: 13px; font-weight: 500; letter-spacing: .02em;
}
.plan__notes .title { font-size: 15px; font-weight: 650; font-variation-settings: "wdth" 80; }
.plan__notes path, .plan__notes line { stroke: var(--blueprint); stroke-width: 1; fill: none; vector-effect: non-scaling-stroke; }

.hero__copy {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(96px, 13vh, 150px);
  z-index: 2;
  max-width: var(--max);
}
.hero__kicker { font-size: var(--fs-md); font-weight: 500; color: var(--steel); margin-bottom: 18px; }
.hero__title {
  font-size: var(--fs-hero);
  font-variation-settings: "wdth" 125;
  font-weight: 820;
  line-height: .9;
  letter-spacing: -.035em;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero__title .line > span { display: inline-block; will-change: transform; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero__photo {
  position: absolute; inset: 0; z-index: 3;
  clip-path: inset(0 100% 0 0);
  pointer-events: none;
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; transform-origin: 70% 50%; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(20,22,24,.78) 0%, rgba(20,22,24,.35) 38%, rgba(20,22,24,0) 62%),
    linear-gradient(to right, rgba(20,22,24,.35), rgba(20,22,24,0) 55%);
}
.hero__copy--light { color: var(--white); }
.hero__copy--light .hero__kicker { color: rgba(248,248,246,.82); }

.hero__sweep {
  position: absolute; top: 0; bottom: 0; left: 0; z-index: 4; width: 0;
  border-left: 2px solid var(--blueprint);
  opacity: 0; pointer-events: none;
}
.hero__sweep-tag {
  position: absolute; top: 46%; left: -1px; transform: translate(-50%, -50%);
  display: flex; border-radius: 999px; overflow: hidden;
  font-variation-settings: "wdth" 75; font-size: .8125rem; font-weight: 600;
  box-shadow: 0 8px 24px rgba(20,22,24,.25);
}
.hero__sweep-tag b { padding: 7px 12px; font-weight: 600; }
.hero__sweep-tag b:first-child { background: var(--white); color: var(--ink); }
.hero__sweep-tag b:last-child { background: var(--blueprint); color: #fff; }

.hero__meta {
  position: absolute; z-index: 5; right: var(--gutter); bottom: 34px;
  display: flex; gap: 28px;
  font-size: var(--fs-sm); color: var(--steel);
  transition: color .4s;
}
.hero__meta strong { color: var(--ink); font-weight: 700; margin-right: 4px; transition: color .4s; }
.hero.is-built .hero__meta, .hero.is-built .hero__meta strong { color: var(--white); }
.hero__cue {
  position: absolute; z-index: 5; left: var(--gutter); bottom: 34px;
  display: flex; align-items: center; gap: 12px;
  font-size: var(--fs-sm); color: var(--steel); transition: color .4s;
}
.hero.is-built .hero__cue { color: rgba(248,248,246,.8); }
.hero__cue span { position: relative; width: 1.5px; height: 34px; background: currentColor; opacity: .35; overflow: hidden; }
.hero__cue span::after {
  content: ""; position: absolute; left: 0; right: 0; top: -40%; height: 40%; background: var(--blueprint);
  animation: cue 1.8s var(--ease-io) infinite;
}
@keyframes cue { to { top: 100%; } }

@media (max-width: 860px) {
  .plan { width: 128vw; right: -20vw; top: calc(var(--nav-h) + 36px); }
  .hero__meta { display: none; }
  .hero__copy { bottom: 92px; }
}
@media (max-width: 640px) {
  .plan { width: 150vw; right: -32vw; top: calc(var(--nav-h) + 4px); }
  .hero__kicker { display: none; }
  .hero__title { font-variation-settings: "wdth" 108; font-size: clamp(2.5rem, 12.4vw, 3.4rem); }
  .hero__copy { bottom: 84px; }
  .hero__actions .btn { flex: 1 1 auto; }
}

/* =========================================================
   Marquee
   ========================================================= */
.marquee {
  background: var(--ink); color: var(--paper);
  padding: 22px 0; overflow: hidden;
  border-block: 1px solid var(--ink-2);
}
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__list { display: flex; flex-shrink: 0; }
.marquee__list li {
  display: flex; align-items: center;
  font-size: clamp(1.4rem, 1rem + 1.6vw, 2.4rem);
  font-variation-settings: "wdth" 125; font-weight: 700; letter-spacing: -.02em;
  white-space: nowrap; padding-right: .9em;
}
.marquee__list li::after {
  content: ""; width: .7em; height: .55em; margin-left: .9em;
  background: var(--gum);
  clip-path: polygon(0 45%, 50% 0, 100% 45%, 100% 100%, 0 100%);
}

/* =========================================================
   Statement
   ========================================================= */
.statement {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(96px, 14vw, 200px) var(--gutter) clamp(64px, 8vw, 120px);
}
.statement__text {
  font-size: clamp(1.75rem, 1rem + 3vw, 4rem);
  font-variation-settings: "wdth" 108;
  font-weight: 600; line-height: 1.12; letter-spacing: -.025em;
  max-width: 24ch;
}
.statement__text .w { opacity: .14; transition: none; }
.statement__sig { display: flex; align-items: center; gap: 16px; margin-top: 48px; color: var(--steel); }
.statement__sig img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.statement__sig strong { color: var(--ink); }

/* =========================================================
   Tape measure stats
   ========================================================= */
.tape { position: relative; padding: 0 0 clamp(80px, 10vw, 140px); }
.tape__ruler {
  height: 64px; overflow: hidden;
  background: #E7B82B;
  border-block: 2px solid #C99A17;
}
.tape__svg { height: 64px; display: block; will-change: transform; }
.tape__svg line { stroke: var(--ink); stroke-width: 1.4; }
.tape__svg text { fill: var(--ink); font-family: "Archivo", sans-serif; font-variation-settings: "wdth" 70; font-weight: 700; font-size: 13px; }
.tape__svg .red { fill: #B3261E; }
.tape__stats {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.tape__stats > div { padding: 32px 24px 0 0; border-right: 1px solid var(--line); margin-right: 24px; }
.tape__stats > div:last-child { border-right: 0; margin-right: 0; }
.tape__stats dt { font-size: var(--fs-sm); color: var(--steel); max-width: 20ch; min-height: 2.8em; }
.tape__stats dd {
  margin-top: 12px;
  font-size: clamp(2.6rem, 1.6rem + 3vw, 4.75rem);
  font-variation-settings: "wdth" 125; font-weight: 800; letter-spacing: -.04em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 860px) {
  .tape__stats { grid-template-columns: 1fr 1fr; row-gap: 12px; }
  .tape__stats > div:nth-child(2) { border-right: 0; margin-right: 0; }
}

/* =========================================================
   Services
   ========================================================= */
.services { padding: clamp(80px, 10vw, 140px) 0; background: var(--white); }
.svc { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); border-top: 1px solid var(--line); }
.svc__row { border-bottom: 1px solid var(--line); }
.svc__row a {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; align-items: center; gap: 32px;
  padding: clamp(26px, 3vw, 40px) 0;
  text-decoration: none;
  position: relative;
}
.svc__row h3 {
  font-size: clamp(1.9rem, 1rem + 3.4vw, 4.4rem);
  font-variation-settings: "wdth" 125; font-weight: 780; letter-spacing: -.035em; line-height: 1;
  transition: transform .6s var(--ease-out), color .3s;
}
.svc__row p { color: var(--steel); max-width: 40ch; }
.svc__meta {
  font-variation-settings: "wdth" 72; font-weight: 600; font-size: var(--fs-sm);
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap;
  transition: background .3s, color .3s, border-color .3s;
}
@media (hover: hover) {
  .svc__row a:hover h3 { transform: translateX(18px); color: var(--blueprint); }
  .svc__row a:hover .svc__meta { background: var(--ink); color: var(--paper); border-color: var(--ink); }
}
.svc__float {
  position: fixed; left: 0; top: 0; z-index: 30;
  width: clamp(240px, 22vw, 360px); aspect-ratio: 4 / 5;
  border-radius: 14px; overflow: hidden;
  pointer-events: none;
  opacity: 0; transform: translate(-50%, -50%) scale(.6);
  box-shadow: 0 30px 60px -20px rgba(20,22,24,.45);
}
.svc__float img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px), (hover: none) {
  .svc__float { display: none; }
  .svc__row a { grid-template-columns: 1fr; gap: 10px; }
  .svc__meta { justify-self: start; }
}

/* =========================================================
   Plan vs built
   ========================================================= */
.compare { padding: clamp(80px, 10vw, 140px) 0; }
.compare__frame {
  --pos: 50%;
  position: relative;
  max-width: var(--max); margin: 0 auto;
  margin-inline: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden;
  background: var(--ink);
  touch-action: pan-y;
}
.compare__built, .compare__plan img { width: 100%; height: 100%; object-fit: cover; }
.compare__plan {
  position: absolute; inset: 0;
  background: var(--blueprint-deep);
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.compare__plan img {
  filter: grayscale(1) invert(1) contrast(2.4) brightness(.95);
  mix-blend-mode: screen; opacity: .78;
}
.compare__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.14) 1px, transparent 1px);
  background-size: 48px 48px;
}
.compare__stamp {
  position: absolute; left: 28px; bottom: 28px;
  border: 1.5px solid rgba(255,255,255,.85); color: #fff; padding: 10px 14px; border-radius: 6px;
  font-variation-settings: "wdth" 72; font-weight: 700; font-size: .9375rem; line-height: 1.3;
  transform: rotate(-3deg);
}
.compare__stamp small { font-weight: 500; opacity: .8; font-size: .8125rem; }
.compare__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px;
  background: var(--white); pointer-events: none;
}
.compare__knob {
  position: absolute; top: 50%; left: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px;
  border-radius: 50%; background: var(--white); display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
  transition: transform .3s var(--ease-out);
}
.compare__frame:hover .compare__knob { transform: scale(1.08); }
.compare__knob svg { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.compare__range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize; touch-action: pan-y;
}
.compare__range:focus-visible + .compare__label, .compare__frame:has(.compare__range:focus-visible) .compare__knob {
  outline: 3px solid var(--blueprint); outline-offset: 3px;
}
.compare__label {
  position: absolute; top: 22px; padding: 6px 12px; border-radius: 999px;
  font-size: var(--fs-sm); font-weight: 600; pointer-events: none;
}
.compare__label--l { left: 22px; background: rgba(255,255,255,.16); color: #fff; backdrop-filter: blur(6px); }
.compare__label--r { right: 22px; background: var(--white); color: var(--ink); }
@media (max-width: 640px) {
  .compare__frame { aspect-ratio: 4 / 5; border-radius: 14px; }
  .compare__stamp { left: 14px; bottom: 14px; font-size: .8125rem; }
}

/* =========================================================
   Work: horizontal
   ========================================================= */
.work { background: var(--ink); color: var(--paper); }
.work__pin { position: relative; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.work__head {
  display: flex; align-items: end; justify-content: space-between;
  padding: calc(var(--nav-h) + 28px) var(--gutter) 28px;
}
.work__count { font-variation-settings: "wdth" 120; font-weight: 700; font-size: var(--fs-lg); font-variant-numeric: tabular-nums; color: #8E9396; }
.work__current { color: var(--paper); }
.work__track { display: flex; gap: clamp(16px, 2vw, 32px); padding: 0 var(--gutter); width: max-content; will-change: transform; }
.proj { width: min(64vw, 940px, calc((100svh - var(--nav-h) - 300px) * 1.6)); flex-shrink: 0; }
.proj__img { aspect-ratio: 16 / 10; overflow: hidden; border-radius: 16px; background: var(--ink-2); }
.proj__img img { width: 118%; max-width: none; height: 100%; object-fit: cover; will-change: transform; }
.proj__info { display: flex; justify-content: space-between; align-items: start; gap: 24px; padding-top: 20px; }
.proj__info h3 { font-size: var(--fs-lg); font-variation-settings: "wdth" 118; font-weight: 720; letter-spacing: -.02em; }
.proj__info dl { display: flex; gap: 24px; font-size: var(--fs-sm); }
.proj__info dt { color: #8E9396; }
.proj__info dd { font-weight: 500; }
.proj--end { width: min(44vw, 560px); display: flex; flex-direction: column; justify-content: center; gap: 28px; padding: 0 2vw; }
.proj--end p { font-size: var(--fs-xl); font-variation-settings: "wdth" 120; font-weight: 760; letter-spacing: -.03em; line-height: 1; }
.proj--end .btn { align-self: start; --bg: var(--paper); --fg: var(--ink); }
.proj--end .btn:hover { --bg: var(--blueprint); --fg: #fff; }
.work__bar { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 32px; height: 2px; background: rgba(236,236,232,.15); }
.work__bar span { display: block; height: 100%; background: var(--paper); transform: scaleX(0); transform-origin: left; }

@media (max-width: 860px) {
  .work__pin { height: auto; padding-bottom: 64px; }
  .work__track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: none; }
  .work__track::-webkit-scrollbar { display: none; }
  .proj { width: 84vw; scroll-snap-align: center; }
  .proj__img img { width: 100%; }
  .proj__info { flex-direction: column; gap: 10px; }
  .proj__info dl { flex-wrap: wrap; gap: 6px 18px; }
  .proj--end { width: 70vw; }
  .work__bar, .work__count { display: none; }
}

/* =========================================================
   Process
   ========================================================= */
.process { padding: clamp(96px, 12vw, 160px) 0; }
.process__body {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px);
}
.process__visual { position: relative; }
.process__frame {
  position: sticky; top: calc(var(--nav-h) + 40px);
  aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; background: var(--paper-2);
}
.process__frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.08);
  transition: opacity .9s var(--ease-out), transform 1.6s var(--ease-out);
}
.process__frame img.is-active { opacity: 1; transform: scale(1); }
.process__big {
  position: absolute; left: 22px; bottom: 14px; color: var(--white);
  font-variation-settings: "wdth" 125; font-weight: 820; font-size: clamp(4rem, 2rem + 6vw, 8rem); line-height: 1; letter-spacing: -.05em;
  text-shadow: 0 6px 30px rgba(0,0,0,.35);
  display: flex; align-items: baseline;
}
.process__big small { font-size: .3em; font-weight: 600; letter-spacing: 0; margin-left: 6px; opacity: .85; }
.process__digit { display: inline-block; }

.process__steps { position: relative; padding-left: 36px; }
.process__steps::before, .process__steps::after {
  content: ""; position: absolute; left: 6px; top: 12px; bottom: 12px; width: 2px; background: var(--line);
}
.process__steps::after { background: var(--blueprint); transform: scaleY(var(--progress, 0)); transform-origin: top; }
.step { position: relative; padding: 8px 0 clamp(64px, 12vh, 140px); opacity: .38; transition: opacity .5s var(--ease-out); }
.step:last-child { padding-bottom: 8px; }
.step::before {
  content: ""; position: absolute; left: -36px; top: 14px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--line); z-index: 1;
  transition: background .4s, border-color .4s, transform .4s var(--ease-out);
}
.step.is-active { opacity: 1; }
.step.is-active::before, .step.is-past::before { background: var(--blueprint); border-color: var(--blueprint); }
.step.is-active::before { transform: scale(1.25); }
.step.is-past { opacity: .6; }
.step__when { font-variation-settings: "wdth" 72; font-weight: 650; font-size: var(--fs-sm); color: var(--blueprint); }
.step h3 { font-size: var(--fs-lg); font-variation-settings: "wdth" 116; font-weight: 740; letter-spacing: -.02em; margin: 6px 0 12px; }
.step p { color: var(--steel); max-width: 46ch; font-size: 1.0625rem; }

@media (max-width: 860px) {
  .process__body { grid-template-columns: 1fr; }
  .process__visual { position: sticky; top: calc(var(--nav-h) + 16px); z-index: 2; }
  .process__frame { position: relative; top: 0; aspect-ratio: 16 / 9; }
  .step { padding-bottom: 56px; }
}

/* =========================================================
   Estimator
   ========================================================= */
.estimate { background: var(--blueprint-deep); color: #fff; position: relative; overflow: hidden; }
.estimate::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 32px 32px;
}
.estimate__inner {
  position: relative; max-width: var(--max); margin: 0 auto;
  padding: clamp(96px, 12vw, 160px) var(--gutter);
  display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(40px, 6vw, 100px); align-items: start;
}
.estimate__intro { position: sticky; top: calc(var(--nav-h) + 48px); }
.estimate__intro p { margin-top: 20px; color: rgba(255,255,255,.75); font-size: var(--fs-md); max-width: 40ch; }

.calc {
  background: var(--white); color: var(--ink);
  border-radius: 24px; padding: clamp(22px, 3vw, 40px);
  display: grid; gap: 28px;
  box-shadow: 0 40px 80px -30px rgba(10,20,60,.6);
}
.calc__group { border: 0; padding: 0; margin: 0; min-width: 0; }
.calc__group legend, .calc__label {
  display: flex; justify-content: space-between; align-items: baseline; width: 100%;
  font-size: var(--fs-sm); font-weight: 600; color: var(--steel); margin-bottom: 12px; padding: 0;
}
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1.5px solid var(--line); font-weight: 550; font-size: .9375rem;
  transition: background .25s var(--ease-out), color .25s, border-color .25s;
}
.seg label:hover span { border-color: var(--ink); }
.seg input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.seg input:focus-visible + span { outline: 2px solid var(--blueprint); outline-offset: 2px; }

.calc__size { font-size: 1.5rem; color: var(--ink); font-variation-settings: "wdth" 120; font-weight: 760; font-variant-numeric: tabular-nums; }
.calc__range {
  -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; cursor: pointer; margin: 0;
  --fill: 50%;
}
.calc__range::-webkit-slider-runnable-track {
  height: 6px; border-radius: 3px;
  background: linear-gradient(to right, var(--blueprint) var(--fill), var(--line) var(--fill));
}
.calc__range::-moz-range-track { height: 6px; border-radius: 3px; background: var(--line); }
.calc__range::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--blueprint); }
.calc__range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 28px; height: 28px; margin-top: -11px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--blueprint); box-shadow: 0 4px 12px rgba(31,79,216,.35);
  transition: transform .2s var(--ease-out);
}
.calc__range:active::-webkit-slider-thumb { transform: scale(1.15); }
.calc__range::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--white); border: 2px solid var(--blueprint); }
.calc__ticks { display: flex; justify-content: space-between; font-size: .8125rem; color: var(--steel); font-variation-settings: "wdth" 75; }

.calc__result { border-top: 1px solid var(--line); padding-top: 26px; }
.calc__price {
  font-size: clamp(2rem, 1.2rem + 3vw, 3.6rem);
  font-variation-settings: "wdth" 118; font-weight: 800; letter-spacing: -.035em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.calc__dash { font-weight: 300; color: var(--steel); font-size: .55em; letter-spacing: 0; margin: 0 .15em; }
.calc__weeks { margin-top: 12px; color: var(--steel); }
.calc__weeks strong { color: var(--ink); font-variant-numeric: tabular-nums; }

.stages { margin-top: 26px; }
.stages__bar { display: flex; gap: 3px; height: 14px; border-radius: 7px; overflow: hidden; }
.stages__bar span { flex: var(--w) 1 0; background: var(--blueprint); transform-origin: left; }
.stages__bar span:nth-child(2) { background: #3C66E0; }
.stages__bar span:nth-child(3) { background: #5A7DE6; }
.stages__bar span:nth-child(4) { background: var(--ink); }
.stages__bar span:nth-child(5) { background: var(--gum); }
.stages__bar span:nth-child(6) { background: #B98A5F; }
.stages__legend { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 16px; margin-top: 14px; font-size: .8125rem; color: var(--steel); }
.stages__legend li { display: flex; flex-direction: column; }
.stages__legend b { color: var(--ink); font-weight: 650; font-size: .9375rem; font-variant-numeric: tabular-nums; }
.calc__note { font-size: .8125rem; color: var(--steel); }
.calc .btn { justify-self: start; --bg: var(--ink); --fg: var(--paper); }
.calc .btn:hover { --bg: var(--blueprint); }

@media (max-width: 960px) {
  .estimate__inner { grid-template-columns: 1fr; }
  .estimate__intro { position: static; }
}

/* =========================================================
   Reviews
   ========================================================= */
.reviews { max-width: var(--max); margin: 0 auto; padding: clamp(96px, 12vw, 160px) var(--gutter); }
.reviews__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(40px, 6vw, 72px); }
.reviews__head h2 { max-width: 16ch; }
.reviews__score { color: var(--steel); font-weight: 500; }
.stars { color: #E7A82B; letter-spacing: 2px; margin-right: 6px; }
.quote { display: grid; }
.quote__item { grid-area: 1 / 1; opacity: 0; visibility: hidden; }
.quote__item.is-active { opacity: 1; visibility: visible; }
.quote blockquote {
  font-size: clamp(1.5rem, 1rem + 2.1vw, 3rem);
  font-variation-settings: "wdth" 100; font-weight: 500; line-height: 1.2; letter-spacing: -.02em;
  max-width: 34ch; text-wrap: pretty;
}
.quote figcaption { margin-top: 28px; color: var(--steel); }
.quote figcaption strong { color: var(--ink); display: block; }
.quote .ln { display: block; overflow: hidden; }
.quote .ln > span { display: block; }
.quote__nav { display: flex; align-items: center; gap: 18px; margin-top: 44px; }
.quote__btn {
  width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--ink); background: transparent; cursor: pointer;
  display: grid; place-items: center; transition: background .25s, color .25s;
}
.quote__btn:hover { background: var(--ink); color: var(--paper); }
.quote__btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.quote__dots { display: flex; gap: 8px; }
.quote__dots span { width: 28px; height: 3px; border-radius: 2px; background: var(--line); transition: background .3s, width .5s var(--ease-out); }
.quote__dots span.is-active { background: var(--ink); width: 56px; }

/* =========================================================
   Contact
   ========================================================= */
.contact {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) clamp(96px, 12vw, 160px);
  display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 100px);
}
.contact__intro p { color: var(--steel); font-size: var(--fs-md); margin-top: 20px; max-width: 42ch; }
.contact__phone {
  display: inline-block; margin-top: 36px; text-decoration: none;
  font-size: clamp(2rem, 1.2rem + 2.6vw, 3.4rem);
  font-variation-settings: "wdth" 120; font-weight: 800; letter-spacing: -.03em;
  background: linear-gradient(var(--blueprint), var(--blueprint)) left bottom / 0 3px no-repeat;
  transition: background-size .5s var(--ease-out), color .3s;
}
.contact__phone:hover { background-size: 100% 3px; color: var(--blueprint); }
.contact__hours { font-size: 1rem !important; }

.form { position: relative; display: grid; gap: 18px; background: var(--white); border-radius: 24px; padding: clamp(22px, 3vw, 40px); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-size: var(--fs-sm); font-weight: 600; }
.field__opt { font-weight: 400; color: var(--steel); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--paper);
  font-size: 1rem; transition: border-color .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #A9A9A2; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blueprint); background: #fff; box-shadow: 0 0 0 3px rgba(31,79,216,.15); }
.field__err { display: none; color: #B3261E; font-size: .875rem; }
.field.has-error input { border-color: #B3261E; }
.field.has-error .field__err { display: block; }
.form__fine { font-size: .8125rem; color: var(--steel); }
.form__done {
  position: absolute; inset: 0; border-radius: 24px; background: var(--white);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; padding: 32px;
}
.form__done[hidden] { display: none; }
.form__done svg { width: 76px; height: 76px; fill: none; stroke: var(--blueprint); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 8px; }
.form__done h3 { font-size: var(--fs-lg); font-variation-settings: "wdth" 118; font-weight: 760; }
.form__done p { color: var(--steel); max-width: 36ch; }
@media (max-width: 860px) {
  .contact { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
}

/* =========================================================
   Footer
   ========================================================= */
.foot { background: var(--ink); color: #C6C9CB; padding: clamp(64px, 8vw, 110px) var(--gutter) 28px; overflow: hidden; }
.foot__cols { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr) 1.4fr; gap: 32px; font-size: .9375rem; }
.foot__h { color: var(--paper); font-weight: 650; margin-bottom: 8px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--paper); text-decoration: underline; }
.foot__ack p { color: #9DA2A5; }
.foot__word {
  display: flex; justify-content: space-between;
  max-width: var(--max); margin: clamp(48px, 7vw, 100px) auto 0;
  font-size: clamp(4rem, 1rem + 15.2vw, 17rem);
  font-variation-settings: "wdth" 125; font-weight: 850; letter-spacing: -.04em; line-height: .78;
  color: var(--paper); overflow: hidden; padding-top: .04em;
}
.foot__word span { display: inline-block; }
.foot__legal {
  max-width: var(--max); margin: 32px auto 0; padding-top: 20px; border-top: 1px solid var(--ink-2);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .8125rem; color: #8E9396;
}
.foot__legal a { color: #C6C9CB; text-decoration: underline; }
@media (max-width: 860px) { .foot__cols { grid-template-columns: 1fr 1fr; } .foot__ack { grid-column: 1 / -1; } }

/* ---------- Floating call button (mobile) ---------- */
.call-fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 40;
  display: none; align-items: center; gap: 8px;
  min-height: 52px; padding: 0 20px 0 16px; border-radius: 999px;
  background: var(--blueprint); color: #fff; text-decoration: none; font-weight: 650;
  box-shadow: 0 12px 30px -8px rgba(31,79,216,.6);
  transform: translateY(120%); transition: transform .5s var(--ease-out);
}
.call-fab svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2; stroke-linejoin: round; }
.call-fab.is-visible { transform: none; }
@media (max-width: 640px) { .call-fab { display: inline-flex; } }

/* ---------- Reduced motion: final states, no pins ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .loader { display: none; }
  .hero__photo { clip-path: inset(0 0 0 50%); }
  .statement__text .w { opacity: 1; }
  .work__pin { height: auto; padding-bottom: 64px; }
  .work__track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
  .proj { scroll-snap-align: start; }
  .proj__img img { width: 100%; }
  .work__bar { display: none; }
}
