/* =====================================================================
   2026-10-29 SIDE REPAIR — targeted
   1. Live-site evidence on the audit slide.
   2. The passed homepage direction rebuilt as real, readable HTML.
   3. Readability at 1366/1440, opaque mobile chrome and safe insets.
   4. Index overlay, rail and a stratum-cut transition.
   ===================================================================== */

/* ---- Audit evidence: the actual live site, once -------------------- */
.journey-head {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(250px, 0.62fr);
  align-items: end;
  gap: calc(30 * var(--s));
  max-width: none;
}
.journey-copy { display: flex; flex-direction: column; gap: calc(16 * var(--s)); min-width: 0; }
.evidence-shot {
  margin: 0;
  border: 1px solid var(--rule-dark);
  border-radius: calc(10 * var(--s));
  overflow: hidden;
  background: #0E1013;
  box-shadow: 0 calc(16 * var(--s)) calc(40 * var(--s)) rgba(0, 0, 0, 0.34);
}
.evidence-shot-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: calc(7 * var(--s)) calc(10 * var(--s));
  background: #171A1F;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--mono);
  font-size: max(9px, calc(10 * var(--s)));
  letter-spacing: 0.1em;
  color: var(--fog);
  white-space: nowrap;
}
.evidence-shot-bar span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.evidence-shot-bar i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--strata-leaf);
  box-shadow: 0 0 0 3px rgba(60, 250, 26, 0.12);
}
.evidence-shot-img { aspect-ratio: 16 / 9; overflow: hidden; background: #DCD6C6; }
.evidence-shot-img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.evidence-shot figcaption {
  padding: calc(8 * var(--s)) calc(10 * var(--s));
  font-family: var(--mono);
  font-size: max(9px, calc(10 * var(--s)));
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mist);
}

/* ---- Concept toolbar ------------------------------------------------ */
.concept-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 26px;
}
.concept-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: max(9px, calc(10.5 * var(--s)));
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mist);
}
.concept-live i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--strata-leaf);
  box-shadow: 0 0 0 3px rgba(60, 250, 26, 0.12);
}
.concept-toolbar-actions { display: flex; gap: 6px; }
.concept-toolbar-actions button,
.concept-close {
  border: 1px solid rgba(246, 244, 239, 0.24);
  border-radius: 999px;
  background: transparent;
  color: var(--ivory);
  font-family: var(--mono);
  font-size: max(9px, calc(10 * var(--s)));
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 7px 10px;
  cursor: pointer;
}
.concept-toolbar-actions button:hover,
.concept-close:hover { background: rgba(246, 244, 239, 0.1); border-color: var(--strata-sky); }
.concept-chip {
  flex: none;
  font-family: var(--mono);
  font-size: max(8px, calc(9 * var(--s)));
  letter-spacing: 0.12em;
  color: #0B0D10;
  background: var(--strata-sky);
  border-radius: 4px;
  padding: 4px 6px;
}
.browser-window { position: relative; }
.concept-close {
  display: none;
  position: absolute;
  z-index: 7;
  top: 7px;
  right: 8px;
  background: #0B0D10;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
}
.browser-window.is-expanded .concept-chip { display: none; }
.browser-window.is-phone .sc-nav { padding-right: 84px; }

/* Expanded concept: same node, full readable size, no duplicate UI. */
.browser-window.is-expanded {
  position: fixed;
  z-index: 95;
  inset: 3.2vh 3.2vw;
  width: auto;
  height: auto;
  max-height: 93.6vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 0 100vmax rgba(4, 6, 5, 0.82), 0 40px 100px rgba(0, 0, 0, 0.7);
  border-radius: 12px;
}
.browser-window.is-expanded .concept-close { display: inline-flex; align-items: center; gap: 5px; }
.browser-window.is-expanded .site-concept { height: auto; flex: 1; min-height: 0; }
.browser-window.is-expanded .sc-main { min-height: 0; overflow-y: auto; }
body.concept-open, body.index-open { overflow: hidden; }

/* Phone view is a real second layout, not a shrunken browser. */
.browser-window.is-expanded.is-phone {
  inset: 3.2vh 50% auto auto;
  transform: translateX(50%);
  width: min(390px, 92vw);
  height: min(780px, 93vh);
  max-height: 93vh;
  border-radius: 38px;
  border: 8px solid #060807;
  background: #060807;
}
.browser-window.is-phone .browser-bar { display: none; }
.browser-window.is-phone .site-concept { margin-top: 70px; border-radius: 24px 24px 30px 30px; }
.browser-window.is-phone .concept-close { top: 8px; }

