:root {
  --paper: #f7f8ff;
  --paper-strong: #ffffff;
  --surface: rgba(255, 255, 255, 0.7);
  --surface-strong: rgba(255, 255, 255, 0.84);
  --ink: #14233b;
  --ink-soft: #33435c;
  --muted: #667085;
  --accent: #ef6a5b;
  --accent-deep: #d44d3d;
  --accent-soft: rgba(239, 106, 91, 0.14);
  --highlight: #7c5cff;
  --highlight-soft: rgba(124, 92, 255, 0.16);
  --border: rgba(20, 35, 59, 0.12);
  --rule: rgba(20, 35, 59, 0.12);
  --shadow: 0 24px 60px rgba(42, 59, 92, 0.12);
  --shadow-strong: 0 28px 80px rgba(42, 59, 92, 0.16);
  --max-width: 1180px;
  --radius: 26px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  background:
    radial-gradient(circle at top left, rgba(239, 106, 91, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(124, 92, 255, 0.14), transparent 26%),
    linear-gradient(180deg, #f7f8ff 0%, #fff7f3 42%, #ffffff 100%);
}

a {
  color: inherit;
}

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

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

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.site-nav-inner {
  width: min(var(--max-width), calc(100% - 32px));
  min-height: 84px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
}

.brand span {
  display: block;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 2.15rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.92;
}

.brand small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav-links,
.nav-actions,
.hero-actions,
.inline-links,
.profile-links,
.cta-links,
.footer-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.nav-links {
  justify-content: center;
  gap: 22px;
}

.nav-links a {
  position: relative;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 6px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -12px;
  height: 2px;
  background: transparent;
  transform: scaleX(0.45);
  transform-origin: center;
  transition: background 0.24s ease, transform 0.24s ease;
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  background: linear-gradient(90deg, var(--highlight), var(--accent));
  transform: scaleX(1);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--highlight), var(--accent));
  color: #ffffff;
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 16px 30px rgba(124, 92, 255, 0.2);
  transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease, color 0.24s ease, border-color 0.24s ease;
}

.nav-cta:hover,
.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 36px rgba(124, 92, 255, 0.22);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  border-color: rgba(20, 35, 59, 0.12);
  box-shadow: 0 12px 24px rgba(42, 59, 92, 0.08);
}

.button.secondary:hover {
  box-shadow: 0 18px 32px rgba(42, 59, 92, 0.12);
}

.button.ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(20, 35, 59, 0.14);
  box-shadow: none;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle-stack {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
}

.menu-toggle-stack span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.mobile-drawer {
  display: none;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.95);
}

.mobile-drawer.open {
  display: block;
}

.mobile-drawer-inner {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-drawer-inner a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

main {
  padding: 30px 0 0;
}

section {
  position: relative;
  padding: 34px 0;
}

section + section {
  border-top: 1px solid rgba(20, 35, 59, 0.06);
}

.hero {
  padding-top: 46px;
  padding-bottom: 56px;
}

.hero-layout,
.split-layout,
.footer-shell {
  display: grid;
  gap: 30px;
}

.hero-layout {
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
  align-items: start;
}

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

.eyebrow,
.section-label {
  margin: 0 0 14px;
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: "DM Serif Display", Georgia, serif;
  line-height: 1.02;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(3rem, 6vw, 5.4rem);
  font-weight: 400;
  max-width: 12ch;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
}

h3 {
  font-size: 1.55rem;
  font-weight: 400;
}

p {
  margin: 0;
}

.lead {
  max-width: 62ch;
  margin-top: 18px;
  font-size: 1.1rem;
  color: var(--ink-soft);
}

.hero-actions {
  margin-top: 30px;
}

.section-header {
  max-width: 740px;
  margin-bottom: 28px;
}

.section-intro {
  margin-top: 10px;
  color: var(--muted);
}

.grid-2,
.grid-3,
.signal-grid,
.service-grid,
.paper-grid,
.profile-grid,
.footer-grid,
.facts-grid {
  display: grid;
  gap: 20px;
}

.grid-2,
.paper-grid,
.profile-grid,
.footer-grid,
.facts-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

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

.editorial-card,
.card,
.signal,
.paper,
.note-box,
.quote-box,
.hero-panel,
.fact,
.footer-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.card,
.signal,
.paper,
.note-box,
.quote-box,
.hero-panel,
.fact,
.footer-card {
  padding: 26px;
}

.card::before,
.signal::before,
.paper::before,
.note-box::before,
.quote-box::before,
.hero-panel::before,
.fact::before,
.footer-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(124, 92, 255, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.card:hover,
.signal:hover,
.paper:hover,
.note-box:hover,
.quote-box:hover,
.hero-panel:hover,
.fact:hover {
  transform: translateY(-4px);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
  border-color: rgba(124, 92, 255, 0.22);
  box-shadow: var(--shadow-strong);
}

.card-title,
.paper-title {
  margin-bottom: 12px;
}

.card-copy,
.paper-copy,
.card p,
.paper p,
.note-box p,
.quote-box p,
.signal p,
.fact p {
  color: var(--ink-soft);
}

.card-meta,
.paper-meta,
.small-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.small-note {
  line-height: 1.6;
}

.rule {
  width: 86px;
  height: 1px;
  margin: 22px 0;
  background: var(--rule);
}

.link-line,
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.link-line::after,
.text-link::after {
  content: "\2192";
  font-size: 0.95em;
  transition: transform 0.22s ease;
}

.link-line:hover::after,
.text-link:hover::after {
  transform: translateX(4px);
}

.clean-list,
.proof-list {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-soft);
}

.clean-list li + li,
.proof-list li + li {
  margin-top: 10px;
}

.signal-label,
.fact-label,
.panel-label {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.signal-value,
.fact-value,
.panel-title {
  color: var(--ink);
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 1.7rem;
  line-height: 1.05;
}

.hero-panel .panel-title {
  margin-bottom: 10px;
}

.hero-panel .button-row {
  margin-top: 20px;
}

.profile-grid .card {
  background: var(--surface-strong);
}

.profile-tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-soft), var(--highlight-soft));
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quote-box blockquote {
  margin: 0;
  color: var(--ink);
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.18;
}

