/* ===========================================================================
   Shopfront Web — landing page
   Concept: "Fascia". See landing/DESIGN.md.

   Only landing/index.html and landing/privacy.html load this file. The dashboard
   has its own (public/style.css) and each generated customer site carries its own.

   Palette is deliberately small and named once, here. Tints are derived with
   color-mix rather than by adding new values, so the whole page is seven colours.
   =========================================================================== */

:root {
  /* Ground, ink, fascia, brass. Nothing else. */
  --c-paper:  #F4F0E6;   /* limewashed ground */
  --c-board:  #EAE4D6;   /* one step down, for banding */
  --c-ink:    #171A17;   /* body text, 15.1:1 on paper */
  --c-ash:    #5C6159;   /* secondary text, 5.5:1 on paper */
  --c-deep:   #0F3D2E;   /* the fascia */
  --c-brass:  #B6873C;   /* keylines and rules only: 2.8:1, never text on paper */
  --c-bronze: #7A5518;   /* the same metal, dark enough to read as text: 5.3:1 */
  --c-lamp:   #D8A95A;   /* brass lifted for text on the fascia, 5.6:1 */

  --rule: color-mix(in srgb, var(--c-ink) 14%, transparent);
  --rule-strong: color-mix(in srgb, var(--c-ink) 30%, transparent);
  --rule-light: color-mix(in srgb, var(--c-paper) 22%, transparent);

  /* Type. Two families, nothing else. */
  --display: 'Fraunces', 'Fraunces fallback', 'Times New Roman', serif;
  --body: 'Karla', 'Karla fallback', Arial, sans-serif;

  /* Scale: 1.25 on a phone. The display sizes widen to 1.333 above 900px. */
  --t--1: 0.8125rem;   /* 13px  fine print */
  --t-0:  0.9375rem;   /* 15px  labels */
  --t-1:  1.0625rem;   /* 17px  body */
  --t-2:  1.25rem;     /* 20px  lead */
  --t-3:  1.5rem;      /* 24px  h3 */
  --t-4:  1.875rem;    /* 30px  h2 */
  --t-5:  2.375rem;    /* 38px  h1 on a phone */

  /* Spacing, on a 4px base. */
  --s-1: 0.25rem; --s-2: 0.5rem;  --s-3: 0.75rem; --s-4: 1rem;
  --s-5: 1.5rem;  --s-6: 2rem;    --s-7: 3rem;    --s-8: 4rem;
  --s-9: 6rem;    --s-10: 8rem;

  --measure: 62ch;
  --gutter: var(--s-5);
  --maxw: 72rem;
  --tap: 2.75rem;      /* 44px */
}

/* ---- Fonts. Self-hosted, latin only, with metric-matched fallbacks so the
   swap cannot move anything sideways. Every text element below carries an
   explicit line-height, so the swap cannot move anything vertically either. ---- */

