/* entrepreneurship.css - the Entrepreneurship diagram blocks (entrepreneurship.js); the home page's scene grounds, sheen and faint numbers, on the content-page column */

.ep {
    max-width: 980px;
    /* each figure answers to its own width, so the sidebar and text size are already counted */
    container-type: inline-size;
    --ep-ink: var(--paper-ink, #1B1B18);
    --ep-ink-mid: var(--paper-ink-mid, #4A443C);
    --ep-rule: rgba(27,27,24,0.12);
    --ep-line: rgba(58,75,58,0.40);
    --ep-glass: rgba(255,255,255,0.62);
    --ep-glass-border: rgba(27,27,24,0.07);
    /* the home problem cards' grounds: sand, sea, sage, and the phenols panel's peach */
    --ep-soil: #E9D6B8;
    --ep-water: #CFE2EC;
    --ep-green: #D6E1C8;
    --ep-peach: #F0CBAA;
    --ep-mark: rgba(27,27,24,0.12);
    --ep-core: #2F3D2F;
    --ep-core-ink: rgba(255,255,255,0.94);
    --ep-sheet: #FFFBF4;
    --ep-arrow: rgba(58,75,58,0.48);
    --ep-hot: #D2562E;
    --ep-hot-ink: #7A2E14;
    --ep-sheen:
        radial-gradient(118% 92% at 8% 2%, rgba(255,255,255,0.58), rgba(255,255,255,0.20) 38%, rgba(255,255,255,0) 74%),
        linear-gradient(158deg, rgba(255,255,255,0.22), rgba(255,255,255,0) 46%);
    --ep-shadow: 0 1px 2px rgba(27,27,24,0.06), 0 10px 22px rgba(27,27,24,0.07), 0 24px 50px rgba(27,27,24,0.08);
}

/* ── shared pieces ── */
.ep-label {
    margin: 0;
    font-family: 'Quicksand', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-muted);
}

.ep-caption {
    margin: 0.9rem 0 0;
    font-size: 0.78rem;
    font-weight: 300;
    font-style: italic;
    line-height: 1.6;
    color: var(--text-muted);
}
.ep-caption strong { font-weight: 600; color: var(--text-strong); }

.ep-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.ep-points li {
    position: relative;
    padding-left: 0.95rem;
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--ep-ink-mid);
}
.ep-points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.6;
}

.ep-empty { margin: 0; font-size: 0.85rem; font-style: italic; color: var(--text-muted); }

/* a flat scene ground with the home cards' glass sheen laid over it */
.ep-tile,
.ep-swot-q {
    --scene-bg: var(--ep-green);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--scene-bg);
    box-shadow: var(--ep-shadow);
}
.ep-tile::after,
.ep-swot-q::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    pointer-events: none;
    background: var(--ep-sheen);
    box-shadow: inset 0 2px 18px rgba(255,255,255,0.55), inset 0 -20px 34px -20px rgba(27,27,24,0.14);
}
/* scoped to the block, so the ground wins over any card's default */
.ep [data-scene="soil"]  { --scene-bg: var(--ep-soil); }
.ep [data-scene="water"] { --scene-bg: var(--ep-water); }
.ep [data-scene="green"] { --scene-bg: var(--ep-green); }
.ep [data-scene="peach"] { --scene-bg: var(--ep-peach); }

/* the big faint figure in the corner, as on the home flow cards */
.ep-tile-mark,
.ep-swot-mark {
    position: absolute;
    z-index: -1;
    right: 0.9rem;
    bottom: 0.15rem;
    font-family: 'Quicksand', sans-serif;
    font-size: clamp(3rem, 9cqi, 5rem);
    font-weight: 700;
    letter-spacing: -3px;
    line-height: 1;
    color: var(--ep-mark);
    pointer-events: none;
    user-select: none;
}

/* entrance: rises out of a blur once, like the home reveal */
.ep-rise {
    opacity: 0;
    translate: 0 18px;
    filter: blur(6px);
    transition: opacity 0.9s var(--apple-ease), translate 0.9s var(--apple-ease), filter 0.9s var(--apple-ease);
}
.ep-rise.is-in { opacity: 1; translate: 0 0; filter: none; }

