/* ==========================================================================
   LeedAB . Commodity Trading Operations
   Institutional financial system: blueprint frame, serif display, mono labels,
   mint accent, generous white. Agricultural read comes from the imagery and
   the data, not from texture.
   ========================================================================== */

:root {
  --white:   #FDFDFB;
  --white-2: #F6F6F2;
  --white-3: #EDEDE8;

  --deep:    #051310;   /* institutional near-black, green cast */
  --deep-2:  #0A1D18;
  --deep-3:  #122A23;

  --ink:     #0B100E;
  --ink-2:   #55605B;
  --ink-3:   #8B948F;
  --ink-4:   #B4BAB6;

  --lt:      #F3F5F3;
  --lt-2:    #A8B5AF;
  --lt-3:    #6C7A74;

  --mint:    #3FBF8F;
  --mint-2:  #7FE3BE;
  --mint-3:  #D8F5EA;
  --amber:   #C08A2E;
  --alert:   #C4603A;

  --line:    rgba(11, 16, 14, 0.10);
  --line-2:  rgba(11, 16, 14, 0.06);
  --line-lt: rgba(243, 245, 243, 0.13);
  --line-lt2:rgba(243, 245, 243, 0.07);

  --sans:  "Geist", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Newsreader", "Times New Roman", Times, serif;
  --mono:  "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gut:   clamp(18px, 4.4vw, 64px);
  --frame: 1312px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg, video { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 400; }
::selection { background: var(--mint-2); color: var(--deep); }
:where(a, button, input, select, summary):focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Blueprint frame. A ruled content column, the way a drawing set is framed.
   -------------------------------------------------------------------------- */

.frame {
  position: relative;
  width: 100%;
  max-width: var(--frame);
  margin: 0 auto;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.frame--dark { border-color: var(--line-lt); }

.pad { padding: 0 clamp(20px, 3.4vw, 48px); }

.sec { position: relative; border-top: 1px solid var(--line); }
.sec--dark { border-color: var(--line-lt); }

/* --------------------------------------------------------------------------
   Type
   -------------------------------------------------------------------------- */

.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 4.4vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.018em;
}
.d2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.7vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.016em;
}
.d2 em { font-style: italic; }

.h3 {
  font-size: clamp(19px, 1.7vw, 23px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.16;
}
.h4 {
  font-size: 16.5px;
  font-weight: 500;
  letter-spacing: -0.022em;
}

.sub {
  font-size: clamp(15.5px, 1.35vw, 18px);
  line-height: 1.5;
  color: var(--ink-2);
  letter-spacing: -0.012em;
}
.desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-2);
  letter-spacing: -0.008em;
}

.label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.label--mint { color: var(--mint); }
.on-dark .label, .sec--dark .label { color: var(--lt-3); }
.on-dark .sub, .sec--dark .sub { color: var(--lt-2); }
.on-dark .desc, .sec--dark .desc { color: var(--lt-2); }
.on-dark .display, .on-dark .d2, .on-dark .h3, .sec--dark .d2, .sec--dark .h3 { color: var(--lt); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.012em;
  line-height: 1;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.btn:hover { background: var(--deep-3); border-color: var(--deep-3); }

.btn--light { background: var(--white); border-color: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--mint-3); border-color: var(--mint-3); }

.btn--outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--outline:hover { background: transparent; border-color: var(--ink); }
.on-dark .btn--outline { color: var(--lt); border-color: var(--line-lt); }
.on-dark .btn--outline:hover { border-color: var(--lt-2); background: transparent; }

.btn--sm { min-height: 36px; padding: 0 15px; font-size: 13.5px; }

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

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 80;
  transition: background 260ms ease, border-color 260ms ease;
  border-bottom: 1px solid transparent;
}
.nav-inner {
  max-width: var(--frame);
  margin: 0 auto;
  padding: 0 clamp(20px, 3.4vw, 48px);
  height: 70px;
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 42px);
}
.brand { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.brand-logo {
  width: 28px;
  height: 28px;
  margin: -5px;
  object-fit: contain;
  flex: 0 0 auto;
}
.brand .brand-logo { transform: translateY(-3px); }
.nav.is-stuck .brand-logo,
.nav.is-open .brand-logo { filter: brightness(0); }
.brand b {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 1;
}
.nav-links { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 30px); }
.nav-links a {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.012em;
  opacity: 0.78;
  transition: opacity 160ms ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 1; }
.nav-cta { margin-left: auto; font-size: 14px; font-weight: 500; letter-spacing: -0.012em; }

/* over the hero */
.nav { color: var(--lt); }
.nav.is-stuck {
  background: rgba(253, 253, 251, 0.9);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border-bottom-color: var(--line);
  color: var(--ink);
}

