/* Kamino: site styles. Monochrome, Host Grotesk, real product screens. */

:root {
  --ink: #141414;
  --ink-2: #1B1B1B;
  --paper: #FFFFFF;
  --stone: #F3F2EF;
  --grey-1: #4A4A4A;
  --grey-2: #6B6B6B;
  --grey-3: #9A9A9A;
  --grey-4: #C4C4C4;
  --line: #E2E1DD;
  --line-dark: #2C2C2C;

  --font: 'Host Grotesk', -apple-system, 'Helvetica Neue', Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Bands ---------- */
.band { padding: clamp(88px, 11vw, 168px) 0; overflow: hidden; }
.band--ink { background: var(--ink); color: var(--paper); }
.band--stone { background: var(--stone); }
.band--flush { padding-top: 0; }

/* ---------- Type ---------- */
.h-xl { font-size: clamp(42px, 5.6vw, 84px); line-height: 1.02; font-weight: 400; letter-spacing: -0.03em; }
.h-lg { font-size: clamp(32px, 3.9vw, 58px); line-height: 1.06; font-weight: 400; letter-spacing: -0.025em; }
.h-md { font-size: clamp(22px, 2vw, 28px); line-height: 1.2; font-weight: 400; letter-spacing: -0.015em; }
.lede { font-size: clamp(18px, 1.45vw, 21px); line-height: 1.5; color: var(--grey-2); max-width: 34em; }
.band--ink .lede, .hero .lede { color: var(--grey-3); }
.eyebrow { font-size: 15px; color: var(--grey-2); }
.band--ink .eyebrow, .hero .eyebrow { color: var(--grey-3); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: rgba(20, 20, 20, 0.94);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-dark); color: var(--paper);
}
.nav__in { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand__mark { width: 26px; height: 26px; }
.brand__word { width: 104px; height: auto; }
.nav__links { display: flex; gap: 32px; margin-left: auto; }
.nav__link { font-size: 15px; color: var(--grey-3); transition: color .2s; }
.nav__link:hover, .nav__link.is-active { color: var(--paper); }
.nav__link--mobile { display: none; }
.nav__cta { margin-left: 8px; }
.nav__burger {
  display: none; margin-left: auto; width: 40px; height: 40px; padding: 0;
  background: none; border: 1px solid var(--line-dark); cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav__burger span { display: block; width: 16px; height: 1px; background: var(--paper); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 22px;
  font: 500 15px/1 var(--font); border: 1px solid currentColor; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn--sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn--light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--light:hover { background: transparent; color: var(--paper); }
.btn--ghost { color: var(--paper); border-color: #4A4A4A; }
.btn--ghost:hover { border-color: var(--paper); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.more { display: inline-flex; gap: 8px; justify-self: start; font-size: 16px; font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.more::after { content: '\2192'; transition: transform .2s; }
.more:hover::after { transform: translateX(4px); }

/* ---------- Hero ---------- */
.hero { background: var(--ink); color: var(--paper); }
.hero__in {
  min-height: calc(100svh - var(--nav-h));
  display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: clamp(32px, 6vw, 96px);
  padding-top: 72px; padding-bottom: 72px;
}
.hero__copy { display: grid; gap: 28px; }
.hero__mark { width: min(100%, 440px); justify-self: end; }
.hero--page .hero__in { min-height: 0; grid-template-columns: 1fr; padding-top: clamp(112px, 13vw, 184px); padding-bottom: clamp(56px, 7vw, 96px); }
.hero--page .hero__copy { max-width: 60rem; }

/* ---------- Product screens ---------- */
.shot {
  width: 100%; height: auto; background: var(--paper);
  border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .28), 0 2px 6px rgba(0, 0, 0, .04);
}
.band--ink .shot, .hero .shot { border-color: #333; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .7); }

/* Section: headline + line above a wide screen */
.feature { display: grid; gap: clamp(40px, 5vw, 72px); }
.feature__head { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; }
.feature__head .lede { justify-self: end; }

/* Section: text column with the screen bleeding off the page edge */
.bleed { display: grid; grid-template-columns: minmax(280px, 0.8fr) 1.6fr; gap: clamp(40px, 5vw, 80px); align-items: center; }
.bleed__copy { display: grid; gap: 24px; align-content: center; }
.bleed__media { margin-right: calc(-1 * var(--gutter) - max(0px, (100vw - var(--max)) / 2)); }
.bleed__media .shot { border-top-right-radius: 0; border-bottom-right-radius: 0; border-right: 0; }
.bleed--left { grid-template-columns: 1.6fr minmax(280px, 0.8fr); }
.bleed--left .bleed__media { margin-right: 0; margin-left: calc(-1 * var(--gutter) - max(0px, (100vw - var(--max)) / 2)); order: -1; }
.bleed--left .bleed__media .shot { border-radius: 0 10px 10px 0; border-right: 1px solid var(--line); border-left: 0; }
.band--ink .bleed--left .bleed__media .shot { border-right-color: #333; }

/* Statements: large single lines separated by rules */
.statements { border-top: 1px solid var(--line); }
.band--ink .statements { border-color: var(--line-dark); }
.statement {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: baseline;
  padding: clamp(28px, 3.5vw, 48px) 0; border-bottom: 1px solid var(--line);
}
.band--ink .statement { border-color: var(--line-dark); }
.statement p { color: var(--grey-2); font-size: clamp(17px, 1.4vw, 20px); }
.band--ink .statement p { color: var(--grey-3); }

/* Large grey sentence with ink emphasis */
.big { font-size: clamp(30px, 4.2vw, 62px); line-height: 1.1; font-weight: 300; letter-spacing: -0.03em; color: var(--grey-4); max-width: 20em; }
.big em { font-style: normal; color: var(--ink); }
.band--ink .big { color: #5E5E5E; }
.band--ink .big em { color: var(--paper); }

/* Phases (approach) */
.phases { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-dark); }
.phase { padding: 32px 32px 0 0; display: grid; gap: 10px; align-content: start; }
.phase + .phase { padding-left: 32px; border-left: 1px solid var(--line-dark); }
.phase__when { font-size: 15px; color: var(--grey-3); }
.phase p { color: var(--grey-3); }

/* Two plain lists side by side (approach roles) */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); }
.pair h3 { margin-bottom: 20px; }
.pair li { padding: 18px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px; }
.pair li span { color: var(--grey-2); }

/* Next-page link row */
.next { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 40px 0; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.next__go { font-size: 28px; transition: transform .2s; }
.next:hover .next__go { transform: translateX(6px); }

/* CTA */
.cta { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end; }
.cta .btns { justify-content: flex-end; }

/* Contact */
.contact { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: end; }
.contact__rows li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line-dark); }
.contact__rows li span:first-child { color: var(--grey-3); }

/* Footer */
.foot { background: var(--ink); color: var(--grey-3); border-top: 1px solid var(--line-dark); padding: 64px 0 40px; font-size: 15px; }
.foot__in { display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; }
.foot__links { display: flex; gap: 28px; flex-wrap: wrap; }
.foot__links a:hover { color: var(--paper); }
.foot .brand__word { width: 120px; }
.foot__base { margin-top: 48px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--grey-2); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; gap: 0; position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--ink); border-bottom: 1px solid var(--line-dark); padding: 8px var(--gutter) 20px;
  }
  .nav.is-open .nav__link { padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--line-dark); }
  .nav.is-open .nav__link--mobile { display: block; }
  .hero__in { grid-template-columns: 1fr; min-height: 0; }
  .hero__mark { justify-self: start; width: min(44vw, 180px); order: -1; }
  .feature__head, .bleed, .bleed--left, .statement, .cta, .contact, .pair { grid-template-columns: 1fr; }
  .feature__head .lede { justify-self: start; }
  .bleed__media, .bleed--left .bleed__media { margin-right: calc(-1 * var(--gutter)); margin-left: 0; order: 0; }
  .bleed--left .bleed__media .shot { border-radius: 10px 0 0 10px; border-left: 1px solid var(--line); border-right: 0; }
  .statement { gap: 8px; }
  .phases { grid-template-columns: 1fr 1fr; }
  .phase:nth-child(3) { padding-left: 0; border-left: 0; }
  .phase:nth-child(n+3) { margin-top: 32px; border-top: 1px solid var(--line-dark); }
  .cta .btns { justify-content: flex-start; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .phases { grid-template-columns: 1fr; }
  .phase, .phase + .phase { padding: 24px 0; border-left: 0; margin-top: 0; }
  .phase + .phase { border-top: 1px solid var(--line-dark); }
  .pair li, .contact__rows li { grid-template-columns: 1fr; gap: 4px; }
  .shot { border-radius: 6px; }
}

/* ---------- Illustrated hero and concept tiles ---------- */
.hero--light { background: var(--paper); color: var(--ink); }
.hero--light .lede, .hero--light .eyebrow { color: var(--grey-2); }
.hero__in--illus { grid-template-columns: 1fr 1.35fr; min-height: calc(100svh - var(--nav-h)); }
.hero__illus { width: 100%; height: auto; }
.concepts { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 3vw, 48px); }
.concept { display: grid; gap: 14px; align-content: start; }
.concept img { width: 100%; height: 220px; object-fit: contain; object-position: center bottom; margin-bottom: 20px; }
.concept p { color: var(--grey-2); }
@media (max-width: 960px) {
  .hero__in--illus { grid-template-columns: 1fr; min-height: 0; }
  .concepts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) { .concepts { grid-template-columns: 1fr; } }

