:root {
  --bg: #070709;
  --bg-elevated: #0c0c0c;
  --text: #f4f1ea;
  --text-muted: rgba(244, 241, 234, 0.72);
  --gold: #d4af37;
  --gold-soft: rgba(212, 175, 55, 0.35);
  --silver: #c8cdd4;
  --rule: rgba(244, 241, 234, 0.12);
  --font-display: "Manrope", "IBM Plex Sans", sans-serif;
  --font-body: "IBM Plex Sans", Helvetica, Arial, sans-serif;
  --space: clamp(1.25rem, 3vw, 2.5rem);
  --max: 42rem;
  --max-wide: 58rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.55;
  min-height: 100vh;
}

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

a {
  color: inherit;
}

/* —— Hero —— */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--space) * 1.5) var(--space) calc(var(--space) * 2);
  overflow: hidden;
}

.hero-cover {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-cover svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Soft bottom fade into page sections; SVG already carries center vignette */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(7, 7, 9, 0) 0%,
    rgba(7, 7, 9, 0.15) 70%,
    rgba(7, 7, 9, 0.92) 100%
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(100%, 40rem);
  text-align: center;
  animation: rise-in 900ms ease-out both;
}

.logo-wordmark {
  width: min(480px, 86vw);
  margin: 0 auto 1.75rem;
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.5));
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.6vw, 2.35rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  text-wrap: balance;
}

.hero-lede {
  color: var(--text-muted);
  font-size: clamp(0.98rem, 1.6vw, 1.12rem);
  font-weight: 400;
  max-width: 34rem;
  margin: 0 auto 1.75rem;
  text-wrap: pretty;
}

.cta-group {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.7rem 1.4rem;
  border: 1px solid var(--gold);
  background: linear-gradient(180deg, rgba(201, 162, 39, 0.18), rgba(201, 162, 39, 0.05));
  color: var(--text);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.cta:hover,
.cta:focus-visible {
  background: linear-gradient(180deg, rgba(201, 162, 39, 0.32), rgba(201, 162, 39, 0.12));
  border-color: #e0c35a;
  outline: none;
}

.cta:active {
  transform: translateY(1px);
}

/* —— Sections —— */

.section {
  padding: clamp(3.5rem, 8vw, 6.5rem) var(--space);
  animation: rise-in 800ms ease-out both;
}

.section:nth-of-type(1) {
  animation-delay: 80ms;
}

.section:nth-of-type(2) {
  animation-delay: 120ms;
}

.section:nth-of-type(3) {
  animation-delay: 160ms;
}

.section-inner {
  width: min(100%, var(--max-wide));
  margin: 0 auto;
}

.problem .section-inner,
.close .section-inner {
  width: min(100%, var(--max));
}

.eyebrow {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.4vw, 2.4rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  text-wrap: balance;
}

.section-lede {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  text-wrap: pretty;
}

/* —— Problem —— */

.problem {
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 1) 0%, rgba(12, 12, 12, 1) 100%);
  border-top: 1px solid var(--rule);
}

.problem-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.problem-list li {
  padding-left: 1.15rem;
  border-left: 2px solid var(--gold-soft);
  color: var(--text-muted);
  font-size: 1.02rem;
}

.problem-list strong {
  display: block;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

/* —— Team —— */

.team {
  background: var(--bg-elevated);
  border-top: 1px solid var(--rule);
}

.team-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 2.5rem;
}

.team-member {
  padding: 1.75rem 0;
  border-top: 1px solid var(--rule);
}

.team-member:last-child {
  border-bottom: 1px solid var(--rule);
}

.team-member h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.25rem;
}

.team-member .role {
  color: var(--gold);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.team-member p:last-child {
  color: var(--text-muted);
  max-width: 40rem;
}

/* —— Close —— */

.close {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201, 162, 39, 0.1), transparent 50%),
    var(--bg);
  border-top: 1px solid var(--rule);
  text-align: center;
}

.close-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.close .section-lede {
  max-width: 32rem;
}

.contact-form {
  width: min(100%, 28rem);
  margin-top: 0.5rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: rise-in 900ms ease-out 200ms both;
}

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

.contact-form label {
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.contact-form .optional {
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.8rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  border-radius: 0;
}

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

.contact-form select {
  appearance: none;
  background-color: #0c0c0c;
  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;
  color: var(--text);
}

/* Native dropdown panels often use a light system surface — force readable option text */
.contact-form select option,
.contact-form select optgroup {
  color: #111111;
  background-color: #ffffff;
}

.contact-form textarea {
  resize: vertical;
  min-height: 6rem;
}

.contact-form .cta {
  align-self: stretch;
  margin-top: 0.35rem;
  cursor: pointer;
  border-style: solid;
}

.contact-form .cta:disabled {
  opacity: 0.65;
  cursor: wait;
}

.form-status {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.form-status.is-error {
  color: #f0b4b4;
}

.form-success {
  margin-top: 1rem;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  max-width: 28rem;
}

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

/* —— Footer —— */

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 1.75rem var(--space) 2.25rem;
  background: #000;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-mark {
  width: 36px;
  height: 36px;
  opacity: 0.9;
}

/* —— Motion —— */

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .hero-inner,
  .section {
    animation: none;
  }
}

@media screen and (max-width: 767px) {
  .logo-wordmark {
    width: min(340px, 88vw);
    margin-bottom: 1.4rem;
  }

  .hero-title {
    font-size: clamp(1.35rem, 6.2vw, 1.7rem);
  }

  .team-member {
    padding: 1.4rem 0;
  }
}
