/* "The whole trip. Thought through." The morning in Tokyo leads, with nothing on top of it.
   The passport, key and wallet are small details in a quiet caption row underneath, each beside its words. */
.tw { width:min(100%,1120px); margin:0 auto; padding:clamp(88px,12svh,128px) 40px; color:#292530; font-family:Manrope,sans-serif; }
.tw-head { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,380px); align-items:end; gap:24px 48px; }
html[data-awaya-theme] body .tw h2 { margin:0; color:inherit; font-size:clamp(36px,3.6vw,50px); font-weight:600; line-height:1.1; letter-spacing:-.035em; text-align:left; }
html[data-awaya-theme] body .tw-head p { margin:0; color:#514959; font-size:16px; line-height:1.6; text-align:left; }

.tw-scene { position:relative; height:clamp(320px,50svh,440px); margin-top:32px; }
.tw-photo { display:block; width:100%; height:100%; object-fit:cover; object-position:center 50%; border-radius:20px; box-shadow:0 26px 52px -30px rgba(44,31,55,.4); }
.tw-tag { position:absolute; top:22px; right:26px; color:#fff; font-size:clamp(20px,1.9vw,26px); font-weight:600; line-height:1.08; letter-spacing:-.025em; text-align:right; text-shadow:0 2px 14px rgba(10,20,40,.55); }

.tw-stops { position:relative; isolation:isolate; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px 32px; margin:26px 0 0; padding:0; list-style:none; }
.tw-stops li { display:flex; align-items:center; gap:12px; }
.tw-icon { display:block; flex:none; width:56px; height:56px; filter:drop-shadow(0 7px 9px rgba(44,31,55,.17)); }
html[data-awaya-theme] body .tw h3 { margin:0; color:inherit; font-size:16px; font-weight:650; line-height:1.4; letter-spacing:-.01em; text-align:left; }
html[data-awaya-theme] body .tw-words p { margin:2px 0 0; color:#68616f; font-size:14px; line-height:1.5; text-align:left; text-wrap:balance; }

/* One moment, in reading order: the photo settles, then each stop arrives. */
.tw-photo { transition:opacity .9s ease, transform 1.2s cubic-bezier(.16,1,.3,1); }
.tw-tag { transition:opacity .8s ease .5s; }
.tw-icon { transition:opacity .5s ease, transform .8s cubic-bezier(.16,1,.3,1); }
.tw-words { transition:filter .75s cubic-bezier(.16,1,.3,1), opacity .75s cubic-bezier(.16,1,.3,1); }
.tw-stops li:nth-child(1) > * { transition-delay:.2s; }
.tw-stops li:nth-child(2) > * { transition-delay:.55s; }
.tw-stops li:nth-child(3) > * { transition-delay:.9s; }
.tw.is-before .tw-photo { opacity:0; transform:scale(.985); }
.tw.is-before .tw-tag { opacity:0; }
.tw.is-before .tw-icon { opacity:0; transform:translateY(8px) scale(.82); }
.tw.is-before .tw-words { filter:blur(5px); opacity:.25; }

/* Stacked: heading, photo, then the stops threaded on a dotted line down the side. */
@media (max-width:860px) {
  .tw { padding:72px 20px; }
  .tw-head { grid-template-columns:minmax(0,1fr); gap:14px; }
  .tw-scene { height:auto; aspect-ratio:4 / 3; margin-top:26px; }
  .tw-photo { object-position:68% 50%; }
  .tw-tag { top:14px; right:16px; font-size:20px; }
  .tw-stops { grid-template-columns:minmax(0,1fr); gap:6px; margin-top:22px; }
  .tw-stops::before { content:""; position:absolute; z-index:-1; left:27px; top:28px; bottom:28px; border-left:2px dotted #a89fb3; clip-path:inset(0 -4px 0 -4px); transition:clip-path 1.1s cubic-bezier(.45,.05,.3,1) .25s; }
  .tw.is-before .tw-stops::before { clip-path:inset(0 -4px 100% -4px); }
}
@media (max-width:360px) {
  html[data-awaya-theme] body .tw h2 { font-size:30px; }
}

/* On a phone the head is centred like the sections around it, the morning runs edge to edge as a whole picture,
   and the three stops sit as a centred block, each still reading beside its icon. */
@media (max-width:760px) {
  .tw-head { justify-items:center; text-align:center; }
  html[data-awaya-theme] body .tw h2,
  html[data-awaya-theme] body .tw-head p { text-align:center; }
  html[data-awaya-theme] body .tw-head p { max-width:30em; text-wrap:balance; }
  .tw-scene { margin:28px -20px 0; aspect-ratio:5 / 4; }
  .tw-photo { border-radius:0; box-shadow:none; }
  .tw-tag { top:18px; right:20px; }
  .tw-stops { width:fit-content; max-width:100%; margin:28px auto 0; }
}
@media (prefers-reduced-motion:reduce) {
  .tw *, .tw *::before, .tw *::after { transition:none !important; }
}
