/* Zichronos: family history research and publishing.
   A professional house style modeled on private banks and fine publishers:
   deep navy and white with a pale stone, brass only on dark grounds,
   Newsreader for headings, Hanken Grotesk for reading text and labels. */

:root {
  --navy: #13233b;
  --navy-2: #1a2e4c;
  --navy-line: #2a4166;
  --ink: #1c2430;
  --ink-soft: #545f70;
  --ink-faint: #7d8796;
  --accent: #2b4a73;
  --paper: #ffffff;
  --stone: #f5f3ef;
  --stone-2: #ebe7e0;
  --brass: #c4a56f;
  --on-dark: #f4f2ed;
  --on-dark-soft: #b3bccb;
  --rule: rgba(19, 35, 59, 0.12);
  --rule-strong: rgba(19, 35, 59, 0.24);
  --rule-on-dark: rgba(244, 242, 237, 0.16);
  --endpaper: #e6e1d8;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1rem, 5vw, 3.5rem);
  --wide: 76rem;
  --measure: 38rem;
  --header-h: 4.5rem;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--navy);
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: rgba(43, 74, 115, 0.18); }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--navy); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--serif); font-optical-sizing: auto; font-weight: 400;
  color: var(--navy); margin: 0 0 0.5em; text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.4vw, 4.1rem); line-height: 1.06; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); line-height: 1.1; letter-spacing: -0.015em; }
h3 { font-size: 1.35rem; line-height: 1.25; letter-spacing: -0.005em; }

p { margin: 0 0 1em; text-wrap: pretty; }

.skip {
  position: absolute; left: -999px; top: 0.5rem; z-index: 100;
  background: var(--paper); color: var(--ink); padding: 0.4rem 0.8rem; font-size: 0.9rem;
}
.skip:focus { left: 0.5rem; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.container { max-width: var(--wide); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.measure { max-width: var(--measure); }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.eyebrow {
  display: block; margin: 0 0 1rem;
  font-family: var(--sans); font-weight: 600; font-size: 0.74rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent);
}
.lede { font-size: 1.2rem; line-height: 1.55; color: var(--ink-soft); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--sans); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; border-radius: 0;
  padding: 0.95rem 1.6rem; border: 1px solid var(--navy);
  background: var(--navy); color: var(--on-dark);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { background: var(--navy-2); color: #fff; }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--rule-strong); }
.btn--outline:hover { background: var(--navy); color: var(--on-dark); border-color: var(--navy); }
.btn--light { background: var(--on-dark); color: var(--navy); border-color: var(--on-dark); }
.btn--light:hover { background: #fff; color: var(--navy); }
.btn--ghost-light { background: transparent; color: var(--on-dark); border-color: rgba(244, 242, 237, 0.4); }
.btn--ghost-light:hover { background: rgba(244, 242, 237, 0.08); color: #fff; border-color: var(--on-dark); }
.btn[disabled] { opacity: 0.6; cursor: default; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }

.text-link {
  font-family: var(--sans); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--rule-strong); padding-bottom: 0.2rem;
}
.text-link:hover { border-bottom-color: var(--navy); }

/* Wordmark */
.brand { display: inline-flex; flex-direction: column; text-decoration: none; color: var(--on-dark); line-height: 1; }
.brand:hover { color: #fff; }
.brand__name {
  font-family: var(--serif); font-weight: 500; text-transform: uppercase;
  font-size: 1.12rem; letter-spacing: 0.32em; margin-right: -0.32em;
}
.brand__tag {
  font-family: var(--sans); font-weight: 600; text-transform: uppercase;
  font-size: 0.56rem; letter-spacing: 0.3em; color: var(--brass); margin-top: 0.45rem;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy); color: var(--on-dark);
  border-bottom: 1px solid var(--rule-on-dark);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--header-h); }
.site-nav { display: flex; align-items: center; gap: 2.2rem; }
.site-nav ul { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.site-nav a:not(.btn) {
  font-family: var(--sans); font-weight: 500; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--on-dark-soft); text-decoration: none; padding: 0.4rem 0;
}
.site-nav a:not(.btn):hover, .site-nav a:not(.btn)[aria-current="page"] { color: #fff; }
.site-nav a:not(.btn)[aria-current="page"] { box-shadow: inset 0 -1px 0 var(--brass); }
.site-nav .btn { padding: 0.7rem 1.2rem; font-size: 0.72rem; }
.menu-toggle {
  display: none; font-family: var(--sans); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--on-dark); background: transparent; border: 1px solid rgba(244, 242, 237, 0.35); border-radius: 0;
  padding: 0.6rem 0.9rem; cursor: pointer;
}

@media (max-width: 54rem) {
  .menu-toggle { display: inline-block; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); border-bottom: 1px solid var(--rule-on-dark);
    padding: 0.5rem var(--gutter) 1.5rem;
  }
  .site-header.is-open .site-nav { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a:not(.btn) { display: block; padding: 0.95rem 0; border-bottom: 1px solid var(--rule-on-dark); font-size: 0.85rem; }
  .site-nav a:not(.btn)[aria-current="page"] { box-shadow: none; color: var(--brass); }
  .site-nav .btn { margin-top: 1.2rem; padding: 0.95rem 1.2rem; }
}

/* Dark bands */
.dark { background: var(--navy); color: var(--on-dark); }
.dark h1, .dark h2, .dark h3 { color: #fff; }
.dark .eyebrow { color: var(--brass); }
.dark .lede, .dark p { color: var(--on-dark-soft); }
.dark a:not(.btn) { color: var(--on-dark); }

/* Home hero */
.hero { padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(4rem, 9vw, 7rem); }
.hero__grid { display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); align-items: center; }
.hero h1 { max-width: 13em; }
.hero .lede { max-width: 30rem; font-size: 1.22rem; }
.hero__figure { margin: 0; }
.hero__figure img { width: 100%; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.3); }
.hero__figure figcaption {
  margin-top: 1rem; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-dark-soft);
}
@media (min-width: 60rem) { .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); } }

