/* Camomilla — one stylesheet for every page. Palette Cielo. */

@font-face {
  font-family: "Libre Caslon Display";
  src: url("../fonts/LibreCaslonDisplay-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --graphite: #1E2329;
  /* One yellow, the app's yellow: Display P3 (1, 0.85, 0.22), about #FFD71E in sRGB.
     It means only "chosen" or "done". The edge of the heart's cushion is Bloom.yellowEdge, P3 (0.98, 0.78, 0.12). */
  --chosen: #FFD71E;
  --heart: #FFD71E;
  --heart-edge: #FAC400;
  --white: #FFFFFF;
  --chosen-glass: rgb(255 215 30 / 0.9);   /* the chosen yellow over glass: hover and press */
  --clear: rgb(0 0 0 / 0);
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);

  --ink: var(--graphite);
  --ink-soft: rgb(30 35 41 / 0.74);
  --label-ink: var(--graphite);
  --glass: rgb(255 255 255 / 0.42);
  --glass-light: rgb(255 255 255 / 0.95);
  --glass-shade: rgb(30 35 41 / 0.14);
  --focus: var(--graphite);
  /* The still meadow is fetched only when there is no WebGL or no JavaScript. Until the scene draws,
     a gradient with the same sky, horizon and grass. */
  --meadow-still: url("../img/hero-day.webp");
  --meadow-wait: linear-gradient(#99C9F2, #DBEAF2 52%, #EEEBD3 58%, #B5D198 72%, #84AD69);
  --meadow-tone: #DCE8D2;
  --page: #EEF3E3;            /* the clearing of the meadow, by day */
  --sky-top: #99C9F2;         /* the top edge of the meadow: browsers tint their top bar from it */
  --petal: #FFFFFF;
  --petal-shadow: rgb(30 35 41 / 0.12);
  --well: rgb(30 35 41 / 0.055);
  --petal-well: rgb(255 255 255 / 0.7);

  --font-title: "Libre Caslon Display", "Iowan Old Style", Georgia, serif;
  --font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  --font-round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  /* The labels on the petals, as PetalType: SF Pro medium, spaced (1.2 points at 13.5). */
  --petal-tracking: 0.089em;
  --nav-h: 64px;
  --nav-glass: rgb(238 243 227 / 0.62);

  /* The desktop of the demo: the same afternoon as the meadow. */
  --wp-top: #8EC3EE;
  --wp-mid: #CFE4F2;
  --wp-low: #EEF0DC;
  --wp-grass: #B7D49A;
  --wp-near: #84B26B;
  --wp-cloud: rgb(255 255 255 / 0.75);
  --wp-blade: rgb(98 146 72 / 0.6);
  --desk-ink: var(--graphite);

  color-scheme: light;
}
@supports (color: color(display-p3 1 1 1)) {
  :root {
    --chosen: color(display-p3 1 0.85 0.22);
    --heart: color(display-p3 1 0.85 0.22);
    --heart-edge: color(display-p3 0.98 0.78 0.12);
    --chosen-glass: color(display-p3 1 0.85 0.22 / 0.9);
  }
}

/* The evening: chosen with the switch in the bar on top (js/theme.js). The site starts by day. */
:root[data-theme="evening"] {
  --ink: var(--white);
  --ink-soft: rgb(255 255 255 / 0.82);
  --label-ink: var(--white);
  --glass: rgb(16 24 36 / 0.3);
  --glass-light: rgb(255 255 255 / 0.55);
  --glass-shade: rgb(0 0 0 / 0.22);
  --focus: var(--white);
  --meadow-still: url("../img/hero-evening.webp");
  --meadow-wait: linear-gradient(#6170A3, #9C8AB2 50%, #C9A3A0 57%, #405A5C 70%, #2F4848);
  --meadow-tone: #26363A;
  --page: #1D2B2F;          /* the clearing at dusk */
  --sky-top: #6170A3;
  --petal: #F4F6F8;
  --petal-shadow: rgb(0 0 0 / 0.32);
  --well: rgb(255 255 255 / 0.07);
  --petal-well: rgb(255 255 255 / 0.1);
  --nav-glass: rgb(29 43 47 / 0.6);
  --wp-top: #505C93;
  --wp-mid: #8C7DA8;
  --wp-low: #D6A698;
  --wp-grass: #4A6662;
  --wp-near: #2C4444;
  --wp-cloud: rgb(246 205 196 / 0.45);
  --wp-blade: rgb(26 44 46 / 0.75);
  --desk-ink: var(--white);
  color-scheme: dark;
}

/* On tall screens the still meadow is the one taken at 390 × 844. */
@media (max-aspect-ratio: 3/4) {
  :root { --meadow-still: url("../img/hero-day-tall.webp"); }
}
@media (max-aspect-ratio: 3/4) {
  :root[data-theme="evening"] { --meadow-still: url("../img/hero-evening-tall.webp"); }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  overflow-x: clip;
  /* Sky behind the first screen, hidden by the meadow, so the browser's top bar takes the sky colour and not the clearing's. */
  background: var(--page) linear-gradient(var(--sky-top), var(--sky-top)) top / 100% 100svh no-repeat;
  color: var(--ink);
  font: 400 17px/1.5 var(--font-text);
  -webkit-font-smoothing: antialiased;
}

/* ---------- hero: the live meadow, the flower, the name, one line, one button */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(var(--nav-h) + clamp(4px, 3svh, 48px)) 16px clamp(40px, 8svh, 96px);
  overflow: hidden;
  isolation: isolate;
  background: var(--meadow-tone) var(--meadow-wait) center top / cover no-repeat;
}
.hero.is-live { background-image: none; }
/* The meadow fades into the clearing where the page goes on. */
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 14svh;
  z-index: -1;
  background: linear-gradient(var(--clear), var(--page));
  pointer-events: none;
}
.hero.is-still-image { background-image: var(--meadow-still); }

.hero-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: -1;
}
.hero:not(.is-live) .hero-scene,
.hero.is-still-image .hero-scene,
.hero.is-still-image .hero-labels { display: none; }

/* The empty box where the scene draws the flower: 340 wheel points scaled to fit. */
.hero-flower {
  flex: none;
  width: clamp(236px, min(44svh, 78vw), 470px);
  aspect-ratio: 1;
}

.hero-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  --zoom: 1;
}
.hero-labels span {
  position: absolute;
  left: 0;
  top: 0;
  font: 500 calc(13.5px * var(--zoom)) / 1 var(--font-text);
  letter-spacing: var(--petal-tracking);
  color: var(--label-ink);
  white-space: nowrap;
  will-change: transform;
}
.hero-labels span.is-chosen { font-weight: 600; color: var(--graphite); }
/* In the evening the glass stays light (variant B), so the labels stay graphite. Variant A, smoky glass: white labels. */
.hero-labels span { color: var(--graphite); }
.hero[data-evening="smoky"] .hero-labels span:not(.is-chosen) { color: var(--label-ink); }

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;   /* the one-line Terminal command would otherwise widen the column past a phone screen */
  text-align: center;
  margin-top: clamp(10px, 2.4svh, 32px);
}
/* Scroll: from the first turn of the wheel the three lines of text of the hero rise and fade, and they are gone after
   about half a screen of scrolling, as the name reaches the bar on top. The meadow, the flower and the glass (button, keys)
   stay: animating a box that holds backdrop-filter makes Safari redraw the glass at every frame. Only where the browser
   drives animations from scroll, only on a screen wide enough to hold the whole text, and never with "Reduce motion". */
