/* Hamilton Electrical & Air — "The Controller". Black & white + one ice-blue backlight accent. See DESIGN.md */
:root {
  --housing: #0b0b0b;
  --housing-raised: #161616;
  --housing-line: #2a2a2a;
  /* Ice-blue backlight: the ONLY accent. Used where a controller lights up: LCDs, active mode, focus. */
  --lcd: #cdebf7;
  --lcd-ghost: #b5d9e8;
  --lcd-hover: #d9f1fa;
  --glow: rgba(140, 210, 245, .28);
  --focus: #0e6aa0;      /* 5.9:1 on white */
  --focus-dark: #8fd6f7; /* on black housing */
  --ink: #0b0b0b;
  --paper: #ffffff;
  --paper-dim: #f2f2f0;
  --rule: #d9d9d6;
  --muted: #55554f;
  --muted-dark: #a3a39d;

  --font: "Archivo", "Arial", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(80px, 11vw, 150px);
  --max: 1240px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --dock-h: 0px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--dock-h);
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--paper); color: var(--ink); padding: 10px 16px; border-radius: 6px; }
.skip:focus { top: 12px; }

/* ---------- type ---------- */
.display {
  font-stretch: 125%;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(2.5rem, 6.4vw, 5.6rem);
  line-height: .92;
  letter-spacing: -0.012em;
}
.display span { display: block; color: var(--muted-dark); }
.h2 {
  font-stretch: 100%;
  font-weight: 800;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.012em;
  word-spacing: .04em;
  max-width: 20ch;
}
.h2 span { color: var(--muted); }

/* Engraved traffolyte label plate — one per section */
.plate {
  display: inline-block;
  margin: 0 0 22px;
  padding: 5px 10px 4px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 3px;
  font-size: .72rem;
  font-weight: 600;
  font-stretch: 112%;
  letter-spacing: .18em;
  text-transform: uppercase;
  line-height: 1.4;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.plate--light { background: var(--paper); color: var(--ink); box-shadow: none; }

/* ---------- keys (buttons) ---------- */
.key {
  --kb: var(--paper); --kc: var(--ink); --ks: #8b8b86;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 26px;
  background: var(--kb); color: var(--kc);
  border: 1px solid transparent; border-radius: 10px;
  font-weight: 700; font-stretch: 112%; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 3px 0 var(--ks);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.key svg { width: 18px; height: 18px; flex: none; }
.key:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--ks); }
.key:active { transform: translateY(3px); box-shadow: 0 0 0 var(--ks); }
.key--dark { --kb: var(--ink); --kc: var(--paper); --ks: #4a4a46; }
.key--ghost { background: transparent; color: var(--paper); border-color: rgba(255,255,255,.35); box-shadow: none; }
.key--ghost:hover { border-color: var(--paper); box-shadow: none; }
.key--ghost:active { box-shadow: none; transform: translateY(1px); }
.key--outline { background: transparent; color: var(--ink); border-color: var(--ink); box-shadow: none; }
.key--outline:hover { background: var(--ink); color: var(--paper); box-shadow: none; }
.key--outline:active { box-shadow: none; transform: translateY(1px); }
.key--sm { min-height: 42px; padding: 0 16px; font-size: .82rem; box-shadow: 0 2px 0 var(--ks); }
.key[disabled] { opacity: .55; cursor: progress; transform: none; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--housing) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  backdrop-filter: saturate(1.2) blur(10px);
  color: var(--paper);
  border-bottom: 1px solid var(--housing-line);
}
.top__in { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand__lockup { height: 40px; width: auto; }
.foot__lockup { width: min(100%, 300px); height: auto; }
@media (max-width: 400px) { .brand__lockup { height: 34px; } }
.brand__word { display: flex; flex-direction: column; line-height: 1; }
.brand__word b { font-stretch: 125%; font-weight: 800; font-size: 1.15rem; letter-spacing: .02em; text-transform: uppercase; }
.brand__word small { font-stretch: 112%; font-weight: 600; font-size: .58rem; letter-spacing: .26em; text-transform: uppercase; margin-top: 4px; color: #d8d8d3; }
.nav { display: flex; gap: 4px; }
.nav a {
  padding: 10px 12px; border-radius: 6px; text-decoration: none;
  font-size: .8rem; font-weight: 600; font-stretch: 112%; letter-spacing: .12em; text-transform: uppercase; color: #d8d8d3;
  transition: color .2s, background-color .2s;
}
.nav a:hover { color: var(--paper); background: var(--housing-raised); }
@media (max-width: 920px) { .nav { display: none; } }
@media (max-width: 560px) { .top__call span { display: none; } .top__call { padding: 0 12px; } }

/* ---------- hero (housing) ---------- */
.hero { background: var(--housing); color: var(--paper); padding-top: clamp(40px, 7vw, 96px); overflow: hidden; }
.hero__in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.hero__lede { max-width: 46ch; margin: 28px 0 36px; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: #d8d8d3; }
.hero__keys { display: flex; flex-wrap: wrap; gap: 14px; }
@media (max-width: 900px) { .hero__in { grid-template-columns: minmax(0, 1fr); } }

/* Photo hero */
.hero--photo { position: relative; isolation: isolate; padding-top: clamp(72px, 11vw, 150px); }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; filter: grayscale(1) contrast(1.15) brightness(.85); }
.hero__bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11,11,11,.96) 0%, rgba(11,11,11,.88) 38%, rgba(11,11,11,.45) 72%, rgba(11,11,11,.55) 100%),
              linear-gradient(0deg, var(--housing) 0%, rgba(11,11,11,0) 30%); }
