@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/geist-latin-wght-normal.woff2") format("woff2");
}

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

/* Two modes with one idea, each in its own light. Light: paper and ink, with bands of pale sage stone.
   Dark: onyx and platinum, with bands of graphite. Platinum is the metal of the edges and plates in both,
   and jade green is the accent: it marks what can be clicked, what's active and what matters most.
   The sections alternate between the base and a band, so colour, not a line, tells them apart.
   The mode follows the visitor's system. */
:root {
  color-scheme: light;
  --bg: #f8f7f4;
  --text: #13191d;
  --body: #232a2e;
  --muted: #495155;
  --faint: #5f676b;
  --rule: #dce0e3;
  --rule-strong: #c6cbcf;
  --green: #286853;
  --accent: #21624d;
  --accent-hi: #397c64;
  --accent-lo: #144f3d;
  --accent-edge-hi: #86b7a4;
  --accent-edge-lo: #0e3f30;
  --on-accent: #ffffff;
  /* Jade metal: one green polished from light to shadow, like the platinum plates, with a fine bright edge.
     It dresses what can be pressed; links stay in plain jade. */
  --jade-fill: linear-gradient(165deg, var(--accent-hi), var(--accent) 50%, var(--accent-lo));
  --jade-edge: linear-gradient(135deg, var(--accent-edge-hi), var(--accent-edge-lo) 30%, var(--accent) 55%, var(--accent-edge-lo) 80%, var(--accent-edge-hi));
  --jade-line: linear-gradient(90deg, var(--accent-lo), var(--accent-hi) 50%, var(--accent));
  --glow: var(--green);
  --label: #5d646a;
  --date: var(--green);
  --glyph-lit: #2c2e30;
  --metal: #b9bec2;
  --metal-hi: #e2e5e8;
  --metal-lo: #8c9399;
  --platinum: #8c9399;
  --plate-ink: #252628;
  --step-from: #8c9399;
  --step-to: var(--green);
  --tile-top: #ffffff;
  --tile-bottom: #fcfbf9;
  --plate-top: #ffffff;
  --plate-bottom: #e6e9ec;
  --tile-light: #8c9399;
  --tile-mix: 12%;
  --glyph: rgba(19, 25, 29, 0.08);
  --light: rgba(33, 98, 77, 0.06);
  --thread: rgba(19, 25, 29, 0.12);
  --thread-lit: rgba(19, 25, 29, 0.5);
  --chip: rgba(248, 247, 244, 0.8);
  --header: rgba(248, 247, 244, 0.92);
  --selection: rgba(40, 104, 83, 0.16);
  --error: #be241f;
  --glass: rgba(255, 255, 255, 0.9);
  --glass-line: rgba(19, 25, 29, 0.09);
  --sheen: rgba(255, 255, 255, 1);
  --field: rgba(255, 255, 255, 0.85);
  --field-line: #868c91;
  --field-solid: #ffffff;
  --shade: rgba(19, 25, 29, 0.14);
  --aurora: 0.12;
  --aurora-tone: var(--platinum);
  --portrait-hi: #f7f8f6;
  --portrait-lo: #dde4df;
  --bevel: inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.14);
  --bevel-lit: inset 0 1px 0 rgba(255, 255, 255, 0.42), inset 0 -1px 0 rgba(0, 0, 0, 0.14), inset 0 0 0 999px rgba(255, 255, 255, 0.07);
  --lift: 0 0.6rem 1.5rem -0.75rem rgba(22, 71, 55, 0.55);
  --sun: none;
  --moon: block;
  --sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  /* Three speeds: a colour or a nudge, something that opens or moves, a surface. The opening's longer moves and
     the steps of a sequence are multiples or fractions of them. */
  --fast: 0.2s;
  --medium: 0.3s;
  --slow: 0.5s;
  /* Three corners: small pieces, rows and fields, cards and panels. A pill and a circle are shapes, not sizes. */
  --radius-s: 0.375rem;
  --radius-m: 0.75rem;
  --radius-l: 1rem;
  --gutter: 1.25rem;
  --max: 75rem;
  --head: 3.75rem;
  --margin: 11rem;
  --edge: max(var(--gutter), (100% - var(--max)) / 2);
  --read: clamp(1.125rem, 1rem + 0.45vw, 1.375rem);
  --title: clamp(1.875rem, 1.25rem + 2.3vw, 3.25rem);
  --space: clamp(4.5rem, 9vw, 8rem);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0c0c0d;
    --text: #edeef0;
    --body: #d5d7da;
    --muted: #b3b6b9;
    --faint: #96989b;
    --rule: #222324;
    --rule-strong: #343537;
    --green: #8dceb5;
    --accent: #8cd6ba;
    --accent-hi: #bdecd9;
    --accent-lo: #71bb9f;
    --accent-edge-hi: #e2faf0;
    --accent-edge-lo: #559980;
    --on-accent: #0c0c0d;
    --label: #c1c4c9;
    --glyph-lit: #e3e5e8;
    --metal: #bbbec3;
    --metal-hi: #f4f5f7;
    --metal-lo: #6f7276;
    --platinum: #d5d8db;
    --plate-ink: #0c0c0d;
    --step-from: #ced1d6;
    --tile-top: #161719;
    --tile-bottom: #121314;
    --plate-top: #2b2e31;
    --plate-bottom: #1d1f21;
    --tile-light: #d5d8db;
    --tile-mix: 9%;
    --glyph: rgba(191, 193, 195, 0.08);
    --light: rgba(133, 208, 179, 0.07);
    --thread: rgba(213, 216, 219, 0.1);
    --thread-lit: rgba(244, 245, 247, 0.6);
    --chip: rgba(12, 12, 13, 0.7);
    --header: rgba(12, 12, 13, 0.84);
    --selection: rgba(74, 137, 114, 0.45);
    --error: #fda19a;
    --glass: rgba(22, 23, 25, 0.85);
    --glass-line: rgba(237, 238, 240, 0.08);
    --sheen: rgba(237, 238, 240, 0.06);
    --field: rgba(6, 6, 7, 0.55);
    --field-line: #6b6f73;
    --field-solid: #0e0e0f;
    --shade: rgba(0, 0, 0, 0.5);
    --aurora: 0.1;
    --bevel: inset 0 1px 0 rgba(255, 255, 255, 0.6), inset 0 -1px 0 rgba(0, 0, 0, 0.12);
    --bevel-lit: inset 0 1px 0 rgba(255, 255, 255, 0.75), inset 0 -1px 0 rgba(0, 0, 0, 0.12), inset 0 0 0 999px rgba(255, 255, 255, 0.1);
    --lift: 0 0.6rem 1.5rem -0.75rem rgba(0, 0, 0, 0.6);
    --sun: block;
    --moon: none;
    --portrait-hi: #33373b;
    --portrait-lo: #141618;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c0c0d;
  --text: #edeef0;
  --body: #d5d7da;
  --muted: #b3b6b9;
  --faint: #96989b;
  --rule: #222324;
  --rule-strong: #343537;
  --green: #8dceb5;
  --accent: #8cd6ba;
  --accent-hi: #bdecd9;
  --accent-lo: #71bb9f;
  --accent-edge-hi: #e2faf0;
  --accent-edge-lo: #559980;
  --on-accent: #0c0c0d;
  --label: #c1c4c9;
  --glyph-lit: #e3e5e8;
  --metal: #bbbec3;
  --metal-hi: #f4f5f7;
  --metal-lo: #6f7276;
  --platinum: #d5d8db;
  --plate-ink: #0c0c0d;
  --step-from: #ced1d6;
  --tile-top: #161719;
  --tile-bottom: #121314;
  --plate-top: #2b2e31;
  --plate-bottom: #1d1f21;
  --tile-light: #d5d8db;
  --tile-mix: 9%;
  --glyph: rgba(191, 193, 195, 0.08);
  --light: rgba(133, 208, 179, 0.07);
  --thread: rgba(213, 216, 219, 0.1);
  --thread-lit: rgba(244, 245, 247, 0.6);
  --chip: rgba(12, 12, 13, 0.7);
  --header: rgba(12, 12, 13, 0.84);
  --selection: rgba(74, 137, 114, 0.45);
  --error: #fda19a;
  --glass: rgba(22, 23, 25, 0.85);
  --glass-line: rgba(237, 238, 240, 0.08);
  --sheen: rgba(237, 238, 240, 0.06);
  --field: rgba(6, 6, 7, 0.55);
  --field-line: #6b6f73;
  --field-solid: #0e0e0f;
  --shade: rgba(0, 0, 0, 0.5);
  --aurora: 0.1;
  --bevel: inset 0 1px 0 rgba(255, 255, 255, 0.6), inset 0 -1px 0 rgba(0, 0, 0, 0.12);
  --bevel-lit: inset 0 1px 0 rgba(255, 255, 255, 0.75), inset 0 -1px 0 rgba(0, 0, 0, 0.12), inset 0 0 0 999px rgba(255, 255, 255, 0.1);
  --lift: 0 0.6rem 1.5rem -0.75rem rgba(0, 0, 0, 0.6);
  --sun: block;
  --moon: none;
  --portrait-hi: #33373b;
  --portrait-lo: #141618;
}

/* The bands: Services, Process and Contact on the home page, and the footer under the legal pages.
   Pale sage stone on paper, with white cards; raised graphite on onyx. They set their own surface,
   so everything inside them adapts on its own. */
.band,
.doc + .foot {
  --bg: #e7ede8;
  --rule: #d0d6d1;
  --rule-strong: #bcc2bd;
  --chip: rgba(231, 237, 232, 0.8);
  --glass: rgba(255, 255, 255, 0.92);
  --glass-line: rgba(19, 25, 29, 0.07);
  --field: #f8faf8;
  --field-line: #868c91;
  --tile-top: #ffffff;
  --tile-bottom: #fbfcfb;
  --glyph: rgba(19, 25, 29, 0.075);
  --shade: rgba(22, 52, 40, 0.18);
  --aurora: 0.85;
  --aurora-tone: #ffffff;
  background: var(--bg);
  color: var(--text);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .band,
  :root:not([data-theme="light"]) .doc + .foot {
    --bg: #191c1d;
    --text: #edeef0;
    --muted: #babdc0;
    --faint: #a0a3a6;
    --rule: #2a2d2e;
    --rule-strong: #3c3e3f;
    --label: #c7cbd0;
    --platinum: #dcdee1;
    --plate-ink: #191c1d;
    --tile-top: #222527;
    --tile-bottom: #1d2022;
    --plate-top: #32363a;
    --plate-bottom: #25282b;
    --tile-light: #dcdee1;
    --tile-mix: 9%;
    --glyph: rgba(198, 199, 202, 0.08);
    --thread: rgba(220, 222, 225, 0.12);
    --thread-lit: rgba(244, 245, 247, 0.65);
    --chip: rgba(25, 28, 29, 0.6);
    --glass: rgba(255, 255, 255, 0.04);
    --glass-line: rgba(237, 238, 240, 0.09);
    --sheen: rgba(237, 238, 240, 0.06);
    --field: rgba(12, 13, 14, 0.55);
    --field-line: #707478;
    --field-solid: #131516;
    --shade: rgba(0, 0, 0, 0.5);
    --aurora: 0.1;
    --aurora-tone: #dcdee1;
  }
}

:root[data-theme="dark"] .band,
:root[data-theme="dark"] .doc + .foot {
  --bg: #191c1d;
  --text: #edeef0;
  --muted: #babdc0;
  --faint: #a0a3a6;
  --rule: #2a2d2e;
  --rule-strong: #3c3e3f;
  --label: #c7cbd0;
  --platinum: #dcdee1;
  --plate-ink: #191c1d;
  --tile-top: #222527;
  --tile-bottom: #1d2022;
  --plate-top: #32363a;
  --plate-bottom: #25282b;
  --tile-light: #dcdee1;
  --tile-mix: 9%;
  --glyph: rgba(198, 199, 202, 0.08);
  --thread: rgba(220, 222, 225, 0.12);
  --thread-lit: rgba(244, 245, 247, 0.65);
  --chip: rgba(25, 28, 29, 0.6);
  --glass: rgba(255, 255, 255, 0.04);
  --glass-line: rgba(237, 238, 240, 0.09);
  --sheen: rgba(237, 238, 240, 0.06);
  --field: rgba(12, 13, 14, 0.55);
  --field-line: #707478;
  --field-solid: #131516;
  --shade: rgba(0, 0, 0, 0.5);
  --aurora: 0.1;
  --aurora-tone: #dcdee1;
}

/* Four compositions: phones by default, tablets from 40rem, desktops from 64rem and wide screens from 100rem.
   On wide screens the whole scale grows with the root font size. */

@media (min-width: 40rem) {
  :root {
    --gutter: 2rem;
    --head: 4rem;
  }
}

/* With the text at its largest on a phone, the words get the room: the side margins keep the size they have with
   the usual text instead of growing with it. So do the form's and its rows' below. */
@media (max-width: 19.49rem) {
  :root {
    --gutter: 20px;
  }
}

@media (min-width: 64rem) {
  :root {
    --gutter: 2.5rem;
  }
}

@media (min-width: 100rem) {
  html {
    font-size: 112.5%;
  }

  :root {
    --gutter: 3rem;
    --max: 82rem;
    --margin: 12rem;
  }
}

@media (min-width: 150rem) {
  html {
    font-size: 125%;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* The header stays at the top, so whatever the page scrolls to, a section from the menu or a field
     reached with the keyboard, stops below it. */
  scroll-padding-top: calc(var(--head) - 1px);
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* A word that doesn't fit its line, as with the text at its largest on a phone ("resuelvo" at 88 px in a title, an
   address like you@yourcompany.com in a lead), breaks rather than push its box or the page wider. At usual sizes
   every word fits, so nothing changes. */
body {
  overflow-wrap: anywhere;
}

/* With the text at its largest on a phone, a title's long word breaks where the page's language allows it, with a
   hyphen, on browsers that know how. */
@media (max-width: 19.49rem) {
  :is(h1, h2, h3, h4) {
    -webkit-hyphens: auto;
    hyphens: auto;
  }
}

::selection {
  background: var(--selection);
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--glow);
  outline-offset: 3px;
  border-radius: var(--radius-s);
}

.mono {
  font-family: var(--mono);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.bar-inner,
.hero-inner,
.section-inner,
.contact-inner,
.foot-inner,
.doc-inner {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

.skip {
  position: absolute;
  top: -4rem;
  left: var(--edge);
  z-index: 30;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  font: 600 0.875rem/1 var(--sans);
  text-decoration: none;
  transition: top var(--fast);
}

.skip:focus {
  top: 0.75rem;
}

.arrow,
.arrow-right {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--fast) var(--ease);
}

.arrow {
  width: 0.6rem;
  height: 0.6rem;
  margin-left: 0.3rem;
}

.arrow-right {
  width: 0.8rem;
  height: 0.8rem;
}

a:is(:hover, :active) > .arrow {
  transform: translate(2px, -2px);
}

a:is(:hover, :active) > .arrow-right {
  transform: translateX(3px);
}

/* Header: sits over the hero, then stays at the top with a solid background once the page scrolls. */

.bar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  border-bottom: 1px solid transparent;
  transition: background-color var(--medium), border-color var(--medium);
}

.js .bar {
  position: fixed;
}

/* The line that offers an English page in Spanish to a browser set to Spanish (public/main.js): a platinum plate under
   the header, over the page, so nothing moves; it goes with the header, and waits while a menu is open. */
.es-offer {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: var(--edge);
  left: var(--edge);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: fit-content;
  max-width: calc(100% - 2 * var(--gutter));
  margin-inline: auto 0;
  padding: 0.3rem 0.3rem 0.3rem 1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background:
    linear-gradient(180deg, var(--plate-top), var(--plate-bottom)) padding-box,
    linear-gradient(135deg, var(--metal-hi), var(--metal-lo) 30%, var(--metal) 55%, var(--metal-lo) 80%, var(--metal-hi)) border-box;
  box-shadow:
    inset 0 1px 0 var(--sheen),
    0 0.75rem 1.5rem -1rem var(--shade);
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.4;
  animation: es-offer-in var(--medium) var(--ease) both;
}

.motion .es-offer {
  animation-name: es-offer-drop;
}

.es-offer p {
  margin: 0;
  text-wrap: pretty;
}

.es-offer a {
  color: var(--green);
  font-weight: 500;
  text-decoration-color: color-mix(in srgb, var(--green) 45%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  white-space: nowrap;
}

.es-offer a:is(:hover, :active) {
  text-decoration-thickness: 2px;
}

.es-offer a .arrow-right {
  width: 0.7em;
  height: 0.7em;
  margin-left: 0.3em;
  vertical-align: -0.02em;
}

.es-offer-close {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  cursor: pointer;
}

.es-offer-close svg {
  width: 0.75rem;
  height: 0.75rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
}

.es-offer-close:is(:hover, :active) {
  color: var(--green);
}

.bar:has(details[data-menu][open]) .es-offer {
  display: none;
}

@keyframes es-offer-in {
  from {
    opacity: 0;
  }
}

@keyframes es-offer-drop {
  from {
    opacity: 0;
    transform: translateY(-0.5rem);
  }
}

.bar.is-solid {
  border-bottom-color: var(--rule);
  background: var(--header);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.bar-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  height: var(--head);
}

/* The brand is the name, in Geist like the headings, with the M of the favicon beside it from tablets up. On phones the
   name stands alone; where the header has no room even for that, as with a phone zoomed to 150 % or the narrowest
   screens, the M stands in for it, and the name stays for screen readers. */
.brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
}

.brand-name {
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.012em;
  white-space: nowrap;
}

.brand-mark {
  display: none;
  flex: none;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: var(--radius-s);
  box-shadow: 0 0 0 1px var(--rule);
}

@media (min-width: 40rem) {
  .brand-mark {
    display: block;
  }
}

/* On the home page the big name says it first: the one in the header waits, in its place, until that one leaves the
   screen, and comes in with a fade. It's there again whenever the menu covers the page. */
.brand[data-handoff] {
  transition: opacity var(--medium) var(--ease), visibility 0s linear 0s;
}

.brand[data-handoff].is-waiting {
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--medium) var(--ease), visibility 0s linear var(--medium);
}

.has-menu .brand[data-handoff].is-waiting {
  opacity: 1;
  visibility: visible;
  transition: none;
}

.bar.is-tight .brand {
  flex: none;
}

.bar.is-tight .brand-name {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.bar.is-tight .brand-mark {
  display: block;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-s);
  box-shadow: 0 0 0 1px var(--rule);
}

.bar.is-tighter .bar-tools > .bar-cta {
  display: none;
}

.bar-tools > * {
  flex-shrink: 0;
}

/* Phones of 360 to 383 px, most Android phones among them, keep the name: the header's gaps close up a little. */
@media (max-width: 23.99rem) {
  .bar-inner {
    gap: 0.75rem;
  }

  .bar-cta {
    margin-left: 0;
  }
}

@media (max-width: 19.49rem) {
  .bar .brand {
    display: block;
    flex: none;
  }

  .bar .brand-name {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .bar .brand-mark {
    display: block;
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-s);
    box-shadow: 0 0 0 1px var(--rule);
  }
}

/* At 200 % there's room for the M and the menu only: Get a price waits at the bottom of the menu. */
@media (max-width: 14.99rem) {
  .bar-tools > .bar-cta {
    display: none;
  }
}

/* Navigation. On desktops the header names the sections, and Services opens a panel with every project,
   grouped by service. On phones and tablets one Menu button opens the same groups with everything else.
   Both are details elements, so they open without JavaScript; main.js closes them with Escape,
   a click outside or a link inside. */

.nav {
  display: none;
}

.nav > a,
.nav-services > summary {
  position: relative;
  padding-block: 0.5rem;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--fast);
}

.nav > a::after,
.nav-services > summary::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--jade-line);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--medium) var(--ease);
}

.nav > a:is(:hover, :active),
.nav > a[aria-current],
.nav-services > summary:is(:hover, :active),
.nav-services > summary[aria-current],
.nav-services[open] > summary {
  color: var(--text);
}

.nav > a[aria-current]::after,
.nav-services > summary[aria-current]::after,
.nav-services[open] > summary::after {
  transform: scaleX(1);
}

.nav-services > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  cursor: pointer;
}

.nav-services > summary::-webkit-details-marker {
  display: none;
}

.chevron {
  flex: none;
  width: 0.625rem;
  height: 0.625rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--medium) var(--ease);
}

.nav-services[open] .chevron {
  transform: rotate(180deg);
}

/* The services panel: a lit tile under the header, like the open topic menu of the form, with the two services
   side by side and custom work in the corner the shorter list leaves free. */
.nav-panel {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 2.5rem;
  width: min(100%, 46rem);
  padding: 1.6rem 1.75rem 1.75rem;
  border: 1px solid transparent;
  border-radius: var(--radius-l);
  background:
    radial-gradient(120% 120% at 0% 0%, color-mix(in srgb, var(--tile-light) var(--tile-mix), transparent), transparent 55%) padding-box,
    linear-gradient(180deg, var(--tile-top), var(--tile-bottom)) padding-box,
    linear-gradient(135deg, var(--metal-hi), var(--metal-lo) 30%, var(--metal) 55%, var(--metal-lo) 80%, var(--metal-hi)) border-box;
  box-shadow:
    inset 0 1px 0 var(--sheen),
    0 2rem 3.5rem -1.5rem var(--shade);
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.9375rem;
  line-height: 1.4;
}

/* A strip above the panel keeps it open while the pointer crosses the gap from the header. */
.nav-panel::before {
  content: "";
  position: absolute;
  inset: -0.85rem 0 100%;
}

.nav-panel > .menu-group:first-child {
  grid-row: span 2;
}

/* Web, with its six projects, takes the left column; AI and the check-up and care plan share the right one, and
   the way to every service and price, then custom work, run along the foot of the panel. */
