/* MBS-Construct — static site
   A distribution-board fascia: ink plate, brass busbar, job photographs. */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1c1915;
  --ink-2: #2c2822;
  --plate: #fffcf7;
  --paper: #f4f0e7;
  --brass: #b08d45;
  --brass-deep: #6e5318;
  --brass-hot: #e4c97a;
  --line: #e3dcd0;
  --muted: #5c564c;
  --on-ink: #f7f2e8;
  --on-ink-dim: #d8cebd;
  --danger: #8d3b2e;
  --header: 4.25rem;
  --content: 76rem;
  --gutter: clamp(1.15rem, 0.4rem + 2.6vw, 2.75rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 18px 40px rgba(28, 25, 21, 0.16);
  color-scheme: light;
  scrollbar-color: var(--brass-deep) var(--paper);
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-padding-top: calc(var(--header) + 0.75rem);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--plate);
  color: var(--ink);
  font-family: "Archivo", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  font-weight: 450;
  font-stretch: 100%;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

:focus-visible {
  outline: 3px solid var(--brass-hot);
  outline-offset: 3px;
}

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

h1,
h2,
h3,
p,
ul,
ol,
dl,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
.wordmark {
  font-stretch: 92%;
  font-weight: 650;
  letter-spacing: -0.034em;
  line-height: 0.98;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.35rem, 1.2rem + 4.2vw, 4.6rem);
}

h2 {
  font-size: clamp(1.85rem, 1.2rem + 2.2vw, 3.15rem);
}

h3 {
  font-size: 1.35rem;
  font-weight: 650;
  font-stretch: 90%;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-wrap: balance;
}

p,
li,
dd {
  text-wrap: pretty;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--content));
  margin-inline: auto;
}

.lead {
  font-size: clamp(1.125rem, 1.02rem + 0.4vw, 1.3rem);
  line-height: 1.45;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  padding: 0.7rem 1rem;
  background: var(--brass-hot);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header);
  background: color-mix(in srgb, var(--plate) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.site-header .bar {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

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

.brand img {
  width: 2.75rem;
  height: auto;
}

.wordmark {
  font-size: 1.35rem;
  line-height: 1;
}

.wordmark span {
  color: var(--brass-deep);
}

.nav-main {
  display: none;
  align-items: center;
  gap: 0.35rem 1.15rem;
}

.nav-main a {
  text-decoration: none;
  font-weight: 550;
  padding: 0.4rem 0;
  background-image: linear-gradient(var(--brass), var(--brass));
  background-repeat: no-repeat;
  background-size: 0 2px;
  background-position: 0 100%;
  transition: background-size 0.35s var(--ease);
}

.nav-main a:hover,
.nav-main a[aria-current="page"],
.nav-main a[aria-current="true"] {
  background-size: 100% 2px;
}

.header-actions {
  display: none;
  align-items: center;
  gap: 0.85rem;
}

.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  font-weight: 650;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}

.phone-link svg {
  width: 1.15rem;
  height: 1.15rem;
}

.menu-btn {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  background: var(--plate);
  color: var(--ink);
}

.menu-btn svg {
  width: 1.35rem;
  height: 1.35rem;
}

.nav-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--plate);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 0.5rem var(--gutter) 1.25rem;
  transform: translateY(-0.4rem);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
}

.site-header.is-open .nav-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.nav-panel a {
  display: flex;
  align-items: center;
  min-height: 3rem;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}

.nav-panel a[aria-current="page"],
.nav-panel a[aria-current="true"] {
  color: var(--brass-deep);
}

.nav-panel .panel-phone {
  margin-top: 0.85rem;
  border: 1px solid var(--ink);
  justify-content: center;
}

@media (min-width: 1100px) {
  .nav-main,
  .header-actions {
    display: flex;
  }

  .menu-btn,
  .nav-panel {
    display: none;
  }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.15rem;
  padding: 0.7rem 1.2rem;
  border: 1.5px solid transparent;
  text-decoration: none;
  font-weight: 650;
  line-height: 1.2;
  background: transparent;
}

.btn svg {
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
}

.btn-brass {
  background: var(--brass);
  color: var(--ink);
  border-color: var(--brass);
}

.btn-brass:hover {
  background: var(--brass-hot);
  border-color: var(--brass-hot);
}

.btn-line {
  border-color: currentColor;
  background: transparent;
}

.btn-line:hover {
  background: color-mix(in srgb, currentColor 8%, transparent);
}

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

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

.acts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Hero — the job fills the screen. Type sits on the ground, not on a panel. */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: calc(var(--dw-vh, 100svh) - var(--header) - 3.35rem);
  color: var(--on-ink);
  overflow: hidden;
  background: #14110e;
}

