:root {
  --navy: #04152f;
  --navy-2: #082952;
  --blue: #0c62ad;
  --sky: #e8f3fc;
  --white: #ffffff;
  --ink: #13243a;
  --muted: #5c6b7b;
  --gold: #d6ab4a;
  --line: rgba(7, 41, 81, .13);
  --shadow: 0 22px 70px rgba(4, 21, 47, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: "DM Sans", sans-serif; line-height: 1.7; }
body.menu-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 1000; padding: 10px 16px; background: white; color: var(--navy); border-radius: 6px; }
.skip-link:focus { top: 12px; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: 82px; padding: 0 clamp(20px, 5vw, 80px); display: flex; align-items: center; justify-content: space-between; transition: background .35s, box-shadow .35s, height .35s; }
.site-header.scrolled { height: 70px; background: rgba(4, 21, 47, .95); box-shadow: 0 8px 30px rgba(0,0,0,.15); backdrop-filter: blur(14px); }
.brand { display: block; width: 176px; height: 54px; overflow: hidden; }
.brand img { width: 100%; height: 100%; object-fit: contain; }
nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); }
nav a { position: relative; color: white; text-decoration: none; font-size: .9rem; font-weight: 600; }
nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; background: var(--gold); transition: right .25s; }
nav a:hover::after, nav a.active::after { right: 0; }
.menu-toggle { display: none; border: 0; background: transparent; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; height: 2px; margin: 6px 0; background: white; transition: transform .25s, opacity .25s; }

