/* Florian's landing page: dark and white, square, very large type, and the app's green as
   the one accent. The colours and the typeface are the operator panel's
   (src/medbot/static/panel/tokens.css), copied here so this folder can be put on a web
   server by itself.

   Rules:
   - The page's own colours are --dark, white, --text-2 and --line. Green is for the state
     lamps and the focus ring, and nothing else.
   - The page's own buttons and panels have square corners. What is taken from the app (the
     lamp, the "simulated" mark, the tag chips) keeps the app's round shape.
   - Small spaced capitals are for the captions in the dark mission panels only.
   - Every moving thing stands still with prefers-reduced-motion.

   In order: tokens · the page · marks · the announcement and the bar · the hero ·
   the statement · the mission · the partners · the evidence · the state · the closing. */

:root {
  color-scheme: light;

  --dark: #1D1D1F;
  --white: #FFFFFF;
  --text-2: #5F5F64;
  --line: #E3E3E8;
  --accent: #1E9E52;        /* fills only: 3.4 to 1 on white, 4.9 to 1 on --dark */
  --accent-strong: #157A3E; /* green text on white */

  --mark: #F5F5F7;          /* the app's --surface-2: the ground of the "simulated" mark */
  --off: #8E8E93;           /* the app's --blocked: the lamp of what is not built */
  --dim: rgb(255 255 255 / .68);  /* second-rank text on --dark: 8 to 1 */
  --rule: rgb(255 255 255 / .22); /* hairlines on --dark */

  --font: -apple-system, "SF Pro Display", "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);

  --pad: clamp(20px, 2.8vw, 40px);
  --gap: clamp(16px, 2vw, 32px);
  --statement: clamp(32px, 4.7vw, 72px);
  --space: clamp(72px, 11vw, 168px);
  --notice: 38px;
  --bar: 56px;
}

/* --- the page ---------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--dark); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; } /* dark past the page's two ends */
body {
  margin: 0;
  background: var(--white);
  color: var(--dark);
  font: 17px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, video, svg { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
code { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--dark); color: var(--white); }
[id] { scroll-margin-top: calc(var(--bar) + 28px); } /* clear of the floating bar */

.wrap { width: min(1680px, 100% - 2 * var(--pad)); margin-inline: auto; }
.dark { background: var(--dark); color: var(--white); }
.part { padding: var(--space) 0; }

/* For a screen reader only. */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 30;
  padding: 10px 16px;
  border: 1px solid var(--dark);
  background: var(--white);
  font-size: 14px;
  font-weight: 500;
}
.skip:focus { top: 12px; }

/* A section's heading: as large as the statement, in regular weight. */
.head { margin-bottom: clamp(32px, 5vw, 72px); }
.head h2 {
  font-size: var(--statement);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.head__sub { margin-top: 14px; color: var(--text-2); font-size: clamp(18px, 1.7vw, 24px); line-height: 1.3; letter-spacing: -0.01em; }
.head--split { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; }

/* The page's button: square, white, a one pixel dark line. */
.button {
  flex: none;
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  border: 1px solid var(--dark);
  border-radius: 0;
  background: var(--white);
  color: var(--dark);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 160ms var(--ease), color 160ms var(--ease);
}
.button:hover { background: var(--dark); color: var(--white); }
.button--fill { background: var(--dark); color: var(--white); } /* the bar's one mark */
.button--fill:hover { background: var(--white); color: var(--dark); }
.button--dark { border-color: var(--white); background: none; color: var(--white); }
.button--dark:hover { background: var(--white); color: var(--dark); }

.square {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--white);
  border-radius: 0;
  background: none;
  color: var(--white);
  cursor: pointer;
  transition: background-color 160ms var(--ease), color 160ms var(--ease);
}
.square:hover { background: var(--white); color: var(--dark); }
.square svg { width: 16px; height: 16px; fill: currentColor; }
.square .square__play, .square.is-paused .square__pause { display: none; }
.square.is-paused .square__play { display: block; }

/* --- the marks, as the app draws them ---------------------------------------------------- */

/* Green lamp: seen on the real robot, the real phone or the live service.
   Green ring: on the bench or in simulation only. Grey lamp: not built. */