.nav-toggle { display: none; }
.nav-drawer { display: none; }

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle {
    display: block; position: relative; width: 28px; height: 22px;
    margin-left: auto; padding: 0; background: none; border: 0; color: inherit; cursor: pointer;
  }
  .nav-toggle span {
    position: absolute; left: 2px; right: 2px; height: 1.5px;
    background: currentColor; transition: transform 220ms ease, top 220ms ease;
  }
  .nav-toggle span:nth-child(1) { top: 8px; }
  .nav-toggle span:nth-child(2) { top: 14px; }
  .nav.is-open .nav-toggle span:nth-child(1) { top: 11px; transform: rotate(45deg); }
  .nav.is-open .nav-toggle span:nth-child(2) { top: 11px; transform: rotate(-45deg); }

  .nav.is-open { background: var(--white); color: var(--ink); border-bottom-color: var(--line); }
  .nav-drawer {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    width: 100%;
    height: 100dvh;
    min-height: 100svh;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: clamp(8px, 1.8vh, 14px);
    padding: calc(88px + env(safe-area-inset-top)) 24px max(66px, calc(42px + env(safe-area-inset-bottom)));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--white);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(0.995);
    transition: opacity 240ms ease, visibility 240ms ease, transform 240ms ease;
  }
  .nav.is-open .nav-drawer {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }
  .nav-drawer a {
    display: block;
    width: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: clamp(28px, 7.2vw, 32px);
    font-weight: 400;
    letter-spacing: -0.04em;
    line-height: 1.14;
    text-align: center;
  }
  .nav-drawer a[aria-current="page"] { color: var(--ink-4); }
  .nav-drawer .btn {
    width: min(220px, 72vw);
    margin-top: clamp(10px, 2.2vh, 20px);
    padding-top: clamp(20px, 3.2vh, 30px);
    border-top: 1px solid var(--line);
    border-radius: 0;
  }
  .nav-drawer small {
    position: absolute;
    right: 24px;
    bottom: max(22px, env(safe-area-inset-bottom));
    left: 24px;
    color: var(--ink-4);
    font-size: 11px;
    letter-spacing: -0.01em;
    text-align: center;
  }
  .nav-inner { position: relative; z-index: 2; }

  body.ops-home .nav.is-open {
    background: var(--deep);
    color: var(--lt);
    border-bottom-color: var(--line-lt);
  }
  body.ops-home .nav.is-open .brand-logo { filter: none; }
  body.ops-home .nav-drawer { background: var(--deep); }
  body.ops-home .nav-drawer .btn { border-top-color: var(--line-lt); }
  body.ops-home .nav-drawer small { color: var(--lt-3); }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 96vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 128px clamp(20px, 5vw, 60px) 96px;
  background: var(--deep);
  color: var(--lt);
  overflow: hidden;
}
.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero-art picture,
.hero-art img {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-art img {
  object-fit: cover;
  object-position: 50% center;
}
.hero-veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(62% 48% at 50% 43%, rgba(5, 19, 16, 0.08), rgba(5, 19, 16, 0.52) 100%),
    linear-gradient(180deg, rgba(5, 19, 16, 0.58) 0%, rgba(5, 19, 16, 0.12) 42%, rgba(5, 19, 16, 0.68) 100%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: 1000px; }

.announce {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mint-2);
  margin-bottom: clamp(26px, 4vw, 44px);
}
.hero h1 { color: #FFFDF8; max-width: 22ch; margin: 0 auto; }
.hero-cap {
  display: inline-flex;
  margin-top: clamp(30px, 4vw, 46px);
  border: 1px solid rgba(243, 245, 243, 0.36);
  background: rgba(5, 19, 16, 0.34);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hero-cap input {
  width: clamp(200px, 30vw, 300px);
  padding: 15px 18px;
  border: 0; background: transparent;
  color: var(--lt);
  font-family: var(--sans); font-size: 15px; letter-spacing: -0.012em;
}
.hero-cap input::placeholder { color: rgba(243, 245, 243, 0.5); }
.hero-cap input:focus { outline: none; }
.hero-cap button {
  padding: 0 24px;
  border: 0; cursor: pointer;
  background: var(--white); color: var(--ink);
  font-family: var(--sans); font-size: 15px; font-weight: 500; letter-spacing: -0.012em;
  transition: background 160ms ease;
}
.hero-cap button:hover { background: var(--mint-2); }
@media (max-width: 520px) {
  .hero-art img { object-position: 64% center; }
  .hero-cap { flex-direction: column; width: 100%; }
  .hero-cap input { width: 100%; }
  .hero-cap button { padding: 15px 0; }
}

.hero-note { margin-top: 16px; font-size: 13.5px; color: rgba(243, 245, 243, 0.6); letter-spacing: -0.008em; }
.hero-sub { margin-top: clamp(28px, 3.6vw, 40px); font-size: clamp(14px, 1.15vw, 16px); color: rgba(243, 245, 243, 0.82); letter-spacing: -0.01em; }
.hero-status { color: var(--mint-2); }

/* --------------------------------------------------------------------------
   Marquee strip
   -------------------------------------------------------------------------- */

.marquee {
  background: var(--deep-2);
  border-top: 1px solid var(--line-lt2);
  border-bottom: 1px solid var(--line-lt2);
  overflow: hidden;
}
.marquee-track { display: flex; width: max-content; animation: slide 52s linear infinite; }
.marquee-set { display: flex; flex: 0 0 auto; }
.marquee span {
  padding: 15px 34px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lt-2);
  white-space: nowrap;
}
@keyframes slide { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }

/* --------------------------------------------------------------------------
   Pillars
   -------------------------------------------------------------------------- */

.pillar-lead { padding: clamp(56px, 7vw, 96px) 0 clamp(40px, 4vw, 60px); max-width: 24ch; }

.pillars { display: grid; grid-template-columns: 1fr 1fr; }
.pillars > article {
  padding: clamp(34px, 4vw, 54px) clamp(20px, 3vw, 44px) clamp(44px, 5vw, 70px);
  border-top: 1px solid var(--line);
  position: relative;
  min-height: 300px;
}
.pillars > article:nth-child(odd) { border-right: 1px solid var(--line); }
.pillars > article.is-wide {
  grid-column: 1 / -1;
  border-right: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 60px);
  align-items: center;
  min-height: 0;
}
.pillars > article.is-wide .pillar-art { margin-top: 0; height: auto; justify-content: flex-end; }
.pillars > article.is-wide .mark { max-width: 340px; }
.pillars h3 { max-width: 16ch; }
.pillars .desc { margin-top: 14px; max-width: 40ch; }
.pillar-art { margin-top: 34px; height: 128px; display: flex; align-items: center; }
@media (max-width: 820px) {
  .pillars { grid-template-columns: 1fr; }
  .pillars > article:nth-child(odd) { border-right: 0; }
  .pillars > article.is-wide { grid-template-columns: 1fr; }
  .pillars > article.is-wide .pillar-art { margin-top: 30px; justify-content: flex-start; }
}

/* Small schematic marks. Stroke-only, so fill must be reset explicitly. */
.mark { width: 100%; max-width: 260px; }
.mark line, .mark rect, .mark path, .mark circle, .mark polyline {
  fill: none;
  stroke: var(--ink-4);
  stroke-width: 1;
}
.mark .hi { stroke: var(--mint); }
.mark .fill { fill: var(--mint-3); stroke: none; }

/* --------------------------------------------------------------------------
   Statement band
   -------------------------------------------------------------------------- */

