/* ============================================================
   SWEETFRONT SYSTEM v4 — shared by the hub and both demos
   Warm Brutalism / Quiet Craft · VISION.md v3.1 + REDESIGN-v4.1
   Every page's own style.css sets the palette contract:
     --bg --bg-2 --card --bg-3 --fg --muted --accent --accent-text
     --on-accent --ok --dark-a --dark-b --dark-c --on-dark
     --muted-dark --accent-on-dark --rule --rule-soft
     --rule-dark --rule-dark-soft --focus --focus-dark
   Lines: 1px (hairline) + 2px (interactive). Radii: 0 — square, like print (CHARACTER v6).
   ============================================================ */

/* ---------- FONTS — self-hosted (assets/fonts, OFL licences beside the files) ----------
   Fraunces: SOFT is baked at 20 and weight limited to 400–700 (fontTools instancer); opsz and WONK stay variable.
   'SOFT' values in the font-variation-settings below are therefore inert — they work again if the full font returns.
   Inter and IBM Plex Mono are byte-identical to the latin files Google Fonts serves. */
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 400 700; font-display: swap; src: url("assets/fonts/fraunces-roman.woff2") format("woff2"); }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 400 700; font-display: swap; src: url("assets/fonts/fraunces-italic.woff2") format("woff2"); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 600; font-display: swap; src: url("assets/fonts/inter-latin.woff2") format("woff2"); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/ibm-plex-mono-400.woff2") format("woff2"); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/ibm-plex-mono-500.woff2") format("woff2"); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/ibm-plex-mono-600.woff2") format("woff2"); }

@view-transition { navigation: auto; }

:root {
  /* hero type follows the viewport WIDTH and HEIGHT: on a wide-but-short laptop screen (1366x600)
     a width-only headline pushed the CTAs below the fold. Cap 84px keeps every H1 on 3 lines in the 7-col copy column. */
  --fs-hero: clamp(2.5rem, min(1.15rem + 5.4vw, 11.5vh), var(--hero-max, 5.25rem));   /* 40 → 84px */
  --fs-h2: clamp(2rem, 1.35rem + 2.4vw, 3rem);           /* 32 → 48px */
  --fs-h3: 1.375rem;
  --fs-lead: clamp(1.125rem, 1rem + .5vw, 1.375rem);     /* 18 → 22px */
  --fs-body: 1.0625rem;                                  /* 17px */
  --fs-price: clamp(2rem, 1.5rem + 2vw, 3.5rem);
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --body: 'Inter', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --head-h: 65px;                        /* sticky header height incl. its hairline (57px on short screens) */
  --ease: cubic-bezier(.22, .7, .2, 1);   /* one easing for every UI transition */
  --ease-expo: cubic-bezier(.16, 1, .3, 1);   /* entrances only: fast start, long soft landing */
  --t-fast: .12s;                        /* CRAFT v8 6 — three durations for the whole site: a state (hover, press) … */
  --t-base: .2s;                         /* … a switch or an opening … */
  --t-slow: .32s;                        /* … a change of surface. Entrances and the syrup-coloured section are the two exceptions. */
  --t-ui: var(--t-fast);
  --pen: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 6' preserveAspectRatio='none'%3E%3Cpath d='M1 4.2c22-1.4 44-2.1 66-1.6 18 .4 35 1.4 52 2.4' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");   /* one slightly uneven pen line, used as a mask */
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- BASE ---------- */
* { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: var(--fs-body);
  line-height: 1.75;
}
body.nav-open { overflow: hidden; }

h1, h2, h3 { text-wrap: balance; font-optical-sizing: auto; }
p { margin: 0 0 1em; max-width: 68ch; text-wrap: pretty; }
img, svg { max-width: 100%; }
img { display: block; height: auto; }
a[href^="tel:"] { white-space: nowrap; }   /* a phone number never breaks across lines */
em { font-family: var(--display); font-style: italic; font-weight: 500; }
::selection { background: var(--accent); color: var(--on-accent); }

/* Grain — one tiny feTurbulence asset, 3%, never animated */
/* paper grain — measured, not guessed: ±2–3 of 255 levels, mean shift 1 level, contrast cost ≤ 0.05
   (docs/QA-REPORT.md, CLARITY v5 step 1). Kept on purpose. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: .03;
  background-image: var(--noise);
}

::selection { background: var(--accent); color: var(--on-accent); }   /* selected text in the page's own colours, not the browser's blue */

/* ---------- LAYOUT ---------- */
.container { width: min(100% - 40px, 1240px); margin-inline: auto; }
@media (min-width: 1240px) { .container { width: min(100% - 112px, 1240px); } }

.grid12 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 860px) {
  .grid12 { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px 32px; }
  .col-4 { grid-column: span 4; }
  .col-5 { grid-column: span 5; }
  .col-6 { grid-column: span 6; }
  .col-7 { grid-column: span 7; }
  .col-8 { grid-column: span 8; }
  .col-12 { grid-column: 1 / -1; }
  .col-c8 { grid-column: 3 / span 8; }
  .order-first { order: -1; }
}

