:root {
  color-scheme: light;
  --ink: #201713;
  --muted: #725f56;
  --paper: #fffaf2;
  --paper-deep: #f3e6d7;
  --linen: #efe3d4;
  --clay: #a7553a;
  --clay-dark: #743829;
  --moss: #576a43;
  --teal: #1f6a69;
  --plum: #5f3855;
  --gold: #c69b57;
  --charcoal: #18120f;
  --border: rgba(32, 23, 19, 0.14);
  --shadow: 0 24px 80px rgba(45, 29, 21, 0.16);
  --max: 1180px;
}

* {
  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.5;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 50;
  transform: translateY(-180%);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--ink);
  padding: 0.7rem 1rem;
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

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

.hero {
  position: relative;
  min-height: 92svh;
  overflow: clip;
  isolation: isolate;
  color: #fff8ed;
  display: grid;
  align-items: end;
  padding: 1rem 0 4.5rem;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero::before {
  background:
    linear-gradient(90deg, rgba(20, 13, 10, 0.92) 0%, rgba(20, 13, 10, 0.70) 38%, rgba(20, 13, 10, 0.18) 72%),
    linear-gradient(0deg, rgba(20, 13, 10, 0.72) 0%, rgba(20, 13, 10, 0.04) 48%);
}

.hero::after {
  background: rgba(40, 21, 18, 0.18);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 42%;
}

.topbar {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 40;
  width: min(var(--max), calc(100% - 40px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  padding: 0.45rem;
  border: 1px solid rgba(255, 248, 237, 0.18);
  border-radius: 999px;
  background: rgba(24, 18, 15, 0.58);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 44px rgba(0, 0, 0, 0.22);
}

.topbar a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.58rem 0.95rem;
  color: rgba(255, 248, 237, 0.82);
  font-size: 0.85rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.topbar a:hover,
.topbar a:focus-visible {
  background: rgba(255, 248, 237, 0.13);
  color: #fff8ed;
  outline: none;
}

.topbar a.is-active {
  background: rgba(255, 248, 237, 0.15);
  color: #fff8ed;
}

.topbar .nav-cta {
  background: #fff8ed;
  color: var(--charcoal);
}

.hero-content {
  width: min(920px, calc(100% - 40px));
  margin: 7rem auto 0;
  margin-left: max(20px, calc((100vw - var(--max)) / 2));
}

.kicker,
.section-label {
  margin: 0 0 1rem;
  color: var(--clay-dark);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .kicker {
  color: #f4c98d;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.04;
  letter-spacing: 0;
}

h1 {
  max-width: 850px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7vw, 7.5rem);
  font-weight: 500;
}

h2 {
  max-width: 920px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.15rem, 4.4vw, 5.1rem);
  font-weight: 500;
}

h3 {
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  font-weight: 840;
}

.hero-thesis {
  max-width: 790px;
  margin: 1.45rem 0 0;
  color: rgba(255, 248, 237, 0.84);
  font-size: clamp(1.12rem, 2vw, 1.55rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr;
  gap: 1px;
  max-width: 1040px;
  margin-top: 2rem;
  overflow: hidden;
  border: 1px solid rgba(255, 248, 237, 0.18);
  border-radius: 8px;
  background: rgba(255, 248, 237, 0.16);
}

.hero-grid div {
  min-height: 144px;
  padding: 1.2rem;
  background: rgba(24, 18, 15, 0.58);
  backdrop-filter: blur(14px);
}

.hero-grid span {
  display: block;
  margin-bottom: 0.8rem;
  color: #f4c98d;
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-grid strong {
  display: block;
  color: #fff8ed;
  font-size: 1rem;
  line-height: 1.35;
}

.band {
  padding: clamp(4.5rem, 8vw, 8rem) 0;
}

.evidence-band {
  background: var(--paper);
}

.lead {
  max-width: 820px;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
}

.evidence-grid,
.market-grid,
.fix-grid,
.moves-grid,
.opportunity-grid,
.content-grid,
.gap-grid,
.source-grid {
  display: grid;
  gap: 1rem;
}

.evidence-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 2rem;
}

.evidence-grid article,
.market-grid article,
.fix-grid article,
.opportunity-grid article,
.timeline article,
.moves-grid article {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.54);
  box-shadow: 0 12px 32px rgba(45, 29, 21, 0.07);
}

.evidence-grid article {
  min-height: 150px;
  padding: 1.15rem;
}

.evidence-grid p {
  margin: 0.9rem 0 0;
  color: var(--muted);
}

.tag {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0.28rem 0.6rem;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-transform: uppercase;
  vertical-align: middle;
  white-space: normal;
}

.verified {
  background: #dce8d1;
  color: #2f4b28;
}

.estimate {
  background: #f3dfb9;
  color: #714711;
}

.assumption {
  background: #dbe7ea;
  color: #1e5862;
}

.nodata {
  background: #eadde6;
  color: #65324f;
}

.control-copy {
  margin-top: 1.25rem;
  border-left: 4px solid var(--clay);
  padding: 0.4rem 0 0.4rem 1rem;
  color: var(--muted);
}

.control-copy p {
  max-width: 960px;
  margin: 0;
}

.snapshot,
.persona-band,
.data-gap {
  background: var(--linen);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(300px, 0.74fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.clean-list {
  display: grid;
  gap: 0.9rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.clean-list li {
  border-top: 1px solid var(--border);
  padding-top: 0.9rem;
  color: var(--muted);
}

.clean-list .tag {
  margin-right: 0.45rem;
}

.image-panel {
  margin: 0;
}

.image-panel img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.image-panel figcaption {
  max-width: 520px;
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.proof-band {
  background: #fbf3e8;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin-top: 2.2rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--border);
}

.metric-row article {
  min-height: 224px;
  padding: 1.2rem;
  background: #fffaf2;
}

.metric {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--clay-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.6vw, 3.35rem);
  line-height: 0.95;
}

.metric-row p {
  min-height: 78px;
  margin: 0 0 1.2rem;
  color: var(--muted);
}

.market-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1rem;
}

.market-grid article,
.fix-grid article {
  padding: 1.25rem;
}

.market-grid p,
.fix-grid p,
.opportunity-grid p,
.timeline p,
.moves-grid p {
  color: var(--muted);
}

.dark-strategy {
  background: var(--charcoal);
  color: #fff8ed;
}

.dark-strategy .section-label,
.dark-strategy .image-panel figcaption {
  color: #f4c98d;
}

.dark-strategy p {
  max-width: 760px;
  color: rgba(255, 248, 237, 0.72);
}

.dark-strategy .image-panel img {
  aspect-ratio: 1 / 1;
}

blockquote {
  margin: 1.6rem 0 1.2rem;
  padding: 0 0 0 1.2rem;
  border-left: 4px solid var(--gold);
  color: #fff8ed;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 3vw, 3rem);
  line-height: 1.12;
}

.wedge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.6rem;
}

.wedge-list span,
.gap-grid span {
  border: 1px solid rgba(255, 248, 237, 0.18);
  border-radius: 999px;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 248, 237, 0.08);
  color: #fff8ed;
  font-size: 0.9rem;
  font-weight: 780;
}

.opportunity-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2rem;
}

.opportunity-grid article {
  position: relative;
  min-height: 335px;
  padding: 1.35rem;
}

.priority,
.moves-grid article > span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--charcoal);
  color: #fff8ed;
  font-size: 0.78rem;
  font-weight: 900;
}

