@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/playfair-display/playfair-display-bold-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/plex-sans/plex-sans-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/plex-mono/plex-mono-400.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/plex-mono/plex-mono-600.woff2') format('woff2');
}

:root {
  --ink: #11151c;
  --ink-soft: #3d4552;
  --paper: #f6f5f2;
  --white: #fff;
  --line: #ddd9cf;
  --navy: #1c3e6e;
  --navy-dark: #132b4f;
  --blue-wash: #e8edf5;
  --gold: #b8870b;
  --gold-wash: #f5eedb;
  --red: #c24532;
  --red-wash: #faece9;
  --green: #24735b;
  --green-wash: #e5f2ec;
  --sans: 'IBM Plex Sans', Arial, sans-serif;
  --display: 'Playfair Display', Georgia, serif;
  --mono: 'IBM Plex Mono', monospace;
  --s1: 4px;
  --s2: 8px;
  --s3: 16px;
  --s4: 24px;
  --s5: 32px;
  --s6: 48px;
  --s7: 64px;
  --s8: 96px;
  --s9: 128px;
  --radius: 8px;
  --shadow: 0 12px 32px rgba(17, 21, 28, .08);
  --header-bg: rgba(246, 245, 242, .94);
  --grain-opacity: .03;
  --scrollbar-thumb: #c8c4b8;
  --scrollbar-track: transparent;
}

[data-theme="dark"] {
  --ink: #e1e4eb;
  --ink-soft: #99a2b4;
  --paper: #181b23;
  --white: #21252f;
  --line: #2f3540;
  --navy: #5b9cf0;
  --navy-dark: #4a85d6;
  --blue-wash: #1c2235;
  --gold: #d4a61c;
  --gold-wash: #27241a;
  --red: #e8715f;
  --red-wash: #2c1d1a;
  --green: #3eb896;
  --green-wash: #1a2c25;
  --shadow: 0 12px 32px rgba(0, 0, 0, .3);
  --header-bg: rgba(24, 27, 35, .94);
  --grain-opacity: .05;
  --scrollbar-thumb: #3a3f4a;
  --scrollbar-track: transparent;
}

[data-theme="dark"] .nav-toggle span:not(.sr-only) {
  background: var(--ink);
}

[data-theme="dark"] .button--paper {
  background: var(--inky-bg, var(--paper));
  color: var(--ink);
  border-color: var(--line);
}

[data-theme="dark"] .button--paper:hover {
  background: var(--blue-wash);
  color: var(--navy);
  border-color: var(--navy);
}

[data-theme="dark"] .section--white {
  background: var(--paper);
}

[data-theme="dark"] .page-hero--ink {
  background: #0f1218;
  color: #fff;
}

[data-theme="dark"] .page-hero--ink .eyebrow {
  color: var(--navy);
}

[data-theme="dark"] .page-hero--ink .lede {
  color: #99a2b4;
}

[data-theme="dark"] .page-hero--ink .chip {
  background: transparent;
  border-color: rgba(225, 228, 235, .2);
  color: rgba(225, 228, 235, .75);
}

[data-theme="dark"] .page-hero--ink .stat-line {
  color: #99a2b4;
  border-left-color: var(--gold);
}

[data-theme="dark"] .proof-card__media {
  background: var(--blue-wash);
}

[data-theme="dark"] .proof-boundary {
  border-top-color: var(--line);
}

[data-theme="dark"] .contact-band {
  background: #111820;
}

[data-theme="dark"] .contact-band p:not(.eyebrow) {
  color: #99a2b4;
}

[data-theme="dark"] .site-footer {
  background: #0f1218;
}

[data-theme="dark"] .site-footer,
[data-theme="dark"] .site-footer a {
  color: #8b95a8;
}

[data-theme="dark"] .footer-bottom {
  border-top-color: #2f3540;
}

[data-theme="dark"] .footer-bottom,
[data-theme="dark"] .footer-bottom a {
  color: #6b7590;
}

[data-theme="dark"] .brand--light .brand__name {
  color: transparent;
  -webkit-text-stroke: .6px var(--ink);
}

[data-theme="dark"] .brand--light .brand__tag {
  color: rgba(225, 228, 235, .65);
}

