/*
 * styles.css — Cornerstone Solutions, Inc.
 * "The Laminated Card": a QuickStudy reference card unfolded on screen.
 * Guide Blue / Leaf Green / Tab Orange panels on warm paper, in purple ink.
 * One stylesheet, no framework. Tokens from design-tokens.json.
 */

/* ============================================================
   Design Tokens
   ============================================================ */
:root {
  --color-primary: #612D82;        /* Cornerstone Purple — ink, utility strip, buttons */
  --color-primary-dark: #4A1F66;
  --color-primary-light: #EFE8F4;  /* Lilac Laminate */
  --color-secondary: #79C141;      /* Leaf Green — secondary field */
  --color-accent: #F08F26;         /* Tab Orange — accent field */
  --color-bg: #FBFAF6;             /* Laminate Paper */
  --color-surface: #98BBD7;        /* Guide Blue — dominant field */
  --color-text: #2A1838;           /* ink */
  --color-text-secondary: #55486A; /* slate */
  --color-text-on-primary: #FFFFFF;
  --color-border: #D8D0E0;         /* Laminate Edge */
  --white: #FFFFFF;

  --font-primary: 'Archivo', 'Arial Narrow', sans-serif;
  --font-secondary: 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', Verdana, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'Courier New', monospace;
  --font-size-base: 18px;
  --spacing-base: 8px;

  --motion-duration: 220ms;
  --motion-duration-slow: 380ms;
  --motion-ease: cubic-bezier(0.3, 0.7, 0.2, 1);

  --pad-x: clamp(1.25rem, 4vw, 3.5rem);
  --pad-y: clamp(3.5rem, 8vw, 7rem);
  --shell: 1320px;
  --mast-h: 128px;  /* 36 utility + 92 main */

  /* Lightspeed for the --lcrm cart accent is not used (no shop). */
}

/* ============================================================
   Base Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: var(--font-size-base, 16px);
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-secondary);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  padding-bottom: 42px; /* required */
  text-rendering: optimizeLegibility;
}

img, video { max-width: 100%; height: auto; display: block; }
iframe { display: block; border: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

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

h1, h2, h3, h4 {
  font-family: var(--font-primary);
  font-stretch: 118%;
  font-weight: 800;
  line-height: 1.02;
  color: var(--color-primary);
  letter-spacing: -0.01em;
}
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); font-weight: 700; }

p { max-width: 68ch; }
strong, b { font-weight: 700; }

/* Focus states — WCAG AA required */
:focus-visible {
  outline: 3px solid var(--color-text);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--white);
}
.mast__utility :focus-visible { outline-color: var(--white); box-shadow: none; }

/* Skip navigation link — WCAG 2.4.1 (managed by fix_ada_safe.py) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--white);
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--color-primary);
}
.skip-link:focus { left: 0; }

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

/* Reveal-gating floor. Base state is VISIBLE; hidden only once JS is confirmed.
   (This site's motion signature is deliberate stillness + the tab rail, so
   no content carries .reveal — the mechanism is kept for future edits.) */
.reveal { opacity: 1; transform: none; }
html.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s, transform .6s; }
html.js .reveal.is-in { opacity: 1; transform: none; }

/* ============================================================
   Shared type pieces
   ============================================================ */
.mono, .chip, .crumb {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0;
}
.crumb { font-size: 0.8125rem; line-height: 1.3; color: var(--color-primary-dark); }
.chip {
  display: inline-block;
  font-size: 0.8125rem;
  line-height: 1.2;
  padding: 0.28rem 0.55rem;
  background: var(--color-accent);
  color: var(--color-text);
  white-space: nowrap;
}
.fold__lead .chip, p > .chip { white-space: normal; display: inline; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.chip--lilac { background: var(--color-primary-light); }
.chip--white { background: var(--white); }
.chip--blue { background: var(--color-surface); }
.chip--green { background: var(--color-secondary); }

.btn-book {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0 1.35rem;
  background: var(--color-primary);
  color: var(--white);
  font: 700 1rem/1 var(--font-secondary);
  text-decoration: none;
  border-radius: 0;
  transition: background var(--motion-duration) var(--motion-ease);
}
.btn-book:hover { background: var(--color-primary-dark); color: var(--white); text-decoration: none; }
.btn-book i { font-size: 1.15rem; }

.textlink {
  font-family: var(--font-primary);
  font-stretch: 112%;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--color-text);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25em;
}
.textlink:hover { color: var(--color-primary); }

.outlink {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.85rem;
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
  font: 500 0.875rem/1.3 var(--font-mono);
  text-decoration: none;
  background: var(--white);
  transition: background var(--motion-duration) var(--motion-ease), color var(--motion-duration) var(--motion-ease);
}
.outlink:hover { background: var(--color-primary); color: var(--white); text-decoration: none; }

/* ============================================================
   Masthead — two-tier chapter-tab masthead (the guide's thumb-index)
   ============================================================ */
.mast {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  overflow: visible;
  transition: transform var(--motion-duration) var(--motion-ease);
}
.mast.is-condensed { transform: translateY(-36px); }
@media (prefers-reduced-motion: reduce) { .mast { transition: none; } }

.mast__utility {
  height: 36px;
  background: var(--color-primary);
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0 var(--pad-x);
}
.mast__id { font: 500 0.8125rem/1 var(--font-mono); white-space: nowrap; overflow: visible; }
.mast__util { display: flex; align-items: center; gap: 1.4rem; font: 400 0.9375rem/1 var(--font-secondary); }
.mast__util a { color: var(--white); text-decoration: none; display: inline-flex; align-items: center; gap: 0.35rem; }
.mast__util a:hover { text-decoration: underline; color: var(--white); }
.mast__util .mono { font-size: 0.875rem; }

.mast__main {
  position: relative;
  height: 92px;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0 var(--pad-x);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
  overflow: visible;
}
.mast__brand { display: block; flex: none; line-height: 0; }
.mast__brand img { height: 68px; width: auto; max-width: 240px; }

.mast__tabs {
  margin-left: auto;
  align-self: flex-end;
  display: flex;
  gap: 0.3rem;
}
.chtab {
  --tab: var(--color-surface);
  position: relative;
  height: 44px;
  margin-bottom: -6px;               /* hangs 6px below the bar like a printed index tab */
  padding: 0 0.85rem;
  border-top: 5px solid var(--tab);
  background: var(--color-bg);
  box-shadow: inset 0 -6px 0 var(--tab), 1px 0 0 var(--color-border), -1px 0 0 var(--color-border);
  font: 600 1rem/1 var(--font-primary);
  font-stretch: 112%;
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
  transition: background var(--motion-duration) var(--motion-ease);
}
.chtab b { font: 500 0.8125rem/1 var(--font-mono); }
.chtab i { font-size: 0.8rem; transition: transform var(--motion-duration) var(--motion-ease); }
.chap--1 .chtab { --tab: var(--color-surface); }
.chap--2 .chtab { --tab: var(--color-secondary); }
.chap--3 .chtab { --tab: var(--color-accent); }
.chap--4 .chtab { --tab: var(--color-primary-light); border-top-color: var(--color-primary); }
.chtab:hover, .chap.is-open .chtab, .chap.is-current .chtab { background: var(--tab); }
.chap.is-open .chtab i { transform: rotate(180deg); }

.chpanel {
  --tab: var(--color-surface);
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: var(--tab);
  padding: 2.6rem var(--pad-x) 2.8rem clamp(8rem, 16vw, 15rem);
  border-bottom: 3px solid var(--color-primary);
  z-index: 5;
  min-height: 15rem;
}
.chap--2 .chpanel { --tab: var(--color-secondary); }
.chap--3 .chpanel { --tab: var(--color-accent); }
.chap--4 .chpanel { --tab: var(--color-primary-light); }
.chap.is-open .chpanel { display: block; }
html:not(.js) .chap:hover .chpanel,
html:not(.js) .chap:focus-within .chpanel { display: block; }

