:root {
  --ink: #1d2421;
  --charcoal: #26302c;
  --cream: #f5f0e7;
  --paper: #fffaf0;
  --sage: #6f8068;
  --pine: #2f4b3f;
  --copper: #a9673a;
  --sky: #dfe8ee;
  --line: rgba(29, 36, 33, 0.16);
  --shadow: 0 18px 48px rgba(22, 30, 27, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

img {
  display: block;
  width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 54px);
  color: #fffaf0;
  background: linear-gradient(180deg, rgba(14, 20, 18, 0.74), rgba(14, 20, 18, 0.12));
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  text-decoration: none;
  font-weight: 760;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 250, 240, 0.46);
  background: rgba(255, 250, 240, 0.12);
  font-size: 0.78rem;
  letter-spacing: 0;
}

.nav-links {
  gap: clamp(12px, 3vw, 30px);
  font-size: 0.9rem;
  font-weight: 650;
}

.nav-links a {
  text-decoration: none;
  opacity: 0.86;
}

.nav-links a:hover {
  opacity: 1;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  background: var(--charcoal);
}

.hero img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 16, 14, 0.82) 0%, rgba(10, 16, 14, 0.52) 42%, rgba(10, 16, 14, 0.12) 100%),
    linear-gradient(0deg, rgba(10, 16, 14, 0.7) 0%, rgba(10, 16, 14, 0) 32%);
}

.hero-content {
  width: min(760px, calc(100% - 36px));
  margin: 0 clamp(18px, 7vw, 96px) 11vh;
  color: #fffaf0;
}

.eyebrow {
  margin: 0 0 12px;
  color: #ebc6a3;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--copper);
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 12vw, 10.5rem);
  line-height: 0.86;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.2;
}

.hero-copy {
  width: min(640px, 100%);
  margin: 24px 0 0;
  font-size: clamp(1.08rem, 2vw, 1.42rem);
  color: rgba(255, 250, 240, 0.9);
}

.hero-actions,
.button {
  display: flex;
  align-items: center;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  min-height: 46px;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  color: #fffaf0;
  background: var(--pine);
  border-color: var(--pine);
}

.button.secondary {
  color: #fffaf0;
  border-color: rgba(255, 250, 240, 0.58);
  background: rgba(255, 250, 240, 0.08);
}

.button:hover {
  transform: translateY(-1px);
}

.section,
.raise-band,
.calculator-section,
.gallery-section,
.legal-band {
  padding: clamp(58px, 9vw, 112px) 0;
  scroll-margin-top: 86px;
}

.section-inner {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.raise-band {
  background: var(--paper);
}

.raise-layout,
.calculator-layout,
.access-layout,
.returns-layout,
.legal-layout,
.inquiry-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(30px, 6vw, 76px);
  align-items: center;
}

.raise-layout p,
.section-heading p,
.calculator-copy p,
.returns-layout p,
.inquiry-layout p,
.legal-layout p {
  margin: 18px 0 0;
  color: rgba(29, 36, 33, 0.74);
  font-size: 1.05rem;
}

.raise-meter,
.calculator-panel,
.tier-card,
.returns-table,
.inquiry-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.78);
  box-shadow: var(--shadow);
}

.raise-meter {
  padding: clamp(22px, 3vw, 34px);
}

.meter-top,
.meter-stats,
.returns-table div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.meter-top {
  margin-bottom: 12px;
  font-weight: 780;
}

.meter-track {
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #dde5da;
}

.meter-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pine), var(--sage), var(--copper));
}

.meter-stats {
  gap: 12px;
  margin-top: 22px;
}

.meter-stats div,
.result-grid div {
  flex: 1;
  min-width: 0;
  padding: 14px;
  border-radius: 6px;
  background: #eef2e9;
}

.meter-stats strong,
.result-grid span {
  display: block;
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  line-height: 1;
}

