/* ==========================================================================
   Whole-house UPS battery backup — Riviera Maya
   Single stylesheet, shared by /index.html and /es/index.html
   No external requests: system fonts only, inline SVG icons.
   ========================================================================== */

:root {
  --ink:        #0E0F11;
  --ink-2:      #15171A;
  --ink-3:      #1E2126;
  --cream:      #F4EFE6;
  --cream-2:    #FBF8F2;
  --paper-text: #2A2724;
  --paper-mute: #5B554C;
  --dark-text:  #E8E3D9;
  --dark-mute:  #A8A296;
  --gold:       #C6A664;
  --gold-lift:  #DCC08A;
  --hair:       rgba(198, 166, 100, .30);
  --hair-dark:  rgba(42, 39, 36, .16);

  --serif: Georgia, "Iowan Old Style", "Times New Roman", Times, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1120px;
  --gut: clamp(20px, 5vw, 48px);
  --header-h: 68px;
}

/* --------------------------------------------------------- reset + base */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* keep anchored sections clear of the sticky header */
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--paper-text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  /* stops any single wide child from scrolling the whole page sideways */
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 .6em;
}

h1 { font-size: clamp(2.1rem, 5.4vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 3.8vw, 2.7rem); }
h3 { font-size: clamp(1.2rem, 2.1vw, 1.45rem); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--ink);
  padding: 12px 20px;
  z-index: 200;
  font-weight: 600;
}
.skip:focus { left: 8px; top: 8px; }

/* --------------------------------------------------------- layout atoms */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}

section { padding-block: clamp(56px, 9vw, 104px); }

.section--dark { background: var(--ink); color: var(--dark-text); }
.section--dark h2, .section--dark h3 { color: var(--cream-2); }
.section--paper { background: var(--cream-2); }

.eyebrow {
  font-family: var(--sans);
  font-size: .74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--paper-mute);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--hair);
  max-width: 90px;
}
.section--dark .eyebrow { color: var(--gold); }

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--paper-mute);
  max-width: 62ch;
}
.section--dark .lede { color: var(--dark-mute); }

.section-head { max-width: 68ch; margin-bottom: clamp(32px, 5vw, 56px); }

/* --------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.btn svg { width: 19px; height: 19px; flex: none; }

.btn--gold { background: var(--gold); color: #16130C; }
.btn--gold:hover { background: var(--gold-lift); }

.btn--ghost {
  background: transparent;
  color: var(--dark-text);
  border-color: rgba(232, 227, 217, .32);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-lift); }

.btn--ghost-dark {
  background: transparent;
  color: var(--paper-text);
  border-color: var(--hair-dark);
}
.btn--ghost-dark:hover { border-color: var(--gold); }

.btn--block { width: 100%; }

/* --------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 15, 17, .94);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(198, 166, 100, .18);
  color: var(--dark-text);
}

.site-header__bar {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--cream-2);
  font-family: var(--serif);
  font-size: 1.12rem;
  letter-spacing: .01em;
  margin-right: auto;
  white-space: nowrap;
}
.brand img { width: 34px; height: 34px; object-fit: contain; }
.brand span { display: block; }
.brand small {
  display: block;
  font-family: var(--sans);
  font-size: .62rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 2px;
}

.nav { display: flex; align-items: center; gap: 26px; }

.nav a {
  color: var(--dark-mute);
  text-decoration: none;
  font-size: .88rem;
  letter-spacing: .02em;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.nav a:hover { color: var(--cream-2); }
.nav a.is-active { color: var(--cream-2); border-bottom-color: var(--gold); }

.header-actions { display: flex; align-items: center; gap: 14px; }

.lang {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .8rem;
  letter-spacing: .08em;
  color: var(--dark-mute);
}
.lang a { text-decoration: none; padding: 6px 4px; }
.lang a:hover { color: var(--cream-2); }
.lang [aria-current="true"] { color: var(--gold); font-weight: 700; }
.lang span[aria-hidden] { opacity: .4; }

.header-cta { padding: 10px 20px; min-height: 42px; font-size: .88rem; }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(232, 227, 217, .28);
  border-radius: 2px;
  color: var(--cream-2);
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }

@media (max-width: 940px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--hair);
    padding: 8px var(--gut) 20px;
  }
  .nav.is-open { display: flex; }
  .nav a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(232, 227, 217, .09);
    font-size: 1rem;
  }
  .nav a.is-active { border-bottom-color: rgba(232, 227, 217, .09); color: var(--gold); }
  .nav-toggle { display: inline-flex; }
  .site-header__bar { position: relative; }
  .header-cta { display: none; }
}

@media (max-width: 420px) {
  .brand { font-size: .98rem; }
}

/* --------------------------------------------------------- hero */

