/* ===================================================================
   LENGDEH — Design tokens
   Palette pulled from the compass-wing mark: deep chart-teal ground,
   a warm brass wayfinding accent, and a pale fog surface.
   Signature device: latitude/longitude coordinate tags used as
   eyebrows and section markers — literal "coordinates" for the brand.
=================================================================== */

:root {
  --ink:        #0F2A33;   /* deep teal-navy — primary text & wordmark */
  --ink-soft:   #3D5860;   /* secondary text */
  --sea:        #163C48;   /* deep panel background */
  --sea-mid:    #1F5062;   /* mid teal accent */
  --brass:      #B08D57;   /* wayfinding accent — used sparingly */
  --brass-soft: #D9C7A3;
  --fog:        #F6F4EE;   /* page background */
  --fog-dim:    #ECE8DC;   /* card / section background */
  --line:       rgba(15, 42, 51, 0.14);
  --line-on-dark: rgba(246, 244, 238, 0.18);

  --serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "SF Mono", Menlo, monospace;

  --max: 1180px;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--fog);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 4.4vw, 3.6rem); line-height: 1.08; }
h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1.18; }
h3 { font-size: 1.25rem; line-height: 1.3; }

p { margin: 0 0 1.1em; color: var(--ink-soft); }
p.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; }

/* -------- Coordinate eyebrow — the signature structural device -------- */
.coord {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.coord::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--brass);
  display: inline-block;
}

/* -------------------------------- Header -------------------------------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 244, 238, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  max-width: var(--max);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand img { height: 52px; width: auto; }
.brand span {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
}
nav.links {
  display: flex;
  gap: 30px;
  align-items: center;
}
nav.links a {
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}
nav.links a:hover, nav.links a[aria-current="page"] { color: var(--ink); }
nav.links a[aria-current="page"] { border-bottom: 1px solid var(--brass); padding-bottom: 3px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 2px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-primary { background: var(--sea); color: var(--fog); }
.btn-primary:hover { background: var(--ink); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--fog); }
.btn-brass { background: var(--brass); color: var(--sea); }
.btn-brass:hover { background: var(--brass-soft); }

.nav-cta { display: flex; gap: 12px; align-items: center; }

.menu-toggle { display: none; }

/* -------------------------------- Hero -------------------------------- */
.hero {
  background: var(--sea);
  color: var(--fog);
  padding: 96px 0 88px;
  position: relative;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero .wrap.hero-single {
  grid-template-columns: 1fr;
  max-width: 760px;
}
.hero .coord { color: var(--brass-soft); }
.hero .coord::before { background: var(--brass-soft); }
.hero h1 { color: var(--fog); }
.hero p.lede { color: rgba(246,244,238,0.82); }
.hero-actions { display: flex; align-items: center; gap: 20px; margin-top: 32px; flex-wrap: wrap; }
.hero-contact { font-family: var(--mono); font-size: 0.85rem; color: rgba(246,244,238,0.7); }
.hero-contact a { text-decoration: none; color: rgba(246,244,238,0.9); }

.hero-graphic {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.compass-ring {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 1px solid var(--line-on-dark);
}
.compass-ring.r2 { inset: 20%; }
.hero-graphic .hero-cross {
  position: absolute;
  background: rgba(246,244,238,0.12);
}
.hero-graphic .hero-cross.h { left: 8%; right: 8%; top: 50%; height: 1px; }
.hero-graphic .hero-cross.v { top: 8%; bottom: 8%; left: 50%; width: 1px; }
.hero-graphic .tick {
  position: absolute;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--brass-soft);
}
.hero-graphic .tick.n { top: 3%; left: 50%; transform: translateX(-50%); }
.hero-graphic .tick.s { bottom: 3%; left: 50%; transform: translateX(-50%); }
.hero-graphic .tick.e { right: 2%; top: 50%; transform: translateY(-50%); }
.hero-graphic .tick.w { left: 2%; top: 50%; transform: translateY(-50%); }
.hero-graphic img.wing {
  width: 44%;
  filter: drop-shadow(0 18px 34px rgba(0,0,0,0.45));
  position: relative;
  z-index: 3;
}

/* -------------------------------- Sections -------------------------------- */
section { padding: 88px 0; }
section.tight { padding: 64px 0; }
.section-dim { background: var(--fog-dim); }
.section-dark { background: var(--sea); color: var(--fog); }
.section-dark h2 { color: var(--fog); }
.section-dark p { color: rgba(246,244,238,0.78); }
.section-dark .coord { color: var(--brass-soft); }
.section-dark .coord::before { background: var(--brass-soft); }

.section-head { max-width: 680px; margin-bottom: 48px; }

/* -------------------------------- Cards / Grids -------------------------------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }

.card {
  background: var(--fog);
  border: 1px solid var(--line);
  padding: 32px 28px;
  border-radius: 3px;
}
.section-dim .card, .section-dark .card { background: rgba(246,244,238,0.06); border-color: var(--line-on-dark); }
.section-dim .card { background: var(--fog); border-color: var(--line); }

.card .num {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--brass);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 14px;
}

/* -------------------------------- Steps (journey) -------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; }
.step { padding: 0 28px; position: relative; }
.step:not(:first-child) { border-left: 1px solid var(--line); }
.section-dark .step:not(:first-child) { border-left-color: var(--line-on-dark); }
.step .coord { font-size: 0.68rem; }

/* -------------------------------- Testimonials -------------------------------- */
.testimonials { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.testimonial {
  background: var(--fog);
  border: 1px solid var(--line);
  padding: 36px 32px;
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.testimonial p.quote {
  font-family: var(--serif);
  font-size: 1.08rem;
  color: var(--ink);
  font-style: italic;
  line-height: 1.55;
  margin: 0;
}
.testimonial .who {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--fog-dim);
  flex-shrink: 0;
}
.avatar.initial {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  color: var(--sea);
  font-weight: 600;
  border: 1px solid var(--line);
}
.who .name { font-weight: 600; font-size: 0.92rem; color: var(--ink); }
.who .role { font-size: 0.82rem; color: var(--ink-soft); }

.testimonial-photo { padding: 0; overflow: hidden; }
.testimonial-photo .shot {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
}
.testimonial-photo .shot-caption {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass);
  padding: 12px 32px 0;
}
.testimonial-photo .testimonial-body {
  padding: 14px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.testimonial-photo .shot-inline {
  aspect-ratio: 16/10;
  border-radius: 2px;
  margin: 2px 0;
}
.testimonial-photo .quote { margin: 0; }
.trust-footer {
  margin-top: 28px;
  padding: 22px 26px;
  background: var(--fog-dim);
  border-left: 2px solid var(--brass);
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.trust-footer strong { color: var(--ink); }

/* -------------------------------- Pricing -------------------------------- */
.pricing-list { display: flex; flex-direction: column; }
.pricing-row {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 40px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.pricing-row:last-child { border-bottom: 1px solid var(--line); }
.pricing-row .amt { font-family: var(--serif); font-size: 1.3rem; color: var(--sea); }
.pricing-row .label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); margin-top: 6px; display: block; }

/* -------------------------------- Boundaries list -------------------------------- */
.boundary-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.boundary-list li {
  padding-left: 28px;
  position: relative;
  color: var(--ink-soft);
}
.boundary-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--brass);
}
.boundary-list strong { color: var(--ink); }

