/* Program ACES — floor dossier styling. Extends the Story's `.flw` dossier
   chrome (defined in story.css) with section layouts and the CyberSafe ×
   CrowdStrike paired branding. Loaded by both the Story (index.html) and the
   standalone dossier preview (aces-dossiers.html). */

/* scroll + lead */
.adoss .flw-body { overflow-y: auto; padding-bottom: 30px; }
.adoss-lead { max-width: 780px; padding-top: 8px; }
.adoss .flw-title { font-size: clamp(2.4rem, 4.4vw, 3.4rem); }

/* sections */
.adoss-sec { padding: 28px 0; border-top: 1px solid var(--line-default); }
.adoss-k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-700); margin-bottom: 7px; }
.adoss-h { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.06; margin: 0 0 14px; color: var(--ink-1000); }
.adoss-h em { font-style: italic; color: var(--red-600); }
.adoss-p { font-size: 15.5px; line-height: 1.62; color: var(--ink-700); max-width: 72ch; margin: 0 0 12px; text-wrap: pretty; }
.adoss-p:last-child { margin-bottom: 0; }

/* feature (prose + aside) */
.adoss-feature { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
@media (max-width: 860px) { .adoss-feature { grid-template-columns: 1fr; gap: 24px; } }
.adoss-aside { background: var(--paper-0); border: 1.5px solid var(--ink-1000); border-radius: var(--radius-lg, 8px); box-shadow: var(--shadow-ink); padding: 28px 26px; text-align: center; }
.adoss-aside-mark { display: flex; justify-content: center; margin-bottom: 14px; }
.adoss-aside-h { font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 1.1; color: var(--ink-1000); margin-bottom: 8px; }
.adoss-aside-s { font-size: 13px; line-height: 1.5; color: var(--ink-600); }

/* comparison cards */
.adoss-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .adoss-cards { grid-template-columns: 1fr; } }
.adoss-card { background: var(--paper-0); border: 1.5px solid var(--ink-1000); border-radius: var(--radius-md); box-shadow: var(--shadow-ink-sm); padding: 20px 20px 18px; display: flex; flex-direction: column; }
.adoss-card-tier { font-family: var(--font-sans); font-weight: 700; font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--red-600); margin-bottom: 8px; }
.adoss-card-name { font-family: var(--font-display); font-weight: 600; font-size: 21px; line-height: 1.05; color: var(--ink-1000); margin-bottom: 10px; }
.adoss-card-desc { font-size: 13px; line-height: 1.55; color: var(--ink-700); margin: 0 0 16px; }
.adoss-card-meta { margin: auto 0 0; padding: 0; border-top: 1px solid var(--line-default); }
.adoss-card-meta > div { display: flex; gap: 10px; padding: 9px 0 0; }
.adoss-card-meta dt { flex: 0 0 64px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-700); }
.adoss-card-meta dd { margin: 0; font-size: 12.5px; line-height: 1.4; color: var(--ink-800); }
.adoss-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.adoss-card-flag { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-800); background: var(--gold-100); border: 1px solid var(--line-gold); border-radius: 999px; padding: 3px 9px; }

/* quote / principle */
.adoss-quote blockquote { font-family: var(--font-display); font-weight: 600; font-style: italic; font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.1; color: var(--red-600); margin: 0 0 16px; max-width: 18ch; }

/* numbered steps */
.adoss-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
@media (max-width: 860px) { .adoss-steps { grid-template-columns: 1fr; } }
.adoss-step { display: flex; gap: 16px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--line-default); }
.adoss-step-n { flex: 0 0 auto; font-family: var(--font-mono); font-weight: 700; font-size: 12px; color: var(--gold-700); background: var(--paper-200); border: 1.5px solid var(--ink-1000); border-radius: 5px; width: 30px; height: 30px; display: grid; place-items: center; }
.adoss-step-tx { display: flex; flex-direction: column; }
.adoss-step-h { font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 1.15; color: var(--ink-1000); }
.adoss-step-d { font-size: 13px; line-height: 1.5; color: var(--ink-700); margin-top: 3px; text-wrap: pretty; }

/* paired-brand lockup (on ink) */
.adoss-lockup { display: inline-flex; align-items: center; gap: 18px; }
.adoss-lockup img { display: block; width: auto; }
.adoss-lockup-x { font-family: var(--font-display); font-weight: 600; font-size: 22px; color: var(--gold-400); line-height: 1; }