.statement {
  background: var(--white);
  color: var(--ink);
  padding: clamp(56px, 7vw, 100px) clamp(20px, 3vw, 48px) clamp(48px, 5vw, 76px);
}
.statement blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(28px, 3.8vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.018em;
  max-width: 19ch;
  color: var(--ink);
}
.statement blockquote em { font-style: italic; }
.statement-foot {
  margin-top: clamp(30px, 3.6vw, 46px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
}
.statement-foot span {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* --------------------------------------------------------------------------
   Lifecycle tabs
   -------------------------------------------------------------------------- */

.tabs-head { padding: clamp(56px, 7vw, 92px) 0 clamp(30px, 4vw, 44px); text-align: center; }
.tabs-head .d2 { max-width: 20ch; margin: 0 auto; }
.tabs-head .sub { margin: 18px auto 0; max-width: 48ch; }

.tabstrip {
  display: flex;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabstrip::-webkit-scrollbar { display: none; }
.tabstrip a,
.tabstrip button {
  flex: 1 0 auto;
  text-align: center;
  padding: 15px 20px;
  background: none;
  border: 0;
  border-right: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: -0.012em;
  color: var(--ink-3);
  white-space: nowrap;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease;
}
.tabstrip a:last-child, .tabstrip button:last-child { border-right: 0; }
.tabstrip a:hover, .tabstrip button:hover { color: var(--ink); }
.tabstrip button[aria-selected="true"] { color: var(--ink); font-weight: 500; background: var(--white-2); }

.tabpanels { position: relative; }
.tabpanel { display: none; }
.tabpanel.is-on { display: grid; }
.tabpanel {
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(24px, 4vw, 60px);
  align-items: center;
  padding: clamp(40px, 5vw, 72px) clamp(20px, 3vw, 48px) clamp(48px, 6vw, 84px);
  animation: rise 380ms cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) { .tabpanel.is-on { grid-template-columns: 1fr; } }

/* Channels the chase runs across. Logo marks are hotlinked, matching the
   integration marquee on site/product.html. The track is promoted to its own
   layer and the edge fades are static overlays: masking an animating element
   re-rasterises every frame and reads as blur. */
.chanmarq {
  position: relative;
  margin-top: 22px;
  overflow: hidden;
}
.chanmarq::before,
.chanmarq::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 48px;
  z-index: 1;
  pointer-events: none;
}
.chanmarq::before { left: 0; background: linear-gradient(90deg, var(--white), transparent); }
.chanmarq::after { right: 0; background: linear-gradient(270deg, var(--white), transparent); }

.chanmarq-track {
  display: flex;
  width: max-content;
  animation: slide 30s linear infinite;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}
.chanmarq-track:hover { animation-play-state: paused; }
.chanmarq-set { display: flex; flex: 0 0 auto; }
.chan {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  white-space: nowrap;
}
.chan img { width: 16px; height: 16px; object-fit: contain; flex: 0 0 auto; }
.chan b {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink-2);
}

/* The differentiator line: what the incumbent system does, then what we do. */
.vs {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  max-width: 38ch;
  font-size: 13.5px;
  line-height: 1.55;
  letter-spacing: -0.008em;
  color: var(--ink-3);
}
.vs b { color: var(--ink); font-weight: 500; }

.tabpanel .label { margin-bottom: 14px; }
.tabpanel .h3 { max-width: 15ch; }
.tabpanel .desc { margin-top: 14px; max-width: 40ch; }

/* --------------------------------------------------------------------------
   Product artifacts
   -------------------------------------------------------------------------- */

.tilt {
  transform: perspective(1900px) rotateY(-10deg) rotateX(4deg) rotate(0.6deg);
  transform-origin: center left;
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}
.tilt:hover { transform: perspective(1900px) rotateY(-5deg) rotateX(2deg); }
@media (max-width: 900px) { .tilt, .tilt:hover { transform: none; } }

.panel {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -40px rgba(11, 16, 14, 0.5);
  overflow: hidden;
}

/* Square panels carry no lift: the shadow only reads right under a tilt. */
.panel--flat { box-shadow: none; }
.panel-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--white-2);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.panel-bar b { color: var(--ink-2); font-weight: 400; }
.panel-bar > * { min-width: 0; }
.panel-bar > b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.panel-bar > span { flex: 0 0 auto; white-space: nowrap; }
.live { display: inline-flex; align-items: center; gap: 6px; color: var(--mint); }
.live::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--mint); animation: blip 2.4s ease-in-out infinite;
}
@keyframes blip { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }

.grid-tbl { width: 100%; border-collapse: collapse; }
.grid-tbl th {
  text-align: left; padding: 8px 13px;
  font-family: var(--mono); font-size: 9.5px; font-weight: 400;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-4);
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
.grid-tbl td {
  padding: 11px 13px;
  border-bottom: 1px solid var(--line-2);
  font-size: 12.5px; letter-spacing: -0.008em; color: var(--ink-2);
  white-space: nowrap;
}
.grid-tbl tr:last-child td { border-bottom: 0; }
.grid-tbl td b { color: var(--ink); font-weight: 500; }
.grid-tbl .n { font-family: var(--mono); font-size: 11.5px; }
.panel-scroll { overflow-x: auto; }

