:root {
  --dark: #0b0b0b;
  --dark-soft: #12110f;
  --cream: #f4eee2;
  --cream-muted: #dfd5c5;
  --text: #f4eee2;
  --muted: #b8b2a7;
  --ink: #1b1714;
  --terracotta: #c7522a;
  --gold: #b8924a;
  --border: rgba(244, 238, 226, 0.15);
  --dark-border: rgba(27, 23, 20, 0.16);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--dark);
  font-family: var(--sans);
  font-size: 16px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 76% 8%, rgba(199, 82, 42, 0.12), transparent 26rem),
    radial-gradient(circle at 12% 18%, rgba(184, 146, 74, 0.1), transparent 28rem);
}

a {
  color: inherit;
  text-decoration: none;
}

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

input,
select,
textarea,
button,
a {
  outline-offset: 4px;
}

:focus-visible {
  outline: 1px solid var(--gold);
}

.audit-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(calc(100% - 24px), var(--max));
  min-height: 64px;
  margin: 12px auto 0;
  padding: 0 clamp(18px, 3vw, 32px);
  border: 1px solid var(--border);
  background: rgba(11, 11, 11, 0.84);
  backdrop-filter: blur(18px);
}

.audit-brand,
.audit-nav a,
.header-cta,
.eyebrow,
.button,
.diagnostic-card li span,
.steps-grid span,
.include-grid span {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.audit-brand {
  color: var(--text);
}

.audit-nav {
  display: flex;
  gap: clamp(16px, 3vw, 34px);
}

.audit-nav a {
  color: var(--muted);
  transition: color 180ms ease;
}

.audit-nav a:hover {
  color: var(--gold);
}

.header-cta {
  padding: 11px 16px;
  border: 1px solid var(--gold);
  color: var(--text);
}

.audit-hero,
.audit-section,
.manifest,
.filter-section,
.focus-shift,
.form-section,
.central-cta,
.audit-footer {
  width: min(calc(100% - 24px), var(--max));
  margin: 0 auto;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.audit-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.62fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  min-height: calc(100vh - 88px);
  padding: clamp(34px, 5vw, 64px) clamp(24px, 5vw, 64px);
}

.hero-copy {
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
}

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

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

h1,
h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: 0;
}

h1 {
  max-width: 18ch;
  font-size: clamp(3.2rem, 5.2vw, 5.75rem);
}

h2 {
  font-size: clamp(2.25rem, 4.5vw, 5rem);
}

h3 {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.15;
}

p {
  color: var(--muted);
  line-height: 1.62;
}

.hero-lead {
  max-width: 700px;
  margin-top: 22px;
  color: var(--text);
  font-size: clamp(1.02rem, 1.45vw, 1.24rem);
}

.hero-copy p:not(.hero-lead):not(.eyebrow) {
  max-width: 640px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.button::after {
  content: "->";
  margin-left: 12px;
  letter-spacing: 0;
}

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

.button.primary {
  background: var(--gold);
  border-color: var(--gold);
  color: #15110b;
}

.button.primary:hover {
  background: #d4ac63;
}

.button.secondary {
  border-color: var(--border);
  color: var(--text);
}

.dark-button {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: #fffaf2;
}

.microcopy {
  margin: 12px 0 0;
  font-size: 0.92rem;
}

.diagnostic-card {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--border);
  background:
    linear-gradient(145deg, rgba(244, 238, 226, 0.075), rgba(244, 238, 226, 0.02)),
    var(--dark-soft);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.32);
}

.diagnostic-card h2 {
  font-size: clamp(1.75rem, 2.6vw, 2.85rem);
}

.diagnostic-card ul {
  display: grid;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.diagnostic-card li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  border-top: 1px solid var(--border);
  color: var(--text);
}

.diagnostic-card li span {
  color: var(--gold);
}

.section-cream {
  color: var(--ink);
  background: var(--cream);
  border-color: var(--dark-border);
}

.section-cream p {
  color: rgba(27, 23, 20, 0.74);
}

.manifest,
.focus-shift {
  padding: clamp(58px, 8vw, 104px) clamp(24px, 7vw, 90px);
}

.narrow-copy {
  max-width: 920px;
}

.narrow-copy h2 {
  margin-bottom: 28px;
}

.narrow-copy p {
  max-width: 830px;
  font-size: clamp(1.08rem, 1.7vw, 1.32rem);
}

.audit-section,
.form-section {
  padding: clamp(56px, 7vw, 92px) clamp(24px, 6vw, 74px);
}

.section-heading {
  max-width: 860px;
  margin: 0 auto 38px;
  text-align: center;
}

.section-heading.left {
  margin-right: 0;
  margin-left: 0;
  text-align: left;
}

.leak-grid,
.include-grid,
.steps-grid {
  display: grid;
  gap: 16px;
}

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

.leak-grid article,
.steps-grid article {
  min-height: 310px;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--border);
  background: rgba(244, 238, 226, 0.035);
  transition: transform 180ms ease, border-color 180ms ease;
}

.leak-grid article:hover,
.steps-grid article:hover {
  transform: translateY(-3px);
  border-color: rgba(184, 146, 74, 0.45);
}

.leak-grid span {
  display: block;
  margin-bottom: 22px;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 3.2rem;
}

.center-cta {
  margin-top: 34px;
  text-align: center;
}

.split-lists {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.1fr);
  gap: clamp(30px, 6vw, 82px);
}

