/* Hallmark · macrostructure: Long Document (site-wide) · hero: H5 Letter on home, page-hero on interior pages
 * theme: custom (tuned) · vibe: "vintage tin-sign repair counter — barn red, mustard gold, aged parchment"
 * paper: oklch(90% 0.045 76) · accent: oklch(40% 0.135 27) (barn red) · gold: oklch(79% 0.115 68)
 * display: Fraunces (roman only) · body: Source Serif 4 · mono: Courier Prime · axes: light / roman-serif / warm(~40deg)
 * enrichment: Tier A/B custom SVG/CSS (ink stamp, cassette mechanism, line-icon set) + real repair photography (duotone-graded) · studied: no
 * v2: added photo system, page-hero, breadcrumb, index/hub list, related-links for the multi-page site expansion
 * v3: added CRT-glow atmosphere, scroll-driven reveals, View Transitions (see bottom of file)
 * v4: "Full Tin Sign" repaint — palette sampled directly from the owner's vintage sign artwork
 *      (barn red #5f1311, golden cream #f2d3a3, mustard #f1b16c, ink #191915). Red and gold
 *      are now structural — masthead bar, footer, dates, numbering, dividers — not just link color.
 */

/* ---------- Tokens ---------- */
:root{
  --color-paper:      oklch(90% 0.045 76);
  --color-paper-2:     oklch(86% 0.05 74);
  --color-paper-3:     oklch(82% 0.055 72);
  --color-rule:        oklch(68% 0.045 55);
  --color-rule-2:      oklch(74% 0.04 60);
  --color-muted:       oklch(46% 0.035 50);
  --color-neutral:     oklch(36% 0.03 45);
  --color-ink:         oklch(18% 0.014 50);
  --color-ink-2:       oklch(28% 0.014 48);
  --color-accent:      oklch(40% 0.135 27);
  --color-accent-text: oklch(34% 0.125 25);
  --color-accent-2:    oklch(50% 0.105 66);
  --color-accent-fill: oklch(30% 0.11 27);
  --color-accent-soft: oklch(40% 0.135 27 / 0.09);
  --color-focus:       oklch(55% 0.16 35);

  /* mustard gold — the sign's second structural color, used for glows, numbering, and highlights */
  --color-gold:        oklch(79% 0.115 68);
  --color-gold-text:   oklch(50% 0.105 66);
  --color-gold-soft:   oklch(79% 0.115 68 / 0.18);

  /* text on the dark footer surface (--color-ink used as background) */
  --color-on-ink:        oklch(88% 0.02 60);
  --color-on-ink-2:      oklch(85% 0.02 60);
  --color-on-ink-muted:  oklch(72% 0.02 60);
  --color-on-ink-faint:  oklch(62% 0.02 55);
  --color-on-ink-rule:   oklch(34% 0.02 50);

  --font-display: 'Fraunces', ui-serif, Georgia, 'Times New Roman', serif;
  --font-body:    'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-mono:    'Courier Prime', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-short: 150ms;
  --dur-med: 420ms;

  --measure: 62ch;
  --container: 74rem;

  color-scheme: light;
}

