/* ==========================================================================
   Coropos Web Services — site.css
   World: the owner-operated shop's changeable signboard (seed 982e6938).
   Two materials: the navy felt BOARD with tile letters, and the white printed
   CARD on a pale counter. Hand-written, no framework.

   Contents
     1. Tokens
     2. Base and reset
     3. Typography
     4. Layout: container, sections, grids, stacks
     5. Accessibility utilities: skip link, visually hidden, focus
     6. Navigation (door-glass decal bar)
     7. Board: felt, grain, grooves, aluminum rail
     8. Tile rows (.row, .tile-word)
     9. Rate board (.rates, .rate)
    10. Hanging tag (.tag-open)
    11. Board motion (rows settling into the tracks)
    12. Card (printed stock) and tucked card
    13. Print (photo print with caption strip)
    14. Buttons and links
    15. Forms
    16. Page sections: section-grid, steps, details, quote
    17. Footer
    18. Responsive refinements
    19. Reduced motion
   ========================================================================== */


/* 1. Tokens
   ========================================================================== */
:root {
  /* Board */
  --felt: #1d2566;
  --felt-deep: #161c52;
  --rail: #2c3892;
  --tile: #ffffff;
  --tile-blue: #109fe3;
  --on-navy-soft: #8fd3ff;

  /* Card and counter */
  --card: #ffffff;
  --counter: #f3f5fb;
  --ink: #161c52;
  --ink-soft: #3d4573;
  --line: #d8dcee;
  --link: #076aa8;          /* darkened from the sky blue so links hold 4.5:1 on white and on the counter */
  --error: #b3261e;

  /* Aluminum frame (the one material that is allowed a gradient) */
  --alu-hi: #f4f6f9;
  --alu-mid: #c9ced6;
  --alu-low: #a3aab5;
  --alu-edge: #8a919d;

  /* Focus */
  --focus: #076aa8;          /* on white / counter */
  --focus-on-navy: #8fd3ff;  /* on felt / rail */

  /* Type */
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --measure: 66ch;
  --fs-body: 1.0625rem;
  --fs-card-title: clamp(1.5rem, 2.6vw, 2.1rem);
  --fs-section-title: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem);
  --fs-display: clamp(2.2rem, 1.3rem + 4.2vw, 5rem);       /* hero rows; never above 6rem */
  --fs-board-title: clamp(1.6rem, 1rem + 2.4vw, 2.6rem);   /* section title rows on a board */

  /* Layout */
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-space: clamp(3.5rem, 8vw, 6.5rem);
  --nav-h: 64px;
  --rail-h: 10px;
  --gap: 1.5rem;

  /* Depth: offset plus soft blur, never a halo */
  --shadow-card: 0 2px 6px rgba(22, 28, 82, .18);
  --shadow-print: 0 6px 16px rgba(22, 28, 82, .2);

  /* Motion */
  --ease: cubic-bezier(.16, 1, .3, 1);

  /* Felt grain: inline SVG noise, about 6% white */
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n' x='0' y='0' width='100%' height='100%'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .12 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}


/* 2. Base and reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--counter);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 400;
  font-stretch: 100%;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main { display: block; flex: 1 0 auto; }

img, svg, iframe { max-width: 100%; }
img { display: block; height: auto; }

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; }

button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }

[hidden] { display: none !important; }


/* 3. Typography
   ========================================================================== */
h1, h2, h3, h4 { text-wrap: balance; font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; }

/* Section heading printed on the counter */
h2 { font-size: var(--fs-section-title); }

/* Heading inside a card */
.card h2, .card h3 { font-size: var(--fs-card-title); }
.card h2, .card h3 { margin-bottom: .6rem; }

h3 { font-size: clamp(1.25rem, 1rem + 1vw, 1.5rem); }

p { max-width: var(--measure); text-wrap: pretty; }
p + p { margin-top: 1em; }

strong { font-weight: 700; }

.lead { font-size: 1.125rem; color: var(--ink-soft); }
.ink-soft { color: var(--ink-soft); }
.small { font-size: .9375rem; }

/* Printed note on the counter, under a board */
.printed-note { margin-top: 1.25rem; font-size: 1rem; color: var(--ink-soft); }

a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }


/* 4. Layout
   ========================================================================== */
.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