.hero {
  background:
    radial-gradient(900px 520px at 78% 12%, rgba(198, 166, 100, .16), transparent 62%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  color: var(--dark-text);
  padding-block: clamp(56px, 8vw, 96px) clamp(56px, 8vw, 96px);
  border-bottom: 1px solid var(--hair);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero h1 { color: var(--cream-2); }
.hero h1 em { font-style: italic; color: var(--gold); }

.hero__lede {
  font-size: clamp(1.05rem, 1.7vw, 1.22rem);
  color: var(--dark-mute);
  max-width: 52ch;
  margin-bottom: 30px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(232, 227, 217, .12);
  font-size: .85rem;
  color: var(--dark-mute);
  list-style: none;
  margin: 0;
  padding-left: 0;
}
.hero__trust li { display: flex; align-items: center; gap: 8px; }
.hero__trust svg { width: 15px; height: 15px; color: var(--gold); flex: none; }

.hero__media { position: relative; }
.hero__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--hair);
  background: var(--ink-3);
}
.hero__badge {
  position: absolute;
  left: -14px;
  bottom: -18px;
  background: var(--cream-2);
  color: var(--paper-text);
  padding: 14px 20px;
  border-left: 3px solid var(--gold);
  max-width: 250px;
  font-size: .84rem;
  line-height: 1.45;
}
.hero__badge strong { display: block; font-family: var(--serif); font-size: 1.5rem; line-height: 1; margin-bottom: 4px; }

@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .hero__badge { left: 0; bottom: -14px; }
}

/* --------------------------------------------------------- problem cards */

.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1px;
  background: var(--hair-dark);
  border: 1px solid var(--hair-dark);
}

.pain {
  background: var(--cream);
  padding: 30px 28px;
}
.pain svg { width: 26px; height: 26px; color: var(--gold); margin-bottom: 14px; }
.pain h3 { font-size: 1.16rem; margin-bottom: .45em; }
.pain p { font-size: .95rem; color: var(--paper-mute); margin: 0; }

/* --------------------------------------------------------- comparison table */

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(232, 227, 217, .14);
}

table.compare {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: .95rem;
}

table.compare th,
table.compare td {
  text-align: left;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(232, 227, 217, .10);
  vertical-align: top;
}

table.compare thead th {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dark-mute);
  font-weight: 600;
  background: rgba(255, 255, 255, .02);
}
table.compare thead th:nth-child(2) { color: var(--gold); }

table.compare tbody th {
  font-weight: 400;
  color: var(--dark-mute);
  font-family: var(--sans);
  font-size: .88rem;
  width: 26%;
}
table.compare td:nth-of-type(1) { color: var(--cream-2); }
table.compare td:nth-of-type(2) { color: var(--dark-mute); }
table.compare tbody tr:last-child th,
table.compare tbody tr:last-child td { border-bottom: 0; }

.table-note {
  margin-top: 18px;
  font-size: .88rem;
  color: var(--dark-mute);
  border-left: 2px solid var(--gold);
  padding-left: 16px;
  max-width: 68ch;
}

/* --------------------------------------------------------- covered grid */

.covered {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 26px 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.covered li { display: flex; gap: 14px; align-items: flex-start; }
.covered svg { width: 24px; height: 24px; color: var(--gold); flex: none; margin-top: 2px; }
.covered strong { display: block; font-family: var(--serif); font-size: 1.06rem; font-weight: 400; margin-bottom: 2px; }
.covered span { font-size: .89rem; color: var(--paper-mute); }
.section--dark .covered span { color: var(--dark-mute); }

/* --------------------------------------------------------- system builder */

.builder {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
}

.bstep { border: 0; padding: 0; margin: 0 0 34px; }
.bstep:last-child { margin-bottom: 0; }

.bstep legend {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  margin-bottom: 16px;
  font-family: var(--serif);
  font-size: 1.16rem;
}
.bstep legend b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 600;
  flex: none;
}

/* selectable chips — real radios, styled */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }

