/* mxsisa.com — shared styles.
   Deep-space background (canvas#sky + CSS nebula). Geist (sans) for headings,
   text, labels and UI. Serif is kept for two display moments on the homepage:
   the masthead and the Sankara quote (plus the h1 on subpages). Key boxes and
   every pill use the Synic Evidence liquid glass recipe. */

:root {
  --surface: #12121c;
  --surface-2: #181824;
  --line: rgba(240, 235, 225, 0.09);
  --line-strong: rgba(240, 235, 225, 0.18);
  --muted: #a39a8a;           /* 6.6:1 on --bg, AA for small text */
  --grad: linear-gradient(120deg, #ff8709 10%, #f7bdf8 85%);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --pad-x: clamp(1.25rem, 4.5vw, 3.5rem);
  --maxw: 1320px;
  --f-sans: 'Geist', 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-label: var(--f-sans);
}

/* ── Deep space ───────────────────────────────────────────── */
html { background: #05050b; }
#sky {
  position: fixed; inset: 0; z-index: 0; display: block;
  width: 100%; height: 100vh; height: 100lvh;
  pointer-events: none;
  background:
    radial-gradient(55% 42% at 16% 14%, rgba(84, 70, 180, .20), transparent 70%),
    radial-gradient(40% 36% at 72% 22%, rgba(60, 120, 205, .10), transparent 70%),
    radial-gradient(48% 40% at 90% 68%, rgba(176, 72, 146, .13), transparent 70%),
    radial-gradient(50% 34% at 40% 104%, rgba(255, 135, 9, .07), transparent 70%);
}
/* Static stars for when the canvas script doesn't run */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.8), transparent 60%),
    radial-gradient(1px 1px at 72% 34%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(1.5px 1.5px at 38% 72%, rgba(255,240,225,.8), transparent 60%),
    radial-gradient(1px 1px at 86% 82%, rgba(210,225,255,.7), transparent 60%),
    radial-gradient(1px 1px at 55% 8%, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(1px 1px at 24% 56%, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(1.5px 1.5px at 93% 12%, rgba(255,220,245,.8), transparent 60%),
    radial-gradient(1px 1px at 6% 90%, rgba(255,255,255,.6), transparent 60%);
  background-size: 260px 260px, 330px 330px, 410px 410px, 290px 290px, 370px 370px, 230px 230px, 520px 520px, 310px 310px;
}
html.sky-on body::before { display: none; }

/* ── Base helpers ─────────────────────────────────────────── */
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--accent); color: #120a02; padding: .7rem 1rem; border-radius: 8px;
  font: 600 .9rem/1 var(--f-sans); text-decoration: none;
}
.skip-link:focus { top: 1rem; }
:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad-x); }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.chapter { position: relative; padding: clamp(3rem, 5vw, 4.5rem) 0; }
main > .chapter + .chapter { padding-top: clamp(1.75rem, 3vw, 2.75rem); }

/* The one small-label style: clean sans, sentence case */
.label, .eyebrow {
  font-family: var(--f-sans);
  font-style: normal; font-weight: 500;
  font-size: .88rem; line-height: 1.4; letter-spacing: .01em;
  text-transform: none;
  color: var(--muted);
}
.eyebrow .num { color: var(--accent); margin-right: .45rem; font-style: normal; }