/* ---------- Reset ---------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
body{
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
}
/* subtle archival paper grain, site-wide — fixed, non-interactive, very low opacity */
body::before{
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  opacity: 0.035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
header, main, footer{ position: relative; z-index: 1; }
img, svg{ max-width: 100%; display: block; }
a{ color: var(--color-accent-text); }
a:not(.chip){ text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
:focus-visible{ outline: 2.5px solid var(--color-focus); outline-offset: 3px; }
h1, h2, h3{ font-family: var(--font-display); font-weight: 700; font-style: normal; color: var(--color-ink); line-height: 1.08; margin: 0; }
p{ margin: 0 0 1em; }
ul, ol{ margin: 0; padding: 0; list-style: none; }
.visually-hidden{ position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.skip-link{
  position: absolute; left: 1rem; top: -3rem;
  background: var(--color-ink); color: var(--color-paper);
  padding: 0.6em 1em; border-radius: 2px; z-index: 100;
  transition: top var(--dur-short) var(--ease-out);
}
.skip-link:focus{ top: 1rem; }

.wrap{ max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
.wrap--narrow{ max-width: 54rem; }

.rule{ border: none; border-top: 1px solid var(--color-rule); margin: 0; }
.rule--double{ border-top: 1px solid var(--color-rule); box-shadow: 0 4px 0 -3px var(--color-rule); }

/* ---------- Utility labels ---------- */
.mono-label{
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--color-gold-text);
}

/* ---------- Masthead / Nav (N6, adapted) ---------- */
/* the sign's red banner, sitting at the very top of every page */
.masthead{ background: var(--color-paper-2); border-bottom: 1px solid var(--color-rule); }
.masthead__utility{
  display: flex; justify-content: space-between; align-items: center; gap: 0.5rem 1.5rem;
  padding: 0.6rem clamp(1.25rem, 4vw, 2.5rem);
  font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.02em;
  background: var(--color-accent-fill); color: var(--color-on-ink-2);
  border-bottom: 1px solid var(--color-crt-dark-2);
  flex-wrap: wrap;
}
.masthead__utility a{ color: var(--color-on-ink-2); text-decoration: none; }
.masthead__utility a:hover{ color: var(--color-gold); text-decoration: underline; }
.masthead__brand-link{
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  color: var(--color-gold) !important; letter-spacing: -0.005em; white-space: nowrap;
}
.masthead__brand-link:hover{ color: var(--color-paper) !important; }
.masthead__contact{ display: flex; gap: 1.5rem; flex-wrap: wrap; }
@media (max-width: 30rem){
  .masthead__brand-link{ font-size: 0.92rem; white-space: normal; }
}
.masthead__brand{
  text-align: center; padding: 1.65rem 1.25rem 1.1rem;
  display: flex; flex-direction: column; align-items: center;
}
.wordmark__logo{
  /* fluid width (percent-of-viewport capped, not a fixed rem floor) so it can
     keep scaling up without ever overflowing a narrow phone screen */
  display: block; width: min(92vw, 42rem); height: auto; margin-bottom: 1.25rem;
  border: 7px solid var(--color-paper); outline: 1px solid var(--color-rule); border-radius: 5px;
  box-shadow: 0 16px 32px -12px oklch(20% 0.02 50 / 0.55);
}
.tagline{ margin: 0.5rem 0 0; font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.06em; color: var(--color-muted); text-transform: uppercase; }
.masthead__nav{
  display: flex; justify-content: center; flex-wrap: wrap; gap: clamp(1rem, 3vw, 2.25rem);
  padding: 0.9rem 1.25rem 1.15rem; border-top: 1px solid var(--color-rule);
}
.masthead__nav a{
  font-family: var(--font-body); font-weight: 600; font-size: 0.92rem; color: var(--color-ink-2);
  text-decoration: none; padding-bottom: 0.15rem; border-bottom: 1px solid transparent;
  white-space: nowrap;
}
.masthead__nav a:hover, .masthead__nav a[aria-current="page"]{ color: var(--color-accent-text); border-bottom-color: var(--color-accent); }

/* ---------- Hero (H5 Letter) — home page ---------- */
.hero{ padding-block: clamp(3.5rem, 8vw, 6rem) clamp(3rem, 7vw, 5rem); position: relative; }
.hero__grid{ display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
@media (min-width: 60rem){
  .hero__grid{ grid-template-columns: 1.15fr 0.85fr; }
}
.hero__headline{
  font-size: clamp(2.1rem, 5.4vw, 3.6rem); max-width: 18ch; margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}
.hero__letter{ max-width: var(--measure); font-size: 1.09rem; }
.hero__letter p{ margin-bottom: 1.15em; }
.hero__letter p:first-child{ font-family: var(--font-display); font-size: 1.15em; }
.hero__signoff{ margin-top: 1.75em; font-family: var(--font-display); font-style: normal; }
.hero__signoff span{ display: block; font-family: var(--font-mono); font-size: 0.8em; letter-spacing: 0.04em; color: var(--color-muted); margin-top: 0.15em; text-transform: uppercase; }
.hero__actions{ display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 2.25rem; }

.hero__side{ position: relative; display: flex; flex-direction: column; align-items: center; gap: 2rem; padding-top: clamp(1rem, 3vw, 2.5rem); }
.stamp{
  width: min(13rem, 60vw); transform: rotate(-9deg); mix-blend-mode: multiply; opacity: 0.92;
  animation: stamp-in 900ms var(--ease-out) both; animation-delay: 400ms;
}
@keyframes stamp-in{ from{ opacity: 0; transform: rotate(-24deg) scale(0.7); } to{ opacity: 0.92; transform: rotate(-9deg) scale(1); } }

/* one orchestrated entrance for the hero letter */
.hero__letter p, .hero__headline, .hero__actions{
  animation: rise-in 620ms var(--ease-out) both;
}
.hero__headline{ animation-delay: 0ms; }
.hero__letter p:nth-child(1){ animation-delay: 90ms; }
.hero__letter p:nth-child(2){ animation-delay: 160ms; }
.hero__letter p:nth-child(3){ animation-delay: 230ms; }
.hero__letter p:nth-child(4){ animation-delay: 300ms; }
.hero__signoff{ animation-delay: 360ms; }
.hero__actions{ animation-delay: 440ms; }
@keyframes rise-in{ from{ opacity: 0; transform: translateY(10px); } to{ opacity: 1; transform: translateY(0); } }

/* ---------- Page hero — interior pages (services, locations, about, contact) ---------- */
.page-hero{ padding-block: clamp(2.5rem, 6vw, 4rem) clamp(2.5rem, 5vw, 3.5rem); }
.page-hero__grid{ display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 3rem); align-items: center; }
@media (min-width: 55rem){
  .page-hero__grid{ grid-template-columns: 1.1fr 0.9fr; }
  .page-hero__grid.page-hero__grid--reverse .photo--feature{ order: 2; }
}
.page-hero h1{ font-size: clamp(2rem, 4.6vw, 3rem); max-width: 16ch; margin-bottom: 0.9rem; }
.page-hero__badge{ width: 4.5rem; height: 4.5rem; margin-bottom: 1.15rem; }
.page-hero__dek{ font-size: 1.12rem; color: var(--color-neutral); max-width: 46ch; }

/* ---------- Category feature art — the full illustration, framed like a keepsake print ----------
   Broken by default; hovering (or tapping, on touch) reveals the fixed version underneath —
   a small echo of the FIXED / NOT REPLACED stamp, right at the top of the page. */
.page-hero__feature{
  display: block; width: min(78%, 20rem); margin: 0 0 1.5rem;
  padding: 0.6rem; background: var(--color-paper);
  border: 1px solid var(--color-rule); border-radius: 6px;
  box-shadow: 0 16px 30px -14px oklch(20% 0.02 50 / 0.55);
}
.page-hero__feature-stack{ position: relative; display: block; width: 100%; height: 14rem; }
.page-hero__feature-stack img{
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; border-radius: 2px;
  transition: opacity 0.5s var(--ease-out);
}
.page-hero__feature-stack .is-fixed{ opacity: 0; }
.page-hero__feature:hover .is-fixed,
.page-hero__feature:focus .is-fixed,
.page-hero__feature:focus-within .is-fixed,
.page-hero__feature:active .is-fixed{ opacity: 1; }
.page-hero__feature:hover .is-broken,
.page-hero__feature:focus .is-broken,
.page-hero__feature:focus-within .is-broken,
.page-hero__feature:active .is-broken{ opacity: 0; }
.page-hero__feature-hint{
  display: block; margin-top: 0.55rem; text-align: center;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--color-muted);
}
@media (max-width: 30rem){
  .page-hero__feature{ width: 100%; }
  .page-hero__feature-stack{ height: 11rem; }
}

.breadcrumb{
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.03em; color: var(--color-muted);
  display: flex; flex-wrap: wrap; gap: 0.4em; margin-bottom: 1.5rem; text-transform: uppercase;
}
.breadcrumb a{ color: var(--color-muted); text-decoration: none; }
.breadcrumb a:hover{ color: var(--color-accent-text); text-decoration: underline; }
.breadcrumb span[aria-hidden]{ color: var(--color-rule); }

/* ---------- Buttons / chips (C1) ---------- */
.chip{
  display: inline-flex; align-items: center; gap: 0.5em; white-space: nowrap;
  font-family: var(--font-mono); font-size: 0.86rem; letter-spacing: 0.02em; text-transform: uppercase;
  text-decoration: none; padding: 0.85em 1.3em; border-radius: 2px; border: 1.5px solid var(--color-ink);
  color: var(--color-ink); background: transparent; font-variant-numeric: tabular-nums;
  transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out);
}
.chip:hover{ background: var(--color-ink); color: var(--color-paper); }
.chip--outline{ border-color: var(--color-accent); color: var(--color-accent-text); }
.chip--outline:hover{ background: var(--color-accent-fill); border-color: var(--color-accent-fill); color: var(--color-paper); }
.link-arrow{ font-family: var(--font-body); font-weight: 600; font-size: 0.95rem; text-decoration: none; border-bottom: 1px solid var(--color-accent); color: var(--color-ink-2); padding-bottom: 0.1em; }
.link-arrow:hover{ color: var(--color-accent-text); }

/* ---------- Section rhythm ---------- */
section{ padding-block: clamp(3rem, 7vw, 5.5rem); }
section + section{ border-top: 1px solid var(--color-rule); }
.section-head{ max-width: 46ch; margin-bottom: clamp(2rem, 5vw, 3rem); }
.section-head h2{ font-size: clamp(1.7rem, 3.4vw, 2.35rem); margin-bottom: 0.55rem; }
.section-head .lede{ color: var(--color-neutral); font-size: 1.05rem; margin: 0; }

/* alternate background bands for rhythm (varied section padding/backgrounds, not uniform) */
.band-2{ background: var(--color-paper-2); }

/* ---------- Services (F3 tabular spec sheet) ---------- */
.spec-sheet{ border-top: 1px solid var(--color-rule); }
.spec-sheet li{ padding: 0; border-bottom: 1px solid var(--color-rule); }
.spec-sheet li > a, .spec-sheet li > div{
  display: grid; grid-template-columns: 3.6rem 13rem 1fr; gap: 1.1rem; align-items: center;
  padding: 1.15rem 0; text-decoration: none; color: inherit;
}
.spec-sheet li > a{ transition: background-color var(--dur-short) var(--ease-out); }
.spec-sheet li > a:hover{ background: var(--color-accent-soft); }
.spec-sheet li > a:hover .spec-sheet__name{ color: var(--color-accent-text); }
.spec-sheet li > a:hover .cat-badge{ border-color: var(--color-paper-3); }
.spec-sheet svg{ width: 1.65rem; height: 1.65rem; color: var(--color-accent-text); margin-top: 0.15rem; }
.spec-sheet .cat-badge{ width: 3.4rem; height: 3.4rem; }
.spec-sheet__name{ font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; padding-top: 0.05rem; transition: color var(--dur-short) var(--ease-out); }
.spec-sheet__desc{ color: var(--color-neutral); font-size: 0.98rem; }
@media (max-width: 40rem){
  .spec-sheet li > a, .spec-sheet li > div{ grid-template-columns: 2.75rem 1fr; align-items: start; }
  .spec-sheet .cat-badge{ width: 2.5rem; height: 2.5rem; }
  .spec-sheet__desc{ grid-column: 2; }
}

/* ---------- Category photo badges (illustrative art, not bench photography) ---------- */
.cat-badge{
  position: relative; flex-shrink: 0; border-radius: 50%; overflow: hidden;
  border: 3px solid var(--color-paper); outline: 1px solid var(--color-rule);
  box-shadow: 0 4px 10px -4px oklch(20% 0.02 50 / 0.5);
  background: var(--color-paper-2);
  display: flex; align-items: center; justify-content: center;
  transition: border-color var(--dur-short) var(--ease-out);
}
.cat-badge img{ width: 100%; height: 100%; object-fit: cover; filter: sepia(0.32) saturate(1.12) contrast(1.03); }

/* ---------- Case log (#bench) ---------- */
.log{ border-top: 1px solid var(--color-rule); }
.log__entry{
  display: grid; grid-template-columns: 5.5rem 1fr; gap: 1.5rem;
  padding: 1.75rem 0; border-bottom: 1px solid var(--color-rule);
}
.log__entry--photo{ grid-template-columns: 5.5rem 1fr; }
.log__date{ font-family: var(--font-mono); color: var(--color-muted); line-height: 1.15; }
.log__date .log__month{ display: block; font-size: 0.78rem; letter-spacing: 0.08em; }
.log__date .log__day{ display: block; font-size: 1.9rem; color: var(--color-accent-fill); font-weight: 700; font-variant-numeric: tabular-nums; }
.log__case{
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--color-accent-text); margin-bottom: 0.5em;
}
.log__body{ display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.log__body--with-photo{ grid-template-columns: 1fr; }
@media (min-width: 40rem){
  .log__body--with-photo{ grid-template-columns: 1fr 9rem; align-items: start; }
  .log__body--with-photo .log__photo{ order: 2; }
}
.log__body p:last-child{ margin-bottom: 0; }
.log__status{ display: inline-flex; align-items: center; gap: 0.4em; font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--color-accent-2); margin-top: 0.75em; }
.log__status svg{ width: 0.9rem; height: 0.9rem; }
@media (max-width: 40rem){
  .log__entry{ grid-template-columns: 1fr; gap: 0.4rem; }
  .log__date{ display: flex; gap: 0.5rem; align-items: baseline; }
}

