:root {
  color-scheme: light;
  --bg: #fbfcf8;
  --surface: #ffffff;
  --surface-soft: #f6f7ef;
  --surface-sage: #eef3e7;
  --ink: #192841;
  --muted: #677181;
  --faint: #96a0a9;
  --line: rgba(25, 40, 65, 0.11);
  --warm: #f5e8aa;
  --sage: #a3b18a;
  --aqua: #8fd5d3;
  --teal: #0d6a7d;
  --deep: #192841;
  --shadow: 0 22px 58px rgba(25, 40, 65, 0.09);
  --soft-shadow: 0 12px 30px rgba(25, 40, 65, 0.07);
  --radius: 8px;
  --max: 1180px;
}

[data-theme='dark'] {
  color-scheme: dark;
  --bg: #101722;
  --surface: #172131;
  --surface-soft: #121c29;
  --surface-sage: rgba(163, 177, 138, 0.12);
  --ink: #f9fbf4;
  --muted: #b9c0c8;
  --faint: #8994a0;
  --line: rgba(249, 251, 244, 0.13);
  --warm: #f5e8aa;
  --sage: #b9c69c;
  --aqua: #8fd5d3;
  --teal: #68b7c3;
  --deep: #f9fbf4;
  --shadow: 0 22px 58px rgba(0, 0, 0, 0.34);
  --soft-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(25, 40, 65, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 40, 65, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  background-attachment: fixed;
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

[data-theme='dark'] body {
  background-image:
    linear-gradient(rgba(249, 251, 244, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(249, 251, 244, 0.06) 1px, transparent 1px);
}

body.loading {
  overflow: hidden;
}

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

button,
input {
  font: inherit;
}

.sr-only,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.skip-link:focus {
  z-index: 1000;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  clip: auto;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--bg);
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-pie {
  width: 120px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(
    var(--deep) 0% 70%,
    var(--teal) 70% 90%,
    var(--sage) 90% 100%
  );
  box-shadow: 0 18px 44px rgba(25, 40, 65, 0.14);
  animation: pieSpin 10s linear infinite;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0;
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.icon-button,
.status-pill,
.primary-action,
.secondary-action,
.contact-actions a {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.68rem 0.4rem 0.4rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.brand:hover,
.brand:focus-visible {
  background: var(--deep);
  border-color: var(--deep);
  color: var(--bg);
  transform: translateY(-1px);
  box-shadow: var(--soft-shadow);
}

.brand-mark {
  display: grid;
  width: 1.95rem;
  height: 1.95rem;
  place-items: center;
  border-radius: 50%;
  background: var(--deep);
  color: var(--bg);
  font-size: 0.74rem;
  transition: background 0.35s ease, color 0.35s ease, transform 0.7s cubic-bezier(.2,.8,.2,1);
}

.brand:hover .brand-mark,
.brand:focus-visible .brand-mark {
  background: var(--bg);
  color: var(--deep);
  transform: rotate(360deg);
}

.brand-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--bg);
  transition: max-width 0.4s cubic-bezier(.2,.8,.2,1), opacity 0.3s ease 0.05s;
}

.brand:hover .brand-status,
.brand:focus-visible .brand-status {
  max-width: 200px;
  opacity: 1;
}

.brand-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
  position: relative;
}

.brand-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: currentColor;
  animation: brandPing 1.8s ease-out infinite;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 0.1rem;
  padding: 0.28rem;
  border-radius: 999px;
}

.nav-links a {
  padding: 0.5rem 0.72rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
  background: var(--surface-soft);
  color: var(--ink);
}

.icon-button {
  display: grid;
  width: 2.55rem;
  height: 2.55rem;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  cursor: pointer;
}

.sun,
.sun::before {
  display: block;
  border-radius: 50%;
}

.sun {
  width: 1rem;
  height: 1rem;
  border: 2px solid currentColor;
}

.sun::before {
  content: "";
  width: 0.38rem;
  height: 0.38rem;
  margin: 0.2rem;
  background: var(--warm);
}

.hero {
  display: grid;
  gap: 1.3rem;
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) 0 4rem;
}

