/* The landing in the C3 "Chrono" system (visual round 3): his rep as the picture, a red ring on the frame the coach's comment
   sits on, the comment in the giant condensed cut. Ink, ivory and one red; light and dark follow the reader's scheme. */
@font-face { font-family: "Archivo"; src: url("/common/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
:root {
  --bg: #FBFAF6; --fg: #141413; --mut: #56544E; --line: #E3E0D8; --band: #F1EEE6;
  --say-bg: #141413; --say-fg: #F6F3EA; --say-red: #FF5A45;     /* the comment block is the page's inverse */
  --red: #FF3B24; --signal: #C42A1F; --red-text: #B3261B;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0E0E0D; --fg: #F4F2EC; --mut: #A8A59C; --line: #2A2A27; --band: #171716;
          --say-bg: #F6F3EA; --say-fg: #141413; --say-red: #B3261B; --red-text: #FF6A57; }
}
* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--fg); font: 17px/1.45 Archivo, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, video { display: block; max-width: 100%; height: auto; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* header */
.top { display: flex; align-items: center; gap: 6px; max-width: 1160px; margin: 0 auto; padding: 8px 20px; min-height: 56px; }
.brand { margin-right: auto; display: block; color: var(--fg); }
.lockup { height: 26px; width: auto; display: block; }
.key { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1.5px solid var(--fg);
       font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; }
.key--plain { border-color: transparent; }
.key--signal { background: var(--signal); border-color: var(--signal); color: #fff; }
.key--lg { min-height: 50px; padding: 0 20px; font-size: 16px; }
/* under 600 px the key shows "FR"; the word stays for screen readers (the short form is aria-hidden) */
.lang .long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.top .key--signal { display: none; }

/* the rep: the picture, the ring on the frame, the line to the time, the comment */
.rep { position: relative; }
.clip { position: relative; overflow: hidden; background: #1c1b1a; }
.clip img { width: 100%; }
.clip picture { display: block; }
.clip video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.poster { position: relative; transition: opacity .25s; }
.ring { position: absolute; left: var(--x, 83.1%); top: var(--y, 54.2%); width: 15%; aspect-ratio: 1; transform: translate(-50%, -50%); border: 4px solid var(--red); border-radius: 50%; }
.lead { position: absolute; left: var(--x, 83.1%); top: calc(var(--y, 54.2%) + 9%); bottom: 0; width: 4px; margin-left: -2px; background: var(--red); }
.say { position: relative; display: block; background: var(--say-bg); color: var(--say-fg); padding: 18px 20px 14px; }
.chip { position: absolute; left: var(--x, 83.1%); top: -18px; transform: translateX(-50%); background: var(--red); color: #fff; font-stretch: 62%; font-weight: 900; font-size: 30px; line-height: 1; padding: 4px 10px 2px; border-radius: 6px; }
.who { display: block; font-stretch: 125%; font-weight: 700; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--say-red); }
.words { display: block; margin-top: 5px; font-stretch: 62%; font-weight: 900; font-size: clamp(44px, 14vw, 66px); line-height: .88; text-transform: uppercase; text-wrap: balance; }
.lands { transition: opacity .2s; }
.live video { opacity: 1; }
.live .poster, .live .lands { opacity: 0; }
.live.at-rep .poster, .live.at-rep .lands { opacity: 1; }
.clipbtn { position: absolute; left: 10px; bottom: 10px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(20, 20, 19, .72); cursor: pointer; }
.clipbtn::before { content: ""; position: absolute; inset: 14px 16px; border-left: 4px solid #fff; border-right: 4px solid #fff; }
.clipbtn.paused::before { inset: 13px 14px 13px 17px; border: 9px solid transparent; border-left: 14px solid #fff; border-right: 0; }

/* hero */
.hero-text { padding: 18px 20px 8px; }
.kicker { font-stretch: 125%; font-weight: 700; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--mut); }
.headline span { display: block; }
.headline { margin-top: 6px; font-weight: 800; font-size: 29px; line-height: 1.04; letter-spacing: -.035em; text-wrap: balance; }
.hero-text > p:not(.headline):not(.fine) { margin-top: 10px; color: var(--mut); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.stores { display: flex; gap: 10px; margin-top: 12px; }
.store { flex: 1; max-width: 190px; min-height: 48px; border-radius: 10px; background: var(--fg); color: var(--bg); display: flex; flex-direction: column; justify-content: center;
         padding: 0 14px; font-weight: 700; font-size: 16px; line-height: 1.25; text-decoration: none; white-space: nowrap; }
.store small { font-size: 11px; font-weight: 500; }
.fine, .small { margin-top: 12px; font-size: 14px; color: var(--mut); }

/* sections */
section { padding: 56px 0 0; }
.hero { padding: 0; }
h2 { font-stretch: 62%; font-weight: 900; font-size: clamp(54px, 15vw, 120px); line-height: .88; text-transform: uppercase; letter-spacing: -.01em; text-wrap: balance; }
h2 .voice, h2 em { font-style: normal; color: var(--red-text); }
.turn { background: var(--band); margin-top: 40px; padding: 48px 0; }
.lede { margin-top: 18px; font-size: 19px; max-width: 46em; }
.beat { margin-top: 36px; display: grid; gap: 20px; }
.note { font-size: 19px; line-height: 1.4; }
.note b { color: var(--red-text); }
.note .sub { display: block; margin-top: 10px; font-size: 16px; color: var(--mut); }
.rx { font-weight: 800; font-variant-numeric: tabular-nums; }
.side .rep { margin: 0 -20px; }
.side .rep .ring { --x: 44%; --y: 50%; width: 20%; }
.side .rep .lead { --x: 44%; --y: 50%; top: calc(50% + 12.8%); }
.side .rep .chip { --x: 44%; }
.side .rep .words { font-size: clamp(34px, 11vw, 54px); }
.shot { justify-self: center; width: min(280px, 78%); }
.shot img { border-radius: 30px; border: 1px solid var(--line); }
.c-athlete h2 { font-size: clamp(44px, 12vw, 84px); }
.c-athlete p { margin-top: 14px; font-size: 19px; }

/* the bar act: the loaded bar of Landing v2 as a frame sequence (assets/bar/, rendered from the 3D scene), then the app.
   Without script or under reduced motion it is a still: the opening frame, with the app under it. With script (.live) the
   stage sticks for one viewport of scroll on desktop and 60% of one on phones, and page.js draws the frames. Always night. */
.act { --app: 0; --out: 0; --note: 1; --week: 1; --say-bg: #F6F3EA; --say-fg: #141413; --say-red: #B3261B; margin-top: 40px; padding: 0; background: #0E0E0D; color: #F4F2EC; }
.act .stage { position: relative; }
.act .bar { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.act .bar picture, .act .bar img, .act canvas, .act .dim { position: absolute; inset: 0; width: 100%; height: 100%; }
.act .bar img { object-fit: cover; }
.act canvas { display: none; }
.act .dim { background: #0E0E0D; opacity: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.readout { position: absolute; left: 20px; bottom: 18px; text-shadow: 0 1px 12px rgba(0, 0, 0, .6); }
.kg { font-stretch: 62%; font-weight: 900; font-size: 112px; line-height: .8; font-variant-numeric: tabular-nums; }
.kg small { font-size: .32em; margin-left: 6px; }
.plates { margin-top: 8px; font-size: 14px; font-weight: 600; }
.act-title { position: absolute; left: 20px; right: 20px; top: 22px; margin: 0; text-shadow: 0 1px 14px rgba(0, 0, 0, .7); }
.act-title .voice { color: #FF6A57; }
.act-app { display: grid; gap: 20px; padding: 28px 20px 44px; }
.act-app h2 { font-size: clamp(44px, 12vw, 84px); }
.act-app h2 .voice { color: #FF6A57; }
.act-app p { margin-top: 12px; color: #B9B6AD; }
.act-app .shot img { border-color: #2A2A27; }
/* the clip as it reaches the coach: a phone-shaped frame with the lift in it, and the coach's note on the frame it is about */
.dev { position: relative; justify-self: center; width: min(280px, 78%); margin: 0; border-radius: 30px; overflow: hidden; border: 1px solid #2A2A27; background: #1c1b1a; }
.dev .clip { width: 100%; }
.dev .ring { --x: 45%; --y: 44.5%; width: 24%; }
.dev .say { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 14px 12px; }
.dev .chip { --x: 22%; font-size: 22px; top: -14px; }
.dev .who { font-size: 11px; letter-spacing: .1em; }
.dev .words { font-size: 32px; }
/* vh first for browsers without svh (Safari before 15.4): they would drop the svh line and the act would have no travel */
.act.live { height: 160vh; height: calc(100svh + 60vh); }
.act.live .stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.act.live .bar { position: absolute; inset: 0; aspect-ratio: auto; }
.act.live canvas { display: block; }
.act.live .dim { opacity: calc(var(--app) * .78); }
.act.live .readout, .act.live .act-title { opacity: calc(1 - var(--out, 0)); }
.act.live .act-app { position: absolute; inset: 0; grid-template-areas: "dev" "copy"; align-content: center; justify-items: center; gap: 14px; padding: 16px 20px;
                     opacity: var(--app); transform: translate3d(0, calc((1 - var(--app)) * 34vh), 0); will-change: transform, opacity; }
.act.live .dev, .act.live .week { grid-area: dev; width: auto; height: min(50vh, 470px); height: min(50svh, 470px); aspect-ratio: 390 / 844; }
.act.live .dev .clip, .act.live .week img { width: 100%; height: 100%; object-fit: cover; }
.act.live .dev .ring, .act.live .dev .say { opacity: var(--note); }
.act.live .week { position: relative; z-index: 1; opacity: var(--week); }
.act.live .c-sent, .act.live .c-note, .act.live .c-review { grid-area: copy; width: 100%; }
.act.live .c-sent { opacity: calc(1 - var(--note)); }
.act.live .c-note { opacity: calc(var(--note) * (1 - var(--week))); }
.act.live .c-review { opacity: var(--week); }
.act.live .act-app h2 { font-size: 46px; }
.act.live .act-app p { font-size: 15px; margin-top: 8px; }
.notes { display: grid; gap: 16px; }

/* questions */
.qa dl { margin-top: 24px; border-bottom: 1px solid var(--line); }
.qa dl > div { border-top: 1px solid var(--line); padding: 16px 0; }
.qa dt { font-weight: 800; font-size: 19px; }
.qa dd { margin-top: 4px; color: var(--mut); }
.qa .more { margin-top: 16px; }

/* the last key: the page's inverse, like the comment block */
.final { margin-top: 64px; padding: 56px 0; background: var(--say-bg); color: var(--say-fg); }
.final p { margin-top: 14px; }
.final .key { border-color: var(--say-fg); }
.final .key--signal { border-color: var(--signal); }
.final .store { background: var(--say-fg); color: var(--say-bg); }
.final .small { color: inherit; }

.site-footer { padding: 28px 0 40px; font-size: 14px; color: var(--mut); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer a { display: inline-block; padding: 6px 0; }

/* phones: the keys come before the paragraph, so a key is on the first screen in both languages */
@media (max-width: 899px) {
  .hero-text { display: flex; flex-direction: column; }
  .hero-text .actions { order: 1; } .hero-text > p:not(.headline):not(.fine) { order: 2; margin-top: 16px; } .hero-text .stores { order: 3; } .hero-text .fine { order: 4; }
}
/* short phones (an iPhone SE): the picture is cropped to 3:2 and the headline runs on, so the headline, a key and the start
   of the paragraph still fit; the ring follows the wrist in the cropped picture */
@media (max-width: 599px) and (max-height: 700px) {
  .hero .clip { aspect-ratio: 3 / 2; }
  .hero .clip img, .hero .clip video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
  .hero .clip picture { height: 100%; }
  .hero .ring { --y: 52.7%; } .hero .lead { top: calc(52.7% + 11.2%); }
  .hero .words { font-size: 54px; }
  .hero .say { padding: 16px 20px 10px; }
  .hero-text { padding-top: 12px; }
  .headline { font-size: 24px; } .headline span { display: inline; }
  .hero-text .actions { margin-top: 12px; }
}
@media (min-width: 600px) {
  .lang .long { position: static; width: auto; height: auto; clip-path: none; } .lang .short { display: none; }
  .top .key--signal { display: inline-flex; }
}
@media (min-width: 900px) {
  .hero { display: grid; grid-template-columns: minmax(0, 1fr) 600px; gap: 56px; align-items: center; max-width: 1160px; margin: 0 auto; padding: 28px 20px 0; }
  .hero .rep { order: 2; }
  .hero-text { padding: 0; }
  .kicker { font-size: 13px; }
  .headline { font-size: 62px; margin-top: 12px; } .headline span { white-space: nowrap; }
  .hero-text > p:not(.headline):not(.fine) { font-size: 19px; margin-top: 18px; }
  .hero .words { font-size: 84px; }
  .hero .say { padding: 22px 28px 18px; }
  .turn { margin-top: 80px; padding: 80px 0; }
  .lede { font-size: 22px; }
  section { padding-top: 96px; }
  .beat { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; margin-top: 64px; }
  .beat:nth-of-type(even) > :first-child { order: 2; }
  .note, .c-athlete p { font-size: 24px; }
  .note .sub { font-size: 18px; }
  .side .rep { margin: 0; }
  .side .rep .words { font-size: 60px; }
  .act { margin-top: 80px; }
  .act .bar { aspect-ratio: 16 / 9; }
  .readout { left: 40px; bottom: 32px; } .kg { font-size: 200px; } .plates { font-size: 18px; }
  .act-title { left: auto; right: 6vw; top: 22vh; width: 30vw; font-size: 52px; }
  .act-app { max-width: 560px; margin: 0 auto; padding: 72px 20px; }
  .act-app .dev, .act-app .week { justify-self: start; }   /* the still version: one left edge for the pictures and the words */
  .act.live { height: 200vh; }
  .act.live .act-app { max-width: none; grid-template-areas: "dev copy"; grid-template-columns: auto minmax(0, 420px); align-items: center; justify-content: end; padding: 0 7vw 0 0; gap: 48px; }
  .act.live .dev, .act.live .week { justify-self: center; height: min(74vh, 720px); }
  .dev .words { font-size: 44px; } .dev .chip { font-size: 30px; top: -18px; } .dev .who { font-size: 11px; } .dev .say { padding: 18px 18px 14px; }
  .act.live .act-app h2 { font-size: 84px; }
  .act.live .act-app p { font-size: 19px; margin-top: 14px; }
  .qa dl, .qa .more { max-width: 860px; }   /* the heading keeps the page's left edge; the answers keep a readable measure */
  .final { margin-top: 96px; padding: 96px 0; }
}
@media (prefers-reduced-motion: reduce) { .lands, .poster { transition: none; } }
