:root {
  --bg: #08090d;
  --bg-elevated: #0d0f14;
  --surface: rgba(18, 20, 28, 0.94);
  --surface-strong: rgba(28, 31, 40, 0.98);
  --surface-soft: rgba(15, 17, 24, 0.9);
  --panel-tint: rgba(24, 29, 36, 0.78);
  --line: rgba(117, 124, 141, 0.22);
  --line-strong: rgba(202, 211, 227, 0.28);
  --line-accent: rgba(197, 255, 36, 0.42);
  --text: #f1f4f8;
  --muted: #9ca3b3;
  --muted-strong: #c9cfdb;
  --accent: #c6ff24;
  --accent-strong: #9bd410;
  --accent-soft: rgba(198, 255, 36, 0.12);
  --warning: #4cf4a6;
  --blue: #52a8ff;
  --shadow: 0 22px 48px rgba(0, 0, 0, 0.34);
  --radius: 18px;
  --radius-small: 12px;
  --grid-size: 34px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  position: relative;
  min-height: 100vh;
  font-family: "IBM Plex Sans", sans-serif;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(198, 255, 36, 0.09), transparent 18%),
    radial-gradient(circle at 85% 12%, rgba(82, 168, 255, 0.08), transparent 20%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 18%),
    linear-gradient(180deg, #06070a 0%, #0a0b11 35%, #090a0f 100%);
}

body::before,
body::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: clamp(720px, 115svh, 1120px);
  pointer-events: none;
  z-index: 0;
}
body::before {
  opacity: 0.5;
  background:
    radial-gradient(circle at 18% 78%, rgba(53, 221, 200, 0.1), transparent 24%),
    radial-gradient(circle at 82% 84%, rgba(70, 94, 255, 0.1), transparent 24%),
    repeating-radial-gradient(circle at 16% 24%, rgba(109, 205, 255, 0.12) 0 2px, transparent 2px 24px),
    repeating-radial-gradient(circle at 76% 18%, rgba(198, 255, 36, 0.1) 0 2px, transparent 2px 22px),
    repeating-radial-gradient(circle at 34% 72%, rgba(87, 242, 222, 0.09) 0 2px, transparent 2px 26px),
    repeating-radial-gradient(circle at 84% 62%, rgba(158, 184, 255, 0.08) 0 2px, transparent 2px 28px);
  background-size: 100% 100%;
  background-position: center top;
  mask-image: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.9) 42%, rgba(255, 255, 255, 0.34) 72%, transparent 94%);
  animation: topo-drift 28s ease-in-out infinite alternate;
}

body::after {
  opacity: 0.26;
  background:
    repeating-radial-gradient(circle at 14% 26%, rgba(109, 205, 255, 0.18) 0 1px, transparent 1px 24px),
    repeating-radial-gradient(circle at 74% 16%, rgba(198, 255, 36, 0.16) 0 1px, transparent 1px 22px),
    repeating-radial-gradient(circle at 36% 70%, rgba(87, 242, 222, 0.14) 0 1px, transparent 1px 26px),
    repeating-radial-gradient(circle at 86% 60%, rgba(158, 184, 255, 0.12) 0 1px, transparent 1px 28px);
  background-size: 100% 100%;
  background-position: center top;
  filter: blur(10px) brightness(1.08);
  mix-blend-mode: screen;
  mask-image: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.52) 52%, rgba(255, 255, 255, 0.1) 78%, transparent 96%);
  animation: topo-drift-glow 20s ease-in-out infinite alternate, topo-glow 8s ease-in-out infinite;
}

img,
iframe {
  max-width: 100%;
}

main,
.site-header,
.lightbox {
  position: relative;
  z-index: 1;
}

.page-shell {
  width: min(1560px, calc(100% - 48px));
  margin: 0 auto;
  padding: 0 0 64px;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 0;
  padding: 18px 0 14px;
  border-bottom: 0;
  background: transparent;
  box-shadow: none;
  isolation: isolate;
}