.chip { position: relative; }
.chip input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  margin: 0;
}
.chip span {
  display: block;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid var(--hair-dark);
  background: var(--cream-2);
  font-size: .95rem;
  line-height: 1.5;
  text-align: center;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.chip input:hover + span { border-color: var(--gold); }
.chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.chip input:checked + span {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream-2);
}

.chip span small {
  display: block;
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .62;
  margin-top: 3px;
}

.chip input:disabled + span { opacity: .38; cursor: not-allowed; }

/* Wider chips for options with a sentence rather than a number. */
.chips--wide { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.chips--wide .chip span { height: 100%; display: flex; align-items: center; justify-content: center; }

/* battery line cards */
.batts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }

.batt { position: relative; }
.batt input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.batt span {
  display: block;
  height: 100%;
  padding: 18px 20px;
  border: 1px solid var(--hair-dark);
  background: var(--cream-2);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.batt input:hover + span { border-color: var(--gold); }
.batt input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.batt input:checked + span { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }

/* The bank's continuous rating, flagged when it sits under the inverter's
   ceiling — a caution, never a blocker. */
.bout dd.is-short { color: var(--gold-lift); }
.bout dd.is-short::after { content: " ▲"; font-size: .8em; }

.batt b {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.12rem;
  margin-bottom: 2px;
}
.batt em {
  display: block;
  font-style: normal;
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.batt small { display: block; font-size: .85rem; color: var(--paper-mute); line-height: 1.5; }

/* quantity stepper */
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper button {
  width: 48px;
  height: 48px;
  border: 1px solid var(--hair-dark);
  background: var(--cream-2);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  color: var(--paper-text);
  transition: border-color .15s ease, opacity .15s ease;
}
.stepper button:hover:not(:disabled) { border-color: var(--gold); }
.stepper button:disabled { opacity: .32; cursor: not-allowed; }
.stepper input {
  width: 76px;
  height: 48px;
  text-align: center;
  font-family: var(--serif);
  font-size: 1.25rem;
  border: 1px solid var(--hair-dark);
  background: var(--cream-2);
  color: var(--paper-text);
  -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper span { font-size: .92rem; color: var(--paper-mute); }

.bhint {
  margin: 12px 0 0;
  font-size: .85rem;
  color: var(--paper-mute);
  border-left: 2px solid var(--gold);
  padding-left: 12px;
  max-width: 52ch;
}

/* result panel */
.bout {
  background: var(--ink);
  color: var(--dark-text);
  border: 1px solid var(--gold);
  padding: 30px 28px;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}
.bout h3 { color: var(--cream-2); font-size: 1.3rem; margin-bottom: 20px; }

.bout dl {
  margin: 0 0 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(232, 227, 217, .16);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px 16px;
  font-size: .92rem;
}
.bout dt { color: var(--dark-mute); }
.bout dd { margin: 0; text-align: right; color: var(--cream-2); }

.bout .runtime { color: var(--gold); font-weight: 600; }

.bout__runtime-note {
  margin: -12px 0 22px;
  padding-left: 12px;
  border-left: 2px solid var(--gold);
  font-size: .8rem;
  line-height: 1.5;
  color: var(--dark-mute);
}

.blines {
  display: grid;
  gap: 9px;
  font-size: .92rem;
  margin-bottom: 18px;
}
.bline { display: flex; justify-content: space-between; gap: 16px; }
.bline span:first-child { color: var(--dark-mute); }

.btotal {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid rgba(232, 227, 217, .16);
}
.btotal b {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.9rem;
  color: var(--cream-2);
  line-height: 1.1;
}
.btotal small {
  display: block;
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dark-mute);
  margin-bottom: 2px;
}
.btotal-usd { font-size: .85rem; color: var(--dark-mute); white-space: nowrap; }

.bout .btn { margin-top: 22px; }
.bout__note { margin-top: 14px; font-size: .78rem; color: var(--dark-mute); text-align: center; }

/* Without JavaScript the live panel would show blank values — hide it until
   configurator.js adds .is-live, and let the <noscript> block speak instead. */
.builder .bout { display: none; }
.builder.is-live .bout { display: block; }

.bfallback {
  margin-top: 30px;
  padding: 22px 24px;
  border: 1px solid var(--hair-dark);
  background: var(--cream-2);
  font-size: .95rem;
  max-width: 68ch;
}

@media (max-width: 900px) {
  .builder { grid-template-columns: 1fr; }
  .bout { position: static; }
}

/* --------------------------------------------------------- spec sheets */

.spec-group {
  font-family: var(--sans);
  font-size: .74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--paper-mute);
  padding-bottom: 12px;
  margin: 0 0 24px;
  border-bottom: 1px solid var(--hair-dark);
}
.spec-group:not(:first-of-type) { margin-top: clamp(40px, 5vw, 64px); }

.specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.specs--two { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.spec {
  background: var(--cream);
  border: 1px solid var(--hair-dark);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
}

.spec__img {
  width: 100%;
  max-width: 210px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  margin: -4px auto 16px;
  mix-blend-mode: multiply;
}

.spec h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.22rem;
  margin: 0 0 4px;
}

.spec__tag {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 18px;
}

.spec dl {
  margin: 0 0 20px;
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  gap: 8px 18px;
  font-size: .86rem;
  line-height: 1.45;
}
.spec dt { color: var(--paper-mute); }
.spec dd { margin: 0; text-align: right; }
.spec dd b { font-weight: 600; }

.spec__docs {
  margin: auto 0 0;
  padding-top: 6px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.spec__docs a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--paper-text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.spec__docs a::before { content: "↓"; color: var(--gold); font-weight: 400; }
.spec__docs a:hover { color: var(--gold); border-bottom-color: var(--gold); }

/* --------------------------------------------------------- service area */

.area-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}

.towns {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--hair-dark);
}
.section--dark .towns { border-top-color: rgba(232, 227, 217, .14); }

