@import url("https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --brand: #e10600;
  --brand-deep: #b10500;
  --ink: #1c1412;
  --muted: #6b5e57;
  --cream: #f3eee6;
  --cream-2: #eae3d8;
  --paper: #fffaf4;
  --line: rgba(28, 20, 18, 0.1);
  --dark: #120c0b;
  --dark-2: #1e1513;
  --gold: #c4a484;
  --shadow: 0 28px 60px -28px rgba(28, 20, 18, 0.45);
  --radius: 1.5rem;
  --font: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --display: "Instrument Serif", Georgia, serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 92% -8%, rgba(225, 6, 0, 0.1), transparent 55%),
    radial-gradient(700px 280px at 0% 12%, rgba(196, 164, 132, 0.18), transparent 50%),
    var(--cream);
}

body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' 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)'/%3E%3C/svg%3E");
}

::selection {
  background: #e10600;
  color: #fff;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -40px;
  z-index: 300;
  background: #111;
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
}
.skip-link:focus { top: 1rem; }

h1, h2, .display {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.03em;
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 0.85rem 0.75rem 0;
}

@media (max-width: 720px) {
  .site-header-inner a.btn-solid { display: none; }
}

[data-page]:not([data-page="home"]) main > section.border-b {
  background: linear-gradient(180deg, rgba(255,250,244,.7), transparent);
  border-bottom: 0 !important;
}
[data-page]:not([data-page="home"]) main > section.border-b img {
  border-radius: 1.6rem;
}
[data-page]:not([data-page="home"]) a.rounded-full.bg-rose-600,
[data-page]:not([data-page="home"]) .bg-rose-600 {
  background: var(--brand) !important;
}
[data-page]:not([data-page="home"]) a.rounded-3xl.border {
  background: var(--paper);
  border-color: var(--line) !important;
  transition: transform .2s ease, box-shadow .2s ease;
}
[data-page]:not([data-page="home"]) a.rounded-3xl.border:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.site-header-inner {
  margin: 0 auto;
  max-width: 1180px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.65rem 0.55rem 0.85rem;
  background: rgba(255, 250, 244, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(28, 20, 18, 0.08);
  border-radius: 999px;
  box-shadow: 0 10px 40px -20px rgba(28, 20, 18, 0.35);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  padding-left: 0.2rem;
}
.brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  box-shadow: 0 6px 16px -8px #e10600;
}
.brand-kicker {
  display: block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
}
.brand-name {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.nav-primary {
  display: none;
  align-items: center;
  gap: 0.15rem;
}
.nav-primary a {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #4a403c;
  text-decoration: none;
}
.nav-primary a:hover,
.nav-primary a.is-active {
  background: var(--ink);
  color: #fff;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.icon-btn,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.84rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.icon-btn {
  width: 40px;
  height: 40px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn:hover { transform: translateY(-1px); }
.btn-solid {
  background: var(--brand);
  color: #fff;
  padding: 0.7rem 1.15rem;
  box-shadow: 0 10px 24px -12px #e10600;
}
.btn-solid:hover { background: var(--brand-deep); }
.btn-ghost {
  background: #fff;
  color: var(--ink);
  padding: 0.7rem 1.15rem;
  border: 1px solid var(--line);
}
.btn-dark {
  background: var(--ink);
  color: #fff;
  padding: 0.7rem 1.15rem;
}
.mobile-panel {
  display: none;
  margin: 0.6rem auto 0;
  max-width: 1180px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  padding: 0.7rem;
  box-shadow: var(--shadow);
}
.mobile-panel.open { display: block; }
.mobile-panel a {
  display: block;
  padding: 0.7rem 0.9rem;
  border-radius: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
}
.mobile-panel a:hover { background: var(--cream-2); }
@media (min-width: 1100px) {
  .nav-primary { display: flex; }
  .menu-toggle { display: none !important; }
}

/* ——— Home hero ——— */
.hero {
  position: relative;
  overflow: hidden;
  margin: 0.8rem auto 0;
  max-width: 1240px;
  border-radius: 2.2rem;
  background: var(--dark);
  color: #f7f1ea;
  min-height: 86vh;
  display: grid;
  align-items: center;
}
.hero-glow {
  position: absolute;
  width: 520px;
  height: 520px;
  right: -80px;
  top: -120px;
  background: radial-gradient(circle, rgba(225, 6, 0, 0.45), transparent 68%);
  filter: blur(10px);
}
.hero-glow-2 {
  position: absolute;
  width: 380px;
  height: 380px;
  left: -100px;
  bottom: -80px;
  background: radial-gradient(circle, rgba(196, 164, 132, 0.28), transparent 70%);
}
.hero-grid {
  position: relative;
  display: grid;
  gap: 2rem;
  padding: 4.5rem 1.5rem 4rem;
}
@media (min-width: 980px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    padding: 5.5rem 3.4rem 5rem;
    gap: 2.5rem;
  }
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.7rem 0.35rem 0.4rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f3c7c3;
}
.eyebrow i {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--brand);
  display: inline-block;
}
.hero h1 {
  margin: 1.1rem 0 0;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 0.95;
  color: #fffaf4;
  max-width: 11ch;
}
.hero h1 em {
  font-style: italic;
  color: #f3c7c3;
}
.hero-lead {
  margin-top: 1.25rem;
  max-width: 38rem;
  font-size: 1.08rem;
  line-height: 1.75;
  color: rgba(247, 241, 234, 0.72);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.8rem;
}
.hero .btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.18);
}
.trust-line {
  margin-top: 1.4rem;
  font-size: 0.82rem;
  color: rgba(247, 241, 234, 0.5);
}
.trust-line a { color: #ffd2cc; }

.stage {
  position: relative;
  min-height: 380px;
}
.stage img {
  position: absolute;
  object-fit: cover;
  border-radius: 1.1rem;
  box-shadow: 0 30px 70px -20px rgba(0,0,0,0.65);
  border: 1px solid rgba(255,255,255,0.12);
  background: #fff;
}
.stage-a { width: 78%; right: 0; top: 8%; z-index: 2; transform: rotate(3.5deg); }
.stage-b { width: 58%; left: 0; top: 0; z-index: 1; transform: rotate(-8deg); }
.stage-c { width: 48%; left: 10%; bottom: 0; z-index: 3; transform: rotate(6deg); }
@media (max-width: 979px) {
  .stage { height: 340px; }
  .hero { min-height: auto; border-radius: 1.5rem; margin-inline: 0.75rem; }
}

.marquee-wrap {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.marquee {
  display: flex;
  gap: 2.5rem;
  padding: 1rem 0;
  width: max-content;
  animation: marquee 28s linear infinite;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--muted);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.wrap {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}
.section { padding: 5rem 0; }
.kicker {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
}
.lede {
  margin-top: 0.85rem;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--muted);
  max-width: 40rem;
}

.stats {
  display: grid;
  gap: 1rem;
  padding: 2.2rem 0 0;
}
@media (min-width: 800px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat {
  padding: 1.4rem 1.3rem 1.5rem;
  background: var(--paper);
  border-radius: 1.4rem;
  border: 1px solid var(--line);
}
.stat b {
  display: block;
  font-family: var(--display);
  font-size: 2.4rem;
  font-weight: 400;
  line-height: 1;
}
.stat span {
  display: block;
  margin-top: 0.55rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted);
}

.bento {
  display: grid;
  gap: 1rem;
  margin-top: 2.2rem;
}
@media (min-width: 900px) {
  .bento { grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: auto auto; }
  .bento a:first-child { grid-row: 1 / span 2; }
}
.tile {
  position: relative;
  overflow: hidden;
  border-radius: 1.6rem;
  min-height: 220px;
  color: #fff;
  text-decoration: none;
  isolation: isolate;
}
.tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.tile:hover img { transform: scale(1.06); }
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(18, 12, 11, 0.88) 100%);
}
.tile-body {
  position: relative;
  z-index: 1;
  padding: 1.3rem 1.3rem 1.4rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.tile small {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f3c7c3;
}
.tile h3 {
  font-family: var(--display);
  font-size: 2rem;
  margin: 0.15rem 0 0.35rem;
}
.tile p { font-size: 0.9rem; line-height: 1.5; color: rgba(255,255,255,0.78); }
.bento a:first-child { min-height: 460px; }

.split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.mosaic {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0.75rem;
}
.mosaic img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 1.3rem;
}
.mosaic img:last-child { grid-column: 1 / -1; height: 210px; }

