/* ==========================================================================
   WIKITABU PUBLISHERS — STYLE.CSS
   Phase 1 static site. Section order is fixed — see CLAUDE.md §CSS Architecture.
   ========================================================================== */

/* ==========================================================================
   1. CSS CUSTOM PROPERTIES
   ========================================================================== */
:root {
  /* Brand colors */
  --color-charcoal: #2C2C2C;
  --color-charcoal-soft: #3D3D3D;
  --color-gold: #C9A84C;
  --color-gold-soft: #E0C878;
  --color-gold-deep: #8A6D2F; /* AA-safe (4.5:1+) gold for text on off-white/light backgrounds */
  --color-regal-blue: #1E3A6E;
  --color-regal-blue-soft: #2C4E8C;
  --color-off-white: #FAF8F5;
  --color-off-white-dim: #F0ECE4;
  --color-text-dark: #2C2C2C;
  --color-text-light: #FAF8F5;
  --color-border: rgba(44, 44, 44, 0.12);
  --color-border-light: rgba(250, 248, 245, 0.18);

  /* Type */
  --font-display: "Playfair Display", "Georgia", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-xl: 1.75rem;
  --fs-2xl: 2.25rem;
  --fs-3xl: 3rem;
  --fs-4xl: 3.75rem;

  /* Spacing scale */
  --space-2xs: 0.375rem;
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  /* Layout */
  --container-max: 1240px;
  --container-pad: 1.25rem;
  --radius-sm: 2px;
  --radius-md: 4px;
  --shadow-card: 0 12px 32px -16px rgba(44, 44, 44, 0.28);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.6s;
}

/* ==========================================================================
   2. RESET / BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol {
  margin: 0;
}
ul, ol { padding: 0; list-style: none; }

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--color-text-dark);
  background-color: var(--color-off-white);
  background-image: url("../images/texture/paper-texture.png");
  background-repeat: repeat;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--color-charcoal);
}

.h1, h1 { font-size: var(--fs-3xl); }
.h2, h2 { font-size: var(--fs-2xl); }
.h3, h3 { font-size: var(--fs-xl); }
.h4, h4 { font-size: var(--fs-md); }

@media (min-width: 768px) {
  .h1, h1 { font-size: var(--fs-4xl); }
  .h2, h2 { font-size: var(--fs-3xl); }
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold-deep);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}
.on-dark .eyebrow { color: var(--color-gold-soft); }
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--color-gold);
  display: inline-block;
}

.lede {
  font-size: var(--fs-md);
  line-height: 1.65;
  color: var(--color-charcoal-soft);
  max-width: 46ch;
}

.on-dark { color: var(--color-text-light); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--color-text-light); }
.on-dark .lede { color: rgba(250, 248, 245, 0.82); }

/* Printer's-ornament divider — signature motif used between major sections */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin: 0 auto;
  width: 100%;
  max-width: 220px;
}
.ornament::before, .ornament::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-border);
}
.ornament span {
  width: 7px;
  height: 7px;
  background: var(--color-gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}
.on-dark .ornament::before, .on-dark .ornament::after { background: var(--color-border-light); }

/* Legal pages (privacy, terms) */
.legal { max-width: 74ch; }
.legal h2 { font-size: var(--fs-xl); margin: var(--space-lg) 0 var(--space-xs); }
.legal h2:first-of-type { margin-top: var(--space-md); }
.legal p, .legal li { color: var(--color-charcoal-soft); margin-bottom: var(--space-sm); }
.legal ul { list-style: disc; padding-left: 1.25rem; margin-bottom: var(--space-sm); }
.legal a { color: var(--color-regal-blue); text-decoration: underline; text-underline-offset: 3px; }
.legal .legal__updated { font-size: var(--fs-xs); letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-gold-deep); font-weight: 600; }

/* ==========================================================================
   4. LAYOUT & GRID UTILITIES
   ========================================================================== */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section { padding-block: var(--space-2xl); }
.section--tight { padding-block: var(--space-xl); }
.section--dark { background: var(--color-charcoal); }
.section--blue { background: var(--color-regal-blue); }
.section--dim { background: var(--color-off-white-dim); }

.section-head {
  max-width: 640px;
  margin-bottom: var(--space-lg);
}
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: var(--space-sm); }
.section-head h2 { margin-top: var(--space-xs); }

