:root {
    --paper: #F2EFE6;
    --paper-2: #E8E4D8;
    --ink: #15212C;
    --ink-2: #45515C;
    --ink-3: #727B84;
    --hair: rgba(21, 33, 44, 0.28);
    --red: #C5301C;
    --frame: 22px;
    --pad: clamp(18px, 4vw, 48px);
    --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    --body: 'Barlow', system-ui, sans-serif;
    --mono: 'IBM Plex Mono', ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
    font-family: var(--body);
    font-size: 17px;
    line-height: 1.55;
    color: var(--ink);
    background-color: var(--paper);
    background-image:
        linear-gradient(rgba(21,33,44,0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(21,33,44,0.07) 1px, transparent 1px),
        linear-gradient(rgba(21,33,44,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(21,33,44,0.04) 1px, transparent 1px);
    background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
    padding: var(--frame);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.container { max-width: 1320px; margin: 0 auto; padding: 0 var(--pad); }

/* ---------- Sheet frame ---------- */
.zone { position: fixed; z-index: 60; display: flex; background: var(--paper); font-family: var(--mono); font-size: 10px; color: var(--ink-2); pointer-events: none; }
.zone span { flex: 1; display: flex; align-items: center; justify-content: center; }
.zone-top, .zone-bottom { left: 0; right: 0; height: var(--frame); padding: 0 var(--frame); }
.zone-top { top: 0; border-bottom: 1.5px solid var(--ink); }
.zone-bottom { bottom: 0; border-top: 1.5px solid var(--ink); }
.zone-top span + span, .zone-bottom span + span { border-left: 1px solid var(--hair); }
.zone-left, .zone-right { top: var(--frame); bottom: var(--frame); width: var(--frame); flex-direction: column; }
.zone-left { left: 0; border-right: 1.5px solid var(--ink); }
.zone-right { right: 0; border-left: 1.5px solid var(--ink); }
.zone-left span + span, .zone-right span + span { border-top: 1px solid var(--hair); }

/* ---------- Nav ---------- */
nav { position: sticky; top: var(--frame); z-index: 50; background: var(--paper); border-bottom: 1px solid var(--ink); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 1.45rem; letter-spacing: 0.12em; text-decoration: none; }
.logo .ai-badge { font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: 0.1em; background: var(--red); color: var(--paper); padding: 3px 6px 2px; margin-left: -2px; }
h1 .ai { color: var(--red); }
h1 .cur { display: inline-block; width: 0.42em; height: 0.78em; background: var(--red); margin-left: 0.08em; vertical-align: -0.02em; animation: blinkc 1s steps(1) infinite; }
@keyframes blinkc { 50% { opacity: 0; } }
.logo img { height: 26px; filter: grayscale(1) contrast(1.2); mix-blend-mode: multiply; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; color: var(--ink-2); padding: 6px 0; border-bottom: 1.5px solid transparent; }
.nav-links a:hover { color: var(--ink); border-color: var(--red); }

.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; padding: 15px 22px; background: var(--ink); color: var(--paper); border: 1.5px solid var(--ink); transition: background 0.15s, border-color 0.15s; }
.btn:hover { background: var(--red); border-color: var(--red); }
.btn.ghost { background: transparent; color: var(--ink); padding: 9px 14px; font-size: 11px; }
.btn.ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.text-link { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; text-underline-offset: 5px; }
.text-link:hover { color: var(--red); }

/* ---------- Type ---------- */
.label { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }
h1, h2, h3 { font-family: var(--display); font-weight: 500; text-transform: uppercase; text-wrap: balance; }
h1 { font-size: clamp(2.9rem, 5vw, 4.6rem); line-height: 0.94; letter-spacing: 0.005em; margin: 22px 0 26px; }
h2 { font-size: clamp(1.95rem, 2.9vw, 2.75rem); line-height: 1; }
h3 { font-size: 1.5rem; line-height: 1.05; }
.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 32em; text-wrap: pretty; }

/* ---------- Story: sticky plan + scrolling scenes ---------- */
.story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 4vw, 72px); }
.scenes { order: 1; min-width: 0; }
.plan-col { order: 2; min-width: 0; }
.plan { position: sticky; top: calc(var(--frame) + 61px); height: calc(100vh - 61px - 2 * var(--frame)); display: flex; flex-direction: column; justify-content: center; padding: 16px 0; }

.scene { min-height: 92vh; display: flex; flex-direction: column; justify-content: center; padding: 56px 0; }
.scene + .scene { border-top: 1px solid var(--hair); }
.scene.hero { min-height: calc(100vh - 84px - var(--frame)); }
.scene.hero > .label::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--red); margin-right: 10px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 34px; }

.customers { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--hair); }
.customers-row { display: flex; align-items: center; gap: 14px 30px; flex-wrap: wrap; margin-top: 14px; }
.customers-row img { height: 26px; width: auto; filter: grayscale(1) contrast(1.15); mix-blend-mode: multiply; opacity: 0.85; }
.customers-row img.inv { filter: invert(1) grayscale(1); height: 24px; }
.wordmark { font-family: var(--display); font-weight: 600; font-size: 1.05rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }

/* scene header: stop balloon, department, time */
.stop { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.stop b { flex: none; width: 38px; height: 38px; border: 1.5px solid var(--red); border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 600; font-size: 1.1rem; background: var(--red); color: var(--paper); }
.tag { margin-left: auto; font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); border: 1.5px solid var(--red); padding: 4px 9px; white-space: nowrap; }
.scene h2.prod { font-size: clamp(2.5rem, 4.2vw, 3.7rem); line-height: 0.95; margin-bottom: 8px; }
.scene h3.prod { font-size: 1.9rem; }
.prod-kind { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2) !important; }
.scene p.prod-def { font-size: 1.12rem; color: var(--ink); margin-top: 16px; }
.also { margin-top: 44px; padding-top: 28px; border-top: 1.5px solid var(--ink); max-width: 460px; }
.also .prod-kind { margin-top: 6px; }
.scene p { color: var(--ink-2); max-width: 34em; text-wrap: pretty; }
.scene p + p { margin-top: 14px; }
.scene p strong { color: var(--ink); font-weight: 600; }

/* exhibits: the thing itself, drawn */
.exhibit { position: relative; border: 1.5px solid var(--ink); background: var(--paper); margin: 28px 0 0; max-width: 460px; }
.exhibit figcaption { display: flex; justify-content: space-between; gap: 12px; padding: 7px 12px; border-bottom: 1px solid var(--ink); background: var(--paper-2); font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; }
.exhibit figcaption span:last-child { color: var(--ink-3); }
.exhibit .row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 12px; font-family: var(--mono); font-size: 12.5px; }
.exhibit .row + .row { border-top: 1px solid var(--hair); }
.exhibit .row span:first-child { color: var(--ink-3); }
.exhibit s { color: var(--ink-3); text-decoration-color: var(--red); text-decoration-thickness: 1.5px; margin-right: 8px; }
.redtxt { color: var(--red); font-weight: 500; }
.rev { display: inline-grid; place-items: center; width: 20px; height: 17px; background: var(--red); color: var(--paper); clip-path: polygon(50% 0, 100% 100%, 0 100%); font-size: 8px; padding-top: 5px; margin-left: 6px; vertical-align: -3px; }

.stamp { display: none; position: absolute; right: 16px; bottom: -15px; transform: rotate(-4deg); border: 2px solid var(--red); color: var(--red); background: var(--paper); font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; padding: 5px 10px; }

/* schedule board */
.gantt { padding: 12px; display: grid; gap: 8px; }
.g-row { display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: 8px; font-family: var(--mono); font-size: 10.5px; }
.g-row > span { color: var(--ink-3); }
.g-track { position: relative; height: 26px; border-left: 1px solid var(--ink); background: repeating-linear-gradient(90deg, transparent 0 calc(12.5% - 1px), var(--hair) calc(12.5% - 1px) 12.5%); }
.g-track i { position: absolute; top: 3px; bottom: 3px; border: 1.25px solid var(--ink); background: var(--paper); font-style: normal; display: grid; place-items: center; white-space: nowrap; overflow: hidden; }
.g-track i.down { border-color: var(--red); color: var(--red); background: repeating-linear-gradient(135deg, transparent 0 5px, rgba(197,48,28,0.22) 5px 6px); }
.g-track i.was { border-style: dashed; color: var(--ink-3); border-color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--red); }
.g-track i.new { border-color: var(--red); border-width: 1.75px; }

/* voice form */
.voice { display: flex; align-items: center; gap: 14px; padding: 12px; border-bottom: 1px solid var(--ink); }
.wave { display: flex; align-items: center; gap: 3px; height: 26px; flex: none; }
.wave i { width: 3px; background: var(--red); height: 30%; animation: wave 1.1s ease-in-out infinite; }
.wave i:nth-child(2n) { animation-delay: -0.3s; } .wave i:nth-child(3n) { animation-delay: -0.6s; } .wave i:nth-child(5n) { animation-delay: -0.8s; }
@keyframes wave { 0%, 100% { height: 22%; } 50% { height: 100%; } }
.voice q { font-family: var(--body); font-style: italic; font-size: 0.98rem; color: var(--ink); }
.exhibit .row.pending span:last-child { color: var(--red); }

