/* Shared typography, spacing and interaction rules for the existing site. */
:root {
  --font-ui: Arial, Helvetica, sans-serif;
  --font-editorial: Georgia, 'Times New Roman', serif;
  --label-to-title: 20px;
  --title-to-copy: 24px;
  --card-title-to-copy: 16px;
  --motion-ease: cubic-bezier(.2, .7, .2, 1);
}

body, button, input, select, textarea, summary {
  font-family: var(--font-ui);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-editorial);
}

h1, h2, h3 {
  text-wrap: balance;
}

main h1, main h2 {
  margin-bottom: var(--title-to-copy);
}

main h3 {
  margin-bottom: var(--card-title-to-copy);
}

/* Page headings share one vertical rhythm; smaller card headings use a shorter step. */
.section > .eyebrow,
.code-intro > .eyebrow,
.dossier-top > .eyebrow,
.contact-heading > .eyebrow {
  margin-bottom: var(--label-to-title);
}

.section > h1,
.section > h2,
.section-title > h1,
.section-title > h2,
.contact-heading > h1,
.contact-heading > h2,
.code-intro > h1,
.dossier-top > h1,
.legal-page > h1,
.legal-page h2 {
  margin-top: 0;
  margin-bottom: var(--title-to-copy);
}

.legal-page h2 {
  margin-top: 42px;
}

.media-card h3,
.service-card h3,
.journey-books h3,
.editorial-grid h3,
.manuscript-card h4 {
  margin-bottom: var(--card-title-to-copy);
}

/* Movement marks an actionable surface. It never carries essential information. */
.button,
.text-link,
.header nav a,
.legal-access a,
.journey-toc a,
.journey-books a,
.inline-reveal > summary,
.portrait-modes button,
.portrait-node {
  transition: color .2s var(--motion-ease),
              background-color .2s var(--motion-ease),
              border-color .2s var(--motion-ease),
              box-shadow .24s var(--motion-ease),
              transform .24s var(--motion-ease),
              filter .2s var(--motion-ease);
}

.button {
  position: relative;
  min-height: 54px;
  border-width: 2px;
  border-radius: 8px;
  padding: 14px 20px;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: .01em;
  text-decoration: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(217, 239, 138, .35);
  box-shadow: 0 5px 0 rgba(0, 0, 0, .48),
              0 12px 20px rgba(9, 20, 15, .18),
              inset 0 1px 0 rgba(255, 255, 255, .24);
}

.button span {
  display: inline-block;
  transition: transform .24s var(--motion-ease);
}

.code-actions .button {
  min-height: 56px;
  padding: 14px 20px;
  font-size: 16px;
  line-height: 1.35;
}

.button:active:not(:disabled) {
  transform: translateY(4px);
  filter: brightness(.98);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .48),
              0 4px 8px rgba(9, 20, 15, .16);
}

.text-link {
  min-height: 34px;
  text-underline-offset: .22em;
}

.inline-reveal > summary {
  border-radius: 2px;
}

.journey-books a {
  transform-origin: center top;
}

:is(a, button, summary, input, select, textarea):focus-visible {
  outline: 3px solid #94b83d;
  outline-offset: 4px;
}

@media (hover: hover) and (pointer: fine) {
  .button:hover:not(:disabled) {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 7px 0 rgba(0, 0, 0, .46),
                0 16px 26px rgba(9, 20, 15, .24),
                inset 0 1px 0 rgba(255, 255, 255, .3);
  }

  .button:hover:not(:disabled) span {
    transform: translateX(4px);
  }

  .text-link:hover {
    color: inherit;
    transform: translateX(3px);
    border-bottom-color: currentColor;
  }

  .header nav a:hover,
  .legal-access a:hover,
  .journey-toc a:hover {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .36em;
  }

  .home .header nav a:hover,
  .dossier-page .text-link:hover,
  .journey-view .text-link:hover {
    color: #d9ef8a;
  }

  .inline-reveal > summary:hover {
    background: rgba(175, 211, 112, .14);
    box-shadow: inset 3px 0 #a8c75f;
  }

  .journey-books a:hover {
    transform: translateY(-3px);
    box-shadow: 0 9px 18px rgba(29, 45, 30, .12);
  }

  .portrait-modes button:hover,
  .portrait-node:hover {
    filter: brightness(1.18);
  }
}

