/* ---------- Design tokens ---------- */
:root {
  --black: #111114;
  --white: #ffffff;
  --pink: #ff3b5c;
  --pink-dark: #e0264a;
  --gray-50: #f7f7f8;
  --gray-100: #f0f0f2;
  --gray-200: #e5e5e9;
  --gray-400: #a5a5ad;
  --gray-600: #6b6b74;
  --gray-800: #2b2b30;
  /* project brand colors, copied from each project's real site */
  --tzu-green: #16a34a;
  --nutcracker-green: #00ff41;
  --nutcracker-black: #0a0a0a;
  --grivo-lime: #d6f16c;
  --grivo-coral: #f5836e;
  --grivo-navy: #101b29;
  --sauron-purple: #9333ea;
  --sauron-purple-light: #c084fc;
  --sauron-mint: #34d399;
  --sauron-orange: #ea580c;

  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Space Mono', monospace;

  --container: 1200px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; line-height: 1.08; }
p { margin: 0; }
button { font: inherit; cursor: pointer; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--black); color: var(--white);
  padding: 10px 16px; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.text-accent { color: var(--pink); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-600);
  margin: 0 0 14px;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--pink);
  margin-right: 8px;
  vertical-align: middle;
}
.eyebrow-light { color: rgba(255,255,255,0.6); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, opacity .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--pink); color: var(--white); }
.btn-primary:hover { background: var(--pink-dark); }
.btn-outline { background: transparent; color: var(--black); border-color: var(--gray-200); }
.btn-outline:hover { border-color: var(--black); }
.btn-ghost { background: var(--white); color: var(--black); border-color: var(--gray-200); padding: 10px 18px; font-size: 14px; }
.btn-ghost:hover { border-color: var(--black); }
.btn-light { background: var(--white); color: var(--black); }
.btn-light:hover { background: var(--gray-100); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.3); }
.btn-outline-light:hover { border-color: var(--white); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: 14px; color: var(--pink);
}
.link-arrow svg { transition: transform .15s ease; }
.link-arrow:hover svg { transform: translateX(3px); }

.link-secondary {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: 14px; color: var(--gray-600);
}
.link-secondary:hover { color: var(--black); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--gray-200);
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; justify-self: start; }
.brand-logo { height: 34px; width: auto; display: block; }
.brand-icon { height: 34px; width: auto; display: block; }
.brand-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.01em;
  color: var(--white);
}

.main-nav { justify-self: center; }
.main-nav ul { display: flex; gap: 30px; }
.main-nav a {
  display: flex; align-items: center; gap: 6px;
  font-size: 14.5px; font-weight: 500; color: var(--gray-600);
  padding: 6px 0;
}
.main-nav a:hover { color: var(--black); }
.main-nav a.active { color: var(--black); font-weight: 600; }
.nav-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--pink); }

.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; justify-self: end; }
.lang-switch {
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.04em; color: var(--gray-600);
  border: 1.5px solid var(--gray-200); border-radius: 999px;
  padding: 6px 11px;
}
.lang-switch:hover { color: var(--black); border-color: var(--black); }


.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 4px;
  width: 36px; height: 36px; background: none; border: none;
}
.nav-toggle span { display: block; width: 100%; height: 2px; background: var(--black); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 88px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(34px, 4.2vw, 52px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}
.hero-lead {
  font-size: 17px;
  color: var(--gray-600);
  max-width: 46ch;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-tagline-img { height: 46px; width: auto; }

.hero-art {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px -20px rgba(17,17,20,0.35);
  background: #0b0b0d;
}
.hero-scene-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1672 / 941;
  object-fit: cover;
}

/* ---------- Features strip ---------- */
.features { border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  padding: 32px 0;
}
.feature { display: flex; align-items: center; gap: 12px; }
.feature-icon {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--gray-50); flex-shrink: 0;
}
.feature-icon img { width: 22px; height: 22px; object-fit: contain; }
.feature-title { font-size: 14px; font-weight: 700; }
.feature-sub { font-size: 12.5px; color: var(--gray-600); }

/* ---------- Projects ---------- */
.projects { padding: 96px 0; }
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 56px;
}
.section-head h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 700; }
.section-head-aside p { color: var(--gray-600); margin-bottom: 14px; max-width: 46ch; }

