/* 307 Water Well Service — concept
   System: see docs/creative-direction.md */

:root {
  --bone: #ECE7DC;
  --bone-2: #E2DCCE;
  --paper: #F5F2EB;
  --ink: #1C1E1F;
  --ink-2: #3A3D3D;
  --muted: #585B56;
  --basalt: #15191B;
  --basalt-2: #1E2427;
  --steel: #C9D1D3;
  --turq: #2EC4C0;
  --turq-hi: #6FE3DF;
  --teal: #0B6566;
  --well: #0C3E40;
  --ochre: #A65A2A;
  --field: #5C5848;
  --rule: rgb(28 30 31 / .16);
  --rule-dark: rgb(236 231 220 / .16);

  --display: "Archivo", "Arial Black", system-ui, sans-serif;
  --body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1rem, .96rem + .2vw, 1.125rem);
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ol, figure { margin: 0; }
ol { padding: 0; list-style: none; }

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

.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(--ink); color: var(--bone); padding: 10px 14px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ── Shared type ───────────────────────────────────── */
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font: 500 .78rem/1 var(--mono);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow--dark { color: rgb(236 231 220 / .72); }

/* three-line mark, from the logo's speed lines */
.tri {
  display: inline-block; width: 26px; height: 11px; flex: none;
  background:
    linear-gradient(currentColor 0 0) 0 0 / 100% 2px,
    linear-gradient(currentColor 0 0) 6px 50% / calc(100% - 6px) 2px,
    linear-gradient(currentColor 0 0) 12px 100% / calc(100% - 12px) 2px;
  background-repeat: no-repeat;
  color: var(--teal);
}
.eyebrow--dark .tri, .tri--light { color: var(--turq); }

.section-title {
  font-family: var(--display);
  font-style: italic;
  font-weight: 850;
  font-variation-settings: "wdth" 112;
  font-size: clamp(2.1rem, 1.3rem + 3.6vw, 4.6rem);
  line-height: .98;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.section-title em { font-style: italic; color: var(--teal); }

.provisional {
  max-width: 52ch;
  font: 400 .8rem/1.5 var(--mono);
  color: rgb(236 231 220 / .75);
  border: 1px dashed rgb(46 196 192 / .55);
  padding: 10px 14px;
}
.provisional strong { margin-right: .6em; color: var(--turq); font-weight: 500; text-transform: uppercase; letter-spacing: .1em; }
.provisional--light { color: var(--muted); border-color: rgb(11 101 102 / .5); }
.provisional--light strong { color: var(--teal); }

/* ── Buttons ───────────────────────────────────────── */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  min-height: 54px; padding: 0 22px;
  font: 700 1rem/1 var(--body);
  font-variation-settings: "wdth" 108;
  text-decoration: none; letter-spacing: .01em;
  transition: color .3s var(--ease), background-color .3s var(--ease), border-color .3s var(--ease);
}
.btn-primary {
  background: var(--ink); color: var(--bone);
  overflow: hidden; isolation: isolate;
}
/* a water line rises through the button on hover */
.btn-primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--teal);
  transform: translateY(101%);
  transition: transform .45s var(--ease);
}
.btn-primary::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--turq);
}
.btn-primary:hover::before, .btn-primary:focus-visible::before { transform: translateY(0); }
.btn-arrow { transition: transform .35s var(--ease); }
.btn-primary:hover .btn-arrow { transform: translateX(4px); }
.btn-ghost { padding-inline: 4px; border-bottom: 2px solid var(--ink); min-height: 44px; }
.btn-ghost:hover { color: var(--teal); border-color: var(--teal); }

