/* ===== Design Tokens ===== */
:root {
  color-scheme: light;
  --background: hsl(0 0% 100%);
  --foreground: hsl(222.2 84% 4.9%);
  --card: hsl(0 0% 100%);
  --card-foreground: hsl(222.2 84% 4.9%);
  --muted: hsl(210 40% 96.1%);
  --muted-foreground: hsl(215.4 16.3% 46.9%);
  --border: hsl(214.3 31.8% 91.4%);
  --input: hsl(214.3 31.8% 91.4%);
  --primary: hsl(222.2 47.4% 11.2%);
  --primary-foreground: hsl(210 40% 98%);
  --secondary: hsl(210 40% 96.1%);
  --secondary-foreground: hsl(222.2 47.4% 11.2%);
  --accent: hsl(210 40% 96.1%);
  --accent-foreground: hsl(222.2 47.4% 11.2%);
  --destructive: hsl(0 84.2% 60.2%);
  --radius: 0.5rem;
}

.dark {
  color-scheme: dark;
  --background: hsl(222.2 84% 4.9%);
  --foreground: hsl(210 40% 98%);
  --card: hsl(222.2 84% 4.9%);
  --card-foreground: hsl(210 40% 98%);
  --muted: hsl(217.2 32.6% 17.5%);
  --muted-foreground: hsl(215 20.2% 65.1%);
  --border: hsl(217.2 32.6% 17.5%);
  --input: hsl(217.2 32.6% 17.5%);
  --primary: hsl(210 40% 98%);
  --primary-foreground: hsl(222.2 47.4% 11.2%);
  --secondary: hsl(217.2 32.6% 17.5%);
  --secondary-foreground: hsl(210 40% 98%);
  --accent: hsl(217.2 32.6% 17.5%);
  --accent-foreground: hsl(210 40% 98%);
}

/* ===== Reset + Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; }

body {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: inherit; }
a:hover { opacity: 0.75; }

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

/* ===== Layout ===== */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  border-bottom: 4px solid var(--foreground);
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--background);
}

.holiday-lights {
  display: none;
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: -2.85rem;
  height: 2.85rem;
  align-items: flex-start;
  justify-content: space-between;
  pointer-events: none;
}

.holiday-season .holiday-lights { display: flex; }
.holiday-season .site-main { padding-top: 4.25rem; }

.holiday-cord {
  position: absolute;
  left: 0;
  right: 0;
  top: 0.15rem;
  width: 100%;
  height: 1.45rem;
  fill: none;
  stroke: var(--foreground);
  stroke-linecap: round;
  stroke-width: 3;
  opacity: 0.5;
}

.holiday-light {
  --bulb-color: #ef4444;
  --light-drop: 0.45rem;
  position: relative;
  z-index: 1;
  width: 0.55rem;
  height: 0.8rem;
  margin-top: calc(1.25rem + var(--light-drop));
  border: 2px solid var(--foreground);
  border-radius: 999px 999px 45% 45%;
  background: var(--bulb-color);
  box-shadow: 0 0 0.2rem var(--bulb-color), 0 0 0.55rem var(--bulb-color);
  opacity: 0.85;
  animation: holiday-twinkle 2.6s ease-in-out infinite;
}

.holiday-light::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -0.5rem;
  width: 2px;
  height: 0.5rem;
  background: var(--foreground);
  transform: translateX(-50%);
  opacity: 0.8;
}

