:root {
  --bg: #141210;
  --bg-elevated: #1c1a17;
  --text: #e8e4dc;
  --text-muted: #a39e94;
  --ivory: #e8e4dc;
  --tobacco: #6b5344;
  --olive: #5c6348;
  --brass: #8a7a58;
  --parchment: #d4cfc3;
  --line: rgba(232, 228, 220, 0.12);
  --shadow: rgba(0, 0, 0, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --space: clamp(1rem, 3vw, 2rem);
  --max: 72rem;
  --narrow: 40rem;
}

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

html {
  scroll-behavior: smooth;
}

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

  .hero__img,
  .hero__inner > *,
  .pillar,
  .phone__frame {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ivory);
  color: var(--bg);
  font-weight: 500;
  text-decoration: none;
  border-radius: 2px;
}

.skip-link:focus {
  left: var(--space);
  top: var(--space);
}

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

a {
  color: var(--parchment);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--ivory);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: end center;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  transform: scale(1.04);
  animation: heroKen 28s var(--ease) infinite alternate;
}

@keyframes heroKen {
  from {
    transform: scale(1.03) translate(0, 0);
  }
  to {
    transform: scale(1.08) translate(-0.5%, -0.5%);
  }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      to top,
      var(--bg) 0%,
      rgba(20, 18, 16, 0.72) 38%,
      rgba(20, 18, 16, 0.35) 100%
    ),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(20, 18, 16, 0.9), transparent);
  pointer-events: none;
}

.hero__grain {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 42rem;
  padding: calc(var(--space) * 2) var(--space) calc(var(--space) * 3);
  text-align: center;
}

.hero__inner > * {
  opacity: 0;
  animation: fadeUp 1.2s var(--ease) forwards;
}

.hero__inner > *:nth-child(1) {
  animation-delay: 0.1s;
}
.hero__inner > *:nth-child(2) {
  animation-delay: 0.35s;
}
.hero__inner > *:nth-child(3) {
  animation-delay: 0.55s;
}
.hero__inner > *:nth-child(4) {
  animation-delay: 0.75s;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__eyebrow {
  margin: 0 0 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero__title {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.hero__sub {
  margin: 0 0 2rem;
  font-size: 1.125rem;
  color: var(--parchment);
  font-weight: 400;
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}

.btn--primary {
  background: var(--ivory);
  color: var(--bg);
  border-color: var(--ivory);
}

.btn--primary:hover {
  background: var(--parchment);
  border-color: var(--parchment);
  color: var(--bg);
}

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

.btn--ghost:hover {
  border-color: rgba(232, 228, 220, 0.35);
  background: rgba(232, 228, 220, 0.06);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Sections */
.section {
  padding: clamp(3.5rem, 10vw, 6rem) var(--space);
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
}

.wrap--narrow {
  max-width: var(--narrow);
}

.section--proof {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-elevated);
}

.proof {
  margin: 0;
  max-width: 38rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
  letter-spacing: 0.01em;
}

.section__title {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.section__lead {
  margin: 0 0 2rem;
  color: var(--parchment);
  font-size: 1rem;
  line-height: 1.65;
}

/* Pillars */
.pillars {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 52rem) {
  .pillars {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.pillar {
  opacity: 0;
  animation: fadeIn 1s var(--ease) forwards;
}

.pillar:nth-child(2) {
  animation-delay: 0.12s;
}
.pillar:nth-child(3) {
  animation-delay: 0.24s;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.pillar__card {
  min-height: 7.5rem;
  margin-bottom: 1.25rem;
  padding: 1.1rem 1.15rem;
  background: linear-gradient(160deg, rgba(212, 207, 195, 0.08), rgba(20, 18, 16, 0.4));
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 12px 40px var(--shadow);
}

.ui-line {
  height: 2px;
  border-radius: 1px;
  margin-bottom: 0.6rem;
}

.ui-line--route {
  background: linear-gradient(90deg, transparent, var(--brass), var(--olive), transparent);
  opacity: 0.85;
}

.ui-caption {
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.ui-voice {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--parchment);
  line-height: 1.45;
}

.ui-stop {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.ui-stop__tag {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tobacco);
}

.ui-stop__name {
  font-size: 0.875rem;
  color: var(--ivory);
}

.pillar__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 400;
}

.pillar__text {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Preview / phone */
.section--preview {
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(138, 122, 88, 0.08), transparent 55%);
}

.phone {
  display: flex;
  justify-content: center;
  margin-top: 0.5rem;
}

.phone__frame {
  width: min(100%, 17rem);
  padding: 0.5rem;
  background: linear-gradient(145deg, #2a2723, #121110);
  border-radius: 28px;
  box-shadow: 0 24px 80px var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  opacity: 0;
  animation: drift 1.4s var(--ease) 0.2s forwards;
}

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

.phone__notch {
  height: 5px;
  width: 4.5rem;
  margin: 0.15rem auto 0.5rem;
  background: #0c0b0a;
  border-radius: 4px;
}

.phone__screen {
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--line);
}

.phone__card {
  padding: 1.25rem 1.15rem 0.5rem;
  border-bottom: 1px solid var(--line);
}

.phone__label {
  margin: 0 0 0.35rem;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.phone__route-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.2rem;
}

.phone__route-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.phone__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.5;
}

.phone__mapline {
  width: 100%;
  height: 3rem;
  margin-top: 0.5rem;
  color: var(--brass);
  opacity: 0.9;
}

.phone__snippet {
  padding: 1rem 1.15rem 1.25rem;
  background: rgba(212, 207, 195, 0.05);
}

.phone__snippet-label {
  margin: 0 0 0.4rem;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--olive);
}

.phone__snippet-text {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.45;
  color: var(--parchment);
}

/* Membership */
.section--membership {
  border-top: 1px solid var(--line);
}

.membership__list {
  margin: 0 0 1.5rem;
  padding-left: 1.2rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.8;
}

.membership__note {
  margin: 0 0 1.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Form */
.section--access {
  padding-bottom: clamp(4rem, 12vw, 7rem);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
}

.form__label {
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form__input {
  padding: 0.85rem 1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--ivory);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 4px;
  transition: border-color 0.25s var(--ease);
}

.form__input::placeholder {
  color: rgba(163, 158, 148, 0.6);
}

.form__input:hover {
  border-color: rgba(232, 228, 220, 0.22);
}

.form__input:focus-visible {
  outline: none;
  border-color: var(--brass);
  box-shadow: 0 0 0 1px var(--brass);
}

.form__input[aria-invalid="true"] {
  border-color: rgba(166, 124, 109, 0.55);
}

.form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__status {
  min-height: 1.25rem;
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.form__status[data-state="ok"] {
  color: var(--olive);
}

.form__status[data-state="err"] {
  color: #a67c6d;
}

.form__submit {
  align-self: flex-start;
  margin-top: 0.25rem;
}

/* Footer */
.footer {
  padding: 2.5rem var(--space) 3rem;
  border-top: 1px solid var(--line);
  background: #0e0d0c;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-align: center;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: center;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer__nav a {
  text-decoration: none;
  color: var(--text-muted);
}

.footer__nav a:hover {
  color: var(--ivory);
}

.footer__tag {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 28rem;
  margin-inline: auto;
}

.footer__legal {
  margin: 0;
  font-size: 0.75rem;
  color: rgba(163, 158, 148, 0.55);
  letter-spacing: 0.06em;
}
