@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/fonts/cormorant-garamond-v21-latin-300.woff2') format('woff2');
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url('/fonts/cormorant-garamond-v21-latin-300italic.woff2') format('woff2');
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/cormorant-garamond-v21-latin-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/cormorant-garamond-v21-latin-italic.woff2') format('woff2');
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/cormorant-garamond-v21-latin-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/cormorant-garamond-v21-latin-600italic.woff2') format('woff2');
}

@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/space-mono-v17-latin-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/space-mono-v17-latin-700.woff2') format('woff2');
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

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

ul,
ol {
  list-style: none;
}

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

:root {
  --bg: #111111;
  --bg-raised: #181818;
  --bg-subtle: #202020;

  --fg: #f2f2f2;
  --fg-bright: #ffffff;
  --fg-dim: #a3a3a3;
  --fg-ghost: rgba(255, 255, 255, 0.05);
  --fg-line: rgba(255, 255, 255, 0.28);

  --text-primary: #f2f2f2;
  --text-secondary: #cfcfcf;
  --text-muted: #9a9a9a;
  --text-dim: #6e6e6e;
  --text-ghost: #454545;

  --border: rgba(255, 255, 255, 0.10);
  --border-mid: rgba(255, 255, 255, 0.20);

  --accent: #c8243f;
  --accent-bright: #e03050;
  --accent-dim: #8a1a2e;
  --accent-line: rgba(200, 36, 63, 0.40);
  --accent-ghost: rgba(200, 36, 63, 0.10);
  --accent-text: #d9364f;
  --accent-text-dim: #8a1a2e;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-mono: 'Space Mono', 'Courier New', monospace;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-serif);
  font-weight: 300;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.018'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.2;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 180px 180px;
  opacity: 0.45;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 48px;
  background: rgba(17, 17, 17, 0.28);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border);
  transition: background 0.4s var(--ease);
}

.nav.scrolled {
  background: rgba(17, 17, 17, 0.45);
}

.nav-logo {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 26px;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 8px;
  padding-left: 0.45em;
  transition: color 0.3s;
}

.nav-logo:hover {
  color: var(--fg-bright);
}

.nav-links {
  display: flex;
  gap: 44px;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s var(--ease);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--fg-bright);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.page {
  padding-top: 110px;
}

.section {
  padding: 96px 64px;
  border-top: 1px solid var(--border);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--fg-bright);
  margin-bottom: 56px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.18);
}

.section-label::after {
  content: '';
  display: block;
  width: 120px;
  height: 1px;
  background:
    linear-gradient(90deg,
      rgba(255, 255, 255, 0.10) 0%,
      rgba(255, 255, 255, 0.35) 30%,
      rgba(255, 255, 255, 0.85) 50%,
      rgba(200, 36, 63, 0.60) 72%,
      rgba(255, 255, 255, 0.10) 100%);
  background-size: 260% 100%;
  background-position: 120% 0;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.10);
  animation: section-line-sweep 3.8s ease-in-out infinite;
}

@keyframes section-line-sweep {
  0% {
    background-position: 140% 0;
    opacity: 0.35;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.06);
  }

  18% {
    opacity: 1;
  }

  50% {
    background-position: 0% 0;
    opacity: 0.9;
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.22);
  }

  82% {
    opacity: 1;
  }

  100% {
    background-position: -140% 0;
    opacity: 0.35;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.06);
  }
}

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

.project-card {
  background: var(--bg-raised);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 24px 80px rgba(0, 0, 0, 0.35);
  padding: 52px 48px;
  position: relative;
  overflow: visible;
  cursor: pointer;
  transition: background 0.4s var(--ease);
  text-decoration: none;
  color: inherit;
  display: block;
  border: 1px solid var(--border);
}

.project-card:hover {
  background: var(--bg-subtle);
  border-color: var(--fg-line);
}

.card-trace {
  position: absolute;
  inset: 0;
  overflow: visible;
  width: 100%;
  height: 100%;
  pointer-events: none;
  filter:
    drop-shadow(0 0 2px rgba(224, 48, 80, 0.70)) drop-shadow(0 0 6px rgba(200, 36, 63, 0.55)) drop-shadow(0 0 11px rgba(200, 36, 63, 0.30));
}

