/* Screen 4, You set the tone. White rises out of the Dictation's lilac on a hill whose crest
   stands under the five (rim-w: crest x 1000, 222 deep), so the copy stands on its left slope,
   86 under the arc at x 110. The five stand high, their heads above the headline's top line,
   on one ground that runs off the window's right edge about level with "tone.". Under them
   only the picked one's panel takes room, so the five and the whole panel fit a 1728 x 1000
   window with the section's top at the window's top; the white runs on max(72px, 104u) under
   the card's lowest corner, then Time back's rim. The board is the canvas's 1440 (u: one
   design px), centred wider than that. The first row (182) reaches just past the five's names,
   so the panel starts under them, as far under as before the five rose.
   Wider than 1440 the board keeps to the centred 1440 box, but the five spread into the
   window's right margin (Aida, 24 Nov: "they should have some space in between them"): each
   stands --i times --way-spread further right, three quarters of that margin over the four
   steps, so the last keeps clear of the window's edge. Up to 1440 it is 0 and the board
   scales as drawn. In the cast's svg a px is one of its units, which is one css px here
   (--u is 1px wider than 1440). Registered, so the scripts read it in px (js/way-spread.js). */
@property --way-spread { syntax: "<length>"; inherits: true; initial-value: 0px; }
.your-way { background: var(--paper); margin-top: -1px; --way-spread: calc(max(0px, (100vw - 1440px) / 2) * 0.75 / 4); }
.way-board {
  position: relative; width: calc(1440 * var(--u)); margin: 0 auto;
  display: grid; grid-template-columns: calc(450 * var(--u)) calc(700 * var(--u)); grid-template-rows: calc(182 * var(--u)) auto;
  column-gap: calc(110 * var(--u));
  padding: calc(38 * var(--u)) calc(100 * var(--u)) max(72px, calc(104 * var(--u))) calc(80 * var(--u));
}

/* The copy: x 80, the page's left column (the hero's and the Dictation's headlines), 38 under
   the strip; the panel keeps to x 640 under the five. The headline and the line under
   it break as the canvas has them ("You set the / tone.", "... the way you want / it to, every time."):
   plain wrapping, not the site's balanced headlines. */
.way-head { grid-area: 1 / 1 / 3 / 2; align-self: start; }
.way-head h2 { line-height: 0.98; text-wrap: wrap; }
.way-mid { margin-top: 22px; font-size: clamp(24px, calc(30 * var(--u)), 30px); line-height: 1.25; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); text-wrap: wrap; }
.way-small { margin-top: 18px; font-size: var(--fs-body); line-height: 1.55; text-wrap: pretty; }
.way-em { margin-top: 16px; font-size: var(--fs-body); line-height: 1.45; font-weight: 700; color: var(--ink); text-wrap: pretty; }

/* The stage: the board from (600, 40), 840 by 256 (the cast's viewBox); its ground runs on past it, off the window.
   Its top overhangs the board's top into the rim's white (the same paper), 240 higher than the
   canvas drew it; the hop's apex keeps 60 px or more under the rim's horizon. */
