/* rickiskandar.com.au. Clinical instrument, two modes.
   No framework, no build step, no JavaScript. */

/* ==========================================================================
   TOKENS: the only place a colour, size, space or timing value is defined.
   ========================================================================== */

@property --e {              /* how far apart a figure's parts are: 1 apart, 0 seated */
  syntax: "<number>";
  inherits: true;
  initial-value: 1;
}

@property --p {              /* how far the home page's figure has come: 0 a drawing, 1 finished and real */
  syntax: "<number>";
  inherits: true;
  initial-value: 1;
}

@property --slide { syntax: "<integer>"; inherits: false; initial-value: 1; }
@property --sec { syntax: "<integer>"; inherits: false; initial-value: 0; }
@property --min { syntax: "<integer>"; inherits: false; initial-value: 0; }

@property --pos {
  syntax: "<integer>";
  inherits: false;
  initial-value: 0;
}

:root {
  /* Mode A: dark */
  --dark-bg: #0C0C0C;
  --dark-surface: #151515;
  --dark-hairline: #2B2B2B;
  --dark-text: #F2F2F0;
  --dark-text-2: #A3A3A0;         /* 7.7:1 on bg, 7.2:1 on surface: secondary, but read without effort */
  --dark-accent: #C9A24D;
  --dark-accent-hi: #E3C879;
  --dark-steel: #8E8E8B;

  /* Mode B: light */
  --light-bg: #F4F4F2;
  --light-surface: #FFFFFF;
  --light-hairline: #D6D6D3;
  --light-text: #111111;
  --light-text-2: #4D4D4B;        /* 7.7:1 on bg, 8.5:1 on surface */
  --light-accent: #7A5C14;        /* 5.7:1 on bg: the gold is also used as text (numerals, hover) */
  --light-accent-hi: #A8842F;
  --light-steel: #777775;

  /* In use. light-dark() picks a mode from color-scheme, which the
     mode switch sets further down. Nothing else changes per mode. */
  --bg: light-dark(var(--light-bg), var(--dark-bg));
  --surface: light-dark(var(--light-surface), var(--dark-surface));
  --hairline: light-dark(var(--light-hairline), var(--dark-hairline));
  --text: light-dark(var(--light-text), var(--dark-text));
  --text-2: light-dark(var(--light-text-2), var(--dark-text-2));
  --accent: light-dark(var(--light-accent), var(--dark-accent));
  --accent-hi: light-dark(var(--light-accent-hi), var(--dark-accent-hi));
  --steel: light-dark(var(--light-steel), var(--dark-steel));

  /* Faces */
  --sans: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  /* Type: modular scale 1.25 from 16px. Line heights are multiples of 8px.
     Two exceptions, both for reading. Nothing meant to be read is set below 14px, so the step
     under body is 14px rather than 12.8px. On wide screens body and lead step up a size and
     body takes a 28px line (half a unit off the grid, for a 1.55 leading on long lines). */
  --t-1: 0.875rem;         /* notes, footer: 14px */
  --t0: 1rem;              /* body: 16px, 18px wide */
  --lh0: var(--u3);        /* body line: 24px, 28px wide */
  --t1: 1.25rem;           /* lead: 20px, 22px wide */
  --t2: 1.5625rem;
  --t3: 1.953rem;
  --t4: 2.441rem;
  --t6: 3.815rem;
  --t7: 4.768rem;
  --t8: 5.96rem;
  --t9: 7.451rem;
  --t10: 9.313rem;
  --label: 0.8125rem;      /* data labels: mono capitals, tracked. 13px (as large to the eye as 15px
                              lower case), 14px wide */
  --tracking: 0.08em;

  /* Space: 8px unit */
  --u1: 0.5rem;
  --u2: 1rem;
  --u3: 1.5rem;
  --u4: 2rem;
  --u6: 3rem;
  --u8: 4rem;
  --u12: 6rem;
  --inset: var(--u2);      /* text sits one inset off its grid line */
  --gutter: var(--u2);     /* page edge to the outer grid line */
  --rail-h: 6.75rem;       /* fixed nav: 64px rail + a 44px link row (a full touch target) on small screens */
  --pitch: 2rem;           /* one position on a numeral counter */
  --zoom: 1;               /* how far the root size has stepped up on very wide screens; px-built figures scale by it */

  /* One restored tooth: crown, abutment, implant. Used as a mask in the rail. */
  --tooth: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 32' fill='none' stroke='%23000' stroke-width='1.2' stroke-linejoin='round'%3E%3Cpath d='M6 12Q4 3 9 2.5Q12 2 12 4.5Q12 2 15 2.5Q20 3 18 12ZM10 12L10.5 15.5H13.5L14 12M9 16H15L14 28Q12 30.5 10 28ZM9.3 19.5H14.7M9.6 23H14.4M9.9 26.5H14.1'/%3E%3C/svg%3E");

  /* Motion */
  --micro: 120ms;
  --component: 240ms;
  --section: 480ms;
  --stop: cubic-bezier(0.2, 0, 0, 1);

  color-scheme: dark;
}

/* Mode switch. Unchecked follows the system mode; checked swaps it. */
:root:has(#mode:checked) { color-scheme: light; }
@media (prefers-color-scheme: light) {
  :root { color-scheme: light; }
  :root:has(#mode:checked) { color-scheme: dark; }
}

@media (min-width: 64rem) {
  :root {
    --rail-h: 4rem;
    --gutter: clamp(var(--u4), 3.333vw, var(--u8));   /* 34px at 1024, 48px at 1440, 64px at 1920 */
    --t0: 1.125rem;
    --lh0: 1.75rem;
    --t1: 1.375rem;
    --label: 0.875rem;
  }
}

/* Very wide screens. The layout runs edge to edge, so rather than leave the type stranded
   at laptop size the whole composition steps up: nearly every size is in rem, so one root
   size moves type, spacing and the grid's measures together. Gentle, and in whole pixels:
   17px from 1760 wide, 18px from 2080, 19px from 2400. Media queries stay in 16px rem. */
@media (min-width: 110rem) { :root { font-size: 106.25%; --zoom: 1.0625; } }
@media (min-width: 130rem) { :root { font-size: 112.5%; --zoom: 1.125; } }
@media (min-width: 150rem) { :root { font-size: 118.75%; --zoom: 1.1875; } }

/* ==========================================================================
   FACES: self-hosted, variable
   ========================================================================== */

@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   BASE
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--rail-h);
  background: var(--bg);
}

body {
  margin: 0;
  padding-top: var(--rail-h);
  color: var(--text);
  background: var(--bg);
  font: 400 var(--t0)/var(--lh0) var(--sans);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, dl, dd, ol, ul { margin: 0; padding: 0; }
h1, h2, h3 { text-wrap: balance; }   /* no single word left on a heading's last line */
ol, ul { list-style: none; }
address { font-style: normal; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 2px; }

.skip {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  padding: var(--u2);
  background: var(--surface);
  translate: 0 -100%;
}
.skip:focus { translate: 0 0; }

.label {
  font: 500 var(--label)/var(--u2) var(--mono);
  letter-spacing: var(--tracking);
  text-transform: uppercase;
  color: var(--text-2);
}

/* ==========================================================================
   GRID: 12 columns, no gutters. Layout only; nothing is drawn.
   ========================================================================== */

.plate,
.rail__inner {
  width: calc(100% - 2 * var(--gutter));
  margin-inline: auto;
}

/* Wide screens: the grid runs the full width of the window, less a gutter each side.
   Measured from 100% of the parent, not 100vw, so a scrollbar never pushes it past the edge.
   Snapped down to a multiple of 12px so every column is a whole number of pixels and the
   hairlines land on pixel edges; the remainder, under 12px, is shared by the two gutters.
   Text keeps its own measure (max-width in rem) inside its columns, so lines stay readable. */
@media (min-width: 64rem) {
  .plate,
  .rail__inner {
    width: round(down, 100% - 2 * var(--gutter), 12px);
  }
}

/* ==========================================================================
   PLATE: one section. Its top rule is the bottom rule of the plate above.
   ========================================================================== */

.plate {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  border-top: 1px solid var(--steel);
  view-timeline: --plate block;
}

.plate > * { grid-column: 1 / -1; }

/* Registration ticks where each section rule meets the outer grid lines. */
.plate::before,
.plate::after {
  content: "";
  position: absolute;
  top: calc(var(--u1) * -1 - 1px);
  width: 1px;
  height: calc(var(--u2) + 1px);
  background: var(--steel);
}
.plate::before { left: 0; }
.plate::after { right: 0; }
.hero::before, .hero::after { content: none; }

.plate__index {
  display: flex;
  align-items: baseline;
  gap: var(--u2);
  padding: var(--u2) var(--inset) 0;
}

.index {
  font: 500 var(--t2)/var(--pitch) var(--mono);
  color: var(--accent);
}

.plate__title {
  padding: var(--u2) var(--inset) 0;
  overflow: clip;
}

.plate__title h2 {
  display: inline-block;
  font: 400 var(--t4)/var(--u6) var(--sans);
  letter-spacing: -0.03em;
}

@media (min-width: 64rem) {
  .plate__index { grid-column: 1 / span 2; grid-row: 1; display: block; }
  .plate__title { grid-column: 3 / -1; grid-row: 1; }
}

/* Numeral counter: a one-line window over a strip of numerals. */
.wheel {
  display: inline-block;
  height: var(--pitch);
  line-height: var(--pitch);
  overflow: clip;
  vertical-align: top;
}
.wheel__strip { display: block; position: relative; }
.wheel__strip::before {
  content: attr(data-prev);
  position: absolute;
  left: 0;
  bottom: 100%;
  white-space: pre;
}
.wheel--t1 { --turns: 1; }
.wheel--t2 { --turns: 2; }
.wheel--t3 { --turns: 3; }
.wheel--t4 { --turns: 4; }
.wheel--t5 { --turns: 5; }
.wheel--t6 { --turns: 6; }
.wheel--t7 { --turns: 7; }

/* ==========================================================================
   RAIL: fixed nav
   ========================================================================== */

.rail {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  background: var(--bg);
}

.rail__inner {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "brand scan mode" "nav nav nav";
  align-items: center;
  border-bottom: 1px solid var(--steel);
}

.brand {
  grid-area: brand;
  padding-inline: var(--inset);
  font: 500 var(--t1)/var(--u8) var(--sans);
  letter-spacing: -0.02em;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: var(--u1);
  white-space: nowrap;
}
.brand:hover { color: inherit; }

/* The arch. Twelve places along a jaw. It starts with nothing but a sunken, dashed ridge:
   bone that is not loaded is lost. One place at a time an implant goes in, then its
   abutment, then its crown, and where a tooth stands the ridge is held level and solid.
   What is given a tooth keeps its bone; what has none loses even that.
   It also keeps time: one tooth every five seconds, built in five one-second steps,
   a full arch each minute. */
.scan { grid-area: scan; position: relative; height: var(--u4); }
.scan > * { position: absolute; inset: 0; }
.scan__lost { top: 66%; bottom: auto; height: 1px; background: repeating-linear-gradient(90deg, var(--steel) 0 2px, transparent 2px 5px); }
.scan__bone { top: 50%; bottom: auto; height: 1px; background: var(--text); }
.scan__done { background: var(--text); -webkit-mask: var(--tooth) 0 0 / calc(100% / 12) 100% repeat-x; mask: var(--tooth) 0 0 / calc(100% / 12) 100% repeat-x; }
.scan__now { right: auto; width: calc(100% / 12); display: none; }
@media (max-width: 39.99rem) { .scan__done { display: none; } }
.scan__now::before { content: ""; position: absolute; inset: 0; background: var(--accent); -webkit-mask: var(--tooth) center / contain no-repeat; mask: var(--tooth) center / contain no-repeat; }

/* Time on the page, to the second. Shown only where it can run. */
.clock { display: none; padding-inline: var(--inset) 0; white-space: nowrap; }
.clock::after {
  counter-reset: m var(--min) s var(--sec);
  content: " " counter(m, decimal-leading-zero) ":" counter(s, decimal-leading-zero);
  color: var(--text);
}

/* Scroll position readout: desktop only, and hidden unless scroll timelines are available. */
.readout { display: none; min-width: 6.5rem; padding-inline: var(--inset); text-align: right; white-space: nowrap; }

.rail__nav {
  grid-area: nav;
}
.rail__inner::before {              /* hairline between the two rows on small screens */
  content: "";
  position: absolute;
  inset: var(--u8) 0 auto;
  height: 1px;
  background: var(--hairline);
}
.rail__nav ul { display: flex; gap: var(--u2); padding-inline: var(--inset); }
.rail__nav a {
  position: relative;
  display: block;
  font: 500 var(--label)/2.75rem var(--mono);   /* 44px: a full touch target; the rail's second row is this tall */
  letter-spacing: var(--tracking);
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.rail__nav .num { color: var(--text-2); }
.rail__nav a:hover { color: var(--text); }
.rail__nav a:hover .num { color: var(--accent); }
.rail__nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 var(--u1);
  height: 1px;
  background: var(--accent);
  transform-origin: left;
  scale: 0 1;
}
.rail__nav a:hover::after,
.rail__nav a:focus-visible::after { scale: 1 1; }

/* Mode switch: a checkbox, read by :has() on the root. */
.mode {
  grid-area: mode;
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--u1);
  height: var(--u8);
  padding-inline: var(--inset);
  cursor: pointer;
}
.mode__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.mode__track {
  position: relative;
  width: var(--u4);
  height: var(--u2);
  border: 1px solid var(--steel);
}
.mode__track::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: var(--u1);
  height: var(--u1);
  background: var(--steel);
}
.mode__input:checked ~ .mode__track { border-color: var(--accent); }
.mode__input:checked ~ .mode__track::before { translate: var(--u2) 0; background: var(--accent); }
.mode__input:focus-visible ~ .mode__track { outline: 2px solid var(--accent-hi); outline-offset: 2px; }
.mode:hover .label { color: var(--text); }

@media (min-width: 64rem) {
  .rail__inner {
    grid-template-columns: auto 1fr auto auto auto auto;
    grid-template-areas: "brand scan clk pos nav mode";
  }
  .rail__inner::before { content: none; }
  .readout { grid-area: pos; }
  .clock { grid-area: clk; }
  .scan { margin-inline: var(--u2); }
  .rail__nav ul { gap: var(--u4); padding-inline: var(--u2); }
  .rail__nav a { line-height: var(--u8); }
  .rail__nav a::after { bottom: var(--u2); }
}

/* ==========================================================================
   01 IDENTITY: hero
   ========================================================================== */

.hero {
  border-top: 0;                 /* the rail's rule is this plate's top rule */
  grid-template-rows: auto 1fr auto auto auto;
  min-height: calc(100svh - var(--rail-h));
}

/* Narrow screens, top to bottom: number, figure, name, sentence, actions, credentials. */
.hero .pin__stick { grid-template-rows: auto 1fr auto auto auto auto; min-height: calc(100svh - var(--rail-h)); }

.wordmark {
  grid-row: 3;
  padding: var(--u12) var(--inset) 0;
  font-weight: 400;
}
.wordmark__prefix { display: block; margin-bottom: var(--u1); }
.wordmark__name {
  display: block;
  overflow: clip;
  font: 300 var(--t6)/var(--u8) var(--sans);
  letter-spacing: -0.05em;
}
.wordmark__type { display: block; }
.wordmark::after {                /* the accent underline */
  content: "";
  display: block;
  height: 1px;
  margin-top: var(--u3);
  background: var(--accent);
  transform-origin: left;
}

.positioning {
  grid-row: 4;
  padding: var(--u3) var(--inset) 0;
  overflow: clip;
  font: 400 var(--t1)/var(--u4) var(--sans);
  text-wrap: balance;               /* even lines, no stranded last word */
}
.positioning span { display: block; max-width: 36rem; }   /* about 50 characters a line at either size */

/* Actions: where to go next. Booking details live only in 04 Practice, so the first action goes there. */
.hero__actions {
  grid-row: 5;
  display: flex;
  flex-wrap: wrap;
  gap: var(--u2);
  padding: var(--u4) var(--inset) 0;
}

.spec {
  grid-row: 6;
  display: grid;
  grid-template-columns: subgrid;
  margin-top: var(--u6);
  border-top: 1px solid var(--hairline);
}
.spec__cell {
  grid-column: 1 / -1;
  padding: var(--u2) var(--inset);
  overflow: clip;
}
.spec__cell + .spec__cell { border-top: 1px solid var(--hairline); }
.spec dt { margin-bottom: var(--u1); }
.spec dd { font: 400 var(--t0)/var(--lh0) var(--sans); }

@media (min-width: 40rem) {
  .wordmark__name { font-size: var(--t8); line-height: var(--u12); }
  .positioning { font-size: var(--t2); }
  /* Tablets: the three credentials read across, one cell each. */
  .spec__cell { grid-column: span 4; }
  .spec__cell + .spec__cell { border-top: 0; border-left: 1px solid var(--hairline); }
}

/* Wide screens: the name fills the top of the section in two lines with the sentence and
   actions under it, the credentials stack in the left column under the section number,
   and the figure takes the right. Rows: 1 number, 2 name, 3 give, 4 sentence, 5 actions. */
@media (min-width: 64rem) {
  .hero { grid-template-rows: auto 1fr auto; }
  .hero .pin__stick { grid-template-rows: auto auto 1fr auto auto; }
  .wordmark { grid-column: 3 / span 6; grid-row: 1 / span 2; padding-top: var(--u6); }
  .wordmark__prefix { margin-bottom: var(--u2); }
  .wordmark__name { max-width: min-content; font-size: var(--t9); line-height: 7.5rem; }
  .positioning { grid-column: 3 / span 5; grid-row: 4; padding-top: var(--u4); }
  .hero__actions { grid-column: 3 / span 6; grid-row: 5; padding-bottom: var(--u6); }   /* one column wider than the sentence, so both buttons stay on one line at 1024 */
  .spec { display: block; grid-column: 1 / span 2; grid-row: 3 / span 3; align-self: end; margin: 0 0 var(--u4); border-top: 0; }
  .spec__cell { padding: var(--u2) 0 var(--u2) var(--inset); border-top: 1px solid var(--hairline); }
  .spec__cell + .spec__cell { border-top: 1px solid var(--hairline); border-left: 0; }
}
@media (min-width: 64rem) and (max-width: 79.99rem) {
  .spec dd { font-size: 1rem; line-height: var(--u3); }   /* the left column is narrow here: a registration number must not wrap */
}
@media (min-width: 80rem) {
  .wordmark__name { font-size: var(--t10); line-height: 9rem; }
}
/* Very wide, tall screens: the name takes more of the room it has. */
@media (min-width: 120rem) and (min-height: 60rem) {
  .wordmark__name { font-size: 12rem; line-height: 11.5rem; }
  .positioning { font-size: var(--t3); line-height: 2.5rem; }
  .positioning span { max-width: 44rem; }
}
/* Shorter wide screens: the hero is held one screen tall while it plays (see HERO PIN under
   MOTION), so the name and the space around it step down to keep everything on screen. */
@media (min-width: 64rem) and (max-height: 51.99rem) {
  .wordmark__name { font-size: var(--t9); line-height: 7.5rem; }
}
@media (min-width: 64rem) and (max-height: 45.99rem) {
  .wordmark__name { font-size: var(--t8); line-height: var(--u12); }
  .hero__actions { padding-bottom: var(--u4); }
  .spec { margin-bottom: var(--u2); }
}

/* --------------------------------------------------------------------------
   FIGURES. One line language on every page:
     grey solid      outer surfaces
     bright solid    internal surfaces that mate, and the working part
     dashed accent   planned or projected
   Models are real 3D built from flat parts: copies of one profile drawing
   fanned around the vertical axis, and circles laid flat for the rings.
   -------------------------------------------------------------------------- */