.story-row {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}
@media (min-width: 800px) { .story-row { grid-template-columns: 1.15fr 0.85fr; } }
.story-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.7rem;
  min-height: 420px;
  color: #fff;
  text-decoration: none;
}
.story-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.story-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(18,12,11,0.9));
}
.story-card div {
  position: relative;
  z-index: 1;
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.story-card h3 {
  font-family: var(--display);
  font-size: 1.85rem;
  margin: 0.3rem 0 0.5rem;
}

.fix-list {
  display: grid;
  gap: 0.7rem;
  margin-top: 2rem;
}
@media (min-width: 800px) { .fix-list { grid-template-columns: 1fr 1fr; } }
.fix {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.05rem 1.15rem;
  background: var(--paper);
  border-radius: 1.2rem;
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.fix:hover {
  transform: translateX(4px);
  border-color: #e10600;
}
.fix b {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  font-size: 0.75rem;
}
.fix strong { display: block; font-size: 0.98rem; color: var(--ink); }
.fix span { display: block; color: var(--muted); font-size: 0.82rem; margin-top: 0.15rem; }

.compare-table {
  overflow: hidden;
  border-radius: 1.5rem;
  background: var(--dark);
  color: #f7f1ea;
}
.compare-table table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td {
  padding: 0.95rem 1.2rem;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.92rem;
}
.compare-table th { color: #f3c7c3; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }
.compare-table td:last-child { font-weight: 800; color: #fff; }

.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: 2rem;
  min-height: 340px;
  color: #fff;
  display: grid;
  align-items: end;
}
.cta-band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18,12,11,0.88) 10%, rgba(18,12,11,0.25) 100%);
}
.cta-band-inner {
  position: relative;
  z-index: 1;
  padding: 2.4rem;
}
.cta-band h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  max-width: 14ch;
  margin: 0.4rem 0 0.8rem;
}