.card-trace path {
  fill: none;
  stroke: var(--accent-bright);
  stroke-width: 2px;
  transition: stroke-dashoffset 0.75s var(--ease);
}

.project-card:hover .card-trace path {
  stroke-dashoffset: 0 !important;
}

.project-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.project-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--fg);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.project-title {
  font-size: 32px;
  font-weight: 300;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 16px;
  transition: color 0.3s, text-shadow 0.3s;
}

.project-card:hover .project-title {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.55), 0 0 16px rgba(255, 255, 255, 0.25);
}

.project-desc {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-muted);
}

.project-arrow {
  position: absolute;
  bottom: 36px;
  right: 36px;
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--text-ghost);
  transition: color 0.3s, transform 0.3s var(--ease);
}

.project-card:hover .project-arrow {
  color: var(--accent);
  transform: translate(4px, -4px);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  background: var(--border);
}

.project-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.see-more {
  display: inline-block;
  margin-top: 48px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding-bottom: 6px;
  position: relative;
  transition: color 0.3s var(--ease),
    opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.see-more::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}

.see-more:hover {
  color: var(--fg-bright);
}

.see-more:hover::after {
  width: 100%;
}

.page-header {
  padding: 80px 64px 80px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.page-header-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 68% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.page-header-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--text-primary);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.page-header-tag::before {
  content: '— ';
  color: var(--accent-bright);
}

.page-header-title {
  font-size: clamp(56px, 6vw, 100px);
  font-weight: 300;
  line-height: 0.93;
}

.page-header-title em {
  font-style: italic;
  color: var(--fg-bright);
}

.page-header-sub {
  font-size: 18px;
  font-weight: 300;
  color: var(--text-muted);
  max-width: 560px;
  margin-top: 28px;
  line-height: 1.85;
}

.page-header-date {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--text-primary);
  margin-top: 20px;
}

.content-body {
  max-width: none;
  font-size: 19px;
  font-weight: 400;
  line-height: 2.0;
  color: var(--text-primary);
}

.prose>*:first-child {
  margin-top: 0;
}

.prose p {
  margin-bottom: 1.5em;
}

.prose h2 {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--fg-bright);
  line-height: 1.4;
  margin: 4.5em 0 1.6em;
}

.prose h2::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-line), transparent);
}

.prose h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--text-primary);
  font-size: 22px;
  margin: 1.8em 0 0.6em;
}

.prose h4 {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin: 1.8em 0 0.6em;
}

.prose a {
  color: var(--fg-bright);
  border-bottom: 1px solid var(--fg-line);
  transition: border-color 0.3s, color 0.3s;
}

.prose a:hover {
  border-color: var(--fg);
  color: var(--fg);
}

.prose strong {
  color: var(--text-primary);
  font-weight: 600;
}

.prose em {
  font-style: italic;
  color: var(--text-primary);
}

.prose ul,
.prose ol {
  margin: 0 0 1.5em;
  padding-left: 1.4em;
}

.prose ol {
  list-style: decimal;
}

.prose ul {
  list-style: none;
}

.prose ul li {
  position: relative;
}

.prose ul li::before {
  content: '—';
  position: absolute;
  left: -1.4em;
  color: var(--fg-dim);
}

.prose ol li::marker {
  color: var(--fg-dim);
  font-family: var(--font-mono);
  font-size: 0.85em;
}

.prose li {
  margin-bottom: 0.5em;
}

.prose>h1:first-child {
  display: none;
}

.prose ul li.story {
  display: grid;
  grid-template-columns: 56px 1fr;
  column-gap: 8px;
  row-gap: 4px;
  margin: 0;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  counter-increment: story;
}

.prose ul li.story:nth-child(-n+2) {
  border-top: 1px solid var(--border);
}

.prose ul li.story::before {
  content: counter(story, decimal-leading-zero);
  position: static;
  grid-row: 1 / span 2;
  padding-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--text-dim);
  transition: color 0.3s;
}

.prose ul li.story:hover::before {
  color: var(--accent);
}

.prose>p,
.prose>ul:not(:has(> li.story)),
.prose>ol,
.prose>blockquote,
.prose>pre,
.prose>table {
  max-width: 740px;
}

