:root {
  --bg: #0c0b0e;
  --bg-warm: #131118;
  --fg: #e8e4df;
  --fg-muted: #9a9490;
  --accent: #c47a3a;
  --accent-light: #e8a96a;
  --accent-glow: rgba(196, 122, 58, 0.15);
  --card-bg: #1a1720;
  --card-border: #2a2630;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  overflow: hidden;
}

.hero-texture {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, var(--accent-glow), transparent),
    radial-gradient(ellipse 40% 60% at 80% 70%, rgba(90, 50, 120, 0.1), transparent),
    radial-gradient(ellipse 80% 40% at 50% 90%, rgba(196, 122, 58, 0.08), transparent);
  pointer-events: none;
  z-index: 0;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  filter: blur(80px);
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 8px 20px;
  border-radius: 100px;
  margin-bottom: 40px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 32px;
  background: linear-gradient(135deg, var(--fg) 30%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-style: italic;
  color: var(--fg-muted);
  max-width: 580px;
  margin: 0 auto 24px;
  line-height: 1.8;
}

.hero-sub {
  font-size: 1rem;
  color: var(--fg-muted);
  max-width: 520px;
  margin: 0 auto;
  opacity: 0.8;
}

/* ─── PHILOSOPHY ─── */
.philosophy {
  padding: 120px 24px;
  background: var(--bg-warm);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

.philosophy-inner {
  max-width: 720px;
  margin: 0 auto;
}

.philosophy-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 32px;
}

.philosophy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 28px;
  color: var(--fg);
}

.philosophy p {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.9;
}

.philosophy em {
  color: var(--accent-light);
  font-style: italic;
}

/* ─── FEATURES ─── */
.features {
  padding: 100px 24px;
}

.features-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 40px 32px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.feature-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.4;
  margin-bottom: 20px;
  line-height: 1;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--fg);
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.8;
}

/* ─── CLOSING ─── */
.closing {
  padding: 120px 24px;
  background: var(--bg-warm);
  border-top: 1px solid var(--card-border);
  text-align: center;
}

.closing-inner {
  max-width: 660px;
  margin: 0 auto;
}

.closing h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
  color: var(--fg);
}

.closing p {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.9;
}

/* ─── FOOTER ─── */
.site-footer {
  padding: 48px 24px;
  border-top: 1px solid var(--card-border);
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--fg);
}

.footer-detail {
  font-size: 0.85rem;
  color: var(--fg-muted);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .features-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero {
    min-height: 90vh;
    padding: 60px 20px;
  }

  .philosophy {
    padding: 80px 20px;
  }

  .features {
    padding: 60px 20px;
  }

  .closing {
    padding: 80px 20px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .feature-card {
    padding: 28px 24px;
  }

  .hero-badge {
    font-size: 10px;
    padding: 6px 16px;
  }
}

/* ─── HERO CTAs ─── */
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.hero-btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 16px 36px;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
}

.hero-btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}

.hero-btn-secondary {
  display: inline-block;
  color: var(--fg-muted);
  font-family: var(--font-body);
  font-size: 0.9rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  padding-bottom: 2px;
}

.hero-btn-secondary:hover {
  color: var(--fg);
  border-color: var(--fg-muted);
}

/* ─── LANDING NAV ─── */
/* Nav styles for the landing page — mirrors gallery.css nav but scoped to
   layout.ejs which doesn't load gallery.css */
body:not(.gallery-page) .site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 11, 14, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--card-border);
  padding: 0 24px;
}

/* These selectors apply globally so gallery.css can share them */
.site-nav { position: sticky; top: 0; z-index: 100; background: rgba(12,11,14,0.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--card-border); padding: 0 24px; }
.nav-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-brand { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: var(--fg); text-decoration: none; letter-spacing: -0.5px; }
.nav-brand:hover { color: var(--accent-light); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-link { font-family: var(--font-body); font-size: 0.9rem; font-weight: 500; color: var(--fg-muted); text-decoration: none; transition: color 0.2s; }
.nav-link:hover, .nav-link.active { color: var(--fg); }
.nav-cta { color: var(--accent); border: 1px solid var(--accent); padding: 8px 20px; border-radius: 100px; font-size: 0.85rem; }
.nav-cta:hover { background: var(--accent-glow); color: var(--accent-light); }

/* Prevent nav styles from being doubled in gallery.css — gallery.css also
   defines these so they are safely overriding with identical rules */

/* ─── PHILOSOPHY SECTION ID ─── */
.philosophy { scroll-margin-top: 64px; }