:root {
  --tone-ink: #030637;
  --tone-plum: #3c0753;
  --tone-berry: #720455;
  --tone-bloom: #910a67;
  --tone-paper: #f8f4ff;
  --tone-soft: #e6d9f5;
  --tone-white: #ffffff;
  --font-display: "Syne", sans-serif;
  --font-body: "Bricolage Grotesque", sans-serif;
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --radius-sm: 0.5rem;
  --radius-md: 0.9rem;
  --radius-lg: 1.3rem;
  --shadow-soft: 0 0.7rem 1.4rem rgba(3, 6, 55, 0.14);
  --shadow-card: 0 1rem 2.1rem rgba(60, 7, 83, 0.2);
  --step-xs: 0.82rem;
  --step-sm: 0.92rem;
  --step-md: 1rem;
  --step-lg: 1.25rem;
  --step-xl: clamp(1.7rem, 2.4vw, 2.4rem);
  --line-tight: 1.35;
  --line-soft: 1.6;
  --motion-fast: 180ms ease;
  --motion-mid: 320ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--tone-ink);
  color: var(--tone-paper);
  font-family: var(--font-body);
  font-size: var(--step-md);
  line-height: var(--line-soft);
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  border-radius: var(--radius-md);
}

a {
  color: var(--tone-soft);
  text-decoration: none;
  transition: color var(--motion-fast), opacity var(--motion-fast);
}

a:hover,
a:focus-visible {
  color: var(--tone-white);
}

.shell-wrap {
  width: min(74rem, 92%);
  margin: 0 auto;
}

.crest-head {
  position: relative;
  margin-top: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  border: 0.0625rem solid rgba(230, 217, 245, 0.26);
  border-radius: 999rem;
  background: rgba(3, 6, 55, 0.76);
  backdrop-filter: blur(0.6rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  z-index: 8;
}

.brand-mark {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--step-lg);
  letter-spacing: 0.05rem;
}

.toggle-nav {
  border: 0.0625rem solid rgba(230, 217, 245, 0.35);
  background: transparent;
  color: var(--tone-paper);
  border-radius: var(--radius-sm);
  padding: var(--space-xs) var(--space-sm);
  font-size: var(--step-sm);
  display: none;
  align-items: center;
  gap: var(--space-xs);
  z-index: 9999999999999999;
}

.menu-icon-close {
  display: none;
}

.toggle-nav.opened .menu-icon-open {
  display: none;
}

.toggle-nav.opened .menu-icon-close {
  display: inline-block;
}

.trail-nav {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.trail-nav a {
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  background: rgba(145, 10, 103, 0.24);
  font-size: var(--step-xs);
}

.hero-lift {
  position: relative;
  margin-top: var(--space-lg);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(130deg, rgba(60, 7, 83, 0.9), rgba(3, 6, 55, 0.95));
  box-shadow: var(--shadow-card);
  min-height: 25rem;
  display: grid;
  align-items: end;
}

.motion-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 31rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  line-height: var(--line-tight);
  margin: 0 0 var(--space-sm);
}

h1 {
  font-size: var(--step-xl);
}

h2 {
  font-size: clamp(1.3rem, 2vw, 1.75rem);
}

p,
li,
label,
input,
textarea,
button {
  font-size: var(--step-sm);
}

.tiny-flow {
  margin-top: var(--space-lg);
  display: grid;
  gap: var(--space-lg);
}

.pane-card {
  background: linear-gradient(180deg, rgba(145, 10, 103, 0.2), rgba(3, 6, 55, 0.8));
  border: 0.0625rem solid rgba(230, 217, 245, 0.2);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-soft);
}

.duo-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-lg);
  align-items: center;
}

.tilt-band {
  transform: rotate(-1.4deg);
  transform-origin: left center;
}

.tilt-band > * {
  transform: rotate(1.4deg);
}

.overlap-rack {
  position: relative;
  padding-bottom: var(--space-lg);
}

.overlap-rack .pane-card:last-child {
  margin-top: -1.2rem;
  margin-left: 10%;
  width: 90%;
}

.cluster-list {
  list-style: none;
  padding: 0;
  margin: var(--space-sm) 0 0;
  display: grid;
  gap: var(--space-sm);
}

.cluster-list li {
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
  background: rgba(114, 4, 85, 0.27);
}

.action-row {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-top: var(--space-md);
}

.action-row a,
.action-row button {
  border: 0;
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
  font-size: var(--step-xs);
  cursor: pointer;
}

.call-main {
  background: var(--tone-soft);
  color: var(--tone-ink);
}

.call-alt {
  background: rgba(230, 217, 245, 0.15);
  color: var(--tone-paper);
  border: 0.0625rem solid rgba(230, 217, 245, 0.35);
}

.photo-line {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
}

.photo-line img {
  width: 100%;
  height: 13rem;
  object-fit: cover;
}

