:root {
  --stitch-display: "Space Grotesk", "Orbitron", "Segoe UI", sans-serif;
  --stitch-body: "Plus Jakarta Sans", "Rajdhani", "Segoe UI", sans-serif;
  --stitch-line: var(--border-base);
  --stitch-line-strong: var(--border-strong);
  --stitch-glass: linear-gradient(140deg, rgba(var(--surface-panel-rgb), 0.54), rgba(var(--surface-bg-deep-rgb), 0.86));
  --stitch-glass-soft: linear-gradient(145deg, rgba(var(--surface-panel-rgb), 0.4), rgba(var(--surface-bg-void-rgb), 0.78));
}

.stitch-skin {
  font-family: var(--stitch-body);
}

.stitch-chip {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--stitch-line);
  border-radius: 999px;
  padding: 0.28rem 0.75rem;
  color: var(--accent-cyan);
  font-family: var(--stitch-display);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: rgba(var(--surface-bg-base-rgb), 0.62);
}

.stitch-chip::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 0.7rem rgba(var(--accent-primary-rgb), 0.65);
}

.page-home-stitch {
  overflow-x: clip;
}

.page-home-stitch .grid-overlay {
  mask-image: none;
}

.stitch-home {
  min-height: 100dvh;
  width: min(96vw, 80rem);
  margin-inline: auto;
  padding: clamp(1.05rem, 4vw, 2.5rem) clamp(0.7rem, 2.6vw, 1.6rem);
  display: grid;
  grid-template-areas:
    "hero"
    "hub"
    "command";
  justify-items: center;
  align-content: center;
  gap: clamp(1.05rem, 2.8vh, 1.9rem);
}

.stitch-home__hero {
  grid-area: hero;
  justify-self: stretch;
  text-align: left;
  display: grid;
  align-content: start;
  gap: 0.72rem;
  width: min(100%, 36rem);
  max-width: 36rem;
  padding: clamp(0.95rem, 2.3vw, 1.35rem);
  border: 1px solid rgba(var(--accent-primary-rgb), 0.24);
  border-radius: 0.92rem;
  background:
    linear-gradient(150deg, rgba(var(--surface-panel-rgb), 0.28), rgba(var(--surface-bg-void-rgb), 0.84)),
    rgba(var(--surface-bg-void-rgb), 0.74);
  box-shadow:
    inset 0 0 1rem rgba(var(--accent-primary-rgb), 0.08),
    0 0 1.35rem rgba(var(--accent-primary-rgb), 0.14);
}

.stitch-home__hero .stitch-chip {
  justify-self: start;
}

.stitch-home__hero h1 {
  margin: 0;
  font-family: var(--stitch-display);
  font-size: clamp(1.9rem, 7vw, 4.2rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 0 1.4rem rgba(var(--accent-primary-rgb), 0.38);
}

.stitch-home__hero p {
  margin: 0;
  max-width: 34rem;
  color: var(--text-secondary);
  font-size: clamp(0.96rem, 2.2vw, 1.12rem);
}

.stitch-home__hub {
  grid-area: hub;
  justify-self: center;
  width: min(94vw, 31.5rem);
  aspect-ratio: 1;
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.stitch-home__orbit {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 0;
}

.stitch-home__ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.stitch-home__ring--outer {
  inset: 4%;
  z-index: 7;
  border: 0;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(var(--accent-secondary-rgb), 0.84) 0 8deg,
    transparent 8deg 22deg
  );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 0.26rem), #000 calc(100% - 0.24rem));
  mask: radial-gradient(farthest-side, transparent calc(100% - 0.28rem), #000 calc(100% - 0.26rem));
  box-shadow: 0 0 1.4rem rgba(var(--accent-primary-rgb), 0.34);
  animation: stitch-spin 46s linear infinite;
  opacity: 0.96;
}

.stitch-home__ring--inner {
  inset: 13%;
  z-index: 2;
  border: 1px solid rgba(var(--accent-secondary-rgb), 0.56);
  box-shadow: inset 0 0 1rem rgba(var(--accent-primary-rgb), 0.24);
  animation: stitch-spin-reverse 30s linear infinite;
}

.stitch-home__axis {
  position: absolute;
  border-radius: 999px;
  opacity: 0.32;
  z-index: 1;
}

.stitch-home__axis--x {
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-secondary-rgb), 0.8), transparent);
}

.stitch-home__axis--y {
  width: 1px;
  height: 80%;
  background: linear-gradient(180deg, transparent, rgba(var(--accent-secondary-rgb), 0.8), transparent);
}

.stitch-home__david-core {
  --hud-origin-x: 50%;
  --hud-origin-y: 50%;
  --hud-core-size: clamp(7rem, 18vw, 8.6rem);
  position: relative;
  width: clamp(13.5rem, 33vw, 17rem);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 0 1.45rem rgba(var(--accent-primary-rgb), 0.34));
  z-index: 5;
}

.stitch-home__david-core .hud-core {
  cursor: default;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(1.12);
}

.stitch-home__david-core .hud-core__label {
  font-size: clamp(0.68rem, 1.9vw, 0.82rem);
  letter-spacing: 0.2em;
}

.stitch-home__david-core .hud-ring--outer {
  opacity: 0.84;
}

.stitch-home__david-core .hud-ring--inner {
  opacity: 0.76;
}

.stitch-home__david-core .hud-ring--pulse {
  opacity: 0.66;
}