.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(14, 16, 22, 0.9), rgba(10, 12, 18, 0.74));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: -1;
}

.brand,
.site-nav a,
.inline-link,
.footer-links a {
  color: var(--text);
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  color: var(--text);
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text);
  font-family: "Oxanium", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1;
}

.brand-text {
  color: var(--muted-strong);
}

.site-nav {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted-strong);
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  transition: color 160ms ease, opacity 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
  transform: none;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 84px);
  padding: 96px 24px 88px;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(8, 10, 14, 0.08), transparent 64%);
  pointer-events: none;
}

.hero::after {
  display: none;
}

.hero-content,
.hero-scroll {
  position: relative;
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(860px, 100%);
  text-align: center;
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  color: var(--muted-strong);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-scroll::after {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  margin: 8px auto 0;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
}

.section,
.proof-row {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 18%),
    linear-gradient(135deg, rgba(198, 255, 36, 0.05), transparent 38%),
    rgba(11, 13, 19, 0.92);
  box-shadow: var(--shadow);
}

.section::before,
.proof-row::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.16;
  pointer-events: none;
}

.section::after,
.proof-row::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 0;
  border-radius: 0;
  pointer-events: none;
}

.eyebrow,
.card-label,
.project-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before,
.card-label::before,
.project-kicker::before {
  content: "";
  width: 12px;
  height: 12px;
  border: 1px solid rgba(0, 0, 0, 0.35);
  border-radius: 3px;
  background: linear-gradient(180deg, #d5ff3f 0%, #aceb05 100%);
  box-shadow: 0 0 0 1px rgba(198, 255, 36, 0.12);
}

.hero .eyebrow {
  margin-bottom: 12px;
  color: var(--muted);
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.hero .eyebrow::before {
  display: none;
}

.section-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin: 0 auto;
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(0.98rem, 1.5vw, 1.22rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-align: center;
  text-transform: uppercase;
}

.section-label::before {
  content: "";
  width: 12px;
  height: 12px;
  border: 1px solid rgba(0, 0, 0, 0.35);
  border-radius: 3px;
  background: linear-gradient(180deg, #d5ff3f 0%, #aceb05 100%);
  box-shadow: 0 0 0 1px rgba(198, 255, 36, 0.12);
}

.section-label-column {
  margin-bottom: 18px;
}

.section-label-section {
  width: auto;
  margin-bottom: 24px;
}

.section-with-label {
  position: relative;
  overflow: visible;
  margin-top: 64px;
  padding-top: 36px;
}

.section-with-label .section-label-section {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 2;
  margin: 0;
  transform: translate(-50%, -50%);
}

h1,
h2,
h3,
strong,
summary,
.skill-group h4 {
  font-family: "Oxanium", sans-serif;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 0.98;
  text-transform: uppercase;
}

h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 5.9vw, 5.4rem);
  letter-spacing: 0.02em;
}

.sample-page-title {
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(2rem, 3.2vw, 3.1rem);
  text-align: center;
}

.page-intro {
  padding-top: 24px;
  text-align: center;
}

.page-intro .hero-text {
  margin-left: auto;
  margin-right: auto;
}

.hero h1 {
  max-width: none;
  color: var(--accent);
  font-size: clamp(4.8rem, 10vw, 8rem);
  line-height: 0.92;
}

h2 {
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  letter-spacing: 0.02em;
}

h3 {
  font-size: 1.42rem;
  letter-spacing: 0.02em;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 1rem;
}

.hero-text,
.hero-support {
  max-width: 62ch;
  margin-top: 16px;
}

.hero-text {
  max-width: 34ch;
  color: var(--muted-strong);
  font-size: clamp(1.02rem, 1.4vw, 1.16rem);
  font-weight: 600;
  line-height: 1.45;
}

.hero-support {
  max-width: 58ch;
  color: var(--muted-strong);
  font-size: clamp(1rem, 1.35vw, 1.1rem);
}

.hero-actions,
.project-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  justify-content: center;
  margin-top: 26px;
}