.nav-panel > :is(.menu-custom, .menu-all) {
  grid-column: 1 / -1;
}

/* Every service and its price, one page away: a link in jade, like the one under the cards of the home page. */
.menu-all {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 0.45rem;
  color: var(--green);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--green) 45%, transparent);
  text-underline-offset: 0.3em;
  transition: text-decoration-color var(--fast);
}

.menu-all:is(:hover, :active, :focus-visible) {
  text-decoration-color: var(--green);
}

.menu-all .arrow-right {
  flex: none;
}

.menu-more-body > .menu-all {
  margin-bottom: 0.25rem;
}

.motion .nav-services[open] > .nav-panel {
  animation: drop var(--medium) var(--ease);
}

@keyframes drop {
  from {
    opacity: 0;
    transform: translateY(-0.4rem);
  }
}

/* A service and its projects, the same in the panel and in the menu. */
.menu-group {
  display: grid;
  align-content: start;
  gap: 0.65rem;
}

/* A service's name answers the pointer like its projects: the same platinum plate fills its row, spreading past the
   icon as it spreads past a project's name, without moving anything around it. */
.menu-service {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: -0.4rem -0.65rem;
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-m);
  color: var(--text);
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  transition: color var(--fast), background-color var(--fast);
}

.menu-service .area-icon {
  min-width: 2.15rem;
  height: 2.15rem;
  border-radius: var(--radius-m);
  font-size: 0.75rem;
}

.menu-service .arrow-right {
  color: var(--green);
}

.menu-service:is(:hover, :active) {
  background: color-mix(in srgb, var(--platinum) 9%, transparent);
}

.menu-service[aria-current] {
  color: var(--green);
}

.menu-service:is(:hover, :active) .arrow-right {
  transform: translateX(3px);
}

/* The projects line up under the name of their service. */
.menu-projects {
  display: grid;
  margin: 0;
  padding: 0 0 0 2.9rem;
  list-style: none;
}

.menu-projects a {
  display: block;
  margin-inline: -0.65rem;
  padding: 0.42rem 0.65rem;
  border-radius: var(--radius-s);
  color: var(--muted);
  text-decoration: none;
  text-wrap: pretty;
  transition: color var(--fast), background-color var(--fast);
}

.menu-projects a:is(:hover, :active) {
  background: color-mix(in srgb, var(--platinum) 9%, transparent);
  color: var(--text);
}

/* The page being read is marked in jade, like the active section in the header. */
.menu-projects a[aria-current] {
  color: var(--green);
}

/* Custom work, in the jade of its tile on the home page: the light from the corner and the edge of green metal.
   Under the pointer the whole box lights up a little, evenly, like the other tiles. */
.menu-custom {
  --tile-light: var(--green);
  --tile-mix: 16%;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-self: end;
  gap: 0.25rem 1rem;
  padding: 1rem 1.15rem 1.05rem;
  border-radius: var(--radius-l);
  color: var(--text);
  text-decoration: none;
  transition: transform var(--medium) var(--ease);
}

/* .glow paints a platinum edge further down the sheet; custom work keeps its jade one. */
.menu-custom.glow::before {
  background: var(--jade-edge);
}

.menu-custom::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(180deg, color-mix(in srgb, var(--green) 10%, transparent), color-mix(in srgb, var(--green) 4%, transparent));
  opacity: 0;
  transition: opacity var(--medium);
  pointer-events: none;
}

.menu-custom:is(:hover, :active)::after {
  opacity: 1;
}

.menu-custom strong {
  font-weight: 500;
}

.menu-custom span {
  grid-column: 1;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.45;
  text-wrap: pretty;
}

.menu-custom .arrow-right {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--green);
}

.motion .menu-custom:is(:hover, :active) {
  transform: translateY(-1px);
}

.menu-custom:is(:hover, :active) .arrow-right {
  transform: translateX(3px);
}

.bar-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

/* The menu on phones and tablets: a button at the end of the header that opens a page of its own over the site.
   The language and the theme move into it, so the header keeps only the name, Contact and Menu. */
.bar-tools > .lang,
.js .bar-tools > .theme-toggle {
  display: none;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  height: 2.25rem;
  padding: 0 0.95rem 0 1rem;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  background: var(--chip);
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  list-style: none;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  transition: border-color var(--fast);
}

.menu-toggle::-webkit-details-marker {
  display: none;
}

.menu-toggle:is(:hover, :active) {
  border-color: color-mix(in srgb, var(--green) 60%, transparent);
}

.menu .when-open,
.menu[open] .when-shut {
  display: none;
}

.menu[open] .when-open {
  display: inline;
}

/* Two fine lines that cross into a close mark once the menu is open. */
.menu-lines {
  position: relative;
  flex: none;
  width: 0.875rem;
  height: 7px;
}

.menu-lines::before,
.menu-lines::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
  transition: transform var(--medium) var(--ease);
}

.menu-lines::before {
  top: 0;
}

.menu-lines::after {
  bottom: 0;
}

.menu[open] .menu-lines::before {
  transform: translateY(2.75px) rotate(45deg);
}

.menu[open] .menu-lines::after {
  transform: translateY(-2.75px) rotate(-45deg);
}

/* Phones under 384 px, most Android phones and the smaller iPhones among them, keep only the two lines, so the name
   fits beside Get a price: the word stays for screen readers, out of sight. */
@media (max-width: 23.99rem) {
  .menu-toggle {
    justify-content: center;
    width: 2.25rem;
    padding: 0;
  }

  .menu-toggle > span:not(.menu-lines) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

/* With the menu open the header turns solid, without its blur, which would otherwise hold the menu inside it. */
.bar:has(.menu[open]) {
  border-bottom-color: var(--rule);
  background: var(--bg);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

/* While the menu is open, the page behind it stays still. */
.has-menu {
  overflow: hidden;
}

/* While the menu covers the page, "Get a price" and "Prices" wait at the bottom of it and in its list, so the header
   keeps only the name and Close. */
.has-menu .bar :is(.bar-cta, .nav) {
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--fast), visibility var(--fast);
}

.menu-panel {
  position: fixed;
  inset: var(--head) 0 0;
  display: grid;
  align-content: space-between;
  gap: 2.5rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1.75rem var(--gutter) 0;
  background:
    radial-gradient(120% 50% at 100% 0%, color-mix(in srgb, var(--tile-light) var(--tile-mix), transparent), transparent 60%),
    var(--bg);
  font-size: 1rem;
}

.motion .menu[open] > .menu-panel {
  animation: drop var(--medium) var(--ease);
}

.menu-nav {
  display: grid;
  align-content: start;
  gap: 1.75rem;
}

.menu-panel .menu-service {
  font-size: 1.125rem;
}

.menu-panel .menu-service .area-icon {
  min-width: 2.4rem;
  height: 2.4rem;
  font-size: 0.8125rem;
}

.menu-panel .menu-projects {
  padding-left: 3.15rem;
}

.menu-panel .menu-projects a {
  padding-block: 0.55rem;
}

/* The sections, one per row in large type, with Services first: it folds open on a tap to show its projects, so the
   moment the menu opens every section is in sight, the prices among them. */
.menu-main {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}

.menu-main > li {
  border-bottom: 1px solid var(--rule);
}

.menu-main > li > a,
.menu-more > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.9rem;
  color: var(--text);
  font-size: 1.3125rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  text-decoration: none;
  transition: color var(--fast);
}

.menu-more > summary {
  list-style: none;
  cursor: pointer;
}

.menu-more > summary::-webkit-details-marker {
  display: none;
}

.menu-more > summary .chevron {
  width: 0.8rem;
  height: 0.8rem;
}

.menu-more[open] > summary .chevron {
  transform: rotate(180deg);
}

.menu-main > li > a:is(:hover, :active),
.menu-main > li > a:focus-visible,
.menu-main > li > a[aria-current],
.menu-more > summary:is(:hover, :active),
.menu-more > summary:focus-visible,
.menu-more[open] > summary {
  color: var(--green);
}

.menu-more-body {
  display: grid;
  gap: 1.25rem;
  padding: 0.25rem 0 1.4rem;
}

.motion .menu-more[open] > .menu-more-body {
  animation: unfold var(--medium) var(--ease);
}

/* The two ways to start, a project or a message, stay in sight at the bottom however far the list goes: side by side
   where they fit, one over the other on narrow phones. */
.menu-foot {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.75rem;
  margin-inline: calc(var(--gutter) * -1);
  padding: 1rem var(--gutter) calc(1rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--rule);
  background: var(--bg);
}

.menu-foot .btn {
  justify-content: center;
}

.menu-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.menu-lang {
  display: inline-flex;
  align-items: center;
  height: 2.25rem;
  padding: 0 1rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--chip);
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--fast), border-color var(--fast);
}

.menu-lang:is(:hover, :active) {
  border-color: color-mix(in srgb, var(--green) 60%, transparent);
  color: var(--text);
}

.menu-tools .theme-toggle {
  width: 2.25rem;
  height: 2.25rem;
}

/* The whole header from 64rem (1024 px), where every composition turns to the desktop's. */
@media (min-width: 64rem) {
  .nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    margin-left: auto;
    font-size: 0.875rem;
  }

  .nav > .nav-hub {
    display: none;
  }

  .nav + .bar-tools {
    margin-left: 1.25rem;
  }

  .bar-tools > .lang,
  .js .bar-tools > .theme-toggle {
    display: grid;
  }

  .menu {
    display: none;
  }
}

/* Tablets held upright, and phones turned sideways, keep the menu, since the whole header doesn't fit there, but the
   services and their prices are one tap away beside it. */
@media (min-width: 40rem) and (max-width: 63.999rem) {
  .nav {
    display: flex;
    align-items: center;
    margin-left: auto;
    font-size: 0.875rem;
  }

  .nav > :not(.nav-hub) {
    display: none;
  }

  .nav + .bar-tools {
    margin-left: 1.25rem;
  }
}

.lang {
  display: grid;
  place-items: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.55rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--chip);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: color var(--fast), border-color var(--fast);
}

.lang:is(:hover, :active) {
  border-color: color-mix(in srgb, var(--green) 60%, transparent);
  color: var(--text);
}

.theme-toggle {
  display: none;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: var(--chip);
  color: var(--muted);
  cursor: pointer;
  transition: color var(--fast), border-color var(--fast);
}

.js .theme-toggle {
  display: grid;
}

.theme-toggle:is(:hover, :active) {
  border-color: color-mix(in srgb, var(--green) 60%, transparent);
  color: var(--text);
}

.theme-toggle svg {
  width: 0.95rem;
  height: 0.95rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-sun {
  display: var(--sun);
}

.icon-moon {
  display: var(--moon);
}

.bar-cta {
  display: inline-flex;
  align-items: center;
  margin-left: 0.25rem;
  padding: calc(0.65rem - 1px) calc(1rem - 1px);
  border-radius: 999px;
  font: 600 0.875rem/1 var(--sans);
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--fast) var(--ease), box-shadow var(--medium);
}

.bar-cta .long {
  display: none;
}

@media (min-width: 40rem) {
  .bar-cta .long {
    display: inline;
  }

  .bar-cta .short {
    display: none;
  }
}

/* Buttons. Every button that starts something wears the jade metal: polished from light to shadow,
   with a fine bright edge and a highlight along the top. Under the pointer it rises and catches a little more light. */

.skip,
.bar-cta,
.btn-primary,
.send {
  border: 1px solid transparent;
  background: var(--jade-fill) padding-box, var(--jade-edge) border-box;
  box-shadow: var(--bevel);
  color: var(--on-accent);
}

.bar-cta:is(:hover, :active),
.btn-primary:is(:hover, :active),
.send:is(:hover, :active) {
  transform: translateY(-1px);
  box-shadow: var(--bevel-lit), var(--lift);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.95rem 1.45rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 0.9375rem/1 var(--sans);
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--fast) var(--ease), border-color var(--fast), background-color var(--fast), box-shadow var(--medium);
}

.btn-ghost {
  color: var(--text);
}

/* Second choices wear platinum, the metal of the structure: a raised plate with a polished edge, the surface of the
   lit tiles, so they read as a real option beside jade, only quieter: brushed platinum in light and graphite metal in
   dark, a step apart from every background, so they never melt into it. Under the pointer the edge turns jade, as on everything about to act. */
.btn-ghost,
.start-next.is-skip,
.menu-toggle,
.lang,
.theme-toggle,
.menu-lang {
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, var(--plate-top), var(--plate-bottom)) padding-box,
    linear-gradient(135deg, var(--metal-hi), var(--metal-lo) 30%, var(--metal) 55%, var(--metal-lo) 80%, var(--metal-hi)) border-box;
  box-shadow:
    inset 0 1px 0 var(--sheen),
    0 0.5rem 1rem -0.8rem var(--shade);
}

.btn-ghost:is(:hover, :active),
.start-next.is-skip:is(:hover, :active),
.menu-toggle:is(:hover, :active),
.lang:is(:hover, :active),
.theme-toggle:is(:hover, :active),
.menu-lang:is(:hover, :active) {
  border-color: transparent;
  background:
    linear-gradient(180deg, var(--plate-top), var(--plate-bottom)) padding-box,
    var(--jade-edge) border-box;
}

.btn-ghost:is(:hover, :active) {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 var(--sheen),
    0 0.75rem 1.25rem -0.9rem var(--shade);
}

/* Glyph field and the light that follows the pointer. main.js fades the glyphs towards the edges as it draws them,
   so the canvas needs no mask. */

.hero,
.contact {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  /* clip, unlike hidden, doesn't make a scroll container, so sticky elements inside still follow the page. */
  overflow: clip;
}

/* A layer of its own that main.js moves with a transform, centred on the pointer. */
.field-light {
  position: absolute;
  top: -520px;
  left: -520px;
  z-index: -2;
  width: 1040px;
  height: 1040px;
  background: radial-gradient(circle closest-side, var(--light), transparent 65%);
  opacity: 0;
  transition: opacity var(--slow) ease;
  pointer-events: none;
  will-change: transform;
}

.is-lit > .field-light {
  opacity: 1;
}

.field {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Hero */

.hero {
  display: flex;
  align-items: flex-end;
  min-height: 100svh;
  padding-block: calc(var(--head) + 2rem) clamp(2.75rem, 8vh, 6rem);
}

/* The home page's opening leaves room for what comes next, so the first screen says there's more: on phones the
   start of Services shows under the name, on tablets and upright monitors its first projects and prices, and on
   desktops its title, under three facts. Phones turned sideways still fill the screen. The glyphs fill whatever
   height it has. */
@media (orientation: portrait) {
  .hero-home {
    min-height: 62svh;
  }
}

@media (orientation: portrait) and (max-width: 39.999rem) {
  .hero-home {
    min-height: 80svh;
  }
}

@media (min-width: 64rem) and (orientation: landscape) {
  .hero-home {
    min-height: 80svh;
  }
}

.hero-inner {
  display: grid;
  gap: clamp(1.75rem, 3.5vh, 2.75rem);
}

/* The name is sized against the width of its own column, so it always fits on two lines. */
.hero-id {
  container-type: inline-size;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 clamp(1rem, 2.5vh, 1.75rem);
  padding: 0.4rem 0.8rem 0.4rem 0.65rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--chip);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dot {
  position: relative;
  flex: none;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--glow);
}

.dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--glow);
  opacity: 0;
}

.motion .dot::after {
  animation: ping calc(var(--slow) * 5) var(--ease) infinite;
}

@keyframes ping {
  from {
    transform: scale(1);
    opacity: 0.55;
  }

  70%,
  to {
    transform: scale(2.8);
    opacity: 0;
  }
}

.name {
  margin: 0;
  font-size: clamp(3rem, 1.25rem + 9.5vw, 10rem);
  font-size: clamp(2.5rem, min(20.5cqi, 19svh), 10rem);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.name .line {
  display: block;
  overflow: hidden;
  padding-block: 0.2em 0.12em;
  margin-block: -0.2em -0.12em;
}

.name .line > span {
  display: inline-block;
}

.motion .name .line > span {
  animation: rise calc(var(--slow) * 2) var(--ease) both;
}

.motion .name .line:nth-child(2) > span {
  animation-delay: calc(var(--fast) / 2);
}

@keyframes rise {
  from {
    transform: translateY(120%);
  }
}

/* The opening line says what I do, so it reads at a glance beside the name: on one line where it fits, as wide as
   the name on a laptop, and in balanced lines on phones. */
.tagline {
  margin: clamp(1.25rem, 3vh, 2rem) 0 0;
  color: var(--text);
  font-size: clamp(1.0625rem, 0.9rem + 0.75vw, 1.5rem);
  line-height: 1.5;
  text-wrap: balance;
}

.tagline a {
  color: var(--green);
  text-decoration-color: color-mix(in srgb, var(--green) 45%, transparent);
  text-underline-offset: 0.22em;
}

/* On desktops, under the line, three facts the site already promises, in the line's own mono type, small and quiet,
   each after a jade dot. No buttons: the opening introduces, the header and Services lead on. They settle in after
   the line, and with reduced motion they're simply there. */
.hero-facts {
  display: none;
}

@media (min-width: 64rem) {
  .hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 2rem;
    margin: clamp(1.25rem, 3vh, 1.75rem) 0 0;
    padding: 0;
    list-style: none;
    color: var(--muted);
    font-size: 0.875rem;
    line-height: 1.4;
    letter-spacing: 0.02em;
  }

  .hero-facts li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
  }

  .hero-facts li::before {
    content: "";
    flex: none;
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 50%;
    background: var(--green);
  }

  .motion .hero-facts {
    animation: facts-in calc(var(--slow) * 2) var(--ease) calc(var(--slow) * 2 + var(--fast)) both;
  }
}

@keyframes facts-in {
  from {
    opacity: 0;
    transform: translateY(0.35rem);
  }
}

/* The page that answers a guided form sent without JavaScript: when a call was asked for, the button to book it,
   what it opens, and then the way back to the site. */
.reply-book {
  margin: 2rem 0 0;
}

.reply-note {
  max-width: 32em;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
  text-wrap: pretty;
}

.reply-note a {
  color: var(--green);
  text-decoration-color: color-mix(in srgb, var(--green) 45%, transparent);
  text-underline-offset: 0.22em;
}

.motion [data-decode] {
  opacity: 0;
  animation: failsafe 0s calc(var(--slow) * 5) forwards;
}

@keyframes failsafe {
  to {
    opacity: 1;
  }
}

.caret {
  display: inline-block;
  width: 0.55em;
  height: 1.1em;
  margin-left: 0.2em;
  vertical-align: -0.18em;
  background: var(--glyph-lit);
}

/* The caret blinks in place, without moving, so it blinks with reduced motion too, as a text cursor does. */
.caret {
  animation: blink calc(var(--slow) * 2) steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}


/* Sections */

.section {
  padding-block: var(--space);
  border-top: 1px solid var(--rule);
}

/* Silk: in the sections without glyphs, a ribbon of fine threads drifts slowly, folds like fabric
   and parts under the pointer. main.js draws it on a canvas, in the colours of the theme, and fades it out
   behind the text and towards the sides as it draws. */
.silk {
  position: relative;
  isolation: isolate;
}