/* Interior page header */
.page-hero { padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 4.5rem); }
.page-hero h1 { max-width: 16em; }
.page-hero .lede { max-width: 40rem; }

/* Sections */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section--stone { background: var(--stone); }
.section--tight { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.section__head { max-width: 44rem; margin-bottom: clamp(2.2rem, 5vw, 3.5rem); }
.section__head.center { margin-left: auto; margin-right: auto; }
.section__head p { color: var(--ink-soft); }

/* The commission */
.offer { display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
@media (min-width: 60rem) { .offer { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
.includes { list-style: none; margin: 1.6rem 0 0; padding: 0; }
.includes li {
  position: relative; padding: 0.85rem 0 0.85rem 1.8rem; border-top: 1px solid var(--rule); color: var(--ink);
}
.includes li:last-child { border-bottom: 1px solid var(--rule); }
.includes li::before {
  content: ""; position: absolute; left: 0.1rem; top: 1.45rem; width: 0.7rem; height: 1px; background: var(--accent);
}
.includes-title { font-family: var(--sans); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--navy); margin: 2rem 0 0; }

.facts { background: var(--paper); border: 1px solid var(--rule); padding: clamp(1.8rem, 4vw, 2.6rem); box-shadow: 0 24px 50px -30px rgba(19, 35, 59, 0.35); }
.facts__price { font-family: var(--serif); font-size: clamp(1.9rem, 3.4vw, 2.5rem); line-height: 1.1; color: var(--navy); margin: 0 0 0.35rem; letter-spacing: -0.015em; }
.facts__note { color: var(--ink-soft); margin: 0 0 1.4rem; }
.facts dl { margin: 0 0 1.8rem; }
.facts dt {
  font-family: var(--sans); font-weight: 600; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent);
  padding-top: 0.9rem; border-top: 1px solid var(--rule);
}
.facts dd { margin: 0.25rem 0 0.9rem; color: var(--ink); font-size: 0.98rem; }
.facts .btn { width: 100%; }

.after-grid { margin-top: 2.6rem; }

/* How we work: the eight steps */
.stepper__list {
  list-style: none; margin: 0 0 clamp(2rem, 4vw, 3rem); padding: 0; position: relative;
  display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 0.6rem;
}
.stepper__tab {
  width: 100%; height: 100%; text-align: left; cursor: pointer; border-radius: 0;
  display: flex; flex-direction: column; gap: 0.4rem; padding: 0.85rem 0.9rem 1rem;
  background: var(--paper); border: 1px solid var(--rule-strong); color: var(--navy); font: inherit;
}
.stepper__tab:hover { border-color: var(--navy); }
.stepper__no { font-family: var(--serif); font-size: 1.55rem; line-height: 1; color: var(--accent); font-variant-numeric: lining-nums; }
.stepper__name { font-weight: 600; font-size: 0.8rem; line-height: 1.3; }
.stepper__tab[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.stepper__tab[aria-selected="true"] .stepper__no { color: var(--brass); }
@media (max-width: 64rem) {
  .stepper__list {
    display: flex; overflow-x: auto; scroll-snap-type: x proximity; overscroll-behavior-x: contain;
    padding-bottom: 0.5rem; scrollbar-width: thin;
  }
  .stepper__list li { flex: 0 0 9.5rem; scroll-snap-align: start; }
}
.stepper:not(.is-ready) .stepper__list { display: none; }
.stepper:not(.is-ready) .step-panel + .step-panel { margin-top: 3.5rem; padding-top: 3.5rem; border-top: 1px solid var(--rule-strong); }

.step-panel { display: grid; gap: 2rem 4rem; align-items: start; }
.step-panel[hidden] { display: none; }
@media (min-width: 60rem) { .step-panel { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); } }
.step-panel__no { display: block; font-family: var(--serif); font-weight: 300; font-size: 3rem; line-height: 1; color: var(--accent); margin-bottom: 0.8rem; }
.step-panel h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); }
.step-panel__text p { color: var(--ink-soft); }
.step-media { margin: 0; }
.step-media figcaption { margin-top: 1rem; color: var(--ink-soft); font-size: 0.92rem; }

