/* ==========================================================================
   style.css — Design tokens, layout, typography, everything
   ========================================================================== */


/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */

:root {
  /* ── Colors ── Warm cream palette (light theme) ────────────────────────── */
  --bg-primary: #FAF7F2;
  --bg-secondary: #F0EBE3;
  --bg-surface: #FFFFFF;
  --bg-contrast: #1C1917;
  --text-primary: #1C1917;
  --text-secondary: #57534E;
  --text-muted: #8A8580;
  --accent: #c9834e;
  --accent-hover: #B87A3D;
  --accent-glow: rgba(201, 131, 78, 0.15);
  --accent-deep: rgba(201, 131, 78, 0.06);

  /* ── Theme-adaptive borders & glass ─────────────────────────────────── */
  --border-subtle: rgba(0, 0, 0, 0.06);
  --border-light: rgba(0, 0, 0, 0.08);
  --border-medium: rgba(0, 0, 0, 0.12);
  --glass-bg: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(0, 0, 0, 0.05);

  /* ── Typography ────────────────────────────────────────────────────────── */
  --font-display: 'Instrument Serif', serif;
  --font-body: 'Inter', sans-serif;
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-bold: 400; /* Instrument Serif only has 400, relies on serif weight */

  /* ── Spacing ────────────────────────────────────────────────────────────── */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --space-2xl: 8rem;
  --section-padding: clamp(3rem, 8vh, 6rem);
  --content-width: 1200px;

  /* ── Transitions ────────────────────────────────────────────────────────── */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 0.3s;
  --duration-normal: 0.6s;
  --duration-slow: 1s;
}

/* ── Dark Theme ─────────────────────────────────────────────────────────── */

[data-theme="dark"] {
  --bg-primary: #0a0a0a;
  --bg-secondary: #141414;
  --bg-surface: #1a1a1a;
  --bg-contrast: #141414;
  --text-primary: #F5F5F5;
  --text-secondary: #A3A3A3;
  --text-muted: #888888;
  --accent: #c9834e;
  --accent-hover: #d99560;
  --accent-glow: rgba(201, 131, 78, 0.25);
  --accent-deep: rgba(201, 131, 78, 0.1);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-light: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.12);
  --glass-bg: rgba(20, 20, 20, 0.9);
  --glass-border: rgba(255, 255, 255, 0.06);
}


/* ==========================================================================
   2. CSS RESET & BASE
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-weight: var(--font-weight-regular);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.4s var(--ease-smooth), color 0.4s var(--ease-smooth);
}

.site-wrapper { overflow-x: hidden; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-primary);
  font-weight: 400;
  line-height: 1.15;
}

a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; }
::selection { background: var(--accent); color: #FFFFFF; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: rgba(201, 131, 78, 0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(201, 131, 78, 0.5); }


/* ==========================================================================
   3. UTILITIES
   ========================================================================== */

.container { max-width: var(--content-width); margin: 0 auto; padding: 0 var(--space-md); }
.section { padding: var(--section-padding) 0; position: relative; }


/* ==========================================================================
   4. GRAIN OVERLAY (site-wide film texture)
   ========================================================================== */

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  animation: grainShift 8s steps(4) infinite;
}


/* ==========================================================================
   5. LOADER
   ========================================================================== */

.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background-color: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.8s var(--ease-smooth),
              background-color 0.4s var(--ease-smooth);
}

.loader__court {
  position: relative;
  width: clamp(240px, 50vw, 400px);
  aspect-ratio: 4 / 3;
}

.loader__score {
  position: absolute;
  top: -2rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-style: italic;
  color: var(--text-muted);
  user-select: none;
  line-height: 1;
}
.loader__score--left  { left: 25%; transform: translateX(-50%); }
.loader__score--right { right: 25%; transform: translateX(50%); }

.loader__center-line {
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 0;
  border-left: 2px dashed var(--border-medium);
  transform: translateX(-1px);
}

.loader__paddle {
  position: absolute;
  width: 4px;
  height: 25%;
  background: var(--text-muted);
  border-radius: 2px;
}
.loader__paddle--left  { left: 0;  animation: loaderPaddleLeft 1.5s ease-in-out infinite; }
.loader__paddle--right { right: 0; animation: loaderPaddleRight 1.5s ease-in-out infinite; }