.quote-box cite {
  display: block;
  margin-top: 18px;
  color: var(--muted);
  font-style: normal;
  font-weight: 700;
}

.contact-bar {
  padding-top: 26px;
  padding-bottom: 26px;
}

.contact-banner {
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  background:
    radial-gradient(circle at top right, rgba(124, 92, 255, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 244, 240, 0.92));
  box-shadow: var(--shadow-strong);
}

.contact-banner h2 {
  max-width: 12ch;
}

.contact-banner p {
  max-width: 58ch;
  margin-top: 14px;
}

.footer {
  margin-top: 70px;
  padding: 54px 0 40px;
  color: var(--paper-strong);
  background:
    radial-gradient(circle at top left, rgba(124, 92, 255, 0.22), transparent 30%),
    linear-gradient(135deg, #18243d, #253a63 62%, #203152);
}

.footer-shell {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: start;
}

.footer-cta {
  padding-right: 24px;
}

.footer-cta h2 {
  color: var(--paper-strong);
  max-width: 12ch;
}

.footer-cta p {
  margin-top: 16px;
  max-width: 52ch;
  color: rgba(252, 250, 246, 0.76);
}

.footer-actions {
  margin-top: 24px;
}

.footer .button.secondary,
.footer .button.ghost,
.footer .nav-cta {
  color: var(--paper-strong);
  border-color: rgba(252, 250, 246, 0.3);
  background: transparent;
  box-shadow: none;
}

.footer .button:first-child {
  background: linear-gradient(135deg, var(--highlight), var(--accent));
  border-color: transparent;
}

.footer-card {
  padding: 24px;
  border-color: rgba(252, 250, 246, 0.12);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
  backdrop-filter: blur(16px);
}

.footer-card h3,
.footer-card p,
.footer-card a,
.footer-card .small-note {
  color: var(--paper-strong);
}

.footer-card p,
.footer-card .small-note {
  color: rgba(252, 250, 246, 0.76);
}

.footer-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.footer-list li + li {
  margin-top: 10px;
}

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

.footer-base {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(252, 250, 246, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  color: rgba(252, 250, 246, 0.66);
  font-size: 0.94rem;
}

.utility-page {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 48px 0;
}

.utility-card {
  max-width: 720px;
  margin: 0 auto;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

body.is-loaded .hero [data-reveal] {
  opacity: 1;
  transform: translateY(0);
}

.grid-2 > [data-reveal]:nth-child(2),
.grid-3 > [data-reveal]:nth-child(2),
.profile-grid > [data-reveal]:nth-child(2),
.paper-grid > [data-reveal]:nth-child(2),
.signal-grid > [data-reveal]:nth-child(2),
.service-grid > [data-reveal]:nth-child(2),
.footer-grid > [data-reveal]:nth-child(2) {
  transition-delay: 0.08s;
}

.grid-3 > [data-reveal]:nth-child(3),
.signal-grid > [data-reveal]:nth-child(3) {
  transition-delay: 0.16s;
}

.service-grid > [data-reveal]:nth-child(3) {
  transition-delay: 0.16s;
}

.service-grid > [data-reveal]:nth-child(4) {
  transition-delay: 0.24s;
}

@media (max-width: 1040px) {
  .site-nav-inner {
    grid-template-columns: auto 1fr;
  }

  .nav-actions {
    justify-content: flex-end;
  }

  .hero-layout,
  .split-layout,
  .footer-shell,
  .grid-2,
  .paper-grid,
  .profile-grid,
  .footer-grid,
  .facts-grid,
  .grid-3,
  .signal-grid,
  .service-grid {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
  }

  .site-nav-inner {
    grid-template-columns: auto auto;
  }

  h1 {
    font-size: clamp(2.55rem, 10vw, 4rem);
  }

  .hero-layout,
  .split-layout,
  .footer-shell,
  .grid-2,
  .grid-3,
  .signal-grid,
  .service-grid,
  .paper-grid,
  .profile-grid,
  .footer-grid,
  .facts-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 32px;
    padding-bottom: 42px;
  }

  .footer {
    margin-top: 48px;
  }
}
