/* ==========================================================================
   Fable Studio — shared stylesheet
   Plain CSS, no build step. Sections:
   1. Fonts & tokens      6. Page sections        11. Manuscript modal
   2. Base & typography   7. Cards & grids        12. Bookshelf (3D + simple)
   3. Layout utilities    8. Process & steps      13. Book viewer
   4. Buttons & links     9. FAQ                  14. Footer & mobile bar
   5. Header & nav       10. Forms                15. Motion preferences
   ========================================================================== */

/* 1. Fonts & tokens ------------------------------------------------------- */
@font-face {
  font-family: "Fraunces";
  src: url("../assets/fonts/fraunces-latin-opsz-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../assets/fonts/fraunces-latin-opsz-italic.woff2") format("woff2");
  font-weight: 100 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  /* Brand colours */
  --navy: #1d2b3a;
  --navy-deep: #101a26;
  --navy-soft: #2a3b4e;
  --brass: #cca800;
  --brass-light: #e8cf6a;
  --brass-deep: #7a6500;
  --ember: #bc3908;
  --charcoal: #2b2b2b;
  --linen: #fbf7f4;
  --linen-deep: #f3ece4;
  --surface: #fffdfb;
  --line: #e4dcd2;
  --line-navy: #34465a;
  --muted: #625d58;
  --muted-navy: #d2dae3;
  --error: #a3322a;
  --success: #2f6b45;
  --wood: #6b4c2f;
  --wood-light: #8d6a45;
  --wood-deep: #3f2b19;

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  --step-3: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  --step-4: clamp(1.875rem, 1.4rem + 1.8vw, 2.625rem);
  --step-5: clamp(2.25rem, 1.6rem + 2.6vw, 3.375rem);

  /* Space & shape */
  --container: 72rem;          /* 1152px: leaves wide white space either side on 1920px screens */
  --container-narrow: 46rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(3.5rem, 2.5rem + 4vw, 6rem);
  --radius: 2px;
  --radius-lg: 2px;
  --shadow-sm: 0 1px 2px rgba(16, 26, 38, .06), 0 2px 8px rgba(16, 26, 38, .05);
  --shadow: 0 1px 3px rgba(16, 26, 38, .05), 0 6px 16px rgba(16, 26, 38, .07);
  --shadow-lg: 0 24px 60px rgba(16, 26, 38, .22);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-h: 76px;
  --focus: 3px solid var(--ember);
  --sbw: 0px; /* scrollbar width, set by JS while a modal is open */
}

/* 2. Base & typography ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
body {
  margin: 0;
  background: var(--linen);
  color: var(--charcoal);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip; /* clip (not hidden) keeps the sticky header working while a modal locks scrolling */
}
html.is-locked { overflow: hidden; }
html.is-locked body { padding-right: var(--sbw); }

img, svg, video { display: block; max-width: 100%; height: auto; }
svg { flex-shrink: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  font-family: var(--font-display);
  font-weight: 560;
  font-variation-settings: "opsz" 72;
  line-height: 1.12;
  letter-spacing: -0.012em;
  color: var(--navy);
  text-wrap: balance;
}
h1 { font-size: var(--step-5); font-weight: 520; }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); font-variation-settings: "opsz" 36; line-height: 1.25; }
h4 { font-size: var(--step-1); font-family: var(--font-sans); font-weight: 650; letter-spacing: 0; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
em { font-style: italic; }
strong { font-weight: 650; }

a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--ember); }

:focus { outline: none; }
:focus-visible { outline: var(--focus); outline-offset: 3px; border-radius: var(--radius); }

::selection { background: var(--brass-light); color: var(--navy-deep); }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 1000;
  padding: .75rem 1.25rem; border-radius: var(--radius);
  background: var(--navy); color: #fff; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; color: #fff; }

.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;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  margin: 0 0 1rem;
  font-family: var(--font-sans);
  font-size: .78rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brass-deep);
}
.eyebrow::before { content: ""; width: 2rem; height: 2px; background: var(--brass); border-radius: 2px; }
.section--navy .eyebrow, .page-hero--navy .eyebrow { color: var(--brass-light); }

.lead { font-size: var(--step-1); line-height: 1.7; color: var(--muted); max-width: 40rem; }
.muted { color: var(--muted); }
.small { font-size: var(--step--1); }
.text-center { text-align: center; }
.text-center .lead { margin-inline: auto; }
.italic-accent { font-style: italic; font-weight: 420; color: var(--brass-deep); }

/* 3. Layout utilities ----------------------------------------------------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(var(--container-narrow) + var(--gutter) * 2); }

.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .65); }
.section--surface { background: var(--surface); }
.section--linen-deep { background: var(--linen-deep); }
.section--navy { background: var(--navy); color: #e8edf2; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy .lead, .section--navy .muted { color: var(--muted-navy); }
.section + .section--surface, .section--surface + .section { border-top: 1px solid var(--line); }

.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem); }
.section-head > div { max-width: 44rem; }
.section-head h2 { margin-bottom: .35em; }
.section-head .lead { margin-bottom: 0; }
.section-head--center { justify-content: center; text-align: center; }
.section-head--center .lead { margin-inline: auto; }
.section-head--center .eyebrow { justify-content: center; }

.split { display: grid; gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center; }
@media (min-width: 56.25em) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-left { grid-template-columns: 1.15fr .85fr; }
  .split--wide-right { grid-template-columns: .85fr 1.15fr; }
  .split--top { align-items: start; }
}

.stack > * + * { margin-top: 1rem; }

/* 4. Buttons & links ------------------------------------------------------ */
.btn {
  --btn-bg: var(--navy); --btn-fg: #fff; --btn-border: var(--navy);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .75rem 1.4rem;
  border: 1.5px solid var(--btn-border); border-radius: var(--radius);
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-sans); font-size: .975rem; font-weight: 600; line-height: 1.2;
  text-decoration: none; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