/* Vertical rhythm: more room above a heading than below it */
.section { padding-block: var(--section-space); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--rule { border-top: 1px solid var(--line); }
.section > .container > h2:first-child,
.section-head h2 { margin-bottom: .9rem; }
.section-head { margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.section-head p { margin-top: .25rem; }
.section-foot { margin-top: clamp(1.5rem, 3vw, 2.25rem); }

.stack { display: flex; flex-direction: column; gap: var(--gap); }
.stack-lg { display: flex; flex-direction: column; gap: clamp(2rem, 4vw, 3rem); }

/* Two columns from 901px; one column below */
.split { display: grid; gap: var(--gap); align-items: start; }
.split > * { min-width: 0; }

/* Heading left, content right (About, How a project goes) */
.section-grid { display: grid; gap: clamp(1.25rem, 3vw, 2rem); align-items: start; }
.section-grid > * { min-width: 0; }

/* Actions row */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.5rem; }


/* 5. Accessibility utilities
   ========================================================================== */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  padding: .75rem 1.25rem;
  background: var(--tile);
  color: var(--ink);
  font-weight: 700;
  border-radius: 2px;
  box-shadow: var(--shadow-card);
}
.skip-link:focus { top: 1rem; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.board :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible { outline-color: var(--focus-on-navy); }


/* 6. Navigation: the decal on the door glass
   ========================================================================== */
.site-header {
  position: relative;
  z-index: 100;
  background: var(--rail);
  color: var(--tile);
}
html.js .site-header { position: sticky; top: 0; }

.nav-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-h);
}

.nav-logo { display: inline-flex; align-items: center; height: var(--nav-h); }
.nav-logo img { height: 36px; width: auto; max-width: 62vw; }

/* Menu toggle: shown only when JS is present, below 901px */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-right: -10px;
  background: transparent;
  border: 0;
  color: var(--tile);
  border-radius: 2px;
}
html.js .nav-toggle { display: inline-flex; }
.nav-toggle svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.nav-toggle .icon-close { display: none; }
.site-nav.is-open .nav-toggle .icon-open { display: none; }
.site-nav.is-open .nav-toggle .icon-close { display: block; }

/* Panel: static without JS, full-width dropdown with JS */
.nav-panel { width: 100%; padding-bottom: 1rem; }
html.js .nav-panel {
  display: none;
  position: absolute;
  top: var(--nav-h);
  left: 0;
  right: 0;
  padding: .5rem var(--gutter) 1.5rem;
  background: var(--rail);
  border-top: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 6px 12px rgba(22, 28, 82, .28);
}
html.js .site-nav.is-open .nav-panel { display: block; }

.nav-links { list-style: none; margin: 0; padding: 0; }
.nav-links li { border-bottom: 1px solid rgba(255, 255, 255, .16); }
.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  color: var(--tile);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-block: -1px;
}
.nav-links a:hover { border-bottom-color: rgba(255, 255, 255, .6); }
.nav-links a[aria-current="page"] { border-bottom-color: var(--tile); }
.nav-panel .btn-tiles { margin-top: 1.25rem; width: 100%; }

