/* v3 sketch: the story page. Site tokens from preorder-v5.css. One accent, the warm tan. Big type, full-bleed pictures,
   one idea per screen. */
:root { --tan: #c9a48f; --ink2: #0f0f0f; }
html { scroll-snap-type: none !important; }
main > section[class^="y-"] { height: auto !important; min-height: 0 !important; padding: 0 !important; overflow: visible !important; display: block !important; position: relative; background: var(--ink); color: var(--bone); }
.y-wrap { max-width: 1440px; margin: 0 auto; padding: 0 calc(var(--gutter) + var(--stripe)) 0 var(--gutter); }
.y-k { margin: 0; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--tan); }
br.d { display: none; } @media (min-width: 900px) { br.d { display: inline; } }

/* hero: one plain line saying what it is (added under Figma's headline) */
.hero .what { position: absolute; left: 0; top: calc(236 * var(--fu)); width: calc(430 * var(--fu)); margin: 0; font-size: calc(19 * var(--fu)); line-height: 1.4; color: rgba(238,234,226,.88); }
@media (max-width: 899px) { .hero .what { left: 0; top: calc(140 * var(--pu)); width: calc(290 * var(--pu)); font-size: calc(13.5 * var(--pu)); } }

/* 2. ten sensors, knitted in: three moments. Each starts as the full photo, the view closes in on the part that matters,
   the thread and its sensors light up with a pulse running along it, and one line on the side says what the suit reads */
main > section.y-sensor { height: 600svh !important; background: #0b0b0b !important; }
.y-sensor .y-pin { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.y-shead { position: absolute; z-index: 3; left: var(--gutter); top: 28px; margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(22px, 2vw, 30px); letter-spacing: -.01em; color: var(--bone); }
/* one canvas draws the photo and the light: the photo is decoded once and drawn at screen size every frame, so it never
   re-tiles while the view closes in. The beats above it only hold the words and the darkening for them */
.y-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.y-beat { position: absolute; inset: 0; opacity: var(--o, 0); pointer-events: none; }
/* the darkening keeps the photo's grade and gives the words a dark side */
.y-beat::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(11,11,11,0) 45%, rgba(11,11,11,.8) 72%); opacity: var(--z, 0); }
.y-bcopy { position: absolute; z-index: 2; left: 64%; right: calc(var(--gutter) + var(--stripe)); top: 50%; transform: translateY(calc(-50% + (1 - var(--t, 0)) * 20px)); opacity: var(--t, 0); }
/* the boxer's arm runs to the right edge, so his words sit low on the left over his back */
.y-low::after { background: linear-gradient(0deg, rgba(11,11,11,.85) 0%, rgba(11,11,11,0) 45%); }
.y-low .y-bcopy { left: var(--gutter); right: auto; top: auto; bottom: 12svh; transform: translateY(calc((1 - var(--t, 0)) * 20px)); }
.y-low .y-bl { max-width: 20ch; }
@media (min-width: 900px) {
  .y-left::after { background: linear-gradient(90deg, rgba(11,11,11,.8) 0%, rgba(11,11,11,0) 40%); }
  .y-left .y-bcopy { left: var(--gutter); right: auto; max-width: 26%; }
}
.y-bl { margin: 16px 0 0; max-width: 16ch; font-family: var(--display); font-weight: 500; font-size: clamp(34px, 3.6vw, 64px); line-height: 1; letter-spacing: -.02em; }

