:root {
  --tone-primary: #0c2b4e;
  --tone-secondary: #1a3d64;
  --tone-accent: #1d546c;
  --tone-surface: #f4f4f4;
  --tone-text: #0d1f2f;
  --tone-soft: #dbe5ef;
  --font-display: "Bricolage Grotesque", sans-serif;
  --font-body: "Manrope", sans-serif;
  --shadow-soft: 0 0.8rem 2.4rem rgba(12, 43, 78, 0.12);
  --radius-sm: 0.6rem;
  --radius-md: 1rem;
  --radius-lg: 1.6rem;
  --space-xs: 0.5rem;
  --space-sm: 0.8rem;
  --space-md: 1.2rem;
  --space-lg: 2rem;
  --space-xl: 3.2rem;
  --step--1: 0.85rem;
  --step-0: 0.95rem;
  --step-1: 1.15rem;
  --step-2: 1.5rem;
  --step-3: 2rem;
  --swift: 0.32s ease;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  background: var(--tone-surface);
  color: var(--tone-text);
  font-family: var(--font-body);
  font-size: 100%;
}

body {
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
  border-radius: var(--radius-md);
}

.shell-wrap {
  width: min(92%, 74rem);
  margin: 0 auto;
}

.crest-top {
  position: relative;
  margin: var(--space-md) auto;
  width: min(92%, 74rem);
  background: linear-gradient(120deg, var(--tone-primary), var(--tone-accent));
  border-radius: var(--radius-lg);
  color: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform var(--swift), opacity var(--swift);
}

.crest-top.is-hidden {
  transform: translateY(-120%);
  opacity: 0;
}

.crest-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
}

.brand-mark {
  font-family: var(--font-display);
  font-size: var(--step-2);
  letter-spacing: 0.06rem;
}

.menu-btn {
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.trail-nav {
  display: none;
  gap: 0.9rem;
  font-size: var(--step--1);
}

.menu-btn .fa-xmark {
  display: none;
}

.menu-btn.is-open .fa-bars {
  display: none;
}

.menu-btn.is-open .fa-xmark {
  display: inline-block;
}

.trail-nav a {
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  transition: background var(--swift);
}

.trail-nav a:hover,
.trail-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.18);
}

.hero-flow {
  padding: var(--space-xl) 0;
}

.hero-core {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  align-items: center;
}

.hero-copy {
  flex: 1 1 19rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  line-height: 1.2;
  margin: 0 0 var(--space-sm);
}

h1 {
  font-size: clamp(0.8rem, 3vw, 2.7rem);
}

h2 {
  font-size: clamp(1.45rem, 2.4vw, 2.1rem);
}

.tiny-line {
  font-size: var(--step--1);
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  color: var(--tone-accent);
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.95rem;
  border-radius: 99rem;
  border: 0.08rem solid transparent;
  font-size: var(--step--1);
  transition: transform var(--swift), background var(--swift), border var(--swift);
  cursor: pointer;
}

.btn-main {
  background: var(--tone-primary);
  color: #fff;
}

.btn-main:hover {
  transform: translateY(-0.1rem);
}

.btn-ghost {
  background: transparent;
  border-color: var(--tone-primary);
  color: var(--tone-primary);
}

.hero-canvas-box {
  flex: 1 1 20rem;
  min-height: 20rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: #0a1f3c;
}

#pulse-field {
  width: 100%;
  height: 100%;
  min-height: 20rem;
  display: block;
}

.segment-block {
  padding: var(--space-xl) 0;
}

.panel-soft {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-soft);
}

.split-pane {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.split-pane > * {
  flex: 1 1 18rem;
}

.mini-cards {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.mini-card {
  flex: 1 1 10rem;
  background: #fff;
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-soft);
}

.photo-band {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.photo-band figure {
  flex: 1 1 14rem;
  margin: 0;
}

.photo-band figcaption {
  font-size: var(--step--1);
  margin-top: var(--space-xs);
}

.slant-stage {
  position: relative;
  margin: var(--space-lg) 0;
  transform: rotate(-1.4deg);
}

.slant-inner {
  transform: rotate(1.4deg);
  background: linear-gradient(120deg, var(--tone-secondary), var(--tone-primary));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.drift-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.drift-tile {
  background: #fff;
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-soft);
  position: relative;
}

.drift-tile:nth-child(2) {
  margin-left: 6%;
}

.drift-tile:nth-child(3) {
  margin-left: 12%;
}

.cluster-form {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-soft);
}

form {
  display: grid;
  gap: var(--space-sm);
}

label {
  font-size: var(--step--1);
}

input,
textarea {
  width: 100%;
  border: 0.07rem solid var(--tone-soft);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.7rem;
  font: inherit;
  font-size: var(--step--1);
  background: #fff;
}

textarea {
  min-height: 6.5rem;
  resize: vertical;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: var(--step--1);
}

.consent-row input {
  width: auto;
  margin-top: 0.2rem;
}

.map-box iframe {
  width: 100%;
  min-height: 16rem;
  border: 0;
  border-radius: var(--radius-md);
}

.tiny-foot {
  padding: var(--space-lg) 0 var(--space-xl);
  font-size: var(--step--1);
}

.tiny-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.popup-shell {
  position: fixed;
  inset: auto 1rem 1rem auto;
  max-width: 20rem;
  background: #fff;
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-soft);
  z-index: 20;
}

