/* =========================================================
   BlueRickshaw — "shipping manifest / customs stamp"
   dusty blue + butter + kraft paper
   ========================================================= */
.br {
  --blue: #9fb3cc;
  --blue-2: #c9d5e3;
  --blue-deep: #34465e;
  --kraft: #dcc49c;
  --kraft-2: #ead9bb;
  --kraft-ink: #4a3b2a;
  --stamp: #c4473a;
  background: var(--cream);
}
.br .muted { color: #6c6157; }
.br [hidden] { display: none !important; }

/* ---------- hero ---------- */
.br-hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + 80px) 0 0;
  background:
    radial-gradient(60% 70% at 85% 30%, rgba(159, 179, 204, .55), transparent 70%),
    radial-gradient(50% 60% at 10% 90%, rgba(245, 215, 124, .35), transparent 70%),
    var(--cream);
}
.br-hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-bottom: clamp(3rem, 7vw, 6rem); }
.br-hero__title {
  font-family: var(--font-serif); font-weight: 450; font-size: clamp(3.6rem, 10.5vw, 10.5rem); line-height: .86; letter-spacing: -.035em;
  color: var(--blue-deep); margin: 1.2rem 0 1.5rem;
}
.br-hero__line { display: block; overflow: hidden; padding-bottom: .06em; }
.br-hero__line em { font-style: italic; color: var(--ink); }
.br-hero__lede { max-width: 30ch; color: var(--ink-2); }
.manifest {
  margin-top: 2rem; max-width: 520px; border-top: 1.5px dashed rgba(52, 70, 94, .4);
  font-size: 12px;
}
.manifest > div { display: grid; grid-template-columns: 90px 1fr; gap: 1rem; padding: .7rem 0; border-bottom: 1.5px dashed rgba(52, 70, 94, .25); }
.manifest dt { text-transform: uppercase; letter-spacing: .1em; color: var(--blue-deep); font-weight: 500; }
.manifest dd { margin: 0; color: var(--ink-2); }
.manifest__live { display: inline-flex; align-items: center; gap: .5em; }
.manifest__live::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #6f9459; animation: pulse 2s infinite; }
.br-hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.br-hero__label-wrap { position: relative; perspective: 1200px; justify-self: center; width: min(100%, 520px); }
.ship-label {
  position: relative; background: #fffdf6; color: var(--kraft-ink);
  padding: 18px 18px 22px; border-radius: 6px;
  box-shadow: 0 30px 60px -20px rgba(52, 70, 94, .45), 0 2px 0 rgba(0,0,0,.04);
  transform: rotate(3deg); transform-style: preserve-3d; will-change: transform;
  /* perforated top & bottom edge */
  -webkit-mask: radial-gradient(circle 6px at 50% 0, transparent 98%, #000) 0 0 / 22px 51% repeat-x, radial-gradient(circle 6px at 50% 100%, transparent 98%, #000) 0 100% / 22px 51% repeat-x;
  mask: radial-gradient(circle 6px at 50% 0, transparent 98%, #000) 0 0 / 22px 51% repeat-x, radial-gradient(circle 6px at 50% 100%, transparent 98%, #000) 0 100% / 22px 51% repeat-x;
}
.ship-label__head { display: flex; justify-content: space-between; font-weight: 500; font-size: 12px; letter-spacing: .2em; padding: 8px 4px 14px; border-bottom: 3px solid var(--kraft-ink); }
.ship-label__img { position: relative; margin: 14px 0; border-radius: 4px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--blue-2); }
.ship-label__img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) contrast(1.02); }
.ship-label__rows { display: grid; grid-template-columns: repeat(3, 1fr); border: 1.5px solid var(--kraft-ink); }
.ship-label__rows > div { padding: 8px 10px; border-right: 1.5px solid var(--kraft-ink); display: grid; gap: 2px; }
.ship-label__rows > div:last-child { border-right: 0; }
.ship-label__rows span { font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: #6c5a44; }
.ship-label__rows strong { font-family: var(--font-serif); font-weight: 450; font-size: 15px; line-height: 1.15; }
.ship-label__barcode {
  height: 46px; margin-top: 14px;
  background: repeating-linear-gradient(90deg, var(--kraft-ink) 0 2px, transparent 2px 4px, var(--kraft-ink) 4px 5px, transparent 5px 9px, var(--kraft-ink) 9px 12px, transparent 12px 14px, var(--kraft-ink) 14px 15px, transparent 15px 19px);
}
.stamp { color: var(--stamp); pointer-events: none; }
.stamp svg text { font-family: var(--font-mono); font-weight: 500; }
.stamp .stamp__big { font-family: var(--font-serif); letter-spacing: .06em; }
.stamp--hero {
  position: absolute; width: clamp(120px, 14vw, 180px); right: -7%; top: -9%; mix-blend-mode: multiply; opacity: .85;
  transform: rotate(-14deg);
}
.stamp--hero svg { animation: spin 26s linear infinite; }

.br-hero__ticker { background: var(--blue-deep); color: var(--blue-2); overflow: hidden; padding: .9rem 0; }
.br-hero__ticker-track { display: flex; gap: 2.5rem; width: max-content; animation: brTicker 40s linear infinite; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.br-hero__ticker-track span { display: inline-flex; align-items: center; gap: 2.5rem; white-space: nowrap; }
.br-hero__ticker-track span::after { content: ''; width: 8px; height: 8px; background: var(--butter); -webkit-mask: url('../assets/shapes/scallop-12.svg') center / contain; mask: url('../assets/shapes/scallop-12.svg') center / contain; }
@keyframes brTicker { to { transform: translateX(-50%); } }

/* ---------- problem ---------- */
.br-problem { padding-block: clamp(5rem, 11vw, 9rem); }
.br-problem__h { max-width: 18ch; margin-top: 1rem; color: var(--blue-deep); }
.br-problem__h em { color: var(--stamp); }
.br-problem__cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); margin-top: 2.5rem; max-width: 980px; margin-left: auto; font-size: 15px; color: var(--ink-2); }

