/* Shared styles for the inner pages (about, white paper, frontier labs).
   Tokens and base components mirror the inline styles in index.html. */

/* ---------------------------------------------------------------- Glacier theme, tuned to the logo */
:root {
  --bg: #ffffff;
  --panel: rgba(247, 250, 250, 0.86);
  --card: rgba(255, 255, 255, 0.72);
  --ink: #0c1417;
  --ink2: #243034;
  --sub: #46545a;
  --muted: #6a787e;
  --line: #dde4e6;
  --line2: #cbd5d8;
  --accent: #0b6e99;
  --cyan: #2a9fd6;
  --grey: #a6a6a6;
  --max: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 "Instrument Sans", system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
h1, h2, h3 { font-family: "Instrument Sans", sans-serif; font-weight: 700; letter-spacing: -0.025em; color: #000; margin: 0; }
h3 { font-weight: 600; }
p { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
::selection { background: #cfe3ef; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 40px; }
@media (max-width: 700px) { .wrap { padding: 0 16px; } }

.label { display: inline-flex; align-items: center; font: 600 13px/1.2 "Instrument Sans", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.h2 { font-weight: 500; font-size: clamp(34px, 4.4vw, 58px); line-height: 1.04; margin-top: 18px; text-wrap: balance; }
/* section headings lead their block (no eyebrow label above them any more) */
:is(.h2, .page-hero h1, .pull, .note .quote):first-child { margin-top: 0; }
.lead { font-size: clamp(17px, 1.5vw, 19px); font-weight: 600; color: #1f2a2e; max-width: 680px; margin-top: 18px; text-wrap: pretty; }
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 12px 22px; font-weight: 500; font-size: 15px; transition: transform .25s var(--ease), background .25s; }
.btn:hover { transform: translateY(-1px); }
.btn-solid { background: var(--ink); color: #ffffff; }
.btn-ghost { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line2); background: rgba(255,255,255,.5); }
.btn-sm { padding: 8px 15px; font-size: 13.5px; }
.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: 14.5px; color: var(--ink); border-bottom: 1px solid var(--line2); padding-bottom: 2px; transition: border-color .2s, gap .2s; }
.link:hover { border-color: var(--ink); gap: 9px; }
.num { font: 500 12px "Instrument Sans", sans-serif; letter-spacing: .12em; color: var(--accent); }
.ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }

.panel { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
section { padding: 112px 0; }
@media (max-width: 860px) { section { padding: 80px 0; } }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------------------------------------------------------------- nav: a floating glass bar, the platinum mark + wordmark,
   quiet pill links (the current section / page gets a soft pill and a teal dot), and the black call to action */
nav { position: fixed; z-index: 10; top: 10px; left: 0; right: 0; height: 56px; pointer-events: none; }
.nav-in { pointer-events: auto; position: relative; width: calc(100% - 32px); max-width: 1240px; height: 100%; margin: 0 auto; padding: 0 8px 0 16px;
  display: flex; align-items: center; gap: 20px; border-radius: 16px; border: 1px solid rgba(203, 213, 216, .7);
  background: rgba(255, 255, 255, .72); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 1px 2px rgba(12, 20, 23, .04); transition: background .3s, box-shadow .3s, border-color .3s; }
nav.scrolled .nav-in { background: rgba(255, 255, 255, .88); border-color: rgba(203, 213, 216, .95); box-shadow: 0 14px 34px -18px rgba(12, 20, 23, .28), 0 1px 2px rgba(12, 20, 23, .05); }
.brand { display: flex; align-items: center; gap: 10px; flex: none; color: var(--ink); }
.brand img { height: 26px; width: auto; display: block; }
.brand .wm { display: flex; align-items: baseline; gap: 6px; font: 600 17px/1 "Instrument Sans", sans-serif; letter-spacing: -0.02em; }
.brand .wm small { font-size: 9.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.links { display: flex; gap: 2px; margin: 0 auto; font-size: 14px; font-weight: 500; color: var(--ink2); }
.links a { position: relative; padding: 7px 12px; border-radius: 999px; transition: background .2s, color .2s; }
.links a:hover { background: rgba(12, 20, 23, .05); color: var(--ink); }
.links a.on, .links a[aria-current] { background: rgba(12, 20, 23, .06); color: var(--ink); }
.links a.on::after, .links a[aria-current]::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: #0b6e99; }
.nav-cta { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 11px; background: var(--ink); color: #fff;
  font-size: 13.5px; font-weight: 500; transition: background .25s; }
.nav-cta::after { content: "→"; transition: transform .25s var(--ease); }
.nav-cta:hover { background: #1c272b; }
.nav-cta:hover::after { transform: translateX(3px); }
.menu-btn { display: none; flex: none; width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; position: relative; }
.menu-btn i { position: absolute; left: 11px; right: 11px; height: 1.6px; border-radius: 2px; background: var(--ink); transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-btn i:first-child { top: 15px; } .menu-btn i:last-child { top: 23px; }
nav.open .menu-btn i:first-child { top: 19px; transform: rotate(45deg); } nav.open .menu-btn i:last-child { top: 19px; transform: rotate(-45deg); }
@media (max-width: 1080px) {
  .links { display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0; margin: 0; padding: 8px; flex-direction: column; gap: 2px; border-radius: 16px;
    border: 1px solid rgba(203, 213, 216, .9); background: #fff;
    box-shadow: 0 18px 40px -20px rgba(12, 20, 23, .3); font-size: 15px; }
  .links a { padding: 11px 14px; border-radius: 10px; }
  .links a.on::after, .links a[aria-current]::after { left: auto; right: 14px; bottom: 50%; margin: 0 0 -2px; }
  nav.open .links { display: flex; }
  .nav-in { gap: 8px; }
  .nav-cta { margin-left: auto; }
  .menu-btn { display: block; }
}
@media (max-width: 420px) { .brand .wm small { display: none; } .nav-cta { padding: 9px 12px; } }

/* ---------------------------------------------------------------- page hero */
.page-hero { position: relative; padding: 168px 0 96px; overflow: hidden; isolation: isolate; }
.page-hero::before, .page-hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.page-hero::before { width: 1000px; height: 1000px; left: -520px; bottom: -640px; background: radial-gradient(closest-side, rgba(42, 159, 214, 0.13), transparent); }
.page-hero::after { width: 860px; height: 860px; right: -400px; top: -440px; background: radial-gradient(closest-side, rgba(170, 186, 196, 0.32), transparent); }
.page-hero h1 { font-weight: 500; font-size: clamp(42px, 6.4vw, 88px); line-height: 1.02; letter-spacing: -0.025em; margin-top: 22px; max-width: 1000px; text-wrap: balance; }
.page-hero h1 .soft { color: var(--grey); }
.page-hero .lead { font-size: clamp(18px, 1.7vw, 21px); max-width: 720px; margin-top: 24px; }
.page-hero .kicker { margin-top: 16px; font-size: 14px; color: var(--muted); }
@media (max-width: 860px) { .page-hero { padding: 128px 0 64px; } }

/* ---------------------------------------------------------------- stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line2); }
.stat { padding: 28px 24px 28px 0; border-bottom: 1px solid var(--line2); }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line2); }
.stat b { display: block; font: 500 clamp(36px, 4vw, 54px)/1 "Instrument Sans", sans-serif; letter-spacing: -0.025em; color: var(--ink); }
.stat span { display: block; margin-top: 12px; font-weight: 500; color: var(--ink2); font-size: 15px; }
.stat small { display: block; margin-top: 4px; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
@media (max-width: 960px) { .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(3) { padding-left: 0; border-left: 0; } }
@media (max-width: 520px) { .stats { grid-template-columns: 1fr; } .stat, .stat + .stat { padding-left: 0; border-left: 0; } }

/* ---------------------------------------------------------------- layout helpers */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.split.wide-l { grid-template-columns: 1.15fr 1fr; }
@media (max-width: 860px) { .split, .split.wide-l { grid-template-columns: 1fr; gap: 36px; } }
.prose p { color: var(--sub); font-size: 17px; text-wrap: pretty; }
.prose p + p { margin-top: 16px; }
.prose p b, .prose li b { color: var(--ink); font-weight: 600; }
.prose h3 { font-size: 22px; margin: 34px 0 12px; }
.prose h3:first-child { margin-top: 0; }
.section-head { max-width: 860px; }
.section-head .num { display: block; }

/* ---------------------------------------------------------------- cards */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 56px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; }
@media (max-width: 1080px) { .grid4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 960px) { .grid3 { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .grid2, .grid4 { grid-template-columns: 1fr; } }
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 30px; transition: border-color .3s, transform .4s var(--ease); }
.card:hover { border-color: var(--line2); transform: translateY(-2px); }
.card h3 { font-size: 22px; margin: 12px 0 10px; }
.card > p { color: var(--sub); font-size: 15.5px; }
.card > p + p { margin-top: 12px; }
.card .kick { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.card .foot-note { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.card .foot-note b { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 4px; }
.card.top-line { padding-top: 34px; }
.card.top-line::before { content: ""; position: absolute; left: 30px; top: 0; width: 36px; height: 2px; background: var(--cyan); }
.card.dark { background: #0c1417; border-color: #0c1417; color: #eef3f4; }
.card.dark h3 { color: #fff; }
.card.dark > p, .card.dark .ticks li { color: #c9d4d6; }
.card.dark .ticks li::before { background: var(--cyan); }
.badge { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 12.5px; font-weight: 500; color: var(--accent); background: rgba(42, 159, 214, 0.08); border-radius: 999px; padding: 5px 11px; }
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); }
.ticks { margin-top: 18px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 20px; font-size: 15px; color: var(--ink2); line-height: 1.5; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 1px; background: var(--accent); }
.prose .ticks li { font-size: 16.5px; color: var(--sub); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tags span { font-size: 13.5px; color: var(--ink2); padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.7); border: 1px solid var(--line); }

/* ---------------------------------------------------------------- quote */
.pull { font-family: "Instrument Sans", sans-serif; font-weight: 500; font-size: clamp(28px, 3.4vw, 46px); line-height: 1.12; letter-spacing: -0.02em; max-width: 1000px; margin-top: 22px; text-wrap: balance; }
.pull span { color: var(--grey); }
.pull-by { margin-top: 20px; font-size: 14px; color: var(--muted); }

/* ---------------------------------------------------------------- flow / pipeline */
.flow { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0; margin-top: 40px; counter-reset: flow; }
.flow li { position: relative; padding: 18px 18px 18px 0; border-top: 2px solid var(--line2); font: 500 15px/1.35 "Instrument Sans", sans-serif; color: var(--ink); }
.flow li::before { counter-increment: flow; content: counter(flow, decimal-leading-zero); display: block; font: 500 12px "Instrument Sans", sans-serif; letter-spacing: .12em; color: var(--accent); margin-bottom: 8px; }
.flow li::after { content: ""; position: absolute; left: 0; top: -5px; width: 8px; height: 8px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.flow-cap { margin-top: 10px; font-size: 13.5px; color: var(--muted); }
@media (max-width: 860px) {
  .flow { grid-auto-flow: row; }
  .flow li { border-top: 0; border-left: 2px solid var(--line2); padding: 4px 0 18px 22px; }
  .flow li::after { left: -5px; top: 6px; }
}

/* ---------------------------------------------------------------- callout (research note) */
.callout { margin-top: 32px; padding: 20px 24px; border-left: 2px solid var(--cyan); background: rgba(42, 159, 214, 0.05); border-radius: 0 12px 12px 0; color: var(--ink2); font-size: 15.5px; }
.callout b { display: block; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 6px; }

/* ---------------------------------------------------------------- table */
.table-wrap { margin-top: 40px; overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 18px 22px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); background: rgba(12,20,23,.025); }
td:first-child { font-weight: 600; color: var(--ink); width: 30%; min-width: 170px; }
td { color: var(--sub); }

/* ---------------------------------------------------------------- accordion */
.acc { margin-top: 40px; border-top: 1px solid var(--line2); }
.acc details { border-bottom: 1px solid var(--line2); }
.acc summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 18px; padding: 24px 0; font: 500 clamp(20px, 2vw, 26px)/1.2 "Instrument Sans", sans-serif; letter-spacing: -0.02em; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; margin-left: auto; font: 400 24px "Instrument Sans", sans-serif; color: var(--accent); transition: transform .3s var(--ease); }
.acc details[open] summary::after { transform: rotate(45deg); }
.acc summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.acc .acc-body { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 48px; padding: 4px 0 32px 34px; }
.acc h4 { margin: 0 0 4px; font: 600 15px "Instrument Sans", sans-serif; color: var(--ink); }
.acc .ticks { margin-top: 8px; }
@media (max-width: 760px) { .acc .acc-body { grid-template-columns: 1fr; padding-left: 0; } }

/* ---------------------------------------------------------------- references */
.refs { margin-top: 48px; display: grid; gap: 40px; }
.refs h3 { font: 600 12px "Instrument Sans", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.refs ol { display: grid; }
.refs li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--sub); }
.refs li > span { font: 500 13px "Instrument Sans", sans-serif; color: var(--accent); padding-top: 2px; }
.refs li a { display: inline-block; margin-top: 6px; font-size: 13.5px; color: var(--accent); word-break: break-all; }
.refs li a:hover { text-decoration: underline; }
.refs li i { color: var(--ink); font-style: normal; font-weight: 500; }

/* ---------------------------------------------------------------- contact strip */
.end-cta { text-align: center; }
.end-cta .lead { margin-left: auto; margin-right: auto; }
.end-cta .ctas { justify-content: center; }

/* ---------------------------------------------------------------- footer */
footer { padding: 72px 0 40px; background: var(--panel); border-top: 1px solid var(--line); }
.foot-cta { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 56px; margin-bottom: 56px; border-bottom: 1px solid var(--line); }
.foot-cta h2 { font-weight: 500; font-size: clamp(26px, 2.8vw, 36px); line-height: 1.1; max-width: 640px; text-wrap: balance; }
.foot-cta p { color: var(--sub); font-size: 16px; max-width: 600px; margin-top: 12px; }
.foot { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: 40px; }
.foot p { color: var(--sub); font-size: 14.5px; max-width: 360px; margin-top: 16px; }
.foot h4 { margin: 0 0 14px; font: 600 12px "Instrument Sans", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.foot ul { display: grid; gap: 9px; font-size: 14.5px; color: var(--ink2); }
.foot a:hover { color: var(--ink); }
.legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
@media (max-width: 860px) { .foot { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- metallic sheen (assets/sheen.js) */
/* a canvas paints the glyphs; the DOM text stays for selection and screen readers */
[data-sheen] { position: relative; }
[data-sheen] .sh-w { white-space: nowrap; }   /* keeps the baseline probe on its word's line */
[data-sheen] .sh-p { display: inline-block; width: 0; height: 0; }
[data-sheen] > canvas { position: absolute; pointer-events: none; visibility: hidden; }
[data-sheen][data-live] .sh-w { color: transparent; }
[data-sheen][data-live] > canvas { visibility: visible; }