.chpanel__n {
  position: absolute;
  left: -0.12em;
  top: 50%;
  transform: translateY(-50%);
  font: 900 9rem/0.8 var(--font-primary);
  font-stretch: 125%;
  color: var(--color-primary);
  pointer-events: none;
}
.chpanel__title { font: 500 0.8125rem/1 var(--font-mono); color: var(--color-text); margin-bottom: 1.1rem; }
.chpanel ul { display: grid; grid-template-columns: repeat(2, minmax(0, 22rem)); gap: 0.35rem 3rem; }
.chpanel a {
  display: inline-flex;
  gap: 0.6rem;
  align-items: baseline;
  padding: 0.35rem 0;
  font: 600 1.0625rem/1.35 var(--font-primary);
  font-stretch: 108%;
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.chpanel a:hover, .chpanel a[aria-current="page"] { border-bottom-color: var(--color-text); }
.chpanel a span { font-family: var(--font-mono); font-weight: 500; }

.mast__cta { flex: none; align-self: center; }
.mast__mobile { display: none; }

/* Mobile drawer (details/summary — works without JS) */
.drawer { display: none; }
.drawer > summary { list-style: none; }
.drawer > summary::-webkit-details-marker { display: none; }

@media (max-width: 1219px) {
  .mast__utility { display: none; }
  .mast.is-condensed { transform: none; }
  .mast__main { height: 76px; gap: 0.6rem; }
  .mast__brand img { height: 60px; max-width: 214px; }
  .mast__tabs, .mast__cta { display: none; }
  .mast__mobile { display: flex; margin-left: auto; align-items: center; gap: 0.35rem; }
  .mast__phone {
    width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
    color: var(--color-primary); font-size: 1.4rem; text-decoration: none;
  }
  .drawer { display: block; }
  .drawer > summary {
    height: 44px; display: inline-flex; align-items: center; gap: 0.4rem; padding: 0 0.8rem;
    border: 1.5px solid var(--color-text); cursor: pointer;
    font: 600 1rem/1 var(--font-primary); font-stretch: 108%;
  }
  .drawer > summary i { font-size: 1.2rem; }
  .drawer[open] > summary { background: var(--color-text); color: var(--white); }
  .drawer__panel {
    position: absolute; left: 0; right: 0; top: 100%;
    max-height: calc(100vh - 76px); overflow-y: auto;
    background: var(--color-bg); border-bottom: 3px solid var(--color-primary);
    z-index: 5;
  }
  .dchap { display: grid; grid-template-columns: 56px minmax(0, 1fr); background: var(--tab); }
  .dchap--1 { --tab: var(--color-surface); }
  .dchap--2 { --tab: var(--color-secondary); }
  .dchap--3 { --tab: var(--color-accent); }
  .dchap--4 { --tab: var(--color-primary-light); }
  .dchap__spine {
    background: var(--color-primary); color: var(--white);
    font: 900 1.9rem/1 var(--font-primary); font-stretch: 125%;
    display: flex; justify-content: center; padding-top: 1rem;
  }
  .dchap__body { padding: 0.9rem 1.1rem 1.1rem; }
  .dchap__title { font: 500 0.8125rem/1.2 var(--font-mono); margin-bottom: 0.3rem; }
  .dchap a {
    display: block; padding: 0.42rem 0; font: 600 1.25rem/1.3 var(--font-primary); font-stretch: 104%;
    color: var(--color-text); text-decoration: none;
  }
  .dchap a[aria-current="page"] { text-decoration: underline; }
  .drawer__util { padding: 1rem 1.1rem 1.4rem; display: grid; gap: 0.7rem; }
  .drawer__util a.u { font-size: 1.05rem; color: var(--color-text); }
  .drawer__util .btn-book { justify-content: center; }
}
@media (max-width: 439px) {
  .mast__main { padding: 0 12px; }
  .mast__mobile { gap: 0.15rem; }
  .drawer > summary { padding: 0 0.6rem; }
  .drawer > summary .drawer__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
@media (max-width: 374px) {
  .mast__brand img { height: 56px; max-width: 196px; }
}

/* ============================================================
   Thumb-tab rail — motion signature "the-tab-pulls"
   ============================================================ */
.tabrail {
  position: fixed;
  right: 0;
  top: 22vh;
  max-height: 44vh;
  display: none;
  flex-direction: column;
  gap: 6px;
  z-index: 90;
}
@media (min-width: 1180px) { .tabrail { display: flex; } }
.tabrail a {
  display: block;
  width: 28px;                       /* the 28px purple lip of a 132px tab */
  height: 30px;
  background: var(--color-bg);
  border-left: 4px solid var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-border);
  font: 600 0.8125rem/30px var(--font-primary);
  font-stretch: 104%;
  padding-left: 0.6rem;
  color: transparent;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;                  /* a tab, not a text container: the label rides out with it */
  transition: width var(--motion-duration) var(--motion-ease), background var(--motion-duration) var(--motion-ease), color var(--motion-duration) var(--motion-ease);
}
.tabrail a.is-pulled { width: 52px; background: var(--pull, var(--color-surface)); }
.tabrail a:hover, .tabrail a:focus-visible { width: 132px; color: var(--color-text); }
@media (prefers-reduced-motion: reduce) {
  .tabrail a { transition: none; }
  .tabrail a.is-pulled { width: 28px; }
}

/* ============================================================
   Grounds
   ============================================================ */
.g-light { background: var(--color-bg); }
.g-blue  { background: var(--color-surface); }
.g-green { background: var(--color-secondary); }
.g-orange{ background: var(--color-accent); }
.g-lilac { background: var(--color-primary-light); }
.g-white { background: var(--white); }
.g-green h2, .g-orange h2 { color: var(--color-text); }

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 var(--pad-x); }
.sec { padding: var(--pad-y) 0; position: relative; }

/* ============================================================
   Panel fold — hero grammar custom:hero-quickstudy-panel-fold
   ============================================================ */
.fold {
  --fold-pad: clamp(1.5rem, 5vw, 5rem);
  --fold-field: var(--color-surface);
  display: grid;
  grid-template-columns: 58fr 42fr;
  min-height: min(88vh, 860px);
  position: relative;
}
.fold--interior { grid-template-columns: var(--fold-cols, 60fr 40fr); min-height: 62vh; }
.fold--book { grid-template-columns: 62fr 38fr; min-height: 62vh; }
.fold--green { --fold-field: var(--color-secondary); }
.fold--orange { --fold-field: var(--color-accent); }
.fold--paper { --fold-field: var(--color-bg); }

.fold__field {
  position: relative;
  min-width: 0;
  background: var(--fold-field);
  padding: var(--fold-pad);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.4rem;
  z-index: 2;
}
.fold h1 {
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  line-height: 0.98;
  color: var(--color-primary);
  max-width: 15ch;
}
.fold--green h1, .fold--orange h1 { color: var(--color-text); }
.fold__lead { font-size: 1.3rem; line-height: 1.5; max-width: 34ch; color: var(--color-text); }
.fold__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin-top: 0.4rem; }

/* the seam numeral — half on the field, half on the photo */
.fold__num {
  position: absolute;
  right: 0;
  top: 70%;
  transform: translate(50%, -50%);
  font: 900 8vw/0.8 var(--font-primary);
  font-stretch: 125%;
  color: var(--color-primary);
  pointer-events: none;
  z-index: 4;
}
.fold--home .fold__num { font-size: 9vw; }
.fold--photo-left .fold__num { right: auto; left: 0; transform: translate(-50%, -50%); }

.fold__photo {
  position: relative;
  margin: 0;
  min-width: 0;
  overflow: hidden; /* image container only — holds no text */
  background: var(--white);
  z-index: 1;
}
.fold__photo > img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.fold__photo--contain { display: grid; place-items: center; padding: clamp(1.5rem, 4vw, 3.5rem); }
.fold__photo--contain > img { width: auto; height: auto; max-height: 100%; object-fit: contain; }
.fold__photo--screen > img { border: 12px solid var(--white); box-shadow: 0 0 0 1px var(--color-border), 0 30px 50px -30px rgba(42,24,56,.45); }
.fold__photo--screen { background: var(--color-primary-light); }
.fold__photo--paper { background: var(--color-bg); }

/* home: the artifact strip under the blue panel */
.fold--home { grid-template-rows: 1fr 132px; }
.fold--home .fold__field { grid-row: 1; grid-column: 1; }
.fold--home .fold__photo { grid-row: 1 / span 2; grid-column: 2; }
.fold__strip {
  grid-row: 2; grid-column: 1;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: flex-end;
  gap: 1.5rem;
  padding: 0 var(--fold-pad) 14px;
  position: relative;
  z-index: 3;
}
.fold__strip .cover { margin-top: -78px; }
.fold__strip p { font: 500 0.8125rem/1.45 var(--font-mono); color: var(--color-text-secondary); max-width: 30ch; align-self: center; }
.fold__why {
  display: block;
  font-weight: 900;
  font-size: clamp(3.4rem, 9.4vw, 9rem);
  line-height: 0.86;
  text-align: right;
  margin-right: calc(-1 * var(--fold-pad));
  margin-top: 0.08em;
}
.fold--home h1 { max-width: none; font-size: clamp(2.3rem, 4.2vw, 3.9rem); }
.fold--home h1 .l { display: block; }

/* upright objects with a contact shadow */
.cover {
  position: relative;
  flex: none;
  transform: rotate(-6deg);
  filter: drop-shadow(0 10px 6px rgba(42,24,56,.28));
  transition: transform var(--motion-duration-slow) var(--motion-ease);
}
.cover + .cover { transform: rotate(6deg); }
.cover img { width: 118px; height: auto; }
.cover:hover { transform: rotate(-6deg) scale(1.04); }
.cover + .cover:hover { transform: rotate(6deg) scale(1.04); }

