/* ============================================================
   AI-XR 응급간호 시뮬레이션 연구실 — Portfolio
   Apple-keynote inspired, scroll-driven, 3 mood presets
   ============================================================ */

@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css");

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body { overflow-x: visible; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: #fff; }

/* ============================================================
   MOOD TOKENS
   Each mood maps tone-keywords (light / muted / deep / accent)
   to actual colors, plus accent + texture settings.
   ============================================================ */
:root {
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --motion: 1; /* parallax multiplier, set by tweaks */

  /* default = keynote */
  --bg-light: #ffffff;
  --bg-muted: #f4f4f6;
  --bg-deep:  #081a3a;
  --fg-light: #18181b;
  --fg-muted: #6b6b72;
  --fg-ondeep: #f3f6fc;
  --fg-ondeep-muted: rgba(225,232,245,0.62);
  --accent: #0a45cc;
  --accent-soft: rgba(10,69,204,0.10);
  --hairline: rgba(20,20,25,0.10);
  --hairline-deep: rgba(255,255,255,0.16);
  --grain: 0.035;
  --orb-blur: 70px;
  --display-weight: 700;
  --display-tracking: -0.03em;
  --radius: 22px;
}

/* ---- Mood: Keynote White (explicit, same as root) ---- */
[data-mood="keynote"] {
  --bg-light: #ffffff;
  --bg-muted: #f4f4f6;
  --bg-deep:  #081a3a;
  --fg-light: #18181b;
  --fg-muted: #6b6b72;
  --fg-ondeep: #f3f6fc;
  --fg-ondeep-muted: rgba(225,232,245,0.62);
  --accent: #0a45cc;
  --accent-soft: rgba(10,69,204,0.10);
  --hairline: rgba(20,20,25,0.10);
  --grain: 0.035;
  --orb-blur: 70px;
  --display-weight: 700;
  --display-tracking: -0.03em;
}

/* ---- Mood: Soft Editorial (warm ivory) ---- */
[data-mood="editorial"] {
  --bg-light: #f7f1e4;
  --bg-muted: #ece0cb;
  --bg-deep:  #2b2017;
  --fg-light: #2c2419;
  --fg-muted: #8a7d68;
  --fg-ondeep: #f3ead9;
  --fg-ondeep-muted: rgba(243,234,217,0.62);
  --accent: #b5742f;
  --accent-soft: rgba(181,116,47,0.13);
  --hairline: rgba(44,36,25,0.14);
  --grain: 0.07;
  --orb-blur: 95px;
  --display-weight: 600;
  --display-tracking: -0.02em;
}

/* ---- Mood: Deep Blue Tech (cinematic) ---- */
[data-mood="tech"] {
  --bg-light: #f2f6fd;
  --bg-muted: #e4ecf9;
  --bg-deep:  #050d22;
  --fg-light: #0c1730;
  --fg-muted: #5d6b86;
  --fg-ondeep: #eaf1ff;
  --fg-ondeep-muted: rgba(186,205,240,0.66);
  --accent: #2f6bff;
  --accent-soft: rgba(47,107,255,0.12);
  --hairline: rgba(12,23,48,0.12);
  --grain: 0.045;
  --orb-blur: 60px;
  --display-weight: 700;
  --display-tracking: -0.035em;
}

/* ============================================================
   GLOBAL CANVAS — fixed background layer that crossfades color
   ============================================================ */
body {
  font-family: var(--font);
  color: var(--fg-light);
  background: transparent; /* fixed #bg-layer paints the canvas */
  transition: color 0.7s var(--ease);
  line-height: 1.6;
}

#bg-layer {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--bg-light);
  transition: background-color 0.8s var(--ease);
}
#bg-grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: var(--grain);
  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='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* active tone drives bg + fg */
body[data-tone="light"] #bg-layer { background-color: var(--bg-light); }
body[data-tone="muted"] #bg-layer { background-color: var(--bg-muted); }
body[data-tone="deep"]  #bg-layer { background-color: var(--bg-deep); }
body[data-tone="light"] { color: var(--fg-light); }
body[data-tone="muted"] { color: var(--fg-light); }
body[data-tone="deep"]  { color: var(--fg-ondeep); }
body[data-tone="deep"] #bg-grain { mix-blend-mode: screen; opacity: calc(var(--grain) * 1.4); }

/* ============================================================
   LAYOUT
   ============================================================ */
