/* Good Mornin’ Junk Removal - single stylesheet. Palette and type: see BRAND.md (Phase 5). */

/* ---------------------------------------------------------------- fonts */
@font-face { font-family: "Bricolage Grotesque"; src: url("/assets/fonts/bricolage-grotesque-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/assets/fonts/manrope-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/assets/fonts/manrope-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* --------------------------------------------------------------- tokens */
:root {
  --ink: #14202B;        /* Predawn */
  --ink-2: #1D2B38;
  --sun: #F28C38;        /* Sunup */
  --ember: #A9470F;      /* Ember: text-safe orange on light */
  --paper: #F7F2E8;      /* Daylight */
  --paper-2: #EEE6D6;    /* Oat */
  --white: #FFFDF8;
  --stone: #5E6266;      /* muted text on light */
  --mist: #BFC6CC;       /* muted text on dark */
  --line: rgba(20, 32, 43, .16);
  --line-strong: rgba(20, 32, 43, .55);
  --line-d: rgba(247, 242, 232, .18);
  --ok: #1E6B3A;
  --err: #B3261E;
  --display: "Bricolage Grotesque", "Arial Narrow", Arial, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --gutter: clamp(1.25rem, 4vw, 4.5rem);
  --maxw: 1520px;
  --header-h: 72px;
  --mbar-h: 62px;
  --focus: var(--ink);
}
@media (min-width: 1240px) { :root { --header-h: 92px; } }

/* ----------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
html.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.022em;
  margin: 0;
  text-wrap: balance;
}
:lang(es) h1, :lang(es) h2, :lang(es) h3 { hyphens: auto; -webkit-hyphens: auto; }
h2 { font-size: clamp(2rem, 1.2rem + 3vw, 3.75rem); }
h3 { font-size: clamp(1.25rem, 1.08rem + .6vw, 1.6rem); line-height: 1.12; letter-spacing: -.012em; }
ul, ol { margin: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.dark, .site-footer, .mbar, .strip { --focus: var(--sun); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: var(--paper); padding: .75rem 1rem; font-weight: 700;
}
.skip:focus { top: 1rem; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4rem, 8vw, 7.5rem); }
.section-tight { padding-block: clamp(2.5rem, 5vw, 4rem) clamp(4rem, 8vw, 7rem); }
.dark { background: var(--ink); color: var(--paper); }
.tint { background: var(--paper-2); }

/* ------------------------------------------------------------- type kit */
.eyebrow {
  display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .75rem;
  margin: 0 0 1.1rem;
  font: 700 .8125rem/1.3 var(--body);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ember);
}
.dark .eyebrow { color: var(--sun); }
.eyebrow .n { font-variant-numeric: tabular-nums; }
.eyebrow .rule { width: 2.25rem; height: 2px; background: currentColor; }
.sunmark {
  width: 1.4rem; height: .7rem; flex: none;
  background: var(--sun);
  border-radius: .7rem .7rem 0 0;
  box-shadow: 0 .3rem 0 -.1rem var(--ink);
}
.lede { font-size: clamp(1.08rem, 1rem + .35vw, 1.25rem); line-height: 1.6; max-width: 38em; }
.fine { font-size: .875rem; color: var(--stone); margin-top: 1rem; }
.dark .fine, .fine-d { color: var(--mist); }
.ph {
  display: inline-block;
  font: 700 .82em/1.4 var(--body);
  letter-spacing: .02em;
  color: var(--stone);
  border: 1px dashed currentColor;
  padding: .05em .5em;
}
.dark .ph, .site-footer .ph { color: var(--mist); }
.prose p { max-width: 40em; }
.prose p + p { margin-top: 1em; }
.dash { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.dash li { position: relative; padding: .55rem 0 .55rem 1.75rem; border-bottom: 1px solid var(--line); }
.dark .dash li { border-color: var(--line-d); }
.dash li::before { content: ""; position: absolute; left: 0; top: 1.25rem; width: 1rem; height: 2px; background: var(--sun); }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3.25rem; padding: .8rem 1.5rem;
  font: 700 1rem/1.2 var(--body); text-align: center; text-decoration: none;
  color: var(--ink); background: transparent;
  border: 2px solid var(--ink); border-radius: 0;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.btn-sun { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.btn-sun:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.dark .btn-sun:hover, .site-footer .btn-sun:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn[disabled], .btn[disabled]:hover { background: #D9D2C4; border-color: #D9D2C4; color: #4A4E52; cursor: not-allowed; }
.link-arrow {
  font-weight: 700; color: inherit;
  text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 2px; text-underline-offset: .35em;
  transition: text-decoration-color .25s ease;
}
.link-arrow:hover { text-decoration-color: currentColor; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2rem; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}
.hdr {
  height: 100%;
  max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem);
}
.brand { flex: none; display: block; }
.brand img { height: 34px; width: auto; }
@media (min-width: 600px) { .brand img { height: 40px; } }
.nav { margin-left: auto; }
.nav-list { list-style: none; padding: 0; display: flex; align-items: center; gap: clamp(1.25rem, 1.9vw, 2.25rem); }
.nav a {
  display: inline-flex; align-items: center; gap: .35rem;
  font: 700 1rem/1.2 var(--body); color: var(--ink); text-decoration: none;
  padding-block: .5rem;
  border-bottom: 2px solid transparent;
  transition: border-color .25s ease, color .25s ease;
}
.nav a:hover, .nav a[aria-current="page"], .nav a.is-current { border-bottom-color: var(--sun); }
.caret { flex: none; }
.has-sub { position: relative; }
.sub {
  list-style: none; margin: 0; padding: .75rem 0;
  position: absolute; top: 100%; left: -1.25rem; min-width: 16.5rem;
  background: var(--white); border: 2px solid var(--ink);
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility 0s linear .25s;
}
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transition: opacity .25s ease, visibility 0s; }
.sub a { display: flex; padding: .6rem 1.25rem; border: 0; }
.sub a:hover, .sub a[aria-current="page"] { background: var(--paper-2); }
.nav-book { display: none; }
.hdr-tools { display: flex; align-items: center; gap: clamp(.75rem, 1.5vw, 1.25rem); flex: none; }
.lang {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.75rem; min-height: 2.75rem;
  font: 700 .95rem/1 var(--body); letter-spacing: .06em; color: var(--ink); text-decoration: none;
  border: 2px solid var(--line-strong);
}
.lang:hover { border-color: var(--ink); }
.hdr-cta { min-height: 3rem; padding-inline: 1.25rem; }
.menu-btn {
  display: none; align-items: center; gap: .6rem;
  min-height: 2.75rem; padding: 0 .9rem;
  font: 700 1rem/1 var(--body); color: var(--ink); text-decoration: none;
  border: 2px solid var(--ink);
}
.menu-lines { position: relative; width: 18px; height: 2px; background: currentColor; }
.menu-lines::before, .menu-lines::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; }
.menu-lines::before { top: -6px; }
.menu-lines::after { top: 6px; }
.is-open .menu-lines { background: transparent; }
.is-open .menu-lines::before { top: 0; transform: rotate(45deg); }
.is-open .menu-lines::after { top: 0; transform: rotate(-45deg); }

@media (min-width: 1240px) {
  .brand img { height: 50px; }
}
@media (min-width: 1440px) {
  .nav a { font-size: 1.0625rem; }
}
@media (max-width: 1239.98px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .hdr-tools { margin-left: auto; }
  .site-header.is-open .nav {
    display: block;
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: var(--paper); overflow-y: auto;
    padding: 1.5rem var(--gutter) calc(var(--mbar-h) + 2.5rem + env(safe-area-inset-bottom));
  }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav a { font-family: var(--display); font-size: clamp(1.5rem, 1.2rem + 1.6vw, 2.1rem); letter-spacing: -.01em; padding-block: .85rem; border: 0; }
  .caret { display: none; }
  .sub { position: static; opacity: 1; visibility: visible; border: 0; background: none; padding: 0 0 1rem; min-width: 0; transition: none; }
  .sub a { font-family: var(--body); font-size: 1.0625rem; padding: .5rem 0 .5rem 1rem; border-left: 2px solid var(--sun); }
  .sub a:hover { background: none; }
  .nav-book { display: block; }
}
@media (max-width: 759.98px) {
  .hdr-cta { display: none; }
}
@media (max-width: 599.98px) {
  .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .menu-btn { padding: 0; width: 2.75rem; justify-content: center; }
}
@media (max-width: 379.98px) {
  .brand img { height: 29px; }
}

/* ------------------------------------------------------------------ hero */
.hero-wrap { display: flex; flex-direction: column; }
.hero {
  width: 100%; max-width: var(--maxw); margin-inline: auto;
  padding: clamp(1.75rem, 5vw, 2.5rem) var(--gutter) clamp(2rem, 6vw, 3rem);
  display: grid; gap: 2rem;
}
.hero-text { align-self: center; min-width: 0; }
.h-hero {
  font-size: clamp(2.5rem, min(4.7vw, 7.6vh), 5.75rem);
  line-height: .98; letter-spacing: -.035em;
  max-width: 13em;
  animation: hero-in .45s ease-out both;
}
.hero .lede { margin-top: 1.4rem; }
.hero .actions { margin-top: clamp(1.25rem, 3.5vh, 2.25rem); }
.hero-note { margin-top: 1rem; font-size: .9rem; color: var(--stone); max-width: 34em; }
.hero-media { position: relative; min-width: 0; background: var(--paper-2); }
.hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@keyframes hero-in { from { opacity: .2; } to { opacity: 1; } }

.strip {
  background: var(--ink); color: var(--paper);
  padding: 1.1rem var(--gutter);
  text-align: center;
}
.strip ul {
  list-style: none; padding: 0; margin: 0 auto; max-width: var(--maxw);
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: .6rem clamp(1.5rem, 3vw, 3rem);
}
.strip li {
  display: inline-flex; align-items: center; gap: .65rem;
  font: 700 .95rem/1.3 var(--body); letter-spacing: .01em;
}
.strip li::before {
  content: ""; flex: none; width: .9rem; height: .45rem;
  background: var(--sun); border-radius: .45rem .45rem 0 0;
}

@media (min-width: 900px) {
  .hero-wrap { height: calc(100svh - var(--header-h)); min-height: 30rem; }
  .hero {
    flex: 1 1 auto; min-height: 0;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 4.5rem);
    padding-block: clamp(1.25rem, 3.6vh, 2.75rem);
  }
  .hero-media { height: 100%; min-height: 0; }
  .hero-media img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
  .strip { flex: none; padding-block: clamp(.9rem, 2.2vh, 1.4rem); }
}
@media (min-width: 900px) and (max-height: 760px) {
  .hero .lede { font-size: 1.05rem; margin-top: 1rem; }
  .hero-note { display: none; }
}
@media (max-width: 899.98px) {
  .hero-media--portrait img { aspect-ratio: 4 / 4.2; }
}