.tag {
  display: inline-block;
  padding: 3px 7px;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid;
}
.tag--ok   { color: #2E7D5B; background: rgba(63, 191, 143, 0.1); border-color: rgba(63, 191, 143, 0.3); }
.tag--wait { color: #96690F; background: rgba(192, 138, 46, 0.1); border-color: rgba(192, 138, 46, 0.28); }
.tag--flag { color: #A9451F; background: rgba(196, 96, 58, 0.1); border-color: rgba(196, 96, 58, 0.28); }
.tag--idle { color: var(--ink-3); background: rgba(11, 16, 14, 0.04); border-color: var(--line); }

.rows li {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-2);
  font-size: 12.5px; color: var(--ink-2); letter-spacing: -0.008em;
}
.rows li:last-child { border-bottom: 0; }
.rows li > i {
  flex: 0 0 auto; width: 14px; height: 14px;
  display: grid; place-items: center;
  font-style: normal; font-family: var(--mono); font-size: 8px;
  border: 1px solid var(--line);
}
.rows li.ok > i   { color: #2E7D5B; border-color: rgba(63,191,143,0.4); background: rgba(63,191,143,0.1); }
.rows li.wait > i { color: #96690F; border-color: rgba(192,138,46,0.4); background: rgba(192,138,46,0.1); }
.rows li.flag > i { color: #A9451F; border-color: rgba(196,96,58,0.4); background: rgba(196,96,58,0.1); }
.rows li > em {
  margin-left: auto; font-style: normal;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-4); white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Sources
   -------------------------------------------------------------------------- */

.sources { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.sources > div {
  padding: clamp(26px, 3vw, 40px) clamp(16px, 2vw, 28px) clamp(34px, 4vw, 52px);
  border-right: 1px solid var(--line);
}
.sources > div:last-child { border-right: 0; }
.sources h4 {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--mint); margin-bottom: 16px;
}
.sources li { font-size: 13.5px; line-height: 1.45; color: var(--ink-2); padding: 5px 0; letter-spacing: -0.008em; }
@media (max-width: 860px) {
  .sources { grid-template-columns: 1fr 1fr; }
  .sources > div:nth-child(2n) { border-right: 0; }
  .sources > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 480px) {
  .sources { grid-template-columns: 1fr; }
  .sources > div { border-right: 0; border-bottom: 1px solid var(--line); }
}

/* --------------------------------------------------------------------------
   Security
   -------------------------------------------------------------------------- */

.security { padding: clamp(56px, 7vw, 96px) clamp(20px, 3vw, 48px); text-align: center; }
.security .d2 { max-width: 18ch; margin: 0 auto; }
.security .sub { margin: 20px auto 0; max-width: 46ch; }
.security-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(36px, 4vw, 54px);
  border: 1px solid var(--line-lt);
  text-align: left;
}
.security-grid article {
  min-width: 0;
  padding: clamp(22px, 2.5vw, 34px);
  border-right: 1px solid var(--line-lt);
}
.security-grid article:last-child { border-right: 0; }
.security-grid h3 {
  color: var(--lt);
  font-size: 16px;
  line-height: 1.35;
}
.security-grid p {
  margin: 12px 0 0;
  color: var(--lt-3);
  font-size: 13px;
  line-height: 1.65;
}
.security.on-dark { background: var(--deep); color: var(--lt); }

@media (max-width: 700px) {
  .security-grid { grid-template-columns: 1fr; }
  .security-grid article {
    border-right: 0;
    border-bottom: 1px solid var(--line-lt);
  }
  .security-grid article:last-child { border-bottom: 0; }
}

/* --------------------------------------------------------------------------
   CTA + footer
   -------------------------------------------------------------------------- */

.cta { padding: clamp(72px, 9vw, 130px) clamp(20px, 3vw, 48px); text-align: center; }
.cta .d2 { max-width: 17ch; margin: 0 auto; }
.cta .sub { margin: 22px auto 0; max-width: 44ch; }
.cta .actions { justify-content: center; margin-top: 34px; }

.foot { background: var(--deep); color: var(--lt-3); }
.foot-in { padding: clamp(48px, 5vw, 72px) clamp(20px, 3vw, 48px) 30px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 44px); }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-brand b { font-family: var(--serif); font-size: 24px; color: var(--lt); }
.foot-brand p { margin-top: 14px; max-width: 30ch; font-size: 13.5px; line-height: 1.5; }
.foot h5 {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--lt-2); margin-bottom: 14px;
}
.foot li { padding: 5px 0; }
.foot li a { font-size: 13.5px; letter-spacing: -0.008em; transition: color 160ms ease; }
.foot li a:hover { color: var(--lt); }
.foot-base {
  margin-top: clamp(36px, 4vw, 56px); padding-top: 20px;
  border-top: 1px solid var(--line-lt2);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Reveal
   -------------------------------------------------------------------------- */

[data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity 640ms cubic-bezier(0.22,1,0.36,1), transform 640ms cubic-bezier(0.22,1,0.36,1); }
[data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track, .chanmarq-track, .live::before { animation: none; }
  .tabpanel.is-on { animation: none; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .tilt, .tilt:hover { transform: none; }
}

/* --------------------------------------------------------------------------
   Interior pages
   -------------------------------------------------------------------------- */

.page-head {
  padding: clamp(130px, 14vw, 190px) clamp(20px, 3vw, 48px) clamp(50px, 6vw, 80px);
  background: var(--deep);
  color: var(--lt);
  text-align: center;
}
.page-head .d2 { max-width: 20ch; margin: 0 auto; color: #FFFDF8; }
.page-head .sub { margin: 22px auto 0; max-width: 50ch; color: rgba(243,245,243,0.76); }
.page-head .announce { margin-bottom: 22px; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  padding: clamp(48px, 6vw, 84px) clamp(20px, 3vw, 48px);
}
.split > * { min-width: 0; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.stack { display: grid; grid-template-columns: repeat(3, 1fr); }
.stack > div {
  padding: clamp(28px, 3.4vw, 46px) clamp(18px, 2.4vw, 34px) clamp(36px, 4vw, 56px);
  border-right: 1px solid var(--line);
  border-top: 1px solid var(--line);
}
.stack > div:last-child { border-right: 0; }
.stack .label { margin-bottom: 16px; }
.stack .desc { margin-top: 12px; }
@media (max-width: 860px) {
  .stack { grid-template-columns: 1fr; }
  .stack > div { border-right: 0; }
}

.roles { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.roles > article {
  padding: clamp(26px, 3vw, 38px) clamp(18px, 2.2vw, 30px) clamp(32px, 3.6vw, 46px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.roles > article:nth-child(3n) { border-right: 0; }
.roles .label { margin-bottom: 18px; }
.roles .desc { margin-top: 10px; }
@media (max-width: 900px) {
  .roles { grid-template-columns: 1fr 1fr; }
  .roles > article:nth-child(3n) { border-right: 1px solid var(--line); }
  .roles > article:nth-child(2n) { border-right: 0; }
}
@media (max-width: 560px) {
  .roles { grid-template-columns: 1fr; }
  .roles > article { border-right: 0 !important; }
}

.steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.steps > div {
  padding: clamp(26px, 3vw, 40px) clamp(16px, 2vw, 28px) clamp(36px, 4vw, 54px);
  border-right: 1px solid var(--line);
}
.steps > div:last-child { border-right: 0; }
.steps .label { color: var(--mint); margin-bottom: 18px; }
.steps h3 { margin-bottom: 10px; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .steps > div:nth-child(2n) { border-right: 0; }
  .steps > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .steps > div { border-right: 0; border-bottom: 1px solid var(--line); }
}

.form-box { border: 1px solid var(--line); padding: clamp(24px, 3vw, 40px); background: #fff; }

.faq { padding: 0 clamp(20px, 3vw, 48px) clamp(48px, 6vw, 80px); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 22px 40px 22px 0;
  font-size: clamp(16px, 1.5vw, 19px); font-weight: 500; letter-spacing: -0.022em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after, .faq summary::before {
  content: ""; position: absolute; right: 4px; top: 50%;
  width: 11px; height: 1px; background: var(--ink-3);
}
.faq summary::before { transform: rotate(90deg); transition: opacity 200ms ease; }
.faq details[open] summary::before { opacity: 0; }
.faq details > div { padding: 0 clamp(0px, 8vw, 120px) 24px 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); }

/* --------------------------------------------------------------------------
   Legal pages. Long-form policy text uses the same dark masthead, ruled frame,
   serif hierarchy, and restrained mint accents as the marketing pages.
   -------------------------------------------------------------------------- */

.legal-page { background: var(--white); }
.legal-page .legal-head {
  padding: clamp(150px, 17vw, 210px) clamp(20px, 4vw, 64px) clamp(72px, 8vw, 104px);
  background: var(--deep);
  color: var(--lt);
  text-align: center;
}
.legal-head .announce { margin-bottom: 22px; }
.legal-head .d2 { max-width: 18ch; margin: 0 auto; color: #fffdf8; }
.legal-date {
  margin-top: 24px;
  color: var(--lt-3);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  line-height: 1.6;
  text-transform: uppercase;
}
.legal {
  width: min(100%, 820px);
  margin: 0 auto;
  padding: clamp(56px, 7vw, 96px) clamp(24px, 5vw, 64px) clamp(80px, 9vw, 124px);
}
.legal h2 {
  margin: clamp(48px, 6vw, 72px) 0 16px;
  padding-top: clamp(30px, 4vw, 44px);
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-size: clamp(27px, 3vw, 36px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.08;
}
.legal h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal p,
.legal li {
  color: var(--ink-2);
  font-size: clamp(15px, 1.5vw, 16.5px);
  line-height: 1.72;
}
.legal p { margin-bottom: 16px; }
.legal ul { margin: 0 0 18px; padding-left: 20px; }
.legal li { margin-bottom: 8px; padding-left: 4px; }
.legal li::marker { color: var(--mint); }
.legal a { color: var(--ink); border-bottom: 1px solid var(--mint); }
.legal a:hover { color: var(--mint-2); }
.legal .caps {
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.025em;
  line-height: 1.75;
}
.legal hr { margin: clamp(52px, 7vw, 80px) 0 0; border: 0; border-top: 1px solid var(--line); }

@media (max-width: 600px) {
  .legal-page .legal-head { padding-top: 126px; }
  .legal { padding-right: 22px; padding-left: 22px; }
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   Contact: a single split screen, no nav, no footer.
   -------------------------------------------------------------------------- */

.hire { min-height: 100vh; display: flex; flex-direction: column; }

.hire-bar { border-bottom: 1px solid var(--line); }
.hire-bar a {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 21px clamp(20px, 3.4vw, 48px);
  font-size: 14.5px;
  letter-spacing: -0.012em;
  color: var(--ink-2);
  transition: color 160ms ease;
}
.hire-bar a:hover { color: var(--ink); }
.hire-bar svg { width: 15px; height: 11px; }

.hire-split { flex: 1; display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) { .hire-split { grid-template-columns: 1fr; } }

.hire-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(44px, 6vw, 96px) clamp(24px, 5vw, 88px);
  border-right: 1px solid var(--line);
}
@media (max-width: 900px) { .hire-copy { border-right: 0; border-bottom: 1px solid var(--line); } }
.hire-copy .d2 { max-width: 13ch; }
.hire-copy .sub { margin-top: 20px; max-width: 38ch; }
.hire-copy .ticks { margin-top: clamp(30px, 4vw, 48px); border-top: 1px solid var(--line); }
.hire-copy .ticks li { padding: 17px 0; font-size: 15.5px; color: var(--ink); }

.hire-art {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(34px, 4vw, 64px) clamp(20px, 3vw, 48px);
  overflow: hidden;
}
.hire-art > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
}

.hire-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid rgba(11, 16, 14, 0.06);
  box-shadow: 0 40px 90px -55px rgba(11, 16, 14, 0.7);
  padding: clamp(26px, 3vw, 38px);
}
.hire-mark {
  width: 46px; height: 46px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
}
.hire-mark .brand-logo {
  width: 36px;
  height: 36px;
  margin: 0;
  filter: brightness(0);
}
.hire-card h2 {
  text-align: center;
  font-size: 17.5px;
  font-weight: 500;
  letter-spacing: -0.022em;
  color: var(--ink);
}

.hire-form { display: grid; gap: 9px; margin-top: 26px; }
.hire-form .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.hire-form input,
.hire-form select {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  font-family: var(--sans);
  font-size: 15px;
  letter-spacing: -0.012em;
  color: var(--ink);
  transition: border-color 160ms ease;
}
.hire-form input::placeholder { color: var(--ink-3); }
.hire-form input:focus, .hire-form select:focus { outline: none; border-color: var(--mint); }
.hire-form select { appearance: none; -webkit-appearance: none; cursor: pointer; color: var(--ink-3); }
.hire-form select.is-set { color: var(--ink); }
.hire-form .sel { position: relative; }
.hire-form .sel::after {
  content: "";
  position: absolute;
  right: 16px; top: 50%;
  width: 7px; height: 7px;
  border-right: 1.5px solid var(--ink-3);
  border-bottom: 1.5px solid var(--ink-3);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.multi-select {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--ink-3);
  transition: border-color 160ms ease;
}
.multi-select[open] { z-index: 5; }
.multi-select[open], .multi-select:focus-within { border-color: var(--mint); }
.multi-select.is-set { color: var(--ink); }
.multi-select summary {
  position: relative;
  padding: 14px 42px 14px 15px;
  font-size: 15px;
  letter-spacing: -0.012em;
  cursor: pointer;
  list-style: none;
}
.multi-select summary::-webkit-details-marker { display: none; }
.multi-select summary::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--ink-3);
  border-bottom: 1.5px solid var(--ink-3);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 160ms ease;
}
.multi-select[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.multi-select-menu {
  position: absolute;
  left: -1px;
  right: -1px;
  bottom: calc(100% + 4px);
  z-index: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 18px 42px -24px rgba(11, 16, 14, 0.55);
}
.multi-select-options {
  max-height: 240px;
  overflow-y: scroll;
  scrollbar-gutter: stable;
  padding: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--ink-4) transparent;
}
.multi-select-options::-webkit-scrollbar { width: 6px; }
.multi-select-options::-webkit-scrollbar-thumb { background: var(--ink-4); border-radius: 6px; }
.multi-select-options::-webkit-scrollbar-track { background: transparent; }
.multi-select-options label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px;
  border-radius: 3px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
  cursor: pointer;
}
.multi-select-options label:hover { background: var(--white-2); }
.hire-form .multi-select-options input {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  margin-top: 2px;
  padding: 0;
  accent-color: var(--deep);
}
.multi-select-other { padding: 6px 9px 9px; }
.multi-select-other[hidden] { display: none; }
.hire-form .multi-select-other input {
  width: 100%;
  padding: 11px 12px;
  font-size: 14px;
}
.hire-form button {
  margin-top: 7px;
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 4px;
  background: var(--deep);
  color: var(--lt);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.012em;
  cursor: pointer;
  transition: background 160ms ease;
}
.hire-form button:hover { background: var(--deep-3); }
.hire-form button:disabled { opacity: 0.6; cursor: default; }
.hire-note { margin-top: 14px; text-align: center; font-size: 13px; color: var(--ink-3); min-height: 18px; }
.hire-note.is-error { color: var(--alert); }
.hire-note.is-ok { color: #2E7D5B; }

.form-wrap { padding: clamp(44px, 5vw, 76px) clamp(20px, 3vw, 48px); display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 4vw, 68px); align-items: start; }
@media (max-width: 900px) { .form-wrap { grid-template-columns: 1fr; } }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--wide { grid-column: 1 / -1; }
.field label { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 13px;
  background: var(--white); border: 1px solid var(--line);
  font-family: var(--sans); font-size: 16px; letter-spacing: -0.012em; color: var(--ink);
  transition: border-color 160ms ease;
}
.field textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--mint); }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.form-trap { position: absolute; left: -9999px; width: 0; height: 0; opacity: 0; }
.form-foot {
  margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.form-status { font-size: 13.5px; color: var(--ink-2); min-height: 20px; }
.form-status.is-error { color: var(--alert); }
.form-status.is-ok { color: #2E7D5B; }

.ticks li {
  display: grid; grid-template-columns: 16px 1fr; gap: 12px; align-items: start;
  padding: 12px 0; border-bottom: 1px solid var(--line);
  font-size: 14.5px; color: var(--ink-2); letter-spacing: -0.008em;
}
.ticks li::before { content: ""; width: 5px; height: 5px; margin-top: 8px; background: var(--mint); }
.ticks li b { color: var(--ink); font-weight: 500; }

/* --------------------------------------------------------------------------
   Lifecycle bento. Cells vary in width and each carries a different kind of
   artifact, cropped by its own cell rather than floating on a shadow. Mint
   always marks the thing the agent did.
   -------------------------------------------------------------------------- */

.bento { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.bento > article {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 360px;
  padding: clamp(28px, 3.4vw, 46px) clamp(20px, 2.6vw, 40px) 0;
  border-bottom: 1px solid var(--line);
}
.bento > article:nth-child(odd):not(.wide) { border-right: 1px solid var(--line); }
.bento > #stage-logistics { border-right: 1px solid var(--line); }
.bento > article.wide { grid-column: 1 / -1; }
.bento h3 { font-size: clamp(18px, 1.7vw, 21px); font-weight: 500; letter-spacing: -0.025em; }
.bento .desc { margin-top: 10px; max-width: 44ch; }
.bento .desc b { color: var(--ink); font-weight: 500; }
.bento .art { margin-top: auto; padding-top: clamp(30px, 3.6vw, 48px); }
@media (max-width: 880px) {
  .bento { grid-template-columns: 1fr; }
  .bento > article:nth-child(odd):not(.wide) { border-right: 0; }
  .bento > #stage-logistics { border-right: 0; }
}

/* A. scanned page, cropped at the edge, clauses picked out */
.scan { display: flex; align-items: flex-end; gap: clamp(20px, 3vw, 52px); }
.scan-page {
  flex: 0 0 auto; width: 190px; padding: 18px 16px 30px;
  border: 1px solid var(--line); background: #fff;
  transform: rotate(-2.5deg); transform-origin: bottom left;
  margin-bottom: -22px;
}
.scan-page i { display: block; height: 5px; background: var(--white-3); margin-bottom: 9px; border-radius: 1px; }
.scan-page i.w1 { width: 78%; } .scan-page i.w2 { width: 92%; } .scan-page i.w3 { width: 64%; }
.scan-page i.on { background: var(--mint); }
.scan-fields { flex: 1; min-width: 0; display: grid; gap: 7px; }
.scan-fields span {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 9px 12px; border: 1px solid var(--line); background: #fff;
  font-size: 12px; letter-spacing: -0.008em; color: var(--ink-2); white-space: nowrap;
}
.scan-fields span b { font-family: var(--mono); font-size: 10px; color: var(--mint); font-weight: 400; }
.scan-fields span.new { border-color: rgba(63, 191, 143, 0.45); }

/* B. laytime bar */
.laybar { margin-top: 4px; }
.laybar-track { display: flex; height: 34px; border: 1px solid var(--line); }
.laybar-track i { display: block; height: 100%; }
.laybar-track i.used { background: var(--mint); flex: 3.21; }
.laybar-track i.exc {
  flex: 0.9;
  background: repeating-linear-gradient(45deg, var(--white-3) 0 4px, transparent 4px 8px);
}
.laybar-track i.left { flex: 2.77; background: var(--white-2); }
.laybar-keys { display: flex; justify-content: space-between; margin-top: 12px; }
.laybar-keys span { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.laybar-keys span b { color: var(--ink); font-weight: 400; }

/* C. book against reported */
.recon { display: grid; gap: 16px; }
.recon-row { display: grid; grid-template-columns: 88px 1fr auto; gap: 12px; align-items: center; }
.recon-row > em { font-style: normal; font-size: 11.5px; color: var(--ink-2); letter-spacing: -0.008em; }
.recon-bars { display: grid; gap: 3px; }
.recon-bars i { display: block; height: 7px; background: var(--white-3); }
.recon-bars i.b { background: var(--ink-4); }
.recon-bars i.r { background: var(--mint); }
.recon-row > span { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.08em; color: var(--ink-3); }
.recon-row.off > span { color: var(--alert); }

/* D. credit against document, line by line */
.diff { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 40px); }
.diff > * { min-width: 0; }
.diff-col > b {
  display: block; margin-bottom: 12px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--ink-3); font-weight: 400;
}
.diff-col p {
  padding: 9px 11px; margin-bottom: 5px;
  border: 1px solid transparent; background: var(--white-2);
  font-size: 11.5px; letter-spacing: -0.008em; color: var(--ink-2); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.diff-col p.hit { background: rgba(196, 96, 58, 0.07); border-color: rgba(196, 96, 58, 0.35); color: var(--ink); }
.diff-note {
  grid-column: 1 / -1; margin-top: 6px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--alert);
}

/* E. the drafted notice waiting on a person */
.notice { border: 1px solid var(--line); background: #fff; }
.notice-head {
  padding: 10px 13px; border-bottom: 1px solid var(--line); background: var(--white-2);
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-3);
}
.notice-body { padding: 14px 13px; font-size: 12px; line-height: 1.6; color: var(--ink-2); }
.notice-body u { text-decoration: none; background: rgba(63, 191, 143, 0.18); padding: 1px 3px; }
.notice-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 13px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3);
}
.notice-foot b { color: #fff; background: var(--deep); padding: 5px 10px; font-weight: 400; }

/* F. cost build-up */
.build { display: grid; gap: 9px; }
.build-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.build-row i { display: block; height: 22px; background: var(--white-3); }
.build-row i.on { background: var(--mint); }
.build-row i.hold { background: repeating-linear-gradient(45deg, var(--white-3) 0 4px, transparent 4px 8px); border: 1px solid var(--line); }
.build-row em {
  font-style: normal; font-family: var(--mono); font-size: 9.5px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap;
}

/* G. cited research brief */
.brief { display: grid; gap: 8px; }
.brief-row {
  display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: baseline;
  padding-bottom: 8px; border-bottom: 1px solid var(--line-2);
}
.brief-row p { font-size: 12.5px; letter-spacing: -0.008em; color: var(--ink-2); }
.brief-row cite {
  font-style: normal; font-family: var(--mono); font-size: 9.5px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--mint); white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Bento motion. Base styles are the finished state, so if .play never lands
   (reduced motion, no JS) the artifact still reads correctly. Each animation
   replays on hover.
   -------------------------------------------------------------------------- */

@keyframes inkIn   { from { background: var(--white-3); } }
@keyframes fieldIn { from { opacity: 0; transform: translateY(8px); } }
@keyframes growX   { from { transform: scaleX(0); } }
@keyframes markIn  { from { background-size: 0% 100%; } }
@keyframes liftIn  { from { opacity: 0; transform: translateX(-10px); } }
@keyframes flash   { 0%, 100% { opacity: 1; } 40% { opacity: 0.25; } }
@keyframes cue     { 0%, 100% { transform: none; } 50% { transform: translateY(-2px); } }

/* A. contract: clauses light up, then the fields land, addendum last */
.play .scan-page i.on { animation: inkIn 0.5s ease both; }
.play .scan-page i.on:nth-of-type(4) { animation-delay: 0.15s; }
.play .scan-page i.on:nth-of-type(6) { animation-delay: 0.35s; }
.play .scan-fields span { animation: fieldIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both; }
.play .scan-fields span:nth-child(1) { animation-delay: 0.55s; }
.play .scan-fields span:nth-child(2) { animation-delay: 0.68s; }
.play .scan-fields span:nth-child(3) { animation-delay: 0.81s; }
.play .scan-fields span:nth-child(4) { animation-delay: 0.94s; }

/* B. laytime fills */
.laybar-track i.used { transform-origin: left center; }
.play .laybar-track i.used { animation: growX 1s cubic-bezier(0.22, 1, 0.36, 1) both; }
.play .laybar-keys span:first-child { animation: fieldIn 0.5s ease 0.8s both; }

/* C. reported bar stops short of book, delta flashes */
.recon-bars i { transform-origin: left center; }
.play .recon-bars i { animation: growX 0.8s cubic-bezier(0.22, 1, 0.36, 1) both; }
.play .recon-row:nth-child(1) .recon-bars i:nth-child(2) { animation-delay: 0.18s; }
.play .recon-row:nth-child(2) .recon-bars i:nth-child(2) { animation-delay: 0.36s; }
.play .recon-row:nth-child(3) .recon-bars i:nth-child(2) { animation-delay: 0.54s; }
.play .recon-row.off > span { animation: flash 1.1s ease 0.9s 2 both; }

/* D. both sides land, then the mismatch surfaces */
.play .diff-col p { animation: liftIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both; }
.play .diff-col p:nth-child(2) { animation-delay: 0.05s; }
.play .diff-col p:nth-child(3) { animation-delay: 0.15s; }
.play .diff-col p:nth-child(4) { animation-delay: 0.25s; }
.play .diff-col p:nth-child(5) { animation-delay: 0.35s; }
.play .diff-col p.hit { animation: liftIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both, flash 0.9s ease 0.8s 2 both; }
.play .diff-note { animation: fieldIn 0.5s ease 1.1s both; }

/* E. the highlight sweeps across the breach, then the button cues */
.notice-body u {
  background-image: linear-gradient(rgba(63, 191, 143, 0.22), rgba(63, 191, 143, 0.22));
  background-repeat: no-repeat;
  background-size: 100% 100%;
}
.play .notice-body u { animation: markIn 0.7s ease 0.35s both; }
.play .notice-foot b { animation: cue 1.4s ease 1.1s 2 both; }

/* F. cost lines build, the pending one last */
.build-row i { transform-origin: left center; }
.play .build-row i { animation: growX 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }
.play .build-row:nth-child(2) i { animation-delay: 0.12s; }
.play .build-row:nth-child(3) i { animation-delay: 0.24s; }
.play .build-row:nth-child(4) i { animation-delay: 0.36s; }
.play .build-row:nth-child(5) i { animation-delay: 0.48s; }

/* G. findings arrive with their sources */
.play .brief-row { animation: liftIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both; }
.play .brief-row:nth-child(2) { animation-delay: 0.14s; }
.play .brief-row:nth-child(3) { animation-delay: 0.28s; }
.play .brief-row:nth-child(4) { animation-delay: 0.42s; }


@media (prefers-reduced-motion: reduce) {
  .play * { animation: none !important; }
}

/* --------------------------------------------------------------------------
   Real surfaces, not skeletons. Artifacts are dense, carry actual figures,
   and are cropped by their cell rather than sized to fit it.
   -------------------------------------------------------------------------- */

.bento > article { padding-bottom: clamp(30px, 3.4vw, 44px); }
.bento .art { position: relative; }

/* the addendum the agent is reading, angled but fully inside its cell */
.scan { align-items: flex-end; gap: clamp(18px, 2.6vw, 44px); }
.scan-page {
  width: 218px; padding: 18px 16px 22px;
  transform: rotate(-2deg); transform-origin: bottom left;
  margin: 0;
  box-shadow: 0 10px 24px -20px rgba(11, 16, 14, 0.5);
}
.scan-page em {
  display: block; font-style: normal;
  font-family: var(--mono); font-size: 8px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-4); margin-bottom: 12px;
}
.scan-page p {
  font-size: 8.5px; line-height: 1.75; color: var(--ink-3);
  letter-spacing: -0.004em; margin-bottom: 7px;
}
.scan-page p.on { color: var(--ink); background: rgba(63, 191, 143, 0.2); }
.scan-fields { align-self: flex-end; padding-bottom: 22px; }

/* the credit diff reads as document text, not form rows */
.diff-col p { font-size: 12.5px; padding: 10px 12px; }

/* --------------------------------------------------------------------------
   Product chrome. Cells carry working UI: actions, progress, status, stacked
   layers. One line of copy each, artifact does the talking.
   -------------------------------------------------------------------------- */

.bento .desc { max-width: 40ch; }
.bento > article { min-height: 340px; }

.ui { border: 1px solid var(--line); border-radius: 7px; background: #fff; overflow: hidden; }
.ui + .ui { margin-top: 10px; }
.ui-head {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-bottom: 1px solid var(--line-2);
}
.ui-head svg { width: 16px; height: 16px; flex: 0 0 auto; color: var(--ink-3); }
.ui-head b { font-size: 13px; font-weight: 500; letter-spacing: -0.014em; color: var(--ink); }
.ui-head em {
  margin-left: auto; font-style: normal;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-3); white-space: nowrap;
}
.ui-body { padding: 14px; }
.research-status { flex: 1; min-width: 0; }
.research-status > span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.research-caret {
  display: inline-block;
  width: 1px;
  height: 0.9em;
  margin-left: 2px;
  background: var(--mint);
  vertical-align: -0.08em;
  animation: researchBlink 0.75s steps(1) infinite;
}
.research-caret.is-done { opacity: 0; animation: none; }
@keyframes researchBlink { 50% { opacity: 0; } }

.act {
  margin-left: auto; flex: 0 0 auto;
  padding: 6px 12px; border: 0; border-radius: 5px;
  background: var(--deep); color: var(--lt);
  font-family: var(--sans); font-size: 11.5px; font-weight: 500; letter-spacing: -0.01em;
  white-space: nowrap; cursor: pointer;
}
.act--ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }

.prog { height: 3px; background: var(--white-3); border-radius: 2px; overflow: hidden; }
.prog i { display: block; height: 100%; width: 100%; background: var(--mint); transform-origin: left center; }
.prog-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 11px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3);
}

.figure { display: flex; align-items: baseline; gap: 9px; }
.figure b { font-family: var(--mono); font-size: clamp(30px, 3.4vw, 42px); font-weight: 400; letter-spacing: -0.03em; color: var(--ink); }
.figure span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 9px; border: 1px solid var(--line); border-radius: 5px;
  font-size: 11px; letter-spacing: -0.008em; color: var(--ink-2); background: #fff;
}
.chips span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--mint); }
.chips span.wait::before { background: var(--ink-4); }