/* chapter-4 paper fold: a purple tab band down the seam */
.fold--ch4 .fold__field { box-shadow: inset -12px 0 0 var(--color-primary); padding-right: calc(var(--fold-pad) + 12px); }
.fold--ch4 .fold__num { right: 6px; }

/* book fold: paper panel with a purple shelf bar at 70% height */
.shelfpanel {
  position: relative;
  background: var(--color-bg);
  min-width: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1.5rem;
  padding: 2.5rem 1.5rem 0;
  z-index: 1;
}
.shelfpanel::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 70%;
  height: 32px;
  background: var(--color-primary);
  z-index: 0;
}
.shelfpanel__row {
  position: absolute;
  left: 0; right: 0;
  bottom: 30%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(1rem, 3vw, 2.5rem);
  z-index: 1;
  padding: 0 1rem;
}
.shelfpanel .artifact { filter: drop-shadow(0 12px 7px rgba(42,24,56,.3)); transition: transform var(--motion-duration-slow) var(--motion-ease); }
.shelfpanel .artifact:hover { transform: scale(1.04); }
.shelfpanel .artifact img { width: auto; }
.artifact--cover img { width: 150px; }
.artifact--plate { background: var(--color-surface); padding: 10px; }
.artifact--plate img { width: 200px; }
.artifact--card { transform: rotate(3deg); }
.artifact--card:hover { transform: rotate(3deg) scale(1.04); }
.artifact--card img { width: min(300px, 70vw); }

/* team mosaic panel (what we're up to) */
.mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--color-bg); }
.mosaic figure { margin: 0; display: grid; place-items: center; align-content: center; gap: 0.6rem; padding: 1.4rem 1rem; }
.mosaic img { width: 120px; height: 120px; object-fit: cover; object-position: 50% 28%; }
.mosaic figcaption { font: 500 0.8125rem/1.3 var(--font-mono); text-align: center; color: var(--color-text); }

/* ============================================================
   HOW/WHY pair — the signature
   ============================================================ */
.pair { display: grid; grid-template-columns: 1fr 1fr; min-height: 64vh; }
.pair--photo-right .pair__photo { order: 2; }
.pair__photo { position: relative; overflow: hidden; margin: 0; background: var(--white); min-width: 0; }
.pair__photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%;
  transition: transform var(--motion-duration-slow) var(--motion-ease);
}
.pair__photo--contain img { object-fit: contain; padding: clamp(1rem, 3vw, 2.5rem); }
.pair__photo--screen { background: var(--color-primary-light); }
.pair__photo--screen img { object-fit: contain; padding: clamp(1.5rem, 4vw, 3.5rem); }
.pair__photo:hover img { transform: scale(1.04); }
.pair__how {
  position: absolute; left: 1rem; bottom: 1rem; right: 1rem;
  display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: baseline;
  z-index: 2; pointer-events: none;
}
.pair__how span {
  background: var(--white);
  font: 500 0.8125rem/1.35 var(--font-mono);
  padding: 0.38rem 0.6rem;
  color: var(--color-text);
  box-shadow: 0 0 0 1px var(--color-border);
}
.pair__how .k { background: var(--color-text); color: var(--white); box-shadow: none; }
.pair__field {
  --pair-field: var(--color-surface);
  background: var(--pair-field);
  padding: clamp(2rem, 5vw, 5rem);
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.pair--green .pair__field { --pair-field: var(--color-secondary); }
.pair--orange .pair__field { --pair-field: var(--color-accent); }
.pair__why {
  font: 900 clamp(4rem, 11vw, 10.5rem)/0.82 var(--font-primary);
  font-stretch: 125%;
  color: var(--color-primary);
  letter-spacing: -0.02em;
  margin: 0;
}
.pair--green .pair__why, .pair--orange .pair__why { color: var(--color-text); }
.pair__reason {
  font: 800 clamp(1.5rem, 2.3vw, 2rem)/1.15 var(--font-primary);
  font-stretch: 112%;
  color: var(--color-text);
  max-width: 22ch;
}
.pair__cite { font: 500 0.875rem/1.5 var(--font-mono); color: var(--color-text); max-width: 46ch; }
.pair__cite a { color: var(--color-text); }
@media (prefers-reduced-motion: reduce) { .pair__photo:hover img { transform: none; } }

/* ============================================================
   Home §2 — recognition exhibit (museum label)
   ============================================================ */
.exhibit { padding: clamp(3.5rem, 7vw, 6rem) 0 0; }
.exhibit__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 clamp(1rem, 2.5vw, 2.5rem); }
.exhibit__frame {
  grid-column: 1 / span 8;
  margin: 4rem 0 -4rem;
  position: relative;
  z-index: 3;
}
.exhibit__frame .mat { border: 1px solid var(--color-primary); padding: 0.6rem; background: var(--color-bg); }
.exhibit__frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 40%; }
.label-plate {
  background: var(--white);
  border: 1px solid var(--color-border);
  border-top: 0;
  padding: 1rem 1.2rem 1.1rem;
  display: grid;
  gap: 0.35rem;
  max-width: 34rem;
  margin-left: auto;
}
.label-plate__issuer { font: 700 0.75rem/1 var(--font-secondary); letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-text-secondary); }
.label-plate__title { font: 700 1.35rem/1.1 var(--font-primary); font-stretch: 112%; color: var(--color-text); }
.label-plate__note { font: 500 0.8125rem/1.45 var(--font-mono); color: var(--color-text-secondary); }
.exhibit__text { grid-column: 9 / span 4; align-self: start; padding-top: 0.2rem; display: grid; gap: 1.2rem; }
.exhibit__text h2 { font-size: clamp(1.8rem, 2.8vw, 2.5rem); }

/* ============================================================
   Home §3 — service ledger with faces
   ============================================================ */
