/* KelAI — site styles. Warm paper ground (#F8F8F3), logo-navy ink, amber undertones. Always light. */

/* ---------- Tokens ---------- */
:root {
  --paper: #fcfcfa;          /* page ground */
  --paper-raised: #ffffff;   /* cards, form, plates */
  --paper-sunken: #f3f3ef;   /* wells, inputs at rest */
  --amber-wash: #eef3f8;     /* light blue bands and hover washes */
  --amber-line: #d0e0f2;     /* blue-grey hairlines and accent rules */
  --depth: #0e1d3a;          /* navy bands and footer */
  --steel: #0a66c2;          /* brand-board steel blue: back construction layer */
  --ink: #0b1226;            /* logo ink */
  --ink-muted: #474c59;
  --ink-faint: #62666f;
  --on-depth: #f3efe4;       /* warm white on navy */
  --on-depth-muted: #b9b6aa;
  --line: #e6e6e0;
  --line-strong: #85847a;
  --asof: #0a66c2;           /* LinkedIn blue marks */
  --asof-bright: #70b5f9;    /* LinkedIn light blue on navy and in glows */
  --asof-ink: #004182;       /* LinkedIn dark blue text */
  --asof-soft: #dbeafa;
  --action: #004182;          /* buttons: LinkedIn dark blue at rest */
  --on-action: #ffffff;
  --link: #0a66c2;
  --focus: #0a66c2;
  --error: #a3361f;

  --font-serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --font-sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px;
  --space-8: 32px; --space-12: 48px; --space-16: 64px; --space-24: 96px; --space-32: 128px;
  --radius-sm: 3px; --radius-md: 6px;
  --measure: 68ch;
  --content-max: 1200px;
  --nav-height: 64px;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-height) + 24px); background: var(--paper); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/26px var(--font-sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, ol, ul, blockquote, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
::selection { background: var(--asof-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.on-depth :focus-visible { outline-color: var(--asof-bright); }

.wrap {
  position: relative;
  width: 100%; max-width: calc(var(--content-max) + 2 * var(--gutter)); margin-inline: auto;
  padding-left: var(--gutter); padding-right: max(20px, env(safe-area-inset-right, 0px));
}
@media (min-width: 760px) { :root { --gutter: max(32px, env(safe-area-inset-left, 0px)); } .wrap { padding-right: max(32px, env(safe-area-inset-right, 0px)); } }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--action); color: var(--on-action); padding: 8px 14px; border-radius: var(--radius-sm); }
.skip:focus { left: 12px; }

/* ---------- Type ---------- */
.eyebrow {
  font: 500 12px/16px var(--font-mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-faint); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 2px; height: 12px; background: var(--asof); flex: none; }
.eyebrow--plain::before { display: none; }
.on-depth .eyebrow { color: var(--on-depth-muted); }
.on-depth .eyebrow::before { background: var(--asof-bright); }
.display-xl { font: 400 clamp(40px, 6.2vw, 80px)/1.03 var(--font-serif); letter-spacing: -.022em; font-variation-settings: "opsz" 72; text-wrap: balance; }
.display-l { font: 400 clamp(32px, 4.4vw, 52px)/1.1 var(--font-serif); letter-spacing: -.016em; font-variation-settings: "opsz" 52; text-wrap: balance; }
.display-m { font: 400 clamp(28px, 3vw, 36px)/1.16 var(--font-serif); letter-spacing: -.01em; font-variation-settings: "opsz" 36; text-wrap: balance; }
.body-l { font-size: 18px; line-height: 30px; }
.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; } /* same two-column rhythm as the thesis and careers blocks */
@media (max-width: 860px) { .intro { grid-template-columns: 1fr; } }
.statement { padding-top: var(--space-6); border-top: 1px solid var(--amber-line); font: 300 clamp(21px, 2vw, 26px)/1.45 var(--font-serif); font-variation-settings: "opsz" 26; letter-spacing: -.005em; color: var(--ink); text-wrap: pretty; }
/* Hover / focus definitions on key phrases in the statement */
.statement { position: relative; }   /* definitions open under the statement, aligned to its column */
.term { cursor: default; white-space: nowrap; text-decoration: underline dotted var(--asof); text-decoration-thickness: 1.5px; text-underline-offset: 6px; outline: none; }
.term:focus-visible { border-radius: 2px; box-shadow: 0 0 0 2px var(--focus); }
.term__tip {
  position: absolute; z-index: 5; left: 0; top: calc(100% + 14px); width: min(380px, 100%);
  padding: 14px 16px; background: var(--paper-raised); border: 1px solid var(--amber-line); border-top: 2px solid var(--asof); border-radius: var(--radius-md);
  box-shadow: 0 18px 40px -24px rgba(0, 45, 95, .45);
  font: 400 15px/22px var(--font-sans); letter-spacing: 0; color: var(--ink-muted); text-decoration: none; white-space: normal;
  opacity: 0; visibility: hidden; transform: translateY(-4px); pointer-events: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s;
}
.term:hover .term__tip, .term:focus .term__tip, .term:focus-within .term__tip { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.term__tip.is-following { position: fixed; width: 340px; transform: none; transition: opacity .15s var(--ease), visibility 0s linear .15s; }   /* tracks the mouse pointer */
.term:hover .term__tip.is-following { transition-delay: 0s; }
.muted { color: var(--ink-muted); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.amber { color: var(--asof-ink); }
.on-depth .amber { color: var(--asof-bright); }

/* ---------- Buttons & links ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; gap: var(--space-2);
  font: 500 15px/20px var(--font-sans); padding: 12px 18px; border-radius: var(--radius-md);
  border: 1px solid transparent; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: color .3s var(--ease), border-color .3s var(--ease), transform .2s var(--ease), box-shadow .3s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--action); color: var(--on-action); }
/* Amber rises from the bottom edge on hover */
.btn--primary::before { content: ""; position: absolute; inset: auto 0 0 0; height: 0; background: var(--asof); z-index: -1; transition: height .35s var(--ease); }
.btn--primary:hover { box-shadow: 0 8px 24px -10px rgba(0, 65, 130, .55); }
.btn--primary:hover::before { height: 100%; }   /* fills with LinkedIn blue from the bottom on hover */
.btn--secondary { color: var(--ink); border-color: var(--line-strong); background: transparent; }
.btn--secondary:hover { border-color: var(--asof); background: var(--amber-wash); }
.on-depth .btn--primary { background: var(--on-depth); color: var(--depth); }
.on-depth .btn--secondary { color: var(--on-depth); border-color: var(--on-depth-muted); }
.on-depth .btn--secondary:hover { border-color: var(--asof-bright); background: rgba(10, 102, 194, .1); }

.arrow-link {
  display: inline-flex; align-items: center; gap: var(--space-2); font: 500 15px/20px var(--font-sans);
  color: var(--ink); text-decoration: none;
  background: linear-gradient(var(--asof), var(--asof)) 0 100% / 0 2px no-repeat;
  padding-bottom: 3px; transition: background-size .4s var(--ease);
}
.arrow-link:hover { background-size: 100% 2px; }
.arrow-link .arr { font-family: var(--font-mono); color: var(--asof-ink); transition: transform .3s var(--ease); }
.arrow-link:hover .arr { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40;
  background: rgba(252, 252, 250, .82);
  -webkit-backdrop-filter: saturate(140%) blur(12px); backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 41; background: var(--paper); }
.site-header.is-scrolled { border-bottom-color: var(--amber-line); background: rgba(252, 252, 250, .92); }
.site-header .logo { transition: filter .3s var(--ease); }
/* Past the hero the header turns navy, logo reversed to white (brand guide), so it stays visible over navy bands */
.site-header.is-dark { background: rgba(14, 29, 58, .94); border-bottom-color: rgba(255, 255, 255, .08); }
.site-header.is-dark .logo { filter: brightness(0) invert(1); }
body:has(.site-header.is-dark)::before { background: var(--depth); } /* notch strip matches the navy header */
.nav-link { font: 500 15px/20px var(--font-sans); color: var(--ink); text-decoration: none; padding: 8px 2px;
  background: linear-gradient(var(--asof), var(--asof)) 0 100% / 0 2px no-repeat; transition: background-size .3s var(--ease), color .3s var(--ease); }
.nav-link:hover, .nav-link[aria-current] { background-size: 100% 2px; }
.site-header.is-dark .nav-link { color: #fff; }
.site-header.is-dark .nav-link:hover, .site-header.is-dark .nav-link[aria-current] { background-image: linear-gradient(var(--asof-bright), var(--asof-bright)); }

/* Floating Contact us: always on screen, bottom right (not on the Contact page) */
.fab { position: fixed; z-index: 45; right: max(24px, env(safe-area-inset-right, 0px)); bottom: max(24px, env(safe-area-inset-bottom, 0px));
  box-shadow: 0 12px 32px -12px rgba(0, 45, 95, .55); }
.fab { border-color: rgba(255, 255, 255, .22); } /* stays legible over navy bands */
.fab { opacity: 0; transform: translateY(12px); pointer-events: none; visibility: hidden;
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s, color .3s var(--ease), box-shadow .3s var(--ease); }
.fab.is-shown { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; } /* appears once the visitor scrolls */
body:has(.fab) .site-footer { padding-bottom: 96px; } /* room so the button never covers footer links */
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--nav-height); }
.logo { display: block; height: 22px; width: auto; }
.brand { display: inline-flex; }
.on-depth .logo { filter: brightness(0) invert(1); opacity: .94; }
.progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--asof); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Sections ---------- */
.section { padding-block: var(--space-24); }
.section--tight { padding-block: var(--space-16); }
@media (max-width: 640px) { .section { padding-block: var(--space-16); } }
.rule-top { border-top: 1px solid var(--line); }
.depth { position: relative; overflow: hidden; background: var(--depth); color: var(--on-depth); }
.depth > .wrap { position: relative; z-index: 1; }
.warm { background: var(--amber-wash); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-8); padding-bottom: var(--space-4); border-bottom: 1px solid var(--amber-line); }

