/* Hallmark · genre: editorial · macrostructure: Split Studio · theme: studied-DNA (source: image — public reference) · nav: N12 (banner: status · dismiss: yes · bar: sticky) · footer: Ft1
 * DNA — paper white-cool · petrol-teal flood bands oklch(31% 0.048 210) · taupe pill CTA oklch(74% 0.035 80) · single rounded-sans family (Plus Jakarta Sans) · offset photo frames · lattice pattern on bands
 * studied: yes · DNA-source: image (user reference, public inspiration) · H2 hero knobs: ratio=7/5, right=photo-offset-frame, divider=negative-space
 * anti-patterns dropped from source: white-on-taupe CTA text (~2:1) · floating "+" ornaments · icon-tile features · uppercase long CTAs
 * contrast: pass (40–41) · slop: pass (42–45) · honest: pass (46) · chrome: pass (47) · tokens: pass (48) · responsive: pass (49) · icons: pass (30) · mobile: pass (34, 49, 50–57)
 * Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V4
 *
 * I Polo Construction — one-page site
 * Structure: tokens.css carries every design token; this file only consumes them.
 */

@import url("tokens.css");

/* =========================================================
   Base
   ========================================================= */

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

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar-h) + var(--space-lg));
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-md);
  overflow-wrap: anywhere;
  min-width: 0;
}

h1 { font-size: var(--text-display); }
h2 { font-size: var(--text-display-s); }
h3 { font-size: var(--text-md); line-height: 1.25; }

p { margin: 0 0 var(--space-md); }

a {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: text-decoration-thickness var(--dur-micro) var(--ease-out);
}

a:hover { text-decoration-thickness: 2px; }

:focus { outline: none; }

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

ul { margin: 0 0 var(--space-md); padding-left: 1.2em; }
li { margin-bottom: var(--space-2xs); }

.container {
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

.lede {
  font-size: var(--text-md);
  line-height: 1.55;
  color: var(--color-neutral);
  max-width: 45ch;
}

.measure { max-width: 65ch; }

.muted { color: var(--color-muted); }

.tel {
  color: inherit;
  font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* =========================================================
   Buttons — default · hover · focus · active · disabled
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  min-height: 48px;
  padding: var(--space-sm) var(--space-xl);
  border: var(--rule-hair) solid var(--color-ink);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur-short) var(--ease-out),
              color var(--dur-short) var(--ease-out),
              transform 100ms var(--ease-out);
}

.btn:active { transform: translateY(1px); }

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Warm taupe pill — the studied CTA voice, with legible deep-teal text */
.btn--primary {
  background: var(--color-cta);
  border-color: var(--color-cta-edge);
  color: var(--color-cta-ink);
}

.btn--primary:hover {
  background: var(--color-cta-hover);
  color: var(--color-cta-ink);
}

.btn--outline {
  background: transparent;
  border-color: var(--color-ink-2);
  color: var(--color-ink);
}

.btn--outline:hover {
  background: var(--color-paper-2);
  color: var(--color-ink);
}

/* On the petrol band */
.btn--paper {
  background: var(--color-paper);
  border-color: var(--color-paper);
  color: var(--color-ink);
}

.btn--paper:hover { background: var(--color-paper-2); }

.btn--ghost-paper {
  background: transparent;
  border-color: var(--color-paper-on-ink);
  color: var(--color-paper-on-ink);
}

.btn--ghost-paper:hover {
  background: var(--color-band-2);
  color: var(--color-paper-on-ink);
}

/* =========================================================
   Petrol bands — the studied flood surfaces, with a faint
   diamond-lattice pattern (token-derived, no inline colors)
   ========================================================= */

.band {
  background-color: var(--color-band);
  background-image:
    repeating-linear-gradient(45deg,
      transparent 0 34px,
      color-mix(in oklab, var(--color-paper-on-ink) 5%, transparent) 34px 35px),
    repeating-linear-gradient(-45deg,
      transparent 0 34px,
      color-mix(in oklab, var(--color-paper-on-ink) 5%, transparent) 34px 35px);
  color: var(--color-paper-on-ink);
}