/* ---------- Analog transfers (#transfers) ---------- */
.transfers .wrap > div{ display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
@media (min-width: 60rem){
  .transfers .wrap > div{ grid-template-columns: 0.9fr 1.1fr; }
  .transfers .transfers__art{ order: 2; }
  .transfers .transfers__text{ order: 1; }
}
.transfers__text h2{ font-size: clamp(1.7rem, 3.4vw, 2.35rem); margin-bottom: 0.85rem; }
.transfers__text p{ max-width: 52ch; }
.transfers__formats{ margin-top: 1.25rem; font-family: var(--font-mono); font-size: 0.85rem; color: var(--color-muted); letter-spacing: 0.02em; }
.transfers__art{ display: flex; justify-content: center; }
.vcr-stack{ position: relative; display: block; width: min(36rem, 90vw); aspect-ratio: 1100 / 368; }
.vcr-stack img{
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  transition: opacity 0.5s var(--ease-out);
}
.vcr-stack .is-fixed{ opacity: 0; }
.vcr-stack:hover .is-fixed,
.vcr-stack:focus .is-fixed,
.vcr-stack:focus-within .is-fixed,
.vcr-stack:active .is-fixed{ opacity: 1; }
.vcr-stack:hover .is-broken,
.vcr-stack:focus .is-broken,
.vcr-stack:focus-within .is-broken,
.vcr-stack:active .is-broken{ opacity: 0; }
.vcr-stack-hint{
  display: block; margin-top: 0.85rem; text-align: center;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--color-on-crt-muted);
}

