:root {
  color-scheme: light;
  --ink: #17201d;
  --muted: #5f6e68;
  --line: #d9e1dc;
  --paper: #fbfaf5;
  --wash: #edf4ef;
  --teal: #0c6b62;
  --amber: #a15e13;
  --clay: #9d4f3f;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(23, 32, 29, 0.12);
}

* {
  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;
}

a {
  color: inherit;
}

button,
summary,
textarea,
input,
a {
  -webkit-tap-highlight-color: rgba(12, 107, 98, 0.18);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
textarea:focus-visible,
input:focus-visible,
[role="button"]:focus-visible {
  outline: 3px solid rgba(12, 107, 98, 0.55);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  transform: translateY(-160%);
  border-radius: 8px;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 900;
  text-decoration: none;
  transition: transform 140ms ease;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(251, 250, 245, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand,
.nav,
.hero-actions,
.signal-row {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  aspect-ratio: 1;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.8rem;
}

.nav {
  gap: clamp(12px, 3vw, 28px);
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 4px 2px;
  text-decoration: none;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(210px, 0.52fr) minmax(420px, 1.02fr) minmax(430px, 1.1fr);
  grid-template-areas:
    "portrait copy map"
    "strip strip map";
  gap: clamp(24px, 3vw, 46px);
  min-height: calc(100svh - 69px);
  padding: clamp(42px, 5vw, 72px) clamp(18px, 4vw, 56px) clamp(42px, 5vw, 68px);
  align-items: start;
}

.hero-copy {
  grid-area: copy;
  max-width: 760px;
}

.hero h1 {
  font-size: clamp(3.8rem, 5vw, 6.8rem);
  white-space: nowrap;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(3.4rem, 7.3vw, 7rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  max-width: 820px;
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.lede {
  max-width: 62ch;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
}

.role-line {
  max-width: 52ch;
  margin-bottom: 14px;
  color: var(--teal);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: 900;
}

.re-hook {
  max-width: 66ch;
  margin-bottom: 0;
  color: #35443f;
  font-size: 1rem;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 16px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease, transform 150ms ease;
}

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

.button.primary {
  border-color: var(--teal);
  background: var(--teal);
  color: var(--white);
}

.button.ghost {
  background: var(--white);
  color: var(--ink);
}

.signal-row {
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}

.signal-row div {
  flex: 1 1 210px;
  min-width: min(100%, 210px);
  padding: 12px 14px;
  border-left: 3px solid var(--teal);
  background: rgba(255, 255, 255, 0.68);
}

.signal-row dt {
  color: var(--muted);
  font-size: 0.8rem;
}

.signal-row dd {
  margin: 2px 0 0;
  font-weight: 800;
}

.hero-portrait-panel {
  grid-area: portrait;
  align-self: start;
  padding: 12px;
  border: 1px solid rgba(217, 225, 220, 0.74);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.hero-portrait-panel img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5.05;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(23, 32, 29, 0.12);
}

.hero-strip {
  grid-area: strip;
  display: grid;
  gap: 24px;
  align-self: start;
}

.capability-map {
  grid-area: map;
  position: relative;
  align-self: start;
  aspect-ratio: 1264 / 832;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #17201d;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.capability-map img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.band {
  scroll-margin-top: 78px;
  padding: clamp(56px, 8vw, 108px) clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
}

.band.compact {
  background: var(--wash);
}

.section-heading {
  margin-bottom: 32px;
}

.market-section {
  background: #f6f1e9;
}

.market-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(420px, 1.2fr);
  gap: 18px;
  align-items: stretch;
}

.market-section .section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.38fr);
  gap: 24px;
  align-items: end;
}

.market-section .section-heading .eyebrow,
.market-section .section-heading h2 {
  grid-column: 1;
}

.market-section .section-heading::after {
  content: "Best-fit signal: operations context + automation proof + AI workflow evaluation";
  display: block;
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
  max-width: 34ch;
  margin-left: auto;
  padding-left: 16px;
  border-left: 3px solid var(--teal);
  color: var(--muted);
  font-weight: 800;
}

.market-thesis,
.lane-stack article,
.interpret-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 32px rgba(23, 32, 29, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.market-thesis {
  display: grid;
  align-content: center;
  min-height: 100%;
  padding: clamp(24px, 4vw, 36px);
  background:
    linear-gradient(135deg, rgba(12, 107, 98, 0.08), rgba(177, 107, 25, 0.05)),
    var(--white);
}

.market-thesis h3 {
  max-width: 18ch;
  font-size: clamp(1.65rem, 3.1vw, 2.65rem);
  line-height: 1.02;
}

.market-thesis p {
  max-width: 54ch;
  color: var(--muted);
}

.lane-stack {
  display: grid;
  gap: 12px;
}

.lane-stack article {
  display: grid;
  grid-template-columns: 54px minmax(0, 0.72fr) minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
}

.lane-stack article:hover,
.interpret-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(23, 32, 29, 0.11);
}

.lane-stack span {
  display: grid;
  place-items: center;
  width: 42px;
  aspect-ratio: 1;
  border-radius: 8px;
  background: #e8efe9;
  color: var(--teal);
  font-weight: 900;
}

.lane-stack h3,
.lane-stack p {
  margin-bottom: 0;
}

.lane-stack p {
  color: var(--muted);
}

.lane-focus-button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fdfcf8;
  color: var(--ink);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.lane-focus-button:hover,
.lane-focus-button:focus-visible {
  border-color: var(--teal);
  color: var(--teal);
}

.lane-primary {
  border-color: rgba(12, 107, 98, 0.48);
  background: #f0f8f4;
}

.lane-primary h3 {
  color: var(--teal);
}

.lane-primary span {
  background: var(--teal);
  color: var(--white);
}

.interpretation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.interpret-card {
  position: relative;
  padding: 24px;
  overflow: hidden;
}

.interpret-card .tag {
  margin-bottom: 14px;
}

.interpret-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--teal);
}

