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

:root {
  --bg: #F0F2F5;
  --text-primary: #1a1a1a;
  --text-secondary: #5a5a5a;
  --text-muted: #8a8a8a;
  --accent: #3b6b8a;
  --accent-hover: #2a4f66;
  --line: #c4cdd6;
  --font-serif: 'Cormorant Garamond', 'Georgia', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Consolas', monospace;
}

html, body {
  height: 100%;
  width: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(ellipse at 50% 50%, rgba(59, 107, 138, 0.03) 0%, transparent 70%),
    radial-gradient(circle at 20% 80%, rgba(59, 107, 138, 0.02) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(59, 107, 138, 0.02) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239C92AC' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

.viewport {
  position: relative;
  height: 100svh;
  width: 100vw;
  overflow: hidden;
  z-index: 1;
}

.viewport::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.02'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: multiply;
}

.center-content {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  gap: 3.5rem;
}

/* ── Brand ─────────────────────────────── */

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand-mark {
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  animation: fadeIn 0.8s ease both;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.brand-mark:hover {
  transform: scale(1.05);
}

.brand-name {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-primary);
  user-select: none;
  display: flex;
  justify-content: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.letter {
  display: inline-block;
  animation: revealLetter 0.6s ease both;
}

.letter:nth-child(1)  { animation-delay: 0.05s; }
.letter:nth-child(2)  { animation-delay: 0.10s; }
.letter:nth-child(3)  { animation-delay: 0.15s; }
.letter:nth-child(4)  { animation-delay: 0.20s; }
.letter:nth-child(5)  { animation-delay: 0.25s; }
.letter:nth-child(6)  { animation-delay: 0.30s; }
.letter:nth-child(7)  { animation-delay: 0.35s; }
.letter:nth-child(8)  { animation-delay: 0.40s; }
.letter:nth-child(9)  { animation-delay: 0.45s; }
.letter:nth-child(10) { animation-delay: 0.50s; }
.letter:nth-child(11) { animation-delay: 0.55s; }
.letter:nth-child(12) { animation-delay: 0.60s; }
.letter:nth-child(13) { animation-delay: 0.65s; }
.letter:nth-child(14) { animation-delay: 0.70s; }

/* ── Cards ─────────────────────────────── */

.cards {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  max-width: 52rem;
  gap: 1.5rem;
}

.divider {
  width: 1px;
  height: 0;
  background: linear-gradient(to bottom, transparent, var(--line), transparent);
  justify-self: center;
  animation: dividerGrow 0.8s cubic-bezier(0.23, 1, 0.32, 1) 1.4s forwards;
}

@keyframes dividerGrow {
  from { height: 0; opacity: 0; }
  to   { height: 80px; opacity: 1; }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.75rem 1rem;
  text-decoration: none;
  min-width: 140px;
  opacity: 0;
  transform: translateY(20px);
  animation: cardSlideIn 0.6s ease 1.4s forwards;
  transition: none;
}

/* ── Card hover borders ────────────────── */

.card__border {
  display: none;
}

/* ── Card content ──────────────────────── */

.card__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.375rem, 3.5vw, 2rem);
  line-height: 1;
  color: var(--text-primary);
  transition: color 0.3s ease, text-shadow 0.3s ease;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.card:hover .card__title {
  color: var(--accent);
  text-shadow: 0 2px 4px rgba(59, 107, 138, 0.15);
}

.card__subtitle {
  margin-top: 0.625rem;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(0.8125rem, 2vw, 1.0625rem);
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.card:hover .card__subtitle {
  color: var(--text-primary);
}

.card__stat {
  margin-top: 0.625rem;
  font-family: var(--font-mono);
  font-size: clamp(0.6875rem, 1.75vw, 0.9375rem);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.card__date {
  margin-top: 0.125rem;
  font-family: var(--font-mono);
  font-size: clamp(0.6875rem, 1.75vw, 0.9375rem);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

/* ── Animations ────────────────────────── */

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

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

@keyframes revealLetter {
  from {
    opacity: 0;
    clip-path: inset(0 0 100% 0);
  }
  to {
    opacity: 1;
    clip-path: inset(0);
  }
}