@media (min-width: 901px) {
  html.js .site-header { position: sticky; }
  .nav-bar { flex-wrap: nowrap; gap: 2rem; }
  .nav-toggle, html.js .nav-toggle { display: none; }
  .nav-panel, html.js .nav-panel {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(1.25rem, 2.4vw, 2.25rem);
    position: static;
    width: auto;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .nav-links { display: flex; align-items: center; gap: clamp(1.1rem, 2.2vw, 2rem); }
  .nav-links li { border: 0; }
  .nav-links a { min-height: var(--nav-h); font-size: .8rem; margin-block: 0; padding-top: 2px; }
  .nav-panel .btn-tiles { margin: 0; width: auto; }
  .nav-logo img { height: 42px; }
}


/* 7. Board: full-bleed navy felt in an aluminum frame
   ========================================================================== */
.board {
  position: relative;
  padding-block: calc(var(--rail-h) + clamp(1.75rem, 4.5vw, 3.5rem));
  background-color: var(--felt);
  background-image: var(--grain);
  color: var(--tile);
  overflow-x: clip; /* lets track grooves run edge to edge; y stays open for the tag and tucked card */
}

/* Top and bottom aluminum rails */
.board::before,
.board::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: var(--rail-h);
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .22) 0 1px, rgba(255, 255, 255, 0) 1px 4px),
    linear-gradient(to bottom, var(--alu-hi) 0, var(--alu-mid) 40%, var(--alu-low) 78%, var(--alu-edge) 100%);
  z-index: 3;
}
.board::before { top: 0; box-shadow: inset 0 1px 0 #fff; }
.board::after { bottom: 0; box-shadow: inset 0 1px 0 #fff, 0 2px 4px rgba(22, 28, 82, .3); }

/* A board that carries the tag has a taller foot, so the tucked card can overlap the frame */
.board--tuck { padding-bottom: calc(var(--rail-h) + clamp(2rem, 4vw, 3rem)); }

.board-body { position: relative; }

/* A board title row followed by content on the same board */
.board-body > .row + .rates,
.board-body > .row + * { margin-top: 0; }


/* 8. Tile rows: letters in tracks
   ========================================================================== */
.rows { display: block; margin: 0; font: inherit; letter-spacing: normal; }

.row {
  --row-size: var(--fs-display);
  --track: calc(var(--row-size) * 1.34);
  position: relative;
  isolation: isolate;
  display: flex;
  flex-wrap: wrap;           /* wrap by word, never by letter */
  column-gap: .34em;
  margin: 0;
  color: var(--tile);
  font-family: var(--font);
  font-size: var(--row-size);
  font-weight: 700;
  font-stretch: 100%;
  letter-spacing: .04em;
  line-height: 1.05;
  text-transform: uppercase;
  text-align: left;
  text-wrap: wrap;
}
.row--narrow { font-stretch: 80%; }
.row--title { --row-size: var(--fs-board-title); font-stretch: 85%; }

.tile-word {
  display: inline-flex;
  align-items: center;
  min-height: var(--track);
  text-shadow: 0 1px 2px rgba(10, 14, 48, .5);
}

/* The track groove under every line, edge to edge */
.row::before,
.rate::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  pointer-events: none;
}
.row::before {
  background: repeating-linear-gradient(to bottom,
    transparent 0,
    transparent calc(var(--track) - 1px),
    var(--felt-deep) calc(var(--track) - 1px),
    var(--felt-deep) var(--track));
}


/* 9. Rate board: item, dotted leader, price tile
   ========================================================================== */
.rates { list-style: none; margin: 0; padding: 0; }

.rate {
  --rate-track: 3.5rem;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: auto minmax(.75rem, 1fr) auto;
  align-items: center;
  column-gap: .6rem;
  min-height: var(--rate-track);
  padding-block: .35rem;
  /* Content is held to 48rem; the row itself stays full width so the groove can run edge to edge */
  padding-right: max(0px, calc(100% - 48rem));
}
.rate::before {
  top: auto;
  height: 1px;
  background: var(--felt-deep);
}

.rate-item {
  color: var(--tile);
  font-size: clamp(1rem, .94rem + .3vw, 1.125rem);
  font-weight: 700;
  font-stretch: 88%;
  letter-spacing: .04em;
  line-height: 1.15;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(10, 14, 48, .5);
}

.rate-leader {
  align-self: end;
  height: 0;
  margin-bottom: .95rem;
  border-bottom: 2px dotted rgba(255, 255, 255, .45);
}

.rate-price {
  min-width: 4.75rem;
  padding: .3rem .6rem;
  background: var(--tile-blue);
  color: var(--felt-deep);
  border-radius: 2px;
  border-bottom: 1px solid #0b7fb8;
  font-size: 1.0625rem;
  font-weight: 800;
  font-stretch: 100%;
  letter-spacing: .02em;
  line-height: 1.2;
  text-align: center;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.rate-price small { font-size: .72em; font-weight: 700; letter-spacing: .04em; }

/* What is included: set on its own line under the item, in soft board blue */
.rate-note {
  grid-column: 1 / -1;
  margin-top: .15rem;
  max-width: 60ch;
  color: var(--on-navy-soft);
  font-size: .9375rem;
  line-height: 1.45;
  text-transform: none;
  letter-spacing: 0;
}
.rate-item { grid-column: 1; grid-row: 1; }
.rate-leader { grid-column: 2; grid-row: 1; }
.rate-price { grid-column: 3; grid-row: 1; }
.rate:has(.rate-note) { padding-block: .6rem; }
.rate:has(.rate-note) .rate-leader { margin-bottom: .55rem; }


/* 10. Hanging tag (one per site, on the home board)
   ========================================================================== */
.board-hang {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0;
  z-index: 1;
}
.tag-open {
  position: absolute;
  top: 0;
  left: 0;
  width: 13.5rem;
  padding-top: 16px;
  transform-origin: 50% 0;
  filter: drop-shadow(0 2px 3px rgba(22, 28, 82, .28));
}
/* ring on the rail and the 1px line it hangs by */
.tag-open::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border: 1.5px solid var(--alu-edge);
  border-radius: 50%;
  background: transparent;
  z-index: 2;
}
.tag-open::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 50%;
  width: 1px;
  height: 11px;
  background: var(--alu-edge);
}
.tag-open-top,
.tag-open-bottom { display: block; padding: .5rem .9rem; text-align: center; }
.tag-open-top {
  background: var(--tile-blue);
  color: var(--felt-deep);
  border-radius: 3px 3px 0 0;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: .14em;
  line-height: 1.1;
  text-transform: uppercase;
}
.tag-open-bottom {
  background: var(--card);
  color: var(--ink);
  border-radius: 0 0 3px 3px;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.3;
}