.ledger-sec { padding-top: calc(var(--pad-y) + 4rem); }
.ledger-sec h2 { margin-bottom: 2.2rem; max-width: 16ch; }
.ledger { border-top: 2px solid var(--color-text); }
.ledger__row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr);
  gap: clamp(1.2rem, 4vw, 4rem);
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--color-border);
  transition: border-color var(--motion-duration) var(--motion-ease);
}
.ledger__row:hover { border-bottom-color: var(--color-primary); }
.ledger__who { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.4rem 1.2rem; align-items: end; }
.ledger__verb {
  grid-column: 1 / -1;
  font: 800 clamp(1.8rem, 3vw, 2.6rem)/1 var(--font-primary);
  font-stretch: 118%;
  color: var(--color-primary);
}
.ledger__verb a { color: inherit; text-decoration: none; }
.ledger__verb a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.tile { width: 140px; height: 140px; padding: 10px; background: var(--tile, var(--color-surface)); overflow: hidden; }
.tile img { width: 120px; height: 120px; object-fit: cover; object-position: 50% 30%; transition: transform var(--motion-duration-slow) var(--motion-ease); }
.ledger__row:hover .tile img { transform: scale(1.05); }
.tile--blue { --tile: var(--color-surface); }
.tile--green { --tile: var(--color-secondary); }
.tile--orange { --tile: var(--color-accent); }
.tile--lilac { --tile: var(--color-primary-light); }
.ledger__name { font: 500 0.8125rem/1.4 var(--font-mono); color: var(--color-text-secondary); }
.ledger__name b { display: block; color: var(--color-text); font-weight: 500; }
.ledger__what { display: grid; gap: 0.7rem; align-content: center; }
.ledger__what p { font-size: 1.05rem; }
.ledger__leave { font-size: 1rem; }
.ledger__leave b { color: var(--color-primary); }
.ledger__go { font: 500 0.8125rem/1 var(--font-mono); color: var(--color-text-secondary); }
.ledger__free {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  background: var(--color-accent);
  padding: 1.25rem clamp(1rem, 3vw, 2rem);
  margin-top: 1.4rem;
  color: var(--color-text);
  text-decoration: none;
  font: 600 1.2rem/1.3 var(--font-primary);
  font-stretch: 108%;
}
.ledger__free b { font-weight: 800; }
.ledger__free:hover { color: var(--color-text); background: #f39c3c; text-decoration: none; }
.ledger__free i { font-size: 1.6rem; }

/* ============================================================
   Home §4 — what a Zoho partner is + credential card
   ============================================================ */
.partner { display: grid; grid-template-columns: 45fr 55fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.partner__def { display: grid; gap: 1.2rem; min-width: 0; }
.partner__def p { color: var(--color-text); }
.roles { display: grid; gap: 0; margin-top: 0.6rem; border-top: 2px solid var(--color-text); }
.roles div { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 1rem; padding: 0.8rem 0; border-bottom: 1px solid rgba(42,24,56,.35); }
.roles dt { font: 500 0.8125rem/1.5 var(--font-mono); color: var(--color-text); }
.roles dd { font: 600 1.05rem/1.4 var(--font-primary); font-stretch: 106%; color: var(--color-text); }

.credcard { background: var(--white); padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--color-border); min-width: 0; position: relative; }
.credcard__badges { width: 100%; max-width: 626px; height: auto; }
.credcard ol { margin: 1.4rem 0 0; padding: 0; display: grid; gap: 0.6rem; max-width: min(30rem, calc(100% - 11.5rem)); }
.credcard li {
  position: relative;
  padding: 1rem 1.25rem;
  border: 1.5px solid var(--color-text);
  font: 700 1.15rem/1.15 var(--font-primary);
  font-stretch: 112%;
  color: var(--color-text);
}
.credcard li.is-held { background: var(--color-accent); border-color: var(--color-accent); }
.credcard__notch {
  position: absolute; left: 100%; top: 50%; transform: translateY(-50%);
  background: var(--color-primary); color: var(--white);
  font: 500 0.8125rem/1.3 var(--font-mono);
  padding: 0.5rem 0.8rem; white-space: nowrap;
}
.credcard__founder { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.3rem; align-items: center; margin-bottom: 1.5rem; }
.founder__disc { width: 220px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 6px var(--color-accent); }
.founder__disc img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.founder__name { font: 700 1.2rem/1.3 var(--font-primary); font-stretch: 110%; color: var(--color-text); }
.founder__name span { display: block; font: 500 0.8125rem/1.5 var(--font-mono); color: var(--color-text-secondary); margin-top: 0.3rem; }

/* ============================================================
   Home §5 / book pages — the shelf on the reference card (texture)
   ============================================================ */
.texture {
  position: relative;
  background:
    linear-gradient(rgba(251,250,246,.9), rgba(251,250,246,.9)),
    url("/images/brand-18.webp?v=3b419404") center 20% / cover;
}
.shelf-sec { padding: var(--pad-y) 0 0; }
.shelf-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  grid-template-rows: auto auto auto;
  column-gap: clamp(2rem, 4vw, 4rem);
}
.shelf-grid__head { grid-column: 1; grid-row: 1; padding-left: var(--pad-x); display: grid; gap: 1.6rem; align-content: end; }
.shelf-grid__head h2 { max-width: 12ch; }
.shelf-covers { display: flex; gap: 1.2rem; align-items: flex-end; padding-left: 0.5rem; }
.shelf-covers .cover img { width: 132px; }
.shelf-covers .cover { transform: rotate(-3deg); }
.shelf-covers .cover + .cover { transform: rotate(4deg); }
.shelf-bar {
  grid-column: 1 / -1; grid-row: 2;
  background: var(--color-primary);
  color: var(--white);
  display: flex; align-items: center;
  padding: 0 var(--pad-x);
  font: 400 0.9375rem/1.25 var(--font-secondary);
  z-index: 1;
}
.shelf-bar { min-height: 48px; padding-top: 0.55rem; padding-bottom: 0.55rem; }
.shelf-bar p { max-width: min(26rem, calc((100% - 4rem) / 3)); min-width: 15rem; font-size: 0.875rem; line-height: 1.35; }
.shelf-grid__foot { grid-column: 1; grid-row: 3; padding: 1.2rem 0 var(--pad-y) var(--pad-x); display: flex; flex-wrap: wrap; gap: 0.8rem 1.6rem; }
.plates {
  grid-column: 2; grid-row: 1 / span 3;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding-right: var(--pad-x);
  padding-bottom: var(--pad-y);
  z-index: 2;
}
.plates__stack { display: grid; gap: 1rem; }
.plate { background: var(--white); border-top: 2px solid var(--color-accent); padding: 1.2rem 1.25rem 1.4rem; display: grid; gap: 0.7rem; align-content: start; box-shadow: 0 0 0 1px var(--color-border); }
.plate h3 { font-size: 1.3rem; color: var(--color-text); font-stretch: 112%; }
.plate p { font-size: 0.98rem; }
.plate ul { display: grid; gap: 0.45rem; }
.plate li a { font-weight: 700; font-size: 0.98rem; }
.plate--tall { min-height: 17rem; }
.plate--mid { min-height: 11rem; }
.plate .mono { font-size: 0.8125rem; color: var(--color-text-secondary); }

/* ============================================================
   Tear-off cards (Zoho Forms iframes + link cards)
   ============================================================ */
.tearoff {
  --edge: var(--color-primary);
  background: var(--white);
  border: 1px solid var(--color-border);
  border-top: 6px solid var(--edge);
  border-radius: 0;
  padding: 0.75rem;
  min-width: 0;
}
.tearoff iframe { width: 100%; min-height: 600px; }
.tearoff--short iframe { min-height: 540px; }
.tearoff--tall iframe { min-height: 720px; }
.edge-blue { --edge: var(--color-surface); }
.edge-green { --edge: var(--color-secondary); }
.edge-orange { --edge: var(--color-accent); }
.edge-purple { --edge: var(--color-primary); }
.tearoff__label { font: 500 0.8125rem/1.3 var(--font-mono); color: var(--color-text); padding: 0.3rem 0.25rem 0.7rem; }
.zf-caption { font: 500 0.8125rem/1.4 var(--font-mono); color: var(--color-text); margin-top: 0.6rem; display: flex; gap: 0.4rem; align-items: center; }
.zf-caption i { color: var(--color-primary); font-size: 1rem; }

.linkcard {
  display: grid; gap: 0.4rem;
  padding: 1.4rem 1.4rem 1.5rem;
  text-decoration: none;
  color: var(--color-text);
  transition: background var(--motion-duration) var(--motion-ease);
}
.linkcard:hover { background: var(--color-primary-light); color: var(--color-text); text-decoration: none; }
.linkcard__k { font: 500 0.8125rem/1 var(--font-mono); color: var(--color-text-secondary); }
.linkcard__t { font: 800 1.45rem/1.15 var(--font-primary); font-stretch: 112%; color: var(--color-primary); }
.linkcard + .linkcard { border-top: 1px solid var(--color-border); }

/* A4 — form card / next step, signed by a person */
.formsec { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.formsec__who { display: grid; gap: 1.4rem; align-content: start; min-width: 0; }
.signer { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; align-items: end; }
.signer .tile { width: 140px; height: 140px; }
.signer__name { font: 500 0.8125rem/1.5 var(--font-mono); color: var(--color-text-secondary); }
.signer__name b { display: block; font-weight: 500; color: var(--color-text); font-size: 0.9rem; }
.formsec__cards { display: grid; gap: 1.5rem; min-width: 0; }
.formsec__cards--two { grid-template-columns: 1fr 1fr; }
.reseller { display: grid; gap: 0.5rem; margin-top: 0.4rem; }
.reseller li { display: flex; }
.reseller-note { font: 500 0.8125rem/1.5 var(--font-mono); color: var(--color-text-secondary); }

/* ============================================================
   Home §6 — case panels (seamless run of chapter fields)
   ============================================================ */
.cases-head { text-align: center; padding: 3rem var(--pad-x) 1.4rem; font-size: 0.9375rem; color: var(--color-text-secondary); }
.casewall { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.casewall__panel {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--panel);
  padding: clamp(1.25rem, 2.5vw, 2.25rem);
  display: flex; flex-direction: column; gap: 1rem;
  color: var(--color-text);
  min-width: 0;
}
.casewall__panel:nth-child(1) { --panel: var(--color-accent); }
.casewall__panel:nth-child(2) { --panel: var(--color-surface); }
.casewall__panel:nth-child(3) { --panel: var(--color-secondary); }
.casewall__panel:nth-child(4) { --panel: var(--color-primary-light); }
.casewall__mark {
  align-self: flex-start;
  background: var(--white);
  padding: 0.6rem 0.8rem;
  height: 60px;
  display: flex; align-items: center;
  max-width: 70%;
  transition: transform var(--motion-duration) var(--motion-ease);
}
.casewall__mark img { height: 40px; width: auto; max-width: 100%; object-fit: contain; }
.casewall__mark--type { font: 700 1.3rem/1 var(--font-primary); font-stretch: 112%; }
.casewall__panel h3 { font-size: 1.15rem; color: var(--color-text); font-stretch: 108%; }
.casewall__panel p { font-size: 1rem; line-height: 1.55; }
.casewall__link {
  margin-top: auto; align-self: flex-start;
  border: 1.5px solid var(--color-text);
  padding: 0.6rem 0.9rem;
  font: 600 0.95rem/1 var(--font-primary); font-stretch: 108%;
  color: var(--color-text); text-decoration: none;
  transition: background var(--motion-duration) var(--motion-ease), color var(--motion-duration) var(--motion-ease);
}
.casewall__link::before { content: ""; position: absolute; inset: 0; }
.casewall__panel:hover .casewall__link { background: var(--color-text); color: var(--white); }
.casewall__panel:hover .casewall__mark { transform: translateY(-4px); }
.cases-foot { text-align: center; padding: 1.6rem var(--pad-x) 3rem; }

/* ============================================================
   Home §7 — five-fold process strip
   ============================================================ */
.process__head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2rem; align-items: end; margin-bottom: 2.6rem; }
.process__head blockquote { font: 700 clamp(1.3rem, 2vw, 1.7rem)/1.2 var(--font-primary); font-stretch: 112%; color: var(--color-text); border-left: 6px solid var(--color-accent); padding-left: 1.1rem; }
.process__head cite { display: block; font: 500 0.8125rem/1.5 var(--font-mono); font-style: normal; color: var(--color-text-secondary); margin-top: 0.5rem; }
.fold-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--color-border); border-top: 0; }
.fold-strip li { display: grid; grid-template-rows: 56px auto; min-width: 0; }
.fold-strip li + li { border-left: 1px solid var(--color-border); }
.fold-strip__tab { background: var(--tab); display: flex; align-items: center; padding: 0 1.1rem; font: 500 1rem/1 var(--font-mono); color: var(--color-text); }
.fold-strip li:nth-child(1) { --tab: var(--color-surface); }
.fold-strip li:nth-child(2) { --tab: var(--color-secondary); }
.fold-strip li:nth-child(3) { --tab: var(--color-accent); }
.fold-strip li:nth-child(4) { --tab: var(--color-primary-light); }
.fold-strip li:nth-child(5) { --tab: var(--color-surface); }
.fold-strip__body { padding: 1.3rem 1.1rem 1.6rem; display: grid; gap: 0.7rem; align-content: start; background: var(--color-bg); }
.fold-strip__body h3 { font-size: 1.3rem; color: var(--color-text); }
.fold-strip__body p { font-size: 0.95rem; line-height: 1.6; }

