:root {
  --bg: #f5efe6;
  --surface: #fffaf4;
  --surface-2: #f0e4d7;
  --text: #2e2622;
  --muted: #63554b;
  --line: rgba(87, 54, 32, 0.14);
  --corten: #9c5629;
  --corten-dark: #5e3118;
  --cream: #fff7ef;
  --shadow: 0 20px 50px rgba(49, 28, 14, 0.12);
  --radius: 26px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

.hero {
  position: relative;
  min-height: 100svh;
  color: #fffaf2;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(22, 10, 5, 0.88) 0%, rgba(22, 10, 5, 0.80) 34%, rgba(22, 10, 5, 0.45) 58%, rgba(22, 10, 5, 0.20) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.18), rgba(0,0,0,0.45));
}
.topbar,
.hero__content {
  position: relative;
  z-index: 2;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-top: 22px;
}
.topbar__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.crest-wrap {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  background: rgba(255,255,255,0.92);
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
  padding: 7px;
}
.crest-wrap--large {
  width: 88px;
  height: 88px;
  border-radius: 22px;
}
.crest {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: saturate(1.08) contrast(1.04);
}
.topbar__eyebrow,
.topbar__title {
  margin: 0;
}
.topbar__eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #f2d6b4;
  font-weight: 800;
}
.topbar__title {
  font-size: 1.02rem;
  font-weight: 700;
}
.topbar__link {
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  font-weight: 700;
}
.topbar__link:hover { background: rgba(255,255,255,0.15); }
.hero__content {
  padding: 90px 0 76px;
  max-width: 760px;
}
.eyebrow,
.section-mini {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.79rem;
  font-weight: 800;
}
.eyebrow { color: #f5d4ad; }
.section-mini { color: var(--corten); }
.section-mini--light { color: #ffe2bf; }
h1, h2, h3 {
  font-family: 'Cormorant Garamond', serif;
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.hero h1 {
  font-size: clamp(3.3rem, 8vw, 7rem);
  margin: 0;
  text-shadow: 0 4px 16px rgba(0,0,0,0.30);
}
.subtitle {
  margin: 12px 0 18px;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.7rem, 3.2vw, 2.7rem);
  color: #f4c187;
}
.lead {
  margin: 0;
  font-size: 1.12rem;
  max-width: 680px;
  color: rgba(255, 250, 243, 0.96);
  text-shadow: 0 2px 10px rgba(0,0,0,0.28);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: 0.18s ease;
}
.btn--primary {
  background: var(--corten);
  color: white;
  box-shadow: 0 8px 24px rgba(83, 44, 21, 0.3);
}
.btn--primary:hover { transform: translateY(-1px); background: #aa6332; }
.btn--ghost {
  color: white;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.30);
  backdrop-filter: blur(7px);
}
.btn--ghost:hover { background: rgba(255,255,255,0.15); }
.btn--secondary {
  background: var(--corten-dark);
  color: white;
  margin-top: 8px;
}
.btn--secondary:hover { background: #733c1d; }

.intro {
  padding: 72px 0 32px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 24px;
}
.story-card,
.info-card,
.gallery-card,
.institution-card,
.closing__box {
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.story-card {
  padding: 34px;
}
.story-card--accent {
  background: linear-gradient(180deg, rgba(255,250,244,0.98), rgba(247,236,226,0.98));
  border: 1px solid rgba(156,86,41,0.18);
}
.story-card h2,
.section-head h2,
.institution-card h2,
.closing h2 {
  margin: 0 0 14px;
  font-size: clamp(2.25rem, 5vw, 3.45rem);
  color: var(--corten-dark);
}
.story-card p,
.info-card p,
.section-head p,
.institution-card p,
.closing p { margin: 0; color: var(--muted); }
.story-grid {
  display: grid;
  gap: 24px;
}
.info-card {
  padding: 28px;
  border: 1px solid rgba(255,255,255,0.75);
}
.info-card__icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--corten), var(--corten-dark));
  color: white;
  font-size: 1.35rem;
  margin-bottom: 16px;
}
.info-card h3 {
  margin: 0 0 10px;
  font-size: 2rem;
  color: var(--corten-dark);
}
.quote-band {
  margin: 22px 0 10px;
  background: linear-gradient(90deg, rgba(156,86,41,0.98), rgba(95,49,24,0.98));
}
.quote-band .container { padding: 22px 0; }
.quote-band p {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  line-height: 1.2;
  color: #fff8ef;
}
.gallery-section { padding: 62px 0; }
.section-head {
  max-width: 760px;
  margin-bottom: 28px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.gallery-card {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.75);
}
.gallery-card--hero { grid-column: span 2; }
.gallery-open {
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.gallery-card img {
  width: 100%;
  height: 290px;
  object-fit: cover;
  transition: transform 0.28s ease;
}
.gallery-card--hero img { height: 420px; }
.gallery-card:hover img { transform: scale(1.03); }
.gallery-card figcaption {
  padding: 13px 16px 16px;
  font-weight: 700;
  color: var(--corten-dark);
  border-top: 1px solid var(--line);
}
.institutions {
  padding: 10px 0 24px;
}
.institutions__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.institution-card {
  padding: 30px;
}
.institution-card__head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 12px;
}
.carlone-logo {
  margin-top: 18px;
  max-width: 260px;
}
.participants {
  padding: 72px 0;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.07), transparent 35%),
    linear-gradient(180deg, #4a2815, #6d3c20 55%, #7e4a28 100%);
  color: #fff8f0;
}
.section-head--light h2,
.section-head--light p { color: #fff8f0; }
.participants__tools {
  display: flex;
  gap: 18px;
  align-items: end;
  flex-wrap: wrap;
  margin: 26px 0 24px;
}
.count-badge {
  min-width: 145px;
  padding: 18px 16px;
  border-radius: 22px;
  background: rgba(255,250,244,0.97);
  color: var(--corten-dark);
  box-shadow: var(--shadow);
  text-align: center;
}
.count-badge span {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  line-height: 1;
}
.count-badge small { font-weight: 800; }
.search-wrap {
  display: grid;
  gap: 8px;
  min-width: min(520px, 100%);
  flex: 1;
  font-weight: 700;
}
.search-wrap input {
  width: 100%;
  padding: 15px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.12);
  color: white;
  font-size: 1rem;
  outline: none;
}
.search-wrap input::placeholder { color: rgba(255,255,255,0.72); }
.participants__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.letter-group {
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 18px;
  padding: 18px;
  backdrop-filter: blur(6px);
}
.letter-group h3 {
  margin: 0 0 10px;
  font-size: 2rem;
  color: #ffd6a9;
}
.letter-group ul { list-style: none; padding: 0; margin: 0; }
.letter-group li {
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 0.97rem;
}
.letter-group li:last-child { border-bottom: 0; }
.closing { padding: 56px 0 70px; }
.closing__box {
  padding: 34px;
  border: 1px solid rgba(156,86,41,0.15);
}
.closing__small {
  margin-top: 14px !important;
  color: var(--corten);
  font-weight: 800;
}
.footer {
  padding: 24px 0 28px;
  background: #2c180d;
  color: #f6e5d3;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.footer__strong {
  margin: 0 0 4px;
  font-weight: 800;
}
.footer p { margin: 0; }
.footer__links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.footer__links a { font-weight: 700; }
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 4, 2, 0.86);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 999;
}
.lightbox.is-open { display: flex; }
.lightbox__inner {
  max-width: min(1100px, 100%);
  max-height: 100%;
  text-align: center;
}
.lightbox__inner img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}
.lightbox__inner p {
  margin: 14px 0 0;
  color: #fff4e9;
}
.lightbox__close {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.10);
  color: white;
  font-size: 2rem;
  cursor: pointer;
}
@media (max-width: 980px) {
  .intro,
  .institutions__grid,
  .participants__list,
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  .intro { grid-template-columns: 1fr; }
  .gallery-card--hero { grid-column: span 2; }
}
@media (max-width: 760px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero__content { padding: 54px 0 56px; }
  .hero h1 { font-size: clamp(3rem, 13vw, 4.4rem); }
  .lead { font-size: 1rem; }
}
@media (max-width: 640px) {
  .gallery-grid,
  .participants__list,
  .institutions__grid,
  .story-grid { grid-template-columns: 1fr; }
  .gallery-card--hero { grid-column: span 1; }
  .gallery-card img,
  .gallery-card--hero img { height: 270px; }
  .container { width: min(100% - 24px, 1180px); }
  .story-card,
  .institution-card,
  .closing__box,
  .info-card { padding: 24px; }
  .search-wrap { min-width: 100%; }
  .btn { width: 100%; }
  .hero__actions { gap: 10px; }
}