.fig {
  --s: 0.5;                        /* figure scale */
  position: relative;
  height: 22rem;
  perspective: 60rem;
}
.hero .fig { grid-row: 2; height: 24rem; }
.fig--side { height: 16rem; }
.fig--side .fig__note { top: auto; bottom: 0; }
.fig--arch { --s: 0.75; }
.fig__defs { position: absolute; }

/* The home page's model, in one box of model px (see .fig__stage); tilted and turned below. */
.model {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}
.model__spin {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}
/* Each part is drawn where it sits when assembled, then moved along the axis by --off (model px). */
.part {
  position: absolute;
  inset: 0;
  translate: 0 calc(var(--off) * 1px);
  transform-style: preserve-3d;
}

/* Vertical sections through the axis, fanned around it. Each is only as tall as its part. */
.model__plane {
  position: absolute;
  left: 0;
  width: 100%;
  overflow: visible;
  fill: none;
  stroke-width: 1;
}
.model__plane:nth-of-type(2) { rotate: y 30deg; }
.model__plane:nth-of-type(3) { rotate: y 60deg; }
.model__plane:nth-of-type(4) { rotate: y 90deg; }
.model__plane:nth-of-type(5) { rotate: y 120deg; }
.model__plane:nth-of-type(6) { rotate: y 150deg; }
.part--screw .model__plane:nth-of-type(2) { rotate: y 60deg; }
.part--screw .model__plane:nth-of-type(3) { rotate: y 120deg; }
.p-out { stroke: var(--steel); vector-effect: non-scaling-stroke; }
.p-in,
.part--screw .p-out { stroke: var(--text); vector-effect: non-scaling-stroke; }

/* Level contours of the real parts, laid flat at their heights. */
.contour {
  position: absolute;
  left: 0;
  width: 100%;
  aspect-ratio: 1;
  overflow: visible;
  fill: none;
  stroke-width: 1;
  translate: 0 -50%;
  rotate: x 90deg;
}
/* Circles laid flat: the rings and thread crests of the drawn parts. */
.ring {
  position: absolute;
  left: 50%;
  border: 1px solid var(--steel);
  border-radius: 50%;
  translate: -50% -50%;
  rotate: x 90deg;
}
.ring--in,
.part--screw .ring { border-color: var(--text); }
.part--screw .model__plane { top: 436px; height: 107px; }
.part--crown .model__plane { top: 321px; height: 151px; }
.part--abutment .model__plane { top: 367px; height: 152px; }
.part--implant .model__plane { top: 457px; height: 143px; }
.part--crown .model__plane:nth-of-type(2) { rotate: y 15deg; }
.part--crown .model__plane:nth-of-type(3) { rotate: y 30deg; }
.part--crown .model__plane:nth-of-type(4) { rotate: y 45deg; }
.part--crown .model__plane:nth-of-type(5) { rotate: y 60deg; }
.part--crown .model__plane:nth-of-type(6) { rotate: y 75deg; }
.part--crown .model__plane:nth-of-type(7) { rotate: y 90deg; }
.part--crown .model__plane:nth-of-type(8) { rotate: y 105deg; }
.part--crown .model__plane:nth-of-type(9) { rotate: y 120deg; }
.part--crown .model__plane:nth-of-type(10) { rotate: y 135deg; }
.part--crown .model__plane:nth-of-type(11) { rotate: y 150deg; }
.part--crown .model__plane:nth-of-type(12) { rotate: y 165deg; }
.part--screw .ring:nth-of-type(1) { top: 438.3px; width: 19.2px; height: 19.2px; }
.part--screw .ring:nth-of-type(2) { top: 447.9px; width: 19.2px; height: 19.2px; }
.part--screw .ring:nth-of-type(3) { top: 516.3px; width: 16.8px; height: 16.8px; }
.part--screw .ring:nth-of-type(4) { top: 525.9px; width: 16.8px; height: 16.8px; }
.part--screw .ring:nth-of-type(5) { top: 535.5px; width: 16.8px; height: 16.8px; }
.part--screw .ring:nth-of-type(6) { top: 540.3px; width: 10.8px; height: 10.8px; }
.part--crown svg:nth-of-type(13) { top: 466.3px; }
.part--crown svg:nth-of-type(14) { top: 458.1px; }
.part--crown svg:nth-of-type(15) { top: 449.9px; }
.part--crown svg:nth-of-type(16) { top: 441.6px; }
.part--crown svg:nth-of-type(17) { top: 433.4px; }
.part--crown svg:nth-of-type(18) { top: 425.2px; }
.part--crown svg:nth-of-type(19) { top: 417px; }
.part--crown svg:nth-of-type(20) { top: 408.8px; }
.part--crown svg:nth-of-type(21) { top: 400.6px; }
.part--crown svg:nth-of-type(22) { top: 392.3px; }
.part--crown svg:nth-of-type(23) { top: 384.1px; }
.part--crown svg:nth-of-type(24) { top: 375.9px; }
.part--crown svg:nth-of-type(25) { top: 367.7px; }
.part--crown svg:nth-of-type(26) { top: 359.5px; }
.part--crown svg:nth-of-type(27) { top: 351.3px; }
.part--crown svg:nth-of-type(28) { top: 343px; }
.part--crown svg:nth-of-type(29) { top: 334.8px; }
.part--crown svg:nth-of-type(30) { top: 326.6px; }
.part--crown .ring:nth-of-type(1) { top: 347.5px; width: 24px; height: 24px; }
.part--crown .ring:nth-of-type(2) { top: 369.9px; width: 24px; height: 24px; }
.part--abutment svg:nth-of-type(7) { top: 510.3px; }
.part--abutment svg:nth-of-type(8) { top: 495.9px; }
.part--abutment svg:nth-of-type(9) { top: 477.9px; }
.part--abutment svg:nth-of-type(10) { top: 458.7px; }
.part--abutment svg:nth-of-type(11) { top: 441.9px; }
.part--abutment svg:nth-of-type(12) { top: 423.9px; }
.part--abutment svg:nth-of-type(13) { top: 405.9px; }
.part--abutment svg:nth-of-type(14) { top: 387.9px; }
.part--abutment svg:nth-of-type(15) { top: 373.5px; }
.part--implant .ring:nth-of-type(1) { top: 459.9px; width: 51.6px; height: 51.6px; }
.part--implant .ring:nth-of-type(2) { top: 467.1px; width: 51.6px; height: 51.6px; }
.part--implant .ring:nth-of-type(3) { top: 474.3px; width: 51.6px; height: 51.6px; }
.part--implant .ring:nth-of-type(4) { top: 483.9px; width: 50.4px; height: 50.4px; }
.part--implant .ring:nth-of-type(5) { top: 493.5px; width: 49.2px; height: 49.2px; }
.part--implant .ring:nth-of-type(6) { top: 503.1px; width: 48px; height: 48px; }
.part--implant .ring:nth-of-type(7) { top: 512.7px; width: 46.8px; height: 46.8px; }
.part--implant .ring:nth-of-type(8) { top: 522.3px; width: 45.6px; height: 45.6px; }
.part--implant .ring:nth-of-type(9) { top: 531.9px; width: 44.4px; height: 44.4px; }
.part--implant .ring:nth-of-type(10) { top: 541.5px; width: 43.2px; height: 43.2px; }
.part--implant .ring:nth-of-type(11) { top: 551.1px; width: 42px; height: 42px; }
.part--implant .ring:nth-of-type(12) { top: 560.7px; width: 40.8px; height: 40.8px; }
.part--implant .ring:nth-of-type(13) { top: 570.3px; width: 39.6px; height: 39.6px; }
.part--implant .ring:nth-of-type(14) { top: 579.9px; width: 38.4px; height: 38.4px; }
.part--implant .ring:nth-of-type(15) { top: 597.9px; width: 19.2px; height: 19.2px; }
.part--implant .ring:nth-of-type(16) { top: 459.9px; width: 42px; height: 42px; }
.part--implant .ring:nth-of-type(17) { top: 501.9px; width: 27.6px; height: 27.6px; }
.part--implant .ring:nth-of-type(18) { top: 516.3px; width: 27.6px; height: 27.6px; }
.part--implant .ring:nth-of-type(19) { top: 530.7px; width: 19.7px; height: 19.7px; }
.part--implant .ring:nth-of-type(20) { top: 545.1px; width: 19.7px; height: 19.7px; }
.part--implant .ring:nth-of-type(21) { top: 559.5px; width: 19.7px; height: 19.7px; }
.part--implant .ring:nth-of-type(22) { top: 573.9px; width: 15.8px; height: 15.8px; }

/* Planned axis: runs through every part and on past both ends. */
.model__axis {
  position: absolute;
  left: 50%;
  top: -40px;
  bottom: -48px;
  border-left: calc(1px / var(--s)) dashed var(--accent);
}

/* Part names, each on a leader line. They travel with their parts. */
.fig__parts li {
  position: absolute;
  left: calc(var(--cx, 50%) + 104px * var(--s));
  top: calc(50% + var(--u2) + (var(--y) + var(--dy) * var(--e)) * var(--s));
  display: flex;
  align-items: center;
  gap: var(--u1);
  translate: 0 -50%;
  white-space: nowrap;
}
.fig__parts li::before { content: ""; width: var(--u1); height: 1px; background: var(--steel); }
.fig__note { position: absolute; left: var(--inset); top: var(--u1); }

/* BEGIN generated: hero figure (tools/hero-figure: edit params.json and re-run, not this block) */
/* The home page's figure, rendered. The wireframe model stands above a map of the Central Coast and
   a pre-rendered layer sits under every part. One number, --p (0 to 1, see MOTION), says how far
   the figure has come; each part's place, the turn about the axis, which drawing has filled in and
   which rendered frame shows all follow from it. The frames were rendered with this projection (no
   perspective, a fixed 28deg tilt), so a frame sits on its drawing at any scale. --p rests at 1,
   so with reduced motion or without scroll timelines the figure is finished: one still image. */
.fig--real {
  --tilt: 28deg;
  --ct: cos(var(--tilt));
  --im-u: calc(1 - clamp(0, (var(--p) - 0.2) / 0.24, 1));
  --im-off: calc(150 - 150 * var(--im-u) * var(--im-u) * (3 - 2 * var(--im-u)));
  --ab-u: calc(1 - clamp(0, (var(--p) - 0.36) / 0.22, 1));
  --ab-off: calc(150 - 226 * var(--ab-u) * var(--ab-u) * var(--ab-u));
  --cr-u: calc(1 - clamp(0, (var(--p) - 0.52) / 0.24, 1));
  --cr-off: calc(150 - 346 * var(--cr-u) * var(--cr-u) * var(--cr-u));
  --sc-u: calc(1 - clamp(0, (var(--p) - 0.68) / 0.22, 1));
  --sc-off: calc(150 - 584 * var(--sc-u) * var(--sc-u) * var(--sc-u));
  /* Where the model box sits: at the start the exploded parts are near the top of the window; at
     the end the map rests on the bottom, the finished figure standing on it. */
  --settle: clamp(0, (var(--p) - 0.4) / 0.52, 1);
  --stage-a: calc(var(--u4) + 264px * var(--s));
  --stage-b: calc(100% - var(--u1) - 1.5rem - 407.1px * var(--s));
  --stage-top: calc(var(--stage-a) + (var(--stage-b) - var(--stage-a)) * var(--settle) * var(--settle) * (3 - 2 * var(--settle)));
  perspective: none;
}
@media (min-width: 64rem) {
  /* beside the text: centred to start, then down to the foot of the block, level with the buttons */
  .fig--real {
    --stage-a: calc(50% - 71.6px * var(--s) - 0.75rem);
    --stage-b: calc(100% - var(--u6) - 1.5rem - 407.1px * var(--s));
  }
}
/* The model box, in model px, scaled as one flat picture. */
.fig__stage {
  position: absolute;
  left: 50%;
  top: var(--stage-top);
  width: 256px;
  height: 602px;
  translate: -50% -50%;
  scale: var(--s);
}
.fig--real .model { rotate: x calc(-1 * var(--tilt)); }
.fig--real .model__spin { rotate: y calc(10deg + 90deg * min(var(--p) / 0.92, 1)); }
.part--implant { --off: var(--im-off); }
.part--implant > * { opacity: calc(1 - clamp(0, (var(--p) - 0.14) / 0.1, 1)); }
.part--abutment { --off: var(--ab-off); }
.part--abutment > * { opacity: calc(1 - clamp(0, (var(--p) - 0.34) / 0.1, 1)); }
.part--crown { --off: var(--cr-off); }
.part--crown > * { opacity: calc(1 - clamp(0, (var(--p) - 0.5) / 0.1, 1)); }
.part--screw { --off: var(--sc-off); }
.part--screw > * { opacity: calc(1 - clamp(0, (var(--p) - 0.66) / 0.1, 1)); }
.fig--real .model__axis { top: calc((436 + var(--sc-off)) * 1px); bottom: -17px; opacity: calc(1 - clamp(0, (var(--p) - 0.82) / 0.12, 1)); }   /* from the screw's head down to the ground */

/* The map, laid flat on the ground. North is away from the viewer; the marked circle on the axis is
   the planned site. */
.model__map {
  position: absolute;
  left: -130px;
  top: 362px;
  width: 516px;
  height: 516px;
  overflow: visible;
  fill: none;
  stroke-width: 1;
  rotate: x 90deg;
  opacity: calc(1 - clamp(0, (var(--p) - 0.06) / 0.14, 1));
}
.model__map * { vector-effect: non-scaling-stroke; }
.map__shore { stroke: var(--steel); }
.map__region { stroke: var(--steel); stroke-dasharray: 1 3; }
.map__edge { stroke: var(--steel); stroke-dasharray: 3 3; }
.map__site { stroke: var(--accent); stroke-dasharray: 2 2; }

/* Rendered layers, back to front, each at its part's place. The sheets themselves are set under
   MOTION, so they load only when the figure plays. */
.real { position: absolute; inset: 0; }
.real > *, .real__site > * { position: absolute; display: block; background-repeat: no-repeat; }
.real__map, .real__shade { left: -57px; top: 521px; width: 370px; height: 195px; background-size: 100% 100%; }
.real__map { opacity: max(0.003, clamp(0, (var(--p) - 0.02) / 0.08, 1)); }
.real__map--final { opacity: max(0.003, clamp(0, (var(--p) - 0.08) / 0.1, 1)); }
.real__shade { --a: 0; --b: 0.92; --n: 40; --c: 5; --r: 8; background-size: 500% 800%; }
/* The implant goes into the ground: only what is above the rim, or seen down the opening, shows. */
.real__site { inset: 0; clip-path: polygon(-400px -900px, 656px -900px, 656px 581.78px, 155.5px 581.78px, 155.26px 583.46px, 154.56px 585.12px, 153.41px 586.72px, 151.82px 588.23px, 149.82px 589.64px, 147.45px 590.91px, 144.74px 592.02px, 141.75px 592.96px, 138.52px 593.71px, 135.12px 594.25px, 131.59px 594.58px, 128px 594.69px, 124.41px 594.58px, 120.88px 594.25px, 117.48px 593.71px, 114.25px 592.96px, 111.26px 592.02px, 108.55px 590.91px, 106.18px 589.64px, 104.18px 588.23px, 102.59px 586.72px, 101.44px 585.12px, 100.74px 583.46px, 100.5px 581.78px, -400px 581.78px); }
.real__part--implant {
  --a: 0.1; --b: 0.62; --n: 40; --c: 10; --r: 4;
  left: 98px; width: 60px; height: 150px;
  top: calc((301 + (528.9 + var(--im-off) - 301) * var(--ct) + -80) * 1px);
  opacity: max(0.003, clamp(0, (var(--p) - 0.1) / 0.1, 1));   /* never quite 0, so its sheet is decoded at load, not mid-scroll */
  background-size: 1000% 400%;
}
.real__part--abutment {
  --a: 0.3; --b: 0.78; --n: 40; --c: 10; --r: 4;
  left: 93px; width: 65px; height: 145px;
  top: calc((301 + (444.17 + var(--ab-off) - 301) * var(--ct) + -70) * 1px);
  opacity: max(0.003, clamp(0, (var(--p) - 0.3) / 0.1, 1));   /* never quite 0, so its sheet is decoded at load, not mid-scroll */
  background-size: 1000% 400%;
}
.real__part--crown {
  --a: 0.46; --b: 0.92; --n: 38; --c: 8; --r: 5;
  left: 68px; width: 150px; height: 190px;
  top: calc((301 + (395.58 + var(--cr-off) - 301) * var(--ct) + -105) * 1px);
  opacity: max(0.003, clamp(0, (var(--p) - 0.46) / 0.1, 1));   /* never quite 0, so its sheet is decoded at load, not mid-scroll */
  background-size: 800% 500%;
}
.real__part--screw {
  --a: 0.64; --b: 0.92; --n: 44; --c: 11; --r: 4;
  left: 113px; width: 30px; height: 110px;
  top: calc((301 + (489.3 + var(--sc-off) - 301) * var(--ct) + -55) * 1px);
  opacity: max(0.003, clamp(0, (var(--p) - 0.64) / 0.08, 1));   /* never quite 0, so its sheet is decoded at load, not mid-scroll */
  background-size: 1100% 400%;
}
/* Frame f of a grid sheet: column f mod c, row floor(f / c). */
:is(.real__part, .real__shade) {
  --f: round(clamp(0, (var(--p) - var(--a)) / (var(--b) - var(--a)), 1) * (var(--n) - 1), 1);
  background-position: calc(mod(var(--f), var(--c)) / max(var(--c) - 1, 1) * 100%) calc(round(down, var(--f) / var(--c), 1) / max(var(--r) - 1, 1) * 100%);
}
.real__still { left: -57px; top: 411px; width: 370px; height: 305px; background: url("/img/hero/fig-still-d.webp") 0 0 / 100% 100% no-repeat; }

/* Labels travel with their parts and stop above the map. A part's name fades once the part is out
   of sight (the implant in the ground, the abutment and screw inside the crown); the crown keeps its
   name and the map is named under it. */
.fig--real .fig__parts li { top: calc(var(--stage-top) + min((var(--y) + var(--off)) * var(--ct) * var(--s) * 1px, var(--cap) * var(--s) * 1px - var(--k) * 1.25rem)); }
.fig--real .fig__parts li:nth-child(1) { --y: 188; --off: var(--sc-off); --cap: 128; --k: 0; opacity: calc(1 - clamp(0, (var(--p) - 0.74) / 0.08, 1)); left: auto; right: calc(50% + 16px * var(--s)); flex-direction: row-reverse; }
.fig--real .fig__parts li:nth-child(2) { --y: 95; --off: var(--cr-off); --cap: 222; --k: 2; }
.fig--real .fig__parts li:nth-child(3) { --y: 142; --off: var(--ab-off); --cap: 222; --k: 1; opacity: calc(1 - clamp(0, (var(--p) - 0.62) / 0.1, 1)); }
.fig--real .fig__parts li:nth-child(4) { --y: 228; --off: var(--im-off); --cap: 222; --k: 0; opacity: calc(1 - clamp(0, (var(--p) - 0.3) / 0.1, 1)); }
.fig--real .fig__parts li:nth-child(5) { left: 50%; top: calc(var(--stage-top) + 407.1px * var(--s) + var(--u1)); translate: -50% 0; }
.fig--real .fig__parts li:nth-child(5)::before { display: none; }

@media (max-width: 63.99rem) {
  .real__still { background-image: url("/img/hero/fig-still-m.webp"); }
  /* The window under the bar is 24rem tall: the drawn-apart model fits it at this scale, and the map's
     name comes in once the map has settled at the foot of the window. */
  .hero .fig.fig--real { --s: 0.52; }
  .fig--real .fig__parts li:nth-child(5) { opacity: clamp(0, (var(--p) - 0.7) / 0.2, 1); }
}
/* END generated: hero figure */

