/* pages.css — mega-nav + per-group templates (generated by build-pages-v2.py) */
#nav .bar { position: relative; }
#nav .links > a, #nav .dd > button {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--bone-dim); padding: 9px 10px; border-radius: 8px; cursor: pointer;
  background: none; border: 0; transition: color 0.3s; white-space: nowrap; font: inherit;
  font-family: var(--font-mono); font-size: 10.5px;
}
#nav .links > a:hover, #nav .dd > button:hover { color: var(--bone); }
#nav .dd > button .chev { font-size: 8px; color: var(--ember); transition: transform 0.3s var(--ease-out); }
#nav[data-open="product"] .dd[data-menu="product"] > button,
#nav[data-open="business"] .dd[data-menu="business"] > button,
#nav[data-open="resources"] .dd[data-menu="resources"] > button { color: var(--bone); }
#nav[data-open="product"] .dd[data-menu="product"] .chev,
#nav[data-open="business"] .dd[data-menu="business"] .chev,
#nav[data-open="resources"] .dd[data-menu="resources"] .chev { transform: rotate(180deg); }
#nav .nav-veil {
  position: fixed; inset: 0; z-index: -1; background: rgba(7,8,12,0.5);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
#nav[data-open] .nav-veil { opacity: 1; pointer-events: auto; }
#nav .panel {
  position: absolute; left: 0; right: 0; top: calc(100% + 10px); padding: 8px;
  background: rgba(12,14,21,0.97); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--hairline); border-radius: 16px;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,0.95);
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity 0.22s var(--ease-out), transform 0.22s var(--ease-out);
}
#nav[data-open="product"] .panel[data-panel="product"],
#nav[data-open="business"] .panel[data-panel="business"],
#nav[data-open="resources"] .panel[data-panel="resources"] { opacity: 1; transform: none; pointer-events: auto; }
#nav .panel .inner { display: grid; grid-template-columns: 1fr 3fr; gap: 20px; }
#nav .feat {
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px; grid-row: span 2;
  min-height: 300px; border-radius: 12px; background: var(--indigo); color: #fff; padding: 20px;
  transition: filter 0.3s;
}
#nav .feat:hover { filter: brightness(1.1); }
#nav .feat .ttl { display: flex; justify-content: space-between; gap: 12px; font-family: var(--font-display); font-weight: 360; font-size: clamp(24px, 2vw, 30px); line-height: 1.1; max-width: 240px; }
#nav .feat .arr { flex: none; transition: transform 0.3s var(--ease-out); }
#nav .feat:hover .arr { transform: translate(3px, -3px); }
#nav .feat .ft { max-width: 250px; font-size: 12.5px; line-height: 1.45; color: rgba(255,255,255,0.88); }
#nav .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; padding: 16px 20px 4px 0; align-content: start; }
#nav .cols .gh { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--ember); margin-bottom: 12px; }
#nav .cols a { display: block; padding: 5px 0; font-size: 14px; letter-spacing: -0.01em; color: var(--bone); opacity: 0.6; transition: opacity 0.3s, transform 0.3s var(--ease-out); }
#nav .cols a:hover { opacity: 1; transform: translateX(3px); }
#nav .panel .foot { grid-column: 2; padding: 6px 20px 12px 0; }
.roll .lbl { position: relative; display: block; height: 1.25em; overflow: hidden; }
.roll .lbl span { display: block; transition: transform 0.3s var(--ease-out); }
.roll .lbl span + span { position: absolute; inset: 0; transform: translateY(105%); }
.roll:hover .lbl span:first-child { transform: translateY(-105%); }
.roll:hover .lbl span + span { transform: translateY(0); }
#nav .menu-cta {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 54px; min-width: 272px; padding: 0 30px; border-radius: 999px;
  background: var(--apricot); color: var(--ink); font-size: 17px; letter-spacing: -0.02em;
  transition: background 0.3s;
}
#nav .menu-cta:hover { background: #ffcb9b; }
#nav .menu-cta .go { transition: transform 0.3s var(--ease-out); }
#nav .menu-cta:hover .go { transform: translateX(4px); }
#nav .cta-cluster { display: flex; align-items: center; gap: 8px; }
#nav .ghost {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--bone); background: rgba(236,231,221,0.08); border-radius: 999px; padding: 10px 18px;
  white-space: nowrap; transition: background 0.3s;
}
#nav .ghost:hover { background: rgba(236,231,221,0.16); }
#nav.scrolled .bar { height: 52px; background: rgba(12,14,21,0.94); }
#nav .burger { display: none; position: relative; width: 36px; height: 36px; flex: none; background: none; border: 0; cursor: pointer; }
#nav .burger span { position: absolute; left: 8px; right: 8px; height: 1.5px; background: var(--bone); transition: transform 0.3s var(--ease-out); }
#nav .burger span:nth-child(1) { top: 14px; } #nav .burger span:nth-child(2) { top: 21px; }
#nav.open .burger span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
#nav.open .burger span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
#nav .sheet {
  position: absolute; top: calc(100% + 6px); left: 14px; right: 14px; display: none;
  background: rgba(12, 14, 21, 0.97); border: 1px solid var(--hairline); border-radius: 16px; padding: 14px 18px;
  max-height: calc(100vh - 110px); overflow-y: auto;
}
#nav.open .sheet { display: block; }
#nav .sheet a { display: block; padding: 13px 6px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bone-dim); border-bottom: 1px solid rgba(236,231,221,0.07); }
#nav .sheet a:last-child { border-bottom: 0; }
#nav .sheet a:hover { color: var(--bone); }
@media (max-width: 1100px) { #nav .links, #nav .cta-cluster { display: none !important; } #nav .burger { display: block; } #nav .panel, #nav .nav-veil { display: none; } }

/* ---- deep-copy intro ---- */
.intro { max-width: 68ch; }
.intro p { margin-bottom: 1.5em; color: var(--bone-dim); font-size: clamp(16.5px, 1.35vw, 19px); line-height: 1.75; }
.intro p:first-child::first-letter {
  font-family: var(--font-display); font-weight: 380; float: left;
  font-size: 4.2em; line-height: 0.78; padding: 0.04em 0.12em 0 0; color: var(--apricot);
}

/* ---- STRATEGY: editorial chapters ---- */
.chapters { display: grid; grid-template-columns: 200px 1fr; gap: 40px; }
.chapters .rail-idx { position: sticky; top: 120px; align-self: start; display: grid; gap: 10px; }
.chapters .rail-idx span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--bone-dim); }
.chapters .rail-idx span b { color: var(--ember); font-weight: 500; margin-right: 8px; }
.chapter { padding: 34px 0; border-top: 1px solid var(--hairline); display: grid; grid-template-columns: 90px 1fr; gap: 24px; }
.chapter .no { font-family: var(--font-display); font-weight: 340; font-size: 44px; color: var(--ember); line-height: 1; }
.chapter h3 { font-family: var(--font-display); font-weight: 380; font-size: clamp(21px, 2vw, 27px); margin-bottom: 10px; }
.chapter p { color: var(--bone-dim); font-size: 15.5px; max-width: 58ch; }
@media (max-width: 900px) { .chapters { grid-template-columns: 1fr; } .chapters .rail-idx { display: none; } .chapter { grid-template-columns: 56px 1fr; } .chapter .no { font-size: 30px; } }