/* Engraving used as a background layer (hero, article header, navy bands) */
.engrave-bg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.depth .engrave-bg { opacity: .42; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%); mask-image: linear-gradient(90deg, transparent 0%, #000 55%); }

/* ---------- Home hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: clamp(440px, 62vh, 620px); display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: calc(var(--nav-height) + var(--space-16)); padding-bottom: var(--space-12);
  margin-top: calc(-1 * var(--nav-height));
  background:
    radial-gradient(60% 70% at 72% 48%, rgba(10, 102, 194, .16), transparent 70%),
    radial-gradient(40% 50% at 12% 90%, rgba(10, 102, 194, .08), transparent 70%),
    var(--paper);
}
.hero .engrave-bg {
  z-index: -1;
  /* strands stay faint behind the headline, full strength on the right */
  -webkit-mask-image: linear-gradient(100deg, rgba(0,0,0,.14) 0%, rgba(0,0,0,.2) 48%, #000 74%);
  mask-image: linear-gradient(100deg, rgba(0,0,0,.14) 0%, rgba(0,0,0,.2) 48%, #000 74%);
}
/* The as-of line: a real element above the masked engraving, moved by site.js to follow the pointer */
.asof-rule {
  position: absolute; z-index: 0; top: 0; bottom: 0; left: 68%; width: 1px; margin-left: -.5px;
  background: rgba(10, 102, 194, .6); pointer-events: none;   /* a thin, quiet "now" marker */
}
/* No handle: the line animates on its own at launch and is not draggable. */
.hero h1 { max-width: 17ch; }
/* Hero headline: sans-serif, tight and confident; the serif stays for page titles and section heads */
.hero-title {
  font: 600 clamp(36px, 4.3vw, 60px)/1.04 var(--font-sans); letter-spacing: -.032em;
  color: var(--ink); text-wrap: balance;
}
.hero .hero-title { max-width: 20ch; text-wrap: wrap; }
.hero-sub { margin-top: var(--space-4); font: 400 clamp(20px, 1.6vw, 24px)/1.35 var(--font-serif); font-variation-settings: 'opsz' 24; letter-spacing: -.005em; color: var(--ink-muted); max-width: 36ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
.hero .asof-tag {
  position: absolute; z-index: 1; top: calc(var(--nav-height) + var(--space-8)); left: var(--asof-x, 68%);
  transform: translateX(8px); font: 500 11px/16px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--asof-ink);
}
@media (max-width: 760px) { .hero .asof-tag { display: none; } }

/* ---------- Backers: one line, angels rotate ---------- */
.backers-band { border-block: 1px solid var(--amber-line); background: linear-gradient(90deg, var(--amber-wash), rgba(238, 243, 248, .35) 60%, var(--amber-wash)); }
.backers { display: flex; align-items: center; gap: var(--space-8); min-height: 76px; }
.backers__group { display: flex; align-items: center; gap: var(--space-6); flex: none; }
.backers__label { font: 500 11px/16px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--asof-ink); white-space: nowrap; }
.backers__sep { width: 1px; height: 28px; background: var(--amber-line); flex: none; }
.backers__angels { display: flex; align-items: center; gap: var(--space-6); flex: 1; min-width: 0; }
.marquee { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; align-items: center; width: max-content; animation: marquee 32s linear infinite; }
.marquee__set { display: flex; align-items: center; gap: var(--space-12); padding-right: var(--space-12); }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (max-width: 860px) {
  .backers { flex-wrap: wrap; gap: var(--space-3) var(--space-6); padding-block: var(--space-4); }
  .backers__sep { display: none; }
  .backers__angels { flex-basis: 100%; }
}
/* Backers shown in their own colours (official files, unaltered) */
.brandmark { display: block; width: auto; flex: none; transition: transform .35s var(--ease); }
.brandmark--yc { height: 24px; }
.brandmark--frst { height: 40px; margin-block: -4px; }
.brandmark-chip { display: inline-flex; align-items: center; flex: none; padding: 7px 10px; border-radius: 4px; background: #1c180d; transition: transform .35s var(--ease); } /* Robinhood dark: the official ground for the neon lockup */
.brandmark-chip img { height: 14px; width: auto; display: block; }
.brandmark:hover, .brandmark-chip:hover { transform: translateY(-2px); }
.mark { height: 20px; width: auto; filter: brightness(0); opacity: .7; transition: opacity .25s var(--ease); flex: none; }
.mark:hover { opacity: 1; }
.mark--sq, .mark--gray { filter: grayscale(1) contrast(1.4); opacity: .8; }
.mark--sq { height: 20px; }
.mark--citi { height: 18px; }
.wordmark { font: 600 16px/20px var(--font-sans); letter-spacing: -.01em; color: var(--ink); opacity: .7; white-space: nowrap; flex: none; }
.wordmark--caps { font: 700 15px/20px var(--font-sans); letter-spacing: .12em; }
/* Angels strip: every item sits in the same 28px box so logos line up on one optical centre */
.marquee__set > * { height: 28px; display: inline-flex; align-items: center; }
.marquee__set > img { height: 20px; object-fit: contain; }
.marquee__set > img[alt="Google"] { height: 22px; transform: translateY(2px); }   /* descender sits low */
.marquee__set > img[alt="OpenAI"] { height: 19px; }
.marquee__set > img[alt="Coinbase"] { height: 16px; }
.marquee__set > img[alt="Citi"] { height: 20px; }
/* Hover: logos switch to their own colours, names to full ink */
.marquee .mark { transition: filter .3s var(--ease), opacity .3s var(--ease); }
.marquee .mark:hover { filter: none; opacity: 1; }
.marquee .wordmark { transition: opacity .3s var(--ease), color .3s var(--ease); }
.marquee .wordmark:hover { opacity: 1; color: var(--ink); }

/* ---------- Product cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }
.cards--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .cards--two { grid-template-columns: 1fr; } }
.card {
  position: relative; overflow: hidden; display: grid; grid-template-rows: auto auto auto 1fr auto; gap: var(--space-3);
  background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: var(--space-6); transition: border-color .4s var(--ease), transform .5s var(--ease), box-shadow .5s var(--ease);
}
.card::before { /* warm wash that rises on hover */
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(120% 70% at 20% 0%, var(--amber-wash), transparent 70%);
  opacity: 0; transition: opacity .5s var(--ease);
}
.card::after { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: var(--asof); transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s var(--ease); }
.card > * { position: relative; z-index: 1; }
.card:hover { border-color: var(--amber-line); transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(0, 45, 95, .35); }
.card:hover::before { opacity: 1; }
.card:hover::after { transform: scaleX(1); }
.card:not(:has(a)):hover { transform: none; box-shadow: none; } /* info-only cards: highlight, no lift */
.card .seal { width: 88px; height: 88px; margin-bottom: var(--space-3); }
.card h3 { font: 600 20px/28px var(--font-sans); letter-spacing: -.005em; }
.card p { color: var(--ink-muted); }
.card .arrow-link { margin-top: var(--space-4); justify-self: start; position: static; }
.card .arrow-link::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: var(--radius-md); }