.grid { display: grid; gap: var(--space-md); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

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

.skip-link {
  position: absolute;
  left: var(--space-sm);
  top: -60px;
  background: var(--color-gold);
  color: var(--color-charcoal);
  padding: var(--space-xs) var(--space-md);
  z-index: 1000;
  font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: var(--space-sm); }

/* ==========================================================================
   5. NAVBAR
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--color-charcoal);
  border-bottom: 1px solid rgba(201, 168, 76, 0.18);
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-sm);
}
.navbar__logo img { height: 30px; width: auto; }

.navbar__links {
  display: none;
  align-items: center;
  gap: var(--space-lg);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--color-text-light);
}
.navbar__links a {
  position: relative;
  padding-block: var(--space-2xs);
  opacity: 0.88;
  transition: opacity 0.2s var(--ease);
}
.navbar__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--color-gold);
  transition: width 0.25s var(--ease);
}
.navbar__links a:hover,
.navbar__links a[aria-current="page"] { opacity: 1; }
.navbar__links a:hover::after,
.navbar__links a[aria-current="page"]::after { width: 100%; }

.navbar__actions { display: flex; align-items: center; gap: var(--space-md); }

.navbar__toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  z-index: 600;
}
.navbar__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-gold);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.navbar__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.navbar__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.navbar__overlay {
  position: fixed;
  inset: 0;
  background: var(--color-charcoal);
  z-index: 550;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  transform: translateY(-100%);
  transition: transform 0.4s var(--ease);
}
.navbar__overlay.is-open { transform: translateY(0); }
.navbar__overlay a {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  color: var(--color-text-light);
}
.navbar__overlay a[aria-current="page"] { color: var(--color-gold); }

@media (min-width: 960px) {
  .navbar__links { display: flex; }
  .navbar__toggle { display: none; }
}

/* ==========================================================================
   6. HERO
   ========================================================================== */
.hero {
  position: relative;
  background:
    linear-gradient(115deg, rgba(30,58,110,0.86) 0%, rgba(44,44,44,0.92) 55%, rgba(44,44,44,0.97) 100%),
    var(--color-charcoal);
  color: var(--color-text-light);
  overflow: hidden;
  padding-block: var(--space-3xl) calc(var(--space-3xl) + var(--space-lg));
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-color: var(--color-charcoal);
  background-size: cover;
  background-position: center right;
  opacity: 0.85;
  /* Fade the photograph into the blue/charcoal field on the left and into the page below */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.35) 30%, #000 65%), linear-gradient(180deg, #000 70%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.35) 30%, #000 65%), linear-gradient(180deg, #000 70%, transparent 100%);
  mask-composite: intersect;
}
.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}
.hero .eyebrow { color: var(--color-gold-soft); }
.hero h1 {
  color: var(--color-text-light);
  margin-block: var(--space-sm) var(--space-md);
}
.hero p.lede {
  color: rgba(250, 248, 245, 0.82);
  max-width: 56ch;
  font-size: var(--fs-md);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.page-hero {
  /* Blue banner: regal-blue wash over a page-specific photograph (set inline per page), deepest at the top */
  background-color: var(--color-regal-blue);
  background-size: cover;
  background-position: center;
  color: var(--color-text-light);
  padding-block: var(--space-2xl) var(--space-xl);
}
.page-hero h1 { color: var(--color-text-light); margin-top: var(--space-sm); }
.page-hero .lede { color: rgba(250,248,245,0.82); margin-top: var(--space-sm); }

/* ==========================================================================
   7. BUTTONS & CTAS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0.9rem 1.75rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--radius-sm);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  min-height: 44px;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn--gold {
  background: var(--color-gold);
  color: var(--color-charcoal);
}
.btn--gold:hover { background: var(--color-gold-soft); }

.btn--outline {
  background: transparent;
  border: 1.5px solid rgba(250, 248, 245, 0.6);
  color: var(--color-text-light);
}
.btn--outline:hover { border-color: var(--color-gold); color: var(--color-gold-soft); }

.btn--outline-dark {
  background: transparent;
  border: 1.5px solid var(--color-charcoal);
  color: var(--color-charcoal);
}
.btn--outline-dark:hover { border-color: var(--color-regal-blue); color: var(--color-regal-blue); }

.btn--block { width: 100%; }
.btn--sm { padding: 0.65rem 1.25rem; font-size: var(--fs-xs); }

.cta-band {
  background: linear-gradient(120deg, var(--color-regal-blue), var(--color-charcoal));
  color: var(--color-text-light);
  text-align: center;
  padding-block: var(--space-2xl);
}
.cta-band h2 { color: var(--color-text-light); max-width: 20ch; margin-inline: auto; }
.cta-band__actions { margin-top: var(--space-lg); display: flex; justify-content: center; }

/* Floating actions: WhatsApp chat + back to top */
.float-actions {
  position: fixed;
  right: var(--space-sm);
  bottom: var(--space-sm);
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-xs);
  pointer-events: none;
}
.float-actions > * { pointer-events: auto; }
.chat-fab {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0 1.1rem 0 0.95rem;
  background: var(--color-regal-blue);
  color: var(--color-text-light);
  border: 1px solid var(--color-gold);
  border-radius: 999px;
  box-shadow: 0 10px 28px -10px rgba(0, 0, 0, 0.5);
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.chat-fab:hover { background: var(--color-regal-blue-soft); transform: translateY(-2px); }
.chat-fab svg { width: 24px; height: 24px; fill: var(--color-gold); flex-shrink: 0; }
.chat-fab__label { display: none; }
.to-top {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-charcoal);
  color: var(--color-gold);
  border: 1px solid var(--color-border-light);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.to-top.is-shown { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { border-color: var(--color-gold); }
.to-top svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
@media (min-width: 700px) {
  .chat-fab__label { display: inline; }
  .float-actions { right: var(--space-md); bottom: var(--space-md); }
}

/* ==========================================================================
   8. FEATURE STRIP / CARDS
   ========================================================================== */
.feature-strip { margin-top: calc(var(--space-2xl) * -1); position: relative; z-index: 2; }
.feature-strip .container { padding-inline: var(--container-pad); }
.feature-strip .grid { gap: 0; border: 1px solid var(--color-border); background: var(--color-off-white); box-shadow: var(--shadow-card); }

.feature-tile {
  padding: var(--space-lg) var(--space-md);
  border-bottom: 1px solid var(--color-border);
  transition: background 0.25s var(--ease);
  display: block;
}
.feature-tile:hover { background: var(--color-off-white-dim); }
.feature-tile__index {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  color: var(--color-gold-deep);
  display: block;
  margin-bottom: var(--space-xs);
}
.feature-tile h3 { margin-bottom: var(--space-2xs); }
.feature-tile p { color: var(--color-charcoal-soft); font-size: var(--fs-sm); }

@media (min-width: 900px) {
  .feature-strip .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .feature-tile { border-bottom: none; border-right: 1px solid var(--color-border); }
  .feature-tile:last-child { border-right: none; }
}

.card {
  background: var(--color-off-white);
  border: 1px solid var(--color-border);
  padding: var(--space-md);
}

/* Two-column USP block */
.usp {
  display: grid;
  gap: var(--space-lg);
}
@media (min-width: 768px) {
  .usp { grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
}
.usp__item { display: flex; gap: var(--space-md); align-items: flex-start; }
.usp__icon {
  flex-shrink: 0;
  width: 52px; height: 52px;
  border: 1px solid var(--color-gold-deep);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-gold-deep);
}
.usp__icon svg { width: 24px; height: 24px; }
.usp__item h3 { margin-bottom: var(--space-2xs); }
.usp__item p { color: var(--color-charcoal-soft); font-size: var(--fs-sm); max-width: 42ch; }

/* Titles-in-print gallery (homepage teaser) */
.title-gallery {
  display: grid;
  gap: var(--space-sm);
  grid-template-columns: repeat(2, 1fr);
  overflow-x: auto;
}
@media (min-width: 700px) {
  .title-gallery { grid-template-columns: repeat(4, 1fr); overflow-x: visible; }
}
.title-gallery__item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #F3EEE4;
  display: block;
}
.title-gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.title-gallery__item:hover img { transform: scale(1.05); }
.title-gallery__caption {
  position: absolute; inset-inline: 0; bottom: 0;
  padding: var(--space-sm);
  background: linear-gradient(0deg, rgba(44,44,44,0.92), transparent);
  color: var(--color-text-light);
}
.title-gallery__caption strong { font-family: var(--font-display); font-size: var(--fs-sm); display: block; }
.title-gallery__caption span { font-size: var(--fs-xs); opacity: 0.8; }

/* Worked With strip */
.worked-with { padding-block: var(--space-xl) var(--space-md); text-align: center; }
.worked-with__label { font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-gold-deep); font-weight: 600; margin-bottom: var(--space-sm); }
.worked-with__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-xs); max-width: 960px; margin-inline: auto; }
@media (min-width: 700px) { .worked-with__list { grid-template-columns: repeat(5, 1fr); } }
.worked-with__logo {
  display: flex; align-items: center; justify-content: center;
  background: #fff;
  border: 1px solid var(--color-border);
  aspect-ratio: 440 / 260;
  overflow: hidden;
  filter: grayscale(1);
  opacity: 0.8;
  transition: filter 0.3s var(--ease), opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.worked-with__logo img { width: 100%; height: 100%; object-fit: contain; }
a.worked-with__logo:hover, .worked-with__logo:hover { filter: none; opacity: 1; transform: translateY(-3px); }

/* Offerings: capability tiles */
.offerings { display: grid; gap: var(--space-sm); grid-template-columns: 1fr; }
@media (min-width: 640px) { .offerings { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .offerings { grid-template-columns: repeat(4, 1fr); } }
.offering {
  display: block;
  padding: var(--space-md);
  background: var(--color-off-white);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-gold);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.offering:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); border-top-color: var(--color-regal-blue); }
