/* ============================================================
   INFINITY POOLS — Mountain West Pool Construction
   Design system: "Alpine Engineering Luxury"
   Limestone paper · glacial teal ink · copper accent
   Instrument Serif / Archivo / IBM Plex Mono
   ============================================================ */

:root {
  --paper: #f4f1ea;
  --paper-2: #ece7db;
  --paper-3: #e3dccd;
  --ink: #0c2430;
  --ink-2: #14384a;
  --ink-3: #1d4a5e;
  --water: #1b6e80;
  --water-bright: #2e93a6;
  --glacier: #a8d8dc;
  --copper: #c2703e;
  --copper-deep: #a25a2e;
  --line: rgba(12, 36, 48, 0.16);
  --line-soft: rgba(12, 36, 48, 0.09);
  --line-inverse: rgba(244, 241, 234, 0.18);
  --text-soft: rgba(12, 36, 48, 0.72);
  --text-faint: rgba(12, 36, 48, 0.52);
  --text-inverse: #f4f1ea;
  --text-inverse-soft: rgba(244, 241, 234, 0.74);
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "SF Mono", Menlo, monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-card: 0 1px 2px rgba(12, 36, 48, 0.06), 0 12px 32px -12px rgba(12, 36, 48, 0.18);
  --shadow-lift: 0 2px 4px rgba(12, 36, 48, 0.08), 0 24px 48px -16px rgba(12, 36, 48, 0.28);
}

/* ---------- Reset & base ---------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* grain overlay for tactile paper feel */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.05'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4 { margin: 0; font-weight: 400; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

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

::selection { background: var(--glacier); color: var(--ink); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  background: var(--ink);
  color: var(--text-inverse);
  padding: 0.75rem 1.25rem;
  font-family: var(--mono);
  font-size: 0.8rem;
}
.skip-link:focus { left: 0; }

.wrap {
  width: min(1180px, 100% - 3rem);
  margin-inline: auto;
}

/* ---------- Typography utilities ---------- */

.display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.01em;
}

.display em {
  font-style: italic;
  color: var(--water);
}

.dark .display em, .hero .display em { color: var(--glacier); }

.kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.4rem;
}

.kicker::before {
  content: "";
  width: 2.4rem;
  height: 1px;
  background: var(--copper);
  flex: none;
}

.lede {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--text-soft);
  max-width: 42rem;
}

.dark .lede { color: var(--text-inverse-soft); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 241, 234, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.85rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
}

.brand-logo {
  display: block;
  width: auto;
  height: 48px;
  max-width: 220px;
  object-fit: contain;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: 0.01em;
  line-height: 1;
}

.brand-name small {
  display: block;
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 0.3rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-soft);
  transition: color 0.2s;
}

.site-nav a:hover { color: var(--ink); }

.nav-phone {
  font-family: var(--mono);
  font-size: 0.82rem !important;
  color: var(--ink) !important;
}

@media (max-width: 860px) {
  .site-nav a:not(.btn):not(.nav-phone) { display: none; }
}

@media (max-width: 480px) {
  .site-header .btn {
    padding: 0.65rem 1.05rem;
    font-size: 0.8rem;
  }
  .site-header .wrap { gap: 0.8rem; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  gap: 0.6rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background 0.2s;
}

.btn svg { transition: transform 0.25s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: var(--copper);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(194, 112, 62, 0.55);
}
.btn-primary:hover {
  background: var(--copper-deep);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -10px rgba(194, 112, 62, 0.6);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover { background: rgba(12, 36, 48, 0.05); transform: translateY(-2px); }

.dark .btn-ghost, .hero .btn-ghost {
  border-color: var(--line-inverse);
  color: var(--text-inverse);
}
.dark .btn-ghost:hover, .hero .btn-ghost:hover { background: rgba(244, 241, 234, 0.08); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background:
    radial-gradient(120% 90% at 80% 110%, rgba(46, 147, 166, 0.34), transparent 60%),
    radial-gradient(90% 70% at 10% -10%, rgba(29, 74, 94, 0.65), transparent 55%),
    linear-gradient(170deg, #0c2430 0%, #10303f 55%, #0c2430 100%);
  color: var(--text-inverse);
  overflow: hidden;
}

.hero-contours {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.4;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  padding-block: clamp(5rem, 11vw, 9.5rem) clamp(4rem, 8vw, 7rem);
}

.hero h1 {
  font-size: clamp(2.7rem, 6.4vw, 5.1rem);
  max-width: 18ch;
  margin-bottom: 1.6rem;
}

.hero .lede {
  color: var(--text-inverse-soft);
  margin-bottom: 2.4rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.hero-elev {
  position: absolute;
  right: 0;
  top: clamp(5rem, 11vw, 9.5rem);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: rgba(244, 241, 234, 0.45);
  text-transform: uppercase;
  writing-mode: vertical-rl;
  display: flex;
  gap: 2rem;
}

@media (max-width: 1240px) { .hero-elev { display: none; } }

/* proof bar */
.proof-bar {
  border-top: 1px solid var(--line-inverse);
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: 2.2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

@media (max-width: 760px) { .proof-bar { grid-template-columns: repeat(2, 1fr); } }

.proof-item .num {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  line-height: 1;
  color: var(--glacier);
}

.proof-item .num sup {
  font-size: 0.5em;
  color: var(--copper);
  font-family: var(--mono);
}

.proof-item .label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.55);
  margin-top: 0.6rem;
  line-height: 1.5;
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(4.5rem, 9vw, 7.5rem); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2rem 4rem;
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

.section-head h2 {
  font-size: clamp(2rem, 4.4vw, 3.3rem);
}

.dark {
  background:
    radial-gradient(100% 80% at 90% 0%, rgba(46, 147, 166, 0.22), transparent 55%),
    linear-gradient(175deg, #0c2430, #102e3c);
  color: var(--text-inverse);
}

.tinted { background: var(--paper-2); }

/* ---------- Vertical / market cards ---------- */

.vertical-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 980px) { .vertical-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .vertical-grid { grid-template-columns: 1fr; } }

.vertical-card {
  position: relative;
  background: #fbf9f4;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 2rem 1.8rem 1.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
  overflow: hidden;
}

.vertical-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lift);
}

.vertical-card::before {
  content: attr(data-index);
  position: absolute;
  top: 1.4rem;
  right: 1.6rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--text-faint);
}

.vertical-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(140deg, var(--ink-2), var(--water));
  display: grid;
  place-items: center;
  color: var(--glacier);
}

