/* ─── Reset & Base ───────────────────────────── */

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

:root {
  --bg: #0a0a0a;
  --bg-elevated: #111111;
  --bg-subtle: #161616;
  --text: #ededed;
  --text-secondary: #888888;
  --text-muted: #555555;
  --accent: #0070f3;
  --accent-dim: rgba(0, 112, 243, 0.06);
  --accent-hover: #338ef7;

  /* Shadow-as-border system */
  --shadow-ring: 0 0 0 1px rgba(255, 255, 255, 0.04);
  --shadow-card: 0 0 0 1px rgba(255, 255, 255, 0.04),
                 0 2px 4px rgba(0, 0, 0, 0.3),
                 0 12px 24px -8px rgba(0, 0, 0, 0.3);
  --shadow-elevated: 0 0 0 1px rgba(255, 255, 255, 0.06),
                     0 4px 8px rgba(0, 0, 0, 0.4),
                     0 24px 48px -12px rgba(0, 0, 0, 0.5);

  --content-width: 680px;
  --section-pad: clamp(100px, 12vw, 160px);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.65;
  overflow-x: hidden;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

::selection {
  background: var(--accent);
  color: #ffffff;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ─── Grain Overlay ──────────────────────────── */

.grain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.022;
  mix-blend-mode: overlay;
}

/* ─── Scroll Reveal ──────────────────────────── */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Hero ───────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
}

/* ─── Aurora System ──────────────────────────── */

.aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  filter: blur(80px) saturate(1.4);
}

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  will-change: transform, opacity;
}

.aurora-1 {
  width: min(600px, 80vw);
  height: 500px;
  top: 15%;
  left: 50%;
  transform: translate(-50%, -20%);
  background: radial-gradient(ellipse, rgba(0, 112, 243, 0.15) 0%, transparent 70%);
  animation: aurora-drift-1 12s ease-in-out infinite alternate;
}

.aurora-2 {
  width: min(500px, 70vw);
  height: 400px;
  top: 30%;
  left: 30%;
  background: radial-gradient(ellipse, rgba(120, 60, 220, 0.12) 0%, transparent 70%);
  animation: aurora-drift-2 14s ease-in-out infinite alternate;
}

.aurora-3 {
  width: min(450px, 60vw);
  height: 350px;
  top: 25%;
  right: 15%;
  background: radial-gradient(ellipse, rgba(0, 200, 180, 0.08) 0%, transparent 70%);
  animation: aurora-drift-3 16s ease-in-out infinite alternate;
}

@keyframes aurora-drift-1 {
  0%   { transform: translate(-50%, -20%) scale(1);    opacity: 0.6; }
  50%  { transform: translate(-45%, -25%) scale(1.1);  opacity: 1; }
  100% { transform: translate(-55%, -15%) scale(1.05); opacity: 0.7; }
}

@keyframes aurora-drift-2 {
  0%   { transform: translate(0, 0) scale(1);       opacity: 0.5; }
  50%  { transform: translate(30px, -20px) scale(1.15); opacity: 0.9; }
  100% { transform: translate(-20px, 10px) scale(1.05); opacity: 0.6; }
}

@keyframes aurora-drift-3 {
  0%   { transform: translate(0, 0) scale(1);         opacity: 0.4; }
  50%  { transform: translate(-25px, 15px) scale(1.1); opacity: 0.8; }
  100% { transform: translate(15px, -10px) scale(1);   opacity: 0.5; }
}

/* Mid-page aurora (between credibility and philosophy) */

.aurora-mid {
  position: relative;
  height: 0;
  overflow: visible;
  pointer-events: none;
}

.aurora-4 {
  width: min(500px, 80vw);
  height: 400px;
  position: absolute;
  top: -200px;
  left: 20%;
  background: radial-gradient(ellipse, rgba(120, 60, 220, 0.07) 0%, transparent 70%);
  filter: blur(80px) saturate(1.3);
  animation: aurora-drift-2 18s ease-in-out infinite alternate;
}