/* Arch figure: the jaw ridge with implant sites, and the bridge that seats onto them. */
.stack {
  position: absolute;
  left: var(--cx, 50%);             /* the drawing's centre across its box; see .fig--side */
  top: 50%;
  width: 240px;
  height: 200px;
  translate: -50% -50%;
  scale: var(--s);
  transform: rotateX(60deg) rotateZ(-14deg);
  transform-style: preserve-3d;
}
.stack__layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: var(--steel);
  stroke-width: 1;
}
.stack__layer * { vector-effect: non-scaling-stroke; }
.stack__bridge { stroke: var(--text); translate: 0 0 calc(24px + 96px * var(--e)); }
.stack .node { fill: var(--bg); stroke: var(--text); }
.post {                           /* one implant: planned axis above the ridge, implant below it */
  position: absolute;
  width: 2px;
  height: 176px;
  background:
    repeating-linear-gradient(var(--accent) 0 3px, transparent 3px 6px) top / 100% 120px no-repeat,
    linear-gradient(var(--text), var(--text)) bottom / 100% 56px no-repeat;
  transform-origin: top;
  transform: translateX(-1px) translateZ(120px) rotateX(-90deg);
}
.post:nth-of-type(1) { left: 41.7px; top: 154.6px; }
.post:nth-of-type(2) { left: 65px; top: 73.6px; }
.post:nth-of-type(3) { left: 102.1px; top: 39.3px; }
.post:nth-of-type(4) { left: 137.9px; top: 39.3px; }
.post:nth-of-type(5) { left: 175px; top: 73.6px; }
.post:nth-of-type(6) { left: 198.3px; top: 154.6px; }
.fig--arch .fig__parts li:nth-child(1) { --y: -88px; --dy: -56px; }
.fig--arch .fig__parts li:nth-child(2) { --y: 72px; --dy: 0px; }
.fig--bite .fig__parts li:nth-child(1) { --y: -64px; --dy: 0px; }
.fig--bite .fig__parts li:nth-child(2) { --y: -24px; --dy: 0px; }
.fig--bite .fig__parts li:nth-child(3) { --y: 24px; --dy: 40px; }   /* the lower jaw's label drops with it */
.stack__plan { stroke: var(--accent); stroke-dasharray: 2 3; translate: 0 0 24px; }
/* Rings figure: three rings that start apart and close into one plane. */
.stack__l1 { translate: 0 0 calc(-64px * var(--e)); }
.stack__l3 { translate: 0 0 calc(64px * var(--e)); }
.stack .hub { fill: var(--accent); stroke: none; }

/* Vertical sections across an arch: each stands on the jaw, fanned round a point inside it.
   With the level contours they make a mesh. */
.secs { position: absolute; inset: 0; transform-style: preserve-3d; }
.secs svg { position: absolute; overflow: visible; fill: none; stroke: var(--steel); stroke-width: 1; transform-origin: 0 0; }
.secs path { vector-effect: non-scaling-stroke; }
.secs .bright { stroke: var(--text); }

/* Arch figures sliced from real jaw scans, levelled to the biting plane:
   level contours stacked at their heights. */
.stack--scan { height: 224px; }
.stack--scan .is-teeth { stroke: var(--text); }
.stack--scan .rib { stroke: var(--hairline); }
/* One implant site: a planned axis, an implant, a one-piece abutment that threads into it, and a prosthetic screw above, each drawn as two crossed outlines. */
.fx { position: absolute; width: 0; height: 0; transform-style: preserve-3d; }
.fx > * { position: absolute; top: 0; transform-origin: top; fill: none; stroke-width: 1; overflow: visible; }
.fx use { vector-effect: non-scaling-stroke; }
.fx__axis { left: 0; width: 1px; height: 264px; background: repeating-linear-gradient(var(--accent) 0 3px, transparent 3px 6px); transform: translateZ(220px) rotateX(-90deg); }
.fx__imp { left: -8px; width: 16px; height: 37px; stroke: var(--steel); transform: translateZ(-4px) rotateX(-90deg); }
.fx__imp.fx__x { transform: translateZ(-4px) rotateZ(90deg) rotateX(-90deg); }
/* The abutment turns about its own axis as it comes down: its threaded stem screws into the implant. */
.fx__turn { left: 0; width: 0; height: 0; transform-style: preserve-3d; transform-origin: 0 0; transform: translateZ(calc(2px + 60px * var(--e))) rotateZ(calc(var(--e) * 720deg)); }
.fx__turn > svg { position: absolute; left: -8px; top: 0; width: 16px; height: 21px; overflow: visible; fill: none; stroke: var(--text); stroke-width: 1; transform-origin: top; transform: rotateX(-90deg); }
.fx__turn > svg:nth-of-type(2) { transform: rotateZ(45deg) rotateX(-90deg); }
.fx__turn > svg:nth-of-type(3) { transform: rotateZ(90deg) rotateX(-90deg); }
.fx__turn > svg:nth-of-type(4) { transform: rotateZ(135deg) rotateX(-90deg); }
/* Rings at each change of width: top, shoulder, collar, mid cone, cone end, thread tip. */
.fx__turn > i { position: absolute; border: 1px solid var(--text); border-radius: 50%; translate: -50% -50%; }
.fx__turn > i:nth-of-type(1) { width: 6px; height: 6px; transform: translateZ(0px); }
.fx__turn > i:nth-of-type(2) { width: 12px; height: 12px; transform: translateZ(-4.5px); }
.fx__turn > i:nth-of-type(3) { width: 14px; height: 14px; transform: translateZ(-5.8px); }
.fx__turn > i:nth-of-type(4) { width: 9px; height: 9px; transform: translateZ(-10.7px); }
.fx__turn > i:nth-of-type(5) { width: 6px; height: 6px; transform: translateZ(-15.5px); }
.fx__turn > i:nth-of-type(6) { width: 4px; height: 4px; transform: translateZ(-19.5px); }
/* Seated, the prosthetic screw sits low in its channel with its tip in the top of the abutment: it holds the prosthesis to the abutment. */
.fx__screw { left: -4px; width: 8px; height: 12px; stroke: var(--text); transform: translateZ(calc(12px + 194px * var(--e))) rotateX(-90deg); }
.fx__screw.fx__x { transform: translateZ(calc(12px + 194px * var(--e))) rotateZ(90deg) rotateX(-90deg); }
.fig--fa .stack { top: calc(50% + var(--u6)); }   /* the parts stack up tall when apart, so the figure sits lower */
.fig--fa .fig__parts li:nth-child(1) { --y: -56px; --dy: -104px; }
.fig--fa .fig__parts li:nth-child(2) { --y: -24px; --dy: -64px; }
.fig--fa .fig__parts li:nth-child(3) { --y: 16px; --dy: -32px; }
.fig--fa .fig__parts li:nth-child(4) { --y: 56px; --dy: 0px; }
.stack--fa .stack__layer:nth-of-type(2) { translate: 0 0 calc(0px + 112px * var(--e)); }
.stack--fa .stack__layer:nth-of-type(3) { translate: 0 0 calc(3px + 112px * var(--e)); }
.stack--fa .stack__layer:nth-of-type(4) { translate: 0 0 calc(6px + 112px * var(--e)); }
.stack--fa .stack__layer:nth-of-type(5) { translate: 0 0 calc(10px + 112px * var(--e)); }
.stack--fa .stack__layer:nth-of-type(6) { translate: 0 0 calc(13px + 112px * var(--e)); }
.stack--fa .stack__layer:nth-of-type(7) { translate: 0 0 calc(16px + 112px * var(--e)); }
.stack--fa .stack__layer:nth-of-type(8) { translate: 0 0 calc(19px + 112px * var(--e)); }
.stack--fa .stack__layer:nth-of-type(9) { translate: 0 0 calc(23px + 112px * var(--e)); }
.stack--fa .stack__layer:nth-of-type(10) { translate: 0 0 calc(24px + 112px * var(--e)); }
.stack--fa .stack__layer:nth-of-type(11) { translate: 0 0 calc(26px + 112px * var(--e)); }
.stack--fa .stack__layer:nth-of-type(12) { translate: 0 0 calc(28px + 112px * var(--e)); }
.stack--fa .stack__layer:nth-of-type(13) { translate: 0 0 calc(29px + 112px * var(--e)); }
.stack--fa .stack__layer:nth-of-type(14) { translate: 0 0 calc(31px + 112px * var(--e)); }
.stack--fa .fx:nth-of-type(1) { left: 146.4px; top: 180.6px; }
.stack--fa .fx:nth-of-type(2) { left: 173.3px; top: 152px; }
.stack--fa .fx:nth-of-type(3) { left: 187.8px; top: 86.6px; }
.stack--fa .fx:nth-of-type(4) { left: 99.4px; top: 183.9px; }
.stack--fa .fx:nth-of-type(5) { left: 70.3px; top: 159.3px; }
.stack--fa .fx:nth-of-type(6) { left: 46.6px; top: 94.9px; }
.stack--bite .jaw--lower .stack__layer:nth-of-type(1) { translate: 0 0 -6px; }
.stack--bite .jaw--lower .stack__layer:nth-of-type(2) { translate: 0 0 -3px; }
.stack--bite .jaw--lower .stack__layer:nth-of-type(3) { translate: 0 0 0px; }
.stack--bite .jaw--lower .stack__layer:nth-of-type(4) { translate: 0 0 3px; }
.stack--bite .jaw--lower .stack__layer:nth-of-type(5) { translate: 0 0 6px; }
.stack--bite .jaw--lower .stack__layer:nth-of-type(6) { translate: 0 0 10px; }
.stack--bite .jaw--lower .stack__layer:nth-of-type(7) { translate: 0 0 13px; }
.stack--bite .jaw--lower .stack__layer:nth-of-type(8) { translate: 0 0 16px; }
.stack--bite .jaw--lower .stack__layer:nth-of-type(9) { translate: 0 0 18px; }
.stack--bite .jaw--lower .stack__layer:nth-of-type(10) { translate: 0 0 19px; }
.stack--bite .jaw--lower .stack__layer:nth-of-type(11) { translate: 0 0 21px; }
.stack--bite .jaw--lower .stack__layer:nth-of-type(12) { translate: 0 0 23px; }
.stack--bite .jaw--lower .stack__layer:nth-of-type(13) { translate: 0 0 24px; }
.stack--bite .jaw--lower .stack__layer:nth-of-type(14) { translate: 0 0 26px; }
.stack--bite .jaw--lower .stack__layer:nth-of-type(15) { translate: 0 0 28px; }
.stack--bite .jaw--lower .stack__layer:nth-of-type(16) { translate: 0 0 29px; }
.stack--bite .jaw--lower .stack__layer:nth-of-type(17) { translate: 0 0 31px; }
.stack--bite .jaw--upper .stack__layer:nth-of-type(1) { translate: 0 0 31px; }
.stack--bite .jaw--upper .stack__layer:nth-of-type(2) { translate: 0 0 28px; }
.stack--bite .jaw--upper .stack__layer:nth-of-type(3) { translate: 0 0 29px; }
.stack--bite .jaw--upper .stack__layer:nth-of-type(4) { translate: 0 0 31px; }
.stack--bite .jaw--upper .stack__layer:nth-of-type(5) { translate: 0 0 32px; }
.stack--bite .jaw--upper .stack__layer:nth-of-type(6) { translate: 0 0 34px; }
.stack--bite .jaw--upper .stack__layer:nth-of-type(7) { translate: 0 0 36px; }
.stack--bite .jaw--upper .stack__layer:nth-of-type(8) { translate: 0 0 37px; }
.stack--bite .jaw--upper .stack__layer:nth-of-type(9) { translate: 0 0 39px; }
.stack--bite .jaw--upper .stack__layer:nth-of-type(10) { translate: 0 0 41px; }
.stack--bite .jaw--upper .stack__layer:nth-of-type(11) { translate: 0 0 42px; }
.stack--bite .jaw--upper .stack__layer:nth-of-type(12) { translate: 0 0 45px; }
.stack--bite .jaw--upper .stack__layer:nth-of-type(13) { translate: 0 0 49px; }
.stack--bite .jaw--upper .stack__layer:nth-of-type(14) { translate: 0 0 52px; }
.stack--bite .jaw--upper .stack__layer:nth-of-type(15) { translate: 0 0 55px; }
.stack--bite .jaw--upper .stack__layer:nth-of-type(16) { translate: 0 0 58px; }
.stack--bite .jaw--upper .stack__layer:nth-of-type(17) { translate: 0 0 62px; }
.stack--bite .jaw { position: absolute; inset: 0; transform-style: preserve-3d; }
.stack--bite .jaw--lower { transform-origin: 50% -33px 55px; transform: rotateX(calc(-18deg * var(--e))); }

/* Reconstruction: crowns under their preparations. */
.fig--prep .fig__parts li:nth-child(1) { --y: -40px; --dy: 0px; }
.fig--prep .fig__parts li:nth-child(2) { --y: 8px; --dy: 72px; }   /* the crowns' label travels with them */
.stack--prep { height: 211px; }
.stack--prep > .stack__layer:nth-of-type(1) { translate: 0 0 57px; }
.stack--prep > .stack__layer:nth-of-type(2) { translate: 0 0 50px; }
.stack--prep > .stack__layer:nth-of-type(3) { translate: 0 0 43px; }
.stack--prep > .stack__layer:nth-of-type(4) { translate: 0 0 39px; }
.stack--prep > .stack__layer:nth-of-type(5) { translate: 0 0 36px; }
.stack--prep > .stack__layer:nth-of-type(6) { translate: 0 0 32px; }
.stack--prep > .stack__layer:nth-of-type(7) { translate: 0 0 29px; }
.stack--prep > .stack__layer:nth-of-type(8) { translate: 0 0 25px; }
.stack--prep > .stack__layer:nth-of-type(9) { translate: 0 0 21px; }
.stack--prep > .stack__layer:nth-of-type(10) { translate: 0 0 18px; }
.stack--prep > .stack__layer:nth-of-type(11) { translate: 0 0 14px; }
.stack--prep > .stack__layer:nth-of-type(12) { translate: 0 0 11px; }
.stack--prep > .stack__layer:nth-of-type(13) { translate: 0 0 7px; }
.stack--prep > .stack__layer:nth-of-type(14) { translate: 0 0 20px; }
.stack--prep > .stack__layer:nth-of-type(15) { translate: 0 0 calc(34px - 88px * var(--e)); }
.stack--prep > .stack__layer:nth-of-type(16) { translate: 0 0 calc(30px - 88px * var(--e)); }
.stack--prep > .stack__layer:nth-of-type(17) { translate: 0 0 calc(27px - 88px * var(--e)); }
.stack--prep > .stack__layer:nth-of-type(18) { translate: 0 0 calc(23px - 88px * var(--e)); }
.stack--prep > .stack__layer:nth-of-type(19) { translate: 0 0 calc(20px - 88px * var(--e)); }
.stack--prep > .stack__layer:nth-of-type(20) { translate: 0 0 calc(16px - 88px * var(--e)); }
.stack--prep > .stack__layer:nth-of-type(21) { translate: 0 0 calc(13px - 88px * var(--e)); }
.stack--prep > .stack__layer:nth-of-type(22) { translate: 0 0 calc(9px - 88px * var(--e)); }
.stack--prep > .stack__layer:nth-of-type(23) { translate: 0 0 calc(5px - 88px * var(--e)); }
.stack--prep > .stack__layer:nth-of-type(24) { translate: 0 0 calc(2px - 88px * var(--e)); }
/* Vertical sections across the arch: each stands on the jaw, fanned round a point inside it. */
.stack--prep .secs--crown { translate: 0 0 calc(-88px * var(--e)); }
.stack--prep .secs svg { left: 120px; top: 89.6px; width: 150px; height: 57px; }
.stack--prep .secs--crown svg { stroke: var(--text); }
.stack--prep .secs svg:nth-of-type(1) { transform: translateZ(57px) rotateZ(-28deg) rotateX(-90deg); }
.stack--prep .secs svg:nth-of-type(2) { transform: translateZ(57px) rotateZ(-23deg) rotateX(-90deg); }
.stack--prep .secs svg:nth-of-type(3) { transform: translateZ(57px) rotateZ(-18deg) rotateX(-90deg); }
.stack--prep .secs svg:nth-of-type(4) { transform: translateZ(57px) rotateZ(-13deg) rotateX(-90deg); }
.stack--prep .secs svg:nth-of-type(5) { transform: translateZ(57px) rotateZ(-8deg) rotateX(-90deg); }
.stack--prep .secs svg:nth-of-type(6) { transform: translateZ(57px) rotateZ(-3deg) rotateX(-90deg); }
.stack--prep .secs svg:nth-of-type(7) { transform: translateZ(57px) rotateZ(2deg) rotateX(-90deg); }
.stack--prep .secs svg:nth-of-type(8) { transform: translateZ(57px) rotateZ(7deg) rotateX(-90deg); }
.stack--prep .secs svg:nth-of-type(9) { transform: translateZ(57px) rotateZ(12deg) rotateX(-90deg); }
.stack--prep .secs svg:nth-of-type(10) { transform: translateZ(57px) rotateZ(17deg) rotateX(-90deg); }
.stack--prep .secs svg:nth-of-type(11) { transform: translateZ(57px) rotateZ(22deg) rotateX(-90deg); }
.stack--prep .secs svg:nth-of-type(12) { transform: translateZ(57px) rotateZ(27deg) rotateX(-90deg); }
.stack--prep .secs svg:nth-of-type(13) { transform: translateZ(57px) rotateZ(32deg) rotateX(-90deg); }
.stack--prep .secs svg:nth-of-type(14) { transform: translateZ(57px) rotateZ(37deg) rotateX(-90deg); }
.stack--prep .secs svg:nth-of-type(15) { transform: translateZ(57px) rotateZ(42deg) rotateX(-90deg); }
.stack--prep .secs svg:nth-of-type(16) { transform: translateZ(57px) rotateZ(47deg) rotateX(-90deg); }
.stack--prep .secs svg:nth-of-type(17) { transform: translateZ(57px) rotateZ(52deg) rotateX(-90deg); }
.stack--prep .secs svg:nth-of-type(18) { transform: translateZ(57px) rotateZ(57deg) rotateX(-90deg); }
.stack--prep .secs svg:nth-of-type(19) { transform: translateZ(57px) rotateZ(62deg) rotateX(-90deg); }
.stack--prep .secs svg:nth-of-type(20) { transform: translateZ(57px) rotateZ(67deg) rotateX(-90deg); }
.stack--prep .secs svg:nth-of-type(21) { transform: translateZ(57px) rotateZ(72deg) rotateX(-90deg); }
.stack--prep .secs svg:nth-of-type(22) { transform: translateZ(57px) rotateZ(77deg) rotateX(-90deg); }
.stack--prep .secs svg:nth-of-type(23) { transform: translateZ(57px) rotateZ(82deg) rotateX(-90deg); }
.stack--prep .secs svg:nth-of-type(24) { transform: translateZ(57px) rotateZ(87deg) rotateX(-90deg); }
.stack--prep .secs svg:nth-of-type(25) { transform: translateZ(57px) rotateZ(92deg) rotateX(-90deg); }
.stack--prep .secs svg:nth-of-type(26) { transform: translateZ(57px) rotateZ(97deg) rotateX(-90deg); }
.stack--prep .secs svg:nth-of-type(27) { transform: translateZ(57px) rotateZ(102deg) rotateX(-90deg); }
.stack--prep .secs svg:nth-of-type(28) { transform: translateZ(57px) rotateZ(107deg) rotateX(-90deg); }
.stack--prep .secs svg:nth-of-type(29) { transform: translateZ(57px) rotateZ(112deg) rotateX(-90deg); }
.stack--prep .secs svg:nth-of-type(30) { transform: translateZ(57px) rotateZ(117deg) rotateX(-90deg); }
.stack--prep .secs svg:nth-of-type(31) { transform: translateZ(57px) rotateZ(122deg) rotateX(-90deg); }
.stack--prep .secs svg:nth-of-type(32) { transform: translateZ(57px) rotateZ(127deg) rotateX(-90deg); }
.stack--prep .secs svg:nth-of-type(33) { transform: translateZ(57px) rotateZ(132deg) rotateX(-90deg); }
.stack--prep .secs svg:nth-of-type(34) { transform: translateZ(57px) rotateZ(137deg) rotateX(-90deg); }
.stack--prep .secs svg:nth-of-type(35) { transform: translateZ(57px) rotateZ(142deg) rotateX(-90deg); }
.stack--prep .secs svg:nth-of-type(36) { transform: translateZ(57px) rotateZ(147deg) rotateX(-90deg); }
.stack--prep .secs svg:nth-of-type(37) { transform: translateZ(57px) rotateZ(152deg) rotateX(-90deg); }
.stack--prep .secs svg:nth-of-type(38) { transform: translateZ(57px) rotateZ(157deg) rotateX(-90deg); }
.stack--prep .secs svg:nth-of-type(39) { transform: translateZ(57px) rotateZ(162deg) rotateX(-90deg); }
.stack--prep .secs svg:nth-of-type(40) { transform: translateZ(57px) rotateZ(167deg) rotateX(-90deg); }
.stack--prep .secs svg:nth-of-type(41) { transform: translateZ(57px) rotateZ(172deg) rotateX(-90deg); }
.stack--prep .secs svg:nth-of-type(42) { transform: translateZ(57px) rotateZ(177deg) rotateX(-90deg); }
.stack--prep .secs svg:nth-of-type(43) { transform: translateZ(57px) rotateZ(182deg) rotateX(-90deg); }
.stack--prep .secs svg:nth-of-type(44) { transform: translateZ(57px) rotateZ(187deg) rotateX(-90deg); }
.stack--prep .secs svg:nth-of-type(45) { transform: translateZ(57px) rotateZ(192deg) rotateX(-90deg); }
.stack--prep .secs svg:nth-of-type(46) { transform: translateZ(57px) rotateZ(197deg) rotateX(-90deg); }
.stack--prep .secs svg:nth-of-type(47) { transform: translateZ(57px) rotateZ(202deg) rotateX(-90deg); }
.stack--prep .secs svg:nth-of-type(48) { transform: translateZ(57px) rotateZ(207deg) rotateX(-90deg); }