/* ---------- Application tabs (Metron) ---------- */
.apps__tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-dark); margin-bottom: 32px; }
.apps__tab {
  display: grid; gap: 6px; text-align: left; padding: 18px 20px 18px 0; cursor: pointer;
  background: none; border: 0; border-top: 2px solid transparent; margin-top: -1px;
  font: 400 18px/1.3 var(--font); color: var(--grey-3); transition: color .2s, border-color .2s;
}
.apps__tab:hover { color: var(--paper); }
.apps__tab.is-active { color: var(--paper); border-top-color: var(--paper); }
.apps__n { font-size: 14px; color: var(--grey-2); }
.apps__panel { display: none; }
.apps__panel.is-active { display: block; }
.apps__shot { position: relative; }
.pin {
  position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%;
  background: var(--paper); color: var(--ink); font: 600 14px/30px var(--font); text-align: center;
  box-shadow: 0 0 0 4px rgba(20, 20, 20, .35), 0 6px 18px rgba(0, 0, 0, .45);
}
.legend { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 32px; }
.legend li { display: grid; grid-template-columns: 30px 1fr; gap: 14px; color: var(--grey-3); }
.legend b { width: 26px; height: 26px; border-radius: 50%; background: var(--paper); color: var(--ink); font: 600 13px/26px var(--font); text-align: center; }
.legend strong { display: block; color: var(--paper); font-weight: 500; margin-bottom: 4px; }
@media (max-width: 960px) {
  .apps__tabs { grid-template-columns: 1fr 1fr; }
  .legend { grid-template-columns: 1fr; }
  .pin { width: 22px; height: 22px; margin: -11px 0 0 -11px; font-size: 11px; line-height: 22px; }
}

