/* A consultant's own page. Builds on styles.css and doctors.css. */

/* Cross-document view transitions between the roster and this page: the photo, name and specialty morph */
@view-transition { navigation: auto; }
.dp-photo { view-transition-name: doc-photo; }
.dp-name { view-transition-name: doc-name; }
.dp-spec { view-transition-name: doc-spec; }
::view-transition-group(doc-photo), ::view-transition-group(doc-name), ::view-transition-group(doc-spec) { animation-duration: 760ms; animation-timing-function: cubic-bezier(.65,0,.35,1); }
::view-transition-old(doc-photo), ::view-transition-new(doc-photo) { height: 100%; object-fit: cover; object-position: 50% 6%; }

/* Hero */
.dp-hero { padding-block: clamp(28px, 4vw, 48px) clamp(56px, 7vw, 96px); background: linear-gradient(var(--tint), #fff 75%); }
.dp-back { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 700; font-size: 15px; padding: 8px 14px 8px 8px; border-radius: 999px; border: 1px solid var(--line); background: #fff; transition: border-color 250ms, transform 150ms var(--ease-out); }
[dir="rtl"] .dp-back { padding: 8px 8px 8px 14px; }
.dp-back:hover { border-color: var(--navy); }
.dp-back:active { transform: scale(.97); }
.dp-back svg { width: 30px; height: 30px; padding: 8px; border-radius: 50%; background: var(--tint); transform: scaleX(-1); transition: transform 300ms var(--ease-out); }
[dir="rtl"] .dp-back svg { transform: none; }
.dp-back:hover svg { transform: scaleX(-1) translateX(3px); }
[dir="rtl"] .dp-back:hover svg { transform: translateX(-3px); }
.dp-grid { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: end; margin-top: 28px; }
.dp-photo { position: relative; aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; background: var(--tint); }
.dp-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 6%; mix-blend-mode: multiply; }
.dp-photo .mono { position: absolute; inset: 0; display: grid; place-items: center; font-size: 96px; font-weight: 300; color: var(--navy); }
.dp-chair { position: absolute; top: 16px; inset-inline-start: 16px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.92); font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); }
[dir="rtl"] .dp-chair { letter-spacing: 0; font-size: 12.5px; }
.dp-spec { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); width: fit-content; }
[dir="rtl"] .dp-spec { letter-spacing: 0; font-size: 14px; }
.dp-name { margin: 12px 0 10px; font-size: clamp(40px, 5.6vw, 80px); line-height: 1; letter-spacing: -.035em; color: var(--navy); width: fit-content; }
[dir="rtl"] .dp-name { letter-spacing: 0; line-height: 1.2; }
.dp-role { margin: 0; font-size: 18px; color: var(--ink-2); max-width: 48ch; }
.dp-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--line); margin-top: 30px; }
.dp-facts > div { padding: 18px 18px 18px 0; display: flex; flex-direction: column; gap: 10px; }
.dp-facts > div + div { border-inline-start: 1px solid var(--line); padding-inline-start: 18px; }
.dp-facts .k { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
[dir="rtl"] .dp-facts .k { letter-spacing: 0; font-size: 12.5px; }
.dp-facts .v { font-size: 34px; font-weight: 300; color: var(--navy); line-height: 1; display: flex; flex-wrap: wrap; gap: 6px; }
.dp-facts .v.small { font-size: 15px; font-weight: 500; line-height: 1.4; }
.dp-facts .pill { font-size: 13px; font-weight: 500; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); }
.dp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; align-items: center; }
/* first paint: the name and role rise if there was no morph to carry them */
.js .dp-hero:not(.ready) .dp-role { opacity: 0; transform: translateY(12px); }
.dp-role { transition: opacity 600ms var(--ease-out) 250ms, transform 700ms var(--ease-out) 250ms; }

