:root {
  --ink: #1a2332;
  --ink-soft: #3d4a5c;
  --paper: #f7f4ef;
  --paper-alt: #ebe6dc;
  --accent: #0d5c63;
  --accent-deep: #094248;
  --gold: #b08d3e;
  --white: #fff;
  --line: rgba(26, 35, 50, 0.12);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --header-h: 5.25rem;
  --page-gutter: clamp(1.25rem, 4.5vw, 2.75rem);
  --page-max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  min-width: 0;
  overflow-x: hidden;
  overflow-x: clip;
  overflow-wrap: break-word;
}
img, video, svg { max-width: 100%; height: auto; display: block; }
iframe { max-width: 100%; }
a { color: var(--accent-deep); text-decoration: none; }
a:hover { color: var(--gold); }
.container {
  width: min(var(--page-max), calc(100% - 2 * var(--page-gutter)));
  margin-inline: auto;
  max-width: 100%;
}
main { min-width: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  max-width: 100%;
  background: rgba(247, 244, 239, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem 0;
  transition: padding .22s ease;
  min-width: 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: .85rem;
  color: inherit;
  flex: 0 1 auto;
  min-width: 0;
  height: 48px;
}
.brand:hover { color: inherit; }
.brand-mark {
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: var(--white);
  font-weight: 700; letter-spacing: .04em;
}
.brand-text { display: flex; flex-direction: column; justify-content: center; line-height: 1.2; min-width: 0; }
.brand-text strong {
  font-family: var(--font-display);
  font-size: clamp(.95rem, 3.4vw, 1.18rem);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-text small { color: var(--ink-soft); font-size: .78rem; }
.brand-text small sup {
  font-size: .65em;
  line-height: 0;
  vertical-align: super;
}
.site-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: .1rem;
  margin-left: auto;
  height: 48px;
}
.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 48px;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: .88rem;
  white-space: nowrap;
  padding: 0 .55rem;
  border-radius: 0;
}
.site-nav a.active { color: var(--accent); }
.site-nav a:hover { color: var(--accent); }
.site-nav a.active::after {
  content: "";
  position: absolute;
  left: .55rem;
  right: .55rem;
  bottom: .15rem;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
}
.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line);
  padding: .45rem .7rem;
  border-radius: .35rem;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

body.is-home .site-header {
  position: fixed;
  inset: 0 0 auto;
  background: transparent;
  border-bottom: 0;
  backdrop-filter: none;
  padding-top: env(safe-area-inset-top, 0px);
}
body.is-home .site-header::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 5.5rem;
  background: linear-gradient(180deg, rgba(6, 18, 24, .78) 0%, rgba(6, 18, 24, .28) 62%, transparent 100%);
  pointer-events: none;
  z-index: -1;
}
body.is-home .header-inner {
  padding: 1.5rem 0 1.1rem;
}
body.is-home .brand,
body.is-home .brand:hover { color: var(--white); }
body.is-home .brand-text small { color: rgba(255, 255, 255, .82); }
body.is-home .site-nav a { color: rgba(255, 255, 255, .92); }
body.is-home .site-nav a.active,
body.is-home .site-nav a:hover { color: var(--gold); background: transparent; }
body.is-home .site-nav a.active::after { background: var(--gold); }
body.is-home .nav-toggle {
  color: #fff;
  border-color: rgba(255, 255, 255, .45);
}
body.is-home .site-header.is-scrolled {
  background: rgba(8, 24, 30, .94);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: blur(14px);
}
body.is-home .site-header.is-scrolled::before { display: none; }
body.is-home .site-header.is-scrolled .header-inner {
  padding: .75rem 0;
}
body.is-home .flash {
  position: relative;
  z-index: 2;
  margin-top: calc(var(--header-h) + 1rem);
}

.brand-logo {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.12));
}
body.is-home .brand-logo {
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.45));
}

