/* Liquix style. The house look for product pages, from the Liquix website (Owen Cope).
   Tokens first; every part below reads them. Light and dark are each designed, not inverted. */

:root {
  --page: #ffffff;  --board: #e8e8ed;  --tile: #ffffff;
  --ink: #1d1d1f;   --sub: #6e6e73;    --blue: #0071e3;
  --title-ink: rgba(0, 0, 0, .65);     /* see-through ink over pictures and the board */
  --soft-ink: rgba(0, 0, 0, .65);
  --glass: rgba(255, 255, 255, .62);   /* the header */
  --chip: rgba(255, 255, 255, .62);    /* pills, steppers, close, over a wallpaper */
  --ctl: rgba(232, 232, 237, .72);     /* gallery controls */
  --ctl-hover: rgba(210, 210, 215, .72);
  --dot: rgba(0, 0, 0, .42);  --dot-on: rgba(0, 0, 0, .8);
  --btn-bg: rgba(255, 255, 255, .51);  --btn-ink: rgba(0, 0, 0, .55);
  --capsule: rgba(255, 255, 255, .92);
  --scrim: rgba(245, 245, 247, .35);

  --ease: cubic-bezier(.25, .1, .25, 1);
  --out: cubic-bezier(.22, 1, .36, 1);       /* fast out, gentle settle */
  --hover: cubic-bezier(.2, .8, .2, 1);      /* slow, soft, no bounce */
  --inout: cubic-bezier(.42, 0, .58, 1);
  --pop: cubic-bezier(.41, 1.37, .03, 1);    /* small round buttons arriving */
  --pill: cubic-bezier(.36, 1.22, .5, 1);

  --r-tile: 26px;  --r-panel: 30px;
  --wide: min(1440px, calc(100% - 48px));
  color-scheme: light;
}
[data-theme="dark"] {
  --page: #000;  --board: #000;  --tile: #1c1c1e;
  --ink: #f5f5f7;  --sub: #98989d;  --blue: #2997ff;
  --title-ink: rgba(255, 255, 255, .83);
  --soft-ink: rgba(255, 255, 255, .64);
  --glass: rgba(30, 30, 32, .6);
  --chip: rgba(255, 255, 255, .16);
  --ctl: rgba(42, 42, 45, .72);  --ctl-hover: rgba(84, 84, 88, .72);
  --dot: rgba(255, 255, 255, .36);  --dot-on: #f5f5f7;
  --btn-bg: rgba(0, 0, 0, .42);  --btn-ink: rgba(255, 255, 255, .82);
  --capsule: rgba(255, 254, 242, .87);
  --scrim: rgba(0, 0, 0, .4);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--board); color: var(--ink); }
body { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; transition: background-color .4s var(--ease); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
img, video { display: block; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
/* An SF Symbol exported as a PNG (from Proto), drawn in the text colour. */
.ms { display: inline-block; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
html:not(.keys) :focus-visible { outline: none; }
/* A theme picture: both are in the page; only the current one shows, so switching never flashes. */
[data-theme="light"] .dark-only, [data-theme="dark"] .light-only { display: none; }
/* Both theme videos stay in place and cross-fade, so switching theme never flashes or restarts them. */
video.wall.light-only, video.wall.dark-only, img.wall.light-only, img.wall.dark-only { display: block; transition: opacity .6s var(--ease); }
[data-theme="light"] .wall.dark-only, [data-theme="dark"] .wall.light-only { opacity: 0; }
video::-webkit-media-controls, video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }

/* ---------- Header: a frosted bar that leaves as a glass blob ---------- */
.bar { position: fixed; z-index: 30; top: 14px; left: 0; right: 0; margin: 0 auto;
  width: min(1100px, calc(100% - 28px)); height: 52px; padding: 0 8px 0 14px;
  display: flex; align-items: center; gap: 8px; isolation: isolate; }
.bar::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: 100%; height: 100%;
  translate: -50% -50%; border-radius: 26px; background: var(--glass);
  -webkit-backdrop-filter: blur(24px) saturate(1.8); backdrop-filter: blur(24px) saturate(1.8); }
.bar.away { translate: 0 -96px; visibility: hidden; pointer-events: none; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 17px; letter-spacing: -.2px; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.bar nav { margin-left: auto; display: flex; gap: 2px; }
.bar nav a { padding: 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--soft-ink); text-decoration: none;
  transition: background-color .3s var(--ease); }
.bar nav a:hover { background: rgba(127, 127, 127, .13); }
.theme { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--soft-ink);
  transition: background-color .35s var(--hover), transform .45s var(--hover); }