.hero-copy {
  display: grid;
  justify-items: start;
  max-width: 900px;
  padding-top: 1rem;
}

.eyebrow,
.panel-label,
.kpi-card span,
.skill-detail span,
.project-meta span,
.internship-card span,
.stream-inspector span {
  margin: 0;
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 12ch;
  margin-bottom: 0.1rem;
  font-size: clamp(3.25rem, 11vw, 8.4rem);
  line-height: 0.88;
  letter-spacing: 0;
}

.hero-title {
  margin-bottom: 0.65rem;
  color: var(--deep);
  font-size: clamp(1.25rem, 3vw, 2.2rem);
  font-weight: 900;
}

.value-prop {
  max-width: 43rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.9vw, 1.32rem);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.1rem;
}

.primary-action,
.secondary-action,
.contact-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: 0.68rem 0.98rem;
  border-radius: 999px;
  font-weight: 900;
}

.primary-action {
  background: var(--deep);
  color: var(--bg);
}

.secondary-action {
  color: var(--deep);
}

.hero-stage {
  display: grid;
  gap: 0.85rem;
}

.hero-dashboard,
.focus-card,
.skill-map,
.skill-detail,
.project-card,
.stream-card,
.internship-card,
.contact-inner {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 95%, transparent);
  box-shadow: var(--shadow);
}

.hero-dashboard {
  overflow: hidden;
  min-height: 470px;
  padding: 1rem;
}

.dashboard-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.55rem;
}

.dashboard-top h2 {
  margin: 0.12rem 0 0;
  font-size: clamp(1.25rem, 3vw, 2rem);
  line-height: 1;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.42rem 0.62rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  white-space: nowrap;
}

.status-pill span {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 0 rgba(163, 177, 138, 0.5);
  animation: pulse 1.8s infinite;
}

.network-shell {
  position: relative;
  height: 395px;
  border-radius: var(--radius);
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    radial-gradient(circle at 50% 45%, rgba(245, 232, 170, 0.34), transparent 18rem);
  background-size: 44px 44px, 44px 44px, auto;
}
.timeline-wrap {
  width: 100%;
  overflow-x: auto;
}

.timeline {
  position: relative;
  min-width: 900px;
  padding: 0 12px;
}

.edu-row {
  display: flex;
  align-items: flex-end;
  height: 90px;
  position: relative;
}

.edu-block {
  position: absolute;
  bottom: 0;
  height: 72px;
  background: #eef6f8;
  border: 1px solid rgba(13,106,125,0.18);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.edu-block .tl-tag { font-size: 9px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); margin-bottom: 4px; }
.edu-block .tl-name { font-size: 12px; font-weight: 500; color: var(--ink); line-height: 1.3; }
.edu-block .tl-detail { font-size: 10px; color: var(--muted); margin-top: 2px; }

.axis-row { position: relative; height: 28px; display: flex; align-items: center; }
.axis-line { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line); }

.bottom-row { display: flex; align-items: flex-start; height: 160px; position: relative; }

.item-block {
  position: absolute;
  top: 16px;
  width: 130px;
  border-radius: 10px;
  padding: 9px 12px;
}