/* ── tiles ── */
.ep-tiles {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
    gap: clamp(0.8rem, 2.2cqi, 1.4rem);
}
.ep-tile-cell { display: flex; min-width: 0; }
.ep-tile {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 10.5rem;
    padding: 1.25rem 1.35rem 1.4rem;
    border-radius: 26px;
    color: var(--ep-ink);
    text-decoration: none;
    transition: translate 0.4s var(--apple-ease), box-shadow 0.4s var(--apple-ease);
}
.ep-tile .ep-tile-mark { top: 0.7rem; bottom: auto; font-size: clamp(2.4rem, 6cqi, 3.4rem); }
.ep-tile-title {
    margin: 0;
    font-family: 'Quicksand', sans-serif;
    font-size: 1.08rem;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--ep-ink);
}
.ep-tile:has(.ep-tile-mark) .ep-tile-title { padding-right: 4rem; }
.ep-tile-text { margin: 0; font-size: 0.88rem; line-height: 1.6; color: var(--ep-ink-mid); white-space: pre-line; }
.ep-points a { color: var(--ep-ink); text-decoration-color: rgba(27,27,24,0.35); text-underline-offset: 0.18em; }
.ep-points a:hover { text-decoration-color: currentColor; }
.ep-tile .ep-points { margin-top: 0.2rem; }
.ep-tile-go {
    align-self: flex-start;
    margin-top: auto;
    padding-top: 0.6rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--ep-ink);
    text-decoration: none;
}
/* the link's hit area covers the card; the arrow is drawn, not read */
.ep-tile-go::before { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.ep-tile-go::after { content: '→' / ''; display: inline-block; margin-left: 0.35em; transition: translate 0.35s var(--apple-ease); }
.ep-tile-go:focus-visible { outline: none; }
.ep-tile:has(.ep-tile-go:focus-visible) { outline: 2px solid var(--ep-ink); outline-offset: 3px; }
@media (hover: hover) {
    .ep-tile:has(.ep-tile-go:hover) { translate: 0 -3px; box-shadow: 0 2px 4px rgba(27,27,24,0.06), 0 16px 34px rgba(27,27,24,0.12); }
    .ep-tile-go:hover::after { translate: 3px 0; }
}

.ep-tiles--compact .ep-tile { min-height: 0; padding: 1rem 1.15rem 1.15rem; border-radius: 20px; }
.ep-tiles--compact .ep-tile-mark { top: 0.5rem; font-size: clamp(2rem, 5cqi, 2.8rem); }

@container (max-width: 44rem) {
    .ep-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (max-width: 28rem) {
    .ep-tiles { grid-template-columns: minmax(0, 1fr); }
    .ep-tile { min-height: 0; }
}

/* ── tree: tiers joined by rails; --half finds each column's centre through the gaps ── */
.ep-tree-fig {
    --pane-radius: var(--radius-card, 30px);
    --stem: 1.25rem;
    --g: clamp(0.55rem, 1.8cqi, 1rem);
    padding: clamp(1.2rem, 4cqi, 2.2rem);
}
.ep-tree-tier--top .ep-label { margin-bottom: 0.7rem; text-align: center; }
.ep-tree-tier--bottom .ep-label { margin-top: 0.7rem; text-align: center; }

.ep-tree-row {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(var(--n, 1), minmax(0, 1fr));
    gap: var(--g);
    /* half a column, through the gaps: where the rail starts and ends */
    --half: calc((100% - (var(--n, 1) - 1) * var(--g)) / var(--n, 1) / 2);
}
.ep-tree-tier--top .ep-tree-row    { margin-bottom: calc(var(--stem) * 2); }
.ep-tree-tier--bottom .ep-tree-row { margin-top: calc(var(--stem) * 2); }

.ep-tree-node {
    --scene-bg: var(--ep-soil);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 0.85rem;
    border-radius: 16px;
    background: var(--scene-bg);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 6px 16px rgba(27,27,24,0.07);
    font-size: 0.86rem;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    color: var(--ep-ink);
}
.ep-tree--problem  .ep-tree-tier--top .ep-tree-node    { --scene-bg: var(--ep-peach); }
.ep-tree--solution .ep-tree-tier--top .ep-tree-node    { --scene-bg: var(--ep-green); }
.ep-tree--solution .ep-tree-tier--bottom .ep-tree-node { --scene-bg: var(--ep-water); }

/* the lines: a tick from every node to a rail, one stem from the rail to the core */
.ep-tree-node::after,
.ep-tree-row::after,
.ep-tree-core::before,
.ep-tree-core::after {
    content: '';
    position: absolute;
    background: var(--ep-line);
}
.ep-tree-node::after { left: 50%; width: 2px; height: var(--stem); translate: -1px 0; }
.ep-tree-row::after  { left: var(--half); right: var(--half); height: 2px; }
.ep-tree-tier--top .ep-tree-node::after     { top: 100%; }
.ep-tree-tier--top .ep-tree-row::after      { top: calc(100% + var(--stem) - 1px); }
.ep-tree-tier--bottom .ep-tree-node::after  { bottom: 100%; }
.ep-tree-tier--bottom .ep-tree-row::after   { bottom: calc(100% + var(--stem) - 1px); }

.ep-tree-core {
    position: relative;
    max-width: 32rem;
    margin-inline: auto;
    padding: 1.05rem 1.6rem 1.15rem;
    border-radius: 22px;
    background: var(--ep-core);
    box-shadow: 0 14px 34px rgba(27,27,24,0.18);
    text-align: center;
}
.ep-tree--problem .ep-tree-core { --ep-core: #5A3B2B; }
.ep-tree-core::before,
.ep-tree-core::after { left: 50%; width: 2px; height: var(--stem); translate: -1px 0; }
.ep-tree-core::before { bottom: 100%; }
.ep-tree-core::after  { top: 100%; }
.ep-tree-core .ep-label { color: var(--ep-core-ink); opacity: 0.72; }
.ep-tree-core-text {
    margin: 0.35rem 0 0;
    font-family: 'Quicksand', sans-serif;
    font-size: clamp(1.05rem, 3cqi, 1.3rem);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--ep-core-ink);
}

/* narrow: the nodes stack, the rails go, the stems still join the tiers to the core */
@container (max-width: 34rem) {
    .ep-tree-row { grid-template-columns: minmax(0, 1fr); }
    .ep-tree-node::after,
    .ep-tree-row::after { display: none; }
    .ep-tree-tier--top .ep-tree-row    { margin-bottom: var(--stem); }
    .ep-tree-tier--bottom .ep-tree-row { margin-top: var(--stem); }
}

/* ── golden: the DBTL ring and panel from content-page.css; only the layout differs ── */
.ep-golden .ep-gc-wheel .dbtl-seg-hit { cursor: pointer; }
@media (max-width: 58em) {
    /* no cycle picker here, so the title takes the wheel's whole height */
    .ep-golden .dbtl-shell { grid-template-areas: "wheel title" "body body"; }
    .ep-golden .dbtl-reader-title { align-self: center; margin: 0; }
}

/* ── market: the home origin bars - TAM and SAM run in from the left cut square, our SOM arrives from the right ── */
.ep-bars {
    /* how much of the row the longest bar takes, and where the labels' axis sits */
    --bar-k: 0.6;
    --bar-gap: clamp(0.7rem, 1.6cqi, 1.2rem);
    --axis: calc(var(--top, 100) * var(--bar-k) * 1% + var(--bar-gap));
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: clamp(0.7rem, 1.8cqi, 1.1rem);
}
.ep-bar-row { display: flex; align-items: center; gap: var(--bar-gap); }
.ep-bar {
    flex: 0 0 auto;
    width: calc(var(--v, 0) * var(--bar-k) * 1%);
    height: clamp(26px, 4.2cqi, 38px);
    border-radius: 0 50px 50px 0;
    background: linear-gradient(90deg, var(--bar-a, #3F5340), var(--bar-b, #6F7D65));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.28), 0 8px 18px rgba(27,27,24,0.09);
    transition: width 1.05s var(--apple-ease);
}
.ep-bar-row[data-level="0"] .ep-bar { --bar-a: #38492F; --bar-b: #5B705B; }
.ep-bar-row[data-level="1"] .ep-bar { --bar-a: #66765C; --bar-b: #8C9C81; }
/* our own share breaks the staircase: warm, and in from the other side, its words under the top row's */
.ep-bar-row.is-own .ep-bar {
    order: 2;
    margin-inline-start: auto;
    border-radius: 50px 0 0 50px;
    --bar-a: #C9C0A9;
    --bar-b: #8A7A53;
}
.ep-bar-row.is-own .ep-bar-label { margin-inline-start: var(--axis); }
.ep-bars.ep-rise:not(.is-in) .ep-bar { width: 0; }
.ep-bars.ep-rise { filter: none; translate: none; opacity: 1; }

.ep-bar-label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.15rem 0.55rem; min-width: 0; }
.ep-bar-value {
    font-family: 'Quicksand', sans-serif;
    font-size: clamp(1.15rem, 3.4cqi, 1.6rem);
    font-weight: 600;
    letter-spacing: -0.6px;
    color: var(--ep-ink);
    font-variant-numeric: tabular-nums;
}
.ep-bar-key { font-family: 'Quicksand', sans-serif; font-size: 0.9rem; font-weight: 700; color: var(--ep-ink); }
.ep-bar-name { font-size: 0.88rem; color: var(--ep-ink-mid); }
/* a word as well as a colour, as the home "our home" tag */
.ep-bar-tag {
    align-self: center;
    padding: 0.2em 0.65em;
    border: 1px solid rgba(133,123,101,0.55);
    border-radius: 50px;
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--secondary-mid, #857B65);
}

.ep-market-notes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem 1.8rem;
    margin-top: 1.5rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--ep-rule);
}
.ep-market-note { margin: 0; font-size: 0.85rem; line-height: 1.6; color: var(--ep-ink-mid); }
.ep-market-note strong { font-family: 'Quicksand', sans-serif; color: var(--ep-ink); }
.ep-market-source { display: block; margin-top: 0.2rem; font-size: 0.76rem; color: var(--text-muted); }

@container (max-width: 36rem) {
    .ep-bars { --bar-k: 0.42; }
    .ep-market-notes { grid-template-columns: minmax(0, 1fr); }
}

/* ── questions: the home steps - the question set large beside its panel, sides taking turns ── */
.ep-q-list,
.ep-q-pair { display: grid; gap: clamp(1.4rem, 4cqi, 2.4rem); }
.ep-q {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(1.2rem, 4cqi, 3rem);
}
.ep-q-title {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    font-family: 'Quicksand', sans-serif;
    font-size: clamp(1.35rem, 4cqi, 2.2rem);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.9px;
    color: var(--ep-ink);
}
.ep-q-panel {
    --pane-radius: var(--radius-card, 30px);
    --ring-width: 2.5;
    grid-column: 1;
    grid-row: 1;
    overflow: hidden;
    /* a quiet warm grey, deep enough for a white light to show bright on it */
    background: linear-gradient(160deg, #E9E5DC, #DAD5C9);
    /* no border: the ring layer then covers the whole box, so the light runs exactly on the edge; the hairline is a shadow */
    border: 0;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.55), inset 0 1px 0 rgba(255,255,255,0.9), 0 14px 34px rgba(27,27,24,0.08);
    min-height: 9.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(1.3rem, 4cqi, 2rem);
}
.ep-q--flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
.ep-q--flip .ep-q-title { grid-column: 1; text-align: end; }
.ep-q--flip .ep-q-panel { grid-column: 2; }
.ep-q-panel .dbtl-phase-body { position: relative; z-index: 1; }
.ep-q-panel .project-text { max-width: 100%; margin: 0; }
.ep-q-panel .project-text p { font-size: 0.95rem; line-height: 1.65; color: var(--ep-ink-mid); }
/* one plain white light, no colour ramp at the corner */
.ep-q-panel > .ring { --ring-mix: 0; --ring-core: #FFFFFF; }

@container (max-width: 40rem) {
    .ep-q,
    .ep-q--flip { grid-template-columns: minmax(0, 1fr); gap: 0.8rem; }
    .ep-q-title,
    .ep-q--flip .ep-q-title { grid-column: 1; grid-row: 1; text-align: start; }
    .ep-q-panel,
    .ep-q--flip .ep-q-panel { grid-column: 1; grid-row: 2; min-height: 0; }
}

/* ── statement: a line set large, as the home sections open ── */
.ep-statement { max-width: var(--content-measure, 720px); }
.ep-statement-text {
    margin: 0;
    font-family: 'Quicksand', sans-serif;
    font-size: clamp(1.6rem, calc(3vw * var(--fs-scale, 1)), 2.6rem);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -1px;
    color: var(--ep-ink);
}
.ep-statement-lead {
    max-width: 56ch;
    margin: 0.9rem 0 0;
    font-size: clamp(1rem, calc(1.3vw * var(--fs-scale, 1)), 1.2rem);
    font-weight: 300;
    line-height: 1.55;
    color: var(--ep-ink-mid);
}
/* small: for a line that opens a section without taking it over */
.ep-statement--small .ep-statement-text { font-size: clamp(1.15rem, calc(1.8vw * var(--fs-scale, 1)), 1.5rem); letter-spacing: -0.4px; line-height: 1.2; }
.ep-statement--small .ep-statement-lead { font-size: 0.95rem; margin-top: 0.5rem; }
.ep-statement--end { text-align: end; }
.ep-statement--end .ep-statement-lead { margin-inline-start: auto; }

/* ── switch: the mill-flow pill, an ink thumb sliding under the chosen segment ── */
.ep-switch {
    --count: 2;
    --at: 0;
    position: relative;
    display: grid;
    grid-template-columns: repeat(var(--count), minmax(0, 1fr));
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 1.1rem;
    padding: 0.25rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.6);
    border: 1px solid rgba(27,27,24,0.08);
    box-shadow: inset 0 1px 2px rgba(27,27,24,0.06);
}
.ep-switch-thumb {
    position: absolute;
    top: 0.25rem;
    bottom: 0.25rem;
    left: 0.25rem;
    width: calc((100% - 0.5rem) / var(--count));
    border-radius: 999px;
    background: var(--ep-ink);
    box-shadow: 0 6px 16px rgba(27,27,24,0.2);
    transform: translateX(calc(var(--at) * 100%));
    transition: transform 0.55s cubic-bezier(0.45, 0.05, 0.12, 1);
}
.ep-switch-btn {
    position: relative;
    z-index: 1;
    padding: 0.6rem 1.2rem;
    border: 0;
    border-radius: 999px;
    background: none;
    font-family: 'Quicksand', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    white-space: nowrap;
    color: var(--text-body);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: color 0.35s ease;
}
.ep-switch-btn[aria-selected="true"] { color: var(--paper, #FBEADC); }
.ep-switch-btn:focus-visible { outline: 2px solid var(--ep-ink); outline-offset: 3px; }
@container (max-width: 32rem) {
    .ep-switch { width: 100%; }
    .ep-switch-btn { padding: 0.55rem 0.5rem; font-size: 0.8rem; white-space: normal; line-height: 1.2; }
}

/* ── swot: helpful / harmful across, internal / external down ── */
.ep-swot-grid {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
        ".        helpful harmful"
        "internal s       w"
        "external o       t";
    gap: clamp(0.6rem, 1.6cqi, 1rem);
}
.ep-swot-axis {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    text-align: center;
    color: var(--text-muted);
}
.ep-swot-axis--helpful  { grid-area: helpful; }
.ep-swot-axis--harmful  { grid-area: harmful; }
.ep-swot-axis--internal,
.ep-swot-axis--external { align-self: center; writing-mode: vertical-rl; rotate: 180deg; }
.ep-swot-axis--internal { grid-area: internal; }
.ep-swot-axis--external { grid-area: external; }

.ep-swot-q { min-height: 9rem; padding: 1.15rem 1.3rem 1.3rem; border-radius: 22px; }
.ep-swot-q--strengths     { grid-area: s; --scene-bg: var(--ep-green); }
.ep-swot-q--weaknesses    { grid-area: w; --scene-bg: var(--ep-soil); }
.ep-swot-q--opportunities { grid-area: o; --scene-bg: var(--ep-water); }
.ep-swot-q--threats       { grid-area: t; --scene-bg: var(--ep-peach); }
.ep-swot-title {
    margin: 0 0 0.6rem;
    font-family: 'Quicksand', sans-serif;
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ep-ink);
}
/* the lists blur out and back as the segment changes, as the mill-flow lane does */
.ep-swot-grid.is-swapping .ep-swot-list { animation: ep-swap 0.45s var(--apple-ease); }
@keyframes ep-swap { from { opacity: 0; filter: blur(5px); translate: 0 6px; } }

@container (max-width: 34rem) {
    .ep-swot-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "s" "w" "o" "t"; }
    .ep-swot-axis { display: none; }
    .ep-swot-q { min-height: 0; }
}

/* ── forces: four outer forces pressing on the rivalry in the middle ── */
.ep-forces-grid {
    --fg: 2.4rem;
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas:
        ".         entrants    ."
        "suppliers rivalry     buyers"
        ".         substitutes .";
    gap: var(--fg);
}
.ep-force {
    position: relative;
    padding: 1.05rem 1.2rem 1.15rem;
    border-radius: 22px;
    background: var(--ep-glass);
    border: 1px solid var(--ep-glass-border);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 10px 24px rgba(27,27,24,0.07);
}
.ep-force--entrants    { grid-area: entrants; }
.ep-force--suppliers   { grid-area: suppliers; }
.ep-force--rivalry     { grid-area: rivalry; }
.ep-force--buyers      { grid-area: buyers; }
.ep-force--substitutes { grid-area: substitutes; }
.ep-force-name {
    margin: 0;
    font-family: 'Quicksand', sans-serif;
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--ep-ink);
}

/* the middle in solid ink, so the eye lands there first */
.ep-force--rivalry {
    --ep-ink: var(--ep-core-ink);
    --ep-ink-mid: rgba(255,255,255,0.82);
    background: var(--ep-core);
    border-color: transparent;
    box-shadow: 0 16px 36px rgba(27,27,24,0.2);
}
.ep-force--rivalry .ep-meter { color: rgba(255,255,255,0.78); }
.ep-force--rivalry .ep-pips i { background: rgba(255,255,255,0.22); }

/* arrows: a shaft across the gap and a chevron at the middle's edge */
.ep-force:not(.ep-force--rivalry)::before,
.ep-force:not(.ep-force--rivalry)::after { content: ''; position: absolute; }
.ep-force:not(.ep-force--rivalry)::before { background: var(--ep-line); }
.ep-force:not(.ep-force--rivalry)::after {
    width: 0.55rem;
    height: 0.55rem;
    border-right: 2px solid var(--ep-line);
    border-bottom: 2px solid var(--ep-line);
}
.ep-force--entrants::before    { left: 50%; top: 100%; width: 2px; height: var(--fg); }
.ep-force--entrants::after     { left: 50%; top: calc(100% + var(--fg) - 0.6rem); translate: -50% 0; rotate: 45deg; }
.ep-force--substitutes::before { left: 50%; bottom: 100%; width: 2px; height: var(--fg); }
.ep-force--substitutes::after  { left: 50%; bottom: calc(100% + var(--fg) - 0.6rem); translate: -50% 0; rotate: -135deg; }
.ep-force--suppliers::before   { top: 50%; left: 100%; height: 2px; width: var(--fg); }
.ep-force--suppliers::after    { top: 50%; left: calc(100% + var(--fg) - 0.6rem); translate: 0 -50%; rotate: -45deg; }
.ep-force--buyers::before      { top: 50%; right: 100%; height: 2px; width: var(--fg); }
.ep-force--buyers::after       { top: 50%; right: calc(100% + var(--fg) - 0.6rem); translate: 0 -50%; rotate: 135deg; }

.ep-meter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.4rem 0 0.7rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}
.ep-pips { display: inline-flex; gap: 3px; }
.ep-pips i { width: 1.05rem; height: 0.4rem; border-radius: 99px; background: rgba(27,27,24,0.14); }
.ep-pips i.is-on { background: var(--ep-ink); }

@container (max-width: 40rem) {
    .ep-forces-grid {
        --fg: 0.8rem;
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "rivalry" "entrants" "suppliers" "buyers" "substitutes";
    }
    .ep-force::before,
    .ep-force::after { display: none; }
}

/* ── landscape: a positioning map, axes on the left and bottom ── */
.ep-map-fig {
    --pane-radius: var(--radius-card, 30px);
    padding: clamp(2.2rem, 5cqi, 2.8rem) clamp(1.4rem, 5cqi, 3rem) clamp(2.6rem, 5cqi, 3rem) clamp(3rem, 7cqi, 4rem);
}
.ep-map-plot {
    position: relative;
    aspect-ratio: 16 / 10;
    border-left: 2px solid var(--ep-line);
    border-bottom: 2px solid var(--ep-line);
    background:
        linear-gradient(to right, transparent calc(50% - 0.5px), var(--ep-rule) calc(50% - 0.5px), var(--ep-rule) calc(50% + 0.5px), transparent calc(50% + 0.5px)),
        linear-gradient(to top, transparent calc(50% - 0.5px), var(--ep-rule) calc(50% - 0.5px), var(--ep-rule) calc(50% + 0.5px), transparent calc(50% + 0.5px));
}
.ep-map-axis {
    position: absolute;
    font-family: 'Quicksand', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    color: var(--text-muted);
}
.ep-map-axis--x { left: 50%; bottom: -1.7rem; translate: -50% 0; }
.ep-map-axis--y { left: -2px; top: -1.7rem; }
.ep-map-axis--y::before { content: '↑ '; }
.ep-map-axis--x::after  { content: ' →'; }
.ep-map-end { font-family: 'Quicksand', sans-serif; font-weight: 500; font-size: 0.74rem; }
.ep-map-end--xlo { left: 0; bottom: -1.7rem; }
.ep-map-end--xhi { right: 0; bottom: -1.7rem; }
.ep-map-end--ylo { left: -0.6rem; bottom: 0; translate: -100% 0; }
.ep-map-end--yhi { left: -0.6rem; top: 0; translate: -100% 0; }

.ep-map-dot {
    position: absolute;
    width: 0.85rem;
    height: 0.85rem;
    translate: -50% 50%;
    border-radius: 50%;
    background: var(--ep-ink-mid);
    box-shadow: 0 0 0 4px rgba(255,255,255,0.75), 0 4px 10px rgba(27,27,24,0.18);
}
.ep-map-dot.is-us {
    width: 1.15rem;
    height: 1.15rem;
    background: linear-gradient(160deg, #A8976A, #6E5E38);
    box-shadow: 0 0 0 4px rgba(255,255,255,0.8), 0 0 0 6px rgba(110,94,56,0.35), 0 6px 14px rgba(27,27,24,0.22);
}
.ep-map-name {
    position: absolute;
    left: calc(100% + 0.55rem);
    top: 50%;
    translate: 0 -50%;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    color: var(--ep-ink);
}
.ep-map-dot.is-us .ep-map-name { font-weight: 800; }
.ep-map-dot.is-left .ep-map-name { left: auto; right: calc(100% + 0.55rem); }

/* a phone gets a square plot, so the dots have room to part */
@container (max-width: 34rem) {
    .ep-map-plot { aspect-ratio: 1; }
    .ep-map-name { font-size: 0.72rem; }
}

/* ── roadmap: a Gantt in half-period steps; only the chart scrolls on a phone ── */
.ep-road-scroll {
    --pane-radius: var(--radius-card, 30px);
    overflow-x: auto;
    scrollbar-width: thin;
}
.ep-road-scroll:focus-visible { outline: 2px solid var(--ep-ink); outline-offset: 3px; }
.ep-road-grid {
    --name-w: 13rem;
    display: grid;
    grid-template-columns: var(--name-w) repeat(var(--cols, 12), minmax(2.4rem, 1fr));
    align-items: center;
    row-gap: 0.55rem;
    min-width: calc(var(--name-w) + var(--cols, 12) * 2.4rem + 2.8rem);
    padding: 1.2rem 1.4rem 1.4rem;
    /* one guide per period, drawn behind the bars */
    background-image: repeating-linear-gradient(to right, var(--ep-rule) 0 1px, transparent 1px calc(100% / var(--n, 6)));
    background-origin: content-box;
    background-clip: content-box;
    background-size: calc(100% - var(--name-w)) 100%;
    background-position: right top;
    background-repeat: no-repeat;
}
.ep-road-head,
.ep-road-ms,
.ep-road-phases,
.ep-road-phase { display: contents; }
.ep-road-ms,
.ep-road-phases { list-style: none; }

.ep-road-head > *  { grid-row: 1; }
.ep-road-stages,
.ep-road-stage-row { display: contents; }
.ep-road-stages { list-style: none; }
.ep-road-phase > * { grid-row: var(--row); }

.ep-road-corner { grid-column: 1; }
.ep-road-period {
    padding-left: 0.45rem;
    font-family: 'Quicksand', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--ep-ink);
}
.ep-road-name {
    grid-column: 1;
    padding-right: 0.9rem;
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--ep-ink);
}
.ep-road-name--ms { font-family: 'Quicksand', sans-serif; color: var(--text-muted); }

