:root {
  color-scheme: light;
  --ink: #151513;
  --muted: #5f635f;
  --soft: #f5f6f3;
  --paper: #ffffff;
  --line: #d8ddd6;
  --green: #1d7a55;
  --green-soft: #e5f5ee;
  --coral: #df4f3f;
  --coral-soft: #fae7e3;
  --amber: #9a6400;
  --amber-soft: #fff3d6;
  --blue: #315e9f;
  --blue-soft: #e9f0fb;
  --shadow: 0 18px 44px rgba(32, 35, 34, 0.16);
  --radius: 8px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

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

p,
h1,
h2,
h3,
dl,
dd,
figure,
ol,
ul {
  margin: 0;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 44px);
  color: #fff;
  background: rgba(18, 20, 19, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 760;
  white-space: nowrap;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  font-size: 13px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
}

.site-nav a {
  padding: 10px 10px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #fff;
}

.hero {
  position: relative;
  min-height: 88vh;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 126px clamp(20px, 5vw, 72px) 76px;
  color: #fff;
  background: #191917;
}

.hero-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-shot {
  position: absolute;
  object-fit: cover;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

.hero-shot-main {
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.7;
}

.hero-shot-search {
  right: 6vw;
  bottom: 6vh;
  width: min(52vw, 700px);
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  opacity: 0.72;
}

.hero-shot-output,
.hero-shot-debug,
.hero-shot-circle {
  width: 170px;
  height: 170px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
}

.hero-shot-output {
  right: 8vw;
  top: 132px;
}

.hero-shot-debug {
  right: 21vw;
  top: 188px;
}

.hero-shot-circle {
  right: 30vw;
  bottom: 120px;
  border-radius: 50%;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: rgba(11, 12, 12, 0.58);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.eyebrow {
  color: var(--green);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero .eyebrow {
  color: #9ee4c3;
}

h1 {
  margin-top: 14px;
  font-size: 70px;
  line-height: 0.98;
  font-weight: 820;
}

.hero-copy {
  max-width: 680px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 21px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: var(--radius);
  font-weight: 760;
  border: 1px solid transparent;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button-primary {
  color: #fff;
  background: var(--coral);
  box-shadow: 0 14px 28px rgba(223, 79, 63, 0.25);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #c84538;
}

.button-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
}

.section .button-secondary,
.contact-section .button-secondary {
  color: var(--ink);
  border-color: var(--line);
  background: #fff;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 720px;
  margin-top: 46px;
}

.hero-metrics div {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
}

.hero-metrics dt {
  font-size: 21px;
  font-weight: 820;
}

.hero-metrics dd {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
}

.section {
  padding: 92px clamp(20px, 5vw, 72px);
}

.section-light {
  background: var(--soft);
}

.section-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.intro-band {
  padding: 30px clamp(20px, 5vw, 72px);
  background: #111;
  color: #fff;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.proof-item {
  min-height: 138px;
  padding: 22px;
  background: #181917;
}

.proof-item strong {
  display: block;
  color: #9ee4c3;
  font-size: 18px;
}

.proof-item span {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 54px;
  align-items: start;
}

.section-copy h2,
.section-heading h2,
.contact-layout h2 {
  margin-top: 12px;
  font-size: 42px;
  line-height: 1.08;
  font-weight: 810;
}

.section-copy p,
.section-heading p,
.contact-layout p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 17px;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 42px;
}

.section-heading.wide {
  max-width: 900px;
}

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

.capability-list article,
.signal-grid article,
.case-card,
.qa-board,
.workflow-list li,
.screen-grid figure {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.capability-list article {
  min-height: 202px;
  padding: 24px;
}

.mini-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--green);
  background: var(--green-soft);
  font-size: 13px;
  font-weight: 810;
}

h3 {
  margin-top: 14px;
  font-size: 20px;
  line-height: 1.2;
}

.capability-list p,
.signal-grid p,
.case-meta p,
.qa-verdict p,
.workflow-list p,
.screen-grid figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
}

.search-section {
  background: #fbfbf9;
}

.search-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 28px;
  align-items: stretch;
}

.screen-frame {
  overflow: hidden;
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.screen-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
}

.signal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.signal-grid article {
  padding: 22px;
}

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

.pipeline-board {
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0f1211;
  box-shadow: var(--shadow);
}

.pipeline-board img {
  width: 100%;
  height: auto;
}

