/* ARTMED — "The Living System". Dark-first, brand blue #087bff, Geist + Instrument Serif accents. */
:root, [data-theme='dark'] {
  --bg: #05070d;
  --bg-2: #090d18;
  --panel: rgba(255, 255, 255, .028);
  --panel-2: rgba(255, 255, 255, .05);
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #eaf0fc;
  --text-2: #b7c3dc;
  --muted: #7d8aa6;
  --blue: #2f8cff;
  --blue-2: #087bff;
  --blue-d: #1554c0;
  --cyan: #38d9f5;
  --green: #34d399;
  --amber: #fbbf24;
  --glow: rgba(47, 140, 255, .35);
  --paper: #f3eee3;
  --paper-ink: #3b3a36;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .8);
  --canvas-dot: 160, 190, 255;
  --canvas-line: 47, 140, 255;
  color-scheme: dark;
}
[data-theme='light'] {
  --bg: #f6f8fc;
  --bg-2: #ffffff;
  --panel: rgba(255, 255, 255, .7);
  --panel-2: rgba(11, 27, 54, .04);
  --line: rgba(11, 27, 54, .09);
  --line-2: rgba(11, 27, 54, .16);
  --text: #0b1b36;
  --text-2: #33476b;
  --muted: #64748b;
  --blue: #087bff;
  --blue-2: #087bff;
  --glow: rgba(8, 123, 255, .22);
  --shadow: 0 30px 70px -30px rgba(15, 42, 90, .3);
  --canvas-dot: 21, 84, 192;
  --canvas-line: 8, 123, 255;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: background .4s ease, color .4s ease; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: 'Geist Mono', ui-monospace, Menlo, monospace; }
.serif { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.i { width: 18px; height: 18px; flex: none; }
.skip { position: absolute; left: -9999px; top: 10px; z-index: 200; background: var(--blue); color: #fff; padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 12px; }
kbd { font-family: 'Geist Mono', monospace; font-size: 11px; line-height: 1; padding: 3px 5px; border-radius: 5px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text-2); }

/* ambient layers */
.grain { position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .05; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
[data-theme='light'] .grain { opacity: .035; }
.cursor-glow { position: fixed; left: 0; top: 0; width: 560px; height: 560px; margin: -280px 0 0 -280px; border-radius: 50%; pointer-events: none; z-index: 1; background: radial-gradient(circle, var(--glow) 0%, transparent 62%); opacity: 0; transition: opacity .4s; will-change: transform; }
.has-cursor .cursor-glow { opacity: .55; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 11px 20px; border-radius: 999px; font-weight: 600; font-size: 15px; line-height: 1.2; border: 1px solid transparent; cursor: pointer; transition: transform .2s ease, box-shadow .3s ease, background .3s, border-color .3s; white-space: nowrap; }
.btn-lg { padding: 15px 26px; font-size: 16px; }
.btn-glow { position: relative; color: #fff; background: linear-gradient(135deg, #3d97ff, #1554c0); box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset, 0 12px 40px -10px var(--glow), 0 0 24px -6px var(--glow); }
.btn-glow:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .2) inset, 0 18px 50px -10px var(--glow), 0 0 40px -6px var(--glow); }
.btn-line { border-color: var(--line-2); background: var(--panel); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-line:hover { border-color: var(--text-2); transform: translateY(-2px); }
.icon-btn, .chip-btn, .kbd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; min-width: 38px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; font-size: 13px; font-weight: 600; color: var(--text-2); transition: border-color .2s, color .2s; }
.icon-btn:hover, .chip-btn:hover, .kbd-btn:hover { border-color: var(--line-2); color: var(--text); }
.kbd-btn .i { width: 15px; height: 15px; }
.th-light { display: none; }
[data-theme='light'] .th-light { display: inline-flex; }
[data-theme='light'] .th-dark { display: none; }
.menu-btn { display: none; }

/* nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 80; padding: 14px 0; transition: padding .3s, background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.solid { padding: 8px 0; background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-bottom-color: var(--line); }
.nav-in { max-width: 1240px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .16em; font-size: 15px; }
.logo img { width: 30px; height: auto; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { font-size: 14.5px; color: var(--text-2); padding: 8px 12px; border-radius: 10px; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--text); background: var(--panel-2); }
.nav-act { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav .btn { padding: 9px 16px; font-size: 14px; }

/* reveal (only when JS runs) */
.js [data-reveal] { opacity: 0; transform: translateY(28px); filter: blur(10px); transition: opacity 1s cubic-bezier(.2, .7, .1, 1), transform 1s cubic-bezier(.2, .7, .1, 1), filter 1s; }
.js [data-reveal].in { opacity: 1; transform: none; filter: none; }

.kicker { display: inline-flex; align-items: center; gap: 10px; font-family: 'Geist Mono', monospace; font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); }
.h2 { font-size: clamp(34px, 5vw, 64px); line-height: 1.02; letter-spacing: -.045em; font-weight: 600; margin-top: 18px; max-width: 900px; }
.h2-xl { font-size: clamp(44px, 7vw, 96px); }
.sec { position: relative; padding: 140px 0; z-index: 2; }
.sec-head { margin-bottom: 56px; }
.sec-sub { margin-top: 20px; font-size: 18px; color: var(--muted); max-width: 640px; }

