/* ================================================================
   SUKRITI SEHGAL · PORTFOLIO
   Near-white canvas, saffron and periwinkle glow, light display type.
   Hanken Grotesk + IBM Plex Mono (+ Tiro Devanagari for सुकृति).
   ================================================================ */

:root {
  --bg: #FAFAF8;
  --surface: #FFFFFF;
  --soft: #F5F5F2;
  --line: #ECECEA;
  --line-2: #E0E0DC;
  --ink: #1C1D22;
  --ink-2: #3D3D3D;
  --muted: #6B6B6B;
  --faint: #9A9A9A;

  --indigo: #23238F;
  --peri: #7286E6;
  --peri-2: #A9B6F2;
  --peri-soft: #EEF1FF;
  --saffron: #F08A3E;
  --saffron-soft: #FFF1E6;
  --rose: #D9608F;
  --leaf: #8CC35E;
  --leaf-ink: #3E7A1D;
  --navy: #1E2033;

  --g-rec: linear-gradient(135deg, #FFD3A8, #E8693A);
  --g-founder: linear-gradient(135deg, #C9D1FF, #7286E6);
  --g-exp: linear-gradient(135deg, #D7F0B0, #73B5C9);
  --g-edu: linear-gradient(135deg, #FFE0EC, #D9608F);

  --font: 'Hanken Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --dev: 'Tiro Devanagari Hindi', 'Noto Serif Devanagari', serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 68px;

  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

[hidden] {
  display: none !important;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
  font-weight: 400;
}

button {
  font: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

:focus-visible {
  outline: 2px solid var(--peri);
  outline-offset: 3px;
}

.mono {
  font-family: var(--mono);
}

.wrap {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

.lbl {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.text-link {
  color: var(--indigo);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(35, 35, 143, 0.25);
  text-underline-offset: 4px;
  transition: text-decoration-color 0.3s;
}

.text-link:hover {
  text-decoration-color: currentColor;
}

/* ---------------------------------------------------------------- Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), background-color 0.2s, border-color 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-sm {
  min-height: 40px;
  padding: 0 18px;
  font-size: 14px;
}

.btn-dark {
  background: linear-gradient(180deg, #3A3F5C, var(--navy));
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 8px 18px rgba(30, 32, 51, 0.18);
}

.btn-dark:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 14px 28px rgba(30, 32, 51, 0.24);
}

.btn-light {
  background: rgba(255, 255, 255, 0.92);
  border-color: var(--line-2);
  color: var(--ink);
}

.btn-light:hover {
  border-color: var(--peri);
}

.btn:disabled {
  opacity: 0.45;
  cursor: default;
  transform: none;
}

/* ---------------------------------------------------------------- Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 248, 0.72);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background-color 0.3s;
}

.site-header.is-scrolled {
  background: rgba(250, 250, 248, 0.86);
  border-bottom-color: var(--line);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  margin-right: auto;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 28px;
}

.site-nav a {
  position: relative;
  font-size: 15px;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.2s;
}

.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--peri);
  transform: scaleX(0);
  transition: transform 0.35s var(--ease-out);
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--ink);
}

.site-nav a.is-active::after {
  transform: scaleX(1);
}

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

/* ---------------------------------------------------------------- Shared section pieces */

.section {
  padding-top: 120px;
}

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-head h2,
.statement h2 {
  font-size: clamp(34px, 4.2vw, 52px);
  font-weight: 350;
  letter-spacing: -0.04em;
  line-height: 1.06;
}

.section-lead {
  font-size: 17.5px;
  color: var(--ink-2);
}

.sec-orn {
  width: 220px;
}

.sec-orn-wide {
  width: 250px;
}

.sec-orn svg,
.hero-orn svg {
  display: block;
  width: 100%;
  height: auto;
}


/* Eyebrow with fading hairlines above and below */
.eyebrow-lines {
  position: relative;
  display: inline-block;
  padding: 9px 26px;
  font-size: 15px;
  color: var(--indigo);
}

.eyebrow-lines::before,
.eyebrow-lines::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #6F82E6, transparent);
}

.eyebrow-lines::before {
  top: 0;
}

.eyebrow-lines::after {
  bottom: 0;
}

/* ---------------------------------------------------------------- Hero */

.hero {
  position: relative;
  margin-top: calc(var(--header-h) * -1);
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: 64px;
  overflow: hidden;
  isolation: isolate;
}

.hero-glow {
  position: absolute;
  z-index: -1;
  inset: -60px 0 auto 0;
  height: 720px;
  pointer-events: none;
  background:
    radial-gradient(30% 34% at 50% 22%, rgba(248, 165, 105, 0.72) 0%, rgba(248, 170, 115, 0.42) 42%, rgba(248, 170, 115, 0) 74%),
    radial-gradient(44% 30% at 50% 0%, rgba(250, 185, 140, 0.45) 0%, rgba(250, 185, 140, 0) 70%),
    radial-gradient(32% 58% at 4% 10%, rgba(140, 160, 250, 0.85) 0%, rgba(140, 160, 250, 0) 70%),
    radial-gradient(32% 58% at 96% 10%, rgba(140, 160, 250, 0.85) 0%, rgba(140, 160, 250, 0) 70%),
    radial-gradient(70% 70% at 50% 34%, rgba(200, 210, 255, 0.55) 0%, rgba(200, 210, 255, 0) 70%);
  animation: glow 16s ease-in-out infinite alternate;
  will-change: transform;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.hero-orn {
  width: min(350px, 84vw);
  margin-bottom: -4px;
}

.hero h1 {
  margin-top: 4px;
  font-size: clamp(54px, 8.4vw, 104px);
  font-weight: 350;
  line-height: 1;
  letter-spacing: -0.05em;
}

.hero-lead {
  max-width: 660px;
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.55;
  color: var(--ink-2);
}

.me-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 20px 6px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  color: var(--ink-2);
}

.me-pill img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 30%;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 4px;
}

/* ---------------------------------------------------------------- Tools ticker */

.tools {
  padding: 36px 0 0;
  text-align: center;
}

.tools-label {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.ticker {
  display: flex;
  margin-top: 18px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.ticker-track {
  flex: none;
  display: flex;
  align-items: center;
  gap: 40px;
  margin: 0;
  padding: 0 20px;
  list-style: none;
  animation: ticker 70s linear infinite;
}

.ticker-track li {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #A2A2A6;
  white-space: nowrap;
}

.ticker-track .cert {
  color: var(--peri);
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

/* ---------------------------------------------------------------- Ask my agents */

.show {
  padding: 10px;
  border-radius: 26px;
  background: linear-gradient(180deg, #C9D1FF, #E9ECFF 40%, #F4F5FF);
  box-shadow: 0 30px 70px rgba(75, 95, 208, 0.12);
}

.show-in {
  overflow: hidden;
  border: 1px solid #E7E8F2;
  border-radius: 18px;
  background: var(--surface);
}

.panel {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr) 310px;
  min-height: 520px;
}

.panel:not([hidden]) {
  animation: panel-in 0.5s var(--ease-out);
}

.col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  min-width: 0;
}

.col + .col {
  border-left: 1px solid #F0F0EE;
}

.col-mid {
  position: relative;
  align-items: center;
  justify-content: center;
  background-color: #FBFBFD;
  background-image: radial-gradient(circle, rgba(28, 29, 34, 0.11) 1px, transparent 1.2px);
  background-size: 14px 14px;
}

/* Links on one line, each with an arrow */
.links-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}

.links-line a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--indigo);
  text-decoration: none;
}

.links-line a::after {
  content: '→';
  color: var(--peri);
  transition: transform 0.3s var(--ease-out);
}

.links-line a:hover::after {
  transform: translateX(3px);
}

/* ---- Ask my agents tab */

/* One centred column until a question is asked, then the answer opens on the right */
.panel-ask {
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
}

.panel-ask .col-mid {
  gap: 16px;
  padding: 36px 32px;
}

.panel-ask .col-mid > * {
  max-width: 560px;
}

.panel-ask .col-right {
  display: none;
}

.panel-ask.has-answer {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}

.panel-ask.has-answer .col-right {
  display: flex;
  padding: 32px 30px;
  animation: rise-up 0.6s var(--ease-out) both;
}

.net-status {
  margin-top: -8px;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.net.is-busy + .net-status {
  color: #B5531A;
}

/* Orchestrator network */
.net {
  width: 100%;
  max-width: 360px;
  height: auto;
  overflow: visible;
}

.net-spoke {
  stroke: #C9D1F5;
  stroke-width: 1.5;
  transition: stroke 0.4s;
}

.net-spoke.is-working {
  stroke: var(--saffron);
  stroke-dasharray: 4 7;
  animation: flow 1.1s linear infinite;
}

.net-spoke.is-done {
  stroke: var(--leaf);
}

.net-spoke.is-empty {
  stroke: #E4E4E8;
}

.nc-ring {
  fill: none;
  stroke: rgba(114, 134, 230, 0.35);
  stroke-width: 1.5;
  transform-box: fill-box;
  transform-origin: center;
}

.net.is-busy .nc-ring {
  animation: ring 1.8s ease-out infinite;
}

.net-center text {
  fill: #fff;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
}

.nn-halo {
  fill: rgba(114, 134, 230, 0.12);
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
  transition: transform 0.4s var(--ease-out), fill 0.3s;
}

.nn-ring {
  fill: #fff;
  stroke: #C9D1FF;
  stroke-width: 1.5;
}

.nn-dot {
  fill: var(--peri-2);
  transition: fill 0.3s;
}

.net-node text {
  fill: var(--muted);
  font-family: var(--font);
  font-size: 12.5px;
}

.net-node.is-working .nn-halo {
  fill: rgba(240, 138, 62, 0.18);
  transform: scale(1);
  animation: breathe 1.2s ease-in-out infinite;
}

.net-node.is-working .nn-dot {
  fill: var(--saffron);
}

.net-node.is-done .nn-dot {
  fill: var(--leaf);
}

.net-node.is-done .nn-halo {
  fill: rgba(140, 195, 94, 0.18);
  transform: scale(1);
}

.net-node.is-empty {
  opacity: 0.45;
}

.ask-form {
  display: flex;
  gap: 8px;
  width: 100%;
  margin-top: 6px;
}

.ask-form input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ask-form input:focus {
  outline: none;
  border-color: var(--peri);
  box-shadow: 0 0 0 4px rgba(114, 134, 230, 0.15);
}

.ask-form .btn {
  min-height: 48px;
}

.suggestions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.suggestion {
  padding: 7px 13px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}

.suggestion:hover {
  border-color: var(--peri);
  background: var(--peri-soft);
  color: var(--indigo);
}

.suggestion:disabled {
  opacity: 0.5;
  cursor: default;
}

.conversation {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 300px;
}

.q-bubble {
  align-self: flex-end;
  max-width: 92%;
  padding: 10px 14px;
  border-radius: 16px 16px 4px 16px;
  background: linear-gradient(180deg, #3A3F5C, var(--navy));
  color: #fff;
  font-size: 14px;
  animation: rise 0.35s var(--ease-out) both;
}

.a-bubble {
  padding: 14px 16px;
  border: 1px solid #DDE3FF;
  border-radius: 16px 16px 16px 4px;
  background: #F6F7FF;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-2);
  animation: rise 0.35s var(--ease-out) both;
}

.a-bubble p + p,
.a-bubble p + ul,
.a-bubble ul + p,
.a-bubble ul + ul {
  margin-top: 8px;
}

.a-bubble ul {
  margin: 0;
  padding-left: 18px;
}

.a-bubble li + li {
  margin-top: 3px;
}

.a-bubble b {
  font-weight: 600;
  color: var(--ink);
}

.a-bubble.is-streaming::after {
  content: '';
  display: inline-block;
  width: 7px;
  height: 14px;
  margin-left: 3px;
  vertical-align: -2px;
  border-radius: 2px;
  background: var(--peri);
  animation: blink 1s steps(1) infinite;
}

.a-thinking {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.a-thinking::before {
  content: '';
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0%, #A9B6F2 35%, #4B5FD0 100%);
  box-shadow: 0 0 12px rgba(75, 95, 208, 0.45);
  animation: breathe 1.2s ease-in-out infinite;
}

.a-more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  animation: rise 0.5s var(--ease-out) both;
}

.a-more .mono {
  margin-right: 2px;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.a-more a,
.a-more button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #fff;
  color: var(--indigo);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.3s, background-color 0.3s;
}

.a-more a:hover,
.a-more button:hover {
  border-color: var(--peri);
  background: var(--peri-soft);
}

.a-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

/* ---- Voice agents: Project Uzima calls six hospitals */

.fan {
  position: relative;
  width: 100%;
  max-width: 470px;
  aspect-ratio: 520 / 400;
}

.fan-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.fan-line {
  fill: none;
  stroke: #E2E2E8;
  stroke-width: 1.6;
  transition: stroke 0.4s;
}

.fan-line.is-calling {
  stroke: var(--saffron);
  stroke-dasharray: 4 7;
  animation: flow 1.1s linear infinite;
}

.fan-line.is-yes {
  stroke: var(--leaf);
}

.fan-line.is-best {
  stroke: var(--leaf);
  stroke-width: 2.6;
}

.hosp {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px 7px 12px;
  border: 1px solid #E7E8F2;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(28, 29, 34, 0.06);
  font-size: 12.5px;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.hosp.is-best {
  border-color: var(--leaf);
  box-shadow: 0 0 0 3px rgba(140, 195, 94, 0.2), 0 6px 16px rgba(28, 29, 34, 0.06);
}

.hs {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  font-style: normal;
}

.hs em {
  font-style: normal;
}

.hs .wave {
  display: none;
}

.hosp.is-calling .hs {
  background: var(--saffron-soft);
  color: #B5531A;
}

.hosp.is-calling .wave {
  display: inline-flex;
}

.hosp.is-yes .hs {
  background: #E8F6DD;
  color: var(--leaf-ink);
}

.wave {
  align-items: center;
  gap: 2px;
  height: 12px;
}

.wave b {
  display: block;
  width: 2px;
  height: 4px;
  border-radius: 2px;
  background: #E8693A;
  animation: bar 0.9s ease-in-out infinite;
}

.wave b:nth-child(2) { animation-delay: -0.2s; }
.wave b:nth-child(3) { animation-delay: -0.4s; }
.wave b:nth-child(4) { animation-delay: -0.6s; }

.fan-hub {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 104px;
  height: 104px;
  margin: -52px 0 0 -52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 34%),
    radial-gradient(circle at 30% 80%, rgba(217, 96, 143, 0.7), rgba(217, 96, 143, 0) 55%),
    radial-gradient(circle, #FFD3A8 0%, #F59A54 60%, #E8693A 100%);
  box-shadow: 0 18px 40px rgba(232, 105, 58, 0.3);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

.fan-hub::before,
.fan-hub::after {
  content: '';
  position: absolute;
  inset: -12px;
  border: 1.5px solid rgba(232, 105, 58, 0.35);
  border-radius: 50%;
  animation: ring 2.4s ease-out infinite;
}

.fan-hub::after {
  animation-delay: 1.2s;
}

.stage-cap {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.replay {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 5px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #fff;
  font-size: 12.5px;
  color: var(--ink-2);
  cursor: pointer;
}

.replay:hover {
  border-color: var(--peri);
  color: var(--indigo);
}

.bub {
  max-width: 92%;
  padding: 10px 13px;
  border: 1px solid #DDE3FF;
  border-radius: 14px 14px 14px 4px;
  background: var(--peri-soft);
  color: var(--indigo);
  font-size: 13.5px;
  line-height: 1.45;
  animation: rise 0.4s var(--ease-out) both;
}

.bub.r {
  align-self: flex-end;
  border-color: #FBD9BF;
  border-radius: 14px 14px 4px 14px;
  background: var(--saffron-soft);
  color: #8A3B0E;
}

.bub.sys {
  align-self: stretch;
  max-width: none;
  margin-top: 10px;
  border-color: #CFE8BC;
  border-radius: 12px;
  background: #F2FAEB;
  color: var(--leaf-ink);
}

/* ---- Shared visualization frame */

.viz {
  position: relative;
  width: 100%;
  max-width: 460px;
}

.viz svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

/* Research graph */
.query {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 10px;
  padding: 9px 16px;
  border: 1px solid #E7E8F2;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(28, 29, 34, 0.05);
  font-size: 14px;
  text-align: center;
}

.query .mono {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.ge {
  stroke: #C3CBF2;
  stroke-width: 1.3;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.ge-c {
  stroke: var(--rose);
  stroke-width: 1.8;
}

.gn {
  fill: #C9D1FF;
  transform-box: fill-box;
  transform-origin: center;
}

.gn.n0 {
  fill: var(--peri);
}

.gn.n1 {
  fill: var(--peri-2);
}

.conflict rect {
  fill: #FFF0F5;
  stroke: #F3B6CD;
}

.conflict text {
  fill: #B23B6B;
  font-family: var(--mono);
  font-size: 11.5px;
}

.graph-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 16px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}

.graph-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.graph-legend i {
  width: 16px;
  height: 2px;
  border-radius: 2px;
}

.lg-s { background: #C3CBF2; }
.lg-c { background: var(--rose); }
.lg-n { width: 9px !important; height: 9px !important; border-radius: 50% !important; background: var(--peri-2); }

.slide.is-live .gn {
  animation: pop 0.6s var(--ease-out) both;
  animation-delay: calc(var(--i) * 110ms);
}

.slide.is-live .ge {
  animation: draw 0.9s var(--ease-out) both;
  animation-delay: calc(var(--i) * 90ms + 250ms);
}

.slide.is-live .ge-c {
  animation: draw 0.9s var(--ease-out) both 1s, glowline 1.6s ease-in-out 2s infinite;
}

.slide.is-live .conflict {
  animation: fadein 0.5s var(--ease-out) both 1.6s;
}

/* Shelf detection */
.prod {
  opacity: 0.85;
}

.det rect {
  fill: none;
  stroke: var(--peri);
  stroke-width: 1.6;
}

.det text {
  fill: var(--peri);
  font-family: var(--mono);
  font-size: 8px;
}

.gap-box {
  fill: #FFF0F5;
  stroke: var(--rose);
  stroke-width: 1.8;
  stroke-dasharray: 5 4;
}

.gap-tag {
  fill: var(--rose);
}

.gap text {
  fill: #fff;
  font-family: var(--mono);
  font-size: 11px;
}

.scan {
  fill: var(--peri);
  opacity: 0.7;
  animation: scan 3.2s ease-in-out infinite alternate;
}

.slide.is-live .det {
  animation: fadein 0.4s var(--ease-out) both;
  animation-delay: calc(var(--i) * 120ms + 300ms);
}

.slide.is-live .gap {
  animation: fadein 0.5s var(--ease-out) both 1.4s, alert 1.6s ease-in-out 2s infinite;
}

/* Clinical document */
.viz-doc {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.doc {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(380px, 92%);
  padding: 20px 22px;
  border: 1px solid #E7E8F2;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(28, 29, 34, 0.07);
}

.doc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.doc-head .mono {
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.role {
  padding: 2px 9px;
  border-radius: 999px;
  background: #FFF0F5;
  color: #B23B6B;
  font-size: 11.5px;
}

.ln {
  display: block;
  width: var(--w);
  height: 8px;
  border-radius: 4px;
  background: #EDEDF2;
}

.ln.hl {
  background: linear-gradient(90deg, #F8C9DB, #F8C9DB) no-repeat 0 0 / 0% 100%, #EDEDF2;
}

.slide.is-live .ln.hl {
  animation: highlight 0.8s var(--ease-out) both;
  animation-delay: calc(var(--i) * 350ms + 300ms);
}

.sum {
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: min(330px, 86%);
  margin-top: -18px;
  margin-left: 22%;
  padding: 16px 18px;
  border: 1px solid #F3B6CD;
  border-radius: 16px;
  background: linear-gradient(180deg, #FFF7FA, #fff);
  box-shadow: 0 18px 40px rgba(217, 96, 143, 0.14);
}

.sum .mono {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #B23B6B;
}

.sum .ln {
  background: #F4DCE6;
}

.src {
  align-self: flex-start;
  padding: 2px 9px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #F3B6CD;
  font-family: var(--mono);
  font-size: 10.5px;
  color: #B23B6B;
}

.slide.is-live .sum {
  animation: rise-up 0.7s var(--ease-out) both 1.6s;
}

/* ---------------------------------------------------------------- Statement with floating glyphs */

.statement {
  position: relative;
  margin-top: 120px;
  padding: 120px 0;
  overflow: hidden;
  isolation: isolate;
}

.statement::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(38% 60% at 18% 50%, rgba(140, 160, 250, 0.45), rgba(140, 160, 250, 0) 72%),
    radial-gradient(34% 56% at 82% 46%, rgba(248, 170, 115, 0.4), rgba(248, 170, 115, 0) 72%),
    radial-gradient(40% 50% at 50% 70%, rgba(190, 170, 245, 0.32), rgba(190, 170, 245, 0) 75%);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
}


.statement-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 760px;
  text-align: center;
}

.statement-inner > p:last-child {
  max-width: 620px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-2);
}

.dev {
  font-family: var(--dev);
  font-size: 1.15em;
}

/* ---------------------------------------------------------------- Journey */

.sq-rec { background: var(--g-rec); }
.sq-founder { background: var(--g-founder); }
.sq-exp { background: var(--g-exp); }
.sq-edu { background: var(--g-edu); }

.years {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
}

.year {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}

.yr {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 24px 26px;
  border-right: 1px solid #F0F0EE;
  background: linear-gradient(180deg, #FBFBFD, #fff);
}

.yr b {
  font-size: 60px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.05em;
}

.yr .to {
  font-size: 15px;
  color: var(--muted);
}

.rows {
  display: flex;
  flex-direction: column;
}

.jrow {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 16px 24px;
  border: 0;
  border-bottom: 1px solid #F3F3F1;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.25s;
}

.jrow:last-child {
  border-bottom: 0;
}

.jrow:hover {
  background: #FAFAFC;
}

.sq {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: transform 0.4s var(--ease-out);
}

.jrow:hover .sq {
  transform: rotate(-4deg) scale(1.05);
}

.jt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.jt b {
  font-size: 16.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.jt span {
  font-size: 14px;
  color: var(--muted);
}

.jd {
  font-size: 12px;
  color: var(--faint);
  white-space: nowrap;
}

.go {
  font-size: 20px;
  color: #BDBDBD;
  transition: transform 0.3s var(--ease-out), color 0.3s;
}

.jrow:hover .go {
  transform: translateX(3px);
  color: var(--peri);
}

/* ---------------------------------------------------------------- Projects carousel */

.carousel {
  position: relative;
  max-width: 1080px;
  margin-inline: auto;
}

.car-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.car-btn {
  flex: none;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.25s, background-color 0.25s, transform 0.3s var(--ease-out), opacity 0.25s;
}

.car-btn:hover:not(:disabled) {
  border-color: var(--peri);
  background: var(--peri-soft);
  color: var(--indigo);
}

.car-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.car-pills {
  position: relative;
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.car-pills::-webkit-scrollbar {
  display: none;
}

.car-pill {
  flex: none;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.car-pill:hover {
  color: var(--ink);
}

.car-pill[aria-current="true"] {
  border-color: #DDE3FF;
  background: var(--peri-soft);
  color: var(--indigo);
  font-weight: 500;
}

.car-track {
  position: relative;
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  border-radius: 26px;
}

.car-track::-webkit-scrollbar {
  display: none;
}

.car-track:focus-visible {
  outline-offset: 6px;
}

.slide {
  --tint-a: #FFF4EA;
  --tint-b: #FFE4CF;
  --tint-ink: #B5531A;
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  min-height: 400px;
  overflow: hidden;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
}

.tint-peri { --tint-a: #F2F4FF; --tint-b: #DFE5FF; --tint-ink: var(--indigo); }
.tint-violet { --tint-a: #F4F1FF; --tint-b: #E3DCFF; --tint-ink: #5A45B8; }
.tint-leaf { --tint-a: #F3FAEC; --tint-b: #DFF0CC; --tint-ink: var(--leaf-ink); }
.tint-rose { --tint-a: #FFF3F7; --tint-b: #FBDDE8; --tint-ink: #B23B6B; }
.tint-teal { --tint-a: #EEF8F8; --tint-b: #D3EEEE; --tint-ink: #23707A; }

.slide-viz {
  position: relative;
  display: grid;
  place-items: center;
  padding: 36px 24px;
  overflow: hidden;
  background-color: var(--tint-a);
  background-image:
    radial-gradient(circle, rgba(28, 29, 34, 0.1) 1px, transparent 1.2px),
    radial-gradient(80% 70% at 50% 40%, var(--tint-b), transparent 75%);
  background-size: 14px 14px, 100% 100%;
}

.layer-live,
.layer-shot {
  grid-area: 1 / 1;
  width: 100%;
  display: grid;
  place-items: center;
  transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out);
}

.layer-shot {
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  pointer-events: none;
}

.layer-shot img {
  width: min(500px, 100%);
  max-height: 290px;
  object-fit: cover;
  border: 5px solid #fff;
  border-radius: 16px;
  box-shadow: 0 24px 50px rgba(28, 29, 34, 0.18);
}

.slide-viz[data-view="shot"] .layer-shot {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.slide-viz[data-view="shot"] .layer-live {
  opacity: 0;
  transform: scale(0.97);
}

.view-toggle {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  padding: 3px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
}

.view-toggle button {
  padding: 5px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s;
}

.view-toggle button[aria-pressed="true"] {
  background: var(--navy);
  color: #fff;
}

.slide-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 13px;
  padding: 32px 30px;
}

.kchip {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--tint-a);
  border: 1px solid var(--tint-b);
  color: var(--tint-ink);
  font-size: 13px;
  font-weight: 500;
}

.slide-info h3 {
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 350;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.facts {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.facts div {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  align-items: baseline;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid #EDEDEB;
}

.facts div:last-child {
  border-bottom: 1px solid #EDEDEB;
}

.facts dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.facts dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
}

.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stack li {
  padding: 3px 11px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #fff;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-2);
}

.links-note {
  font-size: 14px;
  color: var(--muted);
}

.car-count {
  margin-top: 14px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.more-gh {
  margin-top: 28px;
  text-align: center;
  font-size: 16px;
  color: var(--indigo);
}

/* Oriva: a bilingual patient call that becomes a note for the front desk */
.viz-call {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.call {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(400px, 100%);
  padding: 18px;
  border: 1px solid #F3D6E1;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(217, 96, 143, 0.1);
}

.call-head,
.hud-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.call-head .mono,
.hud-top .mono {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.call-head .wave {
  display: inline-flex;
  margin-left: auto;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #E5484D;
  box-shadow: 0 0 0 4px rgba(229, 72, 77, 0.15);
  animation: pulse 1.6s ease-in-out infinite;
}

.call .bub {
  max-width: 86%;
}

.triage {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: min(320px, 90%);
  margin-top: -10px;
  margin-left: 30%;
  padding: 14px 16px;
  border: 1px solid #CFE8BC;
  border-radius: 16px;
  background: #F4FAEE;
  box-shadow: 0 16px 34px rgba(62, 122, 29, 0.12);
}

.triage .mono {
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--leaf-ink);
}

.triage b {
  font-size: 17px;
  font-weight: 500;
  color: var(--leaf-ink);
}

.triage span:last-child {
  font-size: 13.5px;
  color: var(--ink-2);
}

.slide.is-live .call .bub,
.slide.is-live .triage {
  animation: rise 0.5s var(--ease-out) both;
  animation-delay: calc(var(--i) * 700ms + 300ms);
}

/* InterViewAR: a heads-up display for the recruiter */
.hud {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(380px, 100%);
  padding: 22px;
  border: 1px solid #E3DCFF;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 40px rgba(90, 69, 184, 0.12);
}

.hud-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.hud-row b {
  font-weight: 500;
}

.hudbar {
  height: 8px;
  margin-bottom: 4px;
  overflow: hidden;
  border-radius: 99px;
  background: #EEF0F6;
}

.hudbar b {
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: 99px;
}

.hudbar .peri { background: linear-gradient(90deg, #B4C0FF, var(--peri)); }
.hudbar .saff { background: linear-gradient(90deg, #FFD3A8, #E8693A); }

.cue {
  margin-top: 4px;
  padding: 11px 13px;
  border-radius: 12px;
  background: var(--saffron-soft);
  color: #8A3B0E;
  font-size: 14px;
}

.cue b {
  font-weight: 600;
}

.slide.is-live .hudbar b {
  animation: grow 1.2s var(--ease-out) both 0.3s;
}

.slide.is-live .cue {
  animation: rise 0.5s var(--ease-out) both 1.3s;
}

/* Yoodle: a video call with an AI sidekick taking notes */
.viz-meet {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.meet {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 12px;
  width: min(520px, 100%);
  padding: 12px;
  border-radius: 20px;
  background: #1E2033;
  box-shadow: 0 24px 50px rgba(30, 32, 51, 0.25);
}

.vtiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.vtile {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  background: #2C2F45;
}

.vtile.speaking {
  box-shadow: inset 0 0 0 2px #8CD3D6;
}

.vtile .wave {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: inline-flex;
}

.vtile .wave b {
  background: #8CD3D6;
}

.av {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
}

.av.g1 { background: linear-gradient(135deg, #FFD3A8, #E8693A); }
.av.g2 { background: linear-gradient(135deg, #C9D1FF, #7286E6); }
.av.g3 { background: linear-gradient(135deg, #D7F0B0, #73B5C9); }
.av.g4 { background: linear-gradient(135deg, #FFE0EC, #D9608F); }

.sidekick {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: #fff;
}

.sidekick .mono {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #23707A;
}

.sk {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sk i {
  font-style: normal;
  font-size: 12.5px;
  font-weight: 500;
}

.sk .ln {
  height: 6px;
  background: #E3F1F1;
}

.ghost {
  padding: 5px 12px;
  border: 1px dashed #9CCFD2;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: #23707A;
  font-size: 12.5px;
}

.slide.is-live .sk {
  animation: rise 0.5s var(--ease-out) both;
  animation-delay: calc(var(--i) * 500ms + 400ms);
}

/* ---------------------------------------------------------------- Gradient fields (drawn by gradient-field.js) */

.field-canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.statement .field-canvas {
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
}

.statement.has-field::before {
  display: none;
}

.cta-star {
  order: 1;
  flex: none;
  width: 48px;
  height: 48px;
  fill: var(--indigo);
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.95));
  pointer-events: none;
}

/* ---------------------------------------------------------------- Closing panel */

.cta-sec {
  padding-top: 120px;
}

.cta {
  position: relative;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 64px 24px 56px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  color: var(--ink);
  text-align: center;
  isolation: isolate;
  /* shown until the pixel field is drawn (and if scripts are off) */
  background:
    radial-gradient(40% 70% at 24% 42%, rgba(140, 160, 250, 0.6), transparent 72%),
    radial-gradient(36% 64% at 74% 38%, rgba(248, 158, 98, 0.55), transparent 72%),
    radial-gradient(40% 60% at 52% 80%, rgba(176, 150, 240, 0.5), transparent 72%),
    var(--bg);
}

.cta-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cta-copy h2 {
  font-size: clamp(32px, 4.4vw, 54px);
  font-weight: 350;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.cta-copy p {
  font-size: 16.5px;
  color: var(--ink-2);
}

.cta-actions {
  order: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.cta-actions .btn {
  min-width: 128px;
}

/* the header Résumé button covers this on wide screens; on phones it lives in the menu */
.nav-resume {
  display: none;
}

/* ---------------------------------------------------------------- Footer + wordmark */

.site-footer {
  padding-top: 88px;
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-brand b {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.footer-brand span {
  color: var(--muted);
}

.footer-brand a {
  font-size: 13.5px;
  color: var(--ink-2);
  text-decoration: none;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col .lbl {
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 15px;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col a:hover,
.footer-brand a:hover,
.footer-bottom a:hover {
  color: var(--indigo);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

.footer-bottom a {
  color: var(--ink-2);
  text-decoration: none;
}

.wordmark {
  position: relative;
  display: block;
  height: 1em;
  margin-top: 24px;
  overflow: hidden;
  font-size: min(31vw, 470px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.065em;
  text-align: center;
  text-decoration: none;
  user-select: none;
}

.wm-layer {
  display: block;
  padding-left: 0.04em;
  color: var(--navy);
  background-position: 0 50%;
  background-repeat: repeat-x;
  background-size: auto 100%;
  transition: transform 1.4s var(--ease-out);
}

.js .wordmark .wm-layer {
  transform: translateY(40%);
}

.js .wordmark.is-in .wm-layer {
  transform: none;
}

/* Photos load only once the footer is in view */
.js .wordmark.is-in .wm-layer {
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

.js .wordmark.is-in .wm-layer {
  background-image: url("images/wordmark-color.jpg");
}

.wordmark.is-panning .wm-layer {
  animation: pan var(--pan-dur, 50s) linear infinite;
}

/* ---------------------------------------------------------------- Journey details pop-up */

.exp-dialog {
  width: min(640px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 40px 90px rgba(28, 29, 34, 0.25);
}

.exp-dialog::backdrop {
  background: rgba(30, 32, 51, 0.45);
  backdrop-filter: blur(3px);
}

.exp-dialog[open] {
  animation: pop 0.4s var(--ease-out);
}

.exp-dialog[open]::backdrop {
  animation: fadein 0.3s ease;
}

html:has(.exp-dialog[open]) {
  overflow: hidden;
}

.exp-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 30px;
}

.exp-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.exp-close:hover {
  border-color: var(--peri);
  color: var(--indigo);
}

.exp-kind {
  align-self: flex-start;
  padding: 4px 11px;
  border-radius: 999px;
  background: #EAF5DF;
  color: var(--leaf-ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.exp-kind[data-kind="rec"] {
  background: var(--saffron-soft);
  color: #8A3B0E;
}

.exp-kind[data-kind="founder"] {
  background: var(--peri-soft);
  color: var(--indigo);
}

.exp-kind[data-kind="edu"] {
  background: #FFF0F5;
  color: #B23B6B;
}

.exp-inner h3 {
  padding-right: 48px;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.exp-meta {
  font-size: 12.5px;
  color: var(--muted);
}

.exp-summary {
  font-size: 16px;
  color: var(--ink-2);
}

.exp-bullets {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 15px;
  color: var(--ink-2);
}

.exp-tags {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.exp-tags li {
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--soft);
  font-size: 12.5px;
  color: var(--ink-2);
}

.exp-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.exp-links:empty,
.exp-tags:empty,
.exp-bullets:empty,
.exp-roles:empty {
  display: none;
}

/* Several positions inside one entry: a small timeline, newest first */
.exp-roles {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 4px;
}

.exp-role {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 24px;
}

.exp-role::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  bottom: -20px;
  width: 1px;
  background: var(--line);
}

.exp-role:last-child::before {
  bottom: 0;
}

.exp-role::after {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--peri);
  box-shadow: 0 0 0 3px var(--peri-soft);
}

.exp-role + .exp-role::after {
  background: var(--surface);
  border: 1.5px solid var(--peri);
  box-shadow: none;
}

.exp-role-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px 12px;
}

.exp-role-head h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.exp-role-head .mono,
.exp-role-meta {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.exp-role .exp-bullets {
  font-size: 14.5px;
}

.exp-sub {
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.exp-sub[hidden] {
  display: none;
}

.exp-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.exp-nav .mono {
  font-size: 12px;
  color: var(--muted);
}

/* ---------------------------------------------------------------- Cursor ring */

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 300;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border: 1.5px solid var(--peri);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  will-change: transform;
  transition: width 0.25s var(--ease), height 0.25s var(--ease), margin 0.25s var(--ease), opacity 0.3s, background-color 0.25s, border-color 0.25s;
}

.cursor-ring.is-visible {
  opacity: 0.6;
}

.cursor-ring.is-hover {
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  background: rgba(114, 134, 230, 0.08);
  opacity: 0.85;
}

.cursor-ring.is-down {
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
}

.cursor-ring.on-dark {
  border-color: #C9D1FF;
}

.cursor-ring.on-dark.is-hover {
  background: rgba(201, 209, 255, 0.12);
}

html:has(.exp-dialog[open]) .cursor-ring {
  opacity: 0;
}

@media (hover: none), (pointer: coarse) {
  .cursor-ring {
    display: none;
  }
}

/* ---------------------------------------------------------------- Motion */

@keyframes glow {
  to { transform: translateY(-16px) scale(1.04); }
}

@keyframes ticker {
  to { transform: translateX(-100%); }
}

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

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

@keyframes rise-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

@keyframes fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pop {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

@keyframes pulse {
  50% { opacity: 0.6; }
}

@keyframes blink {
  50% { opacity: 0; }
}

@keyframes breathe {
  50% { transform: scale(1.06); }
}

@keyframes ring {
  from { transform: scale(0.9); opacity: 1; }
  to { transform: scale(1.5); opacity: 0; }
}

@keyframes flow {
  to { stroke-dashoffset: -22; }
}

@keyframes bar {
  0%, 100% { height: 4px; }
  50% { height: 12px; }
}

@keyframes draw {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

@keyframes glowline {
  50% { stroke-width: 3; }
}

@keyframes scan {
  from { transform: translateY(0); }
  to { transform: translateY(262px); }
}

@keyframes alert {
  50% { opacity: 0.55; }
}

@keyframes grow {
  from { width: 0; }
}

@keyframes highlight {
  to { background-size: 100% 100%, auto; }
}

@keyframes float {
  to { transform: translateY(-16px); }
}

@keyframes pan {
  from { background-position: 0 50%; }
  to { background-position: calc(var(--strip-w, 4000px) * -1) 50%; }
}

/* Smooth scrolling (Lenis adds these classes to <html> when it is running) */
html.lenis,
html.lenis body {
  height: auto;
}

html.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-stopped {
  overflow: clip;
}

.lenis [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

/* Reveal on scroll (only when JS is running, so content is never hidden without it) */
.js .reveal {
  opacity: 0;
  translate: 0 28px;
  transition: opacity 1s var(--ease-out) var(--d, 0ms), translate 1.2s var(--ease-out) var(--d, 0ms);
}

.js .reveal.is-in {
  opacity: 1;
  translate: 0 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .ticker {
    overflow-x: auto;
  }

  .ticker-track {
    animation: none;
  }

  .ticker-track[aria-hidden="true"] {
    display: none;
  }

  .scan {
    display: none;
  }
}

/* ---------------------------------------------------------------- Responsive */

@media (max-width: 1100px) {
  .panel {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .panel .col-right {
    grid-column: 1 / -1;
    border-left: 0;
    border-top: 1px solid #F0F0EE;
  }

  .slide {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px clamp(16px, 4vw, 32px) 16px;
    background: rgba(250, 250, 248, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(28, 29, 34, 0.08);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0.25s;
  }

  .site-nav.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .site-nav a {
    padding: 12px 0;
    font-size: 17px;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a::after {
    display: none;
  }

  .site-nav .nav-resume {
    display: block;
    border-bottom: 0;
    color: var(--indigo);
    font-weight: 500;
  }

  .menu-btn {
    display: inline-flex;
  }

  .slide {
    grid-template-columns: 1fr;
  }

  .slide-viz {
    min-height: 360px;
  }

  .slide-info {
    padding: 26px 22px 28px;
  }

  .car-pills {
    justify-content: flex-start;
  }

  .panel,
  .panel-ask.has-answer {
    grid-template-columns: 1fr;
  }

  .panel .col + .col {
    border-left: 0;
    border-top: 1px solid #F0F0EE;
  }

  .panel .col-mid {
    order: -1;
    min-height: 320px;
  }

  .year {
    grid-template-columns: 1fr;
  }

  .yr {
    flex-direction: row;
    align-items: baseline;
    gap: 12px;
    padding: 18px 20px 12px;
    border-right: 0;
    border-bottom: 1px solid #F0F0EE;
  }

  .yr b {
    font-size: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .section {
    padding-top: 96px;
  }

  .header-resume {
    display: none;
  }

  .hero {
    padding-top: calc(var(--header-h) + 28px);
  }

  .me-pill {
    font-size: 15px;
  }

  .car-btn {
    width: 40px;
    height: 40px;
  }

  .slide-viz {
    padding: 52px 14px 40px;
  }

  .triage {
    margin-left: 12%;
  }

  .meet {
    grid-template-columns: 1fr;
  }

  .col {
    padding: 18px;
  }

  .hosp {
    font-size: 11px;
    padding: 5px 8px;
    gap: 5px;
  }

  /* Phones: the agent sits on top and the six hospitals form a grid below it */
  .fan {
    aspect-ratio: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding-top: 124px;
  }

  .fan-lines {
    display: none;
  }

  .fan-hub {
    top: 52px;
  }

  .hosp,
  .hosp.l,
  .hosp.r {
    position: static;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 8px 10px;
    border-radius: 14px;
    transform: none;
  }

  .hosp .hn {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hs {
    font-size: 10px;
    padding: 1px 6px;
  }

  .fan-hub {
    width: 76px;
    height: 76px;
    margin: -38px 0 0 -38px;
    font-size: 11px;
  }

  .jrow {
    grid-template-columns: 40px minmax(0, 1fr) 14px;
    gap: 12px;
    padding: 14px 16px;
  }

  .jrow .jd {
    display: none;
  }

  .sq {
    width: 40px;
    height: 40px;
  }

  .cta {
    min-height: 0;
    gap: 28px;
    padding: 48px 18px 28px;
  }

  /* email and booking side by side, the three profiles in a row beneath */
  .cta-actions {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    width: 100%;
    max-width: 380px;
    gap: 8px;
  }

  .cta-actions .btn {
    grid-column: span 3;
    min-width: 0;
    padding: 0 10px;
  }

  .cta-actions .btn:nth-child(n + 3) {
    grid-column: span 2;
  }

  .hero .eyebrow-lines {
    padding: 8px 12px;
    font-size: 13px;
  }

  .suggestion {
    font-size: 12.5px;
  }

  /* comfortable tap targets */
  .links-line a {
    padding: 9px 0;
  }

  .footer-col {
    gap: 0;
  }

  .footer-col a,
  .footer-brand a,
  .footer-bottom a,
  .more-gh a {
    display: inline-block;
    padding: 9px 0;
  }

  .view-toggle button {
    padding: 8px 14px;
  }

  .statement {
    margin-top: 96px;
    padding: 96px 0;
  }
}