.adoss-brand { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; background: var(--ink-1000); border-radius: var(--radius-lg, 8px); padding: 26px 30px; }
.adoss-brand-k { font-family: var(--font-sans); font-weight: 700; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-300); margin-bottom: 7px; }
.adoss-brand-sub { font-size: 13.5px; line-height: 1.5; color: rgba(247,241,227,.72); max-width: 52ch; }

/* feature aside — brand variant (ink) */
.adoss-aside--brand { background: var(--ink-1000); border-color: var(--ink-1000); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.adoss-aside-k { font-family: var(--font-sans); font-weight: 700; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-300); }
.adoss-aside-s--ink { color: rgba(247,241,227,.7); }

/* powered-by badge in the lead */
.adoss-badge { display: inline-flex; align-items: center; gap: 12px; background: var(--ink-1000); border-radius: 999px; padding: 8px 18px 8px 16px; margin: 0 0 18px; }
.adoss-badge span { font-family: var(--font-sans); font-weight: 700; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-300); }
.adoss-badge img { height: 16px; width: auto; display: block; }

.adoss .flw-btn--gold { cursor: pointer; }

/* the shared "journey" sub-page — embedded launch carousel (4 + 4 with arrows).
   Height is set inline by CarouselEmbed from the iframe's reported content height. */
.adoss-journey { width: 100%; border: 0; display: block; min-height: 300px; }

/* journey dossier — fit the whole thing on one screen (no scroll), centred */
.adoss--fit .flw-body { overflow: hidden; }
.adoss--fit .adoss-lead { padding-top: 0; }
.adoss--fit .flw-title { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 6px; }
.adoss--fit .flw-intro { margin-bottom: 4px; }
.adoss--fit .adoss-sec { flex: 1 1 auto; min-height: 0; padding: 8px 0 0; border-top: 0; display: block; }
.adoss--fit .adoss-journey { height: 100%; min-height: 0; }

/* dossier 2-col rows: let names/notes wrap so both columns fit (the base
   .flw-row is nowrap+ellipsis, which blows the grid columns off-screen) */
.adoss .flw-2col { gap: 0 40px; }
.adoss .flw-2col .flw-row { align-items: flex-start; }
.adoss .flw-row-name { white-space: normal; }
.adoss .flw-row-note { white-space: normal; overflow: visible; text-overflow: clip; margin-top: 3px; line-height: 1.45; }
.adoss .flw-pip { margin-top: 8px; }

/* ============================================================
   The journey dossier — Vanessa's escorted tour (replaces the
   embedded campaign-strip iframe)
   ============================================================ */
.adoss--tour .flw-title { font-size: clamp(2.2rem, 3.8vw, 3rem); margin-bottom: 6px; }
.adoss--tour .adoss-lead { flex-shrink: 0; padding-bottom: 14px; }
.adoss--tour .adoss-sec { border-top: 0; padding: 8px 0 0; }

/* fit the whole tour on one screen on desktop; small or short screens fall back
   to the dossier's normal scrolling body. overflow-y:auto (not hidden) so that on
   viewports too short for the whole tour (~740–860px tall) the thumbnail rail stays
   reachable by scrolling instead of being clipped off behind the CTA footer. */