/* 5 whys ladder */
.whys { list-style: none; padding: 12px 12px 14px; }
.whys li { position: relative; font-size: 0.92rem; color: var(--ink); padding: 5px 0 5px 12px; border-left: 1.25px solid var(--ink); }
.whys li:nth-child(2) { margin-left: 20px; } .whys li:nth-child(3) { margin-left: 40px; }
.whys li:nth-child(4) { margin-left: 60px; } .whys li:nth-child(5) { margin-left: 80px; }
.whys li + li::before { content: ""; position: absolute; left: -21px; top: 0; width: 20px; border-top: 1.25px solid var(--ink); }
.whys b { display: block; font-family: var(--mono); font-weight: 500; font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.whys li:last-child { border-left-color: var(--red); } .whys li:last-child b { color: var(--red); }

/* maintenance timeline */
.tl { display: grid; grid-template-columns: repeat(4, 1fr); padding: 20px 12px 14px; position: relative; }
.tl::before { content: ""; position: absolute; left: calc(12.5% + 6px); right: calc(12.5% + 6px); top: 25px; border-top: 1.25px solid var(--ink); }
.tl div { text-align: center; font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; position: relative; }
.tl div::before { content: ""; display: block; width: 11px; height: 11px; border: 1.25px solid var(--ink); border-radius: 50%; background: var(--paper); margin: 0 auto 9px; }
.tl div:last-child::before { background: var(--ink); }
.tl b { display: block; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; }
.tl span { color: var(--ink-3); }

/* connections under each scene */
.ps { margin-top: 24px; max-width: 34em; border-top: 1px solid var(--ink); }
.ps div { display: grid; grid-template-columns: 92px 1fr; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--hair); align-items: baseline; }
.ps dt { font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); }
.ps dd { font-size: 0.98rem; color: var(--ink-2); text-wrap: pretty; }

/* ---------- The plan drawing ---------- */
.ga { display: block; width: 100%; height: auto; max-height: calc(100vh - 250px); }
.ga text { font-family: var(--mono); fill: var(--ink); }
.ga .ln { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.ga .heavy { fill: none; stroke: var(--ink); stroke-width: 3; }
.ga .thin { fill: none; stroke: var(--ink); stroke-width: 0.75; }
.ga .cl { fill: none; stroke: var(--ink-3); stroke-width: 0.6; stroke-dasharray: 14 3 2 3; }
.ga .ah { fill: var(--ink); }
.ga .room { font-size: 9px; letter-spacing: 1px; fill: var(--red); font-weight: 500; transition: fill 0.3s; }
.ga .intro { animation: blink 0.8s ease-in-out calc(1.7s + var(--i) * 0.3s); }
.ga .room.intro { animation-name: blink-label; }
@keyframes blink { 0%, 100% { opacity: 0; } 40%, 60% { opacity: 1; } }
@keyframes blink-label { 0%, 100% { font-weight: 500; } 30%, 70% { font-weight: 700; } }
.ga .dim { font-size: 9.5px; letter-spacing: 1px; }
.ga .hatch { fill: url(#hatch); opacity: 0; transition: opacity 0.45s; }
.ga .hatch.on { opacity: 1; }
.ga .room.on { fill: var(--red); font-weight: 600; }
.ga .sel { fill: none; stroke: var(--red); stroke-width: 2.5; opacity: 0; transition: opacity 0.35s; pointer-events: none; }
.ga .sel.on { opacity: 1; }
.ga .route-plan { fill: none; stroke: var(--ink-3); stroke-width: 0.9; stroke-dasharray: 3 3; }
.ga .route-run { fill: none; stroke: var(--red); stroke-width: 2; stroke-linejoin: round; }
.ga .trav { fill: var(--red); stroke: var(--paper); stroke-width: 2; }
.ga .stopb circle, .ga .stopb rect { fill: var(--paper); stroke: var(--ink); stroke-width: 1.25; transition: fill 0.3s; }
.ga .stopb text { font-size: 9.5px; font-weight: 500; text-anchor: middle; transition: fill 0.3s; }
.ga .stopb.on circle, .ga .stopb.on rect { fill: var(--red); stroke: var(--red); }
.ga .stopb.on text { fill: var(--paper); }
.ga .bus { fill: none; stroke: var(--ink); stroke-width: 1; transition: stroke-width 0.3s; }
.ga .bus.on { stroke-width: 2.5; stroke: var(--red); }
.ga .node { fill: var(--paper); stroke: var(--ink); stroke-width: 1.25; transition: fill 0.3s; }
.ga .node.on { fill: var(--red); stroke: var(--red); }
.ga .tap text { font-size: 9px; text-anchor: middle; fill: var(--ink-3); }
.ga .tap text.on { fill: var(--red); font-weight: 600; }
.ga .flag { opacity: 0; transition: opacity 0.4s; }
.ga .flag.on { opacity: 1; }
.ga .hit { fill: rgba(21, 33, 44, 0); cursor: pointer; transition: fill 0.2s; }
.ga a:hover .hit { fill: rgba(21, 33, 44, 0.07); }
.ga a:focus-visible { outline: none; }
.ga a:focus-visible .hit { stroke: var(--red); stroke-width: 2; }
.ga .redt { fill: var(--red); font-size: 7.5px; letter-spacing: 0.8px; }
.ga .red { stroke: var(--red); fill: none; stroke-width: 1.1; }

.draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.5s cubic-bezier(.6,.1,.2,1) forwards; }
.fade { opacity: 0; animation: fade 0.5s ease-out forwards; animation-delay: var(--d, 1s); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }

.plan-hint { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); text-align: center; margin-top: 6px; }
/* Title block */
.titleblock { display: grid; grid-template-columns: 2.4fr 0.8fr 1.4fr 1fr; border: 1.5px solid var(--ink); background: var(--paper); margin-top: 12px; }
.tb { padding: 7px 10px 8px; border-right: 1px solid var(--ink); min-width: 0; }
.tb:last-child { border-right: 0; }
.tb-k { display: block; font-family: var(--mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.tb-v { display: block; font-family: var(--display); font-weight: 500; font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.03em; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-v.build { color: var(--red); }

/* ---------- Sheets after the story ---------- */
.sheet { padding: 80px 0; border-top: 1.5px solid var(--ink); }
.sheet-head { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 12px 40px; margin-bottom: 52px; }
.sheet-no { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; border: 1.5px solid var(--ink); padding: 6px 10px; align-self: start; background: var(--paper); }
.sheet-head h2, .sheet-head .lead { grid-column: 2; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); position: relative; padding-top: 34px; }
.steps::before { content: ""; position: absolute; top: 9px; left: 0; right: 0; border-top: 1.5px solid var(--ink); }
.step { position: relative; }
.step::before { content: ""; position: absolute; top: -34px; left: 0; width: 1.5px; height: 20px; background: var(--ink); }
.step .label { display: block; margin-bottom: 10px; }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--ink-2); font-size: 1rem; }

.cta-box { border: 1.5px solid var(--ink); background: var(--paper); padding: 40px clamp(22px, 4vw, 48px) 44px; position: relative; display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: center; margin-top: 72px; }
.cta-box::before { content: "C"; position: absolute; top: -1.5px; right: 26px; width: 34px; height: 30px; background: var(--red); color: var(--paper); clip-path: polygon(50% 100%, 0 0, 100% 0); font-family: var(--mono); font-size: 11px; text-align: center; line-height: 17px; }
.cta-box h2 { margin-bottom: 10px; }
.cta-box p { color: var(--ink-2); max-width: 36em; }
.cta-box .fine { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; color: var(--ink-3); margin-top: 12px; text-align: right; }

footer { padding: 0 0 34px; }
.foot-block { display: grid; grid-template-columns: 1.3fr 2.4fr 2fr 1fr 0.6fr; border: 1.5px solid var(--ink); background: var(--paper); }
.foot-block .tb-v { white-space: normal; }
.foot-block a { text-decoration: none; } .foot-block a:hover { color: var(--red); }

@media (prefers-reduced-motion: reduce) {
    .draw { animation: none; stroke-dashoffset: 0; }
    .fade { animation: none; opacity: 1; }
    .ga .intro { animation: none; }
    h1 .cur { animation: none; }
    .wave i { animation: none; height: 60%; }
    html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .nav-links { display: none; }
    .story { display: block; }
    .plan-col { display: contents; }
    .plan { height: auto; display: block; z-index: 20; background: var(--paper); border-bottom: 1.5px solid var(--ink); margin: 0 calc(-1 * var(--pad)); padding: 8px var(--pad); }
    .ga { max-height: 34vh; }
    .plan .titleblock, .plan-hint { display: none; }
    .scene, .scene.hero { min-height: 0; padding: 60px 0; }
    .steps { grid-template-columns: 1fr; padding-top: 0; }
    .steps::before, .step::before { display: none; }
    .step { border-top: 1.5px solid var(--ink); padding-top: 16px; }
    .cta-box { grid-template-columns: 1fr; }
    .cta-box .fine { text-align: left; }
    .foot-block { grid-template-columns: 1fr 1fr; }
    .foot-block .tb { border-bottom: 1px solid var(--ink); }
    .foot-block .tb:nth-child(2n) { border-right: 0; }
    .foot-block .tb:last-child { border-bottom: 0; grid-column: span 2; }
}
@media (max-width: 640px) {
    :root { --frame: 8px; }
    body { font-size: 16px; }
    .zone span { visibility: hidden; }
    .sheet { padding: 56px 0; }
    .sheet-head { grid-template-columns: 1fr; margin-bottom: 32px; }
    .sheet-head h2, .sheet-head .lead { grid-column: 1; }
    .sheet-no { justify-self: start; }
    .ps div { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- Links from a product block to its detail page ---------- */
.more { display: inline-block; margin-top: 18px; font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; text-underline-offset: 5px; color: var(--ink); }
.more:hover { color: var(--red); }

/* ---------- Product detail pages ---------- */
.pp-head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 4vw, 72px); align-items: center; padding: 64px 0 72px; }
.pp-head h1 { font-size: clamp(3.2rem, 7vw, 6rem); margin: 0 0 12px; }
.pp-head .prod-kind { font-size: 12.5px; }
.pp-head .lead { margin-top: 22px; font-size: 1.25rem; color: var(--ink); }
.pp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 32px; }
.keyplan .label { display: block; margin-bottom: 8px; }
.keyplan .ga { max-height: none; }
.pp-two { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 72px); align-items: start; }
.pp-two > p { font-size: 1.2rem; color: var(--ink); max-width: 36em; text-wrap: pretty; }
.sheet h2 + .label { display: block; margin-top: 10px; }
.steps .num { font-family: var(--display); font-weight: 600; font-size: 1.1rem; }
.media { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; }
.ph { border: 1.5px dashed var(--ink-3); min-height: 150px; display: grid; place-items: center; text-align: center; padding: 16px; background: repeating-linear-gradient(135deg, transparent 0 9px, rgba(21,33,44,0.05) 9px 10px); font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.ph b { display: block; color: var(--ink-2); font-weight: 500; margin-bottom: 4px; }
.ph.main { grid-row: span 2; aspect-ratio: 16 / 9; }
.pp-example .exhibit { margin-top: 0; max-width: 520px; }
.links { border-top: 1.5px solid var(--ink); }
.links a { display: grid; grid-template-columns: 150px 1fr auto; gap: 16px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--hair); text-decoration: none; }
.links a:hover { color: var(--red); }
.links b { font-family: var(--display); font-weight: 600; font-size: 1.25rem; text-transform: uppercase; letter-spacing: 0.03em; }
.links span { color: var(--ink-2); font-size: 0.98rem; }
.links i { font-style: normal; font-family: var(--mono); }
.pager { display: grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--ink); background: var(--paper); margin-top: 72px; }
.pager a { padding: 18px 22px; text-decoration: none; min-width: 0; }
.pager a + a { border-left: 1px solid var(--ink); text-align: right; }
.pager a:hover { background: var(--paper-2); }
.pager .tb-v { font-size: 1.4rem; }
.pager span.empty { padding: 18px 22px; }
@media (max-width: 980px) {
    .pp-head { grid-template-columns: 1fr; padding: 44px 0 52px; }
    .pp-two { grid-template-columns: 1fr; }
    .media { grid-template-columns: 1fr; grid-template-rows: none; }
    .ph.main { grid-row: auto; }
    .links a { grid-template-columns: 1fr auto; }
    .links span { grid-column: 1 / -1; grid-row: 2; }
}


