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

*,
*::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 12vw;
  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);
}

.brand {
  font-weight: 600;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

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

.nav {
  display: flex;
  gap: 24px;
  font-size: 14px;
  color: var(--muted);
  align-items: center;
}

.nav a {
  position: relative;
  transition: color 0.2s ease;
  text-decoration: none;
}

.nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: currentColor;
  transition: width 0.3s ease;
}

.nav a:hover {
  color: #fff;
}

.nav a:hover::after {
  width: 100%;
}

.hero {
  padding: 64px 12vw 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;
}

.work {
  padding: 20px 12vw 64px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

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

.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 12vw 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 12vw 64px;
  background: #0f0f0f;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.about-page {
  padding: 64px 12vw 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-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-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;
}

.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%
  );
}

body.theme-light .nav a:hover {
  color: #111111;
}

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-label,
body.theme-light .section-title {
  color: #6b6b6f;
}

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 .nav a {
  color: #6b6b6f;
}

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

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

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) {
  .site-header {
    padding: 16px 8vw;
  }

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

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

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

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