.faq-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  padding: 1rem 1.15rem;
  margin-bottom: 0.6rem;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 800;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] summary { color: var(--brand); }

.who-grid, .plat-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.8rem;
}
.plat-grid { margin-top: 2.4rem; }
@media (min-width: 720px) {
  .who-grid, .plat-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1100px) {
  .plat-grid { grid-template-columns: repeat(3, 1fr); }
}
.who-card, .plat-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1.45rem;
  padding: 1.3rem 1.25rem 1.35rem;
  text-decoration: none;
  color: inherit;
  min-height: 100%;
  box-sizing: border-box;
  transition: transform .2s ease, box-shadow .2s ease;
}
.who-card:hover, .plat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.who-card .kicker, .plat-card .kicker { margin: 0; }
.who-card h3, .plat-card h3 {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.15;
  margin: 0.35rem 0 0.5rem;
  overflow-wrap: break-word;
}
.who-card p, .plat-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

.week-steps {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.8rem;
}
@media (min-width: 900px) { .week-steps { grid-template-columns: 1fr 1fr; } }
.week-step {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  padding: 1.15rem 1.2rem 1.25rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
  min-width: 0;
}
.week-step b {
  flex-shrink: 0;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  font-size: 0.78rem;
}
.week-step h3 {
  font-size: 1rem;
  margin: 0 0 0.3rem;
  line-height: 1.3;
}
.week-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.65;
}
.week-step a { color: var(--brand); font-weight: 750; }