/* ---------- Service area (#area) ---------- */
.area__towns{ display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; margin: 1.5rem 0; }
.area__towns li a, .area__towns li{
  display: inline-block; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem;
  border: 1px solid var(--color-rule); padding: 0.5em 1.1em; border-radius: 2px; background: var(--color-paper-2);
  text-decoration: none; color: var(--color-ink); transition: border-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out);
}
.area__towns li a:hover{ border-color: var(--color-accent); color: var(--color-accent-text); }
.area__note{ color: var(--color-neutral); }

/* ---------- Proof strip ---------- */
.proof{
  display: flex; flex-wrap: wrap; gap: 0.5rem 3rem; padding-block: 1.75rem;
  font-family: var(--font-mono); font-size: 0.88rem; color: var(--color-muted);
}
.proof strong{ color: var(--color-accent-text); letter-spacing: 0.05em; }

/* ---------- Contact (#contact) ---------- */
.contact__actions{ display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; margin-top: 1.75rem; }
.contact .chip{ font-size: 0.95rem; padding: 1em 1.6em; }

/* ==========================================================================
   Photography system — real repair photos, graded to one warm archival tone.
   Treated like instant-print snapshots tucked into a service ledger: paper
   border, hairline ink rule, small mono caption, a little hand-set tilt.
   ========================================================================== */
