:root {
  --bg-950: #0a0c10;
  --bg-900: #0f1218;
  --bg-800: #161a24;
  --bg-700: #1e2330;
  --text-50: #f4f0eb;
  --text-100: #e8e2da;
  --text-300: #9a9490;
  --text-400: #6e6964;
  --line: rgba(244, 240, 235, 0.08);
  --line-strong: rgba(244, 240, 235, 0.15);
  --accent: #e89b50;
  --accent-light: #f0b97a;
  --accent-dim: rgba(232, 155, 80, 0.12);
  --accent-glow: rgba(232, 155, 80, 0.06);
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--text-100);
  background: var(--bg-950);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Grid background ── */

.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 10%, transparent 70%);
}

.glow-spot {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(100px);
}

.glow-a {
  width: 500px;
  height: 500px;
  top: -150px;
  left: -100px;
  background: var(--accent-glow);
}

.glow-b {
  width: 400px;
  height: 400px;
  bottom: -100px;
  right: -80px;
  background: rgba(232, 155, 80, 0.03);
}

/* ── Layout ── */

.container {
  position: relative;
  z-index: 1;
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
}

/* ── Header ── */

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0;
}

.brand {
  font-family: "DM Serif Display", serif;
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--text-50);
}

.brand-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-left: 2px;
  vertical-align: super;
}

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.btn.solid {
  color: var(--bg-950);
  background: var(--accent);
  border-color: var(--accent);
}

.btn.solid:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(232, 155, 80, 0.25);
}

.btn.ghost {
  color: var(--text-100);
  border-color: var(--line-strong);
  background: transparent;
}

.btn.ghost:hover {
  border-color: var(--text-300);
  color: var(--text-50);
}

/* ── Hero ── */

.hero {
  padding: 100px 0 60px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--accent);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "DM Serif Display", serif;
  font-weight: 400;
  line-height: 1.12;
}

h1 {
  max-width: 18ch;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  color: var(--text-50);
  letter-spacing: -0.01em;
}

.lead {
  max-width: 52ch;
  margin: 24px 0 0;
  color: var(--text-300);
  font-size: 1.1rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 36px;
}

/* ── Sections ── */

.section {
  padding: 56px 0;
}

.section h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: var(--text-50);
  margin-bottom: 8px;
}

.section-label {
  display: block;
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* ── Mission ── */

.mission {
  border-left: 2px solid var(--accent);
  padding: 36px 0 36px 32px;
  background: transparent;
}

.mission-text {
  margin: 0;
  color: var(--text-100);
  font-family: "DM Serif Display", serif;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  line-height: 1.3;
  letter-spacing: -0.005em;
}

/* ── Divider ── */

.divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ── Cards ── */

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  background: var(--bg-900);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-dim), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover {
  border-color: var(--line-strong);
  background: var(--bg-800);
  transform: translateY(-2px);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 18px;
}

.card h3 {
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--text-50);
}

.card p {
  margin: 0;
  color: var(--text-300);
  line-height: 1.65;
  font-size: 0.95rem;
}

/* ── Projects ── */

.projects-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-card h3 {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 500;
  font-size: 1rem;
  color: var(--text-50);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 0.2s;
}

.project-link::after {
  content: "\2192";
  transition: transform 0.2s;
}

.project-link:hover {
  color: var(--accent-light);
}

.project-link:hover::after {
  transform: translateX(3px);
}

/* ── CTA ── */

.cta {
  margin: 24px auto 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  background: linear-gradient(135deg, var(--bg-900), var(--bg-800));
  text-align: center;
}

.cta h2 {
  margin-bottom: 12px;
}

.cta p {
  margin: 0;
  color: var(--text-300);
  line-height: 1.6;
}

.cta .btn {
  margin-top: 20px;
}

/* ── Footer ── */

.footer {
  padding: 12px 0 36px;
  font-size: 0.85rem;
  color: var(--text-400);
}

.footer p {
  margin: 0;
}

/* ── Animations ── */

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-in {
  animation: fade-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.16s; }
.delay-3 { animation-delay: 0.24s; }
.delay-4 { animation-delay: 0.32s; }
.delay-5 { animation-delay: 0.4s; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */

@media (max-width: 920px) {
  .cards {
    grid-template-columns: 1fr;
  }

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

  .container {
    width: min(1080px, calc(100% - 32px));
  }

  .hero {
    padding-top: 60px;
  }

  .mission {
    padding-left: 24px;
  }

  .cta {
    padding: 28px;
  }
}
