/* ============================================================
   Captain Rooter Emergency Plumbers — Chicago
   Composition: warm earth editorial · diagonal split ·
   kinetic hero · expandable index · animated noise field
   ============================================================ */

:root {
  --bg:        #f5efe4;
  --bg-deep:   #ece3d3;
  --paper:     #fbf7ef;
  --ink:       #2b1e14;
  --ink-soft:  #5b4a3c;
  --ink-faint: #8a7866;
  --accent:    #c25a37;
  --accent-dk: #9d4527;
  --secondary: #6a7a4a;
  --line:      rgba(43, 30, 20, 0.16);
  --line-soft: rgba(43, 30, 20, 0.09);

  --serif: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --sans:  "DM Sans", "Inter", system-ui, -apple-system, sans-serif;

  --pad-x: clamp(1.25rem, 5vw, 4.5rem);
  --maxw: 1180px;
  --radius: 3px;
}

/* ---------- dark mode ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #17120d;
    --bg-deep:   #100c08;
    --paper:     #1f1811;
    --ink:       #f2e8da;
    --ink-soft:  #c4b5a3;
    --ink-faint: #94826f;
    --accent:    #e07a52;
    --accent-dk: #c25a37;
    --secondary: #9aab74;
    --line:      rgba(242, 232, 218, 0.18);
    --line-soft: rgba(242, 232, 218, 0.10);
  }
}

html[data-theme="light"] {
  --bg: #f5efe4; --bg-deep: #ece3d3; --paper: #fbf7ef;
  --ink: #2b1e14; --ink-soft: #5b4a3c; --ink-faint: #8a7866;
  --accent: #c25a37; --accent-dk: #9d4527; --secondary: #6a7a4a;
  --line: rgba(43,30,20,0.16); --line-soft: rgba(43,30,20,0.09);
}
html[data-theme="dark"] {
  --bg: #17120d; --bg-deep: #100c08; --paper: #1f1811;
  --ink: #f2e8da; --ink-soft: #c4b5a3; --ink-faint: #94826f;
  --accent: #e07a52; --accent-dk: #c25a37; --secondary: #9aab74;
  --line: rgba(242,232,218,0.18); --line-soft: rgba(242,232,218,0.10);
}

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

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

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
  position: relative;
}

/* ---------- animated noise field ---------- */
body::before {
  content: "";
  position: fixed;
  inset: -10%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.34;
  filter: url(#grain);
  background: var(--bg-deep);
  mix-blend-mode: multiply;
}
@media (prefers-color-scheme: dark) {
  body::before { mix-blend-mode: screen; opacity: 0.16; }
}
html[data-theme="dark"] body::before { mix-blend-mode: screen; opacity: 0.16; }
html[data-theme="light"] body::before { mix-blend-mode: multiply; opacity: 0.34; }

.noise-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* keep real content above the grain */
.topbar, main, .site-footer { position: relative; z-index: 1; }

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

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-dk); }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ============================================================
   TYPE
   ============================================================ */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.3rem, 6.2vw, 4.6rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.15rem, 1.9vw, 1.4rem); }

p { margin: 0 0 1.1em; max-width: 68ch; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}
.eyebrow--light { color: #e8a184; }

.lede { font-size: 1.15rem; color: var(--ink-soft); }

/* ============================================================
   TOP BAR
   ============================================================ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.7rem var(--pad-x);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

.brand {
  display: flex; align-items: center; gap: 0.7rem;
  text-decoration: none; color: var(--ink);
  margin-right: auto;
}
.brand-mark {
  display: grid; place-items: center;
  width: 40px; height: 40px; flex: none;
  background: var(--ink); color: var(--bg);
  font-family: var(--serif); font-weight: 700; font-size: 0.95rem;
  letter-spacing: 0.02em;
  border-radius: 50%;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; }
.brand-text em {
  font-style: normal; font-size: 0.68rem; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--ink-faint);
}

.topnav { display: flex; gap: 1.4rem; }
.topnav a {
  color: var(--ink-soft); text-decoration: none;
  font-size: 0.9rem; font-weight: 500;
  padding: 0.6rem 0;
}
.topnav a:hover { color: var(--accent); }

.theme-toggle {
  min-height: 44px;
  padding: 0.5rem 0.9rem;
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }

.call-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 44px;
  padding: 0.55rem 1.05rem;
  background: var(--accent); color: #fff;
  font-weight: 600; font-size: 0.92rem;
  text-decoration: none; border-radius: 999px;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
}
.call-btn:hover { background: var(--accent-dk); color: #fff; transform: translateY(-1px); }
.call-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 0 rgba(255,255,255,0.7);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,255,255,0.65); }
  70%  { box-shadow: 0 0 0 9px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

@media (max-width: 860px) {
  .topnav { display: none; }
}
@media (max-width: 520px) {
  .brand-text em { display: none; }
  .call-btn { font-size: 0.85rem; padding: 0.5rem 0.85rem; }
}

/* ============================================================
   HERO — diagonal split
   ============================================================ */

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: min(88vh, 780px);
  position: relative;
}

