:root {
  color-scheme: dark;
  --bg: #070915;
  --bg-2: #0c1022;
  --bg-3: #10172a;
  --surface: rgba(12, 18, 38, 0.76);
  --surface-solid: #10172a;
  --line: rgba(154, 180, 255, 0.18);
  --text: #f5f7ff;
  --muted: #b7c0d9;
  --soft: #8290b7;
  --cyan: #3ee7ff;
  --violet: #9c6bff;
  --amber: #ffb65c;
  --green: #50e3a4;
  --red: #ff6b8a;
  --steel: #a7badf;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(62, 231, 255, 0.08), transparent 34rem),
    linear-gradient(45deg, transparent 0 58%, rgba(255, 182, 92, 0.045) 59% 61%, transparent 62% 100%),
    linear-gradient(180deg, var(--bg) 0%, #090d1a 42%, #070915 100%);
  color: var(--text);
  font-family: "Segoe UI Variable Text", "Aptos", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
  overflow-x: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

#starfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -2;
}

#flight-rocket {
  position: fixed;
  inset: 0;
  z-index: 9;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.52;
  mix-blend-mode: screen;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 50;
  padding: 0.65rem 0.9rem;
  background: #ffffff;
  color: #07101f;
  border-radius: var(--radius);
  transform: translateY(-200%);
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 4vw, 3rem);
  background: rgba(7, 9, 21, 0.74);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.site-nav,
.header-actions,
.lang-toggle,
.hero-actions,
.hero-proof,
.project-meta,
.project-actions,
.tag-row,
.contact-panel,
.source-links,
.modal-links,
.orbit-legend,
.readout-top {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.7rem;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border: 1px solid rgba(62, 231, 255, 0.35);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(62, 231, 255, 0.2), rgba(255, 182, 92, 0.12)),
    rgba(10, 18, 35, 0.9);
  color: var(--cyan);
  font-size: 0.86rem;
}

.site-nav {
  justify-content: center;
  gap: 0.2rem;
  padding: 0.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(11, 15, 31, 0.65);
}

.site-nav a,
.header-cv,
.lang-toggle {
  min-height: 2.35rem;
  border-radius: 6px;
}

.site-nav a {
  padding: 0.45rem 0.8rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.header-actions {
  gap: 0.55rem;
}

.lang-toggle {
  gap: 0.2rem;
  padding: 0.2rem;
  border: 1px solid var(--line);
  background: rgba(11, 15, 31, 0.78);
  cursor: pointer;
}

.lang-toggle span {
  display: grid;
  min-width: 2.05rem;
  min-height: 1.8rem;
  place-items: center;
  border-radius: 5px;
  color: var(--soft);
  font-size: 0.85rem;
  font-weight: 800;
}

body[data-lang="pl"] .lang-toggle span:first-child,
body[data-lang="en"] .lang-toggle span:last-child {
  color: #06111c;
  background: var(--cyan);
}

.header-cv {
  display: inline-grid;
  min-width: 3.2rem;
  place-items: center;
  border: 1px solid rgba(255, 182, 92, 0.42);
  background: rgba(255, 182, 92, 0.12);
  color: var(--amber);
  font-weight: 800;
}

.section-band {
  position: relative;
  overflow: hidden;
}

#projects,
#maker,
#stack,
#lab,
#timeline,
#contact {
  scroll-margin-top: 6.5rem;
}

.section-inner {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  min-height: 100svh;
  padding: 8.4rem 0 4rem;
}

.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-bg {
  z-index: -2;
  background-image: url("assets/hero-workshop-space-v2.webp");
  background-position: center right;
  background-size: cover;
  transform: translate3d(var(--hero-x, 0), var(--hero-y, 0), 0) scale(1.03);
  transition: transform 0.15s ease-out;
}

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 9, 21, 0.95) 0%, rgba(7, 9, 21, 0.86) 31%, rgba(7, 9, 21, 0.38) 68%, rgba(7, 9, 21, 0.66) 100%),
    linear-gradient(180deg, rgba(7, 9, 21, 0.28) 0%, rgba(7, 9, 21, 0.7) 84%, #070915 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: 3rem;
  min-height: calc(100svh - 13rem);
}

.hero-copy {
  max-width: 710px;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--cyan);
  font-size: 0.85rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1.15rem;
  font-size: 4.8rem;
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 1rem;
  font-size: 2.45rem;
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.65rem;
  font-size: 1.18rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 680px;
  color: #dce4ff;
  font-size: 1.12rem;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2rem 0 1.35rem;
}

.btn,
.project-actions button,
.project-actions a,
.modal-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.72rem 1rem;
  cursor: pointer;
  font-weight: 800;
  line-height: 1.1;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover,
.project-actions button:hover,
.project-actions a:hover,
.modal-links a:hover,
.btn:focus-visible,
.project-actions button:focus-visible,
.project-actions a:focus-visible,
.modal-links a:focus-visible {
  transform: translateY(-2px);
}

.btn.primary {
  border-color: rgba(62, 231, 255, 0.55);
  background: var(--cyan);
  color: #06111c;
}

.btn.secondary {
  border-color: rgba(255, 182, 92, 0.52);
  background: rgba(255, 182, 92, 0.14);
  color: var(--amber);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.hero-proof {
  flex-wrap: wrap;
  gap: 0.55rem;
}

.hero-proof span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 1.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.22rem 0.68rem;
  background: rgba(255, 255, 255, 0.055);
  color: #dfe7ff;
  font-size: 0.86rem;
  line-height: 1.15;
}

.hero-console {
  position: relative;
  min-height: 430px;
  border: 1px solid rgba(62, 231, 255, 0.22);
  border-radius: var(--radius);
  padding: 1rem;
  background:
    linear-gradient(180deg, rgba(12, 18, 38, 0.86), rgba(11, 14, 29, 0.72)),
    rgba(8, 13, 27, 0.76);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.console-top {
  gap: 0.42rem;
  margin-bottom: 1.25rem;
}

.console-top span {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--cyan);
}

.console-top span:nth-child(2) {
  background: var(--amber);
}

.console-top span:nth-child(3) {
  background: var(--green);
}

.console-line {
  color: var(--text);
  font-family: "Cascadia Mono", "Fira Code", Consolas, monospace;
  font-size: 0.95rem;
}

.console-line.muted {
  margin-top: 0.75rem;
  color: var(--soft);
}

.console-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.console-tags span {
  border: 1px solid rgba(62, 231, 255, 0.18);
  border-radius: 6px;
  padding: 0.36rem 0.55rem;
  background: rgba(62, 231, 255, 0.07);
  color: #dbe9ff;
  font-size: 0.82rem;
}

.signal-map {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  height: 170px;
  border: 1px solid rgba(154, 180, 255, 0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(154, 180, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(154, 180, 255, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  overflow: hidden;
}

.signal-map::before,
.signal-map::after {
  content: "";
  position: absolute;
  inset: 22px 38px;
  border: 1px solid rgba(62, 231, 255, 0.36);
  border-radius: var(--radius);
  transform: skew(-9deg);
}

.signal-map::after {
  inset: 54px 78px 30px 76px;
  border-color: rgba(255, 182, 92, 0.42);
}

.signal-map span {
  position: absolute;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 24px var(--cyan);
  animation: pulse 2.8s infinite ease-in-out;
}

.signal-map span:nth-child(1) {
  left: 22%;
  top: 28%;
}

.signal-map span:nth-child(2) {
  right: 18%;
  top: 36%;
  background: var(--amber);
  box-shadow: 0 0 24px var(--amber);
  animation-delay: 0.4s;
}

.signal-map span:nth-child(3) {
  left: 52%;
  bottom: 22%;
  background: var(--green);
  box-shadow: 0 0 24px var(--green);
  animation-delay: 0.8s;
}

.signal-map span:nth-child(4) {
  right: 38%;
  top: 14%;
  background: var(--red);
  box-shadow: 0 0 24px var(--red);
  animation-delay: 1.2s;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.95;
  }
  50% {
    transform: scale(1.55);
    opacity: 0.46;
  }
}

.intro,
.projects,
.timeline,
.contact {
  background: linear-gradient(180deg, rgba(7, 9, 21, 0.94), rgba(12, 16, 34, 0.94));
}

.intro,
.stack,
.hobbies,
.sources,
.contact {
  padding: 6rem 0;
}

.metrics {
  padding: 1rem 0 4rem;
  background: #070915;
}

.projects {
  padding: 6rem 0;
}

.timeline {
  padding: 6rem 0;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1fr);
  gap: 4rem;
}

.section-heading {
  position: sticky;
  top: 7rem;
  align-self: start;
}

.intro-copy {
  display: grid;
  gap: 1rem;
  color: var(--muted);
  font-size: 1.03rem;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.metric,
.project-card,
.skill-card,
.tool-card,
.timeline-item,
.hobby-item,
.lab-item,
.contact-panel {
  position: relative;
  z-index: 12;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.metric {
  min-height: 150px;
  padding: 1.15rem;
}

.metric strong {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--cyan);
  font-size: 2.8rem;
  line-height: 1;
}

.metric span {
  color: var(--muted);
}

.section-title-row {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(260px, 0.75fr);
  align-items: end;
  gap: 2rem;
  margin-bottom: 2rem;
}

.section-title-row > p {
  margin-bottom: 1rem;
  color: var(--muted);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  min-height: 330px;
  padding: 1.1rem;
}

.project-card.feature {
  grid-column: span 2;
  background:
    linear-gradient(135deg, rgba(62, 231, 255, 0.13), rgba(255, 182, 92, 0.08)),
    var(--surface);
}

.project-meta {
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--soft);
  font-size: 0.82rem;
}

.project-card p,
.skill-card p,
.tool-card p,
.timeline-item p,
.hobby-item p,
.lab-item p,
.contact p {
  color: var(--muted);
}

.maker-orbit {
  min-height: 840px;
  padding: 7.4rem 0;
  background:
    linear-gradient(180deg, rgba(7, 9, 21, 0.98), rgba(6, 11, 24, 0.98)),
    #070915;
}

#maker-orbit {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
}

.orbit-grid-lines {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background:
    linear-gradient(rgba(62, 231, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 182, 92, 0.055) 1px, transparent 1px),
    linear-gradient(135deg, transparent 0 48%, rgba(154, 180, 255, 0.07) 49% 51%, transparent 52% 100%);
  background-size: 48px 48px, 48px 48px, 180px 180px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.18) 68%, rgba(0, 0, 0, 0.78));
}

.orbit-layout {
  z-index: 10;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(330px, 0.68fr) minmax(340px, 0.72fr) minmax(300px, 0.52fr);
  align-items: center;
  gap: 1.35rem;
  min-height: 640px;
}

.orbit-copy {
  grid-column: 1;
  max-width: 650px;
  text-shadow: 0 16px 48px rgba(0, 0, 0, 0.85);
}

.orbit-copy h2 {
  max-width: 620px;
  font-size: 3rem;
}

.orbit-copy p:not(.eyebrow) {
  max-width: 600px;
  color: #d8e3ff;
  font-size: 1.07rem;
}

.orbit-legend {
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.5rem;
}

.orbit-legend span {
  border: 1px solid rgba(62, 231, 255, 0.24);
  border-radius: 999px;
  padding: 0.38rem 0.72rem;
  background: rgba(5, 10, 22, 0.86);
  color: #eff7ff;
  font-size: 0.9rem;
  box-shadow: 0 0 0 1px rgba(255, 182, 92, 0.045) inset;
  backdrop-filter: blur(10px);
}

.orbit-readout {
  grid-column: 3;
  align-self: stretch;
  display: grid;
  align-content: center;
  gap: 0.75rem;
  border: 1px solid rgba(62, 231, 255, 0.22);
  border-radius: var(--radius);
  padding: 1rem;
  background:
    linear-gradient(180deg, rgba(9, 15, 32, 0.86), rgba(7, 9, 21, 0.74)),
    rgba(6, 11, 24, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.readout-top {
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.2rem;
  color: var(--cyan);
  font-family: "Cascadia Mono", "Fira Code", Consolas, monospace;
  font-size: 0.82rem;
}

.readout-top span:last-child {
  border: 1px solid rgba(80, 227, 164, 0.28);
  border-radius: 999px;
  padding: 0.16rem 0.48rem;
  color: var(--green);
  background: rgba(80, 227, 164, 0.08);
}

.readout-row {
  border: 1px solid rgba(154, 180, 255, 0.13);
  border-radius: 6px;
  padding: 0.86rem;
  background:
    linear-gradient(90deg, rgba(62, 231, 255, 0.08), transparent 45%),
    rgba(255, 255, 255, 0.035);
}

.readout-row strong {
  display: block;
  margin-bottom: 0.25rem;
  color: #f6f8ff;
}

.readout-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.tag-row {
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: auto;
}

.project-actions {
  gap: 0.55rem;
  margin-top: 1.1rem;
}

.project-actions button,
.project-actions a {
  min-height: 2.45rem;
  padding: 0.58rem 0.8rem;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.project-actions button {
  border-color: rgba(62, 231, 255, 0.28);
}

.project-actions a {
  border-color: rgba(255, 182, 92, 0.3);
  color: var(--amber);
}

.stack {
  background:
    linear-gradient(180deg, rgba(9, 14, 30, 0.98), rgba(7, 9, 21, 0.98)),
    var(--bg);
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.skill-card {
  min-height: 280px;
  padding: 1.1rem;
}

.multitool {
  padding: 6rem 0;
  background:
    linear-gradient(180deg, rgba(7, 9, 21, 0.98), rgba(10, 16, 34, 0.97)),
    #070915;
}

.tool-grid,
.lab-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.tool-card {
  position: relative;
  min-height: 250px;
  padding: 1.1rem;
  overflow: hidden;
}

.tool-card::before,
.lab-item::before {
  content: "";
  position: absolute;
  inset: auto 1rem 1rem auto;
  width: 5.5rem;
  height: 5.5rem;
  border: 1px solid rgba(62, 231, 255, 0.13);
  background:
    linear-gradient(rgba(62, 231, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 182, 92, 0.1) 1px, transparent 1px);
  background-size: 12px 12px;
  transform: rotate(8deg);
  opacity: 0.55;
}

.tool-card > span,
.lab-item > span {
  display: inline-flex;
  margin-bottom: 3.4rem;
  color: var(--amber);
  font-weight: 900;
}

.timeline-list {
  position: relative;
  display: grid;
  gap: 0.85rem;
}

.timeline-item {
  position: relative;
  padding: 1.05rem 1.15rem;
}

.timeline-item time {
  display: inline-flex;
  margin-bottom: 0.4rem;
  color: var(--amber);
  font-weight: 850;
}

.hobbies {
  background:
    linear-gradient(180deg, rgba(7, 9, 21, 0.97), rgba(13, 18, 38, 0.97));
}

.rc-showcase {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 0.78fr);
  gap: 1.25rem;
  align-items: stretch;
  margin: 1.25rem 0 1rem;
  border: 1px solid rgba(62, 231, 255, 0.2);
  border-radius: var(--radius);
  padding: 1rem;
  background:
    linear-gradient(135deg, rgba(62, 231, 255, 0.09), transparent 38%),
    linear-gradient(180deg, rgba(11, 18, 38, 0.92), rgba(8, 12, 27, 0.82));
  box-shadow: var(--shadow);
}

.rc-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 360px;
  padding: clamp(0.5rem, 2vw, 1rem);
}

.rc-copy h3 {
  max-width: 520px;
  font-size: 1.65rem;
  line-height: 1.08;
}

.rc-copy p:not(.eyebrow) {
  max-width: 520px;
  color: var(--muted);
}

.rc-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.rc-specs span {
  border: 1px solid rgba(62, 231, 255, 0.22);
  border-radius: 999px;
  padding: 0.35rem 0.68rem;
  background: rgba(6, 11, 24, 0.76);
  color: #eef7ff;
  font-size: 0.85rem;
  line-height: 1.15;
}

.rc-blueprint {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid rgba(154, 180, 255, 0.18);
  border-radius: 6px;
  background:
    radial-gradient(circle at 70% 28%, rgba(62, 231, 255, 0.12), transparent 28rem),
    rgba(4, 9, 21, 0.82);
}

.rc-blueprint::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(62, 231, 255, 0.08), transparent);
  transform: translateX(-100%);
  animation: rc-scan 7s ease-in-out infinite;
}

.rc-blueprint-top {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  right: 0.85rem;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  color: var(--cyan);
  font-family: "Cascadia Mono", "Fira Code", Consolas, monospace;
  font-size: 0.78rem;
}

.rc-blueprint-top span:last-child {
  color: var(--amber);
}

.rc-plane-stage {
  position: absolute;
  inset: 0;
  min-height: 360px;
  isolation: isolate;
  background:
    linear-gradient(rgba(62, 231, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(62, 231, 255, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 56% 44%, rgba(255, 182, 92, 0.13), transparent 19rem),
    radial-gradient(circle at 66% 52%, rgba(62, 231, 255, 0.16), transparent 26rem);
  background-size: 26px 26px, 26px 26px, auto, auto;
}

.rc-plane-stage::before,
.rc-plane-stage::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 2;
}

.rc-plane-stage::before {
  inset: 4.5rem 3.5rem 3rem;
  border: 1px solid rgba(62, 231, 255, 0.12);
  border-radius: 999px;
  transform: rotate(-8deg);
  box-shadow:
    0 0 0 1px rgba(255, 182, 92, 0.08),
    0 0 48px rgba(62, 231, 255, 0.08);
}

.rc-plane-stage::after {
  left: 10%;
  right: 10%;
  bottom: 3.2rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 182, 92, 0.8), transparent);
}

#rc-plane-scene {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
}