@media (hover: hover) { .btn:hover { color: var(--btn-fg); box-shadow: var(--shadow-sm); } }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn svg { width: 1.15em; height: 1.15em; }
.btn--primary:hover { --btn-bg: var(--navy-soft); --btn-border: var(--navy-soft); }
.btn--foil {
  --btn-fg: var(--navy-deep); --btn-border: #b89600;
  background: var(--brass);
}
.btn--foil:hover { --btn-fg: var(--navy-deep); background: var(--brass-light); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--navy); --btn-border: rgba(29, 43, 58, .35); }
.btn--ghost:hover { --btn-bg: var(--navy); --btn-fg: #fff; --btn-border: var(--navy); }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: #fff; --btn-border: rgba(255, 255, 255, .45); }
.btn--ghost-light:hover { --btn-bg: #fff; --btn-fg: var(--navy); --btn-border: #fff; }
.btn--sm { min-height: 42px; padding: .55rem 1.1rem; font-size: .9rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .7; pointer-events: none; }
.btn.is-loading::after {
  content: ""; width: 1em; height: 1em; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 600; color: var(--navy); text-decoration: none;
  border-bottom: 1.5px solid var(--brass); padding-bottom: 2px;
}
.link-arrow svg { width: 1rem; height: 1rem; transition: transform .2s var(--ease); }
.link-arrow:hover { color: var(--ember); border-color: var(--ember); }
.link-arrow:hover svg { transform: translateX(2px); }
.section--navy .link-arrow { color: #fff; }
.section--navy .link-arrow:hover { color: var(--brass-light); border-color: var(--brass-light); }

.icon { width: 1.25rem; height: 1.25rem; }

/* 5. Header & nav --------------------------------------------------------- */
.utility-bar { background: var(--navy-deep); color: var(--muted-navy); font-size: .82rem; }
.utility-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 38px; }
.utility-bar__note { margin: 0; display: flex; gap: 1.25rem; }
.utility-bar__note span { display: inline-flex; align-items: center; gap: .4rem; }
.utility-bar__note svg { width: .95rem; height: .95rem; color: var(--brass-light); }
.utility-bar__links { display: flex; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.utility-bar a { display: inline-flex; align-items: center; gap: .4rem; color: #e8edf2; text-decoration: none; }
.utility-bar a:hover { color: var(--brass-light); }
.utility-bar svg { width: .95rem; height: .95rem; }
@media (max-width: 47.9375em) { .utility-bar { display: none; } }
@media (max-width: 63.9375em) { .utility-bar__note { display: none; } .utility-bar__inner { justify-content: center; } }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 247, 244, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(16, 26, 38, .06); }
.header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }
.brand { display: inline-flex; flex-shrink: 0; border-radius: var(--radius); }
.brand img { width: auto; height: 50px; }

.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; align-items: center; gap: .15rem; margin: 0; padding: 0; list-style: none; }
.primary-nav a {
  position: relative; display: block; padding: .5rem .7rem;
  font-size: .925rem; font-weight: 550; color: var(--navy); text-decoration: none; border-radius: var(--radius);
}
.primary-nav a::after {
  content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .2rem; height: 2px;
  background: var(--brass); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.primary-nav a:hover { color: var(--navy); }
.primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
.primary-nav a[aria-current="page"] { font-weight: 650; }
.nav-extras { display: none; }

.header__actions { display: flex; align-items: center; gap: .75rem; }
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 46px; height: 46px; padding: 0; border: 1.5px solid var(--line); border-radius: var(--radius);
  background: var(--surface); color: var(--navy);
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 74.9375em) {
  /* backdrop-filter would trap the fixed menu panel inside the header, so use a solid header here */
  .site-header { background: var(--linen); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav-toggle { display: inline-flex; }
  .header__actions { margin-left: auto; }
  .primary-nav {
    position: fixed; inset: var(--nav-top, var(--header-h)) 0 0 0; z-index: 99;
    margin: 0; padding: 1rem var(--gutter) 2rem;
    background: var(--linen); border-top: 1px solid var(--line);
    overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
  }
  .primary-nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .primary-nav > ul { flex-direction: column; align-items: stretch; gap: 0; max-width: 32rem; margin-inline: auto; }
  .primary-nav > ul > li { border-bottom: 1px solid var(--line); }
  .primary-nav > ul a { padding: .85rem .25rem; font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; }
  .primary-nav > ul a::after { left: .25rem; right: auto; width: 2rem; bottom: .5rem; }
  .nav-extras .btn::after { display: none; }
  .primary-nav .nav-extras .btn { display: flex; padding: .75rem 1.4rem; border-radius: var(--radius); font-size: 1rem; font-weight: 600; color: var(--navy-deep); }
  .nav-extras { display: grid; gap: .75rem; max-width: 32rem; margin: 1.5rem auto 0; }
  .nav-extras__links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: .5rem 0 0; padding: 0; list-style: none; }
  .nav-extras__links li { border: 0 !important; }
  .nav-extras__links a { display: inline-flex; align-items: center; gap: .4rem; padding: .25rem 0; font-family: var(--font-sans); font-size: .95rem; font-weight: 550; }
  .nav-extras__links a::after { display: none; }
  .nav-extras__links svg { width: 1rem; height: 1rem; color: var(--brass-deep); }
}
@media (max-width: 29.9375em) {
  .header__actions .btn { display: none; } /* mobile bar carries the CTA on small screens */
  .brand img { height: 44px; }
}

/* 6. Page sections -------------------------------------------------------- */

/* Home hero */
.hero { position: relative; padding-block: clamp(3rem, 2rem + 4vw, 5.5rem) clamp(3.5rem, 2.5rem + 4vw, 6rem); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60rem 30rem at 85% 10%, rgba(204, 168, 0, .10), transparent 60%),
    radial-gradient(40rem 26rem at 0% 100%, rgba(29, 43, 58, .06), transparent 60%);
}
.hero__grid { display: grid; gap: clamp(2.5rem, 1.5rem + 3vw, 4rem); align-items: center; }
@media (min-width: 62.5em) { .hero__grid { grid-template-columns: 1.05fr .95fr; } }
.hero h1 { margin-bottom: .45em; }
.hero h1 em { font-weight: 420; color: var(--brass-deep); }
.hero h1 .h1-sub { display: block; margin-top: .4em; font-size: .46em; line-height: 1.25; letter-spacing: .005em; }
.hero .lead { margin-bottom: 1.75rem; }
.trust-list { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; margin: 0 0 2rem; padding: 0; list-style: none; font-weight: 550; color: var(--navy); font-size: .95rem; }
.trust-list li { display: inline-flex; align-items: center; gap: .45rem; }
.trust-list svg { width: 1.15rem; height: 1.15rem; color: var(--brass-deep); }
.hero__phone { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; text-decoration: none; }
.hero__phone svg { width: 1.1rem; height: 1.1rem; color: var(--brass-deep); }

.form-card {
  position: relative; padding: clamp(1.5rem, 1rem + 2vw, 2.25rem);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.form-card--offset::before {
  content: ""; position: absolute; inset: 14px -14px -14px 14px; z-index: -1;
  border: 1.5px solid var(--brass); border-radius: var(--radius-lg);
}
.form-card h2 { font-size: var(--step-3); margin-bottom: .3em; }
.form-card__intro { color: var(--muted); margin-bottom: 1.25rem; font-size: .95rem; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.stat { margin: 0; padding: 1.5rem 1.75rem; background: var(--surface); }
.stat__value { display: block; font-family: var(--font-display); font-size: var(--step-4); font-weight: 520; color: var(--navy); line-height: 1; margin-bottom: .4rem; }
.stat__label { color: var(--muted); font-size: .95rem; }
.stat__label strong { display: block; margin-bottom: .2rem; color: var(--navy); font-size: 1.02rem; font-weight: 650; }

/* A dark stats band between light sections, with white values and labels. */
.stats-band { background: var(--navy); color: #fff; }
.stats-band .stats { background: var(--line-navy); border-color: var(--line-navy); }
.stats-band .stat { background: var(--navy); }
.stats-band .stat__value, .stats-band .stat__label strong { color: #fff; }
.stats-band .stat__label { color: #e8edf2; }
/* Retailer names in the About section (text only, no third-party logos) */
.outlet-list { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.outlet-list li { padding: .3rem .85rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--navy); font-size: .9rem; font-weight: 600; }

/* Inner page hero */
.page-hero { padding-block: clamp(3rem, 2rem + 3vw, 5rem) clamp(2.5rem, 2rem + 2vw, 4rem); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--linen-deep), var(--linen)); }
.page-hero__grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 56.25em) { .page-hero__grid { grid-template-columns: 1.1fr .9fr; } }
.page-hero h1 { margin-bottom: .4em; }
.page-hero .lead { margin-bottom: 1.5rem; }
.page-hero__media { position: relative; }
.page-hero__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.page-hero__media::after { content: ""; position: absolute; inset: -12px 12px 12px -12px; z-index: -1; border: 1.5px solid var(--brass); border-radius: var(--radius-lg); }

.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.5rem; padding: 0; list-style: none; font-size: .85rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--line); }
.breadcrumbs a { color: var(--muted); }

/* Media frames */
.media-frame { position: relative; }
.media-frame img { width: 100%; border-radius: var(--radius-lg); object-fit: cover; box-shadow: var(--shadow); }
.media-frame--tall img { aspect-ratio: 4 / 5; }
.media-frame--wide img { aspect-ratio: 3 / 2; }
.media-frame__badge {
  position: absolute; right: -1rem; bottom: 1.5rem; max-width: 15rem;
  padding: 1rem 1.25rem; border-radius: var(--radius);
  background: var(--navy); color: #fff; box-shadow: var(--shadow-lg); font-size: .9rem; line-height: 1.45;
}
.media-frame__badge strong { display: block; font-family: var(--font-display); font-size: 1.6rem; font-weight: 520; color: var(--brass-light); line-height: 1.1; }
@media (max-width: 37.4375em) { .media-frame__badge { right: .75rem; } }