/* ---- The concept itself -------------------------------------------- */
.site-concept {
  container-type: inline-size;
  --sc-ink: #14201B;
  --sc-paper: #F6F1E4;
  --sc-paper-2: #FBF8EF;
  --sc-red: #A82E24;
  --sc-green: #3C5A45;
  --sc-line: rgba(20, 32, 27, 0.16);
  --sc-body: 12.5px;
  --sc-small: 10.5px;
  --sc-h3: 27px;
  --sc-nav: 11px;
  height: auto;
  min-height: 0;
  overflow: hidden;
  background: var(--sc-paper);
  color: var(--sc-ink);
  font-family: var(--body);
  display: flex;
  flex-direction: column;
}
.site-concept button, .site-concept input, .site-concept select, .site-concept textarea { font: inherit; }
.sc-nav {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 8px 14px;
  background: var(--sc-paper-2);
  border-bottom: 1px solid var(--sc-line);
  position: relative;
  z-index: 3;
}
.sc-logo { height: 34px; width: auto; flex: none; }
.sc-links { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.sc-link {
  border: 0;
  background: transparent;
  color: var(--sc-ink);
  font-family: var(--mono);
  font-size: var(--sc-nav);
  letter-spacing: 0.02em;
  padding: 7px 8px;
  border-radius: 3px;
  cursor: pointer;
  white-space: nowrap;
}
.sc-link:hover { background: rgba(20, 32, 27, 0.07); }
.sc-link.is-active { background: var(--sc-ink); color: var(--sc-paper); }
.sc-phone {
  flex: none;
  color: var(--sc-red);
  font-family: var(--mono);
  font-size: var(--sc-small);
  text-decoration: none;
  border-left: 1px solid var(--sc-line);
  padding-left: 10px;
  margin-left: 4px;
  white-space: nowrap;
}
.sc-main { min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(20,32,27,.28) transparent; }
.sc-main::-webkit-scrollbar { width: 5px; }
.sc-main::-webkit-scrollbar-thumb { background: rgba(20, 32, 27, 0.26); border-radius: 9px; }
.sc-view { display: none; }
.sc-view.is-active { display: block; }

.sc-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  min-height: 250px;
  border-bottom: 1px solid var(--sc-line);
  background: var(--sc-paper);
}
.sc-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 22px 10px 20px 22px;
  min-width: 0;
}
.sc-eyebrow {
  font-family: var(--mono);
  font-size: var(--sc-small);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sc-green);
}
.site-concept h1, .site-concept h2, .site-concept h3 { color: var(--sc-ink); }
.sc-hero h3, .sc-services-head h3, .sc-project-copy h3 {
  font-family: var(--display);
  font-size: var(--sc-h3);
  line-height: 0.98;
  letter-spacing: -0.045em;
  margin: 0;
  text-wrap: balance;
}
.sc-hero p, .sc-services-head p, .sc-project-copy p {
  font-size: var(--sc-body);
  line-height: 1.45;
  color: #34433B;
  max-width: 44ch;
}
.sc-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 2px; }
.sc-btn {
  border: 1px solid var(--sc-red);
  border-radius: 3px;
  background: var(--sc-red);
  color: #FFF8EC;
  font-family: var(--mono);
  font-size: var(--sc-small);
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 9px 12px;
  cursor: pointer;
  text-align: left;
}
.sc-btn:hover { background: #8E241C; }
.sc-btn-ghost { background: transparent; color: var(--sc-ink); border: 0; padding: 9px 0; text-decoration: underline; text-underline-offset: 3px; }
.sc-btn-ghost:hover { background: transparent; color: var(--sc-red); }
.sc-proof {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 0;
  margin: 2px 0 0;
  font-family: var(--mono);
  font-size: var(--sc-small);
  color: #43534A;
}
.sc-proof li::before { content: "■"; color: var(--sc-red); font-size: 7px; margin-right: 5px; vertical-align: 1px; }
.sc-strata-wrap { position: relative; min-height: 220px; overflow: hidden; background: #E9EFE9; }
.sc-strata { width: 100%; height: 100%; object-fit: cover; display: block; }
.sc-fig-label {
  position: absolute;
  right: 10px;
  bottom: 8px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #F6F1E4;
  background: rgba(20, 32, 27, 0.72);
  padding: 3px 5px;
}
.sc-svc-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--sc-line);
  border-bottom: 1px solid var(--sc-line);
}
.sc-svc {
  border: 0;
  background: var(--sc-paper-2);
  color: var(--sc-ink);
  text-align: left;
  padding: 8px 10px 9px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 8px;
  align-items: center;
  cursor: pointer;
}
.sc-svc:hover { background: #FFFDF6; }
.sc-svc-art { grid-row: 1 / 3; width: 46px; height: 38px; border-radius: 2px; display: block; }
.art-a { background: linear-gradient(165deg, #D8C49C 0 28%, #B69A69 28% 47%, #8E1730 47% 58%, #43513F 58% 100%); }
.art-b { background: linear-gradient(155deg, #DCE8DF 0 22%, #7E947F 22% 42%, #C9B58A 42% 63%, #2F3A31 63% 100%); }
.art-c { background: linear-gradient(170deg, #EFE6CF 0 25%, #B7A681 25% 47%, #8C8D80 47% 61%, #27332D 61% 100%); }
.sc-svc b { font-family: var(--display); font-size: calc(var(--sc-body) + 1px); line-height: 1.1; letter-spacing: -0.02em; }
.sc-svc small { font-family: var(--mono); font-size: calc(var(--sc-small) - 1px); line-height: 1.3; color: #4D5B52; }
.sc-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  padding: 7px 12px;
  background: var(--sc-ink);
  color: #EFE9DA;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.05em;
}
.sc-strip span::before { content: "■"; color: #D9654A; font-size: 6px; margin-right: 5px; vertical-align: 1px; }

/* Services view */
.sc-services-head { padding: 18px 22px 12px; border-bottom: 1px solid var(--sc-line); }
.sc-services-head h3 { margin: 6px 0 5px; }
.sc-services-head p { font-size: var(--sc-body); }
.sc-svc-list { display: grid; }
.sc-svc-list article {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: start;
  padding: 11px 22px;
  border-bottom: 1px solid var(--sc-line);
}
.sc-svc-list .sc-num { font-family: var(--mono); font-size: var(--sc-small); color: var(--sc-red); }
.sc-svc-list b { font-family: var(--display); font-size: calc(var(--sc-body) + 1px); letter-spacing: -0.02em; }
.sc-svc-list p { font-size: calc(var(--sc-body) - .5px); line-height: 1.4; color: #3E4D44; margin-top: 2px; }
.sc-tag { font-family: var(--mono); font-size: 8.5px; line-height: 1.4; letter-spacing: 0.04em; text-transform: uppercase; color: #526257; text-align: right; max-width: 120px; }
.sc-inline-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 22px; font-family: var(--mono); font-size: var(--sc-small); color: #3E4D44;
}

/* Project view */
.sc-project { display: grid; grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr); min-height: 330px; }
.sc-project-copy { padding: 22px; background: #EFE9DA; border-right: 1px solid var(--sc-line); }
.sc-project-copy h3 { margin: 8px 0 8px; }
.sc-project-copy p { font-size: var(--sc-body); }
.sc-project-copy ol { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 7px; }
.sc-project-copy li { display: flex; gap: 8px; align-items: baseline; font-family: var(--mono); font-size: var(--sc-small); border-top: 1px solid var(--sc-line); padding-top: 7px; }
.sc-project-copy li b { color: var(--sc-red); font-weight: 600; }
.sc-form { padding: 18px 22px 16px; display: grid; gap: 8px; align-content: start; }
.sc-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sc-field { display: grid; gap: 3px; font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.08em; text-transform: uppercase; color: #526257; }
.sc-field input, .sc-field select, .sc-field textarea {
  width: 100%;
  border: 1px solid rgba(20, 32, 27, 0.22);
  border-radius: 2px;
  background: #FFFDF6;
  color: var(--sc-ink);
  font-family: var(--body);
  font-size: var(--sc-body);
  padding: 7px 8px;
  min-width: 0;
}
.sc-field textarea { resize: vertical; min-height: 38px; }
.sc-upload {
  border: 1px dashed rgba(20, 32, 27, 0.3);
  border-radius: 2px;
  padding: 7px 9px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  background: rgba(255, 253, 246, 0.6);
  font-family: var(--mono);
  font-size: 8.5px;
  color: #526257;
}
.sc-upload b { color: var(--sc-ink); text-transform: uppercase; letter-spacing: 0.08em; }
.sc-submit { justify-self: start; margin-top: 1px; }
.sc-status { font-family: var(--mono); font-size: 9.5px; line-height: 1.4; color: #2E6242; min-height: 13px; }
.sc-disclaimer { font-size: 8.5px; line-height: 1.4; color: #6B766D; }
.sc-foot {
  flex: none;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 12px;
  background: #E6DECC;
  border-top: 1px solid var(--sc-line);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.03em;
  color: #4D5A50;
}

/* Compact concept at 607-800 px: keep the hierarchy, allow the main to scroll. */
@container (max-width: 560px) {
  .site-concept { --sc-body: 13px; --sc-small: 11px; --sc-h3: 29px; --sc-nav: 11.5px; }
  .sc-nav { min-height: 48px; padding: 7px 10px; gap: 6px; }
  .sc-logo { height: 30px; }
  .sc-link { padding: 6px 6px; }
  .sc-phone { display: none; }
  .sc-hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .sc-hero-copy { padding: 18px 14px 14px; }
  .sc-strata-wrap { min-height: 190px; border-top: 1px solid var(--sc-line); }
  .sc-svc-row { grid-template-columns: minmax(0, 1fr); }
  .sc-svc { grid-template-columns: 50px minmax(0, 1fr); }
  .sc-svc-art { width: 50px; height: 42px; }
  .sc-strip { font-size: 9px; }
  .sc-services-head, .sc-svc-list article { padding-left: 14px; padding-right: 14px; }
  .sc-svc-list article { grid-template-columns: 20px minmax(0, 1fr); }
  .sc-tag { display: none; }
  .sc-inline-cta { padding-left: 14px; padding-right: 14px; }
  .sc-project { grid-template-columns: minmax(0, 1fr); }
  .sc-project-copy { border-right: 0; border-bottom: 1px solid var(--sc-line); padding: 16px 14px; }
  .sc-form { padding: 14px; }
  .sc-form-row { grid-template-columns: 1fr; }
  .sc-foot { flex-direction: column; gap: 1px; font-size: 8.5px; }
}

/* Mid-size concept frame (1366 deck): keep the three service categories
   visible without shrinking the headline into unreadability. */
@container (min-width: 561px) and (max-width: 700px) {
  .site-concept { --sc-body: 10.5px; --sc-small: 9px; --sc-h3: 22px; --sc-nav: 10px; }
  .sc-nav { min-height: 42px; padding: 5px 10px; }
  .sc-logo { height: 28px; }
  .sc-link { padding: 5px 6px; }
  .sc-hero { min-height: 212px; }
  .sc-hero-copy { padding: 12px 8px 11px 14px; gap: 5px; }
  .sc-hero p { line-height: 1.3; }
  .sc-cta-row { flex-wrap: nowrap; gap: 6px; }
  .sc-btn { padding: 6px 7px; white-space: nowrap; font-size: 9px; }
  .sc-btn-ghost { display: none; }
  .sc-proof { display: none; }
  .sc-strata-wrap { min-height: 190px; }
  .sc-svc { padding: 6px 8px; grid-template-columns: 38px minmax(0, 1fr); grid-template-rows: auto; column-gap: 6px; align-items: center; }
  .sc-svc-art { width: 38px; height: 32px; grid-row: 1; }
  .sc-svc b { font-size: 10.5px; }
  .sc-svc small { display: none; }
  .sc-strip { font-size: 7.5px; padding: 5px 8px; }
  .sc-services-head { padding: 11px 16px 8px; }
  .sc-services-head p { display: none; }
  .sc-svc-list article { padding: 7px 16px; grid-template-columns: 20px minmax(0, 1fr); }
  .sc-svc-list p { font-size: 9.5px; line-height: 1.3; }
  .sc-svc-list b { font-size: 11px; }
  .sc-tag { display: none; }
  .sc-inline-cta { padding: 8px 16px; }
  .sc-project { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .sc-project-copy { display: none; }
  .sc-form { padding: 13px 16px 11px; gap: 6px; }
  .sc-optional { display: none; }
  .sc-form .sc-disclaimer { font-size: 8px; }
}

/* Expanded concept: readable at 100% zoom, with real page scrolling. */
.browser-window.is-expanded .site-concept {
  --sc-body: 16px;
  --sc-small: 12.5px;
  --sc-h3: 42px;
  --sc-nav: 14px;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
}
.browser-window.is-expanded .sc-hero { min-height: 340px; }
.browser-window.is-expanded .sc-hero-copy { padding: 34px 18px 30px 34px; gap: 14px; }
.browser-window.is-expanded .sc-hero h3 { max-width: 13ch; }
.browser-window.is-expanded .sc-nav { padding: 12px 22px; min-height: 66px; }
.browser-window.is-expanded .sc-logo { height: 44px; }
.browser-window.is-expanded .sc-svc { padding: 14px 18px; grid-template-columns: 62px minmax(0, 1fr); }
.browser-window.is-expanded .sc-svc-art { width: 62px; height: 50px; }
.browser-window.is-expanded .sc-services-head { padding: 28px 34px 18px; }
.browser-window.is-expanded .sc-svc-list article { padding: 16px 34px; grid-template-columns: 30px minmax(0, 1fr) 180px; }
.browser-window.is-expanded .sc-tag { font-size: 10.5px; max-width: 180px; }
.browser-window.is-expanded .sc-inline-cta { padding: 18px 34px; }
.browser-window.is-expanded .sc-project-copy { padding: 32px; }
.browser-window.is-expanded .sc-form { padding: 26px 32px; gap: 12px; max-width: 640px; }
.browser-window.is-expanded .sc-field { font-size: 10px; }
.browser-window.is-expanded .sc-upload, .browser-window.is-expanded .sc-disclaimer { font-size: 10.5px; }
.browser-window.is-expanded .sc-status { font-size: 12px; }
.browser-window.is-expanded .sc-strip { font-size: 10.5px; padding: 10px 22px; }
.browser-window.is-expanded .sc-foot { font-size: 10.5px; padding: 10px 22px; }

/* ---- Index overlay, rail, mobile masthead -------------------------- */
.rail {
  position: fixed;
  z-index: 55;
  right: max(14px, calc((100vw - min(96vw, 1640px)) / 2 - 26px));
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 9px;
  align-items: center;
}
.rail button {
  width: 18px;
  height: 18px;
  padding: 0;
  border: 1px solid rgba(246, 244, 239, 0.26);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.rail button::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: transparent;
}
.rail button.is-active { border-color: var(--strata-sky); }
.rail button.is-active::after { background: var(--strata-sky); }
.rail button span {
  position: absolute;
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ivory);
  background: rgba(11, 12, 14, 0.96);
  border: 1px solid rgba(246, 244, 239, 0.18);
  border-radius: 4px;
  padding: 5px 7px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
}
.rail button:hover span, .rail button:focus-visible span { opacity: 1; }
@media (max-width: 1499px) { .rail { display: none; } }

.index-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(4, 6, 5, 0.86);
  backdrop-filter: blur(14px);
  display: grid;
  place-items: center;
  padding: 24px;
}
.index-overlay[hidden] { display: none; }
.index-panel {
  width: min(1180px, 96vw);
  max-height: 90vh;
  overflow: auto;
  background: #0D0F11;
  border: 1px solid rgba(246, 244, 239, 0.16);
  border-radius: 14px;
  padding: clamp(20px, 3vw, 40px);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.66);
}
.index-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.index-head h2 { font-family: var(--display); font-size: clamp(30px, 3.4vw, 54px); line-height: .98; letter-spacing: -.05em; margin-top: 8px; }
.index-head h2 em { font-style: normal; color: var(--sky-text); }
.index-close {
  flex: none;
  border: 1px solid rgba(246, 244, 239, 0.3);
  border-radius: 999px;
  background: transparent;
  color: var(--ivory);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  padding: 9px 12px;
  cursor: pointer;
}
.index-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.index-card {
  text-align: left;
  border: 1px solid rgba(246, 244, 239, 0.13);
  border-left: 3px solid var(--edge, var(--strata-sky));
  border-radius: 8px;
  background: #15181C;
  color: var(--ivory);
  padding: 15px 16px;
  cursor: pointer;
  min-height: 108px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.index-card:hover, .index-card.is-current { background: #1D2228; border-color: rgba(246, 244, 239, 0.32); }
.index-card .ic-num { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: var(--mist); }
.index-card b { font-family: var(--display); font-size: clamp(16px, 1.3vw, 21px); line-height: 1.08; letter-spacing: -.02em; }
.index-card small { font-family: var(--mono); font-size: 10px; line-height: 1.4; letter-spacing: .04em; color: var(--mist); text-transform: uppercase; }
.index-foot { margin-top: 18px; font-family: var(--mono); font-size: 10px; line-height: 1.6; letter-spacing: .04em; color: var(--mist); }

.mobile-bar {
  display: none;
  position: fixed;
  z-index: 65;
  inset: 0 0 auto;
  height: calc(54px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 14px 0;
  align-items: center;
  gap: 10px;
  background: #0B0C0E;
  border-bottom: 1px solid rgba(246, 244, 239, 0.16);
}
.mobile-bar img { height: 30px; width: auto; flex: none; }
.mobile-bar-title { font-family: var(--display); font-size: 13px; letter-spacing: -.01em; color: var(--ivory); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mobile-bar-title b { color: var(--strata-sky); font-weight: 500; }
.mobile-bar button {
  margin-left: auto;
  flex: none;
  border: 1px solid rgba(246, 244, 239, 0.3);
  border-radius: 999px;
  background: transparent;
  color: var(--ivory);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  padding: 8px 10px;
}

/* Controls: index button now part of the cluster. */
#index-toggle { padding: 0 12px; gap: 6px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; display: inline-flex; align-items: center; }
#index-toggle .ui-icon { font-size: 14px; }
#play { display: none; }

/* ---- Stratum cut --------------------------------------------------- */
.strata-fx { position: fixed; inset: 0; z-index: 80; pointer-events: none; overflow: hidden; display: none; }
.strata-fx.is-on { display: block; }
.fx-band { position: absolute; left: -12%; width: 124%; will-change: transform; }
.fx-shard { position: absolute; will-change: transform, opacity; border-radius: 2px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.fx-flash { position: absolute; inset: 0; background: radial-gradient(circle at 70% 46%, rgba(255,248,232,.9), rgba(255,248,232,0) 44%); opacity: 0; }
.fx-ring { position: absolute; border: 2px solid rgba(255,248,232,.85); border-radius: 50%; opacity: 0; }
@keyframes deckShake {
  0%, 100% { transform: translate(0, 0) rotate(0); }
  18% { transform: translate(4px, -2px) rotate(.08deg); }
  38% { transform: translate(-3px, 2px) rotate(-.06deg); }
  62% { transform: translate(2px, 2px) rotate(.04deg); }
  82% { transform: translate(-2px, -1px) rotate(-.03deg); }
}
.deck.is-shaking { animation: deckShake .38s linear; }

/* ---- Cover: logo-led ground-truth core, beside the proposal ------- */
.hero-visual {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: stretch;
  gap: calc(18 * var(--s));
  padding: calc(30 * var(--s)) calc(30 * var(--s)) calc(44 * var(--s));
}
.artifact-shell {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--rule-dark);
  border-radius: calc(12 * var(--s));
  background:
    radial-gradient(70% 46% at 52% 38%, rgba(49, 176, 255, 0.12), transparent 72%),
    radial-gradient(40% 30% at 52% 72%, rgba(255, 180, 90, 0.08), transparent 72%),
    rgba(6, 8, 7, 0.6);
}
#artifact { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#artifact[data-webgl="unavailable"] { display: none; }
.artifact-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.artifact-shell.is-ready .artifact-fallback { display: none; }
.af-core {
  width: clamp(80px, 7vw, 110px);
  height: clamp(120px, 15vh, 170px);
  display: flex;
  flex-direction: column;
  border-radius: 8px 8px 4px 4px;
  overflow: hidden;
  transform: rotate(-4deg) translate(-82px, 34px);
  box-shadow: 0 24px 45px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.af-core i { display: block; height: var(--h); background: var(--c); border-top: 1px solid rgba(0, 0, 0, .22); }
.af-plate {
  position: absolute;
  width: clamp(190px, 18vw, 250px);
  padding: 5px;
  background: #050606;
  border: 4px solid #9a7a3f;
  border-radius: 3px;
  transform: translate(8px, 2px) rotate(-3deg);
  box-shadow: 0 24px 45px rgba(0, 0, 0, .55);
}
.af-plate img { width: 100%; height: auto; display: block; }
.artifact-caption {
  position: absolute;
  z-index: 3;
  left: 12px;
  right: 12px;
  bottom: 54px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--mono);
  font-size: max(8px, calc(9.5 * var(--s)));
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mist);
  pointer-events: none;
}
.artifact-caption span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.artifact-caption i { width: 6px; height: 6px; border-radius: 50%; background: #ffb35c; box-shadow: 0 0 0 3px rgba(255, 179, 92, .12); }
.artifact-flash {
  position: absolute;
  z-index: 4;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at 56% 44%, rgba(255, 250, 235, .98), rgba(255, 240, 210, 0) 56%);
}
.artifact-shell.is-breaking .artifact-flash { animation: artifactFlash .5s cubic-bezier(.16,.7,.2,1) both; }
@keyframes artifactFlash {
  0% { opacity: 0; }
  16% { opacity: .95; }
  100% { opacity: 0; }
}
.stage { height: 100%; justify-content: center; }

@media (max-width: 1023.98px), (max-height: 599.98px) {
  .hero-visual { display: block; padding: 8px 18px 28px; border-left: 0; }
  .artifact-shell { display: none; }
  .stage { height: auto; }
}

/* ---- Readability: fluid text + deliberate inner scroll ------------ */
@media screen and (min-width: 1024px) {
  .slide-body { overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(246,244,239,.25) transparent; }
  .paper .slide-body { scrollbar-color: rgba(16,18,21,.25) transparent; }
  .slide-body::-webkit-scrollbar { width: 6px; }
  .slide-body::-webkit-scrollbar-thumb { background: rgba(246,244,239,.22); border-radius: 9px; }
  .paper .slide-body::-webkit-scrollbar-thumb { background: rgba(16,18,21,.22); }
}
.lead { font-size: clamp(16px, 0.45vw + 10px, 21px); line-height: 1.48; }
.diagnostic-card p,
.concept-note-item p,
.pillar-card p,
.exec-phase-card > p,
.exec-deliverables li,
.case-frame figcaption span,
.partner-quote { font-size: clamp(15px, 0.35vw + 11px, 18px); line-height: 1.5; }
.diagnostic-card h3,
.concept-note-item b,
.pillar-card h3,
.exec-phase-card h3 { font-size: clamp(20px, 0.9vw + 10px, 28px); line-height: 1.08; }
.diag-tag, .exec-phase-num, .exec-duration-pill, .partner-meta-kicker, .kicker, .source, .fact-chip, .log-foot, .stage-label, .mock-caption { font-size: clamp(12.5px, 0.2vw + 10px, 14px); }
.diagnostic-card .shift dd, .diagnostic-card .shift dt { font-size: clamp(12.5px, 0.2vw + 10px, 14px); }
.exec-footer-bar span { font-size: clamp(12.5px, 0.2vw + 10px, 14px); }
.partner-role-sub { font-size: clamp(13px, 0.2vw + 10px, 15px); }
.partner-pill { font-size: clamp(12.5px, 0.2vw + 10px, 14px); }
.request > p { font-size: clamp(15px, 0.35vw + 11px, 18px); }
.request small { font-size: clamp(12px, 0.2vw + 10px, 13.5px); }
.picker-col label { font-size: clamp(11px, 0.18vw + 9px, 12.5px); }

/* Keep the 179x142 official raster inside a sane display size. The black
   field is the artwork, not a removable canvas; no generated replacement. */
.cover-badge img { height: calc(112 * var(--s)); }

/* The close portrait is a focal element, not an avatar. */
.partner-card { grid-template-columns: calc(160 * var(--s)) minmax(0, 1fr); }
.partner-avatar-wrap { width: calc(160 * var(--s)); height: calc(160 * var(--s)); }

/* Dense evidence slides: reclaim padding rather than shrink the argument. */
.diagnostic-grid { margin-top: calc(22 * var(--s)); }
.diagnostic-card { padding: calc(20 * var(--s)) calc(22 * var(--s)) calc(18 * var(--s)); row-gap: calc(10 * var(--s)); }
.diagnostic-card p { line-height: 1.42; }
.shift { padding: calc(10 * var(--s)) calc(12 * var(--s)); }
.diag-step { font-size: calc(40 * var(--s)); }
.exec-cards-grid { margin-top: calc(18 * var(--s)); }
.exec-phase-card { gap: calc(8 * var(--s)); padding: calc(18 * var(--s)) calc(22 * var(--s)) calc(17 * var(--s)); }
.exec-deliverables { gap: calc(6 * var(--s)); padding-top: calc(11 * var(--s)); }
.exec-head { gap: calc(28 * var(--s)); }
.narrative-pillars { gap: calc(8 * var(--s)); margin-top: calc(2 * var(--s)); }
.pillar-card { padding: calc(14 * var(--s)) calc(18 * var(--s)); gap: calc(14 * var(--s)); }

/* ---- Mobile: opaque chrome, safe insets, real stacking -------------- */
@media (max-width: 1023.98px), (max-height: 599.98px) {
  html { scroll-padding-top: 64px; scroll-padding-bottom: 96px; }
  body { padding-top: calc(54px + env(safe-area-inset-top)); }
  .mobile-bar { display: flex; }
  .slide.active {
    display: block;
    padding: 14px 16px calc(120px + env(safe-area-inset-bottom));
    min-height: calc(100svh - 54px - env(safe-area-inset-top));
  }
  .slide.cover.active { padding: 20px 0 calc(120px + env(safe-area-inset-bottom)); }
  .slide-body { overflow: visible; }
  .slide-head {
    position: sticky;
    top: calc(54px + env(safe-area-inset-top));
    z-index: 20;
    background: var(--basalt);
    padding: 7px 0 8px;
    gap: 8px 12px;
    justify-content: flex-end;
    border-bottom-color: var(--rule-dark);
  }
  .paper .slide-head { background: var(--limestone); }
  .header-brand { display: none; }
  .section-tag { font-size: 9.5px; letter-spacing: .1em; margin-right: auto; }
  .stage-label, .glance { display: none; }
  .hero-visual { padding-top: 8px; }
  .proof-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .proof-tiles li { padding: 10px 9px; }
  .proof-tiles b { font-size: 22px; }
  .proof-tiles span { font-size: 11.5px; line-height: 1.35; }
  .section-tag::before { width: 16px; }
  .slide-foot { margin-top: 22px; padding-top: 12px; font-size: 10px; line-height: 1.5; }
  .close-grid { gap: 22px; }
  .controls { bottom: calc(10px + env(safe-area-inset-bottom)); background: #0B0C0E; border-color: rgba(246,244,239,.3); }
  #index-toggle, #play { display: none; }
  .controls button { height: 44px; min-width: 44px; }
  #counter { min-width: 64px; font-size: 12px; }
  .journey-head { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .evidence-shot { width: 100%; }
  .evidence-shot-img { aspect-ratio: 16 / 7; }
  .diagnostic-grid { margin-top: 16px; }
  .website-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .website .narrative-col { display: contents; }
  .website .mockup-col { order: 1; margin-top: 0; }
  .website .concept-notes { order: 2; margin-top: 6px; }
  body.concept-open .mobile-bar { visibility: hidden; }
  .concept-toolbar { margin-top: 2px; }
  .site-concept { height: auto; min-height: 0; max-height: none; }
  .browser-window { overflow: hidden; }
  .site-concept .sc-main { overflow: visible; }
  .sc-hero { grid-template-columns: minmax(0, 1fr); }
  .sc-strata-wrap { min-height: 200px; }
  .sc-svc-row { grid-template-columns: minmax(0, 1fr); }
  .sc-project { grid-template-columns: minmax(0, 1fr); }
  .sc-project-copy { border-right: 0; border-bottom: 1px solid var(--sc-line); }
  .concept-toolbar-actions button[data-concept-phone] { display: none; }
  .index-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .index-overlay { padding: 12px; align-items: start; }
  .index-panel { max-height: 92vh; padding: 18px; }
  .partner-avatar-wrap { width: 148px; height: 148px; }
  .partner-quote { font-size: 16px; }
  .exec-footer-bar { gap: 0; }
  .exec-footer-bar > div { padding: 12px 0; }
  .exec-footer-bar > div + div { border-left: 0; border-top: 1px solid var(--rule-light); }
}
@media (max-width: 520px) {
  .index-grid { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .index-card { min-height: 64px; padding: 10px 12px; gap: 4px; }
  .index-card b { font-size: 17px; }
  .index-panel { padding: 14px; }
  .index-head { margin-bottom: 12px; }
  .index-foot { margin-top: 10px; }
  .mobile-bar-title { font-size: 11.5px; }
  .hero-copy { gap: 14px; }
  .cover .kicker { display: none; }
  .hero-visual { padding-top: 52px; }
  .cover h1 { font-size: clamp(33px, 9.6vw, 42px); }
  .cover .lead { font-size: 16px; }
  .cover-name-title { font-size: 18px; }
  .cover-badge img { height: clamp(84px, 12vw, 100px); }
  .kicker { font-size: 9.5px; letter-spacing: .1em; }
  .fact-chip { font-size: 12.5px; }
  .concept-toolbar-actions button { padding: 7px 8px; }
  .sc-nav { flex-wrap: wrap; }
  .sc-links { width: 100%; margin-left: 0; order: 3; }
  .sc-link { flex: 1; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .strata-fx { display: none !important; }
}

.fx-logo-shard { background-color:#080a08; background-repeat:no-repeat; border:1px solid rgba(255,255,255,.16); clip-path: polygon(3% 0, 100% 7%, 93% 100%, 0 88%); filter: saturate(1.08) contrast(1.04); }
.fx-core-shard { border-radius:2px; }
.fx-dust { position:absolute; border-radius:50%; background:radial-gradient(circle, #ffe0b0 0%, rgba(255,176,90,.72) 42%, rgba(255,150,60,0) 72%); box-shadow:0 0 8px rgba(255,180,90,.35); pointer-events:none; }


/* Mobile top-bar navigation replaces the floating pill; no content sits under it. */
@media (max-width: 1023.98px), (max-height: 599.98px) {
  .mobile-bar { gap: 6px; padding-left: 10px; padding-right: 8px; }
  .mobile-bar img { height: 28px; }
  .mobile-bar-title { flex: 1; min-width: 0; font-size: 11px; }
  .mobile-step { width: 34px; height: 34px; min-width: 34px; padding: 0; border-radius: 50%; font-size: 15px; line-height: 1; }
  #mobile-prev { margin-left: auto; }
  #mobile-counter { flex: none; min-width: 32px; text-align: center; font-family: var(--mono); font-size: 10px; letter-spacing: .04em; color: var(--fog); }
  #mobile-next { margin-left: 0; }
  #mobile-index { margin-left: 2px; padding: 7px 8px; font-size: 9px; }
  .controls { display: none; }
  .partner-card { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 18px; }
  .partner-avatar-wrap { width: 150px; height: 150px; justify-self: start; }
  .partner-details { min-width: 0; width: 100%; }
  .partner-quote { max-width: none; font-size: 16px; line-height: 1.5; }
  .partner-contact-pills { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .partner-pill { width: 100%; white-space: normal; overflow-wrap: anywhere; justify-content: flex-start; }
  .partner-brand-signoff { flex-direction: column; align-items: flex-start; gap: 7px; }
  .partner-brand-signoff .signoff-brandcore-meta { font-size: 10px; line-height: 1.4; }
}


.stage-label { font-size: clamp(9.5px, .65vw, 12px); letter-spacing: .1em; gap: 8px; }