/* Seals turn slowly, always */
.seal { animation: turn 48s linear infinite; }
.card:hover .seal { animation-duration: 16s; }
@keyframes turn { to { transform: rotate(360deg); } }

/* ---------- Page heads (About, Research, Contact, Article) ---------- */
.page-head {
  position: relative; overflow: hidden; isolation: isolate;
  padding-top: calc(var(--nav-height) + clamp(48px, 8vw, 104px)); padding-bottom: var(--space-12);
  margin-top: calc(-1 * var(--nav-height));
  border-bottom: 1px solid var(--amber-line);
  background: radial-gradient(50% 90% at 85% 30%, rgba(10, 102, 194, .14), transparent 70%), var(--paper);
}
.page-head .engrave-bg { z-index: -1; -webkit-mask-image: linear-gradient(90deg, transparent 20%, rgba(0,0,0,.6) 60%, #000 85%); mask-image: linear-gradient(90deg, transparent 20%, rgba(0,0,0,.6) 60%, #000 85%); }
.page-head--plain { border-bottom: 0; }

/* ---------- About ---------- */
.leader { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 860px) { .leader { grid-template-columns: 1fr; } }
.person { background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; transition: border-color .4s var(--ease); }
.person:hover { border-color: var(--amber-line); }
.person__photo { aspect-ratio: 4 / 4.4; overflow: hidden; background: var(--amber-wash); }
.person__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) sepia(.18) contrast(1.04); transition: filter .8s var(--ease), transform 1.2s var(--ease); }
.person:hover .person__photo img { filter: grayscale(.1) sepia(.05); transform: scale(1.02); }
.person__body { padding: var(--space-6); display: grid; gap: var(--space-2); border-top: 2px solid var(--asof); }
.person__body h3 { font: 600 20px/28px var(--font-sans); }
.person__body .arrow-link { margin-top: var(--space-3); justify-self: start; }
.on-depth .person { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .14); }
.on-depth .person:hover { border-color: rgba(112, 181, 249, .5); }
.on-depth .person__body { border-top-color: var(--asof-bright); }
.on-depth .person .muted { color: var(--on-depth-muted); }
.on-depth .person .arrow-link, .on-depth .person .arrow-link .arr { color: var(--on-depth); }
.letter { display: grid; gap: var(--space-6); max-width: 62ch; }
.letter p { font: 300 clamp(20px, 2vw, 24px)/1.5 var(--font-serif); color: var(--ink); }
.letter p:first-child::first-letter { float: left; font: 400 3.4em/0.82 var(--font-serif); color: var(--asof-ink); padding: .06em .1em 0 0; }
.letter .sign { font: 400 15px/22px var(--font-sans); color: var(--ink-muted); }
.pedigree { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-8) clamp(32px, 6vw, 80px); }
.pedigree .mark { height: 26px; filter: none; opacity: 1; }   /* founding-team logos in their own colours */
.pedigree .mark--wq { filter: brightness(0); opacity: .85; }  /* the WorldQuant file is white-only; its light-background logo is black */
.pedigree .mark--wq { height: 18px; }
.thesis { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); }
@media (max-width: 860px) { .thesis { grid-template-columns: 1fr; } }
.thesis ol { display: grid; gap: var(--space-8); }
.thesis li { display: block; padding-top: var(--space-6); border-top: 1px solid rgba(10, 102, 194, .35); }
.thesis li p { color: var(--on-depth-muted); font-size: 18px; line-height: 30px; }
/* Tighter rhythm for the thesis band */
.section--compact { padding-block: var(--space-16); }
.section--compact .thesis { gap: clamp(28px, 4vw, 64px); }
.section--compact .thesis ol { gap: var(--space-3); align-content: start; align-self: center; }   /* the points sit centred against the heading and founder card */   /* points stay together instead of stretching to the card's height */
.section--compact .thesis li { padding-top: var(--space-3); }
.section--compact .person__photo { aspect-ratio: 1 / 1; }
.section--compact .person__photo img { object-position: 50% 25%; }
.section--compact .person__body { padding: var(--space-4); }
.careers { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
@media (max-width: 860px) { .careers { grid-template-columns: 1fr; } }

/* ---------- Research ---------- */
.feature {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(24px, 5vw, 72px);
  text-decoration: none; color: inherit; padding: var(--space-12) var(--space-8); margin-inline: calc(-1 * var(--space-8));
  border-top: 2px solid var(--asof); border-bottom: 1px solid var(--amber-line); border-radius: 0 0 var(--radius-md) var(--radius-md);
  transition: background-color .5s var(--ease);
}
.feature:hover { background: var(--amber-wash); }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; padding-inline: var(--space-4); margin-inline: calc(-1 * var(--space-4)); } }
.feature h2 { transition: color .3s var(--ease); }
.feature:hover h2 { color: var(--asof-ink); }
.feature .excerpt { display: grid; gap: var(--space-4); color: var(--ink-muted); }
.feature .meta { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1px solid var(--amber-line); }
.feature .seal { width: 120px; height: 120px; margin-top: var(--space-8); }
.stamp {
  display: inline-flex; align-items: center; gap: var(--space-2); font: 500 12px/16px var(--font-mono); letter-spacing: .06em; text-transform: uppercase;
  color: var(--asof-ink); background: var(--asof-soft); padding: 4px 10px 4px 8px; border-radius: var(--radius-sm); white-space: nowrap;
}
.stamp::before { content: ""; width: 2px; height: 12px; background: var(--asof); }
.agenda { border-top: 1px solid var(--ink); }
.agenda li { position: relative; display: grid; grid-template-columns: 88px minmax(0, 1fr) minmax(0, 1.3fr); gap: var(--space-6); padding: var(--space-8) var(--space-4); margin-inline: calc(-1 * var(--space-4)); border-bottom: 1px solid var(--line); align-items: baseline; transition: background-color .4s var(--ease); }
.agenda li::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--asof); transform: scaleY(0); transform-origin: 50% 0; transition: transform .5s var(--ease); }
.agenda li:hover { background: var(--amber-wash); }
.agenda li:hover::before { transform: scaleY(1); }
.agenda .id { font: 500 13px/20px var(--font-mono); color: var(--asof-ink); }
.agenda h2 { font: 600 19px/28px var(--font-sans); }
.agenda p { font: italic 300 clamp(19px, 1.8vw, 22px)/1.45 var(--font-serif); color: var(--ink-muted); }
@media (max-width: 760px) { .agenda li { grid-template-columns: 56px minmax(0, 1fr); } .agenda p { grid-column: 2; } }
.release-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-8); align-items: end; margin-bottom: var(--space-8); }
@media (max-width: 760px) { .release-head { grid-template-columns: 1fr; } }
.ledger { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
@media (max-width: 900px) { .ledger { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .ledger { grid-template-columns: 1fr; } }
.ledger li { position: relative; display: grid; gap: var(--space-6); align-content: space-between; min-height: 132px; padding: var(--space-4); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper-raised); font-weight: 500; transition: background-color .6s var(--ease); }
.ledger li span { font: 500 12px/16px var(--font-mono); color: var(--ink-faint); transition: color .4s var(--ease); }
.ledger li::after { content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 100%; background: var(--asof); transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s var(--ease); }
.ledger li.is-on { background: linear-gradient(180deg, rgba(238, 243, 248, .7), var(--paper-raised) 60%); }
.ledger li.is-on span { color: var(--asof-ink); }
.ledger li.is-on::after { transform: scaleX(1); }
.enquiry { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--space-8); align-items: end; }
@media (max-width: 860px) { .enquiry { grid-template-columns: 1fr; } }
.enquiry .actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-6); }
.enquiry .mail { color: var(--on-depth); font: 400 15px/20px var(--font-mono); text-decoration-color: var(--asof-bright); text-underline-offset: 4px; }

