/* ==========================================================================
   Laurenceo Intelligence — design tokens
   ========================================================================== */
:root {
  --bg: #0F0F0F;
  --bg-raised: #141518;
  --line: #1E2530;          /* hairlines */
  --accent: #213547;        /* primary accent (borders, fills) */
  --accent-strong: #2C4760;
  --brand-blue: #3D68B0;    /* sampled from the Laurenceo mark */
  --brand-grey: #7A7A7A;
  --ice: #A9D1F2;           /* light accent for eyebrows / links */
  --text: #F2F3F5;
  --text-2: #B9BEC6;
  --text-3: #7D848F;

  --tag-gov: #3A1E24;   --tag-gov-t: #E7A3AD;
  --tag-aud: #33291A;   --tag-aud-t: #E3C58E;
  --tag-auto: #251E38;  --tag-auto-t: #BCA8EC;
  --tag-infra: #1A2E2A; --tag-infra-t: #93D3BF;
  --tag-sec: #1C2838;   --tag-sec-t: #9DC1EA;

  --radius: 18px;
  --radius-pill: 999px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --maxw: 1080px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01";
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--accent-strong); color: #fff; }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ==========================================================================
   Reading progress
   ========================================================================== */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent-strong), var(--brand-blue)); }

/* ==========================================================================
   Navigation — floating pill
   ========================================================================== */