/* ---- INFRASTRUCTURE: console ---- */
.console { border: 1px solid var(--hairline); border-radius: 16px; background: #04050a; padding: 26px 28px; font-family: var(--font-mono); font-size: 13px; line-height: 2.1; overflow-x: auto; }
.console .ln { white-space: nowrap; color: var(--bone-dim); }
.console .ln .p { color: var(--ember); margin-right: 12px; }
.console .ln .ok { color: #59d499; }
.console .ln .val { color: var(--apricot); }
.console .cur { display: inline-block; width: 8px; height: 15px; background: var(--ember); vertical-align: -2px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: 16px; overflow: hidden; }
.specs .spec { background: var(--ink); padding: 26px 28px; transition: background 0.3s; }
.specs .spec:hover { background: var(--ink-2); }
.specs .spec .k { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--ember); }
.specs .spec h3 { font-family: var(--font-display); font-weight: 380; font-size: 21px; margin: 10px 0 8px; }
.specs .spec p { color: var(--bone-dim); font-size: 15px; }
@media (max-width: 800px) { .specs { grid-template-columns: 1fr; } }

/* ---- OPERATIONS: cycle timeline ---- */
.timeline { position: relative; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(var(--ember), var(--hairline)); }
.tl-item { position: relative; padding: 0 0 40px; }
.tl-item::before { content: ""; position: absolute; left: -30px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); border: 2px solid var(--ember); }
.tl-item .when { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--ember); }
.tl-item h3 { font-family: var(--font-display); font-weight: 380; font-size: clamp(20px, 1.9vw, 26px); margin: 8px 0; }
.tl-item p { color: var(--bone-dim); font-size: 15.5px; max-width: 62ch; }