.hero-photo {
  position: absolute;
  inset: 0;
  height: auto;
  margin: 0;
  z-index: 0;
}

.hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform-origin: center 70%;
  animation: drift 26s ease-in-out infinite alternate;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(14, 11, 8, 0.78) 0%,
    rgba(14, 11, 8, 0.28) 36%,
    rgba(14, 11, 8, 0) 62%
  );
  pointer-events: none;
}

.hero-copy,
.hero-meta {
  position: relative;
  z-index: 2;
}

.hero-copy {
  width: min(100% - 2 * var(--gutter), 44rem);
  margin-left: var(--gutter);
  padding-bottom: 1rem;
}

.hero h1 {
  max-width: 14ch;
  font-size: clamp(2.35rem, 1rem + 2.5vw, 3.7rem);
  text-shadow: 0 2px 16px rgba(14, 11, 8, 0.45);
}

.hero-copy .lead {
  max-width: 34rem;
  margin-top: 0.85rem;
  color: #f4ecdf;
}

.livewire {
  display: block;
  width: 9rem;
  height: 2px;
  margin-top: 1rem;
  background: var(--brass-hot);
  transform: scaleX(0);
  transform-origin: left;
  animation: rule 0.9s var(--ease) 0.15s forwards;
  position: relative;
  overflow: hidden;
}

.livewire::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2rem;
  height: 100%;
  background: #fff;
  animation: sparkx 2.8s linear 1s infinite;
}

.hero-copy .acts {
  margin-top: 1.15rem;
}

.hero .btn-line {
  color: #fff;
  border-color: rgba(247, 242, 232, 0.75);
  background: rgba(14, 11, 8, 0.45);
}

.hero .btn-line:hover {
  background: rgba(247, 242, 232, 0.12);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.35rem;
  width: min(100% - 2 * var(--gutter), 58rem);
  margin: 0 var(--gutter) 1.15rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(228, 201, 122, 0.55);
}

.hero-meta li {
  font-weight: 600;
}

.hero-meta strong {
  color: var(--brass-hot);
  font-weight: 680;
}

.hero-photo figcaption {
  position: absolute;
  z-index: 2;
  top: 1rem;
  right: var(--gutter);
  left: auto;
  bottom: auto;
  margin: 0;
  padding: 0.35rem 0.65rem;
  background: rgba(14, 11, 8, 0.55);
  color: var(--on-ink);
}

@media (min-width: 1100px) {
  .hero {
    min-height: calc(var(--dw-vh, 100svh) - var(--header));
  }

  .hero-copy {
    padding-bottom: 0.4rem;
  }

  .hero-meta {
    margin-bottom: 1.6rem;
  }
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes spark-run {
  from {
    stroke-dashoffset: var(--run);
  }
  to {
    stroke-dashoffset: calc(var(--run) * -1);
  }
}

@keyframes drift {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.06);
  }
}

@keyframes sparkx {
  0% {
    transform: translateX(-2rem);
    opacity: 0;
  }
  18% {
    opacity: 1;
  }
  100% {
    transform: translateX(9rem);
    opacity: 0;
  }
}

/* Sections */

.section {
  padding: clamp(3.5rem, 6vw, 6.5rem) 0;
}

.section-paper {
  background: var(--paper);
}

.section-ink {
  background: var(--ink);
  color: var(--on-ink);
}

.section-head {
  display: grid;
  gap: 0.85rem;
  margin-bottom: clamp(1.75rem, 3vw, 2.75rem);
  max-width: 40rem;
}

.section-ink .lead {
  color: var(--on-ink-dim);
}

.split {
  display: grid;
  gap: 1.5rem 3rem;
}

@media (min-width: 800px) {
  .split {
    grid-template-columns: minmax(14rem, 0.8fr) 1.3fr;
    align-items: start;
  }
}

/* Services as a panel schedule */