.nav-wrap { position: fixed; top: 20px; left: 0; right: 0; z-index: 50; display: flex; justify-content: center; padding: 0 16px; pointer-events: none; }
.nav {
  pointer-events: auto;
  display: flex; align-items: center; gap: 28px;
  padding: 8px 10px 8px 12px;
  background: rgba(17, 18, 21, .72);
  border: 1px solid var(--accent);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 10px 30px -12px rgba(0,0,0,.6);
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav.is-scrolled { background: rgba(15, 15, 15, .88); border-color: var(--accent-strong); }
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-brand img { width: 30px; height: 30px; }
.nav-wordmark { font-weight: 700; font-size: 14px; letter-spacing: -.01em; white-space: nowrap; }
.nav-wordmark span { color: var(--text-3); font-weight: 500; }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  font-size: 13px; font-weight: 500; color: var(--text-2); text-decoration: none;
  padding: 7px 12px; border-radius: var(--radius-pill);
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.is-active { color: var(--text); background: rgba(33, 53, 71, .7); }
.nav-status {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--text-2); padding: 6px 12px; border-radius: var(--radius-pill);
  border: 1px solid var(--line); background: rgba(255,255,255,.02);
}
.nav-status i { width: 6px; height: 6px; border-radius: 50%; background: #E3C58E; box-shadow: 0 0 0 3px rgba(227,197,142,.12); }
.nav-status.is-live i { background: #7FD1A8; box-shadow: 0 0 0 3px rgba(127,209,168,.14); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(127,209,168,0); } }

/* ==========================================================================
   Masthead
   ========================================================================== */
.masthead { padding: 168px 0 72px; border-bottom: 1px solid var(--line); position: relative; }
.masthead::before {
  /* single, very quiet brand wash — not a gradient background */
  content: ""; position: absolute; left: 50%; top: 40px; width: 720px; height: 360px; transform: translateX(-80%);
  background: radial-gradient(closest-side, rgba(33,53,71,.35), transparent);
  pointer-events: none; z-index: -1;
}
.eyebrow {
  margin: 0 0 18px; font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ice);
}
h1 {
  margin: 0; font-size: clamp(44px, 8.4vw, 92px); line-height: .98; font-weight: 800; letter-spacing: -.045em;
  text-wrap: balance;
}
.lede { margin: 24px 0 0; max-width: 36ch; font-size: clamp(18px, 2.1vw, 22px); line-height: 1.45; color: var(--text-2); letter-spacing: -.01em; }

.edition {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 56px 0 0; padding: 0; border-top: 1px solid var(--line);
}
.edition div { padding: 18px 20px 0 0; }
.edition div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.edition dt { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.edition dd { margin: 6px 0 0; font-size: 15px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }

.notice {
  display: inline-flex; gap: 10px; align-items: flex-start;
  margin: 36px 0 0; padding: 10px 16px; max-width: 100%;
  font-size: 13px; line-height: 1.5; color: var(--text-2);
  border: 1px solid var(--accent); border-radius: 12px; background: rgba(33,53,71,.18);
}
.notice strong { color: var(--text); font-weight: 600; }

/* ==========================================================================
   Section scaffolding
   ========================================================================== */
section { position: relative; }
.section-head { margin-bottom: 44px; }
.kicker {
  display: flex; align-items: center; gap: 10px; margin: 0 0 14px;
  font-size: 14px; font-weight: 500; color: var(--ice);
}
.kicker-mark {
  font-family: var(--mono); font-size: 11px; color: var(--text-3);
  border: 1px solid var(--accent); border-radius: 6px; padding: 2px 6px; line-height: 1.4;
}
h2 { margin: 0; font-size: clamp(30px, 4.2vw, 44px); line-height: 1.08; font-weight: 700; letter-spacing: -.03em; }
.section-sub { margin: 14px 0 0; max-width: 62ch; font-size: 16px; color: var(--text-2); }

/* ==========================================================================
   Index
   ========================================================================== */
.index-section { padding: 64px 0 40px; }
.index-section .section-head { margin-bottom: 18px; }
.index-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 0; border-top: 1px solid var(--line); }
.index-list li { border-right: 1px solid var(--line); }
.index-list li:last-child { border-right: 0; }
.index-list a {
  display: block; height: 100%; padding: 18px 18px 22px 0; text-decoration: none;
  transition: color .2s;
}
.index-list li + li a { padding-left: 18px; }
.index-num { display: block; font-family: var(--mono); font-size: 11px; color: var(--text-3); margin-bottom: 10px; }
.index-topic { display: block; font-size: 12px; color: var(--ice); margin-bottom: 6px; font-weight: 500; }
.index-head { display: block; font-size: 14px; line-height: 1.4; font-weight: 600; color: var(--text-2); transition: color .2s; }
.index-list a:hover .index-head { color: var(--text); }

/* ==========================================================================
   Developments — editorial rows, not cards
   ========================================================================== */
.briefing { padding: 56px 0 40px; }
.developments { border-top: 1px solid var(--line); }
.dev {
  display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px;
  padding: 52px 0; border-bottom: 1px solid var(--line);
}
.dev-meta { position: relative; }
.dev-meta-inner { position: sticky; top: 112px; }
.dev-num {
  font-family: var(--mono); font-size: 13px; color: var(--text-3); letter-spacing: .04em;
  display: flex; align-items: center; gap: 12px;
}
.dev-num::after { content: ""; flex: 1; height: 1px; background: var(--line); max-width: 64px; }
.tag {
  display: inline-block; margin-top: 18px; padding: 4px 12px; border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 500; line-height: 1.5; border: 1px solid transparent;
}
.tag[data-tone="governance"] { background: var(--tag-gov);   color: var(--tag-gov-t);   border-color: rgba(231,163,173,.18); }
.tag[data-tone="compute"]    { background: var(--tag-aud);   color: var(--tag-aud-t);   border-color: rgba(227,197,142,.18); }
.tag[data-tone="automation"] { background: var(--tag-auto);  color: var(--tag-auto-t);  border-color: rgba(188,168,236,.18); }
.tag[data-tone="infrastructure"] { background: var(--tag-infra); color: var(--tag-infra-t); border-color: rgba(147,211,191,.18); }
.tag[data-tone="security"]   { background: var(--tag-sec);   color: var(--tag-sec-t);   border-color: rgba(157,193,234,.18); }
.dev-entity { margin: 14px 0 0; font-size: 14px; font-weight: 600; color: var(--text); }
.dev-region { margin: 2px 0 0; font-size: 13px; color: var(--text-3); }

.dev h3 {
  margin: 0; font-size: clamp(22px, 2.7vw, 30px); line-height: 1.2; font-weight: 700; letter-spacing: -.022em;
  text-wrap: balance;
}
.dev-summary { margin: 18px 0 0; font-size: 17px; line-height: 1.7; color: var(--text-2); max-width: 66ch; }

.why {
  margin: 28px 0 0; padding: 20px 24px; max-width: 66ch;
  border: 1px solid var(--accent); border-radius: 14px;
  background: rgba(33, 53, 71, .16);
}
.why-label {
  display: flex; align-items: center; gap: 8px; margin: 0 0 8px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ice);
}
.why-label svg { width: 14px; height: 14px; }
.why p:last-child { margin: 0; font-size: 15.5px; line-height: 1.65; color: var(--text); }

.dev-source {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
  margin: 22px 0 0; font-size: 13px; color: var(--text-3);
}
.dev-source a {
  color: var(--text-2); text-decoration: none; border-bottom: 1px solid var(--accent-strong);
  padding-bottom: 1px; transition: color .2s, border-color .2s;
}
.dev-source a:hover { color: var(--ice); border-color: var(--ice); }
.dev-source .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--text-3); opacity: .6; }
.src-ref { font-family: var(--mono); font-size: 11px; color: var(--text-3); text-decoration: none; }
.src-ref:hover { color: var(--ice); }

.loading { padding: 48px 0; color: var(--text-3); font-size: 14px; }

/* ==========================================================================
   Big Picture
   ========================================================================== */
