:root {
  --page: #f4f0e8;
  --surface: #fffcf7;
  --text: #1a2e28;
  --muted: #5c6b65;
  --accent: #c45d3e;
  --accent-alt: #3d7a6b;
  --rail-w: clamp(220px, 16vw, 280px);
  --canvas-pad: clamp(1.25rem, 3vw, 3.5rem);
  --section-space: clamp(4rem, 7vw, 7rem);
  --radius: 14px;
  --radius-lg: 22px;
  --rule: color-mix(in srgb, var(--text) 14%, transparent);
  --shadow: 0 18px 48px color-mix(in srgb, var(--text) 8%, transparent);
}

*,
*::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.62;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--page);
  color: var(--text);
}

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: Georgia, "Times New Roman", Times, serif;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.35rem, 4.8vw, 4.75rem);
  line-height: 0.98;
  margin-bottom: 1.35rem;
}

h2 {
  font-size: clamp(1.85rem, 3.2vw, 3.25rem);
  line-height: 1.06;
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  line-height: 1.22;
}

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

.page-shell {
  display: grid;
  grid-template-columns: var(--rail-w) minmax(0, 1fr);
  width: 100%;
  max-width: 2160px;
  min-height: 100vh;
  margin: 0 auto;
}

.site-rail {
  position: sticky;
  top: 0;
  align-self: start;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  min-height: 100vh;
  padding: clamp(1.25rem, 2vw, 2rem);
  border-right: 1px solid var(--rule);
  background: color-mix(in srgb, var(--surface) 92%, var(--page));
}

.rail-brand-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

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

.brand-logo {
  display: block;
  width: clamp(44px, 4vw, 56px);
  height: clamp(44px, 4vw, 56px);
  max-width: 64px;
  max-height: 64px;
  border-radius: 12px;
  object-fit: contain;
  overflow: hidden;
  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);
}

.rail-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1 1 auto;
  min-width: 0;
}

.rail-nav a {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.rail-nav a:hover {
  color: var(--text);
  border-color: var(--rule);
  background: color-mix(in srgb, var(--surface) 80%, var(--accent) 4%);
}

.rail-cta-wrap {
  margin-top: auto;
  padding-top: 1rem;
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.82rem 1.25rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.header-cta {
  width: 100%;
  white-space: nowrap;
}

.button-primary,
.header-cta {
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 72%, var(--accent-alt)));
  color: var(--surface);
  border-color: var(--accent);
}

.button-secondary {
  background: transparent;
  border-color: color-mix(in srgb, var(--text) 22%, transparent);
  color: var(--text);
}

.button:hover,
.header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 22%, transparent);
}

.page-canvas {
  min-width: 0;
  width: 100%;
}

.page-canvas main {
  width: 100%;
}

.section-inner {
  width: 100%;
  max-width: none;
  padding-inline: var(--canvas-pad);
  margin: 0;
}

.hero {
  padding: clamp(2.5rem, 5vw, 5rem) 0 var(--section-space);
  background:
    radial-gradient(ellipse 80% 55% at 88% 8%, color-mix(in srgb, var(--accent-alt) 16%, transparent), transparent 58%),
    linear-gradient(165deg, var(--surface), var(--page));
  border-bottom: 1px solid var(--rule);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(min(100%, 520px), 1.05fr);
  gap: clamp(1.75rem, 4vw, 4.5rem);
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.eyebrow,
.section-kicker {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--accent-alt);
}

.lead {
  font-size: clamp(1.05rem, 1.55vw, 1.32rem);
  max-width: 52ch;
  color: color-mix(in srgb, var(--text) 78%, var(--muted));
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin: 2rem 0 1.25rem;
}

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

.hero-visual {
  overflow: hidden;
  width: 100%;
  min-height: clamp(320px, 36vw, 560px);
  aspect-ratio: 5 / 3;
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--accent-alt) 28%, transparent);
  background: color-mix(in srgb, var(--surface) 88%, var(--accent-alt));
  box-shadow: var(--shadow);
}

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

.section {
  padding: var(--section-space) 0;
  border-bottom: 1px solid var(--rule);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(110px, 0.28fr) minmax(0, 1fr);
  gap: clamp(1rem, 2.5vw, 2.5rem);
  margin-bottom: clamp(2rem, 3vw, 3rem);
  max-width: none;
}