@font-face {
  font-family: 'Fraunces';
  src: url('fonts/fraunces-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('fonts/fraunces-900.woff2') format('woff2');
  font-weight: 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Karla';
  src: url('fonts/karla-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Karla';
  src: url('fonts/karla-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Karla';
  src: url('fonts/karla-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* Measured in Chromium: Fraunces runs 123.69% of the width of Times New Roman at
   700 and 127.86% at 900; Karla runs 102.67% of Arial at 400 and 107.22% at 700.
   Liberation Serif and Liberation Sans are metric clones of those two, so the
   same numbers hold on a Linux visitor's machine. */
@font-face {
  font-family: 'Fraunces fallback';
  src: local('Times New Roman'), local('Liberation Serif'), local('Tinos'), local('Georgia');
  font-weight: 700; size-adjust: 123.69%;
}
@font-face {
  font-family: 'Fraunces fallback';
  src: local('Times New Roman'), local('Liberation Serif'), local('Tinos'), local('Georgia');
  font-weight: 900; size-adjust: 127.86%;
}
@font-face {
  font-family: 'Karla fallback';
  src: local('Arial'), local('Liberation Sans'), local('Helvetica');
  font-weight: 400; size-adjust: 102.67%;
}
@font-face {
  font-family: 'Karla fallback';
  src: local('Arial'), local('Liberation Sans'), local('Helvetica');
  font-weight: 700; size-adjust: 107.22%;
}

/* ---- Reset, kept to what is actually needed ---- */

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

html {
  -webkit-text-size-adjust: 100%;
  /* The two "Ask for a free preview" buttons are in-page links to the form. Gliding
     there shows the reader where they have been taken; jumping there does not. */
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--c-paper);
  color: var(--c-ink);
  font-family: var(--body);
  font-size: var(--t-1);
  font-weight: 400;
  line-height: 1.62;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 0;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }

::selection { background: var(--c-lamp); color: var(--c-ink); }

a { color: inherit; }

/* One focus style, drawn rather than inherited, and legible on both grounds. */
:focus-visible {
  outline: 2px solid var(--c-deep);
  outline-offset: 3px;
  border-radius: 1px;
}
.work :focus-visible, .contact :focus-visible, .fascia :focus-visible {
  outline-color: var(--c-lamp);
}


.skip {
  position: absolute; left: var(--s-4); top: -4rem; z-index: 20;
  background: var(--c-deep); color: var(--c-paper);
  padding: var(--s-3) var(--s-4);
  font-size: var(--t-0); font-weight: 700; text-decoration: none;
  transition: top 120ms ease-out;
}
.skip:focus { top: var(--s-4); }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ===========================================================================
   The fascia: the painted nameboard across the top
   =========================================================================== */

.fascia {
  background: var(--c-deep);
  color: var(--c-paper);
  position: relative;
}

.fascia-in {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: var(--s-3) var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-5); flex-wrap: wrap;
}

.sign {
  display: inline-flex; align-items: center; gap: var(--s-3);
  text-decoration: none;
  min-height: var(--tap);
  color: var(--c-paper);
}
.sign-mark {
  width: 1.75rem; height: 1.75rem; flex: none;
  fill: none; stroke: var(--c-lamp); stroke-width: 1.75;
  stroke-linecap: square; stroke-linejoin: miter;
}
.sign-name {
  font-family: var(--display); font-weight: 900;
  font-size: var(--t-2); line-height: 1.1;
  letter-spacing: 0.005em;
}

.nav {
  display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap;
  font-size: var(--t-0); font-weight: 500;
}
.nav a {
  display: inline-flex; align-items: center;
  min-height: var(--tap); padding-inline: var(--s-3);
  text-decoration-color: color-mix(in srgb, var(--c-lamp) 60%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}
.nav a:hover { color: var(--c-lamp); }

/* The signature moment: the brass keyline under the board paints itself once. */
.keyline {
  display: block; width: 100%; height: 2px;
}
.keyline line {
  stroke: var(--c-brass); stroke-width: 2;
  stroke-dasharray: 1200; stroke-dashoffset: 1200;
  animation: paint 1100ms 150ms ease-out forwards;
}
@keyframes paint { to { stroke-dashoffset: 0; } }

/* ===========================================================================
   Hero
   =========================================================================== */

.hero { padding-block: var(--s-7) var(--s-8); }

.hero-grid { display: grid; gap: var(--s-7); }

.eyebrow {
  font-size: var(--t--1); font-weight: 700; line-height: 1.4;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--c-ash);
  margin-bottom: var(--s-4);
}

h1 {
  font-size: var(--t-5);
  line-height: 1.04;
  max-width: 20ch;
}

.lead {
  font-size: var(--t-2); line-height: 1.5;
  max-width: 34ch;
  margin-top: var(--s-5);
}

.cta {
  display: flex; flex-wrap: wrap; gap: var(--s-3);
  margin-top: var(--s-6);
}
.cta .btn { flex: 1 1 14rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--tap); padding: var(--s-3) var(--s-5);
  font-family: var(--body); font-size: var(--t-1); font-weight: 700;
  line-height: 1.2; text-decoration: none;
  border: 1.5px solid var(--c-deep);
  transition: transform 140ms ease-out, background-color 140ms ease-out, color 140ms ease-out;
}
.btn-main { background: var(--c-deep); color: var(--c-paper); }
.btn-main:hover { transform: translateY(-2px); background: color-mix(in srgb, var(--c-deep) 88%, var(--c-ink)); }
.btn-quiet { background: transparent; color: var(--c-ink); border-color: var(--rule-strong); }
.btn-quiet:hover { border-color: var(--c-deep); transform: translateY(-2px); }

.note {
  font-size: var(--t-0); line-height: 1.55; color: var(--c-ash);
  max-width: 44ch; margin-top: var(--s-4);
}

/* ---- The phone, drawn rather than photographed ---- */

.hero-show { margin: 0; }

.phone {
  background: var(--c-deep);
  border: 1px solid var(--c-deep);
  border-radius: 1.5rem;          /* a phone really is this shape */
  padding: var(--s-2);
  max-width: 21rem;
  box-shadow: 0 1.25rem 2.5rem -1rem color-mix(in srgb, var(--c-ink) 38%, transparent);
}
.phone-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s-1) var(--s-3) var(--s-2);
  color: color-mix(in srgb, var(--c-paper) 70%, transparent);
  font-size: var(--t--1); line-height: 1.2;
}
.phone-time { font-weight: 700; font-variant-numeric: tabular-nums; }
.phone-dots { display: inline-flex; gap: 3px; }
.phone-dots i { width: 4px; height: 4px; background: currentColor; border-radius: 50%; }

