/* SafetyCam. Dark industrial base, safety orange as the brand accent.
   Detection status keeps its own colors: hi-vis lime = PPE worn, red = PPE missing. */
:root {
  --bg: #0b0b0c;
  --bg-2: #131315;
  --bg-3: #1b1b1e;
  --line: #2b2b30;
  --line-soft: rgba(255, 255, 255, .08);
  --text: #f3f3f1;
  --muted: #a1a1a8;
  --dim: #7d7d84;

  --light: #e7e6e2;
  --light-2: #f3f2ef;
  --light-line: #cfcdc7;
  --on-light: #111113;
  --on-light-muted: #4f4f55;

  --orange: #ff5a1f;
  --orange-deep: #e8470c;
  --on-orange: #0b0b0c;

  --safe: #b6f23a;
  --on-safe: #0b0b0c;
  --violation: #d91c27;
  --on-violation: #ffffff;

  --font: "Barlow", system-ui, sans-serif;
  --font-cond: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;

  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --cut: clamp(28px, 5vw, 72px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1; }
p { margin: 0; }
code { font-family: ui-monospace, monospace; font-size: .88em; background: rgba(127, 127, 127, .16); padding: .1em .35em; border-radius: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); max-width: 46ch; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--orange); color: var(--on-orange); padding: 10px 14px; font-weight: 600; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

