:root {
  color-scheme: dark;
  --ink: #f2f5ef;
  --muted: #9aa39b;
  --dim: #636b66;
  --bg: #07090d;
  --bg-soft: #0b0f14;
  --panel: rgba(15, 20, 27, 0.68);
  --line: rgba(229, 241, 231, 0.14);
  --line-bright: rgba(229, 241, 231, 0.34);
  --acid: #c7ff42;
  --cyan: #5ae7ff;
  --orange: #ff7448;
  --max: 1320px;
  --pad: clamp(1.25rem, 4vw, 4rem);
  --mouse-x: 50vw;
  --mouse-y: 30vh;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  scroll-behavior: smooth;
  scrollbar-color: var(--acid) var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 15% 15%, rgba(37, 78, 85, 0.12), transparent 28rem),
    radial-gradient(circle at 90% 72%, rgba(148, 183, 55, 0.07), transparent 30rem),
    var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--acid); color: #07090d; }

a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.9rem;
  transform: translateY(-180%);
  background: var(--acid);
  color: var(--bg);
  font-weight: 800;
}

.skip-link:focus { transform: translateY(0); }

.scroll-progress {
  position: fixed;
  z-index: 200;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--acid));
  transform: scaleX(0);
  transform-origin: left;
  box-shadow: 0 0 1rem rgba(90, 231, 255, 0.7);
}

#signal-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.6;
}

.grain {
  position: fixed;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  opacity: 0.13;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.83' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.spotlight {
  position: fixed;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(32rem circle at var(--mouse-x) var(--mouse-y), rgba(90, 231, 255, 0.055), transparent 72%);
}

.site-header,
main,
.site-footer { position: relative; z-index: 2; }

.site-header {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 50%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(calc(100% - 2rem), var(--max));
  min-height: 4rem;
  padding: 0.55rem 0.75rem 0.55rem 1rem;
  transform: translateX(-50%);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 9, 13, 0.68);
  box-shadow: 0 0.75rem 3rem rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px) saturate(135%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  width: max-content;
  font-size: 0.86rem;
  font-weight: 760;
  letter-spacing: -0.01em;
}

.brand-mark {
  position: relative;
  display: block;
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid var(--line-bright);
  border-radius: 50%;
}

.brand-mark i {
  position: absolute;
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 0.65rem rgba(199, 255, 66, 0.5);
}

.brand-mark i:nth-child(1) { top: 0.35rem; left: 0.42rem; }
.brand-mark i:nth-child(2) { top: 0.85rem; right: 0.32rem; }
.brand-mark i:nth-child(3) { bottom: 0.28rem; left: 0.38rem; }

.nav-links { display: flex; align-items: center; gap: 0.25rem; }

.nav-links a {
  position: relative;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 650;
  transition: color 220ms ease, background 220ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.is-active { color: var(--ink); background: rgba(255,255,255,0.06); }

.motion-toggle {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.7rem;
  padding: 0 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  transition: border-color 200ms ease, color 200ms ease;
}

.motion-toggle:hover,
.motion-toggle:focus-visible { border-color: var(--line-bright); color: var(--ink); }

.toggle-icon {
  display: block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 0.65rem rgba(199, 255, 66, 0.55);
}

.motion-toggle[aria-pressed="true"] .toggle-icon { background: var(--dim); box-shadow: none; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(22rem, 0.92fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 8rem);
  width: min(100%, 1540px);
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(8rem, 13vh, 10rem) var(--pad) clamp(4rem, 8vh, 7rem);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 12% auto auto 49%;
  width: 1px;
  height: 72%;
  background: linear-gradient(transparent, var(--line), transparent);
}

.eyebrow,
.project-kicker,
.trajectory-label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(0.74rem, 1.2vw, 0.84rem);
  font-weight: 650;
  letter-spacing: 0.095em;
  line-height: 1.35;
  text-transform: uppercase;
}

.live-dot {
  position: relative;
  width: 0.45rem;
  height: 0.45rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 0.8rem rgba(199,255,66,0.7);
}

