﻿:root {
  --bg: #07110b;
  --bg-2: #0b1710;
  --bg-soft: #0b1710;
  --panel: rgba(9, 18, 12, 0.96);
  --panel-soft: rgba(12, 24, 16, 0.94);
  --panel-strong: rgba(12, 24, 16, 0.98);
  --line: rgba(107, 89, 69, 0.12);
  --line-strong: rgba(107, 89, 69, 0.22);
  --text: #d8ffe2;
  --muted: #7bb58c;
  --accent: #67ff99;
  --accent-soft: rgba(141, 93, 51, 0.1);
  --accent-2: #d8ffe2;
  --danger: #ff7c70;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  --radius: 16px;
  --max: 1320px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: #050b07;
}

body {
  margin: 0;
  min-height: 100vh;
  height: 100%;
  overflow: hidden;
  font-family: Consolas, "SFMono-Regular", Menlo, Monaco, monospace;
  color: var(--text);
  background:
    radial-gradient(
      circle at top left,
      rgba(141, 93, 51, 0.08),
      transparent 22%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(141, 93, 51, 0.08),
      transparent 18%
    ),
    linear-gradient(180deg, var(--bg) 0%, #050b07 100%);
  background-color: #050b07;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02) 0,
    rgba(255, 255, 255, 0.02) 1px,
    transparent 1px,
    transparent 4px
  );
  opacity: 0.12;
}

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

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
}

.shell {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 12px;
}

.terminal {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 24px);
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background: rgba(5, 12, 8, 0.9);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.terminal::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent 0,
    rgba(116, 255, 159, 0.03) 50%,
    transparent 100%
  );
  mix-blend-mode: screen;
}

.topbar,
.footerbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(141, 93, 51, 0.04);
}

.footerbar {
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.topbar-left,
.topbar-right,
.footerbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.mobile-home-copy {
  display: none;
}

.traffic {
  display: inline-flex;
  gap: 8px;
}

.traffic span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.traffic span:nth-child(1) {
  background: var(--danger);
}

.traffic span:nth-child(2) {
  background: var(--accent-2);
}

.traffic span:nth-child(3) {
  background: var(--accent);
}

.meta,
.status {
  color: var(--muted);
  font-size: 0.78rem;
}

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

.layout {
  padding: 12px;
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 0;
  overflow: auto;
}

.mobile-summary-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(103, 255, 153, 0.12), transparent 24%),
    radial-gradient(circle at 20% 78%, rgba(141, 93, 51, 0.16), transparent 24%),
    radial-gradient(circle at 80% 34%, rgba(103, 255, 153, 0.08), transparent 18%),
    linear-gradient(180deg, var(--bg) 0%, #050b07 100%);
}

.mobile-summary-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 32px;
  padding: 18px 18px 34px;
}

.mobile-summary-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mobile-summary-brand {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: lowercase;
}

.mobile-summary-close {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 13px;
  border: 1px solid rgba(103, 255, 153, 0.14);
  border-radius: 999px;
  background: rgba(103, 255, 153, 0.08);
  color: var(--text);
  font-size: 0.78rem;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.mobile-summary-close:hover,
.mobile-summary-close:focus-visible {
  background: rgba(103, 255, 153, 0.12);
  border-color: rgba(103, 255, 153, 0.22);
  transform: translateY(-1px);
}

.mobile-summary-hero {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 18px;
  text-align: center;
}

.mobile-summary-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(103, 255, 153, 0.14), transparent 26%),
    radial-gradient(circle at center, rgba(141, 93, 51, 0.18), transparent 42%);
  filter: blur(22px);
  pointer-events: none;
}

.mobile-summary-matrix {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  display: grid;
  height: 100%;
  min-height: 100%;
  grid-template-columns: repeat(10, 1fr);
  gap: 4px;
  padding: 0 6px;
  opacity: 1;
  filter: none;
  mask-image: none;
  pointer-events: none;
  background: rgba(4, 11, 7, 0.18);
}

.mobile-summary-matrix.matrix-rain {
  right: 0;
  bottom: 0;
  width: 100%;
}

