/* ==========================================================================
   AKL Construction Services — "Toolbox"
   cream + deep green + signal yellow
   ========================================================================== */

@font-face {
  font-family: 'Familjen';
  src: url('../assets/fonts/familjen-var.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: 'Martian';
  src: url('../assets/fonts/martian-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'PublicSans';
  src: url('../assets/fonts/publicsans-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'PublicSans';
  src: url('../assets/fonts/publicsans-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'PublicSans';
  src: url('../assets/fonts/publicsans-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

:root {
  --cream: #f3efe6;
  --paper: #faf7f0;
  --green: #1f3d2b;
  --green-2: #2c5a3e;
  --green-ink: #dfe9df;
  --yellow: #f2c230;
  --ink: #14201a;
  --muted: #57665b;
  --line: #d6d0c1;
  --line-strong: #b9b1a0;

  --shell: min(1220px, 100% - 3rem);
  --r: 4px;

  --f-display: 'Familjen', 'Helvetica Neue', Arial, sans-serif;
  --f-body: 'PublicSans', 'Helvetica Neue', Arial, sans-serif;
  --f-mono: 'Martian', ui-monospace, 'SFMono-Regular', monospace;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }
figure, blockquote { margin: 0; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); letter-spacing: -0.015em; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

/* --- shared bits ------------------------------------------------------- */

.shell { width: var(--shell); margin-inline: auto; }

.tag {
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
}
.tag::before {
  content: '';
  width: 1.6em;
  height: 2px;
  background: var(--yellow);
  flex: none;
}
.tag--plain::before { display: none; }
.on-green .tag { color: #a9bfae; }

.lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 56ch; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 50px;
  padding: 0.85rem 1.5rem;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.005em;
  text-decoration: none;
  border: 1.5px solid var(--green);
  border-radius: var(--r);
  background: var(--green);
  color: #fff;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}
.btn:hover { background: var(--green-2); transform: translateY(-2px); }
.btn--yellow { background: var(--yellow); border-color: var(--ink); color: var(--ink); }
.btn--yellow:hover { background: #ffd04b; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: rgba(31,61,43,.08); color: var(--ink); }
.on-green .btn--ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.on-green .btn--ghost:hover { background: rgba(255,255,255,.12); }

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

.skip {
  position: absolute; left: 0.75rem; top: -60px;
  background: var(--yellow); color: var(--ink);
  padding: 0.7rem 1.1rem; z-index: 100; font-weight: 600;
  border-radius: var(--r);
  transition: top .2s ease;
}
.skip:focus { top: 0.75rem; }

/* --- header ------------------------------------------------------------ */

.head {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.head__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 74px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 1.06rem;
  line-height: 1.05;
}
.logo__mark {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--yellow);
  border: 1.5px solid var(--ink);
  border-radius: var(--r);
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  flex: none;
}
.logo__sub {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.53rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: 1.7rem; }
.nav a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { border-bottom-color: var(--yellow); }
.nav a[aria-current='page'] { border-bottom-color: var(--green); }

.head__cta { display: flex; align-items: center; gap: 1rem; }
.nav > .btn, .nav__tel { display: none; }
.head__call { display: none; padding: 0 0.95rem; min-height: 46px; }
@media (max-width: 900px) {
  .nav > .btn { display: inline-flex; }
  .nav__tel { display: block; }
  .head__cta [data-desktop-cta] { display: none; }
  .head__call { display: inline-flex; }
  .logo { font-size: 0.95rem; max-width: 62vw; }
}
@media (max-width: 560px) {
  .logo__sub { display: none; }
}
@media (max-width: 420px) {
  .logo__mark { width: 36px; height: 36px; font-size: 0.6rem; }
  .logo { font-size: 0.86rem; }
}
.head__tel {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
}
.head__tel:hover { text-decoration: underline; }

.burger {
  display: none;
  width: 46px; height: 46px;
  border: 1.5px solid var(--ink);
  border-radius: var(--r);
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.burger span {
  display: block;
  width: 20px; height: 2px;
  margin: 4px auto;
  background: var(--ink);
  transition: transform .25s ease, opacity .2s ease;
}
.burger[aria-expanded='true'] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded='true'] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .burger { display: block; }
  .head__tel { display: none; }
  .nav {
    position: fixed;
    inset: 74px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.5rem 1.5rem;
    transform: translateY(-120%);
    transition: transform .3s ease;
    max-height: calc(100dvh - 74px);
    overflow-y: auto;
  }
  .nav[data-open='true'] { transform: translateY(0); }
  .nav a {
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.1rem;
  }
  .nav .btn { margin-top: 1.1rem; }
}

/* --- hero -------------------------------------------------------------- */

.hero { padding: clamp(3rem, 6vw, 5.5rem) 0 0; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}
.hero h1 { margin: 1.1rem 0 1.3rem; line-height: 1.09; }
.hero h1 em {
  font-style: normal;
  background: var(--yellow);
  box-shadow: 0 0 0 4px var(--yellow);
  border-radius: 2px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }

.photo {
  position: relative;
  border: 1.5px solid var(--ink);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--line);
}
.photo { aspect-ratio: 4 / 3; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--hero { aspect-ratio: 4 / 3.3; }
.photo__stamp {
  position: absolute;
  left: 0; bottom: 0;
  background: var(--yellow);
  border-top: 1.5px solid var(--ink);
  border-right: 1.5px solid var(--ink);
  border-top-right-radius: var(--r);
  padding: 0.5rem 0.95rem;
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* spec strip under hero */
.specs {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1.5px solid var(--ink);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.specs > div {
  padding: 1.4rem 1.3rem 1.5rem;
  border-right: 1px dashed var(--line-strong);
}
.specs > div:last-child { border-right: 0; }
.specs b {
  display: block;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.9rem;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.specs span { font-size: 0.85rem; color: var(--muted); line-height: 1.4; display: block; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr 1fr; }
  .specs > div:nth-child(2n) { border-right: 0; }
  .specs > div:nth-child(-n+2) { border-bottom: 1px dashed var(--line-strong); }
}

/* --- generic section --------------------------------------------------- */

.sec { padding: clamp(3.6rem, 7vw, 6.5rem) 0; }
.sec--tight { padding: clamp(2.6rem, 5vw, 4.2rem) 0; }
.sec--paper { background: var(--paper); border-block: 1px solid var(--line); }
.sec--green {
  background: var(--green);
  color: var(--green-ink);
}
.sec--green h2, .sec--green h3, .sec--green b { color: #fff; }
.sec--green .lede { color: #b9cbbe; }

.sec__head {
  display: grid;
  grid-template-columns: 1fr minmax(0, 46ch);
  gap: 2rem 3rem;
  align-items: end;
  margin-bottom: clamp(2rem, 4vw, 3.2rem);
}
.sec__head > .tag { grid-column: 1 / -1; }
@media (max-width: 820px) {
  .sec__head { grid-template-columns: 1fr; align-items: start; }
}

/* --- house cutaway ----------------------------------------------------- */

.house {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(1.6rem, 4vw, 3.4rem);
  align-items: center;
}
.house__fig {
  border: 1.5px solid var(--ink);
  border-radius: var(--r);
  background: var(--paper);
  padding: 1rem;
  position: relative;
}
.house__fig svg { width: 100%; height: auto; display: block; }
.zone { cursor: pointer; }
.zone rect.hit, .zone path.hit { fill: transparent; transition: fill .2s ease; }
.zone:hover rect.hit, .zone:hover path.hit,
.zone.is-active rect.hit, .zone.is-active path.hit { fill: rgba(242,194,48,.55); }
.zone:focus-visible { outline: none; }
.zone:focus-visible rect.hit, .zone:focus-visible path.hit { fill: rgba(242,194,48,.55); stroke: var(--ink); stroke-width: 2; }
.zone text {
  font-family: var(--f-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  fill: var(--green);
  pointer-events: none;
}
.house__panel {
  border-left: 2px solid var(--yellow);
  padding-left: 1.5rem;
}
.house__panel h3 { margin-bottom: 0.7rem; }
.house__panel p { color: var(--muted); }
.house__list { list-style: none; margin: 1.2rem 0 0; padding: 0; }
.house__list li {
  display: flex; gap: 0.7rem; align-items: baseline;
  padding: 0.42rem 0;
  border-bottom: 1px dashed var(--line-strong);
  font-size: 0.95rem;
}
.house__list li::before { content: '↳'; color: var(--yellow); font-weight: 700; }
.house__hint { font-family: var(--f-mono); font-size: 0.6rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 1.4rem; }
@media (max-width: 900px) { .house { grid-template-columns: 1fr; } }

/* --- service label cards ----------------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 1rem;
}
.card {
  position: relative;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: var(--r);
  padding: 2.4rem 1.4rem 1.5rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card::before { /* punch hole, like a toolbox tag */
  content: '';
  position: absolute;
  top: 0.85rem; left: 1.4rem;
  width: 11px; height: 11px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: var(--cream);
}
.card::after {
  content: '';
  position: absolute;
  top: 0.85rem; left: 2.4rem; right: 1.4rem;
  height: 1px;
  border-top: 1px dashed var(--line-strong);
}
a.card:hover { transform: translateY(-3px); box-shadow: 5px 5px 0 var(--yellow); }
.card__no {
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.55rem;
}
.card h3 { margin-bottom: 0.5rem; }
.card p { font-size: 0.93rem; color: var(--muted); margin-bottom: 1rem; }
.card__go {
  margin-top: auto;
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  display: inline-flex; gap: 0.5em; align-items: center;
}
a.card:hover .card__go { color: var(--ink); }

/* --- process ----------------------------------------------------------- */

.steps { border-top: 1.5px solid currentColor; }
.step {
  display: grid;
  grid-template-columns: 4.5rem 1fr 1.4fr;
  gap: 1.4rem 2rem;
  padding: 1.55rem 0;
  border-bottom: 1px solid rgba(255,255,255,.18);
  align-items: baseline;
}
.sec:not(.sec--green) .step { border-bottom-color: var(--line); }
.step__no {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--yellow);
}
.step h3 { font-size: 1.3rem; }
.step p { font-size: 0.95rem; margin: 0; color: #b9cbbe; }
.sec:not(.sec--green) .step p { color: var(--muted); }
@media (max-width: 760px) {
  .step { grid-template-columns: 3.2rem 1fr; }
  .step p { grid-column: 2; }
}

/* --- gallery ----------------------------------------------------------- */

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.1rem; }
.shot {
  border: 1.5px solid var(--ink);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--paper);
}
.shot img { aspect-ratio: 1 / 1; width: 100%; height: auto; object-fit: cover; }
.shot figcaption {
  padding: 0.85rem 1rem 0.95rem;
  border-top: 1.5px solid var(--ink);
  display: flex; justify-content: space-between; gap: 1rem; align-items: baseline;
}
.shot figcaption strong { font-family: var(--f-display); font-weight: 600; font-size: 1.02rem; letter-spacing: -0.01em; }
.shot figcaption span { font-family: var(--f-mono); font-size: 0.58rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.shot--wide { grid-column: span 2; }
@media (max-width: 700px) { .shot--wide { grid-column: span 1; } }

/* --- before / after slider --------------------------------------------- */

.ba {
  position: relative;
  border: 1.5px solid var(--ink);
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  touch-action: pan-y;
  user-select: none;
}
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.ba__bar {
  position: absolute; top: 0; bottom: 0;
  left: var(--pos, 50%);
  width: 2px; background: var(--yellow);
  pointer-events: none;
}
.ba__bar::after {
  content: '';
  position: absolute; top: 50%; left: 50%;
  width: 42px; height: 42px;
  transform: translate(-50%, -50%);
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
}
.ba__range {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0; cursor: ew-resize; margin: 0;
}
.ba__range:focus-visible + .ba__bar::after { box-shadow: 0 0 0 4px rgba(31,61,43,.55); }
.ba__lbl {
  position: absolute; top: 0.8rem;
  font-family: var(--f-mono); font-size: 0.58rem; letter-spacing: .1em; text-transform: uppercase;
  background: var(--cream); border: 1.5px solid var(--ink); border-radius: var(--r);
  padding: 0.32rem 0.6rem; pointer-events: none;
}
.ba__lbl--b { left: 0.8rem; }
.ba__lbl--a { right: 0.8rem; background: var(--yellow); }

/* --- split media block -------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.6rem, 4vw, 3.4rem);
  align-items: center;
}
.split--flip .split__media { order: 2; }
.split--top { align-items: start; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--flip .split__media { order: 0; }
}

/* --- checklist ---------------------------------------------------------- */

.checks { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0.55rem; }
.checks li { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.98rem; }
.checks svg { flex: none; margin-top: 4px; }

/* --- pull quote --------------------------------------------------------- */

.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.1rem; }
.quote {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: var(--r);
  padding: 1.6rem 1.4rem 1.3rem;
  display: flex; flex-direction: column;
}
.quote p { font-size: 1rem; }
.quote footer {
  margin-top: auto; padding-top: 1rem; border-top: 1px dashed var(--line-strong);
  font-family: var(--f-mono); font-size: 0.6rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.stars { color: var(--yellow); letter-spacing: 2px; margin-bottom: 0.6rem; font-size: 0.9rem; }

/* --- CTA band ----------------------------------------------------------- */

.band {
  background: var(--yellow);
  border-block: 1.5px solid var(--ink);
  padding: clamp(2.6rem, 5vw, 4rem) 0;
}
.band__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.6rem; }
.band h2 { max-width: 20ch; }
.band p { color: #3d3520; max-width: 42ch; }

/* --- page hero (subpages) ---------------------------------------------- */

.phero { padding: clamp(2.6rem, 5vw, 4.4rem) 0 clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line); }
.phero__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem 3rem; align-items: end; }
.phero h1 { margin: 0.9rem 0 0; }
.phero .lede { margin-top: 1.1rem; }
@media (max-width: 820px) { .phero__grid { grid-template-columns: 1fr; } }

/* --- FAQ ---------------------------------------------------------------- */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.25rem 2.5rem 1.25rem 0;
  position: relative;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.13rem;
  letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute; right: 0.3rem; top: 50%; transform: translateY(-50%);
  font-family: var(--f-mono); font-size: 1.1rem; color: var(--green);
}
.faq details[open] summary::after { content: '–'; }
.faq details > div { padding-bottom: 1.3rem; color: var(--muted); max-width: 72ch; }

/* --- form --------------------------------------------------------------- */

.form { display: grid; gap: 1.05rem; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.05rem; }
@media (max-width: 620px) { .row2 { grid-template-columns: 1fr; } }
.field label {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.45rem;
}
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--f-body);
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r);
  padding: 0.8rem 0.9rem;
  min-height: 50px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--green);
  outline: 3px solid var(--yellow);
  outline-offset: 1px;
}
.field .err { color: #a1341f; font-size: 0.8rem; margin-top: 0.35rem; display: none; }
.field[data-invalid='true'] input,
.field[data-invalid='true'] select,
.field[data-invalid='true'] textarea { border-color: #a1341f; }
.field[data-invalid='true'] .err { display: block; }
.form__note { font-size: 0.83rem; color: var(--muted); }
.form__ok {
  display: none;
  background: var(--green);
  color: #fff;
  border-radius: var(--r);
  padding: 1.1rem 1.2rem;
  font-size: 0.97rem;
}
.form__ok[data-show='true'] { display: block; }

/* --- contact info panel -------------------------------------------------- */

.info { border: 1.5px solid var(--ink); border-radius: var(--r); background: var(--paper); }
.info__row { padding: 1.15rem 1.3rem; border-bottom: 1px dashed var(--line-strong); }
.info__row:last-child { border-bottom: 0; }
.info__row b { display: block; font-family: var(--f-mono); font-size: 0.58rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.35rem; font-weight: 600; }
.info__row a { text-decoration: none; font-size: 1.05rem; font-weight: 500; }
.info__row a:hover { text-decoration: underline; }

/* --- areas ---------------------------------------------------------------- */

.areas { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0; }
.areas li {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1.5px solid var(--line-strong);
  border-radius: 100px;
  padding: 0.45rem 0.85rem;
  background: var(--paper);
}
.sec--green .areas li { background: transparent; border-color: rgba(255,255,255,.28); color: #cfdcd2; }

/* --- footer --------------------------------------------------------------- */

.foot { background: var(--green); color: #b9cbbe; padding: clamp(3rem, 5vw, 4.4rem) 0 2rem; }
.foot a { color: #e6efe8; }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.2rem; }
.foot h4 { font-family: var(--f-mono); font-size: 0.6rem; letter-spacing: .12em; text-transform: uppercase; color: var(--yellow); margin-bottom: 1rem; font-weight: 600; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; font-size: 0.93rem; }
.foot ul a { text-decoration: none; }
.foot ul a:hover { text-decoration: underline; }
.foot .logo { color: #fff; }
.foot .logo__sub { color: #9fb4a5; }
.foot__bar {
  margin-top: 2.6rem; padding-top: 1.3rem;
  border-top: 1px solid rgba(255,255,255,.16);
  display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: space-between;
  font-family: var(--f-mono); font-size: 0.58rem; letter-spacing: .07em; text-transform: uppercase; color: #91a897;
}
@media (max-width: 860px) { .foot__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot__grid { grid-template-columns: 1fr; } }

/* --- reveal --------------------------------------------------------------- */

.js [data-rise] { opacity: 0; transform: translateY(18px); }

.js [data-rise].in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.3,1); }
@media (prefers-reduced-motion: reduce) {
  .js [data-rise], .js [data-rise].in { opacity: 1; transform: none; transition: none; }
  .btn:hover, a.card:hover { transform: none; }
}

/* ==========================================================================
   MOBILE / TABLET OPTIMISATION
   Everything below is scoped to <= 900px — desktop is untouched.
   ========================================================================== */

/* --- 900px: drawer, safe areas, tap targets ------------------------------- */

@media (max-width: 900px) {
  /* honour notches / home indicators when a page is served with
     viewport-fit=cover; these resolve to 0 everywhere else. */
  .head { padding-top: env(safe-area-inset-top, 0px); }
  .shell { padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }
  .nav {
    top: calc(74px + env(safe-area-inset-top, 0px));
    max-height: calc(100dvh - 74px - env(safe-area-inset-top, 0px));
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
    padding-left: calc(1.5rem + env(safe-area-inset-left, 0px));
    padding-right: calc(1.5rem + env(safe-area-inset-right, 0px));
    overscroll-behavior: contain;
  }

  /* <blockquote> (and <figure>, unless reset globally) carry the UA's 40px
     side margins, which eat a quarter of a 360px screen — reclaim them. */
  .photo, .shot, .quote { margin: 0; }

  /* 44px minimum touch targets */
  .nav a { min-height: 48px; display: flex; align-items: center; }
  .nav .btn { min-height: 50px; }
  .head__call, .burger { min-height: 46px; min-width: 46px; }
  .foot ul { gap: 0.1rem; }
  .foot ul a { display: inline-flex; align-items: center; min-height: 44px; }
  .info__row a { display: inline-flex; align-items: center; min-height: 44px; }
  .faq summary { min-height: 44px; display: flex; align-items: center; }
  .logo { min-height: 44px; }
  .logo__sub { font-size: 0.58rem; letter-spacing: 0.11em; }
}

/* --- 700px: phone type scale, rhythm and layout --------------------------- */

@media (max-width: 700px) {
  /* headings: still large, but they stop hunting for room */
  h1 { font-size: clamp(2.3rem, 8.8vw, 2.8rem); }
  h2 { font-size: clamp(1.75rem, 7vw, 1.84rem); }
  h1, h2, h3, h4 { overflow-wrap: break-word; }
  .hero h1 { line-height: 1.05; margin: 0.85rem 0 1rem; }
  .lede { text-wrap: pretty; }

  /* the yellow marker paints outside its box — keep it inside the gutter */
  .hero h1 em { box-shadow: 0 0 0 3px var(--yellow); }

  /* mono micro-labels are unreadable at 10px on a phone */
  .tag { font-size: 0.78rem; letter-spacing: 0.06em; }
  .tag::before { width: 1.3em; }
  .card__no { font-size: 0.76rem; letter-spacing: 0.06em; }
  .card__go { font-size: 0.7rem; letter-spacing: 0.07em; }
  .house__hint { font-size: 0.7rem; letter-spacing: 0.07em; }
  .photo__stamp { font-size: 0.68rem; letter-spacing: 0.07em; padding: 0.45rem 0.8rem; }
  .shot figcaption span { font-size: 0.72rem; letter-spacing: 0.05em; }
  .quote footer { font-size: 0.72rem; letter-spacing: 0.05em; }
  .stars { font-size: 1rem; }
  .foot h4 { font-size: 0.72rem; letter-spacing: 0.1em; margin-bottom: 0.7rem; }
  .foot__bar { font-size: 0.7rem; letter-spacing: 0.05em; }
  .info__row b { font-size: 0.72rem; letter-spacing: 0.07em; }
  .field label { font-size: 0.72rem; letter-spacing: 0.07em; }
  .areas li { font-size: 0.74rem; letter-spacing: 0.04em; }
  .ba__lbl { font-size: 0.7rem; letter-spacing: 0.06em; }
  .logo__mark { font-size: 0.72rem; }
  .logo__sub { font-size: 0.62rem; }
  .step__no { font-size: 0.8rem; }

  /* nothing readable below 16px */
  .card p { font-size: 1rem; }
  .foot ul { font-size: 1rem; }
  .form__note { font-size: 0.92rem; }
  .field .err { font-size: 0.9rem; }

  /* vertical rhythm: desktop generosity makes phone pages endless */
  .sec { padding: 3.1rem 0; }
  .sec--tight { padding: 2.3rem 0; }
  .sec__head { margin-bottom: 1.8rem; gap: 0.9rem; }
  .hero { padding-top: 2.4rem; }
  .hero__actions { margin-top: 1.4rem; gap: 0.7rem; }
  .specs { margin-top: 2.2rem; }
  .phero { padding: 2.2rem 0 1.8rem; }
  .phero h1 { margin-top: 0.7rem; }
  .phero .lede { margin-top: 0.9rem; }
  .band { padding: 2.5rem 0; }
  .band__in { gap: 1.2rem; }
  .band h2, .band p { max-width: none; }
  .cards, .gallery, .quotes { gap: 0.9rem; }
  .step { padding: 1.2rem 0; gap: 0.4rem 1rem; }
  .step h3 { font-size: 1.22rem; }
  .checks { margin-top: 1.1rem; }
  .foot { padding: 2.6rem 0 1.5rem; }
  .foot__grid { gap: 1.7rem; }
  .foot__bar { margin-top: 1.8rem; padding-top: 1.1rem; }

  /* house diagram: more drawing, less frame — and legible zone labels */
  .house { gap: 1.4rem; }
  .house__fig { padding: 0.55rem; }
  .house__panel { padding-left: 1rem; border-left-width: 3px; }
  .house__list { margin-top: 1rem; }

  /* forms */
  .form { gap: 0.9rem; }
  .form .btn { width: 100%; }
  .field textarea { min-height: 120px; }

  /* button labels read at 16px, and the drawer CTA keeps its own bottom edge */
  .btn { font-size: 1rem; }
  .nav .btn { border-bottom: 1.5px solid var(--ink); }
}

/* --- 560px: true phone widths --------------------------------------------- */

@media (max-width: 560px) {
  .sec { padding: 2.8rem 0; }
  .sec--tight { padding: 2.1rem 0; }

  /* 4 stats read far better as full-width rows than as a cramped 2x2 */
  .specs { grid-template-columns: 1fr; }
  .specs > div {
    display: flex;
    align-items: baseline;
    gap: 0.9rem;
    padding: 0.9rem 0 0.95rem;
    border-right: 0;
    border-bottom: 1px dashed var(--line-strong);
  }
  .specs > div:last-child { border-bottom: 0; padding-bottom: 0.3rem; }
  .specs b { flex: 0 0 auto; min-width: 5rem; font-size: 1.7rem; margin-bottom: 0; }
  .specs span { font-size: 1rem; }

  /* the SVG shrinks with the column, so the zone labels need user units back */
  .zone text { font-size: 13px; letter-spacing: 0.03em; }

  /* keep tall crops from eating a whole screen (the img inside is
     object-fit: cover, so the box just crops rather than distorting) */
  .photo--hero { aspect-ratio: 4 / 3; }
  .photo { max-height: 58dvh; }

  .shot figcaption { padding: 0.75rem 0.9rem 0.85rem; flex-wrap: wrap; gap: 0.15rem 0.8rem; }
  .quote { padding: 1.3rem 1.15rem 1.1rem; }
  .card { padding: 2.2rem 1.15rem 1.3rem; }
  .card::before { left: 1.15rem; }
  .card::after { left: 2.15rem; right: 1.15rem; }
  .areas { gap: 0.4rem; }
  .areas li { padding: 0.42rem 0.7rem; }
  .info__row { padding: 1rem 1.05rem; }
  .faq summary { padding: 1.1rem 2.2rem 1.1rem 0; font-size: 1.08rem; }
  .faq details > div { padding-bottom: 1.1rem; }
  .band__in > * { flex: 1 1 100%; }
  .hero__actions .btn { flex: 1 1 100%; }
}

/* --- 520px: footer stops being a tower ------------------------------------ */

@media (max-width: 520px) {
  .foot__grid { grid-template-columns: 1fr 1fr; gap: 1.5rem 1.1rem; }
  .foot__grid > div:first-child,
  .foot__grid > div:last-child { grid-column: 1 / -1; }
  .foot__bar { gap: 0.4rem; }
}

/* --- 420px: small phones --------------------------------------------------- */

@media (max-width: 420px) {
  :root { --shell: min(1220px, 100% - 2.4rem); }
  h1 { font-size: 2.15rem; }
  h2 { font-size: 1.68rem; }
  .head__in { gap: 0.6rem; }
  .head__cta { gap: 0.55rem; }
  .specs b { min-width: 4.4rem; font-size: 1.55rem; }
  .step { grid-template-columns: 2.6rem 1fr; }
  .zone text { font-size: 14px; }
  .btn { padding: 0.8rem 1.1rem; }
  .head__call { padding: 0 0.85rem; }
}