.hero-pane {
  padding: clamp(2.5rem, 6vw, 5rem) var(--pad-x);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-pane--paper {
  background: var(--paper);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 88%);
  padding-bottom: clamp(4rem, 9vw, 7rem);
}
.hero-pane--ink {
  background: var(--ink);
  color: var(--bg);
  clip-path: polygon(0 12%, 100% 0, 100% 100%, 0 100%);
  padding-top: clamp(4rem, 9vw, 7rem);
  margin-left: -6%;
  padding-left: calc(var(--pad-x) + 6%);
}

.hero-inner { max-width: 34rem; }

.hero h1 {
  font-variation-settings: "wght" 300, "opsz" 100;
  animation: weigh linear both;
  animation-timeline: scroll(root);
  animation-range: 0 40vh;
}
@keyframes weigh {
  from { font-variation-settings: "wght" 220, "opsz" 40; }
  to   { font-variation-settings: "wght" 800, "opsz" 144; }
}

.hero-actions {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  margin: 1.8rem 0 2.2rem;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.5rem;
  font-family: var(--sans); font-size: 0.95rem; font-weight: 600;
  text-decoration: none; border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-dk); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--wide { width: 100%; }
.btn--big { font-size: 1.35rem; padding: 1.05rem 2rem; font-family: var(--serif); }

.hero-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  margin: 0; padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.hero-stats dt {
  font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 0.25rem;
}
.hero-stats dd {
  margin: 0; font-family: var(--serif); font-size: 0.98rem; font-weight: 600;
  line-height: 1.3;
}

.hero-figure { margin: 0 0 1.6rem; }
.hero-figure img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius);
  filter: saturate(0.92) contrast(1.03);
}
.hero-figure figcaption {
  margin-top: 0.7rem; font-size: 0.78rem; color: rgba(245,239,228,0.62);
  letter-spacing: 0.02em;
}
.hero-note {
  font-family: var(--serif); font-size: 1.05rem; font-style: italic;
  color: rgba(245,239,228,0.85);
  border-left: 2px solid var(--accent);
  padding-left: 1rem; margin: 0;
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-pane--paper {
    clip-path: polygon(0 0, 100% 0, 100% 94%, 0 100%);
    padding-bottom: 4.5rem;
  }
  .hero-pane--ink {
    clip-path: polygon(0 6%, 100% 0, 100% 100%, 0 100%);
    margin-left: 0;
    padding-left: var(--pad-x);
    padding-top: 4.5rem;
  }
  .hero-stats { grid-template-columns: 1fr; gap: 0.9rem; }
}

/* ============================================================
   EMERGENCY STRIP
   ============================================================ */

.strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem var(--pad-x);
  background: var(--secondary);
  color: #f7f4ec;
}
.strip-line { margin: 0; font-size: 0.98rem; max-width: 60ch; }
.strip-line strong { font-weight: 700; }
.strip-link {
  color: #f7f4ec; font-weight: 700; text-decoration: none;
  font-family: var(--serif); font-size: 1.05rem;
  white-space: nowrap;
  border-bottom: 1px solid rgba(247,244,236,0.5);
  padding-bottom: 2px;
}
.strip-link:hover { color: #fff; border-color: #fff; }

/* ============================================================
   SECTION SHELL
   ============================================================ */

.section-head {
  max-width: var(--maxw);
  margin: 0 auto 2.6rem;
}
.section-sub { color: var(--ink-soft); max-width: 62ch; }

/* ============================================================
   EXPANDABLE INDEX
   ============================================================ */

.index-block {
  padding: clamp(3.5rem, 8vw, 6.5rem) var(--pad-x);
}
.index-block--faq { background: var(--bg-deep); }

.index-list {
  max-width: var(--maxw);
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.entry {
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.entry summary {
  display: grid;
  grid-template-columns: 3.2rem 1fr auto;
  align-items: baseline;
  gap: 1rem;
  padding: 1.35rem 0.25rem;
  cursor: pointer;
  list-style: none;
  min-height: 44px;
  transition: color 0.2s ease, padding-left 0.25s ease;
}
.entry summary::-webkit-details-marker { display: none; }
.entry summary::marker { content: ""; }
.entry summary:hover { color: var(--accent); padding-left: 0.6rem; }

.entry-num {
  font-family: var(--sans); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.14em; color: var(--ink-faint);
}
.entry-title {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.3vw, 1.75rem);
  font-weight: 500; line-height: 1.2;
}
.entry-tag {
  font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-faint); white-space: nowrap;
}
.entry[open] .entry-title { font-variation-settings: "wght" 700; }
.entry[open] .entry-num { color: var(--accent); }

.entry-body {
  padding: 0 0.25rem 2rem 4.2rem;
  max-width: 62ch;
  animation: reveal 0.35s ease both;
}
@keyframes reveal {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

.entry-list {
  list-style: none; padding: 0; margin: 1.1rem 0;
  display: grid; gap: 0.5rem;
}
.entry-list li {
  position: relative; padding-left: 1.4rem;
  font-size: 0.97rem; color: var(--ink-soft);
}
.entry-list li::before {
  content: ""; position: absolute; left: 0; top: 0.72em;
  width: 8px; height: 1px; background: var(--accent);
}
.entry-foot {
  font-size: 0.92rem; color: var(--ink-faint);
  border-left: 2px solid var(--secondary);
  padding-left: 0.9rem;
}

@media (max-width: 640px) {
  .entry summary { grid-template-columns: 2.2rem 1fr; gap: 0.6rem; }
  .entry-tag { grid-column: 2; font-size: 0.68rem; }
  .entry-body { padding-left: 2.8rem; }
}

/* ============================================================
   ABOUT — mirrored diagonal split
   ============================================================ */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}
.split-pane { padding: clamp(3rem, 7vw, 5.5rem) var(--pad-x); }
.split-pane--ink {
  background: var(--ink); color: var(--bg);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 92%);
  padding-bottom: clamp(4rem, 9vw, 7rem);
  display: flex; align-items: center;
}
.split-pane--paper {
  background: var(--paper);
  clip-path: polygon(0 8%, 100% 0, 100% 100%, 0 100%);
  padding-top: clamp(4rem, 9vw, 7rem);
  margin-left: -6%;
  padding-left: calc(var(--pad-x) + 6%);
}
.split-inner { max-width: 34rem; }
.split-figure { margin: 0; }
.split-figure img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: var(--radius);
  filter: saturate(0.9);
}
.split-figure figcaption {
  margin-top: 0.7rem; font-size: 0.78rem; color: rgba(245,239,228,0.6);
}

.cred-list {
  list-style: none; padding: 0; margin: 1.8rem 0 0;
  border-top: 1px solid var(--line);
}
.cred-list li {
  display: flex; gap: 1rem; justify-content: space-between;
  padding: 0.7rem 0; border-bottom: 1px solid var(--line-soft);
  font-size: 0.92rem;
}
.cred-list span {
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-faint); padding-top: 0.2rem;
}

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split-pane--ink {
    clip-path: polygon(0 0, 100% 0, 100% 94%, 0 100%);
    padding-bottom: 4.5rem;
  }
  .split-pane--paper {
    clip-path: polygon(0 5%, 100% 0, 100% 100%, 0 100%);
    margin-left: 0; padding-left: var(--pad-x);
    padding-top: 4.5rem;
  }
  .split-figure img { aspect-ratio: 16 / 10; }
}

/* ============================================================
   PROCESS
   ============================================================ */

.process { padding: clamp(3.5rem, 8vw, 6.5rem) var(--pad-x); }

.process-grid {
  list-style: none; padding: 0; margin: 0 auto;
  max-width: var(--maxw);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}
.process-grid li {
  padding: 1.8rem 1.6rem 1.8rem 0;
  border-bottom: 1px solid var(--line);
}
.process-grid li + li { border-left: 1px solid var(--line-soft); padding-left: 1.6rem; }
.step-num {
  display: block;
  font-family: var(--serif); font-size: 2.4rem; font-weight: 300;
  color: var(--accent); line-height: 1; margin-bottom: 0.7rem;
}
.process-grid h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.process-grid p { font-size: 0.94rem; color: var(--ink-soft); }

@media (max-width: 700px) {
  .process-grid li + li { border-left: 0; padding-left: 0; }
}

/* ============================================================
   VISIT / HOURS
   ============================================================ */

.visit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding: clamp(3.5rem, 8vw, 6.5rem) var(--pad-x);
  max-width: var(--maxw);
  margin: 0 auto;
}
.visit-col { min-width: 0; }

.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4rem 0 1.2rem;
}
.hours-table th, .hours-table td {
  text-align: left;
  padding: 0.62rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.96rem;
  font-weight: 400;
}
.hours-table th { color: var(--ink-soft); font-weight: 500; }
.hours-table td {
  text-align: right; font-family: var(--serif); font-weight: 600;
  color: var(--secondary);
}