/* ---------- Harness steps and example note ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 32px; }
.steps li { display: grid; grid-template-columns: 30px 1fr; gap: 14px; color: var(--grey-2); }
.steps b { width: 26px; height: 26px; border-radius: 50%; border: 1.2px solid var(--ink); font: 600 13px/24px var(--font); text-align: center; color: var(--ink); }
.steps strong { display: block; color: var(--ink); font-weight: 500; margin-bottom: 4px; }
.apps__note { margin-top: 16px; font-size: 14px; color: var(--grey-2); }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Metron: halves and deployment steps ---------- */
.halves { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); }
.half { display: grid; gap: 16px; align-content: start; }
.half img { width: 100%; height: 340px; object-fit: contain; margin-bottom: 16px; }
.half p { color: var(--grey-2); max-width: 34em; }
.ticks { display: grid; gap: 0; border-top: 1px solid var(--line); margin-top: 8px; }
.ticks li { padding: 12px 0 12px 22px; border-bottom: 1px solid var(--line); position: relative; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 50%; width: 10px; height: 1px; background: var(--ink); }
.deploy-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); }
.dstep { display: grid; gap: 10px; align-content: start; }
.dstep img { width: 100%; height: 200px; object-fit: contain; object-position: center bottom; margin-bottom: 10px; }
.dstep__n { width: 26px; height: 26px; border-radius: 50%; border: 1.2px solid var(--ink); font: 600 13px/24px var(--font); text-align: center; }
.dstep p { color: var(--grey-2); }
@media (max-width: 960px) { .halves { grid-template-columns: 1fr; } .deploy-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .deploy-steps { grid-template-columns: 1fr; } }
.stack-figure { width: 100%; max-width: 1180px; height: auto; margin: 0 auto; }
@media (max-width: 960px) { .stack-figure { width: 135%; max-width: none; margin-left: -4%; } }

