:root {
  --navy: #071528;
  --navy-2: #0c2340;
  --ink: #132033;
  --muted: #5b6b7c;
  --line: #d7dee7;
  --paper: #f6f8fb;
  --white: #ffffff;
  --sea: #0e7c8a;
  --sea-2: #1494a4;
  --teal: #1aa6a1;
  --gold: #c9a44a;
  --gold-2: #e0c070;
  --shadow: 0 18px 50px rgba(7, 21, 40, 0.12);
  --radius: 18px;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: var(--sea); text-decoration: none; }
a:hover { color: var(--navy); }

.wrap { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(7, 21, 40, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}
.brand-mark {
  height: 58px;
  width: auto;
  border-radius: 2px;
  overflow: visible;
  background: transparent;
  flex-shrink: 0;
  line-height: 0;
}
.brand-mark img {
  height: 58px;
  width: auto;
  max-width: none;
  object-fit: contain;
  object-position: center;
  display: block;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 15px; letter-spacing: .02em; }
.brand-text span { font-size: 11px; color: #b7c4d4; font-weight: 500; }

nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
nav a {
  color: #d7e2ee;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
  display: inline-block;
}
nav a:hover, nav a.active {
  color: #fff;
  background: rgba(255,255,255,.08);
}
nav a.active { box-shadow: inset 0 0 0 1px rgba(201,164,74,.45); }

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  border-radius: 10px;
  padding: 8px 10px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
  background: var(--navy) center/cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7,21,40,.25) 0%, rgba(7,21,40,.55) 45%, rgba(7,21,40,.92) 100%),
    linear-gradient(90deg, rgba(7,21,40,.45), transparent 55%);
}
.hero-content { position: relative; z-index: 1; padding: 90px 0 56px; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-2);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 700;
}
.kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold-2);
}
.hero h1 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.05;
  margin: 14px 0 18px;
  font-weight: 500;
  max-width: 14ch;
}
.hero p.lead {
  max-width: 58ch;
  color: #d5e0ea;
  font-size: 18px;
  margin: 0 0 28px;
}
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 700;
  font-size: 14px;
  border: 0;
  cursor: pointer;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-2); color: var(--navy); }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); }