.loader__ball {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 1px;
  animation: loaderBall 1.5s linear infinite;
}

.loader.loaded { transform: translateY(-100%); }


/* ==========================================================================
   6. HERO — Pong canvas game
   ========================================================================== */

.hero {
  min-height: 100vh;
  min-height: 100svh; /* small viewport height — accounts for mobile browser chrome */
  padding: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero__scroll-cue {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  z-index: 1;
}

.hero__scroll-cue span {
  color: var(--text-muted);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  padding-left: 0.2em; /* offset trailing letter-spacing for visual centering */
}

.hero__scroll-arrow {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  transform-origin: top;
  animation: scrollBounce 2s ease-in-out infinite;
}

/* ── Hero animation states ─────────────────────────────────────────────── */

.hero [data-animate] {
  opacity: 0;
  transform: translateY(30px);
}

.hero [data-animate].revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity var(--duration-slow) var(--ease-smooth),
              transform var(--duration-slow) var(--ease-smooth);
}




/* ==========================================================================
   7. SITE NAV — Floating pill navigation
   ========================================================================== */

.site-nav {
  position: fixed;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: all 0.4s var(--ease-smooth);
}

.site-nav__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0.7rem 1.25rem;
}

.site-nav--compact {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.06);
}

.site-nav--compact .site-nav__inner {
  padding: 0.55rem 1.1rem;
}

.site-nav--hidden {
  transform: translateX(-50%) translateY(-120%);
  opacity: 0;
  pointer-events: none;
}

.site-nav__logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  transition: color var(--duration-fast);
  white-space: nowrap;
}

.site-nav__logo:hover {
  color: var(--accent);
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav__link {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-secondary);
  transition: color var(--duration-fast);
  position: relative;
  white-space: nowrap;
}

.site-nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--duration-fast);
  transform-origin: right;
}

.site-nav__link:hover { color: var(--text-primary); }
.site-nav__link:hover::after { transform: scaleX(1); transform-origin: left; }

.site-nav__link--active { color: var(--text-primary); }
.site-nav__link--active::after { transform: scaleX(1); transform-origin: left; }

/* ── Theme Toggle ──────────────────────────────────────────────────────── */

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  color: var(--text-secondary);
  transition: all var(--duration-fast);
  cursor: pointer;
  padding: 0;
  border: none;
  transform-style: preserve-3d;
  perspective: 200px;
}

.theme-toggle--flipping {
  pointer-events: none;
}

.theme-toggle:hover {
  color: var(--accent);
  background: var(--accent-deep);
}

/* Show sun in dark mode, moon in light mode */
.theme-toggle__sun { display: none; }
.theme-toggle__moon { display: block; }

[data-theme="dark"] .theme-toggle__sun { display: block; }
[data-theme="dark"] .theme-toggle__moon { display: none; }

/* ── Hamburger Button (hidden on desktop) ─────────────────────────────── */

.site-nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
}

.site-nav__burger-line {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: transform 0.3s var(--ease-smooth), opacity 0.3s var(--ease-smooth);
  transform-origin: center;
}

/* X morph when open */
.site-nav__burger--open .site-nav__burger-line:first-child {
  transform: translateY(3.25px) rotate(45deg);
}
.site-nav__burger--open .site-nav__burger-line:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

/* Menu wrapper — invisible on desktop */
.site-nav__menu {
  display: contents;
}

/* Backdrop — hidden on desktop */
.site-nav__backdrop {
  display: none;
}

/* Prevent scroll when menu open */
body.menu-open {
  overflow: hidden;
}


/* ==========================================================================
   8. WORK SHOWCASE — Large card gallery
   ========================================================================== */

.work-showcase {
  position: relative;
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

.work-ambient {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 30% 0%, rgba(201, 131, 78, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 100%, rgba(160, 100, 60, 0.04) 0%, transparent 40%);
}

.work-showcase__title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  margin-bottom: var(--space-xs);
}

.work-showcase__subtitle {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: var(--space-lg);
}

/* ── Work Gallery — Large vertical card list ───────────────────────────── */