@media (min-width: 961px) and (min-height: 740px) {
  .adoss--tour .flw-body { overflow-y: auto; }
  .adoss--tour .adoss-sec { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
  .adoss--tour .tour { flex: 1 1 auto; min-height: 0; }
  .adoss--tour .tour-stage { flex: 1 1 auto; min-height: 360px; }
  .adoss--tour .tour-side { min-height: max-content; }
  .adoss--tour .tour-panel { height: 100%; width: auto; min-height: 0; max-width: 100%; }
  .adoss--tour .tour-rail { flex: 0 0 auto; }
  .adoss--tour .tour-thumb { max-height: 92px; }
}
@media (min-width: 961px) and (min-height: 740px) and (max-height: 900px) {
  .adoss--tour .adoss-lead { padding-bottom: 6px; }
  .adoss--tour .flw-intro { margin-bottom: 8px; }
  .adoss--tour .tour-thumb { max-height: 64px; }
  .adoss--tour .tour-thumb-t { display: none; }
}

.tour { display: flex; flex-direction: column; gap: 18px; }
.tour-stage { display: flex; gap: 44px; align-items: stretch; }
@media (max-width: 960px) { .tour-stage { flex-direction: column; } }

/* illustrated panel — the comic frame. Keeps close to the illustrations' own
   4:3 proportions (bounded by viewport height) so faces aren't cropped away. */
.tour-panel { position: relative; flex: 0 1 auto; border: 2px solid var(--ink-1000); border-radius: 8px; overflow: hidden; background: var(--paper-200); box-shadow: var(--shadow-ink); aspect-ratio: 4 / 3; width: min(100%, calc(58vh * 1.333)); min-height: 300px; align-self: center; }
.tour-panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .38s var(--ease-out, cubic-bezier(.16,1,.3,1)); }
.tour-panel img.is-on { opacity: 1; }
.tour-plaque { position: absolute; top: 16px; left: 16px; z-index: 1; display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap; background: rgba(246,240,226,.92); border: 1.5px solid var(--ink-1000); border-radius: 4px; padding: 6px 12px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; color: var(--ink-900); }
.tour-plaque b { color: var(--red-600); font-weight: 700; }
.tour-plaque span { color: var(--ink-500); }
.tour-host { position: absolute; left: 16px; bottom: 16px; z-index: 1; background: rgba(246,240,226,.94); border: 1.5px solid var(--ink-1000); border-radius: 4px; padding: 9px 16px 8px; box-shadow: 3px 3px 0 rgba(12,10,8,.28); }
.tour-host-name { display: block; font-family: var(--font-display); font-weight: 600; font-size: 17px; line-height: 1.05; color: #99251f; }
.tour-host-role { display: block; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-600); margin-top: 3px; }

/* step text — Vanessa's side of the room */
.tour-side { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; min-width: 280px; padding-bottom: 6px; }
.tour-kicker { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-700); margin-bottom: 10px; }
.tour-step-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 3.4vw, 2.9rem); line-height: 1.02; letter-spacing: -.01em; color: var(--ink-1000); margin: 0 0 14px; }
.tour-step-title em { font-style: italic; color: var(--red-600); }
.tour-step-lead { font-size: 16px; line-height: 1.6; color: var(--ink-700); max-width: 46ch; margin: 0 0 22px; text-wrap: pretty; }
.tour-open { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; border: 1.5px solid var(--ink-1000); border-radius: 4px; padding: 11px 20px; font-family: var(--font-sans); font-weight: 700; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-900); cursor: pointer; box-shadow: 3px 3px 0 rgba(12,10,8,.85); background: var(--paper-0); transition: transform .18s var(--ease-out, cubic-bezier(.16,1,.3,1)), box-shadow .18s, color .18s; }
.tour-open:hover { transform: translate(-2px, -2px); color: var(--red-600); box-shadow: 5px 5px 0 rgba(153,37,31,.9); }
.tour-open:active { transform: translateY(1px); }
.tour-open .arr { color: var(--red-600); }

@keyframes tour-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) { .tour-fade { animation: tour-in .3s var(--ease-out, cubic-bezier(.16,1,.3,1)); } }

/* stepper — same vocabulary as the rooms */
.tour-stepbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; border-top: 1.5px solid var(--ink-1000); padding-top: 14px; margin-top: 22px; }
.tour-step-btn { background: none; border: 0; cursor: pointer; font-family: var(--font-sans); font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-600); padding: 6px 0; transition: color .18s; }
.tour-step-btn:hover { color: var(--red-600); }
.tour-step-btn--next { color: var(--red-600); }
.tour-stepbar-mid { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.tour-tick { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-500); }
.tour-dots { display: flex; gap: 7px; }
.tour-dot { width: 6px; height: 6px; border-radius: 999px; background: var(--ink-300); transition: background .18s, transform .18s; }
.tour-dot.is-on { background: var(--red-500); transform: scale(1.35); }

