/* Version 14 — calmer palette refinements and interaction layer.
   Loaded last on every page. Everything here degrades to the v13 layout
   when JavaScript is off; motion is removed under prefers-reduced-motion. */

/* ---------- Page transitions (supported browsers only) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; animation-timing-function: cubic-bezier(.2,.7,.2,1); }
.site-header { view-transition-name: site-header; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

::selection { background: #c4dcc9; color: #12261f; }
html[data-theme=night] ::selection { background: #3f6a55; color: #f1f7f3; }

:focus-visible { outline: 2px solid var(--focus-ring, #236754); outline-offset: 3px; border-radius: 6px; }

/* ---------- Logo: no boxed background in either theme ---------- */
.brand-logo { background: transparent !important; box-shadow: none !important; }
.brand-logo img { mix-blend-mode: normal; }
html[data-theme=night] .brand-logo img { filter: invert(1) hue-rotate(180deg) saturate(.7) brightness(1.15); }
html[data-theme=night] .site-header.menu-open .brand-logo { box-shadow: none !important; }

/* ---------- Reading progress ---------- */
.v14-progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 1000; pointer-events: none; }
.v14-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #7fb59a); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
html[data-theme=night] .v14-progress span { background: linear-gradient(90deg, #7fb59a, var(--accent)); }

/* ---------- Scroll reveal ---------- */
.v14-reveal { opacity: .35; transform: translateY(16px); transition: opacity .75s ease, transform .75s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.v14-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .v14-reveal { opacity: 1; transform: none; transition: none; } }
@media print { .v14-reveal { opacity: 1 !important; transform: none !important; } .v14-progress { display: none; } }

/* ---------- Homepage orbit: dial, preview and tour ---------- */
.circular-programme .spatial-canvas { cursor: grab; touch-action: pan-y; }
.circular-programme .spatial-canvas:active { cursor: grabbing; }
.spatial-stage .orbit-node { transition: background .2s, border-color .2s, box-shadow .3s ease, transform .3s cubic-bezier(.2,.7,.2,1); }
.orbit-node.is-preview:not([aria-pressed=true]) { transform: translate(-50%, -50%) translateY(-4px) scale(1.04); box-shadow: 0 16px 30px -18px #1d4a3a66; border-color: var(--accent); }
.orbit-node.is-dial-target:not([aria-pressed=true]) { border-color: var(--accent); box-shadow: 0 0 0 3px #4f8f7433; }
.orbit-centre .eyebrow { transition: opacity .2s ease; }
.is-previewing .orbit-centre strong { opacity: .82; }
.circular-programme.is-touring .scene-indicator::before { animation: v14-pulse 1.4s ease-in-out infinite; }
.circular-programme .scene-controls [data-scene-action=play][aria-pressed=true] { background: var(--accent); color: var(--surface); border-color: var(--accent); }
html[data-theme=night] .circular-programme .scene-controls [data-scene-action=play][aria-pressed=true] { color: #10231c; }
.circular-programme.was-dragged .scene-hint { opacity: .55; }
@keyframes v14-pulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .spatial-stage .orbit-node { transition: none; } .circular-programme.is-touring .scene-indicator::before { animation: none; } }

/* Homepage geography: the station link now follows the description */
#place-detail .station-entry { margin: 18px 0 8px; }

/* ---------- Publications: the record at a glance ---------- */
.record-viz { border: 1px solid var(--hair); border-radius: 18px; background: var(--surface); padding: 26px 28px 20px; margin: 0 0 22px; position: relative; }
.rv-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 18px; }
.rv-head .eyebrow { margin: 0 0 8px; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
.rv-head h2 { margin: 0; font-size: clamp(1.45rem, 2.4vw, 1.9rem); font-weight: 400; letter-spacing: -.035em; color: var(--ink); }
.rv-legend { display: flex; flex-wrap: wrap; gap: 7px; }
.rv-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 12px; border: 1px solid var(--hair); border-radius: 999px; background: transparent; color: var(--ink-body); font: inherit; font-size: .74rem; cursor: pointer; transition: background-color .2s ease, border-color .2s ease; }
.rv-chip:hover { border-color: var(--control-edge); background: var(--hover-surface); }
.rv-chip[aria-pressed=true] { background: var(--lime); border-color: var(--accent); color: var(--on-lime, #12261f); }
.rv-chip b { font-weight: 500; color: var(--ink-soft); }
.rv-chip[aria-pressed=true] b { color: inherit; }
.rv-mark { width: 10px; height: 10px; flex: none; display: inline-block; }
.rv-chart { display: grid; grid-template-columns: repeat(var(--cols, 8), minmax(0, 1fr)); gap: 6px; align-items: end; min-height: 112px; border-bottom: 1px solid var(--hair); padding: 8px 0 0; }
.rv-col { display: flex; flex-direction: column-reverse; align-items: center; gap: 7px; padding: 10px 0 12px; border-radius: 12px 12px 0 0; transition: background-color .25s ease; }
.rv-col.is-selected { background: var(--v13-panel, #e4ece6); }
.rv-dot { width: 22px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; border-radius: 50%; transition: transform .2s ease, opacity .25s ease; }
.rv-dot:hover, .rv-dot:focus-visible { transform: scale(1.25); }
.rv-dot.is-dim { opacity: .18; }
.rv-dot .rv-mark { width: 13px; height: 13px; }
.rv-years { display: grid; grid-template-columns: repeat(var(--cols, 8), minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.rv-year { min-height: 36px; border: 0; border-radius: 8px; background: none; color: var(--ink-soft); font: inherit; font-size: .76rem; letter-spacing: .02em; cursor: pointer; }
.rv-year:hover { background: var(--hover-surface); color: var(--ink); }
.rv-year[aria-pressed=true] { color: var(--accent-text); font-weight: 600; background: var(--v13-panel, #e4ece6); }
.rv-year small { display: block; font-size: .6rem; color: var(--ink-soft); font-weight: 400; }
.rv-foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 12px; font-size: .7rem; color: var(--ink-soft); }
.rv-foot button { border: 0; background: none; padding: 0; font: inherit; color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.rv-foot button[hidden] { display: none; }
/* type marks */
.rv-m-article { background: var(--accent); border-radius: 50%; }
.rv-m-report { background: #7fb59a; border-radius: 3px; }
.rv-m-conference { border: 2.5px solid var(--accent); border-radius: 50%; background: transparent; }
.rv-m-project { background: #9db8aa; transform: rotate(45deg) scale(.82); border-radius: 2px; }
html[data-theme=night] .rv-m-report { background: #6fae8c; }
html[data-theme=night] .rv-m-project { background: #8fb3a1; }
.rv-tip { position: absolute; z-index: 5; max-width: 300px; padding: 12px 14px; border-radius: 12px; background: var(--ink); color: var(--surface); font-size: .74rem; line-height: 1.5; pointer-events: none; opacity: 0; transform: translate(-50%, calc(-100% - 6px)); transition: opacity .15s ease; box-shadow: var(--shadow-lg); }
.rv-tip.is-on { opacity: 1; }
.rv-tip strong { display: block; font-weight: 500; margin-bottom: 4px; }
.rv-tip span { opacity: .75; }
html[data-theme=night] .rv-tip { background: #e8f1ec; color: #12261f; }
.pub-entry.is-highlight { animation: v14-highlight 2.2s ease; border-radius: 14px; }
@keyframes v14-highlight { 0%, 40% { box-shadow: 0 0 0 3px #4f8f7455, 0 0 0 14px #4f8f7414; background: var(--v13-panel, #e4ece6); } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (max-width: 640px) {
  .record-viz { padding: 20px 16px 16px; }
  .rv-dot { width: 18px; height: 18px; }
  .rv-dot .rv-mark { width: 11px; height: 11px; }
  .rv-year { font-size: .66rem; }
  .rv-year small { display: none; }
}

/* ---------- About: scroll-linked trajectory ---------- */
@media (min-width: 881px) {
  .timeline.v14-track::after { content: ""; position: absolute; left: 137px; top: 12px; width: 2px; height: calc((100% - 36px) * var(--tl-p, 0)); background: var(--accent); border-radius: 2px; transition: height .12s linear; }
}
.timeline.v14-track .tl-item { transition: opacity .35s ease; }
.timeline.v14-track .tl-item:not(.is-current) h3 { color: var(--ink-body); }
.timeline.v14-track .tl-item.is-current::before { background: var(--accent); box-shadow: 0 0 0 6px #4f8f7433; transform: scale(1.25); }
.timeline.v14-track .tl-item::before { transition: transform .3s ease, box-shadow .3s ease, background-color .3s ease; }
.timeline.v14-track .tl-item.is-current .tl-year { color: var(--accent-text); }
.tl-jump { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 0 0 34px; position: sticky; top: 76px; z-index: 3; padding: 10px 0; }
.tl-jump > span { font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-right: 6px; }
.tl-jump button { min-height: 34px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--hair); background: var(--surface); color: var(--ink-soft); font: inherit; font-size: .7rem; cursor: pointer; }
.tl-jump button[aria-current=true] { background: var(--accent); border-color: var(--accent); color: var(--surface); }
html[data-theme=night] .tl-jump button[aria-current=true] { color: #10231c; }
@media (max-width: 880px) { .tl-jump { top: 64px; } }

/* ---------- Contact: topic chips and readable cards ---------- */
.contact-card { background: var(--surface) !important; border: 1px solid var(--hair); border-radius: 16px; padding: 22px 24px; margin-bottom: 18px; }
.contact-card p { background: transparent !important; transition: background-color .3s ease, box-shadow .3s ease; border-radius: 10px; }
.contact-card p.is-topic { background: var(--v13-panel, #e4ece6) !important; box-shadow: 0 0 0 8px var(--v13-panel, #e4ece6); }
.topic-chips { margin: -6px 0 22px; }
.topic-chips p { font-size: .72rem; color: var(--ink-soft); margin: 0 0 10px; }
.topic-chips div { display: flex; flex-wrap: wrap; gap: 8px; }
.topic-chips button { min-height: 40px; padding: 8px 15px; border-radius: 999px; border: 1px solid var(--control-edge); background: var(--surface); color: var(--ink); font: inherit; font-size: .8rem; cursor: pointer; transition: background-color .2s ease, border-color .2s ease, transform .2s ease; }
.topic-chips button:hover { background: var(--hover-surface); transform: translateY(-1px); }
.topic-chips button[aria-pressed=true] { background: var(--lime); border-color: var(--accent); color: var(--on-lime, #12261f); }

/* ---------- Hero globe: the centre label lets the globe take the pointer ---------- */
.circular-programme .orbit-centre { pointer-events: none; }
.circular-programme .orbit-centre .orbit-open { pointer-events: auto; }
.circular-programme .orbit-centre strong, .circular-programme .orbit-centre .eyebrow { text-shadow: 0 1px 10px #0a2219aa; }

/* ---------- Research map terrain (canvas under the atlas) ---------- */
.atlas-terrain { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.atlas-board.has-terrain { background-image: none !important; background: radial-gradient(120% 90% at 50% 55%, color-mix(in srgb, var(--surface) 80%, transparent), transparent 75%); }
.atlas-board.has-terrain .atlas-routes { z-index: 1; }
.atlas-board.has-terrain .atlas-stop-icon { backdrop-filter: blur(3px); transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease, background .25s, color .25s; }
.atlas-board.has-terrain .atlas-stop:not([aria-pressed=true]):hover .atlas-stop-icon { transform: translateY(-7px); box-shadow: 0 9px 0 var(--hair), 0 24px 30px -18px var(--raised-shadow); }
@media (prefers-reduced-motion: reduce) { .atlas-board.has-terrain .atlas-stop:not([aria-pressed=true]):hover .atlas-stop-icon { transform: none; } }
.atlas-board.has-terrain .atlas-route-underlay path { stroke: transparent !important; }

/* ---------- Research landscape: buildings that stand for each area ---------- */
.campus-model .tag-plate { fill: var(--surface); stroke: var(--building-line, var(--hair)); stroke-width: .8; }
.campus-model .roof-back { opacity: .82; }
.campus-model .crop { fill: color-mix(in srgb, var(--accent) 38%, var(--building-top, #e4ece6)); stroke: color-mix(in srgb, var(--accent) 45%, transparent); stroke-width: .5; }
.campus-model .crop-sprout { stroke: color-mix(in srgb, var(--accent) 70%, transparent); stroke-width: 1.4; stroke-linecap: round; fill: none; }
.campus-model .crane { fill: none; stroke: var(--building-line, #7d9a88); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.campus-model .container-ribs { opacity: .55; }
.campus-model .screen { fill: color-mix(in srgb, var(--surface) 70%, var(--accent) 6%); stroke: var(--building-line, var(--hair)); stroke-width: .7; }
.campus-model .screen-line { fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.campus-model .signal { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; opacity: .55; }
.campus-model .signal-dot { fill: var(--accent); }
.campus-building.is-active .tag-plate { fill: var(--lime); stroke: #94c09f; }
.campus-building.is-active .crane { stroke: #3f6f58; opacity: 1; }
.campus-building.is-active .screen { fill: #e9f5ee; }
@media (prefers-reduced-motion: no-preference) {
  .campus-building.is-active .signal { animation: v14-signal 2.4s ease-in-out infinite; animation-delay: calc(var(--i) * .3s); }
  .campus-building.is-active .screen-line { stroke-dasharray: 80; animation: v14-draw 3.2s ease-in-out infinite; }
}
@keyframes v14-signal { 0%, 100% { opacity: .15; } 40% { opacity: .9; } }
@keyframes v14-draw { 0% { stroke-dashoffset: 80; } 55%, 100% { stroke-dashoffset: 0; } }
.campus-model .dome-shade { opacity: .55; }

/* ---------- Research: "From policy to plate" scroll story ---------- */
.story { padding-block: clamp(70px, 9vw, 120px); background: linear-gradient(180deg, transparent, var(--v13-panel, #e4ece6) 18%, var(--v13-panel, #e4ece6) 82%, transparent); }
.story-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: end; margin-bottom: 46px; }
.story-intro .eyebrow { grid-column: 1 / -1; margin: 0; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
.story-intro h2 { margin: 0; font-size: clamp(2.6rem, 5vw, 4.4rem); font-weight: 400; letter-spacing: -.055em; line-height: 1.02; color: var(--ink); }
.story-intro h2 em { font-style: normal; color: var(--accent-text); }
.story-intro > p:last-child { margin: 0; max-width: 520px; font-size: 1rem; line-height: 1.75; color: var(--ink-body); }
.story-layout { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.story-stage { position: sticky; top: 84px; height: min(calc(100vh - 110px), 760px); }
.story-frame { position: relative; height: 100%; border: 1px solid var(--hair); border-radius: 26px; overflow: hidden; background: radial-gradient(90% 70% at 50% 40%, var(--surface), var(--cream, #f2f5f2)); box-shadow: var(--shadow-lg); }
.story-world { display: block; width: 100%; height: 100%; }
.story-hud { position: absolute; left: 18px; bottom: 16px; display: flex; gap: 10px; align-items: center; padding: 8px 14px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid var(--hair); font-size: .74rem; color: var(--ink); backdrop-filter: blur(6px); }
.story-hud span:first-child { color: var(--accent-text); font-variant-numeric: tabular-nums; font-weight: 600; }
.story-steps { list-style: none; margin: 0; padding: 0; }
.story-step { min-height: 74vh; display: flex; flex-direction: column; justify-content: center; padding: 28px 0 28px 26px; border-left: 2px solid var(--hair); opacity: .42; transition: opacity .4s ease, border-color .4s ease; }
.story-step.is-active { opacity: 1; border-left-color: var(--accent); }
.story-step:first-child { min-height: 60vh; }
.story-step:last-child { min-height: 90vh; }
.story-step-num { margin: 0 0 14px; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.story-step h3 { margin: 0 0 16px; font-size: clamp(1.4rem, 2.2vw, 1.95rem); font-weight: 400; letter-spacing: -.035em; line-height: 1.22; color: var(--ink); text-wrap: balance; }
.story-step > p { margin: 0 0 16px; font-size: .93rem; line-height: 1.75; color: var(--ink-body); max-width: 520px; }
.story-step-label { font-size: .64rem !important; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft) !important; margin: 6px 0 8px !important; }
.story-pubs { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.story-pubs li { padding: 12px 14px; border: 1px solid var(--hair); border-radius: 12px; background: var(--surface); }
.story-pubs a { display: block; color: var(--ink); text-decoration: none; font-size: .86rem; line-height: 1.45; }
.story-pubs a:hover { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.story-pubs span { display: block; margin-top: 4px; font-size: .7rem; color: var(--ink-soft); }
.story-next { font-size: .8rem !important; color: var(--accent-text) !important; }
.story-actions { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; margin-top: 8px; }
.story-note { margin: 34px 0 0; font-size: .72rem; color: var(--ink-soft); max-width: 760px; }
@media (max-width: 900px) {
  .story-intro { grid-template-columns: 1fr; gap: 18px; }
  .story-layout { grid-template-columns: 1fr; gap: 0; }
  .story-stage { top: 66px; height: 44vh; z-index: 3; padding-bottom: 10px; background: var(--v13-panel, #e4ece6); }
  .story-frame { border-radius: 18px; }
  .story-step { min-height: 62vh; padding-left: 18px; }
  .story-step:first-child { min-height: 50vh; }
}

/* World drawing (shares the homepage building style) */
.story-world { --building-left: #d2e0d6; --building-right: #a8bcaf; --building-top: #f9fdfa; --building-line: #869a8d; --campus-edge: #ccdad1; --pavilion-shadow: #244c3321; }
html[data-theme=night] .story-world { --building-left: #3e604a; --building-right: #294735; --building-top: #697e73; --building-line: #82968a; --campus-edge: #142b21; --pavilion-shadow: #00000045; }
.story-world .story-dot { fill: var(--hair); }
.story-world .story-road-bed { fill: none; stroke: var(--campus-edge); stroke-width: 34; stroke-linecap: round; opacity: .55; }
.story-world .story-road { fill: none; stroke: var(--building-line); stroke-width: 1.6; stroke-dasharray: 2 9; stroke-linecap: round; opacity: .8; }
.story-world .story-road-lit { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; opacity: .9; }
.story-world .pavilion-shadow { fill: var(--pavilion-shadow); }
.story-world .pavilion-lift { transition: transform .6s cubic-bezier(.22,1,.36,1); }
.story-world .plinth-top { fill: var(--surface); stroke: var(--hair); stroke-width: .8; }
.story-world .plinth-left { fill: var(--campus-edge); }
.story-world .plinth-right { fill: var(--diagram); }
.story-world .building-roof { fill: var(--building-top); stroke: var(--hair); stroke-width: .75; transition: fill .45s; }
.story-world .building-left { fill: var(--building-left); stroke: var(--hair); stroke-width: .6; transition: fill .45s; }
.story-world .building-right { fill: var(--building-right); transition: fill .45s; }
.story-world .building-floors { fill: none; stroke: var(--building-line); stroke-width: .8; opacity: .4; }
.story-world .roof-back { opacity: .82; }
.story-world .dome-shade { opacity: .55; }
.story-world .container-ribs { opacity: .55; }
.story-world .tag-plate { fill: var(--surface); stroke: var(--building-line); stroke-width: .8; transition: fill .45s; }
.story-world .roof-number { font-family: inherit; font-size: 16px; fill: var(--ink-soft); }
.story-world .crop { fill: color-mix(in srgb, var(--accent) 38%, var(--building-top)); stroke: color-mix(in srgb, var(--accent) 45%, transparent); stroke-width: .5; }
.story-world .crop-sprout { stroke: color-mix(in srgb, var(--accent) 70%, transparent); stroke-width: 1.4; stroke-linecap: round; fill: none; }
.story-world .crane { fill: none; stroke: var(--building-line); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.story-world .flag { fill: var(--accent); opacity: .85; }
.story-world .plate-rim { fill: var(--surface); stroke: var(--building-line); stroke-width: .8; }
.story-world .plate { fill: var(--building-top); stroke: var(--hair); stroke-width: .6; }
.story-world .ugali { fill: #f4ecd2; stroke: #d8c9a0; stroke-width: .7; }
.story-world .greens { fill: #6f9f72; stroke: #4f7f56; stroke-width: .5; }
.story-world .station { cursor: pointer; }
.story-world .station-label { font-family: inherit; font-size: 15px; fill: var(--ink-soft); transition: fill .3s; }
.story-world .station.is-current .pavilion-lift { transform: translateY(-14px); }
.story-world .station.is-current .building-roof, .story-world .station.is-current .tag-plate { fill: var(--lime); stroke: #94c09f; }
.story-world .station.is-current .building-left { fill: #73a182; }
.story-world .station.is-current .building-right { fill: #507260; }
.story-world .station.is-current .building-floors { stroke: #cce0d2; opacity: .5; }
.story-world .station.is-current .station-label { fill: var(--accent-text); font-weight: 600; }
.story-world .station.is-visited .building-roof { fill: color-mix(in srgb, var(--lime) 55%, var(--building-top)); }
.story-world .grain-kernel { fill: #e7b84f; stroke: #b98a2c; stroke-width: 1.2; }
.story-world .grain-shine { fill: #fff4d2; opacity: .9; }
@media (prefers-reduced-motion: reduce) { .story-world .pavilion-lift { transition: none; } }
.story-steps > .story-step::after, .story-steps > .story-step::before { content: none !important; display: none !important; }
.story-steps > .story-step:last-child { min-height: 125vh; justify-content: flex-start; padding-top: 18vh; }

/* ---------- Publications: shareable summary cards ---------- */
.card-open { margin-left: 2px; }
.card-dialog { width: min(1040px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 22px 24px 18px; border: 1px solid var(--hair); border-radius: 22px; background: var(--surface); color: var(--ink); box-shadow: 0 40px 90px -30px #0b241e66; }
.card-dialog::backdrop { background: color-mix(in srgb, #0b241e 45%, transparent); backdrop-filter: blur(4px); }
.card-dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 14px; }
.card-dialog-head .eyebrow { margin: 0 0 6px; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
.card-dialog-head h2 { margin: 0; font-size: clamp(1.05rem, 2vw, 1.35rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.3; }
.card-close { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--hair); background: var(--surface); color: var(--ink); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.card-canvas-wrap { border-radius: 14px; overflow: hidden; border: 1px solid var(--hair); box-shadow: var(--shadow-md); }
.card-canvas { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; }
.card-dialog-bar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 16px; }
.card-nav { display: flex; align-items: center; gap: 10px; font-size: .78rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.card-nav button, .card-copy { min-height: 40px; min-width: 40px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--control-edge); background: var(--surface); color: var(--ink); font: inherit; font-size: .82rem; cursor: pointer; }
.card-nav button:hover, .card-copy:hover { background: var(--hover-surface); }
.card-actions { display: flex; gap: 10px; align-items: center; }
.card-save { border: 0; cursor: pointer; font: inherit; }
.card-note { margin: 12px 0 0; font-size: .7rem; color: var(--ink-soft); }

/* ---------- Hero orbit cards: glass tiles with stage icons ---------- */
.circular-programme .spatial-stage .orbit-node { gap: 5px; padding: 13px 8px 11px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--hair) 80%, #ffffff); background: linear-gradient(160deg, color-mix(in srgb, var(--surface) 94%, transparent), color-mix(in srgb, var(--surface) 78%, var(--lime) 14%)); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: inset 0 1px 0 #ffffffb0, 0 1px 0 color-mix(in srgb, var(--hair) 70%, transparent), 0 14px 26px -16px var(--raised-shadow); color: var(--ink); }
html[data-theme=night] .circular-programme .spatial-stage .orbit-node { border-color: #3d5a4a; background: linear-gradient(160deg, #22392fee, #1a2e27e6); box-shadow: inset 0 1px 0 #ffffff14, 0 14px 26px -14px #000a; }
.circular-programme .orbit-node .node-icon { display: grid; place-items: center; width: 30px; height: 30px; color: var(--accent-text); transition: color .3s, transform .35s cubic-bezier(.2,.8,.3,1.3); }
.circular-programme .orbit-node .node-icon svg { width: 28px; height: 28px; stroke-width: 1.8; }
.circular-programme .spatial-stage .orbit-node .node-dot { position: absolute; top: -9px; right: -9px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; font-size: .52rem; letter-spacing: 0; background: var(--surface); color: var(--ink-soft); border: 1px solid var(--hair); box-shadow: 0 3px 8px -4px var(--raised-shadow); }
.circular-programme .spatial-stage .orbit-node:hover .node-icon { transform: translateY(-2px) scale(1.06); }
.circular-programme .spatial-stage .orbit-node[aria-pressed=true] { color: #eef7f1; border-color: #2f6f58; background: radial-gradient(120% 120% at 28% 12%, #6f9c86, #2c5c47 52%, #15382c); box-shadow: inset 0 1px 0 #ffffff40, 0 0 0 4px color-mix(in srgb, var(--lime) 55%, transparent), 0 18px 32px -14px #12332a99; }
.circular-programme .spatial-stage .orbit-node[aria-pressed=true] .node-icon { color: #d9f0e2; }
.circular-programme .spatial-stage .orbit-node[aria-pressed=true] .node-dot { background: var(--lime); color: #16302a; border-color: #94c09f; }
html[data-theme=night] .circular-programme .spatial-stage .orbit-node[aria-pressed=true] { color: #10231c; border-color: #a9dcbf; background: radial-gradient(120% 120% at 28% 12%, #e2f3e8, #aad6b3 60%, #7fb59a); }
html[data-theme=night] .circular-programme .spatial-stage .orbit-node[aria-pressed=true] .node-icon { color: #1d4a3a; }
.circular-programme .orbit-node.is-preview:not([aria-pressed=true]) .node-icon { color: var(--accent); }
@media (max-width: 1080px) { .circular-programme .orbit-node .node-icon, .circular-programme .orbit-node .node-icon svg { width: 22px; height: 22px; } }
@media (max-width: 560px) { .circular-programme .orbit-node .node-icon, .circular-programme .orbit-node .node-icon svg { width: 18px; height: 18px; } .circular-programme .spatial-stage .orbit-node { padding: 9px 4px 8px; gap: 3px; border-radius: 13px; } .circular-programme .spatial-stage .orbit-node .node-dot { width: 18px; height: 18px; top: -7px; right: -7px; font-size: .46rem; } }

/* Motion: cards arrive in sequence, then float gently out of step with each other */
@media (prefers-reduced-motion: no-preference) {
  .circular-programme .spatial-stage .orbit-node { animation: v14-bob 7s ease-in-out infinite; }
  .circular-programme.is-intro .spatial-stage .orbit-node { animation: v14-pop .7s cubic-bezier(.2,.9,.3,1.25) both, v14-bob 7s ease-in-out infinite; }
  .circular-programme .orbit-node[data-stage="0"] { --d: 0; animation-delay: .15s, 0s !important; }
  .circular-programme .orbit-node[data-stage="1"] { --d: 1; animation-delay: .3s, -1.2s !important; }
  .circular-programme .orbit-node[data-stage="2"] { --d: 2; animation-delay: .45s, -2.4s !important; }
  .circular-programme .orbit-node[data-stage="3"] { --d: 3; animation-delay: .6s, -3.6s !important; }
  .circular-programme .orbit-node[data-stage="4"] { --d: 4; animation-delay: .75s, -4.8s !important; }
  .circular-programme .orbit-node[data-stage="5"] { --d: 5; animation-delay: .9s, -6s !important; }
  .circular-programme .orbit-centre { animation: v14-fade .9s ease both .1s; }
}
@keyframes v14-pop { from { opacity: 0; scale: .82; } to { opacity: 1; scale: 1; } }
@keyframes v14-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -3px; } }
@keyframes v14-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- One arrow set across the site (v14.6) ---------- */
.ico { display: inline-block; flex: none; width: 1em; height: 1em; vertical-align: -.14em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; overflow: visible; transition: transform .3s cubic-bezier(.2,.8,.3,1.25); }
.ico-sep { width: .82em; height: .82em; margin: 0 .12em; stroke-width: 1.6; opacity: .62; vertical-align: -.08em; transition: none; }
button > .ico:only-child, [data-scene-action] .ico, [data-area-step] .ico, .card-nav .ico { width: 1.1em; height: 1.1em; vertical-align: -.18em; }
:is(a, button, summary, [role=button]):is(:hover, :focus-visible) .ico-e:not(.ico-sep) { transform: translateX(3px); }
:is(a, button, summary, [role=button]):is(:hover, :focus-visible) .ico-w:not(.ico-sep) { transform: translateX(-3px); }
:is(a, button, summary, [role=button]):is(:hover, :focus-visible) .ico-ne:not(.ico-sep) { transform: translate(2px, -2px); }
:is(a, button, summary, [role=button]):is(:hover, :focus-visible) .ico-s:not(.ico-sep) { transform: translateY(2px); }
:is(a, button, summary, [role=button]):is(:hover, :focus-visible) .ico-n:not(.ico-sep) { transform: translateY(-2px); }
:is(a, button, summary, [role=button]):is(:hover, :focus-visible) .ico-ew:not(.ico-sep) { transform: scaleX(1.15); }
@media (prefers-reduced-motion: reduce) { .ico { transition: none; } :is(a, button, summary, [role=button]) .ico { transform: none !important; } }
/* Arrows that were drawn by CSS text */
.tl-links a::before, a.h-pub-title::after, .prose a[target="_blank"]::after { content: "" !important; display: inline-block; width: .82em; height: .82em; vertical-align: -.06em; background: currentColor; -webkit-mask: var(--ico-mask) center / contain no-repeat; mask: var(--ico-mask) center / contain no-repeat; transition: transform .3s cubic-bezier(.2,.8,.3,1.25); }
.tl-links a::before { --ico-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E"); margin-right: .4em; color: var(--accent-text); }
a.h-pub-title::after, .prose a[target="_blank"]::after { --ico-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8.5 7H17v8.5'/%3E%3C/svg%3E"); margin-left: .35em; }
.tl-links a:hover::before { transform: translateX(2px); }
a.h-pub-title:hover::after, .prose a[target="_blank"]:hover::after { transform: translate(2px, -2px); }
.prose a[target="_blank"]::after { width: .72em; height: .72em; margin-left: .25em; color: var(--accent-text); }
/* Research Lab step arrows */
:not(.story-steps) > .story-step:not(:last-child)::after { content: "" !important; width: 14px; height: 14px; background: var(--accent-text); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; }
@media (max-width: 620px) { :not(.story-steps) > .story-step:not(:last-child)::after { transform: rotate(90deg); } }