.trades {
  display: grid;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trades a {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 8.5rem;
  padding: 1.15rem 0;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}

.trades a:hover,
.trades a:focus-visible {
  background: var(--ink);
  color: var(--on-ink);
}

.trades strong {
  font-size: clamp(1.55rem, 1.2rem + 0.8vw, 2rem);
  font-weight: 640;
  font-stretch: 90%;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.trades span {
  color: var(--muted);
  max-width: 28rem;
}

.trades a:hover span,
.trades a:focus-visible span {
  color: var(--on-ink-dim);
}

@media (min-width: 900px) {
  .trades {
    grid-template-columns: repeat(5, 1fr);
  }

  .trades a {
    min-height: 16rem;
    padding: 1.25rem 1rem 1.15rem;
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }

  .trades li:last-child a {
    border-right: 0;
  }

}

.stage {
  display: grid;
  gap: 0.85rem;
}

.stage-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: 0.35rem;
}

.stage-intro p {
  max-width: 28rem;
  color: var(--muted);
}

.stage figure {
  position: relative;
  min-height: 18rem;
  overflow: hidden;
  background: var(--ink);
}

.stage img {
  width: 100%;
  height: 100%;
  min-height: 18rem;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.stage figure:hover img {
  transform: scale(1.04);
}

.stage figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.4rem 1.1rem 1rem;
  color: #f7f2e8;
  background: linear-gradient(to top, rgba(14, 11, 8, 0.78), transparent);
}

.stage figcaption strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.03em;
}

@media (min-width: 860px) {
  .stage-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.8fr;
    gap: 0.85rem;
    min-height: 34rem;
  }

  .stage-grid figure,
  .stage-grid img {
    min-height: 34rem;
    height: 100%;
  }
}

.review-board {
  display: grid;
  gap: 1rem;
}

.review-board blockquote {
  height: 100%;
  margin: 0;
  padding: 1.35rem 1.25rem 1.2rem;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  background: var(--plate);
}

.review-board .review-job {
  margin: 0 0 0.9rem;
  color: var(--brass-deep);
  font-size: 1rem;
  font-weight: 680;
  letter-spacing: 0;
  line-height: 1.35;
}

.review-board blockquote > p {
  font-size: 1.125rem;
  font-weight: 450;
  font-stretch: 100%;
  letter-spacing: 0;
  line-height: 1.5;
  max-width: none;
}

.review-board footer {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-top: auto;
  padding-top: 1.35rem;
}

.review-board cite {
  font-style: normal;
  font-weight: 700;
  color: var(--ink);
}

.review-board footer span {
  color: var(--muted);
}

@media (min-width: 860px) {
  .review-board {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }
}

/* Services */

.service-list a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem 1.15rem;
  align-items: center;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  min-height: 5.25rem;
}

.service-list li:last-child a {
  border-bottom: 1px solid var(--line);
}

.glyph {
  width: 2.75rem;
  height: 2.75rem;
  color: var(--brass-deep);
}

.glyph path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.7s var(--ease);
}

.draw.is-in .glyph path,
.service-list a:hover .glyph path,
.service-list a:focus-visible .glyph path {
  stroke-dashoffset: 0;
}

.service-list li:nth-child(2) .glyph path { transition-delay: 0.08s; }
.service-list li:nth-child(3) .glyph path { transition-delay: 0.16s; }
.service-list li:nth-child(4) .glyph path { transition-delay: 0.24s; }
.service-list li:nth-child(5) .glyph path { transition-delay: 0.32s; }

.service-copy {
  display: grid;
  gap: 0.2rem;
}

.service-copy strong {
  font-size: 1.25rem;
  font-weight: 650;
  font-stretch: 92%;
  letter-spacing: -0.02em;
}

.service-copy span {
  color: var(--muted);
}

.go {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.35s var(--ease);
}

.service-list a:hover .go,
.service-list a:focus-visible .go {
  transform: translateX(0.3rem);
}

/* Steps */

.steps {
  position: relative;
  display: grid;
  gap: 1.5rem;
}

.steps li {
  position: relative;
  padding-left: 3.25rem;
}

.steps li::before {
  content: counter(step);
  counter-increment: step;
  position: absolute;
  left: 0;
  top: 0;
  width: 2.15rem;
  height: 2.15rem;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--brass);
  border-radius: 50%;
  font-weight: 700;
  color: var(--brass-deep);
  background: var(--plate);
  z-index: 1;
}

.section-paper .steps li::before {
  background: var(--paper);
}

.steps {
  counter-reset: step;
}

.steps li p {
  margin-top: 0.4rem;
  color: var(--muted);
  max-width: 36rem;
}

.steps::after {
  content: "";
  position: absolute;
  left: 1rem;
  top: 1rem;
  bottom: 1rem;
  width: 2px;
  background: var(--brass);
  transform: scaleY(0);
  transform-origin: top;
}

.draw.is-in .steps::after {
  transform: scaleY(1);
  transition: transform 1.15s var(--ease);
}

@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding-top: 0.25rem;
  }

  .steps li {
    padding-left: 0;
    padding-top: 3.25rem;
  }

  .steps li::before {
    top: 0;
    left: 0;
  }

  .steps::after {
    left: 0;
    right: 0;
    top: 1rem;
    bottom: auto;
    width: auto;
    height: 2px;
    transform: scaleX(0);
    transform-origin: left;
  }

  .draw.is-in .steps::after {
    transform: scaleX(1);
  }
}

