@font-face {
  font-family: 'Public Sans';
  src: url('/assets/public-sans.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
:root { color-scheme: dark; scroll-padding-top: 1.5rem; }
[hidden] { display: none !important; }
body { margin: 0; font: 400 1rem/1.6 'Public Sans', sans-serif; color: var(--ink); background: var(--base); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .23em; }
a:hover { text-decoration-thickness: .12em; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.03; }
p + p { margin-top: .8rem; }
.wrap { width: min(calc(100% - 80px), 1280px); margin-inline: auto; }
.skip { position: fixed; top: .75rem; left: .75rem; z-index: 10; padding: .5rem .9rem; color: var(--base); background: var(--accent); transform: translateY(-180%); }
.skip:focus { transform: none; }

.site-header { position: relative; z-index: 5; border-bottom: 1px solid var(--line); }
.home .site-header { position: absolute; inset: 0 0 auto; background: linear-gradient(180deg,#08081195,transparent); }
.header-row { min-height: 86px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem; }
.brand { display: inline-flex; width: fit-content; align-items: center; gap: .8rem; text-decoration: none; font-weight: 700; }
.nav { display: flex; align-items: center; gap: clamp(1.4rem,4vw,3.4rem); }
.nav a, .header-contact { padding-block: .7rem; text-decoration: none; color: var(--ink); font-size: .85rem; font-weight: 700; white-space: nowrap; }
.nav a[aria-current='page'] { color: var(--accent); text-decoration: underline; }
.header-contact { justify-self: end; padding-inline: 1rem; border: 1px solid var(--line-strong); }
.menu { display: none; color: var(--ink); background: var(--panel); border: 1px solid var(--line-strong); padding: .5rem .9rem; min-height: 44px; }
.brand, .nav a, .header-contact, .button { transition: color .2s ease, background-color .2s ease, border-color .2s ease; }
.header-contact:hover, .nav a:hover, .text-link:hover { color: var(--accent); }

.hero { position: relative; isolation: isolate; min-height: 100svh; display: grid; overflow: clip; }
.hero-photo, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-photo { z-index: -2; object-fit: cover; }
.hero::after { content: ''; z-index: -1; pointer-events: none; }
.hero-copy { animation: entrance .45s ease-out both; }
.hero-caption, .feature-photo figcaption { font-size: .72rem; line-height: 1.35; }
.hero-caption { position: absolute; right: max(40px,calc((100% - 1280px)/2)); bottom: 1rem; color: #eee; background: #101019a8; padding: .22rem .45rem; }
.actions { display: flex; flex-wrap: wrap; gap: .7rem 1rem; align-items: center; }
.button { display: inline-flex; width: fit-content; justify-content: center; align-items: center; min-height: 48px; padding: .72rem 1.22rem; border: 1px solid transparent; color: var(--button-ink); background: var(--accent); font-size: .9rem; font-weight: 700; text-decoration: none; }
.button:hover { background: var(--accent-hover); }
.button-outline { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.button-outline:hover { background: var(--panel); }
.text-link { font-weight: 700; }
.feature-photo { position: relative; align-self: stretch; overflow: hidden; }
.feature-photo img { width: 100%; height: 100%; aspect-ratio: 3/2; object-fit: cover; }
.feature-photo figcaption { position: absolute; right: .6rem; bottom: .6rem; background: #111216d9; color: #eee; padding: .22rem .45rem; }
.split { display: grid; gap: clamp(2rem,7vw,7rem); grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: center; }

.quote { padding-block: clamp(2.5rem,7vw,6rem); }
.quote-grid { margin-top: 2rem; display: grid; gap: clamp(2rem,7vw,6rem); grid-template-columns: minmax(0,3fr) minmax(0,2fr); }
.intro { color: var(--muted); margin-bottom: 1.4rem; max-width: 46ch; }
.quote-form { display: grid; gap: .9rem; }
.quote-form label, .note-review label { font-size: .86rem; font-weight: 700; }
.quote-form label span { font-weight: 400; color: var(--muted); }
.fields { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: .7rem 1rem; }
.field { display: grid; align-content: start; gap: .4rem; min-width: 0; }
input, textarea, select { width: 100%; min-width: 0; padding: .6rem .75rem; background: var(--panel); color: var(--ink); border: 1px solid var(--line-strong); border-radius: 0; }
input, textarea, select { min-height: 44px; }
textarea { resize: vertical; }
.quote-form .button { margin-top: .25rem; }
.note-review { margin-top: 1.7rem; padding: clamp(1rem,3vw,1.6rem); background: var(--panel); border: 1px solid var(--line); }
.note-review h2 { margin-bottom: .9rem; }
.note-review textarea { margin: .4rem 0 .75rem; }
.copy-status { min-height: 1.3em; margin-top: .65rem; color: var(--muted); font-size: .84rem; }
.quote-aside { align-self: start; border-top: 1px solid var(--line-strong); padding-top: 1.25rem; display: grid; justify-items: start; gap: .85rem; }
.quote-aside p { color: var(--muted); max-width: 40ch; }
.phone-big { color: var(--accent); font-size: 1.3rem; font-weight: 700; }

.site-footer { background: var(--footer); color: var(--ink); border-top: 1px solid var(--line); padding: 2.6rem 0 .85rem; }
.footer-main { display: grid; grid-template-columns: 1fr auto 1fr; gap: 2rem; padding-bottom: 2rem; }
.footer-brand { font-weight: 700; text-decoration: none; }
.footer-main p, .footer-bottom { color: var(--muted); font-size: .83rem; }
.footer-main nav, .footer-contact { display: grid; align-content: start; justify-items: start; gap: .42rem; font-size: .88rem; }
.footer-contact { justify-self: end; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; min-height: 45px; border-top: 1px solid var(--line); padding-top: .9rem; gap: .7rem; }
.built-by { display: inline-flex; flex-shrink: 0; align-items: center; gap: 8px; color: #e3e3e8; text-decoration: none; }
.built-by > span { font: 400 8px/1.8 'Public Sans', sans-serif; }
.credit-logo { display: block; overflow: visible; width: 54px; height: 29px; max-width: none; }

@keyframes entrance { from { opacity: .62; transform: translateY(9px); } to { opacity: 1; transform: none; } }
[data-reveal].is-visible { animation: entrance .43s ease-out both; }

@media (max-width: 760px) {
  .wrap { width: calc(100% - 36px); }
  .header-row { display: flex; flex-wrap: wrap; gap: 0 .7rem; justify-content: space-between; min-height: 70px; padding-block: .45rem; }
  .menu { display: inline-flex; align-items: center; }
  .header-contact { display: none; }
  .nav { order: 3; width: 100%; flex-wrap: wrap; background: var(--panel); padding: .55rem .85rem; gap: .7rem 1.1rem; margin: .4rem 0 .25rem; }
  .nav a { padding-block: .55rem; }
  .hero-caption { right: 18px; }
  .split, .quote-grid { grid-template-columns: minmax(0,1fr); gap: 2rem; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .footer-main > div:first-child { grid-column: 1/-1; }
  .footer-contact { justify-self: end; }
  .built-by { gap: 7px; }
  .built-by > span { font-size: 7px; }
}

@media (max-width: 370px) {
  .wrap { width: calc(100% - 30px); }
  .fields { grid-template-columns: minmax(0,1fr); }
  .built-by { gap: 5px; }
}

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