.ep-road-stone {
    justify-self: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    translate: -50% 0;
    padding-top: 0.3rem;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    max-width: 8.2rem;
    color: var(--ep-ink);
}
.ep-road-stone::before {
    content: '';
    flex: none;
    width: 0.7rem;
    height: 0.7rem;
    rotate: 45deg;
    border-radius: 2px;
    background: var(--ep-ink);
}
.ep-road-stone.is-end { justify-self: end; translate: 0.35rem 0; align-items: flex-end; text-align: right; }
.ep-road-stone-words { display: grid; gap: 0.1rem; }
.ep-road-stone-sub { font-size: 0.7rem; font-weight: 400; color: var(--text-muted); }

/* the phases: one band of boxes under the years */
.ep-road-stage {
    margin: 0 2px 0.2rem;
    padding: 0.55rem 0.7rem 0.65rem;
    border-radius: 12px;
    background: rgba(111,125,101,0.11);
    border: 1px solid var(--ep-rule);
}
.ep-road-stage strong { display: block; font-family: 'Quicksand', sans-serif; font-size: 0.86rem; font-weight: 700; color: var(--ep-ink); }
.ep-road-stage span { display: block; font-size: 0.72rem; line-height: 1.35; color: var(--ep-ink-mid); }

/* a lane's heading: a tinted band across the chart */
.ep-road-group {
    --tone: var(--ep-ink);
    grid-column: 1 / -1;
    grid-row: var(--row);
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0.3rem -1.4rem 0.1rem;
    padding: 0.5rem 1.4rem;
    background: rgba(111,125,101,0.1);
    font-family: 'Quicksand', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ep-ink-mid);
}
.ep-road-group::before { content: ''; flex: none; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--tone); }
.ep-road-group[data-tone="ms"]::before { border-radius: 2px; rotate: 45deg; background: var(--ep-ink); }
[data-tone="tech"]       { --tone: #2F8A5B; }
[data-tone="ip"]         { --tone: #B57A10; }
[data-tone="commercial"] { --tone: #5A52C4; }
.ep-road-bar--solid { background: var(--tone); color: #fff; }
.ep-road-bar--indicative { background: color-mix(in srgb, var(--tone) 14%, transparent); border: 2px dashed var(--tone); color: var(--ep-ink); }
.ep-road-swatch[data-tone] { background: var(--tone); }
.ep-road-key-item--planned .ep-road-swatch { background: transparent; }

.ep-road-bar {
    display: flex;
    align-items: center;
    min-height: 1.35rem;
    margin-inline: 2px;
    padding: 0 0.8rem;
    border-radius: 99px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
/* the words for screen readers keep their own case */
.ep-road-bar .a11y-sr-only { text-transform: none; }
.ep-road-bar--done     { background: linear-gradient(90deg, #38492F, #5B705B); color: #fff; }
.ep-road-bar--progress { background: linear-gradient(90deg, #5F5030, #7A6942); color: #fff; }
.ep-road-bar--planned  { background: rgba(111,125,101,0.12); border: 2px dashed var(--ep-line); color: var(--ep-ink); }

.ep-road-key {
    list-style: none;
    margin: 0.9rem 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.3rem;
    font-size: 0.76rem;
    color: var(--text-muted);
}
.ep-road-key-item { display: inline-flex; align-items: center; gap: 0.45rem; }
.ep-road-swatch { width: 1.5rem; height: 0.6rem; border-radius: 99px; }
.ep-road-key-item--done .ep-road-swatch     { background: linear-gradient(90deg, #38492F, #5B705B); }
.ep-road-key-item--progress .ep-road-swatch { background: linear-gradient(90deg, #5F5030, #7A6942); }
.ep-road-key-item--planned .ep-road-swatch  { background: rgba(111,125,101,0.12); border: 1.5px dashed var(--ep-line); }

/* ── canvas: the nine boxes in their classic places ── */
.ep-bmc-grid {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    grid-template-areas:
        "partners partners activities activities value value relationships relationships segments segments"
        "partners partners resources  resources  value value channels      channels      segments segments"
        "costs    costs    costs      costs      costs revenue revenue     revenue       revenue  revenue";
    gap: 0.6rem;
}
.ep-bmc-box {
    min-width: 0;
    min-height: 8.5rem;
    padding: 0.95rem 1rem 1.05rem;
    border-radius: 18px;
    background: var(--ep-glass);
    border: 1px solid var(--ep-glass-border);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 8px 20px rgba(27,27,24,0.06);
}
.ep-bmc-box--partners      { grid-area: partners; }
.ep-bmc-box--activities    { grid-area: activities; }
.ep-bmc-box--resources     { grid-area: resources; }
.ep-bmc-box--value         { grid-area: value; background: var(--ep-peach); }
.ep-bmc-box--relationships { grid-area: relationships; }
.ep-bmc-box--channels      { grid-area: channels; }
.ep-bmc-box--segments      { grid-area: segments; background: var(--ep-water); }
.ep-bmc-box--costs         { grid-area: costs; min-height: 6rem; background: var(--ep-soil); }
.ep-bmc-box--ecocosts      { grid-area: ecocosts; min-height: 6rem; background: var(--ep-peach); }
.ep-bmc-box--ecobenefits   { grid-area: ecobenefits; min-height: 6rem; background: var(--ep-water); }
.ep-bmc-grid--eco {
    grid-template-areas:
        "partners partners activities activities value value relationships relationships segments segments"
        "partners partners resources  resources  value value channels      channels      segments segments"
        "costs    costs    costs      costs      costs revenue revenue     revenue       revenue  revenue"
        "ecocosts ecocosts ecocosts   ecocosts   ecocosts ecobenefits ecobenefits ecobenefits ecobenefits ecobenefits";
}
.ep-bmc-box--revenue       { grid-area: revenue; min-height: 6rem; background: var(--ep-green); }
.ep-bmc-name {
    margin: 0 0 0.55rem;
    font-family: 'Quicksand', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ep-ink);
}
.ep-bmc-box .ep-points li { font-size: 0.84rem; }

@container (max-width: 46rem) {
    .ep-bmc-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "value value"
            "segments segments"
            "channels relationships"
            "revenue revenue"
            "resources activities"
            "partners partners"
            "costs costs";
    }
    .ep-bmc-grid--eco {
        grid-template-areas:
            "value value"
            "segments segments"
            "channels relationships"
            "revenue revenue"
            "resources activities"
            "partners partners"
            "costs costs"
            "ecocosts ecocosts"
            "ecobenefits ecobenefits";
    }
    .ep-bmc-box { min-height: 0; }
}
@container (max-width: 28rem) {
    .ep-bmc-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: none; }
    .ep-bmc-box { grid-area: auto; }
}

/* ── orbit: the Golden Circle's thin rings, partners on them as the home scene colours, their card beside ── */
.ep-orbit { --ep-halo: rgba(251,247,240,0.95); }
.ep-orbit-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: clamp(1.4rem, 5cqi, 3rem);
}
.ep-orbit-map {
    position: relative;
    width: 100%;
    max-width: 25rem;
    aspect-ratio: 1;
    margin-inline: auto;
}
.ep-orbit-rings { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ep-orbit-disc { fill: rgba(111,125,101,0.06); }
.ep-orbit-disc--1 { fill: rgba(111,125,101,0.08); }
.ep-orbit-line { fill: none; stroke: var(--ep-line); stroke-width: 1; stroke-linecap: round; }
.ep-orbit-ring-name {
    font-family: 'Quicksand', sans-serif;
    font-size: 6px;
    font-weight: 600;
    fill: var(--text-muted);
}
/* the hub's line out to whoever is chosen, drawn each time */
.ep-orbit-spoke { stroke: var(--ep-ink); stroke-width: 0.8; stroke-linecap: round; opacity: 0.35; stroke-dasharray: 100; stroke-dashoffset: 100; }
.ep-orbit-spoke.is-drawn { stroke-dashoffset: 0; transition: stroke-dashoffset 0.7s var(--apple-ease); }

.ep-orbit-hub {
    position: absolute;
    left: 50%;
    top: 50%;
    translate: -50% -50%;
    width: 17%;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--paper, #FBEADC);
    box-shadow: 0 0 0 1px var(--ep-line), 0 6px 16px rgba(27,27,24,0.08);
}
/* the logo fills its circle; the name sits under it, not inside */
.ep-orbit-hub img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.ep-orbit-hub span {
    font-family: 'Quicksand', sans-serif;
    font-size: clamp(0.66rem, 2.2cqi, 0.82rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--ep-ink);
}
.ep-orbit-hub img + span {
    position: absolute;
    top: calc(100% + 0.35rem);
    white-space: nowrap;
    text-shadow: 0 0 3px var(--ep-halo), 0 0 6px var(--ep-halo);
}

/* the avatar's centre sits on the ring; the name hangs under it */
.ep-orbit-node {
    position: absolute;
    translate: -50% -1.375rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    width: 6.5rem;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    color: var(--ep-ink);
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
.ep-orbit-avatar {
    --photo-img: none;
    width: 2.75rem;
    height: 2.75rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--photo-img) center / cover, var(--scene-bg);
    box-shadow: 0 1px 2px rgba(27,27,24,0.08), 0 4px 10px rgba(27,27,24,0.06);
    outline: 1.5px solid transparent;
    outline-offset: 3px;
    font-family: 'Quicksand', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--ep-ink);
    transition: outline-color 0.35s var(--apple-ease), scale 0.35s var(--apple-ease);
}
.ep-orbit-avatar::before { content: attr(data-initials); }
.ep-orbit-name {
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-shadow: 0 0 3px var(--ep-halo), 0 0 6px var(--ep-halo);
}
.ep-orbit-node[aria-selected="true"] .ep-orbit-avatar { scale: 1.05; outline-color: var(--ep-ink); }
.ep-orbit-node[aria-selected="true"] .ep-orbit-name { font-weight: 800; }
.ep-orbit-node:focus-visible { outline: none; }
.ep-orbit-node:focus-visible .ep-orbit-avatar { outline: 2px solid var(--ep-ink); outline-offset: 4px; }
@media (hover: hover) {
    .ep-orbit-node:hover .ep-orbit-avatar { scale: 1.05; }
}

.ep-orbit-card {
    --pane-radius: var(--radius-card, 30px);
    min-height: 12rem;
    padding: clamp(1.3rem, 4cqi, 2rem);
}
.ep-orbit-card-name {
    margin: 0.4rem 0 0.25rem;
    font-family: 'Quicksand', sans-serif;
    font-size: clamp(1.3rem, 3.4cqi, 1.7rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--ep-ink);
}
.ep-orbit-role {
    margin: 0;
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--text-muted);
}
.ep-orbit-text { margin: 0.9rem 0 0; font-size: 0.92rem; line-height: 1.65; color: var(--ep-ink-mid); }
.ep-orbit-card.is-swapping > * { animation: ep-swap 0.45s var(--apple-ease); }

@container (max-width: 40rem) {
    .ep-orbit-shell { grid-template-columns: minmax(0, 1fr); }
    .ep-orbit-map { max-width: 22rem; }
}

/* ── slot: a sheet laid on the page until its picture lands ── */
.ep-slot { max-width: var(--content-measure, 720px); }
.ep-slot-sheet {
    position: relative;
    aspect-ratio: var(--ratio, 16 / 9);
    /* never taller than 24rem: a portrait sheet narrows instead */
    width: 100%;
    max-width: calc(24rem * var(--ratio, 16 / 9));
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 1.6rem;
    rotate: var(--tilt, -0.6deg);
    border-radius: 6px;
    background: var(--ep-sheet);
    box-shadow: inset 0 0 0 1px rgba(27,27,24,0.04), 0 1px 2px rgba(27,27,24,0.08), 0 14px 30px rgba(27,27,24,0.10);
    text-align: center;
}
.ep-slot-label { margin: 0; font-family: 'Quicksand', sans-serif; font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }
.ep-slot-title {
    margin: 0;
    font-family: 'Quicksand', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ep-ink);
}
.ep-slot-note { max-width: 42ch; margin: 0.2rem 0 0; font-size: 0.86rem; line-height: 1.55; color: var(--ep-ink-mid); }

/* ── heading: a sub-heading inside a long section ── */
.ep-heading { max-width: var(--content-measure, 720px); margin-top: 1.6rem; margin-bottom: -0.3rem; }
.ep-heading-title {
    margin: 0;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--ep-ink);
}
.ep-heading--h3 .ep-heading-title { font-size: clamp(1.25rem, 2.6vw, 1.6rem); }
.ep-heading--h4 .ep-heading-title { font-size: 1.1rem; }
.ep-heading--h5 .ep-heading-title { font-size: 0.97rem; color: var(--ep-ink-mid); }
.ep-heading--h3 { margin-top: 2.2rem; }

/* ── notes: short headed passages, ruled apart ── */
.ep-notes { max-width: var(--content-measure, 720px); }
.ep-note { padding: 1rem 0 1.15rem; border-top: 1px solid var(--ep-rule); }
.ep-note:first-of-type { border-top: 0; padding-top: 0.3rem; }
.ep-note-term {
    margin: 0 0 0.5rem;
    font-family: 'Quicksand', sans-serif;
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.01em;
    color: var(--ep-ink);
}
.ep-note .dbtl-phase-body { display: grid; gap: 0.7rem; }
.ep-note .project-text p { font-size: var(--content-body-size, 0.98rem); line-height: var(--content-line-height, 1.85); }

/* ── flow: rows of boxes joined by arrows ── */
.ep-flow-fig {
    --pane-radius: var(--radius-card, 30px);
    --g: clamp(0.6rem, 2.2cqi, 1.2rem);
    padding: clamp(1.1rem, 4cqi, 2rem);
}
.ep-flow-row > .ep-label { margin: 0 0 0.55rem; }
.ep-flow-nodes {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(var(--n, 1), minmax(0, 1fr));
    gap: var(--g);
    width: calc(var(--w, 100) * 1%);
}
.ep-tile--flow {
    min-height: 0;
    padding: 0.95rem 1.1rem 1.05rem;
    border-radius: 20px;
    gap: 0.4rem;
    text-align: center;
}
.ep-tile--flow .ep-tile-title { padding-right: 0; font-size: 1.02rem; }
.ep-tile--flow .ep-label { text-align: center; }
.ep-tile--flow .ep-points { justify-items: center; }
.ep-tile--flow .ep-points li { padding-left: 0; text-align: center; }
.ep-tile--flow .ep-points li::before { display: none; }
.ep-tile--flow[data-tone="core"] { --scene-bg: var(--ep-core); }
.ep-tile--flow[data-tone="core"] .ep-tile-title,
.ep-tile--flow[data-tone="core"] .ep-tile-text { color: var(--ep-core-ink); }
.ep-flow-arrows {
    display: grid;
    grid-template-columns: repeat(var(--m, 1), minmax(0, 1fr));
    gap: var(--g);
    height: 2.7rem;
}
.ep-flow-arrow { position: relative; justify-self: center; width: 2px; height: 100%; background: var(--ep-arrow); }
.ep-flow-arrow::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0.6rem;
    height: 0.6rem;
    border-right: 2px solid var(--ep-arrow);
    border-bottom: 2px solid var(--ep-arrow);
    rotate: 45deg;
    translate: -50% 0.12rem;
}
@container (max-width: 36rem) {
    .ep-flow-nodes { grid-template-columns: minmax(0, 1fr); width: 100%; }
    .ep-flow-arrows { grid-template-columns: minmax(0, 1fr); height: 1.8rem; }
    .ep-flow-arrow:nth-child(n+2) { display: none; }
}

/* ── lanes: an input, its machines, their outputs and where those go ── */
.ep-lanes-fig { --pane-radius: var(--radius-card, 30px); padding: clamp(1rem, 3.5cqi, 1.9rem); }
.ep-lanes-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.05fr) minmax(0, 1.05fr) minmax(0, 1.4fr);
    column-gap: clamp(1.4rem, 6cqi, 3.4rem);
    row-gap: 0.8rem;
    align-items: stretch;
}
.ep-lanes-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; color: var(--ep-arrow); }
.ep-lanes-line { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ep-lane-head { margin: 0; align-self: end; }
.ep-lane-node,
.ep-lane-out,
.ep-lane-dest { position: relative; z-index: 1; }
.ep-lane-node { align-self: center; min-height: 0; padding: 0.9rem 0.9rem 1rem; border-radius: 18px; text-align: center; gap: 0.3rem; }
.ep-lane-node .ep-tile-title { padding-right: 0; font-size: 1.02rem; }
.ep-lane-node .ep-tile-text { white-space: pre-line; }
.ep-lane-machine[data-scene="peach"] .ep-tile-title { color: #7A2E14; }
.ep-lane-machine[data-scene="green"] .ep-tile-title { color: #1E5A40; }
.ep-lane-out,
.ep-lane-dest {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.15rem;
    padding: 0.7rem 0.8rem;
    border-radius: 16px;
    background: var(--ep-sheet);
    border: 1px solid var(--ep-rule);
    text-align: center;
}
.ep-lane-out strong { font-family: 'Quicksand', sans-serif; font-size: 1rem; font-weight: 700; color: var(--ep-ink); }
.ep-lane-out span { font-size: 0.84rem; line-height: 1.4; color: var(--ep-ink-mid); white-space: pre-line; }
.ep-lane-out.is-absent { background: transparent; border-style: dashed; }
.ep-lane-out.is-absent span,
.ep-lane-out.is-absent strong { font-weight: 500; color: var(--ep-ink-mid); }
.ep-lane-dest-title { margin: 0; font-family: 'Quicksand', sans-serif; font-size: 1rem; font-weight: 700; color: var(--ep-ink); }
.ep-lane-dest .ep-tile-text { margin: 0; font-size: 0.85rem; white-space: pre-line; }
.ep-lane-dest:has(.ep-lane-steps) { justify-content: flex-start; text-align: left; background: color-mix(in srgb, var(--ep-soil) 55%, var(--ep-sheet)); }
.ep-lane-steps { position: relative; list-style: none; margin: 0.7rem 0 0 0.9rem; padding: 0; display: grid; gap: 0.7rem; }
.ep-lane-steps::before { content: ''; position: absolute; left: -0.6rem; top: 1.4rem; bottom: 1.4rem; width: 2px; background: var(--ep-arrow); }
.ep-lane-steps li {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding: 0.55rem 0.7rem;
    border-radius: 12px;
    background: var(--ep-sheet);
    border: 1px solid var(--ep-rule);
    text-align: center;
}
.ep-lane-steps li::before { content: ''; position: absolute; left: -0.6rem; top: 50%; width: 0.6rem; height: 2px; background: var(--ep-arrow); }
.ep-lane-steps strong { font-family: 'Quicksand', sans-serif; font-size: 0.98rem; font-weight: 700; color: var(--ep-ink); }
.ep-lane-steps span { font-size: 0.84rem; line-height: 1.4; color: var(--ep-ink-mid); white-space: pre-line; }
@container (max-width: 46rem) {
    .ep-lanes-grid { grid-template-columns: minmax(0, 1fr); row-gap: 0.6rem; }
    .ep-lanes-grid > * { grid-column: 1 !important; grid-row: auto !important; }
    .ep-lanes-lines,
    .ep-lane-head { display: none; }
    .ep-lane-out,
    .ep-lane-dest { margin-left: 1.1rem; }
    .ep-lane-machine { margin-top: 0.7rem; }
    .ep-lane-steps::before,
    .ep-lane-steps li::before { display: none; }
}

/* ── costmap: who pays whom ── */
.ep-cm-fig { --pane-radius: var(--radius-card, 30px); padding: clamp(0.8rem, 3cqi, 1.6rem); }
.ep-cm-scroll { overflow-x: auto; scrollbar-width: thin; }
.ep-cm-scroll:focus-visible { outline: 2px solid var(--ep-ink); outline-offset: 3px; }
.ep-cm { display: block; width: 100%; min-width: 30rem; max-width: 44rem; height: auto; margin-inline: auto; overflow: visible; font-family: 'Quicksand', sans-serif; }
.ep-cm-line { fill: none; stroke: var(--ep-arrow); stroke-width: 3; stroke-linecap: round; }
.ep-cm-line.ep-cm-hot { stroke: var(--ep-hot); stroke-width: 3.5; }
.ep-cm-head { fill: none; stroke: var(--ep-arrow); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ep-cm-head--hot { stroke: var(--ep-hot); }
.ep-cm-node circle { stroke-width: 1.6; }
.ep-cm-node--waste circle { fill: color-mix(in srgb, var(--ep-soil) 60%, var(--ep-sheet)); stroke: var(--ep-ink-mid); }
.ep-cm-node--three circle,
.ep-cm-node--two circle { fill: var(--ep-green); stroke: #2A7A5C; }
.ep-cm-node--plant circle { fill: var(--ep-water); stroke: #3F7790; }
.ep-cm-node--rhaea circle { fill: color-mix(in srgb, var(--ep-peach) 55%, var(--ep-sheet)); stroke: #B8452A; }
.ep-cm-title { font-size: 29px; font-weight: 700; fill: var(--ep-ink); }
.ep-cm-sub { font-size: 25px; font-weight: 400; fill: var(--ep-ink-mid); }
.ep-cm-label { font-size: 29px; font-weight: 700; fill: var(--ep-ink); }
.ep-cm-node--three .ep-cm-title,
.ep-cm-node--two .ep-cm-title { fill: #1E5A40; }
.ep-cm-node--rhaea .ep-cm-title { fill: var(--ep-hot-ink); }
.ep-cm-flow { font-size: 29px; font-weight: 700; fill: var(--ep-hot-ink); }
.ep-cm-hot-text { font-size: 29px; font-weight: 700; fill: var(--ep-hot-ink); }
.ep-cm-hot-sub { font-size: 25px; font-weight: 400; fill: var(--ep-hot); }
.ep-cm-cut { fill: none; stroke: var(--ep-hot); stroke-width: 7; stroke-linecap: round; }
.ep-cm-key { margin: 0.4rem 0 0; justify-content: center; gap: 0.5rem 2.4rem; }
.ep-cm-key-dot { width: 1.15rem; height: 1.15rem; border-radius: 50%; border: 1.5px solid #B8452A; background: color-mix(in srgb, var(--ep-peach) 55%, var(--ep-sheet)); }
.ep-cm-key-cut { color: var(--ep-hot); font-size: 1.1rem; font-weight: 800; letter-spacing: -2px; }

/* ── entities: companies as logo cards ── */
.ep-ent-group { margin-top: 1.3rem; }
.ep-ent-group:first-of-type { margin-top: 0; }
.ep-ent-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 0.8rem; margin-bottom: 0.8rem; }
.ep-ent-sector { margin: 0; font-family: 'Quicksand', sans-serif; font-size: 1rem; font-weight: 700; color: var(--ep-ink); }
.ep-ent-tag {
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    background: rgba(49,64,49,0.08);
    color: var(--text-muted);
}
.ep-ent-why { max-width: 720px; margin: 0 0 0.9rem; font-size: 0.92rem; line-height: 1.7; color: var(--ep-ink-mid); }
.ep-ent-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(9.4rem, 1fr)); gap: 0.8rem; }
.ep-ent {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.75rem 0.75rem 0.9rem;
    border-radius: 18px;
    background: var(--ep-glass);
    border: 1px solid var(--ep-glass-border);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 8px 20px rgba(27,27,24,0.06);
}
.ep-ent-logo { display: flex; align-items: center; justify-content: center; gap: 0.5rem; height: 3.5rem; padding: 0.4rem 0.5rem; margin-bottom: 0.2rem; border-radius: 12px; background: #fff; }
.ep-ent-logo img { min-width: 0; max-width: 100%; max-height: 100%; object-fit: contain; }
.ep-ent-logo img:only-child { width: auto; }
.ep-ent-logo--tint { background: #B7D7A9; }
.ep-ent-name { font-size: 0.88rem; font-weight: 600; line-height: 1.3; color: var(--ep-ink); }
.ep-ent-origin { font-size: 0.74rem; color: var(--text-muted); }

/* ── nested: TAM inside SAM inside SOM ── */
.ep-nested-fig { --pane-radius: var(--radius-card, 30px); padding: 0; overflow: hidden; }
.ep-nested-stage { position: relative; aspect-ratio: 826 / 448; container-type: inline-size; background: #2F3D2F; color: #fff; font-family: 'Quicksand', sans-serif; }
.ep-nested-title { position: absolute; left: 1.7%; top: 3.2%; width: 29%; margin: 0; font-size: 3.7cqi; font-weight: 700; line-height: 1.12; color: #fff; }
/* square rings sat on one bottom line, so each stays a true circle at any width */
.ep-nested-ring { position: absolute; bottom: 6.2%; aspect-ratio: 1; border-radius: 50%; display: flex; justify-content: center; }
.ep-nested-ring--0 { left: 27.2%; width: 47.2%; padding-top: 3.9%; background: rgba(214,225,200,0.30); }
.ep-nested-ring--1 { left: 34%; width: 33.7%; padding-top: 5.7%; background: rgba(214,225,200,0.46); }
.ep-nested-ring--2 { left: 40.8%; width: 20.1%; align-items: center; background: rgba(240,246,230,0.88); }
.ep-nested-key { font-size: 3.3cqi; font-weight: 700; letter-spacing: -0.01em; color: #fff; }
.ep-nested-ring--1 .ep-nested-key,
.ep-nested-ring--2 .ep-nested-key { color: #25382A; }
.ep-nested-value { position: absolute; left: 73.3%; right: 1.5%; margin: 0; translate: 0 -50%; font-size: 3.2cqi; font-weight: 500; line-height: 1.15; overflow-wrap: anywhere; color: #fff; }
.ep-nested-value--0 { top: 17.2%; }
.ep-nested-value--1 { top: 48.4%; }
.ep-nested-value--2 { top: 75.2%; }

/* ── bubblemap: the competitor map ── */
.ep-bm-shell { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: clamp(0.8rem, 2.4cqi, 1.4rem); align-items: start; }
.ep-bm-scroll { --pane-radius: var(--radius-card, 30px); overflow-x: auto; scrollbar-width: thin; padding: 0; }
.ep-bm-scroll:focus-visible { outline: 2px solid var(--ep-ink); outline-offset: 3px; }
.ep-bm-plot { position: relative; aspect-ratio: 1200 / 736; min-width: 46rem; container-type: inline-size; }
.ep-bm-axes { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--ep-ink); pointer-events: none; }
.ep-bm-axis { fill: none; stroke: currentColor; stroke-width: 2; }
.ep-bm-end {
    position: absolute;
    display: grid;
    place-items: center;
    width: 15.3%;
    height: 9.5%;
    margin: 0;
    padding: 0 1%;
    border: 1px solid var(--ep-ink-mid);
    border-radius: 50%;
    background: var(--ep-sheet);
    font-size: max(0.7rem, 1.18cqi);
    line-height: 1.25;
    text-align: center;
    color: var(--ep-ink);
}
.ep-bm-end--top { left: 42.3%; top: 2.2%; }
.ep-bm-end--bottom { left: 42.3%; top: 87.9%; }
.ep-bm-end--left { left: 1.2%; top: 45%; }
.ep-bm-end--right { left: 83.2%; top: 45%; }
.ep-bm-bubble {
    position: absolute;
    width: 8.67%;
    aspect-ratio: 1;
    translate: -50% -50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 0.2rem;
    border-radius: 50%;
    background: #3E5C86;
    color: #fff;
    font-size: max(0.56rem, 1.02cqi);
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    cursor: grab;
    touch-action: none;
    user-select: none;
    box-shadow: 0 6px 14px rgba(27,27,24,0.18);
}
.ep-bm-bubble--g0, .ep-bm-swatch--g0 { background: #2E6F6A; }
.ep-bm-bubble--g1, .ep-bm-swatch--g1 { background: #8A6A12; }
.ep-bm-bubble--g2, .ep-bm-swatch--g2 { background: #3E5C86; }
.ep-bm-bubble.is-us, .ep-bm-swatch.is-us { background: #C8262B; }
.ep-bm-bubble.is-us { width: 12.1%; font-size: max(0.8rem, 1.85cqi); box-shadow: 0 0 0 0.9cqi rgba(200,38,43,0.2), 0 8px 18px rgba(27,27,24,0.2); }
.ep-bm-bubble.is-held { cursor: grabbing; z-index: 3; box-shadow: 0 14px 30px rgba(27,27,24,0.32); }
.ep-bm-bubble:focus-visible { outline: 3px solid var(--ep-ink); outline-offset: 3px; z-index: 3; }
.ep-bm-flag { margin-bottom: 0.25em; font-size: 1.7cqi; line-height: 1; }
.ep-bm-side { --pane-radius: var(--radius-card, 30px); display: flex; flex-direction: column; gap: 1.2rem; padding: 1.2rem 1.25rem; }
.ep-bm-note { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr); gap: 0.6rem; margin: 0; font-size: 0.82rem; line-height: 1.55; color: var(--ep-ink-mid); }
.ep-bm-num { display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--ep-ink); color: var(--ep-sheet); font-size: 0.78rem; font-weight: 700; }
.ep-bm-key { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.ep-bm-key-item { display: flex; align-items: center; gap: 0.7rem; font-size: 0.82rem; line-height: 1.35; color: var(--ep-ink-mid); }
.ep-bm-swatch { flex: none; width: 1.5rem; height: 1.5rem; border-radius: 50%; }
@container (max-width: 52rem) {
    .ep-bm-shell { grid-template-columns: minmax(0, 1fr); }
}

/* ── riskmap: a probability × impact grid beside cards that open to their controls ── */
.ep-risk { max-width: 980px; --rk-critical: #D9A892; --rk-high: #E6D2A6; --rk-medium: #E4E3D3; --rk-critical-ink: #4A2A1E; --rk-high-ink: #4A3A18; --rk-medium-ink: #4A4A3C; }
.ep-risk-shell { display: grid; grid-template-columns: minmax(0, 21rem) minmax(0, 1fr); gap: clamp(1.2rem, 4cqi, 2.2rem); align-items: start; }

.ep-risk-grid {
    --pane-radius: var(--radius-card, 30px);
    display: grid;
    grid-template-columns: auto auto repeat(var(--n, 2), minmax(0, 1fr));
    gap: 0.5rem;
    position: sticky;
    top: calc(var(--nav-h, 70px) + 1.5rem);
    padding: 1rem 1rem 0.9rem 0.8rem;
}
.ep-risk-cell {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.5rem;
    min-height: 8rem;
    padding: 0.7rem 0.75rem 0.8rem;
    border-radius: 18px;
    background: var(--rk-medium);
    color: var(--rk-medium-ink);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 6px 16px rgba(27,27,24,0.08);
}
.ep-risk-cell[data-rating="critical"] { background: var(--rk-critical); color: var(--rk-critical-ink); }
.ep-risk-cell[data-rating="high"] { background: var(--rk-high); color: var(--rk-high-ink); }
.ep-risk-cell.is-empty { background: transparent; box-shadow: inset 0 0 0 1px var(--ep-rule); }
.ep-risk-cell-word { font-family: 'Quicksand', sans-serif; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.85; }
.ep-risk-dots { display: flex; flex-wrap: wrap; gap: 0.45rem; }

.ep-risk-chip {
    display: grid;
    place-items: center;
    width: 2.1rem;
    height: 2.1rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--ep-sheet);
    color: var(--ep-ink);
    font-family: 'Quicksand', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(27,27,24,0.25);
    cursor: pointer;
    transition: scale 0.25s var(--apple-ease), box-shadow 0.25s var(--apple-ease);
}
.ep-risk-chip.is-hot { scale: 1.18; box-shadow: 0 0 0 3px rgba(255,255,255,0.7), 0 6px 14px rgba(27,27,24,0.3); }
.ep-risk-chip:focus-visible { outline: 3px solid var(--ep-ink); outline-offset: 2px; }

.ep-risk-tick { align-self: center; font-size: 0.78rem; font-weight: 600; color: var(--ep-ink-mid); }
.ep-risk-tick--y { justify-self: end; padding-right: 0.3rem; }
.ep-risk-tick--x { justify-self: center; }
.ep-risk-axis { font-family: 'Quicksand', sans-serif; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; color: var(--ep-ink); }
.ep-risk-axis--y { writing-mode: vertical-rl; rotate: 180deg; justify-self: center; align-self: center; }
.ep-risk-axis--x { text-align: center; }

.ep-risk-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.ep-risk-card {
    border-radius: 20px;
    background: var(--ep-glass);
    border: 1px solid var(--ep-glass-border);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 8px 20px rgba(27,27,24,0.06);
    transition: box-shadow 0.3s var(--apple-ease), border-color 0.3s var(--apple-ease);
}
.ep-risk-card.is-hot { border-color: var(--ep-line); box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 12px 28px rgba(27,27,24,0.12); }
.ep-risk-card::before { content: ''; }
.ep-risk-sum {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.9rem 1.1rem;
    border-radius: 20px;
    cursor: pointer;
    list-style: none;
}
.ep-risk-sum::-webkit-details-marker { display: none; }
.ep-risk-sum:focus-visible { outline: 2px solid var(--ep-ink); outline-offset: 3px; }
.ep-risk-card[open] > .ep-risk-sum { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.ep-risk-num {
    flex: none;
    display: grid;
    place-items: center;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 50%;
    background: var(--rk-medium);
    color: var(--rk-medium-ink);
    font-family: 'Quicksand', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
}
.ep-risk-card[data-rating="critical"] .ep-risk-num { background: var(--rk-critical); color: var(--rk-critical-ink); }
.ep-risk-card[data-rating="high"] .ep-risk-num { background: var(--rk-high); color: var(--rk-high-ink); }
.ep-risk-head { flex: 1; min-width: 0; display: grid; gap: 0.5rem; }
.ep-risk-title { font-family: 'Quicksand', sans-serif; font-size: 1rem; font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; color: var(--ep-ink); }
.ep-risk-badges { display: flex; flex-wrap: wrap; gap: 0.35rem 0.4rem; }
.ep-risk-badge {
    padding: 0.18rem 0.6rem;
    border-radius: 999px;
    background: rgba(49,64,49,0.07);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--ep-ink);
}
.ep-risk-k { font-weight: 500; color: var(--text-muted); }
.ep-risk-badge--rating { background: var(--rk-medium); color: var(--rk-medium-ink); }
.ep-risk-card[data-rating="critical"] .ep-risk-badge--rating { background: var(--rk-critical); color: var(--rk-critical-ink); }
.ep-risk-card[data-rating="critical"] .ep-risk-badge--rating .ep-risk-k { color: inherit; opacity: 0.8; }
.ep-risk-card[data-rating="high"] .ep-risk-badge--rating { background: var(--rk-high); color: var(--rk-high-ink); }
.ep-risk-card[data-rating="high"] .ep-risk-badge--rating .ep-risk-k { color: inherit; opacity: 0.8; }
.ep-risk-card .ep-fold-chev { margin-top: 0.55rem; }
.ep-risk-card[open] > .ep-risk-sum .ep-fold-chev { rotate: 225deg; translate: 0 0.12rem; }
.ep-risk-body { display: grid; gap: 0.8rem; padding: 0.1rem 1.1rem 1.2rem 3.85rem; }
.ep-risk-detail { margin: 0; font-size: 0.92rem; line-height: 1.7; color: var(--ep-ink-mid); }
.ep-risk-label { margin-top: 0.2rem; }
.ep-risk-body .project-text { gap: 0.6rem; max-width: none; }
.ep-risk-body .project-text p { font-size: 0.92rem; line-height: 1.7; }

@container (max-width: 46rem) {
    .ep-risk-shell { grid-template-columns: minmax(0, 1fr); }
    .ep-risk-grid { position: static; max-width: 24rem; margin-inline: auto; width: 100%; }
    .ep-risk-body { padding-left: 1.1rem; }
}

/* ── logos: a row of small logos or banners ── */
.ep-logos-block { max-width: 100%; margin-block: 0.2rem; }
.ep-logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem 1rem; }
.ep-logo { display: flex; align-items: center; height: 3.6rem; padding: 0.35rem 0.7rem; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--ep-rule); }
.ep-logo img { max-width: 13rem; max-height: 100%; width: auto; object-fit: contain; }
.ep-logo--wide { height: auto; padding: 0.5rem 0.7rem; }
.ep-logo--wide img { max-width: min(100%, 24rem); max-height: 7.5rem; }
.content-timeline-body .ep-logos-block { margin-top: 0.8rem; }

/* a card that stays open: a plain header, no toggle, wide enough for the photo cards */
.ep-accordion--static { max-width: 980px; gap: 1.2rem; }
.ep-fold--static > .ep-fold-sum { cursor: default; border-radius: 22px 22px 0 0; padding-bottom: 0.6rem; }
.ep-fold--static > .ep-fold-sum:hover { background: none; }
.ep-fold--static .project-text { max-width: var(--content-measure, 720px); }
.ep-fold--static .reel { margin-block: 0.6rem; }

/* award cards: logos, certificates and posters sit centred under the text, never cropped */
.ep-accordion .ep-logos-block { margin-top: 0.4rem; }
.ep-accordion .ep-logos { justify-content: center; }
.ep-accordion .ep-fold-body .project-figure { width: fit-content; max-width: min(100%, 30rem); margin-inline: auto; aspect-ratio: auto; max-height: none; background: transparent; }
.ep-accordion .ep-fold-body .project-figure img { display: block; width: auto; max-width: 100%; height: auto; max-height: 36rem; object-fit: contain; margin-inline: auto; }
.ep-accordion .ep-fold-body .project-gallery { max-width: 36rem; margin-inline: auto; }
.ep-accordion .ep-fold-body .gallery-viewport { aspect-ratio: 4 / 3; max-height: 62vh; background: transparent; }
.ep-accordion .ep-fold-body .gallery-viewport > .project-figure { max-width: none; height: 100%; }
.ep-accordion .ep-fold-body .gallery-viewport > .project-figure img { height: 100%; }

/* pictures inside the award timelines: the whole certificate or poster, never a crop */
.content-timeline-body .project-figure { max-width: 30rem; margin-inline: 0; aspect-ratio: auto; max-height: none; background: transparent; }
.content-timeline-body .project-figure img { height: auto; object-fit: contain; }
.content-timeline-body .gallery-viewport { max-width: 36rem; aspect-ratio: 4 / 3; max-height: 62vh; background: transparent; }
.content-timeline-body .gallery-viewport > .project-figure { max-width: none; height: 100%; }
.content-timeline-body .gallery-viewport > .project-figure img { height: 100%; }

/* ── tables in this page keep the breaks the PDF has inside a cell ── */
.content-table td,
.content-table th { white-space: pre-line; }

/* ── swot with no axis words ── */
.ep-swot-grid--plain { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "s w" "o t"; }
@container (max-width: 34rem) {
    .ep-swot-grid--plain { grid-template-columns: minmax(0, 1fr); grid-template-areas: "s" "w" "o" "t"; }
}

/* short texts keep the column's width instead of shrinking and centring */
.project-section > .project-text,
.ep-fold-body > .project-text { width: 100%; }

/* ── fold: a part of a section kept shut until asked for ── */
.ep-fold { max-width: var(--content-measure, 720px); }
.ep-fold--wide { max-width: 980px; }
.ep-fold {
    border-radius: 22px;
    background: var(--ep-glass);
    border: 1px solid var(--ep-glass-border);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 8px 22px rgba(27,27,24,0.06);
}
.ep-fold-sum {
    display: flex;
    align-items: center;
    gap: 0.5rem 0.9rem;
    flex-wrap: wrap;
    padding: 1rem 1.25rem;
    border-radius: 22px;
    cursor: pointer;
    list-style: none;
}
.ep-fold-sum::-webkit-details-marker { display: none; }
.ep-fold-sum:focus-visible { outline: 2px solid var(--ep-ink); outline-offset: 3px; }
.ep-fold-title {
    flex: 1 1 14rem;
    margin: 0;
    font-family: 'Quicksand', sans-serif;
    font-size: 1.08rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.015em;
    color: var(--ep-ink);
}
.ep-fold-date {
    flex-basis: 100%;
    font-family: 'Quicksand', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--text-muted);
}
.ep-fold-tag {
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    background: rgba(49,64,49,0.08);
    color: var(--text-muted);
}
.ep-fold-chev { flex: none; margin-left: auto; width: 0.6rem; height: 0.6rem; border-right: 2px solid var(--ep-ink-mid); border-bottom: 2px solid var(--ep-ink-mid); rotate: 45deg; translate: 0 -0.12rem; transition: rotate 0.35s var(--apple-ease), translate 0.35s var(--apple-ease); }
.ep-fold[open] > .ep-fold-sum .ep-fold-chev { rotate: 225deg; translate: 0 0.12rem; }
.ep-fold[open] > .ep-fold-sum { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
@media (hover: hover) {
    .ep-fold-sum:hover { background: rgba(49,64,49,0.04); }
}
.ep-fold-body { display: flex; flex-direction: column; gap: 1.3rem; padding: 0.2rem 1.25rem 1.5rem; }
.ep-fold-body > .ep-heading:first-child { margin-top: 0.4rem; }
.ep-fold-body > .ep-notes { max-width: none; }
/* a fold inside a fold sits lighter */
.ep-fold .ep-fold { background: transparent; box-shadow: none; border-radius: 16px; }
.ep-fold .ep-fold > .ep-fold-sum { border-radius: 16px; }
.ep-fold .ep-fold .ep-fold-title { font-size: 1rem; }

/* the shut state eases open where the browser can animate it */
@supports (interpolate-size: allow-keywords) {
    .ep-fold { interpolate-size: allow-keywords; }
    .ep-fold::details-content { block-size: 0; overflow-y: clip; transition: block-size 0.45s var(--apple-ease), content-visibility 0.45s allow-discrete; }
    .ep-fold[open]::details-content { block-size: auto; }
}

/* a fold that explains a coloured tile takes that tile's ground, with the same sheen */
.ep-fold--scene {
    --scene-bg: var(--ep-green);
    background: var(--ep-sheen), var(--scene-bg);
    border-color: transparent;
    box-shadow: var(--ep-shadow);
}
.ep-fold--scene .ep-fold-sum:hover { background: rgba(255,255,255,0.28); }

/* passages of a notes block, each its own fold */
.ep-notes > .ep-note-fold { margin-bottom: 0.7rem; }
.ep-note-fold .ep-fold-body { padding-top: 0; }
.ep-note-fold .ep-fold-title { font-size: 1rem; }

/* a list of parts, tags and dates beside the titles */
.ep-accordion { display: grid; gap: 0.8rem; max-width: var(--content-measure, 720px); }
.ep-accordion > .ep-fold { max-width: none; }

/* the section's own "Expand all" */
.ep-fold-all {
    flex: none;
    white-space: nowrap;
    margin-left: auto;
    align-self: center;
    padding: 0.35rem 0.85rem;
    border: 1px solid rgba(27,27,24,0.16);
    border-radius: 999px;
    background: rgba(255,255,255,0.62);
    font-family: 'Quicksand', sans-serif;
    font-size: 0.74rem;
    font-weight: 600;
    color: #4A443C;
    cursor: pointer;
}
.ep-fold-all:hover { color: #1B1B18; border-color: rgba(58,75,58,0.5); }
.ep-fold-all:focus-visible { outline: 2px solid #1B1B18; outline-offset: 2px; }

/* golden circle: a few lines of a ring's text, the rest on request */
.ep-golden .dbtl-phase-body.is-clamped {
    max-height: 11.5rem;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, #000 58%, transparent);
    mask-image: linear-gradient(to bottom, #000 58%, transparent);
}
.ep-more {
    align-self: flex-start;
    margin-top: 0.7rem;
    padding: 0.45rem 1rem;
    border: 1px solid var(--ep-rule);
    border-radius: 999px;
    background: var(--ep-glass);
    font-family: 'Quicksand', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--ep-ink);
    cursor: pointer;
}
.ep-more:hover { border-color: var(--ep-line); }
.ep-more:focus-visible { outline: 2px solid var(--ep-ink); outline-offset: 2px; }
.ep-more--ghost { visibility: hidden; display: inline-block; }
/* a thumb-sized target on touch screens: 44px tall, a wider tap area than the pill drawn */
@media (pointer: coarse), (max-width: 700px) {
    .ep-more { min-height: 44px; margin-top: 0.5rem; padding: 0.6rem 1.35rem; font-size: 0.95rem; }
}
/* on a phone content-page.css resets the panel's padding, so the pinned Go-to footer sat over the text and the button: the room is kept again */
@media (max-width: 700px) {
    .ep-golden .dbtl-panel { padding-bottom: calc(1.2rem + 44px + 1.1rem + 1.2rem); }
    .ep-golden .dbtl-foot { left: 1.2rem; right: 1.2rem; bottom: 1.2rem; }
}

@media print {
    .ep-fold-all, .ep-more { display: none; }
    .ep-golden .dbtl-phase-body.is-clamped { max-height: none; -webkit-mask-image: none; mask-image: none; }
}

/* ── less motion for anyone who asked for it ── */
html[data-reduce-motion] .ep-rise {
    opacity: 1;
    translate: none;
    filter: none;
    transition: none;
}
html[data-reduce-motion] .ep-swot-grid.is-swapping .ep-swot-list,
html[data-reduce-motion] .ep-orbit-card.is-swapping > * { animation: none; }
html[data-reduce-motion] .ep-orbit-spoke.is-drawn { transition: none; }
html[data-reduce-motion] .ep-switch-thumb,
html[data-reduce-motion] .ep-fold-chev,
html[data-reduce-motion] .ep-risk-chip,
html[data-reduce-motion] .ep-risk-card,
html[data-reduce-motion] .ep-tile { transition: none; }
@media (prefers-reduced-motion: reduce) {
    .ep-rise { opacity: 1; translate: none; filter: none; transition: none; }
    .ep-swot-grid.is-swapping .ep-swot-list,
    .ep-orbit-card.is-swapping > * { animation: none; }
    .ep-orbit-spoke.is-drawn { transition: none; }
    .ep-switch-thumb,
    .ep-fold-chev,
    .ep-risk-chip,
    .ep-risk-card,
    .ep-tile { transition: none; }
}

html[data-reduce-motion] .ep-fold::details-content { transition: none; }
@media (prefers-reduced-motion: reduce) {
    .ep-fold::details-content { transition: none; }
}

/* ── forced colours: every box keeps an edge, every line and mark stays drawn ── */
@media (forced-colors: active) {
    .ep-tile,
    .ep-swot-q,
    .ep-force,
    .ep-bmc-box,
    .ep-tree-node,
    .ep-tree-core,
    .ep-orbit-card,
    .ep-q-panel,
    .ep-slot-sheet,
    .ep-road-bar,
    .ep-ent,
    .ep-risk-cell,
    .ep-risk-card,
    .ep-risk-chip,
    .ep-fold--static,
    .ep-lane-out,
    .ep-lane-dest,
    .ep-bm-bubble,
    .ep-nested-ring,
    .ep-switch { border: 1px solid CanvasText; }
    .ep-tree-node::after,
    .ep-tree-row::after,
    .ep-tree-core::before,
    .ep-tree-core::after,
    .ep-force::before,
    .ep-pips i.is-on,
    .ep-map-dot,
    .ep-bar,
    .ep-orbit-avatar,
    .ep-road-stone::before,
    .ep-switch-thumb { forced-color-adjust: none; background: CanvasText; }
    .ep-switch-btn[aria-selected="true"] { forced-color-adjust: none; color: Canvas; }
}

/* a deeper fade under the collage hero so the title reads over the photos */
.team-hero-clean::after {
    background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.5) 25%, rgba(0,0,0,0.12) 50%, transparent 68%);
}
html[data-dark] .team-hero-clean::after {
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.58) 25%, rgba(0,0,0,0.16) 50%, transparent 68%);
}

/* the long title would run past the edge of a phone: it scales with the screen instead of stopping at 4rem */
@media (max-width: 560px) {
    .team-hero-clean h1,
    .team-hero-clean .hero-script-frost {
        left: 1.25rem;
        font-size: calc((100vw - 2.25rem) / 7.6 * var(--fs-scale, 1));
        letter-spacing: -0.047em;
    }
}