@media (pointer: coarse) {
  .button, .text-link, .legal-access a, .journey-toc a {
    min-height: 44px;
  }
}

/* The six-link desktop header becomes a real touch menu on tablets too. */
@media (max-width: 1024px) {
  .header {
    width: 100%;
    min-height: 90px;
    padding-inline: 20px;
    flex-wrap: nowrap;
    position: relative;
    z-index: 20;
  }

  .header .brand { min-width: 0; }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    min-width: 78px;
    min-height: 48px;
    padding: 10px 14px;
    border: 2px solid #d9ef8a;
    border-radius: 7px;
    background: #d9ef8a;
    color: #181a19;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 4px 0 #5a672f;
    touch-action: manipulation;
  }

  .menu-toggle:active {
    transform: translateY(3px);
    box-shadow: 0 1px 0 #5a672f;
  }

  .header nav,
  .header nav.open {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 30;
    margin: 0;
    padding: 12px 20px 20px;
    background: #181a19;
    border: 1px solid #596a4c;
    border-top: 0;
    box-shadow: 0 18px 26px rgba(0, 0, 0, .28);
    flex-direction: column;
    gap: 2px;
  }

  .header nav { display: none; }
  .header nav.open { display: flex; }

  .header nav a {
    display: flex;
    align-items: center;
    min-height: 50px;
    width: 100%;
    padding: 12px 14px;
    font-size: 17px;
    line-height: 1.25;
    color: #f4f6eb;
    border-bottom: 1px solid #405043;
    text-decoration: none;
  }

  .header nav a:active { background: #34452b; }

  .header nav .nav-cta {
    margin: 9px 0 0;
    min-height: 54px;
    background: #d9ef8a;
    color: #181a19;
    border: 2px solid #d9ef8a;
    border-radius: 6px;
    box-shadow: 0 4px 0 #59662d;
  }

  .header nav .nav-cta span { padding-left: 0; }
}

/* The old mobile rule targeted every nav, including social and legal links. */
@media (max-width: 780px) {
  nav.profile-social,
  nav.journey-toc,
  nav.journey-next,
  nav.legal-access {
    display: flex;
    position: static;
    inset: auto;
    z-index: auto;
    padding-inline: 0;
    background: transparent;
  }

  nav.profile-social { padding-bottom: 0; border-bottom: 0; }
  nav.journey-toc { border-bottom: 1px solid var(--line); }
  nav.journey-next { flex-wrap: wrap; gap: 16px; border-bottom: 0; }
  nav.legal-access { border-bottom: 0; }

  .preview-bar {
    min-height: 46px;
    padding: 4px 16px;
    position: relative;
    z-index: 21;
  }

  .preview-bar .languages { gap: 3px; }
  .preview-bar .languages a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 36px;
    padding: 5px;
    font-size: 14px;
  }

  body { font-size: 17px; line-height: 1.65; }
  h1, h2, h3, h4 {
    line-height: 1.17;
    letter-spacing: -.025em;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .header .brand strong { font-size: clamp(17px, 4.8vw, 20px); }
  .header .brand > span { font-size: 11px; }
  .hero h1 { font-size: clamp(44px, 11vw, 68px); line-height: 1.13; }
  .hero-description { font-size: 18px; }
  .hero-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .code-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    margin: 26px 0 24px;
  }
  .code-actions .button {
    width: 100%;
    min-height: 58px;
    justify-content: center;
    text-align: center;
  }
  .hero-actions .button,
  .hero-actions .text-link { width: 100%; min-width: 0; }
  .hero-actions .button { min-height: 58px; }
  .hero-actions .text-link {
    min-height: 50px;
    padding: 10px 14px;
    justify-content: center;
    border: 2px solid #d9ef8a;
    border-radius: 7px;
    color: #f4f6eb;
    font-size: 16px;
    font-weight: 600;
  }

  .section { padding-block: clamp(48px, 9vw, 64px); }
  .wide-reveal .section { padding: 10px 0; }
  .inline-contact { padding-top: 25px; }
  .service-card, .entry-card, .media-card { min-width: 0; }
  .media-grid, .contact-paths { grid-template-columns: minmax(0, 1fr); }
  .contact-paths > * { min-width: 0; }
  .personal-contact, .business-enquiry { padding: clamp(18px, 5vw, 26px); }
  .business-enquiry .button, .personal-contact .button { width: 100%; }
  .business-enquiry input, .business-enquiry select, .business-enquiry textarea { min-width: 0; }
  .cf-turnstile { max-width: 100%; }
  .inner-page .books h1 { font-size: clamp(50px, 12vw, 72px); }
}

