:root {
  --bg: #06090f;
  --bg-soft: #090e17;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-strong: rgba(255, 255, 255, 0.075);
  --surface-hover: rgba(255, 255, 255, 0.095);
  --text: #f5f7f8;
  --text-soft: #a1adba;
  --text-dim: #697684;
  --mint: #79e6c4;
  --mint-strong: #45cda3;
  --mint-glow: rgba(81, 216, 174, 0.24);
  --amber: #ffc06e;
  --line: rgba(255, 255, 255, 0.11);
  --line-bright: rgba(255, 255, 255, 0.2);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  --sans: "Avenir Next", Avenir, Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --shell: 1220px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.nav-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure, ol, ul { margin-top: 0; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  color: #06100d;
  background: var(--mint);
  border-radius: 8px;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }
.page-shell { width: min(calc(100% - 48px), var(--shell)); margin-inline: auto; }
.layout-lines {
  position: fixed;
  z-index: -1;
  inset: 0;
  width: min(calc(100% - 48px), var(--shell));
  margin-inline: auto;
  pointer-events: none;
  border-inline: 1px dashed rgba(255,255,255,0.055);
}
.layout-lines::before, .layout-lines::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255,255,255,0.035);
}
.layout-lines::before { left: 33.333%; }
.layout-lines::after { right: 33.333%; }
.glass-panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.025));
  box-shadow: inset 0 1px rgba(255,255,255,0.05), var(--shadow);
}

.site-header { position: fixed; z-index: 50; top: 0; left: 0; right: 0; padding: 16px 24px; transition: padding 200ms ease; }
.site-header::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 -28px;
  pointer-events: none;
  background: linear-gradient(var(--bg) 20%, transparent);
  opacity: 0.72;
}
.site-header.is-scrolled { padding-top: 10px; }
.header-shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: min(100%, var(--shell));
  min-height: 62px;
  margin-inline: auto;
  padding: 8px 10px 8px 18px;
  border-radius: 16px;
  background: rgba(9, 14, 23, 0.72);
  backdrop-filter: blur(20px) saturate(140%);
  box-shadow: 0 16px 42px rgba(0,0,0,0.23), inset 0 1px rgba(255,255,255,0.08);
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border: 1px solid rgba(121, 230, 196, 0.75);
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(121,230,196,0.09);
}
.brand-mark i { position: absolute; display: block; border-radius: 50%; }
.brand-mark i:nth-child(1) { inset: 7px; border: 1px solid var(--mint); }
.brand-mark i:nth-child(2) { width: 5px; height: 5px; top: 3px; left: 15px; background: var(--amber); box-shadow: 0 0 10px rgba(255,192,110,0.55); }
.brand-mark i:nth-child(3) { width: 6px; height: 6px; right: 6px; bottom: 6px; background: var(--mint); box-shadow: 0 0 12px rgba(121,230,196,0.55); }
.brand-type strong, .brand-type small { display: block; }
.brand-type strong { font-size: 14px; font-weight: 650; letter-spacing: 0.08em; }
.brand-type small { margin-top: 4px; color: var(--text-dim); font: 7px/1 var(--mono); letter-spacing: 0.12em; }
.site-nav { display: flex; justify-content: center; gap: 28px; color: #aab5c0; font-size: 12px; }
.site-nav a, .header-action { transition: color 160ms ease, background 160ms ease, border-color 160ms ease; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--text); }
.header-action { display: inline-flex; min-height: 42px; padding: 0 16px; align-items: center; gap: 15px; color: #06100d; background: var(--mint); border: 1px solid var(--mint); border-radius: 10px; font-size: 12px; font-weight: 650; }
.header-action:hover { background: #96edd2; }
.nav-toggle { display: none; }

.hero { position: relative; min-height: 960px; padding: 166px 0 0; overflow: hidden; background: radial-gradient(circle at 50% -10%, rgba(65,178,146,0.12), transparent 40%); }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.2;
  pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.22) 0.6px, transparent 0.6px);
  background-size: 18px 18px;
  mask-image: linear-gradient(to bottom, black, transparent 60%);
}
.hero-glow {
  position: absolute;
  top: 350px;
  left: 50%;
  width: 900px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(86,223,181,0.22), rgba(86,223,181,0.06) 35%, transparent 70%);
  filter: blur(38px);
  transform: translateX(-50%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.status-badge { display: inline-flex; min-height: 32px; padding: 0 12px; align-items: center; gap: 10px; color: var(--text-soft); border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,0.035); box-shadow: inset 0 1px rgba(255,255,255,0.04); font: 8px/1 var(--mono); letter-spacing: 0.08em; }