.band h1,
.band h2,
.band h3 { color: var(--color-paper-on-ink); }

section.band p,
.band .lede,
.band .muted { color: var(--color-soft-on-band); }

.band a:not(.btn) { color: var(--color-paper-on-ink); }

/* Focus rings must clear 3:1 against the dark band */
.band :focus-visible,
.nav__banner :focus-visible,
.final :focus-visible {
  outline-color: var(--color-paper-on-ink);
}

/* Offset photo frame — the studied collage treatment */
.frame-offset {
  position: relative;
  margin-right: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.frame-offset::before {
  content: "";
  position: absolute;
  inset: var(--space-lg) calc(-1 * var(--space-sm)) calc(-1 * var(--space-sm)) var(--space-lg);
  border-radius: var(--radius-md);
  background: var(--color-teal-tint);
  z-index: var(--z-base);
}

.band .frame-offset::before { background: var(--color-band-2); }

figure.frame-offset img {
  position: relative;
  z-index: var(--z-raised);
  border: 0;
  border-radius: var(--radius-md);
}

/* Centered section head with the small studied ornament rule */
.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.section__head--center h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  border-radius: var(--radius-pill);
  background: var(--color-cta);
  margin: var(--space-md) auto 0;
}

/* =========================================================
   Nav — N12 banner + retracting bar
   ========================================================= */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: var(--z-nav);
  transform: translateY(0);
  transition: transform 320ms var(--ease-out);
}

.nav.is-compact { transform: translateY(calc(var(--banner-h) * -1)); }

.nav.is-dismissed { transform: none; }
.nav.is-dismissed .nav__banner { display: none; }

.nav__banner {
  height: var(--banner-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  padding-inline: var(--space-md);
  background: var(--color-band);
  color: var(--color-paper-on-ink);
  font-size: var(--text-sm);
}

.nav__banner p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nav__banner a {
  color: var(--color-paper-on-ink);
  text-decoration-color: var(--color-rule-2);
}

.nav__banner-x {
  flex: none;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  border-radius: var(--radius-xs);
  color: var(--color-paper-on-ink);
  font-size: var(--text-md);
  line-height: 1;
  cursor: pointer;
}

.nav__banner-x:hover { background: var(--color-band-2); }

.nav__bar {
  background: var(--color-paper);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}

.nav__bar-inner {
  height: var(--bar-h);
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav__brand {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--color-ink);
  text-decoration: none;
  white-space: nowrap;
  margin-right: auto;
}

.nav__links {
  display: none; /* mobile: collapsed behind the menu button */
}

.nav__link {
  color: var(--color-ink);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  padding: var(--space-xs) var(--space-2xs);
}

.nav__link:hover { color: var(--color-accent); }

.nav__cta { display: none; }

.nav__phone {
  display: none;
  font-size: var(--text-sm);
  color: var(--color-ink);
  text-decoration: none;
}

.nav__toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: var(--rule-hair) solid var(--color-rule-2);
  border-radius: var(--radius-xs);
  cursor: pointer;
  color: var(--color-ink);
}

.nav__toggle-bars,
.nav__toggle-bars::before,
.nav__toggle-bars::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform var(--dur-short) var(--ease-in-out),
              opacity var(--dur-short) var(--ease-in-out);
}

.nav__toggle-bars { position: relative; }
.nav__toggle-bars::before { position: absolute; transform: translateY(-6px); }
.nav__toggle-bars::after  { position: absolute; transform: translateY(6px); }

