:root {
  --navy: #153155;
  --orange: #ee7501;
  --ivory: #faf9f6;
  --sand: #f1efe9;
  --ink: #202838;
  --muted: #667080;
  --border: #dedbd3;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Work Sans", Arial, sans-serif;
  --container: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
body.modal-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 500; line-height: 1.08; }
p { margin: 0; }
.container { width: min(calc(100% - 48px), var(--container)); margin-inline: auto; }
.container--narrow { max-width: 860px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.icon { width: 1em; height: 1em; flex: 0 0 auto; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: 88px; background: rgba(255,255,255,.96); transition: background .35s, border .35s, height .35s; }
.site-header.is-scrolled { background: rgba(21,49,85,.97); border-bottom: 4px solid var(--orange); height: 80px; color: #fff; backdrop-filter: blur(12px); }
.admin-bar .site-header { top: 32px; }
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.header-brand { width: 180px; color: var(--navy); font-family: var(--serif); font-style: italic; letter-spacing: .03em; transition: color .3s; }
.is-scrolled .header-brand { color: #fff; }
.primary-nav { flex: 1; }
.primary-nav ul { display: flex; justify-content: center; align-items: center; gap: clamp(22px, 3vw, 38px); margin: 0; padding: 0; list-style: none; }
.primary-nav a { color: rgba(21,49,85,.75); font-size: 13px; letter-spacing: .04em; transition: color .2s; }
.is-scrolled .primary-nav a { color: rgba(255,255,255,.9); }
.primary-nav a:hover, .primary-nav a:focus-visible { color: var(--orange); }
.header-actions { width: 260px; display: flex; align-items: center; justify-content: flex-end; gap: 13px; }
.header-socials, .header-crests { display: flex; align-items: center; gap: 9px; }
.header-socials a { display: grid; place-items: center; color: rgba(21,49,85,.72); transition: color .2s; }
.header-socials a:hover, .header-socials a:focus-visible { color: var(--orange); }
.header-socials .icon { width: 17px; height: 17px; }
.header-crests a { width: 31px; height: 31px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; transition: transform .2s; }
.header-crests a:hover, .header-crests a:focus-visible { transform: scale(1.12); }
.header-crests img { width: 100%; height: 100%; object-fit: contain; }
.header-logo { display: flex; justify-content: flex-end; }
.header-logo img { width: 130px; height: 56px; object-fit: contain; filter: brightness(0) saturate(100%) invert(18%) sepia(18%) saturate(2593%) hue-rotate(171deg) brightness(94%) contrast(90%); transition: filter .3s; }
.is-scrolled .header-logo img { filter: brightness(0) invert(1); }
.is-scrolled .header-socials a { color: rgba(255,255,255,.8); }
.is-scrolled .header-socials a:hover, .is-scrolled .header-socials a:focus-visible { color: var(--orange); }
.is-scrolled .header-crests img { filter: brightness(0) invert(1); }
.menu-toggle { display: none; border: 0; background: transparent; padding: 8px; cursor: pointer; }
.menu-toggle .icon { width: 24px; height: 24px; }

.hero { background: var(--navy); color: white; }
.hero-logo-band { min-height: 495px; padding: 118px 24px 58px; display: grid; place-items: center; background: #fff; }
.hero-logo-band img { width: min(520px, 82vw); max-height: 350px; object-fit: contain; }
.hero-body { position: relative; overflow: hidden; }
.hero-body::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(21,49,85,.84), rgba(21,49,85,.92)), var(--hero-image) center/cover; }
.hero-content { position: relative; padding-block: 78px 96px; text-align: center; }
.eyebrow { color: var(--orange); font-size: 10px; line-height: 1.5; font-weight: 500; letter-spacing: .34em; text-transform: uppercase; }
.eyebrow--muted { color: rgba(255,255,255,.55); }
.ornament { display: block; width: 96px; height: 1px; margin: 19px auto 0; background: rgba(21,49,85,.28); }
.ornament--light { background: rgba(255,255,255,.35); }
.hero h1 { margin-top: 23px; color: #fff; font-size: clamp(39px, 5vw, 57px); }
.hero h1 strong { display: block; margin-top: 5px; color: var(--orange); font-size: clamp(54px, 7vw, 84px); font-weight: 400; }
.hero-intro { max-width: 700px; margin: 30px auto 0; color: rgba(255,255,255,.72); font-size: 18px; }
.text-link { display: inline-flex; flex-direction: column; align-items: center; gap: 9px; margin-top: 38px; color: var(--orange); font-size: 11px; letter-spacing: .34em; text-transform: uppercase; }
.text-link span { width: 64px; height: 1px; background: var(--orange); transition: width .25s; }
.text-link:hover span { width: 96px; }
.mileage { max-width: 520px; margin: 64px auto 0; padding: 29px 10px; border-block: 1px solid rgba(255,255,255,.15); }
.mileage-number { margin: 10px 0 4px; color: #fff; font: italic 72px/1 var(--serif); }
.mileage-number small { margin-left: 9px; color: var(--orange); font-size: 24px; letter-spacing: .12em; }
.mileage > p:last-child { color: rgba(255,255,255,.5); font-size: 12px; letter-spacing: .03em; }

.section { padding-block: 126px; }
.section--ivory { background: var(--ivory); }
.section--navy { background: var(--navy); color: #fff; }
.section--sand { background: var(--sand); }
.section-heading { max-width: 720px; margin-inline: auto; text-align: center; }
.section-heading h2 { margin-top: 18px; color: var(--navy); font-size: clamp(38px, 5vw, 52px); font-style: italic; }
.section-heading > p:last-child { margin-top: 20px; color: var(--muted); font-size: 18px; }
.section-heading--dark h2 { color: #fff; }
.section-heading--dark > p:last-child { color: rgba(255,255,255,.62); }

.team-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 70px 40px; margin-top: 66px; }
.team-card { flex: 0 1 calc((100% - 80px) / 3); padding-top: 38px; border-top: 1px solid var(--border); text-align: center; }
.initials { width: 132px; height: 132px; display: grid; place-items: center; margin: 0 auto 26px; border: 1px solid rgba(21,49,85,.32); border-radius: 50%; color: var(--navy); font: italic 30px var(--serif); }
.initials--photo { overflow: hidden; background: #fff; }
.initials--photo .team-photo { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.team-card .eyebrow { font-size: 11px; letter-spacing: .28em; }
.team-card h3 { margin-top: 9px; color: var(--navy); font-size: clamp(28px, 2.35vw, 34px); }
.fraternity { margin-top: 6px; color: var(--muted); font-size: 15px; font-style: italic; }
.visions-block { margin-top: 136px; }
.vision-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 64px; }
.vision-card { padding: 42px 34px; border: 1px solid var(--border); background: #fff; text-align: center; transition: border-color .2s, transform .2s; }
.vision-card:hover { border-color: rgba(21,49,85,.5); transform: translateY(-3px); }
.vision-icon { width: 58px; height: 58px; display: grid; place-items: center; margin: auto; border: 1px solid rgba(21,49,85,.4); border-radius: 50%; color: var(--navy); }
.vision-icon .icon { width: 25px; height: 25px; }
.vision-card h3 { margin-top: 22px; color: var(--navy); font-size: 29px; font-style: italic; }
.vision-card .ornament { width: 65px; margin-top: 14px; }
.vision-card > div:last-child { margin-top: 17px; color: var(--muted); font-size: 16px; }
.vision-card > div:last-child p { margin: 0; }

.event-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 34px; margin-top: 46px; }
.event-filters button { position: relative; padding: 4px 0 9px; border: 0; background: transparent; color: rgba(255,255,255,.5); font-size: 11px; letter-spacing: .26em; text-transform: uppercase; cursor: pointer; }
.event-filters button:hover { color: #fff; }
.event-filters button.is-active { color: var(--orange); }
.event-filters button.is-active::after { content: ""; position: absolute; width: 28px; height: 1px; left: 50%; bottom: 0; background: var(--orange); transform: translateX(-50%); }
.event-list { max-width: 820px; margin: 52px auto 0; border-block: 1px solid rgba(255,255,255,.1); }
.event-row { display: grid; grid-template-columns: 62px minmax(0,1fr) auto; align-items: center; gap: 28px; padding: 23px 2px; border-bottom: 1px solid rgba(255,255,255,.1); }
.event-row:last-of-type { border-bottom: 0; }
.event-row[hidden] { display: none; }
.event-row time { text-align: center; line-height: 1; }
.event-row time strong { display: block; font: italic 34px var(--serif); }
.event-row time span { display: block; margin-top: 5px; color: var(--orange); font-size: 10px; letter-spacing: .25em; }
.event-main h3 { overflow: hidden; color: #fff; font-size: 23px; font-style: italic; text-overflow: ellipsis; white-space: nowrap; }
.event-main p { display: flex; align-items: center; gap: 7px; margin-top: 5px; color: rgba(255,255,255,.5); font-size: 12px; }
.event-category { padding: 5px 12px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; color: rgba(255,255,255,.8); font-size: 9px; letter-spacing: .2em; text-transform: uppercase; }
.event-category--highlight { border-color: rgba(238,117,1,.7); color: var(--orange); }
.event-empty { padding: 40px; color: rgba(255,255,255,.6); text-align: center; }
.event-load-more-wrap { display: flex; justify-content: center; margin-top: 30px; }
.event-load-more { padding: 12px 20px; border: 1px solid rgba(238,117,1,.7); background: transparent; color: var(--orange); font-size: 10px; letter-spacing: .24em; text-transform: uppercase; cursor: pointer; transition: background .2s, color .2s; }
.event-load-more:hover, .event-load-more:focus-visible { background: var(--orange); color: var(--navy); }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 35px; margin-top: 66px; }
.news-card { display: flex; flex-direction: column; align-items: flex-start; padding-top: 25px; border-top: 1px solid var(--border); }
.news-card .eyebrow { display: flex; align-items: center; gap: 8px; }
.news-card h3 { margin-top: 12px; color: var(--navy); font-size: 29px; font-style: italic; }
.news-card > p:not(.eyebrow) { margin-top: 13px; color: var(--muted); font-size: 16px; }
.news-open { margin-top: 18px; padding: 0; border: 0; background: none; color: rgba(21,49,85,.75); font-size: 10px; letter-spacing: .26em; text-transform: uppercase; cursor: pointer; }
.news-open:hover { color: var(--orange); }

.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-top: 58px; }
.gallery-card { position: relative; aspect-ratio: 1; overflow: hidden; padding: 0; border: 0; border-radius: 12px; background: linear-gradient(145deg,#283f5d,#14243c); color: #fff; cursor: pointer; transition: transform .25s, box-shadow .25s; }
.gallery-card:hover { transform: scale(1.02); box-shadow: 0 22px 45px -28px rgba(21,49,85,.8); }
.gallery-card.tone-2, .gallery-card.tone-5 { background: linear-gradient(145deg,#344961,#18283e); }
.gallery-card.tone-3, .gallery-card.tone-6 { background: linear-gradient(145deg,#756d5b,#39372f); }
.gallery-card::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(transparent 45%,rgba(12,28,49,.8)); }
.gallery-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery-card > span { position: absolute; z-index: 2; left: 17px; right: 17px; bottom: 16px; display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; text-align: left; }

.site-footer { padding-block: 82px 30px; background: var(--navy); color: #fff; text-align: center; }
.site-footer--compact { padding-block: 30px; color: rgba(255,255,255,.65); font-size: 13px; }
.footer-logo { display: block; padding: 42px; background: #fff; box-shadow: 0 22px 60px -18px rgba(0,0,0,.55); transition: transform .2s; }
.footer-logo:hover { transform: translateY(-3px); }
.footer-logo img { width: 210px; height: 210px; margin: auto; object-fit: contain; }
.footer-brand { margin-top: 28px; font: italic 23px var(--serif); }
.footer-description { max-width: 520px; margin: 22px auto 0; color: rgba(255,255,255,.72); }
.contact-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 32px; margin-top: 27px; color: rgba(255,255,255,.75); font-size: 14px; }
.contact-links a, .contact-links span { display: flex; align-items: center; gap: 8px; }
.contact-links a:hover { color: var(--orange); }
.footer-link-icons { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px; margin-top: 20px; }
.social-links { display: flex; justify-content: center; gap: 18px; color: rgba(255,255,255,.62); }
.social-links .icon { width: 19px; height: 19px; }
.social-links a:hover { color: var(--orange); }
.footer-crests { display: flex; align-items: center; gap: 12px; }
.footer-crests a { width: 34px; height: 34px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; transition: transform .2s; }
.footer-crests a:hover, .footer-crests a:focus-visible { transform: scale(1.12); }
.footer-crests img { width: 100%; height: 100%; object-fit: contain; filter: brightness(0) invert(1); }
.legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.52); font-size: 12px; }
.legal a:hover { color: var(--orange); }

.modal { width: min(680px, calc(100% - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; background: transparent; overflow: visible; }
.modal::backdrop { background: rgba(7,18,32,.78); backdrop-filter: blur(4px); }
.modal-card { position: relative; max-height: calc(100vh - 32px); padding: 42px; overflow-y: auto; background: #fff; color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.modal-card h3, .gallery-modal-caption h3 { margin-top: 8px; color: var(--navy); font-size: 34px; font-style: italic; }
.modal-lead { margin-top: 14px; color: var(--muted); font-size: 17px; }
.modal-content { margin-top: 22px; }
.modal-content p + p { margin-top: 1em; }
.modal-close { position: absolute; z-index: 4; top: 12px; right: 12px; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--navy); cursor: pointer; box-shadow: 0 4px 15px rgba(0,0,0,.15); }
.modal-close .icon { width: 19px; height: 19px; }
.gallery-modal { width: min(900px, calc(100% - 32px)); }
.gallery-modal-card { position: relative; min-height: 520px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; background: linear-gradient(145deg,#344961,#18283e); }
.gallery-modal-media { position: absolute; inset: 0; background-position: center; background-size: cover; }
.gallery-modal-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 35%,rgba(21,49,85,.85)); }
.gallery-modal-caption { position: relative; z-index: 2; padding: 42px; color: #fff; }
.gallery-modal-caption h3 { color: #fff; }
.scroll-top { position: fixed; z-index: 40; right: 24px; bottom: 24px; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(21,49,85,.3); border-radius: 50%; background: rgba(250,249,246,.88); color: var(--navy); opacity: 0; pointer-events: none; cursor: pointer; backdrop-filter: blur(8px); transition: opacity .2s, color .2s, border-color .2s; }
.scroll-top.is-visible { opacity: 1; pointer-events: auto; }
.scroll-top:hover { color: var(--orange); border-color: var(--orange); }

.standard-content { min-height: 70vh; padding: 150px 0 80px; }
.standard-content h1 { margin-bottom: 25px; color: var(--navy); font-size: 50px; }

@media (max-width: 900px) {
  .site-header, .site-header.is-scrolled { height: 72px; }
  .menu-toggle { display: grid; place-items: center; color: var(--navy); }
  .is-scrolled .menu-toggle { color: #fff; }
  .header-brand { display: none; }
  .header-actions { width: auto; margin-left: auto; gap: 9px; }
  .header-socials, .header-crests { gap: 7px; }
  .header-socials .icon { width: 16px; height: 16px; }
  .header-crests a { width: 27px; height: 27px; }
  .header-logo img { width: 112px; height: 48px; }
  .primary-nav { position: absolute; inset: 72px 0 auto; display: none; padding: 20px 24px 26px; background: #fff; color: var(--navy); border-top: 1px solid var(--border); }
  .is-scrolled .primary-nav { background: var(--navy); border-top-color: rgba(255,255,255,.12); }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; gap: 8px; }
  .primary-nav a { display: block; padding: 7px; }
  .team-card { flex-basis: calc((100% - 40px) / 2); }
  .vision-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .vision-card:last-child { grid-column: 1 / -1; max-width: 50%; justify-self: center; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { width: min(calc(100% - 32px), var(--container)); }
  .hero-logo-band { min-height: 390px; padding-top: 100px; }
  .hero-content { padding-block: 68px 78px; }
  .hero h1 { font-size: 35px; overflow-wrap: anywhere; }
  .hero h1 strong { font-size: 48px; }
  .hero-intro { font-size: 16px; }
  .mileage-number { font-size: 58px; }
  .section { padding-block: 88px; }
  .section-heading h2 { font-size: 38px; }
  .section-heading > p:last-child { font-size: 16px; }
  .team-grid { gap: 46px; }
  .team-card { flex-basis: 100%; }
  .vision-grid, .news-grid { grid-template-columns: 1fr; gap: 46px; }
  .initials { width: 116px; height: 116px; margin-bottom: 22px; font-size: 27px; }
  .team-card h3 { font-size: 30px; }
  .fraternity { font-size: 14px; }
  .vision-card:last-child { grid-column: auto; max-width: none; }
  .visions-block { margin-top: 100px; }
  .event-row { grid-template-columns: 52px minmax(0,1fr); gap: 17px; }
  .event-main h3 { font-size: 20px; }
  .event-category { grid-column: 2; justify-self: start; margin-top: -12px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-card > span { left: 11px; bottom: 11px; font-size: 10px; }
  .footer-logo { padding: 30px; }
  .footer-logo img { width: 170px; height: 170px; }
  .modal-card { padding: 36px 25px 28px; }
  .gallery-modal-card { min-height: 65vh; }
  .gallery-modal-caption { padding: 30px 24px; }
}

@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

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