.btn-ghost:hover { background: rgba(255,255,255,.08); color: #fff; }
.btn-sea { background: var(--sea); color: #fff; }
.btn-sea:hover { background: var(--sea-2); color: #fff; }

.wave {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 72px;
  z-index: 2;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: -28px;
  position: relative;
  z-index: 3;
}
.stat {
  background: #fff;
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow);
}
.stat b {
  display: block;
  font-family: "Fraunces", serif;
  font-size: 32px;
  color: var(--navy);
}
.stat span { color: var(--muted); font-size: 13px; }

/* Sections */
section { padding: 72px 0; }
.section-head { margin-bottom: 32px; }
.section-head h2 {
  font-family: "Fraunces", serif;
  font-size: clamp(28px, 3vw, 40px);
  margin: 8px 0 10px;
  font-weight: 500;
}
.section-head p { color: var(--muted); max-width: 62ch; margin: 0; }

.split {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
}
.split p { color: #314155; }
.split img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.about-rows {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.about-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}
.about-row--flip .about-visual { order: -1; }
.about-copy {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px 24px 22px 26px;
  position: relative;
  height: 100%;
}
.about-copy::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 4px;
  border-radius: 4px;
  background: var(--sea);
}
.about-n {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--sea);
  margin-bottom: 8px;
}
.about-copy p {
  margin: 0;
  color: #314155;
  font-size: 15.5px;
  line-height: 1.6;
}
.about-visual {
  min-height: 0;
  height: 100%;
  overflow: hidden;
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.about-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(7,21,40,.06);
  border: 1px solid #e8eef4;
}
.card h3 { margin: 10px 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.icon {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: #e8f6f6; color: var(--sea); font-size: 18px;
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
}
.member-chip {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 14px;
  color: var(--ink);
  transition: .2s ease;
}
.member-chip:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.member-chip img { width: 28px; height: 20px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px #e5eaf0; }

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.news-card { overflow: hidden; padding: 0; }
.news-card img { width: 100%; height: 180px; object-fit: cover; }
.news-card .body { padding: 18px 18px 20px; }
.tag {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sea);
  font-weight: 800;
}
.news-card h3 { margin: 6px 0 8px; font-size: 18px; line-height: 1.3; }
.news-row {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 22px;
  padding: 0;
  overflow: hidden;
}
.news-row > img { height: 100%; min-height: 180px; object-fit: cover; }
.news-row .body { padding: 22px 22px 22px 0; }
.page-hero {
  background:
    linear-gradient(180deg, rgba(7,21,40,.72), rgba(7,21,40,.72)),
    url("../img/hero-sea.jpg") center/cover;
  color: #fff;
  padding: 78px 0 54px;
}
.page-hero h1 {
  font-family: "Fraunces", serif;
  font-size: clamp(32px, 5vw, 52px);
  margin: 10px 0 8px;
  font-weight: 500;
}
.page-hero p { margin: 0; color: #d7e2ee; max-width: 60ch; }

.article { max-width: 820px; }
.article-cover { margin: 0 0 28px; }
.article-cover img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.article-body p {
  color: #314155;
  font-size: 16px;
  line-height: 1.65;
  margin: 0 0 16px;
}
.article-back { margin-top: 28px; font-weight: 700; }

.timeline { display: grid; gap: 16px; }
.term {
  background: #fff;
  border-radius: 20px;
  padding: 24px 26px;
  border: 1px solid var(--line);
}
.term.current { border-color: #cde8ea; box-shadow: 0 0 0 4px #e8f6f6; }
.term .when { color: var(--sea); font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.term h3 { margin: 6px 0 10px; font-family: "Fraunces", serif; font-weight: 500; }
.term ul { margin: 8px 0 0; padding-left: 18px; color: #3a4b5d; }

.member-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.member-card { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: start; }
.member-card .logo {
  width: 110px; height: 88px;
  background: #f4f7fb;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid; place-items: center;
  padding: 8px;
}
.member-card .logo img { max-width: 100%; max-height: 72px; object-fit: contain; }
.member-card h3 { margin: 0 0 6px; font-size: 17px; }
.member-card p { margin: 0 0 4px; color: var(--muted); font-size: 14px; }
@media (max-width: 600px) {
  .member-card { grid-template-columns: 1fr; }
}

.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 22px; }
form { display: grid; gap: 12px; }
label { font-size: 13px; font-weight: 700; }
input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  background: #fff;
}
textarea { min-height: 140px; resize: vertical; }

.links-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.link-card {
  display: flex; align-items: center; gap: 16px;
  background: #fff; padding: 18px; border-radius: 18px; border: 1px solid var(--line);
}
.link-card img { width: 92px; height: 64px; object-fit: contain; }
.link-card h3 { margin: 0 0 4px; }
.link-card p { margin: 0; color: var(--muted); font-size: 14px; }

footer {
  background: var(--navy);
  color: #c9d5e2;
  padding: 42px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 28px;
}
footer h4 { color: #fff; margin: 0 0 10px; }
footer a { color: #c9d5e2; }
footer a:hover { color: #fff; }
.legal { border-top: 1px solid rgba(255,255,255,.08); padding-top: 16px; font-size: 13px; color: #8ea0b3; }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  nav { display: none; position: absolute; left: 0; right: 0; top: 78px; background: #071528; padding: 12px 20px 18px; }
  nav.open { display: block; }
  nav ul { flex-direction: column; }
  .stats, .pillars, .news-grid, .split, .member-list, .contact-grid, .links-grid, .footer-grid, .news-row, .about-row {
    grid-template-columns: 1fr;
  }
  .hero { min-height: 70vh; }
  .split img { height: 280px; }
  .about-row--flip .about-visual { order: 0; }
  .about-visual { height: auto; max-height: 160px; }
  .about-visual img { height: 160px; }
}