@media (max-width: 380px) {
  .header { padding-inline: 16px; }
  .header .brand > span { font-size: 10px; letter-spacing: .08em; }
  .code-intro h1 { font-size: clamp(44px, 12vw, 52px); }
  .code-intro h1 em { hyphens: none; overflow-wrap: normal; }
  .wide-reveal .reveal-content { padding: 10px; }
  .media-card h3, .book-description h3 { overflow-wrap: anywhere; }
}

@media (prefers-reduced-motion: reduce) {
  .button, .button span, .text-link, .header nav a,
  .legal-access a, .journey-toc a, .journey-books a,
  .inline-reveal > summary, .portrait-modes button, .portrait-node {
    transition: none;
    transform: none !important;
  }
}

/* Material depth guides attention without adding imagery or a third typeface. */
.code-hero {
  background-image:
    radial-gradient(ellipse at 18% 32%, rgba(216, 239, 138, .085), transparent 42%),
    radial-gradient(ellipse at 87% 86%, rgba(92, 129, 73, .13), transparent 46%),
    repeating-linear-gradient(112deg, rgba(255, 255, 255, .012) 0 1px, transparent 1px 7px);
}

.code-intro h1 em { text-shadow: 0 1px 18px rgba(217, 239, 138, .12); }
.code-description { border-left: 3px solid #b6d272; padding-left: 20px; }

.button {
  --button-edge: #435436;
  --button-shadow: rgba(12, 23, 14, .23);
  min-height: 58px;
  border: 2px solid rgba(31, 46, 25, .6);
  border-radius: 9px;
  background-image: linear-gradient(155deg, rgba(255, 255, 255, .33), transparent 36%, rgba(9, 27, 8, .1));
  box-shadow:
    0 8px 0 var(--button-edge),
    0 15px 0 rgba(12, 23, 14, .075),
    0 22px 29px var(--button-shadow),
    inset 0 2px 0 rgba(255, 255, 255, .58),
    inset 0 -2px 0 rgba(35, 56, 29, .18);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .24);
  margin-bottom: 8px;
  isolation: isolate;
}