/* Check lists */
.check-list { margin: 0 0 1.5rem; padding: 0; list-style: none; display: grid; gap: .8rem; }
.check-list li { display: grid; grid-template-columns: 1.5rem 1fr; gap: .75rem; }
.check-list svg { width: 1.3rem; height: 1.3rem; margin-top: .15rem; color: var(--brass-deep); }
.check-list strong { display: block; color: var(--navy); }
.check-list span { color: var(--muted); }
.section--navy .check-list strong { color: #fff; }
.section--navy .check-list span { color: var(--muted-navy); }
.section--navy .check-list svg { color: var(--brass-light); }

/* CTA band */
.cta-band { position: relative; overflow: hidden; padding-block: clamp(3.5rem, 2.5rem + 3vw, 5rem); background: var(--navy); color: #e8edf2; }
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(40rem 20rem at 100% 0%, rgba(204, 168, 0, .18), transparent 65%), radial-gradient(30rem 20rem at 0% 100%, rgba(188, 57, 8, .12), transparent 60%);
}
.cta-band__inner { position: relative; display: grid; gap: 2rem; align-items: center; }
@media (min-width: 56.25em) { .cta-band__inner { grid-template-columns: 1.4fr 1fr; } }
.cta-band h2 { color: #fff; margin-bottom: .35em; }
.cta-band p { color: var(--muted-navy); margin: 0; max-width: 36rem; }
.cta-band .btn-row { justify-content: flex-start; }
@media (min-width: 56.25em) { .cta-band .btn-row { justify-content: flex-end; } }

/* Contact methods */
.contact-methods { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.contact-method {
  display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem 1.35rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--charcoal); text-decoration: none; text-align: left;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
button.contact-method { width: 100%; font: inherit; }
@media (hover: hover) { .contact-method:hover { border-color: var(--brass); box-shadow: var(--shadow-sm); color: var(--charcoal); } }
.contact-method__icon { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; flex-shrink: 0; border-radius: var(--radius); background: var(--linen-deep); color: var(--navy); }
.contact-method__icon svg { width: 1.3rem; height: 1.3rem; }
.contact-method strong { display: block; color: var(--navy); font-size: 1rem; }
.contact-method span span { display: block; color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }
.contact-methods--stacked { grid-template-columns: 1fr; }

/* 7. Cards & grids -------------------------------------------------------- */
.grid { display: grid; gap: clamp(1rem, .75rem + 1vw, 1.5rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
@media (min-width: 68.75em) { .grid--4 { grid-template-columns: repeat(4, 1fr); } .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  position: relative; display: flex; flex-direction: column; height: 100%;
  padding: 1.6rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.card h3 { margin-bottom: .45em; }
.card p { color: var(--muted); font-size: .96rem; }
.card p:last-child { margin-bottom: 0; }
@media (hover: hover) { .card--link:hover { border-color: var(--brass); box-shadow: var(--shadow-sm); } }
.card__icon { display: grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: 1.1rem; border-radius: var(--radius); background: var(--navy); color: var(--brass-light); }
.card__icon svg { width: 1.45rem; height: 1.45rem; }
.card__link { margin-top: auto; padding-top: .75rem; font-weight: 600; font-size: .92rem; color: var(--navy); text-decoration: none; display: inline-flex; gap: .35rem; align-items: center; }
.card__link svg { width: 1rem; height: 1rem; transition: transform .2s var(--ease); }
.card--link:hover .card__link svg { transform: translateX(2px); }
.card__link::before { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* whole card clickable */
.section--navy .card { background: var(--navy-soft); border-color: var(--line-navy); }
.section--navy .card p { color: var(--muted-navy); }

.service-group + .service-group { margin-top: clamp(3rem, 2rem + 3vw, 4.5rem); }
.service-group__head { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.service-group__head h2 { margin: 0; font-size: var(--step-3); }
.service-group__head p { margin: 0; color: var(--muted); }

.service-detail { display: grid; gap: 2rem; padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.service-detail + .service-detail { margin-top: 1.25rem; }
@media (min-width: 56.25em) { .service-detail { grid-template-columns: .9fr 1.1fr; gap: 3rem; } }
.service-detail__head .card__icon { margin-bottom: 1rem; }
.service-detail h3 { font-size: var(--step-3); }
.service-detail__tagline { font-family: var(--font-display); font-style: italic; font-size: 1.15rem; color: var(--brass-deep); margin-bottom: .75rem; }
.service-detail__includes { display: grid; gap: 1rem 1.5rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 37.5em) { .service-detail__includes { grid-template-columns: 1fr 1fr; } }
.service-detail__includes li { padding-left: 1rem; border-left: 2px solid var(--brass); }
.service-detail__includes strong { display: block; color: var(--navy); margin-bottom: .2rem; }
.service-detail__includes span { color: var(--muted); font-size: .93rem; line-height: 1.55; display: block; }
.service-detail .btn-row { margin-top: 1.5rem; }

.subnav { position: sticky; top: var(--header-h); z-index: 50; background: rgba(251, 247, 244, .95); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.subnav ul { display: flex; gap: .25rem; margin: 0; padding: .6rem 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav ul { justify-content: space-between; }
.subnav a { display: block; padding: .4rem .6rem; border-radius: var(--radius); font-size: .88rem; font-weight: 550; color: var(--navy); text-decoration: none; white-space: nowrap; }
.subnav a:hover { background: var(--linen-deep); }

/* Promise / team tiles */
.tile { padding: 1.5rem; border-top: 2px solid var(--brass); background: var(--surface); border-radius: 0 0 var(--radius) var(--radius); height: 100%; }
.tile h3 { font-size: 1.2rem; }
.tile p { color: var(--muted); margin: 0; font-size: .95rem; }
.section--navy .tile { background: transparent; border-top-color: var(--brass-light); padding-inline: 0; }
.section--navy .tile p { color: var(--muted-navy); }

/* Testimonials */
.testimonial {
  display: flex; flex-direction: column; margin: 0; height: 100%;
  padding: 1.75rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.testimonial__mark { width: 2.25rem; height: 2.25rem; color: var(--brass); margin-bottom: 1rem; }
.testimonial blockquote { margin: 0 0 1.5rem; font-family: var(--font-display); font-size: 1.15rem; line-height: 1.5; color: var(--navy); font-variation-settings: "opsz" 24; }
.testimonial blockquote p { margin: 0; }
.testimonial figcaption { display: flex; align-items: center; gap: .85rem; margin-top: auto; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.testimonial__avatar { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; flex-shrink: 0; border-radius: 50%; background: var(--linen-deep); color: var(--navy); font-weight: 650; font-size: .9rem; overflow: hidden; }
.testimonial__avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial__name { display: block; font-weight: 650; color: var(--navy); }
.testimonial__meta { display: block; font-size: .87rem; color: var(--muted); }
.testimonial--featured { padding: clamp(1.75rem, 1rem + 3vw, 3rem); background: var(--navy); border-color: var(--navy); }
.testimonial--featured blockquote { font-size: var(--step-3); color: #fff; }
.testimonial--featured figcaption { border-color: var(--line-navy); }
.testimonial--featured .testimonial__name { color: #fff; }
.testimonial--featured .testimonial__meta { color: var(--muted-navy); }
.testimonial--featured .testimonial__avatar { background: var(--navy-soft); color: var(--brass-light); }

/* Blog cards */
.post-card { display: flex; flex-direction: column; height: 100%; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow .25s var(--ease), transform .25s var(--ease), border-color .25s var(--ease); }
@media (hover: hover) { .post-card:hover { box-shadow: var(--shadow-sm); border-color: var(--brass); } }
.post-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--linen-deep); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.4rem 1.5rem 1.6rem; }
.post-card__meta { display: flex; flex-wrap: wrap; gap: .25rem .75rem; margin-bottom: .6rem; font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--brass-deep); }
.post-card__meta time { color: var(--muted); font-weight: 500; letter-spacing: 0; text-transform: none; }
.post-card h3 { font-size: 1.25rem; margin-bottom: .5em; }
.post-card h3 a { color: var(--navy); text-decoration: none; }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; }
.post-card p { color: var(--muted); font-size: .95rem; margin-bottom: 1rem; }
.post-card__more { margin-top: auto; font-weight: 600; font-size: .9rem; color: var(--navy); display: inline-flex; align-items: center; gap: .35rem; }
.post-card__more svg { width: 1rem; height: 1rem; }
@media (min-width: 56.25em) {
  .post-card--featured { flex-direction: row; grid-column: 1 / -1; }
  .post-card--featured .post-card__media { flex: 1.2; aspect-ratio: auto; min-height: 22rem; }
  .post-card--featured .post-card__body { flex: 1; padding: 2.5rem; justify-content: center; }
  .post-card--featured h3 { font-size: var(--step-3); }
}
.filter-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filter-chip { padding: .45rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface); font-size: .88rem; font-weight: 550; color: var(--navy); }
.filter-chip:hover { border-color: var(--navy); }
.filter-chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }

/* 8. Process & steps ------------------------------------------------------ */
.steps { display: grid; gap: 1.25rem; margin: 0; padding: 0; list-style: none; counter-reset: step; }
@media (min-width: 43.75em) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 68.75em) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding: 1.75rem 1.5rem 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); counter-increment: step; }
.step::before {
  content: "0" counter(step);
  display: block; margin-bottom: 1rem;
  font-family: var(--font-display); font-size: 2.5rem; font-weight: 400; font-style: italic; line-height: 1;
  color: var(--brass-deep);
}
.step h3 { font-size: 1.2rem; }
.step p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (min-width: 68.75em) {
  .step:not(:last-child)::after {
    content: ""; position: absolute; top: 2.9rem; right: -1.25rem; width: 1.25rem; height: 1.5px; background: var(--brass);
  }
}
.section--navy .step { background: var(--navy-soft); border-color: var(--line-navy); }
.section--navy .step p { color: var(--muted-navy); }

.stage-list { margin: 0; padding: 0; list-style: none; counter-reset: stage; }
.stage { position: relative; display: grid; gap: 1.5rem; padding: 0 0 clamp(2.5rem, 2rem + 2vw, 3.5rem) 4.5rem; counter-increment: stage; }
.stage::before {
  content: counter(stage);
  position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 3rem; height: 3rem;
  border-radius: 50%; background: var(--navy); color: var(--brass-light);
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 500;
}
.stage::after { content: ""; position: absolute; left: calc(1.5rem - 1px); top: 3.5rem; bottom: .5rem; width: 2px; background: linear-gradient(var(--brass), rgba(204, 168, 0, .15)); }
.stage:last-child::after { display: none; }
.stage:last-child { padding-bottom: 0; }
.stage h2 { font-size: var(--step-3); margin-bottom: .35em; }
.stage__lead { color: var(--muted); max-width: 42rem; margin: 0; }
.stage__cols { display: grid; gap: 1rem; }
@media (min-width: 43.75em) { .stage__cols { grid-template-columns: 1fr 1fr; } }
.stage__col { padding: 1.25rem 1.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.stage__col h3 { display: flex; align-items: center; gap: .5rem; font-family: var(--font-sans); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brass-deep); margin-bottom: .6rem; }
.stage__col h3 svg { width: 1rem; height: 1rem; }
.stage__col p { margin: 0; color: var(--charcoal); font-size: .96rem; }
.stage__col--you { background: var(--linen-deep); }


/* 9. FAQ ------------------------------------------------------------------ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative; display: block; padding: 1.2rem 3rem 1.2rem 0; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 520; color: var(--navy); line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .25rem; top: 50%; width: 1.75rem; height: 1.75rem; margin-top: -.875rem;
  border: 1.5px solid var(--line); border-radius: var(--radius);
  background:
    linear-gradient(var(--navy), var(--navy)) center / 10px 1.5px no-repeat,
    linear-gradient(var(--navy), var(--navy)) center / 1.5px 10px no-repeat;
  transition: transform .3s var(--ease), background-color .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--linen-deep); }
.faq summary:hover { color: var(--ember); }
.faq__answer { padding: 0 3rem 1.4rem 0; color: var(--muted); }
.faq__answer p:last-child { margin-bottom: 0; }

/* 10. Forms --------------------------------------------------------------- */
.form-grid { display: grid; gap: 1rem 1.1rem; }
@media (min-width: 37.5em) { .form-grid--2 { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.field label, .field legend, .field__label { font-size: .9rem; font-weight: 600; color: var(--navy); padding: 0; }
.req { color: var(--ember); margin-left: .1em; }
.field__hint { font-size: .82rem; color: var(--muted); margin: 0; }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: .7rem .9rem;
  border: 1.5px solid #d6ccc0; border-radius: var(--radius); background: #fff; color: var(--charcoal);
  font-size: 1rem; line-height: 1.4;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.input::placeholder, .textarea::placeholder { color: #9a928a; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--navy); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(188, 57, 8, .35); }
.textarea { min-height: 7.5rem; resize: vertical; }
.select {
  appearance: none; -webkit-appearance: none; padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d2b3a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8rem center; background-size: 1.1rem;
}
.field.is-invalid .input, .field.is-invalid .select, .field.is-invalid .textarea, .field.is-invalid .dropzone { border-color: var(--error); }
.field__error { display: flex; gap: .35rem; align-items: flex-start; margin: 0; font-size: .85rem; font-weight: 550; color: var(--error); }
.field__error svg { width: 1rem; height: 1rem; margin-top: .1rem; }

fieldset.field { margin: 0; padding: 0; border: 0; }
.checks { display: grid; gap: .5rem .9rem; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); margin-top: .35rem; }
.check { position: relative; display: flex; align-items: flex-start; gap: .6rem; font-size: .93rem; line-height: 1.4; cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 1.2rem; height: 1.2rem; margin: 0; }
.check__box {
  display: grid; place-items: center; width: 1.2rem; height: 1.2rem; flex-shrink: 0; margin-top: .05rem;
  border: 1.5px solid #b7aa9b; border-radius: var(--radius); background: #fff; transition: background-color .15s, border-color .15s;
}
.check__box svg { width: .85rem; height: .85rem; color: #fff; opacity: 0; transform: scale(.6); transition: opacity .15s, transform .15s var(--ease); }
.check input:checked + .check__box { background: var(--navy); border-color: var(--navy); }
.check input:checked + .check__box svg { opacity: 1; transform: none; }
.check input:focus-visible + .check__box { outline: var(--focus); outline-offset: 2px; }
.field .check { font-weight: 450; color: var(--charcoal); font-size: .93rem; }
.field .check--consent { font-size: .88rem; color: var(--muted); }
.check--consent a { color: var(--navy); }
.field.is-invalid .check__box { border-color: var(--error); }

.dropzone {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem;
  padding: 1.5rem 1rem; text-align: center; cursor: pointer;
  border: 1.5px dashed #b7aa9b; border-radius: var(--radius); background: var(--linen);
  transition: border-color .2s, background-color .2s;
}
.dropzone:hover, .dropzone.is-dragover { border-color: var(--navy); background: var(--linen-deep); }
.dropzone:focus-within { outline: var(--focus); outline-offset: 2px; }
.dropzone input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.dropzone__icon { width: 2rem; height: 2rem; color: var(--brass-deep); }
.dropzone__title { font-weight: 600; color: var(--navy); }
.dropzone__title u { text-decoration-color: var(--brass); text-underline-offset: .2em; }
.dropzone__hint { font-size: .82rem; color: var(--muted); }
.file-chip { display: flex; align-items: center; gap: .75rem; padding: .75rem .9rem; border: 1.5px solid var(--navy); border-radius: var(--radius); background: #fff; }
.file-chip > svg { width: 1.5rem; height: 1.5rem; color: var(--navy); }
.file-chip__text { flex: 1; min-width: 0; }
.file-chip__name { display: block; font-weight: 600; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-chip__size { display: block; font-size: .82rem; color: var(--muted); }
.file-chip__remove { display: inline-flex; align-items: center; gap: .3rem; padding: .4rem .7rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-size: .82rem; font-weight: 600; color: var(--navy); }
.file-chip__remove:hover { border-color: var(--error); color: var(--error); }
.file-chip__remove svg { width: .9rem; height: .9rem; }

.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.form-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.25rem; }
.form-footer__note { display: flex; align-items: center; gap: .45rem; margin: 0; font-size: .85rem; color: var(--muted); }
.form-footer__note svg { width: 1rem; height: 1rem; color: var(--brass-deep); }
.form-status { margin: 1rem 0 0; font-size: .92rem; font-weight: 550; }
.form-status:empty { display: none; }
.form-status.is-error { padding: .8rem 1rem; border-radius: var(--radius); background: #fbeceb; color: var(--error); }

.form-success { text-align: center; padding: 1.5rem .5rem; }
.form-success:focus { outline: none; }
.form-success__icon { display: grid; place-items: center; width: 4rem; height: 4rem; margin: 0 auto 1.25rem; border-radius: 50%; background: var(--navy); color: var(--brass-light); }
.form-success__icon svg { width: 1.9rem; height: 1.9rem; }
.form-success h2, .form-success h3 { font-size: var(--step-3); }
.form-success p { color: var(--muted); max-width: 30rem; margin-inline: auto; }

/* 11. Manuscript modal ---------------------------------------------------- */
.modal {
  width: min(100% - 2rem, 50rem); max-height: min(100% - 2rem, 58rem);
  margin: auto; padding: 0; border: 0; border-radius: var(--radius-lg);
  background: var(--surface); color: var(--charcoal); box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.modal[open] { display: flex; flex-direction: column; animation: modal-in .22s var(--ease); }
.modal::backdrop { background: rgba(16, 26, 38, .72); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: fade-in .3s var(--ease); }
.modal.is-closing { animation: modal-out .22s ease-in forwards; }
.modal.is-closing::backdrop { animation: fade-out .22s ease-in forwards; }
@keyframes modal-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes modal-out { to { opacity: 0; transform: translateY(4px); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
.modal__header { position: relative; padding: 1.75rem clamp(1.25rem, 1rem + 2vw, 2.25rem) 1.25rem; background: var(--navy); color: var(--muted-navy); }
.modal__header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--brass-light), var(--brass), var(--brass-deep)); }
.modal__header h2 { color: #fff; font-size: var(--step-3); margin: 0 3rem .35rem 0; }
.modal__header p { margin: 0; font-size: .95rem; max-width: 36rem; }
.modal__close {
  position: absolute; top: 1.1rem; right: 1.1rem; display: grid; place-items: center;
  width: 2.75rem; height: 2.75rem; padding: 0; border: 1.5px solid var(--line-navy); border-radius: var(--radius);
  background: transparent; color: #fff; transition: background-color .2s, border-color .2s;
}
.modal__close:hover { background: var(--navy-soft); border-color: var(--brass-light); }
.modal__close svg { width: 1.2rem; height: 1.2rem; }
.modal__body { padding: 1.5rem clamp(1.25rem, 1rem + 2vw, 2.25rem) 2rem; overflow-y: auto; overscroll-behavior: contain; }
.modal__trust { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin: .9rem 0 0; padding: 0; list-style: none; font-size: .85rem; color: #e8edf2; }
.modal__trust li { display: inline-flex; align-items: center; gap: .35rem; }
.modal__trust svg { width: 1rem; height: 1rem; color: var(--brass-light); }
/* Without JavaScript, "Submit Manuscript" links (#manuscript-modal) still open the form */
.no-js .modal:target { display: flex; flex-direction: column; position: fixed; inset: 1rem; z-index: 300; width: auto; max-width: 50rem; margin: auto; box-shadow: 0 0 0 100vmax rgba(16, 26, 38, .72); }
@media (max-width: 37.4375em) {
  .modal { width: 100%; max-width: 100%; height: 100%; max-height: 100%; border-radius: 0; }
}

/* 12. Bookshelf ----------------------------------------------------------- */
.bookcase-wrap { position: relative; }
.shelf-hint { display: flex; align-items: center; justify-content: center; gap: .5rem; margin: 1.25rem 0 0; font-size: .9rem; color: var(--muted); }
.shelf-hint svg { width: 1rem; height: 1rem; color: var(--brass-deep); }

/* 12a. 3D bookcase (desktop, motion allowed, JS on) */
.bookcase {
  position: relative; padding: 1.25rem 1.25rem 0;
  border-radius: 14px 14px 6px 6px;
  background:
    linear-gradient(90deg, var(--wood-deep), var(--wood) 1.25rem, transparent 1.25rem, transparent calc(100% - 1.25rem), var(--wood) calc(100% - 1.25rem), var(--wood-deep)),
    linear-gradient(180deg, var(--wood) 0, var(--wood-light) .6rem, var(--wood) 1.25rem, transparent 1.25rem);
  box-shadow: var(--shadow-lg);
}
.bookcase__bays { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; background: radial-gradient(120% 90% at 50% 30%, #22344a 0%, var(--navy-deep) 75%); box-shadow: inset 0 18px 30px rgba(0, 0, 0, .45), inset 0 -4px 10px rgba(0, 0, 0, .3); }
@media (min-width: 68.75em) { .bookcase__bays { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Eight genre bays plus one "next on the shelf" bay: two columns on tablets (the last bay spans both), three on desktop. */
.bay { position: relative; display: flex; flex-direction: column; align-items: center; padding: 1.25rem .75rem 0; border-left: 10px solid var(--wood); box-shadow: inset 8px 0 14px -6px rgba(0, 0, 0, .55); }
.bay::before { /* warm light falling from the shelf above */
  content: ""; position: absolute; inset: 0 0 22px; z-index: 0; pointer-events: none;
  background: radial-gradient(75% 55% at 50% 0, rgba(232, 207, 106, .13), transparent 72%);
}
.bay:nth-child(odd), .bay--next { border-left: 0; box-shadow: none; }
@media (min-width: 68.75em) {
  .bay:nth-child(odd) { border-left: 10px solid var(--wood); box-shadow: inset 8px 0 14px -6px rgba(0, 0, 0, .55); }
  .bay:nth-child(3n + 1) { border-left: 0; box-shadow: none; }
}
.bay--next { grid-column: 1 / -1; }
@media (min-width: 68.75em) { .bay--next { grid-column: auto; border-left: 10px solid var(--wood); box-shadow: inset 8px 0 14px -6px rgba(0, 0, 0, .55); } }
.bay__plate {
  position: relative; z-index: 2; margin: 0 0 1.25rem; padding: .35rem .9rem;
  border-radius: 4px; background: linear-gradient(135deg, #f1dc84, var(--brass) 50%, #b99700);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .5);
  font-family: var(--font-sans); font-size: .72rem; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; color: var(--navy-deep);
}
.bay__plate::before, .bay__plate::after { content: ""; position: absolute; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: #7a6500; box-shadow: inset 0 1px 1px rgba(0,0,0,.4); }
.bay__plate::before { left: 4px; } .bay__plate::after { right: 4px; }
.bay__row {
  position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 3px;
  width: 100%; min-height: 290px; padding: 0 .25rem;
  perspective: 1400px; perspective-origin: 50% -15%;
}
.bay__ledge {
  position: relative; z-index: 3; width: calc(100% + 1.5rem); height: 22px; margin: 0 -.75rem;
  background: linear-gradient(180deg, #a07a50 0, var(--wood-light) 3px, var(--wood) 40%, var(--wood-deep) 100%);
  box-shadow: 0 10px 18px rgba(0, 0, 0, .45);
}
.bookend {
  align-self: flex-end; flex-shrink: 0; width: 12px; height: 120px; margin-left: 8px;
  background: linear-gradient(90deg, #8f7a10, var(--brass-light) 40%, var(--brass) 60%, #7a6500);
  border-radius: 3px 3px 0 0; box-shadow: -3px 0 8px rgba(0, 0, 0, .35);
}
.bookend--left { margin-left: 0; margin-right: 8px; box-shadow: 3px 0 8px rgba(0, 0, 0, .35); }

/* Crown moulding and plinth, so the nine bays read as one piece of furniture */
.bookcase { margin-top: 18px; }
.bookcase::before {
  content: ""; position: absolute; z-index: 4; top: -18px; left: -12px; right: -12px; height: 20px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--wood-light) 0, var(--wood) 35%, var(--wood-deep) 100%);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .35), inset 0 2px 0 rgba(255, 255, 255, .18), inset 0 -3px 0 var(--brass);
}
.bookcase::after {
  content: ""; display: block; height: 26px; margin: 0 -1.25rem;
  background: linear-gradient(180deg, var(--wood-deep), #2a1c0f);
  border-radius: 0 0 6px 6px; box-shadow: inset 0 3px 0 rgba(0, 0, 0, .3);
}

/* Empty slots in the "Next on the shelf" bay, with the "Your book here" spine standing among them */
.book.book--slot { cursor: default; border: 2px dashed rgba(232, 207, 106, .4); border-bottom: 0; border-radius: 2px 2px 0 0; background: rgba(255, 255, 255, .03); pointer-events: none; }
.book.book--slot::after { display: none; }
.book--yours .spine__title { font-size: var(--spine-fs, 13px); }
.book.book--yours .spine__genre { display: block; }

.book {
  --spine: #394963; --ink: #f3e6c4;
  position: relative; display: block; flex-shrink: 0;
  width: var(--t); height: var(--h);
  margin: 0; padding: 0; border: 0; background: none; color: var(--ink);
  transform-style: preserve-3d;
  transition: transform .45s var(--ease);
  cursor: pointer;
}
.book:hover, .book:focus-visible { transform: translateZ(46px) translateY(-14px); }
.book:focus-visible { outline: none; }
.book:focus-visible .book__spine { outline: 3px solid var(--brass-light); outline-offset: 3px; }
.book.is-out { visibility: hidden; transition: none; }
.book__face { position: absolute; display: block; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.book__spine, .vbook__spine {
  inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: .7rem 0 .6rem; overflow: hidden; border-radius: 2px 2px 1px 1px;
  background:
    linear-gradient(90deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 14%, rgba(255,255,255,.12) 42%, rgba(255,255,255,0) 62%, rgba(0,0,0,.08) 86%, rgba(0,0,0,.4) 100%),
    linear-gradient(180deg, transparent 0 8%, rgba(255,255,255,.14) 8% calc(8% + 1px), transparent calc(8% + 1px) 92%, rgba(255,255,255,.14) 92% calc(92% + 1px), transparent calc(92% + 1px)),
    var(--spine);
  color: var(--ink);
}
.spine__title {
  flex: 1; min-height: 0; overflow: hidden;
  writing-mode: vertical-rl; text-orientation: mixed;
  font-family: var(--font-display); font-weight: 560; font-size: var(--spine-fs, .82rem); line-height: 1.05; letter-spacing: .01em;
  text-align: center; overflow-wrap: anywhere;
}
.spine__author { writing-mode: vertical-rl; font-family: var(--font-sans); font-size: calc(var(--spine-fs, .82rem) * .62); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; opacity: .85; margin: .45rem 0; white-space: nowrap; }
.spine__genre {
  display: block; width: 70%; padding: .2rem 0; border-top: 1px solid currentColor;
  font-family: var(--font-sans); font-size: calc(var(--spine-fs, .82rem) * .5); font-weight: 750; letter-spacing: .08em; text-transform: uppercase; text-align: center; opacity: .9;
}
.book__top {
  left: 0; bottom: 100%; width: var(--t); height: var(--d);
  transform-origin: bottom center; transform: rotateX(90deg);
  background: repeating-linear-gradient(90deg, #efe6d6 0 1px, #fbf5ea 1px 3px);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.15);
}
.book__top::before, .book__top::after { content: ""; position: absolute; top: 0; bottom: 0; width: 2px; background: var(--spine); }
.book__top::before { left: 0; } .book__top::after { right: 0; }
.book__side { top: 0; width: var(--d); height: var(--h); background: linear-gradient(90deg, var(--spine), rgba(0,0,0,.6)); background-color: var(--spine); }
.book__side--l { right: 100%; transform-origin: right center; transform: rotateY(-90deg); }
.book__side--r { left: 100%; transform-origin: left center; transform: rotateY(90deg); }
.book::after { /* soft contact shadow on the ledge */
  content: ""; position: absolute; left: -2px; right: -2px; bottom: -3px; height: 6px;
  background: rgba(0, 0, 0, .45); filter: blur(3px); transform: translateZ(-1px); pointer-events: none;
}

/* 12b. Simple CSS-only shelf (mobile, reduced motion, no JS) */
.shelf-simple { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
.shelf-simple__group h3 { display: flex; align-items: center; gap: .6rem; margin-bottom: .9rem; font-family: var(--font-sans); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-deep); }
.shelf-simple__group h3::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.shelf-simple__row {
  position: relative; display: flex; align-items: flex-end; gap: 1rem;
  margin: 0; padding: 0 1rem 0; list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin;
  padding-top: 1rem;
}
.shelf-simple__row::after { content: none; }
.shelf-simple__group { position: relative; min-width: 0; }
.shelf-simple__ledge { height: 14px; margin-top: -2px; border-radius: 3px; background: linear-gradient(180deg, #a07a50, var(--wood) 40%, var(--wood-deep)); box-shadow: 0 8px 14px rgba(43, 30, 18, .3); }
.shelf-simple__item { flex: 0 0 auto; width: 8.5rem; scroll-snap-align: start; }
.shelf-simple__item a { display: block; color: var(--navy); text-decoration: none; }
.shelf-simple__cover { display: flex; align-items: flex-end; height: 12.5rem; }
.shelf-simple__cover img { width: 100%; height: auto; max-height: 12.5rem; object-fit: contain; object-position: bottom; border-radius: 2px 4px 4px 2px; box-shadow: -3px 0 0 rgba(0,0,0,.12) inset, 4px 6px 14px rgba(16, 26, 38, .28); transition: transform .3s var(--ease); }
.shelf-simple__item a:hover img, .shelf-simple__item a:focus-visible img { transform: translateY(-6px); }
.shelf-simple__caption { display: block; padding: .9rem 0 0; }
.shelf-simple__title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: .85rem; font-weight: 600; line-height: 1.3; }
.shelf-simple__author { display: block; margin-top: .15rem; font-size: .8rem; color: var(--muted); }
.shelf-simple__amazon { display: inline-flex; align-items: center; gap: .25rem; margin-top: .3rem; font-size: .78rem; font-weight: 600; color: var(--brass-deep); }
.shelf-simple__amazon svg { width: .8rem; height: .8rem; }
@media (min-width: 48em) {
  .shelf-simple { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 2rem; }
}

/* Which shelf shows */
.bookcase-wrap .bookcase, .bookcase-wrap .shelf-hint { display: none; }
@media (min-width: 48em) and (prefers-reduced-motion: no-preference) {
  .js .bookcase-wrap .bookcase { display: block; }
  .js .bookcase-wrap .shelf-hint { display: flex; }
  .js .bookcase-wrap .shelf-simple { display: none; }
}

/* Book catalogue (Our Books page) */
/* Placeholder cover for titles without a cover image yet (text only, no image) */
.cover-ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5em; width: 100%; aspect-ratio: 400 / 599; padding: .7em; overflow: hidden; background: var(--spine); color: var(--ink); border-radius: 2px 4px 4px 2px; text-align: center; line-height: 1.15; box-shadow: -3px 0 0 rgba(0, 0, 0, .12) inset, 4px 6px 14px rgba(16, 26, 38, .28); }
.cover-ph__title { font-family: var(--font-display); font-size: .82rem; font-weight: 560; overflow-wrap: anywhere; }
.cover-ph__author { font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.shelf-simple__cover .cover-ph { width: 8.3rem; max-width: 100%; }
.shelf-simple__link { display: block; color: var(--navy); }
.case-card .cover-ph { align-self: center; width: 8.5rem; margin-bottom: .5rem; }
.case-hero .cover-ph, .case-cover .cover-ph { max-width: 14rem; margin-inline: auto; padding: 1.2em; }
.case-cover .cover-ph .cover-ph__title { font-size: 1.15rem; }
.case-cover .cover-ph .cover-ph__author { font-size: .72rem; }
.cover-ph--mini { width: 3rem; padding: .25em; border-radius: 2px; box-shadow: 0 2px 6px rgba(16, 26, 38, .2); }
.cover-ph--mini .cover-ph__title, .cover-ph--mini .cover-ph__author { display: none; }
.content-note { display: block; margin-top: .25rem; font-size: .76rem; font-weight: 600; color: var(--ember, #9a3b1f); }
.shelf-simple__caption .content-note { font-size: .74rem; }
.case-card__note { font-size: .78rem; font-weight: 600; color: var(--ember, #9a3b1f); }
.case-card__status { font-size: .8rem; font-style: italic; }
.case-card__links { position: relative; z-index: 1; margin-top: auto; padding-top: .3rem; }
.case-card__links a { font-size: .85rem; font-weight: 600; color: var(--brass-deep); }
.catalogue { display: grid; gap: 2.5rem; }
@media (min-width: 56.25em) { .catalogue { grid-template-columns: repeat(2, 1fr); gap: 3rem 4rem; } }
.catalogue h3 { font-size: 1.3rem; padding-bottom: .6rem; border-bottom: 2px solid var(--brass); }
.catalogue ul { margin: 0; padding: 0; list-style: none; }
.catalogue li { display: grid; grid-template-columns: 3rem 1fr auto; gap: 1rem; align-items: center; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.catalogue img { width: 3rem; height: auto; border-radius: 2px; box-shadow: 0 2px 6px rgba(16, 26, 38, .2); }
.catalogue__title { display: block; font-weight: 600; color: var(--navy); line-height: 1.35; font-size: .95rem; }
.catalogue__author { display: block; font-size: .85rem; color: var(--muted); }
.catalogue a.btn { min-height: 38px; padding: .4rem .9rem; font-size: .82rem; }

/* 13. Book viewer --------------------------------------------------------- */
.book-viewer {
  width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0;
  background: transparent; color: #e8edf2; overflow: hidden;
}
.book-viewer[open] { display: grid; place-items: center; }
.book-viewer::backdrop { background: radial-gradient(80rem 50rem at 40% 45%, rgba(34, 52, 74, .97), rgba(12, 20, 30, .985)); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .45s var(--ease); }
.book-viewer.is-visible::backdrop { opacity: 1; }
.book-viewer__layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 3rem; align-items: center; width: min(100% - 3rem, 64rem); }
.book-viewer__stage {
  position: relative; display: grid; place-items: center; height: min(72vh, 34rem);
  perspective: 1800px; touch-action: pan-y; cursor: grab; border-radius: var(--radius-lg);
  -webkit-user-select: none; user-select: none;
}
.book-viewer__stage:active { cursor: grabbing; }
.book-viewer__stage::after {
  content: ""; position: absolute; left: 50%; bottom: 4%; width: 60%; height: 28px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(0, 0, 0, .55), transparent); opacity: 0; transition: opacity .5s var(--ease);
}
.book-viewer.is-visible .book-viewer__stage::after { opacity: 1; }
.vbook { --spine: #394963; --ink: #f3e6c4; position: relative; width: var(--w); height: var(--h); transform-style: preserve-3d; will-change: transform; }
.vbook__face { position: absolute; display: block; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.vbook__front { inset: 0; transform: translateZ(calc(var(--t) / 2)); border-radius: 2px 5px 5px 2px; overflow: hidden; background: var(--spine); box-shadow: inset 4px 0 6px rgba(0,0,0,.2); }
.vbook__front img { width: 100%; height: 100%; object-fit: cover; }
.vbook__front img[hidden] { display: none; }
/* Typographic cover, used until a title has a cover image */
.vbook__textcover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(var(--h) * .04); padding: 12% 11%; text-align: center; color: var(--ink); box-shadow: inset 0 0 0 calc(var(--h) * .012) rgba(255, 255, 255, .22); }
.vbook__tctitle { font-family: var(--font-display); font-size: calc(var(--h) * .075); font-weight: 560; line-height: 1.12; overflow-wrap: anywhere; }
.vbook__tcauthor { font-size: calc(var(--h) * .033); letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.book-viewer__note { margin: -.4rem 0 1rem; font-size: .9rem; color: var(--brass-light); }
.vbook__front::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.28) 0, rgba(255,255,255,.12) 2.5%, rgba(0,0,0,0) 6%, rgba(255,255,255,0) 70%, rgba(255,255,255,.08)); pointer-events: none; }
.vbook__back { inset: 0; transform: rotateY(180deg) translateZ(calc(var(--t) / 2)); background: linear-gradient(90deg, rgba(0,0,0,.15), rgba(0,0,0,.35)), var(--spine); border-radius: 5px 2px 2px 5px; }
.vbook__spine { position: absolute; top: 0; left: calc((var(--w) - var(--t)) / 2); width: var(--t); height: var(--h); transform: rotateY(-90deg) translateZ(calc(var(--w) / 2)); }
.vbook__spine .spine__title { font-size: var(--vspine-fs, 1rem); }
.vbook__spine .spine__author { font-size: calc(var(--vspine-fs, 1rem) * .62); }
.vbook__spine .spine__genre { font-size: calc(var(--vspine-fs, 1rem) * .5); }
.vbook__spine { padding: calc(var(--vspine-fs, 1rem) * .85) 0 calc(var(--vspine-fs, 1rem) * .75); }
.vbook__pages { top: 2px; left: calc((var(--w) - var(--t)) / 2); width: var(--t); height: calc(var(--h) - 4px); transform: rotateY(90deg) translateZ(calc(var(--w) / 2 - 2px)); background: repeating-linear-gradient(90deg, #efe6d6 0 1px, #fbf5ea 1px 3px); }
.vbook__top, .vbook__bottom { left: 0; top: calc((var(--h) - var(--t)) / 2); width: calc(var(--w) - 2px); height: var(--t); background: repeating-linear-gradient(0deg, #efe6d6 0 1px, #fbf5ea 1px 3px); }
.vbook__top { transform: rotateX(90deg) translateZ(calc(var(--h) / 2 - 1px)); }
.vbook__bottom { transform: rotateX(-90deg) translateZ(calc(var(--h) / 2 - 1px)); }

.book-viewer__info { opacity: 0; transform: translateX(16px); transition: opacity .4s var(--ease) .25s, transform .5s var(--ease) .25s; }
.book-viewer.is-visible .book-viewer__info { opacity: 1; transform: none; }
.book-viewer.is-leaving .book-viewer__info { opacity: 0; transition-delay: 0s; transition-duration: .2s; }
.book-viewer__info .eyebrow { color: var(--brass-light); }
.book-viewer__info h2 { color: #fff; font-size: var(--step-4); margin-bottom: .4em; }
.book-viewer__author { font-size: 1.1rem; color: var(--muted-navy); margin-bottom: 1.75rem; }
.book-viewer__author strong { color: #fff; font-weight: 600; }
.book-viewer__tip { margin: 1.5rem 0 0; font-size: .85rem; color: var(--muted-navy); display: flex; align-items: center; gap: .5rem; }
.book-viewer__tip svg { width: 1rem; height: 1rem; color: var(--brass-light); }
.book-viewer__close { position: fixed; top: 1.25rem; right: 1.25rem; border-color: var(--line-navy); }
@media (max-width: 56.1875em) {
  .book-viewer__layout { grid-template-columns: 1fr; gap: 1rem; text-align: center; }
  .book-viewer__stage { height: 48vh; }
  .book-viewer__info .btn-row { justify-content: center; }
  .book-viewer__tip { justify-content: center; }
}

/* 14. Footer & mobile action bar ----------------------------------------- */
.site-footer { background: var(--navy-deep); color: var(--muted-navy); font-size: .93rem; }
.footer__main { display: grid; gap: 2.5rem; padding-block: clamp(3rem, 2rem + 3vw, 4.5rem); }
@media (min-width: 43.75em) { .footer__main { grid-template-columns: 1fr 1fr; } }
@media (min-width: 68.75em) { .footer__main { grid-template-columns: 1.5fr 1fr 1.1fr 1.3fr; gap: 3rem; } }
.footer__brand img { width: auto; height: 64px; margin-bottom: 1.25rem; }
.footer__brand p { max-width: 22rem; }
.footer__mailing-address { margin: 1.25rem 0 0; color: #e8edf2; font-size: .88rem; line-height: 1.45; }
.footer__social { display: flex; align-items: center; gap: .65rem; margin-top: 1.25rem; }
.footer__social a { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line-navy); border-radius: var(--radius); transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease); }
.footer__social a:hover { background: var(--navy-soft); border-color: var(--brass-light); }
.footer__social img { display: block; width: 22px; height: 22px; }
.footer__ico { display: inline-flex; align-items: center; gap: .45rem; font-size: .82rem; }
.footer__ico svg { width: 1rem; height: 1rem; color: var(--brass-light); }
.footer__title { margin: 0 0 1rem; font-family: var(--font-sans); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-light); }
.footer__list { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.site-footer a, .footer__chat { color: #e8edf2; text-decoration: none; }
.site-footer a:hover, .footer__chat:hover { color: var(--brass-light); }
.footer__contact a, .footer__chat { display: inline-flex; align-items: center; gap: .55rem; }
.footer__contact svg, .footer__chat svg { width: 1.05rem; height: 1.05rem; color: var(--brass-light); }
.footer__chat { padding: 0; border: 0; background: none; font: inherit; }
.footer__contact .btn { margin-top: .75rem; }
.site-footer .btn--foil, .site-footer .btn--foil:hover { color: var(--navy-deep); }
.footer__bottom { border-top: 1px solid var(--line-navy); }
.footer__bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 2rem; padding-block: 1.4rem; font-size: .84rem; }
.footer__bottom p { margin: 0; }
.footer__legal { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 0; padding: 0; list-style: none; }

/* Footer map: loads Google Maps only when the visitor asks for it */
.footer-map { margin-top: 1.5rem; max-width: 22rem; }
.footer-map__address { display: flex; align-items: flex-start; gap: .55rem; margin: 0 0 .75rem; color: #e8edf2; font-size: .88rem; line-height: 1.45; }
.footer-map__address svg { flex-shrink: 0; width: 1.05rem; height: 1.05rem; margin-top: .15rem; color: var(--brass-light); }
.footer-map__frame {
  position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden;
  border: 1px solid var(--line-navy); border-radius: var(--radius);
  background:
    linear-gradient(115deg, transparent 46%, rgba(255, 255, 255, .09) 46% 48.5%, transparent 48.5%),
    linear-gradient(28deg, transparent 58%, rgba(255, 255, 255, .07) 58% 60%, transparent 60%),
    repeating-linear-gradient(0deg, transparent 0 22px, rgba(255, 255, 255, .05) 22px 23px),
    repeating-linear-gradient(90deg, transparent 0 34px, rgba(255, 255, 255, .05) 34px 35px),
    var(--navy-soft, #243649);
}
.footer-map__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.footer-map__load {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .55rem 1.1rem;
  border: 1px solid var(--brass-light); border-radius: var(--radius); background: rgba(16, 26, 38, .72); color: #fff;
  font: inherit; font-size: .88rem; font-weight: 650; cursor: pointer;
}
.footer-map__load svg { width: 1.05rem; height: 1.05rem; color: var(--brass-light); }
.footer-map__load:hover { background: var(--navy-deep); border-color: #fff; }
.footer-map__note { margin: .6rem 0 0; font-size: .78rem; line-height: 1.45; color: var(--muted-navy); }
.footer-map__note a { text-decoration: underline; text-underline-offset: 2px; }

.mobile-bar { display: none; }
@media (max-width: 47.9375em) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: .5rem;
    padding: .55rem .75rem calc(.55rem + env(safe-area-inset-bottom));
    background: rgba(255, 253, 251, .97); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(16, 26, 38, .08);
  }
  .mobile-bar a, .mobile-bar button {
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem;
    min-height: 48px; padding: .3rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface);
    font-size: .74rem; font-weight: 650; color: var(--navy); text-decoration: none;
  }
  .mobile-bar--four { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: .4rem; }
  .mobile-bar svg { width: 1.2rem; height: 1.2rem; }
  .mobile-bar .btn--foil { flex-direction: row; gap: .45rem; font-size: .9rem; border-radius: var(--radius); border-color: #b89600; color: var(--navy-deep); background: var(--brass); }
}

/* 15. Reveal-on-scroll & motion preferences ------------------------------ */
.js .reveal { opacity: 0; transform: translateY(6px); transition: opacity .45s var(--ease), transform .45s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .btn:hover, .card--link:hover, .post-card:hover, .contact-method:hover { transform: none; }
}

@media print {
  .utility-bar, .site-header, .mobile-bar, .cta-band, .modal, .book-viewer, .site-footer form { display: none !important; }
  body { background: #fff; }
}

/* "Your book here" spine on the shelf: opens the manuscript form */
.book--yours { text-decoration: none; }
.book--yours .book__spine {
  background: rgba(255, 255, 255, .04); border: 2px dashed rgba(232, 207, 106, .65);
  color: var(--brass-light); --ink: var(--brass-light);
}
.book--yours:hover .book__spine, .book--yours:focus-visible .book__spine { background: rgba(232, 207, 106, .12); }

.field__optional { font-weight: 400; color: var(--muted); font-size: .875em; }


/* ==========================================================================
   Added 12 Oct 2026: articles, case studies, legal pages, cookie banner
   ========================================================================== */
.footer__linkbtn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.footer__linkbtn:hover { color: var(--brass-light); }
.footer__linkbtn:focus-visible { outline: var(--focus); outline-offset: 3px; }

.catalogue__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; }
@media (max-width: 38rem) {
  .catalogue li { grid-template-columns: 3rem 1fr; }
  .catalogue__actions { grid-column: 1 / -1; justify-content: flex-start; }
}

/* Cookie banner (only rendered when a HubSpot Hub ID is set in js/main.js) */
.cookie-banner { position: fixed; inset: auto 1rem 1rem; z-index: 90; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; max-width: 56rem; margin-inline: auto; padding: 1rem 1.25rem; background: var(--navy); color: #fff; border: 1px solid var(--line-navy); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); font-size: .92rem; }
.cookie-banner p { margin: 0; flex: 1 1 22rem; color: var(--muted-navy); }
.cookie-banner a { color: var(--brass-light); }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-banner .btn--ghost { color: #fff; border-color: var(--muted-navy); }
@media (max-width: 47.99rem) { .cookie-banner { bottom: 4.75rem; } }

/* Long-form text (blog articles, case studies, legal pages) */
.prose { max-width: var(--container-narrow); margin-inline: auto; font-size: 1.05rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: var(--step-3); margin-top: 2.2em; margin-bottom: .2em; scroll-margin-top: calc(var(--header-h) + 1rem); }
.prose h3 { font-size: var(--step-2); margin-top: 1.8em; margin-bottom: .1em; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li + li { margin-top: .45em; }
.prose a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: var(--ember); }
.prose blockquote { margin-inline: 0; padding: 1rem 1.25rem; background: var(--linen-deep); border-left: 4px solid var(--brass); border-radius: 0 var(--radius) var(--radius) 0; color: var(--charcoal); }
.prose blockquote p { margin: 0; }
.prose blockquote p + p { margin-top: .6em; }
.prose table { width: 100%; border-collapse: collapse; font-size: .93rem; line-height: 1.5; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: .65rem .8rem; border-bottom: 1px solid var(--line); }
.prose th { background: var(--linen-deep); color: var(--navy); font-weight: 600; }
.table-wrap { overflow-x: auto; margin-top: 1.1em; border: 1px solid var(--line); border-radius: var(--radius); }
.table-wrap table { margin: 0; min-width: 34rem; }
.prose .small { font-size: .9rem; color: var(--muted); }

.legal-meta { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; font-size: .9rem; color: var(--muted); }
.toc { padding: 1.1rem 1.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font-size: .95rem; }
.toc h2 { font-size: 1rem; margin: 0 0 .5rem; }
.toc ol { margin: 0; padding-left: 1.2rem; columns: 2 16rem; column-gap: 2rem; }
.toc li { break-inside: avoid; margin: 0 0 .3em; }

.article-meta { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin-bottom: 1rem; font-size: .85rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--brass-deep); }
.article-meta time { color: var(--muted); font-weight: 500; letter-spacing: 0; text-transform: none; }
.article-cta { margin-top: 2.5rem !important; padding: 1.5rem; background: var(--navy); color: #fff; border-radius: var(--radius-lg); }
.article-cta h2 { color: #fff; font-size: var(--step-2); margin: 0 0 .3em; }
.article-cta p { color: var(--muted-navy); margin: 0 0 1rem; }
.article-cta .btn { color: var(--btn-fg); text-decoration: none; }
.service-detail__head .btn, .pathways .btn { max-width: 100%; white-space: normal; text-align: center; }
.related { margin-top: 3rem; }
.related h2 { font-size: var(--step-2); margin: 0 0 1rem; }
.related ul { list-style: none; padding: 0; display: grid; gap: .75rem; }
.related a { font-weight: 600; }

/* Case studies */
.case-hero { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 52rem) { .case-hero { grid-template-columns: 1fr 17rem; } }
.case-cover { justify-self: center; }
.case-cover img { width: 100%; max-width: 17rem; height: auto; border-radius: 4px; box-shadow: var(--shadow); }
.case-facts { display: grid; gap: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.case-facts div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: .8rem 1.1rem; border-bottom: 1px solid var(--line); }
.case-facts div:last-child { border-bottom: 0; }
.case-facts dt { font-weight: 600; color: var(--navy); }
.case-facts dd { margin: 0; color: var(--muted); }
@media (max-width: 34rem) { .case-facts div { grid-template-columns: 1fr; gap: .1rem; } }
.case-steps { list-style: none; padding: 0 !important; counter-reset: cs; display: grid; gap: 1rem; }
.case-steps li { counter-increment: cs; position: relative; margin: 0 !important; padding: 1.1rem 1.25rem 1.1rem 4rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.case-steps li::before { content: counter(cs); position: absolute; left: 1.1rem; top: 1rem; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--navy); color: var(--brass-light); font-weight: 600; font-size: .95rem; }
.case-steps strong { display: block; color: var(--navy); }
.case-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.case-card { position: relative; display: flex; flex-direction: column; gap: .5rem; padding: 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); transition: box-shadow .25s var(--ease), transform .25s var(--ease), border-color .25s var(--ease); }
@media (hover: hover) { .case-card:hover { box-shadow: var(--shadow-sm); border-color: var(--brass); } }
.case-card img { align-self: center; width: 8.5rem; height: auto; margin-bottom: .5rem; border-radius: 3px; box-shadow: 0 4px 14px rgba(16, 26, 38, .22); }
.case-card__genre { font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--brass-deep); }
.case-card h3 { font-size: 1.15rem; margin: 0; }
.case-card h3 a { color: var(--navy); text-decoration: none; }
.case-card h3 a::after { content: ""; position: absolute; inset: 0; }
.case-card p { margin: 0; font-size: .92rem; color: var(--muted); }
.case-group + .case-group { margin-top: 3.5rem; }
@media (min-width: 70em) { .case-group .case-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.1rem; } .case-group .case-card { padding: 1.1rem; } }
.case-group__title { margin: 0 0 1.25rem; padding-bottom: .6rem; border-bottom: 2px solid var(--brass); font-size: 1.3rem; }
.case-stats { margin-block: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.case-stats .stat { padding: 1.1rem 1.4rem; }
.case-stats .stat__value { font-size: var(--step-3); }
.case-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 2.5rem !important; padding-top: 1.5rem; border-top: 1px solid var(--line); }

/* Process stages now sit inside How We Work: stage titles are h3, column labels h4 */
.stage h3.stage__title { font-size: var(--step-3); margin-bottom: .35em; }
.stage__col h4 { display: flex; align-items: center; gap: .5rem; font-family: var(--font-sans); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brass-deep); margin-bottom: .6rem; }
.stage__col h4 svg { width: 1rem; height: 1rem; }

/* ==========================================================================
   Technical-audit fixes (12 Oct 2026)
   ========================================================================== */
/* Focus ring on dark surfaces: ember is only 2.55:1 on navy, so use brass (9.3:1) */
.utility-bar :focus-visible, .site-footer :focus-visible, .section--navy :focus-visible, .cta-band :focus-visible,
.modal__header :focus-visible, .cookie-banner :focus-visible, .book-viewer :focus-visible, .page-hero--navy :focus-visible { outline-color: var(--brass-light); }
/* Form controls: boundaries at 3:1 or better, and a readable placeholder */
.input, .select, .textarea { border-color: #857a6e; }
.check__box, .dropzone { border-color: #857a6e; }
.input::placeholder, .textarea::placeholder { color: #6b655f; }

/* Larger text sizes and long words: let grid children shrink and break */
.hero__grid > *, .page-hero__grid > *, .split > *, .contact-methods > *, .grid > *, .form-grid > *, .case-hero > * { min-width: 0; }
h1, h2, h3, h4, .lead, .contact-method strong, .contact-method span { overflow-wrap: break-word; }
.form-success h3 { overflow-wrap: anywhere; }

/* In-page anchors clear the sticky header */
.service-detail, .stage, section[id], article[id], [id].section { scroll-margin-top: calc(var(--header-h) + 1.5rem); }

/* Without JavaScript the compact menu cannot open, so show the links inline */
@media (max-width: 74.9375em) {
  .no-js .nav-toggle, .no-js .nav-extras { display: none; }
  .no-js .header__inner { flex-wrap: wrap; row-gap: 0; }
  .no-js .primary-nav { position: static; inset: auto; flex: 1 1 100%; order: 3; margin: 0; padding: 0 0 .5rem; border-top: 0; background: transparent; overflow: visible; opacity: 1; visibility: visible; transform: none; transition: none; }
  .no-js .primary-nav > ul { flex-direction: row; flex-wrap: wrap; max-width: none; margin: 0; }
  .no-js .primary-nav > ul > li { border-bottom: 0; }
  .no-js .primary-nav > ul a { padding: .5rem .6rem; font-family: var(--font-sans); font-size: .95rem; font-weight: 550; }
}

/* Keyboard-reachable scrolling tables */
.table-wrap:focus-visible { outline: var(--focus); outline-offset: 2px; }

/* The skip link moves focus to main; main itself needs no visible ring */
main:focus { outline: none; }
.visually-hidden[data-filter-status] { white-space: normal; }

/* Shelf-spine text is decorative and drawn here, so the button's accessible name comes only from its aria-label */
.book .spine__title::before, .book .spine__author::before, .book .spine__genre::before { content: attr(data-t); }
/* On the shelf the bay's brass plate already names the genre, so the narrow spines keep only the title and author (the book viewer's spine still shows the genre). */
.book .spine__genre { display: none; }

/* Live chat button (always visible) and its permission panel */
.chat-launcher { position: fixed; right: 1rem; bottom: 1rem; z-index: 80; width: 3.5rem; height: 3.5rem; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: var(--navy); color: #fff; box-shadow: var(--shadow-lg); cursor: pointer; }
.chat-launcher[hidden] { display: none; }
.chat-launcher svg { width: 1.5rem; height: 1.5rem; }
.chat-launcher:hover { background: var(--navy-deep); }
.chat-launcher:focus-visible { outline: 3px solid var(--brass-light); outline-offset: 3px; }
.chat-panel { position: fixed; right: 1rem; bottom: 5rem; z-index: 85; width: min(21rem, calc(100vw - 2rem)); padding: 1.1rem 1.2rem; background: var(--navy); color: #fff; border: 1px solid var(--line-navy); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); font-size: .92rem; }
.chat-panel h2 { margin: 0 0 .5rem; font-size: 1.1rem; color: #fff; }
.chat-panel p { margin: 0 0 .6rem; color: var(--muted-navy); }
.chat-panel a { color: var(--brass-light); }
.chat-panel .btn--ghost { color: #fff; border-color: var(--muted-navy); }
.chat-panel__actions { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; margin-top: .8rem; }
.chat-panel :focus-visible { outline-color: var(--brass-light); }
@media print { .chat-launcher, .chat-panel { display: none !important; } }