.prose ul:has(> li.story) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 56px;
  padding-left: 0;
  counter-reset: story;
}

.prose a.story-link {
  justify-self: start;
  font-size: 22px;
  line-height: 1.3;
  color: var(--text-primary);
  border-bottom: none;
  transition: color 0.3s, text-shadow 0.3s;
}

.prose a.story-link::after {
  content: ' ↗';
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-ghost);
  transition: color 0.3s;
}

.prose a.story-link:hover {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.55), 0 0 16px rgba(255, 255, 255, 0.25);
}

.prose a.story-link:hover::after {
  color: var(--accent);
}

.story-desc {
  grid-column: 2;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
}

.prose blockquote {
  border-left: 2px solid var(--accent-dim);
  padding: 4px 0 4px 28px;
  margin: 1.6em 0;
  color: var(--text-muted);
  font-style: italic;
}

.prose hr {
  border: none;
  height: 1px;
  background: var(--border-mid);
  margin: 2.5em 0;
}

.prose img {
  margin: 1.8em 0;
  border: 1px solid var(--border);
}

.prose code {
  font-family: var(--font-mono);
  font-size: 0.72em;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  padding: 2px 8px;
  color: var(--accent-text);
}

.prose pre {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  padding: 24px 28px;
  overflow-x: auto;
  margin: 1.6em 0;
}

.prose pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6em 0;
  font-size: 0.8em;
}

.prose th,
.prose td {
  text-align: left;
  padding: 12px 16px;
  border: 1px solid var(--border);
}

.prose th {
  font-family: var(--font-mono);
  font-size: 0.85em;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dim);
  background: var(--bg-raised);
}

.back-link {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-mid);
  padding-bottom: 4px;
  transition: color 0.3s, border-color 0.3s;
}

.back-link:hover {
  color: var(--fg-bright);
  border-color: var(--fg);
}

.empty-state {
  color: var(--text-ghost);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  padding: 40px 0;
  text-transform: uppercase;
}

.empty-state-grid {
  grid-column: 1 / -1;
}

.footer {
  padding: 36px 64px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-text {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

#hero {
  min-height: 55vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 80px 48px 60px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.55;
}

.hero-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.09) 1px, transparent 1.5px);
  background-size: 18px 18px;
  background-position: 9px 9px;
}

.hero-dots-glow {
  background-image: radial-gradient(circle, rgba(224, 48, 80, 0.9) 1.2px, transparent 1.8px);
  -webkit-mask-image: radial-gradient(circle 150px at var(--mx, -999px) var(--my, -999px), #000 0%, rgba(0, 0, 0, 0.35) 45%, transparent 100%);
  mask-image: radial-gradient(circle 150px at var(--mx, -999px) var(--my, -999px), #000 0%, rgba(0, 0, 0, 0.35) 45%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

#hero.pointer-in .hero-dots-glow {
  opacity: 1;
}

.hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 55% 32%, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.hero-rule {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--fg), transparent);
  margin-bottom: 20px;
}

.hero-tag {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--text-primary);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-tag::before {
  content: '— ';
  color: var(--accent-bright);
}

.hero-name {
  font-size: clamp(52px, 6vw, 110px);
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.hero-name em {
  font-style: italic;
  color: var(--fg-bright);
}

.hero-byline {
  font-size: 16.5px;
  font-weight: 300;
  color: var(--text-muted);
  max-width: 400px;
  line-height: 1.85;
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  color: var(--fg-dim);
  width: 24px;
  height: 24px;
  animation: pulse-bob 2s ease-in-out infinite;
  transition: opacity 0.5s, visibility 0.5s;
}

.hero-scroll.hidden {
  opacity: 0 !important;
  visibility: hidden;
  animation: none;
}

@keyframes pulse-bob {

  0%,
  100% {
    opacity: 0.4;
    transform: translateX(-50%) translateY(0);
  }

  50% {
    opacity: 1;
    transform: translateX(-50%) translateY(5px);
  }
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-headline {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--text-primary);
}

.about-headline em {
  font-style: italic;
  color: var(--fg-bright);
}

.about-text {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.95;
  color: var(--text-muted);
}

.contact-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 150px;
  padding: 18px 20px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
  text-decoration: none;
  color: inherit;
}

