:root {
  --ink: #111827;
  --plum: #2e0d43;
  --sand: #f4efe8;
  --paper: #fffdfa;
  --line: #d4cdc3;
  --muted: #5b6574;
  --mist: #e8edf6;
  --plum-soft: #eadff3;
  --success: #e3f1ea;
  --max-width: 1120px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-none: 0 0 0 rgba(0, 0, 0, 0);
  --font-head: "Manrope", sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 30;
  padding: 10px 14px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
}

.skip-link:focus {
  top: 12px;
}

.topline {
  padding: 10px 20px;
  background: var(--plum);
  color: #f8f5fb;
  font-size: 0.92rem;
  text-align: center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  background: rgba(244, 239, 232, 0.94);
  backdrop-filter: blur(14px);
}

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

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  font-family: var(--font-head);
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: transparent;
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
}

.site-nav {
  position: fixed;
  inset: 112px 16px auto 16px;
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--ink);
  border-radius: 24px;
  background: var(--paper);
}

.site-nav.is-open {
  display: flex;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 600;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  background: var(--mist);
  outline: none;
}

.nav-cta {
  background: var(--ink);
  color: #f7f7f5;
}

main {
  display: block;
}

.section {
  padding: 64px 0;
}

.section-ink {
  background: var(--ink);
  color: #f8f7f4;
}

.section-paper {
  background: var(--paper);
}

.section-plum {
  background: var(--plum-soft);
}

.section-tight {
  padding-top: 40px;
  padding-bottom: 40px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px 12px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-heading {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}

.section-heading h1,
.section-heading h2,
.section-heading h3,
.hero-copy h1,
.page-hero h1,
.article-header h1 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.section-heading h2,
.section-heading h3 {
  font-size: clamp(1.9rem, 4vw, 3.2rem);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 48px 0 72px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    var(--ink);
  background-size: 32px 32px, 32px 32px, auto;
  color: #fbfaf7;
}

.hero-grid,
.split-grid,
.contact-grid,
.feature-layout,
.story-grid,
.page-hero-grid,
.review-grid,
.insight-grid {
  display: grid;
  gap: 24px;
}

.hero-copy h1,
.page-hero h1,
.article-header h1 {
  font-size: clamp(2.7rem, 8vw, 5.7rem);
}

.hero-copy p,
.page-hero p,
.article-header p,
.section-heading p {
  max-width: 64ch;
  margin: 0;
  font-size: 1.05rem;
  color: inherit;
}

.hero-note,
.trust-note,
.source-strip,
.page-note {
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
}

.page-note {
  border-color: var(--line);
  background: var(--paper);
  color: var(--ink);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #f7f7f5;
  font-weight: 700;
  text-align: center;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.btn-secondary {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}

.btn-plum {
  background: var(--plum);
  border-color: var(--plum);
}

.hero-panel,
.panel,
.card,
.faq-card,
.contact-card,
.article-card,
.stat-panel,
.matrix-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
}

.hero-panel {
  padding: 18px;
  color: var(--ink);
}

.hero-panel .stamp,
.stamp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--plum-soft);
  color: var(--plum);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-photo,
.media-frame,
.article-cover {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--line);
}

.hero-photo img,
.media-frame img,
.article-cover img {
  width: 100%;
  min-height: 260px;
  object-fit: cover;
}

.hero-facts,
.badge-list,
.source-list,
.inline-list,
.decision-list,
.footer-links,
.legal-list,
.mini-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-facts li,
.source-list li,
.mini-list li {
  display: flex;
  gap: 10px;
}

.hero-facts li::before,
.source-list li::before,
.mini-list li::before,
.decision-list li::before,
.inline-list li::before {
  content: "";
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  margin-top: 0.5em;
  border-radius: 50%;
  background: var(--plum);
}

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

.badge-list li {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--sand);
  font-weight: 600;
}

.card-grid {
  display: grid;
  gap: 18px;
}

.card,
.article-card,
.contact-card,
.matrix-card,
.faq-card,
.panel,
.stat-panel {
  padding: 22px;
}

.card h3,
.article-card h2,
.article-card h3,
.contact-card h3,
.matrix-card h3,
.faq-card h3,
.panel h3,
.stat-panel h3,
.case-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-head);
  font-size: 1.25rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.card p,
.article-card p,
.contact-card p,
.matrix-card p,
.faq-card p,
.panel p,
.stat-panel p,
.case-card p,
.article-body p,
.article-body li,
.legal-copy p,
.legal-copy li {
  margin: 0;
  color: var(--muted);
}

.card .tag,
.article-card .tag,
.meta-tag {
  display: inline-flex;
  margin-bottom: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--plum);
}