.mobile-summary-matrix span {
  min-height: 180%;
  color: rgba(103, 255, 153, 1);
  font-size: 1.34rem;
  line-height: 1.02rem;
  text-shadow:
    0 0 14px rgba(103, 255, 153, 0.8),
    0 0 34px rgba(103, 255, 153, 0.48);
  word-break: break-all;
}

.mobile-card-stage,
.mobile-summary-actions,
.mobile-summary-topbar {
  position: relative;
  z-index: 2;
}

.mobile-card-stage {
  position: relative;
  z-index: 1;
  width: min(100%, 320px);
  perspective: 1200px;
  touch-action: auto;
}

.mobile-summary-card {
  position: relative;
  width: min(100%, 292px);
  margin: 0 auto;
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: 18px 20px 22px;
  border: 1px solid rgba(103, 255, 153, 0.12);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(22, 46, 31, 0.98), rgba(9, 18, 12, 0.98));
  box-shadow:
    0 26px 60px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(216, 255, 226, 0.04);
  transform-style: preserve-3d;
  transform-origin: center center;
  will-change: transform;
  transition: transform 0.18s ease-out;
}

.mobile-summary-badge {
  justify-self: center;
  margin-top: -38px;
  padding: 8px 16px;
  border-radius: 14px;
  background: rgba(216, 255, 226, 0.98);
  color: #0b1710;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.14);
}

.mobile-summary-avatar {
  width: 116px;
  height: 116px;
  margin: 2px auto 6px;
  overflow: hidden;
  border-radius: 999px;
  border: 3px solid rgba(103, 255, 153, 0.18);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  transform: translateZ(0);
}

.mobile-summary-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mobile-summary-copy {
  display: grid;
  gap: 3px;
  width: 100%;
  justify-items: start;
  color: rgba(216, 255, 226, 0.74);
  transform: translateZ(0);
}

.mobile-summary-copy span {
  font-size: 0.76rem;
  text-transform: lowercase;
  letter-spacing: 0.05em;
}

.mobile-summary-copy strong {
  color: var(--text);
  font-size: 1.18rem;
  line-height: 1.05;
}

.mobile-summary-socials {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.mobile-summary-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  min-width: 36px;
  padding: 0;
  border: 1px solid rgba(103, 255, 153, 0.14);
  border-radius: 999px;
  background: rgba(9, 18, 12, 0.82);
  color: var(--text);
  font-size: 0.7rem;
  text-transform: lowercase;
  letter-spacing: 0.04em;
}

.mobile-social-link {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}

.mobile-social-link:hover,
.mobile-social-link:focus-visible {
  color: var(--accent);
  background: rgba(103, 255, 153, 0.12);
  border-color: rgba(103, 255, 153, 0.22);
  transform: translateY(-1px);
}

.mobile-summary-socials a svg {
  width: 16px;
  height: 16px;
  display: block;
}

.mobile-summary-code {
  width: 100%;
  text-align: center;
  color: rgba(216, 255, 226, 0.6);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  white-space: nowrap;
  margin-top: 6px;
  transform: translateZ(0);
}

.mobile-summary-shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(
      135deg,
      rgba(216, 255, 226, 0.22),
      rgba(216, 255, 226, 0.04) 28%,
      transparent 48%
    );
  pointer-events: none;
  mix-blend-mode: screen;
}

.mobile-summary-actions {
  display: grid;
  gap: 14px;
  margin-top: auto;
}

.mobile-summary-primary,
.mobile-summary-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  border-radius: 22px;
  font-size: 1rem;
  border: 1px solid transparent;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.mobile-summary-primary {
  background: rgba(216, 255, 226, 0.98);
  color: #07110b;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
}

.mobile-summary-secondary {
  color: var(--text);
  background: rgba(103, 255, 153, 0.05);
  border-color: rgba(103, 255, 153, 0.12);
}

.mobile-summary-primary:hover,
.mobile-summary-primary:focus-visible,
.mobile-summary-secondary:hover,
.mobile-summary-secondary:focus-visible {
  transform: translateY(-1px);
}

