:root {
  --bg: #0c120f;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.12);
  --text: #f5efe5;
  --muted: #c6c0b5;
  --accent: #c8ab76;
  --accent-strong: #e2c998;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  --page-pad: clamp(1.25rem, 2vw, 2rem);
  --content-max: 1180px;
}

* {
  box-sizing: border-box;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #0d120f;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 0 0 8px 8px;
  z-index: 100;
  transition: top 150ms ease;
  text-decoration: none;
}
.skip-link:focus {
  top: 0;
}

html {
  scroll-behavior: smooth;
}

body.site-body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background-color: #0a0f0c;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.78' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 130% 55% at 50% -6%, rgba(200, 171, 118, 0.057) 0%, transparent 65%),
    linear-gradient(180deg, #0d1511 0%, #0a0f0c 100%);
  background-blend-mode: soft-light, normal, normal;
  background-size: 200px 200px, 100% 100%, 100% 100%;
  font-family: 'Inter', sans-serif;
}

.site-body h1,
.site-body h2,
.site-body h3,
.site-body h4,
.brand-font {
  font-family: 'Playfair Display', serif;
}

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

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

.page-shell {
  width: min(calc(100% - (var(--page-pad) * 2)), var(--content-max));
  margin: 0 auto;
}

.full-bleed {
  width: 100%;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  background: rgba(10, 14, 12, 0.68);
  border-bottom: none;
}

.topbar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(200, 171, 118, 0.24) 30%,
    rgba(200, 171, 118, 0.12) 70%,
    transparent 100%
  );
  pointer-events: none;
}

.topbar-inner {
  width: min(calc(100% - (var(--page-pad) * 2)), var(--content-max));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
}

.brand-lockup {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.brand-lockup strong {
  font-size: 1rem;
  font-weight: 600;
}

.brand-lockup span {
  color: var(--muted);
  font-size: 0.82rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem;
  font-size: 0.92rem;
}

.nav-links a {
  position: relative;
  color: rgba(245, 239, 229, 0.78);
  transition: color 200ms ease;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  transition: width 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  width: 100%;
}

.nav-links a[aria-current="page"] {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 220ms ease, opacity 220ms 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 {
  position: relative;
  overflow: hidden;
}

.hero-home {
  min-height: calc(100svh - 72px);
  display: flex;
  align-items: flex-end;
  background:
    radial-gradient(ellipse 90% 65% at 12% 78%, rgba(12, 24, 14, 0.95) 0%, transparent 58%),
    radial-gradient(ellipse 70% 50% at 88% 20%, rgba(8, 16, 10, 0.6) 0%, transparent 55%),
    linear-gradient(158deg, #0e1b12 0%, #08110c 40%, #050d08 100%);
  isolation: isolate;
}

.hero-home::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 240px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(9, 13, 10, 0.7) 45%,
    #0a0f0c 100%
  );
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(calc(100% - (var(--page-pad) * 2)), var(--content-max));
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(3.5rem, 7vw, 5.5rem);
}

.hero-content-home {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.7fr);
  gap: clamp(1.8rem, 4vw, 3.2rem);
  align-items: end;
}

.hero-copy {
  width: min(100%, 42rem);
}

.hero-portrait-panel,
.founder-profile-rail {
  display: grid;
  gap: 1rem;
}

.hero-portrait-panel {
  width: min(100%, 26rem);
  justify-self: end;
}

.hero-mark {
  width: 5.25rem;
  height: 5.25rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--accent-strong);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-title {
  margin: 0;
  font-size: clamp(2.8rem, 6.2vw, 5.4rem);
  line-height: 0.95;
  text-wrap: balance;
  letter-spacing: -0.01em;
}

.hero-lead {
  margin: 1.5rem 0 0;
  width: min(100%, 36rem);
  color: rgba(245, 239, 229, 0.82);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.35rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 600;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(110deg, #c8ab76 0%, #dfc896 48%, #c8ab76 100%);
  background-size: 220% 100%;
  background-position: 0% 0%;
  color: #0c1208;
  transition:
    background-position 500ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 180ms ease;
}

.btn-primary:hover {
  background-position: 100% 0%;
}

.btn-secondary {
  border-color: var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.07);
}

.btn:focus-visible,
.nav-links a:focus-visible,
.nav-toggle:focus-visible,
.proof-feature:focus-visible,
.proof-link:focus-visible,
.article-list-item:focus-visible,
.link-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
  width: min(100%, 52rem);
}

.meta-item {
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.meta-item span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 0.45rem;
}

.meta-item strong {
  display: block;
  font-size: 1rem;
  line-height: 1.45;
}

.portrait-frame {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(200, 171, 118, 0.18);
  background:
    radial-gradient(circle at top left, rgba(223, 200, 150, 0.12), transparent 42%),
    rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow);
}