.photo{
  display: inline-block; background: var(--color-paper); padding: 0.5rem 0.5rem 0.75rem;
  border: 1px solid var(--color-rule); box-shadow: 0 6px 14px -10px oklch(20% 0.02 50 / 0.35);
}
.photo img{ display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.photo figcaption{
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.03em; color: var(--color-muted);
  padding-top: 0.5rem; text-align: center;
}

.photo--feature{ width: min(24rem, 100%); }
.photo--feature img{ aspect-ratio: 1 / 1; }

.photo-strip{
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(7.5rem, 9.5rem);
  gap: 1.25rem 1.5rem; overflow-x: auto; padding: 0.75rem 0.25rem 1.25rem; scroll-snap-type: x proximity;
}
.photo-strip .photo{ scroll-snap-align: start; width: 100%; min-width: 0; }
.photo-strip .photo:nth-child(4n+1){ transform: rotate(-1.6deg); }
.photo-strip .photo:nth-child(4n+2){ transform: rotate(1.1deg); }
.photo-strip .photo:nth-child(4n+3){ transform: rotate(-0.8deg); }
.photo-strip .photo:nth-child(4n+4){ transform: rotate(1.7deg); }

.photo-grid{
  display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 1.5rem 1.25rem;
}
.photo-grid .photo{ width: 100%; min-width: 0; }
.photo-grid .photo:nth-child(3n+1){ transform: rotate(-1.2deg); }
.photo-grid .photo:nth-child(3n+2){ transform: rotate(0.9deg); }
.photo-grid .photo:nth-child(3n+3){ transform: rotate(-0.6deg); }

.log__photo .photo{ width: 100%; }
.log__photo .photo img{ aspect-ratio: 1/1; }

/* ---------- Index / hub list (services hub, service-area hub) ---------- */
.index-list{ border-top: 1px solid var(--color-rule); }
.index-list li{ border-bottom: 1px solid var(--color-rule); }
.index-list a, .index-list__row{
  display: grid; grid-template-columns: 3.75rem 1fr auto; align-items: center; gap: 1rem;
  padding: 1.35rem 0; text-decoration: none; color: inherit;
}
.index-list__num{ font-family: var(--font-mono); font-size: 0.9rem; font-weight: 700; color: var(--color-gold-text); font-variant-numeric: tabular-nums; }
.index-list__photo.cat-badge{ width: 3.1rem; height: 3.1rem; }
.index-list__photo .index-list__num{
  position: absolute; bottom: -0.35rem; right: -0.35rem; z-index: 1;
  background: var(--color-accent-fill); color: var(--color-on-ink-2); font-size: 0.62rem;
  line-height: 1; padding: 0.32em 0.42em; border-radius: 999px; border: 2px solid var(--color-paper);
}
.index-list__name{ font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: var(--color-ink); transition: color var(--dur-short) var(--ease-out); }
.index-list__desc{ display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.92rem; color: var(--color-neutral); margin-top: 0.2rem; }
.index-list__arrow{ font-family: var(--font-mono); color: var(--color-rule); transition: color var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out); }
.index-list a:hover .index-list__name{ color: var(--color-accent-text); }
.index-list a:hover .index-list__arrow{ color: var(--color-accent); transform: translateX(3px); }
.index-list a:hover .cat-badge{ border-color: var(--color-paper-3); }
@media (max-width: 40rem){
  .index-list a, .index-list__row{ grid-template-columns: 2.9rem 1fr auto; }
  .index-list__photo.cat-badge{ width: 2.5rem; height: 2.5rem; }
  .index-list__photo .index-list__num{ font-size: 0.56rem; padding: 0.26em 0.36em; }
}

/* ---------- Related links (bottom-of-page internal linking) ---------- */
.related{ }
.related__list{ display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; margin-top: 1.25rem; }
.related__list a{
  font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 0.01em; text-decoration: none;
  border: 1px solid var(--color-rule); padding: 0.55em 1em; border-radius: 2px; color: var(--color-ink-2);
  transition: border-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out);
}
.related__list a:hover{ border-color: var(--color-accent); color: var(--color-accent-text); }

/* ---------- Simple content list (used in service page "what's included") ---------- */
.check-list li{ position: relative; padding-left: 1.6em; margin-bottom: 0.6em; }
.check-list li::before{
  content: ""; position: absolute; left: 0; top: 0.45em; width: 0.65em; height: 0.65em;
  border-radius: 1px; border: 1.5px solid var(--color-accent); transform: rotate(45deg);
}

/* ---------- Cost guide list (pricing page) ---------- */
.cost-list{ border-top: 1px solid var(--color-rule); }
.cost-list li{ border-bottom: 1px solid var(--color-rule); }
.cost-list a{
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.4rem 1.5rem;
  padding: 1.35rem 0; text-decoration: none; color: inherit;
}
.cost-list__main{ flex: 1 1 16rem; }
.cost-list__name{ font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--color-ink); transition: color var(--dur-short) var(--ease-out); }
.cost-list__desc{ display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.92rem; color: var(--color-neutral); margin-top: 0.25rem; }
.cost-list__tier{
  flex: 0 0 auto; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--color-gold-text); border: 1px solid var(--color-rule); border-radius: 999px; padding: 0.42em 0.9em;
  white-space: nowrap; align-self: center;
}
.cost-list a:hover .cost-list__name{ color: var(--color-accent-text); }
.cost-list a:hover .cost-list__tier{ border-color: var(--color-accent); color: var(--color-accent-text); }