.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.project-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 26px;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s ease, transform .2s ease;
}
.project-card:hover { box-shadow: 0 16px 40px -24px rgba(17,17,20,0.35); transform: translateY(-2px); }
.project-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.project-icon {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0;
}
.icon-tzu { background: rgba(22,163,74,0.12); color: var(--tzu-green); }
.icon-nutcracker { background: var(--nutcracker-black); color: var(--nutcracker-green); }
.icon-grivo { background: var(--grivo-navy); color: var(--grivo-lime); }
.icon-sauron { background: rgba(147,51,234,0.12); color: var(--sauron-purple); }
.project-head h3 { font-size: 19px; font-weight: 700; letter-spacing: 0.01em; }
.project-kicker { font-family: var(--font-mono); font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gray-600); margin-bottom: 10px; }
.project-desc { font-size: 14.5px; color: var(--gray-600); margin-bottom: 16px; flex-grow: 0; }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tag-list li {
  font-size: 12px; font-weight: 600; color: var(--gray-600);
  background: var(--gray-50); border: 1px solid var(--gray-200);
  padding: 5px 11px; border-radius: 999px;
}
.project-links { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }

.project-shot {
  margin-top: auto;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  background: var(--gray-50);
  min-height: 150px;
}

/* TZU shot */
.shot-tzu { display: flex; }
.shot-sidebar {
  width: 40%; background: var(--white); border-right: 1px solid var(--gray-200);
  padding: 12px 10px; display: flex; flex-direction: column; gap: 9px;
  font-size: 10.5px; color: var(--gray-600); font-weight: 600;
}
.shot-logo { color: var(--tzu-green); font-weight: 700; font-size: 11px; margin-bottom: 4px; }
.shot-body { flex: 1; padding: 12px 10px; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.shot-badge {
  font-size: 10.5px; font-weight: 600; padding: 7px 10px; border-radius: 7px;
  background: rgba(22,163,74,0.1); color: #15803d; display: block;
}
.shot-badge.muted { background: var(--gray-100); color: var(--gray-600); }

/* NUTCRACKER shot */
.shot-nutcracker { background: var(--nutcracker-black); padding: 16px; }
.shot-term { font-family: var(--font-mono); font-size: 11px; color: #d0d0d5; line-height: 1.9; }
.shot-term-title { color: var(--nutcracker-green); font-weight: 700; margin-bottom: 4px; }

/* GRIVO shot */
.shot-grivo { padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--white); }
.shot-phone { background: var(--grivo-navy); border-radius: 10px; padding: 14px; color: var(--white); }
.shot-phone-title { font-size: 12.5px; font-weight: 700; margin-bottom: 12px; line-height: 1.3; }
.shot-phone-player { display: flex; align-items: center; gap: 8px; }
.shot-phone-play {
  width: 22px; height: 22px; border-radius: 50%; background: var(--grivo-coral);
  color: var(--grivo-navy);
  display: flex; align-items: center; justify-content: center; font-size: 8px;
}
.shot-phone-bars { flex: 1; height: 14px; background: repeating-linear-gradient(90deg, var(--grivo-lime) 0 2px, transparent 2px 5px); border-radius: 2px; opacity: 0.85; }
.shot-phone-time { font-family: var(--font-mono); font-size: 10px; opacity: 0.85; }
.shot-phone-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.shot-phone-actions span {
  font-size: 10px; font-weight: 600; background: var(--gray-100); color: var(--gray-600);
  padding: 5px 9px; border-radius: 999px;
}

/* SAURON shot */
.shot-sauron { background: var(--white); padding: 14px; display: flex; flex-direction: column; gap: 9px; }
.shot-sauron-row {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono); font-size: 10.5px; color: var(--gray-800);
  padding-bottom: 9px; border-bottom: 1px solid var(--gray-100);
}
.shot-sauron-row:last-child { border-bottom: none; padding-bottom: 0; }
.shot-sauron-status {
  font-weight: 700; padding: 3px 8px; border-radius: 999px; font-size: 9.5px;
  background: rgba(52,211,153,0.15); color: #059669;
}
.shot-sauron-status.critical { background: rgba(234,88,12,0.13); color: var(--sauron-orange); }

