/* Altitude-inspired karst field notes — variant 1 layout system */
:root {
  --page: #050b16;
  --surface: rgba(244, 251, 255, 0.08);
  --surface-solid: #121a24;
  --text: #f4fbff;
  --muted: rgba(244, 251, 255, 0.68);
  --accent: #ffd75a;
  --accent-alt: #8ccfff;
  --line: rgba(244, 251, 255, 0.18);
  --radius: 18px;
  --radius-pill: 999px;
  --section-space: clamp(4.5rem, 9vw, 7.5rem);
  --content-width: min(1240px, calc(100% - 2.5rem));
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 0.32s;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
  line-height: 1.65;
  font-family: var(--font-body);
  background: var(--page);
  color: var(--text);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(255, 215, 90, 0.07), transparent 32%),
    radial-gradient(circle at 88% 18%, rgba(140, 207, 255, 0.06), transparent 28%);
}

body, button, input, select, textarea { font: inherit; }

a { color: inherit; text-decoration: none; }

img, svg, video, canvas, iframe {
  display: block;
  max-width: 100%;
  height: auto;
}

h1, h2, h3, p { margin-top: 0; }

h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  line-height: 1.08;
}

h1 {
  font-size: clamp(2.35rem, 6.2vw, 4.75rem);
  margin-bottom: 1.25rem;
}

h2 {
  font-size: clamp(1.85rem, 3.8vw, 3.1rem);
  margin-bottom: 0.85rem;
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  margin-bottom: 0.55rem;
}

p { color: var(--muted); }

.page-shell {
  min-height: 100vh;
}

.page-canvas {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-flow {
  flex: 1;
}

.section-inner,
.header-inner {
  width: var(--content-width);
  margin: 0 auto;
}

/* Header — hairline masthead */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 11, 22, 0.82);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 4.25rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.05rem;
  white-space: nowrap;
}

.brand-logo {
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 auto;
}

.brand-logo svg { width: 100%; height: 100%; }

.brand small {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--muted);
}

.site-header nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.site-header nav a {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--muted);
  transition: color var(--duration) var(--ease), border-color var(--duration) var(--ease);
}

.site-header nav a:hover {
  color: var(--text);
  border-color: var(--accent);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.2rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.88rem;
  border: 1px solid transparent;
  transition: transform var(--duration) var(--ease), background var(--duration) var(--ease), border-color var(--duration) var(--ease);
}

.header-cta {
  white-space: nowrap;
  background: linear-gradient(104deg, #ffe5ac, #97bdde);
  color: #050b16;
}

.button-primary {
  background: linear-gradient(104deg, #ffe5ac, #97bdde);
  color: #050b16;
}

.button-secondary {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.button:hover,
.header-cta:hover {
  transform: translateY(-2px);
}

/* Hero — editorial stack with ruled frame */
.hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 var(--section-space);
  position: relative;
}

.hero-editorial {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 4vw, 3rem);
}

.hero-frame {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 4vw, 2.75rem);
  padding: clamp(1.5rem, 3vw, 2.5rem) 0;
}

.hero-rule {
  display: none;
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
  pointer-events: none;
}

.hero-copy {
  max-width: 52rem;
  z-index: 2;
}

.eyebrow,
.section-kicker {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.lead {
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  max-width: 42rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.75rem 0 1rem;
}

.geo-line {
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.hero-visual {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(18, 26, 36, 0.6);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.hero-visual svg {
  width: 100%;
  height: 100%;
}

/* Sections */
.section {
  padding: var(--section-space) 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 46rem;
  margin-bottom: clamp(1.75rem, 3vw, 2.75rem);
}

.section-heading > p {
  font-size: 1.02rem;
}

/* Process timeline */
.layout-vertical-timeline {
  background: linear-gradient(180deg, rgba(140, 207, 255, 0.04), transparent 40%);
}

.timeline-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  position: relative;
}

.timeline-list::before {
  content: "";
  position: absolute;
  left: 1.35rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 1px;
  background: linear-gradient(180deg, var(--accent), var(--accent-alt));
  opacity: 0.45;
}

.timeline-list li {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 1.25rem;
  padding: 1.35rem 0 1.35rem 0.25rem;
  border-bottom: 1px solid var(--line);
}

.timeline-list li:last-child { border-bottom: 0; }

.step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 215, 90, 0.35);
  background: rgba(255, 215, 90, 0.08);
  color: var(--accent);
  position: relative;
  z-index: 1;
}

.step-icon svg { width: 1.35rem; height: 1.35rem; }

/* Bento services grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.bento-grid .card {
  grid-column: span 6;
  min-width: 0;
}

.bento-grid .card:first-child {
  grid-column: span 12;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
}

.card {
  padding: 1.45rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(12px);
  transition: transform var(--duration) var(--ease), border-color var(--duration) var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 215, 90, 0.35);
}

.card p { margin-bottom: 0; }

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(140, 207, 255, 0.3);
  background: rgba(140, 207, 255, 0.08);
  color: var(--accent-alt);
}

.card-icon svg { width: 1.45rem; height: 1.45rem; }

.card-label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.55rem;
}

.card-value {
  display: block;
  margin-top: 0.85rem;
  color: var(--accent-alt);
  font-size: 1.05rem;
}

.card small {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.82rem;
}

/* Scenarios horizontal rail */
.layout-horizontal-rail {
  overflow: hidden;
}