/* Room below the rail for the tag when the card is not overlapping (phones) */
.board--tuck + .tuck { margin-top: 7.25rem; }


/* 11. Board motion: rows settle into the tracks, then the tag swings once
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  html.can-settle .board:not(.is-static) .row,
  html.can-settle .board:not(.is-static) .rate {
    opacity: 0;
    transform: translateY(-6px);
  }
  html.can-settle .board.is-set .row,
  html.can-settle .board.is-set .rate {
    opacity: 1;
    transform: none;
    transition: opacity 500ms var(--ease), transform 500ms var(--ease);
    transition-delay: calc(var(--i, 0) * 60ms);
  }
  html.can-settle .board:not(.is-static) .tag-open { transform: rotate(1.5deg); }
  html.can-settle .board.is-set .tag-open {
    transform: none;
    transition: transform 700ms var(--ease);
    transition-delay: calc(var(--rows, 3) * 60ms + 450ms);
  }
}


/* 12. Card: white printed stock on the counter
   ========================================================================== */
.card {
  background: var(--card);
  color: var(--ink);
  border-top: 2px solid var(--felt);
  border-radius: 4px;
  padding: clamp(1.5rem, 3.2vw, 2.5rem);
  box-shadow: var(--shadow-card);
}
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.card--narrow { max-width: 46rem; }

/* Card tucked into the frame of a board (home hero) */
.tuck { position: relative; z-index: 4; margin-top: 1.5rem; }
.tuck .card { max-width: 36rem; }
.tuck .card p { font-size: 1.0625rem; }
.tuck .actions { margin-top: 1.5rem; }

/* Pull quote card */
.card--quote blockquote p { font-size: clamp(1.25rem, 1rem + 1vw, 1.5rem); font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.card--quote figcaption { margin-top: .75rem; color: var(--ink-soft); font-size: .9375rem; }


/* 13. Print: a client screenshot as a photo print
   ========================================================================== */
.prints { display: grid; gap: clamp(2rem, 4vw, 3rem); }
.prints > * { min-width: 0; }

.print {
  background: var(--card);
  padding: 10px;
  box-shadow: var(--shadow-print);
  border-radius: 2px;
}
.print-link { display: block; }
.print img { width: 100%; background: var(--counter); }
.print-cap {
  display: flex;
  flex-wrap: wrap;
  gap: .15rem .5rem;
  padding: .85rem .35rem .45rem;
  color: var(--ink);
  font-size: .8125rem;
  font-weight: 700;
  font-stretch: 90%;
  letter-spacing: .07em;
  line-height: 1.35;
  text-transform: uppercase;
}
.print-cap a { color: var(--ink); text-decoration-thickness: 1px; }
.print-cap a:hover { color: var(--link); text-decoration-thickness: 2px; }
.print-body { padding: .35rem .35rem .6rem; color: var(--ink); }
.print-body p { max-width: var(--measure); }
.print-body .link-action { display: inline-block; margin-top: .75rem; }
.print-body h2, .print-body h3 { font-size: var(--fs-card-title); margin-bottom: .6rem; }

/* A print beside its text on wide screens (work page, and the wide third print on home) */
@media (min-width: 901px) {
  .print--side {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
    grid-template-areas: "shot body" "cap body";
    grid-template-rows: auto 1fr;
    column-gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: start;
  }
  .print--side > .print-link,
  .print--side > img { grid-area: shot; }
  .print--side > .print-cap { grid-area: cap; }
  .print--side > .print-body { grid-area: body; padding: 1.25rem .5rem 1rem 0; }
  .print--side-flip {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr);
    grid-template-areas: "body shot" "body cap";
  }
  .print--side-flip > .print-body { padding: 1.25rem 0 1rem .5rem; }
  .prints--pair > .print--wide { grid-column: 1 / -1; }
}


/* 14. Buttons and links
   ========================================================================== */
