:root {
  color-scheme: dark;
  --bg: #050708;
  --surface: #0b1113;
  --surface-2: #0f181b;
  --surface-3: #132024;
  --text: #e6fff1;
  --text-soft: #c7ddd5;
  --muted: #7f938f;
  --line: #20363a;
  --accent: #39ff14;
  --accent-soft: rgba(57, 255, 20, 0.14);
  --cyan: #35d7ff;
  --amber: #ffbf47;
  --danger: #ff5f56;
  --shadow: rgba(0, 0, 0, 0.45);
  --font-mono: "Fira Code", "JetBrains Mono", "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

body[data-theme="cyan"] {
  --accent: #35d7ff;
  --accent-soft: rgba(53, 215, 255, 0.14);
}

body[data-theme="amber"] {
  --accent: #ffbf47;
  --accent-soft: rgba(255, 191, 71, 0.14);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.018) 0,
    rgba(255, 255, 255, 0.018) 1px,
    transparent 1px,
    transparent 5px
  );
  opacity: 0.32;
  z-index: 10;
}

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

a:hover,
a:focus-visible {
  color: var(--accent);
}

.boot-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: #020405;
}

.boot-screen pre {
  width: min(860px, 100%);
  min-height: 13rem;
  margin: 0;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #030607;
  color: var(--accent);
  box-shadow: 0 24px 80px var(--shadow);
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: 66px;
  padding: 0 1.25rem;
  border-bottom: 1px solid rgba(53, 215, 255, 0.18);
  background: rgba(5, 7, 8, 0.9);
  backdrop-filter: blur(14px);
}

.brand {
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
}

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

.site-nav {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  min-width: 0;
}

.site-nav a,
.header-action,
.btn {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 0.85rem;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text-soft);
  font: inherit;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.header-action:hover,
.header-action:focus-visible {
  border-color: rgba(57, 255, 20, 0.28);
  background: var(--accent-soft);
  text-decoration: none;
}

.header-action {
  border-color: rgba(53, 215, 255, 0.24);
  color: var(--cyan);
}

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 96px));
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(5, 7, 8, 0.98) 0%, rgba(5, 7, 8, 0.9) 46%, rgba(5, 7, 8, 0.68) 100%),
    url("../img/hero-soc.png") center / cover no-repeat;
}

.hero-inner {
  width: min(1180px, calc(100% - 2rem));
  min-width: 0;
  max-width: 1180px;
  margin: 0 auto;
  padding: 3rem 0 3.25rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 1.5rem;
}

.hero-intro {
  width: 100%;
  min-width: 0;
  max-width: 880px;
}

.profile-carousel {
  width: min(620px, 100%);
  min-width: 0;
  max-width: 100%;
  padding: 0.6rem;
  border: 1px solid rgba(53, 215, 255, 0.2);
  border-radius: 12px;
  background: rgba(5, 10, 12, 0.78);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.profile-carousel-controls {
  display: flex;
  justify-content: flex-end;
  gap: 0.35rem;
  margin-bottom: 0.45rem;
}

.profile-carousel-controls button {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(53, 215, 255, 0.25);
  border-radius: 7px;
  background: rgba(53, 215, 255, 0.06);
  color: var(--cyan);
  font: inherit;
  cursor: pointer;
}

.profile-carousel-controls button:hover,
.profile-carousel-controls button:focus-visible {
  border-color: rgba(57, 255, 20, 0.55);
  color: var(--accent);
}

.profile-carousel-track {
  min-width: 0;
  max-width: 100%;
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
}

.profile-carousel-track::-webkit-scrollbar {
  display: none;
}

.profile-carousel-item {
  flex: 0 0 132px;
  margin: 0;
  padding: 0.3rem;
  scroll-snap-align: start;
  border: 1px solid rgba(53, 215, 255, 0.16);
  border-radius: 9px;
  background: rgba(10, 18, 20, 0.88);
}

.profile-carousel-item img {
  width: 100%;
  height: 112px;
  display: block;
  object-fit: cover;
  object-position: center top;
  border-radius: 6px;
}

.profile-carousel-item--logo img {
  object-fit: contain;
  padding: 0.25rem;
  background: #050708;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  width: 100%;
  max-width: 960px;
  margin: 0;
  color: #f2fff7;
  font-size: 56px;
  line-height: 1.04;
  overflow-wrap: anywhere;
}

h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.18;
}

h3 {
  margin: 0 0 1rem;
  color: var(--cyan);
  font-size: 18px;
}

.hero-role {
  width: 100%;
  max-width: 820px;
  margin: 1rem 0 0;
  color: var(--cyan);
  font-size: 20px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.hero-copy {
  width: 100%;
  max-width: 760px;
  margin: 1rem 0 0;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.identity-output {
  max-width: 100%;
  margin: 0;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(57, 255, 20, 0.32);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  background: rgba(5, 10, 12, 0.82);
  color: #e9fff0;
  font: 700 clamp(15px, 1.6vw, 21px)/1.6 Consolas, "Courier New", monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.btn {
  min-height: 44px;
  padding: 0 1rem;
  font-weight: 800;
  cursor: pointer;
}

.btn-primary {
  border-color: rgba(57, 255, 20, 0.55);
  background: var(--accent);
  color: #031006;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  color: #031006;
  filter: brightness(1.08);
}

.btn-secondary {
  border-color: rgba(53, 215, 255, 0.55);
  background: rgba(53, 215, 255, 0.12);
  color: var(--cyan);
}

.btn-ghost {
  border-color: rgba(255, 191, 71, 0.45);
  background: rgba(255, 191, 71, 0.08);
  color: var(--amber);
}

.fact-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  grid-column: 1 / -1;
  max-width: 100%;
  margin-top: 0.8rem;
}

.fact {
  min-height: 92px;
  padding: 1rem;
  border: 1px solid rgba(53, 215, 255, 0.18);
  border-radius: 8px;
  background: rgba(8, 18, 20, 0.8);
}

.fact strong {
  display: block;
  color: var(--text);
  font-size: 18px;
}

.fact span {
  display: block;
  margin-top: 0.45rem;
  color: var(--muted);
  line-height: 1.45;
}

.section {
  padding: 4.25rem 1.25rem;
  background: var(--bg);
}

section[id] {
  scroll-margin-top: 112px;
}

.section.band {
  background:
    linear-gradient(180deg, rgba(53, 215, 255, 0.035), transparent 8rem),
    var(--surface);
  border-top: 1px solid rgba(53, 215, 255, 0.12);
  border-bottom: 1px solid rgba(53, 215, 255, 0.12);
}

.section-head,
.timeline,
.skills-grid,
.cert-grid,
.credential-grid,
.badge-grid,
.evidence-grid,
.community-events,
.two-column,
.projects-grid,
.video-grid,
.contact-grid,
.terminal-details {
  width: min(1180px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.section-head {
  margin-bottom: 1.6rem;
}

.section-head p:not(.eyebrow) {
  max-width: 820px;
  margin: 0.8rem 0 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.section-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  margin-top: 0.9rem;
  padding: 0 0.85rem;
  border: 1px solid rgba(53, 215, 255, 0.26);
  border-radius: 8px;
  background: rgba(53, 215, 255, 0.06);
  color: var(--cyan);
  font-weight: 800;
}

.section-link:hover,
.section-link:focus-visible {
  border-color: rgba(57, 255, 20, 0.42);
  color: var(--accent);
  text-decoration: none;
}

.skill-card,
.project-card,
.credential-card,
.video-card,
.contact-card,
.timeline-item,
.list-item {
  border: 1px solid rgba(53, 215, 255, 0.16);
  border-radius: 8px;
  background: rgba(12, 21, 24, 0.88);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.18);
}

.skill-card p,
.project-card p,
.timeline-item p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-item {
  position: relative;
  padding: 1.3rem;
  border-left: 3px solid var(--accent);
}

.timeline-item h3 {
  color: var(--text);
}

.timeline-item ul,
.skill-card ul {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--text-soft);
  line-height: 1.75;
}

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

.skill-card {
  padding: 1.15rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.chip,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.25rem 0.65rem;
  border: 1px solid rgba(57, 255, 20, 0.24);
  border-radius: 8px;
  background: rgba(57, 255, 20, 0.08);
  color: var(--text-soft);
  font-size: 13px;
}

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

.cert-item {
  min-height: 64px;
  display: flex;
  align-items: center;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(53, 215, 255, 0.16);
  border-radius: 8px;
  background: rgba(9, 16, 18, 0.9);
  color: var(--text-soft);
  line-height: 1.45;
}

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

.credential-card {
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  grid-column: span 2;
}

.credential-card--featured {
  grid-column: span 3;
  border-color: rgba(189, 233, 36, 0.68);
  background:
    linear-gradient(145deg, rgba(189, 233, 36, 0.1), transparent 44%),
    rgba(9, 16, 18, 0.96);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(189, 233, 36, 0.08);
}

.credential-image-link {
  display: block;
  background: #050708;
}

.credential-image-link:hover,
.credential-image-link:focus-visible {
  text-decoration: none;
}

.credential-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: contain;
  object-position: center;
  border-bottom: 1px solid rgba(53, 215, 255, 0.16);
  background: #050708;
}

.credential-card--featured img {
  aspect-ratio: 16 / 10;
}

.credential-card div {
  display: grid;
  gap: 0.65rem;
  align-content: start;
  padding: 1rem;
}

.credential-card h3,
.credential-card p {
  margin: 0;
}

.credential-card h3 {
  color: var(--text);
  line-height: 1.35;
}

.credential-card p {
  color: var(--text-soft);
  line-height: 1.5;
}

.featured-label {
  width: max-content;
  max-width: 100%;
  padding: 0.42rem 0.65rem;
  border: 1px solid rgba(189, 233, 36, 0.5);
  border-radius: 999px;
  color: #d9ff52;
  background: rgba(189, 233, 36, 0.1);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.badge-card {
  min-height: 235px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.75rem;
  padding: 1.1rem;
  border: 1px solid rgba(53, 215, 255, 0.16);
  border-radius: 8px;
  background: rgba(12, 21, 24, 0.88);
  text-align: center;
}

.badge-card:hover,
.badge-card:focus-visible {
  border-color: rgba(57, 255, 20, 0.4);
  background: rgba(57, 255, 20, 0.06);
  text-decoration: none;
}

.badge-card img {
  width: 104px;
  height: 104px;
  object-fit: contain;
}

.badge-card strong {
  color: var(--text);
  line-height: 1.35;
}

.badge-card span {
  color: var(--muted);
  font-size: 13px;
}

.badge-card .badge-issued {
  color: var(--text-soft);
  font-size: 12px;
}

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

.evidence-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid rgba(53, 215, 255, 0.16);
  border-radius: 8px;
  background: rgba(12, 21, 24, 0.88);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.18);
}

.evidence-card img {
  width: 100%;
  aspect-ratio: 16 / 12;
  object-fit: cover;
  object-position: center;
  border-bottom: 1px solid rgba(53, 215, 255, 0.16);
}

.evidence-card div {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  padding: 1.15rem;
}

.evidence-card h3 {
  margin: 0;
  color: var(--text);
}

.evidence-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.evidence-card--text {
  grid-template-rows: 1fr;
}

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

.evidence-gallery a {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(53, 215, 255, 0.16);
  border-radius: 6px;
  background: var(--bg);
}

.evidence-gallery img {
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

.evidence-gallery span {
  display: block;
  padding: 0.65rem;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .evidence-card .evidence-gallery {
    grid-template-columns: 1fr;
  }
}

.community-events {
  margin-top: 2rem;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.event-card {
  padding: 1.15rem;
  border: 1px solid rgba(53, 215, 255, 0.16);
  border-radius: 8px;
  background: rgba(12, 21, 24, 0.88);
}

.event-card h3 {
  margin: 0.75rem 0 0;
  color: var(--text);
}

.two-column {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
}

.stack-list {
  display: grid;
  gap: 0.75rem;
}

.list-item {
  padding: 0.95rem 1rem;
  color: var(--text-soft);
  line-height: 1.55;
}

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

.project-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 0.8rem;
  padding: 1.2rem;
}

.project-image {
  width: calc(100% + 2.4rem);
  max-width: none;
  aspect-ratio: 16 / 7;
  display: block;
  object-fit: cover;
  object-position: center;
  margin: -1.2rem -1.2rem 0;
  border-bottom: 1px solid rgba(53, 215, 255, 0.16);
  background: #050708;
}

.project-card-public {
  border-color: rgba(57, 255, 20, 0.28);
  background:
    linear-gradient(180deg, rgba(57, 255, 20, 0.06), transparent 9rem),
    rgba(12, 21, 24, 0.9);
}

.project-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.project-card h3 {
  margin: 0;
  color: var(--text);
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.status-pill {
  border-color: rgba(255, 191, 71, 0.28);
  background: rgba(255, 191, 71, 0.08);
  color: var(--amber);
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.project-tag {
  padding: 0.28rem 0.5rem;
  border: 1px solid rgba(53, 215, 255, 0.16);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.project-links a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.65rem;
  border: 1px solid rgba(53, 215, 255, 0.24);
  border-radius: 8px;
  background: rgba(53, 215, 255, 0.06);
  color: var(--cyan);
  font-weight: 800;
}

.project-links a:hover,
.project-links a:focus-visible {
  border-color: rgba(57, 255, 20, 0.38);
  background: rgba(57, 255, 20, 0.08);
  color: var(--accent);
  text-decoration: none;
}

.video-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 1rem;
}

.video-card {
  overflow: hidden;
  color: var(--text);
  text-decoration: none;
}

.video-card:hover,
.video-card:focus-visible {
  border-color: rgba(57, 255, 20, 0.42);
  background: rgba(57, 255, 20, 0.05);
  text-decoration: none;
}

.video-thumb {
  position: relative;
  overflow: hidden;
  background: #050708;
}

.video-thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 180ms ease, filter 180ms ease;
}

.video-card:hover .video-thumb img,
.video-card:focus-visible .video-thumb img {
  filter: saturate(1.08) contrast(1.06);
  transform: scale(1.035);
}

.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(5, 7, 8, 0.78);
  transform: translate(-50%, -50%);
}

.play-mark svg {
  width: 34px;
  height: 34px;
  fill: #ff3b30;
}

.video-copy {
  display: grid;
  gap: 0.7rem;
  padding: 1.15rem;
}

.video-copy h3,
.video-copy p {
  margin: 0;
}

.video-card-featured .video-copy h3 {
  font-size: 1.35rem;
}

.video-copy p {
  color: var(--text-soft);
  line-height: 1.6;
}

.video-copy small {
  color: var(--muted);
  font-weight: 800;
}

.contact-section {
  padding-bottom: 3rem;
}

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

.contact-card {
  min-height: 108px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem;
  color: var(--text);
  text-decoration: none;
}

.contact-card:hover,
.contact-card:focus-visible {
  border-color: rgba(53, 215, 255, 0.38);
  background: rgba(53, 215, 255, 0.07);
  text-decoration: none;
}

.social-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(53, 215, 255, 0.18);
  border-radius: 8px;
  background: rgba(5, 7, 8, 0.72);
}

.social-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--cyan);
}

.social-copy {
  min-width: 0;
  display: grid;
  gap: 0.22rem;
}

.social-copy strong {
  color: var(--text);
}

.social-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.social-cta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-card:hover .social-icon svg,
.contact-card:focus-visible .social-icon svg,
.contact-card:hover .social-cta,
.contact-card:focus-visible .social-cta {
  color: var(--accent);
  fill: var(--accent);
}

.terminal-section {
  padding-top: 2.5rem;
}

.terminal-details {
  border: 1px solid rgba(53, 215, 255, 0.18);
  border-radius: 8px;
  background: rgba(9, 16, 18, 0.76);
}

.terminal-details summary {
  min-height: 56px;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  color: var(--accent);
  font-weight: 800;
  cursor: pointer;
}

.terminal {
  height: 620px;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 6rem),
    #0a0f11;
  overflow: hidden;
}

.terminal-topbar {
  min-height: 48px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0 1rem;
  border-bottom: 1px solid var(--line);
  background: #0d1517;
}

.window-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.dot {
  width: 0.75rem;
  height: 0.75rem;
  display: inline-block;
  border-radius: 999px;
}