/* ---------- About ---------- */
.about { padding: 96px 0; background: var(--gray-50); }
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.3fr;
  gap: 40px;
  align-items: center;
}
.about-portrait { position: relative; }
.portrait-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 20px 50px -24px rgba(17,17,20,0.4); aspect-ratio: 4 / 5; background: var(--black); }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portrait-badge {
  position: absolute; top: -14px; left: -14px;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px -6px rgba(17,17,20,0.35);
}
.portrait-badge img { width: 22px; height: auto; }
.portrait-caption {
  margin-top: 16px; text-align: center;
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray-600);
}
.portrait-caption span { color: var(--pink); }

.about-copy h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 700; margin-bottom: 18px; }
.about-lead { font-size: 17px; margin-bottom: 12px; }
.about-text { color: var(--gray-600); margin-bottom: 24px; max-width: 52ch; }
.about-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px;
  margin-bottom: 28px;
}
.about-stats li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; color: var(--gray-800); }
.about-stats svg { color: var(--pink); flex-shrink: 0; }

/* ---------- Manifesto ---------- */
.manifesto { position: relative; background: var(--black); color: var(--white); padding: 72px 0; overflow: hidden; }
.manifesto-bg {
  position: absolute;
  right: -4%; bottom: -6%;
  width: 40%;
  height: auto;
  opacity: 0.4;
  pointer-events: none;
}
.manifesto-inner { position: relative; z-index: 1; }
.manifesto-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 40px; align-items: center;
}
.manifesto h2 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; }
.manifesto-terminal { height: 40px; width: auto; margin-top: 22px; }
.manifesto-aside p { color: rgba(255,255,255,0.65); margin-bottom: 24px; max-width: 48ch; }
.manifesto-pillars { display: flex; flex-direction: column; gap: 18px; margin: 26px 0 30px; }
.manifesto-pillars li { display: flex; gap: 14px; }
.manifesto-pillar-num {
  font-family: var(--font-mono); font-size: 13px; font-weight: 700;
  color: var(--pink); flex-shrink: 0; padding-top: 2px;
}
.manifesto-pillar-title { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.manifesto-pillar-text { font-size: 13.5px; color: rgba(255,255,255,0.6); line-height: 1.5; }
.manifesto-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: #0b0b0d; color: var(--white); }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  flex-wrap: wrap; padding: 48px 0 32px;
}
.footer-brand { display: flex; flex-direction: column; gap: 10px; }
.footer-brand p { font-size: 13px; color: rgba(255,255,255,0.55); }
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-nav a { font-size: 14px; color: rgba(255,255,255,0.7); }
.footer-nav a:hover { color: var(--white); }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.8);
}
.footer-social a:hover { background: rgba(255,255,255,0.14); color: var(--white); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); }
.footer-bottom-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 18px 0; flex-wrap: wrap;
}
.footer-bottom-inner p {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(255,255,255,0.45);
}
.footer-bottom-inner p span { color: var(--pink); margin: 0 6px; }
.footer-sticker { height: 34px; width: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .about-grid { grid-template-columns: 1fr 1.4fr; }
  .features-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }

  .features-grid { grid-template-columns: repeat(2, 1fr); }

  .section-head { grid-template-columns: 1fr; }

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

  .about-grid { grid-template-columns: 1fr; }
  .about-portrait { max-width: 280px; margin: 0 auto; }

  .manifesto-inner { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .header-inner { height: 66px; }
  .brand-logo { height: 28px; }
  .hero { padding: 40px 0 56px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .features-grid { grid-template-columns: 1fr; }
  .projects, .about { padding: 64px 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* Mobile nav open state */
body.nav-open .main-nav {
  display: block;
  position: fixed; inset: 66px 0 0 0;
  justify-self: stretch;
  width: auto;
  background: var(--white);
  padding: 24px;
  z-index: 90;
}
body.nav-open .main-nav ul { flex-direction: column; gap: 4px; }
body.nav-open .main-nav a { padding: 14px 4px; font-size: 17px; border-bottom: 1px solid var(--gray-100); }