.rc-plane-hud {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.rc-hud-chip {
  position: absolute;
  max-width: min(12rem, 38%);
  border: 1px solid rgba(62, 231, 255, 0.28);
  border-radius: 999px;
  padding: 0.34rem 0.62rem;
  background: rgba(5, 10, 24, 0.68);
  color: #dce8ff;
  font-family: "Cascadia Mono", "Fira Code", Consolas, monospace;
  font-size: 0.72rem;
  line-height: 1.1;
  white-space: nowrap;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.rc-hud-chip::before {
  content: "";
  display: inline-block;
  width: 0.38rem;
  height: 0.38rem;
  margin-right: 0.4rem;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(62, 231, 255, 0.9);
  vertical-align: 0.05rem;
}

.rc-hud-chip-a {
  top: 23%;
  right: 6%;
}

.rc-hud-chip-b {
  right: 10%;
  bottom: 22%;
  border-color: rgba(255, 182, 92, 0.34);
}

.rc-hud-chip-b::before,
.rc-hud-chip-d::before {
  background: var(--amber);
  box-shadow: 0 0 14px rgba(255, 182, 92, 0.88);
}

.rc-hud-chip-c {
  left: 6%;
  top: 30%;
}

.rc-hud-chip-d {
  left: 8%;
  bottom: 18%;
  border-color: rgba(255, 182, 92, 0.34);
}

.rc-plane-readout {
  position: absolute;
  left: 0.85rem;
  bottom: 0.85rem;
  z-index: 4;
  display: grid;
  gap: 0.16rem;
  border-left: 2px solid var(--amber);
  padding-left: 0.65rem;
  color: var(--muted);
  font-family: "Cascadia Mono", "Fira Code", Consolas, monospace;
  font-size: 0.72rem;
}

.rc-plane-readout strong {
  color: #eef7ff;
  font-size: 0.84rem;
}

.rc-plane-blueprint {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
}

.rc-dimensions path,
.rc-callout-lines path {
  fill: none;
  stroke: rgba(154, 180, 255, 0.52);
  stroke-width: 1.4;
  stroke-dasharray: 7 7;
}

.rc-dimensions text,
.rc-callouts text {
  fill: #dce8ff;
  font-family: "Cascadia Mono", "Fira Code", Consolas, monospace;
  font-size: 18px;
}

.rc-callouts text {
  fill: var(--cyan);
  font-size: 17px;
}

.rc-reference-plane {
  opacity: 0.92;
  filter: drop-shadow(0 0 12px rgba(62, 231, 255, 0.28));
}

.rc-wing-main {
  fill: url("#rcWing");
  stroke: var(--amber);
  stroke-width: 3;
}

.rc-wing-spar,
.rc-wing-rib,
.rc-wing-accent,
.rc-wire,
.rc-strut,
.rc-gear {
  fill: none;
  stroke-linecap: round;
}

.rc-wing-spar {
  stroke: #07101f;
  stroke-width: 9;
}

.rc-wing-accent,
.rc-wire {
  stroke: var(--cyan);
  stroke-width: 3;
}

.rc-wing-rib {
  stroke: rgba(255, 246, 214, 0.52);
  stroke-width: 2;
}

.rc-strut,
.rc-gear {
  stroke: rgba(62, 231, 255, 0.88);
  stroke-width: 4;
}

.rc-fuselage {
  fill: url("#rcBody");
  stroke: #eef6ff;
  stroke-width: 3;
}

.rc-canopy {
  fill: rgba(62, 231, 255, 0.34);
  stroke: var(--cyan);
  stroke-width: 2;
}

.rc-tailplane,
.rc-tail-fin,
.rc-nose {
  fill: rgba(255, 107, 138, 0.56);
  stroke: var(--red);
  stroke-width: 3;
}

.rc-prop {
  transform-box: fill-box;
  transform-origin: center;
  animation: rc-prop-pulse 0.9s ease-in-out infinite;
}

.rc-prop ellipse {
  fill: rgba(62, 231, 255, 0.08);
  stroke: rgba(62, 231, 255, 0.5);
  stroke-width: 3;
}

.rc-prop circle,
.rc-servo,
.rc-battery,
.rc-wheel {
  fill: rgba(255, 182, 92, 0.76);
  stroke: var(--amber);
  stroke-width: 2;
}

.rc-servo {
  fill: rgba(80, 227, 164, 0.7);
  stroke: var(--green);
}

.rc-battery {
  fill: rgba(7, 16, 31, 0.86);
}

.rc-wheel {
  fill: rgba(7, 16, 31, 0.9);
  stroke: rgba(255, 182, 92, 0.86);
  stroke-width: 4;
}

@keyframes rc-scan {
  0%,
  35% {
    transform: translateX(-100%);
  }

  62%,
  100% {
    transform: translateX(100%);
  }
}

@keyframes rc-prop-pulse {
  0%,
  100% {
    opacity: 0.56;
  }

  50% {
    opacity: 0.9;
  }
}

.hobby-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.hobby-item {
  position: relative;
  min-height: 260px;
  padding: 1.15rem;
  overflow: hidden;
}

.hobby-item > span {
  display: block;
  margin-bottom: 3rem;
  color: var(--cyan);
  font-weight: 900;
}

.hobby-item.blueprint {
  background:
    linear-gradient(180deg, rgba(14, 23, 48, 0.78), rgba(9, 14, 30, 0.76)),
    var(--surface);
}

.hobby-item.blueprint::before {
  content: "";
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 7rem;
  height: 5rem;
  border: 1px solid rgba(62, 231, 255, 0.18);
  background:
    linear-gradient(rgba(62, 231, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(62, 231, 255, 0.1) 1px, transparent 1px);
  background-size: 14px 14px;
  opacity: 0.72;
}

.hobby-item.blueprint::after {
  content: "";
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 5rem;
  height: 2.8rem;
  opacity: 0.88;
}

.hobby-item.plane::after {
  background:
    radial-gradient(circle at 91% 50%, var(--amber) 0 5px, transparent 6px),
    linear-gradient(90deg, rgba(255, 107, 138, 0.95), rgba(255, 107, 138, 0.95)) 7% 50% / 18% 30% no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) center 50% / 82% 4px no-repeat,
    linear-gradient(154deg, transparent 26%, rgba(255, 182, 92, 0.95) 28% 43%, transparent 45%) 42% 50% / 64% 100% no-repeat,
    linear-gradient(26deg, transparent 26%, rgba(62, 231, 255, 0.95) 28% 43%, transparent 45%) 42% 50% / 64% 100% no-repeat;
}

.hobby-item.printer::after {
  border: 2px solid var(--cyan);
  border-top-color: var(--amber);
  background:
    linear-gradient(var(--cyan), var(--cyan)) center 68% / 68% 2px no-repeat,
    linear-gradient(90deg, transparent 34%, rgba(80, 227, 164, 0.9) 35% 65%, transparent 66%) center 35% / 100% 34% no-repeat;
}

.hobby-item.circuit::after {
  background:
    linear-gradient(var(--cyan), var(--cyan)) 0 50% / 100% 2px no-repeat,
    linear-gradient(var(--amber), var(--amber)) 50% 0 / 2px 100% no-repeat,
    radial-gradient(circle at 18% 50%, var(--green) 0 5px, transparent 6px),
    radial-gradient(circle at 50% 24%, var(--cyan) 0 5px, transparent 6px),
    radial-gradient(circle at 78% 50%, var(--red) 0 5px, transparent 6px);
}

.hobby-item.rocket::after {
  border-radius: 50% 50% 12% 12%;
  background:
    linear-gradient(90deg, transparent 0 18%, var(--cyan) 19% 81%, transparent 82% 100%) center 12% / 100% 68% no-repeat,
    linear-gradient(35deg, transparent 45%, var(--amber) 46% 54%, transparent 55%) 17% 82% / 40% 32% no-repeat,
    linear-gradient(-35deg, transparent 45%, var(--amber) 46% 54%, transparent 55%) 83% 82% / 40% 32% no-repeat,
    linear-gradient(var(--red), var(--red)) center 100% / 18% 30% no-repeat;
}

.lab-notes {
  padding: 6rem 0;
  background:
    linear-gradient(180deg, rgba(13, 18, 38, 0.97), rgba(7, 9, 21, 0.98)),
    #070915;
}

.lab-item {
  position: relative;
  min-height: 255px;
  padding: 1.1rem;
  overflow: hidden;
}

.lab-item h3,
.tool-card h3,
.hobby-item h3,
.hobby-item p,
.tool-card p,
.lab-item p {
  position: relative;
  z-index: 1;
}

.sources {
  padding-top: 4rem;
  background: #080b18;
}

.sources-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1fr);
  align-items: center;
  gap: 2rem;
}

.source-links {
  flex-wrap: wrap;
  gap: 0.7rem;
}

.source-links a {
  border: 1px solid rgba(62, 231, 255, 0.2);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
  background: rgba(62, 231, 255, 0.065);
  color: #dfe9ff;
}

.contact {
  padding-bottom: 7rem;
}

.contact h2 {
  max-width: 720px;
}

.contact-panel {
  flex-direction: column;
  align-items: stretch;
  gap: 0.6rem;
  padding: 1rem;
}

.contact-panel a,
.contact-panel span {
  display: flex;
  align-items: center;
  min-height: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 0.65rem 0.8rem;
  background: rgba(255, 255, 255, 0.045);
  color: #e8edff;
  overflow-wrap: anywhere;
}