.contact-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0;
  background: var(--fg-ghost);
  transition: height 0.4s var(--ease);
}

.contact-link:hover {
  border-color: var(--fg-line);
  background: var(--bg-subtle);
  box-shadow: 0 0 22px -2px rgba(255, 255, 255, 0.14), 0 0 8px rgba(255, 255, 255, 0.08);
}

.contact-link:hover::before {
  height: 100%;
}

.contact-sigil {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  min-width: 28px;
  transition: color 0.3s;
  position: relative;
  z-index: 1;
}

.contact-link:hover .contact-sigil {
  color: var(--accent-bright);
}

.contact-name {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-primary);
  transition: color 0.3s;
  position: relative;
  z-index: 1;
}

.contact-arrow {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-ghost);
  transition: color 0.3s, transform 0.3s var(--ease);
  position: relative;
  z-index: 1;
}

.contact-link:hover .contact-arrow {
  color: var(--accent);
  transform: translate(3px, -3px);
}

.skills-row {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.skills-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 20px;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.skills-group+.skills-group {
  margin-top: 32px;
}

.skill-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--accent-text);
  border: 1px solid var(--accent-line);
  padding: 9px 16px;
  transition: border-color 0.3s, color 0.3s, text-shadow 0.3s, box-shadow 0.3s;
}

.skill-tag:hover {
  border-color: var(--accent-bright);
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.55), 0 0 16px rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 14px -2px rgba(200, 36, 63, 0.40);
}

.back-nav {
  padding: 28px 64px 0;
}

.back-nav-bottom {
  padding: 0 64px 64px;
}

.view-source {
  margin-top: 28px;
}

@media (max-width: 768px) {
  .nav {
    padding: 14px 24px;
  }

  .nav-links {
    gap: 20px;
  }

  .nav-links a {
    font-size: 10px;
  }

  .section {
    padding: 64px 24px;
  }

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

  .project-card {
    padding: 40px 28px;
  }

  .project-card:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .footer {
    padding: 28px;
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .page-header {
    padding: 52px 24px 60px;
  }

  #hero {
    padding: 90px 24px 52px;
    min-height: 45vh;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-links {
    grid-template-columns: 1fr;
  }

  .prose ul:has(> li.story) {
    grid-template-columns: 1fr;
  }

  .prose ul li.story:nth-child(2) {
    border-top: none;
  }

  .page {
    padding-top: 96px;
  }
}

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

  .js .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .hero-scroll {
    animation: none !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

::selection {
  background: var(--accent-dim);
  color: #ffffff;
}

.konami-canvas {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  height: 200px;
  pointer-events: none;
  z-index: 200;
}

.resume-dialog {
  margin: auto;
  width: min(420px, calc(100vw - 32px));
  padding: 36px 28px 28px;
  background: var(--bg-raised);
  color: var(--text-primary);
  border: 1px solid var(--border-mid);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

.resume-dialog::backdrop {
  background: rgba(17, 17, 17, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.resume-dialog-title {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--fg-bright);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.resume-dialog-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-line), transparent);
}

.resume-dialog[open] {
  animation: dialog-drop 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.resume-dialog[open]::backdrop {
  animation: backdrop-fade 0.4s ease-out;
}

.resume-dialog.closing {
  animation: dialog-lift 0.25s ease-in forwards;
}

.resume-dialog.closing::backdrop {
  animation: backdrop-fade 0.25s ease-in reverse forwards;
}

@keyframes dialog-drop {
  from {
    opacity: 0;
    transform: translateY(-60vh);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dialog-lift {
  to {
    opacity: 0;
    transform: translateY(-40px);
  }
}

@keyframes backdrop-fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.resume-dialog-actions {
  display: grid;
  gap: 12px;
}

.resume-option {
  display: grid;
  grid-template-columns: 56px 1fr 56px;
}

.resume-option .contact-name {
  text-align: center;
}

.resume-option .contact-arrow {
  justify-self: end;
}

.resume-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.3s;
}

.resume-close:hover {
  color: var(--accent-bright);
}