.wrap { width: min(var(--maxw), 90vw); margin: 0 auto; }
section { position: relative; }
.pad { padding: clamp(90px, 14vh, 190px) 0; }

/* ============================================================
   TYPE
   ============================================================ */
.eyebrow {
  font-size: clamp(12px, 1vw, 14px);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
body[data-tone="deep"] .eyebrow { color: #8fb4ff; }
[data-mood="editorial"] body[data-tone="deep"] .eyebrow,
[data-mood="editorial"] .eyebrow { letter-spacing: 0.26em; }

.display {
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  line-height: 1.04;
  text-wrap: balance;
}
h1.display { font-size: clamp(40px, 6.6vw, 94px); }
h2.display { font-size: clamp(34px, 5.2vw, 74px); }
h3.display { font-size: clamp(24px, 2.6vw, 40px); }

.lead {
  font-size: clamp(19px, 2.1vw, 28px);
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: -0.01em;
  text-wrap: pretty;
  max-width: 30ch;
}
.body-lg {
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.65;
  color: var(--fg-muted);
  text-wrap: pretty;
}
body[data-tone="deep"] .body-lg { color: var(--fg-ondeep-muted); }
.muted { color: var(--fg-muted); }
body[data-tone="deep"] .muted { color: var(--fg-ondeep-muted); }
.accent-text { color: var(--accent); }
body[data-tone="deep"] .accent-text { color: #8fb4ff; }

/* ============================================================
   NAV
   ============================================================ */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(20px, 5vw, 56px);
  transition: background-color .4s var(--ease), border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
#nav.scrolled {
  background: color-mix(in srgb, var(--bg-light) 72%, transparent);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--hairline);
}
body[data-tone="deep"] #nav.scrolled {
  background: color-mix(in srgb, var(--bg-deep) 60%, transparent);
  border-bottom: 1px solid var(--hairline-deep);
}
.nav-brand { display: flex; align-items: center; gap: 11px; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; white-space: nowrap; }
.nav-mark {
  width: 26px; height: 26px; border-radius: 8px; flex: none;
  background: var(--accent);
  position: relative;
  box-shadow: 0 4px 14px var(--accent-soft);
}
.nav-mark::before, .nav-mark::after {
  content: ""; position: absolute; border-radius: 50%;
}
.nav-mark::before { inset: 6px; border: 1.6px solid rgba(255,255,255,0.9); }
.nav-mark::after { width: 5px; height: 5px; background: #fff; top: 10.5px; left: 10.5px; }
.nav-links { display: flex; gap: clamp(14px, 2vw, 34px); font-size: 14px; white-space: nowrap; }
.nav-links a { color: var(--fg-muted); transition: color .25s; }
body[data-tone="deep"] .nav-links a { color: var(--fg-ondeep-muted); }
.nav-links a:hover { color: var(--accent); }
body[data-tone="deep"] .nav-links a:hover { color: #fff; }
@media (max-width: 820px){ .nav-links { display: none; } }

#progress {
  position: fixed; top: 0; left: 0; height: 2px; z-index: 60;
  width: 0%; background: var(--accent);
  transition: width .1s linear;
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 0 clamp(20px, 5vw, 56px);
}
.hero-inner { width: min(var(--maxw), 90vw); margin: 0 auto; position: relative; z-index: 2; }
.hero-eyebrow { margin-bottom: clamp(20px, 4vh, 38px); display: flex; align-items: center; gap: 14px; }
.hero-eyebrow .line { height: 1px; width: 46px; background: var(--accent); opacity: .6; }
.hero-h1 { margin: 0; }
.hero-h1 .grad {
  background: linear-gradient(105deg, var(--accent), color-mix(in srgb, var(--accent) 40%, #7aa6ff));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  margin-top: clamp(26px, 4vh, 44px);
  max-width: 38ch;
}
.hero-meta {
  margin-top: clamp(34px, 6vh, 58px);
  display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center;
  font-size: 14px; color: var(--fg-muted);
}
.hero-meta .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.hero-meta .grp { display: flex; align-items: center; gap: 10px; }
.scroll-hint {
  position: absolute; bottom: clamp(22px, 5vh, 46px); left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-muted);
  z-index: 3;
}
.scroll-hint .mouse {
  width: 22px; height: 34px; border: 1.5px solid currentColor; border-radius: 12px; opacity: .5;
  position: relative;
}
.scroll-hint .mouse::after {
  content: ""; position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  width: 3px; height: 6px; border-radius: 2px; background: currentColor;
  animation: wheel 1.6s var(--ease) infinite;
}
@keyframes wheel { 0%{opacity:0;transform:translate(-50%,0)} 40%{opacity:1} 100%{opacity:0;transform:translate(-50%,9px)} }

/* floating abstract orbs / rings */
.orbs { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; will-change: transform; }
.orb.glow { filter: blur(var(--orb-blur)); }
.orb.o1 { width: 40vw; height: 40vw; top: -8vw; right: -6vw;
  background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 70%); }
.orb.o2 { width: 26vw; height: 26vw; bottom: -8vw; left: -4vw;
  background: radial-gradient(circle at 40% 40%, color-mix(in srgb, var(--accent) 32%, #9ec1ff), transparent 68%); }
.ring { position: absolute; border-radius: 50%; border: 1.5px solid var(--accent); opacity: .18; will-change: transform; }
.ring.r1 { width: 32vw; height: 32vw; top: 18%; left: 8%; }
.ring.r2 { width: 16vw; height: 16vw; bottom: 14%; right: 22%; opacity:.12; }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce){
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   SECTION HEADER
   ============================================================ */
.sec-head { max-width: 760px; }
.sec-head .eyebrow { margin-bottom: 20px; display: block; }
.sec-head h2 { margin: 0 0 22px; }
.sec-num {
  font-variant-numeric: tabular-nums; font-weight: 600; font-size: 13px;
  letter-spacing: 0.18em; color: var(--accent); opacity: .8;
}

/* ============================================================
   INTRO band
   ============================================================ */
#intro .intro-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: end; }
@media (max-width: 860px){ #intro .intro-grid { grid-template-columns: 1fr; gap: 40px; } }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 64px; }
@media (max-width:560px){ .kpis { grid-template-columns: 1fr 1fr; } }
.kpi { padding: 26px 22px; border: 1px solid var(--hairline); border-radius: var(--radius); background: color-mix(in srgb, var(--bg-light) 60%, transparent); }
body[data-tone="deep"] .kpi { border-color: var(--hairline-deep); background: rgba(255,255,255,0.04); }
.kpi .num { font-size: clamp(34px, 4vw, 52px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.kpi .num .unit { font-size: .5em; font-weight: 600; margin-left: 3px; color: var(--accent); }
.kpi .lbl { margin-top: 10px; font-size: 13.5px; color: var(--fg-muted); }
body[data-tone="deep"] .kpi .lbl { color: var(--fg-ondeep-muted); }

/* ============================================================
   RESEARCH FIELDS — horizontal pinned scroll
   ============================================================ */
#fields { background: transparent; }
.pin-stage { height: 560vh; position: relative; }
.pin-sticky { position: absolute; top: 0; left: 0; width: 100%; height: 100svh; overflow: hidden; display: flex; flex-direction: column; }
.pin-top { padding: clamp(70px,11vh,120px) clamp(20px,5vw,56px) 0; flex: none; }
.pin-top .bar { margin-top: 26px; height: 3px; width: 100%; background: var(--hairline); border-radius: 3px; overflow: hidden; }
body[data-tone="deep"] .pin-top .bar { background: var(--hairline-deep); }
.pin-top .bar > i { display: block; height: 100%; width: 16.6%; background: var(--accent); border-radius: 3px; transition: transform .15s linear; }
.track-vp { flex: 1; display: flex; align-items: center; overflow: hidden; }
.track { display: flex; gap: clamp(20px, 3vw, 40px); padding: 0 clamp(20px,5vw,56px); will-change: transform; }
.fcard {
  flex: 0 0 clamp(330px, 38vw, 520px);
  border-radius: 26px; padding: clamp(32px, 3vw, 50px);
  border: 1px solid var(--hairline);
  background: color-mix(in srgb, var(--bg-light) 50%, transparent);
  display: flex; flex-direction: column; min-height: 56vh;
  position: relative; overflow: hidden;
}
body[data-tone="deep"] .fcard { border-color: var(--hairline-deep); background: rgba(255,255,255,0.045); }
.fcard .fnum {
  font-size: clamp(60px, 7vw, 104px); font-weight: 700; line-height: .9;
  letter-spacing: -0.04em; color: transparent;
  -webkit-text-stroke: 1.4px color-mix(in srgb, var(--accent) 55%, transparent);
}
.fcard .feng { margin-top: 18px; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.fcard h3 { margin: 12px 0 16px; font-size: clamp(23px, 2.2vw, 33px); font-weight: 650; letter-spacing: -0.02em; line-height: 1.12; }
.fcard p { margin: 0; font-size: 16px; line-height: 1.62; color: var(--fg-muted); }
body[data-tone="deep"] .fcard p { color: var(--fg-ondeep-muted); }
.fcard .corner { position: absolute; right: -40px; bottom: -40px; width: 150px; height: 150px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--accent-soft), transparent 70%); }
@media (max-width: 760px){
  .pin-stage { height: auto; }
  .pin-sticky { position: static; height: auto; }
  .track-vp { display: block; overflow: visible; }
  .track { flex-direction: column; gap: 18px; transform: none !important; padding: 24px clamp(20px,5vw,56px) 0; }
  .fcard { flex: none; min-height: auto; }
}

/* ============================================================
   PROJECTS — timeline
   ============================================================ */
.timeline { margin-top: 64px; border-top: 1px solid var(--hairline); }
body[data-tone="deep"] .timeline { border-color: var(--hairline-deep); }
.tl-row {
  display: grid; grid-template-columns: 140px 1fr auto; gap: clamp(18px,3vw,46px);
  align-items: baseline; padding: 30px 4px; border-bottom: 1px solid var(--hairline);
  transition: background-color .4s var(--ease), padding-left .4s var(--ease);
}
body[data-tone="deep"] .tl-row { border-color: var(--hairline-deep); }
.tl-row:hover { background: var(--accent-soft); padding-left: 20px; }
.tl-year { font-size: clamp(22px, 2.4vw, 34px); font-weight: 700; letter-spacing: -0.03em; color: var(--accent); font-variant-numeric: tabular-nums; }
.tl-main h4 { margin: 0 0 8px; font-size: clamp(18px, 1.7vw, 23px); font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; }
.tl-main .org { font-size: 14.5px; color: var(--fg-muted); }
body[data-tone="deep"] .tl-main .org { color: var(--fg-ondeep-muted); }
.tl-role { font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em; white-space: nowrap;
  padding: 6px 13px; border-radius: 999px; border: 1px solid var(--accent); color: var(--accent); align-self: center; }
@media (max-width: 720px){
  .tl-row { grid-template-columns: 1fr; gap: 8px; }
  .tl-role { justify-self: start; }
}

/* ============================================================
   OUTCOMES — grid of achievement chips
   ============================================================ */
.out-grid { margin-top: 56px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 720px){ .out-grid { grid-template-columns: 1fr; } }
.out-item {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 26px 28px; border-radius: var(--radius);
  border: 1px solid var(--hairline);
  background: color-mix(in srgb, var(--bg-light) 55%, transparent);
  transition: transform .4s var(--ease), border-color .4s;
}
body[data-tone="deep"] .out-item { border-color: var(--hairline-deep); background: rgba(255,255,255,0.04); }
.out-item:hover { transform: translateY(-4px); border-color: var(--accent); }
.out-item .ix { font-size: 13px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; flex: none; padding-top: 3px; }
.out-item p { margin: 0; font-size: 16.5px; line-height: 1.5; font-weight: 500; letter-spacing: -0.01em; }

/* ============================================================
   JOIN / RECRUIT
   ============================================================ */
.tag-cloud { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 12px; }
.tag {
  font-size: clamp(15px, 1.5vw, 19px); font-weight: 500; letter-spacing: -0.01em;
  padding: 13px 22px; border-radius: 999px; border: 1px solid var(--hairline);
  transition: transform .35s var(--ease), background-color .35s, color .35s, border-color .35s;
}
body[data-tone="deep"] .tag { border-color: var(--hairline-deep); }
.tag:hover { background: var(--accent); color: #fff; border-color: var(--accent); transform: translateY(-3px); }

/* ============================================================
   COLLAB
   ============================================================ */
.collab-grid { margin-top: 56px; display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
@media (max-width: 820px){ .collab-grid { grid-template-columns: 1fr; } }
.collab-card {
  padding: 32px; border-radius: var(--radius); border: 1px solid var(--hairline);
  background: color-mix(in srgb, var(--bg-light) 55%, transparent);
  display: flex; flex-direction: column; min-height: 220px;
}
body[data-tone="deep"] .collab-card { border-color: var(--hairline-deep); background: rgba(255,255,255,0.04); }
.collab-card .org { font-weight: 650; font-size: 18px; letter-spacing: -0.015em; margin-bottom: 14px; }
.collab-card .org .sub { display: block; font-size: 13px; font-weight: 500; color: var(--accent); margin-top: 4px; }
.collab-card .title { font-size: 15px; line-height: 1.55; color: var(--fg-muted); margin-top: auto; }
body[data-tone="deep"] .collab-card .title { color: var(--fg-ondeep-muted); }

/* ============================================================
   CONTACT
   ============================================================ */
#contact .c-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
@media (max-width: 860px){ #contact .c-grid { grid-template-columns: 1fr; gap: 48px; } }
.photo-wrap { position: relative; }
.photo-wrap .frame {
  border-radius: 28px; overflow: hidden; position: relative;
  box-shadow: 0 40px 90px -40px rgba(8,26,58,0.5);
  aspect-ratio: 848 / 1024;
}
.photo-wrap .frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-wrap .badge {
  position: absolute; left: -16px; bottom: 26px;
  background: var(--accent); color: #fff; padding: 14px 20px; border-radius: 16px;
  box-shadow: 0 18px 40px -16px var(--accent);
  font-size: 13px; line-height: 1.4;
}
.photo-wrap .badge b { display:block; font-size: 17px; letter-spacing: -0.01em; }
.c-name { font-size: clamp(30px, 4vw, 52px); font-weight: 700; letter-spacing: -0.03em; margin: 8px 0 6px; }
.c-affil { font-size: clamp(16px,1.5vw,19px); color: var(--accent); font-weight: 600; }
.contact-list { margin-top: 38px; border-top: 1px solid var(--hairline); }
body[data-tone="deep"] .contact-list { border-color: var(--hairline-deep); }
.c-row { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--hairline); align-items: baseline; }
body[data-tone="deep"] .c-row { border-color: var(--hairline-deep); }
.c-row .k { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-muted); font-weight: 600; }
body[data-tone="deep"] .c-row .k { color: var(--fg-ondeep-muted); }
.c-row .v { font-size: 16.5px; letter-spacing: -0.01em; }
.c-row .v a:hover { color: var(--accent); }

/* footer */
footer { padding: 46px clamp(20px,5vw,56px); border-top: 1px solid var(--hairline); font-size: 13px; color: var(--fg-muted);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
body[data-tone="deep"] footer { border-color: var(--hairline-deep); color: var(--fg-ondeep-muted); }

/* big number watermark behind sections */
.watermark {
  position: absolute; right: clamp(-10px, 2vw, 30px); top: clamp(40px, 8vh, 90px);
  font-size: clamp(120px, 22vw, 320px); font-weight: 800; line-height: 1;
  letter-spacing: -0.05em; color: var(--accent); opacity: 0.05; z-index: 0; pointer-events: none;
  font-variant-numeric: tabular-nums;
}

/* utility for stacked section z */
.section-content { position: relative; z-index: 1; }

/* ============================================================
   HERO ABSTRACT GRAPHIC (lab identity)
   ============================================================ */
.hero-graphic {
  position: absolute; top: 50%; right: clamp(-30px, 1.5vw, 64px);
  transform: translateY(-50%);
  width: clamp(380px, 33vw, 560px);
  z-index: 1; pointer-events: none;
  color: var(--accent);
  will-change: transform;
}
.hero-graphic svg { width: 100%; height: auto; overflow: visible; display: block; }
.hg-faint  { opacity: 0.16; }
.hg-mid    { opacity: 0.34; }
.hg-strong { opacity: 0.62; }
.hg-node   { fill: currentColor; stroke: none; }
.hg-rot    { transform-box: view-box; transform-origin: 372px 352px; animation: hg-rot 70s linear infinite; }
.hg-pulse  { animation: hg-pulse 3.4s var(--ease) infinite; }
.hg-pulse.b { animation-delay: 1.2s; }
.hg-pulse.c { animation-delay: 2.3s; }
@keyframes hg-rot   { to { transform: rotate(360deg); } }
@keyframes hg-pulse { 0%,100% { opacity: 0.3; r: 3.4; } 50% { opacity: 0.85; r: 5.4; } }
@media (max-width: 1024px) { .hero-graphic { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .hg-rot, .hg-pulse { animation: none; }
}