/* Jobs */

.jobs {
  display: grid;
  gap: 1.25rem;
}

.job {
  display: grid;
  background: var(--ink);
  color: var(--on-ink);
  min-height: 22rem;
}

.job img {
  width: 100%;
  height: 18rem;
  object-fit: cover;
}

.job-body {
  padding: 1.4rem var(--gutter) 1.6rem;
  display: grid;
  align-content: end;
  gap: 0.55rem;
}

.job-meta {
  color: var(--brass-hot);
  font-weight: 650;
}

.job-body p:last-child {
  color: var(--on-ink-dim);
}

.ticks {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
}

.ticks li {
  padding-left: 1.3rem;
  position: relative;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 2px;
  background: var(--brass-hot);
}

@media (min-width: 860px) {
  .job {
    grid-template-columns: 1.35fr 0.9fr;
    min-height: 26rem;
  }

  .job:nth-child(even) .job-photo {
    order: 2;
  }

  .job img {
    height: 100%;
    min-height: 26rem;
  }

  .job-body {
    padding: 2rem 2.2rem;
  }
}

/* Quotes */

.quotes {
  display: grid;
  gap: 0;
}

.quotes blockquote {
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
}

.quotes blockquote:last-child {
  border-bottom: 1px solid var(--line);
}

.quotes p {
  font-size: clamp(1.2rem, 1rem + 0.7vw, 1.55rem);
  font-stretch: 96%;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.35;
  max-width: 42rem;
}

.quotes footer {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.15rem;
  color: var(--muted);
}

.quotes cite {
  font-style: normal;
  font-weight: 700;
  color: var(--ink);
}

/* FAQ */

.faq details {
  border-top: 1px solid var(--line);
}

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

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
  padding: 0.9rem 0;
  font-weight: 650;
  font-size: 1.125rem;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  border-right: 2px solid var(--brass-deep);
  border-bottom: 2px solid var(--brass-deep);
  transform: rotate(45deg) translateY(-0.15rem);
  flex: none;
  transition: transform 0.3s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(225deg) translateY(-0.1rem);
}

.faq .answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease);
}

.faq details[open] .answer {
  grid-template-rows: 1fr;
}

.faq .answer > div {
  overflow: hidden;
}

.faq .answer p {
  padding-bottom: 1.1rem;
  max-width: 42rem;
  color: var(--muted);
}

.faq-group + .faq-group {
  margin-top: 2.5rem;
}

.faq-group h2 {
  margin-bottom: 0.6rem;
}

/* Form */

.contact-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: minmax(16rem, 0.8fr) 1.2fr;
    align-items: start;
  }
}

.quote {
  display: grid;
  gap: 1rem;
  padding: clamp(1.1rem, 2vw, 1.6rem);
  background: var(--plate);
  border: 1px solid var(--line);
}

.section-paper .quote {
  background: var(--plate);
}

.field {
  display: grid;
  gap: 0.35rem;
  border: 0;
  margin: 0;
  padding: 0;
  min-inline-size: 0;
}

.field legend,
.field label {
  font-weight: 650;
}

.opt {
  font-weight: 450;
  color: var(--muted);
}

input[type="text"],
input[type="tel"],
input[type="email"],
select,
textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.65rem 0.75rem;
  border: 1.5px solid color-mix(in srgb, var(--ink) 28%, var(--line));
  background: var(--plate);
  border-radius: 0;
  caret-color: var(--brass-deep);
}

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

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid var(--brass-hot);
  outline-offset: 1px;
  border-color: var(--ink);
}

input:user-invalid,
select:user-invalid,
textarea:user-invalid {
  border-color: var(--danger);
}

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.choice {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0.35rem 0.75rem;
  border: 1.5px solid var(--line);
  cursor: pointer;
}

.choice:has(input:checked) {
  border-color: var(--ink);
  background: var(--paper);
}

.choice input {
  accent-color: var(--brass-deep);
  width: 1.05rem;
  height: 1.05rem;
}

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.hint {
  color: var(--muted);
  max-width: 40rem;
}

.submit {
  display: grid;
  gap: 0.7rem;
  justify-items: start;
}

.form-ready {
  display: grid;
  gap: 0.9rem;
  padding: 0.25rem 0 0.4rem;
}

.form-ready[hidden] {
  display: none;
}

.channels {
  display: grid;
  gap: 0.65rem;
}