/* ============================================================
   Sitewide close — "Ask us why" (green field, card straddles the seam)
   ============================================================ */
.ask {
  background: var(--color-secondary);
  position: relative;
  z-index: 2;
}
.ask__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 5rem);
  padding-top: clamp(3rem, 7vw, 6rem);
}
.ask__copy { display: grid; gap: 1.2rem; align-content: start; padding-bottom: clamp(3rem, 6vw, 5rem); }
.ask h2 { font-weight: 900; font-stretch: 125%; font-size: clamp(2.6rem, 6vw, 4.5rem); color: var(--color-text); line-height: 0.92; }
.ask p { color: var(--color-text); }
.ask__facts { display: grid; gap: 0.35rem; font: 500 0.95rem/1.5 var(--font-mono); color: var(--color-text); }
.ask__facts a { color: var(--color-primary-dark); font-weight: 500; }
.ask__ziggy { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; align-items: center; margin-top: 0.6rem; }
.ziggy-plate { width: 150px; height: 150px; background: var(--white); display: grid; place-items: center; padding: 8px; }
.ziggy-plate img { width: auto; height: 134px; }
.ask__ziggy p { font: 500 0.8125rem/1.5 var(--font-mono); max-width: 22ch; }
.ask__card { margin: 4rem 0 -6rem; position: relative; z-index: 3; align-self: start; }
.ask__card .tearoff iframe { min-height: 640px; }

/* ============================================================
   Footer — mono contact directory on paper
   ============================================================ */
.site-footer { background: var(--color-bg); padding-top: 7rem; position: relative; z-index: 1; }
.foot { display: grid; grid-template-columns: 1.3fr 1.2fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.foot__brand img { height: 64px; width: auto; max-width: 224px; }
.foot__brand p { font: 500 0.875rem/1.5 var(--font-mono); color: var(--color-text-secondary); margin-top: 0.9rem; max-width: 26ch; }
.foot__brand p b { color: var(--color-text); font-weight: 500; display: block; }
.foot h2 {
  font: 700 0.8125rem/1 var(--font-secondary);
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
  font-stretch: 100%;
}
.foot address { font: 500 0.9375rem/1.6 var(--font-mono); font-style: normal; color: var(--color-text); }
.foot address a { color: var(--color-text); }
.foot ul { display: grid; gap: 0.5rem; }
.foot li a { font-size: 0.9375rem; color: var(--color-text); text-decoration: none; display: inline-flex; align-items: center; gap: 0.6rem; }
.foot li a:hover { text-decoration: underline; color: var(--color-primary); }
.sq { width: 8px; height: 8px; background: var(--sq); flex: none; }
.sq--1 { --sq: var(--color-surface); } .sq--2 { --sq: var(--color-secondary); } .sq--3 { --sq: var(--color-accent); } .sq--4 { --sq: var(--color-primary); }
.social { display: flex; gap: 0.9rem; margin-top: 1.1rem; }
.social a { color: var(--color-primary); font-size: 28px; line-height: 1; display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; text-decoration: none; }
.social a:hover { color: var(--color-primary-dark); }
.foot__base { max-width: none; border-top: 3px solid var(--color-primary); padding: 1rem 0 1.4rem; font: 500 0.8125rem/1.5 var(--font-mono); color: var(--color-text-secondary); }

/* ============================================================
   Answer pages — the How/Why marginal rubric
   ============================================================ */
.rubric__body {
  display: grid;
  grid-template-columns: 9rem minmax(0, 64ch) minmax(0, 320px);
  column-gap: 0;
  max-width: calc(9rem + 64ch + 320px + 3rem);
  background: linear-gradient(90deg, var(--color-primary-light) 9rem, transparent 9rem);
}
.r { grid-column: 1 / span 2; display: grid; grid-template-columns: 9rem minmax(0, 1fr); }
.r__k { padding: 0.3rem 1rem 0 1.2rem; }
.r__c { padding: 0 0 1.35rem 2.2rem; min-width: 0; }
.r__c > * + * { margin-top: 0.9rem; }
.r--first .r__c { padding-top: 2.6rem; }
.r--first .r__k { padding-top: 2.9rem; }
.r--last .r__c { padding-bottom: 3rem; }
.r h2 { font-size: clamp(1.6rem, 2.6vw, 2.15rem); color: var(--color-primary); margin-top: 1.2rem; }
.r h3 { color: var(--color-text); margin-top: 0.6rem; }
.r ul.bul { display: grid; gap: 0.6rem; }
.r ul.bul li { position: relative; padding-left: 1.6rem; }
.r ul.bul li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 9px; height: 9px; background: var(--color-accent); }
.r ol.toc { counter-reset: toc; display: grid; border-top: 2px solid var(--color-text); }
.r ol.toc li { display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto; gap: 0.8rem; padding: 0.65rem 0; border-bottom: 1px solid var(--color-border); align-items: baseline; }
.r ol.toc .n { font: 500 0.875rem/1 var(--font-mono); color: var(--color-primary); }
.r ol.toc .t { font: 600 1.05rem/1.35 var(--font-primary); font-stretch: 106%; }
.r ol.toc .p { font: 500 0.8125rem/1 var(--font-mono); color: var(--color-text-secondary); }
.r--pull { grid-column: 1 / -1; }
.r--pull .r__c { padding-right: 0; }
.pull {
  font: 700 clamp(1.4rem, 2.4vw, 1.7rem)/1.25 var(--font-primary);
  font-stretch: 112%;
  color: var(--color-primary);
  max-width: 34ch;
  border-top: 2px solid var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  padding: 1rem 0;
  margin: 0.6rem 0 0.4rem;
}
.rubric__fig { grid-column: 3; grid-row: 1 / span 4; margin: 2.6rem 0 2rem 3rem; align-self: start; position: sticky; top: 120px; display: grid; gap: 0.6rem; }
.rubric__fig img { width: auto; max-width: 100%; }
.rubric__fig--screen img { border: 1px solid var(--color-border); background: var(--white); padding: 6px; }
.rubric__fig--tile { background: var(--tile); padding: 12px; justify-self: start; }
.rubric__fig figcaption { font: 500 0.8125rem/1.45 var(--font-mono); color: var(--color-text-secondary); }
.rubric__fig--tile figcaption { color: var(--color-text); }

.costs { display: grid; gap: 0; border-top: 2px solid var(--color-text); }
.costs li { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 1rem; padding: 0.9rem 0; border-bottom: 1px solid var(--color-border); }
.costs b { font: 700 1.05rem/1.3 var(--font-primary); font-stretch: 108%; color: var(--color-text); }
.costs .amt { display: block; font: 500 0.875rem/1.4 var(--font-mono); color: var(--color-primary); margin-top: 0.2rem; }

.pdf-link { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 700; }

/* ============================================================
   /expert-zoho-help/ — displacement matrix
   ============================================================ */