.way-stage { position: absolute; left: calc(600 * var(--u)); top: calc(-112 * var(--u)); width: calc(840 * var(--u)); height: calc(256 * var(--u)); }
.way-cast { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.way-cast-phone, .way-name { display: none; }
.way-spot { transform-box: fill-box; transform-origin: 50% 100%; transform: scale(0); }
.way-spot.is-on { transform: none; }
/* The echo draws itself round from 3 o'clock; its round caps close the ring where it starts and ends. */
.way-echo { stroke-dasharray: 1 1; stroke-dashoffset: 1; opacity: 0; }
.way-echo.is-on { stroke-dashoffset: 0; opacity: 1; }
.way-trail circle { fill: var(--sky); }
.way-cast-phone .way-dot { transform-box: fill-box; transform-origin: center; }
.way-fig, .way-spot, .way-echo { translate: calc(var(--i) * var(--way-spread)) 0; }
.way-fig { transition: translate 0.22s cubic-bezier(0.2, 0.7, 0.2, 1); }
.way-fig.is-lift { translate: calc(var(--i) * var(--way-spread)) -6px; }

/* Each tab covers its person, from over their props (the board's y 20; the Lawyer's bubbles top out
   at 46) to their name under the ground: the name's 44 px line is centred on the board's y 318, 38
   under the ground, at any width. */
.way-tabs { position: absolute; inset: 0; pointer-events: none; }
.way-tab {
  position: absolute; top: calc(-20 * var(--u)); left: calc((var(--x) - 670) * var(--u) + var(--i) * var(--way-spread));
  width: calc(140 * var(--u)); height: calc(298 * var(--u) + 22px); padding: 0;
  display: flex; align-items: flex-end; justify-content: center;
  border-radius: 18px; cursor: pointer; pointer-events: auto; text-decoration: none;
}
.way-tab .bust { display: none; }
.tab-name {
  display: block; height: 44px; font-size: 17px; line-height: 44px; font-weight: 600; color: var(--body); white-space: nowrap;
  text-decoration-thickness: 2px; text-underline-offset: 9px;
}
.way-tab:hover .tab-name { color: var(--ink); }
/* Picked (the first without JavaScript): the name in ink, underlined. */
.way-tab[aria-selected="true"] .tab-name, html:not(.js) .way-tab:first-child .tab-name { color: var(--ink); text-decoration-line: underline; }

/* ---------------------------------------------------------------- the panel
   Under the five at x 640 (the board's y 372). Only the picked one is laid out, so the white
   under it is always the same; a pick animates the room's height (js/cast-stage.js). */
.way-panels { grid-area: 2 / 2; }
.js .way-panel:not(.is-on) { display: none; }
.way-panel:focus-visible { outline-offset: 8px; }
.js .way-role { display: none; }
.way-role, .way-lbl { font-size: 13px; line-height: 1.3; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--body); }
.way-role { margin-bottom: 14px; color: var(--ink); }
.way-kind { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.way-chip { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--lilac); color: var(--plum); font-size: 14px; font-weight: 700; }
.way-setup { font-size: clamp(16px, calc(18 * var(--u)), 18px); line-height: 1.4; font-weight: 600; color: var(--plum); text-wrap: pretty; }
.way-in { margin-top: 22px; max-width: calc(560 * var(--u)); }
.way-said { margin-top: 10px; font-size: clamp(18px, calc(21 * var(--u)), 21px); line-height: 1.5; color: var(--plum); text-wrap: pretty; }
.way-talk { margin-top: 8px; font-size: clamp(24px, calc(30 * var(--u)), 30px); line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.way-meta { margin-top: 6px; display: flex; align-items: center; gap: 8px; font-size: 15px; line-height: 1.4; color: var(--body); }
.way-rec { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--sky); }
/* What Murmur writes: a cream card, 56 in and turned a little. Its margin-bottom is how far its
   lowest corner falls below its box (322u times sin 1.5deg), so the white foot is measured from that corner. */
