
  :root {
    --bg: #11100d;
    --bg-2: #1a1814;
    --paper: #f4eee2;
    --ink: #ece5d6;
    --soft: #b9b1a0;
    --faint: #807a6d;
    --gold: #c9a063;
    --gold-soft: #d8b87f;
    --line: rgba(201,160,99,0.25);
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }

  body {
    font-family: 'Spectral', Georgia, serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.85;
    font-size: 19px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }

  /* grain overlay */
  body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  }

  /* ---------- HERO ---------- */
  .hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
  }
  .hero-bg {
    position: absolute;
    inset: 0;
    background: url('home-hero.jpg') center/cover no-repeat;
    transform: scale(1.08);
    filter: grayscale(0.35) contrast(1.05);
    animation: slowZoom 18s ease-out forwards;
  }
  .hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17,16,13,0.45) 0%, rgba(17,16,13,0.2) 35%, rgba(17,16,13,0.85) 80%, var(--bg) 100%);
  }
  .hero-content {
    position: relative;
    z-index: 2;
    padding: 0 2rem 6rem;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
  }
  .kicker {
    font-family: 'Fraunces', serif;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    font-size: 0.78rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeUp 1s ease forwards 0.6s;
  }
  .hero h1 {
    font-family: 'Fraunces', serif;
    font-weight: 400;
    font-size: clamp(3.2rem, 11vw, 8.5rem);
    line-height: 0.92;
    letter-spacing: -0.02em;
    color: var(--paper);
    opacity: 0;
    animation: fadeUp 1.2s ease forwards 0.85s;
  }
  .hero h1 em {
    display: block;
    font-style: italic;
    font-weight: 300;
    color: var(--gold-soft);
  }
  .hero-meta {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 1.4rem;
    font-family: 'Fraunces', serif;
    font-size: 1.15rem;
    color: var(--soft);
    opacity: 0;
    animation: fadeUp 1.2s ease forwards 1.15s;
  }
  .hero-meta .rule { width: 60px; height: 1px; background: var(--gold); }

  .scroll-hint {
    position: absolute;
    bottom: 2rem; left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    font-family: 'Fraunces', serif;
    font-size: 0.7rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--faint);
    animation: bob 2.5s ease-in-out infinite;
  }

  /* ---------- CHAPTERS ---------- */
  .story { max-width: 760px; margin: 0 auto; padding: 7rem 2rem; }

  .opening {
    font-family: 'Fraunces', serif;
    font-weight: 300;
    font-size: clamp(1.7rem, 4.5vw, 2.6rem);
    line-height: 1.4;
    letter-spacing: -0.01em;
    color: var(--paper);
    text-align: center;
    margin-bottom: 7rem;
  }
  .opening em { font-style: italic; color: var(--gold-soft); }

  .chapter { margin-bottom: 6.5rem; position: relative; }
  .chapter-num {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: 1rem;
    color: var(--gold);
    letter-spacing: 0.15em;
    margin-bottom: 0.6rem;
    display: block;
  }
  .chapter h2 {
    font-family: 'Fraunces', serif;
    font-weight: 400;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--paper);
    margin-bottom: 2rem;
  }
  .chapter p { color: var(--soft); margin-bottom: 1.5rem; }
  .chapter p strong { color: var(--ink); font-weight: 500; }

  .pull {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-weight: 300;
    font-size: clamp(1.5rem, 4vw, 2.1rem);
    line-height: 1.4;
    color: var(--gold-soft);
    border-left: 2px solid var(--gold);
    padding-left: 1.8rem;
    margin: 3.5rem 0;
  }

  .portrait-band {
    margin: 0 auto 6rem;
    max-width: 1100px;
    padding: 0 2rem;
    text-align: center;
  }
  .portrait-band img {
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid var(--line);
    filter: grayscale(0.2);
    box-shadow: 0 30px 70px rgba(0,0,0,0.5);
  }
  .portrait-band .cap {
    margin-top: 1.4rem;
    font-family: 'Fraunces', serif;
    font-style: italic;
    color: var(--faint);
    font-size: 1rem;
  }

  .divider {
    display: flex; align-items: center; justify-content: center;
    gap: 1.2rem; margin: 5rem auto; max-width: 300px;
    color: var(--gold);
  }
  .divider::before, .divider::after {
    content: ""; flex: 1; height: 1px;
    background: linear-gradient(90deg, transparent, var(--line), transparent);
  }
  .divider span { font-size: 0.9rem; }

  /* ---------- FAMILY ---------- */
  .family {
    background: var(--bg-2);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 6rem 2rem;
  }
  .family-inner { max-width: 760px; margin: 0 auto; }
  .family h2 {
    font-family: 'Fraunces', serif;
    font-weight: 400;
    font-style: italic;
    font-size: clamp(1.8rem, 4.5vw, 2.6rem);
    color: var(--paper);
    text-align: center;
    margin-bottom: 0.6rem;
  }
  .family .lead {
    text-align: center; color: var(--faint);
    font-style: italic; margin-bottom: 3rem;
  }
  .survived p { color: var(--soft); margin-bottom: 1.4rem; }
  .survived .label {
    font-family: 'Fraunces', serif;
    color: var(--gold); font-style: italic;
    display: block; font-size: 0.95rem;
    letter-spacing: 0.1em; margin-bottom: 0.2rem;
  }

  /* ---------- CLOSING / SERVICE ---------- */
  .closing {
    max-width: 760px; margin: 0 auto;
    padding: 7rem 2rem; text-align: center;
  }
  .closing .farewell {
    font-family: 'Fraunces', serif;
    font-weight: 300;
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    line-height: 1.45;
    color: var(--paper);
    margin-bottom: 4rem;
  }
  .closing .farewell em { font-style: italic; color: var(--gold-soft); }

  .tributes { margin-top: 1rem; }
  .tributes-tag {
    font-family: 'Fraunces', serif;
    letter-spacing: 0.3em; text-transform: uppercase;
    font-size: 0.72rem; color: var(--gold); margin-bottom: 2.5rem;
  }
  .tribute {
    border-top: 1px solid var(--line);
    padding: 2.2rem 0;
    text-align: left;
  }
  .tribute:last-of-type { border-bottom: 1px solid var(--line); }
  .tribute p {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-weight: 300;
    font-size: clamp(1.2rem, 3vw, 1.55rem);
    line-height: 1.5;
    color: var(--ink);
    margin-bottom: 1rem;
  }
  .tribute cite {
    font-family: 'Spectral', serif;
    font-style: normal;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    color: var(--faint);
  }
  .note {
    margin-top: 3rem; font-style: italic;
    color: var(--faint); font-size: 1rem;
    line-height: 1.7;
  }
  .note a { color: var(--gold-soft); text-decoration: none; border-bottom: 1px solid var(--line); }

  footer {
    text-align: center; padding: 5rem 2rem 4rem;
    border-top: 1px solid var(--line);
  }
  footer .name {
    font-family: 'Fraunces', serif; font-style: italic;
    font-size: 1.6rem; color: var(--gold-soft); margin-bottom: 0.5rem;
  }
  footer .yrs {
    font-family: 'Fraunces', serif; letter-spacing: 0.3em;
    color: var(--faint); font-size: 0.85rem;
  }

  /* ---------- reveal ---------- */
  .reveal { opacity: 0; transform: translateY(30px); transition: opacity 1.1s ease, transform 1.1s ease; }
  .reveal.show { opacity: 1; transform: translateY(0); }

  @keyframes slowZoom { to { transform: scale(1); } }
  @keyframes fadeUp { from { opacity: 0; transform: translateY(28px);} to { opacity: 1; transform: translateY(0);} }
  @keyframes bob { 0%,100%{ transform: translateX(-50%) translateY(0);} 50%{ transform: translateX(-50%) translateY(8px);} }

  @media (max-width: 600px) {
    body { font-size: 18px; }
    .portrait-band img { width: 210px; height: 210px; }
    .story, .closing, .family-inner { padding-left: 0.5rem; padding-right: 0.5rem; }
  }