.btn-tiles {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .7rem 1.5rem;
  background: var(--felt);
  color: var(--tile);
  border: 0;
  border-bottom: 1px solid var(--felt-deep);
  border-radius: 2px;
  box-shadow: 0 1px 0 var(--felt-deep);
  font-family: var(--font);
  font-size: .9375rem;
  font-weight: 700;
  font-stretch: 100%;
  letter-spacing: .08em;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 150ms var(--ease), background-color 150ms var(--ease);
}
.btn-tiles:hover { background: var(--rail); transform: translateY(-1px); text-decoration: none; }
.btn-tiles:active { transform: none; }
.btn-tiles:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.btn-tiles[disabled], .btn-tiles[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }

/* White strip on navy: for use on the board and in the nav */
.btn-tiles--light {
  background: var(--tile);
  color: var(--felt);
  border: 1px solid var(--felt);
  border-bottom-color: var(--felt-deep);
  box-shadow: 0 1px 0 var(--felt-deep);
}
.btn-tiles--light:hover { background: var(--counter); color: var(--felt-deep); }
.btn-tiles--light:focus-visible { outline-color: var(--focus-on-navy); }

.btn-tiles--sm { min-height: 40px; padding: .5rem 1rem; font-size: .8rem; letter-spacing: .1em; }
.btn-tiles--block { width: 100%; }

/* Text action: bold, underlined, link blue */
.link-action { font-weight: 700; color: var(--link); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .22em; }
.link-action:hover { color: var(--felt); }


/* 15. Forms: printed-form fields
   ========================================================================== */
.form { display: grid; gap: 1.25rem; }
.field { display: grid; gap: .4rem; }
.field label {
  color: var(--ink);
  font-size: .75rem;
  font-weight: 700;
  font-stretch: 90%;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 48px;
  padding: .7rem .85rem;
  background: var(--card);
  color: var(--ink);
  border: 1px solid #767da6;   /* 4:1 on white so the control edge reads as a boundary (WCAG 1.4.11) */
  border-radius: 2px;
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease);
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--ink-soft); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--felt);
  box-shadow: inset 0 0 0 1px var(--felt), 0 0 0 3px var(--focus);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-soft); opacity: 1; }
.field-error { color: var(--error); font-size: .9375rem; font-weight: 600; line-height: 1.4; }
.field.has-error input, .field.has-error textarea {
  border-color: var(--error);
  box-shadow: inset 0 0 0 1px var(--error);
}
.field.has-error input:focus, .field.has-error textarea:focus {
  box-shadow: inset 0 0 0 1px var(--error), 0 0 0 3px var(--focus);
}

.recaptcha { max-width: 100%; }
.form .btn-tiles { justify-self: start; }

@media (max-width: 420px) {
  .recaptcha { height: 70px; }
  .recaptcha .g-recaptcha { transform: scale(.88); transform-origin: 0 0; }
}


/* 16. Page sections
   ========================================================================== */

/* How a project goes: ordered list as printed text; each number is a small tile */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; counter-reset: step; max-width: var(--measure); }
.steps li { display: grid; grid-template-columns: 2.25rem 1fr; gap: 1rem; align-items: start; counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  background: var(--felt);
  color: var(--tile);
  border-bottom: 1px solid var(--felt-deep);
  border-radius: 2px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.steps li p { padding-top: .2rem; }

/* Printed details beside the form */
.details dt {
  color: var(--ink-soft);
  font-size: .75rem;
  font-weight: 700;
  font-stretch: 90%;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.details dd { margin: .2rem 0 1.25rem; }
.details dd:last-child { margin-bottom: 0; }
.details ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }

.reviews-line { max-width: none; }

/* Consent fallback under the reCAPTCHA slot */
.recaptcha-note { max-width: 36rem; margin: 0; color: var(--ink-soft); font-size: .9375rem; line-height: 1.5; }
.link-button {
  display: inline;
  padding: 0;
  background: none;
  border: 0;
  color: var(--link);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: .2em;
  cursor: pointer;
}
.link-button:hover { text-decoration-thickness: 2px; }
.link-button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }


/* 17. Footer: the decal on the door glass
   ========================================================================== */