/* About */
.dp-about { padding-block: clamp(64px, 8vw, 110px); }
.dp-about-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.dp-lead { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.4; color: var(--navy); margin: 0; font-weight: 400; }
.dp-body p { margin: 0 0 16px; font-size: 17px; line-height: 1.75; color: var(--ink-2); }
.dp-quote { margin: 56px 0 0; font-size: clamp(26px, 3vw, 40px); line-height: 1.3; color: var(--navy); font-weight: 300; max-width: 30ch; }
.dp-focus { margin-top: 56px; }
.dp-sh { margin-bottom: 18px; }
.dp-sh.small { margin-top: 40px; }
.dp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dp-chips span { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 15px; color: var(--navy); background: #fff; transition: border-color 250ms, background 250ms, color 250ms, opacity 500ms var(--ease-out), transform 600ms var(--ease-out); transition-delay: 0ms, 0ms, 0ms, calc(var(--j) * 45ms), calc(var(--j) * 45ms); }
.dp-chips span:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.js [data-cascade]:not(.in) .dp-chips span, .js .dp-chips[data-cascade]:not(.in) span, .js [data-cascade]:not(.in) .dp-tile, .js .dp-tiles[data-cascade]:not(.in) .dp-tile, .js [data-cascade]:not(.in) li { opacity: 0; transform: translateY(12px); }

/* Career, drawn as you scroll */
.dp-career { padding-block: clamp(64px, 8vw, 110px); background: var(--night); color: #fff; }
.dp-career .eyebrow { color: var(--sky); }
.dp-line { position: relative; padding-inline-start: 42px; max-width: 860px; }
.dp-line .rail, .dp-line .fill { position: absolute; inset-inline-start: 9px; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; background: rgba(255,255,255,.14); }
.dp-line .fill { background: var(--sky); transform-origin: 50% 0; transform: scaleY(var(--p, 0)); }
.dp-step { position: relative; padding: 0 0 34px; }
.dp-step .dot { position: absolute; inset-inline-start: -42px; top: 6px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); background: var(--night); transition: border-color 400ms var(--ease-out), background 400ms var(--ease-out), transform 500ms var(--ease-out); }
.dp-step p { margin: 0; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.5; color: rgba(255,255,255,.4); transition: color 600ms var(--ease-out), transform 700ms var(--ease-out); transform: translateX(10px); }
[dir="rtl"] .dp-step p { transform: translateX(-10px); }
.dp-step.lit .dot { border-color: var(--sky); background: var(--sky); transform: scale(1.1); }
.dp-step.lit p { color: #fff; transform: none; }

/* Expertise */
.dp-exp { padding-block: clamp(64px, 8vw, 110px); background: var(--cream); }
.dp-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dp-tile { display: flex; gap: 14px; align-items: baseline; padding: 20px; border-radius: 18px; background: #fff; border: 1px solid var(--line-2); transition: opacity 500ms var(--ease-out), transform 600ms var(--ease-out), border-color 250ms; transition-delay: calc(var(--j) * 40ms), calc(var(--j) * 40ms), 0ms; }
.dp-tile:hover { border-color: var(--navy); }
.dp-tile span { font-size: 12px; color: var(--blue); font-weight: 700; font-variant-numeric: tabular-nums; }
.dp-tile b { font-size: 16px; color: var(--navy); line-height: 1.35; font-weight: 500; }
.dp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 820px; }
.dp-list li { position: relative; padding-inline-start: 22px; font-size: 16px; color: var(--ink-2); line-height: 1.55; transition: opacity 500ms var(--ease-out), transform 600ms var(--ease-out); transition-delay: calc(var(--j) * 40ms); }
.dp-list li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .7em; width: 10px; height: 1px; background: var(--blue); }

/* More in the same specialty */
.dp-more { padding-block: clamp(64px, 8vw, 110px) clamp(80px, 9vw, 120px); }
.dp-row { display: flex; gap: 16px; overflow-x: auto; scrollbar-width: none; padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2)); padding-block: 6px; }
.dp-row::-webkit-scrollbar { display: none; }
.dp-card { position: relative; flex: none; width: 240px; border-radius: 22px; background: #fff; border: 1px solid var(--line-2); color: inherit; transition: transform 150ms var(--ease-out); }
.dp-card:active { transform: scale(.985); }
.dp-card .ph { display: block; position: relative; aspect-ratio: 4 / 4.4; border-radius: 22px 22px 0 0; overflow: hidden; background: var(--tint); }
.dp-card .ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 6%; mix-blend-mode: multiply; transition: transform 700ms var(--ease-out); }
.dp-card:hover .ph img { transform: scale(1.05); }
.dp-card .ph .mono { position: absolute; inset: 0; display: grid; place-items: center; font-size: 40px; font-weight: 300; color: var(--navy); }
.dp-card .t { display: block; padding: 14px 16px 16px; }
.dp-card b { display: block; font-size: 16px; color: var(--navy); }
.dp-card small { display: block; font-size: 13px; color: var(--ink-2); margin-top: 4px; line-height: 1.35; }