[data-theme="dark"] .hero-kicker::before {
  background: var(--gold);
}

[data-theme="dark"] .section--ink {
  background: #0f1218;
}

[data-theme="dark"] .section--ink .lede {
  color: #99a2b4;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
}

a {
  color: inherit;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--navy);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(28, 62, 110, .38);
  outline-offset: 3px;
}

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

button,
input,
textarea {
  font: inherit;
}

.shell {
  width: min(1180px, calc(100% - 48px));
  margin: auto;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.eyebrow {
  margin: 0 0 var(--s3);
  font: 600 .75rem/1.2 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--navy);
}

.eyebrow--light {
  color: #cddbf0;
}

.section {
  padding: var(--s8) 0;
}

.section--tight {
  padding: var(--s7) 0;
}

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

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

.section-heading {
  max-width: 860px;
  margin-bottom: var(--s6);
}

.section-heading .lede {
  max-width: none;
}

h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.12;
  letter-spacing: 0;
  margin: 0;
  color: inherit;
}

h1 {
  font-size: clamp(2.5rem, 4.2vw, 4rem);
  max-width: 810px;
}

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

h3 {
  font-size: clamp(1.3rem, 2vw, 1.65rem);
}

p {
  margin: 0 0 var(--s3);
  max-width: 68ch;
}

h1+p,
h2+p,
h3+p,
h1+ul,
h2+ul,
h3+ul,
h1+ol,
h2+ol,
h3+ol {
  margin-top: var(--s3);
}

.lede {
  font-size: clamp(1.08rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  color: var(--ink-soft);
}

.section--ink .lede {
  color: #d9dfe8;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  gap: 12px;
  background: var(--navy);
  color: #fff;
  border: 1px solid var(--navy);
  border-radius: var(--radius);
  padding: 12px 18px;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
  position: relative;
  overflow: hidden;
}

.button::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,.15) 0%, transparent 70%);
  opacity: 0;
  transition: opacity .3s ease;
}

.button:hover::after {
  opacity: 1;
}

.button:hover {
  color: #fff;
  background: var(--navy-dark);
  border-color: var(--navy-dark);
  transform: translateY(-1px);
}

.button--secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}

.button--secondary:hover {
  background: var(--blue-wash);
  color: var(--navy);
  border-color: var(--navy);
}

.button--paper {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.button--paper:hover {
  background: var(--blue-wash);
  color: var(--navy);
  border-color: var(--blue-wash);
}

.button:disabled {
  cursor: wait;
  opacity: .7;
  transform: none;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: var(--s5);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background .3s ease, border-color .3s ease;
}

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

.brand {
  display: inline-flex;
  align-items: stretch;
  gap: 10px;
  max-width: 230px;
  color: var(--ink);
  font-weight: 400;
  text-decoration: none;
}

.brand__bar {
  width: 4px;
  flex: 0 0 4px;
  background: var(--navy);
}

.brand__stack {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-width: 0;
}

.brand__name {
  font: 700 1.15rem/1.05 var(--display);
  white-space: nowrap;
}

.brand__rule {
  height: 1px;
  width: 100%;
  background: var(--navy);
}

.brand__tag {
  font: 600 .53rem/1.2 var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--navy);
  white-space: nowrap;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav>a {
  font-size: .92rem;
  text-decoration: none;
}

.site-nav>a[aria-current="page"] {
  color: var(--navy);
  font-weight: 700;
}

.nav-contact {
  padding: 9px 13px;
  background: var(--navy);
  color: #fff !important;
  border-radius: 5px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
  transition: transform .25s ease, opacity .25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  padding: clamp(48px, 7vw, 80px) 0 var(--s7);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
  gap: var(--s6);
  align-items: end;
}

.hero-copy .lede {
  margin-top: var(--s4);
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
  font-size: .9rem;
  margin-bottom: var(--s4);
}

.hero-kicker::before {
  content: '';
  height: 1px;
  width: 36px;
  background: var(--gold);
}

.hero-portrait {
  position: relative;
  min-height: 360px;
  background: var(--blue-wash);
  border-radius: 8px;
  overflow: hidden;
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.portrait-note {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(17, 21, 28, .93);
  padding: 15px 18px;
  color: #fff;
  font: 400 .78rem var(--mono);
}

.trust-strip {
  border-block: 1px solid var(--line);
  background: var(--white);
}

.trust-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.trust-item {
  padding: 18px 24px;
  border-right: 1px solid var(--line);
  font-size: .92rem;
}

.trust-item:last-child {
  border-right: 0;
}

.trust-item strong {
  display: block;
  font: 600 .72rem var(--mono);
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 3px;
}

.trust-item__value,
.trust-item small {
  display: block;
}

.trust-item small {
  margin-top: var(--s1);
  color: var(--ink-soft);
  font-size: .78rem;
  line-height: 1.45;
}

.ledger {
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  background: var(--white);
  padding: clamp(24px, 4vw, 48px);
  box-shadow: var(--shadow);
}

.ledger-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
  padding-bottom: var(--s5);
  border-bottom: 1px solid var(--line);
}

.ledger-head h2 {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  max-width: 620px;
}

.ledger-date {
  font: 400 .7rem var(--mono);
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-top: 4px;
  white-space: nowrap;
}

.ledger-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: var(--s5);
}