.not-as::before {
  background: var(--clay);
}

.interpret-card ul {
  display: grid;
  gap: 10px;
  padding-left: 20px;
  margin: 0;
  color: var(--muted);
}

.read-as {
  background: #f7fbf8;
}

.not-as {
  background: #fffaf8;
}

.jd-assessor,
.jd-result,
.chat-shell {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 32px rgba(23, 32, 29, 0.08);
}

.score-label {
  color: var(--muted);
  font-weight: 800;
}

.jd-assessor {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(320px, 1fr);
  gap: 18px;
  margin-top: 0;
  padding: clamp(20px, 3vw, 28px);
}

.jd-assessor h3 {
  font-size: 1.35rem;
}

.jd-form {
  display: grid;
  gap: 12px;
}

.jd-form textarea {
  width: 100%;
  min-height: 190px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  font: inherit;
}

.jd-result {
  grid-column: 1 / -1;
  align-self: stretch;
  padding: clamp(18px, 3vw, 24px);
  box-shadow: none;
}

.jd-result strong {
  display: block;
  margin: 4px 0 12px;
  font-size: 1.55rem;
  line-height: 1.1;
  color: var(--clay);
}

.jd-result.has-result {
  border-left: 4px solid var(--teal);
}

.jd-result.is-strong {
  border-left-color: var(--teal);
}

.jd-result.is-transfer {
  border-left-color: var(--amber);
}

.jd-result.is-gap {
  border-left-color: var(--clay);
}

.assessment-summary {
  max-width: 82ch;
  color: var(--muted);
}