/* Reconstruction, who it suits: worn teeth with their planned crowns. */
.stack--worn .grow { stroke: var(--accent); stroke-dasharray: 2 3; }
.stack--worn { height: 211px; }
.stack--worn .stack__layer:nth-of-type(1) { translate: 0 0 50px; }
.stack--worn .stack__layer:nth-of-type(2) { translate: 0 0 43px; }
.stack--worn .stack__layer:nth-of-type(3) { translate: 0 0 39px; }
.stack--worn .stack__layer:nth-of-type(4) { translate: 0 0 36px; }
.stack--worn .stack__layer:nth-of-type(5) { translate: 0 0 32px; }
.stack--worn .stack__layer:nth-of-type(6) { translate: 0 0 29px; }
.stack--worn .stack__layer:nth-of-type(7) { translate: 0 0 25px; }
.stack--worn .stack__layer:nth-of-type(8) { translate: 0 0 21px; }
.stack--worn .stack__layer:nth-of-type(9) { translate: 0 0 18px; }
.stack--worn .stack__layer:nth-of-type(10) { translate: 0 0 14px; }
.stack--worn .stack__layer:nth-of-type(11) { translate: 0 0 11px; }
.stack--worn .stack__layer:nth-of-type(12) { translate: 0 0 7px; }
.stack--worn .stack__layer:nth-of-type(13) { translate: 0 0 4px; }
.stack--worn .stack__layer:nth-of-type(14) { translate: 0 0 30px; }
.stack--worn .stack__layer:nth-of-type(15) { translate: 0 0 23px; }
.stack--worn .stack__layer:nth-of-type(16) { translate: 0 0 16px; }
.stack--worn .stack__layer:nth-of-type(17) { translate: 0 0 9px; }
.stack--worn .stack__layer:nth-of-type(18) { translate: 0 0 2px; }
.stack--worn .secs svg { left: 120px; top: 89.6px; width: 150px; height: 57px; }
.stack--worn .secs svg:nth-of-type(1) { transform: translateZ(57px) rotateZ(-28deg) rotateX(-90deg); }
.stack--worn .secs svg:nth-of-type(2) { transform: translateZ(57px) rotateZ(-23deg) rotateX(-90deg); }
.stack--worn .secs svg:nth-of-type(3) { transform: translateZ(57px) rotateZ(-18deg) rotateX(-90deg); }
.stack--worn .secs svg:nth-of-type(4) { transform: translateZ(57px) rotateZ(-13deg) rotateX(-90deg); }
.stack--worn .secs svg:nth-of-type(5) { transform: translateZ(57px) rotateZ(-8deg) rotateX(-90deg); }
.stack--worn .secs svg:nth-of-type(6) { transform: translateZ(57px) rotateZ(-3deg) rotateX(-90deg); }
.stack--worn .secs svg:nth-of-type(7) { transform: translateZ(57px) rotateZ(2deg) rotateX(-90deg); }
.stack--worn .secs svg:nth-of-type(8) { transform: translateZ(57px) rotateZ(7deg) rotateX(-90deg); }
.stack--worn .secs svg:nth-of-type(9) { transform: translateZ(57px) rotateZ(12deg) rotateX(-90deg); }
.stack--worn .secs svg:nth-of-type(10) { transform: translateZ(57px) rotateZ(17deg) rotateX(-90deg); }
.stack--worn .secs svg:nth-of-type(11) { transform: translateZ(57px) rotateZ(22deg) rotateX(-90deg); }
.stack--worn .secs svg:nth-of-type(12) { transform: translateZ(57px) rotateZ(27deg) rotateX(-90deg); }
.stack--worn .secs svg:nth-of-type(13) { transform: translateZ(57px) rotateZ(32deg) rotateX(-90deg); }
.stack--worn .secs svg:nth-of-type(14) { transform: translateZ(57px) rotateZ(37deg) rotateX(-90deg); }
.stack--worn .secs svg:nth-of-type(15) { transform: translateZ(57px) rotateZ(42deg) rotateX(-90deg); }
.stack--worn .secs svg:nth-of-type(16) { transform: translateZ(57px) rotateZ(47deg) rotateX(-90deg); }
.stack--worn .secs svg:nth-of-type(17) { transform: translateZ(57px) rotateZ(52deg) rotateX(-90deg); }
.stack--worn .secs svg:nth-of-type(18) { transform: translateZ(57px) rotateZ(57deg) rotateX(-90deg); }
.stack--worn .secs svg:nth-of-type(19) { transform: translateZ(57px) rotateZ(62deg) rotateX(-90deg); }
.stack--worn .secs svg:nth-of-type(20) { transform: translateZ(57px) rotateZ(67deg) rotateX(-90deg); }
.stack--worn .secs svg:nth-of-type(21) { transform: translateZ(57px) rotateZ(72deg) rotateX(-90deg); }
.stack--worn .secs svg:nth-of-type(22) { transform: translateZ(57px) rotateZ(77deg) rotateX(-90deg); }
.stack--worn .secs svg:nth-of-type(23) { transform: translateZ(57px) rotateZ(82deg) rotateX(-90deg); }
.stack--worn .secs svg:nth-of-type(24) { transform: translateZ(57px) rotateZ(87deg) rotateX(-90deg); }
.stack--worn .secs svg:nth-of-type(25) { transform: translateZ(57px) rotateZ(92deg) rotateX(-90deg); }
.stack--worn .secs svg:nth-of-type(26) { transform: translateZ(57px) rotateZ(97deg) rotateX(-90deg); }
.stack--worn .secs svg:nth-of-type(27) { transform: translateZ(57px) rotateZ(102deg) rotateX(-90deg); }
.stack--worn .secs svg:nth-of-type(28) { transform: translateZ(57px) rotateZ(107deg) rotateX(-90deg); }
.stack--worn .secs svg:nth-of-type(29) { transform: translateZ(57px) rotateZ(112deg) rotateX(-90deg); }
.stack--worn .secs svg:nth-of-type(30) { transform: translateZ(57px) rotateZ(117deg) rotateX(-90deg); }
.stack--worn .secs svg:nth-of-type(31) { transform: translateZ(57px) rotateZ(122deg) rotateX(-90deg); }
.stack--worn .secs svg:nth-of-type(32) { transform: translateZ(57px) rotateZ(127deg) rotateX(-90deg); }
.stack--worn .secs svg:nth-of-type(33) { transform: translateZ(57px) rotateZ(132deg) rotateX(-90deg); }
.stack--worn .secs svg:nth-of-type(34) { transform: translateZ(57px) rotateZ(137deg) rotateX(-90deg); }
.stack--worn .secs svg:nth-of-type(35) { transform: translateZ(57px) rotateZ(142deg) rotateX(-90deg); }
.stack--worn .secs svg:nth-of-type(36) { transform: translateZ(57px) rotateZ(147deg) rotateX(-90deg); }
.stack--worn .secs svg:nth-of-type(37) { transform: translateZ(57px) rotateZ(152deg) rotateX(-90deg); }
.stack--worn .secs svg:nth-of-type(38) { transform: translateZ(57px) rotateZ(157deg) rotateX(-90deg); }
.stack--worn .secs svg:nth-of-type(39) { transform: translateZ(57px) rotateZ(162deg) rotateX(-90deg); }
.stack--worn .secs svg:nth-of-type(40) { transform: translateZ(57px) rotateZ(167deg) rotateX(-90deg); }
.stack--worn .secs svg:nth-of-type(41) { transform: translateZ(57px) rotateZ(172deg) rotateX(-90deg); }
.stack--worn .secs svg:nth-of-type(42) { transform: translateZ(57px) rotateZ(177deg) rotateX(-90deg); }
.stack--worn .secs svg:nth-of-type(43) { transform: translateZ(57px) rotateZ(182deg) rotateX(-90deg); }
.stack--worn .secs svg:nth-of-type(44) { transform: translateZ(57px) rotateZ(187deg) rotateX(-90deg); }
.stack--worn .secs svg:nth-of-type(45) { transform: translateZ(57px) rotateZ(192deg) rotateX(-90deg); }
.stack--worn .secs svg:nth-of-type(46) { transform: translateZ(57px) rotateZ(197deg) rotateX(-90deg); }
.stack--worn .secs svg:nth-of-type(47) { transform: translateZ(57px) rotateZ(202deg) rotateX(-90deg); }
.stack--worn .secs svg:nth-of-type(48) { transform: translateZ(57px) rotateZ(207deg) rotateX(-90deg); }

/* Who it suits: single teeth that drop out. Seen straight down onto the biting surfaces, front teeth at the top. */
.stack--suit { transform: rotateZ(180deg); }
.stack--suit .gone { stroke: transparent; }
.stack--suit .stack__layer:nth-of-type(1) { translate: 0 0 0px; }
.stack--suit .stack__layer:nth-of-type(2) { translate: 0 0 3px; }
.stack--suit .stack__layer:nth-of-type(3) { translate: 0 0 6px; }
.stack--suit .stack__layer:nth-of-type(4) { translate: 0 0 10px; }
.stack--suit .stack__layer:nth-of-type(5) { translate: 0 0 13px; }
.stack--suit .stack__layer:nth-of-type(6) { translate: 0 0 16px; }
.stack--suit .stack__layer:nth-of-type(7) { translate: 0 0 19px; }
.stack--suit .stack__layer:nth-of-type(8) { translate: 0 0 23px; }
.stack--suit .stack__layer:nth-of-type(9) { translate: 0 0 24px; }
.stack--suit .stack__layer:nth-of-type(10) { translate: 0 0 26px; }
.stack--suit .stack__layer:nth-of-type(11) { translate: 0 0 28px; }
.stack--suit .stack__layer:nth-of-type(12) { translate: 0 0 29px; }
.stack--suit .stack__layer:nth-of-type(13) { translate: 0 0 31px; }