.lamp { flex: none; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--off); }
.lamp.is-on { background: var(--accent); }
.lamp.is-half { background: none; box-shadow: inset 0 0 0 2.5px var(--accent); }

.mark {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 99px;
  background: var(--mark);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  vertical-align: 1px;
}

/* --- what opens on a press: a row's detail and its source ---------------------------------- */

.more > summary { display: flex; gap: 16px; align-items: baseline; justify-content: space-between; list-style: none; cursor: pointer; }
.more > summary::-webkit-details-marker { display: none; }
.more > summary::after { content: "+"; flex: none; width: 1em; color: var(--text-2); font-size: 20px; font-weight: 400; line-height: 1; text-align: center; }
.more[open] > summary::after { content: "\2212"; }
.more > summary:hover::after { color: var(--dark); }

/* --- the announcement and the floating bar ----------------------------------------------- */

.notice {
  display: grid;
  place-items: center;
  min-height: var(--notice);
  padding: 8px var(--pad);
  background: var(--dark);
  color: var(--white);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}
.notice a { margin-left: 6px; text-underline-offset: 3px; }

/* It floats over the hero: its height and the space over it are taken back under it. */
.bar {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px clamp(16px, 2.4vw, 36px);
  height: var(--bar);
  margin: 12px 12px calc(-12px - var(--bar));
  padding: 7px 7px 7px 20px;
  border: 1px solid rgb(29 29 31 / .12);
  background: var(--white);
}
.bar__name { display: flex; align-items: center; gap: 10px; margin-right: auto; font-size: 21px; font-weight: 700; line-height: 1; letter-spacing: -0.035em; text-decoration: none; }
/* The mark: the sign-in's cross in three layers (src/medbot/static/fleet-login.html), drawn for a small size. */
.bar__mark { flex: none; width: 40px; height: 30px; }
.bar__nav { display: flex; gap: clamp(16px, 2.4vw, 36px); }
.bar__nav a { padding: 6px 0; font-size: 14px; font-weight: 500; text-decoration: none; }
.bar__nav a:hover { text-decoration: underline; text-underline-offset: 5px; }

/* --- the hero: the whole first screen ---------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  /* The whole first screen, and no more than 1400 px in a very tall window. */
  min-height: clamp(560px, calc(100vh - var(--notice)), 1400px);
  min-height: clamp(560px, calc(100svh - var(--notice)), 1400px);
  overflow: hidden;
  background: var(--dark);
  color: var(--white);
}
/* The recording is the operator panel, which is white: it is turned down until white text
   reads on it. Only the panel's 3D view is shown: its menu, the left 22.24 % of the picture,
   is always off the left edge, so no text of the panel lies under the headline. Under the
   video lies its first frame as a still picture, in the same place and at the same size, so
   the hero is whole before the video comes, and stays whole when the video does not start
   (a small screen, reduced motion). */
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--dark);
  /* no dimming: the video is bright; the shade under the words (.hero::after) keeps them readable */
  container-type: size;
}
/* The picture covers the hero, centred, held a little above the middle: the robot and the person
   are in the middle of each shot, and the words sit low on the left. */
.hero__still, .hero__video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.hero__still { background: url("media/hero-poster.jpg?v=7") 50% 40% / cover no-repeat; }
.hero__video { object-fit: cover; object-position: 50% 40%; }
/* A phone, upright or on its side: a lighter picture, and the video waits for a press (index.html). */
@media (max-width: 700px), (max-height: 500px) {
  .hero__still { background-image: url("media/hero-poster-1280.jpg?v=7"); }
}
/* A shade under the words, so that they do not fight the panel's own text. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Light: only the foot and the left, where the words are; the rest of the video stays bright. */
  background:
    linear-gradient(to top, rgb(29 29 31 / .9), rgb(29 29 31 / .55) 26%, rgb(29 29 31 / 0) 58%),
    linear-gradient(to right, rgb(29 29 31 / .5), rgb(29 29 31 / 0) 55%);
}