.offering__icon { display: block; width: 44px; height: 44px; color: var(--color-regal-blue); margin-bottom: var(--space-sm); }
.offering__icon svg { width: 100%; height: 100%; }
.offering h3 { margin-bottom: var(--space-2xs); }
.offering p { color: var(--color-charcoal-soft); font-size: var(--fs-sm); }
.offering__more { display: inline-block; margin-top: var(--space-sm); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-gold-deep); }

/* Design callout */
.design-callout {
  display: grid;
  gap: var(--space-lg);
  align-items: center;
  margin-top: var(--space-xl);
  padding: var(--space-lg) var(--space-md);
  background: linear-gradient(135deg, var(--color-regal-blue) 0%, var(--color-charcoal) 100%);
  color: var(--color-text-light);
}
@media (min-width: 900px) { .design-callout { grid-template-columns: 1fr 1.1fr; padding: var(--space-xl); } }
.design-callout h2 { color: var(--color-text-light); margin-bottom: var(--space-sm); }
.design-callout p { color: rgba(250,248,245,0.82); margin-bottom: var(--space-md); max-width: 48ch; }
.design-callout__covers { align-items: start; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-xs); }
.design-callout__covers img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; background: #F3EEE4; box-shadow: 0 14px 30px -14px rgba(0,0,0,0.6); transition: transform 0.5s var(--ease); }
.design-callout__covers img:nth-child(2) { transform: translateY(-14px); }
.design-callout__covers img:hover { transform: translateY(-8px) scale(1.04); }