/* ---------- FAQ ---------- */
.faq-group{ margin-bottom: clamp(2rem, 5vw, 3rem); }
.faq-group:last-child{ margin-bottom: 0; }
.faq-group__heading{
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--color-gold-text); margin-bottom: 1.1rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--color-rule);
}
.faq-list{ display: flex; flex-direction: column; }
.faq-item{ padding-block: 1.4rem; border-bottom: 1px solid var(--color-rule); }
.faq-item:last-child{ border-bottom: none; }
.faq-item h3{ font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; margin-bottom: 0.5rem; color: var(--color-ink); }
.faq-item p{ color: var(--color-ink-2); }
.faq-item p a{ color: var(--color-accent-text); }

/* ---------- Area coverage map (service-area index) ---------- */
.area-map{ display: flex; flex-direction: column; align-items: center; text-align: center; }
.area-map img{
  display: block; width: min(100%, 26rem); height: auto;
  background: var(--color-paper); padding: 0.6rem;
  border: 1px solid var(--color-rule); border-radius: 6px;
  box-shadow: 0 16px 30px -14px oklch(20% 0.02 50 / 0.55);
}
.area-map figcaption{
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--color-muted); margin-top: 0.85rem;
}
.area-map--us{ margin-top: 1.75rem; }
.area-map--us img{ width: min(100%, 34rem); }

/* ---------- Footer (Ft1 mast-headed) ---------- */
.footer{ background: var(--color-ink); color: var(--color-paper-2); padding-block: clamp(2.5rem, 6vw, 4rem) 2rem; }
.footer__grid{ display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 48rem){
  .footer__grid{ grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; }
}
.footer__brand{ font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 3vw, 1.9rem); color: var(--color-gold); }
.footer__tagline{ font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.04em; color: var(--color-on-ink-muted); text-transform: uppercase; margin-top: 0.6rem; }
.footer__heading{ font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-on-ink-faint); margin-bottom: 0.9rem; }
.footer__col a{ display: block; color: var(--color-on-ink-2); text-decoration: none; font-size: 0.92rem; padding: 0.3em 0; }
.footer__col a:hover{ color: var(--color-paper); text-decoration: underline; }
.footer__links{ display: flex; flex-wrap: wrap; gap: 1rem 1.75rem; margin: 2rem 0 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--color-on-ink-rule); }
.footer__links a{ color: var(--color-on-ink-2); text-decoration: none; font-size: 0.92rem; }
.footer__links a:hover{ color: var(--color-paper); text-decoration: underline; }
.footer__note{ color: var(--color-on-ink-muted); font-size: 0.92rem; }
.footer__fb{ display: inline-block; margin-top: 1rem; line-height: 0; opacity: 0.92; transition: opacity 0.2s var(--ease-out); }
.footer__fb:hover, .footer__fb:focus{ opacity: 1; }
.footer__fb img{ display: block; width: 11rem; height: auto; }
.footer__copyright{ color: var(--color-on-ink-faint); font-family: var(--font-mono); font-size: 0.78rem; margin-top: 1.25rem; margin-bottom: 0; }
.footer a.contact-link{ color: var(--color-gold); font-weight: 600; }