.hero__in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
  gap: var(--gap) clamp(24px, 5vw, 80px);
  align-items: end;
  padding: 120px 0 var(--pad);
}
.hero h1 {
  margin-left: -0.04em; /* the T's stem on the text's edge */
  font-size: clamp(50px, 8.6vw, 148px);
  font-weight: 400;
  line-height: .94;
  letter-spacing: -0.05em;
  text-wrap: balance;
}
.hero__line {
  max-width: 34em;
  margin-top: clamp(20px, 2.4vw, 36px);
  font-size: clamp(18px, 1.6vw, 23px);
  line-height: 1.35;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}
.hero__side { display: flex; gap: 16px; align-items: flex-end; }
.hero__note { color: rgb(255 255 255 / .86); font-size: 13px; line-height: 1.45; }
.hero__note .mark { margin-right: 4px; }

/* --- the statement: one sentence, lit word by word as it is scrolled ---------------------- */

.statement { padding: clamp(96px, 16vw, 240px) 0 clamp(72px, 11vw, 168px); }
.statement__text {
  max-width: 17.5em;
  font-size: var(--statement);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.035em;
  text-align: center;
  text-wrap: balance;
}
.statement__text.is-reveal .w { color: rgb(29 29 31 / .16); }
.statement__text.is-live .w { transition: color 420ms var(--ease); }
.statement__text.is-reveal .w.is-lit { color: var(--dark); }

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  justify-content: center;
  margin-top: clamp(48px, 7vw, 104px);
  color: var(--text-2);
  font-size: 14px;
}
.legend li { display: flex; gap: 9px; align-items: center; }

/* --- the mission: one dark panel for each step ------------------------------------------- */

.mission { padding-top: var(--space); }
.panel { overflow: hidden; border-top: 1px solid var(--rule); }
.panel__in {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0 var(--gap);
  padding-top: 18px;
}

/* The captions: the only small spaced capitals on the page. */
.caps { font-size: 11px; font-weight: 500; line-height: 1.6; letter-spacing: .14em; text-transform: uppercase; }
.caps .unit { text-transform: none; } /* m, ms and s stay as they are written */

.panel__meta { order: 1; grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.panel__no { color: var(--dim); }
.panel__state { display: flex; gap: 10px; align-items: flex-start; }
.panel__state .lamp { margin-top: 4px; } /* beside the first line when the words take two */

.panel__art {
  order: 2;
  grid-column: 1 / -1;
  position: relative;
  display: grid;
  place-items: center;
  height: clamp(220px, 38vw, 540px);
  margin: 18px 0 clamp(28px, 4vw, 56px);
  padding: clamp(20px, 3vw, 44px);
}
.panel__art img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
/* Four corner ticks hold the drawing's place, with the drawing or without it. */
.panel__art i { position: absolute; width: 14px; height: 14px; border: 0 solid var(--rule); }
.panel__art i:nth-of-type(1) { top: 0; left: 0; border-width: 1px 0 0 1px; }
.panel__art i:nth-of-type(2) { top: 0; right: 0; border-width: 1px 1px 0 0; }
.panel__art i:nth-of-type(3) { bottom: 0; left: 0; border-width: 0 0 1px 1px; }
.panel__art i:nth-of-type(4) { bottom: 0; right: 0; border-width: 0 1px 1px 0; }

/* A photograph of the real thing, when state.js names one: beside the drawing, under its mark. */
.panel__art.has-photo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); }
.panel__photo { display: flex; flex-direction: column; gap: 12px; width: 100%; height: 100%; min-height: 0; }
.panel__photo img { flex: 1; object-fit: cover; }
.panel__photo figcaption { display: flex; gap: 10px; align-items: center; }

.panel__line {
  order: 3;
  grid-column: 1 / span 5;
  font-size: clamp(22px, 2.3vw, 34px);
  line-height: 1.18;
  letter-spacing: -0.025em;
  text-wrap: pretty;
}
.panel__specs { order: 4; grid-column: 7 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--gap); align-content: start; }
.panel__specs li { display: flex; gap: 8px; padding-top: 12px; border-top: 1px solid var(--rule); }
.panel__specs li::before { content: "→"; flex: none; color: var(--dim); }

.panel__word {
  order: 5;
  grid-column: 1 / -1;
  margin: clamp(32px, 5vw, 80px) 0 0 -0.055em;
  padding-bottom: .1em;
  font-size: max(15vw, 60px);
  font-weight: 700;
  line-height: .86;
  letter-spacing: -0.05em;
  white-space: nowrap;
}

