:root {
  --bg: #080b0f;
  --bg-soft: #0d1117;
  --surface: #10151c;
  --surface-2: #161c24;
  --text: #f1f4ed;
  --muted: #8f9a9b;
  --muted-2: #5c6769;
  --line: rgba(226, 236, 230, 0.13);
  --line-strong: rgba(226, 236, 230, 0.24);
  --acid: #c7ff43;
  --acid-soft: rgba(199, 255, 67, 0.12);
  --cyan: #59e6ff;
  --warm: #ff8e5b;
  --shadow: rgba(0, 0, 0, 0.42);
  --header-height: 76px;
  --mono: "DM Mono", "SFMono-Regular", Consolas, monospace;
  --display: "Space Grotesk", "Noto Sans SC", sans-serif;
  --sans: "Noto Sans SC", system-ui, sans-serif;
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #eef0e9;
  --bg-soft: #e6e9e0;
  --surface: #f8f9f4;
  --surface-2: #dfe3d9;
  --text: #11150f;
  --muted: #5e685e;
  --muted-2: #7f887e;
  --line: rgba(17, 21, 15, 0.14);
  --line-strong: rgba(17, 21, 15, 0.27);
  --acid: #4d7100;
  --acid-soft: rgba(92, 130, 8, 0.12);
  --cyan: #006b7a;
  --warm: #b44717;
  --shadow: rgba(31, 37, 27, 0.15);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 20px); }
