:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #eef2f8;
  --ink: #0e1726;
  --muted: #5e6878;
  --line: #d9e0ea;
  --accent: #2f6df6;
  --accent-2: #1ab3a6;
  --dark: #0b1220;
  --dark-2: #121d31;
  --max: 1180px;
  --radius: 22px;
  --shadow: 0 24px 60px rgba(19, 33, 58, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.skip-link { position: absolute; left: -999px; top: 0; }
.skip-link:focus { left: 1rem; top: 1rem; background: white; padding: .75rem 1rem; z-index: 1000; border-radius: 8px; }
.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.section-pad { padding: 108px 0; position: relative; }
.section-alt { background: var(--surface-2); }
.section-dark { background: var(--dark); color: #f7f9ff; }
.section-dark .section-heading p, .section-dark .eyebrow { color: #9fb2d5; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(245,247,251,.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(217,224,234,.7);
}
.nav-wrap { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 750; letter-spacing: -.02em; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  color: white; background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 22px rgba(47,109,246,.22);
}
.site-nav { display: flex; align-items: center; gap: 28px; font-size: .95rem; color: #364154; }
.site-nav a { transition: color .2s ease; }
.site-nav a:hover { color: var(--accent); }
.nav-cta { background: var(--ink); color: white !important; padding: 10px 16px; border-radius: 10px; }
.menu-toggle { display: none; border: 0; background: transparent; width: 42px; height: 42px; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; height: 2px; background: var(--ink); margin: 6px 0; border-radius: 2px; }

.hero { min-height: 760px; display: flex; align-items: center; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 72px; align-items: center; }
.hero-copy h1 { margin: 8px 0 0; font-size: clamp(3.8rem, 8vw, 6.8rem); line-height: .94; letter-spacing: -.065em; }
.hero-copy h1 span { color: var(--accent); }
.hero-copy h2 { margin: 20px 0 0; font-size: clamp(1.5rem, 2.8vw, 2.4rem); line-height: 1.15; letter-spacing: -.03em; font-weight: 650; }
.hero-lead { max-width: 760px; font-size: 1.15rem; color: var(--muted); margin: 26px 0 0; }
.eyebrow { margin: 0 0 12px; font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 12px; font-weight: 750; border: 1px solid transparent; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: white; background: var(--ink); box-shadow: 0 14px 28px rgba(14,23,38,.18); }
.btn-secondary { background: transparent; border-color: var(--line); }
.btn-secondary:hover { background: var(--surface); }
.mini-proof { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.mini-proof span, .project-pills span, .topic-cloud span { border: 1px solid var(--line); padding: 7px 10px; border-radius: 999px; font-size: .82rem; color: #465267; background: rgba(255,255,255,.55); }

.hero-visual { position: relative; min-height: 520px; display: grid; place-items: center; }
.portrait-frame { width: min(390px, 90%); aspect-ratio: 4/5; border-radius: 30px; padding: 10px; background: linear-gradient(145deg, rgba(47,109,246,.18), rgba(26,179,166,.16)); box-shadow: var(--shadow); }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 22px; background: #dfe5ef; }
.portrait-placeholder { width: 100%; height: 100%; border-radius: 22px; background: linear-gradient(160deg, #dfe7f4, #f3f7fd); display: grid; place-items: center; align-content: center; text-align: center; gap: 18px; color: var(--muted); }
.portrait-placeholder p { margin: 0; font-size: .9rem; }
.portrait-placeholder code { font-size: .8rem; }
.portrait-monogram { font-size: 5rem; font-weight: 850; letter-spacing: -.08em; color: #b8c4d6; }
.float-card { position: absolute; min-width: 154px; background: rgba(255,255,255,.92); border: 1px solid rgba(217,224,234,.9); box-shadow: var(--shadow); border-radius: 18px; padding: 14px 16px; backdrop-filter: blur(12px); }
.float-card strong { font-size: 1.6rem; display: block; line-height: 1; }
.float-card span { font-size: .82rem; color: var(--muted); }
.float-card-a { left: -10px; top: 84px; }
.float-card-b { right: -10px; bottom: 76px; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .45; pointer-events: none; }
.orb-a { width: 300px; height: 300px; background: rgba(47,109,246,.12); left: -120px; top: 80px; }
.orb-b { width: 380px; height: 380px; background: rgba(26,179,166,.10); right: -150px; bottom: -80px; }

.proof-strip { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof-grid > div { padding: 30px 28px; border-right: 1px solid var(--line); }
.proof-grid > div:last-child { border-right: 0; }
.proof-grid strong { display: block; font-size: 1.45rem; letter-spacing: -.03em; }
.proof-grid span { color: var(--muted); font-size: .88rem; }

.split-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 90px; }
.section-heading h2 { font-size: clamp(2.2rem, 4.8vw, 4.2rem); line-height: 1.06; letter-spacing: -.05em; margin: 0; max-width: 920px; }
.section-heading > p:not(.eyebrow) { margin-top: 20px; color: var(--muted); font-size: 1.05rem; max-width: 680px; }
.section-heading.centered { text-align: center; margin: 0 auto 56px; }
.section-heading.centered h2, .section-heading.centered p { margin-left: auto; margin-right: auto; }
.body-copy { font-size: 1.06rem; color: #3c485c; }
.body-copy p:first-child { margin-top: 0; }
.pull-quote { margin-top: 30px; padding: 20px 24px; border-left: 4px solid var(--accent); background: white; color: var(--ink); font-weight: 700; border-radius: 0 14px 14px 0; box-shadow: 0 10px 24px rgba(19,33,58,.06); }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; min-height: 260px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #cbd7e7; }
.icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: .82rem; font-weight: 800; color: white; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.feature-card h3 { font-size: 1.3rem; margin: 22px 0 10px; letter-spacing: -.025em; }
.feature-card p { margin: 0; color: var(--muted); }

.project-stack { display: grid; gap: 20px; margin-top: 48px; }
.project-card { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 34px; display: grid; grid-template-columns: 120px 1fr; gap: 30px; box-shadow: 0 10px 30px rgba(19,33,58,.04); }
.project-number { font-size: 3rem; line-height: 1; font-weight: 850; color: #d2dbea; letter-spacing: -.06em; }
.project-tag { margin: 0 0 8px; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); font-weight: 800; font-size: .76rem; }
.project-content h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.15; letter-spacing: -.035em; margin: 0 0 14px; }
.project-content > p:not(.project-tag) { color: var(--muted); max-width: 880px; }
.project-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

.research-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: start; }
.research-panel { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.stat { padding: 26px; border-radius: 18px; border: 1px solid rgba(255,255,255,.12); background: var(--dark-2); }
.stat strong { display: block; font-size: 2rem; letter-spacing: -.04em; }
.stat span { font-size: .88rem; color: #9fb2d5; }
.topic-cloud { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 52px; }
.topic-cloud span { border-color: rgba(255,255,255,.16); color: #dce6f6; background: rgba(255,255,255,.04); }

.insight-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 48px; }
.insight-card { background: white; border: 1px solid var(--line); border-radius: 24px; padding: 30px; min-height: 290px; }
.insight-index { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #eaf0ff; color: var(--accent); font-weight: 800; }
.insight-card h3 { margin: 28px 0 12px; font-size: 1.5rem; letter-spacing: -.03em; }
.insight-card p { color: var(--muted); margin: 0; }

.contact-section { background: linear-gradient(145deg, #f7f9fe, #edf3fb); }
.contact-grid { display: grid; grid-template-columns: 1.4fr .6fr; gap: 70px; align-items: end; }
.contact-actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.contact-actions .btn { width: 100%; }
.text-link { font-weight: 750; padding: 12px 4px; }

.site-footer { background: var(--dark); color: #dfe8f5; padding: 42px 0; }
.footer-wrap { display: flex; justify-content: space-between; gap: 30px; align-items: flex-end; }
.site-footer p { color: #91a2bd; margin: 7px 0 0; max-width: 680px; font-size: .9rem; }
.footer-right { display: flex; gap: 22px; color: #91a2bd; font-size: .9rem; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }

@media (max-width: 980px) {
  .site-nav { position: absolute; top: 76px; left: 20px; right: 20px; display: none; flex-direction: column; align-items: stretch; gap: 0; background: rgba(255,255,255,.98); border: 1px solid var(--line); border-radius: 18px; padding: 10px; box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px; }
  .nav-cta { margin-top: 4px; text-align: center; }
  .menu-toggle { display: block; }
  .hero { min-height: auto; }
  .hero-grid, .split-grid, .research-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 48px; }
  .hero-copy { padding-top: 28px; }
  .hero-visual { min-height: 480px; }
  .split-grid { gap: 36px; }
  .card-grid, .insight-grid { grid-template-columns: repeat(2,1fr); }
  .contact-actions { max-width: 420px; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 28px, var(--max)); }
  .section-pad { padding: 76px 0; }
  .brand-text { display: none; }
  .hero-copy h1 { font-size: clamp(3.2rem, 17vw, 5rem); }
  .hero-visual { min-height: 430px; }
  .float-card-a { left: 0; top: 50px; }
  .float-card-b { right: 0; bottom: 45px; }
  .proof-grid { grid-template-columns: repeat(2,1fr); }
  .proof-grid > div { border-bottom: 1px solid var(--line); }
  .proof-grid > div:nth-child(2) { border-right: 0; }
  .proof-grid > div:nth-child(3), .proof-grid > div:nth-child(4) { border-bottom: 0; }
  .card-grid, .insight-grid, .research-panel { grid-template-columns: 1fr; }
  .project-card { grid-template-columns: 1fr; gap: 10px; padding: 26px; }
  .project-number { font-size: 2rem; }
  .footer-wrap, .footer-right { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}


/* ---- v2 additions ---- */
.avail-badge{display:inline-flex;align-items:center;gap:10px;margin:18px 0 0;padding:9px 16px;border-radius:999px;
  background:rgba(26,179,166,.10);border:1px solid rgba(26,179,166,.35);color:#0f766e;font-weight:700;font-size:.86rem}
.pulse{width:9px;height:9px;border-radius:50%;background:#1ab3a6;box-shadow:0 0 0 0 rgba(26,179,166,.6);animation:pulse 2s infinite}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(26,179,166,.55)}70%{box-shadow:0 0 0 10px rgba(26,179,166,0)}100%{box-shadow:0 0 0 0 rgba(26,179,166,0)}}
.engage{margin-top:44px;display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap;
  background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:26px 30px}
.engage-models{display:flex;gap:10px;flex-wrap:wrap}
.engage-models span{border:1px solid var(--line);background:var(--surface-2);padding:9px 16px;border-radius:999px;font-weight:700;font-size:.9rem}
/* deck slider */
.deck{max-width:980px;margin:0 auto}
.deck-frame{position:relative;border-radius:26px;overflow:hidden;box-shadow:var(--shadow);border:1px solid var(--line);background:#0b1220}
.deck-track{display:flex;transition:transform .45s ease}
.deck-slide{flex:0 0 100%;min-width:100%}
.deck-slide img{width:100%;height:auto;display:block;aspect-ratio:16/9;object-fit:cover;background:#0b1220}
.deck-btn{position:absolute;top:50%;transform:translateY(-50%);width:52px;height:52px;border-radius:50%;border:1px solid rgba(255,255,255,.35);
  background:rgba(11,18,32,.55);color:#fff;font-size:1.7rem;line-height:1;cursor:pointer;backdrop-filter:blur(8px);transition:background .2s}
.deck-btn:hover{background:rgba(47,109,246,.85)}
.deck-prev{left:16px}.deck-next{right:16px}
.deck-meta{display:flex;align-items:center;gap:18px;margin-top:18px;flex-wrap:wrap}
.deck-counter{font-weight:800;font-size:.9rem;color:var(--muted);min-width:64px}
.deck-progress{flex:1;min-width:140px;height:8px;border-radius:999px;background:var(--line);overflow:hidden}
.deck-bar{height:100%;width:3%;border-radius:999px;background:linear-gradient(90deg,var(--accent),var(--accent-2));transition:width .45s ease}
/* publications */
.pub-list{list-style:none;margin:0;padding:0;display:grid;gap:14px}
.pub-item{display:grid;grid-template-columns:76px 1fr;gap:18px;padding:20px 22px;border:1px solid rgba(255,255,255,.12);
  border-radius:16px;background:rgba(255,255,255,.03)}
.pub-year{font-weight:800;color:#9fb2d5;font-size:.95rem}
.pub-title{margin:0;font-weight:700;color:#f2f6ff;line-height:1.45}
.pub-title a{color:#f2f6ff;border-bottom:1px solid rgba(47,109,246,.6)}
.pub-title a:hover{color:#9dbcff}
.pub-venue{margin:6px 0 0;color:#9fb2d5;font-size:.9rem}
/* background section */
.bg-grid{display:grid;grid-template-columns:1fr 1fr;gap:64px;margin-top:52px}
.bg-grid h3{font-size:1.05rem;letter-spacing:.1em;text-transform:uppercase;color:var(--accent);margin:0 0 22px}
.bg-sub{margin-top:38px !important}
.bg-list{list-style:none;margin:0;padding:0;display:grid;gap:28px}
.bg-list li strong{display:block;font-size:1.08rem;letter-spacing:-.01em}
.bg-list li>span{color:var(--muted);font-size:.9rem}
.bg-list li p{margin:8px 0 0;color:#3c485c;font-size:.96rem}
.bg-pills{display:flex;flex-wrap:wrap;gap:10px}
.bg-pills span{border:1px solid var(--line);background:var(--surface);padding:8px 14px;border-radius:999px;font-size:.85rem;font-weight:600}
@media(max-width:980px){.bg-grid{grid-template-columns:1fr;gap:44px}}
/* calculator band */
.calc-band{background:linear-gradient(120deg,#0b1220 0%,#1b2f5e 60%,#0e7d74 130%);color:#fff;padding:84px 0}
.calc-band-inner{display:flex;align-items:center;justify-content:space-between;gap:36px;flex-wrap:wrap}
.calc-band h2{margin:0 0 12px;font-size:clamp(1.9rem,4vw,3rem);letter-spacing:-.04em;line-height:1.1}
.calc-band p{color:#c6d4ee;max-width:560px;margin:0}
@media(max-width:680px){.deck-btn{width:42px;height:42px;font-size:1.4rem}.deck-prev{left:8px}.deck-next{right:8px}
  .pub-item{grid-template-columns:1fr;gap:6px}.engage{flex-direction:column;align-items:stretch;text-align:center}}
@media(prefers-reduced-motion:reduce){.deck-track{transition:none}.pulse{animation:none}}

/* photo bands */
.photo-band{padding:0 0 104px}
.photo-band figure{margin:0;border-radius:26px;overflow:hidden;box-shadow:var(--shadow);border:1px solid var(--line)}
.photo-band img{width:100%;aspect-ratio:21/9;object-fit:cover;display:block}
.photo-band figcaption{padding:14px 24px;background:var(--surface);color:var(--muted);font-size:.88rem}
/* contact form */
.contact-form{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:34px;box-shadow:var(--shadow)}
.contact-form h3{margin:0 0 22px;font-size:1.45rem;letter-spacing:-.025em}
.contact-form label{display:block;font-weight:700;font-size:.88rem;margin:0 0 16px;color:var(--ink)}
.contact-form input,.contact-form textarea{display:block;width:100%;margin-top:8px;padding:13px 15px;border:1px solid var(--line);border-radius:12px;background:#fbfcfe;font:inherit;font-weight:400}
.contact-form input:focus,.contact-form textarea:focus{outline:2px solid var(--accent);border-color:var(--accent);background:#fff}
.contact-form textarea{resize:vertical;min-height:130px}
.contact-form .btn{width:100%}
.form-note{margin:14px 0 0;color:var(--muted);font-size:.85rem;text-align:center}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden;margin:0}
@media(max-width:680px){.photo-band img{aspect-ratio:16/10}.contact-form{padding:26px}}
