@font-face {
  font-family: "InterVar";
  src: url("https://rsms.me/inter/font-files/Inter-VariableFont_slnt,wght.ttf?v=4.0") format("truetype-variations");
  font-weight: 100 900;
  font-style: oblique 0deg 10deg;
  font-display: swap;
}

:root {
  --bg: #0b0f14;
  --surface: #0e131a;
  --surface-2: #0e131a;
  --text: #e6eaf0;
  --muted: #9aa4b2;
  --accent: #8ef0d0;
}

:root[data-theme="light"] {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #ffffff;
  --text: #111;
  --muted: #666;
  --accent: #0a7a5a;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: InterVar, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto,
    Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
}

.navbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 6px 5vw; background: transparent; border-bottom: 1px solid color-mix(in oklab, var(--surface) 88%, var(--text)); backdrop-filter: blur(4px); transition: background-color 200ms ease, border-color 200ms ease, transform 220ms ease; }
.navbar.minimalist { background: color-mix(in oklab, var(--surface) 90%, black); border-bottom: 1px solid color-mix(in oklab, var(--surface) 70%, var(--text)); }
.navbar.scrolled { background: color-mix(in oklab, var(--surface) 92%, black); border-bottom-color: color-mix(in oklab, var(--surface) 65%, var(--text)); }
.navbar.hide { transform: translateY(-100%); }

.brand { text-decoration: none; color: inherit; font-weight: 700; letter-spacing: 0.2px; }

.nav { display: flex; align-items: center; gap: 10px; }
.nav a { color: var(--text); text-decoration: none; padding: 4px 8px; border-radius: 8px; }
.nav a:hover { background: color-mix(in oklab, var(--surface) 85%, var(--text)); }
.icon-button { padding: 4px 8px; border-radius: 8px; border: 1px solid color-mix(in oklab, var(--surface) 60%, var(--text)); background: transparent; color: var(--text); cursor: pointer; font: inherit; }

.page { padding: 0 6vw 64px; max-width: 1040px; margin: 0 auto; }
.page.head { padding-top: 28px; }
.page.head h1 { margin: 0; font-size: clamp(1.6rem, 2.2vw, 2rem); }
.page.head .tag { margin: 4px 0 6px; font-size: 1.02rem; font-weight: 450; color: var(--muted); }
.page.head .links a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.theme-toggle { margin-left: 10px; padding: 2px 8px; border-radius: 8px; border: 1px solid #e0e0e0; background: transparent; color: inherit; cursor: pointer; font: inherit; }
.theme-toggle:hover { background: #f6f6f6; }
.page.head .social { display: flex; gap: 16px; margin: 6px 0 2px; flex-wrap: wrap; }
.page.head .social a { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; opacity: 0.9; }
.page.head .social a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.page.head .note { margin: 4px 0 0; color: var(--muted); font-size: 0.95rem; }
.page hr { border: none; border-top: 1px solid #ddd; margin: 18px 0 0; }

/* Minimal flow diagram */
.micro { font-size: 0.92rem; opacity: 0.85; }

.hero { padding: 36px 0 12px; }
.hero h1 { margin: 0 0 10px 0; font-size: clamp(2.1rem, 4vw, 3.2rem); line-height: 1.12; letter-spacing: -0.01em; }
.hero p { margin: 0 0 8px 0; color: var(--muted); max-width: 65ch; font-size: 1.05rem; }
.cta-row { margin-top: 10px; }
.link-cta { color: inherit; text-underline-offset: 3px; text-decoration: underline dotted; }

.section { margin: 48px 0 64px; }
.section h2 { font-size: 1.6rem; letter-spacing: 0.01em; margin: 0 0 16px 0; position: relative; display: inline-block; }
.section h2::after { content: ""; display: block; width: 28px; height: 2px; background: #ddd; margin-top: 8px; }

.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.cols h3 { margin: 0 0 6px; font-size: 1rem; }
.cols ul { margin: 0; padding-left: 18px; }

.rows { display: grid; }
.row { display: grid; grid-template-columns: 1fr auto; align-items: baseline; padding: 12px 0; border-bottom: 1px solid #ececec; text-decoration: none; color: inherit; transition: transform 160ms ease; }
.row:first-child { border-top: 1px solid #e2e2e2; }
.row:hover { transform: translateX(2px); }
.row .meta { color: var(--muted); margin-left: 8px; display: inline-block; }
.row .arrow { opacity: 0.6; transition: transform 140ms ease, opacity 140ms ease; }
.row:hover .arrow { opacity: 1; transform: translateX(4px); }

.row header, .row > div { display: flex; flex-direction: column; gap: 2px; }
.row h3 { margin: 0; font-size: 1rem; letter-spacing: 0.1px; }
.row ul { margin: 8px 0 0 0; padding-left: 20px; }

.section p a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
/* animated underline for inline links */
.links a, .link-cta, .section p a { background-image: linear-gradient(currentColor, currentColor); background-position: 0 100%; background-repeat: no-repeat; background-size: 0% 1px; transition: background-size 160ms ease; text-decoration: none; }
.links a:hover, .link-cta:hover, .section p a:hover { background-size: 100% 1px; }

/* removed 'Currently' inline style */

/* Compact pill strip for the Now section */
.pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: -8px; margin-bottom: 8px; }
.pill { padding: 6px 10px; border-radius: 999px; border: 1px solid #e6e6e6; color: inherit; background: transparent; font-size: 0.95rem; }
.pill:hover { background: #f6f6f6; }

.contact-grid { display: none; }
.chip { display: none; }

.footer { margin-top: 64px; color: var(--muted); }

@media (max-width: 1100px) {
  .cols { grid-template-columns: 1fr; gap: 12px; }
}

/* Reveal on scroll (minimal, respects reduced motion) */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(8px); transition: opacity 360ms ease, transform 360ms ease; }
  .reveal.in { opacity: 1; transform: none; }
}

@media (max-width: 920px) {
  .pillars-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
}

/* end */


