:root {
  --bg: #f4f9f8;
  --bg-edge: #e9f2f0;
  --teal-deep: #00594b;
  --teal: #00816c;
  --teal-mid: #3fa593;
  --teal-light: #73c8b6;
  --gray-text: #5b6360;
  --gray-soft: #8c9390;
  --line: rgba(0, 89, 75, 0.14);
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--gray-text);
  background: var(--bg);
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Background photo, kept faint under a near-opaque tint so it reads as texture, not a picture */
.bg-photo {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: url('family-sunset.jpg');
  background-size: cover;
  background-position: center 55%;
  background-repeat: no-repeat;
}

.bg-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 900px 600px at 50% 38%, rgba(244, 249, 248, 0.94) 0%, rgba(244, 249, 248, 0.88) 55%, rgba(244, 249, 248, 0.82) 100%);
}

/* Subtle heartbeat trace behind the content — the one deliberate motion on the page */
.pulse-bg {
  position: fixed;
  top: 50%;
  left: 0;
  width: 100%;
  height: clamp(90px, 16vw, 200px);
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
}

.pulse-path {
  fill: none;
  stroke: var(--teal-light);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.35;
  stroke-dasharray: 2400;
  stroke-dashoffset: 2400;
  animation: draw-pulse 3.2s ease-out 0.3s 1 forwards,
             pulse-glow 3.6s ease-in-out 3.6s infinite;
}

@keyframes draw-pulse {
  to { stroke-dashoffset: 0; }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.22; }
  50% { opacity: 0.4; }
}

.stage {
  position: relative;
  z-index: 2;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  padding: 8vh 1.5rem;
}

.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 30rem;
  width: 100%;
  opacity: 0;
  transform: translateY(14px);
  animation: rise-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}

@keyframes rise-in {
  to { opacity: 1; transform: translateY(0); }
}

.logo {
  width: clamp(160px, 34vw, 230px);
  height: auto;
  margin-bottom: clamp(1.5rem, 4vw, 2.25rem);
}

.tagline {
  margin: 0;
  font-size: clamp(0.95rem, 2.4vw, 1.1rem);
  font-weight: 500;
  color: var(--gray-soft);
  letter-spacing: 0.01em;
}

.divider {
  width: 48px;
  height: 2px;
  margin: clamp(1.75rem, 5vw, 2.5rem) 0;
  background: linear-gradient(90deg, var(--teal), var(--teal-light));
  border-radius: 2px;
}

.contact {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  width: 100%;
}

.contact-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  color: var(--teal-deep);
  text-decoration: none;
  font-size: clamp(1.1rem, 3.2vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.contact-row .icon {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--teal);
}

.contact-row:hover,
.contact-row:focus-visible {
  border-color: var(--teal-light);
  background: rgba(255, 255, 255, 0.85);
  transform: translateY(-1px);
}

.contact-row:focus-visible {
  outline: 2px solid var(--teal-mid);
  outline-offset: 2px;
}

.contact-row:active {
  transform: translateY(0);
}

@media (min-width: 30rem) {
  .contact-row {
    font-size: 1.4rem;
  }
}

.about {
  margin: 0 0 clamp(2rem, 5.5vw, 2.75rem);
  max-width: 55ch;
  text-align: justify;
  font-size: 0.85rem;
  line-height: 1.65;
  font-weight: 500;
  color: var(--gray-soft);
  letter-spacing: 0.005em;
}

.lang-switch {
  position: fixed;
  top: max(1.1rem, env(safe-area-inset-top));
  right: max(1.1rem, env(safe-area-inset-right));
  z-index: 3;
  display: flex;
  gap: 0.15rem;
  padding: 0.25rem;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--gray-soft);
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-btn:hover {
  color: var(--teal-deep);
}

.lang-btn.is-active {
  background: var(--teal);
  color: #fff;
}

.lang-btn.is-active:hover {
  color: #fff;
}

.lang-btn:focus-visible {
  outline: 2px solid var(--teal-mid);
  outline-offset: 2px;
}

@media (max-width: 22rem) {
  .contact-row {
    padding: 0.75rem 1rem;
    gap: 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .content {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .pulse-path {
    animation: none;
    stroke-dashoffset: 0;
    opacity: 0.28;
  }
}