body { margin: 0; min-width: 320px; overflow-x: hidden; background: var(--bg); color: var(--text); font-family: var(--sans); line-height: 1.6; transition: background-color .35s ease, color .35s ease; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
::selection { background: var(--acid); color: #0a0d08; }

.skip-link { position: fixed; left: 16px; top: -80px; z-index: 1000; padding: 12px 18px; background: var(--acid); color: #0a0d08; font-weight: 700; transition: top .2s; }
.skip-link:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--acid); outline-offset: 4px; }
.reading-progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 1000; }
.reading-progress span { display: block; width: 0; height: 100%; background: var(--acid); box-shadow: 0 0 12px var(--acid); }
.noise { position: fixed; inset: 0; z-index: 999; opacity: .035; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E"); }
.ambient { position: fixed; border-radius: 50%; filter: blur(120px); pointer-events: none; opacity: .13; z-index: -1; }
.ambient-one { width: 38vw; height: 38vw; background: var(--acid); top: 15vh; right: -20vw; }
.ambient-two { width: 34vw; height: 34vw; background: var(--cyan); top: 140vh; left: -24vw; opacity: .08; }
.cursor-glow { width: 360px; height: 360px; position: fixed; left: 0; top: 0; border-radius: 50%; pointer-events: none; z-index: 0; opacity: .1; background: radial-gradient(circle, var(--acid) 0, transparent 68%); transform: translate3d(-50%, -50%, 0); mix-blend-mode: screen; }
[data-theme="light"] .cursor-glow { opacity: .055; mix-blend-mode: multiply; }

.site-header { height: var(--header-height); position: fixed; z-index: 100; inset: 0 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(20px, 4vw, 64px); border-bottom: 1px solid transparent; transition: background .3s, border-color .3s, transform .3s; }
.site-header.scrolled { background: color-mix(in srgb, var(--bg) 82%, transparent); border-color: var(--line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.site-header.header-hidden { transform: translateY(-100%); }
.brand { display: inline-flex; align-items: center; gap: 11px; min-height: 44px; }
.brand-mark { position: relative; width: 27px; height: 27px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 3px; transform: rotate(45deg); }
.brand-mark i { display: block; border: 1px solid var(--text); transition: background .25s, transform .25s; }
.brand:hover .brand-mark i:nth-child(1), .brand:hover .brand-mark i:nth-child(4) { background: var(--acid); transform: scale(.65); }
.brand-copy { display: grid; line-height: 1; gap: 4px; }
.brand-copy b { font: 700 13px/1 var(--display); letter-spacing: .18em; }
.brand-copy small { color: var(--muted); font: 400 8px/1 var(--mono); letter-spacing: .2em; }
.desktop-nav { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 38px; }
.desktop-nav a { position: relative; padding: 13px 0; color: var(--muted); font-size: 13px; transition: color .2s; }
.desktop-nav a::after { content: ""; position: absolute; left: 0; bottom: 7px; width: 100%; height: 1px; background: var(--acid); transform: scaleX(0); transform-origin: right; transition: transform .3s cubic-bezier(.22,1,.36,1); }
.desktop-nav a:hover { color: var(--text); }
.desktop-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header-actions { display: flex; align-items: center; gap: 7px; }
.icon-button, .menu-toggle { width: 44px; height: 44px; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; border-radius: 50%; transition: background .2s, transform .2s; }
.icon-button:hover, .menu-toggle:hover { background: var(--acid-soft); }
.icon-button:active, .menu-toggle:active { transform: scale(.94); }
.icon-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.moon-icon { display: none; }
[data-theme="light"] .sun-icon { display: none; }
[data-theme="light"] .moon-icon { display: block; }
.menu-toggle { display: none; position: relative; }
.menu-toggle span { position: absolute; width: 19px; height: 1px; background: currentColor; transition: transform .3s, top .3s; }
.menu-toggle span:first-child { top: 18px; }.menu-toggle span:last-child { top: 25px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }.menu-toggle[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }
.mobile-menu { position: fixed; z-index: 90; inset: 0; background: var(--bg); padding: 120px 24px 36px; display: flex; flex-direction: column; justify-content: space-between; visibility: hidden; opacity: 0; transform: translateY(-20px); transition: opacity .3s, transform .3s, visibility .3s; }
.mobile-menu.open { visibility: visible; opacity: 1; transform: none; }
.mobile-menu nav { display: grid; }
.mobile-menu nav a { display: flex; align-items: baseline; gap: 18px; border-bottom: 1px solid var(--line); padding: 22px 0; font: 600 clamp(28px, 8vw, 42px)/1.2 var(--display); }
.mobile-menu nav span { color: var(--acid); font: 400 10px/1 var(--mono); }
.mobile-menu p { color: var(--muted); font: 400 10px/1 var(--mono); letter-spacing: .16em; }
.embedded-side-index { position: fixed; z-index: 70; top: 50%; left: max(20px, calc((100vw - 1500px)/2)); transform: translateY(-50%); display: flex; align-items: center; gap: 13px; color: rgba(255,255,255,.55); mix-blend-mode: difference; }
.embedded-side-line { position: relative; width: 1px; height: 128px; background: rgba(255,255,255,.25); }
.embedded-side-line i { position: absolute; left: 0; top: 0; width: 1px; height: 24px; background: white; transition: transform .4s cubic-bezier(.22,1,.36,1); }
.embedded-side-index nav { display: grid; gap: 5px; }
.embedded-side-index a { min-width: 70px; height: 27px; display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.42); font: 400 8px var(--mono); letter-spacing: .08em; transition: color .25s; }
.embedded-side-index a span { opacity: 0; transform: translateX(-5px); transition: .25s; }
.embedded-side-index a:hover span,.embedded-side-index a.active span { opacity: 1; transform: none; }
.embedded-side-index a.active { color: white; }

.hero { min-height: 100svh; position: relative; padding: calc(var(--header-height) + 9vh) clamp(20px, 6vw, 96px) 8vh; display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(420px, .97fr); align-items: center; gap: clamp(40px, 6vw, 100px); overflow: hidden; }
.hero-grid { position: absolute; inset: 0; z-index: -2; opacity: .25; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 80px 80px; mask-image: linear-gradient(to bottom, transparent, black 18%, black 70%, transparent); }
.hero-grid::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, transparent 35%, transparent 75%, var(--bg) 100%); }
.hero-copy { position: relative; z-index: 2; }
.eyebrow, .section-index { color: var(--muted); font: 500 10px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.status-dot { width: 7px; height: 7px; background: var(--acid); border-radius: 50%; box-shadow: 0 0 0 5px var(--acid-soft), 0 0 18px var(--acid); animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px transparent, 0 0 5px var(--acid); } }
.hero h1 { margin: 0; font: 700 clamp(54px, 7.2vw, 112px)/.94 var(--display); letter-spacing: -.07em; }
.hero h1 span, .hero h1 em { display: block; }
.hero h1 em { color: var(--acid); font-style: normal; -webkit-text-stroke: 1px var(--acid); text-shadow: 0 0 50px color-mix(in srgb, var(--acid) 18%, transparent); }
.hero-intro { max-width: 650px; margin: 35px 0 0; padding-left: 22px; border-left: 1px solid var(--line-strong); color: var(--muted); font-size: clamp(14px, 1.2vw, 17px); line-height: 1.9; }
.hero-intro strong { color: var(--acid); font: 500 .95em var(--mono); }
.hero-cta { display: flex; align-items: center; gap: 30px; margin-top: 38px; }
.primary-button, .outline-button { min-height: 52px; display: inline-flex; justify-content: center; align-items: center; gap: 36px; padding: 0 23px; border: 1px solid var(--acid); color: #0b0e08; background: var(--acid); font-weight: 700; font-size: 13px; cursor: pointer; transition: box-shadow .25s, color .25s, background .25s; }
.primary-button:hover { box-shadow: 0 0 34px color-mix(in srgb, var(--acid) 24%, transparent); }
.primary-button span, .outline-button span { font: 400 17px var(--mono); }
.text-link { min-height: 44px; display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13px; }
.text-link span { transition: transform .25s; }.text-link:hover { color: var(--text); }.text-link:hover span { transform: translateX(5px); }
.hero-lab { position: relative; width: min(100%, 650px); justify-self: end; background: color-mix(in srgb, var(--surface) 91%, transparent); border: 1px solid var(--line); box-shadow: 0 35px 100px var(--shadow); transform: perspective(1000px) rotateY(-3deg) rotateX(2deg); transform-style: preserve-3d; }
.hero-lab::before { content: ""; position: absolute; z-index: -1; inset: -1px; background: linear-gradient(135deg, transparent 28%, var(--acid) 50%, transparent 72%); opacity: .25; filter: blur(12px); }
.lab-toolbar { height: 42px; border-bottom: 1px solid var(--line); padding: 0 14px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font: 400 10px/1 var(--mono); }
.lab-toolbar div { display: flex; gap: 6px; }.lab-toolbar i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted-2); }
.hero-lab pre { margin: 0; padding: clamp(24px, 3vw, 42px); overflow: hidden; font: 400 clamp(11px, 1vw, 14px)/1.9 var(--mono); color: #b6c0bc; }
[data-theme="light"] .hero-lab pre { color: #455047; }
.line-no { color: var(--muted-2); user-select: none; }.code-key { color: #ff789d; }.code-string { color: #e5c07b; }.code-type { color: var(--cyan); }.code-fn { color: #c8a8ff; }.code-number { color: var(--acid); }
.scope { border-top: 1px solid var(--line); padding: 16px 20px 12px; background: color-mix(in srgb, var(--bg-soft) 80%, transparent); }
.scope svg { display: block; width: 100%; height: 100px; overflow: visible; }.scope-grid { stroke: var(--line); stroke-width: 1; fill: none; }.wave { fill: none; stroke: var(--acid); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-dasharray: 900; stroke-dashoffset: 900; animation: drawWave 3s cubic-bezier(.22,1,.36,1) forwards .5s; }.wave-shadow { stroke-width: 10; opacity: .12; filter: blur(4px); }
@keyframes drawWave { to { stroke-dashoffset: 0; } }
.scope-meta { display: flex; gap: 24px; color: var(--muted); font: 400 8px/1 var(--mono); letter-spacing: .12em; }.scope-meta span:last-child { margin-left: auto; color: var(--acid); }
.floating-chip { position: absolute; border: 1px solid var(--line-strong); background: var(--bg); padding: 8px 11px; color: var(--muted); font: 400 8px/1 var(--mono); letter-spacing: .12em; box-shadow: 0 8px 28px var(--shadow); animation: float 4s ease-in-out infinite; }
.chip-one { right: -24px; top: 19%; }.chip-two { left: -25px; bottom: 23%; animation-delay: -2s; }
@keyframes float { 50% { transform: translateY(-9px); } }
.scroll-cue { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 11px; color: var(--muted-2); font: 400 8px/1 var(--mono); letter-spacing: .18em; }
.scroll-cue span { width: 32px; height: 1px; background: var(--line-strong); position: relative; overflow: hidden; }.scroll-cue span::after { content: ""; position: absolute; inset: 0; background: var(--acid); transform: translateX(-100%); animation: scan 2s ease-in-out infinite; }
@keyframes scan { 50%,100% { transform: translateX(100%); } }

.signal-strip { overflow: hidden; border-block: 1px solid var(--line); background: var(--acid); color: #10140c; transform: rotate(-1deg) scale(1.02); }
.signal-track { width: max-content; height: 44px; display: flex; align-items: center; animation: marquee 28s linear infinite; }
.signal-track span { padding: 0 25px; font: 600 9px/1 var(--mono); letter-spacing: .18em; }.signal-track i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
@keyframes marquee { to { transform: translateX(-50%); } }

.section { padding: clamp(100px, 12vw, 180px) clamp(20px, 6vw, 96px); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; padding-bottom: 38px; border-bottom: 1px solid var(--line); }
.section-heading h2 { margin: 16px 0 0; font: 650 clamp(42px, 5.5vw, 82px)/1 var(--display); letter-spacing: -.055em; }
.section-heading p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.9; text-align: right; }
.filter-row { display: flex; gap: 8px; margin: 34px 0; overflow-x: auto; scrollbar-width: none; }.filter-row::-webkit-scrollbar { display: none; }
.filter-button { flex: 0 0 auto; min-height: 44px; padding: 0 17px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 12px; cursor: pointer; transition: .2s; }
.filter-button span { margin-left: 8px; font: 400 9px var(--mono); opacity: .65; }.filter-button:hover, .filter-button.active { color: #0b0e08; background: var(--acid); border-color: var(--acid); }
.article-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.article-card { position: relative; min-height: 330px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: border-color .25s, opacity .35s, transform .35s; transform-style: preserve-3d; }
.article-card:hover { border-color: var(--line-strong); }.article-card.is-hidden { display: none; }.article-card.filtering { opacity: 0; transform: translateY(15px); }
.article-card a::before { content: ""; position: absolute; inset: 0; }
.feature-card { grid-column: span 7; grid-row: span 2; }.compact-card { grid-column: span 5; }.wide-card { grid-column: span 7; display: grid; grid-template-columns: 1fr auto; }
.card-visual { height: 340px; position: relative; border-bottom: 1px solid var(--line); background: #0b100d; overflow: hidden; }
[data-theme="light"] .card-visual { background: #182017; }
.circuit-visual { display: grid; place-items: center; background-image: radial-gradient(circle at 50% 45%, rgba(199,255,67,.12), transparent 35%), linear-gradient(rgba(199,255,67,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(199,255,67,.035) 1px, transparent 1px); background-size: auto, 22px 22px, 22px 22px; }
.circuit-visual svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: rgba(199,255,67,.38); stroke-width: 1.3; }.circuit-visual circle { fill: var(--acid); stroke: none; filter: drop-shadow(0 0 5px var(--acid)); }
.chip-core { position: relative; z-index: 2; width: 166px; aspect-ratio: 1.35; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid rgba(199,255,67,.6); background: #121a11; color: var(--acid); box-shadow: 0 0 0 8px rgba(199,255,67,.025), 0 18px 60px rgba(0,0,0,.5); font: 500 19px/1 var(--mono); letter-spacing: .1em; animation: chipGlow 3s ease-in-out infinite; }
.chip-core::after { content: ""; position: absolute; top: 7px; left: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--acid); }.chip-core small { margin-top: 9px; color: rgba(199,255,67,.5); font-size: 7px; letter-spacing: .18em; }
@keyframes chipGlow { 50% { box-shadow: 0 0 0 12px rgba(199,255,67,.035), 0 20px 70px rgba(0,0,0,.6), 0 0 35px rgba(199,255,67,.08); } }
.pin { position: absolute; z-index: 1; width: 35px; height: 4px; background: linear-gradient(90deg, rgba(199,255,67,.2), var(--acid)); }.p1,.p2,.p3,.p4 { right: calc(50% + 83px); }.p5,.p6,.p7,.p8 { left: calc(50% + 83px); transform: rotate(180deg); }.p1,.p5 { top: calc(50% - 42px); }.p2,.p6 { top: calc(50% - 14px); }.p3,.p7 { top: calc(50% + 14px); }.p4,.p8 { top: calc(50% + 42px); }
.visual-label { position: absolute; left: 18px; bottom: 14px; color: rgba(199,255,67,.45); font: 400 8px/1 var(--mono); letter-spacing: .16em; }
.card-body { position: relative; z-index: 2; padding: clamp(24px, 3vw, 38px); }
.article-meta { display: flex; align-items: center; gap: 12px; color: var(--muted); font: 400 9px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }.article-meta span:first-child { color: var(--acid); }.article-meta span + span::before, .article-meta time + span::before { content: "·"; margin-right: 12px; color: var(--muted-2); }
.article-card h3 { margin: 23px 0 14px; max-width: 720px; font: 600 clamp(22px, 2.3vw, 36px)/1.35 var(--display); letter-spacing: -.035em; }.article-card p { margin: 0; color: var(--muted); font-size: 13px; }.article-card .card-body > a, .wide-copy > a { display: inline-flex; align-items: center; gap: 9px; margin-top: 27px; color: var(--text); font-size: 12px; }.article-card a span { transition: transform .25s; }.article-card:hover a span { transform: translate(3px,-3px); }
.compact-card { display: flex; flex-direction: column; justify-content: space-between; }.compact-card .card-body { padding-top: 0; }.compact-card h3 { font-size: clamp(22px, 2vw, 31px); }.compact-card .card-body > a { position: absolute; right: 28px; bottom: 28px; width: 45px; height: 45px; margin: 0; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; transition: background .2s, color .2s, transform .25s; }.compact-card:hover .card-body > a { background: var(--acid); color: #0a0d08; transform: rotate(45deg); }
.article-number { align-self: flex-end; margin: 24px 27px 40px; color: var(--line-strong); font: 600 clamp(70px, 8vw, 118px)/.8 var(--display); letter-spacing: -.09em; transition: color .3s; }.compact-card:hover .article-number { color: var(--acid-soft); }
.accent-card { background: var(--acid); color: #0a0d08; }.accent-card .article-meta, .accent-card p { color: rgba(10,13,8,.62); }.accent-card .article-meta span:first-child { color: #0a0d08; }.accent-card .article-number { color: rgba(10,13,8,.13); }.accent-card .compact-card:hover .article-number { color: rgba(10,13,8,.2); }.accent-card .card-body > a { border-color: rgba(10,13,8,.25); color: #0a0d08; }.accent-card:hover .card-body > a { background: #0a0d08; color: var(--acid); }
.wide-card { min-height: 370px; background: linear-gradient(135deg, var(--surface), var(--bg-soft)); }.wide-copy { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }.year-display { min-width: 200px; padding: 25px; border-left: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; align-items: center; background-image: repeating-linear-gradient(0deg, transparent 0 9px, var(--line) 10px); }.year-display span, .year-display small { font: 400 8px/1 var(--mono); letter-spacing: .18em; color: var(--muted); }.year-display strong { font: 600 106px/.9 var(--display); color: var(--acid); letter-spacing: -.1em; }

.projects-section { position: relative; background: #c7ff43; color: #0c1108; overflow: hidden; }.projects-section::before { content: ""; position: absolute; inset: 0; opacity: .12; background-image: linear-gradient(#0c1108 1px, transparent 1px), linear-gradient(90deg, #0c1108 1px, transparent 1px); background-size: 70px 70px; }.section-heading.light { position: relative; border-color: rgba(12,17,8,.25); }.section-heading.light .section-index, .section-heading.light p { color: rgba(12,17,8,.62); }
.project-stage { position: relative; margin-top: 48px; min-height: 620px; display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; border: 1px solid rgba(12,17,8,.25); background: rgba(238,255,199,.35); backdrop-filter: blur(6px); }
.project-copy { padding: clamp(32px, 5vw, 72px); }.live-badge { display: inline-flex; align-items: center; gap: 9px; padding: 8px 11px; border: 1px solid rgba(12,17,8,.25); font: 500 8px/1 var(--mono); letter-spacing: .14em; }.live-badge i { width: 6px; height: 6px; background: #0c1108; border-radius: 50%; animation: pulseDark 2s infinite; }
@keyframes pulseDark { 50% { opacity: .2; } }
.project-index { margin: 42px 0 12px; color: rgba(12,17,8,.5); font: 400 9px/1 var(--mono); letter-spacing: .16em; }.project-copy h3 { margin: 0; font: 650 clamp(44px, 6vw, 88px)/.98 var(--display); letter-spacing: -.065em; }.project-desc { max-width: 560px; margin: 30px 0 0; color: rgba(12,17,8,.65); font-size: 14px; line-height: 1.9; }.project-stack { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 30px; }.project-stack span { padding: 7px 10px; border: 1px solid rgba(12,17,8,.25); font: 400 8px/1 var(--mono); letter-spacing: .1em; }
.project-progress { margin-top: 45px; max-width: 480px; }.project-progress div { display: flex; justify-content: space-between; font: 500 9px/1 var(--mono); letter-spacing: .12em; }.project-progress i { display: block; height: 3px; margin-top: 12px; background: rgba(12,17,8,.18); overflow: hidden; }.project-progress em { display: block; width: 68%; height: 100%; background: #0c1108; transform-origin: left; animation: progressIn 1.2s cubic-bezier(.22,1,.36,1) both; }
@keyframes progressIn { from { transform: scaleX(0); } }
.device-scene { position: relative; min-height: 100%; display: grid; place-items: center; overflow: hidden; perspective: 1000px; }.device-scene::after { content: ""; position: absolute; width: 55%; height: 7%; bottom: 17%; border-radius: 50%; background: rgba(12,17,8,.25); filter: blur(20px); }
.orbit { position: absolute; border: 1px solid rgba(12,17,8,.18); border-radius: 50%; animation: orbitSpin 13s linear infinite; }.orbit::after { content: ""; position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #0c1108; top: 50%; left: -4px; }.orbit-one { width: 520px; height: 520px; }.orbit-two { width: 380px; height: 380px; animation-direction: reverse; animation-duration: 9s; }.orbit-two::after { top: auto; left: auto; right: 10%; bottom: 10%; }
@keyframes orbitSpin { to { transform: rotate(360deg); } }
.device { position: relative; z-index: 2; width: min(58%, 400px); aspect-ratio: 1.08; border: 3px solid #0c1108; border-radius: 24px; background: #242a23; box-shadow: inset 0 0 0 7px #353c33, 25px 35px 0 rgba(12,17,8,.12); transform: rotateY(-12deg) rotateX(6deg) rotateZ(2deg); animation: deviceFloat 5s ease-in-out infinite; }
@keyframes deviceFloat { 50% { transform: rotateY(-8deg) rotateX(3deg) rotateZ(-1deg) translateY(-12px); } }
.device-screen { position: absolute; inset: 12% 10% 21%; padding: 8% 9%; border: 2px solid #0c1108; border-radius: 8px; background: #07100b; color: var(--acid); box-shadow: inset 0 0 25px rgba(199,255,67,.06); font-family: var(--mono); }.screen-head { display: flex; justify-content: space-between; color: rgba(199,255,67,.5); font-size: 7px; letter-spacing: .14em; }.screen-head i { width: 5px; height: 5px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 7px var(--acid); }.device-screen > strong { display: block; margin-top: 12%; font: 500 clamp(34px, 5vw, 67px)/1 var(--mono); letter-spacing: -.08em; }.device-screen sup { font-size: .33em; vertical-align: top; }.screen-stats { display: flex; gap: 25px; margin-top: 10%; color: rgba(199,255,67,.45); font-size: 7px; }.screen-stats span { display: grid; gap: 2px; }.screen-stats b { color: var(--acid); font-size: 11px; }.device-screen svg { width: 100%; height: 44px; margin-top: 7%; }.device-screen path { fill: none; stroke: var(--acid); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.device-screw { position: absolute; width: 8px; height: 8px; border: 1px solid #090d09; border-radius: 50%; background: #60675d; }.s1{left:5%;top:6%}.s2{right:5%;top:6%}.s3{left:5%;bottom:6%}.s4{right:5%;bottom:6%}.device-port { position: absolute; left: 41%; bottom: -5px; width: 19%; height: 13px; border: 2px solid #0c1108; border-radius: 4px; background: #141914; }
.measure { position: absolute; color: rgba(12,17,8,.6); font: 400 7px/1 var(--mono); letter-spacing: .12em; }.measure span { color: #0c1108; margin-right: 6px; }.m1 { top: 17%; left: 8%; }.m2 { right: 7%; bottom: 16%; }

.about-section { padding-block: clamp(120px, 15vw, 210px); }.about-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(50px, 8vw, 140px); }.about-title { grid-row: span 2; }.about-title h2 { margin: 25px 0 0; font: 600 clamp(46px, 6vw, 91px)/1.08 var(--display); letter-spacing: -.06em; }.about-title em { color: var(--muted-2); font-style: normal; }.about-copy { padding-top: 35px; }.about-copy p { margin: 0 0 22px; max-width: 600px; color: var(--muted); font-size: 15px; line-height: 2; }.outline-button { margin-top: 20px; color: var(--text); background: transparent; border-color: var(--line-strong); }.outline-button:hover { border-color: var(--acid); background: var(--acid); color: #0a0d08; }
.learning-panel { align-self: end; margin-top: 40px; border: 1px solid var(--line); background: var(--surface); }.panel-header { display: flex; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); color: var(--muted); font: 400 8px/1 var(--mono); letter-spacing: .12em; }.panel-header small { color: var(--acid); }.learning-panel ul { list-style: none; margin: 0; padding: 0; }.learning-panel li { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 15px; padding: 18px 20px; border-bottom: 1px solid var(--line); }.learning-panel li:last-child { border: 0; }.learning-panel li > span { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--acid) var(--progress), var(--line) 0); }.learning-panel li > span::after { content: ""; width: 29px; height: 29px; border-radius: 50%; background: var(--surface); }.learning-panel li div { display: grid; gap: 3px; }.learning-panel li b { font: 500 11px/1.2 var(--mono); letter-spacing: .04em; }.learning-panel li small { color: var(--muted); font-size: 10px; }.learning-panel li em { color: var(--muted); font: 400 9px/1 var(--mono); font-style: normal; }

.closing-section { min-height: 72vh; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border-top: 1px solid var(--line); overflow: hidden; padding: 100px 20px; }.closing-section > p { color: var(--acid); font: 500 9px/1 var(--mono); letter-spacing: .2em; }.closing-section h2 { position: relative; z-index: 2; margin: 22px 0 42px; font: 650 clamp(55px, 9vw, 140px)/.94 var(--display); letter-spacing: -.075em; }.closing-section h2 span { color: transparent; -webkit-text-stroke: 1px var(--muted-2); }.closing-orbit { position: absolute; width: min(65vw, 900px); aspect-ratio: 1; border: 1px solid var(--line); border-radius: 50%; }.closing-orbit::before, .closing-orbit::after { content: ""; position: absolute; inset: 13%; border: 1px solid var(--line); border-radius: 50%; }.closing-orbit::after { inset: 27%; border-color: var(--acid-soft); }
footer { min-height: 110px; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 25px clamp(20px, 4vw, 64px); border-top: 1px solid var(--line); color: var(--muted); }.footer-brand { color: var(--text); }.footer-brand + p { font: 400 8px/1 var(--mono); letter-spacing: .15em; }.footer-links { display: flex; align-items: center; gap: 22px; font: 400 8px/1 var(--mono); letter-spacing: .1em; }.footer-links a { min-height: 44px; display: flex; align-items: center; transition: color .2s; }.footer-links a:hover { color: var(--acid); }

.search-dialog, .article-dialog { padding: 0; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); box-shadow: 0 30px 100px rgba(0,0,0,.55); }.search-dialog { width: min(680px, calc(100% - 32px)); margin-top: 15vh; }.search-dialog::backdrop, .article-dialog::backdrop { background: rgba(3,5,7,.75); backdrop-filter: blur(8px); }.dialog-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 13px; padding: 16px; border-bottom: 1px solid var(--line); }.dialog-head svg { width: 19px; fill: none; stroke: var(--muted); stroke-width: 1.7; }.dialog-head input { width: 100%; min-height: 42px; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 15px; }.dialog-head input::placeholder { color: var(--muted-2); }.dialog-close { padding: 6px 8px; border: 1px solid var(--line); background: var(--bg); color: var(--muted); font: 400 8px var(--mono); cursor: pointer; }.search-results { max-height: 390px; overflow: auto; padding: 8px; }.search-item { width: 100%; min-height: 68px; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; gap: 20px; border: 0; background: transparent; color: var(--text); text-align: left; cursor: pointer; }.search-item:hover, .search-item.active { background: var(--acid-soft); }.search-item div { display: grid; gap: 5px; }.search-item b { font-size: 13px; }.search-item small, .search-empty { color: var(--muted); font: 400 9px var(--mono); }.search-item > span { color: var(--acid); }.search-empty { padding: 36px 15px; text-align: center; }.dialog-hint { display: flex; gap: 18px; padding: 12px 16px; border-top: 1px solid var(--line); color: var(--muted-2); font: 400 8px var(--mono); }
.article-dialog { width: min(760px, calc(100% - 32px)); max-height: 84vh; }.article-close { position: sticky; z-index: 2; float: right; top: 15px; right: 15px; width: 44px; height: 44px; margin: 15px; border: 1px solid var(--line); border-radius: 50%; background: var(--bg); color: var(--text); font: 300 24px/1 var(--sans); cursor: pointer; }.article-dialog-content { padding: clamp(34px, 6vw, 75px); padding-top: 45px; }.article-dialog-content .article-meta { margin-bottom: 25px; }.article-dialog-content h2 { max-width: 600px; margin: 0 0 25px; font: 650 clamp(34px, 5vw, 62px)/1.13 var(--display); letter-spacing: -.05em; }.article-dialog-content .lead { color: var(--muted); font-size: 17px; line-height: 1.9; }.article-dialog-content .preview-note { margin-top: 40px; padding: 18px; border-left: 2px solid var(--acid); background: var(--acid-soft); color: var(--muted); font-size: 13px; }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s cubic-bezier(.22,1,.36,1), transform .8s cubic-bezier(.22,1,.36,1); transition-delay: var(--delay, 0ms); }.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 1050px) {
  .embedded-side-index { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 150px; padding-bottom: 130px; }.hero-copy { max-width: 800px; }.hero-lab { width: min(82%, 650px); justify-self: center; margin-top: 25px; }.scroll-cue { bottom: 55px; }
  .feature-card, .wide-card { grid-column: span 12; }.compact-card { grid-column: span 6; }.project-stage { grid-template-columns: 1fr; }.device-scene { min-height: 620px; }.about-layout { gap: 70px; }
}

@media (max-width: 760px) {
  :root { --header-height: 68px; }.desktop-nav { display: none; }.menu-toggle { display: grid; }.site-header { padding-inline: 16px; }
  .hero { display: block; min-height: auto; padding: 135px 20px 115px; }.hero h1 { font-size: clamp(52px, 15vw, 82px); }.hero-intro { margin-top: 28px; }.hero-cta { align-items: flex-start; flex-direction: column; gap: 12px; }.primary-button { width: 100%; }.hero-lab { width: calc(100% - 8px); margin: 75px auto 0; transform: none; }.hero-lab pre { font-size: 10px; }.floating-chip { display: none; }.scroll-cue { display: none; }
  .section { padding-inline: 20px; }.section-heading { align-items: flex-start; flex-direction: column; }.section-heading p { text-align: left; }.filter-row { margin-right: -20px; padding-right: 20px; }
  .article-grid { display: grid; grid-template-columns: 1fr; }.feature-card, .compact-card, .wide-card { grid-column: auto; }.compact-card { min-height: 310px; }.card-visual { height: 270px; }.wide-card { grid-template-columns: 1fr; }.year-display { min-height: 200px; border-left: 0; border-top: 1px solid var(--line); }.article-meta { flex-wrap: wrap; row-gap: 8px; }
  .projects-section { padding-inline: 14px; }.projects-section .section-heading { margin-inline: 6px; }.project-stage { min-height: 0; }.project-copy { padding: 34px 24px 45px; }.device-scene { min-height: 450px; }.orbit-one { width: 410px; height: 410px; }.orbit-two { width: 300px; height: 300px; }.device { width: 66%; }.m1 { left: 4%; }.m2 { right: 4%; }
  .about-layout { display: block; }.about-copy { margin-top: 50px; }.learning-panel { margin-top: 60px; }.about-title h2 { font-size: clamp(43px, 12vw, 66px); }
  .closing-section { min-height: 70svh; }.closing-orbit { width: 105vw; }.closing-section h2 { font-size: clamp(52px, 16vw, 86px); }
  footer { align-items: flex-start; flex-direction: column; }.footer-brand + p { order: 3; }.footer-links { width: 100%; }.footer-links span { margin-left: auto; }
  .cursor-glow { display: none; }
}

@media (max-width: 420px) {
  .header-actions { gap: 0; }.search-trigger { display: none; }.hero h1 { font-size: 51px; }.hero-lab pre { padding: 20px 12px; font-size: 8.5px; }.scope { padding-inline: 12px; }.article-card h3 { font-size: 24px; }.device-scene { min-height: 400px; }.device { width: 76%; }
}

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