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

:root {
  --navy: #1a3156;
  --navy-soft: #284777;
  --paper: #f7f8fb;
  --panel: #ffffff;
  --line: #d6deea;
  --text: #18243a;
  --muted: #4c5d78;
  --accent: #8ba6d8;
  --container: 1120px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--text);
  font-family: 'Manrope', sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container {
  width: min(var(--container), calc(100% - 3rem));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(26, 49, 86, 0.18);
  backdrop-filter: blur(8px);
}

.header-inner {
  min-height: 78px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.brand {
  font-family: 'Libre Baskerville', serif;
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: #ffffff;
  text-decoration: none;
}

.contact-btn {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.56rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 0.58rem 0.84rem;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.contact-btn:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.08);
}

.hero {
  min-height: 92vh;
  background:
    radial-gradient(ellipse at 88% 18%, rgba(123, 159, 221, 0.22) 0%, transparent 50%),
    radial-gradient(ellipse at 10% 86%, rgba(70, 101, 154, 0.25) 0%, transparent 48%),
    var(--navy);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, transparent 36%),
    linear-gradient(0deg, rgba(9, 18, 34, 0.25) 0%, transparent 45%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(860px, calc(100% - 3rem));
  padding-top: 4rem;
}

.hero-logo {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(2.2rem, 7.3vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: 0.06em;
  color: #ffffff;
  margin-bottom: 1.7rem;
}

.hero-tagline {
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  line-height: 1.95;
  color: rgba(238, 245, 255, 0.9);
  max-width: 66ch;
  margin: 0 auto;
}

.text-link {
  color: #355488;
  text-decoration: none;
  border-bottom: 1px solid rgba(53, 84, 136, 0.4);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.text-link:hover {
  color: #1f3e71;
  border-color: rgba(31, 62, 113, 0.68);
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(390px, 100%);
  height: 100dvh;
  background: #ffffff;
  border-left: 1px solid var(--line);
  padding: 5.2rem 1.7rem 1.8rem;
  transform: translateX(101%);
  transition: transform 0.28s ease;
  z-index: 50;
  overflow-y: auto;
}

.drawer.open { transform: translateX(0); }

.drawer-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: 1px solid var(--line);
  background: #ffffff;
  color: #425a82;
  font-family: inherit;
  font-size: 0.48rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.45rem 0.58rem;
  cursor: pointer;
}

.drawer-title {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.drawer-list {
  list-style: none;
  display: grid;
  gap: 0.9rem;
  font-size: 0.76rem;
  line-height: 1.75;
  color: var(--muted);
}

.drawer-list strong {
  display: block;
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.drawer-note {
  margin-top: 1.5rem;
  font-size: 0.72rem;
  line-height: 1.9;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 19, 34, 0.42);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.24s ease;
  z-index: 40;
}

.drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
}

a:focus-visible, button:focus-visible {
  outline: 2px solid rgba(122, 154, 211, 0.68);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .container { width: calc(100% - 2rem); }
  .header-inner { min-height: 68px; }
  .brand { font-size: 0.88rem; }
  .header-actions { gap: 0.45rem; }
  .contact-btn { font-size: 0.48rem; padding: 0.48rem 0.62rem; }
  .hero-inner { padding-top: 2.2rem; }
  .hero-tagline { font-size: 0.82rem; line-height: 1.8; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