.section { padding-block: 64px; }
.section-lg { padding-block: 88px; }
.section-sm { padding-block: 44px; }
@media (min-width: 860px) {
  .section { padding-block: 96px; }
  .section-lg { padding-block: 144px; }
  .section-sm { padding-block: 64px; }
}
.band { background: var(--bg-2); border-block: 1px solid var(--rule-soft); }

/* Dark sections: depth (light source top-left), own grain, print edge */
.section-dark {
  position: relative;
  isolation: isolate;
  color: var(--on-dark);
  box-shadow: inset 0 1px 0 var(--rule-dark-soft);   /* print edge (::after now carries the v7 lantern, drama.css) */
  background: var(--dark-a);
  background: radial-gradient(120% 90% at 18% 0%, var(--dark-a) 0%, var(--dark-b) 55%, var(--dark-c) 100%);
}
.section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .05;
  background-image: var(--noise);
}
.section-dark p { color: var(--muted-dark); }

/* ---------- UTILITIES ---------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
  border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Mono — three levels: meta (muted) · key (strong) · section numbers (accent) */
.mono {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: .875rem;   /* 14px mobile floor */
  line-height: 1.5;
  font-weight: 500;
}
@media (min-width: 768px) { .mono { font-size: .8125rem; } } /* 13px desktop floor */
.m-muted { color: var(--muted); }
.m-strong { color: var(--fg); font-weight: 600; }
.m-accent { color: var(--accent-text); font-weight: 600; }
/* long notes are sentences → body face (CLARITY v5 2.3: mono is for data, not for prose) */
.note {
  font-family: var(--body);
  font-size: .9375rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 56ch;
}
.section-dark .m-muted, .site-foot .m-muted,
.section-dark .note, .site-foot .note { color: var(--muted-dark); }
.section-dark .m-strong, .site-foot .m-strong { color: var(--on-dark); }
/* --accent-on-dark is large-text / non-text only (≥3:1); small mono needs ≥4.5:1 */
.section-dark .m-accent, .site-foot .m-accent { color: var(--accent-on-dark-text, var(--on-dark)); }

.num { font-variant-numeric: tabular-nums; }
.lead { font-size: var(--fs-lead); line-height: 1.55; max-width: 40ch; color: var(--fg); }
.section-dark .lead { color: var(--on-dark); }

.skip-link {
  position: fixed;
  top: 8px; left: 8px;
  z-index: 10000;
  background: var(--fg);
  color: var(--bg);
  padding: 12px 18px;
  border-radius: 0;
  text-decoration: none;
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform var(--t-fast) linear;
}
.skip-link:focus { transform: translateY(0); }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.section-dark :focus-visible,
.site-foot :focus-visible,
.poster :focus-visible { outline-color: var(--focus-dark); }

/* Demo disclosure — static strip in the page flow (never overlaps content) */
.demo-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 16px;
  margin: 40px 0 0;
  border-top: 1px solid var(--rule-soft);
  color: var(--muted);
  font-size: .875rem;
}

.demo-strip span { padding-block: 6px; text-wrap: balance; }   /* no orphaned last word on a phone */
.demo-strip a { display: inline-block; padding: 13px 4px; color: var(--accent-text); text-underline-offset: 3px; } /* ≥44px */
#main:focus { outline: none; }   /* skip-link target, not an interactive element */