.section-heading > h2,
.section-heading > p {
  grid-column: 2;
}

.section-heading > .section-kicker {
  grid-row: 1 / span 2;
  padding-top: 0.45rem;
  border-top: 3px solid var(--accent);
}

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

.fact-disclaimer {
  font-size: 0.78rem !important;
  padding: 0.65rem 0.8rem;
  border-left: 3px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 9%, transparent);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.85rem, 1.4vw, 1.25rem);
}

.card {
  min-width: 0;
  padding: clamp(1.15rem, 1.8vw, 1.6rem);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--text) 16%, transparent);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
  box-shadow: var(--shadow);
}

.card p {
  margin-bottom: 0;
}

.card-icon,
.step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  color: var(--accent-alt);
  border: 1px solid color-mix(in srgb, var(--accent-alt) 30%, transparent);
  background: color-mix(in srgb, var(--accent-alt) 8%, transparent);
  border-radius: 12px;
}

.card-icon svg,
.step-icon svg {
  width: 28px;
  height: 28px;
  overflow: visible;
}

.icon-draw path {
  stroke-dasharray: 34 8;
  animation: iconDraw 12s linear infinite;
}

.icon-pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: iconPulse 12s ease-in-out infinite;
}

.icon-slide {
  animation: iconSlide 12s ease-in-out infinite;
}

.icon-spin {
  transform-box: fill-box;
  transform-origin: center;
  animation: iconSpin 14s 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);
  }
}

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

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

.card small {
  display: block;
  color: var(--muted);
  margin-top: 0.4rem;
}

.process-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.2vw, 1rem);
}

.process-list li {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.25rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--rule);
}

.step-icon {
  margin-bottom: 0;
  flex: 0 0 auto;
}

.geo-chips {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.2vw, 1rem);
}

.geo-chip {
  padding: clamp(1rem, 1.5vw, 1.35rem);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
}

.geo-chip strong,
.geo-chip span {
  display: block;
}

.geo-chip span {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 0.55rem;
}

.guide-body {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 2rem);
}

.chapter {
  min-width: 0;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--rule);
}

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

.faq-list {
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 2rem;
}

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

.faq-list summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--text);
}

.faq-list p {
  padding-right: 1rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(min(100%, 420px), 1.05fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 1rem;
  background: var(--surface);
  padding: clamp(1.25rem, 2vw, 1.75rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow);
}

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

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid color-mix(in srgb, var(--text) 18%, transparent);
  background: var(--page);
  color: var(--text);
  padding: 0.85rem;
  border-radius: calc(var(--radius) * 0.65);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

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

.site-footer {
  padding: clamp(3rem, 5vw, 4.5rem) 0;
  background: color-mix(in srgb, var(--surface) 84%, var(--page));
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.7fr) minmax(0, 0.7fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.footer-brand {
  font-size: 1.45rem;
  font-family: Georgia, "Times New Roman", serif;
}

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

.component-process {
  background: color-mix(in srgb, var(--accent-alt) 5%, var(--page));
}

.component-geography {
  background: linear-gradient(180deg, var(--page), color-mix(in srgb, var(--surface) 70%, var(--page)));
}

@media (max-width: 1200px) {
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .geo-chips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-body {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 900px) {
  .page-shell {
    grid-template-columns: 1fr;
  }

  .site-rail {
    position: relative;
    min-height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    border-right: none;
    border-bottom: 1px solid var(--rule);
  }

  .rail-brand-row {
    flex: 1 1 auto;
  }

  .rail-nav {
    flex-direction: row;
    flex-wrap: wrap;
    order: 3;
    width: 100%;
  }

  .rail-cta-wrap {
    margin-top: 0;
    padding-top: 0;
    width: auto;
  }

  .header-cta {
    width: auto;
  }

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

  .section-heading {
    display: block;
  }

  .section-heading > .section-kicker {
    margin-bottom: 0.75rem;
  }

  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .section-inner {
    padding-inline: clamp(0.9rem, 4vw, 1.25rem);
  }

  .cards-grid,
  .process-list,
  .geo-chips,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 260px;
  }

  h1 {
    font-size: clamp(2.2rem, 11vw, 3.4rem);
  }

  h2 {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }
}

@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,
  .card,
  .button,
  .header-cta {
    animation: none !important;
    transition: none !important;
  }
}