.popup-shell[hidden] {
  display: none;
}

.asym-wrap {
  position: relative;
}

.asym-badge {
  position: absolute;
  top: -0.8rem;
  right: 1rem;
  background: var(--tone-primary);
  color: #fff;
  border-radius: 99rem;
  font-size: var(--step--1);
  padding: 0.2rem 0.6rem;
}

.legal-sheet {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-soft);
}

@media (min-width: 90rem) {
  .shell-wrap,
  .crest-top {
    width: min(88%, 82rem);
  }

  .hero-core {
    gap: 2.6rem;
  }
}

@media (max-width: 75rem) {
  .shell-wrap,
  .crest-top {
    width: min(93%, 68rem);
  }

  .hero-canvas-box {
    min-height: 18rem;
  }
}

@media (max-width: 56rem) {
  .trail-nav {
    display: none;
    padding: 0 var(--space-lg) var(--space-md);
  }

  .trail-nav.is-open {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    padding: 5.2rem 1rem 1rem;
    background: linear-gradient(145deg, rgba(12, 43, 78, 0.98), rgba(29, 84, 108, 0.98));
    z-index: 45;
    overflow-y: auto;
  }

  .trail-nav.is-open a {
    width: 100%;
    text-align: center;
    font-size: 1rem;
    padding: 0.65rem 0.8rem;
    background: rgba(255, 255, 255, 0.08);
  }

  .crest-row {
    padding: var(--space-md);
  }

  .menu-btn {
    position: relative;
    z-index: 60;
  }

  .hero-copy,
  .hero-canvas-box,
  .split-pane > *,
  .photo-band figure {
    flex-basis: 100%;
  }

  .drift-tile:nth-child(2),
  .drift-tile:nth-child(3) {
    margin-left: 0;
  }

  .popup-shell {
    inset: auto 0.8rem 0.8rem 0.8rem;
    max-width: none;
  }
}

@media (min-width: 56.01rem) {
  .trail-nav {
    display: flex;
  }

  .menu-btn {
    display: none;
  }
}

@media (max-width: 48rem) {
  :root {
    --space-xl: 2.4rem;
    --space-lg: 1.6rem;
    --step-2: 1.35rem;
  }

  .crest-row {
    gap: var(--space-sm);
  }

  .brand-mark {
    font-size: 1.3rem;
  }

  .hero-flow {
    padding-top: var(--space-lg);
  }

  .action-row {
    gap: 0.55rem;
  }

  .btn-pill {
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
  }

  .map-box iframe {
    min-height: 14rem;
  }
}

@media (max-width: 30rem) {
  .shell-wrap,
  .crest-top {
    width: 94%;
  }

  .panel-soft,
  .cluster-form,
  .legal-sheet {
    padding: var(--space-md);
  }

  h1 {
    font-size: clamp(1.45rem, 1rem, 1.9rem);
  }

  h2 {
    font-size: clamp(1.2rem, 6vw, 1.5rem);
  }

  .asym-badge {
    right: 0.6rem;
    top: -0.6rem;
    font-size: 0.75rem;
  }

  .tiny-foot nav {
    gap: 0.5rem;
  }
}

@media (max-width: 23rem) {
  :root {
    --space-md: 0.95rem;
    --space-sm: 0.65rem;
    --step--1: 0.78rem;
    --step-0: 0.88rem;
  }

  .shell-wrap,
  .crest-top {
    width: 96%;
  }

  .crest-row {
    padding: 0.7rem;
  }

  .menu-btn {
    padding: 0.35rem 0.55rem;
  }

  .trail-nav {
    padding: 0 0.7rem 0.7rem;
  }

  .trail-nav a {
    padding: 0.32rem 0.5rem;
  }

  .hero-canvas-box,
  #pulse-field {
    min-height: 14rem;
  }

  .btn-pill {
    width: 100%;
    justify-content: center;
  }

  input,
  textarea {
    padding: 0.55rem 0.6rem;
  }

  .popup-shell {
    inset: auto 0.45rem 0.45rem 0.45rem;
    padding: 0.8rem;
  }
}