.nav__toggle[aria-expanded="true"] .nav__toggle-bars { transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::before { transform: rotate(-90deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::after  { opacity: 0; }

/* Mobile menu panel */
.nav__menu {
  display: none;
  background: var(--color-paper);
  border-bottom: var(--rule-hair) solid var(--color-rule-2);
  padding: var(--space-sm) 0 var(--space-lg);
}

.nav.is-open .nav__menu { display: block; }

.nav__menu-link {
  display: block;
  padding: var(--space-sm) 0;
  border-bottom: var(--rule-hair) solid var(--color-rule);
  color: var(--color-ink);
  font-size: var(--text-base);
  font-weight: 500;
  text-decoration: none;
}

.nav__menu-link:hover { color: var(--color-accent); }

.nav__menu-actions {
  display: grid;
  gap: var(--space-sm);
  padding-top: var(--space-lg);
}

@media (min-width: 64rem) {
  .nav__toggle { display: none; }
  .nav__menu { display: none !important; }
  .nav__links {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
  }
  .nav__cta { display: inline-flex; min-height: 42px; padding-block: var(--space-xs); }
}

@media (min-width: 78rem) {
  .nav__phone { display: inline; white-space: nowrap; }
}

/* Push page content below the fixed chrome */
.page-top-pad { padding-top: calc(var(--banner-h) + var(--bar-h)); }

/* =========================================================
   Hero — H2 split diptych, 7/5, left-biased
   ========================================================= */

.hero { padding-block: var(--space-2xl) var(--space-3xl); }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-2xl);
  align-items: center;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
  margin-block: var(--space-lg) var(--space-md);
}

/* Long CTA labels stay single-line down to 320 px */
@media (max-width: 25rem) {
  .btn { padding-inline: var(--space-md); font-size: var(--text-xs); }
}

.hero__phone {
  font-size: var(--text-base);
  color: var(--color-soft-on-band);
  margin: 0;
}

.hero__phone .tel { color: var(--color-paper-on-ink); }

.hero__figure { margin: 0; }

.hero__figure img { width: 100%; }

@media (min-width: 60rem) {
  .hero { padding-block: var(--space-3xl) var(--space-4xl); }
  .hero__grid { grid-template-columns: 7fr minmax(0, 5fr); }
}

/* =========================================================
   Sections — S2 hanging heads, varied rhythm
   ========================================================= */

.section { padding-block: var(--space-2xl); }
.section--deep { padding-block: var(--space-3xl); }
.section--tint { background: var(--color-paper-2); }

.section__head { max-width: 46ch; margin-bottom: var(--space-xl); }
.section__head p { color: var(--color-neutral); max-width: 60ch; }

/* =========================================================
   Intro
   ========================================================= */

.intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-xl);
}

.intro__points {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: var(--rule-hair) solid var(--color-rule-2);
}

.intro__points li {
  margin: 0;
  padding: var(--space-sm) 0;
  border-bottom: var(--rule-hair) solid var(--color-rule);
  font-weight: 500;
}

@media (min-width: 60rem) {
  .intro__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--space-2xl); }
}

/* =========================================================
   Services — bento, 6 tiles, irregular spans, hairlines
   ========================================================= */

.services__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-md);
}

.service {
  border: var(--rule-hair) solid var(--color-rule-2);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  background: var(--color-paper);
  transition: background-color var(--dur-short) var(--ease-out);
}

.service:hover { background: var(--color-paper-2); }

/* Services sit on the petrol band — panels elevate via lightness */
.band .service {
  border: 0;
  background: var(--color-band-2);
}

.band .service:hover { background: var(--color-band-3); }

.band .service p,
.band .service ul { color: var(--color-soft-on-band); }

.service h3 { margin-bottom: var(--space-xs); }

.service p { color: var(--color-neutral); margin-bottom: var(--space-xs); }

.service ul {
  columns: 2;
  column-gap: var(--space-lg);
  color: var(--color-neutral);
  font-size: var(--text-sm);
  margin: 0;
}

@media (min-width: 40rem) {
  .services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 60rem) {
  .services__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .service--wide { grid-column: span 2; }
}

/* =========================================================
   Split rows — residential (text left) / commercial (text right)
   ========================================================= */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-xl);
  align-items: center;
}

.split figure { margin: 0; }

.split img {
  width: 100%;
  border: var(--rule-hair) solid var(--color-rule-2);
  border-radius: var(--radius-md);
}

.split__body h2 { max-width: 20ch; }
.split__body > p { color: var(--color-neutral); max-width: 55ch; }

.split .btn { margin-top: var(--space-sm); }