/* TALEs teaser (coming soon) */
.tales {
  background: linear-gradient(180deg, var(--color-charcoal) 0%, #1b2a4a 100%);
  color: var(--color-text-light);
  overflow: hidden;
}
.tales .eyebrow { color: var(--color-gold); }
.tales h2 { color: var(--color-text-light); }
.tales__badge { display: inline-block; margin-left: var(--space-xs); padding: 0.15rem 0.6rem; border: 1px solid var(--color-gold); color: var(--color-gold); font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase; vertical-align: middle; }
.tales__lede { color: rgba(250,248,245,0.82); max-width: 62ch; margin-bottom: var(--space-md); }
.tales__formats { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-bottom: var(--space-lg); }
.tales__formats li { padding: 0.35rem 0.85rem; border: 1px solid var(--color-border-light); font-size: var(--fs-xs); letter-spacing: 0.06em; text-transform: uppercase; color: rgba(250,248,245,0.85); }
.tales__row {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
  padding-bottom: var(--space-sm);
  scroll-snap-type: x proximity;
  -webkit-mask-image: linear-gradient(90deg, #000 78%, transparent);
  mask-image: linear-gradient(90deg, #000 78%, transparent);
}
.tales__tile {
  flex: 0 0 clamp(130px, 22vw, 190px);
  aspect-ratio: 3 / 4;
  position: relative;
  background: #F3EEE4;
  scroll-snap-align: start;
  transition: transform 0.4s var(--ease);
}
.tales__tile:hover { transform: scale(1.06); z-index: 1; }
.tales__tile img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.tales__note { margin-top: var(--space-md); font-size: var(--fs-xs); color: rgba(250,248,245,0.6); max-width: 70ch; }
.tales__actions { margin-top: var(--space-md); }

/* ==========================================================================
   9. PROCESS TIMELINE
   ========================================================================== */
.timeline { display: grid; gap: var(--space-lg); }

.timeline__stage {
  display: grid;
  gap: var(--space-md);
  padding-block: var(--space-lg);
  border-top: 1px solid var(--color-border);
}
.timeline__stage:first-child { border-top: none; }

@media (min-width: 800px) {
  .timeline__stage {
    grid-template-columns: 90px 1fr 1.1fr;
    align-items: center;
    gap: var(--space-lg);
  }
}

.timeline__number {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  color: transparent;
  -webkit-text-stroke: 1.5px var(--color-gold);
  line-height: 1;
}
.timeline__body h3 { margin-bottom: var(--space-xs); }
.timeline__body p { color: var(--color-charcoal-soft); max-width: 48ch; }
.timeline__media {
  aspect-ratio: 4 / 3;
  background-color: var(--color-off-white-dim);
  overflow: hidden;
}
.timeline__media img { width: 100%; height: 100%; object-fit: cover; }
.card img[src*="founder"] { object-position: center top; }

.process-close {
  text-align: center;
  max-width: 52ch;
  margin-inline: auto;
  padding-top: var(--space-lg);
}
.process-close p { font-family: var(--font-display); font-size: var(--fs-lg); font-style: italic; color: var(--color-charcoal); }
.process-close .btn { margin-top: var(--space-md); }

/* ==========================================================================
   10. PORTFOLIO GRID
   ========================================================================== */
.portfolio-grid { display: grid; gap: var(--space-md); grid-template-columns: 1fr; }
@media (min-width: 640px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .portfolio-grid { grid-template-columns: repeat(3, 1fr); } }

.book-card {
  background: var(--color-off-white);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
}
.book-card__cover {
  aspect-ratio: 1 / 1;
  background-color: #F3EEE4;
  overflow: hidden;
}
.book-card__cover img { width: 100%; height: 100%; object-fit: contain; }
.book-card[hidden] { display: none; }
.book-card__meta { display: flex; align-items: center; justify-content: space-between; gap: var(--space-xs); margin-bottom: var(--space-2xs); }
.book-card__meta .book-card__tag { margin-bottom: 0; }
.book-card__year { font-size: var(--fs-xs); font-weight: 600; color: var(--color-charcoal-soft); letter-spacing: 0.06em; }

.portfolio-filters { display: grid; gap: var(--space-xs); margin-bottom: var(--space-lg); }
.portfolio-filters__row { display: flex; flex-wrap: wrap; gap: var(--space-2xs); }
.filter-pill {
  font: inherit; font-size: var(--fs-sm); font-weight: 500;
  padding: 0.4rem 0.9rem; cursor: pointer;
  background: transparent; color: var(--color-charcoal);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  transition: background-color .2s, color .2s, border-color .2s;
}
.filter-pill:hover { border-color: var(--color-regal-blue); }
.filter-pill.is-active { background: var(--color-regal-blue); border-color: var(--color-regal-blue); color: var(--color-off-white); }
.filter-pill:focus-visible { outline: 2px solid var(--color-gold); outline-offset: 2px; }
.portfolio-filters__count { font-size: var(--fs-sm); color: var(--color-charcoal-soft); }
.portfolio-empty { text-align: center; color: var(--color-charcoal-soft); padding: var(--space-xl) 0; }
.book-card__body { padding: var(--space-md); display: flex; flex-direction: column; gap: var(--space-2xs); flex: 1; }
.book-card__tag {
  align-self: flex-start;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-regal-blue);
  border: 1px solid var(--color-regal-blue);
  padding: 0.2rem 0.6rem;
  margin-bottom: var(--space-2xs);
}
.book-card__title { font-family: var(--font-display); font-size: var(--fs-md); }
.book-card__author { font-size: var(--fs-sm); color: var(--color-gold-deep); font-weight: 600; }
.book-card__desc { font-size: var(--fs-sm); color: var(--color-charcoal-soft); }

.portfolio-close { text-align: center; margin-top: var(--space-xl); }

/* Quick View on portfolio cards */
.book-card__cover { position: relative; }
.book-card__quick {
  position: absolute;
  left: 50%; bottom: var(--space-sm);
  transform: translate(-50%, 8px);
  padding: 0.55rem 1.1rem;
  background: var(--color-charcoal);
  color: var(--color-text-light);
  border: 1px solid var(--color-gold);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.book-card__cover img { transition: transform 0.6s var(--ease); }
.book-card:hover .book-card__cover img { transform: scale(1.04); }
.book-card:hover .book-card__quick,
.book-card__quick:focus-visible { opacity: 1; transform: translate(-50%, 0); }
@media (hover: none) { .book-card__quick { opacity: 1; transform: translate(-50%, 0); } }

.qv {
  position: fixed; inset: 0; z-index: 100;
  display: none;
  align-items: center; justify-content: center;
  padding: var(--space-sm);
  background: rgba(20, 24, 36, 0.82);
}
.qv.is-open { display: flex; }
.qv__dialog {
  position: relative;
  width: min(900px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  display: grid;
  background: var(--color-off-white);
  border-top: 4px solid var(--color-gold);
}
@media (min-width: 720px) { .qv__dialog { grid-template-columns: 1fr 1fr; } }
.qv__cover { background: #fff; display: flex; align-items: center; justify-content: center; }
.qv__cover img { width: 100%; max-height: 80vh; object-fit: contain; }
.qv__body { padding: var(--space-lg) var(--space-md); }
.qv__meta { font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-gold-deep); font-weight: 600; margin-bottom: var(--space-xs); }
.qv__title { font-size: var(--fs-xl); margin-bottom: var(--space-2xs); }
.qv__author { color: var(--color-regal-blue); font-weight: 600; margin-bottom: var(--space-sm); }
.qv__desc { color: var(--color-charcoal-soft); margin-bottom: var(--space-md); }
.qv__close {
  position: absolute; top: 0.5rem; right: 0.5rem;
  width: 44px; height: 44px;
  background: var(--color-charcoal); color: var(--color-gold);
  font-size: 1.5rem; line-height: 1;
  z-index: 2;
}

/* ==========================================================================
   11. TESTIMONIALS
   ========================================================================== */
.testimonials-grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .testimonials-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .testimonials-grid { grid-template-columns: repeat(3, 1fr); } }

.testimonial {
  background: var(--color-off-white);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-gold);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.testimonial__mark {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  color: var(--color-gold-deep);
  line-height: 1;
}
.testimonial p.quote { font-size: var(--fs-sm); color: var(--color-charcoal); flex: 1; }
.testimonial__name { font-weight: 700; font-size: var(--fs-sm); }
.testimonial__role { font-size: var(--fs-xs); color: var(--color-charcoal-soft); }

/* ==========================================================================
   12. FAQ ACCORDION
   ========================================================================== */
.faq-list { max-width: 780px; margin-inline: auto; border-top: 1px solid var(--color-border); }

.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-item__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding-block: var(--space-md);
  text-align: left;
  font-family: var(--font-display);
  font-size: var(--fs-md);
  color: var(--color-charcoal);
}
.faq-item__icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  position: relative;
}
.faq-item__icon::before, .faq-item__icon::after {
  content: "";
  position: absolute;
  background: var(--color-gold);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.faq-item__icon::before { width: 14px; height: 2px; }
.faq-item__icon::after { width: 2px; height: 14px; transition: transform 0.3s var(--ease); }
.faq-item__q[aria-expanded="true"] .faq-item__icon::after { transform: translate(-50%, -50%) rotate(90deg) scaleY(0); }

.faq-item__a {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s var(--ease);
}
.faq-item__a-inner { padding-bottom: var(--space-md); color: var(--color-charcoal-soft); max-width: 62ch; }

/* ==========================================================================
   13. CONTACT & LEAD FORMS
   ========================================================================== */
.contact-layout {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .contact-layout { grid-template-columns: 1.1fr 0.9fr; align-items: start; }
}

.form-field { margin-bottom: var(--space-md); }
.form-field label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-charcoal-soft);
  margin-bottom: var(--space-2xs);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--color-off-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  transition: border-color 0.2s var(--ease);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--color-gold);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; gap: var(--space-md); }