@supports (animation-timeline: scroll()) {
  @media (min-width: 600px) and (prefers-reduced-motion: no-preference) {
    .hero-name, .hero-intro, .hero-line { animation: hero-leave linear both; animation-timeline: scroll(root); animation-range: 0 55vh; }
    @keyframes hero-leave { to { opacity: 0; transform: translateY(-40px); } }
  }
}
.hero-name {
  margin: 0;
  font: 400 clamp(64px, 5.2vw + 30px, 116px) / 0.95 var(--font-title);
  letter-spacing: -0.005em;
}
.hero-intro {
  margin: clamp(10px, 1.6svh, 18px) 0 0;
  max-width: 46ch;
  font-size: clamp(15px, 0.3vw + 14px, 18px);
  line-height: 1.45;
  color: var(--ink-soft);
  text-wrap: balance;
}
.hero-intro span { display: inline-block; }
.hero-intro + .hero-line { margin-top: clamp(8px, 1.2svh, 14px); }
.hero-line {
  margin: clamp(10px, 1.6svh, 18px) 0 0;
  max-width: 40ch;
  font-size: clamp(18px, 0.5vw + 16px, 23px);
  font-weight: 500;
  line-height: 1.4;
  text-wrap: balance;
}
.hero-copy .button { margin-top: clamp(22px, 3.4svh, 36px); }
.hero-fine {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-soft);
}

/* The keys under the button: small glass keys over the meadow, like the Shift key of the demo. */
.hero-keys {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1;
  color: var(--ink-soft);
}
.key-group { display: inline-flex; align-items: center; gap: 4px; }
.key-group kbd:last-of-type { margin-right: 4px; }
.hero-keys kbd {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  border-radius: 7px;
  background: rgb(255 255 255 / 0.74);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: inset 0 1px 1px rgb(255 255 255 / 0.95), inset 0 -2px 0 rgb(30 35 41 / 0.1), 0 6px 14px -8px rgb(30 35 41 / 0.5);
  color: var(--graphite);
  font: 500 16px/1 var(--font-text);
  vertical-align: 0;
}
.hero-keys + .hero-fine { margin-top: 16px; }
.hero-fine.star, .fine.star { margin-top: 14px; font-size: 15px; }
.star-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 4px;
  padding: 7px 13px 7px 11px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.74);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: inset 0 1px 1px rgb(255 255 255 / 0.95), inset 0 -2px 0 rgb(30 35 41 / 0.1), 0 6px 14px -8px rgb(30 35 41 / 0.5);
  color: var(--graphite);
  font: 500 15px/1 var(--font-text);
  text-decoration: none;
  vertical-align: middle;
}
.star-link:hover { background: rgb(255 255 255 / 0.92); }
.star-link .star-icon { color: #E0A200; }
.hero-fine + .hero-fine { margin-top: 4px; }

/* The Terminal command under the download button: a glass strip with the command and a Copy key.
   The command scrolls inside the strip on a phone; without JavaScript the Copy key stays hidden. */
.install { width: min(100%, 500px); margin: 16px auto 0; }
.install-or, .install-note { margin: 0; font-size: 13px; line-height: 1.4; color: var(--ink-soft); }
.install-note { margin-top: 8px; }
.install-note a { color: inherit; }
.install-command {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 4px 4px 4px 16px;
  border-radius: 14px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(0.5) brightness(1.06);
  backdrop-filter: blur(16px) saturate(0.5) brightness(1.06);
  box-shadow: inset 0 1px 1px var(--glass-light), 0 10px 26px -14px var(--glass-shade);
  text-align: left;
}
.install-command code {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  font-size: 13.5px;
  line-height: 36px;
  color: var(--ink);
  -webkit-user-select: all;
  user-select: all;
}
.install-copy {
  flex: none;
  min-width: 76px;
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: var(--petal);
  color: var(--graphite);
  font: 600 14px/1 var(--font-text);
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.install-copy:hover { background: var(--chosen-glass); }
.install-copy.is-copied { background: var(--heart); }
.install-copy:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ---------- two lines that pass by under the hero: the formats one way, the tools the other.
   Each chip is a petal laid flat: white, a soft neutral shade, graphite labels. Yellow stays for "chosen". */

.ribbons {
  display: grid;
  gap: 12px;
  padding: clamp(8px, 2vw, 24px) 0 0;
}
.ribbon {
  display: flex;
  overflow: hidden;
  padding: 10px 0 16px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.ribbon-track {
  flex: none;
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0 10px 0 0;
  list-style: none;
  animation: ribbon 80s linear infinite;   /* about 20 points a second, as before the line got longer */
}
.ribbon-tools .ribbon-track { animation-duration: 58s; animation-direction: reverse; }
.ribbon:hover .ribbon-track { animation-play-state: paused; }
.ribbon li {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: 20px;
  background: var(--petal);
  box-shadow: 0 8px 18px -12px var(--petal-shadow), 0 1px 2px rgb(30 35 41 / 0.06);
  color: var(--graphite);
  font: 600 14px/1 var(--font-round);
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.ribbon-tools li { padding-left: 14px; font-weight: 500; letter-spacing: 0.01em; }
.ribbon li img, .ribbon-airdrop { flex: none; width: 18px; height: 18px; }
.ribbon-airdrop path { fill: none; stroke: var(--graphite); stroke-width: 2px; stroke-linecap: round; }
.ribbon-airdrop circle { fill: var(--graphite); }
.ribbon-note {
  margin: 6px auto 0;
  padding: 0 24px;
  max-width: 1120px;
  text-align: center;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-soft);
  text-wrap: balance;
}
@keyframes ribbon { to { transform: translateX(-100%); } }

/* Without motion the lines stand still and wrap, centred, and the copies go. */
@media (prefers-reduced-motion: reduce) {
  .ribbon { justify-content: center; -webkit-mask-image: none; mask-image: none; padding-inline: 16px; }
  .ribbon-track { flex: 1 1 auto; flex-wrap: wrap; justify-content: center; padding: 0; animation: none; }
  .ribbon-track[aria-hidden="true"] { display: none; }
}

/* ---------- the button: a glass drop over the meadow; yellow only under the pointer and when pressed */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 28px;
  border-radius: 25px;
  font: 600 17px/1 var(--font-text);
  color: var(--ink);
  text-decoration: none;
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(0.5) brightness(1.06);
  backdrop-filter: blur(16px) saturate(0.5) brightness(1.06);
  /* Light, not lines: a bright upper rim and a soft neutral drop under the glass. */
  box-shadow:
    inset 0 1px 1px var(--glass-light),
    inset 0 -1px 1px rgb(255 255 255 / 0.18),
    0 10px 26px -14px var(--glass-shade);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.button:hover { background: var(--chosen-glass); color: var(--graphite); }
.button:active { background: var(--heart); color: var(--graphite); transform: scale(0.98); }
.button:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
  .button:active { transform: none; }
}

/* ---------- the bar on top: clear over the meadow, glass once the page moves under it */

.skip {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 40;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--petal);
  color: var(--graphite);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus-visible { top: 12px; }

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
}
/* The glass floats over the page: no line under it, a soft shade and a bright upper edge. */
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--nav-glass);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  backdrop-filter: blur(20px) saturate(1.5);
  box-shadow: 0 14px 30px -24px var(--glass-shade);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.nav.is-scrolled::before { opacity: 1; }