.silk-field {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* A band starts where the paper ends, so it needs no rule, and neither does the section after it. */
.band,
.band + .section {
  border-top: 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.25rem;
  color: var(--label);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* A short bar of polished platinum before each label, like the rule on a letterhead. */
.eyebrow::before {
  content: "";
  flex: none;
  width: 1.5rem;
  height: 1px;
  margin-right: 0.15rem;
  background: linear-gradient(90deg, var(--metal-lo), var(--metal-hi) 50%, var(--metal));
}

.eyebrow .num {
  color: var(--date);
}

.eyebrow .sep {
  color: var(--faint);
}

.section-title {
  max-width: 18em;
  margin: 0 0 clamp(2rem, 4.5vw, 3.5rem);
  font-size: var(--title);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

/* On desktops each section's label sits in the margin and stays in view while the section is read,
   like the running head of a manual. The header keeps the navigation. */
@media (min-width: 64rem) {
  .section {
    padding-top: 0;
    border-top: 0;
  }

  .section-inner {
    display: grid;
    grid-template-columns: var(--margin) minmax(0, 1fr);
    column-gap: clamp(2rem, 4vw, 4.5rem);
  }

  .section-inner > .eyebrow {
    position: sticky;
    top: calc(var(--head) + 2.5rem);
    align-self: start;
    margin: calc(var(--space) + 0.9rem) 0 0;
  }

  /* The rule over each section starts in polished platinum and settles into a plain line. */
  .section-body {
    padding-top: var(--space);
    border-top: 1px solid var(--rule);
    border-image: linear-gradient(90deg, var(--metal-lo), var(--metal) 35%, var(--rule) 70%) 1;
  }

  .band .section-body,
  .band + .section .section-body {
    border-top: 0;
  }
}

/* A lit tile marks what matters most on the page: a soft light from the top corner,
   and an edge of polished platinum that catches it. */
.glow {
  position: relative;
  border: 1px solid transparent;
  border-radius: var(--radius-l);
  background:
    radial-gradient(120% 150% at 0% 0%, color-mix(in srgb, var(--tile-light) var(--tile-mix), transparent), transparent 55%),
    linear-gradient(180deg, var(--tile-top), var(--tile-bottom)) border-box;
  box-shadow:
    inset 0 1px 0 var(--sheen),
    0 1.5rem 3rem -2.5rem var(--shade);
}

.glow::before {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--metal-hi), var(--metal-lo) 30%, var(--metal) 55%, var(--metal-lo) 80%, var(--metal-hi));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

/* About: the statement, the path that led here and what clients wrote */

.about {
  display: grid;
  gap: 2.5rem;
}

.about .section-title {
  margin: 0;
}

/* Phones: beside the portrait, the statement takes a size that keeps it to a few lines. */
@media (max-width: 39.999rem) {
  .about .section-title {
    font-size: clamp(1.3rem, 0.55rem + 3.6vw, 1.875rem);
  }
}

.path {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}

.path-step {
  display: grid;
  gap: 0.45rem;
  padding-block: 1.25rem 1.35rem;
  border-bottom: 1px solid var(--rule);
}

.path-when {
  margin: 0;
  color: var(--date);
  font-size: 0.875rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
}

.path-what h3 {
  margin: 0 0 0.4rem;
  font-size: 1.3125rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.path-what p {
  max-width: 38rem;
  margin: 0;
  color: var(--body);
  line-height: 1.6;
  text-wrap: pretty;
}

/* The principle behind the whole process, under its four steps. */
.principle {
  margin-top: clamp(2.75rem, 5vw, 4rem);
  padding: 1.6rem 1.4rem 1.7rem;
}

.principle-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.principle p:not(.principle-title) {
  max-width: 32em;
  margin: 0;
  color: var(--body);
  line-height: 1.6;
  text-wrap: pretty;
}

/* Tablets: each step keeps its time on the left, like the dates of a résumé. */
@media (min-width: 40rem) {
  .path-step {
    grid-template-columns: 8rem minmax(0, 1fr);
    gap: 1.5rem;
  }

  .principle {
    padding: 2rem 2.25rem 2.1rem;
  }
}

/* Desktops: the path on the left and the reviews beside it. */
@media (min-width: 64rem) {
  .about {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: clamp(2.5rem, 4vw, 3.5rem) clamp(2rem, 4vw, 3.5rem);
    align-items: start;
  }

  .about .section-title {
    grid-column: 1 / -1;
  }

  .path-step {
    grid-template-columns: 6rem minmax(0, 1fr);
  }

  .principle {
    padding: 2.25rem 2.75rem;
  }

  .principle-title {
    font-size: clamp(1.625rem, 1.2rem + 0.9vw, 2.125rem);
  }
}

/* As soon as the tile has room for two columns, tablets included, across the width of the steps: the promise on
   the left, what it means on the right. */
@media (min-width: 48rem) {
  .principle {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: center;
  }

  .principle-title {
    margin: 0;
  }
}

/* Services: each area on a glass card over a soft light, the same platinum plate and edge on both, and its
   projects as rows that lead to their own pages. Every starting price comes with what it covers. */

.areas {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* A soft light behind each card, seen through the glass. */
.areas::before {
  content: "";
  position: absolute;
  inset: -12% -10%;
  z-index: -1;
  background:
    radial-gradient(34% 40% at 20% 30%, var(--aurora-tone), transparent 70%),
    radial-gradient(34% 40% at 80% 72%, var(--aurora-tone), transparent 70%);
  /* Fades out well before its own edges, so the lights never show a border. */
  -webkit-mask-image: radial-gradient(farthest-side, #000 45%, transparent);
  mask-image: radial-gradient(farthest-side, #000 45%, transparent);
  opacity: var(--aurora);
  pointer-events: none;
}

/* The light spreads past the edges of the screen, so the band trims it there. Otherwise phones and tablets
   widen the whole page to fit it. clip, unlike hidden, keeps the label sticky. */
.band {
  overflow-x: clip;
}

/* The tone of a card, its edge, its light and the glow of its sign, is a colour the browser can ease, so a card
   can let go of its jade gradually instead of in one frame. */
@property --hue {
  syntax: "<color>";
  inherits: true;
  initial-value: transparent;
}

.area {
  --hue: var(--platinum);
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 1.5rem;
  padding: 1.5rem 1.25rem 1.25rem;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-l);
  background: var(--glass);
  box-shadow:
    inset 0 1px 0 var(--sheen),
    0 1.75rem 3rem -2.25rem var(--shade);
  transition: transform var(--slow) var(--ease), box-shadow var(--slow);
}

/* The edge picks up the area's tone from the top corner. */
.area::before {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(145deg, var(--hue), color-mix(in srgb, var(--hue) 20%, transparent) 32%, transparent 58%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0.6;
  transition: opacity var(--medium), transform var(--slow) var(--ease);
  pointer-events: none;
}

/* On hover the whole card lights up evenly as it rises, with no spot of light following the pointer. */
.area::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(180deg, color-mix(in srgb, var(--hue) 10%, transparent), color-mix(in srgb, var(--hue) 4%, transparent));
  opacity: 0;
  transition: opacity var(--slow);
  pointer-events: none;
}

.area:is(:hover, :active)::before,
.area:is(:hover, :active)::after {
  opacity: 1;
}

.motion .area:is(:hover, :active) {
  transform: translateY(-3px);
}

/* Touch screens have no hover, so each card lights up as it comes into view. */
@media (hover: none) {
  .is-in .area::before,
  .is-in .area::after {
    opacity: 1;
  }
}

.area-icon {
  display: grid;
  width: fit-content;
  place-items: center;
  min-width: 2.6rem;
  height: 2.6rem;
  padding: 0 0.55rem;
  border-radius: var(--radius-m);
  background: linear-gradient(145deg, var(--metal-hi), var(--metal) 55%, var(--metal-lo));
  box-shadow: 0 0 1.75rem -0.5rem color-mix(in srgb, var(--hue) 40%, transparent);
  color: var(--plate-ink, var(--bg));
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  white-space: pre;
}

.area h3 {
  margin: 1.1rem 0 0.5rem;
  font-size: 1.3125rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* The name of the area leads to its own page, with the extras and its questions. */
.area h3 a {
  color: inherit;
  text-decoration: none;
  transition: color var(--fast);
}

/* The same arrow leads from the checkup and the care plan on the services page to their own pages. */
:is(.area h3, .tile h4) .arrow-right {
  margin-left: 0.45rem;
  color: var(--green);
  vertical-align: 0.05em;
}

.area h3 a:is(:hover, :active) {
  color: var(--green);
}

:is(.area h3, .tile h4) a:is(:hover, :active) .arrow-right {
  transform: translateX(3px);
}

.area-sum {
  margin: 0;
  color: var(--body);
  line-height: 1.55;
  text-wrap: pretty;
}

/* Tablets and wider: more room inside each card. */
@media (min-width: 40rem) {
  .areas {
    gap: 1.25rem;
  }

  .area {
    grid-template-columns: minmax(0, 0.65fr) minmax(0, 1.35fr);
    gap: 2.25rem;
    align-items: start;
    padding: 1.9rem 1.75rem;
  }

}

@media (min-width: 64rem) {
  .area {
    gap: 3rem;
    padding: 2.1rem 2.25rem 2.1rem 2.1rem;
  }
}

/* Lists of what's included: a plus before each line, like the notes of a plan. */
.area-list {
  display: grid;
  gap: 0.7rem;
  align-content: start;
  margin: 0;
  padding: 1.1rem 0 0;
  list-style: none;
}

.area-list li {
  display: grid;
  grid-template-columns: 1rem minmax(0, 1fr);
  gap: 0.4rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  text-wrap: pretty;
}

.area-list li::before {
  /* A plus that only decorates is written twice: the second line gives it no words, so a screen reader doesn't
     read "plus" before each line or after each question, and a browser that doesn't know that form keeps the first. */
  content: "+";
  content: "+" / "";
  color: var(--label);
  font-family: var(--mono);
}

/* The tiles that carry a page's message, custom work, a project summed up and the principle behind it, are all
   the same tile: lit in green from the corner, with an edge of green metal. Forms and menus stay platinum. */
.custom,
.principle {
  --tile-light: var(--green);
  --tile-mix: 16%;
}

.custom::before,
.principle::before {
  background: var(--jade-edge);
}

/* Custom work: many clients need something that isn't on the list, so it gets the lit tile. */
.custom {
  display: grid;
  gap: 1.75rem;
  margin-top: 1.25rem;
  padding: 1.75rem 1.4rem 1.9rem;
}

.custom h3 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.5rem, 1.25rem + 0.9vw, 2rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.custom-intro p {
  max-width: 34rem;
  margin: 0 0 1.5rem;
  color: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  text-wrap: pretty;
}

/* Under the button, a smaller way in for those who aren't sure yet. */
.custom-intro .custom-more {
  margin: 1.4rem 0 0;
  font-size: 0.9375rem;
}

/* On the home page the examples follow the invitation, and the button and the check-up come after them,
   so on phones the examples read as custom work and not as part of the check-up. */
.custom-work .custom-intro p {
  margin-bottom: 0;
}

.custom-actions .custom-more {
  max-width: 34rem;
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
  text-wrap: pretty;
}

/* In a project's tile, a note under what's included. */
.tile-included .custom-more {
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
  text-wrap: pretty;
}

.custom-more a {
  color: var(--green);
  text-decoration-color: color-mix(in srgb, var(--green) 45%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

.custom-more a:is(:hover, :active) {
  text-decoration-thickness: 2px;
}

/* What's included and the details are small headings of the tile, above what they introduce, never smaller than it:
   the heading at the size of reading text in semibold, and what it lists at the size of supporting text. */
.custom-label {
  margin: 0 0 0.85rem;
  color: var(--text);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.custom-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  font-size: 0.9375rem;
  list-style: none;
}

.custom-list li {
  display: grid;
  grid-template-columns: 1rem minmax(0, 1fr);
  gap: 0.5rem;
  line-height: 1.5;
  text-wrap: pretty;
}

.custom-list li::before {
  content: "+";
  content: "+" / "";
  color: var(--label);
  font-family: var(--mono);
}

@media (min-width: 40rem) {
  .custom {
    padding: 2.25rem 2.25rem 2.4rem;
  }
}

/* As soon as the tile has room for two columns, tablets included: the invitation on the left, the examples on
   the right, so it never keeps to one column with half of itself empty. */
@media (min-width: 48rem) {
  .custom {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 2.25rem;
    align-items: center;
  }

  .custom-examples {
    padding-left: 2.25rem;
    border-left: 1px solid var(--rule);
  }

  /* The invitation and its button stay together on the left, the examples on the right. */
  .custom-work {
    grid-template-areas: "intro examples" "actions examples";
    row-gap: 1.5rem;
    align-items: stretch;
  }

  .custom-work .custom-intro {
    grid-area: intro;
    align-self: end;
  }

  .custom-work .custom-examples {
    grid-area: examples;
    align-self: center;
  }

  .custom-work .custom-actions {
    grid-area: actions;
    align-self: start;
  }
}

@media (min-width: 64rem) {
  .custom {
    gap: 3rem;
    margin-top: 1.5rem;
    padding: 2.5rem 2.75rem;
  }

  .custom-examples {
    padding-left: 2.5rem;
  }
}

/* Process: four steps */

.steps {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
  padding: 0 0 2.25rem 2.25rem;
}

.step::before {
  content: "";
  position: absolute;
  top: 0.3rem;
  left: 0;
  width: 0.6rem;
  height: 0.6rem;
  border: 1px solid var(--hue);
  border-radius: 50%;
  background: var(--hue);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 0 0 4px var(--bg), 0 0 0.9rem 4px color-mix(in srgb, var(--hue) 30%, transparent);
  transition: background-color var(--slow);
}

/* The steps run from the brand colour into its light. */
.step:nth-child(1) {
  --hue: var(--step-from);
}

.step:nth-child(2) {
  --hue: color-mix(in oklab, var(--step-from) 65%, var(--step-to));
}

.step:nth-child(3) {
  --hue: color-mix(in oklab, var(--step-from) 30%, var(--step-to));
}

.step:nth-child(4) {
  --hue: var(--step-to);
}

.step::after {
  content: "";
  position: absolute;
  top: 1.2rem;
  bottom: 0.2rem;
  left: calc(0.3rem - 0.5px);
  width: 1px;
  background: var(--rule-strong);
}

.step:last-child {
  padding-bottom: 0;
}

.step:last-child::after {
  display: none;
}

.motion .step::before {
  background: var(--bg);
}

.motion .is-in .step::before {
  background: var(--hue);
}

.motion .is-in .step:nth-child(1)::before {
  transition-delay: var(--medium);
}

.motion .is-in .step:nth-child(2)::before {
  transition-delay: calc(var(--medium) * 2);
}

.motion .is-in .step:nth-child(3)::before {
  transition-delay: calc(var(--medium) * 3);
}

.motion .is-in .step:nth-child(4)::before {
  transition-delay: calc(var(--medium) * 4);
}

.step-num {
  display: block;
  color: var(--faint);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.step h3 {
  margin: 0.35rem 0 0.45rem;
  font-size: 1.3125rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.step p {
  max-width: 30rem;
  margin: 0;
  color: var(--body);
  line-height: 1.6;
  text-wrap: pretty;
}

/* Tablets: two by two, and so up to 70rem, where four columns would leave each step a dozen letters a line,
   as on an iPad Pro held upright or a small laptop. */
@media (min-width: 40rem) and (max-width: 69.999rem) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.75rem 2.5rem;
  }

  .step {
    padding: 1.5rem 0 0;
    border-top: 1px solid var(--rule);
  }

  .step::before {
    top: calc(-0.3rem - 0.5px);
  }

  .step::after {
    display: none;
  }
}

/* Desktops: a line through the four steps that lights up as the section comes into view. */
@media (min-width: 70rem) {
  .steps {
    position: relative;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2.5rem;
  }

  .steps::before,
  .steps::after {
    content: "";
    position: absolute;
    top: calc(0.3rem - 0.5px);
    right: 0;
    left: 0;
    height: 1px;
    background: var(--rule-strong);
  }

  .steps::after {
    background: linear-gradient(90deg, var(--step-from), var(--step-to));
    transform-origin: left;
  }

  .motion .steps::after {
    transform: scaleX(0);
    transition: transform calc(var(--slow) * 3) var(--ease) var(--medium);
  }

  .motion .is-in .steps::after {
    transform: scaleX(1);
  }

  .step {
    z-index: 1;
    padding: 2.25rem 0 0;
  }

  .step::before {
    top: 0;
  }

  .step::after {
    display: none;
  }
}

/* Contact: what to expect on one side, the form on the other */

.contact-main {
  display: grid;
  gap: 2.5rem;
}

.contact .section-title {
  margin-bottom: 1rem;
}

.contact-text {
  max-width: 34rem;
  margin: 0 0 2rem;
  font-size: var(--read);
  line-height: 1.5;
  letter-spacing: -0.012em;
  text-wrap: pretty;
}

/* What to expect, as a quiet record: each fact under its label, like the address to copy. */
.contact-facts {
  margin: 0;
  border-top: 1px solid var(--rule);
}

.contact-facts > div {
  display: grid;
  gap: 0.2rem;
  padding-block: 0.85rem;
  border-bottom: 1px solid var(--rule);
}

.contact-facts dt {
  color: var(--faint);
  font-size: 0.875rem;
  line-height: 1.5;
}

.contact-facts dd {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.contact-facts > .contact-email {
  gap: 0.6rem;
  padding-bottom: 0.5rem;
}

/* Tablets give the list the whole width, so each fact sits beside its label, like a spec sheet. */
@media (min-width: 40rem) and (max-width: 63.999rem) {
  .contact-facts > div:not(.contact-email) {
    grid-template-columns: 8.5rem minmax(0, 1fr);
    align-items: baseline;
    gap: 1rem;
  }
}

.email-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  max-width: 21rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-m);
  background: var(--field);
  color: var(--text);
  font: 400 0.9375rem/1.2 var(--mono);
  text-decoration: none;
  transition: border-color var(--fast), box-shadow var(--fast);
}

.email-chip:is(:hover, :active) {
  border-color: var(--glow);
}

.email-chip:focus-visible {
  outline: none;
  border-color: var(--glow);
  box-shadow: 0 0 0 3px var(--selection);
}

.email-chip svg {
  flex: none;
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--muted);
}

.email-chip .icon-check {
  display: none;
  color: var(--glow);
}

.email-chip[data-copied] {
  border-color: var(--glow);
}

.email-chip[data-copied] .icon-copy {
  display: none;
}

.email-chip[data-copied] .icon-check {
  display: block;
}

.copy-hint {
  min-height: 1.4em;
  margin: 0.45rem 0 0;
  color: var(--faint);
  font-size: 0.875rem;
  line-height: 1.4;
}

.copy-hint[data-copied] {
  color: var(--glow);
}

/* The form: a lit glass panel over the glyphs. The light that follows the pointer passes underneath it. */
.form {
  isolation: isolate;
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: 1.4rem 1.25rem 1.5rem;
  background:
    radial-gradient(120% 120% at 0% 0%, color-mix(in srgb, var(--tile-light) var(--tile-mix), transparent), transparent 55%),
    var(--glass);
  -webkit-backdrop-filter: blur(8px) saturate(1.3);
  backdrop-filter: blur(8px) saturate(1.3);
}

@media (max-width: 19.49rem) {
  .form {
    padding-inline: 20px;
  }
}

/* While the pointer is over the panel, or someone types in it, the whole panel lights up a little. */
.form::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(180deg, color-mix(in srgb, var(--tile-light) 6%, transparent), color-mix(in srgb, var(--tile-light) 2%, transparent));
  opacity: 0;
  transition: opacity var(--slow);
  pointer-events: none;
}

.form:is(:hover, :active)::after,
.form:focus-within::after {
  opacity: 1;
}

/* Two fields side by side line up at the top, even when one of them shows a note or a suggestion under it. */
.form-field {
  display: grid;
  gap: 0.5rem;
  align-content: start;
}

.form-field label {
  grid-row: 1;
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.3;
}

.form-field label span {
  margin-left: 0.35rem;
  color: var(--faint);
  font-weight: 400;
}

/* A required field says so with a jade asterisk after its label, never red, which reads as an error, and a line at
   the top of the form says what the asterisk means. Screen readers hear "required" from the field itself. */
.req,
.form-field label .req {
  margin-left: 0;
  color: var(--green);
  font-weight: 600;
}

.form-field label .req {
  margin-left: 0.15em;
}

.form-legend {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.4;
}

/* The field being filled in catches the light on an edge of jade metal, the colour of whatever is active on the site.
   The edge shares the field's cell in the grid, so it follows the message box as it grows. */
.form-field > :is(input, textarea, .select),
.form-field::after {
  grid-area: 2 / 1;
}

.form-field::after {
  content: "";
  position: relative;
  z-index: 1;
  padding: 1px;
  border-radius: var(--radius-m);
  background: var(--jade-edge);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--medium);
  pointer-events: none;
}

.form-field:focus-within::after {
  opacity: 1;
}

.form input:not([type="hidden"]),
.form select,
.form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--field-line);
  border-radius: var(--radius-m);
  background: var(--field);
  color: var(--text);
  font: inherit;
  line-height: 1.5;
  transition: border-color var(--fast), box-shadow var(--medium), padding var(--medium) var(--ease);
}

.form textarea {
  min-height: 9.5rem;
  resize: vertical;
}

/* A field reached with the keyboard stops below the header with its label in view. */
.form :is(input, select, textarea) {
  scroll-margin-top: 2.5rem;
}

/* The message box grows with what's written, up to a point, so it needs no handle.
   Where the browser can't size it on its own, main.js does and marks it with data-grows. */
@supports (field-sizing: content) {
  .form textarea {
    field-sizing: content;
    max-height: 22rem;
    resize: none;
  }
}

.form textarea[data-grows] {
  max-height: 22rem;
  resize: none;
}

.form input::placeholder,
.form textarea::placeholder {
  color: var(--faint);
  opacity: 1;
}

.form input:is(:hover, :active),
.form select:is(:hover, :active),
.form textarea:is(:hover, :active) {
  border-color: var(--faint);
}

/* A field that needs another look says so in its own words, under it, and its edge turns to the same colour. */
.form-field[data-invalid] > :is(input, textarea) {
  border-color: color-mix(in srgb, var(--error) 75%, transparent);
}

.form-field[data-invalid]::after {
  background: var(--error);
}

.form-field:focus-within > :is(input, textarea),
.form-field:focus-within select {
  border-color: transparent;
}

.form input:focus-visible,
.form select:focus-visible,
.form textarea:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--green) 12%, transparent),
    0 0 1.75rem -0.5rem color-mix(in srgb, var(--green) 35%, transparent);
}

.form-field[data-invalid] > :focus-visible {
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--error) 12%, transparent),
    0 0 1.75rem -0.5rem color-mix(in srgb, var(--error) 30%, transparent);
}

.field-error {
  grid-row: 3;
  margin: 0;
  color: var(--error);
  font-size: 0.875rem;
  line-height: 1.4;
  text-wrap: pretty;
}

.motion .field-error {
  animation: settle var(--medium) var(--ease);
}

/* When an address looks mistyped, the likely one sits under it, ready to take with a click. */
.field-suggest {
  grid-row: 3;
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.4;
}

.field-suggest button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--green);
  font: 500 0.875rem/1.4 var(--sans);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--green) 45%, transparent);
  text-underline-offset: 0.2em;
  cursor: pointer;
}

.field-suggest button:is(:hover, :active) {
  text-decoration-color: var(--green);
}

/* Under a note that the address can't receive mail, the likely fix is the next thing to read. */
.form-field:has(.field-error) > .field-suggest {
  grid-row: 4;
}

.motion .field-suggest {
  animation: settle var(--medium) var(--ease);
}

@keyframes settle {
  from {
    opacity: 0;
    transform: translateY(-0.3rem);
  }
}

/* Browsers paint autofilled fields in their own colours; these keep the field's own. */
.form input:-webkit-autofill {
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  box-shadow: inset 0 0 0 3rem var(--field-solid);
}

.form input:-webkit-autofill:focus-visible {
  box-shadow:
    inset 0 0 0 3rem var(--field-solid),
    0 0 0 3px color-mix(in srgb, var(--green) 12%, transparent),
    0 0 1.75rem -0.5rem color-mix(in srgb, var(--green) 35%, transparent);
}

/* The topic menu looks like the other fields, with its own arrow. Once a topic is chosen,
   its sign resolves on a platinum plate at the start of the field, like the text across the site. */
.select {
  position: relative;
}

.form select {
  padding-right: 2.75rem;
  appearance: none;
  cursor: pointer;
}