/* --- the partners: a numbered index ------------------------------------------------------ */

.index { border-top: 1px solid var(--dark); }
.index__row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-areas: "name name name name more more more more more more more no";
  gap: 16px var(--gap);
  align-items: start;
  padding: clamp(22px, 2.6vw, 36px) 0;
  border-bottom: 1px solid var(--line);
}
.index__name { grid-area: name; }
.index__name h3 { font-size: clamp(32px, 3.6vw, 54px); font-weight: 400; line-height: 1; letter-spacing: -0.04em; }
.index__name p { margin-top: 10px; color: var(--text-2); font-size: 14px; }
/* The lamp and the state are always seen. What the partner does, the evidence and the source
   open on a press; a real partner's row is open from the start. */
.index__more { grid-area: more; }
.index__lamp { display: flex; gap: 10px; align-items: baseline; font-size: 15px; font-weight: 500; }
.index__lamp .lamp { position: relative; top: -1px; }
.index__body { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 3fr); gap: 12px var(--gap); padding: 14px 36px 0 20px; }
.index__role { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.35; letter-spacing: -0.01em; text-wrap: pretty; }
.index__evidence { margin-top: 8px; color: var(--text-2); font-size: 15px; text-wrap: pretty; }
.source { color: var(--text-2); font-size: 13px; overflow-wrap: anywhere; }
.index__body .source { padding-top: 4px; }
.source a { text-underline-offset: 3px; }
.nb { white-space: nowrap; }
.source a:hover { color: var(--dark); }
.index__no {
  grid-area: no;
  justify-self: end;
  color: var(--text-2);
  font-size: clamp(17px, 1.4vw, 20px);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* --- the evidence: measurements in a slowly moving row ------------------------------------ */

.evidence { padding: var(--space) 0; }
.row { overflow: hidden; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.row:focus-visible { outline-offset: -2px; }
.row__track { display: flex; width: max-content; animation: slide var(--dur, 120s) linear infinite; }
.row:hover .row__track, .row:focus .row__track, .row:focus-within .row__track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }

.card {
  flex: none;
  display: flex;
  flex-direction: column;
  min-width: clamp(300px, 30vw, 440px);
  min-height: clamp(320px, 30vw, 420px);
  padding: 24px clamp(32px, 4vw, 64px) 24px clamp(20px, 2vw, 28px);
  border-left: 1px solid var(--rule);
}
.card__value {
  font-size: clamp(64px, 7.6vw, 116px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.05em;
  white-space: nowrap;
}
.card__unit { margin-left: .08em; color: var(--dim); font-size: .27em; letter-spacing: -0.01em; }
.card__what { max-width: 28ch; margin-top: 18px; font-size: 17px; line-height: 1.4; text-wrap: pretty; }
.card__where { display: flex; gap: 10px; align-items: baseline; margin-top: auto; padding-top: 32px; color: var(--dim); font-size: 14px; }
.card__says { display: flex; flex-wrap: wrap; gap: 2px 10px; }
.card__where b { color: var(--white); font-weight: 500; }
.card .source { max-width: 36ch; margin-top: 12px; color: var(--dim); }
.card .source a:hover { color: var(--white); }

/* Standing still: with reduced motion, when "Show all" is pressed, or when there are too few
   measurements to fill a moving row. Then it is a grid and every measurement is on the page. */
.row.is-still .row__track { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); width: auto; animation: none; }
.row.is-still .card { min-width: 0; min-height: 0; margin-bottom: -1px; padding-right: clamp(20px, 2vw, 28px); border-bottom: 1px solid var(--rule); }
.row.is-still .card.is-copy { display: none; }
.row.is-still .card__value { display: flex; flex-wrap: wrap; gap: 6px .2em; align-items: baseline; font-size: clamp(44px, 4.4vw, 64px); white-space: normal; }
.row.is-still .card__number { white-space: nowrap; } /* "21.66 M" is one number */
.row.is-still .card__unit { margin-left: 0; font-size: .36em; line-height: 1.2; }

/* --- what works today: three groups, each under its lamp ---------------------------------- */

.states { border-bottom: 1px solid var(--line); }
.state {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px var(--gap);
  padding: clamp(22px, 2.6vw, 36px) 0;
  border-top: 1px solid var(--line);
}
.state:first-child { border-top-color: var(--dark); }
.state h3 {
  grid-column: 1 / span 4;
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: clamp(20px, 1.9vw, 27px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.state h3 .lamp { position: relative; top: -2px; }
.state ul { grid-column: 5 / -1; }
/* A row is its title. The detail and the source open on a press. */
.state li { border-top: 1px solid var(--line); }
.state li:first-child { border-top: 0; }
.state__more > summary { padding: 13px 0; }
.state li:first-child .state__more > summary { padding-top: 2px; }
.state li strong { font-weight: 500; letter-spacing: -0.01em; }
.state__body { max-width: 64ch; padding: 0 36px 16px 0; }
.state__body p:first-child { color: var(--text-2); font-size: 15px; text-wrap: pretty; }
.state__body .source { margin-top: 6px; }

/* The six incident tags, as the app's menu shows them: the app's shape, the page's one dark. */
.tags { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; margin-top: clamp(32px, 4vw, 56px); }
.tags__say { color: var(--text-2); font-size: 15px; }
.tags__list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px 0 5px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--white);
  font-size: 14px;
  font-weight: 500;
}
.glyph { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--dark); color: var(--white); }
.glyph svg { width: 14px; height: 14px; fill: currentColor; }