/* ---- INDUSTRIES: case file ---- */
.stat-band { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--hairline); border-radius: 18px; overflow: hidden; }
.stat-band .s { padding: 30px 28px; border-left: 1px solid var(--hairline); background: var(--ink-2); }
.stat-band .s:first-child { border-left: 0; }
.stat-band .n { font-family: var(--font-display); font-weight: 340; font-size: clamp(40px, 4vw, 62px); line-height: 1; color: var(--apricot); }
.stat-band .l { margin-top: 10px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bone-dim); }
@media (max-width: 800px) { .stat-band { grid-template-columns: 1fr; } .stat-band .s { border-left: 0; border-top: 1px solid var(--hairline); } }
.plays { counter-reset: play; display: grid; gap: 14px; }
.play { counter-increment: play; display: grid; grid-template-columns: 74px 1fr; gap: 20px; border: 1px solid var(--hairline); border-radius: 16px; padding: 24px 26px; background: var(--ink-2); transition: border-color 0.35s, transform 0.35s var(--ease-out); }
.play:hover { border-color: rgba(255,187,126,0.4); transform: translateX(6px); }
.play::before { content: counter(play, decimal-leading-zero); font-family: var(--font-display); font-weight: 340; font-size: 40px; color: var(--ember); line-height: 1; }
.play h3 { font-family: var(--font-display); font-weight: 380; font-size: 20px; margin-bottom: 6px; }
.play p { color: var(--bone-dim); font-size: 15px; }

/* ---- BLOG cards ---- */
.posts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.post { border: 1px solid var(--hairline); border-radius: 18px; padding: 30px 28px; background: var(--ink-2); display: flex; flex-direction: column; gap: 14px; transition: border-color 0.4s, transform 0.4s var(--ease-out); }
.post:hover { border-color: rgba(255,187,126,0.4); transform: translateY(-4px); }
.post .meta { display: flex; gap: 14px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ember); }
.post .meta span + span { color: var(--bone-dim); }
.post h3 { font-family: var(--font-display); font-weight: 380; font-size: clamp(20px, 1.9vw, 25px); line-height: 1.2; }
.post p { color: var(--bone-dim); font-size: 15px; }
@media (max-width: 800px) { .posts { grid-template-columns: 1fr; } }

