.inventory-page { overflow-x: clip; background: #f7f1e4; }
.inventory-page main,.inventory-poc,.edge-case-article { min-width: 0; }

.inventory-hero {
  display: grid;
  grid-template-columns: minmax(0,1.15fr) minmax(320px,.85fr);
  align-items: end;
  gap: clamp(2rem,6vw,7rem);
  min-height: 390px;
  padding: clamp(3.5rem,7vw,6.5rem) max(clamp(1.2rem,7vw,8rem),calc((100vw - 1440px)/2));
  background:
    linear-gradient(110deg,rgba(12,70,85,.97),rgba(18,49,60,.94)),
    radial-gradient(circle at 15% 20%,rgba(255,138,90,.22),transparent 34%);
  color: #fff;
}
.inventory-hero span,
.poc-head span,
.live-action > div > span,
.result-head > div > span,
.zone-card > span {
  color: var(--peach);
  font-size: .67rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.inventory-hero h1 {
  max-width: 800px;
  margin: .7rem 0 0;
  font-size: clamp(3.2rem,6vw,6.8rem);
  line-height: .92;
}
.inventory-hero > p {
  max-width: 560px;
  margin: 0;
  color: #c9dde1;
  font-size: 1rem;
  line-height: 1.75;
}

.inventory-poc { padding-top: 0; padding-bottom: clamp(3rem,7vw,7rem); }
.poc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  min-height: 128px;
  padding: 1.5rem 2rem;
  border: 1px solid var(--line);
  background: var(--paper);
}
.poc-head h2 { margin: .35rem 0 0; font-size: clamp(1.9rem,3vw,3.1rem); }
.inventory-integrity { display: flex; align-items: center; gap: .6rem; margin: 0; color: #657a82; font-size: .78rem; }
.inventory-integrity i { width: 10px; height: 10px; flex: 0 0 auto; border-radius: 50%; background: #d5a84d; }
.inventory-integrity.is-passed { color: #356d5c; font-weight: 800; }
.inventory-integrity.is-passed i { background: #4e9b7e; box-shadow: 0 0 0 4px rgba(78,155,126,.14); }
.inventory-integrity.is-blocked { color: #b24332; }
.inventory-integrity.is-blocked i { background: var(--coral); }

.system-definition { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-right: 1px solid var(--line); border-left: 1px solid var(--line); background: var(--deep); }
.system-definition article { min-width: 0; padding: 1.25rem 1.4rem; border-right: 1px solid rgba(255,255,255,.16); }
.system-definition article:last-child { border-right: 0; }
.system-definition span { color: var(--peach); font-size: .61rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.system-definition h3 { margin: .4rem 0 .45rem; color: #fff; font-size: 1.25rem; }
.system-definition p { margin: 0; color: #bed2d7; font-size: .69rem; line-height: 1.55; }

.image-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  padding: 1px;
  background: var(--line);
}
.image-pair figure { position: relative; min-width: 0; margin: 0; overflow: hidden; background: var(--ink); }
.image-pair img { display: block; width: 100%; aspect-ratio: 16/8.5; object-fit: cover; transition: transform .35s ease; }
.image-pair figure:hover img { transform: scale(1.015); }
.image-pair figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .75rem 1rem;
  background: linear-gradient(90deg,rgba(18,49,60,.94),rgba(18,49,60,.72));
  color: #fff;
}
.image-pair figcaption span { color: #bcd3d8; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.image-pair figcaption b { font-family: Georgia,serif; font-size: 1.2rem; font-weight: 400; }

.live-action {
  display: grid;
  grid-template-columns: minmax(0,1fr) 260px minmax(230px,.6fr);
  align-items: center;
  gap: 1.5rem;
  padding: 1.35rem 2rem;
  border: 1px solid var(--line);
  border-top: 0;
  background: var(--cream);
}
.live-action h2 { margin: .28rem 0 .35rem; font-size: clamp(1.5rem,2.3vw,2.35rem); }
.live-action p { max-width: 700px; margin: 0; color: #657a82; font-size: .78rem; line-height: 1.55; }
.analysis-action {
  display: grid;
  place-content: center;
  gap: .22rem;
  width: 100%;
  min-height: 68px;
  padding: .9rem 1rem;
  border: 1px solid var(--deep);
  background: var(--deep);
  color: #fff;
  cursor: pointer;
}
.analysis-action:hover,.analysis-action:focus-visible { background: #176274; }
.analysis-action:disabled { opacity: .62; cursor: wait; }
.analysis-action span { font-size: .75rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.analysis-action small { color: #b8d6dc; text-align: center; }
.analysis-action.is-loading { grid-template-columns: auto auto; column-gap: .65rem; }
.analysis-action.is-loading::after { content: ""; grid-row: 1/3; grid-column: 2; width: 20px; height: 20px; align-self: center; border: 2px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; animation: inventorySpin .8s linear infinite; }
.analysis-status {
  display: grid;
  grid-template-columns: 11px 1fr;
  gap: .65rem;
  align-items: start;
  min-height: 68px;
  padding: .8rem;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.72);
}
.analysis-status i { width: 9px; height: 9px; margin-top: .17rem; border-radius: 50%; background: #9aa9ad; }
.analysis-status > div { min-width: 0; }
.analysis-status p { margin: 0; color: #65787e; font-size: .72rem; line-height: 1.45; }
.analysis-status small { display: block; margin-top: .35rem; overflow: hidden; color: #75878c; font-size: .62rem; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.analysis-progress { height: 4px; margin-top: .55rem; overflow: hidden; background: #dce4e2; }
.analysis-progress span { display: block; width: var(--analysis-progress,0%); height: 100%; background: linear-gradient(90deg,#55a282,#f18b59); transition: width .65s ease; }
.analysis-status.is-running i { background: #d7a444; box-shadow: 0 0 0 5px rgba(215,164,68,.14); animation: inventoryPulse 1s infinite alternate; }
.analysis-status.is-running .analysis-progress span { position: relative; }
.analysis-status.is-running .analysis-progress span::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,transparent,rgba(255,255,255,.75),transparent); transform: translateX(-100%); animation: inventorySweep 1.2s ease-in-out infinite; }
.analysis-status.is-complete i { background: #4e9b7e; box-shadow: 0 0 0 5px rgba(78,155,126,.14); }
.analysis-status.is-complete p { color: #356d5c; font-weight: 800; }
.analysis-status.is-error { background: #fff0eb; border-color: #e6a89d; }
.analysis-status.is-error i { background: var(--coral); }
.analysis-status.is-error p { color: #9e392b; font-weight: 800; }
@keyframes inventoryPulse { to { transform: scale(1.25); opacity: .55; } }
@keyframes inventorySpin { to { transform: rotate(360deg); } }
@keyframes inventorySweep { to { transform: translateX(100%); } }

.result-section { margin-top: .85rem; border: 1px solid var(--line); background: var(--paper); }
.result-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  min-height: 112px;
  padding: 1.35rem 2rem;
}
.result-head h2 { margin: .3rem 0 0; font-size: clamp(1.45rem,2vw,2rem); }
.result-summary { max-width: 720px; margin: .35rem 0 0; color: #657a82; font-size: .76rem; line-height: 1.45; }
.run-meta { display: flex; align-items: stretch; margin: 0; border: 1px solid var(--line); }
.run-meta div { min-width: 105px; padding: .55rem .7rem; border-right: 1px solid var(--line); }
.run-meta div:last-child { max-width: 180px; border-right: 0; }
.run-meta dt { color: #71838a; font-size: .61rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.run-meta dd { margin: .2rem 0 0; overflow: hidden; color: var(--ink); font-size: .69rem; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.total-strip {
  display: grid;
  grid-template-columns: 1fr auto 1fr 1.15fr;
  align-items: center;
  border-top: 1px solid var(--line);
  background: #f3eee3;
}
.total-strip p { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; min-height: 84px; margin: 0; padding: 1rem 1.25rem; border-right: 1px solid var(--line); }
.total-strip p span { color: #6c7e84; font-size: .68rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.total-strip strong { font-family: Georgia,serif; font-size: 2.3rem; font-weight: 400; }
.total-strip > i { padding: 0 .25rem; color: var(--coral); font-style: normal; font-size: 1.25rem; }
.total-strip .total-change { border-right: 0; background: var(--deep); color: #fff; }
.total-strip .total-change span { color: #bfd5d9; }

.live-zone-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: .45rem; padding: .45rem; border-top: 1px solid var(--line); background: #f3eee3; }
.zone-card {
  position: relative;
  min-width: 0;
  min-height: 235px;
  padding: 1.2rem;
  border: 1px solid var(--line);
  background: var(--paper);
}
.zone-card::before { content: ""; position: absolute; top: 0; right: 0; left: 0; height: 4px; background: #55a282; }
.zone-card.is-low-confidence::before { background: #d4a241; }
.zone-card h3 { min-height: 2.7rem; margin: .38rem 0 .85rem; font-size: clamp(1.16rem,1.7vw,1.55rem); line-height: 1.05; }
.count-flow { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .35rem; padding: .75rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.count-flow p { margin: 0; }
.count-flow span { display: block; color: #74858a; font-size: .59rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.count-flow b { display: block; margin-top: .15rem; font-family: Georgia,serif; font-size: 2rem; font-weight: 400; }
.count-flow i { color: var(--coral); font-style: normal; }
.zone-change { display: flex; justify-content: space-between; align-items: center; gap: .8rem; margin: .8rem 0 0; }
.zone-change span { color: #74858a; font-size: .63rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.zone-change strong { color: var(--coral); font-size: 1.05rem; }
.zone-confidence { margin: .65rem 0 0; color: #6f8187; font-size: .64rem; line-height: 1.45; }
.zone-focus { margin: .35rem 0 0; color: #2f6656; font-size: .62rem; font-weight: 800; line-height: 1.4; }
.zone-validation { margin: .35rem 0 0; font-size: .61rem; font-weight: 900; line-height: 1.4; }
.zone-validation.is-confirmed { color: #2f765f; }
.zone-validation.is-review { color: #a55234; }
.heineken-proof { padding: 1.35rem 1.25rem; border-top: 1px solid var(--line); background: #eef5f2; }
.heineken-proof > header { display: flex; justify-content: space-between; align-items: end; gap: 2rem; }
.heineken-proof > header span { color: #2f6656; font-size: .64rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.heineken-proof h3 { margin: .3rem 0 0; font-size: clamp(1.35rem,2vw,1.85rem); }
.heineken-proof > header p { max-width: 470px; margin: 0; color: #5f7770; font-size: .72rem; line-height: 1.5; }
.geometry-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 1rem; background: #cbdad5; border: 1px solid #cbdad5; }
.geometry-pair article { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .7rem 1rem; min-width: 0; padding: 1rem; background: #f8fbfa; }
.geometry-pair article > span { align-self: start; color: #647b74; font-size: .62rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.geometry-pair article > b { grid-column: 2; color: #315e52; font-size: .72rem; line-height: 1.4; }
.geometry-pair article > small { grid-column: 2; margin-top: -.45rem; color: #6a7d78; font-size: .61rem; font-weight: 900; line-height: 1.35; }
.geometry-pair article > small.is-confirmed { color: #2f765f; }
.geometry-pair article > small.is-uncertain,.geometry-pair article > small.is-contradicted { color: #a55234; }
.crate-grid { grid-row: 1/3; display: grid; grid-template-columns: repeat(var(--crate-columns),22px); gap: 4px; align-self: center; }
.crate-grid i { width: 22px; height: 17px; border: 1px dashed #9cb3ab; background: #e6eeeb; }
.crate-grid i.is-occupied { border-style: solid; border-color: #286b58; background: #3d806d; box-shadow: inset 0 4px 0 rgba(255,255,255,.16); }
.heineken-proof details { margin-top: .8rem; border: 1px solid #cbdad5; background: #f8fbfa; }
.heineken-proof summary { padding: .75rem .9rem; color: #315e52; cursor: pointer; font-size: .7rem; font-weight: 900; }
.heineken-proof pre { max-height: 280px; margin: 0; padding: .9rem; overflow: auto; border-top: 1px solid #d8e4e0; color: #36564d; font: .66rem/1.55 Consolas,monospace; white-space: pre-wrap; }
.method-note { margin: 0; padding: 1rem 1.25rem; border: 1px solid var(--line); border-top: 0; background: #e7f1ed; color: #46655d; font-size: .73rem; line-height: 1.55; }
.method-note b { color: #2f6656; }

.edge-case-article {
  margin-top: clamp(3rem,7vw,6.5rem);
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 28px 70px rgba(18,49,60,.08);
}
.edge-case-hero {
  display: grid;
  grid-template-columns: minmax(280px,.8fr) minmax(0,1.2fr);
  gap: clamp(2rem,6vw,7rem);
  padding: clamp(2rem,5vw,4.5rem);
  background:
    linear-gradient(115deg,rgba(12,70,85,.98),rgba(18,49,60,.93)),
    radial-gradient(circle at 10% 10%,rgba(241,139,89,.28),transparent 35%);
  color: #fff;
}
.edge-case-hero span,
.known-measured > header span,
.technical-copy > span {
  color: var(--peach);
  font-size: .67rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.edge-case-hero h2 { max-width: 520px; margin: .7rem 0 0; font-size: clamp(2.5rem,4.7vw,5rem); line-height: .96; }
.edge-case-intro { align-self: end; }
.edge-case-intro p { max-width: 680px; margin: 0; color: #c9dde1; font-size: .9rem; line-height: 1.72; }
.edge-case-intro p + p { margin-top: .9rem; color: #fff; }
.edge-case-article .heineken-proof { border-top: 0; border-bottom: 1px solid var(--line); padding: clamp(1.4rem,3vw,2.4rem); }

.method-story-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .45rem; padding: .45rem; border-bottom: 1px solid var(--line); background: #d9dfdd; }
.method-story-grid section { position: relative; min-width: 0; padding: .65rem .9rem 1.35rem; border: 1px solid var(--line); background: var(--paper); }
.method-story-grid section > b { position: absolute; top: 1rem; right: 1.15rem; z-index: 3; color: rgba(255,255,255,.92); font-family: Georgia,serif; font-size: 2.35rem; font-weight: 400; line-height: 1; text-shadow: 0 2px 8px rgba(18,49,60,.65); }
.method-story-grid section > span { display: block; margin-top: .9rem; color: #34715f; font-size: .61rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.method-story-grid h3 { min-height: 2.5rem; margin: .55rem 0 .65rem; font-size: 1.25rem; line-height: 1.05; }
.method-story-grid p { margin: 0; color: #657a82; font-size: .72rem; line-height: 1.6; }
.process-visual { position: relative; margin: 0; overflow: hidden; aspect-ratio: 1.65; border: 1px solid #bdcac7; background: var(--deep); }
.process-visual > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 50%; filter: saturate(.72) contrast(1.06); }
.process-visual::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.zone-overlay { position: absolute; border: 2px solid var(--zone-color); background: color-mix(in srgb,var(--zone-color) 16%,transparent); box-shadow: 0 0 0 1px rgba(12,70,85,.45); }
.zone-overlay em { position: absolute; top: -1px; left: -1px; display: grid; place-items: center; width: 18px; height: 18px; background: var(--zone-color); color: var(--zone-ink,var(--deep)); font: 900 .55rem/1 Arial,sans-serif; }
.zone-heineken { top: 22%; left: 0; width: 14.5%; height: 52%; border-color: #60d19d; background: rgba(96,209,157,.17); }
.zone-heineken { --zone-color: #60d19d; }
.zone-cola { --zone-color: #ee6658; top: 16%; left: 6.5%; width: 18.5%; height: 37%; }
.zone-zero { --zone-color: #82929c; --zone-ink: #fff; top: 16%; left: 27.5%; width: 23%; height: 37%; }
.zone-blue { top: 26%; left: 48.5%; width: 20.5%; height: 27%; border-color: #6fcbff; background: rgba(111,203,255,.15); }
.zone-blue { --zone-color: #6fcbff; }
.zone-red { --zone-color: #ffad67; top: 16%; left: 71%; width: 18.5%; height: 37%; }
.process-visual-mask > img { filter: grayscale(.9) brightness(.72) contrast(1.15); }
.mask-overlay { position: absolute; top: 22%; left: 0; width: 14.5%; height: 52%; overflow: hidden; border: 2px solid #60d19d; background: repeating-linear-gradient(135deg,rgba(55,218,145,.52) 0 5px,rgba(55,218,145,.22) 5px 10px); box-shadow: 0 0 18px rgba(55,218,145,.45); }
.mask-overlay em { position: absolute; right: 3px; bottom: 3px; padding: 2px 4px; background: var(--deep); color: #c7ffe3; font: 800 .45rem/1.2 Arial,sans-serif; letter-spacing: .05em; }
.process-visual-grid > img { filter: none; }
.validation-caption { position: absolute; top: 7%; left: 4%; padding: 5px 7px; border: 1px solid rgba(255,255,255,.62); background: rgba(12,70,85,.9); color: #fff; font: 900 .47rem/1 Arial,sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.ai-pallet-marker { --marker-color: #58b38e; position: absolute; bottom: 22%; display: grid; grid-template-columns: 18px auto 14px; align-items: center; gap: 3px; min-width: 48px; padding: 3px 4px 3px 3px; border: 1px solid rgba(255,255,255,.82); border-radius: 12px; background: rgba(12,70,85,.92); color: #fff; box-shadow: 0 4px 14px rgba(12,70,85,.42); transform: translateX(-50%); }
.ai-pallet-marker::before { content: ""; position: absolute; left: 50%; bottom: 100%; height: 19px; border-left: 1px dashed var(--marker-color); }
.ai-pallet-marker em { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--marker-color); color: var(--deep); font: 900 .49rem/1 Arial,sans-serif; }
.ai-pallet-marker strong { color: #fff; font: 900 .56rem/1 Arial,sans-serif; }
.ai-pallet-marker small { display: grid; place-items: center; width: 13px; height: 13px; border-radius: 50%; background: rgba(255,255,255,.2); color: #fff; font: 900 .5rem/1 Arial,sans-serif; }
.ai-marker-heineken { --marker-color: #60d19d; left: 7%; }
.ai-marker-cola { --marker-color: #ee6658; left: 17%; bottom: 39%; }
.ai-marker-zero { --marker-color: #82929c; left: 39%; bottom: 39%; }
.ai-marker-blue { --marker-color: #6fcbff; left: 59%; bottom: 39%; }
.ai-marker-red { --marker-color: #ffad67; left: 80%; bottom: 39%; }
.ai-pallet-marker[data-verdict="confirmed"] small { background: #50a984; }
.ai-pallet-marker[data-verdict="uncertain"] small { background: #d89d36; }
.ai-pallet-marker[data-verdict="contradicted"] small { background: #cf554b; }

.known-measured { padding: clamp(2rem,4vw,3.5rem); border-bottom: 1px solid var(--line); background: #f3eee3; }
.known-measured > header { display: block; margin-bottom: 1.4rem; }
.known-measured > header span { color: var(--coral); }
.known-measured h3 { max-width: 760px; margin: .35rem 0 0; font-size: clamp(1.8rem,3vw,3.1rem); }
.known-measured > div { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; border: 1px solid #cbd5d3; background: #cbd5d3; }
.known-measured section { padding: 1.35rem; background: #fbf8f1; }
.known-measured section.not-known { background: var(--deep); color: #fff; }
.known-measured h4 { margin: 0 0 .85rem; font: 400 1.25rem/1.1 Georgia,serif; }
.known-measured ul { margin: 0; padding: 0; list-style: none; }
.known-measured li { position: relative; padding: .48rem 0 .48rem 1.05rem; border-top: 1px solid rgba(101,122,130,.2); color: #60747a; font-size: .7rem; line-height: 1.45; }
.known-measured li::before { content: ""; position: absolute; top: .8rem; left: 0; width: 5px; height: 5px; border-radius: 50%; background: #55a282; }
.known-measured .not-known li { border-color: rgba(255,255,255,.16); color: #c9dde1; }
.known-measured .not-known li::before { background: var(--peach); }

.validation-report { padding: clamp(2rem,4vw,3.5rem); border-bottom: 1px solid var(--line); background: #fffdf8; }
.validation-report > header { display: grid; grid-template-columns: minmax(260px,.82fr) minmax(0,1.18fr); gap: clamp(2rem,5vw,5rem); align-items: end; margin-bottom: 1.4rem; }
.validation-report > header span { color: var(--coral); font-size: .61rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.validation-report h3 { margin: .38rem 0 0; font-size: clamp(1.9rem,3vw,3.15rem); }
.validation-report > header p { max-width: 670px; margin: 0; color: #60747a; font-size: .76rem; line-height: 1.65; }
.validation-score-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .65rem; }
.validation-score-grid article { min-width: 0; padding: 1.25rem; border: 1px solid #cbd8d4; background: #f6faf8; }
.validation-score-grid strong { display: block; color: var(--deep); font: 400 clamp(2rem,3.5vw,3.3rem)/.95 Georgia,serif; }
.validation-score-grid span { display: block; margin-top: .7rem; color: #2f765f; font-size: .64rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.validation-score-grid p { margin: .55rem 0 0; color: #60747a; font-size: .69rem; line-height: 1.55; }
.validation-report > details { margin-top: .8rem; border: 1px solid #cbd8d4; background: #f8fbfa; }
.validation-report summary { padding: .9rem 1rem; color: #255d4c; cursor: pointer; font-size: .7rem; font-weight: 900; }
.report-details { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1px; border-top: 1px solid #cbd8d4; background: #cbd8d4; }
.report-details section { padding: 1rem; background: #fff; }
.report-details h4 { margin: 0; font: 400 1.1rem/1.1 Georgia,serif; }
.report-details p { margin: .55rem 0 0; color: #60747a; font-size: .67rem; line-height: 1.55; }

.delivery-story { padding: clamp(2.4rem,5vw,4.6rem); border-bottom: 1px solid rgba(255,255,255,.12); background: var(--deep); color: #fff; }
.delivery-story-copy { display: grid; grid-template-columns: minmax(250px,.8fr) minmax(300px,1.2fr); column-gap: clamp(2rem,6vw,6rem); }
.delivery-story-copy > span { grid-column: 1; color: var(--peach); font-size: .61rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.delivery-story-copy h3 { grid-column: 1; grid-row: 2/5; max-width: 560px; margin: .45rem 0 0; color: #fff; font-size: clamp(2.5rem,5vw,5rem); line-height: .94; }
.delivery-story-copy p { grid-column: 2; margin: 0 0 .85rem; color: #d9e6e7; font-size: .76rem; line-height: 1.72; }
.delivery-story-copy .delivery-story-lead { color: #fff; font-size: .88rem; }
.delivery-story-copy .delivery-story-conclusion { margin-bottom: 0; color: #fff; font-weight: 700; }
.delivery-kpis { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; margin-top: clamp(2rem,4vw,3.5rem); border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.18); }
.delivery-kpis article { min-width: 0; padding: 1.25rem; background: rgba(7,55,66,.84); }
.delivery-kpis strong { display: block; color: #fff; font: 400 clamp(2rem,4vw,3.8rem)/1 Georgia,serif; }
.delivery-kpis span { display: block; margin-top: .55rem; color: #a9cac5; font-size: .61rem; font-weight: 900; letter-spacing: .08em; line-height: 1.45; text-transform: uppercase; }
.delivery-timeline { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .7rem; margin: .75rem 0 0; padding: 0; list-style: none; }
.delivery-timeline li { display: grid; grid-template-columns: auto 1fr; gap: .85rem; min-width: 0; padding: 1rem 1.1rem; border: 1px solid rgba(255,255,255,.16); }
.delivery-timeline b { color: var(--peach); font: 400 1.3rem/1 Georgia,serif; }
.delivery-timeline span { color: #c5d9da; font-size: .67rem; line-height: 1.55; }
.delivery-timeline strong { display: block; margin-bottom: .2rem; color: #fff; font-size: .69rem; letter-spacing: .04em; }
.delivery-benchmark { margin: 1.2rem 0 0; padding-left: 1rem; border-left: 3px solid var(--peach); color: #bcd2d3; font-size: .68rem; line-height: 1.6; }
.delivery-benchmark strong { color: #fff; }

.technical-facts { display: grid; grid-template-columns: minmax(260px,.72fr) minmax(0,1.28fr); gap: clamp(2rem,5vw,5rem); padding: clamp(2rem,4vw,3.5rem); background: #eef5f2; }
.technical-copy h3 { margin: .45rem 0 .7rem; font-size: clamp(1.7rem,2.7vw,2.7rem); }
.technical-copy p { margin: 0; color: #5f7770; font-size: .76rem; line-height: 1.65; }
.technical-facts dl { display: grid; grid-template-columns: 1fr 1fr; align-self: start; margin: 0; border: 1px solid #cad9d4; background: #cad9d4; gap: 1px; }
.technical-facts dl div { min-width: 0; padding: .8rem .9rem; background: #f8fbfa; }
.technical-facts dt { color: #6d827b; font-size: .59rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.technical-facts dd { margin: .28rem 0 0; color: #274f44; font-size: .72rem; font-weight: 800; line-height: 1.4; }

@media (max-width: 1120px) {
  .live-action { grid-template-columns: 1fr 230px; }
  .analysis-status { grid-column: 1/-1; min-height: 0; }
  .live-zone-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .method-story-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 820px) {
  .inventory-hero { grid-template-columns: 1fr; min-height: 430px; align-content: end; }
  .poc-head,.result-head { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .image-pair { grid-template-columns: 1fr; }
  .system-definition { grid-template-columns: 1fr; }
  .system-definition article { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.16); }
  .system-definition article:last-child { border-bottom: 0; }
  .image-pair img { aspect-ratio: 16/9; }
  .live-action { grid-template-columns: 1fr; }
  .analysis-status { grid-column: auto; }
  .run-meta { width: 100%; }
  .run-meta div { flex: 1 1 0; min-width: 0; }
  .total-strip { grid-template-columns: 1fr auto 1fr; }
  .total-strip .total-change { grid-column: 1/-1; }
  .live-zone-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .heineken-proof > header { align-items: flex-start; flex-direction: column; gap: .6rem; }
  .edge-case-hero,.technical-facts { grid-template-columns: 1fr; }
  .known-measured > div { grid-template-columns: 1fr; }
  .validation-report > header { grid-template-columns: 1fr; }
  .validation-score-grid,.report-details { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .delivery-story-copy { grid-template-columns: 1fr; }
  .delivery-story-copy > span,.delivery-story-copy h3,.delivery-story-copy p { grid-column: 1; grid-row: auto; }
  .delivery-story-copy h3 { margin-bottom: 1.4rem; }
}
@media (max-width: 520px) {
  .inventory-hero { min-height: 390px; padding-top: 4.5rem; padding-bottom: 2.4rem; }
  .inventory-hero h1 { font-size: clamp(2.55rem,14vw,4rem); }
  .poc-head,.live-action,.result-head { padding: 1.15rem; }
  .inventory-integrity { align-items: flex-start; }
  .run-meta { display: grid; grid-template-columns: 1fr 1fr; }
  .run-meta div:nth-child(2) { border-right: 0; }
  .run-meta div:last-child { grid-column: 1/-1; max-width: none; border-top: 1px solid var(--line); }
  .total-strip p { min-height: 74px; padding: .8rem; }
  .total-strip strong { font-size: 1.9rem; }
  .live-zone-grid { grid-template-columns: 1fr; }
  .zone-card { min-height: 0; }
  .zone-card h3 { min-height: 0; }
  .geometry-pair { grid-template-columns: 1fr; }
  .geometry-pair article { grid-template-columns: 1fr; }
  .geometry-pair article > b { grid-column: 1; }
  .geometry-pair article > small { grid-column: 1; margin-top: 0; }
  .crate-grid { grid-row: auto; }
  .edge-case-hero { padding: 2rem 1.15rem; }
  .edge-case-hero h2 { font-size: clamp(2.4rem,13vw,3.5rem); }
  .method-story-grid { grid-template-columns: 1fr; }
  .known-measured,.validation-report,.delivery-story,.technical-facts { padding: 1.35rem 1.15rem; }
  .validation-score-grid,.report-details { grid-template-columns: 1fr; }
  .delivery-kpis,.delivery-timeline { grid-template-columns: 1fr; }
  .technical-facts dl { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .image-pair img,.analysis-status.is-running i,.analysis-action.is-loading::after,.analysis-status.is-running .analysis-progress span::after { transition: none; animation: none; }
}