.feature-layout .panel,
.review-grid .panel {
  height: 100%;
}

.split-grid .panel-accent,
.panel-accent {
  background: var(--plum-soft);
  border-color: rgba(46, 13, 67, 0.14);
}

.panel-dark {
  background: var(--ink);
  border-color: rgba(255, 255, 255, 0.12);
  color: #f7f7f4;
}

.panel-dark p,
.panel-dark li,
.panel-dark .eyebrow {
  color: rgba(247, 247, 244, 0.78);
}

.stat-strip {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.stat-panel strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-head);
  font-size: 2.1rem;
  line-height: 1;
  letter-spacing: -0.05em;
}

.comparison-grid,
.case-grid,
.article-grid,
.legal-grid {
  display: grid;
  gap: 18px;
}

.case-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
}

.case-card footer,
.article-footer {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.details-list {
  display: grid;
  gap: 14px;
}

details {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  overflow: hidden;
}

summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  font-family: var(--font-head);
  font-size: 1.04rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  font-size: 1.3rem;
}

details[open] summary::after {
  content: "−";
}

.details-body {
  padding: 0 20px 20px;
  color: var(--muted);
}

.contact-band {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.06);
}

.contact-band h2,
.contact-band h3 {
  margin: 0 0 12px;
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing: -0.04em;
}

.contact-band p {
  margin: 0;
}

.contact-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.field-row {
  display: grid;
  gap: 14px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.field textarea {
  min-height: 160px;
  resize: vertical;
}

.section-paper .field input,
.section-paper .field textarea,
.page-hero .field input,
.page-hero .field textarea,
.contact-card .field input,
.contact-card .field textarea {
  border-color: var(--line);
  background: var(--paper);
  color: var(--ink);
}

.form-note {
  font-size: 0.94rem;
  color: rgba(247, 247, 244, 0.74);
}

.section-paper .form-note,
.page-hero .form-note {
  color: var(--muted);
}

.page-hero {
  padding: 44px 0 24px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumbs a {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.article-shell {
  padding: 44px 0 72px;
}

.article-header {
  display: grid;
  gap: 18px;
  margin-bottom: 28px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

.article-body {
  display: grid;
  gap: 22px;
}

.article-body h2,
.article-body h3 {
  margin: 0 0 10px;
  font-family: var(--font-head);
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.article-body ul,
.legal-copy ul,
.legal-copy ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
}

.quote-block {
  padding: 18px 20px;
  border-left: 4px solid var(--plum);
  background: var(--plum-soft);
  color: var(--ink);
}

.legal-copy {
  display: grid;
  gap: 22px;
}

.legal-copy h2,
.legal-copy h3 {
  margin: 0 0 10px;
  font-family: var(--font-head);
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.footer {
  padding: 40px 0 52px;
  border-top: 1px solid rgba(17, 24, 39, 0.12);
  background: var(--paper);
}

.footer-grid {
  display: grid;
  gap: 28px;
}

.footer-brand {
  display: grid;
  gap: 12px;
}

.footer-brand p,
.footer-meta {
  margin: 0;
  color: var(--muted);
}

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

.footer-links a,
.legal-list a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.u-mt-16 {
  margin-top: 16px;
}

.u-mt-18 {
  margin-top: 18px;
}

.u-mt-24 {
  margin-top: 24px;
}

.u-mt-28 {
  margin-top: 28px;
}

.u-mt-30 {
  margin-top: 30px;
}

.u-mt-32 {
  margin-top: 32px;
}

.u-heading-display {
  margin: 0 0 14px;
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.u-heading-display-wide {
  margin: 0 0 14px;
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.u-heading-featured {
  margin: 0 0 12px;
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 420ms ease, transform 420ms ease;
}

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

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

  .section {
    padding: 84px 0;
  }

  .hero {
    padding: 64px 0 96px;
  }

  .hero-grid,
  .split-grid,
  .contact-grid,
  .feature-layout,
  .story-grid,
  .page-hero-grid,
  .review-grid,
  .insight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .card-grid,
  .comparison-grid,
  .case-grid,
  .article-grid,
  .legal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    align-items: start;
  }
}

@media (min-width: 980px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    inset: auto;
  }

  .site-nav a {
    padding: 10px 12px;
  }

  .hero-grid {
    grid-template-columns: 1.18fr 0.82fr;
    gap: 36px;
  }

  .feature-layout {
    grid-template-columns: 0.92fr 1.08fr;
  }

  .review-grid {
    grid-template-columns: 0.88fr 1.12fr;
  }

  .story-grid {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .legal-grid {
    grid-template-columns: 0.85fr 1.15fr;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