.phone-screen {
  background: var(--c-paper);
  border-radius: 1rem;
  padding: var(--s-4);
}

.sms-from {
  font-size: var(--t--1); line-height: 1.3; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--c-ash);
  margin-bottom: var(--s-3);
}
.sms {
  background: var(--c-board);
  border-inline-start: 2px solid var(--c-brass);
  padding: var(--s-4);
  font-size: var(--t-0); line-height: 1.5;
}
.sms p + p { margin-top: var(--s-3); }
.sms-link {
  display: block;
  margin-block: var(--s-1);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--c-brass);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
.sms-time {
  font-size: var(--t--1); line-height: 1.4; color: var(--c-ash);
  margin-top: var(--s-2);
}

/* The top of the site the link opens. */
.mini {
  margin-top: var(--s-4);
  border: 1px solid var(--rule);
  padding: var(--s-4);
  font-size: var(--t--1);
  line-height: 1.5;
}
.mini-top {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--s-3);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--rule);
}
.mini-name { font-family: var(--display); font-weight: 900; font-size: var(--t-0); line-height: 1.2; }
.mini-call {
  font-weight: 700; font-size: var(--t--1); line-height: 1.2;
  padding: var(--s-1) var(--s-3);
  background: var(--c-deep); color: var(--c-paper);
}
.mini-h {
  font-family: var(--display); font-weight: 700;
  font-size: var(--t-0); line-height: 1.25;
  margin-top: var(--s-3);
}
.mini-p { color: var(--c-ash); margin-top: var(--s-2); }
.mini-list {
  display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4);
  margin-top: var(--s-3);
  font-weight: 700;
}
.mini-list li { display: flex; align-items: center; gap: var(--s-2); }
.mini-list li::before {
  content: ''; width: 5px; height: 5px; flex: none;
  background: var(--c-brass);
}

.hero-show figcaption {
  font-size: var(--t-0); line-height: 1.55; color: var(--c-ash);
  max-width: 34ch; margin-top: var(--s-4);
}
.sample {
  display: block; margin-top: var(--s-2);
  font-size: var(--t--1); line-height: 1.45;
}

/* ===========================================================================
   How it works
   =========================================================================== */

.how {
  background: var(--c-board);
  padding-block: var(--s-8);
  border-block: 1px solid var(--rule);
}

.h-section {
  font-size: var(--t-4);
  line-height: 1.1;
  max-width: 26ch;
}

