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

:root {
  --bg: #f8fafc;
  --surface: #eef2f7;
  --border: #d1dce8;
  --accent: #2a5298;
  --accent-hover: #1e3c72;
  --text: #0f1c2e;
  --muted: #5a7084;
  --logo-dot: #2d5282;
  --font: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(42, 82, 152, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: min(95vw, 1040px);
}

.company-name {
  font-size: clamp(1.1rem, 4.2vw, 4rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.1;
  min-height: 1.2em;
  white-space: nowrap;

  /* dot-fill effect: tiny circles clipped to letterforms */
  background-image: radial-gradient(circle, var(--logo-dot) 1.5px, transparent 1.5px);
  background-size: 6px 6px;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* block cursor — solid rectangle, unaffected by parent's background-clip */
.company-name::after {
  content: '';
  display: inline-block;
  width: 0.55em;
  height: 0.9em;
  background: var(--accent);
  margin-left: 5px;
  vertical-align: -0.05em;
  border-radius: 1px;
  animation: blink 0.8s step-end infinite;
}

.company-name.done::after {
  animation: none;
  opacity: 0;
}

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

.tagline {
  margin-top: 3rem;
  font-size: clamp(0.7rem, 1.4vw, 0.85rem);
  color: var(--muted);
  letter-spacing: 0.02em;
  text-align: left;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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


/* ── Contact ── */
.contact {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  padding: 8rem 2rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.contact-inner {
  max-width: min(95vw, 1040px);
  margin: 0 auto;
  text-align: left;
}

.contact-inner h2 {
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.contact-inner > p {
  font-size: clamp(0.7rem, 1.2vw, 0.85rem);
  color: var(--text);
  white-space: nowrap;
}

.email-link {
  color: var(--accent);
  text-decoration: none;
}

.email-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ── Footer ── */
footer {
  padding: 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

.cta-link {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.cta-link.visible {
  opacity: 1;
}

.cta-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ── Mobile ── */
@media (max-width: 640px) {
  .hero {
    text-align: left;
    padding: 2rem 1.5rem;
  }

  .company-name {
    white-space: normal;
    font-size: clamp(2rem, 10vw, 3rem);
    background-image: radial-gradient(circle, var(--logo-dot) 1px, transparent 1px);
    background-size: 3.5px 3.5px;
  }

  .tagline {
    white-space: normal;
    font-size: 0.78rem;
    margin-top: 2rem;
  }

  .contact {
    padding: 4rem 1.5rem;
  }

  .contact-inner > p {
    white-space: normal;
    font-size: 0.78rem;
  }

  .contact-inner h2 {
    font-size: 0.75rem;
  }
}