/* ---- MESSAGING playbook page ---- */
.msg-sub { max-width: 62ch; color: var(--bone-dim); font-size: 16px; margin: -18px 0 34px; }
.msg-k { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ember); }
.msg-layers { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.msg-layer { border: 1px solid var(--hairline); border-radius: 18px; background: var(--ink-2); padding: 30px 28px; }
.msg-layer h3 { font-family: var(--font-display); font-weight: 380; font-size: clamp(19px, 1.8vw, 23px); line-height: 1.25; margin: 12px 0 16px; }
.msg-layer ul { list-style: none; display: grid; gap: 10px; }
.msg-layer li { color: var(--bone-dim); font-size: 14.5px; padding-left: 18px; position: relative; }
.msg-layer li::before { content: "▸"; position: absolute; left: 0; color: var(--apricot); }
.msg-layer li b { color: var(--bone); font-weight: 500; }
.msg-matrix { border: 1px solid var(--hairline); border-radius: 18px; overflow: hidden; }
.msg-mrow { display: grid; grid-template-columns: 180px 1fr 1.2fr; gap: 24px; padding: 22px 28px; background: var(--ink-2); border-top: 1px solid var(--hairline); align-items: baseline; }
.msg-mrow:first-child { border-top: 0; }
.msg-mrow:hover { background: rgba(255,187,126,0.04); }
.msg-dim { font-family: var(--font-display); font-weight: 400; font-size: 19px; color: var(--apricot); }
.msg-q { color: var(--bone-dim); font-size: 14.5px; font-style: italic; }
.msg-do { font-size: 14.5px; }
.msg-eq { display: flex; align-items: center; justify-content: center; gap: 22px; border: 1px solid var(--hairline); border-radius: 18px; background: var(--ink-2); padding: 40px 28px; margin-bottom: 16px; flex-wrap: wrap; }
.msg-eq-l { font-family: var(--font-display); font-style: italic; font-weight: 380; font-size: clamp(22px, 2.4vw, 30px); }
.msg-eq-s { font-family: var(--font-display); font-size: 30px; color: var(--ember); }
.msg-eq-frac { display: grid; text-align: center; gap: 8px; }
.msg-num, .msg-den { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.06em; }
.msg-num { color: var(--apricot); padding-bottom: 8px; border-bottom: 1px solid var(--ember); }
.msg-den { color: var(--bone-dim); }
.msg-pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.msg-pillar { border: 1px solid var(--hairline); border-radius: 16px; background: var(--ink-2); padding: 24px 22px; }
.msg-pillar.up { border-top: 2px solid var(--apricot); }
.msg-pillar.dn { border-top: 2px solid rgba(255,92,51,0.55); }
.msg-pillar h3 { font-family: var(--font-display); font-weight: 380; font-size: 19px; margin: 10px 0 8px; }
.msg-pillar p { color: var(--bone-dim); font-size: 13.5px; }
.msg-rule { display: grid; gap: 8px; margin-top: 16px; border: 1px dashed rgba(255,92,51,0.5); border-radius: 16px; padding: 24px 26px; background: rgba(255,92,51,0.05); }
.msg-rule p { font-size: 15px; max-width: 72ch; }
.msg-hooks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.msg-hook { border: 1px solid var(--hairline); border-radius: 16px; background: var(--ink-2); padding: 26px 24px; display: grid; gap: 12px; align-content: start; transition: border-color 0.35s; }
.msg-hook:hover { border-color: rgba(255,187,126,0.4); }
.msg-ex { font-family: var(--font-display); font-style: italic; font-weight: 360; font-size: 17.5px; line-height: 1.35; }
.msg-hook > p:last-child { color: var(--bone-dim); font-size: 13.5px; }
.msg-swap { display: grid; gap: 12px; }
.msg-swaprow { display: grid; grid-template-columns: 1fr 40px 1fr; gap: 16px; align-items: center; border: 1px solid var(--hairline); border-radius: 14px; background: var(--ink-2); padding: 18px 24px; }
.msg-bad { color: var(--bone-dim); font-size: 15px; text-decoration: line-through; text-decoration-color: rgba(255,92,51,0.6); }
.msg-arr { text-align: center; color: var(--ember); font-size: 18px; }
.msg-good { font-family: var(--font-display); font-weight: 400; font-size: 17px; color: var(--apricot); }
.msg-metrics { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--hairline); border-radius: 18px; overflow: hidden; }
.msg-metric { padding: 30px 28px; background: var(--ink-2); border-left: 1px solid var(--hairline); }
.msg-metric:first-child { border-left: 0; }
.msg-n { display: block; font-family: var(--font-display); font-weight: 340; font-size: clamp(36px, 3.6vw, 54px); line-height: 1; color: var(--apricot); }
.msg-l { display: block; margin: 10px 0 12px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bone-dim); }
.msg-metric p { color: var(--bone-dim); font-size: 13.5px; }
.msg-note { margin-top: 24px; max-width: 72ch; color: var(--bone-dim); font-size: 15px; border-left: 2px solid var(--ember); padding-left: 20px; }
@media (max-width: 900px) {
  .msg-layers, .msg-pillars, .msg-hooks, .msg-metrics { grid-template-columns: 1fr; }
  .msg-mrow { grid-template-columns: 1fr; gap: 8px; }
  .msg-metric { border-left: 0; border-top: 1px solid var(--hairline); }
  .msg-metric:first-child { border-top: 0; }
  .msg-swaprow { grid-template-columns: 1fr; gap: 6px; }
  .msg-arr { text-align: left; }
}