/* --- the closing: two plain links, and the name ------------------------------------------- */

.closing { padding: var(--space) 0 0; }
.closing li { border-top: 1px solid var(--rule); }
.closing li:last-child { border-bottom: 1px solid var(--rule); }
.closing a {
  display: flex;
  gap: 24px;
  align-items: baseline;
  justify-content: space-between;
  padding: clamp(18px, 2.4vw, 36px) 0;
  font-size: clamp(38px, 6.6vw, 104px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.045em;
  text-decoration: none;
}
.closing a:focus-visible { outline-offset: -2px; }
.arrow { transition: transform 240ms var(--ease); }
.closing a:hover .arrow { transform: translateX(.1em); }

.foot { overflow: hidden; padding-top: 28px; }
.foot__in { display: flex; flex-wrap: wrap; gap: 6px 48px; justify-content: space-between; color: var(--dim); font-size: 14px; }
/* The name and, beside it, the sign-in's drawing of the cross. */
.foot__sign { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--gap); margin-top: clamp(40px, 7vw, 112px); }
.foot__logo { flex: 0 1 auto; width: min(38vw, 560px); height: auto; margin: 0 var(--pad) 1.2vw 0; }
@media (max-width: 700px) { .foot__logo { display: none; } }
.foot__word {
  margin: 0 0 0 -0.055em;
  padding: 0 var(--pad) .08em;
  font-size: max(15vw, 60px);
  font-weight: 700;
  line-height: .86;
  letter-spacing: -0.05em;
  white-space: nowrap;
}

.noscript { padding: 24px var(--pad); border-top: 1px solid var(--line); color: var(--text-2); font-size: 15px; }

/* --- a narrow screen --------------------------------------------------------------------- */

@media (max-width: 960px) {
  .panel__line { grid-column: 1 / -1; }
  .panel__specs { grid-column: 1 / -1; margin-top: 28px; }
  .index__row { grid-template-areas: "name name name name name name name name name name no no" "more more more more more more more more more more more more"; }
  .state h3, .state ul { grid-column: 1 / -1; }
  .hero__in { grid-template-columns: minmax(0, 1fr); }
  .hero__side { max-width: 420px; }
}