/* pen stroke — text links. Drawn from the left on hover and focus; the colour is the text colour. */
.sweep { position: relative; text-decoration: none; }
.sweep::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 8px;
  height: 6px;
  margin-bottom: -3px;          /* the stroke sits where the 1px rule used to */
  background: currentColor;
  -webkit-mask: var(--pen) no-repeat 0 100% / 100% 6px;
  mask: var(--pen) no-repeat 0 100% / 100% 6px;
  clip-path: inset(0 100% 0 0);   /* drawn from the left, like a pen */
  transition: clip-path var(--t-base) var(--ease);
}
.sweep:hover::after, .sweep:active::after, .sweep:focus-visible::after { clip-path: inset(0); }

/* ---------- BUTTONS — three characters: stamp · sentence · tag (all ≥ 44px) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 13px 28px;
  border: 2px solid var(--fg);
  border-radius: 0;
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--t-ui) var(--ease), color var(--t-ui) var(--ease), border-color var(--t-ui) var(--ease),
              transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
/* PRIMARY — a stamp: accent fill, an ink offset that closes as the pointer comes down and seats on press */
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); box-shadow: 5px 5px 0 var(--fg); }
.btn-primary:hover { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--fg); }
.btn-primary:active { transform: translate(5px, 5px); box-shadow: 0 0 0 transparent; }
/* …flat where the button is chrome, not the page's one action: header, mobile bar, inside the stamped card */
.nav-cta, .cta-sticky .btn-primary, .panel-feature .btn-primary { box-shadow: none; }
.nav-cta:hover, .cta-sticky .btn-primary:hover, .panel-feature .btn-primary:hover { transform: none; box-shadow: none; background: var(--bg); color: var(--accent-text); }
.nav-cta:active, .cta-sticky .btn-primary:active, .panel-feature .btn-primary:active { transform: translateY(1px); box-shadow: none; }
/* SECONDARY — not a box: a sentence you can click. Ink text, the pen stroke under it, an arrow that leans forward. */
.btn-ghost { position: relative; gap: 10px; padding-inline: 6px; background: transparent; color: var(--fg); border-color: transparent; }
.btn-ghost::before {
  content: "";
  position: absolute;
  left: 6px; right: 6px; bottom: 7px;
  height: 6px;
  background: var(--accent);
  -webkit-mask: var(--pen) no-repeat 0 100% / 100% 6px;
  mask: var(--pen) no-repeat 0 100% / 100% 6px;
}
.btn-ghost::after { content: "→"; content: "→" / ""; transition: transform var(--t-ui) var(--ease); }
.btn-ghost:hover, .btn-ghost:active { color: var(--accent-text); }
.btn-ghost:hover::after { transform: translateX(3px); }
/* …in the mobile action bar it stays a plain box ("Call" is chrome, not a sentence) */
.cta-sticky .btn-ghost { padding-inline: 16px; border-color: var(--fg); }
.cta-sticky .btn-ghost::before, .cta-sticky .btn-ghost::after { content: none; }
/* TERTIARY — a price tag with its string hole: small errands only (Directions) */
.btn-tag {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px 8px 32px;
  background: var(--bg-2);
  border: 1px solid var(--rule);
  color: var(--fg);
  font-weight: 600;
  text-decoration: none;
  transition: background-color var(--t-ui) var(--ease), transform var(--t-ui) var(--ease);
}
.btn-tag::before { content: ""; position: absolute; left: 12px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border: 1px solid var(--rule); border-radius: 50%; background: var(--bg); }
.btn-tag:hover, .btn-tag:active { background: var(--bg); transform: rotate(-1.5deg); }
.btn-light { background: var(--on-dark); border-color: var(--on-dark); color: var(--fg); }
.btn-light:hover, .btn-light:active { background: transparent; color: var(--on-dark); }
.btn-block { width: 100%; }
.btn-light:active, .btn-ghost:active { transform: translateY(1px); }   /* every button gives under the finger; the stamp travels further */

/* ---------- HEADER + NAV ---------- */
.site-head {
  position: relative;
  z-index: 90;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}