.live-dot::after {
  content: "";
  position: absolute;
  inset: -0.32rem;
  border: 1px solid rgba(199,255,66,0.4);
  border-radius: inherit;
  animation: pulse 2.6s ease-out infinite;
}

@keyframes pulse { 0% { opacity: 0; transform: scale(0.6); } 25% { opacity: 1; } 100% { opacity: 0; transform: scale(1.65); } }

h1,
h2,
h3,
p { text-wrap: pretty; }

.hero h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(3.9rem, 8.25vw, 8.5rem);
  font-weight: 650;
  letter-spacing: -0.075em;
  line-height: 0.86;
}

.hero-shift {
  display: block;
  min-height: 1em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(242,245,239,0.56);
}

.hero-shift > span:first-child { transition: opacity 180ms ease, transform 180ms ease; }
.hero-shift.is-changing > span:first-child { opacity: 0; transform: translateY(0.16em); }

.cursor {
  display: inline-block;
  width: 0.055em;
  height: 0.7em;
  margin-left: 0.08em;
  transform: translateY(0.04em);
  background: var(--acid);
  animation: blink 1s steps(1) infinite;
  -webkit-text-stroke: 0;
}

@keyframes blink { 50% { opacity: 0; } }

.hero-intro {
  max-width: 41rem;
  margin: 2.3rem 0 0;
  color: #bdc5be;
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  line-height: 1.55;
}

.hero-actions { display: flex; align-items: center; gap: 1.35rem; margin-top: 2.4rem; }

.primary-action {
  --mx: 0px;
  --my: 0px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  min-width: 13rem;
  min-height: 3.7rem;
  padding: 0.7rem 0.75rem 0.7rem 1.2rem;
  transform: translate(var(--mx), var(--my));
  border-radius: 999px;
  background: var(--acid);
  color: var(--bg);
  font-size: 0.88rem;
  font-weight: 800;
  transition: transform 260ms var(--ease), box-shadow 260ms ease;
}

.primary-action:hover,
.primary-action:focus-visible { box-shadow: 0 0 2.5rem rgba(199,255,66,0.24); }

.action-arrow {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(7,9,13,0.14);
  font-size: 1.15rem;
}

.text-action {
  padding: 0.7rem 0;
  border: 0;
  border-bottom: 1px solid var(--line-bright);
  background: transparent;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 680;
  transition: color 180ms ease, border-color 180ms ease;
}

.text-action:hover,
.text-action:focus-visible { color: var(--ink); border-color: var(--acid); }

.hero-object {
  position: relative;
  aspect-ratio: 1;
  width: min(100%, 38rem);
  justify-self: end;
  border-radius: 50%;
}

.hero-object::before {
  content: "";
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(90,231,255,0.12), transparent 67%);
  filter: blur(10px);
}

.orbit {
  position: absolute;
  inset: 6%;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.orbit::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -0.24rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 1rem var(--cyan);
}

.orbit-a { animation: orbit 17s linear infinite; }
.orbit-b { inset: 18%; transform: rotate(24deg); animation: orbit 12s linear infinite reverse; border-style: dashed; }
.orbit-c { inset: 31%; animation: orbit 9s linear infinite; }
@keyframes orbit { to { transform: rotate(360deg); } }

.core {
  position: absolute;
  inset: 33%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.8rem;
  overflow: hidden;
  border: 1px solid var(--line-bright);
  border-radius: 50%;
  background: rgba(9,13,18,0.82);
  box-shadow: inset 0 0 3rem rgba(90,231,255,0.05), 0 1rem 4rem rgba(0,0,0,0.35);
  backdrop-filter: blur(14px);
}

.core::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 21%;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  animation: scan 3s ease-in-out infinite;
}

@keyframes scan { 50% { transform: translateY(-3.1rem); opacity: 0.35; } }