@media (max-width: 640px) {
  :root { --bar: 96px; }
  .bar { flex-wrap: wrap; align-content: space-between; padding: 7px 7px 3px 14px; }
  .bar__nav { order: 3; flex-basis: 100%; gap: 0; justify-content: space-between; padding-right: 7px; border-top: 1px solid rgb(29 29 31 / .12); }
  .bar__nav a { padding: 7px 0 6px; }
  .hero__in { padding-top: 150px; }
  .panel__word, .foot__word { font-size: 18vw; }
  .panel__specs { grid-template-columns: minmax(0, 1fr); }
  .panel__specs li { padding: 10px 0; }
  .index__body { grid-template-columns: minmax(0, 1fr); padding-right: 0; }
  .panel__art.has-photo { grid-template-columns: minmax(0, 1fr); height: auto; padding-bottom: 32px; }
  .panel__art.has-photo > img { height: clamp(180px, 50vw, 260px); }
  .panel__photo img { flex: none; aspect-ratio: 4 / 3; }
  .card { min-height: 280px; }
}

/* --- standing still ---------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .square, .arrow { transition: none; }
  .statement__text.is-reveal .w { color: var(--dark); transition: none; }
  .row__track { animation: none; }
}

/* What Florian is: four points, numbered, on hairlines. */
.points__kicker { font: 500 13px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .14em; color: var(--accent-strong); margin-bottom: clamp(20px, 2.4vw, 32px); }
.points { list-style: none; padding: 0; margin: clamp(48px, 6vw, 96px) 0 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.points li { display: grid; gap: clamp(28px, 4vw, 72px); align-content: space-between; min-height: clamp(150px, 16vw, 240px); padding: clamp(18px, 1.8vw, 28px) clamp(16px, 1.6vw, 24px) 0 0; border-right: 1px solid var(--line); }
.points li + li { padding-left: clamp(16px, 1.6vw, 24px); }
.points li:last-child { border-right: 0; }
.points__n { font: 500 13px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .12em; color: var(--off); }
.points__name { font-size: clamp(22px, 2.1vw, 34px); font-weight: 600; letter-spacing: -0.015em; line-height: 1.12; }
@media (max-width: 900px) {
  .points { grid-template-columns: 1fr 1fr; }
  .points li:nth-child(2) { border-right: 0; }
  .points li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .points li:nth-child(3) { padding-left: 0; }
}
@media (max-width: 520px) {
  .points { grid-template-columns: 1fr; }
  .points li { border-right: 0; padding-left: 0 !important; min-height: 0; border-top: 1px solid var(--line); }
  .points li:first-child { border-top: 0; }
}
.statement .statement__text { text-align: left; margin: 0; text-indent: 0; max-width: none; }
.points li { align-content: start; }
.points__name { align-self: end; min-height: 2.24em; }  /* two lines for every name: the first lines share one baseline */
.points li { grid-template-rows: 1fr auto; }
/* Each point has its screen, between its number and its name. */
.points li { grid-template-rows: auto auto 1fr; gap: clamp(14px, 1.4vw, 22px); min-height: 0; padding-bottom: clamp(18px, 1.8vw, 28px); }
.points__shot { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border: 1px solid var(--line); background: var(--mark); }
.points__name { align-self: start; }
/* The same width for every screen: each column has the same padding on both sides, and the
   list reaches out by that much, so the first and last screens still line up with the text. */
.points { --pp: clamp(16px, 1.6vw, 24px); margin-inline: calc(-1 * var(--pp)); border-top: 0; }
.points li, .points li + li { padding-inline: var(--pp) !important; border-top: 1px solid var(--line); }
@media (max-width: 520px) { .points li:first-child { border-top: 1px solid var(--line); } }

/* The screens are buttons: a lift on hover, and they open large (florian.js, screens()). */
.points__open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 2px; }
.points__open .points__shot { transition: transform 320ms var(--ease), box-shadow 320ms var(--ease), border-color 320ms var(--ease); }
.points__open:hover .points__shot, .points__open:focus-visible .points__shot { transform: translateY(-4px); box-shadow: 0 14px 34px rgb(29 29 31 / .14); border-color: rgb(29 29 31 / .22); }
.points__open:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .points__open .points__shot { transition: none; } .points__open:hover .points__shot { transform: none; } }