/* ── Header ────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 40;
  height: var(--header-h);
  background: rgb(236 231 220 / .9);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand-num {
  font-family: var(--display); font-style: italic; font-weight: 900;
  font-variation-settings: "wdth" 125;
  font-size: 2.05rem; line-height: 1; letter-spacing: -.03em;
  /* nod to the logo's chrome band, kept to the mark only */
  background: linear-gradient(180deg, #19D4D0 0%, #0E9C9A 46%, #0B6566 52%, #12A9A6 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .08em;
}
.brand-txt {
  font: 800 .66rem/1.05 var(--body);
  font-style: italic;
  font-variation-settings: "wdth" 120;
  text-transform: uppercase; letter-spacing: .06em;
  padding-left: 10px; border-left: 1px solid var(--rule);
}
.nav { display: flex; gap: 28px; }
.nav a {
  font: 500 .78rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; padding: 8px 0; position: relative;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px;
  background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); }
.header-call {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 16px;
  background: var(--ink); color: var(--bone); text-decoration: none;
  font: 700 .95rem/1 var(--body); font-variation-settings: "wdth" 108;
  transition: background-color .3s;
}
.header-call svg { color: var(--turq); }
.header-call:hover { background: var(--teal); }
.header-call:hover svg { color: var(--bone); }

/* ── Depth rail ────────────────────────────────────── */
.rail { display: none; }
/* only where the margin outside the 1440 grid is wide enough to hold it */
@media (min-width: 1680px) {
  .rail {
    display: flex; gap: 12px;
    position: fixed; left: 18px; top: 50%; transform: translateY(-50%);
    z-index: 30; height: 46vh; mix-blend-mode: difference; color: #e9e9e9;
  }
  .rail-line { position: relative; width: 1px; background: currentColor; opacity: .5; }
  .rail-marker {
    position: absolute; left: -4px; top: calc(var(--depth, 0) * 100%);
    width: 9px; height: 9px; background: currentColor; transform: translateY(-50%) rotate(45deg);
  }
  .rail-stops {
    display: flex; flex-direction: column; justify-content: space-between;
    font: 500 .62rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  }
  .rail-stops li { opacity: .45; transition: opacity .3s; }
  .rail-stops li.is-active { opacity: 1; }
}