.hero .button {
  min-width: 0;
  padding: 12px 16px;
  border-radius: 10px;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.social-links {
  gap: 8px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(22, 25, 33, 0.78);
  color: var(--text);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(198, 255, 36, 0.38);
  background: rgba(31, 35, 45, 0.9);
  color: var(--accent);
}

.social-link svg {
  width: 20px;
  height: 20px;
  display: block;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    rgba(25, 28, 35, 0.95);
  color: var(--text);
  font-family: "Oxanium", sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

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

.button.primary {
  border-color: rgba(0, 0, 0, 0.25);
  background: linear-gradient(180deg, #d7ff43 0%, #b2eb05 100%);
  color: #050608;
}

.button.primary:hover,
.button.primary:focus-visible {
  background: linear-gradient(180deg, #e2ff6c 0%, #c0f816 100%);
}

.button.secondary {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    rgba(29, 32, 39, 0.95);
  color: var(--muted-strong);
}

.button.ghost {
  min-width: 0;
  justify-content: flex-start;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.9rem;
}

.button.ghost:hover,
.button.ghost:focus-visible {
  transform: none;
  color: var(--text);
}

.section {
  margin-top: 22px;
  padding: 28px;
}

.proof-row {
  background: transparent;
  box-shadow: none;
  padding-right: 56px;
  padding-left: 56px;
}

.proof-row::before,
.proof-row::after {
  display: none;
}

#experience {
  background: transparent;
  box-shadow: none;
  padding-right: 56px;
  padding-left: 56px;
}

#experience::before,
#experience::after {
  display: none;
}

#projects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
  background: transparent;
  box-shadow: none;
}

#projects::before,
#projects::after {
  display: none;
}

#snippets,
#contact {
  background: transparent;
  box-shadow: none;
}

#snippets::before,
#snippets::after,
#contact::before,
#contact::after {
  display: none;
}

.section-heading {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin-bottom: 24px;
}

.section-heading p {
  margin-top: 12px;
}

.proof-row,
.sample-grid,
.sample-library-grid,
.support-grid,
.principles-grid {
  display: grid;
  gap: 16px;
}

.proof-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
  padding: 18px 56px;
}

.proof-card,
.project-card,
.snippet-card,
.contact-card,
.support-card,
.principle-card,
.more-work,
.more-samples,
.skills-panel {
  position: relative;
  z-index: 1;
  border: 0;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 18%),
    linear-gradient(180deg, rgba(198, 255, 36, 0.04), transparent 75%),
    rgba(16, 19, 26, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
  transform-origin: center center;
  transform-style: preserve-3d;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.proof-card::before,
.project-card::before,
.snippet-card::before,
.contact-card::before,
.support-card::before,
.principle-card::before,
.more-work::before,
.more-samples::before,
.skills-panel::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 0;
  border-radius: 8px;
  pointer-events: none;
}

.proof-card:hover,
.proof-card:focus-within,
.project-card:hover,
.project-card:focus-within,
.snippet-card:hover,
.snippet-card:focus-within,
.support-card:hover,
.support-card:focus-within,
.principle-card:hover,
.principle-card:focus-within,
.skills-panel:hover,
.skills-panel:focus-within,
.more-work:hover,
.more-work:focus-within,
.more-samples:hover,
.more-samples:focus-within {
  transform: perspective(1200px) translateY(-4px) rotateX(1.4deg) rotateY(-1.8deg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02), 0 16px 34px rgba(0, 0, 0, 0.26);
}

.proof-card,
.snippet-card,
.support-card,
.contact-card,
.principle-card,
.skills-panel {
  padding: 22px;
}

.proof-row .proof-card {
  background: transparent;
  box-shadow: none;
}

.proof-row .proof-card::before {
  display: none;
}

.about-section {
  background: transparent;
  box-shadow: none;
  scroll-margin-top: 270px;
  padding-top: 28px;
  padding-right: 56px;
  padding-left: 56px;
}

