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

:root {
  --bg: #0a0a0a;
  --surface: #161616;
  --accent: #d4ff47;
  --text: rgba(255,255,255,0.85);
  --muted: rgba(255,255,255,0.22);
  --muted-ui: #3a3a3a;
  --muted-dim: #2e2e2e;
  --border: #242424;
  --border-subtle: rgba(255,255,255,0.07);
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Mono', monospace;
  overflow-x: hidden;
}

/* ── Noise grain ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 100;
  opacity: 0.6;
}

/* ── Ambient glow ── */
body::after {
  content: '';
  position: fixed;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,255,71,0.055) 0%, transparent 65%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

/* ── Layout ── */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

/* ── Header ── */
header {
  padding: 28px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  animation: fadeUp 0.6s ease both;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 34px;
  width: auto;
  display: block;
}

nav {
  display: flex;
  gap: 32px;
}

nav a {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted-ui);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s;
}

nav a:hover { color: var(--text); }

/* ── Hero ── */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 40px 60px;
  text-align: center;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 48px;
  animation: fadeUp 0.6s 0.1s ease both;
}

.tagline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-bottom: 56px;
}

.static-line {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: clamp(32px, 5.5vw, 64px);
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.15;
  animation: fadeUp 0.7s 0.2s ease both;
}

.word-row {
  height: clamp(48px, 8vw, 88px);
  display: flex;
  align-items: center;
  overflow: visible;
  animation: fadeUp 0.7s 0.3s ease both;
}

.animated-word {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(40px, 7vw, 80px);
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1.1;
  display: inline-block;
  white-space: nowrap;
  transition: opacity 0.32s cubic-bezier(0.4,0,0.2,1),
              transform 0.32s cubic-bezier(0.4,0,0.2,1),
              filter 0.32s cubic-bezier(0.4,0,0.2,1);
}

.animated-word.exit {
  opacity: 0;
  transform: translateY(-16px);
  filter: blur(5px);
}

.animated-word.enter {
  opacity: 0;
  transform: translateY(16px);
  filter: blur(5px);
}

/* ── Description ── */
.description {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 420px;
  letter-spacing: 0.03em;
  animation: fadeUp 0.7s 0.45s ease both;
}

/* ── Projects grid ── */
.projects-section {
  padding: 0 40px 80px;
  animation: fadeUp 0.7s 0.6s ease both;
}

.section-label {
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--muted);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 32px;
}

.projects-grid {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 700px;
  margin: 0 auto;
}

.project-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--border-subtle);
  border-radius: 3.5px;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  cursor: pointer;
  background: transparent;
}

.project-chip:hover {
  border-color: var(--chip-accent, var(--accent));
  color: var(--chip-accent, var(--accent));
  background: color-mix(in srgb, var(--chip-accent, var(--accent)) 6%, transparent);
}

.chip-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: block;
  border-radius: 5px;
}

.chip-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
}

/* ── Word dots ── */
.word-dots {
  display: flex;
  gap: 8px;
  margin-top: 36px;
  margin-bottom: 0;
  animation: fadeUp 0.7s 0.4s ease both;
}

.word-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  padding: 0;
  background: rgba(255,255,255,0.15);
  transition: background 0.3s, transform 0.3s;
}

.word-dot.active {
  background: var(--accent);
  transform: scale(1.5);
}

/* ── Footer ── */
footer {
  padding: 20px 40px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: fadeUp 0.6s 0.7s ease both;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-mark {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  opacity: 0.7;
}

.footer-left {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--muted-ui);
  text-transform: lowercase;
}

.footer-right {
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--muted-dim);
  text-transform: uppercase;
}

/* ── Keyframes ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Divider lines ── */
.divider {
  width: 1px;
  height: 48px;
  background: var(--border-subtle);
  margin: 0 auto 48px;
  animation: fadeUp 0.6s 0.55s ease both;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  header { padding: 20px 24px; }
  nav { gap: 20px; }
  .hero { padding: 60px 24px 40px; }
  .projects-section { padding: 0 24px 60px; }
  footer { padding: 16px 24px; flex-direction: column; gap: 8px; text-align: center; }
}
