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

:root {
  --bg: #080808;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-strong: rgba(255, 255, 255, 0.075);
  --cream: #e8e0d0;
  --white: #f0ece4;
  --muted: rgba(232, 224, 208, 0.62);
  --soft: rgba(232, 224, 208, 0.38);
  --gold: #c8ab7a;
  --line: rgba(255, 255, 255, 0.11);
  --danger: #d9a08e;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.42);
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--cream);
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 300;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(240, 236, 228, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 236, 228, 0.035) 1px, transparent 1px);
  background-size: 58px 58px;
  opacity: 0.62;
  pointer-events: none;
}

a { color: inherit; }

.site-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(8, 8, 8, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.topbar-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  text-decoration: none;
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.brand-name {
  color: var(--white);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(240, 236, 228, 0.42), transparent);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ghost-link,
.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  color: var(--cream);
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  padding: 0 18px;
  border-radius: 2px;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.ghost-link:hover,
.button:hover {
  border-color: rgba(200, 171, 122, 0.72);
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
}

.button-primary {
  background: var(--cream);
  border-color: var(--cream);
  color: #111;
}

.button-primary:hover {
  background: var(--white);
  color: #080808;
}

.hero {
  position: relative;
  padding: 72px 0 34px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: 42px;
  align-items: end;
}

.eyebrow {
  color: var(--gold);
  font-size: 9px;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  margin: 0 0 18px;
}

.hero h1 {
  margin: 0;
  color: var(--white);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(42px, 7vw, 82px);
  font-weight: 300;
  line-height: 0.95;
  text-transform: uppercase;
}

.hero-copy {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(232, 224, 208, 0.78);
  font-size: 15px;
  line-height: 1.75;
}

.hero-card {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255,255,255,0.07), rgba(255,255,255,0.025));
  box-shadow: var(--shadow);
  padding: 28px;
  border-radius: 4px;
}

.hero-card strong {
  display: block;
  color: var(--white);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 27px;
  font-weight: 300;
  line-height: 1.15;
}

.hero-card p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.progress-area {
  padding: 18px 0 10px;
}

.progress-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--soft);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.progress-track {
  height: 2px;
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--white));
  transition: width 220ms ease;
}

.form-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  padding: 22px 0 80px;
}

.step-nav {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 8px;
}

.step-tab {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  text-align: left;
  padding: 0 12px;
  border-radius: 2px;
  cursor: pointer;
}

.step-tab span {
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 0.22em;
}

.step-tab strong {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.step-tab.is-active {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.055);
  color: var(--white);
}

.briefing-form {
  border: 1px solid var(--line);
  background: rgba(8, 8, 8, 0.58);
  box-shadow: var(--shadow);
  border-radius: 4px;
  overflow: hidden;
}

.form-step {
  display: none;
  padding: clamp(24px, 5vw, 48px);
}

.form-step.is-active { display: block; }

.step-kicker {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 9px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
}

.form-step h2 {
  margin: 0;
  color: var(--white);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(30px, 4.2vw, 52px);
  font-weight: 300;
  line-height: 1;
}

.step-intro {
  max-width: 720px;
  margin: 16px 0 30px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

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

.field-grid .full { grid-column: 1 / -1; }

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

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field label,
.option-group legend {
  color: var(--cream);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hint {
  color: var(--soft);
  font-size: 12px;
  line-height: 1.55;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--white);
  font: inherit;
  font-size: 15px;
  padding: 13px 14px;
  outline: none;
  transition: border-color 160ms ease, background 160ms ease;
}

select { color-scheme: dark; }

textarea {
  min-height: 112px;
  resize: vertical;
  line-height: 1.55;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(200, 171, 122, 0.82);
  background: rgba(255, 255, 255, 0.07);
}

::placeholder { color: rgba(232, 224, 208, 0.32); }

.option-group {
  border: 0;
  padding: 0;
  margin: 0;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.option-grid label {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.035);
  padding: 12px;
  color: rgba(232, 224, 208, 0.82);
  font-size: 13px;
  line-height: 1.35;
  cursor: pointer;
}

.option-grid input {
  width: 16px;
  height: 16px;
  min-height: 16px;
  accent-color: var(--gold);
  flex: 0 0 auto;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.status-message {
  margin-top: 16px;
  color: var(--danger);
  font-size: 13px;
  line-height: 1.5;
}

.footer-note {
  padding: 44px 0;
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
}

@media (max-width: 860px) {
  .topbar-inner {
    min-height: 58px;
  }

  .brand-name {
    font-size: 10px;
    letter-spacing: 0.2em;
  }

  .topbar-actions .ghost-link {
    display: none;
  }

  .hero {
    padding-top: 44px;
  }

  .hero-grid,
  .form-layout,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    padding: 22px;
  }

  .step-nav {
    position: static;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .step-tab {
    min-width: 178px;
  }

  .option-grid {
    grid-template-columns: 1fr;
  }

  .form-actions {
    flex-direction: column-reverse;
  }

  .form-actions .button {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .site-shell {
    width: min(100% - 22px, 1120px);
  }

  .button,
  .ghost-link {
    padding-inline: 12px;
    font-size: 9px;
    letter-spacing: 0.12em;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-copy {
    font-size: 14px;
  }

  .form-step {
    padding: 22px 16px;
  }
}