.nav-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1120px;
  height: var(--nav-h);
  margin: 0 auto;
  padding: 0 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 400 27px/1 var(--font-title);
  text-decoration: none;
}
.brand img { display: block; border-radius: 7px; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-link {
  font: 500 15px/1 var(--font-text);
  text-decoration: none;
  white-space: nowrap;
  color: var(--ink);
}
.nav-link:hover { text-decoration: underline; text-underline-offset: 0.3em; }
.nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 18px;
  font: 600 15px/1 var(--font-text);
  text-decoration: none;
  white-space: nowrap;
  color: var(--ink);
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(0.5) brightness(1.06);
  backdrop-filter: blur(16px) saturate(0.5) brightness(1.06);
  box-shadow: inset 0 1px 1px var(--glass-light), 0 8px 20px -14px var(--glass-shade);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.nav-cta:hover { background: var(--chosen-glass); color: var(--graphite); }
.nav-cta:active { background: var(--heart); color: var(--graphite); }
/* Day or evening: a glass pill with the sun and the moon; the white knob sits under the hour that is on. */
.theme-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 64px;
  height: 36px;
  padding: 0 4px;
  border: 0;
  border-radius: 18px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(0.5) brightness(1.06);
  backdrop-filter: blur(16px) saturate(0.5) brightness(1.06);
  box-shadow: inset 0 1px 1px var(--glass-light), 0 8px 20px -14px var(--glass-shade);
  color: var(--ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.theme-switch::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--petal);
  box-shadow: 0 4px 10px -5px rgb(30 35 41 / 0.45);
  transition: transform 0.32s cubic-bezier(0.34, 1.5, 0.64, 1);
}
.theme-switch[aria-checked="true"]::before { transform: translateX(28px); }
.theme-switch svg { position: relative; width: 28px; height: 18px; transition: opacity 0.2s ease, color 0.2s ease; }
.switch-day { fill: currentColor; stroke: currentColor; stroke-width: 1.6px; stroke-linecap: round; }
.switch-evening { fill: currentColor; }
/* The icon on the knob is graphite; the other one waits, softer. */
.theme-switch[aria-checked="false"] .switch-day,
.theme-switch[aria-checked="true"] .switch-evening { color: var(--graphite); }
.theme-switch[aria-checked="false"] .switch-evening,
.theme-switch[aria-checked="true"] .switch-day { opacity: 0.6; }
.theme-switch:hover::before { background: var(--chosen); }
.theme-switch:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }

@media (max-width: 480px) {
  .nav-inner { padding: 0 16px; }
  .nav-wide { display: none; }
  .nav-inner { gap: 8px; }
  .nav-links { gap: 10px; }
  .brand { gap: 8px; font-size: 24px; }
  .nav-cta { padding: 0 14px; }
}
/* On phones the bar keeps the name, the switch and Download: all four do not fit in one row. */
@media (max-width: 480px) {
  .nav-links .nav-link { display: none; }
}
/* Under 360 points the logo stands alone: name, switch and Download do not fit in one row. */
@media (max-width: 359px) {
  .brand span { display: none; }
}

/* ---------- the demo: a desktop where the gesture happens. js/demo.js places every part, frame by frame. */

.demo {
  padding: clamp(64px, 7vw, 104px) 24px 0;
  text-align: center;
}
.desk {
  position: relative;
  width: 100%;
  max-width: 1000px;
  aspect-ratio: 16 / 10;   /* until demo.js sets the shape of the desktop it draws */
  margin: 0 auto;
  overflow: hidden;
  border-radius: 22px;
  background: var(--wp-near);
  box-shadow: 0 40px 80px -44px rgb(30 35 41 / 0.5), 0 3px 8px -3px rgb(30 35 41 / 0.14);
  text-align: left;
  user-select: none;
  -webkit-user-select: none;
  isolation: isolate;
}
.stage {
  position: absolute;
  left: 0;
  top: 0;
  width: 1000px;
  height: 625px;
  transform-origin: 0 0;
  overflow: hidden;
  color: var(--desk-ink);
  font: 400 13px/1.2 var(--font-text);
}
.world { position: absolute; inset: 0; transform-origin: 0 0; will-change: transform; }
/* Without JavaScript the desktop stays empty and the four captions stay as a list. */
.demo:not(.is-live) .world > :not(.wallpaper):not(.menubar), .demo:not(.is-live) .shift-key { display: none; }

.wallpaper, .wallpaper img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }

.menubar {
  position: absolute;
  inset: 0 0 auto;
  height: 30px;
  display: flex;
  align-items: center;
  gap: 19px;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 500;
}
.menu-app { font-weight: 700; }
.menu-extras { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.menubar svg { display: block; fill: currentColor; }
.menu-flower { width: 18px; height: 18px; }
.menu-wifi { width: 17px; height: 13px; }
.menu-battery { width: 26px; height: 12px; }
.battery-case { fill: none; stroke: currentColor; stroke-width: 1.1px; opacity: 0.5; }
.battery-cap { opacity: 0.5; }
.desk[data-layout="tall"] .wide-only { display: none; }
.desk[data-layout="tall"] .menubar { gap: 16px; padding: 0 14px; }

/* A photo on the desktop: a small meadow in a white frame. */
.photo {
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 5px;
  background:
    radial-gradient(circle at 72% 30%, #FFE9A8 0 8%, rgb(255 233 168 / 0) 14%),
    radial-gradient(120% 60% at 30% 100%, #79A85E 0 45%, rgb(121 168 94 / 0) 46%),
    linear-gradient(#86C0EE, #D7EAF4 58%, #A9CF8B 59%, #7FAE64);
  box-shadow: 0 0 0 3px #FFFFFF, 0 4px 10px 1px rgb(0 0 0 / 0.2);
}
.desk-file {
  position: absolute;
  width: 100px;
  margin: -32px 0 0 -50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 500;
}
.file-name { padding: 1px 5px; border-radius: 4px; }
.desk-file.is-selected .file-name { background: #0A63F6; color: #FFFFFF; text-shadow: none; }
.desk-file[data-file="copy"] { opacity: 0; }
:root[data-theme="evening"] .pane {
  -webkit-backdrop-filter: blur(7px) saturate(0.5) brightness(1.3);
  backdrop-filter: blur(7px) saturate(0.5) brightness(1.3);
}
/* As on a dark wallpaper in macOS: a soft shade under the white names. */
:root[data-theme="evening"] .file-name, :root[data-theme="evening"] .menubar { text-shadow: 0 1px 3px rgb(0 0 0 / 0.45); }

/* A video on the desktop: the same picture with the play triangle of the thumbnail. */
.desk[data-kind="video"] .photo { position: relative; }
.desk[data-kind="video"] .photo::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgb(30 35 41 / 0.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M8.5 6.5 16 11l-7.5 4.5z' fill='%23fff'/%3E%3C/svg%3E") center / 100% no-repeat;
}

/* A sound file on the desktop: a white sheet with a waveform, as the audio documents of Finder. */
.desk[data-kind="audio"] .photo {
  background: #FFFFFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M14 32h4M21 26v12M26 20v24M31 24v16M36 16v32M41 22v20M46 28v8M50 31v2' stroke='%231E2329' stroke-width='2.6' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") center / 100% no-repeat;
}

/* The pointer of macOS: its tip is the point it stands on. */
.pointer { position: absolute; left: 0; top: 0; z-index: 6; pointer-events: none; }
.pointer svg {
  position: absolute;
  left: -1px;
  top: -1px;
  width: 17px;
  height: 23px;
  overflow: visible;
  filter: drop-shadow(0 1px 1.5px rgb(0 0 0 / 0.35));
}
.pointer svg path { fill: #000; stroke: #FFFFFF; stroke-width: 1.3px; stroke-linejoin: round; paint-order: stroke; }
.ghost {
  position: absolute;
  left: -28px;
  top: -28px;
  z-index: 4;
  width: 56px;
  height: 56px;
  border-radius: 4px;
  box-shadow: 0 0 0 2px #FFFFFF, 0 10px 20px -6px rgb(0 0 0 / 0.35);
  transform-origin: 28px 28px;
  opacity: 0;
  pointer-events: none;
}

/* The glass flower, as the lens of the app: each petal blurs the meadow behind it and takes away half of its
   colour, its rim catches the light from the top left, a soft shadow falls outside. The heart is the sun. */
.bloom {
  position: absolute;
  width: 396px;
  height: 396px;
  z-index: 3;
  transform-origin: 50% 50%;
  visibility: hidden;
  pointer-events: none;
}
.bloom-shadow, .bloom-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.bloom-shadow .shade { fill: rgb(30 35 41 / 0.22); }
.pane {
  position: absolute;
  inset: 0;
  transform-origin: 0 0;
  background: rgb(255 255 255 / 0.24);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-backdrop-filter: blur(7px) saturate(0.5) brightness(1.16);
  backdrop-filter: blur(7px) saturate(0.5) brightness(1.16);
}
.bloom-lines .glow { fill: none; stroke-width: 16px; opacity: 0.85; }
.bloom-lines .edge { fill: none; stroke-width: 1px; opacity: 0.7; }
.bloom-lines .hit { fill: none; stroke: none; pointer-events: none; }
.bloom-lines text {
  font-family: var(--font-text);
  font-weight: 500;
  letter-spacing: var(--petal-tracking);
  fill: var(--graphite);
  text-anchor: middle;
  dominant-baseline: central;
}
/* The labels of WheelView (PetalType): format names at 13.5 points, SF Pro medium and spaced, semibold on the chosen petal; a tool shows its icon at
   22 points, and its name at 11 points under the icon only on the chosen petal. A petal that does not apply fades. */
.petal-label.is-chosen text { font-weight: 600; }
.petal-label.is-off { opacity: 0.32; }
.petal-label .name { letter-spacing: 0; font-weight: 500; opacity: 0; transition: opacity 0.15s ease; }
.petal-label.is-chosen .name { opacity: 1; }
.petal-label .icon { transition: transform 0.22s cubic-bezier(0.34, 1.4, 0.64, 1); }
.petal-label.is-chosen .icon { transform: translateY(-8.5px); }
.petal-label.is-chosen .name { font-weight: 500; }
.airdrop path { fill: none; stroke: var(--graphite); stroke-width: 2px; stroke-linecap: round; }
.airdrop circle { fill: var(--graphite); }
/* The colours of a pane, over its glass: the one yellow of "chosen" and "done", full and in Display P3 as Bloom.yellow;
   a petal that does not apply takes the cool grey of Bloom.off. */
.pane > i { position: absolute; inset: 0; opacity: 0; }
.pane-chosen, .pane-done { background: var(--heart); }
.pane-off { background: rgb(233 237 242 / 0.55); }
.heart {
  position: absolute;
  left: calc(198px - 47.6px);
  top: calc(198px - 47.6px);
  width: 95.2px;
  height: 95.2px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* The cushion of the wheel (HeartDome): the yellow of the chosen petal, a little darker at the edge.
     Radius 0.28 of the tip (47.6 of 170 points). */
  background: radial-gradient(circle at 42% 38%, var(--heart) 0, var(--heart) 26.2px, var(--heart-edge) 52.4px);
  color: var(--graphite);
  font-family: var(--font-text);
}
/* Format and size, as HeartInfo: the format small and spaced, the number large and light, the unit small. */
.heart i { font-style: normal; font-size: 8px; font-weight: 500; letter-spacing: 1.6px; opacity: 0.6; }
.heart span { display: flex; align-items: baseline; gap: 2px; }
.heart b { font-size: 23px; font-weight: 300; letter-spacing: -0.6px; font-variant-numeric: tabular-nums; }
.heart small { font-size: 9.5px; font-weight: 400; opacity: 0.7; }

/* Shift, held down: a key of glass, outside the camera, that turns yellow while it is pressed. */
.shift-key {
  position: absolute;
  z-index: 7;
  width: 118px;
  height: 58px;
  margin: -29px 0 0 -59px;
  padding: 9px 13px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 13px;
  background: rgb(255 255 255 / 0.55);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: inset 0 1px 1px rgb(255 255 255 / 0.9), inset 0 -2px 0 rgb(30 35 41 / 0.08), 0 12px 26px -12px rgb(30 35 41 / 0.45);
  color: var(--graphite);
  font: 500 12px/1 var(--font-text);
  opacity: 0;
}
.shift-glyph { font-size: 18px; }
.shift-key.is-down {
  background: var(--chosen-glass);
  box-shadow: inset 0 1px 1px rgb(255 255 255 / 0.7), inset 0 2px 3px rgb(120 90 0 / 0.12), 0 5px 12px -7px rgb(30 35 41 / 0.45);
}

/* The card after the drop, as ResultPanel: thumbnail with the sun of "done", name, size before and after. */
.result {
  position: absolute;
  z-index: 5;
  width: 314px;
  height: 80px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 18px;
  background: rgb(255 255 255 / 0.68);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  backdrop-filter: blur(24px) saturate(1.5);
  box-shadow: inset 0 1px 1px rgb(255 255 255 / 0.95), 0 20px 40px -18px rgb(30 35 41 / 0.45);
  color: var(--graphite);
  transform-origin: 50% 50%;
  opacity: 0;
}
.result-photo { position: relative; flex: none; width: 56px; height: 56px; border-radius: 8px; box-shadow: none; }
.result-photo i {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--heart);
  box-shadow: 0 0 0 2px #FFFFFF;
}
.result-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.result-text b { font-size: 13px; font-weight: 600; }
.result-size { font-size: 11px; color: rgb(30 35 41 / 0.76); font-variant-numeric: tabular-nums; }
.result-size strong { color: var(--graphite); }
.result-buttons { display: flex; gap: 6px; margin-top: 2px; }
.result-buttons span {
  padding: 2px 8px;
  border-radius: 6px;
  background: rgb(255 255 255 / 0.85);
  box-shadow: 0 0 0 0.5px rgb(0 0 0 / 0.14), 0 1px 1px rgb(0 0 0 / 0.06);
  font-size: 11px;
  font-weight: 500;
}

/* Scene buttons, as in a segmented control: the current one is a white petal with its time in yellow. */
.demo-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
}
.cases { display: flex; justify-content: center; margin: 0 0 20px; }
.pills {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 16px;
  background: var(--well);
}
.pills button, .pause {
  position: relative;
  overflow: hidden;
  border: 0;
  background: none;
  color: var(--ink-soft);
  font: 500 15px/1 var(--font-text);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.pills button {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 12px;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.pills button:hover { color: var(--ink); }
.pills button.is-current {
  background: var(--petal);
  color: var(--graphite);
  font-weight: 600;
  box-shadow: 0 6px 14px -10px var(--glass-shade);
}
.pills i {
  position: absolute;
  inset: auto 10px 4px;
  height: 2px;
  border-radius: 1px;
  background: var(--heart);
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0;
}
.pills button.is-current i { opacity: 1; }
.is-paused .pills i, .pills[hidden] i { opacity: 0; }
.pause {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--well);
  display: grid;
  place-items: center;
}
.pause svg { width: 14px; height: 14px; fill: currentColor; }
.pause:hover { color: var(--ink); }
.pause .icon-play, .is-paused .pause .icon-pause { display: none; }
.is-paused .pause .icon-play { display: inline; }
.pills button:focus-visible, .pause:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.captions {
  position: relative;
  max-width: 36em;
  margin: 26px auto 0;
  padding: 0;
  list-style: none;
}
.captions h3 { margin: 0; font: 400 clamp(30px, 1.2vw + 22px, 40px) / 1.1 var(--font-title); }
.captions p { margin: 10px auto 0; max-width: 32em; color: var(--ink-soft); text-wrap: balance; }
.demo:not(.is-live) .captions li + li { margin-top: 24px; }
/* While the demo plays, the other captions stay in the page for screen readers only. */
.demo.is-live .captions li:not(.is-current) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 480px) {
  .demo { padding-left: 16px; padding-right: 16px; }
  .desk { border-radius: 18px; }
  .pills button { padding: 0 12px; font-size: 14px; }
  .pause { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .nav::before, .nav-cta, .pills button, .theme-switch::before, .theme-switch svg { transition: none; }
}

/* ---------- sections below the hero: text on the clearing, flowers in the Solid style */

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.section { padding: clamp(96px, 10vw, 152px) 0 0; }
.section:last-of-type { padding-bottom: clamp(72px, 9vw, 136px); }

/* Scroll: a block marked data-reveal comes in once, as it enters the screen (js/site.js adds the classes), in 0.5 s:
   0.3 s and 14 px, the first try, went unnoticed.
   Only text is marked (titles, lines, the list of questions): a panel or a desktop holds glass with backdrop-filter and
   flowers with SVG filters, and moving them makes Safari redraw the lot. Without JavaScript, or with "Reduce motion",
   nothing is hidden and nothing moves. */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.5s ease, transform 0.5s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.center { text-align: center; display: flex; flex-direction: column; align-items: center; }

.title, .hero-name {
  overflow-wrap: anywhere;
  min-width: 0;
}
.title {
  margin: 0;
  font: 400 clamp(42px, 3vw + 24px, 68px) / 1.02 var(--font-title);
  letter-spacing: -0.005em;
}
.title-small { font-size: clamp(32px, 1.6vw + 24px, 46px); }
.lead {
  margin: 18px 0 0;
  max-width: 34em;
  font-size: clamp(17px, 0.3vw + 16px, 20px);
  line-height: 1.45;
  color: var(--ink-soft);
}
.small { font-size: 14px; color: var(--ink-soft); }
code, kbd { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.92em; }
kbd { font-family: var(--font-round); font-size: 0.8em; vertical-align: 0.08em; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.flower {
  width: 100%;
  max-width: 460px;
  justify-self: center;
  overflow: visible;
  filter: drop-shadow(0 10px 18px var(--petal-shadow));
}
.flower .petal use { fill: var(--petal); transition: fill 0.2s ease; }
.flower .petal { transition: transform 0.25s var(--ease-out); }
.flower .petal.is-chosen { transform: translate(var(--dx), var(--dy)); }
.flower .petal.is-chosen use { fill: var(--chosen); }
.flower text {
  font-family: var(--font-text);
  font-weight: 500;
  letter-spacing: var(--petal-tracking);
  fill: var(--graphite);
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
}
.flower .petal.is-chosen text { font-weight: 600; }
/* Tool names are whole words, as PetalType.name: no extra spacing, so they stay inside the petal. */
.flower text[font-size="12.5"] { letter-spacing: 0; }
.flower .heart { fill: url(#cushion); }
.cushion-fill { stop-color: var(--heart); }
.cushion-edge { stop-color: var(--heart-edge); }

.petal-list { margin: 32px 0 0; display: grid; gap: 4px; }
.petal-list > div {
  display: grid;
  grid-template-columns: 7.2rem minmax(0, 1fr);
  gap: 16px;
  padding: 9px 0;
}
.petal-list dt {
  position: relative;
  font: 600 17px/1.45 var(--font-round);
  letter-spacing: 0.02em;
}
/* The yellow dot means "chosen", as on the petal. */
.petal-list dt::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--heart);
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.petal-list > div.is-chosen dt::before { opacity: 1; transform: none; }
.petal-list dd { margin: 0; color: var(--ink-soft); }



/* The copy a petal makes, drawn: the photo of the demo, changed by the chosen petal (data-show, from js/site.js).
   Bigger parts (page, backdrop, rings) share the cell of the photo and stay centred on it. */
.specimen {
  display: grid;
  grid-template-rows: 230px auto auto;
  justify-items: center;
  align-items: center;
  width: 100%;
  isolation: isolate;
  color: var(--desk-ink);
}
.specimen > .spec-tile, .spec-page, .spec-backdrop, .spec-rings { grid-area: 1 / 1; }
.spec-tile {
  position: relative;
  width: 200px;
  height: 150px;
  border-radius: 6px;
  box-shadow: 0 0 0 4px #FFFFFF, 0 16px 30px -14px rgb(30 35 41 / 0.4);
  transition: transform 0.5s var(--ease-out), border-radius 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.spec-photo, .spec-sheets i {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  background:
    radial-gradient(120% 60% at 30% 100%, #79A85E 0 45%, rgb(121 168 94 / 0) 46%),
    linear-gradient(#86C0EE, #D7EAF4 58%, #A9CF8B 59%, #7FAE64);
}
.spec-photo { z-index: 1; transition: inset 0.5s var(--ease-out), border-radius 0.5s var(--ease-out); }
.spec-sun {
  position: absolute;
  left: 64%;
  top: 14%;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(#FFF2C4 0 40%, rgb(255 233 168 / 0) 70%);
}
.spec-sheets i {
  z-index: -1;
  box-shadow: 0 0 0 4px #FFFFFF, 0 10px 22px -12px rgb(30 35 41 / 0.4);
  opacity: 0;
  transition: transform 0.5s var(--ease-out), opacity 0.4s ease;
}
.spec-checker {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: repeating-conic-gradient(#E4E7EA 0 25%, #FFFFFF 0 50%) 0 0 / 16px 16px;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.spec-name {
  margin-top: 14px;
  font: 500 14px/1.3 var(--font-text);
  white-space: pre;
}
.spec-name b { font-weight: 600; border-radius: 3px; background: var(--chosen); box-shadow: 0 0 0 2px var(--chosen); margin-left: 3px; color: var(--graphite); text-shadow: none; }
.spec-name b:empty { display: none; }
.specimen-tools .spec-name b { margin-left: 0.32em; }

/* Formats */
.specimen[data-show="png"] .spec-checker { opacity: 1; }
.specimen[data-show="png"] .spec-photo { inset: 16px 41px; border-radius: 50%; }
.specimen[data-show="tiff"] .spec-sheets i { opacity: 1; }
.specimen[data-show="tiff"] .spec-sheets i:first-child { transform: translate(-16px, 8px) rotate(-8deg); }
.specimen[data-show="tiff"] .spec-sheets i:last-child { transform: translate(16px, 6px) rotate(7deg); }
.specimen[data-show="webp"] .spec-sheets i:first-child { opacity: 0.75; transform: translate(20px, -14px); }
.specimen[data-show="webp"] .spec-sheets i:last-child { opacity: 0.45; transform: translate(40px, -28px); }
.specimen[data-show="webp"] .spec-sun, .specimen[data-show="gif"] .spec-sun { animation: sun-hop 1.2s steps(4) infinite; }
@keyframes sun-hop { from { transform: translate(-60px, 30px); } to { transform: translate(20px, -10px); } }
.spec-page {
  width: 150px;
  height: 196px;
  border-radius: 4px;
  background:
    linear-gradient(rgb(30 35 41 / 0.08), rgb(30 35 41 / 0.08)) 22px 138px / 106px 6px no-repeat,
    linear-gradient(rgb(30 35 41 / 0.08), rgb(30 35 41 / 0.08)) 22px 152px / 106px 6px no-repeat,
    linear-gradient(rgb(30 35 41 / 0.08), rgb(30 35 41 / 0.08)) 22px 166px / 70px 6px no-repeat,
    #FFFFFF;
  box-shadow: 0 16px 30px -14px rgb(30 35 41 / 0.4);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.4s ease, transform 0.5s var(--ease-out);
}
.specimen[data-show="pdf"] .spec-page { opacity: 1; transform: none; }
.specimen[data-show="pdf"] .spec-tile { transform: translateY(-34px) scale(0.53); box-shadow: none; border-radius: 2px; }

/* Tools */
.spec-over { position: absolute; inset: 0; z-index: 2; overflow: hidden; border-radius: inherit; pointer-events: none; }
.spec-over > *, .spec-tags i, .spec-meter, .spec-rings i { opacity: 0; }
.spec-redact {
  position: absolute;
  left: 8%;
  top: 30%;
  width: 44%;
  height: 46%;
  /* Pixels: two grids of light and shade over the sky and the grass they cover. */
  background:
    repeating-conic-gradient(rgb(255 255 255 / 0.2) 0 25%, rgb(255 255 255 / 0) 0 50%) 0 0 / 28px 28px,
    repeating-conic-gradient(rgb(30 35 41 / 0.1) 0 25%, rgb(30 35 41 / 0) 0 50%) 7px 7px / 14px 14px,
    repeating-conic-gradient(rgb(30 35 41 / 0) 0 25%, rgb(255 255 255 / 0.14) 0 50%) 14px 0 / 42px 42px,
    linear-gradient(#B4D3EA 0 61%, #8DB774 61%);
}
.spec-ink { position: absolute; inset: 0; width: 100%; height: 100%; }
.spec-ink * { fill: none; stroke: var(--graphite); stroke-width: 4px; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 220; stroke-dashoffset: 220; }
.spec-crop { position: absolute; inset: 0; border: 2px solid #FFFFFF; box-shadow: 0 0 0 200px rgb(30 35 41 / 0.5); }
.spec-tags { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.spec-tags i {
  position: absolute;
  padding: 3px 8px;
  border-radius: 7px;
  background: rgb(255 255 255 / 0.92);
  box-shadow: 0 4px 10px -6px rgb(30 35 41 / 0.5);
  color: var(--graphite);
  font: 600 11px/1.2 var(--font-round);
  font-style: normal;
}
.spec-tags i:nth-child(1) { left: 10px; bottom: 12px; }
.spec-tags i:nth-child(2) { left: 10px; top: 12px; }
.spec-tags i:nth-child(3) { right: 10px; top: 12px; }
.spec-meter { width: 200px; height: 6px; margin-top: 16px; border-radius: 3px; background: rgb(255 255 255 / 0.55); overflow: hidden; }
.spec-meter i { display: block; height: 100%; border-radius: inherit; background: var(--heart); transform-origin: left; }
.spec-backdrop {
  width: 272px;
  height: 210px;
  border-radius: 20px;
  background: linear-gradient(145deg, #99C9F2, #DBEAF2 55%, #EEEBD3);
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.4s ease, transform 0.5s var(--ease-out);
}
.spec-rings { position: relative; width: 260px; height: 230px; pointer-events: none; }
.spec-rings i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 120px;
  height: 120px;
  margin: -60px 0 0 -60px;
  border-radius: 50%;
  border: 1.5px solid var(--ink-soft);
}

.specimen[data-show="compress"] .spec-meter { opacity: 1; }
.specimen[data-show="compress"] .spec-meter i { animation: meter-down 1.4s 0.3s var(--ease-out) both; }
@keyframes meter-down { from { transform: scaleX(1); } to { transform: scaleX(0.19); } }

.specimen[data-show="metadata"] .spec-tags i { animation: tag-off 1.8s var(--ease-out) both; }
.specimen[data-show="metadata"] .spec-tags i:nth-child(2) { animation-delay: 0.15s; }
.specimen[data-show="metadata"] .spec-tags i:nth-child(3) { animation-delay: 0.3s; }
@keyframes tag-off { 0%, 40% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-22px) scale(0.9); } }

.specimen[data-show="annotate"] .spec-ink { opacity: 1; }
.specimen[data-show="annotate"] .spec-ink * { animation: ink 0.7s ease-out both; }
.specimen[data-show="annotate"] .spec-ink path:nth-of-type(1) { animation-delay: 0.6s; }
.specimen[data-show="annotate"] .spec-ink path:nth-of-type(2) { animation-delay: 1.1s; }
@keyframes ink { to { stroke-dashoffset: 0; } }

.specimen[data-show="backdrop"] .spec-backdrop { opacity: 1; transform: none; }
.specimen[data-show="backdrop"] .spec-tile { transform: scale(0.84); border-radius: 12px; box-shadow: 0 20px 30px -14px rgb(30 35 41 / 0.55); }

.specimen[data-show="crop"] .spec-crop { opacity: 1; animation: crop 1.2s 0.2s var(--ease-out) both; }
@keyframes crop { from { inset: 0; } to { inset: 12% 30% 10% 18%; } }

.specimen[data-show="redact"] .spec-redact { opacity: 1; animation: wipe 0.8s 0.3s ease-out both; }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }

.specimen[data-show="airdrop"] .spec-rings i { animation: ring 2.4s ease-out infinite; }
.specimen[data-show="airdrop"] .spec-rings i:nth-child(2) { animation-delay: 0.8s; }
.specimen[data-show="airdrop"] .spec-rings i:nth-child(3) { animation-delay: 1.6s; }
@keyframes ring { from { opacity: 0.6; transform: scale(0.6); } to { opacity: 0; transform: scale(2); } }
.specimen[data-show="airdrop"] .spec-tile { animation: send 2.4s var(--ease-out) infinite; }
@keyframes send {
  0%, 25% { opacity: 1; transform: none; }
  70% { opacity: 0; transform: translate(90px, -80px) scale(0.3); }
  71% { opacity: 0; transform: scale(0.9); }
  100% { opacity: 1; transform: none; }
}



/* ---------- every section: a title and one line, centred, then a panel of the same desktop as the demo */

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0 auto clamp(36px, 4vw, 56px);
}
.section-head .lead { margin-top: 16px; max-width: 30em; text-wrap: balance; }

.panel {
  position: relative;
  max-width: 1000px;
  min-height: 560px;
  margin: 0 auto;
  padding: 40px clamp(24px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 24px;
  overflow: hidden;
  isolation: isolate;
  border-radius: 22px;
  background: var(--wp-near);
  box-shadow: 0 40px 80px -44px rgb(30 35 41 / 0.5), 0 3px 8px -3px rgb(30 35 41 / 0.14);
  color: var(--desk-ink);
}
.panel > .wallpaper { z-index: -1; }

/* Scroll: petals of the chamomile in the margins of the page, behind the content. They rise slower than the page and turn
   as it scrolls (stop, and they stop), each at its own depth and speed: a parallax. Only where the browser drives
   animations from scroll, on a screen at least 1280 px wide (narrower, there is no margin beside the column), never
   with "Reduce motion": elsewhere there are no petals. The hero covers them with its meadow. Odd petals sit on the
   left, even ones on the right; --gx is the place across the margin, --y0 and --y1 the way up over the whole page. */
.petals { display: none; }
@supports (animation-timeline: scroll()) {
  @media (min-width: 1280px) and (prefers-reduced-motion: no-preference) {
    .petals { display: block; position: fixed; inset: 0; z-index: -1; overflow: clip; pointer-events: none; }
    .petals svg {
      position: absolute; top: 0; width: var(--size); height: auto; overflow: visible;
      left: calc((50% - 560px) * var(--gx) - var(--size) / 2);
      animation: petal-fall linear both; animation-timeline: scroll(root);
    }
    .petals svg:nth-child(even) { left: auto; right: calc((50% - 560px) * var(--gx) - var(--size) / 2); }
    .petals .shade { fill: var(--petal-shadow); }
    .petals .leaf { fill: var(--petal); }
    @keyframes petal-fall {
      from { transform: translateY(var(--y0)) rotate(var(--r0)); }
      to { transform: translateY(var(--y1)) rotate(var(--r1)); }
    }
    .petals svg:nth-child(1) { --gx: 0.70; --size: 72px; --y0: 110vh; --y1: -190vh; --r0: -24deg; --r1: 48deg; }
    .petals svg:nth-child(2) { --gx: 0.35; --size: 66px; --y0: 130vh; --y1: -170vh; --r0: 20deg; --r1: -52deg; }
    .petals svg:nth-child(3) { --gx: 0.30; --size: 44px; --y0: 230vh; --y1: 30vh; --r0: 30deg; --r1: -50deg; }
    .petals svg:nth-child(4) { --gx: 0.75; --size: 46px; --y0: 250vh; --y1: 50vh; --r0: -40deg; --r1: 30deg; }
    .petals svg:nth-child(5) { --gx: 0.55; --size: 58px; --y0: 165vh; --y1: -75vh; --r0: -60deg; --r1: 20deg; }
    .petals svg:nth-child(6) { --gx: 0.50; --size: 56px; --y0: 180vh; --y1: -60vh; --r0: 50deg; --r1: -20deg; }
    .petals svg:nth-child(7) { --gx: 0.20; --size: 36px; --y0: 265vh; --y1: 65vh; --r0: 10deg; --r1: 70deg; }
    .petals svg:nth-child(8) { --gx: 0.25; --size: 38px; --y0: 215vh; --y1: 15vh; --r0: -70deg; --r1: -10deg; }
    .petals svg:nth-child(9) { --gx: 0.80; --size: 64px; --y0: 140vh; --y1: -140vh; --r0: 40deg; --r1: -30deg; }
    .petals svg:nth-child(10) { --gx: 0.65; --size: 70px; --y0: 95vh; --y1: -185vh; --r0: -30deg; --r1: 42deg; }
    .petals svg:nth-child(11) { --gx: 0.45; --size: 50px; --y0: 200vh; --y1: -20vh; --r0: -15deg; --r1: 55deg; }
    .petals svg:nth-child(12) { --gx: 0.40; --size: 48px; --y0: 300vh; --y1: 60vh; --r0: 60deg; --r1: 0deg; }
  }
}
.panel-flip > .glass-slot { order: 2; }
.panel-side { display: flex; flex-direction: column; align-items: center; gap: 22px; }

/* The flower stands still on the desktop: 396 wheel points scaled to the slot by js/site.js. */
.glass-slot { position: relative; width: 100%; max-width: 410px; aspect-ratio: 1; justify-self: center; }
.glass-slot > .flower { position: absolute; inset: 0; max-width: none; }
.glass-slot.is-glass > .flower { display: none; }
.bloom.is-still { left: 0; top: 0; transform-origin: 0 0; visibility: visible; }
.bloom.is-still .hit { pointer-events: fill; cursor: pointer; -webkit-tap-highlight-color: transparent; }

/* The card of the chosen petal, of the same glass as the card after the drop in the demo. */
.card {
  width: min(100%, 340px);
  min-height: 78px;
  padding: 15px 18px;
  border-radius: 18px;
  background: rgb(255 255 255 / 0.68);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  backdrop-filter: blur(24px) saturate(1.5);
  box-shadow: inset 0 1px 1px rgb(255 255 255 / 0.95), 0 20px 40px -18px rgb(30 35 41 / 0.45);
  color: var(--graphite);
  text-align: left;
}
.spec-captions { margin: 0; }
.spec-captions > div { display: grid; gap: 3px; }
.spec-captions:not(.is-live) > div + div { margin-top: 10px; }
.spec-captions dt { display: flex; align-items: center; gap: 8px; font: 700 15px/1.3 var(--font-round); letter-spacing: 0.02em; }
/* The yellow dot is the petal that is chosen. */
.spec-captions dt::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--heart); }
.spec-captions dd { margin: 0 0 0 16px; font-size: 15px; line-height: 1.4; color: rgb(30 35 41 / 0.76); }
/* Every caption sits in the same cell: the card is as tall as the longest one, so the desktop does not change height
   when the pointer moves from a short caption to a long one. The ones that are not chosen stay in the tree for screen readers. */
.spec-captions.is-live { display: grid; }
.spec-captions.is-live > div { grid-area: 1 / 1; }
.spec-captions.is-live > div:not(.is-chosen) { opacity: 0; pointer-events: none; }
.spec-captions.is-live > .is-chosen { animation: caption-in 0.3s var(--ease-out); }
@keyframes caption-in { from { opacity: 0; transform: translateY(3px); } }
.pair-title { margin: 0 0 8px; font: 600 11px/1 var(--font-text); letter-spacing: 0.1em; text-transform: uppercase; color: rgb(30 35 41 / 0.6); }

/* Video: two flowers on one desktop, each with its card. */
.panel-pair { align-items: start; padding-top: 48px; padding-bottom: 48px; }
.pair { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.pair .glass-slot { max-width: 360px; }

/* Nothing leaves the Mac: the original and the copy on the desktop, as at the end of the demo. */
.panel-short { min-height: 320px; display: flex; justify-content: center; align-items: center; gap: clamp(48px, 9vw, 112px); }
.panel .desk-file { position: static; width: auto; margin: 0; font-size: 13px; }
.panel .menubar { z-index: 1; }
.keep-file .photo { position: relative; width: 92px; height: 92px; }
.keep-file.is-copy .photo i {
  position: absolute;
  right: -6px;
  bottom: -6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--heart);
  box-shadow: 0 0 0 3px #FFFFFF;
}
:root[data-theme="evening"] .pane { background: rgb(255 255 255 / 0.4); }
:root[data-theme="evening"] .spec-name { text-shadow: 0 1px 3px rgb(0 0 0 / 0.45); }
@media (max-width: 760px) {
  .panel { grid-template-columns: minmax(0, 1fr); min-height: 0; padding: 32px 20px 28px; gap: 12px; border-radius: 18px; }
  .panel-flip > .glass-slot { order: 0; }
  .glass-slot { max-width: 330px; }
  .panel-side { gap: 14px; }
  .specimen { grid-template-rows: 214px auto auto; }
  .pair + .pair { margin-top: 28px; }
  .panel-short { padding: 64px 20px 48px; }
  .panel .wide-only { display: none; }
  .panel .menubar { gap: 16px; padding: 0 14px; }
}
/* On the narrowest phones the menu bar of the last desktop keeps its clock inside the frame. */
@media (max-width: 359px) {
  .panel .menubar, .panel .menu-extras { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .petal-label .name, .petal-label .icon { transition: none; }
}

/* Questions: one quiet row for each, the answer under it. The sign turns into a cross in 0.25 seconds. */
.faq-wrap { max-width: 760px; }
.center-title { text-align: center; }
.faq-list { display: grid; gap: 8px; margin-top: clamp(32px, 4vw, 48px); }
.faq-list details { border-radius: 18px; background: var(--well); transition: background-color 0.2s ease; }
.faq-list details[open] { background: var(--petal-well); }
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px 18px 24px;
  border-radius: 18px;
  font: 600 18px/1.35 var(--font-text);
  list-style: none;
  cursor: pointer;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "";
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background:
    linear-gradient(var(--graphite), var(--graphite)) center / 12px 1.6px no-repeat,
    linear-gradient(var(--graphite), var(--graphite)) center / 1.6px 12px no-repeat,
    var(--petal);
  box-shadow: 0 4px 10px -6px var(--glass-shade);
  transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.2), background-color 0.2s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list summary:hover::after { background-color: var(--chosen); }
.faq-list summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.faq-list details > :not(summary) { margin: 0 24px; }
.faq-list details > p { padding-bottom: 20px; color: var(--ink-soft); max-width: 36em; }
.faq-list code { font-size: 0.9em; }
.closing { padding-top: clamp(104px, 12vw, 176px); }
.closing-line { margin: 12px 0 0; font-size: clamp(17px, 0.4vw + 15px, 20px); color: var(--ink-soft); }

/* .unsigned is shown only while the build is not notarized, .signed only when it is: data-signed on <html>. */
html[data-signed="yes"] .unsigned { display: none; }
html[data-signed="no"] .signed { display: none; }
.numbered { margin: 20px 0 0; padding-left: 1.4em; display: grid; gap: 10px; }
.numbered li { padding-left: 4px; }
.numbered li::marker { font-family: var(--font-round); font-weight: 600; }

.closing .title { font-size: clamp(56px, 4vw + 32px, 96px); }
.closing .button { margin-top: 28px; }
.button-solid { background: var(--petal); -webkit-backdrop-filter: none; backdrop-filter: none; color: var(--graphite); }
.fine { margin: 14px 0 0; font-size: 13px; color: var(--ink-soft); }
.fine + .fine { margin-top: 4px; }

.footer { padding: clamp(56px, 6vw, 88px) 0 40px; font-size: 14px; color: var(--ink-soft); text-align: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: center; }
.footer-sign { margin: 14px 0 0; font: 400 17px/1 var(--font-title); color: var(--ink-soft); }
.footer-links a { color: inherit; text-decoration: none; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }

@media (max-width: 860px) {
  .wrap { padding: 0 20px; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .petal-list > div { grid-template-columns: 6.2rem minmax(0, 1fr); gap: 12px; }
  .petal-list dt::before { left: -12px; width: 6px; height: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .flower .petal, .flower .petal use, .petal-list dt::before,
  .spec-tile, .spec-photo, .spec-sheets i, .spec-checker, .spec-page, .spec-backdrop { transition: none; }
  /* Still pictures: each tool shows its result at once, Metadata shows the data it removes. */
  .specimen *, .spec-captions > * { animation-duration: 0.01s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; }
  .specimen[data-show="metadata"] .spec-tags i { animation: none; opacity: 1; text-decoration: line-through; }
  .specimen[data-show="airdrop"] .spec-tile { animation: none; }
  .specimen[data-show="airdrop"] .spec-rings i { animation: none; opacity: 0.4; }
  .specimen[data-show="airdrop"] .spec-rings i:nth-child(2) { transform: scale(1.4); opacity: 0.25; }
  .specimen[data-show="airdrop"] .spec-rings i:nth-child(3) { transform: scale(1.8); opacity: 0.12; }
}

/* ---------- the other pages: a small still meadow on top, the text on the clearing */

.hero-band { min-height: 0; padding: calc(var(--nav-h) + clamp(12px, 3vw, 32px)) 16px clamp(56px, 7vw, 88px); }
.hero-band::after { height: 40%; }
.hero-band .hero-flower { display: block; width: clamp(150px, 16vw, 190px); }
.hero-band .hero-name { font-size: clamp(48px, 3vw + 32px, 76px); }
.hero-band .hero-line { margin-top: 10px; }
.page { padding-top: clamp(32px, 4vw, 56px); padding-bottom: clamp(72px, 8vw, 120px); }
.page section { margin-top: clamp(40px, 5vw, 64px); }
.page p, .page li { color: var(--ink-soft); max-width: 36em; }
.page code { overflow-wrap: anywhere; }   /* long paths break inside the line on a phone */
.page p + p { margin-top: 12px; }
.page h2.title-small { margin-bottom: 14px; }
.page .install-button { margin-top: 24px; }
.page .install { margin: 20px 0 24px; }
.page .install-command { background: var(--well); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.page .lead { margin-top: 8px; }
.page .soon { font-style: italic; }
.page .guides ul { display: grid; gap: 8px; padding-left: 1.2em; }   /* the guides: links at the end of each one, and guides.html */
.lang { margin: 0; font-size: 15px; }
.credits > div { grid-template-columns: 6rem minmax(0, 1fr); }
.credits dd a { overflow-wrap: anywhere; }


/* guide polish 2026-10-27 */
.hero-band .install-button { margin-top: 18px; }
.hero-trust {
  margin-top: 10px;
  font-size: 0.95rem;
  color: var(--ink-soft);
  max-width: 28em;
}
.hero-band .hero-trust { color: var(--ink-soft); }
.page .guide-deep { margin-top: clamp(28px, 3.5vw, 44px); }
.page .guide-deep .title-small {
  font-size: clamp(1.05rem, 0.4vw + 1rem, 1.25rem);
  opacity: 0.92;
}
.page .guides { margin-top: clamp(36px, 4vw, 56px); margin-bottom: 0; }
.page { padding-bottom: clamp(48px, 6vw, 80px); }
/* Short heroes (guides): sky only under the meadow tip for chrome tint.
   Full 100svh sky left a blue strip through the first guide section. */
body:has(.hero-band) {
  background: var(--page) linear-gradient(var(--sky-top), var(--sky-top)) top / 100% 18svh no-repeat;
}
.hero-band::after { height: 36%; opacity: 1; }
.page .faq-list { margin-top: 12px; }


/* guide body hierarchy 2026-10-27 */
.page.guide-body { max-width: 1000px; padding-top: clamp(24px, 3vw, 40px); }
.page.guide-body > .guide-block { margin-top: clamp(40px, 5vw, 72px); }
.page.guide-body > .guide-block:first-child { margin-top: 8px; }
.guide-block .section-head { margin-bottom: clamp(20px, 3vw, 32px); }
.guide-paths {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.guide-paths li {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--well);
}
.guide-paths strong {
  font-family: var(--font-round);
  font-weight: 600;
  color: var(--graphite);
}
.guide-paths span { color: var(--ink-soft); max-width: 36em; }
.guide-proof {
  display: grid;
  gap: 12px;
  justify-items: start;
}
.guide-proof .card { margin: 0; max-width: 420px; }
.guide-more {
  margin-top: clamp(28px, 3vw, 40px);
  border-radius: 18px;
  background: var(--well);
  padding: 4px 0;
}
.guide-more > summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  font-family: var(--font-round);
  font-weight: 600;
  color: var(--graphite);
}
.guide-more > summary::-webkit-details-marker { display: none; }
.guide-more > summary::after {
  content: "+";
  float: right;
  font-weight: 500;
  opacity: 0.55;
}
.guide-more[open] > summary::after { content: "–"; }
.guide-more .guide-deep {
  margin: 0 20px 18px;
  padding-top: 8px;
  border-top: 1px solid color-mix(in srgb, var(--graphite) 12%, transparent);
}
.guide-more .guide-deep + .guide-deep { margin-top: 18px; }
.page.guide-body .demo { margin-top: 0; }
.page.guide-body .guides { margin-top: clamp(40px, 5vw, 64px); }


/* guide-stop / guide-primary 2026-10-27 */
.guide-primary { }
.guide-stop {
  padding-bottom: clamp(28px, 4vw, 48px);
  border-bottom: 1px solid color-mix(in srgb, var(--graphite) 14%, transparent);
  margin-bottom: clamp(8px, 1.5vw, 16px);
}
.guide-more > summary { letter-spacing: 0.01em; }


/* guide audit 2026-10-27: the proof centred, a table of sizes, what is kept, related guides as cards */
.guide-proof { justify-items: center; }
.guide-aside { margin-top: 16px; }
.size-table {
  width: min(100%, 440px);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 18px;
  overflow: hidden;
  background: var(--well);
}
.size-table caption { caption-side: bottom; padding-top: 10px; font-size: 13px; color: var(--ink-soft); }
.size-table th, .size-table td { padding: 14px 18px; text-align: left; font-weight: 400; color: var(--ink-soft); }
.size-table td { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }
.size-table tr + tr > * { border-top: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); }
.size-table .is-copy > * { background: var(--petal-well); color: var(--ink); }
.guide-facts { width: min(100%, 36em); margin: 12px 0 0; padding-left: 1.2em; display: grid; gap: 8px; }
.related ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.page .related li { max-width: none; }
.related li > a {
  display: grid;
  gap: 4px;
  height: 100%;
  align-content: start;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--well);
  color: inherit;
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.related li > a:hover { background: var(--petal-well); }
.related li > a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.related strong { font-family: var(--font-round); font-weight: 600; color: var(--ink); }
.related span { color: var(--ink-soft); }
.page .related > p { margin-top: 14px; }

/* The question about the X ads pixel (js/x-pixel.js), only for a visitor who arrives from an ad.
   A plain solid bar at the bottom: no glass and no animation, like every panel of the site. */
.ads-ask {
  position: fixed; left: 50%; bottom: 16px; z-index: 50; transform: translateX(-50%);
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  width: min(680px, calc(100vw - 32px)); box-sizing: border-box; padding: 14px 18px;
  border-radius: 18px; background: var(--white); color: var(--graphite);
  box-shadow: 0 10px 30px -12px rgb(30 35 41 / 0.45);
}
.ads-ask p { flex: 1 1 320px; margin: 0; font-size: 14px; line-height: 1.4; }
.ads-ask a { color: inherit; }
.ads-ask .button { min-height: 38px; padding: 0 20px; font-size: 15px; background: var(--heart); color: var(--graphite); }
.ads-no {
  min-height: 38px; padding: 0 14px; border: 0; border-radius: 19px; background: none;
  font: 600 15px/1 var(--font-text); color: var(--graphite); cursor: pointer;
}
.ads-no:focus-visible, .ads-ask .button:focus-visible { outline: 2px solid var(--graphite); outline-offset: 3px; }