.code-actions .button { min-height: 60px; padding-inline: 24px; }
.code-actions .button.hero-secondary {
  --button-edge: #080e0a;
  --button-shadow: rgba(0, 0, 0, .3);
  border-color: #a9c36f;
  background-image: linear-gradient(155deg, rgba(217, 239, 138, .13), transparent 45%, rgba(0, 0, 0, .2));
  text-shadow: none;
}
.entry-card:first-child .button,
.personal-contact .button { --button-edge: #647e42; }
.menu-toggle { background-image: linear-gradient(155deg, rgba(255, 255, 255, .4), transparent 55%, rgba(30, 46, 21, .13)); }

.button:active:not(:disabled) {
  transform: translateY(7px);
  filter: brightness(.98);
  box-shadow:
    0 1px 0 var(--button-edge),
    0 5px 9px rgba(9, 20, 15, .13),
    inset 0 3px 8px rgba(25, 45, 16, .19);
}

.journey-toc {
  gap: 8px;
  padding-top: 22px;
  padding-bottom: 22px;
  border-bottom: 0;
  scroll-padding-inline: 12px;
}
.journey-toc a {
  min-height: 50px;
  padding: 12px 15px;
  border: 1px solid #c4ceba;
  border-radius: 6px;
  background: linear-gradient(155deg, #fbfcf8, #eef2e9);
  box-shadow: 0 3px 0 #c6d2bb, inset 0 1px 0 #fff;
  font-weight: 700;
  text-decoration: none;
}
.journey-toc a span { color: #4f6a33; font-weight: 700; }
.journey-toc a:active { transform: translateY(2px); box-shadow: 0 1px 0 #c6d2bb; }

.journey-choices { gap: 20px; }
.journey-choices article {
  min-width: 0;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid #d0dac7;
  border-top: 4px solid #879e64;
  border-radius: 4px;
  background-image:
    radial-gradient(circle at 87% 12%, rgba(160, 184, 134, .09), transparent 36%),
    repeating-linear-gradient(100deg, rgba(53, 76, 42, .015) 0 1px, transparent 1px 6px),
    linear-gradient(145deg, #fff, #f7f9f3);
  box-shadow: 0 8px 0 rgba(122, 147, 112, .13), 0 18px 32px rgba(26, 43, 30, .065), inset 0 1px 0 #fff;
  transition: box-shadow .24s var(--motion-ease), transform .24s var(--motion-ease);
}
.journey-choices article:nth-child(2) { border-top-color: #435d3d; }
.journey-choices article h3 { margin-top: 5px; }

.journey-view {
  border-block: 1px solid #334735;
  background-image:
    radial-gradient(ellipse at 86% 20%, rgba(148, 176, 121, .1), transparent 42%),
    repeating-linear-gradient(112deg, rgba(242, 247, 223, .015) 0 1px, transparent 1px 8px),
    linear-gradient(160deg, #1b2820, #132019);
  box-shadow: inset 0 8px 20px rgba(0, 0, 0, .11), inset 0 -8px 20px rgba(0, 0, 0, .11);
}
.journey-view h2 { border-left: 4px solid #c7dca1; padding-left: clamp(16px, 3vw, 28px); }
.journey-scales span { text-shadow: 0 1px 0 rgba(0, 0, 0, .35); }

.journey-proof { border-top: 3px solid #9eb678; }
.journey-library {
  background-image:
    repeating-linear-gradient(105deg, rgba(61, 77, 50, .018) 0 1px, transparent 1px 7px),
    linear-gradient(150deg, #edf2e6, #e7ecda);
}
.journey-books { gap: 18px; }
.journey-books a {
  min-width: 0;
  padding: 24px;
  border: 1px solid #c5d0bb;
  border-top: 4px solid #869b65;
  border-radius: 4px;
  background: linear-gradient(150deg, rgba(255, 255, 255, .93), rgba(247, 250, 241, .82));
  box-shadow: 0 6px 0 rgba(93, 115, 75, .18), 0 14px 28px rgba(38, 57, 34, .09), inset 0 1px 0 #fff;
}
.journey-books a > span:first-child { margin-bottom: 8px; font-weight: 700; }
.journey-books a > span:last-child { margin-top: 0; }
.entry-card {
  border-top: 4px solid #819c59;
  background-image:
    radial-gradient(circle at 91% 8%, rgba(255, 255, 255, .25), transparent 41%),
    repeating-linear-gradient(110deg, rgba(40, 57, 30, .017) 0 1px, transparent 1px 7px);
  box-shadow: 0 8px 0 rgba(93, 115, 75, .17), 0 17px 30px rgba(28, 47, 29, .075);
}
.entry-card:first-child {
  border-top-color: #d9ef8a;
  background-image:
    radial-gradient(ellipse at 90% 4%, rgba(172, 200, 123, .11), transparent 50%),
    repeating-linear-gradient(110deg, rgba(255, 255, 255, .014) 0 1px, transparent 1px 7px);
}
.inline-reveal > summary { min-height: 54px; }
.inline-reveal[open] > summary { box-shadow: inset 3px 0 #a8c75f; padding-left: 14px; background: rgba(175, 211, 112, .1); }
.note-list > a { grid-template-columns: 70px minmax(0, 1fr); }

:is(.journey-section, .journey-view, .journey-proof, .journey-library, .entry-card):target {
  outline: 3px solid #a8c75f;
  outline-offset: -4px;
}

@media (hover: hover) and (pointer: fine) {
  .button:hover:not(:disabled) {
    transform: translateY(-2px);
    filter: brightness(1.045);
    box-shadow:
      0 10px 0 var(--button-edge),
      0 17px 0 rgba(12, 23, 14, .07),
      0 25px 34px var(--button-shadow),
      inset 0 2px 0 rgba(255, 255, 255, .62);
  }
  .button:hover:active:not(:disabled) { transform: translateY(7px); box-shadow: 0 1px 0 var(--button-edge), inset 0 3px 8px rgba(25, 45, 16, .19); }
  .journey-toc a:hover { transform: translateY(-2px); box-shadow: 0 5px 0 #b8c9aa, 0 12px 17px rgba(31, 55, 30, .12); text-decoration: none; }
  .journey-choices article:hover { transform: translateY(-2px); box-shadow: 0 10px 0 rgba(122, 147, 112, .15), 0 21px 34px rgba(26, 43, 30, .09); }
  .journey-books a:hover { transform: translateY(-3px); box-shadow: 0 9px 0 rgba(93, 115, 75, .2), 0 22px 30px rgba(38, 57, 34, .14); }
}

@media (max-width: 780px) {
  nav.journey-toc { border-bottom: 0; }
  .journey-toc { gap: 10px; padding-bottom: 24px; }
  .journey-toc a { padding: 11px 13px; }
  .journey-choices, .journey-books { gap: 20px; }
  .journey-choices article, .journey-books a { padding: 23px; }
  .code-description { padding-left: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .journey-choices article, .journey-toc a { transition: none; transform: none !important; }
}

/* A quiet material vocabulary below the opening screen. */

.portrait-stage {
  border: 1px solid #516344;
  border-radius: 4px;
  background: #070b09;
  box-shadow: 0 0 0 8px #101a14, 0 0 0 9px #354a31,
              0 22px 38px #0006, inset 0 0 38px #000;
}
.portrait-stage::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 2px #070d0a99,
              inset 12px 13px 28px #030806b8,
              inset -12px -15px 32px #0205039c;
}
.profile-opening img, .dossier-id img {
  border: 7px solid #162119;
  outline: 1px solid #586d51;
  box-shadow: 0 18px 32px #17261928, inset 0 0 20px #000;
}

.carousel-shell { min-width: 0; margin-top: 30px; }
.carousel-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}
.carousel-toolbar p { margin: 0; color: #516248; font: 600 13px/1.4 var(--font-ui); letter-spacing: .02em; }
.carousel-controls { display: flex; align-items: center; gap: 10px; }
.carousel-control {
  min-height: 44px;
  min-width: 76px;
  padding: 10px 13px;
  border: 1px solid #82966e;
  border-radius: 7px;
  background: linear-gradient(155deg, #fff, #e9f0dc);
  color: #20331e;
  box-shadow: 0 4px 0 #a6b99a, 0 10px 15px #20331e17, inset 0 1px 0 #fff;
  font: 700 13px/1.2 var(--font-ui);
  transition: transform .18s var(--motion-ease), box-shadow .18s var(--motion-ease), background .18s var(--motion-ease);
}
.carousel-control:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 #a6b99a, inset 0 2px 5px #20331e2b; }
.carousel-control:disabled { opacity: .48; cursor: default; box-shadow: 0 2px 0 #a6b99a; }
.carousel-status { display: inline-block; min-width: 48px; text-align: center; font: 700 12px var(--font-ui); color: #53694b; }
.carousel-track {
  display: flex !important;
  min-width: 0;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 4px;
  scrollbar-color: #9eb68a #edf1e8;
  scrollbar-width: thin;
  padding: 3px 4px 27px;
  margin-top: 0;
  -webkit-overflow-scrolling: touch;
}
.carousel-track > * { scroll-snap-align: start; min-width: 0; }
.carousel-track:focus-visible { outline: 3px solid #81945b; outline-offset: 2px; }
#journey-question .carousel-track > .service-card {
  flex: 0 0 clamp(320px, 42vw, 485px);
  min-height: 340px;
  border: 1px solid #b9c9b0;
  border-radius: 5px;
  background-image: linear-gradient(155deg, #fff, #f4f7ee);
  box-shadow: 0 7px 0 #a7bd9b66, 0 17px 26px #24392016, inset 0 1px 0 #fff;
}
#journey-question .carousel-track > .service-card:nth-child(even) { background-image: linear-gradient(150deg, #e4f2b5, #d4e899); }
.library-rows.carousel-track > .library-entry {
  flex: 0 0 min(76vw, 880px);
  gap: clamp(25px, 4vw, 55px);
  padding: 28px;
  border: 1px solid #c2d0b8;
  border-radius: 6px;
  background: linear-gradient(153deg, #fff, #f3f7eb);
  box-shadow: 0 7px 0 #aabb9b59, 0 20px 30px #1e30201a, inset 0 1px 0 #fff;
}
.library-rows.carousel-track > .library-entry:nth-child(even) { background: linear-gradient(155deg, #e3ecda, #f4f8ed); }
.library-rows.carousel-track .book-cover {
  box-shadow: inset 8px 8px 18px #0002, 0 7px 12px #15241829;
}
.library-rows.carousel-track .book-description { min-width: 0; }
.kindle-release{display:grid;grid-template-columns:minmax(150px,220px) minmax(0,1fr);align-items:center;gap:clamp(24px,5vw,62px);margin:34px 0 52px;padding:clamp(24px,4vw,44px);background:#202923;color:#f7f8f0;border:1px solid #415146}
.kindle-release img{display:block;width:100%;height:auto;max-width:220px;box-shadow:0 18px 32px #0006}
.kindle-release .eyebrow{color:#d9ef8a;font-size:11px;letter-spacing:.13em}
.kindle-release h3{font-size:clamp(34px,4vw,58px);line-height:1.03;margin:10px 0}
.kindle-release .kindle-subtitle{font-family:Georgia,serif;font-size:clamp(18px,2vw,25px);color:#d9ef8a;margin:0 0 18px}
.kindle-release p:not(.eyebrow):not(.kindle-subtitle):not(.kindle-edition-note){max-width:670px;font-size:17px;line-height:1.65;color:#e0e7db}
.kindle-release .button{display:inline-block;margin:15px 0 0;background:#d9ef8a;color:#202923}
.kindle-release .kindle-edition-note{font-size:12px;color:#c0cbbb;line-height:1.5;margin:17px 0 0}
@media(max-width:620px){.kindle-release{grid-template-columns:1fr;gap:22px}.kindle-release img{width:min(48vw,160px)}.kindle-release .button{width:100%;text-align:center}.kindle-release h3{font-size:38px}}

/* Raised reading surfaces alternate with inset chapter breaks on inner pages. */
.system-feature, .service-hero, .path-section {
  background-image: radial-gradient(ellipse at 85% 8%, #d9ef8a12, transparent 50%),
                    repeating-linear-gradient(112deg, #ffffff05 0 1px, transparent 1px 9px),
                    linear-gradient(155deg, #1d2a20, #111d17);
  box-shadow: inset 0 9px 24px #0003, inset 0 -9px 25px #0003;
}
.system-domains > div, .dossier-task-grid article {
  padding: 22px;
  border: 1px solid #6d846044;
  border-top: 3px solid #97b275;
  border-radius: 4px;
  background: linear-gradient(150deg, #ffffff0b, #0002);
  box-shadow: inset 0 1px 0 #ffffff20, 0 8px 16px #0002;
}
.system-reading > .system-row:nth-child(even) {
  padding-inline: clamp(18px, 3vw, 36px);
  border: 1px solid #d1dcc7;
  border-radius: 5px;
  background: linear-gradient(150deg, #f8faf4, #eaf0e2);
  box-shadow: 0 7px 0 #bacbb04d, 0 18px 28px #1c321215;
}
.media-card, .editorial-grid article, .method-grid article {
  padding: clamp(22px, 2.6vw, 31px);
  border: 1px solid #d0dac8;
  border-top: 4px solid #8eaa71;
  border-radius: 5px;
  background: linear-gradient(150deg, #fffdf8, #f1f5e9);
  box-shadow: 0 6px 0 #b4c6a461, 0 15px 25px #263e2115, inset 0 1px 0 #fff;
}
.media-card:nth-child(even), .editorial-grid article:nth-child(even), .method-grid article:nth-child(even) {
  background: linear-gradient(150deg, #eaf0e1, #f8faf4);
}
.deliverable, .community-offer, .system-conclusion, .manuscript-working {
  border: 1px solid #bfceb3;
  border-radius: 5px;
  background-image: linear-gradient(150deg, #eff5df, #dce9cd);
  box-shadow: inset 8px 8px 22px #6d865727, inset -3px -3px 12px #fff9;
}
.more-manuscripts { border-top: 4px solid #92aa7d; }
.more-manuscripts .manuscript-card, .manuscript-index article {
  background-image: linear-gradient(155deg, #fff, #f5f7ef);
  box-shadow: 0 6px 0 #a6b89a47, 0 16px 24px #192a1617;
}
.manuscript-track.carousel-track { align-items: stretch; padding-block: 8px 30px; }
.manuscript-track.carousel-track > .manuscript-card {
  flex: 0 0 clamp(265px, 31vw, 352px);
  display: flex;
  flex-direction: column;
  padding: 16px;
  border: 1px solid #c4d2b8;
  border-radius: 6px;
  overflow: hidden;
}
.manuscript-track .manuscript-cover { aspect-ratio: 514 / 680; width: 100%; }
.manuscript-track .manuscript-cover img { transform: none; }
.manuscript-track .manuscript-copy { padding: 3px 3px 6px; }
.manuscript-track .manuscript-copy p:last-child { font-size: 16px; line-height: 1.6; color: #586251; }
.manuscript-track .manuscript-letter {
  aspect-ratio: 514 / 680;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 70% 27%, #e8f0d2, transparent 38%), linear-gradient(145deg, #253429, #101c17);
  box-shadow: inset 8px 8px 20px #02070480, inset -3px -3px 12px #a1c17824;
  color: #d9ef8a;
  font: 400 clamp(90px, 12vw, 165px)/1 var(--font-editorial);
  letter-spacing: -.08em;
}
.manuscript-track .manuscript-provisional .manuscript-letter { background: linear-gradient(145deg, #617650, #213522); }
.manuscript-status-note { max-width: 770px; color: #586251; font-size: 14px; line-height: 1.65; margin-top: 5px; }
.carousel-track > * { transition: transform .24s ease, box-shadow .24s ease; }
.carousel-shell.is-moving .carousel-track > * { transform: translateY(-2px); }
.business-recognition { background: #e9eee2; box-shadow: inset 0 10px 24px #2b3b2410, inset 0 -10px 20px #2b3b2410; }
.business-recognition h2 { max-width: 880px; font-size: clamp(35px, 4.5vw, 62px); line-height: 1.12; margin: 13px 0 18px; }
.business-recognition-lead { max-width: 750px; font-size: clamp(18px, 2vw, 22px); line-height: 1.55; color: #4d5a49; }
.business-recognition-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin: 30px 0 20px; }
.business-recognition-grid article { border: 1px solid #b9c9ae; border-top: 4px solid #8cab70; padding: 23px; background: linear-gradient(150deg, #fdfef9, #eff5e9); box-shadow: 0 6px 0 #a5b99b80, 0 16px 22px #24382014; }
.business-recognition-grid article:nth-child(2) { background: linear-gradient(150deg, #e4efcf, #dcebbf); }
.business-situation-number { color: #657857; font: 700 12px var(--font-ui); letter-spacing: .1em; }
.business-recognition-grid h3 { font-size: clamp(23px, 2.1vw, 30px); line-height: 1.2; margin: 24px 0 13px; }
.business-recognition-grid p { font-size: 16px; line-height: 1.6; color: #586452; margin: 0; }
.business-recognition-end { max-width: 880px; font-size: 18px; line-height: 1.6; margin: 29px 0 21px; }
.business-lens { padding: 19px 22px; border-left: 4px solid #89a96f; background: #eef4e4; color: #42523d; }
.inner-page main > .section > h1, .inner-page main > .section > h2,
.home-about h2, .library-expanded > h2 {
  text-shadow: 0 1px 0 #fff, 0 3px 5px #26332315;
}

@media (hover: hover) and (pointer: fine) {
  .carousel-control:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #96ac89, 0 15px 22px #20331e20, inset 0 1px 0 #fff;
  }
}
@media (max-width: 780px) {
  .preview-bar { gap: 7px; padding-inline: 10px; }
  .preview-bar .languages { margin-left: auto; }
  .carousel-toolbar { align-items: flex-start; flex-direction: column; gap: 10px; }
  .carousel-controls { width: 100%; justify-content: space-between; }
  #journey-question .carousel-track > .service-card { flex-basis: min(83vw, 390px); min-height: 0; padding: 24px; }
  .library-rows.carousel-track > .library-entry { flex-basis: min(80vw, 520px); grid-template-columns: 1fr; gap: 20px; padding: 18px; }
  .library-rows.carousel-track .book-cover { width: 100%; min-height: 300px; margin: 0; }
  .library-rows.carousel-track .book-description h3 { font-size: 27px; }
  .manuscript-track.carousel-track > .manuscript-card { flex-basis: min(79vw, 330px); }
  .manuscript-track .manuscript-letter { font-size: 110px; }
  .business-recognition-grid { grid-template-columns: 1fr; gap: 12px; }
  .business-recognition-grid article { padding: 20px; }
  .business-recognition-grid h3 { margin-top: 14px; }
  .media-card, .editorial-grid article, .method-grid article { padding: 22px; }
  .system-reading > .system-row:nth-child(even) { padding: 24px 18px; }
  .portrait-stage { box-shadow: 0 0 0 5px #101a14, 0 0 0 6px #354a31, 0 16px 25px #0005; }
}
@media (max-width: 360px) {
  .preview-bar .languages a { min-width: 35px; padding-inline: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  .carousel-control { transition: none; }
  .carousel-track { scroll-behavior: auto; }
  .carousel-track > * { transition: none; }
  .carousel-shell.is-moving .carousel-track > * { transform: none; }
}

/* Interior formats use the same depth without turning prose into decoration. */
.inner-page .service-grid > .service-card {
  border: 1px solid #b9c9b0;
  border-top: 4px solid #8faa76;
  border-radius: 5px;
  background-image: linear-gradient(155deg, #fff, #f4f7ee);
  box-shadow: 0 8px 0 #a7bd9b66, 0 19px 30px #24392019, inset 0 1px 0 #fff;
}
.inner-page .service-grid > .service-card:nth-child(even) {
  background-image: linear-gradient(150deg, #e4f2b5, #d4e899);
}
.path-grid > .path-row {
  padding: 24px;
  border: 1px solid #a7bc8d55;
  border-top: 3px solid #bdd596;
  border-radius: 4px;
  background: linear-gradient(155deg, #ffffff12, #0002);
  box-shadow: 0 12px 22px #0002, inset 0 1px 0 #ffffff25;
}
.path-grid > .path-row:nth-child(2) {
  background: linear-gradient(155deg, #0002, #ffffff0a);
  box-shadow: inset 6px 8px 16px #0003, inset -2px -2px 9px #ffffff0a;
}
.dossier-body > section:nth-child(even) {
  padding-inline: clamp(18px, 3vw, 32px);
  border: 1px solid #586b4a;
  border-radius: 4px;
  background: linear-gradient(150deg, #ffffff0b, #0002);
  box-shadow: inset 9px 10px 22px #0003, inset -2px -2px 12px #ffffff0b;
}
.personal-contact {
  border: 1px solid #536a4c;
  border-radius: 5px;
  box-shadow: inset 10px 12px 25px #0004, inset -2px -2px 12px #ffffff0d;
}
.business-enquiry {
  border: 1px solid #c0ceb3;
  border-radius: 5px;
  background: linear-gradient(150deg, #fff, #f4f7ee);
  box-shadow: 0 8px 0 #afc19f66, 0 19px 30px #21351d17, inset 0 1px 0 #fff;
}