.assessment-sections {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.assessment-sections article {
  min-height: 170px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fdfcf8;
}

.assessment-sections h4 {
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.assessment-sections ul {
  display: grid;
  gap: 8px;
  padding-left: 18px;
  margin: 0;
  color: var(--muted);
}

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

.proof-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: -6px 0 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fdfcf8;
}

.proof-toolbar p {
  max-width: 62ch;
  margin: 4px 0 0;
  color: var(--muted);
}

.evidence-index {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.evidence-index article {
  min-height: 128px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f5ee;
}

.evidence-index span {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--amber);
  font-size: 0.76rem;
  font-weight: 900;
}

.evidence-index strong {
  display: block;
  margin-bottom: 6px;
}

.evidence-index p {
  margin: 0;
  color: var(--muted);
}

.proof-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.proof-filters button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.proof-filters button:hover,
.proof-filters button:focus-visible,
.proof-filters button.is-active {
  border-color: var(--teal);
  background: var(--teal);
  color: var(--white);
}

.proof-card {
  min-height: 330px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.proof-card.is-hidden {
  display: none;
}

.proof-card p,
.proof-card li,
.value-section p,
.value-list,
.site-footer {
  color: var(--muted);
}

.proof-card ul {
  padding-left: 18px;
  margin-bottom: 18px;
}

.proof-summary {
  min-height: 82px;
}

.proof-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 18px;
}

.proof-chip-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  background: #f8f5ee;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
}

.proof-details {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 12px;
}

.proof-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--teal);
  cursor: pointer;
  font-weight: 900;
}

.proof-details summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  font-weight: 900;
}

.proof-details[open] summary::after {
  content: "-";
}