.home-essay {
  display: grid;
  gap: 1rem;
  margin-top: 1.8rem;
  align-items: stretch;
}
@media (min-width: 800px) { .home-essay { grid-template-columns: 1fr 1fr; } }
.essay-col {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  padding: 1.5rem 1.45rem 1.6rem;
  min-width: 0;
}
.essay-col h3 {
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 0.7rem;
}
.essay-col p, .essay-col li {
  color: var(--muted);
  line-height: 1.75;
  font-size: 0.95rem;
}
.essay-col p { margin: 0 0 0.85rem; }
.essay-col ul { margin: 0; padding: 0 0 0 1.15rem; }
.essay-col li { margin: 0.35rem 0; }
.home-copy {
  margin-top: 1rem;
  padding: 1.4rem 1.5rem 0.4rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
}
.home-copy p {
  color: var(--muted);
  line-height: 1.8;
  margin: 0 0 1rem;
  font-size: 1.02rem;
  max-width: 52rem;
}
.home-copy a { color: var(--brand); font-weight: 750; }

.story-card p {
  margin: 0;
  color: rgba(255,255,255,0.82);
  font-size: 0.9rem;
  line-height: 1.55;
}
@media (min-width: 800px) {
  .story-row.four { grid-template-columns: 1fr 1fr; }
  .story-row.four .story-card { min-height: 360px; }
}

.faq-home { max-width: 44rem; }

/* Footer */
.site-footer {
  margin-top: 2rem;
  background: var(--dark);
  color: rgba(247,241,234,0.7);
  padding: 3.5rem 0 0;
}
.site-footer a { color: #fffaf4; text-decoration: none; }
.site-footer a:hover { color: #f3c7c3; }
.foot-grid {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  padding-bottom: 2.5rem;
}
@media (min-width: 800px) { .foot-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.site-footer h2 {
  font-family: var(--font);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f3c7c3;
  margin-bottom: 0.9rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0.4rem 0; font-size: 0.9rem; }
.foot-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1rem 0 1.2rem;
  font-size: 0.78rem;
  color: rgba(247,241,234,0.45);
}
.foot-bottom-inner {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
  justify-content: space-between;
}

/* Inner pages inherit a richer look */
[data-page]:not([data-page="home"]) main h1 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.03em;
}
[data-page]:not([data-page="home"]) main img.rounded-\[2rem\],
[data-page]:not([data-page="home"]) main img[class*="rounded"] {
  box-shadow: var(--shadow);
}
[data-page]:not([data-page="home"]) .prose-article h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 2rem;
  letter-spacing: -0.03em;
  margin: 2.4rem 0 0.85rem;
}
.prose-article h3 { font-size: 1.15rem; font-weight: 800; margin: 1.7rem 0 0.55rem; }
.prose-article p,
.prose-article li { color: #4a403c; line-height: 1.8; }
.prose-article p { margin: 0 0 1rem; }
.prose-article ul, .prose-article ol { margin: 0 0 1.15rem 1.2rem; }
.prose-article li { margin: 0.35rem 0; }
.prose-article a { color: var(--brand); text-underline-offset: 3px; }
.prose-article code {
  font-size: 0.9em;
  background: var(--cream-2);
  padding: 0.12rem 0.35rem;
  border-radius: 0.35rem;
}
.prose-article pre {
  background: var(--dark);
  color: #f7f1ea;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  overflow: auto;
  font-size: 0.86rem;
  line-height: 1.6;
  margin: 0 0 1.2rem;
}
.prose-article blockquote {
  border-left: 3px solid var(--brand);
  background: #fff;
  padding: 0.95rem 1.1rem;
  margin: 1.2rem 0;
  border-radius: 0 1rem 1rem 0;
}
.prose-article table { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin: 1rem 0 1.4rem; }
.prose-article th, .prose-article td {
  border: 1px solid var(--line);
  padding: 0.7rem 0.8rem;
  text-align: left;
  vertical-align: top;
}
.prose-article th { background: var(--paper); }

#search-modal .relative {
  border-radius: 1.5rem !important;
  background: var(--paper) !important;
}

