:root {
  --bg: #0b0b0c;
  --bg-elev: #121214;
  --bg-card: #151517;
  --ink: #f3efe6;
  --muted: #9b958a;
  --line: rgba(243, 239, 230, 0.12);
  --line-strong: rgba(243, 239, 230, 0.22);
  --gold: #c6a36a;
  --gold-2: #e0c48a;
  --gold-dim: rgba(198, 163, 106, 0.14);
  --gold-line: rgba(198, 163, 106, 0.45);
  --danger: #e8b4b4;
  --serif: "Instrument Serif", "Times New Roman", Times, serif;
  --sans: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --wrap: 1120px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 4px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 200;
  opacity: 0.05;
  background-image: url("/images/home-noise.png");
  background-size: 256px 256px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--gold);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--gold-2);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 100;
  padding: 0.55rem 0.85rem;
  background: var(--gold);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: min(var(--wrap), 100%);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 11, 12, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.25rem;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}

.brand:hover {
  color: var(--ink);
}

.brand__name {
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: 0.12em;
  font-weight: 400;
}

.brand__tag {
  display: none;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (min-width: 720px) {
  .brand__tag {
    display: inline;
  }

  .brand__tag::before {
    content: "";
    display: inline-block;
    width: 1.5rem;
    height: 1px;
    background: var(--gold);
    margin-right: 0.7rem;
    vertical-align: middle;
    transform: translateY(-0.15em);
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #16140f;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.2;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  background: var(--gold-2);
  border-color: var(--gold-2);
  color: #16140f;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  border-color: var(--gold);
  background: var(--gold-dim);
  color: var(--ink);
}

.btn--block {
  width: 100%;
}

.nav__cta {
  flex: 0 0 auto;
  padding: 0.7rem 1rem;
  font-size: 0.84rem;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex: 0 0 auto;
}

.nav__fitness {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 500;
  white-space: nowrap;
}

.nav__fitness:hover {
  color: var(--gold);
}

section[id],
#top,
#main {
  scroll-margin-top: 5.5rem;
}

/* Hero */
.hero {
  padding: clamp(3.5rem, 8vw, 7.5rem) 0 clamp(4rem, 8vw, 7rem);
  border-bottom: 1px solid var(--line);
  position: relative;
}

.hero__eyebrow {
  margin: 0 0 1.5rem;
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 7.2vw, 5.4rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  max-width: 14ch;
}

.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-2);
}

.hero__sub {
  margin: 1.6rem 0 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.1rem;
}

/* Sections */
.section {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
  border-bottom: 1px solid var(--line);
}

.kicker {
  margin: 0 0 0.85rem;
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
}

.section h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4.6vw, 3.35rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 18ch;
}

.lede {
  margin: 1.15rem 0 0;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.section-head {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

/* Problem cards */
.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 800px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
  }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 1.5rem 1.4rem 1.6rem;
  min-height: 100%;
}

.card__num {
  display: block;
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  margin-bottom: 1rem;
  font-weight: 500;
}

.card h3 {
  margin: 0 0 0.7rem;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.2;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Fixes */
.fixes {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.fix {
  display: grid;
  gap: 0.35rem 2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.fix h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 400;
}

.fix p {
  margin: 0;
  color: var(--muted);
}

@media (min-width: 800px) {
  .fix {
    grid-template-columns: 0.9fr 1.4fr;
    align-items: baseline;
    padding: 1.75rem 0;
  }
}

/* Process */
.steps {
  display: grid;
  gap: 1rem;
  counter-reset: step;
}

@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
  }
}

.step {
  padding: 1.5rem 1.35rem 1.6rem;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--gold-dim), transparent 42%), var(--bg-elev);
  min-height: 100%;
}

.step h3 {
  margin: 0 0 0.65rem;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 400;
}

.step h3::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  margin-bottom: 0.85rem;
  color: var(--gold);
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  font-weight: 500;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Audit / form */
.audit-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .audit-grid {
    grid-template-columns: 0.9fr 1.15fr;
    gap: 3.5rem;
    align-items: start;
  }
}

.brief {
  background: var(--bg-card);
  border: 1px solid var(--gold-line);
  padding: 1.5rem 1.25rem 1.4rem;
  position: relative;
}

@media (min-width: 600px) {
  .brief {
    padding: 1.85rem 1.75rem 1.6rem;
  }
}

.brief__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.4rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.brief__title {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 400;
}

.brief__mark {
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.form {
  display: grid;
  gap: 0.95rem;
}

.form__row {
  display: grid;
  gap: 0.95rem;
}

@media (min-width: 640px) {
  .form__row {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  appearance: none;
  border: 1px solid var(--line-strong);
  background: #0e0e10;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  padding: 0.8rem 0.85rem;
  border-radius: var(--radius);
  outline: none;
}

.field textarea {
  min-height: 8rem;
  resize: vertical;
  line-height: 1.5;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-dim);
}

.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%),
    linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.2rem;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #6f6b64;
}

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.form__note {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

/* About */
.about-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .about-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 3.5rem;
    align-items: start;
  }
}

.about__copy p {
  margin: 0 0 1rem;
  color: var(--muted);
  max-width: 40rem;
}

.about__copy p:last-child {
  margin-bottom: 0;
}

.about__panel {
  border: 1px solid var(--line);
  padding: 1.6rem 1.4rem;
  background: var(--bg-elev);
}

.about__panel dt {
  margin: 0 0 0.25rem;
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}

.about__panel dd {
  margin: 0 0 1.15rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.25;
}

.about__panel dd:last-child {
  margin-bottom: 0;
}

/* FAQ */
.faq {
  max-width: 760px;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.2rem 0;
  cursor: pointer;
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.35;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  flex: 0 0 auto;
  border-right: 1.5px solid var(--gold);
  border-bottom: 1.5px solid var(--gold);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.15s ease;
}

.faq details[open] summary::after {
  transform: rotate(225deg) translateY(-2px);
}

.faq .faq__a {
  margin: 0 0 1.3rem;
  color: var(--muted);
  max-width: 54ch;
}

/* Closing CTA */
.close {
  text-align: left;
}

.close .section-head {
  margin-bottom: 1.6rem;
}

/* Footer */
.site-footer {
  padding: 2.4rem 0 5.5rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  align-items: flex-end;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
}

.site-footer a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
}

.site-footer a:hover {
  color: var(--gold);
}

/* Sticky mobile bar */
.mobile-bar {
  display: none;
}

@media (max-width: 779px) {
  .mobile-bar {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
    background: rgba(11, 11, 12, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
  }

  .mobile-bar.is-hidden {
    display: none;
  }

  .site-footer {
    padding-bottom: 6.5rem;
  }
}

/* Thank-you page */
.thanks {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.thanks main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 4rem 0 5rem;
}

.thanks-card {
  width: min(36rem, 100%);
  border: 1px solid var(--gold-line);
  background: var(--bg-card);
  padding: clamp(1.75rem, 4vw, 2.5rem);
}

.thanks-card h1 {
  margin: 0 0 0.9rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 400;
  line-height: 1.1;
}

.thanks-card p {
  margin: 0 0 1.5rem;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .faq summary::after {
    transition: none;
  }
}