/* Sections for the figures drawn from the jaw scans. */
.stack--fa .secs { translate: 0 0 calc(112px * var(--e)); }
.stack--fa .secs svg, .stack--suit .secs svg { left: 123.4px; top: 100.3px; width: 130px; height: 31px; }
.stack--bite .jaw--lower .secs svg { left: 123.4px; top: 100.3px; width: 130px; height: 38px; }
.stack--bite .jaw--upper .secs svg { left: 123.4px; top: 100.3px; width: 130px; height: 34px; }
.stack--fa .secs svg:nth-of-type(1), .stack--suit .secs svg:nth-of-type(1), .stack--bite .jaw--lower .secs svg:nth-of-type(1) { transform: translateZ(31px) rotateZ(-180deg) rotateX(-90deg); }
.stack--bite .jaw--upper .secs svg:nth-of-type(1) { transform: translateZ(62px) rotateZ(-180deg) rotateX(-90deg); }
.stack--fa .secs svg:nth-of-type(2), .stack--suit .secs svg:nth-of-type(2), .stack--bite .jaw--lower .secs svg:nth-of-type(2) { transform: translateZ(31px) rotateZ(-175deg) rotateX(-90deg); }
.stack--bite .jaw--upper .secs svg:nth-of-type(2) { transform: translateZ(62px) rotateZ(-175deg) rotateX(-90deg); }
.stack--fa .secs svg:nth-of-type(3), .stack--suit .secs svg:nth-of-type(3), .stack--bite .jaw--lower .secs svg:nth-of-type(3) { transform: translateZ(31px) rotateZ(-170deg) rotateX(-90deg); }
.stack--bite .jaw--upper .secs svg:nth-of-type(3) { transform: translateZ(62px) rotateZ(-170deg) rotateX(-90deg); }
.stack--fa .secs svg:nth-of-type(4), .stack--suit .secs svg:nth-of-type(4), .stack--bite .jaw--lower .secs svg:nth-of-type(4) { transform: translateZ(31px) rotateZ(-165deg) rotateX(-90deg); }
.stack--bite .jaw--upper .secs svg:nth-of-type(4) { transform: translateZ(62px) rotateZ(-165deg) rotateX(-90deg); }
.stack--fa .secs svg:nth-of-type(5), .stack--suit .secs svg:nth-of-type(5), .stack--bite .jaw--lower .secs svg:nth-of-type(5) { transform: translateZ(31px) rotateZ(-160deg) rotateX(-90deg); }
.stack--bite .jaw--upper .secs svg:nth-of-type(5) { transform: translateZ(62px) rotateZ(-160deg) rotateX(-90deg); }
.stack--fa .secs svg:nth-of-type(6), .stack--suit .secs svg:nth-of-type(6), .stack--bite .jaw--lower .secs svg:nth-of-type(6) { transform: translateZ(31px) rotateZ(-155deg) rotateX(-90deg); }
.stack--bite .jaw--upper .secs svg:nth-of-type(6) { transform: translateZ(62px) rotateZ(-155deg) rotateX(-90deg); }
.stack--fa .secs svg:nth-of-type(7), .stack--suit .secs svg:nth-of-type(7), .stack--bite .jaw--lower .secs svg:nth-of-type(7) { transform: translateZ(31px) rotateZ(-150deg) rotateX(-90deg); }
.stack--bite .jaw--upper .secs svg:nth-of-type(7) { transform: translateZ(62px) rotateZ(-150deg) rotateX(-90deg); }
.stack--fa .secs svg:nth-of-type(8), .stack--suit .secs svg:nth-of-type(8), .stack--bite .jaw--lower .secs svg:nth-of-type(8) { transform: translateZ(31px) rotateZ(-145deg) rotateX(-90deg); }
.stack--bite .jaw--upper .secs svg:nth-of-type(8) { transform: translateZ(62px) rotateZ(-145deg) rotateX(-90deg); }
.stack--fa .secs svg:nth-of-type(9), .stack--suit .secs svg:nth-of-type(9), .stack--bite .jaw--lower .secs svg:nth-of-type(9) { transform: translateZ(31px) rotateZ(-140deg) rotateX(-90deg); }
.stack--bite .jaw--upper .secs svg:nth-of-type(9) { transform: translateZ(62px) rotateZ(-140deg) rotateX(-90deg); }
.stack--fa .secs svg:nth-of-type(10), .stack--suit .secs svg:nth-of-type(10), .stack--bite .jaw--lower .secs svg:nth-of-type(10) { transform: translateZ(31px) rotateZ(-135deg) rotateX(-90deg); }
.stack--bite .jaw--upper .secs svg:nth-of-type(10) { transform: translateZ(62px) rotateZ(-135deg) rotateX(-90deg); }
.stack--fa .secs svg:nth-of-type(11), .stack--suit .secs svg:nth-of-type(11), .stack--bite .jaw--lower .secs svg:nth-of-type(11) { transform: translateZ(31px) rotateZ(-130deg) rotateX(-90deg); }
.stack--bite .jaw--upper .secs svg:nth-of-type(11) { transform: translateZ(62px) rotateZ(-130deg) rotateX(-90deg); }
.stack--fa .secs svg:nth-of-type(12), .stack--suit .secs svg:nth-of-type(12), .stack--bite .jaw--lower .secs svg:nth-of-type(12) { transform: translateZ(31px) rotateZ(-125deg) rotateX(-90deg); }
.stack--bite .jaw--upper .secs svg:nth-of-type(12) { transform: translateZ(62px) rotateZ(-125deg) rotateX(-90deg); }
.stack--fa .secs svg:nth-of-type(13), .stack--suit .secs svg:nth-of-type(13), .stack--bite .jaw--lower .secs svg:nth-of-type(13) { transform: translateZ(31px) rotateZ(-120deg) rotateX(-90deg); }
.stack--bite .jaw--upper .secs svg:nth-of-type(13) { transform: translateZ(62px) rotateZ(-120deg) rotateX(-90deg); }
.stack--fa .secs svg:nth-of-type(14), .stack--suit .secs svg:nth-of-type(14), .stack--bite .jaw--lower .secs svg:nth-of-type(14) { transform: translateZ(31px) rotateZ(-115deg) rotateX(-90deg); }
.stack--bite .jaw--upper .secs svg:nth-of-type(14) { transform: translateZ(62px) rotateZ(-115deg) rotateX(-90deg); }
.stack--fa .secs svg:nth-of-type(15), .stack--suit .secs svg:nth-of-type(15), .stack--bite .jaw--lower .secs svg:nth-of-type(15) { transform: translateZ(31px) rotateZ(-110deg) rotateX(-90deg); }
.stack--bite .jaw--upper .secs svg:nth-of-type(15) { transform: translateZ(62px) rotateZ(-110deg) rotateX(-90deg); }
.stack--fa .secs svg:nth-of-type(16), .stack--suit .secs svg:nth-of-type(16), .stack--bite .jaw--lower .secs svg:nth-of-type(16) { transform: translateZ(31px) rotateZ(-105deg) rotateX(-90deg); }
.stack--bite .jaw--upper .secs svg:nth-of-type(16) { transform: translateZ(62px) rotateZ(-105deg) rotateX(-90deg); }
.stack--fa .secs svg:nth-of-type(17), .stack--suit .secs svg:nth-of-type(17), .stack--bite .jaw--lower .secs svg:nth-of-type(17) { transform: translateZ(31px) rotateZ(-100deg) rotateX(-90deg); }
.stack--bite .jaw--upper .secs svg:nth-of-type(17) { transform: translateZ(62px) rotateZ(-100deg) rotateX(-90deg); }
.stack--fa .secs svg:nth-of-type(18), .stack--suit .secs svg:nth-of-type(18), .stack--bite .jaw--lower .secs svg:nth-of-type(18) { transform: translateZ(31px) rotateZ(-95deg) rotateX(-90deg); }
.stack--bite .jaw--upper .secs svg:nth-of-type(18) { transform: translateZ(62px) rotateZ(-95deg) rotateX(-90deg); }
.stack--fa .secs svg:nth-of-type(19), .stack--suit .secs svg:nth-of-type(19), .stack--bite .jaw--lower .secs svg:nth-of-type(19) { transform: translateZ(31px) rotateZ(-90deg) rotateX(-90deg); }
.stack--bite .jaw--upper .secs svg:nth-of-type(19) { transform: translateZ(62px) rotateZ(-90deg) rotateX(-90deg); }
.stack--fa .secs svg:nth-of-type(20), .stack--suit .secs svg:nth-of-type(20), .stack--bite .jaw--lower .secs svg:nth-of-type(20) { transform: translateZ(31px) rotateZ(-85deg) rotateX(-90deg); }
.stack--bite .jaw--upper .secs svg:nth-of-type(20) { transform: translateZ(62px) rotateZ(-85deg) rotateX(-90deg); }
.stack--fa .secs svg:nth-of-type(21), .stack--suit .secs svg:nth-of-type(21), .stack--bite .jaw--lower .secs svg:nth-of-type(21) { transform: translateZ(31px) rotateZ(-80deg) rotateX(-90deg); }
.stack--bite .jaw--upper .secs svg:nth-of-type(21) { transform: translateZ(62px) rotateZ(-80deg) rotateX(-90deg); }
.stack--fa .secs svg:nth-of-type(22), .stack--suit .secs svg:nth-of-type(22), .stack--bite .jaw--lower .secs svg:nth-of-type(22) { transform: translateZ(31px) rotateZ(-75deg) rotateX(-90deg); }
.stack--bite .jaw--upper .secs svg:nth-of-type(22) { transform: translateZ(62px) rotateZ(-75deg) rotateX(-90deg); }
.stack--fa .secs svg:nth-of-type(23), .stack--suit .secs svg:nth-of-type(23), .stack--bite .jaw--lower .secs svg:nth-of-type(23) { transform: translateZ(31px) rotateZ(-70deg) rotateX(-90deg); }
.stack--bite .jaw--upper .secs svg:nth-of-type(23) { transform: translateZ(62px) rotateZ(-70deg) rotateX(-90deg); }
.stack--fa .secs svg:nth-of-type(24), .stack--suit .secs svg:nth-of-type(24), .stack--bite .jaw--lower .secs svg:nth-of-type(24) { transform: translateZ(31px) rotateZ(-65deg) rotateX(-90deg); }
.stack--bite .jaw--upper .secs svg:nth-of-type(24) { transform: translateZ(62px) rotateZ(-65deg) rotateX(-90deg); }
.stack--fa .secs svg:nth-of-type(25), .stack--suit .secs svg:nth-of-type(25), .stack--bite .jaw--lower .secs svg:nth-of-type(25) { transform: translateZ(31px) rotateZ(-60deg) rotateX(-90deg); }
.stack--bite .jaw--upper .secs svg:nth-of-type(25) { transform: translateZ(62px) rotateZ(-60deg) rotateX(-90deg); }
.stack--fa .secs svg:nth-of-type(26), .stack--suit .secs svg:nth-of-type(26), .stack--bite .jaw--lower .secs svg:nth-of-type(26) { transform: translateZ(31px) rotateZ(-55deg) rotateX(-90deg); }
.stack--bite .jaw--upper .secs svg:nth-of-type(26) { transform: translateZ(62px) rotateZ(-55deg) rotateX(-90deg); }
.stack--fa .secs svg:nth-of-type(27), .stack--suit .secs svg:nth-of-type(27), .stack--bite .jaw--lower .secs svg:nth-of-type(27) { transform: translateZ(31px) rotateZ(-50deg) rotateX(-90deg); }
.stack--bite .jaw--upper .secs svg:nth-of-type(27) { transform: translateZ(62px) rotateZ(-50deg) rotateX(-90deg); }
.stack--fa .secs svg:nth-of-type(28), .stack--suit .secs svg:nth-of-type(28), .stack--bite .jaw--lower .secs svg:nth-of-type(28) { transform: translateZ(31px) rotateZ(-45deg) rotateX(-90deg); }
.stack--bite .jaw--upper .secs svg:nth-of-type(28) { transform: translateZ(62px) rotateZ(-45deg) rotateX(-90deg); }
.stack--fa .secs svg:nth-of-type(29), .stack--suit .secs svg:nth-of-type(29), .stack--bite .jaw--lower .secs svg:nth-of-type(29) { transform: translateZ(31px) rotateZ(-40deg) rotateX(-90deg); }
.stack--bite .jaw--upper .secs svg:nth-of-type(29) { transform: translateZ(62px) rotateZ(-40deg) rotateX(-90deg); }
.stack--fa .secs svg:nth-of-type(30), .stack--suit .secs svg:nth-of-type(30), .stack--bite .jaw--lower .secs svg:nth-of-type(30) { transform: translateZ(31px) rotateZ(-35deg) rotateX(-90deg); }
.stack--bite .jaw--upper .secs svg:nth-of-type(30) { transform: translateZ(62px) rotateZ(-35deg) rotateX(-90deg); }
.stack--fa .secs svg:nth-of-type(31), .stack--suit .secs svg:nth-of-type(31), .stack--bite .jaw--lower .secs svg:nth-of-type(31) { transform: translateZ(31px) rotateZ(-30deg) rotateX(-90deg); }
.stack--bite .jaw--upper .secs svg:nth-of-type(31) { transform: translateZ(62px) rotateZ(-30deg) rotateX(-90deg); }
.stack--fa .secs svg:nth-of-type(32), .stack--suit .secs svg:nth-of-type(32), .stack--bite .jaw--lower .secs svg:nth-of-type(32) { transform: translateZ(31px) rotateZ(-25deg) rotateX(-90deg); }
.stack--bite .jaw--upper .secs svg:nth-of-type(32) { transform: translateZ(62px) rotateZ(-25deg) rotateX(-90deg); }
.stack--fa .secs svg:nth-of-type(33), .stack--suit .secs svg:nth-of-type(33), .stack--bite .jaw--lower .secs svg:nth-of-type(33) { transform: translateZ(31px) rotateZ(-20deg) rotateX(-90deg); }
.stack--bite .jaw--upper .secs svg:nth-of-type(33) { transform: translateZ(62px) rotateZ(-20deg) rotateX(-90deg); }
.stack--fa .secs svg:nth-of-type(34), .stack--suit .secs svg:nth-of-type(34), .stack--bite .jaw--lower .secs svg:nth-of-type(34) { transform: translateZ(31px) rotateZ(-15deg) rotateX(-90deg); }
.stack--bite .jaw--upper .secs svg:nth-of-type(34) { transform: translateZ(62px) rotateZ(-15deg) rotateX(-90deg); }
.stack--fa .secs svg:nth-of-type(35), .stack--suit .secs svg:nth-of-type(35), .stack--bite .jaw--lower .secs svg:nth-of-type(35) { transform: translateZ(31px) rotateZ(-10deg) rotateX(-90deg); }
.stack--bite .jaw--upper .secs svg:nth-of-type(35) { transform: translateZ(62px) rotateZ(-10deg) rotateX(-90deg); }
.stack--fa .secs svg:nth-of-type(36), .stack--suit .secs svg:nth-of-type(36), .stack--bite .jaw--lower .secs svg:nth-of-type(36) { transform: translateZ(31px) rotateZ(-5deg) rotateX(-90deg); }
.stack--bite .jaw--upper .secs svg:nth-of-type(36) { transform: translateZ(62px) rotateZ(-5deg) rotateX(-90deg); }
.stack--fa .secs svg:nth-of-type(37), .stack--suit .secs svg:nth-of-type(37), .stack--bite .jaw--lower .secs svg:nth-of-type(37) { transform: translateZ(31px) rotateZ(0deg) rotateX(-90deg); }
.stack--bite .jaw--upper .secs svg:nth-of-type(37) { transform: translateZ(62px) rotateZ(0deg) rotateX(-90deg); }
.stack--fa .secs svg:nth-of-type(38), .stack--suit .secs svg:nth-of-type(38), .stack--bite .jaw--lower .secs svg:nth-of-type(38) { transform: translateZ(31px) rotateZ(5deg) rotateX(-90deg); }
.stack--bite .jaw--upper .secs svg:nth-of-type(38) { transform: translateZ(62px) rotateZ(5deg) rotateX(-90deg); }
.stack--fa .secs svg:nth-of-type(39), .stack--suit .secs svg:nth-of-type(39), .stack--bite .jaw--lower .secs svg:nth-of-type(39) { transform: translateZ(31px) rotateZ(10deg) rotateX(-90deg); }
.stack--bite .jaw--upper .secs svg:nth-of-type(39) { transform: translateZ(62px) rotateZ(10deg) rotateX(-90deg); }
.stack--fa .secs svg:nth-of-type(40), .stack--suit .secs svg:nth-of-type(40), .stack--bite .jaw--lower .secs svg:nth-of-type(40) { transform: translateZ(31px) rotateZ(15deg) rotateX(-90deg); }
.stack--bite .jaw--upper .secs svg:nth-of-type(40) { transform: translateZ(62px) rotateZ(15deg) rotateX(-90deg); }
.stack--fa .secs svg:nth-of-type(41), .stack--suit .secs svg:nth-of-type(41), .stack--bite .jaw--lower .secs svg:nth-of-type(41) { transform: translateZ(31px) rotateZ(20deg) rotateX(-90deg); }
.stack--bite .jaw--upper .secs svg:nth-of-type(41) { transform: translateZ(62px) rotateZ(20deg) rotateX(-90deg); }
.stack--fa .secs svg:nth-of-type(42), .stack--suit .secs svg:nth-of-type(42), .stack--bite .jaw--lower .secs svg:nth-of-type(42) { transform: translateZ(31px) rotateZ(25deg) rotateX(-90deg); }
.stack--bite .jaw--upper .secs svg:nth-of-type(42) { transform: translateZ(62px) rotateZ(25deg) rotateX(-90deg); }
.stack--fa .secs svg:nth-of-type(43), .stack--suit .secs svg:nth-of-type(43), .stack--bite .jaw--lower .secs svg:nth-of-type(43) { transform: translateZ(31px) rotateZ(30deg) rotateX(-90deg); }
.stack--bite .jaw--upper .secs svg:nth-of-type(43) { transform: translateZ(62px) rotateZ(30deg) rotateX(-90deg); }
.stack--fa .secs svg:nth-of-type(44), .stack--suit .secs svg:nth-of-type(44), .stack--bite .jaw--lower .secs svg:nth-of-type(44) { transform: translateZ(31px) rotateZ(35deg) rotateX(-90deg); }
.stack--bite .jaw--upper .secs svg:nth-of-type(44) { transform: translateZ(62px) rotateZ(35deg) rotateX(-90deg); }
.stack--fa .secs svg:nth-of-type(45), .stack--suit .secs svg:nth-of-type(45), .stack--bite .jaw--lower .secs svg:nth-of-type(45) { transform: translateZ(31px) rotateZ(40deg) rotateX(-90deg); }
.stack--bite .jaw--upper .secs svg:nth-of-type(45) { transform: translateZ(62px) rotateZ(40deg) rotateX(-90deg); }
.stack--fa .secs svg:nth-of-type(46), .stack--suit .secs svg:nth-of-type(46), .stack--bite .jaw--lower .secs svg:nth-of-type(46) { transform: translateZ(31px) rotateZ(45deg) rotateX(-90deg); }
.stack--bite .jaw--upper .secs svg:nth-of-type(46) { transform: translateZ(62px) rotateZ(45deg) rotateX(-90deg); }
.stack--fa .secs svg:nth-of-type(47), .stack--suit .secs svg:nth-of-type(47), .stack--bite .jaw--lower .secs svg:nth-of-type(47) { transform: translateZ(31px) rotateZ(50deg) rotateX(-90deg); }
.stack--bite .jaw--upper .secs svg:nth-of-type(47) { transform: translateZ(62px) rotateZ(50deg) rotateX(-90deg); }
.stack--fa .secs svg:nth-of-type(48), .stack--suit .secs svg:nth-of-type(48), .stack--bite .jaw--lower .secs svg:nth-of-type(48) { transform: translateZ(31px) rotateZ(55deg) rotateX(-90deg); }
.stack--bite .jaw--upper .secs svg:nth-of-type(48) { transform: translateZ(62px) rotateZ(55deg) rotateX(-90deg); }
.stack--fa .secs svg:nth-of-type(49), .stack--suit .secs svg:nth-of-type(49), .stack--bite .jaw--lower .secs svg:nth-of-type(49) { transform: translateZ(31px) rotateZ(60deg) rotateX(-90deg); }
.stack--bite .jaw--upper .secs svg:nth-of-type(49) { transform: translateZ(62px) rotateZ(60deg) rotateX(-90deg); }
.stack--fa .secs svg:nth-of-type(50), .stack--suit .secs svg:nth-of-type(50), .stack--bite .jaw--lower .secs svg:nth-of-type(50) { transform: translateZ(31px) rotateZ(65deg) rotateX(-90deg); }
.stack--bite .jaw--upper .secs svg:nth-of-type(50) { transform: translateZ(62px) rotateZ(65deg) rotateX(-90deg); }
.stack--fa .secs svg:nth-of-type(51), .stack--suit .secs svg:nth-of-type(51), .stack--bite .jaw--lower .secs svg:nth-of-type(51) { transform: translateZ(31px) rotateZ(70deg) rotateX(-90deg); }
.stack--bite .jaw--upper .secs svg:nth-of-type(51) { transform: translateZ(62px) rotateZ(70deg) rotateX(-90deg); }
.stack--fa .secs svg:nth-of-type(52), .stack--suit .secs svg:nth-of-type(52), .stack--bite .jaw--lower .secs svg:nth-of-type(52) { transform: translateZ(31px) rotateZ(75deg) rotateX(-90deg); }
.stack--bite .jaw--upper .secs svg:nth-of-type(52) { transform: translateZ(62px) rotateZ(75deg) rotateX(-90deg); }
.stack--fa .secs svg:nth-of-type(53), .stack--suit .secs svg:nth-of-type(53), .stack--bite .jaw--lower .secs svg:nth-of-type(53) { transform: translateZ(31px) rotateZ(80deg) rotateX(-90deg); }
.stack--bite .jaw--upper .secs svg:nth-of-type(53) { transform: translateZ(62px) rotateZ(80deg) rotateX(-90deg); }
.stack--fa .secs svg:nth-of-type(54), .stack--suit .secs svg:nth-of-type(54), .stack--bite .jaw--lower .secs svg:nth-of-type(54) { transform: translateZ(31px) rotateZ(85deg) rotateX(-90deg); }
.stack--bite .jaw--upper .secs svg:nth-of-type(54) { transform: translateZ(62px) rotateZ(85deg) rotateX(-90deg); }
.stack--fa .secs svg:nth-of-type(55), .stack--suit .secs svg:nth-of-type(55), .stack--bite .jaw--lower .secs svg:nth-of-type(55) { transform: translateZ(31px) rotateZ(90deg) rotateX(-90deg); }
.stack--bite .jaw--upper .secs svg:nth-of-type(55) { transform: translateZ(62px) rotateZ(90deg) rotateX(-90deg); }
.stack--fa .secs svg:nth-of-type(56), .stack--suit .secs svg:nth-of-type(56), .stack--bite .jaw--lower .secs svg:nth-of-type(56) { transform: translateZ(31px) rotateZ(95deg) rotateX(-90deg); }
.stack--bite .jaw--upper .secs svg:nth-of-type(56) { transform: translateZ(62px) rotateZ(95deg) rotateX(-90deg); }
.stack--fa .secs svg:nth-of-type(57), .stack--suit .secs svg:nth-of-type(57), .stack--bite .jaw--lower .secs svg:nth-of-type(57) { transform: translateZ(31px) rotateZ(100deg) rotateX(-90deg); }
.stack--bite .jaw--upper .secs svg:nth-of-type(57) { transform: translateZ(62px) rotateZ(100deg) rotateX(-90deg); }
.stack--fa .secs svg:nth-of-type(58), .stack--suit .secs svg:nth-of-type(58), .stack--bite .jaw--lower .secs svg:nth-of-type(58) { transform: translateZ(31px) rotateZ(105deg) rotateX(-90deg); }
.stack--bite .jaw--upper .secs svg:nth-of-type(58) { transform: translateZ(62px) rotateZ(105deg) rotateX(-90deg); }
.stack--fa .secs svg:nth-of-type(59), .stack--suit .secs svg:nth-of-type(59), .stack--bite .jaw--lower .secs svg:nth-of-type(59) { transform: translateZ(31px) rotateZ(110deg) rotateX(-90deg); }
.stack--bite .jaw--upper .secs svg:nth-of-type(59) { transform: translateZ(62px) rotateZ(110deg) rotateX(-90deg); }
.stack--fa .secs svg:nth-of-type(60), .stack--suit .secs svg:nth-of-type(60), .stack--bite .jaw--lower .secs svg:nth-of-type(60) { transform: translateZ(31px) rotateZ(115deg) rotateX(-90deg); }
.stack--bite .jaw--upper .secs svg:nth-of-type(60) { transform: translateZ(62px) rotateZ(115deg) rotateX(-90deg); }
.stack--fa .secs svg:nth-of-type(61), .stack--suit .secs svg:nth-of-type(61), .stack--bite .jaw--lower .secs svg:nth-of-type(61) { transform: translateZ(31px) rotateZ(120deg) rotateX(-90deg); }
.stack--bite .jaw--upper .secs svg:nth-of-type(61) { transform: translateZ(62px) rotateZ(120deg) rotateX(-90deg); }
.stack--fa .secs svg:nth-of-type(62), .stack--suit .secs svg:nth-of-type(62), .stack--bite .jaw--lower .secs svg:nth-of-type(62) { transform: translateZ(31px) rotateZ(125deg) rotateX(-90deg); }
.stack--bite .jaw--upper .secs svg:nth-of-type(62) { transform: translateZ(62px) rotateZ(125deg) rotateX(-90deg); }
.stack--fa .secs svg:nth-of-type(63), .stack--suit .secs svg:nth-of-type(63), .stack--bite .jaw--lower .secs svg:nth-of-type(63) { transform: translateZ(31px) rotateZ(130deg) rotateX(-90deg); }
.stack--bite .jaw--upper .secs svg:nth-of-type(63) { transform: translateZ(62px) rotateZ(130deg) rotateX(-90deg); }
.stack--fa .secs svg:nth-of-type(64), .stack--suit .secs svg:nth-of-type(64), .stack--bite .jaw--lower .secs svg:nth-of-type(64) { transform: translateZ(31px) rotateZ(135deg) rotateX(-90deg); }
.stack--bite .jaw--upper .secs svg:nth-of-type(64) { transform: translateZ(62px) rotateZ(135deg) rotateX(-90deg); }
.stack--fa .secs svg:nth-of-type(65), .stack--suit .secs svg:nth-of-type(65), .stack--bite .jaw--lower .secs svg:nth-of-type(65) { transform: translateZ(31px) rotateZ(140deg) rotateX(-90deg); }
.stack--bite .jaw--upper .secs svg:nth-of-type(65) { transform: translateZ(62px) rotateZ(140deg) rotateX(-90deg); }
.stack--fa .secs svg:nth-of-type(66), .stack--suit .secs svg:nth-of-type(66), .stack--bite .jaw--lower .secs svg:nth-of-type(66) { transform: translateZ(31px) rotateZ(145deg) rotateX(-90deg); }
.stack--bite .jaw--upper .secs svg:nth-of-type(66) { transform: translateZ(62px) rotateZ(145deg) rotateX(-90deg); }
.stack--fa .secs svg:nth-of-type(67), .stack--suit .secs svg:nth-of-type(67), .stack--bite .jaw--lower .secs svg:nth-of-type(67) { transform: translateZ(31px) rotateZ(150deg) rotateX(-90deg); }
.stack--bite .jaw--upper .secs svg:nth-of-type(67) { transform: translateZ(62px) rotateZ(150deg) rotateX(-90deg); }
.stack--fa .secs svg:nth-of-type(68), .stack--suit .secs svg:nth-of-type(68), .stack--bite .jaw--lower .secs svg:nth-of-type(68) { transform: translateZ(31px) rotateZ(155deg) rotateX(-90deg); }
.stack--bite .jaw--upper .secs svg:nth-of-type(68) { transform: translateZ(62px) rotateZ(155deg) rotateX(-90deg); }
.stack--fa .secs svg:nth-of-type(69), .stack--suit .secs svg:nth-of-type(69), .stack--bite .jaw--lower .secs svg:nth-of-type(69) { transform: translateZ(31px) rotateZ(160deg) rotateX(-90deg); }
.stack--bite .jaw--upper .secs svg:nth-of-type(69) { transform: translateZ(62px) rotateZ(160deg) rotateX(-90deg); }
.stack--fa .secs svg:nth-of-type(70), .stack--suit .secs svg:nth-of-type(70), .stack--bite .jaw--lower .secs svg:nth-of-type(70) { transform: translateZ(31px) rotateZ(165deg) rotateX(-90deg); }
.stack--bite .jaw--upper .secs svg:nth-of-type(70) { transform: translateZ(62px) rotateZ(165deg) rotateX(-90deg); }
.stack--fa .secs svg:nth-of-type(71), .stack--suit .secs svg:nth-of-type(71), .stack--bite .jaw--lower .secs svg:nth-of-type(71) { transform: translateZ(31px) rotateZ(170deg) rotateX(-90deg); }
.stack--bite .jaw--upper .secs svg:nth-of-type(71) { transform: translateZ(62px) rotateZ(170deg) rotateX(-90deg); }
.stack--fa .secs svg:nth-of-type(72), .stack--suit .secs svg:nth-of-type(72), .stack--bite .jaw--lower .secs svg:nth-of-type(72) { transform: translateZ(31px) rotateZ(175deg) rotateX(-90deg); }
.stack--bite .jaw--upper .secs svg:nth-of-type(72) { transform: translateZ(62px) rotateZ(175deg) rotateX(-90deg); }