.holiday-light:nth-of-type(4n + 1) { --bulb-color: #ef4444; }
.holiday-light:nth-of-type(4n + 2) { --bulb-color: #22c55e; }
.holiday-light:nth-of-type(4n + 3) { --bulb-color: #facc15; }
.holiday-light:nth-of-type(4n) { --bulb-color: #38bdf8; }
.holiday-light:nth-of-type(3n + 1) { --light-drop: 0.55rem; animation-delay: -0.25s; }
.holiday-light:nth-of-type(3n + 2) { --light-drop: 0.15rem; animation-delay: -0.95s; }
.holiday-light:nth-of-type(3n) { --light-drop: 0.35rem; animation-delay: -1.75s; }
.holiday-light:nth-of-type(5n) { animation-duration: 1.9s; }
.holiday-light:nth-of-type(5n + 2) { animation-duration: 3.2s; }

@keyframes holiday-twinkle {
  0%, 100% {
    opacity: 0.45;
    filter: saturate(0.7) brightness(0.75);
    box-shadow: 0 0 0.15rem var(--bulb-color), 0 0 0.35rem var(--bulb-color);
  }
  42% {
    opacity: 1;
    filter: saturate(1.4) brightness(1.45);
    box-shadow: 0 0 0.45rem var(--bulb-color), 0 0 1.1rem var(--bulb-color);
  }
  58% {
    opacity: 0.68;
    filter: saturate(0.95) brightness(0.95);
    box-shadow: 0 0 0.25rem var(--bulb-color), 0 0 0.65rem var(--bulb-color);
  }
}

.holiday-snow {
  position: fixed;
  inset: 0;
  z-index: 90;
  overflow: hidden;
  pointer-events: none;
}

.holiday-flake {
  position: absolute;
  top: -2rem;
  left: var(--flake-left);
  color: var(--foreground);
  font-size: var(--flake-size);
  font-weight: 700;
  line-height: 1;
  opacity: var(--flake-opacity);
  text-shadow: 0 0 0.35rem var(--background);
  animation: holiday-snowfall var(--flake-duration) linear infinite;
  animation-delay: var(--flake-delay);
  will-change: transform;
}

@keyframes holiday-snowfall {
  from { transform: translate3d(0, -10vh, 0) rotate(0deg); }
  to { transform: translate3d(var(--flake-drift), 112vh, 0) rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .holiday-light { animation: none; opacity: 0.85; filter: none; }
  .holiday-snow { display: none; }
}

.nav-brand {
  font-weight: 900;
  font-size: 1.125rem;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  text-decoration: none;
}

/* ── Dropdown menu ── */
.nav-menu { position: relative; }

.nav-menu-btn {
  background: var(--foreground);
  color: var(--background);
  border: 4px solid var(--foreground);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.4rem 1.25rem;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--foreground);
  transition: box-shadow 0.1s, transform 0.1s;
}

.nav-menu-btn:hover {
  box-shadow: none;
  transform: translate(4px, 4px);
}

.nav-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 16rem;
  border: 4px solid var(--foreground);
  background: var(--background);
  box-shadow: 8px 8px 0 var(--foreground);
  z-index: 200;
}

.nav-dropdown.open { display: block; }

.nav-dropdown-section { border-bottom: 2px solid var(--foreground); }
.nav-dropdown-section:last-child { border-bottom: none; }

.nav-dropdown-label {
  background: var(--foreground);
  color: var(--background);
  padding: 0.5rem 1rem;
  font-size: 0.6875rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.nav-dropdown-item {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: var(--foreground);
  background: var(--background);
  border: none;
  border-bottom: 2px solid var(--border);
  cursor: pointer;
  text-align: left;
  transition: background 0.1s, color 0.1s;
}

.nav-dropdown-item:last-child { border-bottom: none; }
.nav-dropdown-item:hover { background: var(--foreground); color: var(--background); opacity: 1; }

/* Show correct theme label */
.dark .theme-label-dark { display: none; }
.dark .theme-label-light { display: inline; }
.theme-label-dark { display: inline; }
.theme-label-light { display: none; }

.site-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.apple-music-bar {
  --apple-music-accent: #ff2d55;
  --apple-music-warm: #f8e16c;
  border-top: 4px solid var(--foreground);
  border-bottom: 4px solid var(--foreground);
  background: var(--foreground);
  color: var(--background);
}

.apple-music-shell {
  width: 100%;
  padding: 0.35rem 2rem;
}

.apple-music-compact {
  display: grid;
  grid-template-columns: 2.8rem minmax(0, 1fr) max-content;
  align-items: center;
  gap: 0.65rem;
}

.apple-music-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.apple-music-art-link {
  display: block;
  width: 2.8rem;
  aspect-ratio: 1 / 1;
  border: 3px solid var(--background);
  background: var(--apple-music-accent);
  box-shadow: 3px 3px 0 var(--apple-music-warm);
  transform: rotate(-1deg);
  overflow: hidden;
}

.apple-music-art-link:hover {
  opacity: 1;
  transform: rotate(1deg) translate(-2px, -2px);
}

.apple-music-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.apple-music-copy {
  min-width: 0;
  justify-self: start;
}

.apple-music-kicker {
  display: inline-block;
  margin-bottom: 0.12rem;
  padding: 0.08rem 0.3rem;
  background: var(--apple-music-accent);
  color: #fff;
  font-size: 0.5625rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.apple-music-title {
  display: block;
  width: fit-content;
  max-width: 100%;
  color: var(--background);
  font-size: clamp(0.875rem, 1.2vw, 1.05rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.apple-music-title:hover {
  color: var(--apple-music-warm);
  opacity: 1;
}

.apple-music-meta {
  margin-top: 0.12rem;
  color: var(--background);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.78;
}

.apple-music-meta-sep {
  display: inline-block;
  margin: 0 0.25rem;
  color: var(--apple-music-warm);
  opacity: 1;
}

.apple-music-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  justify-self: end;
  min-width: max-content;
}

.apple-music-play-btn,
.apple-music-expand-btn {
  font-family: inherit;
  font-weight: 900;
  color: var(--background);
  background: var(--apple-music-accent);
  border: 3px solid var(--background);
  box-shadow: 3px 3px 0 var(--apple-music-warm);
  cursor: pointer;
  transition: box-shadow 0.1s, transform 0.1s, background 0.1s, color 0.1s;
}

.apple-music-play-btn:hover,
.apple-music-expand-btn:hover {
  opacity: 1;
  box-shadow: none;
  transform: translate(3px, 3px);
}

.apple-music-play-btn {
  position: relative;
  width: 2.3rem;
  height: 2.3rem;
  flex: 0 0 auto;
  border-radius: 999px;
}

.apple-music-play-icon,
.apple-music-pause-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.apple-music-play-icon::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  margin-left: 0.18rem;
  border-top: 0.5rem solid transparent;
  border-bottom: 0.5rem solid transparent;
  border-left: 0.72rem solid var(--background);
}

.apple-music-pause-icon {
  display: none;
  gap: 0.3rem;
}

.apple-music-pause-icon::before,
.apple-music-pause-icon::after {
  content: "";
  display: block;
  width: 0.25rem;
  height: 0.9rem;
  background: var(--background);
}

.apple-music-play-btn.is-playing .apple-music-play-icon {
  display: none;
}

.apple-music-play-btn.is-playing .apple-music-pause-icon {
  display: flex;
}

.apple-music-expand-btn {
  display: inline-flex;
  align-items: center;
  min-height: 2.05rem;
  padding: 0.28rem 0.6rem;
  font-size: 0.625rem;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.apple-music-expand-hide {
  display: none;
}

.apple-music-toggle:checked ~ .apple-music-compact .apple-music-expand-show {
  display: none;
}

.apple-music-toggle:checked ~ .apple-music-compact .apple-music-expand-hide {
  display: inline;
}

.apple-music-player {
  display: none;
  margin-top: 0.45rem;
  padding: 0.45rem;
  border: 3px solid var(--background);
  background:
    linear-gradient(135deg, var(--apple-music-accent) 0 18%, transparent 18%),
    var(--background);
  box-shadow: 5px 5px 0 var(--apple-music-accent);
}

.apple-music-toggle:checked ~ .apple-music-player {
  display: block;
}

.apple-music-frame {
  display: block;
  width: 100%;
  height: 150px;
  border: 0;
  overflow: hidden;
  background: transparent;
}

@media (max-width: 860px) {
  .apple-music-compact {
    grid-template-columns: 3rem minmax(0, 1fr) max-content;
  }

  .apple-music-art-link {
    width: 3rem;
  }
}

@media (max-width: 520px) {
  .apple-music-shell {
    padding: 0.5rem 0.65rem;
  }

  .apple-music-compact {
    grid-template-columns: 2.55rem minmax(0, 1fr) max-content;
    gap: 0.5rem;
  }

  .apple-music-art-link {
    width: 2.55rem;
    box-shadow: 3px 3px 0 var(--apple-music-warm);
  }

  .apple-music-kicker {
    display: none;
  }

  .apple-music-title {
    font-size: 0.8125rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .apple-music-meta {
    margin-top: 0.12rem;
    font-size: 0.5625rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .apple-music-actions {
    width: auto;
    gap: 0.4rem;
  }

  .apple-music-play-btn {
    width: 2.35rem;
    height: 2.35rem;
  }

  .apple-music-expand-btn {
    flex: 0 0 auto;
    min-height: 2.2rem;
    padding: 0.3rem 0.5rem;
    font-size: 0.5625rem;
  }
}

.site-footer {
  border-top: 2px solid var(--foreground);
  padding: 1.5rem 2rem;
  text-align: center;
}

.footer-text {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.footer-sep {
  opacity: 0.5;
  margin: 0 0.125rem;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--muted-foreground);
  transition: color 0.15s, opacity 0.15s;
}

.footer-social-link:hover {
  color: var(--foreground);
  opacity: 1;
}

.footer-social-link svg {
  width: 0.9375rem;
  height: 0.9375rem;
  max-width: 15px;
  max-height: 15px;
  flex-shrink: 0;
}

.footer-sep {
  opacity: 0.5;
  margin: 0 0.125rem;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--muted-foreground);
  transition: color 0.15s, opacity 0.15s;
}

.footer-social-link:hover {
  color: var(--foreground);
  opacity: 1;
}

.footer-social-link svg {
  width: 0.9375rem;
  height: 0.9375rem;
  max-width: 15px;
  max-height: 15px;
  flex-shrink: 0;
}

.footer-sep {
  opacity: 0.5;
  margin: 0 0.125rem;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  color: var(--muted-foreground);
  transition: color 0.15s, opacity 0.15s;
}

.footer-social-link:hover {
  color: var(--foreground);
  opacity: 1;
}

.footer-social-link svg {
  width: 0.9375rem;
  height: 0.9375rem;
}

.footer-socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 0.75rem;
}

.footer-social-link {
  display: inline-flex;
  color: var(--muted-foreground);
  transition: color 0.15s, opacity 0.15s;
}

.footer-social-link:hover {
  color: var(--foreground);
  opacity: 1;
}

.footer-social-link svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* ===== Utility Classes ===== */
.no-print { }
.tag {
  border: 2px solid var(--foreground);
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ===== Print ===== */
@media print {
  @page { margin: 0.5in; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body { background: white !important; color: black !important; }
  :root, .dark {
    --background: hsl(0 0% 100%) !important;
    --foreground: hsl(222.2 84% 4.9%) !important;
    --muted-foreground: hsl(215.4 16.3% 46.9%) !important;
  }
  .site-nav, .site-footer, .apple-music-bar, .holiday-snow, .no-print { display: none !important; }
}

/* ===== Resume Page ===== */
.resume-page { width: 100%; }
.resume-container { max-width: 56rem; margin: 0 auto; display: flex; flex-direction: column; gap: 3rem; }
.resume-print-btn-row { display: flex; justify-content: flex-end; flex-direction: column; align-items: flex-end; gap: 0.5rem; }
.resume-print-btn {
  font-family: inherit;
  border: 2px solid var(--foreground);
  background: none;
  color: var(--foreground);
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  cursor: pointer;
}
.resume-print-btn:hover { background: var(--foreground); color: var(--background); }
.resume-print-tip { font-size: 0.75rem; color: var(--muted-foreground); }
.resume-name { font-size: clamp(2.5rem, 8vw, 4rem); font-weight: 900; text-transform: uppercase; line-height: 0.9; letter-spacing: -0.02em; }
.resume-name-line { border-bottom: 4px solid var(--foreground); padding-bottom: 0.25rem; margin-bottom: 0.25rem; }
.resume-tagline { display: flex; align-items: center; gap: 1.5rem; margin-top: 1.5rem; flex-wrap: wrap; }
.resume-site-link { border: 2px solid var(--foreground); padding: 0.25rem 0.75rem; font-size: 0.75rem; text-transform: uppercase; text-decoration: none; }
.resume-section { border: 4px solid var(--foreground); padding: 1.5rem 2rem; }
.svg-border-inner > .resume-section { border: none; }
.svg-border-inner > .resume-site-link { border: none; }
.resume-section-title { font-size: 1.25rem; font-weight: 900; text-transform: uppercase; border-bottom: 2px solid var(--foreground); padding-bottom: 0.75rem; margin-bottom: 1.5rem; }
.resume-intro p { font-size: 0.9375rem; line-height: 1.7; margin-bottom: 1rem; }
.resume-intro p:last-child { margin-bottom: 0; }
.resume-items { display: flex; flex-direction: column; gap: 1.25rem; }
.resume-item { border-bottom: 2px solid var(--foreground); padding-bottom: 1.25rem; }
.resume-item:last-child { border-bottom: none; padding-bottom: 0; }
.resume-item-title { font-size: 1.0625rem; font-weight: 900; text-transform: uppercase; }
.resume-item-subtitle { font-size: 0.875rem; margin-top: 0.25rem; color: var(--muted-foreground); }
.resume-item-details { list-style: none; margin-top: 0.5rem; display: flex; flex-direction: column; gap: 0.25rem; }
.resume-item-details li { font-size: 0.875rem; color: var(--muted-foreground); padding-left: 1rem; position: relative; }
.resume-item-details li::before { content: "•"; position: absolute; left: 0; }
.resume-skills { display: flex; flex-direction: column; gap: 1.25rem; }
.resume-skill-category { font-size: 1rem; font-weight: 900; text-transform: uppercase; margin-bottom: 0.5rem; }
.resume-skill-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.resume-skill-tag { border: 2px solid var(--foreground); padding: 0.125rem 0.75rem; font-size: 0.8125rem; }

@media print {
  .resume-container { gap: 1.25rem; }
  .resume-section { border: none; padding: 0; }
  .resume-section-title { font-size: 0.75rem; margin-bottom: 0.5rem; }
  .resume-item-title { font-size: 0.75rem; }
  .resume-item-subtitle { font-size: 0.6875rem; }
  .resume-item-details li { font-size: 0.6875rem; }
  .resume-name { font-size: 2.5rem; }
}

/* ===== Contract Page v2 ===== */
.cv2-page { display: flex; flex-direction: column; gap: 4rem; }

/* Hero */
.cv2-hero { border-bottom: 4px solid var(--foreground); padding-bottom: 2.5rem; }
.cv2-hero-eyebrow { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--muted-foreground); margin-bottom: 0.75rem; }
.cv2-hero-title { font-size: clamp(4rem, 12vw, 8rem); font-weight: 900; text-transform: uppercase; line-height: 0.88; letter-spacing: -0.03em; margin-bottom: 1.5rem; }
.cv2-hero-title-line { display: block; }
.cv2-hero-title-line--accent { background: var(--foreground); color: var(--background); padding: 0.05em 0.2em; width: fit-content; }
.cv2-hero-intro { font-size: 1.0625rem; line-height: 1.7; max-width: 52rem; margin-bottom: 1.5rem; color: var(--muted-foreground); }
.cv2-hero-pills { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.cv2-pill { display: inline-block; border: 2px solid var(--foreground); padding: 0.375rem 0.875rem; font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; }
.cv2-pill--clear { background: transparent; }
.cv2-pill-svg .svg-border-inner { background: transparent; }

/* Services Grid */
.cv2-services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) { .cv2-services-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; } }

.cv2-service-card {
  border: 4px solid var(--foreground);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: transform 0.2s, box-shadow 0.2s;
  background: var(--background);
}
.cv2-service-card:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--foreground); }
.cv2-service-featured .svg-border-inner > .cv2-service-card,
.svg-border-inner .cv2-service-card { border: none; }
.svg-border-inner .cv2-service-card:hover { transform: none; box-shadow: none; }

.cv2-service-card-top { display: flex; align-items: center; justify-content: space-between; }
.cv2-service-num { font-size: 0.6875rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.2em; color: var(--muted-foreground); }
.cv2-service-badge { font-size: 0.625rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.15em; background: var(--foreground); color: var(--background); padding: 0.2rem 0.5rem; }
.cv2-service-title { font-size: clamp(1.25rem, 2.5vw, 1.625rem); font-weight: 900; text-transform: uppercase; letter-spacing: -0.01em; line-height: 1; margin: 0; }
.cv2-service-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.625rem; border-top: 2px solid var(--foreground); padding-top: 1rem; }
.cv2-service-item { font-size: 0.875rem; line-height: 1.5; }
.cv2-service-item-label { font-weight: 900; text-transform: uppercase; font-size: 0.8125rem; }
.cv2-service-item-text { color: var(--muted-foreground); }

/* How I Work */
.cv2-section-title { font-size: clamp(1.5rem, 3.5vw, 2.5rem); font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em; border-bottom: 4px solid var(--foreground); padding-bottom: 0.75rem; margin-bottom: 2rem; }
.cv2-section-title--inset { margin-bottom: 1.5rem; }

.cv2-process-steps { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .cv2-process-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cv2-process-steps { grid-template-columns: repeat(4, 1fr); } }

.cv2-process-step { border-left: 4px solid var(--foreground); padding-left: 1.25rem; }
.cv2-process-step-num { font-size: 2.5rem; font-weight: 900; line-height: 1; color: var(--muted-foreground); margin-bottom: 0.5rem; letter-spacing: -0.04em; }
.cv2-process-step-label { font-size: 1rem; font-weight: 900; text-transform: uppercase; letter-spacing: -0.01em; margin-bottom: 0.5rem; }
.cv2-process-step-text { font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.6; margin: 0; }

/* Past Work */
.cv2-past-inner { padding: 2rem 2.5rem; }

.cv2-past-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.875rem; }
@media (min-width: 768px) { .cv2-past-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 2.5rem; } }

.cv2-past-item { font-size: 0.9375rem; line-height: 1.55; padding-left: 1.5rem; position: relative; }
.cv2-past-item::before { content: "\2192"; position: absolute; left: 0; font-weight: 900; }

/* CTA Footer */
.cv2-cta-inner { padding: 2.5rem 3rem; display: flex; flex-direction: column; gap: 0.75rem; align-items: flex-start; }
.cv2-cta-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--muted-foreground); margin: 0; }
.cv2-cta-email { font-size: clamp(1.125rem, 2.5vw, 1.75rem); font-weight: 900; text-transform: uppercase; text-decoration: none; letter-spacing: -0.01em; color: var(--foreground); }
.cv2-cta-email:hover { text-decoration: underline; opacity: 1; }
.cv2-cta-sub { font-size: 0.8125rem; color: var(--muted-foreground); margin: 0; }