.hero-carousel {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  overflow: hidden;
  background: #0b3d4a;
  touch-action: pan-y;
}
.carousel-track { position: absolute; inset: 0; width: 100%; height: 100%; }
.carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .8s ease, visibility .8s ease;
  color: var(--white);
}
.carousel-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}
.carousel-media-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.carousel-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.carousel-media[hidden] { display: none !important; }
.carousel-slide.is-active .carousel-media {
  animation: kenburns 12s ease-out both;
}
@keyframes kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}
.carousel-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(90deg, rgba(8, 24, 30, .62) 0%, rgba(8, 24, 30, .28) 48%, rgba(8, 24, 30, .12) 100%),
    linear-gradient(180deg, rgba(8, 24, 30, .08) 0%, rgba(8, 24, 30, .5) 100%);
  pointer-events: none;
}
.carousel-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 4.5rem 0 5rem;
  padding-bottom: max(5rem, calc(env(safe-area-inset-bottom, 0px) + 4rem));
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}
.carousel-logo {
  width: clamp(56px, 14vw, 88px);
  height: clamp(56px, 14vw, 88px);
  margin-bottom: 1rem;
  display: block;
  animation: rise .8s ease both;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.35));
}
.identity-logo {
  flex-shrink: 0;
  display: block;
}
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 50%;
  background: rgba(8, 24, 30, .35);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  padding: 0;
}
.carousel-prev { left: max(0.65rem, env(safe-area-inset-left, 0px)); }
.carousel-next { right: max(0.65rem, env(safe-area-inset-right, 0px)); }
.carousel-nav:hover { background: rgba(176, 141, 62, .85); border-color: transparent; }
.carousel-dots {
  position: absolute;
  left: 0; right: 0;
  bottom: max(1.1rem, env(safe-area-inset-bottom, 0px));
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: .45rem;
}
.carousel-dot {
  width: .65rem;
  height: .65rem;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255,255,255,.45);
  cursor: pointer;
}
.carousel-dot.is-active { background: var(--gold); transform: scale(1.15); }

.identity-band {
  background: linear-gradient(90deg, #e8f0f0, var(--paper));
  border-bottom: 1px solid var(--line);
  padding: 2.5rem 0;
}
.identity-inner {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}
.identity-inner h2 {
  font-family: var(--font-display);
  margin: 0 0 .35rem;
  font-size: 1.6rem;
}
.identity-inner p { margin: 0; color: var(--ink-soft); max-width: 52ch; }

.hero {
  position: relative; min-height: 88vh;
  display: grid; align-items: end;
  background:
    linear-gradient(135deg, rgba(9,66,72,.88), rgba(26,35,50,.55)),
    radial-gradient(circle at 20% 20%, rgba(176,141,62,.35), transparent 45%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230d5c63' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(160deg, #0d5c63, #1a2332 70%);
  color: var(--white);
  overflow: hidden;
}
.hero-content { position: relative; z-index: 1; padding: 5rem 0 4rem; max-width: 42rem; }
.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 700; margin: 0 0 .5rem; letter-spacing: .01em;
  animation: rise .8s ease both;
  text-shadow: 0 2px 18px rgba(0,0,0,.45);
}
.hero-carousel h1,
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 1.9rem);
  font-weight: 500; margin: 0 0 1rem; max-width: 28ch;
  animation: rise .9s .1s ease both;
  text-shadow: 0 2px 14px rgba(0,0,0,.4);
}
.hero-lead { opacity: .9; margin: 0 0 1.75rem; max-width: 36ch; animation: rise 1s .15s ease both; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; animation: rise 1.1s .2s ease both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .7rem 1.2rem; border-radius: .3rem; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; transition: .2s ease;
}
.btn-primary { background: var(--gold); color: #1a1508; }
.btn-primary:hover { background: #c9a352; color: #1a1508; }
.btn-outline { border-color: rgba(255,255,255,.75); color: var(--white); background: rgba(8, 24, 30, .28); }
.btn-outline:hover { background: rgba(255,255,255,.14); color: var(--white); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }

.section { padding: 4rem 0; }
.section-alt { background: var(--paper-alt); }
.section-head { margin-bottom: 1.75rem; }
.section-head h2, .page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin: 0 0 .35rem; font-weight: 600;
}
.page-hero {
  padding: 3.5rem 0 2rem;
  background: linear-gradient(180deg, #e4ecec, var(--paper));
  border-bottom: 1px solid var(--line);
}
.muted { color: var(--ink-soft); }
.split { display: grid; gap: 2.5rem; }
.split > * { min-width: 0; }
@media (min-width: 860px) { .split { grid-template-columns: 1.2fr .8fr; } }

.people-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr));
}
.person { text-align: center; }
.person h3 { font-size: 1.05rem; margin: .75rem 0 .2rem; font-family: var(--font-display); }
.person-photo {
  width: 120px; height: 120px; margin: 0 auto; border-radius: 50%;
  overflow: hidden; background: #d7e2e2; display: grid; place-items: center;
  font-weight: 700; color: var(--accent); font-size: 1.4rem;
}
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.person-photo.large { width: 160px; height: 160px; margin: 0; }
.leader-hero { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }

.link-list, .cards-plain { display: grid; gap: 1rem; }
@media (min-width: 700px) {
  .link-list, .cards-plain { grid-template-columns: repeat(2, 1fr); }
}
.link-list a, .plain-link {
  display: block; padding: 1.1rem 0; border-bottom: 1px solid var(--line);
  color: inherit; transition: padding-left .2s ease, color .2s ease;
}
.link-list a:hover, .plain-link:hover { padding-left: .4rem; color: var(--accent); }
.plain-link h2 { font-family: var(--font-display); font-size: 1.35rem; margin: .2rem 0; }
.plain-link small { color: var(--gold); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: .72rem; }

.news-item, .event-item { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.news-item time, .event-item time { color: var(--ink-soft); font-size: .85rem; }
.news-item h3, .event-item h3, .news-item h2, .event-item h2 { margin: .2rem 0; font-family: var(--font-display); }
.text-link { display: inline-block; margin-top: 1rem; font-weight: 600; color: var(--accent); }
.section-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
}
.section-head-row .text-link { margin-top: 0; }
.teaser-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}
.teaser-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: inherit;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: .45rem;
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.teaser-card:hover {
  color: inherit;
  border-color: var(--gold);
  box-shadow: 0 10px 24px rgba(26, 35, 50, .08);
}
.teaser-card-media {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #d7e2e2;
}
.teaser-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #0d5c63, #1a2332);
  color: #fff;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .75rem;
}
.teaser-card-body {
  display: grid;
  gap: .35rem;
  padding: 1rem 1.05rem 1.15rem;
}
.teaser-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.22rem;
  margin: 0;
  line-height: 1.25;
}
.teaser-card-body p { margin: 0; color: var(--ink-soft); font-size: .92rem; }
.teaser-card-body time,
.teaser-card-body small {
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .72rem;
}

.prose { max-width: 68ch; min-width: 0; }
.belief-list { display: grid; gap: 1.5rem; }
.belief { display: grid; grid-template-columns: auto 1fr; gap: 1rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.belief-num {
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 700;
}
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: .85rem 0; border-bottom: 1px solid var(--line); display: grid; gap: .15rem; }
.timeline .current em { color: var(--accent); font-style: normal; font-weight: 600; }
.timeline .former em { color: var(--ink-soft); font-style: normal; }
.badge { display: inline-block; padding: .2rem .55rem; background: #dce9e9; border-radius: .25rem; font-size: .8rem; }

.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.filters a {
  padding: .35rem .75rem; border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink-soft); font-size: .9rem;
}
.filters a.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.form { display: grid; gap: .55rem; }
.form label { font-weight: 600; font-size: .9rem; margin-top: .4rem; }
.form input, .form textarea, .form select {
  width: 100%; padding: .7rem .8rem; border: 1px solid var(--line);
  border-radius: .3rem; background: #fff; font: inherit;
}
.form input[type="checkbox"],
.form input[type="radio"] {
  width: auto;
  padding: 0;
}
.form input[type="file"] {
  width: 100%;
  padding: .4rem 0;
  border: 0;
  background: transparent;
}
.cover-img { width: 100%; max-width: 100%; height: auto; max-height: min(420px, 55vh); object-fit: cover; border-radius: .4rem; margin: 0 0 1.25rem; }
.media-embed { position: relative; padding-bottom: 56.25%; height: 0; margin: 1.25rem 0; }
.media-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: .35rem; }
.gallery-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr));
  margin-top: 1.5rem;
}
.gallery-item {
  display: block;
  color: inherit;
  min-width: 0;
}
.gallery-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: .35rem;
}
.gallery-item span { display: block; margin-top: .35rem; font-size: .85rem; color: var(--ink-soft); }
.form-grid { display: grid; gap: 1rem; }
@media (min-width: 700px) { .form-grid { grid-template-columns: 1fr 1fr; } }