.dot-red {
  background: var(--danger);
}

.dot-amber {
  background: var(--amber);
}

.dot-green {
  background: var(--accent);
}

.terminal-title {
  min-width: 0;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.terminal-status {
  color: var(--accent);
  font-size: 12px;
  white-space: nowrap;
}

.terminal-body {
  position: relative;
  flex: 1;
  padding: 1.1rem;
  overflow-y: auto;
  scrollbar-color: var(--accent) transparent;
  scrollbar-width: thin;
}

.terminal-body:focus {
  outline: none;
}

.terminal-output {
  display: grid;
  gap: 0.8rem;
  padding-bottom: 0.8rem;
}

.entry {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.55;
}

.entry.command {
  color: var(--text);
}

.entry.response {
  color: #cceee2;
}

.entry.response strong,
.entry.response .accent {
  color: var(--accent);
  font-weight: 700;
}

.entry.response .muted {
  color: var(--muted);
}

.entry.response .cyan {
  color: var(--cyan);
}

.entry.response .amber {
  color: var(--amber);
}

.terminal-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin: 0.25rem 0;
}

.terminal-table th,
.terminal-table td {
  padding: 0.45rem 0.55rem;
  border-bottom: 1px solid rgba(127, 147, 143, 0.18);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.terminal-table th {
  color: var(--accent);
  font-weight: 700;
}

.command-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.65rem;
  align-items: center;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(127, 147, 143, 0.12);
}

.prompt {
  color: var(--accent);
  white-space: nowrap;
}

#commandInput {
  width: 100%;
  min-width: 0;
  padding: 0.25rem 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  caret-color: var(--accent);
  font: inherit;
}

#commandInput::selection,
.entry::selection {
  background: var(--accent-soft);
}

.noscript {
  margin: 2rem auto;
  max-width: 720px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
}

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

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.75rem;
  }

  .hero {
    min-height: 78vh;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 42px;
  }

  .fact-strip,
  .skills-grid,
  .cert-grid,
  .credential-grid,
  .badge-grid,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .credential-card,
  .credential-card--featured {
    grid-column: span 1;
  }

  .two-column,
  .projects-grid,
  .video-grid,
  .evidence-grid {
    grid-template-columns: 1fr;
  }
}

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

  .site-header {
    min-height: auto;
    padding: 0.85rem;
  }

  .header-action {
    min-height: 34px;
    padding: 0 0.7rem;
  }

  .site-nav a {
    min-height: 34px;
    padding: 0 0.65rem;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    width: calc(100% - 1.5rem);
    padding: 2.4rem 0 2rem;
  }

  .hero-intro {
    max-width: 100%;
    overflow: hidden;
  }

  .profile-carousel {
    width: 100%;
    padding: 0.5rem;
  }

  .profile-carousel-controls button {
    width: 26px;
    height: 26px;
  }

  .profile-carousel-item {
    flex-basis: 112px;
  }

  .profile-carousel-item img {
    height: 92px;
  }

  h1 {
    font-size: 30px;
  }

  h2 {
    font-size: 26px;
  }

  .hero-role {
    font-size: 17px;
  }

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

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
    min-height: 40px;
  }

  .btn-ghost {
    grid-column: auto;
  }

  .fact-strip,
  .skills-grid,
  .cert-grid,
  .credential-grid,
  .badge-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .fact-strip {
    display: flex;
    overflow-x: auto;
    gap: 0.55rem;
    padding-bottom: 0.35rem;
  }

  .fact {
    flex: 0 0 210px;
    min-height: 82px;
    padding: 0.75rem;
  }

  .fact strong {
    font-size: 15px;
  }

  .fact span {
    font-size: 12px;
  }

  .section {
    padding: 3rem 0.85rem;
  }

  section[id] {
    scroll-margin-top: 180px;
  }

  .terminal {
    height: 560px;
  }

  .terminal-topbar {
    grid-template-columns: auto 1fr;
  }

  .terminal-status {
    display: none;
  }

  .command-line {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .terminal-table {
    display: block;
    overflow-x: auto;
    table-layout: auto;
  }

  .prompt {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
