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

html {
  scroll-behavior: smooth;
}

:root {
  --bg:    #FFF5F8;
  --ink:   #2D1520;
  --ink-2: #6B3550;
  --muted: #A07085;
  --faint: #C4A0B0;

  --surface:        rgba(255, 255, 255, 0.55);
  --surface-strong: rgba(255, 255, 255, 0.90);
  --border:         rgba(176, 68, 111, 0.10);
  --border-strong:  rgba(176, 68, 111, 0.22);

  --glow-soft:   rgba(201, 96, 138, 0.10);
  --glow:        rgba(201, 96, 138, 0.20);
  --glow-strong: rgba(201, 96, 138, 0.32);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-gap: 3.5rem;
}

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

::selection { background: rgba(201, 96, 138, 0.12); color: var(--ink); }

/* ============ SPLATTER CANVAS ============ */
#splatter {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ============ LAYOUT ============ */
.layout {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: var(--header-gap) 2rem 2.5rem;
  gap: 2rem;
}

/* ============ HEADER ============ */
.site-header {
  width: 100%;
  text-align: center;
}

.logo {
  font-family: 'Special Elite', 'Courier New', monospace;
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  line-height: 1;
}

.logo-ext {
  color: var(--muted);
}

.header-divider {
  display: none;
}

/* ============ MAIN ============ */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2rem;
  padding: 4rem 0;
  max-width: 640px;
  width: 100%;
}

/* ── Headline ── */
.headline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(3rem, 7.5vw, 5.4rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--ink);
}

.headline em {
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(125deg, #C9608A 0%, #8F2F57 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Sub ── */
.sub {
  font-size: 1rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.78;
  max-width: 460px;
}

/* ── Contacts ── */
.contacts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 0.5rem;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 1.5rem;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--border);
  box-shadow: 0 2px 14px -4px var(--glow-soft);
  transition:
    transform 0.3s var(--ease),
    border-color 0.3s,
    box-shadow 0.3s var(--ease);
}

.contact-pill:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: 0 6px 22px -6px var(--glow);
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #C9608A;
  flex-shrink: 0;
}

.contact-pill--primary {
  background: #B0446F;
  border-color: #B0446F;
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 4px 20px -4px rgba(176, 68, 111, 0.45);
}

.contact-pill--primary .contact-icon {
  color: rgba(255, 255, 255, 0.85);
}

.contact-pill--primary:hover {
  background: #8F2F57;
  border-color: #8F2F57;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 8px 28px -6px rgba(143, 47, 87, 0.5);
}

/* ============ FOOTER ============ */
.site-footer {
  width: 100%;
  text-align: center;
}

.site-footer p {
  font-size: 0.78rem;
  color: var(--faint);
  letter-spacing: 0.01em;
}

.site-footer a {
  color: var(--muted);
  transition: color 0.2s;
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 1px;
}

.site-footer a:hover {
  color: #C9608A;
  border-bottom-color: #C9608A;
}

/* ============ REVEAL ============ */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.site-header[data-reveal] { transition-delay: 0s; }
.headline[data-reveal]    { transition-delay: 0.12s; }
.sub[data-reveal]         { transition-delay: 0.22s; }
.contacts[data-reveal]    { transition-delay: 0.34s; }

/* ============ RESPONSIVE ============ */
@media (max-width: 560px) {
  :root {
    --header-gap: 2.25rem;
  }

  .layout {
    padding: var(--header-gap) 2.5rem 2rem;
    gap: 1rem;
  }

  .header-divider {
    display: block;
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
    margin: var(--header-gap) auto 0;
    width: min(240px, 60%);
  }

  .main {
    padding: 1.75rem 0;
    gap: 1.5rem;
  }

  .headline {
    font-size: clamp(1.85rem, 9vw, 2.6rem);
    letter-spacing: -0.01em;
    line-height: 1.12;
  }

  .sub {
    font-size: 0.9rem;
    line-height: 1.72;
  }

  .contacts {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .contact-pill {
    justify-content: center;
    padding: 0.75rem 1.25rem;
    font-size: 0.925rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