.steps {
  display: grid; gap: var(--s-6);
  margin-top: var(--s-7);
  counter-reset: step;
}
.steps > li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: var(--s-3) var(--s-4);
  padding-top: var(--s-4);
  border-top: 1px solid var(--rule);
}
.num {
  font-family: var(--display); font-weight: 900;
  font-size: var(--t-4); line-height: 0.9;
  color: var(--c-bronze);
  font-variant-numeric: tabular-nums;
}
.steps h3 {
  font-size: var(--t-3); line-height: 1.15;
  font-weight: 700;
  align-self: start;
}
.steps p {
  grid-column: 2;
  max-width: var(--measure);
  color: var(--c-ash);
}

/* ===========================================================================
   What it looks like — the one full-bleed band
   =========================================================================== */

.work {
  background: var(--c-deep);
  color: var(--c-paper);
  padding-block: var(--s-8);
}
.h-light { color: var(--c-paper); }
.work-grid { display: grid; gap: var(--s-7); }
.work-say p {
  max-width: var(--measure);
  margin-top: var(--s-5);
  color: color-mix(in srgb, var(--c-paper) 82%, var(--c-deep));
}

/* The shop window: a fascia, then glass you can see the site through. */
.work-show { margin: 0; max-width: 24rem; }
.shopwin { border: 1px solid var(--rule-light); }
.shopwin-fascia {
  background: var(--c-ink);
  border-bottom: 2px solid var(--c-brass);
  padding: var(--s-4);
  text-align: center;
}
.shopwin-fascia span {
  font-family: var(--display); font-weight: 900;
  font-size: var(--t-2); line-height: 1.15;
  color: var(--c-lamp);
  letter-spacing: 0.02em;
}
.shopwin-glass { background: var(--c-paper); padding: var(--s-3); }

.site { color: var(--c-ink); font-size: var(--t--1); line-height: 1.5; }
.site-nav {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--s-3);
  padding-bottom: var(--s-3); border-bottom: 1px solid var(--rule);
}
.site-logo { font-family: var(--display); font-weight: 900; font-size: var(--t-0); line-height: 1.2; }
.site-tel { font-weight: 700; font-variant-numeric: tabular-nums; }
.site-h {
  font-family: var(--display); font-weight: 900;
  font-size: var(--t-3); line-height: 1.1;
  margin-top: var(--s-4);
}
.site-sub { color: var(--c-ash); margin-top: var(--s-2); max-width: 30ch; }
.site-btn {
  display: inline-block; margin-top: var(--s-4);
  background: var(--c-deep); color: var(--c-paper);
  font-weight: 700; padding: var(--s-2) var(--s-4);
}
.site-rows { margin-top: var(--s-4); border-top: 1px solid var(--rule); }
.site-row {
  display: flex; justify-content: space-between; gap: var(--s-4);
  padding: var(--s-2) 0; border-bottom: 1px solid var(--rule);
}
.site-row span:first-child { font-weight: 700; }
.site-row span:last-child { color: var(--c-ash); text-align: end; }

.fc-light {
  font-size: var(--t--1); line-height: 1.5;
  color: color-mix(in srgb, var(--c-paper) 72%, var(--c-deep));
  max-width: 34ch; margin-top: var(--s-4);
}

/* ===========================================================================
   What is in it
   =========================================================================== */

.scope { padding-block: var(--s-8); }
.scope-grid { display: grid; gap: var(--s-7); margin-top: var(--s-7); }

.col-h {
  font-size: var(--t-0); font-weight: 700; line-height: 1.3;
  font-family: var(--body);
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--c-ash);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--rule-strong);
}

.ticks { margin-top: var(--s-4); }
.ticks li {
  display: grid; grid-template-columns: 1.25rem 1fr; gap: var(--s-3);
  padding-block: var(--s-3);
  border-bottom: 1px solid var(--rule);
}
.ic {
  width: 1rem; height: 1rem; margin-top: 0.3em;
  fill: none; stroke: var(--c-deep); stroke-width: 2;
  stroke-linecap: square;
}
.crosses .ic { stroke: var(--c-ash); }
.crosses span { color: var(--c-ash); }
.scope-note {
  font-size: var(--t-0); line-height: 1.55; color: var(--c-ash);
  margin-top: var(--s-4); max-width: var(--measure);
}