.way-card {
  position: relative; left: calc(56 * var(--u)); width: calc(644 * var(--u)); margin: 26px 0 calc(8.43 * var(--u));
  padding: 24px 30px 28px; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-card);
  transform: rotate(-1.5deg);
}
.way-card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.way-eg { font-size: 13px; line-height: 1.3; color: var(--body); }
.way-cuts { margin-top: 14px; font-size: clamp(22px, calc(30 * var(--u)), 30px); line-height: 1.35; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
/* Light's cuts: struck in Plum with a drawn bar, so the stroke can be drawn in motion. */
.way-cut { position: relative; color: var(--plum); opacity: 0.5; text-decoration: none; }
.way-bar { position: absolute; left: -0.04em; right: -0.04em; top: 55%; height: 3px; border-radius: 2px; background: var(--plum); transform-origin: 0 50%; }
.way-prose { margin-top: 14px; font-size: clamp(18px, calc(22 * var(--u)), 22px); line-height: 1.45; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); text-wrap: pretty; }
.way-prose + .way-prose { margin-top: 12px; }
.way-note-h { margin-top: 14px; font-size: clamp(20px, calc(24 * var(--u)), 24px); line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.way-items { margin-top: 12px; display: flex; flex-direction: column; gap: 12px; }
.way-items p { font-size: clamp(16px, calc(18 * var(--u)), 18px); line-height: 1.5; color: var(--ink); text-wrap: pretty; }
.way-items b { font-weight: 700; }

/* No JavaScript: the five panels in a third row across both columns, each led by its name. */
html:not(.js) .way-panels {
  grid-area: 3 / 1 / 4 / 3; display: grid; grid-template-columns: repeat(auto-fill, minmax(max(300px, calc(380 * var(--u))), 1fr));
  gap: calc(48 * var(--u)) calc(56 * var(--u)); margin-top: calc(48 * var(--u));
}
/* Its own width: the corner falls 1.309% of it (sin 1.5deg / 2). */
html:not(.js) .way-card { left: 0; width: auto; margin-bottom: 1.309%; }

/* ---------------------------------------------------------------- phone */
@media (max-width: 1023.98px) {
  .way-board { display: flex; flex-direction: column; width: auto; padding: 32px var(--m) 48px; }
  .way-head { align-self: stretch; }
  .way-head h2 { line-height: 1; text-wrap: balance; }
  .way-mid { margin-top: 14px; font-size: 22px; text-wrap: balance; }
  .way-small { margin-top: 12px; font-size: 15px; }
  .way-em { margin-top: 10px; font-size: 15px; }
  .way-stage { position: relative; left: auto; top: auto; width: auto; height: auto; display: flex; flex-direction: column; margin-top: 24px; }
  .way-cast { display: none; }
  .way-tabs { position: static; order: -1; display: flex; justify-content: space-between; max-width: 408px; margin: 0 -4px; pointer-events: auto; }
  .way-tab { position: relative; top: auto; left: auto; width: 56px; height: 60px; display: grid; place-items: center; border-radius: 30px; }
  .way-tab .bust { display: block; width: 54px; height: 60px; overflow: visible; }
  .bust-ring { stroke: transparent; stroke-width: 2.5; }
  .way-tab[aria-selected="true"] .bust-ring, html:not(.js) .way-tab:first-child .bust-ring { stroke: var(--blue); }
  .tab-name { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .way-cast-phone { display: block; width: 100%; max-width: 400px; height: auto; margin-top: 4px; overflow: visible; }
  .way-pfig { display: none; }
  .way-pfig.is-on { display: inline; }
  .way-name { display: block; margin-top: 10px; font-size: 15px; line-height: 1.4; font-weight: 700; color: var(--ink); }
  html:not(.js) .way-name { display: none; }
  .way-panels { max-width: 640px; margin-top: 20px; }
  .way-in { max-width: none; }
  .way-said { font-size: 18px; }
  .way-talk { font-size: 24px; }
  .way-card { left: 0; width: auto; margin: 20px 0 1.309%; padding: 18px 20px 22px; }
  .way-cuts { font-size: 22px; }
  .way-bar { height: 2px; }
  .way-prose { font-size: 18px; }
  .way-note-h { font-size: 20px; }
  .way-items p { font-size: 16px; }
  html:not(.js) .way-panels { display: flex; flex-direction: column; gap: 40px; margin-top: 28px; }
}

/* ---------------------------------------------------------------- motion */
/* Before the dot first arrives: no spotlight, no echo, no dot. The Founder's cuts stay struck
   as drawn (what Murmur writes is never shown with the ums kept); they strike again as the dot
   arrives, from ink (js/cast-stage.js). While the travelling dot is on but not lent here, this
   screen's own dot (and the trail of its hops) steps aside. */
.your-way.is-away .way-cast .way-dot, .your-way.is-away .way-trail { visibility: hidden; }
.motion .your-way.is-pre .way-dot { opacity: 0; }
.motion .your-way.is-pre .way-spot.is-on { transform: scale(0); }
.motion .your-way.is-pre .way-echo.is-on { stroke-dashoffset: 1; }
.motion .way-spot { transition: transform 0.46s cubic-bezier(0.2, 0.8, 0.2, 1); }
.motion .way-spot.is-on { transition-delay: 0.26s; }
.motion .way-echo { transition: opacity 0.2s ease; }
.motion .way-echo.is-on { transition: stroke-dashoffset 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.6s; }
/* A pick: the room under the five takes the new panel's height. */
.motion .way-panels.is-sizing { transition: height 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
