.format-study { --format-line: #c8c8c8; }
.format-header { margin-bottom:clamp(26px,4vw,55px); }
.format-header h2 { font-size:clamp(2rem,5.05vw,5rem); line-height:1.02; letter-spacing:-.063em; font-weight:560; }
.format-header > p:last-child { margin-top:14px; max-width:58ch; font-size:clamp(1rem,1.6vw,1.25rem); }
.format-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,2.25fr) minmax(0,1fr); column-gap:clamp(18px,3vw,48px); align-items:center; }
.format-premise,.format-route { display:grid; gap:clamp(18px,2vw,36px); }
.format-layout [data-time] { position:relative; display:grid; gap:6px; color:inherit; text-align:left; font:inherit; background:none; border:0; border-top:1px solid var(--format-line); padding:12px 0 0; cursor:pointer; min-width:0; }
.format-layout [data-time]::before { content:""; position:absolute; inset:-1px 0 auto; height:1px; background:#111; transform:scaleX(0); transform-origin:left; transition:transform .33s ease; }
.format-layout [aria-current]::before { transform:scaleX(1); }
.format-layout [data-time] small { color:#555; font-size:.72rem; letter-spacing:.045em; text-transform:uppercase; }
.format-layout [data-time] strong,.format-film figcaption strong { font-size:clamp(1.1rem,2.05vw,1.9rem); letter-spacing:-.04em; line-height:1.06; }
.format-layout [data-time] span,.format-film figcaption span { font-size:clamp(.86rem,1.24vw,1.06rem); line-height:1.42; }
.format-film { margin:0; min-width:0; }
.format-screen { position:relative; overflow:hidden; --format-frame-radius:14px; border-radius:var(--format-frame-radius); background:#151515; }
.format-screen video { display:block; width:100%; aspect-ratio:16/9; object-fit:cover; }
.format-film figcaption { display:grid; gap:6px; padding-top:13px; text-align:center; }
.format-sound { position:absolute; inset:auto 0 0 auto; display:grid; place-items:center; background:transparent; border:0; color:#fff; width:44px; height:44px; cursor:pointer; }
.format-sound[aria-pressed="false"] .format-unmuted,.format-sound[aria-pressed="true"] .format-muted { display:none; }
.format-destination { grid-column:1/-1; display:grid; grid-template-columns:auto minmax(12px,1fr) auto minmax(12px,1fr) auto; align-items:center; gap:clamp(6px,1.5vw,20px); border-top:1px solid var(--format-line); margin-top:clamp(24px,4vw,48px); padding-top:15px; font-size:clamp(.72rem,1.5vw,1.25rem); font-weight:600; }
.format-destination i { position:relative; height:1px; }
.format-destination i::before { content:""; position:absolute; inset:0; background:#111; transform:scaleX(var(--arrow-progress, 0)); transform-origin:left; }
.format-destination i::after { content:""; position:absolute; left:calc(var(--arrow-progress, 0) * 100%); top:-2px; width:5px; height:5px; border-top:1px solid #111; border-right:1px solid #111; transform:translateX(-85%) rotate(45deg); opacity:0; }
.format-destination span:last-child { display:flex; align-items:center; gap:7px; }
.format-destination img { width:clamp(18px,2.1vw,34px); height:auto; }
@media(max-width:730px) {
  .format-layout { grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px 14px; }
  .format-film { grid-column:1/-1; }
  .format-premise,.format-route { display:contents; }
  .format-destination { margin-top:0; }
}
@media(prefers-reduced-motion:reduce) {
  .format-layout [data-time]::before,.format-destination i::before { transition:none; }
}
@media(min-width:731px) {
  .format-layout { --format-gap:clamp(18px,3vw,48px); column-gap:var(--format-gap); }
  .format-layout [data-time]::after { content:""; position:absolute; top:-1px; width:var(--format-gap); border-top:1px solid var(--format-line); }
  .format-premise [data-time]::after { left:100%; }
  .format-route [data-time]::after { right:100%; }
  .format-layout [aria-current]::after { border-color:#111; }
}
@media(max-width:730px) {
  .format-film { grid-row:1; }
  .format-destination span:last-child img { flex:none; }
}
.format-header { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr); gap:16px clamp(28px,6vw,96px); align-items:start; padding-bottom:clamp(20px,2.5vw,38px); border-bottom:1px solid var(--format-line); }
.format-header > p:last-child { margin:0; max-width:37ch; justify-self:end; }
.format-layout { --format-gap:clamp(24px,4vw,64px); column-gap:var(--format-gap); align-items:start; }
.format-film figcaption { gap:8px; padding-top:20px; }
.format-premise,.format-route { align-self:stretch; grid-template-rows:repeat(2,auto); align-content:space-evenly; gap:24px; }
.format-layout [data-time] { gap:9px; padding:15px 0 0; }
.format-layout [data-time] span { max-width:27ch; }
.format-destination { margin-top:clamp(32px,5vw,64px); padding:18px 0; border-bottom:1px solid var(--format-line); }
.format-destination img { width:clamp(24px,3.2vw,48px); flex:none; }
@media(min-width:851px) {
  .format-film { grid-column:2; grid-row:1; }
  .format-premise { grid-column:1; grid-row:1; text-align:right; }
  .format-route { grid-column:3; grid-row:1; }
  .format-premise [data-time] { text-align:right; justify-items:end; }
  .format-premise [data-time]::before { transform-origin:right; }
  .format-layout [data-time]::after {
    width:calc(var(--format-gap) - 9px);
    border:0; height:7px; top:-4px;
    background:linear-gradient(var(--format-line),var(--format-line)) center/100% 1px no-repeat,
      radial-gradient(circle,var(--format-line) 2px,transparent 2.5px) var(--format-dot) center/7px 7px no-repeat;
  }
  .format-premise [data-time] { --format-dot:right; }
  .format-route [data-time] { --format-dot:left; }
  .format-layout [aria-current]::after {
    background:linear-gradient(#111,#111) center/100% 1px no-repeat,
      radial-gradient(circle,#111 2px,transparent 2.5px) var(--format-dot) center/7px 7px no-repeat;
  }
}
@media(max-width:850px) {
  .format-layout { grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px clamp(16px,4vw,36px); }
  .format-film { grid-column:1/-1; grid-row:1; }
  .format-premise,.format-route { display:grid; grid-template-rows:subgrid; grid-row:2/span 2; align-content:normal; }
  .format-premise { grid-column:1; }
  .format-route { grid-column:2; }
  .format-layout [data-time]::after { display:none; }
  .format-destination { margin-top:4px; }
}
@media(max-width:740px) {
  .format-header { grid-template-columns:1fr; gap:12px; }
  .format-header > p:last-child { justify-self:start; max-width:58ch; }
}
@media(max-width:575px) {
  .format-layout [data-time] { gap:7px; }
  .format-destination { gap:7px; }
  .format-destination span:last-child { gap:3px; }
}

.format-trace {
  position:absolute;
  inset:8px;
  width:calc(100% - 16px);
  height:calc(100% - 16px);
  z-index:1;
  pointer-events:none;
}
.format-trace rect {
  x:1px; y:1px; width:calc(100% - 2px); height:calc(100% - 2px); rx:7px;
  fill:none; stroke:#fff; stroke-width:2px;
  stroke-dasharray:100; stroke-dashoffset:100;
}
.format-sound { z-index:2; }
@media(min-width:851px) {
  .format-layout [data-time]::after {
    background:linear-gradient(#111,#111) var(--format-dot) center/0 1px no-repeat,
      radial-gradient(circle,var(--format-line) 2px,transparent 2.5px) var(--format-dot) center/7px 7px no-repeat,
      linear-gradient(var(--format-line),var(--format-line)) center/100% 1px no-repeat;
    transition:background-size .4s ease;
  }
  .format-layout [aria-current]::after { background-size:100% 1px,7px 7px,100% 1px; }
  .format-layout [data-time]::before { transition-delay:0s; }
  .format-layout [aria-current]::before { transition-delay:.26s; }
}
@media(prefers-reduced-motion:reduce) {
  .format-layout [data-time]::before,.format-layout [data-time]::after { transition:none; }

}

#defining-format .format-sound,
#defining-format .format-sound svg {
  color:#fff !important;
  mix-blend-mode:normal;
}
#defining-format .format-sound svg { stroke:#fff; }
.format-layout { position:relative; }
.format-signal { position:absolute; inset:0; width:100%; height:100%; overflow:visible; pointer-events:none; }
.format-signal path { fill:none; stroke:#111; stroke-width:1.5; stroke-dasharray:100; stroke-dashoffset:100; }
.format-signal circle { fill:#111; opacity:0; }
.format-film { position:relative; }
.format-signal-caption {
  display:flex; align-items:center; justify-content:center; gap:8px;
  width:max-content; max-width:100%; margin:14px auto 0; padding:6px 10px;
  color:#fff; background:#111; font-size:.75rem; line-height:1.2;
}
.format-signal-caption i { width:5px; height:5px; flex:none; border-radius:50%; background:#fff; }
.format-signal-caption.is-changing span { animation:format-caption-in .36s ease-out both; }
@keyframes format-caption-in { from { opacity:0; transform:translateY(4px); } }
.format-layout [data-time] strong { transition:transform .35s ease; }
.format-layout [aria-current] strong { transform:translateY(-2px); }
@media(min-width:851px) {
  .format-layout [data-time]::after { display:none; }
}
@media(max-width:850px) {
  .format-signal path { stroke-width:1; }
}
@media(prefers-reduced-motion:reduce) {
  .format-signal path,.format-screen[data-format-started] .format-trace rect { stroke-dashoffset:0; }
  .format-signal circle { opacity:1; }
  .format-signal-caption.is-changing span { animation:none; }
  .format-layout [aria-current] strong { transform:none; transition:none; }
}

.format-trace { inset:0; width:100%; height:100%; z-index:3; }
.format-trace rect { x:1.5px; y:1.5px; width:calc(100% - 3px); height:calc(100% - 3px); rx:calc(var(--format-frame-radius) - 1.5px); stroke:#111; stroke-width:3px; }
#defining-format .format-screen video { transform-origin:47% 32%; }
.format-reticle {
  position:absolute; z-index:2; left:50%; top:0; width:19%; aspect-ratio:1;
  opacity:0; pointer-events:none; color:#fff;
  background:
    linear-gradient(currentColor,currentColor) left top/22% 2px,
    linear-gradient(currentColor,currentColor) left top/2px 22%,
    linear-gradient(currentColor,currentColor) right top/22% 2px,
    linear-gradient(currentColor,currentColor) right top/2px 22%,
    linear-gradient(currentColor,currentColor) left bottom/22% 2px,
    linear-gradient(currentColor,currentColor) left bottom/2px 22%,
    linear-gradient(currentColor,currentColor) right bottom/22% 2px,
    linear-gradient(currentColor,currentColor) right bottom/2px 22%;
  background-repeat:no-repeat;
}
#defining-format .format-sound { z-index:4; }
.format-arrival { offset-anchor:center; }
@media(prefers-reduced-motion:reduce) {
  .format-signal .format-arrival { opacity:0; }
}

.format-mobile-cues { display:none; }
#defining-format .format-layout [data-time]::before { display:none; }
#defining-format .format-layout [data-time] { color:#666; transition:color .18s linear; }
#defining-format .format-layout [data-time] small { color:inherit; }
#defining-format .format-layout [data-time].is-connected { color:#111; }
.format-signal path { stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
@media(max-width:850px) {
  .format-mobile-cues { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; margin-top:28px; }
  .format-mobile-cues button { color:#666; border:0; border-top:1px solid var(--format-line); background:transparent; padding:10px 0 8px; min-height:44px; font-size:clamp(.59rem,2.5vw,.88rem); font-weight:650; cursor:pointer; }
  .format-mobile-cues .is-connected { color:#111; background:#f0f0ed; }
  .format-mobile-cues :focus-visible { outline:2px solid #111; outline-offset:2px; }
  .format-film figcaption { padding-top:12px; }
  .format-signal { z-index:1; }
}
@media(prefers-reduced-motion:reduce) {
  #defining-format .format-layout [data-time], .format-mobile-cues button { color:#111; transition:none; }
}

/* The guide and animated stroke share the same centerline and width. */
#defining-format .format-layout [data-time] { border-top:0; }
.format-signal .format-rule { stroke:#b7b7b7; stroke-width:1.6; }
.format-destination { color:#666; }
.format-destination img { opacity:.58; }
.format-destination i.is-drawing::after { opacity:1; }
.format-destination span.is-connected { color:#111; }
.format-destination .is-connected img { opacity:1; }
@media(max-width:850px) {
  .format-layout { grid-template-columns:minmax(0,1fr); row-gap:18px; }
  .format-premise,.format-route { grid-row:auto; grid-column:1; grid-template-rows:auto; gap:18px; padding-left:24px; }
  .format-layout [data-time] { width:100%; }
  .format-layout [data-time] span { max-width:48ch; }
  .format-signal-caption { margin-bottom:12px; }
  .format-destination { grid-column:1; grid-row:2; margin-inline:24px 0; margin-top:0; }
}

@media(max-width:850px) {
  .format-film figcaption { padding-inline:32px; }
  .format-film figcaption span { max-width:38ch; margin-inline:auto; text-wrap:balance; }
}

/* Crop the footage inside the frame while keeping its controls fixed. */
#defining-format .format-screen video {
  scale:1.15;
}