.home-page .layout {
  height: 100%;
  grid-template-rows: 1fr;
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 14px;
  align-items: stretch;
}

.home-page .hero {
  height: 100%;
  min-height: 0;
  min-height: calc(100vh - 150px);
}

.hero > .window {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.window {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
  min-width: 0;
}

.window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.window-body {
  padding: 12px;
}

.hero-copy,
.about-pane {
  height: 100%;
  flex: 1;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  width: auto;
  max-width: none;
  padding-right: min(24%, 170px);
}

.matrix-rain {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(22%, 150px);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  padding: 10px 12px 10px 0;
  overflow: hidden;
  pointer-events: none;
  mask-image: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 0, 0, 0.35) 8%,
    rgba(0, 0, 0, 0.92) 22%,
    rgba(0, 0, 0, 0.92) 78%,
    rgba(0, 0, 0, 0.35) 92%,
    transparent 100%
  );
  opacity: 0.48;
}

.matrix-rain span {
  display: block;
  min-height: 165%;
  color: rgba(116, 255, 159, 0.32);
  font-size: 0.7rem;
  line-height: 0.82rem;
  word-break: break-all;
  text-shadow: 0 0 6px rgba(116, 255, 159, 0.12);
  will-change: transform, opacity;
  animation: matrix-fall 10s linear infinite;
}

.matrix-rain span:nth-child(2) {
  animation-duration: 8.5s;
  animation-delay: -1.8s;
}

.matrix-rain span:nth-child(3) {
  animation-duration: 11.2s;
  animation-delay: -4.2s;
}

.matrix-rain span:nth-child(4) {
  animation-duration: 9.4s;
  animation-delay: -2.6s;
}

.matrix-rain span:nth-child(5) {
  animation-duration: 12.4s;
  animation-delay: -5.1s;
}

.matrix-rain span:nth-child(6) {
  animation-duration: 7.8s;
  animation-delay: -3.3s;
}

.hero-copy .eyebrow,
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 0.78rem;
  margin-bottom: 8px;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
  max-width: 10ch;
}

.hero-copy p {
  margin: 8px 0 0;
  max-width: 58ch;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.56;
  text-wrap: pretty;
}

.hero-compact {
  display: grid;
  gap: 8px;
}

.hero-actions {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.btn {
  color: #05210f;
  background: var(--accent);
}

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

.btn:hover,
.ghost-btn:hover,
.btn:focus-visible,
.ghost-btn:focus-visible {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.about-pane {
  display: grid;
  gap: 12px;
  grid-template-rows: auto 1fr;
}

.about-top {
  display: grid;
  grid-template-columns: 108px minmax(0, 1.2fr);
  gap: 12px;
  align-items: center;
  min-height: 152px;
}

.portrait {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  aspect-ratio: 1 / 1;
  background: linear-gradient(
    180deg,
    rgba(116, 255, 159, 0.18),
    rgba(0, 0, 0, 0.1)
  );
}

.portrait::after {
  content: "me";
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(3, 16, 8, 0.82);
  color: var(--accent);
  font-size: 0.7rem;
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-copy h2,
.section-head h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
}

.about-copy p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.52;
  max-width: 42ch;
  text-wrap: pretty;
}

.stack-groups {
  display: grid;
  gap: 8px;
  align-content: start;
}

.stack-group {
  display: grid;
  gap: 4px;
  padding: 7px 10px;
  min-height: 74px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(116, 255, 159, 0.03);
}

.stack-label {
  color: var(--accent);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.about-pane .stack {
  width: 100%;
  gap: 6px;
}

.about-pane .chip {
  font-size: 0.7rem;
}

.icon-stack {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 8px;
}

.icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex: 1 1 0;
  min-width: 0;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(116, 255, 159, 0.04);
  color: var(--text);
  font-size: 0.76rem;
}

.icon-chip i {
  font-size: 1rem;
  line-height: 1;
}

.icon-chip span {
  line-height: 1;
  white-space: nowrap;
}

.text-stack {
  gap: 6px;
}

.text-chip {
  justify-content: center;
  min-height: 40px;
  padding: 6px 8px;
}

.text-chip span {
  white-space: normal;
  text-align: center;
  line-height: 1.15;
  overflow: hidden;
}

.about-pane .stack:not(.icon-stack) {
  justify-content: space-between;
}

.projects-shell {
  display: grid;
  gap: 14px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.section-head p {
  margin: 4px 0 0;
  max-width: 42ch;
  color: var(--muted);
  font-size: 0.84rem;
}

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

.project-panel {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(
    180deg,
    rgba(8, 26, 15, 0.86),
    rgba(4, 13, 8, 0.96)
  );
}

.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.project-index,
.project-type {
  color: var(--accent);
  font-size: 0.72rem;
}

.project-panel h3 {
  margin: 0;
  font-size: 0.94rem;
}

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

.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(116, 255, 159, 0.04);
  color: var(--text);
  font-size: 0.74rem;
}

.project-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: nowrap;
}