@media (max-width: 1080px) { .dp-grid, .dp-about-grid { grid-template-columns: 1fr; } .dp-photo { max-width: 380px; } .dp-tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) {
  .dp-facts { grid-template-columns: 1fr 1fr; }
  .dp-facts > div:nth-child(3) { grid-column: 1 / -1; border-inline-start: 0; padding-inline-start: 0; border-top: 1px solid var(--line); }
  .dp-tiles { grid-template-columns: 1fr; }
  .dp-photo { max-width: none; aspect-ratio: 4 / 4.2; }
}
@media (prefers-reduced-motion: reduce) {
  .js [data-cascade]:not(.in) .dp-chips span, .js .dp-chips[data-cascade]:not(.in) span, .js [data-cascade]:not(.in) .dp-tile, .js .dp-tiles[data-cascade]:not(.in) .dp-tile, .js [data-cascade]:not(.in) li { opacity: 1; transform: none; }
}

/* ═══ v2 · modern, max motion ═══ */
.dp-hero { position: relative; overflow: hidden; background: radial-gradient(900px 600px at 18% 60%, rgba(143,193,255,.22), transparent 60%), linear-gradient(var(--tint), #fff 80%); padding-bottom: clamp(72px, 9vw, 130px); }
.dp-grid { grid-template-columns: minmax(0, 460px) minmax(0, 1fr); }
.dp-visual { position: relative; }
/* the building's facade draws itself behind the photo, from the entrance corner outwards */
.dp-hex { position: absolute; inset: -60px -90px -40px -70px; width: calc(100% + 160px); height: calc(100% + 100px); z-index: 0; pointer-events: none; will-change: transform; }
[dir="rtl"] .dp-hex { transform: scaleX(-1); }
.dp-hex path { fill: none; stroke: rgba(44,107,176,.22); stroke-width: 1; stroke-dasharray: 190; stroke-dashoffset: 190; transition: stroke-dashoffset 1600ms var(--ease-out), fill 900ms var(--ease-out); transition-delay: calc(var(--k) * 28ms); }
.dp-hex path.f { transition-delay: calc(var(--k) * 28ms), calc(500ms + var(--k) * 28ms); }
.dp-hero.ready .dp-hex path { stroke-dashoffset: 0; }
.dp-hero.ready .dp-hex path.f { fill: rgba(95,151,210,.16); }
.dp-photo { z-index: 1; will-change: transform; border-radius: 32px; }
.dp-name { font-size: clamp(44px, 6.4vw, 96px); }
/* first paint without a morph: the name wipes up, the role follows */
.js .dp-hero:not(.ready) .dp-name, .js .dp-hero:not(.ready) .dp-spec { clip-path: inset(0 0 100% 0); }
.dp-name, .dp-spec { clip-path: inset(0 0 -10% 0); transition: clip-path 1000ms var(--ease-surface); }
.dp-spec { transition-delay: 120ms; }
.dp-hero.morphed .dp-name, .dp-hero.morphed .dp-spec { transition: none; }
.js .dp-hero:not(.ready) .dp-photo { clip-path: inset(100% 0 0 0 round 32px); }
.dp-photo { clip-path: inset(0 0 0 0 round 32px); transition: clip-path 1200ms var(--ease-surface); }
.dp-hero.morphed .dp-photo { transition: none; }

/* The profile bar: who, where you are in the page, and Book */
.dp-bar { position: sticky; top: 76px; z-index: 30; height: 0; transition: top 460ms var(--ease-out); }
body.nav-hidden .dp-bar { top: 0; }
.dp-bar .wrap { display: flex; align-items: center; gap: 16px; height: 64px; margin-top: 8px; padding-inline: 14px; max-width: calc(var(--maxw) + 28px);
  background: rgba(255,255,255,.86); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px); border: 1px solid var(--line); border-radius: 20px;
  opacity: 0; transform: translateY(-12px) scale(.98); pointer-events: none; transition: opacity 320ms var(--ease-out), transform 460ms var(--ease-out); }
.dp-bar.on .wrap { opacity: 1; transform: none; pointer-events: auto; }
.dp-mini { display: flex; align-items: center; gap: 10px; min-width: 0; flex: none; max-width: 300px; color: var(--navy); }
.dp-mini .av { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: var(--tint); flex: none; position: relative; }
.dp-mini .av img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 6%; mix-blend-mode: multiply; }
.dp-mini .av .mono { position: absolute; inset: 0; display: grid; place-items: center; font-size: 14px; }
.dp-mini b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-mini small { display: block; font-size: 12px; color: var(--blue); }
.dp-tabs { position: relative; display: flex; gap: 2px; margin-inline: auto; }
.dp-tabs a { position: relative; z-index: 1; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--navy); transition: color 300ms; white-space: nowrap; }
.dp-tabs a.cur { color: #fff; }
.dp-tabs .pill { position: absolute; z-index: 0; top: 0; bottom: 0; left: 0; border-radius: 999px; background: var(--navy); opacity: 0; transition: transform 460ms var(--ease-out), width 460ms var(--ease-out), opacity 250ms; }

/* Paragraphs read by the scroll */
.dp-lead.scrub .w, .dp-quote.scrub .w { color: rgba(11,36,67, calc(.18 + .82 * var(--lit, 0))); transition: color 200ms linear; }

/* Career: the year of each step, outlined, fills as the line reaches it */
.dp-line { max-width: 980px; }
.dp-step.has-yr { padding-top: 4px; }
.dp-step .yr { display: block; font-size: clamp(34px, 4vw, 56px); line-height: 1; font-weight: 700; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.3); margin-bottom: 8px; transition: color 700ms var(--ease-out), -webkit-text-stroke-color 700ms var(--ease-out), transform 800ms var(--ease-out); transform: translateX(14px); font-variant-numeric: tabular-nums; }
[dir="rtl"] .dp-step .yr { transform: translateX(-14px); }
.dp-step.lit .yr { color: var(--sky); -webkit-text-stroke-color: var(--sky); transform: none; }