.pipeline-board figcaption {
  padding: 13px 16px 16px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.case-card {
  overflow: hidden;
}

.case-meta {
  padding: 22px 22px 18px;
}

.identity-card {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 15px;
  border: 1px solid #dce5db;
  border-radius: var(--radius);
  background: #f8fbf7;
}

.identity-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}

.identity-card dt {
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.identity-card dd {
  margin-top: 3px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 720;
}

.snippet-list {
  display: grid;
  gap: 8px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
}

.snippet-list strong {
  color: var(--ink);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 780;
}

.status-green {
  color: var(--green);
  background: var(--green-soft);
}

.status-red {
  color: #a52f22;
  background: var(--coral-soft);
}

.compare {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #e9ece8;
  --split: 52%;
}

.compare img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compare-after {
  clip-path: inset(0 calc(100% - var(--split)) 0 0);
}

.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split);
  width: 2px;
  transform: translateX(-1px);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.2);
}

.compare-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34px;
  height: 34px;
  transform: translate(-50%, -50%);
  border: 2px solid #fff;
  border-radius: 50%;
  background: rgba(21, 21, 19, 0.62);
}

.compare input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

.artifact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
}

.artifact-row figure {
  background: #fff;
}

.artifact-row img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.artifact-row figcaption {
  padding: 9px 12px 12px;
  color: var(--muted);
  font-size: 13px;
}

.qa-section {
  background: #171717;
  color: #fff;
}

.qa-section .eyebrow {
  color: #ffb3a9;
}

.qa-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 42px;
  align-items: center;
}

.qa-section .section-copy p,
.qa-section .check-list {
  color: rgba(255, 255, 255, 0.76);
}

.check-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
  padding-left: 18px;
}

.qa-board {
  overflow: hidden;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}

.qa-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
}

.qa-media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #fff;
}

.qa-verdict {
  padding: 24px;
}

.workflow-section {
  background: #fbfbf9;
}

.workflow-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  list-style: none;
  counter-reset: workflow;
}

.workflow-list li {
  min-height: 226px;
  padding: 24px;
}

.workflow-list span {
  display: inline-flex;
  color: var(--blue);
  font-weight: 830;
}

code {
  padding: 2px 5px;
  border-radius: 5px;
  background: var(--blue-soft);
  color: #244c85;
  font-size: 0.92em;
}

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

.screen-grid figure {
  overflow: hidden;
}

.screen-grid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: left top;
  border-bottom: 1px solid var(--line);
}

.screen-grid figcaption {
  padding: 14px 16px 16px;
}

.stack-section {
  background: #fff;
}

.stack-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 42px;
  align-items: center;
}

.stack-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stack-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 720;
}

.stack-cloud span:nth-child(3n + 1) {
  background: var(--green-soft);
}

.stack-cloud span:nth-child(3n + 2) {
  background: var(--blue-soft);
}

.stack-cloud span:nth-child(3n) {
  background: var(--amber-soft);
}

.contact-section {
  background: #20231f;
  color: #fff;
}

.contact-section .eyebrow {
  color: #9ee4c3;
}

.contact-section p {
  color: rgba(255, 255, 255, 0.78);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.46fr);
  gap: 42px;
  align-items: center;
}

.contact-actions {
  display: grid;
  gap: 12px;
}

.contact-note {
  font-size: 13px;
}

.site-footer {
  padding: 24px clamp(20px, 5vw, 72px);
  color: #5b5f5a;
  background: #f2f3ef;
  font-size: 13px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.hero-us {
  min-height: 88vh;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.82;
}

.mock-console {
  overflow: hidden;
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.mock-topbar,
.mock-screen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: #20231f;
  color: #fff;
}

.mock-topbar span,
.mock-screen-header span {
  font-weight: 780;
}

.mock-topbar strong,
.mock-screen-header strong {
  color: #9ee4c3;
  font-size: 13px;
}

.mock-query {
  padding: 22px;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.mock-query span {
  color: var(--green);
  font-size: 12px;
  font-weight: 780;
  text-transform: uppercase;
}

.mock-query strong {
  display: block;
  margin-top: 6px;
  font-size: 24px;
}

.mock-query p {
  margin-top: 8px;
  color: var(--muted);
}

.candidate-list {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.candidate-list article {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 112px;
  padding: 16px;
  background: #fff;
}

.candidate-list h3 {
  margin-top: 0;
}

.candidate-list p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
}

.score {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 13px;
  white-space: nowrap;
}

.score.good {
  color: var(--green);
  background: var(--green-soft);
}

.score.warn {
  color: var(--amber);
  background: var(--amber-soft);
}

.score.bad {
  color: #a52f22;
  background: var(--coral-soft);
}

.source-scene,
.output-scene,
.debug-output {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  background-repeat: no-repeat;
  background-color: #dfe5e3;
}

.source-scene {
  background-image: url("assets/raw-source-scenes-strip.png");
  background-size: 300% 100%;
  filter: saturate(0.84) contrast(1.08);
}

.source-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(223, 79, 63, 0.16), transparent 34%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 9px);
}