.about-section::before,
.about-section::after {
  display: none;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(320px, 2fr);
  gap: 18px;
  align-items: start;
}

.about-copy,
.skills-column {
  display: grid;
  gap: 18px;
}

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

.principles-grid .principle-card:last-child {
  grid-column: 1 / -1;
  width: calc(50% - 8px);
  justify-self: center;
}

.principle-card h3,
.support-card h3,
.snippet-card h3,
.project-card h3 {
  margin-bottom: 8px;
}

.principle-card p {
  margin-top: 8px;
}

.skills-panel {
  height: 100%;
}

.skill-group + .skill-group {
  margin-top: 24px;
}

.skill-group h4 {
  margin: 0 0 14px;
  font-size: 1.08rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
}

.skill-chip {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 40px;
  padding: 10px 15px 13px;
  border: 1px solid var(--chip-outline, rgba(120, 130, 150, 0.34));
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
    rgba(26, 29, 37, 0.95);
  color: var(--text);
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.96rem;
  font-weight: 600;
  gap: 12px;
  text-decoration: none;
}

.skill-chip {
  position: relative;
  overflow: hidden;
  --chip-accent: rgba(198, 255, 36, 0.65);
  --chip-outline: rgba(120, 130, 150, 0.34);
  transition: border-color 180ms ease, background 180ms ease;
}

.skill-chip:hover,
.skill-chip:focus-within {
  position: relative;
  z-index: 1;
  border-color: var(--chip-accent);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(30, 34, 42, 0.98);
}

.tooling-just {
  --chip-accent: rgba(255, 185, 92, 0.86);
}

.tooling-moonwave {
  --chip-accent: rgba(176, 142, 255, 0.9);
}

.tooling-vitepress {
  --chip-accent: rgba(76, 220, 173, 0.9);
}

.skill-chip::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 0;
  display: none;
}

.skill-chip .skill-icon-image,
.skill-chip .skill-icon-badge {
  flex: 0 0 auto;
  pointer-events: none;
  width: 1.2rem;
  min-width: 1.2rem;
  height: 1.2rem;
  object-fit: contain;
}

.skill-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  box-shadow: 0 0 12px color-mix(in srgb, var(--chip-accent) 50%, transparent), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.proof-card strong {
  display: block;
  font-size: 1.04rem;
  line-height: 1.6;
}

.card-label {
  color: var(--blue);
}

.card-label::before {
  background: linear-gradient(180deg, #58b7ff 0%, #2c7fff 100%);
}

.project-list {
  display: grid;
  gap: 18px;
}

.experience-list {
  position: relative;
  display: grid;
  gap: 28px;
  padding-left: 28px;
}

.experience-list::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 8px;
  width: 1px;
  background: linear-gradient(180deg, rgba(82, 168, 255, 0.34), rgba(82, 168, 255, 0.08));
}

.experience-entry {
  position: relative;
  min-width: 0;
}

.experience-entry::before {
  content: "";
  position: absolute;
  top: 10px;
  left: -28px;
  width: 13px;
  height: 13px;
  border: 1px solid rgba(82, 168, 255, 0.28);
  border-radius: 999px;
  background: rgba(25, 34, 49, 0.96);
  box-shadow: 0 0 0 4px rgba(82, 168, 255, 0.07);
}

.experience-entry + .experience-entry {
  padding-top: 6px;
}

.experience-period {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border: 1px solid rgba(82, 168, 255, 0.28);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(82, 168, 255, 0.14), rgba(82, 168, 255, 0.05)),
    rgba(15, 20, 29, 0.96);
  color: var(--blue);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.experience-entry h3 {
  margin: 14px 0 10px;
  font-size: 1.5rem;
}

.experience-summary {
  max-width: 72ch;
  color: var(--muted-strong);
}

.experience-summary + .experience-summary {
  margin-top: 10px;
}

.experience-link {
  margin-top: 14px;
}