/* ---------- Metron layer explorer ---------- */
.layers { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.layers__svg { width: 100%; height: auto; display: block; }
.layers__svg .lyr { transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.layers__fig[data-active="systems"] .lyr:not([data-layer="systems"]),
.layers__fig[data-active="harness"] .lyr:not([data-layer="harness"]),
.layers__fig[data-active="base"] .lyr:not([data-layer="base"]) { opacity: .16; }
.layers__fig[data-active="systems"] .lyr[data-layer="systems"] { transform: translateY(-26px); }
.layers__fig[data-active="harness"] .lyr[data-layer="systems"] { transform: translateY(-40px); }
.layers__fig[data-active="harness"] .lyr[data-layer="base"] { transform: translateY(26px); }
.layers__fig[data-active="base"] .lyr[data-layer="harness"],
.layers__fig[data-active="base"] .lyr[data-layer="systems"] { transform: translateY(-34px); }
.layers__list { display: grid; border-top: 1px solid var(--line); }
.lyrbtn {
  position: relative; display: grid; gap: 6px; text-align: left; cursor: pointer;
  padding: 24px 0; background: none; border: 0; border-bottom: 1px solid var(--line);
  font: inherit; color: var(--grey-3); transition: color .3s;
}
.lyrbtn__n { font-size: 14px; }
.lyrbtn__t { font-size: clamp(22px, 2vw, 28px); letter-spacing: -0.015em; color: inherit; }
.lyrbtn__body { display: grid; grid-template-rows: 0fr; overflow: hidden; color: var(--grey-2); transition: grid-template-rows .5s ease; font-size: 16px; line-height: 1.55; }
.lyrbtn__body { max-height: 0; transition: max-height .6s ease, margin .6s ease; }
.lyrbtn.is-active { color: var(--ink); }
.lyrbtn.is-active .lyrbtn__body { max-height: 220px; margin-top: 6px; }
.lyrbtn__items { display: block; margin-top: 12px; font-size: 14px; color: var(--ink); }
.lyrbtn__bar { position: absolute; left: 0; bottom: -1px; height: 1px; width: 0; background: var(--ink); }
.lyrbtn.is-active .lyrbtn__bar { animation: lyrbar var(--lyr-dur, 6s) linear forwards; }
.layers.is-manual .lyrbtn.is-active .lyrbtn__bar { animation: none; width: 100%; }
@keyframes lyrbar { from { width: 0; } to { width: 100%; } }
@media (max-width: 960px) { .layers { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .layers__svg .lyr { transform: none !important; transition: opacity .4s linear; } }
.layers__svg .lyr { cursor: pointer; outline: none; }
.layers__fig[data-active] .lyr:hover { opacity: 1; }
.layers__svg .lyr:focus-visible { opacity: 1; }

/* ---------- Home hero: rotating concept drawings ---------- */
.hero__in--rot { grid-template-columns: 0.72fr 1.28fr; gap: clamp(16px, 2.5vw, 40px); }
.hero__in--rot .h-xl { font-size: clamp(40px, 4.6vw, 72px); }
.rot { display: grid; gap: 18px; }
.rot__stage { position: relative; aspect-ratio: 1.42 / 1; }
.rot__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: invert(1); opacity: 0; transform: translateY(10px); transition: opacity .9s ease, transform .9s ease; }
.rot__img.is-active { opacity: 1; transform: none; }
.rot__nav { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-dark); }
.rot__btn { position: relative; display: grid; gap: 4px; text-align: left; padding: 14px 12px 0 0; background: none; border: 0; cursor: pointer; font: 400 15px/1.3 var(--font); color: var(--grey-2); transition: color .3s; }
.rot__btn span { font-size: 13px; color: #555; }
.rot__btn.is-active { color: var(--paper); }
.rot__btn::before { content: ''; position: absolute; left: 0; top: -1px; height: 1px; width: 0; background: var(--paper); }
.rot__btn.is-active::before { animation: lyrbar var(--rot-dur, 5.5s) linear forwards; }
.rot.is-manual .rot__btn.is-active::before { animation: none; width: 100%; }
@media (max-width: 960px) {
  .hero__in--rot { grid-template-columns: 1fr; }
  .rot__stage { aspect-ratio: 1.15 / 1; }
}
@media (prefers-reduced-motion: reduce) { .rot__img { transform: none; transition: opacity .4s linear; } }

/* ---------- Home: headless run trace ---------- */
.trace { background: #0E0E0E; color: #D8D8D8; border: 1px solid #2A2A2A; border-radius: 10px 0 0 10px; border-right: 0; overflow: hidden; font-family: 'IBM Plex Mono', ui-monospace, Menlo, monospace; font-size: 13px; box-shadow: 0 30px 80px -30px rgba(0,0,0,.35); }
.trace__bar { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid #242424; font-family: var(--font); font-size: 13px; color: #9A9A9A; }
.trace__dot { width: 8px; height: 8px; border-radius: 50%; background: #3FB27F; box-shadow: 0 0 0 4px rgba(63,178,127,.15); }
.trace__title { color: #EDEDED; font-weight: 500; }
.trace__run { color: #7A7A7A; }
.trace__mode { margin-left: auto; padding: 2px 8px; border: 1px solid #333; border-radius: 3px; font-size: 12px; color: #BDBDBD; }
.trace__trigger { padding: 14px 18px 6px; color: #8A8A8A; font-size: 12.5px; }
.trace__trigger b { color: #EDEDED; font-weight: 500; }
.trace__rows { list-style: none; margin: 0; padding: 6px 18px 12px; min-height: 340px; }
.trace__rows li { display: grid; grid-template-columns: 72px 82px 150px 1fr 16px; gap: 12px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid #1C1C1C; opacity: 0; transform: translateY(4px); transition: opacity .35s ease, transform .35s ease; }
.trace__rows li.is-in { opacity: 1; transform: none; }
.trace__t { color: #6B6B6B; }
.trace__k { color: #EDEDED; }
.trace__s { color: #9A9A9A; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trace__d { color: #CFCFCF; }
.trace__st { width: 8px; height: 8px; border-radius: 50%; align-self: center; }
.trace__rows li[data-st="hold"] .trace__k, .trace__rows li[data-st="hold"] .trace__d { color: #E0B04B; }
.trace__rows li[data-st="hold"] .trace__st { background: #E0B04B; }
.trace__rows li[data-st="ok"] .trace__st { background: #3FB27F; }
.trace__rows li[data-st="stop"] .trace__k, .trace__rows li[data-st="stop"] .trace__d { color: #E2685F; }
.trace__rows li[data-st="stop"] .trace__st { background: #E2685F; }
.trace__foot { display: flex; justify-content: space-between; gap: 16px; padding: 12px 18px; border-top: 1px solid #242424; font-family: var(--font); font-size: 12px; color: #6B6B6B; }
@media (max-width: 960px) {
  .trace { border-radius: 8px 0 0 8px; font-size: 11.5px; }
  .trace__rows li { grid-template-columns: 58px 70px 1fr 10px; }
  .trace__s { display: none; }
  .trace__rows { min-height: 380px; }
  .trace__foot { flex-direction: column; gap: 4px; }
}

/* ---------- Home: Metron in operation (three pages) ---------- */
.ops__nav { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin-bottom: clamp(40px, 5vw, 64px); }
.ops__btn { position: relative; display: grid; gap: 4px; text-align: left; padding: 16px 16px 0 0; background: none; border: 0; cursor: pointer; font: 400 18px/1.3 var(--font); color: var(--grey-3); transition: color .3s; }
.ops__btn span { font-size: 13px; color: var(--grey-3); }
.ops__btn.is-active { color: var(--ink); }
.ops__btn::before { content: ''; position: absolute; left: 0; top: -1px; height: 1px; width: 0; background: var(--ink); }
.ops__btn.is-active::before { animation: lyrbar var(--ops-dur, 14s) linear forwards; }
.ops.is-manual .ops__btn.is-active::before { animation: none; width: 100%; }
.ops__panel { display: none; }
.ops__panel.is-active { display: block; animation: opsin .6s ease; }
@keyframes opsin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ops__panel .bleed__copy .h-md { font-size: clamp(26px, 2.4vw, 34px); }
.ops__note { margin-top: 28px; font-size: 13px; color: var(--grey-3); }

/* messaging + ERP composition */
.sys { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: center; padding: 40px 0 40px 40px; background: var(--stone); border-radius: 10px 0 0 10px; }
.phone { background: #FFF; border: 1px solid var(--line); border-radius: 28px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0,0,0,.3); height: 520px; display: flex; flex-direction: column; }
.phone__bar { display: flex; align-items: center; gap: 10px; padding: 18px 14px 12px; border-bottom: 1px solid var(--line); font-size: 13px; }
.phone__bar b { display: block; font-weight: 600; }
.phone__bar i { display: block; font-style: normal; color: var(--grey-2); font-size: 11.5px; }
.phone__av { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #FFF; display: grid; place-items: center; font-weight: 600; font-size: 13px; }
.phone__ch { margin-left: auto; font-size: 11px; color: var(--grey-2); border: 1px solid var(--line); border-radius: 3px; padding: 1px 6px; }
.phone__chat { flex: 1; padding: 14px 12px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; background: #F7F6F3; overflow: hidden; }
.msg { flex-shrink: 0; max-width: 84%; background: #FFF; border: 1px solid var(--line); border-radius: 12px 12px 12px 3px; padding: 9px 11px 6px; font-size: 13px; line-height: 1.4; opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s; }
.msg--me { align-self: flex-end; background: var(--ink); color: #FFF; border-color: var(--ink); border-radius: 12px 12px 3px 12px; }
.msg--note { align-self: center; background: transparent; border: 0; color: var(--grey-2); font-size: 11.5px; text-align: center; }
.msg em { display: block; text-align: right; font-style: normal; font-size: 10.5px; opacity: .55; margin-top: 3px; }
.msg__src { display: block; margin-top: 5px; font-size: 11px; color: var(--grey-2); }
.msg:not(.is-in) { display: none; }
.msg.is-in { opacity: 1; transform: none; animation: msgin .4s ease; }
@keyframes msgin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.erp { background: #FFF; border: 1px solid var(--line); border-right: 0; border-radius: 8px 0 0 8px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.25); font-size: 13px; }
.erp__bar { display: flex; gap: 14px; padding: 10px 16px; background: #EDECE8; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--grey-1); }
.erp__bar span:first-child { font-weight: 600; color: var(--ink); }
.erp__body { padding: 18px 20px 20px; }
.erp__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; font-size: 18px; }
.erp__st { font-size: 12px; padding: 3px 9px; border-radius: 3px; background: #EFEFEF; color: var(--grey-1); transition: background .4s, color .4s; }
.erp__st[data-s="draft"] { background: #F6EBD2; color: #8A5B00; }
.erp__st[data-s="ok"] { background: #DDF1E6; color: #1E6B44; }
.erp__fields { display: grid; grid-template-columns: 120px 1fr; margin: 0; }
.erp__fields dt, .erp__fields dd { margin: 0; padding: 8px 0; border-top: 1px solid #EFEEEA; }
.erp__fields dt { color: var(--grey-2); }
.sys:not([data-ready]) .erp__fields dd { color: #C4C4C4; }
@media (max-width: 960px) {
  .ops__nav { grid-template-columns: 1fr; }
  .ops__btn { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .sys { grid-template-columns: 1fr; padding: 24px 0 24px 16px; }
  .phone { height: 460px; max-width: 320px; }
}

/* ---------- Sovereignty: data residency matrix ---------- */
.mx { width: 100%; border-collapse: collapse; font-size: 17px; background: var(--paper); }
.mx th, .mx td { text-align: left; padding: 20px 24px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.mx thead th { font-size: 14px; font-weight: 400; color: var(--grey-2); background: var(--paper); }
.mx tbody th { font-weight: 400; width: 46%; }
.mx td { width: 27%; }
.ck { width: 22px; height: 22px; vertical-align: middle; }
.ck circle { fill: var(--ink); }
.ck path { fill: none; stroke: #FFF; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.no { color: var(--grey-3); }
.mx__n { margin-left: 10px; font-size: 14px; color: var(--grey-2); }
@media (max-width: 700px) {
  .mx { font-size: 14px; }
  .mx th, .mx td { padding: 14px 10px; }
  .mx__n { display: block; margin: 4px 0 0; }
}

/* ---------- Product close-up crops and text steps ---------- */
.crop { aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #FFF; margin-bottom: 16px; box-shadow: 0 20px 40px -24px rgba(0,0,0,.25); }
.crop img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.crop--wide { aspect-ratio: 16 / 10; margin-bottom: 20px; }
.concept .crop img { height: 100%; margin: 0; }
.tsteps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.tsteps li { display: grid; gap: 8px; align-content: start; padding: 24px 24px 0 0; }
.tsteps li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.tsteps b { width: 26px; height: 26px; border-radius: 50%; border: 1.2px solid var(--ink); font: 600 13px/24px var(--font); text-align: center; }
.tsteps strong { font-size: 19px; font-weight: 500; }
.tsteps span { color: var(--grey-2); }
@media (max-width: 960px) { .tsteps { grid-template-columns: 1fr 1fr; } .tsteps li:nth-child(3) { padding-left: 0; border-left: 0; } .tsteps li:nth-child(n+3) { margin-top: 24px; border-top: 1px solid var(--line); } }
@media (max-width: 560px) { .tsteps { grid-template-columns: 1fr; } .tsteps li, .tsteps li + li { padding: 20px 0; border-left: 0; margin: 0; } .tsteps li + li { border-top: 1px solid var(--line); } }
.half .crop img, .concept .crop img { margin: 0; height: 100%; object-fit: cover; }