.zoomable { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.zoomable img { width: 100%; -webkit-user-drag: none; user-select: none; pointer-events: none; }
.zoomable.framed img { border: 1px solid var(--rule); box-shadow: 0 2px 4px rgba(19, 35, 59, 0.1), 0 26px 46px -24px rgba(19, 35, 59, 0.55); background: #fff; }

.family-papers__photos { display: flex; justify-content: center; align-items: flex-start; padding: 0.5rem 0 1rem; }
.family-papers .photo { width: 36%; margin: 0 -2.5%; position: relative; }
.family-papers .photo img { border: 6px solid #fff; box-shadow: 0 18px 34px -16px rgba(19, 35, 59, 0.6); }
.family-papers .photo--a { transform: rotate(4deg); z-index: 1; }
.family-papers .photo--b { transform: rotate(-2deg) translateY(1.5rem); z-index: 2; }
.family-papers .photo--c { transform: rotate(-5deg); z-index: 1; }
.share-card {
  position: relative; z-index: 3; max-width: 22rem; margin: -2.5rem 0 0 auto; transform: rotate(1.5deg);
  background: #fcfbf8; border: 1px solid var(--rule); padding: 1.3rem 1.6rem 1rem;
  box-shadow: 0 22px 40px -22px rgba(19, 35, 59, 0.55);
}
.share-card__title { font-weight: 600; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin: 0 0 0.6rem; }
.share-card ul { list-style: none; margin: 0; padding: 0; }
.share-card li { font-family: var(--serif); font-size: 1.05rem; color: var(--navy); padding: 0.45rem 0; border-top: 1px solid var(--rule); }
@media (max-width: 40rem) { .share-card { margin: 0.5rem auto 0; transform: none; } }

.names { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.names__row {
  display: grid; grid-template-columns: 10.5rem minmax(0, 1fr); gap: 1rem; align-items: center;
  background: #fff; border: 1px solid var(--rule); padding: 0.8rem 1rem;
  box-shadow: 0 14px 28px -22px rgba(19, 35, 59, 0.5);
}
.names__label b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.35rem; line-height: 1.15; color: var(--navy); }
.names__label span { display: block; margin-top: 0.2rem; font-size: 0.8rem; color: var(--ink-soft); line-height: 1.3; }
.names__row .zoomable img { max-height: 7rem; width: auto; max-width: 100%; }
@media (max-width: 40rem) { .names__row { grid-template-columns: 1fr; gap: 0.5rem; } }

.stepper__nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: clamp(2rem, 4vw, 3rem); padding-top: 1.4rem; border-top: 1px solid var(--rule-strong); }
.stepper__nav[hidden] { display: none; }
.stepper__btn {
  font-family: var(--sans); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--navy); background: var(--paper); border: 1px solid var(--rule-strong); border-radius: 0; padding: 0.7rem 1.1rem; cursor: pointer;
}
.stepper__btn:hover:not([disabled]) { border-color: var(--navy); }
.stepper__btn[disabled] { opacity: 0.35; cursor: default; }
/* How we work: the strip of steps in the page header */
.step-strip {
  list-style: none; margin: clamp(2.4rem, 5vw, 3.4rem) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem 0.75rem;
}
@media (min-width: 64rem) { .step-strip { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 0.9rem; } }
.dark .step-strip__link { display: block; text-decoration: none; color: var(--on-dark); }
.step-strip__link img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; opacity: 0.9;
  box-shadow: 0 18px 30px -18px rgba(0, 0, 0, 0.75); transition: transform 0.2s ease, opacity 0.2s ease;
  -webkit-user-drag: none; user-select: none;
}
.step-strip__link:hover img { transform: translateY(-3px); opacity: 1; }
.step-strip__link:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; }
.step-strip__no { display: block; margin-top: 0.8rem; font-family: var(--serif); font-size: 1.35rem; line-height: 1; color: var(--brass); font-variant-numeric: lining-nums; }
.step-strip__name { display: block; margin-top: 0.35rem; font-weight: 600; font-size: 0.8rem; line-height: 1.3; }
.step-strip__link:hover .step-strip__name { text-decoration: underline; text-underline-offset: 0.2em; }
.step-strip--light { margin-top: 0; }
.step-strip--light .step-strip__link { display: block; text-decoration: none; color: var(--navy); }
.step-strip--light .step-strip__link img { opacity: 1; box-shadow: 0 1px 2px rgba(19, 35, 59, 0.12), 0 16px 28px -18px rgba(19, 35, 59, 0.55); }
.step-strip--light .step-strip__no { color: var(--accent); }
.step-strip--light .step-strip__link:focus-visible { outline-color: var(--accent); }