.scene-1 {
  background-position: 0% 0%;
}

.scene-2 {
  background-position: 50% 0%;
}

.scene-3 {
  background-position: 100% 0%;
}

.output-scene {
  background-image: url("assets/engine-output-strip.png");
  background-size: 300% 100%;
}

.debug-output {
  background-image: url("assets/engine-debug-strip.png");
  background-size: 300% 100%;
}

.mask-debug-output {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  background-image: url("assets/engine-mask-feature-strip.png");
  background-size: 300% 100%;
  background-repeat: no-repeat;
  background-color: #dfe5e3;
}

.out-1 {
  background-position: 0% 0%;
}

.out-2 {
  background-position: 50% 0%;
}

.out-3 {
  background-position: 100% 0%;
}

.debug-output,
.mask-debug-output {
  width: 86px;
  height: 86px;
  flex: 0 0 auto;
}

.portrait-tile {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  background-image: url("assets/synthetic-portraits.png");
  background-size: 300% 200%;
  background-repeat: no-repeat;
  background-color: #dfe5e3;
}

.portrait-tile.small {
  width: 76px;
  height: 76px;
}

.portrait-tile.p1 {
  background-position: 0% 0%;
}

.portrait-tile.p2 {
  background-position: 50% 0%;
}

.portrait-tile.p3 {
  background-position: 100% 0%;
}

.portrait-tile.p4 {
  background-position: 0% 100%;
}

.portrait-tile.p5 {
  background-position: 50% 100%;
}

.portrait-tile.p6 {
  background-position: 100% 100%;
}

.portrait-tile.muted,
.portrait-tile.raw {
  filter: saturate(0.48) contrast(1.42) brightness(0.82) blur(0.7px);
}

.portrait-tile.raw {
  background-size: 390% 260%;
  box-shadow:
    inset 0 0 0 1px rgba(165, 47, 34, 0.22),
    inset 0 0 34px rgba(0, 0, 0, 0.34);
  clip-path: polygon(4% 0, 100% 5%, 94% 100%, 0 92%);
}

.portrait-tile.raw::before,
.portrait-tile.busy::before,
.portrait-tile.tilted::before,
.portrait-tile.rejected::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.portrait-tile.raw::before {
  background:
    linear-gradient(115deg, rgba(223, 79, 63, 0.25), transparent 32%),
    linear-gradient(0deg, rgba(31, 94, 159, 0.16), transparent 58%),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 10px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.12) 0 2px, transparent 2px 16px);
  mix-blend-mode: multiply;
}

.portrait-tile.raw::after,
.portrait-tile.busy::after,
.portrait-tile.tilted::after {
  content: "";
  position: absolute;
  inset: -8% 8% 12% -10%;
  pointer-events: none;
  border: 4px solid rgba(165, 47, 34, 0.62);
  border-right: 0;
  transform: rotate(-8deg);
  opacity: 0.78;
}

.portrait-tile.busy::before {
  background:
    radial-gradient(circle at 16% 18%, rgba(223, 79, 63, 0.52), transparent 24%),
    radial-gradient(circle at 88% 72%, rgba(49, 94, 159, 0.42), transparent 26%),
    repeating-linear-gradient(135deg, rgba(0, 0, 0, 0.18) 0 3px, transparent 3px 18px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.24), transparent 30%, rgba(0, 0, 0, 0.18));
  mix-blend-mode: multiply;
}

.portrait-tile.busy {
  filter: saturate(0.34) contrast(1.7) brightness(0.76) blur(1px);
  clip-path: polygon(0 8%, 96% 0, 100% 88%, 8% 100%);
}

.portrait-tile.tilted::before {
  inset: -12%;
  border: 34px solid rgba(21, 21, 19, 0.34);
  background:
    linear-gradient(45deg, transparent 0 44%, rgba(255, 255, 255, 0.28) 45% 48%, transparent 49%),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.16) 0 1px, transparent 1px 12px);
  transform: rotate(-12deg);
}