/* ---- LEAD SOURCING pipeline page ---- */
.ls-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ls-tier { position: relative; border: 1px solid var(--hairline); border-radius: 16px; background: var(--ink-2); padding: 26px 24px 24px; overflow: hidden; }
.ls-tier h3 { font-family: var(--font-display); font-weight: 380; font-size: 19px; margin: 10px 0 8px; }
.ls-tier p { color: var(--bone-dim); font-size: 13.5px; max-width: 90%; }
.ls-pct { position: absolute; right: 18px; bottom: 10px; font-family: var(--font-display); font-weight: 340; font-size: 44px; line-height: 1; color: rgba(255,187,126,0.18); }
.ls-extract { display: grid; grid-template-columns: 1fr 32px 1fr 32px 1.2fr; gap: 10px; align-items: stretch; margin-top: 16px; }
.ls-step { border: 1px solid var(--hairline); border-radius: 14px; background: var(--ink-2); padding: 20px 20px; display: grid; gap: 8px; align-content: start; }
.ls-step p { color: var(--bone-dim); font-size: 13.5px; }
.ls-flow { align-self: center; text-align: center; color: var(--ember); font-size: 18px; }
.ls-code code { font-family: var(--font-mono); font-size: 12px; line-height: 1.6; color: var(--apricot); }
.ls-pipe { display: grid; gap: 0; }
.ls-phase { display: grid; grid-template-columns: 74px 1fr; gap: 20px; padding: 24px 26px; border: 1px solid var(--hairline); border-top: 0; background: var(--ink-2); position: relative; }
.ls-phase:first-child { border-top: 1px solid var(--hairline); border-radius: 16px 16px 0 0; }
.ls-phase:last-child { border-radius: 0 0 16px 16px; }
.ls-no { font-family: var(--font-display); font-weight: 340; font-size: 40px; color: var(--ember); line-height: 1; }
.ls-phase h3 { font-family: var(--font-display); font-weight: 380; font-size: 20px; margin-bottom: 6px; }
.ls-phase p { color: var(--bone-dim); font-size: 14.5px; }
.ls-phase + .ls-phase::before { content: "↓"; position: absolute; left: 38px; top: -13px; color: var(--ember); font-size: 15px; background: var(--ink-2); padding: 0 4px; z-index: 1; }
@media (max-width: 900px) {
  .ls-tiers { grid-template-columns: 1fr; }
  .ls-extract { grid-template-columns: 1fr; }
  .ls-flow { transform: rotate(90deg); }
}

/* ---- ENRICHMENT & SIGNALS page ---- */
.es-tax { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.es-row { grid-template-columns: 220px 1fr 1.2fr; }
.es-payload { font-family: var(--font-mono); font-size: 11.5px; line-height: 1.7; color: var(--apricot); }
.es-row .msg-ex { font-size: 15.5px; }
@media (max-width: 900px) { .es-tax { grid-template-columns: 1fr; } .es-row { grid-template-columns: 1fr; } }

/* ---- LEAD SCORING page ---- */
.sc-hot { border-left: 2px solid var(--ember); }
.sc-hot .ls-no { color: var(--apricot); }

/* about + team — full roster ------------------------------------------ */
.roster-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 1.8vw, 24px); }
.member { border: 1px solid var(--hairline); border-radius: 18px; overflow: hidden; background: var(--ink-2); display: flex; flex-direction: column; transition: border-color .4s, transform .4s var(--ease-out); }
.member:hover { border-color: rgba(255,187,126,0.4); transform: translateY(-4px); }
.member .photo { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--ink-3); }
.member .photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; filter: grayscale(1) brightness(0.94); transition: filter .5s var(--ease-out), transform .7s var(--ease-out); }
.member:hover .photo img { filter: grayscale(0) brightness(1); transform: scale(1.04); }
.member .info { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; }
.member .info .nm { font-family: var(--font-display); font-weight: 380; font-size: clamp(20px, 1.8vw, 24px); line-height: 1.1; }
.member .info .rl { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--apricot); }
.member .info .bio { margin-top: 4px; color: var(--bone-dim); font-size: 14.5px; line-height: 1.6; }
.member .info .li { margin-top: 6px; align-self: flex-start; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bone-dim); text-decoration: none; border-bottom: 1px solid var(--hairline); padding-bottom: 1px; transition: color .3s, border-color .3s; }
.member .info .li:hover { color: var(--apricot); border-color: var(--apricot); }
@media (max-width: 900px) { .roster-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .roster-grid { grid-template-columns: 1fr; } }