.matrix-sec h2 { font: 600 1.1rem/1.3 var(--font-primary); font-stretch: 108%; color: var(--color-text); margin-bottom: 1.4rem; }
.matrix-wrap { background: var(--white); max-width: 1100px; overflow-x: auto; position: relative; border: 1px solid var(--color-border); }
.matrix { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 0.98rem; }
.matrix caption { text-align: left; padding: 1.2rem 1.4rem 0.4rem; font: 500 0.8125rem/1.4 var(--font-mono); color: var(--color-text-secondary); caption-side: top; }
.matrix th, .matrix td { padding: 1rem 1.2rem; border-bottom: 1px solid var(--color-border); text-align: left; vertical-align: top; }
.matrix thead th { font: 700 1rem/1.25 var(--font-primary); font-stretch: 108%; color: var(--color-text); vertical-align: bottom; }
.matrix tbody th { font: 600 1rem/1.35 var(--font-secondary); color: var(--color-text); width: 26%; }
.matrix .us { background: color-mix(in srgb, var(--color-accent) 12%, #fff); box-shadow: inset 2px 0 0 var(--color-primary), inset -2px 0 0 var(--color-primary); }
.matrix thead .us { position: relative; }
.matrix thead .us img { height: 40px; width: auto; max-width: 150px; }
.matrix td i { font-size: 1.3rem; vertical-align: -0.2em; margin-right: 0.35rem; }
.matrix .yes i { color: var(--color-primary); }
.matrix .no i { color: var(--color-text-secondary); }
.matrix .win { font-weight: 700; }
.matrix .us:first-of-type { position: sticky; left: 0; }

/* ============================================================
   /zoho-bundles-apps/ — app shelf + bundle ledger
   ============================================================ */
.appshelf h2 { max-width: 20ch; margin-bottom: 2rem; color: var(--color-text); }
.appgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); background: var(--color-border); gap: 1px; border: 1px solid var(--color-border); }
.appgrid li { background: var(--white); display: grid; justify-items: center; align-content: center; gap: 0.4rem; padding: 0.8rem 0.3rem 0.7rem; min-height: 96px; }
.appgrid img { width: 44px; height: 44px; object-fit: contain; }
.appgrid span { font: 500 0.6875rem/1.2 var(--font-mono); text-align: center; color: var(--color-text); }

.bundles { border-top: 2px solid var(--color-text); }
.bundle { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 11rem) minmax(0, 1fr); gap: 1.5rem; padding: 1.4rem 0; border-bottom: 1px solid var(--color-border); align-items: start; transition: border-color var(--motion-duration) var(--motion-ease); }
.bundle:hover { border-bottom-color: var(--color-primary); }
.bundle h3 { color: var(--color-text); font-size: 1.35rem; }
.bundle__icons { display: flex; flex-wrap: wrap; gap: 6px; }
.bundle__icons img { width: 32px; height: 32px; }
.bundle p { font-size: 1rem; }
.bundle__note { font: 500 0.8125rem/1.5 var(--font-mono); color: var(--color-text-secondary); margin-top: 0.4rem; }
.reflist { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 0.6rem; margin-top: 1.2rem; }

/* ============================================================
   About — back story exhibit, team wall
   ============================================================ */