@media (min-width: 560px) { .form-row--2 { grid-template-columns: 1fr 1fr; } }

.form-status {
  margin-top: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  font-size: var(--fs-sm);
  display: none;
}
.form-status.is-success {
  display: block;
  background: rgba(201, 168, 76, 0.14);
  border: 1px solid var(--color-gold);
  color: var(--color-charcoal);
}
.form-status.is-error {
  display: block;
  background: rgba(178, 58, 58, 0.08);
  border: 1px solid #B23A3A;
  color: #7a2626;
}

.contact-info {
  background: var(--color-charcoal);
  color: var(--color-text-light);
  padding: var(--space-lg);
}
.contact-info h3 { color: var(--color-text-light); margin-bottom: var(--space-sm); }
.contact-info__row { display: flex; gap: var(--space-sm); align-items: center; margin-bottom: var(--space-sm); font-size: var(--fs-sm); }
.contact-info__row a { border-bottom: 1px solid transparent; transition: border-color 0.2s var(--ease); }
.contact-info__row a:hover { border-color: var(--color-gold); }
.contact-info p.note { font-size: var(--fs-xs); color: rgba(250,248,245,0.65); margin-top: var(--space-md); border-top: 1px solid var(--color-border-light); padding-top: var(--space-md); }

/* ==========================================================================
   14. NEWSLETTER
   ========================================================================== */