.select[data-glyph] select {
  padding-left: 3.6rem;
}

.form select:has(option[value=""]:checked) {
  color: var(--faint);
}

.form option {
  background: var(--bg);
  color: var(--text);
}

.select-glyph {
  position: absolute;
  top: 50%;
  left: 0.6rem;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2rem;
  margin-top: -1rem;
  border-radius: var(--radius-s);
  background: linear-gradient(145deg, var(--metal-hi), var(--metal) 55%, var(--metal-lo));
  box-shadow: 0 0 1.25rem -0.4rem color-mix(in srgb, var(--platinum) 45%, transparent);
  color: var(--plate-ink, var(--bg));
  font: 600 0.8125rem/1 var(--mono);
  letter-spacing: -0.04em;
  white-space: pre;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity var(--fast), transform var(--medium) var(--ease);
  pointer-events: none;
}

.select[data-glyph] .select-glyph {
  opacity: 1;
  transform: none;
}

.select svg {
  position: absolute;
  top: 50%;
  right: 1.1rem;
  width: 0.75rem;
  height: 0.75rem;
  margin-top: -0.375rem;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--medium) var(--ease);
  pointer-events: none;
}

/* Where the browser lets the page draw the open menu (Chrome, Edge and Safari 27), it becomes a panel in the colours
   of the tiles, with a polished platinum edge, and each topic carries its sign from the same alphabet as the glyphs.
   Other browsers keep their own list, with the same plate in the field once a topic is chosen. */
@supports (appearance: base-select) {
  .form select,
  .form select::picker(select) {
    appearance: base-select;
  }

  .form select::picker-icon {
    display: none;
  }

  .select:has(select:open) svg {
    transform: rotate(180deg);
  }

  .form select::picker(select) {
    width: anchor-size(width);
    margin-block: 0.5rem;
    padding: 0.375rem;
    border: 1px solid transparent;
    border-radius: var(--radius-l);
    background:
      radial-gradient(120% 120% at 0% 0%, color-mix(in srgb, var(--tile-light) var(--tile-mix), transparent), transparent 55%) padding-box,
      linear-gradient(180deg, var(--tile-top), var(--tile-bottom)) padding-box,
      linear-gradient(135deg, var(--metal-hi), var(--metal-lo) 30%, var(--metal) 55%, var(--metal-lo) 80%, var(--metal-hi)) border-box;
    box-shadow:
      inset 0 1px 0 var(--sheen),
      0 1.75rem 3rem -1.25rem var(--shade);
    color: var(--text);
    position-try-order: normal;
    position-try-fallbacks: flip-block;
    opacity: 0;
    transition: opacity var(--fast), transform var(--medium) var(--ease), display var(--medium) allow-discrete, overlay var(--medium) allow-discrete;
  }

  .form select:open::picker(select) {
    opacity: 1;
  }

  @starting-style {
    .form select:open::picker(select) {
      opacity: 0;
    }
  }

  /* With motion, the panel settles into place as it opens. */
  .motion .form select::picker(select) {
    transform: translateY(-0.35rem);
  }

  .motion .form select:open::picker(select) {
    transform: none;
  }

  @starting-style {
    .motion .form select:open::picker(select) {
      transform: translateY(-0.35rem);
    }
  }

  .form option {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-height: 2.75rem;
    padding: 0.375rem 0.9rem 0.375rem 0.375rem;
    border-radius: var(--radius-m);
    background: transparent;
    color: var(--muted);
    font-size: 0.9375rem;
    line-height: 1.3;
    cursor: pointer;
    transition: color var(--fast);
  }

  /* "Choose a topic" names the empty field; the open menu only lists the topics. */
  .form option[value=""] {
    display: none;
  }

  /* Each sign sits on a plate, engraved at rest and polished under the pointer or once chosen. */
  .form option::before {
    content: attr(data-glyph);
    content: attr(data-glyph) / "";
    flex: none;
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2rem;
    border: 1px solid var(--rule-strong);
    border-radius: var(--radius-s);
    background: linear-gradient(145deg, var(--metal-hi), var(--metal) 55%, var(--metal-lo)) border-box;
    box-shadow:
      inset 0 0 0 2rem var(--tile-top),
      0 0 1.25rem -0.4rem transparent;
    color: var(--platinum);
    font: 600 0.8125rem/1 var(--mono);
    letter-spacing: -0.04em;
    white-space: pre;
    transition: box-shadow var(--medium) var(--ease), color var(--fast), border-color var(--fast);
  }

  .form option:is(:hover, :focus-visible, :checked)::before {
    border-color: transparent;
    box-shadow:
      inset 0 0 0 2rem color-mix(in srgb, var(--tile-top) 0%, transparent),
      0 0 1.25rem -0.4rem color-mix(in srgb, var(--platinum) 45%, transparent);
    color: var(--plate-ink, var(--bg));
  }

  /* The row under the pointer lights up evenly. */
  .form option:is(:hover, :focus-visible) {
    outline: none;
    background: color-mix(in srgb, var(--platinum) 8%, transparent);
    color: var(--text);
  }

  .form option:checked {
    color: var(--text);
  }

  /* The chosen topic is ticked at the end of its row with a fine jade check. */
  .form option::checkmark {
    order: 1;
    width: 0.4rem;
    height: 0.75rem;
    margin: -0.2rem 0.2rem 0 auto;
    border: solid var(--green);
    border-width: 0 1.5px 1.5px 0;
    content: "";
    content: "" / "";
    transform: rotate(45deg);
  }
}

/* A field people never see: bots that fill in every input give themselves away. */
.form-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions {
  display: grid;
  gap: 1rem;
  align-items: center;
  margin-top: 0.25rem;
}

.send {
  width: 100%;
  padding: calc(1rem - 1px) calc(1.6rem - 1px);
  border-radius: 999px;
  font: 600 1rem/1 var(--sans);
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: transform var(--fast) var(--ease), opacity var(--fast), box-shadow var(--medium);
}

.send:disabled {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}

.form-note {
  margin: 0;
  color: var(--faint);
  font-size: 0.875rem;
  line-height: 1.5;
  text-wrap: pretty;
}

/* A link under a form, like the privacy policy, or the way to send a message by email when it couldn't be sent, is
   jade like everything that can be clicked, even inside a message in the error's colour. */
.form-note a,
.form-status a {
  color: var(--green);
  text-decoration-color: color-mix(in srgb, var(--green) 45%, transparent);
  text-underline-offset: 0.2em;
}

.form-note a:is(:hover, :active),
.form-status a:is(:hover, :active) {
  text-decoration-color: var(--green);
}

.form-status {
  margin: 0;
  color: var(--muted);
  text-wrap: pretty;
}

.form-status:empty {
  display: none;
}

.form[data-state="error"] .form-status {
  color: var(--error);
}

/* Once the message is on its way, the panel keeps its size and the fields give way to a confirmation,
   centred in the panel: a check drawn on a plate of jade metal, who it's for and when the reply comes. */
.form > * {
  transition: opacity var(--medium) calc(var(--fast) / 2), visibility 0s;
}

.form[data-state="sent"] > :not(.form-done) {
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--fast), visibility 0s var(--fast);
}

.form-done {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: inherit;
  text-align: center;
}

.form-done[hidden] {
  display: none;
}

/* Sent: the check sits on a plate of green metal, the colour of what went right. */
.form-done-plate {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-m);
  border: 1px solid transparent;
  background: var(--jade-fill) padding-box, var(--jade-edge) border-box;
  box-shadow: var(--bevel), 0 0 2rem -0.5rem color-mix(in srgb, var(--accent) 55%, transparent);
  color: var(--on-accent);
}

.form-done-plate svg {
  width: 1.4rem;
  height: 1.4rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.form-done-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 1.25rem + 0.9vw, 2rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

/* The title takes focus so screen readers announce it; it isn't something to click, so it shows no ring. */
.form-done-title:focus {
  outline: none;
}

.form-done-text {
  max-width: 30rem;
  margin: 0 0 1.75rem;
  color: var(--body);
  line-height: 1.55;
  text-wrap: pretty;
}

.form-done-again {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--green);
  font: 500 0.9375rem/1.4 var(--sans);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--green) 45%, transparent);
  text-underline-offset: 0.3em;
  cursor: pointer;
  transition: text-decoration-color var(--fast);
}

.form-done-again:is(:hover, :active) {
  text-decoration-color: var(--green);
}

.form-done-again:is(:hover, :active) > .arrow-right {
  transform: translateX(3px);
}

.motion .form-done-plate {
  animation: emerge var(--slow) var(--ease) both;
}

.motion .form-done-plate path {
  stroke-dasharray: 15;
  animation: draw var(--slow) var(--medium) var(--ease) both;
}

.motion .form-done > :not(.form-done-plate) {
  animation: settle var(--slow) var(--fast) var(--ease) both;
}

@keyframes emerge {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
}

@keyframes draw {
  from {
    stroke-dashoffset: 15;
  }
}

@media (min-width: 40rem) {
  .form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 2rem;
    -webkit-backdrop-filter: blur(14px) saturate(1.3);
    backdrop-filter: blur(14px) saturate(1.3);
  }

  .form-wide {
    grid-column: 1 / -1;
  }

  .form-actions {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1.5rem;
  }

  .send {
    width: auto;
  }
}

/* Desktops: what to expect on the left, the form on the right. */
@media (min-width: 64rem) {
  .contact-main {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(2.5rem, 5vw, 4.5rem);
    align-items: start;
  }

  .form {
    padding: 2.25rem;
  }
}

/* Under the contact text, the way into the guided form for those who'd rather answer a few questions. */
.contact-guide {
  margin: -1.25rem 0 2rem;
}

.contact-guide {
  text-wrap: pretty;
}

/* Inline, so the arrow follows the last word when the line wraps. */
.contact-guide .arrow-right {
  display: inline-block;
  margin-left: 0.45rem;
  vertical-align: -0.05em;
}

.contact-guide a {
  color: var(--green);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--green) 45%, transparent);
  text-underline-offset: 0.3em;
  transition: text-decoration-color var(--fast);
}

.contact-guide a:is(:hover, :active) {
  text-decoration-color: var(--green);
}

/* Phones and tablets close each page short: a line, the guided form first and a message one tap away, so the
   full form isn't crossed again on every page. "Write to me instead", or Contact in the menu, opens it in place,
   with the text and the way into the guided form it had before. Without JavaScript, and on desktops, the
   section stays as it was. */
.contact-lead,
.contact-actions,
.contact-brief {
  display: none;
}

