/* ==========================================================================================
   Portfolio stylesheet
   ------------------------------------------------------------------------------------------
   Flat colour only: no gradients anywhere. Depth is a solid ledge under things you can press.
   Greens: pine (ink), emerald (signature), teal, mint, pear (the loud one).
   Type: Mona Sans, with its width axis doing the work, and IBM Plex Mono for domains and stacks.
   ========================================================================================== */

@font-face {
  font-family: "Mona Sans";
  src: url("../fonts/mona-sans-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face { font-family: "Plex Mono"; src: url("../fonts/plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/plex-mono-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

/* ------------------------------------------------------------------------------------------
   Tokens
   ------------------------------------------------------------------------------------------ */

:root {
  color-scheme: only light;

  /* constants: the same in both skins */
  --c-pine: #0c2218;
  --emerald: #12824f;
  --emerald-lo: #0d6b40;
  --teal: #147a6e;
  --mint: #bfe6d3;
  --pear: #d3ee7c;
  --pear-hi: #e0f597;
  --pear-lo: #9db84a;
  --on-dark: #f4f6ee;
  --on-dark-2: #a9c2b3;

  /* the day skin */
  --page: #dde5d9;
  --paper: #f4f6ee;
  --card: #fcfdf9;
  --ink: #0c2218;
  --ink-2: #3f5a4c;
  --line: rgba(12, 34, 24, .16);
  --deep: #0c2218;
  --sea: #1f7fd1;            /* turf.place's sea, SEA in town.js */
  --pine-stage: #0c2218;
  --cart: #143a29;
  --cart-hi: #1b4a35;
  --chip-bg: #e6ecdf;
  --ledge: #0c2218;
  --tab-icon: #12824f;
  --focus: #0c2218;

  --r-stage: clamp(24px, 2.8vw, 40px);
  --r-tile: clamp(20px, 2vw, 28px);
  --gap: clamp(12px, 1.5vw, 22px);
  --page-gap: clamp(10px, 1.5vw, 22px);
  --pad: clamp(20px, 3.6vw, 56px);

  --sans: "Mona Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.3, .7, .3, 1);
}

[data-theme="night"] {
  color-scheme: dark;
  --page: #050f0a;
  --paper: #0e261b;
  --card: #133324;
  --ink: #eaf2e3;
  --ink-2: #a9c2b3;
  --line: rgba(234, 242, 227, .18);
  --deep: #05110b;
  --sea: #124978;            /* the same, mixed halfway to NIGHT as town.js tones it after dark */
  --pine-stage: #143a29;
  --cart: #0c2218;
  --cart-hi: #0a1c14;
  --chip-bg: #1a3f2e;
  --ledge: #000;
  --tab-icon: #d3ee7c;
  --focus: #d3ee7c;
}

/* ------------------------------------------------------------------------------------------
   Base
   ------------------------------------------------------------------------------------------ */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 20px;
  background: var(--page);
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 1.0625rem/1.5 var(--sans);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote, fieldset, legend { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
img, video, canvas, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
kbd { font: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }

/* Every :hover rule sits inside @media (hover: hover). A phone applies :hover on a tap and keeps it
   until the next tap somewhere else, which left buttons lifted and links lit after a touch. */

::selection { background: var(--pear); color: var(--c-pine); }

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: var(--pear); color: var(--c-pine);
  padding: 12px 18px; border-radius: 999px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

.i { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.i .fill { fill: currentColor; stroke: none; }

/* The corner mark. On anything you can open, the diagonal draws in and it becomes an arrow. */
.mark { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: square; stroke-linejoin: miter; }
.mark-d { stroke-dasharray: 16; stroke-dashoffset: 16; transition: stroke-dashoffset .3s var(--ease); }
a:focus-visible > .mark .mark-d, .app-card:focus-within .mark-d { stroke-dashoffset: 0; }
@media (hover: hover) { a:hover > .mark .mark-d, .app-card:hover .mark-d { stroke-dashoffset: 0; } }
.tile > .mark, .stat > .mark, .cta > .mark { position: absolute; top: 18px; right: 18px; }

/* ------------------------------------------------------------------------------------------
   Page frame
   ------------------------------------------------------------------------------------------ */

.page { display: grid; gap: var(--page-gap); padding: var(--page-gap); max-width: 1600px; margin-inline: auto; }
main { display: grid; gap: var(--page-gap); min-width: 0; }

.stage { position: relative; min-width: 0; background: var(--paper); border-radius: var(--r-stage); padding: var(--pad); }
.stage--pine { background: var(--pine-stage); color: var(--on-dark); --focus: #fff; }
.stage--emerald { background: var(--emerald); color: #fff; --focus: #fff; }

.sec-head {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 16px clamp(24px, 4vw, 64px); align-items: end;
  margin-bottom: clamp(26px, 3.6vw, 52px);
}
.sec-title {
  font-weight: 700; font-stretch: 118%;
  font-size: clamp(2.3rem, 5.4vw, 4.7rem); line-height: .96; letter-spacing: -.035em;
  text-wrap: balance;
}
.sec-lede { font-size: clamp(1rem, 1.25vw, 1.2rem); line-height: 1.45; max-width: 46ch; color: var(--ink-2); text-wrap: pretty; }
.stage--pine .sec-lede { color: var(--on-dark-2); }
.stage--emerald .sec-lede { color: #f4fbf7; }
.sec-head > .sec-title:only-child { grid-column: 1 / -1; }      /* no lede beside it: the title has the whole row */
/* A head that stacks (Currently working on, Services): the title has its row, and the lede runs under it
   as wide as the row. Without the class the lede sits beside the title. */
.sec-head--stack { grid-template-columns: minmax(0, 1fr); }
.sec-head--stack .sec-lede { max-width: none; }

/* ------------------------------------------------------------------------------------------
   Buttons, chips
   ------------------------------------------------------------------------------------------ */

.btn {
  --btn-ledge: var(--c-pine);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 20px; border-radius: 999px; border: 2px solid var(--c-pine);
  font-weight: 700; font-size: .98rem; line-height: 1.2; text-decoration: none; white-space: nowrap;
  box-shadow: 0 4px 0 var(--btn-ledge);
  transition: transform .12s var(--ease), box-shadow .12s var(--ease), background-color .15s;
}
@media (hover: hover) { .btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--btn-ledge); } }
.btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--btn-ledge); transition-duration: .04s; }
.btn--pear { background: var(--pear); color: var(--c-pine); }
@media (hover: hover) { .btn--pear:hover { background: var(--pear-hi); } }
.btn--line { background: transparent; color: inherit; border-color: currentColor; --btn-ledge: currentColor; }
.btn--big { padding: 17px 28px; font-size: 1.1rem; }
.btn--small { padding: 8px 14px; font-size: .88rem; box-shadow: 0 3px 0 var(--btn-ledge); }
.stage--pine .btn--pear, .stage--emerald .btn--pear, dialog .btn--pear { border-color: var(--pear); --btn-ledge: var(--pear-lo); }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--ink);
  font-weight: 600; font-size: .95rem; line-height: 1.2; color: var(--ink);
  transition: transform .12s var(--ease), box-shadow .12s var(--ease), background-color .15s, color .15s;
}
.chip span { font: 500 .78rem var(--mono); opacity: .72; }
@media (hover: hover) { .chip:hover { transform: translateY(-2px); box-shadow: 0 3px 0 var(--ledge); } }
.chip:active { transform: translateY(1px); box-shadow: 0 0 0 var(--ledge); }
.chip.is-on { background: var(--ink); color: var(--paper); }

.mini {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px 6px 9px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--paper); color: var(--ink);
  font-size: .82rem; font-weight: 600; line-height: 1.2;
  transition: border-color .15s, background-color .15s, transform .12s var(--ease);
}
.mini .i { width: 14px; height: 14px; }
@media (hover: hover) { .mini:hover { border-color: var(--ink); transform: translateY(-1px); } }
.mini--go { background: var(--pear); border-color: var(--c-pine); color: var(--c-pine); }
@media (hover: hover) { .mini--go:hover { background: var(--pear-hi); border-color: var(--c-pine); } }

.more { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }

.round { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #143a29; color: var(--on-dark); transition: background-color .15s, color .15s; }
@media (hover: hover) { .round:hover { background: var(--pear); color: var(--c-pine); } }

.pressable { transition: transform .16s var(--ease), box-shadow .16s var(--ease); }
@media (hover: hover) {
  .pressable:hover { transform: translateY(-5px); box-shadow: 0 5px 0 var(--ledge); }
}
.pressable:active { transform: translateY(0); box-shadow: 0 0 0 var(--ledge); transition-duration: .04s; }

/* ------------------------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------------------------ */

.hero {
  display: grid;
  grid-template-columns: auto minmax(300px, .78fr) minmax(0, 1.22fr);
  gap: clamp(16px, 2.2vw, 34px);
  min-height: min(880px, calc(100svh - 2 * var(--page-gap)));
  padding-left: clamp(14px, 1.8vw, 26px);
  container-type: inline-size;
}

/* An egg in the corner of the page counts the things on it that are on no menu, as they are found.
   It is meant to be missed: small, and in the page's hairline color until something is found. Each
   find lights the whole egg pear for a moment, and what stays lit is a pear fill that rises from the
   bottom with every one, until the egg is full when they all are. eggs.js sets how full (--fill) and
   the number, which is pine where it sits on the pear. The words "of 11 easter eggs" are kept for
   screen readers only. Once there is one to show, the egg is a button, and the list of what has been
   found hangs under it. */
.eggs-spot { --egg-w: 18px; --egg-h: 22px; --egg-hi: rgba(12, 34, 24, .3); position: absolute; z-index: 6; top: clamp(12px, 1.15vw, 18px); right: var(--pad); }
[data-theme="night"] .eggs-spot { --egg-hi: rgba(234, 242, 227, .3); }
.eggs { --fill: 0; display: flex; padding: 8px; margin: -8px; border-radius: 50%; }      /* a bigger target than the egg, in the same place */
.eggs:disabled { cursor: default; }
.eggs:focus-visible { outline-offset: -4px; }
.eggs-of { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.eggs b, .egg-found b, .eggs-list li b {
  display: grid; place-items: center; width: 23px; height: 28px; padding-top: 3px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: var(--pear); color: var(--c-pine); font: 600 .72rem/1 var(--mono);
}
.eggs b {
  position: relative; isolation: isolate; overflow: hidden;
  width: var(--egg-w); height: var(--egg-h); padding-top: 2px; font-size: .6rem;
  background: var(--line); color: var(--ink-2); transition: background-color .15s, color .15s;
}
/* the fill, and the number again in pine, both cut off above the fill line */
.eggs b::before, .eggs b::after {
  position: absolute; inset: 0; border-radius: inherit;
  clip-path: inset(calc(100% - var(--fill) * 100%) 0 0);
  transition: clip-path .9s var(--ease);
}
.eggs b::before { content: ""; z-index: -1; background: var(--pear); }
.eggs b::after { content: attr(data-n); display: grid; place-items: center; padding-top: inherit; color: var(--c-pine); }
/* pointed at, focused or open, the egg darkens a little and keeps its fill */
.eggs:focus-visible b, .eggs[aria-expanded="true"] b { background-color: var(--egg-hi); color: var(--ink); }
@media (hover: hover) { .eggs-spot:hover .eggs b { background-color: var(--egg-hi); color: var(--ink); } }
.eggs-list {
  position: absolute; top: calc(100% + 11px); right: calc(var(--egg-w) / 2 - 20px); width: max-content; min-width: 200px; max-width: min(300px, calc(100vw - 2 * var(--pad) - 2 * var(--page-gap)));
  padding: 11px 15px 12px 13px; border-radius: 16px;
  background: var(--c-pine); color: var(--on-dark); border: 1.5px solid var(--pear);
  box-shadow: 0 3px 0 rgba(6, 19, 13, .5);
  font: 500 .8rem/1.35 var(--mono); text-align: left; color-scheme: dark;
  opacity: 0; scale: .95; transform-origin: calc(100% - 20px) 0;
  transition: opacity .12s, scale .14s var(--ease);
}
.eggs-list[hidden] { display: none; }
.eggs-list.is-on { opacity: 1; scale: 1; }
.eggs-list::after {
  content: ""; position: absolute; top: -7px; right: 13px; width: 11px; height: 11px;
  background: var(--c-pine); border: solid var(--pear); border-width: 0 1.5px 1.5px 0; rotate: 225deg;
}
.eggs-list-head { margin-bottom: 8px; font-weight: 600; color: var(--pear); }
.eggs-list ol { display: grid; gap: 6px; }
.eggs-list li { display: flex; align-items: center; gap: 10px; }
.eggs-list li b { flex: none; width: 19px; height: 23px; padding-top: 2px; font-size: .64rem; }
.eggs-list-more { margin-top: 9px; padding-top: 8px; border-top: 1px solid rgba(244, 246, 238, .14); color: var(--on-dark-2); }
.eggs-list-more:empty { display: none; }
/* When one is found the egg jumps, here and in the note that comes down to say so. The one in the
   corner lights up as it jumps and goes quiet again a couple of seconds later. */
@keyframes egg-jump {
  30% { scale: 1.5; rotate: -12deg; }
  55% { scale: .88; rotate: 8deg; }
  78% { scale: 1.1; rotate: -3deg; }
}
@keyframes egg-lit { 0%, 70% { background-color: var(--pear); color: var(--c-pine); } }
.egg-found.is-on b { animation: egg-jump .7s var(--ease); }
.eggs.is-new b { animation: egg-jump .7s var(--ease), egg-lit 2.8s; }

.rail { display: flex; flex-direction: column; align-items: center; gap: clamp(14px, 3vh, 34px); padding-block: 4px; }
.rail a {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-weight: 600; font-size: .95rem; text-decoration: none;
  padding: 8px 3px; border-radius: 8px; transition: color .15s;
}
.rail a:first-child { margin-top: auto; }
.rail a:last-of-type { margin-bottom: auto; }
.rail a[aria-current="true"] { color: var(--emerald); }
@media (hover: hover) { .rail a:hover { color: var(--emerald); } }
[data-theme="night"] .rail a[aria-current="true"] { color: var(--pear); }
@media (hover: hover) { [data-theme="night"] .rail a:hover { color: var(--pear); } }
.rail .skin { margin-top: 0; }

.skin { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; transition: background-color .15s, color .15s; }
@media (hover: hover) { .skin:hover { background: var(--ink); color: var(--paper); } }
.skin .i { width: 19px; height: 19px; }
.skin .i-sun { display: none; }
[data-theme="night"] .skin .i-sun { display: block; }
[data-theme="night"] .skin .i-moon { display: none; }

/* The folder-tab card. Three flat pieces: a body, a raised block, and a fillet in the inside corner.
   The fillet is an SVG that runs a little way under its neighbours, so no hairline shows between them
   at odd zoom levels. */
.about {
  --notch-w: 40%;
  --notch-h: 58px;
  --r: var(--r-tile);
  --focus: #fff;
  position: relative; isolation: isolate; min-width: 0;
  display: flex; flex-direction: column;
  padding: 28px clamp(20px, 2.2vw, 32px) clamp(20px, 2.2vw, 30px);
  color: #fff;
  container-type: inline-size;
}
.about::before {
  content: ""; position: absolute; z-index: -1; inset: var(--notch-h) 0 0;
  background: var(--emerald); border-radius: var(--r) 0 var(--r) var(--r);
}
.about::after {
  content: ""; position: absolute; z-index: -1; top: 0; right: 0; left: var(--notch-w);
  height: calc(var(--notch-h) + var(--r));
  background: var(--emerald); border-radius: var(--r) var(--r) 0 0;
}
.about-fillet {
  position: absolute; z-index: -1;
  left: calc(var(--notch-w) - var(--r)); top: calc(var(--notch-h) - var(--r));
  width: var(--r); height: var(--r);
  overflow: visible; fill: var(--emerald);
}
.about-tab {
  position: absolute; top: 15px; left: 4px;
  display: flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: 1rem; color: var(--ink);
}
.about-tab svg { width: 15px; height: 15px; fill: var(--tab-icon); }

.portrait { position: relative; flex: none; width: min(64%, 300px, 34vh); aspect-ratio: 1; margin: 0 4% 0 auto; }
.portrait-ring { position: absolute; inset: -5%; translate: -8% 3%; border: 4px solid #fff; border-radius: 50%; }
.portrait-disc { position: absolute; inset: 0; border-radius: 50%; background: var(--pear); }
.portrait-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.portrait--cutout { margin-top: 11%; }
.portrait-cut { position: absolute; left: 0; right: 0; bottom: 0; height: 124%; overflow: hidden; border-radius: 0 0 50% 50% / 0 0 40.32% 40.32%; }
.portrait-cut img { position: absolute; bottom: 0; left: 50%; translate: -50% 0; height: 100%; width: auto; max-width: none; }

/* "I'm," and the name. The name is 0.6 of the wordmark's size at every width, so the wordmark leads. It
   is a share of the card's width (cqw), and the card is a different width against the wordmark in each
   layout: 21.4cqw here, 12.5 under 1100px, 13.4 under 760px. Should the wordmark's 19.74cqw change, scale
   all three by the same factor. "I'm," is half the name, and never under 20px. */
.about-name { position: relative; display: flex; flex-direction: column; margin-top: -14px; line-height: .92; font-size: 21.4cqw; }
.about-hi { font-weight: 300; font-size: max(.5em, 1.25rem); letter-spacing: -.02em; }
.about-me { font-weight: 700; font-stretch: 118%; letter-spacing: -.04em; margin-left: -.045em; }
.about-intro { margin-top: 16px; max-width: 33ch; font-size: 1.02rem; line-height: 1.45; color: #f4fbf7; text-wrap: pretty; }

.about-foot { margin-top: auto; padding-top: 22px; display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; }
.about-reach { min-width: 0; }
.about-mail {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 .93rem var(--mono); color: #fff;
  padding: 4px 0 7px; border-bottom: 1.5px dashed rgba(255, 255, 255, .8);
  transition: border-color .15s, color .15s;
}
@media (hover: hover) { .about-mail:hover { color: var(--pear); border-bottom-color: var(--pear); border-bottom-style: solid; } }
.about-links { display: flex; gap: 16px; margin-top: 12px; font-size: .9rem; font-weight: 600; }
.about-links a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
@media (hover: hover) { .about-links a:hover { color: var(--pear); } }
.about-links .i { width: 15px; height: 15px; }

.seal { display: block; flex: none; width: clamp(86px, 27cqw, 124px); aspect-ratio: 1; border-radius: 50%; transition: transform .2s var(--ease); }
@media (hover: hover) { .seal:hover { transform: scale(1.06); } }
.seal svg { width: 100%; height: 100%; overflow: visible; }
/* On a narrow card the email and the seal do not fit side by side: the seal crowded the card's edge on a
   375px phone and ran out of the card on a 320. Here the email takes the whole first row, and the seal
   sits beside GitHub. */
@container (max-width: 289px) {
  .about-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 0 14px; }
  .about-reach { display: contents; }
  .about-mail { grid-column: 1 / -1; justify-self: start; }
  .seal { grid-column: 2; grid-row: 2; margin-top: 12px; }
}
.seal-bg { fill: var(--c-pine); }
.seal-text { font: 600 10.4px var(--sans); font-stretch: 112%; letter-spacing: .05em; fill: var(--pear); }
.seal-dot { fill: #fff; }
.seal-spin { transform-origin: 60px 60px; }

/* one column, which a word too wide for it cannot stretch: the tiles under the word keep their places */
.hero-main { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: clamp(12px, 1.7vw, 26px); min-width: 0; container-type: inline-size; }

/* The word at the top ($letters in index.php) and its corner mark span the width they are given, less a
   hair, at every screen size: the font size is a share of that width (cqw), set for the word. For another
   word, multiply the share by the old word's width over the new one's, both at the same size. BUILDRY is
   6% wider than Portfolio was, so 20.9 became 19.74. The name in the About card is sized against this
   (see .about-name), so it moves with it. */
.wordmark {
  display: flex; align-items: flex-start;
  margin: 0 0 0 -.05em; padding-top: .03em;
  font-weight: 800; font-size: 19.74cqw; line-height: .8; letter-spacing: -.025em; white-space: nowrap;
  color: var(--ink); cursor: default; user-select: none; -webkit-user-select: none;
}
.wordmark [data-l] { display: inline-block; font-variation-settings: "wdth" var(--wd, 125), "wght" var(--wg, 800); }
.wordmark .wordmark-tail { color: var(--emerald); }   /* the last letters ($greenTail in index.php): the About card's green, in both skins */
.wordmark-mark { width: .2em; height: .2em; margin: .03em 0 0 .07em; flex: none; fill: none; stroke: currentColor; stroke-width: 2.7; stroke-linecap: butt; stroke-linejoin: miter; }

.hero-grid {
  display: grid; min-height: 0;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: minmax(210px, 1.5fr) minmax(184px, 1fr);
  gap: var(--gap);
  --tab-out: 10px;   /* how far the tab on each game tile ("Click to bomb") stands up out of it */
}
.tile { position: relative; min-width: 0; border-radius: var(--r-tile); }

.film { grid-column: span 9; overflow: hidden; background: #06130d; --focus: #fff; container-type: inline-size; }
.film-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .55s ease; }
.film-video.is-on { opacity: 1; }
.film-play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: clamp(54px, 11cqw, 76px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; color: var(--c-pine);
  box-shadow: 0 5px 0 var(--c-pine);
  transition: transform .14s var(--ease), box-shadow .14s var(--ease), background-color .15s;
}
@media (hover: hover) { .film-play:hover { transform: translateY(-3px); box-shadow: 0 8px 0 var(--c-pine); background: var(--pear); } }
.film-play:active { transform: translateY(5px); box-shadow: 0 0 0 var(--c-pine); }
.film-play .i { width: 44%; height: 44%; margin-left: 7%; }
.film-now {
  position: absolute; left: 14px; bottom: 34px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 10px; border-radius: 999px;
  background: #fff; color: var(--c-pine); font: 500 .78rem var(--mono);
}
.film-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); }
.film-pause {
  position: absolute; right: 14px; bottom: 34px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(6, 19, 13, .78); color: #fff;
}
@media (hover: hover) { .film-pause:hover { background: var(--c-pine); } }
.film-pause .i { width: 15px; height: 15px; }
.film-pause .i-play, .film-pause[aria-pressed="true"] .i-pause { display: none; }
.film-pause[aria-pressed="true"] .i-play { display: block; }
.film-bars {
  position: absolute; left: 14px; right: 14px; bottom: 10px;
  display: flex; gap: 5px; padding: 0 9px; border-radius: 999px; background: rgba(6, 19, 13, .78);
}
.film-bars button { flex: 1; height: 16px; display: flex; align-items: center; }
.film-bars i { position: relative; display: block; width: 100%; height: 4px; border-radius: 2px; overflow: hidden; background: rgba(255, 255, 255, .34); }
.film-bars i::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
@media (hover: hover) { .film-bars button:hover i { background: rgba(255, 255, 255, .6); } }
.film > .mark { color: #fff; filter: drop-shadow(0 1px 0 rgba(6, 19, 13, .7)); }

.stats { grid-column: span 3; display: grid; grid-template-rows: 1fr 1fr; overflow: hidden; container-type: inline-size; }
.stat {
  position: relative; display: flex; flex-direction: column; justify-content: center; gap: 2px;
  padding: 12px 18px; text-decoration: none; color: var(--c-pine); --focus: var(--c-pine);
  transition: background-color .2s;
}
.stat:focus-visible { outline-offset: -5px; }
.stat--mint { background: var(--mint); }
@media (hover: hover) { .stat--mint:hover { background: #d0efdf; } }
.stat--teal { background: var(--teal); color: #fff; --focus: #fff; }
@media (hover: hover) { .stat--teal:hover { background: #17897b; } }
.stat-n { font-weight: 700; font-stretch: 125%; font-size: clamp(2rem, 27cqw, 3.5rem); line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stat-l { font-weight: 500; font-size: clamp(.84rem, 9.6cqw, 1.08rem); line-height: 1.2; }

/* The two game tiles. Each is a canvas with a count, a line of commentary and a link to the real game. */
.boom { grid-column: span 5; min-height: 150px; background: var(--deep); cursor: crosshair; touch-action: pan-y; --focus: var(--pear); }
.boom:focus-visible { outline-offset: -4px; }
/* The two games round their own corners, and the tiles they sit in cut nothing off: the tab that says
   they can be played stands half out of the top edge. */
.boom canvas, .snake canvas { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; }
.boom-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

/* That tab: it says how to play the game. It sits on the edge, clear of the board,
   the count and the commentary, and every click and touch goes straight through it. */
.play-tab {
  position: absolute; z-index: 1; top: calc(-1 * var(--tab-out)); left: 16px;
  padding: 4px 9px 5px; border-radius: 999px;
  background: var(--pear); color: var(--c-pine);
  font: 600 .68rem/1 var(--mono); white-space: nowrap; pointer-events: none;
}
.play-tab i { font-style: normal; }
.play-tab .by-touch { display: none; }
@media (hover: none) {
  .play-tab .by-mouse { display: none; }
  .play-tab .by-touch { display: inline; }
}
.js .boom-still { display: none; }

.duo { grid-column: span 7; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 3fr); background: var(--deep); --focus: #fff; }
@supports (grid-template-columns: subgrid) {
  /* on the hero's own column lines, so the button sits exactly under the two numbers above it */
  .duo { grid-template-columns: subgrid; }
  .duo .snake { grid-column: span 4; }
  .duo .cta { grid-column: span 3; }
}
.snake { position: relative; min-height: 150px; border-radius: var(--r-tile); cursor: crosshair; touch-action: pan-y; container-type: inline-size; }
@container (max-width: 214px) { .game-link span { display: none; } }
.game-score { position: absolute; top: 13px; left: 18px; font: 500 .8rem var(--mono); color: var(--mint); pointer-events: none; }
.game-link { position: absolute; top: 11px; right: 16px; display: inline-flex; align-items: center; gap: 7px; padding: 2px 0; font: 500 .76rem var(--mono); color: var(--mint); text-decoration: none; }
@media (hover: hover) { .game-link:hover { color: var(--pear); } }
.game-link .mark { width: 10px; height: 10px; }
.game-msg { position: absolute; left: 18px; right: 14px; bottom: 12px; font: 400 .76rem var(--mono); color: var(--on-dark-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.cta {
  position: relative; display: flex; flex-direction: column; justify-content: center; gap: 8px;
  padding: 18px 22px; border-radius: var(--r-tile);
  background: var(--pear); color: var(--c-pine); text-decoration: none;
  --focus: var(--c-pine); container-type: inline-size;
  transition: background-color .2s;
}
.cta:focus-visible { outline-offset: -6px; }
@media (hover: hover) { .cta:hover { background: var(--pear-hi); } }
.cta-k { max-width: 17ch; font-size: .9rem; font-weight: 500; line-height: 1.25; padding-right: 18px; }
.cta-t { font-weight: 700; font-stretch: 120%; font-size: clamp(1.45rem, 15.5cqw, 2.4rem); line-height: .98; letter-spacing: -.035em; }

/* ------------------------------------------------------------------------------------------
   Work
   ------------------------------------------------------------------------------------------ */

.filters { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }

.apps { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.app { grid-column: span 3; min-width: 0; }
.app--l { grid-column: span 6; }
.app--m { grid-column: span 4; }
.apps:not([data-filter="all"]) .app { grid-column: span 4; }
/* With the script, Work opens on its first five apps ($firstApps in index.php) and "Load more" brings in
   the rest a few full rows at a time (site.js). A filter shows every app of its kind. Without the
   script every app is there and there is no button. */
.js .apps[data-filter="all"] > .is-later { display: none; }
.apps-more { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: clamp(28px, 3.2vw, 44px); }
html:not(.js) .apps-more { display: none; }
.apps-more-n { font: 500 .8rem var(--mono); opacity: .72; }

.app-card {
  position: relative; height: 100%; display: flex; flex-direction: column;
  padding: 10px 10px 6px; border-radius: calc(var(--r-tile) - 2px);
  background: var(--card); border: 1.5px solid var(--line);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s;
}
@media (hover: hover) {
  .app-card:hover { transform: translateY(-6px); box-shadow: 0 6px 0 var(--c); border-color: var(--ink); }
  .app-card:hover .app-art img { transform: scale(1.035); }
}
.app-card:focus-within { border-color: var(--ink); }
.app-art { position: relative; display: block; overflow: hidden; border-radius: calc(var(--r-tile) - 11px); aspect-ratio: 1200 / 630; background: var(--c); }
.app-art video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s ease; }
.app-art video.is-on { opacity: 1; }
.app-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.app-txt { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 14px 10px 12px; }
.app-title { display: flex; align-items: center; gap: 10px; font-size: 1.16rem; font-weight: 700; font-stretch: 112%; line-height: 1.15; letter-spacing: -.015em; }
.app--l .app-title { font-size: 1.5rem; }
.app--m .app-title { font-size: 1.28rem; }
.app-title .mark { margin-left: auto; color: var(--ink-2); }
.app-title--long { font-size: 1rem; font-stretch: 100%; letter-spacing: -.01em; }
.app-ico { width: 26px; height: 26px; flex: none; border-radius: 7px; }
.app-ico--letter { display: grid; place-items: center; background: var(--c); color: var(--c-pine); font: 600 .88rem var(--mono); }
.app-link { text-decoration: none; overflow-wrap: break-word; min-width: 0; }
.app-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.app-link:focus-visible { outline: none; }
.app-link:focus-visible::after { outline: 3px solid var(--focus); outline-offset: 3px; }
.app-domain { font: 400 .8rem var(--mono); color: var(--ink-2); }
.app-blurb { font-size: .95rem; line-height: 1.42; color: var(--ink-2); text-wrap: pretty; }
.app--l .app-blurb { font-size: 1.04rem; max-width: 52ch; }
.app-stack { margin-top: auto; padding-top: 8px; font: 400 .75rem var(--mono); color: var(--ink-2); }
.app-acts { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

/* ------------------------------------------------------------------------------------------
   Play
   ------------------------------------------------------------------------------------------ */

.arcade { display: grid; grid-template-columns: minmax(250px, .72fr) minmax(0, 2fr); gap: var(--gap); align-items: start; }
.carts-col { display: grid; gap: 18px; min-width: 0; }
.carts-hint { padding-left: 4px; font-size: .86rem; color: var(--on-dark-2); }
.carts-hint kbd { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border: 1.5px solid currentColor; border-radius: 6px; font: 500 .72rem var(--mono); }
.carts { display: grid; gap: 8px; }
.cart {
  display: grid; grid-template-columns: auto auto minmax(0, 1fr); grid-template-areas: "k i t" "k i s";
  align-items: center; column-gap: 12px; row-gap: 1px;
  padding: 11px 14px; border-radius: 18px;
  background: var(--cart); color: var(--on-dark); text-decoration: none;
  transition: background-color .15s, color .15s, transform .12s var(--ease);
}
.cart kbd { grid-area: k; width: 22px; height: 22px; display: grid; place-items: center; border: 1.5px solid currentColor; border-radius: 6px; font: 500 .74rem var(--mono); opacity: .7; }
.cart img { grid-area: i; width: 30px; height: 30px; border-radius: 8px; }
.cart-t { grid-area: t; font-weight: 700; font-stretch: 112%; font-size: 1.02rem; line-height: 1.2; }
.cart-s { grid-area: s; font-size: .84rem; line-height: 1.25; color: var(--on-dark-2); }
@media (hover: hover) { .cart:hover { background: var(--cart-hi); } }
.cart.is-on { background: var(--pear); color: var(--c-pine); }
.cart.is-on .cart-s { color: #35513f; }
.cart:active { transform: scale(.985); }

.screen { display: grid; gap: 4px; padding: 12px; border-radius: var(--r-tile); background: var(--cart); }
.screen-view { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: calc(var(--r-tile) - 10px); background: #000; }
.screen-view img, .screen-view video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.screen-view video { opacity: 0; transition: opacity .4s ease; }
.screen-view video.is-on { opacity: 1; }
.screen-info { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px clamp(20px, 3vw, 44px); padding: 20px 14px 12px; }
.screen-title { font-weight: 700; font-stretch: 118%; font-size: clamp(1.6rem, 2.6vw, 2.4rem); line-height: 1; letter-spacing: -.03em; }
.screen-tag { margin-top: 9px; font: 500 .88rem var(--mono); color: var(--pear); }
.screen-blurb { margin-top: 12px; max-width: 52ch; line-height: 1.5; color: #c9dbcf; text-wrap: pretty; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid rgba(244, 246, 238, .18); font-size: .92rem; }
.facts dt { color: var(--on-dark-2); }
.facts dd { font: 500 .86rem var(--mono); text-align: right; }
.screen-acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; padding-bottom: 6px; }

/* ------------------------------------------------------------------------------------------
   Currently working on
   ------------------------------------------------------------------------------------------ */

/* Each update is a head (whose it is, when, what), a film or a picture, a few words, and the one thing
   it asks: the question, the picks, a line under them, and the note box. The form lays out nothing
   itself (display: contents), so each part of the question takes its own place in the card's grid and
   can line up with the film and the words. An update without one of the parts closes up around it.

   A phone stacks it all in reading order. From 900px the film and the words share a row, and the
   question runs across the card under them. From 1200px an update with a wide film and four picture
   picks (index.php says which: .now-card--side) puts the picks beside the film instead: the question on
   the title's line, the picks exactly as tall as the film, the line under them level with the words,
   and the note box under that line, by the picks. A pick never changes the height of a pick, so nothing
   on the card moves when one is made. */
.now-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; --now-gap: clamp(28px, 3.4vw, 56px); }
.now-card + .now-card { margin-top: clamp(40px, 5vw, 72px); padding-top: clamp(40px, 5vw, 72px); border-top: 1.5px solid rgba(244, 246, 238, .16); }
.now-card > *, .ask > * { min-width: 0; }
/* the room above each part */
.now-media, .now-words { margin-top: 22px; }
.ask-q, .ask--note .ask-more { margin-top: 36px; }
.ask-picks { margin-top: 16px; }
.ask-after { margin-top: 14px; }
.ask-more { margin-top: 26px; }

.now-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 14px; font: 500 .84rem var(--mono); color: var(--on-dark-2); }
.now-meta img { width: 22px; height: 22px; border-radius: 6px; }
.now-meta span { color: var(--on-dark); }
.now-meta span + time::before { content: "·"; margin-right: 10px; }
.now-title { font-weight: 700; font-stretch: 118%; font-size: clamp(1.7rem, 3.2vw, 2.7rem); line-height: 1; letter-spacing: -.03em; text-wrap: balance; }

.now-media { position: relative; overflow: hidden; max-height: 80vh; border-radius: var(--r-tile); background: #000; }
.now-media img, .now-media video { width: 100%; height: 100%; object-fit: contain; }
.now-play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: clamp(58px, 7vw, 84px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--pear); color: var(--c-pine);
  box-shadow: 0 5px 0 var(--c-pine);
  transition: transform .14s var(--ease), box-shadow .14s var(--ease), background-color .15s;
}
@media (hover: hover) { .now-play:hover { transform: translateY(-3px); box-shadow: 0 8px 0 var(--c-pine); background: var(--pear-hi); } }
.now-play:active { transform: translateY(5px); box-shadow: 0 0 0 var(--c-pine); }
.now-play .i { width: 44%; height: 44%; margin-left: 7%; }
html:not(.js) .now-play { display: none; }

.now-words { display: grid; gap: 14px; align-content: start; }
.now-words p { max-width: 62ch; font-size: 1.04rem; line-height: 1.55; color: #c9dbcf; text-wrap: pretty; }
.now-words .now-link a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--pear); text-decoration: none; }
.now-link .mark { width: 12px; height: 12px; }
@media (hover: hover) { .now-words .now-link a:hover { text-decoration: underline; text-underline-offset: 4px; } }

/* The question. A pick goes the moment it is made, the bars then show how everyone picked, and the
   note box opens under it all. The picks look like the game picker in Play: a pear one is yours. */
.ask { display: contents; }
.ask-q { font-weight: 700; font-stretch: 112%; font-size: clamp(1.3rem, 2vw, 1.65rem); line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; }
.ask-picks { container: picks / inline-size; }
.ask-choices { display: flex; flex-wrap: wrap; gap: 10px; }
/* Picture picks go two across, and with 800px of room the whole set takes one row (three across for five
   or six), each at 340px at most. */
.ask-choices--pictures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; --cols: 4; }
.ask-choices--1 { --cols: 1; }
.ask-choices--2 { --cols: 2; }
.ask-choices--3, .ask-choices--5, .ask-choices--6 { --cols: 3; }
@container picks (min-width: 800px) {
  .ask-choices--pictures { grid-template-columns: repeat(var(--cols), minmax(0, 340px)); }
}
/* words-only picks are a row of pills, and once the bars show, one under another */
.ask.is-answered .ask-choices:not(.ask-choices--pictures), .ask[data-results="always"] .ask-choices:not(.ask-choices--pictures) { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 640px; }
.ask-choice {
  position: relative; display: flex; flex-direction: column; gap: 3px; min-width: 0;
  padding: 11px 18px; border-radius: 999px;
  background: var(--cart); color: var(--on-dark); text-align: left;
  transition: background-color .15s, color .15s, transform .12s var(--ease);
}
.ask.is-answered .ask-choices:not(.ask-choices--pictures) .ask-choice, .ask[data-results="always"] .ask-choices:not(.ask-choices--pictures) .ask-choice { border-radius: 16px; }
.ask-choices--pictures .ask-choice { gap: 4px; padding: 8px 8px 12px; border-radius: 18px; }
@media (hover: hover) { .ask-choice:hover { background: var(--cart-hi); transform: translateY(-2px); } }
.ask-choice:active { transform: scale(.985); }
.ask-choice[aria-pressed="true"] { background: var(--pear); color: var(--c-pine); }
.ask-choice img { width: 100%; height: auto; aspect-ratio: var(--ratio, 16 / 9); margin-bottom: 6px; border-radius: 11px; object-fit: cover; background: #000; }
.ask-label { display: flex; align-items: center; gap: 8px; font-weight: 700; font-stretch: 108%; font-size: 1rem; line-height: 1.2; }
.ask-choices--pictures .ask-label, .ask-choices--pictures .ask-foot { padding-inline: 4px; }
.ask-n { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border: 1.5px solid currentColor; border-radius: 6px; font: 500 .78rem var(--mono); opacity: .8; }
.ask-foot { display: grid; grid-template-columns: minmax(0, 1fr); }
.ask-line { font-size: .84rem; line-height: 1.3; color: var(--on-dark-2); }
.ask-choice[aria-pressed="true"] .ask-line { color: #35513f; }
.ask-result { display: none; align-items: center; gap: 8px; margin-top: 6px; font: 500 .78rem/1.3 var(--mono); }
.ask.is-answered .ask-result, .ask[data-results="always"] .ask-result { display: flex; }
/* A picture pick keeps its height when the bars show: its line and its result share one place, and the
   result takes it over once there is one to show. When the results show from the start, the two stack. */
.ask-choices--pictures .ask-foot { align-items: start; }
.ask-choices--pictures .ask-foot > * { grid-area: 1 / 1; }
.ask-choices--pictures .ask-result { display: flex; margin-top: 0; visibility: hidden; }
.ask.is-answered .ask-choices--pictures .ask-result, .ask[data-results="always"] .ask-choices--pictures .ask-result { visibility: visible; }
.ask[data-results="after"].is-answered .ask-choices--pictures .ask-line { visibility: hidden; }
.ask[data-results="always"] .ask-choices--pictures .ask-foot { gap: 6px; }
.ask[data-results="always"] .ask-choices--pictures .ask-foot > * { grid-area: auto; }
.ask-bar { position: relative; flex: 1; height: 6px; overflow: hidden; border-radius: 3px; background: rgba(244, 246, 238, .16); }
.ask-bar::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--share, 0%); border-radius: inherit; background: var(--mint); transition: width .6s var(--ease); }
.ask-choice[aria-pressed="true"] .ask-bar { background: rgba(12, 34, 24, .16); }
.ask-choice[aria-pressed="true"] .ask-bar::before { background: var(--c-pine); }
.ask-mine { display: none; padding: 1px 7px; border-radius: 999px; background: var(--c-pine); color: var(--pear); font-size: .7rem; line-height: 1.3; }
.ask.is-answered .ask-choice[aria-pressed="true"] .ask-mine { display: inline; }
.ask.is-busy .ask-choice, .ask.is-busy .ask-box .btn { cursor: progress; }

/* the line under the picks: how to answer, then what happened */
/* the answer and "Changed your mind?" share one line, on one baseline; a narrow card wraps the second under */
.ask-after { display: flex; flex-wrap: wrap; align-items: baseline; align-content: start; gap: 4px 10px; }
.ask-status { font-size: .95rem; line-height: 1.45; color: var(--on-dark-2); }
.ask.is-answered .ask-status { color: var(--pear); font-weight: 600; }
.ask-change { font-size: .86rem; line-height: 1.45; color: var(--on-dark-2); }
.ask:not(.is-answered) .ask-change { display: none; }

/* The note box: its label, then one bar across the card with Send inside it at the bottom right (under it
   on a phone), and a line for "Sent", which takes no room until it has something to say. The bar starts
   two lines tall and grows with what is written, where the browser can (field-sizing), up to ten lines. */
.ask-more { display: grid; }
.ask-note-q { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 12px; font-weight: 600; font-size: 1.02rem; }
.ask-opt { font: 500 .74rem var(--mono); color: var(--on-dark-2); }
/* with nothing to pick, the box's label is the question, and looks like one */
.ask--note .ask-note-q { margin-bottom: 16px; font-weight: 700; font-stretch: 112%; font-size: clamp(1.3rem, 2vw, 1.65rem); line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; }
.ask-box { position: relative; }
.ask-box textarea {
  display: block; width: 100%; min-height: 84px; max-height: calc(10lh + 32px); resize: none; field-sizing: content;
  padding: 14px 104px 14px 18px; border-radius: 18px; border: 2px solid transparent;
  background: var(--cart); color: var(--on-dark); font: inherit; line-height: 1.45;
}
.ask-box textarea:focus { outline: none; border-color: var(--on-dark); }
.ask-box .btn { position: absolute; right: 12px; bottom: 12px; }
.ask-sent { margin-top: 10px; font-size: .95rem; font-weight: 600; color: var(--pear); }
.ask-sent:empty { margin-top: 0; }
.ask-sent:focus { outline: none; }
/* Once a note is sent the box goes, and the thanks stays in its place: one note each. A question that is
   only a box keeps its question. */
.ask-more.is-noted .ask-box, .ask:not(.ask--note) .ask-more.is-noted .ask-note-q { display: none; }
.ask-more.is-noted .ask-sent { margin-top: 0; }
.now-card .ask:not(.ask--note) .ask-more.is-noted { margin-top: 12px; }
@media (max-width: 599px) {
  .ask-box { display: grid; gap: 12px; }
  .ask-box textarea { padding-right: 18px; }
  .ask-box .btn { position: static; justify-self: start; }
}

/* for bots only: a box nobody sees, which a person leaves empty (16px, so a phone never zooms to it) */
.ask-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ask-trap input { font-size: 16px; }
/* read out, not shown */
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* From 900px the film and the words share a row, and everything else runs across the card. */
@media (min-width: 900px) {
  .now-card { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); column-gap: var(--now-gap); }
  .now-card > *, .ask > * { grid-column: 1 / -1; }
  .now-card--media .now-media { grid-column: 1; }
  .now-card--media .now-words { grid-column: 2; }
}

/* From 1200px the right column is what four picks beside the film need, on every update, so the films of
   two updates line up too. The 240px is what makes two rows of picks with 16:9 pictures as tall as the
   film beside them: a pick's height less its picture, twice, and the gap between the rows. */
@media (min-width: 1200px) {
  .now-card { grid-template-columns: minmax(0, 1fr) calc((100% - var(--now-gap) - 240px) / 2); }

  /* The words take the left of the last two rows, and the line under the picks and the note box the right.
     The last row takes whatever the words need beyond the line, so the note box (or its thanks) always
     starts right under that line. */
  .now-card--side { grid-template-areas: "head q" "media picks" "words after" "words more"; grid-template-rows: auto auto auto 1fr; }
  .now-card--side .now-head { grid-area: head; }
  .now-card--side .ask-q { grid-area: q; margin-top: 0; }
  .now-card--side .now-media { grid-area: media; }
  .now-card--side .ask-picks { grid-area: picks; }
  .now-card--side .now-words { grid-area: words; }
  .now-card--side .ask-after { grid-area: after; margin-top: 22px; }
  /* the question stands on the title's line */
  .now-card--side .now-head, .now-card--side .ask-q { align-self: end; align-self: last baseline; }
  /* The picks fill the film's row, two by two, and their own size has no say in its height
     (container-type: size), so they end where the film ends. Their pictures give or take the difference. */
  .now-card--side .ask-picks { display: grid; align-self: stretch; margin-top: 22px; container-type: size; }
  .now-card--side .ask-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); }
  .now-card--side .ask-choice img { flex: 1 1 0; min-height: 40px; aspect-ratio: auto; }
  .now-card--side .ask-name, .now-card--side .ask-line { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  /* the line under the picks starts level with the words */
  .now-card--side .now-words, .now-card--side .ask-after { align-self: baseline; }
  .now-card--side .ask-more { grid-area: more; margin-top: 20px; }
}

/* ------------------------------------------------------------------------------------------
   The inbox: the private page at ?inbox=<key> that lists what visitors sent
   ------------------------------------------------------------------------------------------ */

.inbox { display: grid; gap: clamp(28px, 4vw, 48px); }
.inbox .sec-head { margin-bottom: 0; }
.inbox-problem { padding: 16px 20px; border-radius: 16px; background: var(--pear); color: var(--c-pine); font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.inbox-empty { color: var(--ink-2); }
.inbox-post { display: grid; gap: 14px; padding-top: 28px; border-top: 2px solid var(--ink); }
.inbox-title { font-weight: 700; font-stretch: 112%; font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.1; letter-spacing: -.02em; }
.inbox-meta { color: var(--ink-2); }
.inbox-sum { font: 500 .86rem var(--mono); }
.inbox-counts { display: grid; gap: 10px; max-width: 760px; }
.inbox-counts li { display: grid; grid-template-columns: minmax(8ch, 14rem) minmax(0, 1fr) 10ch; align-items: center; gap: 14px; }
.inbox-bar { position: relative; height: 10px; overflow: hidden; border-radius: 5px; background: var(--chip-bg); }
.inbox-bar::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--share, 0%); background: var(--emerald); }
.inbox-n { font: 500 .84rem var(--mono); text-align: right; }
.inbox-notes { display: grid; gap: 10px; max-width: 760px; }
.inbox-notes li { padding: 14px 18px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--card); }
.inbox-when { font: 500 .78rem var(--mono); color: var(--ink-2); }
.inbox-text { margin-top: 6px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 759px) {
  .inbox-counts li { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; }
  .inbox-bar { grid-column: 1 / -1; grid-row: 2; }
}

/* ------------------------------------------------------------------------------------------
   Services
   ------------------------------------------------------------------------------------------ */

.offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.offer {
  display: flex; flex-direction: column; gap: 18px;      /* the words follow the title, at every width */
  padding: clamp(20px, 2.4vw, 32px); border-radius: var(--r-tile);
}
.offer h3 { font-weight: 700; font-stretch: 122%; font-size: clamp(2rem, 3.6vw, 3.2rem); line-height: .95; letter-spacing: -.04em; }
.offer p { max-width: 38ch; font-size: 1.02rem; line-height: 1.48; text-wrap: pretty; }
.offer--0 { background: var(--mint); color: var(--c-pine); }
.offer--1 { background: var(--pear); color: var(--c-pine); }
.offer--2 { background: var(--emerald); color: #fff; }

.how { margin-top: clamp(36px, 5vw, 72px); }
.how-title, .stack h3 { font-weight: 600; font-size: 1.05rem; }
.how-title { margin-bottom: 18px; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); counter-reset: step; }
/* the number on the title's line, on its baseline; a title that wraps stays beside it, the words go under both */
.steps li {
  counter-increment: step; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; align-items: baseline;
  padding-top: 16px; border-top: 2px solid var(--ink);
}
.steps li::before { content: counter(step); font: 500 .8rem var(--mono); color: var(--ink-2); }
.steps h4 { font-weight: 700; font-stretch: 112%; font-size: 1.22rem; line-height: 1.15; letter-spacing: -.015em; }
/* a step with an "href" (You email me) ends its title in a small round button that goes there */
.step-go {
  display: inline-grid; place-items: center; width: 30px; height: 30px; margin: -8px 0 -8px 4px; vertical-align: -3px;   /* centred on the words, and the negative margins keep the title line as tall as its neighbours */
  border: 1.5px solid currentColor; border-radius: 999px; color: var(--ink);
  transition: background-color .15s, color .15s, border-color .15s, transform .12s var(--ease);
}
.step-go .i { width: 15px; height: 15px; }
@media (hover: hover) { .step-go:hover { background: var(--pear); border-color: var(--c-pine); color: var(--c-pine); transform: translateY(-2px); } }
.steps p { grid-column: 1 / -1; margin-top: 8px; font-size: .98rem; line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }

.svc-foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: var(--gap); margin-top: clamp(36px, 5vw, 72px); }
.wont { display: flex; align-items: center; padding: clamp(22px, 3vw, 42px); border-radius: var(--r-tile); background: var(--deep); color: var(--mint); }
.wont p { font-weight: 500; font-stretch: 108%; font-size: clamp(1.22rem, 2.05vw, 1.85rem); line-height: 1.26; letter-spacing: -.02em; text-wrap: balance; }
/* the hero's pear "Start a project" card, flush to the box's edge the way it sits beside the snake: the
   right half where the box is wide enough for the chips to keep two or three rows, under the list where
   it is not */
.stack { display: grid; grid-template-columns: minmax(0, 1fr); border: 1.5px solid var(--line); border-radius: var(--r-tile); }
.stack-body { display: flex; flex-direction: column; gap: 16px; padding: clamp(20px, 2.4vw, 32px); }
.stack ul { display: flex; flex-wrap: wrap; gap: 7px; }
.stack li { padding: 6px 11px; border-radius: 999px; background: var(--chip-bg); font: 500 .82rem var(--mono); }
.stack .more { margin-top: auto; padding-top: 6px; align-self: flex-start; }
.stack .cta { margin: 0 -1.5px -1.5px; min-height: 120px; }
@media (min-width: 1200px), (min-width: 640px) and (max-width: 899px) {
  .stack { grid-template-columns: minmax(0, 1fr) minmax(170px, .62fr); }
  .stack .cta { margin: -1.5px -1.5px -1.5px 0; min-height: 0; }
}

/* ------------------------------------------------------------------------------------------
   Contact
   ------------------------------------------------------------------------------------------ */

.composer { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(26px, 4.5vw, 72px); align-items: start; }
.composer-fields { display: grid; gap: 28px; min-width: 0; }
/* On a wide screen the picks get the whole width of the section, so that each set keeps to one line.
   Under them the timing, the note and the buttons make one column, and the letter stands beside them,
   as tall as they are, with room to fill as it is written. Without the script there are no picks and
   no letter, and the form keeps its plain layout. */
@media (min-width: 900px) {
  .js .composer {
    grid-template-areas: "need need" "time letter" "mail letter" "note letter" "acts letter";
    grid-template-rows: auto auto auto auto 1fr; row-gap: 28px;
  }
  .js .composer-fields, .js .send { display: contents; }
  .js .composer-need { grid-area: need; }
  .js .composer-timing { grid-area: time; }
  .js .note { grid-area: note; }
  .js .composer-mail { grid-area: mail; }
  .js .send-acts { grid-area: acts; }
  .js .letter { grid-area: letter; align-self: stretch; }
}
.composer legend, .note > span { display: block; margin-bottom: 12px; font-weight: 600; font-size: 1.02rem; }
/* Each set of picks keeps to one line at every width. Where the line is longer than the section is wide
   (phones and small tablets) it scrolls sideways, out to the edge of the section like the row of games.
   The 6px above and below is room for the focus ring and the hover lift, which the scroller would
   otherwise cut off; the margin gives it back. */
.picks {
  display: flex; gap: 9px; overflow-x: auto; overscroll-behavior-x: contain;
  margin: -6px calc(-1 * var(--pad)); padding: 6px var(--pad);
  scroll-snap-type: x proximity; scroll-padding-inline: var(--pad);
  scrollbar-width: thin; scrollbar-color: var(--emerald-lo) transparent;
}
.pick { position: relative; flex: none; scroll-snap-align: start; cursor: pointer; }
.pick input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pick span {
  display: block; padding: 11px 18px; border-radius: 999px; border: 2px solid rgba(255, 255, 255, .85);
  font-weight: 600; font-size: 1rem; line-height: 1.2;
  transition: transform .12s var(--ease), box-shadow .12s var(--ease), background-color .14s, color .14s, border-color .14s;
}
@media (hover: hover) { .pick:hover span { transform: translateY(-2px); box-shadow: 0 3px 0 var(--emerald-lo); } }
.pick input:checked + span { background: var(--pear); border-color: var(--pear); color: var(--c-pine); }
.pick input:focus-visible + span { outline: 3px solid #fff; outline-offset: 3px; }
.note { display: block; }
.note textarea, .note input {
  display: block; width: 100%; min-height: 104px; resize: vertical;
  padding: 16px 18px; border-radius: 20px; border: 2px solid transparent;
  background: var(--emerald-lo); color: #fff; font: inherit; line-height: 1.45;
}
.note input { min-height: 0; padding-block: 14px; }
.note textarea::placeholder, .note input::placeholder { color: var(--mint); opacity: 1; }
.note textarea:focus, .note input:focus { outline: none; border-color: #fff; }
.send { display: grid; gap: 26px; min-width: 0; }
.letter { padding: 20px 24px 26px; border-radius: 22px; background: #f4f6ee; color: var(--c-pine); font: 400 .88rem/1.6 var(--mono); box-shadow: 0 8px 0 var(--emerald-lo); }
.letter-row { display: grid; grid-template-columns: 8ch minmax(0, 1fr); gap: 8px; padding: 8px 0; border-bottom: 1px dashed rgba(12, 34, 24, .34); overflow-wrap: anywhere; }
.letter-row > :first-child { color: #3f5a4c; }
.letter-body { min-height: 5.2em; margin-top: 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
.letter-empty { color: #3f5a4c; }
.send-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.send-said { flex-basis: 100%; font-weight: 600; }
/* the plain address, for whoever would rather write their own: a quiet line after the two buttons */
.send-plain { font-size: .98rem; color: #f4fbf7; white-space: nowrap; }
.send-plain a { font-weight: 700; color: #fff; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
@media (hover: hover) { .send-plain a:hover { color: var(--pear); } }
.send-said:empty { display: none; }
.send-said--oops { color: var(--pear); }

/* ------------------------------------------------------------------------------------------
   The town. One more toy, after everything else and in no menu: turf.place's island with
   claim.town's city on it. It wears the same count, link and line of commentary as the two
   game tiles in the hero. Its sea has no edge, as in turf.place, so it runs to every side of the
   box, and the box itself is the same blue behind it.
   ------------------------------------------------------------------------------------------ */

.town {
  position: relative; min-width: 0; height: clamp(320px, 29vw, 440px); overflow: hidden;
  border-radius: var(--r-stage); background: var(--sea);
  touch-action: pan-y; container-type: inline-size; --focus: var(--pear);
  --hud: calc(var(--r-stage) / 2);     /* how far in from the edges the plates stand, so their corners follow the box's */
  /* it is clicked and tapped fast: no text gets selected and nothing flashes */
  user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
}
.town:focus-visible { outline-offset: -5px; }
.town canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.town .game-score { top: var(--hud); left: var(--hud); }
/* turf.place and claim.town, the two the town is made of, share one plate the way a collab is
   written, and each name is its own link to the real site. */
.town-links { position: absolute; top: var(--hud); right: var(--hud); display: flex; align-items: center; }
.town-links .game-link { position: static; gap: 6px; border-radius: 12px; }
.town-links .game-link:focus-visible { outline-offset: -3px; }     /* inside its own half: an outer ring would run over the x */
.town-links img { width: 16px; height: 16px; border-radius: 4px; }
.town-x { font: 500 .76rem/16px var(--mono); color: var(--on-dark-2); }
.town .game-msg { left: var(--hud); right: auto; bottom: var(--hud); max-width: calc(100% - var(--hud) * 2); }
.town.has-built .game-msg { max-width: calc(100% - var(--hud) * 2 - 140px); }     /* the clear button's room */
.town-clear {
  position: absolute; right: var(--hud); bottom: var(--hud);
  font: 500 .76rem var(--mono); color: var(--on-dark-2);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
@media (hover: hover) { .town-clear:hover { color: var(--pear); } }
/* Whatever is written over the sea stands on a plate in the pine of the town's own cards, sized to
   its words. town.js measures these plates and keeps the town clear of them. */
.town .game-score, .town-links .game-link, .town .game-msg, .town-clear { padding: 5px 8px; line-height: 16px; }
.town .game-score, .town-links, .town .game-msg, .town-clear { border-radius: 12px; background: var(--c-pine); }
/* On a narrow town the commentary gets a row of its own, and room to run on to a second line. */
@container (max-width: 640px) {
  .town-k { display: none; }
  .town .game-msg { white-space: normal; text-wrap: pretty; }
  .town.has-built .game-msg { max-width: calc(100% - var(--hud) * 2); bottom: calc(var(--hud) + 32px); }   /* over the clear button: its 26px and a gap */
}
/* The count and the collab share the top row: "28 / 28 built" (116px) and the collab with its icons
   (229px) need a town 377px wide; "28 / 28" and the collab, 331px; without the icons (185px), 287px. */
@container (max-width: 379px) {
  .town-u { display: none; }
}
@container (max-width: 333px) {
  .town-links img { display: none; }
}

/* The first click on a lot nobody has built asks how to build it: go and see the app, or just build.
   A small card standing on the lot, in the pine and pear of the card below. The script places it. */
.town-choice {
  position: absolute; top: 0; left: 0; z-index: 2;
  padding: 9px 10px 10px; border-radius: 16px;
  background: var(--c-pine); color: var(--on-dark); border: 1.5px solid var(--pear);
  box-shadow: 0 3px 0 rgba(6, 19, 13, .5);
  font: 600 .76rem/1.2 var(--mono); white-space: nowrap; color-scheme: dark; --focus: #fff;
  opacity: 0; scale: .94; transform-origin: var(--tip, 50%) 100%;
  transition: opacity .12s, scale .14s var(--ease);
}
.town-choice.is-on { opacity: 1; scale: 1; }
.town-choice::after {
  content: ""; position: absolute; left: var(--tip, 50%); bottom: -7px; width: 11px; height: 11px; margin-left: -6px;
  background: var(--c-pine); border: solid var(--pear); border-width: 0 1.5px 1.5px 0; rotate: 45deg;
}
.town-choice.is-under { transform-origin: var(--tip, 50%) 0; }
.town-choice.is-under::after { bottom: auto; top: -7px; rotate: 225deg; }
.town-choice-name { margin: 0 3px 8px; }
.town-choice-acts { display: flex; gap: 6px; }
.town-choice a, .town-choice button {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 999px;
  font: 700 .82rem/1.2 var(--sans); text-decoration: none; white-space: nowrap;
  transition: background-color .15s, box-shadow .15s;
}
.town-choice a { background: var(--pear); color: var(--c-pine); }
@media (hover: hover) { .town-choice a:hover { background: var(--pear-hi); } }
.town-choice a .mark { width: 10px; height: 10px; }
.town-choice button { color: var(--on-dark); box-shadow: inset 0 0 0 1.5px var(--on-dark-2); }
@media (hover: hover) { .town-choice button:hover { background: rgba(244, 246, 238, .14); box-shadow: inset 0 0 0 1.5px var(--on-dark); } }
@media (pointer: coarse) { .town-choice a, .town-choice button { padding: 11px 15px; } }

/* ------------------------------------------------------------------------------------------
   The things nobody is told about. First the prompt: the page as a command line, on the ` key.
   A sheet along the bottom in the pine and pear of the two cards above.
   A phone's keyboard comes up over the bottom of the window and leaves the window its full size, so
   the sheet goes by the part still in sight: --view-top and --view-h, which prompt.js keeps while the
   prompt is open. It sits on the keyboard and is never taller than the room above it. Where nothing
   covers the window they are the window, and the sheet is where it always was.
   ------------------------------------------------------------------------------------------ */

.prompt {
  --view-top: 0px; --view-h: 100vh;
  --prompt-h: min(58vh, 470px, var(--view-h) - 2 * var(--page-gap));
  position: fixed; z-index: 50; left: var(--page-gap); right: var(--page-gap);
  top: max(var(--view-top) + var(--page-gap), min(100% - env(safe-area-inset-bottom), var(--view-top) + var(--view-h)) - var(--page-gap) - var(--prompt-h));
  display: flex; flex-direction: column; max-width: 900px; height: var(--prompt-h); margin-inline: auto;
  border-radius: var(--r-tile); background: var(--c-pine); color: var(--on-dark); border: 1.5px solid var(--pear);
  box-shadow: 0 4px 0 rgba(6, 19, 13, .5);
  font: 400 .82rem/1.55 var(--mono); color-scheme: dark; --focus: #fff;
  opacity: 0; translate: 0 14px; transition: opacity .16s, translate .2s var(--ease);
}
.prompt[hidden] { display: none; }
.prompt.is-on { opacity: 1; translate: 0 0; }
.prompt-bar { display: flex; align-items: center; gap: 12px; padding: 7px 8px 6px 16px; border-bottom: 1px solid rgba(244, 246, 238, .14); }
.prompt-name { font-weight: 600; color: var(--pear); }
.prompt-hint { margin-left: auto; font-size: .74rem; color: var(--on-dark-2); }
.prompt-x { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--on-dark-2); transition: background-color .15s, color .15s; }
@media (hover: hover) { .prompt-x:hover { background: rgba(244, 246, 238, .14); color: var(--on-dark); } }
.prompt-x .i { width: 15px; height: 15px; }
.prompt-log { flex: 1; min-height: 0; padding: 10px 16px 8px; overflow-y: auto; overscroll-behavior: contain; white-space: pre-wrap; overflow-wrap: anywhere; }
.prompt-log:focus { outline: none; }
.prompt-out { min-height: 1.55em; }
.prompt-row { display: flex; justify-content: space-between; gap: 12px; color: var(--on-dark-2); }
.prompt-k { font-weight: 600; color: var(--pear); }
.prompt-d { color: var(--on-dark-2); }
.prompt-e { color: #ffb59e; }
.prompt-cmd { color: var(--mint); text-decoration: underline; text-decoration-color: rgba(191, 230, 211, .45); text-decoration-thickness: 1px; text-underline-offset: 3px; }
@media (hover: hover) { .prompt-cmd:hover { color: var(--pear); text-decoration-color: currentColor; } }
.prompt-line { display: flex; align-items: center; gap: 9px; padding: 8px 16px 12px; border-top: 1px solid rgba(244, 246, 238, .14); }
.prompt-ps { flex: none; font-weight: 600; color: var(--pear); white-space: nowrap; }
.prompt-line input { flex: 1; min-width: 0; padding: 0; border: 0; outline: none; background: none; font: inherit; color: var(--on-dark); caret-color: var(--pear); }
@media (pointer: coarse) {
  .prompt-hint { display: none; }
  .prompt-x { margin-left: auto; }             /* the hint pushed it to the end; without the hint, this does */
  .prompt-line input { font-size: 16px; }      /* anything smaller and a phone zooms the page to type in it */
}

/* The note that says an easter egg has been found. It comes down from the corner of the window, not
   from the badge, so it is seen wherever the page has been scrolled to. It wears the badge's egg. */
.egg-found {
  position: fixed; z-index: 90; top: calc(12px + env(safe-area-inset-top)); left: 12px;
  display: flex; align-items: center; gap: 11px; max-width: calc(100vw - 24px); padding: 7px 18px 7px 10px; border-radius: 999px;
  background: var(--c-pine); color: var(--on-dark); border: 1.5px solid var(--pear);
  box-shadow: 0 3px 0 rgba(6, 19, 13, .5);
  font: 500 .84rem/1.3 var(--mono); color-scheme: dark; pointer-events: none;
  opacity: 0; translate: 0 -18px; transition: opacity .2s, translate .28s var(--ease);
}
.egg-found[hidden] { display: none; }
body:has(.loose-hud) .egg-found { top: calc(62px + env(safe-area-inset-top)); }      /* under the snake's own note, not over it */
.egg-found.is-on { opacity: 1; translate: 0 0; }
.egg-found b { flex: none; width: 27px; height: 33px; font-size: .8rem; }
.egg-found p { min-width: 0; }
.egg-found-of { margin-left: 4px; color: var(--pear); white-space: nowrap; }
.egg-bit { position: absolute; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 1px; }

/* The Konami code's bombs and the snake on the loose are each one canvas over the whole window. */
.blast, .loose { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.blast { z-index: 80; }
.loose { z-index: 79; }
.loose-hud {
  position: fixed; z-index: 81; left: 50%; top: calc(12px + env(safe-area-inset-top)); translate: -50% 0;
  display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 24px); padding: 6px 7px 6px 16px; border-radius: 999px;
  background: var(--c-pine); color: var(--on-dark); border: 1.5px solid var(--pear);
  font: 500 .82rem/1.3 var(--mono); text-align: left; color-scheme: dark; --focus: #fff;
}
.loose-hud span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.loose-hud b { flex: none; padding: 7px 13px; border-radius: 999px; background: var(--pear); color: var(--c-pine); font: 700 .8rem/1.2 var(--sans); white-space: nowrap; transition: background-color .15s; }
@media (hover: hover) { .loose-hud:hover b { background: var(--pear-hi); } }

/* X-ray: every tile outlined and named, and a panel that adds the page up. The outlines are pear dashes
   on a pine line, so they show on the light stages and the dark ones alike. */
.xray { position: absolute; top: 0; left: 0; z-index: 45; width: 100%; height: 0; overflow: hidden; pointer-events: none; }
.xray-box { position: absolute; border: 1.5px dashed var(--pear); outline: 1.5px solid var(--c-pine); outline-offset: -3px; }
.xray-tag, .xray-axis {
  position: absolute; padding: 1px 6px 2px; border-radius: 5px; background: var(--pear); color: var(--c-pine);
  font: 600 .64rem/1.5 var(--mono); white-space: nowrap;
}
.xray-tag { top: 5px; left: 5px; max-width: calc(100% - 10px); overflow: hidden; text-overflow: ellipsis; }
.xray-tag.is-low { top: auto; bottom: 5px; max-width: none; }
.xray-axis { translate: -50% 0; background: var(--c-pine); color: var(--pear); }
.xray-axis:empty { display: none; }
.xray-panel {
  position: fixed; z-index: 52; top: var(--page-gap); right: var(--page-gap); width: min(330px, calc(100vw - 2 * var(--page-gap)));
  max-height: calc(100vh - 2 * var(--page-gap)); padding: 12px 14px 14px; overflow-y: auto; overscroll-behavior: contain;
  border-radius: var(--r-tile); background: var(--c-pine); color: var(--on-dark); border: 1.5px solid var(--pear);
  box-shadow: 0 4px 0 rgba(6, 19, 13, .5);
  font: 400 .72rem/1.5 var(--mono); color-scheme: dark; --focus: #fff;
}
.xray-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.xray-head b { font-size: .84rem; color: var(--pear); }
.xray-x { color: var(--on-dark-2); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
@media (hover: hover) { .xray-x:hover { color: var(--pear); } }
.xray-h { margin: 12px 0 4px; padding-top: 9px; border-top: 1px solid rgba(244, 246, 238, .14); font-weight: 600; color: var(--pear); }
.xray-list li { display: grid; grid-template-columns: 9.5em 1fr; gap: 0 8px; padding: 1px 0; }
.xray-n { color: var(--on-dark-2); }
.xray-d { grid-column: 2; color: var(--on-dark-2); }
.xray-note { margin-top: 8px; color: var(--on-dark-2); }
.xray-colors { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 10px; }
.xray-colors li { display: flex; align-items: center; gap: 6px; min-width: 0; }
.xray-colors i { flex: none; width: 13px; height: 13px; border-radius: 4px; border: 1px solid rgba(244, 246, 238, .5); }
.xray-colors .xray-d { margin-left: auto; }
@media (max-width: 620px) {
  .xray-panel { top: auto; bottom: calc(var(--page-gap) + env(safe-area-inset-bottom)); left: var(--page-gap); width: auto; max-height: 46vh; }
  .xray-tag { font-size: .58rem; }
  .xray-axis, .xray-wide { display: none; }      /* the letters are too close together to label one by one */
}

/* What turf.place says to somebody coming back: what happened while they were gone. */
.away {
  position: fixed; z-index: 55; left: 50%; bottom: calc(78px + env(safe-area-inset-bottom)); translate: -50% 0;
  display: flex; align-items: center; gap: 12px; width: max-content; max-width: calc(100vw - 24px);
  padding: 8px 8px 8px 18px; border-radius: 26px;
  background: var(--c-pine); color: var(--on-dark); border: 1.5px solid var(--pear);
  font: 500 .86rem/1.35 var(--mono); color-scheme: dark; --focus: #fff;
  opacity: 0; transform: translateY(8px);
  transition: opacity .2s, transform .2s var(--ease);
}
.away.is-on { opacity: 1; transform: none; }
.away p { min-width: 0; overflow-wrap: anywhere; }
.away-n { color: var(--pear); white-space: nowrap; }
.away-go {
  flex: none; padding: 8px 15px; border-radius: 999px;
  background: var(--pear); color: var(--c-pine);
  font: 700 .86rem/1.2 var(--sans); text-decoration: none; white-space: nowrap;
  transition: background-color .15s;
}
@media (hover: hover) { .away-go:hover { background: var(--pear-hi); } }
.away-x { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--on-dark-2); transition: background-color .15s, color .15s; }
@media (hover: hover) { .away-x:hover { background: rgba(244, 246, 238, .14); color: var(--on-dark); } }
.away-x .i { width: 15px; height: 15px; }

/* ------------------------------------------------------------------------------------------
   Footer, dock, toast
   ------------------------------------------------------------------------------------------ */

.foot {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 28px;
  padding: 10px clamp(12px, 2vw, 28px) calc(92px + env(safe-area-inset-bottom));
  font-size: .9rem; color: var(--ink-2);
}
/* the name, the handle and the email, on the left; the email goes under the name when the row is short */
.foot-me { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.foot-name { font-weight: 700; color: var(--ink); }
.foot-me .foot-mail { font: 400 .85rem var(--mono); color: var(--ink-2); text-decoration: none; }   /* the same as the handle */
.foot-name span { margin-left: 6px; font: 400 .85rem var(--mono); color: var(--ink-2); }
/* GitHub, the command line and Back to the top, in one row that keeps together: on a phone the row
   goes under the name as a whole, never one link at a time */
.foot-links { display: flex; align-items: baseline; gap: 26px; }
.foot-link { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; text-underline-offset: 4px; white-space: nowrap; }
@media (hover: hover) { .foot-link:hover { color: var(--emerald); } [data-theme="night"] .foot-link:hover { color: var(--pear); } }
.foot-prompt { padding: 2px 7px; border-radius: 7px; font: 600 .82rem var(--mono); color: var(--ink-2); }
@media (hover: hover) { .foot-prompt:hover { background: var(--chip-bg); color: var(--ink); } }

.dock {
  position: fixed; z-index: 40; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); translate: -50% 0;
  display: flex; align-items: center; gap: 2px; padding: 6px; border-radius: 999px;
  background: var(--c-pine); color: var(--on-dark); border: 1.5px solid rgba(244, 246, 238, .2);
  box-shadow: 0 12px 30px -12px rgba(6, 19, 13, .6);
  --focus: #fff;
  transform: translateY(calc(100% + 34px)); opacity: 0; pointer-events: none; visibility: hidden;
  transition: transform .4s var(--ease), opacity .25s, visibility 0s .4s;
}
.dock.is-on { transform: none; opacity: 1; pointer-events: auto; visibility: visible; transition: transform .4s var(--ease), opacity .25s, visibility 0s; }
.dock a { padding: 9px 14px; border-radius: 999px; font-weight: 600; font-size: .92rem; line-height: 1.2; text-decoration: none; white-space: nowrap; transition: background-color .15s, color .15s; }
@media (hover: hover) { .dock a:hover { background: rgba(244, 246, 238, .14); } }
.dock a[aria-current="true"]:not(.dock-cta) { color: var(--pear); }
.dock .dock-home { flex: none; width: 38px; height: 38px; padding: 0; display: grid; place-items: center; background: var(--emerald); }
@media (hover: hover) { .dock .dock-home:hover { background: #179a5e; } }
.dock-home svg { width: 13px; height: 13px; fill: none; stroke: #fff; stroke-width: 2.8; }
.dock .dock-cta { margin-left: 4px; background: var(--pear); color: var(--c-pine); }
@media (hover: hover) { .dock .dock-cta:hover { background: var(--pear-hi); } }
@media (hover: hover) { .dock .skin:hover { background: rgba(244, 246, 238, .14); color: var(--on-dark); } }

.toast {
  position: fixed; z-index: 60; left: 50%; bottom: calc(78px + env(safe-area-inset-bottom)); translate: -50% 0;
  max-width: calc(100vw - 32px); padding: 10px 16px; border-radius: 999px;
  background: var(--c-pine); color: var(--on-dark); border: 1.5px solid var(--pear);
  font: 500 .86rem var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity .2s, transform .2s var(--ease);
}
.toast.is-on { opacity: 1; transform: none; }

/* ------------------------------------------------------------------------------------------
   Dialogs: the reel and the cabinet
   ------------------------------------------------------------------------------------------ */

dialog { border: 0; padding: 0; margin: 0; max-width: none; max-height: none; background: transparent; color: var(--on-dark); color-scheme: dark; --focus: #fff; }
dialog::backdrop { background: rgba(4, 13, 9, .97); }
.cabinet::backdrop { background: #040d09; }

.reel { width: 100vw; height: 100vh; height: 100dvh; inset: 0; }
.reel-inner {
  height: 100%; max-width: 1320px; margin-inline: auto;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; gap: 14px;
  --reel-pad: clamp(12px, 2vw, 26px); padding: var(--reel-pad);
}
.reel-top { display: flex; align-items: center; justify-content: space-between; }
.reel-count { font: 500 .85rem var(--mono); color: var(--on-dark-2); }
.reel-stage { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 0; }
.reel-stage video { width: 100%; height: 100%; min-height: 0; object-fit: contain; border-radius: 18px; background: #000; }
.reel-meta { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.reel-meta h2 { font-weight: 700; font-stretch: 118%; font-size: clamp(1.3rem, 2.4vw, 2rem); line-height: 1.1; letter-spacing: -.025em; }
.reel-meta .more { font: 500 .9rem var(--mono); color: var(--pear); }
.reel-strip { display: flex; gap: 10px; overflow-x: auto; padding: 4px 3px 10px; scrollbar-width: thin; scrollbar-color: #2f5545 transparent; }
.reel-strip li { flex: none; }
.reel-strip button { display: grid; gap: 6px; width: 132px; text-align: left; font-size: .76rem; line-height: 1.25; color: var(--on-dark-2); }
.reel-strip img { width: 132px; height: 74px; object-fit: cover; border-radius: 10px; border: 2px solid transparent; background: #0c2218; }
@media (hover: hover) { .reel-strip button:hover img { border-color: var(--on-dark-2); } }
.reel-strip .is-on { color: #fff; }
.reel-strip .is-on img { border-color: var(--pear); }

.cabinet { width: 100vw; height: 100vh; height: 100dvh; inset: 0; }
.cabinet[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 10px; padding: clamp(8px, 1.4vw, 18px); }
.cab-bar { display: flex; align-items: center; gap: 12px; padding: 0 4px 4px; }
.cab-bar h2 { margin-right: auto; font-weight: 700; font-stretch: 115%; font-size: 1.15rem; letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cab-screen { min-height: 0; overflow: hidden; border-radius: 18px; background: #000; }
.cab-screen iframe { width: 100%; height: 100%; border: 0; background: #0c2218; }

/* Without JavaScript the page still reads; these controls would do nothing, so they are not shown. */
html:not(.js) .film-play, html:not(.js) .film-pause, html:not(.js) .film-bars, html:not(.js) .filters,
html:not(.js) .app-acts, html:not(.js) [data-arc-play], html:not(.js) .game-score, html:not(.js) .game-msg, html:not(.js) .play-tab,
html:not(.js) .carts-hint, html:not(.js) .skin, html:not(.js) .letter,
html:not(.js) .town, html:not(.js) .away, html:not(.js) .foot-prompt, html:not(.js) .eggs-spot { display: none; }
html:not(.js) .dock { transform: none; opacity: 1; pointer-events: auto; visibility: visible; }

/* ------------------------------------------------------------------------------------------
   Touch. Every small link and button takes a tap across at least 44 x 44px, the size Apple asks for,
   and keeps its look: an invisible box centered on each one takes the tap. Two take less, to stay clear
   of what is beside them: the film's bars (30px, under the pause button), and the links in the corners
   of the two hero games (24px, the WCAG minimum, so a tap meant for the game stays the game's).
   ------------------------------------------------------------------------------------------ */

@media (pointer: coarse) {
  .btn--small, .chip, .mini, .more, .about-mail, .about-links a, .send-plain a, .foot-link, .foot-prompt, .step-go, .eggs,
  .town-links .game-link, .town-choice a, .town-choice button, .film-bars button, .prompt-x, .away-x,
  .dock a, .dock .skin, .now-link a { position: relative; }
  .town-links .game-link { inset: auto; }      /* static by design: the offsets every other game link has must not move it */
  .btn--small::after, .chip::after, .mini::after, .more::after, .about-mail::after, .about-links a::after,
  .send-plain a::after, .foot-link::after, .foot-prompt::after, .step-go::after, .eggs::after, .town-links .game-link::after,
  .town-clear::after, .town-choice a::after, .town-choice button::after, .film-pause::after, .film-bars button::after,
  .hero-grid .game-link::after, .prompt-x::after, .away-x::after, .dock a::after, .dock .skin::after, .now-link a::after {
    content: ""; position: absolute; left: 50%; top: 50%; width: max(100%, 44px); height: max(100%, 44px); translate: -50% -50%;
  }
  .film-bars button::after { height: 30px; }
  .hero-grid .game-link::after { height: max(100%, 24px); }
  .app-acts { row-gap: 14px; }                 /* the same for 30px buttons, when the two wrap */
}

/* ------------------------------------------------------------------------------------------
   Smaller screens
   ------------------------------------------------------------------------------------------ */

@media (max-width: 1099px) {
  .hero { display: flex; flex-direction: column; min-height: 0; padding-top: calc(var(--pad) + 16px); padding-left: var(--pad); gap: var(--gap); }
  .rail { display: none; }
  .hero-main { display: contents; }
  .wordmark { order: 1; margin-bottom: 4px; }
  .about {
    order: 2; display: grid; grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "name portrait" "intro portrait" "foot foot"; column-gap: 24px; align-items: start;
    padding-top: calc(var(--notch-h) + 26px);
  }
  .portrait { grid-area: portrait; width: min(36cqw, 250px); margin: -40px 3cqw 0 0; align-self: start; }
  .portrait--cutout { margin-top: 6px; }
  .about-name { grid-area: name; margin-top: 0; font-size: 12.5cqw; }
  .about-intro { grid-area: intro; }
  .about-foot { grid-area: foot; }
  .hero-grid { order: 3; grid-template-rows: none; }
  .film { grid-column: span 8; aspect-ratio: 16 / 10; }
  .stats { grid-column: span 4; }
  /* The gaps are narrow from here down, so the two game tiles sit lower by what their tab stands out:
     each tab keeps a whole gap clear above it, the same as between any two tiles. */
  .boom, .duo { min-height: 200px; margin-top: var(--tab-out); }

  .app, .app--l, .app--m, .apps:not([data-filter="all"]) .app { grid-column: span 6; }
  .app--s { grid-column: span 4; }

  .arcade { grid-template-columns: minmax(0, 1fr); }
  /* the row of games scrolls sideways, and runs out to the edge of the section instead of stopping short of it */
  .carts {
    display: flex; overflow-x: auto; gap: 8px; padding: 0 var(--pad) 6px; margin-inline: calc(-1 * var(--pad));
    scroll-snap-type: x proximity; scroll-padding-inline: var(--pad); scrollbar-width: thin; scrollbar-color: #2f5545 transparent;
  }
  .carts li { flex: none; scroll-snap-align: start; }
  .cart { min-width: 230px; }
  .cart kbd, .carts-hint { display: none; }
  .cart { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "i t" "i s"; }

  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 30px; }

  .dock { transform: none; opacity: 1; pointer-events: auto; visibility: visible; }
}

@media (max-width: 899px) {
  .sec-head { grid-template-columns: minmax(0, 1fr); }
  .offers { grid-template-columns: minmax(0, 1fr); }
  .svc-foot { grid-template-columns: minmax(0, 1fr); }
  .screen-info { grid-template-columns: minmax(0, 1fr); }
  .composer { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 759px) {
  body { font-size: 1rem; }
  .eggs-spot { top: 10px; --egg-w: 16px; --egg-h: 20px; }
  .eggs b { font-size: .56rem; }
  .egg-found { font-size: .78rem; }
  .about { display: flex; padding-top: 28px; --notch-w: 44%; }
  .portrait { width: min(58%, 250px); margin: 0 4% 0 auto; }
  .portrait--cutout { margin-top: 12%; }
  .about-name { margin-top: -10px; font-size: 13.4cqw; }
  .about-foot { align-self: stretch; }                     /* the full width, so the seal sits at the edge as it does on a desktop */
  .film { grid-column: span 12; }
  .stats { grid-column: span 12; grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .stat { padding: 20px; }
  .stat-n { font-size: clamp(2rem, 13cqw, 3.2rem); }
  .stat-l { font-size: clamp(.84rem, 4.6cqw, 1.05rem); }
  .boom { grid-column: span 12; min-height: 224px; }
  .duo { grid-column: span 12; grid-template-columns: minmax(0, 1fr); }
  .duo .snake, .duo .cta { grid-column: auto; }
  .snake { min-height: 210px; }
  .cta { padding: 22px 20px; }
  .cta-k { max-width: none; text-wrap: balance; }
  .cta-t { font-size: clamp(1.6rem, 9cqw, 2.3rem); }

  /* On a phone the text in every card starts 20px in from its edge, the same as the sections, so it
     lines up down the page; the corner marks sit 20px in from the corner. */
  .tile > .mark, .stat > .mark, .cta > .mark { top: 20px; right: 20px; }
  .hero-grid .game-score, .hero-grid .game-msg, .hero-grid .play-tab { left: 20px; }
  .hero-grid .game-msg, .hero-grid .game-link { right: 20px; }
  .screen-info { padding: 20px 8px 12px; }                 /* 8 more on top of the screen's own 12 */
  .wont { padding: 22px 20px; }
  .letter { padding: 20px 20px 26px; }
  .foot { padding-inline: var(--pad); }
  .foot-prompt { margin-left: -7px; }                      /* its padding, so the >_ lines up with the text above */

  .app, .app--l, .app--m, .apps:not([data-filter="all"]) .app { grid-column: span 12; }
  .apps[data-filter="all"] .app--s { grid-column: span 6; }
  .apps[data-filter="all"] .app--s .app-blurb,
  .apps[data-filter="all"] .app--s .app-stack,
  .apps[data-filter="all"] .app--s .app-acts,
  .apps[data-filter="all"] .app--s .app-title .mark { display: none; }
  .apps[data-filter="all"] .app--s .app-card { padding: 7px 7px 2px; }
  .apps[data-filter="all"] .app--s .app-txt { padding: 10px 6px 10px; gap: 3px; }
  .apps[data-filter="all"] .app--s .app-title { font-size: .95rem; font-stretch: 106%; }
  .apps[data-filter="all"] .app--s .app-title--long { font-size: .86rem; font-stretch: 100%; }
  .apps[data-filter="all"] .app--s .app-ico { display: none; }
  .apps[data-filter="all"] .app--s .app-domain { font-size: .75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .app-link { text-wrap: balance; }

  .steps { grid-template-columns: minmax(0, 1fr); row-gap: 22px; }

  .reel-stage { grid-template-columns: minmax(0, 1fr); }
  .reel-nav { display: none; }
  /* a phone held upright is taller than the film: the box takes the film's own shape, not the whole height */
  .reel-stage video { height: auto; max-height: 100%; aspect-ratio: auto 16 / 9; }
  .reel-strip { margin-inline: calc(-1 * var(--reel-pad)); padding-inline: var(--reel-pad); }
  .btn--big { width: 100%; white-space: normal; }
  .send-acts .btn { width: 100%; }
  .send-plain { width: 100%; text-align: center; }        /* centred under the two full-width buttons */
  .screen-acts .btn { flex: 1 1 auto; }                    /* full width once they stack, like the ones in Contact */

  .town { height: min(124vw, 480px); }
  .away { gap: 8px; padding-left: 15px; font-size: .8rem; }

  .dock { max-width: calc(100vw - 20px); }
  .dock a { padding: 9px 11px; font-size: .88rem; }
  .dock a[href="#services"] { display: none; }
}

/* The narrowest phones: at its usual shape the film is under 190px tall, and its play button sits on
   the loop's name. A fixed height, not a min-height, which would stretch the width through the ratio. */
@media (max-width: 363px) {
  .film { aspect-ratio: auto; height: 190px; }
}

/* The dock on a phone is the home link, Work, Play, Start a project and the skin, 331px across. A
   phone under 360px wide leaves it less (300px on a 320), so there the pills are tighter and the type
   a little smaller, and the two round buttons stay round. */
@media (max-width: 359px) {
  .dock { padding: 4px; gap: 0; }
  .dock a { padding-inline: 8px; font-size: .84rem; }
  .dock .dock-cta { margin-left: 2px; }
}

/* ------------------------------------------------------------------------------------------
   Motion. One orchestrated arrival; everything else answers something you did.
   ------------------------------------------------------------------------------------------ */

@media (prefers-reduced-motion: no-preference) {
  .js .hero .rail, .js .hero .about, .js .hero .tile {
    animation: deal .75s cubic-bezier(.2, .8, .2, 1) backwards;
    animation-delay: calc(140ms + var(--i, 0) * 85ms);
  }
  .js .wordmark [data-l] {
    animation: inflate 1s cubic-bezier(.2, .8, .2, 1) backwards;
    animation-delay: calc(60ms + var(--n, 0) * 55ms);
  }
  .js .wordmark-mark { animation: deal .6s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: 700ms; }
}
@keyframes deal { from { opacity: 0; transform: translateY(34px) scale(.965); } }
@keyframes inflate { from { opacity: 0; font-variation-settings: "wdth" 75, "wght" 200; } }

/* The skin change wipes out from the button that was pressed. */
.skin-wipe::view-transition-old(root), .skin-wipe::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
.skin-wipe::view-transition-new(root) { animation: wipe .7s cubic-bezier(.6, 0, .2, 1); }
@keyframes wipe {
  from { clip-path: circle(0 at var(--vx, 50%) var(--vy, 50%)); }
  to { clip-path: circle(150vmax at var(--vx, 50%) var(--vy, 50%)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* ------------------------------------------------------------------------------------------
   The services page (services/index.php): the long version of the Services section.
   Built from the same stages, heads and buttons; only what is new to it is here.
   ------------------------------------------------------------------------------------------ */

.sv-notice { margin: 0; padding: 14px clamp(18px, 2.4vw, 28px); border-radius: var(--r-tile); background: var(--pear); color: var(--c-pine); font-size: .95rem; line-height: 1.5; }
.sv-notice strong { font-weight: 700; }
.sv-hero { display: grid; gap: clamp(20px, 2.6vw, 34px); padding-block: clamp(22px, 2.6vw, 36px) clamp(36px, 5vw, 72px); }
.sv-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sv-top .more { min-height: 44px; }
.sv-kicker { margin-top: clamp(16px, 4vw, 56px); font: 500 .85rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--pear); }
.sv-title {
  max-width: 15ch; font-weight: 800; font-stretch: 122%;
  font-size: clamp(2.6rem, 7.4vw, 6.6rem); line-height: .92; letter-spacing: -.045em; text-wrap: balance;
}
.sv-hi { color: var(--pear); }
.sv-intro { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 3vw, 48px); max-width: 1100px; }
.sv-intro p { font-size: clamp(1.02rem, 1.3vw, 1.22rem); line-height: 1.5; color: var(--on-dark-2); text-wrap: pretty; }
.sv-intro p + p { color: var(--on-dark); }
.sv-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.sv-hero .btn--line, .sv-end .btn--line { --btn-ledge: rgba(255, 255, 255, .35); }

.sv-n { font: 500 .8rem var(--mono); color: var(--ink-2); }

.sv-symptoms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.sv-symptoms li {
  display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; align-items: baseline; align-content: start;
  padding-top: 16px; border-top: 2px solid var(--ink);
}
.sv-symptoms h3 { font-weight: 700; font-stretch: 112%; font-size: 1.22rem; line-height: 1.15; letter-spacing: -.015em; }
.sv-symptoms p { grid-column: 1 / -1; margin-top: 8px; font-size: .98rem; line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }
.sv code { font: 500 .88em var(--mono); padding: 1px 5px; border-radius: 6px; background: var(--chip-bg); color: var(--ink); }
.sv-after {
  margin-top: clamp(28px, 3.6vw, 48px); padding: clamp(20px, 2.4vw, 32px); border-radius: var(--r-tile);
  background: var(--pear); color: var(--c-pine);
  font-weight: 600; font-stretch: 106%; font-size: clamp(1.1rem, 1.6vw, 1.45rem); line-height: 1.3; letter-spacing: -.01em; text-wrap: balance;
}

.sv-table-wrap { overflow-x: auto; border: 1.5px solid var(--line); border-radius: var(--r-tile); background: var(--card); }
.sv-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 1.02rem; line-height: 1.4; }
.sv-table th, .sv-table td { padding: 16px clamp(14px, 2vw, 28px); text-align: left; vertical-align: top; }
.sv-table thead th { font-weight: 700; font-stretch: 112%; font-size: 1.15rem; }
.sv-table thead th:last-child { color: var(--emerald); }
[data-theme="night"] .sv-table thead th:last-child { color: var(--pear); }
.sv-table tbody th { font: 500 .82rem var(--mono); color: var(--ink-2); white-space: nowrap; }
.sv-table tbody td:nth-child(2) { color: var(--ink-2); }
.sv-table tbody td:last-child { font-weight: 600; }
.sv-table tbody tr { border-top: 1.5px solid var(--line); }

.sv-terms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.sv-term { display: flex; flex-direction: column; gap: 12px; padding: clamp(18px, 2vw, 26px); border-radius: var(--r-tile); background: var(--card); border: 1.5px solid var(--line); }
.sv-term dt { font-weight: 700; font-stretch: 112%; font-size: 1.22rem; line-height: 1.15; letter-spacing: -.015em; }
.sv-term dd { margin: 0; font-size: .98rem; line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }
.sv-term--wont { background: var(--deep); border-color: var(--deep); color: var(--mint); }
.sv-term--wont dd { color: var(--mint); }

.sv-prose { display: grid; gap: 1.1em; max-width: 62ch; }
.sv-prose p { font-size: clamp(1.05rem, 1.35vw, 1.25rem); line-height: 1.55; color: var(--on-dark-2); text-wrap: pretty; }
.sv-prose p:first-child { color: var(--on-dark); }
.sv-sign { margin-top: clamp(26px, 3.6vw, 48px); font-weight: 800; font-stretch: 122%; font-size: clamp(1.6rem, 3.2vw, 2.8rem); line-height: 1; letter-spacing: -.035em; color: var(--pear); }

.sv-faq { display: grid; max-width: 980px; }
.sv-faq details { border-top: 2px solid var(--ink); }
.sv-faq details:last-child { border-bottom: 2px solid var(--ink); }
.sv-faq summary {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 10px; align-items: baseline;
  min-height: 44px; padding: 16px 0 14px; cursor: pointer; list-style: none;
}
.sv-faq summary::-webkit-details-marker { display: none; }
.sv-faq summary::after { content: "+"; font: 500 1.3rem/1 var(--mono); transition: transform .2s var(--ease); }
.sv-faq details[open] summary::after { transform: rotate(45deg); }
.sv-q { font-weight: 700; font-stretch: 112%; font-size: 1.22rem; line-height: 1.2; letter-spacing: -.015em; }
.sv-faq details p { padding: 0 0 20px; font-size: 1rem; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.sv-faq a, .sv-end a:not(.btn) { text-underline-offset: 3px; }

.sv-small { margin-top: 18px; font-size: .95rem; color: #f4fbf7; }

.sv-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 8px clamp(10px, 2vw, 24px) 14px; font-size: .92rem; color: var(--ink-2); }
.sv-foot .more { min-height: 44px; color: var(--ink); }

@media (max-width: 1099px) {
  .sv-symptoms, .sv-terms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 699px) {
  .sv-intro, .sv-symptoms, .sv-terms { grid-template-columns: minmax(0, 1fr); }
  .sv-ctas .btn { width: 100%; }
  .sv-hero, .sv .stage { padding-inline: 20px; }
  /* the table becomes one small card per row: the row's name, then vibe and raw side by side */
  .sv-table { min-width: 0; }
  .sv-table thead { display: none; }
  .sv-table tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 14px; padding: 14px 16px; }
  .sv-table tbody tr:first-child { border-top: 0; }
  .sv-table th, .sv-table td { padding: 0; }
  .sv-table tbody th { grid-column: 1 / -1; margin-bottom: 4px; }
  .sv-table td::before { content: attr(data-side); display: block; margin-bottom: 2px; font: 500 .72rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
  .sv-table td:last-child::before { color: var(--emerald); }
  [data-theme="night"] .sv-table td:last-child::before { color: var(--pear); }
}

@media print {
  .dock, .toast, .away, .film-play, .film-bars, .film-pause, .snake, .boom, .town, .filters, .skin,
  .prompt, .foot-prompt, .xray, .xray-panel, .blast, .loose, .loose-hud, .eggs-spot, .egg-found, .now-play, .ask { display: none !important; }
  .page { padding: 0; }
}
