:root {
  color-scheme: light;
  --ink: #142b38;
  --ink-soft: #4e6067;
  --deep: #102b39;
  --deepest: #0a222f;
  --paper: #f4f7f6;
  --white: #fff;
  --gold: #edbc74;
  --gold-light: #f6d7a9;
  --line: #d7e0df;
  --max: 1360px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-size: 1rem; line-height: 1.65; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid #ca6c4b; outline-offset: 4px; }
.wrap { width: min(calc(100% - 88px), var(--max)); margin-inline: auto; }
.skip-link { position: absolute; left: 1rem; top: -6rem; background: white; padding: .7rem 1rem; z-index: 20; }
.skip-link:focus { top: 1rem; }

.site-header { position: sticky; top: 0; z-index: 10; background: var(--deep); color: white; border-bottom: 1px solid rgba(255,255,255,.13); }
#main, #home, #about, #activities, #moments, #contact { scroll-margin-top: 90px; }
.header-inner { min-height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; }
.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; line-height: 1; }
.brand-text { display: grid; gap: .38rem; }
.brand strong { font-size: 1.16rem; letter-spacing: .08em; font-weight: 800; }
.brand small { font-size: .65rem; letter-spacing: .22em; font-weight: 700; color: var(--gold); }
.brand-mark { position: relative; width: 37px; height: 36px; display: inline-block; flex: none; }
.brand-mark span { position: absolute; width: 19px; height: 19px; border: 3px solid var(--gold); border-radius: 50%; }
.brand-mark span:nth-child(1) { left: 0; top: 0; }
.brand-mark span:nth-child(2) { right: 0; top: 0; }
.brand-mark span:nth-child(3) { left: 9px; bottom: 0; }
.primary-nav { display: flex; align-items: center; gap: clamp(.8rem, 1.8vw, 1.8rem); margin-left: auto; }
.primary-nav a { text-decoration: none; font-weight: 700; font-size: .9rem; color: rgba(255,255,255,.87); transition: color .2s; }
.primary-nav a:hover { color: var(--gold); }
.primary-nav a[aria-current="location"]:not(.nav-contact) { color: var(--gold); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 10px; }
.primary-nav .nav-contact { color: var(--deep); background: var(--gold); padding: .68rem 1.15rem; border-radius: 3px; }
.primary-nav .nav-contact:hover { color: var(--deep); background: var(--gold-light); }
.primary-nav .nav-contact[aria-current="location"] { box-shadow: inset 0 -4px 0 #b16d45; }
.header-actions { display: flex; align-items: center; gap: .7rem; flex: none; }
.language-picker { position: relative; }
.language-picker summary { display: inline-flex; align-items: center; justify-content: center; gap: .52rem; min-height: 44px; min-width: 128px; padding: .48rem .7rem; border: 1px solid rgba(255,255,255,.36); border-radius: 3px; cursor: pointer; list-style: none; font-weight: 700; font-size: .87rem; white-space: nowrap; }
.language-picker summary::-webkit-details-marker { display: none; }
.language-picker summary:hover, .language-picker[open] summary { border-color: var(--gold); }
.active-flag, .language-options button span { font-size: 1.25rem; line-height: 1; }
.language-chevron { width: 7px; height: 7px; margin: -3px 0 0 .2rem; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(45deg); }
.language-picker[open] .language-chevron { transform: rotate(225deg); margin-top: 4px; }
.language-options { position: absolute; top: calc(100% + .6rem); right: 0; width: 193px; padding: .4rem; background: white; color: var(--ink); border-radius: 4px; box-shadow: 0 18px 40px rgba(4,18,26,.25); z-index: 12; }
.language-options button { display: flex; align-items: center; gap: .7rem; width: 100%; padding: .68rem .65rem; color: var(--ink); background: transparent; border: 0; border-radius: 3px; text-align: left; font-size: .91rem; cursor: pointer; }
.language-options button:hover, .language-options button[aria-pressed="true"] { background: #e8f0f0; }
.language-options button[aria-pressed="true"] { font-weight: 800; }
.menu-toggle { display: none; background: none; color: white; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 25px; height: 2px; background: currentColor; margin: 5px 0; }

.hero { background: var(--deep); color: white; position: relative; overflow: hidden; }
.hero-decoration { position: absolute; inset: 0; pointer-events: none; opacity: .25; background: radial-gradient(circle at 10% 90%, #366781, transparent 31%), radial-gradient(circle at 76% 10%, #345366, transparent 42%); }
.hero-inner { position: relative; display: grid; grid-template-columns: .92fr 1.08fr; align-items: center; min-height: 600px; gap: clamp(2rem, 4vw, 4rem); }
.hero-copy { padding: 4.5rem 0 4.7rem; }
.eyebrow { display: flex; align-items: center; gap: .72rem; color: #9b583d; font-size: .73rem; font-weight: 800; letter-spacing: .17em; line-height: 1.4; margin: 0 0 1.15rem; }
.eyebrow-line { display: inline-block; width: 28px; height: 2px; background: currentColor; flex: none; }
.eyebrow-light { color: var(--gold); }
h1, h2, h3, p, figure { margin-top: 0; }
h1, h2, h3 { line-height: 1.12; }
h1 { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(4.2rem, 7.8vw, 8rem); letter-spacing: -.06em; font-weight: 400; margin-bottom: 1.3rem; }
h1 em { color: var(--gold); font-weight: 400; }
.hero-description { max-width: 530px; font-size: clamp(1.08rem, 1.7vw, 1.3rem); line-height: 1.56; color: #e2e9ea; margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.65rem; }
.button { display: inline-flex; align-items: center; justify-content: center; text-align: center; padding: .86rem 1.45rem; min-height: 51px; border-radius: 3px; text-decoration: none; font-size: .93rem; font-weight: 800; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-gold { color: var(--deepest); background: var(--gold); }
.button-gold:hover { background: var(--gold-light); }
.text-link { text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px; font-size: .94rem; font-weight: 700; white-space: nowrap; }
.text-link-light { color: white; }
.text-link:hover, .inline-link:hover { color: var(--gold); }
.hero-note { margin-top: 2.5rem; display: flex; align-items: center; gap: .6rem; font-size: .9rem; color: #cddadd; }
.hero-note strong { color: white; }
.note-symbol { color: var(--gold); font-size: 1.2rem; }
.hero-visual { margin: 0; height: 490px; align-self: end; position: relative; overflow: hidden; border-radius: 145px 4px 0 0; background: #294552; }
.hero-visual::after { content: ''; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgba(7,27,37,.72)); pointer-events: none; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center 64%; transform: scale(1.12); }
.hero-visual figcaption { position: absolute; z-index: 1; bottom: 22px; left: 26px; color: white; font-size: .84rem; letter-spacing: .02em; display: flex; align-items: center; gap: .6rem; }
.caption-dot { width: 7px; height: 7px; background: var(--gold); border-radius: 50%; }

.section-space { padding-block: clamp(3.5rem, 5vw, 5.5rem); }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
h2 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-size: clamp(2.6rem, 4.2vw, 4.6rem); letter-spacing: -.045em; }
.intro h2 { max-width: 660px; font-size: clamp(2.5rem, 3.5vw, 3.85rem); margin-bottom: 0; }
.intro h2 span { color: #60787d; }
.intro-body { max-width: 610px; }
.intro-body p { color: var(--ink-soft); margin-bottom: 1.2rem; }
.intro-body .lead { color: var(--ink); font-size: 1.2rem; line-height: 1.5; }
.inline-link { display: inline-block; margin-top: .8rem; color: #9b583d; font-weight: 800; text-decoration-thickness: 1px; text-underline-offset: 5px; }

.feature { display: grid; grid-template-columns: 1fr 1fr; min-height: 600px; background: #1e4856; color: white; }
.feature-image { position: relative; min-height: 0; overflow: hidden; }
.feature-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 43%; }
.feature-content { display: flex; align-items: center; padding: 3.5rem max(44px, calc((100vw - var(--max))/2)) 3.5rem clamp(3rem, 6vw, 6rem); }
.feature-content-inner { max-width: 580px; }
.feature h2 { font-size: clamp(2.4rem, 3.15vw, 3.8rem); margin-bottom: 1.35rem; }
.feature p:not(.eyebrow) { color: #dce8e9; font-size: 1.03rem; max-width: 530px; margin-bottom: 1.65rem; }

.activities { background: white; }
.activities-header, .moments-heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 2.15rem; }
.activities h2, .moments h2 { margin-bottom: 0; }
.activities-header > p, .moments-heading > p { max-width: 365px; color: var(--ink-soft); margin: 0 0 .3rem; }
.activity-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; padding: 1px; background: var(--line); }
.activity-card { padding: 1.7rem 2rem 1.8rem; background: white; }
.activity-card::before { content: ''; display: block; width: 30px; height: 2px; background: #b67050; margin-bottom: 1.15rem; }
.activity-card h3 { font-size: 1.3rem; line-height: 1.25; margin-bottom: .5rem; }
.activity-card p { max-width: 510px; color: var(--ink-soft); line-height: 1.55; margin: 0; }
.member-note { display: flex; gap: 1.4rem; align-items: baseline; padding: 1.45rem 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.member-note strong { color: var(--ink); flex: none; }
.culture-note { display: flex; align-items: center; gap: .8rem; border-bottom: 1px solid var(--line); padding: 1.4rem 0 0; }
.culture-symbol { font-size: 1.9rem; color: #b67050; }
.culture-note p { margin-bottom: 1.25rem; color: var(--ink-soft); }
.culture-note strong { color: var(--ink); }

.moments { background: var(--paper); }
.gallery { display: grid; grid-template-columns: repeat(3,1fr); grid-auto-rows: clamp(200px, 22vw, 280px); gap: 8px; }
.gallery-item { position: relative; display: block; border: 0; padding: 0; overflow: hidden; background: #d4dede; cursor: zoom-in; text-align: left; }
.gallery-item-wide { grid-column: span 2; }
.gallery-item-portrait { grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.045); }
.gallery-item-portrait img { object-position: center 43%; transform: scale(1.14); }
.gallery-item-portrait:hover img { transform: scale(1.19); }
.gallery-overlay { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: center; padding: 2.6rem 1.2rem .9rem; background: linear-gradient(transparent, rgba(5,24,32,.75)); color: white; font-weight: 700; font-size: .91rem; }
.gallery-item:focus-visible { z-index: 1; }

.contact { color: white; background: #173846; padding-block: clamp(3.5rem, 5vw, 5.5rem); }
.contact-inner { display: flex; justify-content: space-between; align-items: end; gap: 3rem; }
.contact h2 { font-size: clamp(2.8rem, 4.7vw, 5.2rem); margin-bottom: 1.1rem; }
.contact p:not(.eyebrow) { color: #d5e1e3; max-width: 570px; margin-bottom: 0; }
.contact-action { display: flex; flex-direction: column; align-items: flex-start; gap: .85rem; flex: none; }
.contact-action span { color: #d5e1e3; font-size: .89rem; }
.contact-action .button-gold span { color: inherit; font-size: inherit; }
.site-footer { background: var(--deepest); color: white; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; min-height: 112px; }
.footer-brand { display: flex; flex-direction: column; gap: .15rem; }
.footer-brand strong { letter-spacing: .09em; font-size: 1rem; }
.footer-brand span { font-size: .84rem; color: #b7c8cd; }
.footer-inner a { color: #e5eeee; text-decoration: none; font-weight: 700; font-size: .87rem; }
.footer-inner a:hover { color: var(--gold); }

.photo-dialog { border: 0; padding: 1.1rem; max-width: min(93vw, 1200px); max-height: 94vh; background: var(--deepest); color: white; box-shadow: 0 24px 75px rgba(0,0,0,.35); }
.photo-dialog::backdrop { background: rgba(4,17,23,.87); }
.photo-dialog img { max-height: calc(90vh - 88px); width: auto; height: auto; margin: auto; object-fit: contain; }
.photo-dialog-caption { margin: .7rem 2.7rem 0 .2rem; font-size: .9rem; }
.photo-dialog-close { position: absolute; right: .25rem; top: .15rem; width: 42px; height: 42px; background: var(--gold); color: var(--deep); border: 0; border-radius: 50%; font-size: 1.8rem; line-height: 1; cursor: pointer; }

@media (max-width: 1050px) {
  .wrap { width: min(calc(100% - 56px), var(--max)); }
  .hero-inner { min-height: 550px; }
  .hero-visual { height: 460px; }
}

@media (max-width: 1120px) {
  .menu-toggle { display: block; }
  .header-actions { margin-left: auto; }
  .primary-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; margin-left: 0; background: var(--deep); padding: .4rem 19px 1.2rem; border-top: 1px solid rgba(255,255,255,.18); box-shadow: 0 17px 30px rgba(5,24,32,.25); }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: .75rem .35rem; }
  .primary-nav .nav-contact { text-align: center; margin-top: .5rem; }
}

@media (max-width: 760px) {
  #main, #home, #about, #activities, #moments, #contact { scroll-margin-top: 75px; }
  .wrap { width: min(calc(100% - 38px), var(--max)); }
  .header-inner { min-height: 75px; }
  .brand strong { font-size: 1rem; }
  .hero-inner { display: flex; flex-direction: column; gap: 0; align-items: stretch; }
  .hero-copy { padding: 3.4rem 0 2.6rem; }
  h1 { font-size: clamp(4.2rem, 15vw, 6.6rem); }
  .hero-note { margin-top: 2.5rem; }
  .hero-visual { height: clamp(310px, 64vw, 490px); width: 100%; border-radius: 95px 4px 0 0; }
  .intro-grid { grid-template-columns: 1fr; gap: 1rem; }
  .intro-body { padding-top: 0; }
  .feature { grid-template-columns: 1fr; }
  .feature-image { min-height: 0; height: 450px; }
  .feature-content { padding: 3rem 19px; }
  .activities-header, .moments-heading { display: block; margin-bottom: 2rem; }
  .activities-header > p, .moments-heading > p { margin-top: 1rem; }
  .contact-inner { display: block; }
  .contact-action { margin-top: 2rem; }
  .gallery { grid-template-columns: repeat(2,1fr); grid-auto-rows: 210px; gap: 8px; }
  .gallery-item-portrait { grid-row: span 2; }
  .gallery-item-wide { grid-column: span 2; }
}

@media (max-width: 520px) {
  .brand strong { font-size: .9rem; }
  .brand small { font-size: .58rem; }
  .brand-mark { transform: scale(.86); transform-origin: left center; margin-right: -.35rem; }
  .header-actions { gap: .22rem; }
  .language-picker summary { min-width: 52px; padding-inline: .45rem; }
  .active-language { display: none; }
  .eyebrow { font-size: .68rem; }
  .hero-description { font-size: 1.06rem; }
  .hero-actions { gap: 1.25rem; }
  .hero-visual { height: 315px; }
  .hero-visual figcaption { left: 15px; bottom: 14px; }
  .section-space { padding-block: 3.25rem; }
  .intro-body .lead { font-size: 1.21rem; }
  .feature-image { height: 375px; }
  .activity-grid { grid-template-columns: 1fr; }
  .activity-card { padding: 1.55rem 1.35rem; }
  .activity-card::before { margin-bottom: 1rem; }
  .member-note { display: block; }
  .member-note strong { display: block; margin-bottom: .35rem; }
  .culture-note { align-items: flex-start; }
  .culture-note p { margin-top: .3rem; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 145px; }
  .gallery-item-wide { grid-column: span 2; grid-row: span 2; }
  .gallery-item-portrait { grid-row: span 2; }
  .gallery-overlay { font-size: .76rem; padding: 2rem .55rem .45rem; }
  .footer-inner { display: block; padding-block: 2rem; }
  .footer-inner a { display: inline-block; margin-top: 1.2rem; }
}

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