/* Standards: three with proof from the example, then three short ones */
.proofs { margin-bottom: clamp(2rem, 4vw, 3rem); }
.proof { display: grid; gap: 1.4rem 4rem; align-items: start; padding: clamp(1.8rem, 3.5vw, 2.6rem) 0; border-top: 1px solid var(--rule-strong); }
@media (min-width: 60rem) { .proof { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.proof h3 { font-size: clamp(1.4rem, 2.2vw, 1.7rem); margin-bottom: 0.6rem; }
.proof__text p { color: var(--ink-soft); margin: 0; max-width: 32rem; }
.proof__media { margin: 0; max-width: 34rem; }
.proof__page, .page-crop {
  width: 100%; background: #fff; border: 1px solid var(--rule);
  box-shadow: 0 2px 4px rgba(19, 35, 59, 0.1), 0 26px 46px -24px rgba(19, 35, 59, 0.55);
  -webkit-user-drag: none; user-select: none;
}
.proof__media figcaption { margin-top: 0.9rem; color: var(--ink-soft); font-size: 0.88rem; }
.correction { background: var(--stone); border: 1px solid var(--rule); padding: 1.4rem 1.6rem 1.2rem; }
.correction dl { margin: 0; display: grid; gap: 0.9rem; }
.correction dt { font-weight: 600; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.correction dd { margin: 0.2rem 0 0; font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; color: var(--navy); }
.correction div:first-child dd { color: var(--ink-soft); text-decoration: line-through; text-decoration-thickness: 1px; }
.correction__note { margin: 1.1rem 0 0; padding-top: 0.9rem; border-top: 1px solid var(--rule-strong); font-size: 0.9rem; font-weight: 600; color: var(--accent); }

/* Standards */
.standards { display: grid; gap: 1.6rem 2.5rem; list-style: none; margin: 0; padding: 0; }
@media (min-width: 40rem) { .standards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .standards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.standards li { border-top: 1px solid var(--rule-strong); padding-top: 1.2rem; }
.standards h3 { font-size: 1.25rem; margin-bottom: 0.4rem; }
.standards p { color: var(--ink-soft); font-size: 1rem; margin: 0; }

/* Priority band */
.priority { display: grid; gap: 2rem 4rem; align-items: start; }
@media (min-width: 60rem) { .priority { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); } }
.priority h2 { margin-bottom: 0; }

/* FAQ */
.faq { max-width: 50rem; border-top: 1px solid var(--rule-strong); }
.faq details { border-bottom: 1px solid var(--rule-strong); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.3rem 2.5rem 1.3rem 0; position: relative;
  font-family: var(--serif); font-size: 1.3rem; line-height: 1.3; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0.2rem; top: 1.15rem;
  font-family: var(--sans); font-weight: 300; font-size: 1.6rem; color: var(--accent); line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--ink-soft); margin: 0 0 1.4rem; max-width: 42rem; }

/* Figures on the sample page */
.figures { display: grid; gap: 0; list-style: none; margin: 0; padding: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule-strong); }
@media (min-width: 48rem) { .figures { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 72rem) { .figures { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.figures li { padding: 1.4rem 1rem 1.4rem 0; border-bottom: 1px solid var(--rule); }
.figures b { display: block; font-family: var(--serif); font-weight: 300; font-size: 2.6rem; line-height: 1; color: var(--navy); letter-spacing: -0.02em; margin-bottom: 0.5rem; font-variant-numeric: lining-nums; }
.figures span { display: block; color: var(--ink-soft); font-size: 0.92rem; line-height: 1.4; }

/* About: the founder beside the two volumes */
.founder { display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
@media (min-width: 60rem) { .founder { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } }
.founder__books { margin: 0 auto; width: 100%; max-width: 30rem; }
.books { position: relative; padding: 1.5rem 0 2.5rem; }
.books img { width: 58%; background: #111; box-shadow: 0 30px 50px -24px rgba(10, 15, 25, 0.7), 0 4px 10px rgba(10, 15, 25, 0.2); -webkit-user-drag: none; user-select: none; }
.books__one { position: relative; z-index: 1; margin-left: 4%; transform: rotate(3deg); }
.books__two { position: absolute; top: 3rem; right: 4%; transform: rotate(-4deg); }
.founder__books figcaption { margin-top: 0.4rem; color: var(--ink-soft); font-size: 0.88rem; text-align: center; }
.founder__text h2 { font-size: clamp(2.2rem, 4vw, 2.9rem); margin-bottom: 1.2rem; }
.founder__text > p { color: var(--ink-soft); max-width: 36rem; }
.creds { margin: 1.8rem 0 1.6rem; max-width: 36rem; }
.creds div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; align-items: baseline; padding: 0.85rem 0; border-top: 1px solid var(--rule); }
.creds div:last-child { border-bottom: 1px solid var(--rule); }
.creds dt { font-weight: 600; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.creds dd { margin: 0; font-family: var(--serif); font-size: 1.15rem; line-height: 1.35; color: var(--navy); }
@media (max-width: 30rem) { .creds div { grid-template-columns: 1fr; gap: 0.2rem; } }
.about-cols { display: grid; gap: 2.5rem clamp(3rem, 6vw, 5rem); }
@media (min-width: 48rem) { .about-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.about-cols h2 { font-size: clamp(1.6rem, 2.6vw, 2rem); margin-bottom: 0.8rem; }
.about-cols p { color: var(--ink-soft); margin: 0; }

/* Inquire */
.inquire-grid { display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
@media (min-width: 60rem) { .inquire-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); } }
.form-card { background: var(--paper); border: 1px solid var(--rule); padding: clamp(1.6rem, 4vw, 2.8rem); box-shadow: 0 24px 50px -30px rgba(19, 35, 59, 0.35); }
.form { display: grid; gap: 1.3rem; }
.form[hidden], .form-thanks[hidden] { display: none; }
.form-thanks:focus { outline: none; }
.form-thanks h2 { font-size: 1.8rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 600; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--navy); }
.field .optional { font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink-faint); font-size: 0.9rem; }
.field input, .field textarea {
  font: inherit; color: var(--ink); background: var(--paper);
  border: 1px solid var(--rule-strong); border-radius: 0; padding: 0.75rem 0.85rem; width: 100%; min-width: 0;
}
.field input[type="date"] { max-width: 15rem; }
.field textarea { min-height: 10rem; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
.honey { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.6em; margin: 0; font-size: 0.98rem; }
.form-status.is-error { color: #9b2c1f; }
.form-status.is-preview { color: var(--ink-soft); font-style: italic; }
.next-steps { list-style: none; margin: 1.6rem 0 0; padding: 0; }
.next-steps li { position: relative; padding: 1rem 0 1rem 2.6rem; border-top: 1px solid var(--rule); color: var(--ink-soft); }
.next-steps li:last-child { border-bottom: 1px solid var(--rule); }
.next-steps__no { position: absolute; left: 0; top: 0.8rem; font-family: var(--serif); font-size: 1.6rem; line-height: 1.2; color: var(--accent); }
.next-steps strong { display: block; color: var(--navy); font-weight: 600; }
.privacy-note { margin-top: 1.6rem; color: var(--ink-soft); font-size: 0.98rem; }
.terms .facts__price { font-size: clamp(1.6rem, 2.6vw, 2rem); }
.terms dl { margin: 0; }
.terms dd:last-child { margin-bottom: 0; }
.next-title { font-size: clamp(1.5rem, 2.4vw, 1.8rem); margin: clamp(2.2rem, 4vw, 2.8rem) 0 0; }
.next-steps--short { margin-top: 1rem; }
.next-steps--short li { display: flex; align-items: baseline; gap: 1rem; padding: 0.7rem 0; }
.next-steps--short .next-steps__no { position: static; flex: 0 0 1.4rem; font-size: 1.4rem; line-height: 1; }
.field textarea::placeholder { color: var(--ink-faint); opacity: 1; }

/* Closing call to action */
.cta { text-align: center; }
.cta h2 { margin-bottom: 0.4em; }
.cta p { max-width: 34rem; margin-left: auto; margin-right: auto; }
.cta .btn-row { justify-content: center; }

/* Footer */
.site-footer { background: var(--navy); color: var(--on-dark-soft); padding: clamp(3.5rem, 7vw, 5rem) 0 2rem; border-top: 1px solid var(--rule-on-dark); }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); } }
.site-footer p { margin: 1.2rem 0 0; font-size: 0.95rem; max-width: 26rem; }
.footer-title { font-weight: 600; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass); margin: 0 0 1rem; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin: 0 0 0.6rem; }
.footer-links a { color: var(--on-dark); text-decoration: none; font-size: 0.95rem; }
.footer-links a:hover { text-decoration: underline; color: #fff; }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--rule-on-dark);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem 2rem; font-size: 0.85rem;
}

/* ------------------------------------------------------------------ */
/* Home hero: a record and its translation */

.record { margin: 0; }
.record__stage { position: relative; padding-bottom: 14%; }
.record__original { position: relative; width: 86%; transform: rotate(-1.4deg); }
.record__translation { position: absolute; right: 0; bottom: 0; width: 50%; transform: rotate(1.6deg); }
.record img { width: 100%; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35), 0 30px 60px -18px rgba(0, 0, 0, 0.7); }
.record__label {
  display: block; margin-bottom: 0.55rem; font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass);
}
.record__translation .record__label { display: inline-block; color: var(--on-dark); background: var(--navy); padding: 0.35rem 0.6rem; margin-bottom: 0.4rem; }
.record figcaption { margin-top: 1.4rem; font-size: 0.86rem; color: var(--on-dark-soft); max-width: 34rem; }
@media (max-width: 40rem) {
  .record__stage { padding-bottom: 32%; }
  .record__original { width: 94%; }
  .record__translation { width: 66%; }
}