.core-index,
.core small {
  color: var(--dim);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(0.58rem, 0.8vw, 0.72rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.core strong {
  margin: 0.7rem 0 0.5rem;
  font-size: clamp(1.05rem, 2.2vw, 1.85rem);
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.skill-node {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  min-height: 2.5rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8,11,15,0.82);
  cursor: pointer;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(0.65rem, 1vw, 0.78rem);
  letter-spacing: 0.04em;
  backdrop-filter: blur(12px);
  transition: color 180ms ease, border-color 180ms ease, transform 260ms var(--ease), background 180ms ease;
}

.skill-node span { color: var(--acid); font-size: 0.64rem; }
.skill-node:hover,
.skill-node:focus-visible,
.skill-node.is-active { color: var(--ink); border-color: rgba(199,255,66,0.58); background: rgba(18,25,25,0.92); transform: scale(1.055); }
.node-network { top: 6%; left: 36%; }
.node-linux { top: 33%; right: 0; }
.node-cloud { bottom: 8%; right: 22%; }
.node-automation { bottom: 23%; left: -2%; }

.node-readout {
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  width: 100%;
  transform: translateX(-50%);
  color: var(--dim);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.69rem;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.hero-coordinate {
  position: absolute;
  right: var(--pad);
  bottom: 2rem;
  display: flex;
  gap: 1rem;
  color: var(--dim);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
}

.hero-coordinate span + span::before { content: "/"; margin-right: 1rem; }

.marquee {
  position: relative;
  z-index: 3;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.018);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 2rem;
  width: max-content;
  min-height: 4.2rem;
  color: #879089;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  animation: marquee 30s linear infinite;
}

.marquee-track i { color: var(--acid); font-size: 0.45rem; font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

.section-shell {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: clamp(6rem, 13vw, 11rem) var(--pad);
}

.section-label {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: clamp(2.5rem, 6vw, 5.5rem);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.section-label span {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--line-bright);
  border-radius: 50%;
  color: var(--acid);
}

.section-label p { margin: 0; color: var(--muted); }

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(16rem, 0.6fr);
  align-items: end;
  gap: 2rem;
  margin-bottom: 4rem;
}

.section-heading h2,
.about-statement h2 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(3rem, 6.2vw, 6.4rem);
  font-weight: 580;
  letter-spacing: -0.065em;
  line-height: 0.92;
}

.section-heading h2 em,
.about-statement h2 em {
  color: transparent;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  -webkit-text-stroke: 1px rgba(242,245,239,0.64);
}

.section-heading > p {
  max-width: 27rem;
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-size: 1rem;
}

.principle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; perspective: 1000px; }

.principle-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 31rem;
  padding: clamp(1.4rem, 2.8vw, 2.4rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: linear-gradient(145deg, rgba(19,25,32,0.78), rgba(9,12,16,0.65));
  transform-style: preserve-3d;
  transition: border-color 280ms ease, background 280ms ease, transform 180ms ease;
}

.principle-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(24rem circle at var(--card-x, 50%) var(--card-y, 50%), rgba(90,231,255,0.12), transparent 65%);
  transition: opacity 280ms ease;
}

.principle-card:hover,
.principle-card:focus-visible { border-color: var(--line-bright); outline: none; }
.principle-card:hover::before,
.principle-card:focus-visible::before { opacity: 1; }

.card-number,
.card-tag {
  position: relative;
  z-index: 1;
  color: var(--dim);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
}

.card-glyph {
  position: relative;
  z-index: 1;
  width: 8.5rem;
  height: 8.5rem;
  margin: 3.8rem 0 3rem;
}

.glyph-trace { border: 1px solid var(--line); border-radius: 50%; }
.glyph-trace::before,
.glyph-trace::after { content: ""; position: absolute; inset: 20%; border: 1px solid var(--line-bright); border-radius: 50%; }
.glyph-trace::after { inset: 40%; border-color: var(--cyan); box-shadow: 0 0 1.4rem rgba(90,231,255,0.28); }
.glyph-trace i { position: absolute; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--acid); box-shadow: 0 0 0.9rem rgba(199,255,66,0.45); }
.glyph-trace i:nth-child(1) { top: 8%; left: 50%; }
.glyph-trace i:nth-child(2) { right: 12%; bottom: 20%; }
.glyph-trace i:nth-child(3) { left: 12%; bottom: 24%; }