/* ===========================================================================
   Prices
   =========================================================================== */

.prices {
  padding-block: var(--s-8);
  background: var(--c-board);
  border-block: 1px solid var(--rule);
}

.free-h { color: var(--c-deep); max-width: 18ch; }
.prices-sub {
  font-size: var(--t-2); line-height: 1.45;
  max-width: 44ch;
  padding-top: var(--s-5); margin-top: var(--s-5);
  border-top: 2px solid var(--c-brass);
}

.panels { display: grid; gap: var(--s-6); margin-top: var(--s-7); }

.panel {
  background: var(--c-paper);
  border: 1px solid var(--rule-strong);
  padding: var(--s-5);
}
.panel-h {
  font-family: var(--body); font-weight: 700;
  font-size: var(--t-0); line-height: 1.3;
  letter-spacing: 0.1em; text-transform: uppercase;
  text-align: center;
  background: var(--c-deep); color: var(--c-paper);
  margin: calc(var(--s-5) * -1) calc(var(--s-5) * -1) var(--s-5);
  padding: var(--s-3) var(--s-4);
}
.price {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 var(--s-2);
  font-family: var(--display);
  font-variant-numeric: tabular-nums;
}
.price .amount { font-size: 3rem; font-weight: 900; line-height: 1.05; letter-spacing: -0.03em; }
.price .per, .price .from {
  font-family: var(--body); font-size: var(--t--1); font-weight: 700;
  line-height: 1.4; color: var(--c-ash);
  letter-spacing: 0.1em; text-transform: uppercase;
}
.price .from, .price .per { flex-basis: 100%; }
.price .per { margin-top: var(--s-1); }
.panel-say {
  margin-top: var(--s-4); max-width: 42ch;
}
.terms { margin: var(--s-5) 0 0; }
.terms dt {
  font-size: var(--t--1); font-weight: 700; line-height: 1.3;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--c-ash);
  padding-top: var(--s-4); margin-top: var(--s-4);
  border-top: 1px solid var(--rule);
}
.terms dd { margin: var(--s-2) 0 0; font-size: var(--t-0); line-height: 1.55; }
.panel-foot {
  font-size: var(--t--1); line-height: 1.5; color: var(--c-ash);
  margin-top: var(--s-5);
}
.prices-foot {
  font-size: var(--t-0); line-height: 1.6; color: var(--c-ash);
  max-width: var(--measure); margin-top: var(--s-6);
}

/* ===========================================================================
   You own it — the quiet wide statement
   =========================================================================== */

.own { padding-block: var(--s-9); }
.own-grid { display: grid; gap: var(--s-5); }
.own-h {
  font-size: var(--t-4); max-width: 30ch;
  padding-bottom: var(--s-5);
  border-bottom: 2px solid var(--c-brass);
}
.own-say p { max-width: var(--measure); }
.own-say p + p { margin-top: var(--s-4); }

/* ===========================================================================
   Who
   =========================================================================== */

.who {
  padding-block: var(--s-8);
  background: var(--c-board);
  border-block: 1px solid var(--rule);
}
.who-grid { display: grid; gap: var(--s-5); }
.who-say p { max-width: var(--measure); }
.who-say p + p { margin-top: var(--s-4); }

/* The signature. Set in the display face at the size a person signs at, with the
   studio name underneath in the body face. */
.signed {
  font-family: var(--display); font-weight: 700;
  font-size: var(--t-3); line-height: 1.15;
  padding-top: var(--s-4);
  margin-top: var(--s-5);
  border-top: 2px solid var(--c-brass);
  display: inline-block;
}
.signed span {
  display: block;
  font-family: var(--body); font-weight: 500;
  font-size: var(--t--1); line-height: 1.4;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--c-ash);
  margin-top: var(--s-2);
}

