/* ============================================================
   Stratium Digital — editorial marketing site
   Palette: Midnight Executive
   Type: Source Serif 4 (display) + Inter (body) + JetBrains Mono (labels)
   ============================================================ */

:root {
  --navy: #0A1E3F;
  --ink: #0E0E10;
  --bone: #F4F1EA;
  --bone-2: #ECE7DC;
  --ice: #CADCFC;
  --gold: #C8A24B;
  --gold-soft: #E8D59B;
  --rule: rgba(14, 14, 16, 0.14);
  --rule-dark: rgba(244, 241, 234, 0.18);
  --muted: rgba(14, 14, 16, 0.62);
  --muted-dark: rgba(244, 241, 234, 0.66);

  --serif: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --max: 1320px;
  --gutter: 48px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

/* ----- Wayfinding / labels ----- */
.mono,
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ----- Navigation ----- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bone);
  border-bottom: 1px solid var(--rule);
}
.nav--dark {
  background: var(--navy);
  color: var(--bone);
  border-bottom-color: var(--rule-dark);
}
.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px var(--gutter);
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: -0.01em;
}
.nav__brand img { width: 28px; height: 28px; }
.nav__brand span { font-weight: 500; }
.nav__links {
  display: flex;
  gap: 32px;
  margin-left: auto;
  font-size: 14px;
  letter-spacing: 0.01em;
}
.nav__links a {
  text-decoration: none;
  opacity: 0.78;
  transition: opacity .2s;
}
.nav__links a:hover,
.nav__links a.is-active { opacity: 1; }
.nav__cta {
  background: var(--ink);
  color: var(--bone);
  padding: 12px 20px;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.02em;
  border-radius: 2px;
  transition: background .2s;
}
.nav--dark .nav__cta { background: var(--gold); color: var(--ink); }
.nav__cta:hover { background: var(--gold); color: var(--ink); }

/* ----- Container ----- */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.wrap--narrow {
  max-width: 920px;
}

/* ----- Sections ----- */
section { padding: 120px 0; border-top: 1px solid var(--rule); }
section:first-of-type { border-top: none; }
.section--dark { background: var(--navy); color: var(--bone); border-top-color: var(--rule-dark); }
.section--ink { background: var(--ink); color: var(--bone); border-top-color: var(--rule-dark); }
.section--bone2 { background: var(--bone-2); }

/* ----- Type ----- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.05;
}
h1 { font-size: clamp(48px, 7vw, 104px); }
h2 { font-size: clamp(36px, 4.4vw, 64px); line-height: 1.08; }
h3 { font-size: 28px; line-height: 1.2; }
h4 { font-size: 20px; line-height: 1.25; }

p { margin: 0 0 1em; max-width: 62ch; }
p.lede { font-size: 22px; line-height: 1.5; max-width: 30ch; }
.small { font-size: 14px; color: var(--muted); }
.section--dark .small, .section--ink .small { color: var(--muted-dark); }

.section-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}
.section--dark .section-label::after,
.section--ink .section-label::after { background: var(--rule-dark); }

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 28px;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.02em;
  font-weight: 500;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: all .2s;
}
.btn--primary {
  background: var(--gold);
  color: var(--ink);
}
.btn--primary:hover { background: var(--gold-soft); }
.btn--dark { background: var(--ink); color: var(--bone); }
.btn--dark:hover { background: var(--navy); }
.btn--ghost {
  background: transparent;
  border-color: currentColor;
  opacity: 0.9;
}
.btn--ghost:hover { background: var(--ink); color: var(--bone); border-color: var(--ink); opacity: 1; }
.section--dark .btn--ghost:hover, .section--ink .btn--ghost:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(4px); }

/* ----- Trust strip ----- */
.trust-strip {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted-dark);
}
.trust-strip b { color: var(--bone); font-weight: 500; }

/* ----- Triptych / three-col motif ----- */
.triptych {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.section--dark .triptych, .section--ink .triptych {
  border-top-color: var(--rule-dark);
  border-bottom-color: var(--rule-dark);
}
.triptych__col {
  padding: 56px 40px 64px;
  border-right: 1px solid var(--rule);
}
.section--dark .triptych__col, .section--ink .triptych__col {
  border-right-color: var(--rule-dark);
}
.triptych__col:last-child { border-right: none; }
.triptych__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 24px;
  display: block;
}
.triptych__title {
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}
.triptych__lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  line-height: 1.4;
  margin-bottom: 20px;
  max-width: none;
}
.triptych__col p { max-width: none; font-size: 16px; line-height: 1.6; }

