/* IBMT Clinical — site styles */
:root {
  --navy: #023047;
  --panel: #06283D;
  --sky: #8ECAE6;
  --ocean: #219EBC;
  --amber: #FFB703;
  --tiger: #FB8500;
  --text: #023047;
  --muted: #4A5E6D;
  --accent-text: #156A80;
  --line: #E1E7EC;
  --soft: #F4F6F8;
  --on-dark: #E6F3F9;
  --on-dark-muted: #A9C9D8;
  --display: 'Inter Tight', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --wrap: 1840px;
  --gutter: clamp(20px, 5vw, 72px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--text); background: #fff; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--amber); color: var(--navy); padding: 10px 16px; border-radius: 8px; font-weight: 600; z-index: 100; }
.skip:focus { top: 16px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); margin: 0 0 14px; }
.h2 { margin: 0; font-family: var(--display); font-size: clamp(36px, 5vw, 56px); line-height: 1.05; font-weight: 500; letter-spacing: -.03em; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 20; color: #fff; }
.site-header:not(.solid) { position: absolute; top: 0; left: 0; right: 0; }
.site-header.solid { background: var(--navy); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 24px; padding-bottom: 24px; }
.brand { text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 21px; letter-spacing: .01em; }
.brand span { font-weight: 400; color: var(--sky); }
.nav { display: flex; gap: 32px; font-size: 15px; color: #D6ECF5; }
.nav a { text-decoration: none; }
.nav a:hover { color: #fff; }
.nav a[aria-current="page"] { color: var(--amber); font-weight: 600; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; text-decoration: none; border: 0; border-radius: 999px; padding: 11px 20px; font-weight: 600; font-size: 15px; cursor: pointer; }
.btn-amber { background: var(--amber); color: var(--navy); }
.btn-amber:hover { background: #ffc531; }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 999px; border: 1px solid rgba(142,202,230,.45); background: transparent; color: #fff; align-items: center; justify-content: center; cursor: pointer; }
.mobile-nav { display: none; }

@media (max-width: 900px) {
  .site-header .nav, .site-header .btn-amber { display: none; }
  .menu-btn { display: inline-flex; }
  .mobile-nav { position: fixed; inset: 0; background: var(--navy); color: #fff; z-index: 50; padding: 24px 20px; flex-direction: column; }
  .mobile-nav.open { display: flex; }
  .mobile-nav .top { display: flex; justify-content: space-between; align-items: center; }
  .mobile-nav nav { display: flex; flex-direction: column; margin-top: 48px; }
  .mobile-nav nav a { text-decoration: none; font-family: var(--display); font-size: 32px; font-weight: 500; padding: 14px 0; border-bottom: 1px solid rgba(142,202,230,.2); }
  .mobile-nav nav a[aria-current="page"] { color: var(--amber); }
  .mobile-nav .btn { margin-top: auto; }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.hero-body { position: relative; min-height: max(680px, 100svh); display: flex; flex-direction: column; justify-content: center; padding-top: 140px; padding-bottom: 80px; }
.hero-body > :not(.hero-art) { position: relative; z-index: 1; }
.hero-art { position: absolute; top: 0; bottom: 0; right: var(--gutter); width: min(42%, 760px); pointer-events: none; }
.hero .molecule { position: absolute; top: 50%; right: 0; width: 100%; aspect-ratio: 1; transform: translateY(-46%); opacity: .9; }
.hero .molecule svg { width: 100%; height: 100%; animation: spin 90s linear infinite; }
.capsule { position: absolute; display: flex; overflow: hidden; pointer-events: none; animation: float 7s ease-in-out infinite; }
.capsule i { flex: 1; }
.cap-1 { --r: -28deg; top: 18%; left: 4%; width: clamp(70px, 7vw, 120px); aspect-ratio: 2.6; border-radius: 999px; }
.cap-2 { --r: 32deg; bottom: 10%; right: 12%; width: clamp(56px, 5.4vw, 90px); aspect-ratio: 2.6; border-radius: 999px; opacity: .85; animation-duration: 9s; }
.cap-3 { --r: 70deg; top: 24%; right: 0; width: clamp(40px, 3.8vw, 64px); aspect-ratio: 2.6; border-radius: 999px; opacity: .7; animation-delay: -3s; }
.hero h1 { margin: 0; max-width: min(58%, 960px); font-family: var(--display); font-size: clamp(42px, 5.4vw, 104px); line-height: 1; font-weight: 500; letter-spacing: -.035em; }
.ainative { margin-top: clamp(48px, 9vh, 120px); max-width: 680px; padding-top: 24px; border-top: 1px solid rgba(142,202,230,.35); }
.ainative .title { font-family: var(--display); font-size: 28px; font-weight: 600; color: var(--amber);
  background: linear-gradient(90deg, var(--amber) 0%, var(--amber) 40%, #FFE29A 50%, var(--amber) 60%, var(--amber) 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: sheen 4.5s linear infinite; }
.ainative .sub { margin-top: 6px; font-size: 15px; color: var(--sky); }
.rotator { position: relative; height: 34px; margin-top: 16px; overflow: hidden; }
.rotator li { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 12px; font-size: 21px; font-weight: 500; white-space: nowrap; opacity: 0; transform: translateY(26px); transition: opacity 350ms ease, transform 350ms ease; }
.rotator li.is-active { opacity: 1; transform: translateY(0); }
.rotator li.is-past { transform: translateY(-26px); }
.rotator .n { font-family: var(--mono); font-size: 13px; color: var(--sky); }
.rotator li:last-child .n { color: var(--amber); }
.rotator ul, .ticks { list-style: none; margin: 0; padding: 0; }
.ticks { display: flex; gap: 6px; margin-top: 16px; }
.ticks li { width: 14px; height: 3px; border-radius: 2px; background: rgba(142,202,230,.3); transition: width 300ms ease, background 300ms ease; }
.ticks li.is-active { width: 40px; background: var(--sky); }
.ticks li.is-active:last-child { background: var(--amber); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%,100% { transform: translateY(0) rotate(var(--r)); } 50% { transform: translateY(-26px) rotate(calc(var(--r) + 12deg)); } }
@keyframes sheen { from { background-position: 100% 0; } to { background-position: -150% 0; } }

@media (max-width: 1100px) {
  .hero-art { width: 52%; right: -6%; opacity: .55; }
  .hero h1 { max-width: 80%; }
}
@media (max-width: 900px) {
  .hero-body { min-height: 0; justify-content: flex-start; padding-top: 130px; padding-bottom: 64px; }
  .hero-art { top: 70px; bottom: auto; height: 420px; width: 400px; right: -170px; opacity: .3; }
  .hero h1 { max-width: none; }
  .cap-1 { top: 62%; left: auto; right: 210px; }
  .cap-2, .cap-3 { display: none; }
  .ainative { margin-top: 56px; }
  .ainative .title { font-size: 22px; }
  .rotator { height: 56px; }
  .rotator li { white-space: normal; font-size: 17px; align-items: flex-start; }
}

/* ---------- Statement ---------- */
.statement { padding: 140px 0 120px; }
.statement p { margin: 0; max-width: 1040px; font-family: var(--display); font-size: clamp(28px, 3.6vw, 44px); line-height: 1.2; font-weight: 500; letter-spacing: -.02em; }
.statement p span { color: #7A8794; }

/* ---------- Platform + story ---------- */
.platform-head { padding-bottom: 40px; }
.platform-head .row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; border-top: 1px solid var(--line); padding-top: 32px; }
.platform-head .tm { color: var(--ocean); }
.platform-head p { margin: 0; max-width: 480px; font-size: 18px; line-height: 1.55; color: var(--muted); }

.story-sec { position: relative; height: 1700px; padding: 0 var(--gutter); }
.story-card { position: sticky; top: 40px; max-width: calc(var(--wrap) - 2 * var(--gutter)); height: 560px; margin: 0 auto; background: var(--navy); color: #fff; border-radius: 24px; overflow: hidden; display: flex; align-items: center; }
.story-grid { width: 100%; padding: 0 36px; display: grid; grid-template-columns: 190px minmax(220px, .85fr) minmax(0, 1.3fr); gap: 36px; align-items: center; }

.rail { display: flex; flex-direction: column; gap: 2px; }
.pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 600; color: var(--navy); }
.pill-ai { background: var(--sky); margin-bottom: 6px; }
.pill-clin { background: var(--amber); margin: 16px 0 6px; }
.rail button { display: flex; align-items: center; gap: 14px; min-height: 44px; padding: 0 0 0 4px; background: transparent; border: 0; color: #fff; cursor: pointer; text-align: left; }
.rail .track { position: relative; width: 4px; height: 34px; border-radius: 2px; background: rgba(142,202,230,.22); overflow: hidden; }
.rail .track i { position: absolute; left: 0; top: 0; width: 4px; height: 0; background: var(--sky); transition: height 400ms ease; }
.rail button.clin .track i { background: var(--amber); }
.rail button.is-done .track i, .rail button.is-active .track i { height: 100%; }
.rail .num { font-family: var(--mono); font-size: 13px; color: var(--sky); }
.rail button.clin .num { color: var(--amber); }
.rail .nm { font-size: 17px; font-weight: 600; opacity: .72; transition: opacity 300ms; }
.rail button.is-active .nm { opacity: 1; }

.story-text { position: relative; height: 300px; min-width: 0; }
.story-text article { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; opacity: 0; transform: translateY(30px); transition: opacity 450ms ease, transform 450ms ease; pointer-events: none; }
.story-text article.is-past { transform: translateY(-30px); }
.story-text article.is-active { opacity: 1; transform: none; pointer-events: auto; }
.story-text .meta { display: flex; align-items: center; gap: 12px; }
.story-text .meta b { font-family: var(--mono); font-weight: 400; font-size: 15px; color: var(--sky); }
.story-text .tag { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; border: 1px solid var(--sky); color: var(--sky); border-radius: 999px; padding: 3px 9px; }
.story-text article.clin .meta b, .story-text article.clin .tag { color: var(--amber); border-color: var(--amber); }
.story-text h3 { margin: 18px 0 0; font-family: var(--display); font-size: 38px; line-height: 1.05; font-weight: 500; letter-spacing: -.03em; }
.story-text p { margin: 14px 0 0; max-width: 360px; font-size: 16px; line-height: 1.55; color: var(--on-dark); }

.visual { position: relative; height: 420px; min-width: 0; background: var(--panel); border: 1px solid rgba(142,202,230,.25); border-radius: 20px; overflow: hidden; }
.layer { position: absolute; inset: 0; padding: 24px; display: flex; flex-direction: column; gap: 14px; opacity: 0; transform: scale(.96); transition: opacity 500ms ease, transform 500ms ease; }
.layer.is-active { opacity: 1; transform: none; }
.layer .cap { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--sky); }
.layer .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid rgba(142,202,230,.2); padding-top: 14px; font-size: 15px; color: var(--on-dark); }

.cards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.cards span { height: 44px; border-radius: 9px; border: 1.5px solid rgba(142,202,230,.3); padding: 8px; display: flex; flex-direction: column; gap: 6px; opacity: .5; transition: all 500ms ease var(--d, 0ms); }
.cards span::before, .cards span::after { content: ""; display: block; height: 6px; border-radius: 3px; background: rgba(142,202,230,.5); }
.cards span::before { width: 70%; } .cards span::after { width: 45%; background: rgba(142,202,230,.35); }
.layer.is-active .cards span { opacity: .18; }
.layer.is-active .cards span.hl { opacity: 1; border-color: var(--amber); background: rgba(255,183,3,.12); }
.layer.is-active .cards span.hl::before { background: var(--amber); }

.bars { height: 150px; display: flex; align-items: center; gap: 4px; }
.bars span { flex: 1; height: 10px; border-radius: 3px; background: rgba(142,202,230,.25); transition: height 600ms ease var(--d, 0ms), background 600ms ease var(--d, 0ms); }
.layer.is-active .bars span { height: var(--h); background: var(--c); }
.legend { display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; color: var(--on-dark); }
.legend span { display: flex; align-items: center; gap: 8px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; }
.readouts { margin-top: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.readouts div { background: var(--navy); border-radius: 12px; padding: 14px 16px; }
.readouts small { display: block; font-size: 13px; color: var(--on-dark-muted); }
.readouts strong { display: block; margin-top: 4px; font-size: 17px; font-weight: 600; }

.cohort { display: grid; grid-template-columns: repeat(15, minmax(0, 1fr)); gap: 8px; }
.cohort span { aspect-ratio: 1; border-radius: 50%; background: rgba(142,202,230,.2); transition: background 400ms ease var(--d, 0ms), transform 400ms ease var(--d, 0ms); }
.layer.is-active .cohort span { background: rgba(142,202,230,.35); }
.layer.is-active .cohort span.r { background: var(--amber); transform: scale(1.1); }
.curve { margin-top: auto; }
.curve .lbl { display: flex; justify-content: space-between; font-size: 13px; color: var(--on-dark-muted); margin-bottom: 6px; }
.curve .lbl span { display: flex; align-items: center; gap: 6px; }
.curve .lbl i { width: 10px; height: 10px; border-radius: 50%; background: var(--amber); }
.curve path.dose { stroke-dasharray: 620; stroke-dashoffset: 620; transition: stroke-dashoffset 1400ms ease 300ms; }
.layer.is-active .curve path.dose { stroke-dashoffset: 0; }

.net { flex: 1; min-height: 0; }
.net .local { stroke-dasharray: 200; stroke-dashoffset: 200; transition: stroke-dashoffset 800ms ease var(--d, 200ms); }
.net .global, .net .gnode { opacity: 0; transition: opacity 600ms ease var(--d, 1000ms); }
.net .lnode { opacity: 0; transition: opacity 400ms ease var(--d, 800ms); }
.layer.is-active .net .local { stroke-dashoffset: 0; }
.layer.is-active .net .global, .layer.is-active .net .gnode, .layer.is-active .net .lnode { opacity: 1; }

@media (max-width: 900px) {
  .story-sec { height: auto; padding: 0 var(--gutter) 40px; }
  .story-card { position: relative; top: 0; height: auto; }
  .story-grid { grid-template-columns: 1fr; padding: 28px 20px; gap: 20px; }
  .rail { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; }
  .rail .pill { display: none; }
  .rail .nm { font-size: 15px; }
  .story-text { height: 200px; }
  .story-text { height: 230px; }
  .story-text h3 { font-size: 32px; }
  .visual { height: 440px; }
  .layer { padding: 20px; }
  .bars { height: 110px; }
  .legend { gap: 6px 14px; font-size: 13px; }
  .readouts strong { font-size: 15px; }
  .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cards span:nth-child(n+17) { display: none; }
  .cohort { grid-template-columns: repeat(10, minmax(0, 1fr)); }
  .cohort span:nth-child(n+41) { display: none; }
}

/* ---------- Contact ---------- */
.contact { background: var(--navy); color: #fff; }
.contact .wrap { padding-top: 130px; padding-bottom: 60px; }
.contact h2 { margin: 0 0 20px; max-width: 900px; font-family: var(--display); font-size: clamp(40px, 6vw, 72px); line-height: 1.02; font-weight: 500; letter-spacing: -.035em; }
.contact .intro { margin: 0 0 48px; max-width: 620px; font-size: 18px; line-height: 1.55; color: var(--on-dark-muted); }
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; max-width: 980px; }
.form label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--on-dark-muted); }
.form input, .form select, .form textarea { background: transparent; border: 0; border-bottom: 1px solid rgba(142,202,230,.45); padding: 12px 0; color: #fff; font-size: 17px; border-radius: 0; }
.form select { background: var(--navy); }
.form textarea { resize: vertical; min-height: 96px; }
.form .full { grid-column: 1 / -1; }
.form .hp { display: none; }
#form-status { margin: 0; font-size: 15px; }
#form-status.ok { color: var(--sky); }
#form-status.err { color: #FFB38A; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 100px; padding-top: 24px; border-top: 1px solid rgba(142,202,230,.25); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--on-dark-muted); }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 28px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }

/* ---------- Subpages ---------- */
.page-sec { padding: 110px 0 120px; }
.page-sec.soft { background: var(--soft); }
.pipe { overflow-x: auto; margin-top: 56px; }
.pipe-inner { min-width: 760px; }
.pipe-head { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; padding-bottom: 14px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #5C6B78; border-bottom: 1px solid #D5DAE1; }
.pipe-row { display: grid; grid-template-columns: 2fr 4fr; align-items: center; padding: 30px 0; border-bottom: 1px solid #D5DAE1; }
.pipe-row h3 { margin: 0; font-family: var(--display); font-size: 22px; font-weight: 500; }
.pipe-bar { height: 12px; background: #E1E5EA; border-radius: 6px; overflow: hidden; }
.pipe-bar i { display: block; height: 12px; width: 0; border-radius: 6px; background: var(--ocean); transition: width 1200ms ease; }
.is-in .pipe-bar i { width: var(--w); }
.band { background: var(--panel); color: #fff; }
.band .wrap { padding-top: 130px; padding-bottom: 130px; }
.band .eyebrow { color: var(--amber); }
.band h2 { margin: 0; max-width: 980px; font-family: var(--display); font-size: clamp(32px, 4.4vw, 52px); line-height: 1.08; font-weight: 500; letter-spacing: -.03em; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 56px; }
.tile { text-decoration: none; border: 1px solid var(--line); border-radius: 20px; padding: 36px; display: flex; flex-direction: column; gap: 14px; transition: border-color 200ms, transform 200ms; }
.tile:hover { border-color: var(--ocean); transform: translateY(-3px); }
.tile h3 { margin: 0; font-family: var(--display); font-size: 26px; font-weight: 500; }
.tile p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--muted); }
.tile .go { margin-top: 10px; font-weight: 600; color: var(--accent-text); }
.team { margin-top: 32px; max-width: 760px; border-top: 1px solid var(--line); }
.team div { padding: 18px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.team b { font-weight: 600; }
.team span { color: #5C6B78; }
.link-arrow { display: inline-block; margin-top: 28px; font-weight: 600; color: var(--accent-text); text-decoration: none; }
.note { max-width: 760px; margin-top: 40px; background: var(--soft); border-radius: 20px; padding: 40px; }
.note p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--muted); }
.note p.big { font-family: var(--display); font-size: 26px; line-height: 1.35; font-weight: 500; color: var(--text); margin-bottom: 12px; }
.prose { max-width: 760px; margin-top: 32px; font-size: 17px; line-height: 1.7; color: var(--muted); }
.prose h2 { font-family: var(--display); font-size: 24px; font-weight: 600; color: var(--text); margin: 36px 0 8px; }
.cta { background: var(--navy); color: #fff; }
.cta .wrap { padding-top: 90px; padding-bottom: 40px; }
.cta .row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta h2 { margin: 0; max-width: 720px; font-family: var(--display); font-size: clamp(32px, 4vw, 48px); line-height: 1.05; font-weight: 500; letter-spacing: -.03em; }
.cta .site-footer { margin-top: 72px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 700ms ease, transform 700ms ease; }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
  .reveal { opacity: 1; transform: none; }
}