.big-picture { padding: 112px 0 96px; }
.bp-body { border-top: 1px solid var(--line); padding-top: 44px; }
.bp-thesis {
  margin: 0; max-width: 24ch;
  font-size: clamp(28px, 4.2vw, 46px); line-height: 1.14; font-weight: 700; letter-spacing: -.03em;
  text-wrap: balance;
}
.bp-thesis em { font-style: normal; color: var(--ice); }
.bp-text { margin: 36px 0 0; max-width: 920px; columns: 2 320px; column-gap: 48px; }
.bp-text p { margin: 0 0 18px; font-size: 16.5px; line-height: 1.75; color: var(--text-2); break-inside: avoid; }
.signals { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); border-top: 1px solid var(--line); }
.signals li { padding: 24px 24px 0 0; }
.signals li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.signal-label { margin: 0; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.signal-title { margin: 10px 0 6px; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.signal-text { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--text-2); }
.signal-dir { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-family: var(--mono); font-size: 11px; color: var(--ice); }

/* ==========================================================================
   Sources
   ========================================================================== */
.sources { padding: 40px 0 112px; }
.source-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); counter-reset: src; }
.source-list li {
  display: grid; grid-template-columns: 56px 240px minmax(0, 1fr) 230px; gap: 20px; align-items: baseline;
  padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 14px;
  transition: background .2s;
}
.source-list li:target { background: rgba(33,53,71,.25); }
.source-list .s-id { font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.source-list .s-name { font-weight: 600; color: var(--text); }
.source-list .s-type { display: block; font-weight: 400; font-size: 12.5px; color: var(--text-3); margin-top: 2px; }
.source-list .s-ref { color: var(--text-2); }
.source-list .s-link-wrap { justify-self: end; }
.source-list a.s-link {
  font-family: var(--mono); font-size: 12px; color: var(--ice); text-decoration: none; white-space: nowrap;
  border: 1px solid var(--accent); padding: 5px 10px; border-radius: var(--radius-pill); transition: background .2s, border-color .2s;
}
.source-list a.s-link:hover { background: rgba(33,53,71,.5); border-color: var(--accent-strong); }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { border-top: 1px solid var(--line); padding: 44px 0 56px; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; align-items: flex-start; }
.footer-brand { display: flex; gap: 14px; align-items: center; }
.footer-name { margin: 0; font-weight: 700; font-size: 15px; }
.footer-tag { margin: 2px 0 0; font-size: 13px; color: var(--ice); }
.footer-meta { margin: 0; max-width: 46ch; font-size: 12.5px; line-height: 1.6; color: var(--text-3); text-align: right; }
.footer-meta span { display: block; margin-top: 6px; font-family: var(--mono); font-size: 11px; }

/* ==========================================================================
   Motion
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.masthead .reveal:nth-child(2) { transition-delay: .06s; }
.masthead .reveal:nth-child(3) { transition-delay: .12s; }
.masthead .reveal:nth-child(4) { transition-delay: .2s; }
.masthead .reveal:nth-child(5) { transition-delay: .28s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .nav-status.is-live i { animation: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .index-list { grid-template-columns: 1fr; }
  .index-list li { border-right: 0; border-bottom: 1px solid var(--line); }
  .index-list li a, .index-list li + li a { padding: 14px 0; display: grid; grid-template-columns: 36px 1fr; column-gap: 12px; }
  .index-num { grid-row: span 2; margin: 2px 0 0; }
  .index-topic { margin-bottom: 2px; }
  .dev { grid-template-columns: 1fr; gap: 20px; padding: 40px 0; }
  .dev-meta-inner { position: static; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
  .dev-num::after { display: none; }
  .tag, .dev-entity { margin: 0; }
  .dev-region { margin: 0; }
  .dev-region::before { content: "· "; }
}

@media (max-width: 760px) {
  .container { padding: 0 16px; }
  .nav { gap: 10px; padding: 6px 6px 6px 8px; }
  .nav-links { display: none; }
  .nav-wordmark span { display: none; }
  .nav-wrap { top: 12px; }
  .masthead { padding: 120px 0 52px; }
  .masthead::before { width: 420px; transform: translateX(-60%); }
  .edition { grid-template-columns: repeat(2, minmax(0,1fr)); margin-top: 40px; }
  .edition div:nth-child(3) { padding-left: 0; border-left: 0; }
  .edition div:nth-child(n+3) { padding-top: 16px; }
  .briefing { padding-top: 64px; }
  .dev-summary { font-size: 16px; }
  .why { padding: 16px 18px; }
  .big-picture { padding: 80px 0 64px; }
  .signals { grid-template-columns: 1fr; }
  .signals li, .signals li + li { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .source-list li { grid-template-columns: 40px 1fr; gap: 6px 12px; }
  .source-list .s-ref, .source-list .s-link-wrap { grid-column: 2; justify-self: start; }
  .footer-inner { flex-direction: column; }
  .footer-meta { text-align: left; }
}