.contact-panel a:hover {
  border-color: rgba(62, 231, 255, 0.38);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem clamp(1rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  background: #060814;
  color: var(--soft);
}

.project-modal {
  width: min(720px, calc(100% - 2rem));
  border: 1px solid rgba(62, 231, 255, 0.28);
  border-radius: var(--radius);
  padding: 0;
  background: transparent;
  color: var(--text);
}

.project-modal::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.modal-shell {
  position: relative;
  border-radius: var(--radius);
  padding: 1.35rem;
  background:
    linear-gradient(145deg, rgba(16, 23, 42, 0.98), rgba(7, 10, 22, 0.98)),
    var(--surface-solid);
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  font-size: 1.45rem;
  line-height: 1;
}

.modal-shell p[data-modal-body] {
  color: var(--muted);
  white-space: pre-line;
}

.modal-links {
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.modal-links a {
  min-height: 2.4rem;
  border-color: rgba(255, 182, 92, 0.32);
  color: var(--amber);
  background: rgba(255, 182, 92, 0.08);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.72s ease, transform 0.72s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 980px) {
  #projects,
  #maker,
  #stack,
  #lab,
  #timeline,
  #contact {
    scroll-margin-top: 11rem;
  }

  .site-header {
    position: sticky;
    flex-wrap: wrap;
  }

  .site-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .hero {
    padding-top: 4rem;
  }

  .hero-grid,
  .orbit-layout,
  .split-layout,
  .section-title-row,
  .sources-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
  }

  h1 {
    font-size: 3.4rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-console {
    min-height: 360px;
  }

  .metric-grid,
  .stack-grid,
  .hobby-grid,
  .tool-grid,
  .lab-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rc-showcase {
    grid-template-columns: 1fr;
  }

  .rc-copy {
    min-height: auto;
  }

  .rc-blueprint,
  .rc-plane-stage,
  #rc-plane-scene,
  .rc-plane-blueprint {
    min-height: 330px;
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-card.feature {
    grid-column: span 2;
  }

  .section-heading {
    position: static;
  }

  .maker-orbit {
    min-height: auto;
    padding: 5.5rem 0;
  }

  #maker-orbit {
    opacity: 0.78;
  }

  .orbit-layout {
    gap: 1.5rem;
  }

  .orbit-copy,
  .orbit-readout {
    grid-column: auto;
  }

  .orbit-readout {
    margin-top: 24rem;
  }

  .orbit-copy h2 {
    font-size: 2.25rem;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .site-header {
    padding: 0.7rem 1rem;
  }

  #flight-rocket {
    opacity: 0.24;
  }

  .brand {
    font-size: 0.95rem;
  }

  .header-actions {
    margin-left: auto;
  }

  .site-nav {
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .site-nav a {
    flex: 1 1 6.8rem;
    padding: 0.45rem 0.65rem;
    font-size: 0.86rem;
    text-align: center;
  }

  .hero {
    min-height: auto;
    padding-bottom: 3rem;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(7, 9, 21, 0.94) 0%, rgba(7, 9, 21, 0.82) 54%, rgba(7, 9, 21, 0.72) 100%),
      linear-gradient(90deg, rgba(7, 9, 21, 0.94), rgba(7, 9, 21, 0.44));
  }

  .hero-bg {
    background-position: 62% center;
  }

  h1 {
    font-size: 2.75rem;
  }

  h2 {
    font-size: 1.65rem;
  }

  .hero-lead {
    font-size: 1rem;
  }

  .hero-actions,
  .project-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn,
  .project-actions button,
  .project-actions a {
    width: 100%;
  }

  .hero-console {
    min-height: 340px;
  }

  .metric-grid,
  .project-grid,
  .stack-grid,
  .hobby-grid,
  .tool-grid,
  .lab-grid {
    grid-template-columns: 1fr;
  }

  .rc-showcase {
    padding: 0.75rem;
  }

  .rc-copy h3 {
    font-size: 1.35rem;
  }

  .rc-copy p:not(.eyebrow) {
    font-size: 0.96rem;
  }

  .rc-blueprint,
  .rc-plane-stage,
  #rc-plane-scene,
  .rc-plane-blueprint {
    min-height: 290px;
  }

  .rc-hud-chip {
    max-width: 44%;
    padding: 0.3rem 0.48rem;
    font-size: 0.62rem;
  }

  .rc-hud-chip-a {
    top: 22%;
    right: 4%;
  }

  .rc-hud-chip-b {
    right: 5%;
    bottom: 18%;
  }

  .rc-hud-chip-c {
    left: 5%;
    top: 32%;
  }

  .rc-hud-chip-d {
    left: 5%;
    bottom: 16%;
  }

  .rc-plane-readout {
    font-size: 0.62rem;
  }

  .project-card.feature {
    grid-column: auto;
  }

  .metric,
  .project-card,
  .skill-card,
  .tool-card,
  .lab-item,
  .hobby-item {
    min-height: auto;
  }

  .orbit-copy h2 {
    font-size: 1.85rem;
  }

  .orbit-copy::before {
    display: none;
  }

  .maker-orbit {
    padding: 4.5rem 0;
  }

  .orbit-readout {
    align-self: auto;
    margin-top: 23rem;
  }

  .site-footer {
    flex-direction: column;
  }
}

/* 2026 portfolio rebuild */
:root {
  --bg: #08090d;
  --bg-2: #101116;
  --surface: rgba(18, 20, 27, 0.86);
  --surface-solid: #15171e;
  --paper: #f1f0eb;
  --paper-2: #e6e5df;
  --ink: #15161a;
  --line: rgba(236, 240, 246, 0.16);
  --text: #f5f5f2;
  --muted: #b9bcc4;
  --soft: #858a96;
  --cyan: #46d9ea;
  --amber: #ffbd62;
  --signal: #ef5b45;
  --green: #76d18b;
  --violet: #9f8cff;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
  --radius: 7px;
}

body {
  background: #08090d;
  color: var(--text);
  font-family: "Segoe UI Variable Text", "Aptos", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.58;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    #08090d;
  background-size: 56px 56px;
}

.section-inner {
  width: min(1220px, calc(100% - 3rem));
}

.section-band {
  isolation: isolate;
}

.site-header {
  padding: 0.72rem clamp(1rem, 3.2vw, 3rem);
  border-bottom-color: rgba(255, 255, 255, 0.11);
  background: rgba(8, 9, 13, 0.82);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.brand-mark {
  border-color: rgba(70, 217, 234, 0.42);
  background: #14171c;
  color: var(--cyan);
}

.site-nav {
  border: 0;
  background: transparent;
}

.site-nav a {
  position: relative;
  padding-inline: 0.72rem;
  color: #c7c9cf;
  font-size: 0.86rem;
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0.72rem;
  bottom: 0.24rem;
  left: 0.72rem;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.site-nav a.is-active {
  color: #f4f7fb;
}

.page-progress {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
  box-shadow: 0 0 12px rgba(70, 217, 234, 0.4);
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}

.header-cv,
.lang-toggle {
  background: #14161c;
}

.hero {
  min-height: 100svh;
  padding: 8rem 0 2rem;
  background: #08090d;
}

.hero-bg {
  opacity: 0.72;
  filter: saturate(0.78) contrast(1.08);
  background-position: 62% center;
}

.hero-shade {
  background:
    linear-gradient(90deg, #08090d 0%, rgba(8, 9, 13, 0.94) 35%, rgba(8, 9, 13, 0.42) 72%, rgba(8, 9, 13, 0.76) 100%),
    linear-gradient(180deg, rgba(8, 9, 13, 0.3), #08090d 96%);
}

.hero-grid {
  grid-template-columns: minmax(0, 1.12fr) minmax(350px, 0.72fr);
  gap: clamp(2rem, 5vw, 5.5rem);
  min-height: calc(100svh - 15rem);
}

.hero-copy {
  max-width: 760px;
}

.hero h1 {
  max-width: 780px;
  margin-bottom: 0.75rem;
  font-size: 6.6rem;
  font-weight: 850;
  line-height: 0.9;
}

.hero-thesis {
  max-width: 700px;
  margin: 0 0 1rem;
  color: #fff;
  font-size: 2.15rem;
  font-weight: 760;
  line-height: 1.12;
}

.hero-lead {
  max-width: 710px;
  color: #c9ccd3;
  font-size: 1.06rem;
}

.eyebrow {
  color: var(--cyan);
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.76rem;
  font-weight: 750;
}

.btn {
  border-color: rgba(255, 255, 255, 0.18);
  background: #14161c;
}

.btn.primary {
  border-color: var(--cyan);
  background: var(--cyan);
  color: #081013;
}

.btn.secondary {
  border-color: rgba(255, 189, 98, 0.55);
  background: rgba(255, 189, 98, 0.1);
  color: #ffd79d;
}

.availability {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #c7cad1;
  font-size: 0.9rem;
}

.status-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(118, 209, 139, 0.1), 0 0 18px rgba(118, 209, 139, 0.7);
  animation: status-pulse 2.8s ease-in-out infinite;
}

@keyframes status-pulse {
  50% { transform: scale(0.78); opacity: 0.7; }
}

.hero-console {
  min-height: 440px;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(13, 15, 20, 0.84);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.45);
}

.console-top {
  display: flex;
  align-items: center;
  gap: 0.38rem;
  margin-bottom: 1.2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.console-top strong {
  margin-left: auto;
  color: #858b96;
  font-family: Consolas, monospace;
  font-size: 0.76rem;
  font-weight: 500;
}

.ownership-list {
  display: grid;
}

.ownership-list > div {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr);
  gap: 0.7rem;
  padding: 0.84rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ownership-list span {
  color: var(--cyan);
  font-family: Consolas, monospace;
  font-size: 0.75rem;
}

.ownership-list p {
  margin: 0;
  color: #b8bbc3;
  font-size: 0.9rem;
}

.ownership-list strong {
  color: #f2f2ef;
}

.console-result {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.1rem;
  border-left: 2px solid var(--green);
  padding: 0.65rem 0.75rem;
  background: rgba(118, 209, 139, 0.07);
  font-family: Consolas, monospace;
  font-size: 0.76rem;
}

.console-result span { color: #7d838e; }
.console-result strong { color: #bce8c5; font-weight: 600; }

.hero-proof {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.hero-proof > span {
  display: grid;
  grid-template-columns: minmax(4.75rem, auto) minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-width: 0;
  min-height: 4.6rem;
  border: 0;
  padding: 1.05rem 1.15rem;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  background: transparent;
  color: inherit;
  overflow: hidden;
}

.hero-proof > span:first-child { padding-left: 0; }
.hero-proof > span:last-child { border-right: 0; }
.hero-proof strong {
  min-width: 0;
  color: var(--amber);
  font-family: Consolas, monospace;
  font-size: 1.45rem;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}
.hero-proof small {
  display: block;
  min-width: 0;
  max-width: 100%;
  color: #aeb2bb;
  font-size: 0.8rem;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.positioning {
  padding: 6.5rem 0;
  background: var(--paper);
  color: var(--ink);
}

.positioning-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 7vw, 7rem);
}

.positioning .eyebrow,
.case-studies .eyebrow,
.capabilities .eyebrow,
.timeline .eyebrow { color: #087b88; }

.positioning h2,
.case-studies h2,
.capabilities h2,
.timeline h2 {
  color: var(--ink);
}

.positioning h2 {
  max-width: 520px;
  font-size: 4.4rem;
  line-height: 0.98;
}

.positioning-copy > p {
  color: #3f4148;
  font-size: 1.18rem;
}

.role-fit {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.5rem;
}

.role-fit span {
  border: 1px solid #b8b7b0;
  border-radius: 999px;
  padding: 0.42rem 0.72rem;
  background: rgba(255, 255, 255, 0.5);
  color: #303138;
  font-size: 0.86rem;
  font-weight: 700;
}

.case-studies {
  padding: 7rem 0;
  background: var(--paper-2);
  color: var(--ink);
}

.case-studies .section-title-row > p,
.capabilities .section-title-row > p { color: #555860; }

.case-study {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(380px, 1.12fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: stretch;
  margin-bottom: 1.25rem;
  border: 1px solid #c9c8c1;
  border-radius: var(--radius);
  padding: clamp(1.2rem, 3.2vw, 2.4rem);
  background: rgba(247, 246, 241, 0.82);
  box-shadow: 0 18px 44px rgba(30, 31, 35, 0.08);
}

.case-study:nth-of-type(even) .case-copy { order: 2; }
.case-study:nth-of-type(even) > :last-child { order: 1; }

.case-study h3 {
  max-width: 600px;
  color: #111216;
  font-size: 3.15rem;
  line-height: 1;
}

.case-study .project-meta {
  color: #656870;
  font-family: Consolas, monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.case-lead {
  color: #41434a;
  font-size: 1.06rem;
}

.case-facts {
  display: grid;
  gap: 0;
  margin: 1.4rem 0;
}

.case-facts > div {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.7rem 0;
  border-top: 1px solid #d4d2cb;
}

.case-facts dt {
  color: #087b88;
  font-family: Consolas, monospace;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.case-facts dd {
  margin: 0;
  color: #3d3f46;
  font-size: 0.91rem;
}

.case-study .tag-row { margin-top: 0; }
.case-study .tag-row span { border-color: #c4c3bc; background: #ecebe5; color: #383a41; }
.case-study .project-actions button { border-color: #087b88; background: #087b88; color: #fff; }
.case-study .project-actions a { border-color: #c56831; background: rgba(197, 104, 49, 0.07); color: #8c4117; }

.psp-architecture,
.moderation-pipeline,
.music-visual {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 5px;
  background: #111319;
  color: #f4f4f1;
}

.arch-grid {
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background:
    linear-gradient(rgba(70, 217, 234, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70, 217, 234, 0.1) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, #000, transparent 92%);
}

.arch-node {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 12.5rem;
  border: 1px solid rgba(70, 217, 234, 0.33);
  padding: 0.75rem;
  background: rgba(15, 19, 26, 0.92);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
}

.arch-node small { color: var(--cyan); font-family: Consolas, monospace; font-size: 0.64rem; }
.arch-node strong { margin: 0.22rem 0; font-size: 0.96rem; }
.arch-node span { color: #878e9a; font-size: 0.71rem; }
.arch-node.firefighter { top: 11%; left: 7%; }
.arch-node.beacon { top: 35%; left: 33%; }
.arch-node.base { right: 7%; bottom: 29%; }
.arch-node.dashboard { right: 10%; bottom: 6%; }

.architecture-status {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 0.65rem;
  font-family: Consolas, monospace;
  font-size: 0.65rem;
}

.architecture-status > span { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }
.architecture-status small { color: #727984; }

.moderation-pipeline {
  min-height: 520px;
  padding: 1rem;
  background: #17191f;
}

.pipeline-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.35rem 0.2rem 0.85rem;
  color: #9196a0;
  font-family: Consolas, monospace;
  font-size: 0.72rem;
}

.pipeline-head strong { color: var(--amber); }
.moderation-pipeline ol { display: grid; gap: 0.55rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.moderation-pipeline li { display: grid; grid-template-columns: 2.2rem 1fr auto; align-items: center; gap: 0.7rem; border: 1px solid rgba(255, 255, 255, 0.09); padding: 0.68rem; background: rgba(255, 255, 255, 0.025); }
.moderation-pipeline li > span { color: var(--cyan); font-family: Consolas, monospace; font-size: 0.67rem; }
.moderation-pipeline li div { display: grid; }
.moderation-pipeline li strong { font-size: 0.82rem; }
.moderation-pipeline li small { color: #858b96; font-size: 0.7rem; }
.moderation-pipeline li i { border: 1px solid rgba(118, 209, 139, 0.28); border-radius: 999px; padding: 0.16rem 0.4rem; color: #9bdca8; font-family: Consolas, monospace; font-size: 0.61rem; font-style: normal; }

.music-visual { margin: 0; background: #111319; }
.music-visual img { display: block; width: 100%; height: 100%; min-height: 480px; object-fit: cover; object-position: center; }
.music-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 58%, rgba(8, 9, 13, 0.92)); }
.music-visual figcaption { position: absolute; z-index: 2; right: 1rem; bottom: 1rem; left: 1rem; display: grid; }
.music-visual figcaption span { color: var(--cyan); font-family: Consolas, monospace; font-size: 0.7rem; }
.music-visual figcaption strong { font-size: 1.35rem; }

.project-radar {
  padding: 7rem 0;
  background: #0a0b0f;
}

.filter-bar {
  display: inline-flex;
  gap: 0.2rem;
  margin-bottom: 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  padding: 0.22rem;
  background: #13151a;
}

.filter-bar button {
  min-height: 2.4rem;
  border: 0;
  border-radius: 5px;
  padding: 0.45rem 0.8rem;
  background: transparent;
  color: #989da7;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 750;
}

.filter-bar button.is-active { background: var(--cyan); color: #071014; }

.radar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.radar-card {
  display: flex;
  flex-direction: column;
  min-height: 310px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 1.05rem;
  background: #121419;
  transition: border-color 180ms ease, transform 180ms ease, opacity 180ms ease;
}

.radar-card:hover { border-color: rgba(70, 217, 234, 0.5); transform: translateY(-3px); }
.radar-card[hidden] { display: none; }
.radar-code { display: inline-flex; margin-bottom: 2.7rem; color: var(--amber); font-family: Consolas, monospace; font-size: 0.7rem; }
.radar-card h3 { font-size: 1.18rem; }
.radar-card p { color: #a7abb4; font-size: 0.9rem; }
.radar-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: auto;
  padding-top: 1rem;
}

.radar-card .radar-actions button,
.radar-card .radar-actions a {
  border: 0;
  padding: 0.25rem 0;
  background: transparent;
  color: var(--cyan);
  cursor: pointer;
  font-weight: 800;
}

.radar-card .radar-actions a {
  color: var(--amber);
}

.radar-card .radar-actions button:hover,
.radar-card .radar-actions a:hover,
.radar-card .radar-actions button:focus-visible,
.radar-card .radar-actions a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

.maker-orbit {
  min-height: 880px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #090a0e;
}

.orbit-copy h2 { max-width: 680px; font-size: 4.8rem; line-height: 0.96; }
.orbit-readout { background: rgba(13, 15, 20, 0.88); }

.capabilities {
  padding: 7rem 0;
  background: var(--paper);
  color: var(--ink);
}

.capability-board { border-top: 2px solid #202126; }
.capability-row { display: grid; grid-template-columns: minmax(240px, 0.62fr) minmax(260px, 0.78fr) minmax(320px, 1fr); gap: 2rem; align-items: center; min-height: 170px; border-bottom: 1px solid #c9c8c1; padding: 1.25rem 0; }
.capability-row > div:first-child span { color: #74767d; font-family: Consolas, monospace; font-size: 0.68rem; text-transform: uppercase; }
.capability-row h3 { margin: 0.32rem 0 0; color: #15161a; font-size: 1.35rem; }
.capability-row p { margin: 0; color: #4d4f56; }
.capability-row .tag-row { margin-top: 0; }
.capability-row .tag-row span { border-color: #c4c3bd; background: #e6e5df; color: #3a3b41; }
.capability-row.primary-skill { border-left: 0; padding-left: 1rem; background: rgba(255, 255, 255, 0.34); }
.capability-row.learning { opacity: 0.8; }

.hobbies {
  padding: 7rem 0;
  background: #0b0c10;
}

.hobbies .section-title-row > p { color: #a8acb4; }
.rc-showcase { border-color: rgba(70, 217, 234, 0.22); background: #121419; }
.rc-blueprint { background: #0a0d12; }

.workshop-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.workshop-grid article {
  min-height: 230px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius);
  padding: 1rem;
  background: #111319;
}

.workshop-grid article > span { display: block; margin-bottom: 3rem; color: var(--cyan); font-family: Consolas, monospace; font-size: 0.7rem; }
.workshop-grid article p { color: #9fa4ad; font-size: 0.88rem; }

.maker-quote {
  padding: 7rem 0;
  background: var(--signal);
  color: #120d0b;
}

.maker-quote .section-inner { position: relative; }
.quote-index { display: block; margin-bottom: 3rem; font-family: Consolas, monospace; font-size: 0.75rem; font-weight: 800; }
.maker-quote blockquote { max-width: 1050px; margin: 0; font-size: 4.8rem; font-weight: 850; line-height: 0.98; }
.maker-quote p { margin: 1.5rem 0 0; color: rgba(18, 13, 11, 0.72); font-size: 1rem; font-weight: 650; }

.timeline {
  padding: 7rem 0;
  background: var(--paper);
  color: var(--ink);
}

.timeline .section-heading > p:not(.eyebrow) { color: #5b5d64; }
.timeline-item { border: 0; border-top: 1px solid #c5c4bd; border-radius: 0; padding: 1rem 0; background: transparent; box-shadow: none; }
.timeline-item time { color: #087b88; }
.timeline-item h3 { color: #17181c; }
.timeline-item p { color: #575960; }

.sources {
  padding: 5.5rem 0;
  background: #111218;
}

.source-links a { border-color: rgba(255, 255, 255, 0.13); background: #191b22; }

.contact {
  padding: 7rem 0;
  background:
    linear-gradient(90deg, rgba(8, 9, 13, 0.96), rgba(8, 9, 13, 0.73)),
    url("assets/hero-workshop-space-v2.webp") center 68% / cover;
}

.contact h2 { font-size: 4.2rem; line-height: 1; }
.contact-panel { border-color: rgba(255, 255, 255, 0.16); background: rgba(14, 16, 22, 0.88); }
.contact-label { color: var(--cyan) !important; font-family: Consolas, monospace; font-size: 0.75rem; text-transform: uppercase; }

#flight-rocket {
  opacity: 0.69;
  mix-blend-mode: screen;
}

@media (max-width: 1040px) {
  .site-nav { order: 3; width: 100%; overflow-x: auto; justify-content: flex-start; }
  .site-header { flex-wrap: wrap; }
  .hero { padding-top: 10rem; }
  .hero-grid { grid-template-columns: 1fr; min-height: auto; }
  .hero-console { min-height: auto; }
  .case-study { grid-template-columns: 1fr; }
  .case-study:nth-of-type(even) .case-copy,
  .case-study:nth-of-type(even) > :last-child { order: initial; }
  .radar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .capability-row { grid-template-columns: 1fr 1fr; }
  .capability-row .tag-row { grid-column: 1 / -1; }
  .workshop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .section-inner { width: min(100% - 1.25rem, 1220px); }
  .site-header { position: relative; padding: 0.6rem 0.7rem; }
  .brand { font-size: 0.9rem; }
  .site-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.1rem; overflow: visible; }
  .site-nav a { min-width: 0; padding: 0.42rem 0.2rem; font-size: 0.74rem; text-align: center; }
  .hero { padding: 4.8rem 0 1rem; }
  .hero-bg { background-position: 67% center; opacity: 0.48; }
  .hero-shade { background: linear-gradient(180deg, rgba(8, 9, 13, 0.72), #08090d 92%), linear-gradient(90deg, #08090d, transparent); }
  .hero h1 { font-size: 4.35rem; }
  .hero-thesis { font-size: 1.35rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-proof { grid-template-columns: repeat(2, 1fr); }
  .hero-proof > span {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 0.45rem;
    min-height: 6.2rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.9rem;
    text-align: center;
  }
  .hero-proof > span:nth-child(2n) { border-right: 0; }
  .hero-proof > span:first-child { padding-left: 0.9rem; }
  .hero-proof small { font-size: 0.8rem; }
  .positioning,
  .case-studies,
  .project-radar,
  .capabilities,
  .hobbies,
  .maker-quote,
  .timeline,
  .contact { padding: 4.5rem 0; }
  .positioning-grid,
  .section-title-row,
  .split-layout,
  .sources-layout,
  .contact-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  h2 { font-size: 2rem; }
  .positioning h2 { font-size: 2.75rem; }
  .case-study { padding: 0.8rem; }
  .case-study h3 { font-size: 2.1rem; }
  .case-facts > div { grid-template-columns: 1fr; gap: 0.2rem; }
  .psp-architecture,
  .moderation-pipeline,
  .music-visual,
  .music-visual img { min-height: 410px; }
  .arch-node { width: 10rem; padding: 0.55rem; }
  .arch-node.firefighter { left: 4%; }
  .arch-node.beacon { left: 39%; }
  .arch-node.base { right: 4%; }
  .arch-node.dashboard { right: 8%; }
  .radar-grid,
  .workshop-grid { grid-template-columns: 1fr; }
  .filter-bar { display: grid; grid-template-columns: repeat(2, 1fr); width: 100%; }
  .radar-card { min-height: auto; }
  .capability-row { grid-template-columns: 1fr; gap: 0.8rem; }
  .capability-row .tag-row { grid-column: auto; }
  .maker-orbit { min-height: auto; }
  .orbit-readout { margin-top: 22rem; }
  .orbit-copy h2 { font-size: 2.65rem; }
  .rc-showcase { grid-template-columns: 1fr; }
  .maker-quote blockquote { font-size: 2.5rem; }
  #flight-rocket { opacity: 0.44; }
}

@media (prefers-reduced-motion: reduce) {
  .status-dot { animation: none; }
}

/* Dark technical surfaces: keep the rocket readable across the full route. */
.positioning {
  background: #121318;
  color: var(--text);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.positioning .eyebrow,
.case-studies .eyebrow,
.capabilities .eyebrow,
.timeline .eyebrow {
  color: var(--cyan);
}

.positioning h2,
.case-studies h2,
.capabilities h2,
.timeline h2 {
  color: #f4f4f0;
}

.positioning-copy > p,
.case-studies .section-title-row > p,
.capabilities .section-title-row > p,
.timeline .section-heading > p:not(.eyebrow) {
  color: #aeb2bb;
}

.role-fit span {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.045);
  color: #e1e3e8;
}

.case-studies {
  background: #0c0e12;
  color: var(--text);
}

.case-study {
  border-color: rgba(255, 255, 255, 0.13);
  background:
    linear-gradient(135deg, rgba(70, 217, 234, 0.035), transparent 38%),
    #15171c;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.26);
}

.case-study h3 {
  color: #f7f7f3;
}

.case-study .project-meta {
  color: #858a94;
}

.case-lead,
.case-facts dd {
  color: #b9bdc5;
}

.case-facts > div {
  border-top-color: rgba(255, 255, 255, 0.11);
}

.case-facts dt {
  color: var(--cyan);
}

.case-study .tag-row span {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.045);
  color: #d9dce3;
}

.case-study .project-actions button {
  border-color: var(--cyan);
  background: var(--cyan);
  color: #071014;
}

.case-study .project-actions a {
  border-color: rgba(255, 189, 98, 0.5);
  background: rgba(255, 189, 98, 0.08);
  color: #ffd291;
}

.capabilities {
  background: #111218;
  color: var(--text);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.capability-board {
  border-top-color: rgba(255, 255, 255, 0.36);
}

.capability-row {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.capability-row > div:first-child span {
  color: #858a94;
}

.capability-row h3 {
  color: #f2f3ef;
}

.capability-row p {
  color: #aeb2bb;
}

.capability-row .tag-row span {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.045);
  color: #d8dbe2;
}

.capability-row.primary-skill {
  border-left-color: var(--cyan);
  background: rgba(70, 217, 234, 0.045);
}

.timeline {
  background: #0d0f13;
  color: var(--text);
}

.timeline-item {
  border-top-color: rgba(255, 255, 255, 0.14);
}

.timeline-item time {
  color: var(--cyan);
}

.timeline-item h3 {
  color: #f1f2ee;
}

.timeline-item p {
  color: #a9adb6;
}

.sources {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.maker-quote {
  background:
    linear-gradient(110deg, rgba(239, 91, 69, 0.15), transparent 54%),
    #151116;
  color: #f5f5f1;
  border-top: 1px solid rgba(239, 91, 69, 0.28);
  border-bottom: 1px solid rgba(239, 91, 69, 0.18);
}

.quote-index {
  color: #ff826f;
}

.maker-quote blockquote {
  color: #f6f6f2;
}

.maker-quote p {
  color: #aeb1b9;
}

/* Maker orbit: a full-bleed system map with a dedicated stage on every viewport. */
.maker-orbit {
  isolation: isolate;
  min-height: 1080px;
  overflow: clip;
  padding: 6rem 0;
  background:
    radial-gradient(circle at 56% 48%, rgba(26, 83, 101, 0.17), transparent 28%),
    radial-gradient(circle at 72% 30%, rgba(90, 52, 134, 0.11), transparent 26%),
    #090a0e;
}

#maker-orbit {
  cursor: default;
}

.orbit-grid-lines {
  opacity: 0.34;
  background:
    linear-gradient(rgba(70, 217, 234, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 189, 98, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.12) 48%, rgba(0, 0, 0, 0.7));
}

.orbit-layout {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.65fr);
  grid-template-rows: auto 500px auto;
  align-items: start;
  gap: 2rem 3rem;
  min-height: 860px;
}

.orbit-copy {
  position: relative;
  z-index: 2;
  grid-column: 1;
  grid-row: 1;
  max-width: 720px;
}

.orbit-copy::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -2rem -4rem -2rem -10vw;
  background: linear-gradient(90deg, #090a0e 0%, rgba(9, 10, 14, 0.94) 56%, rgba(9, 10, 14, 0.54) 78%, transparent 100%);
  pointer-events: none;
}

.orbit-copy h2 {
  max-width: 720px;
  font-size: 3.25rem;
  line-height: 1;
}

.orbit-copy p:not(.eyebrow) {
  max-width: 680px;
  color: #c5cad3;
  font-size: 1.02rem;
  line-height: 1.75;
}

.orbit-legend {
  gap: 0.48rem;
  margin-top: 1.7rem;
}

.orbit-legend span {
  border-color: rgba(255, 255, 255, 0.14);
  border-radius: 3px;
  padding: 0.38rem 0.58rem;
  background: rgba(13, 15, 20, 0.72);
  color: #d7dae1;
  font-family: "Cascadia Mono", "Fira Code", Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0;
  backdrop-filter: blur(8px);
}

.orbit-stage {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  grid-row: 2;
  min-width: 0;
  min-height: 500px;
  overflow: clip;
  pointer-events: none;
}

.orbit-stage::before,
.orbit-stage::after {
  content: "";
  position: absolute;
  inset: 13% 7%;
  border: 1px solid rgba(70, 217, 234, 0.1);
  border-radius: 50%;
  transform: rotate(-14deg);
}

.orbit-stage::after {
  inset: 25% 18%;
  border-color: rgba(255, 189, 98, 0.11);
  transform: rotate(23deg);
}

.orbit-stage-label {
  --label-accent: var(--cyan);
  position: absolute;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  min-height: 2rem;
  border: 1px solid rgba(70, 217, 234, 0.34);
  border-radius: 3px;
  padding: 0.36rem 0.58rem;
  background: #070a0f;
  color: #f0f5fa;
  font-family: "Cascadia Mono", "Fira Code", Consolas, monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.34), inset 0 0 18px rgba(70, 217, 234, 0.045);
  backdrop-filter: blur(10px);
}

.orbit-mobile-system {
  display: none;
  transition: opacity 240ms ease, visibility 240ms ease;
}

.maker-orbit:has(#maker-orbit[data-rendered="true"]) .orbit-mobile-system {
  opacity: 0;
  visibility: hidden;
}

.orbit-stage-label::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--label-accent);
  box-shadow: 0 0 12px var(--label-accent);
  animation: orbit-label-pulse 2.8s ease-in-out infinite;
}

.orbit-stage-label.is-tracked::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  width: var(--leader-length, 3.1rem);
  height: 1px;
  background: linear-gradient(90deg, var(--label-accent), transparent);
  transform: translateY(-50%);
  opacity: 0.72;
  pointer-events: none;
}

.label-data { top: 17%; left: 6%; }
.label-deploy { --label-accent: var(--amber); top: 22%; right: 7%; }
.label-deploy { border-color: rgba(255, 189, 98, 0.4); }
.label-deploy::before { background: var(--amber); box-shadow: 0 0 12px var(--amber); }
.label-hardware { --label-accent: var(--green); bottom: 12%; left: 10%; }
.label-hardware { border-color: rgba(80, 227, 164, 0.4); }
.label-hardware::before { background: var(--green); box-shadow: 0 0 12px var(--green); }

@keyframes orbit-label-pulse {
  0%, 100% { opacity: 0.5; transform: scale(0.82); }
  50% { opacity: 1; transform: scale(1.18); }
}

.orbit-readout {
  counter-reset: readout;
  position: relative;
  z-index: 2;
  grid-column: 1 / -1;
  grid-row: 3;
  align-self: start;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 0;
  border-top: 1px solid rgba(70, 217, 234, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 0;
  padding: 0;
  background: rgba(9, 10, 14, 0.94);
  box-shadow: none;
  backdrop-filter: blur(5px);
}

.readout-top {
  grid-column: 1 / -1;
  min-height: 2.5rem;
  margin: 0;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  color: #dce2ea;
  font-size: 0.68rem;
}

.readout-top span:last-child {
  border-radius: 3px;
}

.readout-row {
  counter-increment: readout;
  position: relative;
  min-height: 160px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0;
  padding: 1.25rem 1.25rem 1.35rem 3.25rem;
  background: transparent;
  transition: border-color 180ms ease, transform 180ms ease;
}

.readout-row:hover {
  background: rgba(70, 217, 234, 0.035);
  transform: translateY(-3px);
}

.readout-row:last-child { border-right: 0; }

.readout-row::before {
  content: "0" counter(readout);
  position: absolute;
  top: 1.28rem;
  left: 1.15rem;
  color: var(--cyan);
  font-family: "Cascadia Mono", "Fira Code", Consolas, monospace;
  font-size: 0.68rem;
}

.readout-row strong {
  margin-bottom: 0.4rem;
  color: #f1f2ef;
  font-size: 0.98rem;
  line-height: 1.35;
}

.readout-row p {
  color: #a8adb7;
  font-size: 0.86rem;
  line-height: 1.65;
}

@media (max-width: 1180px) {
  .orbit-layout {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.58fr);
    gap: 1.75rem 2rem;
  }

  .orbit-copy h2 {
    font-size: 2.8rem;
  }
}

@media (max-width: 980px) {
  .maker-orbit {
    min-height: auto;
    padding: 5.5rem 0;
  }

  .orbit-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 480px auto;
    gap: 1.75rem;
    min-height: auto;
  }

  .orbit-copy,
  .orbit-stage,
  .orbit-readout {
    grid-column: 1;
  }

  .orbit-copy { grid-row: 1; }
  .orbit-stage { grid-row: 2; }
  .orbit-readout { grid-row: 3; }

  .orbit-copy {
    max-width: 680px;
  }

  .orbit-copy::before {
    right: -1rem;
    background: linear-gradient(90deg, #090a0e 0%, rgba(9, 10, 14, 0.9) 72%, transparent 100%);
  }

  .orbit-copy h2 {
    font-size: 2.5rem;
  }

  .orbit-stage {
    min-height: 480px;
  }

  .orbit-readout {
    width: 100%;
    margin: 0;
    background: rgba(9, 10, 14, 0.92);
  }
}

@media (max-width: 720px) {
  .orbit-readout {
    grid-template-columns: 1fr;
  }

  .readout-row {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .readout-row:last-child { border-bottom: 0; }
}

@media (max-width: 640px) {
  .maker-orbit {
    padding: 4.5rem 0;
  }

  .orbit-copy h2 {
    font-size: 2.1rem;
    line-height: 1.05;
  }

  .orbit-copy p:not(.eyebrow) {
    font-size: 0.95rem;
  }

  .orbit-stage {
    min-height: 400px;
  }

  .orbit-layout {
    grid-template-rows: auto 400px auto;
    gap: 1.25rem;
  }

  .orbit-mobile-system {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 8.4rem;
    aspect-ratio: 1;
    place-items: center;
    border: 1px solid rgba(70, 217, 234, 0.34);
    border-radius: 50%;
    background:
      radial-gradient(circle, rgba(70, 217, 234, 0.36) 0 18%, rgba(70, 217, 234, 0.08) 38%, transparent 68%),
      rgba(8, 12, 18, 0.54);
    box-shadow: 0 0 42px rgba(70, 217, 234, 0.16), inset 0 0 24px rgba(70, 217, 234, 0.08);
    transform: translate(-50%, -50%);
    backdrop-filter: blur(3px);
  }

  .maker-orbit:has(#maker-orbit[data-rendered="true"]) .orbit-mobile-system {
    opacity: 1;
    visibility: visible;
  }

  .orbit-mobile-system strong {
    position: relative;
    z-index: 2;
    display: grid;
    width: 3.4rem;
    aspect-ratio: 1;
    place-items: center;
    border: 1px solid rgba(70, 217, 234, 0.55);
    border-radius: 50%;
    background: #0d1820;
    color: #eafcff;
    font-family: "Cascadia Mono", "Fira Code", Consolas, monospace;
    font-size: 1rem;
    box-shadow: 0 0 24px rgba(70, 217, 234, 0.3);
  }

  .mobile-orbit-ring {
    position: absolute;
    inset: 1.35rem -1.6rem;
    border: 1px solid rgba(255, 189, 98, 0.34);
    border-radius: 50%;
    transform: rotate(27deg);
  }

  .mobile-orbit-ring.ring-two {
    inset: -1.1rem 1.8rem;
    border-color: rgba(166, 111, 255, 0.36);
    transform: rotate(-34deg);
  }

  .mobile-packet {
    position: absolute;
    top: calc(50% - 3px);
    left: calc(50% - 3px);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 12px var(--cyan);
    animation: mobile-packet-orbit 4.8s linear infinite;
  }

  .packet-two {
    background: var(--amber);
    box-shadow: 0 0 12px var(--amber);
    animation-duration: 6.2s;
    animation-delay: -2.1s;
  }

  .packet-three {
    background: var(--green);
    box-shadow: 0 0 12px var(--green);
    animation-duration: 7.4s;
    animation-delay: -4.2s;
  }

  .orbit-stage::before { inset: 17% 2%; }
  .orbit-stage::after { inset: 28% 14%; }
  .orbit-stage-label {
    min-height: 1.9rem;
    padding: 0.32rem 0.48rem;
    font-size: 0.66rem;
  }

  .label-data { top: 6%; left: 0; }
  .label-deploy { top: 6%; right: 0; }
  .label-hardware { bottom: 7%; left: 0; }

  .orbit-readout {
    border-top-color: rgba(70, 217, 234, 0.24);
  }

  .readout-row {
    padding: 1.15rem 1rem 1.2rem 3rem;
  }
}

@keyframes mobile-packet-orbit {
  from { transform: rotate(0deg) translateX(5.3rem) rotate(0deg); }
  to { transform: rotate(360deg) translateX(5.3rem) rotate(-360deg); }
}

@media (prefers-reduced-motion: reduce) {
  #maker-orbit {
    cursor: default;
  }

  .orbit-stage-label::before {
    animation: none;
  }

  .mobile-packet {
    animation: none;
  }
}

/* Galaxy visual system ---------------------------------------------------- */
:root {
  --bg: #050713;
  --bg-2: #090d22;
  --surface: rgba(12, 16, 39, 0.86);
  --surface-solid: #10152f;
  --line: rgba(167, 131, 255, 0.22);
  --cyan: #50e6ff;
  --violet: #ad86ff;
  --amber: #ffc46b;
  --green: #75e3b2;
  --signal: #c86cff;
  --shadow: 0 28px 80px rgba(1, 2, 12, 0.42);
}

html {
  background: #040610;
}

body {
  background:
    linear-gradient(128deg, rgba(100, 55, 190, 0.16) 0%, transparent 29%, transparent 68%, rgba(34, 116, 184, 0.12) 100%),
    linear-gradient(180deg, #050713 0%, #090d22 52%, #050713 100%);
}

body::before {
  z-index: -3;
  background:
    linear-gradient(118deg, transparent 0 18%, rgba(143, 91, 236, 0.055) 33%, rgba(48, 151, 207, 0.035) 48%, transparent 64%),
    linear-gradient(rgba(137, 161, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(137, 161, 255, 0.018) 1px, transparent 1px),
    #050713;
  background-size: auto, 64px 64px, 64px 64px, auto;
}

#starfield {
  z-index: -2;
  opacity: 0.88;
  filter: saturate(1.18);
}

.site-header {
  border-bottom-color: rgba(167, 131, 255, 0.2);
  background: rgba(6, 8, 25, 0.82);
  box-shadow: 0 12px 42px rgba(1, 2, 14, 0.46);
}

.brand-mark,
.header-cv,
.lang-toggle {
  background: rgba(13, 17, 43, 0.92);
}

.brand-mark {
  border-color: rgba(80, 230, 255, 0.44);
  box-shadow: inset 0 0 18px rgba(80, 230, 255, 0.055);
}

.page-progress {
  background: linear-gradient(90deg, var(--violet), var(--cyan) 56%, var(--amber));
  box-shadow: 0 0 16px rgba(137, 112, 255, 0.58);
}

.hero {
  background: #050713;
}

.hero-bg {
  opacity: 0.76;
  filter: saturate(1.04) contrast(1.08) hue-rotate(7deg);
}

.hero-shade {
  background:
    linear-gradient(90deg, #050713 0%, rgba(6, 8, 26, 0.96) 34%, rgba(15, 13, 45, 0.5) 70%, rgba(5, 7, 19, 0.8) 100%),
    linear-gradient(180deg, rgba(5, 7, 19, 0.24), #070a1d 96%);
}

.hero-console,
.contact-panel {
  border-color: rgba(167, 131, 255, 0.25);
  background:
    linear-gradient(145deg, rgba(103, 64, 188, 0.075), transparent 42%),
    rgba(9, 13, 34, 0.88);
  box-shadow: 0 30px 90px rgba(2, 2, 18, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.btn,
.role-fit span,
.case-study .tag-row span,
.capability-row .tag-row span,
.source-links a,
.contact-panel a,
.contact-panel span {
  background-color: rgba(17, 22, 53, 0.78);
}

.positioning,
.case-studies,
.project-radar,
.maker-orbit,
.capabilities,
.hobbies,
.maker-quote,
.timeline,
.sources,
.contact {
  position: relative;
  border-color: rgba(167, 131, 255, 0.13);
}

.positioning {
  background:
    linear-gradient(112deg, rgba(120, 71, 205, 0.13), transparent 36%),
    rgba(8, 11, 29, 0.97);
}

.case-studies {
  background:
    linear-gradient(152deg, transparent 0 40%, rgba(53, 88, 180, 0.1) 68%, transparent 88%),
    rgba(5, 8, 23, 0.98);
}

.case-study {
  border-color: rgba(157, 134, 255, 0.2);
  background:
    linear-gradient(135deg, rgba(80, 230, 255, 0.055), transparent 34%),
    linear-gradient(315deg, rgba(159, 93, 255, 0.065), transparent 42%),
    rgba(13, 17, 42, 0.92);
  box-shadow: 0 24px 68px rgba(1, 2, 15, 0.34);
}

.project-radar {
  background:
    linear-gradient(122deg, rgba(94, 48, 178, 0.12), transparent 34% 74%, rgba(32, 114, 166, 0.08)),
    rgba(8, 11, 29, 0.98);
}

.filter-bar,
.radar-card,
.workshop-grid article,
.rc-showcase {
  border-color: rgba(167, 131, 255, 0.2);
  background:
    linear-gradient(145deg, rgba(108, 69, 196, 0.06), transparent 42%),
    rgba(14, 18, 43, 0.9);
}

.radar-card:hover,
.workshop-grid article:hover {
  border-color: rgba(80, 230, 255, 0.5);
  box-shadow: 0 18px 52px rgba(24, 14, 75, 0.32);
}

.filter-bar button.is-active {
  background: linear-gradient(110deg, #a77dff, #50e6ff);
  color: #050713;
}

.maker-orbit {
  background:
    linear-gradient(126deg, rgba(104, 55, 197, 0.14), transparent 31% 68%, rgba(35, 128, 177, 0.09)),
    radial-gradient(ellipse at 54% 49%, rgba(54, 138, 170, 0.15), transparent 34%),
    #050817;
}

.orbit-copy::before {
  background: linear-gradient(90deg, #07091d 0%, rgba(7, 9, 29, 0.95) 56%, rgba(9, 10, 32, 0.55) 78%, transparent 100%);
}

.orbit-grid-lines {
  opacity: 0.46;
  background:
    linear-gradient(rgba(128, 112, 255, 0.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80, 230, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
}

.orbit-legend span,
.orbit-readout,
.orbit-stage-label {
  background-color: rgba(7, 10, 28, 0.92);
}

.capabilities {
  background:
    linear-gradient(144deg, rgba(53, 123, 177, 0.075), transparent 34% 72%, rgba(118, 63, 207, 0.1)),
    rgba(9, 12, 32, 0.98);
}

.capability-row.primary-skill {
  background: linear-gradient(90deg, rgba(80, 230, 255, 0.07), rgba(150, 98, 255, 0.035), transparent 72%);
}

.hobbies {
  background:
    linear-gradient(112deg, rgba(117, 68, 206, 0.12), transparent 36% 68%, rgba(36, 133, 184, 0.08)),
    rgba(6, 9, 25, 0.98);
}

.rc-blueprint {
  background: #070b20;
}

.maker-quote {
  background:
    linear-gradient(104deg, rgba(146, 77, 230, 0.24), transparent 52%),
    linear-gradient(180deg, #120d2c, #090b20);
  border-top-color: rgba(200, 108, 255, 0.35);
  border-bottom-color: rgba(80, 230, 255, 0.15);
}

.quote-index {
  color: #d59bff;
}

.timeline {
  background:
    linear-gradient(128deg, transparent 0 54%, rgba(100, 60, 190, 0.12) 78%, transparent 100%),
    rgba(8, 11, 29, 0.98);
}

.sources {
  background:
    linear-gradient(90deg, rgba(54, 111, 171, 0.07), transparent 40% 72%, rgba(117, 63, 203, 0.08)),
    rgba(10, 13, 34, 0.98);
}

.source-links a {
  border-color: rgba(167, 131, 255, 0.2);
}

.contact {
  background:
    linear-gradient(90deg, rgba(5, 7, 21, 0.98), rgba(13, 10, 42, 0.82)),
    url("assets/hero-workshop-space-v2.webp") center 68% / cover;
}

.site-footer {
  border-top-color: rgba(167, 131, 255, 0.18);
  background: #050713;
}

@media (max-width: 980px) {
  .orbit-copy::before {
    background: linear-gradient(90deg, #07091d 0%, rgba(7, 9, 29, 0.93) 72%, transparent 100%);
  }

  .orbit-readout {
    background: rgba(7, 10, 28, 0.94);
  }
}

@media (max-width: 640px) {
  body::before {
    background:
      linear-gradient(118deg, transparent 0 12%, rgba(143, 91, 236, 0.05) 36%, transparent 68%),
      linear-gradient(rgba(137, 161, 255, 0.016) 1px, transparent 1px),
      linear-gradient(90deg, rgba(137, 161, 255, 0.016) 1px, transparent 1px),
      #050713;
    background-size: auto, 48px 48px, 48px 48px, auto;
  }
}

/* Visible star layer: section backgrounds used to hide the global canvas. */
.section-band::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -72px 0;
  pointer-events: none;
  opacity: 0.76;
  background-image:
    radial-gradient(circle at 17% 23%, rgba(255, 255, 255, 0.92) 0 0.75px, rgba(133, 210, 255, 0.32) 1px, transparent 2.2px),
    radial-gradient(circle at 71% 16%, rgba(211, 196, 255, 0.9) 0 0.8px, rgba(160, 118, 255, 0.3) 1.1px, transparent 2.5px),
    radial-gradient(circle at 39% 74%, rgba(255, 255, 255, 0.76) 0 0.55px, transparent 1.35px),
    radial-gradient(circle at 84% 61%, rgba(126, 226, 255, 0.78) 0 0.65px, transparent 1.55px),
    radial-gradient(circle at 52% 42%, rgba(255, 255, 255, 0.58) 0 0.45px, transparent 1.15px),
    radial-gradient(circle at 9% 86%, rgba(202, 180, 255, 0.66) 0 0.55px, transparent 1.35px),
    radial-gradient(circle at 93% 31%, rgba(255, 220, 159, 0.62) 0 0.55px, transparent 1.4px),
    radial-gradient(circle at 63% 91%, rgba(255, 255, 255, 0.52) 0 0.45px, transparent 1.1px);
  background-position: 13px 19px, 97px 41px, 31px 73px, 149px 11px, 211px 89px, 61px 137px, 173px 53px, 7px 101px;
  background-size: 347px 293px, 463px 379px, 251px 337px, 521px 431px, 293px 487px, 419px 347px, 577px 389px, 313px 271px;
  transform: translateZ(0);
  animation: galaxy-star-drift 42s linear infinite alternate;
}

.section-band > .section-inner {
  position: relative;
  z-index: 2;
}

.hero::after {
  opacity: 0.9;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.72), #000 46%, rgba(0, 0, 0, 0.92));
}

.maker-orbit::after,
.contact::after {
  opacity: 0.92;
}

@keyframes galaxy-star-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, -28px, 0); }
}

@media (max-width: 640px) {
  .section-band::after {
    inset: -48px 0;
    opacity: 0.68;
    background-size: 293px 257px, 397px 337px, 223px 311px, 449px 389px, 271px 421px, 367px 313px, 491px 347px, 277px 241px;
  }

  .hero::after,
  .maker-orbit::after,
  .contact::after {
    opacity: 0.82;
  }
}

@media (prefers-reduced-motion: reduce) {
  .section-band::after {
    animation: none;
  }
}

/* Unified galaxy bands ---------------------------------------------------- */
:root {
  --galaxy-page: #050713;
  --galaxy-band-top: rgba(9, 13, 36, 0.985);
  --galaxy-band-bottom: rgba(5, 8, 24, 0.985);
  --galaxy-surface: rgba(13, 18, 45, 0.9);
  --galaxy-surface-border: rgba(157, 134, 255, 0.2);
}

body,
main {
  background-color: var(--galaxy-page);
}

.positioning,
.case-studies,
.project-radar,
.maker-orbit,
.capabilities,
.hobbies,
.maker-quote,
.timeline,
.sources,
.contact {
  background:
    linear-gradient(124deg, rgba(112, 70, 205, 0.095), transparent 34% 68%, rgba(39, 132, 186, 0.065)),
    linear-gradient(180deg, var(--galaxy-band-top), var(--galaxy-band-bottom));
  border-top-color: rgba(157, 134, 255, 0.14);
  border-bottom-color: rgba(80, 230, 255, 0.08);
}

.hero-console,
.case-study,
.filter-bar,
.radar-card,
.orbit-readout,
.rc-showcase,
.workshop-grid article,
.contact-panel,
.source-links a {
  border-color: var(--galaxy-surface-border);
  background:
    linear-gradient(145deg, rgba(108, 69, 196, 0.055), transparent 42%),
    var(--galaxy-surface);
}

@media (max-width: 640px) {
  .positioning,
  .case-studies,
  .project-radar,
  .maker-orbit,
  .capabilities,
  .hobbies,
  .maker-quote,
  .timeline,
  .sources,
  .contact {
    background:
      linear-gradient(118deg, rgba(112, 70, 205, 0.075), transparent 40% 72%, rgba(39, 132, 186, 0.05)),
      linear-gradient(180deg, var(--galaxy-band-top), var(--galaxy-band-bottom));
  }
}

/* Recruiter-first portfolio pass ---------------------------------------- */

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.case-studies {
  padding-top: 6rem;
}

.olx-pipeline {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 0.9rem;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(167, 131, 255, 0.24);
  border-radius: 5px;
  padding: 1rem;
  color: #f4f7ff;
  background:
    linear-gradient(rgba(80, 230, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(167, 131, 255, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 83% 13%, rgba(173, 134, 255, 0.16), transparent 29%),
    #080c1d;
  background-size: 34px 34px, 34px 34px, auto, auto;
}

.olx-pipeline::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(80, 230, 255, 0.045), transparent 38% 72%, rgba(255, 196, 107, 0.05));
}

.olx-pipeline > * {
  position: relative;
  z-index: 1;
}

.olx-pipeline-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.35rem 0.2rem 0.85rem;
  color: #9299ad;
  font-family: Consolas, monospace;
  font-size: 0.72rem;
}

.olx-pipeline-head strong {
  color: var(--amber);
  font-weight: 700;
}

.olx-query {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.7rem;
  border: 1px solid rgba(80, 230, 255, 0.2);
  padding: 0.85rem;
  background: rgba(5, 9, 24, 0.84);
}

.olx-query small {
  color: var(--cyan);
  font-family: Consolas, monospace;
  font-size: 0.66rem;
  text-transform: uppercase;
}

.olx-query strong {
  min-width: 0;
  font-size: 0.9rem;
}

.olx-query span {
  color: #aab0c0;
  font-family: Consolas, monospace;
  font-size: 0.67rem;
}

.olx-pipeline ol {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.olx-pipeline li {
  display: grid;
  grid-template-columns: 2.2rem 1fr auto;
  align-items: center;
  gap: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 0.72rem;
  background: rgba(16, 22, 49, 0.74);
}

.olx-pipeline li > span {
  color: var(--cyan);
  font-family: Consolas, monospace;
  font-size: 0.67rem;
}

.olx-pipeline li div {
  display: grid;
  min-width: 0;
}

.olx-pipeline li strong {
  font-size: 0.82rem;
}

.olx-pipeline li small {
  color: #858da1;
  font-size: 0.7rem;
}

.olx-pipeline li i {
  min-width: 2rem;
  border: 1px solid rgba(117, 227, 178, 0.3);
  border-radius: 999px;
  padding: 0.16rem 0.4rem;
  color: var(--green);
  font-family: Consolas, monospace;
  font-size: 0.61rem;
  font-style: normal;
  text-align: center;
}

.olx-ranking {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.olx-ranking > span {
  display: grid;
  min-width: 0;
  border-top: 2px solid var(--violet);
  padding: 0.65rem;
  background: rgba(18, 24, 55, 0.9);
}

.olx-ranking > span:first-child {
  border-top-color: var(--cyan);
  background: linear-gradient(145deg, rgba(80, 230, 255, 0.1), rgba(18, 24, 55, 0.9));
}

.olx-ranking b {
  color: #7e879f;
  font-family: Consolas, monospace;
  font-size: 0.62rem;
}

.olx-ranking strong {
  margin: 0.25rem 0;
  color: #fff;
  font-size: 1rem;
}

.olx-ranking small {
  overflow-wrap: anywhere;
  color: #8f97a9;
  font-size: 0.66rem;
  line-height: 1.35;
}

.award-card {
  position: relative;
  overflow: hidden;
}

.award-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--amber), var(--violet), transparent 82%);
}

.workshop-quote {
  display: grid;
  grid-template-columns: minmax(170px, 0.32fr) minmax(320px, 1fr);
  gap: 0.8rem 2rem;
  align-items: start;
  margin-top: 2.5rem;
  border-top: 1px solid rgba(167, 131, 255, 0.28);
  border-bottom: 1px solid rgba(80, 230, 255, 0.14);
  padding: 2rem 0;
}

.workshop-quote > span {
  color: var(--amber);
  font-family: Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.workshop-quote blockquote {
  margin: 0;
  color: #f7f7fb;
  font-size: 1.45rem;
  font-weight: 780;
  line-height: 1.25;
}

.workshop-quote p {
  grid-column: 2;
  margin: 0;
  color: #9fa7bb;
}

#proof {
  scroll-margin-top: 6.5rem;
}

@media (max-width: 720px) {
  .case-studies,
  .project-radar,
  .capabilities,
  .hobbies,
  .sources,
  .contact {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }

  .olx-pipeline {
    min-height: 470px;
    padding: 0.75rem;
  }

  .olx-query {
    grid-template-columns: 1fr auto;
  }

  .olx-query small {
    grid-column: 1 / -1;
  }

  .olx-ranking {
    gap: 0.35rem;
  }

  .olx-ranking > span {
    padding: 0.5rem;
  }

  .workshop-quote {
    grid-template-columns: 1fr;
    margin-top: 1.5rem;
    padding: 1.5rem 0;
  }

  .workshop-quote blockquote {
    font-size: 1.2rem;
  }

  .workshop-quote p {
    grid-column: auto;
  }
}

@media (max-width: 420px) {
  .olx-pipeline-head,
  .olx-query {
    font-size: 0.75rem;
  }

  .olx-ranking strong {
    font-size: 0.86rem;
  }

  .olx-ranking small {
    font-size: 0.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .award-card,
  .olx-pipeline,
  .olx-pipeline * {
    transition: none !important;
    animation: none !important;
  }
}

/* Verified work and project discovery pass ----------------------------- */

.psp-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 1.25rem 0 0.2rem;
}

.psp-proof-grid > span {
  display: block;
  min-width: 0;
  border-top: 1px solid rgba(80, 230, 255, 0.28);
  padding: 0.8rem 0.1rem 0;
}

.psp-proof-grid strong,
.psp-proof-grid small {
  display: block;
}

.psp-proof-grid strong {
  margin-bottom: 0.38rem;
  color: var(--amber);
  font-family: Consolas, monospace;
  font-size: 1.12rem;
  line-height: 1;
}

.psp-proof-grid small {
  color: #aeb7ca;
  font-size: 0.7rem;
  line-height: 1.4;
}

.sources-layout {
  grid-template-columns: minmax(250px, 0.62fr) minmax(0, 1.38fr);
  align-items: start;
  gap: clamp(2rem, 5vw, 5rem);
}

.sources-intro {
  position: sticky;
  top: 7rem;
}

.sources-intro h2 {
  max-width: 470px;
}

.sources-intro > p:last-child {
  max-width: 430px;
  color: #a9b1c4;
  line-height: 1.65;
}

.source-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 0.75rem;
}

.source-links .source-card {
  position: relative;
  display: flex;
  min-height: 220px;
  flex-direction: column;
  align-items: flex-start;
  border-radius: 5px;
  padding: 1.1rem;
  overflow: hidden;
  transition: border-color 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.source-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(82, 231, 255, 0.7), transparent 82%);
  opacity: 0.55;
}

.source-card.source-primary::before {
  background: linear-gradient(90deg, rgba(82, 231, 255, 0.82), transparent 82%);
  opacity: 1;
}

.source-links .source-card:hover {
  border-color: rgba(80, 230, 255, 0.48);
  transform: translateY(-3px);
}

.source-card > span {
  margin-bottom: 1.2rem;
  color: var(--cyan);
  font-family: Consolas, monospace;
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 700;
}

.source-card > strong {
  color: #f5f6fb;
  font-size: 1rem;
  line-height: 1.28;
}

.source-card > small {
  display: block;
  margin-top: 0.7rem;
  color: #a8b0c3;
  font-size: 0.76rem;
  line-height: 1.5;
}

.source-card > em {
  margin-top: auto;
  padding-top: 1.2rem;
  color: var(--amber);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
}

@media (max-width: 1040px) {
  .sources-intro {
    position: static;
  }
}

@media (max-width: 720px) {
  .sources-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }

  .psp-proof-grid {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .psp-proof-grid > span {
    display: grid;
    grid-template-columns: minmax(5.8rem, auto) minmax(0, 1fr);
    align-items: baseline;
    gap: 0.75rem;
  }

  .psp-proof-grid strong {
    margin-bottom: 0;
  }

  .source-links {
    grid-template-columns: 1fr;
  }

  .source-links .source-card {
    min-height: 190px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .source-links .source-card {
    transition: none !important;
  }
}

/* Visual rhythm: category accents without adding another ambient animation. */
.radar-card,
.workshop-grid article {
  --card-accent: var(--cyan);
  --card-accent-secondary: var(--violet);
  position: relative;
  overflow: hidden;
}

.radar-card::before,
.workshop-grid article::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--card-accent), var(--card-accent-secondary), transparent 84%);
  transform: scaleX(0.62);
  transform-origin: left center;
  opacity: 0.82;
  transition: transform 220ms ease, opacity 220ms ease;
  pointer-events: none;
}

.radar-card[data-category~="ai"] {
  --card-accent: #a783ff;
  --card-accent-secondary: #f08bc4;
}

.radar-card[data-category~="systems"] {
  --card-accent: #ffc46b;
  --card-accent-secondary: #50e6ff;
}

.radar-card[data-category~="automation"] {
  --card-accent: #50e6ff;
  --card-accent-secondary: #a783ff;
}

.radar-card.award-card {
  --card-accent: #ffc46b;
  --card-accent-secondary: #a783ff;
}

.radar-card .radar-code,
.workshop-grid article > span {
  color: var(--card-accent);
}

.workshop-grid article:nth-child(2) {
  --card-accent: #ffc46b;
  --card-accent-secondary: #50e6ff;
}

.workshop-grid article:nth-child(3) {
  --card-accent: #f08bc4;
  --card-accent-secondary: #ffc46b;
}

.workshop-grid article:nth-child(4) {
  --card-accent: #50e3a4;
  --card-accent-secondary: #a783ff;
}

@media (hover: hover) and (pointer: fine) {
  .radar-card:hover::before,
  .radar-card:focus-within::before,
  .workshop-grid article:hover::before {
    transform: scaleX(1);
    opacity: 1;
  }

  .workshop-grid article {
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
  }

  .workshop-grid article:hover {
    transform: translateY(-3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .radar-card::before,
  .workshop-grid article,
  .workshop-grid article::before {
    transition: none !important;
  }
}

/* PSP telemetry hub: responsive SVG routes and active processing nodes. */
.arch-links {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.arch-link-rail,
.arch-link-flow {
  fill: none;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  transition: opacity 180ms ease, stroke-width 180ms ease;
}

.arch-link-rail {
  stroke: rgba(80, 230, 255, 0.2);
  stroke-width: 1.2;
}

.arch-link-flow {
  stroke: url(#psp-link-gradient);
  stroke-width: 1.65;
  stroke-dasharray: 7 12;
  opacity: 0.78;
  animation: arch-route-flow 1.75s linear infinite;
}

.arch-link-flow.route-c {
  stroke: url(#psp-output-gradient);
}

.arch-packet {
  fill: #fff1bd;
  opacity: 0.95;
  filter: drop-shadow(0 0 4px rgba(255, 196, 107, 0.95)) drop-shadow(0 0 9px rgba(80, 230, 255, 0.5));
  transition: opacity 180ms ease;
}

.arch-node.beacon {
  appearance: none;
  color: #f4f7ff;
  font: inherit;
  letter-spacing: 0;
  text-align: left;
  cursor: pointer;
  border-color: rgba(167, 131, 255, 0.48);
  background:
    linear-gradient(135deg, rgba(167, 131, 255, 0.1), transparent 48%),
    rgba(9, 14, 31, 0.96);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.3), inset 0 0 24px rgba(167, 131, 255, 0.04);
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.arch-node.beacon > * {
  position: relative;
  z-index: 2;
}

.arch-node.beacon::before {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(167, 131, 255, 0.64);
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.beacon-node-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.beacon-anchor-cluster {
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  color: inherit !important;
}

.beacon-anchor-cluster i {
  position: relative;
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(80, 230, 255, 0.72);
}

.beacon-anchor-cluster i::after {
  content: "";
  position: absolute;
  inset: -3px;
  border: 1px solid rgba(80, 230, 255, 0.58);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.7);
  animation: beacon-anchor-ping 2.6s ease-out infinite;
}

.beacon-anchor-cluster i:nth-child(2)::after { animation-delay: -0.86s; }
.beacon-anchor-cluster i:nth-child(3)::after { animation-delay: -1.72s; }

.psp-architecture:where(.is-beacon-active, :has(.arch-node.beacon:hover), :has(.arch-node.beacon:focus-visible)) .arch-node.beacon {
  border-color: rgba(80, 230, 255, 0.88);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.34), 0 0 24px rgba(80, 230, 255, 0.14), inset 0 0 28px rgba(167, 131, 255, 0.09);
}

.psp-architecture:where(.is-beacon-active, :has(.arch-node.beacon:hover), :has(.arch-node.beacon:focus-visible)) .arch-node.beacon::before {
  opacity: 0.72;
  transform: scale(1.035);
}

.psp-architecture:where(.is-beacon-active, :has(.arch-node.beacon:hover), :has(.arch-node.beacon:focus-visible)) :is(.arch-link-rail, .arch-link-flow).route-a,
.psp-architecture:where(.is-beacon-active, :has(.arch-node.beacon:hover), :has(.arch-node.beacon:focus-visible)) :is(.arch-link-rail, .arch-link-flow).route-b {
  stroke-width: 2.35;
  opacity: 1;
}

.psp-architecture:where(.is-beacon-active, :has(.arch-node.beacon:hover), :has(.arch-node.beacon:focus-visible)) .arch-link-flow:is(.route-a, .route-b) {
  animation-duration: 0.82s;
}

.psp-architecture:where(.is-beacon-active, :has(.arch-node.beacon:hover), :has(.arch-node.beacon:focus-visible)) .arch-packet:is(.route-a, .route-b) {
  opacity: 1;
  filter: drop-shadow(0 0 5px rgba(255, 241, 189, 1)) drop-shadow(0 0 12px rgba(80, 230, 255, 0.85));
}

@keyframes arch-route-flow {
  to { stroke-dashoffset: -38; }
}

@keyframes beacon-anchor-ping {
  0% { opacity: 0.72; transform: scale(0.65); }
  70%, 100% { opacity: 0; transform: scale(1.75); }
}

.arch-node.base {
  --base-cycle: 3.1s;
  isolation: isolate;
  border-color: rgba(80, 230, 255, 0.5);
  background:
    linear-gradient(135deg, rgba(80, 230, 255, 0.09), transparent 46%),
    rgba(9, 15, 32, 0.96);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32), inset 0 0 26px rgba(80, 230, 255, 0.045);
}

.arch-node.base > * {
  position: relative;
  z-index: 2;
}

.arch-node.base::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -7px;
  border: 1px solid rgba(80, 230, 255, 0.7);
  opacity: 0;
  transform: scale(0.97);
  animation: base-node-receive var(--base-cycle) ease-out infinite;
  pointer-events: none;
}

.arch-node.base::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  left: -48%;
  width: 42%;
  background: linear-gradient(90deg, transparent, rgba(145, 239, 255, 0.14), transparent);
  transform: skewX(-12deg) translateX(0);
  animation: base-node-sweep var(--base-cycle) cubic-bezier(0.45, 0, 0.55, 1) infinite;
  pointer-events: none;
}

.base-node-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.6rem;
}

.base-node-meter {
  display: inline-flex !important;
  height: 0.72rem;
  align-items: flex-end;
  gap: 2px;
  color: inherit !important;
}

.base-node-meter i {
  display: block;
  width: 2px;
  height: 100%;
  background: var(--green);
  box-shadow: 0 0 7px rgba(80, 227, 164, 0.55);
  transform: scaleY(0.28);
  transform-origin: bottom;
  animation: base-node-meter 1.12s ease-in-out infinite;
}

.base-node-meter i:nth-child(2) { animation-delay: -0.38s; }
.base-node-meter i:nth-child(3) { animation-delay: -0.74s; }

.base-node-progress {
  height: 2px;
  margin-top: 0.55rem;
  overflow: hidden;
  background: rgba(80, 230, 255, 0.12);
}

.base-node-progress i {
  display: block;
  width: 36%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--cyan), #e6fbff, transparent);
  transform: translateX(-115%);
  animation: base-node-progress var(--base-cycle) ease-in-out infinite;
}

.architecture-status > span {
  position: relative;
  animation: telemetry-status 2.4s ease-in-out infinite;
}

.architecture-status > span::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(80, 227, 164, 0.72);
  border-radius: 50%;
  animation: telemetry-ring 2.4s ease-out infinite;
}

@keyframes base-node-receive {
  0%, 48%, 100% { opacity: 0; transform: scale(0.97); }
  60% { opacity: 0.72; transform: scale(1.035); }
  76% { opacity: 0.16; transform: scale(1.06); }
}

@keyframes base-node-sweep {
  0%, 48% { transform: skewX(-12deg) translateX(0); opacity: 0; }
  58% { opacity: 1; }
  82%, 100% { transform: skewX(-12deg) translateX(360%); opacity: 0; }
}

@keyframes base-node-meter {
  0%, 100% { transform: scaleY(0.28); opacity: 0.55; }
  50% { transform: scaleY(1); opacity: 1; }
}

@keyframes base-node-progress {
  0%, 42% { transform: translateX(-115%); opacity: 0; }
  52% { opacity: 1; }
  88%, 100% { transform: translateX(320%); opacity: 0; }
}

@keyframes telemetry-status {
  0%, 100% { opacity: 0.62; }
  50% { opacity: 1; }
}

@keyframes telemetry-ring {
  0% { opacity: 0.7; transform: scale(0.7); }
  72%, 100% { opacity: 0; transform: scale(1.8); }
}

@media (prefers-reduced-motion: reduce) {
  .arch-link-flow,
  .arch-packet,
  .beacon-anchor-cluster i::after,
  .arch-node.base::before,
  .arch-node.base::after,
  .base-node-meter i,
  .base-node-progress i,
  .architecture-status > span,
  .architecture-status > span::after {
    animation: none !important;
  }

  .arch-packet {
    display: none;
  }

  .arch-node.base::before {
    opacity: 0.2;
    transform: none;
  }

  .base-node-meter i,
  .base-node-progress i {
    opacity: 0.8;
    transform: none;
  }
}

@media (max-width: 720px) {
  .psp-architecture {
    min-height: 520px;
  }

  .psp-architecture .arch-node.firefighter {
    top: 9%;
  }

  .psp-architecture .arch-node.beacon {
    top: 31%;
    left: 35%;
  }

  .psp-architecture .arch-node.base {
    top: 50%;
    right: 4%;
    bottom: auto;
  }

  .psp-architecture .arch-node.dashboard {
    top: 72%;
    right: 8%;
    bottom: auto;
  }

}

/* Cosmic flight deck ----------------------------------------------------- */
:root {
  --space-0: #030510;
  --space-1: #06091b;
  --space-2: #0a0f29;
  --space-3: #111735;
  --panel-deep: rgba(8, 12, 31, 0.92);
  --panel-raised: rgba(14, 19, 47, 0.9);
  --cosmic-line: rgba(139, 159, 255, 0.2);
  --cyan: #52e7ff;
  --violet: #aa7cff;
  --magenta: #f184c5;
  --amber: #ffc56f;
  --green: #6fe0ad;
  --text: #f7f8ff;
  --muted: #b8bfd3;
  --soft: #858da8;
  --shadow: 0 28px 86px rgba(0, 1, 15, 0.52);
}

html {
  background: var(--space-0);
  scrollbar-color: rgba(133, 111, 223, 0.72) var(--space-0);
}

body {
  background:
    linear-gradient(116deg, rgba(92, 44, 176, 0.13), transparent 26% 72%, rgba(28, 126, 178, 0.09)),
    linear-gradient(180deg, var(--space-0), var(--space-1) 42%, #040612);
  color: var(--text);
}

body::before {
  opacity: 0.72;
  background:
    linear-gradient(116deg, transparent 0 22%, rgba(125, 80, 222, 0.045) 39%, rgba(39, 146, 194, 0.025) 52%, transparent 68%),
    linear-gradient(rgba(143, 164, 255, 0.016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 164, 255, 0.016) 1px, transparent 1px),
    var(--space-0);
  background-size: auto, 72px 72px, 72px 72px, auto;
}

::selection {
  background: rgba(82, 231, 255, 0.28);
  color: #fff;
}

main {
  position: relative;
  overflow: clip;
  background: transparent;
}

#starfield {
  opacity: 0.96;
  filter: saturate(1.22) contrast(1.08);
}

.section-band {
  --sector-a: 82, 231, 255;
  --sector-b: 170, 124, 255;
  background:
    linear-gradient(126deg, rgba(var(--sector-b), 0.07), transparent 31% 69%, rgba(var(--sector-a), 0.045)),
    linear-gradient(180deg, rgba(7, 10, 28, 0.99), rgba(4, 7, 20, 0.99));
  border-top: 1px solid rgba(var(--sector-b), 0.12);
  border-bottom: 1px solid rgba(var(--sector-a), 0.06);
}

.section-band:not(.hero)::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: -34%;
  right: -18%;
  width: 92%;
  height: 96%;
  pointer-events: none;
  opacity: 0.5;
  background:
    linear-gradient(118deg, transparent 8%, rgba(var(--sector-b), 0.11) 42%, rgba(var(--sector-a), 0.055) 54%, transparent 78%);
  filter: blur(58px);
  transform: rotate(-9deg) translateZ(0);
}

.section-band::after {
  opacity: 0.58;
  mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
}

.case-studies { --sector-a: 82, 231, 255; --sector-b: 124, 101, 238; }
.project-radar { --sector-a: 118, 224, 183; --sector-b: 170, 124, 255; }
.maker-orbit { --sector-a: 82, 231, 255; --sector-b: 241, 132, 197; }
.capabilities { --sector-a: 255, 197, 111; --sector-b: 82, 231, 255; }
.hobbies { --sector-a: 241, 132, 197; --sector-b: 170, 124, 255; }
.sources { --sector-a: 118, 224, 183; --sector-b: 82, 231, 255; }
.contact { --sector-a: 255, 197, 111; --sector-b: 170, 124, 255; }

[data-sector]::before {
  content: attr(data-sector);
  display: block;
  margin-bottom: 0.72rem;
  color: rgba(174, 187, 224, 0.72);
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1;
}

.section-title-row[data-sector]::before {
  grid-column: 1 / -1;
  margin-bottom: -0.9rem;
}

.site-header {
  border-bottom: 1px solid rgba(139, 159, 255, 0.18);
  background:
    linear-gradient(90deg, rgba(11, 13, 39, 0.96), rgba(5, 7, 22, 0.9)),
    rgba(4, 6, 18, 0.9);
  box-shadow: 0 14px 45px rgba(0, 1, 18, 0.42);
  backdrop-filter: blur(22px) saturate(1.25);
}

.brand-mark {
  position: relative;
  overflow: visible;
  border-color: rgba(82, 231, 255, 0.58);
  background:
    linear-gradient(145deg, rgba(82, 231, 255, 0.12), rgba(170, 124, 255, 0.1)),
    #0b1029;
  box-shadow: 0 0 24px rgba(82, 231, 255, 0.09), inset 0 0 18px rgba(82, 231, 255, 0.06);
}

.brand-mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2.85rem;
  height: 1rem;
  border: 1px solid rgba(170, 124, 255, 0.46);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-22deg);
  pointer-events: none;
}

.site-nav a::after {
  background: linear-gradient(90deg, var(--violet), var(--cyan), var(--amber));
  box-shadow: 0 0 10px rgba(82, 231, 255, 0.42);
}

.page-progress {
  height: 2px;
  background: linear-gradient(90deg, var(--violet), var(--magenta) 34%, var(--cyan) 68%, var(--amber));
}

.lang-toggle,
.header-cv {
  border-color: rgba(139, 159, 255, 0.22);
  background: rgba(12, 16, 42, 0.88);
}

.hero {
  min-height: 100svh;
  padding-top: 7.6rem;
  background: var(--space-0);
}

.hero-bg {
  background-image: url("assets/hero-workshop-space-v2.webp");
  background-position: 57% center;
  opacity: 0.96;
  filter: saturate(1.08) contrast(1.08);
  transform: translate3d(var(--hero-x, 0), var(--hero-y, 0), 0) scale(1.025);
}

.hero-shade {
  background:
    linear-gradient(90deg, #030510 0%, rgba(3, 5, 16, 0.97) 30%, rgba(7, 8, 25, 0.66) 55%, rgba(5, 7, 20, 0.2) 79%, rgba(3, 5, 16, 0.52) 100%),
    linear-gradient(180deg, rgba(3, 5, 16, 0.12), rgba(3, 5, 16, 0.24) 58%, #050719 98%);
}

.hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 7%;
  right: -18vw;
  width: min(74vw, 1100px);
  aspect-ratio: 1.9;
  border: 1px solid rgba(170, 124, 255, 0.17);
  border-radius: 50%;
  pointer-events: none;
  transform: rotate(-16deg);
  box-shadow:
    0 0 0 1px rgba(82, 231, 255, 0.035),
    inset 0 0 70px rgba(106, 65, 208, 0.035);
  mask-image: linear-gradient(90deg, transparent 4%, #000 48%, #000 82%, transparent);
}

.hero-grid,
.hero-proof {
  position: relative;
  z-index: 3;
}

.hero-copy {
  position: relative;
}

.hero .eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #77ecff;
}

.hero .eyebrow::before {
  content: "";
  width: 2.2rem;
  height: 1px;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  box-shadow: 0 0 12px rgba(82, 231, 255, 0.45);
}

.hero h1 {
  color: #fbfbff;
  text-shadow: 0 12px 48px rgba(0, 0, 0, 0.58), 0 0 28px rgba(144, 126, 255, 0.08);
}

.hero-thesis {
  color: #f3f5ff;
}

.hero-lead {
  color: #cbd1e2;
}

.btn {
  position: relative;
  overflow: hidden;
  border-color: rgba(139, 159, 255, 0.24);
  background:
    linear-gradient(145deg, rgba(170, 124, 255, 0.06), transparent 60%),
    rgba(10, 14, 37, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(112deg, transparent 28%, rgba(255, 255, 255, 0.13) 48%, transparent 68%);
  transform: translateX(-135%);
  transition: transform 420ms ease;
  pointer-events: none;
}

.btn:hover::before,
.btn:focus-visible::before {
  transform: translateX(135%);
}

.btn.primary {
  border-color: transparent;
  background: linear-gradient(112deg, #71eaff, #56d7f4 48%, #a38bff);
  color: #040713;
  box-shadow: 0 12px 34px rgba(67, 195, 229, 0.17);
}

.btn.secondary {
  border-color: rgba(255, 197, 111, 0.5);
  background: rgba(255, 197, 111, 0.08);
  color: #ffda9f;
}

.availability {
  color: #c9cede;
}

.hero-console {
  isolation: isolate;
  min-height: 438px;
  overflow: hidden;
  border: 1px solid transparent;
  background:
    linear-gradient(150deg, rgba(12, 17, 46, 0.94), rgba(7, 10, 29, 0.9)) padding-box,
    linear-gradient(145deg, rgba(82, 231, 255, 0.45), rgba(170, 124, 255, 0.36) 44%, rgba(255, 197, 111, 0.2)) border-box;
  box-shadow:
    0 34px 100px rgba(0, 1, 17, 0.58),
    0 0 42px rgba(99, 76, 203, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.hero-console::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 9px;
  border-top: 1px solid rgba(82, 231, 255, 0.12);
  border-right: 1px solid rgba(170, 124, 255, 0.09);
  pointer-events: none;
}

.hero-console::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(82, 231, 255, 0.46), rgba(241, 132, 197, 0.28), transparent);
  box-shadow: 0 0 14px rgba(82, 231, 255, 0.22);
  animation: console-scan 7.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes console-scan {
  0%, 12% { top: 12%; opacity: 0; }
  20% { opacity: 0.7; }
  78% { opacity: 0.4; }
  88%, 100% { top: 88%; opacity: 0; }
}

.ownership-list > div {
  border-bottom-color: rgba(139, 159, 255, 0.12);
}

.console-result {
  border-left-color: var(--green);
  background: linear-gradient(90deg, rgba(111, 224, 173, 0.09), rgba(82, 231, 255, 0.025));
}

.hero-proof {
  border-top-color: rgba(139, 159, 255, 0.2);
  background: linear-gradient(90deg, rgba(10, 14, 38, 0.58), rgba(10, 14, 38, 0.16));
  backdrop-filter: blur(8px);
}

.hero-proof > span {
  border-right-color: rgba(139, 159, 255, 0.14);
}

.hero-proof strong {
  color: var(--amber);
  text-shadow: 0 0 18px rgba(255, 197, 111, 0.16);
}

.section-title-row {
  position: relative;
  margin-bottom: 2.7rem;
}

.section-title-row h2,
.orbit-copy h2,
.sources-intro h2,
.contact h2 {
  text-wrap: balance;
  color: #f7f8ff;
}

.case-studies,
.project-radar,
.maker-orbit,
.capabilities,
.hobbies,
.sources {
  padding-top: 6.7rem;
  padding-bottom: 6.7rem;
}

.case-study {
  --case-accent: var(--cyan);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(139, 159, 255, 0.18);
  background: linear-gradient(145deg, rgba(13, 18, 45, 0.97), rgba(8, 12, 31, 0.94));
  box-shadow: 0 26px 78px rgba(0, 1, 18, 0.38);
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.case-study::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: min(34%, 19rem);
  height: 2px;
  background: linear-gradient(90deg, rgba(82, 231, 255, 0.82), transparent);
  box-shadow: 0 0 18px rgba(82, 231, 255, 0.16);
}

.case-study::after {
  content: "";
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 1.35rem;
  height: 1.35rem;
  border-top: 1px solid color-mix(in srgb, var(--case-accent) 48%, transparent);
  border-right: 1px solid color-mix(in srgb, var(--case-accent) 48%, transparent);
  pointer-events: none;
}

.psp-case { --case-accent: var(--cyan); }
.radio-case { --case-accent: var(--green); }
.olx-case { --case-accent: var(--amber); }

@media (hover: hover) and (pointer: fine) {
  .case-study:hover {
    transform: translateY(-4px);
    box-shadow: 0 34px 94px rgba(0, 1, 18, 0.5), 0 0 45px rgba(82, 231, 255, 0.05);
  }
}

.case-study h3 {
  text-wrap: balance;
  text-shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
}

.case-study .project-meta {
  color: #919ab4;
}

.case-facts > div {
  border-top-color: rgba(139, 159, 255, 0.13);
}

.case-facts dt {
  color: var(--case-accent);
}

.case-study .tag-row span,
.capability-row .tag-row span {
  border-color: rgba(139, 159, 255, 0.2);
  background: rgba(13, 18, 46, 0.76);
  color: #dfe3f2;
}

.case-study .project-actions button {
  border-color: transparent;
  background: linear-gradient(112deg, var(--case-accent), color-mix(in srgb, var(--case-accent) 62%, #fff));
  color: #040713;
}

.psp-architecture,
.moderation-pipeline,
.olx-pipeline {
  border-color: rgba(139, 159, 255, 0.22);
  background-color: #070a1b;
  box-shadow: inset 0 0 48px rgba(70, 85, 183, 0.055);
}

.arch-grid {
  opacity: 0.34;
}

.project-radar .section-title-row {
  margin-bottom: 2rem;
}

.filter-bar {
  border: 1px solid rgba(139, 159, 255, 0.2);
  background: rgba(10, 14, 36, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.filter-bar button.is-active {
  background: linear-gradient(110deg, var(--violet), var(--cyan));
  color: #040713;
}

.radar-grid {
  gap: 0.85rem;
}

.radar-card {
  border: 1px solid rgba(139, 159, 255, 0.18);
  background: linear-gradient(145deg, rgba(14, 19, 48, 0.96), rgba(8, 12, 31, 0.93));
  box-shadow: 0 18px 52px rgba(0, 1, 17, 0.27);
}

.radar-card::before {
  background: linear-gradient(90deg, rgba(82, 231, 255, 0.78), transparent 84%);
}

.radar-card .radar-code {
  color: var(--cyan);
}

.radar-card h3 {
  color: #f6f7ff;
}

.radar-card p {
  color: #abb3c8;
}

.maker-orbit {
  min-height: auto;
  overflow: hidden;
}

#maker-orbit {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  cursor: default;
}

.orbit-grid-lines {
  opacity: 0.28;
  background:
    linear-gradient(rgba(124, 142, 226, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(82, 231, 255, 0.035) 1px, transparent 1px),
    linear-gradient(128deg, transparent 0 49.5%, rgba(170, 124, 255, 0.035) 50%, transparent 50.5%);
  background-size: 64px 64px, 64px 64px, 240px 240px;
}

.orbit-layout {
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.62fr);
  grid-template-rows: auto clamp(540px, 40vw, 640px) auto;
  align-items: end;
  gap: 2.25rem 3.5rem;
  min-height: auto;
}

.orbit-copy {
  grid-column: 1;
  grid-row: 1;
  max-width: 740px;
}

.orbit-copy::before {
  inset: -2rem -3rem -2rem -10vw;
  background: linear-gradient(90deg, rgba(4, 7, 20, 0.98), rgba(5, 8, 25, 0.86) 68%, transparent);
}

.orbit-copy::after {
  display: none;
}

.orbit-copy h2 {
  max-width: 720px;
  font-size: 3.7rem;
  line-height: 1.01;
}

.orbit-copy p:not(.eyebrow) {
  max-width: 690px;
  margin-top: 1.2rem;
  color: #c9d3e8;
  font-size: 1.04rem;
  line-height: 1.72;
}

.orbit-value {
  position: relative;
  z-index: 3;
  grid-column: 2;
  grid-row: 1;
  display: grid;
  align-self: end;
  min-width: 0;
  border-left: 1px solid rgba(82, 231, 255, 0.22);
  padding-left: 1.35rem;
}

.orbit-value-kicker {
  margin: 0 0 0.2rem;
  color: #8ea2c9;
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.66rem;
  font-weight: 760;
  text-transform: uppercase;
}

.orbit-value-item {
  display: grid;
  grid-template-columns: 1.9rem minmax(0, 1fr);
  gap: 0.7rem;
  border-top: 1px solid rgba(139, 159, 255, 0.13);
  padding: 0.9rem 0;
}

.orbit-value-item > span {
  padding-top: 0.1rem;
  color: #61dff2;
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.66rem;
  font-weight: 780;
}

.orbit-value-item strong {
  display: block;
  color: #f4f7ff;
  font-size: 0.88rem;
  line-height: 1.35;
}

.orbit-value-item p {
  max-width: 42ch;
  margin: 0.28rem 0 0;
  color: #9faac0;
  font-size: 0.77rem;
  line-height: 1.55;
}

.orbit-stage {
  isolation: isolate;
  grid-column: 1 / -1;
  grid-row: 2;
  min-height: 540px;
  overflow: hidden;
  border-top: 1px solid rgba(82, 231, 255, 0.16);
  border-bottom: 1px solid rgba(170, 124, 255, 0.14);
  background:
    linear-gradient(90deg, rgba(5, 8, 25, 0.7), transparent 18% 82%, rgba(5, 8, 25, 0.72)),
    rgba(4, 7, 20, 0.38);
  box-shadow: inset 0 0 70px rgba(52, 44, 145, 0.06);
}

.orbit-stage::before,
.orbit-stage::after {
  z-index: 0;
  border-color: rgba(82, 231, 255, 0.075);
}

.orbit-stage::after {
  border-color: rgba(255, 197, 111, 0.075);
}

.orbit-stage-label {
  display: grid;
  grid-template-columns: 5px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 0.48rem;
  row-gap: 0.08rem;
  min-width: 9.5rem;
  padding: 0.46rem 0.62rem;
  border-color: color-mix(in srgb, var(--label-accent) 42%, transparent);
  background: rgba(5, 8, 24, 0.92);
  box-shadow: 0 10px 30px rgba(0, 1, 16, 0.46), inset 0 0 18px color-mix(in srgb, var(--label-accent) 5%, transparent);
}

.orbit-stage-label::before {
  grid-column: 1;
  grid-row: 1 / -1;
  align-self: center;
}

.orbit-stage-label strong,
.orbit-stage-label small {
  grid-column: 2;
}

.orbit-stage-label strong {
  color: #f4f7ff;
  font-size: 0.66rem;
  line-height: 1.2;
}

.orbit-stage-label small {
  color: #93a1bd;
  font-size: 0.58rem;
  font-weight: 520;
  line-height: 1.3;
}

.orbit-stage-label.is-tracked {
  right: auto !important;
  bottom: auto !important;
  width: max-content;
  max-width: calc(100% - 24px);
}

.orbit-stage-label.is-tracked.tracks-right::after {
  right: 100%;
  left: auto;
  background: linear-gradient(270deg, var(--label-accent), transparent);
}

.orbit-readout {
  grid-column: 1 / -1;
  grid-row: 3;
  border-top-color: rgba(82, 231, 255, 0.22);
  border-bottom-color: rgba(139, 159, 255, 0.13);
  background:
    linear-gradient(90deg, rgba(82, 231, 255, 0.025), rgba(170, 124, 255, 0.025)),
    rgba(7, 10, 28, 0.9);
}

.readout-row {
  border-right-color: rgba(139, 159, 255, 0.13);
}

.readout-row:hover {
  background: linear-gradient(180deg, rgba(82, 231, 255, 0.045), rgba(170, 124, 255, 0.025));
}

.readout-row {
  min-height: 190px;
}

.capability-board {
  position: relative;
  border-top-color: rgba(139, 159, 255, 0.24);
}

.capability-board::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--cyan), var(--violet) 46%, var(--amber), transparent);
  box-shadow: 0 0 14px rgba(82, 231, 255, 0.22);
}

.capability-row {
  position: relative;
  border-bottom-color: rgba(139, 159, 255, 0.12);
  padding-left: 1.45rem;
}

.capability-row::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -3px;
  width: 7px;
  height: 7px;
  border: 1px solid var(--cyan);
  background: var(--space-1);
  transform: translateY(-50%) rotate(45deg);
  box-shadow: 0 0 12px rgba(82, 231, 255, 0.38);
}

.capability-row.primary-skill {
  border-left: 0;
  padding-left: 1.45rem;
  background: linear-gradient(90deg, rgba(82, 231, 255, 0.055), rgba(170, 124, 255, 0.025), transparent 70%);
}

.rc-showcase {
  border: 1px solid rgba(139, 159, 255, 0.2);
  background: linear-gradient(145deg, rgba(13, 18, 46, 0.96), rgba(8, 12, 31, 0.94));
  box-shadow: 0 28px 82px rgba(0, 1, 17, 0.38);
}

.rc-blueprint {
  background:
    linear-gradient(145deg, rgba(82, 231, 255, 0.03), transparent 58%),
    #05091d;
}

.workshop-grid {
  gap: 0.85rem;
}

.workshop-grid article {
  border: 1px solid rgba(139, 159, 255, 0.18);
  background: linear-gradient(145deg, rgba(13, 18, 46, 0.95), rgba(8, 12, 31, 0.93));
  box-shadow: 0 17px 50px rgba(0, 1, 17, 0.25);
}

.workshop-grid article::before {
  background: linear-gradient(90deg, rgba(82, 231, 255, 0.78), transparent 84%);
}

.workshop-grid article > span {
  color: var(--cyan);
}

.workshop-quote {
  border-top-color: rgba(170, 124, 255, 0.28);
  border-bottom-color: rgba(82, 231, 255, 0.13);
}

.source-links .source-card {
  border: 1px solid rgba(139, 159, 255, 0.18);
  background: linear-gradient(145deg, rgba(13, 18, 46, 0.96), rgba(8, 12, 31, 0.94));
  box-shadow: 0 18px 52px rgba(0, 1, 17, 0.25);
}

.contact {
  padding-top: 7.5rem;
  padding-bottom: 7.5rem;
  background:
    linear-gradient(90deg, rgba(3, 5, 16, 0.99), rgba(6, 7, 24, 0.91) 48%, rgba(14, 9, 40, 0.72)),
    url("assets/hero-workshop-space-v2.webp") 64% 68% / cover;
}

.contact-panel {
  border: 1px solid transparent;
  background:
    linear-gradient(145deg, rgba(10, 14, 38, 0.95), rgba(6, 9, 27, 0.92)) padding-box,
    linear-gradient(130deg, rgba(82, 231, 255, 0.36), rgba(170, 124, 255, 0.22), rgba(255, 197, 111, 0.18)) border-box;
  box-shadow: 0 30px 90px rgba(0, 1, 17, 0.5);
}

.contact-panel a:hover {
  border-color: rgba(82, 231, 255, 0.48);
  background: rgba(82, 231, 255, 0.07);
}

.project-modal::backdrop {
  background: rgba(2, 3, 12, 0.78);
  backdrop-filter: blur(12px) saturate(0.8);
}

.modal-shell {
  border: 1px solid rgba(139, 159, 255, 0.24);
  background:
    linear-gradient(145deg, rgba(15, 20, 51, 0.98), rgba(6, 9, 26, 0.98)),
    var(--surface-solid);
  box-shadow: 0 36px 110px rgba(0, 1, 17, 0.68);
}

.site-footer {
  border-top-color: rgba(139, 159, 255, 0.16);
  background: var(--space-0);
}

@media (max-width: 1040px) {
  .hero {
    padding-top: 10rem;
  }

  .hero-bg {
    background-position: 64% center;
  }

  .orbit-layout {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.64fr);
    grid-template-rows: auto clamp(510px, 51vw, 590px) auto;
    gap: 2rem 2.25rem;
  }

  .orbit-copy h2 {
    font-size: 3.2rem;
  }
}

@media (max-width: 900px) {
  .orbit-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto 500px auto;
    align-items: start;
    gap: 1.65rem;
  }

  .orbit-copy {
    grid-column: 1;
    grid-row: 1;
    max-width: 760px;
  }

  .orbit-value {
    grid-column: 1;
    grid-row: 2;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-self: auto;
    border-top: 1px solid rgba(82, 231, 255, 0.22);
    border-left: 0;
    padding: 0.7rem 0 0;
  }

  .orbit-value-kicker {
    grid-column: 1 / -1;
    margin-bottom: 0.3rem;
  }

  .orbit-value-item {
    grid-template-columns: 1.65rem minmax(0, 1fr);
    border-top: 0;
    border-right: 1px solid rgba(139, 159, 255, 0.13);
    padding: 0.65rem 0.8rem 0.65rem 0;
  }

  .orbit-value-item + .orbit-value-item {
    padding-left: 0.8rem;
  }

  .orbit-value-item:last-child {
    border-right: 0;
  }

  .orbit-stage {
    grid-column: 1;
    grid-row: 3;
    min-height: 500px;
  }

  .orbit-readout {
    grid-column: 1;
    grid-row: 4;
  }
}

@media (max-width: 720px) {
  body::before {
    background-size: auto, 52px 52px, 52px 52px, auto;
  }

  .site-header {
    position: relative;
    gap: 0.55rem;
    padding: 0.62rem 0.68rem 0.5rem;
  }

  .site-nav {
    display: flex;
    width: calc(100% + 1.36rem);
    margin-inline: -0.68rem;
    overflow-x: auto;
    justify-content: flex-start;
    gap: 0.15rem;
    border-top: 1px solid rgba(139, 159, 255, 0.12);
    padding: 0.36rem 0.55rem 0;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav a {
    flex: 0 0 auto;
    min-width: max-content;
    padding: 0.42rem 0.62rem;
    scroll-snap-align: start;
  }

  .hero {
    padding-top: 3.4rem;
  }

  .hero-bg {
    background-position: 70% center;
    opacity: 0.72;
    filter: saturate(1.04) contrast(1.1);
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(3, 5, 16, 0.72), rgba(3, 5, 16, 0.88) 54%, #040612 96%),
      linear-gradient(90deg, rgba(3, 5, 16, 0.97), rgba(5, 6, 20, 0.38));
  }

  .hero::before {
    top: 13%;
    right: -60vw;
    width: 150vw;
    opacity: 0.7;
  }

  .hero h1 {
    font-size: 4.1rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
    min-width: 0;
    padding-inline: 0.68rem;
    font-size: 0.84rem;
  }

  .hero-actions .btn.primary {
    grid-column: 1 / -1;
  }

  .hero-proof {
    backdrop-filter: none;
  }

  .case-studies,
  .project-radar,
  .maker-orbit,
  .capabilities,
  .hobbies,
  .sources {
    padding-top: 4.7rem;
    padding-bottom: 4.7rem;
  }

  .section-title-row {
    margin-bottom: 2rem;
  }

  .case-study {
    padding: 0.85rem;
  }

  .orbit-layout {
    grid-template-rows: auto auto 410px auto;
    gap: 1.35rem;
  }

  .orbit-stage {
    grid-row: 3;
    min-height: 410px;
  }

  .orbit-copy h2 {
    font-size: 2.25rem;
  }

  .orbit-value {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .orbit-value-item,
  .orbit-value-item + .orbit-value-item {
    grid-template-columns: 1.8rem minmax(0, 1fr);
    border-top: 1px solid rgba(139, 159, 255, 0.13);
    border-right: 0;
    padding: 0.8rem 0;
  }

  .orbit-value-item p {
    max-width: none;
  }

  .orbit-readout {
    grid-row: 4;
    margin: 0;
  }

  .capability-row,
  .capability-row.primary-skill {
    padding-left: 1.2rem;
  }

  .contact {
    padding-top: 5rem;
    padding-bottom: 5rem;
    background-position: 71% 68%;
  }
}

@media (max-width: 640px) {
  .section-band:not(.hero)::before {
    top: -12%;
    right: -55%;
    width: 150%;
    height: 64%;
    filter: blur(48px);
  }

  .hero-console {
    min-height: auto;
  }

  .hero-console::after {
    display: none;
  }

  .hero-proof > span {
    border-color: rgba(139, 159, 255, 0.12);
  }

  .orbit-stage {
    background: rgba(4, 7, 20, 0.3);
  }

  .orbit-stage-label {
    min-width: 0;
    padding: 0.42rem 0.52rem;
  }

  .orbit-stage-label small {
    display: none;
  }

  .contact-copy,
  .contact-panel {
    min-width: 0;
  }

  .contact h2 {
    font-size: 2.45rem;
    line-height: 1.03;
  }

  .contact-panel a,
  .contact-panel span {
    overflow-wrap: anywhere;
  }

  .workshop-grid article {
    display: grid;
    grid-template-columns: 2.2rem minmax(0, 1fr);
    gap: 0.2rem 0.65rem;
    min-height: 0;
    padding: 1rem 0.95rem;
  }

  .workshop-grid article > span {
    grid-row: 1 / 3;
    margin: 0.2rem 0 0;
  }

  .workshop-grid article h3,
  .workshop-grid article p {
    grid-column: 2;
  }

  .workshop-grid article h3 {
    margin-bottom: 0.35rem;
  }

  .workshop-grid article p {
    margin-bottom: 0;
  }
}

@media (max-width: 360px) {
  .contact h2 {
    font-size: 2.25rem;
  }
}

/* Anchor offsets follow the actual header height at each navigation layout. */
#workshop {
  scroll-margin-top: 6.5rem;
}

@media (min-width: 981px) and (max-width: 1040px) {
  #projects,
  #maker,
  #stack,
  #lab,
  #workshop,
  #proof,
  #timeline,
  #contact {
    scroll-margin-top: 8.75rem;
  }
}

@media (min-width: 721px) and (max-width: 980px) {
  #workshop,
  #proof {
    scroll-margin-top: 11rem;
  }
}

@media (max-width: 720px) {
  #projects,
  #maker,
  #stack,
  #lab,
  #workshop,
  #proof,
  #timeline,
  #contact {
    scroll-margin-top: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-console::after,
  .btn::before {
    display: none;
    animation: none;
    transition: none;
  }
}

/* Aerospace controls ----------------------------------------------------
   Cosmic material comes from the page and scenes. Commands stay legible,
   solid and predictable. */
:root {
  --control-accent: #61dff2;
  --control-accent-hover: #87e8f6;
  --control-ink: #030711;
  --control-surface: #0a0f21;
  --control-surface-hover: #111a33;
  --control-border: rgba(143, 164, 205, 0.34);
  --control-border-strong: rgba(97, 223, 242, 0.68);
}

html {
  scrollbar-color: rgba(97, 223, 242, 0.58) var(--space-0);
}

.brand-mark {
  border-color: rgba(97, 223, 242, 0.46);
  background: #0a1022;
  background-image: none;
  box-shadow: inset 0 0 0 1px rgba(97, 223, 242, 0.06);
  color: var(--control-accent);
}

.site-nav a::after,
.page-progress {
  background: var(--control-accent);
  background-image: none;
  box-shadow: 0 0 10px rgba(97, 223, 242, 0.34);
}

.hero .eyebrow::before {
  background: rgba(97, 223, 242, 0.74);
  background-image: none;
}

.btn::before {
  display: none;
}

.btn,
.project-actions button,
.project-actions a,
.radar-card .radar-actions button,
.radar-card .radar-actions a,
.modal-links a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--control-border);
  border-radius: 5px;
  padding: 0.68rem 0.95rem;
  background: var(--control-surface);
  background-image: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 8px 22px rgba(0, 2, 16, 0.16);
  color: #edf3ff;
  font-weight: 780;
  line-height: 1.1;
  letter-spacing: 0;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 150ms ease,
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease,
    box-shadow 150ms ease;
}

.btn:hover,
.project-actions button:hover,
.project-actions a:hover,
.radar-card .radar-actions button:hover,
.radar-card .radar-actions a:hover,
.modal-links a:hover {
  border-color: var(--control-border-strong);
  background: var(--control-surface-hover);
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn:active,
.project-actions button:active,
.project-actions a:active,
.radar-card .radar-actions button:active,
.radar-card .radar-actions a:active,
.modal-links a:active {
  transform: translateY(1px);
  box-shadow: inset 0 1px 4px rgba(0, 2, 16, 0.42);
}

.btn:focus-visible,
.project-actions button:focus-visible,
.project-actions a:focus-visible,
.radar-card .radar-actions button:focus-visible,
.radar-card .radar-actions a:focus-visible,
.modal-links a:focus-visible {
  border-color: var(--control-accent);
  box-shadow: 0 0 0 3px rgba(97, 223, 242, 0.18);
}

.btn.primary,
.case-study .project-actions button {
  border-color: var(--control-accent-hover);
  background: var(--control-accent);
  background-image: none;
  color: var(--control-ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 10px 26px rgba(61, 183, 207, 0.16);
}

.btn.primary:hover,
.case-study .project-actions button:hover {
  border-color: #b4f2fa;
  background: var(--control-accent-hover);
  color: var(--control-ink);
}

.btn.secondary {
  border-color: var(--control-border-strong);
  background: #0a1427;
  background-image: none;
  color: var(--control-accent-hover);
}

.btn.ghost,
.case-study .project-actions a {
  border-color: var(--control-border);
  background: var(--control-surface);
  background-image: none;
  color: #edf3ff;
}

.header-cv {
  border-color: var(--control-border);
  border-radius: 5px;
  background: var(--control-surface);
  background-image: none;
  color: #edf3ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease,
    transform 150ms ease;
}

.header-cv:hover,
.header-cv:focus-visible {
  border-color: var(--control-border-strong);
  background: var(--control-surface-hover);
  color: var(--control-accent-hover);
}

.header-cv:active {
  transform: translateY(1px);
}

.lang-toggle {
  border-color: var(--control-border);
  border-radius: 5px;
  background: var(--control-surface);
  background-image: none;
}

.lang-toggle span {
  border-radius: 3px;
}

body[data-lang="pl"] .lang-toggle span:first-child,
body[data-lang="en"] .lang-toggle span:last-child {
  background: var(--control-accent);
  color: var(--control-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.filter-bar {
  border-color: var(--control-border);
  border-radius: 6px;
  background: #080d1e;
  background-image: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.filter-bar button {
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  background-image: none;
  color: #aeb8ce;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease,
    transform 150ms ease;
}

.filter-bar button:hover,
.filter-bar button:focus-visible {
  border-color: var(--control-border);
  background: var(--control-surface-hover);
  color: #ffffff;
}

.filter-bar button:active {
  transform: translateY(1px);
}

.filter-bar button.is-active {
  border-color: var(--control-accent);
  background: var(--control-accent);
  background-image: none;
  color: var(--control-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

.radar-actions {
  gap: 0.5rem;
}

.radar-card .radar-actions button,
.radar-card .radar-actions a {
  min-height: 2.2rem;
  padding: 0.48rem 0.68rem;
  font-size: 0.78rem;
}

.radar-card .radar-actions button {
  border-color: rgba(97, 223, 242, 0.46);
  color: var(--control-accent-hover);
}

.radar-card .radar-actions a {
  border-color: var(--control-border);
  color: #d9e0ef;
}

.modal-links a {
  border-color: var(--control-border-strong);
  color: var(--control-accent-hover);
}

.modal-close {
  width: 2.75rem;
  height: 2.75rem;
  border-color: var(--control-border);
  border-radius: 5px;
  background: var(--control-surface);
  background-image: none;
}

.modal-close:hover,
.modal-close:focus-visible {
  border-color: var(--control-border-strong);
  background: var(--control-surface-hover);
  color: var(--control-accent-hover);
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .project-actions button,
  .project-actions a,
  .radar-card .radar-actions button,
  .radar-card .radar-actions a,
  .modal-links a,
  .header-cv,
  .filter-bar button {
    transition: none;
  }
}

@media (max-width: 640px) {
  .hero-actions .btn[href="#contact"] {
    grid-column: 1 / -1;
  }
}

.section-title-row {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 0.85rem;
  max-width: 920px;
}

.section-title-row > div {
  max-width: 850px;
}

.section-title-row > p {
  max-width: 62ch;
  margin: 0;
}

/* Motion system and final material polish -------------------------------- */
:root {
  --motion-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --motion-ease-in: cubic-bezier(0.4, 0, 1, 1);
  --motion-ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --motion-fast: 150ms;
  --motion-ui: 220ms;
  --motion-reveal: 680ms;
  --soft: #929db8;
}

h1,
h2,
h3,
.brand,
.hero-thesis {
  font-family: "Bahnschrift", "Aptos Display", "Segoe UI Variable Display", "Segoe UI", sans-serif;
}

.hero-bg {
  will-change: transform;
  transition: transform 260ms var(--motion-ease-out);
}

.site-header,
.brand-mark::after,
.site-nav a::after,
.filter-bar button,
.radar-card,
.workshop-grid article,
.source-card,
.contact-panel a {
  transition-timing-function: var(--motion-ease-out);
}

.brand-mark::after {
  transition: transform 620ms var(--motion-ease-out), border-color 220ms ease;
}

.brand:hover .brand-mark::after,
.brand:focus-visible .brand-mark::after {
  border-color: rgba(97, 223, 242, 0.7);
  transform: translate(-50%, -50%) rotate(158deg);
}

.section-title-row::after {
  content: "";
  grid-column: 1 / -1;
  width: min(17rem, 58vw);
  height: 1px;
  margin-top: 0.45rem;
  background: linear-gradient(90deg, rgba(97, 223, 242, 0.78), rgba(97, 223, 242, 0));
  box-shadow: 0 0 15px rgba(97, 223, 242, 0.12);
  transform-origin: left;
}

[data-reveal] {
  opacity: 1;
  transform: none;
}

html.motion-ready [data-reveal] {
  --reveal-y: 18px;
  --reveal-delay: 0ms;
  --reveal-duration: var(--motion-reveal);
  opacity: 0;
  transform: translate3d(0, var(--reveal-y), 0);
  transition:
    opacity var(--reveal-duration) var(--motion-ease-out) var(--reveal-delay),
    transform var(--reveal-duration) var(--motion-ease-out) var(--reveal-delay);
}

html.motion-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

html.motion-ready .site-header[data-reveal] {
  --reveal-y: -10px;
  --reveal-duration: 500ms;
}

html.motion-ready .hero-copy[data-reveal] {
  --reveal-delay: 45ms;
  --reveal-y: 14px;
}

html.motion-ready .hero-console[data-reveal] {
  --reveal-delay: 135ms;
  --reveal-y: 12px;
}

html.motion-ready .hero-proof[data-reveal] {
  --reveal-delay: 220ms;
  --reveal-y: 10px;
}

html.motion-ready .section-title-row[data-reveal]::after {
  opacity: 0;
  transform: scaleX(0);
  transition:
    opacity 360ms ease 180ms,
    transform 760ms var(--motion-ease-out) 180ms;
}

html.motion-ready .section-title-row[data-reveal].is-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

html.motion-ready .case-study[data-reveal]::before,
html.motion-ready .radar-card[data-reveal]::before,
html.motion-ready .workshop-grid article[data-reveal]::before {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 760ms var(--motion-ease-out) calc(var(--reveal-delay, 0ms) + 150ms);
}

html.motion-ready .case-study[data-reveal].is-visible::before,
html.motion-ready .radar-card[data-reveal].is-visible::before,
html.motion-ready .workshop-grid article[data-reveal].is-visible::before {
  transform: scaleX(1);
}

html.motion-ready .hero-console .ownership-list > div,
html.motion-ready .sources-layout .source-card,
html.motion-ready .contact-layout .contact-panel > :not(.surface-light) {
  opacity: 0;
  transform: translate3d(0, 8px, 0);
}

html.motion-ready .hero-console.is-visible .ownership-list > div,
html.motion-ready .sources-layout.is-visible .source-card,
html.motion-ready .contact-layout.is-visible .contact-panel > :not(.surface-light) {
  animation: grouped-item-in 520ms var(--motion-ease-out) both;
}

html.motion-ready .hero-console.is-visible .ownership-list > div:nth-child(1) { animation-delay: 210ms; }
html.motion-ready .hero-console.is-visible .ownership-list > div:nth-child(2) { animation-delay: 260ms; }
html.motion-ready .hero-console.is-visible .ownership-list > div:nth-child(3) { animation-delay: 310ms; }
html.motion-ready .hero-console.is-visible .ownership-list > div:nth-child(4) { animation-delay: 360ms; }
html.motion-ready .sources-layout.is-visible .source-card:nth-child(1) { animation-delay: 100ms; }
html.motion-ready .sources-layout.is-visible .source-card:nth-child(2) { animation-delay: 150ms; }
html.motion-ready .sources-layout.is-visible .source-card:nth-child(3) { animation-delay: 200ms; }
html.motion-ready .sources-layout.is-visible .source-card:nth-child(4) { animation-delay: 250ms; }
html.motion-ready .contact-layout.is-visible .contact-panel > :nth-child(1) { animation-delay: 110ms; }
html.motion-ready .contact-layout.is-visible .contact-panel > :nth-child(2) { animation-delay: 150ms; }
html.motion-ready .contact-layout.is-visible .contact-panel > :nth-child(3) { animation-delay: 190ms; }
html.motion-ready .contact-layout.is-visible .contact-panel > :nth-child(4) { animation-delay: 230ms; }
html.motion-ready .contact-layout.is-visible .contact-panel > :nth-child(5) { animation-delay: 270ms; }
html.motion-ready .contact-layout.is-visible .contact-panel > :nth-child(6) { animation-delay: 310ms; }

@keyframes grouped-item-in {
  from {
    opacity: 0;
    transform: translate3d(0, 8px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.is-pointer-reactive {
  --surface-x: 50%;
  --surface-y: 50%;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.is-pointer-reactive > .surface-light {
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: inherit;
  margin: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    circle 250px at var(--surface-x) var(--surface-y),
    rgba(97, 223, 242, 0.11),
    rgba(97, 223, 242, 0.025) 36%,
    transparent 70%
  );
  mix-blend-mode: screen;
  transition: opacity var(--motion-ui) var(--motion-ease-out);
}

.is-pointer-reactive > :not(.surface-light) {
  position: relative;
  z-index: 1;
}

.is-pointer-reactive:hover > .surface-light,
.is-pointer-reactive:focus-within > .surface-light {
  opacity: 1;
}

.radar-card,
.workshop-grid article,
.source-links .source-card {
  overflow: hidden;
  transition:
    transform var(--motion-ui) var(--motion-ease-out),
    border-color var(--motion-ui) var(--motion-ease-out),
    background-color var(--motion-ui) var(--motion-ease-out),
    box-shadow var(--motion-ui) var(--motion-ease-out);
}

.radar-card p,
.workshop-grid article p,
.source-card > small,
.capability-row p,
.orbit-value-item p,
.readout-row p {
  color: #aeb8cf;
}

@media (hover: hover) and (pointer: fine) {
  .radar-card:hover,
  .workshop-grid article:hover,
  .source-links .source-card:hover {
    border-color: rgba(97, 223, 242, 0.42);
    transform: translateY(-3px);
    box-shadow: 0 24px 64px rgba(0, 1, 17, 0.36);
  }

  .contact-panel a:hover {
    transform: translateX(3px);
  }
}

.moderation-pipeline li,
.olx-pipeline li {
  position: relative;
  overflow: hidden;
}

.moderation-pipeline li::after,
.olx-pipeline li::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(97, 223, 242, 0.85), transparent);
  transform: translateX(-105%);
}

.moderation-pipeline li:nth-child(1),
.olx-pipeline li:nth-child(1) { --pipeline-delay: 0ms; }
.moderation-pipeline li:nth-child(2),
.olx-pipeline li:nth-child(2) { --pipeline-delay: 260ms; }
.moderation-pipeline li:nth-child(3),
.olx-pipeline li:nth-child(3) { --pipeline-delay: 520ms; }
.moderation-pipeline li:nth-child(4) { --pipeline-delay: 780ms; }
.moderation-pipeline li:nth-child(5) { --pipeline-delay: 1040ms; }
.moderation-pipeline li:nth-child(6) { --pipeline-delay: 1300ms; }

.moderation-pipeline.is-motion-active li::after,
.olx-pipeline.is-motion-active li::after {
  animation: pipeline-signal 6.4s var(--motion-ease-in-out) var(--pipeline-delay) infinite;
}

@keyframes pipeline-signal {
  0%,
  4% {
    opacity: 0;
    transform: translateX(-105%);
  }
  8% {
    opacity: 0.9;
  }
  19% {
    opacity: 0.45;
    transform: translateX(105%);
  }
  24%,
  100% {
    opacity: 0;
    transform: translateX(105%);
  }
}

[data-motion-scope]:not(.is-motion-active),
[data-motion-scope]:not(.is-motion-active) *,
[data-motion-scope]:not(.is-motion-active)::before,
[data-motion-scope]:not(.is-motion-active)::after,
[data-motion-scope]:not(.is-motion-active) *::before,
[data-motion-scope]:not(.is-motion-active) *::after,
.section-band:not(.is-section-near)::after {
  animation-play-state: paused !important;
}

.capability-board::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  pointer-events: none;
  background: linear-gradient(180deg, #8ff1fb, #a98bff 52%, #ffd18d);
  box-shadow: 0 0 16px rgba(97, 223, 242, 0.45);
  transform: scaleY(1);
  transform-origin: top;
}

@supports (animation-timeline: view()) {
  .capability-board::after {
    animation: capability-progress linear both;
    animation-timeline: view();
    animation-range: entry 8% exit 78%;
  }
}

@keyframes capability-progress {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

.project-modal[open]::backdrop {
  animation: modal-backdrop-in 210ms ease-out both;
}

.project-modal[open] .modal-shell {
  transform-origin: 50% 42%;
  animation: modal-shell-in 260ms var(--motion-ease-out) both;
}

.project-modal.is-closing::backdrop {
  animation: modal-backdrop-out 180ms var(--motion-ease-in) both;
}

.project-modal.is-closing .modal-shell {
  animation: modal-shell-out 180ms var(--motion-ease-in) both;
}

@keyframes modal-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modal-backdrop-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes modal-shell-in {
  from {
    opacity: 0;
    transform: translate3d(0, 14px, 0) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes modal-shell-out {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    opacity: 0;
    transform: translate3d(0, 8px, 0) scale(0.99);
  }
}

@media (max-width: 720px) {
  .site-header {
    position: sticky;
    top: 0;
    flex-wrap: wrap;
    transition:
      transform 280ms var(--motion-ease-out),
      background-color 220ms ease,
      box-shadow 220ms ease;
  }

  html.motion-ready body .site-header.is-header-hidden {
    transform: translate3d(0, calc(-100% - 2px), 0);
  }

  .site-nav {
    flex-wrap: nowrap;
    overscroll-behavior-inline: contain;
  }

  .site-nav a {
    display: grid;
    min-height: 2.75rem;
    place-items: center;
    white-space: nowrap;
  }

  .lang-toggle,
  .header-cv,
  .filter-bar button,
  .radar-card .radar-actions button,
  .radar-card .radar-actions a {
    min-height: 2.75rem;
  }

  .case-studies,
  .project-radar,
  .maker-orbit,
  .capabilities,
  .hobbies,
  .sources {
    padding-top: 4.35rem;
    padding-bottom: 4.35rem;
  }

  .section-title-row::after {
    width: min(13rem, 66vw);
  }
}

@media (max-width: 360px) {
  .brand > span:last-child {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.motion-ready [data-reveal],
  html.motion-ready [data-reveal].is-visible,
  html.motion-ready .hero-console .ownership-list > div,
  html.motion-ready .sources-layout .source-card,
  html.motion-ready .contact-layout .contact-panel > :not(.surface-light) {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }

  html.motion-ready .section-title-row[data-reveal]::after,
  html.motion-ready .case-study[data-reveal]::before,
  html.motion-ready .radar-card[data-reveal]::before,
  html.motion-ready .workshop-grid article[data-reveal]::before {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .surface-light,
  .moderation-pipeline li::after,
  .olx-pipeline li::after {
    display: none;
  }

  .capability-board::after {
    animation: none;
    transform: scaleY(1);
  }

  .project-modal[open]::backdrop,
  .project-modal[open] .modal-shell,
  .project-modal.is-closing::backdrop,
  .project-modal.is-closing .modal-shell {
    animation: none;
  }

  .site-header,
  .hero-bg {
    transition: none;
  }
}

/* Keep the opening view compact enough to reveal that the story continues. */
@media (min-width: 981px) {
  .hero {
    min-height: auto;
    padding-top: 5.6rem;
    padding-bottom: 1.1rem;
  }

  .hero-grid {
    min-height: clamp(500px, calc(100svh - 14.5rem), 650px);
  }
}

@media (max-width: 720px) {
  .hero {
    min-height: auto;
    padding-top: 2rem;
    padding-bottom: 0.8rem;
  }

  .hero-grid {
    min-height: auto;
  }

  .hero-console {
    display: none;
  }

  .hero h1 {
    font-size: 3.75rem;
  }

  .hero .eyebrow {
    font-size: 0.74rem;
  }

  .hero-thesis {
    font-size: 1.18rem;
    line-height: 1.12;
  }

  .hero-lead {
    font-size: 1rem;
    line-height: 1.55;
  }

  .hero-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    margin-top: 1.4rem;
    margin-bottom: 1rem;
  }

  .hero-actions .btn,
  .hero-actions .btn.primary,
  .hero-actions .btn[href="#contact"] {
    grid-column: auto;
    min-height: 2.65rem;
    padding-inline: 0.55rem;
    font-size: 0.78rem;
  }

  .availability {
    font-size: 0.8rem;
  }

  .hero-proof {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    margin-top: 1rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .hero-proof::-webkit-scrollbar {
    display: none;
  }

  .hero-proof > span,
  .hero-proof > span:first-child {
    flex: 0 0 12rem;
    grid-template-columns: 3.5rem minmax(0, 1fr);
    gap: 0.55rem;
    min-height: 4.5rem;
    border-right: 1px solid rgba(139, 159, 255, 0.14);
    border-bottom: 0;
    padding: 0.75rem;
    text-align: left;
    scroll-snap-align: start;
  }

  .hero-proof strong {
    font-size: 1.15rem;
  }

  .hero-proof small {
    font-size: 0.72rem;
  }
}

/* Event mission log ----------------------------------------------------- */
#gallery {
  scroll-margin-top: 6.5rem;
}

#proof {
  z-index: auto;
}

.event-gallery {
  position: relative;
}

.event-gallery .section-title-row {
  margin-bottom: clamp(1.6rem, 3vw, 2.6rem);
}

.mission-gallery {
  --gallery-line: rgba(132, 158, 219, 0.24);
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(280px, 0.72fr);
  overflow: hidden;
  border: 1px solid var(--gallery-line);
  border-radius: 8px;
  background: #070b18;
  box-shadow:
    0 34px 90px rgba(0, 1, 17, 0.42),
    0 0 0 1px rgba(97, 223, 242, 0.025) inset;
}

.gallery-viewport {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-right: 1px solid var(--gallery-line);
  background: #02040b;
}

.gallery-image-button {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  border: 0;
  padding: 0;
  background: #02040b;
  cursor: zoom-in;
  overflow: hidden;
}

.gallery-image-button::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 62%, rgba(1, 3, 10, 0.52));
}

.gallery-image-button img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transform: scale(1.001);
  transition:
    transform 520ms var(--motion-ease-out),
    filter 220ms ease;
}

.gallery-image-button:focus-visible {
  outline: 2px solid var(--control-accent);
  outline-offset: -4px;
}

.gallery-expand {
  position: absolute;
  z-index: 3;
  top: 1rem;
  right: 1rem;
  display: grid;
  width: 2.55rem;
  height: 2.55rem;
  place-items: center;
  border: 1px solid rgba(190, 207, 242, 0.38);
  border-radius: 6px;
  background: rgba(3, 6, 17, 0.78);
  color: #f7f9ff;
  font-size: 1.05rem;
  line-height: 1;
  backdrop-filter: blur(10px);
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    transform 240ms var(--motion-ease-out);
}

.gallery-photo-index {
  position: absolute;
  z-index: 3;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  color: #ffffff;
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.92);
}

.gallery-photo-index span {
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1;
}

.gallery-photo-index small {
  color: #b7c4df;
  font-size: 0.72rem;
}

.mission-gallery.is-loading .gallery-viewport::after {
  content: "";
  position: absolute;
  z-index: 4;
  top: 0;
  left: 0;
  width: 34%;
  height: 2px;
  background: var(--control-accent);
  box-shadow: 0 0 18px rgba(97, 223, 242, 0.62);
  animation: gallery-load 720ms var(--motion-ease-in-out) infinite alternate;
}

@keyframes gallery-load {
  from { transform: translateX(-105%); }
  to { transform: translateX(300%); }
}

.gallery-caption {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(1.35rem, 2.8vw, 2.5rem);
  background:
    linear-gradient(148deg, rgba(86, 61, 158, 0.13), transparent 46%),
    #080d1d;
}

.gallery-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.55rem 1rem;
  margin-bottom: clamp(2rem, 5vw, 4.8rem);
  color: #8f9bb7;
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.66rem;
  font-weight: 750;
}

.gallery-meta span {
  color: var(--control-accent);
}

.gallery-caption h3 {
  max-width: 15ch;
  margin-bottom: 1rem;
  color: #f7f9ff;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.06;
}

.gallery-caption > p {
  max-width: 38ch;
  margin-bottom: 1.6rem;
  color: #b6c0d7;
  font-size: 0.93rem;
  line-height: 1.65;
}

.gallery-caption-footer {
  display: grid;
  gap: 0.65rem;
  margin-top: auto;
}

.gallery-caption-footer a,
.gallery-lightbox figcaption a {
  width: max-content;
  max-width: 100%;
  color: var(--control-accent);
  font-size: 0.78rem;
  font-weight: 780;
  text-decoration: underline;
  text-decoration-color: rgba(97, 223, 242, 0.32);
  text-underline-offset: 0.3rem;
}

.gallery-caption-footer a:hover,
.gallery-caption-footer a:focus-visible,
.gallery-lightbox figcaption a:hover,
.gallery-lightbox figcaption a:focus-visible {
  color: #ffffff;
  text-decoration-color: var(--control-accent);
}

.gallery-caption-footer small {
  color: #7f8aa5;
  font-size: 0.68rem;
  line-height: 1.45;
}

.gallery-controls {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.4rem;
}

.gallery-controls button,
.gallery-lightbox-close,
.gallery-lightbox-nav {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid rgba(143, 164, 205, 0.34);
  border-radius: 6px;
  padding: 0;
  background: #0a1022;
  color: #dce8ff;
  cursor: pointer;
  line-height: 1;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    transform 220ms var(--motion-ease-out);
}

.gallery-controls button:hover,
.gallery-controls button:focus-visible,
.gallery-lightbox-close:hover,
.gallery-lightbox-close:focus-visible,
.gallery-lightbox-nav:hover,
.gallery-lightbox-nav:focus-visible {
  border-color: var(--control-accent);
  background: #111a33;
  color: #ffffff;
}

.gallery-controls button:active,
.gallery-lightbox-close:active,
.gallery-lightbox-nav:active {
  transform: scale(0.94);
}

.gallery-track {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.gallery-track button {
  position: relative;
  display: grid;
  grid-template-rows: auto 2.65rem;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(132, 158, 219, 0.2);
  border-radius: 6px;
  padding: 0;
  background: #070b18;
  color: #8f9bb7;
  cursor: pointer;
  text-align: left;
  transition:
    border-color 180ms ease,
    color 180ms ease,
    background-color 180ms ease,
    transform 240ms var(--motion-ease-out);
}

.gallery-track button::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--control-accent);
  box-shadow: 0 0 12px rgba(97, 223, 242, 0.5);
  transition: width 320ms var(--motion-ease-out);
}

.gallery-track img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(0.72) brightness(0.7);
  transition:
    filter 260ms ease,
    transform 420ms var(--motion-ease-out);
}

.gallery-track button > span {
  display: grid;
  grid-template-columns: 1.8rem minmax(0, 1fr);
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  padding: 0 0.65rem;
}

.gallery-track b {
  color: #69758f;
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.66rem;
}

.gallery-track small {
  overflow: hidden;
  font-size: 0.7rem;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gallery-track button[aria-selected="true"] {
  border-color: rgba(97, 223, 242, 0.66);
  background: #0b1226;
  color: #eff6ff;
}

.gallery-track button[aria-selected="true"]::before {
  width: 100%;
}

.gallery-track button[aria-selected="true"] img {
  filter: saturate(1) brightness(0.92);
}

.gallery-track button:focus-visible {
  outline: 2px solid var(--control-accent);
  outline-offset: 2px;
}

.gallery-credits {
  max-width: 95ch;
  margin: 1rem 0 0;
  color: #717d98;
  font-size: 0.66rem;
  line-height: 1.55;
}

.sources-layout {
  margin-top: clamp(5rem, 9vw, 8rem);
  border-top: 1px solid rgba(132, 158, 219, 0.16);
  padding-top: clamp(4rem, 7vw, 6rem);
}

@media (hover: hover) and (pointer: fine) {
  .gallery-image-button:hover img {
    transform: scale(1.025);
  }

  .gallery-image-button:hover .gallery-expand {
    border-color: var(--control-accent);
    background: rgba(8, 16, 35, 0.92);
    transform: scale(1.04);
  }

  .gallery-track button:hover {
    border-color: rgba(97, 223, 242, 0.42);
    color: #eff6ff;
    transform: translateY(-2px);
  }

  .gallery-track button:hover img {
    filter: saturate(0.95) brightness(0.88);
    transform: scale(1.025);
  }
}

.gallery-lightbox {
  width: min(96vw, 1540px);
  max-width: none;
  max-height: 96vh;
  overflow: visible;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
}

.gallery-lightbox::backdrop {
  background: rgba(1, 3, 11, 0.92);
  backdrop-filter: blur(12px);
}

.gallery-lightbox-shell {
  position: relative;
}

.gallery-lightbox figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  max-height: 94vh;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(143, 164, 205, 0.3);
  border-radius: 8px;
  background: #02040b;
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.62);
}

.gallery-lightbox figure > img {
  display: block;
  width: 100%;
  max-height: calc(94vh - 5.5rem);
  object-fit: contain;
  background: #02040b;
}

.gallery-lightbox figcaption {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.22rem 1.2rem;
  align-items: center;
  min-height: 5.5rem;
  padding: 0.9rem clamp(1rem, 3vw, 2rem);
  background: #080d1d;
}

.gallery-lightbox figcaption > span,
.gallery-lightbox figcaption > small {
  color: #7f8aa5;
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.64rem;
}

.gallery-lightbox figcaption > strong {
  grid-column: 1;
  font-size: 1rem;
}

.gallery-lightbox figcaption > small {
  grid-column: 1;
}

.gallery-lightbox figcaption > a {
  grid-column: 2;
  grid-row: 1 / 4;
}

.gallery-lightbox-close {
  position: absolute;
  z-index: 5;
  top: 0.8rem;
  right: 0.8rem;
  background: rgba(3, 6, 17, 0.88);
  backdrop-filter: blur(10px);
}

.gallery-lightbox-nav {
  position: absolute;
  z-index: 5;
  top: calc(50% - 2.75rem);
  background: rgba(3, 6, 17, 0.82);
  backdrop-filter: blur(10px);
}

.gallery-lightbox-prev {
  left: 0.8rem;
}

.gallery-lightbox-next {
  right: 0.8rem;
}

.gallery-lightbox[open]::backdrop {
  animation: gallery-backdrop-in 200ms ease-out both;
}

.gallery-lightbox[open] .gallery-lightbox-shell {
  animation: gallery-lightbox-in 300ms var(--motion-ease-out) both;
}

.gallery-lightbox.is-closing::backdrop {
  animation: gallery-backdrop-out 170ms var(--motion-ease-in) both;
}

.gallery-lightbox.is-closing .gallery-lightbox-shell {
  animation: gallery-lightbox-out 170ms var(--motion-ease-in) both;
}

@keyframes gallery-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes gallery-backdrop-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes gallery-lightbox-in {
  from {
    opacity: 0;
    transform: translate3d(0, 12px, 0) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes gallery-lightbox-out {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    opacity: 0;
    transform: translate3d(0, 8px, 0) scale(0.992);
  }
}

@media (max-width: 820px) {
  .mission-gallery {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery-viewport {
    border-right: 0;
    border-bottom: 1px solid var(--gallery-line);
  }

  .gallery-caption {
    min-height: 340px;
  }

  .gallery-meta {
    margin-bottom: 2.5rem;
  }

  .gallery-caption h3 {
    max-width: 22ch;
  }

  .gallery-track {
    grid-auto-columns: minmax(8.4rem, 42vw);
    grid-template-columns: none;
    grid-auto-flow: column;
    overflow-x: auto;
    padding: 0 0 0.55rem;
    scroll-snap-type: x proximity;
    scrollbar-color: rgba(97, 223, 242, 0.5) transparent;
  }

  .gallery-track button {
    scroll-snap-align: start;
  }
}

@media (max-width: 520px) {
  .gallery-expand,
  .gallery-photo-index {
    top: 0.65rem;
    right: 0.65rem;
  }

  .gallery-photo-index {
    top: auto;
    right: auto;
    bottom: 0.65rem;
    left: 0.65rem;
  }

  .gallery-caption {
    min-height: 360px;
    padding: 1.2rem;
  }

  .gallery-meta {
    margin-bottom: 2rem;
  }

  .gallery-caption h3 {
    font-size: 1.45rem;
  }

  .gallery-lightbox {
    width: 100vw;
    max-height: 100svh;
  }

  .gallery-lightbox figure {
    max-height: 100svh;
    border: 0;
    border-radius: 0;
  }

  .gallery-lightbox figure > img {
    min-height: 0;
    max-height: calc(100svh - 8.25rem);
  }

  .gallery-lightbox figcaption {
    grid-template-columns: minmax(0, 1fr);
    min-height: 8.25rem;
    padding: 0.85rem 1rem;
  }

  .gallery-lightbox figcaption > a {
    grid-column: 1;
    grid-row: auto;
  }

  .gallery-lightbox-nav {
    top: calc(50% - 4.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-image-button img,
  .gallery-expand,
  .gallery-track button,
  .gallery-track img,
  .gallery-track button::before {
    transition: none;
  }

  .mission-gallery.is-loading .gallery-viewport::after,
  .gallery-lightbox[open]::backdrop,
  .gallery-lightbox[open] .gallery-lightbox-shell,
  .gallery-lightbox.is-closing::backdrop,
  .gallery-lightbox.is-closing .gallery-lightbox-shell {
    animation: none;
  }
}
