:root {
  --bg: #f3f3f3;
  --ink: #2a2f33;
  --muted: #5f6b73;
  --teal: #1f6f6c;
  --teal-soft: #d7efef;
  --max: 1120px;
}

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

html,
body {
  min-height: 100%;
}

body {
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--ink);
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath d='M14 7 L17 11 L11 11 Z' fill='%23d2d6d8'/%3E%3C/svg%3E");
  background-size: 28px 28px;
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.header {
  padding: 1.25rem 1.5rem 0;
}

.header__logo {
  display: inline-flex;
  line-height: 0;
}

.header__logo img {
  height: 48px;
  width: auto;
}

.hero {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 2rem 1.5rem 3rem;
}

.hero__inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(240px, 0.95fr) minmax(280px, 1.05fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.hero__art {
  position: relative;
  display: flex;
  justify-content: center;
  width: min(100%, 420px);
  margin-inline: auto;
}

.hero__art-stage {
  position: relative;
  width: 100%;
  animation: heroFloat 2.4s ease-in-out infinite;
}

.hero__art-img {
  width: 100%;
  height: auto;
  display: block;
  background: transparent;
}

.hero__sparks {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.hero__spark {
  transform-box: fill-box;
  transform-origin: center;
  animation: sparkBlink 1.6s ease-in-out infinite;
}

.hero__spark--1 { animation-delay: 0s; }
.hero__spark--2 { animation-delay: 0.35s; }
.hero__spark--3 { animation-delay: 0.7s; }
.hero__spark--4 { animation-delay: 0.15s; }
.hero__spark--5 { animation-delay: 0.55s; }

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes sparkBlink {
  0%, 100% { opacity: 0.25; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.08); }
}

.hero__copy {
  max-width: 34rem;
}

.hero__eyebrow {
  font-size: clamp(0.72rem, 1.4vw, 0.85rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.35rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 1.35rem;
}

.hero__body {
  font-size: clamp(0.98rem, 1.5vw, 1.125rem);
  line-height: 1.65;
  color: var(--muted);
  font-weight: 500;
  max-width: 34ch;
}

.hero__contact {
  margin-top: 1.75rem;
}

.hero__contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--teal);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.hero__contact-icon {
  flex-shrink: 0;
}

.hero__contact a:hover,
.hero__contact a:focus-visible {
  color: #165955;
  border-bottom-color: #165955;
  outline: none;
}

.hero__contact a:hover .hero__contact-icon,
.hero__contact a:focus-visible .hero__contact-icon {
  transform: none;
}

.footer {
  padding: 1rem 1.5rem 1.35rem;
  font-size: 0.8rem;
  color: #8a949b;
}

.footer__inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer__copy {
  margin: 0;
}

.footer-developer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.footer-developer__label {
  font-size: 0.82rem;
  color: #64748b;
  white-space: nowrap;
}

.footer-developer__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-developer__link:hover,
.footer-developer__link:focus-visible {
  opacity: 0.9;
  transform: translateY(-1px);
  outline: none;
}

.footer-developer__mark {
  height: 26px;
  width: 26px;
  display: block;
  flex-shrink: 0;
  /* no shadow on logo mark */
  filter: none;
}

.footer-developer__wordmark {
  display: inline-flex;
  align-items: baseline;
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1;
  letter-spacing: -0.02em;
}

.footer-developer__name {
  color: #ffffff;
  /* Same strong soft shadow look as before — Digich only */
  text-shadow:
    0 0 2px rgba(15, 23, 42, 0.45),
    0 1px 2px rgba(15, 23, 42, 0.55),
    0 2px 6px rgba(15, 23, 42, 0.4),
    0 0 8px rgba(15, 23, 42, 0.28);
}

.footer-developer__tld {
  /* gradient .org — no shadow */
  background: linear-gradient(90deg, #3b82f6 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: none;
}

@media (max-width: 820px) {
  .hero {
    padding-top: 1rem;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.25rem;
  }

  .hero__copy {
    margin: 0 auto;
  }

  .hero__body {
    max-width: 40ch;
    margin: 0 auto;
  }

  .hero__art {
    width: min(100%, 320px);
  }

  .header {
    text-align: center;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-developer {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__contact a,
  .footer-developer__link {
    transition: none;
  }

  .hero__art-stage,
  .hero__spark {
    animation: none;
  }
}
