/* Demo: clear hierarchy on the Preny case page (chapters > sections > sub-sections) */
.case-stack { gap: 0; }
.case-stack > .block,
.case-stack > .block + .block { border-top: 0; padding-top: clamp(36px, 4.5vw, 52px); }
.case-stack > .block:first-child { padding-top: 0; }

/* Chapter: big number, heavy rule, more air */
.case-stack > .block.chapter { margin-top: clamp(40px, 6vw, 72px); padding-top: clamp(32px, 4vw, 44px); border-top: 2px solid var(--ink); }
.block.chapter .block-head { gap: 12px; }
.ch-num {
  font-family: var(--mono); font-weight: 500; font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 1; letter-spacing: -0.04em;
  background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.block.chapter .block-head h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); line-height: 1.15; }
.block.chapter .eyebrow { background: var(--ink); border-color: var(--ink); color: #fff; }
.block.chapter .eyebrow::before { background: #a5b4fc; }

/* Level 2: accent rail, indented */
.case-stack > .block.lv2 { padding-left: 28px; border-left: 2px solid var(--accent-line); }
.block.lv2 .block-head h2 { font-size: clamp(1.3rem, 2.2vw, 1.65rem); }

/* Level 3: parent rail continues, own lighter rail further in */
.case-stack > .block.lv3 {
  padding-left: 56px; border-left: 2px solid var(--accent-line);
  background: linear-gradient(var(--line-strong), var(--line-strong)) 26px 0 / 2px 100% no-repeat;
}
.block.lv3 .block-head h2 { font-size: clamp(1.15rem, 1.8vw, 1.35rem); }
.block.lv2 .eyebrow, .block.lv3 .eyebrow { background: transparent; border-color: transparent; padding-left: 0; color: var(--accent-ink); }
.block.lv3 .eyebrow::before { background: var(--muted); box-shadow: none; }

@media (max-width: 720px) {
  .case-stack > .block.lv2 { padding-left: 16px; }
  .case-stack > .block.lv3 { padding-left: 32px; background-position: 14px 0; }
}

/* Round 2: smaller number beside a plain label, lighter label colour */
.ch-row { display: flex; align-items: center; gap: 12px; }
.ch-num { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.block.chapter .eyebrow { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-ink); }
.block.chapter .eyebrow::before { background: var(--accent); }
/* timeline cards with media (Askany demo) */
.phase > .vthumb { margin-top: 10px; border-radius: 10px; }
.phase > .cap-link { justify-self: start; margin-top: 4px; }

/* ===== Stronger visual hierarchy (Askany demo) =====
   L1 chapter: black rule + big number (unchanged)
   L2 phase: tinted banner card with large number
   L3 sub-section: number pill + hairline divider, single rail */
.case-stack > .block.lv2.is-phase { padding-top: clamp(40px, 5vw, 60px); }
.block.lv2.is-phase .block-head {
  position: relative; max-width: none; padding: 24px 28px 24px 96px;
  background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 16px;
}
.block.lv2.is-phase .ph-num {
  position: absolute; left: 28px; top: 22px; font-family: var(--mono, inherit); font-size: 3rem; font-weight: 500; line-height: 1;
  letter-spacing: -0.06em; background: var(--accent-grad, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.block.lv2.is-phase .eyebrow { display: inline-flex; gap: 10px; align-items: center; }
.block.lv2.is-phase .eyebrow::before { display: none; }
.ph-date { padding: 2px 8px; border-radius: 999px; background: var(--surface, #fff); border: 1px solid var(--accent-line); color: var(--muted); font-size: 0.75rem; letter-spacing: 0; text-transform: none; }
.block.lv2.is-phase .block-head h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); }
.block.lv2.is-phase .block-intro { color: var(--ink); opacity: .8; }

/* L3: one rail only, number pill, hairline separator */
.case-stack > .block.lv3 { padding-left: 28px; background: none; }
.case-stack > .block.lv3 + .block.lv3 .block-head { padding-top: clamp(28px, 3.5vw, 40px); border-top: 1px dashed var(--line-strong, #cfd5e1); }
.case-stack > .block.lv3 + .block.lv3 { padding-top: clamp(28px, 3.5vw, 40px); }
.block.lv3 .eyebrow { gap: 8px; color: var(--ink); font-weight: 600; }
.block.lv3 .eyebrow::before { display: none; }
.sec-num { display: inline-block; padding: 2px 7px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 0.7rem; letter-spacing: 0.02em; }

/* strategy cards jump to their phase */
.phase-more { justify-self: start; margin-top: 8px; font-size: 0.875rem; font-weight: 500; color: var(--accent-ink); text-decoration: none; }
.phase-more::after { content: " ↓"; }
.phase-more:hover { text-decoration: underline; }

@media (max-width: 720px) {
  .block.lv2.is-phase .block-head { padding: 20px 18px 20px 60px; }
  .block.lv2.is-phase .ph-num { left: 18px; top: 18px; font-size: 2.2rem; }
  .case-stack > .block.lv3 { padding-left: 16px; }
}
.phase:has(> .phase-more) { display: flex; flex-direction: column; }
.phase > .phase-more { margin-top: auto; padding-top: 10px; align-self: flex-start; }

/* show-more for long link lists */
.link-grid.is-collapsed > .is-extra { display: none; }
.more-btn {
  justify-self: center; display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 10px 18px;
  font: inherit; font-size: 0.9375rem; font-weight: 500; color: var(--ink); background: var(--surface, #fff);
  border: 1px solid var(--line-strong, #cfd5e1); border-radius: 999px; cursor: pointer;
}
.more-btn::after { content: ""; width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.more-btn[aria-expanded="true"]::after { transform: translateY(2px) rotate(-135deg); }
.more-btn:hover { border-color: var(--accent); color: var(--accent-ink); }
.block:has(> .more-btn) { display: grid; }
.ooh-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 6px; }
.ooh-thumbs a { display: block; aspect-ratio: 16/9; overflow: hidden; border-radius: 6px; border: 1px solid var(--line); }
.ooh-thumbs img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.ooh-thumbs a:hover img { transform: scale(1.06); }
.phase .ooh-thumbs li { padding-left: 0; }
.phase .ooh-thumbs li::before { display: none; }
/* photo gallery dialog */
.gallery-btn { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
.gallery-dlg { width: min(1100px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 16px; background: var(--surface, #fff); color: var(--ink); }
.gallery-dlg::backdrop { background: rgba(11, 13, 20, .72); }
.gallery-dlg .g-head { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; background: inherit; border-bottom: 1px solid var(--line); font-weight: 600; }
.gallery-dlg .g-close { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: none; font-size: 20px; line-height: 1; cursor: pointer; color: inherit; }
.gallery-dlg .g-body { display: grid; gap: 18px; padding: 18px; }
.gallery-dlg figure { margin: 0; display: grid; gap: 8px; }
.gallery-dlg img { width: 100%; height: auto; border-radius: 10px; }
.gallery-dlg figcaption { font-size: .9rem; color: var(--muted); }
.gallery-btn.cap-link { text-decoration: underline; color: var(--accent-ink); }
.bar-sub { display: block; font-size: 0.8125rem; color: var(--muted); }

/* Bullet points inside role cards */
.detail-list .role-points{list-style:none;margin:6px 0 0;padding:0;color:var(--muted,#5b6275);font-size:15px;line-height:1.55}
.detail-list .role-points li{position:relative;padding:0 0 0 16px;margin:0 0 4px;border:0;background:none;box-shadow:none}
.detail-list .role-points li::before{content:"";position:absolute;left:2px;top:.68em;width:5px;height:5px;border-radius:50%;background:var(--accent,#4f46e5)}

/* 3-column role cards */
.detail-list.three{grid-template-columns:repeat(3,minmax(0,1fr))}
@media (max-width:980px){.detail-list.three{grid-template-columns:minmax(0,1fr)}}

/* Several links in one card */
.card-links{display:flex;flex-wrap:wrap;gap:4px 20px;margin:0}
.card-links .cap-link{margin-top:0}

/* lv3 label: lighter number pill, readable sentence-case label */
.block.lv3 .eyebrow{font-family:inherit;text-transform:none;letter-spacing:0;font-size:.82rem;font-weight:600;color:var(--accent-ink);align-items:center}
.block.lv3 .eyebrow .sec-num{font-family:var(--mono);font-size:.75rem;font-weight:600;padding:2px 8px;border-radius:6px;background:var(--accent-soft);color:var(--accent-ink);border:1px solid var(--accent-line);letter-spacing:.02em}

/* Chapter divider: hairline above 01–04 */
.case-stack:has(> .block.chapter) > .block.block.chapter { border-top: 1px solid var(--line-strong, #d5dae4); margin-top: clamp(32px, 4.5vw, 52px); padding-top: clamp(32px, 4vw, 44px); }

/* Banner label a bit larger */
.block.lv2.is-phase .eyebrow { font-family: inherit; text-transform: none; letter-spacing: 0; font-size: 0.95rem; font-weight: 600; }

/* Banner number: own column, centred on label + title */
.block.lv2.is-phase .block-head { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 28px; row-gap: 6px; align-items: center; padding: 26px 32px; }
.block.lv2.is-phase .block-head > * { grid-column: 2; }
.block.lv2.is-phase .ph-num { position: static; grid-column: 1; grid-row: 1 / span 2; align-self: center; font-size: 4rem; line-height: .9; padding-right: 26px; border-right: 1px solid var(--accent-line); }
.block.lv2.is-phase .block-head h2 { margin: 0; }
@media (max-width: 720px) {
  .block.lv2.is-phase .block-head { column-gap: 16px; padding: 20px 18px; }
  .block.lv2.is-phase .ph-num { font-size: 2.6rem; padding-right: 16px; }
}

/* Snapshot with a Website cell (5 columns on desktop) */
.snapshot.has-site { grid-template-columns: minmax(0, .9fr) minmax(0, .9fr) minmax(0, 1.7fr) minmax(0, 1.3fr) minmax(0, 1fr); }
.snap-site a { color: var(--accent-ink); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.snap-site a:hover { text-decoration: underline; }
@media (max-width: 980px) { .snapshot.has-site { grid-template-columns: repeat(2, minmax(0, 1fr)); } .snapshot.has-site .snap-site { grid-column: 1 / -1; } }
@media (max-width: 560px) { .snapshot.has-site { grid-template-columns: minmax(0, 1fr); } }