.vertical-card h3 {
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.15;
}

.vertical-card p {
  font-size: 0.93rem;
  color: var(--text-soft);
  line-height: 1.6;
}

.vertical-card .card-link {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--copper);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.5rem;
}

.vertical-card .card-link:hover { color: var(--copper-deep); }

/* ---------- Spec / altitude band (dark engineering section) ---------- */

.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-inverse);
  border: 1px solid var(--line-inverse);
  border-radius: 16px;
  overflow: hidden;
}

@media (max-width: 860px) { .spec-grid { grid-template-columns: 1fr; } }

.spec-cell {
  background: rgba(12, 36, 48, 0.82);
  padding: 2.2rem 2rem;
}

.spec-cell .spec-num {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--copper);
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  display: block;
}

.spec-cell .spec-stat {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  line-height: 1;
  color: var(--glacier);
  margin-bottom: 0.9rem;
}

.spec-cell h3 {
  font-size: 1.02rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  letter-spacing: 0.01em;
}

.spec-cell p {
  font-size: 0.92rem;
  color: var(--text-inverse-soft);
  line-height: 1.65;
}

/* ---------- Process timeline ---------- */

.process {
  counter-reset: step;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.process-step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 5rem minmax(0, 0.85fr) minmax(0, 1.3fr);
  gap: 1.5rem 2.5rem;
  padding-block: 2rem;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

@media (max-width: 860px) {
  .process-step { grid-template-columns: 3.4rem 1fr; }
  .process-step p { grid-column: 2; }
}

.process-step::before {
  content: "0" counter(step);
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--copper);
}

.process-step h3 {
  font-family: var(--serif);
  font-size: 1.6rem;
}

.process-step p {
  font-size: 0.95rem;
  color: var(--text-soft);
  margin: 0;
}

/* ---------- Case studies ---------- */

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 980px) { .case-grid { grid-template-columns: 1fr; } }

.case-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.8rem;
  color: var(--text-inverse);
  text-decoration: none;
  isolation: isolate;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
  box-shadow: var(--shadow-card);
}

.case-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }

.case-card .case-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.case-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(12,36,48,0) 30%, rgba(12,36,48,0.88) 100%);
}

.case-card .case-tag {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--glacier);
  margin-bottom: 0.7rem;
}

.case-card h3 {
  font-family: var(--serif);
  font-size: 1.7rem;
  margin-bottom: 0.5rem;
}

.case-card p {
  font-size: 0.88rem;
  color: var(--text-inverse-soft);
  margin: 0;
}

/* ---------- Two-column editorial ---------- */

.editorial {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem 5rem;
  align-items: start;
}

@media (max-width: 860px) { .editorial { grid-template-columns: 1fr; } }

.editorial h2 { font-size: clamp(2rem, 4vw, 3rem); }

.editorial .sticky-col { position: sticky; top: 6rem; }

@media (max-width: 860px) { .editorial .sticky-col { position: static; } }

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.checklist li {
  padding: 1.3rem 0 1.3rem 2.4rem;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
  font-size: 0.97rem;
  color: var(--text-soft);
}

