/* California Electric Supply × Brandcore — October 31 standard pass.
   Keeps the approved Navy/paper system and adds:
   1) the authentic-mark switchgear stage and its electrical transition,
   2) the live-site audit slide,
   3) readable fluid type and a safe inner scrollport,
   4) working homepage-concept tabs with a readable detail strip. */

:root {
  --std-body: clamp(16px, calc(0.52vw + 0.62vh + 5.4px), 22px);
  --std-body-tight: clamp(15.5px, calc(0.5vw + 0.6vh + 5px), 21px);
  --std-label: clamp(14px, calc(0.2vw + 0.45vh + 8.2px), 16px);
  --std-mono: clamp(12.5px, calc(0.15vw + 0.34vh + 8.6px), 14px);
}

/* ------------------------------------------------------------------ readable body type */
.lead,
.hero-copy .lead,
.website .narrative-col .lead,
.foundation .narrative-col .lead {
  font-size: var(--std-body);
  line-height: 1.52;
}

.pillar-card p,
.diagnostic-card p,
.craft-card p,
.concept-note-item p,
.ufg-rel-copy p,
.exec-phase-card > p,
.exec-deliverables li,
.case-frame figcaption,
.partner-quote,
.request > p,
.audit-list p,
.audit-keep p,
.mockup-detail p {
  font-size: var(--std-body-tight);
  line-height: 1.5;
}

.pillar-card h3 {
  font-size: clamp(17px, calc(0.5vw + 0.55vh + 6px), 21px);
  line-height: 1.22;
}

.diagnostic-card h3,
.craft-card h3,
.concept-note-item h3,
.exec-phase-card h3 {
  font-size: clamp(18px, calc(0.48vw + 0.55vh + 6.4px), 23px);
  line-height: 1.2;
}

.case-frame figcaption,
.partner-role-sub,
.profile-name span {
  font-size: var(--std-label);
}

.diag-tag,
.diag-meta-pill,
.profile-band,
.ufg-rel-kicker,
.exec-duration-pill,
.partner-meta-kicker,
.mockup-detail-kicker {
  font-size: var(--std-mono);
}

.diag-meta-pill span,
.ufg-rel-pills span {
  font-size: max(11px, calc(var(--std-mono) - 1px));
}

.diag-meta-pill b {
  font-size: var(--std-mono);
  line-height: 1.35;
}

.profile-name b {
  font-size: clamp(19px, calc(0.5vw + 0.55vh + 7px), 24px);
}

.profile-dl-grid dt {
  font-size: var(--std-mono);
}

.profile-dl-grid dd {
  font-size: clamp(14px, calc(0.24vw + 0.38vh + 8px), 16.5px);
  line-height: 1.45;
}

.eyebrow,
.kicker {
  font-size: var(--std-mono);
  line-height: 1.5;
}

.header-meta {
  font-size: var(--std-mono);
}

.header-wordmark small {
  font-size: max(11px, calc(var(--std-mono) - 0.5px));
}

.slide-foot {
  font-size: max(11px, calc(var(--std-mono) - 1px));
}

.page {
  font-size: max(11px, calc(var(--std-mono) - 1px));
}

.partner-pill,
.request label,
.request input,
.request small,
a#contact {
  font-size: var(--std-label);
}

/* The reading surface may scroll before a slide ever clips. Header/footer stay put. */
.slide-body {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 6px;
  padding-block: clamp(2px, 0.7vh, 9px);
  justify-content: safe center;
  scrollbar-width: thin;
  scrollbar-color: rgba(251, 191, 36, 0.55) transparent;
}
.slide-body::-webkit-scrollbar { width: 8px; }
.slide-body::-webkit-scrollbar-thumb { background: rgba(251, 191, 36, 0.45); border-radius: 999px; }
.slide-body.two,
.slide-body.website-grid,
.slide-body.close-grid {
  align-items: safe center;
}
.slide-body.stack { justify-content: safe center; }

