:root { --ink: #132227; --cream: #f5f0e7; --copper: #b96039; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: Arial, Helvetica, sans-serif; }
.hero { position: relative; display: grid; min-height: 100svh; place-items: center; overflow: hidden; isolation: isolate; color: white; }
.hero-image, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { z-index: -3; object-fit: cover; object-position: center 58%; }
.hero-shade { z-index: -2; background: linear-gradient(180deg, rgba(16,23,25,.18), rgba(16,23,25,.04) 45%, rgba(16,23,25,.6)); }
.hero::after { content: ""; position: absolute; inset: 18px; z-index: -1; border: 1px solid rgba(255,255,255,.34); pointer-events: none; }
.hero-copy { width: min(92%, 820px); margin-top: -14vh; text-align: center; text-shadow: 0 2px 25px rgba(26,18,14,.5); }
.eyebrow { margin: 0 0 18px; font-size: .85rem; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; }
.brand-lockup { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 2.2vw, 28px); }
.brand-mark { width: clamp(80px, 14.2vw, 170px); height: clamp(62px, 11vw, 132px); background: linear-gradient(180deg, #d16a32 0%, #c25c35 100%); filter: drop-shadow(0 2px 18px rgba(26,18,14,.35)); mask: url('images/dbsys-mark.png') center / contain no-repeat; -webkit-mask: url('images/dbsys-mark.png') center / contain no-repeat; }
.hero h1 { margin: 0; color: #f3b07c; font-family: Arial, Helvetica, sans-serif; font-size: clamp(5rem, 16vw, 11rem); font-weight: 600; letter-spacing: -.09em; line-height: .8; }
.hero h1 span, .footer-mark span { color: #f3b07c; }
.gratitude { margin: 28px auto 0; }
.farewell { max-width: 680px; margin: 0 auto; font-family: "Trebuchet MS", Arial, sans-serif; font-size: clamp(1.15rem, 2vw, 1.55rem); font-style: italic; line-height: 1.5; }
.thanks-detail { max-width: 740px; margin: 9px auto 0; font-family: "Trebuchet MS", Arial, sans-serif; font-size: clamp(1rem, 1.55vw, 1.2rem); line-height: 1.45; }
.closed { margin: 28px 0 0; font-size: .85rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; }
.scroll-cue { position: absolute; bottom: 44px; display: flex; flex-direction: column; align-items: center; gap: 8px; color: white; font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-decoration: none; text-transform: uppercase; }
.scroll-cue svg { width: 25px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; animation: drift 2s ease-in-out infinite; }
.memories { min-height: 100vh; padding: clamp(80px,10vw,140px) 6vw 42px; background: linear-gradient(140deg, #f7f2e9 0%, #efe5d6 100%); }
.section-heading { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-heading .eyebrow { color: var(--copper); }
.section-heading h2 { margin: 0 0 20px; font-family: "Trebuchet MS", Arial, sans-serif; font-size: clamp(2.4rem,5vw,4.4rem); font-weight: 600; letter-spacing: -.04em; line-height: 1.05; }
.section-heading > p:last-child { margin: 0; color: #526166; font-family: "Trebuchet MS", Arial, sans-serif; font-size: 1.08rem; line-height: 1.75; }
.gallery-wrap { width: min(100%, 1120px); margin: 0 auto; }
.photo-frame { position: relative; height: min(67vw,660px); margin: 0; overflow: hidden; background: #1f2526; box-shadow: 0 22px 60px rgba(47,37,27,.18); }
.photo-frame img { width: 100%; height: 100%; object-fit: contain; }
.photo-frame img[hidden] { display: none; }
.gallery-button { position: absolute; top: 50%; width: 48px; height: 48px; transform: translateY(-50%); border: 0; border-radius: 999px; color: var(--ink); background: rgba(247,242,233,.9); box-shadow: 0 6px 22px rgba(0,0,0,.18); font-size: 2rem; line-height: 1; cursor: pointer; }
.gallery-button:focus-visible { outline: 3px solid #f3b07c; outline-offset: 3px; }
.gallery-previous { left: 18px; }
.gallery-next { right: 18px; }
.gallery-status { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 24px; color: #7c6758; font-size: .78rem; font-weight: 700; letter-spacing: .14em; }
.gallery-status i { width: 48px; height: 1px; background: #aa8e78; }
footer { display: flex; width: min(100%,1120px); margin: 90px auto 0; padding-top: 28px; align-items: baseline; justify-content: space-between; border-top: 1px solid #d1c1ab; color: #6f655b; }
.footer-mark { color: #f3b07c; font-family: Arial, Helvetica, sans-serif; font-size: 2rem; font-weight: 600; letter-spacing: -.08em; }
footer p { margin: 0; font-size: .9rem; letter-spacing: .08em; }
@keyframes drift { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@media (max-width: 640px) {
  .hero::after { inset: 10px; }
  .hero-copy { margin-top: -18vh; }
  .hero-image { object-position: 57% center; }
  .scroll-cue { bottom: 28px; }
  .brand-lockup { gap: 10px; }
  .memories { padding-inline: 18px; }
  .photo-frame { height: 70vh; max-height: 560px; }
  .gallery-button { width: 40px; height: 40px; }
  footer { flex-direction: column; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .scroll-cue svg { animation: none; } }