.hero { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; isolation: isolate; color: white; text-align: center; background: linear-gradient(115deg, rgba(3,18,42,.94), rgba(5,48,89,.75)), url("assets/hero-poster.jpg") center/cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(3,16,36,.12), rgba(3,16,36,.3) 65%, rgba(3,16,36,.95)); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .17; background-image: linear-gradient(rgba(255,255,255,.3) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.3) 1px, transparent 1px); background-size: 70px 70px; mask-image: linear-gradient(to bottom, transparent, black); }
.hero-orb { position: absolute; z-index: -1; border-radius: 50%; filter: blur(5px); background: rgba(30,130,213,.28); animation: drift 8s ease-in-out infinite alternate; }
.orb-one { width: 420px; height: 420px; left: -160px; top: 20%; }
.orb-two { width: 300px; height: 300px; right: -70px; bottom: 10%; animation-delay: -3s; }
.hero-content { width: min(940px, 90vw); padding: 110px 0 90px; animation: heroIn 1s ease both; }
.hero-logo { width: min(500px, 75vw); max-height: 245px; object-fit: contain; margin: 0 auto 20px; }
.eyebrow { margin: 0 0 14px; color: var(--gold); font-size: .76rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
h1, h2, h3 { font-family: "Playfair Display", serif; line-height: 1.08; }
h1 { margin: 0; font-size: clamp(3rem, 7.5vw, 6.8rem); letter-spacing: -.045em; }
h1 span { color: #d9eefe; }
.hero-copy { max-width: 760px; margin: 24px auto 0; color: rgba(255,255,255,.82); font-size: clamp(1rem, 2vw, 1.22rem); }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.button { display: inline-flex; min-height: 54px; align-items: center; justify-content: center; padding: 0 26px; border-radius: 4px; text-decoration: none; font-weight: 700; transition: transform .25s, background .25s, color .25s; }
.button:hover { transform: translateY(-3px); }
.button-primary { color: var(--navy); background: var(--gold); }
.button-ghost { border: 1px solid rgba(255,255,255,.4); color: white; }
.button-ghost:hover { background: white; color: var(--navy); }
.scroll-cue { position: absolute; bottom: 24px; display: grid; justify-items: center; gap: 5px; color: rgba(255,255,255,.7); font-size: .7rem; letter-spacing: .16em; text-decoration: none; text-transform: uppercase; }
.scroll-cue span { width: 1px; height: 26px; background: var(--gold); animation: pulseLine 1.6s infinite; }

.section { padding: clamp(80px, 10vw, 150px) clamp(20px, 7vw, 110px); }
.section-heading { max-width: 760px; margin-bottom: 60px; }
.section-heading.centered { margin-inline: auto; text-align: center; }
.section-heading h2, .vision h2, .contact h2 { margin: 0 0 18px; color: var(--navy); font-size: clamp(2.5rem, 5.5vw, 5rem); letter-spacing: -.035em; }
.section-heading > p:last-child { color: var(--muted); font-size: 1.08rem; }
.about { background: linear-gradient(130deg, #f6fafe, white 55%); }
.about-layout { display: grid; grid-template-columns: minmax(230px, .55fr) 1.45fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.about-panel { position: sticky; top: 110px; padding: 36px; color: white; background: var(--navy); box-shadow: var(--shadow); }
.panel-number { margin: 0; color: white; font-family: "Playfair Display", serif; font-size: 4.5rem; line-height: 1; }
.about-panel > p:nth-child(2) { color: var(--gold); letter-spacing: .08em; }
.gold-line { width: 60px; height: 2px; margin: 30px 0; background: var(--gold); }
.panel-quote { color: rgba(255,255,255,.72); font-size: 1.05rem; }
.long-copy { columns: 2; column-gap: clamp(30px, 5vw, 70px); }
.long-copy p { margin: 0 0 1.35em; break-inside: avoid; color: #46576a; }
.long-copy .lead { color: var(--navy); font-family: "Playfair Display", serif; font-size: 1.45rem; line-height: 1.5; }

.people-section { background: white; }
.people-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px; max-width: 1260px; margin: auto; }
.person-card { padding: clamp(28px, 4vw, 52px); border: 1px solid var(--line); background: #fbfdff; box-shadow: 0 18px 55px rgba(6,42,79,.07); transition: transform .35s, box-shadow .35s; }
.person-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.person-card.beneficiary { background: var(--sky); }
.photo-frame { position: relative; width: 150px; height: 150px; margin-bottom: 28px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; border: 3px solid white; outline: 1px solid rgba(214,171,74,.65); background: linear-gradient(145deg, var(--navy), var(--blue)); box-shadow: 0 12px 30px rgba(4,21,47,.18); }
.initials { color: white; font-family: "Playfair Display", serif; font-size: 2.6rem; }
.profile-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-action { position: absolute; inset: auto 0 0; z-index: 2; padding: 7px; color: white; background: rgba(4,21,47,.86); text-align: center; font-size: .72rem; cursor: pointer; transform: translateY(100%); transition: transform .25s; }
.photo-frame:hover .photo-action, .photo-frame:focus-within .photo-action { transform: translateY(0); }
.photo-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.person-role { margin: 0; color: var(--blue); font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.person-card h3 { margin: 6px 0 22px; color: var(--navy); font-size: 2.25rem; }
.person-copy p { color: #536477; }

.companies { color: white; background: var(--navy); }
.companies .section-heading h2 { color: white; }
.companies .section-heading > p:last-child { color: rgba(255,255,255,.62); }
.company-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,.13); }
.company-card { display: grid; grid-template-columns: 55px 1fr; gap: 18px; padding: 34px 24px; border-bottom: 1px solid rgba(255,255,255,.13); transition: background .3s, padding-left .3s; }
.company-card:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.13); }
.company-card:hover { padding-left: 36px; background: rgba(255,255,255,.055); }
.company-card > span { color: var(--gold); font-size: .8rem; letter-spacing: .12em; }
.company-card h3 { margin: 0 0 8px; font-size: clamp(1.35rem, 2.3vw, 2rem); }
.company-card p { margin: 0; color: rgba(255,255,255,.6); }

.vision { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(50px, 8vw, 130px); align-items: start; background: linear-gradient(120deg, white, #eef7fe); }
.vision-statement { position: sticky; top: 110px; }
.vision-intro { color: var(--blue); font-family: "Playfair Display", serif; font-size: 1.35rem; }
.vision-copy { padding-left: clamp(24px, 5vw, 70px); border-left: 1px solid var(--line); }
.vision-copy p { margin: 0 0 1.45em; color: #4c5e71; }
.vision-copy p:first-child::first-letter { float: left; margin: 8px 10px 0 0; color: var(--blue); font-family: "Playfair Display", serif; font-size: 4.5rem; line-height: .72; }

.contact { position: relative; overflow: hidden; padding: clamp(80px, 11vw, 150px) 20px; color: white; text-align: center; background: linear-gradient(120deg, #06234a, #0b5b9c); }
.contact::before { content: "RJL"; position: absolute; inset: 50% auto auto 50%; transform: translate(-50%,-54%); color: rgba(255,255,255,.035); font-family: "Playfair Display", serif; font-size: min(34vw, 450px); font-weight: 700; }
.contact-inner { position: relative; z-index: 1; max-width: 1000px; margin: auto; }
.contact h2 { color: white; }
.contact-inner > p:not(.eyebrow) { color: rgba(255,255,255,.7); }
.contact-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.contact-links a { min-width: 230px; padding: 18px 22px; border: 1px solid rgba(255,255,255,.25); text-decoration: none; font-weight: 600; transition: background .25s, color .25s, transform .25s; }
.contact-links a:hover { color: var(--navy); background: white; transform: translateY(-4px); }
.contact-links span { display: block; color: var(--gold); font-size: .65rem; letter-spacing: .15em; text-transform: uppercase; }

footer { padding: 36px 7vw; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 30px; color: #8fa3b8; background: #020d1e; font-size: .82rem; }
footer img { width: 150px; height: 48px; object-fit: contain; }
footer p:last-child { text-align: right; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .75s ease, transform .75s ease; }
.reveal.visible { opacity: 1; transform: none; }
@keyframes heroIn { from { opacity: 0; transform: translateY(25px); } to { opacity: 1; transform: none; } }
@keyframes drift { to { transform: translate(30px, -26px) scale(1.1); } }
@keyframes pulseLine { 0%,100% { transform: scaleY(.5); transform-origin: top; opacity: .5; } 50% { transform: scaleY(1); opacity: 1; } }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  nav { position: fixed; inset: 0; display: grid; align-content: center; justify-items: center; gap: 24px; background: rgba(4,21,47,.98); transform: translateX(100%); transition: transform .35s ease; }
  nav.open { transform: none; }
  nav a { font-family: "Playfair Display", serif; font-size: 2rem; }
  .menu-toggle { position: relative; z-index: 2; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .about-layout, .vision { grid-template-columns: 1fr; }
  .about-panel, .vision-statement { position: static; }
  .about-panel { max-width: 420px; }
  .long-copy { columns: 1; }
  .vision-copy { padding-left: 0; border-left: 0; }
  footer { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  footer p { margin: 0; }
  footer p:last-child { text-align: center; }
}

@media (max-width: 680px) {
  .site-header { height: 70px; padding-inline: 16px; }
  .brand { width: 140px; height: 44px; }
  .hero-content { padding-top: 90px; }
  .hero-logo { width: 83vw; margin-bottom: 12px; }
  h1 { font-size: clamp(2.8rem, 14vw, 4.3rem); }
  .section { padding-inline: 20px; }
  .section-heading { margin-bottom: 42px; }
  .people-grid, .company-grid { grid-template-columns: 1fr; }
  .company-card:nth-child(odd) { border-right: 0; }
  .person-card { padding: 28px 22px; }
  .photo-action { transform: none; }
  .contact-links { flex-direction: column; }
  .contact-links a { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
