/* ============================================================
   Custom Rucksack — Global Stylesheet
   Design system: see DESIGN.md (Atelier Showroom)
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --ink: #14150F;
  --ink-2: #1D1E17;
  --ivory: #F7F5EF;
  --paper: #FFFFFF;
  --sand: #EDE8DC;
  --brass: #B08A4A;
  --brass-2: #D8BC85;
  --forest: #22332B;
  --text: #1B1C16;
  --text-dark: #F2EFE7;
  --muted: #6B6A5E;
  --muted-dark: rgba(242, 239, 231, .66);
  --line: rgba(20, 21, 15, .14);
  --line-dark: rgba(247, 245, 239, .16);

  --serif: "Cormorant Garamond", "Songti SC", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --container: 1200px;
  --prose: 760px;
  --section-pad: clamp(72px, 10vw, 140px);
  --ease: cubic-bezier(.22, .61, .21, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: 1.02rem;
  line-height: 1.78;
  color: var(--text);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}
img, picture, svg, video { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
a { color: inherit; }
table { border-collapse: collapse; width: 100%; }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--text-dark);
  padding: 12px 20px; font-size: .8rem; letter-spacing: .08em;
}
.skip-link:focus { left: 0; }

/* ---------- Typography ---------- */
h1, h2, h3 { font-weight: 400; text-wrap: balance; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font: 600 11px/1 var(--sans);
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--brass);
}
.eyebrow .num { font: 400 12px/1 var(--mono); letter-spacing: .08em; }
.eyebrow--dark { color: var(--brass-2); }

.h-display {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(3.4rem, 7vw, 6.8rem);
  line-height: 1.04; letter-spacing: -.01em;
}
.h-xl {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1.12; letter-spacing: -.005em;
}
.h-lg {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.16;
}
.h-md { font: 600 1.35rem/1.35 var(--sans); letter-spacing: -.01em; }
.lead { font: 300 1.2rem/1.7 var(--sans); color: var(--muted); }
.lead strong { font-weight: 600; color: var(--text); }
.on-dark .lead { color: var(--muted-dark); }
.on-dark .lead strong { color: var(--text-dark); }
.on-dark { color: var(--text-dark); }