.sub-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-lg) var(--space-xl);
  margin-block: var(--space-lg);
}

.sub-grid h3 { margin-bottom: var(--space-2xs); }
.sub-grid p { color: var(--color-neutral); font-size: var(--text-sm); margin: 0; }

@media (min-width: 40rem) {
  .sub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 60rem) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-3xl); }
  .split--media-first figure { order: -1; }
}

@media (max-width: 59.99rem) {
  /* On mobile the text always leads, image follows */
  .split figure { order: 1; }
}

/* =========================================================
   Projects — uniform card grid + before/after
   ========================================================= */

.projects__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-xl) var(--space-lg);
  margin-bottom: var(--space-3xl);
}

.project { margin: 0; }

.project__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: var(--rule-hair) solid var(--color-rule-2);
  border-radius: var(--radius-md);
  background: var(--color-paper-2);
}

.project__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project figcaption {
  padding-top: var(--space-sm);
  font-weight: 600;
}

.project__note {
  display: block;
  color: var(--color-muted);
  font-size: var(--text-sm);
  font-weight: 400;
}

@media (min-width: 40rem) {
  .projects__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 60rem) {
  .projects__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Before & after */
.ba { border-top: var(--rule-hair) solid var(--color-rule-2); padding-top: var(--space-2xl); }

.ba__pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-lg);
  align-items: center;
}

.ba__pair figure { margin: 0; }

.ba__pair img {
  width: 100%;
  border: var(--rule-hair) solid var(--color-rule-2);
  border-radius: var(--radius-md);
}

.ba__pair figcaption {
  padding-top: var(--space-xs);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-neutral);
}

.ba__arrow {
  display: none;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-accent);
  text-align: center;
}

@media (min-width: 40rem) {
  .ba__pair { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .ba__arrow { display: block; }
}

/* =========================================================
   Why choose — spec-sheet rows
   ========================================================= */

.why__list {
  margin: 0;
  border-top: var(--rule-hair) solid var(--color-rule-2);
}

.why__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-2xs) var(--space-2xl);
  padding-block: var(--space-lg);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}

.why__row dt {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 600;
}

.why__row dd {
  margin: 0;
  color: var(--color-neutral);
  max-width: 55ch;
}

@media (min-width: 40rem) {
  .why__row { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
}

/* =========================================================
   Contact — form + phone aside
   ========================================================= */

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-2xl);
  align-items: start;
}

@media (min-width: 60rem) {
  .contact__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
}

.contact__aside {
  border: var(--rule-hair) solid var(--color-rule-2);
  border-radius: var(--radius-md);
  background: var(--color-paper);
  padding: var(--space-xl) var(--space-lg);
}

.contact__aside h3 { margin-bottom: var(--space-xs); }

.contact__phone-link {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(var(--text-md), 5.5vw, var(--text-xl));
  font-weight: 600;
  color: var(--color-ink);
  text-decoration: none;
  margin-block: var(--space-xs) var(--space-md);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.contact__phone-link:hover { color: var(--color-accent); }

/* Form */
.form__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0 var(--space-lg);
}

@media (min-width: 40rem) {
  .form__row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.field { margin-bottom: var(--space-lg); }

.field label,
.field .field__legend {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-2xs);
}

.field__optional {
  font-weight: 400;
  color: var(--color-muted);
}

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: var(--space-sm) var(--space-md);
  border: var(--rule-hair) solid var(--color-rule-2);
  border-radius: var(--radius-sm);
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  outline: 2px solid transparent;
  outline-offset: 1px;
  transition: background-color var(--dur-micro) var(--ease-out);
}

.field input:hover,
.field select:hover,
.field textarea:hover { background: var(--color-paper-2); }

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 1px;
  border-radius: var(--radius-xs);
}

.field textarea { resize: vertical; min-height: 8rem; }

.field input::placeholder,
.field textarea::placeholder { color: var(--color-muted); }

.field input:disabled,
.field select:disabled,
.field textarea:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.field input:user-invalid,
.field textarea:user-invalid {
  border-color: var(--color-error);
}