.stat { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line-2); }
.stat em { font-style: normal; font-size: 12px; color: var(--ink-2); letter-spacing: -0.008em; }
.stat b { font-family: var(--mono); font-size: 12px; color: var(--ink); font-weight: 400; }
.stat b.bad { color: var(--alert); }

/* overlapping layers, the way endex stacks its preference cards.
   Named .layers, not .stack: platform.html already owns .stack as a 3-col grid. */
.layers { position: relative; }
.layers .ui:nth-child(1) { transform: translate(-14px, 12px) scale(0.97); opacity: 0.7; }
.layers .ui:nth-child(2) { position: relative; margin-top: -18px; box-shadow: 0 14px 34px -24px rgba(11, 16, 14, 0.55); }

/* the agent's own working line */
.working {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.11em;
  text-transform: uppercase; color: var(--mint); margin-bottom: 12px;
}
.working::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--mint); animation: blip 1.8s ease-in-out infinite;
}

/* motion */
.play .prog i { animation: growX 1.1s cubic-bezier(0.22, 1, 0.36, 1) both; }
.play .chips span { animation: fieldIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both; }
.play .chips span:nth-child(2) { animation-delay: 0.1s; }
.play .chips span:nth-child(3) { animation-delay: 0.2s; }
.play .chips span:nth-child(4) { animation-delay: 0.3s; }
.play .chips span:nth-child(5) { animation-delay: 0.4s; }
.play .stat { animation: fieldIn 0.45s ease both; }
.play .stat:nth-of-type(2) { animation-delay: 0.12s; }
.play .stat:nth-of-type(3) { animation-delay: 0.24s; }
.play .figure b { animation: fieldIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both; }
.play .act { animation: cue 1.5s ease 1s 2 both; }
.play .layers .ui:nth-child(2) { animation: fieldIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both; }

