/* Edgewater inner pages: the shared layer every page except the homepage loads after core.css (page head, long-form
   prose). Same ownership as core.css. The page head is CSS only from first paint and never waits for fonts or
   scripts; its hidden start states exist only under html.motion. */

/* == PAGE HEAD: navy; the header sits over it transparent (.mast--over), as on the homepage cover. Every head is as
   tall as its content (fix round 1), so the kicker and H1 sit at the same height on every page and the first
   chapter starts sooner; .ph--compact is kept in the markup as an alias with no rules of its own == */
.ph { position: relative; isolation: isolate; display: flex; flex-direction: column;
  background: var(--navy); color: var(--on-navy-2); overflow: hidden; --focus: #fff; --line: var(--on-navy-rule); }
.ph-light { position: absolute; top: 0; right: 0; bottom: 0; width: 66%; z-index: -1; background: url("../Images/v2/light-panel.webp") right top / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%); mask-image: linear-gradient(90deg, transparent, #000 70%); opacity: .62; }
.ph-in { padding-top: calc(var(--mast-h) + clamp(32px, 5vh, 64px)); padding-bottom: clamp(30px, 4.4vh, 52px); }
.ph-kicker { color: var(--on-navy-3); }
.ph .sep { color: rgba(255,255,255,.3); }
/* the title rises out of a mask; .ph--long (release headlines) fades up instead of travelling its full height.
   Styled as ".ph-h > h1" (no class needed), so a release keeps the plain <h1 class="pr-headline"> its tools read */
.ph-h { overflow: hidden; margin-top: clamp(12px, 1.9vh, 22px); padding-bottom: .16em; margin-bottom: -.16em; }
.ph-h > h1 { max-width: 15em; font: 400 clamp(40px, 4.4vw, 66px)/1.06 var(--serif); letter-spacing: -.016em; color: #fff; text-wrap: balance; }
.ph--long .ph-h > h1 { max-width: 25em; font-size: clamp(30px, 3.05vw, 46px); line-height: 1.14; letter-spacing: -.01em; }
.ph-lede { margin-top: clamp(16px, 2.4vh, 26px); max-width: 38em; font-size: var(--t-lead); line-height: 1.6; color: var(--on-navy-2); text-wrap: balance; }
/* column titles break evenly ("Commitment to Client / Satisfaction", not a lone last word); not on the homepage */
.model-item :is(h3, h4) { text-wrap: balance; }
.ph-lede a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,.45); text-decoration-thickness: 1px; text-underline-offset: .22em; transition: text-decoration-color .2s; }
.ph-lede a:hover { text-decoration-color: #fff; }
.ph-actions { margin-top: clamp(22px, 3.2vh, 36px); display: flex; flex-wrap: wrap; align-items: center; gap: 14px 34px; }
/* on the navy head a button is the light one and a text link is white, with no extra class */
.ph .btn { --bg: #fff; --fg: var(--navy); --sweep: var(--stone-2); }
.ph .arrow-link { color: #fff; }
/* the horizon: a pen draws the line across the measure; beyond the margins a static line fades in */
.ph-pen { position: relative; height: 1px; }
.ph-pen::before, .ph-pen::after { content: ""; position: absolute; top: 0; width: 100vw; height: 1px; background: rgba(255,255,255,.5); }
.ph-pen::before { right: 100%; }
.ph-pen::after { left: 100%; }
.ph-pen-line { position: absolute; inset: 0; background: rgba(255,255,255,.5); transform-origin: left; }
.ph-pen-run { position: absolute; inset: 0; opacity: 0; }
.ph-pen-tip { position: absolute; left: -4px; top: -4px; width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle, #fff 0 2.5px, rgba(255,255,255,.35) 3px, rgba(255,255,255,0) 4.5px); }
/* the water: a deep strip under the horizon; it may hold the page's own index or meta (.ph-index). One height on
   every page, 64 px (56 on phones), its content centred; only About's index may wrap and grow it (fix round 2, D2-05) */
.ph-water { background: var(--navy-deep); }
.ph-water > .wrap { display: flex; flex-wrap: wrap; align-items: center; min-height: 64px; padding-block: 12px; }
.ph-water:empty { height: 64px; }
.ph-index { display: flex; flex-wrap: wrap; gap: 4px clamp(22px, 3vw, 44px); font: 600 11.5px/1.45 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--on-navy-2); }
.ph-index a { display: inline-flex; align-items: baseline; gap: 10px; padding: 6px 0; color: #fff; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 calc(100% - 3px) / 0 1px no-repeat; transition: background-size .45s var(--ease); }
.ph-index a:hover, .ph-index a:focus-visible { background-size: 100% 1px; }
/* or a line of meta in small caps (a label and its link, the offices). Inline text, not flex: a flex row drops the
   real spaces around each .sep from the accessibility tree ("NEW YORKLONDON"); .39em is the .85em gap less the space */
.ph-meta { font: 600 11.5px/1.45 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--on-navy-3); }
.ph-meta .sep { margin: 0 .39em; }
.ph-meta b { font-weight: 600; color: #fff; }
.ph-meta a { display: inline-block; margin-left: .5em; padding: 2px 0; font: 500 15px/1.3 var(--sans); letter-spacing: .01em; text-transform: none; color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,.4); text-underline-offset: .25em; }
.ph-meta a:hover { text-decoration-color: #fff; }
/* or a link back up a level (releases and the coverage archive: "All announcements"): the arrow points back and
   nudges back; a block, so no line box (and no font metrics) sets the strip's height */
.pr-back { display: flex; width: fit-content; margin-left: -2px; }
.pr-back:hover svg, .pr-back:focus-visible svg { transform: translateX(-5px); }

@keyframes phUp { from { opacity: 0; transform: translateY(16px); } }
@keyframes phRise { from { transform: translateY(104%); } }
@keyframes phDraw { from { transform: scaleX(0); } }
@keyframes phTip { 0% { opacity: 1; transform: translateX(0); } 86% { opacity: 1; } 100% { opacity: 0; transform: translateX(100%); } }
@keyframes phFade { from { opacity: 0; } }
html.motion .ph-kicker { animation: phUp .6s var(--ease) .04s both; }
html.motion .ph-h > h1 { animation: phRise .9s var(--ease) .1s both; }
html.motion .ph--long .ph-h > h1 { animation: phUp .8s var(--ease) .1s both; }
html.motion .ph-lede { animation: phUp .7s var(--ease) .32s both; }
html.motion .ph-actions { animation: phUp .7s var(--ease) .42s both; }
html.motion .ph-pen-line { animation: phDraw .9s var(--ease-io) .12s both; }
html.motion .ph-pen-run { animation: phTip .9s var(--ease-io) .12s both; }
html.motion .ph-pen::before, html.motion .ph-pen::after { animation: phFade .5s var(--ease) .6s both; }
html.motion .ph-water .wrap > :not(nav), html.motion .ph-index > li { animation: phUp .7s var(--ease) calc(.48s + var(--i, 0) * .05s) both; }
.ph-index > li:nth-child(2) { --i: 1; } .ph-index > li:nth-child(3) { --i: 2; } .ph-index > li:nth-child(4) { --i: 3; } .ph-index > li:nth-child(n+5) { --i: 4; }

@media (max-width: 767px) {
  .ph-light { width: 100%; opacity: .42; }
  .ph-in { padding-top: calc(var(--mast-h) + 34px); padding-bottom: 32px; }
  .ph-h > h1 { font-size: clamp(34px, 9.4vw, 42px); line-height: 1.08; }
  .ph--long .ph-h > h1 { font-size: clamp(26px, 7vw, 30px); line-height: 1.18; }
  .ph-lede { font-size: 16.5px; }
  .ph-actions .btn { width: 100%; justify-content: space-between; }
  .ph-index { gap: 0 22px; letter-spacing: .16em; }
  .ph-water > .wrap { min-height: 56px; }
  .ph-water:empty { height: 56px; }
  /* a long release lede (often more than six lines here, where balance stops) never ends on one word (D2-07) */
  .ph--long .ph-lede { text-wrap: pretty; }
}
/* About's index on phones: its three labels hold one row down to 320 px (phase 5: no numbers) */
@media (max-width: 639px) { .ph-index { column-gap: 18px; letter-spacing: .12em; } }

/* == LONG-FORM PROSE (releases, bios, policy-length copy) == */
.prose { max-width: 40em; font-size: 17.5px; line-height: 1.72; color: var(--ink); }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { display: flex; align-items: center; gap: 18px; margin-top: 2.4em; font: 600 11.5px/1.45 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--navy); }
.prose h2::after { content: ""; flex: 1; min-width: 24px; height: 1px; background: var(--line); }
.prose h3 { margin-top: 2em; font: 400 clamp(21px, 1.7vw, 25px)/1.25 var(--serif); color: var(--navy); }
.prose h2 + *, .prose h3 + * { margin-top: .7em; }
.prose a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--rule); text-decoration-thickness: 1px; text-underline-offset: .24em; transition: text-decoration-color .2s; }
.prose a:hover { text-decoration-color: currentColor; }
.prose ul > li, .prose ol > li { position: relative; padding-left: 24px; }
.prose li + li { margin-top: .45em; }
.prose ul > li::before { content: "\2014"; content: "\2014" / ""; position: absolute; left: 0; top: 0; color: var(--gold-deep); transform: scaleX(.78); transform-origin: left; }
.prose ol { counter-reset: p; }
.prose ol > li { counter-increment: p; padding-left: 34px; }
.prose ol > li::before { content: counter(p, decimal-leading-zero); position: absolute; left: 0; top: .2em; font: 600 12px/1.6 var(--sans); letter-spacing: .08em; font-variant-numeric: tabular-nums; color: var(--gold-deep); }
.prose blockquote { margin-block: 1.8em; padding-left: 26px; border-left: 2px solid var(--gold); }
.prose blockquote p { font: italic 400 clamp(19px, 1.6vw, 23px)/1.5 var(--serif); color: var(--navy); }
.prose cite { display: block; margin-top: 14px; font: 600 11.5px/1.5 var(--sans); font-style: normal; letter-spacing: .18em; text-transform: uppercase; color: var(--label); }
.prose hr { height: 1px; margin-block: 2.4em; border: 0; background: var(--line); }
@media (max-width: 767px) { .prose { font-size: 16.5px; line-height: 1.7; } .prose h2 { display: block; } .prose h2::after { display: block; margin-top: 10px; } }
.prose.prose--sm { font-size: 16px; line-height: 1.65; }

/* -- forced colours and print -- */
@media (forced-colors: active) { .ph-light, .ph-pen-run { display: none; } .ph-pen-line, .ph-pen::before, .ph-pen::after { forced-color-adjust: none; background: CanvasText; } }
@media print {
  .ph { background: #fff; color: var(--ink); }
  .ph-light, .ph-pen, .ph-water:empty { display: none !important; }
  .ph-h > h1 { color: var(--navy); }
  .ph-kicker, .ph-lede { color: var(--slate); }
  .ph-water { background: none; }
  .ph-index, .ph-index a, .ph-meta, .ph-meta b, .ph-meta a, .ph-lede a { color: var(--ink); }
  .ph .sep { color: var(--stone-rule); }
  .ph-actions, .pr-back { display: none; }
  .ph-in { padding-top: 24px; }
}