.experience-tags {
  margin-top: 14px;
}

.project-card-simple {
  padding: 22px;
}

.contact-card,
.more-samples {
  background: transparent;
  box-shadow: none;
}

.contact-card::before,
.more-samples::before {
  display: none;
}

.project-card.feature {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 20px;
  padding: 22px;
}

.project-copy {
  min-width: 0;
}

.project-line + .project-line {
  margin-top: 10px;
}

.tag-row span {
  min-height: 0;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(82, 168, 255, 0.25);
  background:
    linear-gradient(180deg, rgba(82, 168, 255, 0.12), rgba(82, 168, 255, 0.04)),
    rgba(17, 21, 31, 0.95);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.project-actions {
  margin-top: 18px;
}

.feature-image {
  width: 100%;
  min-height: 300px;
  height: 100%;
  border-radius: 0;
  border: 0;
  object-fit: cover;
  background:
    linear-gradient(180deg, rgba(198, 255, 36, 0.1), transparent 35%),
    rgba(12, 14, 19, 0.96);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.video-embed {
  display: block;
  background: #080a0e;
}

iframe.feature-image {
  aspect-ratio: 16 / 9;
  height: auto;
}

.project-more,
.more-work,
.more-samples {
  margin-top: 18px;
  overflow: hidden;
}

.project-more summary,
.more-work summary,
.more-samples summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 18px;
  color: var(--text);
  font-size: 0.98rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.more-samples-action {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.more-samples-link {
  width: 25%;
  min-width: 0;
  border-radius: 10px;
  text-align: center;
}

.button.secondary.more-samples-link {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(22, 25, 33, 0.78);
  color: var(--text);
}

.button.secondary.showcase-page-button {
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(22, 25, 33, 0.78);
  color: var(--text);
}

.button.primary.showcase-page-button {
  border-radius: 10px;
}

.button.secondary.more-samples-link:hover,
.button.secondary.more-samples-link:focus-visible,
.button.secondary.showcase-page-button:hover,
.button.secondary.showcase-page-button:focus-visible {
  border-color: rgba(198, 255, 36, 0.38);
  background: rgba(31, 35, 45, 0.9);
  color: var(--accent);
}

.more-samples-link span {
  margin-left: auto;
  color: var(--accent);
  transition: transform 180ms ease;
}

.more-samples-link:hover span,
.more-samples-link:focus-visible span {
  transform: translateX(4px);
}

.project-more summary::-webkit-details-marker,
.more-work summary::-webkit-details-marker,
.more-samples summary::-webkit-details-marker {
  display: none;
}

.project-more summary::after,
.more-work summary::after,
.more-samples summary::after {
  content: "+";
  float: right;
  color: var(--accent);
}

.project-more[open] summary::after,
.more-work[open] summary::after,
.more-samples[open] summary::after {
  content: "-";
}

.details-content {
  padding: 0 18px 18px;
  border-top: 0;
}

.details-content p + p {
  margin-top: 10px;
}

.support-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0 18px 18px;
  border-top: 0;
}

.support-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 16%),
    rgba(15, 18, 25, 0.95);
  box-shadow: none;
}

.support-card p,
.snippet-summary {
  margin-top: 10px;
}

.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.9rem;
}

.inline-link::after {
  content: ">";
}

.inline-link:hover,
.footer-links a:hover {
  color: var(--text);
}

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

.snippet-card h3 {
  font-size: 1.16rem;
}

.snippet-media {
  display: block;
  width: 100%;
  height: 220px;
  margin-top: 16px;
  border-radius: 0;
  border: 1px solid var(--line);
  object-fit: cover;
  cursor: zoom-in;
  background: rgba(8, 10, 14, 0.92);
}

.contact {
  padding-bottom: 28px;
}

.contact-card {
  display: grid;
  gap: 16px;
}

.contact-note {
  max-width: 54ch;
  color: var(--muted-strong);
}