/* ---------- Contact form ---------- */
.contact-form{ margin-top: clamp(2rem, 5vw, 3rem); }
.form-grid{ display: grid; grid-template-columns: 1fr; gap: 1.25rem 1.5rem; }
@media (min-width: 40rem){
  .form-grid{ grid-template-columns: 1fr 1fr; }
}
.field{ display: flex; flex-direction: column; gap: 0.45rem; }
.field-full{ grid-column: 1 / -1; }
.field label{ font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-muted); }
.field .req{ color: var(--color-accent-text); }
.field input, .field select, .field textarea{
  font-family: var(--font-body); font-size: 1rem; color: var(--color-ink);
  background: var(--color-paper); border: 1.5px solid var(--color-rule); border-radius: 2px;
  padding: 0.75em 0.85em; width: 100%;
  transition: border-color var(--dur-short) var(--ease-out);
}
.field input:hover, .field select:hover, .field textarea:hover{ border-color: var(--color-muted); }
.field input:focus, .field select:focus, .field textarea:focus{
  outline: none; border-color: var(--color-accent);
}
.field textarea{ resize: vertical; min-height: 7rem; font-family: var(--font-body); line-height: 1.55; }
.field select{ cursor: pointer; }
.hp-field{ position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-submit{
  display: inline-flex; align-items: center; gap: 0.5em; white-space: nowrap;
  font-family: var(--font-mono); font-size: 0.86rem; letter-spacing: 0.02em; text-transform: uppercase;
  padding: 0.9em 1.5em; border-radius: 2px; border: 1.5px solid var(--color-ink);
  color: var(--color-paper); background: var(--color-ink); cursor: pointer;
  margin-top: 1.75rem;
  transition: background-color var(--dur-short) var(--ease-out), opacity var(--dur-short) var(--ease-out);
}
.form-submit:hover{ background: var(--color-accent-fill); border-color: var(--color-accent-fill); }
.form-submit:disabled{ opacity: 0.6; cursor: default; }
.form-error{ display: none; margin-top: 1.25rem; padding: 0.85em 1em; border: 1.5px solid var(--color-accent); border-radius: 2px; color: var(--color-accent-text); font-size: 0.92rem; }
.form-error.is-visible{ display: block; }
.form-success{ display: none; padding: 2.5rem 2rem; border: 1.5px solid var(--color-rule); border-radius: 2px; background: var(--color-paper-2); text-align: center; }
.form-success.is-visible{ display: block; }
.form-success h3{ font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 0.6rem; }
.form-success p{ color: var(--color-neutral); max-width: 40ch; margin-inline: auto; }

/* ==========================================================================
   v3 — Atmosphere & motion. The bones above already earned the "archival
   warmth" mood; this layer adds the thing a photo of the site can't show:
   the sense that something is quietly glowing and alive under warm glass.
   CRT-glow tokens, film grain in motion, scroll-driven reveals, View
   Transitions between pages, and three signature moments — the hero's
   screen power-on, the tape room, and the stamp press.
   ========================================================================== */

:root{
  --color-crt-dark:      oklch(15% 0.02 60);
  --color-crt-dark-2:    oklch(11% 0.016 55);
  --color-crt-rule:      oklch(24% 0.02 55);
  --color-crt-glow:      oklch(79% 0.115 68);
  --color-crt-glow-dim:  oklch(79% 0.115 68 / 0.4);
  --color-on-crt:        oklch(90% 0.02 60);
  --color-on-crt-muted:  oklch(68% 0.02 55);
}

/* Cross-page View Transitions (MPA). Chromium today, silent no-op
   elsewhere — turning to the next page reads like the next entry in the
   same service log instead of a hard cut. */
@view-transition{ navigation: auto; }
::view-transition-old(root){ animation-duration: 200ms; animation-timing-function: var(--ease-out); }
::view-transition-new(root){ animation-duration: 260ms; animation-timing-function: var(--ease-out); }
@media (prefers-reduced-motion: reduce){
  @view-transition{ navigation: none; }
}

/* ---------- Scroll-driven reveals ----------
   Safe by default (fully visible with no JS and no animation-timeline
   support). main.js promotes elements once it can actually animate them;
   browsers with native scroll-timelines skip JS entirely. */
.reveal{ opacity: 1; transform: none; }
.js-reveal-ready .reveal{
  opacity: 0; transform: translateY(22px);
  transition: opacity 640ms var(--ease-out), transform 640ms var(--ease-out);
}
.js-reveal-ready .reveal.is-visible{ opacity: 1; transform: translateY(0); }
@supports (animation-timeline: view()){
  .reveal{
    opacity: 0; transform: translateY(28px);
    animation: reveal-rise linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 22%;
  }
}
@keyframes reveal-rise{ to{ opacity: 1; transform: translateY(0); } }
.reveal--stagger > *{ transition-delay: calc(var(--i, 0) * 70ms); }
@media (prefers-reduced-motion: reduce){
  .reveal, .js-reveal-ready .reveal, .js-reveal-ready .reveal.is-visible{
    opacity: 1; transform: none; animation: none; transition: none;
  }
}

/* ---------- Film grain, awake ----------
   The base body grain (above) is a static texture. This is a second,
   animated grain layer reserved for dark/CRT bands, where a flickering
   phosphor picture needs a little more life than paper does. */
.grain-live{ position: relative; isolation: isolate; }
.grain-live::after{
  content: ""; position: absolute; inset: -20%; pointer-events: none; z-index: 2;
  opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-drift 1.4s steps(4) infinite;
}
@keyframes grain-drift{
  0%{ transform: translate(0,0); } 25%{ transform: translate(-2%,1%); }
  50%{ transform: translate(1%,-2%); } 75%{ transform: translate(-1%,-1%); } 100%{ transform: translate(0,0); }
}
@media (prefers-reduced-motion: reduce){
  .grain-live::after{ animation: none; }
}

/* ---------- Hero CRT screen — the stamp lives inside a "powered on" tube ---------- */
.crt-screen{
  position: relative; width: min(15.5rem, 68vw); aspect-ratio: 4 / 3.3;
  padding: 3%; border-radius: 12% / 9%;
  background:
    radial-gradient(120% 130% at 50% 38%, var(--color-crt-glow-dim), transparent 68%),
    linear-gradient(var(--color-crt-dark), var(--color-crt-dark-2));
  box-shadow:
    0 0 0 3px var(--color-crt-rule),
    0 18px 40px -18px oklch(10% 0.02 45 / 0.55),
    inset 0 0 30px 6px oklch(0% 0 0 / 0.55);
  overflow: hidden;
  animation: crt-power-on 1.1s var(--ease-out) both; animation-delay: 150ms;
}
.crt-screen::before{ /* scanlines */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: repeating-linear-gradient(to bottom, oklch(0% 0 0 / 0.16) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
}
.crt-screen::after{ /* glass sheen */
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(115deg, oklch(100% 0 0 / 0.08) 0%, transparent 30%);
}
.crt-screen .stamp{
  position: relative; z-index: 1; width: 100%; margin: 0; mix-blend-mode: normal;
  filter: drop-shadow(0 0 7px var(--color-crt-glow-dim));
  animation: crt-flicker 5s ease-in-out infinite; animation-delay: 1.3s;
}
@keyframes crt-power-on{
  0%{ opacity: 0; transform: scaleY(0.02) scaleX(1.15); filter: brightness(3); }
  55%{ opacity: 1; transform: scaleY(1.03) scaleX(0.99); filter: brightness(2.1); }
  75%{ transform: scaleY(0.98); filter: brightness(0.85); }
  100%{ opacity: 1; transform: scaleY(1) scaleX(1); filter: brightness(1); }
}
@keyframes crt-flicker{
  0%, 96%, 100%{ opacity: 0.92; } 97%{ opacity: 0.78; } 98%{ opacity: 0.98; } 99%{ opacity: 0.82; }
}
@media (prefers-reduced-motion: reduce){
  .crt-screen{ animation: none; }
  .crt-screen .stamp{ animation: none; opacity: 0.92; }
}

/* ---------- Corkboard gallery — snapshots taped up, not laid out in a grid ---------- */
.photo-strip:has(.photo:hover) .photo:not(:hover){ opacity: 0.72; filter: saturate(0.85); }
.photo-strip .photo{ transition: opacity 260ms var(--ease-out), filter 260ms var(--ease-out), transform 260ms var(--ease-out); }
.photo-strip .photo:hover{ transform: rotate(0deg) translateY(-3px) scale(1.03); z-index: 2; position: relative; }
.photo--tape{ position: relative; }
.photo--tape::before{
  content: ""; position: absolute; top: -0.6rem; left: 50%; translate: -50% 0; z-index: 2;
  width: 2.75rem; height: 1.1rem; pointer-events: none;
  background: oklch(88% 0.03 95 / 0.62);
  border-inline: 1px solid oklch(80% 0.03 95 / 0.5);
  box-shadow: 0 1px 2px oklch(20% 0.02 50 / 0.25);
  rotate: -3deg;
}
.photo-strip .photo:nth-child(3n+2).photo--tape::before{ rotate: 2.5deg; }
.photo-strip .photo:nth-child(3n)::before{ display: none; } /* every third photo pinned instead of taped */
.photo-strip .photo:nth-child(3n){ position: relative; }
.photo-strip .photo:nth-child(3n)::after{
  content: ""; position: absolute; top: -0.35rem; left: 50%; translate: -50% 0; z-index: 2;
  width: 0.6rem; height: 0.6rem; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, oklch(70% 0.16 40), var(--color-accent-fill) 70%);
  box-shadow: 0 2px 3px oklch(20% 0.02 50 / 0.4);
}

/* ---------- Container queries — components adapt to their own box, not the viewport ---------- */
.services .wrap, .bench .wrap{ container-type: inline-size; container-name: shelf; }
@container shelf (min-width: 42rem){
  .spec-sheet li > a, .spec-sheet li > div{ grid-template-columns: 3.6rem 15rem 1fr; }
}
@container shelf (max-width: 30rem){
  .log__entry{ grid-template-columns: 1fr; }
  .log__date{ display: flex; gap: 0.5rem; align-items: baseline; }
}

/* ---------- Tape room — the transfers section, lit like a dark living room ---------- */
.transfers--dark{
  background: var(--color-crt-dark); color: var(--color-on-crt); position: relative; overflow: clip;
}
.transfers--dark::before{
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(60% 55% at 78% 45%, var(--color-crt-glow-dim), transparent 70%);
}
.transfers--dark .wrap{ position: relative; z-index: 1; }
.transfers--dark h2{ color: var(--color-on-crt); }
.transfers--dark p{ color: var(--color-on-crt-muted); }
.transfers--dark .transfers__formats{ color: var(--color-crt-glow); }
.transfers--dark .link-arrow{ color: var(--color-on-crt-2, var(--color-on-crt)); border-bottom-color: var(--color-crt-glow); }
.transfers--dark .link-arrow:hover{ color: var(--color-crt-glow); }
.transfers--dark .vcr-stack img{ filter: drop-shadow(0 0 26px var(--color-crt-glow-dim)) drop-shadow(0 14px 24px oklch(0% 0 0 / 0.5)); }

/* ---------- Stamp press — a second life for the FIXED mark, in-page ---------- */
.stamp-press{ display: flex; justify-content: center; padding-block: clamp(2rem, 5vw, 3.5rem); border-top: 1px solid var(--color-rule); border-bottom: 1px solid var(--color-rule); background: var(--color-paper); }
.stamp-press svg{ width: min(9rem, 40vw); color: var(--color-accent); }
@supports (animation-timeline: view()){
  .stamp-press svg{
    animation: stamp-down linear both; animation-timeline: view(); animation-range: entry 10% entry 55%;
  }
}
.js-reveal-ready .stamp-press svg:not(.is-visible){ opacity: 0; transform: scale(1.6); filter: blur(6px); }
.js-reveal-ready .stamp-press svg.is-visible{
  opacity: 0.92; transform: scale(1); filter: blur(0);
  transition: opacity 480ms var(--ease-out), transform 480ms var(--ease-out), filter 480ms var(--ease-out);
}
@supports (animation-timeline: view()){
  .js-reveal-ready .stamp-press svg{ opacity: 1; transform: none; filter: none; transition: none; }
}
@keyframes stamp-down{ from{ opacity: 0; transform: scale(1.6); filter: blur(6px); } to{ opacity: 0.92; transform: scale(1); filter: blur(0); } }
@media (prefers-reduced-motion: reduce){
  .stamp-press svg, .js-reveal-ready .stamp-press svg, .js-reveal-ready .stamp-press svg.is-visible{
    opacity: 0.92; transform: none; filter: none; animation: none; transition: none;
  }
}
