:root {
  --bg: #0f0f0f;
  --card: #f3f3f3;
  --muted: #a8a8a8;
  --text: #f5f5f5;
  --accent: #56a1ff;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --site-header-height: 84px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: #050505;
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: -10%;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.16), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(255, 255, 255, 0.10), transparent 55%),
    radial-gradient(circle at 50% 120%, rgba(255, 255, 255, 0.08), transparent 60%);
  filter: blur(40px);
  mix-blend-mode: screen;
  opacity: 0.45;
  pointer-events: none;
  z-index: -1;
  animation: softSweep 26s ease-in-out infinite alternate;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: 
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(255, 255, 255, 0.85), transparent),
    radial-gradient(1px 1px at 23% 45%, rgba(255, 255, 255, 0.95), transparent),
    radial-gradient(2px 2px at 34% 72%, rgba(255, 255, 255, 0.75), transparent),
    radial-gradient(1px 1px at 45% 28%, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(1.5px 1.5px at 56% 88%, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1px 1px at 67% 15%, rgba(255, 255, 255, 0.85), transparent),
    radial-gradient(2px 2px at 78% 55%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1px 1px at 89% 32%, rgba(255, 255, 255, 0.95), transparent),
    radial-gradient(1.5px 1.5px at 8% 65%, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1px 1px at 19% 92%, rgba(255, 255, 255, 0.85), transparent),
    radial-gradient(2px 2px at 31% 38%, rgba(255, 255, 255, 0.75), transparent),
    radial-gradient(1px 1px at 42% 5%, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(1.5px 1.5px at 53% 62%, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1px 1px at 64% 25%, rgba(255, 255, 255, 0.95), transparent),
    radial-gradient(2px 2px at 75% 78%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1px 1px at 86% 48%, rgba(255, 255, 255, 0.85), transparent),
    radial-gradient(1.5px 1.5px at 97% 12%, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1px 1px at 3% 35%, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(2px 2px at 14% 82%, rgba(255, 255, 255, 0.75), transparent),
    radial-gradient(1px 1px at 26% 58%, rgba(255, 255, 255, 0.95), transparent),
    radial-gradient(1.5px 1.5px at 37% 8%, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1px 1px at 48% 95%, rgba(255, 255, 255, 0.85), transparent),
    radial-gradient(2px 2px at 59% 42%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1px 1px at 70% 68%, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(1.5px 1.5px at 81% 22%, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1px 1px at 92% 85%, rgba(255, 255, 255, 0.95), transparent);
  background-size: 100% 100%;
  opacity: 0;
  pointer-events: none;
  z-index: -1;
  transition: opacity 0.3s ease;
}

body.theme-dark::after {
  opacity: 0.35;
}

@keyframes softSweep {
  0% {
    transform: translate3d(-6%, -4%, 0) scale(1);
    opacity: 0.4;
  }
  40% {
    transform: translate3d(4%, 2%, 0) scale(1.03);
    opacity: 0.55;
  }
  70% {
    transform: translate3d(-2%, 4%, 0) scale(1.02);
    opacity: 0.5;
  }
  100% {
    transform: translate3d(3%, 0%, 0) scale(1.04);
    opacity: 0.45;
  }
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 16vw;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0.7) 60%, rgba(10, 10, 10, 0) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.2s ease;
}

.brand:hover {
  color: rgba(244, 208, 63, 0.95);
}

.brand-image {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.brand-logo {
  display: block;
  height: 26px;
  width: auto;
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.brand:hover .brand-logo {
  opacity: 0.88;
  filter: brightness(1.08);
}

.nav {
  display: flex;
  flex-shrink: 0;
  gap: 28px;
  font-size: 11px;
  line-height: 1;
  align-items: center;
}

.nav-toggle {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.nav-toggle:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 1.5px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.92);
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.nav-toggle-bar + .nav-toggle-bar {
  margin-top: 5px;
}

.site-header.is-nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.site-header.is-nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.site-header.is-nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.nav a {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 5px;
  padding: 8px 2px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #f4d03f 35%, #d4af37 65%, transparent 100%);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  opacity: 0.95;
}

.nav a[target="_blank"]::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.nav a:hover {
  color: rgba(244, 208, 63, 0.95);
  text-shadow: 0 0 20px rgba(244, 208, 63, 0.35);
}

.nav a[target="_blank"]:hover::before {
  background: rgba(244, 208, 63, 0.55);
  box-shadow: 0 0 8px rgba(244, 208, 63, 0.45);
}

.nav a:hover::after {
  transform: scaleX(1);
}

body[data-page="about"] .nav a[href="/about"]::after {
  transform: scaleX(1);
  background: linear-gradient(90deg, #b8860b 0%, #f4d03f 50%, #d4af37 100%);
}

.nav-ask-icon {
  display: block;
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  transition: filter 0.25s ease;
}

.nav-ask:hover .nav-ask-icon {
  filter: brightness(0) saturate(100%) invert(84%) sepia(28%) saturate(1039%) hue-rotate(359deg) brightness(101%) contrast(93%);
}

/* Beat .nav a::after / .nav a:hover::after — no full-width anchor underline */
.nav a.nav-ask::after,
.nav a.nav-ask:hover::after {
  content: none;
  transform: none;
}

.nav-ask-label {
  position: relative;
  display: inline-block;
  line-height: 1;
}

.nav-ask-label::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #f4d03f 35%, #d4af37 65%, transparent 100%);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  opacity: 0.95;
}

body:not([data-page="ask"]) .nav-ask:hover .nav-ask-label::after {
  transform: scaleX(1);
}

body[data-page="ask"] .nav a.nav-ask .nav-ask-label::after,
body[data-page="ask"] .nav a.nav-ask:hover .nav-ask-label::after {
  transform: scaleX(1);
  background: linear-gradient(90deg, #b8860b 0%, #f4d03f 50%, #d4af37 100%);
  transition: none;
}

.hero {
  padding: 64px 16vw 48px;
  width: 100%;
}

.hero .eyebrow {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
}

.hero h1 {
  font-family: 'Denton Test', 'Denton', 'Playfair Display', serif;
  font-size: clamp(40px, 6vw, 60px);
  letter-spacing: 0.8px;
  margin: 0 0 8px;
  line-height: 1.1;
}

.hero-name-gold {
  background: linear-gradient(135deg, #d4af37 0%, #f4d03f 25%, #d4af37 50%, #b8860b 75%, #d4af37 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.lede {
  max-width: 720px;
  color: #d9d9d9;
  line-height: 1.6;
  margin: 0;
}

/* ========== Homepage hero (redesign) ========== */
.home-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 16vw;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #000000;
}

body[data-page="index"] .home-hero {
  margin-top: calc(-1 * var(--site-header-height));
  padding-top: var(--site-header-height);
}

.home-hero-lines {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.background-lines-bg {
  position: absolute;
  inset: 0;
}

.background-lines-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse 88% 72% at 50% 50%, #000 35%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 88% 72% at 50% 50%, #000 35%, transparent 100%);
}

.background-lines-path {
  stroke-dasharray: 20 800;
  stroke-dashoffset: 800;
  opacity: 0;
  animation: background-line-draw 10s linear infinite;
}

@keyframes background-line-draw {
  0% {
    stroke-dashoffset: 800;
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  88% {
    opacity: 1;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.home-hero-inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 0;
  overflow: hidden;
  isolation: isolate;
}

.hero-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateY(-2.5rem);
}

.hero-ticker {
  position: relative;
  width: 100%;
  flex-shrink: 0;
  z-index: 3;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 5, 5, 0.92);
  overflow: hidden;
}

.hero-ticker-label {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(168, 168, 168, 0.65);
  font-weight: 700;
  z-index: 2;
  background: rgba(5, 5, 5, 0.98);
  padding-right: 16px;
}

.hero-ticker-track {
  display: flex;
  width: max-content;
  padding: 14px 0 14px 5.5rem;
  white-space: nowrap;
  animation: heroTickerScroll 28s linear infinite;
}

.hero-ticker-item {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(168, 168, 168, 0.88);
  font-weight: 700;
  padding: 0 32px;
  display: inline-flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}

.hero-ticker-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(244, 208, 63, 0.85);
  flex-shrink: 0;
}

@keyframes heroTickerScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.home-hero-inner > .hero-copy > * {
  animation: heroFadeUp 0.85s ease both;
}

.home-hero-inner > .hero-copy > .hero-greeting {
  animation: heroFadeIn 0.85s ease both;
  animation-delay: 0s;
}

.home-hero-inner > .hero-copy > .hero-heading {
  animation-delay: 0.08s;
}

.home-hero-inner > .hero-copy > .hero-sub {
  animation-delay: 0.18s;
}

.home-hero-inner > .hero-copy > .hero-meta {
  animation-delay: 0.28s;
}

@media (prefers-reduced-motion: reduce) {
  .home-hero-inner > .hero-copy > * {
    animation: none !important;
  }

  .hero-ticker-track {
    animation: none !important;
  }

  .background-lines-svg {
    display: none;
  }
}

.hero-greeting {
  position: relative;
  height: 24px;
  width: 100%;
  margin: 0 0 20px;
  overflow: hidden;
}

.hero-greeting-item {
  position: absolute;
  left: 50%;
  top: 0;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 208, 63, 0.72);
  opacity: 0;
  transform: translateX(-50%) translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.hero-greeting-item.is-active {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.hero-greeting-item.is-exit {
  opacity: 0;
  transform: translateX(-50%) translateY(-12px);
}

.hero-heading {
  font-family: 'Denton Test', 'Denton', 'Playfair Display', serif;
  font-size: clamp(52px, 8vw, 88px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0;
  color: #ffffff;
}

.hero-heading em {
  font-style: normal;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, transparent 42%, rgba(0, 0, 0, 0.4) 100%),
    linear-gradient(135deg, #d4af37 0%, #f4d03f 25%, #d4af37 50%, #b8860b 75%, #d4af37 100%);
  background-size: 100% 100%, 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-sub {
  margin-top: 12px;
  max-width: 700px;
  font-size: 15px;
  color: rgba(217, 217, 217, 0.78);
  line-height: 1.75;
  text-align: center;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
  margin-top: 4px;
}

.hero-meta-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(217, 217, 217, 0.78);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 7px 13px;
  border-radius: 999px;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 26px;
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-number {
  font-family: 'Denton Test', 'Denton', 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 500;
  color: #ffffff;
  line-height: 1;
}

.metric-desc {
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(168, 168, 168, 0.85);
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #d4af37 0%, #f4d03f 45%, #b8860b 100%);
  color: #050505;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.btn-primary:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.36);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(217, 217, 217, 0.78);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.btn-ghost:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
}

.work {
  padding: 48px 16vw 72px;
}

.section-title {
  font-family: 'Denton Test', 'Denton', 'Playfair Display', serif;
  font-size: clamp(28px, 3.2vw, 36px);
  color: #ffffff;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
}

.work-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.project-card {
  border-radius: 22px;
  overflow: visible;
}

.project-card-link {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: stretch;
  height: auto;
  min-height: 0;
  text-decoration: none;
  color: inherit;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 22px;
  overflow: hidden;
  transform-origin: center;
  transition:
    transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 0.35s ease,
    background 0.4s ease;
}

.project-card-visual {
  position: relative;
  overflow: hidden;
  min-height: 0;
  aspect-ratio: 754 / 600;
  height: auto;
}

.project-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.project-card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  height: 100%;
  padding: 36px 44px 36px 28px;
}

.project-card-tag {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5eead4;
}

.project-card-title {
  margin: 0 0 12px;
  font-family: 'Denton Test', 'Denton', 'Playfair Display', serif;
  font-size: clamp(26px, 2.8vw, 34px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #f3f4f6;
}

.project-card-desc {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
  color: rgba(217, 217, 217, 0.78);
  max-width: 40ch;
}

.project-card-link:hover {
  background:
    radial-gradient(ellipse 95% 115% at 28% 50%, rgba(10, 52, 44, 0.95) 0%, rgba(8, 40, 34, 0.55) 38%, rgba(8, 32, 28, 0.18) 65%, rgba(8, 28, 24, 0) 92%),
    #0a0a0a;
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.35);
  transform: scale(1.02);
}

.project-card-link--elockr:hover {
  background:
    radial-gradient(ellipse 95% 115% at 28% 50%, rgba(12, 36, 62, 0.95) 0%, rgba(10, 28, 50, 0.55) 38%, rgba(8, 22, 40, 0.18) 65%, rgba(8, 16, 30, 0) 92%),
    #0a0a0a;
}

.project-card-logo {
  display: block;
  width: 86px;
  height: auto;
  margin-bottom: 14px;
}

.project-card-logo--wordmark {
  width: auto;
  height: 20px;
  line-height: 20px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #48c2c5;
}

/* Legacy project styles (unused on homepage) */
.project {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project:first-of-type {
  margin-top: -20px;
}

.project-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-thumb {
  background: var(--card);
  color: #4c4c4c;
  border-radius: 6px;
  min-height: clamp(260px, 50vw, 520px);
  display: grid;
  place-items: center;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transform: translateY(0) scale(1);
  transition:
    transform 320ms cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 320ms cubic-bezier(0.22, 0.61, 0.36, 1),
    background-color 260ms ease-out;
  overflow: hidden;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-thumb:hover {
  transform: translateY(-4px) scale(1.005);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
  background: #f5f5f5;
}

.project-meta {
  color: var(--muted);
  font-size: 14px;
}

.cta {
  padding: 80px 16vw 40px;
  background: #0a0a0a;
  text-align: left;
}

.cta h2 {
  font-family: 'Denton Test', 'Denton', 'Playfair Display', serif;
  margin: 0 0 12px;
  font-size: clamp(28px, 5vw, 36px);
  letter-spacing: 0.4px;
}

.cta-link {
  color: var(--muted);
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease;
}

.cta-link:hover {
  color: #fff;
}

.about {
  padding: 48px 16vw 64px;
  background: #0f0f0f;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.about-page {
  padding: 64px 16vw 32px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.about-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.about-grid.two-column {
  grid-template-columns: 140px 1fr;
  align-items: flex-start;
}

/* About intro: image left, About heading + copy right (two-column) */
.about-grid.about-intro {
  grid-template-columns: minmax(200px, 38%) 1fr;
  align-items: start;
  gap: 24px 56px;
  margin-bottom: 48px;
}

.about-grid.about-intro .about-photo {
  position: relative;
}

.about-grid.about-intro .about-photo img {
  width: 100%;
  height: auto;
  display: block;
  border: 3px solid #d4af37;
  border-radius: 4px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  object-fit: cover;
}

.about-grid.about-intro .about-intro-content {
  min-width: 0;
}

.about-label {
  font-family: 'Denton Test', 'Denton', 'Playfair Display', serif;
  font-size: 20px;
  letter-spacing: 0.4px;
  color: #ffffff;
  font-weight: 600;
  padding-top: 0;
  margin-top: 0;
}

.about-copy {
  color: #e7e7e7;
  line-height: 1.7;
  max-width: none;
}

.about-copy p {
  margin-top: 0;
  margin-bottom: 1em;
}

.about-copy p:first-child {
  margin-top: 0;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.about-copy .about-highlight {
  background: rgba(212, 175, 55, 0.12);
  color: inherit;
  font-weight: 500;
  padding: 0.12em 0.28em;
  border-radius: 3px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.about-items {
  display: grid;
  gap: 16px;
}

.about-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #e7e7e7;
}

.item-title {
  font-weight: 600;
}

.item-subtitle {
  color: var(--muted);
  font-size: 14px;
}

.item-meta {
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.cta-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 0;
}

/* ========== About page (redesign v2) ========== */
body[data-page="about"] .about-v2 {
  padding: 0;
}

body[data-page="about"] .about-hero {
  padding: 60px 16vw 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

body[data-page="about"] .about-left {
  text-align: left;
  overflow: visible;
}

body[data-page="about"] .about-right {
  text-align: left;
}

body[data-page="about"] .about-eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 208, 63, 0.95);
  margin: 0 0 18px;
}

body[data-page="about"] .about-heading {
  font-family: 'Denton Test', 'Denton', 'Playfair Display', serif;
  font-size: clamp(40px, 4.4vw, 64px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  color: #ffffff;
  overflow: visible;
}

body[data-page="about"] .about-heading-emphasis {
  font-style: normal;
  background: linear-gradient(135deg, #d4af37 0%, #f4d03f 25%, #d4af37 50%, #b8860b 75%, #d4af37 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  padding-right: 0.12em;
  -webkit-text-stroke: 0.4px transparent;
}

body[data-page="about"] .about-right p {
  font-size: 15px;
  color: rgba(217, 217, 217, 0.78);
  line-height: 1.75;
  margin: 0 0 18px;
}

body[data-page="about"] .about-emphasis {
  color: #ffffff;
  font-weight: 600;
}

body[data-page="about"] .about-right .btn-primary {
  margin-top: 8px;
  display: inline-flex;
}

body[data-page="about"] .about-body {
  padding: 64px 16vw 0;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
}

body[data-page="about"] .about-section-title {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(168, 168, 168, 0.85);
  margin: 0 0 18px;
}

body[data-page="about"] .about-section-title--spaced {
  margin-top: 22px;
}

body[data-page="about"] .exp-item {
  margin: 0 0 18px;
  padding: 0 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body[data-page="about"] .exp-item.exp-item-last {
  border-bottom: none;
  padding-bottom: 0;
}

body[data-page="about"] .exp-role {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 4px;
}

body[data-page="about"] .exp-company {
  font-size: 13px;
  color: rgba(217, 217, 217, 0.78);
  margin: 0 0 6px;
}

body[data-page="about"] .exp-dates {
  font-size: 11px;
  color: rgba(168, 168, 168, 0.85);
  letter-spacing: 0.04em;
  margin: 0;
}

body[data-page="about"] .about-philosophy {
  margin: 0 0 22px;
  padding: 16px 18px;
  border-left: 2px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  color: rgba(217, 217, 217, 0.86);
  line-height: 1.65;
}

body[data-page="about"] .about-philosophy em {
  font-style: italic;
  color: rgba(255, 255, 255, 0.92);
}

body[data-page="about"] .about-prose {
  margin: 0 0 16px;
  color: rgba(217, 217, 217, 0.78);
  line-height: 1.75;
}

body[data-page="about"] .skills-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

body[data-page="about"] .skill-cell {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 14px 12px;
  background: linear-gradient(180deg, rgba(8, 14, 16, 0.98) 0%, rgba(5, 5, 5, 0.98) 100%);
}

body[data-page="about"] .skill-cell-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(168, 168, 168, 0.85);
  margin: 0 0 10px;
}

body[data-page="about"] .skill-cell-content {
  margin: 0;
  font-size: 14px;
  color: rgba(217, 217, 217, 0.80);
  line-height: 1.6;
}

.contact-strip {
  margin-top: 56px;
  padding: 28px 16vw;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.contact-line {
  margin: 0;
  font-size: 13px;
  color: rgba(168, 168, 168, 0.92);
  letter-spacing: 0.02em;
}

.contact-links {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.contact-links a {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(217, 217, 217, 0.72);
  transition: color 0.2s ease;
}

.contact-links a:hover {
  color: rgba(244, 208, 63, 0.95);
}

.site-footer {
  padding: 18px 16vw 26px;
  font-size: 11px;
  color: rgba(168, 168, 168, 0.78);
  letter-spacing: 0.04em;
  margin: 0;
}

@media (max-width: 1200px) {
  .site-header {
    padding-left: 8vw;
    padding-right: 8vw;
  }

  .nav {
    gap: 20px;
  }
}

@media (max-width: 900px) {
  .site-header {
    padding: 16px 6vw;
  }

  .home-hero {
    padding: 0 6vw;
  }

  .work {
    padding: 48px 6vw 72px;
  }

  .work-list {
    gap: 24px;
  }

  .project-card-link {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
  }

  .project-card-visual {
    min-height: 0;
    height: auto;
    aspect-ratio: 754 / 600;
  }

  .project-card-content {
    height: auto;
    padding: 24px 24px 28px;
  }

  .project-card-title,
  .project-card-desc {
    max-width: none;
  }

  body[data-page="about"] .about-hero {
    grid-template-columns: 1fr;
    padding: 96px 6vw 48px;
    gap: 32px;
  }

  body[data-page="about"] .about-body {
    padding: 48px 6vw 0;
    grid-template-columns: 1fr;
    gap: 34px;
  }

  body[data-page="about"] .skills-grid {
    grid-template-columns: 1fr;
  }

  .contact-strip {
    padding: 22px 6vw;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .site-footer {
    padding: 18px 6vw 24px;
  }
}

.theme-toggle {
  margin-left: 20px;
  position: relative;
  width: 52px;
  height: 30px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
}

.theme-toggle-track {
  position: relative;
  width: 46px;
  height: 24px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: background-color 300ms cubic-bezier(0.4, 0, 0.2, 1),
    border-color 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(0);
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-icon {
  position: absolute;
  width: 14px;
  height: 14px;
  transition: opacity 250ms ease-out, transform 250ms ease-out;
  pointer-events: none;
  color: #1a1a1a;
}

.theme-icon-sun {
  opacity: 0;
  transform: scale(0.8) rotate(90deg);
}

.theme-icon-moon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.theme-light .theme-toggle-track {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.12);
}

.theme-light .theme-toggle-thumb {
  transform: translateX(22px);
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.theme-light .theme-icon-sun {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.theme-light .theme-icon-moon {
  opacity: 0;
  transform: scale(0.8) rotate(-90deg);
}

.theme-dark .theme-toggle-thumb {
  transform: translateX(0);
}

.theme-dark .theme-icon-sun {
  opacity: 0;
  transform: scale(0.8) rotate(90deg);
}

.theme-dark .theme-icon-moon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

body.theme-light {
  background-color: #f5f5f7;
  color: #111111;
}

body.theme-light .site-header {
  background: linear-gradient(
    180deg,
    rgba(245, 245, 247, 0.96) 0%,
    rgba(245, 245, 247, 0.9) 60%,
    rgba(245, 245, 247, 0) 100%
  );
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

body.theme-light .nav a {
  color: rgba(17, 17, 17, 0.88);
}

body.theme-light .nav a::after {
  background: linear-gradient(90deg, transparent 0%, #b8860b 35%, #d4af37 65%, transparent 100%);
}

body.theme-light .nav a:hover {
  color: rgba(184, 134, 11, 0.95);
  text-shadow: none;
}

body.theme-light .nav a[target="_blank"]::before {
  background: rgba(17, 17, 17, 0.35);
  box-shadow: none;
}

body.theme-light .nav a[target="_blank"]:hover::before {
  background: rgba(184, 134, 11, 0.65);
}

body.theme-light .cta {
  background: #f7f7f9;
}

body.theme-light .about {
  background: #f5f5f7;
}

body.theme-light .about-page {
  background: transparent;
}

body.theme-light .about-copy,
body.theme-light .about-item,
body.theme-light .item-title {
  color: #1b1b1f;
}

body.theme-light .about-copy .about-highlight {
  background: rgba(184, 134, 11, 0.14);
  color: inherit;
}

body.theme-light .about-label,
body.theme-light .section-title {
  color: #6b6b6f;
}

body.theme-light .about-grid.about-intro .about-photo img {
  border-color: #b8860b;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

body.theme-light .item-subtitle,
body.theme-light .item-meta,
body.theme-light .project-meta,
body.theme-light .cta-link,
body.theme-light .footer-meta,
body.theme-light .footer-links {
  color: #6b6b6f;
}

body.theme-light .lede {
  color: #1b1b1f;
  opacity: 0.9;
}

body.theme-light .brand {
  color: #111111;
}

body.theme-light .brand:hover {
  color: #7a5a00;
}

body.theme-light .brand-logo {
  filter: invert(1);
}

body.theme-light .brand:hover .brand-logo {
  filter: invert(1) brightness(0.85);
}

body.theme-light .brand-image {
  border-color: rgba(0, 0, 0, 0.1);
}

body.theme-light .project-thumb {
  background: #ffffff;
}

body.theme-light .project-card-link {
  background:
    radial-gradient(circle at 78% 42%, rgba(16, 185, 129, 0.08) 0%, rgba(16, 185, 129, 0) 52%),
    linear-gradient(135deg, #ffffff 0%, #f7f7f7 100%);
  border-color: rgba(0, 0, 0, 0.08);
}

body.theme-light .project-card-tag {
  color: #0d9488;
}

body.theme-light .project-card-title {
  color: #111111;
}

body.theme-light .project-card-desc {
  color: #6b6b6f;
}

body.theme-light .project-card-link:hover {
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.08);
}

body.theme-light .project-thumb:hover {
  background: #fbfbfb;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.1);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  margin-top: 12px;
}

.footer-meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 780px) {
  :root {
    --site-header-height: 64px;
  }

  body.is-nav-open {
    overflow: hidden;
  }

  .site-header {
    padding: 16px 8vw;
    z-index: 100;
  }

  .brand {
    min-width: 0;
    flex: 1;
  }

  .brand-logo {
    max-width: min(120px, 42vw);
    height: auto;
    max-height: 20px;
    object-fit: contain;
    object-position: left center;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    margin-left: 12px;
  }

  .nav {
    position: fixed;
    top: var(--site-header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 8vw 20px;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.28s ease,
      visibility 0.28s ease;
    z-index: 99;
  }

  .site-header.is-nav-open .nav {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav a {
    justify-content: flex-start;
    width: 100%;
    padding: 14px 2px;
    font-size: 12px;
    letter-spacing: 0.14em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav a:last-child {
    border-bottom: none;
  }

  .brand-image {
    width: 32px;
    height: 32px;
  }

  .home-hero {
    padding: 0 8vw;
  }

  .home-hero-inner {
    padding: 32px 0;
  }

  .hero-copy {
    transform: translateY(-1.5rem);
  }

  .hero-ticker-label {
    font-size: 9px;
  }

  .hero-ticker-track {
    padding-left: 4.25rem;
  }

  .hero-ticker-item {
    font-size: 10px;
    padding: 0 20px;
    gap: 16px;
  }

  .about-grid.two-column {
    grid-template-columns: 1fr;
  }

  .about-grid.about-intro .about-photo {
    max-width: 360px;
  }

  .about-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .work-list {
    gap: 16px;
  }

  .project-card-link {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
  }

  .project-card-visual {
    min-height: 0;
    height: auto;
    aspect-ratio: 754 / 600;
  }

  .project-card-content {
    height: auto;
    padding: 24px 24px 28px;
  }

  .project-card-title {
    max-width: none;
  }

  .project-card-desc {
    max-width: none;
  }

  .project-thumb {
    min-height: 220px;
  }

  .theme-toggle {
    margin-left: 12px;
  }
}

@media (max-width: 600px) {
  .home-hero-inner {
    padding: 24px 0;
  }

  .hero-copy {
    transform: translateY(-0.75rem);
  }

  .hero-heading {
    font-size: clamp(36px, 10vw, 52px);
  }

  .hero-sub {
    font-size: 14px;
    line-height: 1.6;
  }

  .hero-meta {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .work {
    padding: 40px 5vw 56px;
  }

  .work-list {
    gap: 16px;
  }

  .project-card-content {
    padding: 20px 18px 24px;
  }

  .project-card-title {
    font-size: clamp(22px, 6vw, 28px);
  }

  .section-title {
    font-size: clamp(24px, 6vw, 28px);
    margin-bottom: 20px;
  }

  body[data-page="about"] .about-hero {
    padding: 80px 5vw 40px;
    gap: 24px;
  }

  body[data-page="about"] .about-body {
    padding: 40px 5vw 0;
  }

  body[data-page="about"] .about-heading {
    font-size: clamp(32px, 8vw, 44px);
  }

  .contact-strip {
    padding: 20px 5vw;
  }

  .site-footer {
    padding: 16px 5vw 20px;
  }
}

@media (pointer: fine) {
  .has-custom-cursor,
  .has-custom-cursor * {
    cursor: none !important;
  }

  .cursor-meteor {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 1;
    will-change: transform;
    transition: opacity 0.2s ease;
  }

  .cursor-hidden .cursor-meteor {
    opacity: 0;
  }

  .cursor-meteor-tail {
    position: absolute;
    right: 0;
    top: 50%;
    width: 32px;
    height: 2px;
    transform: translateY(-50%);
    transform-origin: 100% 50%;
    border-radius: 999px;
    background: linear-gradient(
      90deg,
      transparent 0%,
      rgba(212, 175, 55, 0.08) 20%,
      rgba(255, 200, 50, 0.55) 62%,
      rgba(255, 215, 0, 0.92) 92%,
      #ffd700 100%
    );
    box-shadow:
      0 0 8px rgba(255, 215, 0, 0.35),
      0 0 16px rgba(212, 175, 55, 0.2);
    transition: width 0.15s ease, box-shadow 0.2s ease;
  }

  .cursor-meteor-head {
    position: absolute;
    right: -2px;
    top: 50%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    transform: translateY(-50%);
    background: #ffd700;
    box-shadow:
      0 0 6px #ffe566,
      0 0 14px rgba(255, 215, 0, 0.9),
      0 0 22px rgba(212, 175, 55, 0.55);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .cursor-meteor-glow {
    position: absolute;
    right: -6px;
    top: 50%;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    transform: translateY(-50%) scale(0.6);
    background: radial-gradient(
      circle,
      rgba(255, 244, 184, 0.55) 0%,
      rgba(255, 215, 0, 0.2) 45%,
      transparent 72%
    );
    opacity: 0.7;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .cursor-hover .cursor-meteor-tail {
    width: 48px;
    box-shadow:
      0 0 12px rgba(255, 215, 0, 0.55),
      0 0 24px rgba(212, 175, 55, 0.35);
  }

  .cursor-hover .cursor-meteor-head {
    transform: translateY(-50%) scale(1.35);
    box-shadow:
      0 0 8px #ffe566,
      0 0 18px rgba(255, 215, 0, 1),
      0 0 30px rgba(212, 175, 55, 0.75);
  }

  .cursor-hover .cursor-meteor-glow {
    transform: translateY(-50%) scale(1.1);
    opacity: 1;
  }

  .cursor-active .cursor-meteor-head {
    transform: translateY(-50%) scale(1.6);
  }

  .cursor-active .cursor-meteor-glow {
    transform: translateY(-50%) scale(1.45);
    opacity: 1;
  }

  .cursor-active .cursor-meteor-tail {
    width: 58px;
    box-shadow:
      0 0 16px rgba(255, 215, 0, 0.7),
      0 0 32px rgba(212, 175, 55, 0.45);
  }
}

