:root {
  color-scheme: light;
  --outer: #07111f;
  --bg: #fbfcff;
  --panel: #ffffff;
  --panel-soft: rgba(255, 255, 255, 0.76);
  --text: #0b1020;
  --muted: #5f6b7c;
  --faint: #8c97aa;
  --line: rgba(24, 35, 56, 0.1);
  --accent: #635bff;
  --accent-soft: #efedff;
  --green: #18a779;
  --shadow: 0 18px 55px rgba(20, 30, 50, 0.08);
  --radius: 8px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --outer: #020814;
  --bg: #09111e;
  --panel: #0f1928;
  --panel-soft: rgba(15, 25, 40, 0.78);
  --text: #f5f7fb;
  --muted: #a8b2c3;
  --faint: #788397;
  --line: rgba(220, 228, 240, 0.12);
  --accent: #9a94ff;
  --accent-soft: rgba(122, 116, 255, 0.16);
  --green: #42d6a4;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--outer);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
}

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

button {
  font: inherit;
}

svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.page-shell {
  width: min(1380px, calc(100% - 28px));
  margin: 18px auto;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 12%, rgba(99, 91, 255, 0.055), transparent 26rem),
    var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 0 52px;
  background: rgba(251, 252, 255, 0.84);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

:root[data-theme="dark"] .site-header {
  background: rgba(9, 17, 30, 0.84);
}

.brand,
.site-nav,
.header-actions,
.hero-actions,
.chips,
.rotator-line,
.contact-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 28px;
  aspect-ratio: 1;
  border-radius: 7px;
  background: var(--text);
  color: var(--bg);
  font-size: 0.72rem;
  letter-spacing: 0;
}

.site-nav {
  gap: 30px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.site-nav a {
  position: relative;
  padding: 28px 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
}

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

.header-actions {
  gap: 10px;
}

.icon-button,
.theme-toggle,
.language-toggle,
.dev-button,
.nav-toggle {
  display: grid;
  place-items: center;
  width: 38px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--text);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.icon-button-dev {
  width: 38px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  font-size: 30px;
}

.icon-button-dev i {
  line-height: 1;
}

.icon-button:hover,
.theme-toggle:hover,
.language-toggle:hover,
.icon-button-dev:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 91, 255, 0.38);
}

.dev-button {
  background: var(--text);
  color: var(--bg);
  font-size: 0.67rem;
  font-weight: 900;
}

.language-toggle {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 850;
}

.theme-toggle {
  position: relative;
}

.sun,
.moon {
  position: absolute;
  width: 16px;
  aspect-ratio: 1;
  transition: opacity 180ms ease, transform 180ms ease;
}

.sun {
  border: 2px solid currentColor;
  border-radius: 50%;
  box-shadow: 0 -8px 0 -6px currentColor, 0 8px 0 -6px currentColor, 8px 0 0 -6px currentColor,
    -8px 0 0 -6px currentColor, 6px 6px 0 -6px currentColor, -6px -6px 0 -6px currentColor,
    6px -6px 0 -6px currentColor, -6px 6px 0 -6px currentColor;
}

.moon {
  border-radius: 50%;
  box-shadow: inset -5px -2px 0 0 currentColor;
  opacity: 0;
  transform: rotate(-25deg) scale(0.8);
}

:root[data-theme="dark"] .sun {
  opacity: 0;
  transform: rotate(25deg) scale(0.8);
}

:root[data-theme="dark"] .moon {
  opacity: 1;
  transform: rotate(0) scale(1);
}

.nav-toggle {
  display: none;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: currentColor;
}

.section-grid,
.about-band,
.split-section,
.journal-section {
  padding: 64px 56px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(430px, 1.05fr);
  gap: 56px;
  align-items: center;
  min-height: 535px;
}

.eyebrow,
.tag,
.pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  padding: 7px 11px;
}

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

h1 {
  margin: 28px 0 12px;
  font-size: clamp(3.35rem, 7vw, 5.2rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero h2 {
  max-width: 650px;
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero h2 span {
  color: var(--accent);
}

.split-section aside h2,
.journal-section h2,
.contact-section h2 {
  margin-bottom: 20px;
  font-size: clamp(2.1rem, 4.6vw, 4rem);
  line-height: 1.03;
  letter-spacing: 0;
}

.hero-text,
.split-section aside p,
.about-band p,
.project-row p,
.article-card p,
.site-footer span,
.focus-strip span,
.status-grid li {
  color: var(--muted);
}

.hero-text {
  max-width: 560px;
  margin-bottom: 22px;
  font-size: 1.04rem;
  line-height: 1.72;
}

.rotator-line {
  gap: 8px;
  min-height: 28px;
  margin: 0 0 28px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.95rem;
}

.rotator-line strong,
.rotator-line em,
#rotatingText {
  color: var(--accent);
  font-style: normal;
  font-weight: 800;
}

#rotatingText.swap {
  animation: textSwap 360ms ease both;
}

.cursor {
  width: 2px;
  height: 19px;
  background: var(--text);
  animation: blink 900ms steps(2, start) infinite;
}

.hero-actions {
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 21px;
  font-weight: 800;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 91, 255, 0.38);
}