/* The jump strip sticks under the nav. Without this you only ever see it
   while the first cell is in view, so the active tab never appears to move. */
.tabstrip {
  position: sticky;
  top: 69px;
  z-index: 40;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.bento > article { scroll-margin-top: 126px; }

/* --------------------------------------------------------------------------
   Mobile resilience. Keep operational surfaces readable rather than merely
   clipping their desktop geometry inside a narrow viewport.
   -------------------------------------------------------------------------- */

.page-404 {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.page-404 main { flex: 1; }

@media (max-width: 900px) {
  html.menu-open { overflow: hidden; }

  .nav-inner {
    height: calc(62px + env(safe-area-inset-top));
    padding-top: env(safe-area-inset-top);
  }
  .nav-toggle {
    width: 44px;
    height: 44px;
    margin-right: -10px;
  }
  .nav-toggle span { left: 10px; right: 10px; }
  .nav-toggle span:nth-child(1) { top: 18px; }
  .nav-toggle span:nth-child(2) { top: 24px; }
  .nav.is-open .nav-toggle span:nth-child(1),
  .nav.is-open .nav-toggle span:nth-child(2) { top: 21px; }
  .hero { min-height: calc(100svh - 48px); }
  .hero-cap input,
  .hire-form input,
  .hire-form select,
  .multi-select summary,
  .hire-form .multi-select-other input { font-size: 16px; }

  .panel-scroll {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: scroll;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-inline: contain;
    touch-action: pan-x pan-y;
    scrollbar-width: thin;
    scrollbar-color: var(--ink-3) var(--white-3);
    scrollbar-gutter: stable;
  }
  .panel-scroll::-webkit-scrollbar { display: block; height: 4px; }
  .panel-scroll::-webkit-scrollbar-track { background: var(--white-3); }
  .panel-scroll::-webkit-scrollbar-thumb { background: var(--ink-3); }
  .grid-tbl { min-width: 560px; }

  .tabstrip {
    top: calc(63px + env(safe-area-inset-top));
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .tabstrip::-webkit-scrollbar { display: none; }
  .tabstrip a {
    flex: 0 0 calc(100% / 3);
    min-width: calc(100% / 3);
    padding: 13px 6px;
    scroll-snap-align: start;
  }
  .tabstrip a.is-active {
    color: var(--ink);
    background: var(--white-2);
    font-weight: 500;
  }
  .bento > article { scroll-margin-top: calc(113px + env(safe-area-inset-top)); }

  .hire { min-height: 100svh; }
}

@media (max-width: 520px) {
  .hero-cap {
    flex-direction: row;
    width: min(100%, 300px);
    margin-left: auto;
    margin-right: auto;
  }
  .hero-cap input {
    width: 0;
    min-width: 0;
    flex: 1 1 auto;
    min-height: 44px;
    padding: 11px 14px;
  }
  .hero-cap button {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 0 14px;
  }

  .panel-bar {
    gap: 8px;
    padding: 9px 10px;
    font-size: 9px;
  }
  .panel-scroll {
    overflow: visible;
    touch-action: auto;
    scrollbar-width: none;
    scrollbar-gutter: auto;
  }
  .panel-scroll::-webkit-scrollbar { display: none; }
  .grid-tbl {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
  }
  .grid-tbl th,
  .grid-tbl td {
    padding: 9px 5px;
    vertical-align: top;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .grid-tbl th {
    font-size: 7.5px;
    letter-spacing: 0.08em;
  }
  .grid-tbl td {
    font-size: 10.5px;
    line-height: 1.35;
  }
  .grid-tbl th:nth-child(1), .grid-tbl td:nth-child(1) { width: 29%; }
  .grid-tbl th:nth-child(2), .grid-tbl td:nth-child(2) { width: 31%; }
  .grid-tbl th:nth-child(3), .grid-tbl td:nth-child(3) { width: 14%; }
  .grid-tbl th:nth-child(4), .grid-tbl td:nth-child(4) { width: 26%; }
  .grid-tbl .n { font-size: 9px; }
  .grid-tbl .tag {
    padding: 3px 4px;
    font-size: 7px;
    letter-spacing: 0.04em;
    line-height: 1.2;
    white-space: normal;
    text-align: center;
  }

  .scan {
    flex-direction: column;
    align-items: stretch;
  }
  .scan-page {
    width: 100%;
    transform: none;
  }
  .scan-fields {
    width: 100%;
    align-self: stretch;
    padding-bottom: 0;
  }

  .diff { gap: 8px; }
  .diff-col p {
    padding: 9px 8px;
    font-size: 11px;
  }

  .prog-meta,
  .stat { align-items: flex-start; }
  .prog-meta { flex-wrap: wrap; }
  .stat em { min-width: 0; }
  .stat b { flex: 0 0 auto; }

  .hire-copy { padding: 40px 20px; }
  .hire-art { padding: 28px 12px max(28px, env(safe-area-inset-bottom)); }
  .hire-card { padding: 24px 20px; }
  .hire-form .pair { grid-template-columns: 1fr; }

  .foot-in {
    padding: 42px 20px max(24px, env(safe-area-inset-bottom));
  }
  .foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }
  .foot-grid > div:first-child {
    grid-column: 1 / -1;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line-lt2);
  }
  .foot-grid > div:last-child {
    grid-column: 1 / -1;
    padding-top: 4px;
    border-top: 1px solid var(--line-lt2);
  }
  .foot-grid > div:last-child ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0 24px;
  }
  .foot li { padding: 0; }
  .foot li a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 14px;
  }
  .foot-base {
    margin-top: 30px;
    padding-top: 18px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