/* ---------- chain map ---------- */
.chain { background: var(--blue-deep); color: var(--cream); padding: clamp(4rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem); position: relative; overflow: hidden; }
.chain .eyebrow { color: var(--butter); }
.chain__head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 1rem; }
.chain__head .eyebrow { grid-column: 1 / -1; }
.chain__head h2 em { color: var(--butter); }
.chain__hint { color: var(--blue-2); display: inline-flex; gap: .5em; align-items: center; }
.chain__hint::after { content: '↓'; animation: brBob 1.6s ease-in-out infinite; }
@keyframes brBob { 50% { transform: translateY(4px); } }
.chain__stage { position: relative; height: clamp(340px, 34vw, 440px); margin: 2rem var(--edge) 0; max-width: calc(var(--max) - 2 * var(--edge)); margin-inline: auto; }
.chain__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.chain__ghost { fill: none; stroke: rgba(201, 213, 227, .3); stroke-width: 2; stroke-dasharray: 2 9; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.chain__route { fill: none; stroke: var(--butter); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.chain__nodes { position: absolute; inset: 0; list-style: none; padding: 0; margin: 0; }
.chain__node { position: absolute; width: 0; height: 0; }
.chain__pin {
  position: absolute; left: -17px; top: -17px; width: 34px; height: 34px; display: block;
  transition: transform .6s var(--ease-spring);
}
.chain__pin::before { content: ''; position: absolute; inset: 0; background: var(--blue); -webkit-mask: url('../assets/shapes/scallop-12.svg') center / contain; mask: url('../assets/shapes/scallop-12.svg') center / contain; transition: background .4s; }
.chain__pin::after { content: ''; position: absolute; inset: 11px; border-radius: 50%; background: var(--blue-deep); }
.chain__txt {
  position: absolute; left: -95px; width: 190px; top: 28px; display: grid; justify-items: center; text-align: center; gap: 2px;
  font-size: 11.5px; color: var(--blue-2); transition: color .4s, transform .6s var(--ease-spring);
}
.chain__node.is-above .chain__txt { top: auto; bottom: 28px; }
.chain__txt strong { font-family: var(--font-serif); font-weight: 450; font-size: 1.3rem; color: var(--cream); line-height: 1.1; }
.chain__num { font-size: 10px; letter-spacing: .14em; color: var(--butter); }
.chain__node.is-on .chain__pin { transform: scale(1.3) rotate(30deg); }
.chain__node.is-on .chain__pin::before { background: var(--butter); }
.chain__node.is-on .chain__txt { color: var(--cream); }
.chain__stage.is-vertical .chain__txt { left: 30px; top: -22px; bottom: auto; width: min(240px, 62vw); justify-items: start; text-align: left; }
.chain__box { position: absolute; left: 0; top: 0; width: 58px; transform: translate(-50%, -50%); filter: drop-shadow(0 8px 12px rgba(0,0,0,.35)); will-change: transform; }

/* ---------- intake demo ---------- */
.intake { padding: clamp(5rem, 10vw, 8rem) 0; background: var(--kraft-2); position: relative; }
.intake::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(74, 59, 42, .12) 1px, transparent 1.2px); background-size: 14px 14px;
}
.intake .container { position: relative; }
.intake__head { display: grid; grid-template-columns: 1fr minmax(0, 420px); gap: 2rem; align-items: end; margin-bottom: 2.5rem; }
.intake__head h2 { margin-top: 1rem; color: var(--kraft-ink); }
.intake__head h2 em { color: var(--stamp); }
.intake__note { font-size: 13px; color: var(--kraft-ink); }
.intake__grid { display: grid; grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1.15fr); gap: 1.25rem; align-items: stretch; }