.portrait-frame::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(180deg, transparent 0%, rgba(7, 12, 9, 0.1) 45%, rgba(7, 12, 9, 0.5) 100%);
  pointer-events: none;
}

.portrait-frame-home {
  transform: translateY(0);
  transition: transform 260ms ease, border-color 260ms ease;
}

.hero-portrait-panel:hover .portrait-frame-home {
  transform: translateY(-4px);
  border-color: rgba(200, 171, 118, 0.3);
}

.portrait-image {
  display: block;
  width: 100%;
  height: auto;
}

.portrait-caption {
  display: grid;
  gap: 0.35rem;
}

.portrait-caption span {
  color: var(--accent-strong);
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.portrait-caption strong {
  font-size: 0.98rem;
  line-height: 1.55;
}

.section {
  padding: clamp(3.25rem, 7vw, 5.5rem) 0;
}

.section + .section {
  border-top: none;
  position: relative;
}

.section + .section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - (var(--page-pad) * 2)), var(--content-max));
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.07) 18%,
    rgba(255, 255, 255, 0.07) 82%,
    transparent 100%
  );
  pointer-events: none;
}

.section-heading {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.02;
  text-wrap: balance;
}

.section-intro {
  margin: 0 0 2rem;
  max-width: 43rem;
  color: var(--muted);
  line-height: 1.7;
}

.focus-grid,
.editorial-grid,
.proof-grid,
.contact-grid {
  display: grid;
  gap: 1.5rem;
}

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

.focus-item,
.article-list-item,
.proof-link,
.form-shell,
.contact-copy {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.focus-item {
  padding: 1.35rem 1.25rem;
}

.focus-item h3,
.proof-link h3,
.article-list-item h3,
.contact-copy h3 {
  margin: 0 0 0.65rem;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
}

.focus-item p,
.proof-link p,
.article-list-item p,
.contact-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

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

.service-list {
  display: grid;
  gap: 1.4rem;
}

.service-item {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.service-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.service-item span {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--accent-strong);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.service-item h3 {
  margin: 0 0 0.55rem;
  font-size: 1.18rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
}

.service-item p,
.service-item li {
  color: var(--muted);
  line-height: 1.7;
}

.service-item ul,
.service-item ol {
  margin: 0.7rem 0 0;
  padding-left: 1.15rem;
}

.proof-grid {
  grid-template-columns: 1.6fr 1fr;
  align-items: start;
}

.proof-feature {
  padding: clamp(1.5rem, 3vw, 2rem);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.065) 0%, rgba(255, 255, 255, 0.028) 100%);
  border: 1px solid rgba(200, 171, 118, 0.16);
  border-radius: 10px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: border-color 260ms ease, box-shadow 260ms ease;
}

.proof-feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 5%,
    rgba(200, 171, 118, 0.55) 35%,
    rgba(226, 201, 152, 0.7) 50%,
    rgba(200, 171, 118, 0.55) 65%,
    transparent 95%
  );
  pointer-events: none;
}

.proof-feature:hover {
  border-color: rgba(200, 171, 118, 0.28);
  box-shadow: 0 0 0 1px rgba(200, 171, 118, 0.08), 0 28px 56px rgba(0, 0, 0, 0.38);
}