.work-gallery {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── Work Card — Large horizontal layout ─────────────────────────────── */

.work-card {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  overflow: hidden;
  transition: transform 0.5s var(--ease-smooth), border-color 0.5s var(--ease-smooth), box-shadow 0.5s var(--ease-smooth);
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.work-card + .work-card {
  margin-top: -2rem;
}

.work-card:nth-child(odd) {
  transform: translateX(-2%) rotate(-0.8deg);
}

.work-card:nth-child(even) {
  transform: translateX(2%) rotate(0.8deg);
}

.work-card:hover {
  transform: translateX(0) rotate(0deg) scale(1.02);
  border-color: rgba(201, 131, 78, 0.25);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.15), 0 8px 24px rgba(201, 131, 78, 0.1);
  z-index: 2;
}

/* ── Card image area ─────────────────────────────────────────────────── */

.work-card__image {
  padding: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  min-height: 380px;
}

.work-card__image img {
  width: 100%;
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.12));
  transition: transform 0.5s var(--ease-smooth);
}

.work-card:hover .work-card__image img {
  transform: scale(1.05) translateY(-6px);
}

/* ── Card text content ───────────────────────────────────────────────── */

.work-card__content {
  padding: var(--space-xl) var(--space-xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.work-card__number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: var(--font-weight-bold);
  color: var(--accent);
  opacity: 0.15;
  line-height: 1;
  display: block;
  margin-bottom: var(--space-sm);
}

.work-card__title {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  margin-bottom: var(--space-sm);
}

.work-card__tagline {
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  max-width: 460px;
}


/* ── Scratch-to-reveal hidden message ─────────────────────────────── */

.work-card__reveal {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.3s;
  background: var(--bg-primary);
  border: 2px dashed var(--accent);
  border-radius: inherit;
}

.work-card__reveal--visible {
  opacity: 1;
}

.work-card__reveal-text {
  font-family: monospace;
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.work-card__scratch {
  z-index: 1;
}

/* ── Easter egg toast notification ────────────────────────────────── */

.easter-toast {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  z-index: 100000;
  font-family: monospace;
  font-size: 0.9rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid #c9834e;
  border-radius: 6px;
  padding: 0.6rem 1.4rem;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}

.easter-toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


/* ==========================================================================
   INTERACTIVE HOVER BUTTON — Expanding circle effect
   ========================================================================== */

.hover-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50px;
  border: 1px solid var(--border-medium);
  background: var(--bg-surface);
  padding: 0.65rem 1.6rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  text-decoration: none;
  min-width: 160px;
  height: 42px;
}

.hover-btn__text {
  display: inline-block;
  transform: translateX(2px);
  transition: all 0.3s var(--ease-smooth);
  position: relative;
  z-index: 2;
}

.hover-btn:hover .hover-btn__text {
  transform: translateX(3rem);
  opacity: 0;
}

.hover-btn__hover-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transform: translateX(3rem);
  opacity: 0;
  transition: all 0.3s var(--ease-smooth);
  color: #FFFFFF;
  z-index: 2;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

.hover-btn:hover .hover-btn__hover-content {
  transform: translateX(0);
  opacity: 1;
}

.hover-btn__circle {
  position: absolute;
  left: 20%;
  top: 40%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  transition: all 0.35s var(--ease-smooth);
  z-index: 1;
}

.hover-btn:hover .hover-btn__circle {
  left: -10%;
  top: -10%;
  width: 120%;
  height: 120%;
  border-radius: 50px;
}

/* ── Responsive — work gallery ───────────────────────────────────────── */

@media (max-width: 768px) {
  .work-card {
    grid-template-columns: 1fr;
  }
  .work-card:nth-child(odd),
  .work-card:nth-child(even) {
    transform: none;
  }
  .work-card + .work-card {
    margin-top: var(--space-lg);
  }
  .work-card:hover {
    transform: scale(1.015);
  }
  .work-card__image { min-height: 240px; padding: var(--space-lg); }
  .work-card__image img { max-width: 100%; }
  .work-card__content { padding: var(--space-lg); }
}


/* ==========================================================================
   8b. SIDE PROJECTS
   ========================================================================== */

.side-projects {
  padding: var(--space-2xl) 0;
}

.side-projects__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  text-align: center;
  margin-bottom: var(--space-xs);
}

