:root {
  --bg: #ffffff;
  --fg: #111111;
  --muted: #666666;
  --muted-2: #888888;
  --line: #ebebeb;
  --line-strong: #cccccc;
  --accent: #000000;
  
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --max-w: 1040px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { 
  background: rgba(0,0,0,0.1); 
  color: #000; 
}

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

ul { 
  list-style: none; 
}

#constellations, .bg-grid, .bg-grain, #cursor {
  display: none !important;
}

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-logo {
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.nav-logo-bracket { display: none; }

.nav-links {
  display: flex;
  gap: 32px;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-links a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--fg);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle .menu-bar {
  width: 24px;
  height: 2px;
  background: var(--fg);
  transition: transform 0.3s ease;
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 39;
  background: var(--bg);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu.open {
  display: flex;
  opacity: 1;
}

.mobile-menu a {
  font-size: 1.5rem;
  font-weight: 500;
}

.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 40px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.hero-overlay {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  width: 100%;
}

.hero-tag {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 500;
}

.hero-name {
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-transform: none;
}

.hero-name-dim {
  color: var(--muted);
}

.hero-divider { display: none; }

.hero-tagline {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  color: var(--muted);
  max-width: 600px;
  line-height: 1.4;
}

.type-cursor { display: none; } 

.hero-scroll { display: none; }
.hero-spacer { display: none; }

.page-shift {
  position: relative;
  z-index: 10;
  background: var(--bg);
  transform: none !important; 
}

.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 120px 40px;
  border-top: 1px solid var(--line);
}

.section-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 2rem;
  font-weight: 500;
}
.section-rule { display: none; }

.section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  line-height: 1.1;
  text-transform: none;
}

.dim { color: var(--muted-2); }
.section-sub {
  font-size: 1.25rem;
  color: var(--muted);
  margin-bottom: 4rem;
}

.about-grid {
  display: grid;
  gap: 3rem;
  margin-bottom: 4rem;
}
@media (min-width: 760px) {
  .about-grid { grid-template-columns: 1fr 2.5fr; }
}

.about-meter { display: none; }
.lede {
  font-size: 1.35rem;
  color: var(--fg);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.tag-inline {
  font-weight: 500;
  color: var(--accent);
}
.tag-hack {
  background: none;
  padding: 0;
  text-transform: none;
  letter-spacing: 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}
@media (min-width: 760px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.stat-value {
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.stat-label {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 800px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

.project-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.project-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  transform: none !important;
}

.project-cover {
  aspect-ratio: 16/10;
  background: #f4f4f5;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-cover-bg { display: none; }
.project-cover-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1.5rem;
}
.project-cover-mono {
  font-size: 2.5rem;
  font-weight: 600;
  color: #a1a1aa;
}
.project-cover.has-image .project-cover-mono {
  display: none;
}
.project-sweep { display: none; }

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.5rem 0;
}
.project-id { display: none; }
.project-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.project-tag {
  font-size: 0.8rem;
  padding: 0.3rem 0.8rem;
  background: #f4f4f5;
  border-radius: 100px;
  color: var(--muted);
  font-weight: 500;
}

.project-bottom {
  padding: 1rem 1.5rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-grow: 1;
}
.project-title {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.project-desc {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.5;
}
.project-arrow {
  color: var(--muted);
  transition: color 0.2s ease, transform 0.2s ease;
}
.project-card:hover .project-arrow {
  color: var(--accent);
  transform: translateX(4px) translateY(-4px);
}

.stack-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 600px) {
  .stack-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .stack-grid { grid-template-columns: repeat(4, 1fr); }
}

.stack-group {
  padding: 0;
}
.stack-h {
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 1.5rem;
}
.stack-list li {
  font-size: 1.05rem;
  color: var(--muted);
  padding: 0.4rem 0;
}
.stack-list li::before { display: none; }

.faq-list {
  display: flex;
  flex-direction: column;
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item:first-child {
  border-top: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 0;
  background: none;
  border: none;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--fg);
  cursor: pointer;
  text-align: left;
}
.faq-icon {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--muted);
  transition: transform 0.3s ease;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-item.open .faq-a {
  max-height: 400px;
}
.faq-a-inner {
  padding-bottom: 2rem;
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.6;
}

.footer {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4rem 40px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-name {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}
.footer-meta {
  font-size: 0.95rem;
  color: var(--muted);
}