.tag.ok { color: var(--ink); border-color: var(--ink); }
.pp-block > h2 + .steps, .pp-block > h2 + .media, .pp-block > h2 + .links { margin-top: 40px; }
.pp-block > .label { display: block; margin-top: 10px; }
.pp-note { font-size: 1.2rem; max-width: 36em; }

/* ---------- Proof figure ---------- */
.stat { display: flex; align-items: baseline; gap: 14px; margin-top: 22px; max-width: 34em; }
.stat b { font-family: var(--display); font-weight: 600; font-size: 2.7rem; line-height: 1; letter-spacing: 0.01em; }
.stat span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }
.pp-head .stat { margin-top: 28px; padding-top: 18px; border-top: 1.5px solid var(--ink); }
.pp-head .stat b { font-size: 4rem; }
@media (min-width: 981px) { .steps.n4 { grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); } }

/* ---------- Excel to digital ---------- */
.x2d { display: grid; grid-template-columns: minmax(0, 1.55fr) auto minmax(0, 0.85fr); gap: clamp(16px, 2.5vw, 36px); align-items: center; margin-top: 40px; }
.xl { border: 1.5px solid var(--ink); background: #fff; font-family: Calibri, Carlito, Arial, sans-serif; font-size: 11.5px; color: #1f1f1f; overflow-x: auto; }
.xl-bar { display: flex; justify-content: space-between; gap: 12px; padding: 7px 10px; background: var(--paper-2); border-bottom: 1px solid var(--ink); font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); }
.xl-bar span:first-child { text-transform: none; letter-spacing: 0.02em; }
.xl-bar span:last-child { color: var(--ink-3); }
.xl table { border-collapse: collapse; width: 100%; min-width: 540px; }
.xl th { background: #ececec; border: 1px solid #c4c4c4; font-weight: 400; color: #666; font-size: 10px; padding: 2px 5px; text-align: center; min-width: 22px; }
.xl td { border: 1px solid #d6d6d6; padding: 5px 7px; white-space: nowrap; height: 24px; }
.xl td.t { text-align: center; font-weight: 700; font-size: 13.5px; padding: 8px; letter-spacing: 0.04em; }
.xl td.h { background: #ece8dc; font-weight: 700; text-align: center; border-color: #9a9a9a; }
.xl td.n { text-align: right; } .xl td.c { text-align: center; }
.xl td.sig { height: 40px; vertical-align: bottom; color: #555; }
.xl-tabs { display: flex; border-top: 1px solid #c4c4c4; background: #ececec; font-size: 10.5px; color: #555; }
.xl-tabs span { padding: 4px 14px; border-right: 1px solid #c4c4c4; }
.xl-tabs span.on { background: #fff; font-weight: 700; color: #1f1f1f; }
.x2d-arrow { text-align: center; font-family: var(--mono); max-width: 130px; }
.x2d-arrow svg { display: block; margin: 0 auto 10px; }
.x2d-arrow b { display: block; font-weight: 500; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); }
.x2d-arrow span { display: block; margin-top: 6px; font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); line-height: 1.5; }
.device { border: 2px solid var(--ink); border-radius: 24px; background: var(--paper); padding: 10px; width: 100%; max-width: 310px; margin: 0 auto; }
.device-screen { border: 1px solid var(--ink); border-radius: 14px; background: #fff; overflow: hidden; }
.dv-head { padding: 11px 13px; background: var(--ink); color: var(--paper); }
.dv-head b { display: block; font-family: var(--display); font-weight: 500; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.04em; line-height: 1.1; }
.dv-head span { font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; opacity: 0.75; }
.dv-field { padding: 10px 13px; border-bottom: 1px solid var(--hair); }
.dv-field .q { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 12.5px; font-weight: 600; }
.dv-field .q span { font-family: var(--mono); font-weight: 400; font-size: 9.5px; color: var(--ink-3); white-space: nowrap; }
.dv-in, .dv-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 7px; }
.dv-chips { grid-template-columns: repeat(2, 1fr); }
.dv-in i, .dv-chips i { font-style: normal; font-family: var(--mono); font-size: 11.5px; text-align: center; padding: 6px 0; border: 1.25px solid var(--ink); }
.dv-in i.ok::after { content: " ✓"; }
.dv-in i.live { border-color: var(--red); color: var(--red); font-size: 9.5px; letter-spacing: 0.06em; text-transform: uppercase; padding: 7px 0; }
.dv-chips i { border-style: dashed; color: var(--ink-3); }
.dv-voice { display: flex; align-items: center; gap: 10px; padding: 9px 13px; background: var(--paper-2); border-bottom: 1px solid var(--hair); }
.dv-voice .wave { height: 20px; }
.dv-voice q { font-style: italic; font-size: 12px; }
.dv-foot { padding: 11px 13px; }
.dv-foot .btn { width: 100%; justify-content: center; padding: 11px; font-size: 10.5px; cursor: default; }
.dv-foot .btn:hover { background: var(--ink); border-color: var(--ink); }

/* ---------- Two-step approval ---------- */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 40px; border: 1.5px solid var(--ink); background: var(--paper); }
.flow > div { padding: 20px 20px 18px; position: relative; display: flex; flex-direction: column; }
.flow > div + div { border-left: 1px solid var(--ink); }
.flow > div + div::before { content: "→"; position: absolute; left: -10px; top: 17px; width: 19px; text-align: center; background: var(--paper); font-family: var(--mono); font-size: 13px; color: var(--red); }
.flow .label { display: block; margin-bottom: 10px; }
.flow .label.red { color: var(--red); }
.flow h3 { margin-bottom: 6px; }
.flow p { font-size: 0.95rem; color: var(--ink-2); flex: 1; }
.flow .sig { margin-top: 18px; padding-top: 9px; border-top: 1px dashed var(--ink-3); font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
@media (max-width: 980px) {
    .x2d { grid-template-columns: 1fr; }
    .x2d-arrow { max-width: none; }
    .x2d-arrow svg { transform: rotate(90deg); margin: 34px auto 44px; }
    .flow { grid-template-columns: 1fr; }
    .flow > div + div { border-left: 0; border-top: 1px solid var(--ink); }
    .flow > div + div::before { content: "↓"; left: 14px; top: -11px; }
}

/* ---------- Chat example ---------- */
.chat { padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; }
.chat p { max-width: 82%; padding: 8px 11px; font-size: 0.9rem; line-height: 1.4; border: 1.25px solid var(--ink); color: var(--ink) !important; margin: 0 !important; }
.chat p.in { align-self: flex-start; background: #fff; }
.chat p.out { align-self: flex-end; background: var(--paper-2); font-family: var(--mono); }

.scene.short { min-height: 56vh; }
.ga circle.hit { fill: rgba(21, 33, 44, 0); }
.ga a:hover circle.hit { fill: rgba(197, 48, 28, 0.18); }

/* ---------- Drawn visuals on detail pages ---------- */
.x2d.even { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.x2d.flip { grid-template-columns: minmax(0, 0.85fr) auto minmax(0, 1.55fr); }
.x2d .exhibit { margin: 0; max-width: none; }
.solo { margin-top: 40px; max-width: 780px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.doc { border: 1.5px solid var(--ink); background: #fff; min-width: 0; }
.doc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--ink); background: var(--paper-2); }
.doc-head b { font-family: var(--display); font-weight: 600; font-size: 1.02rem; text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; }
.doc-head span { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); text-align: right; }
.doc .row { display: flex; justify-content: space-between; gap: 14px; padding: 8px 12px; font-family: var(--mono); font-size: 12px; }
.doc .row + .row { border-top: 1px solid var(--hair); }
.doc .row span:first-child { color: var(--ink-3); }
.doc .row span:last-child { text-align: right; }
.doc .row.chg { background: rgba(197, 48, 28, 0.07); box-shadow: inset 3px 0 0 var(--red); }
.doc .row.chg span:last-child { color: var(--red); font-weight: 500; }
.doc-note { padding: 8px 12px; border-top: 1px solid var(--ink); font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.b-row { display: grid; grid-template-columns: 92px 1fr auto; gap: 12px; align-items: center; padding: 9px 12px; }
.b-row + .b-row { border-top: 1px solid var(--hair); }
.b-ref { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.b-text { font-size: 0.92rem; line-height: 1.35; }
.chip { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 7px; border: 1.25px solid var(--ink); white-space: nowrap; }
.chip.red { border-color: var(--red); color: var(--red); }
.chip.done { background: var(--ink); color: var(--paper); }

.cam { border: 1.5px solid var(--ink); background: var(--ink); min-width: 0; }
.cam-bar { display: flex; justify-content: space-between; gap: 10px; padding: 7px 12px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--paper); }
.cam-bar .rec { color: #FF8A7A; }
.cam-view { margin: 0 8px 8px; background: #2B3741; padding: 26px 18px; min-height: 230px; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
.challan { background: #F7F5EE; color: #1f1f1f; padding: 14px 16px 16px; width: min(100%, 250px); transform: rotate(-2deg); font-family: Calibri, Carlito, Arial, sans-serif; font-size: 12px; }
.challan b { display: block; text-align: center; letter-spacing: 0.08em; font-size: 12px; }
.challan .bb { display: block; position: relative; border: 1.5px solid var(--red); padding: 3px 7px; margin-top: 15px; }
.challan .bb::before { content: attr(data-l); position: absolute; left: -1.5px; top: -11px; background: var(--red); color: #fff; font-family: var(--mono); font-size: 7.5px; letter-spacing: 0.08em; padding: 1px 5px; text-transform: uppercase; }
.parts { display: flex; gap: 9px; flex-wrap: wrap; justify-content: center; max-width: 180px; }
.parts i { width: 30px; height: 30px; background: #8996A0; border: 1.5px solid var(--red); border-radius: 50%; }
.cam-count { color: #fff; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; text-align: center; margin-top: 14px; }
.strip { display: flex; height: 18px; margin: 14px 12px; border: 1.25px solid var(--ink); }
.strip i { display: block; }
.strip i.run { background: var(--ink); }
.strip i.idle { background: var(--paper-2); }
.strip i.down { background: repeating-linear-gradient(135deg, #fff 0 3px, var(--red) 3px 5px); }
.src3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 40px; align-items: stretch; }
.src3 .cam-view { min-height: 150px; }
.merge { margin: 6px 0 0; }
.merge .x2d-arrow { max-width: none; }
.merge .x2d-arrow svg { transform: rotate(90deg); margin: 44px auto 50px; }
.merged { max-width: 460px; margin: 18px auto 0; }

.rt { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 11.5px; }
.rt th { font-weight: 500; font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); padding: 8px 6px; border-bottom: 1px solid var(--ink); text-align: center; }
.rt td { padding: 8px 6px; text-align: center; border-top: 1px solid var(--hair); white-space: nowrap; }
.rt th:first-child, .rt td:first-child { text-align: left; padding-left: 12px; }
.rt td.p { color: var(--red); outline: 1.25px dashed var(--red); outline-offset: -5px; }
.rt td.off { color: var(--ink-3); }
.device .chat p { max-width: 88%; font-size: 12.5px; }

.kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 40px; align-items: start; }
.k-col { border: 1.5px solid var(--ink); background: var(--paper); padding-bottom: 2px; }
.k-col > b { display: flex; justify-content: space-between; padding: 8px 12px; border-bottom: 1px solid var(--ink); background: var(--paper-2); font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }
.k-card { margin: 10px; padding: 10px 12px; border: 1.25px solid var(--ink); background: #fff; }
.k-card.agent { box-shadow: inset 4px 0 0 var(--red); padding-left: 15px; }
.k-card p { font-size: 0.93rem; font-weight: 600; line-height: 1.3; color: var(--ink); }
.k-card span { display: block; margin-top: 6px; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.k-note { margin-top: 12px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }

.hub { margin-top: 40px; overflow-x: auto; }
.hub svg { display: block; width: 100%; min-width: 700px; height: auto; }
.hub rect { fill: #fff; stroke: var(--ink); stroke-width: 1.5; }
.hub a:hover rect { fill: var(--paper-2); }
.hub rect.core { fill: var(--ink); }
.hub .hl { stroke: var(--ink); stroke-width: 1; fill: none; }
.hub text { font-family: var(--mono); }
.hub .hn { font-size: 12px; font-weight: 500; letter-spacing: 0.06em; fill: var(--ink); }
.hub .hd { font-size: 9px; letter-spacing: 0.1em; fill: var(--ink-3); }
.hub .hc { font-family: var(--display); font-size: 40px; font-weight: 600; fill: var(--paper); letter-spacing: 0.06em; }
.hub .hs { font-size: 8.5px; letter-spacing: 0.12em; fill: #B9C2CA; }

@media (max-width: 980px) {
    .x2d.even, .x2d.flip { grid-template-columns: 1fr; }
    .src3, .kanban { grid-template-columns: 1fr; }
    .b-row { grid-template-columns: 1fr auto; }
    .b-ref { grid-column: 1 / -1; }
}
@media (max-width: 640px) { .pair { grid-template-columns: 1fr; } }

/* ---------- Honeycomb views ---------- */
.views { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 40px; align-items: start; }
.win { border: 1.5px solid var(--ink); background: #fff; min-width: 0; }
.win.wide { grid-column: 1 / -1; }
.win-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px 12px; flex-wrap: wrap; padding: 7px 10px 7px 12px; border-bottom: 1px solid var(--ink); background: var(--paper-2); }
.win-bar b { font-family: var(--display); font-weight: 600; font-size: 1.02rem; text-transform: uppercase; letter-spacing: 0.04em; }
.win-bar small { font-family: var(--mono); font-weight: 400; font-size: 9.5px; letter-spacing: 0.1em; color: var(--ink-3); margin-left: 10px; }
.win-tabs { display: flex; }
.win-tabs span { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 9px; border: 1.25px solid var(--ink); margin-left: -1.25px; background: var(--paper); color: var(--ink-2); white-space: nowrap; }
.win-tabs span.on { background: var(--ink); color: var(--paper); }
.lt { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.lt th { font-family: var(--mono); font-weight: 500; font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); text-align: left; padding: 8px 8px; border-bottom: 1px solid var(--ink); }
.lt td { padding: 8px 8px; border-top: 1px solid var(--hair); vertical-align: middle; }
.lt th:first-child, .lt td:first-child { padding-left: 12px; }
.lt td.id { font-family: var(--mono); font-size: 11px; white-space: nowrap; color: var(--ink-2); }
.lt td:last-child { font-family: var(--mono); font-size: 11px; white-space: nowrap; }
.win .gantt { padding: 6px 12px 12px; gap: 7px; }
.win .g-row, .g-axis { grid-template-columns: 54px 1fr; }
.g-axis { display: grid; gap: 8px; padding: 8px 12px 2px; }
.g-axis div { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 9px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.g-axis i { font-style: normal; }
.g-track i.dn { background: var(--ink); color: var(--paper); }
.g-track i.pl { border-style: dashed; color: var(--ink-2); }
.win .kanban { margin: 0; padding: 12px; gap: 12px; }
.hub .hk { font-size: 9.5px; letter-spacing: 0.14em; fill: var(--red); font-weight: 500; }
@media (max-width: 980px) { .views { grid-template-columns: 1fr; } .lt th:nth-child(3), .lt td:nth-child(3) { display: none; } }

/* ---------- Hero visuals on detail pages ---------- */
.pp-head { align-items: start; }
.pp-head > div:first-child { padding-top: 12px; }
.pp-head.no-art { grid-template-columns: 1fr; }
.hero-art { display: grid; grid-template-columns: repeat(12, 1fr); align-items: start; }
.hero-art > * { grid-row: 1; min-width: 0; }
.ha-back { grid-column: 1 / 10; }
.ha-front { grid-column: 6 / 13; margin-top: 30%; z-index: 2; filter: drop-shadow(9px 9px 0 rgba(21, 33, 44, 0.16)); }
.hero-art.one > * { grid-column: 1 / -1; }
.hero-art .exhibit { margin: 0; max-width: none; }
.hero-art .device { max-width: 290px; margin-left: auto; margin-right: 0; }
.hero-art .b-row { grid-template-columns: 78px 1fr auto; gap: 8px; }
.xl.mini table { min-width: 0; }
.xl.mini td { padding: 5px 6px; }
.core-card { background: var(--ink); color: var(--paper); padding: 26px 22px 24px; text-align: center; border: 1.5px solid var(--ink); }
.core-card b { display: block; font-family: var(--display); font-weight: 600; font-size: 3.4rem; line-height: 1; letter-spacing: 0.06em; margin-bottom: 12px; }
.core-card span { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: #B9C2CA; margin-top: 5px; }
@media (max-width: 640px) { .ha-back { grid-column: 1 / 12; } .ha-front { grid-column: 4 / 13; margin-top: 44%; } }

/* ---------- OWL: sources, formats, forecast chart, order status ---------- */
.srcs { display: grid; gap: 10px; min-width: 0; }
.solo.full { max-width: none; }
.code { margin: 0; padding: 12px 14px; font-family: var(--mono); font-size: 11.5px; line-height: 1.65; white-space: pre; overflow-x: auto; color: var(--ink); }
.fc { display: block; width: 100%; height: auto; }
.fc .fg { stroke: var(--hair); stroke-width: 1; fill: none; }
.fc .fa { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; fill: var(--ink-3); }
.fc .fq { font-family: var(--mono); font-size: 9.5px; fill: var(--ink-2); }
.fc .fp { fill: #fff; stroke: var(--ink); stroke-width: 1.5; }
.fc .fcur { fill: var(--ink); }
.fc .fcur.flag { fill: var(--red); }
.fc .fv { font-family: var(--mono); font-size: 12px; font-weight: 500; fill: var(--ink-2); }
.fc .fv.flag { fill: var(--red); }
.tl.st div:last-child::before { background: var(--paper); }
.tl div.done::before { background: var(--ink); }
.tl div.now::before { background: var(--red); border-color: var(--red); }
.tl div.now b { color: var(--red); }
.src3 .xl.mini, .src3 .doc { height: 100%; }

/* ---------- Email thread ---------- */
.msg { padding: 12px 14px; border-top: 1px solid var(--hair); }
.doc-head + .msg { border-top: 0; }
.msg .from { display: flex; justify-content: space-between; gap: 10px; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.msg .from b { font-weight: 500; color: var(--ink); }
.msg.agent .from b { color: var(--red); }
.msg p { font-size: 0.92rem; line-height: 1.45; color: var(--ink); margin: 0; max-width: none; }
.msg.cust { background: var(--paper); }
.msg mark { background: rgba(197, 48, 28, 0.16); color: inherit; padding: 0 3px; }
.msg.sys { font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); background: rgba(197, 48, 28, 0.07); box-shadow: inset 3px 0 0 var(--red); padding: 9px 14px; }
.rt.mo td, .rt.mo th { text-align: left; padding-left: 12px; }
.rt.mo td:last-child, .rt.mo th:last-child { text-align: right; padding-right: 12px; }
.hero-art .msg p { font-size: 0.88rem; }

/* ---------- Product versus agent or automation ---------- */
.stop { flex-wrap: wrap; }
.stop b.sq { border-radius: 0; }
.kchip { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; padding: 4px 9px 4px 8px; border: 1.5px solid var(--ink); color: var(--ink); white-space: nowrap; }
.kchip::before { content: ""; width: 8px; height: 8px; background: currentColor; }
.kchip.product { background: var(--ink); color: var(--paper); }
.kchip.agent::before, .kchip.automation::before { border-radius: 50%; }
.kchip.automation { border-style: dashed; }
.plan-hint .lg { display: inline-block; width: 10px; height: 10px; border: 1.5px solid var(--ink-2); vertical-align: -1px; margin-right: 6px; }
.plan-hint .lg.ci { border-radius: 50%; margin-left: 16px; }
.plan-hint span { margin-left: 22px; }

/* ---------- Honeycomb: scattered files to institutional knowledge ---------- */
.x3 { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.05fr) auto minmax(0, 1fr); gap: clamp(10px, 1.6vw, 24px); align-items: center; margin-top: 40px; }
.x3 .x2d-arrow { max-width: 104px; }
.x3 .x2d-arrow svg { width: 72px; }
.x3 .b-row { grid-template-columns: 44px 1fr auto; gap: 8px; }
.mess { position: relative; height: 290px; }
.file { position: absolute; width: 104px; text-align: center; transform-origin: 50% 40%; }
.file svg { display: block; margin: 0 auto; filter: drop-shadow(3px 3px 0 rgba(21, 33, 44, 0.12)); }
.file i { position: absolute; left: 50%; top: 46px; transform: translateX(-34px); font-style: normal; font-family: var(--mono); font-size: 7.5px; font-weight: 500; letter-spacing: 0.08em; padding: 1px 4px; background: var(--ink); color: var(--paper); border: 1px solid var(--ink); }
.file i.g { background: var(--paper); color: var(--ink); }
.file span { display: block; margin-top: 5px; font-family: var(--mono); font-size: 9px; line-height: 1.25; color: var(--ink-2); overflow-wrap: anywhere; }
.mess-note { margin-top: 10px; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); line-height: 1.6; text-align: center; }
.know { background: var(--ink); color: var(--paper); border: 1.5px solid var(--ink); min-width: 0; }
.know-head { padding: 12px 14px 11px; border-bottom: 1px solid rgba(242, 239, 230, 0.25); }
.know-head b { display: block; font-family: var(--display); font-weight: 600; font-size: 1.25rem; text-transform: uppercase; letter-spacing: 0.04em; line-height: 1.1; }
.know-head span { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: #B9C2CA; }
.know-item { padding: 11px 14px 12px 28px; position: relative; border-bottom: 1px solid rgba(242, 239, 230, 0.14); }
.know-item::before { content: ""; position: absolute; left: 14px; top: 17px; width: 6px; height: 6px; background: var(--red); }
.know-item b { display: block; font-size: 0.93rem; font-weight: 600; }
.know-item span { display: block; margin-top: 3px; font-size: 0.86rem; line-height: 1.4; color: #C9D0D6; }
.know-foot { padding: 10px 14px; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: #B9C2CA; }
@media (max-width: 980px) {
    .x3 { grid-template-columns: 1fr; }
    .x3 .x2d-arrow { max-width: none; }
    .x3 .x2d-arrow svg { transform: rotate(90deg); margin: 30px auto 38px; }
    .mess { max-width: 360px; margin: 0 auto; }
}

/* ---------- Detail page ending: one call to action, one footer strip ---------- */
.cta-box.flat { margin-top: 0; }
.foot-nav { display: grid; grid-template-columns: 1.5fr 0.9fr 1.5fr 1.5fr; border: 1.5px solid var(--ink); background: var(--paper); }
.foot-nav .tb { padding: 12px 16px 13px; text-decoration: none; }
.foot-nav a.tb:hover { background: var(--paper-2); }
.foot-nav a.tb:hover .tb-v { color: var(--red); }
.foot-nav .fn-prev .tb-v, .foot-nav .fn-next .tb-v { font-size: 1.3rem; }
.foot-nav .fn-next { text-align: right; }
.foot-nav .fn-mail a { text-decoration: none; }
.foot-nav .fn-mail a:hover { color: var(--red); }
@media (max-width: 980px) {
    .foot-nav { grid-template-columns: 1fr 1fr; }
    .foot-nav .fn-prev { order: 1; border-bottom: 1px solid var(--ink); }
    .foot-nav .fn-next { order: 2; border-right: 0; border-bottom: 1px solid var(--ink); }
    .foot-nav .fn-co { order: 3; }
    .foot-nav .fn-mail { order: 4; border-right: 0; }
}

.hub + .k-note { margin-top: 14px; }
.rt.mo .chip { display: inline-block; }

/* ---------- Two modes of working ---------- */
.modes { display: grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--ink); background: var(--paper); margin-top: 64px; }
.mode { padding: 26px 30px 30px; }
.mode + .mode { border-left: 1px solid var(--ink); }
.mode .label { display: block; margin-bottom: 10px; }
.mode h3 { font-size: 1.9rem; margin-bottom: 8px; }
.mode p { color: var(--ink-2); max-width: 30em; }
.modes + .cta-box { margin-top: 28px; }
@media (max-width: 640px) {
    .modes { grid-template-columns: 1fr; }
    .mode + .mode { border-left: 0; border-top: 1px solid var(--ink); }
}

/* ---------- Value proposition line ---------- */
.scene p.prod-def { font-size: 1.32rem; line-height: 1.3; font-weight: 500; color: var(--ink); max-width: 24em; margin-top: 18px; }
.pp-head .lead { font-size: 1.45rem; line-height: 1.3; font-weight: 500; max-width: 22em; }
.ps dd { font-size: 0.98rem; }

/* ---------- One statement per product ---------- */
.scene p.prod-say { margin-top: 12px; font-size: 1.04rem; color: var(--ink-2); max-width: 32em; }
.scene .stat { margin-top: 20px; }
.scene .exhibit { margin-top: 26px; }
.pp-say { margin-top: 14px; font-size: 1.1rem; line-height: 1.5; color: var(--ink-2); max-width: 32em; text-wrap: pretty; }

/* gate entry: mobile capture */
.device .cam-view { margin: 0; min-height: 0; padding: 22px 14px; box-shadow: none; }
.dv-shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 10px 13px; }
.dv-shots i { font-style: normal; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.06em; text-transform: uppercase; text-align: center; padding: 6px 0; border: 1.25px solid var(--ink); }
.dv-shots i.on { border-color: var(--red); color: var(--red); }

/* product and agent names in red (under review) */
.scene h2.prod, .pp-head h1 { color: var(--red); }

/* engagement modes as their own sheet */
#engage .modes { margin-top: 0; }
.mode p.mode-def { color: var(--ink); font-weight: 500; font-size: 1.15rem; line-height: 1.35; margin-bottom: 10px; }

/* ---------- Products and agents menu ---------- */
.nav-links { align-items: center; }
.nav-dd { position: relative; display: flex; align-items: center; height: 60px; }
.nav-dd > button { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); background: none; border: 0; border-bottom: 1.5px solid transparent; padding: 6px 0; cursor: pointer; }
.nav-dd > button .caret { width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.nav-dd.open > button, .nav-dd > button:hover { color: var(--ink); border-color: var(--red); }
.nav-dd-panel { display: none; position: absolute; top: 100%; left: -24px; z-index: 60; width: min(660px, calc(100vw - 2 * var(--pad))); grid-template-columns: 1fr 1fr; background: var(--paper); border: 1.5px solid var(--ink); border-top: 0; box-shadow: 6px 6px 0 rgba(21, 33, 44, 0.14); }
.nav-dd.open .nav-dd-panel { display: grid; }
@media (hover: hover) and (min-width: 981px) {
    .nav-dd:hover .nav-dd-panel { display: grid; }
    .nav-dd:hover > button { color: var(--ink); border-color: var(--red); }
}
.dd-col { padding: 18px 10px 12px; }
.dd-col + .dd-col { border-left: 1px solid var(--ink); }
.dd-col > .label { display: block; padding: 0 14px 10px; }
.nav-dd-panel a { display: flex; align-items: flex-start; gap: 12px; padding: 9px 14px; text-decoration: none; border: 0; font-family: var(--body); font-size: inherit; letter-spacing: 0; text-transform: none; color: var(--ink); }
.nav-dd-panel a:hover { background: var(--paper-2); border: 0; }
.nav-dd-panel a .mk { flex: none; width: 10px; height: 10px; margin-top: 6px; border: 1.5px solid var(--ink); border-radius: 50%; }
.nav-dd-panel a .mk.sq { border-radius: 0; background: var(--ink); }
.nav-dd-panel a b { display: block; font-family: var(--display); font-weight: 500; font-size: 1.15rem; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.15; }
.nav-dd-panel a:hover b, .nav-dd-panel a[aria-current] b { color: var(--red); }
.nav-dd-panel a em { font-family: var(--mono); font-style: normal; font-size: 9px; letter-spacing: 0.12em; color: var(--red); margin-left: 10px; vertical-align: 2px; }
.nav-dd-panel a small { display: block; font-size: 12.5px; line-height: 1.35; color: var(--ink-3); margin-top: 1px; }
@media (max-width: 980px) {
    .nav-links { display: flex; }
    .nav-links > a { display: none; }
    .nav-dd { position: static; }
    .nav-dd-panel { left: 0; right: 0; width: auto; max-height: calc(100vh - 60px - 2 * var(--frame)); overflow-y: auto; border-left: 0; border-right: 0; border-bottom: 1.5px solid var(--ink); box-shadow: none; }
}
@media (max-width: 640px) {
    .nav-dd-panel { grid-template-columns: 1fr; }
    .dd-col + .dd-col { border-left: 0; border-top: 1px solid var(--ink); }
    .nav-dd > button { font-size: 10.5px; letter-spacing: 0.08em; }
    nav .btn.ghost { padding: 8px 10px; font-size: 10px; letter-spacing: 0.08em; }
}
.nav-dd > button { white-space: nowrap; }
@media (max-width: 640px) {
    .nav-dd .dd-long { display: none; }
    .nav-inner { gap: 12px; }
}

/* ---------- Bill of materials ---------- */
.bom { width: 100%; border-collapse: collapse; border: 1.5px solid var(--ink); background: var(--paper); }
.bom thead th { font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); text-align: left; padding: 10px 16px; background: var(--paper-2); border-bottom: 1.5px solid var(--ink); }
.bom td, .bom tbody th { padding: 12px 16px; text-align: left; vertical-align: middle; border-top: 1px solid var(--hair); }
.bom tr.g td, .bom tr.g th { border-top: 1px solid var(--ink); }
.bom tbody tr:first-child td, .bom tbody tr:first-child th { border-top: 0; }
.bom .bom-dept { vertical-align: top; border-right: 1px solid var(--ink); width: 21%; font-weight: 400; }
.bom .bom-dept span { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; color: var(--ink-3); margin-bottom: 2px; }
.bom .bom-dept b { font-family: var(--display); font-weight: 500; font-size: 1.2rem; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.15; }
.bom-item { width: 64px; }
.bom-item b { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 5px; font-family: var(--mono); font-size: 10.5px; font-weight: 500; border: 1.5px solid var(--ink); border-radius: 50%; }
.bom-item b.sq { border-radius: 0; }
.bom-name a { font-family: var(--display); font-weight: 500; font-size: 1.3rem; letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; color: var(--red); line-height: 1.15; }
.bom-name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.bom-name small { display: block; font-size: 13.5px; color: var(--ink-2); margin-top: 1px; }
.bom-st { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.bom-st.red { color: var(--red); }
.bom-go { text-align: right !important; white-space: nowrap; }
.bom-go a { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; color: var(--ink); border-bottom: 1.5px solid var(--ink); padding-bottom: 2px; }
.bom-go a:hover { color: var(--red); border-color: var(--red); }
.bom tbody tr:hover td { background: rgba(21, 33, 44, 0.035); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 980px) {
    .bom .bom-dept { width: 26%; }
    .bom thead th:nth-child(5), .bom-status { display: none; }
}
@media (max-width: 640px) {
    .bom thead { display: none; }
    .bom, .bom tbody { display: block; }
    .bom tr { display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 0 10px; padding: 10px 14px; border-top: 1px solid var(--hair); }
    .bom tr.g { border-top: 1px solid var(--ink); }
    .bom tbody tr:first-child { border-top: 0; }
    .bom td, .bom tbody th, .bom tr.g td, .bom tr.g th { border: 0; padding: 0; }
    .bom .bom-dept { grid-column: 1 / -1; width: auto; border: 0; display: flex; gap: 8px; align-items: baseline; margin-bottom: 8px; }
    .bom .bom-dept b { font-size: 1rem; color: var(--ink-2); }
    .bom-type { display: none; }
    .bom-item { width: auto; }
}

/* one "working with Kwartz" sheet: modes, then how it starts */
#work .modes { margin-top: 0; }
.work-sub { display: block; margin: 56px 0 22px; }
#work .steps + .cta-box { margin-top: 64px; }

/* ---------- Approach page ---------- */
.ap-head { padding: 64px 0 76px; }
.ap-head .sheet-no { display: inline-block; }
.ap-head h1 { font-size: clamp(3rem, 6.4vw, 5.6rem); margin: 24px 0 30px; max-width: 12em; }
.ap-head .lead { font-size: 1.35rem; color: var(--ink); max-width: 34em; }
.ap-head .lead + p { margin-top: 16px; font-size: 1.12rem; color: var(--ink-2); max-width: 41em; text-wrap: pretty; }
.ap-step { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 4vw, 72px); align-items: center; }
.ap-step .stop { margin-bottom: 18px; }
.ap-step p { margin-top: 18px; font-size: 1.12rem; color: var(--ink-2); max-width: 31em; text-wrap: pretty; }
.ap-close { font-size: 1.35rem; max-width: 34em; text-wrap: pretty; }
@media (max-width: 980px) { .ap-step { grid-template-columns: 1fr; } .ap-head { padding: 44px 0 52px; } }

/* Animated drawings. Static by default; motion starts when the figure is in view. */
.fig { border: 1.5px solid var(--ink); background: var(--paper); margin: 0; }
.fig figcaption { display: flex; justify-content: space-between; gap: 12px; padding: 7px 12px; border-bottom: 1px solid var(--ink); background: var(--paper-2); font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; }
.fig figcaption span:last-child { color: var(--ink-3); text-align: right; }
.fig svg { display: block; width: 100%; height: auto; padding: 14px; }
.fig text { font-family: var(--mono); font-size: 10px; letter-spacing: 0.04em; fill: var(--ink); }
.fig .t2 { fill: var(--ink-3); }
.fig .tr { fill: var(--red); }
.fig .td { font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: 0.08em; }
.fig .k { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.fig .h { fill: none; stroke: var(--ink); stroke-width: 0.9; }
.fig .gi { fill: var(--paper); }
.fig .bx { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.fig .b2 { fill: var(--paper-2); stroke: var(--ink); stroke-width: 1.5; }
.fig .r { fill: none; stroke: var(--red); stroke-width: 1.5; }
.fig .rf { fill: var(--red); }
.fig .inkf { fill: var(--ink); }
.fig .dsh { stroke-dasharray: 5 4; }
.fig .thin { stroke-width: 0.9; }
.fig .cl { fill: none; stroke: var(--ink-3); stroke-width: 0.75; stroke-dasharray: 12 3 2 3; }
.fig .vl { fill: var(--paper); stroke: var(--ink); stroke-width: 1.25; stroke-linejoin: round; }
.fig .pko { fill: var(--paper); stroke: var(--red); stroke-width: 1.5; }
.fig .tkp { stroke-width: 1.1; }
.fig .gt { fill: none; stroke: var(--ink); stroke-width: 4; stroke-dasharray: 2.5 2.527; }
.fig .tick { fill: none; stroke: var(--paper); stroke-width: 1.5; }
.fig .march { stroke-dasharray: 3 4; }
.fig .bar { fill: var(--ink); }
.fig .dot { fill: var(--ink); }
.fig .lock { stroke-dasharray: 5 3; }
.fig text.lock { stroke: none; }
.fig .ring { stroke-dasharray: 3 5; }
.fig .tagb { fill: var(--paper); stroke: var(--ink); stroke-width: 1.25; }
.fig .tagb.red { stroke: var(--red); }
.fig .pulse, .fig .learn { fill: none; stroke: var(--red); stroke-width: 2.5; stroke-dasharray: 0.12 1; opacity: 0; }
.fig .gear, .fig .ring, .fig .bar { transform-box: fill-box; transform-origin: center; }

@media (prefers-reduced-motion: no-preference) {
    .fig.on .a-in { animation: fg-in 0.5s ease-out both; animation-delay: var(--d, 0s); }
    .fig.on .a-draw { stroke-dasharray: 1; animation: fg-draw 0.7s cubic-bezier(.6,.1,.2,1) both; animation-delay: var(--d, 0s); }
    .fig.on .a-valve { animation: fg-valve 0.35s ease-out both; animation-delay: var(--d, 0s); }
    .fig.on .pk { animation: fg-pk 6s linear infinite both; animation-delay: var(--d, 0s); }

    .fig.on .march { animation: fg-march 0.7s linear infinite; }
    .fig.on .gear { animation: fg-spin 4s linear infinite; }
    .fig.on .tin { animation: fg-tin 4.5s linear infinite both; animation-delay: var(--d, 0s); }
    .fig.on .tout { animation: fg-tout 4.5s linear infinite both; animation-delay: var(--d, 0s); }
    .fig.on .st { animation: fg-st 4.5s linear infinite; animation-delay: var(--d, 0s); }
    .fig.on .ck { animation: fg-ck 4.5s linear infinite both; animation-delay: var(--d, 0s); }

    .fig.on .scan { animation: fg-scan 1.6s ease-in-out infinite alternate; }
    .fig.on .fld { stroke-dasharray: 1; animation: fg-fld 3.2s ease-in-out infinite both; animation-delay: var(--d, 0s); }
    .fig.on .bar { animation: fg-bar 1.1s ease-in-out infinite; animation-delay: var(--d, 0s); }
    .fig.on .belt { animation: fg-belt 2.4s linear infinite; }
    .fig.on .lock { animation: fg-lock 2.4s linear infinite; }
    .fig.on .dot { animation: fg-dot 1s ease-in-out infinite; animation-delay: var(--d, 0s); }
    .fig.on .rep { animation: fg-rep 3.2s linear infinite; }
    .fig.on .ring { animation: fg-spin 14s linear infinite; }
    .fig.on .pulse { animation: fg-pulse 6s linear infinite both; animation-delay: var(--d, 0s); }
    .fig.on .ck3 { animation: fg-ck3 6s linear infinite both; animation-delay: var(--d, 0s); }

    .fig.on .hand { animation: fg-hand 10s linear infinite both; }
    .fig.on .fl { animation: fg-flash 10s linear infinite; animation-delay: var(--d, 0s); }
    .fig.on .r1 { animation: fg-r1 10s linear infinite both; }
    .fig.on .r2 { animation: fg-r2 10s linear infinite both; }
    .fig.on .r3 { animation: fg-r3 10s linear infinite both; }
    .fig.on .learn { animation: fg-learn 10s linear infinite both; }

    .fig.off * { animation-play-state: paused !important; }
}

@keyframes fg-in { from { opacity: 0; } }
@keyframes fg-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fg-valve { from { fill: var(--red); } to { fill: var(--paper); } }
@keyframes fg-pk {
    0% { opacity: 0; transform: translateX(0); }
    3% { opacity: 1; transform: translateX(0); }
    20% { opacity: 1; transform: translateX(var(--dx)); }
    23%, 100% { opacity: 0; transform: translateX(var(--dx)); }
}
@keyframes fg-march { to { stroke-dashoffset: -7; } }
@keyframes fg-spin { to { transform: rotate(360deg); } }
@keyframes fg-tin {
    0% { opacity: 0; transform: translateX(0); }
    4% { opacity: 1; transform: translateX(0); }
    30% { opacity: 1; transform: translateX(72px); }
    31%, 100% { opacity: 0; transform: translateX(72px); }
}
@keyframes fg-tout {
    0%, 44% { opacity: 0; transform: translateX(0); }
    45% { opacity: 1; transform: translateX(0); }
    72% { opacity: 1; transform: translateX(76px); }
    76%, 100% { opacity: 0; transform: translateX(76px); }
}
@keyframes fg-st { 0%, 28% { stroke: var(--ink); } 32%, 44% { stroke: var(--red); } 48%, 100% { stroke: var(--ink); } }
@keyframes fg-ck { 0%, 73% { opacity: 0; } 77%, 97% { opacity: 1; } 100% { opacity: 0; } }
@keyframes fg-scan { to { transform: translateY(34px); } }
@keyframes fg-fld { 0% { stroke-dashoffset: 1; } 25%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 1; } }
@keyframes fg-bar { 0%, 100% { transform: scaleY(0.3); } 50% { transform: scaleY(1); } }
@keyframes fg-belt { to { transform: translateX(40px); } }
@keyframes fg-lock { 0%, 36% { opacity: 0.2; } 44%, 60% { opacity: 1; } 68%, 100% { opacity: 0.2; } }
@keyframes fg-dot { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-3px); } }
@keyframes fg-rep { 0%, 45% { opacity: 0; } 55%, 95% { opacity: 1; } 100% { opacity: 0; } }
@keyframes fg-pulse {
    0% { stroke-dashoffset: 0.12; opacity: 1; }
    20% { stroke-dashoffset: -1; opacity: 1; }
    20.1%, 100% { stroke-dashoffset: -1; opacity: 0; }
}
@keyframes fg-ck3 { 0%, 17% { opacity: 0; } 21%, 70% { opacity: 1; } 80%, 100% { opacity: 0; } }
@keyframes fg-hand {
    0% { opacity: 0; transform: translate(0, 0); }
    2% { opacity: 1; transform: translate(0, 0); }
    5% { transform: translate(0, 23px); }
    15% { transform: translate(116px, 23px); }
    18% { opacity: 1; transform: translate(116px, 0); }
    21%, 100% { opacity: 0; transform: translate(116px, 0); }
}
@keyframes fg-flash { 0% { stroke: var(--red); stroke-width: 3; } 9%, 100% { stroke: var(--ink); stroke-width: 1.5; } }
@keyframes fg-r1 { 0%, 20% { opacity: 0; } 24%, 96% { opacity: 1; } 100% { opacity: 0; } }
@keyframes fg-r2 { 0%, 38% { opacity: 0; } 42%, 96% { opacity: 1; } 100% { opacity: 0; } }
@keyframes fg-r3 { 0%, 56% { opacity: 0; } 60%, 96% { opacity: 1; } 100% { opacity: 0; } }
@keyframes fg-learn {
    0%, 66% { stroke-dashoffset: 0.12; opacity: 1; }
    88% { stroke-dashoffset: -1; opacity: 1; }
    88.1%, 100% { stroke-dashoffset: -1; opacity: 0; }
}
.sheet-head .work-link { grid-column: 2; justify-self: start; }
@media (max-width: 640px) { .sheet-head .work-link { grid-column: 1; } }
@media (max-width: 640px) {
    .fig svg { padding: 8px 4px; }
    .fig figcaption span:last-child { display: none; }
}

/* generated files shown as a row of tiles (export documents) */
.gen-files { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 20px 10px 16px; }
.gen-files .file { position: relative; width: auto; left: auto; top: auto; }
.gen-files .file i.p { background: var(--red); border-color: var(--red); color: var(--paper); }
@media (max-width: 640px) { .gen-files { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 8px; } }

/* metric against target and goal (HAWK) */
.fc .mline { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.fc .mtgt { fill: none; stroke: var(--red); stroke-width: 1.25; stroke-dasharray: 6 4; }
.fc .mgoal { fill: none; stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 2 4; }
.fc .md { fill: var(--ink); stroke: #fff; stroke-width: 1.5; }
.fc .md.flag { fill: var(--red); }
.fc .mt { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; fill: var(--red); }

/* ---------- About page ---------- */
.ap-head .lead + .text-link { display: inline-block; margin-top: 26px; }
.people { margin-top: 0; }
.person h3 { margin-bottom: 12px; }
.person .text-link { display: inline-block; margin-top: 18px; }
.person.has-photo { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 26px; align-items: start; }
.person-photo { width: 120px; height: 120px; object-fit: cover; border: 1.5px solid var(--ink); filter: grayscale(0.55) sepia(0.18) saturate(0.9) contrast(1.04); }
@media (max-width: 640px) { .person.has-photo { grid-template-columns: 1fr; gap: 16px; } .person-photo { width: 96px; height: 96px; } }
.ab-text { max-width: 41em; margin-top: 8px; }
.ab-text p { font-size: 1.12rem; color: var(--ink-2); text-wrap: pretty; }
.ab-text p + p { margin-top: 18px; }
.ab-text h3 { font-size: 1.5rem; margin: 36px 0 10px; }
.modes.people + .ab-text { margin-top: 0; }
.person p + p { margin-top: 14px; }
.person-links { margin-top: 18px; }
.person-links .text-link { display: inline-block; }
.person-links .sep { color: var(--ink-3); margin: 0 6px; }
.ab-text a:not(.text-link) { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--red); }
.ap-step.vis { align-items: start; }
.ap-step.vis .fig { position: sticky; top: 96px; }
.ap-step.vis .ab-text { margin-top: 0; }
@media (max-width: 980px) { .ap-step.vis .fig { position: static; } }
.ab-text b, .person p b, .ap-head p b { font-weight: 600; color: var(--ink); }

/* ---------- Print (the downloadable PDF is rendered from this) ---------- */
.print-only { display: none; }
@media print {
    @page { size: A4; margin: 14mm 16mm 16mm; }
    html { scroll-padding-top: 0; background-color: var(--paper); }
    body { padding: 0; font-size: 11pt; line-height: 1.5; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    nav, .zone, .btn, .pdf-link, #kw-theme-panel, footer { display: none !important; }
    .print-only { display: block; font-family: var(--mono); font-size: 8.5pt; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 18px; }
    .container { max-width: none; padding: 0; }
    .ap-head { padding: 0 0 28px; }
    .ap-head h1 { font-size: 34pt; margin: 14px 0 16px; }
    .ap-head .lead { font-size: 14pt; }
    .ap-head .lead + p, .ab-text p, .ap-step p, .person p { font-size: 11pt; }
    .sheet { padding: 22px 0; border-top: 1px solid var(--hair); }
    .sheet-head { margin-bottom: 22px; gap: 8px 24px; }
    .sheet-head h2 { font-size: 22pt; }
    .modes.people { grid-template-columns: 1fr; }
    .mode + .mode { border-left: 0; border-top: 1px solid var(--ink); }
    .person.has-photo { grid-template-columns: 96px minmax(0, 1fr); gap: 20px; }
    .person-photo { width: 96px; height: 96px; }
    .mode h3 { font-size: 16pt; }
    .ap-step { grid-template-columns: 1fr; gap: 20px; }
    .ap-step.vis .fig { position: static; max-width: 118mm; }
    .fig, .person, .cta-box, .sheet-head { break-inside: avoid; }
    .cta-box { margin-top: 28px; padding: 22px 26px; grid-template-columns: 1fr; }
    .cta-box::before { display: none; }
    .cta-box h2 { font-size: 18pt; }
    .cta-box .fine { text-align: left; font-size: 9pt; }
    a { text-decoration: none; }
    .ab-text a:not(.text-link) { text-decoration: none; }
    .person-links .text-link::after { content: ""; }
}
.modes.team { grid-template-columns: repeat(4, 1fr); }
.modes.team .person { padding: 22px 22px 24px; }
.modes.team .person.has-photo { grid-template-columns: 1fr; gap: 16px; }
.modes.team .person-photo { width: 96px; height: 96px; }
.modes.team .person h3 { font-size: 1.5rem; margin-bottom: 8px; }
.modes.team .person p { font-size: 0.98rem; }
@media (max-width: 980px) { .modes.team { grid-template-columns: 1fr 1fr; } .modes.team .mode:nth-child(3) { border-left: 0; } .modes.team .mode:nth-child(n+3) { border-top: 1px solid var(--ink); } }
@media (max-width: 640px) { .modes.team { grid-template-columns: 1fr; } .modes.team .mode + .mode { border-left: 0; border-top: 1px solid var(--ink); } }
.works { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.works .kchip { text-decoration: none; font-size: 9.5px; padding: 3px 8px 3px 7px; }
.works .kchip:hover { border-color: var(--red); color: var(--red); }
.works .kchip.product:hover { background: var(--red); color: var(--paper); }
/* dropdown grouped by department */
.nav-dd-panel.by-dept { width: min(960px, calc(100vw - 2 * var(--pad))); grid-template-columns: 1fr 1fr 1fr; }
.by-dept .dd-col { padding: 10px 8px 10px; }
.dd-grp + .dd-grp { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--hair); }
.dd-grp > .label { display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px; }
.dd-grp > .label b { display: inline-grid; place-items: center; width: 16px; height: 16px; font-family: var(--display); font-weight: 600; font-size: 10px; letter-spacing: 0; background: var(--red); color: var(--paper); }
.by-dept a { padding: 7px 14px; }
@media (max-width: 980px) { .nav-dd-panel.by-dept { grid-template-columns: 1fr; } }