.status-badge i { width: 6px; height: 6px; background: var(--mint); border-radius: 50%; box-shadow: 0 0 12px var(--mint); }
.status-badge b { color: var(--mint); font-size: 12px; }
.hero-kicker { margin: 34px 0 18px; color: var(--text-dim); font: 9px/1.4 var(--mono); letter-spacing: 0.18em; }
.hero h1 { max-width: 1050px; margin-bottom: 0; font-size: clamp(54px, 7.6vw, 102px); font-weight: 620; line-height: 1.03; letter-spacing: -0.065em; text-wrap: balance; }
.hero h1 em { color: transparent; background: linear-gradient(94deg, #f6f9fa 5%, #93e9ce 52%, #75a696 105%); background-clip: text; font-style: normal; }
.hero-lede { max-width: 780px; margin: 30px 0 0; color: var(--text-soft); font-size: 17px; line-height: 1.85; text-wrap: balance; }
.hero-lede strong { color: var(--text); font-weight: 580; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; min-height: 50px; padding: 0 20px; align-items: center; justify-content: center; gap: 20px; border: 1px solid var(--line); border-radius: 11px; font-size: 13px; font-weight: 620; transition: transform 170ms ease, color 170ms ease, background 170ms ease, border-color 170ms ease, box-shadow 170ms ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #06100d; background: var(--mint); border-color: var(--mint); box-shadow: 0 0 32px rgba(121,230,196,0.12); }
.button-primary:hover { background: #99efd4; box-shadow: 0 0 40px rgba(121,230,196,0.22); }
.button-secondary { color: var(--text); background: rgba(255,255,255,0.04); }
.button-secondary:hover { background: rgba(255,255,255,0.075); border-color: var(--line-bright); }
.github-dot { width: 14px; height: 14px; background: radial-gradient(circle at 50% 38%, transparent 0 27%, currentColor 29% 35%, transparent 37%), linear-gradient(currentColor,currentColor); border-radius: 50%; opacity: 0.8; }

.hero-mockup { position: relative; width: 100%; margin-top: 76px; padding: 1px; border-radius: 22px 22px 0 0; background: linear-gradient(145deg, rgba(255,255,255,0.28), rgba(121,230,196,0.14) 30%, rgba(255,255,255,0.04) 70%); box-shadow: 0 55px 140px rgba(0,0,0,0.48), 0 -8px 80px rgba(121,230,196,0.08); }
.mockup-frame { padding: 12px 12px 0; overflow: hidden; border-radius: 21px 21px 0 0; background: rgba(8,12,19,0.94); }
.mockup-toolbar { display: grid; grid-template-columns: 1fr auto 1fr; height: 42px; padding: 0 8px; align-items: center; color: var(--text-dim); font: 8px/1 var(--mono); letter-spacing: 0.1em; }
.window-dots { display: flex; gap: 6px; }
.window-dots i { display: block; width: 7px; height: 7px; border: 1px solid #52606d; border-radius: 50%; }
.live-state { display: flex; justify-content: flex-end; align-items: center; gap: 7px; color: var(--mint); }
.live-state i { width: 5px; height: 5px; background: var(--mint); border-radius: 50%; box-shadow: 0 0 9px var(--mint); }
.mockup-visual { position: relative; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px 12px 0 0; background: #0a111c; }
.mockup-visual::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 55%, rgba(5,9,15,0.88)); }
.mockup-visual img { width: 100%; min-height: 500px; aspect-ratio: 16 / 8.7; object-fit: cover; }
.mockup-visual figcaption { position: absolute; z-index: 3; right: 24px; bottom: 22px; left: 24px; display: flex; justify-content: space-between; text-align: left; }
.mockup-visual figcaption div { min-width: 240px; padding: 14px 16px; border: 1px solid rgba(255,255,255,0.13); border-radius: 10px; background: rgba(6,9,15,0.68); backdrop-filter: blur(12px); }
.mockup-visual figcaption small, .mockup-visual figcaption strong { display: block; }
.mockup-visual figcaption small { color: var(--text-dim); font: 7px/1 var(--mono); letter-spacing: 0.12em; }
.mockup-visual figcaption strong { margin-top: 8px; color: #dce4e8; font: 10px/1.2 var(--mono); letter-spacing: 0.06em; }
.focus-frame { position: absolute; z-index: 2; inset: 11%; pointer-events: none; }
.focus-frame i { position: absolute; width: 28px; height: 28px; border-style: solid; border-color: rgba(121,230,196,0.7); }
.focus-frame i:nth-child(1) { top: 0; left: 0; border-width: 1px 0 0 1px; }
.focus-frame i:nth-child(2) { top: 0; right: 0; border-width: 1px 1px 0 0; }
.focus-frame i:nth-child(3) { bottom: 0; left: 0; border-width: 0 0 1px 1px; }
.focus-frame i:nth-child(4) { right: 0; bottom: 0; border-width: 0 1px 1px 0; }

.stack-ribbon { position: relative; z-index: 2; border-block: 1px solid var(--line); background: #070b12; }
.ribbon-inner { display: grid; grid-template-columns: 190px 1fr; align-items: stretch; }
.ribbon-label { display: flex; align-items: center; color: var(--text-dim); border-right: 1px solid var(--line); font: 8px/1 var(--mono); letter-spacing: 0.14em; }
.stack-chips { display: grid; grid-template-columns: repeat(5, 1fr); }
.stack-chips span { display: flex; min-height: 72px; padding: 0 18px; align-items: center; justify-content: center; gap: 8px; color: var(--text-dim); border-right: 1px solid var(--line); font: 8px/1.3 var(--mono); white-space: nowrap; }
.stack-chips span:last-child { border-right: 0; }
.stack-chips b { display: grid; width: 26px; height: 26px; place-items: center; color: var(--mint); border: 1px solid rgba(121,230,196,0.35); border-radius: 7px; font-size: 8px; }

.section { padding: 140px 0; }
.section-heading { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: 26px 80px; align-items: start; }
.section-heading .section-badge { grid-row: span 2; }
.section-heading h2 { max-width: 900px; margin-bottom: 0; font-size: clamp(42px, 5vw, 68px); font-weight: 580; line-height: 1.13; letter-spacing: -0.048em; text-wrap: balance; }
.section-heading > p { grid-column: 2; max-width: 680px; margin-bottom: 0; color: var(--text-soft); font-size: 15px; line-height: 1.85; }
.section-heading.centered { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.section-heading.centered h2 { max-width: 980px; }
.section-heading.centered p { max-width: 740px; }
.section-badge { display: inline-flex; width: fit-content; min-height: 28px; padding: 0 10px; align-items: center; color: var(--mint); border: 1px solid rgba(121,230,196,0.22); border-radius: 7px; background: rgba(121,230,196,0.045); font: 8px/1 var(--mono); letter-spacing: 0.12em; }

.thesis { background: linear-gradient(180deg, var(--bg), #080d15); }
.bento-grid { display: grid; grid-template-columns: 1.55fr 0.9fr; grid-template-rows: repeat(2, minmax(290px, auto)); gap: 14px; margin-top: 76px; }
.bento-card { position: relative; overflow: hidden; padding: 26px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(145deg, rgba(255,255,255,0.06), rgba(255,255,255,0.018)); box-shadow: inset 0 1px rgba(255,255,255,0.055); }
.bento-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 100% 0%, rgba(121,230,196,0.09), transparent 38%); }
.bento-large { grid-row: 1 / 3; min-height: 600px; }
.card-topline { position: relative; z-index: 1; display: flex; justify-content: space-between; color: var(--text-dim); font: 8px/1 var(--mono); letter-spacing: 0.12em; }
.card-topline i { color: #53616f; font-style: normal; }
.loop-visual { position: relative; display: grid; min-height: 500px; margin-top: 30px; place-items: center; }
.loop-visual::before, .loop-visual::after { content: ""; position: absolute; border-radius: 50%; }
.loop-visual::before { width: 390px; height: 390px; border: 1px solid rgba(121,230,196,0.18); }
.loop-visual::after { width: 310px; height: 310px; border: 1px dashed rgba(255,255,255,0.11); }
.loop-core { position: relative; z-index: 2; display: grid; width: 158px; height: 158px; place-items: center; background: linear-gradient(145deg, #98efd4, #4fcba5); border-radius: 50%; color: #07110e; box-shadow: 0 0 80px rgba(79,203,165,0.2); }
.loop-core small { align-self: end; color: rgba(7,17,14,0.6); font: 7px/1.3 var(--mono); letter-spacing: 0.08em; }
.loop-core strong { align-self: start; margin-top: 7px; font-size: 29px; font-weight: 620; }
.loop-visual ol { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.loop-visual li { position: absolute; display: flex; min-width: 115px; padding: 13px; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; background: rgba(9,14,23,0.88); backdrop-filter: blur(10px); }
.loop-visual li:nth-child(1) { top: 40px; left: 50%; transform: translateX(-50%); }
.loop-visual li:nth-child(2) { top: 50%; right: 25px; transform: translateY(-50%); }
.loop-visual li:nth-child(3) { bottom: 40px; left: 50%; transform: translateX(-50%); }
.loop-visual li:nth-child(4) { top: 50%; left: 25px; transform: translateY(-50%); }
.loop-visual li span { color: var(--mint); font: 7px/1 var(--mono); }
.loop-visual li b { margin-top: 7px; font-size: 14px; }
.loop-visual li small { margin-top: 4px; color: var(--text-dim); font: 7px/1 var(--mono); letter-spacing: 0.08em; }
.insight-orbit { position: relative; display: grid; width: 106px; height: 106px; margin: 44px auto 38px; place-items: center; border: 1px solid rgba(121,230,196,0.3); border-radius: 50%; }
.insight-orbit::before { content: ""; position: absolute; inset: 16px; border: 1px dashed rgba(255,255,255,0.18); border-radius: 50%; }
.insight-orbit i { position: absolute; width: 7px; height: 7px; background: var(--mint); border-radius: 50%; box-shadow: 0 0 10px var(--mint); }
.insight-orbit i:first-child { top: -4px; }
.insight-orbit i:nth-child(2) { right: 2px; bottom: 18px; background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.insight-orbit span { position: relative; z-index: 2; font: 13px/1 var(--mono); }
.bento-card h3 { position: relative; z-index: 1; margin-bottom: 12px; font-size: 22px; font-weight: 570; line-height: 1.42; letter-spacing: -0.02em; }
.bento-card > p { position: relative; z-index: 1; margin-bottom: 0; color: var(--text-soft); font-size: 12px; line-height: 1.75; }
.shield-mark { display: grid; width: 76px; height: 76px; margin: 40px 0 34px; place-items: center; color: var(--amber); border: 1px solid rgba(255,192,110,0.35); border-radius: 20px; background: rgba(255,192,110,0.045); font-size: 32px; box-shadow: inset 0 1px rgba(255,255,255,0.05); }

.architecture { border-block: 1px solid var(--line); background: #080c13; }
.architecture-panel { margin-top: 72px; padding: 12px; border-radius: 18px; }
.panel-header { display: flex; min-height: 46px; padding: 0 12px; align-items: center; justify-content: space-between; color: var(--text-dim); font: 8px/1 var(--mono); letter-spacing: 0.1em; }
.architecture-flow { display: grid; grid-template-columns: 1fr 25px 1.08fr 25px 1.12fr 25px 1fr 25px 1fr; align-items: stretch; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0,0,0,0.15); }
.flow-card { position: relative; min-width: 0; min-height: 190px; padding: 22px 18px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,0.035); box-shadow: inset 0 1px rgba(255,255,255,0.04); }
.flow-card small { display: block; color: var(--text-dim); font: 7px/1 var(--mono); letter-spacing: 0.09em; }
.flow-card strong { display: block; margin-top: 44px; font-size: 17px; font-weight: 600; line-height: 1.25; }
.flow-card p { margin: 15px 0 0; color: var(--text-dim); font: 8px/1.5 var(--mono); }
.flow-start { border-left-color: var(--amber); }
.flow-end { border-right-color: var(--mint); }
.flow-accent { color: #07110e; background: linear-gradient(145deg, #94edd2, #4fcba5); border-color: #7be2c3; box-shadow: 0 0 40px rgba(79,203,165,0.1); }
.flow-accent small, .flow-accent p { color: rgba(7,17,14,0.62); }
.flow-link { display: grid; place-items: center; color: var(--mint); font: 12px/1 var(--mono); }
.architecture-notes { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 12px; border: 1px solid var(--line); border-radius: 10px; }
.architecture-notes span { display: flex; min-height: 46px; padding: 0 18px; align-items: center; gap: 9px; color: var(--text-soft); border-right: 1px solid var(--line); font: 8px/1 var(--mono); }
.architecture-notes span:last-child { border-right: 0; }
.architecture-notes i { width: 5px; height: 5px; background: var(--mint); border-radius: 50%; box-shadow: 0 0 9px var(--mint); }
.research-note { display: grid; grid-template-columns: 190px 1fr; gap: 28px; margin-top: 18px; padding: 20px 24px; color: var(--text-soft); border: 1px solid rgba(255,192,110,0.18); border-radius: 12px; background: rgba(255,192,110,0.035); }
.research-note span { color: var(--amber); font: 8px/1.4 var(--mono); letter-spacing: 0.12em; }
.research-note p { max-width: 880px; margin: 0; font-size: 11px; line-height: 1.8; }

.lab { background: linear-gradient(180deg, #070b12, var(--bg)); }
.lab-grid { display: grid; grid-template-columns: 1.45fr 0.55fr; gap: 14px; margin-top: 72px; }
.terminal { overflow: hidden; border-radius: 16px; box-shadow: 0 32px 90px rgba(0,0,0,0.32); }
.terminal-bar { display: grid; grid-template-columns: 1fr auto 1fr; height: 48px; padding: 0 16px; align-items: center; color: var(--text-dim); border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.025); font: 8px/1 var(--mono); letter-spacing: 0.08em; }
.terminal-bar button { justify-self: end; padding: 6px 9px; color: var(--mint); background: rgba(121,230,196,0.04); border: 1px solid rgba(121,230,196,0.22); border-radius: 6px; font: 7px/1 var(--mono); cursor: pointer; }
.terminal pre { min-height: 500px; margin: 0; padding: 36px; overflow-x: auto; white-space: pre-wrap; font: 11px/1.8 var(--mono); }
.terminal .prompt { color: var(--amber); }
.terminal .ok { color: var(--mint); }
.terminal .dim { color: #5f7182; }
.terminal-footer { display: flex; min-height: 42px; padding: 0 17px; align-items: center; justify-content: space-between; color: var(--mint); border-top: 1px solid var(--line); background: rgba(255,255,255,0.018); font: 7px/1 var(--mono); letter-spacing: 0.09em; }
.lab-status { display: grid; grid-template-rows: repeat(4, 1fr); gap: 12px; }
.metric-card { position: relative; display: grid; min-height: 125px; padding: 18px 20px; grid-template-columns: 1fr auto; align-items: end; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(145deg, rgba(255,255,255,0.055), rgba(255,255,255,0.018)); box-shadow: inset 0 1px rgba(255,255,255,0.05); }
.metric-card::after { content: ""; position: absolute; top: -50px; right: -50px; width: 120px; height: 120px; background: radial-gradient(circle, rgba(121,230,196,0.09), transparent 70%); }
.metric-card small { grid-column: 1 / -1; align-self: start; color: var(--text-dim); font: 7px/1 var(--mono); letter-spacing: 0.1em; }
.metric-card strong { font: 38px/1 var(--mono); font-weight: 480; letter-spacing: -0.07em; }
.metric-card span { justify-self: end; color: var(--text-dim); font: 8px/1 var(--mono); }
.safety-card { border-color: rgba(121,230,196,0.2); }
.safety-card span { color: var(--mint); }
.safety-card span i { display: inline-block; width: 5px; height: 5px; margin-right: 6px; background: var(--mint); border-radius: 50%; box-shadow: 0 0 8px var(--mint); }
.project-link { display: flex; min-height: 90px; margin-top: 14px; padding: 0 24px; align-items: center; justify-content: space-between; border-radius: 14px; box-shadow: inset 0 1px rgba(255,255,255,0.05); transition: background 160ms ease, border-color 160ms ease, transform 160ms ease; }
.project-link:hover { background: var(--surface-hover); border-color: rgba(121,230,196,0.25); transform: translateY(-2px); }
.project-link small, .project-link strong { display: block; }
.project-link small { color: var(--text-dim); font: 7px/1 var(--mono); letter-spacing: 0.1em; }
.project-link strong { margin-top: 9px; font: 11px/1 var(--mono); font-weight: 500; }
.project-link > b { display: flex; align-items: center; gap: 18px; color: var(--text-soft); font-size: 12px; font-weight: 520; }
.project-link > b i { color: var(--mint); font-style: normal; font-size: 16px; }

.applications { border-top: 1px solid var(--line); background: #080c13; }
.application-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 72px; }
.application-card { position: relative; min-height: 340px; padding: 24px; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: linear-gradient(155deg, rgba(255,255,255,0.055), rgba(255,255,255,0.016)); box-shadow: inset 0 1px rgba(255,255,255,0.045); transition: transform 180ms ease, border-color 180ms ease, background 180ms ease; }
.application-card:hover { transform: translateY(-5px); border-color: rgba(121,230,196,0.26); background: linear-gradient(155deg, rgba(121,230,196,0.075), rgba(255,255,255,0.018)); }
.application-card > span { color: var(--text-dim); font: 8px/1 var(--mono); }
.app-symbol { display: grid; width: 62px; height: 62px; margin-top: 56px; place-items: center; color: var(--mint); border: 1px solid rgba(121,230,196,0.26); border-radius: 15px; background: rgba(121,230,196,0.035); font-size: 24px; }
.application-card h3 { margin: 52px 0 13px; font-size: 21px; font-weight: 590; }
.application-card p { margin: 0; color: var(--text-soft); font-size: 12px; line-height: 1.75; }

.connect { padding-top: 50px; }
.connect-panel { position: relative; display: flex; min-height: 520px; padding: 70px 40px; align-items: center; flex-direction: column; overflow: hidden; text-align: center; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(150deg, rgba(255,255,255,0.065), rgba(255,255,255,0.018)); box-shadow: inset 0 1px rgba(255,255,255,0.06), 0 40px 100px rgba(0,0,0,0.3); }
.connect-panel::before { content: ""; position: absolute; inset: 0; opacity: 0.24; background-image: radial-gradient(rgba(255,255,255,0.24) 0.6px, transparent 0.6px); background-size: 17px 17px; mask-image: radial-gradient(circle, black, transparent 72%); }
.connect-glow { position: absolute; top: -220px; left: 50%; width: 760px; height: 500px; background: radial-gradient(ellipse, rgba(86,223,181,0.24), transparent 65%); filter: blur(30px); transform: translateX(-50%); }
.connect-panel > *:not(.connect-glow) { position: relative; z-index: 1; }
.connect-panel h2 { max-width: 900px; margin: 34px 0 0; font-size: clamp(45px, 5.7vw, 74px); font-weight: 590; line-height: 1.1; letter-spacing: -0.052em; }
.connect-panel > p { max-width: 700px; margin: 28px 0 0; color: var(--text-soft); font-size: 15px; line-height: 1.8; }
.connect-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }

.site-footer { padding: 90px 0 35px; background: #04070b; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand strong, .footer-brand span { display: block; }
.footer-brand strong { font-size: 15px; letter-spacing: 0.08em; }
.footer-brand div span { margin-top: 5px; color: var(--text-dim); font: 8px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
.site-footer p { justify-self: end; max-width: 360px; margin: 0; color: var(--text-soft); font-size: 12px; line-height: 1.8; text-align: right; }
.footer-links { display: flex; gap: 24px; color: var(--text-soft); font-size: 11px; }
.footer-links a:hover { color: var(--mint); }
.footer-meta { display: flex; justify-content: flex-end; gap: 30px; color: var(--text-dim); font: 8px/1 var(--mono); letter-spacing: 0.08em; }
.toast { position: fixed; z-index: 80; right: 24px; bottom: 24px; padding: 12px 16px; color: #06100d; background: var(--mint); border-radius: 9px; box-shadow: 0 16px 40px rgba(0,0,0,0.35); font-size: 11px; opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity 180ms ease, transform 180ms ease; }
.toast.is-visible { opacity: 1; transform: none; }

.js .reveal { opacity: 0; filter: blur(8px); transform: translateY(18px); transition: opacity 720ms cubic-bezier(.2,.75,.3,1), filter 720ms cubic-bezier(.2,.75,.3,1), transform 720ms cubic-bezier(.2,.75,.3,1); }
.js .reveal.is-visible { opacity: 1; filter: none; transform: none; }
.hero .reveal:nth-child(2) { transition-delay: 70ms; }
.hero .reveal:nth-child(3) { transition-delay: 130ms; }
.hero .reveal:nth-child(4) { transition-delay: 190ms; }
.hero .reveal:nth-child(5) { transition-delay: 250ms; }
.hero .reveal:nth-child(6) { transition-delay: 360ms; }
.thesis-bento .reveal:nth-child(2), .application-grid .reveal:nth-child(2) { transition-delay: 70ms; }
.thesis-bento .reveal:nth-child(3), .application-grid .reveal:nth-child(3) { transition-delay: 140ms; }
.application-grid .reveal:nth-child(4) { transition-delay: 210ms; }

@media (max-width: 1080px) {
  .site-nav { gap: 18px; }
  .ribbon-inner { grid-template-columns: 150px 1fr; }
  .stack-chips span { padding-inline: 10px; }
  .stack-chips span { font-size: 0; }
  .stack-chips b { font-size: 8px; }
  .architecture-flow { grid-template-columns: 1fr; }
  .flow-link { height: 27px; transform: rotate(90deg); }
  .flow-card { min-height: 145px; }
  .flow-card strong { margin-top: 30px; }
  .application-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .site-header { padding-inline: 14px; }
  .header-shell { grid-template-columns: 1fr auto; padding-left: 14px; }
  .header-action { display: none; }
  .nav-toggle { display: grid; width: 42px; height: 42px; padding: 0; place-content: center; gap: 6px; background: rgba(255,255,255,0.04); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
  .nav-toggle i { display: block; width: 18px; height: 1px; background: var(--text); transition: transform 180ms ease; }
  .nav-toggle[aria-expanded="true"] i:first-of-type { transform: translateY(3.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] i:last-of-type { transform: translateY(-3.5px) rotate(-45deg); }
  .site-nav { position: absolute; top: calc(100% + 8px); left: 0; right: 0; display: none; padding: 12px; flex-direction: column; align-items: stretch; gap: 0; background: rgba(9,14,23,0.97); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 13px 10px; border-bottom: 1px solid var(--line); }
  .site-nav a:last-child { border-bottom: 0; }
  .hero { min-height: auto; padding-top: 140px; }
  .hero h1 { font-size: clamp(50px, 11vw, 78px); }
  .mockup-visual img { min-height: 420px; }
  .mockup-visual figcaption div { min-width: auto; }
  .ribbon-inner { grid-template-columns: 1fr; }
  .ribbon-label { min-height: 42px; justify-content: center; border-right: 0; border-bottom: 1px solid var(--line); }
  .section { padding: 105px 0; }
  .section-heading { grid-template-columns: 1fr; gap: 22px; }
  .section-heading .section-badge { grid-row: auto; }
  .section-heading > p { grid-column: auto; }
  .bento-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .bento-large { grid-row: auto; }
  .architecture-notes { grid-template-columns: repeat(2, 1fr); }
  .architecture-notes span:nth-child(2) { border-right: 0; }
  .architecture-notes span:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .lab-grid { grid-template-columns: 1fr; }
  .lab-status { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
  .project-link { align-items: flex-start; flex-direction: column; justify-content: center; gap: 16px; }
}

@media (max-width: 560px) {
  .page-shell, .layout-lines { width: min(calc(100% - 28px), var(--shell)); }
  .brand-type small { display: none; }
  .hero { padding-top: 125px; }
  .status-badge span { max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hero-kicker { margin-top: 28px; }
  .hero h1 { font-size: 45px; line-height: 1.08; }
  .hero-lede { font-size: 15px; }
  .hero-actions { width: 100%; flex-direction: column; }
  .button { width: 100%; }
  .hero-mockup { margin-top: 55px; border-radius: 16px 16px 0 0; }
  .mockup-frame { padding: 7px 7px 0; border-radius: 15px 15px 0 0; }
  .mockup-toolbar { grid-template-columns: 1fr 1fr; height: 38px; }
  .mockup-toolbar > span { display: none; }
  .mockup-visual img { min-height: 330px; }
  .mockup-visual figcaption { right: 12px; bottom: 12px; left: 12px; gap: 8px; flex-direction: column; }
  .mockup-visual figcaption div:last-child { display: none; }
  .stack-chips { grid-template-columns: repeat(5, 1fr); }
  .stack-chips span { min-height: 58px; border-right: 1px solid var(--line); }
  .section { padding: 84px 0; }
  .section-heading h2 { font-size: 38px; }
  .bento-grid { margin-top: 52px; }
  .bento-large { min-height: 500px; }
  .loop-visual { min-height: 420px; }
  .loop-visual::before { width: 300px; height: 300px; }
  .loop-visual::after { width: 240px; height: 240px; }
  .loop-core { width: 130px; height: 130px; }
  .loop-visual li { min-width: 94px; padding: 10px; }
  .loop-visual li:nth-child(1) { top: 22px; }
  .loop-visual li:nth-child(2) { right: 0; }
  .loop-visual li:nth-child(3) { bottom: 22px; }
  .loop-visual li:nth-child(4) { left: 0; }
  .architecture-panel { padding: 7px; }
  .architecture-flow { padding: 9px; }
  .panel-header span:last-child { display: none; }
  .architecture-notes { grid-template-columns: 1fr; }
  .architecture-notes span, .architecture-notes span:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .architecture-notes span:last-child { border-bottom: 0; }
  .research-note { grid-template-columns: 1fr; gap: 10px; }
  .terminal-bar { grid-template-columns: 1fr auto; }
  .terminal-bar > span { display: none; }
  .terminal pre { min-height: 470px; padding: 26px 17px; font-size: 9px; }
  .terminal-footer { gap: 8px; align-items: flex-start; flex-direction: column; justify-content: center; }
  .lab-status { grid-template-columns: 1fr 1fr; }
  .metric-card { min-height: 132px; grid-template-columns: 1fr; }
  .metric-card span { justify-self: start; }
  .project-link { padding: 22px; }
  .application-grid { grid-template-columns: 1fr; }
  .application-card { min-height: 290px; }
  .app-symbol { margin-top: 40px; }
  .application-card h3 { margin-top: 36px; }
  .connect { padding-top: 20px; }
  .connect-panel { width: 100%; min-height: 520px; padding: 56px 20px; border-radius: 0; border-inline: 0; }
  .connect-panel h2 { font-size: 42px; }
  .connect-actions { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .site-footer p { justify-self: start; text-align: left; }
  .footer-meta { justify-content: flex-start; }
}

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