/* ---------- Article ---------- */
.article-head { display: grid; gap: var(--space-6); }
.article-head h1 { max-width: 20ch; }
.article-head .dek { font: 300 clamp(20px, 2vw, 24px)/1.45 var(--font-serif); color: var(--ink-muted); max-width: 52ch; }
.article-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); padding-block: var(--space-16) var(--space-24); }
@media (max-width: 960px) { .article-layout { grid-template-columns: 1fr; } .toc { display: none; } }
.toc { position: sticky; top: calc(var(--nav-height) + 32px); align-self: start; display: grid; gap: var(--space-3); padding-left: var(--space-4); border-left: 1px solid var(--amber-line); }
.toc a { display: grid; grid-template-columns: 24px 1fr; gap: var(--space-2); font: 400 13px/18px var(--font-sans); color: var(--ink-faint); text-decoration: none; transition: color .2s var(--ease); }
.toc a span { font: 500 11px/18px var(--font-mono); }
.toc a:hover, .toc a.is-active { color: var(--ink); }
.toc a.is-active span { color: var(--asof-ink); }
.prose { max-width: var(--measure); font-size: 18px; line-height: 31px; color: var(--ink); }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { font: 400 clamp(26px, 2.6vw, 32px)/1.2 var(--font-serif); letter-spacing: -.01em; margin-top: 2.2em; padding-top: var(--space-6); border-top: 1px solid var(--amber-line); scroll-margin-top: calc(var(--nav-height) + 24px); }
.prose h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.prose h2 + p { margin-top: .8em; }
.prose p { color: var(--ink-muted); }
.prose blockquote { margin-block: 2em; padding: var(--space-6) var(--space-6) var(--space-6) var(--space-8); border-left: 2px solid var(--asof); background: var(--amber-wash); border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.prose blockquote p { font: 400 clamp(22px, 2.4vw, 28px)/1.35 var(--font-serif); color: var(--ink); }
.prose blockquote strong { font-weight: 400; }
.article-foot { margin-top: var(--space-16); padding-top: var(--space-6); border-top: 1px solid var(--ink); }
.prose ul { list-style: disc; padding-left: 1.4em; display: grid; gap: .5em; color: var(--ink-muted); }
.prose h3 { font: 600 17px/1.4 var(--font-sans); color: var(--ink); margin-top: 1.8em; }
.prose .updated { font: 500 12px/16px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.contact aside { display: grid; gap: var(--space-8); }
.contact .mail { font: 400 clamp(18px, 1.8vw, 22px)/1.3 var(--font-mono); color: var(--ink); text-underline-offset: 6px; text-decoration-thickness: 2px; text-decoration-color: var(--asof); }
.note { display: grid; gap: var(--space-2); padding: var(--space-4) var(--space-6); border: 1px solid var(--amber-line); border-left: 2px solid var(--asof); border-radius: var(--radius-md); background: var(--amber-wash); }
.note p:last-child { font-size: 14px; line-height: 22px; color: var(--ink-muted); }
.form { position: relative; display: grid; gap: var(--space-6); background: var(--paper-raised); border: 1px solid var(--line); border-top: 2px solid var(--asof); border-radius: var(--radius-md); padding: clamp(20px, 3vw, 40px); box-shadow: 0 24px 60px -40px rgba(0, 45, 95, .35); }
.form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.form legend, .field label { font: 500 12px/16px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-block; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font: 500 14px/20px var(--font-sans); color: var(--ink-muted); background: var(--paper-raised); transition: all .25s var(--ease); }
.chip:hover span { border-color: var(--asof); color: var(--ink); background: var(--amber-wash); }
.chip input:checked + span { background: var(--action); border-color: var(--action); color: var(--on-action); box-shadow: inset 0 -2px 0 var(--asof-bright); }
.chip input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
@media (max-width: 600px) { .row2 { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field label .opt { text-transform: none; letter-spacing: 0; font-family: var(--font-sans); color: var(--ink-faint); margin-left: 4px; }
.input { width: 100%; font: 400 16px/24px var(--font-sans); color: var(--ink); background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 11px 12px; transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease); }
.input:hover { border-color: var(--ink-muted); }
.input:focus { outline: none; background: var(--paper-raised); border-color: var(--asof); box-shadow: 0 0 0 3px rgba(10, 102, 194, .25); }
textarea.input { min-height: 140px; resize: vertical; }
.field.is-invalid .input { border-color: var(--error); }
.field label.file { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); cursor: pointer; font: 400 16px/24px var(--font-sans); letter-spacing: 0; text-transform: none; color: var(--ink-faint); background: var(--paper); border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); padding: 11px 12px; transition: border-color .2s var(--ease), background-color .2s var(--ease); }
.field label.file:hover { border-color: var(--ink-muted); }
.field label.file:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.file input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.file .file__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.field label.file .file__hint { font: 500 11px/16px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); flex: none; }
.field label.file.has-file { border-style: solid; background: var(--paper-raised); color: var(--ink); }
.field.is-invalid label.file { border-color: var(--error); }
.err { font-size: 13px; line-height: 20px; color: var(--error); }
.err:empty { display: none; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }
.form-foot .hint { font: 500 11px/16px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); }
.form-note { font-size: 13px; line-height: 20px; color: var(--ink-faint); }
.form-status { font-size: 14px; line-height: 22px; color: var(--ink-muted); }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--error); }
.form-status.is-ok { color: var(--ink); padding: var(--space-3) var(--space-4); background: var(--amber-wash); border-left: 2px solid var(--asof); border-radius: var(--radius-sm); }