/* Home: the wall of pages */

.wall { position: relative; overflow: hidden; padding: clamp(4.5rem, 10vw, 8rem) 0; isolation: isolate; }
.wall__bg {
  position: absolute; inset: 0; z-index: -2;
  background: var(--navy) url("/assets/showcase/wall.webp") 60% 40% / cover no-repeat;
}
.wall::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(19, 35, 59, 0.97) 0%, rgba(19, 35, 59, 0.92) 34%, rgba(19, 35, 59, 0.55) 62%, rgba(19, 35, 59, 0.25) 100%);
}
.wall__inner { max-width: var(--wide); }
.wall__inner > * { max-width: 34rem; }
.wall__intro { font-size: 1.12rem; }
.stats { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 2rem; max-width: 30rem; }
.stats li { border-top: 1px solid var(--rule-on-dark); padding-top: 0.9rem; }
.stats b { display: block; font-family: var(--serif); font-weight: 300; font-size: clamp(2.6rem, 5vw, 3.4rem); line-height: 1; color: #fff; letter-spacing: -0.02em; font-variant-numeric: lining-nums; }
.stats span { display: block; margin-top: 0.4rem; color: var(--on-dark-soft); font-size: 0.95rem; }
@media (max-width: 40rem) {
  .wall::after { background: linear-gradient(180deg, rgba(19, 35, 59, 0.9), rgba(19, 35, 59, 0.82)); }
}

/* Inside a book: rows of pages */

.kinds { border-top: 1px solid var(--rule-strong); }
.kind { display: grid; gap: 1rem 2.5rem; padding: 1.8rem 0; border-bottom: 1px solid var(--rule-strong); align-items: center; }
@media (min-width: 60rem) { .kind { grid-template-columns: 15rem minmax(0, 1fr); } }
.kind__text h3 { font-size: 1.6rem; margin-bottom: 0.3rem; }
.kind__text p { color: var(--ink-soft); font-size: 0.98rem; margin: 0; }
.kind__pages {
  list-style: none; margin: 0; padding: 0.4rem 0.2rem 0.8rem; display: grid; gap: 1rem;
  grid-template-columns: repeat(6, minmax(5.5rem, 1fr));
  overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin;
}
.page-thumb {
  display: block; width: 100%; padding: 0; border: 1px solid var(--rule); background: #fff; cursor: zoom-in;
  box-shadow: 0 10px 22px -14px rgba(19, 35, 59, 0.5); transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.page-thumb img { width: 100%; height: auto; -webkit-user-drag: none; user-select: none; pointer-events: none; }
.page-thumb:hover { transform: translateY(-3px); box-shadow: 0 16px 28px -14px rgba(19, 35, 59, 0.6); }

/* Inside a book: tabs and spreads */

.tabs__list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: clamp(1.6rem, 4vw, 2.4rem); }
.tab {
  font-family: var(--sans); font-weight: 600; font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--navy); background: var(--paper); border: 1px solid var(--rule-strong); border-radius: 0;
  padding: 0.7rem 1rem; cursor: pointer;
}
.tab:hover { border-color: var(--navy); }
.tab[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: var(--on-dark); }
.tabs:not(.is-ready) .tabs__list { display: none; }
.tabs:not(.is-ready) .tab-panel + .tab-panel { margin-top: 3rem; }