/* Flat diagrams share the same strokes. */
.dia {
  position: absolute;
  inset: var(--u4) var(--u2);
  width: calc(100% - var(--u4));
  height: calc(100% - var(--u8));
  overflow: visible;
  fill: none;
  stroke: var(--steel);
  stroke-width: 1;
}
.dia * { vector-effect: non-scaling-stroke; }
.dia .ridge { stroke: var(--hairline); }
.dia .plan { stroke: var(--accent); stroke-dasharray: 2 3; }
.dia .node { fill: var(--accent); stroke: var(--accent); }
.dia .hub { fill: var(--accent); stroke: none; }
.dia .tooth { stroke: var(--text); }
.dia .tooth--gone,
.dia .void { stroke: var(--steel); stroke-dasharray: 2 3; }
.dia text {
  font: 500 8px var(--mono);
  letter-spacing: var(--tracking);
  text-transform: uppercase;
  fill: var(--text-2);
  stroke: none;
}

@media (min-width: 64rem) {
  .fig { --s: var(--zoom); }
  .fig__parts li::before { width: var(--u3); }
  /* The hero figure takes the right-hand columns for the full height of the block. Its scale
     follows the screen's height, not its width or the root size: when pinned the block is
     exactly one screen tall (see HERO PIN under MOTION), so the height is what it must fit. */
  .hero .fig { --s: 1; grid-column: 8 / -1; grid-row: 1 / -1; height: auto; min-height: 40rem; }
  .fig__note { top: var(--u3); left: auto; right: var(--inset); }
  /* Beside the text, a figure stays in view for as long as its section does. */
  .fig--side {
    grid-column: 9 / -1;
    grid-row: 1 / span 2;
    position: sticky;
    top: calc(var(--rail-h) + var(--u2));
    align-self: start;
    height: 28rem;
    margin-bottom: var(--u3);
  }
  .fig--arch { --s: calc(1.25 * var(--zoom)); }
  /* A drawing beside text has its part names hanging off to the right. The grid now runs to
     the gutter, so the drawing sits a little left of its column's centre to keep those names
     inside the window. */
  .fig--side { --cx: calc(50% - var(--u6)); }
}
@media (min-width: 64rem) and (max-width: 79.99rem) {
  .fig--arch { --s: 0.9; }   /* four narrow columns: a smaller drawing, so it clears the text and the window edge */
}
/* Very wide screens: text keeps its measure, so the drawing moves a column in to stay beside it. */
@media (min-width: 120rem) {
  .fig--side { grid-column: 8 / span 4; }
}
@media (min-width: 64rem) and (max-height: 51.99rem) { .hero .fig { --s: 0.85; } }
@media (min-width: 64rem) and (max-height: 45.99rem) { .hero .fig { --s: 0.75; } }
@media (min-width: 64rem) and (min-height: 60rem) { .hero .fig { --s: 1.15; } }
@media (min-width: 64rem) and (min-height: 72rem) { .hero .fig { --s: 1.3; } }
@media (min-width: 64rem) and (min-height: 80rem) { .hero .fig { --s: 1.4; } }

/* ==========================================================================
   02 SERVICES: numbered rows
   ========================================================================== */

.list {
  display: grid;
  grid-template-columns: subgrid;
  margin-top: var(--u6);
}

.comp {
  position: relative;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  row-gap: var(--u1);
  padding-block: var(--u3);
  border-top: 1px solid var(--hairline);
}
.comp > * { grid-column: 1 / -1; padding-inline: var(--inset); }

.comp__no {
  font: 500 var(--t0)/var(--pitch) var(--mono);
  color: var(--text-2);
}
.comp__name {
  font: 500 var(--t2)/var(--u4) var(--sans);
  letter-spacing: -0.02em;
}
.comp__name a { text-decoration: none; }
.comp__name a::after { content: ""; position: absolute; inset: 0; }   /* whole row is the target */
.comp__text { color: var(--text-2); max-width: 36rem; text-wrap: pretty; }
/* The whole row is one link; say so at its right-hand end, in the label voice. */
.comp { padding-bottom: var(--u6); }
.comp__name::after {
  content: "View \2192" / "";
  position: absolute;
  right: var(--inset);
  bottom: var(--u3);
  font: 500 var(--label)/var(--u2) var(--mono);
  letter-spacing: var(--tracking);
  text-transform: uppercase;
  color: var(--text-2);
}
.comp:hover .comp__name::after,
.comp:focus-within .comp__name::after { color: var(--accent); }

/* Glyph: one drawing per service, in the figure's line language. */
.comp__glyph {
  grid-column: 9 / -1;
  grid-row: 1;
  justify-self: end;
  width: var(--u6);
  height: var(--u6);
  margin-right: var(--inset);
  padding: 0;
  overflow: visible;
  fill: none;
  stroke: var(--steel);
  stroke-width: 1;
}
.comp__glyph * { vector-effect: non-scaling-stroke; }
.comp__glyph .plan { stroke: var(--accent); stroke-dasharray: 2 3; }
.comp__glyph .node { fill: var(--bg); stroke: var(--text); }
.comp__glyph .hub { fill: var(--accent); stroke: none; }
.comp__no { grid-row: 1; align-self: end; }
.comp:hover .node, .comp:focus-within .node { fill: var(--accent); stroke: var(--accent); }

/* Hover: an accent marker appears, a hairline extends, the numeral indexes. */
.comp::before {
  content: "";
  position: absolute;
  left: 0;
  top: var(--u4);
  width: var(--u1);
  height: var(--u1);
  background: var(--accent);
  visibility: hidden;
}
.comp::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  z-index: 1;
  height: 1px;
  background: var(--accent);
  transform-origin: left;
  scale: 0 1;
}
.comp:hover::before, .comp:focus-within::before { visibility: visible; }
.comp:hover::after, .comp:focus-within::after { scale: 1 1; }
.comp:hover .comp__no, .comp:focus-within .comp__no { color: var(--accent); }
.comp:hover a { color: inherit; }
.comp a:focus-visible { outline: 0; }

@media (min-width: 64rem) {
  .comp { padding-block: var(--u4); }
  .comp__no { grid-column: 1; align-self: start; }
  .comp__glyph { grid-column: 2; grid-row: 1 / span 2; justify-self: start; width: var(--u8); height: var(--u8); margin-right: 0; }
  .comp__name { grid-column: 3 / span 4; font-size: var(--t3); line-height: 2.5rem; font-weight: 400; letter-spacing: -0.03em; }
  .comp__text { grid-column: 7 / span 5; padding-top: var(--u1); }
  .comp__name::after { bottom: auto; top: calc(var(--u4) + var(--u1) + 0.25rem); }   /* level with the name's first line */
}

/* ==========================================================================
   03 CASES: one placeholder card
   ========================================================================== */

.case {
  position: relative;
  display: grid;
  grid-template-columns: subgrid;
  margin-block: var(--u6);
  border: 1px solid var(--hairline);
  background: var(--surface);
}
.case > * { grid-column: 1 / -1; }

/* Empty frame: holds the photograph's 3:2 space. Corner brackets and a centre mark. */
.case__frame {
  --mark: linear-gradient(var(--steel), var(--steel));
  aspect-ratio: 3 / 2;
  border-bottom: 1px solid var(--hairline);
  background:
    var(--mark) left var(--u2) top var(--u2) / var(--u2) 1px no-repeat,
    var(--mark) left var(--u2) top var(--u2) / 1px var(--u2) no-repeat,
    var(--mark) right var(--u2) top var(--u2) / var(--u2) 1px no-repeat,
    var(--mark) right var(--u2) top var(--u2) / 1px var(--u2) no-repeat,
    var(--mark) left var(--u2) bottom var(--u2) / var(--u2) 1px no-repeat,
    var(--mark) left var(--u2) bottom var(--u2) / 1px var(--u2) no-repeat,
    var(--mark) right var(--u2) bottom var(--u2) / var(--u2) 1px no-repeat,
    var(--mark) right var(--u2) bottom var(--u2) / 1px var(--u2) no-repeat,
    var(--mark) center / 1px var(--u2) no-repeat,
    var(--mark) center / var(--u2) 1px no-repeat,
    var(--bg);
}

/* A frame with its photographs: stacked in the same 3:2 space, the last one on top. Scrolling slides them in one at a time,
   from the right, the way the row of cases itself moves; each carries a hairline on its leading edge. */
.case__frame--photos { position: relative; overflow: hidden; background: var(--bg); view-timeline: --photos block; }
.case__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.case__photo + .case__photo { box-shadow: -1px 0 0 var(--accent); }
.case__body { padding: var(--u3) var(--inset); }
.case__no {
  font: 500 var(--t0)/var(--pitch) var(--mono);
  letter-spacing: var(--tracking);
  text-transform: uppercase;
  color: var(--text-2);
}
.case__title {
  margin-top: var(--u1);
  font: 500 var(--t2)/var(--u4) var(--sans);
  letter-spacing: -0.02em;
}
/* Holders. Every section with a scroll-driven figure sits in one. By default it does nothing.
   Where scroll-linked animation runs on a wide screen, the holder gains a stretch of extra height and its
   contents stick, so the text holds still while scrolling plays the figure. */
/* Cases holder. By default the cases stack; where scroll-linked animation runs on a wide
   screen, the holder is tall, its contents stick, and the row of cases slides sideways. */
.pin, .pin__stick { display: grid; grid-template-columns: subgrid; }
:where(.pin, .pin__stick) > * { grid-column: 1 / -1; }   /* zero weight, so each part's own placement always wins */
.pin .case { grid-template-columns: minmax(0, 1fr); }
.pin__count { display: none; padding: var(--u2) var(--inset) 0; }
.pin__count::after { counter-reset: n var(--slide); content: " " counter(n, decimal-leading-zero) " / 03"; color: var(--text); }
@media (min-width: 64rem) {
  .pin__stick > .plate__index { grid-column: 1 / span 2; }
  .pin__stick > .plate__title { grid-column: 3 / span 7; }
  .pin__stick > .pin__count { grid-column: 10 / -1; grid-row: 1; justify-self: end; align-self: end; }
  .pin__stick > .pin__view { grid-column: 3 / -1; }
  .pin .case { grid-template-columns: 3fr 2fr; }
  .pin .case__frame, .pin .case__body { grid-column: auto; }
}

/* Stage rail: three stops on one line. The accent marker sits on one stop. */
.stages {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: var(--u3);
  border-top: 1px solid var(--steel);
}
.stages li { position: relative; padding-top: var(--u2); }
.stages li::before { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: var(--u1); background: var(--steel); }
.stages::before,
.stages::after { content: ""; position: absolute; left: calc(200% / 3); background: var(--accent); }
.stages::before { top: -1px; width: calc(100% / 3); height: 1px; }
.stages::after { top: 0; width: var(--u1); height: var(--u1); }
.stages { view-timeline: --stages block; }

.case__meta { margin-top: var(--u3); border-bottom: 1px solid var(--hairline); }
.case__meta > div {
  display: grid;
  grid-template-columns: 8rem 1fr;
  align-items: baseline;
  padding-block: var(--u1);
  border-top: 1px solid var(--hairline);
}
.case__note { margin-top: var(--u3); font-size: var(--t-1); line-height: var(--u3); color: var(--text-2); }

.case::after {
  content: "";
  position: absolute;
  inset: auto -1px -1px;
  height: 1px;
  background: var(--accent);
  transform-origin: left;
  scale: 0 1;
}
.case:hover::after { scale: 1 1; }
.case:hover .case__no { color: var(--accent); }

@media (min-width: 64rem) {
  .case { grid-column: 3 / -1; }
  .case__frame { grid-column: span 6; border-bottom: 0; border-right: 1px solid var(--hairline); }
  .case__body { grid-column: span 4; padding-block: var(--u4); }
}

/* ==========================================================================
   04 PRACTICE: the affiliation slot
   ========================================================================== */

.sites {
  display: grid;
  grid-template-columns: subgrid;
  margin-top: var(--u6);
  border: 1px solid var(--hairline);
  background: var(--surface);
}
.site { grid-column: 1 / -1; padding: var(--u3) var(--inset) var(--u4); }
.site + .site { border-top: 1px solid var(--hairline); }
.site__name {
  margin-top: var(--u1);
  font: 500 var(--t2)/var(--u4) var(--sans);
  letter-spacing: -0.02em;
}
.site__address { margin-top: var(--u2); color: var(--text-2); }
.site__address a { color: var(--text); }
.site__address a:hover { color: var(--accent); }
@media (max-width: 63.99rem) {
  .site__address a { display: inline-block; padding-block: 0.625rem; margin-block: -0.625rem; }   /* a phone number is tapped: 44px tall without moving the lines around it */
}
.site { position: relative; display: flex; flex-direction: column; }
.site__actions { display: flex; flex-wrap: wrap; gap: var(--u2); margin-top: auto; padding-top: var(--u3); }   /* buttons sit on the card's bottom edge, level across both cards */

/* Week strip: seven days, an accent marker on each day worked at this site. */
/* Each card reads in the same order: place, practice name, days (strip and words), then anything else. */
.when { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0 var(--u3); margin-top: var(--u2); }
.when .label { margin-top: var(--u2); white-space: nowrap; }   /* drops under the strip, whole, when there is no room beside it */
.site__role { margin-top: var(--u2); }
.week { position: relative; display: flex; }
.week li {
  width: var(--u4);
  border-top: 1px solid var(--steel);
  padding-top: var(--u2);
  font: 500 var(--label)/var(--u2) var(--mono);
  color: var(--text-2);
}
.week li { position: relative; }
.week li.on { color: var(--text); }
.week li.on::before { content: ""; position: absolute; top: 0; left: 0; width: var(--u1); height: var(--u1); background: var(--accent); }
.week { view-timeline: --week block; }
.sites { view-timeline: --sites block; }

.sites__note {
  max-width: 40rem;
  padding: var(--u3) var(--inset) var(--u6);
  color: var(--text-2);
}

/* Button: rectangular, hairline, mono label. Primary carries an accent marker. */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: var(--u6);
  padding-inline: var(--u3);
  border: 1px solid var(--steel);
  font: 500 var(--label)/var(--u2) var(--mono);
  letter-spacing: var(--tracking);
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.btn--primary { padding-left: var(--u4); }
/* Phones: a long button label wraps inside its box rather than running off the screen. */
@media (max-width: 39.99rem) {
  .btn { height: auto; min-height: var(--u6); padding-block: 0.75rem; white-space: normal; }
}
.btn--primary::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: var(--u1);
  height: var(--u1);
  translate: 0 -50%;
  background: var(--accent);
}
.btn::after {
  content: "";
  position: absolute;
  inset: auto -1px -1px;
  height: 1px;
  background: var(--accent);
  transform-origin: left;
  scale: 0 1;
}
.btn:hover { color: var(--text); }
.btn:hover::after, .btn:focus-visible::after { scale: 1 1; }
.btn:active { color: var(--accent); border-color: var(--accent); }

@media (min-width: 64rem) {
  .sites { grid-column: 3 / -1; }
  .site { grid-column: span 5; padding-block: var(--u4); }
  .site + .site { border-top: 0; border-left: 1px solid var(--hairline); }
  .sites__note { grid-column: 3 / span 7; }
}

/* ==========================================================================
   DOCUMENT PAGES: text in the middle columns, its figure alongside
   ========================================================================== */

.plate--first { border-top: 0; }
.plate--first::before, .plate--first::after { content: none; }

.doc-title {
  padding: var(--u2) var(--inset) 0;
  font: 300 var(--t4)/var(--u6) var(--sans);
  letter-spacing: -0.04em;
}
@media (min-width: 40rem) { .doc-title { font-size: var(--t6); line-height: var(--u8); } }
.doc { padding: var(--u2) var(--inset) var(--u8); }
.doc > * { max-width: 38rem; }
.doc h2, .doc h3 { margin-top: var(--u6); font: 500 var(--t2)/var(--u4) var(--sans); letter-spacing: -0.02em; }
.doc p, .doc ul { margin-top: var(--u2); }
.doc .lede { margin-top: var(--u3); font: 400 var(--t1)/var(--u4) var(--sans); }
.doc ul li { position: relative; margin-top: var(--u1); padding-left: var(--u3); }
.doc ul li::before { content: ""; position: absolute; left: 0; top: 0.75rem; width: var(--u1); height: 1px; background: var(--accent); }
.doc strong { font-weight: 500; }
.doc .note { font-size: var(--t-1); line-height: var(--u3); color: var(--text-2); }
.doc .site__actions { max-width: none; }

/* Portrait: one weight of line, no fill. On a narrow screen it follows the text. */
.portrait { order: 1; perspective: none; }
.sketch { position: absolute; inset: var(--u2); width: calc(100% - var(--u4)); height: calc(100% - var(--u4)); overflow: visible; fill: none; stroke: var(--text); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }   /* the drawing is in photo pixels; 2.4 of them is about one screen pixel here */
.sketch path { stroke-dasharray: 1; }

/* Link lists: one item per row, what it is above the link. */
.doc .links { border-top: 1px solid var(--hairline); }
.doc .links li { margin-top: 0; padding: var(--u2) 0; border-bottom: 1px solid var(--hairline); }
.doc .links li::before { content: none; }
.links a { font-weight: 500; }
.doc .links--tight li { padding: var(--u1) 0; }
.links--tight span { display: block; color: var(--text-2); font-size: var(--t-1); line-height: var(--u3); }