.elegant-list {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.elegant-list li {
  position: relative;
  padding: 0 0 18px 34px;
  border-bottom: 1px solid var(--border);
  line-height: 1.55;
}

.elegant-list li::before {
  content: "";
  position: absolute;
  top: 0.5em;
  left: 0;
  width: 16px;
  height: 1px;
  background: var(--gold);
}

.filter-section {
  padding: clamp(64px, 9vw, 118px) clamp(24px, 7vw, 90px);
  background:
    linear-gradient(90deg, rgba(11, 11, 11, 0.98), rgba(11, 11, 11, 0.78)),
    url("../assets/focus-photographer.jpg");
  background-position: center;
  background-size: cover;
}

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

.include-grid article {
  min-height: 280px;
  padding: 24px;
  border: 1px solid var(--dark-border);
  background: rgba(255, 255, 255, 0.42);
}

.include-grid span,
.steps-grid span {
  display: block;
  margin-bottom: 18px;
  color: var(--terracotta);
}

.include-grid p {
  font-size: 0.98rem;
}

.bio-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1fr);
  gap: clamp(34px, 6vw, 82px);
  align-items: center;
}

.bio-photo {
  min-height: clamp(420px, 48vw, 620px);
  border: 1px solid var(--border);
  background:
    linear-gradient(0deg, rgba(11, 11, 11, 0.38), transparent 60%),
    url("../assets/yo-rtve.png");
  background-position: 58% center;
  background-size: cover;
  filter: saturate(0.78) contrast(1.05) brightness(0.78);
}

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

.central-cta {
  padding: clamp(58px, 8vw, 96px) 24px;
  text-align: center;
  background:
    linear-gradient(90deg, rgba(11, 11, 11, 0.96), rgba(11, 11, 11, 0.72)),
    url("../assets/final-texture.jpg");
  background-position: center;
  background-size: cover;
}

.central-cta p {
  max-width: 720px;
  margin-right: auto;
  margin-left: auto;
}

.form-section {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(320px, 1fr);
  gap: clamp(34px, 6vw, 82px);
  align-items: start;
}

.form-intro {
  position: sticky;
  top: 110px;
}

.audit-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--dark-border);
  background: rgba(255, 255, 255, 0.5);
}

.field {
  display: grid;
  gap: 8px;
}

.field.wide,
.form-footer {
  grid-column: 1 / -1;
}

label {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.45;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(27, 23, 20, 0.22);
  border-radius: 0;
  padding: 14px 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--terracotta);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--terracotta);
}

.field-error {
  color: #8c2d18;
  font-size: 0.86rem;
}

.form-note,
.form-status {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.faq-list {
  max-width: 940px;
  margin: 0 auto;
}

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

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

summary {
  cursor: pointer;
  padding: 22px 0;
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2vw, 2rem);
}

details p {
  max-width: 760px;
  margin-top: 0;
  padding-bottom: 22px;
}

.audit-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 28px;
  padding: 34px clamp(24px, 6vw, 74px);
}

.audit-footer strong {
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
}

.audit-footer p {
  margin-bottom: 0;
}

.audit-footer nav {
  display: grid;
  gap: 10px;
  color: var(--muted);
}

@media (max-width: 980px) {
  .audit-header {
    flex-wrap: wrap;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .audit-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .audit-hero,
  .split-lists,
  .bio-section,
  .form-section,
  .audit-footer {
    grid-template-columns: 1fr;
  }

  .audit-hero {
    min-height: auto;
    padding-top: clamp(34px, 6vw, 54px);
    padding-bottom: clamp(34px, 6vw, 54px);
  }

  h1 {
    max-width: 15ch;
    font-size: clamp(3.2rem, 8.4vw, 5.25rem);
  }

  .hero-lead {
    margin-top: 20px;
  }

  .diagnostic-card {
    max-width: 620px;
  }

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

  .form-intro {
    position: static;
  }
}

@media (max-width: 680px) {
  .audit-header,
  .audit-hero,
  .audit-section,
  .manifest,
  .filter-section,
  .focus-shift,
  .form-section,
  .central-cta,
  .audit-footer {
    width: calc(100% - 14px);
  }

  .header-cta {
    margin-left: auto;
  }

  .audit-nav {
    display: none;
  }

  .audit-hero,
  .audit-section,
  .manifest,
  .filter-section,
  .focus-shift,
  .form-section {
    padding-right: 20px;
    padding-left: 20px;
  }

  .audit-hero {
    padding-top: 34px;
    padding-bottom: 34px;
  }

  h1 {
    max-width: 12.4ch;
    font-size: clamp(2.85rem, 12vw, 4.5rem);
  }

  .hero-lead {
    margin-top: 18px;
    font-size: 1rem;
  }

  .hero-copy p:not(.hero-lead):not(.eyebrow) {
    font-size: 0.98rem;
  }

  .hero-actions {
    margin-top: 20px;
  }

  .leak-grid,
  .include-grid,
  .steps-grid,
  .audit-form {
    grid-template-columns: 1fr;
  }

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

  .diagnostic-card,
  .leak-grid article,
  .steps-grid article {
    min-height: auto;
  }

  .bio-photo {
    min-height: 440px;
  }
}

@media (max-width: 420px) {
  .audit-brand,
  .header-cta,
  .button {
    font-size: 0.66rem;
  }

  .audit-header {
    gap: 12px;
  }

  .header-cta {
    padding-right: 12px;
    padding-left: 12px;
  }

  h1 {
    font-size: clamp(2.55rem, 13vw, 3.65rem);
  }
}
