@font-face {
    font-family: "Space Grotesk";
    src: url("fonts/SpaceGrotesk-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Space Grotesk";
    src: url("fonts/SpaceGrotesk-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Space Grotesk";
    src: url("fonts/SpaceGrotesk-SemiBold.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Space Grotesk";
    src: url("fonts/SpaceGrotesk-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
  --bg: #090909;
  --panel: rgba(255,255,255,.055);
  --panel-strong: rgba(255,255,255,.085);
  --line: rgba(255,255,255,.12);
  --text: #f5f5f5;
  --muted: #a7a7a7;
  --red: #e30613;
  --red-soft: rgba(227,6,19,.28);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 10%, rgba(227,6,19,.16), transparent 30%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.06), transparent 28%),
    linear-gradient(180deg, #050505 0%, #090909 50%, #050505 100%);
  overflow-x: hidden;
}

#network {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: .65;
}

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

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px clamp(20px, 5vw, 72px);
  background: linear-gradient(180deg, rgba(5,5,5,.82), rgba(5,5,5,0));
  backdrop-filter: blur(14px);
}

.brand img {
  width: 144px;
  height: auto;
  display: block;
}

.nav nav {
  display: flex;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: .02em;
}

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

.section {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 110px 0;
}

.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding-top: 130px;
}

.hero-inner {
  text-align: center;
}

.logo-wrap {
  position: relative;
  display: inline-flex;
  justify-content: center;
  margin-bottom: 30px;
}

.hero-logo {
  width: min(520px, 82vw);
  height: auto;
  filter: drop-shadow(0 0 42px rgba(227,6,19,.17));
  animation: logoIn 1.1s ease both;
}

.pulse {
  position: absolute;
  top: 6%;
  right: 2%;
  width: 20px;
  height: 20px;
  background: var(--red);
  box-shadow: 0 0 22px var(--red);
  animation: pulse 2.3s ease-in-out infinite;
}

.eyebrow,
.label {
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 13px;
  font-weight: 700;
}

h1 {
  margin: 20px 0 22px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: .94;
  letter-spacing: -.06em;
}

h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -.045em;
}

blockquote {
  margin: 28px auto 0;
  max-width: 760px;
  color: #d8d8d8;
  font-size: clamp(18px, 2.2vw, 28px);
  line-height: 1.35;
}

.hero-actions {
  margin-top: 42px;
  display: flex;
  justify-content: center;
  gap: 14px;
}

.btn {
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid var(--line);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  background: var(--red);
  border-color: var(--red);
  color: white;
  box-shadow: 0 0 40px var(--red-soft);
}

.btn.ghost {
  background: rgba(255,255,255,.04);
}

.split {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 42px;
  align-items: start;
}

.glass,
.card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
  box-shadow: 0 24px 80px rgba(0,0,0,.38);
  backdrop-filter: blur(18px);
}

.glass {
  padding: clamp(26px, 4vw, 44px);
  border-radius: 30px;
  color: #dedede;
  font-size: 19px;
  line-height: 1.7;
}

.center {
  text-align: center;
}

.title {
  max-width: 850px;
  margin: 16px auto 58px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.card {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  padding: 28px;
  border-radius: 26px;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.card::after {
  content: "";
  position: absolute;
  inset: auto -20% -35% -20%;
  height: 120px;
  background: radial-gradient(circle, rgba(227,6,19,.2), transparent 65%);
  opacity: 0;
  transition: opacity .25s ease;
}

.card:hover {
  transform: translateY(-8px);
  border-color: rgba(227,6,19,.45);
  background: rgba(255,255,255,.075);
}

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

.icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 34px;
  border-radius: 14px;
  color: var(--red);
  background: rgba(227,6,19,.09);
  border: 1px solid rgba(227,6,19,.24);
}

.card h3 {
  margin: 0 0 14px;
  font-size: 24px;
}

.card p,
.philosophy p,
.footer p {
  color: var(--muted);
  line-height: 1.65;
}

.philosophy {
  text-align: center;
  padding-bottom: 150px;
}

.philosophy h2 {
  margin-top: 14px;
}

.philosophy p {
  max-width: 690px;
  margin: 28px auto 0;
  font-size: 20px;
}

.footer {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 48px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.footer img {
  width: 132px;
}

.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 20px;
  color: var(--muted);
}

.links a:hover {
  color: white;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .75s ease, transform .75s ease;
}

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

@keyframes pulse {
  0%, 100% { opacity: .45; transform: scale(.9); }
  50% { opacity: 1; transform: scale(1.25); }
}

@keyframes logoIn {
  from { opacity: 0; transform: translateY(18px) scale(.96); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0) drop-shadow(0 0 42px rgba(227,6,19,.17)); }
}

@media (max-width: 900px) {
  .nav {
    padding: 18px 20px;
  }

  .brand img {
    width: 118px;
  }

  .nav nav {
    display: none;
  }

  .split,
  .cards {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 82px 0;
  }

  .hero {
    min-height: 92vh;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .links {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.project-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

.project-card h3 {
  margin: 10px 0 14px;
  font-size: clamp(28px, 4vw, 46px);
}

.project-card p {
  max-width: 740px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 18px;
}

.project-tag {
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 800px) {
  .project-card {
    flex-direction: column;
    align-items: flex-start;
  }
}