:root {
  color-scheme: light;
  --paper: #f5f1e8;
  --paper-deep: #ebe4d7;
  --ink: #15171b;
  --muted: #656761;
  --line: rgba(21, 23, 27, 0.16);
  --accent: #2459e0;
  --accent-dark: #1742ad;
  --max-width: 1120px;
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration-color: rgba(36, 89, 224, 0.42);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.site-header {
  position: relative;
  z-index: 10;
  min-height: var(--header-height);
  border-bottom: 1px solid var(--line);
}

.nav {
  width: min(calc(100% - 40px), var(--max-width));
  min-height: var(--header-height);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-size: 0.7rem;
  box-shadow: 0 6px 18px rgba(36, 89, 224, 0.2);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.84rem;
  font-weight: 650;
}

.nav-links a {
  position: relative;
  color: var(--muted);
  text-decoration: none;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 2px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-height));
  overflow: hidden;
  display: grid;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(21, 23, 27, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 23, 27, 0.055) 1px, transparent 1px);
  background-size: 68px 68px;
  content: "";
  mask-image: linear-gradient(to right, transparent 2%, black 52%, transparent 100%);
}

.hero::after {
  position: absolute;
  top: 50%;
  right: clamp(-220px, -9vw, -80px);
  width: clamp(380px, 48vw, 720px);
  aspect-ratio: 1;
  border: clamp(56px, 7vw, 100px) solid var(--accent);
  border-radius: 50%;
  content: "";
  opacity: 0.95;
  transform: translateY(-50%);
  animation: orbit-in 900ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  padding: 92px 0;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3.5rem, 8.2vw, 7.4rem);
}

.hero-copy {
  max-width: 600px;
  margin: 34px 0 0;
  color: #494b48;
  font-size: clamp(1.03rem, 1.5vw, 1.25rem);
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: none;
  transition: background 180ms ease, transform 180ms ease;
}

.button:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-2px);
}

.text-link {
  font-size: 0.88rem;
  font-weight: 750;
}

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

.section {
  display: grid;
  grid-template-columns: minmax(180px, 0.65fr) minmax(0, 1.35fr);
  gap: clamp(48px, 9vw, 140px);
  padding: clamp(86px, 11vw, 150px) 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-label {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.section h2 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(2.25rem, 4.8vw, 4.7rem);
}

.section-content > p {
  max-width: 690px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.steps {
  margin: 46px 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  padding: 21px 0;
  border-top: 1px solid var(--line);
}

.steps li:last-child {
  border-bottom: 1px solid var(--line);
}

.step-number {
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
}

.steps strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.steps span:last-child {
  color: var(--muted);
  font-size: 0.93rem;
}

.document {
  display: grid;
  grid-template-columns: minmax(190px, 0.55fr) minmax(0, 1.45fr);
  gap: clamp(48px, 10vw, 150px);
  padding: clamp(76px, 10vw, 140px) 0;
}

.document-aside {
  position: sticky;
  top: 38px;
  align-self: start;
}

.document-aside p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.83rem;
}

.document h1 {
  max-width: 820px;
  font-size: clamp(3rem, 7vw, 6.5rem);
}

.document-lead {
  max-width: 720px;
  margin: 30px 0 72px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.65vw, 1.28rem);
}

.policy-section {
  max-width: 760px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.policy-section h2 {
  margin: 0 0 16px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.policy-section p,
.policy-section li {
  color: #555752;
}

.policy-section p {
  margin: 0 0 14px;
}

.policy-section ul {
  margin: 12px 0 0;
  padding-left: 1.25rem;
}

.policy-section li + li {
  margin-top: 8px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper-deep);
}

.footer-inner {
  width: min(calc(100% - 40px), var(--max-width));
  min-height: 148px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-links {
  display: flex;
  gap: 20px;
  font-size: 0.82rem;
  font-weight: 700;
}

.reveal {
  animation: rise-in 650ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.reveal:nth-child(2) {
  animation-delay: 90ms;
}

.reveal:nth-child(3) {
  animation-delay: 170ms;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes orbit-in {
  from {
    opacity: 0;
    transform: translate(18%, -50%) scale(0.86);
  }
  to {
    opacity: 0.95;
    transform: translate(0, -50%) scale(1);
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 68px;
  }

  .nav {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .nav-links {
    gap: 13px;
    font-size: 0.74rem;
  }

  .brand span:last-child {
    display: none;
  }

  .hero-inner,
  .section,
  .document,
  .footer-inner {
    width: min(calc(100% - 32px), var(--max-width));
  }

  .hero {
    min-height: 720px;
  }

  .hero::after {
    top: auto;
    right: -130px;
    bottom: -180px;
    width: 410px;
    transform: none;
    animation-name: orbit-in-mobile;
  }

  .hero-inner {
    align-self: start;
    padding: 76px 0 260px;
  }

  h1 {
    font-size: clamp(3.35rem, 16vw, 5.4rem);
  }

  .section,
  .document {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .document-aside {
    position: static;
  }

  .document-lead {
    margin-bottom: 54px;
  }

  .footer-inner {
    padding: 34px 0;
    flex-direction: column;
    align-items: flex-start;
  }

  @keyframes orbit-in-mobile {
    from {
      opacity: 0;
      transform: translateX(18%) scale(0.86);
    }
    to {
      opacity: 0.95;
      transform: translateX(0) scale(1);
    }
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