body.bg-white {
  background:
    radial-gradient(900px 420px at 92% -8%, rgba(225, 6, 0, 0.1), transparent 55%),
    radial-gradient(700px 280px at 0% 12%, rgba(196, 164, 132, 0.18), transparent 50%),
    var(--cream) !important;
  color: var(--ink);
}

/* Breadcrumbs — compact capsule, same width language as the header */
main > div:has(> nav[aria-label="Breadcrumb"]) {
  width: min(1180px, calc(100% - 2rem)) !important;
  max-width: none !important;
  margin: 1.25rem auto 0 !important;
  padding: 0 !important;
}
.wrap > nav.crumbs,
.wrap > .crumbs {
  margin-top: 1.25rem;
}
nav[aria-label="Breadcrumb"],
.crumbs {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  width: max-content;
  max-width: 100%;
  gap: 0.2rem 0.15rem;
  padding: 0.42rem 0.95rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  box-shadow: 0 8px 24px -18px rgba(28, 20, 18, 0.4);
  box-sizing: border-box;
}
nav[aria-label="Breadcrumb"] a,
.crumbs a {
  color: var(--muted);
  text-decoration: none;
}
nav[aria-label="Breadcrumb"] a:hover,
.crumbs a:hover { color: var(--brand); }
nav[aria-label="Breadcrumb"] span.mx-2,
.crumbs .sep {
  color: var(--gold) !important;
  margin: 0 0.35rem !important;
  font-weight: 400;
}
nav[aria-label="Breadcrumb"] span.text-slate-800,
.crumbs .here {
  color: var(--ink) !important;
}

/* Inner heroes */
[data-page]:not([data-page="home"]) main > section.border-b > div {
  width: min(1180px, 100%);
  max-width: none;
  margin-inline: auto;
  padding-top: 2.2rem !important;
  padding-bottom: 2.6rem !important;
}
[data-page]:not([data-page="home"]) main h1 {
  font-family: var(--display) !important;
  font-weight: 400 !important;
  letter-spacing: -0.03em !important;
  line-height: 1.06 !important;
  color: var(--ink) !important;
}
[data-page]:not([data-page="home"]) p[class*="text-rose-600"],
[data-page]:not([data-page="home"]) p.kicker {
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase;
  color: var(--brand) !important;
  margin: 0;
}
[data-page]:not([data-page="home"]) p[class*="text-slate-600"] {
  color: var(--muted) !important;
}
[data-page]:not([data-page="home"]) main > section.mx-auto,
[data-page]:not([data-page="home"]) main > div.mx-auto.grid {
  width: min(1180px, calc(100% - 2rem));
  max-width: none;
  margin-inline: auto;
}
aside[class*="sticky"],
.toc-card {
  position: sticky;
  top: 5.5rem;
  height: fit-content;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1.3rem;
  padding: 1rem 1.1rem;
}
aside[class*="sticky"] p,
.toc-card p {
  color: var(--gold) !important;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0;
}
#toc {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.55rem;
}
#toc a {
  color: var(--muted) !important;
  text-decoration: none;
  font-weight: 650;
  font-size: 0.86rem;
}
#toc a:hover { color: var(--brand) !important; }

.page-hero {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding: 2rem 0 2.4rem;
}
@media (min-width: 900px) { .page-hero { grid-template-columns: 1.1fr 0.9fr; } }
.page-hero img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 1.6rem;
  box-shadow: var(--shadow);
}
@media (min-width: 900px) { .page-hero img { height: 340px; } }
.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.05;
  margin: 0.55rem 0 0;
}
.article-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
  padding-bottom: 4rem;
}
@media (min-width: 960px) {
  .article-grid { grid-template-columns: minmax(0, 1fr) 230px; }
}
.more-block {
  margin: 0 0 3rem;
  padding: 1.6rem 1.5rem 1.7rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
}
.more-block h2 { margin-top: 0; }
.more-block ul { margin: 0.7rem 0 0; padding: 0; list-style: none; }
.more-block li { margin: 0.45rem 0; }
.more-block a { color: var(--brand); font-weight: 750; text-decoration: none; }
.more-block a:hover { text-decoration: underline; }