.case-study {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.case-study div {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.case-study div:first-child {
  border-top: 0;
  padding-top: 0;
}

.case-study dt {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.case-study dd {
  margin: 0;
  color: var(--muted);
}

.visual-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.visual-grid figure {
  min-width: 0;
  margin: 0;
}

.visual-grid img,
.visual-grid video {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef2f0;
  object-fit: cover;
}

.visual-grid img {
  cursor: zoom-in;
  object-fit: contain;
}

.visual-grid video {
  object-fit: contain;
}

.media-preview-trigger {
  min-height: 34px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: #f8f5ee;
  color: var(--teal);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}

.media-preview-trigger:hover,
.media-preview-trigger:focus-visible {
  border-color: var(--teal);
  background: var(--teal);
  color: var(--white);
}

.visual-grid figcaption {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.evidence-note {
  margin: 14px 0 0;
  padding: 12px;
  border-left: 3px solid var(--amber);
  background: #fbf6ec;
  font-size: 0.92rem;
}

.context-panel {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.context-panel summary {
  color: var(--teal);
  cursor: pointer;
  font-weight: 900;
}

.context-panel p {
  margin: 12px 0 0;
}

.tag {
  display: inline-flex;
  margin-bottom: 20px;
  color: var(--amber);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.value-section {
  background: #f6f1e9;
}

.value-heading {
  max-width: 920px;
}

.value-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: stretch;
  margin-bottom: 18px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.value-intro p {
  margin: 0;
}

.value-intro p:first-child {
  color: var(--ink);
  font-size: clamp(1.06rem, 2vw, 1.26rem);
  font-weight: 750;
  line-height: 1.45;
}

.value-intro p + p {
  padding-left: 20px;
  border-left: 3px solid var(--teal);
}

.value-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.value-card {
  position: relative;
  min-height: 360px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  overflow: hidden;
}

.value-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--teal);
}

.value-card:nth-child(2)::before {
  background: var(--amber);
}

.value-card:nth-child(3)::before {
  background: var(--clay);
}

.value-step {
  display: grid;
  place-items: center;
  width: 36px;
  aspect-ratio: 1;
  margin-bottom: 14px;
  border-radius: 8px;
  background: var(--teal);
  color: var(--white);
  font-weight: 900;
}

.value-card:nth-child(2) .value-step {
  background: var(--amber);
}

.value-card:nth-child(3) .value-step {
  background: var(--clay);
}

.value-card h3 {
  margin-bottom: 16px;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.value-list {
  display: grid;
  gap: 10px;
  padding-left: 18px;
  margin: 0;
}

.value-card p {
  margin: 0;
}

.value-card p + p {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.value-card-dark {
  background: var(--ink);
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.16);
}

.value-card-dark p {
  color: rgba(251, 250, 245, 0.76);
}

.chat-band {
  background: var(--ink);
  color: var(--paper);
}

.chat-band .eyebrow,
.chat-band h2 {
  color: var(--paper);
}

.chat-shell {
  max-width: 920px;
  background: #fdfcf8;
  color: var(--ink);
  overflow: hidden;
}

.assistant-preview {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) minmax(220px, 0.45fr);
  gap: clamp(18px, 4vw, 34px);
  align-items: center;
  max-width: 1020px;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.assistant-preview img {
  width: 140px;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
  object-position: center 34%;
}

.assistant-preview h3 {
  margin-bottom: 8px;
  color: var(--paper);
  font-size: clamp(1.45rem, 3vw, 2.1rem);
}

.assistant-preview p {
  margin-bottom: 0;
  color: rgba(251, 250, 245, 0.74);
}

.assistant-preview .tag {
  color: #d59d4a;
}

.assistant-preview-actions {
  display: grid;
  gap: 10px;
}

.assistant-preview-actions button:not(.button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--paper);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.assistant-preview-actions button:not(.button):hover,
.assistant-preview-actions button:not(.button):focus-visible {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.assistant-dialog {
  width: min(1180px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 32px));
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: transparent;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.42);
}

.assistant-dialog::backdrop,
.assessment-dialog::backdrop,
.lane-dialog::backdrop,
.evidence-dialog::backdrop {
  background: rgba(23, 32, 29, 0.62);
  backdrop-filter: blur(9px);
}

.assistant-dialog .chat-shell {
  max-width: none;
  width: 100%;
}

.assistant-research-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.assistant-discovery-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.38fr) minmax(0, 1fr);
  min-height: min(660px, calc(100vh - 126px));
}

.assistant-question-card {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: clamp(18px, 3vw, 26px);
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(12, 116, 103, 0.08), transparent 44%),
    #f7f2ea;
}

.assistant-status {
  width: fit-content;
  border: 1px solid rgba(12, 116, 103, 0.26);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(12, 116, 103, 0.1);
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.assistant-question-card h3 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  line-height: 1.05;
}

.assistant-question-form {
  display: grid;
  gap: 10px;
}

.assistant-question-form label {
  font-weight: 900;
}

.assistant-question-form textarea {
  width: 100%;
  min-height: 180px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  line-height: 1.45;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.assistant-question-form textarea:focus {
  outline: 3px solid rgba(12, 116, 103, 0.18);
  border-color: var(--teal);
}

.assistant-starter-prompts {
  display: grid;
  gap: 9px;
  padding-top: 2px;
}

.assistant-starter-prompts button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
  transition: border-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.assistant-starter-prompts button::after {
  content: ">";
  color: var(--teal);
  font-weight: 900;
}

.assistant-starter-prompts button:hover,
.assistant-starter-prompts button:focus-visible {
  border-color: var(--teal);
  color: var(--teal);
  transform: translateX(2px);
}

.assistant-discovery-panel {
  min-width: 0;
  overflow: auto;
  padding: clamp(18px, 3vw, 28px);
  background:
    radial-gradient(circle at 90% 0%, rgba(213, 157, 74, 0.16), transparent 30%),
    var(--white);
}

.assistant-discovery-panel:focus {
  outline: none;
}

.assistant-discovery-header {
  max-width: 840px;
  margin-bottom: 18px;
}

.assistant-discovery-header h3 {
  margin: 4px 0 8px;
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  line-height: 1.04;
}

.assistant-discovery-header p {
  margin: 0;
  color: var(--muted);
}

.assistant-discovery-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.assistant-discovery-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fdfcf8;
  box-shadow: 0 16px 36px rgba(23, 32, 29, 0.08);
}

.assistant-discovery-card.is-featured {
  grid-column: 1 / -1;
  border-left: 5px solid var(--teal);
  background: linear-gradient(90deg, rgba(12, 116, 103, 0.1), #fdfcf8 46%);
}

.assistant-card-tag {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--copper);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.assistant-discovery-card h4 {
  margin: 0 0 10px;
  font-size: 1rem;
  line-height: 1.2;
}

.assistant-discovery-card p,
.assistant-discovery-card li {
  color: var(--muted);
}

.assistant-discovery-card p {
  margin: 0;
}

.assistant-discovery-card ul {
  margin: 0;
  padding-left: 18px;
}

.assistant-discovery-card li + li {
  margin-top: 8px;
}

.assistant-card-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 14px;
  color: var(--teal);
  font-weight: 900;
  text-decoration: none;
}

.assistant-card-link:hover,
.assistant-card-link:focus-visible {
  text-decoration: underline;
}

.assistant-followup-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 40px;
  margin-top: 14px;
  border: 1px solid rgba(12, 116, 103, 0.28);
  border-radius: 8px;
  padding: 0 13px;
  background: rgba(12, 116, 103, 0.08);
  color: var(--teal);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.assistant-followup-button:hover,
.assistant-followup-button:focus-visible {
  border-color: var(--teal);
  background: rgba(12, 116, 103, 0.14);
}

.assessment-dialog {
  width: min(1120px, calc(100vw - 32px));
  max-height: min(820px, calc(100vh - 32px));
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: transparent;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.42);
}