.ledger-grid>div {
  padding: 0 var(--s4);
  border-right: 1px solid var(--line);
}

.ledger-grid>div:first-child {
  padding-left: 0;
}

.ledger-grid>div:last-child {
  border-right: 0;
  padding-right: 0;
}

.ledger-grid span,
.ledger-grid small {
  display: block;
  font: .72rem/1.45 var(--mono);
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: .03em;
}

.ledger-grid strong {
  display: block;
  margin: 8px 0;
  font: 600 clamp(1.1rem, 2vw, 1.55rem)/1.25 var(--mono);
  color: var(--ink);
}

.ledger-verdict strong {
  color: var(--navy);
}

.ledger-footnote {
  margin: var(--s5) 0 0;
  padding-top: var(--s3);
  border-top: 1px solid var(--line);
  font-size: .88rem;
  color: var(--ink-soft);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s6);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s4);
}

.card {
  position: relative;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  padding: var(--s5);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.card:hover {
  border-color: var(--navy);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.card a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

.card h2 {
  font-size: clamp(1.55rem, 2.4vw, 2.2rem);
  margin-bottom: var(--s3);
}

.card h3 {
  margin-bottom: var(--s3);
}

.card p:last-child {
  margin-bottom: 0;
}

.section--tight .card .lede {
  max-width: none;
}

.card-label {
  display: block;
  font: .72rem var(--mono);
  text-transform: uppercase;
  color: var(--navy);
  letter-spacing: .05em;
  margin-bottom: var(--s3);
}

.money-questions {
  counter-reset: question;
}

.question {
  position: relative;
  padding-left: 72px;
}

.question::before {
  counter-increment: question;
  content: '0' counter(question);
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--gold);
  font: 600 1rem var(--mono);
}

.question h3 {
  margin-bottom: 10px;
}

.feature-list {
  list-style: none;
  margin: var(--s4) 0 0;
  padding: 0;
}

.feature-list li {
  padding: 11px 0 11px 20px;
  border-top: 1px solid var(--line);
  position: relative;
}

.feature-list li::before {
  content: '+';
  position: absolute;
  left: 0;
  color: var(--navy);
  font-weight: 700;
}

.feature-list--columns {
  columns: 2;
  column-gap: var(--s6);
}

.feature-list--columns li {
  break-inside: avoid;
}

.proof-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: visible;
}

.proof-card__media {
  aspect-ratio: 3/1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
  border-bottom: 1px solid var(--line);
  background: var(--blue-wash);
}

.proof-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}

.proof-card__body {
  padding: var(--s4);
}

.proof-card .card-label {
  color: var(--green);
}

.proof-boundary {
  font-size: .86rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.evidence-gallery {
  display: grid;
  gap: var(--s5);
}

.evidence-item {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
}

.evidence-item img {
  width: 100%;
  height: auto;
  max-height: 680px;
  object-fit: contain;
  background: var(--blue-wash);
  padding: clamp(8px, 2vw, 20px);
}

.evidence-item figcaption {
  padding: var(--s3) var(--s4);
  border-top: 1px solid var(--line);
  font-size: .9rem;
  color: var(--ink-soft);
}

.evidence-item figcaption strong {
  display: block;
  color: var(--ink);
  margin-bottom: 3px;
}

.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  background: var(--white);
}