/* ===== Garden Pages (Software / Audio / Foodie) ===== */
.garden-page { display: flex; flex-direction: column; gap: 3rem; }
.garden-header-label { font-size: 0.75rem; text-transform: uppercase; color: var(--muted-foreground); margin-bottom: 0.5rem; }
.garden-header-title { font-size: clamp(2rem, 5vw, 3rem); font-weight: 900; text-transform: uppercase; line-height: 0.95; letter-spacing: -0.02em; border-bottom: 4px solid var(--foreground); padding-bottom: 0.5rem; }
.garden-intro { font-size: 0.9375rem; line-height: 1.7; }
.garden-section-title { font-size: 1.25rem; font-weight: 900; text-transform: uppercase; border-bottom: 2px solid var(--foreground); padding-bottom: 0.5rem; margin-bottom: 1.5rem; }
.garden-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.garden-item { border: 2px solid var(--foreground); padding: 1rem 1.25rem; }
.garden-item-title { font-weight: 900; font-size: 0.875rem; text-transform: uppercase; }
.garden-item a { text-decoration: underline; }
.garden-item-text { font-size: 0.875rem; color: var(--muted-foreground); margin-top: 0.25rem; }
.garden-item--deprecated { opacity: 0.5; }
.garden-item--deprecated .garden-item-title { text-decoration: line-through; }
.garden-item-image { width: 100%; height: 8rem; object-fit: contain; margin-bottom: 0.5rem; }
.garden-item-rating { font-size: 0.875rem; color: var(--muted-foreground); margin-top: 0.25rem; }
.garden-item-rating-num { font-size: 0.75rem; }

/* ===== AI Page ===== */
.ai-page { display: flex; flex-direction: column; gap: 3rem; }
.ai-header { }
.ai-header-label { font-size: 0.75rem; text-transform: uppercase; color: var(--muted-foreground); margin-bottom: 0.5rem; letter-spacing: 0.1em; }
.ai-header-title { font-size: clamp(3rem, 8vw, 5rem); font-weight: 900; text-transform: uppercase; line-height: 0.9; letter-spacing: -0.02em; border-bottom: 4px solid var(--foreground); padding-bottom: 0.5rem; }
.ai-header-sub { font-size: 0.9375rem; color: var(--muted-foreground); margin-top: 1rem; border-left: 4px solid var(--border); padding-left: 1rem; }

.ai-stack-section { }

.ai-stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0;
}
.ai-stack-item {
  padding: 1.5rem;
  border: 2px solid var(--foreground);
  margin: -1px;
  transition: background 0.15s, color 0.15s;
}
.ai-stack-item:hover {
  background: var(--foreground);
  color: var(--background);
  z-index: 1;
}
.ai-stack-item-role {
  font-size: 0.625rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
}
.ai-stack-item:hover .ai-stack-item-role { color: var(--muted); }
.ai-stack-item-name {
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0.75rem;
}
.ai-stack-item-desc {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  line-height: 1.5;
}
.ai-stack-item:hover .ai-stack-item-desc { color: var(--muted); }
.ai-stack-item-linked {
  cursor: pointer;
}
.ai-stack-item-linked:hover {
  transform: translateY(-2px);
  box-shadow: 4px 4px 0 var(--foreground);
}

.ai-posts-section { }
.ai-posts-title {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  font-size: 1.25rem;
  font-weight: 900;
  text-transform: uppercase;
  border-bottom: 4px solid var(--foreground);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}
.ai-posts-title-count {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  font-weight: normal;
}
.ai-posts-list { display: flex; flex-direction: column; gap: 0; }
.ai-post-item { border: 2px solid var(--foreground); margin-top: -2px; }
.ai-post-link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}
.ai-post-link:hover { background: var(--muted); }
.ai-post-meta { }
.ai-post-date { font-size: 0.75rem; text-transform: uppercase; color: var(--muted-foreground); white-space: nowrap; }
.ai-post-content { }
.ai-post-title { font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: -0.01em; line-height: 1.2; margin-bottom: 0.25rem; }
.ai-post-excerpt { font-size: 0.8125rem; color: var(--muted-foreground); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ai-post-arrow { font-size: 1.5rem; font-weight: 900; opacity: 0; transition: opacity 0.15s, transform 0.15s; }
.ai-post-link:hover .ai-post-arrow { opacity: 1; transform: translateX(4px); }

/* ===== Blog Pages ===== */
.blog-listing-page { display: flex; flex-direction: column; gap: 3rem; }
.blog-listing-header { }
.blog-listing-label { font-size: 0.75rem; text-transform: uppercase; color: var(--muted-foreground); margin-bottom: 0.5rem; letter-spacing: 0.1em; }
.blog-listing-title { font-size: clamp(3rem, 8vw, 5rem); font-weight: 900; text-transform: uppercase; line-height: 0.9; letter-spacing: -0.02em; border-bottom: 4px solid var(--foreground); padding-bottom: 0.5rem; }
.blog-listing-title-sub { display: block; color: var(--muted-foreground); font-size: 0.6em; }
.blog-listing-tagline { font-size: 0.9375rem; color: var(--muted-foreground); margin-top: 1rem; border-left: 4px solid var(--border); padding-left: 1rem; }
.blog-listing-count { font-size: 0.875rem; color: var(--muted-foreground); margin-top: 0.5rem; }
/* Blog listing — cascading multi-column grid.
   grid-auto-flow: dense lets short micros backfill gaps left by wide articles,
   and align-self: start keeps each card at its natural height (no row-stretch). */
.blog-listing {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  grid-auto-flow: dense;
}
@media (min-width: 768px) {
  .blog-listing { grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }
}
@media (min-width: 1280px) {
  .blog-listing { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}
.blog-listing-item {
  align-self: start;
  background: var(--background);
  border: 2px solid var(--foreground);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.blog-listing-item:hover {
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 var(--foreground);
}
.blog-listing-item--wide { grid-column: span 1; }
@media (min-width: 768px) {
  .blog-listing-item--wide { grid-column: span 2; }
}
.blog-listing-item--micro {
  border-color: var(--border);
  background: var(--muted);
}
.blog-listing-item-link { display: block; text-decoration: none; color: inherit; }
.blog-listing-item-link:hover { opacity: 1; }
.blog-listing-item-link:hover .blog-listing-item-title { text-decoration: underline; }
.blog-listing-cover {
  overflow: hidden;
  border-bottom: 2px solid var(--foreground);
}
.blog-listing-cover img {
  width: 100%;
  height: 12rem;
  object-fit: cover;
  display: block;
  filter: grayscale(1);
  transition: filter 0.3s ease, transform 0.4s ease;
}
.blog-listing-item:hover .blog-listing-cover img {
  filter: grayscale(0);
  transform: scale(1.03);
}
.blog-listing-item--wide .blog-listing-cover img { height: 16rem; }
@media (min-width: 768px) {
  .blog-listing-item--wide .blog-listing-cover img { height: 20rem; }
}
.blog-listing-item-body { padding: 1.25rem 1.5rem; }
.blog-listing-item--wide .blog-listing-item-body { padding: 1.75rem 2rem; }
.blog-listing-item-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.blog-listing-item-type {
  background: var(--foreground);
  color: var(--background);
  padding: 0.125rem 0.5rem;
  font-weight: 900;
  font-size: 0.7rem;
}
.blog-listing-item-type--micro { background: var(--muted-foreground); }
.blog-listing-item-title {
  font-size: 1.25rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  line-height: 1.1;
}
.blog-listing-item--micro .blog-listing-item-title { font-size: 1rem; }
.blog-listing-item--wide .blog-listing-item-title { font-size: 1.75rem; }
@media (min-width: 768px) {
  .blog-listing-item--wide .blog-listing-item-title { font-size: 2.25rem; }
}
.blog-listing-item-excerpt {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}
.blog-listing-item--wide .blog-listing-item-excerpt { font-size: 1rem; }
.blog-listing-item-tags { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.blog-listing-item-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.blog-listing-item-arrow { transition: transform 0.2s ease; }
.blog-listing-item:hover .blog-listing-item-arrow { transform: translateX(4px); }
.blog-tag { border: 2px solid var(--foreground); padding: 0.0625rem 0.5rem; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; }

/* Blog Post */
.blog-post-page { max-width: 42rem; margin: 0 auto; }
.blog-post-header { margin-bottom: 2rem; border-bottom: 4px solid var(--foreground); padding-bottom: 1.5rem; }
.blog-post-meta { display: flex; align-items: center; gap: 0.75rem; font-size: 0.75rem; text-transform: uppercase; color: var(--muted-foreground); margin-bottom: 1rem; flex-wrap: wrap; }
.blog-post-title { font-size: clamp(1.75rem, 5vw, 2.5rem); font-weight: 900; text-transform: uppercase; line-height: 1.1; margin-bottom: 1rem; }
.blog-post-cover img { width: 100%; margin-top: 1rem; border: 2px solid var(--foreground); }
.blog-post-content { line-height: 1.75; }
.blog-post-content p { margin-bottom: 1rem; }
.blog-post-content h1, .blog-post-content h2, .blog-post-content h3 { font-weight: 900; text-transform: uppercase; margin-top: 2rem; margin-bottom: 0.75rem; border-bottom: 2px solid var(--border); padding-bottom: 0.375rem; }
.blog-post-content h1 { font-size: 1.5rem; }
.blog-post-content h2 { font-size: 1.25rem; }
.blog-post-content h3 { font-size: 1rem; }
.blog-post-content a { text-decoration: underline; color: var(--foreground); }
.blog-post-content strong { font-weight: 900; }
.blog-post-content code { background: var(--muted); padding: 0.125rem 0.375rem; font-size: 0.875em; }
.blog-post-content pre { background: var(--muted); padding: 1rem; overflow-x: auto; margin-bottom: 1rem; border: 2px solid var(--border); }
.blog-post-content pre code { background: none; padding: 0; }
.blog-post-content ul, .blog-post-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.blog-post-content li { margin-bottom: 0.375rem; }
.blog-post-content blockquote { border-left: 4px solid var(--foreground); padding-left: 1rem; color: var(--muted-foreground); font-style: italic; margin-bottom: 1rem; }
.blog-post-content img { max-width: 100%; border: 2px solid var(--border); margin: 1rem 0; }
.blog-post-footer { margin-top: 3rem; padding-top: 1.5rem; border-top: 2px solid var(--foreground); }
.blog-post-back { font-size: 0.875rem; text-decoration: none; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 900; }
.blog-post-back:hover { text-decoration: underline; opacity: 1; }
.blog-post-back--top { display: inline-block; margin-bottom: 1.5rem; }

/* ===== Movies v2 ===== */
.movies-page { display: flex; flex-direction: column; gap: 3rem; overflow-x: hidden; }

/* Hero header with glitch */
.movies-hero-header { position: relative; padding: 1rem 0 0; }
.movies-spotlights { position: absolute; top: 0; right: 0; width: 40%; height: 18rem; overflow: hidden; pointer-events: none; display: none; }
@media (min-width: 768px) { .movies-spotlights { display: block; } }
.movies-spotlight { position: absolute; top: 0; background: linear-gradient(180deg, var(--foreground) 0%, transparent 100%); transform-origin: top center; }
.movies-spotlight--1 { right: 6rem; width: 7.5rem; height: 17.5rem; opacity: 0.08; clip-path: polygon(30% 0%, 70% 0%, 100% 100%, 0% 100%); transform: rotate(-15deg); }
.movies-spotlight--2 { right: 12rem; width: 5rem; height: 13.75rem; opacity: 0.05; clip-path: polygon(25% 0%, 75% 0%, 100% 100%, 0% 100%); transform: rotate(-8deg); }
.movies-spotlight--3 { right: 2rem; width: 3.75rem; height: 11.25rem; opacity: 0.06; clip-path: polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%); transform: rotate(-25deg); }

.movies-glitch { position: relative; display: inline-block; font-size: 16vw; font-weight: 900; text-transform: uppercase; line-height: 0.85; letter-spacing: -0.04em; user-select: none; margin: 0; }
@media (min-width: 768px) { .movies-glitch { font-size: 12vw; } }
@media (min-width: 1024px) { .movies-glitch { font-size: 10vw; } }
.movies-glitch-base { position: relative; display: inline-block; }
.movies-glitch-layer { position: absolute; top: 0; left: 0; display: none; pointer-events: none; }
@media (min-width: 768px) { .movies-glitch-layer { display: inline-block; } }
.movies-glitch-layer--r { color: rgba(239, 68, 68, 0.3); animation: movies-glitch-r 2.4s ease-in-out infinite; }
.movies-glitch-layer--b { color: rgba(59, 130, 246, 0.3); animation: movies-glitch-b 2.4s ease-in-out infinite; }
@keyframes movies-glitch-r {
  0%, 100% { transform: translate(-2px, -1px); }
  20% { transform: translate(-3px, 1px); }
  40% { transform: translate(-1px, -2px); }
  60% { transform: translate(-2px, 1px); }
  80% { transform: translate(-3px, -1px); }
}
@keyframes movies-glitch-b {
  0%, 100% { transform: translate(2px, 1px); }
  20% { transform: translate(3px, -1px); }
  40% { transform: translate(1px, 2px); }
  60% { transform: translate(2px, -1px); }
  80% { transform: translate(3px, 1px); }
}
@media (prefers-reduced-motion: reduce) {
  .movies-glitch-layer--r, .movies-glitch-layer--b { animation: none; }
}

.movies-hero-meta { margin-top: 1.5rem; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem 2rem; }
.movies-hero-tagline { font-size: 1.125rem; max-width: 28rem; line-height: 1.3; }
@media (min-width: 1024px) { .movies-hero-tagline { font-size: 1.5rem; } }
.movies-hero-strike { text-decoration: line-through; opacity: 0.5; }
.movies-hero-pills { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.movies-hero-pill { font-size: 0.875rem; padding: 0.5rem 1rem; border: 2px solid var(--foreground); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.movies-hero-pill--solid { background: var(--foreground); color: var(--background); border-color: var(--foreground); }

/* Featured card */
.movies-featured { }
.movies-featured-link { display: block; text-decoration: none; color: inherit; }
.movies-featured-card { position: relative; border: 4px solid var(--foreground); overflow: hidden; background: var(--background); display: grid; grid-template-columns: 1fr; min-height: 20rem; }
@media (min-width: 1024px) { .movies-featured-card { grid-template-columns: 1fr 500px; min-height: 500px; } }
.movies-featured-body { position: relative; padding: 2rem; display: flex; flex-direction: column; justify-content: flex-end; z-index: 2; gap: 0.75rem; }
@media (min-width: 1024px) { .movies-featured-body { padding: 4rem; } }
.movies-featured-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.3em; opacity: 0.7; }
.movies-featured-title { font-size: clamp(2rem, 7vw, 4.5rem); font-weight: 900; text-transform: uppercase; line-height: 0.9; letter-spacing: -0.03em; margin: 0; transition: transform 0.3s; }
.movies-featured-link:hover .movies-featured-title { transform: translateX(0.5rem); }
.movies-featured-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; font-size: 0.875rem; }
.movies-featured-year { font-weight: 700; font-size: 1rem; }
.movies-featured-sep { display: inline-block; width: 2px; height: 1rem; background: var(--foreground); opacity: 0.5; }
.movies-featured-score { font-weight: 900; letter-spacing: 0.05em; }
.movies-featured-genres { opacity: 0.7; font-size: 0.8125rem; }
.movies-featured-desc { font-size: 0.9375rem; line-height: 1.5; max-width: 36rem; opacity: 0.8; margin: 0; }
.movies-featured-cta { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.1em; margin-top: 0.5rem; transition: gap 0.3s; }
.movies-featured-link:hover .movies-featured-cta { gap: 1rem; }
.movies-featured-arrow { font-size: 1.25rem; }
.movies-featured-poster { position: absolute; inset: 0; z-index: 1; }
@media (min-width: 1024px) { .movies-featured-poster { position: relative; inset: auto; overflow: hidden; } }
.movies-featured-poster img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); transition: transform 0.7s; }
.movies-featured-link:hover .movies-featured-poster img { transform: scale(1); }
.movies-featured-poster-fade { position: absolute; inset: 0; background: linear-gradient(90deg, var(--background) 0%, var(--background) 30%, transparent 60%); }
@media (min-width: 1024px) { .movies-featured-poster-fade { background: linear-gradient(90deg, var(--background) 0%, transparent 30%); } }
.movies-featured-scanlines { position: absolute; inset: 0; opacity: 0.1; pointer-events: none; background-image: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.1) 2px, rgba(0,0,0,0.1) 4px); }
.movies-featured-corner { position: absolute; top: 0; right: 0; width: 4rem; height: 4rem; background: var(--foreground); z-index: 3; }
.movies-featured-corner-inner { position: absolute; top: 0.5rem; right: 0.5rem; width: 0.75rem; height: 0.75rem; background: var(--background); z-index: 4; }