/* ---------------------------------------------------------- page heads */
.page-head { padding-block: clamp(3rem, 7vw, 6rem) clamp(1.5rem, 3vw, 2.5rem); border-bottom: 1px solid var(--line); }
.h-page { font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4.75rem); line-height: 1; letter-spacing: -.03em; max-width: 16em; }
.page-head .lede { margin-top: 1.5rem; }
.h-small { font-size: 1.15rem; letter-spacing: -.01em; }

/* -------------------------------------------------------- section heads */
.sec-head { display: grid; gap: 1.25rem 4rem; align-items: end; margin-bottom: clamp(2.25rem, 5vw, 4rem); }
.sec-head h2 { max-width: 15em; }
.sec-lede { font-size: 1.0625rem; color: var(--stone); max-width: 32em; }
.dark .sec-lede { color: var(--mist); }
@media (min-width: 900px) {
  .sec-head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}

/* -------------------------------------------- split layouts (text / media) */
.split, .split-text, .split-form { display: grid; gap: clamp(2rem, 5vw, 5rem); }
.split-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.split-copy h2 { margin-bottom: 1.25rem; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
  .split-text { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .split-form { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .split-text > div:first-child, .form-intro { position: sticky; top: calc(var(--header-h) + 2rem); }
}

/* ------------------------------------------- services image accordion */
.acc { list-style: none; padding: 0; display: grid; gap: 1.25rem; }
.acc-panel {
  position: relative; display: flex; flex-direction: column; height: 100%;
  background: var(--ink); color: var(--paper); text-decoration: none; overflow: hidden;
}
.acc-img { display: block; }
.acc-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.acc-shade, .acc-num, .acc-tab { display: none; }
.acc-body { display: flex; flex-direction: column; gap: .6rem; padding: 1.5rem 1.5rem 1.75rem; }
.acc-title { font: 700 clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem)/1.05 var(--display); letter-spacing: -.02em; }
.acc-desc { color: var(--mist); max-width: 32em; }
.acc-more { font-weight: 700; text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 2px; text-underline-offset: .35em; margin-top: .35rem; }
@media (min-width: 600px) and (max-width: 899.98px) {
  .acc { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .acc { display: flex; gap: .75rem; height: clamp(28rem, 64vh, 38rem); }
  .acc > li { flex: 1 1 0; min-width: 0; transition: flex-grow .45s ease; }
  .acc > li.is-active { flex-grow: 4.2; }
  .acc-img { position: absolute; inset: 0; }
  .acc-img img { height: 100%; aspect-ratio: auto; }
  .acc-panel::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(to top, rgba(20, 32, 43, .94) 0%, rgba(20, 32, 43, .7) 38%, rgba(20, 32, 43, .12) 72%);
  }
  .acc-shade { display: block; position: absolute; inset: 0; z-index: 1; background: rgba(20, 32, 43, .66); transition: opacity .4s ease; }
  .acc-num {
    display: block; position: absolute; top: 1.5rem; left: 1.5rem; z-index: 2;
    font: 700 1rem/1 var(--body); color: var(--sun); font-variant-numeric: tabular-nums; letter-spacing: .08em;
  }
  .acc-tab {
    display: block; position: absolute; left: 1.5rem; bottom: 1.75rem; z-index: 2;
    writing-mode: vertical-rl; transform: rotate(180deg);
    font: 700 1.25rem/1 var(--display); letter-spacing: .01em; white-space: nowrap;
    transition: opacity .3s ease;
  }
  .acc-body {
    position: absolute; left: 0; bottom: 0; z-index: 2;
    width: min(36rem, 46vw); padding: 2.25rem;
    opacity: 0; transition: opacity .3s ease;
  }
  .acc-desc { color: #E2E6E9; }
  .is-active .acc-shade, .is-active .acc-tab { opacity: 0; }
  .is-active .acc-body { opacity: 1; transition-delay: .15s; }
}

/* ---------------------------------------------------- stages (giant words) */
.stages { list-style: none; padding: 0; border-top: 1px solid var(--line-d); }
.stage {
  display: grid; gap: .6rem;
  padding-block: clamp(1.5rem, 3vw, 2.6rem);
  border-bottom: 1px solid var(--line-d);
}
.stage-n { font: 700 1.05rem/1 var(--body); color: var(--sun); font-variant-numeric: tabular-nums; letter-spacing: .08em; }
.stage-w {
  font-size: clamp(2.4rem, 1rem + 5.2vw, 5.75rem);
  line-height: .92; letter-spacing: -.045em;
  transition: color .35s ease;
}
.stage p { color: var(--mist); font-size: .98rem; max-width: 30em; }
.stage:hover .stage-w { color: var(--sun); }
@media (min-width: 900px) {
  .stage { grid-template-columns: 4.5rem minmax(0, 1fr) minmax(0, 21rem); align-items: center; gap: 2.5rem; }
  .stage p { text-align: right; justify-self: end; }
}

/* --------------------------------------------------------- before/after */
.ba { display: grid; gap: 1rem; }
.ba figure { margin: 0; position: relative; }
.ba img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.ba figcaption {
  position: absolute; top: 1rem; left: 1rem;
  background: var(--paper); color: var(--ink);
  font: 700 .8125rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase;
  padding: .55rem .75rem;
}
.ba figure:last-child figcaption { background: var(--sun); }
@media (min-width: 900px) { .ba { grid-template-columns: 1fr 1fr; } }

/* ----------------------------------------------------------- even cards */
.cards { list-style: none; padding: 0; display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.cards > li { display: flex; }
.card {
  position: relative; display: flex; flex-direction: column; width: 100%;
  background: var(--white); border: 1px solid var(--line);
  transition: border-color .25s ease;
}
.card:hover { border-color: var(--ink); }
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card-body { display: flex; flex-direction: column; flex: 1; gap: .7rem; padding: 1.4rem 1.4rem 1.6rem; }
.card-n { margin: 0; font: 700 .8125rem/1 var(--body); letter-spacing: .14em; color: var(--ember); }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card p { color: var(--stone); font-size: 1rem; }
.card-more { margin-top: auto; padding-top: .5rem; font-weight: 700; text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 2px; text-underline-offset: .35em; }
@media (min-width: 600px) { .cards-4, .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ------------------------------------------------------- what we take */
.takes { list-style: none; padding: 0; display: grid; column-gap: clamp(2rem, 5vw, 5rem); border-top: 1px solid var(--line-strong); }
.takes li { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 1rem; padding-block: 1.4rem; border-bottom: 1px solid var(--line); }
.takes-n { font: 700 .875rem/1.9 var(--body); color: var(--ember); letter-spacing: .1em; }
.takes h3 { font-size: 1.3rem; margin-bottom: .35rem; }
.takes p { color: var(--stone); font-size: 1rem; }
.notake { margin-top: 2rem; padding: 1.25rem 1.5rem; border-left: 4px solid var(--sun); background: var(--white); max-width: 60em; }
@media (min-width: 900px) { .takes { grid-template-columns: 1fr 1fr; } }

/* ------------------------------------------------------- numbered steps */
.steps { list-style: none; padding: 0; display: grid; gap: 2.5rem clamp(1.5rem, 3vw, 3rem); }
.steps li { border-top: 2px solid var(--sun); padding-top: 1.5rem; }
.steps-n { display: block; font: 700 clamp(3rem, 2rem + 3vw, 4.75rem)/1 var(--display); letter-spacing: -.04em; color: var(--sun); margin-bottom: 1rem; }
.steps h3 { margin-bottom: .6rem; }
.steps p { color: var(--mist); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.bigsteps { list-style: none; padding: 0; border-top: 1px solid var(--line-strong); }
.bigsteps li { display: grid; gap: .75rem 2.5rem; padding-block: clamp(1.75rem, 3.5vw, 3rem); border-bottom: 1px solid var(--line); }
.bigsteps-n { font: 700 clamp(3.5rem, 2rem + 6vw, 8rem)/.85 var(--display); letter-spacing: -.05em; color: var(--ember); }
@supports (-webkit-text-stroke: 1px black) {
  .bigsteps-n { color: transparent; -webkit-text-stroke: 1.5px var(--ink); transition: -webkit-text-stroke-color .3s ease; }
  .bigsteps li:hover .bigsteps-n { -webkit-text-stroke-color: var(--ember); }
}
.bigsteps h3 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.5rem); margin-bottom: .75rem; }
.bigsteps p { max-width: 40em; color: var(--stone); }
@media (min-width: 900px) { .bigsteps li { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); align-items: center; } }

/* -------------------------------------------- ruled cells / panels / sheet */
.ruled-cells, .panels, .cells {
  list-style: none; padding: 0;
  display: grid; gap: 1px;
}
.ruled-cells { background: var(--line-d); border: 1px solid var(--line-d); }
.ruled-cells li { background: var(--ink); padding: clamp(1.5rem, 3vw, 2.5rem); }
.ruled-cells h3 { margin: 1rem 0 .6rem; }
.ruled-cells p { color: var(--mist); }
.cell-n { display: block; font: 700 clamp(2.75rem, 2rem + 3vw, 4.5rem)/1 var(--display); letter-spacing: -.04em; color: var(--sun); }
@media (min-width: 900px) { .ruled-cells { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.panels { background: var(--line); border: 1px solid var(--line); }
.panel { background: var(--paper); padding: clamp(1.75rem, 3vw, 2.75rem); display: flex; flex-direction: column; gap: .9rem; transition: background-color .3s ease; }
.panel:hover { background: var(--white); }
.panel-n { font: 700 clamp(4rem, 2.5rem + 6vw, 8.5rem)/.85 var(--display); letter-spacing: -.05em; color: var(--ember); }
@supports (-webkit-text-stroke: 1px black) {
  .panel-n { color: transparent; -webkit-text-stroke: 1.5px var(--ink); transition: -webkit-text-stroke-color .3s ease; }
  .panel:hover .panel-n { -webkit-text-stroke-color: var(--ember); }
}
.panel h3 { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.6rem); }
.panel p { color: var(--stone); }
.panel-ph { margin-top: auto; padding-top: .5rem; }
@media (min-width: 900px) { .panels { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.sheet {
  position: relative;
  border: 1px solid var(--ink);
  padding: clamp(1.5rem, 3.5vw, 3rem);
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(20, 32, 43, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 32, 43, .05) 1px, transparent 1px);
  background-size: 24px 24px;
}
.tick { position: absolute; width: 14px; height: 14px; border-color: var(--sun); border-style: solid; border-width: 0; }
.tick-tl { top: -1px; left: -1px; border-top-width: 3px; border-left-width: 3px; }
.tick-tr { top: -1px; right: -1px; border-top-width: 3px; border-right-width: 3px; }
.tick-bl { bottom: -1px; left: -1px; border-bottom-width: 3px; border-left-width: 3px; }
.tick-br { bottom: -1px; right: -1px; border-bottom-width: 3px; border-right-width: 3px; }
.sheet-head { display: grid; gap: 1.5rem 3rem; margin-bottom: clamp(2rem, 4vw, 3rem); align-items: end; }
.sheet-meta { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line-strong); min-width: 14rem; }
.sheet-meta div { display: flex; justify-content: space-between; gap: 2rem; padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: .875rem; }
.sheet-meta dt { font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--stone); }
.sheet-meta dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.cells { background: var(--line); border: 1px solid var(--line); }
.cell { background: var(--paper); padding: clamp(1.25rem, 2.5vw, 2rem); transition: background-color .3s ease, box-shadow .3s ease; }
.cell:hover { background: var(--white); box-shadow: inset 0 3px 0 var(--sun); }
.cells .cell-n { color: var(--ember); margin-bottom: 1rem; }
@supports (-webkit-text-stroke: 1px black) {
  .cells .cell-n { color: transparent; -webkit-text-stroke: 1.5px var(--ink); transition: -webkit-text-stroke-color .3s ease; }
  .cell:hover .cell-n { -webkit-text-stroke-color: var(--ember); }
}
.cell h3 { margin-bottom: .5rem; }
.cell p { color: var(--stone); font-size: 1rem; }
@media (min-width: 600px) { .cells { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) {
  .cells { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sheet-head { grid-template-columns: minmax(0, 1fr) auto; }
}

/* facts row (placeholders for credentials) */
.facts { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.facts > div { background: var(--paper); padding: 1.5rem; }
.facts-k { margin: 0 0 .6rem; font: 700 .8125rem/1.2 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--ember); }
@media (min-width: 600px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* --------------------------------------------- scroll-snap gallery */
.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(82%, 30rem);
  gap: 1rem; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; padding-bottom: 1rem;
  scrollbar-color: var(--sun) transparent;
}
.gallery figure { margin: 0; scroll-snap-align: start; }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.gallery figcaption { margin-top: .75rem; font-weight: 700; font-size: .95rem; }
.gallery figcaption span { font-weight: 400; color: var(--mist); }

/* ---------------------------------------------------------- placeholders */
.ph-block { border: 1px dashed var(--line-strong); padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--paper); }
.ph-block p { max-width: 36em; color: var(--stone); }

/* --------------------------------------------------------- checklist */
.checklist { list-style: none; padding: 0; counter-reset: chk; border-top: 1px solid var(--line-strong); }
.checklist li { counter-increment: chk; position: relative; padding: 1.15rem 0 1.15rem 3.25rem; border-bottom: 1px solid var(--line); }
.checklist li::before {
  content: counter(chk, decimal-leading-zero);
  position: absolute; left: 0; top: 1.2rem;
  font: 700 .875rem/1.6 var(--body); color: var(--ember); letter-spacing: .1em;
}

/* ---------------------------------------------------------------- FAQ */
.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative; cursor: pointer; list-style: none;
  padding: 1.3rem 3rem 1.3rem 0;
  font: 700 1.15rem/1.35 var(--body);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .25rem; top: 50%;
  width: 14px; height: 14px; margin-top: -7px;
  background: linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat,
              linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat;
}
.faq details[open] summary::after { background: linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat; }
.faq details p { padding: 0 0 1.4rem; color: var(--stone); max-width: 42em; }

/* ------------------------------------------------------------- CTA band */
.cta-band { padding-block: clamp(4rem, 8vw, 7rem); border-top: 6px solid var(--sun); }
.cta-grid { display: grid; gap: 1.5rem 4rem; align-items: end; }
.cta-grid h2 { font-size: clamp(2.25rem, 1.2rem + 4vw, 5rem); line-height: 1; letter-spacing: -.035em; max-width: 12em; }
.cta-grid p { color: var(--mist); max-width: 30em; }
.cta-grid .actions { margin-top: 1.5rem; }
@media (min-width: 900px) { .cta-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }

/* ---------------------------------------------------------------- forms */
.form-card { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--ink); padding: clamp(1.25rem, 3vw, 2.5rem); }
.form-intro h2 { margin-bottom: 1.25rem; }
.form-intro p { max-width: 32em; }
.form { display: grid; gap: 1.5rem; }
.form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.form legend { display: flex; align-items: center; gap: .75rem; padding: 0; margin-bottom: 1.25rem; font: 700 clamp(1.3rem, 1.1rem + .6vw, 1.6rem)/1.1 var(--display); }
.legend-n { font: 700 .8125rem/1 var(--body); letter-spacing: .14em; color: var(--ember); }
.form-grid { display: grid; gap: 1.1rem 1.25rem; }
@media (min-width: 640px) {
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-wide { grid-column: 1 / -1; }
}
.field { min-width: 0; }
.field label { display: block; margin-bottom: .4rem; font-weight: 700; font-size: .95rem; }
.req { color: var(--err); }
.opt { font-weight: 400; color: var(--stone); }
.field input, .field select, .field textarea {
  display: block; width: 100%; min-height: 3.1rem;
  padding: .75rem .9rem;
  font: 400 1rem/1.4 var(--body); color: var(--ink);
  background: var(--white);
  border: 1.5px solid #767B80; border-radius: 0;
  transition: border-color .2s ease;
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 2.5rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 1.25rem) 50%, calc(100% - .9rem) 50%;
  background-size: .38rem .38rem; background-repeat: no-repeat;
}
.field textarea { min-height: 8.5rem; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.field ::placeholder { color: #6E7378; opacity: 1; }
.field [aria-invalid="true"] { border-color: var(--err); background-color: #FFF4F2; box-shadow: inset 4px 0 0 var(--err); }
.hint { margin: .4rem 0 0; font-size: .875rem; color: var(--stone); }
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: grid; gap: 1rem; justify-items: start; }
.ts-slot:empty { display: none; }
.ts-slot { width: 100%; }
.btn-submit { min-width: 14rem; }
.form-status { margin: 0; min-height: 1.5em; font-weight: 700; }
.form-status[data-state="ok"] { color: var(--ok); }
.form-status[data-state="error"] { color: var(--err); }
.form-status[data-state="busy"] { color: var(--stone); }
.form-unavail { margin: 0; padding: .75rem 1rem; border-left: 4px solid var(--err); background: #FFF4F2; font-size: .95rem; }
.form.is-sent .btn-submit { opacity: .85; }

/* ---------------------------------------------------------- book page */
.book { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(4rem, 8vw, 7rem); }
.book-grid { display: grid; gap: clamp(2rem, 5vw, 5rem); }
.book-intro .lede { margin-top: 1.25rem; }
.next { list-style: none; padding: 0; margin: 2.25rem 0; border-top: 1px solid var(--line-strong); }
.next li { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 1rem; padding-block: 1.1rem; border-bottom: 1px solid var(--line); }
.next-n { font: 700 .875rem/1.6 var(--body); color: var(--ember); letter-spacing: .1em; }
.next p { color: var(--stone); font-size: 1rem; margin-top: .25rem; }
.book-facts { list-style: none; padding: 0; display: grid; gap: .6rem; }
@media (min-width: 1000px) {
  .book-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .book-intro { position: sticky; top: calc(var(--header-h) + 2rem); }
}

/* -------------------------------------------------------- legal / 404 */
.legal { max-width: 46rem; margin-inline: 0; }
.legal h2 { font-size: clamp(1.4rem, 1.2rem + .7vw, 1.8rem); margin: 2.25rem 0 .75rem; }
.legal h2:first-child { margin-top: 0; }
.legal p { color: #2E3A44; }
.link-list { list-style: none; padding: 0; margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.link-list a { display: inline-flex; min-height: 2.75rem; align-items: center; padding: .5rem 1rem; border: 2px solid var(--ink); font-weight: 700; text-decoration: none; transition: background-color .25s ease, color .25s ease; }
.link-list a:hover { background: var(--ink); color: var(--paper); }
.page-404 { border-bottom: 0; padding-bottom: clamp(4rem, 8vw, 7rem); }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--ink); color: var(--paper); padding-block: clamp(3.5rem, 7vw, 6rem) 2rem; }
.ft-grid { display: grid; gap: 2.5rem; }
.ft-logo img { height: 44px; width: auto; }
.ft-line { margin-top: 1.25rem; color: var(--mist); max-width: 26em; }
.ft-facts { list-style: none; padding: 0; margin-top: 1.5rem; display: grid; gap: .55rem; font-size: .95rem; }
.ft-k { display: inline-block; min-width: 9.5rem; font-weight: 700; color: var(--paper); }
.book-facts .ft-k { color: var(--ink); min-width: 9rem; }
.ft-h { font: 700 .8125rem/1.2 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--sun); margin-bottom: 1rem; }
.ft-col ul { list-style: none; padding: 0; display: grid; gap: .1rem; }
.ft-col a { display: inline-block; padding-block: .35rem; text-decoration: none; font-weight: 700; }
.ft-col a:hover { text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 2px; }
.ft-col p { color: var(--mist); }
.ft-cta { margin-top: 1.5rem; }
.site-footer a { color: var(--paper); }
.ft-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem;
  margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.5rem; border-top: 1px solid var(--line-d);
  font-size: .875rem; color: var(--mist);
}
.ft-links { display: flex; gap: 1.5rem; }
@media (min-width: 900px) { .ft-grid { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr); } }

/* ----------------------------------------------------- mobile action bar */
.mbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  background: var(--ink); border-top: 2px solid var(--sun);
  padding-bottom: env(safe-area-inset-bottom);
}
.mbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem;
  min-height: var(--mbar-h); padding: .35rem .15rem;
  color: var(--paper); text-decoration: none; text-align: center;
  font: 700 .72rem/1.1 var(--body); letter-spacing: .02em;
}
.mbar a.is-primary { background: var(--sun); color: var(--ink); }
.mbar a:focus-visible { outline-offset: -4px; }
.mbar svg { width: 22px; height: 22px; flex: none; }
@media (max-width: 899.98px) {
  body { padding-bottom: calc(var(--mbar-h) + env(safe-area-inset-bottom)); }
}
@media (min-width: 900px) { .mbar { display: none; } }

/* ---------------------------------------------------------------- motion
   Opt-in: site.js adds .fx-pending only to elements below the fold at load. */
.js [data-fx] { transition: opacity .4s ease; }
.js .fx-pending { opacity: 0; }
.js .fx-in { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .fx-pending { opacity: 1; }
}