.portrait-tile.tilted {
  filter: saturate(0.42) contrast(1.58) brightness(0.78) blur(0.8px);
  clip-path: polygon(9% 0, 100% 0, 91% 100%, 0 88%);
}

.portrait-tile.processed {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32);
  filter: saturate(1.04) contrast(1.02);
}

.portrait-tile.rejected {
  filter: saturate(0.65) contrast(0.86);
}

.portrait-tile.rejected::before {
  border-top: 34px solid rgba(165, 47, 34, 0.34);
  border-left: 20px solid rgba(165, 47, 34, 0.18);
}

.portrait-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.portrait-pair figure {
  background: #fff;
}

.portrait-pair figcaption {
  padding: 9px 12px 12px;
  color: var(--muted);
  font-size: 13px;
}

.debug-strip {
  display: grid;
  grid-template-columns: 86px 86px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 16px;
}

.debug-strip .portrait-tile,
.debug-strip .mask-debug-output {
  width: 86px;
  height: 86px;
}

.debug-strip p {
  color: var(--muted);
  font-size: 14px;
}

.demo-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
}

.dev-assessment-section {
  background: #edf4f1;
}

.assessment-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.assessment-summary article {
  min-height: 150px;
  padding: 20px;
  border: 1px solid #cfded8;
  border-radius: var(--radius);
  background: #fff;
}

.assessment-summary span,
.risk-pass span {
  color: var(--green);
  font-size: 11px;
  font-weight: 820;
  text-transform: uppercase;
}

.assessment-summary strong {
  display: block;
  margin-top: 7px;
  font-size: 23px;
  line-height: 1.05;
}

.assessment-summary p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

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

.assessment-card {
  overflow: hidden;
  border: 1px solid #cfded8;
  border-radius: var(--radius);
  background: #fff;
}

.assessment-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.assessment-head h3 {
  margin-top: 10px;
}

.assessment-head > strong {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  white-space: nowrap;
}

.assessment-media {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.assessment-media .source-scene,
.assessment-media .debug-output,
.assessment-media .mask-debug-output {
  width: 100%;
  height: auto;
  border-radius: 0;
}

.risk-pass {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.risk-pass div {
  min-height: 156px;
  padding: 18px;
  background: #fff;
}

.risk-pass strong {
  display: block;
  margin-top: 7px;
  font-size: 40px;
  line-height: 0.95;
}

.risk-pass p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.metric-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
}

.metric-list div {
  min-height: 72px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.metric-list div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.metric-list dt {
  color: var(--muted);
  font-size: 12px;
}

.metric-list dd {
  margin-top: 4px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 780;
}

.score-detail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.score-detail div {
  min-height: 122px;
  padding: 16px 18px;
  background: #f9fbf8;
}

.score-detail-alert div {
  background: #fff8f6;
}

.score-detail span,
.raw-metrics dt {
  color: var(--green);
  font-size: 11px;
  font-weight: 820;
  text-transform: uppercase;
}

.score-detail strong {
  display: block;
  margin-top: 6px;
  font-size: 32px;
  line-height: 1;
}

.score-detail em {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.28;
}

.raw-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.raw-metrics div {
  min-height: 78px;
  padding: 14px 16px;
  background: #fff;
}

.raw-metrics dd {
  margin-top: 5px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 780;
}

.component-bars {
  display: grid;
  gap: 10px;
  padding: 18px 20px 20px;
}

.component-bars span {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px;
  gap: 12px;
  align-items: center;
  min-height: 28px;
  color: var(--ink);
  font-size: 13px;
}

.component-bars span::before {
  content: "";
  position: absolute;
  left: 0;
  right: 116px;
  bottom: 0;
  height: 6px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--green) calc(var(--score) * 1%), #d9e4df 0);
}

.component-bars strong {
  padding-bottom: 10px;
  font-weight: 720;
}

.component-bars em {
  padding-bottom: 10px;
  color: var(--green);
  font-style: normal;
  font-weight: 820;
  text-align: right;
}

.requirements-section {
  background: #fff;
}

.requirements-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(300px, 0.58fr);
  gap: 42px;
  align-items: start;
}

.requirements-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.requirements-grid article {
  min-height: 142px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.requirements-grid strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
}

.requirements-grid span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.spec-visual {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #111;
  box-shadow: var(--shadow);
}

.spec-frame {
  position: relative;
  aspect-ratio: 1 / 1;
  margin: 22px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #dfe5e3;
}

