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

:root {
  --white: #fff;
  --gray-300: #b0b0b0;
  --gray-500: #666;
  --gray-700: #333;
  --gray-900: #111;
  --font-sans: "Inter", system-ui, sans-serif;
  --font-mono: "Space Mono", monospace;
}

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  background: #000;
  color: var(--white);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

/* thin inset border around the viewport */
.frame {
  position: fixed;
  inset: 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  pointer-events: none;
  z-index: 10;
}

/* particle canvas */
#swarm {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* ── LAYOUT ──────────────────────── */

.layout {
  position: relative;
  z-index: 5;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem 3rem;
}

/* ── HEADER ──────────────────────── */

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: fadeIn 1s ease-out both;
}

.logo {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  font-weight: 700;
  color: var(--white);
}

.status {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--gray-300);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--white);
  animation: blink 2s ease-in-out infinite;
}

/* ── CONTENT ─────────────────────── */

.content {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 4rem;
  flex: 1;
  padding-bottom: 2rem;
}

h1 {
  font-size: clamp(3rem, 6.5vw, 6.5rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.04em;
}

h1 .line {
  display: block;
  animation: slideIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

h1 .line:nth-child(1) { animation-delay: 0.2s; }
h1 .line:nth-child(2) { animation-delay: 0.35s; }
h1 .line:nth-child(3) { animation-delay: 0.5s; }

h1 .dim {
  color: var(--gray-500);
}

.thesis-block {
  max-width: 380px;
  padding-bottom: 0.5rem;
  animation: fadeIn 1s ease-out 0.7s both;
}

.thesis {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--gray-500);
  line-height: 1.75;
}

.thesis.accent {
  color: var(--white);
  font-weight: 500;
  margin-top: 1rem;
  font-size: 0.85rem;
  line-height: 1.75;
}

/* ── FOOTER ──────────────────────── */

footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--gray-700);
  animation: fadeIn 1s ease-out 1s both;
}

.separator {
  color: var(--gray-700);
}

/* ── ANIMATIONS ──────────────────── */

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(40px) skewY(2deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) skewY(0);
  }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

/* ── RESPONSIVE ──────────────────── */

@media (max-width: 900px) {
  .layout {
    padding: 1.5rem 2rem;
  }

  .content {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2rem;
  }

  h1 {
    font-size: clamp(2.4rem, 10vw, 4rem);
  }

  .thesis-block {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .layout {
    padding: 1.25rem 1.25rem;
  }

  .frame {
    inset: 6px;
  }

  h1 {
    font-size: 2.2rem;
  }

  .thesis {
    font-size: 0.8rem;
  }
}