.story { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.story .exhibit__frame { grid-column: auto; margin: 0; }
.story__cols { display: grid; gap: 2rem; }
.story__cols article { display: grid; gap: 0.6rem; border-top: 2px solid var(--color-text); padding-top: 1rem; }
.story__cols h3 { font-size: 1.3rem; color: var(--color-text); }
.story__cols p { font-size: 1rem; }
.stamp { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 0.9rem; align-items: center; margin-top: 0.4rem; }
.stamp img { width: 110px; height: 110px; object-fit: cover; border: 1px solid var(--color-primary); padding: 4px; background: var(--white); }
.stamp figcaption { font: 500 0.8125rem/1.45 var(--font-mono); color: var(--color-text-secondary); }

.book-sec { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.mini-shelf { position: relative; display: flex; align-items: flex-end; gap: 1.1rem; padding-bottom: 32px; flex-wrap: wrap; }
.mini-shelf::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 32px; background: var(--color-primary); }
.mini-shelf .cover { margin-bottom: -4px; z-index: 1; }
.mini-shelf .cover img { width: 120px; }
.mini-shelf .plate-photo { z-index: 1; background: var(--color-surface); padding: 8px; }
.mini-shelf .plate-photo img { width: 168px; }
.book-sec__copy { display: grid; gap: 1rem; }
.book-sec__copy h2 { margin-bottom: 0.4rem; }

.founder-band { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.pressquote { display: grid; gap: 1rem; }
.pressquote blockquote p { font: 700 1.6rem/1.25 var(--font-primary); font-stretch: 110%; color: var(--color-text); max-width: 26ch; }
.pressquote figcaption { font: 500 0.875rem/1.5 var(--font-mono); color: var(--color-text); }
.pressquote figcaption a { color: var(--color-text); }

.teamwall__head { margin-bottom: 2rem; }
.teamwall { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.teamwall li { background: var(--tile); display: grid; justify-items: center; align-content: start; gap: 0.7rem; padding: 2rem 1rem 1.8rem; text-align: center; min-width: 0; }
.teamwall li:nth-child(4n+1) { --tile: var(--color-surface); }
.teamwall li:nth-child(4n+2) { --tile: var(--color-secondary); }
.teamwall li:nth-child(4n+3) { --tile: var(--color-accent); }
.teamwall li:nth-child(4n+4) { --tile: var(--color-primary-light); }
.teamwall li:nth-child(5) { --tile: var(--color-primary-light); }
.teamwall li:nth-child(6) { --tile: var(--color-surface); }
.teamwall li:nth-child(7) { --tile: var(--color-secondary); }
.teamwall li:nth-child(8) { --tile: var(--color-accent); }
.teamwall__ph { width: 150px; height: 150px; overflow: hidden; background: var(--white); }
.teamwall__ph img { width: 150px; height: 150px; object-fit: cover; object-position: 50% 28%; transition: transform var(--motion-duration-slow) var(--motion-ease); }
.teamwall li:hover .teamwall__ph img { transform: scale(1.05); }
.teamwall h3 { font: 700 1.1rem/1.2 var(--font-primary); font-stretch: 108%; color: var(--color-text); }
.teamwall p { font: 500 0.8125rem/1.35 var(--font-mono); color: var(--color-text); }

/* ============================================================
   Testimonials — gallery wall, video rail, case index
   ============================================================ */
.slidewall { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--color-border); border: 1px solid var(--color-border); margin-top: 2rem; }
.slidewall figure { margin: 0; background: var(--white); display: grid; grid-template-rows: auto 1fr; overflow: hidden; }
.slidewall .ph { overflow: hidden; }
.slidewall img { width: 100%; aspect-ratio: 9 / 8; object-fit: contain; background: var(--white); transition: transform var(--motion-duration-slow) var(--motion-ease); }
.slidewall figure:hover img { transform: scale(1.03); }
.slidewall figcaption { font: 500 0.8125rem/1.45 var(--font-mono); padding: 0.8rem 0.9rem 1rem; color: var(--color-text); border-top: 1px solid var(--color-border); }

.vidrail { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.vidrail a { display: grid; gap: 0.7rem; text-decoration: none; color: var(--color-text); }
.vidrail .mk { background: var(--white); height: 104px; display: grid; place-items: center; padding: 1rem; transition: transform var(--motion-duration) var(--motion-ease); }
.vidrail .mk img { max-height: 56px; width: auto; max-width: 100%; object-fit: contain; }
.vidrail a:hover .mk { transform: translateY(-4px); }
.vidrail .who { font: 600 1rem/1.3 var(--font-primary); font-stretch: 106%; }
.vidrail .who span { display: block; font: 500 0.8125rem/1.4 var(--font-mono); margin-top: 0.2rem; }

.caseidx { border-top: 2px solid var(--color-text); margin-top: 2rem; }
.caseidx li { position: relative; display: grid; grid-template-columns: 160px minmax(0, 1fr) auto; gap: 1.6rem; align-items: center; padding: 1.2rem 0; border-bottom: 1px solid var(--color-border); transition: border-color var(--motion-duration) var(--motion-ease); }
.caseidx li:hover { border-bottom-color: var(--color-primary); }
.caseidx .mk { height: 56px; display: flex; align-items: center; }
.caseidx .mk img { max-height: 52px; width: auto; max-width: 150px; object-fit: contain; }
.caseidx .mk--type { font: 700 1.05rem/1.1 var(--font-primary); font-stretch: 110%; color: var(--color-text); }
.caseidx h3 { font-size: 1.15rem; color: var(--color-text); font-stretch: 106%; }
.caseidx p { font-size: 0.98rem; margin-top: 0.3rem; }
.caseidx .go { font: 500 0.875rem/1 var(--font-mono); white-space: nowrap; }
.caseidx .go::after { content: ""; position: absolute; inset: 0; }
.pdfs { display: grid; gap: 0.6rem; margin-top: 1.2rem; }
.pdfs a { display: inline-flex; gap: 0.7rem; align-items: center; font-weight: 700; }

/* ============================================================
   Blog index + posts
   ============================================================ */
.postlist { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(2rem, 4vw, 4rem); border-top: 2px solid var(--color-text); }
.postlist li { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 1rem; padding: 1.2rem 0; border-bottom: 1px solid var(--color-border); }
.postlist .th { width: 64px; height: 64px; background: var(--white); border: 1px solid var(--color-border); display: grid; place-items: center; overflow: hidden; }
.postlist .th img { width: 64px; height: 64px; object-fit: contain; }
.postlist .meta { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; font: 500 0.8125rem/1 var(--font-mono); color: var(--color-text-secondary); }
.postlist h3 { font: 700 1.1rem/1.3 var(--font-primary); font-stretch: 104%; margin: 0.4rem 0 0.3rem; }
.postlist h3 a { color: var(--color-text); text-decoration: none; }
.postlist h3 a::after { content: ""; position: absolute; inset: 0; }
.postlist h3 a:hover { text-decoration: underline; }
.postlist p { font-size: 0.95rem; color: var(--color-text-secondary); }
.archive-note { margin-top: 2rem; font: 500 0.875rem/1.6 var(--font-mono); color: var(--color-text-secondary); max-width: 70ch; }

.post-meta { font: 500 0.875rem/1.5 var(--font-mono); color: var(--color-text); }
.post-wrap { max-width: 68ch; margin: 0 auto; padding: var(--pad-y) var(--pad-x); }
.post-body > * + * { margin-top: 1.1rem; }
.post-body h2 { font: 700 clamp(1.4rem, 2.4vw, 1.85rem)/1.15 var(--font-primary); font-stretch: 108%; color: var(--color-primary); margin-top: 2.4rem; }
.post-body h3 { font: 700 1.25rem/1.2 var(--font-primary); color: var(--color-text); margin-top: 1.8rem; }
.post-body p { font-size: 1.05rem; }
.post-body ul { display: grid; gap: 0.55rem; }
.post-body ul li { position: relative; padding-left: 1.5rem; }
.post-body ul li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; background: var(--color-secondary); }
.post-body figure { margin: 2rem 0; }
.post-body figure img { width: auto; max-width: 100%; height: auto; }
.post-body figcaption { font: 500 0.8125rem/1.45 var(--font-mono); color: var(--color-text-secondary); margin-top: 0.5rem; }
.post-body iframe { width: 100%; aspect-ratio: 16 / 9; }

.nextprev { display: grid; grid-template-columns: 1fr 1fr; }
.nextprev a { position: relative; background: var(--np); padding: clamp(2rem, 4vw, 3.5rem); display: grid; gap: 1rem; text-decoration: none; color: var(--color-text); min-height: 22rem; align-content: start; }
.np--blue { --np: var(--color-surface); } .np--green { --np: var(--color-secondary); } .np--orange { --np: var(--color-accent); }
.nextprev .lbl { font: 500 0.875rem/1 var(--font-mono); }
.nextprev .pl { background: var(--white); width: 160px; height: 110px; display: grid; place-items: center; padding: 10px; transition: transform var(--motion-duration) var(--motion-ease); }
.nextprev .pl img { max-height: 90px; width: auto; max-width: 140px; object-fit: contain; }
.nextprev a:hover .pl { transform: translateY(-4px); }
.nextprev h2 { font: 700 clamp(1.2rem, 2vw, 1.55rem)/1.2 var(--font-primary); font-stretch: 106%; color: var(--color-text); max-width: 28ch; }
.nextprev a:last-child { text-align: right; justify-items: end; }

/* ============================================================
   Legal / unlisted template
   ============================================================ */
.fold--legal { grid-template-columns: 1fr 1fr; min-height: 40vh; }
.legal-ph { background: var(--color-bg); display: grid; place-items: center; padding: 2.5rem; z-index: 1; }
.legal-ph .tile { width: 170px; height: 170px; }
.legal-ph .tile img { width: 150px; height: 150px; }
.clauses { max-width: calc(68ch + 4rem); }
.clause { display: grid; grid-template-columns: 4rem minmax(0, 1fr); gap: 0; padding: 0.4rem 0 1.2rem; }
.clause__n { font: 500 0.875rem/2.2 var(--font-mono); color: var(--color-primary); }
.clause h2 { font: 700 1.3rem/1.25 var(--font-primary); font-stretch: 106%; color: var(--color-text); margin-bottom: 0.5rem; }
.clause p { font-size: 1.02rem; }

/* 404 */
.nf { display: grid; grid-template-columns: 60fr 40fr; min-height: 62vh; }
.nf__field { background: var(--color-surface); padding: var(--pad-y) var(--pad-x); display: grid; gap: 1.2rem; align-content: center; position: relative; }
.nf__field h1 { font-stretch: 125%; font-size: clamp(2.4rem, 5vw, 4.2rem); }
.nf__list { display: grid; gap: 0.5rem; }
.nf__list a { font: 700 1.1rem/1.3 var(--font-primary); color: var(--color-text); }

/* ============================================================
   Gallery lightbox — scaffolded shared mechanism (binding default)
   Inert until a data-lightbox group container exists on the page.
   Restyled to the brand: ink scrim, paper chrome, square corners.
   ============================================================ */
.lightbox-zoomable { cursor: zoom-in; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 320;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vw, 2.5rem);
}
.lightbox.is-open {
  display: flex;
  animation: lightbox-in var(--motion-duration) var(--motion-ease);
}
@keyframes lightbox-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .lightbox.is-open { animation: none; } }
.lightbox__scrim { position: absolute; inset: 0; background: color-mix(in srgb, var(--color-text) 88%, transparent); }
.lightbox__frame {
  position: relative; z-index: 1; margin: 0;
  max-width: min(1200px, 92vw); max-height: 86vh;
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
}
.lightbox__img {
  max-width: 100%; max-height: 80vh; width: auto; height: auto; object-fit: contain;
  background: var(--white);
  border-top: 6px solid var(--color-secondary);
}
.lightbox__caption {
  font-family: var(--font-mono); font-size: 0.85rem; line-height: 1.5;
  color: var(--color-bg); text-align: center; max-width: 60ch;
}
.lightbox__counter {
  position: absolute; bottom: 1.1rem; left: 50%; transform: translateX(-50%); z-index: 1;
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--color-bg);
}
.lightbox__close, .lightbox__prev, .lightbox__next {
  position: absolute; z-index: 2;
  width: 2.75rem; height: 2.75rem;
  display: flex; align-items: center; justify-content: center;
  border: none; cursor: pointer;
  background: var(--color-bg); color: var(--color-text);
  font-size: 1.15rem; line-height: 1;
}
.lightbox__close:hover, .lightbox__close:focus-visible,
.lightbox__prev:hover, .lightbox__prev:focus-visible,
.lightbox__next:hover, .lightbox__next:focus-visible { background: var(--color-secondary); color: var(--color-text); }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev  { left: 1rem;  top: 50%; transform: translateY(-50%); }
.lightbox__next  { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__caption[hidden], .lightbox__counter[hidden], .lightbox__prev[hidden], .lightbox__next[hidden] { display: none; }

/* ============================================================
   Responsive — folds flip, tabs become spines, runs stay seamless
   ============================================================ */
@media (max-width: 1100px) {
  .exhibit__frame { grid-column: 1 / span 7; }
  .exhibit__text { grid-column: 8 / span 5; }
  .shelf-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto auto; }
  .shelf-grid__head { padding-right: var(--pad-x); }
  .shelf-grid__foot { padding-bottom: 2rem; }
  .plates { grid-column: 1; grid-row: 4; padding-left: var(--pad-x); }
  .shelf-bar p { max-width: none; }
  .rubric__body { grid-template-columns: 9rem minmax(0, 1fr) minmax(0, 260px); }
  .vidrail { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  /* folds flip: photo panel above the field, numeral on the horizontal seam */
  .fold, .fold--interior, .fold--book, .fold--legal { grid-template-columns: 1fr; min-height: 0; }
  .fold--home { grid-template-rows: auto; }
  .fold--home .fold__photo, .fold--home .fold__field, .fold__strip { grid-row: auto; grid-column: 1; }
  .fold__photo, .shelfpanel, .legal-ph, .mosaic { order: -1; }
  .fold__photo { aspect-ratio: 16 / 10; }
  .fold--home .fold__photo > img { object-position: 50% 18%; }
  .fold__photo--contain { aspect-ratio: auto; min-height: 18rem; }
  .shelfpanel { min-height: 22rem; }
  .fold__num, .fold--photo-left .fold__num, .fold--ch4 .fold__num {
    left: 12%; right: auto; top: 0; transform: translateY(-55%);
    font-size: clamp(5rem, 17vw, 8rem);
  }
  .fold__field { padding-top: calc(var(--fold-pad) + 3rem); }
  .fold--ch4 .fold__field { box-shadow: inset 0 12px 0 var(--color-primary); padding-right: var(--fold-pad); }
  .fold__why { text-align: left; margin-right: 0; }
  .fold__strip { padding-top: 1.2rem; padding-bottom: 1.2rem; flex-wrap: wrap; justify-content: flex-start; }
  .fold__strip p { order: 3; flex-basis: 100%; max-width: none; }
  .fold__strip .cover { margin-top: 0; }

  .pair { grid-template-columns: 1fr; min-height: 0; }
  .pair__photo, .pair--photo-right .pair__photo { order: -1; aspect-ratio: 4 / 3; }
  .pair__why { font-size: max(4rem, 18vw); }

  .exhibit__grid { grid-template-columns: 1fr; }
  .exhibit__frame, .exhibit__text { grid-column: 1; }
  .exhibit__frame { margin: 0 0 -2rem; order: -1; }
  .exhibit__text { padding: 2.4rem 0 0; }
  .exhibit__frame img { object-position: 70% 45%; }
  .ledger-sec { padding-top: calc(var(--pad-y) + 2rem); }

  .partner, .formsec, .ask__grid, .story, .book-sec, .founder-band { grid-template-columns: minmax(0, 1fr); }
  .partner .credcard { order: -1; }
  .credcard ol { max-width: none; }
  .credcard__notch { position: static; display: table; transform: none; margin-top: 0.6rem; }
  .ask__card { margin: 0 0 -4rem; }
  .site-footer { padding-top: 5rem; }

  .casewall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process__head { grid-template-columns: 1fr; }
  .fold-strip { grid-template-columns: 1fr; border-top: 1px solid var(--color-border); }
  .fold-strip li { grid-template-rows: none; grid-template-columns: 56px minmax(0, 1fr); }
  .fold-strip li + li { border-left: 0; border-top: 1px solid var(--color-border); }
  .fold-strip__tab { justify-content: center; align-items: flex-start; padding: 1.3rem 0 0; }

  .teamwall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* re-sequence so no 2×2 block ever holds all four chapter colors */
  .teamwall li:nth-child(1) { --tile: var(--color-surface); }
  .teamwall li:nth-child(2) { --tile: var(--color-secondary); }
  .teamwall li:nth-child(3) { --tile: var(--color-primary-light); }
  .teamwall li:nth-child(4) { --tile: var(--color-surface); }
  .teamwall li:nth-child(5) { --tile: var(--color-accent); }
  .teamwall li:nth-child(6) { --tile: var(--color-primary-light); }
  .teamwall li:nth-child(7) { --tile: var(--color-secondary); }
  .teamwall li:nth-child(8) { --tile: var(--color-accent); }
  .slidewall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .postlist { grid-template-columns: 1fr; }
  .bundle { grid-template-columns: minmax(0, 1fr) auto; }
  .bundle > div:last-child { grid-column: 1 / -1; }
  .credcard__founder { grid-template-columns: 1fr; }
  .formsec__cards--two { grid-template-columns: 1fr; }
  .nf { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .rubric__body { grid-template-columns: 3.4rem minmax(0, 1fr); background: linear-gradient(90deg, var(--color-primary-light) 3.4rem, transparent 3.4rem); }
  .r { grid-template-columns: 3.4rem minmax(0, 1fr); }
  .r__k { padding: 0.3rem 0 0 0.35rem; }
  .r__k .chip { font-size: 0.6875rem; padding: 0.2rem 0.3rem; }
  .r__c { padding-left: 1.1rem; }
  .rubric__fig { grid-column: 2; grid-row: auto; position: static; margin: 0 0 1.5rem 1.1rem; }
  .r--pull { grid-column: 1 / -1; }
  .ledger__row { grid-template-columns: 1fr; gap: 1rem; }
  .roles div { grid-template-columns: 1fr; gap: 0.2rem; }
  .costs li { grid-template-columns: 1fr; gap: 0.3rem; }
  .vidrail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .caseidx li { grid-template-columns: 1fr; gap: 0.6rem; }
  .foot { grid-template-columns: 1fr; gap: 2rem; }
  .nextprev { grid-template-columns: 1fr; }
  .nextprev a:last-child { text-align: left; justify-items: start; }
  .matrix .us:first-of-type { box-shadow: inset 2px 0 0 var(--color-primary), inset -2px 0 0 var(--color-primary), 8px 0 10px -6px rgba(42,24,56,.3); }
  .plates { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .fold h1 { font-size: 2.6rem; font-weight: 900; }
  .fold--home h1 { font-size: 2.6rem; }
  .fold__why { font-size: 4rem; }
  .fold__strip .cover img { width: 96px; }
  .casewall { grid-template-columns: 1fr; }
  .casewall__panel { aspect-ratio: 5 / 4; }
  .slidewall { grid-template-columns: 1fr; }
  .teamwall__ph, .teamwall__ph img { width: 132px; height: 132px; }
  .shelf-covers .cover img { width: 104px; }
  .ask__ziggy { grid-template-columns: 1fr; }
  .ziggy-plate { width: 120px; height: 120px; }
  .ziggy-plate img { height: 104px; }
  .signer { grid-template-columns: 1fr; }
  .mosaic img { width: 96px; height: 96px; }
}

/* ============================================================
   Self-hosted Google Fonts (localized by 20_performance_sweep)
   ============================================================ */
/* vietnamese */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('/fonts/k3kQo8UDI-1M0wlSfdboLmvDIaK18A.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('/fonts/k3kQo8UDI-1M0wlSfdfoLmvDIaK18A.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('/fonts/k3kQo8UDI-1M0wlSfdnoLmvDIaI.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/NaP6cYPdHfdVxJw0IfIP0lvYFqijb-UxCtm5_wdGseiMhXSWUJ7iyGKiJPfJ9-Nw9Tg9FJNOSSAgdw.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/NaP6cYPdHfdVxJw0IfIP0lvYFqijb-UxCtm5_wdGseiMhXSWUJ7iyGKiJPfJ9-N-9Tg9FJNOSSA.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/NaPNcYPdHfdVxJw0IfIP0lvYFqijb-UxCtm5_wdGseiHn3q0pkZ_S2Q.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/NaPNcYPdHfdVxJw0IfIP0lvYFqijb-UxCtm5_wdGseiJn3q0pkZ_.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/NaPNcYPdHfdVxJw0IfIP0lvYFqijb-UxCtm5_wdGseiHn3q0pkZ_S2Q.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/NaPNcYPdHfdVxJw0IfIP0lvYFqijb-UxCtm5_wdGseiJn3q0pkZ_.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/-F6qfjptAgt5VM-kVkqdyU8n3twJwl1FgsAXHNlYzg.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/-F6qfjptAgt5VM-kVkqdyU8n3twJwlRFgsAXHNlYzg.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/-F6qfjptAgt5VM-kVkqdyU8n3twJwl9FgsAXHNlYzg.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/-F6qfjptAgt5VM-kVkqdyU8n3twJwl5FgsAXHNlYzg.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/-F6qfjptAgt5VM-kVkqdyU8n3twJwlBFgsAXHNk.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* lt-perf:begin — generated by performance-sweep.py (rev 90): keeps sweep-added <picture>
   wrappers layout-transparent and reserves the box of content-sized hero images.
   Do not edit; re-run the sweep. */
picture[data-lt-picture] { display: contents; }
.fold__photo--contain > img[src*="harbor-industries-39.png"] { height: min(200px, 100%); aspect-ratio: 200 / 200; }
.fold__photo--contain > img[src*="revs-41.png"] { height: min(139px, 100%); aspect-ratio: 362 / 139; }
.fold__photo--contain > img[src*="sarah-o-jewelry-40.png"] { height: min(199px, 100%); aspect-ratio: 253 / 199; }
.fold__photo--contain > img[src*="what-changes-will-be-made-85.png"] { height: min(539px, 100%); aspect-ratio: 788 / 539; }
.fold__photo--contain > img[src*="zoho-people-is-hr-software-to-manage-you-169.png"] { height: min(350px, 100%); aspect-ratio: 350 / 350; }
.fold__photo--contain > img[src*="hire-great-teams-with-zoho-recruit-175.jpg"] { height: min(282px, 100%); aspect-ratio: 1024 / 282; }
.fold__photo--contain > img[src*="what-changes-will-be-made-81.png"] { height: min(450px, 100%); aspect-ratio: 794 / 450; }
.fold__photo--contain > img[src*="keep-your-passwords-safe-with-zoho-vault-162.jpg"] { height: min(298px, 100%); aspect-ratio: 1080 / 298; }
.fold__photo--contain > img[src*="logo-for-zoho-assist-consisting-of-a-blu.png"] { height: min(300px, 100%); aspect-ratio: 300 / 300; }
.fold__photo--contain > img[src*="desk.jpg"] { height: min(61px, 100%); aspect-ratio: 61 / 61; }
.fold__photo--contain > img[src*="what-changes-will-be-made-84.png"] { height: min(442px, 100%); aspect-ratio: 780 / 442; }
/* lt-perf:end */