.theme:hover { background: rgba(127, 127, 127, .14); transform: scale(1.06); }
.theme:active { transform: scale(.94); transition-duration: .15s; }
.bar nav + .theme { margin-left: 0; }
.bar > .theme:only-of-type { margin-left: auto; }

/* ---------- Hero: the product on its wallpaper ---------- */
.hero { position: relative; height: 100svh; min-height: 680px; overflow: hidden; }
.wall { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.hero-in { position: relative; height: 100%; display: grid; grid-template-columns: 0.9fr 1.1fr; align-items: center;
  width: min(1500px, 100%); margin: 0 auto; padding: 80px clamp(24px, 4vw, 64px) 60px; gap: 2vw; }
.hero-copy { display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--title-ink); }
.hero-copy .app-icon { width: clamp(140px, 15vw, 220px); height: auto; }
.hero-copy h1 { margin: 6px 0 0; font-size: clamp(32px, 3.3vw, 56px); line-height: 1.28; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
.hero-copy h1 span { display: block; }
.hero-mac { width: 100%; height: auto; }
.hero .fine { position: absolute; left: 0; right: 0; bottom: 22px; margin: 0; text-align: center; font-size: 15px; color: rgba(191, 191, 191, .7); }

/* ---------- The capsule: the one page button ---------- */
.capsule { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 60px; padding: 0 30px 0 24px; margin-top: 28px; border-radius: 999px; text-decoration: none;
  background: var(--capsule); color: #1d1d1f; font-size: 22px; font-weight: 600; letter-spacing: -.02em;
  transition: filter .4s var(--hover), transform .5s var(--hover), width .55s var(--hover); }
.capsule:hover { filter: brightness(1.03); }
.capsule:active { transform: scale(.98); transition-duration: .15s; }
.capsule .ms, .capsule .ico { width: 24px; height: 24px; color: #1d1d1f; }
.capsule.small { height: 44px; padding: 0 22px; margin: 0; font-size: 17px; }
/* A capsule that opens into its next step: the button widens into a field with a round send button. */
form.capsule { width: 340px; padding: 0; overflow: hidden; }
form.capsule.open, form.capsule.done { width: min(500px, 100%); }
.c-open { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; color: #1d1d1f;
  transition: opacity .25s var(--ease); }
.open .c-open, .done .c-open { opacity: 0; pointer-events: none; }
.c-field { position: absolute; left: 28px; right: 70px; inset-block: 0; display: flex; align-items: center; opacity: 0;
  transition: opacity .3s var(--ease) .15s; }
.open .c-field { opacity: 1; }
.c-field input { width: 100%; border: 0; outline: none; background: none; font: inherit; font-size: 20px; font-weight: 500; color: #1d1d1f; }
.c-field input::placeholder { color: rgba(0, 0, 0, .35); }
.c-send { position: absolute; right: 8px; top: 8px; width: 44px; height: 44px; border-radius: 50%; background: #1d1d1f; color: #fff;
  display: grid; place-items: center; opacity: 0; transform: scale(.6);
  transition: opacity .3s var(--ease) .2s, transform .45s var(--hover) .2s, filter .3s var(--hover); }
.open .c-send { opacity: 1; transform: none; }
.c-send:hover { filter: brightness(1.25); }
.c-done { position: absolute; inset: 0; margin: 0; display: flex; align-items: center; justify-content: center; gap: 10px;
  opacity: 0; pointer-events: none; transition: opacity .35s var(--ease) .1s; color: #1d1d1f; }
.c-done .ico { color: #34c759; }
.done .c-done { opacity: 1; }
.done .c-field, .done .c-send { opacity: 0; pointer-events: none; }
form.capsule.bad { animation: shake .4s var(--ease); }
.bad .c-field input { color: #d70015; }
@keyframes shake { 20%, 60% { translate: -8px 0; } 40%, 80% { translate: 8px 0; } }

/* ---------- Section heads ---------- */
.intro { text-align: center; padding: 120px 24px 48px; }
.eyebrow { margin: 0; color: var(--soft-ink); font-size: 19px; font-weight: 600; }
.intro h2 { margin: 8px 0 0; font-size: clamp(40px, 4.4vw, 60px); line-height: 1.1; font-weight: 700; letter-spacing: -.02em;
  color: var(--soft-ink); text-wrap: balance; }
.intro p:last-child:not(.eyebrow) { margin: 16px 0 0; font-size: clamp(18px, 1.6vw, 22px); font-weight: 500; color: var(--sub); }

/* ---------- Bento: Owen's board, 1191 × 749 units, every tile placed in --u ---------- */
.bento { container-type: inline-size; width: min(1191px, calc(100% - 48px)); margin: 0 auto; }
.board { --u: calc(100cqw / 1191); position: relative; width: 100%; aspect-ratio: 1191 / 749; }
.tile { position: absolute; overflow: hidden; border: 0; padding: 0; margin: 0; border-radius: calc(var(--u) * 26);
  background: var(--tile); color: var(--ink); text-align: center; cursor: pointer; font: inherit;
  opacity: 0; transform: translateY(calc(var(--u) * 26)) scale(.9); }
.board.in .tile { opacity: 1; transform: none; }
.board.in:not(.settled) .tile { transition: opacity .5s var(--ease) calc(var(--i, 0) * 60ms),
  transform var(--tile-ms, .8s) var(--tile-spring, var(--out)) calc(var(--i, 0) * 60ms); }
.board.settled .tile { transition: transform .55s var(--hover), filter .45s var(--hover), background-color .4s var(--ease); }
.board.settled .tile:hover { transform: scale(1.012); filter: brightness(1.03); }
.board.settled .tile:active { transform: scale(.99); transition-duration: .2s; }
.s-lt { left: 0; top: 0; width: calc(var(--u) * 330); height: calc(var(--u) * 330); }
.s-lm { left: 0; top: calc(var(--u) * 342); width: calc(var(--u) * 330); height: calc(var(--u) * 220); }
.s-lb { left: 0; top: calc(var(--u) * 574); width: calc(var(--u) * 330); height: calc(var(--u) * 175); }
.s-mn { left: calc(var(--u) * 342); top: 0; width: calc(var(--u) * 110); height: calc(var(--u) * 200); }
.s-mw { left: calc(var(--u) * 464); top: 0; width: calc(var(--u) * 385); height: calc(var(--u) * 200); }
.s-hero { left: calc(var(--u) * 342); top: calc(var(--u) * 212); width: calc(var(--u) * 507); height: calc(var(--u) * 352); }
.s-hf { left: calc(var(--u) * 342); top: calc(var(--u) * 564); width: calc(var(--u) * 507); height: calc(var(--u) * 185); }
.s-rt { left: calc(var(--u) * 861); top: 0; width: calc(var(--u) * 330); height: calc(var(--u) * 305); }
.s-rm { left: calc(var(--u) * 861); top: calc(var(--u) * 317); width: calc(var(--u) * 330); height: calc(var(--u) * 245); }
.s-rb { left: calc(var(--u) * 861); top: calc(var(--u) * 574); width: calc(var(--u) * 330); height: calc(var(--u) * 175); }
.tile:not(.shot):not(.plain) > img:not(.hero-icon) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile .label { position: absolute; z-index: 1; left: 0; right: 0; top: calc(var(--u) * 20); font-size: calc(var(--u) * 21); font-weight: 600; letter-spacing: -.3px; }
.tile .label.on-dark { color: #fff; }
[data-theme="dark"] .tile .label { color: #fff; }
.tile.plain { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(var(--u) * 14); }
.tile.plain .sym { height: calc(var(--u) * 62); width: auto; }
.tile.plain .caption { font-size: calc(var(--u) * 21); font-weight: 600; letter-spacing: -.3px; line-height: 1.12; }
.s-mn .caption { font-size: calc(var(--u) * 24); font-weight: 700; }
.tile.shot > img { position: absolute; left: 50%; top: calc(var(--u) * 62); width: 92%; height: auto; translate: -50% 0;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,.16)); }
.hero-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--title-ink); }
.hero-tile > * { position: relative; }
.hero-icon { width: calc(var(--u) * 150); height: auto; }
.hero-name { font-size: calc(var(--u) * 38); font-weight: 700; margin-top: calc(var(--u) * 4); }
.hero-sub { font-size: calc(var(--u) * 26); font-weight: 700; }
.love { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(var(--u) * 6); cursor: default; color: var(--soft-ink); }
.love-title, .love-by { font-size: calc(var(--u) * 38); font-weight: 700; display: flex; align-items: center; gap: calc(var(--u) * 12); }
.pfp { display: block; width: calc(var(--u) * 70); height: calc(var(--u) * 70); border-radius: 50%; overflow: hidden; transition: scale .5s var(--hover); }
.pfp:hover { scale: 1.05; }
.pfp img { width: 100%; height: 100%; object-fit: cover; }
/* The hero tile and the strip under it read as one card: square where they meet, growing together from the seam. */
.tile.pair-top { border-bottom-left-radius: 0; border-bottom-right-radius: 0; transform-origin: 50% 100%; }
.tile.pair-bottom { border-top-left-radius: 0; border-top-right-radius: 0; transform-origin: 50% 0%; }
.board.settled .tile[data-pair] { transition: transform .6s var(--out), filter .6s var(--out); }
.board.settled .tile[data-pair]:hover { transform: none; filter: none; }
.board.settled .tile[data-pair].pair-hover { transform: scale(1.012); filter: brightness(1.03); }

/* ---------- Card: grows out of the tile you clicked ---------- */
.scrim { position: fixed; inset: 0; z-index: 40; background: var(--scrim);
  -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2); opacity: 0; transition: opacity .45s var(--ease); }
.scrim.on { opacity: 1; }
main { transition: filter .45s var(--ease); }
body:has(.scrim.on) main { filter: blur(16px); }
.card { position: fixed; z-index: 50; margin: 0; padding: 0; border: 0; max-width: none; max-height: none; background: transparent; color: var(--ink);
  overscroll-behavior: contain; filter: drop-shadow(0 26px 50px rgba(0, 0, 0, .22)); }
.card::backdrop { background: transparent; }
.card:focus { outline: none; }
.card-inner { position: absolute; inset: 0; overflow: hidden; border-radius: var(--r-panel); background: var(--tile); scrollbar-width: none; }
.card-inner.scrolls { overflow-y: auto; overscroll-behavior: contain; }
.card-inner.scrolls::-webkit-scrollbar { display: none; }
/* A card opens closed: the picture fills it, with Expand at its foot. Expand grows the card and the story rises in. */
.card-media { position: relative; height: 100%; overflow: hidden; }
.card-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-media > img.glyph { position: absolute; left: 50%; top: 50%; width: auto; height: 40%; translate: -50% -50%; object-fit: contain; filter: drop-shadow(0 12px 26px rgba(0,0,0,.35)); }
.card-media > img.on-wall { position: absolute; left: 36px; right: 36px; top: 26px; bottom: 80px; width: calc(100% - 72px); height: calc(100% - 106px);
  object-fit: contain; filter: drop-shadow(0 18px 30px rgba(0,0,0,.35)); transform-origin: 50% 0; transition: transform .85s var(--out); }
.card.more .card-media > img.on-wall { transform: translateY(-10px) scale(.94); }
.card .expand { position: absolute; z-index: 3; left: 50%; bottom: 14px; translate: -50% 0; min-width: 64px; min-height: 44px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: rgba(255,255,255,.92);
  font-size: 16px; font-weight: 600; text-shadow: 0 1px 5px rgba(0,0,0,.55); transition: filter .4s var(--hover), scale .45s var(--hover); }
.card .expand:hover { filter: brightness(1.1); scale: 1.04; }
.card .expand svg { width: 20px; height: 20px; rotate: 180deg; transition: rotate .6s var(--out); }
.card.more .expand svg { rotate: 0deg; }
.card:not(.more) .card-body { display: none; }
.card-body { padding: 26px 44px 34px; background: var(--tile); }
.card-body h2 { margin: 0; font-size: 30px; line-height: 1.1; letter-spacing: -.6px; }
.card-body p { margin: 10px 0 0; font-size: 17px; line-height: 1.45; color: var(--sub); max-width: 62ch; }
.round { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: var(--btn-ink); background: var(--btn-bg);
  transition: transform .45s var(--hover), background-color .35s var(--hover); }
.round:hover { transform: scale(1.06); }
.round:active { transform: scale(.94); transition-duration: .15s; }
.card .close { position: absolute; z-index: 3; top: 16px; right: 16px; }

/* ---------- Panels: the wallpaper rooms the gallery and viewer live in ---------- */
.panel { position: relative; width: var(--wide); margin: 0 auto; border-radius: var(--r-panel); overflow: hidden; isolation: isolate; }
.panel > .wall { z-index: -1; }

/* ---------- Gallery: one feature per slide ---------- */
.gallery { height: 660px; }
.g-track { position: absolute; inset: 0; display: flex; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: auto; }
.g-track::-webkit-scrollbar { display: none; }
.g-track.gliding { scroll-snap-type: none; }
.slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; display: flex; flex-direction: column; }
.slide-copy { padding: 48px 52px 0; padding-right: 240px; color: var(--title-ink);
  opacity: var(--o, 1); translate: calc(var(--d, 0) * -80px) 0; }
.slide-copy h3 { margin: 0; font-size: clamp(30px, 3.2vw, 46px); font-weight: 700; letter-spacing: -.02em; }
.slide-copy p { margin: 4px 0 0; font-size: clamp(20px, 2vw, 27px); font-weight: 600; letter-spacing: -.015em; }
.slide .capsule.small { position: absolute; top: 46px; right: 46px; opacity: var(--o, 1); }
.slide > img { height: calc(100% - 250px); width: auto; max-width: 86%; margin: auto auto 120px; object-fit: contain;
  translate: calc(var(--d, 0) * 40px) 0; }

.g-ctl { position: absolute; z-index: 2; bottom: 26px; left: 50%; translate: -50% 0; display: flex; gap: 16px; }
.g-ctl.wait { opacity: 0; pointer-events: none; }
.dotnav, .playpause { position: relative; height: 56px; }
.g-ctl .glass { position: absolute; z-index: -1; left: 50%; top: 50%; width: 100%; height: 100%; translate: -50% -50%;
  border-radius: 28px; background: var(--ctl); -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); }
.g-ctl { isolation: isolate; }
.dotnav, .playpause { isolation: isolate; }
.dotnav { --dot-w: 48px; display: flex; align-items: center; justify-content: flex-end;
  width: calc(24px + var(--dot-w) + var(--n, 3) * 24px); padding: 0 24px; }
.dots { display: flex; gap: 16px; margin: 0; padding: 0; list-style: none; }
.dots li { display: flex; }
.dot { position: relative; width: calc(8px + var(--k, 0) * (var(--dot-w) - 8px)); height: 8px; border-radius: 4px; overflow: hidden; background: var(--dot); }
.dot::before { content: ""; position: absolute; inset: -18px -6px; }
.dot .fill { position: absolute; inset: 0 auto 0 0; width: var(--dot-w); border-radius: inherit; background: var(--dot-on);
  translate: calc(-7px - var(--dot-w)) 0; }
.playpause { width: 56px; display: grid; place-items: center; }
.playpause .glass { transition: background-color .1s linear; }
.playpause:hover .glass { background: var(--ctl-hover); }
.playpause .ico { width: 26px; height: 26px; fill: currentColor; stroke: none; }

/* ---------- Viewer: pills that open into cards beside a Mac ---------- */
.viewer { --pad: clamp(48px, 6.25vw, 90px); height: 760px; color: var(--ink); }
[data-theme="dark"] .viewer { color: #fff; }
/* Closed, the Mac sits right of centre; open, it shrinks toward the right so the card never covers it. */
.stage { position: absolute; inset: 0; pointer-events: none; transform-origin: 86% 50%; transition: scale .6s var(--pill), translate .6s var(--pill); }
.viewer.active .stage { scale: .78; }
.stage > img { position: absolute; top: calc(50% - 13px); left: 68%; width: 51%; height: auto; translate: -50% -51.5%;
  opacity: 0; transition: opacity .2s var(--inout); }
.stage > img.on { opacity: 1; }
@media (min-width: 834px) and (max-width: 1200px) { .viewer.active .stage { translate: 6vw 0; } }
.dock { position: absolute; z-index: 1; left: var(--pad); top: 50%; translate: 0 -50%; }
.pills { --card-w: min(423px, 100vw - 2 * var(--pad)); position: relative; display: grid; justify-items: start; gap: 12px; margin: 0; padding: 0; list-style: none; }
.pills li { position: relative; overflow: clip; border-radius: 28px; background: var(--chip); }
.pills:not(.in) > li { opacity: 0; }
.pills .head { display: flex; align-items: center; gap: 14px; height: 56px; padding: 0 30px 0 14px;
  font-size: 19px; font-weight: 600; letter-spacing: -.022em; white-space: nowrap;
  transition: opacity .4s var(--inout) .35s; }
.pills .head .ico { width: 26px; height: 26px; padding: 3px; border: 1.5px solid currentColor; border-radius: 50%; stroke-width: 2.4; }
.pills .head span { transform-origin: 0 50%; transition: scale .4s var(--inout) .35s; }
.pills .open .head { position: absolute; top: 0; left: 0; opacity: 0; visibility: hidden; transition: none; }
.pills .open .head span { scale: .8; transition: none; }
.pills .body { position: absolute; top: 0; left: 0; width: var(--card-w); margin: 0; padding: 28px; font-size: 19px; line-height: 1.4;
  letter-spacing: -.022em; outline: none; opacity: 0; visibility: hidden; translate: 0 28px;
  transition: opacity .3s var(--inout), translate .4s var(--inout), visibility 0s .3s; }
.pills .open .body { position: static; opacity: 1; visibility: visible; translate: 0 0;
  transition: opacity .6s var(--inout) .25s, translate .4s var(--inout); }
.pills b { font-weight: 600; }
.steps { position: absolute; z-index: 1; top: 50%; left: calc(var(--pad) / 2 - 18px); translate: 0 -50%; display: grid; gap: 28px; visibility: hidden; transition: visibility 0s .15s; }
.step, .shut { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--chip); scale: 0;
  transition: scale .15s cubic-bezier(.42, 0, 1, 1); }
.step::after, .shut::after { content: ""; position: absolute; inset: -4px; }
.step { position: relative; }
.step:disabled { opacity: .36; cursor: default; }
.shut { position: absolute; z-index: 1; top: 20px; right: 20px; visibility: hidden; translate: 0 120px;
  transition: scale .15s cubic-bezier(.42, 0, 1, 1), translate 0s .15s, visibility 0s .15s; }
.viewer.active .steps, .viewer.active .shut { visibility: visible; }
.viewer.active .steps { transition: none; }
.viewer.active .step, .viewer.active .shut { scale: 1; transition: scale .5s var(--pop); }
.viewer.active .shut { translate: 0 0; transition: scale .5s var(--pop), translate .6s var(--pill); }
.swatches { display: flex; justify-content: center; gap: 14px; margin-top: 18px; }
.swatch { width: 34px; height: 34px; border-radius: 50%; background: var(--l) center / cover; box-shadow: 0 0 0 1px rgba(0,0,0,.12);
  transition: transform .45s var(--hover), box-shadow .3s var(--ease); }
[data-theme="dark"] .swatch { background-image: var(--d); }
.swatch:hover { transform: scale(1.06); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--page), 0 0 0 4px currentColor; }