/* Expertise tiles answer the pointer */
.dp-tile { position: relative; }
.dp-tile b { transition: color 250ms; }
.dp-tile:hover b { color: var(--blue); }

@media (max-width: 1080px) {
  .dp-grid { grid-template-columns: 1fr; }
  .dp-tabs { display: none; }
  .dp-bar .wrap { justify-content: space-between; }
}
@media (max-width: 680px) {
  .dp-bar { top: 70px; }
  .dp-hex { inset: -30px -40px -20px -40px; width: calc(100% + 80px); }
}
@media (prefers-reduced-motion: reduce) {
  .dp-hex path { stroke-dashoffset: 0; transition: none; }
  .js .dp-hero:not(.ready) .dp-name, .js .dp-hero:not(.ready) .dp-spec, .js .dp-hero:not(.ready) .dp-photo { clip-path: none; }
  .dp-lead.scrub .w, .dp-quote.scrub .w { color: var(--navy); }
}
html.rm .dp-lead.scrub .w, html.rm .dp-quote.scrub .w { color: var(--navy); }

/* ═══ v3 · career journey and expertise cloud ═══ */
.dp-career { padding: 0; background: var(--night); position: relative; }
.dp-career::before { content: ""; position: absolute; inset: 0; background: url("assets/footer-pattern.webp") right bottom / 860px auto no-repeat; opacity: .5; pointer-events: none; }
[dir="rtl"] .dp-career::before { transform: scaleX(-1); }
.dp-journey { position: relative; height: calc(100svh + var(--n) * 42svh); }
.dp-journey .dp-pin { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.dp-jh { display: flex; justify-content: space-between; align-items: baseline; }
.dp-jh .eyebrow { color: var(--sky); margin: 0; }
.dp-jc { font-size: 14px; color: rgba(255,255,255,.6); font-variant-numeric: tabular-nums; letter-spacing: .1em; }
.dp-jgrid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: center; margin-top: clamp(20px, 5vh, 48px); }
.dp-year { font-size: clamp(110px, 17vw, 250px); line-height: 1; font-weight: 300; letter-spacing: -.05em; display: flex; direction: ltr; color: #fff; font-variant-numeric: tabular-nums; }
[dir="rtl"] .dp-year { justify-content: flex-end; letter-spacing: 0; }
.dp-year .dg { display: inline-block; height: 1em; overflow: hidden; }
.dp-year .dg > span { display: block; transition: transform 700ms var(--ease-out), filter 260ms var(--ease-out); transition-delay: calc(var(--i) * 60ms); }
.dp-year .dg > span > span { display: block; height: 1em; line-height: 1; }
.dp-year.rolling .dg > span { filter: blur(3px); }
.dp-jtext { position: relative; min-height: 8.5em; }
.dp-jtext p { position: absolute; inset: 0 0 auto; margin: 0; font-size: clamp(20px, 2vw, 28px); line-height: 1.45; color: #fff; max-width: 30ch; }
.dp-jtext p.enter.up { opacity: 0; transform: translateY(26px); filter: blur(4px); }
.dp-jtext p.enter.down { opacity: 0; transform: translateY(-26px); filter: blur(4px); }
.dp-jtext p.now { opacity: 1; transform: none; filter: none; transition: opacity 520ms var(--ease-out) 120ms, transform 620ms var(--ease-out) 120ms, filter 520ms var(--ease-out) 120ms; }
.dp-jtext p.out { opacity: 0; transition: opacity 220ms var(--ease-in), transform 240ms var(--ease-in); }
.dp-jtext p.out.up { transform: translateY(-14px); }
.dp-jtext p.out.down { transform: translateY(14px); }
.dp-rail { position: relative; height: 70px; margin-top: clamp(28px, 6vh, 60px); }
.dp-rail .base, .dp-rail .fill { position: absolute; inset-inline: 0; top: 18px; height: 2px; border-radius: 2px; background: rgba(255,255,255,.16); }
.dp-rail .fill { background: var(--sky); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
[dir="rtl"] .dp-rail .fill { transform-origin: 100% 50%; }
.dp-rail button { position: absolute; top: 10px; inset-inline-start: calc(var(--x) * 100%); width: 18px; height: 18px; margin-inline-start: -9px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); background: var(--night); padding: 0; transition: background 300ms, border-color 300ms, transform 400ms var(--ease-out); }
.dp-rail button:hover { transform: scale(1.25); }
.dp-rail button.past { background: var(--sky); border-color: var(--sky); }
.dp-rail button.cur { transform: scale(1.45); box-shadow: 0 0 0 6px rgba(143,193,255,.18); }
.dp-rail button span { position: absolute; top: 24px; left: 50%; transform: translateX(-50%); font-size: 12px; color: rgba(255,255,255,.55); font-variant-numeric: tabular-nums; white-space: nowrap; transition: color 300ms; }
.dp-rail button.cur span { color: #fff; font-weight: 700; }

/* Expertise: the areas gather into place */
.dp-exp { padding-block: clamp(80px, 10vw, 140px); background: var(--cream); overflow: hidden; }
.dp-xh { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 28px; }
.dp-xcount { margin: 6px 0 0; font-size: 18px; color: var(--ink-2); display: flex; align-items: baseline; gap: 10px; }
.dp-xcount b { font-size: clamp(56px, 7vw, 96px); font-weight: 300; color: var(--navy); line-height: 1; }
.dp-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.xp { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; border: 1px solid var(--line); background: #fff; color: var(--navy); border-radius: 999px; line-height: 1.25; cursor: default;
  opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--r)) scale(.8);
  transition: opacity 700ms var(--ease-out), transform 1100ms var(--ease-out), color 300ms var(--ease-out), border-color 300ms; transition-delay: calc(var(--j) * 32ms), calc(var(--j) * 32ms), 0ms, 0ms; }
.xp.l { font-size: 22px; padding: 14px 24px; font-weight: 500; }
.xp.m { font-size: 17px; padding: 12px 20px; }
.xp.s { font-size: 15px; padding: 10px 18px; }
.dp-cloud.in .xp { opacity: 1; transform: none; }
.xp::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--navy); transform: scaleX(0); transform-origin: 0 50%; transition: transform 500ms var(--ease-out); }
[dir="rtl"] .xp::before { transform-origin: 100% 50%; }
.xp:hover { color: #fff; border-color: var(--navy); }
.xp:hover::before { transform: scaleX(1); }
.dp-cloud:hover .xp:not(:hover) { opacity: .55; transition-delay: 0ms; }
.dp-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; margin-top: 56px; }
.dp-ccard { position: relative; background: #fff; border: 1px solid var(--line-2); border-radius: 22px; padding: 26px; transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: calc(var(--j) * 100ms); }
.dp-ccard svg { width: 34px; height: 34px; color: var(--blue); }
.dp-ccard svg * { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 80; stroke-dashoffset: 80; transition: stroke-dashoffset 1200ms var(--ease-out); transition-delay: calc(300ms + var(--j) * 120ms); }
.dp-cards.in .dp-ccard svg * { stroke-dashoffset: 0; }
.dp-ccard h3 { margin: 16px 0 12px; font-size: 20px; color: var(--navy); }
.js .dp-cards:not(.in) .dp-ccard { opacity: 0; transform: translateY(20px); }

@media (max-width: 1080px) { .dp-jgrid { grid-template-columns: 1fr; } .dp-jtext { min-height: 10em; } }
@media (max-width: 680px) {
  .dp-journey { height: calc(100svh + var(--n) * 55svh); }
  .dp-rail button span { display: none; }
  .dp-rail button.cur span { display: block; }
  .xp.l { font-size: 18px; padding: 11px 18px; } .xp.m { font-size: 15px; } .xp.s { font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .xp { opacity: 1; transform: none; }
  .dp-journey { height: auto; } .dp-journey .dp-pin { position: relative; height: auto; padding-block: 80px; }
}
html.rm .xp { opacity: 1; transform: none; }
.dp-year .dg { height: 1.12em; }
.dp-year .dg > span > span { height: 1.12em; line-height: 1.12; }

/* the bar sits on a full-width band, so text scrolls under cleanly instead of showing around the pill */
.dp-bar::before { content: ""; position: absolute; left: 0; right: 0; top: -80px; height: 168px; pointer-events: none;
  background: linear-gradient(to bottom, var(--band, var(--cream)) 0, var(--band, var(--cream)) 118px, var(--band0, rgba(245,244,240,0)) 168px);
  opacity: 0; transition: opacity 320ms var(--ease-out), background 300ms; }
.dp-bar.on::before { opacity: 1; }
.dp-bar .wrap { position: relative; background: #fff; }

/* One bar at a time, and it reads on dark sections */
body.dp-bar-on .nav { transform: translateY(-110%); }
body.dp-bar-on .dp-bar { top: 0; }
.dp-bar .wrap { margin-top: 12px; box-shadow: 0 10px 30px -18px rgba(7,26,51,.35); transition: opacity 320ms var(--ease-out), transform 460ms var(--ease-out), background 400ms var(--ease-out), border-color 400ms; }
.dp-bar.dark .wrap { background: rgba(14,36,66,.92); border-color: rgba(255,255,255,.14); box-shadow: 0 10px 30px -14px rgba(0,0,0,.6); }
.dp-bar .dp-mini b, .dp-bar .dp-mini small, .dp-bar .dp-tabs a { transition: color 400ms var(--ease-out); }
.dp-bar.dark .dp-mini b, .dp-bar.dark .dp-tabs a { color: #fff; }
.dp-bar.dark .dp-mini small { color: var(--sky); }
.dp-bar.dark .dp-tabs .pill { background: #fff; }
.dp-bar.dark .dp-tabs a.cur { color: var(--navy); }
.dp-bar.dark #dpBarBook { background: #fff; color: var(--navy); }
.dp-bar.dark #dpBarBook .arr { background: var(--navy); color: #fff; }
.dp-bar::before { top: -12px; height: 110px; }
.dp-bar .dp-tabs .pill { transition: transform 460ms var(--ease-out), width 460ms var(--ease-out), opacity 250ms, background 400ms; }
.dp-bar::before { background: linear-gradient(to bottom, var(--band, var(--cream)) 0, var(--band, var(--cream)) 70px, var(--band0, rgba(245,244,240,0)) 110px); }

/* ═══ v4 · Focus as kinetic type, bar breathing room ═══ */
body.dp-bar-on .dp-bar { top: 14px; }
.dp-bar .wrap { margin-top: 0; }
.dp-bar::before { top: -14px; height: 124px; background: linear-gradient(to bottom, var(--band, var(--cream)) 0, var(--band, var(--cream)) 84px, var(--band0, rgba(245,244,240,0)) 124px); }

.dp-focus { margin-top: clamp(72px, 9vw, 130px); }
.dp-flist { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid transparent; }
.dp-frow { position: relative; isolation: isolate; display: grid; grid-template-columns: 64px 1fr 48px; align-items: center; gap: 20px; padding: 22px 8px; cursor: default; overflow: hidden; }
/* hairline that draws in under each line */
.dp-frow::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); transform: scaleX(min(1, calc(var(--f, 0) * 1.6))); transform-origin: 0 50%; }
[dir="rtl"] .dp-frow::after { transform-origin: 100% 50%; }
/* navy band that wipes in on hover */
.dp-frow::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--navy); clip-path: inset(0 100% 0 0); transition: clip-path 620ms var(--ease-surface); }
[dir="rtl"] .dp-frow::before { clip-path: inset(0 0 0 100%); }
.dp-frow:hover::before { clip-path: inset(0 0 0 0); }
.dp-frow .n { font-size: 14px; font-weight: 700; letter-spacing: .08em; color: var(--blue); font-variant-numeric: tabular-nums; opacity: calc(.2 + var(--f, 0) * .8); transform: translateY(calc((1 - var(--f, 0)) * 14px)); transition: color 400ms; }
.dp-frow .t { font-weight: 500; line-height: 1.08; letter-spacing: -.02em;
  color: transparent; -webkit-text-stroke: 1px rgba(11,36,67,.32);
  background: linear-gradient(90deg, var(--navy) 0, var(--navy) calc(var(--f, 0) * 112% - 12%), rgba(11,36,67,0) calc(var(--f, 0) * 112%));
  -webkit-background-clip: text; background-clip: text;
  transform: translateX(calc((1 - var(--f, 0)) * 28px)); transition: transform 600ms var(--ease-out), -webkit-text-stroke-color 400ms; }
[dir="rtl"] .dp-frow .t { letter-spacing: 0; background: linear-gradient(270deg, var(--navy) 0, var(--navy) calc(var(--f, 0) * 112% - 12%), rgba(11,36,67,0) calc(var(--f, 0) * 112%)); -webkit-background-clip: text; background-clip: text; transform: translateX(calc((1 - var(--f, 0)) * -28px)); }
.dp-frow.l .t { font-size: clamp(36px, 5.6vw, 84px); }
.dp-frow.m .t { font-size: clamp(28px, 4vw, 58px); }
.dp-frow.s .t { font-size: clamp(22px, 2.6vw, 38px); }
.dp-frow .go { width: 30px; height: 30px; fill: none; stroke: var(--navy); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: translateX(-16px); transition: opacity 300ms, transform 500ms var(--ease-out), stroke 300ms; justify-self: end; }
[dir="rtl"] .dp-frow .go { transform: scaleX(-1) translateX(-16px); }
.dp-frow:hover .go { opacity: 1; transform: none; stroke: #fff; }
[dir="rtl"] .dp-frow:hover .go { transform: scaleX(-1); }
.dp-frow:hover .t { background: none; color: #fff; -webkit-text-stroke-color: transparent; transform: translateX(16px); }
[dir="rtl"] .dp-frow:hover .t { background: none; transform: translateX(-16px); }
.dp-frow:hover .n { color: var(--sky); }
.dp-flist:hover .dp-frow:not(:hover) .t { opacity: .45; }
.dp-frow .t { transition: transform 600ms var(--ease-out), opacity 300ms, color 300ms; }
@media (max-width: 680px) {
  .dp-frow { grid-template-columns: 34px 1fr; gap: 12px; padding: 16px 2px; }
  .dp-frow .go { display: none; }
  .dp-frow.l .t { font-size: 34px; } .dp-frow.m .t { font-size: 26px; } .dp-frow.s .t { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) { .dp-frow .t, .dp-frow .n { transform: none; } }
html.rm .dp-frow .t, html.rm .dp-frow .n { transform: none; }
.dp-rail { margin-inline: 14px; }
@media (max-width: 680px) {
  .dp-bar .wrap { width: auto; max-width: none; margin-inline: 10px; padding-inline: 8px; gap: 10px; box-sizing: border-box; }
  .dp-mini { flex: 1 1 auto; max-width: none; }
  .dp-mini b { font-size: 14px; }
  #dpBarBook { flex: none; height: 40px; padding-inline: 14px 4px; font-size: 13px; }
  #dpBarBook .arr { width: 30px; height: 30px; }
}
@media (max-width: 380px) { #dpBarBook > span:first-child { display: none; } #dpBarBook { padding-inline: 4px; } }
/* the hidden site nav must not catch the pointer (its menus would open under the profile bar) */
body.dp-bar-on .nav, body.dp-bar-on .nav * { pointer-events: none; }
body.dp-bar-on .nav .item.open > :not(a):not(button) { visibility: hidden; }

.dp-spec a { color: inherit; text-decoration: none; background: linear-gradient(currentColor,currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size 400ms var(--ease-out); }
.dp-spec a:hover { background-size: 100% 1.5px; }
