/* alisafari.space shared design: tokens, header, footer, home sections */

/* fonts served from this site (SIL Open Font License) */
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 400 800; font-stretch: 100%; font-display: swap; src: url(/fonts/bricolage-grotesque-400-800-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 400 800; font-stretch: 100%; font-display: swap; src: url(/fonts/bricolage-grotesque-400-800-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/ibm-plex-mono-400-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/ibm-plex-mono-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/ibm-plex-mono-500-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/ibm-plex-mono-500-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/instrument-serif-400-italic-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/instrument-serif-400-italic-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/inter-400-700-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/inter-400-700-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --font-display: "Bricolage Grotesque", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-serif: "Instrument Serif", "Newsreader", Georgia, serif;

  --bg: #F3F5FA;
  --surface: #FFFFFF;
  --surface-2: #E9EDF5;
  --text: #070B14;
  --text-2: #364154;
  --text-3: #586377;
  --line: rgba(7, 11, 20, .10);
  --line-2: rgba(7, 11, 20, .20);
  --accent: #2B55F6;
  --accent-ink: #1E40D8;
  --hi: #C6F53B;
  --hi-ink: #0A1202;
  --mark: #C6F53B;
  --glow: rgba(43, 85, 246, .16);
  --shadow: 0 1px 2px rgba(7, 11, 20, .05), 0 12px 32px -12px rgba(7, 11, 20, .16);

  --ink-0: #070B14;
  --ink-1: #0D1423;
  --ink-2: #141D31;

  --wrap: 1200px;
  --pad: 24px;
  --radius: 22px;
  --radius-s: 14px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

.dark,
html[data-theme="dark"] {
  --bg: #070B14;
  --surface: #0D1423;
  --surface-2: #141D31;
  --text: #F3F6FB;
  --text-2: #BAC3D3;
  --text-3: #8D98AC;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .20);
  --accent: #7C9BFF;
  --accent-ink: #A9BDFF;
  --mark: rgba(198, 245, 59, .22);
  --glow: rgba(124, 155, 255, .20);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 18px 40px -16px rgba(0, 0, 0, .7);
  color-scheme: dark;
}
html[data-theme="light"] { color-scheme: light; }
html[data-theme="light"] .dark { color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--hi); color: var(--hi-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.dark :focus-visible { outline-color: var(--hi); }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }
.dark { background: var(--bg); color: var(--text); }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--hi); color: var(--hi-ink); padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-3);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--hi); box-shadow: 0 0 0 1px rgba(7, 11, 20, .25) inset; }
.eyebrow b { font-weight: 500; color: var(--text); }
.display {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -.03em; line-height: .98;
  font-size: clamp(38px, 5.4vw, 76px); font-variation-settings: "opsz" 96;
  text-wrap: balance;
}
.display em, .serif-em { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.display em { font-size: 1.08em; }
.lede { font-size: clamp(17px, 1.5vw, 20px); color: var(--text-2); max-width: 56ch; }
.text-link { color: var(--accent-ink); font-weight: 600; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; transition: background-size .3s var(--ease); }
.text-link:hover { background-size: 0 1px; background-position: 100% 100%; }
mark, .mark { background: linear-gradient(transparent 58%, var(--mark) 58%); color: inherit; padding: 0 .06em; }

/* ---------- buttons, chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font-text); font-size: 15px; font-weight: 600; letter-spacing: -.005em; text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .25s, border-color .25s, color .25s, box-shadow .25s;
}
.btn .arr { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn:hover .arr-up { transform: translate(2px, -2px); }
.btn:active { transform: scale(.98); }
.btn-hi { background: var(--hi); color: var(--hi-ink); }
.btn-hi:hover { box-shadow: 0 0 0 4px rgba(198, 245, 59, .28); }
.btn-solid { background: var(--text); color: var(--bg); }
.btn-solid:hover { box-shadow: 0 0 0 4px var(--glow); }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--text); background: color-mix(in srgb, var(--text) 6%, transparent); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }

.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 30px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--text-2); background: color-mix(in srgb, var(--surface) 70%, transparent);
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
}
a.chip { transition: border-color .2s, color .2s, background-color .2s; }
a.chip:hover { border-color: var(--text); color: var(--text); }
.chip b { font-weight: 500; color: var(--text-3); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; padding: 12px var(--pad) 0; height: var(--header-h); pointer-events: none; }
.site-header-bar {
  pointer-events: auto;
  max-width: var(--wrap); margin: 0 auto; height: 60px; padding: 0 8px 0 10px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border-radius: 999px; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px);
  box-shadow: var(--shadow);
  transition: border-color .3s, box-shadow .3s;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); min-height: 44px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink-0); color: var(--hi); font-family: var(--font-display); font-weight: 800; font-size: 15px; letter-spacing: -.04em;
  border: 1px solid rgba(255, 255, 255, .14);
  transition: transform .5s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(-12deg) scale(1.05); }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -.03em; }
.brand-field { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); padding-left: 12px; border-left: 1px solid var(--line-2); }
.site-nav-panel { display: flex; align-items: center; gap: 6px; }
.site-nav-list { display: flex; align-items: center; gap: 2px; }
.site-nav-list a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 13px; border-radius: 999px;
  font-size: 14.5px; font-weight: 500; color: var(--text-2); text-decoration: none; transition: color .2s, background-color .2s;
}
.site-nav-list a:hover { color: var(--text); background: color-mix(in srgb, var(--text) 7%, transparent); }
.site-nav-list a[aria-current], .site-nav-list a.is-active { color: var(--text); background: color-mix(in srgb, var(--text) 9%, transparent); }
.nav-cta { min-height: 44px; margin-left: 6px; }
.header-tools { display: flex; align-items: center; gap: 6px; }
.theme-toggle, .nav-toggle {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--text);
  display: grid; place-items: center; transition: background-color .2s, border-color .2s, transform .3s var(--ease);
}
.theme-toggle:hover, .nav-toggle:hover { border-color: var(--line-2); background: color-mix(in srgb, var(--text) 7%, transparent); }
.theme-toggle svg, .nav-toggle svg { width: 19px; height: 19px; grid-area: 1 / 1; }
.theme-toggle:active { transform: rotate(40deg); }
html[data-theme="dark"] .icon-moon, html:not([data-theme="dark"]) .icon-sun { display: none; }
.nav-toggle { display: none; }
.nav-toggle .icon-close, .nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (min-width: 1041px) {
  .site-header-bar { display: grid; grid-template-columns: auto 1fr auto; }
  .site-nav { justify-self: end; }
}
@media (max-width: 1260px) { .brand-field { display: none; } }
@media (max-width: 1040px) {
  .nav-toggle { display: grid; }
  .site-header-bar { position: relative; }
  .site-nav-panel {
    position: absolute; left: 0; right: 0; top: calc(100% + 10px); max-height: calc(100dvh - var(--header-h) - 24px); overflow: auto;
    flex-direction: column; align-items: stretch; gap: 14px; padding: 18px;
    background: var(--surface); border: 1px solid var(--line-2); border-radius: 26px; box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(-10px) scale(.98); transform-origin: top; transition: opacity .25s, transform .3s var(--ease), visibility .25s;
  }
  .site-nav-panel.open { opacity: 1; visibility: visible; transform: none; }
  .site-nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav-list a { display: flex; min-height: 56px; padding: 0 12px; border-radius: 14px; font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: -.03em; color: var(--text); justify-content: space-between; }
  .site-nav-list a::after { content: "\2192"; font-family: var(--font-text); font-size: 18px; font-weight: 400; color: var(--text-3); }
  .site-nav-list li + li { border-top: 1px solid var(--line); }
  .nav-cta { margin: 0; min-height: 52px; }
}

/* ---------- sections ---------- */
.section { padding: clamp(72px, 10vw, 136px) 0; position: relative; }
.section.alt { background: var(--surface); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head .display { margin-top: 18px; }
.section-dek { margin-top: 18px; color: var(--text-2); max-width: 52ch; font-size: 18px; }

/* reveal on scroll (only when scripts run) */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* first screen: pure CSS entrance, no script needed */
[data-rise] { animation: rise .8s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* ---------- hero ---------- */
.hero { position: relative; margin-top: calc(-1 * var(--header-h)); padding: calc(var(--header-h) + clamp(20px, 3vw, 36px)) 0 clamp(28px, 4vw, 48px); overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(900px 520px at 12% 8%, rgba(43, 85, 246, .34), transparent 62%),
    radial-gradient(700px 480px at 92% 96%, rgba(198, 245, 59, .12), transparent 60%),
    var(--ink-0);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(120% 90% at 30% 20%, #000 20%, transparent 78%); mask-image: radial-gradient(120% 90% at 30% 20%, #000 20%, transparent 78%);
}
.hero-graph { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0; transition: opacity 1.4s var(--ease); }
.hero-graph.on { opacity: .9; }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.tile {
  position: relative; border-radius: var(--radius); border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  padding: 24px; overflow: hidden; color: var(--text); text-decoration: none;
  transition: border-color .3s, transform .4s var(--ease), background-color .3s;
}
a.tile:hover { border-color: var(--line-2); transform: translateY(-3px); background: color-mix(in srgb, var(--surface-2) 82%, transparent); }
.tile-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tile-label .arr { width: 18px; height: 18px; color: var(--hi); transition: transform .3s var(--ease); flex: none; }
.tile-cta { display: inline-flex; align-items: center; gap: 6px; color: var(--hi); letter-spacing: .08em; }
a.tile:hover .tile-label .arr { transform: translate(3px, -3px); }

.tile-intro { grid-column: 1 / span 8; grid-row: 1; padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: space-between; min-height: clamp(440px, calc(100svh - 318px), 660px); background: transparent; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; padding-left: 0; }
.hero-status { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; min-height: 34px; padding: 0 14px 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); }
.hero-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--hi); box-shadow: 0 0 0 0 rgba(198, 245, 59, .6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(198, 245, 59, .55); } 70% { box-shadow: 0 0 0 9px rgba(198, 245, 59, 0); } 100% { box-shadow: 0 0 0 0 rgba(198, 245, 59, 0); } }
.hero-name {
  margin-top: clamp(28px, 5vh, 56px);
  font-family: var(--font-display); font-weight: 800; font-variation-settings: "opsz" 96;
  font-size: clamp(72px, 12.6vw, 196px); line-height: .84; letter-spacing: -.02em; color: #fff;
}
.hero-name em { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -.03em; color: var(--hi); padding-right: .06em; font-size: 1.04em; }
.hero-lede { margin-top: clamp(22px, 3.4vh, 36px); font-size: clamp(19px, 1.9vw, 26px); line-height: 1.36; letter-spacing: -.012em; color: var(--text-2); max-width: 31em; text-wrap: pretty; }
.hero-lede strong { font-weight: 500; color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(24px, 3.6vh, 36px); }

.tile-photo { grid-column: 9 / span 4; grid-row: 1; padding: 0; min-height: 420px; background: #05070c; }
.tile-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; transition: transform 1.2s var(--ease); }
.tile-photo:hover img { transform: scale(1.03); }
.tile-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 7, 12, 0) 52%, rgba(5, 7, 12, .88) 100%); pointer-events: none; }
.tile-photo figcaption { position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px; }
.tile-photo .chip { background: rgba(7, 11, 20, .55); border-color: rgba(255, 255, 255, .22); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

.tile-stats { grid-column: span 5; grid-row: 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0; min-height: 148px; }
.tile-stats > div { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; padding: 22px 18px; }
.tile-stats > div + div { border-left: 1px solid var(--line); }
.tile-stats dt { font-family: var(--font-display); font-weight: 700; font-size: clamp(34px, 3.2vw, 46px); line-height: .9; letter-spacing: -.03em; color: #fff; font-variant-numeric: tabular-nums; }
.tile-stats dt sup { font-size: .5em; color: var(--hi); vertical-align: top; position: relative; top: .1em; margin-left: 2px; }
.tile-stats dd { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.tile-now, .tile-paper { grid-column: span 4; grid-row: 2; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }
.tile-now { grid-column: span 3; }
.tile-now .tile-label { flex-wrap: wrap; }
.tile-now strong { display: block; font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.tile-now span.sub, .tile-paper span.sub { display: block; margin-top: 6px; font-size: 13.5px; line-height: 1.45; color: var(--text-2); }
.tile-paper strong { font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: -.02em; line-height: 1.22; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile-paper span.sub { color: var(--text-3); }

/* marquee */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 0; background: var(--ink-0); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-set { display: flex; flex: none; }
.marquee a { display: inline-flex; align-items: center; gap: 28px; padding: 0 14px; min-height: 68px; font-family: var(--font-display); font-weight: 700; font-size: clamp(20px, 2.4vw, 30px); letter-spacing: -.03em; color: var(--text-3); text-decoration: none; white-space: nowrap; transition: color .2s; }
.marquee a::after { content: ""; width: 10px; height: 10px; background: var(--hi); border-radius: 2px; transform: rotate(45deg); }
.marquee a:hover { color: #fff; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.about-quote { margin-top: 22px; font-family: var(--font-display); font-weight: 700; font-variation-settings: "opsz" 96; font-size: clamp(36px, 5vw, 68px); line-height: 1; letter-spacing: -.032em; text-wrap: balance; }
.about-quote em { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -.015em; font-size: 1.08em; color: var(--text-3); }
.about-copy { display: grid; gap: 20px; font-size: 18px; line-height: 1.65; color: var(--text-2); padding-top: 8px; }
.about-copy a:not(.text-link):not(.teach) { color: var(--text); font-weight: 600; text-decoration: none; background: linear-gradient(transparent 62%, var(--mark) 62%); transition: background-color .2s; }
.about-copy a:not(.text-link):not(.teach):hover { background: var(--hi); color: var(--hi-ink); }
.teach { display: grid; gap: 6px; margin-top: 12px; padding: 24px; border-radius: var(--radius); background: var(--ink-0); color: #F3F6FB; position: relative; overflow: hidden; }
.teach::before { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(198, 245, 59, .28), transparent 70%); }
.teach .eyebrow { color: #8D98AC; }
.teach strong { font-family: var(--font-display); font-size: 30px; font-weight: 700; letter-spacing: -.035em; line-height: 1.1; margin-top: 8px; }
.teach span { color: #BAC3D3; font-size: 15.5px; }
.teach .text-link { color: var(--hi); justify-self: start; margin-top: 10px; font-size: 15px; }

/* ---------- research threads ---------- */
.threads { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.thread {
  position: relative; display: flex; flex-direction: column; min-height: 340px; padding: 26px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; overflow: hidden; isolation: isolate;
  transition: transform .45s var(--ease), border-color .3s, color .3s;
}
.thread::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink-0); transform: translateY(101%); transition: transform .5s var(--ease); border-radius: inherit; }
.thread:hover, .thread:focus-visible { transform: translateY(-4px); color: #F3F6FB; border-color: transparent; }
.thread:hover::before, .thread:focus-visible::before { transform: none; }
.thread-top { display: flex; align-items: flex-start; justify-content: space-between; }
.thread-n { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; color: var(--text-3); transition: color .3s; }
.thread-glyph { width: 96px; height: 96px; color: var(--accent); transition: color .3s, transform .6s var(--ease); }
.thread-glyph .g-hi { color: var(--text); transition: color .3s; }
.thread:hover .thread-glyph { color: #7C9BFF; transform: scale(1.06) rotate(-3deg); }
.thread:hover .thread-glyph .g-hi { color: var(--hi); }
.thread h3 { margin-top: auto; padding-top: 28px; font-family: var(--font-display); font-size: clamp(24px, 2.2vw, 30px); font-weight: 700; letter-spacing: -.035em; line-height: 1.05; }
.thread p { margin-top: 12px; font-size: 15.5px; line-height: 1.55; color: var(--text-2); transition: color .3s; }
.thread:hover p, .thread:hover .thread-n { color: #BAC3D3; }
.thread-go { margin-top: 22px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--accent-ink); transition: color .3s, gap .3s var(--ease); }
.thread:hover .thread-go { color: var(--hi); gap: 14px; }

/* ---------- publications ---------- */
.pubs-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.pubs-side { position: sticky; top: calc(var(--header-h) + 24px); }
.pubs-side .display { margin-top: 18px; }
.pubs-side .section-dek { font-size: 16px; }
.pub-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.pub-filter {
  min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--text-2);
  font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; transition: all .2s;
}
.pub-filter:hover { border-color: var(--text); color: var(--text); }
.pub-filter.on { background: var(--hi); border-color: var(--hi); color: var(--hi-ink); }
.pub-list { border-top: 1px solid var(--line-2); }
.pub-item { position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 8px 24px; align-items: start; padding: 28px 16px 28px 0; border-bottom: 1px solid var(--line); transition: padding .4s var(--ease), background-color .3s; }
.pub-item[hidden] { display: none; }
.pub-item::before { content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 0; background: var(--hi); transition: width .5s var(--ease); }
.pub-item:hover { padding-left: 16px; background: color-mix(in srgb, var(--surface) 60%, transparent); }
.pub-item:hover::before { width: 100%; }
.pub-item time { font-family: var(--font-mono); font-size: 13px; letter-spacing: .08em; color: var(--text-3); padding-top: 5px; }
.pub-kind { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); }
.pub-kind::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pub-item[data-type="journal"] .pub-kind { color: var(--hi); }
html[data-theme="light"] .section:not(.dark) .pub-item[data-type="journal"] .pub-kind { color: #3F6B00; }
.pub-item h3 { margin-top: 10px; font-family: var(--font-display); font-size: clamp(19px, 1.8vw, 24px); font-weight: 600; letter-spacing: -.025em; line-height: 1.2; text-wrap: pretty; }
.pub-meta { margin-top: 10px; font-size: 15px; color: var(--text-3); }
.pub-meta strong { color: var(--text); font-weight: 600; }
.pub-link { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13.5px; font-weight: 600; text-decoration: none; color: var(--text); white-space: nowrap; transition: all .2s; }
.pub-link:hover { background: var(--hi); border-color: var(--hi); color: var(--hi-ink); }
.pub-empty { padding: 28px 0; color: var(--text-3); }

/* ---------- field notes on home ---------- */
.note-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.note-card { position: relative; display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--text); overflow: hidden; transition: transform .45s var(--ease), border-color .3s, box-shadow .3s; grid-column: span 5; }
.note-card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow); }
.note-card.feature { grid-column: span 7; grid-row: span 2; min-height: 460px; background: var(--ink-0); color: #F3F6FB; border-color: transparent; justify-content: flex-end; }
.note-card.feature::before { content: ""; position: absolute; inset: 0; background: radial-gradient(520px 340px at 85% 0%, rgba(43, 85, 246, .5), transparent 65%), radial-gradient(360px 260px at 0% 100%, rgba(198, 245, 59, .16), transparent 65%); }
.note-card.feature > * { position: relative; }
.note-card.feature .note-quote { position: absolute; top: 18px; left: 28px; font-family: var(--font-serif); font-style: italic; font-size: 160px; line-height: 1; color: var(--hi); opacity: .9; }
.note-kicker { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); }
.note-card.feature .note-kicker { color: var(--hi); }
.note-card h3 { margin-top: 14px; font-family: var(--font-display); font-size: clamp(21px, 2vw, 26px); font-weight: 700; letter-spacing: -.03em; line-height: 1.12; text-wrap: balance; }
.note-card.feature h3 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.02; letter-spacing: -.04em; }
.note-card p { margin-top: 12px; font-size: 15.5px; line-height: 1.55; color: var(--text-2); }
.note-card.feature p { color: #BAC3D3; font-size: 17px; max-width: 46ch; }
.note-go { margin-top: 20px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--accent-ink); transition: gap .3s var(--ease); }
.note-card.feature .note-go { color: var(--hi); }
.note-card:hover .note-go { gap: 14px; }
.topic-row { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.topic-row .topic-h { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-right: 8px; }
.topic-row .chip { min-height: 36px; background: var(--surface); }

/* ---------- stance ---------- */
.stance { padding: clamp(80px, 11vw, 160px) 0; overflow: hidden; position: relative; isolation: isolate; }
.stance::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(800px 420px at 100% 0%, rgba(43, 85, 246, .28), transparent 60%); }
.stance-lines { margin-top: 36px; display: grid; }
.stance-lines li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; align-items: baseline; padding: clamp(18px, 2.4vw, 30px) 0; border-top: 1px solid var(--line); }
.stance-lines li:last-child { border-bottom: 1px solid var(--line); }
.stance-lines .n { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; color: var(--text-3); }
.stance-lines p { font-family: var(--font-display); font-weight: 700; font-variation-settings: "opsz" 96; font-size: clamp(30px, 5.2vw, 76px); line-height: 1; letter-spacing: -.035em; color: #fff; text-wrap: balance; }
.stance-lines p span { color: var(--text-3); font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -.015em; }

/* ---------- contact ---------- */
.contact { background: var(--hi); color: var(--hi-ink); padding: clamp(72px, 9vw, 128px) 0; position: relative; overflow: hidden; }
.contact .eyebrow { color: rgba(10, 18, 2, .7); }
.contact .eyebrow::before { background: var(--hi-ink); }
.contact-title { margin-top: 18px; font-family: var(--font-display); font-weight: 800; font-variation-settings: "opsz" 96; font-size: clamp(56px, 11vw, 168px); line-height: .86; letter-spacing: -.035em; }
.contact-title em { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -.03em; }
.contact-row { margin-top: clamp(28px, 4vw, 48px); display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.contact-mail { display: inline-flex; align-items: center; gap: 14px; min-height: 64px; padding: 0 28px; border-radius: 999px; background: var(--hi-ink); color: var(--hi); font-family: var(--font-display); font-size: clamp(18px, 2.4vw, 28px); font-weight: 600; letter-spacing: -.02em; text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s; word-break: break-all; }
.contact-mail:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(10, 18, 2, .6); }
.contact-mail .arr { width: 24px; height: 24px; flex: none; }
.copy-btn { min-height: 64px; padding: 0 24px; border-radius: 999px; border: 1.5px solid rgba(10, 18, 2, .5); background: transparent; color: var(--hi-ink); font-weight: 600; font-size: 15px; transition: background-color .2s; }
.copy-btn:hover { background: rgba(10, 18, 2, .1); }
.contact-links { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.contact-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid rgba(10, 18, 2, .28); text-decoration: none; font-weight: 600; font-size: 15px; color: var(--hi-ink); transition: all .2s; }
.contact-links a:hover { background: var(--hi-ink); color: var(--hi); border-color: var(--hi-ink); }
.contact :focus-visible { outline-color: var(--hi-ink); }

/* ---------- footer ---------- */
.site-footer { padding: 72px 0 28px; position: relative; overflow: hidden; }
.site-footer-inner { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.footer-name { font-family: var(--font-display); font-size: 28px; font-weight: 700; letter-spacing: -.035em; }
.footer-tag { margin-top: 10px; color: var(--text-2); max-width: 34ch; }
.footer-mail { display: inline-block; margin-top: 18px; color: var(--hi); text-decoration: none; font-weight: 600; border-bottom: 1px solid currentColor; }
.footer-h { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; }
.footer-list { display: grid; gap: 2px; }
.footer-list a { display: inline-flex; align-items: center; min-height: 36px; color: var(--text-2); text-decoration: none; transition: color .2s, transform .3s var(--ease); }
.footer-list a:hover { color: var(--hi); transform: translateX(4px); }
.footer-word { margin-top: 56px; font-family: var(--font-display); font-weight: 800; font-variation-settings: "opsz" 96; font-size: min(23.4vw, 338px); line-height: .78; letter-spacing: -.035em; white-space: nowrap; color: transparent; background: linear-gradient(180deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, 0) 92%); -webkit-background-clip: text; background-clip: text; user-select: none; }
.site-footer-base { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }

/* ---------- inner page hero (conferences, 404, notes) ---------- */
.page-hero { position: relative; margin-top: calc(-1 * var(--header-h)); padding: calc(var(--header-h) + clamp(48px, 7vw, 96px)) 0 clamp(48px, 6vw, 88px); overflow: hidden; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(900px 520px at 8% 0%, rgba(43, 85, 246, .34), transparent 62%), radial-gradient(600px 400px at 100% 100%, rgba(198, 245, 59, .10), transparent 60%), var(--ink-0); }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(120% 100% at 20% 0%, #000 20%, transparent 78%); mask-image: radial-gradient(120% 100% at 20% 0%, #000 20%, transparent 78%); }
.page-hero .wrap > * { animation: rise .7s var(--ease) both; }
.page-hero .wrap > :nth-child(2) { animation-delay: .06s; }
.page-hero .wrap > :nth-child(3) { animation-delay: .12s; }
.page-hero .wrap > :nth-child(n+4) { animation-delay: .18s; }
.page-title { margin-top: 20px; font-family: var(--font-display); font-weight: 800; font-variation-settings: "opsz" 96; font-size: clamp(48px, 8.4vw, 124px); line-height: .88; letter-spacing: -.035em; color: #fff; text-wrap: balance; }
.page-title em { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -.025em; color: var(--hi); }
.page-dek { margin-top: 24px; font-size: clamp(18px, 1.7vw, 22px); line-height: 1.45; color: var(--text-2); max-width: 40em; }

/* ---------- responsive ---------- */
@media (max-width: 1040px) {
  .tile-intro { grid-column: 1 / -1; min-height: 0; padding-right: 0; }
  .tile-photo { grid-column: 1 / span 6; grid-row: 2 / span 3; min-height: 420px; }
  .tile-stats, .tile-now, .tile-paper { grid-column: 7 / -1; grid-row: auto; }
  .tile-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-stats > div:nth-child(3) { border-left: 0; }
  .tile-stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .threads { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pubs-grid, .about-grid { grid-template-columns: minmax(0, 1fr); }
  .pubs-side { position: static; }
  .note-card, .note-card.feature { grid-column: 1 / -1; }
  .note-card.feature { min-height: 380px; }
}
@media (max-width: 680px) {
  :root { --pad: 18px; --radius: 20px; }
  body { font-size: 16px; }
  .site-header { padding-top: 10px; }
  .site-header-bar { height: 56px; }
  .brand-mark { width: 36px; height: 36px; font-size: 14px; }
  .theme-toggle, .nav-toggle { width: 40px; height: 40px; }
  .bento { gap: 10px; }
  .tile { padding: 18px; }
  .tile-intro { padding: 12px 0 8px; }
  .hero-status { font-size: 10px; letter-spacing: .1em; }
  .hero-actions .btn { flex: 1 1 auto; }
  .tile-photo { grid-column: 1 / -1; grid-row: auto; min-height: 0; aspect-ratio: 4 / 4.2; }
  .tile-stats, .tile-now, .tile-paper { grid-column: 1 / -1; grid-row: auto; }
  .tile-stats { min-height: 120px; }
  .tile-stats > div { padding: 16px 14px; }
  .hero-name { font-size: clamp(72px, 21.5vw, 120px); }
  .threads { grid-template-columns: minmax(0, 1fr); }
  .thread { min-height: 0; padding: 22px; }
  .thread-glyph { width: 64px; height: 64px; }
  .pub-item { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 22px 0; }
  .pub-item:hover { padding-left: 0; background: transparent; }
  .pub-item time { padding-top: 0; }
  .pub-link { justify-self: start; margin-top: 6px; }
  .note-card { padding: 22px; }
  .note-card.feature { min-height: 400px; }
  .stance-lines li { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .contact-mail { padding: 0 20px; min-height: 58px; }
  .copy-btn { min-height: 58px; }
  .site-footer-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-lead { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  .marquee { overflow-x: auto; }
}
@media print {
  .site-header, .hero-graph, .marquee, .contact, .site-footer { display: none !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  body { background: #fff; color: #000; }
}

/* ---------- conferences ---------- */
.conf-section { padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(72px, 9vw, 120px); }
.conf-list { display: grid; gap: 14px; }
.conf-item { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); padding: clamp(24px, 3.4vw, 40px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: transform .45s var(--ease), border-color .3s, box-shadow .3s; }
.conf-item:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--shadow); }
.conf-meta { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.conf-when { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.conf-where { font-size: 15px; color: var(--text-2); line-height: 1.4; }
.conf-where b { display: block; font-family: var(--font-display); font-size: 28px; font-weight: 700; letter-spacing: -.035em; line-height: 1.05; color: var(--text); margin-bottom: 4px; }
.conf-status { display: inline-flex; align-items: center; gap: 8px; min-height: 30px; padding: 0 12px; border-radius: 999px; background: var(--hi); color: var(--hi-ink); font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.conf-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.conf-abbr { font-family: var(--font-display); font-weight: 800; font-variation-settings: "opsz" 96; font-size: clamp(40px, 5.4vw, 72px); line-height: .9; letter-spacing: -.035em; }
.conf-name { margin-top: 12px; font-family: var(--font-text); font-size: 17px; font-weight: 500; color: var(--text-2); letter-spacing: 0; }
.conf-paper { margin-top: 24px; padding: 22px 24px; border-radius: var(--radius-s); background: var(--bg); border: 1px solid var(--line); }
.conf-paper-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }
.conf-paper-title { margin-top: 10px; font-family: var(--font-display); font-size: clamp(19px, 1.9vw, 23px); font-weight: 700; letter-spacing: -.025em; line-height: 1.2; text-wrap: pretty; }
.conf-paper-desc { margin-top: 10px; font-size: 15.5px; line-height: 1.6; color: var(--text-2); }
.conf-link { margin-top: 20px; }
.conf-next { margin-top: 14px; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius); position: relative; overflow: hidden; isolation: isolate; }
.conf-next::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(600px 300px at 100% 0%, rgba(43, 85, 246, .5), transparent 65%), radial-gradient(360px 240px at 0% 100%, rgba(198, 245, 59, .14), transparent 65%); }
.conf-next h2 { margin-top: 16px; font-family: var(--font-display); font-weight: 700; font-variation-settings: "opsz" 96; font-size: clamp(30px, 4.4vw, 56px); line-height: 1; letter-spacing: -.035em; color: #fff; }
.conf-next p:not(.eyebrow) { margin-top: 14px; color: var(--text-2); font-size: 18px; max-width: 48ch; }

/* ---------- 404 ---------- */
.notfound { min-height: 100svh; display: flex; align-items: center; }
.notfound .wrap { position: relative; }
.notfound-big { position: absolute; right: var(--pad); top: 50%; transform: translateY(-50%); font-family: var(--font-display); font-weight: 800; font-variation-settings: "opsz" 96; font-size: clamp(160px, 34vw, 520px); line-height: .8; letter-spacing: -.04em; color: transparent; background: linear-gradient(180deg, rgba(198, 245, 59, .34), rgba(198, 245, 59, 0) 85%); -webkit-background-clip: text; background-clip: text; z-index: -1; user-select: none; }
.notfound .page-title { font-size: clamp(44px, 7vw, 96px); max-width: 12em; }
.notfound-links { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 10px; }

@media (max-width: 860px) {
  .conf-item { grid-template-columns: minmax(0, 1fr); }
  .conf-meta { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
  .conf-where b { font-size: 22px; display: inline; margin-right: 8px; }
}

/* ---------- quick answers ---------- */
.answers-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.answers-side { position: sticky; top: calc(var(--header-h) + 28px); }
.answers-side .display { margin-top: 18px; }
.qa-list { border-top: 1px solid var(--line-2); }
.qa { border-bottom: 1px solid var(--line-2); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 4px; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(20px, 2.1vw, 28px); line-height: 1.15; letter-spacing: -.025em; transition: color .2s; }
.qa summary:hover h3 { color: var(--accent-ink); }
.qa-mark { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); transition: background-color .25s, border-color .25s, transform .35s var(--ease); }
.qa-mark::before, .qa-mark::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; border-radius: 2px; background: currentColor; transition: transform .35s var(--ease); }
.qa-mark::after { transform: rotate(90deg); }
.qa[open] .qa-mark { background: var(--hi); border-color: var(--hi); color: var(--hi-ink); transform: rotate(180deg); }
.qa[open] .qa-mark::after { transform: rotate(0deg); }
.qa > p { padding: 0 64px 28px 4px; max-width: 62ch; color: var(--text-2); font-size: 18px; line-height: 1.6; }
.qa > p a { color: var(--accent-ink); font-weight: 600; text-underline-offset: 3px; }
@media (max-width: 1040px) {
  .answers-grid { grid-template-columns: minmax(0, 1fr); }
  .answers-side { position: static; }
}
@media (max-width: 680px) {
  .qa summary { padding: 20px 2px; }
  .qa > p { padding: 0 2px 22px; font-size: 16.5px; }
  .qa-mark { width: 36px; height: 36px; }
}

/* ---------- videos ---------- */
.yt-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--radius-s); overflow: hidden; background: #05070c; }
.yt-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
a:hover > .yt-thumb img, a.yt-thumb:hover img { transform: scale(1.04); }
.yt-play { position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; display: grid; place-items: center; background: var(--hi); color: var(--hi-ink); box-shadow: 0 8px 24px rgba(0, 0, 0, .45); opacity: 0; transform: scale(.84); transition: opacity .25s, transform .35s var(--ease), box-shadow .3s; }
.yt-play svg { width: 24px; height: 24px; }
a:hover .yt-play, a:focus-visible .yt-play { opacity: 1; transform: none; }
.yt-time { position: absolute; right: 8px; bottom: 8px; padding: 2px 7px; border-radius: 6px; background: rgba(5, 7, 12, .84); color: #fff; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .04em; line-height: 1.5; }

.yt-stage { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 3vw, 44px); align-items: start; padding: clamp(12px, 1.4vw, 18px); border-radius: calc(var(--radius) + 10px); color: var(--text); border: 1px solid rgba(255, 255, 255, .08); background: radial-gradient(720px 440px at 100% 0%, rgba(43, 85, 246, .46), transparent 62%), radial-gradient(420px 300px at 60% 110%, rgba(198, 245, 59, .12), transparent 65%), var(--ink-0); box-shadow: 0 30px 60px -30px rgba(7, 11, 20, .45); }
.yt-feature { border-radius: var(--radius); text-decoration: none; }
.yt-feature .yt-play { opacity: 1; transform: none; width: 84px; height: 84px; margin: -42px 0 0 -42px; }
.yt-feature .yt-play svg { width: 34px; height: 34px; }
.yt-feature:hover .yt-play { transform: scale(1.08); box-shadow: 0 0 0 10px rgba(198, 245, 59, .22), 0 8px 24px rgba(0, 0, 0, .45); }
.yt-feature .yt-time { right: 14px; bottom: 14px; font-size: 13px; padding: 3px 9px; }
.yt-copy { padding: clamp(10px, 2vw, 26px) clamp(10px, 2.4vw, 32px) clamp(10px, 2vw, 26px) 0; }
.yt-kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--hi); }
.yt-kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--hi); animation: pulse 2.4s infinite; }
.yt-copy h3 { margin-top: 16px; font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 3vw, 42px); line-height: 1.03; letter-spacing: -.035em; text-wrap: balance; color: #fff; }
.yt-copy > p:not(.yt-kicker) { margin-top: 14px; color: var(--text-2); font-size: 16px; line-height: 1.55; }
.yt-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.yt-facts { display: flex; gap: clamp(22px, 3vw, 44px); margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.yt-lead .yt-facts { margin: 0; padding: 20px clamp(10px, 1.4vw, 18px) 10px; border-top: 0; }
.yt-facts dt { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 3vw, 42px); line-height: 1; letter-spacing: -.03em; color: #fff; font-variant-numeric: tabular-nums; }
.yt-facts dt sup { font-size: .5em; color: var(--hi); vertical-align: top; position: relative; top: .1em; margin-left: 2px; }
.yt-facts dd { margin-top: 8px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }

.series-rail { margin-top: 14px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.series-card { display: flex; flex-direction: column; padding: 10px 10px 20px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); text-decoration: none; color: var(--text); transition: transform .45s var(--ease), border-color .3s, box-shadow .3s, opacity .7s var(--ease); }
.series-card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow); }
.series-meta { margin: 14px 8px 0; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.series-name { margin: 8px 8px 0; font-family: var(--font-display); font-weight: 600; font-size: 17px; line-height: 1.2; letter-spacing: -.02em; text-wrap: pretty; }
.series-sub { margin: 6px 8px 0; font-size: 13.5px; line-height: 1.4; color: var(--text-3); }

.videos-hero .yt-facts { max-width: 520px; margin-top: 36px; border-top-color: rgba(255, 255, 255, .14); }
.videos-hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.poster-stack { position: relative; aspect-ratio: 5 / 4; }
.poster-stack img { position: absolute; width: 78%; height: auto; border-radius: var(--radius-s); border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 24px 60px rgba(0, 0, 0, .55); }
.poster-stack img:nth-child(1) { left: 0; top: 30%; z-index: 3; transform: rotate(-3deg); }
.poster-stack img:nth-child(2) { right: 0; top: 6%; z-index: 2; transform: rotate(4deg); opacity: .92; }
.poster-stack img:nth-child(3) { right: 4%; bottom: 0; z-index: 1; transform: rotate(-1deg); opacity: .8; }
.series-nav { padding: 18px 0; border-bottom: 1px solid var(--line); background: var(--surface); }
.series-nav .wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.series-nav .chip { min-height: 38px; background: transparent; }
.series { padding: clamp(56px, 7vw, 104px) 0; scroll-margin-top: -40px; }
.series:nth-of-type(odd) { background: var(--surface); }
.series-head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); align-items: end; margin-bottom: clamp(28px, 4vw, 52px); }
.series-title { margin-top: 18px; font-size: clamp(32px, 4.6vw, 62px); }
.series-tag { margin-top: 12px; font-family: var(--font-serif); font-style: italic; font-size: clamp(21px, 2.2vw, 28px); line-height: 1.2; color: var(--text-2); }
.series-about p { color: var(--text-2); font-size: 16px; line-height: 1.6; }
.series-about p + p { margin-top: 10px; }
.series-about .text-link { display: inline-block; margin-top: 16px; }
.lesson-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 14px; }
.lesson { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; row-gap: 12px; align-content: start; text-decoration: none; color: var(--text); }
.lesson .yt-thumb { grid-column: 1 / -1; }
.lesson-n { padding-top: 3px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.lesson-t { font-family: var(--font-display); font-weight: 600; font-size: 16px; line-height: 1.26; letter-spacing: -.015em; text-wrap: pretty; transition: color .2s; }
.lesson:hover .lesson-t { color: var(--accent-ink); }
.lesson.short { max-width: 210px; }
.lesson.short .yt-thumb { aspect-ratio: 9 / 16; }
.videos-close-line { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 4.2vw, 54px); line-height: 1.05; letter-spacing: -.035em; max-width: 21em; text-wrap: balance; }
.videos-note { margin-top: 22px; font-size: 13.5px; color: rgba(10, 18, 2, .72); }

.yt-modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: clamp(12px, 3vw, 40px); background: rgba(3, 5, 10, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); animation: yt-in .25s both; }
.yt-modal[hidden] { display: none; }
@keyframes yt-in { from { opacity: 0; } to { opacity: 1; } }
.yt-modal-box { width: min(1120px, 100%, calc((100svh - 150px) * 16 / 9)); }
.yt-modal.tall .yt-modal-box { width: min(420px, 100%, calc((100svh - 150px) * 9 / 16)); }
.yt-modal-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.yt-modal.tall .yt-modal-frame { aspect-ratio: 9 / 16; }
.yt-modal-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-modal-bar { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-top: 14px; color: #F3F6FB; }
.yt-modal-title { font-family: var(--font-display); font-weight: 600; font-size: 17px; line-height: 1.25; letter-spacing: -.015em; }
.yt-modal-bar a { flex: none; color: var(--hi); font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; }
.yt-modal-bar a:hover { text-decoration: underline; }
.yt-modal-close { position: absolute; top: 14px; right: 14px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .08); color: #fff; display: grid; place-items: center; transition: background-color .2s; }
.yt-modal-close:hover { background: rgba(255, 255, 255, .18); }
.yt-modal-close svg { width: 22px; height: 22px; }
.yt-modal :focus-visible { outline-color: var(--hi); }

@media (max-width: 1040px) {
  .yt-stage { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .yt-copy { padding: 16px clamp(10px, 2vw, 18px) 18px; }
  .series-rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--pad)); padding: 0 var(--pad) 6px; scrollbar-width: none; }
  .series-rail::-webkit-scrollbar { display: none; }
  .series-card { flex: 0 0 min(74vw, 290px); scroll-snap-align: start; scroll-margin-left: var(--pad); }
  .js .series-rail [data-reveal] { opacity: 1; transform: none; }
  .series-head { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .videos-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .poster-stack { display: none; }
  .lesson-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .yt-feature .yt-play { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
  .yt-actions .btn { flex: 1 1 auto; }
  .lesson-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .lesson { grid-template-columns: 132px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 14px; row-gap: 4px; }
  .lesson .yt-thumb { grid-column: 1; grid-row: 1 / span 2; border-radius: 10px; }
  .lesson .yt-play { display: none; }
  .lesson .yt-time { right: 5px; bottom: 5px; font-size: 10.5px; padding: 1px 5px; }
  .lesson-n, .lesson-t { grid-column: 2; }
  .lesson-n { padding-top: 0; }
  .lesson-t { font-size: 15px; }
  .lesson.short { max-width: none; }
  .lesson.short .yt-thumb { aspect-ratio: 4 / 5; }
  .yt-modal-bar { flex-direction: column; gap: 8px; }
}
@media print {
  .yt-modal, .series-nav { display: none !important; }
}

/* ---------- publications page and one page per paper ---------- */
.pubs-page { padding-top: clamp(32px, 4vw, 56px); padding-bottom: clamp(72px, 9vw, 120px); }
.pub-title { margin-top: 10px; font-family: var(--font-display); font-size: clamp(19px, 1.8vw, 24px); font-weight: 600; letter-spacing: -.025em; line-height: 1.2; text-wrap: pretty; }
.pub-title a { color: inherit; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .35s var(--ease); }
.pub-title a:hover, .pub-item h3 a:hover { background-size: 100% 1.5px; }
.pub-item h3 a { color: inherit; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .35s var(--ease); }
.pub-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.paper-title { margin-top: 20px; font-family: var(--font-display); font-weight: 800; font-variation-settings: "opsz" 72; font-size: clamp(32px, 4.6vw, 64px); line-height: 1.02; letter-spacing: -.03em; color: #fff; max-width: 22ch; text-wrap: balance; }
.paper-authors { margin-top: 26px; font-size: clamp(17px, 1.5vw, 20px); color: var(--text-2); }
.paper-authors strong { color: #fff; font-weight: 600; }
.paper-venue { margin-top: 8px; font-family: var(--font-mono); font-size: 13px; letter-spacing: .06em; color: var(--text-3); }
.paper-body { padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(72px, 9vw, 120px); }
.paper-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.paper-h { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }
.paper-main .paper-h ~ .paper-h { margin-top: 44px; }
.paper-abstract { margin-top: 18px; font-size: clamp(17px, 1.45vw, 19.5px); line-height: 1.72; color: var(--text); max-width: 68ch; }
.paper-kw { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.paper-cite { margin-top: 16px; padding: 22px 24px; border-radius: var(--radius-s); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 16px; justify-items: start; }
.paper-cite p { font-size: 15.5px; line-height: 1.6; color: var(--text-2); overflow-wrap: anywhere; }
.paper-side { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 24px; }
.paper-facts { display: grid; gap: 0; border-top: 1px solid var(--line-2); }
.paper-facts div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.paper-facts dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.paper-facts dd { margin: 6px 0 0; font-size: 15px; color: var(--text); overflow-wrap: anywhere; }
.paper-more { display: grid; gap: 12px; justify-items: start; }
.paper-others { margin-top: clamp(56px, 7vw, 96px); }
.paper-others ul { margin-top: 18px; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.paper-others a { display: grid; gap: 10px; height: 100%; padding: 20px 22px; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--text); transition: transform .3s var(--ease), border-color .2s, box-shadow .3s; }
.paper-others a:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--shadow); }
.paper-other-k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); }
.paper-other-t { font-family: var(--font-display); font-size: 17px; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; }
@media (max-width: 900px) {
  .paper-grid { grid-template-columns: minmax(0, 1fr); }
  .paper-side { position: static; }
}
@media print {
  .paper-others, .paper-cite-actions { display: none; }
}
.pubs-all { margin-top: 22px; }
.pub-group-h { display: flex; align-items: baseline; gap: 12px; margin: clamp(40px, 5vw, 64px) 0 16px; font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }
.pub-group-h:first-child { margin-top: 0; }
.pub-group-h span { color: var(--text-3); }
.paper-cite-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- one page per video series ---------- */
.series-page-title { font-size: clamp(42px, 6.4vw, 92px); max-width: 14ch; }
.series-hero .series-tag { margin-top: 14px; color: #fff; }
.series-page-about { display: grid; gap: 12px; }
.series-page-about p { margin: 0; }
.series-hero-thumb { align-self: center; border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .7); }
.series-links { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.series-note-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.series-note { display: grid; gap: 10px; height: 100%; padding: 22px 24px; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; transition: transform .3s var(--ease), border-color .2s, box-shadow .3s; }
.series-note:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--shadow); }
.series-note-t { font-family: var(--font-display); font-size: 19px; font-weight: 600; letter-spacing: -.02em; line-height: 1.22; }
.series-note-d { font-size: 15px; line-height: 1.55; color: var(--text-2); }
.series-others .series-head { align-items: flex-end; }
@media (min-width: 1041px) { .series-others .series-rail { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.series-others .series-head > .btn { justify-self: end; }
html[data-theme="light"] .pubs-page .pub-item[data-type="journal"] .pub-kind { color: #3F6B00; }
@media (max-width: 1040px) { .series-others .series-head > .btn { justify-self: start; } }