.address {
  font-style: normal;
  font-size: 1.05rem;
  line-height: 1.8;
  margin: 1.2rem 0 1.4rem;
  padding-left: 1.1rem;
  border-left: 2px solid var(--accent);
}
.address strong { font-family: var(--serif); font-size: 1.15rem; }

.visit-note { font-size: 0.94rem; color: var(--ink-soft); }

.map-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

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

/* ============================================================
   SERVICE AREA
   ============================================================ */

.area {
  padding: clamp(3rem, 7vw, 5.5rem) var(--pad-x);
  background: var(--bg-deep);
}
.area h2, .area .eyebrow, .area-lede { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.area-lede { color: var(--ink-soft); margin-bottom: 2rem; }

.area-list {
  list-style: none; padding: 0;
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 0.55rem;
}
.area-list li {
  font-size: 0.88rem;
  padding: 0.42rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--paper) 60%, transparent);
}

/* ============================================================
   REVIEWS
   ============================================================ */

.reviews { padding: clamp(3.5rem, 8vw, 6.5rem) var(--pad-x); }

.review-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.6rem;
}
.review {
  margin: 0;
  padding: 1.6rem 1.5rem;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  display: flex; flex-direction: column;
}
.review p {
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--ink);
  flex: 1;
}
.review footer {
  margin-top: 1rem; padding-top: 0.9rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.82rem; color: var(--ink-faint);
}
.review cite { font-style: normal; font-weight: 600; color: var(--ink-soft); }

/* ============================================================
   CLOSING
   ============================================================ */

.closing {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: stretch;
}
.closing-pane { padding: clamp(3rem, 7vw, 5.5rem) var(--pad-x); }
.closing-pane--ink {
  background: var(--ink); color: var(--bg);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 90%);
  padding-bottom: clamp(4rem, 9vw, 7rem);
  display: flex; flex-direction: column; justify-content: center;
}
.closing-pane--ink h2 { color: var(--bg); max-width: 22ch; }
.closing-pane--ink p { color: rgba(245,239,228,0.82); max-width: 46ch; }
.closing-pane--paper {
  background: var(--paper);
  clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 100%);
  padding-top: clamp(4rem, 9vw, 7rem);
  margin-left: -5%;
  padding-left: calc(var(--pad-x) + 5%);
  display: flex; align-items: center;
}
.closing-small {
  margin-top: 1.4rem;
  font-size: 0.8rem;
  color: rgba(245,239,228,0.55) !important;
  letter-spacing: 0.02em;
}
.closing-figure { margin: 0; }
.closing-figure img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius);
  filter: saturate(0.88);
}
.closing-figure figcaption {
  margin-top: 0.7rem; font-size: 0.78rem; color: var(--ink-faint);
}

@media (max-width: 900px) {
  .closing { grid-template-columns: 1fr; }
  .closing-pane--ink {
    clip-path: polygon(0 0, 100% 0, 100% 94%, 0 100%);
    padding-bottom: 4.5rem;
  }
  .closing-pane--paper {
    clip-path: polygon(0 5%, 100% 0, 100% 100%, 0 100%);
    margin-left: 0; padding-left: var(--pad-x);
    padding-top: 4.5rem;
  }
  .closing-figure img { aspect-ratio: 16 / 10; }
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  padding: 2.6rem var(--pad-x) 1.4rem;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-col p { margin: 0 0 0.35rem; font-size: 0.9rem; color: var(--ink-soft); }
.footer-col--right { text-align: right; }
.footer-brand {
  font-family: var(--serif); font-size: 1.1rem; font-weight: 600;
  color: var(--ink) !important;
}
.footer-col a { color: var(--accent); text-decoration: none; font-weight: 600; }
.footer-col a:hover { text-decoration: underline; }

.footer-claim {
  max-width: var(--maxw);
  margin: 2rem auto 0;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line-soft);
}
.claim-banner {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--paper) 70%, transparent);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.claim-banner:hover { color: var(--accent); border-color: var(--accent); }

.attribution {
  max-width: var(--maxw);
  margin: 1rem auto 0;
  font-size: 0.72rem;
  opacity: 0.55;
}
.attribution a { color: inherit; text-decoration: none; }
.attribution a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .footer-col--right { text-align: left; }
}

/* ============================================================
   MOTION FALLBACKS
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero h1 { font-variation-settings: "wght" 600, "opsz" 100; animation: none; }
  body::before { opacity: 0.22; }
}

@supports not (animation-timeline: scroll()) {
  .hero h1 { font-variation-settings: "wght" 600, "opsz" 100; }
}