/* ---- EMAIL INFRA warmup ramp chart ---- */
.ei-ramp { border: 1px solid var(--hairline); border-radius: 16px; background: var(--ink-2); padding: 26px 28px 18px; margin-bottom: 16px; }
.ei-bars { display: flex; align-items: flex-end; gap: 10px; height: 150px; }
.ei-bars span { flex: 1; background: linear-gradient(to top, var(--ember), var(--apricot)); border-radius: 4px 4px 0 0; opacity: 0.85; min-height: 6px; }
.ei-axis { display: flex; justify-content: space-between; margin-top: 12px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bone-dim); }

/* ---- mobile sheet: collapsible sub-nav groups ---- */
#nav .sheet details { border-bottom: 1px solid rgba(236,231,221,0.07); }
#nav .sheet summary { display: flex; justify-content: space-between; align-items: center; padding: 13px 6px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bone-dim); cursor: pointer; list-style: none; }
#nav .sheet summary::-webkit-details-marker { display: none; }
#nav .sheet summary::after { content: "+"; color: var(--ember); font-size: 15px; margin-left: 12px; }
#nav .sheet details[open] summary::after { content: "−"; }
#nav .sheet details[open] summary { color: var(--bone); }
#nav .sheet details a { padding: 11px 6px 11px 20px; font-size: 10px; letter-spacing: 0.16em; border-bottom: 0; }
#nav .sheet details a:hover { color: var(--apricot); }

/* ---- INDUSTRY case-study pages ---- */
.cs-grid { display: grid; gap: 14px; }
.cs-card { border: 1px solid var(--hairline); border-radius: 18px; background: var(--ink-2); padding: 28px 30px; transition: border-color 0.35s; }
.cs-card:hover { border-color: rgba(255,187,126,0.4); }
.cs-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 6px; }
.cs-id { display: flex; align-items: center; gap: 16px; min-width: 0; }
.cs-id img { height: 30px; width: auto; max-width: 190px; opacity: 0.9; }
.cs-name { font-family: var(--font-display); font-weight: 390; font-size: clamp(20px, 1.9vw, 25px); line-height: 1.15; }
.cs-sector { display: block; margin-top: 3px; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--bone-dim); }
.cs-stats { display: flex; gap: 26px; flex-shrink: 0; }
.cs-stat .n { display: block; font-family: var(--font-display); font-weight: 340; font-size: clamp(26px, 2.6vw, 38px); line-height: 1; color: var(--apricot); }
.cs-stat .l { display: block; margin-top: 5px; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bone-dim); }
.cs-sum { color: var(--bone-dim); font-size: 14.5px; max-width: 72ch; margin-bottom: 16px; }
.cs-body { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.cs-body .k { display: block; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ember); margin-bottom: 7px; }
.cs-body p { color: var(--bone-dim); font-size: 13.5px; line-height: 1.6; }
.cs-signals { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.cs-signals span { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; color: var(--bone-dim); border: 1px solid var(--hairline); border-radius: 999px; padding: 5px 12px; }
@media (max-width: 760px) { .cs-body { grid-template-columns: 1fr; } .cs-stats { gap: 18px; } }

/* ---- client logo cloud (interior pages) ---- */
.lc-cloud { margin-top: clamp(40px, 6vh, 72px); }
.lc-cloud .lc-kicker { text-align: center; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--bone-dim); margin-bottom: 26px; }
.lc-cloud .lc-kicker b { color: var(--apricot); font-weight: 500; }
.lc-cloud .lc-band { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); padding: 8px 0; }
.lc-cloud .lc-row { overflow: hidden; padding: 14px 0; -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent); }
.lc-cloud .lc-row + .lc-row { border-top: 1px solid rgba(236,231,221,0.05); }
.lc-cloud .lc-track { display: flex; align-items: center; gap: 56px; width: max-content; animation: lc-scroll 160s linear infinite; }
.lc-cloud .lc-track.lc-rev { animation-direction: reverse; }
.lc-cloud .lc-row:hover .lc-track { animation-play-state: paused; }
.lc-cloud .lc-track img { height: 26px; width: auto; opacity: 0.5; filter: grayscale(1); transition: opacity 0.35s; }
.lc-cloud .lc-track img:hover { opacity: 1; }
@keyframes lc-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 700px) { .lc-cloud .lc-track img { height: 20px; } .lc-cloud .lc-track { gap: 38px; animation-duration: 120s; } }