.site-footer {
  position: relative;
  margin-top: auto;
  padding-top: calc(var(--rail-h) + clamp(2.5rem, 5vw, 4rem));
  padding-bottom: 2rem;
  background: var(--felt);
  color: var(--tile);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: var(--rail-h);
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .22) 0 1px, rgba(255, 255, 255, 0) 1px 4px),
    linear-gradient(to bottom, var(--alu-hi) 0, var(--alu-mid) 40%, var(--alu-low) 78%, var(--alu-edge) 100%);
}
.footer-grid { display: grid; gap: 2.25rem; }
.footer-title {
  margin-bottom: .9rem;
  color: var(--on-navy-soft);
  font-size: .8rem;
  font-weight: 700;
  font-stretch: 100%;
  letter-spacing: .1em;
  line-height: 1.2;
  text-transform: uppercase;
}
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.footer-list a,
.footer-link {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-height: 40px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--tile);
  font-family: var(--font);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-align: left;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}
.footer-list a:hover,
.footer-link:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .3em; }
.footer-list svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.footer-base {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .22);
  display: grid;
  gap: .5rem;
  color: var(--on-navy-soft);
  font-size: .875rem;
}
.footer-base p { max-width: 70ch; }
.footer-base p + p { margin-top: 0; }


/* 18. Responsive refinements (mobile first: base rules above are the phone layout)
   ========================================================================== */

/* >= 641px */
@media (min-width: 641px) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rate { --rate-track: 3.75rem; }
  .tag-open { width: 17rem; }
}

/* >= 901px */
@media (min-width: 901px) {
  .split { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 1.5rem; }
  .split--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .section-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(2rem, 5vw, 4rem); }
  .section-grid > h2 { position: sticky; top: calc(var(--nav-h) + 2rem); }
  .prints--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }

  /* Tag hangs at the right of the frame; the card tucks into the bottom-left corner */
  .tag-open { left: calc(36rem + 2.5rem); right: auto; }
  .board--tuck { padding-bottom: calc(var(--rail-h) + 5.75rem); }
  .board--tuck + .tuck { margin-top: -4.5rem; }
  .tuck .card { padding: 2rem 2.25rem; }
}

/* 641–900px: hero rows sized so the longest row keeps one track */
@media (min-width: 641px) and (max-width: 900px) {
  .board .rows .row--narrow { --row-size: clamp(2rem, 5.6vw, 3.4rem); }
}

/* <= 640px */
@media (max-width: 640px) {
  .print { padding: 8px; }
  .print-cap { font-size: .78rem; }
  .card { padding: 1.25rem; }
  .btn-tiles { width: 100%; }
  .actions .btn-tiles { width: 100%; }
  .rate-price { min-width: 4.25rem; font-size: 1rem; }
  .rate { column-gap: .45rem; }
  .form .btn-tiles { justify-self: stretch; }
}

@media (max-width: 400px) {
  .rate-item { font-stretch: 80%; letter-spacing: .03em; }
}

/* Phones: hero rows narrow enough to sit one per track; the OPEN tag becomes a
   compact strip inside the board instead of a hanging tag over the counter */
@media (max-width: 640px) {
  .board .rows .row--narrow {
    --row-size: clamp(1.45rem, 7vw, 2.2rem);
    font-stretch: 66%;
    letter-spacing: .025em;
  }
  .board-hang { height: auto; position: static; }
  .board--tuck { padding-bottom: calc(var(--rail-h) + 1.5rem); }
  .tag-open {
    position: static;
    display: inline-flex;
    align-items: stretch;
    width: auto;
    max-width: 100%;
    margin: 1rem 0 0;
    padding-top: 0;
    transform: none;
    filter: none;
    box-shadow: 0 2px 6px rgba(10, 14, 48, .35);
    border-radius: 3px;
    overflow: hidden;
  }
  .tag-open::before, .tag-open::after { display: none; }
  .tag-open-top, .tag-open-bottom { padding: .45rem .7rem; text-align: left; border-radius: 0; }
  .tag-open-top { font-size: .95rem; display: inline-flex; align-items: center; }
  .tag-open-bottom { font-size: .8125rem; display: inline-flex; align-items: center; }
  .board--tuck + .tuck { margin-top: 1.25rem; }
  html.can-settle .board .tag-open,
  html.can-settle .board.is-set .tag-open { transform: none; }
}


/* 19. Reduced motion: nothing moves
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .btn-tiles:hover { transform: none; }
}


/* Print captions: separators belong to the item that follows them, never to a line end */
.print-cap { display: flex; flex-wrap: wrap; gap: .15em .55em; }
.print-cap > [aria-hidden="true"] { display: none; }
.print-cap > :not([aria-hidden="true"]) ~ :not([aria-hidden="true"])::before { content: "\00b7"; margin-right: .55em; }