.lane-dialog {
  width: min(1040px, calc(100vw - 32px));
  max-height: min(820px, calc(100vh - 32px));
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: transparent;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.42);
}

.evidence-dialog {
  width: min(1600px, calc(100vw - 20px));
  max-height: calc(100vh - 20px);
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: transparent;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.42);
}

.assessment-modal-shell {
  overflow: hidden;
  border-radius: 8px;
  background: var(--white);
}

.assessment-modal-header,
.lane-modal-header,
.evidence-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: #f7f2ea;
}

.assessment-modal-header strong,
.lane-modal-header strong,
.evidence-modal-header strong {
  display: block;
  margin-top: 2px;
  font-size: 1.25rem;
}

.lane-modal-shell {
  overflow: hidden;
  border-radius: 8px;
  background: var(--white);
}

.evidence-modal-shell {
  display: grid;
  max-height: inherit;
  overflow: hidden;
  border-radius: 8px;
  background: var(--white);
}

.evidence-preview {
  display: grid;
  gap: 10px;
  grid-template-rows: auto minmax(0, 1fr) auto;
  margin: 0;
  padding: 18px;
}

.evidence-preview-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.evidence-preview-toolbar button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #f8f5ee;
  color: var(--ink);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 900;
  cursor: pointer;
}

.evidence-preview-toolbar button:hover:not(:disabled) {
  border-color: var(--teal);
  background: var(--teal);
  color: var(--white);
}