.aurora-5 {
  width: min(400px, 60vw);
  height: 300px;
  position: absolute;
  top: -150px;
  right: 15%;
  background: radial-gradient(ellipse, rgba(0, 112, 243, 0.06) 0%, transparent 70%);
  filter: blur(80px) saturate(1.3);
  animation: aurora-drift-3 20s ease-in-out infinite alternate;
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 780px;
}

.wordmark {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(0.7rem, 0.6rem + 0.5vw, 0.8rem);
  letter-spacing: 0.25em;
  color: var(--text-muted);
  margin-bottom: clamp(32px, 5vw, 56px);
  opacity: 0;
  animation: hero-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

.hero h1 {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(2rem, 1.3rem + 3.5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: clamp(28px, 4vw, 48px);
  opacity: 0;
  animation: hero-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.25s forwards;
}

.hero-services {
  font-size: clamp(0.95rem, 0.85rem + 0.5vw, 1.1rem);
  color: var(--text-secondary);
  letter-spacing: 0.01em;
  font-weight: 400;
  margin-bottom: 14px;
  opacity: 0;
  animation: hero-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.hero-location {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  font-weight: 500;
  opacity: 0;
  animation: hero-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.55s forwards;
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── Value Propositions ─────────────────────── */

.value-props {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px var(--section-pad);
}

.value-props article {
  padding: var(--section-pad) 0;
  box-shadow: 0 -1px 0 0 rgba(255, 255, 255, 0.06);
}

.value-props article:last-child {
  padding-bottom: 0;
}

.value-props h2 {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(1.5rem, 1.1rem + 2vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--text);
  margin-bottom: clamp(16px, 2.5vw, 24px);
}

.value-props p {
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}

.value-props article:nth-child(2) { transition-delay: 0.08s; }
.value-props article:nth-child(3) { transition-delay: 0.16s; }

/* ─── Credibility Strip ──────────────────────── */

.credibility {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: var(--section-pad) 24px;
  box-shadow: 0 -1px 0 0 rgba(255, 255, 255, 0.06);
  text-align: center;
}

.credibility-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 20px;
}

.credibility-names {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 500;
  font-size: clamp(0.85rem, 0.78rem + 0.4vw, 1rem);
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  line-height: 2;
}

/* ─── Philosophy ─────────────────────────────── */

.philosophy {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: var(--section-pad) 24px;
  box-shadow: 0 -1px 0 0 rgba(255, 255, 255, 0.06);
}

.philosophy h2 {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(1.5rem, 1.1rem + 2vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--text);
  margin-bottom: clamp(16px, 2.5vw, 24px);
}

.philosophy p {
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}

.philosophy p + p {
  margin-top: 20px;
}

/* ─── Footer ─────────────────────────────────── */

footer {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: var(--section-pad) 24px clamp(60px, 8vw, 100px);
  box-shadow: 0 -1px 0 0 rgba(255, 255, 255, 0.06);
  text-align: center;
}

.footer-wordmark {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(0.65rem, 0.55rem + 0.5vw, 0.75rem);
  letter-spacing: 0.25em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-legal {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.footer-email {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding-bottom: 1px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.footer-email:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ─── Responsive ─────────────────────────────── */

@media (max-width: 640px) {
  .hero {
    padding: 60px 20px;
    align-items: flex-end;
    padding-bottom: 15vh;
  }

  .hero-content {
    text-align: left;
  }

  .aurora {
    filter: blur(60px) saturate(1.2);
  }

  .value-props,
  .credibility,
  .philosophy,
  footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .credibility {
    text-align: left;
  }

  footer {
    text-align: left;
  }

  .credibility-names {
    letter-spacing: 0.02em;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .wordmark,
  .hero h1,
  .hero-services,
  .hero-location {
    animation: none;
    opacity: 1;
  }

  .aurora-blob {
    animation: none;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
