:root {
  --pad: clamp(22px, 3.2vw, 56px);
  --paper: #fbf8f2;
  --ink: #17120d;
  --ink-dim: #57493c;
  --gold: #b78426;        /* decorative rules, button, gold-on-dark */
  --gold-ink: #836016;    /* gold text on light surfaces (AA-safe) */
  --rule: rgba(23, 18, 13, 0.14);
  --rule-strong: rgba(23, 18, 13, 0.30);
  --night: #17110c;
  --night-ink: #e8e6e1;
  --night-ink-dim: #a8a59f;
  --night-ink-faint: #8f8d83;
  --night-rule: rgba(232, 230, 225, 0.10);
  --night-rule-strong: rgba(232, 230, 225, 0.22);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

body {
  position: relative;
  overflow-x: hidden;
}

/* motion only when the visitor hasn't asked to reduce it */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  @view-transition { navigation: auto; }
}

/* ===== SUBTLE SURVEY-GRID BACKGROUND ===== */
.bg-plat {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background: url("assets/bg-plat.svg") center center / cover no-repeat;
}

.hero-sky, .page-head, .section, .dark-band { position: relative; z-index: 2; }

/* ===== HERO: DUSK PHOTOGRAPH ===== */
.hero-sky {
  min-height: min(96vh, 980px);
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(251, 248, 242, 0.7) 0%, rgba(251, 248, 242, 0) 22%),
    linear-gradient(102deg, rgba(251, 248, 242, 0.94) 0%, rgba(251, 248, 242, 0.66) 30%, rgba(251, 248, 242, 0.22) 52%, rgba(251, 248, 242, 0) 68%),
    url("assets/dusk-field.jpg") center bottom / cover no-repeat;
  overflow: hidden;
}

/* ===== COMPACT PAGE HEADER (photographic) ===== */
.page-head {
  display: flex;
  flex-direction: column;
  min-height: clamp(340px, 48vh, 520px);
  background:
    linear-gradient(180deg, rgba(251, 248, 242, 0.72) 0%, rgba(251, 248, 242, 0) 30%),
    linear-gradient(102deg, rgba(251, 248, 242, 0.94) 0%, rgba(251, 248, 242, 0.6) 30%, rgba(251, 248, 242, 0.15) 52%, rgba(251, 248, 242, 0) 66%),
    url("assets/dusk-field.jpg") center bottom / cover no-repeat;
  overflow: hidden;
}

.page-title-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1320px;
  margin: 0 auto;
  width: 100%;
  padding: clamp(28px, 5vh, 60px) var(--pad) clamp(96px, 18vh, 156px);
  position: relative;
  z-index: 2;
}

.page-title {
  font-family: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  font-weight: 600;
  font-size: clamp(44px, 7vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* ===== TOP BAR (over the sky) ===== */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding: var(--pad) var(--pad) clamp(20px, 3vh, 40px);
  border-bottom: 1px solid rgba(23, 18, 13, 0.14);
  position: relative;
  z-index: 3;
}

.brand-mark {
  font-size: 18px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-weight: 900;
  color: var(--ink);
  white-space: nowrap;
  text-decoration: none;
}

.nav {
  margin-left: auto;
  display: flex;
  gap: clamp(20px, 2.6vw, 40px);
  padding-top: 1px;
}

.nav a {
  font-size: 18px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 900;
  color: var(--ink-dim);
  text-decoration: none;
  transition: color 0.25s ease;
}

.nav a:hover,
.nav a.current { color: var(--ink); }

/* ===== HERO TEXT ===== */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 1320px;
  margin: 0 auto;
  width: 100%;
  padding: clamp(50px, 8vh, 110px) var(--pad) clamp(200px, 34vh, 380px);
  position: relative;
  z-index: 2;
}

.wordmark {
  font-family: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  font-weight: 600;
  font-size: clamp(52px, 9vw, 152px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: clamp(24px, 4vh, 48px);
}

.tagline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-size: clamp(20px, 2.4vw, 32px);
  line-height: 1.3;
  color: var(--ink);
  max-width: 760px;
}

.tagline .second {
  display: block;
  color: var(--ink-dim);
  margin-top: 0.35em;
}

/* ===== SECTIONS ===== */
.section {
  border-top: 1px solid var(--rule);
  padding: clamp(64px, 10vh, 120px) var(--pad);
  scroll-margin-top: 28px;
  background: var(--paper);
}

.section.alt { background: #f4efe6; }

.section-grid {
  max-width: 1320px;
  margin: 0 auto;
}

.s-head {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-size: clamp(32px, 3.6vw, 50px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: clamp(24px, 3.5vh, 40px);
  max-width: 720px;
}

.body-text {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.85;
  color: var(--ink-dim);
  max-width: 640px;
}

.body-text + .body-text { margin-top: 1.4em; }

/* ===== PILLARS ===== */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 3vw, 48px);
  margin-top: clamp(28px, 4vh, 48px);
}

.pillar {
  border-top: 2px solid var(--gold);
  padding-top: 22px;
}

.p-name {
  font-size: 13px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink);
}

.p-line {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-size: 24px;
  line-height: 1.3;
  color: var(--ink);
  margin: 16px 0 12px;
}

.p-body {
  font-size: 16.5px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--ink-dim);
}

/* ===== PHOTO BAND ===== */
.photo-band {
  position: relative;
  z-index: 2;
  margin: 0;
  border-top: 1px solid var(--rule);
}

.photo-band img {
  width: 100%;
  height: clamp(320px, 58vh, 620px);
  object-fit: cover;
  display: block;
}