/* ---------- Footer ---------- */
.site-footer { padding-block: var(--space-16) var(--space-8); border-top: 2px solid var(--asof-bright); }
.site-footer .top { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: var(--space-8); }
@media (max-width: 720px) { .site-footer .top { grid-template-columns: 1fr 1fr; } .site-footer .top > :first-child { grid-column: 1 / -1; } }
.site-footer .tag { margin-top: var(--space-4); color: var(--on-depth-muted); max-width: 32ch; font-size: 15px; line-height: 24px; }
.site-footer ul { display: grid; gap: 10px; margin-top: var(--space-4); }
.site-footer a { color: var(--on-depth); text-decoration: none; font-size: 15px; transition: color .2s var(--ease); }
.site-footer a:hover { color: var(--asof-bright); }
.site-footer .bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-16); padding-top: var(--space-6); border-top: 1px solid rgba(10, 102, 194, .25); }
.site-footer .legal { font: 500 11px/16px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--on-depth-muted); }
.site-footer .legal a { font: inherit; color: inherit; }
.site-footer .legal a:hover { color: var(--asof-bright); }
.site-footer .bottom a { font-family: var(--font-mono); font-size: 14px; }

/* ---------- Mobile: static version ----------
   Phones get a still, finished site: no animation, no pointer interaction, no marquee.
   Same query as site.js (MOBILE). Desktop and tablet are unchanged. */