.proof-feature .kicker,
.proof-link .kicker,
.article-list-item .kicker {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.55rem;
  background: rgba(200, 171, 118, 0.09);
  border: 1px solid rgba(200, 171, 118, 0.2);
  border-radius: 3px;
  color: var(--accent-strong);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.proof-feature h3 {
  margin: 0 0 0.9rem;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.05;
}

.proof-feature p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.metric-row strong {
  display: block;
  font-size: 1.6rem;
  font-family: 'Playfair Display', serif;
  margin-bottom: 0.3rem;
  background: linear-gradient(135deg, var(--accent-strong) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.metric-row span {
  color: var(--muted);
  font-size: 0.88rem;
}

.stack-links {
  display: grid;
  gap: 1rem;
}

.proof-link,
.article-list-item {
  padding: 1.2rem 1.15rem;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.proof-link:hover,
.article-list-item:hover {
  transform: translateY(-2px);
  border-color: rgba(200, 171, 118, 0.2);
  background: rgba(255, 255, 255, 0.055);
}

.article-list {
  display: grid;
  gap: 1rem;
}

.article-search {
  width: min(100%, 32rem);
  min-height: 48px;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.article-search::placeholder {
  color: rgba(245, 239, 229, 0.5);
}

.article-list-item small {
  display: block;
  margin-top: 0.75rem;
  color: rgba(245, 239, 229, 0.46);
}

.article-list-spaced {
  margin-top: 1.5rem;
}

.section-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.trust-pill {
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.trust-pill strong,
.plain-list strong,
.link-card h3,
.cta-panel h3 {
  display: block;
  margin: 0 0 0.45rem;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
}

.trust-pill span,
.plain-list span,
.link-card p,
.cta-panel p {
  color: var(--muted);
  line-height: 1.65;
}

.plain-list-wide {
  max-width: min(100%, 58rem);
}

.section-heading-wrap {
  margin-bottom: 1rem;
}

.framework-list,
.testimonial-grid {
  display: grid;
  gap: 1rem;
}

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

.framework-item,
.testimonial-card {
  position: relative;
  margin: 0;
  padding: 1.25rem 1.15rem;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.framework-item span {
  display: inline-flex;
  margin-bottom: 0.85rem;
  color: var(--accent-strong);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.framework-item h3 {
  margin: 0 0 0.7rem;
  font-family: 'Inter', sans-serif;
  font-size: 1.02rem;
  line-height: 1.5;
}

.framework-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.testimonial-grid-home {
  margin-top: 1rem;
}

.testimonial-card {
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.testimonial-card:hover {
  transform: translateY(-2px);
  border-color: rgba(200, 171, 118, 0.22);
  background: rgba(255, 255, 255, 0.055);
}

.testimonial-card::before {
  content: "“";
  position: absolute;
  top: 0.85rem;
  right: 1rem;
  color: rgba(200, 171, 118, 0.32);
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  line-height: 1;
}

.testimonial-card blockquote {
  margin: 0;
  padding-right: 1.1rem;
  color: rgba(245, 239, 229, 0.88);
  line-height: 1.75;
}

.testimonial-card figcaption {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.testimonial-card figcaption strong,
.testimonial-card figcaption span {
  display: block;
}

.testimonial-card figcaption strong {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
}

.testimonial-card figcaption span {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.split-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 2rem;
  align-items: start;
}

.plain-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
  counter-reset: plain-list;
}

.plain-list li {
  position: relative;
  padding: 1.1rem 0 1.1rem 2.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  counter-increment: plain-list;
}

.plain-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.plain-list li::before {
  content: counter(plain-list, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.2rem;
  color: var(--accent);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  opacity: 0.6;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1;
}

.plain-list li:first-child::before {
  top: 0.15rem;
}

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

.link-card {
  padding: 1.2rem 1.15rem;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.link-card:hover {
  transform: translateY(-2px);
  border-color: rgba(200, 171, 118, 0.2);
  background: rgba(255, 255, 255, 0.058);
}

.link-card small {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--accent-strong);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact-grid {
  grid-template-columns: 1fr 1.15fr;
  align-items: start;
}

.contact-copy {
  padding: clamp(1.35rem, 3vw, 1.85rem);
}

.form-shell {
  padding: clamp(1.35rem, 3vw, 1.85rem);
}

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

.field,
.textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.95rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font: inherit;
}

.field::placeholder,
.textarea::placeholder {
  color: rgba(245, 239, 229, 0.48);
}

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

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1rem;
}

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

.fine-print {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.7;
}

.back-link {
  display: inline-block;
  margin-bottom: 1.25rem;
  color: var(--accent-strong);
}

.back-link:hover {
  color: var(--text);
}

.cta-panel {
  display: grid;
  gap: 1rem;
}

.article-main {
  padding-bottom: clamp(3.5rem, 7vw, 5rem);
}

.article-hero {
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2.25rem, 5vw, 3rem);
}

.article-hero-shell {
  width: min(calc(100% - (var(--page-pad) * 2)), 980px);
  margin: 0 auto;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.4rem;
  color: var(--accent-strong);
  font-size: 0.92rem;
}

.article-back:hover {
  color: var(--text);
}

.article-title {
  margin: 0;
  max-width: 13ch;
  font-size: clamp(2.65rem, 5.8vw, 4.9rem);
  line-height: 0.96;
  text-wrap: balance;
}

.article-summary {
  max-width: 44rem;
  margin: 1.4rem 0 0;
  color: rgba(245, 239, 229, 0.82);
  font-size: clamp(1.02rem, 1.9vw, 1.16rem);
  line-height: 1.7;
}

.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.article-meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(245, 239, 229, 0.78);
  font-size: 0.85rem;
}

.article-prose {
  width: min(calc(100% - (var(--page-pad) * 2)), 760px);
  margin: 0 auto;
}

.article-prose p,
.article-prose ul,
.article-prose ol {
  color: rgba(245, 239, 229, 0.82);
  line-height: 1.85;
}

.article-prose p {
  margin: 0 0 1.2rem;
}

.article-prose h2 {
  margin: 2.5rem 0 0.8rem;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  line-height: 1.08;
}

.article-prose ul,
.article-prose ol {
  margin: 0 0 1.5rem;
  padding-left: 1.3rem;
}

.article-prose li + li {
  margin-top: 0.55rem;
}

.article-prose strong {
  color: var(--text);
}

.article-callout {
  margin-top: 2rem;
  padding: clamp(1.35rem, 3vw, 1.8rem);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.article-callout h2 {
  margin-top: 0;
}

.article-link-list {
  display: grid;
  gap: 0.8rem;
}

.article-link-list a {
  color: var(--accent-strong);
}

.article-link-list a:hover {
  color: var(--text);
}

.article-footer-note {
  margin-top: 2.2rem;
  color: rgba(245, 239, 229, 0.46);
  font-size: 0.82rem;
}

.article-support {
  width: min(calc(100% - (var(--page-pad) * 2)), 760px);
  margin: 2.2rem auto 0;
  display: grid;
  gap: 1rem;
}

.article-support-block {
  padding: 1.2rem 1.15rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.article-support-block h2 {
  margin: 0 0 0.7rem;
  font-size: 1.35rem;
  line-height: 1.1;
}

.article-support-block p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.article-support-block p + p,
.article-support-block p + a,
.article-support-block a + a {
  margin-top: 0.8rem;
}

.article-support-block a {
  display: inline-block;
  color: var(--accent-strong);
}

.article-support-block a:hover {
  color: var(--text);
}

.case-study-shell {
  width: min(calc(100% - (var(--page-pad) * 2)), 1040px);
  margin: 0 auto;
}

.case-study-hero {
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2.25rem, 5vw, 3rem);
}

.case-study-title {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(2.65rem, 5.8vw, 4.9rem);
  line-height: 0.96;
  text-wrap: balance;
}

.case-study-summary {
  max-width: 44rem;
  margin: 1.4rem 0 0;
  color: rgba(245, 239, 229, 0.82);
  font-size: clamp(1.02rem, 1.9vw, 1.16rem);
  line-height: 1.7;
}

.case-study-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.75rem;
}

.case-study-stat {
  padding: 1.2rem 1.1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.case-study-stat span {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--accent-strong);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.case-study-stat strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.case-study-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
  gap: 2rem;
}

.case-study-main {
  display: grid;
  gap: 1.6rem;
}

.case-study-block {
  padding: 1.3rem 1.2rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.case-study-block h2 {
  margin: 0 0 0.8rem;
  font-size: 1.55rem;
  line-height: 1.08;
}

.case-study-block p,
.case-study-block li {
  color: rgba(245, 239, 229, 0.82);
  line-height: 1.8;
}

.case-study-block p {
  margin: 0;
}

.case-study-block p + p {
  margin-top: 0.9rem;
}

.case-study-block ul,
.case-study-block ol {
  margin: 0;
  padding-left: 1.2rem;
}

.case-study-block li + li {
  margin-top: 0.55rem;
}

.case-study-sidebar {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.case-study-note {
  margin-top: 2rem;
}

.case-study-return {
  margin-top: 2rem;
  display: inline-block;
}

.article-author-name {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--text);
  font-weight: 600;
}

.comments-shell {
  width: min(calc(100% - (var(--page-pad) * 2)), 760px);
  margin: 1rem auto 0;
}

.diagnostic-layout,
.diagnostic-result-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.2fr);
  gap: 1.5rem;
  align-items: start;
}

.diagnostic-form,
.diagnostic-result-panel {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.diagnostic-result-panel {
  padding: clamp(1.35rem, 3vw, 1.85rem);
}

.tool-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.2fr);
  gap: 1.5rem;
  align-items: start;
}

.tool-form,
.tool-result-panel {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.tool-result-panel {
  padding: clamp(1.35rem, 3vw, 1.85rem);
}

.report-studio-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.5fr);
  gap: 1.5rem;
  align-items: start;
}

.report-studio-workspace {
  min-width: 0;
}

.report-studio-rail,
.report-studio-form,
.report-studio-output {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.report-studio-rail-header,
.report-studio-form-header,
.report-studio-output-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.report-studio-heading {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.report-studio-project-list {
  display: grid;
  gap: 0.85rem;
}

.report-studio-project-item {
  width: 100%;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  text-align: left;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.report-studio-project-item:hover {
  transform: translateY(-1px);
  border-color: rgba(200, 171, 118, 0.22);
  background: rgba(255, 255, 255, 0.06);
}

.report-studio-project-item.is-active {
  border-color: rgba(200, 171, 118, 0.32);
  background: rgba(226, 201, 152, 0.08);
}

.report-studio-project-title,
.report-studio-project-meta,
.report-studio-project-date {
  display: block;
}

.report-studio-project-title {
  font-weight: 600;
}

.report-studio-project-meta,
.report-studio-project-date {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.report-studio-form label span,
.report-studio-subheading {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
}

.report-studio-subheading {
  font-family: 'Inter', sans-serif;
}

.report-studio-note-grid,
.report-studio-output-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.report-studio-note-span {
  grid-column: 1 / -1;
}

.report-studio-cluster-list,
.report-studio-edit-list {
  display: grid;
  gap: 1rem;
}

.report-studio-cluster,
.report-studio-edit-block {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.report-studio-cluster h4 {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
}

.report-studio-cluster p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.report-studio-note-list {
  margin: 0.9rem 0 0;
  padding-left: 1.1rem;
  color: rgba(245, 239, 229, 0.84);
}

.report-studio-note-list li + li {
  margin-top: 0.45rem;
}

.report-studio-preview {
  margin: 0;
  padding: 1.1rem;
  max-height: 32rem;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(5, 9, 7, 0.78);
  color: rgba(245, 239, 229, 0.88);
  font: 0.88rem/1.7 "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  white-space: pre-wrap;
}

.report-studio-export-actions {
  margin-top: 0;
  justify-content: flex-end;
}

.tool-scale {
  padding: 1rem 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tool-scale strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.tool-scale p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.snapshot-question-note {
  margin: -0.25rem 0 0.8rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.tool-row-list {
  display: grid;
  gap: 1rem;
}

.tool-row {
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tool-row-heading {
  margin-bottom: 0.8rem;
}

.tool-row-heading span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--accent-strong);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.tool-row-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.tool-grid,
.tool-score-grid {
  display: grid;
  gap: 0.9rem;
}

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

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

.mapper-stage-list,
.mapper-capability-list {
  display: grid;
  gap: 0.9rem;
}

.mapper-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 220px);
  gap: 1rem;
  align-items: start;
  padding: 0.95rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mapper-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.mapper-copy {
  display: grid;
  gap: 0.35rem;
}

.mapper-copy strong {
  color: rgba(245, 239, 229, 0.92);
  font-size: 0.98rem;
}

.mapper-copy span {
  color: var(--muted);
  line-height: 1.65;
}

.tool-score-field {
  display: grid;
  gap: 0.45rem;
}

.tool-score-field span {
  color: rgba(245, 239, 229, 0.86);
  font-size: 0.9rem;
  font-weight: 600;
}

.planner-option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.planner-option-card,
.planner-answer-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 56px;
  padding: 0.8rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  cursor: pointer;
  color: var(--muted);
  transition: border-color 0.18s, background 0.18s, color 0.18s;
}

.planner-option-card input,
.planner-answer-option input {
  width: auto;
  margin: 0;
  accent-color: var(--accent);
}

.planner-option-card span,
.planner-answer-option span {
  font-size: 0.92rem;
  line-height: 1.4;
}

.planner-option-card:has(input:checked),
.planner-answer-option:has(input:checked) {
  border-color: var(--accent);
  background: rgba(200, 171, 118, 0.08);
  color: rgba(245, 239, 229, 0.94);
}

.planner-option-card:hover,
.planner-answer-option:hover {
  border-color: rgba(200, 171, 118, 0.45);
  color: rgba(245, 239, 229, 0.94);
}

.planner-section {
  display: grid;
  gap: 1rem;
}

.planner-question-list {
  display: grid;
  gap: 0.8rem;
}

.planner-question-card {
  display: grid;
  gap: 0.9rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.planner-question-copy h3 {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

.planner-question-copy p {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.planner-answer-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.planner-risk-list {
  display: grid;
  gap: 0.9rem;
}

.planner-risk-card,
.planner-timing-note {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.planner-risk-card h3 {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

.planner-risk-card p,
.planner-timing-note p {
  margin-bottom: 0;
}

.priority-list {
  display: grid;
  gap: 0.9rem;
}

.priority-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.priority-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: rgba(200, 171, 118, 0.16);
  color: var(--accent-strong);
  font-weight: 700;
}

.priority-content h3 {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
}

.priority-content p {
  margin: 0.45rem 0 0;
  color: rgba(245, 239, 229, 0.82);
  line-height: 1.7;
}

.priority-topline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.priority-score {
  color: var(--accent-strong);
  font-size: 1.25rem;
  font-weight: 700;
  white-space: nowrap;
}

.priority-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.priority-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(245, 239, 229, 0.86);
  font-size: 0.82rem;
}

.tool-recommendation h3 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  line-height: 1.08;
}

/* ── Reporting Narrative Builder ──────────────────────────────────── */

.narrative-channel-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.narrative-channel-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--muted);
  transition: border-color 0.18s, color 0.18s, background 0.18s;
}

.narrative-channel-option input {
  width: auto;
  margin: 0;
  accent-color: var(--accent);
}

.narrative-channel-option:has(input:checked) {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(200, 171, 118, 0.07);
}

.narrative-channel-option:hover {
  border-color: rgba(200, 171, 118, 0.4);
  color: var(--fg);
}

.narrative-kpi-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 0.75rem;
}

.narrative-type-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.narrative-type-label {
  font-size: 0.85rem;
  color: var(--muted);
  margin-right: 0.25rem;
}

.narrative-type-option {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--muted);
  transition: border-color 0.15s, color 0.15s;
}

.narrative-type-option input {
  width: auto;
  margin: 0;
  accent-color: var(--accent);
}

.narrative-type-option:has(input:checked) {
  border-color: var(--accent);
  color: var(--accent);
}

/* Result — delta display */

.narrative-delta-heading {
  margin: 0.5rem 0 0.85rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--fg);
}

.narrative-delta-list {
  display: grid;
  gap: 0.6rem;
}

.narrative-delta-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.6rem;
  align-items: baseline;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.88rem;
}

.narrative-delta-name {
  font-weight: 600;
  color: var(--fg);
}

.narrative-delta-values {
  color: var(--muted);
  white-space: nowrap;
}

.narrative-delta-change {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.narrative-delta-good .narrative-delta-change {
  color: #7ecfa8;
}

.narrative-delta-bad .narrative-delta-change {
  color: #e07070;
}

/* Result — narrative parts */

.narrative-part {
  margin-top: 1.75rem;
}

.narrative-part-heading {
  margin: 0 0 0.6rem;
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--accent);
  font-weight: 600;
}

.tool-recommendation-heading {
  margin: 0.35rem 0 0;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  line-height: 1.1;
}

/* Responsive overrides */

@media (max-width: 720px) {
  .narrative-kpi-grid {
    grid-template-columns: 1fr;
  }

  .narrative-delta-row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .planner-option-grid,
  .planner-answer-group {
    grid-template-columns: 1fr;
  }
}

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

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
}

.checkbox-row input {
  width: auto;
  margin: 0;
}

.lead-filter-form {
  max-width: none;
}

.lead-review-list {
  display: grid;
  gap: 1rem;
}

.lead-review-card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(12, 18, 28, 0.84);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}

.lead-review-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.lead-review-card-header h3 {
  margin: 0.35rem 0 0;
}

.lead-review-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.lead-review-message {
  margin-top: 1rem;
  white-space: pre-wrap;
  color: var(--text);
}

.diagnostic-scale {
  padding: 1rem 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.diagnostic-scale strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.diagnostic-scale p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.diagnostic-question-groups {
  display: grid;
  gap: 1.25rem;
}

.diagnostic-section {
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.diagnostic-section-heading {
  margin-bottom: 1rem;
}

.diagnostic-section-heading span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--accent-strong);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.diagnostic-section-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.diagnostic-question-list {
  display: grid;
  gap: 1rem;
}

.diagnostic-question {
  margin: 0;
  padding: 0;
  border: 0;
}

.diagnostic-question legend {
  margin-bottom: 0.8rem;
  padding: 0;
  color: rgba(245, 239, 229, 0.88);
  font-weight: 600;
  line-height: 1.6;
}

.diagnostic-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem;
}

.diagnostic-radio {
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  padding: 0.7rem 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.diagnostic-radio:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.18);
}

.diagnostic-radio input {
  margin: 0;
  accent-color: var(--accent);
}

.diagnostic-radio span {
  font-size: 0.92rem;
  font-weight: 600;
}

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

.diagnostic-score-card {
  padding: 1.2rem 1.1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.diagnostic-score-card span {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--accent-strong);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.diagnostic-score-card strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.diagnostic-recommendation h3 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  line-height: 1.08;
}

.diagnostic-action-list {
  margin: 0;
  padding-left: 1.2rem;
  color: rgba(245, 239, 229, 0.82);
  line-height: 1.8;
}

.diagnostic-action-list li + li {
  margin-top: 0.55rem;
}

.snapshot-priority-grid {
  display: grid;
  gap: 0.9rem;
}

.snapshot-priority-card {
  padding: 1rem 1.05rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.snapshot-priority-card span {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--accent-strong);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.snapshot-priority-card strong {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 1.15rem;
}

.snapshot-priority-card p {
  margin: 0;
  color: rgba(245, 239, 229, 0.8);
  line-height: 1.7;
}

.snapshot-priority-action {
  margin-top: 0.75rem !important;
}

.hero-title-compact {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
}

.hero-title-service {
  font-size: clamp(2.5rem, 5.5vw, 4.6rem);
}

.hidden {
  display: none !important;
}

.text-red-300 {
  color: #f7a8a8;
}

.text-green-300 {
  color: #9be2b0;
}

.text-gray-300 {
  color: var(--muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tags span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(245, 239, 229, 0.86);
  font-size: 0.82rem;
  line-height: 1;
}

.stack-top {
  margin-top: 0.9rem;
}

.stack-top-sm {
  margin-top: 0.8rem;
}

.stack-top-lg {
  margin-top: 1.5rem;
}

.flush-top {
  margin-top: 0;
}

.accent-link {
  color: var(--accent-strong);
}

.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2rem;
  align-items: start;
}

.footer-copy p {
  margin: 0.75rem 0 0;
  max-width: 38rem;
  color: var(--muted);
  line-height: 1.75;
}

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

.footer-links span {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--accent-strong);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-links a {
  display: block;
  margin-top: 0.45rem;
  color: rgba(245, 239, 229, 0.82);
}

.footer-links a:hover {
  color: var(--text);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px) scale(0.994);
  transition:
    opacity 700ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ============================================
   Sprint 1B — Visual Polish
   ============================================ */

/* Eyebrow — gold dash prefix */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}

.eyebrow::before {
  content: '';
  display: block;
  width: 1.6em;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
  flex-shrink: 0;
}

/* Hero ::before is intentionally absent — the canvas handles all ambient glow */

/* Trust pills — hover accent border */
.trust-pill {
  transition: border-color 220ms ease;
}

.trust-pill:hover {
  border-top-color: rgba(200, 171, 118, 0.32);
}

/* Focus items — gold hover */
.focus-item {
  transition: border-color 220ms ease, background-color 220ms ease;
}

.focus-item:hover {
  border-color: rgba(200, 171, 118, 0.18);
  background: rgba(255, 255, 255, 0.055);
}

/* Service items — subtle hover */
.service-item {
  transition: border-color 200ms ease;
}

.service-item:hover {
  border-bottom-color: rgba(200, 171, 118, 0.2);
}

/* Article callout — left gold border */
.article-callout {
  border-left: 2px solid rgba(200, 171, 118, 0.45);
  border-top: 1px solid rgba(200, 171, 118, 0.1);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(200, 171, 118, 0.035);
}

/* Footer brand — warm gradient name */
.footer-copy .brand-font {
  display: inline-block;
  background: linear-gradient(90deg, var(--accent-strong) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Footer bottom glow accent */
.site-footer {
  border-top: none;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - (var(--page-pad) * 2)), var(--content-max));
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(200, 171, 118, 0.2) 30%,
    rgba(200, 171, 118, 0.1) 70%,
    transparent 100%
  );
}

/* Staggered reveal delays for grid children */
.focus-grid [data-reveal]:nth-child(2),
.stack-links [data-reveal]:nth-child(2),
.hero-meta .meta-item:nth-child(2) {
  transition-delay: 80ms;
}

.focus-grid [data-reveal]:nth-child(3),
.stack-links [data-reveal]:nth-child(3),
.hero-meta .meta-item:nth-child(3) {
  transition-delay: 160ms;
}

/* Link-card small label — match kicker style */
.link-card small {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.48rem;
  background: rgba(200, 171, 118, 0.08);
  border: 1px solid rgba(200, 171, 118, 0.16);
  border-radius: 3px;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 0.9rem;
}

/* Diagnostic / tool result panels — subtle warm border */
.diagnostic-result-panel,
.tool-result-panel {
  border-color: rgba(200, 171, 118, 0.12);
}

/* ── Product Page Sense Check ─────────────────────────────────────────── */

.field-label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

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

.page-score-list,
.score-grid {
  display: grid;
  gap: 0.6rem;
}

.page-score-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
}