/* the floor plan — thumbnail rail */
.tour-rail { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; padding-top: 16px; border-top: 1px solid var(--line-default); }
@media (max-width: 960px) { .tour-rail { grid-template-columns: repeat(4, 1fr); } }
.tour-thumb { position: relative; border: 1.5px solid var(--ink-400); border-radius: 4px; overflow: hidden; padding: 0; cursor: pointer; background: var(--paper-200); aspect-ratio: 16 / 10; transition: transform .18s var(--ease-out, cubic-bezier(.16,1,.3,1)), border-color .18s, box-shadow .18s; }
.tour-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity .18s; }
.tour-thumb:hover { transform: translateY(-2px); border-color: var(--ink-1000); }
.tour-thumb:hover img { opacity: 1; }
.tour-thumb.is-on { border-color: var(--red-500); border-width: 2px; box-shadow: 3px 3px 0 rgba(153,37,31,.55); }
.tour-thumb.is-on img { opacity: 1; }
.tour-thumb-n { position: absolute; top: 5px; left: 5px; z-index: 1; font-family: var(--font-mono); font-size: 9.5px; font-weight: 700; letter-spacing: .08em; color: var(--bone); background: rgba(18,14,10,.82); border-radius: 3px; padding: 2px 6px; }
.tour-thumb.is-on .tour-thumb-n { background: var(--red-600); }
.tour-thumb-t { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; font-family: var(--font-sans); font-weight: 700; font-size: 9px; letter-spacing: .05em; text-transform: uppercase; color: var(--bone); background: linear-gradient(transparent, rgba(18,14,10,.88) 45%); padding: 14px 7px 6px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- phone (≤768): keep the tour column from overflowing narrow screens ---- */
@media (max-width: 768px) {
  .tour-side { min-width: 0; }
  .tour-stage { gap: 22px; }
  .tour-rail { gap: 8px; }
  .tour-rail .tour-thumb-t { display: none; } /* labels are unreadable at this thumb size — number + image carry it */
  .adoss-brand { padding: 20px 22px; gap: 18px; }
}
/* touch devices: no lingering :hover lift after a tap */
@media (hover: none) {
  .tour-thumb:hover { transform: none; }
  .tour-open:hover { transform: none; box-shadow: 3px 3px 0 rgba(12,10,8,.85); }
}

/* ---- Mobile iteration 3 (2026-07-19) ---------------------------------------
   Step-image hero in the lead (phones), "Next in the programme" hand-off,
   and tap-to-expand detail sections on phones. */

/* the step's illustration heading the dossier (rendered on phones only) */
.adoss-hero { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  border: 1.5px solid var(--ink-1000); border-radius: var(--radius-lg, 8px); box-shadow: var(--shadow-ink-sm);
  background: var(--paper-200); margin: 2px 0 20px; }

/* next-dossier hand-off */
.adoss-next { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line-default); }
.adoss-next-k { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-700); margin-bottom: 10px; }
.adoss-next-btn { width: 100%; max-width: 560px; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 15px 18px; background: var(--paper-0); border: 1.5px solid var(--ink-1000); border-radius: var(--radius-md, 8px);
  box-shadow: var(--shadow-ink-sm); cursor: pointer; text-align: left; transition: transform .16s ease, box-shadow .16s ease; }
.adoss-next-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-ink); }
.adoss-next-t { font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 1.12; color: var(--ink-1000); }
.adoss-next-t em { font-style: italic; color: var(--red-600); }
.adoss-next-t br { display: none; }
.adoss-next-arr { flex: 0 0 auto; font-size: 24px; line-height: 1; color: var(--gold-700); }

/* tap-to-expand detail sections (phones; nothing removed, presentation only) */
.adoss-fold { border-top: 1px solid var(--line-default); }
.adoss-fold-sum { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 56px; padding: 16px 2px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.adoss-fold-sum::-webkit-details-marker { display: none; }
.adoss-fold-tx { display: flex; flex-direction: column; gap: 3px; }
.adoss-fold-k { margin-bottom: 0; }
.adoss-fold-h { font-family: var(--font-display); font-weight: 600; font-size: 19px; line-height: 1.12; color: var(--ink-1000); }
.adoss-fold-h em { font-style: italic; color: var(--red-600); }
.adoss-fold-chev { flex: 0 0 auto; color: var(--gold-700); font-size: 15px; transition: transform .2s ease; }
.adoss-fold[open] > .adoss-fold-sum .adoss-fold-chev { transform: rotate(180deg); }
.adoss-fold > .adoss-sec { border-top: 0; padding-top: 0; }

/* reading comfort on phones: rein in the display-size pull quote */
@media (max-width: 768px) {
  .adoss-quote blockquote { font-size: clamp(1.35rem, 5.6vw, 1.7rem); max-width: none; }
}