.checklist li strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.75rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--copper) 0 4px, transparent 4px),
    radial-gradient(circle at center, rgba(194,112,62,0.25) 0 7px, transparent 7px);
}

/* ---------- States / service area ---------- */

.state-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.1rem;
}

@media (max-width: 1080px) { .state-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .state-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .state-grid { grid-template-columns: 1fr; } }

.state-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.7rem 1.5rem;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: #fbf9f4;
  text-decoration: none;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s;
}

.state-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(194, 112, 62, 0.4);
}

.state-card .abbr {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--copper);
}

.state-card h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
}

.state-card p {
  font-size: 0.82rem;
  color: var(--text-faint);
  margin: 0;
  line-height: 1.5;
}

.state-card[aria-current="page"] {
  background: var(--ink);
  color: var(--text-inverse);
  border-color: var(--ink);
}
.state-card[aria-current="page"] p { color: var(--text-inverse-soft); }

/* ---------- Cities strip ---------- */

.city-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.city-chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text-soft);
  text-decoration: none;
  transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}

.city-chip[href]:hover {
  color: var(--ink);
  border-color: var(--accent);
  background: rgba(27, 110, 128, 0.08);
}

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

.faq-list {
  border-top: 1px solid var(--line);
  max-width: 56rem;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 1.5rem 0;
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.3;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 1.2rem;
  color: var(--copper);
  flex: none;
  transition: transform 0.3s var(--ease-out);
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item .faq-body {
  padding: 0 0 1.6rem;
  max-width: 48rem;
  color: var(--text-soft);
  font-size: 0.97rem;
}

/* ---------- CTA panel ---------- */

.cta-panel {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(110% 130% at 85% 110%, rgba(46, 147, 166, 0.45), transparent 60%),
    radial-gradient(80% 90% at 0% 0%, rgba(29, 74, 94, 0.7), transparent 60%),
    linear-gradient(160deg, #0c2430, #123544);
  color: var(--text-inverse);
  padding: clamp(2.8rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 860px) { .cta-panel { grid-template-columns: 1fr; } }

.cta-panel h2 {
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  margin-bottom: 1rem;
}

.cta-panel p { color: var(--text-inverse-soft); max-width: 38rem; }

.cta-panel .cta-contact {
  display: grid;
  gap: 1.2rem;
  justify-items: start;
}

.cta-contact .contact-line {
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--text-inverse-soft);
}

.cta-contact .contact-line a {
  color: var(--glacier);
  text-decoration: none;
}
.cta-contact .contact-line a:hover { text-decoration: underline; }

.cta-contact .contact-line strong {
  display: block;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.5);
  margin-bottom: 0.35rem;
  font-weight: 500;
}

/* ---------- Breadcrumbs ---------- */

.breadcrumbs {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgba(244, 241, 234, 0.55);
  margin-bottom: 2.2rem;
}

.breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 0.6rem;
  opacity: 0.5;
}

.breadcrumbs a { color: inherit; text-decoration: none; }
.breadcrumbs a:hover { color: var(--glacier); }
.breadcrumbs [aria-current="page"] { color: var(--glacier); }

/* ---------- Prose (long-form SEO copy) ---------- */

.prose {
  max-width: 46rem;
  color: var(--text-soft);
}

.prose h3 {
  font-family: var(--serif);
  font-size: 1.55rem;
  color: var(--ink);
  margin: 2.2rem 0 0.8rem;
}

.prose a { color: var(--water); text-underline-offset: 3px; }
.prose a:hover { color: var(--ink-3); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--text-inverse);
  padding-block: clamp(3.5rem, 7vw, 5.5rem) 2rem;
  position: relative;
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line-inverse);
}

@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-grid h4 {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.5);
  margin-bottom: 1.1rem;
  font-weight: 500;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.footer-grid a {
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--text-inverse-soft);
  transition: color 0.2s;
}

.footer-grid a:hover { color: var(--glacier); }

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-inverse-soft);
  max-width: 26rem;
  margin-top: 1rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.8rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: rgba(244, 241, 234, 0.45);
}

/* ---------- Reveal animation ---------- */

/* hidden only when JS is running (html.js) — no-JS users and crawlers
   always see content */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: var(--d, 0s);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .vertical-card, .state-card, .case-card { transition: none; }
}

/* hero load-in (no-JS safe: animation, not initial-hidden via JS) */
@media (prefers-reduced-motion: no-preference) {
  .hero-inner > * {
    animation: heroIn 1s var(--ease-out) both;
  }
  .hero-inner > *:nth-child(2) { animation-delay: 0.08s; }
  .hero-inner > *:nth-child(3) { animation-delay: 0.16s; }
  .hero-inner > *:nth-child(4) { animation-delay: 0.24s; }
  .hero-inner > *:nth-child(5) { animation-delay: 0.32s; }
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}