.site-footer { background: var(--ink); color: #d7dde6; padding: 3rem 0 1.5rem; margin-top: 2rem; }
.footer-grid { display: grid; gap: 1.5rem; min-width: 0; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer a { color: #d7dde6; display: block; margin: .25rem 0; }
.footer-copy { margin-top: 2rem; opacity: .7; border-top: 1px solid rgba(255,255,255,.1); padding-top: 1rem; }
.flash { margin: 1rem auto; padding: .85rem 1rem; border-radius: .3rem; }
.flash-success { background: #e5f4ea; color: #1d5c34; }
.flash-error { background: #fde8e6; color: #8a2a22; }
.page-subnav { display: flex; flex-wrap: wrap; gap: 1rem; padding: 1.5rem 0 3rem; }
.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.data-table { width: 100%; min-width: 28rem; border-collapse: collapse; }
.data-table th, .data-table td { text-align: left; padding: .7rem; border-bottom: 1px solid var(--line); }

@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: auto;
    background: var(--paper);
    padding: .85rem var(--page-gutter) 1.15rem;
    padding-left: max(var(--page-gutter), env(safe-area-inset-left, 0px));
    padding-right: max(var(--page-gutter), env(safe-area-inset-right, 0px));
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: .1rem;
    box-shadow: 0 12px 24px rgba(0,0,0,.08);
    z-index: 60;
  }
  .site-nav a { height: auto; padding: .7rem .35rem; }
  .site-nav a.active::after { display: none; }
  .site-nav.open { display: flex; }
  body.is-home .site-nav {
    background: #13202b;
    border-bottom-color: transparent;
  }
  body.is-home .site-nav a { color: #d7dee6; }
  body.is-home .site-nav a.active,
  body.is-home .site-nav a:hover { color: var(--gold); }
  .hero { min-height: 78vh; }
}

@media (max-width: 860px) {
  .identity-inner { flex-direction: column; text-align: center; }
  .identity-logo { margin-inline: auto; }
  .section { padding: 3rem 0; }
  .page-hero { padding: 2.5rem 0 1.5rem; }
  .carousel-content { padding-top: 5.5rem; }
}

@media (max-width: 700px) {
  :root { --header-h: 4.5rem; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 12rem; }
  .carousel-nav {
    width: 2.35rem;
    height: 2.35rem;
    font-size: 1.35rem;
  }
  .hero-carousel h1,
  .hero h1 { max-width: none; }
  .carousel-slide.is-active .carousel-media { animation: none; }
  .person-photo.large { width: 132px; height: 132px; }
  .form input, .form textarea, .form select { font-size: 1rem; }
}

@media (max-width: 480px) {
  .brand { gap: .55rem; }
  .brand-text small { display: none; }
  .carousel-content { padding: 4.25rem 0 4.5rem; }
  .hero-actions .btn { flex-basis: 100%; }
  .section { padding: 2.4rem 0; }
  .site-footer { padding: 2.25rem 0 1.25rem; }
}

@media (max-height: 520px) and (orientation: landscape) {
  .carousel-content { padding: 4.25rem 0 2.75rem; }
  .carousel-dots { bottom: .7rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .carousel-slide.is-active .carousel-media,
  .hero-brand, .hero-carousel h1, .hero h1, .hero-lead, .hero-actions, .carousel-logo {
    animation: none;
  }
}
