:root {
    --teal: #00b4b4;
    --dark-teal: #007a7a;
    --gold: #a0a0a8;
    --gold-light: #c8c8d0;
    --cream: #e8eaed;
    --dark: #0a0a0a;
    --gray: #1a1a1a;
  }

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

  body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--dark);
    color: #e8eaed;
    overflow-x: hidden;
  }

  /* ── HERO ── */
  .hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .hero-bg {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 60% 50%, #002a2a 0%, #0d1a1f 40%, #050d10 100%);
    z-index: 0;
  }

  /* Gold confetti dots */
  .hero-bg::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
      radial-gradient(circle, #8ab4b8 1px, transparent 1px),
      radial-gradient(circle, var(--teal) 1px, transparent 1px);
    background-size: 60px 60px, 90px 90px;
    background-position: 0 0, 30px 30px;
    opacity: 0.12;
    animation: drift 20s linear infinite;
  }

  @keyframes drift {
    from { background-position: 0 0, 30px 30px; }
    to   { background-position: 60px 60px, 90px 90px; }
  }

  .hero-inner {
    position: relative; z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    max-width: 1100px;
    width: 90%;
    margin: 0 auto;
    padding: 6rem 0 4rem;
  }

  /* Photo side */
  .hero-photo-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    animation: fadeSlideLeft 1s ease forwards;
    opacity: 0;
  }

  @keyframes fadeSlideLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to   { opacity: 1; transform: translateX(0); }
  }

  .photo-frame {
    position: relative;
    width: 340px;
    height: 420px;
  }

  .photo-frame::before {
    content: '';
    position: absolute;
    inset: -12px;
    border: 2px solid #8ab4b8;
    border-radius: 4px;
    z-index: 0;
    animation: borderGlow 3s ease-in-out infinite alternate;
  }

  @keyframes borderGlow {
    from { box-shadow: 0 0 20px rgba(138,180,184,0.35); }
    to   { box-shadow: 0 0 40px rgba(138,180,184,0.7), 0 0 80px rgba(0,180,180,0.2); }
  }

  .photo-frame::after {
    content: '';
    position: absolute;
    bottom: -20px; right: -20px;
    width: 100%; height: 100%;
    border: 2px solid var(--teal);
    border-radius: 4px;
    z-index: -1;
    opacity: 0.5;
  }

  .photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    border-radius: 2px;
    position: relative;
    z-index: 1;
    display: block;
  }

  /* Corner ornaments */
  .corner { position: absolute; width: 24px; height: 24px; z-index: 3; }
  .corner.tl { top: -6px; left: -6px; border-top: 3px solid #8ab4b8; border-left: 3px solid #8ab4b8; }
  .corner.tr { top: -6px; right: -6px; border-top: 3px solid #8ab4b8; border-right: 3px solid #8ab4b8; }
  .corner.bl { bottom: -6px; left: -6px; border-bottom: 3px solid #8ab4b8; border-left: 3px solid #8ab4b8; }
  .corner.br { bottom: -6px; right: -6px; border-bottom: 3px solid #8ab4b8; border-right: 3px solid #8ab4b8; }

  /* Text side */
  .hero-text {
    animation: fadeSlideRight 1s ease 0.3s forwards;
    opacity: 0;
  }

  @keyframes fadeSlideRight {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
  }

  .hero-eyebrow {
    font-family: 'Cinzel', 'Trajan Pro', Georgia, serif;
    font-size: 0.75rem;
    letter-spacing: 0.4em;
    color: var(--teal);
    text-transform: uppercase;
    margin-bottom: 1.2rem;
  }

  .hero-name {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 900;
    line-height: 1;
    color: #e8eaed;
    margin-bottom: 0.4rem;
  }

  .hero-name span {
    display: block;
    -webkit-text-stroke: 1px #8ab4b8;
    color: transparent;
  }

  .hero-class {
    font-family: 'Cinzel', 'Trajan Pro', Georgia, serif;
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    color: #8ab4b8;
    letter-spacing: 0.15em;
    margin-bottom: 2rem;
  }

  .hero-divider {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, #607d8b, #00b4b4);
    margin-bottom: 2rem;
  }

  .hero-tagline {
    font-size: 1.05rem;
    font-weight: 300;
    color: rgba(220,230,235,0.8);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    font-style: italic;
  }

  /* ── BANNER ── */
  .banner {
    background: linear-gradient(135deg, #007a8a 0%, #004a55 100%);
    padding: 1.2rem 0;
    overflow: hidden;
    position: relative;
  }

  .banner-track {
    display: flex;
    gap: 4rem;
    animation: scroll 18s linear infinite;
    white-space: nowrap;
    width: max-content;
  }

  .banner-track span {
    font-family: 'Cinzel', 'Trajan Pro', Georgia, serif;
    font-size: 0.85rem;
    letter-spacing: 0.25em;
    color: #e8eaed;
    opacity: 0.9;
  }

  .banner-track .dot {
    color: #8ab4b8;
    font-size: 1.2rem;
    vertical-align: middle;
  }

  @keyframes scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
  }

  /* ── BRUNCH SECTION ── */
  .brunch {
    padding: 7rem 0;
    position: relative;
    background: #111820;
    overflow: hidden;
  }

  .brunch::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--teal), #607d8b, var(--teal));
  }

  .brunch-inner {
    max-width: 900px;
    margin: 0 auto;
    width: 90%;
    text-align: center;
  }

  .section-label {
    font-family: 'Cinzel', 'Trajan Pro', Georgia, serif;
    font-size: 0.7rem;
    letter-spacing: 0.45em;
    color: var(--teal);
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: block;
  }

  .section-title {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    color: #e8eaed;
    margin-bottom: 1.5rem;
  }

  .section-title em {
    color: #8ab4b8;
    font-style: italic;
  }

  .brunch-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 3.5rem 0;
  }

  .card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(138,180,184,0.25);
    border-radius: 6px;
    padding: 2.5rem 1.5rem;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
  }

  .card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--teal), #8ab4b8);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
  }

  .card:hover {
    transform: translateY(-6px);
    border-color: rgba(138,180,184,0.5);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  }

  .card:hover::before { transform: scaleX(1); }

  .card-icon {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    display: block;
  }

  .card-label {
    font-family: 'Cinzel', 'Trajan Pro', Georgia, serif;
    font-size: 0.65rem;
    letter-spacing: 0.35em;
    color: var(--teal);
    text-transform: uppercase;
    margin-bottom: 0.6rem;
  }

  .card-value {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #e8eaed;
    line-height: 1.3;
  }

  .card-sub {
    font-size: 0.85rem;
    color: rgba(180,200,210,0.6);
    margin-top: 0.4rem;
  }

  /* RSVP */
  .rsvp-box {
    background: linear-gradient(135deg, rgba(0,180,180,0.1) 0%, rgba(138,180,184,0.12) 100%);
    border: 1px solid rgba(138,180,184,0.35);
    border-radius: 8px;
    padding: 3rem 2.5rem;
    margin-top: 1rem;
  }

  .rsvp-box p {
    font-size: 1rem;
    color: rgba(220,230,235,0.75);
    margin-bottom: 1.5rem;
    line-height: 1.7;
  }

  .rsvp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, var(--teal), var(--dark-teal));
    color: #e8eaed;
    text-decoration: none;
    padding: 1rem 2.5rem;
    border-radius: 3px;
    font-family: 'Cinzel', 'Trajan Pro', Georgia, serif;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 20px rgba(0,180,180,0.3);
  }

  .rsvp-btn:hover {
    background: linear-gradient(135deg, #607d8b, #455a64);
    box-shadow: 0 6px 30px rgba(138,180,184,0.45);
    transform: translateY(-2px);
  }

  .map-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #8ab4b8;
    text-decoration: none;
    font-size: 0.9rem;
    margin-top: 1rem;
    transition: opacity 0.2s;
    font-style: italic;
  }

  .map-link:hover { opacity: 0.75; text-decoration: underline; }

  /* ── GALLERY ── */
  .gallery {
    padding: 7rem 0;
    background: var(--dark);
    position: relative;
  }

  .gallery::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #607d8b, var(--teal), #607d8b);
  }

  .gallery-inner {
    max-width: 1100px;
    margin: 0 auto;
    width: 90%;
  }

  .gallery-header {
    text-align: center;
    margin-bottom: 3.5rem;
  }

  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 220px 220px;
    gap: 12px;
  }

  .gallery-grid .g-item {
    overflow: hidden;
    border-radius: 4px;
    position: relative;
  }

  .gallery-grid .g-item.featured {
    grid-column: span 2;
    grid-row: span 2;
  }

  .gallery-grid .g-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: brightness(0.9) saturate(0.85);
  }

  .gallery-grid .g-item:hover img {
    transform: scale(1.06);
    filter: brightness(1) saturate(1);
  }

  .gallery-grid .g-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,180,180,0.15), rgba(138,180,184,0.12));
    opacity: 0;
    transition: opacity 0.4s;
  }

  .gallery-grid .g-item:hover::after { opacity: 1; }

  /* ── FOOTER ── */
  footer {
    background: #000;
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid rgba(138,180,184,0.25);
  }

  footer .footer-name {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: 1.5rem;
    color: #8ab4b8;
    margin-bottom: 0.5rem;
  }

  footer p {
    font-size: 0.8rem;
    color: rgba(253,248,240,0.3);
    letter-spacing: 0.1em;
  }

  /* ── RESPONSIVE ── */
  @media (max-width: 768px) {
    .hero-inner {
      grid-template-columns: 1fr;
      text-align: center;
      gap: 3rem;
      padding-top: 4rem;
    }
    .hero-photo-wrap { justify-content: center; }
    .photo-frame { width: 260px; height: 320px; }
    .hero-divider { margin: 0 auto 2rem; }
    .brunch-cards { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
    .gallery-grid .g-item.featured { grid-column: span 2; height: 280px; }
    .gallery-grid .g-item { height: 160px; }
  }

  /* ── MASONRY GALLERY ── */
  .masonry-grid {
    columns: 4;
    column-gap: 10px;
    -webkit-columns: 4;
    -moz-columns: 4;
  }
  .masonry-item {
    break-inside: avoid;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    display: block;
  }
  .masonry-item img {
    width: 100%;
    display: block;
    transition: transform 0.4s ease, filter 0.4s ease;
    filter: brightness(0.88) saturate(0.8);
  }
  .masonry-item:hover img {
    transform: scale(1.04);
    filter: brightness(1) saturate(1.1);
  }
  .masonry-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,180,180,0.18), rgba(212,168,67,0.12));
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
  }
  .masonry-item:hover::after { opacity: 1; }

  /* zoom icon overlay */
  .masonry-item .zoom-icon {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.3s ease;
    font-size: 2rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    pointer-events: none;
    z-index: 2;
  }
  .masonry-item:hover .zoom-icon { transform: translate(-50%, -50%) scale(1); }

  @media (max-width: 900px) { .masonry-grid { columns: 3; } }
  @media (max-width: 600px) { .masonry-grid { columns: 2; } }

  /* ── LIGHTBOX ── */
  .lightbox {
    display: none !important;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.93);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
  }
  .lightbox.active { display: flex !important; }
  @keyframes fadeIn { from{opacity:0} to{opacity:1} }
  .lb-img {
    max-width: 88vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 60px rgba(0,0,0,0.8);
    animation: zoomIn 0.25s ease;
  }
  @keyframes zoomIn { from{transform:scale(0.92)} to{transform:scale(1)} }
  .lb-close, .lb-prev, .lb-next {
    position: absolute;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    cursor: pointer;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
    font-size: 1.5rem;
    line-height: 1;
  }
  .lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(0,180,180,0.4); }
  .lb-close { top: 1.5rem; right: 1.5rem; width: 44px; height: 44px; font-size: 1.1rem; }
  .lb-prev  { left: 1.5rem;  top: 50%; transform: translateY(-50%); width: 52px; height: 52px; }
  .lb-next  { right: 1.5rem; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; }


  /* ── SCHOOL LOGO in hero ── */
  .school-logo-wrap {
    margin-top: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
  }
  .school-logo {
    width: 80px;
    opacity: 0.92;
    filter: drop-shadow(0 2px 8px rgba(0,180,180,0.4));
    transition: opacity 0.3s;
  }
  .school-logo:hover { opacity: 1; }
  .school-logo-text {
    font-family: 'Cinzel', 'Trajan Pro', Georgia, serif;
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    color: rgba(180,200,210,0.6);
    text-transform: uppercase;
    line-height: 1.6;
  }


  /* ── FROM JAHEEM MESSAGE ── */
  .message-section {
    padding: 7rem 0;
    background: var(--dark);
    position: relative;
  }

  .message-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #607d8b, var(--teal), #607d8b);
  }

  .message-inner {
    max-width: 780px;
    margin: 0 auto;
    width: 90%;
    text-align: center;
  }

  .grad-emoji {
    display: inline;
    color: var(--teal);
  }

  .message-body {
    text-align: left;
    margin-top: 3rem;
  }

  .message-body p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: rgba(220,230,235,0.82);
    margin-bottom: 1.5rem;
  }

  .message-body strong {
    color: #e2e8ec;
    font-weight: 600;
  }

  .message-highlight {
    background: linear-gradient(135deg, rgba(0,180,180,0.07), rgba(96,125,139,0.1));
    border-left: 3px solid var(--teal);
    border-radius: 0 6px 6px 0;
    padding: 2rem 2rem 2rem 2.5rem;
    margin: 2rem 0;
  }

  .message-highlight p {
    margin-bottom: 1rem;
    font-style: italic;
    color: rgba(220,230,235,0.88);
  }

  .message-highlight .highlight-close {
    margin-bottom: 0;
    font-weight: 500;
    color: #e2e8ec;
  }

  .gift-text {
    text-align: center;
    margin-top: 2.5rem !important;
    color: rgba(220,230,235,0.7) !important;
    font-size: 0.95rem !important;
  }

  .cashapp-wrap {
    text-align: center;
    margin: 1rem 0 1.5rem;
  }

  .cashapp-tag {
    display: inline-block;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--teal);
    background: rgba(0,180,180,0.08);
    border: 2px solid rgba(0,180,180,0.35);
    border-radius: 6px;
    padding: 0.6rem 2rem;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: all;
  }

  .cashapp-tag:hover {
    background: rgba(0,180,180,0.18);
    border-color: var(--teal);
    box-shadow: 0 0 20px rgba(0,180,180,0.25);
    transform: scale(1.03);
  }

  .closing-thanks {
    text-align: center;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.15rem !important;
    font-style: italic;
    color: rgba(220,230,235,0.75) !important;
    margin-top: 2rem !important;
  }