.site-head.is-sticky { position: sticky; top: 0; }
/* demos: sticky only where paging runs — paging.js measures .site-head as the offset above every section */
@media (min-width: 64rem) { .site-head.is-sticky-desktop { position: sticky; top: 0; } }
.head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding-block: 8px;
}
.brand { display: flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; color: var(--fg); }
.brand-mark { color: var(--accent-text); flex: 0 0 auto; }
.brand-name { font-family: var(--display); font-weight: 600; font-size: 1.0625rem; line-height: 1.15; }
.brand-sub {
  display: block;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: .875rem;
  font-weight: 500;
  color: var(--muted);
}
@media (min-width: 768px) { .brand-sub { font-size: .8125rem; } }

/* no-JS path: native checkbox :checked opens the panel */
.nav-toggle {
  position: absolute;
  width: 1px; height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.nav-toggle-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  cursor: pointer;
  border-radius: 0;
  position: relative;
  z-index: 2;
}
.bar { display: block; width: 22px; height: 2px; background: var(--fg); transition: transform var(--t-base) var(--ease), opacity var(--t-base) var(--ease); }
.nav-toggle:checked + .nav-toggle-label .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle:checked + .nav-toggle-label .bar:nth-child(2) { opacity: 0; }
.nav-toggle:checked + .nav-toggle-label .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-toggle:focus-visible + .nav-toggle-label { outline: 2px solid var(--focus); outline-offset: 2px; }

.nav-panel {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;   /* centred flex overflow is unreachable above the top edge */
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 88px 24px 48px;
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--t-base) var(--ease), visibility 0s linear var(--t-base);
}
.nav-toggle:checked ~ .nav-panel {
  visibility: visible;
  opacity: 1;
  transition: opacity var(--t-base) var(--ease), visibility 0s linear 0s;
}
@media (min-height: 620px) { .nav-panel { justify-content: center; } }
/* H5 — the brand sits under the opaque panel: keep focus off it (no-JS + inert-less browsers) */
@media (max-width: 899px) { .head-inner:has(.nav-toggle:checked) .brand { visibility: hidden; } }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.nav-list a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  min-height: 48px;
  padding: 12px 4px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.75rem;
  line-height: 1.2;
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-soft);
}
.nav-cta { margin-top: 32px; align-self: flex-start; }

@media (min-width: 900px) {
  .nav-toggle, .nav-toggle-label { display: none; }
  .nav-panel {
    position: static;
    visibility: visible;
    opacity: 1;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 32px;
    padding: 0;
    overflow: visible;
    background: transparent;
    transition: none;
  }
  .nav-list { flex-direction: row; gap: 26px; }
  .nav-list a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 44px;
    padding: 13px 2px 11px;   /* + the top border below: the caps sit on the header's centre line, not 2px above it */
    font-family: var(--mono);
    font-size: .8125rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .09em;
    border-block: 2px solid transparent;   /* bottom = the hover underline; top = its counterweight */
    transition: border-color var(--t-ui) var(--ease);
  }
  .nav-list a:hover, .nav-list a:active, .nav-list a[aria-current] { border-bottom-color: var(--accent); }   /* [aria-current]: micro.js mirrors the register */
  .nav-cta { margin-top: 0; }
}

/* ---------- SECTION HEADS ---------- */
.sec-head { margin-bottom: 44px; }
.sec-label { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; max-width: none; }
.ink-line { flex: 0 0 48px; height: 1px; background: var(--rule); transform-origin: left center; }
.section-dark .ink-line { background: var(--rule-dark); }
.sec-title {
  font-family: var(--display);
  font-variation-settings: 'SOFT' 14, 'WONK' 1;
  font-weight: 600;
  font-size: var(--fs-h2);
  line-height: 1.06;
  letter-spacing: -.015em;
  margin: 0 0 20px;
  max-width: 20ch;
}
.sec-head > :last-child { margin-bottom: 0; }
.h3 {
  font-family: var(--display);
  font-variation-settings: 'SOFT' 14, 'WONK' 1;
  font-weight: 600;
  font-size: var(--fs-h3);
  line-height: 1.2;
  margin: 0 0 8px;
}