/* full panorama (show whole image, no crop) */
.photo-band.pano img { height: auto; }

/* ===== FRAMED PLATE (contained heritage photo) ===== */
.plate {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(52px, 8vh, 100px) var(--pad);
  position: relative;
  z-index: 2;
}
.plate img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--rule-strong);
}
/* ===== DOCUMENT LINK ===== */
.doc-link {
  display: inline-block;
  margin-top: clamp(26px, 4vh, 40px);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  color: #17110c;
  background: var(--gold);
  border: 1px solid var(--gold);
  padding: 16px 32px;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease;
}

.doc-link:hover { background: transparent; color: var(--gold-ink); }

/* ===== HIGH PLAINS REGION MAP ===== */
.region {
  display: grid;
  grid-template-columns: minmax(0, 460px) 1fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}

.region-map { margin: 0; }
.region-map img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--rule-strong);
}
@media (max-width: 860px) {
  .region { grid-template-columns: 1fr; gap: 28px; }
}

/* ===== DARK CONTACT BAND ===== */
.dark-band {
  background: var(--night);
  color: var(--night-ink);
}

.dark-band .section {
  background: transparent;
  border-top: none;
}


.dark-band .s-head { color: var(--night-ink); }

.contact-wrap { position: relative; overflow: hidden; }

.contact-line {
  font-size: 16.5px;
  font-weight: 400;
  line-height: 1.85;
  color: var(--night-ink-dim);
  max-width: 560px;
  margin-bottom: clamp(28px, 4vh, 44px);
}

.q-form { max-width: 560px; position: relative; z-index: 2; }

.q-form .field { margin-bottom: 30px; }

.q-form label {
  display: block;
  font-size: 13px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--night-ink-faint);
  margin-bottom: 10px;
}

.q-form input,
.q-form textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--night-rule-strong);
  color: var(--night-ink);
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  font-size: 16.5px;
  line-height: 1.6;
  padding: 8px 0 12px;
  border-radius: 0;
}

.q-form input:focus,
.q-form textarea:focus {
  outline: none;
  border-bottom-color: var(--gold);
}

.q-form textarea { resize: vertical; min-height: 96px; }

.q-form button {
  background: var(--gold);
  border: 1px solid var(--gold);
  color: #17110c;
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 16px 38px;
  cursor: pointer;
  margin-top: 6px;
  transition: background 0.25s ease, color 0.25s ease;
}

.q-form button:hover {
  background: transparent;
  color: var(--gold);
}

.form-done {
  display: none;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.4;
  color: var(--night-ink);
}

.hp { display: none; }

.mail-line {
  margin-top: clamp(28px, 4vh, 44px);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--night-ink-dim);
}

/* hairline pumpjack, in the dark band */
.pump-mark {
  position: absolute;
  top: 50%;
  transform: translateY(-58%);
  right: clamp(20px, 6vw, 120px);
  width: clamp(180px, 20vw, 300px);
  height: clamp(180px, 20vw, 300px);
  z-index: 1;
  pointer-events: none;
}
.pump-mark svg { width: 100%; height: 100%; display: block; }

/* ===== HOME CTA BAND (inside dark footer) ===== */
.cta {
  border-bottom: 1px solid var(--night-rule);
  padding: clamp(48px, 9vh, 100px) var(--pad);
}

.cta-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(28px, 5vw, 72px);
  flex-wrap: wrap;
}

.cta-head {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--night-ink);
  max-width: 600px;
}

.cta-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  font-family: 'Lato', -apple-system, sans-serif;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 16px 30px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn-primary { background: var(--gold); border: 1px solid var(--gold); color: #17110c; }
.btn-primary:hover { background: transparent; color: var(--gold); }
.btn-ghost { background: transparent; border: 1px solid var(--night-rule-strong); color: var(--night-ink); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

@media (max-width: 720px) {
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .cta-actions { width: 100%; }
  .btn { flex: 1; text-align: center; }
}

/* ===== FOOTER (inside dark band) ===== */
.bottom {
  border-top: 1px solid var(--night-rule);
  padding: clamp(24px, 3.5vh, 40px) var(--pad) var(--pad);
}

.disclaimer {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--night-ink-faint);
  max-width: 760px;
  margin-bottom: clamp(24px, 3.5vh, 36px);
}

.footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--night-ink-dim);
  font-weight: 700;
}

.footer .right {
  text-align: right;
  color: var(--night-ink-faint);
}

.footer .nav-foot {
  display: flex;
  gap: 22px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.footer .nav-foot a {
  color: var(--night-ink-dim);
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer .nav-foot a:hover { color: var(--night-ink); }

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
  .pump-mark { display: none; }
}

@media (max-width: 720px) {
  .topbar { flex-direction: column; gap: 16px; }
  .nav { margin-left: 0; flex-wrap: wrap; }
  .hero { padding-top: 40px; padding-bottom: clamp(180px, 30vh, 260px); }
  .page-title-wrap { padding-bottom: clamp(120px, 22vh, 160px); }
  .wordmark { letter-spacing: -0.015em; }
  .pillars { grid-template-columns: 1fr; }
  .footer {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .footer .right { text-align: left; }
  .footer .nav-foot { justify-content: flex-start; }
}

@media (max-width: 380px) {
  .wordmark { font-size: clamp(40px, 13vw, 52px); }
  .tagline { font-size: 18px; }
}

/* very subtle film grain, keeps it from feeling sterile */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.35   0 0 0 0 0.30   0 0 0 0 0.24   0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.4;
  mix-blend-mode: multiply;
  z-index: 100;
}