/* -------------------------------- Ecosystem layers -------------------------------- */
.layer {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.layer:last-child { border-bottom: 1px solid var(--line); }
.layer .layer-name { font-family: var(--serif); font-size: 1.1rem; color: var(--sea); }

/* -------------------------------- Footer -------------------------------- */
footer.site {
  background: var(--ink);
  color: rgba(246,244,238,0.7);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line-on-dark);
}
footer.site .brand span { color: var(--fog); }
footer.site h4 {
  font-family: var(--sans);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brass-soft);
  margin: 0 0 16px;
}
footer.site ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
footer.site a { text-decoration: none; font-size: 0.9rem; color: rgba(246,244,238,0.75); }
footer.site a:hover { color: var(--fog); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-size: 0.8rem;
  color: rgba(246,244,238,0.5);
  flex-wrap: wrap;
  gap: 12px;
}

/* -------------------------------- Utility -------------------------------- */
.center { text-align: center; margin-left: auto; margin-right: auto; }
.mt-lg { margin-top: 56px; }

/* -------------------------------- Responsive -------------------------------- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-graphic { max-width: 320px; margin: 0 auto; }
  .grid-3, .grid-2, .testimonials { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .step:not(:first-child) { border-left: none; border-top: 1px solid var(--line); padding-top: 28px; }
  .layer { grid-template-columns: 1fr; gap: 8px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .pricing-row { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 760px) {
  nav.links { display: none; }
  .menu-toggle {
    display: inline-flex;
    background: none; border: none; cursor: pointer;
    flex-direction: column; gap: 5px; padding: 6px;
  }
  .menu-toggle span { width: 22px; height: 1.5px; background: var(--ink); display: block; }
  body.nav-open nav.links {
    display: flex;
    position: fixed; top: 66px; left: 0; right: 0; bottom: 0;
    background: var(--fog); flex-direction: column; padding: 32px;
    gap: 22px; z-index: 40;
  }
  .nav-cta .btn-ghost { display: none; }
}