.process-step {
  padding: var(--s5);
  border-right: 1px solid var(--line);
}

.process-step:last-child {
  border: 0;
}

.step-no {
  font: .75rem var(--mono);
  color: var(--gold);
  display: block;
  margin-bottom: var(--s5);
}

.process-step h3 {
  margin-bottom: 10px;
}

.quote {
  border-left: 4px solid var(--gold);
  padding: var(--s4);
  background: var(--gold-wash);
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  line-height: 1.35;
}

.contact-band {
  background: var(--navy);
  color: #fff;
  padding: var(--s7) 0;
}

.contact-band__inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: end;
}

.contact-band h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin-bottom: var(--s3);
}

.contact-band p:not(.eyebrow) {
  color: #d6e0ef;
}

.contact-band__note {
  margin: var(--s3) 0 0;
  font-size: 14px;
  color: rgba(246, 245, 242, .75);
  font-family: var(--mono);
}

.site-footer {
  background: var(--ink);
  color: #d9dfe8;
  padding: var(--s7) 0 var(--s4);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--s7);
}

.brand--light {
  color: var(--paper);
}

.brand--light .brand__name {
  color: transparent;
  -webkit-text-stroke: .6px var(--paper);
}

.brand--light .brand__tag {
  color: rgba(246, 245, 242, .72);
}

.site-footer p {
  font-size: .92rem;
}

.site-footer a {
  display: block;
  margin-bottom: 10px;
  color: #d9dfe8;
  font-size: .9rem;
}

.footer-label {
  font: .72rem var(--mono) !important;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #8fa2bc !important;
  margin-bottom: 16px !important;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #35404f;
  margin-top: var(--s6);
  padding-top: var(--s4);
  font-size: .8rem;
  color: #aab7c9;
}

.footer-bottom span:last-child {
  display: flex;
  gap: 16px;
}

.footer-bottom a {
  display: inline;
  margin: 0;
}

.page-hero {
  padding: var(--s7) 0 var(--s6);
  border-bottom: 1px solid var(--line);
}

.page-hero .lede {
  margin-top: var(--s4);
}

.page-hero .chip-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  padding: 0;
  margin: var(--s4) 0 0;
}

.page-hero--ink {
  background: var(--ink);
  color: #fff;
  border: 0;
}

.page-hero--ink .lede {
  color: #d9dfe8;
}

.page-hero--ink .stat-line {
  color: #d9dfe8;
  border-left: 2px solid var(--gold);
  padding-left: var(--s3);
}

.article {
  max-width: none;
}

.article p {
  max-width: none;
}

.article h2 {
  margin-top: var(--s7);
  margin-bottom: var(--s4);
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.article h3 {
  margin-top: var(--s5);
  margin-bottom: var(--s3);
}

.article .grid-2,
.article .table-wrap {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: none;
  width: auto;
  padding-left: calc(50vw - 50% + 24px);
  padding-right: calc(50vw - 50% + 24px);
}

.article .grid-2 {
  margin-top: var(--s4);
  margin-bottom: var(--s4);
}

.article .table-wrap {
  margin-top: var(--s4);
  margin-bottom: var(--s4);
}

.article ul,
.article ol {
  padding-left: 24px;
  margin-bottom: var(--s4);
}

.article li {
  margin-bottom: 10px;
}

.article blockquote {
  margin: var(--s5) 0;
  border-left: 4px solid var(--gold);
  padding: 16px 24px;
  background: var(--gold-wash);
  font-family: var(--display);
  font-size: 1.3rem;
}

.stat-line {
  font: 600 .88rem var(--mono);
  color: var(--navy);
  margin: var(--s4) 0 var(--s3);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--s6);
}

.filter-button {
  border: 1px solid var(--line);
  background: var(--white);
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 5px;
  color: var(--ink);
  cursor: pointer;
}

.filter-button[aria-pressed="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.chip-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  padding: 0;
  margin: var(--s4) 0 0;
}