/* ---------- Layout ---------- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: clamp(20px, 4vw, 48px); }
.container--prose { max-width: calc(var(--prose) + 96px); }

.section { padding-block: var(--section-pad); }
.section--ink { background: var(--ink); color: var(--text-dark); }
.section--ink-2 { background: var(--ink-2); color: var(--text-dark); }
.section--ivory { background: var(--ivory); }
.section--paper { background: var(--paper); }
.section--sand { background: var(--sand); }
.section--forest { background: var(--forest); color: var(--text-dark); }

.section-head { max-width: 820px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head .eyebrow { margin-bottom: 20px; }
.section-head p { margin-top: 18px; color: var(--muted); max-width: 62ch; }
.on-dark .section-head p { color: var(--muted-dark); }

.grid { display: grid; gap: clamp(24px, 3vw, 40px); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1023px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 599px) { .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.hairline { border: 0; border-top: 1px solid var(--line); }
.on-dark .hairline, .section--ink .hairline, .section--ink-2 .hairline, .section--forest .hairline { border-top-color: var(--line-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 17px 34px; border-radius: 2px;
  font: 600 12px/1 var(--sans);
  letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; border: 1px solid transparent;
  cursor: pointer; transition: all .25s var(--ease);
  white-space: nowrap;
}
.btn .arr { font-family: var(--mono); font-weight: 400; transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn--brass { background: var(--brass); color: var(--ink); }
.btn--brass:hover { background: var(--brass-2); transform: translateY(-2px); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--brass); color: var(--brass); transform: translateY(-2px); }
.btn--light { border-color: var(--text-dark); color: var(--text-dark); background: transparent; }
.btn--light:hover { border-color: var(--brass-2); color: var(--brass-2); transform: translateY(-2px); }
.btn--wa { background: #25D366; color: #062617; }
.btn--wa:hover { background: #20bd5a; color: #062617; transform: translateY(-2px); }
.wa-btn-icon { width: 16px; height: 16px; flex: none; }
.btn--sm { padding: 13px 24px; }

.link-more {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  color: var(--text); text-decoration: none; padding-block: 6px;
  border-bottom: 1px solid var(--brass); padding-bottom: 8px;
  transition: color .2s var(--ease);
}
.link-more .arr { font-family: var(--mono); transition: transform .25s var(--ease); }
.link-more:hover { color: var(--brass); }
.link-more:hover .arr { transform: translateX(4px); }
.on-dark .link-more { color: var(--text-dark); }
.on-dark .link-more:hover { color: var(--brass-2); }

/* ---------- Contact bar / WhatsApp ---------- */
.contact-bar { background: var(--ink-2, #1c1e16); border-bottom: 1px solid var(--line-dark); color: var(--text-dark); }
.contact-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 42px; flex-wrap: nowrap; padding-block: 0; }
.contact-bar-note { display: inline-flex; align-items: center; flex: 1 1 auto; min-width: 0; font: 400 11px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted-dark); }
.contact-bar-links { display: inline-flex; align-items: center; justify-content: flex-end; gap: 14px; flex: 0 0 auto; }
.contact-bar-mail { display: inline-flex; align-items: center; font: 500 11px/1 var(--mono); letter-spacing: .03em; color: var(--text-dark); text-decoration: none; border-bottom: 1px solid var(--brass); padding-bottom: 3px; }
.contact-bar-mail:hover { color: var(--brass-2); }
.contact-bar-wa, .nav-wa, .footer-wa { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font: 600 11px/1 var(--sans); letter-spacing: .06em; }
.contact-bar-wa { background: #25D366; color: #062617; padding: 9px 14px; transition: filter .2s, transform .2s; }
.contact-bar-wa:hover { filter: brightness(1.08); transform: translateY(-1px); }
.wa-icon { width: 16px; height: 16px; flex: none; display: inline-block; }
.nav-wa { color: var(--text-dark); white-space: nowrap; }
.nav-wa:hover { color: var(--brass-2); }
.footer-wa { color: var(--text-dark); }
.footer-wa:hover { color: var(--brass-2); }
@media (max-width: 760px) { .contact-bar-inner { justify-content: center; } .contact-bar-note { display: none; } .contact-bar-links { justify-content: center; } .nav-wa { display: none; } }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 245, 239, .88);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header--dark {
  background: rgba(20, 21, 15, .82);
  border-bottom-color: var(--line-dark);
  color: var(--text-dark);
}
.nav-bar { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; flex: none;
  border: 1px solid currentColor; border-radius: 50%;
  display: grid; place-items: center;
  font: 500 13px/1 var(--serif); letter-spacing: .05em;
}
.brand-name { font: 500 1.02rem/1.1 var(--serif); letter-spacing: .04em; }
.brand-sub { display: block; font: 500 8.5px/1.4 var(--sans); letter-spacing: .34em; text-transform: uppercase; color: var(--muted); }
.site-header--dark .brand-sub { color: var(--muted-dark); }

