:root {
  --bg: #eef2f6;
  --bg-alt: #f6f3ed;
  --surface: #ffffff;
  --surface-soft: #f5f7fa;
  --surface-deep: #0f1b2b;
  --surface-deep-soft: #162538;
  --text: #101c2c;
  --text-soft: #5d6877;
  --text-inverse: #eef3f8;
  --line: rgba(16, 28, 44, 0.11);
  --line-strong: rgba(255, 255, 255, 0.12);
  --accent: #b7925e;
  --accent-strong: #d0ae76;
  --accent-soft: rgba(183, 146, 94, 0.14);
  --shadow-lg: 0 32px 70px rgba(16, 28, 44, 0.14);
  --shadow-md: 0 18px 40px rgba(16, 28, 44, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 1240px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(183, 146, 94, 0.16), transparent 24%),
    radial-gradient(circle at right 10%, rgba(22, 37, 56, 0.09), transparent 28%),
    linear-gradient(180deg, #edf2f7 0%, var(--bg-alt) 34%, #edf1f5 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent 70%);
  opacity: 0.3;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

p {
  margin: 0;
  line-height: 1.72;
  color: var(--text-soft);
}

h1,
h2,
h3 {
  margin: 0;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding-bottom: 40px;
}

.site-header {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 16px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 34px rgba(16, 28, 44, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(208, 174, 118, 0.3);
  border-radius: 16px;
  background: linear-gradient(145deg, #112031, #1a2f47);
  color: #f4efe6;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-copy strong,
.site-footer p:first-child {
  font-size: 0.94rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-copy span,
.site-footer p:last-child {
  font-size: 0.8rem;
  color: var(--text-soft);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.site-nav a {
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text-inverse);
  background: var(--surface-deep);
}

.hero,
.trust-bar,
.section,
.site-footer {
  animation: rise 0.7s ease both;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(320px, 0.78fr);
  gap: 24px;
  margin-top: 18px;
}

.hero-copy,
.hero-panel,
.section,
.contact-note,
.document-card,
.service-card,
.content-card,
.contact-card {
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.hero-copy {
  position: relative;
  overflow: hidden;
  padding: 54px 48px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(183, 146, 94, 0.16), transparent 42%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.07), transparent 28%),
    linear-gradient(180deg, #101d2d 0%, #142337 52%, #17283d 100%);
}

.hero-copy::after {
  content: "";
  position: absolute;
  inset: auto -10% -12% 40%;
  height: 220px;
  background: radial-gradient(circle, rgba(208, 174, 118, 0.18), transparent 70%);
  transform: rotate(-8deg);
}

.eyebrow,
.panel-eyebrow,
.card-kicker,
.timeline-date,
.label,
.document-type,
dt {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow,
.panel-eyebrow,
.card-kicker {
  color: var(--accent-strong);
}

.hero-copy h1,
.section-heading h2,
.hero-panel h2,
.legal-hero h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 0.94;
  letter-spacing: -0.035em;
}

.hero-copy h1 {
  position: relative;
  z-index: 1;
  max-width: 12ch;
  margin-top: 14px;
  color: var(--text-inverse);
  font-size: clamp(3rem, 6.2vw, 5.5rem);
}

.lead {
  position: relative;
  z-index: 1;
  max-width: 63ch;
  margin-top: 24px;
  font-size: 1.02rem;
}

.hero-copy .lead,
.legal-hero .lead {
  color: rgba(238, 243, 248, 0.78);
}

.hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.button:hover,
.button:focus-visible,
.document-card:hover,
.document-card:focus-visible,
.service-card:hover,
.service-card:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: #0c1623;
  background: linear-gradient(135deg, var(--accent-strong), #e2c48d);
  box-shadow: 0 16px 32px rgba(208, 174, 118, 0.24);
}

.button-secondary {
  color: var(--text-inverse);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
}

.button-inline {
  margin-top: 24px;
}

.hero-metrics {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.metric-card {
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
}

.metric-card span {
  display: block;
  margin-bottom: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(238, 243, 248, 0.64);
}

.metric-card strong {
  color: var(--text-inverse);
  font-size: 1.06rem;
  line-height: 1.4;
}

.hero-panel {
  padding: 30px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 247, 250, 0.98)),
    var(--surface);
}

.hero-panel h2 {
  margin-top: 12px;
  color: var(--text);
  font-size: clamp(2.25rem, 4vw, 3.4rem);
}

.profile-list {
  margin-top: 22px;
  display: grid;
}

.profile-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.profile-row:last-child {
  border-bottom: 0;
}

.profile-row span {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.profile-row strong {
  font-size: 1rem;
  line-height: 1.55;
}

.panel-note {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.trust-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-lg);
}

.trust-item {
  padding: 24px 24px 22px;
  background:
    linear-gradient(180deg, #112031 0%, #17283d 100%);
}

.trust-item span {
  display: block;
  margin-bottom: 10px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(238, 243, 248, 0.64);
}

.trust-item strong {
  color: var(--text-inverse);
  font-size: 1rem;
  line-height: 1.55;
}

.section {
  margin-top: 18px;
  padding: 40px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
}

.section-soft {
  background:
    linear-gradient(180deg, rgba(247, 241, 232, 0.84), rgba(255, 255, 255, 0.92));
}

.section-dark {
  background:
    linear-gradient(180deg, #0f1b2b 0%, #162538 100%);
  border-color: rgba(255, 255, 255, 0.08);
}

.section-dark .section-heading h2,
.section-dark h3 {
  color: var(--text-inverse);
}

.section-dark p {
  color: rgba(238, 243, 248, 0.76);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin-top: 12px;
  color: var(--text);
  font-size: clamp(2.6rem, 5vw, 4.3rem);
}

.institution-grid,
.contact-layout,
.document-list,
.timeline {
  display: grid;
  gap: 18px;
}

.institution-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.content-card {
  padding: 28px;
  border-radius: 22px;
  background: var(--surface);
}

.narrative-card {
  background:
    linear-gradient(180deg, #ffffff 0%, #f4f7fa 100%);
}

.detail-card {
  background:
    linear-gradient(180deg, rgba(247, 241, 232, 0.92) 0%, #ffffff 38%);
}

.content-card h3,
.service-card h3,
.timeline-item h3,
.document-card strong,
.contact-note h3 {
  margin: 10px 0 12px;
  font-size: 1.22rem;
  line-height: 1.4;
}

.content-card p + p {
  margin-top: 14px;
}

.fact-list {
  display: grid;
  gap: 16px;
  margin: 18px 0 0;
}

.fact-list div {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.fact-list div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

dt {
  margin-bottom: 6px;
  color: var(--text-soft);
}

dd {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  min-height: 210px;
  padding: 24px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f4f7fa 100%);
}

.card-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(183, 146, 94, 0.22);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.timeline {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.timeline-item {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
}

.timeline-date {
  margin-bottom: 10px;
  color: var(--accent-strong);
}

.document-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.document-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 240px;
  padding: 26px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f4f7fa 100%);
}

.document-card::after {
  content: "Open PDF";
  margin-top: auto;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}

.document-card strong {
  font-size: 1.18rem;
}

.document-type {
  color: var(--accent);
}

.document-meta {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.document-card > span:last-of-type {
  color: var(--text-soft);
}

.contact-layout {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}

.contact-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
  padding: 30px;
  border-radius: 24px;
  border-color: rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, #111f31 0%, #17283d 100%);
}

.contact-card > div {
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-card .label {
  margin-bottom: 8px;
  color: rgba(238, 243, 248, 0.62);
}

.contact-card strong,
.contact-card a {
  color: var(--text-inverse);
  font-size: 1.05rem;
  line-height: 1.45;
}

.contact-note {
  padding: 30px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(247, 241, 232, 0.96) 0%, #ffffff 45%);
}

.contact-note p {
  margin-top: 6px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 22px;
  padding: 18px 4px 8px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text);
}

.legal-page {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.legal-hero {
  background:
    linear-gradient(135deg, rgba(183, 146, 94, 0.12), transparent 42%),
    linear-gradient(180deg, #101d2d 0%, #17283d 100%);
  border-color: rgba(255, 255, 255, 0.08);
}

.legal-hero h1 {
  margin-top: 12px;
  color: var(--text-inverse);
  font-size: clamp(3rem, 6vw, 5rem);
}

.legal-content {
  display: grid;
  gap: 14px;
}

.legal-content h2 {
  margin-top: 10px;
  font-size: 1.34rem;
}

.legal-content ul {
  margin: 0;
  padding-left: 22px;
  color: var(--text-soft);
}

.legal-content li {
  margin: 0 0 8px;
  line-height: 1.7;
}

.legal-content a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(16, 28, 44, 0.24);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1120px) {
  .hero,
  .institution-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .site-header,
  .site-footer {
    position: static;
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-copy,
  .hero-panel,
  .section,
  .contact-card,
  .contact-note {
    padding: 28px;
  }

  .timeline,
  .document-list,
  .contact-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(calc(100% - 20px), var(--max-width));
  }

  .site-header {
    margin-top: 10px;
    padding: 14px;
  }

  .site-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .site-nav a {
    text-align: center;
  }

  .hero-copy,
  .hero-panel,
  .section,
  .contact-card,
  .contact-note {
    padding: 24px;
    border-radius: 22px;
  }

  .hero-copy h1,
  .section-heading h2,
  .hero-panel h2,
  .legal-hero h1 {
    max-width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-metrics,
  .service-grid,
  .trust-bar {
    grid-template-columns: 1fr;
  }

  .profile-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .contact-card {
    gap: 14px;
  }
}