.spec-frame .output-scene,
.spec-frame .debug-output,
.spec-frame .mask-debug-output {
  position: absolute;
  inset: 0;
  border-radius: 0;
  width: 100%;
  height: 100%;
}

.spec-caption {
  padding: 0 22px 22px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.qa-board-synthetic .qa-media {
  padding: 18px;
  gap: 18px;
  background: #f3f4f1;
}

.mock-screen {
  min-height: 360px;
}

.mock-screen figcaption {
  margin-top: 0;
}

.mock-bars {
  display: grid;
  gap: 12px;
  padding: 24px 22px 12px;
}

.mock-bars span {
  display: block;
  width: var(--w);
  height: 13px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), #9ee4c3);
}

.mock-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 14px 22px 24px;
}

.mock-thumbs .portrait-tile {
  width: 100%;
  height: auto;
}

.workbench-preview {
  display: grid;
  grid-template-columns: 1fr 96px;
  gap: 18px;
  align-items: center;
  padding: 24px 22px;
}

.score-ring {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border: 12px solid var(--green);
  border-right-color: var(--coral);
  border-radius: 50%;
  color: var(--ink);
  font-weight: 830;
  line-height: 1.1;
  text-align: center;
}

.mock-files {
  display: grid;
  gap: 10px;
  padding: 24px 22px;
  list-style: none;
}

.mock-files li {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
}

.rights-section {
  background: #f8f3e8;
}

.rights-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 42px;
  align-items: start;
}

.rights-layout h2 {
  margin-top: 12px;
  font-size: 40px;
  line-height: 1.08;
}

.rights-copy {
  display: grid;
  gap: 16px;
  padding: 26px;
  border: 1px solid #e5d5b3;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.66);
}

.rights-copy p {
  color: #524b3b;
}

@media (max-width: 980px) {
  .hero {
    min-height: 820px;
  }

  .hero-shot-search {
    width: 74vw;
    right: -10vw;
    bottom: 42px;
  }

  .hero-shot-output,
  .hero-shot-debug,
  .hero-shot-circle {
    width: 130px;
    height: 130px;
  }

  .hero-shot-output {
    right: 7vw;
    top: 120px;
  }

  .hero-shot-debug {
    right: 26vw;
    top: 166px;
  }

  .hero-shot-circle {
    right: 44vw;
    bottom: 88px;
  }

  .proof-grid,
  .assessment-summary,
  .case-grid,
  .screen-grid,
  .workflow-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-section,
  .search-layout,
  .qa-layout,
  .stack-layout,
  .contact-layout,
  .rights-layout,
  .requirements-layout {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 720px) {
  .site-header {
    min-height: 64px;
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: 64px;
    left: 14px;
    right: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius);
    background: rgba(18, 20, 19, 0.96);
  }

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

  .site-nav a {
    border-radius: var(--radius);
  }

  .hero {
    min-height: 800px;
    padding-top: 104px;
  }

  h1 {
    font-size: 52px;
  }

  .hero-copy {
    font-size: 18px;
  }

  .hero-metrics,
  .proof-grid,
  .assessment-summary,
  .capability-list,
  .case-grid,
  .screen-grid,
  .workflow-list,
  .requirements-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding-top: 68px;
    padding-bottom: 68px;
  }

  .section-copy h2,
  .section-heading h2,
  .contact-layout h2,
  .rights-layout h2 {
    font-size: 32px;
  }

  .screen-frame {
    min-height: 320px;
  }

  .screen-grid img {
    height: 220px;
  }

  .assessment-head {
    flex-direction: column;
  }

  .assessment-head > strong {
    white-space: normal;
  }

  .risk-pass,
  .score-detail,
  .metric-list {
    grid-template-columns: 1fr;
  }

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

  .metric-list div:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

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

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

@media (max-width: 480px) {
  .candidate-list article {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .candidate-list .score {
    grid-column: 2;
    justify-self: start;
  }

  .hero-actions .button,
  .contact-actions .button {
    width: 100%;
  }

  .hero-shot-output,
  .hero-shot-debug,
  .hero-shot-circle {
    width: 102px;
    height: 102px;
  }

  .hero-shot-search {
    width: 92vw;
  }

  .assessment-media {
    grid-template-columns: 1fr;
  }

  .raw-metrics {
    grid-template-columns: 1fr;
  }

  .component-bars span {
    grid-template-columns: minmax(0, 1fr);
  }

  .component-bars span::before {
    right: 0;
  }

  .component-bars em {
    text-align: left;
  }
}