/* ---------- Footer ---------- */
.foot { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 110px 20px 70px; }
.foot-icon { width: 72px; height: 72px; filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .18)); }
.foot-name { margin: 14px 0 0; font-size: 40px; font-weight: 700; color: var(--soft-ink); }
.foot-sub { margin: 4px 0 0; font-size: 19px; font-weight: 600; color: var(--soft-ink); }
.makers { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.maker { display: flex; align-items: center; gap: 8px; padding: 5px 16px 5px 5px; border-radius: 999px; text-decoration: none;
  font-size: 15px; font-weight: 600; color: var(--soft-ink); background: var(--tile); transition: transform .5s var(--hover); }
.maker:hover { transform: scale(1.05); }
.maker img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.foot .fine { margin: 28px 0 0; font-size: 12px; color: var(--sub); }

/* ---------- Theme switch ---------- */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) { z-index: 2; }
html.theme-fade *, html.theme-fade *::before { transition: background-color .5s var(--ease), color .5s var(--ease) !important; }

/* ---------- Narrow windows and phones ---------- */
/* Phones: the board becomes two columns; tiles keep their pictures' shape, the hero and its strip full width. */
@media (max-width: 733px) {
  .board { --u: calc(100cqw / 560); aspect-ratio: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .board .tile { position: relative; left: auto; top: auto; width: auto; height: auto; aspect-ratio: 1; }
  /* The hero and its strip stay joined at the seam; wide pictures take the full width so they keep their shape. */
  .board .s-hero, .board .s-hf, .board .s-mw, .board .s-lm, .board .s-rm { grid-column: span 2; }
  .board .s-hero { aspect-ratio: 507 / 352; order: -2; }
  .board .s-hf { aspect-ratio: 507 / 185; order: -1; margin-top: -10px; }
  .board .s-mw { aspect-ratio: 385 / 200; }
  .board .s-lm { aspect-ratio: 330 / 220; }
  .board .s-rm { aspect-ratio: 330 / 245; }
  .board .s-rt { aspect-ratio: 1; }
  .board .s-rb { grid-column: span 2; aspect-ratio: 330 / 175; }
  /* Square tiles pair up; wide ones take a row of their own. */
  .board .s-lt { order: 1; } .board .s-rt { order: 2; } .board .s-lm { order: 3; } .board .s-mn { order: 4; }
  .board .s-lb { order: 5; } .board .s-mw { order: 6; } .board .s-rm { order: 7; } .board .s-rb { order: 8; }
}
@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; align-content: center; gap: 28px; padding-top: 100px; }
}
@media (max-width: 733px) {
  .bar nav { display: none; }
  .bar > .theme { margin-left: auto; }
  .theme { min-width: 44px; min-height: 44px; }
  .hero { height: auto; min-height: 100svh; }
  form.capsule { width: min(300px, 100%); height: 56px; }
  .capsule { font-size: 19px; }
  .intro { padding-top: 80px; }
  .panel { width: calc(100% - 28px); border-radius: 24px; }
  .gallery { height: 540px; }
  .slide-copy { padding: 28px 24px 0; }
  .slide .capsule.small { position: static; margin: 14px 0 0 24px; align-self: flex-start; }
  .slide > img { height: auto; width: 92%; max-width: none; margin: auto auto 100px; }
  .dotnav { --dot-w: 32px; }
  .viewer { height: 640px; }
  .stage > img { top: 32%; left: 50%; width: 100%; }
  .viewer.active .stage { scale: 1; }
  .dock { left: 0; right: 0; top: auto; bottom: 20px; translate: none; }
  .pills { display: flex; gap: 10px; overflow-x: auto; padding: 0 20px; scrollbar-width: none; align-items: flex-end; }
  .pills li { flex: none; }
  .pills .body { font-size: 17px; }
  .steps { display: none; }
  .card-body { padding: 22px 24px 26px; }
}

/* ---------- Reduce Motion: everything lands at once ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation: none !important; }
  .tile { opacity: 1; transform: none; }
  .pills:not(.in) > li { opacity: 1; }
}