.competitor-band {
  background: #f4ebe2;
}

.search-table-wrap {
  margin-top: 2rem;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 16px 50px rgba(45, 29, 21, 0.08);
}

table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  background: var(--paper);
}

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

th {
  background: #2d211b;
  color: #fff8ed;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

td {
  color: var(--muted);
}

td:first-child {
  color: var(--ink);
  font-weight: 850;
}

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

.persona-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2rem 0 1rem;
}

.persona-tabs button {
  min-height: 42px;
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  color: var(--muted);
  padding: 0.62rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 850;
}

.persona-tabs button:hover,
.persona-tabs button:focus-visible {
  border-color: rgba(116, 56, 41, 0.45);
  color: var(--clay-dark);
  outline: none;
}

.persona-tabs button.active {
  background: var(--charcoal);
  color: #fff8ed;
}

.persona-panel {
  display: none;
  min-height: 178px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.8);
  padding: 1.35rem;
}

.persona-panel.active {
  display: block;
}

.persona-panel p {
  margin-bottom: 0;
  color: var(--muted);
}

.conversion-band {
  background: var(--paper);
}

.fix-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 2rem;
}

.fix-grid article {
  min-height: 370px;
}

.fix-grid ul {
  display: grid;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.roadmap {
  background: #2d211b;
  color: #fff8ed;
}

.roadmap .section-label {
  color: #f4c98d;
}

.roadmap .timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.timeline article {
  min-height: 300px;
  padding: 1.35rem;
  background: rgba(255, 248, 237, 0.08);
  border-color: rgba(255, 248, 237, 0.16);
  box-shadow: none;
}

.timeline span {
  display: block;
  margin-bottom: 1rem;
  color: #f4c98d;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.timeline p {
  color: rgba(255, 248, 237, 0.72);
}

.social-band {
  background: #fbf3e8;
}

.content-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 2rem;
}