/* Genre pills strip */
.movies-genre-pills { border-top: 4px solid var(--foreground); border-bottom: 4px solid var(--foreground); overflow-x: auto; padding: 1rem 0; -webkit-overflow-scrolling: touch; }
.movies-genre-pills::-webkit-scrollbar { height: 4px; }
.movies-genre-pills::-webkit-scrollbar-track { background: var(--muted); }
.movies-genre-pills::-webkit-scrollbar-thumb { background: var(--foreground); }
.movies-genre-pills-inner { display: flex; gap: 0.75rem; min-width: max-content; }
.movies-pill { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.1em; padding: 0.5rem 1rem; border: 2px solid var(--foreground); text-decoration: none; color: var(--foreground); transition: background 0.15s, color 0.15s, transform 0.15s; white-space: nowrap; }
.movies-pill:hover { background: var(--foreground); color: var(--background); transform: translate(2px, 2px); }
.movies-pill-num { opacity: 0.5; font-weight: 700; }

/* Recently Reviewed */
.movies-recent { }
.movies-recent-head { display: flex; align-items: flex-end; justify-content: space-between; border-bottom: 4px solid var(--foreground); padding-bottom: 1rem; margin-bottom: 1.5rem; gap: 1rem; }
.movies-recent-title { font-size: clamp(1.75rem, 4vw, 3rem); font-weight: 900; text-transform: uppercase; letter-spacing: -0.03em; line-height: 1; margin: 0; }
.movies-recent-sub { font-size: 0.8125rem; opacity: 0.6; margin-top: 0.25rem; }
.movies-recent-scroll-hint { display: none; align-items: center; gap: 0.5rem; font-size: 0.8125rem; }
@media (min-width: 768px) { .movies-recent-scroll-hint { display: flex; } }
.movies-recent-scroll-hint span:first-child { opacity: 0.5; }
.movies-recent-arrow { font-size: 1.25rem; animation: movies-pulse 1.6s ease-in-out infinite; }
@keyframes movies-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.movies-recent-track { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: 1.5rem; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
@media (min-width: 768px) { .movies-recent-track { gap: 1.5rem; } }
.movies-recent-track::-webkit-scrollbar { height: 6px; }
.movies-recent-track::-webkit-scrollbar-track { background: var(--muted); }
.movies-recent-track::-webkit-scrollbar-thumb { background: var(--foreground); }
.movies-recent-card { flex: 0 0 12.5rem; scroll-snap-align: start; text-decoration: none; color: inherit; display: block; transition: transform 0.2s; }
@media (min-width: 768px) { .movies-recent-card { flex-basis: 15rem; } }
@media (min-width: 1024px) { .movies-recent-card { flex-basis: 17.5rem; } }
.movies-recent-card:nth-child(even) { transform: translateY(1.25rem); }
.movies-recent-card:hover { transform: translate(0.25rem, 0.25rem); }
.movies-recent-card:nth-child(even):hover { transform: translate(0.25rem, 1.5rem); }
.movies-recent-poster { position: relative; aspect-ratio: 2 / 3; border: 4px solid var(--foreground); overflow: hidden; background: var(--muted); box-shadow: 6px 6px 0 var(--foreground); transition: box-shadow 0.2s; }
.movies-recent-card:hover .movies-recent-poster { box-shadow: none; }
.movies-recent-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; filter: grayscale(20%); }
.movies-recent-card:hover .movies-recent-poster img { transform: scale(1.08); filter: grayscale(0%); }
.movies-recent-poster-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 4rem; font-weight: 900; color: var(--muted-foreground); }
.movies-recent-badge-score { position: absolute; top: 0; left: 0; background: var(--foreground); color: var(--background); padding: 0.25rem 0.5rem; font-size: 0.6875rem; font-weight: 900; }
.movies-recent-badge-year { position: absolute; top: 0; right: 0; background: var(--background); padding: 0.25rem 0.5rem; font-size: 0.6875rem; border-left: 2px solid var(--foreground); border-bottom: 2px solid var(--foreground); }
.movies-recent-info { margin-top: 0.75rem; }
.movies-recent-card-title { font-size: 0.875rem; font-weight: 700; text-transform: uppercase; line-height: 1.2; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.movies-recent-card-year { font-size: 0.75rem; opacity: 0.5; margin: 0.125rem 0 0; }

/* Browse by Genre */
.movies-browse { }
.movies-browse-head { margin-bottom: 2rem; }
.movies-browse-title { font-size: clamp(1.5rem, 3.5vw, 2.5rem); font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em; border-bottom: 4px solid var(--foreground); padding-bottom: 0.75rem; margin: 0; }
.movies-genre-section { scroll-margin-top: 5rem; margin-bottom: 2.5rem; }
.movies-genre-title-row { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.movies-genre-title-line { height: 2px; flex: 1; background: var(--foreground); opacity: 0.2; }
.movies-genre-title-tail { height: 2px; width: 3rem; background: var(--foreground); }
.movies-genre-title { font-size: 1.25rem; font-weight: 900; text-transform: uppercase; letter-spacing: -0.01em; display: flex; align-items: center; gap: 0.75rem; margin: 0; border: none; padding: 0; }
@media (min-width: 768px) { .movies-genre-title { font-size: 1.5rem; } }
.movies-genre-title-num { opacity: 0.3; font-size: 0.875rem; font-weight: 700; }
.movies-genre-title-count { font-weight: 400; font-size: 0.875rem; opacity: 0.5; }

.movies-genre-row { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: 1rem; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.movies-genre-row::-webkit-scrollbar { height: 4px; }
.movies-genre-row::-webkit-scrollbar-track { background: var(--muted); }
.movies-genre-row::-webkit-scrollbar-thumb { background: var(--foreground); }

.movie-card { flex: 0 0 9rem; scroll-snap-align: start; text-decoration: none; color: inherit; display: block; transition: transform 0.2s; }
@media (min-width: 768px) { .movie-card { flex-basis: 11rem; } }
.movie-card:hover { transform: translate(0.25rem, 0.25rem); }
.movie-card-poster { position: relative; aspect-ratio: 2 / 3; overflow: hidden; border: 4px solid var(--foreground); background: var(--muted); box-shadow: 6px 6px 0 var(--foreground); transition: box-shadow 0.2s; }
.movie-card:hover .movie-card-poster { box-shadow: none; }
.movie-card-poster img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(20%); transition: filter 0.4s, transform 0.4s; }
.movie-card:hover .movie-card-poster img { filter: grayscale(0%); transform: scale(1.08); }
.movie-card-poster-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 3rem; font-weight: 900; color: var(--muted-foreground); }
.movie-card-score { position: absolute; top: 0; left: 0; background: var(--foreground); color: var(--background); padding: 0.25rem 0.5rem; font-size: 0.625rem; font-weight: 900; }
.movie-card-year { position: absolute; top: 0; right: 0; background: var(--background); padding: 0.25rem 0.5rem; font-size: 0.625rem; border-left: 2px solid var(--foreground); border-bottom: 2px solid var(--foreground); }
.movie-card-info { padding: 0.5rem 0; }
.movie-card-title { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; line-height: 1.2; margin: 0 0 0.125rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.movie-card-sub { font-size: 0.625rem; opacity: 0.5; margin: 0; }

/* Footer */
.movies-footer { }
.movies-footer-line { border-top: 4px solid var(--foreground); padding-top: 1.5rem; }
.movies-footer-content { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: 0.8125rem; opacity: 0.5; }
.movies-footer-tag { display: inline-flex; align-items: center; gap: 1rem; font-size: 0.6875rem; opacity: 0.6; }
.movies-footer-dash { display: inline-block; width: 2rem; height: 2px; background: var(--foreground); }

/* ===== Audio ===== */
.audio-page { display: flex; flex-direction: column; gap: 2rem; margin: -1rem -0.75rem 0; }

/* Hero header */
.audio-header { position: relative; min-height: 22rem; border-bottom: 8px solid var(--foreground); overflow: hidden; padding: 3rem 1.5rem 2rem; }
@media (min-width: 768px) { .audio-header { min-height: 30rem; padding: 4rem 3rem 3rem; } }
@media (min-width: 1024px) { .audio-header { min-height: 36rem; padding: 5rem 4rem 4rem; } }

.audio-header-content { position: relative; z-index: 2; max-width: 72rem; }
.audio-signal-chain { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.25em; opacity: 0.7; margin-bottom: 1rem; padding: 0.5rem 0.875rem; border: 2px solid var(--foreground); background: var(--background); flex-wrap: wrap; }
.audio-signal-chain .audio-arrow { opacity: 0.4; }
.audio-title { font-size: 20vw; font-weight: 900; text-transform: uppercase; line-height: 0.82; letter-spacing: -0.05em; margin: 0; display: flex; flex-direction: column; }
@media (min-width: 768px) { .audio-title { font-size: 18vw; } }
@media (min-width: 1024px) { .audio-title { font-size: 14vw; } }
.audio-title-line { display: inline-block; padding: 0.1em 0.25em 0; background: var(--background); width: fit-content; }
.audio-title-line--alt { padding-left: 2rem; background: var(--foreground); color: var(--background); }
.audio-subtitle { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.25rem; }
.audio-tag { display: inline-block; padding: 0.4rem 0.75rem; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; border: 2px solid var(--foreground); background: var(--background); }
.audio-tag--muted { opacity: 0.5; }

/* Signature CSS spectrum analyzer */
.audio-eq { position: absolute; inset: 0; z-index: 1; display: flex; align-items: flex-end; gap: 0.1875rem; padding: 0 0.5rem; pointer-events: none; }
.audio-eq-bar {
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  background: linear-gradient(180deg, var(--foreground) 0%, var(--foreground) 40%, rgba(128, 128, 128, 0.35) 100%);
  opacity: 0.28;
  transform-origin: bottom;
  transform: scaleY(0.2);
  animation-name: audio-eq-pulse;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  animation-timing-function: ease-in-out;
}
@keyframes audio-eq-pulse {
  0%   { transform: scaleY(var(--eq-min, 0.15)); }
  100% { transform: scaleY(var(--eq-max, 0.95)); }
}
/* Staggered heights, durations and delays across 48 bars */
.audio-eq-bar:nth-child(1)  { --eq-min: 0.10; --eq-max: 0.55; animation-duration: 1.3s; animation-delay: -0.10s; }
.audio-eq-bar:nth-child(2)  { --eq-min: 0.18; --eq-max: 0.72; animation-duration: 1.1s; animation-delay: -0.25s; }
.audio-eq-bar:nth-child(3)  { --eq-min: 0.22; --eq-max: 0.85; animation-duration: 1.6s; animation-delay: -0.05s; }
.audio-eq-bar:nth-child(4)  { --eq-min: 0.30; --eq-max: 0.92; animation-duration: 0.9s; animation-delay: -0.30s; }
.audio-eq-bar:nth-child(5)  { --eq-min: 0.14; --eq-max: 0.78; animation-duration: 1.4s; animation-delay: -0.15s; }
.audio-eq-bar:nth-child(6)  { --eq-min: 0.25; --eq-max: 0.95; animation-duration: 1.2s; animation-delay: -0.40s; }
.audio-eq-bar:nth-child(7)  { --eq-min: 0.32; --eq-max: 0.88; animation-duration: 1.0s; animation-delay: -0.20s; }
.audio-eq-bar:nth-child(8)  { --eq-min: 0.20; --eq-max: 0.96; animation-duration: 1.5s; animation-delay: -0.35s; }
.audio-eq-bar:nth-child(9)  { --eq-min: 0.38; --eq-max: 0.98; animation-duration: 0.85s; animation-delay: -0.12s; }
.audio-eq-bar:nth-child(10) { --eq-min: 0.28; --eq-max: 0.92; animation-duration: 1.35s; animation-delay: -0.45s; }
.audio-eq-bar:nth-child(11) { --eq-min: 0.15; --eq-max: 0.68; animation-duration: 1.25s; animation-delay: -0.08s; }
.audio-eq-bar:nth-child(12) { --eq-min: 0.42; --eq-max: 1.00; animation-duration: 1.1s; animation-delay: -0.28s; }
.audio-eq-bar:nth-child(13) { --eq-min: 0.35; --eq-max: 0.94; animation-duration: 0.95s; animation-delay: -0.18s; }
.audio-eq-bar:nth-child(14) { --eq-min: 0.18; --eq-max: 0.75; animation-duration: 1.55s; animation-delay: -0.38s; }
.audio-eq-bar:nth-child(15) { --eq-min: 0.24; --eq-max: 0.89; animation-duration: 1.15s; animation-delay: -0.04s; }
.audio-eq-bar:nth-child(16) { --eq-min: 0.40; --eq-max: 0.98; animation-duration: 1.05s; animation-delay: -0.32s; }
.audio-eq-bar:nth-child(17) { --eq-min: 0.28; --eq-max: 0.82; animation-duration: 1.45s; animation-delay: -0.14s; }
.audio-eq-bar:nth-child(18) { --eq-min: 0.20; --eq-max: 0.91; animation-duration: 1.3s; animation-delay: -0.26s; }
.audio-eq-bar:nth-child(19) { --eq-min: 0.33; --eq-max: 0.87; animation-duration: 0.9s; animation-delay: -0.42s; }
.audio-eq-bar:nth-child(20) { --eq-min: 0.45; --eq-max: 1.00; animation-duration: 1.2s; animation-delay: -0.09s; }
.audio-eq-bar:nth-child(21) { --eq-min: 0.12; --eq-max: 0.62; animation-duration: 1.5s; animation-delay: -0.22s; }
.audio-eq-bar:nth-child(22) { --eq-min: 0.30; --eq-max: 0.93; animation-duration: 1.0s; animation-delay: -0.36s; }
.audio-eq-bar:nth-child(23) { --eq-min: 0.38; --eq-max: 0.96; animation-duration: 1.35s; animation-delay: -0.06s; }
.audio-eq-bar:nth-child(24) { --eq-min: 0.22; --eq-max: 0.78; animation-duration: 1.1s; animation-delay: -0.31s; }
.audio-eq-bar:nth-child(25) { --eq-min: 0.15; --eq-max: 0.84; animation-duration: 1.4s; animation-delay: -0.17s; }
.audio-eq-bar:nth-child(26) { --eq-min: 0.42; --eq-max: 0.99; animation-duration: 0.95s; animation-delay: -0.43s; }
.audio-eq-bar:nth-child(27) { --eq-min: 0.28; --eq-max: 0.88; animation-duration: 1.25s; animation-delay: -0.11s; }
.audio-eq-bar:nth-child(28) { --eq-min: 0.35; --eq-max: 0.92; animation-duration: 1.15s; animation-delay: -0.29s; }
.audio-eq-bar:nth-child(29) { --eq-min: 0.18; --eq-max: 0.70; animation-duration: 1.55s; animation-delay: -0.07s; }
.audio-eq-bar:nth-child(30) { --eq-min: 0.48; --eq-max: 1.00; animation-duration: 1.05s; animation-delay: -0.34s; }
.audio-eq-bar:nth-child(31) { --eq-min: 0.25; --eq-max: 0.85; animation-duration: 1.3s; animation-delay: -0.19s; }
.audio-eq-bar:nth-child(32) { --eq-min: 0.32; --eq-max: 0.94; animation-duration: 0.88s; animation-delay: -0.41s; }
.audio-eq-bar:nth-child(33) { --eq-min: 0.40; --eq-max: 0.97; animation-duration: 1.2s; animation-delay: -0.03s; }
.audio-eq-bar:nth-child(34) { --eq-min: 0.16; --eq-max: 0.73; animation-duration: 1.45s; animation-delay: -0.24s; }
.audio-eq-bar:nth-child(35) { --eq-min: 0.36; --eq-max: 0.90; animation-duration: 1.0s; animation-delay: -0.37s; }
.audio-eq-bar:nth-child(36) { --eq-min: 0.22; --eq-max: 0.81; animation-duration: 1.35s; animation-delay: -0.13s; }
.audio-eq-bar:nth-child(37) { --eq-min: 0.44; --eq-max: 1.00; animation-duration: 1.1s; animation-delay: -0.44s; }
.audio-eq-bar:nth-child(38) { --eq-min: 0.28; --eq-max: 0.89; animation-duration: 0.92s; animation-delay: -0.21s; }
.audio-eq-bar:nth-child(39) { --eq-min: 0.19; --eq-max: 0.76; animation-duration: 1.5s; animation-delay: -0.33s; }
.audio-eq-bar:nth-child(40) { --eq-min: 0.34; --eq-max: 0.95; animation-duration: 1.15s; animation-delay: -0.02s; }
.audio-eq-bar:nth-child(41) { --eq-min: 0.26; --eq-max: 0.83; animation-duration: 1.25s; animation-delay: -0.27s; }
.audio-eq-bar:nth-child(42) { --eq-min: 0.12; --eq-max: 0.60; animation-duration: 1.6s; animation-delay: -0.16s; }
.audio-eq-bar:nth-child(43) { --eq-min: 0.40; --eq-max: 0.98; animation-duration: 0.98s; animation-delay: -0.39s; }
.audio-eq-bar:nth-child(44) { --eq-min: 0.30; --eq-max: 0.91; animation-duration: 1.3s; animation-delay: -0.23s; }
.audio-eq-bar:nth-child(45) { --eq-min: 0.20; --eq-max: 0.72; animation-duration: 1.1s; animation-delay: -0.46s; }
.audio-eq-bar:nth-child(46) { --eq-min: 0.38; --eq-max: 0.93; animation-duration: 1.4s; animation-delay: -0.08s; }
.audio-eq-bar:nth-child(47) { --eq-min: 0.22; --eq-max: 0.80; animation-duration: 1.2s; animation-delay: -0.29s; }
.audio-eq-bar:nth-child(48) { --eq-min: 0.14; --eq-max: 0.65; animation-duration: 1.5s; animation-delay: -0.11s; }

@media (prefers-reduced-motion: reduce) {
  .audio-eq-bar { animation: none; transform: scaleY(0.5); }
}

/* Layout */
.audio-layout { display: grid; grid-template-columns: 1fr; gap: 2rem; max-width: 72rem; margin: 0 auto; padding: 0 1rem 4rem; }
@media (min-width: 1024px) { .audio-layout { grid-template-columns: 14rem 1fr; gap: 3rem; padding: 0 2rem 5rem; } }

.audio-sidebar { display: none; }
@media (min-width: 1024px) { .audio-sidebar { display: block; position: sticky; top: 6rem; align-self: start; } }
.audio-sidebar-label { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.25em; opacity: 0.5; margin-bottom: 0.75rem; border-bottom: 2px solid var(--foreground); padding-bottom: 0.5rem; }
.audio-sidebar-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.audio-sidebar-link { display: flex; align-items: center; gap: 0.625rem; padding: 0.5rem 0; font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--foreground); text-decoration: none; transition: transform 0.15s, opacity 0.15s; opacity: 0.7; }
.audio-sidebar-link:hover { opacity: 1; transform: translateX(0.25rem); }
.audio-sidebar-dot { width: 0.5rem; height: 0.5rem; background: var(--foreground); flex-shrink: 0; }

.audio-main { display: flex; flex-direction: column; gap: 3rem; min-width: 0; }
.audio-section { scroll-margin-top: 5rem; }
.audio-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; border-bottom: 4px solid var(--foreground); padding-bottom: 0.75rem; margin-bottom: 1.5rem; }
.audio-section-title { font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em; margin: 0; }
.audio-section-count { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.15em; opacity: 0.5; }

