:root {
  --ink: #0D1117;
  --cream: #F5F2EE;
  --sand: #C9B99A;
  --indigo: #5B4FE8;
  --indigo-dim: rgba(91,79,232,0.12);
  --muted: rgba(245,242,238,0.5);
  --border: rgba(201,185,154,0.2);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--cream);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

/* Custom cursor */
.cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  background: var(--indigo);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
  mix-blend-mode: normal;
}

.cursor-ring {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(91,79,232,0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.35s cubic-bezier(0.25, 1, 0.5, 1), height 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

body:has(a:hover) .cursor { background: var(--sand); }
body:has(a:hover) .cursor-ring { width: 60px; height: 60px; border-color: var(--sand); }

/* Orb */
.orb {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91,79,232,0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  filter: blur(2px);
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 24px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  mix-blend-mode: normal;
}

.nav-logo {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  cursor: none;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.25s;
  cursor: none;
}
.nav-links a:hover { color: var(--cream); }

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 48px 80px;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 20px;
  opacity: 0;
}

.hero-headline {
  font-size: clamp(52px, 9vw, 124px);
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: -0.03em;
  overflow: hidden;
}

.hero-headline .line {
  display: block;
  overflow: hidden;
}

.hero-headline .line span {
  display: block;
  transform: translateY(110%);
}

.hero-headline em {
  font-style: normal;
  color: var(--indigo);
}

.hero-sub-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 56px;
  opacity: 0;
}

.hero-descriptor {
  max-width: 320px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--cream);
  text-decoration: none;
  border: 1px solid var(--border);
  padding: 14px 28px;
  border-radius: 100px;
  transition: border-color 0.25s, background 0.25s;
  cursor: none;
}
.hero-cta:hover { border-color: var(--indigo); background: var(--indigo-dim); }

.hero-cta-arrow {
  width: 14px;
  height: 14px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: transform 0.25s;
}
.hero-cta:hover .hero-cta-arrow { transform: rotate(45deg) translate(2px, -2px); }

/* DIVIDER */
.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 0 48px;
  width: calc(100% - 96px);
}

/* ABOUT STRIP */
.about-strip {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  padding: 80px 48px;
  position: relative;
  z-index: 1;
}

.about-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sand);
  padding-top: 6px;
}

.about-body {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 300;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--cream);
}

.about-body strong {
  font-weight: 500;
  color: var(--cream);
}

/* WORK */
.work {
  padding: 0 48px 120px;
  position: relative;
  z-index: 1;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 40px;
}

.section-title {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sand);
}

.section-count {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(201,185,154,0.4);
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

/* Project card */
.project-card {
  position: relative;
  background: rgba(245,242,238,0.03);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 40px;
  overflow: hidden;
  transition: background 0.35s, border-color 0.35s;
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: none;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-card:hover {
  background: rgba(91,79,232,0.06);
  border-color: rgba(91,79,232,0.3);
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--indigo);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.project-card:hover::before { transform: scaleX(1); }

.project-card.coming-soon {
  opacity: 0.55;
  cursor: none;
}

.project-card.coming-soon:hover {
  opacity: 0.75;
  background: rgba(245,242,238,0.04);
  border-color: rgba(201,185,154,0.3);
}

.project-card.coming-soon::before { display: none; }

.project-top {}

.project-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.tag {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--indigo);
  border: 1px solid rgba(91,79,232,0.35);
  padding: 4px 10px;
  border-radius: 100px;
}

.tag.sand {
  color: var(--sand);
  border-color: rgba(201,185,154,0.35);
}

.project-num {
  font-size: 11px;
  color: rgba(245,242,238,0.2);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.project-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.project-desc {
  font-size: 14px;
  color: rgba(245,242,238,0.55);
  line-height: 1.65;
  max-width: 360px;
}

.project-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 40px;
}

.project-stack {
  font-size: 11px;
  color: rgba(245,242,238,0.3);
  letter-spacing: 0.06em;
}

.project-link-icon {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s, background 0.25s;
  flex-shrink: 0;
}

.project-card:hover .project-link-icon {
  border-color: var(--indigo);
  background: var(--indigo-dim);
}

.project-link-icon svg {
  width: 14px;
  height: 14px;
  stroke: var(--cream);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* IDEAS */
.ideas {
  padding: 80px 48px;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.ideas-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: start;
}

.ideas-left {}

.ideas-intro {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 300;
  color: var(--cream);
  line-height: 1.4;
  margin-top: 20px;
}

.ideas-items {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.idea-item {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: opacity 0.25s;
}

.idea-item:first-child { border-top: 1px solid var(--border); }

.idea-num {
  font-size: 11px;
  color: rgba(201,185,154,0.4);
  letter-spacing: 0.1em;
  padding-top: 3px;
  flex-shrink: 0;
  width: 28px;
}

.idea-content {}

.idea-title {
  font-size: 17px;
  font-weight: 400;
  margin-bottom: 6px;
  color: var(--cream);
}

.idea-desc {
  font-size: 13px;
  color: rgba(245,242,238,0.45);
  line-height: 1.6;
}

.idea-status {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 100px;
  margin-top: 10px;
  display: inline-block;
}

.idea-status.concept {
  color: var(--sand);
  background: rgba(201,185,154,0.1);
}

.idea-status.in-progress {
  color: var(--indigo);
  background: rgba(91,79,232,0.12);
}

/* CONTACT */
.contact {
  padding: 120px 48px;
  text-align: center;
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
}

.contact-overline {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 24px;
}

.contact-headline {
  font-size: clamp(40px, 7vw, 96px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin-bottom: 48px;
  color: var(--cream);
}

.contact-email {
  display: inline-block;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--indigo);
  text-decoration: none;
  border-bottom: 1px solid rgba(91,79,232,0.4);
  padding-bottom: 4px;
  transition: border-color 0.25s;
  cursor: none;
}
.contact-email:hover { border-color: var(--indigo); }

/* FOOTER */
footer {
  padding: 32px 48px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}

.footer-copy {
  font-size: 12px;
  color: rgba(245,242,238,0.25);
  letter-spacing: 0.06em;
}

.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.footer-links a {
  font-size: 12px;
  color: rgba(245,242,238,0.3);
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: color 0.25s;
  cursor: none;
}
.footer-links a:hover { color: var(--cream); }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
}

/* Noise overlay */
.noise {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 2;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 128px 128px;
}

/* Mobile */
@media (max-width: 768px) {
  nav { padding: 20px 24px; }
  .nav-links { display: none; }
  .hero { padding: 0 24px 60px; }
  .hero-sub-row { flex-direction: column; align-items: flex-start; gap: 28px; }
  .about-strip { grid-template-columns: 1fr; gap: 20px; padding: 60px 24px; }
  .work { padding: 0 24px 80px; }
  .projects-grid { grid-template-columns: 1fr; }
  .ideas { padding: 60px 24px; }
  .ideas-grid { grid-template-columns: 1fr; }
  .contact { padding: 80px 24px; }
  footer { padding: 24px; flex-direction: column; gap: 16px; text-align: center; }
  .divider { margin: 0 24px; width: calc(100% - 48px); }
  body { cursor: auto; }
  .cursor, .cursor-ring { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .orb { display: none; }
}