.nav-links { display: flex; align-items: center; gap: clamp(16px, 2vw, 30px); list-style: none; padding: 0; }
.nav-links a {
  font: 600 11.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; padding: 10px 2px; position: relative; color: inherit;
  white-space: nowrap;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 2px;
  height: 2px; background: var(--brass); transition: right .25s var(--ease);
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { right: 0; }
.nav-links a[aria-current="page"] { color: var(--brass); }
.site-header--dark .nav-links a[aria-current="page"] { color: var(--brass-2); }

.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 2px; padding: 10px 12px; cursor: pointer; color: inherit;
}
.site-header--dark .nav-toggle { border-color: var(--line-dark); }
.nav-toggle-box { display: grid; gap: 5px; }
.nav-toggle-box span { display: block; width: 20px; height: 1.5px; background: currentColor; transition: transform .25s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 1023px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed; inset: 76px 0 auto 0; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ivory); color: var(--text);
    border-block: 1px solid var(--line);
    padding: 12px clamp(20px, 4vw, 48px) 28px;
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: all .3s var(--ease);
    max-height: calc(100vh - 76px); overflow: auto;
  }
  .nav-links.open { transform: none; opacity: 1; visibility: visible; }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links li:last-child { border-bottom: 0; }
  .nav-links a { display: block; padding: 16px 2px; font-size: 13px; }
  .nav-links a::after { display: none; }
  .nav-cta .btn { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--text-dark);
  min-height: min(100svh, 860px);
  display: flex; align-items: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 72% 40%, rgba(176, 138, 74, .13), transparent 65%),
    repeating-linear-gradient(90deg, rgba(247, 245, 239, .022) 0 1px, transparent 1px 72px);
}
.hero-inner { position: relative; z-index: 2; padding-block: clamp(96px, 12vw, 150px); width: 100%; }
.hero .eyebrow { margin-bottom: 26px; }
.hero h1 { max-width: 12ch; }
.hero h1 em { font-style: italic; color: var(--brass-2); }
.hero .lead { max-width: 54ch; margin-top: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 44px; }
.hero-media {
  position: absolute; top: 0; right: 0; bottom: 0; width: 52%;
  z-index: 1; pointer-events: none;
}
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  opacity: .9;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 30%);
  mask-image: linear-gradient(90deg, transparent 0, #000 30%);
}
.hero-meta {
  display: flex; gap: 28px; flex-wrap: wrap;
  font: 400 11px/1.5 var(--mono); letter-spacing: .06em; color: var(--muted-dark);
  margin-top: 48px; padding-bottom: 8px;
}
.hero-meta span b { color: var(--brass-2); font-weight: 500; }
@media (max-width: 899px) {
  .hero-media { position: relative; width: 100%; aspect-ratio: 16/10; order: -1; }
  .hero-media img { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%); mask-image: linear-gradient(180deg, transparent 0, #000 22%); }
  .hero { flex-direction: column; align-items: stretch; min-height: 0; }
  .hero-inner { padding-block: 64px 80px; }
  .hero-meta { margin-top: 32px; }
}

/* Sub-hero (interior pages) */
.sub-hero { position: relative; background: var(--ink); color: var(--text-dark); overflow: hidden; }
.sub-hero-inner { padding-block: clamp(64px, 9vw, 120px); max-width: var(--container); margin-inline: auto; padding-inline: clamp(20px, 4vw, 48px); position: relative; }
.sub-hero .eyebrow { margin-bottom: 22px; }
.sub-hero h1 { max-width: 16ch; }
.sub-hero .lead { max-width: 60ch; margin-top: 24px; }
.sub-hero-media { position: absolute; top: 0; right: clamp(20px, 4vw, 48px); bottom: 0; width: min(44%, 560px); pointer-events: none; }
.sub-hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: .85; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 35%); mask-image: linear-gradient(90deg, transparent 0, #000 35%); }
@media (max-width: 899px) { .sub-hero-media { display: none; } }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font: 400 11px/1.6 var(--mono); letter-spacing: .05em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 34px;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brass); }
.breadcrumb .sep { color: var(--brass); }
.breadcrumb [aria-current] { color: inherit; }
.sub-hero .breadcrumb { color: var(--muted-dark); margin-bottom: 26px; }

/* ---------- Cards ---------- */
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 2px;
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
  overflow: hidden;
}
.card:hover { border-color: var(--brass); transform: translateY(-3px); }
.card-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); display: flex; align-items: center; justify-content: center; width: 100%; }
.card-media img { width: 100%; height: 100%; object-fit: contain; object-position: center; padding: 0; box-sizing: border-box; display: block; transition: transform .6s var(--ease); }
.card:hover .card-media img { transform: scale(1.02); }
.card-body { padding: 26px 28px 30px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card-body .eyebrow { margin-bottom: 2px; }
.card-title { font: 500 1.42rem/1.2 var(--serif); }
.card-desc { font-size: .92rem; color: var(--muted); line-height: 1.65; }
.card-foot { margin-top: auto; padding-top: 8px; }
.section--ink .card, .section--ink-2 .card, .section--forest .card { background: var(--ink-2); border-color: var(--line-dark); }
.section--ink .card-desc, .section--ink-2 .card-desc, .section--forest .card-desc { color: var(--muted-dark); }

.card--flat { background: transparent; }
.card--flat:hover { transform: none; }

/* Fact strip */
.fact-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.fact-strip > * { background: var(--ivory); padding: 30px 26px; }
.section--ink .fact-strip, .section--ink-2 .fact-strip { background: var(--line-dark); border-color: var(--line-dark); }
.section--ink .fact-strip > *, .section--ink-2 .fact-strip > * { background: var(--ink); }
.fact-strip--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 899px) { .fact-strip { grid-template-columns: repeat(2, 1fr); } .fact-strip--2 { grid-template-columns: 1fr; } }