.project-access-note {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.icon-link-btn {
  width: 38px;
  min-width: 38px;
  height: 30px;
  min-height: 30px;
  padding: 0;
}

.icon-link-btn svg {
  width: 17px;
  height: 17px;
  display: block;
}

.icon-link-btn-locked {
  color: var(--muted);
  border-color: var(--line);
  background: rgba(116, 255, 159, 0.03);
  cursor: default;
}

.locked-icon {
  position: relative;
  width: 17px;
  height: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.locked-icon-base {
  width: 17px;
  height: 17px;
}

.locked-icon-badge {
  position: absolute;
  right: -4px;
  bottom: -3px;
  width: 9px;
  height: 9px;
  padding: 1px;
  border-radius: 999px;
  background: rgba(4, 14, 8, 0.92);
}

.project-strip {
  display: grid;
  gap: 8px;
}

.project-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
}

.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.three-up img {
  aspect-ratio: 16 / 8;
}

.single-shot img {
  aspect-ratio: 16 / 7;
}
.contact-body {
  display: grid;
  gap: 10px;
}

.contact-head h2 {
  margin: 0;
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
}

.contact-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.contact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(116, 255, 159, 0.03);
  font-size: 0.84rem;
}

.contact-item span:first-child {
  color: var(--muted);
}

.contact-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 30;
}

.contact-modal.is-open {
  display: flex;
}

.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 4, 0.78);
  backdrop-filter: blur(6px);
}

.contact-modal-panel {
  position: relative;
  width: min(760px, 100%);
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(10, 24, 15, 0.98), rgba(4, 14, 8, 0.99)),
    var(--panel);
  box-shadow: var(--shadow);
}

.modal-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(116, 255, 159, 0.04);
  color: var(--text);
  cursor: pointer;
}

.projects-page .layout {
  padding: 10px;
  gap: 8px;
  height: 100%;
  grid-template-rows: 1fr;
  overflow: hidden;
}

.projects-dashboard {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 8px;
  min-height: 0;
}

.projects-page .window-body {
  padding: 8px;
}

.projects-page .projects-shell {
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.projects-page .projects-shell .window-body {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 0;
  gap: 8px;
}

.window-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid rgba(103, 255, 153, 0.26);
  border-radius: 999px;
  background: rgba(103, 255, 153, 0.1);
  color: var(--accent);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.window-back-link:hover,
.window-back-link:focus-visible {
  border-color: rgba(103, 255, 153, 0.4);
  background: rgba(103, 255, 153, 0.16);
  color: var(--text);
  transform: translateY(-1px);
}


.projects-page .section-head {
  gap: 8px;
}

.projects-page .section-label {
  margin-bottom: 6px;
}

.projects-page .section-head h2 {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
}

.projects-page .section-head p {
  max-width: 32ch;
  font-size: 0.74rem;
}

.projects-page .project-list {
  gap: 8px;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
  align-content: start;
}

.project-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 32px;
}

.pager-btn {
  min-width: 34px;
  height: 26px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(116, 255, 159, 0.03);
  color: var(--muted);
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.pager-btn:hover,
.pager-btn:focus-visible {
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-1px);
}