/* Section header: title left, lede right */
.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 6.5fr) minmax(0, 5fr);
  gap: 1rem clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
}
.sec-head--solo { grid-template-columns: minmax(0, 1fr); }
.ch-head { /* inner pages */
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 10fr);
  gap: 1rem clamp(1.5rem, 3vw, 3rem);
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.ch-title {
  font-family: var(--f-sans);
  font-weight: 300;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: .98;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.ch-title em, .half-title em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-right: .06em;
}
.ch-lede {
  max-width: 40rem;
  font-size: clamp(1.02rem, 1.2vw, 1.15rem);
  line-height: 1.6;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.ch-head .ch-lede { grid-column: 2; }
.ch-lede a { color: var(--ink); }

/* Buttons / links */
.btn {
  --b: var(--line-strong);
  display: inline-flex; align-items: center; gap: .6rem;
  min-height: 44px; padding: .7rem 1.2rem;
  border: 1px solid var(--b); border-radius: 999px;
  color: var(--ink); text-decoration: none;
  font: 500 .95rem/1 var(--f-sans); letter-spacing: 0;
  transition: background .3s ease, border-color .3s ease, color .3s ease, transform .3s var(--ease-out);
}
.btn:hover { --b: rgba(255, 135, 9, .55); background: rgba(255, 135, 9, .08); }
.btn .arr { transition: transform .35s var(--ease-out); }
.btn:hover .arr { transform: translateX(4px); }
.btn--solid { background: var(--ink); color: #0b0b12; --b: var(--ink); }
.btn--solid:hover { background: #fff; color: #0b0b12; --b: #fff; }
.text-link {
  color: var(--ink); text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 2px;
  transition: background-size .35s var(--ease-out), color .2s;
}
.text-link:hover { color: var(--accent); background-size: 0 1px; background-position: 100% 100%; }

/* Reveal on scroll (only when JS runs) */
html.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity .9s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 80ms);
}
html.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ── Stage: faint nebula light so the glass has something to bend ── */
.stage { position: relative; isolation: isolate; }
.stage::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; margin-left: -50vw; z-index: -1; pointer-events: none;
  background:
    radial-gradient(34% 46% at var(--s1x, 12%) var(--s1y, 28%), rgba(255, 135, 9, .10), transparent 70%),
    radial-gradient(30% 42% at var(--s2x, 88%) var(--s2y, 62%), rgba(214, 120, 230, .10), transparent 70%),
    radial-gradient(28% 36% at var(--s3x, 58%) var(--s3y, 6%), rgba(90, 130, 235, .12), transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
}

/* ── Liquid glass (ported from Synic Evidence landing.css) ─────────────
   Near-transparent fill, radial highlights, inset specular stack, a thick
   bright rim with a faint cyan/magenta fringe. Chromium bends the backdrop
   with the #lg-lens / #lg-lens-pill SVG displacement filters; other engines
   get the blur fallback. Outer shadows are retuned for a dark page. */
.lg-defs { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.lg-box {
  --ls-fill: rgb(255 255 255 / 0.06);
  --ls-radius: 30px;
  position: relative;
  isolation: isolate;
  border: 0;
  border-radius: var(--ls-radius);
  background:
    radial-gradient(120% 90% at 0% 0%, rgb(255 255 255 / 0.18), transparent 46%),
    radial-gradient(100% 80% at 100% 100%, rgb(255 255 255 / 0.12), transparent 50%),
    var(--ls-fill);
  -webkit-backdrop-filter: blur(4px) saturate(135%) brightness(1.02);
  backdrop-filter: blur(4px) saturate(135%) brightness(1.02);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.35),
    inset 2px 3px 1px -1px rgb(255 255 255 / 0.95),
    inset -2px -3px 1px -1px rgb(255 255 255 / 0.7),
    inset 0 0 22px rgb(255 255 255 / 0.22),
    inset 0 -10px 24px -16px rgb(40 90 140 / 0.18),
    0 0 0 0.5px rgb(0 0 0 / 0.4),
    0 18px 44px -18px rgb(0 0 0 / 0.65),
    0 4px 12px -6px rgb(0 0 0 / 0.4);
  transform: translateZ(0);
}
.lg-refract-ok .lg-box {
  -webkit-backdrop-filter: url(#lg-lens) saturate(125%);
  backdrop-filter: url(#lg-lens) saturate(125%);
}
.lg-box > .lg-rim {
  position: absolute; inset: 0; z-index: 0;
  border-radius: inherit; padding: 1.6px; pointer-events: none;
  background: conic-gradient(from 210deg,
    rgb(255 255 255 / 0.95) 0deg,
    rgb(190 230 255 / 0.55) 40deg,
    rgb(255 255 255 / 0.08) 95deg,
    rgb(255 200 240 / 0.35) 150deg,
    rgb(255 255 255 / 0.9) 180deg,
    rgb(200 240 255 / 0.5) 220deg,
    rgb(255 255 255 / 0.08) 275deg,
    rgb(255 215 245 / 0.35) 330deg,
    rgb(255 255 255 / 0.95) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  transition: filter 220ms ease;
}
.lg-box::before, .lg-box::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none; border-radius: inherit;
}
.lg-box::before {
  inset: 3px auto auto 3px; width: 42%; height: 58%;
  border-top: 2px solid rgb(255 255 255 / 0.9);
  border-left: 2px solid rgb(255 255 255 / 0.75);
  border-radius: calc(var(--ls-radius) - 3px) 0 0 0;
  -webkit-mask-image: radial-gradient(130% 130% at 0 0, #000 35%, transparent 72%);
  mask-image: radial-gradient(130% 130% at 0 0, #000 35%, transparent 72%);
  filter: blur(0.4px);
}
.lg-box::after {
  inset: auto 3px 3px auto; width: 36%; height: 50%;
  border-bottom: 2px solid rgb(255 255 255 / 0.7);
  border-right: 2px solid rgb(255 255 255 / 0.55);
  border-radius: 0 0 calc(var(--ls-radius) - 3px) 0;
  -webkit-mask-image: radial-gradient(130% 130% at 100% 100%, #000 30%, transparent 70%);
  mask-image: radial-gradient(130% 130% at 100% 100%, #000 30%, transparent 70%);
  filter: blur(0.4px);
}
.lg-box > *:not(.lg-rim) { position: relative; z-index: 1; }
.lg-box:hover > .lg-rim, .lg-box:focus-within > .lg-rim { filter: brightness(1.15); }

/* Small liquid glass: every pill, tag and chip */
.pill {
  --pg-hi: rgb(255 255 255 / 0.9);
  position: relative;
  isolation: isolate;
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 34px; padding: .4rem .95rem;
  border: 0; border-radius: 999px;
  font: 400 .9rem/1.2 var(--f-sans); letter-spacing: 0;
  color: var(--ink);
  text-decoration: none;
  background:
    radial-gradient(120% 140% at 0% 0%, rgb(255 255 255 / 0.22), transparent 55%),
    radial-gradient(120% 140% at 100% 100%, rgb(255 255 255 / 0.14), transparent 55%),
    rgb(255 255 255 / 0.08);
  -webkit-backdrop-filter: blur(4px) saturate(135%) brightness(1.02);
  backdrop-filter: blur(4px) saturate(135%) brightness(1.02);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.4),
    inset 1.5px 2px 0.5px -0.5px var(--pg-hi),
    inset -1.5px -2px 0.5px -0.5px rgb(255 255 255 / 0.6),
    inset 0 0 12px rgb(255 255 255 / 0.2),
    0 0 0 0.5px rgb(0 0 0 / 0.4),
    0 8px 20px -10px rgb(0 0 0 / 0.6),
    0 2px 6px -3px rgb(0 0 0 / 0.4);
  transition: transform 260ms cubic-bezier(.3,1.6,.5,1), box-shadow 220ms ease, color 200ms ease;
}
.lg-refract-ok .pill {
  -webkit-backdrop-filter: url(#lg-lens-pill) saturate(125%);
  backdrop-filter: url(#lg-lens-pill) saturate(125%);
}
.pill::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit; padding: 1.2px; pointer-events: none;
  background: conic-gradient(from 210deg,
    rgb(255 255 255 / 0.95), rgb(190 230 255 / 0.5) 40deg, rgb(255 255 255 / 0.08) 95deg,
    rgb(255 200 240 / 0.3) 150deg, rgb(255 255 255 / 0.9) 180deg, rgb(200 240 255 / 0.45) 220deg,
    rgb(255 255 255 / 0.08) 275deg, rgb(255 215 245 / 0.3) 330deg, rgb(255 255 255 / 0.95));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  transition: filter 200ms ease;
}
.pill small { font-size: .8rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
a.pill:hover, button.pill:hover {
  transform: translateY(-3px);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.55),
    inset 1.5px 2px 0.5px -0.5px rgb(255 255 255 / 1),
    inset -1.5px -2px 0.5px -0.5px rgb(255 255 255 / 0.75),
    inset 0 0 14px rgb(255 255 255 / 0.26),
    0 0 0 0.5px rgb(0 0 0 / 0.45),
    0 16px 28px -12px rgb(0 0 0 / 0.7),
    0 2px 6px -3px rgb(0 0 0 / 0.4);
}
a.pill:hover::before, a.pill:focus-visible::before, button.pill:hover::before { filter: brightness(1.2); }
a.pill:active, button.pill:active { transform: scale(0.96); }
.pill--live::after {
  content: ""; order: -1; width: 7px; height: 7px; border-radius: 50%;
  background: #6ee7a8; box-shadow: 0 0 0 3px rgba(110, 231, 168, .2);
}
.pills { display: flex; flex-wrap: wrap; gap: .55rem; list-style: none; }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .lg-box { --ls-fill: rgb(26 26 38 / 0.94); }
  .pill { background-color: rgb(34 34 48 / 0.94); }
}
@media (prefers-reduced-transparency: reduce) {
  .lg-box, .lg-refract-ok .lg-box {
    -webkit-backdrop-filter: none; backdrop-filter: none;
    background: #1a1a26;
  }
  .pill, .lg-refract-ok .pill {
    -webkit-backdrop-filter: none; backdrop-filter: none;
    background: #24243a;
  }
}

/* ── ABOUT ───────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: end;
}
.statement {
  font-family: var(--f-sans);
  font-weight: 300;
  font-size: clamp(1.9rem, 3.8vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.statement em { font-style: normal; }
.scrub .w { color: rgba(240, 235, 225, .22); transition: color .25s linear; }
.scrub .w.on { color: var(--ink); }
.scrub em .w.on { color: var(--accent-soft); }
.no-js .scrub .w, .reduce .scrub .w { color: inherit; }
.prose p {
  font-size: clamp(1.02rem, 1.2vw, 1.12rem);
  line-height: 1.7;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.prose p + p { margin-top: 1rem; }
.prose p strong { color: var(--ink); font-weight: 500; }

/* ── BUILDING: tabbed workbench ──────────────────────────── */
.stage--building { --s1x: 8%; --s1y: 55%; --s2x: 92%; --s2y: 35%; --s3x: 45%; --s3y: 92%; }
.workbench > *, .duo > *, .path-grid > *, .rec-grid > *, .contact-duo > * { min-width: 0; }
.workbench {
  display: grid;
  grid-template-columns: minmax(0, 3.2fr) minmax(0, 8.8fr);
  gap: clamp(1.25rem, 3vw, 2.75rem);
  align-items: start;
}
.wb-brand { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 1.1rem; }
.logo-tile {
  flex: none; display: grid; place-items: center;
  width: 92px; height: 92px; border-radius: 26px;
  --ls-radius: 26px;
}
.logo-tile img { width: 64px; height: 64px; }
.wb-name { font-family: var(--f-sans); font-weight: 500; font-size: 1.75rem; letter-spacing: -.02em; line-height: 1.1; }
.wb-tagline {
  font-family: var(--f-sans); font-weight: 300; font-size: 1.35rem; line-height: 1.2; letter-spacing: -.015em;
  margin: 0 0 .6rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.wb-meta { color: var(--muted); font-size: .95rem; margin-top: .25rem; }
.wb-meta a { color: var(--ink-soft); }
.wb-rule { color: var(--ink-soft); font-size: 1rem; line-height: 1.6; margin-bottom: 1.25rem; }

.tabs { display: flex; flex-direction: column; gap: .3rem; }
.tab {
  appearance: none; -webkit-appearance: none;
  display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: .75rem;
  width: 100%; text-align: left; cursor: pointer;
  padding: .8rem 1rem; border: 0; border-radius: 18px;
  background: transparent; color: var(--muted);
  font: inherit;
  position: relative; isolation: isolate;
  transition: color .25s ease, background .25s ease, box-shadow .25s ease, transform 260ms cubic-bezier(.3,1.6,.5,1);
}
.tab .t { font-family: var(--f-sans); font-weight: 500; font-size: 1.2rem; letter-spacing: -.01em; line-height: 1.15; color: inherit; }
.tab .s { grid-column: 1; font-size: .9rem; color: var(--muted); margin-top: .15rem; }
.tab .go { grid-row: 1 / span 2; grid-column: 2; opacity: 0; transform: translateX(-4px); transition: opacity .25s, transform .35s var(--ease-out); color: var(--accent); }
.tab:hover { color: var(--ink); background: rgba(255, 255, 255, .035); }
.tab[aria-selected="true"] {
  color: var(--ink);
  /* the glass bead from the Evidence mode toggle */
  background:
    radial-gradient(120% 160% at 0% 0%, rgb(255 255 255 / 0.2), transparent 60%),
    rgb(255 255 255 / 0.07);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.38),
    inset 1.5px 2px 0.5px -0.5px rgb(255 255 255 / 0.85),
    inset -1.5px -2px 0.5px -0.5px rgb(255 255 255 / 0.5),
    inset 0 0 12px rgb(255 255 255 / 0.14),
    0 8px 20px -10px rgb(0 0 0 / 0.6);
  -webkit-backdrop-filter: blur(4px) saturate(135%);
  backdrop-filter: blur(4px) saturate(135%);
}
.lg-refract-ok .tab[aria-selected="true"] {
  -webkit-backdrop-filter: url(#lg-lens-pill) saturate(125%);
  backdrop-filter: url(#lg-lens-pill) saturate(125%);
}
.tab[aria-selected="true"] .s { color: var(--ink-soft); }
.tab[aria-selected="true"] .go { opacity: 1; transform: none; }
.tab:active { transform: scale(.98); }
.tab--outside { margin-top: .9rem; }
.tab--outside::before {
  content: ""; position: absolute; left: 1rem; right: 1rem; top: -.5rem; height: 1px; background: var(--line);
}
.wb-note { color: var(--muted); font-size: .9rem; line-height: 1.55; margin-top: 1.25rem; }

.wb-panels { display: grid; grid-template-columns: minmax(0, 1fr); padding: clamp(1rem, 1.8vw, 1.5rem); }
.panel {
  grid-area: 1 / 1;
  --tint: 255, 135, 9;
  opacity: 0; visibility: hidden;
  transform: translateY(8px) scale(.995);
  transition: opacity .45s ease, transform .55s var(--ease-out), visibility 0s linear .45s;
  border-radius: 20px;
}
.panel.is-active {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .5s ease .08s, transform .6s var(--ease-out) .08s, visibility 0s;
}
.panel[hidden] { display: block; } /* attribute marks inactive panels; CSS crossfades them */
.panel:focus-visible { outline-offset: 6px; }
html:not(.js) .panel { grid-area: auto; opacity: 1; visibility: visible; transform: none; margin-bottom: 2rem; }
.panel[data-tint="clinical"] { --tint: 236, 160, 190; }
.panel[data-tint="evidence"] { --tint: 120, 175, 245; }
.panel[data-tint="dental"]   { --tint: 110, 205, 205; }
.panel[data-tint="relay"]    { --tint: 225, 165, 125; }
.panel[data-tint="truvace"]  { --tint: 125, 150, 255; }

.panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
  align-items: start;
}
.frame {
  position: relative;
  border-radius: 14px;
  background: #0d0d16;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.12),
    0 30px 60px -30px rgba(0,0,0,.85),
    0 0 90px -30px rgba(var(--tint), .5);
  overflow: hidden;
  transition: box-shadow .6s ease, transform .8s var(--ease-out);
}
.frame-bar {
  display: flex; align-items: center; gap: .9rem;
  height: 34px; padding: 0 .9rem;
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid var(--line);
  font: 400 .8rem/1 var(--f-sans); color: var(--muted);
}
.frame-bar i { display: block; width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.16); }
.frame-bar i + i { margin-left: -.5rem; }
.frame-bar .url { flex: 1; text-align: center; margin-right: 2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frame-shot { position: relative; overflow: hidden; aspect-ratio: 16 / 10; }
.frame-shot--wide { aspect-ratio: 1440 / 690; }
.frame-shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
a.frame-link { display: block; text-decoration: none; color: inherit; border-radius: 14px; }
a.frame-link:hover .frame { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 40px 70px -30px rgba(0,0,0,.9), 0 0 110px -25px rgba(var(--tint), .65); }

.p-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: .9rem; }
.p-logo { width: 72px; height: 72px; border-radius: 20px; --ls-radius: 20px; display: grid; place-items: center; margin-right: .4rem; }
.p-logo img { width: 52px; height: 52px; border-radius: 12px; }
.p-title {
  font-family: var(--f-sans); font-weight: 300;
  font-size: clamp(1.8rem, 2.8vw, 2.6rem); line-height: 1.04; letter-spacing: -.03em;
  margin-bottom: .8rem;
}
.p-title em { font-style: normal; color: rgb(var(--tint)); }
.panel p { color: var(--ink-soft); font-size: 1.02rem; line-height: 1.62; text-wrap: pretty; }
.panel p + p { margin-top: .7rem; }
.p-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.checks { list-style: none; margin-top: 1rem; border-top: 1px solid var(--line); }
.checks li {
  display: grid; grid-template-columns: 1.2rem 1fr; gap: .45rem;
  padding: .45rem 0; border-bottom: 1px solid var(--line);
  font-size: .95rem; line-height: 1.42; color: var(--ink);
}
.checks li::before {
  content: ""; width: 6px; height: 6px; margin-top: .5rem; border-radius: 2px;
  background: rgb(var(--tint)); transform: rotate(45deg);
}
.checks li small { display: block; color: var(--muted); font-size: .86rem; }

/* Compare bars (real figures only) */
.bars { margin-top: 1rem; padding: 1rem 1.1rem .9rem; border-radius: 16px; background: rgba(0,0,0,.22); box-shadow: inset 0 0 0 1px var(--line); }
.bars .bars-h { font-family: var(--f-sans); font-weight: 500; font-size: .9rem; color: var(--ink-soft); margin-bottom: .7rem; }
.bar { display: grid; grid-template-columns: 9rem 1fr 3rem; align-items: center; gap: .8rem; margin-bottom: .5rem; font-size: .9rem; color: var(--ink-soft); }
.bar .track { height: 8px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; }
.bar .fill { display: block; height: 100%; width: var(--v); border-radius: inherit; background: rgba(255,255,255,.3); transform-origin: left; transform: scaleX(1); transition: transform 1.4s var(--ease-out); }
.bar.hi .fill { background: var(--grad); }
.bar .val { font: 500 .95rem/1 var(--f-sans); font-variant-numeric: tabular-nums; color: var(--ink); text-align: right; }
html.js .bars:not(.is-in) .fill { transform: scaleX(0); }
.bars .src { font-size: .84rem !important; color: var(--muted) !important; margin-top: .5rem; line-height: 1.5 !important; }

.truvace-shot { display: block; border-radius: 14px; overflow: hidden; background: #f4f1ea; box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 30px 60px -30px rgba(0,0,0,.85), 0 0 90px -30px rgba(var(--tint), .5); }
.truvace-shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.t-logo-tile { background: #04040a; }

/* ── RESEARCH | WRITING (two halves) ─────────────────────── */
.stage--duo { --s1x: 20%; --s1y: 40%; --s2x: 78%; --s2y: 70%; --s3x: 50%; --s3y: 8%; }
.duo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}
.half-title {
  font-family: var(--f-sans); font-weight: 300;
  font-size: clamp(2.2rem, 4vw, 3.6rem); line-height: 1; letter-spacing: -.035em;
}
.half-lede { color: var(--ink-soft); font-size: 1.05rem; line-height: 1.6; margin: .7rem 0 1.4rem; max-width: 36rem; text-wrap: pretty; }

.paper { padding: clamp(1.4rem, 2.6vw, 2.1rem); }
.paper h3 {
  font-family: var(--f-sans); font-weight: 400;
  font-size: clamp(1.45rem, 2.1vw, 1.95rem); line-height: 1.1; letter-spacing: -.02em;
  margin: .45rem 0 .8rem;
}
.paper h3 .sub { color: var(--accent-soft); font-weight: 300; }
.paper p { color: var(--ink-soft); font-size: 1rem; line-height: 1.62; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 1.1rem 0 .2rem; border-top: 1px solid var(--line); }
.metrics div { padding: .8rem .8rem 0 0; }
.metrics div + div { padding-left: .8rem; border-left: 1px solid var(--line); }
.metrics b { display: block; font-family: var(--f-sans); font-weight: 300; font-size: clamp(1.5rem, 2.2vw, 2rem); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.metrics span { font-size: .88rem; color: var(--muted); }
.drop .bar { grid-template-columns: 9.5rem 1fr 3rem; }
.paper-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.25rem; margin-top: 1.1rem; }
.doi b { font-weight: 500; color: var(--accent); }
.congress { font-size: .95rem !important; line-height: 1.5 !important; }
.congress strong { color: var(--ink); font-weight: 500; }

.study { margin-top: 1.5rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.study h3 { font-family: var(--f-sans); font-weight: 500; font-size: clamp(1.25rem, 1.7vw, 1.5rem); line-height: 1.2; letter-spacing: -.015em; margin: .3rem 0 .5rem; }
.study p { color: var(--ink-soft); line-height: 1.6; }

.essays { list-style: none; border-top: 1px solid var(--line-strong); }
.essay a {
  position: relative;
  display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) auto;
  gap: .9rem; align-items: baseline;
  padding: .95rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none; color: var(--ink);
  isolation: isolate;
}
.essay a::before {
  content: ""; position: absolute; inset: 0 -.75rem; z-index: -1; border-radius: 12px;
  background: linear-gradient(90deg, rgba(255,135,9,.08), rgba(247,189,248,.04) 60%, transparent);
  opacity: 0; transition: opacity .4s ease;
}
.essay a:hover::before, .essay a:focus-visible::before { opacity: 1; }
.essay .e-num { font-family: var(--f-sans); font-size: .9rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.essay .e-title {
  font-family: var(--f-sans); font-weight: 300;
  font-size: clamp(1.1rem, 1.45vw, 1.32rem); line-height: 1.25; letter-spacing: -.012em;
  transition: transform .5s var(--ease-out);
  text-wrap: pretty;
}
.essay .e-meta { display: block; font-size: .88rem; color: var(--muted); margin-top: .2rem; letter-spacing: 0; }
.essay a:hover .e-title { transform: translateX(6px); }
.essay .e-arrow { font-size: 1rem; color: var(--ink-soft); transition: transform .4s var(--ease-out), color .3s; }
.essay a:hover .e-arrow { transform: translate(3px, -3px); color: var(--accent); }

.e-preview {
  position: fixed; left: 0; top: 0; z-index: 50; pointer-events: none;
  width: 220px; height: 220px; border-radius: 18px; overflow: hidden;
  opacity: 0; transform: translate3d(var(--x, 0), var(--y, 0), 0) scale(.85);
  transition: opacity .3s ease, transform .5s var(--ease-out);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.8);
}
.e-preview.show { opacity: 1; transform: translate3d(var(--x, 0), var(--y, 0), 0) scale(1); }
.e-preview .art { position: absolute; inset: 0; display: none; }
.e-preview .art.on { display: block; }
.e-preview svg { width: 100%; height: 100%; }
.art-1 { background: linear-gradient(135deg, #ff8709, #ff5e3a); }
.art-2 { background: linear-gradient(135deg, #2b4a63, #0f1c26); }
.art-3 { background: linear-gradient(135deg, #f7bdf8, #ae7cc9); }
.art-4 { background: linear-gradient(135deg, #3b2a1f, #ff8709); }
.art-5 { background: linear-gradient(135deg, #1b2d3c, #4c7ea0); }
.art-6 { background: linear-gradient(135deg, #5c2a52, #f7bdf8); }
.art-7 { background: linear-gradient(135deg, #2a2a38, #6a6358); }
.medium-cta { margin-top: 1.25rem; }
.medium-cta .pill { font-size: 1rem; }
.medium-cta .txt1 { color: var(--ink-soft); }
.medium-cta .txt2 { color: var(--accent); }
.medium-cta .bar-c { display: inline-block; width: 2px; height: 1.05em; background: var(--accent); margin-left: 1px; animation: blink 1s steps(2) infinite; }

/* ── PATH: two parallel columns ──────────────────────────── */
.path-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
}
.col-title {
  font-family: var(--f-sans); font-weight: 500;
  font-size: .98rem; letter-spacing: .005em; text-transform: none; color: var(--accent-soft);
  padding-bottom: .6rem; border-bottom: 1px solid var(--line-strong);
}
.tl { list-style: none; }
.tl li {
  display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 1rem;
  padding: 1rem 0; border-bottom: 1px solid var(--line);
}
.tl .when { font-size: .92rem; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: .2rem; line-height: 1.4; }
.tl li.now .when { color: var(--ink); }
.tl h3 { font-family: var(--f-sans); font-weight: 500; font-size: 1.22rem; line-height: 1.25; letter-spacing: -.012em; }
.tl h3 .org { display: block; font-family: var(--f-sans); font-size: .9rem; font-weight: 400; color: var(--accent-soft); margin-top: .15rem; letter-spacing: 0; }
.tl p { color: var(--ink-soft); font-size: .98rem; line-height: 1.55; margin-top: .25rem; text-wrap: pretty; }
.service { margin-top: 1.5rem; }
.service p { color: var(--ink-soft); line-height: 1.6; margin: .5rem 0 .9rem; }

/* ── RECOGNITION ─────────────────────────────────────────── */
.stage--rec { --s1x: 85%; --s1y: 30%; --s2x: 10%; --s2y: 75%; --s3x: 40%; --s3y: 5%; }
.rec-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.award { padding: clamp(1.4rem, 2.6vw, 2rem); }
.award h3 { font-family: var(--f-sans); font-weight: 300; font-size: clamp(1.7rem, 2.6vw, 2.4rem); line-height: 1.05; letter-spacing: -.03em; margin: .4rem 0 .6rem; }
.award h3 .hl { color: var(--accent-soft); }
.award p { color: var(--ink-soft); line-height: 1.6; }
.honors { list-style: none; margin-top: 1rem; }
.honors li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.honors b { font-family: var(--f-sans); font-weight: 500; font-size: 1.15rem; line-height: 1.25; display: block; }
.honors span { color: var(--muted); font-size: .92rem; }
.honors .yr { font-family: var(--f-sans); font-size: .95rem; color: var(--ink-soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
.rec-block + .rec-block { margin-top: 1.4rem; }
.rec-block .col-title { margin-bottom: .9rem; }
.skill-row + .skill-row { margin-top: .9rem; }
.skill-row .label { display: block; margin-bottom: .45rem; }

/* ── CONTACT | RÉSUMÉ ────────────────────────────────────── */
.stage--contact { --s1x: 20%; --s1y: 45%; --s2x: 80%; --s2y: 35%; --s3x: 55%; --s3y: 95%; overflow: hidden; }
.contact-duo { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.25rem, 3vw, 2.5rem); align-items: stretch; }
.contact-card { padding: clamp(1.6rem, 3.5vw, 2.8rem); display: flex; flex-direction: column; gap: 1.1rem; }
.contact-card .big {
  font-family: var(--f-sans); font-weight: 300;
  font-size: clamp(3rem, 7.5vw, 6.5rem); line-height: .9; letter-spacing: -.05em;
}
.contact-card .big em { font-style: normal; }
.mail {
  align-self: flex-start;
  font-family: var(--f-sans); font-weight: 300; letter-spacing: -.02em; font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  color: var(--ink); text-decoration: none; word-break: break-all;
  background: var(--grad) 0 100% / 0 2px no-repeat;
  transition: background-size .6s var(--ease-out);
  padding-bottom: .15rem;
}
.mail:hover { background-size: 100% 2px; }
.contact-note { color: var(--ink-soft); line-height: 1.6; max-width: 36rem; margin-top: auto; }

.resume-mini { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1.25rem; align-items: center; padding: clamp(1.25rem, 2.5vw, 2rem); }
.resume-mini h3 { font-family: var(--f-sans); font-weight: 300; font-size: clamp(1.6rem, 2.4vw, 2.2rem); line-height: 1.05; letter-spacing: -.03em; margin: .35rem 0 .6rem; }

.resume-mini p { color: var(--ink-soft); line-height: 1.55; font-size: .98rem; }
.resume-mini .p-actions { flex-direction: column; align-items: flex-start; gap: .55rem; margin-top: 1rem; }

/* Résumé sheet (also used on /about) */
.sheet-wrap { perspective: 1400px; }
.sheet {
  display: block; position: relative;
  border-radius: 8px; overflow: hidden; background: #fff;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.1);
  transform: rotateY(var(--ry, 8deg)) rotateX(var(--rx, 3deg)) rotateZ(-1deg);
  transition: transform .9s var(--ease-out);
  transform-style: preserve-3d;
}
.sheet img { display: block; width: 100%; height: auto; }
.sheet::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255,255,255,.0) 40%, rgba(255,255,255,.35) 50%, rgba(255,255,255,0) 60%); background-size: 250% 100%; background-position: var(--sheen, 100%) 0; transition: background-position 1.2s var(--ease-out); mix-blend-mode: soft-light; }
.sheet:hover { --ry: 0deg; --rx: 0deg; --sheen: 0%; }

.resume-mini .sheet-wrap { perspective: none; }
.resume-mini .sheet { transform: rotate(-2deg); transform-style: flat; transition: transform .6s var(--ease-out); }
.resume-mini .sheet:hover { transform: rotate(0deg) scale(1.02); }

/* Inner-page résumé block (/about) */
.resume-block {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(1.5rem, 5vw, 4.5rem); align-items: center;
  padding: clamp(1.5rem, 3.5vw, 3rem);
}
.resume-copy h3 { font-family: var(--f-sans); font-weight: 300; font-size: clamp(1.9rem, 3.6vw, 3.2rem); line-height: 1.04; letter-spacing: -.035em; margin: .6rem 0 1rem; }
.resume-copy h3 em { font-style: normal; color: var(--accent-soft); }
.resume-copy p:not(.eyebrow) { color: var(--ink-soft); font-size: 1.05rem; line-height: 1.65; max-width: 36rem; }

.brain-echo {
  position: absolute; right: -6%; top: -8%;
  width: min(56vw, 760px); height: auto; aspect-ratio: 887 / 780;
  pointer-events: none; z-index: -1; opacity: .45;
  filter: drop-shadow(0 0 22px rgba(255, 135, 9, .25));
}
.brain-echo path { fill: none; stroke: url(#echoGrad); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

.site-foot {
  position: relative; z-index: 2;
  border-top: 1px solid var(--line);
  padding: 1.6rem var(--pad-x);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  font: 400 .9rem/1.5 var(--f-sans); color: var(--muted);
  max-width: var(--maxw); margin: 0 auto;
}
.site-foot a { color: var(--ink-soft); text-decoration: none; }
.site-foot a:hover { color: var(--accent); }


/* ── VENTURES additions ──────────────────────────────────── */
.venture-label {
  display: flex; align-items: center; gap: .75rem;
  font: 500 .95rem/1 var(--f-sans); letter-spacing: .005em; text-transform: none; color: var(--muted);
  margin: 0 0 1.25rem;
}
.venture-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.venture-label .v-num { color: var(--accent); font-variant-numeric: tabular-nums; }
.venture-label--2 { margin-top: clamp(2.5rem, 5vw, 4rem); }
.spec { margin-top: 1rem; border-top: 1px solid var(--line); }
.spec div { display: grid; grid-template-columns: 6.2rem minmax(0, 1fr); gap: .8rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.spec dt { font: 500 .86rem/1.5 var(--f-sans); letter-spacing: .005em; text-transform: none; color: var(--muted); padding-top: .1rem; }
.spec dd { font-size: .95rem; line-height: 1.5; color: var(--ink); }
.venture {
  --tint: 125, 150, 255;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(1.25rem, 3vw, 2.75rem); align-items: center;
  padding: clamp(1.25rem, 2.6vw, 2.1rem);
}
.venture-copy > p:not(.wb-meta):not(.v-lede) { color: var(--ink-soft); font-size: 1.02rem; line-height: 1.62; text-wrap: pretty; }
.venture .wb-brand { margin-bottom: .9rem; }
.v-lede { font-family: var(--f-sans); font-weight: 300; font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1.1; letter-spacing: -.025em; color: rgb(var(--tint)); margin-bottom: .7rem; }
.v-sectors { margin: 1rem 0 .2rem; gap: .4rem; }
.v-sectors .pill { min-height: 30px; padding: .3rem .8rem; font-size: .84rem; }
.venture .truvace-shot { align-self: stretch; }
.venture .truvace-shot img { height: 100%; min-height: 100%; }
.nav-logo img { width: 26px; height: 26px; border-radius: 7px; display: block; }

/* Certifications: each one links to its credential or to LinkedIn */
.certs { list-style: none; border-top: 1px solid var(--line); }
.certs a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1rem; align-items: baseline;
  padding: .7rem 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none;
  transition: color .2s ease;
}
.certs .c-name { font-family: var(--f-sans); font-weight: 500; font-size: 1.08rem; line-height: 1.3; }
.certs .c-meta { grid-column: 1; font-size: .86rem; color: var(--muted); margin-top: .15rem; }
.certs .c-go { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: .82rem; color: var(--ink-soft); white-space: nowrap; transition: color .2s, transform .3s var(--ease-out); }
.certs a:hover .c-name { color: var(--accent); }
.certs a:hover .c-go { color: var(--accent); transform: translate(2px, -2px); }
.certs-all { margin-top: .8rem; font-size: .92rem; }

@media (max-width: 960px) {
  .venture { grid-template-columns: minmax(0, 1fr); }
  .venture .truvace-shot { order: -1; }
}
@media (max-width: 560px) {
  .spec div { grid-template-columns: minmax(0, 1fr); gap: .1rem; }
}

@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1100px) {
  .panel-grid { grid-template-columns: minmax(0, 1fr); }
  .workbench { grid-template-columns: minmax(0, 3.6fr) minmax(0, 8.4fr); }
  .contact-duo { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .duo, .rec-grid, .path-grid { grid-template-columns: minmax(0, 1fr); }
  .duo > * + *, .path-grid > * + * { margin-top: 1rem; }
}
@media (max-width: 860px) {
  .sec-head, .about-grid, .ch-head { grid-template-columns: minmax(0, 1fr); }
  .ch-head .ch-lede { grid-column: 1; }
  .workbench { grid-template-columns: minmax(0, 1fr); }
  .wb-brand { margin-bottom: .8rem; }
  .logo-tile { width: 76px; height: 76px; border-radius: 22px; --ls-radius: 22px; }
  .logo-tile img { width: 52px; height: 52px; }
  .tabs { flex-direction: row; overflow-x: auto; gap: .45rem; padding: .3rem .1rem .6rem; margin: 0 calc(-1 * var(--pad-x)); padding-inline: var(--pad-x); scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding-inline: var(--pad-x); }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { width: auto; flex: none; padding: .6rem 1rem; border-radius: 999px; scroll-snap-align: start; box-shadow: inset 0 0 0 1px var(--line); }
  .tab .t { font-size: 1.15rem; white-space: nowrap; }
  .tab .s, .tab .go { display: none; }
  .tab--outside { margin-top: 0; margin-left: .5rem; }
  .tab--outside::before { left: -.5rem; right: auto; top: 20%; bottom: 20%; width: 1px; height: auto; }
  .wb-note { display: none; }
  .panel:not(.is-active) { display: none; }
  .panel.is-active { animation: panelIn .45s var(--ease-out); }
  .resume-block { grid-template-columns: minmax(0, 1fr); }
  .sheet-wrap { max-width: 360px; }
  .e-preview { display: none; }
}
@media (max-width: 560px) {
  .metrics b { font-size: 1.35rem; }
  .bar, .drop .bar { grid-template-columns: 1fr 3rem; }
  .bar .lbl { grid-column: 1 / -1; }
  .tl li { grid-template-columns: minmax(0, 1fr); gap: .15rem; }
  .frame-bar .url { margin-right: 0; }
  .resume-mini { grid-template-columns: 7rem minmax(0, 1fr); }
  .lg-box { --ls-radius: 24px; }
  .essay a { grid-template-columns: 2rem minmax(0, 1fr) auto; gap: .6rem; }
  .brain-echo { width: 130vw; right: -40vw; top: 2rem; opacity: .28; }
}

@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .sheet { transform: none; }
  .scrub .w { color: inherit !important; }
  .bar .fill { transition: none; }
  html.js .bars:not(.is-in) .fill { transform: none; }
  .e-preview { display: none; }
  .panel, .panel.is-active { transition: none; transform: none; }
  .pill, .tab { transition: box-shadow .2s ease; }
  a.pill:hover { transform: none; }
  .medium-cta .bar-c { animation: none; }
  * { scroll-behavior: auto !important; }
}

/* No italics outside the masthead */
em, i, cite { font-style: normal; }
.rec-block--skills { margin-top: clamp(1.75rem, 3vw, 2.5rem); }