.meter-stats span,
.result-grid small {
  display: block;
  margin-top: 6px;
  color: rgba(29, 36, 33, 0.62);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.section-heading {
  width: min(760px, 100%);
  margin-bottom: clamp(30px, 5vw, 54px);
}

.section-heading.compact {
  margin-bottom: 0;
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.tier-card {
  padding: 24px;
}

.tier-card.featured {
  background: var(--charcoal);
  color: #fffaf0;
}

.tier-kicker {
  margin: 0 0 12px;
  color: var(--copper);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.featured .tier-kicker,
.featured p,
.featured dd {
  color: rgba(255, 250, 240, 0.78);
}

.tier-card h3 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.tier-card p {
  min-height: 72px;
  margin: 12px 0 24px;
  color: rgba(29, 36, 33, 0.7);
}

dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

dt {
  color: rgba(29, 36, 33, 0.58);
  font-size: 0.75rem;
  font-weight: 850;
  text-transform: uppercase;
}

dd {
  margin: 2px 0 0;
  font-weight: 780;
}

.featured dt {
  color: rgba(255, 250, 240, 0.58);
}

.calculator-section,
.returns-section {
  background: #e7ece3;
}

.calculator-panel {
  padding: clamp(22px, 4vw, 38px);
}

.calculator-panel label {
  display: block;
  font-weight: 820;
}

.range-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  margin-top: 10px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fffdf7;
  color: var(--ink);
  font: inherit;
}

input[type="range"] {
  accent-color: var(--pine);
}

input[type="number"],
input[type="text"],
input[type="email"],
select,
textarea {
  min-height: 44px;
  padding: 10px 12px;
}

output {
  min-width: 110px;
  color: var(--pine);
  font-size: 1.25rem;
  font-weight: 850;
  text-align: right;
}

.assumptions {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 12px 16px;
  align-items: center;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.result-grid div {
  padding: 16px;
  background: #f8f4ea;
}

.result-grid span {
  font-weight: 850;
}

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

.rules-list {
  display: grid;
  gap: 14px;
}

.rules-list article {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.rules-list article:last-child {
  border-bottom: 1px solid var(--line);
}

.rules-list span {
  color: var(--copper);
  font-weight: 850;
}

.rules-list p {
  grid-column: 2;
  margin: 0;
  color: rgba(29, 36, 33, 0.68);
}

.returns-table {
  overflow: hidden;
  box-shadow: none;
}

.returns-table div {
  gap: 18px;
  padding: 17px 20px;
  border-top: 1px solid var(--line);
}

.returns-table .table-head {
  border-top: 0;
  color: #fffaf0;
  background: var(--charcoal);
  font-size: 0.8rem;
  font-weight: 850;
  text-transform: uppercase;
}

.gallery-section {
  background: var(--cream);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
  gap: 16px;
}

figure {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--charcoal);
}

figure img {
  height: 360px;
  object-fit: cover;
}

figure:first-child img {
  height: 460px;
}

figcaption {
  padding: 12px 14px;
  color: #fffaf0;
  font-size: 0.9rem;
  font-weight: 800;
}

.legal-band {
  color: #fffaf0;
  background: var(--charcoal);
}

.legal-layout {
  grid-template-columns: minmax(220px, 0.6fr) 1fr;
}

.legal-layout p {
  color: rgba(255, 250, 240, 0.76);
}

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

.inquiry-form {
  display: grid;
  gap: 14px;
  padding: clamp(20px, 4vw, 34px);
  box-shadow: none;
}

.inquiry-form label {
  display: grid;
  gap: 7px;
  font-weight: 800;
}

.inquiry-form .button {
  width: fit-content;
}

.form-note {
  margin: 0;
  color: rgba(29, 36, 33, 0.6);
  font-size: 0.9rem;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 4vw, 54px);
  color: rgba(255, 250, 240, 0.72);
  background: #141a18;
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .site-header {
    position: absolute;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 86vh;
  }

  .raise-layout,
  .calculator-layout,
  .access-layout,
  .returns-layout,
  .legal-layout,
  .inquiry-layout {
    grid-template-columns: 1fr;
  }

  .tier-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .tier-card p {
    min-height: auto;
  }

  .result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  figure img,
  figure:first-child img {
    height: 300px;
  }
}

@media (max-width: 560px) {
  .hero-content {
    margin-bottom: 8vh;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .meter-stats,
  .range-row,
  .assumptions,
  .result-grid {
    grid-template-columns: 1fr;
  }

  output {
    text-align: left;
  }

  .rules-list article {
    grid-template-columns: 1fr;
  }

  .rules-list p {
    grid-column: auto;
  }

  .footer {
    flex-direction: column;
  }
}