.content-grid p {
  min-height: 130px;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fffaf2;
  padding: 1rem;
  color: var(--ink);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  font-weight: 790;
}

.data-gap .gap-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 2rem;
}

.gap-grid span {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.48);
  color: var(--muted);
  text-align: center;
}

.moves {
  background: var(--charcoal);
  color: #fff8ed;
}

.moves .section-label {
  color: #f4c98d;
}

.moves-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 2rem;
}

.moves-grid article {
  min-height: 292px;
  padding: 1.15rem;
  background: rgba(255, 248, 237, 0.08);
  border-color: rgba(255, 248, 237, 0.16);
  box-shadow: none;
}

.moves-grid article > span {
  background: #fff8ed;
  color: var(--charcoal);
}

.moves-grid h3 {
  color: #fff8ed;
  font-size: 1.02rem;
}

.moves-grid p {
  color: rgba(255, 248, 237, 0.72);
}

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

.source-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2rem;
}

.source-grid a {
  display: flex;
  min-height: 64px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fffdf7;
  padding: 0.85rem 1rem;
  color: var(--teal);
  font-weight: 780;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.source-grid a:hover,
.source-grid a:focus-visible {
  border-color: rgba(31, 106, 105, 0.42);
  background: #eff8f5;
  outline: none;
}

footer {
  border-top: 1px solid var(--border);
  background: #241a15;
  color: rgba(255, 248, 237, 0.72);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 0;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  color: #f4c98d;
  font-weight: 820;
  text-decoration: none;
}

@media (max-width: 1040px) {
  .hero-grid,
  .metric-row,
  .opportunity-grid,
  .fix-grid,
  .content-grid,
  .moves-grid,
  .source-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-row {
    background: transparent;
    border: 0;
    overflow: visible;
  }

  .metric-row article {
    border: 1px solid var(--border);
    border-radius: 8px;
  }

  .market-grid,
  .roadmap .timeline {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 820px) {
  .wrap,
  .hero-content,
  .topbar {
    width: min(100% - 28px, var(--max));
  }

  .topbar {
    left: 14px;
    right: 14px;
    transform: none;
    justify-content: flex-start;
    overflow-x: auto;
    border-radius: 8px;
  }

  .hero {
    min-height: 94svh;
    padding-bottom: 3rem;
  }

  .hero::before {
    background:
      linear-gradient(0deg, rgba(20, 13, 10, 0.90) 0%, rgba(20, 13, 10, 0.70) 58%, rgba(20, 13, 10, 0.22) 100%),
      linear-gradient(90deg, rgba(20, 13, 10, 0.64) 0%, rgba(20, 13, 10, 0.14) 100%);
  }

  .hero-media img {
    object-position: 64% 28%;
  }

  .hero-content {
    margin-inline: auto;
  }

  h1 {
    font-size: clamp(2.6rem, 15vw, 4.6rem);
  }

  .split,
  .hero-grid,
  .metric-row,
  .evidence-grid,
  .opportunity-grid,
  .fix-grid,
  .content-grid,
  .moves-grid,
  .source-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid div,
  .metric-row article,
  .opportunity-grid article,
  .fix-grid article,
  .moves-grid article,
  .timeline article,
  .content-grid p {
    min-height: auto;
  }

  .metric-row p {
    min-height: auto;
  }

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

@media (max-width: 560px) {
  .band {
    padding: 3.75rem 0;
  }

  .topbar a {
    min-height: 38px;
    padding-inline: 0.78rem;
    font-size: 0.78rem;
  }

  .kicker,
  .section-label {
    font-size: 0.7rem;
  }

  h2 {
    font-size: clamp(2rem, 12vw, 3.3rem);
  }

  .hero-thesis {
    font-size: 1.06rem;
  }

  .hero-grid strong {
    font-size: 0.94rem;
  }

  .persona-tabs {
    display: grid;
    grid-template-columns: 1fr;
  }

  .persona-tabs button {
    justify-content: center;
    border-radius: 8px;
  }

  .data-gap .gap-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