.stitch-home__david-tag {
  position: absolute;
  left: 50%;
  bottom: 0.7rem;
  transform: translateX(-50%);
  border: 1px solid rgba(var(--accent-primary-rgb), 0.4);
  border-radius: 999px;
  padding: 0.22rem 0.56rem;
  color: var(--text-primary);
  background: rgba(var(--surface-bg-deep-rgb), 0.7);
  font-family: var(--stitch-display);
  font-size: 0.53rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.stitch-node {
  --node-transform: translate(0, 0);
  position: absolute;
  z-index: 3;
  width: clamp(7.1rem, 20vw, 9.2rem);
  min-height: clamp(4.2rem, 13vw, 5.2rem);
  border-radius: 1rem;
  border: 1px solid var(--stitch-line);
  background: var(--stitch-glass);
  box-shadow: 0 0 1rem rgba(var(--accent-primary-rgb), 0.22);
  backdrop-filter: blur(0.32rem);
  display: grid;
  align-content: center;
  gap: 0.28rem;
  justify-items: center;
  text-align: center;
  color: var(--text-primary);
  padding: 0.58rem 0.68rem;
  transform: var(--node-transform);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.stitch-node__title {
  font-family: var(--stitch-display);
  font-size: clamp(0.74rem, 2vw, 0.86rem);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.stitch-node__meta {
  color: var(--text-secondary);
  font-family: var(--stitch-display);
  font-size: 0.55rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.stitch-node:is(:hover, :focus-visible) {
  transform: var(--node-transform) translateY(-0.1rem) scale(1.03);
  border-color: var(--stitch-line-strong);
  box-shadow: 0 0 1.35rem rgba(var(--accent-primary-rgb), 0.4);
}

.stitch-node.is-current {
  border-color: rgba(var(--accent-secondary-rgb), 0.92);
  box-shadow: 0 0 1.2rem rgba(var(--accent-primary-rgb), 0.5);
}

.stitch-node--top {
  top: 7%;
  left: 50%;
  --node-transform: translate(-50%, -50%);
}

.stitch-node--right {
  top: 50%;
  right: 6%;
  --node-transform: translate(50%, -50%);
}

.stitch-node--bottom {
  bottom: 7%;
  left: 50%;
  --node-transform: translate(-50%, 50%);
}

.stitch-node--left {
  top: 50%;
  left: 6%;
  --node-transform: translate(-50%, -50%);
}

.stitch-home__command {
  grid-area: command;
  justify-self: stretch;
  width: min(100%, 36rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.58rem;
}

.stitch-home__command a {
  border: 1px solid rgba(var(--accent-primary-rgb), 0.34);
  border-radius: 999px;
  background: var(--stitch-glass-soft);
  color: var(--text-primary);
  font-family: var(--stitch-display);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.42rem 0.82rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.stitch-home__command a:is(:hover, :focus-visible) {
  border-color: rgba(var(--accent-secondary-rgb), 0.88);
  box-shadow: 0 0 1rem rgba(var(--accent-primary-rgb), 0.36);
  transform: translateY(-0.06rem);
}

.stitch-home__command a[aria-current="page"] {
  border-color: rgba(var(--accent-secondary-rgb), 0.94);
  box-shadow: inset 0 0 0.7rem rgba(var(--accent-primary-rgb), 0.22);
}

.stitch-about,
.stitch-contact {
  gap: 1rem;
}

.page-about .site-shell,
.page-contact .site-shell {
  padding-top: clamp(0.5rem, 1.8vw, 0.95rem);
  gap: 0.75rem;
}

.page-about .site-header--spacer,
.page-contact .site-header--spacer {
  min-height: clamp(1.4rem, 4vw, 2.2rem);
}

.page-about .page-main,
.page-contact .page-main {
  gap: 0.78rem;
}

.page-about .stitch-about,
.page-contact .stitch-contact {
  gap: 0.78rem;
}

.page-about .stitch-about__grid,
.page-contact .stitch-contact__layout {
  gap: 0.72rem;
}

.page-about .stitch-skill-grid {
  gap: 0.5rem;
}

.page-about .hud-frame::before,
.page-about .hud-frame::after,
.page-contact .hud-frame::before,
.page-contact .hud-frame::after {
  opacity: 0.48;
}

.page-about .stitch-about__hero,
.page-contact .stitch-contact__hero,
.page-about .stitch-about__profile,
.page-about .stitch-about__log,
.page-about .stitch-about__skills,
.page-about .stitch-skill-card,
.page-contact .stitch-contact__status,
.page-contact .stitch-contact__form-shell,
.page-contact .stitch-contact__form {
  border-color: rgba(var(--accent-primary-rgb), 0.2);
  box-shadow: inset 0 0 0.6rem rgba(var(--accent-primary-rgb), 0.06);
}

.page-about .stitch-chip,
.page-contact .stitch-chip {
  opacity: 0.82;
}

.stitch-about__hero,
.stitch-contact__hero {
  padding: clamp(1rem, 2.8vw, 1.7rem);
  display: grid;
  gap: 0.62rem;
}

.stitch-about__hero h1,
.stitch-contact__hero h1 {
  margin: 0;
  font-family: var(--stitch-display);
  font-size: clamp(1.5rem, 4.8vw, 2.35rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stitch-about__hero p,
.stitch-contact__hero p {
  margin: 0;
  color: var(--text-secondary);
}

.stitch-about__grid {
  display: grid;
  gap: 0.9rem;
}

.stitch-about__profile,
.stitch-about__log {
  padding: clamp(0.95rem, 2.4vw, 1.35rem);
  display: grid;
  gap: 0.72rem;
}

.stitch-about__avatar {
  width: clamp(9rem, 36vw, 13rem);
  aspect-ratio: 1;
  border-radius: 50%;
  margin-inline: auto;
  border: 1px solid rgba(var(--accent-secondary-rgb), 0.58);
  background:
    radial-gradient(circle at 35% 26%, rgba(var(--accent-secondary-rgb), 0.44), rgba(var(--surface-panel-rgb), 0.82) 58%, rgba(var(--surface-bg-deep-rgb), 0.98)),
    linear-gradient(155deg, rgba(var(--surface-panel-rgb), 0.35), rgba(var(--surface-bg-deep-rgb), 0.92));
  box-shadow:
    inset 0 0 1rem rgba(var(--accent-primary-rgb), 0.26),
    0 0 1.3rem rgba(var(--accent-primary-rgb), 0.28);
}

.stitch-about__name {
  margin: 0;
  text-align: center;
  color: var(--text-primary);
  font-family: var(--stitch-display);
  font-size: 0.82rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.stitch-about__role,
.stitch-about__summary {
  margin: 0;
  text-align: center;
  color: var(--text-secondary);
}

.stitch-about__log h2,
.stitch-about__skills h2,
.stitch-contact__status h2,
.stitch-contact__form-head h2 {
  margin: 0;
  color: var(--text-primary);
  font-family: var(--stitch-display);
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.stitch-log {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.68rem;
}

.stitch-log li {
  border: 1px solid rgba(var(--accent-primary-rgb), 0.2);
  border-radius: 0.7rem;
  background: rgba(var(--surface-bg-deep-rgb), 0.68);
  padding: 0.64rem 0.68rem;
  display: grid;
  gap: 0.25rem;
}

.stitch-log span {
  color: var(--accent-cyan);
  font-family: var(--stitch-display);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
}

.stitch-log p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.4;
}

.stitch-about__skills {
  border: 1px solid rgba(var(--accent-primary-rgb), 0.26);
  border-radius: var(--radius-md);
  background: rgba(var(--surface-bg-deep-rgb), 0.62);
  padding: clamp(0.95rem, 2.2vw, 1.35rem);
  display: grid;
  gap: 0.72rem;
}

.stitch-skill-grid {
  display: grid;
  gap: 0.6rem;
}

.stitch-skill-card {
  border: 1px solid rgba(var(--accent-primary-rgb), 0.24);
  border-radius: var(--radius-sm);
  background: rgba(var(--surface-bg-deep-rgb), 0.74);
  padding: 0.72rem 0.76rem;
  display: grid;
  gap: 0.32rem;
}

.stitch-skill-card h3 {
  margin: 0;
  color: var(--text-primary);
  font-family: var(--stitch-display);
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stitch-skill-card p {
  margin: 0;
  color: var(--text-secondary);
}

.stitch-contact__layout {
  display: grid;
  gap: 0.9rem;
}

.stitch-contact__status,
.stitch-contact__form-shell {
  padding: clamp(0.95rem, 2.3vw, 1.4rem);
  display: grid;
  gap: 0.76rem;
}

.stitch-contact__status p {
  margin: 0;
  color: var(--text-secondary);
}

.stitch-contact__metrics {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.42rem;
}

.stitch-contact__metrics li {
  display: flex;
  justify-content: space-between;
  gap: 0.72rem;
  border-bottom: 1px solid rgba(var(--accent-primary-rgb), 0.18);
  padding-bottom: 0.32rem;
}

.stitch-contact__metrics span {
  color: var(--text-secondary);
  font-family: var(--stitch-display);
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.stitch-contact__metrics strong {
  color: var(--text-primary);
  font-family: var(--stitch-display);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.stitch-contact__channels {
  display: grid;
  gap: 0.4rem;
}

.stitch-contact__channels .text-link {
  font-family: var(--stitch-display);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stitch-contact__form-head {
  display: grid;
  gap: 0.52rem;
}

.stitch-contact__form {
  padding: clamp(0.78rem, 1.7vw, 1rem);
  border: 1px solid rgba(var(--accent-primary-rgb), 0.24);
  border-radius: 0.85rem;
  background: rgba(var(--surface-bg-deep-rgb), 0.72);
}

.stitch-contact__form .form-grid label {
  color: var(--text-primary);
  font-family: var(--stitch-display);
  font-size: 0.58rem;
  letter-spacing: 0.15em;
}

.stitch-contact__form .form-note {
  color: var(--text-secondary);
}

.page-projects .gallery-hud__telemetry {
  margin-top: 0.62rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.45rem;
}

.page-projects .gallery-hud__telemetry span {
  border: 1px solid rgba(var(--accent-primary-rgb), 0.36);
  border-radius: 999px;
  padding: 0.2rem 0.48rem;
  color: var(--text-primary);
  background: rgba(var(--surface-bg-base-rgb), 0.45);
  font-family: var(--stitch-display);
  font-size: 0.53rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page-projects .projects-gallery-page::before {
  background:
    linear-gradient(180deg, rgba(var(--surface-bg-void-rgb), 0.26), rgba(var(--surface-bg-void-rgb), 0.8) 46%, rgba(var(--surface-bg-void-rgb), 0.95)),
    radial-gradient(46rem 20rem at 50% -12%, rgba(var(--accent-primary-rgb), 0.13), rgba(var(--surface-bg-deep-rgb), 0) 72%);
}

.page-projects .projects-gallery-page::after {
  background:
    radial-gradient(34rem 14rem at 50% 102%, rgba(var(--accent-primary-rgb), 0.1), rgba(var(--surface-bg-void-rgb), 0) 74%);
  opacity: 0.44;
}

.page-projects .gallery-hud {
  padding: clamp(0.68rem, 2vh, 0.98rem) clamp(0.56rem, 1.5vw, 0.8rem);
  border: 1px solid rgba(var(--accent-primary-rgb), 0.18);
  border-radius: 0.85rem;
  background: linear-gradient(130deg, rgba(var(--surface-bg-edge-rgb), 0.22), rgba(var(--surface-bg-void-rgb), 0.5));
  box-shadow: inset 0 0 0.95rem rgba(var(--accent-primary-rgb), 0.08);
}

.page-projects .gallery-hud h1 {
  color: var(--text-primary);
  text-shadow: 0 0 1rem rgba(var(--accent-primary-rgb), 0.35);
}

.page-projects .gallery-hud p {
  color: var(--text-secondary);
}

.page-projects .gallery-status {
  padding: 0.36rem 0.6rem;
  border: 1px solid rgba(var(--accent-primary-rgb), 0.18);
  border-radius: 0.72rem;
  background: rgba(var(--surface-bg-deep-rgb), 0.44);
}

.page-projects .capsule-chamber {
  border-radius: 1rem;
  border: 1px solid rgba(var(--accent-primary-rgb), 0.14);
  background:
    radial-gradient(ellipse at 50% 80%, rgba(var(--accent-primary-rgb), 0.1), rgba(var(--surface-bg-void-rgb), 0) 70%),
    linear-gradient(180deg, rgba(var(--surface-bg-deep-rgb), 0.28), rgba(var(--surface-bg-void-rgb), 0.58));
}

.page-projects .capsule-slot {
  width: clamp(18.1rem, 40vw, 20.8rem);
}

.page-projects .capsule-slot.is-active {
  width: clamp(19.8rem, 45vw, 23.5rem);
}

.page-projects .capsule-slot__frame {
  padding: clamp(0.52rem, 1.4vw, 0.74rem) 0.52rem 0.56rem;
}

.page-projects .capsule-core {
  margin: 0;
  min-height: clamp(23.2rem, 52vh, 29.6rem);
  border: 1px solid rgba(var(--accent-secondary-rgb), 0.58);
  border-radius: 0;
  clip-path: polygon(5% 0, 95% 0, 100% 5%, 100% 95%, 95% 100%, 5% 100%, 0 95%, 0 5%);
  background:
    linear-gradient(160deg, rgba(var(--surface-panel-rgb), 0.48), rgba(var(--surface-bg-deep-rgb), 0.9) 58%),
    repeating-linear-gradient(0deg, rgba(var(--accent-primary-rgb), 0.06) 0 1px, transparent 1px 1.35rem),
    repeating-linear-gradient(90deg, rgba(var(--accent-primary-rgb), 0.05) 0 1px, transparent 1px 1.35rem),
    rgba(var(--surface-bg-void-rgb), 0.92);
  box-shadow:
    inset 0 0 0 1px rgba(var(--text-primary-rgb), 0.08),
    0 0 1.05rem rgba(var(--accent-primary-rgb), 0.22);
  padding: 1.02rem 0.9rem 0.92rem;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto auto;
  gap: 0.46rem;
}

.page-projects .gallery-nav__btn {
  border-color: rgba(var(--accent-secondary-rgb), 0.58);
  background: linear-gradient(180deg, rgba(var(--surface-panel-rgb), 0.58), rgba(var(--surface-bg-deep-rgb), 0.9));
  box-shadow: 0 0 0.95rem rgba(var(--accent-primary-rgb), 0.34);
}

.page-projects .gallery-nav__btn:is(:hover, :focus-visible) {
  box-shadow: 0 0 1.2rem rgba(var(--accent-primary-rgb), 0.52);
}

.page-projects .scene-wall,
.page-projects .capsule-orbit-shell__beam,
.page-projects .capsule-base,
.page-projects .scene-floor-ring {
  display: none;
}

.page-projects .scene-floor-grid {
  opacity: 0.24;
  mask-image: radial-gradient(ellipse at 50% 62%, black 26%, transparent 86%);
}

.page-projects .scene-environment::before,
.page-projects .scene-ceiling-light,
.page-projects .capsule-orbit-shell::before {
  display: none;
}

.page-projects .scene-environment::after {
  opacity: 0.18;
}

.page-projects .capsule-orbit-shell::after {
  opacity: 0.22;
  filter: blur(0.25rem);
}

.page-projects .capsule-orbit-shell__halo {
  opacity: 0.3;
  filter: blur(0.78rem);
  animation-duration: 16s;
}

.page-projects .capsule-core::before {
  inset: 0.44rem;
  border-color: rgba(var(--accent-secondary-rgb), 0.22);
  border-radius: 0;
  clip-path: polygon(5% 0, 95% 0, 100% 5%, 100% 95%, 95% 100%, 5% 100%, 0 95%, 0 5%);
}

.page-projects .capsule-core::after {
  content: "";
  position: absolute;
  top: 0.8rem;
  right: 0.45rem;
  width: 0.48rem;
  height: 3.5rem;
  border-radius: 0.2rem;
  background: repeating-linear-gradient(
    180deg,
    rgba(var(--text-primary-rgb), 0.84) 0 0.32rem,
    transparent 0.32rem 0.54rem
  );
  opacity: 0.76;
  pointer-events: none;
}

.page-projects .capsule-core__code {
  border-color: rgba(var(--accent-primary-rgb), 0.24);
  min-height: 2.35rem;
  border-radius: 0.44rem;
  background:
    linear-gradient(120deg, rgba(var(--accent-primary-rgb), 0.08), rgba(var(--surface-bg-base-rgb), 0.52), rgba(var(--accent-primary-rgb), 0.08)),
    rgba(var(--surface-bg-deep-rgb), 0.62);
  text-shadow: 0 0 0.5rem rgba(var(--accent-primary-rgb), 0.45);
}

.page-projects .capsule-core__title {
  margin-top: 0.08rem;
  letter-spacing: 0.07em;
}

.page-projects .capsule-core__summary {
  -webkit-line-clamp: 5;
  color: var(--text-primary);
}

.page-projects .capsule-core__stack {
  color: var(--text-secondary);
}

.page-projects .capsule-core__action {
  border-color: rgba(var(--accent-secondary-rgb), 0.65);
  background: linear-gradient(130deg, rgba(var(--surface-panel-rgb), 0.5), rgba(var(--surface-bg-deep-rgb), 0.84));
  box-shadow: 0 0 0.7rem rgba(var(--accent-primary-rgb), 0.3);
}

.page-projects .capsule-slot.is-active .capsule-core {
  border-color: var(--state-selected-border);
  box-shadow:
    inset 0 0 0 1px rgba(var(--text-primary-rgb), 0.14),
    0 0 1.35rem rgba(var(--accent-primary-rgb), 0.44);
}

.page-projects .capsule-slot:not(.is-active) .capsule-core {
  opacity: 0.78;
}

.page-projects .gallery-modal__backdrop {
  background:
    radial-gradient(58rem 26rem at 50% 0%, rgba(var(--accent-primary-rgb), 0.16), rgba(var(--surface-bg-void-rgb), 0.18) 40%, rgba(var(--surface-bg-void-rgb), 0.86)),
    rgba(var(--surface-bg-void-rgb), 0.86);
  backdrop-filter: blur(0.72rem);
}

.page-projects .gallery-modal__panel {
  width: min(100%, 39rem);
  max-height: min(92vh, 54rem);
  border: 1px solid rgba(var(--accent-secondary-rgb), 0.74);
  border-radius: 0.44rem;
  background:
    linear-gradient(150deg, rgba(var(--surface-panel-rgb), 0.36), rgba(var(--surface-bg-void-rgb), 0.95) 54%),
    rgba(var(--surface-bg-void-rgb), 0.96);
  box-shadow:
    0 0 2.35rem rgba(var(--accent-primary-rgb), 0.45),
    inset 0 0 0 1px rgba(var(--text-primary-rgb), 0.13);
  backdrop-filter: blur(0.58rem);
}

.page-projects .gallery-modal__panel::before,
.page-projects .gallery-modal__panel::after {
  display: none;
}

.page-projects .gallery-modal__head {
  margin-bottom: 0.92rem;
  padding-bottom: 0;
  border-bottom: 0;
}

.page-projects .gallery-modal__title {
  color: var(--text-primary);
  text-shadow: 0 0 1rem rgba(var(--accent-primary-rgb), 0.4);
}

.page-projects .gallery-modal__close {
  width: 2.15rem;
  border-radius: 0.42rem;
  border-color: rgba(var(--accent-secondary-rgb), 0.86);
  background: linear-gradient(160deg, rgba(var(--surface-panel-rgb), 0.74), rgba(var(--surface-bg-deep-rgb), 0.94));
  box-shadow: 0 0 1.1rem rgba(var(--accent-primary-rgb), 0.38);
}

.page-projects .gallery-modal__body {
  grid-template-columns: minmax(0, 1fr);
  gap: 0.82rem;
}

.page-projects .gallery-modal__field {
  border-color: rgba(var(--accent-secondary-rgb), 0.34);
  border-radius: 0.5rem;
  background: linear-gradient(160deg, rgba(var(--surface-panel-rgb), 0.28), rgba(var(--surface-bg-deep-rgb), 0.84));
  padding: 0.66rem 0.74rem;
}

.page-projects .gallery-modal__label {
  color: var(--accent-secondary);
}

.page-projects .gallery-modal__value {
  color: var(--text-primary);
}

.page-projects .gallery-modal__media {
  border-color: rgba(var(--accent-secondary-rgb), 0.5);
  min-height: clamp(15rem, 34vh, 18.5rem);
  border-radius: 0.54rem;
  background:
    linear-gradient(130deg, rgba(var(--surface-panel-rgb), 0.54), rgba(var(--surface-bg-deep-rgb), 0.92)),
    rgba(var(--surface-bg-void-rgb), 0.88);
  box-shadow:
    inset 0 0 1rem rgba(var(--accent-secondary-rgb), 0.16),
    0 0 1.2rem rgba(var(--accent-primary-rgb), 0.24);
}

.page-projects .gallery-modal__chips span {
  border-color: rgba(var(--accent-secondary-rgb), 0.6);
  background: rgba(var(--surface-panel-rgb), 0.5);
}

.page-projects .gallery-modal__links a {
  border-color: rgba(var(--accent-secondary-rgb), 0.76);
  background: linear-gradient(140deg, rgba(var(--surface-panel-rgb), 0.58), rgba(var(--surface-bg-deep-rgb), 0.9));
  box-shadow: 0 0 0.9rem rgba(var(--accent-primary-rgb), 0.24);
}

/* Unified HUD panel system */
.hud-frame,
.stitch-home__hero,
.stitch-about__skills,
.stitch-skill-card,
.stitch-log li,
.stitch-contact__form,
.panel-card,
.signal-card,
.hero-metrics div,
.timeline li,
.home-command__item,
.page-projects .gallery-hud,
.page-projects .gallery-status,
.page-projects .capsule-chamber,
.page-projects .capsule-core,
.page-projects .gallery-modal__panel,
.page-projects .gallery-modal__field,
.page-projects .gallery-modal__media {
  position: relative;
  border-radius: 0;
  clip-path: polygon(0.88rem 0, calc(100% - 1.85rem) 0, 100% 0.82rem, 100% calc(100% - 0.82rem), calc(100% - 0.82rem) 100%, 1.55rem 100%, 0 calc(100% - 0.92rem), 0 0.92rem);
}

.stitch-chip,
.stitch-home__david-tag,
.stitch-home__command a,
.hud-radial a,
.btn,
.home-command__index,
.tag-cloud span,
.page-projects .gallery-hud__telemetry span,
.page-projects .gallery-modal__chips span,
.page-projects .gallery-modal__links a,
.page-projects .gallery-modal__close,
.page-projects .gallery-nav__btn,
.page-projects .capsule-core__code {
  border-radius: 0;
  clip-path: polygon(0.54rem 0, calc(100% - 1.05rem) 0, 100% 0.48rem, 100% calc(100% - 0.48rem), calc(100% - 0.48rem) 100%, 0.92rem 100%, 0 calc(100% - 0.58rem), 0 0.58rem);
}

.stitch-home__command a,
.hud-radial a,
.page-projects .gallery-hud__telemetry span {
  display: inline-flex;
  align-items: center;
}

.hud-item__icon {
  border-radius: 0;
  clip-path: polygon(24% 0, 76% 0, 100% 24%, 100% 76%, 76% 100%, 24% 100%, 0 76%, 0 24%);
}

input,
select,
textarea {
  border-radius: 0;
  background:
    linear-gradient(140deg, rgba(var(--surface-bg-edge-rgb), 0.22), rgba(var(--surface-bg-void-rgb), 0.92)),
    rgba(var(--surface-bg-void-rgb), 0.9);
}

.hud-frame::before,
.hud-frame::after {
  width: 3.6rem;
  height: 0.24rem;
  border: 0;
  background: repeating-linear-gradient(90deg, rgba(var(--accent-secondary-rgb), 0.82) 0 0.5rem, transparent 0.5rem 0.74rem);
  opacity: 0.72;
}

.hud-frame::before {
  top: 0.58rem;
  left: auto;
  right: 0.72rem;
}

.hud-frame::after {
  left: 0.72rem;
  right: auto;
  bottom: 0.58rem;
}

.stitch-home__hero::before {
  content: "";
  position: absolute;
  top: 0.62rem;
  right: 0.7rem;
  width: 2.35rem;
  height: 0.18rem;
  background: repeating-linear-gradient(90deg, rgba(var(--accent-secondary-rgb), 0.82) 0 0.42rem, transparent 0.42rem 0.58rem);
  pointer-events: none;
  opacity: 0.8;
}

.stitch-chip::before {
  border-radius: 0;
  clip-path: polygon(0 0, 100% 0, 100% 68%, 68% 100%, 0 100%);
}

.stitch-node {
  overflow: hidden;
  border-radius: 0;
  clip-path: polygon(0.6rem 0, calc(100% - 1.2rem) 0, 100% 0.54rem, 100% calc(100% - 0.54rem), calc(100% - 0.54rem) 100%, 0.95rem 100%, 0 calc(100% - 0.66rem), 0 0.66rem);
}

.stitch-node::before {
  content: "";
  position: absolute;
  inset: 0.22rem;
  border: 1px solid rgba(var(--accent-secondary-rgb), 0.26);
  clip-path: polygon(0.52rem 0, calc(100% - 0.9rem) 0, 100% 0.44rem, 100% calc(100% - 0.44rem), calc(100% - 0.44rem) 100%, 0.78rem 100%, 0 calc(100% - 0.52rem), 0 0.52rem);
  pointer-events: none;
}

.stitch-node::after {
  content: "";
  position: absolute;
  left: 0.48rem;
  bottom: 0.36rem;
  width: 1.9rem;
  height: 0.16rem;
  background: repeating-linear-gradient(90deg, rgba(var(--accent-secondary-rgb), 0.75) 0 0.36rem, transparent 0.36rem 0.52rem);
  opacity: 0.68;
  pointer-events: none;
}

.stitch-node--right,
.stitch-node--left,
.stitch-node--bottom,
.stitch-node--top {
  width: clamp(6.25rem, 17vw, 7.95rem);
  min-height: clamp(3.65rem, 11.2vw, 4.35rem);
  padding: 0.44rem 0.56rem;
}

.stitch-node--right {
  right: 4.35%;
}

.stitch-node--left {
  left: 4.35%;
}

.page-projects .gallery-modal__panel::before,
.page-projects .gallery-modal__panel::after {
  display: block;
}

.page-projects .gallery-modal__panel::before {
  inset: 0.36rem;
  border: 1px solid rgba(var(--accent-secondary-rgb), 0.2);
  clip-path: polygon(0.7rem 0, calc(100% - 1.4rem) 0, 100% 0.62rem, 100% calc(100% - 0.62rem), calc(100% - 0.62rem) 100%, 1.14rem 100%, 0 calc(100% - 0.72rem), 0 0.72rem);
  background: none;
}

.page-projects .gallery-modal__panel::after {
  top: 0.7rem;
  right: 0.76rem;
  bottom: auto;
  left: auto;
  width: 4.2rem;
  height: 0.24rem;
  border: 0;
  background: repeating-linear-gradient(90deg, rgba(var(--accent-secondary-rgb), 0.8) 0 0.52rem, transparent 0.52rem 0.78rem);
  opacity: 0.72;
}

@media (min-width: 48rem) {
  .stitch-home {
    width: min(96vw, 82rem);
    padding-top: clamp(0.95rem, 2.8vw, 1.8rem);
  }

  .stitch-home__hub {
    width: min(72vw, 32rem);
  }

  .stitch-about__grid {
    grid-template-columns: minmax(0, 0.38fr) minmax(0, 0.62fr);
  }

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

  .stitch-contact__layout {
    grid-template-columns: minmax(0, 0.35fr) minmax(0, 0.65fr);
  }

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

  .stitch-contact__form .form-grid .full {
    grid-column: 1 / -1;
  }
}

@media (min-width: 64rem) {
  .stitch-home {
    width: min(95vw, 84rem);
    padding: clamp(0.9rem, 2.2vh, 1.7rem) clamp(0.95rem, 2vw, 1.8rem);
    grid-template-columns: minmax(0, 0.4fr) minmax(24rem, 0.6fr);
    grid-template-areas:
      "hero hub"
      "command hub";
    align-items: center;
    justify-items: stretch;
    column-gap: clamp(1.4rem, 3vw, 3rem);
    row-gap: clamp(0.6rem, 1.5vh, 1rem);
  }

  .stitch-home__hero {
    align-self: end;
    max-width: min(100%, 31rem);
  }

  .stitch-home__hero h1 {
    font-size: clamp(2.2rem, 3.8vw, 3.5rem);
  }

  .stitch-home__hero p {
    font-size: clamp(0.95rem, 1.3vw, 1.04rem);
  }

  .stitch-home__hub {
    justify-self: end;
    width: min(48vw, 33rem);
  }

  .stitch-home__ring--outer {
    inset: 0%;
  }

  .stitch-home__ring--inner {
    inset: 25%;
  }

  .stitch-home__david-core {
    width: clamp(11.8rem, 24vw, 15rem);
  }

  .stitch-node {
    width: clamp(6.7rem, 10.5vw, 8.35rem);
    min-height: clamp(4rem, 6.1vw, 4.75rem);
  }

  .stitch-node--right,
  .stitch-node--left {
    width: clamp(5.8rem, 8.4vw, 6.95rem);
    min-height: clamp(3.35rem, 4.6vw, 3.95rem);
  }

  .stitch-node--top {
    top: 15%;
  }

  .stitch-node--right {
    right: 9.2%;
  }

  .stitch-node--bottom {
    bottom: 15%;
  }

  .stitch-node--left {
    left: 9.2%;
  }

  .stitch-home__command {
    justify-self: start;
    max-width: 31rem;
    gap: 0.46rem;
  }
}

@media (max-width: 47.99rem) {
  .stitch-node {
    width: clamp(6.4rem, 27vw, 8.2rem);
    min-height: clamp(3.8rem, 16vw, 4.6rem);
  }

  .stitch-node--right,
  .stitch-node--left,
  .stitch-node--bottom,
  .stitch-node--top {
    width: clamp(5.45rem, 23vw, 6.6rem);
    min-height: clamp(3.1rem, 13vw, 3.85rem);
  }

  .stitch-node--right {
    right: 4%;
  }

  .stitch-node--left {
    left: 4%;
  }

  .stitch-node__meta {
    display: none;
  }

  .stitch-home__command {
    width: 100%;
  }

  .stitch-home__command a {
    flex: 1 1 43%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stitch-home__ring--outer,
  .stitch-home__ring--inner,
  .stitch-home__david-core .hud-core::before,
  .stitch-home__david-core .hud-ring,
  .page-projects .gallery-modal__panel::after {
    animation: none;
  }
}

@keyframes stitch-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes stitch-spin-reverse {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}

@keyframes stitchModalScan {
  0%,
  40%,
  100% {
    background-position:
      -140% 0,
      0 0;
  }
  60% {
    background-position:
      160% 0,
      0 0;
  }
}

@media (min-width: 64rem) {
  .stitch-node--top,
  .stitch-node--bottom,
  .stitch-node--right,
  .stitch-node--left {
    width: clamp(6.6rem, 9.2vw, 7.35rem);
    min-height: clamp(4.15rem, 5.4vw, 4.35rem);
  }

  .stitch-node--top {
    top: 15%;
  }

  .stitch-node--right {
    right: 13%;
  }

  .stitch-node--bottom {
    bottom: 15%;
  }

  .stitch-node--left {
    left: 13%;
  }
}

@media (max-width: 47.99rem) {
  .stitch-node--top,
  .stitch-node--bottom,
  .stitch-node--right,
  .stitch-node--left {
    width: clamp(5.45rem, 23vw, 6.6rem);
    min-height: clamp(3.1rem, 13vw, 3.85rem);
  }
}

/* Unified cyan-teal accent pass for stitched HUD surfaces */
.stitch-home__hero,
.hud-frame,
.stitch-about__skills,
.stitch-skill-card,
.stitch-log li,
.stitch-contact__form,
.stitch-node,
.stitch-home__command a,
.stitch-chip,
.stitch-home__david-tag,
.page-projects .gallery-hud,
.page-projects .gallery-status,
.page-projects .capsule-chamber,
.page-projects .capsule-core,
.page-projects .gallery-modal__panel,
.page-projects .gallery-modal__field,
.page-projects .gallery-modal__media,
.page-projects .gallery-hud__telemetry span,
.page-projects .capsule-core__code,
.page-projects .capsule-core__action,
.page-projects .gallery-nav__btn,
.page-projects .gallery-modal__close,
.page-projects .gallery-modal__chips span,
.page-projects .gallery-modal__links a {
  border-color: rgba(var(--accent-secondary-rgb), 0.82);
  box-shadow:
    inset 0 0 0.9rem rgba(var(--accent-primary-rgb), 0.08),
    0 0 1.1rem rgba(var(--accent-primary-rgb), 0.22);
}

.stitch-home__hero,
.hud-frame,
.stitch-about__skills,
.stitch-skill-card,
.stitch-log li,
.stitch-contact__form,
.stitch-node,
.stitch-home__command a,
.stitch-chip,
.stitch-home__david-tag {
  background:
    linear-gradient(155deg, rgba(var(--accent-secondary-rgb), 0.42), rgba(var(--surface-bg-void-rgb), 0.9)),
    rgba(var(--surface-bg-void-rgb), 0.78);
}

.page-projects .gallery-hud,
.page-projects .gallery-status,
.page-projects .capsule-chamber,
.page-projects .gallery-modal__panel,
.page-projects .gallery-modal__field,
.page-projects .gallery-modal__media,
.page-projects .gallery-hud__telemetry span,
.page-projects .gallery-modal__chips span,
.page-projects .gallery-modal__links a {
  background:
    linear-gradient(155deg, rgba(var(--accent-secondary-rgb), 0.4), rgba(var(--surface-bg-void-rgb), 0.9)),
    rgba(var(--surface-bg-void-rgb), 0.78);
}

.page-projects .capsule-core {
  background:
    linear-gradient(160deg, rgba(var(--accent-secondary-rgb), 0.5), rgba(var(--surface-bg-void-rgb), 0.92) 58%),
    repeating-linear-gradient(0deg, rgba(var(--accent-secondary-rgb), 0.2) 0 1px, transparent 1px 1.35rem),
    repeating-linear-gradient(90deg, rgba(var(--accent-secondary-rgb), 0.14) 0 1px, transparent 1px 1.35rem),
    rgba(var(--surface-bg-void-rgb), 0.94);
}

.page-projects .capsule-core__code,
.page-projects .capsule-core__action,
.page-projects .gallery-nav__btn,
.page-projects .gallery-modal__close {
  box-shadow: 0 0 1rem rgba(var(--accent-primary-rgb), 0.28);
}

.stitch-node:is(:hover, :focus-visible),
.stitch-node.is-current,
.stitch-home__command a:is(:hover, :focus-visible),
.stitch-home__command a[aria-current="page"],
.page-projects .gallery-nav__btn:is(:hover, :focus-visible),
.page-projects .capsule-core__action:is(:hover, :focus-visible),
.page-projects .capsule-slot.is-active .capsule-core,
.page-projects .gallery-modal__links a:is(:hover, :focus-visible) {
  border-color: rgba(var(--accent-secondary-rgb), 0.95);
  box-shadow:
    inset 0 0 1rem rgba(var(--accent-primary-rgb), 0.12),
    0 0 1.25rem rgba(var(--accent-primary-rgb), 0.34);
}

.stitch-node::before,
.page-projects .capsule-core::before,
.page-projects .gallery-modal__panel::before {
  border-color: rgba(var(--accent-secondary-rgb), 0.38);
}

/* Minimal HUD refresh for About and Contact pages only */
.page-about .hud-frame,
.page-contact .hud-frame {
  border: 1px solid rgba(var(--accent-secondary-rgb), 0.34);
  border-radius: 1rem;
  clip-path: none;
  background:
    linear-gradient(145deg, rgba(var(--surface-panel-rgb), 0.28), rgba(var(--surface-bg-void-rgb), 0.88)),
    rgba(var(--surface-bg-void-rgb), 0.78);
  box-shadow:
    inset 0 0 0.75rem rgba(var(--accent-primary-rgb), 0.08),
    0 0 1rem rgba(var(--accent-primary-rgb), 0.16);
  backdrop-filter: blur(0.55rem);
}

.page-about .hud-frame::before,
.page-about .hud-frame::after,
.page-contact .hud-frame::before,
.page-contact .hud-frame::after {
  display: none;
}

.page-about .stitch-chip,
.page-contact .stitch-chip {
  border-radius: 999px;
  clip-path: none;
  border-color: rgba(var(--accent-secondary-rgb), 0.38);
  background: rgba(var(--surface-bg-base-rgb), 0.5);
  color: rgba(var(--accent-primary-rgb), 0.95);
}

.page-about .stitch-chip::before,
.page-contact .stitch-chip::before {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  clip-path: none;
}

.page-about .about-hud .btn,
.page-contact .contact-hud .btn {
  min-height: 2.45rem;
  border-radius: 999px;
  clip-path: none;
  border-color: rgba(var(--accent-secondary-rgb), 0.5);
  padding: 0.56rem 1.05rem;
  letter-spacing: 0.11em;
  font-size: 0.68rem;
}

.page-about .about-hud .btn-primary,
.page-contact .contact-hud .btn-primary {
  border-color: rgba(var(--accent-secondary-rgb), 0.84);
  background: linear-gradient(130deg, rgba(var(--accent-secondary-rgb), 0.28), rgba(var(--surface-bg-edge-rgb), 0.55));
  box-shadow: 0 0 1.05rem rgba(var(--accent-primary-rgb), 0.24);
}

.page-about .about-hud .btn-ghost,
.page-contact .contact-hud .btn-ghost {
  background: rgba(var(--surface-bg-void-rgb), 0.7);
}

.about-hud,
.contact-hud {
  gap: clamp(0.8rem, 2vw, 1.25rem);
}

.about-hud__layout,
.contact-hud__layout {
  display: grid;
  gap: clamp(0.8rem, 2vw, 1rem);
}

.about-hud__profile,
.about-hud__syslog,
.about-hud__skills,
.contact-hud__status,
.contact-hud__form-shell {
  padding: clamp(1rem, 2.3vw, 1.45rem);
}

.about-hud__profile {
  display: grid;
  gap: 0.7rem;
  align-content: start;
}

.about-hud__avatar-shell {
  display: grid;
  justify-items: start;
}

.about-hud__avatar {
  position: relative;
  width: clamp(8.6rem, 22vw, 10.8rem);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(var(--accent-secondary-rgb), 0.68);
  background:
    radial-gradient(circle at 42% 32%, rgba(var(--accent-secondary-rgb), 0.42), rgba(var(--surface-bg-void-rgb), 0.94) 62%),
    linear-gradient(145deg, rgba(var(--surface-panel-rgb), 0.35), rgba(var(--surface-bg-deep-rgb), 0.94));
  box-shadow:
    inset 0 0 1rem rgba(var(--accent-primary-rgb), 0.24),
    0 0 1.15rem rgba(var(--accent-primary-rgb), 0.22);
}

.about-hud__avatar::before {
  content: "";
  position: absolute;
  inset: -0.45rem;
  border: 1px solid rgba(var(--accent-secondary-rgb), 0.36);
  border-radius: 50%;
  box-shadow: 0 0 0.9rem rgba(var(--accent-primary-rgb), 0.2);
}

.about-hud__avatar span {
  font-family: var(--stitch-display);
  font-size: 1.15rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(var(--text-primary-rgb), 0.95);
  text-shadow: 0 0 0.8rem rgba(var(--accent-primary-rgb), 0.55);
}

.about-hud__designation {
  margin: 0.15rem 0 0;
  color: var(--text-tertiary);
  font-family: var(--stitch-display);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.about-hud__profile h1 {
  margin: 0;
  font-family: var(--stitch-display);
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-hud__role,
.about-hud__summary {
  margin: 0;
  color: var(--text-secondary);
}

.about-hud__role {
  font-family: var(--stitch-display);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(var(--accent-secondary-rgb), 0.92);
}

.about-hud__summary {
  max-width: 48ch;
  line-height: 1.48;
}

.about-hud__actions {
  margin-top: 0.2rem;
}

.about-hud__syslog,
.about-hud__skills,
.contact-hud__status,
.contact-hud__form-shell {
  display: grid;
  gap: 0.82rem;
}

.about-hud__panel-head,
.contact-hud__form-head {
  display: grid;
  gap: 0.5rem;
}

.about-hud__panel-head h2,
.contact-hud__status h1,
.contact-hud__form-head h2 {
  margin: 0;
  font-family: var(--stitch-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-hud__panel-head h2,
.contact-hud__form-head h2 {
  font-size: clamp(1rem, 2.3vw, 1.32rem);
}

.about-hud__log-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.58rem;
}

.about-hud__log-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.75rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(var(--accent-secondary-rgb), 0.2);
}

.about-hud__log-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.about-hud__log-list span {
  color: rgba(var(--accent-primary-rgb), 0.92);
  font-family: var(--stitch-display);
  font-size: 0.57rem;
  letter-spacing: 0.16em;
}

.about-hud__log-list p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.45;
}

.about-hud__panel-foot {
  margin: 0.2rem 0 0;
  color: rgba(var(--text-secondary-rgb), 0.78);
  font-family: var(--stitch-display);
  font-size: 0.53rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.about-hud__skill-grid {
  display: grid;
  gap: 0.6rem;
}

.about-hud__skill-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.82rem;
  border: 1px solid rgba(var(--accent-secondary-rgb), 0.26);
  border-radius: 0.82rem;
  clip-path: none;
  padding: 0.72rem 0.8rem;
  background: rgba(var(--surface-bg-deep-rgb), 0.62);
  box-shadow: inset 0 0 0.9rem rgba(var(--accent-primary-rgb), 0.08);
}

.about-hud__skill-ring {
  position: relative;
  width: 3rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(
    rgba(var(--accent-primary-rgb), 0.95) calc(var(--level) * 1%),
    rgba(var(--accent-secondary-rgb), 0.16) 0
  );
  display: grid;
  place-items: center;
  box-shadow: 0 0 0.9rem rgba(var(--accent-primary-rgb), 0.3);
}

.about-hud__skill-ring::before {
  content: "";
  position: absolute;
  inset: 0.35rem;
  border-radius: 50%;
  border: 1px solid rgba(var(--accent-secondary-rgb), 0.3);
  background: rgba(var(--surface-bg-void-rgb), 0.92);
}

.about-hud__skill-ring span {
  position: relative;
  z-index: 1;
  font-family: var(--stitch-display);
  font-size: 0.5rem;
  letter-spacing: 0.08em;
  color: rgba(var(--text-primary-rgb), 0.95);
}

.about-hud__skill-card h3 {
  margin: 0;
  font-family: var(--stitch-display);
  font-size: 0.75rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.about-hud__skill-card p {
  margin: 0.3rem 0 0;
  color: var(--text-secondary);
  font-size: 0.94rem;
}

.contact-hud__status h1 {
  font-size: clamp(1.4rem, 4vw, 2rem);
}

.contact-hud__status p,
.contact-hud__availability,
.contact-hud__form-head p {
  margin: 0;
  color: var(--text-secondary);
}

.contact-hud__metrics {
  margin: 0.2rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.contact-hud__metrics li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(var(--accent-secondary-rgb), 0.2);
  padding-bottom: 0.32rem;
}

.contact-hud__metrics span {
  color: var(--text-secondary);
  font-family: var(--stitch-display);
  font-size: 0.57rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-hud__metrics strong {
  color: var(--text-primary);
  font-family: var(--stitch-display);
  font-size: 0.61rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.contact-hud__channels {
  display: grid;
  gap: 0.36rem;
}

.contact-hud__channels .text-link {
  margin-top: 0;
  border-bottom: 1px solid rgba(var(--accent-secondary-rgb), 0.2);
  padding-bottom: 0.3rem;
}

.contact-hud__form {
  padding: 0;
  border: 0;
  border-radius: 0;
  clip-path: none;
  background: none;
  box-shadow: none;
  display: grid;
  gap: 0.82rem;
}

.contact-hud .form-grid {
  display: grid;
  gap: 0.82rem;
}

.contact-hud .form-grid label {
  gap: 0.42rem;
  color: rgba(var(--text-primary-rgb), 0.9);
  font-family: var(--stitch-display);
  font-size: 0.58rem;
  letter-spacing: 0.15em;
}

.contact-hud input,
.contact-hud textarea {
  border: 1px solid rgba(var(--accent-secondary-rgb), 0.36);
  border-radius: 0.78rem;
  clip-path: none;
  background:
    linear-gradient(160deg, rgba(var(--surface-panel-rgb), 0.22), rgba(var(--surface-bg-void-rgb), 0.94)),
    rgba(var(--surface-bg-void-rgb), 0.92);
  color: var(--text-main);
  padding: 0.66rem 0.78rem;
}

.contact-hud textarea {
  min-height: 10rem;
}

.contact-hud input:focus-visible,
.contact-hud textarea:focus-visible {
  border-color: rgba(var(--accent-secondary-rgb), 0.86);
  box-shadow: 0 0 0.95rem rgba(var(--accent-primary-rgb), 0.2);
}

.contact-hud .form-note {
  margin: 0;
  color: var(--text-tertiary);
}

@media (min-width: 48rem) {
  .about-hud__layout {
    grid-template-columns: minmax(0, 0.4fr) minmax(0, 0.6fr);
  }

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

  .contact-hud__layout {
    grid-template-columns: minmax(0, 0.36fr) minmax(0, 0.64fr);
  }

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

  .contact-hud .form-grid .full {
    grid-column: 1 / -1;
  }
}

@media (min-width: 64rem) {
  .about-hud__profile,
  .about-hud__syslog,
  .about-hud__skills,
  .contact-hud__status,
  .contact-hud__form-shell {
    padding: clamp(1.15rem, 2.1vw, 1.7rem);
  }
}

/* About-only alignment and first-viewport visibility fixes */
.page-about .about-hud__profile {
  justify-items: center;
  align-content: center;
  text-align: center;
}

.page-about .about-hud__profile .stitch-chip {
  justify-self: center;
}

.page-about .about-hud__avatar-shell {
  width: 100%;
  justify-items: center;
}

.page-about .about-hud__actions {
  width: 100%;
  justify-content: center;
}

.page-about .about-hud__summary {
  margin-inline: auto;
}

html.has-js .page-about .about-hud__skills.reveal {
  opacity: 1;
  transform: none;
  filter: none;
}

@media (min-width: 64rem) {
  .page-about .site-shell {
    padding-top: clamp(0.2rem, 0.8vw, 0.45rem);
  }

  .page-about .site-header--spacer {
    min-height: clamp(0.7rem, 1.8vw, 1.1rem);
  }

  .page-about .about-hud {
    grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
    grid-template-areas:
      "profile syslog"
      "profile skills";
    gap: clamp(0.65rem, 1.15vw, 0.9rem);
  }

  .page-about .about-hud__layout {
    display: contents;
  }

  .page-about .about-hud__profile {
    grid-area: profile;
  }

  .page-about .about-hud__syslog {
    grid-area: syslog;
  }

  .page-about .about-hud__skills {
    grid-area: skills;
  }
}


