/* A contents spread, a running chapter title, and the product on its own page. */
.journey-contents { border-top:1px solid var(--role-rule); padding-block:24px 34px; }
.journey-contents ol { list-style:none; counter-reset:chapters; padding:0; margin:0; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1px 3%; }
.journey-contents li { counter-increment:chapters; }
.journey-contents a { min-height:45px; display:flex; align-items:center; gap:.8em; color:var(--role-text); text-decoration:none; font-size:13px; line-height:1.4; }
.journey-contents a::before { content:counter(chapters,decimal-leading-zero); color:#826d54; font-size:10px; letter-spacing:.08em; font-variant-numeric:tabular-nums; }
.journey-contents a:is(:hover,[aria-current="location"]) { text-decoration:underline; text-underline-offset:4px; color:#3e3020; }
.journey-folio { position:sticky; top:var(--brand-bar-height); z-index:8; border-block:1px solid #cdc1b2; background:#f3eee6f5; }
.journey-folio[hidden],.journey-switch[hidden],.journey-figure[hidden] { display:none; }
.journey-folio>div,.folio-roles,.folio-current { display:flex; align-items:center; }
.journey-folio>div { min-height:44px; justify-content:space-between; gap:15px; }
.journey-folio :is(a,span) { color:#615343; font:500 12px/1.3 Inter,Arial,sans-serif; }
.journey-folio a { text-decoration:none; min-height:44px; display:inline-flex; align-items:center; }
.folio-current { gap:13px; }
.journey-folio [data-folio-number] { font-variant-numeric:tabular-nums; color:#856544; font-size:10px; letter-spacing:.12em; white-space:nowrap; }
.folio-roles { gap:12px; white-space:nowrap; }
.folio-roles [aria-current] { border-right:1px solid var(--role-rule); padding-right:12px; }
.folio-roles a { gap:5px; }
.journey-folio a:hover, .journey-viewer-head button:hover { text-decoration:underline; text-underline-offset:4px; }
.journey-chapter { background:#f3eee6; border-bottom:1px solid #d9cebf; scroll-margin-top:44px; }
.journey-inner { position:relative; width:min(91%,1420px); margin-inline:auto; display:grid; grid-template-columns:minmax(220px,.74fr) minmax(0,1.36fr); gap:clamp(30px,5vw,90px); align-items:center; padding-block:clamp(65px,7vw,112px); }
.journey-copy { padding-left:clamp(0px,1.4vw,24px); min-width:0; }
.journey-copy h2 { max-width:14ch; text-wrap:balance; font-size:clamp(39px,3.9vw,65px); }
.journey-copy h2 em { display:block; }
.journey-copy>p:not(.role-label) { max-width:44ch; font:400 clamp(15px,1.12vw,18px)/1.63 Inter,Arial,sans-serif; margin-top:18px; color:var(--role-text); }
.journey-copy .role-file-link { font-size:12px; }
.journey-copy .role-future { margin:15px 0 0; }
.journey-copy .team-production caption { font-size:12px; color:var(--role-text); margin:10px 0; }
.journey-product, .journey-stage, .journey-open { min-width:0; }
.journey-stage { border-radius:14px; background:#e6dfd3; padding:clamp(15px,2vw,38px); }
.journey-open { display:block; text-decoration:none; border:1px solid #bfb4a4; border-radius:8px; overflow:hidden; background:#fbf8f1; color:#4e4539; box-shadow:0 19px 38px -29px #30271b85; }
.journey-figure { width:100%; }
.journey-open picture,.journey-open img { display:block; width:100%; }
.journey-open img { height:auto; max-height:min(58vh,550px); object-fit:contain; background:#f8f4ec; }
.journey-switch { display:flex; align-items:center; flex-wrap:wrap; gap:5px 18px; margin-bottom:10px; }
.journey-switch button { appearance:none; min-height:44px; color:#6c5e4a; font:500 13px/1.25 Inter,Arial,sans-serif; background:none; border:0; border-bottom:1px solid transparent; cursor:pointer; padding:4px 0; }
.journey-switch button[aria-pressed=true] { color:#3a2b1b; border-color:#826443; }
.journey-frame-foot { display:flex; justify-content:space-between; align-items:center; gap:12px; border-top:1px solid #d8cdbc; min-height:44px; padding:4px 16px; font:500 11px/1.4 Inter,Arial,sans-serif; }
.journey-frame-foot>span:first-child { color:#6a5b49; }
.journey-frame-foot i { font-style:normal; margin-left:3px; }
.journey-open:hover .journey-frame-foot>span:last-child { text-decoration:underline; text-underline-offset:3px; }
#chapter-6 { position:relative; isolation:isolate; background:#e6dfd3; }
#chapter-6 .journey-inner { position:static; min-height:min(660px,80vh); }
.journey-terrace,.journey-terrace img { display:block; position:absolute; inset:0; height:100%; width:100%; object-fit:cover; z-index:-1; }
.journey-terrace::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg,rgba(246,242,234,.95) 2%,rgba(246,242,234,.83) 33%,rgba(246,242,234,.12) 65%,transparent); }
#chapter-6 .journey-copy>p:not(.role-label) { color:#443d32; }
#chapter-6 .journey-product { justify-self:end; width:min(100%,560px); margin-block:32px; }
.journey-viewer { padding:0; border:1px solid #afa18f; border-radius:10px; width:min(1220px,96vw); max-width:none; height:min(840px,91dvh); max-height:none; margin:auto; overflow:hidden; color:#3d342b; background:#eee8dc; }
.journey-viewer[open] { display:flex; flex-direction:column; }
.journey-viewer::backdrop { background:#171711ae; }
.journey-viewer-head { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:46px; padding:0 18px; border-bottom:1px solid #c9bcaa; font:500 13px/1.3 Inter,Arial,sans-serif; }
.journey-viewer-head button { appearance:none; padding:4px 0; display:flex; align-items:center; gap:10px; background:transparent; border:0; min-height:44px; color:inherit; cursor:pointer; font:inherit; }
.journey-viewer-head button span { font-size:20px; font-weight:300; }
.journey-viewer-body { flex:1; min-height:0; }
.journey-viewer iframe { border:0; width:100%; height:100%; display:block; }
body:has(.journey-viewer[open]) { overflow:hidden; }
@media (prefers-reduced-motion:no-preference) {
  .journey-open { transition:border-color .18s ease,box-shadow .18s ease; }
  .journey-open:hover { border-color:#947858; box-shadow:0 20px 40px -27px #30271b95; }
  .journey-figure[data-selected] { animation:journey-sheet .22s ease-out; }
  @keyframes journey-sheet { from {opacity:.6;transform:translateY(3px)} to {opacity:1;transform:none} }
}
@media(max-width:850px){
  .journey-inner { width:90%; grid-template-columns:1fr; gap:24px; padding-block:48px; }
  .journey-copy { padding:0; }
  .journey-copy h2 { max-width:23ch; }
  .journey-copy h2 em { display:inline; }
  .journey-copy>p:not(.role-label) { max-width:58ch; margin-top:12px; }
  .journey-copy .role-label { margin-bottom:10px; }
  #chapter-6 .journey-product { justify-self:start; margin:0; }
  .journey-terrace::after { background:linear-gradient(180deg,#f5f1e7f5 0%,#f5f1e7e8 32%,#f5f1e71a 66%); }
  .journey-contents ol { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:650px){
  .journey-contents { padding:12px 0 20px; }
  .journey-contents a { font-size:12px; gap:8px; }
  .journey-stage { padding:8px; border-radius:9px; }
  .journey-open { border-radius:5px; }
  .journey-open img { max-height:none; }
  .journey-inner { gap:19px; padding-block:40px; }
  .journey-copy h2 { font-size:clamp(34px,8.5vw,46px); }
  .journey-frame-foot { padding-inline:10px; }
  .journey-folio :is(a,span) { font-size:11px; }
  .journey-switch { padding-inline:6px; margin-bottom:5px; }
  .folio-roles [aria-current] { display:none; }
  .folio-current { gap:7px; }
  .journey-viewer { width:100vw; height:100dvh; border-radius:0; border:0; }
  #chapter-6 .journey-product { padding-top:80px; }
}
@media print{
  .journey-folio,.journey-switch { display:none!important; }
  .journey-figure[hidden] { display:block; }
  .journey-inner { display:block; padding-block:24px; }
  .journey-chapter { break-inside:avoid; }
}
.journey-brief-link { margin-right:15px; }
/* The jacket uses the supplied coastal photograph; the small screen is the actual workspace. */
.journey-edition { --cover-ink:#131914; --cover-paper:#f5f0e5; --cover-gold:#decda5; --cover-rule:#727463; }
.journey-edition>.brand-nav-ink { background:#131914; border-bottom:1px solid #575849; }
.journey-cover { background:var(--cover-ink); color:var(--cover-paper); }
.jacket-spread { position:relative; isolation:isolate; width:min(100%,1850px); margin:auto; display:grid; align-items:center; }
.jacket-photo { position:relative; grid-area:1/1; width:100%; min-width:0; }
.jacket-photo picture,.jacket-photo picture img { display:block; width:100%; height:auto; }
.jacket-photo .jacket-screen {
  position:absolute; left:60.8%; top:74.35%; width:7.23%; height:14%; transform:matrix(1,-.044,.29,1,0,0);
  transform-origin:0 0; clip-path:polygon(0 0,100% 0,100% 75%,82% 78%,72% 91%,68% 100%,0 100%);
  object-fit:fill; filter:brightness(.71) saturate(.73); opacity:.9; pointer-events:none;
}
.jacket-ink { grid-area:1/1; position:absolute; inset:0; background:linear-gradient(90deg,#111812f5 0%,#121813df 17%,#131b15b8 36%,#202b2112 63%,transparent 76%); }
.jacket-copy { grid-area:1/1; position:relative; width:fit-content; max-width:47%; margin:clamp(34px,3.9vw,72px) 0 clamp(44px,5.2vw,92px) max(6vw,calc((100% - 1450px)/2)); }
.jacket-perspective { display:inline-flex; align-items:center; border:1px solid #b9b9a595; border-radius:99px; padding:3px; background:#18201bc4; margin:0 0 clamp(25px,3vw,52px); }
.jacket-perspective a { display:inline-flex; align-items:center; justify-content:center; min-height:36px; padding:5px 19px; color:#f4eee2; border-radius:99px; text-decoration:none; font:500 12px/1.2 Inter,Arial,sans-serif; }
.jacket-perspective a[aria-current=page] { background:#eee8da; color:#252a22; }
.journey-cover .role-label { font-size:11px; color:var(--cover-gold); letter-spacing:.16em; margin-bottom:14px; }
.journey-cover h1 { color:var(--cover-paper); max-width:none; font-size:clamp(62px,6.5vw,115px); line-height:.99; letter-spacing:-.047em; }
.journey-cover h1 em { display:block; color:#e1cfa9; font-weight:300; }
.journey-cover .jacket-intro { width:min(100%,39ch); font:400 clamp(15px,1.15vw,19px)/1.6 Inter,Arial,sans-serif; margin-top:clamp(15px,1.75vw,30px); color:#f0ede5; text-wrap:pretty; }
.jacket-actions { display:flex; align-items:center; flex-wrap:wrap; gap:9px 24px; margin-top:clamp(16px,2vw,33px); }
.jacket-actions a { display:inline-flex; align-items:center; gap:8px; min-height:44px; text-decoration:none; color:#f4edde; font:500 13px/1.3 Inter,Arial,sans-serif; }
.jacket-actions a:hover { text-decoration:underline; text-underline-offset:4px; }
.jacket-actions .jacket-start { border-bottom:1px solid #ccb992; gap:22px; }
.journey-cover :is(a,button):focus-visible,.journey-folio a:focus-visible,.journey-contents a:focus-visible { outline:2px solid #d4b779; outline-offset:3px; }
@media(min-width:761px) and (max-width:1080px){.jacket-copy{margin:24px 0 30px 5.5vw}.jacket-perspective{margin-bottom:18px}.journey-cover h1{font-size:clamp(50px,6.3vw,68px)}.journey-cover .jacket-intro{font-size:14px}.jacket-actions{margin-top:12px}}
@media(max-width:760px){
  .jacket-spread{display:flex; flex-direction:column; align-items:stretch}
  .jacket-copy{order:-1; max-width:none; width:90%; margin:0 auto; padding:24px 0 28px}
  .jacket-perspective{margin:0 0 23px}
  .jacket-perspective a{min-height:38px;padding-inline:15px}
  .journey-cover h1{font-size:clamp(54px,11.8vw,79px)}
  .journey-cover .role-label{font-size:10px;margin-bottom:10px}
  .journey-cover .jacket-intro{font-size:15px;line-height:1.52; margin-top:15px}
  .jacket-actions{margin-top:12px}
  .jacket-ink{display:none}
  .jacket-photo .jacket-screen{left:34.45%;width:12.1%}
}

/* The contents double as a compact index for the same file from either perspective. */
.journey-contents { width:100%; margin:0; border:0; background:#151b16; padding:0 max(5vw,calc((100% - 1450px)/2)); }
.journey-contents ol { display:grid; grid-template-columns:repeat(8,minmax(0,1fr)); gap:0; border-bottom:1px solid #51594c; }
.journey-contents a { flex-direction:column; align-items:flex-start; justify-content:center; color:#e6e2d6; gap:2px; min-height:86px; padding:10px 0; font-size:13px; }
.journey-contents a::before { color:#c4af8e; font:italic 300 19px/1.15 Ivar,Georgia,serif; letter-spacing:.01em; }
.journey-contents a:is(:hover,[aria-current="location"]) { color:#fff7e8; text-decoration:underline; text-underline-offset:4px; }
.journey-folio { background:#151b16f7; border-color:#444c40; }
.journey-folio :is(a,span){color:#e8e4d7}
.journey-folio [data-folio-number]{color:#ccb991}
.journey-folio::after { position:absolute; inset:auto 0 -1px; height:2px; background:#c4ad81; content:""; transform:scaleX(var(--journey-progress,.125));transform-origin:left; }
.folio-roles [aria-current]{border-color:#5f6456}
@media(max-width:650px){.journey-contents ol{grid-template-columns:repeat(4,minmax(0,1fr))}.journey-contents a{min-height:56px;font-size:12px}.journey-contents a::before{font-size:15px}.journey-contents ol{padding-block:7px}}

/* Change the scale of the product as the work changes. All eight chapters remain in reading order. */
.journey-chapter {
  --spread-bg:#f5f0e7; --spread-ink:#2c2a24; --spread-copy:#564f43; --spread-accent:#71583f;
  background:var(--spread-bg); color:var(--spread-ink); border-color:color-mix(in srgb,var(--spread-ink) 14%,var(--spread-bg));
}
.journey-chapter:is(#chapter-1,#chapter-4,#chapter-8) {
  --spread-bg:#151b16; --spread-ink:#f6f1e4; --spread-copy:#d6d5c8; --spread-accent:#d9c5a0;
  background:var(--spread-bg);
}
.journey-chapter:is(#chapter-2,#chapter-3,#chapter-5,#chapter-7) { background:var(--spread-bg); }
.journey-chapter#chapter-3 { --spread-bg:#ebe4d6; }
.journey-chapter#chapter-5 { --spread-bg:#eee7da; }
.journey-chapter .journey-copy h2 { color:var(--spread-ink); }
.journey-chapter .journey-copy h2 em,.journey-chapter .journey-copy .role-label { color:var(--spread-accent); }
.journey-chapter .journey-copy>p:not(.role-label) { color:var(--spread-copy); }
.journey-inner { padding-block:clamp(68px,7vw,118px); }
.journey-copy .role-label { display:flex; align-items:baseline; gap:12px; letter-spacing:.13em; }
.journey-copy .chapter-no { font:300 clamp(23px,2vw,32px)/1 Ivar,Georgia,serif; letter-spacing:-.025em; }
.journey-stage { padding:0; border-radius:0; background:transparent; }
.journey-open { border-radius:9px; box-shadow:0 24px 62px -48px #191d14a8; }
.journey-open img { max-height:none; }
.journey-switch { margin:0 0 14px; gap:6px 20px; border-bottom:1px solid color-mix(in srgb,var(--spread-copy) 22%,transparent); }
.journey-switch button { color:var(--spread-copy); font-size:13px; }
.journey-switch button[aria-pressed=true] { color:var(--spread-ink); border-color:var(--spread-accent); }
.journey-copy .role-file-link { color:var(--spread-accent); }
.journey-chapter { scroll-margin-top:calc(var(--brand-bar-height,64px) + 44px); }
/* The root scroll padding already accounts for the brand navigation. */
.role-agents .journey-chapter, .role-teams .journey-chapter { scroll-margin-top:44px; }
.offer-ready { display:grid; grid-template-columns:minmax(0,1fr); }
.offer-ready .journey-switch { grid-area:1/1; }
.offer-ready .journey-figure { grid-area:2/1; align-self:center; min-width:0; }
.offer-ready [data-backdrop] { filter:brightness(.67) saturate(.65); }
.offer-ready [data-backdrop] .journey-frame-foot { visibility:hidden; }
.offer-ready [data-panel="reply"] { z-index:1; justify-self:center; width:min(88%,760px); }
.offer-ready [data-panel="reply"] .journey-open { box-shadow:0 16px 48px #18201855; }
.journey-chapter:is(#chapter-1,#chapter-3,#chapter-4,#chapter-7) .journey-inner { display:flex; flex-direction:column; align-items:center; gap:clamp(25px,3.2vw,54px); }
.journey-chapter:is(#chapter-1,#chapter-3,#chapter-4,#chapter-7) .journey-copy { padding:0; max-width:min(100%,860px); text-align:center; }
.journey-chapter:is(#chapter-1,#chapter-3,#chapter-4,#chapter-7) .journey-copy .role-label { justify-content:center; }
.journey-chapter:is(#chapter-1,#chapter-3,#chapter-4,#chapter-7) .journey-copy h2 { margin-inline:auto; max-width:22ch; font-size:clamp(43px,4.7vw,81px); }
.journey-chapter:is(#chapter-1,#chapter-3,#chapter-4,#chapter-7) .journey-copy h2 em { display:inline; }
.journey-chapter:is(#chapter-1,#chapter-3,#chapter-4,#chapter-7) .journey-copy>p:not(.role-label) { max-width:65ch; margin-inline:auto; text-wrap:pretty; }
.journey-chapter:is(#chapter-1,#chapter-3,#chapter-4,#chapter-7) .journey-product { width:min(100%,1000px); }
.journey-chapter:is(#chapter-1,#chapter-3,#chapter-4,#chapter-7) .journey-switch { justify-content:center; }
.journey-chapter#chapter-8 .role-future, .journey-chapter#chapter-8 .role-future summary { color:var(--spread-ink); border-color:#666a58; }
.journey-chapter#chapter-8 .role-future p { color:var(--spread-copy); }
.role-story .role-ending { padding-block:clamp(54px,6.5vw,94px); }
@media(min-width:851px){
  .journey-chapter:is(#chapter-2,#chapter-5) .journey-inner { width:min(89%,1280px); grid-template-columns:minmax(220px,.66fr) minmax(0,1.34fr); }
  .journey-chapter:is(#chapter-2,#chapter-5) .journey-copy h2 { max-width:12ch; }
}
@media(max-width:850px){
  .journey-inner { padding-block:clamp(44px,8vw,66px); }
  .journey-chapter:is(#chapter-1,#chapter-3,#chapter-4,#chapter-7) .journey-copy h2 {font-size:clamp(37px,7.8vw,62px)}
}
@media(max-width:650px){
  .journey-chapter:is(#chapter-1,#chapter-3,#chapter-4,#chapter-7) .journey-copy { text-align:left; }
  .journey-chapter:is(#chapter-1,#chapter-3,#chapter-4,#chapter-7) .journey-copy .role-label,.journey-chapter:is(#chapter-1,#chapter-3,#chapter-4,#chapter-7) .journey-switch {justify-content:flex-start}
  .journey-chapter:is(#chapter-1,#chapter-3,#chapter-4,#chapter-7) .journey-copy h2 {margin-left:0}
  .journey-chapter .journey-inner { gap:20px; }
  .journey-switch { padding-inline:0; gap:0 12px; }
  .journey-switch button {font-size:12px}
}
@media(prefers-reduced-motion:no-preference){
  .journey-folio::after {transition:transform .24s ease-out}
  .journey-product.journey-arrived { animation:journey-arrival .42s cubic-bezier(.2,.75,.3,1) both; }
  @keyframes journey-arrival {from{opacity:.83;transform:translateY(7px)}to{opacity:1;transform:none}}
}

/* Return to the coast after the last handoff. Keep the horizon clear of copy. */
.journey-off-duty {
  position:relative;
  isolation:isolate;
  display:grid;
  align-items:end;
  width:100%;
  min-height:clamp(390px,39vw,640px);
  margin:0;
  overflow:hidden;
  background:#252720;
  color:#fffaf0;
}
.journey-off-duty picture,.journey-off-duty::after {
  position:absolute;
  inset:0;
  z-index:-1;
}
.journey-off-duty picture img {
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:50% 55%;
}
.journey-off-duty::after {
  content:"";
  background:linear-gradient(0deg,rgba(17,18,14,.90) 0%,rgba(17,18,14,.53) 29%,transparent 70%);
}
.journey-off-duty figcaption {
  width:min(88%,1190px);
  margin:0 auto;
  padding:clamp(28px,4.4vw,68px) 0;
}
.journey-off-duty h3 {
  max-width:18ch;
  margin:0;
  font:400 clamp(36px,4.3vw,70px)/1.02 Ivar,Georgia,serif;
  letter-spacing:-.045em;
  color:inherit;
  text-wrap:balance;
}
.journey-off-duty p {
  max-width:46ch;
  margin:14px 0 0;
  font:400 clamp(15px,1.1vw,18px)/1.55 Inter,Arial,sans-serif;
  color:#f3eee3;
  text-wrap:pretty;
}
@media (max-width:650px) {
  .journey-off-duty {min-height:clamp(360px,110vw,500px);}
  .journey-off-duty::after {background:linear-gradient(0deg,rgba(17,18,14,.93),rgba(17,18,14,.58) 37%,transparent 76%);}
}

.journey-contents .journey-workspace-link { display:inline-flex; flex-direction:row; align-items:center; gap:.6em; min-height:44px; color:#dfcfb5; }
.journey-contents .journey-workspace-link::before { content:none; }