.metric { display: flex; flex-direction: column; gap: 10px; }
.metric-value { font: 300 3.2rem/1 var(--serif); color: var(--brass); }
.metric-value .unit { font: 400 .95rem/1 var(--mono); letter-spacing: .04em; margin-left: 6px; color: var(--muted); }
.on-dark .metric-value .unit { color: var(--muted-dark); }
.metric-label { font: 600 11px/1.5 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.on-dark .metric-label { color: var(--muted-dark); }
.metric-desc { font-size: .86rem; color: var(--muted); line-height: 1.6; }
.on-dark .metric-desc { color: var(--muted-dark); }

/* ---------- Answer box (GEO) ---------- */
.answer-box {
  border-left: 2px solid var(--brass);
  background: var(--sand);
  padding: 28px 32px;
  max-width: 72ch;
}
.section--ink .answer-box, .section--ink-2 .answer-box { background: rgba(237, 232, 220, .06); }
.answer-box p { color: var(--text); }
.answer-box strong:first-child { font-weight: 600; }
.answer-box + * { margin-top: 40px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--paper); }
.section--ink .table-wrap { background: var(--ink-2); border-color: var(--line-dark); }
table.data { min-width: 640px; font-size: .92rem; }
table.data caption { text-align: left; padding: 18px 22px 0; font: 400 11px/1.6 var(--mono); letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
table.data th, table.data td { padding: 15px 22px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.section--ink table.data th, .section--ink table.data td, .section--ink-2 table.data th, .section--ink-2 table.data td { border-bottom-color: var(--line-dark); }
table.data thead th { font: 600 10.5px/1.5 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); background: var(--sand); }
.section--ink table.data thead th, .section--ink-2 table.data thead th { background: rgba(237, 232, 220, .05); color: var(--muted-dark); }
table.data tbody tr:hover { background: rgba(176, 138, 74, .05); }
table.data td:first-child { font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.on-dark .faq, .section--ink .faq, .section--ink-2 .faq, .section--forest .faq { border-top-color: var(--line-dark); }
.faq details { border-bottom: 1px solid var(--line); }
.on-dark .faq details, .section--ink .faq details, .section--ink-2 .faq details, .section--forest .faq details { border-bottom-color: var(--line-dark); }
.faq summary {
  display: flex; align-items: baseline; gap: 18px;
  padding: 24px 4px; cursor: pointer; list-style: none;
  font: 500 1.12rem/1.45 var(--sans);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .q-num { font: 400 12px/1.6 var(--mono); color: var(--brass); flex: none; }
.faq summary::after {
  content: "+"; margin-left: auto; font: 300 1.5rem/1 var(--serif); color: var(--brass);
  transition: transform .3s var(--ease); flex: none;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 4px 26px 44px; color: var(--muted); max-width: 68ch; }
.on-dark .faq .a, .section--ink .faq .a, .section--ink-2 .faq .a, .section--forest .faq .a { color: var(--muted-dark); }
.faq .a a { color: var(--brass); text-underline-offset: 4px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.steps > * { background: var(--paper); padding: 34px 28px 38px; }
.section--ink .steps > *, .section--ink-2 .steps > * { background: var(--ink); }
@media (max-width: 1023px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 599px) { .steps { grid-template-columns: 1fr; } }
.step-num { font: 400 12px/1 var(--mono); color: var(--brass); letter-spacing: .1em; display: block; margin-bottom: 18px; }
.step-title { font: 500 1.3rem/1.2 var(--serif); margin-bottom: 12px; }
.step-body { font-size: .92rem; color: var(--muted); line-height: 1.7; }
.on-dark .step-body, .section--ink .step-body, .section--ink-2 .step-body { color: var(--muted-dark); }

/* ---------- Prose (long-form articles) ---------- */
.prose { max-width: var(--prose); }
.prose-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
@media (max-width: 1023px) { .prose-layout { grid-template-columns: 1fr; } .toc { position: static; } }
.toc { position: sticky; top: 110px; border-left: 1px solid var(--line); padding-left: 24px; }
.toc-title { font: 600 10.5px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.toc ol { list-style: none; padding: 0; display: grid; gap: 10px; }
.toc a { font: 400 12.5px/1.5 var(--mono); color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--brass); }

.prose > * + * { margin-top: 1.15em; }
.prose h2 { font: 400 clamp(1.7rem, 2.6vw, 2.3rem)/1.2 var(--serif); margin-top: 2.2em; }
.prose h3 { font: 600 1.22rem/1.4 var(--sans); margin-top: 1.9em; }
.prose p { color: #3A3B31; line-height: 1.85; }
.prose a { color: var(--brass); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; color: #3A3B31; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--brass); }
.prose blockquote {
  border-left: 2px solid var(--brass); padding: 6px 0 6px 26px;
  font: italic 400 1.35rem/1.5 var(--serif); color: var(--text);
}
.prose figure { margin-top: 2em; }
.prose figcaption { font: 400 11px/1.6 var(--mono); color: var(--muted); margin-top: 12px; letter-spacing: .04em; }
.prose .prose-meta { font: 400 11.5px/1.7 var(--mono); letter-spacing: .05em; color: var(--muted); text-transform: uppercase; }
.prose .prose-meta b { color: var(--brass); font-weight: 500; }
.prose table { margin-block: 1.8em; }

/* ---------- Related links ---------- */
.related { border-top: 1px solid var(--line); padding-top: 34px; margin-top: clamp(48px, 6vw, 72px); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 30px; }
.related-grid > a {
  background: var(--ivory); padding: 24px 26px; text-decoration: none; color: inherit;
  display: flex; flex-direction: column; gap: 8px; transition: background .25s var(--ease);
}
.related-grid > a:hover { background: var(--sand); }
.related-grid .rk { font: 400 11px/1 var(--mono); color: var(--brass); letter-spacing: .1em; }
.related-grid .rt { font: 500 1.05rem/1.35 var(--serif); }
.related-grid .rd { font-size: .84rem; color: var(--muted); line-height: 1.6; }
@media (max-width: 899px) { .related-grid { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: var(--text-dark); position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 50% 70% at 80% 30%, rgba(176, 138, 74, .14), transparent 60%);
}
.cta-band-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-block: clamp(64px, 8vw, 104px); }
.cta-band h2 { font: 300 clamp(2.1rem, 4.4vw, 3.6rem)/1.1 var(--serif); max-width: 22ch; }
.cta-band h2 em { font-style: italic; color: var(--brass-2); }
.cta-band .actions { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-note { font: 400 12px/1.7 var(--mono); letter-spacing: .04em; color: var(--muted-dark); margin-top: 14px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 699px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 9px; }
.field label { font: 600 10.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  background: var(--paper); border: 1px solid var(--line); border-radius: 2px;
  padding: 14px 16px; font-size: .95rem; color: var(--text); transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brass); outline: none; }
.form-status { margin-top: 18px; font: 400 12.5px/1.6 var(--mono); color: var(--brass); min-height: 1.4em; letter-spacing: .03em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--text-dark); border-top: 1px solid var(--line-dark); }
.footer-top { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: clamp(28px, 4vw, 56px); padding-block: clamp(56px, 7vw, 88px) 48px; }
@media (max-width: 1023px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 599px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand .brand-name { font-size: 1.5rem; }
.footer-brand p { color: var(--muted-dark); font-size: .9rem; max-width: 34ch; margin-top: 16px; line-height: 1.7; }
.footer-col h3 { font: 600 10.5px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--brass-2); margin-bottom: 20px; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 11px; }
.footer-col a { color: var(--muted-dark); text-decoration: none; font-size: .9rem; transition: color .2s; }
.footer-col a:hover { color: var(--brass-2); }
.footer-bottom { border-top: 1px solid var(--line-dark); padding-block: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font: 400 11px/1.8 var(--mono); letter-spacing: .05em; color: var(--muted-dark); }
.footer-bottom a { color: inherit; }
.footer-bottom a:hover { color: var(--brass-2); }

/* ---------- Utility ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 899px) { .split { grid-template-columns: 1fr; } }
.frame { overflow: hidden; border-radius: 2px; background: var(--sand); display: flex; align-items: center; justify-content: center; }
.frame img { width: 100%; height: auto; object-fit: contain; display: block; }
.mt-l { margin-top: clamp(40px, 6vw, 72px); }
.mt-m { margin-top: 28px; }
.center { text-align: center; }
.checklist { list-style: none; padding: 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 14px; align-items: baseline; }
.checklist .tick { font: 400 13px/1.4 var(--mono); color: var(--brass); flex: none; }
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; }
.tag { font: 500 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--line); padding: 8px 13px; border-radius: 999px; color: var(--muted); }
.on-dark .tag { border-color: var(--line-dark); color: var(--muted-dark); }

/* ---------- Developed product cards ---------- */
.pcard-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.pcard { background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; transition: border-color .3s, transform .3s; }
.pcard:hover { border-color: var(--brass); transform: translateY(-3px); }
.pcard-media { aspect-ratio: 1 / 1; overflow: hidden; background: #fff; display: flex; align-items: center; justify-content: center; padding: 10px; }
.pcard-media img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s var(--ease); }
.pcard:hover .pcard-media img { transform: scale(1.04); }
.pcard-body { padding: 16px 16px 15px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.pcard-num { font: 400 10.5px/1 var(--mono); letter-spacing: .12em; color: var(--brass); }
.pcard-title { font: 600 13px/1.45 var(--sans); color: var(--ink); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-desc { font: 400 11.5px/1.6 var(--sans); color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-meta { margin-top: auto; padding-top: 11px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 9px; }
.pcard-source { font: 400 9.5px/1.5 var(--mono); letter-spacing: .04em; color: var(--muted); }
.pcard-cta { font: 600 10.5px/1 var(--sans); letter-spacing: .13em; text-transform: uppercase; color: var(--brass); text-decoration: none; display: inline-flex; align-items: center; gap: 7px; }
.pcard-cta:hover { color: var(--brass-2); }
.pcard-cta .arr { transition: transform .2s; }
.pcard-cta:hover .arr { transform: translateX(4px); }
@media (max-width: 1199px) { .pcard-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 899px) { .pcard-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .pcard-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } .pcard-body { padding: 12px; } .pcard-desc { -webkit-line-clamp: 2; } }
.series-groups { display: grid; gap: clamp(38px, 5vw, 68px); }
.series-group-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 16px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.series-group-head h3 { margin: 9px 0 0; }
.series-group-head .link-more { flex: none; }
.series-group-count { font: 400 10.5px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--brass); flex: none; }
@media (max-width: 640px) { .series-group-head { align-items: flex-start; gap: 12px; } .series-group-head .link-more { font-size: 10px; } }
.pagination { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(32px, 4vw, 52px); padding-top: 24px; border-top: 1px solid var(--line); }
.page-link { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; min-height: 46px; padding: 0 16px; border: 1px solid var(--line); font: 500 11px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); text-decoration: none; transition: border-color .25s, background .25s, color .25s; }
.page-link:hover { border-color: var(--brass); color: var(--brass); }
.page-link.is-current { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pagination--top { margin-top: 0; margin-bottom: clamp(26px, 3vw, 38px); padding-top: 0; padding-bottom: 18px; border-top: 0; border-bottom: 1px solid var(--line); }
@media (max-width: 640px) { .pagination { gap: 8px; } .page-link { min-width: 40px; min-height: 40px; padding: 0 10px; font-size: 10px; } .pagination--top .page-link { flex: 1 1 calc(50% - 8px); } }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