.button.primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.button.secondary {
  background: var(--panel);
}

.large {
  width: 48px;
  min-height: 48px;
}

.hero-visual {
  position: relative;
  min-height: 430px;
}

.schematic {
  position: absolute;
  inset: 22px 0 0;
  overflow: hidden;
}

.schematic::before,
.small-circuit,
.side-circuit,
.chip-ghost {
  content: "";
  position: absolute;
  background:
    linear-gradient(90deg, transparent 0 18%, rgba(99, 91, 255, 0.28) 18% 18.8%, transparent 19% 100%) 0 34px / 92px 62px repeat-x,
    linear-gradient(rgba(99, 91, 255, 0.2), rgba(99, 91, 255, 0.2)) 0 50% / 100% 1px no-repeat;
}

.schematic::before {
  inset: 0;
  opacity: 0.48;
  mask-image: radial-gradient(circle at 50% 50%, black 0 52%, transparent 78%);
}

.chip {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 138px;
  aspect-ratio: 1;
  border: 2px solid var(--text);
  border-radius: 18px;
  background: var(--panel);
  font-size: 1.85rem;
  font-weight: 900;
  transform: translate(-50%, -50%);
  box-shadow: var(--shadow);
}

.pin-row {
  position: absolute;
  z-index: 1;
  border-color: var(--text);
  opacity: 0.72;
}

.pin-row.top,
.pin-row.bottom {
  left: calc(50% - 76px);
  width: 152px;
  height: 9px;
  border-left: 88px dotted var(--text);
}

.pin-row.top {
  top: calc(50% - 91px);
}

.pin-row.bottom {
  top: calc(50% + 82px);
}

.pin-row.left,
.pin-row.right {
  top: calc(50% - 76px);
  width: 9px;
  height: 152px;
  border-top: 88px dotted var(--text);
}

.pin-row.left {
  left: calc(50% - 91px);
}

.pin-row.right {
  left: calc(50% + 82px);
}

.trace {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.72;
  animation: pulseTrace 3.4s ease-in-out infinite;
}

.t1 { left: 6%; top: 32%; width: 43%; }
.t2 { right: 6%; top: 53%; width: 41%; animation-delay: 550ms; }
.t3 { left: 22%; bottom: 19%; width: 35%; transform: rotate(-35deg); animation-delay: 1s; }
.t4 { right: 17%; top: 24%; width: 30%; transform: rotate(40deg); animation-delay: 1.5s; }
.t5 { left: 14%; top: 66%; width: 33%; animation-delay: 2s; }
.t6 { right: 13%; top: 39%; width: 32%; animation-delay: 2.5s; }

.node {
  position: absolute;
  width: 8px;
  aspect-ratio: 1;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--bg);
}

.n1 { left: 10%; top: 31%; }
.n2 { right: 8%; top: 52%; }
.n3 { left: 24%; bottom: 20%; }
.n4 { right: 23%; top: 23%; }
.n5 { right: 16%; top: 38%; }

.mini-card {
  position: absolute;
  z-index: 3;
  display: grid;
  gap: 7px;
  min-width: 128px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  backdrop-filter: blur(16px);
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.73rem;
  box-shadow: 0 10px 28px rgba(20, 30, 50, 0.04);
}

.mini-card strong {
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.76rem;
}

.registers { left: 2%; top: 5%; }
.alu { right: 2%; top: 7%; }
.memory { left: 1%; bottom: 5%; }
.bus { right: 2%; bottom: 8%; min-width: 150px; }

.bus i {
  display: block;
  height: 2px;
  padding-bottom: 4px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: var(--green);
}
.bus span {
  display: inline-block;
  margin-top: 4px;
  margin-left: 8px;
  font-size: 0.72rem;
  font-weight: 800;
}