.viewer { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: clamp(16px, 4vw, 64px); background: rgb(16 17 18 / .92); }
.viewer[hidden] { display: none; }
.has-viewer { overflow: hidden; }
.viewer__frame { margin: 0; display: grid; gap: 14px; justify-items: start; max-width: min(1600px, 100%); }
.viewer__img { display: block; max-width: 100%; max-height: calc(100vh - 2 * clamp(16px, 4vw, 64px) - 48px); width: auto; height: auto; box-shadow: 0 30px 80px rgb(0 0 0 / .45); transform-origin: center; will-change: transform; }
.viewer__cap { color: var(--white); font-size: 15px; display: flex; gap: 14px; align-items: baseline; }
.viewer__n { font: 500 12px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .12em; color: var(--dim); }
.viewer__btn { position: absolute; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--rule); background: rgb(29 29 31 / .6); color: var(--white); font-size: 18px; cursor: pointer; transition: background 200ms var(--ease), border-color 200ms var(--ease); }
.viewer__btn:hover, .viewer__btn:focus-visible { background: rgb(255 255 255 / .12); border-color: rgb(255 255 255 / .5); outline: none; }
.viewer__close { top: 18px; right: 18px; }
.viewer__prev { left: 18px; top: 50%; transform: translateY(-50%); }
.viewer__next { right: 18px; top: 50%; transform: translateY(-50%); }
@media (max-width: 700px) { .viewer__prev, .viewer__next { top: auto; bottom: 18px; transform: none; } }

/* --- the application: real screens of the app, opened large on a click (florian.js, screens()) --- */
.gallery { padding: var(--space) 0; }
.gallery__kicker { font: 500 13px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .14em; color: rgb(120 220 160); margin-bottom: clamp(20px, 2.4vw, 32px); }
.gallery__title { font-size: var(--statement); font-weight: 400; letter-spacing: -0.035em; line-height: 1.1; }
.gallery__grid { list-style: none; padding: 0; margin: clamp(48px, 6vw, 96px) 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3vw, 48px) var(--gap); }
.gallery__item { display: grid; gap: 14px; align-content: start; min-width: 0; }
.gallery__item--wide { grid-column: span 2; }
.gallery__item--tall .gallery__shot { aspect-ratio: auto; height: 100%; object-fit: cover; object-position: top; }
.gallery__item--tall { grid-template-rows: 1fr auto; }
.gallery__item--tall .gallery__open { height: 100%; min-height: 0; }
.gallery__open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; overflow: hidden; }
.gallery__shot { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; border: 1px solid var(--rule); background: #0A0A0A; transition: transform 320ms var(--ease), box-shadow 320ms var(--ease), border-color 320ms var(--ease); }
.gallery__open:hover .gallery__shot, .gallery__open:focus-visible .gallery__shot { transform: translateY(-4px); box-shadow: 0 18px 44px rgb(0 0 0 / .45); border-color: rgb(255 255 255 / .5); }
.gallery__open:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.gallery__cap { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: baseline; }
.gallery__n { grid-row: span 2; font: 500 12px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .12em; color: var(--dim); }
.gallery__name { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.gallery__say { color: var(--dim); font-size: 15px; line-height: 1.45; }
.gallery__note { margin-top: clamp(32px, 4vw, 56px); color: var(--dim); font-size: 14px; line-height: 1.5; max-width: 70ch; }
.gallery__note .mark { color: var(--dark); margin-right: 6px; }
@media (prefers-reduced-motion: reduce) { .gallery__shot { transition: none; } .gallery__open:hover .gallery__shot { transform: none; } }
@media (max-width: 900px) {
  .gallery__grid { grid-template-columns: 1fr 1fr; }
  .gallery__item--wide { grid-column: span 2; }
  .gallery__item--tall { grid-row: span 2; }
}
@media (max-width: 560px) {
  .gallery__grid { grid-template-columns: 1fr; }
  .gallery__item--wide { grid-column: auto; }
  .gallery__item--tall { grid-row: auto; }
  .gallery__item--tall .gallery__shot { height: auto; aspect-ratio: 390 / 600; }
}
/* The phone's screen is as tall as the row (set by the wide screen beside it), not by its own picture. */
.gallery__item--tall .gallery__open { position: relative; height: 100%; min-height: 240px; }
.gallery__item--tall .gallery__shot { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: top center; }
@media (max-width: 560px) {
  .gallery__item--tall .gallery__open { height: auto; aspect-ratio: 390 / 600; }
}
/* With no heading above it, the grid starts at the top of the section. */
.gallery__grid { margin-top: 0; }
