:root {
  color-scheme: dark;
  --bg: #0d0e11;
  --bg-subtle: #14161d;
  --card-bg: rgba(22, 25, 34, 0.6);
  --card-border: rgba(255, 255, 255, 0.08);
  --fg: #f3f4f6;
  --muted: #9ca3af;
  --soft: #6b7280;
  --line: rgba(255, 255, 255, 0.08);
  --gold: #f59e0b;
  --gold-glow: rgba(245, 158, 11, 0.15);
  --content: 900px;
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image: 
    radial-gradient(at 0% 0%, rgba(245, 158, 11, 0.05) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(245, 158, 11, 0.03) 0px, transparent 50%);
  background-attachment: fixed;
  color: var(--fg);
  font: 16px/1.8 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.topbar, main, .footer {
  width: min(calc(100% - 48px), var(--content));
  margin-inline: auto;
}

/* Header / Topbar */
.topbar {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(13, 14, 17, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
}

.wordmark {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.05em;
  transition: opacity 0.2s ease;
}

.wordmark:hover {
  opacity: 0.8;
}

.wordmark span {
  color: var(--gold);
}

.topbar-note {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--soft);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15em;
}

.topbar-note i {
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--gold);
}

/* Hero Section */
.hero {
  padding: 100px 0 80px;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}

h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -.04em;
}

h1 span {
  color: var(--muted);
  font-weight: 500;
}

.hero-copy {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.hero-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.text-link {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--fg);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  padding: 10px 18px;
  background: var(--bg-subtle);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  transition: all 0.25s ease;
}

.text-link span {
  color: var(--gold);
  font-size: 16px;
  transition: transform 0.25s ease;
}

.text-link:hover {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fff;
}

.text-link:hover span {
  transform: translate(2px, 2px);
}

.availability {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
}

.pulse {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* Sections Layout */
.section {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 32px;
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

.section-label {
  display: flex;
  gap: 12px;
  align-items: baseline;
  color: var(--soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .15em;
  position: sticky;
  top: 104px;
  height: fit-content;
}

.section-label span:first-child {
  color: var(--gold);
}

.section-content {
  min-width: 0;
}

.section-content > h2 {
  margin: 0 0 16px;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -.03em;
}

.section-content > p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

/* Projects Card */
.project {
  padding: 32px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.project:hover {
  border-color: rgba(245, 158, 11, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.5);
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
}

.project-arrow {
  font-size: 18px;
  transition: transform 0.25s ease;
}

.project:hover .project-arrow {
  transform: translate(3px, -3px);
}

.project h2 {
  margin: 16px 0 12px;
  font-size: 26px;
  letter-spacing: -.03em;
  font-weight: 700;
}

.project p {
  max-width: 100%;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* Tech Stack Tags */
.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.stack span {
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  color: #e5e7eb;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .05em;
  transition: all 0.2s ease;
}

.stack span:hover {
  background: var(--gold-glow);
  border-color: rgba(245, 158, 11, 0.3);
  color: var(--gold);
}

.section-content > .disclaimer {
  margin-top: 20px;
  padding: 0 4px;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.7;
}

/* Approach List */
.approach-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s ease;
}

.approach-row:first-child {
  padding-top: 0;
}

.approach-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.approach-row span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
}

.approach-row p {
  margin: 0;
  color: var(--muted);
}

/* Footer */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-size: 13px;
}

/* Focus State Accessibility */
a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 4px;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .topbar, main, .footer {
    width: min(calc(100% - 32px), var(--content));
  }
  
  .topbar {
    height: 70px;
  }
  
  .topbar-note {
    font-size: 9px;
    letter-spacing: .08em;
  }
  
  .hero {
    padding: 60px 0 50px;
  }
  
  .hero-copy {
    font-size: 16px;
  }
  
  .section {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 36px 0;
  }
  
  .section-label {
    position: static;
  }
  
  .project {
    padding: 24px;
  }
  
  .approach-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}