/* 3. the problem, then the reveal, on one held screen: two lines grow in over a darkening photo, then the footage and the suit's body take over */
main > section.y-see { height: 380svh !important; background: #0b0b0b !important; }
.y-see .y-pin { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.y-act { position: absolute; inset: 0; }
.y-a1 { display: grid; align-items: center; opacity: calc(1 - max(0, min(1, (var(--p, 0) - .46) * 7))); }
.y-a2 { display: grid; grid-template-columns: 1fr 1fr; opacity: max(0, min(1, (var(--p, 0) - .5) * 7)); }
.y-see .y-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: scale(calc(1.06 + var(--p, 0) * .12)); filter: brightness(calc(.62 - var(--p, 0) * .5)) saturate(.7); }
.y-see .y-lines { position: relative; padding: 0 var(--gutter); max-width: 1440px; margin: 0 auto; width: 100%; }
.y-l1, .y-l2 { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(48px, 9vw, 168px); line-height: .9; letter-spacing: -.025em; }
.y-l1 { opacity: calc(var(--p, 0) * 7); transform: translateY(calc((1 - min(1, var(--p, 0) * 7)) * 30px)); }
.y-l2 { opacity: calc((var(--p, 0) - .1) * 7); transform: translateY(calc((1 - max(0, min(1, (var(--p, 0) - .1) * 7))) * 30px)); }
.y-l3 { margin: 4vh 0 0; max-width: 46ch; font-size: clamp(17px, 1.5vw, 24px); line-height: 1.4; color: rgba(238,234,226,.8); opacity: calc((var(--p, 0) - .22) * 7); }
.y-now { opacity: max(0, min(1, (var(--p, 0) - .56) * 7)); }
.y-pane { position: relative; overflow: hidden; }
.y-pane video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.y-film video { filter: saturate(.85) contrast(1.04); }
.y-suit { background: #141414; border-left: 1px solid rgba(238,234,226,.08); }
.y-suit video { object-fit: contain; object-position: 50% 100%; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 30%, #000 70%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 30%, #000 70%, transparent 100%); }
.y-cap { position: absolute; left: 24px; bottom: 22px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: rgba(238,234,226,.7); }
.y-now { position: absolute; left: 50%; top: 9svh; transform: translateX(-50%); margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(44px, 6.4vw, 120px); line-height: 1; letter-spacing: -.02em; white-space: nowrap; text-shadow: 0 2px 40px rgba(0,0,0,.6); }
.y-tag { position: absolute; left: 50%; bottom: 64px; transform: translateX(-50%); margin: 0; padding: 8px 14px; border-radius: 99px; background: rgba(20,20,20,.7); backdrop-filter: blur(6px); font-size: 12.5px; color: var(--slate); white-space: nowrap; }

/* 4. what it is */
main > section.y-what { padding: clamp(96px, 14vh, 160px) 0 !important; }
.y-what h2 { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(40px, 5.6vw, 96px); line-height: .95; letter-spacing: -.02em; }
.y-what h2 span { color: var(--slate); }
.y-parts { margin-top: clamp(48px, 8vh, 96px); display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; }
.y-part { margin: 0; }
.y-art { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #101010; border-radius: 4px; }
.y-art-suit img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; transform: scale(1.5); }
.y-art-unit { display: grid; place-items: center; background: radial-gradient(60% 50% at 50% 45%, #2a2a2a 0%, #101010 70%); }
.y-art-unit img { width: 34%; filter: drop-shadow(0 30px 40px rgba(0,0,0,.6)); }
.y-art-app { display: grid; place-items: center; background: radial-gradient(60% 50% at 50% 45%, #1e1e1e 0%, #101010 70%); }
.y-part figcaption { margin-top: 18px; }
.y-part b { display: block; font-family: var(--display); font-weight: 500; font-size: clamp(24px, 2vw, 32px); }
.y-part span { display: block; margin-top: 6px; color: var(--slate); font-size: 16px; }

/* the app screen (screens.js fills it): phone glass, body, one number, bars */
.app-screen { position: relative; aspect-ratio: 9 / 19; border-radius: 44px; border: 1px solid rgba(238,234,226,.18); background: #141414; overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 50px 100px rgba(0,0,0,.6), inset 0 0 0 6px #0b0b0b; --as-figure: #d9bfa8; }
.app-screen:not(.ready) > * { opacity: 0; }
.as-bar { display: flex; align-items: center; gap: 10px; padding: 44px 24px 0; font-size: 14px; white-space: nowrap; }
.as-mark { font-family: var(--display); font-weight: 500; }
.as-bar i { margin-left: auto; font-style: normal; font-size: 11px; color: var(--slate); }
.as-view { flex: 1; min-height: 0; position: relative; }
.as-view canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.as-read { padding: 0 24px 28px; }
.as-label { margin: 0; font-size: 12px; color: var(--slate); }
.as-big { margin: 2px 0 0; font-family: var(--display); font-weight: 500; font-size: 40px; line-height: 1; }
.as-small { margin: 4px 0 0; font-size: 12.5px; color: var(--slate); min-height: 1.4em; }
.as-bars { margin-top: 12px; height: 28px; display: flex; align-items: flex-end; gap: 2px; }
.as-bars i { flex: 1; background: rgba(238,234,226,.16); border-radius: 1px; }
.as-bars i.on { background: #eeeae2; } .as-bars i.on.hot { background: var(--tan); }
.as-say { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.35; }
.y-mini { width: 52%; border-radius: 26px; }
.y-mini .as-bar { padding: 22px 12px 0; font-size: 10px; } .y-mini .as-bar i, .y-mini .as-say { display: none; }
.y-mini .as-read { padding: 0 12px 14px; } .y-mini .as-big { font-size: 24px; } .y-mini .as-small, .y-mini .as-label { font-size: 9px; } .y-mini .as-bars { height: 14px; margin-top: 6px; }

/* 5. a session: clock and steps on the left, the phone on the right, held while the page scrolls */
main > section.y-session { height: 640svh !important; border-top: 1px solid var(--line); }
.y-session .y-pin { position: sticky; top: 0; height: 100svh; max-width: 1440px; margin: 0 auto; padding: 0 calc(var(--gutter) + var(--stripe)) 0 var(--gutter); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 64px; }
.y-clock { margin-top: 22px; display: flex; align-items: baseline; gap: 14px; font-family: var(--display); }
.y-time { display: inline-block; min-width: 3.6ch; }
.y-time { font-size: clamp(72px, 11vw, 200px); line-height: .9; letter-spacing: -.03em; }
.y-of { font-size: clamp(20px, 2vw, 32px); color: var(--slate); }
.y-steps { position: relative; height: 150px; margin-top: 28px; }
.y-step { position: absolute; inset: 0; opacity: 0; transform: translateY(12px); transition: opacity .45s, transform .45s; }
.y-step.on { opacity: 1; transform: none; }
.y-step h3 { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(28px, 3vw, 48px); line-height: 1; }
.y-step p { margin: 12px 0 0; font-size: clamp(17px, 1.4vw, 22px); color: var(--slate); }
.y-rail { position: relative; height: 3px; max-width: 560px; margin-top: 18px; background: rgba(238,234,226,.14); border-radius: 2px; overflow: hidden; }
.y-rail .y-fill { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--p, 0) * 100%); background: var(--tan); }
/* five phones at once, one per station, the one the clock is at lit */
.y-session .y-pin { grid-template-columns: 1fr !important; grid-template-rows: auto 1fr; align-items: stretch; gap: 0 !important; padding-top: 6svh !important; padding-bottom: 5svh !important; }
.y-session .y-left { display: grid; grid-template-columns: auto 1fr; column-gap: 56px; align-items: end; }
.y-session .y-left > .y-k { grid-column: 1 / -1; }
.y-session .y-clock { margin-top: 10px; } .y-session .y-time { font-size: clamp(64px, 7.4vw, 136px); }
.y-session .y-steps { margin: 0 0 12px; height: 96px; }
.y-session .y-rail { grid-column: 1 / -1; max-width: none; margin-top: 22px; }
.y-phones { min-height: 0; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 4svh; }
.y-phones .y-phone { flex: 0 1 auto; width: min(19%, calc((100svh - 330px) * 9 / 19)); opacity: .38; transform: scale(.94); transition: opacity .5s, transform .5s; }
.y-phones .y-phone.on { opacity: 1; transform: none; }
.y-phones .app-screen { border-radius: 30px; } .y-phones .as-bar { padding: 26px 14px 0; font-size: 12px; white-space: nowrap; overflow: hidden; } .y-phones .as-read { padding: 0 14px 16px; } .y-phones .as-big { font-size: 28px; } .y-phones .as-say { font-size: 12px; }

/* 6. rep 3 against rep 40 */
/* 4. rep 5 against rep 43: the words on top, the two bodies across the full width under them */
main > section.y-rep { min-height: 100svh !important; display: grid !important; grid-template-columns: 1fr; grid-template-rows: auto 1fr; border-top: 1px solid var(--line); padding: 0 !important; overflow: hidden !important; }
.y-repart { position: relative; order: 2; min-height: 0; display: grid; place-items: center; background: #141414; }
/* the video's edge is feathered into the page so a colour-managed dark never shows as a box */
.y-repart video { width: 100%; height: 100%; max-height: calc(100svh - 220px); object-fit: contain; -webkit-mask-image: radial-gradient(ellipse 72% 70% at 50% 52%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 72% 70% at 50% 52%, #000 62%, transparent 100%); }
.y-repart .y-repm { display: none; }
.y-repart .y-wait { color: #555; font-size: 14px; border: 1px dashed #333; padding: 24px; }
.y-repcopy { order: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; padding: 9svh calc(var(--gutter) + var(--stripe)) 0 var(--gutter); }
.y-repcopy h2 { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(56px, 7vw, 132px); line-height: .9; letter-spacing: -.025em; }
.y-repcopy p { margin: 24px 0 0; font-size: clamp(18px, 1.5vw, 24px); color: var(--slate); max-width: 22ch; }

/* 7. your sport: three tall photos, one line each */
main > section.y-sport { display: grid !important; grid-template-columns: repeat(3, 1fr); height: 100svh !important; min-height: 600px !important; gap: 2px; background: #0b0b0b !important; }
.y-sport article { position: relative; overflow: hidden; }
.y-sport img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.y-sport article:hover img { transform: scale(1.04); }
.y-sport article::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14,14,14,.85) 0%, rgba(14,14,14,0) 45%); }
.y-sport div { position: absolute; z-index: 1; left: 28px; right: 28px; bottom: 34px; }
.y-sport b { display: block; font-family: var(--display); font-weight: 500; font-size: clamp(32px, 3.4vw, 56px); line-height: 1; }
.y-sport span { display: block; margin-top: 10px; font-size: clamp(15px, 1.2vw, 19px); color: rgba(238,234,226,.8); }

/* 8. still your kit */
main > section.y-worry { min-height: 100svh !important; display: flex !important; align-items: flex-end; overflow: hidden !important; }
.y-worry .y-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.y-worry::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(20,20,20,.2) 0%, rgba(20,20,20,.3) 45%, rgba(20,20,20,.94) 100%); }
.y-worry .y-wrap { position: relative; z-index: 2; width: 100%; padding-bottom: 10svh; }
.y-worry h2 { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(44px, 6vw, 108px); line-height: .92; letter-spacing: -.02em; }
.y-tiles { margin: 56px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.y-tiles li { position: relative; padding-top: 18px; border-top: 1px solid rgba(238,234,226,.4); }
.y-tiles b { display: block; font-family: var(--display); font-weight: 500; font-size: clamp(24px, 2.2vw, 34px); line-height: 1.05; }
.y-tiles span { display: block; margin-top: 8px; font-size: 15px; color: rgba(238,234,226,.72); }

/* 9. in the box */
/* 8. in the box: the flat lay runs off the right edge at full height, the list on the left in large type, the same split
   as the session. No frame round the photo */
main > section.y-box { display: grid !important; grid-template-columns: minmax(340px, 1fr) 2.1fr; min-height: 100svh; padding: 0 !important; border-top: 1px solid var(--line); overflow: hidden !important; }
.y-box figure { margin: 0; position: relative; order: 2; min-height: 100svh; }
.y-box figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; display: block; }
/* the photo's concrete melts into the page on the side of the words */
.y-box figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #141414 0%, rgba(20,20,20,0) 22%); pointer-events: none; }
.y-boxcopy { order: 1; align-self: center; padding: 12svh 0 12svh var(--gutter); }
.y-box h2 { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(44px, 6vw, 108px); line-height: .92; letter-spacing: -.02em; }
.y-box ul { margin: 48px 0 0; padding: 0; list-style: none; }
.y-box li { padding: 16px 0; border-top: 1px solid var(--line); }
.y-box li b { display: block; font-family: var(--display); font-weight: 500; font-size: clamp(22px, 1.9vw, 30px); line-height: 1.1; }
.y-box li span { display: block; margin-top: 4px; font-size: 15px; color: var(--slate); }

/* phones */
@media (max-width: 899px) {
  .y-wrap { padding-right: var(--gutter); }
  .y-l1, .y-l2 { font-size: 15vw; }
  .y-a2 { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
  .y-beat::after { background: linear-gradient(0deg, rgba(11,11,11,.9) 0%, rgba(11,11,11,0) 42%); }
  .y-bcopy { left: var(--gutter); right: var(--gutter); top: auto; bottom: 14svh; transform: translateY(calc((1 - var(--t, 0)) * 20px)); }
  .y-bl { max-width: none; font-size: 30px; }
  .y-suit { border-left: 0; border-top: 1px solid rgba(238,234,226,.08); }
  .y-now { top: 50%; transform: translate(-50%, -50%); font-size: 13vw; }
  .y-tag { bottom: 22px; white-space: normal; width: calc(100% - 48px); text-align: center; font-size: 11.5px; }
  .y-cap { left: 16px; bottom: auto; top: 16px; }
  .y-parts { grid-template-columns: 1fr; gap: 40px; }
  .y-art { aspect-ratio: 4 / 3; }
  .y-mini { width: 34%; }
  .y-art-unit img { width: 22%; }
  .y-session .y-pin { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-items: start; gap: 12px; padding: 24px var(--gutter) 20px; }
  .y-time { font-size: 64px; } .y-clock { margin-top: 10px; } .y-steps { height: 76px; margin-top: 10px; } .y-step h3 { font-size: 24px; } .y-step p { margin-top: 6px; font-size: 14.5px; }
  .y-session .y-left { display: block; }
  .y-session .y-steps { height: 76px; margin: 10px 0 0; }
  /* phones: one strip, the lit phone slides to the middle */
  .y-phones { justify-content: flex-start; gap: 14px; padding-top: 2svh; transform: translateX(var(--shift, 0px)); transition: transform .6s cubic-bezier(.3,.7,.2,1); }
  .y-phones .y-phone { flex: 0 0 auto; width: min(58vw, calc(52svh * 9 / 19)); }
  .y-session .app-screen { border-radius: 30px; } .y-session .as-bar { padding: 26px 16px 0; font-size: 12px; } .y-session .as-bar i { display: none; } .y-session .as-read { padding: 0 16px 18px; } .y-session .as-big { font-size: 30px; }
  .y-repart .y-repd { display: none; } .y-repart .y-repm { display: block; width: 100%; height: auto; -webkit-mask-image: none; mask-image: none; }
  .y-repcopy { display: block; padding: 56px var(--gutter) 8px; }
  main > section.y-sport { grid-template-columns: 1fr; height: auto !important; } .y-sport article { height: 70svh; }
  .y-tiles { grid-template-columns: 1fr 1fr; gap: 28px 18px; } .y-tiles b { font-size: 22px; } .y-tiles span { font-size: 13px; }
  main > section.y-box { grid-template-columns: 1fr; min-height: 0; }
  .y-box figure { order: 1; min-height: 0; aspect-ratio: 3 / 2; }
  .y-box figure::after { background: linear-gradient(0deg, #141414 0%, rgba(20,20,20,0) 30%); }
  .y-boxcopy { order: 2; padding: 8px var(--gutter) 72px; }
}

/* sketch notes */
.notes [data-placeholder] { position: relative; }
.notes [data-placeholder]::after { content: "Placeholder"; position: absolute; top: -10px; right: 0; padding: 3px 8px; border-radius: 99px; font: 600 10px/1.4 var(--sans); letter-spacing: .06em; text-transform: uppercase; background: #f5d547; color: #141414; }

/* the phone in the session: no team label in the app bar */
.y-session .as-bar i { display: none; }
@media (max-width: 899px) { .y-session .y-left > .y-k { font-size: 10.5px; letter-spacing: .08em; white-space: nowrap; } }
/* the phone strip is wider than the screen: clip it to the section so the page never widens */
.y-session .y-pin { overflow: hidden; }
main > section.y-session { overflow-x: clip !important; }
/* the station's words sit on the clock's baseline, not floating above it */
@media (min-width: 900px) {
  /* the steps stack in one grid cell (in flow, so they have a baseline) and the row lines up on its last baseline:
     the station's last line sits exactly on the clock's baseline */
  .y-session .y-left { align-items: last baseline; }
  .y-session .y-steps { display: grid; height: auto; margin: 0; }
  .y-session .y-step { position: relative; inset: auto; grid-area: 1 / 1; align-self: end; }
}
/* same left edge as every other section on wide screens */
.y-session .y-pin { max-width: none; }

/* 7. the knit: the live site's magenta light, travelling only along the real conductive threads (its mask, lined up
   with this photo, cropped the same way) */
.y-worry .y-glow { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(105deg, transparent 0 30%, rgba(244, 4, 136, .62) 42% 58%, transparent 70% 100%) 0 0 / 300% 100% no-repeat, rgba(244, 4, 136, .26);
  /* on the warm sepia knit the live site's values read solid pink; these match how the live grey knit looks */
  -webkit-mask: url("/img/photos/v4/knit-threads.png") 50% 50% / cover no-repeat; mask: url("/img/photos/v4/knit-threads.png") 50% 50% / cover no-repeat;
  mix-blend-mode: screen; }
@media (prefers-reduced-motion: no-preference) { .y-worry .y-glow { animation: y-travel 3.6s linear infinite; } }
@keyframes y-travel { from { background-position: 100% 0; } to { background-position: 0 0; } }
/* phones: the reveal's line sits above the floating reserve button, never under it */
@media (max-width: 899px) { .y-tag { bottom: 92px; } }
/* phones: the pinned session leaves room for the floating reserve button, so no phone's words sit under it */
@media (max-width: 899px) { .y-session .y-pin { padding-bottom: 96px !important; } .y-phones .y-phone { width: min(58vw, calc((100svh - 330px) * 9 / 19)); } }

/* r8, Anant's copy of 29 Oct */
/* sensor headline: 10 sensors, and why, two lines under it */
.y-shead b { display: block; font-weight: 500; font-size: clamp(32px, 3.4vw, 56px); line-height: 1; letter-spacing: -.02em; }
.y-shead span { display: block; margin-top: 10px; font-size: clamp(16px, 1.5vw, 24px); line-height: 1.25; color: rgba(238,234,226,.85); }
/* the problem: three short lines, then the answer large, before the reveal */
.y-l3 { line-height: 1.55; max-width: none; }
.y-l4 { margin: 9vh 0 0; font-family: var(--sans); font-weight: 500; font-size: clamp(28px, 3.4vw, 60px); line-height: 1.2; letter-spacing: -.01em; color: #fff;
  opacity: calc((var(--p, 0) - .3) * 7); transform: translateY(calc((1 - max(0, min(1, (var(--p, 0) - .3) * 7))) * 24px)); }
.y-see .brace, .y-now .brace { white-space: nowrap; } .y-see .brace b { color: var(--magenta, #f40488); font-weight: inherit; }
main > section.y-see { height: 420svh !important; }
.y-a1 { opacity: calc(1 - max(0, min(1, (var(--p, 0) - .5) * 7))); }
.y-a2 { opacity: max(0, min(1, (var(--p, 0) - .54) * 7)); }
.y-now { opacity: max(0, min(1, (var(--p, 0) - .6) * 7)); }
/* rep 5 and rep 43: the angles stay on screen under each body the whole loop, not only at the bottom of the rep */
.y-repfig { position: relative; width: min(100%, calc((100svh - 330px) * 16 / 9)); aspect-ratio: 16 / 9; }
.y-repart .y-repfig video { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; }
.y-repart { padding-bottom: 120px; }
.y-read dl { position: absolute; top: calc(100% + 6px); transform: translateX(-50%); margin: 0; display: grid; grid-template-columns: auto auto; column-gap: 36px; text-align: left; }
.y-read .y-r5 { left: 23.4%; } .y-read .y-r43 { left: 74.1%; }
.y-read dt { grid-column: 1 / -1; position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.y-read dd { margin: 0; }
.y-read dd span { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); }
.y-read dd b { display: block; margin-top: 4px; font-family: var(--display); font-weight: 500; font-size: clamp(36px, 3.6vw, 60px); line-height: 1; letter-spacing: -.02em; color: var(--bone); }
.y-read .y-r43 dd b { color: #d9b8a0; }
.y-repcopy { justify-content: center; text-align: center; }
/* the session: a station index under the clock, click to jump, the page settles on a station when scrolling stops */
main > section.y-session { height: 460svh !important; }
.y-session .y-rail { overflow: visible; height: auto; background: none; padding-top: 0; }
.y-session .y-rail::before { content: ""; display: block; height: 3px; border-radius: 2px; background: rgba(238,234,226,.14); }
.y-session .y-rail .y-fill { top: 0; bottom: auto; height: 3px; border-radius: 2px; }
.y-stations { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.y-stations li { position: relative; }
.y-stations li::before { content: ""; position: absolute; left: 0; top: -6px; width: 1px; height: 9px; background: rgba(238,234,226,.3); }
.y-stations button { all: unset; cursor: pointer; display: block; padding: 10px 0 0; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: rgba(238,234,226,.45); transition: color .3s; }
.y-stations button:hover, .y-stations button:focus-visible { color: var(--bone); }
.y-stations li.on button { color: var(--bone); }
.y-phones .y-phone { cursor: pointer; }
@media (max-width: 899px) {
  .y-shead { top: 22px; } .y-shead b { font-size: 34px; } .y-shead span { font-size: 16px; }
  .y-l4 { margin-top: 6vh; font-size: 7.4vw; }
  .y-repfig { width: 100%; aspect-ratio: 4 / 5; }
  .y-repart { padding-bottom: 0; }
  .y-read dl { left: auto !important; right: 4%; transform: none; grid-template-columns: auto; row-gap: 14px; }
  .y-read .y-r5 { top: 16%; } .y-read .y-r43 { top: 63%; }
  .y-read dd b { font-size: 30px; }
  .y-read dd span { font-size: 10.5px; }
  .y-stations button { font-size: 10px; letter-spacing: .04em; padding-top: 8px; }
  .y-session .y-rail { margin-top: 14px; }
}
@media (max-width: 899px) {
  /* the strip of phones must not widen the column the clock and the station index sit in */
  .y-session .y-pin { grid-template-columns: minmax(0, 1fr) !important; }
  /* the reveal: the line sits across the seam, so the suit's caption moves to the bottom of its pane */
  .y-now { font-size: 11.5vw; }
  .y-suit .y-cap { top: auto; bottom: 104px; }
}
@media (max-width: 899px) { .y-stations button { white-space: nowrap; letter-spacing: .02em; } }
/* r9: heading descenders were clipped, the readout label wrapped */
.y-repcopy h2 { line-height: 1.02; padding-bottom: .08em; }
.y-read dd span { white-space: nowrap; }
/* r10: phone rep, body takes the left half and the readout the right, both larger */
@media (max-width: 899px) {
  .y-repfig { overflow: hidden; }
  .y-repart .y-repm { transform: translateX(-18%); transform-origin: 50% 50%; }
  .y-read dl { right: 6%; row-gap: 18px; }
  .y-read dd b { font-size: 42px; }
  .y-read dd span { font-size: 11.5px; }
}
@media (max-width: 379px) { .y-stations button { font-size: 9px; letter-spacing: 0; } }

/* no browser play button over a video the phone would not start by itself: the poster shows and a tap starts it (v3.js) */
.y-pane video::-webkit-media-controls-start-playback-button, .y-repfig video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }
