:root {
  --ink: #07110f;
  --panel: #0b1714;
  --paper: #f2f0e8;
  --muted: #9ca9a3;
  --line: rgba(242, 240, 232, 0.16);
  --lime: #c8ff3d;
  --blue: #48a9ff;
  --orange: #ff8b45;
  --violet: #b593ff;
  --display: "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: Arial, Helvetica, sans-serif; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0; z-index: 20; pointer-events: none; opacity: .045; background-image: repeating-linear-gradient(115deg, transparent 0 3px, rgba(255,255,255,.6) 3.5px 4px), repeating-linear-gradient(25deg, transparent 0 7px, rgba(255,255,255,.28) 7.5px 8px); background-size: 11px 13px, 17px 19px; }
a { color: inherit; }
.skip-link { position: fixed; left: 1rem; top: -4rem; background: var(--lime); color: var(--ink); padding: .8rem 1rem; z-index: 100; }
.skip-link:focus { top: 1rem; }

.site-header { position: absolute; z-index: 10; top: 0; left: 0; width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 1.5rem 3vw; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 2.7rem; height: 2.7rem; background: var(--lime); color: var(--ink); font: 900 1rem var(--mono); border-radius: 2px; transform: rotate(-3deg); text-decoration: none; }
.brand-copy { display: grid; gap: .18rem; }
.brand-copy strong { font: 700 .78rem var(--mono); letter-spacing: .02em; }
.brand-copy small { color: var(--muted); font: 500 .55rem var(--mono); letter-spacing: .12em; }
nav { display: flex; align-items: center; gap: 2rem; }
nav a { color: #c2ccc7; font: 600 .72rem var(--mono); text-decoration: none; text-transform: uppercase; letter-spacing: .07em; }
nav a:hover, nav a:focus-visible { color: var(--lime); }
.nav-cta { border: 1px solid var(--line); padding: .75rem 1rem; }
.menu-button { display: none; background: transparent; border: 1px solid var(--line); color: var(--paper); padding: .6rem .8rem; font: 700 .7rem var(--mono); text-transform: uppercase; }
.language-switch { display: flex; align-items: center; gap: .45rem; padding-left: .8rem; border-left: 1px solid var(--line); }
.language-switch i { color: var(--muted); font-style: normal; }
.language-switch a { color: var(--muted); }
.language-switch a[aria-current="page"] { color: var(--lime); text-decoration: underline; text-underline-offset: .3rem; }
.language-redirect { min-height: 100svh; display: grid; place-items: center; text-align: center; background: var(--paper); color: var(--ink); }
.language-redirect main { font: 700 .75rem/1.8 var(--mono); letter-spacing: .05em; text-transform: uppercase; }
.language-redirect a { text-underline-offset: .25rem; }

.hero { min-height: 760px; height: 100svh; padding: 8.5rem 3vw 3rem; position: relative; display: grid; grid-template-columns: .92fr 1.08fr; gap: 3vw; align-items: center; overflow: hidden; }
.hero-grid { position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 6.25vw 6.25vw; mask-image: linear-gradient(to bottom, black, transparent 90%); }
.hero-copy, .network-wrap { position: relative; z-index: 1; }
.eyebrow { font: 700 .68rem var(--mono); letter-spacing: .12em; color: #b9c2bd; text-transform: uppercase; }
.status-dot { display: inline-block; width: .48rem; height: .48rem; margin-right: .55rem; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 .25rem rgba(200,255,61,.12), 0 0 1rem var(--lime); animation: blink 2s infinite; }
h1 { font: 800 clamp(3.5rem, 7.1vw, 8.8rem)/.78 var(--display); letter-spacing: -.065em; text-transform: uppercase; margin: 2rem 0 1.8rem; max-width: 12ch; }
h1 span { color: var(--lime); font-style: italic; }
.hero-intro { max-width: 39rem; color: #aeb8b3; font-size: clamp(1rem, 1.35vw, 1.25rem); line-height: 1.65; }
.hero-actions { display: flex; align-items: center; gap: 2rem; margin-top: 2.2rem; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 2rem; min-width: 13.5rem; padding: 1rem 1.15rem; text-transform: uppercase; text-decoration: none; font: 800 .7rem var(--mono); letter-spacing: .05em; transition: transform .2s, box-shadow .2s; }
.button:hover { transform: translateY(-3px); }
.button-primary { background: var(--lime); color: var(--ink); box-shadow: .45rem .45rem 0 rgba(200,255,61,.15); }
.text-link { text-decoration-thickness: 1px; text-underline-offset: .35rem; font: 700 .72rem var(--mono); text-transform: uppercase; }
.quick-stats { list-style: none; padding: 0; margin: 4rem 0 0; display: flex; border-top: 1px solid var(--line); }
.quick-stats li { flex: 1; display: grid; padding-top: 1.1rem; }
.quick-stats strong { color: var(--lime); font: 800 1.5rem var(--mono); }
.quick-stats span { color: var(--muted); margin-top: .4rem; font: .58rem var(--mono); text-transform: uppercase; letter-spacing: .08em; }

.network-wrap { height: min(650px, 76vh); min-height: 510px; border: 1px solid var(--line); background: rgba(5, 15, 13, .58); backdrop-filter: blur(8px); box-shadow: 0 30px 90px rgba(0,0,0,.35); }
.network-head, .network-foot { height: 3rem; display: flex; align-items: center; justify-content: space-between; padding: 0 1rem; font: 700 .57rem var(--mono); letter-spacing: .1em; color: var(--muted); border-bottom: 1px solid var(--line); }
.healthy { color: var(--lime); }.healthy i { display: inline-block; width: .35rem; height: .35rem; background: currentColor; margin-right: .4rem; box-shadow: 0 0 .6rem currentColor; }
.network { position: relative; height: calc(100% - 6rem); overflow: hidden; background: radial-gradient(circle at 50% 47%, rgba(200,255,61,.1), transparent 32%); }
.network::before { content: ""; position: absolute; inset: 0; background: repeating-radial-gradient(circle at 50% 47%, transparent 0 70px, rgba(200,255,61,.07) 71px 72px); }
.connections { position: absolute; inset: 0; }
.connection { position: absolute; left: 50%; top: 47%; width: var(--length); height: 1px; transform-origin: left center; transform: rotate(var(--angle)); background: repeating-linear-gradient(90deg, rgba(200,255,61,.85) 0 4px, rgba(200,255,61,.15) 4px 28px); background-size: 56px 1px; animation: data-flow 3.5s linear infinite; }
.connection::after { content: ""; position: absolute; inset: -3px 0; background: rgba(200,255,61,.08); filter: blur(5px); }
.connection-a { --length: 41%; --angle: 218deg; }.connection-b { --length: 40%; --angle: 320deg; }.connection-c { --length: 39%; --angle: 29deg; }.connection-d { --length: 36%; --angle: 123deg; }
.node { --node-color: var(--blue); position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); min-width: 5.6rem; display: grid; justify-items: center; gap: .35rem; font-family: var(--mono); }
.node::before { content: ""; position: absolute; width: 5.2rem; height: 5.2rem; top: -.65rem; border: 1px solid color-mix(in srgb, var(--node-color), transparent 66%); border-radius: 50%; animation: node-pulse 3.2s var(--delay) infinite; }
.node-icon { position: relative; display: grid; place-items: center; width: 4rem; height: 4rem; background: #10201c; color: var(--node-color); border: 1px solid color-mix(in srgb, var(--node-color), transparent 30%); box-shadow: inset 0 0 1.4rem rgba(72,169,255,.07), 0 0 1.8rem rgba(72,169,255,.08); font: 800 .8rem var(--mono); clip-path: polygon(18% 0, 82% 0, 100% 18%, 100% 82%, 82% 100%, 18% 100%, 0 82%, 0 18%); }
.node b { font-size: .52rem; letter-spacing: .06em; }.node small { color: var(--muted); font-size: .48rem; }
.node-core { --node-color: var(--lime); }.node-core .node-icon { width: 5rem; height: 5rem; font-size: 1.3rem; }
.packet { position: absolute; width: .45rem; height: .45rem; border-radius: 50%; background: var(--lime); box-shadow: 0 0 .7rem var(--lime); }
.packet-a { animation: packet-a 4s linear infinite; }.packet-b { animation: packet-b 5.3s 1s linear infinite; }.packet-c { animation: packet-c 4.7s 2s linear infinite; }
.network-foot { border: 0; border-top: 1px solid var(--line); justify-content: flex-start; gap: 2rem; }.network-foot b { color: var(--paper); }

.section { padding: 8rem 4vw; }.section-label { display: flex; gap: .6rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); color: var(--muted); font: 700 .63rem var(--mono); letter-spacing: .1em; }.section-label span { color: var(--lime); }
.about { display: grid; grid-template-columns: 1fr 3fr; gap: 4vw; }
.statement { margin: 0; max-width: 1050px; font: 800 clamp(3rem, 6vw, 7rem)/.95 var(--display); letter-spacing: -.045em; text-transform: uppercase; }.statement em { color: var(--lime); font-style: italic; }
.about-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; max-width: 850px; margin: 4rem 0 0 auto; color: #acb7b1; line-height: 1.75; }
.stack { background: var(--paper); color: var(--ink); }.stack .section-label { border-color: rgba(7,17,15,.2); }.stack-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 2rem; border: 1px solid rgba(7,17,15,.18); }
.stack-card { position: relative; min-height: 430px; padding: 1.5rem; border-right: 1px solid rgba(7,17,15,.18); display: flex; flex-direction: column; transition: background .25s, color .25s; }.stack-card:last-child { border: 0; }.stack-card:hover { background: var(--ink); color: var(--paper); }.stack-card[data-accent="blue"] { --accent: var(--blue); }.stack-card[data-accent="orange"] { --accent: var(--orange); }.stack-card[data-accent="violet"] { --accent: var(--violet); }.stack-card[data-accent="lime"] { --accent: #76a500; }
.card-index { font: 600 .6rem var(--mono); }.stack-symbol { margin: 4rem 0 2rem; color: var(--accent); font: 900 2rem var(--mono); }.stack-card h2 { margin: 0; font: 900 3rem var(--display); text-transform: uppercase; }.stack-card p { color: #59635f; line-height: 1.6; font-size: .9rem; }.stack-card:hover p { color: #aeb8b3; }.meter { height: 3px; background: rgba(128,128,128,.25); margin-top: auto; }.meter span { display: block; width: 0; height: 100%; background: var(--accent); transition: width 1.2s .2s cubic-bezier(.2,.8,.2,1); }.stack-card.visible .meter span { width: var(--level); }.stack-card small { margin-top: .8rem; font: 600 .55rem var(--mono); letter-spacing: .08em; }
.work-list { margin-top: 1.8rem; border-top: 1px solid var(--line); }.project { display: grid; grid-template-columns: .3fr 2fr 1fr .65fr; gap: 2rem; align-items: center; padding: 2.4rem 0; border-bottom: 1px solid var(--line); transition: padding .25s, background .25s; }.project:hover { padding-left: 1rem; padding-right: 1rem; background: rgba(255,255,255,.025); }.project-number { color: var(--lime); font: 700 .65rem var(--mono); }.project-type { color: var(--muted); font: 600 .55rem var(--mono); letter-spacing: .1em; }.project h2 { margin: .4rem 0; font: 800 clamp(1.8rem, 2.5vw, 3rem) var(--display); text-transform: uppercase; }.project p { color: #99a59f; max-width: 42rem; line-height: 1.5; }.project ul { list-style: none; padding: 0; color: #c0c9c4; font: .6rem/2 var(--mono); text-transform: uppercase; }.project-status { justify-self: end; color: var(--lime); font: 700 .55rem var(--mono); }.project-status span { display: inline-block; width: .4rem; height: .4rem; margin-right: .4rem; border-radius: 50%; background: var(--lime); box-shadow: 0 0 .6rem var(--lime); }.project-note { color: var(--muted); font: .58rem var(--mono); margin-top: 1.5rem; }
.playground-section { padding-top: 2rem; }
.contact { min-height: 760px; position: relative; overflow: hidden; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; padding: 7rem 6vw; background: var(--ink); color: var(--paper); text-align: left; }
.contact::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, transparent 15%, rgba(32,41,37,.08) 42%, rgba(32,41,37,.92) 72%); pointer-events: none; }
#solar-system { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.contact-content { position: relative; z-index: 2; grid-column: 2; max-width: 38rem; }
.contact .eyebrow { color: #b8c0bb; }
.contact h2 { margin: 1.5rem 0; font: 900 clamp(4rem, 8vw, 8rem)/.8 var(--display); letter-spacing: -.055em; text-transform: uppercase; }
.contact-content > p:not(.eyebrow) { max-width: 34rem; color: #c2c9c5; line-height: 1.65; }
.button-light { position: relative; z-index: 2; background: var(--paper); color: var(--ink); margin-top: 1.5rem; }
.solar-label { position: absolute; z-index: 2; left: 2rem; bottom: 1.5rem; color: #8f9b95; font: .52rem var(--mono); letter-spacing: .1em; }
footer { display: flex; align-items: center; justify-content: space-between; padding: 2rem 3vw; color: var(--muted); font: .55rem var(--mono); letter-spacing: .08em; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }.reveal.visible { opacity: 1; transform: none; }

@keyframes blink { 50% { opacity: .35; } }
@keyframes data-flow { to { background-position: 56px 0; } }
@keyframes node-pulse { 50% { transform: scale(1.2); opacity: 0; } }
@keyframes packet-a { 0% { left: 50%; top: 47%; } 100% { left: 19%; top: 20%; } }
@keyframes packet-b { 0% { left: 50%; top: 47%; } 100% { left: 84%; top: 64%; } }
@keyframes packet-c { 0% { left: 30%; top: 83%; } 100% { left: 50%; top: 47%; } }

@media (max-width: 980px) {
  .hero { height: auto; grid-template-columns: 1fr; padding-top: 9rem; }.network-wrap { height: 610px; }.hero-copy { max-width: 800px; }.about { grid-template-columns: 1fr; }.stack-grid { grid-template-columns: 1fr 1fr; }.stack-card:nth-child(2) { border-right: 0; }.stack-card:nth-child(-n+2) { border-bottom: 1px solid rgba(7,17,15,.18); }.project { grid-template-columns: .2fr 2fr .8fr; }.project-status { display: none; }
}
@media (max-width: 650px) {
  .site-header { position: absolute; padding: 1rem; }.brand-copy { display: none; }.menu-button { display: block; } nav { display: none; position: absolute; top: 4.8rem; left: 1rem; right: 1rem; padding: 1.2rem; background: #0b1714; border: 1px solid var(--line); align-items: stretch; flex-direction: column; gap: 1.2rem; } nav.open { display: flex; }.hero { min-height: 0; padding: 7rem 1rem 4rem; }.hero h1 { font-size: clamp(3.5rem, 18vw, 6rem); }.hero-actions { align-items: flex-start; flex-direction: column; gap: 1.3rem; }.quick-stats { margin-top: 3rem; }.network-wrap { min-height: 430px; height: 500px; margin-top: 2rem; }.node::before { width: 4.2rem; height: 4.2rem; }.node-icon { width: 3.2rem; height: 3.2rem; }.node-core .node-icon { width: 4rem; height: 4rem; }.network-foot { gap: 1rem; }.section { padding: 6rem 1rem; }.about-columns { grid-template-columns: 1fr; gap: 1rem; margin-top: 2.5rem; }.stack-grid { grid-template-columns: 1fr; }.stack-card { min-height: 350px; border-right: 0; border-bottom: 1px solid rgba(7,17,15,.18); }.project { grid-template-columns: 2.2rem 1fr; gap: 1rem; }.project ul { grid-column: 2; display: flex; flex-wrap: wrap; gap: 1rem; }.playground-section { padding: 1rem; }.contact { min-height: 620px; grid-template-columns: 1fr; padding: 5rem 1.2rem; text-align: center; }.contact::after { background: rgba(32,41,37,.72); }.contact-content { grid-column: 1; max-width: 34rem; margin: auto; }.contact-content > p:not(.eyebrow) { margin-inline: auto; }.contact h2 { font-size: 18vw; }.solar-label { left: 1rem; bottom: 1rem; } footer { gap: 1rem; flex-wrap: wrap; } footer p:first-of-type { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }.reveal { opacity: 1; transform: none; }.meter span { width: var(--level); }
}

/* Warm editorial theme */
:root {
  --ink: #202925;
  --panel: #2b3531;
  --paper: #f1eee6;
  --muted: #6f7872;
  --line: rgba(32, 41, 37, .19);
  --lime: #a95032;
  --blue: #556f7b;
  --orange: #b97343;
  --violet: #756c78;
}

body { background: var(--paper); color: var(--ink); }
body::before { opacity: .025; mix-blend-mode: multiply; }
.site-header { color: var(--ink); border-color: var(--line); }
.brand-mark { background: var(--ink); color: var(--paper); border-radius: 0; transform: none; }
.brand-copy small, .eyebrow { color: var(--muted); }
nav a { color: #46504b; }
nav a:hover, nav a:focus-visible { color: var(--lime); }
.nav-cta { border-color: var(--line); }

.hero { min-height: 800px; height: 100svh; grid-template-columns: 1.04fr .96fr; background: var(--paper); }
.hero-grid { opacity: .65; background-image: linear-gradient(rgba(32,41,37,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(32,41,37,.07) 1px, transparent 1px); mask-image: linear-gradient(to bottom, black, transparent 88%); }
.hero-copy, .portrait-panel { position: relative; z-index: 1; }
.hero .eyebrow { letter-spacing: .16em; }.hero .eyebrow span { color: var(--lime); margin: 0 .35rem; }
h1 { max-width: 10ch; color: var(--ink); }
h1 span { color: var(--lime); font-style: italic; }
.hero-intro { color: #59635d; max-width: 37rem; }
.button-primary { background: var(--ink); color: var(--paper); box-shadow: .45rem .45rem 0 #c8bfb0; }
.text-link { color: var(--ink); }
.quick-stats { border-color: var(--line); }
.quick-stats strong { color: var(--ink); font-size: .72rem; letter-spacing: .08em; }
.quick-stats span { color: var(--muted); }

.portrait-panel { min-height: 590px; height: min(700px, 78vh); margin: 0; padding: 0 0 2.8rem 3rem; }
.portrait-panel::before { content: ""; position: absolute; left: 0; bottom: 0; width: 58%; height: 62%; background: #d4d8d0; }
.portrait-frame { position: relative; height: 100%; overflow: hidden; background: #c8cdc5; }
.portrait-frame::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(32,41,37,.14); box-shadow: inset 0 0 0 .65rem rgba(241,238,230,.12); }
.portrait-frame img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 27%; filter: none; }
.portrait-panel figcaption { position: absolute; right: 1rem; top: 1rem; z-index: 2; display: grid; gap: .35rem; padding: .8rem 1rem; background: rgba(241,238,230,.9); color: var(--ink); font: 700 .55rem var(--mono); letter-spacing: .09em; backdrop-filter: blur(8px); }
.portrait-panel figcaption span:last-child { color: var(--muted); font-weight: 500; }.portrait-panel figcaption b { color: var(--ink); }
.system-map { position: absolute; z-index: 3; left: 0; bottom: 0; width: min(92%, 540px); background: rgba(244,241,233,.96); color: var(--ink); border: 1px solid rgba(32,41,37,.32); box-shadow: .9rem .9rem 0 rgba(32,41,37,.14); }
.system-map-head, .system-metrics { display: flex; align-items: center; justify-content: space-between; min-height: 2.6rem; padding: 0 .9rem; border-bottom: 1px solid var(--line); font: 700 .52rem var(--mono); letter-spacing: .08em; }
.healthy { color: #4c6653; }.healthy i { display: inline-block; width: .38rem; height: .38rem; margin-right: .4rem; background: #657f69; box-shadow: none; }
.system-flow { display: flex; align-items: center; padding: 1.35rem .9rem; }
.flow-node { min-width: 4.4rem; display: grid; gap: .3rem; padding: .65rem; border: 1px solid var(--line); background: #ebe6db; font: .53rem var(--mono); }.flow-node small { color: var(--muted); }
.flow-line { position: relative; flex: 1; height: 1px; background: #929b95; overflow: hidden; }.flow-line i { position: absolute; width: 1rem; height: 100%; background: var(--lime); animation: flow 2.5s linear infinite; }
.system-metrics { justify-content: flex-start; gap: 2rem; border: 0; border-top: 1px solid var(--line); color: var(--muted); }.system-metrics b { color: var(--ink); }

.section-label { border-color: var(--line); color: var(--muted); }.section-label span { color: var(--lime); }
.about { background: var(--ink); color: var(--paper); }
.about .section-label { border-color: rgba(241,238,230,.18); color: #9ea7a1; }
.about .statement em { color: #c07a5d; }
.about-columns { color: #b9c0bc; }
.stack { background: #d8ddd6; color: var(--ink); }
.stack-card { border-color: rgba(32,41,37,.22); }.stack-card:hover { background: #c8cec6; color: var(--ink); }.stack-card:hover p { color: #59635f; }
.stack-card[data-accent="lime"] { --accent: #94563f; }
.work { background: var(--paper); }
.work-list, .project { border-color: var(--line); }.project:hover { background: rgba(32,41,37,.035); }.project-number, .project-status { color: var(--lime); }.project p { color: #626c66; }.project ul { color: #4e5953; }.project-status span { background: #657f69; box-shadow: none; }
.playground-section { background: var(--paper); }
.playground-section .section-label { margin-bottom: 2rem; }
.playground-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1.5rem; max-width: 1280px; margin: auto; }
.physics-feature { grid-column: 1 / -1; display: grid; grid-template-columns: .72fr 1.28fr; border: 1px solid var(--line); background: #e5e1d8; }
.physics-copy { padding: clamp(2rem, 4vw, 4rem); display: flex; flex-direction: column; justify-content: center; }
.physics-copy h2 { margin: .8rem 0 1.6rem; font: 900 clamp(2.7rem, 4.5vw, 5.5rem)/.9 var(--display); letter-spacing: -.045em; text-transform: uppercase; }
.physics-copy > p:not(.project-type) { color: #59635f; line-height: 1.7; max-width: 36rem; }
.degree-list { margin: 2rem 0 0; border-top: 1px solid var(--line); }
.degree-list div { display: grid; grid-template-columns: 4rem 1fr; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); font: .62rem var(--mono); }.degree-list dt { color: var(--lime); }.degree-list dd { margin: 0; }
.physics-simulator { min-width: 0; border-left: 1px solid var(--line); background: var(--paper); }
.physics-simulator .tool-bar { color: var(--muted); border-color: var(--line); }.physics-simulator .tool-bar small { color: #4c6653; }
.physics-simulator canvas { width: 100%; height: auto; display: block; background: #eeebe3; border-bottom: 1px solid var(--line); }
.physics-controls { display: grid; grid-template-columns: auto auto auto 1fr 1fr; align-items: stretch; }
.physics-controls button { padding: 1rem; border: 0; border-right: 1px solid var(--line); background: var(--ink); color: var(--paper); font: 700 .6rem var(--mono); text-transform: uppercase; cursor: pointer; }
.physics-controls button:hover { background: #35423c; }
.physics-controls label { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .45rem .7rem; padding: .7rem 1rem; border-right: 1px solid var(--line); color: var(--muted); font: .52rem var(--mono); text-transform: uppercase; }.physics-controls label:last-child { border: 0; }.physics-controls input { grid-column: 1 / -1; width: 100%; accent-color: var(--lime); }.physics-controls output { justify-self: end; color: var(--ink); font-variant-numeric: tabular-nums; }
.pipeline-lab { border: 1px solid #6d7771; background: var(--ink); color: var(--paper); }
.tool-bar { min-height: 3rem; display: flex; align-items: center; justify-content: space-between; padding: 0 1rem; border-bottom: 1px solid rgba(241,238,230,.16); font: .6rem var(--mono); color: #aeb6b1; }.tool-bar small { color: #9fb49f; letter-spacing: .1em; }
.pipeline-lab button { width: 100%; padding: 1rem 1.4rem; border: 0; border-top: 1px solid rgba(241,238,230,.16); background: #2a3430; color: #e3b49c; text-align: left; font: 700 .65rem var(--mono); text-transform: uppercase; cursor: pointer; }.pipeline-lab button span { float: right; }
.pipeline-lab { grid-column: 1 / -1; background: #e5e1d8; color: var(--ink); border-color: var(--line); }.pipeline-lab .tool-bar { color: var(--muted); border-color: var(--line); }.pipeline-lab .tool-bar small { color: var(--muted); }
.pipeline-stages { display: flex; align-items: center; padding: 2rem; }.pipeline-stage { flex: 0 1 10rem; min-height: 6.5rem; display: grid; align-content: space-between; padding: .8rem; border: 1px solid var(--line); background: var(--paper); font-family: var(--mono); transition: background .2s, color .2s, transform .2s; }.pipeline-stage span, .pipeline-stage small { color: var(--muted); font-size: .52rem; }.pipeline-stage b { font-size: .68rem; }.pipeline-stages > i { flex: 1; height: 1px; background: #9fa69f; }.pipeline-stage.running { transform: translateY(-4px); background: #d8c5b9; }.pipeline-stage.complete { background: #cad4c9; }.pipeline-stage.complete small { color: #4c6653; }.pipeline-lab button { background: var(--ink); color: var(--paper); }
.contact { background: var(--ink); color: var(--paper); }
.contact .eyebrow { color: #b8c0bb; }
.button-light { background: var(--paper); color: var(--ink); }
footer { background: var(--paper); color: var(--muted); }

@keyframes flow { from { left: -1rem; } to { left: 100%; } }

@media (max-width: 980px) {
  .hero { height: auto; grid-template-columns: 1fr; }.portrait-panel { height: 680px; margin-top: 2rem; }.hero-copy { max-width: 800px; }.playground-grid { grid-template-columns: 1fr; }.physics-feature { grid-column: auto; grid-template-columns: 1fr; }.physics-simulator { border-left: 0; border-top: 1px solid var(--line); }.physics-controls { grid-template-columns: repeat(3, 1fr); }.physics-controls label { grid-column: span 3; border-top: 1px solid var(--line); border-right: 0; }.pipeline-lab { grid-column: auto; }.pipeline-stages { overflow-x: auto; }.pipeline-stage { min-width: 7rem; }
}

@media (max-width: 650px) {
  nav { background: var(--paper); border-color: var(--line); }.hero { padding-top: 7rem; }.portrait-panel { min-height: 0; height: 580px; padding: 0 0 2.2rem 1rem; }.portrait-frame img { object-position: center 24%; }.portrait-panel figcaption { left: 1.8rem; right: auto; }.system-map { width: calc(100% - 1rem); }.system-flow { padding: 1rem .6rem; }.flow-node { min-width: 3.8rem; padding: .5rem; }.system-metrics { gap: 1rem; }.quick-stats span { font-size: .49rem; }.pipeline-stages { padding: 1rem; }
}