/* ----- Stat display ----- */
.stat-num {
  font-family: var(--serif);
  font-size: clamp(96px, 14vw, 200px);
  line-height: 0.88;
  letter-spacing: -0.04em;
  font-weight: 400;
}
.stat-num .slash { color: var(--gold); font-style: italic; }

/* ----- Footer ----- */
.footer {
  background: var(--ink);
  color: var(--bone);
  padding: 80px 0 48px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--rule-dark);
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--serif);
  font-size: 22px;
  margin-bottom: 20px;
}
.footer__brand img { width: 32px; height: 32px; }
.footer__col h5 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-dark);
  margin: 0 0 18px;
  font-weight: 500;
}
.footer__col a {
  display: block;
  text-decoration: none;
  font-size: 14px;
  padding: 6px 0;
  opacity: 0.85;
}
.footer__col a:hover { opacity: 1; color: var(--gold-soft); }
.footer__meta {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-dark);
}

/* ----- Page header (inner pages) ----- */
.page-head {
  padding: 140px 0 100px;
  border-bottom: 1px solid var(--rule-dark);
}
.page-head .eyebrow {
  color: var(--gold);
  display: block;
  margin-bottom: 36px;
}
.page-head h1 {
  max-width: 18ch;
  margin-bottom: 32px;
}
.page-head .lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: 26px;
  line-height: 1.4;
  color: var(--muted-dark);
  max-width: 40ch;
}

/* ----- Utilities ----- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.grid-2--tight { gap: 48px; }
.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }
.rule--dark { background: var(--rule-dark); }

/* Wordmark — matches deck lockup: "stratium" in gold with the "a" and "i"
   pulled out in orange (AI inside the name), then "digital" in lighter
   gold at regular weight. */
.wordmark {
  font-family: var(--sans);
  font-size: inherit;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  text-decoration: none;
  line-height: 1;
  color: #F5B01A;               /* gold, matches deck */
  display: inline-flex;
  align-items: baseline;
}
.wordmark i {
  font-style: normal;
  color: #E85A1A;               /* orange accents: a + i = AI */
}
.wordmark u {
  font-weight: 400;
  text-decoration: none;
  color: inherit;               /* same gold as stratium */
  margin-left: 0.06em;
}

/* Circle portraits — matches the deck treatment (deck slide 13).
   Image sits on a steel-blue circle background, thin outline.
   Use class="portrait portrait--circle" with <img> inside. */
.portrait {
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
}
.portrait--circle {
  background: transparent;
}
.portrait--circle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
/* Placeholder variant — stays available for un-photographed people. */
.portrait--placeholder {
  background: repeating-linear-gradient(
    135deg,
    rgba(14,14,16,0.04),
    rgba(14,14,16,0.04) 2px,
    rgba(14,14,16,0.06) 2px,
    rgba(14,14,16,0.06) 4px
  ), var(--bone-2);
}
.portrait__label {
  position: absolute;
  bottom: 14px;
  left: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.55;
}

/* Circle stamp — reusable ornament echoing deck graphics.
   Place as decorative element, or wrap numerals. */
.stamp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid currentColor;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  line-height: 1;
}
.stamp--filled { background: var(--navy); color: var(--bone); border-color: var(--navy); }
.stamp--gold   { background: var(--gold); color: var(--ink); border-color: var(--gold); }

@media (max-width: 900px) {
  :root { --gutter: 24px; }
  section { padding: 80px 0; }
  .nav__links { display: none; }
  .triptych { grid-template-columns: 1fr; }
  .triptych__col { border-right: none; border-bottom: 1px solid var(--rule); }
  .section--dark .triptych__col, .section--ink .triptych__col { border-bottom-color: var(--rule-dark); }
  .triptych__col:last-child { border-bottom: none; }
  .grid-2 { grid-template-columns: 1fr; gap: 48px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .page-head { padding: 90px 0 60px; }
}

/* Back-to-top floating button */
.to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--bone);
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 220ms ease, transform 220ms ease, background 160ms ease;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(14,14,16,0.18);
}
.to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.to-top:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.to-top__arrow { font-family: var(--serif); font-size: 14px; line-height: 1; transform: translateY(-1px); }
@media (max-width: 720px) {
  .to-top { right: 16px; bottom: 16px; padding: 10px 14px; }
  .to-top__label { display: none; }
}