.audio-gear-list { display: flex; flex-direction: column; gap: 1.25rem; }
.audio-gear-card { position: relative; display: grid; grid-template-columns: 1fr; gap: 1rem; border: 4px solid var(--foreground); padding: 1.5rem; padding-left: 2rem; background: var(--background); transition: transform 0.2s, box-shadow 0.2s; }
.audio-gear-card:hover { transform: translate(0.25rem, 0.25rem); box-shadow: none; }
.audio-gear-card { box-shadow: 6px 6px 0 var(--foreground); }
@media (min-width: 640px) { .audio-gear-card { grid-template-columns: 10rem 1fr; gap: 1.5rem; padding: 1.75rem 2rem 1.75rem 2.5rem; } }
.audio-gear-index { position: absolute; top: 0; left: 0; background: var(--foreground); color: var(--background); padding: 0.25rem 0.625rem; font-size: 0.75rem; font-weight: 900; font-family: inherit; letter-spacing: 0.05em; }
.audio-gear-card-image { width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border: 2px solid var(--foreground); background: var(--muted); }
@media (min-width: 640px) { .audio-gear-card-image { aspect-ratio: 1 / 1; } }
.audio-gear-card-image img { width: 100%; height: 100%; object-fit: contain; background: var(--background); padding: 0.5rem; }
.audio-gear-card-image--placeholder { background: repeating-linear-gradient(45deg, var(--muted), var(--muted) 8px, var(--background) 8px, var(--background) 16px); }
.audio-gear-card-body { display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }
.audio-gear-card-title { font-size: 1.125rem; font-weight: 900; text-transform: uppercase; letter-spacing: -0.01em; line-height: 1.2; margin: 0; }
.audio-gear-card-title a { color: inherit; text-decoration: none; border-bottom: 2px solid transparent; transition: border-color 0.15s; }
.audio-gear-card-title a:hover { border-bottom-color: var(--foreground); }
.audio-gear-card-arrow { display: inline-block; margin-left: 0.25rem; font-size: 0.875rem; opacity: 0.6; }
.audio-gear-card-desc { font-size: 0.9375rem; line-height: 1.55; margin: 0; opacity: 0.85; }

/* Movie Post */
.movie-post-page { }
.movie-post-backdrop { width: 100%; height: 20rem; overflow: hidden; border-bottom: 4px solid var(--foreground); margin-bottom: 2rem; }
.movie-post-backdrop img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(30%); }
.movie-post-body { max-width: 56rem; margin: 0 auto; }
.movie-post-header { display: grid; grid-template-columns: 10rem 1fr; gap: 2rem; margin-bottom: 2rem; border-bottom: 4px solid var(--foreground); padding-bottom: 2rem; }
.movie-post-poster img { width: 100%; border: 2px solid var(--foreground); }
.movie-post-title { font-size: clamp(1.5rem, 4vw, 2.5rem); font-weight: 900; text-transform: uppercase; line-height: 1; margin-bottom: 0.75rem; }
.movie-post-details { display: flex; gap: 1rem; align-items: center; font-size: 0.875rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
.movie-post-year { font-weight: 900; }
.movie-post-score { font-weight: 900; font-size: 1.25rem; }
.movie-post-date { color: var(--muted-foreground); font-size: 0.75rem; }
.movie-post-genres { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-bottom: 1rem; }
.movie-genre-tag { border: 2px solid var(--foreground); padding: 0.0625rem 0.5rem; font-size: 0.7rem; text-transform: uppercase; }
.movie-post-description { font-size: 0.9375rem; color: var(--muted-foreground); line-height: 1.6; font-style: italic; }
.movie-post-content { margin-top: 2rem; }

@media (max-width: 640px) {
  .movie-post-header { grid-template-columns: 1fr; }
  .movie-post-poster { max-width: 10rem; }
}

/* ===== SVG Border ===== */
.svg-border { position: relative; z-index: 0; }
.svg-border-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center;
  opacity: 0.8;
  transition: opacity 0.3s;
  pointer-events: none;
}
.svg-border:hover .svg-border-bg { opacity: 1; }
.svg-border-inner { position: relative; z-index: 1; background: var(--background); }

