:root {
  --family-ink: #15342b;
  --family-cream: #f6f0df;
  --family-paper: #fffdf8;
  --family-coral: #e9704a;
  --family-gold: #e8b348;
  --family-leaf: #527d54;
  --family-plum: #663c57;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--family-ink);
  background: var(--family-paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; }
.family-shell { width: min(1180px, calc(100% - 2rem)); margin-inline: auto; }
.family-skip {
  position: fixed; top: .75rem; left: .75rem; z-index: 30; transform: translateY(-160%);
  padding: .75rem 1rem; background: white; border-radius: 999px; font-weight: 800;
}
.family-skip:focus { transform: translateY(0); }
.family-nav {
  position: absolute; inset: 0 0 auto; z-index: 10; padding: 1.15rem 0;
  color: white;
}
.family-nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.family-brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; font-weight: 950; letter-spacing: .08em; }
.family-brand-mark {
  display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.48);
  border-radius: 50%; background: rgba(255,255,255,.12); backdrop-filter: blur(9px);
}
.family-nav-links { display: flex; align-items: center; gap: 1.2rem; }
.family-nav-links a { text-decoration: none; font-weight: 750; }
.family-nav-links .family-nav-cta { padding: .7rem 1rem; border-radius: 999px; background: white; color: var(--family-ink); }
.family-hero {
  position: relative; isolation: isolate; min-height: 760px; display: grid; align-items: end; overflow: hidden;
  color: white; background: var(--family-ink);
}
.family-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(90deg, rgba(10,34,27,.94) 0%, rgba(10,34,27,.77) 48%, rgba(10,34,27,.22) 100%),
              url("/static/apply/leic.jpeg") center 42% / cover no-repeat;
  transform: scale(1.015);
}
.family-hero::after {
  content: ""; position: absolute; z-index: -1; width: 540px; height: 540px; right: -170px; bottom: -220px;
  border-radius: 50%; border: 80px solid rgba(232,179,72,.76); box-shadow: 0 0 0 34px rgba(233,112,74,.7);
}
.family-hero-copy { max-width: 780px; padding: 10rem 0 6.5rem; }
.family-kicker { margin: 0 0 1rem; color: #f8cf76; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.family-hero h1 {
  max-width: 760px; margin: 0; font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 8vw, 6.8rem); line-height: .94; letter-spacing: -.055em;
}
.family-lead { max-width: 650px; margin: 1.6rem 0 0; color: rgba(255,255,255,.88); font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.6; }
.family-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.family-button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: .8rem 1.2rem;
  border: 1px solid rgba(255,255,255,.45); border-radius: 999px; color: white; text-decoration: none; font-weight: 850;
  transition: transform .2s ease, background .2s ease;
}
.family-button:hover { transform: translateY(-2px); }
.family-button-primary { border-color: var(--family-coral); background: var(--family-coral); }
.family-button-ghost { background: rgba(255,255,255,.09); backdrop-filter: blur(8px); }
.family-intro { padding: 6.5rem 0 3rem; }
.family-eyebrow { color: var(--family-coral); font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.family-intro-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 7vw, 7rem); align-items: start; }
.family-intro h2 { margin: .4rem 0 0; font: 700 clamp(2.2rem, 5vw, 4rem)/1.03 Georgia, serif; letter-spacing: -.035em; }
.family-intro-copy { margin: 0; font-size: 1.17rem; line-height: 1.75; color: #3e514a; }
.family-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; padding: 2rem 0 7rem; }
.family-card {
  position: relative; min-height: 310px; display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(1.4rem, 3vw, 2.1rem); overflow: hidden; border-radius: 1.75rem; text-decoration: none;
  box-shadow: 0 18px 45px rgba(29,49,42,.1); transition: transform .25s ease, box-shadow .25s ease;
}
.family-card:hover { transform: translateY(-6px); box-shadow: 0 25px 55px rgba(29,49,42,.17); }
.family-card:nth-child(1), .family-card:nth-child(4) { grid-column: span 7; }
.family-card:nth-child(2), .family-card:nth-child(3) { grid-column: span 5; }
.family-card:nth-child(5) { grid-column: span 12; min-height: 250px; }
.family-card-number { font-size: .8rem; font-weight: 950; letter-spacing: .14em; text-transform: uppercase; opacity: .72; }
.family-card h3 { max-width: 500px; margin: 3rem 0 .55rem; font: 700 clamp(2rem, 4vw, 3.6rem)/1 Georgia, serif; letter-spacing: -.04em; }
.family-card p { max-width: 610px; margin: 0; font-size: 1.02rem; line-height: 1.55; opacity: .82; }
.family-card-link { margin-top: 1.5rem; font-weight: 900; }
.family-card-mark { position: absolute; right: -20px; top: -22px; font-size: 9rem; line-height: 1; opacity: .12; transform: rotate(8deg); }
.family-card-market { background: #dfead8; }
.family-card-popup { color: white; background: var(--family-plum); }
.family-card-dog { background: #f3d27d; }
.family-card-flower { color: white; background: #447454; }
.family-card-events { color: white; background: var(--family-coral); }
.family-future { padding: 6rem 0; color: white; background: var(--family-ink); }
.family-future-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 4rem; align-items: center; }
.family-future h2 { margin: .5rem 0 1.2rem; font: 700 clamp(2.4rem, 5vw, 4.8rem)/1 Georgia, serif; letter-spacing: -.045em; }
.family-future p { color: rgba(255,255,255,.78); font-size: 1.1rem; line-height: 1.65; }
.family-future-list { display: grid; gap: .75rem; }
.family-future-item { padding: 1rem 1.1rem; border: 1px solid rgba(255,255,255,.17); border-radius: 1rem; background: rgba(255,255,255,.06); }
.family-footer { padding: 2.3rem 0; background: #0e2821; color: rgba(255,255,255,.72); }
.family-footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.family-footer a { color: white; }
@media (max-width: 820px) {
  .family-nav-links a:not(.family-nav-cta) { display: none; }
  .family-hero { min-height: 700px; }
  .family-hero::before { background: linear-gradient(0deg, rgba(10,34,27,.96), rgba(10,34,27,.45)), url("/static/apply/leic.jpeg") center / cover; }
  .family-intro-grid, .family-future-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .family-card { grid-column: 1 / -1 !important; min-height: 285px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .family-card, .family-button { transition: none; } }