.towns li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--hair-dark);
  font-size: .97rem;
}
.section--dark .towns li { border-bottom-color: rgba(232, 227, 217, .14); }

.towns b { font-weight: 400; font-family: var(--serif); font-size: 1.08rem; }
.towns span { font-size: .82rem; color: var(--dark-mute); letter-spacing: .04em; white-space: nowrap; }
.towns .is-base span { color: var(--gold); }

@media (max-width: 780px) {
  .area-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------- process */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  background: var(--hair-dark);
  border: 1px solid var(--hair-dark);
}
.step { background: var(--cream-2); padding: 30px 26px; }
.step b {
  display: block;
  font-family: var(--serif);
  font-size: 2.2rem;
  line-height: 1;
  color: var(--gold);
  font-weight: 400;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.1rem; margin-bottom: .4em; }
.step p { font-size: .92rem; color: var(--paper-mute); margin: 0; }

/* --------------------------------------------------------- photo strip */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.gallery figure { margin: 0; }
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--ink-3);
  border: 1px solid var(--hair-dark);
}
.gallery figcaption {
  margin-top: 10px;
  font-size: .84rem;
  color: var(--paper-mute);
}

/* --------------------------------------------------------- faq */

.faq { max-width: 820px; }

.faq details {
  border-bottom: 1px solid var(--hair-dark);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 44px 20px 0;
  position: relative;
  font-family: var(--serif);
  font-size: clamp(1.04rem, 1.7vw, 1.18rem);
  min-height: 48px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 11px;
  height: 11px;
  border-right: 1.5px solid var(--gold);
  border-bottom: 1.5px solid var(--gold);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div {
  padding: 0 30px 24px 0;
  font-size: .96rem;
  color: var(--paper-mute);
  max-width: 68ch;
}

/* --------------------------------------------------------- final cta */

.cta-band {
  background:
    radial-gradient(700px 380px at 20% 20%, rgba(198, 166, 100, .18), transparent 60%),
    var(--ink);
  color: var(--dark-text);
  text-align: center;
}
.cta-band h2 { color: var(--cream-2); }
.cta-band .lede { margin-inline: auto; }
.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 30px;
}

/* --------------------------------------------------------- footer */

.site-footer {
  background: var(--ink-2);
  color: var(--dark-mute);
  border-top: 1px solid var(--hair);
  padding-block: clamp(44px, 6vw, 68px) 30px;
  font-size: .92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 34px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(232, 227, 217, .10);
}

.site-footer h3 {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.site-footer a { color: var(--dark-text); text-decoration: none; }
.site-footer a:hover { color: var(--gold-lift); text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

.footer-bottom {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  justify-content: space-between;
  font-size: .82rem;
}

/* --------------------------------------------------------- 404 */

.mini-page {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--ink);
  color: var(--dark-text);
  padding: 80px var(--gut);
}
.mini-page h1 { color: var(--cream-2); }