.hero-h1 {
  font-family: var(--display);
  font-variation-settings: 'SOFT' 20, 'WONK' 1;
  font-weight: 620;
  font-size: var(--fs-hero);
  line-height: .98;
  letter-spacing: -.025em;
  margin: 0 0 24px;
  padding-bottom: .08em;
}
/* editorial line reveal — one clip-path motion, three beats, on load only */
.hero-h1 .ln, .hero-h1 .ln-i { display: block; }
/* HERO ENTRANCE — once, on load. Each line rises from behind a static mask. The mask is LARGER than the line box:
   line-height .98 lets descenders (g, p, y) hang below it, and a tight box would cut them. It exists only while the
   entrance runs (no forwards fill), so nothing stays clipped afterwards. */
@media (prefers-reduced-motion: no-preference) {
  .hero-h1 .ln { animation: line-mask 1.25s linear backwards; }
  .hero-h1 .ln-i { animation: line-rise .95s var(--ease-expo) backwards; }
  .hero-h1 .ln:nth-child(2) .ln-i { animation-delay: .11s; }
  .hero-h1 .ln:nth-child(3) .ln-i { animation-delay: .22s; }
  .hero-copy > :not(.hero-h1) { animation: rise-in .8s var(--ease-expo) backwards; }
  .hero-copy > .lead { animation-delay: .4s; }
  .hero-copy > .hero-cta { animation-delay: .52s; }
  .hero-copy > .hero-price { animation-delay: .64s; }
  @keyframes line-mask { from, to { clip-path: inset(-.12em -.1em -.32em -.1em); } }
  @keyframes line-rise { from { transform: translateY(140%); } }
  @keyframes rise-in { from { opacity: 0; transform: translateY(14px); } }
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
@media (max-width: 479px) { .hero-cta { gap: 10px; } .hero-cta .btn { padding-inline: 16px; } } /* both CTAs share one row on phones */

/* one word per page keeps the pen stroke for good — the word the farm is about (woods, valley) */
.ink-word { position: relative; white-space: nowrap; }
.ink-word::after {
  content: "";
  position: absolute;
  left: -.03em; right: -.03em; bottom: .07em;
  height: .13em;
  background: var(--accent);
  -webkit-mask: var(--pen) no-repeat 0 50% / 100% 100%;
  mask: var(--pen) no-repeat 0 50% / 100% 100%;
}
@media (prefers-reduced-motion: no-preference) {
  .ink-word::after { animation: pen-draw .7s var(--ease-expo) 1.1s backwards; }   /* drawn once, after the lines have landed */
  @keyframes pen-draw { from { clip-path: inset(0 100% 0 0); } }
}

/* one torn edge per page: the dark sheet was ripped, not cut. -bottom is for a dark sheet that ends on paper. */
.edge-torn {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='8' preserveAspectRatio='none'%3E%3Cpath d='M0 8V4.2l6-1.1 5 1.6 6-2 5.5 1.2 6-1.9 5 1.4 6-.7 5.5 1.8 6-2.1 5 1.3 6-1.1 5.5 1.7 6-1.9 5 1.2 6-.6 5.5 1.5 6-2 5 1.4 6-1.2 5.5 1.6 6-1.8H120V8z' fill='%23000'/%3E%3C/svg%3E") repeat-x 0 0 / 120px 8px, linear-gradient(#000, #000) no-repeat 0 100% / 100% calc(100% - 7px);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='8' preserveAspectRatio='none'%3E%3Cpath d='M0 8V4.2l6-1.1 5 1.6 6-2 5.5 1.2 6-1.9 5 1.4 6-.7 5.5 1.8 6-2.1 5 1.3 6-1.1 5.5 1.7 6-1.9 5 1.2 6-.6 5.5 1.5 6-2 5 1.4 6-1.2 5.5 1.6 6-1.8H120V8z' fill='%23000'/%3E%3C/svg%3E") repeat-x 0 0 / 120px 8px, linear-gradient(#000, #000) no-repeat 0 100% / 100% calc(100% - 7px);
}
.edge-torn-bottom {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='8' preserveAspectRatio='none'%3E%3Cpath d='M0 0v3.8l6 1.1 5-1.6 6 2 5.5-1.2 6 1.9 5-1.4 6 .7 5.5-1.8 6 2.1 5-1.3 6 1.1 5.5-1.7 6 1.9 5-1.2 6 .6 5.5-1.5 6 2 5-1.4 6 1.2 5.5-1.6 6 1.8H120V0z' fill='%23000'/%3E%3C/svg%3E") repeat-x 0 100% / 120px 8px, linear-gradient(#000, #000) no-repeat 0 0 / 100% calc(100% - 7px);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='8' preserveAspectRatio='none'%3E%3Cpath d='M0 0v3.8l6 1.1 5-1.6 6 2 5.5-1.2 6 1.9 5-1.4 6 .7 5.5-1.8 6 2.1 5-1.3 6 1.1 5.5-1.7 6 1.9 5-1.2 6 .6 5.5-1.5 6 2 5-1.4 6 1.2 5.5-1.6 6 1.8H120V0z' fill='%23000'/%3E%3C/svg%3E") repeat-x 0 100% / 120px 8px, linear-gradient(#000, #000) no-repeat 0 0 / 100% calc(100% - 7px);
}
.edge-torn { box-shadow: none; }   /* no print hairline on a ripped edge */
/* ---------- FOOTER ---------- */
.site-foot { background: var(--dark-c); color: var(--on-dark); padding: 64px 0 36px; }
/* the sign-off: the last thing the page says, in its own voice and at display size */
.site-foot .foot-signoff {
  margin: 0 0 52px;
  padding-bottom: 40px;
  max-width: none;
  border-bottom: 1px solid var(--rule-dark-soft);
  font-family: var(--display);
  font-variation-settings: 'WONK' 1;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.25rem, 1rem + 5.2vw, 5.5rem);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--on-dark);
}
.foot-grid { display: grid; gap: 44px; }
.site-foot .brand-mark { color: var(--accent-on-dark); }
.foot-name { font-family: var(--display); font-weight: 600; font-size: 1.25rem; margin: 14px 0 10px; }
.site-foot p { margin: 0; }
.site-foot .foot-h { margin: 0 0 14px; }
.foot-nav ul { list-style: none; margin: 0; padding: 0; }
.foot-nav a { display: inline-block; min-width: 44px; color: var(--on-dark); text-decoration: none; padding: 12px 0; }
.foot-nav a:hover, .foot-nav a:active { text-decoration: underline; text-underline-offset: 4px; }
.foot-contact a { display: inline-block; color: var(--on-dark); text-decoration: underline; text-underline-offset: 3px; padding: 12px 0; }
.foot-bottom a { display: inline-block; padding: 12px 0; color: var(--on-dark); text-underline-offset: 3px; }
.foot-bottom {
  border-top: 1px solid var(--rule-dark-soft);
  margin-top: 52px;
  padding-top: 24px;
  display: grid;
  gap: 10px;
}
@media (min-width: 768px) {
  .foot-grid { grid-template-columns: 1.3fr 1fr 1fr; gap: 48px; }
  .foot-bottom { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
}

/* ---------- MOTION (enhancement only; every block has a static fallback) ---------- */
@supports (animation-timeline: view()) {
  .ink-line {
    animation: ink-draw-x linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 60%;
  }
  @keyframes ink-draw-x {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
  }
}
/* No content reveal on scroll (CLARITY v5 ch. 4). Section paging parks the page at a fixed offset, so a block
   low in a section could stay half-transparent for good — and a full-page capture or a print showed holes.
   Everything is visible from the first paint; the ink line above is the one thing a section draws on arrival. */

/* action bar slides in once the hero CTA has scrolled away; always visible without support */
@supports (animation-timeline: scroll()) {
  @media (max-width: 859px) {
    .cta-sticky {
      animation: bar-in linear both;
      animation-timeline: scroll(root block);
      animation-range: 45vh 60vh;
    }
    .cta-sticky:focus-within { transform: none !important; visibility: visible !important; }
    @keyframes bar-in {
      from { transform: translateY(100%); visibility: hidden; }
      to   { transform: translateY(0); visibility: visible; }
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
