/* ============================================================
   CROSSWAVE  crosswave.me
   Type: Bricolage Grotesque (display), Petrona (body), Chivo (UI)
   Color: sampled from the CrossWave logo
   ============================================================ */
:root {
  --navy: #102838;
  --navy-soft: #2C4356;
  --orange: #B84008;
  --orange-deep: #8F3206;
  --paper: #FAF8F5;
  --mist: #EBEFF1;
  --muted: #5A6B78;
  --line: rgba(16, 40, 56, 0.14);
  --line-strong: rgba(16, 40, 56, 0.34);

  --display: "Bricolage Grotesque", "Arial Black", sans-serif;
  --body: "Petrona", Georgia, serif;
  --ui: "Chivo", Arial, sans-serif;

  --gutter: clamp(1.25rem, 4.5vw, 3.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  border-top: 4px solid var(--orange);
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--orange-deep); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 0.55em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.7rem, 6.2vw, 4.8rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: clamp(1.3rem, 2.3vw, 1.7rem); }
p { margin: 0 0 1.15em; max-width: 62ch; }

.wrap { max-width: 1140px; margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--navy); color: #fff; padding: 0.6rem 1rem;
  font-family: var(--ui); font-size: 0.9rem;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 248, 245, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-bar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 0.85rem; }
.brand img { height: 42px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 1.9rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-family: var(--ui); font-weight: 600; font-size: 0.98rem;
  color: var(--navy-soft); text-decoration: none;
  padding-bottom: 3px; border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--navy); border-bottom-color: var(--orange); }