@media (max-width: 63.999rem) {
  /* Only the contact section's own parts: the guided form's page wears .contact too, for its band. */
  .js .contact:not(.is-writing) :is(.contact-intro > .contact-text, .contact-intro > .contact-guide, .contact-main > .form),
  .js .contact.is-writing :is(.contact-lead, .contact-actions),
  .js .contact-facts {
    display: none;
  }

  .js .contact:not(.is-writing) .contact-lead {
    display: block;
    max-width: 34rem;
    margin: 0;
    font-size: var(--read);
    line-height: 1.5;
    letter-spacing: -0.012em;
    text-wrap: pretty;
  }

  .js .contact:not(.is-writing) .contact-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
    max-width: 34rem;
    margin-top: 1.75rem;
  }

  .contact-actions .btn {
    justify-content: center;
  }

  @media (min-width: 40rem) {
    .js .contact:not(.is-writing) .contact-actions {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  .js .contact-brief {
    display: block;
    max-width: 34rem;
    margin: 1.25rem 0 0;
    color: var(--muted);
    font-size: 0.875rem;
    line-height: 1.55;
    text-wrap: pretty;
  }

  .motion .contact.is-writing .contact-main > .form {
    animation: write-in var(--medium) var(--ease);
  }
}

@keyframes write-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

/* Get a price: the guided form, on a band over the glyphs like Contact. On desktops the estimate and how it
   works sit on the left and the glass panel on the right; public/start.js shows one question at a time.
   Without JavaScript every question shows, one after another, and the form still sends. */

.start {
  padding-bottom: var(--space);
}

.start-inner {
  gap: clamp(2.25rem, 5vh, 3.5rem);
}

.start-head {
  display: grid;
  gap: clamp(1.25rem, 3vh, 1.75rem);
}

.start-head .eyebrow {
  margin: 0;
}

.start-main {
  display: grid;
  gap: 2.5rem;
}

/* Phones and tablets: the form first, the estimate and how it works after it. */
.start-aside {
  order: 1;
  display: grid;
  gap: 2rem;
}

.form.start-form {
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  align-content: start;
}

.start-form [hidden] {
  display: none !important;
}

.start-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

/* Where the visitor is: the question, a fair guess of the time left and a fine jade line that fills as it goes,
   ahead early and slower towards the end. The question and the time share a line where they fit; where they don't,
   the time moves whole to the line below, and neither breaks in the middle. */
.start-top {
  display: none;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
}

.start-left {
  margin: 0 0 0 auto;
  color: var(--faint);
  font-size: 0.875rem;
  line-height: 1.3;
  text-align: right;
}

.js .start-top {
  display: flex;
}

/* Where the longest question and time left can't share a line, they never do: the time keeps its own line under the
   question from the first screen on, so the first choice, which lengthens both, moves nothing under the finger. */
@container (width < 18.5rem) {
  .start-left {
    flex-basis: 100%;
    margin-left: 0;
    text-align: left;
  }
}

@container (width < 20.5rem) {
  :lang(es) .start-left {
    flex-basis: 100%;
    margin-left: 0;
    text-align: left;
  }
}

.start-count {
  margin: 0;
  color: var(--label);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.start-line {
  display: block;
  flex: 1 0 100%;
  margin-top: 0.4rem;
  height: 2px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--rule);
}

.start-line > span {
  display: block;
  height: 100%;
  background: var(--jade-line);
  transform: scaleX(0.04);
  transform-origin: left;
  transition: transform var(--slow) var(--ease);
}

/* Each question is a screen of its own: the heading it belongs under, the question, a plain line when it needs
   one, and its answers. Without JavaScript they follow one another. */
.start-screens {
  display: grid;
  gap: 3rem;
}

.js .start-screens {
  gap: 0;
}

.start-screen {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
}

.start-q {
  margin: 0;
  font-size: clamp(1.375rem, 1.15rem + 0.8vw, 1.75rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

/* The question takes focus when its step opens, so screen readers announce it; it shows no ring. */
.start-q:focus {
  outline: none;
}

.start-note {
  margin: -0.65rem 0 0.25rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.5;
  text-wrap: pretty;
}

/* What each question is about: a short label with the platinum bar of the site's labels. The websites of the
   first screen, one of which is chosen, are headed the same way. */
.start-about,
.start-sites-name {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0.5rem 0 0;
  color: var(--label);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.start-about::before,
.start-sites-name::before {
  content: "";
  flex: none;
  width: 1rem;
  height: 1px;
  background: linear-gradient(90deg, var(--metal-lo), var(--metal-hi) 50%, var(--metal));
}

.start-about {
  margin: 0 0 -0.6rem;
}

/* The first screen: the projects by service, each group under its platinum plate, like the menus. */
.start-group {
  display: grid;
  gap: 0.6rem;
}

.start-group + .start-group {
  margin-top: 0.5rem;
}

.start-group-name {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0;
  color: var(--label);
  font-size: 0.875rem;
  font-weight: 500;
}

.start-group-name .area-icon {
  min-width: 2.2rem;
  height: 1.8rem;
  padding: 0 0.4rem;
  border-radius: var(--radius-s);
  font-size: 0.75rem;
}

/* A choice is a row in the colours of the fields. Chosen, it takes a jade edge and a faint jade tint,
   and its mark fills with jade metal. */
.choices {
  display: grid;
  gap: 0.5rem;
}

/* One answer per row on narrow panels. As the panel widens, pairs and many-answer lists go two by two,
   and three answers line up in three columns, so no choice is ever left alone on a row. */
.start-screen > .choices {
  grid-template-columns: minmax(0, 1fr);
}

@container (min-width: 24rem) {
  .start-screen > .choices-many {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@container (min-width: 30rem) {
  .start-screen > .choices:is(:has(> :last-child:nth-child(2)), :has(> :last-child:nth-child(4))) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@container (min-width: 36rem) {
  .start-screen > .choices:has(> :last-child:nth-child(3)) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.choice {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  min-height: 3rem;
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--field-line);
  border-radius: var(--radius-m);
  background: var(--field);
  cursor: pointer;
  transition: border-color var(--fast), background-color var(--fast);
}

@media (max-width: 19.49rem) {
  .choice {
    gap: 14px;
    padding-inline: 15px;
  }
}

.choice:is(:hover, :active) {
  border-color: var(--faint);
}

/* The real control covers its row, so the whole row answers a click or a tap, and keyboards reach it as usual. */
.choice input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.choice-mark {
  display: grid;
  place-items: center;
  width: 1.125rem;
  height: 1.125rem;
  border: 1.5px solid var(--rule-strong);
  border-radius: 50%;
  transition: border-color var(--fast);
}

.choice-mark::after {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--jade-fill);
  transform: scale(0);
  transition: transform var(--fast) var(--ease);
}

.choice:has(input[type="checkbox"]) .choice-mark {
  border-radius: var(--radius-s);
}

.choice:has(input[type="checkbox"]) .choice-mark::after {
  width: 0.3rem;
  height: 0.58rem;
  border: solid var(--on-accent);
  border-width: 0 1.5px 1.5px 0;
  border-radius: 0;
  background: none;
  transform: translateY(-0.05rem) rotate(45deg) scale(0);
}

.choice:has(input:checked) {
  border-color: color-mix(in srgb, var(--accent) 65%, transparent);
  background: color-mix(in srgb, var(--green) 7%, var(--field));
}

.choice:has(input:checked) .choice-mark {
  border-color: var(--accent);
}

.choice:has(input[type="radio"]:checked) .choice-mark::after {
  transform: scale(1);
}

.choice:has(input[type="checkbox"]:checked) .choice-mark {
  border: 1px solid transparent;
  background: var(--jade-fill) padding-box, var(--jade-edge) border-box;
}

.choice:has(input[type="checkbox"]:checked) .choice-mark::after {
  transform: translateY(-0.05rem) rotate(45deg) scale(1);
}

/* A project already part of another one chosen waits, greyed, with a line that says so. */
.choice:has(input:disabled) {
  border-style: dashed;
  background: transparent;
  cursor: default;
}

.choice:has(input:disabled) :is(.choice-name, .choice-price, .choice-mark) {
  opacity: 0.45;
}

.choice:has(input:disabled) input {
  cursor: default;
}

.choice:has(input:focus-visible) {
  outline: 2px solid var(--glow);
  outline-offset: 2px;
}

.choice-text {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.choice-name {
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.35;
}

.choice-sub {
  color: var(--faint);
  font-size: 0.875rem;
  line-height: 1.4;
}

.choice-price {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.3;
  text-align: right;
  white-space: nowrap;
}

.choice-price span {
  color: var(--faint);
  font-weight: 400;
}

.choice-price-plan {
  max-width: 8rem;
  color: var(--faint);
  font-size: 0.875rem;
  font-weight: 400;
  white-space: normal;
}

.choice:has(input:checked) .choice-price {
  color: var(--text);
}

/* A project's price sits at the top right of its row, and its name and what it covers wrap around it, so the
   list stays short on phones without squeezing either. */
.choice-project {
  grid-template-columns: auto minmax(0, 1fr);
}

.choice-project .choice-text {
  display: block;
}

.choice-project :is(.choice-name, .choice-sub) {
  display: block;
}

.choice-project .choice-name {
  margin-bottom: 0.1rem;
}

.choice-project .choice-price {
  float: right;
  margin: 0.05rem 0 0.15rem 0.9rem;
}

/* With the text at its largest, a row has no room for the price beside the name: the price goes on a line of its
   own, under what the project covers. At usual sizes, on any phone, the form is wider than this. */
@container (max-width: 14.5rem) {
  .choice-project .choice-text {
    display: flex;
  }

  .choice-project .choice-price {
    order: 1;
    max-width: none;
    margin: 0.35rem 0 0;
    text-align: left;
    white-space: normal;
  }

  .choice-project .start-fold {
    order: 2;
  }
}

/* Answers go side by side only when the panel itself is wide enough, whatever the screen. */
.start-form {
  container-type: inline-size;
}

/* A count is a short field: its box and the jade edge it catches keep to the width of a number, so it never reads
   as a small field inside a wide one. A note under it still gets the whole width. */
.start-count-field input {
  max-width: 8rem;
}

.start-count-field::after {
  justify-self: start;
  width: min(100%, 8rem);
}

/* The lists of the guided form keep plain rows: their answers have no signs to show. */
.start-select option::before {
  content: none;
  display: none;
}

/* A written answer takes the whole field, with no label of its own: the question above names it. */
.start-answer > :is(input, textarea),
.start-answer::after {
  grid-area: 1 / 1;
}

.start-answer textarea {
  min-height: 9rem;
}

/* The call: a choice like the answers, with the time zone folded under it until it's ticked. */
.start-call {
  display: grid;
}

.start-call .start-fold-in > .form-field {
  padding-top: 0.85rem;
}

.start-you {
  display: grid;
  gap: 1.25rem;
}

.start-form textarea {
  min-height: 5rem;
}

@media (min-width: 40rem) {
  .start-you {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.start-estimate-label {
  margin: 0;
  color: var(--label);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Back on the left, the way forward on the right. Without JavaScript only the send button shows. */
.start-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.start-back,
.start-next {
  display: none;
}

.js .start-back,
.js .start-next {
  display: inline-flex;
}

.js .start-nav .send,
.start-next {
  width: auto;
  margin-left: auto;
}

/* The list of projects is the one long screen: once something is chosen, the way forward stays at the bottom of
   the window instead of waiting at the end of the list. */
.js .start-form[data-screen="projects"][data-chosen] > .start-nav {
  position: sticky;
  bottom: 1rem;
  z-index: 2;
  pointer-events: none;
}

.js .start-form[data-screen="projects"][data-chosen] > .start-nav > * {
  pointer-events: auto;
}

.js .start-form[data-screen="projects"][data-chosen] .start-next {
  box-shadow: var(--bevel), var(--lift);
}

/* The "choose a project" error sits under the question, a little closer to it than the answers are. */
.start-error {
  margin-top: -0.65rem;
}

/* There's more below: when the way forward is under the screen, a fine arrow in a platinum ring waits at the
   bottom, breathes three times and rests. It comes and goes with a short fade. */
.start-more {
  position: fixed;
  left: 50%;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  z-index: 15;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%);
  cursor: pointer;
  transition: opacity var(--medium) var(--ease), visibility 0s linear var(--medium);
}

.start-more.is-on {
  opacity: 1;
  visibility: visible;
  transition: opacity var(--medium) var(--ease), visibility 0s;
}

.start-more-ring {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border: 1px solid transparent;
  border-radius: 50%;
  background:
    linear-gradient(180deg, var(--tile-top), var(--tile-bottom)) padding-box,
    linear-gradient(135deg, var(--metal-hi), var(--metal-lo) 30%, var(--metal) 55%, var(--metal-lo) 80%, var(--metal-hi)) border-box;
  opacity: 0.92;
  transition: opacity var(--fast);
}

.start-more:is(:hover, :active) .start-more-ring {
  opacity: 1;
}

/* Over the panel the arrow rests on a veil as wide as the panel, from the bottom of the window up: the answers
   under it fade into the panel instead of being cut by the ring. Beside the panel there's nothing under it. */
.start-more::before,
.js .start-form[data-screen="projects"][data-chosen] > .start-nav::before {
  content: "";
  position: absolute;
  z-index: -1;
  height: calc(6.5rem + env(safe-area-inset-bottom, 0px));
  /* The panel's own surface, its glass over the band, so the veil can't be told from the panel. */
  background:
    linear-gradient(0deg, var(--glass) 58%, transparent),
    linear-gradient(0deg, var(--bg) 58%, transparent);
  pointer-events: none;
}

/* While the panel is lit, under the pointer or with an answer in focus, the veil carries the same light. */
.js .start-form:is(:hover, :active, :focus-within)[data-screen="projects"][data-chosen] > .start-nav::before {
  background:
    linear-gradient(0deg, color-mix(in srgb, var(--tile-light) 4%, transparent) 58%, transparent),
    linear-gradient(0deg, var(--glass) 58%, transparent),
    linear-gradient(0deg, var(--bg) 58%, transparent);
}

.start-more::before {
  left: 50%;
  bottom: calc(-1rem - env(safe-area-inset-bottom, 0px));
  width: var(--veil-width, 0px);
  transform: translateX(-50%);
}

.start-more.is-beside::before {
  display: none;
}

/* The way forward, while it waits at the bottom of the window over the list, stands on the same veil, from one
   side of the panel to the other. */
.js .start-form[data-screen="projects"][data-chosen] > .start-nav::before {
  inset-inline: -1.25rem;
  bottom: calc(-1rem - env(safe-area-inset-bottom, 0px));
  opacity: 0;
  transition: opacity var(--medium) var(--ease);
}

.js .start-form[data-screen="projects"][data-chosen] > .start-nav[data-stuck]::before {
  opacity: 1;
}

@media (min-width: 40rem) {
  .js .start-form[data-screen="projects"][data-chosen] > .start-nav::before {
    inset-inline: -2rem;
  }
}

.start-more svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes start-breathe {
  50% {
    opacity: 0.5;
    transform: translateY(0.25rem);
  }
}

.motion .start-more.is-on svg {
  animation: start-breathe calc(var(--slow) * 3) var(--ease) var(--medium) 3;
}

/* While a question is unanswered, the way forward says "Skip" and takes the platinum of Back, and stays put. */
.start-next.is-skip {
  color: var(--text);
}

.start-next.is-skip:is(:hover, :active) {
  transform: none;
}

/* Sent: the panel shrinks to the confirmation, with the reference under it. */
.start-form[data-state="sent"] > :not(.form-done) {
  display: none;
}

.start-form .form-done {
  position: static;
  padding: 1.5rem 0;
}

.start-done .form-done-text {
  margin-bottom: 0.4rem;
}

.start-done-ref {
  margin: 0.6rem 0 0.75rem;
  color: var(--faint);
  font-size: 0.875rem;
  letter-spacing: 0.04em;
}

@media (min-width: 64rem) {
  .start-main {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(2.5rem, 5vw, 4.5rem);
    align-items: start;
  }

  .start-aside {
    position: sticky;
    top: calc(var(--head) + 2rem);
    order: 0;
    display: grid;
    gap: 2.5rem;
  }

}

/* The first screen as the visitor answers it. The websites are one choice, with round marks, and can be unchosen
   with a second tap; "not sure yet" sits apart at the end, with a round mark because it goes on its own. What the launch
   package already includes folds into it, and a quiet line says why when one choice changes another. */
.start-group,
.choices-projects,
.choice-text {
  display: flex;
  flex-direction: column;
}

.start-sites {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.start-sites-name {
  margin-top: 0.35rem;
}

.choice-included {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.3rem;
  color: var(--green);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.35;
}

.choice-included .icon-check {
  flex: none;
  width: 0.9rem;
  height: 0.9rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.choice.choice-alone:has(input) .choice-mark {
  border-radius: 50%;
}

.choice.choice-alone:has(input) .choice-mark::after {
  width: 0.5rem;
  height: 0.5rem;
  border: 0;
  border-radius: 50%;
  background: var(--jade-fill);
  transform: scale(0);
}

.choice.choice-alone:has(input:checked) .choice-mark {
  border: 1.5px solid var(--accent);
  background: none;
}

.choice.choice-alone:has(input:checked) .choice-mark::after {
  transform: scale(1);
}

.start-group.start-unsure {
  margin-top: 0.75rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--rule);
}

/* A line that says what just changed, with a way to take it back. */
.start-notice {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.6rem;
  margin: 0;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius-m);
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.start-undo,
.start-bar-change {
  padding: 0.2rem 0.1rem;
  margin: -0.2rem -0.1rem;
  border: 0;
  border-radius: var(--radius-s);
  background: none;
  color: var(--green);
  font: 500 0.875rem/1.4 var(--sans);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--green) 40%, transparent);
  text-underline-offset: 0.2em;
  cursor: pointer;
  transition: text-decoration-color var(--fast);
}

.start-undo:is(:hover, :active),
.start-bar-change:is(:hover, :active) {
  text-decoration-color: currentColor;
}

.start-undo:focus-visible,
.start-bar-change:focus-visible,
.start-nudge-switch:focus-visible {
  outline: 2px solid var(--glow);
  outline-offset: 2px;
}

/* Two projects that cost what the launch package costs: the package, offered with a way to switch to it. */
.start-nudge {
  display: grid;
  gap: 0.75rem;
  justify-items: start;
  padding: 0.95rem 1.05rem;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  border-radius: var(--radius-l);
  background: color-mix(in srgb, var(--green) 6%, var(--field));
}

.start-nudge p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  text-wrap: pretty;
}

.start-nudge-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.5rem;
  padding: 0 1rem;
  border: 1px solid color-mix(in srgb, var(--accent) 65%, transparent);
  border-radius: 999px;
  background: transparent;
  color: var(--green);
  font: 600 0.875rem/1.2 var(--sans);
  text-align: left;
  cursor: pointer;
  transition: background-color var(--fast), border-color var(--fast);
}

.start-nudge-switch:is(:hover, :active) {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--green) 10%, transparent);
}

.start-nudge-switch:is(:hover, :active) .arrow-right {
  transform: translateX(2px);
}

.start-tip {
  margin: 0;
  padding: 0.7rem 0.9rem;
  border: 1px dashed var(--rule-strong);
  border-radius: var(--radius-m);
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.5;
  text-wrap: pretty;
}

/* Folds: what shows or hides in place. The height eases open and shut (the parents stack with flex, so a fold
   takes its gap with it), and what's folded is neither seen, reached nor sent. Without JavaScript, only what
   is folded in the markup stays out of sight. */
.start-fold {
  --fold-gap: 0px;
  display: grid;
  grid-template-rows: 1fr;
}

.start-fold-in {
  display: block;
  min-height: 0;
  /* Room for a focus ring, which the clipping would otherwise cut. */
  margin: -4px;
  padding: 4px;
  overflow: hidden;
}

.start-fold[data-folded] {
  grid-template-rows: 0fr;
  margin-top: calc(-1 * var(--fold-gap));
  opacity: 0;
  visibility: hidden;
}

.choices-projects > .start-fold {
  --fold-gap: 0.5rem;
}

.start-group > .start-fold {
  --fold-gap: 0.6rem;
}

.start-screen > .start-fold {
  --fold-gap: 1.25rem;
}

.choice-text > .start-fold {
  --fold-gap: 0.1rem;
}

.motion .start-ready .start-fold {
  transition: grid-template-rows var(--medium) var(--ease), margin-top var(--medium) var(--ease), opacity var(--fast) var(--ease), visibility 0s;
}

.motion .start-ready .start-fold[data-folded] {
  transition: grid-template-rows var(--medium) var(--ease), margin-top var(--medium) var(--ease), opacity var(--fast) var(--ease), visibility 0s linear var(--medium);
}

/* Each question comes in from the side it's heading to, from the right going forward and from the left going
   back, and its answers follow one after another. Meanwhile the panel eases to the new height. */
@keyframes start-forward {
  from {
    opacity: 0;
    transform: translateX(1.5rem);
  }
}

@keyframes start-back {
  from {
    opacity: 0;
    transform: translateX(-1.5rem);
  }
}

@keyframes start-rise {
  from {
    opacity: 0;
    transform: translateY(0.45rem);
  }
}

.motion .start-screen.is-forward {
  animation: start-forward var(--medium) var(--ease) both;
}

.motion .start-screen.is-back {
  animation: start-back var(--medium) var(--ease) both;
}

.motion .start-screen:is(.is-forward, .is-back) > .choices > .choice {
  animation: start-rise var(--medium) var(--ease) both;
}

.motion .start-screen > .choices > .choice:nth-child(2) {
  animation-delay: calc(var(--fast) / 5);
}

.motion .start-screen > .choices > .choice:nth-child(3) {
  animation-delay: calc(var(--fast) / 5 * 2);
}

.motion .start-screen > .choices > .choice:nth-child(4) {
  animation-delay: calc(var(--fast) / 5 * 3);
}

.motion .start-screen > .choices > .choice:nth-child(n + 5) {
  animation-delay: calc(var(--fast) / 5 * 4);
}

.start-screens.is-resizing {
  overflow: hidden;
  transition: height var(--medium) var(--ease);
}

/* The choice so far and its estimate: on phones and tablets a line at the top of the panel, on desktops a tile
   under the steps. Under the total it always says that nothing is paid now. */
.start-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.15rem 0.85rem;
  padding: 0.7rem 0.85rem 0.7rem 0.95rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius-m);
  background: var(--field);
}

.start-bar-names,
.start-bar-total {
  margin: 0;
  line-height: 1.4;
}

.start-bar-total {
  grid-column: 1 / -1;
}

.start-bar .start-from {
  color: inherit;
  font-size: inherit;
}

.start-bar-names {
  font-size: 0.875rem;
  font-weight: 500;
  text-wrap: pretty;
}

.start-bar-total {
  color: var(--muted);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}

.start-bar-free::before {
  content: " · ";
  color: var(--faint);
  font-weight: 400;
}

.start-summary-free,
.start-bar-free {
  color: var(--green);
  font-weight: 500;
}

.start-bar-change {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
}

/* Before anything is chosen, the line says where the choices will add up, in the quiet grey of the empty receipt,
   and that nothing is paid now. */
.start-bar.is-empty .start-bar-names {
  color: var(--faint);
  font-weight: 400;
}

.start-bar.is-empty .start-bar-free::before {
  content: none;
}

.start-summary {
  display: none;
}

.start-from {
  color: var(--faint);
  font-size: 0.6em;
  font-weight: 400;
  letter-spacing: 0;
}

.start-summary-total {
  margin: 0;
  font-size: 1.875rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

/* Beside the title, a word says what kind of price it is: jade when it's final, platinum when it's where it starts. */
.start-summary-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 0.75rem;
  margin: 0;
}

.start-summary-kind {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
}

.start-summary-kind[hidden] {
  display: none;
}

.start-summary-kind::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--platinum);
}

.start-summary-kind.is-final {
  color: var(--green);
}

.start-summary-kind.is-final::before {
  background: var(--green);
}

/* The total stands on a plate of its own: platinum while it waits, and, once there's a price, the tile that carries
   a page's message, lit in jade from the corner with an edge of green metal. */
.start-plate {
  padding: 0.85rem 1rem 0.95rem;
  border-radius: var(--radius-m);
  transition: box-shadow var(--medium);
}

.start-summary.has-price .start-plate {
  --tile-light: var(--green);
  --tile-mix: 16%;
}

.start-summary.has-price .start-plate::before {
  background: var(--jade-edge);
}

.start-summary:not(.has-price) .start-summary-total {
  color: var(--faint);
}

.start-summary-lines {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* A project's line: its service's sign, its name over how long it takes, and its price at the end. */
.start-summary-lines li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.15rem 0.7rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.9375rem;
  line-height: 1.35;
}

.start-line-sign {
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.4rem;
  border-radius: var(--radius-s);
  box-shadow: none;
  font-size: 0.75rem;
}

.start-line-name {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
  color: var(--text);
  font-weight: 500;
}

.start-line-name small {
  color: var(--faint);
  font: 500 0.75rem/1.4 var(--mono);
  letter-spacing: 0.02em;
}

.start-line-amount {
  color: var(--text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.start-line-amount span,
.start-halves strong span {
  color: var(--faint);
  font-size: 0.875rem;
  font-weight: 400;
}

/* A price that waits for the plan says so in words, which may take two lines. */
.start-line-open {
  max-width: 7.5rem;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 400;
  white-space: normal;
}

/* How it's paid: two halves side by side, each with its figure and its moment, the first under a line of jade and
   the second under one of platinum, in the order they come. */
.start-pay {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.start-pay[hidden] {
  display: none;
}

.start-pay-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.15rem 0.75rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.4;
}

.start-halves {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.start-halves p {
  display: grid;
  gap: 0.1rem;
  margin: 0;
  padding-top: 0.5rem;
  border-top: 2px solid var(--platinum);
}

.start-halves p:first-child {
  border-image: var(--jade-line) 1;
}

.start-halves strong {
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}

.start-halves p > span {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.4;
}

.start-summary-free {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.15rem 0 0;
  font-size: 0.9375rem;
}

/* The same fine jade check as a step behind. */
.start-summary-free::before {
  content: "";
  flex: none;
  width: 0.35rem;
  height: 0.65rem;
  margin-left: 0.15rem;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-0.1rem) rotate(45deg);
}

@media (min-width: 64rem) {
  .start-bar {
    display: none !important;
  }

}

/* The receipt, framed in polished platinum like the lit tiles: each line slides in as the answer that adds it is
   chosen, the total counts its way there, and under it, what is paid and when. */
.js .start-summary {
  display: grid;
  gap: 0.75rem;
  padding: 1.1rem 1.2rem 1.2rem;
  border: 1px solid transparent;
  border-radius: var(--radius-l);
  background:
    linear-gradient(180deg, var(--tile-top), var(--tile-bottom)) padding-box,
    linear-gradient(135deg, var(--metal-hi), var(--metal-lo) 30%, var(--metal) 55%, var(--metal-lo) 80%, var(--metal-hi)) border-box;
}

.start-summary-lines li.start-summary-empty {
  display: block;
  padding-top: 0;
  color: var(--faint);
}

/* A project's extras sit under its name, in line with it, a little quieter. */
.start-summary-lines li.is-extra {
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 0.4rem 0 0.4rem 2.7rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.start-summary-lines li.is-extra .start-line-amount {
  color: var(--muted);
  font-weight: 500;
}

@keyframes start-line-in {
  from {
    opacity: 0;
    transform: translateX(-0.5rem);
  }
}

@keyframes start-line-lit {
  from {
    color: var(--green);
  }
}

.motion .start-summary-lines li.is-new {
  animation:
    start-line-in var(--medium) var(--ease) both,
    start-line-lit calc(var(--slow) * 2) var(--ease);
}

.start-summary-notes {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.45;
  text-wrap: pretty;
}

.start-summary-why[hidden] {
  display: none;
}

.start-summary-why {
  margin: -0.45rem 0 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.45;
  text-wrap: pretty;
}

/* What the visitor pays to others, apart from the price, folds behind one line that says how many there are, like
   a page's terms, so it never takes more room than the price itself: a short heading over quiet lines, each with a
   fine dash, set off from the receipt by a rule. */
.start-costs {
  padding-top: 0.75rem;
  border-top: 1px solid var(--rule);
}

.start-costs[hidden],
.start-costs-list li[hidden] {
  display: none;
}

.start-costs > summary {
  font-size: 0.875rem;
}

.start-costs-title {
  margin: 0.65rem 0 0.35rem;
  color: var(--label);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  text-wrap: pretty;
}

.start-costs-list {
  display: grid;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.start-costs-list li {
  position: relative;
  padding-left: 0.85rem;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.45;
  text-wrap: pretty;
}

.start-costs-list li::before {
  content: "";
  position: absolute;
  top: 0.68em;
  left: 0.1rem;
  width: 0.35rem;
  border-top: 1px solid var(--faint);
}

/* How it works: three short steps, numbered like the site's labels. */
.start-how {
  display: grid;
  gap: 0.75rem;
}

.start-how-title,
.start-quick-title {
  margin: 0;
  color: var(--label);
  font-size: 0.9375rem;
  font-weight: 500;
}

.start-how-steps {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}

.start-how-steps li {
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr);
  align-items: baseline;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--rule);
  color: var(--body);
  font-size: 0.9375rem;
  line-height: 1.45;
  text-wrap: pretty;
}

/* Under the steps, a line to the FAQ page for anyone with a question before sending. */
.start-faq {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.5;
  text-wrap: pretty;
}

.start-faq a {
  color: var(--green);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--green) 45%, transparent);
  text-underline-offset: 0.3em;
  transition: text-decoration-color var(--fast);
}

.start-faq a:is(:hover, :active),
.start-faq a:focus-visible {
  text-decoration-color: var(--green);
}

.start-how-num {
  color: var(--green);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.start-quick {
  display: grid;
  gap: 0.6rem;
  justify-items: start;
}

/* On desktops the receipt beside the panel already says why nothing is paid now, so the note under the button
   doesn't repeat it. */
@media (min-width: 64rem) {
  .start-note-why {
    display: none;
  }
}

/* The note about sending belongs to the last screen. */
.js .start-form:not([data-screen="you"]) > .form-note {
  display: none;
}

/* With a booking page, the call is booked right from the confirmation, in a new tab. */
.start-book {
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0 1rem;
}

.start-book[hidden] {
  display: none;
}

.start-book-note {
  margin: 0;
  color: var(--faint);
  font-size: 0.875rem;
}

/* After sending, where to look if the reply doesn't come. */
.start-done-spam {
  max-width: 30rem;
  margin: 0 0 1.75rem;
  color: var(--faint);
  font-size: 0.875rem;
  line-height: 1.5;
  text-wrap: pretty;
}

/* Moving between pages: the header stays where it is and the page beneath fades across, as in an app. Browsers
   that don't know the rule simply load the page. A fade moves nothing, so it stays with reduced motion, as iOS
   itself fades instead of sliding. */
@view-transition {
  navigation: auto;
}

.bar {
  view-transition-name: site-bar;
}

/* On the form's own page, the header's button to it would only reload it and lose the answers. */
.bar-cta[aria-current="page"],
.menu-foot .btn[aria-current="page"] {
  display: none;
}

/* Fingers get a little more room around the small text buttons. */
@media (pointer: coarse) {
  .start-undo,
  .start-bar-change {
    padding-block: 0.6rem;
    margin-block: -0.6rem;
  }
}

/* Phones: a shorter opening, so the first projects show on the first screen. */
@media (max-width: 39.999rem) {
  .hero-page.start {
    padding-block: calc(var(--head) + 1.75rem) 1.75rem;
  }

  .start .page-title {
    font-size: clamp(2.25rem, 1.3rem + 4.5vw, 2.75rem);
  }

  .start .page-lead {
    font-size: 1.0625rem;
  }

  .start-head {
    gap: 0.85rem;
  }

  .start-inner {
    gap: 1.5rem;
  }
}

/* Phones on their side: the same, a little tighter still. */
@media (max-height: 30rem) and (orientation: landscape) {
  .hero-page.start {
    padding-block: calc(var(--head) + 1.25rem) 1.25rem;
  }

  .start .page-title {
    font-size: 2.25rem;
  }

  .start-head {
    gap: 0.6rem;
  }

  .start-inner {
    gap: 1.25rem;
  }
}

/* Footer */

/* The footer sits on the base after the contact band, and on a band of its own under the legal pages,
   so it always starts where the colour changes. */
.foot {
  padding-block: 3.5rem 2rem;
}

.foot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.25rem 1.5rem;
}

.foot-brand {
  display: grid;
  grid-column: 1 / -1;
  gap: 0.9rem;
  justify-items: start;
  max-width: 24rem;
}

.foot-brand p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* Under the address, where I work from: the country, never a street. */
.foot-brand .foot-place {
  margin-top: -0.55rem;
  color: var(--faint);
  font-size: 0.875rem;
}

.foot-title {
  margin: 0 0 0.9rem;
  color: var(--faint);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.foot-col ul {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.5;
  list-style: none;
}

/* Every link in the footer answers a click at least 24 px tall, as the crumbs do. */
.foot a {
  margin-block: -3px;
  padding-block: 3px;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--fast);
}

.foot a:is(:hover, :active) {
  color: var(--green);
}