/* ---------- Type ---------- */
.display {
  font-family: var(--font-cond);
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(3rem, 7.4vw, 6.4rem);
  line-height: .9;
  letter-spacing: -0.01em;
}
.display span { display: block; }
.display--md { font-size: clamp(2.6rem, 5vw, 4.4rem); }
.display .dim { color: var(--dim); font-weight: 500; }
.display .accent { color: var(--orange); }
.tag {
  font: 500 .78rem/1 var(--font);
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted);
  margin-bottom: 22px;
}
.micro {
  font: 500 .72rem/1.35 var(--font);
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px;
  border: 1px solid transparent; border-radius: 2px;
  font: 600 .9rem/1 var(--font); text-transform: uppercase; letter-spacing: .06em;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn--sm { min-height: 44px; padding: 0 18px; font-size: .8rem; }
.btn--orange { background: var(--orange); color: var(--on-orange); }
.btn--orange:hover { background: var(--orange-deep); }
.btn--outline { background: transparent; color: inherit; border-color: currentColor; }
.btn--outline:hover { background: rgba(127, 127, 127, .14); }
.btn--light { background: var(--light-2); color: var(--on-light); }
.btn--light:hover { background: #fff; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.cta { display: inline-flex; align-items: center; gap: 18px; text-decoration: none; }
.cta__circle {
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  background: var(--orange); transition: transform .25s var(--ease), background-color .2s;
}
.cta__circle svg { width: 24px; height: 24px; fill: none; stroke: var(--on-orange); stroke-width: 2; }
.cta__label { font: 600 .85rem/1 var(--font); text-transform: uppercase; letter-spacing: .1em; }
.cta:hover .cta__circle { transform: translateX(4px); background: var(--orange-deep); }
.link-quiet { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); text-underline-offset: 6px; padding: 12px 0; }
.link-quiet:hover { color: var(--text); }

/* ---------- Decorative marks (from the reference: crosshairs, orange shards) ---------- */
.cross { position: absolute; width: 18px; height: 18px; pointer-events: none; }
.cross::before, .cross::after { content: ""; position: absolute; background: rgba(255, 255, 255, .55); }
.cross::before { left: 50%; top: 0; width: 1px; height: 100%; }
.cross::after { top: 50%; left: 0; height: 1px; width: 100%; }
.shard { position: absolute; background: var(--orange); pointer-events: none; }
.chamfer { clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 30; background: rgba(11, 11, 12, .92); border-bottom: 1px solid var(--line-soft); }
.nav__inner { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark { width: 30px; height: 30px; fill: none; stroke: var(--orange); stroke-width: 3; flex: none; }
.brand__text { display: grid; font: 700 1.35rem/1 var(--font-cond); letter-spacing: .04em; }
.brand__text small { font: 500 .55rem/1.4 var(--font); letter-spacing: .18em; color: var(--muted); }
.nav nav { margin-left: auto; }
.nav__links { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__links a { display: block; padding: 12px 14px; color: var(--muted); text-decoration: none; font-size: .78rem; font-weight: 500; text-transform: uppercase; letter-spacing: .12em; transition: color .2s; }
.nav__links a:hover { color: var(--text); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(40px, 6vw, 80px) 0 clamp(72px, 9vw, 120px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 150px minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 3vw, 48px); align-items: center; }
.hero__index { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; align-self: start; padding-top: 12px; }
.hero__index a { display: flex; gap: 12px; padding: 10px 0; color: var(--muted); text-decoration: none; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; transition: color .2s; }
.hero__index a span { color: var(--orange); font-variant-numeric: tabular-nums; }
.hero__index a:hover { color: var(--text); }
.hero__copy { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(3.2rem, 7vw, 6.6rem); }
.lead { margin-top: 28px; color: var(--muted); font-size: 1.05rem; max-width: 40ch; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 40px; }

.hero__visual { position: relative; min-height: 560px; }
.hero__img { position: absolute; inset: 0 0 0 0; margin: 0; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.12) brightness(.92); animation: reveal 1s var(--ease) both; }
.shard--hero { width: 46%; height: 16px; left: -6%; bottom: 18%; transform: rotate(-38deg); transform-origin: left center; box-shadow: 0 0 40px rgba(255, 90, 31, .45); }
.micro--tr { position: absolute; top: 0; right: calc(-1 * var(--gutter) + 8px); transform: translateX(100%); }
.micro--br { position: absolute; bottom: -48px; right: 0; text-align: right; }
@keyframes reveal { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }

/* ---------- About (light panel) ---------- */
.about { padding-bottom: clamp(64px, 8vw, 104px); }
.about__panel {
  display: grid; grid-template-columns: 1fr 1fr .8fr; gap: 0;
  background: var(--light); color: var(--on-light);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}
.about__copy { padding: clamp(32px, 4vw, 56px); display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.about__copy .tag { color: var(--on-light-muted); margin: 0; }
.about__copy p:not(.tag) { color: var(--on-light-muted); max-width: 40ch; }
.about__img { position: relative; margin: 0; min-height: 420px; }
.about__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1); }
.about__img figcaption { position: absolute; top: 20px; left: 20px; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.about__img::after { content: ""; position: absolute; right: 0; bottom: 0; width: 38%; height: 42%; background: var(--orange); clip-path: polygon(100% 0, 100% 100%, 0 100%); mix-blend-mode: multiply; }
.stats { margin: 0; padding: clamp(28px, 3vw, 44px); display: grid; align-content: center; gap: 0; }
.stats .tag { color: var(--on-light-muted); }
.tag--right { text-align: right; }
.stats div { padding: 14px 0; border-bottom: 1px solid var(--light-line); }
.stats div:last-child { border-bottom: 0; }
.stats dd { order: -1; margin: 0; font: 600 2.6rem/1 var(--font-cond); }
.stats div { display: flex; flex-direction: column; gap: 4px; }
.stats dt { color: var(--on-light-muted); font-size: .9rem; }
.stats div:last-child dd { color: var(--orange-deep); }

/* ---------- Demo ---------- */
.demo { padding: clamp(64px, 8vw, 104px) 0; border-top: 1px solid var(--line-soft); }
.demo__head { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; margin-bottom: 36px; }
.demo__head .display span { display: inline; }
.demo__side { display: grid; gap: 18px; justify-items: end; }
.demo__side .muted { text-align: right; }
.tabs { display: inline-flex; border: 1px solid var(--line); }
.tab { min-height: 46px; min-width: 110px; padding: 0 20px; border: 0; background: transparent; color: var(--muted); font: 600 .8rem var(--font); text-transform: uppercase; letter-spacing: .12em; cursor: pointer; transition: background-color .2s, color .2s; }
.tab[aria-selected="true"] { background: var(--orange); color: var(--on-orange); }
.tab:not([aria-selected="true"]):hover { color: var(--text); }

.demo__grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.stage { position: relative; background: var(--bg-2); border: 1px solid var(--line); min-height: 460px; display: grid; place-items: center; overflow: hidden; }
.stage::before, .stage::after { content: ""; position: absolute; width: 22px; height: 22px; border: 2px solid var(--orange); pointer-events: none; z-index: 2; }
.stage::before { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.stage::after { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }
.stage__canvas { width: 100%; height: auto; max-height: 74vh; object-fit: contain; }
.stage__reset { position: absolute; top: 14px; right: 14px; z-index: 3; background: rgba(11, 11, 12, .8); }

.drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  width: calc(100% - 48px); min-height: 412px; margin: 24px;
  border: 1px dashed #3a3a40; cursor: pointer; text-align: center; padding: 24px;
  transition: border-color .2s, background-color .2s;
}
.drop svg { width: 40px; height: 40px; fill: none; stroke: var(--orange); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 8px; }
.drop__title { font: 600 1.9rem/1 var(--font-cond); text-transform: uppercase; }
.drop__hint { color: var(--muted); font-size: .9rem; }
.drop:hover, .drop.is-over { border-color: var(--orange); background: var(--bg-3); }

.cam { position: relative; width: 100%; aspect-ratio: 4 / 3; }
.cam video, .cam__overlay { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.cam__idle { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 20px; padding: 24px; text-align: center; color: var(--muted); }
.cam__idle p { max-width: 36ch; }
.cam__bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; font-size: .8rem; font-variant-numeric: tabular-nums; background: linear-gradient(transparent, rgba(11, 11, 12, .9)); }
.cam__bar .btn { background: rgba(11, 11, 12, .8); }
.cam__bar #fps { margin-right: auto; }
.cam__select { min-height: 32px; max-width: 45%; padding: 4px 8px; background: rgba(11, 11, 12, .8); color: var(--text); border: 1px solid var(--line); font: inherit; }
#panel-webcam { display: block; }

.samples { margin-top: 16px; }
.samples__label { font-size: .75rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 12px; }
.samples__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sample { display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 8px; background: var(--bg-2); border: 1px solid var(--line); cursor: pointer; text-align: left; color: var(--text); font: 500 .85rem/1.3 var(--font); transition: border-color .2s; }
.sample img { width: 72px; height: 54px; object-fit: cover; flex: none; filter: grayscale(1); transition: filter .25s; }
.sample span { display: grid; gap: 2px; }
.sample b { color: var(--orange); font-weight: 600; font-size: .75rem; }
.sample:hover { border-color: #55555c; }
.sample:hover img, .sample[aria-pressed="true"] img { filter: none; }
.sample[aria-pressed="true"] { border-color: var(--orange); }

/* Result panel */
.panel { display: flex; flex-direction: column; gap: 22px; background: var(--bg-2); border: 1px solid var(--line); padding: 22px; position: sticky; top: 88px; }
.model-state { display: grid; gap: 10px; font-size: .85rem; color: var(--muted); }
.model-state[data-state="ready"] .progress { display: none; }
.model-state[data-state="error"] { color: #ff7a70; }
.progress { height: 3px; background: var(--line); overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--orange); transition: width .2s linear; }

.verdict { padding: 20px; background: var(--bg-3); border: 1px solid var(--line); clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%); }
.verdict__label { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.verdict__title { font: 700 2.5rem/.95 var(--font-cond); text-transform: uppercase; margin-top: 8px; }
.verdict__text { margin-top: 10px; font-size: .95rem; }
.verdict--safe { background: var(--safe); border-color: var(--safe); color: var(--on-safe); }
.verdict--violation { background: var(--violation); border-color: var(--violation); color: var(--on-violation); }
.verdict--unclear { background: var(--orange); border-color: var(--orange); color: var(--on-orange); }
.verdict--safe .verdict__label, .verdict--violation .verdict__label, .verdict--unclear .verdict__label { color: inherit; opacity: .8; }
.verdict--busy { opacity: .7; }

.breakdown { display: grid; gap: 18px; }
.breakdown h3 { font: 600 .72rem/1 var(--font); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 8px; }
.tally { list-style: none; margin: 0; padding: 0; }
.tally li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.tally li span:last-child { font-variant-numeric: tabular-nums; font-weight: 600; }
.tally li span:first-child { display: inline-flex; align-items: center; gap: 10px; }
.tally li span:first-child::before { content: ""; width: 10px; height: 10px; flex: none; }
.tally--ppe li span:first-child::before { background: var(--safe); }
.tally--violation li span:first-child::before { background: var(--violation); }
.tally .empty-row { color: var(--muted); }
.tally--workers li span:first-child { flex: none; }
.tally--workers li span:last-child { font-weight: 400; color: var(--muted); text-align: right; }
.tally--workers li[data-status="VIOLATION"] span:first-child::before { background: var(--violation); }
.tally--workers li[data-status="UNCLEAR"] span:first-child::before { background: var(--orange); }
.tally--workers li[data-status="SAFE"] span:first-child::before { background: var(--safe); }

.log__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.log__head h3 { font: 600 .72rem/1 var(--font); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.log__head span { font-weight: 600; font-variant-numeric: tabular-nums; }
.log__empty { font-size: .85rem; color: var(--muted); }
.log__sound { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: .85rem; cursor: pointer; }
.log__sound input { accent-color: var(--orange); width: 16px; height: 16px; margin: 0; }
.log__list { list-style: none; margin: 0; padding: 0; max-height: 280px; overflow-y: auto; }
.log__list li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.log__list img { height: 48px; width: auto; max-width: 64px; object-fit: cover; flex: none; border-left: 3px solid var(--violation); }
.log__list time { color: var(--muted); }
.log__actions { display: flex; gap: 10px; margin-top: 12px; }
.log__actions .btn:disabled { opacity: .4; cursor: not-allowed; }

.required { border: 0; margin: 0; padding: 0; min-width: 0; }
.required legend { padding: 0; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; }
.required__opts { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 8px; }
.required__opts label { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 12px; border: 1px solid var(--line); font-size: .88rem; cursor: pointer; user-select: none; }
.required__opts input { accent-color: var(--orange); width: 16px; height: 16px; margin: 0; }
.required__opts label:has(input:checked) { border-color: var(--orange); background: var(--bg-3); }
.required__opts label:focus-within { outline: 2px solid var(--orange); outline-offset: 2px; }

.control label { display: flex; justify-content: space-between; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; }
.control output { color: var(--orange); font-variant-numeric: tabular-nums; }
.control input[type="range"] { width: 100%; margin: 14px 0 8px; accent-color: var(--orange); min-height: 24px; }
.control__hint { font-size: .8rem; color: var(--muted); }
.meta { font-size: .78rem; color: var(--muted); min-height: 1.2em; font-variant-numeric: tabular-nums; }

/* ---------- Checks (image cards) ---------- */
.checks { padding: clamp(64px, 8vw, 104px) 0; border-top: 1px solid var(--line-soft); }
.checks__grid { display: grid; grid-template-columns: .8fr 1.6fr; gap: clamp(32px, 4vw, 64px); align-items: end; }
.checks__intro { display: grid; gap: 26px; align-content: start; }
.checks__intro .tag { margin: 0; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card { position: relative; min-height: 400px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1) brightness(.7); transition: transform .5s var(--ease), filter .4s; }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 11, 12, .85) 0%, rgba(11, 11, 12, .1) 45%, rgba(11, 11, 12, .9) 100%); }
.card:hover img { transform: scale(1.04); filter: grayscale(.4) contrast(1.1) brightness(.75); }
.card__body { position: relative; z-index: 2; height: 100%; min-height: 400px; display: flex; flex-direction: column; padding: 22px; }
.card__n { font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.card h3 { margin-top: 12px; font: 600 1.7rem/1 var(--font-cond); text-transform: uppercase; }
.card p { margin-top: auto; font-size: .9rem; color: #d6d6d9; max-width: 26ch; }
.card__swatch { position: absolute; right: 22px; top: 22px; width: 36px; height: 36px; border: 3px solid; }
.card__swatch--ppe { border-color: var(--safe); }
.card__swatch--violation { border-color: var(--violation); }
.card__swatch--person { border-color: #fff; border-style: dashed; }
.checks__note { grid-column: 2; font-size: .85rem; color: var(--muted); }

/* ---------- Poster (orange) ---------- */
.poster { position: relative; background: var(--orange); color: var(--on-orange); overflow: hidden; }
.poster__img { position: absolute; inset: 0 0 0 45%; }
.poster__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.25); mix-blend-mode: multiply; }
.poster__img::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--orange) 0%, rgba(255, 90, 31, 0) 40%); }
.poster__inner { position: relative; z-index: 2; min-height: clamp(520px, 62vw, 720px); display: flex; flex-direction: column; justify-content: space-between; padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(40px, 5vw, 64px); }
.poster__title { font: 800 clamp(4.2rem, 13vw, 12rem)/.84 var(--font-cond); text-transform: uppercase; color: #fff; letter-spacing: -0.01em; }
.poster__foot { display: flex; align-items: end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.poster__foot p { max-width: 44ch; font-size: 1.05rem; font-weight: 500; }

/* ---------- How it works ---------- */
.how { position: relative; border-top: 1px solid var(--line-soft); }
.how__grid { display: grid; grid-template-columns: 1fr 1fr; min-height: 640px; }
.how__img { position: relative; margin: 0; clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%); }
.how__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.15) brightness(.8); }
.how__img figcaption { position: absolute; top: 28px; left: var(--gutter); color: #fff; }
.shard--how { width: 34%; height: 30%; left: 30%; bottom: 0; clip-path: polygon(50% 0, 100% 100%, 0 100%); mix-blend-mode: multiply; }
.how__copy { padding: clamp(48px, 6vw, 88px) var(--gutter) clamp(140px, 14vw, 180px) clamp(24px, 4vw, 64px); display: flex; flex-direction: column; gap: 28px; align-items: flex-start; max-width: 680px; }
.how__copy .tag { margin: 0; }
.how__copy .display span { display: inline; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; width: 100%; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.steps li > span { color: var(--orange); font-size: .85rem; font-weight: 600; font-variant-numeric: tabular-nums; padding-top: 3px; }
.steps h3 { font: 600 1.25rem/1.1 var(--font-cond); text-transform: uppercase; }
.steps p { margin-top: 6px; color: var(--muted); font-size: .93rem; }
.corner {
  position: absolute; right: 0; bottom: 0; width: min(340px, 40vw); height: 170px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  padding: 0 28px 24px 96px; background: var(--orange); color: var(--on-orange); text-decoration: none;
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%);
  font: 600 1.35rem/1 var(--font-cond); text-transform: uppercase;
  transition: background-color .2s;
}
.corner:hover { background: var(--orange-deep); }
.corner__arrow { display: grid; place-items: center; width: 40px; height: 40px; border: 1.5px solid currentColor; border-radius: 50%; flex: none; }
.corner__arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }

/* ---------- Accuracy (light) ---------- */
.accuracy { background: var(--light-2); color: var(--on-light); padding: clamp(64px, 8vw, 104px) 0; }
.accuracy .tag { color: var(--on-light-muted); }
.accuracy .display .dim { color: #8b8b91; }
.accuracy .muted { color: var(--on-light-muted); margin-top: 20px; }
.accuracy__grid { display: grid; grid-template-columns: .9fr 1.3fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.score { display: grid; gap: 6px; margin-top: 40px; }
.score__value { font: 700 clamp(4.5rem, 10vw, 7.5rem)/.9 var(--font-cond); color: var(--orange-deep); font-variant-numeric: tabular-nums; }
.score__label { color: var(--on-light-muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; }
.empty { padding: 28px; border: 1px dashed var(--light-line); color: var(--on-light-muted); }
.chart { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.chart li { display: grid; grid-template-columns: 160px 1fr 64px; align-items: center; gap: 14px; font-size: .92rem; }
.chart__track { height: 22px; background: #e2e0da; position: relative; }
.chart__fill { position: absolute; inset: 0 auto 0 0; background: var(--orange); }
.chart__val { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.chart-meta { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: .82rem; color: var(--on-light-muted); text-transform: uppercase; letter-spacing: .08em; }
.chart-meta b { color: var(--on-light); font-weight: 600; }
.accuracy :focus-visible { outline-color: var(--on-light); }

/* ---------- Affiliation logos ---------- */
.affil { margin-top: auto; padding-top: 22px; border-top: 1px solid var(--light-line); width: 100%; }
.affil__label { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--on-light-muted); margin-bottom: 14px; }
.affil__logos { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 16px; }
.affil__sep { width: 1px; height: 36px; background: var(--light-line); }
.affil .logo-iris { height: 50px; width: auto; }
.affil .logo-ftmm { height: 24px; width: auto; }
.affil .logo-unair { height: 32px; width: auto; }

/* ---------- Footer ---------- */
.footer { padding: 48px 0 40px; border-top: 1px solid var(--line-soft); color: var(--muted); }
.footer__inner { display: grid; grid-template-columns: auto 1fr; gap: 28px 48px; align-items: center; font-size: .85rem; }
.footer__affil { display: flex; align-items: center; justify-content: flex-end; gap: 28px; flex-wrap: wrap; }
.footer__affil p { max-width: 38ch; }
.footer__logos { display: flex; align-items: center; gap: 22px; }
.footer__logos img { width: auto; filter: brightness(0) invert(1); opacity: .85; }
.footer__logos .logo-unair { filter: grayscale(1) invert(1) brightness(1.2); opacity: .9; }
.footer__logos .logo-iris { height: 44px; }
.footer__logos .logo-ftmm { height: 22px; }
.footer__logos .logo-unair { height: 30px; }
.footer p { max-width: 62ch; }
.footer .footer__credit { grid-column: 1 / -1; max-width: none; padding-top: 24px; border-top: 1px solid var(--line-soft); }
.footer a:not(.brand) { color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero__index { display: none; }
  .micro--tr { display: none; }
}
@media (max-width: 1024px) {
  .demo__grid { grid-template-columns: 1fr; }
  .panel { position: static; }
  .about__panel { grid-template-columns: 1fr 1fr; }
  .about__img { grid-row: span 2; }
  .checks__grid { grid-template-columns: 1fr; }
  .checks__note { grid-column: 1; }
}
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav nav { margin-left: 0; }
  .nav__inner > .btn { margin-left: auto; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { min-height: 0; aspect-ratio: 4 / 3; }
  .micro--br { position: static; margin-top: 16px; text-align: left; }
  .about__panel { grid-template-columns: 1fr; }
  .about__img { grid-row: auto; min-height: 300px; }
  .demo__side { justify-items: start; }
  .demo__side .muted { text-align: left; }
  .how__grid { grid-template-columns: 1fr; }
  .how__img { min-height: 340px; clip-path: polygon(0 0, 100% 0, 100% 86%, 0 100%); }
  .how__copy { max-width: none; padding-left: var(--gutter); }
  .poster { display: flex; flex-direction: column-reverse; }
  .poster__img { position: relative; inset: auto; height: 300px; }
  .poster__img::before { background: linear-gradient(180deg, var(--orange) 0%, rgba(255, 90, 31, 0) 40%); }
  .poster__inner { min-height: 0; gap: 40px; }
  .accuracy__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__affil { justify-content: flex-start; }
}
@media (max-width: 600px) {
  .cards { grid-template-columns: 1fr; }
  .card, .card__body { min-height: 300px; }
  .samples__row { grid-template-columns: 1fr; }
  .stage { min-height: 320px; }
  .drop { min-height: 272px; width: calc(100% - 32px); margin: 16px; }
  .chart li { grid-template-columns: 1fr 56px; }
  .chart__track { grid-column: 1 / -1; grid-row: 2; }
  .corner { width: 78%; height: 130px; }
  .tab { min-width: 0; flex: 1; }
  .tabs { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