.evidence-preview-toolbar button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.evidence-preview-frame {
  display: grid;
  place-items: start center;
  min-height: min(62vh, 620px);
  max-height: calc(100vh - 230px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef2f0;
}

.evidence-preview-frame.is-video {
  place-items: center;
  background: #111815;
}

.evidence-preview img,
.evidence-preview video {
  display: block;
  width: calc(100% * var(--evidence-zoom, 1));
  max-width: none;
  height: auto;
  object-fit: contain;
}

.evidence-preview [hidden] {
  display: none;
}

.evidence-preview video {
  width: 100%;
  max-height: calc(100vh - 230px);
  background: #111815;
}

.evidence-preview figcaption {
  color: var(--muted);
  font-weight: 800;
}

.lane-modal-body {
  display: grid;
  gap: 18px;
  max-height: calc(100vh - 160px);
  overflow: auto;
  padding: clamp(18px, 3vw, 28px);
}

.lane-modal-summary {
  max-width: 82ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.lane-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.lane-detail-card {
  min-height: 190px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fdfcf8;
}

.lane-detail-card h4 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.lane-detail-card ul {
  display: grid;
  gap: 8px;
  padding-left: 18px;
  margin: 0;
  color: var(--muted);
}

.lane-fit-note {
  padding: 16px 18px;
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  background: #f7fbf8;
  color: var(--muted);
}

.assessment-dialog .jd-result {
  max-height: calc(100vh - 160px);
  overflow: auto;
  border: 0;
  border-left: 4px solid var(--teal);
  border-radius: 0;
  box-shadow: none;
}

.modal-close {
  display: grid;
  place-items: center;
  width: 38px;
  aspect-ratio: 1;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover,
.modal-close:focus-visible {
  border-color: var(--teal);
  color: var(--teal);
}

.chat-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: #f7f2ea;
}

.chat-profile img {
  width: 58px;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
  object-position: center 34%;
}

.chat-profile strong,
.chat-profile span {
  display: block;
}

.chat-profile span {
  color: var(--muted);
  font-size: 0.94rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

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

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
    grid-template-areas:
      "portrait copy"
      "strip strip"
      "map map";
    min-height: auto;
  }

  .hero h1 {
    white-space: normal;
  }

  .hero-portrait-panel {
    max-width: 340px;
  }

}

@media (max-width: 860px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero,
  .market-layout,
  .market-section .section-heading,
  .interpretation-grid,
  .jd-assessor,
  .assessment-sections,
  .evidence-index,
  .proof-grid,
  .visual-grid,
  .value-intro,
  .value-card-grid,
  .assistant-preview {
    grid-template-columns: 1fr;
  }

  .proof-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .proof-filters {
    justify-content: flex-start;
  }

  .hero {
    grid-template-areas:
      "copy"
      "strip"
      "portrait"
      "map";
  }

  .hero-portrait-panel {
    width: min(100%, 360px);
  }

  .hero-actions {
    order: -1;
  }

  .market-section .section-heading::after {
    grid-column: 1;
    grid-row: auto;
    max-width: none;
    margin-left: 0;
  }

  .lane-stack article {
    grid-template-columns: 48px 1fr auto;
  }

  .lane-stack article p {
    grid-column: 2 / -1;
  }

  .lane-focus-button {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  .lane-detail-grid {
    grid-template-columns: 1fr;
  }

  .assistant-dialog {
    width: calc(100vw - 20px);
  }

  .assistant-discovery-shell {
    grid-template-columns: 1fr;
  }

  .assistant-question-card {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .assistant-starter-prompts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .capability-map {
    width: 100%;
  }

  .value-intro p + p {
    padding-left: 0;
    padding-top: 16px;
    border-left: 0;
    border-top: 3px solid var(--teal);
  }
}

@media (max-width: 560px) {
  .nav {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px 14px;
  }

  .nav a {
    min-height: 34px;
  }

  .market-thesis h3 {
    max-width: none;
  }

  .lane-stack article {
    grid-template-columns: 1fr;
  }

  .lane-stack article p {
    grid-column: auto;
  }

  .lane-focus-button {
    grid-column: auto;
    grid-row: auto;
    justify-self: stretch;
    width: 100%;
  }

  .button {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .assistant-starter-prompts,
  .assistant-discovery-cards {
    grid-template-columns: 1fr;
  }

  .assistant-discovery-panel {
    padding: 16px;
  }

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

  .assistant-preview-actions .button {
    width: 100%;
  }

  .case-study div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .proof-filters button {
    flex: 1 1 calc(50% - 8px);
  }

  .evidence-dialog {
    width: calc(100vw - 12px);
    max-height: calc(100vh - 12px);
  }

  .evidence-preview {
    padding: 12px;
  }

  .evidence-preview-toolbar {
    justify-content: stretch;
  }

  .evidence-preview-toolbar button {
    flex: 1 1 calc(50% - 8px);
  }

  .evidence-preview-frame {
    min-height: 0;
    max-height: calc(100vh - 250px);
  }

  .evidence-preview-frame.is-video {
    min-height: min(42vh, 360px);
  }

  .capability-map {
    width: 100%;
  }
}

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