.pager-btn.is-active {
  color: #05210f;
  border-color: rgba(116, 255, 159, 0.24);
  background: var(--accent);
}

.projects-page .project-panel {
  gap: 6px;
  padding: 10px;
  min-height: 290px;
  grid-template-rows: auto auto auto 1fr auto;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(10, 28, 16, 0.96), rgba(4, 14, 8, 0.98)),
    var(--panel);
  box-shadow: inset 0 1px 0 rgba(116, 255, 159, 0.05);
  align-content: start;
}

.project-headline {
  display: grid;
  gap: 6px;
}

.project-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.68rem;
  text-transform: lowercase;
  letter-spacing: 0.04em;
}

.project-badge-live {
  color: var(--accent);
  border-color: rgba(116, 255, 159, 0.26);
  background: rgba(116, 255, 159, 0.08);
}

.project-badge-update {
  color: #9fe9ff;
  border-color: rgba(159, 233, 255, 0.24);
  background: rgba(159, 233, 255, 0.08);
}

.projects-page .project-top {
  margin-bottom: 0;
}

.projects-page .project-panel h3 {
  font-size: 0.96rem;
}

.projects-page .project-panel p {
  font-size: 0.75rem;
  max-width: none;
  text-wrap: pretty;
}

.projects-page .stack {
  gap: 7px;
}

.projects-page .chip {
  padding: 5px 7px;
  font-size: 0.7rem;
}

.stack-icons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.stack-icons .chip {
  flex: 0 0 auto;
  background: rgba(116, 255, 159, 0.03);
  border-color: rgba(120, 255, 173, 0.1);
}