.foot .brand {
  color: var(--text);
}

.foot .brand-mark {
  display: block;
}

/* The address to write to sits under the motto, beside the name. */
.foot .foot-mail {
  color: var(--text);
  font-size: 0.9375rem;
}

.foot .foot-mail:is(:hover, :active) {
  color: var(--green);
}

.foot-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  color: var(--faint);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.foot-base a {
  color: inherit;
}

@media (min-width: 40rem) {
  .foot-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .foot-grid {
    grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  }

  .foot-brand {
    grid-column: auto;
  }
}

/* On phones the footer is shorter: the lists keep their rows of about 40 px, the brand and the legal pages take less
   room, and the last row holds the copyright and the way back to the top. */
@media (max-width: 39.999rem) {
  .foot {
    padding-block: 2.75rem 1.5rem;
  }

  .foot-grid {
    gap: 1.75rem 1.5rem;
  }

  .foot-brand {
    gap: 0.7rem;
  }

  .foot-base {
    margin-top: 2rem;
    padding-top: 1.1rem;
  }

  /* The legal pages take one row: their title, then both links side by side. */
  .foot-col:last-child {
    display: flex;
    flex-wrap: wrap;
    grid-column: 1 / -1;
    align-items: baseline;
    gap: 0.5rem 1.25rem;
  }

  .foot-col:last-child .foot-title {
    margin: 0;
  }

  .foot-col:last-child ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
  }
}

/* Legal pages */

.doc {
  padding-block: calc(var(--head) + clamp(3rem, 8vw, 5.5rem)) clamp(4rem, 9vw, 7rem);
}