.item-block.work { background: var(--surface-sage); border: 1px solid rgba(163,177,138,0.3); }
.item-block.project { background: #faf3e0; border: 1px solid rgba(201,151,58,0.2); }
.item-block .tl-tag { font-size: 9px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 3px; }
.item-block.work .tl-tag { color: #4a7a32; }
.item-block.project .tl-tag { color: #c9973a; }
.item-block .tl-name { font-size: 11px; font-weight: 500; color: var(--ink); line-height: 1.3; margin-bottom: 2px; }
.item-block .tl-detail { font-size: 10px; color: var(--muted); }

.tl-dot { position: absolute; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; z-index: 2; }
.tl-dot-edu { width: 11px; height: 11px; background: var(--teal); }
.tl-dot-work { width: 9px; height: 9px; background: var(--sage); border: 1.5px solid #7a9464; }
.tl-dot-project { width: 9px; height: 9px; background: #c9973a; border: 1.5px solid #b07c28; }

.tl-stem { position: absolute; width: 1px; background: var(--line); z-index: 1; }

.tl-year-label { position: absolute; top: 50%; transform: translate(-50%, -50%); font-size: 10px; color: var(--faint); white-space: nowrap; margin-top: 18px; }

.timeline-legend { display: flex; gap: 20px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.legend-item { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; }

#portfolioNetwork,
#experienceStream {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.node-inspector,
.stream-inspector {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  width: min(250px, calc(100% - 1.5rem));
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(14px);
}

.node-inspector strong,
.stream-inspector strong {
  display: block;
  margin: 0.08rem 0 0.22rem;
  font-size: 0.98rem;
}

.node-inspector p,
.stream-inspector p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

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

.kpi-card {
  min-height: 112px;
  padding: 0.92rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--soft-shadow);
}

.kpi-card strong {
  display: block;
  margin: 0.12rem 0;
  color: var(--deep);
  font-size: clamp(1.9rem, 6vw, 2.7rem);
  line-height: 1;
}

.kpi-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.section {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3.1rem, 7vw, 5rem) 0;
}

.section-heading {
  display: grid;
  gap: 0.38rem;
  max-width: 680px;
  margin-bottom: 1.2rem;
}

.section-heading h2,
.contact-inner h2 {
  margin: 0;
  font-size: clamp(1.9rem, 5.4vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

.focus-card {
  display: grid;
  gap: 1rem;
  padding: clamp(1.1rem, 3vw, 1.6rem);
  max-width: 850px;
}

.focus-card p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.focus-chips,
.tools,
.stream-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.focus-chips span,
.tools em,
.stream-legend button {
  padding: 0.38rem 0.58rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-sage);
  color: var(--deep);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
}

.skill-layout {
  display: grid;
  gap: 0.9rem;
}

.skill-map {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 0.65rem;
  padding: 0.85rem;
}

.skill-chip {
  min-height: 96px;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.skill-chip:hover,
.skill-chip:focus-visible,
.skill-chip.is-active {
  transform: translateY(-3px);
  border-color: rgba(13, 106, 125, 0.34);
  background: rgba(143, 213, 211, 0.18);
  outline: none;
}

.skill-chip strong {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.94rem;
}

.skill-chip span {
  color: var(--muted);
  font-size: 0.78rem;
}

.skill-detail {
  min-height: 210px;
  padding: 1rem;
}

.skill-detail h3 {
  margin: 0.18rem 0 0.55rem;
  font-size: 1.45rem;
}

.skill-detail p,
.project-card p,
.internship-card p {
  color: var(--muted);
}

.meter {
  overflow: hidden;
  height: 0.46rem;
  margin: 0.85rem 0;
  border-radius: 999px;
  background: var(--surface-soft);
}

.meter i {
  display: block;
  width: var(--level);
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
}

.projects-grid,
.internship-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  align-items: start;
}

.project-card {
  position: relative;
  overflow: hidden;
  padding: 0.9rem;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--teal);
}

.project-card button {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.project-card h3 {
  margin: 0.5rem 0 0.35rem;
  font-size: 1.12rem;
  line-height: 1.1;
}

.project-card p {
  margin-bottom: 0.7rem;
  font-size: 0.85rem;
}

.project-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
}

.result-badge {
  padding: 0.28rem 0.48rem;
  border-radius: 999px;
  background: var(--warm);
  color: #192841;
  font-size: 0.68rem;
  font-weight: 900;
  white-space: nowrap;
}

.project-preview {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  align-items: end;
  gap: 0.22rem;
  height: 56px;
  margin: 0.7rem 0;
  padding: 0.5rem;
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.project-preview i {
  display: block;
  height: var(--h);
  min-height: 10px;
  border-radius: 4px 4px 0 0;
  background: var(--teal);
}

.project-details {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.project-card.is-open .project-details {
  grid-template-rows: 1fr;
}

.project-details > div {
  overflow: hidden;
}

.project-meta {
  display: grid;
  gap: 0.45rem;
  padding-top: 0.25rem;
}

.project-meta p {
  margin: 0;
}

.stream-card {
  padding: 1rem;
}

.stream-toolbar {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.stream-toolbar p {
  margin: 0;
  max-width: 720px;
  color: var(--muted);
}

.stream-legend button {
  cursor: pointer;
}

.stream-legend button.is-active {
  background: var(--deep);
  color: var(--bg);
}

.stream-shell {
  position: relative;
  height: clamp(360px, 45vw, 520px);
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.stream-layer {
  cursor: pointer;
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.stream-layer.is-muted {
  opacity: 0.22;
}

.stream-layer.is-active {
  filter: drop-shadow(0 10px 18px rgba(25, 40, 65, 0.18));
}

.stream-label,
.stream-note {
  pointer-events: none;
  font-weight: 900;
}

.stream-label {
  fill: rgba(255, 255, 255, 0.84);
  font-size: 1.55rem;
}

.stream-note {
  fill: var(--deep);
  font-size: 0.72rem;
}

.stream-rule {
  stroke: rgba(25, 40, 65, 0.16);
  stroke-width: 1;
}

.internship-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.internship-card {
  min-height: 138px;
  padding: 0.9rem;
}

.internship-card h3 {
  margin: 0.22rem 0 0.32rem;
  font-size: 1rem;
  line-height: 1.14;
}

.internship-card p {
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
}

.internship-card small {
  color: var(--faint);
  font-weight: 900;
}

.contact-section {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 4rem 0 5.5rem;
}

.contact-inner {
  padding: clamp(1.4rem, 5vw, 3.6rem);
  background: var(--surface);
}

.contact-inner p {
  max-width: 650px;
  color: var(--muted);
}

.contact-hobbies {
  margin-top: 1.6rem;
}

.hobbies-marquee {
  overflow: hidden;
  margin-top: 0.6rem;
  padding: 0.4rem 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
}

.hobbies-track {
  display: flex;
  gap: 0.6rem;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.hobbies-marquee:hover .hobbies-track {
  animation-play-state: paused;
}

.hobbies-track span {
  padding: 0.42rem 0.72rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-sage);
  color: var(--deep);
  font-size: 0.8rem;
  font-weight: 900;
  white-space: nowrap;
  flex-shrink: 0;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hobbies-marquee {
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .hobbies-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }
  .hobbies-track [aria-hidden="true"] {
    display: none;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.network-link {
  stroke: rgba(25, 40, 65, 0.13);
  stroke-width: 1.2;
  transition: stroke 0.2s ease, opacity 0.2s ease;
}

.network-node {
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.network-node circle {
  stroke: var(--surface);
  stroke-width: 3;
  filter: drop-shadow(0 8px 12px rgba(25, 40, 65, 0.13));
  transition: r 0.2s ease, stroke 0.2s ease;
}

.network-label {
  fill: var(--ink);
  font-size: 0.66rem;
  font-weight: 900;
  pointer-events: none;
}

.network-node.is-muted,
.network-link.is-muted {
  opacity: 0.15;
}

.network-node.is-active circle {
  r: 15;
  stroke: var(--warm);
}

.network-link.is-active {
  stroke: var(--teal);
  stroke-width: 2.2;
}

@keyframes pieSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  to {
    box-shadow: 0 0 0 10px rgba(163, 177, 138, 0);
  }
}

@keyframes brandPing {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }
  to {
    transform: scale(2.6);
    opacity: 0;
  }
}

@media (min-width: 720px) {
  .nav-links {
    display: inline-flex;
  }

  .hero-stage {
    grid-template-columns: minmax(0, 1fr) 176px;
    align-items: stretch;
  }

  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .kpi-card {
    min-height: 0;
  }

  .skill-layout {
    grid-template-columns: 1.4fr 0.6fr;
  }

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

  .stream-toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }
}

@media (min-width: 1040px) {
  .hero {
    min-height: calc(100vh - 5rem);
  }

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

@media (max-width: 620px) {
  .brand-name,
  .brand-status {
    display: none;
  }

  .hero-dashboard {
    min-height: 430px;
    padding: 0.75rem;
  }

  .network-shell {
    height: 345px;
  }

  .dashboard-top {
    align-items: center;
  }

  .status-pill {
    display: none;
  }

  .node-inspector,
  .stream-inspector {
    display: none;
  }

  .stream-label {
    font-size: 1rem;
  }
}

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