/* ==========================================================================
   MERIDIAN — Site styles (Phase 1 skeleton)
   Depends on tokens.css. Marketing-site surface only.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--body-size);
  line-height: var(--body-line);
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; color: var(--heading); line-height: 1.05; margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Focus: visible 1px gold offset ring on every interactive element */
:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }

/* --- Layout primitives ---------------------------------------------------- */
.shell {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--page-margin);
}
.label {
  font-size: var(--label-size);
  text-transform: uppercase;
  letter-spacing: var(--label-track);
  color: var(--gold);
  font-family: var(--font-body);
  font-weight: 500;
}
.mono { font-family: var(--font-mono); }
.hairline { border: 0; border-top: 1px solid var(--rule); margin: 0; }

/* --- S0: top coordinate strip --------------------------------------------- */
.coordbar {
  border-bottom: 1px solid var(--rule);
  font-size: var(--t-xs);
}
.coordbar .shell {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-block: 12px; min-height: 44px;
}
.coordbar .coords { letter-spacing: .1em; color: rgba(244,241,233,.6); }
.locale-switch { display: flex; gap: 14px; align-items: center; }
.locale-switch a { font-size: var(--t-xs); letter-spacing: .1em; color: rgba(244,241,233,.55); }
.locale-switch a[aria-current="true"] { color: var(--gold); }

/* --- S1: brand row -------------------------------------------------------- */
.brandbar .shell {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding-block: 28px;
}
.brand {
  font-family: var(--font-display);
  font-size: var(--t-lg);
  letter-spacing: .06em;
  color: var(--ivory);
}
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: var(--label-track);
  padding: 14px 22px;
  min-height: 44px;
  border-radius: var(--radius);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn-primary { background: var(--gold); color: var(--obsidian-900); font-weight: 500; }
.btn-primary:hover { background: #C39E5E; }
.btn-ghost { border: 1px solid var(--gold-dim); color: var(--ivory); }
.btn-ghost:hover { border-color: var(--gold); }

/* --- S2: hero + the signature meridian line ------------------------------- */
.hero { position: relative; min-height: 82vh; display: flex; align-items: center; }
.hero .shell { position: relative; z-index: 2; width: 100%; }
.hero__grid {
  display: grid;
  grid-template-columns: repeat(var(--grid-cols), 1fr);
  gap: var(--gutter);
  align-items: center;
}
.hero__copy { grid-column: 1 / span 8; }
.hero h1 {
  font-size: var(--t-hero);
  font-weight: 300;
  letter-spacing: -0.015em;
  max-width: 14ch;
}
.hero h1 em { font-style: italic; color: var(--gold); }
.hero__sub {
  margin-top: 28px;
  max-width: 44ch;
  color: var(--text);
  font-size: var(--t-lg);
  line-height: 1.55;
}
.hero__cta { margin-top: 40px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.hero__cta .textlink { font-size: var(--t-sm); color: var(--ivory); border-bottom: 1px solid var(--gold-dim); padding-bottom: 3px; }
.hero__cta .textlink:hover { border-color: var(--gold); }

/* The meridian: 1px vertical gold line connecting two coordinate points */
.meridian {
  position: absolute;
  top: 8%; bottom: 8%;
  right: clamp(80px, 20vw, 360px);
  width: 1px;
  background: linear-gradient(var(--gold-dim), var(--gold), var(--gold-dim));
  z-index: 1;
}
.meridian__point {
  position: absolute; right: -4px; width: 9px; height: 9px;
  border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 0 6px rgba(174,138,80,.12);
}
.meridian__point--nbo { top: 22%; }
.meridian__point--buh { bottom: 22%; }
.meridian__tag {
  position: absolute; right: 20px; white-space: nowrap;
  font-size: var(--t-xs); letter-spacing: .12em;
  color: rgba(244,241,233,.6); font-family: var(--font-mono);
}
.meridian__tag--nbo { top: calc(22% - 7px); }
.meridian__tag--buh { bottom: calc(22% - 7px); }

/* --- S3: verified-against strip ------------------------------------------- */
.verified { border-block: 1px solid var(--rule); }
.verified .shell {
  display: flex; align-items: center; gap: clamp(20px, 5vw, 64px);
  flex-wrap: wrap; padding-block: 28px;
}
.verified .label { color: rgba(244,241,233,.5); }
.verified ul { list-style: none; display: flex; gap: clamp(18px,4vw,48px); margin: 0; padding: 0; flex-wrap: wrap; }
.verified li { font-size: var(--t-sm); letter-spacing: .08em; color: var(--ivory); }

/* --- Privacy band --------------------------------------------------------- */
.privacy-band { border-top: 1px solid var(--rule); }
.privacy-band .shell { padding-block: 40px; text-align: center; }
.privacy-band p { margin: 0; font-family: var(--font-display); font-style: italic; font-size: var(--t-lg); color: var(--ivory); }

/* --- Footer --------------------------------------------------------------- */
.footer { border-top: 1px solid var(--rule); }
.footer .shell { padding-block: 48px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: var(--t-sm); color: rgba(244,241,233,.55); }
.footer .brand { font-size: var(--t-md); }

/* --- Reveal-on-scroll (first reveal only; JS adds .in) -------------------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ==========================================================================
   Responsive — single column below 768, no horizontal scroll ever
   ========================================================================== */
@media (max-width: 1024px) {
  .hero__copy { grid-column: 1 / span 10; }
  .meridian { right: clamp(40px, 12vw, 160px); }
}
@media (max-width: 768px) {
  :root { --section-pad: var(--section-pad-mobile); }
  .hero { min-height: 78vh; }
  .hero__copy { grid-column: 1 / -1; }
  .hero h1 { max-width: 100%; }
  .meridian { display: none; }              /* mobile: line becomes left border on sections */
  .brandbar .shell { flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .coordbar .coords { display: none; }
  .footer .shell { flex-direction: column; }
}