.bus i:nth-child(3) { background: #000; }
.bus i:nth-child(4) { background: #47320c; }
.bus i:nth-child(5) { background: #d05050; }
.bus i:nth-child(6) { background: #e77b32; }
.bus i:nth-child(7) { background: #f0eb5a; }
.about-band {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr 0.95fr;
  gap: 54px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-label {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--text);
  font-weight: 850;
}

.about-band p {
  line-height: 1.68;
}

.about-band .bold {
  color: var(--text);
  font-weight: 850;
}

.work-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.project-mini {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 18px;
  align-items: start;
}

.micro-board,
.board-art {
  background:
    radial-gradient(circle at 55% 48%, #2c3549 0 16%, transparent 17%),
    radial-gradient(circle at 26% 28%, #50d0a9 0 2%, transparent 3%),
    radial-gradient(circle at 76% 70%, #f0b45a 0 2%, transparent 3%),
    linear-gradient(135deg, #182337, #0c1422);
}

.micro-board {
  min-height: 56px;
  border-radius: 8px;
  transform: rotate(-12deg);
}

.work-card ul,
.status-grid ul,
.status-grid ol {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.work-card li,
.status-grid li {
  position: relative;
  padding-left: 22px;
  font-size: 0.93rem;
}

.work-card li::before,
.status-grid li::before,
.status-grid ol li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 8px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(99, 91, 255, 0.12);
}

.pill {
  color: var(--accent);
}

.philosophy {
  position: relative;
  overflow: hidden;
}

.small-circuit {
  right: -20px;
  bottom: -18px;
  width: 230px;
  height: 120px;
  opacity: 0.5;
}

.split-section {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 60px;
  border-bottom: 1px solid var(--line);
}

.split-section aside {
  position: relative;
  min-height: 410px;
}

.split-section aside p {
  max-width: 330px;
  line-height: 1.7;
}

.side-circuit {
  left: -58px;
  bottom: 0;
  width: 350px;
  height: 210px;
  opacity: 0.6;
}

.project-list {
  display: grid;
  align-content: start;
  gap: 16px;
}

.projects-loading {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--muted);
}

.project-row {
  position: relative;
  display: grid;
  margin-left: auto;
  grid-template-columns: 150px 1fr auto;
  gap: 24px;
  align-items: center;
  min-height: 132px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.project-row.featured {
  max-width: 93%;
  margin-left: auto;
  grid-template-columns: 210px 1fr auto;
  min-height: 245px;
}

.project-row:hover,
.article-card:hover {
  transform: translateY(-3px);
  border-color: rgba(99, 91, 255, 0.36);
  box-shadow: var(--shadow);
}

.project-art,
.article-thumb {
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.project-row.featured .project-art {
  min-height: 170px;
}

.terminal-art {
  background:
    linear-gradient(90deg, #68e2b9 0 34px, transparent 34px) 22px 28px / 80px 2px no-repeat,
    linear-gradient(90deg, #9a94ff 0 54px, transparent 54px) 22px 54px / 100px 2px no-repeat,
    #0d1727;
}

.grid-art {
  background:
    linear-gradient(rgba(154, 148, 255, 0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(154, 148, 255, 0.28) 1px, transparent 1px),
    #0d1727;
  background-size: 28px 28px;
}

.chips {
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0 14px;
}

.chips span {
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 6px 9px;
}

.arrow-link {
  display: grid;
  place-items: center;
  width: 42px;
  aspect-ratio: 1;
  color: var(--accent);
  font-size: 1.65rem;
  font-weight: 700;
}

.dot-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.dot-label::before {
  content: "";
  width: 9px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(24, 167, 121, 0.12);
}

.dot-label.purple::before {
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(99, 91, 255, 0.12);
}

.now-split {
  align-items: start;
}

.chip-ghost {
  left: 20px;
  bottom: 20px;
  width: 230px;
  height: 190px;
  opacity: 0.32;
}

.now-panel {
  display: grid;
  gap: 18px;
}

.now-loading {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--muted);
}

.focus-strip,
.status-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.focus-strip {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr;
  gap: 26px;
  align-items: center;
  padding: 22px;
}

.focus-strip span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.82rem;
  font-weight: 800;
}

.focus-strip strong {
  line-height: 1.45;
}

.progress {
  height: 7px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--accent-soft);
}

.progress div {
  width: var(--progress);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--green));
  animation: growBar 900ms ease both;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.status-grid article {
  padding: 24px;
}

.journal-section {
  border-bottom: 1px solid var(--line);
}

.section-heading.row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-heading.row h2 {
  max-width: 620px;
  margin-bottom: 0;
  font-size: clamp(1.9rem, 3.4vw, 3.2rem);
}

.text-link {
  color: var(--text);
  font-weight: 850;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.articles-loading {
  grid-column: 1 / -1;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--muted);
}

.article-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.article-thumb {
  min-height: 70px;
  margin-bottom: 16px;
}

.article-thumb.image {
  background-position: center;
  background-size: cover;
}

.article-card h3 {
  min-height: 48px;
}

.article-card p {
  min-height: 54px;
  font-size: 0.9rem;
  line-height: 1.52;
}

time {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.article-thumb.code {
  background:
    linear-gradient(90deg, transparent 26%, #9a94ff 27% 29%, transparent 30% 70%, #45d7ad 71% 73%, transparent 74%),
    #101a2b;
}

.article-thumb.terminal {
  background:
    linear-gradient(#e8f0ff 0 2px, transparent 2px) 22px 22px / 90px 18px repeat-y,
    #101a2b;
}

.article-thumb.system {
  background:
    radial-gradient(circle at 28% 32%, #9a94ff 0 6px, transparent 7px),
    radial-gradient(circle at 68% 38%, #45d7ad 0 6px, transparent 7px),
    radial-gradient(circle at 52% 70%, #f0b45a 0 6px, transparent 7px),
    #101a2b;
}

.article-thumb.ide {
  background:
    linear-gradient(#45d7ad 0 2px, transparent 2px) 34px 22px / 110px 18px repeat-y,
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 0 44px, transparent 44px),
    #101a2b;
}

.contact-section {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  margin: 56px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.contact-section h2 {
  max-width: 660px;
  margin-bottom: 0;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.contact-actions {
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 56px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.site-footer strong,
.site-footer span {
  display: block;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 560ms ease, transform 560ms ease;
}

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

@keyframes pulseTrace {
  0%, 100% {
    opacity: 0.25;
    filter: saturate(0.65);
  }
  50% {
    opacity: 1;
    filter: saturate(1.4);
  }
}

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

@keyframes textSwap {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes growBar {
  from {
    width: 0;
  }
}

@media (max-width: 980px) {
  .page-shell {
    width: min(100% - 16px, 780px);
    margin: 8px auto;
    border-radius: 18px;
  }

  .site-header {
    grid-template-columns: 1fr auto auto;
    padding: 0 22px;
  }

  .nav-toggle {
    display: grid;
    order: 2;
  }

  .header-actions {
    order: 3;
  }

  .site-nav {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 82px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 14px;
  }

  .site-nav a::after {
    display: none;
  }

  .hero,
  .split-section,
  .about-band {
    grid-template-columns: 1fr;
  }

  .section-grid,
  .about-band,
  .split-section,
  .journal-section {
    padding: 54px 24px;
  }

  .hero {
    gap: 22px;
  }

  .hero-visual {
    min-height: 390px;
  }

  .about-band {
    gap: 24px;
  }

  .split-section {
    gap: 28px;
  }

  .split-section aside {
    min-height: auto;
  }

  .side-circuit,
  .chip-ghost {
    display: none;
  }

  .status-grid,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .project-row,
  .project-row.featured {
    grid-template-columns: 1fr;
  }

  .project-art,
  .project-row.featured .project-art {
    min-height: 170px;
  }

  .arrow-link {
    position: absolute;
    right: 14px;
    top: 14px;
  }

  .focus-strip {
    grid-template-columns: 1fr;
  }

  .contact-section {
    grid-template-columns: 1fr;
    margin: 24px;
    padding: 24px;
  }

  .contact-actions {
    justify-content: flex-start;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px;
  }
}

@media (max-width: 620px) {
  .page-shell {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    border: 0;
    border-radius: 0;
  }

  .site-header {
    min-height: 66px;
    gap: 10px;
  }

  .brand span:last-child {
    display: none;
  }

  .header-actions {
    gap: 7px;
  }

  .header-actions .icon-button,
  .header-actions .dev-button {
    display: none;
  }

  h1 {
    font-size: clamp(3rem, 18vw, 4.4rem);
  }

  .hero h2 {
    font-size: clamp(2rem, 11vw, 3.1rem);
  }

  .hero-actions .button {
    width: 100%;
  }

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

  .mini-card {
    min-width: 112px;
    padding: 12px;
    font-size: 0.68rem;
  }

  .alu {
    right: 0;
  }

  .memory {
    display: none;
  }

  .bus {
    right: 0;
    bottom: 0;
  }

  .chip {
    width: 118px;
  }

  .section-heading.row {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-actions .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
}