/* ------------------------------------------------------------------ cover: authentic mark stage */
.slide.cover.active {
  grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
}
.hero-visual {
  position: relative;
  overflow: hidden;
  container-type: size;
  background:
    radial-gradient(72% 62% at 56% 38%, rgba(0, 82, 155, 0.42) 0%, rgba(6, 10, 18, 0) 70%),
    linear-gradient(155deg, #0b1930 0%, #08111f 48%, #05080f 100%);
  border-left: 1px solid rgba(255, 255, 255, 0.09);
}
.hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(6, 10, 18, 0.38) 0%, rgba(6, 10, 18, 0) 22%, rgba(6, 10, 18, 0) 78%, rgba(6, 10, 18, 0.45) 100%),
    linear-gradient(0deg, rgba(6, 10, 18, 0.52) 0%, rgba(6, 10, 18, 0) 22%);
}
.hero-visual canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 1;
  pointer-events: none;
}
.stage-hud {
  position: absolute;
  left: clamp(18px, 2.2cqw, 30px);
  right: clamp(18px, 2.2cqw, 30px);
  top: clamp(16px, 2.2cqh, 24px);
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  pointer-events: none;
}
.stage-hud-tag,
.stage-hud-spec {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: max(10px, calc(var(--std-mono) - 1px));
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e6edf7;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.8);
}
.stage-hud-tag {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(6, 10, 18, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.stage-hud-spec { color: #c5d1e3; }
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fbbf24;
  box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.7);
  animation: live-pulse 2.4s ease-out infinite;
}
@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(251, 191, 36, 0); }
  100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0); }
}
.stage-rail {
  position: absolute;
  left: clamp(18px, 2.2cqw, 30px);
  bottom: clamp(92px, 10.5cqh, 112px);
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: calc(100% - 36px);
  pointer-events: none;
}
.stage-rail span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(6, 10, 18, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-family: var(--font-mono);
  font-size: max(10px, calc(var(--std-mono) - 1px));
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e6edf7;
}
.stage-rail b { color: #fbbf24; }
.hero-visual .visual-caption {
  left: clamp(18px, 2.2cqw, 30px);
  bottom: clamp(14px, 2.2cqh, 22px);
  z-index: 4;
}
.cover-fallback {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: none;
  place-items: center;
  padding: clamp(32px, 6cqw, 70px);
  background:
    radial-gradient(60% 55% at 50% 44%, rgba(0, 82, 155, 0.42), transparent 70%),
    linear-gradient(160deg, #0b1930, #05080f);
}
.is-fallback .cover-fallback { display: grid; }
.cover-fallback-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(86%, 620px);
  padding: clamp(18px, 4cqw, 40px);
  border-radius: 10px;
  background: #f7fbff;
  border: 6px solid #22334f;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(88, 184, 255, 0.45);
}
.cover-fallback-panel img { display: block; width: 100%; height: auto; }
.fact-pills li { font-size: var(--std-label); line-height: 1.35; }
.collab-label { font-size: var(--std-mono); }
.cover-wordmark span { font-size: var(--std-label); }
.cover-wordmark small { font-size: var(--std-mono); line-height: 1.5; }
.cover-wordmark .cover-domain { margin-top: 0; color: #58b8ff; letter-spacing: 0.14em; }
.prepared-by { font-size: var(--std-label); line-height: 1.35; }
.prepared-by small { font-size: max(11px, calc(var(--std-mono) - 0.5px)); }
.cover-foot .page { font-size: max(11px, calc(var(--std-mono) - 1px)); }

/* ------------------------------------------------------------------ audit slide */
.audit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(24px, 3.2vw, 48px);
  align-items: safe center;
}
.audit-visual { display: flex; flex-direction: column; gap: 14px; }
.audit-browser {
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  border: 2px solid #0a101d;
  box-shadow: 0 28px 62px rgba(10, 16, 29, 0.22);
}
.audit-shot { position: relative; background: #e5e9f0; }
.audit-shot img {
  display: block;
  width: 100%;
  height: auto;
  max-height: clamp(280px, 46vh, 470px);
  object-fit: cover;
  object-position: top center;
}
.audit-pin {
  position: absolute;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fbbf24;
  color: #0a101d;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.24), 0 8px 18px rgba(0, 0, 0, 0.35);
}
.pin-1 { left: 43%; top: 8.5%; }
.pin-2 { left: 83%; top: 2.2%; }
.pin-3 { left: 61%; top: 9%; }
.audit-browser figcaption {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  background: #111a2e;
  color: #e6edf7;
  font-size: var(--std-mono);
  line-height: 1.4;
}
.audit-browser figcaption span {
  flex: none;
  padding: 3px 7px;
  border-radius: 5px;
  background: #fbbf24;
  color: #0a101d;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.audit-keep {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(10, 16, 29, 0.14);
  border-left: 4px solid #00529b;
}
.audit-keep b {
  flex: none;
  font-family: var(--font-mono);
  font-size: var(--std-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #003e78;
}
.audit-keep p { color: #334155; }
.audit-copy { display: flex; flex-direction: column; justify-content: center; }
.audit-copy h2 { font-size: clamp(28px, min(2.2vw, 4.1vh), 42px); }
.audit-list {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.audit-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 13px;
  align-items: start;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(10, 16, 29, 0.12);
  border-left: 4px solid #f59e0b;
  box-shadow: 0 10px 24px rgba(10, 16, 29, 0.06);
}
.audit-list h3 {
  font-family: var(--font-display);
  font-size: clamp(17px, min(1.2vw, 2.2vh), 20px);
  line-height: 1.2;
  color: #0a101d;
}
.audit-list p { margin-top: 3px; color: #334155; }

/* ------------------------------------------------------------------ profile photo */
.profile-photo-panel {
  position: relative;
  height: clamp(150px, 20vh, 208px);
  overflow: hidden;
  background: #060a12;
  border-bottom: 5px solid var(--ces-blue);
}
.profile-photo-panel > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  display: block;
}
.profile-photo-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(6, 10, 18, 0.68), rgba(6, 10, 18, 0) 45%);
}
.profile-photo-plate {
  position: absolute;
  left: 14px;
  bottom: 12px;
  height: clamp(42px, 5.2vh, 52px);
  padding: 5px 10px;
  border-radius: 8px;
  background: #fff;
  border: 2px solid var(--accent-bright);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55);
}
.profile-photo-plate img { display: block; height: 100%; width: auto; max-width: 170px; object-fit: contain; }
.profile-photo-caption {
  position: absolute;
  right: 14px;
  bottom: 16px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(6, 10, 18, 0.75);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ------------------------------------------------------------------ working homepage concept */
.sm-tab {
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 2px 0 4px;
  background: none;
  color: #0a1f44;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.sm-tab:hover { color: #00529b; }
.sm-tab.is-active { color: #00529b; border-bottom-color: #f59e0b; }
.sm-tab:focus-visible { outline: 2px solid #00529b; outline-offset: 2px; border-radius: 2px; }
.sm-photo-inner { position: absolute; inset: 0; }
.sm-photo-inner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% center; }
.sm-visual-card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: calc(1.4 * var(--u));
  padding: calc(3.4 * var(--u));
  background:
    radial-gradient(80% 60% at 80% 20%, rgba(88, 184, 255, 0.32), transparent 70%),
    linear-gradient(150deg, #0b4a8c 0%, #083462 58%, #0a101d 100%);
  color: #fff;
}
.sm-visual-card .sm-vc-kicker {
  font-family: var(--font-mono);
  font-size: calc(1.35 * var(--u));
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fbbf24;
}
.sm-visual-card b {
  font-family: var(--font-display);
  font-size: calc(3.2 * var(--u));
  line-height: 1.05;
}
.sm-visual-card small {
  font-size: calc(1.55 * var(--u));
  line-height: 1.4;
  color: #e6edf7;
}
.sm-vc-line {
  display: block;
  padding: calc(1.1 * var(--u)) calc(1.3 * var(--u));
  border-radius: calc(0.8 * var(--u));
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: calc(1.45 * var(--u));
  color: #e6edf7;
}
.sm-vc-line.short { width: 62%; }
.sm-vc-tag {
  align-self: flex-start;
  margin-top: calc(0.8 * var(--u));
  padding: calc(0.8 * var(--u)) calc(1.4 * var(--u));
  border-radius: 999px;
  background: #fbbf24;
  color: #0a101d;
  font-family: var(--font-mono);
  font-size: calc(1.25 * var(--u));
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.mockup-detail {
  margin-top: 10px;
  padding: 12px 15px;
  border-radius: 10px;
  background: #111a2e;
  border: 1px solid rgba(10, 16, 29, 0.22);
  border-left: 4px solid #f59e0b;
  box-shadow: 0 14px 30px rgba(10, 16, 29, 0.14);
}
.mockup-detail-kicker {
  display: block;
  font-family: var(--font-mono);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fbbf24;
}
.mockup-detail p { margin-top: 2px; color: #e6edf7; }

/* ------------------------------------------------------------------ close */
.partner-avatar-wrap {
  width: clamp(150px, 20vh, 190px);
  height: clamp(150px, 20vh, 190px);
}
.partner-quote { font-size: var(--std-body-tight); }
.partner-role-sub { color: #e6edf7; }
.partner-brand-address { font-size: var(--std-mono); line-height: 1.5; }
.request h3 { font-size: clamp(30px, 2.1vw, 38px); }
.request label { color: #e6edf7; }
.request input { font-size: var(--std-label); min-height: 44px; }
a#contact { min-height: 48px; }

/* Keep the proof and roadmap fully inside the 1920 frame. */
.proof .slide-body.stack { gap: 10px; }
.case-viewport { height: clamp(210px, 25.5vh, 275px); }
.case-frame figcaption { padding-block: 8px; }
.exec-phase-card {
  padding: clamp(14px, 1.7vh, 18px) clamp(16px, 1.5vw, 22px);
  row-gap: clamp(7px, 0.9vh, 9px);
}
.exec-deliverables { gap: 5px; padding-top: 8px; }
.exec-deliverables li { line-height: 1.4; }
.exec-footer-bar span { padding: 8px 12px; }

/* Tabs are real controls, so keep them legible even inside the concept frame. */
.sm-tab { font-size: max(12px, calc(1.4 * var(--u))); min-height: 24px; }

/* ------------------------------------------------------------------ electrical transition */
#fx {
  position: fixed;
  inset: 0;
  z-index: 90;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  opacity: 0;
  transition: opacity 90ms linear;
}
#fx.is-on { opacity: 1; }
#deck.boom-shake { animation: boom-shake 620ms cubic-bezier(.2, .7, .3, 1) both; }
@keyframes boom-shake {
  0% { transform: translate(0, 0) rotate(0); }
  12% { transform: translate(-9px, 5px) rotate(-0.35deg); }
  24% { transform: translate(8px, -6px) rotate(0.3deg); }
  38% { transform: translate(-6px, 3px) rotate(-0.2deg); }
  52% { transform: translate(5px, -2px) rotate(0.14deg); }
  72% { transform: translate(-2px, 1px) rotate(-0.06deg); }
  100% { transform: translate(0, 0) rotate(0); }
}

/* ------------------------------------------------------------------ tablet & phone */
@media screen and (max-width: 960px) {
  html, body { height: 100%; overflow: hidden; }
  body { display: block; background: var(--carbon-0); }
  #deck, .deck {
    width: 100%;
    height: calc(100dvh - 74px);
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .hero-visual { order: -1; }
  .stage-rail { display: none; }
  .slide-foot { flex-direction: column; align-items: flex-start; gap: 5px; line-height: 1.6; }
  .slide-foot .page { align-self: flex-start; }
  .diagnostic-card p,
  .exec-phase-card > p,
  .pillar-card p,
  .concept-note-item p,
  .ufg-rel-copy p,
  .request > p,
  .partner-quote,
  .audit-list p,
  .audit-keep p { font-size: clamp(16px, 1.7vw, 18px); line-height: 1.55; }
  .slide-foot { font-size: 11.5px; }
  .header-wordmark small { font-size: 11.5px; line-height: 1.5; }
  .eyebrow, .kicker { font-size: 12px; line-height: 1.55; }
  .diag-tag { font-size: 11.5px; }
  .profile-band { font-size: 11px; }
  .profile-dl-grid dd { font-size: 15px; }
  .case-frame figcaption { font-size: 14px; }
  .exec-deliverables li { font-size: 15.5px; }
  .partner-meta-kicker { font-size: 11.5px; }
  .request small { font-size: 13px; }
  #play { font-size: 10.5px; }
  #counter { font-size: 12px; }
}

@media screen and (min-width: 701px) and (max-width: 960px) {
  .site-mock { --u: 1.25cqw; }
  .sm-link, .sm-links { display: flex; }
  .sm-nav { flex-wrap: wrap; justify-content: space-between; }
  .sm-links { order: 3; flex-basis: 100%; justify-content: flex-start; overflow-x: auto; padding: 4px 0 2px; scrollbar-width: none; }
  .sm-links::-webkit-scrollbar { display: none; }
  .sm-tab { flex: none; font-size: 13px; }
  .sm-hero, .sm-hero-b { grid-template-columns: 1fr; }
  .sm-hero .sm-photo { height: calc(34 * var(--u)); order: -1; }
  .sm-tiles { grid-template-columns: 1fr; }
  .sm-cats { grid-template-columns: repeat(2, 1fr); }
  .audit-grid { display: flex; flex-direction: column; align-items: stretch; gap: 22px; }
  .audit-shot img { max-height: none; }
  .audit-browser figcaption { font-size: 10px; }
}

/* ------------------------------------------------------------------ phone */
@media screen and (max-width: 700px) {
  .sm-nav { flex-wrap: wrap; justify-content: space-between; }
  .sm-links {
    display: flex;
    flex-wrap: wrap;
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
    gap: 6px 12px;
    padding: 5px 0 2px;
    overflow: visible;
  }
  .sm-links::-webkit-scrollbar { display: none; }
  .sm-tab { flex: none; font-size: 12px; min-height: 28px; }
  .sm-links { font-size: 12px; }
  .slide.cover.active { grid-template-columns: 1fr; }
  .hero-visual { height: 390px; min-height: 390px; border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.1); }
  .stage-hud { align-items: flex-start; }
  .stage-hud-spec { display: none; }
  .stage-hud-tag { font-size: 9.5px; letter-spacing: 0.06em; }
  .stage-rail { display: none; }
  .hero-visual .visual-caption { left: 12px; bottom: 10px; font-size: 9px; }
  .audit-grid { display: flex; flex-direction: column; align-items: stretch; gap: 22px; }
  .audit-list li { padding: 12px; }
  .audit-browser figcaption { font-size: 10px; }
  .audit-shot img { max-height: none; }
  .audit-pin { width: 24px; height: 24px; font-size: 11px; }
  .profile-photo-panel { height: 190px; }
  .mockup-detail { padding: 11px 13px; }
  .slide-body { overflow: visible; padding-right: 0; }
  .slide-body.two,
  .slide-body.website-grid,
  .slide-body.close-grid { align-items: stretch; }
  .partner-avatar-wrap { width: 150px; height: 150px; }
}

@media screen and (max-width: 1500px) {
  .site-mock .sm-call { display: none; }
}

@media screen and (min-width: 961px) and (max-width: 1500px) {
  .sm-links { gap: calc(1.55 * var(--u)); }
  .sm-tab { font-size: max(11.5px, calc(1.32 * var(--u))); }
  .diagnostic-card, .craft-card { row-gap: 6px; padding: 12px; }
  .diag-thumb.ui-plate { gap: 5px; padding: 8px 10px; }
  .ui-btn, .ui-field, .ui-loc { min-height: 30px; padding: 5px 9px; }
  .audit-list { gap: 9px; }
  .audit-list li { padding: 10px 12px; }
  .case-viewport { height: clamp(180px, 22.5vh, 250px); }
  .exec-phase-card { padding: 13px 16px; row-gap: 6px; }
  .exec-deliverables { gap: 4px; }
  .exec-footer-bar span { padding: 7px 10px; }
}

@media screen and (min-width: 1600px) and (max-height: 960px) {
  .profile-photo-panel { height: clamp(145px, 16vh, 170px); }
  .narrative-pillars { gap: 8.5px; }
  .pillar-card { padding-top: 8px; padding-bottom: 8px; }
}

@media screen and (min-width: 701px) and (max-width: 960px) {
  .sm-tab { font-size: 13px; }
}

@media screen and (max-width: 700px) {
  .sm-links { display: flex; }
  .sm-tab { font-size: 12px; }
  .header-wordmark small { display: none; }
  .cover-foot { flex-direction: column; align-items: flex-start; gap: 8px; }
  .cover-foot .page { align-self: flex-start; }
  .profile-photo-caption { display: none; }
  .audit-keep { flex-direction: column; gap: 6px; }
}

@media screen and (min-width: 1600px) {
  .slide-body { padding-right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .live-dot { animation: none; }
  #deck.boom-shake { animation: none; }
  .slide-body { scroll-behavior: auto; }
}

/* ------------------------------------------------------------------ standard pass: chrome, index, rail */
.progress {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 60;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}
.progress i {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, #00529B 0%, #58B8FF 60%, #FBBF24 100%);
  transition: transform 0.45s ease;
}
.rail {
  position: fixed;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 55;
  display: none;
  flex-direction: column;
  gap: 10px;
}
.rail-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  cursor: pointer;
}
.rail-dot:hover { border-color: #FFFFFF; }
.rail-dot.is-active {
  background: #FBBF24;
  border-color: #FBBF24;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.25);
}
.rail-dot:focus-visible { outline: 2px solid #58B8FF; outline-offset: 2px; }
@media screen and (min-width: 1200px) { .rail { display: flex; } }

#index-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #E6EDF7;
  padding-right: 12px;
}
.index-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 3vw, 40px);
  background: rgba(6, 10, 18, 0.96);
}
.index-overlay[hidden] { display: none; }
.index-panel {
  width: min(1080px, 100%);
  max-height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.index-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.index-title {
  font-family: var(--font-mono);
  font-size: var(--std-label);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #FBBF24;
}
.index-close {
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #FFFFFF;
  font-size: var(--std-label);
  font-weight: 700;
  cursor: pointer;
}
.index-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 6px;
}
.idx-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #111A2E;
  color: #FFFFFF;
  text-align: left;
  cursor: pointer;
}
.idx-card:hover { border-color: #58B8FF; }
.idx-card.is-current { border-color: #FBBF24; box-shadow: inset 0 0 0 1px #FBBF24; }
.idx-card:focus-visible { outline: 3px solid #58B8FF; outline-offset: 2px; }
.idx-num {
  flex: none;
  min-width: 30px;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 800;
  color: #FBBF24;
}
.idx-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.idx-body b {
  font-family: var(--font-display);
  font-size: clamp(17px, calc(0.5vw + 12px), 20px);
  font-weight: 600;
  line-height: 1.2;
}
.idx-body small { font-size: var(--std-label); line-height: 1.4; color: #C5D1E3; }

/* ------------------------------------------------------------------ cover cue */
.cover-cue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--std-mono);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #C5D1E3;
  white-space: nowrap;
}
.cover-cue .ico { color: #FBBF24; }

/* ------------------------------------------------------------------ website concept: phone + readable detail */
.mockup-detail-row {
  display: flex;
  align-items: stretch;
  gap: clamp(12px, 1.2vw, 18px);
  margin-top: 10px;
}
.mockup-detail-row .mockup-detail { flex: 1; min-width: 0; margin-top: 0; }
.mini-phone {
  flex: none;
  width: clamp(118px, 9.6vw, 150px);
  aspect-ratio: 9 / 17.5;
  padding: 6px;
  border-radius: 22px;
  background: #05080F;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 36px rgba(10, 16, 29, 0.35);
}
.mp-screen {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 16px;
  background: #FFFFFF;
  color: #0A1F44;
  font-family: var(--font-body);
}
.mp-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 7px 8px;
  border-bottom: 1px solid #DDE3EC;
}
.mp-bar img { display: block; height: 20px; width: auto; }
.mp-bar .ico { width: 16px; height: 16px; flex: none; }
.mp-hero { padding: 9px 8px; background: #F4F7FB; }
.mp-hero b {
  display: block;
  font-family: var(--font-display);
  font-size: 12.5px;
  line-height: 1.18;
  color: #0A101D;
}
.mp-hero small { display: block; margin-top: 4px; font-size: 10.5px; line-height: 1.35; color: #334155; }
.mp-btns { display: grid; gap: 5px; padding: 8px; }
.mp-btn {
  display: block;
  padding: 6px 7px;
  border-radius: 8px;
  background: #00529B;
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}
.mp-btn.amber { background: #F59E0B; color: #0A101D; }
.mp-btn.ghost { background: #FFFFFF; color: #00529B; box-shadow: inset 0 0 0 1.5px #00529B; }
.mp-chips { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 8px 8px; }
.mp-chips span {
  padding: 3px 6px;
  border-radius: 999px;
  background: #EAF2FB;
  color: #0A1F44;
  font-size: 9.5px;
  font-weight: 700;
}
.mockup-detail-mobile { margin-top: 8px; color: #C5D1E3; line-height: 1.5; }

/* ------------------------------------------------------------------ proof: draggable before / after */
.proof-row {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.85fr);
  gap: clamp(18px, 2.4vw, 34px);
  align-items: center;
}
.ba-wrap { min-width: 0; }
.ba-frame {
  overflow: hidden;
  border-radius: 16px;
  border: 2px solid #0A101D;
  background: #060A12;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.5);
}
.ba-stage {
  position: relative;
  height: clamp(250px, 50vh, 430px);
  overflow: hidden;
  --pos: 50%;
  background: #060A12;
}
.ba-stage img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  user-select: none;
  -webkit-user-drag: none;
}
.ba-after { clip-path: inset(0 0 0 var(--pos)); }
.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  z-index: 2;
  width: 3px;
  margin-left: -1.5px;
  background: #FBBF24;
  box-shadow: 0 0 18px rgba(251, 191, 36, 0.55);
  pointer-events: none;
}
.ba-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  border-radius: 50%;
  background: #FBBF24;
  color: #0A101D;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
}
.ba-knob .ico { width: 19px; height: 19px; stroke-width: 2.4; }
.ba-tag {
  position: absolute;
  top: 12px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  pointer-events: none;
}
.ba-tag-before { left: 12px; background: rgba(10, 16, 29, 0.88); color: #FFFFFF; }
.ba-tag-after { right: 12px; background: #FBBF24; color: #0A101D; }
.ba-range {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}
.ba-stage:focus-within { outline: 3px solid #58B8FF; outline-offset: 3px; }
.ba-frame figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #111A2E;
  color: #E6EDF7;
  font-size: var(--std-mono);
  line-height: 1.45;
}
.ba-frame figcaption span {
  flex: none;
  padding: 3px 8px;
  border-radius: 5px;
  background: #FBBF24;
  color: #0A101D;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.proof-row .ufg-Relevance { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.proof-row .ufg-rel-pills { display: grid; grid-template-columns: 1fr; gap: 10px; }

/* ------------------------------------------------------------------ Brandcore services (new slide 6) */
.services-head {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: clamp(20px, 2.6vw, 40px);
  align-items: end;
}
.services h2,
.engagement h2 {
  font-size: clamp(26px, min(2.4vw, 4.2vh), 40px);
  line-height: 1.04;
}
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.3vh, 16px) clamp(14px, 1.5vw, 22px);
}
.svc-card {
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 0.9vh, 10px);
  padding: clamp(14px, 2vh, 20px) clamp(16px, 1.5vw, 22px);
  border-radius: var(--radius-lg);
  background: #FFFFFF;
  border: 1px solid rgba(10, 16, 29, 0.12);
  border-top: 3px solid var(--ces-blue);
  box-shadow: 0 14px 30px rgba(10, 16, 29, 0.07);
}
.svc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.svc-top .ico { width: 1.7em; height: 1.7em; color: var(--accent); }
.svc-tag {
  font-family: var(--font-mono);
  font-size: var(--std-mono);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber-deep);
}
.svc-card h3 {
  font-family: var(--font-display);
  font-size: clamp(18px, calc(0.48vw + 0.55vh + 6.4px), 23px);
  font-weight: 600;
  line-height: 1.2;
  color: #0A101D;
}
.svc-card p { font-size: var(--std-body-tight); line-height: 1.5; color: #1E293B; }
@media screen and (min-width: 961px) and (max-width: 1100px) {
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ------------------------------------------------------------------ phone and tablet: opaque masthead, readable floors */
@media screen and (max-width: 960px) {
  .slide-head {
    position: sticky;
    top: 0;
    z-index: 6;
    margin: -24px -20px 0;
    padding: 14px 20px 12px;
    background: var(--bg);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
  }
  .proof-row { grid-template-columns: 1fr; }
  .ba-stage { height: auto; aspect-ratio: 4 / 3; }
  .services-head { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
  .slide-foot { font-size: 12px; }
  .browser-tag { font-size: 10.5px; }
  .browser-url { font-size: 11px; }
  .visual-caption { font-size: 11px; }
  .header-wordmark small { font-size: 12px; }
  .profile-band { font-size: 11.5px; }
  .diag-thumb-badge { font-size: 11px; }
  .partner-brand-address { font-size: 12px; }
  .mockup-meta-strip { font-size: 12px; }
  .collab-label { font-size: 11.5px; }
  .eyebrow, .kicker { font-size: 12px; }
  .audit-browser figcaption { font-size: 12px; }
  .cover-cue { font-size: 11px; }
  .request small { font-size: 13px; }
  .controls { background: #0A101D; padding-bottom: env(safe-area-inset-bottom, 0px); }
  #play, .controls a { font-size: 11px; }
  #index-btn { font-size: 11px; padding-left: 6px; padding-right: 6px; }
}
@media screen and (max-width: 700px) {
  .slide-head { margin: -24px -20px 0; padding: 12px 20px 10px; }
  .stage-hud-tag { font-size: 11px; letter-spacing: 0.06em; }
  .mockup-detail-row { flex-direction: column; align-items: center; }
  .mockup-detail-row .mockup-detail { width: 100%; }
  .mini-phone { width: 150px; aspect-ratio: 9 / 15.5; }
  .index-list { grid-template-columns: 1fr; }
  .index-overlay { align-items: stretch; }
  .index-panel { max-height: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .progress i { transition: none; }
}