/* ===== Projects ===== */
.projects-page { max-width: 80rem; margin: 0 auto; padding: 0 1rem 3rem; }
.projects-header { margin-bottom: 2.5rem; border: 4px solid #52525b; background: #18181b; color: #e4e4e7; font-family: "IBM Plex Mono", ui-monospace, monospace; overflow: hidden; }
.projects-header-chrome { display: flex; align-items: center; gap: 0.6rem; padding: 0.75rem 1rem; border-bottom: 4px solid #52525b; }
.projects-header-dot { width: 0.75rem; height: 0.75rem; border-radius: 50%; display: inline-block; }
.projects-header-dot--red { background: #ef4444; }
.projects-header-dot--yellow { background: #eab308; }
.projects-header-dot--green { background: #22c55e; }
.projects-header-path { font-size: 0.75rem; color: #a1a1aa; margin-left: 0.5rem; }
.projects-header-body { padding: 1.5rem 1.5rem 1.75rem; }
@media (min-width: 640px) { .projects-header-body { padding: 2rem; } }
.projects-header-prompt { font-size: 0.875rem; color: #d4d4d8; margin: 0 0 1rem; }
.projects-header-sigil { color: #4ade80; margin-right: 0.5rem; }
.projects-title { font-size: clamp(2.25rem, 7vw, 4.5rem); font-weight: 900; text-transform: uppercase; letter-spacing: -0.03em; line-height: 0.9; margin: 0 0 1rem; }
.projects-title span { display: block; }
.projects-title-accent { color: #34d399; }
.projects-header-meta { font-size: 0.8125rem; color: #a1a1aa; margin: 0 0 0.75rem; }
.projects-header-meta strong { color: #fbbf24; font-weight: 900; }
.projects-header-sep { margin: 0 0.5rem; opacity: 0.5; }
.projects-header-cursor { display: flex; align-items: center; font-size: 0.875rem; margin: 0; }
.projects-header-cursor-block { display: inline-block; width: 0.5rem; height: 1rem; background: #34d399; margin-left: 0.15rem; animation: projects-cursor-blink 1s steps(2) infinite; }
@keyframes projects-cursor-blink { 50% { opacity: 0; } }
.projects-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .projects-grid { grid-template-columns: repeat(2, 1fr); gap: 1.75rem; } }
@media (min-width: 1024px) { .projects-grid { grid-template-columns: repeat(3, 1fr); } }
.project-link { display: block; text-decoration: none; color: var(--foreground); height: 100%; }
.project-card { height: 100%; background: var(--background); border: 4px solid var(--foreground); display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s; }
.project-link:hover .project-card { transform: translate(2px, -2px); box-shadow: -6px 6px 0 var(--foreground); }
.svg-border-inner > .project-card { border: none; }
.project-link:hover .svg-border-inner > .project-card { transform: none; box-shadow: none; }
.project-card-image { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 4px solid var(--foreground); background: var(--muted); }
.svg-border-inner .project-card-image { border-bottom-color: var(--foreground); }
.project-card-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
.project-link:hover .project-card-image img { transform: scale(1.05); }
.project-card-image-placeholder { position: absolute; inset: 0; background: linear-gradient(135deg, #5135FF, #FF5828, #F69CFF, #FFA50F); opacity: 0.45; }
.project-card-body { padding: 1.25rem 1.4rem; flex: 1; display: flex; flex-direction: column; gap: 0.9rem; }
@media (min-width: 640px) { .project-card-body { padding: 1.5rem; } }
.project-card-title { font-size: 1.25rem; font-weight: 900; text-transform: uppercase; letter-spacing: -0.01em; line-height: 0.95; transition: color 0.15s; }
@media (min-width: 640px) { .project-card-title { font-size: 1.5rem; } }
.project-link:hover .project-card-title { color: var(--primary); }
.project-card-description { font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.project-card-tech { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.project-tech-tag { display: inline-block; padding: 0.1rem 0.45rem; font-size: 0.625rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.12em; border: 2px solid currentColor; }
.project-tech-tag--more { opacity: 0.6; }
.project-card-purpose { font-size: 0.75rem; color: var(--muted-foreground); line-height: 1.55; border-left: 2px solid var(--foreground); padding-left: 0.75rem; opacity: 0.85; }
.project-card-purpose-label { font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em; margin-right: 0.25rem; }
.project-card-cta { display: flex; align-items: center; gap: 0.75rem; padding-top: 0.75rem; border-top: 2px solid var(--border); font-size: 0.8125rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em; margin-top: auto; }
.project-card-cta-line { flex: 1; height: 2px; background: var(--border); transition: background 0.2s; }
.project-link:hover .project-card-cta-line { background: var(--primary); }
.project-card-cta-arrow { font-size: 1rem; transition: transform 0.3s; }
.project-link:hover .project-card-cta-arrow { transform: translateX(4px); }

/* ===== Home ===== */
/* Break the home page out of .site-main's 1200px cap so it can use full viewport width */
.home-page { width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); padding: 3rem 1.5rem; }
@media (min-width: 768px) { .home-page { padding: 4rem 3rem; } }
@media (min-width: 1024px) { .home-page { padding: 5rem 4rem; } }
@media (min-width: 1280px) { .home-page { padding: 6rem 6rem; } }
.home-layout { display: grid; grid-template-columns: 1fr; gap: 3rem; margin: 0 auto; }
@media (min-width: 1024px) { .home-layout { grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; } }
@media (min-width: 1280px) { .home-layout { gap: 4rem; } }
.home-name { font-family: inherit; }
.home-name-inner { font-size: 12vw; line-height: 0.9; letter-spacing: -0.05em; }
@media (min-width: 640px) { .home-name-inner { font-size: 14vw; } }
@media (min-width: 1024px) { .home-name-inner { font-size: 10vw; } }
.home-name-line { border-bottom: 4px solid var(--foreground); padding-bottom: 0.5rem; margin-bottom: 0.5rem; }
.home-name-initial { font-weight: 900; }
.home-name-rest { font-weight: 300; }
.home-name-works { display: inline-block; margin-top: 0.25rem; }
.home-name-works-inner { background: #000; color: #fff; padding: 0.5rem 1rem; display: block; }
.dark .home-name-works-inner { background: #fff; color: #000; }
.home-name-works span { font-weight: 900; font-size: inherit; }
.home-content { display: flex; flex-direction: column; gap: 2rem; }
.home-section { display: block; }
.home-garden-cta { display: block; border: 4px solid var(--foreground); padding: 1.5rem 2rem; text-decoration: none; color: var(--foreground); transition: background 0.15s, color 0.15s; }
.home-garden-cta:hover { background: var(--foreground); color: var(--background); }
.home-garden-title { font-size: 1.25rem; font-weight: 900; text-transform: uppercase; border-bottom: 2px solid currentColor; padding-bottom: 0.75rem; margin-bottom: 1rem; letter-spacing: 0.05em; }
.home-garden-body { font-size: 0.9375rem; line-height: 1.6; display: flex; flex-direction: column; gap: 0.75rem; }
.home-garden-cta-link { font-weight: 900; font-size: 0.875rem; text-transform: uppercase; }
.home-latest-post { display: block; border: 4px solid var(--foreground); padding: 1.5rem 2rem; text-decoration: none; color: var(--foreground); background: var(--background); transition: transform 0.2s; }
.home-latest-post:hover { transform: translateY(-2px); }
.svg-border-inner > .home-latest-post { border: none; padding: 1.25rem 1.75rem; }
.home-latest-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.2em; margin-bottom: 0.75rem; }
.home-latest-title { font-size: 1.5rem; font-weight: 900; text-transform: uppercase; margin-bottom: 0.75rem; line-height: 1.1; }
.home-latest-excerpt { font-size: 0.9375rem; line-height: 1.6; margin-bottom: 0.75rem; }
.home-latest-meta { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-foreground); margin-bottom: 1rem; }
.home-latest-tags { margin-left: 1rem; }
.home-latest-read { font-size: 0.875rem; font-weight: 900; text-transform: uppercase; }
.home-nav-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.home-nav-item { display: block; border: 4px solid var(--foreground); padding: 1rem 1.5rem; text-decoration: none; color: var(--foreground); background: var(--background); transition: background 0.15s, color 0.15s; }
.home-nav-item:hover { background: var(--foreground); color: var(--background); }
.home-nav-item--accent { border-style: solid; }
.svg-border-inner > .home-nav-item { border: none; }
.home-nav-item--wide { grid-column: span 2; }
.home-nav-title { font-size: 1.125rem; font-weight: 900; text-transform: uppercase; }
.home-nav-sub { font-size: 0.75rem; margin-top: 0.25rem; }

/* ===== Garden Landing ===== */
.garden-landing-page { max-width: 72rem; margin: 0 auto; }
.garden-landing-header { margin-bottom: 3rem; }
.garden-landing-title { font-size: clamp(3rem, 8vw, 5rem); font-weight: 900; text-transform: uppercase; line-height: 0.9; letter-spacing: -0.03em; border-bottom: 4px solid var(--foreground); padding-bottom: 0.5rem; margin-bottom: 1rem; }
.garden-landing-title span { display: block; }
.garden-landing-tagline { font-size: 1rem; color: var(--muted-foreground); max-width: 36rem; border-left: 4px solid var(--foreground); padding-left: 1rem; line-height: 1.6; }
.garden-landing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 768px) { .garden-landing-grid { grid-template-columns: repeat(3, 1fr); } }
.garden-landing-item { display: block; border: 4px solid var(--foreground); padding: 1.75rem; text-decoration: none; color: var(--foreground); min-height: 9rem; transition: transform 0.2s, box-shadow 0.2s; }
.garden-landing-item:hover { transform: translateY(-2px); box-shadow: 6px 6px 0 var(--foreground); }
.garden-landing-item--wide { grid-column: span 2; }
.garden-landing-item h3 { font-size: 1.25rem; font-weight: 900; text-transform: uppercase; margin-bottom: 0.5rem; }
.garden-landing-item p { font-size: 0.8125rem; color: var(--muted-foreground); line-height: 1.5; }
.garden-landing-enter { display: inline-block; margin-top: 0.75rem; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0; transition: opacity 0.2s; }
.garden-landing-item:hover .garden-landing-enter { opacity: 1; }

/* ===== Everything ===== */
.everything-page { max-width: 56rem; margin: 0 auto; }
.everything-header { margin-bottom: 3rem; }
.everything-title { font-size: clamp(3rem, 8vw, 5rem); font-weight: 900; text-transform: uppercase; line-height: 0.9; letter-spacing: -0.03em; border-bottom: 4px solid var(--foreground); padding-bottom: 0.5rem; margin-bottom: 1rem; }
.everything-tagline { font-size: 1rem; color: var(--muted-foreground); max-width: 36rem; }
.everything-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.everything-item { display: block; border: 4px solid var(--foreground); padding: 1.5rem 2rem; text-decoration: none; color: var(--foreground); background: var(--background); transition: background 0.15s, color 0.15s; }
.everything-item:hover { background: var(--foreground); color: var(--background); }
.everything-item--accent { border-style: solid; }
.svg-border-inner > .everything-item { border: none; }
.everything-item-title { font-size: 1.25rem; font-weight: 900; text-transform: uppercase; }
.everything-item-desc { font-size: 0.875rem; margin-top: 0.25rem; }
.everything-back { margin-top: 3rem; }
.everything-back-link { display: inline-block; border: 4px solid var(--foreground); padding: 0.75rem 1.5rem; text-decoration: none; color: var(--foreground); font-weight: 900; text-transform: uppercase; font-size: 0.875rem; }
.everything-back-link:hover { background: var(--foreground); color: var(--background); }

/* ===== Gems ===== */
.gems-page { max-width: 72rem; margin: 0 auto; padding: 1rem 0.75rem 3rem; }
.gems-header { margin-bottom: 2rem; }
.gems-title { font-size: clamp(2.5rem, 7vw, 4.5rem); font-weight: 900; text-transform: uppercase; line-height: 0.9; letter-spacing: -0.03em; border-bottom: 4px solid var(--foreground); padding-bottom: 0.5rem; margin-bottom: 1rem; }
.gems-tagline { font-size: 0.9375rem; color: var(--muted-foreground); max-width: 40rem; line-height: 1.6; }
.gems-cluster { border: 4px solid var(--foreground); padding: 1.25rem; margin-bottom: 2rem; }
@media (min-width: 640px) { .gems-cluster { padding: 1.75rem; margin-bottom: 2.5rem; } }
@media (min-width: 768px) { .gems-cluster { padding: 2rem; } }
.gems-cluster-head { margin-bottom: 1.25rem; }
.gems-cluster-title { font-size: 1.25rem; font-weight: 900; text-transform: uppercase; border-bottom: 2px solid var(--foreground); padding-bottom: 0.5rem; margin-bottom: 0.5rem; }
@media (min-width: 640px) { .gems-cluster-title { font-size: 1.5rem; padding-bottom: 0.75rem; } }
.gems-cluster-desc { font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.5; margin-top: 0.5rem; }
@media (min-width: 640px) { .gems-cluster-desc { font-size: 1rem; } }
.gems-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .gems-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; } }
@media (min-width: 1024px) { .gems-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.gem-link { display: block; text-decoration: none; color: var(--foreground); transition: transform 0.3s; }
.gem-link:hover { transform: scale(1.02); }
.gem-link:active { transform: scale(0.98); }
.gem-card { background: var(--background); border: 2px solid var(--foreground); overflow: hidden; height: 100%; display: flex; flex-direction: column; }
.svg-border-inner > .gem-card { border: none; }
.gem-card-image { aspect-ratio: 16 / 9; overflow: hidden; background: var(--muted); position: relative; }
.gem-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s; }
.gem-link:hover .gem-card-image img { transform: scale(1.05); }
.gem-card-image-placeholder { position: absolute; inset: 0; background: linear-gradient(135deg, #5135FF, #FF5828, #F69CFF, #FFA50F); opacity: 0.4; }
.gem-card-body { padding: 0.75rem 1rem; flex: 1; }
@media (min-width: 640px) { .gem-card-body { padding: 1rem 1.25rem; } }
.gem-card-title { font-size: 1rem; font-weight: 900; text-transform: uppercase; margin-bottom: 0.25rem; line-height: 1.2; transition: color 0.15s; }
@media (min-width: 640px) { .gem-card-title { font-size: 1.125rem; } }
.gem-link:hover .gem-card-title { color: var(--primary); }
.gem-card-desc { font-size: 0.75rem; color: var(--muted-foreground); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 640px) { .gem-card-desc { font-size: 0.8125rem; } }

/* ===== Photography ===== */
.photo-listing-page { max-width: 72rem; margin: 0 auto; }
.photo-listing-header { margin-bottom: 3rem; }
.photo-listing-title { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 900; text-transform: uppercase; letter-spacing: -0.03em; border-bottom: 4px solid var(--foreground); padding-bottom: 0.5rem; margin-bottom: 1rem; }
.photo-listing-tagline { font-size: 0.9375rem; color: var(--muted-foreground); max-width: 40rem; line-height: 1.6; margin-bottom: 0.75rem; }
.photo-listing-count { font-size: 0.875rem; color: var(--muted-foreground); text-transform: uppercase; letter-spacing: 0.1em; }
.photo-sessions { display: grid; grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); gap: 1.5rem; }
.photo-session-card { display: block; text-decoration: none; color: var(--foreground); border: 4px solid var(--foreground); overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; }
.photo-session-card:hover { transform: translateY(-3px); box-shadow: 6px 6px 0 var(--foreground); }
.photo-session-cover { aspect-ratio: 4/3; overflow: hidden; background: var(--muted); }
.photo-session-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
.photo-session-card:hover .photo-session-cover img { transform: scale(1.04); }
.photo-session-info { padding: 1rem 1.25rem; border-top: 4px solid var(--foreground); }
.photo-session-name { font-size: 1.125rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 0.375rem; }
.photo-session-meta { display: flex; gap: 1rem; font-size: 0.8125rem; color: var(--muted-foreground); text-transform: uppercase; letter-spacing: 0.08em; }

/* Photography session page */
.photo-session-page { max-width: 56rem; margin: 0 auto; }
.photo-session-header { margin-bottom: 2rem; }
.photo-session-title { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; text-transform: uppercase; letter-spacing: -0.03em; border-bottom: 4px solid var(--foreground); padding-bottom: 0.5rem; margin-bottom: 0.75rem; }
.photo-session-header-meta { display: flex; gap: 1.5rem; font-size: 0.875rem; color: var(--muted-foreground); text-transform: uppercase; letter-spacing: 0.1em; }
.photo-session-cover-full { border: 4px solid var(--foreground); overflow: hidden; margin-bottom: 2.5rem; }
.photo-session-cover-full img { width: 100%; height: auto; display: block; }
.photo-session-gallery { border: 4px solid var(--foreground); padding: 1.5rem 2rem; margin-bottom: 2rem; }
.photo-session-gallery-title { font-size: 1.25rem; font-weight: 900; text-transform: uppercase; border-bottom: 2px solid var(--foreground); padding-bottom: 0.75rem; margin-bottom: 1.5rem; }
.photo-gallery-list { display: flex; flex-direction: column; gap: 1.5rem; }
.photo-gallery-item { border: 4px solid var(--foreground); overflow: hidden; }
.photo-gallery-item img { width: 100%; height: auto; display: block; }
.photo-session-footer { margin-top: 1.5rem; }
.photo-session-back { font-size: 0.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; text-decoration: none; color: var(--foreground); border: 2px solid var(--foreground); padding: 0.5rem 1rem; display: inline-block; }
.photo-session-back:hover { background: var(--foreground); color: var(--background); }

/* ===== Tapehendge ===== */
.tapehendge-body { margin: 0; overflow: hidden; height: 100vh; }
.tapehendge-app { display: grid; grid-template-columns: 22rem 1fr; height: 100vh; overflow: hidden; }

/* Player sidebar */
.tape-player { display: flex; flex-direction: column; gap: 1rem; padding: 1.5rem; border-right: 4px solid var(--foreground); background: var(--background); overflow-y: auto; }
.tape-wordmark { font-size: 0.75rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.2em; text-decoration: none; color: var(--muted-foreground); }
.tape-cover-wrapper { position: relative; width: 100%; aspect-ratio: 1; border: 4px solid var(--foreground); overflow: hidden; cursor: pointer; }
.tape-cover-wrapper img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tape-cover-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: var(--muted); font-size: 3rem; color: var(--muted-foreground); }
.tape-cover-wrapper img[style*="display:none"] ~ .tape-cover-placeholder { display: flex; }
.tape-cover-wrapper img:not([style*="display:none"]) ~ .tape-cover-placeholder { display: none; }
.tape-song-title { font-size: 0.875rem; font-weight: 700; line-height: 1.3; min-height: 2.4em; }
.tape-seek-row { display: flex; align-items: center; gap: 0.5rem; }
.tape-time { font-size: 0.75rem; color: var(--muted-foreground); font-variant-numeric: tabular-nums; min-width: 2.5rem; }
.tape-range { flex: 1; -webkit-appearance: none; appearance: none; height: 4px; background: var(--border); border-radius: 2px; outline: none; cursor: pointer; }
.tape-range::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--foreground); cursor: pointer; }
.tape-controls { display: flex; justify-content: center; align-items: center; gap: 0.5rem; }
.tape-btn { background: none; border: none; cursor: pointer; font-size: 1.375rem; color: var(--foreground); padding: 0.375rem; border-radius: 4px; line-height: 1; }
.tape-btn:hover { background: var(--muted); }
.tape-btn.active { color: var(--primary); }
.tape-btn--play { font-size: 1.75rem; border: 3px solid var(--foreground); border-radius: 50%; width: 3rem; height: 3rem; display: flex; align-items: center; justify-content: center; padding: 0; }
.tape-volume-row { display: flex; align-items: center; gap: 0.5rem; }
.tape-vol-icon { font-size: 1rem; }
.tape-login-btn { width: 100%; padding: 0.625rem; font-family: inherit; font-weight: 700; font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.1em; border: 3px solid var(--foreground); background: none; cursor: pointer; color: var(--foreground); margin-top: auto; }
.tape-login-btn:hover { background: var(--foreground); color: var(--background); }

/* Main area */
.tape-main { overflow-y: auto; height: 100vh; position: relative; }
.tape-loading { display: flex; align-items: center; justify-content: center; height: 100%; }
.tape-loading-inner { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--muted-foreground); }
.tape-toolbar { display: flex; gap: 0.75rem; padding: 1.25rem 1.5rem; border-bottom: 2px solid var(--border); position: sticky; top: 0; background: var(--background); z-index: 10; }
.tape-tool-btn { background: none; border: 2px solid var(--foreground); padding: 0.375rem 0.875rem; font-family: inherit; font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; cursor: pointer; color: var(--foreground); }
.tape-tool-btn:hover { background: var(--foreground); color: var(--background); }
.tape-search { flex: 1; padding: 0.375rem 0.75rem; font-family: inherit; font-size: 0.875rem; border: 2px solid var(--foreground); background: var(--background); color: var(--foreground); outline: none; }
.tape-search::placeholder { color: var(--muted-foreground); }
.tape-show-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 1rem; padding: 1.5rem; }
.tape-show-card { background: none; border: 3px solid var(--foreground); padding: 0; cursor: pointer; text-align: left; overflow: hidden; font-family: inherit; color: var(--foreground); transition: transform 0.15s, box-shadow 0.15s; }
.tape-show-card:hover { transform: translateY(-2px); box-shadow: 4px 4px 0 var(--foreground); }
.tape-show-cover { aspect-ratio: 1; overflow: hidden; background: var(--muted); border-bottom: 3px solid var(--foreground); }
.tape-show-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tape-show-info { padding: 0.5rem 0.625rem; }
.tape-show-date { font-size: 0.6875rem; color: var(--muted-foreground); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.tape-show-venue { font-size: 0.8125rem; font-weight: 700; line-height: 1.3; margin-top: 0.125rem; }
.tape-show-loc { font-size: 0.6875rem; color: var(--muted-foreground); margin-top: 0.125rem; }

/* Show detail */
.tape-detail-toolbar { padding: 1rem 1.5rem; border-bottom: 2px solid var(--border); position: sticky; top: 0; background: var(--background); z-index: 10; }
.tape-detail-header { display: flex; gap: 1.5rem; align-items: flex-start; padding: 1.5rem; border-bottom: 2px solid var(--border); }
.tape-detail-meta { display: flex; flex-direction: column; gap: 0.5rem; }
.tape-detail-venue { font-size: 1.5rem; font-weight: 900; text-transform: uppercase; line-height: 1.1; }
.tape-detail-where { font-size: 0.9375rem; color: var(--muted-foreground); }
.tape-fav-btn { background: none; border: 2px solid var(--foreground); padding: 0.375rem 0.875rem; font-family: inherit; font-size: 0.8125rem; font-weight: 700; cursor: pointer; color: var(--foreground); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 0.5rem; }
.tape-fav-btn:hover, .tape-fav-btn.favorited { background: var(--foreground); color: var(--background); }
.tape-track-list { display: flex; flex-direction: column; }
.tape-track { display: flex; align-items: center; gap: 0.75rem; padding: 0.625rem 1.5rem; border-bottom: 1px solid var(--border); background: none; border-left: none; border-right: none; border-top: none; font-family: inherit; font-size: 0.9375rem; cursor: pointer; color: var(--foreground); text-align: left; }
.tape-track:hover { background: var(--muted); }
.tape-track.playing { background: var(--foreground); color: var(--background); }
.tape-track-set { font-size: 0.6875rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em; min-width: 2rem; color: var(--muted-foreground); }
.tape-track.playing .tape-track-set { color: inherit; opacity: 0.7; }
.tape-track-title { flex: 1; }
.tape-track-now { font-size: 0.75rem; }

/* Login modal */
.tape-modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 50; }
.tape-modal { background: var(--background); border: 4px solid var(--foreground); padding: 2rem; width: min(28rem, calc(100vw - 2rem)); }
.tape-modal-tabs { display: flex; gap: 0; margin-bottom: 1.5rem; border-bottom: 2px solid var(--foreground); }
.tape-tab { flex: 1; background: none; border: none; padding: 0.625rem; font-family: inherit; font-size: 0.875rem; font-weight: 700; text-transform: uppercase; cursor: pointer; color: var(--muted-foreground); border-bottom: 4px solid transparent; margin-bottom: -2px; }
.tape-tab.active { color: var(--foreground); border-bottom-color: var(--foreground); }
.tape-login-form { display: flex; flex-direction: column; gap: 1rem; }
.tape-login-form label { display: flex; flex-direction: column; gap: 0.375rem; font-size: 0.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.tape-login-form input { padding: 0.5rem 0.75rem; font-family: inherit; font-size: 0.9375rem; border: 2px solid var(--foreground); background: var(--background); color: var(--foreground); outline: none; }
.tape-login-error { font-size: 0.875rem; color: hsl(0 84% 60%); min-height: 1.25rem; }
.tape-modal-actions { display: flex; gap: 0.75rem; justify-content: flex-end; margin-top: 0.5rem; }
.tape-btn-primary { padding: 0.625rem 1.5rem; font-family: inherit; font-size: 0.875rem; font-weight: 700; text-transform: uppercase; border: 2px solid var(--foreground); background: var(--foreground); color: var(--background); cursor: pointer; }
.tape-btn-secondary { padding: 0.625rem 1.5rem; font-family: inherit; font-size: 0.875rem; font-weight: 700; text-transform: uppercase; border: 2px solid var(--foreground); background: none; color: var(--foreground); cursor: pointer; }
.tape-btn-primary:hover { opacity: 0.85; }
.tape-btn-secondary:hover { background: var(--muted); }

@media (max-width: 768px) {
  .contract-page { grid-template-columns: 1fr; }
  .contract-sidebar { position: static; }
  .site-nav { padding: 0.75rem 1rem; gap: 0.75rem; }
  .site-main { padding: 2rem 1rem; }
  .home-nav-grid { grid-template-columns: 1fr; }
  .home-nav-item--wide { grid-column: span 1; }
  .garden-landing-item--wide { grid-column: span 1; }
  .everything-grid { grid-template-columns: 1fr; }
  .photo-sessions { grid-template-columns: 1fr; }
  .tapehendge-app { grid-template-columns: 1fr; grid-template-rows: auto 1fr; height: auto; overflow: visible; }
  .tapehendge-body { overflow: auto; height: auto; }
  .tape-main { height: auto; overflow: visible; }
  .tape-player { border-right: none; border-bottom: 4px solid var(--foreground); }
}