@media (max-width: 760px), (hover: none) and (pointer: coarse) and (max-height: 500px) {
  .seal { animation: none !important; }
  .card:hover, .card:hover .seal, .brandmark:hover, .brandmark-chip:hover { transform: none; }
  .card:hover { box-shadow: none; }
  .asof-rule::after { display: none; }                     /* no handle: the line isn't draggable here */
  .marquee { overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .marquee__track { animation: none; width: auto; }
  .marquee__set { flex-wrap: wrap; gap: 14px 26px; padding-right: 0; }
  .marquee__set[aria-hidden="true"] { display: none; }
}

/* ---------- Mobile layout ---------- */
@media (max-width: 760px) {
  :root { --nav-height: 56px; }
  .site-header .btn { padding: 9px 14px; font-size: 14px; }
  .fab { right: 16px; bottom: max(16px, env(safe-area-inset-bottom, 0px)); padding: 11px 16px; font-size: 14px; }
  .display-xl { font-size: 38px; line-height: 42px; }
  .display-l { font-size: 31px; line-height: 37px; }

  /* Hero: no engraving on phones (hidden below), so the headline sits close under the header */
  .hero { min-height: 0; padding-top: calc(var(--nav-height) + var(--space-16)); padding-bottom: var(--space-8); }
  .hero h1 { max-width: none; }
  .hero .actions { margin-top: var(--space-6); }
  .hero .actions .btn { flex: 1 1 auto; justify-content: center; }

  /* Backers: two stacked groups, everything visible */
  .backers { flex-direction: column; align-items: flex-start; gap: var(--space-4); padding-block: var(--space-6); }
  .backers__group { flex-wrap: wrap; gap: var(--space-3) var(--space-6); }
  .backers__angels { flex-direction: column; align-items: flex-start; gap: var(--space-3); }
  .marquee { width: 100%; }

  /* Cards: compact */
  .card { padding: var(--space-6) 20px; gap: var(--space-2); }
  .card .seal { width: 56px; height: 56px; margin-bottom: var(--space-2); }
  .card .arrow-link { margin-top: var(--space-2); }

  /* Page heads: like the hero, the engraving is a band above the title, so the line never crosses text */
  .page-head { padding-top: calc(var(--nav-height) + 104px); padding-bottom: var(--space-8); }
  .page-head .engrave-bg { bottom: auto; height: calc(var(--nav-height) + 92px);
    -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }

  /* About */
  .person__photo { aspect-ratio: 4 / 3; }
  .person__photo img { object-position: 50% 22%; }
  .letter { gap: var(--space-4); }
  .letter p { font-size: 19px; line-height: 1.5; }
  .pedigree { gap: var(--space-6) var(--space-8); }
  .pedigree .mark { height: 22px; }
  .pedigree .mark--wq { height: 15px; }
  .thesis li p { font-size: 16px; line-height: 26px; }

  /* Navy bands stay clean: no engraving or line behind the text */
  .depth .engrave-bg { display: none; }

  /* Research */
  .feature { padding-block: var(--space-8); gap: var(--space-6); }
  .feature .seal { width: 64px; height: 64px; margin-top: var(--space-2); }
  .agenda li { padding-block: var(--space-6); row-gap: var(--space-2); }
  .agenda p { font-size: 18px; }
  .ledger li { min-height: 0; gap: var(--space-3); }

  /* Article: the contents list sits above the text as a plain index */
  .toc { position: static; padding-bottom: var(--space-6); border-bottom: 1px solid var(--amber-line); border-left: 0; padding-left: 0; }
  .article-layout { padding-top: var(--space-8); gap: var(--space-8); }
  .prose { font-size: 17px; line-height: 29px; }
  .prose blockquote { padding: var(--space-4) var(--space-4) var(--space-4) var(--space-6); }

  /* Contact */
  .form { padding: 20px; }
  .chip span { padding: 7px 12px; font-size: 13.5px; }
  .form-foot .btn { width: 100%; justify-content: center; }
  .contact aside .seal { display: none; }

  /* Footer */
  .site-footer { padding-block: var(--space-12) var(--space-6); }
  .site-footer .bottom { flex-direction: column; margin-top: var(--space-12); }
}

/* ---------- Motion ---------- */
/* Content is visible by default. Reveal styles apply only once the page is marked .motion. */
.motion [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0ms); }
.motion [data-reveal].is-in { opacity: 1; transform: none; }
.motion .split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.motion .split .w > span { display: inline-block; transform: translateY(105%); transition: transform 1.05s var(--ease); transition-delay: calc(var(--i) * 45ms + 120ms); }
.motion .split.is-in .w > span { transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; transition-delay: 0s !important; }
  .motion [data-reveal] { opacity: 1; transform: none; }
  .motion .split .w > span { transform: none; }
  .marquee { overflow-x: auto; }
}

