:root {
  color-scheme: dark;
  --page: #121212;
  --surface: #1d1c1a;
  --surface-2: #262421;
  --line: #4d4944;
  --text: #f4f0e9;
  --muted: #bbb4aa;
  --brick: #a95536;
  --tape: #f0ca23;
  --black: #080808;
  --mono: "DejaVu Sans Mono", "SFMono-Regular", Consolas, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 300px;
  margin: 0;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 2%) 25%, transparent 25%) 0 0 / 34px 34px,
    linear-gradient(315deg, rgb(255 255 255 / 1.3%) 25%, transparent 25%) 0 0 / 34px 34px,
    var(--page);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.55;
}

a { color: var(--tape); text-underline-offset: .2em; }
button, a { -webkit-tap-highlight-color: transparent; }
.wrap { width: min(1260px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; top: 10px; left: 10px; padding: 9px 13px; transform: translateY(-160%); background: #fff; color: #111; font-family: var(--mono); }
.skip-link:focus { transform: none; }
.scroll-meter { position: fixed; z-index: 90; inset: 0 0 auto; height: 3px; }
.scroll-meter span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--brick), var(--tape)); }

.site-header { position: sticky; z-index: 40; top: 0; border-bottom: 1px solid rgb(255 255 255 / 9%); background: rgb(18 18 18 / 90%); backdrop-filter: blur(16px); }
.topbar { display: flex; min-height: 68px; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; color: white; font-family: var(--mono); font-size: .72rem; font-weight: 700; text-decoration: none; }
.brand span { padding: 7px 18px 7px 16px; clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 50%, calc(100% - 9px) 100%, 0 100%, 9px 50%); }
.brand span + span { margin-left: -7px; }
.brand-back { padding-left: 11px !important; background: var(--brick); clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 50%, calc(100% - 9px) 100%, 0 100%) !important; }
.brand-name { background: #4a4743; }
.brand-state { background: #252422; color: var(--tape); }
.nav-links { display: flex; gap: 24px; font-family: var(--mono); font-size: .72rem; }
.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a:hover { color: white; }

.hero { padding: clamp(70px, 9vw, 135px) 0 0; }
.hero-grid { display: grid; grid-template-columns: .88fr 1.12fr; align-items: center; gap: clamp(42px, 7vw, 105px); }
.kicker { margin: 0 0 18px; color: var(--tape); font-family: var(--mono); font-size: .71rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.kicker span { color: var(--brick); }
h1, h2 { margin: 0; font-family: var(--mono); letter-spacing: -.065em; line-height: .98; }
h1 { font-size: clamp(3rem, 6.8vw, 7rem); }
h1 span { color: var(--tape); }
h2 { font-size: clamp(2.25rem, 5vw, 5.1rem); }
.lede { max-width: 680px; margin: 26px 0 0; color: #d7d1c9; font-size: clamp(1rem, 1.5vw, 1.18rem); }
.button { display: inline-block; margin-top: 30px; padding: 13px 17px; border: 1px solid var(--tape); border-radius: 3px; color: var(--text); font-family: var(--mono); font-size: .75rem; font-weight: 700; text-decoration: none; }
.button:hover { background: var(--tape); color: var(--black); }

.hero-figure, .photo, .house-figure { overflow: hidden; margin: 0; border: 1px solid var(--line); border-radius: 3px; background: var(--surface); }
.hero-figure button, .photo button, .house-figure button { display: block; width: 100%; padding: 0; border: 0; background: var(--black); cursor: zoom-in; }
.hero-figure button { aspect-ratio: 4 / 3; }
.hero-figure img, .photo img, .house-figure img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .25s ease; }
.hero-figure button:hover img, .photo button:hover img, .house-figure button:hover img { transform: scale(1.012); }
.hero-figure figcaption, .photo figcaption, .house-figure figcaption { display: flex; justify-content: space-between; gap: 16px; padding: 11px 14px; color: var(--muted); font-family: var(--mono); font-size: .66rem; }
.hero-figure figcaption span:first-child, .photo figcaption span, .house-figure figcaption span { color: var(--tape); }
.photo figcaption strong, .house-figure figcaption strong { color: var(--text); font-weight: 600; text-align: right; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 70px; border-block: 1px solid var(--line); }
.facts div { padding: 22px 24px; border-left: 1px solid var(--line); }
.facts div:first-child { border-left: 0; }
.facts span, .facts strong { display: block; }
.facts span { color: var(--muted); font-family: var(--mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; }
.facts strong { margin-top: 4px; font-family: var(--mono); font-size: .84rem; }

.section { padding: clamp(88px, 11vw, 150px) 0; }
.section.alt { background: rgb(255 255 255 / 2%); box-shadow: inset 0 1px var(--line), inset 0 -1px var(--line); }
.section-heading { max-width: 900px; margin-bottom: 50px; }
.section-heading p:last-child { max-width: 760px; margin: 24px 0 0; color: var(--muted); }
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.gallery .photo { grid-column: span 4; }
.gallery .wide { grid-column: span 8; }
.photo button { aspect-ratio: 4 / 3; }
.photo.portrait button { aspect-ratio: 3 / 4; }
.gallery .wide button { aspect-ratio: 16 / 10; }
.finish-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.finish-grid .photo button { aspect-ratio: 4 / 3; }
.house-figure { margin-top: 20px; border-color: var(--brick); }
.house-figure button { aspect-ratio: 1800 / 1323; }
.end-actions { margin-top: 55px; text-align: center; }

.site-footer { display: flex; min-height: 104px; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); font-family: var(--mono); font-size: .68rem; }
.site-footer a { text-decoration: none; }
.lightbox { width: min(95vw, 1600px); max-width: none; max-height: 94vh; padding: 48px 12px 12px; border: 1px solid var(--line); border-radius: 4px; background: #060606; color: var(--text); box-shadow: 0 30px 100px #000; }
.lightbox::backdrop { background: rgb(0 0 0 / 88%); backdrop-filter: blur(5px); }
.lightbox img { display: block; width: auto; max-width: 100%; height: auto; max-height: calc(94vh - 90px); margin: auto; object-fit: contain; }
.lightbox p { margin: 9px 4px 0; color: var(--muted); font-family: var(--mono); font-size: .68rem; text-align: center; }
.lightbox-close { position: absolute; top: 10px; right: 12px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 3px; background: var(--surface); color: var(--text); font-family: var(--mono); cursor: pointer; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { max-width: 760px; }
  .gallery .photo, .gallery .wide { grid-column: span 6; }
  .gallery .wide button { aspect-ratio: 4 / 3; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .facts div:nth-child(4) { border-top: 1px solid var(--line); }
}

@media (max-width: 580px) {
  .wrap { width: min(100% - 24px, 1260px); }
  .site-header { position: relative; }
  .brand-state, .nav-links { display: none; }
  .hero { padding-top: 52px; }
  .gallery { grid-template-columns: 1fr; }
  .gallery .photo, .gallery .wide { grid-column: auto; }
  .gallery .wide button, .photo button { aspect-ratio: 4 / 3; }
  .photo.portrait button { aspect-ratio: 3 / 4; }
  .finish-grid { grid-template-columns: 1fr; }
  .site-footer { display: block; padding: 30px 0; }
  .site-footer span { display: block; margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-figure img, .photo img, .house-figure img { transition: none; }
}
