:root {
  --navy: #1F3D6E;
  --navy-deep: #162D53;
  --corn: #6F94CC;
  --corn-text: #5E82BE;
  --corn-soft: #E9F0FA;
  --corn-line: rgba(111, 148, 204, 0.38);
  --white: #FFFFFF;
  --shadow-photo: 0 30px 70px -28px rgba(31, 61, 110, 0.45);
  --radius-photo: 28px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', 'Montserrat', 'Avenir Next', 'Segoe UI', sans-serif;
  background: var(--white);
  color: var(--navy);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--corn); color: var(--white); }

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--corn);
  outline-offset: 3px;
  border-radius: 6px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Page atmosphere ---------- */
.page {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #EFF5FC 0%, #FFFFFF 34%);
}

.topbar {
  position: relative;
  z-index: 2;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.6rem 1rem;
}

.topbar .dot { color: #9FBBE4; margin: 0 0.45em; }

.atmosphere {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.atmosphere::before {
  content: "";
  position: absolute;
  top: -22vw;
  right: -18vw;
  width: 62vw;
  height: 62vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(111,148,204,0.22) 0%, rgba(111,148,204,0) 62%);
}

.atmosphere::after {
  content: "";
  position: absolute;
  bottom: -26vw;
  left: -20vw;
  width: 58vw;
  height: 58vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(111,148,204,0.16) 0%, rgba(111,148,204,0) 60%);
}

.road-bg {
  position: absolute;
  top: 0;
  right: 0;
  height: 118%;
  width: auto;
  opacity: 0.55;
}

/* ---------- Hero ---------- */
main { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; }

.hero {
  flex: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vh, 4.5rem) clamp(1.4rem, 4.5vw, 2.75rem) clamp(3.5rem, 7vh, 4.5rem);
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: clamp(2.25rem, 5.5vw, 5rem);
  align-items: center;
}

.hero-copy { max-width: 560px; }

.logo {
  width: clamp(240px, 26vw, 350px);
  height: auto;
  display: block;
  margin-left: -30px; /* optical alignment: SVG has internal padding */
  margin-bottom: clamp(1.75rem, 4vh, 2.5rem);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  list-style: none;
}

.chips li {
  background: var(--corn-soft);
  border: 1px solid var(--corn-line);
  color: var(--navy);
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  white-space: nowrap;
}

.overline {
  font-size: clamp(0.82rem, 1.1vw, 0.95rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 0.75rem;
}

.headline {
  font-size: clamp(2.15rem, 4.6vw, 3.55rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.022em;
  text-wrap: balance;
  margin-bottom: clamp(1.75rem, 4vh, 2.25rem);
}

.headline .path {
  color: var(--corn-text);
  position: relative;
  white-space: nowrap;
}

.headline .path .swash {
  position: absolute;
  left: 2%;
  bottom: -0.28em;
  width: 96%;
  height: 0.32em;
  overflow: visible;
}

.headline .path .swash path {
  fill: none;
  stroke: var(--corn-text);
  stroke-width: 6;
  stroke-linecap: round;
  opacity: 0.55;
}

/* ---------- CTAs ---------- */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: inherit;
  font-size: 1.17rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 0.95rem 2.1rem;
  border-radius: 999px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  will-change: transform;
}

.btn svg { flex: none; }

.btn-donate {
  background: var(--corn);
  color: var(--navy-deep);
  box-shadow: 0 14px 30px -14px rgba(111, 148, 204, 0.9);
}

.btn-donate:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -14px rgba(31, 61, 110, 0.65);
}

.btn-fb {
  background: var(--white);
  color: var(--navy);
  border: 2px solid var(--corn);
}

.btn-fb:hover {
  background: var(--corn-soft);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -16px rgba(31, 61, 110, 0.35);
}

/* ---------- Coming soon band ---------- */
.soon-band {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, #EDF3FB 0%, #E1EBF8 100%);
  border-top: 1px solid var(--corn-line);
  padding: 1.4rem clamp(1.4rem, 4vw, 2.75rem);
}

.coming-soon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  text-align: center;
  text-wrap: balance;
}

.road-dash {
  flex: none;
  width: 54px;
  height: 4px;
  border-radius: 2px;
  background-image: linear-gradient(90deg, var(--corn) 0 12px, transparent 12px 20px);
  background-size: 20px 4px;
  background-repeat: repeat-x;
}

@media (prefers-reduced-motion: no-preference) {
  .road-dash { animation: drive 1.6s linear infinite; }
  @keyframes drive { to { background-position: 20px 0; } }
}

/* ---------- Photo ---------- */
.hero-photo {
  position: relative;
  justify-self: end;
  width: min(100%, 470px);
}