/* ── 1 · Hero ──────────────────────────────────────── */
.hero { position: relative; background: var(--bone); }
.hero-copy {
  position: relative; z-index: 2;
  padding-top: clamp(28px, 6vh, 72px);
  display: grid; gap: clamp(20px, 3vh, 32px);
}
.hero-title {
  font-family: var(--display);
  font-style: italic; font-weight: 900;
  font-variation-settings: "wdth" 118;
  font-size: clamp(2.9rem, 1rem + 8.4vw, 9.4rem);
  line-height: .9; letter-spacing: -.035em;
}
.hero-title .line { display: block; white-space: nowrap; }
@media (max-width: 479px) {
  .hero-title { font-size: 12.2vw; font-variation-settings: "wdth" 104; }
}
.hero-title em {
  color: var(--teal);
  background: linear-gradient(180deg, #13BDB9 0%, #0E8F8D 48%, #0B6566 52%, #0E8F8D 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  padding-right: .06em;
}
/* lede and actions stay left; the logo sign holds the right side */
.hero-foot {
  display: grid; gap: 24px; justify-items: start;
  padding-top: clamp(8px, 2vh, 20px);
}
.hero-lede { max-width: 38ch; color: var(--ink-2); font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; }

.hero-section {
  position: relative; z-index: 1;
  margin-top: clamp(-120px, -9vw, -20px);
  height: clamp(460px, 50vw, 900px);
}
.hero-section svg { width: 100%; height: 100%; }

/* Signpost. Desktop: drawn inside the section SVG (.svg-plate) so it stays planted over the casing.
   Below 900px: a full-bleed black band whose bottom edge lands on the horizon (y=300 of 760 at 460px tall). */
.hero-plate { display: none; }
@media (max-width: 899px) {
  .svg-plate { display: none; }
  .hero-section { height: auto; margin-top: clamp(28px, 6vw, 44px); }
  .hero-section svg { height: 460px; margin-top: -181.6px; position: relative; z-index: 0; }
  .hero-plate {
    display: block; position: relative; z-index: 1;
    background: #000;
    padding: calc(7vw + 16px) var(--gutter) 18px;
    clip-path: polygon(0 7vw, 100% 0, 100% 100%, 0 100%);
  }
  .hero-plate img { width: 100%; max-width: 560px; height: auto; margin-inline: auto; }
}

.svg-label { font: 500 14px var(--mono); letter-spacing: .1em; fill: var(--ink); }
.svg-label--light { fill: #ECE7DC; }
.svg-label--water { fill: var(--turq-hi); }
.svg-label--aq { fill: var(--turq); font-size: 18px; font-weight: 500; letter-spacing: .3em; }
.svg-label--dim { fill: rgb(236 231 220 / .45); font-size: 12px; }

.windmill-wheel { transform-box: fill-box; transform-origin: center; animation: spin 14s linear infinite; }
.windmill-wheel--b { animation-duration: 18s; }
.water-flow { animation: flow 6s linear infinite; }
.well-water { transform-box: fill-box; transform-origin: bottom; animation: level 7s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes flow { to { transform: translateX(80px); } }
@keyframes level { 50% { transform: scaleY(.9); } }

/* ── 2 · Services ──────────────────────────────────── */
.services {
  position: relative;
  background: var(--basalt);
  color: var(--bone);
  padding-block: clamp(64px, 10vw, 140px) clamp(120px, 14vw, 200px);
}
.services-grid { display: grid; gap: 40px 64px; }
.services-head { display: grid; gap: 24px; justify-items: start; }
.services .section-title em, .services .section-title { color: var(--bone); }

.schematic { color: var(--steel); }
.schematic svg { width: 100%; height: auto; max-height: 78vh; margin-inline: auto; }
.sch-line path, .part rect, .part circle, .part path, .callout path, .callout circle {
  fill: none; stroke: currentColor; stroke-width: 1.6;
}
.pipe { stroke: currentColor; stroke-width: 3; fill: none; }
.part { color: #7E8A8E; transition: color .35s var(--ease); }
.part-pump rect { fill: #20272A; }
.part-tank rect { fill: #1E2427; }
.part-switch rect, .part-switch circle { fill: #1E2427; }
.callout { color: #7E8A8E; transition: color .35s var(--ease); }
.callout text { font: 500 10px var(--mono); fill: currentColor; text-anchor: middle; letter-spacing: .04em; }
.callout circle { fill: var(--basalt); }

.schematic[data-active="pump"] .part-pump,
.schematic[data-active="tank"] .part-tank,
.schematic[data-active="switch"] .part-switch,
.schematic[data-active="system"] .part,
.schematic[data-active="pump"] .callout[data-for="pump"],
.schematic[data-active="tank"] .callout[data-for="tank"],
.schematic[data-active="switch"] .callout[data-for="switch"],
.schematic[data-active="system"] .callout[data-for="system"] { color: var(--turq); }
.schematic[data-active="pump"] .part-pump rect,
.schematic[data-active="tank"] .part-tank rect { fill: rgb(46 196 192 / .14); }

.service-list { border-top: 1px solid var(--rule-dark); counter-reset: s; }
.service {
  position: relative;
  display: grid; grid-template-columns: auto 1fr; gap: 0 clamp(16px, 3vw, 36px);
  padding: clamp(22px, 3vw, 34px) 0;
  border-bottom: 1px solid var(--rule-dark);
  transition: background-color .4s var(--ease);
}
.service::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 100%;
  background: var(--turq); transform: scaleX(0); transform-origin: left;
  transition: transform .6s var(--ease);
}
.service.is-active::before { transform: scaleX(1); }
.service-no {
  font: 500 .8rem/1 var(--mono); letter-spacing: .1em; color: rgb(236 231 220 / .5);
  padding-top: .8em; transition: color .3s;
}
.service.is-active .service-no { color: var(--turq); }
.service h3 {
  font-family: var(--display); font-style: italic; font-weight: 800;
  font-variation-settings: "wdth" 110;
  font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2.35rem); line-height: 1.05; letter-spacing: -.015em;
  margin-bottom: 10px;
  transition: transform .45s var(--ease);
}
.service.is-active h3 { transform: translateX(6px); }
.service p { color: rgb(236 231 220 / .78); max-width: 52ch; }
.service .service-part {
  margin-top: 14px; font: 400 .72rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  color: rgb(236 231 220 / .5);
}
.service-part span { color: var(--turq); margin-left: 8px; }
.services-cta { color: rgb(236 231 220 / .8); }
.services-cta a { color: var(--turq); font-weight: 700; text-underline-offset: 4px; white-space: nowrap; }

.surface-edge { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(40px, 6vw, 80px); }

@media (min-width: 960px) {
  .services-grid { grid-template-columns: 5fr 7fr; align-items: start; }
  .services-head { grid-column: 1 / -1; grid-template-columns: 7fr 5fr; align-items: end; }
  .services-head .eyebrow { grid-column: 1 / -1; }
  .services-head .provisional { justify-self: end; }
  .schematic-wrap { position: sticky; top: calc(var(--header-h) + 24px); grid-row: span 2; }
  .service-list { grid-column: 2; }
  .services-cta { grid-column: 2; }
}
@media (max-width: 959px) {
  .schematic svg { max-height: 56vh; }
}

/* ── 3 · Wyoming ───────────────────────────────────── */
.wyoming { position: relative; background: var(--bone); padding-top: clamp(56px, 8vw, 120px); overflow: hidden; }
.contours { position: absolute; inset: 0 0 auto auto; width: min(900px, 90vw); height: 640px; pointer-events: none; opacity: .9; }
.contours svg { width: 100%; height: 100%; }
.wy-grid { position: relative; display: grid; gap: 32px 64px; }
.wy-big {
  position: absolute; right: var(--gutter); top: -.12em; z-index: 0;
  font-family: var(--display); font-style: italic; font-weight: 900; font-variation-settings: "wdth" 125;
  font-size: clamp(9rem, 30vw, 30rem); line-height: .8; letter-spacing: -.05em;
  color: transparent; -webkit-text-stroke: 1.5px rgb(11 101 102 / .2);
  user-select: none;
}
.wy-head, .wy-copy { position: relative; z-index: 1; }
.wy-head { display: grid; gap: 22px; }
.wy-copy { display: grid; gap: 18px; max-width: 54ch; color: var(--ink-2); }
.wy-copy .lede { font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); line-height: 1.45; color: var(--ink); }
.fact {
  display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center;
  margin-top: 10px; padding-top: 20px; border-top: 1px solid var(--rule);
}
.fact-k {
  font-family: var(--display); font-style: italic; font-weight: 900; font-variation-settings: "wdth" 125;
  font-size: 2.6rem; line-height: 1; color: var(--teal);
}
.fact-v { font: 400 .82rem/1.5 var(--mono); color: var(--muted); }
@media (min-width: 960px) {
  .wy-grid { grid-template-columns: 7fr 5fr; align-items: end; }
}

.panorama { margin-top: clamp(32px, 6vw, 80px); height: clamp(220px, 26vw, 420px); }
.panorama svg { width: 100%; height: 100%; }

.field {
  background: var(--field);
  color: var(--bone);
  padding-top: clamp(24px, 3vw, 40px); padding-bottom: clamp(64px, 8vw, 120px);
}
.field-eyebrow { margin-bottom: clamp(20px, 3vw, 32px); }
.field-grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.shot { display: grid; gap: 10px; align-content: start; }
.shot img {
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  background: #4E4A3C;
  filter: saturate(.88) contrast(1.04);
  transition: filter .6s var(--ease), transform .9s var(--ease);
}
.shot--wide img { aspect-ratio: 3 / 2; }
.shot { overflow: hidden; }
.shot:hover img { filter: saturate(1) contrast(1.06); }
.shot figcaption {
  display: flex; gap: 12px; align-items: baseline;
  font-size: .92rem; line-height: 1.45; color: rgb(236 231 220 / .92);
}
.shot-no { font: 500 .72rem/1 var(--mono); letter-spacing: .12em; color: var(--turq-hi); flex: none; }
.field-credit { margin-top: 28px; font: 400 .72rem/1.5 var(--mono); color: rgb(236 231 220 / .7); }
@media (min-width: 640px) and (max-width: 899px) {
  .field-grid { grid-template-columns: 1fr 1fr; }
  .shot--lead, .shot--wide { grid-column: 1 / -1; }
  .shot--lead img { aspect-ratio: 4 / 3; }
}
@media (min-width: 900px) {
  .field-grid { grid-template-columns: repeat(12, 1fr); grid-template-rows: auto auto; }
  .shot--lead { grid-column: 1 / 7; grid-row: 1 / 3; grid-template-rows: 1fr auto; }
  .shot--lead img { height: 100%; aspect-ratio: auto; }
  .shot:nth-child(2) { grid-column: 7 / 10; }
  .shot:nth-child(3) { grid-column: 10 / 13; }
  .shot--wide { grid-column: 7 / 13; }
}

/* ── 4 · Process ───────────────────────────────────── */
.process {
  background:
    linear-gradient(rgb(28 30 31 / .06) 1px, transparent 1px) 0 0 / 100% 64px,
    var(--paper);
  padding-block: clamp(72px, 10vw, 140px);
}
.process-head { display: grid; gap: 22px; justify-items: start; max-width: 900px; margin-bottom: clamp(48px, 7vw, 96px); }

.steps { position: relative; padding-left: 44px; }
.steps-list { display: grid; gap: 40px; }
.pipe-track {
  position: absolute; left: 11px; top: 8px; bottom: 8px; width: 6px;
  background: var(--bone-2); border: 1px solid var(--rule);
}
.pipe-fill {
  position: absolute; inset: 0; background: var(--teal);
  transform-origin: top; transform: scaleY(var(--progress, 1));
}
.step { position: relative; display: grid; gap: 10px; background: var(--paper); }
.step-node {
  position: absolute; left: -44px; top: 4px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--ink);
  display: grid; place-items: center;
}
.step-node::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); transition: background-color .3s; }
.step.is-on .step-node::after { background: var(--teal); }
.step-no { font: 500 .8rem/1 var(--mono); letter-spacing: .12em; color: var(--muted); padding-top: 10px; }
.step h3 {
  font-family: var(--display); font-style: italic; font-weight: 850; font-variation-settings: "wdth" 112;
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.6rem); line-height: 1; letter-spacing: -.02em;
}
.step p { max-width: 34ch; color: var(--ink-2); }
.step a { color: var(--teal); font-weight: 700; text-underline-offset: 3px; white-space: nowrap; }

@media (min-width: 900px) {
  .steps { padding-left: 0; padding-top: 56px; }
  .steps-list { grid-template-columns: repeat(3, 1fr); gap: 48px; }
  .pipe-track { left: 0; right: 0; top: 11px; bottom: auto; width: auto; height: 6px; }
  .pipe-fill { transform-origin: left; transform: scaleX(var(--progress, 1)); }
  .step { background: none; }
  .step-node { left: 0; top: -56px; }
  .step-no { padding-top: 0; }
}

/* ── 5 · Call ──────────────────────────────────────── */
.call {
  position: relative; overflow: hidden;
  background: var(--well); color: var(--bone);
  padding-block: clamp(80px, 12vw, 180px);
}
/* water-line texture */
.call::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(180deg, transparent 0 22px, rgb(46 196 192 / .07) 22px 23px);
}
/* hoist mast against the sky, folded into the teal */
.call-bg {
  position: absolute; top: 0; right: 0; height: 100%; width: 100%;
  object-fit: cover; object-position: 70% 20%;
  mix-blend-mode: luminosity; opacity: .22;
  pointer-events: none;
}
@media (min-width: 900px) {
  .call-bg {
    width: 52%; opacity: .5;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%);
    mask-image: linear-gradient(90deg, transparent, #000 45%);
  }
}
.call-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); }
.call-title {
  font-family: var(--display); font-style: italic; font-weight: 800; font-variation-settings: "wdth" 108;
  font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.8rem); line-height: 1.08; max-width: 24ch; text-wrap: balance;
}
.call-number {
  display: grid; gap: 18px; text-decoration: none; justify-items: start;
  border-top: 1px solid rgb(236 231 220 / .25); padding-top: clamp(20px, 3vw, 36px);
}
.call-number-digits {
  font-family: var(--display); font-style: italic; font-weight: 900; font-variation-settings: "wdth" 120;
  font-size: clamp(2.7rem, .6rem + 10.4vw, 12rem); line-height: .9; letter-spacing: -.035em;
  color: var(--bone);
  transition: color .35s var(--ease);
  white-space: nowrap;
}
@media (max-width: 599px) {
  .call-number-digits { font-size: clamp(2rem, -.2rem + 11.6vw, 4rem); font-variation-settings: "wdth" 100; }
}
.call-number-digits .sep { color: var(--turq); padding-inline: .04em; }
.call-number-action {
  display: inline-flex; gap: 12px; align-items: center;
  font: 500 .85rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  background: var(--turq); color: var(--basalt); padding: 14px 18px; min-height: 48px;
}
.call-number:hover .call-number-digits, .call-number:focus-visible .call-number-digits { color: var(--turq-hi); }

