:root {
  --bg: #07080a;
  --bg-elevated: #0e1014;
  --text: #eceae4;
  --muted: #9a978f;
  --line: rgba(236, 234, 228, 0.12);
  --accent: #c4a574;
  --accent-soft: rgba(196, 165, 116, 0.18);
  --font-display: "Syne", sans-serif;
  --font-body: "Manrope", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 700px at 12% -10%, rgba(196, 165, 116, 0.10), transparent 55%),
    radial-gradient(900px 600px at 88% 8%, rgba(88, 110, 140, 0.14), transparent 50%),
    linear-gradient(180deg, #0a0b0e 0%, var(--bg) 42%, #050607 100%);
  overflow-x: hidden;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.orb {
  pointer-events: none;
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.45;
  animation: drift 18s ease-in-out infinite alternate;
}

.orb-a {
  width: 42vw;
  height: 42vw;
  max-width: 520px;
  max-height: 520px;
  top: -8%;
  right: -8%;
  background: rgba(90, 112, 140, 0.22);
}

.orb-b {
  width: 36vw;
  height: 36vw;
  max-width: 420px;
  max-height: 420px;
  bottom: 8%;
  left: -10%;
  background: rgba(196, 165, 116, 0.12);
  animation-delay: -6s;
  animation-duration: 22s;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(2%, 4%, 0) scale(1.08); }
}

.top,
main,
.footer {
  position: relative;
  z-index: 1;
}

.top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem clamp(1.25rem, 4vw, 3.5rem);
}

.brand-mark {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 1px;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  animation: pulse 3.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.92); opacity: 0.75; }
}

.brand-inline {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--muted);
}

.hero {
  min-height: calc(100vh - 5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem clamp(1.25rem, 4vw, 3.5rem) 4rem;
  max-width: 980px;
}

.eyebrow {
  margin: 0 0 1.25rem;
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.4rem, 12vw, 7.5rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
}

.lede {
  margin: 1.6rem 0 0;
  max-width: 28ch;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.2rem, 2.6vw, 1.7rem);
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.support {
  margin: 1.25rem 0 0;
  max-width: 42ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  line-height: 1.65;
  font-weight: 400;
}

.projects {
  padding: 0 clamp(1.25rem, 4vw, 3.5rem) 5rem;
  max-width: 980px;
}

.section-rule {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent 80%);
  margin-bottom: 2rem;
}

.section-title {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.project-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.project {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.25s ease, padding-left 0.25s ease;
}

.project:hover {
  padding-left: 0.35rem;
}

.project h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.project p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.project-link {
  color: var(--bg);
  background: var(--text);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.7rem 1rem;
  border-radius: 2px;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.project-link:hover {
  background: var(--accent);
  color: #111;
  transform: translateY(-1px);
}

.project-meta {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  padding: 0.55rem 0.75rem;
  border-radius: 2px;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1.5rem clamp(1.25rem, 4vw, 3.5rem) 2.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text);
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
}

.dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--muted);
  opacity: 0.7;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.reveal-delay-1 { animation-delay: 0.12s; }
.reveal-delay-2 { animation-delay: 0.24s; }
.reveal-delay-3 { animation-delay: 0.36s; }

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: calc(100svh - 4.5rem);
    padding-bottom: 3rem;
  }

  .project {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .project-link,
  .project-meta {
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .orb,
  .brand-mark,
  .reveal {
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