.nav-links a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--orange); }
.nav-cta {
  color: #fff !important; background: var(--navy);
  padding: 0.62rem 1.2rem; font-weight: 700 !important;
  border-bottom: none !important; border-radius: 3px;
}
.nav-cta:hover { background: var(--orange); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line-strong);
  font-family: var(--ui); font-weight: 700; font-size: 0.85rem;
  padding: 0.5rem 0.9rem; cursor: pointer; color: var(--navy); border-radius: 3px;
}
@media (max-width: 880px) {
  .nav-toggle { display: inline-block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 0.4rem var(--gutter) 1.1rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
  .nav-cta { margin-top: 0.8rem; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: var(--ui); font-weight: 700; font-size: 1rem;
  text-decoration: none; padding: 0.9rem 1.7rem; border-radius: 3px;
  border: 1px solid var(--navy);
}
.btn-solid { background: var(--navy); color: #fff; }
.btn-solid:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn-ghost { color: var(--navy); background: transparent; }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

/* ---------- Hero with map ---------- */
.hero { padding-block: clamp(3.5rem, 8vw, 6rem) clamp(3rem, 6vw, 5rem); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 span { color: var(--orange); }
.hero .lede { font-size: clamp(1.15rem, 2vw, 1.35rem); color: var(--navy-soft); max-width: 46ch; }

/* Map */
.map-shell { position: relative; }
.map-shell svg { width: 100%; height: auto; }
.mx-land { fill: #FFFFFF; stroke: var(--navy); stroke-width: 2; stroke-linejoin: round; }
.mx-route {
  fill: none; stroke: var(--orange); stroke-width: 3.5;
  stroke-linecap: round; stroke-dasharray: 1000; stroke-dashoffset: 1000;
}
.mx-route.drawn { animation: draw 2.4s ease forwards 0.4s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .mx-route { stroke-dashoffset: 0 !important; } }

.mx-node { cursor: pointer; }
.mx-node circle.dot { fill: var(--orange); stroke: #fff; stroke-width: 2.5; transition: r 0.15s ease; }
.mx-node circle.ring { fill: none; stroke: var(--orange); stroke-width: 1.5; opacity: 0; }
.mx-node text {
  font-family: var(--ui); font-weight: 700; font-size: 17px;
  fill: var(--navy); paint-order: stroke; stroke: #FAF8F5; stroke-width: 4px;
}
.mx-node:hover circle.dot, .mx-node:focus circle.dot { r: 11; }
.mx-node.active circle.dot { r: 11; fill: var(--navy); }
.mx-node.active circle.ring { opacity: 1; }
.mx-node.active text { fill: var(--orange-deep); }

.map-info {
  margin-top: 0.9rem; border: 1px solid var(--line-strong); border-left: 5px solid var(--orange);
  background: #fff; padding: 1rem 1.2rem; border-radius: 3px;
}
.map-info h3 { font-size: 1.15rem; margin-bottom: 0.3rem; }
.map-info p { margin: 0; font-size: 1.02rem; color: var(--navy-soft); }
.map-hint { font-family: var(--ui); font-size: 0.85rem; color: var(--muted); margin-top: 0.6rem; }

/* ---------- Statement band ---------- */
.statement { background: var(--navy); color: #fff; padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.statement p {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.6rem, 3.6vw, 2.6rem); line-height: 1.15;
  max-width: 24ch; margin: 0; letter-spacing: -0.01em;
}
.statement p b { color: #F0A579; font-weight: 600; }

/* ---------- Phases ---------- */
.phases { padding-block: clamp(3.5rem, 8vw, 6rem); }
.phase {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding: clamp(2rem, 4vw, 3rem) 0;
  border-top: 1px solid var(--line-strong);
}
.phase:last-of-type { border-bottom: 1px solid var(--line-strong); }
.phase .giant {
  position: absolute; top: 0.4rem; right: 0;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(5rem, 12vw, 9rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px rgba(184, 64, 8, 0.35);
  pointer-events: none; user-select: none;
}
.phase h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.phase .tagline { font-family: var(--ui); font-weight: 600; color: var(--orange-deep); margin-bottom: 0.9rem; }
.phase ul { list-style: none; margin: 0; padding: 0; align-self: end; }
.phase li { padding: 0.6rem 0 0.6rem 1.4rem; border-bottom: 1px solid var(--line); position: relative; font-size: 1.03rem; }
.phase li::before { content: ""; position: absolute; left: 0; top: 1.15rem; width: 8px; height: 8px; background: var(--orange); border-radius: 1px; }
.phase li:last-child { border-bottom: none; }
@media (max-width: 800px) { .phase { grid-template-columns: 1fr; } .phase .giant { font-size: 4.5rem; } }

/* ---------- Profile band ---------- */
.profile-band { background: var(--mist); padding-block: clamp(3.5rem, 8vw, 6rem); }
.profile-grid { display: grid; grid-template-columns: minmax(250px, 360px) 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 820px) { .profile-grid { grid-template-columns: 1fr; } }
.photo-frame { background: #fff; padding: 12px 12px 14px; box-shadow: 6px 6px 0 var(--navy); max-width: 380px; }
.photo-frame img { width: 100%; }
.photo-frame figcaption { font-family: var(--ui); font-size: 0.85rem; color: var(--muted); padding-top: 0.7rem; }
blockquote.pull {
  margin: 1.5rem 0 0; padding-left: 1.3rem; border-left: 4px solid var(--orange);
  font-size: clamp(1.15rem, 2.2vw, 1.4rem); font-style: italic; color: var(--navy-soft);
  max-width: 48ch;
}
blockquote.pull cite { display: block; font-style: normal; font-family: var(--ui); font-weight: 700; font-size: 0.9rem; margin-top: 0.8rem; color: var(--navy); }

/* Quote band (homepage) */
.quote-band { background: var(--mist); padding-block: clamp(3rem, 7vw, 5rem); }
.quote-band blockquote.pull { max-width: 56ch; }

/* Dark band ledger */
.band-dark .ledger .place { color: #fff; }
.band-dark .ledger .role { color: #C6D1DA; }
.band-dark .ledger li { border-color: rgba(255,255,255,0.18); }
.band-dark .ledger li:last-child { border-bottom-color: rgba(255,255,255,0.18); }

/* Credentials */
.creds { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--navy); margin-top: 2.5rem; }
.creds > div { padding: 1.4rem 1.4rem 1.4rem 0; }
.creds > div + div { border-left: 1px solid var(--line-strong); padding-left: 1.4rem; }
.creds .big { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 4vw, 3rem); color: var(--orange); line-height: 1; }
.creds .lbl { font-family: var(--ui); font-weight: 700; margin-top: 0.4rem; }
.creds .note { color: var(--muted); font-size: 0.95rem; margin-top: 0.3rem; }
@media (max-width: 760px) {
  .creds { grid-template-columns: 1fr; }
  .creds > div + div { border-left: none; border-top: 1px solid var(--line-strong); padding-left: 0; }
}

/* ---------- FAQ ---------- */
.faq { padding-block: clamp(3.5rem, 8vw, 6rem); }
.faq details { border-top: 1px solid var(--line-strong); }
.faq details:last-of-type { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.3rem 3rem 1.3rem 0;
  font-family: var(--display); font-weight: 600; font-size: clamp(1.1rem, 2vw, 1.35rem);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0.4rem; top: 50%; transform: translateY(-50%);
  font-family: var(--ui); font-weight: 400; font-size: 1.8rem; color: var(--orange);
}
.faq details[open] summary::after { content: "\00D7"; }
.faq details > div { padding: 0 0 1.5rem; }
.faq details p { color: var(--navy-soft); }

/* ---------- Regions and sector lists ---------- */
.ledger { list-style: none; margin: 0; padding: 0; }
.ledger li { display: grid; grid-template-columns: minmax(180px, 280px) 1fr; gap: 1.5rem; padding: 1.15rem 0; border-top: 1px solid var(--line); }
.ledger li:last-child { border-bottom: 1px solid var(--line); }
.ledger .place { font-family: var(--display); font-weight: 700; font-size: 1.15rem; }
.ledger .role { color: var(--navy-soft); font-size: 1.02rem; }
@media (max-width: 640px) { .ledger li { grid-template-columns: 1fr; gap: 0.25rem; } }

/* ---------- Generic sections and dark band ---------- */
section.pad { padding-block: clamp(3.5rem, 8vw, 6rem); }
.band-dark { background: var(--navy); color: #E8EDF1; }
.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark p { color: #C6D1DA; }
.band-dark .btn-ghost { color: #fff; border-color: #fff; }
.band-dark .btn-ghost:hover { color: var(--orange); border-color: var(--orange); }
.band-dark .btn-solid { background: var(--orange); border-color: var(--orange); }
.band-dark .btn-solid:hover { background: #fff; color: var(--navy); border-color: #fff; }

.section-head { max-width: 740px; margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.section-head p { color: var(--navy-soft); }

/* ---------- Forms ---------- */
form { max-width: 640px; }
.field { margin-bottom: 1.4rem; }
.field label { display: block; font-family: var(--ui); font-weight: 700; font-size: 0.98rem; margin-bottom: 0.45rem; }
.field input, .field textarea {
  width: 100%; font-family: var(--body); font-size: 1.05rem; color: var(--navy);
  background: #fff; border: 1px solid var(--line-strong); padding: 0.85rem 1rem; border-radius: 3px;
}
.field input:focus, .field textarea:focus { outline: 3px solid rgba(184, 64, 8, 0.35); border-color: var(--orange); }
.field .hint { font-family: var(--ui); font-size: 0.82rem; color: var(--muted); margin-top: 0.35rem; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.check-box { border: 1px solid var(--line-strong); background: var(--mist); padding: 1.1rem 1.2rem; border-radius: 3px; }
.form-msg { padding: 1rem 1.2rem; margin-bottom: 1.4rem; font-family: var(--ui); font-weight: 600; border-radius: 3px; }
.form-msg.ok { background: #E7F1EA; color: #1D5A38; border: 1px solid #BFDCCB; }
.form-msg.err { background: #F9E9E3; color: #8A2F0A; border: 1px solid #E9C4B4; }

.contact-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 4rem); }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-side .item { border-top: 1px solid var(--line-strong); padding: 1.05rem 0; }
.contact-side .item .k { font-family: var(--ui); font-weight: 700; font-size: 0.85rem; color: var(--muted); display: block; margin-bottom: 0.25rem; text-transform: uppercase; letter-spacing: 0.05em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #C6D1DA; border-top: 4px solid var(--orange); }
.site-footer .wrap { padding-block: 2.4rem 1.6rem; }
.footer-top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.2rem 2rem; padding-bottom: 1.6rem; border-bottom: 1px solid rgba(255,255,255,0.15);
}
.footer-top img { height: 36px; width: auto; }
.site-footer nav { font-family: var(--ui); display: flex; flex-wrap: wrap; gap: 1.6rem; }
.site-footer nav a { color: #E8EDF1; text-decoration: none; }
.site-footer nav a:hover { color: #F0A579; text-decoration: underline; }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.6rem 2rem; padding-top: 1.2rem;
  font-family: var(--ui); font-size: 0.88rem; color: #8FA3B1;
}
.footer-bottom .es { font-family: var(--body); font-style: italic; color: #A8B8C4; }

/* ---------- 404 ---------- */
.lost { min-height: 55vh; display: grid; place-content: center; text-align: center; padding-block: 4rem; }
.lost .big404 { font-family: var(--display); font-weight: 800; font-size: clamp(5rem, 15vw, 10rem); color: transparent; -webkit-text-stroke: 2px var(--orange); line-height: 1; }

/* ---------- Guides ---------- */
.guide-list { list-style: none; margin: 0; padding: 0; }
.guide-list li { border-top: 1px solid var(--line-strong); }
.guide-list li:last-child { border-bottom: 1px solid var(--line-strong); }
.guide-list a { display: block; padding: 1.6rem 0; text-decoration: none; color: inherit; }
.guide-list a:hover h3 { color: var(--orange); }
.guide-list h3 { margin-bottom: 0.35rem; transition: color 0.15s ease; }
.guide-list p { margin: 0; color: var(--navy-soft); max-width: 68ch; }
.guide-list .go { font-family: var(--ui); font-weight: 700; color: var(--orange); }

.article { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.article-body { max-width: 720px; }
.article-body h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-top: 2.2rem; }
.article-body ul { padding-left: 1.2rem; }
.article-body li { margin-bottom: 0.5rem; }
.article-meta { font-family: var(--ui); font-size: 0.88rem; color: var(--muted); margin-bottom: 1.6rem; }
.note-box {
  border: 1px solid var(--line-strong); border-left: 5px solid var(--orange);
  background: #fff; padding: 1rem 1.2rem; border-radius: 3px;
  font-size: 0.98rem; color: var(--navy-soft); margin-top: 2.2rem;
}
.article-cta { margin-top: 2.5rem; padding: 1.6rem; background: var(--mist); border-radius: 3px; }
.article-cta p { margin-bottom: 1rem; }