.icon-only-chip {
  position: relative;
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.icon-only-chip i {
  font-size: 1rem;
  line-height: 1;
}

.icon-only-chip::after {
  content: attr(data-stack-name);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(4px);
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(4, 14, 8, 0.96);
  color: var(--text);
  font-size: 0.68rem;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.icon-only-chip:hover::after,
.icon-only-chip:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.project-preview-grid {
  display: grid;
  gap: 6px;
  align-content: stretch;
  min-height: 100%;
}

.project-preview-main {
  width: 100%;
  height: 210px;
  min-height: 210px;
  max-height: 210px;
  overflow: hidden;
  border-radius: 10px;
}

.project-preview-main img,
.project-preview-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(116, 255, 159, 0.12);
  background: rgba(0, 0, 0, 0.2);
}

.project-rotating-image {
  transition: opacity 0.32s ease;
}

.project-rotating-image.is-fading {
  opacity: 0.4;
}

.project-preview-main img {
  aspect-ratio: 16 / 9;
}

.projects-page .ghost-btn {
  margin-top: auto;
}

.projects-page .three-up img {
  aspect-ratio: 16 / 7;
}

.projects-page .single-shot img {
  aspect-ratio: 16 / 6;
}

@keyframes matrix-fall {
  0% {
    transform: translateY(-58%);
    opacity: 0;
  }

  12% {
    opacity: 0.32;
  }

  50% {
    opacity: 0.42;
  }

  88% {
    opacity: 0.22;
  }

  100% {
    transform: translateY(18%);
    opacity: 0;
  }
}

@media (max-width: 1100px) {
  .hero,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 780px) {
  body {
    min-height: 100dvh;
    height: auto;
    overflow: auto;
    overscroll-behavior-y: none;
  }

  .shell {
    padding: 8px;
  }

  .layout {
    padding: 8px;
    overflow: visible;
  }

  .window-body,
  .project-panel {
    padding: 12px;
  }

  .topbar,
  .footerbar {
    padding: 10px 12px;
  }

  .topbar {
    align-items: center;
    flex-wrap: nowrap;
    gap: 2px;
  }

  .topbar-left,
  .topbar-right {
    width: auto;
    gap: 4px;
    flex-wrap: nowrap;
  }

  .home-page .topbar-left {
    width: auto;
    flex: 0 1 auto;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    min-width: 0;
  }

  .home-page .mobile-home-copy {
    display: block;
    min-width: 0;
  }

  .meta,
  .status {
    font-size: 0.72rem;
  }

  .home-page .mobile-home-copy .meta {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .home-page .home-desktop-status {
    display: none;
  }

  .home-page .topbar-right {
    width: auto;
    flex: 0 0 auto;
    justify-content: flex-end;
    margin-left: 0;
  }

  .hero-copy h1 {
    font-size: clamp(1.7rem, 12vw, 2.4rem);
    max-width: none;
  }

  .hero-content {
    width: 100%;
    padding-right: 0;
  }

  .matrix-rain {
    width: 28%;
    opacity: 0.18;
  }

  .about-top,
  .three-up,
  .contact-list {
    grid-template-columns: 1fr;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .home-page .hero {
    gap: 10px;
  }

  .home-page .layout,
  .projects-page .layout {
    height: auto;
    overflow: visible;
  }

  .home-page .hero {
    min-height: 0;
    height: auto;
  }

  .hero > .window,
  .projects-shell {
    min-height: 0;
  }

  .hero-copy,
  .about-pane {
    height: auto;
  }

  .hero-copy .window-bar,
  .about-pane .window-bar {
    font-size: 0.68rem;
  }

  .hero-copy .eyebrow,
  .section-label {
    font-size: 0.72rem;
    margin-bottom: 6px;
  }

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

  .hero-actions .btn,
  .hero-actions .ghost-btn {
    width: 100%;
  }

  .about-top {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
  }

  .portrait {
    max-width: 92px;
  }

  .stack-groups {
    gap: 8px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .stack-group {
    min-height: 0;
    padding: 8px 0 10px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    gap: 6px;
  }

  .stack-label {
    font-size: 0.64rem;
  }

  .icon-stack {
    flex-wrap: nowrap;
    overflow: visible;
    padding-bottom: 0;
    scrollbar-width: none;
    gap: 6px;
  }

  .icon-chip,
  .text-chip {
    flex: 0 0 auto;
    min-width: max-content;
    min-height: 0;
    padding: 0;
    font-size: 0.72rem;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .icon-stack::-webkit-scrollbar {
    display: none;
  }

  .about-copy {
    display: grid;
    align-content: center;
    gap: 4px;
  }

  .about-copy h2 {
    font-size: 1.18rem;
    line-height: 1;
  }

  .about-copy p {
    max-width: none;
    font-size: 0.76rem;
    line-height: 1.4;
    margin: 0;
  }

  .icon-chip i {
    font-size: 0.96rem;
  }

  .icon-chip span,
  .text-chip span {
    font-size: 0.72rem;
  }

  .projects-dashboard {
    gap: 10px;
  }

  .projects-shell .window-bar {
    align-items: center;
  }

  .projects-page .projects-shell .window-body {
    gap: 10px;
  }

  .project-preview-side {
    grid-template-columns: 1fr;
  }

  .project-list {
    grid-template-columns: 1fr;
  }

  .projects-page .project-list {
    overflow: visible;
    padding-right: 0;
  }

  .projects-page .project-panel {
    min-height: 0;
    padding: 13px;
    border-radius: 20px;
  }

  .projects-page .project-panel h3 {
    font-size: 1rem;
  }

  .projects-page .project-panel p {
    font-size: 0.78rem;
    line-height: 1.45;
  }

  .project-preview-main {
    height: 180px;
    min-height: 180px;
    max-height: 180px;
    border-radius: 14px;
  }

  .project-actions {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .project-access-note {
    width: 100%;
  }

  .project-pagination {
    min-height: 28px;
    padding-bottom: 2px;
  }

  .window-back-link {
    min-height: 28px;
    padding: 0 10px;
    font-size: 0.72rem;
  }

  .hero-actions {
    margin-top: 10px;
    padding-top: 0;
  }

  .contact-modal {
    padding: 12px;
  }

  .contact-modal-panel {
    width: 100%;
  }

  .contact-item {
    padding: 9px 10px;
    font-size: 0.8rem;
  }
}