.hero--photo .hero__in { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); align-items: end; }
.hero__kicker { margin: 0 0 20px; font-size: .95rem; font-weight: 600; color: #d8d8d3; }
.hero__title { font-weight: 800; font-stretch: 100%; font-size: clamp(2.6rem, 5.6vw, 4.9rem); line-height: 1.02; letter-spacing: -0.015em; word-spacing: .04em; max-width: 14ch; }
.hero__title em, .hero__lede em { font-style: normal; }
.hero--photo .hero__lede { color: #e2e2dd; max-width: 50ch; }
.hero__trust { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 34px 0 0; padding: 0; font-size: .92rem; color: #d8d8d3; }
.hero__trust li { display: flex; align-items: center; gap: 8px; }
.hero__trust svg { width: 16px; height: 16px; }
.hero__trust a { color: inherit; text-underline-offset: 3px; }
.callcard {
  justify-self: end; width: min(100%, 360px); display: block; text-decoration: none; color: var(--ink);
  background: var(--lcd); border-radius: 14px; padding: 16px 18px 18px;
  box-shadow: 0 0 0 8px #151515, 0 0 0 9px #2a2a2a, 0 0 50px 10px var(--glow), 0 24px 50px -10px rgba(0,0,0,.8);
  transition: background-color .25s, transform .25s var(--ease);
}
.callcard:hover { background: var(--lcd-hover); transform: translateY(-2px); }
.callcard:focus-visible { outline-color: var(--focus-dark); outline-offset: 12px; }
.callcard__top { display: flex; align-items: center; gap: 8px; font-size: .7rem; font-weight: 700; font-stretch: 112%; letter-spacing: .14em; text-transform: uppercase; }
.callcard .lcd__icon { width: 18px; height: 18px; }
.callcard__label { margin-left: 4px; }
.callcard .lcd__digits { display: block; margin: 12px 0 0; }
@media (max-width: 900px) {
  .hero--photo .hero__in { grid-template-columns: minmax(0, 1fr); }
  .callcard { justify-self: start; }
  .hero__bg::after { background: linear-gradient(180deg, rgba(11,11,11,.7) 0%, rgba(11,11,11,.85) 50%, var(--housing) 100%); }
}

/* Wall controller */
.controller__bezel {
  position: relative;
  background: linear-gradient(180deg, #1c1c1c, #121212);
  border-radius: 28px;
  padding: clamp(14px, 2.2vw, 24px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09), inset 0 -1px 0 rgba(0,0,0,.6), 0 30px 60px -20px rgba(0,0,0,.8), 0 0 0 1px #262626;
}
.lcd {
  display: block; text-decoration: none; color: var(--ink);
  background: var(--lcd);
  border-radius: 14px;
  padding: clamp(14px, 2.4vw, 26px) clamp(14px, 2.4vw, 28px) clamp(12px, 2vw, 20px);
  box-shadow: inset 0 3px 10px rgba(0,0,0,.28), inset 0 0 0 1px rgba(0,0,0,.35);
  position: relative;
  transition: background-color .3s;
}
.lcd::after { /* glass sheen */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(160deg, rgba(255,255,255,.35) 0%, rgba(255,255,255,0) 38%);
}
.lcd:hover { background: var(--lcd-hover); }
.controller__bezel::after { /* backlight spill onto the bezel */
  content: ""; position: absolute; inset: clamp(14px, 2.2vw, 24px) clamp(14px, 2.2vw, 24px) auto; height: calc(100% - 70px); border-radius: 14px; pointer-events: none;
  box-shadow: 0 0 46px 6px var(--glow); z-index: 0;
}
.lcd { z-index: 1; }
.lcd:focus-visible { outline-color: var(--focus-dark); outline-offset: 6px; }
.hero :focus-visible, .oneline :focus-visible, .quote__side :focus-visible, .foot :focus-visible, .top :focus-visible, .dock :focus-visible { outline-color: var(--focus-dark); }
.lcd__status { display: flex; align-items: center; gap: 10px; min-height: 26px; font-size: .74rem; font-weight: 700; font-stretch: 112%; letter-spacing: .14em; }
.lcd__icon { width: 22px; height: 22px; color: var(--ink); transition: opacity .35s; }
.lcd__icon svg { width: 100%; height: 100%; }
.lcd__icon.is-off { opacity: .12; }
.lcd__mode { padding: 2px 6px; border: 1.5px solid currentColor; border-radius: 3px; font-size: .66rem; }
.lcd__temp { margin-left: auto; font-variant-numeric: tabular-nums; }
.lcd__temp b { font-size: 1.05rem; }
.lcd__digits { margin: clamp(12px, 2vw, 22px) 0; }
.lcd__digits svg { width: 100%; height: auto; overflow: visible; }
.seg { fill: var(--lcd-ghost); transition: fill .12s; }
.seg.on { fill: var(--ink); }
.lcd__fallback { font-size: clamp(1.6rem, 4vw, 3rem); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.lcd__digits.is-ready .lcd__fallback { display: none; }
.lcd__foot { display: flex; justify-content: space-between; font-size: .7rem; font-weight: 700; font-stretch: 112%; letter-spacing: .2em; border-top: 1.5px solid rgba(11,11,11,.7); padding-top: 10px; }
.lcd__foot span:first-child::before { content: "▸ "; }
.controller__keys { display: flex; align-items: center; gap: 12px; padding: 18px 6px 4px; }
.nub { width: 36px; height: 12px; border-radius: 7px; background: #262626; box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 2px 0 #050505; }
.controller__brand { margin-left: auto; font-stretch: 125%; font-weight: 800; font-size: .7rem; letter-spacing: .3em; color: #6d6d68; }
.controller__note { margin: 18px 4px 0; color: var(--muted-dark); font-size: .95rem; }

.strip {
  list-style: none; display: flex; flex-wrap: wrap; gap: 6px 0;
  margin: clamp(56px, 8vw, 104px) auto 0; padding-top: 22px; padding-bottom: 24px;
  border-top: 1px solid var(--housing-line);
  font-size: .76rem; font-weight: 600; font-stretch: 112%; letter-spacing: .2em; text-transform: uppercase; color: #d8d8d3;
}
.strip li:not(:last-child)::after { content: "|"; margin: 0 18px; color: #5c5c58; }

/* ---------- sections ---------- */
.section { padding-block: var(--section); }

/* services */
.services__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: clamp(28px, 4vw, 48px); }
.mode {
  display: inline-flex; padding: 6px; gap: 6px;
  background: var(--housing); border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.mode__btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border: 0; border-radius: 9px; cursor: pointer;
  background: transparent; color: #bdbdb8;
  font-weight: 700; font-stretch: 112%; font-size: .9rem; letter-spacing: .1em; text-transform: uppercase;
  transition: background-color .25s var(--ease), color .25s;
}
.mode__btn svg { width: 18px; height: 18px; flex: none; }
.mode__btn { white-space: nowrap; }
@media (max-width: 560px) { .mode { display: flex; width: 100%; } .mode__btn { flex: 1; justify-content: center; padding: 0 12px; } .hero__keys .key { flex: 1 1 100%; } }
.mode__btn:hover { color: var(--paper); }
.mode__btn[aria-selected="true"] { background: var(--lcd); color: var(--ink); box-shadow: inset 0 2px 5px rgba(0,0,0,.2), 0 0 22px var(--glow); }
.mode__btn:focus-visible { outline-color: var(--focus-dark); outline-offset: -4px; }

.panel__intro { max-width: 60ch; font-size: 1.15rem; color: var(--muted); margin-bottom: 28px; }
.panel.is-entering .schedule li { animation: rowIn .5s var(--ease) both; }
.panel.is-entering .schedule li:nth-child(2) { animation-delay: .03s } .panel.is-entering .schedule li:nth-child(3) { animation-delay: .06s }
.panel.is-entering .schedule li:nth-child(4) { animation-delay: .09s } .panel.is-entering .schedule li:nth-child(5) { animation-delay: .12s }
.panel.is-entering .schedule li:nth-child(6) { animation-delay: .15s } .panel.is-entering .schedule li:nth-child(n+7) { animation-delay: .18s }
@keyframes rowIn { from { opacity: 0; transform: translateY(8px); filter: blur(3px); } }
@media (prefers-reduced-motion: reduce) { .panel.is-entering .schedule li { animation: none; } }

.schedule { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(28px, 5vw, 72px); border-top: 2px solid var(--ink); }
.schedule li {
  display: grid; grid-template-columns: 64px 1fr; grid-template-rows: auto 1fr; column-gap: 18px; align-items: start;
  padding: 22px 0 20px; border-bottom: 1px solid var(--rule);
}
.schedule h3 { font-size: 1.12rem; font-weight: 700; font-stretch: 106%; line-height: 1.25; }
.schedule p { grid-column: 2; margin: 6px 0 0; color: var(--muted); font-size: .98rem; line-height: 1.5; }
.tag {
  grid-row: span 2; align-self: start; margin-top: 2px;
  justify-self: start; padding: 3px 7px 2px; border-radius: 3px;
  background: var(--ink); color: var(--paper);
  font-size: .68rem; font-weight: 700; font-stretch: 112%; letter-spacing: .14em;
}
@media (max-width: 760px) { .schedule { grid-template-columns: 1fr; } .schedule li { grid-template-columns: 56px 1fr; } }
.services__cta { margin: 36px 0 0; color: var(--muted); }
.services__cta a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }

/* one-line diagram */
.oneline { background: var(--housing); color: var(--paper); }
.oneline .h2 { max-width: 22ch; }
.oneline .h2 span { color: var(--muted-dark); }
.oneline__lede { max-width: 60ch; margin: 26px 0 clamp(48px, 6vw, 80px); color: #d0d0cb; font-size: 1.1rem; }
.diagram { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: relative; }
.diagram::before { /* the conductor */
  content: ""; position: absolute; left: 10%; right: 10%; top: 48px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--paper) 0 14px, transparent 14px 22px);
  background-size: 22px 2px;
  animation: flow 1.1s linear infinite;
}
@keyframes flow { to { background-position: 22px 0; } }
@media (prefers-reduced-motion: reduce) { .diagram::before { animation: none; } .dock { transition: none !important; } }
.node { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 8px; }
.node svg { width: 96px; height: 96px; padding: 18px; background: var(--housing); border: 1.5px solid var(--paper); border-radius: 50%; color: var(--paper); position: relative; }
.node b { margin-top: 18px; font-stretch: 112%; font-weight: 700; font-size: .86rem; letter-spacing: .12em; text-transform: uppercase; }
.node span { margin-top: 4px; font-size: .92rem; color: var(--muted-dark); }
.brace { margin-top: 36px; position: relative; height: 34px; border: 1.5px solid var(--paper); border-top: 0; border-radius: 0 0 12px 12px; margin-inline: 10%; }
.brace span {
  position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%);
  background: var(--paper); color: var(--ink); white-space: nowrap;
  padding: 5px 12px 4px; border-radius: 3px;
  font-size: .72rem; font-weight: 700; font-stretch: 112%; letter-spacing: .18em; text-transform: uppercase;
}
@media (max-width: 760px) {
  .diagram { grid-template-columns: 1fr; gap: 26px; padding-left: 6px; }
  .diagram::before { left: 41px; right: auto; top: 30px; bottom: 30px; width: 2px; height: auto;
    background: repeating-linear-gradient(180deg, var(--paper) 0 14px, transparent 14px 22px); background-size: 2px 22px; animation-name: flowV; }
  @keyframes flowV { to { background-position: 0 22px; } }
  .node { display: grid; grid-template-columns: 72px 1fr; column-gap: 18px; align-items: center; text-align: left; padding: 0; }
  .node svg { width: 72px; height: 72px; padding: 14px; grid-row: span 2; }
  .node b { margin-top: 0; align-self: end; }
  .node span { margin-top: 2px; align-self: start; }
  .brace { margin: 36px 0 0; height: auto; border: 0; }
  .brace span { position: static; transform: none; display: inline-block; }
}

/* licence */
.licence__in { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.licence__plate {
  position: sticky; top: 110px;
  aspect-ratio: 1.55; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; text-align: center;
  background: var(--ink); color: var(--paper);
  border-radius: 10px; padding: 32px; container-type: inline-size;
  box-shadow: inset 0 0 0 6px var(--ink), inset 0 0 0 7px #3a3a37, 0 20px 40px -18px rgba(0,0,0,.5);
}
.licence__plate small { font-size: .72rem; font-weight: 600; font-stretch: 112%; letter-spacing: .2em; text-transform: uppercase; color: #cfcfca; }
.licence__plate strong { font-stretch: 125%; font-weight: 800; font-size: 15cqi; letter-spacing: .04em; line-height: 1; }
.licence__screw { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #6b6b66, #232321); }
.licence__screw::after { content: ""; position: absolute; inset: 5px 2px; background: #111; border-radius: 1px; transform: rotate(35deg); }
.licence__screw:nth-of-type(1) { top: 16px; left: 16px; } .licence__screw:nth-of-type(2) { top: 16px; right: 16px; }
.licence__screw:nth-of-type(3) { bottom: 16px; left: 16px; } .licence__screw:nth-of-type(4) { bottom: 16px; right: 16px; }
.licence__copy > p:not(.plate) { max-width: 54ch; margin-top: 24px; font-size: 1.1rem; color: var(--muted); }
.licence__copy b { color: var(--ink); }
.link-arrow { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; text-underline-offset: 4px; }
.link-arrow::after { content: "→"; transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }
.steps { list-style: none; counter-reset: s; margin: clamp(48px, 6vw, 72px) 0 0; padding: 0; border-top: 2px solid var(--ink); }
.steps li { counter-increment: s; display: grid; grid-template-columns: 52px 1fr; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.steps li::before { content: counter(s); grid-row: span 2; font-stretch: 125%; font-weight: 800; font-size: 1.6rem; line-height: 1; }
.steps b { font-size: 1.12rem; }
.steps span { color: var(--muted); }
@media (max-width: 860px) { .licence__in { grid-template-columns: 1fr; } .licence__plate { position: relative; top: 0; max-width: 520px; } }

/* recent work */
.work__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 40px; margin-bottom: clamp(28px, 4vw, 44px); }
.work__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.work__item a { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; background: var(--housing); color: var(--paper); text-decoration: none; }
.work__item img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transform: scale(1.01); transition: filter .5s var(--ease), transform .6s var(--ease); }
.work__item a:hover img, .work__item a:focus-visible img { filter: grayscale(0); transform: scale(1.05); }
.work__item a::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(0deg, rgba(11,11,11,.85), transparent); pointer-events: none; }
.work__cap { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; font-weight: 700; font-size: .95rem; line-height: 1.3; }
.work__cap i { display: table; margin-bottom: 6px; padding: 2px 7px 1px; border-radius: 3px; background: var(--paper); color: var(--ink); font-style: normal; font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; font-stretch: 112%; }
@media (max-width: 900px) {
  .work__grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); gap: 10px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .work__grid::-webkit-scrollbar { display: none; }
  .work__item { flex: 0 0 62%; scroll-snap-align: start; }
}

/* reviews */
.reviews { background: var(--paper-dim); }
.reviews__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 28px; margin-bottom: clamp(32px, 4vw, 52px); }
.score { display: flex; align-items: center; gap: 18px; }
.score__lcd { background: var(--lcd); border-radius: 10px; padding: 12px 14px; width: 128px; box-shadow: inset 0 2px 6px rgba(0,0,0,.25), 0 0 0 7px var(--housing); }
.lcd__digits--sm { margin: 0; }
.score__meta { display: flex; flex-direction: column; gap: 4px; font-size: .95rem; color: var(--muted); }
.stars { display: flex; gap: 3px; color: #f4b400; }
.stars svg { width: 18px; height: 18px; }
.reviews__list { list-style: none; margin: 0; padding: 0; columns: 3 300px; column-gap: 24px; }
.reviews__list:empty { display: none; }
.review { break-inside: avoid; margin: 0 0 24px; padding: 26px 26px 22px; background: var(--paper); border-radius: 12px; border: 1px solid var(--rule); }
.review__stars { margin-bottom: 14px; }
.review blockquote { margin: 0 0 18px; font-size: 1.02rem; line-height: 1.55; }
.review blockquote.is-clamped { display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden; }
.review footer { display: flex; align-items: center; gap: 12px; font-size: .9rem; }
.review footer img { width: 36px; height: 36px; border-radius: 50%; filter: grayscale(1); }
.review footer b { display: block; }
.review footer .review__init { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--paper); font-weight: 700; font-size: .95rem; }
.review footer span { color: var(--muted); }
.reviews__empty { max-width: 56ch; font-size: 1.15rem; color: var(--muted); }
.reviews.has-reviews .reviews__empty { display: none; }
.reviews__keys { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.reviews__attr { margin-top: 18px; font-size: .82rem; color: var(--muted); }

/* about */
.about__in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
.about__photo {
  margin: 0; aspect-ratio: 735 / 834; border-radius: 14px; background: var(--housing); color: var(--paper);
  overflow: hidden; position: relative; isolation: isolate;
}
.about__photo img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%;
  filter: grayscale(1) contrast(1.08) brightness(.95);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 70%, transparent 100%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(180deg, #000 0%, #000 70%, transparent 100%); 
  z-index: -2;
}
.about__photo::before { /* fine print screen + edge vignette into the housing */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, rgba(11,11,11,.28) 0 .9px, transparent 1.3px) 0 0 / 4px 4px,
    linear-gradient(90deg, rgba(11,11,11,.6), transparent 9%, transparent 91%, rgba(11,11,11,.6)),
    linear-gradient(180deg, rgba(11,11,11,.35), transparent 18%);
}
.about__photo figcaption { position: absolute; left: 24px; right: 24px; bottom: 22px; display: flex; align-items: center; gap: 14px; }
.about__photo figcaption svg { width: 44px; height: 44px; flex: none; }
.about__photo figcaption span { display: flex; flex-direction: column; font-size: .72rem; font-weight: 600; font-stretch: 112%; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-dark); line-height: 1.5; }
.about__photo figcaption b { font-size: 1.05rem; letter-spacing: .04em; color: var(--paper); font-stretch: 125%; font-weight: 800; }
.about__lede { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.5; margin-top: 24px; }
.about__copy > p:not(.plate):not(.about__lede) { color: var(--muted); max-width: 58ch; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin: 32px 0 0; border-top: 2px solid var(--ink); }
.facts div { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.facts dt { font-size: .7rem; font-weight: 700; font-stretch: 112%; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 4px 0 0; font-weight: 700; font-size: 1.05rem; }
@media (max-width: 860px) { .about__in { grid-template-columns: 1fr; } .about__photo { max-width: 520px; } }

/* areas: zone controller */
.areas { background: var(--paper-dim); }
.areas__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px clamp(32px, 6vw, 96px); align-items: end; margin-bottom: clamp(32px, 4vw, 52px); }
.areas__lede { margin: 0; max-width: 48ch; font-size: 1.1rem; color: var(--muted); }
.areas__body { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 14px; align-items: stretch; }
.map { position: relative; margin: 0; min-height: 420px; border-radius: 12px; overflow: hidden; background: var(--housing); box-shadow: 0 0 0 1px var(--rule); }
.map__canvas { position: absolute; inset: 0; background: #e8e8e5; }
.map .leaflet-container { font: inherit; background: #e8e8e5; }
.map .leaflet-tile-pane { filter: grayscale(1) contrast(1.05); }
.map .leaflet-control-attribution { font-size: .68rem; background: rgba(255,255,255,.85); }
.map .leaflet-control-zoom a { color: var(--ink); }
.map__pin { width: 34px; height: 34px; border-radius: 50%; background: var(--housing); color: var(--paper); display: grid; place-items: center; box-shadow: 0 0 0 3px var(--lcd), 0 0 22px 6px var(--glow), 0 8px 16px -4px rgba(0,0,0,.5); }
.map__pin svg { width: 24px; height: 24px; }
.map__label { background: var(--housing); color: var(--paper); border: 0; border-radius: 6px; padding: 6px 10px; font: 600 .78rem/1.3 var(--font); box-shadow: 0 6px 16px -6px rgba(0,0,0,.5); }
.map__label::before { display: none; }
.map__legend { position: absolute; left: 12px; bottom: 12px; z-index: 500; display: flex; gap: 14px; padding: 8px 12px; border-radius: 8px; background: rgba(255,255,255,.94); font-size: .78rem; font-weight: 600; box-shadow: 0 4px 12px -4px rgba(0,0,0,.3); }
.map__legend span { display: flex; align-items: center; gap: 6px; }
.map__key { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }
.map__key--home { background: rgba(140,210,245,.55); border: 2px solid #0e6aa0; }
.map__key--ring { border: 2px dashed #0e6aa0; background: rgba(140,210,245,.35); }
.suburbs { background: var(--paper); border: 1px solid var(--rule); border-radius: 12px; padding: clamp(22px, 3vw, 32px); display: flex; flex-direction: column; }
.suburbs__list { list-style: none; margin: 0; padding: 0; columns: 3 128px; column-gap: 20px; }
.suburbs__list li { break-inside: avoid; padding: 6px 0; border-bottom: 1px solid var(--rule); font-weight: 600; font-size: .92rem; }
.suburbs__note { margin: auto 0 0; padding-top: 22px; color: var(--muted); font-size: .95rem; }
.suburbs__note a { color: var(--ink); font-weight: 600; }
.zones { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.zone { background: var(--paper); border: 1px solid var(--rule); border-radius: 12px; padding: 22px 22px 24px; }
.zone__id { display: inline-block; padding: 3px 8px 2px; border-radius: 3px; border: 1.5px solid var(--ink); font-size: .68rem; font-weight: 700; font-stretch: 112%; letter-spacing: .16em; text-transform: uppercase; }
.zone h3 { margin-top: 18px; font-stretch: 112%; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .04em; }
.zone p { margin: 10px 0 0; color: var(--muted); font-size: .98rem; line-height: 1.6; }
.zone--home { background: var(--housing); color: var(--paper); border-color: var(--housing); }
.zone--home .zone__id { background: var(--lcd); color: var(--ink); border-color: var(--lcd); }
.zone--home p { color: var(--paper); font-weight: 600; font-size: 1.1rem; }
@media (max-width: 1000px) { .areas__body { grid-template-columns: 1fr; } .map { min-height: 340px; } }
@media (max-width: 760px) { .areas__head { grid-template-columns: 1fr; } .zones { grid-template-columns: 1fr; } }
.about__ig { margin-top: 26px; }

/* faq */
.faq { }
.faq__in { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(32px, 6vw, 96px); }
.faq__list { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center;
  padding: 22px 0; font-size: 1.12rem; font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; background:
  linear-gradient(currentColor 0 0) center / 14px 2px no-repeat, linear-gradient(currentColor 0 0) center / 2px 14px no-repeat; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: -6px 0 24px; max-width: 62ch; color: var(--muted); }
.faq details a { color: var(--ink); font-weight: 600; }
@media (max-width: 860px) { .faq__in { grid-template-columns: 1fr; } }

/* quote */
.quote { background: var(--housing); color: var(--paper); }
.quote__in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.quote__side > p:not(.plate) { margin-top: 22px; color: #d0d0cb; max-width: 40ch; }
.contact { list-style: none; margin: 36px 0 0; padding: 0; border-top: 1px solid var(--housing-line); }
.contact li { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--housing-line); word-break: break-word; }
.contact svg { width: 20px; height: 20px; flex: none; }
.contact a { text-decoration: none; font-weight: 600; }
.contact a:hover { text-decoration: underline; text-underline-offset: 4px; }

.form { background: var(--paper); color: var(--ink); border-radius: 18px; padding: clamp(22px, 3.4vw, 40px); }
.form__type { border: 0; margin: 0 0 26px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.form__type legend { padding: 0; margin-bottom: 12px; font-size: .74rem; font-weight: 700; font-stretch: 112%; letter-spacing: .16em; text-transform: uppercase; }
.form__type label { position: relative; }
.form__type input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.form__type span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px;
  border: 1.5px solid var(--ink); border-radius: 9px; font-weight: 700; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; font-stretch: 112%;
  transition: background-color .2s, color .2s;
}
.form__type span svg { width: 16px; height: 16px; }
.form__type input:checked + span { background: var(--ink); color: var(--paper); }
.form__type input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 3px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--wide { grid-column: 1 / -1; }
.field > span { font-size: .74rem; font-weight: 700; font-stretch: 112%; letter-spacing: .16em; text-transform: uppercase; }
.field i { font-style: normal; font-weight: 500; letter-spacing: .08em; color: var(--muted); text-transform: none; }
.field input, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; font-size: 1rem;
  background: var(--paper-dim); border: 1.5px solid transparent; border-bottom-color: var(--ink); border-radius: 8px 8px 2px 2px;
  transition: border-color .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 130px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: #6b6b66; }
.field input:focus, .field textarea:focus { outline: none; background: var(--paper); border-color: var(--focus); box-shadow: 0 0 0 3px rgba(14,106,160,.18); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--ink); border-width: 2px; background: var(--paper); }
.field .err { font-size: .85rem; font-weight: 600; }
.field .err::before { content: "! "; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 26px; }
.form__status { margin: 0; font-weight: 600; flex: 1 1 240px; }
.form__status a { font-weight: 700; }
.form.is-sent .form__grid, .form.is-sent .form__type, .form.is-sent [data-submit] { display: none; }
.form.is-sent .form__status { font-size: 1.2rem; }
@media (max-width: 860px) { .quote__in { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form__grid { grid-template-columns: 1fr; } }

/* footer */
.foot { background: var(--housing); color: var(--paper); border-top: 1px solid var(--housing-line); padding-top: clamp(56px, 8vw, 96px); }
.foot__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; }
.foot__mark { width: 64px; height: 64px; }
.foot__word { margin: 18px 0 0; font-stretch: 125%; font-weight: 800; font-size: 1.8rem; text-transform: uppercase; line-height: 1; }
.foot__word small { display: block; margin-top: 8px; font-size: .68rem; font-weight: 600; letter-spacing: .3em; font-stretch: 112%; color: #d8d8d3; }
.foot__tag { margin-top: 20px; font-size: .74rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-dark); font-stretch: 112%; }
.foot__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot__cols div { display: flex; flex-direction: column; gap: 10px; }
.foot__cols h2 { font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-dark); margin-bottom: 4px; font-stretch: 112%; }
.foot__cols a, .foot__cols span { text-decoration: none; color: #e6e6e1; word-break: break-word; }
.foot__cols a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 64px; padding-top: 22px; padding-bottom: 28px; border-top: 1px solid var(--housing-line); font-size: .82rem; color: var(--muted-dark); }
@media (max-width: 860px) { .foot__in, .foot__cols { grid-template-columns: 1fr; } }

/* mobile dock */
.dock { display: none; }
@media (max-width: 760px) {
  :root { --dock-h: calc(76px + env(safe-area-inset-bottom)); }
  .dock {
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--housing) 94%, transparent);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-top: 1px solid var(--housing-line);
    transform: translateY(110%);
    transition: transform .45s var(--ease), visibility 0s linear .45s;
    visibility: hidden;
  }
  .dock.is-shown { transform: none; visibility: visible; transition: transform .45s var(--ease), visibility 0s; }
  .dock .key { min-height: 52px; }
}
a[href^="tel:"] { white-space: nowrap; }