.side-projects__subtitle {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: var(--space-lg);
}

/* Project Card — compact side project card */
.project-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle, var(--border-light));
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.4s var(--ease-smooth), border-color 0.3s ease, box-shadow 0.3s ease;
  max-width: 600px;
  margin: 0 auto;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 131, 78, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.project-card__image {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md) var(--space-sm);
  background:
    radial-gradient(ellipse at 30% 50%, rgba(201, 131, 78, 0.08) 0%, transparent 70%),
    var(--bg-secondary);
  position: relative;
}

.project-card__image img {
  width: 120px;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.15));
  transition: transform 0.4s var(--ease-smooth);
}

.project-card:hover .project-card__image img {
  transform: translateY(-4px) scale(1.03);
}

.project-card__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-md);
  gap: var(--space-xs);
}

.project-card__name {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 400;
}

.project-card__tagline {
  font-size: clamp(0.8rem, 1.1vw, 0.9rem);
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 380px;
}

@media (max-width: 768px) {
  .project-card {
    grid-template-columns: 1fr;
    max-width: 320px;
    text-align: center;
  }

  .project-card__content {
    padding: 0 var(--space-md) var(--space-md);
    align-items: center;
  }

  .project-card__tagline {
    max-width: 100%;
  }

  .project-card__image img {
    width: 100px;
  }
}


/* ==========================================================================
   9. ABOUT SECTION
   ========================================================================== */

.about {
  position: relative;
  overflow: hidden;
  padding-bottom: var(--space-lg);
}

.about__ambient {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(201, 131, 78, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(160, 100, 60, 0.04) 0%, transparent 40%);
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent-glow) 50%, transparent);
}

/* ── About intro — large statement heading ───────────────────────────── */

.about__label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: var(--space-lg);
}

.about__headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 800px;
  margin-bottom: var(--space-xl);
}

/* ── About grid — bio + details side by side ─────────────────────────── */

.about__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.about__bio p {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.about__bio p:last-child {
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ── About details — structured info blocks ──────────────────────────── */

.about__details {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding-top: 0.25rem;
}

.about__detail-group {
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border-subtle);
}

.about__detail-group:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.about__detail-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.about__detail-value {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.5;
}


/* ==========================================================================
   10. FOOTER — Floating rounded rectangle with retro grid
   ========================================================================== */

.site-footer {
  padding: 0 var(--space-md) var(--space-md);
}

.footer {
  position: relative;
  padding: clamp(4rem, 8vh, 6rem) var(--space-lg) var(--space-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06), 0 2px 12px rgba(0, 0, 0, 0.03);
}

.footer__content {
  position: relative;
  z-index: 2;
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-lg);
}

/* ── Footer CTA heading ──────────────────────────────────────────────── */

.footer__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.footer__heading {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.footer__heading em {
  color: var(--accent);
  font-style: italic;
}

.footer__subtext {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--text-secondary);
  max-width: 400px;
}

/* ── Footer action links ─────────────────────────────────────────────── */

.footer__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.footer__link-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.footer__pill-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 50px;
  transition: all var(--duration-fast) var(--ease-smooth);
}

.footer__pill-link:hover {
  color: var(--accent);
  border-color: rgba(201, 131, 78, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* Larger hover button variant */
.hover-btn--lg {
  min-width: 180px;
  height: 48px;
  padding: 0.75rem 2rem;
  font-size: 1rem;
}

/* ── Footer credit — sits outside the card ───────────────────────────── */

.site-footer__credit {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  padding: var(--space-md) 0 0;
}

.site-footer__hint {
  font-family: monospace;
  font-size: 0.65rem;
  color: var(--text-muted);
  opacity: 0.4;
  text-align: center;
  padding: 0.4rem 0 var(--space-md);
  letter-spacing: 0.05em;
}


/* ==========================================================================
   RETRO GRID — Animated perspective grid background
   ========================================================================== */

.retro-grid {
  pointer-events: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0.75;
  perspective: 200px;
  z-index: 1;
}

.retro-grid__plane {
  position: absolute;
  inset: 0;
  transform: rotateX(65deg);
}

.retro-grid__lines {
  background-repeat: repeat;
  background-size: 60px 60px;
  height: 300vh;
  inset: 0% 0px;
  margin-left: -50%;
  transform-origin: 100% 0 0;
  width: 600vw;
  animation: retroGridScroll 20s linear infinite;
  background-image:
    linear-gradient(to right, rgba(0, 0, 0, 0.15) 1px, transparent 0),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.15) 1px, transparent 0);
}

