/* Real ink on the route's opening sheet. Text and links never ride the moving press. */
[data-route-press] {
  --press-paper: var(--press-stock-base);
  --press-ink: var(--press-ink-base);
  --press-accent: var(--press-spot);
  --press-material: var(--press-material-base);
  --press-gutter: max(clamp(1.25rem, 5vw, 5rem), calc((100% - 83rem) / 2));
}
html[data-theme="dark"] [data-route-press] {
  --press-paper: color-mix(in srgb, var(--press-ink-base) 76%, #151518);
  --press-ink: var(--press-stock-base);
  --press-material: color-mix(in srgb, var(--press-ink-base) 62%, var(--press-material-base));
  --press-accent: var(--press-night-spot);
}
.hope-brand main .route-press-hero[data-route-press] {
  position: relative; isolation: isolate; overflow: clip; box-sizing: border-box;
  width: 100%; max-width: none; margin: 0; padding: 0; border: 0; border-radius: 0;
  background: var(--press-paper); color: var(--press-ink);
}
.hope-brand .route-press-hero[data-route-press]::before,
.hope-brand .route-press-hero[data-route-press]::after { display: none; }
.hope-brand .route-press-hero :is(h1,.route-intro__summary,.case-hero__result,.journal-opening__lead,.ash-deck) {
  color: var(--press-ink);
}
.hope-brand .route-press-hero :is(.route-folio .section-code,.journal-back,.journal-eyebrow,.ash-action,.ash-source,.hope-text-link,.ash-words h1 em) {
  color: var(--press-ink);
}
.hope-brand .route-press-hero :is(.ash-action,.ash-source,.hope-text-link,.journal-back) { text-decoration-color: currentColor; }
.route-press__art {
  position: relative; overflow: clip; align-self: stretch; min-width: 0;
  pointer-events: none; user-select: none; color: var(--press-ink);
}
.route-press__art > svg { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.hope-brand main :is(.route-intro,.route-press-paired).route-press-hero {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  align-items: center; gap: 0;
}
.route-press-hero > .route-press__art { grid-area: 1 / 2; }
.hope-brand main .route-press-hero .route-intro__grid,
.hope-brand main .route-press-paired > .ash-words,
.hope-brand main .route-press-paired.journal-opening > div:not(.route-press__art,.journal-feature) {
  align-self: center; grid-area: 1 / 1; width: auto; max-width: none; min-width: 0; margin: 0;
  padding: clamp(2.7rem, 6.1vw, 6.8rem) clamp(1.75rem, 3vw, 3.5rem) clamp(3rem, 6.4vw, 7rem) var(--press-gutter);
}
.hope-brand main .route-press-hero .route-intro__grid { display: block; }
.hope-brand .route-press-hero .route-folio { padding: 0; margin-bottom: 1.25rem; }
.hope-brand .route-press-hero .route-folio__rule { display: none; }
.hope-brand main .route-press-hero h1 {
  overflow-wrap: break-word; text-wrap: balance; max-width: 17ch;
  font-size: clamp(3rem, 5.4vw, 6.75rem); line-height: .99; letter-spacing: -.047em;
}
.hope-brand main .route-press-hero .route-intro__grid--with-visual {
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(4.5rem, 7vw, 6.5rem); gap: 1rem;
}
.hope-brand .route-press-hero .route-intro__grid--with-visual .route-folio { grid-column: 1 / -1; margin: 0; }
.hope-brand .route-press-hero .route-intro__visual { width: 100%; align-self: end; grid-column: 2; }
.route-press-hero[data-route-press="about"] .route-intro__visual { grid-template-columns: minmax(0,1fr); }
.route-press-hero[data-route-press="about"] .about-portrait { width: 100%; margin: 0; }
.route-press-hero[data-route-press="about"] .experience-case-links { display: flex; flex-wrap: wrap; gap: 0 1.2rem; }
.route-press-hero[data-route-press="about"] .experience-case-links a { font-size: 1rem; color: var(--press-ink); }
.hope-brand main .route-press-paired > :is(.ash-plate,.journal-feature) {
  grid-column: 1 / -1; grid-row: 2; width: 100%; margin: 0; border: 0; border-radius: 0;
  box-sizing: border-box; padding: clamp(1.5rem, 3vw, 3.2rem) max(var(--press-gutter), calc((100% - 52rem) / 2));
}
.hope-brand main .route-press-paired .journal-feature { background: var(--press-material); color: var(--press-ink); }
.hope-brand main .route-press-paired .journal-feature :is(a,h2,.journal-eyebrow) { color: var(--press-ink); }

/* Project pages keep their source, claim and provenance panels below the title cut. */
.hope-brand main .case-hero.route-press-hero > .route-press__art {
  position: absolute; inset: 0 0 auto auto; width: 42%; height: clamp(18rem, 34vw, 36rem);
}
.hope-brand main .case-hero.route-press-hero .case-hero__grid {
  display: block; box-sizing: border-box; width: 100%; max-width: none; margin: 0;
  padding: clamp(2.5rem, 5vw, 5.5rem) var(--press-gutter);
}
.hope-brand .case-hero.route-press-hero .case-hero__rail { display: none; }
.hope-brand main .case-hero.route-press-hero .case-hero__body > :is(nav,.case-hero__eyebrow,h1,.case-hero__result,.case-choice,.case-hero__code) { max-width: 55%; }
.hope-brand main .case-hero.route-press-hero .case-hero__body > :is(.case-hero__facts,.lineage-field) { position: relative; }

/* Recovery is a native sheet too, not a card nested inside another card. */
.hope-brand .not-found[data-route-edition] { display: block; margin: 0; padding: 0; }
.hope-brand .not-found[data-route-edition] .not-found__shell {
  width: 100%; max-width: none; margin: 0; padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none;
}
.not-found[data-route-edition] :is(.not-found__utility,.not-found__routes,.not-found__profiles) {
  margin-inline: auto; width: min(90%, 77rem); padding-block: clamp(1.25rem, 3vw, 3rem);
}
.hope-brand main.not-found .route-press-hero { padding: clamp(2.5rem, 6vw, 6.5rem) var(--press-gutter); }
.not-found .route-press-hero .route-press__art { position: absolute; inset: 0 0 0 auto; width: 44%; }
.hope-brand .not-found .route-press-hero > :is(h1,p) { max-width: 52%; color: var(--press-ink); }
.route-press-end {
  position: relative; height: clamp(2rem, 5vw, 4rem); overflow: clip; background: var(--press-paper); border-block-start: 1px solid var(--press-material);
}
.route-press-end .route-press__art { height: 100%; }
.route-press-end .route-press__art > svg { inset: auto 0 50%; height: auto; width: 100%; transform: translateY(50%); }

/* One engraved working part, a fixed bed. Distances live in the 900x220
   drawing's coordinates. Use individual translate to retain SVG transforms. */
[data-press-gesture="reveal"]   { --press-to: 14px -13px; }
[data-press-gesture="fan"]      { --press-to: 0 -19px; }
[data-press-gesture="collate"]  { --press-to: -24px 0; }
[data-press-gesture="register"] { --press-to: 0 25px; }
[data-press-gesture="bridge"]   { --press-to: 24px -6px; }
[data-press-gesture="relay"]    { --press-to: 28px -9px; }
[data-press-gesture="weave"]    { --press-to: 13px -3px; }
[data-press-gesture="emboss"]   { --press-to: 0 16px; }
[data-press-gesture="trace"]    { --press-to: 43px -5px; }
[data-press-gesture="fit"]      { --press-to: 26px -5px; }
[data-press-gesture="pivot"]    { --press-from: 0 -9px; }
[data-press-gesture="align"]    { --press-from: 15px -6px; }
[data-press-gesture="turn"]     { --press-to: -15px -4px; }
@keyframes press-seat-tool {
  from { translate: var(--press-from,0 0); }
  86%, to { translate: var(--press-to,0 0); }
}
@keyframes press-turn-corner {
  from { scale: .68 .78; }
  86%, to { scale: 1; }
}
@keyframes press-scribe-arc {
  from { stroke-dasharray: 1 1; stroke-dashoffset: .60; }
  86%, to { stroke-dasharray: 1 1; stroke-dashoffset: 0; }
}
.route-press-hero[data-press-gesture="riffle"] [data-press-actor] {
  --press-action: press-turn-corner;
  transform-box: fill-box;
  transform-origin: right bottom;
}
.route-press-hero [data-press-actor="trace"] { --press-action: press-scribe-arc; }
@media screen and (prefers-reduced-motion: no-preference) and (forced-colors: none) {
  @supports not ((animation-timeline: scroll(root block)) and (view-timeline-name: --press-tool-view) and (animation-range: 0px 10px)) {
    html[data-press-motion] .route-press-hero [data-editorial-scrub] [data-press-actor] {
      animation: var(--press-action,press-seat-tool) 1s cubic-bezier(.18,.52,.27,1) var(--editorial-offset,0s) both paused;
    }
  }
}
@media screen and (scripting: enabled) and (prefers-reduced-motion: no-preference) and (forced-colors: none) {
  @supports (animation-timeline: scroll(root block)) and (view-timeline-name: --press-tool-view) and (animation-range: 0px 10px) {
    .route-press-hero {
      --press-clock: scroll(root block);
      --press-travel: 0px clamp(9rem,39svh,20rem);
    }
    @media (max-height: 32rem), (max-width: 22rem) {
      .route-press-hero > .route-press__art {
        view-timeline-name: --press-tool-view;
        --press-clock: --press-tool-view;
        --press-travel: entry 24% exit 42%;
      }
    }
    html[data-press-motion] .route-press-hero [data-press-actor] {
      animation: var(--press-action,press-seat-tool) auto cubic-bezier(.18,.52,.27,1) both;
      animation-timeline: var(--press-clock);
      animation-range: var(--press-travel);
    }
  }
  @media (hover:hover) and (pointer:fine) {
    .route-press-hero :is(.hope-text-link,.ash-source,.ash-action,.journal-back):hover { text-decoration-thickness: .13em; text-underline-offset: .28em; }
  }
}
@media (max-width: 48rem) {
  .hope-brand main :is(.route-intro,.route-press-paired).route-press-hero { grid-template-columns: minmax(0,1fr); }
  .hope-brand main .route-press-hero .route-intro__grid,
  .hope-brand main .route-press-paired > .ash-words,
  .hope-brand main .route-press-paired.journal-opening > div:not(.route-press__art,.journal-feature) { padding: 1.7rem var(--press-gutter) 1.2rem; }
  .hope-brand main .route-press-hero h1 { font-size: clamp(2.65rem, 8.8vw, 4.5rem); }
  .hope-brand main .route-press-hero .route-intro__grid--with-visual { grid-template-columns: minmax(0, 1fr) 4.6rem; gap: .6rem; }
  .hope-brand main .route-press-hero .route-intro__grid--with-visual > :nth-child(2) { grid-column: 1 / -1; }
  .hope-brand main .route-press-hero .route-intro__grid--with-visual .route-intro__visual { grid-column: 2; grid-row: 1; }
  .hope-brand main .route-press-hero .route-intro__grid--with-visual .route-folio { grid-column: 1; }
  .route-press-hero > .route-press__art { grid-area: 2 / 1; width: 100%; height: clamp(7.4rem,28vw,12rem); }
  .hope-brand main .route-press-paired > :is(.ash-plate,.journal-feature) { grid-row: 3; }
  .hope-brand main .case-hero.route-press-hero > .route-press__art,
  .not-found .route-press-hero > .route-press__art { position: relative; inset: auto; width: 100%; height: clamp(6.5rem,23vw,9rem); }
  .hope-brand main .case-hero.route-press-hero .case-hero__grid { padding-block: 1.4rem 2rem; }
  .hope-brand main .case-hero.route-press-hero .case-hero__body > :is(nav,.case-hero__eyebrow,h1,.case-hero__result,.case-choice,.case-hero__code) { max-width: 100%; }
  .hope-brand main.not-found .route-press-hero { display:flex; flex-direction:column; align-items:stretch; padding: 1.6rem 0 0; }
  .hope-brand .not-found .route-press-hero > :is(h1,p) { max-width: none; margin-inline: var(--press-gutter); }
  .not-found .route-press-hero > .route-press__art { order: 1; margin-block-start: 1rem; }
}
@media (forced-colors: active) { .route-press__art,.route-press-end { visibility: hidden; } }
@media print {
  .route-press__art,.route-press-end { display:none !important; }
  .hope-brand main .route-press-hero[data-route-press] { display: block; width: auto; padding: 0; background: none; color: black; }
  .hope-brand .route-press-hero * { animation: none !important; }
}