.newsletter h3 { color: var(--color-text-light); font-size: var(--fs-md); line-height: 1.3; margin-bottom: var(--space-md); padding-right: var(--space-sm); }
.newsletter p { font-size: var(--fs-sm); color: rgba(250,248,245,0.75); margin-block: var(--space-xs) var(--space-sm); }
.newsletter-form { display: flex; gap: var(--space-xs); margin-top: var(--space-sm); }
.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 0.75rem 1rem;
  background: rgba(250,248,245,0.06);
  border: 1px solid var(--color-border-light);
  color: var(--color-text-light);
  font-size: var(--fs-sm);
}
.newsletter-form input[type="email"]::placeholder { color: rgba(250,248,245,0.5); }
.newsletter-form input[type="email"]:focus { border-color: var(--color-gold); }
.newsletter-form .btn { flex-shrink: 0; }

/* ==========================================================================
   15. FOOTER
   ========================================================================== */
.site-footer {
  background: var(--color-charcoal);
  color: var(--color-text-light);
  padding-top: var(--space-2xl);
}
.footer-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr;
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--color-border-light);
}
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.3fr 0.8fr 0.8fr 1.1fr; } }

.footer-brand img { height: 120px; width: auto; margin-bottom: var(--space-sm); }
.footer-brand p { font-size: var(--fs-sm); color: rgba(250,248,245,0.78); max-width: 32ch; }
.footer-brand .tagline { font-family: var(--font-display); font-style: italic; color: var(--color-gold-soft); margin-top: var(--space-sm); font-size: var(--fs-sm); }