/* ---------- Phone refinements (review, Nov 2026) ---------- */
@media (max-width: 760px) {
  /* Rhythm: tighter vertical spacing between sections */
  .section { padding-block: var(--space-12); }
  .section--tight { padding-block: var(--space-8) var(--space-12); }
  .section--compact { padding-block: var(--space-12); }

  /* Header carries "Contact us" at all times, so the floating button would only cover text */
  .fab { display: none; }
  body:has(.fab) .site-footer { padding-bottom: var(--space-8); }

  /* Engravings: lighter so the band sits behind the page instead of competing with the headline */
  .hero .engrave-bg, .page-head .engrave-bg { opacity: .55; }

  /* What we do: heading and statement read as one block */
  .intro { gap: var(--space-6); }
  .statement { padding-top: var(--space-4); }

  /* Founding team: the three logos sit on one line */
  .pedigree { flex-wrap: nowrap; justify-content: space-between; gap: var(--space-4); }
  .pedigree .mark { height: 18px; width: auto; max-width: 32%; object-fit: contain; }
  .pedigree .mark--wq { height: 12px; }
  .section--tight .eyebrow { margin-bottom: var(--space-6) !important; }

  /* Thesis: points first, then a compact horizontal founder card */
  .thesis { gap: var(--space-6); }
  .section--compact .person { display: grid; grid-template-columns: 112px minmax(0, 1fr); }
  .section--compact .person__photo { aspect-ratio: auto; height: 100%; min-height: 150px; }
  .section--compact .person__body { border-top: 0; border-left: 2px solid var(--asof-bright); padding: var(--space-4); gap: var(--space-1); }
  .section--compact .person__body h3 { font-size: 17px; line-height: 24px; }
  .section--compact .person__body .muted { font-size: 13px !important; line-height: 20px !important; }
  .section--compact .person__body .arrow-link { margin-top: var(--space-2); font-size: 14px; }

  /* Careers block on home: button full width like the hero's */
  .careers .btn { width: 100%; justify-content: center; }

  /* Backers: phones show the lead investors only; the angels list is desktop-only */
  .backers__angels, .backers__sep { display: none; }

  /* Hero: no engraving on phones, it is too busy at this size */
  .hero .engrave-bg, .hero .asof-rule { display: none; }

  /* Contact form: chips meet the 44px tap-target size */
  .chip span { padding: 11px 14px; }
}

/* Research thesis written as a signed founder letter */
.thesis__letter { display: grid; gap: var(--space-6); align-self: center; padding-top: var(--space-6); border-top: 1px solid rgba(10, 102, 194, .35); }
.thesis__letter p { color: var(--on-depth-muted); font-size: 18px; line-height: 30px; }
.thesis__letter .thesis__sign { margin-top: var(--space-2); font: 400 20px/1.3 var(--font-serif); font-style: italic; color: var(--on-depth); }
.thesis__sign span { font-style: normal; font-family: var(--font-sans); font-size: 15px; color: var(--on-depth-muted); }
@media (max-width: 760px) { .thesis__letter p { font-size: 16px; line-height: 26px; } }
.thesis__sign a { color: inherit; text-decoration: underline; text-decoration-color: rgba(243, 239, 228, .35); text-decoration-thickness: 1px; text-underline-offset: 4px; transition: text-decoration-color .2s; }
.thesis__sign a:hover, .thesis__sign a:focus-visible { text-decoration-color: currentColor; }