.chip {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .02em;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink-soft);
  padding: 6px 12px;
  border-radius: 999px;
}

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

.chip a:hover {
  color: var(--navy);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s4);
}

.field {
  display: grid;
  gap: 7px;
}

.field--full {
  grid-column: 1/-1;
}

.field label {
  font-weight: 700;
  font-size: .9rem;
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--white);
  color: var(--ink);
}

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

.field input:focus,
.field textarea:focus,
.nav-toggle:focus,
.filter-button:focus {
  outline: 3px solid rgba(28, 62, 110, .25);
  outline-offset: 2px;
  border-color: var(--navy);
}

.form-submit {
  margin-top: var(--s4);
}

.form-status {
  margin: var(--s4) 0 0;
  padding: 12px 16px;
  border-left: 4px solid var(--green);
  background: var(--green-wash);
  color: var(--ink-soft);
  max-width: none;
}

.form-status--error {
  border-left-color: var(--red);
  background: var(--red-wash);
  color: var(--ink);
}

.form-note {
  margin: var(--s3) 0 0;
  font-size: 14px;
  color: var(--ink-soft);
  font-family: var(--mono);
}

.notice {
  padding: var(--s4);
  border-left: 4px solid var(--navy);
  background: var(--blue-wash);
  font-size: .95rem;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  background: var(--white);
}

.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.table th,
.table td {
  text-align: left;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.table th {
  font: .72rem var(--mono);
  text-transform: uppercase;
  color: var(--ink-soft);
  letter-spacing: .04em;
  background: var(--paper);
}

.table tr:last-child td {
  border-bottom: 0;
}

.tier-label {
  font: .72rem var(--mono);
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: .03em;
}

.empty-state {
  padding: var(--s6);
  background: var(--white);
  border: 1px solid var(--line);
}

.payback-window {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s4);
}

.payback-card {
  border: 1px solid var(--line);
  background: var(--white);
  padding: var(--s4);
  border-radius: var(--radius);
}

.payback-card h3 {
  margin-bottom: 10px;
}

/* ============================================================
   THEME TOGGLE
   ============================================================ */

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  color: var(--ink-soft);
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.theme-toggle:hover {
  background: var(--blue-wash);
  border-color: var(--navy);
  color: var(--navy);
  transform: rotate(15deg);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  transition: transform .3s ease;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  display: block;
}

.theme-toggle .icon-sun {
  display: block;
}

.theme-toggle .icon-moon {
  display: none;
}

/* ============================================================
   READING PROGRESS BAR
   ============================================================ */

.reading-progress {
  position: fixed;
  top: 76px;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 30;
  background: transparent;
}

.reading-progress__bar {
  height: 100%;
  background: var(--gold);
  width: 0%;
  transition: width .1s linear;
  box-shadow: 0 0 8px rgba(184, 135, 11, .4);
}

/* ============================================================
   BACK-TO-TOP BUTTON
   ============================================================ */

.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--line);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 40;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity .3s ease, visibility .3s ease, transform .3s ease, background .2s ease;
  box-shadow: var(--shadow);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

.back-to-top__progress {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--gold);
  animation: none;
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal--left {
  transform: translateX(-40px);
}

.reveal--right {
  transform: translateX(40px);
}

.reveal--scale {
  transform: scale(.94);
}

.reveal--fade {
  transform: none;
}

.reveal.is-visible {
  opacity: 1;
  transform: translate(0) scale(1);
}

.reveal-delay-1 {
  transition-delay: .1s;
}

.reveal-delay-2 {
  transition-delay: .2s;
}

.reveal-delay-3 {
  transition-delay: .3s;
}

.reveal-delay-4 {
  transition-delay: .4s;
}

.reveal-delay-5 {
  transition-delay: .5s;
}

/* ============================================================
   NUMBER COUNTER
   ============================================================ */

