/* ── Tokens ─────────────────────────────────────────── */
:root {
  /* Surface ladder (purple-tinted dark) */
  --canvas: #08060d;
  --surface-0: #0f0b18;
  --surface-1: #151023;
  --surface-2: #1b152e;
  --surface-3: #221c38;

  /* Text */
  --text-primary: #f0e6f6;
  --text-secondary: #b8a0cc;
  --text-tertiary: #7a6590;

  /* Accent */
  --gold: #F4D84E;
  --gold-bright: #FBEE0F;
  --amethyst: #7F4AA4;

  /* Borders */
  --border: rgba(127, 74, 164, 0.12);
  --border-hover: rgba(127, 74, 164, 0.28);

  /* Spacing */
  --section-gap: 96px;
  --container: 1120px;
}

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

html {
  height: 100%;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background-color: var(--canvas);
  color: var(--text-primary);
  line-height: 1.6;
}

/* ── Grain overlay ─────────────────────────────────── */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.028;
  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.7' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ── Utilities ─────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--amethyst);
  margin-bottom: 3rem;
}

/* ── Nav ───────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.25rem 2rem;
  background: rgba(8, 6, 13, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--text-secondary);
  text-decoration: none;
}

.nav-email {
  font-size: 0.8rem;
  font-weight: 400;
  text-decoration: none;
  color: var(--text-tertiary);
  transition-property: color;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

.nav-email:hover {
  color: var(--text-secondary);
}

/* ── Hero ──────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 10rem 2rem 8rem;
  max-width: var(--container);
  margin: 0 auto;
}

.hero-glow {
  position: absolute;
  width: 900px;
  height: 600px;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse 60% 50% at 40% 40%, rgba(127, 74, 164, 0.18), transparent 70%),
    radial-gradient(ellipse 50% 60% at 65% 50%, rgba(244, 216, 78, 0.06), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(127, 74, 164, 0.12) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 30%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 30%, black 20%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-headline {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  opacity: 0;
  animation: fadeInUp 600ms ease-out 100ms forwards;
}

.hero-sub {
  margin-top: 1.75rem;
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 500px;
  font-weight: 400;
  opacity: 0;
  animation: fadeInUp 600ms ease-out 250ms forwards;
}

/* ── Bento ─────────────────────────────────────────── */
.bento-section {
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
}

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.bento-card {
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition-property: border-color, transform;
  transition-duration: 200ms;
  transition-timing-function: ease-out;
}

.bento-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.bento-wide {
  grid-column: span 2;
}

.card-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(127, 74, 164, 0.12);
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.card-icon svg {
  width: 20px;
  height: 20px;
}

.bento-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.bento-card p {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── Philosophy ────────────────────────────────────── */
.philosophy {
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
  background: var(--surface-0);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.philosophy-number {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--gold);
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.philosophy-item h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.philosophy-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Footer ────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.footer-email {
  text-decoration: none;
  color: var(--text-tertiary);
  transition-property: color;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

.footer-email:hover {
  color: var(--text-secondary);
}

.footer-location {
  color: var(--amethyst);
}

/* ── Animation ─────────────────────────────────────── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 900px) {
  :root {
    --section-gap: 64px;
  }

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

  .bento-wide {
    grid-column: span 2;
  }

  .philosophy-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

}

@media (max-width: 640px) {
  .hero {
    padding: 6rem 1.5rem 5rem;
  }

  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .nav {
    padding: 1rem 1.5rem;
  }

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

  .bento-wide {
    grid-column: span 1;
  }

  .footer-inner {
    flex-direction: column;
    gap: 0.5rem;
  }

  .logo-text {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
}