.field__hint {
  min-height: 1lh;
  margin: var(--space-2xs) 0 0;
  font-size: var(--text-sm);
  color: var(--color-muted);
}

/* Radio / checkbox group */
.field fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-lg);
}

.choice {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  min-height: 44px;
  font-weight: 400;
  cursor: pointer;
}

.choice input {
  width: 18px;
  height: 18px;
  accent-color: var(--color-accent);
}

/* File upload — the label is the styled surface */
.field input[type="file"] {
  width: 100%;
  padding: var(--space-sm);
  border: var(--rule-hair) dashed var(--color-rule-2);
  border-radius: var(--radius-sm);
  background: var(--color-paper);
  color: var(--color-neutral);
  font-size: var(--text-sm);
}

.form__submit { margin-top: var(--space-xs); }

/* Honeypot — moved off-screen, never display:none (bots check that) */
.hp-field {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Post-submit status message (shown by script.js from ?sent / ?error) */
.form-status {
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-lg);
  border-radius: var(--radius-sm);
  border: var(--rule-hair) solid var(--color-rule-2);
  background: var(--color-paper);
  font-weight: 600;
}

.form-status--ok { border-color: var(--color-accent); color: var(--color-ink); }

.form-status--error { border-color: var(--color-error); color: var(--color-error); }

/* =========================================================
   Service area
   ========================================================= */

.area { border-top: var(--rule-hair) solid var(--color-rule-2); }

.area p { max-width: 60ch; color: var(--color-neutral); }

.area .area__lead {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-ink);
  max-width: 30ch;
}

/* =========================================================
   Final CTA — ink band
   ========================================================= */

.final {
  padding-block: var(--space-3xl);
  text-align: center;
}

.final h2 { max-width: 18ch; margin-inline: auto; margin-bottom: var(--space-sm); }

.final p { max-width: 40ch; margin-inline: auto; }

.final__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

/* =========================================================
   Footer — Ft1 mast-headed
   ========================================================= */

.foot {
  border-top: var(--rule-hair) solid var(--color-rule-2);
  padding-block: var(--space-2xl) var(--space-xl);
}

.foot__wordmark {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-2xs);
}

.foot__tagline { color: var(--color-neutral); margin-bottom: var(--space-lg); }

.foot__band {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: var(--rule-hair) solid var(--color-rule);
}

.foot__block h3 {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-neutral);
  margin-bottom: var(--space-sm);
}

.foot__block p { margin-bottom: var(--space-2xs); }

.foot__nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.foot__nav li { margin-bottom: var(--space-2xs); }

.foot__nav a {
  color: var(--color-ink);
  text-decoration: none;
  white-space: nowrap;
}

.foot__nav a:hover { color: var(--color-accent); }

.foot__legal {
  margin-top: var(--space-2xl);
  padding-top: var(--space-md);
  border-top: var(--rule-hair) solid var(--color-rule);
  color: var(--color-muted);
  font-size: var(--text-sm);
}

.foot__credit {
  color: var(--color-muted);
  text-decoration-color: var(--color-rule-2);
  white-space: nowrap;
}

.foot__credit:hover { color: var(--color-accent); }

@media (min-width: 40rem) {
  .foot__band { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* =========================================================
   Sticky mobile CTA — C4, revealed after the hero
   ========================================================= */

.cta-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-sticky);
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  padding-bottom: max(var(--space-sm), env(safe-area-inset-bottom));
  background: var(--color-paper);
  border-top: var(--rule-hair) solid var(--color-rule-2);
  transform: translateY(110%);
  transition: transform var(--dur-short) var(--ease-out);
}

.cta-sticky.is-visible { transform: translateY(0); }

.cta-sticky .btn { flex: 1; min-height: 48px; }

@media (max-width: 59.99rem) {
  /* Keep the footer's last lines reachable above the sticky bar */
  .foot { padding-bottom: var(--space-4xl); }
}

@media (min-width: 60rem) {
  .cta-sticky { display: none; }
}

/* =========================================================
   Reduced motion
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 150ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 150ms !important;
  }
}