/* ===========================================================================
   Questions
   =========================================================================== */

.faq { padding-block: var(--s-8); }
.faq details {
  border-bottom: 1px solid var(--rule);
}
.faq details:first-of-type { border-top: 1px solid var(--rule-strong); margin-top: var(--s-6); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4);
  min-height: var(--tap);
  padding-block: var(--s-4);
  font-family: var(--display); font-weight: 700;
  font-size: var(--t-3); line-height: 1.25;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex: none;
  width: 0.75rem; height: 0.75rem;
  /* Rotating a square makes it wider than its box by its own diagonal. The margin
     reserves that, so the chevron cannot push the row past the edge on a 320px phone. */
  margin-inline: 3px;
  border-right: 2px solid var(--c-brass);
  border-bottom: 2px solid var(--c-brass);
  transform: translateY(-25%) rotate(45deg);
  transition: transform 160ms ease-out;
}
.faq details[open] summary::after { transform: translateY(-25%) rotate(225deg); }
.faq summary:hover { color: var(--c-deep); }
.answer { padding-bottom: var(--s-5); max-width: var(--measure); }
.answer p + p { margin-top: var(--s-4); }
.answer a {
  text-decoration-color: var(--c-brass);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
.answer a:hover { color: var(--c-deep); }

/* ===========================================================================
   Contact
   =========================================================================== */

.contact {
  background: var(--c-deep); color: var(--c-paper);
  padding-block: var(--s-8);
}
.contact-grid { display: grid; gap: var(--s-7); }
.contact-say {
  max-width: var(--measure); margin-top: var(--s-5);
  color: color-mix(in srgb, var(--c-paper) 82%, var(--c-deep));
}
.contact-routes { display: grid; gap: var(--s-4); align-content: start; }
.mail, .tel {
  display: inline-flex; align-items: center;
  min-height: var(--tap);
  font-family: var(--display); font-weight: 700;
  font-size: var(--t-3); line-height: 1.2;
  color: var(--c-lamp);
  text-decoration-color: color-mix(in srgb, var(--c-lamp) 45%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
  word-break: break-word;
}
.mail:hover, .tel:hover { text-decoration-color: var(--c-lamp); }
.contact-note {
  font-size: var(--t-0); line-height: 1.55;
  color: color-mix(in srgb, var(--c-paper) 70%, var(--c-deep));
  max-width: 44ch;
  margin-top: var(--s-5);
}
.mail-inline {
  color: var(--c-lamp);
  text-decoration-color: color-mix(in srgb, var(--c-lamp) 45%, transparent);
  text-underline-offset: 0.2em;
  word-break: break-word;
}
.mail-inline:hover { text-decoration-color: var(--c-lamp); }

/* ---- The enquiry form ----
   On the fascia ground, so the boxes are paper and the ink stays ink: the same
   contrast as the body of the page, not grey text in a grey box. */

.ask { display: grid; gap: var(--s-4); max-width: 34rem; }
.field { display: grid; gap: var(--s-2); }
.field-pair { display: grid; gap: var(--s-4); }

.ask label {
  font-size: var(--t--1); font-weight: 700; line-height: 1.3;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--c-paper);
}
.opt {
  font-weight: 400; letter-spacing: 0.04em; text-transform: none;
  color: color-mix(in srgb, var(--c-paper) 62%, var(--c-deep));
}
.field-note {
  font-size: var(--t--1); line-height: 1.4;
  color: color-mix(in srgb, var(--c-paper) 72%, var(--c-deep));
  margin-top: var(--s-2);
}

.ask input, .ask textarea {
  width: 100%;
  min-height: var(--tap);
  padding: var(--s-3);
  font-family: var(--body); font-size: var(--t-1); line-height: 1.45;
  color: var(--c-ink);
  background: var(--c-paper);
  border: 1.5px solid transparent;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}
.ask textarea { resize: vertical; min-height: 6rem; }
.ask input:hover, .ask textarea:hover { border-color: var(--c-lamp); }
.ask input:focus-visible, .ask textarea:focus-visible {
  outline: 2px solid var(--c-lamp);
  outline-offset: 2px;
  border-color: var(--c-deep);
}
.ask input:user-invalid, .ask textarea:user-invalid { border-color: var(--c-brass); }

/* The honeypot. Parked off the page rather than display:none, which some bots skip,
   and far enough off that it is not a tap target anybody could hit. */
.trap {
  position: absolute;
  left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
  white-space: nowrap;
}

.btn-lamp {
  background: var(--c-lamp); color: var(--c-ink);
  border-color: var(--c-lamp);
  justify-self: start;
  margin-top: var(--s-2);
}
.btn-lamp:hover {
  background: var(--c-paper); border-color: var(--c-paper);
  transform: translateY(-2px);
}
.btn-lamp[disabled] { opacity: 0.6; transform: none; cursor: progress; }

.ask-status {
  font-size: var(--t-0); line-height: 1.5;
  color: var(--c-lamp);
  min-height: 1.5em;
}
.ask-status:empty { min-height: 0; }
.ask-status.bad { color: var(--c-paper); }
.ask-status.bad::before {
  content: ''; display: inline-block;
  width: 0.5rem; height: 0.5rem; margin-right: 0.5rem;
  background: var(--c-brass);
  vertical-align: 0.1em;
}

/* ===========================================================================
   Footer
   =========================================================================== */

.foot { padding-block: var(--s-7) var(--s-6); }
.foot-grid { display: grid; gap: var(--s-6); }
.foot-name {
  font-family: var(--display); font-weight: 900;
  font-size: var(--t-2); line-height: 1.2;
  display: block; margin-bottom: var(--s-3);
}
.foot-brand p {
  font-size: var(--t-0); line-height: 1.55; color: var(--c-ash);
  max-width: 40ch;
}
.foot-nav { display: grid; gap: var(--s-1); align-content: start; font-size: var(--t-0); }
.foot-nav a {
  display: inline-flex; align-items: center;
  min-height: var(--tap);
  text-decoration-color: var(--rule-strong);
  text-underline-offset: 0.25em;
}
.foot-nav a:hover { color: var(--c-deep); text-decoration-color: var(--c-brass); }
.foot-fine {
  max-width: var(--maxw); margin: var(--s-6) auto 0;
  padding: var(--s-4) var(--gutter) 0;
  border-top: 1px solid var(--rule);
  font-size: var(--t--1); line-height: 1.5; color: var(--c-ash);
}

/* ===========================================================================
   The thumb bar, phones only
   =========================================================================== */

.sticky {
  position: fixed; inset: auto 0 0 0; z-index: 10;
  display: flex; gap: var(--s-3);
  padding: var(--s-3) var(--gutter);
  background: color-mix(in srgb, var(--c-paper) 94%, var(--c-ink));
  border-top: 1px solid var(--rule-strong);
  transform: translateY(110%);
  transition: transform 220ms ease-out;
}
.sticky.up { transform: none; }
.sticky .btn { flex: 1; }

/* Room for it, so it never covers the end of the footer. */
body { padding-bottom: 5.5rem; }

@media (min-width: 46em) {
  .sticky { display: none; }
  body { padding-bottom: 0; }
}

/* ===========================================================================
   Wider screens. The layout changes shape rather than stretching.
   =========================================================================== */

@media (min-width: 34em) {
  .field-pair { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 46em) {
  :root {
    --gutter: var(--s-6);
    --t-2: 1.375rem;
    --t-3: 1.625rem;
    --t-4: 2.25rem;
    --t-5: 3.25rem;
  }
  .steps { grid-template-columns: repeat(2, 1fr); gap: var(--s-7) var(--s-6); }
  .scope-grid { grid-template-columns: 1fr 1fr; gap: var(--s-8); }
  .panels { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr auto; }
  .foot-nav { justify-items: end; }
}

@media (min-width: 64em) {
  :root {
    --t-4: 2.75rem;    /* 44px */
    --t-5: 4.25rem;    /* 68px */
  }
  .hero { padding-block: var(--s-7) var(--s-8); }
  .hero-grid {
    grid-template-columns: 7fr 5fr;
    gap: var(--s-8);
    align-items: center;
  }
  .hero-show { justify-self: end; }
  .steps {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto auto;
    gap: var(--s-5) var(--s-6);
  }
  /* Subgrid: the numerals, the headings and the paragraphs each share a row across all
     four steps, so nothing starts at a different height from its neighbour. */
  .steps > li {
    grid-row: span 3;
    grid-template-columns: 1fr;
    grid-template-rows: subgrid;
    gap: var(--s-3);
  }
  .steps p { grid-column: 1; }
  .work-grid { grid-template-columns: 6fr 5fr; gap: var(--s-9); align-items: center; }
  .work-show { justify-self: end; }
  .own-grid { grid-template-columns: 5fr 6fr; gap: var(--s-8); align-items: start; }
  .own-h { padding-bottom: 0; border-bottom: 0; border-right: 2px solid var(--c-brass); padding-right: var(--s-7); }
  .who-grid { grid-template-columns: 4fr 7fr; gap: var(--s-8); }
  .contact-grid { grid-template-columns: 6fr 5fr; gap: var(--s-8); align-items: start; }
  .mail, .tel { font-size: var(--t-4); }
  .faq { padding-block: var(--s-9); }
}

@media (min-width: 80em) {
  .own-h { font-size: 3.25rem; }
}

/* ===========================================================================
   Motion, only where it means something, and never against the visitor's wishes
   =========================================================================== */

.reveal { opacity: 0; transform: translateY(0.5rem); }
.reveal.seen {
  animation: rise 420ms cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}
@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    transition-duration: 1ms !important;
  }
  html { scroll-behavior: auto; }
  .keyline line { stroke-dashoffset: 0; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .sticky, .nav, .skip { display: none; }
  body { background: var(--c-paper); }
}

/* ===========================================================================
   The privacy notice. One column, set for reading.
   =========================================================================== */

.doc { padding-block: var(--s-7) var(--s-9); }
.doc h1 { font-size: var(--t-4); line-height: 1.1; max-width: 24ch; }
.doc .lead {
  font-size: var(--t-2); line-height: 1.5; color: var(--c-ash);
  max-width: 46ch; margin-top: var(--s-4);
}
.doc h2 {
  font-size: var(--t-3); line-height: 1.2; font-weight: 700;
  max-width: 30ch;
  padding-top: var(--s-5); margin-top: var(--s-7);
  border-top: 1px solid var(--rule);
}
.doc h2 + p, .doc h2 + ul { margin-top: var(--s-4); }
.doc p { max-width: var(--measure); }
.doc p + p { margin-top: var(--s-4); }
.doc-list { max-width: var(--measure); }
.doc-list li {
  padding-block: var(--s-3);
  padding-inline-start: var(--s-5);
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.doc-list li::before {
  content: ''; position: absolute; left: 0; top: 1.5em;
  width: 5px; height: 5px; background: var(--c-brass);
}
.doc-list + p { margin-top: var(--s-4); }
.doc a {
  text-decoration-color: var(--c-brass);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
.doc a:hover { color: var(--c-deep); }
.doc-foot {
  font-size: var(--t-0); line-height: 1.6; color: var(--c-ash);
  padding-top: var(--s-5); margin-top: var(--s-7);
  border-top: 2px solid var(--c-brass);
}

@media (min-width: 64em) {
  .doc h1 { font-size: 3.5rem; }
}

/* What replaces the form once it has been sent. */
.ask-done {
  border: 1.5px solid var(--c-lamp);
  padding: var(--s-5);
  max-width: 42ch;
  color: color-mix(in srgb, var(--c-paper) 86%, var(--c-deep));
}
.ask-done-h {
  font-family: var(--display); font-weight: 900;
  font-size: var(--t-3); line-height: 1.2;
  color: var(--c-paper);
  margin-bottom: var(--s-3);
}