[data-theme="dark"] .retro-grid__lines {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.12) 1px, transparent 0),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.12) 1px, transparent 0);
}

.retro-grid__fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-surface) 0%, transparent 80%);
}

@keyframes retroGridScroll {
  0% { transform: translateY(-50%); }
  100% { transform: translateY(0); }
}

.retro-grid__lines--fast {
  animation-duration: 10s;
}


/* ==========================================================================
   11. CUSTOM CURSOR
   ========================================================================== */

body.has-custom-cursor,
body.has-custom-cursor a,
body.has-custom-cursor button { cursor: none; }

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10001;
  pointer-events: none;
  display: none;
}

body.has-custom-cursor .cursor { display: block; }

.cursor__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  position: absolute;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
}

.cursor__ring {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(201, 131, 78, 0.5);
  position: absolute;
  transform: translate(-50%, -50%);
  transition: width var(--duration-fast), height var(--duration-fast),
              border-color var(--duration-fast), opacity var(--duration-fast);
}

.cursor--hover .cursor__dot { width: 4px; height: 4px; background: var(--accent-hover); }
.cursor--hover .cursor__ring { width: 50px; height: 50px; border-color: rgba(201, 131, 78, 0.7); }
.cursor--click .cursor__ring { width: 30px; height: 30px; opacity: 0.8; }


/* ==========================================================================
   12. ACCESSIBILITY
   ========================================================================== */

.skip-link {
  position: fixed;
  top: -100%;
  left: var(--space-md);
  z-index: 10002;
  background: var(--accent);
  color: #FFFFFF;
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 8px 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  transition: top var(--duration-fast) var(--ease-smooth);
}

.skip-link:focus { top: 0; outline: none; }

*:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
*:focus:not(:focus-visible) { outline: none; }

.site-nav__link:focus-visible { color: var(--accent); }


/* ==========================================================================
   13. RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
  .about__grid { grid-template-columns: 1fr; gap: var(--space-xl); }

  /* ── Mobile hamburger nav ────────────────────────────────────────────── */
  .site-nav { border-radius: 20px; }

  .site-nav__inner {
    flex-wrap: wrap;
    gap: 0;
    padding: 0.6rem 1rem;
  }

  .site-nav__logo {
    font-size: 1rem;
    margin-right: auto;
  }

  .site-nav__burger {
    display: flex;
  }

  .site-nav__menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    width: 100%;
    order: 3;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease-smooth),
                opacity 0.3s var(--ease-smooth);
  }

  .site-nav__menu--open {
    max-height: 200px;
    opacity: 1;
    padding-top: 0.5rem;
    padding-bottom: 0.4rem;
  }

  .site-nav__links {
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
  }

  .site-nav__link {
    font-size: 1rem;
    padding: 0.5rem 1rem;
  }

  .site-nav__backdrop {
    position: fixed;
    inset: 0;
    z-index: 99;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease-smooth);
  }

  .site-nav__backdrop--visible {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }

  .site-footer { padding: 0 var(--space-sm) var(--space-sm); }
  .footer {
    padding: var(--space-xl) var(--space-md) var(--space-md);
    border-radius: 24px;
  }
  .footer__heading { font-size: clamp(2rem, 8vw, 3rem); }
  .footer__link-row { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 var(--space-sm); }
  .hero__scroll-cue { bottom: 1.5rem; }
  .hero__scroll-arrow { height: 30px; }
  .footer__heading { font-size: clamp(1.75rem, 8vw, 3rem); }

  .site-nav { top: 0.75rem; }

  .work-card__content { padding: var(--space-md); }
  .work-card__image { min-height: 200px; padding: var(--space-md); }

  .hover-btn { min-width: 140px; font-size: 0.8rem; padding: 0.5rem 1.2rem; height: 38px; }
}