.page-score-label {
  font-size: 0.92rem;
  color: rgba(245, 239, 229, 0.82);
}

.page-score-badge {
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.page-score-strong {
  background: rgba(74, 222, 128, 0.1);
  color: #86efac;
}

.page-score-developing {
  background: rgba(251, 191, 36, 0.1);
  color: #fcd34d;
}

.page-score-priority {
  background: rgba(248, 113, 113, 0.1);
  color: #fca5a5;
}

.page-recommendation-list {
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.page-recommendation-item {
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-left: 3px solid rgba(200, 171, 118, 0.4);
  border-radius: 0 6px 6px 0;
}

.page-recommendation-dimension {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.page-recommendation-priority {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  color: rgba(245, 239, 229, 0.92);
  line-height: 1.6;
}

.page-recommendation-why {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Review & Rebook Flow Builder ─────────────────────────────────────── */

.rebook-readiness-score {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  margin-bottom: 0.85rem;
}

.rebook-maturity-strong {
  background: rgba(74, 222, 128, 0.07);
  border-color: rgba(74, 222, 128, 0.2);
}

.rebook-maturity-developing {
  background: rgba(251, 191, 36, 0.06);
  border-color: rgba(251, 191, 36, 0.18);
}

.rebook-maturity-priority {
  background: rgba(248, 113, 113, 0.06);
  border-color: rgba(248, 113, 113, 0.18);
}

.rebook-readiness-number {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
}

.rebook-readiness-label {
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rebook-readiness-factors {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.75;
}

.rebook-step {
  padding: 1.1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.rebook-step:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.rebook-step-header {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.rebook-step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(200, 171, 118, 0.12);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  flex-shrink: 0;
}

.rebook-step-title {
  display: block;
  font-size: 0.95rem;
  color: rgba(245, 239, 229, 0.92);
  margin-bottom: 0.25rem;
}

.rebook-step-timing {
  display: block;
  font-size: 0.8rem;
  color: var(--accent-strong);
  letter-spacing: 0.06em;
}

.rebook-step-body {
  padding-left: 2.85rem;
}

.rebook-step-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.rebook-step-channel,
.rebook-step-subject {
  padding: 0.15rem 0.55rem;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
  color: var(--muted);
}

.rebook-message-block {
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-left: 3px solid rgba(200, 171, 118, 0.3);
  border-radius: 0 4px 4px 0;
  font-size: 0.88rem;
  line-height: 1.75;
  color: rgba(245, 239, 229, 0.8);
  margin-bottom: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.rebook-message-block span {
  display: block;
}

.rebook-message-block br {
  display: block;
  content: "";
  margin-top: 0.6em;
}

.rebook-step-tips {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.7;
}

.rebook-step-tips li + li {
  margin-top: 0.25rem;
}

.rebook-notes {
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
}

.rebook-notes-heading {
  display: block;
  margin-bottom: 0.6rem;
  font-size: 0.85rem;
  color: rgba(245, 239, 229, 0.82);
}

.rebook-notes-list {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.75;
}

.rebook-notes-list li + li {
  margin-top: 0.35rem;
}

/* Article meta pills — slightly warmer */
.article-meta-pill {
  border-color: rgba(200, 171, 118, 0.12);
  background: rgba(200, 171, 118, 0.04);
}

/* Section heading — very subtle warm gradient */
.section-heading {
  background: linear-gradient(130deg, #f5efe5 40%, #e4d3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero title — keep pure cream (not gradient — too much on dark bg) */
.hero-title {
  color: var(--text);
  -webkit-text-fill-color: var(--text);
}

@media (max-width: 960px) {
  .focus-grid,
  .trust-strip,
  .service-columns,
  .proof-grid,
  .contact-grid,
  .diagnostic-layout,
  .diagnostic-result-shell,
  .report-studio-layout,
  .tool-layout,
  .split-panel,
  .link-grid,
  .footer-grid,
  .footer-links {
    grid-template-columns: 1fr;
  }

  .hero-meta,
  .metric-row,
  .input-grid,
  .report-studio-note-grid,
  .report-studio-output-grid,
  .case-study-stats,
  .case-study-grid,
  .diagnostic-score-grid,
  .tool-score-grid,
  .brief-grid,
  .framework-list,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .lead-review-card-header {
    flex-direction: column;
  }

  .hero-content-home {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero-portrait-panel {
    justify-self: start;
    width: min(100%, 22rem);
  }

  .report-studio-rail-header,
  .report-studio-form-header,
  .report-studio-output-header {
    flex-direction: column;
  }

  .report-studio-export-actions {
    justify-content: flex-start;
  }

  .article-title {
    max-width: 100%;
  }

  .case-study-title {
    max-width: 100%;
  }
}

@media (max-width: 900px) and (min-width: 721px) {
  .nav-links {
    gap: 0.75rem;
    font-size: 0.88rem;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .topbar {
    position: sticky;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(12, 18, 15, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1rem var(--page-pad) 1.5rem;
    border-bottom: 1px solid var(--border);
    gap: 0;
    z-index: 39;
  }

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

  .nav-links a {
    padding: 0.7rem 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .hero-home {
    min-height: auto;
    background-position: center top;
  }

  .hero-content {
    padding-top: 2.5rem;
    padding-bottom: 2.75rem;
  }

  .hero-mark {
    width: 4.4rem;
    height: 4.4rem;
  }

  .section {
    padding: 2.8rem 0;
  }

  .diagnostic-options {
    grid-template-columns: repeat(5, minmax(42px, 1fr));
  }

  .mapper-item {
    grid-template-columns: 1fr;
  }
}