.tab-panel { display: grid; gap: 2rem 3rem; align-items: start; }
.tab-panel[hidden] { display: none; }
@media (min-width: 64rem) { .tab-panel { grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); } }
.tab-panel__text h3 { font-size: 1.9rem; margin-bottom: 0.5rem; }
.tab-panel__text p { color: var(--ink-soft); }
.spread { margin: 0; }
.spread[hidden] { display: none; }
.spread__open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.spread__open img {
  width: 100%; -webkit-user-drag: none; user-select: none; pointer-events: none;
  box-shadow: 0 2px 4px rgba(19, 35, 59, 0.12), 0 28px 50px -24px rgba(19, 35, 59, 0.55);
}
.spread figcaption { margin-top: 1rem; color: var(--ink-soft); font-size: 0.95rem; }
.spread__ref { display: block; margin-top: 0.2rem; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.spread-nav { display: flex; align-items: center; gap: 1rem; margin-top: 1.2rem; }
.spread-nav[hidden] { display: none; }
.spread-nav__btn {
  font-family: var(--sans); font-weight: 600; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--navy); background: var(--paper); border: 1px solid var(--rule-strong); border-radius: 0; padding: 0.55rem 0.9rem; cursor: pointer;
}
.spread-nav__btn:hover { border-color: var(--navy); }
.spread-nav__count { font-size: 0.9rem; color: var(--ink-soft); min-width: 4.5rem; text-align: center; }