.hero-photo::after {
  content: "";
  position: absolute;
  top: -9%;
  right: -16%;
  bottom: -13%;
  left: -18%;
  background: linear-gradient(215deg, #F1F6FC 0%, #D7E4F5 100%);
  border-radius: 48px;
  z-index: 0;
}

.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translate(18px, 18px);
  border: 2px solid var(--corn);
  border-radius: var(--radius-photo);
  opacity: 0.65;
  z-index: 1;
}

.hero-photo img.portrait {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-photo);
  box-shadow: var(--shadow-photo);
  z-index: 1;
}

.family-card {
  position: absolute;
  left: -2.25rem;
  bottom: -2.5rem;
  z-index: 2;
  width: 38%;
  background: var(--white);
  padding: 6px;
  border-radius: 18px;
  box-shadow: 0 26px 52px -20px rgba(31, 61, 110, 0.55);
  transform: rotate(-4deg);
  transition: transform 0.25s ease;
}

.family-card:hover { transform: rotate(-1.5deg) scale(1.02); }

.family-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 13px;
}

/* ---------- Footer ---------- */
footer {
  position: relative;
  z-index: 1;
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: clamp(2.75rem, 6vh, 4rem) 1.5rem clamp(2.25rem, 5vh, 3rem);
  border-top: 4px solid var(--corn);
  overflow: hidden;
}

.road-footer {
  position: absolute;
  right: -90px;
  top: -30px;
  height: 160%;
  opacity: 0.06;
  pointer-events: none;
}

.footer-inner { position: relative; max-width: 640px; margin: 0 auto; }

.footer-logo {
  width: min(240px, 60vw);
  height: auto;
  margin-bottom: 1.9rem;
}

.disclaimer {
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  padding: 0.65rem 1.3rem;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.6rem;
}

footer address {
  font-style: normal;
  font-size: 0.95rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
  margin-bottom: 1.4rem;
}

footer address a {
  color: #B9CDEE;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(185, 205, 238, 0.4);
  transition: border-color 0.15s ease, color 0.15s ease;
}

footer address a:hover { color: var(--white); border-color: var(--white); }

.copyright {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
}

/* ---------- 404 page ---------- */
.notfound {
  flex: 1;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(3rem, 10vh, 6rem) clamp(1.4rem, 4.5vw, 2.75rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.notfound-logo-link { display: block; line-height: 0; }

.notfound .logo {
  width: clamp(200px, 22vw, 290px);
  margin: 0 0 clamp(1.9rem, 4.5vh, 2.75rem);
}

.notfound .headline { margin-bottom: 1.1rem; }

.notfound-copy {
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  line-height: 1.65;
  color: rgba(31, 61, 110, 0.82);
  max-width: 44ch;
  text-wrap: balance;
  margin-bottom: clamp(1.9rem, 4.5vh, 2.5rem);
}

.notfound .cta-row { justify-content: center; }

/* ---------- Load animation ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(20px);
    animation: rise 0.75s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  }
  .d1 { animation-delay: 0.05s; }

  .reveal.d1 {
    opacity: 1;
    animation-name: rise-visible;
  }
  @keyframes rise-visible {
    from { transform: translateY(20px); }
    to { transform: translateY(0); }
  }
  .d2 { animation-delay: 0.15s; }
  .d3 { animation-delay: 0.25s; }
  .d4 { animation-delay: 0.35s; }
  .d5 { animation-delay: 0.45s; }
  .d6 { animation-delay: 0.55s; }

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

  .hero-photo.reveal {
    transform: translateY(20px) scale(0.975);
  }

  .road-bg path.draw {
    stroke-dasharray: 2600;
    stroke-dashoffset: 2600;
    animation: draw 2s cubic-bezier(0.45, 0, 0.25, 1) 0.2s forwards;
  }

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

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-top: clamp(2.25rem, 5vh, 3.5rem);
    text-align: center;
  }

  .hero-copy { max-width: 540px; margin: 0 auto; order: 1; }
  .hero-photo { order: 2; justify-self: center; width: min(100%, 420px); }

  .logo { margin: 0 auto clamp(1.5rem, 3.5vh, 2rem); }
  .chips { justify-content: center; }
  .cta-row { justify-content: center; }
  .hero { padding-bottom: 5rem; }
  .family-card { left: -0.75rem; bottom: -2rem; width: 40%; }
  .road-bg { opacity: 0.35; }
}

@media (max-width: 540px) {
  .cta-row { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .headline .path { white-space: normal; }
  .headline .path .swash { display: none; }
  .hero-photo::before { transform: translate(12px, 12px); }
  .hero-photo::after { top: -6%; right: -8%; bottom: -9%; left: -10%; border-radius: 34px; }
  .coming-soon { flex-direction: column; gap: 0.8rem; }
  .road-dash { width: 44px; }
}