.footer-col h4 { color: var(--color-gold); font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: var(--space-sm); }
.footer-col ul li { margin-bottom: var(--space-xs); }
.footer-col a { font-size: var(--fs-sm); color: rgba(250,248,245,0.82); transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--color-gold); }

.footer-social { display: flex; gap: var(--space-sm); margin-top: var(--space-md); }
.footer-social a {
  width: 44px; height: 44px;
  border: 1px solid var(--color-border-light);
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { border-color: var(--color-gold); }
.footer-social svg { width: 16px; height: 16px; fill: currentColor; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: space-between;
  align-items: center;
  padding-block: var(--space-md);
  font-size: var(--fs-xs);
  color: rgba(250,248,245,0.6);
}
.footer-bottom__links { display: flex; gap: var(--space-md); }
.footer-bottom__links a:hover { color: var(--color-gold); }

/* ==========================================================================
   16. RESPONSIVE / MEDIA QUERIES
   (component-level breakpoints live alongside each component above;
   page-level container/spacing adjustments below)
   ========================================================================== */
@media (max-width: 480px) {
  :root { --container-pad: 1rem; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form .btn { width: 100%; }
  .hero__actions .btn { width: 100%; }
}

@media (min-width: 1440px) {
  :root { --container-pad: 2rem; }
}

/* ==========================================================================
   17. ANIMATIONS & TRANSITIONS
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