/* Steps: the list is the diagram. A line runs down it; each stop fills as it is reached. */
.steps { margin-top: var(--u3); }
.steps li { position: relative; padding: 0 0 var(--u4) var(--u4); }
.steps li::before { content: ""; position: absolute; left: 3px; top: var(--u1); bottom: calc(var(--u1) * -1); border-left: 1px solid var(--steel); }
.steps li:last-child::before { content: none; }
.steps li.steps__wait::before { border-left-style: dashed; }   /* months pass here */
.steps li::after { content: ""; position: absolute; left: 0; top: var(--u1); width: 7px; height: 7px; border: 1px solid var(--accent); background: var(--accent); }
.steps strong { display: block; }
/* One small drawing per step, in the figures' line language. One part of it switches on when the step is reached. */
.steps li:has(.ico) { padding-right: var(--u8); min-height: var(--u8); }
.ico { position: absolute; right: 0; top: 0; width: var(--u6); height: var(--u6); overflow: visible; fill: none; stroke: var(--steel); stroke-width: 1; }
.ico * { vector-effect: non-scaling-stroke; }
.ico .plan { stroke: var(--accent); stroke-dasharray: 2 3; }
.ico .bright { stroke: var(--text); }
/* Open stops and a dashed line: under way, not finished. */
.steps.steps--open li::before { border-left-style: dashed; }
.steps.steps--open li::after { background: var(--bg); border-color: var(--text); animation: none; }
.doc .stages { margin-top: var(--u4); }
.doc--after { padding-top: var(--u3); }

@media (min-width: 64rem) {
  .doc-title { grid-column: 3 / span 6; grid-row: 1; padding-top: var(--u6); }
  .plate--doc .plate__title { grid-column: 3 / span 6; }
  .doc { grid-column: 3 / span 6; grid-row: 2; }
  .doc--after { grid-row: auto; }
}

@media (min-width: 80rem) {
  .doc-title { font-size: var(--t7); line-height: 5rem; }
}

/* ==========================================================================
   FOOT
   ========================================================================== */

.foot__also { padding: 0 var(--inset) var(--u2); font-size: var(--t-1); line-height: var(--u3); color: var(--text-2); }
.foot__nav ul { display: flex; flex-wrap: wrap; gap: var(--u1) var(--u3); padding: 0 var(--inset) var(--u6); }
.foot__nav a {
  font: 500 var(--label)/var(--u3) var(--mono);
  letter-spacing: var(--tracking);
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-2);
}
.foot__nav a:hover, .foot__nav a[aria-current] { color: var(--text); }
@media (max-width: 63.99rem) {
  .foot__nav ul { row-gap: 0; }
  .foot__nav a { display: inline-block; line-height: 2.75rem; }   /* 44px touch targets */
}
.foot__text {
  max-width: 32rem;
  padding: var(--u2) var(--inset) var(--u3);
  font-size: var(--t-1);
  line-height: var(--u3);
  color: var(--text-2);
}

@media (min-width: 64rem) {
  .foot .plate__index { padding-top: var(--u3); }
  .foot__text { grid-column: 3 / span 7; grid-row: 1; padding-top: var(--u3); }
  .foot__also { grid-column: 3 / span 7; grid-row: 2; }
  .foot__nav { grid-column: 3 / -1; grid-row: 3; }
  /* Home only: the map in the hero figure is credited under the other line. */
  .foot__credit { grid-row: 3; }
  .foot__credit ~ .foot__nav { grid-row: 4; }
}

/* ==========================================================================
   MOTION: precise. linear, steps() or --stop. 120 / 240 / 480ms.
   Every rule below is additive: with reduced motion, or without support,
   the page is already in its finished state and changes are instant.
   ========================================================================== */