.doc h1 {
  max-width: 18em;
  margin: 0 0 0.9rem;
  font-size: var(--title);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.doc-meta {
  margin: 0 0 2.5rem;
  color: var(--faint);
  font: 400 0.75rem/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.doc-body {
  max-width: 42rem;
}

.doc-body .intro {
  margin-bottom: 1.5rem;
  color: var(--text);
  font-size: var(--read);
  line-height: 1.5;
  letter-spacing: -0.012em;
}

.doc-body h2 {
  margin: 2.75rem 0 0.75rem;
  font-size: 1.3125rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.doc-body p,
.doc-body li {
  color: var(--body);
  line-height: 1.7;
  text-wrap: pretty;
}

.doc-body p {
  margin: 0 0 1rem;
}

.doc-body ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.doc-body li + li {
  margin-top: 0.6rem;
}

.doc-body li::marker {
  color: var(--accent);
}

.doc-body strong {
  color: var(--text);
  font-weight: 500;
}

.doc-body a {
  color: var(--green);
  text-decoration-color: color-mix(in srgb, var(--green) 45%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

.doc-body a:is(:hover, :active) {
  text-decoration-thickness: 2px;
}

@media (min-width: 64rem) {
  .doc-inner {
    display: grid;
    grid-template-columns: var(--margin) minmax(0, 1fr);
    column-gap: clamp(2rem, 4vw, 4.5rem);
  }

  .doc-inner > .eyebrow {
    margin: 0;
    padding-top: 1rem;
  }
}

/* Reveal on scroll */

.motion.ready .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease);
}

.motion.ready .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Windows high contrast paints the page in its own colours, without fills or shadows. The solid buttons get
   an edge there so they still read as buttons, and the address to copy gets back the usual focus ring. */
@media (forced-colors: active) {
  .skip,
  .bar-cta,
  .btn-primary,
  .send,
  .btn-ghost,
  .menu-toggle,
  .lang,
  .theme-toggle,
  .menu-lang {
    border: 1px solid;
  }

  .email-chip:focus-visible {
    outline: 2px solid var(--glow);
    outline-offset: 3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Questions: each one opens in place, and its answer starts with the short reply. */

.faq {
  max-width: 50rem;
  margin: 0;
  border-top: 1px solid var(--rule);
}

.faq-item {
  border-bottom: 1px solid var(--rule);
}

.faq-item summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.2rem;
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  content: "+" / "";
  flex: none;
  color: var(--label);
  font: 400 1.25rem/1 var(--mono);
  transition: transform var(--medium) var(--ease), color var(--fast);
}

/* A question reacts like every other thing that opens: under the pointer or the keyboard, it and its mark turn jade. */
.faq-item summary:is(:hover, :active)::after,
.faq-item summary:focus-visible::after,
.faq-item[open] summary::after {
  color: var(--green);
}

.faq-item summary .faq-q {
  transition: color var(--fast);
}

.faq-item summary:is(:hover, :active) .faq-q,
.faq-item summary:focus-visible .faq-q {
  color: var(--green);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-q {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}

.faq-a {
  max-width: 42rem;
  padding: 0 2.5rem 1.4rem 0;
}

.faq-a p {
  margin: 0;
  color: var(--body);
  line-height: 1.6;
  text-wrap: pretty;
}

.faq-a a {
  color: var(--green);
  text-decoration-color: color-mix(in srgb, var(--green) 45%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

.faq-a a:is(:hover, :active) {
  text-decoration-thickness: 2px;
}

.motion .faq-item[open] .faq-a {
  animation: unfold var(--medium) var(--ease);
}

/* Under the questions of the home and prices pages, a jade link to all of them, like the guided form's link in
   Contact: underlined, with the arrow that follows the last word. */
.faq-more {
  margin: 1.75rem 0 0;
  text-wrap: pretty;
}

.faq-more a {
  padding-block: 2px;
  color: var(--green);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--green) 45%, transparent);
  text-underline-offset: 0.3em;
  transition: text-decoration-color var(--fast);
}

.faq-more a:is(:hover, :active),
.faq-more a:focus-visible {
  text-decoration-color: var(--green);
}

.faq-more .arrow-right {
  display: inline-block;
  margin-left: 0.45rem;
  vertical-align: -0.05em;
}

/* The FAQ page: each topic under its own heading, one after another, and then the services, whose pages answer
   their own questions. */
.faq-group {
  scroll-margin-top: calc(var(--head) + 1.5rem);
}

.faq-group + .faq-group {
  margin-top: clamp(2.75rem, 6vw, 4rem);
}

.faq-group-title {
  margin: 0 0 0.35rem;
  color: var(--text);
  font-size: 1.3125rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

@keyframes unfold {
  from {
    opacity: 0;
    transform: translateY(-0.35rem);
  }
}

/* Service, project and prices pages: a hero over the same glyphs, with the name in large type, only as tall as
   what it says, so the page's own content starts on the first screen. Only the home page fills the screen. */

.hero-page {
  min-height: 0;
  padding-block: calc(var(--head) + clamp(3rem, 9vh, 6.5rem)) clamp(2.5rem, 6vh, 4.5rem);
}

/* Phones: less air around a page's title, so the first screen reaches further into the page. */
@media (max-width: 39.999rem) {
  .hero-page {
    padding-block: calc(var(--head) + 2.5rem) 2rem;
  }
}

/* Where the page sits, above its name: Services, then its service, each one a way back. */
.crumbs {
  flex-wrap: wrap;
  row-gap: 0.5rem;
  margin: 0;
}

/* Each crumb answers a click 24 px tall, as WCAG 2.5.8 asks of a target: the padding grows what answers, and the
   negative margin keeps the line where it was. */
.crumbs a {
  margin-block: -6px;
  padding-block: 6px;
  color: inherit;
  text-decoration: none;
  transition: color var(--fast);
}

.crumbs a:is(:hover, :active) {
  color: var(--green);
}

.page-title {
  max-width: 13em;
  margin: 0;
  font-size: clamp(2.75rem, 1.6rem + 5vw, 6.75rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.045em;
}

/* With the text at its largest on a phone, a page's title stays a title without filling the first screen: it grows
   no larger than 15 % of the screen's width, where its words fit. */
@media (max-width: 19.49rem) {
  .page-title {
    font-size: min(2.75rem, 15vw);
  }
}

.page-title .line {
  display: block;
  overflow: hidden;
  padding-block: 0.14em 0.1em;
  margin-block: -0.14em -0.1em;
}

.page-title .line > span {
  display: inline-block;
  text-wrap: balance;
}

.motion .page-title .line > span {
  animation: rise calc(var(--slow) * 2) var(--ease) both;
}

.page-lead {
  max-width: 38rem;
  margin: 0;
  color: var(--body);
  font-size: var(--read);
  line-height: 1.5;
  letter-spacing: -0.012em;
  text-wrap: pretty;
}

/* Checkup and care, the third group of the services page, under the same plate and name as in the menus, its two
   offers one under the other, each in a tile. */
.care {
  margin-top: clamp(3.5rem, 7vw, 5rem);
}

.care .price-intro {
  margin-bottom: 1.25rem;
}

/* What holds a tile, or two, measures the room it has: a tile lays itself out by that, not by the screen, so it
   never keeps to one column with half of itself empty. */
.tiles {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  container: tiles / inline-size;
}

/* The tile: a project, the checkup or the care plan summed up, in three bands. First, what it is on one side and
   its price with its button on the other: two short blocks, about as tall as each other whatever the tile says,
   so every tile keeps the same rhythm. Then what's included, across the tile, where a longer list moves nothing
   else. Last, the rest behind one line, which opens across the tile too. On a project's own page it's the tile
   that carries the page's message, so it takes the jade (tile-lead); in a list it stays platinum. Arriving at one
   from a link, it stops clear of the header, as a group does. */
.tile {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.6rem 1.25rem 0;
  scroll-margin-top: 1.5rem;
}

.tile-lead {
  --tile-light: var(--green);
  --tile-mix: 16%;
}

.section-body > .tiles {
  margin-top: 1.25rem;
}

.tile-lead::before {
  background: var(--jade-edge);
}

.tile-main,
.tile-buy {
  display: grid;
  align-content: start;
}

.tile-buy {
  justify-items: start;
}

.tile :is(h3, h4) {
  margin: 0;
  font-size: 1.3125rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* On its own page the name is the tile's title. */
.tile-lead h3 {
  font-size: clamp(1.5rem, 1.25rem + 0.9vw, 2rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

/* Its name leads to its own page. */
.tile h4 a {
  color: inherit;
  text-decoration: none;
  transition: color var(--fast);
}

.tile h4 a:is(:hover, :active) {
  color: var(--green);
}

.tile-for {
  max-width: 32rem;
  margin: 0.6rem 0 0;
  color: var(--body);
  line-height: 1.55;
  text-wrap: pretty;
}

/* When it's ready, or its terms, closes what it is. */
.tile-time {
  margin: 0.8rem 0 0;
  color: var(--faint);
  font: 500 0.875rem/1.4 var(--mono);
  letter-spacing: 0.02em;
}

/* The price and, under it, what that price covers. */
.tile-amount {
  margin: 0;
  font-size: 1.3125rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.tile-amount span {
  margin-right: 0.35rem;
  color: var(--faint);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0;
}

/* A price that repeats each month says so after the figure. */
.tile-amount .per {
  margin: 0 0 0 0.3rem;
}

.tile-scope {
  max-width: 32rem;
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.45;
  text-wrap: pretty;
}

.tile-buy .btn {
  margin-top: 1.25rem;
}

/* Under the extras, what every price above means, as a note in the margin: a rule of platinum beside it. */
.projects-note {
  max-width: 44rem;
  margin: 1.75rem 0 0;
  padding: 0.15rem 0 0.15rem 1.1rem;
  border-left: 2px solid var(--metal);
  border-image: linear-gradient(180deg, var(--metal-hi), var(--metal) 45%, var(--rule)) 1;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  text-wrap: pretty;
}

.projects-note a {
  color: var(--green);
  text-decoration-color: color-mix(in srgb, var(--green) 45%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

.projects-note a:is(:hover, :active) {
  text-decoration-thickness: 2px;
}

/* What the price covers, what's needed from the client and what they'll pay on their own,
   as a short spec sheet under what's included. */
/* The terms read like a spec sheet: each one a row of its own, set apart from the next by a fine line. */
.project-terms {
  display: grid;
  align-content: start;
  margin: 0;
  border-top: 1px dashed var(--rule-strong);
}

.project-terms > div {
  display: grid;
  gap: 0.2rem;
  padding-block: 0.75rem;
}

.project-terms > div + div {
  border-top: 1px solid var(--rule);
}

.project-terms dt {
  color: var(--label);
  font: 500 0.75rem/1.4 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-terms dd {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  text-wrap: pretty;
}

/* The rest waits at the foot of the tile behind one line, with the ring that opens it: why it matters and the
   details on the services page, the details on a project's own. It opens across the tile. */
.tile-more {
  border-top: 1px solid var(--rule);
}

.tile-more > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
  padding-block: 0.8rem;
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
  transition: color var(--fast);
}

.tile-more > summary::-webkit-details-marker,
.extra > summary::-webkit-details-marker {
  display: none;
}

/* Like a question: under the pointer or the keyboard, the line and its ring turn jade. */
.tile-more > summary:is(:hover, :active),
.tile-more > summary:focus-visible {
  color: var(--green);
}

.tile-more-body {
  display: grid;
  gap: 1.75rem;
  padding: 0.35rem 0 1.75rem;
}

.tile-why p:not(.custom-label) {
  max-width: 32em;
  margin: 0;
  color: var(--body);
  font-size: 0.9375rem;
  line-height: 1.6;
  text-wrap: pretty;
}

.tile-why p + p:not(.custom-label),
.tile-why .terms,
.tile-why .terms + p {
  margin-top: 0.75rem;
}

.tile-why strong {
  color: var(--text);
  font-weight: 500;
}

.motion .tile-more[open] .tile-more-body {
  animation: unfold var(--medium) var(--ease);
}

/* The ring that opens what waits: platinum, with a plus that turns into a cross, and jade while it's open or under
   the pointer. One piece, so a title that folds on phones can wear it too. */
.ring,
.js [data-disclosure]::after {
  content: "";
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid var(--field-line);
  border-radius: 50%;
  background:
    linear-gradient(currentColor, currentColor) center / 0.7rem 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 0.7rem no-repeat;
  color: var(--text);
  transition: transform var(--medium) var(--ease), border-color var(--fast), color var(--fast);
}

summary:is(:hover, :active, :focus-visible) > .ring,
[open] > summary > .ring {
  border-color: var(--green);
  color: var(--green);
}

[open] > summary > .ring {
  transform: rotate(45deg);
}

/* What folds closes as it opened. public/main.js eases the height of a question, a term or a tile's foot both
   ways; while one folds away it's still open to the browser, so here its mark turns back and its words go with
   its height. */
details.is-folding[open] > summary::after,
details.is-folding[open] > summary > .ring {
  transform: none;
}

details.is-folding > :not(summary) {
  opacity: 0;
  transition: opacity var(--fast);
}

@media (min-width: 40rem) {
  .tile {
    padding: 2rem 2rem 0;
  }
}

/* With room for two columns: what it is on the left, with when it's ready; on the right, at the tile's edge as a
   price ends its row in the lists, the price, what it covers and the button. Those three are the same height in
   every tile: what the price covers keeps two lines where one of them might need them, so the button never sits
   higher in one tile than in the next. What's included follows across the tile, under a fine line. */
@container tiles (min-width: 40rem) {
  .tile {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    column-gap: 2rem;
  }

  .tile {
    row-gap: 1.75rem;
  }

  .tile-buy {
    justify-items: end;
    text-align: right;
  }

  .tile-scope {
    min-height: 2lh;
  }

  .tile-buy .btn {
    margin-top: 0.9rem;
  }

  /* And what it is keeps the height of its name, three lines of who it's for and when it's ready, so the band
     is as tall in a tile that needs two lines as in one that needs three. */
  .tile-main {
    min-height: 9.2rem;
  }

  .tile-included,
  .tile-more {
    grid-column: 1 / -1;
  }

  .tile-included {
    padding-top: 1.6rem;
    border-top: 1px solid var(--rule);
  }

  .tile-more-body {
    padding-bottom: 2rem;
  }
}

/* What a foot holds follows the same order as the tile, in bands across it: why it matters, then the details,
   a fine line between them. Its rows are closed above and below, and with some room each label sits to the left
   of what it says, as in a table. */
.tile-more-body {
  container: tile-foot / inline-size;
}

.tile-terms {
  padding-top: 1.6rem;
  border-top: 1px solid var(--rule);
}

:is(.tile-terms, .tile-more-body) > dl.project-terms {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

@container tile-foot (min-width: 22rem) {
  :is(.tile-terms, .tile-more-body) > dl.project-terms > div {
    grid-template-columns: 8.75rem minmax(0, 1fr);
    gap: 1rem;
    align-items: baseline;
  }
}

/* With room for three columns, everything under the tile's first band stands on the same three: what's included,
   one column each; why it matters across two, with the advice in the third; and the details, one column each. So
   nothing in a tile, open or shut, sits beside something of another height with a hole under it. */
@container tiles (min-width: 52rem) {
  .tile-included .custom-list,
  .tile-why,
  :is(.tile-terms, .tile-more-body) > dl.project-terms {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 2.5rem;
  }

  .tile-why {
    display: grid;
    align-items: start;
  }

  .tile-why > .custom-label {
    grid-column: 1 / -1;
  }

  .tile-why > :is(p:not(.custom-label, :last-child), .terms) {
    grid-column: 1 / 3;
  }

  .tile-why > p:last-child {
    grid-column: 3;
    grid-row: 2 / span 2;
  }

  /* Side by side, the reasons and the advice start on one line, right under the title. */
  .tile-why > p + p:not(.custom-label),
  .tile-why > .terms + p {
    margin-top: 0;
  }

  :is(.tile-terms, .tile-more-body) > dl.project-terms {
    border: 0;
  }

  :is(.tile-terms, .tile-more-body) > dl.project-terms > div {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: 0.35rem;
    padding: 0;
    border-top: 0;
  }

  .tile-more-body > dl.project-terms {
    padding-top: 0.35rem;
  }
}

/* Where what the price covers fits on one line in any tile, it keeps to one. */
@container tiles (min-width: 60rem) {
  .tile-scope {
    min-height: 0;
  }

  .tile-buy .btn {
    margin-top: 1.25rem;
  }
}

/* With more room still, the tile breathes. */
@container tiles (min-width: 54rem) {
  .tile {
    column-gap: 3rem;
  }

  .tile {
    padding: 2rem 2.75rem 0;
  }

  .tile-lead {
    padding-top: 2.25rem;
  }

  .tile-more-body {
    padding-bottom: 2.25rem;
  }
}

@media (min-width: 64rem) {
  .section-body > .tiles {
    margin-top: 1.5rem;
  }
}

/* What every project includes, in a tile of its own: its title, and each fact under a jade tick, the mark of
   what's included. One under another, a fine line between them; side by side where three fit. */
.includes {
  display: grid;
  gap: 1.25rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding: 1.5rem 1.25rem 1.6rem;
}

.includes-title {
  margin: 0;
  color: var(--text);
  font-size: 1.3125rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.price-label {
  margin: 0;
  color: var(--label);
  font-size: 0.875rem;
  font-weight: 500;
}

.includes-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.includes-list li {
  display: grid;
  grid-template-columns: 1rem minmax(0, 1fr);
  align-content: start;
  gap: 0.25rem 0.65rem;
  padding-block: 1rem;
  border-top: 1px solid var(--rule);
}

.includes-list li:last-child {
  padding-bottom: 0;
}

.includes-list .icon-check {
  width: 1rem;
  height: 1rem;
  margin-top: 0.3rem;
  fill: none;
  stroke: var(--green);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.includes-list strong {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.includes-list span {
  grid-column: 2;
  color: var(--body);
  font-size: 0.9375rem;
  line-height: 1.5;
  text-wrap: pretty;
}

@media (min-width: 40rem) {
  .includes {
    padding: 1.75rem 2rem 2rem;
  }
}

/* By the room the tile has: with some, each fact is a row, its title beside what it means; with enough for
   three, they stand side by side. */
.includes {
  container-type: inline-size;
}

@container (min-width: 34rem) {
  .includes-list li {
    grid-template-columns: 1rem minmax(0, 13rem) minmax(0, 1fr);
    column-gap: 0.65rem;
  }

  .includes-list span {
    grid-column: 3;
    padding-left: 1rem;
  }
}

@container (min-width: 52rem) {
  .includes-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--rule);
  }

  .includes-list li,
  .includes-list li:last-child {
    grid-template-columns: 1rem minmax(0, 1fr);
    padding: 1.25rem 1.75rem 0 0;
    border-top: 0;
  }

  .includes-list li + li,
  .includes-list li + li:last-child {
    padding-left: 1.75rem;
    border-left: 1px solid var(--rule);
  }

  .includes-list span {
    grid-column: 2;
    padding-left: 0;
  }
}

@media (min-width: 64rem) {
  .includes {
    padding: 2rem 2.75rem 2.25rem;
  }
}

/* Extras: what can be added to a project. Each one is a row that opens to say what it is in plain words: its
   name with what it adds under it, its price, and the ring. The whole row lights up under the pointer, like a
   project's row, and its light spreads a little past its rule. */
.section-body > .extras {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.extras-title {
  margin: 0 0 1rem;
  font-size: 1.3125rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.price-list.extras-list {
  container-type: inline-size;
}

.price-list.extras-list li {
  display: block;
  padding: 0;
  border-bottom: 0;
}

.extra {
  position: relative;
  margin-inline: -0.75rem;
  border-radius: var(--radius-m);
  transition: background-color var(--fast);
}

.extra::after {
  content: "";
  position: absolute;
  inset: auto 0.75rem 0;
  height: 1px;
  background: var(--rule);
}

.extra > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 1.75rem;
  align-items: center;
  gap: 0.3rem 1rem;
  padding: 0.95rem 0.75rem;
  border-radius: inherit;
  list-style: none;
  cursor: pointer;
}

.extra > summary .price-name {
  grid-column: auto;
  transition: color var(--fast);
}

/* Where the row is narrow the price goes under the name, as in a project's row, and the ring stays at its end. */
@container (max-width: 30rem) {
  .extra > summary {
    grid-template-columns: minmax(0, 1fr) 1.75rem;
  }

  .extra > summary .price-amount {
    grid-row: 2;
    justify-self: start;
    text-align: left;
  }

  .extra > summary .ring {
    grid-row: 1 / span 2;
    grid-column: 2;
  }
}

.extra:has(> summary:is(:hover, :active)) {
  background: color-mix(in srgb, var(--platinum) 8%, transparent);
}

.extra > summary:is(:hover, :active) .price-name {
  color: var(--green);
}

.extra > summary:is(:hover, :active) .price-name small {
  color: var(--muted);
}

.extra > summary:focus-visible {
  outline: 2px solid var(--glow);
  outline-offset: 2px;
}

.extra-what {
  max-width: 36rem;
  margin: 0;
  padding: 0 0.75rem 1.2rem;
  color: var(--body);
  font-size: 0.9375rem;
  line-height: 1.6;
  text-wrap: pretty;
}

.motion .extra[open] .extra-what {
  animation: unfold var(--medium) var(--ease);
}

/* Phones fold what every project includes behind its title, which opens in place like a tile's foot, with the
   same ring. The title is marked data-disclosure, apart from the guided form's own data-fold. public/main.js turns
   it into a button there; without it, and on wider screens, the list stays open and the title is only a title. */
@media (max-width: 39.999rem) {
  .js [data-disclosure] {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 2.75rem;
    margin: 0;
    padding-block: 0.65rem;
    cursor: pointer;
  }


  .js [data-disclosure]:not(.is-open) + * {
    display: none;
  }

  /* As on a question: under the finger it turns jade, and once open its mark stays jade. */
  .js [data-disclosure]:has(.fold-button:is(:hover, :active, :focus-visible)) {
    color: var(--green);
  }

  .js [data-disclosure]:is(.is-open, :has(.fold-button:is(:hover, :active, :focus-visible)))::after {
    border-color: var(--green);
    color: var(--green);
  }

  /* While it folds away it's still open, so its ring turns back as its list goes. */
  .js [data-disclosure].is-open:not(.is-folding)::after {
    transform: rotate(45deg);
  }

  .js .includes:has(> [data-disclosure]) {
    gap: 0;
    padding-block: 0.6rem;
  }

  .js .includes:has(> .is-open) {
    padding-bottom: 1.5rem;
  }
}

/* Wider than a phone the title is only a title, and wears no ring. */
@media (min-width: 40rem) {
  .js [data-disclosure]::after {
    content: none;
  }
}

/* The title's own words become the button, and its whole row answers the finger. */
.fold-button {
  all: unset;
  flex: 1;
  cursor: pointer;
}

.fold-button::before {
  content: "";
  position: absolute;
  inset: 0;
}

[data-disclosure]:has(.fold-button:focus-visible) {
  outline: 2px solid var(--glow);
  outline-offset: 2px;
  border-radius: var(--radius-s);
}

/* Price lists: each project with how long it takes and where its price starts, like a menu. */
.price-groups {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.75rem, 5vw, 3.75rem);
  max-width: 52rem;
}

/* Each service is a group with a place of its own on the services page, which its old address and the menus lead to:
   its plate beside its name, what it's for under it, and its projects. Arriving at it, it stops clear of the header. */
.price-group {
  scroll-margin-top: 1.5rem;
}

.price-group h3 {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0;
  font-size: 1.3125rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.price-intro {
  max-width: 34rem;
  margin: 0.75rem 0 1.1rem;
  color: var(--body);
  line-height: 1.6;
  text-wrap: pretty;
}

.price-group > h3:only-child,
.price-group > h3:has(+ .price-list) {
  margin-bottom: 1rem;
}

.price-group .price-label {
  margin-bottom: 0.9rem;
}

.price-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}

.price-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 0.3rem 1rem;
  padding-block: 0.95rem;
  border-bottom: 1px solid var(--rule);
}

.price-name {
  grid-column: 1 / -1;
  color: var(--text);
  font-weight: 500;
  line-height: 1.45;
  text-decoration: none;
  text-wrap: pretty;
}

a.price-name {
  transition: color var(--fast);
}

a.price-name:is(:hover, :active) {
  color: var(--green);
}

.price-name small {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 400;
}

.price-time {
  color: var(--faint);
  font: 500 0.875rem/1.4 var(--mono);
  letter-spacing: 0.02em;
}

/* The price keeps its figure whole ("2000 USD" has a no-break space), and only drops it under "From" when the text
   is too big for both on one line. */
.price-amount {
  justify-self: end;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.price-amount span {
  color: var(--faint);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0;
}

/* In a list of prices, every "From" starts at the same place and every figure ends at the same place, whatever
   the number of digits: the price keeps a slot as wide as the widest one ("From $3,000", "Desde 3000 USD"), with
   "From" at its start and the figure at its end. A price with nothing before it, like an extra's, or with "a month"
   after it, stays as it is. */
:root {
  --price-slot: 5.6em;
}

:root:lang(es) {
  --price-slot: 7.55em;
}

:is(.price-amount, .offer-price, .choice-price):has(> span:first-child):not(:has(> .per)) {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  column-gap: 0.3rem;
  min-inline-size: var(--price-slot);
}

/* In the guided form "From" and the figure share one size, so the slot is a little wider there. */
.choice-price {
  --price-slot: 6.35em;
  font-variant-numeric: tabular-nums;
}

:lang(es) .choice-price {
  --price-slot: 8.4em;
}

/* A project's row leads to its page: the whole row, with an arrow at its end, lights up under the pointer.
   Its rule stays in line with the text while the light spreads a little past it. */
.price-list li:has(> a.price-name) {
  position: relative;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto 0.8rem;
  grid-template-areas:
    "name name name"
    "time amount arrow";
  margin-inline: -0.75rem;
  padding-inline: 0.75rem;
  border-bottom: 0;
  border-radius: var(--radius-m);
  transition: background-color var(--fast);
}

.price-list li:has(> a.price-name)::before {
  content: "";
  position: absolute;
  inset: auto 0.75rem 0;
  height: 1px;
  background: var(--rule);
}

a.price-name {
  grid-area: name;
}

a.price-name::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.price-list li:has(> a.price-name) .price-time {
  grid-area: time;
}

.price-list li:has(> a.price-name) .price-amount {
  grid-area: amount;
}

.price-list li > .arrow-right {
  grid-area: arrow;
  align-self: center;
  color: var(--green);
}

.price-list li:has(> a.price-name):is(:hover, :active) {
  background: color-mix(in srgb, var(--platinum) 8%, transparent);
}

.price-list li:has(> a.price-name):is(:hover, :active) a.price-name {
  color: var(--green);
}

.price-list li:has(> a.price-name):is(:hover, :active) > .arrow-right {
  transform: translateX(3px);
}

a.price-name:focus-visible {
  outline: none;
}

.price-list li:has(> a.price-name:focus-visible) {
  outline: 2px solid var(--glow);
  outline-offset: 2px;
}

@media (min-width: 40rem) {
  .price-list li {
    grid-template-columns: minmax(0, 1fr) 8.5rem 8.5rem;
  }

  .price-list li:has(> a.price-name) {
    grid-template-columns: minmax(0, 1fr) 8.5rem 8.5rem 0.8rem;
    grid-template-areas: "name time amount arrow";
  }

  .price-name {
    grid-column: auto;
  }
}

/* With the text at its largest on a phone, a row's facts go one under another: the name, how long it takes, and the
   price with its arrow, so none is squeezed to a letter a line. */
@media (max-width: 19.49rem) {
  .price-list li {
    grid-template-columns: minmax(0, 1fr);
  }

  .price-list li:has(> a.price-name) {
    grid-template-columns: minmax(0, 1fr) 0.8rem;
    grid-template-areas:
      "name name"
      "time time"
      "amount arrow";
  }

  .price-amount {
    justify-self: start;
    text-align: left;
  }

  :is(.price-amount, .offer-price):has(> span:first-child):not(:has(> .per)) {
    justify-content: flex-start;
    min-inline-size: 0;
  }
}

/* The same in the guided form, where a row with no room puts the price on a line of its own. */
@container (max-width: 14.5rem) {
  .choice-project .choice-price:has(> span:first-child) {
    justify-content: flex-start;
    min-inline-size: 0;
  }
}

/* A project's own page: its price and timeline under the lead, the signs that call for it,
   and why it matters, told in plain words. */
.page-meta {
  margin: 0;
  color: var(--faint);
  font: 500 0.875rem/1.6 var(--mono);
  letter-spacing: 0.02em;
}

.page-meta strong {
  color: var(--text);
  font: 600 1.3125rem/1 var(--sans);
  letter-spacing: -0.015em;
}

.signs {
  max-width: 46rem;
  padding-top: 0;
}

.signs li {
  font-size: 1.0625rem;
}

/* Under the signs, one line that says, kindly, who the project isn't for and what fits better, with a way there. */
.signs-fit {
  max-width: 46rem;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.5;
  text-wrap: pretty;
}

.signs-fit a {
  color: var(--green);
  text-decoration-color: color-mix(in srgb, var(--green) 45%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

.signs-fit a:is(:hover, :active) {
  text-decoration-thickness: 2px;
}

.explain {
  display: grid;
  gap: 2.25rem;
  max-width: 48rem;
}

.explain > p {
  margin: 0;
  color: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-wrap: pretty;
}

.explain > p a,
.explain .path-what a {
  color: var(--green);
  text-decoration-color: color-mix(in srgb, var(--green) 45%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

.explain > p a:is(:hover, :active),
.explain .path-what a:is(:hover, :active) {
  text-decoration-thickness: 2px;
}

.explain > .section-title {
  margin-bottom: 0.25rem;
}

.explain .principle {
  margin-top: 0;
}

/* A term explained where the text names it: a quiet line in jade that opens in place, so nobody has to leave
   the page they came for to understand it. The terms come from TERMS in tools/site.mjs. */
.terms > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--green);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}

.terms > summary::-webkit-details-marker {
  display: none;
}

.terms > summary::after {
  content: "+";
  content: "+" / "";
  font: 400 1.0625rem/1 var(--mono);
  transition: transform var(--medium) var(--ease);
}

.terms[open] > summary::after {
  transform: rotate(45deg);
}

.terms > summary:is(:hover, :active) {
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--green) 45%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

.terms-list {
  margin: 1rem 0 0;
  border-top: 1px solid var(--rule);
}

.terms-list > div {
  display: grid;
  gap: 0.3rem;
  padding-block: 0.9rem 1rem;
  border-bottom: 1px solid var(--rule);
}

.terms-list dt {
  color: var(--date);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.terms-list dd {
  margin: 0;
  color: var(--body);
  font-size: 0.9375rem;
  line-height: 1.6;
  text-wrap: pretty;
}

.terms-list strong {
  color: var(--text);
  font-weight: 600;
}

@media (min-width: 40rem) {
  .terms-list > div {
    grid-template-columns: 4.5rem minmax(0, 1fr);
    gap: 1.25rem;
  }

  /* Words, unlike the three records, can be long ("Bloqueo de transferencia"): their name sits above what it means. */
  .terms-words > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.3rem;
  }
}

/* Under a paragraph, the line sits close to the text it explains, not a whole gap away; under steps, signs or the
   line beneath them, it keeps the distance a tile would. */
.explain > .terms {
  margin-top: -1.25rem;
}

.section-body:not(.explain) > .terms {
  margin-top: 1.5rem;
}

.path-what .terms {
  margin-top: 0.85rem;
}

.motion .terms[open] .terms-list {
  animation: unfold var(--medium) var(--ease);
}

.path-when.mono {
  letter-spacing: 0.06em;
}

/* The project a card started, named above the message. */
.form-project {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.45;
}

.form-project strong {
  color: var(--text);
  font-weight: 500;
}

.form-project[hidden] {
  display: none;
}

/* The other two services, at the end of each service page. */

.siblings {
  margin-top: clamp(3rem, 6vw, 4.5rem);
}

.siblings-label {
  margin: 0 0 1rem;
  color: var(--label);
  font-size: 0.875rem;
  font-weight: 500;
}

.siblings ul {
  display: grid;
  gap: 0.75rem;
  max-width: 50rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sibling {
  --hue: var(--platinum);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  height: 100%;
  padding: 1rem 1.15rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius-l);
  color: var(--text);
  text-decoration: none;
  transition: border-color var(--fast), background-color var(--fast);
}

.sibling:is(:hover, :active) {
  border-color: color-mix(in srgb, var(--green) 55%, transparent);
  background: color-mix(in srgb, var(--green) 6%, transparent);
}

.sibling .arrow-right {
  color: var(--green);
}

.sibling .area-icon {
  min-width: 2.25rem;
  height: 2.25rem;
  font-size: 0.8125rem;
}

.sibling strong {
  display: block;
  font-weight: 500;
  line-height: 1.35;
}

.sibling small {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.45;
}

@media (min-width: 40rem) {
  .siblings ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* With the text at its largest on a phone, the plate goes above the words, and the sides keep the padding they have
   with the usual text, so the words get the row's width. */
@media (max-width: 19.49rem) {
  .sibling {
    grid-template-columns: minmax(0, 1fr) auto;
    padding-inline: 18px;
  }

  .sibling .area-icon {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

/* About: the portrait beside the statement, and what clients wrote on Upwork. On phones they keep the
   same composition as on wider screens, and the portrait and the statement grow together with the screen. */

.about-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(0.9rem, 4vw, 1.5rem);
  align-items: center;
}

/* With the text at its largest on a phone, the portrait goes above the statement, which gets the whole width. */
@media (max-width: 19.49rem) {
  .about-head {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
  }
}

/* The portrait is cut out from its old backdrop, and the page paints a studio behind it in its own colours, lit from
   behind the head: graphite on onyx in dark, pale sage stone in light, so it belongs to whichever mode is on. */
.portrait {
  position: relative;
  width: clamp(5.5rem, 26vw, 8.5rem);
  margin: 0;
  border-radius: var(--radius-l);
  background: radial-gradient(ellipse 85% 70% at 50% 38%, var(--portrait-hi), var(--portrait-lo));
  box-shadow: 0 1.25rem 2.5rem -1.75rem var(--shade);
}

.portrait picture,
.portrait img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
}

/* The same edge of polished platinum as the lit tiles. */
.portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--metal-hi), var(--metal-lo) 30%, var(--metal) 55%, var(--metal-lo) 80%, var(--metal-hi));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.reviews {
  display: grid;
  gap: 1.25rem;
  align-content: start;
}

.reviews-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  color: var(--label);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.reviews-label::before {
  content: "";
  flex: none;
  width: 1.5rem;
  height: 1px;
  background: linear-gradient(90deg, var(--metal-lo), var(--metal-hi) 50%, var(--metal));
}

.review {
  margin: 0;
  padding-left: 1.1rem;
  border-left: 1px solid var(--rule-strong);
}

.review blockquote {
  margin: 0;
}

.review blockquote p {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.55;
  text-wrap: pretty;
}

.review figcaption {
  margin-top: 0.55rem;
  color: var(--faint);
  font-size: 0.875rem;
  line-height: 1.45;
}

.reviews-note {
  margin: 0;
  color: var(--faint);
  font-size: 0.875rem;
  line-height: 1.45;
}

/* Under the statement, in reading type: where I work from, what I do today and for whom. */
.about-lead {
  display: grid;
  gap: 1.1rem;
  min-width: 0;
}

.about-now {
  max-width: 32em;
  margin: 0;
  color: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  text-wrap: pretty;
}

/* Under the reviews, proof anyone can check: this site, with three figures from Google's own test, as a short spec
   sheet in platinum like the details of a project, and the way to run the test. */
.proof {
  display: grid;
  gap: 0.9rem;
  margin-top: 0.25rem;
  padding: 1.15rem 1.25rem 1.2rem;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-l);
  background: color-mix(in srgb, var(--platinum) 4%, transparent);
}

.proof-title {
  margin: 0;
  color: var(--text);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
}

.proof p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.proof dl {
  display: grid;
  margin: 0.1rem 0 0;
  border-top: 1px solid var(--rule);
}

.proof dl > div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding-block: 0.55rem;
  border-bottom: 1px solid var(--rule);
}

.proof dt {
  min-width: 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.4;
}

.proof dd {
  margin: 0;
  color: var(--label);
  font: 500 0.875rem/1.4 var(--mono);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.proof-link {
  justify-self: start;
  color: var(--green);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--green) 45%, transparent);
  text-underline-offset: 0.22em;
  text-wrap: balance;
  transition: text-decoration-color var(--fast);
}

.proof-link:is(:hover, :active) {
  text-decoration-color: var(--green);
}

@media (min-width: 40rem) {
  .about-head {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 2rem;
  }

  .portrait {
    width: 8.5rem;
  }
}

@media (min-width: 64rem) {
  .about-head {
    grid-column: 1 / -1;
    gap: 2.5rem;
  }

  .about-head .section-title {
    grid-column: auto;
  }

  .portrait {
    width: 10rem;
  }

  .about .path {
    grid-row: 2;
  }

  .about .reviews {
    grid-column: 2;
    grid-row: 2;
  }
}

/* Touch. Whatever lights up under the mouse also lights up the moment a finger lands (each :hover above is
   paired with :active), at once, and the buttons give a little under it, so every tap is answered in the site's
   own look instead of the browser's grey flash. With reduced motion nothing moves: the light alone answers. */
html {
  -webkit-tap-highlight-color: transparent;
}

:is(.offer, .price-list li, .sibling, .area, .menu-main > li > a, .menu-more > summary, .menu-service, .menu-projects a, .menu-custom, .faq-item summary, .tile-more > summary, .extra, .tile h4 a, .terms > summary, .choice, .foot a, .crumbs a, .nav > a, .faq-more a):active {
  transition-duration: calc(var(--fast) / 4);
}

.motion :is(.bar-cta, .btn, .send, .menu-toggle, .lang, .theme-toggle, .menu-lang, .start-next, .email-chip):active {
  transform: scale(0.97);
  transition-duration: calc(var(--fast) / 4);
}

/* Fingers get at least 44 px to aim at, Apple's measure, while everything looks the same: the room is an
   invisible margin around each control, or padding the layout gives back. */
@media (pointer: coarse) {
  .bar-cta,
  .menu-toggle,
  .lang,
  .theme-toggle,
  .menu-lang {
    position: relative;
  }

  .bar-cta::after,
  .menu-toggle::after,
  .lang::after,
  .theme-toggle::after,
  .menu-lang::after {
    content: "";
    position: absolute;
    inset: -0.4rem -0.125rem;
  }

  /* The header links on tablets held sideways keep their underline where it is. */
  .nav > a::before,
  .nav-services > summary::before {
    content: "";
    position: absolute;
    inset: -0.2rem -0.5rem;
  }

  .crumbs a {
    padding: 1rem 0.25rem;
    margin: -1rem -0.25rem;
  }

  .faq-more a {
    display: inline-block;
    padding-block: 0.7rem;
    margin-block: -0.7rem;
  }

  /* The footer's lists open up so each link gets a row of its own, about 40 px, with no overlap. */
  .foot-col ul {
    gap: 1.1rem;
  }

  .foot-col a,
  .foot-brand a,
  .foot-base a {
    display: inline-block;
    padding-block: 0.55rem;
    margin-block: -0.55rem;
  }

  .foot-base a {
    padding: 0.85rem 0.25rem;
    margin: -0.85rem -0.25rem;
  }
}

/* Reading width: where a paragraph gets the whole width of a tablet, it stops at about 70 letters a line, the measure
   the eye follows without losing its place. */
:is(.projects-note, .faq-a p, .explain > p, .custom-list li, .doc-body :is(p, li), .terms-list dd) {
  max-width: 32em;
}

/* Phones turned sideways have little height to spare. The header steps aside as the page goes down and comes back as
   soon as it goes up (public/main.js): it slides, or with reduced motion it fades. The menu's rows are lower, so its
   five sections all show above the two buttons. */
@media (orientation: landscape) and (max-height: 30rem) {
  :root {
    --head: 3.25rem;
  }

  .bar {
    transition: background-color var(--medium), border-color var(--medium), transform var(--medium) var(--ease), opacity var(--medium);
  }

  .bar.is-tucked {
    opacity: 0;
    pointer-events: none;
  }

  .motion .bar.is-tucked {
    opacity: 1;
    transform: translateY(-100%);
  }

  .menu-panel {
    padding-top: 0.5rem;
  }

  .menu-nav {
    gap: 1rem;
  }

  .menu-main > li > a,
  .menu-more > summary {
    padding-block: 0.55rem;
    font-size: 1.125rem;
  }

  .menu-foot {
    padding-block: 0.5rem calc(0.5rem + env(safe-area-inset-bottom));
  }
}

/* Any screen, any text size. Phones set their own text size and zoom (One UI's font size, Samsung Internet's text
   size, Safari's aA), so nothing may insist on being wider than the screen: the parts of a grid may shrink below
   their content, a button's words wrap instead of being cut, and the address to copy breaks where it must. */
:is(.contact-main, .contact-intro, .custom, .custom-intro, .custom-examples, .custom-actions, .start-inner, .start-head, .start-main, .start-quick, .tile, .tile-main, .tile-buy, .tile-included, .tile-more-body, .extra > summary, .includes-list li, .area, .includes, .price-group, .form, .faq-item, .terms) > * {
  min-width: 0;
}

.btn {
  max-width: 100%;
  white-space: normal;
  text-align: center;
  text-wrap: balance;
}

/* With the text at its largest on a phone, a button's sides, and those of the box around "Something else in mind?",
   keep the padding they have with the usual text, so the words get the room. */
@media (max-width: 19.49rem) {
  .btn {
    padding-inline: 23px;
  }

  .custom,
  .tile,
  .includes {
    padding-inline: 22px;
  }

  /* An extra's row keeps its light a little past its rule, but never past the page's edge. */
  .extra {
    margin-inline: -12px;
  }

  .extra > summary,
  .extra-what {
    padding-inline: 12px;
  }

  .extra::after {
    inset-inline: 12px;
  }
}

.email-chip span {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Services on the home page, as an index: a card per service with what it's for and how many options it holds,
   each card opening to every option, with what its price covers and the price. Where the cards stand three in a
   row (from 48rem) they choose what one panel under them shows, the first one chosen on arrival; where they stand one
   under another, each opens in place, one at a time, and joins its list into one box. public/main.js does the
   choosing; without JavaScript every list stays open under its card. On phones the icon sits beside the name. */
.areas-index {
  grid-template-columns: minmax(0, 1fr);
}

.areas-index .area {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  /* Letting go is gentle: the jade fades back to platinum while the list folds away, and on phones the foot rounds
     off once the list is in. Taking the jade is instant (below). */
  transition: transform var(--slow) var(--ease), box-shadow var(--slow), border-color var(--medium), border-radius var(--fast), --hue var(--medium);
}

.areas-index .area::before,
.areas-index .area::after {
  pointer-events: none;
}

.areas-index .area-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* With the text at its largest on a phone, the plate goes above the name, so the name gets the card's whole width. */
@media (max-width: 19.49rem) {
  .areas-index .area-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

.areas-index .area h3 {
  min-width: 0;
  margin: 0;
  hyphens: auto;
}

/* The name is the button, and the whole card answers it. */
.area-toggle {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  cursor: pointer;
}

.area-toggle::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.area-toggle:focus-visible {
  outline: none;
}

.areas-index .area:has(.area-toggle:focus-visible) {
  outline: 2px solid var(--glow);
  outline-offset: 3px;
}

.areas-index .area-sum {
  margin: 0.8rem 0 1.1rem;
}

/* How many options the card holds, and the platinum ring that opens them: a plus that turns into a cross. */
.area-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: auto 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 600;
}

.area-plus {
  display: none;
  position: relative;
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid var(--field-line);
  border-radius: 50%;
  color: var(--text);
  transition: transform var(--medium) var(--ease), border-color var(--fast), color var(--fast);
}

.js .area-plus {
  display: block;
}

.area-plus::before,
.area-plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.7rem;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.area-plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.area:is(:hover, :active) .area-plus {
  border-color: var(--green);
  color: var(--green);
}

/* The chosen card takes the jade of what's active, at once: its edge, its light and its ring, turned into a cross. */
.areas-index .area.is-open {
  --hue: var(--green);
  border-color: color-mix(in srgb, var(--green) 55%, transparent);
  transition: transform var(--slow) var(--ease), box-shadow var(--slow);
}

/* A press quickens what a card does under the finger, but not its letting go of the jade, which a tap starts while
   the finger is still down. */
.areas-index .area:active {
  transition-duration: calc(var(--fast) / 4), calc(var(--fast) / 4), var(--medium), var(--fast), var(--medium);
}

.areas-index .area.is-open::before,
.areas-index .area.is-open::after {
  opacity: 1;
}

.area.is-open .area-plus {
  border-color: var(--green);
  color: var(--green);
  transform: rotate(45deg);
}

/* The options: each one a row with its name, what its price covers and the price, leading to its own page, and lit
   evenly under the pointer like the other rows of the site. */
.area-options {
  min-width: 0;
}

.offers-index {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  /* The rules between rows stay; the one above the first row, right under the box's edge, is trimmed away. The
     sides are left open for the light of a row, which spreads a little past the text. */
  clip-path: inset(1px -0.75rem 0 -0.75rem);
}

/* Each option fills its cell, however tall the one beside it makes the row, so the whole cell lights up and takes
   the click. As on the services page, its rule stays in line with the text while the light spreads a little past
   it, evenly, with rounded corners. */
.offers-index > li {
  display: grid;
  border-top: 1px solid var(--rule);
}

.offer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.2rem 0.85rem;
  margin-inline: -0.75rem;
  padding: 0.85rem 0.75rem;
  border-radius: var(--radius-m);
  color: var(--text);
  text-decoration: none;
  transition: background-color var(--fast);
}

.offer-name {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
  font-weight: 600;
  line-height: 1.3;
  transition: color var(--fast);
}

.offer-name small {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.45;
}

.offer-price {
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.offer .arrow-right {
  color: var(--green);
  transition: transform var(--fast) var(--ease);
}

.offer:is(:hover, :active) {
  background: color-mix(in srgb, var(--platinum) 8%, transparent);
}

.offer:is(:hover, :active) .offer-name {
  color: var(--green);
}

.offer:is(:hover, :active) .arrow-right {
  transform: translateX(3px);
}

/* The keyboard's ring follows the lit shape, inside it, clear of the text. */
.offer:focus-visible {
  outline: 2px solid var(--glow);
  outline-offset: -2px;
}

/* The amount itself reads first: in ink and semibold, after a quiet "From". */
.offer-price {
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
}

.offer-price > span:first-child,
.offer-price .per {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 400;
}

/* While a list comes into view its rows rise in, one after another; with reduced motion they only fade in. */
.area-options.is-coming .offer {
  animation: offer-in var(--medium) var(--ease) both;
}

.area-options.is-coming li:nth-child(2) .offer { animation-delay: calc(var(--fast) / 5); }
.area-options.is-coming li:nth-child(3) .offer { animation-delay: calc(var(--fast) / 5 * 2); }
.area-options.is-coming li:nth-child(4) .offer { animation-delay: calc(var(--fast) / 5 * 3); }
.area-options.is-coming li:nth-child(5) .offer { animation-delay: calc(var(--fast) / 5 * 4); }
.area-options.is-coming li:nth-child(6) .offer { animation-delay: calc(var(--fast) / 5 * 5); }

@keyframes offer-in {
  from {
    opacity: 0;
    transform: translateY(0.4rem);
  }
}

:root:not(.motion) .area-options.is-coming .offer {
  animation-name: offer-fade;
}

@keyframes offer-fade {
  from {
    opacity: 0;
  }
}

/* One under another: the open card and its list join into one box, the list continuing the card's glass. The cards
   keep their distance with a margin, not the grid's gap: a gap stays for as long as the list beside it exists, so
   the page would jump by it the moment a folded list is gone. */
@media (max-width: 47.999rem) {
  .areas-index {
    row-gap: 0;
  }

  .areas-index > .area ~ .area {
    margin-top: 1rem;
  }

  .areas-index .area.is-joined {
    border-bottom-color: transparent;
    border-radius: var(--radius-l) var(--radius-l) 0 0;
  }

  /* The list hangs from its card's foot, and it is the box itself, so its rounded foot stays whole while it folds.
     Its edge lets go of the jade with its card's. Without JavaScript the lists simply follow their cards, in the
     card's own platinum. */
  .area-options {
    border: 1px solid var(--glass-line);
    border-top: 0;
    border-radius: 0 0 var(--radius-l) var(--radius-l);
    background: var(--glass);
    box-shadow: 0 1.75rem 3rem -2.25rem var(--shade);
    transition: border-color var(--medium);
  }

  .area-options.is-open {
    border-color: color-mix(in srgb, var(--green) 55%, transparent);
    transition: none;
  }

  .area-options-box {
    padding: 0.25rem 1.25rem 0.6rem;
  }
}

@media (max-width: 39.999rem) {
  .areas-index .area {
    padding: 1.25rem 1.25rem 1.1rem;
  }

  .area-options-box {
    padding-inline: 1.25rem;
  }

  /* On phones "Something else in mind?" keeps its invitation and its button; the examples wait for wider screens. */
  .custom-work .custom-examples {
    display: none;
  }

  .custom-work {
    gap: 1.1rem;
  }
}

/* With the text at its largest on a phone, the cards' sides and their lists' keep the padding they have with the
   usual text. */
@media (max-width: 19.49rem) {
  .areas-index .area,
  .area-options-box {
    padding-inline: 20px;
  }
}

/* Three in a row: the cards choose, and the list of the chosen one fills a panel under all three, in two or three
   columns as the width allows. */
@media (min-width: 48rem) {
  /* The panel keeps its distance from the cards with its own margin, not the grid's gap, so the distance can fold
     away with it (public/main.js). The panel is the box itself, so its rounded foot stays whole while it folds. */
  .areas-index {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    row-gap: 0;
  }

  .areas-index > .area {
    grid-row: 1;
  }

  .areas-index > .area-options {
    grid-column: 1 / -1;
    margin-top: 1.25rem;
    border: 1px solid transparent;
    border-radius: var(--radius-l);
    background:
      radial-gradient(120% 120% at 0% 0%, color-mix(in srgb, var(--tile-light) var(--tile-mix), transparent), transparent 55%) padding-box,
      linear-gradient(180deg, var(--tile-top), var(--tile-bottom)) padding-box,
      linear-gradient(135deg, var(--metal-hi), var(--metal-lo) 30%, var(--metal) 55%, var(--metal-lo) 80%, var(--metal-hi)) border-box;
    box-shadow:
      inset 0 1px 0 var(--sheen),
      0 1.75rem 3rem -2.25rem var(--shade);
  }

  .area-options-box {
    padding: 0.75rem 1.75rem 1.1rem;
  }

  .js .areas-index > .area-options {
    grid-row: 2;
  }

  /* One column where two won't fit, and never more than two: on very wide screens a third would leave each name
     a few words to a line. */
  .offers-index {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, max(19rem, (100% - 2.25rem) / 2)), 1fr));
    column-gap: 2.25rem;
  }

  .areas-index .area-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

.areas-all {
  margin: 1.5rem 0 0;
  text-wrap: pretty;
}

.areas-all a {
  padding-block: 2px;
  color: var(--green);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--green) 45%, transparent);
  text-underline-offset: 0.3em;
  transition: text-decoration-color var(--fast);
}

.areas-all a:is(:hover, :active, :focus-visible) {
  text-decoration-color: var(--green);
}

.areas-all .arrow-right {
  display: inline-block;
  margin-left: 0.45rem;
  vertical-align: -0.05em;
}

/* On touch screens it gives a finger 44 px, as "All questions" does. */
@media (pointer: coarse) {
  .areas-all a {
    display: inline-block;
    padding-block: 0.7rem;
    margin-block: -0.7rem;
  }
}

/* "Print or save as PDF" on the guided form: under the receipt once there's a price. */
.start-print {
  justify-self: start;
  width: auto;
  margin-top: 0.5rem;
}

/* While the file is being made, the button waits, quieter. */
.start-print.is-busy {
  cursor: progress;
  opacity: 0.7;
}

/* Under it, where the document goes once the request is sent. */
.start-print-note {
  margin: -0.25rem 0 0;
  color: var(--faint);
  font-size: 0.875rem;
  line-height: 1.45;
  text-wrap: pretty;
}

.start-print-note[hidden] {
  display: none;
}

/* Until there's a price, there's nothing to print: .btn's display would otherwise show it. */
.start-print[hidden] {
  display: none;
}

/* The printed price: a studio's quote on one page, A4 or US letter, in ink on white. The monogram and the name head
   it over a line of jade, beside what it is and the kind of price it holds; under them, who it's for, its number,
   its date and the day it holds until. Each project has its service's sign, what its price covers, how long it takes
   and its price; the total is the one plate that stands out, with the two halves it's paid in; then what's paid to
   others, the next steps and what every project includes, and at the foot of the page, how to reach me. The page is
   filled to its foot, so the sheet never ends in an empty stretch. public/start.js fills it in from a template and
   measures it, so it's never on screen; its sizes are in points and millimetres, as paper is. */
.sheet {
  --sheet-ink: #13191d;
  --sheet-text: #2a3236;
  --sheet-quiet: #5b6368;
  --sheet-rule: #d9dee1;
  --sheet-metal: #b9bec2;
  --sheet-jade: #21624d;
  --sheet-wash: #eef5f1;
  display: none;
  box-sizing: border-box;
  width: 100%;
  padding: 13mm 15mm 11mm;
  background: #fff;
  color: var(--sheet-text);
  font: 400 9.5pt/1.45 var(--sans);
  font-variant-numeric: tabular-nums;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.sheet.is-measuring {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 0;
  left: -10000px;
  width: 210mm;
  /* Measured by what it holds, never by the page it will fill. */
  min-height: 0 !important;
  visibility: hidden;
}

.sheet p,
.sheet h1,
.sheet h2,
.sheet ul,
.sheet ol {
  margin: 0;
  padding: 0;
}

.sheet ul,
.sheet ol {
  list-style: none;
}

/* A section's title, as a label: small capitals with room between the letters, like the site's own. */
.sheet h2,
.sheet-facts-row span {
  color: var(--sheet-quiet);
  font: 600 7.5pt/1.3 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sheet h2 {
  margin-bottom: 2.5mm;
}

.sheet strong {
  color: var(--sheet-ink);
  font-weight: 600;
}

.sheet-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8mm;
  padding-bottom: 5mm;
  border-bottom: 1.5pt solid var(--sheet-jade);
}

.sheet-brand {
  display: flex;
  align-items: center;
  gap: 3.5mm;
}

.sheet-brand .brand-mark {
  flex: none;
  width: 12mm;
  height: 12mm;
}

.sheet-name {
  color: var(--sheet-ink);
  font: 600 14pt/1.15 var(--sans);
  letter-spacing: -0.01em;
}

.sheet-role {
  margin-top: 0.8mm;
  color: var(--sheet-quiet);
  font-size: 9pt;
}

.sheet-title {
  text-align: right;
}

.sheet-title h1 {
  color: var(--sheet-ink);
  font: 600 22pt/1 var(--sans);
  letter-spacing: -0.02em;
}

/* What kind of price it holds: jade when it's final, quiet when it's where the price starts. */
.sheet-kind {
  display: inline-flex;
  align-items: center;
  gap: 1.5mm;
  margin-top: 2mm !important;
  color: var(--sheet-quiet);
  font-size: 8.5pt;
  font-weight: 600;
}

.sheet-kind::before {
  content: "";
  width: 1.6mm;
  height: 1.6mm;
  border-radius: 50%;
  background: var(--sheet-metal);
}

.sheet-kind.is-final {
  color: var(--sheet-jade);
}

.sheet-kind.is-final::before {
  background: var(--sheet-jade);
}

/* Who it's for, its number, its date and the day it holds until, in one row under the head. */
.sheet-facts-row {
  display: flex;
  justify-content: space-between;
  gap: 8mm;
  padding: 3.5mm 0;
  border-bottom: 0.75pt solid var(--sheet-rule);
}

/* The number and the two dates keep to one line each, whatever the browser's letters measure; who it's for takes
   the room that's left, and a long name wraps there. */
.sheet-facts-row p {
  display: grid;
  flex: none;
  align-content: start;
  gap: 0.8mm;
}

.sheet-facts-row [data-sheet-fact="for"] {
  flex: 1 1 0;
  min-width: 0;
}

.sheet-facts-row strong {
  font-size: 9.5pt;
  line-height: 1.3;
  white-space: nowrap;
}

.sheet-facts-row [data-sheet-for] {
  overflow-wrap: anywhere;
  white-space: normal;
}

.sheet-facts-row [data-sheet-ref] {
  font-family: var(--mono);
  font-weight: 500;
}

.sheet-items {
  margin-top: 6mm;
}

.sheet table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.sheet th {
  padding: 0 3mm 1.6mm 0;
  border-bottom: 0.75pt solid var(--sheet-metal);
  color: var(--sheet-quiet);
  font-size: 8pt;
  font-weight: 500;
  text-align: left;
}

.sheet th:nth-child(2) {
  width: 19%;
}

.sheet th:nth-child(3) {
  width: 21%;
}

.sheet td {
  padding: 2.6mm 3mm 2.6mm 0;
  border-bottom: 0.75pt solid var(--sheet-rule);
  vertical-align: middle;
  white-space: nowrap;
}

.sheet :is(th, td):last-child {
  padding-right: 0;
  text-align: right;
}

/* A project: its service's sign on a small plate of platinum, then its name over what its price covers. */
.sheet td.sheet-project {
  white-space: normal;
}

.sheet-sign {
  display: grid;
  float: left;
  place-items: center;
  width: 7.5mm;
  height: 7.5mm;
  border-radius: var(--radius-s);
  background: linear-gradient(145deg, #f3f5f6, #cdd2d6);
  color: var(--sheet-ink);
  font: 600 7pt/1 var(--mono);
  letter-spacing: -0.04em;
  white-space: pre;
}

.sheet-project-name {
  display: block;
  margin-left: 10.5mm;
  color: var(--sheet-ink);
  font-size: 10pt;
  font-weight: 600;
  line-height: 1.3;
}

.sheet-project-name small {
  display: block;
  margin-top: 0.5mm;
  color: var(--sheet-quiet);
  font-size: 8.5pt;
  font-weight: 400;
  line-height: 1.4;
}

.sheet-price {
  color: var(--sheet-ink);
  font-size: 10pt;
  font-weight: 600;
}

.sheet-price span,
.sheet-total-amount span,
.sheet-half strong span {
  color: var(--sheet-quiet);
  font-size: 0.72em;
  font-weight: 400;
  letter-spacing: 0;
}

.sheet td.sheet-open {
  color: var(--sheet-quiet);
  font-size: 8.5pt;
  white-space: normal;
}

.sheet-extra td {
  padding-block: 1.4mm;
  border-bottom-style: dotted;
  font-size: 9pt;
}

.sheet-extra td:first-child {
  padding-left: 10.5mm;
}

.sheet-extra td:first-child::before {
  content: "+ ";
  color: var(--sheet-jade);
}

/* The total, on the one plate of the page: the figure, the two halves it's paid in, the first under a line of jade
   and the second under one of platinum, and what the price depends on. */
.sheet-total {
  display: grid;
  gap: 3.5mm;
  margin-top: 5mm;
  padding: 5mm 5.5mm 4.5mm;
  border: 1pt solid var(--sheet-jade);
  border-radius: var(--radius-m);
  background: var(--sheet-wash);
}

.sheet-total-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8mm;
}

.sheet-total-label {
  color: var(--sheet-ink);
  font: 600 12pt/1.2 var(--sans);
}

.sheet-total-amount {
  color: var(--sheet-ink);
  font: 600 27pt/1 var(--sans);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.sheet-total-amount span {
  font-size: 0.42em;
}

.sheet-pay {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 6mm;
  padding-top: 3.5mm;
  border-top: 0.75pt solid color-mix(in srgb, var(--sheet-jade) 30%, transparent);
}

.sheet-pay-title,
.sheet-half {
  display: grid;
  gap: 0.6mm;
}

.sheet-pay-title span,
.sheet-half > span {
  color: var(--sheet-quiet);
  font-size: 8.5pt;
}

.sheet-half {
  padding-top: 1.8mm;
  border-top: 1.5pt solid var(--sheet-jade);
}

.sheet-half + .sheet-half {
  border-top-color: var(--sheet-metal);
}

.sheet-half strong {
  font-size: 11.5pt;
  line-height: 1.2;
}

.sheet-total-note {
  font-size: 8.5pt;
  line-height: 1.5;
}

.sheet-total-note strong {
  color: var(--sheet-jade);
}

.sheet-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9mm;
  margin-top: 6mm;
}

.sheet-pair [data-sheet-others] li {
  padding: 1.3mm 0;
  border-bottom: 0.75pt solid var(--sheet-rule);
}

.sheet-pair [data-sheet-others] li:first-child {
  border-top: 0.75pt solid var(--sheet-rule);
}

/* The next steps, one under another beside what's paid to others. */
.sheet-next ol {
  display: grid;
  gap: 1.8mm;
}

.sheet-next li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3mm;
  padding-top: 1.8mm;
  border-top: 0.75pt solid var(--sheet-rule);
}

.sheet-step {
  color: var(--sheet-jade);
  font: 500 8.5pt/1.6 var(--mono);
}

/* Nothing to pay others: the steps take the whole width, side by side. */
.sheet-pair:not(:has([data-sheet-others])) {
  grid-template-columns: minmax(0, 1fr);
}

.sheet-pair:not(:has([data-sheet-others])) .sheet-next ol {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7mm;
}

.sheet-pair:not(:has([data-sheet-others])) .sheet-next li {
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 1mm;
  border-top: 1.5pt solid var(--sheet-metal);
}

.sheet-includes {
  margin-top: 6mm;
}

.sheet-includes ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7mm;
}

.sheet-includes li {
  padding-top: 2.2mm;
  border-top: 1.5pt solid var(--sheet-metal);
}

.sheet-includes strong {
  display: block;
  margin-bottom: 0.8mm;
}

.sheet-foot {
  padding-top: 6mm;
  color: var(--sheet-quiet);
  font-size: 8.5pt;
}

.sheet-small {
  max-width: 150mm;
  font-size: 8pt;
  line-height: 1.5;
}

.sheet-foot-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: end;
  gap: 8mm;
  margin-top: 3mm;
  padding-top: 3.5mm;
  border-top: 0.75pt solid var(--sheet-metal);
}

.sheet-contact {
  display: grid;
  gap: 0.6mm;
}

.sheet-contact strong {
  color: var(--sheet-jade);
  font-size: 10pt;
}

.sheet-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1mm 6mm;
}

/* Asked for as a PDF (public/start.js), the page is the sheet and nothing else, whatever reads it. */
.sheet-only body {
  background: #fff !important;
}

.sheet-only body > :not(.sheet) {
  display: none !important;
}

.sheet-only .sheet {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: calc(100vh / var(--fit, 1));
}

@media print {
  @page {
    size: auto;
    margin: 0;
  }

  /* While the sheet is there, it's the only thing that prints. */
  body:has(> .sheet) {
    background: #fff !important;
  }

  body:has(> .sheet) > :not(.sheet) {
    display: none !important;
  }

  /* On paper the sheet fills the page, whatever the paper: the room left over is shared out between its parts, so
     its foot sits at the foot and nothing is left hanging over an empty stretch. */
  .sheet {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: calc(100vh / var(--fit, 1));
  }
}