.channels a {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.8rem;
  align-items: center;
  min-height: 4.25rem;
  padding: 0.8rem 0.9rem;
  text-decoration: none;
  border: 1px solid var(--line);
  background: var(--plate);
}

.channels svg {
  width: 1.35rem;
  height: 1.35rem;
  grid-row: 1 / span 2;
  color: var(--brass-deep);
}

.channels strong {
  font-weight: 700;
}

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

address {
  font-style: normal;
}

/* Page head */

.page-head {
  background: var(--ink);
  color: var(--on-ink);
  padding: clamp(2.2rem, 5vw, 4.2rem) 0 clamp(2rem, 4vw, 3.4rem);
  position: relative;
  overflow: hidden;
}

.page-head .lead {
  color: var(--on-ink-dim);
  max-width: 40rem;
  margin-top: 0.9rem;
}

.page-head .acts {
  margin-top: 1.4rem;
}

.page-head .btn-line {
  color: var(--on-ink);
}

.page-head h1 {
  max-width: 18ch;
  position: relative;
}

.page-head h1::after {
  content: "";
  display: block;
  width: 4.5rem;
  height: 3px;
  margin-top: 0.9rem;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  animation: rule 0.9s var(--ease) 0.15s forwards;
}

@keyframes rule {
  to {
    transform: scaleX(1);
  }
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin-bottom: 1rem;
  color: var(--on-ink-dim);
}

.crumbs a {
  color: var(--brass-hot);
}

.crumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.5rem;
  color: var(--on-ink-dim);
}

.band {
  margin-top: 1.5rem;
  height: min(42vh, 28rem);
  overflow: hidden;
}

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

.prose {
  max-width: 42rem;
  display: grid;
  gap: 0.85rem;
}

.prose h2 {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  margin-top: 1.2rem;
}

.prose ul {
  display: grid;
  gap: 0.4rem;
  padding-left: 1.1rem;
  list-style: disc;
}

.prose a,
.textlink {
  color: var(--brass-deep);
  font-weight: 650;
}

.installs {
  display: grid;
  gap: 1.15rem;
}

.installs div,
.facts div {
  display: grid;
  gap: 0.25rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.installs dt,
.facts dt {
  font-weight: 700;
}

.facts {
  display: grid;
  gap: 0.2rem;
}

.villages {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.villages li {
  padding: 0.45rem 0.7rem;
  border: 1px solid color-mix(in srgb, var(--brass) 50%, transparent);
  color: var(--on-ink);
}

.center-page {
  min-height: calc(var(--dw-vh, 100svh) - var(--header) - 12rem);
  display: grid;
  align-items: center;
  padding: 4rem 0;
}

.center-page .wrap {
  display: grid;
  gap: 1rem;
  max-width: 40rem;
}

/* Footer + dock */

.site-footer {
  background: var(--ink);
  color: var(--on-ink-dim);
  padding: clamp(2.5rem, 5vw, 4rem) 0 1.5rem;
}

.foot-grid {
  display: grid;
  gap: 1.8rem;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid color-mix(in srgb, var(--on-ink) 16%, transparent);
}

.site-footer h2 {
  color: var(--on-ink);
  font-size: 1.05rem;
  font-stretch: 100%;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 0.7rem;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--brass-hot);
  text-decoration: underline;
}

.site-footer ul {
  display: grid;
  gap: 0.4rem;
}

.foot-brand p {
  max-width: 28rem;
  margin-top: 0.7rem;
}

.foot-brand .wordmark {
  color: var(--on-ink);
  text-decoration: none;
}

.legal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  justify-content: space-between;
  padding-top: 1.1rem;
  font-size: 1rem;
}

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 35;
  display: grid;
  grid-template-columns: 1fr 1fr 1.15fr;
  background: var(--ink);
  color: var(--on-ink);
  padding-bottom: env(safe-area-inset-bottom);
}

.dock a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 3.35rem;
  text-decoration: none;
  font-weight: 650;
  border-right: 1px solid color-mix(in srgb, var(--on-ink) 18%, transparent);
}

.dock a:last-child {
  background: var(--brass);
  color: var(--ink);
  border-right: 0;
}

.dock svg {
  width: 1.1rem;
  height: 1.1rem;
}

@media (min-width: 1100px) {
  .dock {
    display: none;
  }
}

@media (max-width: 1099px) {
  body {
    padding-bottom: calc(3.35rem + env(safe-area-inset-bottom));
  }

}

@media (min-width: 760px) {
  .foot-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .glyph path,
  .busbar .track {
    stroke-dashoffset: 0;
  }

  .page-head h1::after,
  .steps::after,
  .livewire {
    transform: none;
  }
}