.counter {
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   MAGNETIC CARD TILT
   ============================================================ */

.card--magnetic {
  transition: transform .1s ease-out, border-color .3s ease, box-shadow .3s ease;
  will-change: transform;
}

.card--magnetic:hover {
  transform: none; /* Managed by JS */
  border-color: var(--line);
  box-shadow: none;
}

.card--magnetic.is-hovering {
  border-color: var(--navy);
  box-shadow: var(--shadow);
}

/* ============================================================
   PAGE TRANSITIONS
   ============================================================ */

body {
  opacity: 1;
  transition: opacity .3s ease, background .3s ease, color .3s ease;
}

body.is-transitioning {
  opacity: 0;
}

/* ============================================================
   BACKGROUND TEXTURE (GRAIN OVERLAY)
   ============================================================ */

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ============================================================
   CUSTOM SCROLLBAR
   ============================================================ */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}

::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--ink-soft);
}

html {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

/* ============================================================
   ANIMATED TIMELINE (SCROLL-DRIVEN)
   ============================================================ */

.process-step {
  position: relative;
  transition: transform .3s ease, box-shadow .3s ease;
}

.process-step.is-active {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.process-step .step-no {
  transition: color .3s ease, transform .3s ease;
}

.process-step.is-active .step-no {
  color: var(--navy);
  transform: scale(1.1);
}

/* ============================================================
   HERO DECORATIVE ELEMENTS
   ============================================================ */

.hero::after {
  content: '';
  position: absolute;
  top: -120px;
  right: -60px;
  width: 400px;
  height: 400px;
  border: 1px solid var(--line);
  border-radius: 50%;
  opacity: .3;
  pointer-events: none;
}

/* ============================================================
   MEDIA QUERIES - 850px
   ============================================================ */

@media (max-width: 850px) {
  .brand {
    max-width: 190px;
  }

  .brand__name {
    font-size: 1rem;
  }

  .brand__tag {
    font-size: .48rem;
  }

  .site-nav {
    position: absolute;
    inset: 76px 0 auto;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 16px 24px 24px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

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

  .site-nav>a {
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
  }

  .site-nav .nav-contact {
    text-align: center;
    border: 0;
    margin-top: 16px;
  }

  .nav-toggle {
    display: block;
  }

  .hero-grid,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .hero-portrait {
    max-width: 540px;
    min-height: 340px;
  }

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

  .contact-band__inner {
    align-items: start;
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--s5);
  }

  .footer-grid>div:first-child {
    grid-column: 1/-1;
  }

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

  .process-step {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .process-step:last-child {
    border-bottom: 0;
  }

  .back-to-top {
    bottom: 80px;
    right: 16px;
  }
}

/* ============================================================
   MEDIA QUERIES - 600px
   ============================================================ */

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  .proof-card__media {
    aspect-ratio: 5/2;
  }

  .brand {
    max-width: 174px;
    gap: 8px;
  }

  .brand__bar {
    width: 3px;
    flex-basis: 3px;
  }

  .brand__name {
    font-size: .92rem;
  }

  .brand__tag {
    font-size: .43rem;
  }

  .shell {
    width: min(100% - 32px, 1180px);
  }

  .section {
    padding: var(--s7) 0;
  }

  .hero {
    padding-top: var(--s7);
  }

  .hero-portrait {
    min-height: 300px;
  }

  .trust-items,
  .ledger-grid,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .trust-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .trust-item:last-child {
    border: 0;
  }

  .ledger-head {
    flex-direction: column;
  }

  .ledger-grid>div {
    padding: var(--s3) 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .ledger-grid>div:first-child {
    padding-top: 0;
  }

  .ledger-grid>div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

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

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

  .footer-grid>div:first-child {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .page-hero {
    padding: var(--s7) 0 var(--s6);
  }

  .feature-list--columns {
    columns: 1;
  }

  .payback-window {
    grid-template-columns: 1fr;
  }

  .back-to-top {
    bottom: 80px;
    right: 16px;
    width: 40px;
    height: 40px;
  }
}

/* ============================================================
   MOBILE STICKY CTA
   ============================================================ */

.mobile-sticky-cta {
  display: none;
}

@media (max-width: 600px) {
  .mobile-sticky-cta {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: var(--header-bg);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 50;
  }

  .mobile-sticky-cta .button {
    width: 100%;
  }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */

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

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }

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

  .back-to-top {
    transition: none;
  }
}

[hidden] {
  display: none !important;
}