/* Inside a book: the research behind the example */
.research { margin-top: clamp(3rem, 7vw, 4.5rem); }

/* ------------------------------------------------------------------ */
/* Flip guide (Inside a book page) */

.volumes { display: flex; justify-content: center; gap: clamp(1.2rem, 5vw, 3.5rem); margin: 0 auto clamp(2rem, 4.5vw, 3rem); }
.volume {
  font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer;
  display: grid; justify-items: center; gap: 0.25rem; text-align: center; width: 9.5rem;
}
.volume img {
  width: 6.5rem; aspect-ratio: 3 / 4; object-fit: cover; margin-bottom: 0.9rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 10px 22px -8px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, opacity 0.25s ease; opacity: 0.6;
}
.volume:hover img { opacity: 0.9; }
.volume[aria-pressed="true"] img { opacity: 1; transform: translateY(-4px); }
.volume__title {
  font-weight: 600; font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-soft); padding-bottom: 0.3rem; border-bottom: 1px solid transparent;
}
.volume[aria-pressed="true"] .volume__title { color: var(--navy); border-bottom-color: var(--navy); }
.volume__sub { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.35; }
@media (min-width: 40rem) { .volume { width: 13rem; } .volume img { width: 8rem; } }

.flip { position: relative; }
.flip-stage {
  position: relative; margin: 0 auto; min-height: 14rem; cursor: zoom-in;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.flip-host { margin: 0 auto; transition: transform 0.6s ease; }
.flip-host.is-front { transform: translateX(-25%); }
.flip-host.is-back { transform: translateX(25%); }
.flip-page { background: #fff; overflow: hidden; }
.flip-page img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  -webkit-user-drag: none; user-select: none; pointer-events: none;
}
.flip-page--blank { background: var(--endpaper); }
.flip-page--cover { background: #1c1a18; }
.flip-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-soft); pointer-events: none; }
.flip-loading[hidden] { display: none; }