.layout-horizontal-rail .section-inner {
  width: 100%;
  max-width: none;
  padding-left: max(1.25rem, calc((100% - 1240px) / 2));
}

.rail-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.25rem 1.25rem 1rem 0;
  -webkit-overflow-scrolling: touch;
}

.rail-track .card {
  flex: 0 0 min(88vw, 320px);
  scroll-snap-align: start;
}

/* Benefits editorial rows */
.editorial-rows {
  display: grid;
  gap: 0;
}

.editorial-rows .card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  background: transparent;
  backdrop-filter: none;
  padding: 1.5rem 0;
}

.editorial-rows .card:nth-child(even) {
  background: rgba(244, 251, 255, 0.03);
  padding-left: clamp(0.75rem, 2vw, 1.5rem);
  padding-right: clamp(0.75rem, 2vw, 1.5rem);
  border-radius: var(--radius);
}

/* Geography split panels */
.region-panels {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1rem;
}

.geo-chip {
  padding: 1.35rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}

.geo-chip:first-child {
  grid-row: span 2;
  background: linear-gradient(165deg, rgba(255, 215, 90, 0.1), rgba(140, 207, 255, 0.06));
  border-color: rgba(255, 215, 90, 0.25);
}

.geo-chip strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.65rem;
}

.geo-chip span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Guide margin chapters */
.guide-body {
  display: grid;
  gap: 0;
  counter-reset: chapter;
}

.guide-body .chapter {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1.25rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
  counter-increment: chapter;
}

.guide-body .chapter::before {
  content: counter(chapter, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--accent);
  opacity: 0.85;
  line-height: 1;
  padding-top: 0.15rem;
}

.guide-body .chapter h3 { grid-column: 2; }

.guide-body .chapter p,
.guide-body .chapter ul {
  grid-column: 2;
}

.guide-body .chapter li {
  color: var(--muted);
  margin: 0.45rem 0;
}

/* FAQ grid */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1.5rem;
}

.faq-grid details {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}

.faq-grid summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  padding-right: 1rem;
}

.faq-grid summary::-webkit-details-marker { display: none; }

.faq-grid p {
  padding-right: 0.5rem;
  margin-top: 0.65rem;
}

/* Contact inverted */
.contact-invert-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(244, 251, 255, 0.06);
  backdrop-filter: blur(14px);
  order: -1;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--muted);
}

input, select, textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  background: rgba(5, 11, 22, 0.65);
  color: var(--text);
  padding: 0.82rem 0.9rem;
  border-radius: calc(var(--radius) * 0.65);
}

textarea {
  min-height: 7.5rem;
  resize: vertical;
}

.form-message {
  color: var(--accent);
  margin: 0;
}

/* Footer band */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 3.5rem 0;
  background: rgba(0, 0, 0, 0.35);
}

.footer-band-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
}

.site-footer a {
  display: block;
  color: var(--muted);
  margin: 0.35rem 0;
  font-size: 0.92rem;
}

.site-footer a:hover { color: var(--accent); }

.footer-coverage {
  font-size: 0.82rem;
  color: var(--muted);
}

/* Icon motion */
.icon-draw path { stroke-dasharray: 34 8; animation: iconDraw 6s linear infinite; }
.icon-pulse { transform-box: fill-box; transform-origin: center; animation: iconPulse 6s ease-in-out infinite; }
.icon-slide { animation: iconSlide 6s ease-in-out infinite; }
.icon-spin { transform-box: fill-box; transform-origin: center; animation: iconSpin 10s linear infinite; }

@keyframes iconDraw { to { stroke-dashoffset: -84; } }
@keyframes iconPulse { 50% { transform: scale(0.88); opacity: 0.72; } }
@keyframes iconSlide { 50% { transform: translateX(3px); } }
@keyframes iconSpin { to { transform: rotate(360deg); } }

/* Tablet */
@media (min-width: 900px) {
  .hero-frame {
    padding-left: clamp(1rem, 4vw, 3rem);
    padding-right: clamp(1rem, 4vw, 3rem);
  }

  .hero-rule {
    display: block;
  }

  .hero-rule-left { left: 18%; }
  .hero-rule-right { right: 18%; }
}

@media (max-width: 1000px) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .site-header nav { display: none; }

  .bento-grid .card,
  .bento-grid .card:first-child {
    grid-column: span 12;
    grid-template-columns: 1fr;
  }

  .region-panels {
    grid-template-columns: 1fr;
  }

  .geo-chip:first-child { grid-row: auto; }

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

  .contact-invert-grid {
    grid-template-columns: 1fr;
  }

  .footer-band-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  :root { --section-space: 3.75rem; }

  .section-inner,
  .header-inner {
    width: min(100% - 1.75rem, 1240px);
  }

  .site-header { position: relative; }

  .hero-visual { min-height: 14rem; }

  .timeline-list li {
    grid-template-columns: 2.25rem 1fr;
    gap: 0.85rem;
  }

  .guide-body .chapter {
    grid-template-columns: 2.5rem 1fr;
    gap: 0.75rem;
  }

  .card { padding: 1.15rem; }
}

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

  .card-icon, .step-icon,
  .card-icon svg, .step-icon svg,
  .card-icon path, .step-icon path,
  .icon-draw, .icon-pulse, .icon-slide, .icon-spin {
    animation: none !important;
  }

  .card, .button, .header-cta {
    transition: none !important;
  }
}