.mail { background: #fffdf6; border-radius: var(--r); box-shadow: 0 20px 40px -18px rgba(74, 59, 42, .4); display: flex; flex-direction: column; overflow: hidden; }
.mail__bar { display: flex; align-items: center; gap: .8rem; padding: .8rem 1rem; background: var(--blue-2); font-size: 12px; font-weight: 500; color: var(--blue-deep); }
.mail__dots { display: inline-flex; gap: 5px; }
.mail__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--blue-deep); opacity: .35; }
.mail__meta { padding: .8rem 1rem; display: grid; gap: .3rem; font-size: 12px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.mail__meta span { display: inline-block; width: 64px; color: #7a6e62; text-transform: uppercase; font-size: 10px; letter-spacing: .1em; }
.mail__body-wrap { position: relative; flex: 1; min-height: 300px; }
.mail__body {
  position: absolute; inset: 0; width: 100%; height: 100%; resize: none; border: 0; background: transparent;
  padding: 1rem; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.7; color: var(--ink-2);
}
.mail__body:focus-visible { outline: 2px solid var(--tomato); outline-offset: -4px; border-radius: 8px; }
.mail__scan {
  position: absolute; left: 0; right: 0; top: 0; height: 60px; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(159, 179, 204, .55) 70%, var(--blue-deep) 72%, transparent 74%);
}
.mail__render { position: absolute; inset: 0; overflow: auto; padding: 1rem; font-size: 12.5px; line-height: 1.7; color: var(--ink-2); white-space: pre-wrap; word-break: break-word; }
.mail__render .ln { display: block; min-height: 1.7em; }
.mail__render mark { background: linear-gradient(transparent 12%, rgba(245, 215, 124, .85) 12%, rgba(245, 215, 124, .85) 88%, transparent 88%) 0 0 / 0% 100% no-repeat; color: inherit; transition: background-size .6s var(--ease-out); padding: 0 2px; border-radius: 3px; }
.mail__render mark.is-on { background-size: 100% 100%; }
.mail__render mark.is-miss { background-image: linear-gradient(transparent 12%, rgba(227, 98, 74, .3) 12%, rgba(227, 98, 74, .3) 88%, transparent 88%); }
.br-hero__line > span { display: block; }
.mail__actions { display: flex; flex-wrap: wrap; gap: .6rem; padding: 1rem; border-top: 1px solid var(--line); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; align-content: center; gap: .6rem; position: relative; }
.steps li {
  position: relative; padding: .7rem .8rem; border-radius: 14px; background: rgba(255, 253, 246, .55); font-size: 11.5px; color: var(--kraft-ink);
  border: 1.5px dashed rgba(74, 59, 42, .3); transition: background .35s, color .35s, transform .5s var(--ease-spring), border-color .35s;
}
.steps li span { display: block; font-size: 10px; letter-spacing: .12em; opacity: .7; }
.steps li.is-active { background: var(--blue-deep); color: var(--cream); border-color: var(--blue-deep); transform: scale(1.05); }
.steps li.is-done { background: var(--butter); border-color: var(--butter); color: var(--kraft-ink); }

.po { position: relative; }
.po__paper {
  position: relative; height: 100%; background: #fffdf6; border-radius: 6px; padding: 1.25rem; display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 24px 48px -20px rgba(74, 59, 42, .45);
  background-image: linear-gradient(rgba(159, 179, 204, .18) 1px, transparent 1px); background-size: 100% 34px; background-position: 0 92px;
}
.po__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; border-bottom: 3px double var(--kraft-ink); padding-bottom: .9rem; margin-bottom: .75rem; }
.po__kicker { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #6c5a44; }
.po__no { font-family: var(--font-serif); font-size: 1.6rem; color: var(--kraft-ink); }
.po__example { background: var(--butter-2); color: var(--kraft-ink); }
.po__empty { flex: 1; display: grid; place-content: center; text-align: center; font-family: var(--font-serif); font-size: 1.3rem; color: var(--kraft-ink); padding: 2rem 0; }
.po__table-wrap { flex: 1; overflow-x: auto; }
.po__table { width: 100%; border-collapse: collapse; font-size: 12px; color: var(--ink-2); }
.po__table th { text-align: left; font-weight: 500; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #6c5a44; padding: .4rem .35rem; }
.po__table td { padding: .55rem .35rem; border-top: 1px dashed rgba(74, 59, 42, .22); vertical-align: middle; }
.po__table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.po__table tfoot th, .po__table tfoot td { border-top: 2px solid var(--kraft-ink); padding-top: .7rem; font-size: 12px; }
.po__table tfoot td { font-family: var(--font-serif); font-size: 1.25rem; color: var(--kraft-ink); }
.po__line { color: #6c5a44; font-size: 11px; max-width: 150px; }
.po__sku { display: grid; gap: 3px; }
.po__sku strong { font-weight: 500; color: var(--kraft-ink); }
.conf { display: inline-flex; align-items: center; gap: .35em; width: max-content; font-size: 10px; letter-spacing: .06em; padding: 2px 8px; border-radius: 999px; }
.conf::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.conf--hi { background: #dfe6c8; color: #3f5a2a; }
.conf--mid { background: var(--butter-2); color: #6b5310; }
.conf--lo { background: #f6d4cc; color: #8f2f22; }
.po__qty { width: 52px; padding: 3px 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--cream); text-align: right; font-variant-numeric: tabular-nums; }
.po__pick { font-size: 11px; padding: 3px 4px; border: 1px solid #e3a497; border-radius: 8px; background: #fff7f4; max-width: 160px; }
.po__row { opacity: 0; transform: translateX(14px); transition: opacity .5s var(--ease-quart), transform .6s var(--ease-out); }
.po__row.is-in { opacity: 1; transform: none; }
.po__foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.po__foot p { color: var(--kraft-ink); max-width: 34ch; }
.stamp--po { position: absolute; width: 230px; left: 50%; top: 42%; translate: -50% -50%; opacity: 0; transform: scale(2.4) rotate(-12deg); mix-blend-mode: multiply; }
.stamp--po.is-on { animation: brStamp .55s cubic-bezier(.2, 1.4, .4, 1) forwards; }
@keyframes brStamp { 0% { opacity: 0; transform: scale(2.4) rotate(-4deg); } 60% { opacity: .95; transform: scale(.94) rotate(-12deg); } 100% { opacity: .88; transform: scale(1) rotate(-12deg); } }

/* ---------- ops bento ---------- */
.ops { padding-block: clamp(5rem, 10vw, 8rem) clamp(3rem, 6vw, 5rem); }
.ops__head h2 { margin-top: 1rem; max-width: 16ch; color: var(--blue-deep); }
.ops__head h2 em { color: var(--stamp); }
.ops__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; margin-top: 2.5rem; }
.op { background: var(--paper); border-radius: var(--r-lg); padding: clamp(1.25rem, 2.4vw, 2rem); display: flex; flex-direction: column; gap: .9rem; min-width: 0; position: relative; overflow: hidden; }
.op h3 { color: var(--kraft-ink); }
.op--priya { grid-column: span 3; grid-row: span 2; background: var(--blue-2); }
.op--ship { grid-column: span 3; }
.op--fefo { grid-column: span 3; background: var(--butter-2); }
.op--mcp { grid-column: span 2; background: var(--ink); color: var(--cream); }
.op--mcp h3 { color: var(--cream); }
.op--mcp .muted { color: #d9cdbd; }
.op--routers { grid-column: span 4; background: var(--blue-deep); color: var(--cream); flex-direction: row; gap: 1.5rem; align-items: center; }
.op--env { grid-column: span 6; background: var(--kraft); display: grid; grid-template-columns: 1fr 1.4fr 1fr; align-items: center; gap: 1.5rem; }
.op__top { display: flex; gap: 1rem; align-items: flex-start; }
.op__sticker { flex: none; transform: rotate(-8deg); }
.op__sticker .serif { font-size: 1.35em; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.op--priya .tag { background: var(--cream); }

.call { background: var(--cream); border-radius: var(--r); padding: 1rem; flex: 1; display: flex; flex-direction: column; gap: .75rem; min-height: 300px; }
.call__bar { display: flex; align-items: center; gap: .6rem; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.call__rec { width: 9px; height: 9px; border-radius: 50%; background: var(--stamp); animation: pulse 1.4s infinite; }
.call__wave { display: inline-flex; align-items: center; gap: 3px; height: 16px; margin-left: auto; }
.call__wave i { width: 3px; height: 100%; background: var(--blue-deep); border-radius: 2px; animation: brWave 1s ease-in-out infinite; transform-origin: center; }
.call__wave i:nth-child(2) { animation-delay: -.2s; } .call__wave i:nth-child(3) { animation-delay: -.5s; } .call__wave i:nth-child(4) { animation-delay: -.1s; }
.call__wave i:nth-child(5) { animation-delay: -.7s; } .call__wave i:nth-child(6) { animation-delay: -.3s; } .call__wave i:nth-child(7) { animation-delay: -.6s; }
@keyframes brWave { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
.call__lines { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; flex: 1; align-content: start; }
.call__line { max-width: 85%; padding: .6rem .85rem; border-radius: 16px; font-size: 13px; line-height: 1.4; opacity: 0; transform: translateY(8px) scale(.96); transition: opacity .4s, transform .5s var(--ease-spring); }
.call__line.is-in { opacity: 1; transform: none; }
.call__line small { display: block; font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; opacity: .7; margin-bottom: 2px; }
.call__line--shop { background: var(--paper); color: var(--ink-2); border-bottom-left-radius: 4px; }
.call__line--priya { background: var(--blue-deep); color: var(--cream); justify-self: end; border-bottom-right-radius: 4px; }
.call__line--order { justify-self: center; background: var(--butter); color: var(--kraft-ink); font-size: 12px; border-radius: 10px; }
.call__replay { align-self: flex-start; }

.seg { display: inline-flex; background: var(--cream); border-radius: 999px; padding: 4px; width: max-content; }
.seg button { padding: .45rem .9rem; border-radius: 999px; font-size: 11.5px; color: var(--ink-2); transition: background .3s, color .3s; }
.seg button[aria-checked='true'] { background: var(--blue-deep); color: var(--cream); }
.hooks { list-style: none; padding: 0 0 0 1.2rem; margin: 0; position: relative; display: grid; gap: .5rem; }
.hooks::before { content: ''; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: repeating-linear-gradient(var(--blue) 0 4px, transparent 4px 8px); }
.hook { position: relative; display: grid; grid-template-columns: 1fr auto; gap: .5rem; font-size: 12px; color: var(--ink-2); opacity: 0; transform: translateX(-8px); transition: opacity .35s, transform .45s var(--ease-out); }
.hook.is-in { opacity: 1; transform: none; }
.hook::before { content: ''; position: absolute; left: calc(-1.2rem + 1px); top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--paper); border: 2px solid var(--blue-deep); }
.hook.is-last::before { background: var(--stamp); border-color: var(--stamp); }
.hook code { font-family: var(--font-mono); background: var(--cream); padding: 1px 6px; border-radius: 6px; color: var(--blue-deep); }
.hook span { color: #7a6e62; font-size: 11px; }

.fefo { display: grid; grid-template-columns: repeat(6, 1fr); gap: .5rem; align-items: end; min-height: 120px; }
.crate {
  position: relative; aspect-ratio: 1 / 1.05; border-radius: 10px; background: #e2b73e; color: var(--kraft-ink);
  display: grid; place-content: center; text-align: center; font-size: 10px; line-height: 1.2; padding: 4px;
  box-shadow: inset 0 -6px 0 rgba(0,0,0,.08), inset 0 0 0 2px rgba(74, 59, 42, .25);
  transition: transform .5s var(--ease-spring), opacity .4s, box-shadow .3s;
}
.crate::before { content: ''; position: absolute; left: 18%; right: 18%; top: 12%; height: 6px; border-radius: 3px; background: rgba(74, 59, 42, .3); }
.crate strong { display: block; font-family: var(--font-serif); font-weight: 450; font-size: 15px; }
.crate.is-first { box-shadow: inset 0 -6px 0 rgba(0,0,0,.08), 0 0 0 3px var(--stamp); transform: translateY(-8px); }
.crate.is-picked { transform: translateY(-60px) rotate(8deg) scale(.6); opacity: 0; }
.fefo__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.fefo__msg { color: var(--kraft-ink); flex-basis: 100%; }

.mcp { display: grid; gap: .5rem; font-size: 12.5px; }
.mcp p { padding: .6rem .8rem; border-radius: 14px; }
.mcp__u { background: rgba(254, 249, 237, .12); justify-self: end; max-width: 90%; }
.mcp__tool { background: transparent; border: 1px dashed rgba(245, 215, 124, .6); color: var(--butter); font-size: 11.5px; }
.mcp__tool span { font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; margin-right: .5em; opacity: .7; }
.mcp__a { background: var(--cream); color: var(--ink-2); max-width: 92%; }

.routers__copy { flex: 1; display: grid; gap: 1rem; min-width: 0; }
.routers__big { font-family: var(--font-serif); font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.05; }
.routers__big span { display: block; font-size: clamp(3.5rem, 7vw, 6rem); color: var(--butter); letter-spacing: -.03em; }
.op--routers .tag { background: rgba(254, 249, 237, .12); color: var(--cream); }
.routers__grid { flex: none; display: grid; grid-template-columns: repeat(10, 14px); gap: 5px; }
.routers__grid i { width: 14px; height: 14px; border-radius: 4px; background: rgba(201, 213, 227, .22); transition: background .3s, transform .4s var(--ease-spring); }
.routers__grid i.is-on { background: var(--butter); }
.routers__grid i:nth-child(7n).is-on { background: var(--blue); }
.routers__grid i:nth-child(11n).is-on { background: var(--rose); }

.envs { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.envs li { display: grid; grid-template-columns: 12px 90px 1fr; align-items: center; gap: .6rem; padding: .55rem .9rem; border-radius: 12px; background: rgba(255, 253, 246, .6); font-size: 12px; color: var(--kraft-ink); }
.envs strong { font-weight: 500; }
.envs__dot { width: 10px; height: 10px; border-radius: 50%; background: #6f9459; box-shadow: 0 0 0 3px rgba(111, 148, 89, .25); }
.op--env .chips { justify-content: flex-end; }
.env__spark { position: absolute; left: 0; bottom: 0; width: 34%; height: 50px; color: rgba(74, 59, 42, .3); pointer-events: none; }

/* ---------- numbers ---------- */
.nums { padding: clamp(3rem, 6vw, 5rem) 0; background: var(--blue-2); }
.nums__row { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.nums__row li { display: grid; gap: .4rem; padding: 1.25rem 0; border-top: 2px solid var(--blue-deep); color: var(--blue-deep); font-size: 12.5px; }
.nums__n { font-family: var(--font-serif); font-size: clamp(3rem, 6.4vw, 6rem); line-height: .95; letter-spacing: -.03em; }

/* ---------- gallery ---------- */
.gallery { padding: clamp(5rem, 10vw, 8rem) 0 clamp(3rem, 6vw, 5rem); overflow: hidden; }
.gallery__head { display: grid; gap: .6rem; margin-bottom: 2rem; }
.gallery__head h2 { color: var(--blue-deep); }
.gallery__track {
  display: flex; gap: clamp(1rem, 2.5vw, 2rem); overflow-x: auto; padding: 1.5rem max(var(--edge), calc((100vw - var(--max)) / 2 + var(--edge))) 2.5rem;
  scroll-snap-type: x proximity; scrollbar-width: none; cursor: grab; overscroll-behavior-x: contain;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track.is-drag { cursor: grabbing; scroll-snap-type: none; }
.tagcard {
  position: relative; flex: none; width: clamp(220px, 23vw, 320px); background: #fffdf6; padding: 12px 12px 16px; border-radius: 6px;
  transform: rotate(var(--r)); scroll-snap-align: center; box-shadow: 0 20px 40px -20px rgba(52, 70, 94, .45);
  transition: transform .6s var(--ease-spring);
}
.tagcard:hover { transform: rotate(0) translateY(-6px) scale(1.02); }
.tagcard::before { content: ''; position: absolute; top: -9px; left: 50%; width: 18px; height: 18px; translate: -50% 0; border-radius: 50%; background: var(--cream); box-shadow: inset 0 0 0 3px var(--kraft); }
.tagcard img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 3px; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.tagcard figcaption { display: flex; justify-content: space-between; gap: 1rem; margin-top: .8rem; font-family: var(--font-serif); font-size: 1.1rem; color: var(--kraft-ink); }
.tagcard figcaption span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; color: #7a6e62; padding-top: .3em; }
.tagcard .ph-note { bottom: auto; top: 22px; left: 22px; }

/* ---------- reel ---------- */
.reel { padding-bottom: clamp(5rem, 10vw, 8rem); }
.reel__head { display: grid; gap: .6rem; margin-bottom: 1.5rem; }
.reel__head h2 { color: var(--blue-deep); }
.reel__box { position: relative; border-radius: 10px; overflow: hidden; background: var(--stamp); padding: clamp(14px, 2vw, 26px); box-shadow: 0 40px 70px -30px rgba(74, 59, 42, .55); }
.reel__ribs { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(0,0,0,.12) 0 6px, transparent 6px 22px); }
.reel__video { position: relative; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; background: var(--blue-deep); }
.reel__box .ph-note { left: calc(clamp(14px, 2vw, 26px) + 10px); bottom: calc(clamp(14px, 2vw, 26px) + 10px); }

/* ---------- stack + links ---------- */
.stack { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 5vw, 5rem); padding-bottom: clamp(5rem, 10vw, 8rem); }
.stack__col { display: grid; gap: 1rem; align-content: start; }
.stack__col h2, .stack__col .h-sm { color: var(--blue-deep); }
.stack__list { list-style: none; padding: 0; margin: .5rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.stack__list li {
  padding: .55rem 1rem; border-radius: 999px; background: var(--paper); font-size: 12.5px; color: var(--ink-2);
  transition: transform .5s var(--ease-spring), background .3s;
}
.stack__list li:nth-child(3n) { background: var(--blue-2); }
.stack__list li:nth-child(4n) { background: var(--butter-2); }
.stack__list li:hover { transform: rotate(-4deg) scale(1.06); }
.stack__links { background: var(--paper); border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2.5rem); }
.stack__btns { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .5rem; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .intake__grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(5, 1fr); gap: .4rem; }
  .steps li { padding: .55rem .5rem; font-size: 10.5px; }
  .op--priya, .op--ship, .op--fefo { grid-column: span 6; grid-row: auto; }
  .op--mcp { grid-column: span 6; }
  .op--routers { grid-column: span 6; }
  .op--env { grid-template-columns: 1fr; }
  .op--env .chips { justify-content: flex-start; }
}
@media (max-width: 860px) {
  .br-hero__grid { grid-template-columns: 1fr; }
  .br-hero__label-wrap { width: min(100%, 420px); margin-top: 1rem; }
  .br-problem__cols { grid-template-columns: 1fr; }
  .intake__head { grid-template-columns: 1fr; }
  .nums__row { grid-template-columns: 1fr 1fr; }
  .stack { grid-template-columns: 1fr; }
  .op--routers { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 760px) {
  .br-hero { padding-top: calc(56px + 56px); }
  .chain__stage { height: 620px; }
  .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .steps li { font-size: 0; padding: .5rem; text-align: center; }
  .steps li span { font-size: 11px; }
  .po__line { display: none; }
  .po__table thead th:first-child { display: none; }
  .po__table tfoot th { font-size: 10px; }
  .fefo { grid-template-columns: repeat(3, 1fr); }
  .stamp--hero { right: -2%; bottom: -10%; }
  .ship-label__rows { grid-template-columns: 1fr; }
  .ship-label__rows > div { border-right: 0; border-bottom: 1.5px solid var(--kraft-ink); }
  .ship-label__rows > div:last-child { border-bottom: 0; }
}
@media (max-width: 480px) {
  .po__paper { padding: 1rem .8rem; }
  .po__table { font-size: 11px; }
  .po__pick { max-width: 120px; }
  .routers__grid { grid-template-columns: repeat(10, 1fr); width: 100%; }
  .routers__grid i { width: auto; aspect-ratio: 1; }
  .envs li { grid-template-columns: 12px 70px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .br-hero__ticker-track { animation: none; }
  .stamp--hero svg { animation: none; }
}

/* base.css sets .site-footer a { color: cream }, which hides the cream email pill text */
.site-footer .pill--cream { color: var(--ink); }
@media (max-width: 760px) {
  .br .next-project__blob { width: 150vw; }
  .br .next-project__tagline { max-width: 30ch; }
}