.reach-form {
  display: grid;
  gap: var(--space-sm);
}

.reach-form input,
.reach-form textarea {
  border: 0.0625rem solid rgba(230, 217, 245, 0.4);
  border-radius: var(--radius-sm);
  padding: var(--space-sm);
  background: rgba(3, 6, 55, 0.7);
  color: var(--tone-paper);
  font-family: var(--font-body);
}

.reach-form textarea {
  min-height: 7.5rem;
  resize: vertical;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
}

.map-frame {
  width: 100%;
  height: 14rem;
  border: 0;
  border-radius: var(--radius-md);
}

.core-foot {
  margin: var(--space-xl) auto var(--space-md);
  padding: var(--space-sm) var(--space-md);
  width: min(74rem, 92%);
  border-radius: var(--radius-md);
  border: 0.0625rem solid rgba(230, 217, 245, 0.28);
  background: rgba(3, 6, 55, 0.85);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-sm);
}

.policy-pop {
  position: fixed;
  right: var(--space-sm);
  bottom: var(--space-sm);
  width: min(23rem, 94%);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border: 0.0625rem solid rgba(230, 217, 245, 0.35);
  background: rgba(60, 7, 83, 0.95);
  box-shadow: var(--shadow-card);
  display: none;
  z-index: 20;
}

.policy-pop.showing {
  display: block;
}

.legal-stack {
  display: grid;
  gap: var(--space-md);
}

.tiny-note {
  opacity: 0.85;
  font-size: 0.76rem;
}

@media (max-width: 58rem) {
  .shell-wrap {
    width: min(74rem, 94%);
  }

  .hero-copy {
    max-width: 100%;
  }

  .duo-split {
    grid-template-columns: 1fr;
  }

  .photo-line {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 48rem) {
  .crest-head {
    border-radius: var(--radius-lg);
    padding: var(--space-sm);
    z-index: 40;
  }

  .toggle-nav {
    display: inline-flex;
    position: relative;
    z-index: 41;
  }

  .trail-nav {
    position: fixed;
    inset: 0;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100dvh;
    min-width: auto;
    padding: var(--space-lg);
    border-radius: 0;
    border: 0;
    background: rgba(3, 6, 55, 0.98);
    z-index: 30;
  }

  .trail-nav.opened {
    display: flex;
  }

  .trail-nav a {
    width: min(22rem, 90vw);
    text-align: center;
    padding: var(--space-sm) var(--space-md);
  }

  .action-row {
    width: 100%;
  }

  .action-row a,
  .action-row button {
    flex: 1 1 auto;
    text-align: center;
  }
}

@media (max-width: 40rem) {
  :root {
    --space-lg: 1.2rem;
    --space-xl: 1.5rem;
    --step-sm: 0.89rem;
    --step-md: 0.97rem;
  }

  .hero-lift {
    min-height: 23rem;
  }

  .pane-card {
    padding: var(--space-md);
  }

  .map-frame {
    height: 12rem;
  }
}

@media (max-width: 30rem) {
  .hero-lift {
    padding: var(--space-md);
    min-height: 22rem;
  }

  .brand-mark {
    font-size: 1.1rem;
  }

  .trail-nav {
    min-width: auto;
  }

  .photo-line {
    grid-template-columns: 1fr;
  }

  .core-foot {
    flex-direction: column;
  }

  .policy-pop {
    left: var(--space-xs);
    right: var(--space-xs);
    width: auto;
  }
}

@media (max-width: 23.4375rem) {
  :root {
    --space-sm: 0.62rem;
    --space-md: 0.82rem;
    --step-xs: 0.76rem;
    --step-sm: 0.84rem;
    --step-md: 0.91rem;
    --step-lg: 1.06rem;
  }

  .shell-wrap {
    width: 95%;
  }

  .crest-head {
    gap: var(--space-xs);
    margin-top: var(--space-sm);
  }

  .toggle-nav {
    padding: 0.35rem 0.55rem;
    font-size: 0.8rem;
  }

  .hero-lift {
    min-height: 20rem;
    border-radius: var(--radius-md);
  }

  .pane-card {
    border-radius: var(--radius-sm);
  }

  .overlap-rack .pane-card:last-child {
    margin-top: var(--space-sm);
    margin-left: 0;
    width: 100%;
  }

  .tilt-band,
  .tilt-band > * {
    transform: none;
  }

  .map-frame {
    height: 10.5rem;
  }
}

@media (max-width: 20rem) {
  .brand-mark {
    font-size: 0.98rem;
    letter-spacing: 0.02rem;
  }

  h1 {
    font-size: 1rem;
  }

  h2 {
    font-size: 1.15rem;
  }

  .action-row a,
  .action-row button {
    width: 100%;
  }

  .policy-pop {
    padding: var(--space-sm);
    bottom: var(--space-xs);
  }
}
