:root {
  --bg: #f1f3f8;
  --surface: #ffffff;
  --surface-2: #e8ecf4;
  --ink: #0b1530;
  --ink-2: #3a4560;
  --muted: #6b7489;
  --line: #dde2ec;
  --royal: #2343c8;
  --royal-ink: #172f94;
  --sky: #bcd6f3;
  --sky-2: #dce9f9;
  --gold: #e3a23b;

  --serif: "Instrument Serif", "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(11, 21, 48, 0.04), 0 12px 32px -12px rgba(11, 21, 48, 0.12);
  --wrap: 1200px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

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

.serif {
  font-family: var(--serif);
}

.italic {
  font-style: italic;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--royal);
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 72px);
  margin-top: 14px;
}

.section-title em {
  color: var(--royal);
}

.lead {
  font-size: 18px;
  color: var(--ink-2);
  max-width: 560px;
}

.section {
  padding: clamp(72px, 10vw, 120px) 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font: 500 15px/1 var(--sans);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}

.btn-dark:hover {
  background: var(--royal);
}

.btn-light {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.btn-light:hover {
  border-color: var(--ink);
}

.btn .arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.btn:hover .arrow {
  transform: translate(2px, -2px);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 13px;
  color: var(--ink-2);
}

.chip::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink);
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.placeholder-tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 6px;
  border: 1px dashed currentColor;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.7;
}

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(241, 243, 248, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.nav.scrolled {
  border-color: var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.wordmark {
  font-family: var(--serif);
  font-size: 26px;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.wordmark span {
  color: var(--royal);
  font-style: italic;
}

.nav-links {
  display: flex;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 15px;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-2);
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  margin: 4px auto;
  background: var(--ink);
}

@media (max-width: 900px) {
  .nav-links,
  .nav .btn {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    padding: 12px 20px 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }

  .nav.open .nav-links a {
    display: block;
    padding: 12px 0;
    font-size: 18px;
  }
}

/* Footer */
.footer {
  padding: 72px 0 40px;
  background: var(--ink);
  color: #c9d0e0;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-name {
  font-family: var(--serif);
  font-size: clamp(56px, 10vw, 140px);
  line-height: 0.9;
  color: #fff;
}

.footer-name em {
  color: var(--sky);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-self: end;
  font-size: 15px;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 28px;
  font-size: 13px;
  color: #8891a7;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  * {
    animation: none !important;
  }
}

:focus-visible {
  outline: 2px solid var(--royal);
  outline-offset: 3px;
}