@keyframes rail-x { from { translate: -100% 0; } }
@keyframes rail-y { from { translate: 0 100%; } }
@keyframes draw-x { from { scale: 0 1; } }
@keyframes index { from { translate: 0 calc(var(--turns) * var(--pitch)); } }
@keyframes reindex { from { translate: 0 var(--pitch); } }
@keyframes place { from { translate: 0 0; } to { translate: 1200% 0; } }
@keyframes arch { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes build { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes seconds { to { --sec: 60; } }
@keyframes minutes { to { --min: 60; } }
@keyframes progress { to { scale: 1 1; } }
@keyframes position { to { --pos: 100; } }
/* Each of the first two cases is held while its photographs play, then the row moves on; the third lands
   just before the hold ends (the first and last are read on the way in and out). The counter
   turns over half way through each move. */
@keyframes slide { 0%, 33% { translate: 0 0; } 43%, 84.5% { translate: calc(-100% / 3) 0; } 97%, 100% { translate: calc(-200% / 3) 0; } }
@keyframes count { 0%, 37% { --slide: 1; } 38%, 90% { --slide: 2; } 91%, 100% { --slide: 3; } }
@keyframes seat { to { --e: 0; } }
@keyframes real { from { --p: 0; } to { --p: 1; } }
@keyframes seat-loop { 0%, 35% { --e: 1; } 50%, 85% { --e: 0; } 100% { --e: 1; } }
@keyframes lit { to { fill: var(--accent); stroke: var(--accent); } }
@keyframes lit-loop { 0%, 40% { fill: var(--bg); stroke: var(--text); } 50%, 100% { fill: var(--accent); stroke: var(--accent); } }
@keyframes mark { from { background: transparent; } }
@keyframes stage { from { left: 0; } }
@keyframes photo { from { translate: 100% 0; } }   /* on a rail: in from the right, one axis, and stop */
@keyframes stage-5 { 0%, 19.9% { left: 0; } 20%, 79.9% { left: calc(100% / 3); } 80%, 100% { left: calc(200% / 3); } }
@keyframes stage-4 { 0%, 24.9% { left: 0; } 25%, 74.9% { left: calc(100% / 3); } 75%, 100% { left: calc(200% / 3); } }
@keyframes reach { from { background: var(--bg); border-color: var(--steel); } }
@keyframes light { from { fill: var(--bg); stroke: var(--text); } }
@keyframes vanish { from { stroke: var(--text); } }
@keyframes sketch { from { stroke-dashoffset: 1; } }
@keyframes appear { from { stroke: transparent; } }
@keyframes lose { from { stroke: var(--text); stroke-dasharray: 0; } }

@media (prefers-reduced-motion: no-preference) {

  /* The arch: a tooth is finished every five seconds and stays; the one in progress is built from the
     implant up, one step a second. The readout counts the same seconds and the minutes gone. */
  .scan__done, .scan__bone { animation: arch 60s steps(12, end) infinite; }
  .scan__now { display: block; animation: place 60s steps(12, end) infinite; }
  .scan__now::before { animation: build 5s steps(5, jump-start) infinite; }
  /* On a narrow screen the places are too small to draw teeth in, so only the ridge fills in. */
  @media (max-width: 39.99rem) { .scan__now { display: none; } }
  .clock::after { animation: seconds 60s steps(60, end) infinite, minutes 3600s steps(60, end) infinite; }
  @media (min-width: 64rem) { .clock { display: block; } }

  /* Glyph points switch on one after another, with no fade. */
  .comp__glyph .node { transition: fill 0s linear, stroke 0s linear; }
  .comp:hover .node:nth-of-type(2) { transition-delay: 60ms; }
  .comp:hover .node:nth-of-type(3) { transition-delay: 120ms; }
  .comp:hover .node:nth-of-type(4) { transition-delay: 180ms; }
  .comp:hover .node:nth-of-type(5) { transition-delay: 240ms; }
  .comp:hover .node:nth-of-type(6) { transition-delay: 300ms; }

  /* Hover and state changes: extend, then stop dead. */
  .rail__nav a::after,
  .comp::after,
  .case::after,
  .btn::after { transition: scale var(--component) var(--stop); }
  .mode__track::before { transition: translate var(--micro) var(--stop); }
  .skip { transition: translate var(--micro) linear; }

  /* Hover: the numeral indexes one position, in three steps. */
  .comp:hover .wheel__strip,
  .comp:focus-within .wheel__strip,
  .case:hover .wheel__strip { animation: reindex var(--component) steps(3, end) both; }

  /* Identity enters on rails at load. One axis each. */
  .hero .index .wheel__strip { animation: index var(--section) steps(1, end) both; }
  .wordmark__type { animation: rail-y var(--section) var(--stop) both; }
  .wordmark::after { animation: draw-x var(--section) var(--stop) var(--component) both; }
  .positioning span { animation: rail-x var(--section) var(--stop) var(--component) both; }
  .spec__cell > * { animation: rail-y var(--component) var(--stop) both; }
  .spec__cell:nth-child(1) > * { animation-delay: var(--section); }
  .spec__cell:nth-child(2) > * { animation-delay: calc(var(--section) + var(--micro)); }
  .spec__cell:nth-child(3) > * { animation-delay: calc(var(--section) + var(--component)); }

  /* Scroll-linked: position is a pure function of scroll.
     Static fallback: without animation-timeline none of this applies. */
  @supports (animation-timeline: view()) {

    /* Progress: an accent hairline along the rail tracks page position. */
    .rail__inner::after {
      content: "";
      position: absolute;
      inset: auto 0 -1px;
      height: 1px;
      background: var(--accent);
      transform-origin: left;
      scale: 0 1;
      animation: progress linear both;
      animation-timeline: scroll(root block);
    }

    /* Readout: the same position as a whole number, 00 to 100. */
    @media (min-width: 64rem) { .readout { display: block; } }
    .readout::after {
      counter-reset: pos var(--pos);
      content: " " counter(pos, decimal-leading-zero) "%";
      color: var(--text);
      animation: position linear both;
      animation-timeline: scroll(root block);
    }

    /* Figures in a page's first section: scrolling seats the parts together. */
    /* Measured from the top of the page, not from the section, so the parts
       are seated while the figure is still on screen at any screen size. */
    .plate--first .fig {
      animation: seat linear both;
      animation-timeline: scroll(root block);
      animation-range: 0rem 12rem;
    }
    @media (min-width: 64rem) {
      .plate--first .fig { animation-range: 0rem 18rem; }
    }
    /* BEGIN generated: hero figure motion (tools/hero-figure) */
    /* The home page's figure plays --p from 0 to 1; its range is set with the other holds below
       (HERO PIN, phones). Its sheets: one set of frames per screen density, the grid the same in each. */
    .hero .fig { animation: real linear both; animation-timeline: scroll(root block); animation-range: 0rem 12rem; }
    @media (min-width: 64rem) { .hero .fig { animation-range: 0rem 18rem; } }
    .real__still { display: none; }
    .real__shade { background-image: url("/img/hero/fig-shadow-d.webp"); }
    .real__map { background-image: url("/img/hero/fig-map-clay-d.webp"); }
    .real__map--final { background-image: url("/img/hero/fig-map-final-d.webp"); }
    .real__part--implant { background-image: url("/img/hero/fig-implant-d.webp"); }
    .real__part--abutment { background-image: url("/img/hero/fig-abutment-d.webp"); }
    .real__part--crown { background-image: url("/img/hero/fig-crown-d.webp"); }
    .real__part--screw { background-image: url("/img/hero/fig-screw-d.webp"); }
    @media (min-width: 64rem) and (min-height: 72rem) and (min-resolution: 1.5dppx) {
      .real__map { background-image: url("/img/hero/fig-map-clay-x.webp"); }
      .real__map--final { background-image: url("/img/hero/fig-map-final-x.webp"); }
      .real__part--implant { background-image: url("/img/hero/fig-implant-x.webp"); }
      .real__part--abutment { background-image: url("/img/hero/fig-abutment-x.webp"); }
      .real__part--crown { background-image: url("/img/hero/fig-crown-x.webp"); }
      .real__part--screw { background-image: url("/img/hero/fig-screw-x.webp"); }
    }
    @media (min-width: 64rem) and (max-resolution: 1.49dppx) {
      .real__map { background-image: url("/img/hero/fig-map-clay-l.webp"); }
      .real__map--final { background-image: url("/img/hero/fig-map-final-l.webp"); }
      .real__part--implant { background-image: url("/img/hero/fig-implant-l.webp"); }
      .real__part--abutment { background-image: url("/img/hero/fig-abutment-l.webp"); }
      .real__part--crown { background-image: url("/img/hero/fig-crown-l.webp"); }
      .real__part--screw { background-image: url("/img/hero/fig-screw-l.webp"); }
    }
    @media (max-width: 63.99rem) {
      .real__shade { background-image: url("/img/hero/fig-shadow-m.webp"); }
      .real__map { background-image: url("/img/hero/fig-map-clay-m.webp"); }
      .real__map--final { background-image: url("/img/hero/fig-map-final-m.webp"); }
      .real__part--implant { background-image: url("/img/hero/fig-implant-m.webp"); }
      .real__part--abutment { background-image: url("/img/hero/fig-abutment-m.webp"); }
      .real__part--crown { background-image: url("/img/hero/fig-crown-m.webp"); }
      .real__part--screw { background-image: url("/img/hero/fig-screw-m.webp"); }
    }
    /* END generated: hero figure motion */

    /* Touch screens have no hover, so a service's points switch on as its row
       passes up the screen instead. */
    @media (hover: none) {
      .comp { view-timeline: --comp block; }
      .comp__glyph .node { animation: lit steps(1, end) both; animation-timeline: --comp; animation-range: cover 30% cover 33%; }
      .comp__glyph .node:nth-of-type(2) { animation-range: cover 33% cover 36%; }
      .comp__glyph .node:nth-of-type(3) { animation-range: cover 36% cover 39%; }
      .comp__glyph .node:nth-of-type(4) { animation-range: cover 39% cover 42%; }
      .comp__glyph .node:nth-of-type(5) { animation-range: cover 42% cover 45%; }
      .comp__glyph .node:nth-of-type(6) { animation-range: cover 45% cover 48%; }
    }

    /* ------------------------------------------------------------------------
       HERO PIN. Everything that holds the hero still while its figure plays.
       One length, --hero-run, is both how far the page scrolls while the hero
       is held and how far it scrolls while the figure plays, so the two cannot
       drift apart:
         - the block (.pin__stick) is exactly one screen tall under the rail;
         - its holder (.pin) is that plus --hero-run, so the block sticks for
           exactly --hero-run of scrolling, then lets go;
         - the hero starts at the top of the page, so that stretch is also the
           first --hero-run of the page's scroll: the figure plays on
           scroll(root) over it and finishes --hero-hold early (1.5% of the run),
           so the seated state is seen before the block moves on.
       To re-choreograph the figure, re-run its generator (tools/hero-figure):
       the real keyframes drive --p from 0 to 1 and everything in the figure
       follows from --p. To make the stretch longer or shorter, change
       --hero-run and nothing else.
       Below this gate (narrow or short screens, reduced motion, no scroll
       timelines) nothing is held and the figure is simply finished or plays
       over the first 18rem of scroll.
       ------------------------------------------------------------------------ */
    @media (min-width: 64rem) and (min-height: 44rem) {
      .hero { --hero-run: 240svh; --hero-hold: calc(var(--hero-run) * 0.015); }
      .hero .pin { grid-template-rows: calc(100svh - var(--rail-h)) var(--hero-run); }
      .hero .pin__stick { grid-row: 1 / span 2; align-self: start; position: sticky; top: var(--rail-h); height: calc(100svh - var(--rail-h)); min-height: 0; }
      .hero .fig { min-height: 0; animation-range: 0px calc(var(--hero-run) - var(--hero-hold)); }
    }

    /* Freeze frames on the other pages: the section holds still for a stretch of scrolling while its figure plays. */
    @media (min-width: 64rem) and (min-height: 44rem) {
      .plate--doc .pin { grid-template-rows: auto 90svh; height: 240svh; align-content: start; }
      .plate--doc .pin__stick { grid-row: 1 / span 2; align-self: start; position: sticky; top: var(--rail-h); }
      .plate--first .fig { animation-range: 0rem 44rem; }
    }

    /* Phones and tablets: there is no room to hold text and figure side by side, so the figure sticks under
       the bar at a readable size and the text scrolls beneath it while the scroll plays the figure. */
    @media (max-width: 63.99rem) {
      .pin__stick > .fig--side:not(.portrait) { grid-row: 3; align-self: start; position: sticky; top: var(--rail-h); z-index: 2; height: 20rem; overflow: clip; background: var(--bg); border-bottom: 1px solid var(--hairline); }
      .pin__stick > .fig--side:not(.portrait) + .doc { grid-row: 3; padding-top: 21.5rem; }
      .fig--arch { --s: 0.9; }
      .plate--first .fig { animation-range: 4rem 44rem; }

      .hero .pin__stick { grid-template-rows: auto auto auto auto auto; min-height: 0; }
      .hero .fig { --s: 0.55; grid-row: 2 / span 4; align-self: start; position: sticky; top: var(--rail-h); z-index: 2; height: 24rem; overflow: clip; background: var(--bg); border-bottom: 1px solid var(--hairline); animation-range: 0rem 32rem; }
      .hero .wordmark { grid-row: 2; padding-top: 26rem; }
      .hero .positioning { grid-row: 3; }
      .hero .hero__actions { grid-row: 4; }
      .hero .spec { grid-row: 5; }
      /* Phones: the text under the figure is long enough to hold it for longer, so it plays over more scroll. */
      @media (max-width: 27rem) { .hero .fig { animation-range: 0rem 46rem; } }
    }

    /* ------------------------------------------------------------------------
       CASES PIN. On a wide, tall-enough screen the section holds still and
       scrolling moves the cases across. Built like the hero: the block is one
       screen tall under the rail and its holder is that plus --cases-run, so it
       sticks for exactly --cases-run. The holder's view timeline is inset by
       the rail, so its contain range (holder top at the rail to holder bottom
       at the screen's foot) is that same stretch: the row starts moving as the
       block sticks and the third case lands just before it lets go.
       ------------------------------------------------------------------------ */
    @media (min-width: 64rem) and (min-height: 44rem) {
      #cases { --cases-run: 360svh; }   /* long enough to read three photographs on the first case, then two more cases */
      #cases .pin { grid-template-rows: calc(100svh - var(--rail-h)) var(--cases-run); view-timeline: --pin block; view-timeline-inset: var(--rail-h) 0px; }
      #cases .pin__stick { grid-row: 1 / span 2; align-self: start; position: sticky; top: var(--rail-h); height: calc(100svh - var(--rail-h)); grid-template-rows: auto minmax(0, 1fr); }
      #cases .pin__view { grid-row: 2; align-self: start; overflow: clip; }
      #cases .case__frame { max-height: calc(100svh - var(--rail-h) - 12rem); }   /* keeps 3:2 where it fits; on a short screen the frame gives first */
      #cases .pin__track { display: flex; width: 300%; animation: slide linear both; animation-timeline: --pin; animation-range: contain 0% contain 100%; }
      #cases .case { flex: 0 0 calc(100% / 3); }
      #cases .pin__count { display: block; }
      #cases .pin__count::after { animation: count linear both; animation-timeline: --pin; animation-range: contain 0% contain 100%; }
      /* While a case is held, its photographs and its stage marker step with the scroll. Four photographs, three stages:
         the marker rests on "during" for the middle two. */
      #cases .case:nth-child(1) .case__photo--2 { animation-timeline: --pin; animation-range: contain 8.25% contain 11%; }
      #cases .case:nth-child(1) .case__photo--3 { animation-timeline: --pin; animation-range: contain 16.5% contain 19.25%; }
      #cases .case:nth-child(1) .case__photo--4 { animation-timeline: --pin; animation-range: contain 24.75% contain 27.5%; }
      #cases .case:nth-child(1) .stages::before, #cases .case:nth-child(1) .stages::after { animation: stage-4 linear both; animation-timeline: --pin; animation-range: contain 0% contain 33%; }
      /* The second case has five photographs: the marker rests on "during" for the middle three. */
      #cases .case:nth-child(2) .case__photo--2 { animation-timeline: --pin; animation-range: contain 51.3% contain 54.05%; }
      #cases .case:nth-child(2) .case__photo--3 { animation-timeline: --pin; animation-range: contain 59.6% contain 62.35%; }
      #cases .case:nth-child(2) .case__photo--4 { animation-timeline: --pin; animation-range: contain 67.9% contain 70.65%; }
      #cases .case:nth-child(2) .case__photo--5 { animation-timeline: --pin; animation-range: contain 76.2% contain 78.95%; }
      #cases .case:nth-child(2) .stages::before, #cases .case:nth-child(2) .stages::after { animation: stage-5 linear both; animation-timeline: --pin; animation-range: contain 43% contain 84.5%; }
    }

    /* Stage rail and week strip: the marker steps to its stop, one position at a time. */
    .stages::before,
    .stages::after {
      animation: stage steps(3, jump-none) both;
      animation-timeline: --stages;
      animation-range: cover 10% cover 45%;
    }
    /* Not pinned (phone, short screen): a case's photographs step while its frame crosses the screen, fully in view
       ("contain"), the last landing well before the frame leaves; the marker runs on the same timeline so it stays in step. */
    .case:has(.case__frame--photos) { timeline-scope: --photos; }
    .case__photo--2, .case__photo--3, .case__photo--4, .case__photo--5 { animation: photo linear both; animation-timeline: --photos; }
    .case__photo--2 { animation-range: contain 20% contain 26%; }
    .case__photo--3 { animation-range: contain 45% contain 51%; }
    .case__photo--4 { animation-range: contain 70% contain 76%; }
    .case:has(.case__frame--photos) .stages::before, .case:has(.case__frame--photos) .stages::after { animation: stage-4 linear both; animation-timeline: --photos; animation-range: contain -5% contain 95%; }
    .case:has(.case__photo--5) .case__photo--2 { animation-range: contain 16% contain 22%; }
    .case:has(.case__photo--5) .case__photo--3 { animation-range: contain 34% contain 40%; }
    .case:has(.case__photo--5) .case__photo--4 { animation-range: contain 52% contain 58%; }
    .case:has(.case__photo--5) .case__photo--5 { animation-range: contain 70% contain 76%; }
    .case:has(.case__photo--5) .stages::before, .case:has(.case__photo--5) .stages::after { animation-name: stage-5; animation-range: contain -2% contain 88%; }
    .week li.on::before { animation: mark steps(1, end) both; animation-timeline: --week; animation-range: cover 8% cover 12%; }
    .week li.on:nth-child(2)::before { animation-range: cover 18% cover 22%; }
    .week li.on:nth-child(3)::before { animation-range: cover 23% cover 27%; }
    .week li.on:nth-child(4)::before { animation-range: cover 28% cover 32%; }
    .week li.on:nth-child(5)::before { animation-range: cover 33% cover 37%; }

    /* Steps: each stop fills when it is a little under half way up the screen. */
    .steps li::after {
      animation: reach steps(1, end) both;
      animation-timeline: view();
      animation-range: cover 0% cover 45%;
    }

    /* Portrait: every stroke runs from its start to its end as the section comes up. */
    .sketch path { animation: sketch linear both; animation-timeline: --plate; animation-range: entry 15% cover 40%; }

    /* Step drawings: the marked part switches on as the step comes up the screen. */
    .steps li { view-timeline: --step block; }
    .ico .on { animation: appear steps(1, end) both; animation-timeline: --step; animation-range: cover 20% cover 42%; }

    /* Flat diagrams: points switch on, and teeth drop out, one at a time. */
    .dia .node { animation: light steps(1, end) both; animation-timeline: --plate; }
    .dia .tooth--gone { animation: lose steps(1, end) both; animation-timeline: --plate; }
    /* Planned crowns switch on one at a time as the section passes. */
    .stack--worn .grow { animation: appear steps(1, end) both; animation-timeline: --plate; }
    .stack--worn .g1 { animation-range: cover 36% cover 38%; }
    .stack--worn .g2 { animation-range: cover 38% cover 40%; }
    .stack--worn .g3 { animation-range: cover 40% cover 42%; }
    .stack--worn .g4 { animation-range: cover 42% cover 44%; }
    .stack--worn .g5 { animation-range: cover 44% cover 46%; }
    .stack--worn .g6 { animation-range: cover 46% cover 48%; }
    .stack--worn .g7 { animation-range: cover 48% cover 50%; }
    .stack--worn .g8 { animation-range: cover 50% cover 52%; }
    .stack--worn .g9 { animation-range: cover 52% cover 54%; }
    .stack--worn .g10 { animation-range: cover 54% cover 56%; }
    .stack--worn .g11 { animation-range: cover 56% cover 58%; }
    .stack--worn .g12 { animation-range: cover 58% cover 60%; }
    /* Who it suits: teeth switch off one at a time as the section passes. */
    .stack--suit .gone { animation: vanish steps(1, end) both; animation-timeline: --plate; }
    .stack--suit .g1 { animation-range: cover 38% cover 40%; }
    .stack--suit .g2 { animation-range: cover 40% cover 42%; }
    .stack--suit .g3 { animation-range: cover 42% cover 44%; }
    .stack--suit .g4 { animation-range: cover 44% cover 46%; }
    .stack--suit .g5 { animation-range: cover 46% cover 48%; }
    .stack--suit .g6 { animation-range: cover 48% cover 50%; }
    .stack--suit .g7 { animation-range: cover 50% cover 52%; }
    .stack--suit .g8 { animation-range: cover 52% cover 54%; }
    .stack--suit .g9 { animation-range: cover 54% cover 56%; }
    .stack--suit .g10 { animation-range: cover 56% cover 58%; }
    .stack--suit .g11 { animation-range: cover 58% cover 60%; }
    /* In a page's first section the points switch on over the first stretch of scroll. */
    .plate--first .dia .node { animation-timeline: scroll(root block); }
    .plate--first .dia .node:nth-of-type(1) { animation-range: 2rem 3rem; }
    .plate--first .dia .node:nth-of-type(2) { animation-range: 4rem 5rem; }
    .plate--first .dia .node:nth-of-type(3) { animation-range: 6rem 7rem; }
    .plate--first .dia .node:nth-of-type(4) { animation-range: 8rem 9rem; }
    .plate--first .dia .node:nth-of-type(5) { animation-range: 10rem 11rem; }
    .plate--first .dia .node:nth-of-type(6) { animation-range: 12rem 13rem; }
    .dia .node:nth-of-type(1) { animation-range: cover 28% cover 32%; }
    .dia .node:nth-of-type(2) { animation-range: cover 32% cover 36%; }
    .dia .node:nth-of-type(3) { animation-range: cover 36% cover 40%; }
    .dia .node:nth-of-type(4) { animation-range: cover 40% cover 44%; }
    .dia .node:nth-of-type(5) { animation-range: cover 44% cover 48%; }
    .dia .node:nth-of-type(6) { animation-range: cover 48% cover 52%; }
    .dia .tooth--gone:nth-of-type(1) { animation-range: cover 26% cover 28%; }
    .dia .tooth--gone:nth-of-type(2) { animation-range: cover 28% cover 30%; }
    .dia .tooth--gone:nth-of-type(3) { animation-range: cover 30% cover 32%; }
    .dia .tooth--gone:nth-of-type(4) { animation-range: cover 32% cover 34%; }
    .dia .tooth--gone:nth-of-type(6) { animation-range: cover 34% cover 36%; }
    .dia .tooth--gone:nth-of-type(7) { animation-range: cover 36% cover 38%; }
    .dia .tooth--gone:nth-of-type(8) { animation-range: cover 38% cover 40%; }
    .dia .tooth--gone:nth-of-type(9) { animation-range: cover 40% cover 42%; }
    .dia .tooth--gone:nth-of-type(12) { animation-range: cover 42% cover 44%; }
    .dia .tooth--gone:nth-of-type(13) { animation-range: cover 44% cover 46%; }
    .dia .tooth--gone:nth-of-type(14) { animation-range: cover 46% cover 48%; }

    /* Section numerals index 00, 01, 02 as the plate comes in: stepped. */
    .plate:not(.hero) .index .wheel__strip {
      animation: index steps(var(--turns), end) both;
      animation-timeline: --plate;
      animation-range: entry 0% entry 20rem;
    }

    /* Section titles run in along their rail from behind the grid line. */
    .plate__title h2 {
      animation: rail-x linear both;
      animation-timeline: --plate;
      animation-range: entry 0% entry 20rem;
    }
  }

  /* Browsers without scroll-linked animation (older iPhones and iPads, some others):
     the figures still move, on a slow clock instead of with the scroll.
     Everything else sits in its finished state. */
  @supports not (animation-timeline: view()) {
    .plate--first .fig { animation: seat-loop 16s var(--stop) infinite; }

    @media (hover: none) {
      .comp__glyph .node { animation: lit-loop 8s steps(1, end) infinite; }
      .comp__glyph .node:nth-of-type(2) { animation-delay: 240ms; }
      .comp__glyph .node:nth-of-type(3) { animation-delay: 480ms; }
      .comp__glyph .node:nth-of-type(4) { animation-delay: 720ms; }
      .comp__glyph .node:nth-of-type(5) { animation-delay: 960ms; }
      .comp__glyph .node:nth-of-type(6) { animation-delay: 1200ms; }
    }
  }
}

/* BEGIN generated: arch figures (tools/arch-figures: re-run, do not edit) */
/* Rendered parts for the stacked figures. Each is one image on a plane that faces the screen (the stack's own
   rotation undone), placed at its part's position inside the stack, so the page's 3D transform moves and scales
   it with the drawing. As a part seats (--e falls to 0) its drawing fades out and the render fades in. */
.stack > .real, .stack .jaw > .real { position: absolute; transform-origin: 0 0; background: 0 0 / 100% 100% no-repeat; pointer-events: none; opacity: max(0.003, var(--r, 0)); }   /* never quite 0, so the image is decoded before it is needed */
/* Full-arch: prosthesis, six implants, abutments and screws */
.plate--first .stack--fa { --r-imp: clamp(0, (1 - var(--e)) / 0.2, 1); --r-abut: clamp(0, (0.85 - var(--e)) / 0.25, 1); --r-pro: clamp(0, (0.65 - var(--e)) / 0.3, 1); --r-scr: clamp(0, (0.8 - var(--e)) / 0.2, 1); }
.plate--first .stack--fa .stack__layer { opacity: calc(1 - var(--r-pro)); }
.plate--first .stack--fa .secs svg { opacity: calc(1 - var(--r-pro)); }
.plate--first .stack--fa .fx__imp { opacity: calc(1 - var(--r-imp)); }
.plate--first .stack--fa .fx__turn > * { opacity: calc(1 - var(--r-abut)); }
.plate--first .stack--fa .fx__screw { opacity: calc(1 - var(--r-scr)); }
.plate--first .stack--fa .real--fa-prosthesis { left: 120px; top: 112px; width: 212px; height: 126px; --r: calc(var(--r-pro)); background-image: url("/img/fig/fa-prosthesis.webp"); transform: translateZ(calc(17.7px + 112px * var(--e))) rotateZ(14deg) rotateX(-60deg) translate(-120px, -58px); }
.plate--first .stack--fa .real--fa-implants { left: 120px; top: 112px; width: 160px; height: 110px; --r: calc(var(--r-imp)); background-image: url("/img/fig/fa-implants.webp"); transform: translateZ(-22.4px) rotateZ(14deg) rotateX(-60deg) translate(-88px, -44px); }
.plate--first .stack--fa .real--fa-abutments { left: 120px; top: 112px; width: 158px; height: 92px; --r: calc(var(--r-abut)); background-image: url("/img/fig/fa-abutments.webp"); transform: translateZ(calc(-8.24px + 60px * var(--e))) rotateZ(14deg) rotateX(-60deg) translate(-86px, -36px); }
.plate--first .stack--fa .real--fa-screws { left: 120px; top: 112px; width: 150px; height: 86px; --r: calc(var(--r-scr) * clamp(0, (var(--e) - 0.24) / 0.14, 1)); background-image: url("/img/fig/fa-screws.webp"); transform: translateZ(calc(5.67px + 194px * var(--e))) rotateZ(14deg) rotateX(-60deg) translate(-82px, -32px); }
/* Comprehensive: both jaws, the lower one closing on its hinge */
.stack--bite { --r-low: clamp(0, (0.9 - var(--e)) / 0.4, 1); --r-up: clamp(0, (0.75 - var(--e)) / 0.4, 1); }
.stack--bite .jaw--lower .stack__layer { opacity: calc(1 - var(--r-low)); }
.stack--bite .jaw--lower .secs svg { opacity: calc(1 - var(--r-low)); }
.stack--bite .jaw--upper .stack__layer:not(.stack__plan) { opacity: calc(1 - var(--r-up)); }
.stack--bite .jaw--upper .secs svg { opacity: calc(1 - var(--r-up)); }
.stack--bite .real--bite-lower { left: 120px; top: 112px; width: 214px; height: 178px; --r: calc(var(--r-low)); background-image: url("/img/fig/bite-lower.webp"); transform: translateZ(15.96px) rotateZ(14deg) rotateX(-60deg) translate(-120px, -68px); }
.stack--bite .real--bite-lower { --f: round(clamp(0, 1 - var(--e), 1) * 11, 1); background-size: 400% 300%; background-position: calc(mod(var(--f), 4) / 3 * 100%) calc(round(down, var(--f) / 4, 1) / 2 * 100%); }
.stack--bite .real--bite-upper { left: 120px; top: 112px; width: 210px; height: 132px; --r: calc(var(--r-up)); background-image: url("/img/fig/bite-upper.webp"); transform: translateZ(45.92px) rotateZ(14deg) rotateX(-60deg) translate(-116px, -66px); }
/* Reconstruction: prepared upper jaw and its twelve crowns */
.stack--prep { --r-model: clamp(0, (0.95 - var(--e)) / 0.35, 1); --r-crowns: clamp(0, (0.7 - var(--e)) / 0.35, 1); }
.stack--prep > .stack__layer:not(.is-teeth):not(.stack__plan) { opacity: calc(1 - var(--r-model)); }
.stack--prep > .secs:not(.secs--crown) svg { opacity: calc(1 - var(--r-model)); }
.stack--prep > .stack__layer.is-teeth { opacity: calc(1 - var(--r-crowns)); }
.stack--prep > .secs--crown svg { opacity: calc(1 - var(--r-crowns)); }
.stack--prep .real--prep-model { left: 120px; top: 105.5px; width: 236px; height: 150px; --r: calc(var(--r-model)); background-image: url("/img/fig/prep-model.webp"); transform: translateZ(34.46px) rotateZ(14deg) rotateX(-60deg) translate(-124px, -76px); }
.stack--prep .real--prep-crowns { left: 120px; top: 105.5px; width: 206px; height: 120px; --r: calc(var(--r-crowns)); background-image: url("/img/fig/prep-crowns.webp"); transform: translateZ(calc(144.46px + -88px * var(--e))) rotateZ(14deg) rotateX(-60deg) translate(-102px, 54px); }
.stack--prep .real--prep-crowns { --f: round(clamp(0, 1 - var(--e), 1) * 15, 1); background-size: 400% 400%; background-position: calc(mod(var(--f), 4) / 3 * 100%) calc(round(down, var(--f) / 4, 1) / 3 * 100%); }
/* Reconstruction, who it suits: the worn teeth before treatment */
@media (prefers-reduced-motion: no-preference) { @supports (animation-timeline: view()) {
  /* the drawing turns into the worn teeth as the section comes up the screen, before the planned crowns are outlined over them */
  .stack--worn .real--worn-teeth { animation: worn-real linear both; animation-timeline: --plate; animation-range: cover 20% cover 34%; }
  .stack--worn .stack__layer path:not(.grow), .stack--worn .secs svg { animation: worn-wire linear both; animation-timeline: --plate; animation-range: cover 20% cover 34%; }
} }
@keyframes worn-real { to { opacity: 1; } }
@keyframes worn-wire { to { opacity: 0; } }
.stack--worn .real--worn-teeth { left: 120px; top: 105.5px; width: 228px; height: 148px; --r: calc(0); background-image: url("/img/fig/worn-teeth.webp"); transform: translateZ(25.93px) rotateZ(14deg) rotateX(-60deg) translate(-118px, -74px); }
/* Full-arch, who it suits: failing teeth that go one at a time */
.stack--suit .real--suit-teeth b { position: absolute; inset: 0; background: 0 0 / 100% 100% no-repeat; }
@media (prefers-reduced-motion: no-preference) { @supports (animation-timeline: view()) {
  /* the drawing turns into the failing teeth as the section comes up the screen; then they go, one at a time, with the drawing's own timing */
  .stack--suit .real { animation: suit-real linear both; animation-timeline: --plate; animation-range: cover 20% cover 34%; }
  .stack--suit .stack__layer, .stack--suit .secs svg { animation: suit-wire linear both; animation-timeline: --plate; animation-range: cover 20% cover 34%; }
  .stack--suit .real b.gone { animation-name: tooth-out; animation-timing-function: steps(1, end); animation-fill-mode: both; animation-timeline: --plate; }
} }
@keyframes suit-real { to { opacity: 1; } }
@keyframes suit-wire { to { opacity: 0; } }
@keyframes tooth-out { to { visibility: hidden; } }
.stack--suit .real--suit-gums { left: 120px; top: 112px; width: 228px; height: 158px; --r: calc(0); background-image: url("/img/fig/suit-gums.webp"); transform: translateZ(5px) rotateZ(-180deg) rotateX(0deg) translate(-112px, -88px); }
.stack--suit .real--suit-teeth { left: 120px; top: 112px; width: 216px; height: 154px; --r: calc(0); background-image: none; transform: translateZ(25px) rotateZ(-180deg) rotateX(0deg) translate(-106px, -86px); }
.stack--suit .real--suit-teeth b:nth-child(1) { background-image: url("/img/fig/suit-t00.webp"); }
.stack--suit .real--suit-teeth b:nth-child(2) { background-image: url("/img/fig/suit-t01.webp"); }
.stack--suit .real--suit-teeth b:nth-child(3) { background-image: url("/img/fig/suit-t02.webp"); }
.stack--suit .real--suit-teeth b:nth-child(4) { background-image: url("/img/fig/suit-t03.webp"); }
.stack--suit .real--suit-teeth b:nth-child(5) { background-image: url("/img/fig/suit-t04.webp"); }
.stack--suit .real--suit-teeth b:nth-child(6) { background-image: url("/img/fig/suit-t05.webp"); }
.stack--suit .real--suit-teeth b:nth-child(7) { background-image: url("/img/fig/suit-t06.webp"); }
.stack--suit .real--suit-teeth b:nth-child(8) { background-image: url("/img/fig/suit-t07.webp"); }
.stack--suit .real--suit-teeth b:nth-child(9) { background-image: url("/img/fig/suit-t08.webp"); }
.stack--suit .real--suit-teeth b:nth-child(10) { background-image: url("/img/fig/suit-t09.webp"); }
.stack--suit .real--suit-teeth b:nth-child(11) { background-image: url("/img/fig/suit-t10.webp"); }
.stack--suit .real--suit-teeth b:nth-child(12) { background-image: url("/img/fig/suit-t11.webp"); }
.stack--suit .real--suit-teeth b:nth-child(13) { background-image: url("/img/fig/suit-t12.webp"); }
.stack--suit .real--suit-teeth b:nth-child(14) { background-image: url("/img/fig/suit-t13.webp"); }
/* END generated: arch figures */