.flip-controls {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.9rem 1.2rem;
  max-width: 48rem; margin: clamp(1.6rem, 3.5vw, 2.4rem) auto 0;
}
.flip-btn {
  cursor: pointer; background: var(--paper); color: var(--navy);
  border: 1px solid var(--rule-strong); border-radius: 0; padding: 0.6rem 1.1rem;
  font-family: var(--sans); font-weight: 600; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
}
.flip-btn:hover:not([disabled]) { border-color: var(--navy); }
.flip-btn[disabled] { opacity: 0.35; cursor: default; }
.flip-slider { width: 100%; accent-color: var(--navy); margin: 0; min-width: 0; }
.flip-meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.6rem 1.2rem; }
.flip-caption { margin: 0; color: var(--ink-soft); font-size: 0.95rem; min-height: 1.6em; }
.flip-caption .vol { font-weight: 600; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--navy); }
.flip-menu {
  font: inherit; font-size: 0.95rem; color: var(--ink); background: var(--paper);
  border: 1px solid var(--rule-strong); border-radius: 0; padding: 0.45rem 0.6rem; max-width: 100%;
}
.flip-note { text-align: center; color: var(--ink-soft); font-size: 0.95rem; margin: 1.4rem auto 0; max-width: 36em; text-wrap: balance; }
@media (max-width: 40rem) {
  .flip-controls { grid-template-columns: 1fr 1fr; }
  .flip-slider { grid-column: 1 / -1; grid-row: 1; }
  .flip-btn--next { justify-self: end; }
  .flip-meta { flex-direction: column; align-items: stretch; text-align: center; }
}

/* Full-size view */
.zoom {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: rgba(13, 22, 37, 0.97); color: var(--on-dark);
  overflow: hidden; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.zoom::backdrop { background: rgba(13, 22, 37, 0.9); }
.zoom[open] { display: block; }
.zoom__view { position: absolute; inset: 0; overflow: hidden; touch-action: none; cursor: grab; }
.zoom__view.is-dragging { cursor: grabbing; }
.zoom__img { position: absolute; left: 0; top: 0; transform-origin: 0 0; max-width: none; -webkit-user-drag: none; user-select: none; will-change: transform; background: #fff; }
.zoom__bar {
  position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem var(--gutter); background: linear-gradient(rgba(13, 22, 37, 0.92), rgba(13, 22, 37, 0)); pointer-events: none;
}
.zoom__bar > * { pointer-events: auto; }
.zoom__title { flex: 1; min-width: 0; margin: 0; font-size: 0.92rem; color: var(--on-dark-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zoom__btn {
  cursor: pointer; color: var(--on-dark); background: rgba(19, 35, 59, 0.85);
  border: 1px solid var(--rule-on-dark); border-radius: 0; min-width: 2.5rem; height: 2.5rem; padding: 0 0.75rem;
  font-family: var(--sans); font-weight: 500; font-size: 1rem; line-height: 1;
}
.zoom__btn--word { font-weight: 600; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; }
.zoom__btn:hover { background: var(--navy-line); }
.zoom__nav {
  position: absolute; top: 50%; transform: translateY(-50%); cursor: pointer;
  color: var(--on-dark); background: rgba(19, 35, 59, 0.85); border: 1px solid var(--rule-on-dark); border-radius: 0;
  padding: 0.7rem 0.95rem; font-family: var(--sans); font-weight: 600; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
}
.zoom__nav--prev { left: 0.6rem; }
.zoom__nav--next { right: 0.6rem; }
.zoom__nav[disabled] { opacity: 0.3; cursor: default; }
@media (max-width: 40rem) {
  .zoom__nav { top: auto; bottom: 0.8rem; transform: none; }
  .zoom__btn--fit { display: none; }
}

/* Preview-only markers for placeholders and figures to confirm. Shown on
   localhost or with ?review in the address; never shown to visitors. */
.is-preview [data-todo] { position: relative; outline: 1px dashed rgba(170, 60, 30, 0.7); outline-offset: 3px; }
.is-preview [data-todo]::after {
  content: "To do: " attr(data-todo);
  position: absolute; left: 0; top: 0; z-index: 5; max-width: 22rem;
  font: 600 0.68rem/1.35 var(--sans); letter-spacing: 0.03em; color: #fff; background: rgba(150, 50, 25, 0.92);
  padding: 0.25rem 0.5rem; pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .flip-host, .volume img, .btn, .step-strip__link img { transition: none; }
  .step-strip__link:hover img { transform: none; }
}
