:root {
  --bg: #f4f4f0;
  --text: #1a1a1a;
  --emerald: #00594c;
  --cobalt: #1d3557;
  --border: #d1d1d1;
  --gold: #b88a3d;
  --copper: #a85c4a;
  --surface: #fafaf6;
  --muted: #69645d;
  --muted-light: #9b958d;
  --radius: 2px;
  --font-serif: "Playfair Display", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.header-grid {
  min-height: 72px;
  display: grid;
  grid-template-columns: 220px 1fr 220px;
  gap: 28px;
  align-items: center;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
}

.brand-name {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-status,
.section-label,
.access-badge,
.primary-nav a,
.site-footer a,
.strict-table span:first-child,
.pipeline-stage-number {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-status,
.access-badge {
  color: var(--muted-light);
}

.primary-nav,
.site-footer nav {
  display: flex;
  justify-content: center;
  gap: 22px;
}

.primary-nav a,
.site-footer a {
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}

.primary-nav a:hover,
.site-footer a:hover {
  color: var(--emerald);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.language-switch button {
  appearance: none;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 3px 0;
}

.language-switch button.is-active,
.language-switch button:hover {
  border-bottom-color: var(--emerald);
  color: var(--emerald);
}

.section-block {
  border-bottom: 1px solid var(--border);
  padding: 96px 0;
}

.hero {
  padding-top: 124px;
  padding-bottom: 88px;
}

.hero-copy {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.section-grid,
.section-header,
.final-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 72px;
  align-items: start;
}

.section-copy {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.section-label {
  margin: 0 0 18px;
  color: var(--cobalt);
  font-weight: 700;
}

.hero .section-label {
  margin-bottom: 30px;
}

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

h1,
h2 {
  font-family: "Playfair Display", Georgia, serif;
}

h1 {
  max-width: 900px;
  margin: 0 auto 34px;
  font-size: clamp(48px, 6vw, 84px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.99;
}

.hero-title {
  max-width: 760px;
  font-size: clamp(42px, 4.7vw, 66px);
  letter-spacing: -0.032em;
  line-height: 0.98;
}

h2 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(32px, 3.4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.04;
}

h3 {
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lead,
.body-large {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.hero .lead {
  max-width: 680px;
  margin: 0 auto 42px;
}

.hero-subtitle {
  max-width: 620px;
  font-size: 15.5px;
  line-height: 1.65;
}

.hero-actions-row,
.final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-actions-row {
  justify-content: center;
}

.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  padding: 11px 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.btn-primary {
  border: 1px solid var(--emerald);
  background: var(--emerald);
  color: #fff;
}

.btn-primary:hover {
  background: #00483e;
}

.btn-ghost {
  border: 1px solid var(--cobalt);
  background: transparent;
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--emerald);
  color: var(--emerald);
}

.meta-line {
  margin: 26px 0 0;
  color: var(--muted-light);
  font-size: 12px;
  line-height: 1.55;
}

.hero-scroll-cue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
  color: var(--cobalt);
  font-size: 10px;
  letter-spacing: 0.12em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.hero-scroll-cue:hover {
  color: var(--emerald);
}

.hero-scroll-cue:focus-visible {
  outline: 1px solid var(--cobalt);
  outline-offset: 4px;
}

.review-snapshot {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 900px;
  margin: 40px auto 0;
  border-top: 1px solid var(--border);
  text-align: left;
}

.review-snapshot article {
  min-height: 118px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: transparent;
  padding: 22px;
}

.review-snapshot h3 {
  margin-bottom: 14px;
  color: var(--cobalt);
  font-size: 10px;
}

.review-snapshot p {
  margin: 0;
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.55;
}

.demo-clips {
  padding-top: 72px;
  padding-bottom: 88px;
}

.demo-clips .section-header {
  margin-bottom: 34px;
}

.demo-clips-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0;
  border-top: 1px solid var(--border);
}

.demo-clip-card {
  min-width: 0;
  padding: 18px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.demo-clip-card:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 4px;
}

.demo-clip-meta {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
  color: var(--cobalt);
  font-size: 10px;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.demo-clip-frame {
  width: 100%;
  height: 190px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #edede8;
}

.demo-clip-video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #edede8;
  object-fit: cover;
  object-position: top center;
}

.demo-clip-card h3 {
  margin-top: 16px;
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-align: center;
  text-transform: uppercase;
}

.demo-clip-card p {
  max-width: 92%;
  margin-top: 8px;
  color: rgba(26, 26, 26, 0.72);
  font-size: 13.5px;
  line-height: 1.5;
}

.four-column-grid,
.evidence-grid,
.resource-grid {
  display: grid;
  margin-top: 50px;
  border-top: 1px solid var(--border);
}

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

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

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

.layer-line {
  display: grid;
  margin-top: 50px;
  border-top: 1px solid var(--border);
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.dossier-subsection {
  margin-top: 54px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.dossier-subsection + .dossier-subsection {
  margin-top: 40px;
}

.dossier-subsection .section-label {
  margin-bottom: 16px;
  color: var(--muted);
}

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

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

.four-column-grid article,
.evidence-grid article,
.resource-grid article,
.layer-line article {
  min-height: 190px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: transparent;
  padding: 28px;
}

.resource-primary {
  min-height: 230px;
}

.layer-line article {
  min-height: 160px;
  padding: 24px;
}

.four-column-grid h3,
.evidence-grid h3,
.resource-grid h3,
.layer-line h3 {
  color: var(--text);
  font-size: 13.5px;
  letter-spacing: 0.04em;
  line-height: 1.35;
}

article p,
.governance-list div {
  color: rgba(26, 26, 26, 0.72);
  font-size: 14.5px;
  line-height: 1.55;
}

.governance-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.governance-list div {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

.governance-list div:last-child {
  border-bottom: 0;
}

.statement-row {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 36px;
  margin-top: 50px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.statement-row span {
  color: var(--cobalt);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
}

.statement-row p {
  margin: 0;
  color: var(--text);
  font-size: 15.5px;
  line-height: 1.6;
}

.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 50px;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.pipeline-stage {
  min-height: 270px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 26px;
}

.pipeline-stage-number {
  display: block;
  color: var(--cobalt);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.pipeline-stage-title {
  margin-top: 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pipeline-stage-list {
  margin-top: 22px;
}

.pipeline-stage-list div {
  padding: 10px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.evaluation-notes {
  margin-top: 34px;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.evaluation-note {
  padding: 28px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.evaluation-note p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14.25px;
  line-height: 1.65;
}

.evaluation-note p + p {
  margin-top: 14px;
}

.strict-table {
  width: 100%;
  margin-top: 50px;
  border-top: 1px solid var(--border);
  font-size: 14px;
}

.strict-table > div {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 34px;
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.strict-table span:first-child {
  color: var(--text);
  font-weight: 700;
}

.strict-table span:last-child {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.table-head span {
  color: var(--cobalt) !important;
  font-size: 10px !important;
}

.governance-list div::before {
  content: "— ";
  color: var(--cobalt);
}

.reviewer-rows {
  margin-top: 50px;
  border-top: 1px solid var(--border);
}

.reviewer-rows > div {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 56px;
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}

.reviewer-rows h3 {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  letter-spacing: 0;
  line-height: 1.45;
  text-transform: none;
}

.reviewer-rows p {
  margin: 0;
  color: var(--muted);
  font-size: 14.25px;
  line-height: 1.65;
}

.final-section {
  background: var(--bg);
}

.final-grid {
  align-items: center;
}

.final-actions {
  justify-content: flex-end;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 30px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
}

.site-footer strong {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 17px;
}

.site-footer span {
  display: block;
  color: var(--muted-light);
  font-size: 10px;
  line-height: 1.5;
}

.site-footer div:last-child {
  text-align: right;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
}

.video-modal.is-open {
  display: block;
}

.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.42);
}

.video-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100vw - 48px));
  max-height: calc(100vh - 96px);
  margin: 48px auto;
  overflow: auto;
  border: 1px solid var(--border);
  border-top: 2px solid var(--cobalt);
  background: var(--bg);
  padding: 24px;
}

.video-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.video-modal__eyebrow {
  margin: 0;
  color: var(--cobalt);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.video-modal__close {
  appearance: none;
  border: 1px solid var(--cobalt);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  padding: 8px 12px;
  font: inherit;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.video-modal__title {
  margin: 0 0 18px;
  font-family: var(--font-serif);
  font-size: clamp(28px, 3vw, 44px);
  letter-spacing: -0.03em;
  line-height: 1;
  text-transform: none;
}

.video-modal__frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #edede8;
}

.video-modal__video {
  display: block;
  width: 100%;
  height: 100%;
  background: #edede8;
  object-fit: contain;
}

@media (max-width: 1100px) {
  .header-grid,
  .section-grid,
  .section-header,
  .final-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .primary-nav,
  .site-footer nav,
  .header-actions,
  .final-actions {
    justify-content: flex-start;
  }

  .evidence-grid,
  .evidence-grid.is-demo,
  .evidence-grid.is-tested,
  .review-snapshot,
  .pipeline-grid,
  .resource-grid,
  .layer-line,
  .four-column-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer div:last-child {
    text-align: left;
  }
}

@media (max-width: 920px) {
  .pipeline-grid,
  .evaluation-notes {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .video-modal__dialog {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 48px);
    margin: 24px auto;
    padding: 16px;
  }

  .video-modal__frame {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 980px) {
  .demo-clips-grid {
    grid-template-columns: 1fr;
  }

  .demo-clip-frame {
    height: 240px;
  }
}

@media (max-width: 560px) {
  .demo-clip-frame {
    height: 190px;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 36px, 1180px);
  }

  .section-block {
    padding: 64px 0;
  }

  .hero {
    padding-top: 72px;
    padding-bottom: 64px;
  }

  h1 {
    font-size: clamp(38px, 12vw, 54px);
    line-height: 1;
  }

  .hero-title {
    font-size: clamp(38px, 12vw, 54px);
    line-height: 1;
  }

  h2 {
    font-size: clamp(30px, 10vw, 42px);
  }

  .primary-nav {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .header-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .hero-actions-row,
  .final-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .four-column-grid,
  .evidence-grid,
  .evidence-grid.is-demo,
  .evidence-grid.is-tested,
  .review-snapshot,
  .pipeline-grid,
  .evaluation-notes,
  .resource-grid,
  .layer-line {
    grid-template-columns: 1fr;
  }

  .statement-row,
  .reviewer-rows > div {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .strict-table > div {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