.glyph-build { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.45rem; transform: rotate(45deg) scale(0.72); }
.glyph-build i { border: 1px solid var(--line-bright); background: rgba(90,231,255,0.04); }
.glyph-build i:nth-child(2) { background: var(--acid); border-color: var(--acid); box-shadow: 0 0 1.8rem rgba(199,255,66,0.2); }

.glyph-automate { display: flex; align-items: center; justify-content: center; }
.glyph-automate::before,
.glyph-automate::after { content: ""; position: absolute; width: 5.5rem; height: 5.5rem; border: 1px solid var(--line-bright); border-radius: 50%; }
.glyph-automate::after { width: 2.4rem; height: 2.4rem; border-color: var(--acid); }
.glyph-automate i { position: absolute; width: 100%; height: 1px; background: linear-gradient(90deg, transparent, var(--cyan), transparent); }
.glyph-automate i:nth-child(2) { transform: rotate(90deg); }

.principle-card h3 { position: relative; z-index: 1; margin: 0 0 1rem; font-size: 1.45rem; letter-spacing: -0.035em; }
.principle-card p { position: relative; z-index: 1; margin: 0 0 2rem; color: var(--muted); font-size: 0.96rem; }
.principle-card .card-tag { margin-top: auto; color: #7e887f; }

.work { padding-top: clamp(3rem, 7vw, 6rem); }
.work-heading { margin-bottom: clamp(3rem, 7vw, 6rem); }
.project-list { border-top: 1px solid var(--line); }

.project-row {
  position: relative;
  display: grid;
  grid-template-columns: 4.2rem minmax(0, 1.15fr) minmax(18rem, 0.85fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  min-height: 28rem;
  padding: 3rem 0;
  border-bottom: 1px solid var(--line);
}

.project-row::before {
  content: "";
  position: absolute;
  inset: 0 calc(var(--pad) * -0.45);
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(90,231,255,0.035), transparent);
  transition: opacity 300ms ease;
}
.project-row:hover::before { opacity: 1; }

.project-index {
  align-self: start;
  color: var(--dim);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
}

.project-copy { position: relative; z-index: 1; }
.project-kicker { margin-bottom: 1rem; color: #778078; }
.project-copy h3 { margin: 0 0 1.1rem; font-size: clamp(2rem, 3.7vw, 4rem); font-weight: 580; letter-spacing: -0.055em; line-height: 1; }
.project-copy > p:not(.project-kicker) { max-width: 42rem; margin: 0; color: var(--muted); font-size: 1rem; }
.project-copy ul { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.6rem 0 0; padding: 0; list-style: none; }
.project-copy li { padding: 0.35rem 0.65rem; border: 1px solid var(--line); border-radius: 999px; color: #aab3ac; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.65rem; letter-spacing: 0.05em; text-transform: uppercase; }

.project-visual {
  position: relative;
  aspect-ratio: 1.32;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: linear-gradient(145deg, rgba(20,27,34,0.82), rgba(7,9,13,0.92));
  transition: border-color 260ms ease, transform 500ms var(--ease);
}

.project-row:hover .project-visual { border-color: var(--line-bright); transform: translateY(-0.4rem) rotate(-0.6deg); }
.project-visual > span { position: absolute; right: 1rem; bottom: 0.8rem; color: var(--dim); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.58rem; letter-spacing: 0.13em; }

.edge-ring { position: absolute; inset: 15%; border: 1px solid var(--line-bright); border-radius: 50%; animation: orbit 16s linear infinite; }
.edge-ring::before,
.edge-ring::after { content: ""; position: absolute; inset: 21%; border: 1px dashed var(--line); border-radius: 50%; }
.edge-ring::after { inset: 41%; border: 0; background: var(--cyan); box-shadow: 0 0 2.2rem rgba(90,231,255,0.55); }
.edge-ring i { position: absolute; width: 0.7rem; height: 0.7rem; margin: -0.35rem; border: 2px solid var(--bg); border-radius: 50%; background: var(--acid); }
.edge-ring i:nth-child(1) { top: 0; left: 50%; }.edge-ring i:nth-child(2) { top: 50%; right: -0.35rem; }.edge-ring i:nth-child(3) { bottom: -0.35rem; left: 50%; }.edge-ring i:nth-child(4) { top: 50%; left: 0; }

.care-grid { position: absolute; inset: 17%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.55rem; transform: perspective(28rem) rotateX(54deg) rotateZ(-22deg); }
.care-grid i { border: 1px solid var(--line-bright); background: rgba(90,231,255,0.035); box-shadow: 0.4rem 0.55rem 0 rgba(0,0,0,0.16); }
.care-grid i:nth-child(5) { border-color: var(--acid); background: rgba(199,255,66,0.16); box-shadow: 0 0 1.7rem rgba(199,255,66,0.14); }

.terminal-lines { position: absolute; inset: 16% 13%; display: flex; flex-direction: column; justify-content: center; gap: 0.65rem; }
.terminal-lines::before { content: "> run: reduce-friction"; margin-bottom: 0.6rem; color: var(--acid); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.66rem; }
.terminal-lines i { display: block; height: 0.34rem; border-radius: 999px; background: linear-gradient(90deg, rgba(90,231,255,0.6), rgba(90,231,255,0.05)); }
.terminal-lines i:nth-child(1) { width: 92%; }.terminal-lines i:nth-child(2) { width: 64%; }.terminal-lines i:nth-child(3) { width: 79%; }.terminal-lines i:nth-child(4) { width: 48%; }.terminal-lines i:nth-child(5) { width: 86%; background: linear-gradient(90deg, rgba(199,255,66,0.6), rgba(199,255,66,0.05)); }

.about { padding-top: clamp(4rem, 8vw, 7rem); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(20rem, 0.95fr); gap: clamp(3rem, 9vw, 9rem); align-items: end; }
.about-statement > p { max-width: 47rem; margin: 2.2rem 0 0; color: #abb4ad; font-size: clamp(1.02rem, 1.6vw, 1.25rem); line-height: 1.7; }

.trajectory {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: rgba(12,16,21,0.65);
}

.trajectory-label { margin: 0 0 2rem; }
.trajectory-line { position: relative; height: 1px; margin: 0.8rem 0; background: var(--line); }
.trajectory-fill { display: block; width: 94%; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--acid)); transform-origin: left; box-shadow: 0 0 1rem rgba(90,231,255,0.2); }
.trajectory-line i { position: absolute; top: 50%; left: var(--x); width: 0.64rem; height: 0.64rem; transform: translate(-50%, -50%); border: 2px solid var(--bg); border-radius: 50%; background: var(--ink); }
.trajectory-line i:last-child { background: var(--acid); box-shadow: 0 0 1rem rgba(199,255,66,0.7); }
.trajectory-stages { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 1.1rem; color: var(--dim); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.56rem; letter-spacing: 0.06em; text-transform: uppercase; }
.trajectory-stages span:nth-child(2),
.trajectory-stages span:nth-child(3) { text-align: center; }
.trajectory-stages span:last-child { color: var(--acid); text-align: right; }
.trajectory-copy { margin: 2.6rem 0 0; color: var(--muted); font-size: 0.94rem; }

.closing {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 88svh;
  padding: 7rem var(--pad);
  overflow: hidden;
  border-top: 1px solid var(--line);
  text-align: center;
}

.closing::before { content: ""; position: absolute; inset: 25%; border-radius: 50%; background: rgba(90,231,255,0.05); filter: blur(5rem); }
.closing > p { position: relative; margin: 0 0 2rem; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.7rem; letter-spacing: 0.14em; }
.closing h2 { position: relative; max-width: 11ch; margin: 0 0 3rem; font-size: clamp(4rem, 10vw, 10rem); font-weight: 600; letter-spacing: -0.08em; line-height: 0.78; }
.closing h2 span { color: transparent; font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 400; -webkit-text-stroke: 1px rgba(242,245,239,0.62); }
.closing-orbit { position: absolute; width: min(64vw, 58rem); aspect-ratio: 1; border: 1px solid var(--line); border-radius: 50%; animation: orbit 25s linear infinite; }
.closing-orbit::before { content: ""; position: absolute; inset: 18%; border: 1px dashed var(--line); border-radius: 50%; }
.closing-orbit i { position: absolute; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0.8rem rgba(90,231,255,0.5); }
.closing-orbit i:nth-child(1) { top: 14%; left: 14%; }.closing-orbit i:nth-child(2) { top: 50%; right: -0.25rem; background: var(--acid); }.closing-orbit i:nth-child(3) { bottom: 3%; left: 36%; background: var(--orange); }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 2rem var(--pad);
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.site-footer p { margin: 0; }
.site-footer p span { margin: 0 0.5rem; }
.site-footer > div { display: flex; gap: 1.25rem; }

.noscript { position: fixed; z-index: 300; right: 1rem; bottom: 1rem; max-width: 22rem; padding: 0.8rem 1rem; border: 1px solid var(--line-bright); background: var(--bg); color: var(--muted); font-size: 0.8rem; }

[data-reveal] {
  opacity: 0;
  transform: translateY(1.8rem);
  transition: opacity 850ms var(--ease), transform 850ms var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

body.motion-paused *,
body.motion-paused *::before,
body.motion-paused *::after { animation-play-state: paused !important; }

:focus-visible { outline: 2px solid var(--acid); outline-offset: 4px; }

@media (max-width: 1050px) {
  .site-header { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 9rem; }
  .hero::before { display: none; }
  .hero-copy { position: relative; z-index: 2; }
  .hero h1 { max-width: 11ch; }
  .hero-object { width: min(82vw, 35rem); justify-self: center; margin-top: 1rem; }
  .hero-coordinate { display: none; }
  .section-heading { grid-template-columns: 1fr; align-items: start; }
  .principle-grid { grid-template-columns: 1fr 1fr; }
  .principle-card:last-child { grid-column: 1 / -1; min-height: 25rem; }
  .project-row { grid-template-columns: 3rem minmax(0, 1fr); }
  .project-visual { grid-column: 2; width: min(100%, 35rem); }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  :root { --pad: 1.15rem; }
  .site-header { top: 0.65rem; width: calc(100% - 1.3rem); min-height: 3.5rem; }
  .brand { font-size: 0.8rem; }
  .brand-mark { width: 1.55rem; height: 1.55rem; }
  .motion-toggle { min-height: 2.4rem; padding: 0 0.8rem; }
  .motion-toggle .toggle-label { display: none; }
  .hero { min-height: auto; padding-top: 8.5rem; gap: 3rem; }
  .hero h1 { font-size: clamp(3.6rem, 18vw, 5.5rem); line-height: 0.87; }
  .hero-intro { margin-top: 1.8rem; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .hero-object { width: min(94vw, 28rem); margin-bottom: 3rem; }
  .skill-node { font-size: 0.62rem; min-height: 2.2rem; }
  .node-network { left: 31%; }.node-linux { right: -1rem; }.node-automation { left: -0.7rem; }
  .core { inset: 31%; padding: 1.2rem; }
  .core strong { font-size: 1.05rem; }
  .marquee-track { min-height: 3.6rem; }
  .section-shell { padding-top: 6rem; padding-bottom: 6rem; }
  .section-heading h2,
  .about-statement h2 { font-size: clamp(3rem, 15vw, 4.5rem); }
  .principle-grid { grid-template-columns: 1fr; }
  .principle-card,
  .principle-card:last-child { grid-column: auto; min-height: 27rem; }
  .project-row { grid-template-columns: 1fr; min-height: auto; padding: 3rem 0 4rem; }
  .project-index { margin-bottom: -1rem; }
  .project-visual { grid-column: auto; width: 100%; margin-top: 1rem; }
  .trajectory-stages { font-size: 0.5rem; }
  .closing { min-height: 78svh; }
  .closing h2 { font-size: clamp(3.8rem, 20vw, 6rem); }
  .closing-orbit { width: 100vw; }
  .site-footer { flex-direction: column; }
  .site-footer > div { flex-direction: column; gap: 0.35rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  #signal-field { display: none; }
}