/* ── Footer ────────────────────────────────────────── */
.site-footer { background: var(--basalt); color: rgb(236 231 220 / .75); padding-block: 40px calc(40px + env(safe-area-inset-bottom)); font-size: .9rem; }
.footer-inner { display: grid; gap: 24px; }
.footer-brand { display: flex; gap: 16px; align-items: center; }
.footer-brand strong { color: var(--bone); }
.footer-brand a { color: var(--turq); }
.concept-note { font: 400 .75rem/1.6 var(--mono); max-width: 80ch; color: rgb(236 231 220 / .6); }
@media (min-width: 900px) { .footer-inner { grid-template-columns: 1fr 1.6fr; align-items: center; } }

/* ── Mobile call bar ───────────────────────────────── */
.callbar {
  position: fixed; z-index: 50; left: 12px; right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 0 18px;
  background: var(--ink); color: var(--bone); text-decoration: none;
  font: 700 1.05rem/1 var(--body); font-variation-settings: "wdth" 110;
  border-left: 4px solid var(--turq);
  box-shadow: 0 10px 30px rgb(0 0 0 / .22);
  transform: translateY(calc(100% + 24px)); transition: transform .45s var(--ease);
}
.callbar-label { margin-right: auto; }
.callbar svg { color: var(--turq); }
.callbar.is-visible { transform: none; }
html:not(.js) .callbar { transform: none; }
@media (min-width: 900px) { .callbar { display: none; } }

/* ── Small screens ─────────────────────────────────── */
@media (max-width: 899px) {
  .nav { display: none; }
  .header-call { padding: 0 14px; }
  body { padding-bottom: 0; }
  .site-footer { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
}
@media (max-width: 420px) {
  .header-call-num { display: none; }
  .header-call { width: 44px; justify-content: center; padding: 0; }
  .brand-txt { font-size: .6rem; }
}

/* ── Reveal ────────────────────────────────────────── */
.js [data-reveal] {
  opacity: 0; transform: translateY(16px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: calc(var(--i, 0) * 60ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
/* hero runs on load, not on JS/IO, to keep LCP fast */
.js .hero [data-reveal] { opacity: 1; transform: none; transition: none; animation: rise .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .px { transform: none !important; }
}