.site-footer {
  margin-top: 64px;
  padding: 8px 0 0;
  text-align: center;
}

.site-footer .section-label-section {
  margin-bottom: 18px;
}

.footer-note {
  max-width: 58ch;
  margin: 0 auto;
  color: var(--muted-strong);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 18px;
  padding-top: 14px;
}

.site-footer .footer-links {
  gap: 8px;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(5, 7, 10, 0.92);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 50;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-image {
  max-width: min(92vw, 1180px);
  max-height: 84vh;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background: #080a0d;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: rgba(18, 21, 28, 0.94);
  color: var(--text);
  font-size: 1.45rem;
  cursor: pointer;
}

body.lightbox-open {
  overflow: hidden;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 220ms ease, transform 220ms ease;
}

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

@media (max-width: 1120px) {
  #projects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-card.feature,
  .contact-card,
  .proof-row,
  .experience-list,
  .sample-grid,
  .sample-library-grid,
  .support-grid,
  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-layout {
    grid-template-rows: auto;
  }

  .contact-card > :last-child {
    grid-column: auto;
  }
}

@media (max-width: 820px) {
  .page-shell {
    width: min(100% - 22px, 1560px);
  }

  .site-header {
    top: 0;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 14px 0 12px;
  }

  .brand {
    width: auto;
  }

  .site-nav {
    justify-content: center;
    gap: 16px;
  }

  .site-nav a {
    flex: 0 0 auto;
  }

  .hero {
    min-height: calc(100svh - 68px);
    padding: 74px 16px 70px;
  }

  .section {
    padding: 22px;
  }

  .section-with-label {
    margin-top: 52px;
    padding-top: 32px;
  }

  .site-footer {
    margin-top: 52px;
  }

  #experience {
    padding-right: 30px;
    padding-left: 30px;
  }

  .proof-row,
  .about-section {
    padding-right: 30px;
    padding-left: 30px;
  }

  #projects {
    grid-template-columns: 1fr;
  }

  h1,
  .hero h1 {
    max-width: 100%;
    font-size: clamp(3.4rem, 13vw, 5rem);
  }

  .hero-text {
    font-size: 1rem;
  }

  .hero-support {
    font-size: 0.98rem;
  }

  .button {
    width: 100%;
  }

  .proof-row,
  .sample-grid,
  .sample-library-grid,
  .support-grid,
  .principles-grid {
    grid-template-columns: 1fr;
  }

  .principles-grid .principle-card:last-child {
    grid-column: auto;
    width: auto;
  }

  .experience-list {
    gap: 24px;
    padding-left: 24px;
  }

  .experience-list::before {
    left: 7px;
  }

  .experience-entry::before {
    left: -24px;
    width: 12px;
    height: 12px;
  }

  .experience-entry h3 {
    font-size: 1.26rem;
  }

  .experience-period {
    min-height: 30px;
    padding: 6px 10px;
    font-size: 0.72rem;
  }

  .section-label {
    font-size: 0.94rem;
    letter-spacing: 0.18em;
  }

  .project-card.feature,
  .project-card-simple,
  .proof-card,
  .snippet-card,
  .support-card,
  .contact-card,
  .skills-panel,
  .principle-card {
    padding: 18px;
  }

  .feature-image {
    min-height: 220px;
  }

  .social-link {
    width: 40px;
    height: 40px;
  }

  .hero-scroll {
    display: none;
  }
}

@keyframes topo-drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  100% {
    transform: translate3d(0, -18px, 0) scale(1.035);
  }
}

@keyframes topo-drift-glow {
  0% {
    transform: translate3d(-1%, 0, 0) scale(1.01);
  }

  100% {
    transform: translate3d(1.5%, -2%, 0) scale(1.06);
  }
}

@keyframes topo-glow {
  0%,
  100% {
    opacity: 0.22;
    filter: blur(10px) brightness(1.04);
  }

  50% {
    opacity: 0.34;
    filter: blur(12px) brightness(1.2);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}