/* HERO */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding: 120px 0 0; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-vignette { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse 60% 50% at 50% 42%, transparent 0%, var(--bg) 100%), linear-gradient(180deg, transparent 70%, var(--bg) 100%); }
.hero-in { position: relative; z-index: 2; text-align: center; padding: 0 24px; display: flex; flex-direction: column; align-items: center; flex: 1; justify-content: center; }
.mark { position: relative; width: 156px; height: 132px; margin-bottom: 30px; perspective: 600px; }
.mark img { position: relative; z-index: 2; width: 100%; height: auto; transform-style: preserve-3d; transition: transform .2s ease-out; filter: drop-shadow(0 18px 40px rgba(47, 140, 255, .45)); }
.mark.beat img { animation: beat .5s cubic-bezier(.2, .9, .3, 1.4); }
@keyframes beat { 0% { scale: 1; } 30% { scale: 1.09; } 100% { scale: 1; } }
.mark-ring { position: absolute; left: 50%; top: 50%; width: 180px; height: 180px; margin: -90px 0 0 -90px; border-radius: 50%; border: 1px solid rgba(47, 140, 255, .35); animation: ring 4.5s cubic-bezier(.2, .6, .2, 1) infinite; opacity: 0; }
.mark-ring.r2 { animation-delay: 1.5s; }
.mark-ring.r3 { animation-delay: 3s; }
@keyframes ring { 0% { transform: scale(.6); opacity: 0; } 15% { opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }
.mark.beat .mark-ring.r1 { animation: none; }
.live-dot, .ok-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: live 2s infinite; flex: none; }
.live-dot { background: var(--blue); }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .5); } 70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
.hero-kicker { padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--panel); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 11.5px; }
.hero-h1 { margin-top: 26px; font-size: clamp(50px, 9.4vw, 140px); line-height: .92; letter-spacing: -.055em; font-weight: 600; }
.hero-h1 .line { display: block; }
.hero-h1 .serif { font-size: 1.08em; padding-right: .06em; background: linear-gradient(100deg, #8cc2ff 0%, var(--blue) 40%, var(--cyan) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-theme='light'] .hero-h1 .serif { background: linear-gradient(100deg, #087bff 0%, #1554c0 50%, #0891b2 100%); -webkit-background-clip: text; background-clip: text; }
.hero-sub { margin-top: 28px; max-width: 640px; font-size: clamp(16.5px, 1.6vw, 19px); color: var(--text-2); }
.hero-cta { margin-top: 38px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero-status { margin-top: 34px; display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); }
.hero-status .sep { width: 24px; height: 1px; background: var(--line-2); }
.js .hero-in [data-reveal]:nth-child(2) { transition-delay: .1s; }
.js .hero-in [data-reveal]:nth-child(3) { transition-delay: .2s; }
.js .hero-in [data-reveal]:nth-child(4) { transition-delay: .35s; }
.js .hero-in [data-reveal]:nth-child(5) { transition-delay: .5s; }
.js .hero-in [data-reveal]:nth-child(6) { transition-delay: .65s; }
.marquee { position: relative; z-index: 2; margin-top: 64px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 34px; width: max-content; animation: marquee 48s linear infinite; font-family: 'Geist Mono', monospace; font-size: 13px; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.marquee-track i { font-style: normal; color: var(--blue); opacity: .7; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* 01 SHIFT */
.shift { position: relative; height: 330vh; z-index: 2; }
.shift-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.shift-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: center; }
.shift-steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 22px; }
.shift-steps li { display: flex; gap: 18px; opacity: .3; transition: opacity .5s, transform .5s; }
.shift-steps li.on { opacity: 1; transform: translateX(6px); }
.shift-steps .mono { font-size: 12px; color: var(--blue); padding-top: 4px; }
.shift-steps b { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.shift-steps p { color: var(--muted); margin-top: 4px; max-width: 420px; }
.shift-bar { margin-top: 36px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; max-width: 420px; }
.shift-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--cyan)); }
.shift-stage { position: relative; aspect-ratio: 1.18; width: 100%; }
.dash { position: absolute; inset: 0; border-radius: 26px; border: 1px solid var(--line-2); background: linear-gradient(180deg, var(--panel-2), var(--panel)); box-shadow: var(--shadow), 0 0 80px -40px var(--glow); opacity: 0; }
.dash-top { display: flex; align-items: center; gap: 14px; height: 50px; padding: 0 18px; border-bottom: 1px solid var(--line); font-size: 13px; }
.dash-top b { font-weight: 600; }
.dash-dots { display: inline-flex; gap: 6px; }
.dash-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.dash-sync { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-size: 12px; font-family: 'Geist Mono', monospace; }
.dash-sync .i { width: 14px; height: 14px; }
.sc { position: absolute; left: 0; top: 0; width: 30%; height: 38%; will-change: transform; }
.sc-paper, .sc-tile { position: absolute; inset: 0; border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; overflow: hidden; }
.sc-paper { background: var(--paper); color: var(--paper-ink); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .55); font-family: 'Geist Mono', monospace; }
.sc-paper small { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; opacity: .6; }
.sc-paper b { font-size: 14px; font-weight: 500; }
.sc-paper em { font-style: normal; font-size: 12px; opacity: .7; }
.sc-pin { position: absolute; top: 8px; right: 10px; width: 10px; height: 10px; border-radius: 50%; background: #e05252; box-shadow: 0 2px 4px rgba(0, 0, 0, .3); }
.scribble { display: block; margin-top: auto; height: 6px; width: 80%; border-radius: 4px; background: repeating-linear-gradient(90deg, rgba(59, 58, 54, .35) 0 14px, transparent 14px 18px); }
.scribble.s2 { width: 55%; margin-top: 6px; }
.sc[data-card='chat'] .sc-paper { background: #dcf8c6; }
.sc[data-card='queue'] .sc-paper { background: #fff7d6; }
.sc[data-card='bill'] .sc-paper { background: #fbfbfb; }
.sc-tile { background: var(--bg-2); border: 1px solid var(--line-2); opacity: 0; }
[data-theme='dark'] .sc-tile { background: #0d1322; }
.sc-head { display: flex; align-items: center; gap: 8px; color: var(--muted); margin-bottom: 6px; }
.sc-head .i { width: 15px; height: 15px; color: var(--blue); }
.sc-head small { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; font-family: 'Geist Mono', monospace; }
.sc-ok { margin-left: auto; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.sc-tile b { font-size: 16px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.sc-tile em { font-style: normal; font-size: 12.5px; color: var(--muted); margin-top: auto; }

/* 02 AI */
.ai { border: 1px solid var(--line-2); border-radius: 28px; background: linear-gradient(180deg, var(--panel-2), var(--panel)); box-shadow: var(--shadow); overflow: hidden; }
.ai-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ai-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.ai-tab { border: 1px solid var(--line); background: transparent; color: var(--text-2); padding: 8px 14px; border-radius: 999px; font-size: 14px; cursor: pointer; transition: all .2s; }
.ai-tab:hover { border-color: var(--line-2); }
.ai-tab.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.ai-sim { font-size: 11.5px; color: var(--muted); letter-spacing: .04em; }
.ai-body { display: grid; grid-template-columns: 1fr 64px 1.25fr; min-height: 420px; }
.ai-in, .ai-out { padding: 30px; }
.ai-in { background: var(--panel); }
.ai-label { display: flex; align-items: center; gap: 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 18px; }
.ai-label .i { width: 15px; height: 15px; color: var(--blue); }
.ai-replay { margin-left: auto; border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 4px 10px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); cursor: pointer; }
.ai-note { font-size: 15px; line-height: 1.85; color: var(--text-2); }
.ai-note mark { background: rgba(47, 140, 255, .18); color: var(--text); border-radius: 4px; padding: 0 2px; transition: background .4s; }
.ai-arrow { position: relative; display: flex; align-items: center; justify-content: center; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.ai-arrow span { position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: linear-gradient(180deg, transparent, var(--blue), transparent); background-size: 100% 200%; animation: flow 2.2s linear infinite; }
@keyframes flow { from { background-position: 0 -100%; } to { background-position: 0 100%; } }
.ai-arrow .i { position: relative; width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-2); color: var(--blue); }
.ai-busy .ai-arrow .i { animation: spin 2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ai-soap { display: grid; gap: 14px; }
.soap-row { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s; }
.soap-row.in { opacity: 1; transform: none; }
.soap-k { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; font-family: 'Geist Mono', monospace; font-weight: 500; background: rgba(47, 140, 255, .14); color: var(--blue); border: 1px solid rgba(47, 140, 255, .3); }
.soap-v { font-size: 15.5px; line-height: 1.6; padding-top: 5px; }
.icd { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; padding: 2px 9px; border-radius: 999px; font-family: 'Geist Mono', monospace; font-size: 12.5px; background: rgba(56, 217, 245, .12); color: var(--cyan); border: 1px solid rgba(56, 217, 245, .3); vertical-align: 1px; }
[data-theme='light'] .icd { color: #0e7490; }
.flags { display: grid; gap: 8px; margin-top: 8px; padding-top: 16px; border-top: 1px dashed var(--line-2); }
.flag { display: flex; align-items: center; gap: 10px; font-size: 14px; opacity: 0; transition: opacity .4s; }
.flag.in { opacity: 1; }
.flag .i { width: 16px; height: 16px; }
.flag.ok .i { color: var(--green); }
.flag.warn .i { color: var(--amber); }
.approve { margin-top: 8px; display: inline-flex; align-items: center; gap: 8px; align-self: start; padding: 9px 14px; border-radius: 12px; font-size: 13.5px; font-weight: 600; background: rgba(52, 211, 153, .12); color: var(--green); border: 1px solid rgba(52, 211, 153, .3); opacity: 0; transition: opacity .4s; }
.approve.in { opacity: 1; }
.caret, .tcaret { display: inline-block; width: 8px; height: 1.1em; vertical-align: -3px; background: var(--blue); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* 03 BENTO */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(250px, auto); gap: 16px; }
.bx { position: relative; border: 1px solid var(--line); border-radius: 24px; background: var(--panel); padding: 28px; overflow: hidden; display: flex; flex-direction: column; gap: 22px; isolation: isolate; transition: border-color .3s; }
.bx::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(47, 140, 255, .12), transparent 60%); }
.bx:hover { border-color: var(--line-2); }
.bx:hover::before { opacity: 1; }
.bx-emr { grid-column: span 2; grid-row: span 2; }
.bx-ai, .bx-lab, .bx-prod { grid-column: span 2; }
.bx-ico { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(47, 140, 255, .12); color: var(--blue); border: 1px solid rgba(47, 140, 255, .25); margin-bottom: 16px; }
.bx h3 { font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
.bx p { color: var(--muted); margin-top: 6px; font-size: 15px; max-width: 460px; }
.bx-emr .feed { flex: 1; display: flex; flex-direction: column; }
.bx-emr .feed-list { flex: 1; height: auto; min-height: 236px; }
.feed { margin-top: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-2); overflow: hidden; }
[data-theme='dark'] .feed { background: rgba(0, 0, 0, .35); }
.feed-h { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 11.5px; color: var(--muted); letter-spacing: .04em; }
.feed-list { list-style: none; margin: 0; padding: 8px 0; height: 236px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; font-size: 12.5px; }
.feed-list li { display: grid; grid-template-columns: 70px 44px 1fr auto; gap: 10px; padding: 5px 14px; color: var(--text-2); animation: feedin .5s ease; }
.feed-list li .t { color: var(--muted); }
.feed-list li .m { color: var(--blue); }
.feed-list li .s { color: var(--green); }
@keyframes feedin { from { opacity: 0; transform: translateY(10px); background: rgba(47, 140, 255, .12); } to { opacity: 1; transform: none; background: transparent; } }
.typing { margin-top: auto; display: grid; gap: 10px; }
.typing span { display: block; height: 10px; border-radius: 6px; background: linear-gradient(90deg, var(--panel-2), rgba(47, 140, 255, .35), var(--panel-2)); background-size: 200% 100%; animation: shimmer 2.2s linear infinite; }
.typing span:nth-child(1) { width: 92%; }
.typing span:nth-child(2) { width: 78%; animation-delay: .2s; }
.typing span:nth-child(3) { width: 86%; animation-delay: .4s; }
.typing span:nth-child(4) { width: 48%; animation-delay: .6s; }
@keyframes shimmer { to { background-position: -200% 0; } }
.wa-thread { margin-top: auto; display: flex; flex-direction: column; gap: 8px; min-height: 120px; justify-content: flex-end; }
.wa-b { align-self: flex-start; max-width: 92%; padding: 9px 12px; border-radius: 4px 14px 14px 14px; font-size: 13px; line-height: 1.4; background: #134e3a; color: #d8fbe9; animation: feedin .5s ease; }
[data-theme='light'] .wa-b { background: #dcf8c6; color: #173d2a; }
.scan { position: relative; margin-top: auto; height: 130px; border-radius: 16px; overflow: hidden; background: #000; border: 1px solid var(--line); }
.scan-img { position: absolute; inset: 0; background: radial-gradient(ellipse 13% 15% at 45% 47%, rgba(172, 184, 206, .55), transparent 70%), radial-gradient(ellipse 10% 12% at 57% 57%, rgba(128, 140, 164, .6), transparent 70%), radial-gradient(ellipse 6% 22% at 50% 50%, rgba(40, 48, 64, .9), transparent 72%), radial-gradient(ellipse 30% 40% at 50% 50%, #3a4458 0 80%, #d5ddeb 84%, #95a2bb 90%, transparent 93%), #000; filter: contrast(1.15); opacity: .9; }
.scan-sweep { position: absolute; left: 0; right: 0; height: 30%; background: linear-gradient(180deg, transparent, rgba(56, 217, 245, .35), transparent); animation: sweep 3s ease-in-out infinite; }
@keyframes sweep { 0%, 100% { top: -30%; } 50% { top: 100%; } }
.scan-x { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border: 1px solid rgba(56, 217, 245, .8); border-radius: 50%; }
.scan-x::before, .scan-x::after { content: ''; position: absolute; background: rgba(56, 217, 245, .8); }
.scan-x::before { left: 50%; top: -10px; bottom: -10px; width: 1px; }
.scan-x::after { top: 50%; left: -10px; right: -10px; height: 1px; }
.scan-tag { position: absolute; left: 10px; bottom: 8px; font-size: 10.5px; color: #7dd3fc; letter-spacing: .06em; }
.labs { margin-top: auto; display: grid; gap: 12px; font-size: 13px; }
.lab-row { display: grid; grid-template-columns: 42px 1fr 46px 60px; gap: 12px; align-items: center; color: var(--text-2); }
.lab-row b { font-weight: 500; color: var(--text); text-align: right; }
.lab-row small { color: var(--muted); }
.lab-bar { height: 6px; border-radius: 6px; background: var(--panel-2); overflow: hidden; }
.lab-bar i { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--blue), var(--cyan)); transition: width 1.4s cubic-bezier(.2, .7, .1, 1); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); }
.shop-link { margin-top: auto; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(47, 140, 255, .3); background: rgba(47, 140, 255, .08); font-weight: 500; font-size: 14.5px; transition: background .2s, transform .2s; }
.shop-link span { flex: 1; }
.shop-link .i { color: var(--blue); }
.shop-link:hover { background: rgba(47, 140, 255, .16); transform: translateY(-1px); }

/* 04 NETWORK */
.net-stage { position: relative; border: 1px solid var(--line); border-radius: 28px; background: radial-gradient(ellipse at 50% 50%, rgba(47, 140, 255, .08), transparent 60%), var(--panel); padding: 20px; }
.net-svg { width: 100%; height: auto; display: block; overflow: visible; }
.net-tall { display: none; }
.net-svg stop { stop-color: var(--blue); }
.net-link { fill: none; stroke: var(--line-2); stroke-width: 1.5; stroke-dasharray: 4 6; transition: stroke .3s; }
.net-link.on { stroke: var(--blue); stroke-dasharray: none; stroke-width: 2; }
.net-packet { fill: var(--cyan); filter: drop-shadow(0 0 6px var(--cyan)); }
.net-node { cursor: pointer; outline: none; }
.net-node rect { fill: var(--bg-2); stroke: var(--line-2); stroke-width: 1; transition: stroke .2s, fill .2s; }
[data-theme='dark'] .net-node rect { fill: #0b1120; }
.net-node text { fill: var(--text); font-family: 'Geist', sans-serif; font-size: 15px; font-weight: 500; }
.net-dot { fill: var(--blue); }
.net-node:hover rect, .net-node:focus-visible rect, .net-node.on rect { stroke: var(--blue); }
.net-node.on .net-dot { fill: var(--cyan); }
.core-ring { fill: none; stroke: rgba(47, 140, 255, .5); stroke-width: 1.5; stroke-dasharray: 3 5; animation: spin 30s linear infinite; transform-box: fill-box; transform-origin: center; }
.core-disc { fill: var(--bg-2); stroke: var(--line-2); }
[data-theme='dark'] .core-disc { fill: #0b1120; }
.core-glow { animation: breathe 4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes breathe { 50% { opacity: .55; transform: scale(.9); } }
.net-info { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); width: min(560px, calc(100% - 40px)); text-align: center; padding: 16px 20px; border-radius: 18px; border: 1px solid var(--line-2); background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.net-info .mono { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.net-info h3 { font-size: 18px; margin-top: 4px; }
.net-info p:last-child { color: var(--muted); font-size: 14.5px; margin-top: 4px; }
.net-wide { margin-bottom: 110px; }

/* 05 MANIFESTO */
.manifesto { position: relative; height: 240vh; z-index: 2; }
.manifesto-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; }
.manifesto-text { margin-top: 28px; font-size: clamp(34px, 5.8vw, 88px); line-height: 1.08; letter-spacing: -.045em; font-weight: 600; max-width: 1150px; }
.manifesto-text span { opacity: .14; transition: opacity .35s, color .35s; }
.manifesto-text span.lit { opacity: 1; }
.manifesto-text span.em.lit { color: var(--blue); font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.pillars { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-bottom: 40px; }
.pillar { border-top: 1px solid var(--line-2); padding: 26px 4px 0; }
.pillar .mono { font-size: 12px; color: var(--blue); }
.pillar h3 { font-size: 26px; font-weight: 600; letter-spacing: -.03em; margin: 10px 0 8px; }
.pillar p { color: var(--muted); }

/* 06 CONTACT */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.term { border-radius: 20px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .12); background: #070b14; color: #dbe5f8; box-shadow: var(--shadow), 0 0 100px -40px var(--glow); }
.term-top { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .03); font-size: 12px; color: #7d8aa6; }
.term-top .dash-dots i:nth-child(1) { background: #ff5f57; }
.term-top .dash-dots i:nth-child(2) { background: #febc2e; }
.term-top .dash-dots i:nth-child(3) { background: #28c840; }
.term-body { padding: 22px 22px 26px; font-size: 14px; display: grid; gap: 10px; }
.p-user { color: #34d399; }
.p-sep { color: #7d8aa6; }
.p-dir { color: #60a5fa; }
.t-muted { color: #7d8aa6; }
.t-opt { display: grid; grid-template-columns: 34px 20px auto 1fr; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .08); transition: border-color .2s, background .2s, transform .2s; }
.t-opt span { color: #60a5fa; }
.t-opt .i { color: #8cc2ff; }
.t-opt b { font-weight: 500; color: #fff; }
.t-opt em { font-style: normal; color: #7d8aa6; text-align: right; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-opt:hover, .t-opt:focus-visible { border-color: rgba(47, 140, 255, .6); background: rgba(47, 140, 255, .1); transform: translateX(4px); }
.t-prompt { color: #60a5fa; margin-top: 4px; }
.t-hint { font-size: 12px; }

/* FOOTER */
.foot { position: relative; z-index: 2; border-top: 1px solid var(--line); padding: 64px 0 28px; overflow: hidden; }
.foot-in { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot-brand p { margin-top: 14px; font-size: 14px; color: var(--text-2); }
.foot-brand p span { color: var(--muted); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 26px; align-items: flex-start; font-size: 14.5px; color: var(--text-2); }
.foot-links a:hover { color: var(--text); }
.foot-big { margin-top: 40px; font-size: clamp(80px, 21vw, 320px); line-height: .8; font-weight: 700; letter-spacing: -.06em; text-align: center; color: transparent; -webkit-text-stroke: 1px var(--line-2); background: linear-gradient(180deg, var(--panel-2), transparent 80%); -webkit-background-clip: text; background-clip: text; user-select: none; }
.foot-bot { margin-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }

/* COMMAND PALETTE */
.pal { position: fixed; inset: 0; z-index: 150; }
.pal[hidden] { display: none; }
.pal-backdrop { position: absolute; inset: 0; background: rgba(2, 4, 10, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .2s ease; }
.pal-box { position: relative; margin: 14vh auto 0; width: min(620px, calc(100% - 32px)); border-radius: 18px; border: 1px solid var(--line-2); background: color-mix(in srgb, var(--bg-2) 94%, transparent); box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .7); overflow: hidden; animation: pop .22s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
.pal-in { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.pal-in .i { color: var(--muted); }
.pal-in input { flex: 1; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 17px; }
.pal-list { list-style: none; margin: 0; padding: 8px; max-height: 50vh; overflow-y: auto; }
.pal-group { padding: 10px 10px 6px; font-family: 'Geist Mono', monospace; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pal-item { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; cursor: pointer; font-size: 15px; color: var(--text-2); }
.pal-item .i { width: 17px; height: 17px; color: var(--muted); }
.pal-item small { margin-left: auto; color: var(--muted); font-family: 'Geist Mono', monospace; font-size: 11.5px; }
.pal-item.on { background: var(--panel-2); color: var(--text); }
.pal-item.on .i { color: var(--blue); }
.pal-empty { padding: 22px; text-align: center; color: var(--muted); }
.pal-foot { display: flex; gap: 18px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--muted); }
.pal-foot kbd { margin-right: 3px; }

/* easter egg: "pulse" */
.mega-pulse::after { content: ''; position: fixed; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; z-index: 120; pointer-events: none; border: 2px solid var(--blue); box-shadow: 0 0 60px var(--blue); animation: mega 1.4s cubic-bezier(.1, .7, .2, 1) forwards; }
@keyframes mega { from { transform: scale(0); opacity: 1; } to { transform: scale(60); opacity: 0; } }

/* RESPONSIVE */
@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bx-emr { grid-row: span 1; }
  .shift-grid { gap: 40px; }
  .contact { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 900px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 12px; right: 12px; flex-direction: column; padding: 10px; border: 1px solid var(--line-2); border-radius: 18px; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; font-size: 16px; }
  .menu-btn { display: inline-flex; }
  .hide-sm { display: none; }
  .kbd-btn kbd { display: none; }
  .shift { height: 300vh; }
  .shift-grid { grid-template-columns: 1fr; gap: 22px; }
  .shift-steps { margin-top: 18px; gap: 0; }
  .shift-steps li { display: none; }
  .shift-steps li.on { display: flex; transform: none; }
  .shift-bar { margin-top: 16px; }
  .shift .h2 { font-size: clamp(28px, 7vw, 40px); }
  .shift-stage { max-width: 560px; margin: 0 auto; }
  .ai-body { grid-template-columns: 1fr; }
  .ai-arrow { height: 54px; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .ai-arrow span { top: 50%; bottom: auto; left: 0; right: 0; width: auto; height: 1px; background: linear-gradient(90deg, transparent, var(--blue), transparent); }
  .ai-arrow .i { transform: rotate(90deg); }
  .net-wide { display: none; }
  .net-tall { display: block; max-width: 440px; margin: 0 auto 150px; }
  .pillars { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap, .nav-in { padding: 0 16px; }
  .nav-in { gap: 12px; }
  .chip-btn, .kbd-btn, .icon-btn { height: 36px; min-width: 36px; padding: 0 8px; }
  .sec { padding: 96px 0; }
  .sec-head { margin-bottom: 36px; }
  .hero { padding-top: 96px; }
  .mark { width: 112px; height: 95px; margin-bottom: 22px; }
  .mark-ring { width: 130px; height: 130px; margin: -65px 0 0 -65px; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-status { font-size: 11px; flex-wrap: wrap; justify-content: center; }
  .marquee { margin-top: 44px; }
  .bento { grid-template-columns: 1fr; }
  .bx-emr, .bx-ai, .bx-lab, .bx-prod { grid-column: span 1; }
  .bx { padding: 22px; }
  .feed-list { height: 190px; }
  .feed-list li { grid-template-columns: 58px 40px 1fr auto; gap: 6px; padding: 4px 10px; font-size: 11.5px; }
  .ai-in, .ai-out { padding: 20px; }
  .ai-sim { width: 100%; }
  .sc-paper, .sc-tile { padding: 9px 10px; border-radius: 10px; }
  .sc-tile b, .sc-paper b { font-size: 12px; }
  .sc-tile em, .sc-paper em, .sc-paper small, .sc-head small { font-size: 9.5px; }
  .sc-head { margin-bottom: 2px; }
  .sc-head .i { width: 12px; height: 12px; }
  .scribble { height: 4px; }
  .dash-top { height: 38px; font-size: 11px; padding: 0 12px; }
  .dash-sync { display: none; }
  .net-stage { padding: 10px; border-radius: 20px; }
  .net-info { bottom: 12px; }
  .t-opt { grid-template-columns: 30px 18px 1fr; }
  .t-opt em { display: none; }
  .term-body { font-size: 13px; padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; filter: none; }
  .cursor-glow { display: none; }
}