.card-section { padding: 0 0 2.8rem; }
.card-section > h2 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  font-weight: 400;
  margin: 0 0 0.35rem;
}
.card-section > p { color: var(--muted); max-width: 40rem; line-height: 1.75; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1.4rem; }

[data-page]:not([data-page="home"]) a.rounded-2xl.border,
[data-page]:not([data-page="home"]) a.rounded-3xl.border {
  background: var(--paper);
  border-color: var(--line) !important;
  color: inherit;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
[data-page]:not([data-page="home"]) a.rounded-2xl.border:hover,
[data-page]:not([data-page="home"]) a.rounded-3xl.border:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
[data-page]:not([data-page="home"]) h2.text-xl,
[data-page]:not([data-page="home"]) h2.text-2xl,
[data-page]:not([data-page="home"]) h3.text-xl {
  font-family: var(--display);
  font-weight: 400 !important;
  letter-spacing: -0.02em;
}

.prose-article h3 {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 400;
  margin: 1.4rem 0 0.45rem;
}

.page-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  padding: 1.4rem 1.5rem 1.6rem;
}
.page-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 800;
}
.page-form label + label { margin-top: 0.9rem; }
.page-form input,
.page-form textarea {
  display: block;
  margin-top: 0.4rem;
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 0.85rem;
  padding: 0.55rem 0.75rem;
  font: inherit;
  color: var(--ink);
  box-sizing: border-box;
}
.page-form .hint {
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--muted);
}

.lang-switch {
  position: relative;
}
.lang-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 40px;
  padding: 0 0.8rem 0 0.7rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  font: 800 0.72rem/1 var(--font);
  letter-spacing: 0.04em;
  cursor: pointer;
}
.lang-switch-btn svg { color: var(--brand); flex-shrink: 0; }
.lang-switch-btn:hover,
.lang-switch.is-open .lang-switch-btn {
  border-color: rgba(28, 20, 18, 0.22);
  background: var(--paper);
}
.lang-switch-menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  inset-inline-end: 0;
  min-width: 11.5rem;
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--paper);
  box-shadow: var(--shadow);
  z-index: 80;
}
.lang-switch-menu a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 0.75rem;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 700;
}
.lang-switch-menu a:hover { background: var(--cream-2); }
.lang-switch-menu a[aria-current="true"] {
  background: var(--ink);
  color: #fff;
}

html[lang="zh-CN"] {
  --font: "Noto Sans SC", "Manrope", ui-sans-serif, system-ui, sans-serif;
  --display: "Noto Sans SC", "Instrument Serif", Georgia, serif;
}
html[lang="ru"] {
  --font: "Noto Sans", "Manrope", ui-sans-serif, system-ui, sans-serif;
}
html[lang="he"] {
  --font: "Noto Sans Hebrew", "Manrope", ui-sans-serif, system-ui, sans-serif;
  --display: "Noto Sans Hebrew", "Instrument Serif", serif;
}
html[lang="ja"] {
  --font: "Noto Sans JP", "Manrope", ui-sans-serif, system-ui, sans-serif;
  --display: "Noto Sans JP", "Instrument Serif", serif;
}
html[lang="hi"] {
  --font: "Noto Sans Devanagari", "Manrope", ui-sans-serif, system-ui, sans-serif;
  --display: "Noto Sans Devanagari", "Instrument Serif", serif;
}

html[dir="rtl"] .brand-kicker { letter-spacing: 0.06em; }
html[dir="rtl"] .essay-col ul { padding: 0 1.15rem 0 0; }
html[dir="rtl"] .crumbs { direction: rtl; }
html[dir="rtl"] .lang-switch-menu { text-align: right; }

@media (max-width: 420px) {
  .lang-switch-btn span { display: none; }
  .nav-actions .btn-solid { padding-inline: 0.85rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
