/* ==========================================================================
   Le Croise — website
   One master spine (Cormorant-led type, ◆ ornaments, layout grammar);
   each line owns its full palette via body[data-line] (ADR-0001 / ADR-0002).
   ========================================================================== */

/* Self-hosted variable fonts — no Google CDN (GDPR). Latin + Latin-ext woff2
   subset; one file per family spans all weights. Sources: /assets/fonts/. */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../assets/fonts/cormorant-garamond-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../assets/fonts/cormorant-garamond-italic-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../assets/fonts/hanken-grotesk-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Master chrome = Obrador line live palette (warm earth) */
  --ground:       #F2E9DC;
  --ground-edge:  #E8DCC4;
  --surface:      #E8DDC9;
  --ink:          #1F1812;
  --caption:      #6B5A4A;
  --accent:       #9A7A4A;
  --accent-light: #B8956A;
  --deep:         #6B5A4A;
  --hairline:     rgba(31, 24, 18, 0.16);
  --photo-a:      #E0D3BD;
  --photo-b:      #CBB99A;

  --serif: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --sans:  "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --measure: 64ch;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

body[data-line="cafeteria"] {
  /* Option 3 — dark "butter": cacao ground, bright orange type (ADR-0006) */
  --ground:       #3B2018;   /* Cacao */
  --ground-edge:  #2E1810;
  --surface:      #4A2E1E;   /* Corteza */
  --ink:          #E9D9C5;   /* Crema tostada — light type on dark */
  --caption:      #C9A98A;   /* muted warm */
  --accent:       #E0742F;   /* Naranja — flat, never metallic */
  --accent-light: #E8A765;   /* Ámbar */
  --deep:         #9D2F3A;   /* Cereza */
  --hairline:     rgba(233, 217, 197, 0.20);
  --photo-a:      #5A3A26;
  --photo-b:      #2E1810;
}

body[data-line="hotel"] {
  /* Option 3 — dark "raison d'être": royal-blue ground, flat gold type (ADR-0006) */
  --ground:       #294A8C;   /* Royal */
  --ground-edge:  #21407E;   /* Marine */
  --surface:      #1E3A74;
  --ink:          #E7DFC8;   /* Crema — light type on dark */
  --caption:      #BFD0E6;   /* Bruma */
  --accent:       #CBA253;   /* Oro — flat, never metallic */
  --accent-light: #D9C089;   /* Oro claro */
  --deep:         #BFD0E6;   /* Bruma */
  --hairline:     rgba(231, 223, 200, 0.20);
  --photo-a:      #21407E;
  --photo-b:      #1E3A74;
}

/* --------------------------------------------------------------- reset --- */

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.65;
  font-feature-settings: "onum" 1;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0.01em;
}

a { color: inherit; text-decoration: none; transition: color 0.4s ease, border-color 0.4s ease; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.skip-link {
  position: absolute; left: -200vw; top: 0;
  background: var(--ink); color: var(--ground);
  padding: 0.6rem 1rem; z-index: 10;
}
.skip-link:focus { left: 0; }

.wrap { max-width: 76rem; margin-inline: auto; padding-inline: var(--gutter); }

/* ------------------------------------------------------------- header --- */

.site-header {
  border-bottom: 1px solid var(--hairline);
  padding: 1.4rem 0 1.2rem;
}
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 0.9rem 2rem;
}
.wordmark {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.55rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  order: 1;
}
.wordmark .accent-e { letter-spacing: 0; }
/* brand + language toggle share the top row; nav drops to a full-width row below */
.site-nav { order: 3; flex-basis: 100%; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 1.6rem; list-style: none; }
.site-nav a {
  font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--caption);
  padding-bottom: 0.25rem; border-bottom: 1px solid transparent;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

/* ---- primary-nav dropdown (Clientes ▾ líneas) — the site's only submenu -- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
/* "Clientes" stays an ordinary inline nav link — aligns with and navigates exactly
   like its siblings. inline-block folds its underline padding into the box, so the
   panel anchors just below the padded link, never over it. The chevron is a small
   inline button beside it. */
.has-menu { position: relative; }
.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  vertical-align: middle; margin-left: 0.3rem;
  width: 1.1rem; height: 1.1rem; padding: 0; border: 0; background: none;
  color: var(--caption); cursor: pointer; line-height: 1;
}
.menu-toggle:hover { color: var(--ink); }
.menu-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.menu-toggle .chev { width: 0.6rem; height: 0.4rem; transition: transform 0.22s ease; }
.has-menu:not(.is-dismissed):hover .chev,
.menu-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }

.submenu {
  list-style: none; margin: 0; padding: 0.4rem 0;
  position: absolute; top: calc(100% + 0.15rem); right: 0; left: auto; z-index: 60;
  min-width: 13.5rem;
  background: var(--surface); border: 1px solid var(--hairline);
  box-shadow: 0 16px 34px -20px rgba(31, 24, 18, 0.6);
  opacity: 0; visibility: hidden; transform: translateY(0.4rem);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}
.has-menu:not(.is-dismissed):hover > .submenu,
.submenu.is-open {
  opacity: 1; visibility: visible; transform: translateY(0);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.submenu a {
  display: block; padding: 0.55rem 1.15rem; border-bottom: 0;
  white-space: nowrap; color: var(--caption);
}
.submenu a:hover, .submenu a:focus-visible { color: var(--ink); background: var(--ground-edge); }
.submenu a[aria-current="page"] { color: var(--ink); }
.submenu a[aria-current="page"]::before {
  content: "\25C6"; color: var(--accent); font-size: 0.5em;
  margin-right: 0.5rem; vertical-align: 0.15em;
}
.has-menu.is-section > a { color: var(--ink); border-bottom-color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  .submenu, .chev { transition: none; }
}

/* --------------------------------------------------------------- hero --- */

.hero { padding: clamp(4rem, 10vw, 8rem) 0 clamp(3rem, 8vw, 6rem); }
.hero--compact { padding: clamp(2rem, 5vw, 4rem) 0 clamp(1.5rem, 4vw, 3rem); }
.hero .wrap { max-width: 60rem; text-align: center; }
.eyebrow {
  font-size: 0.74rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--accent); font-weight: 400;
}
.eyebrow .accented { font-style: italic; text-transform: none; letter-spacing: 0.1em; }
.hero h1 {
  font-size: clamp(2.3rem, 5.4vw, 4.1rem);
  font-weight: 400;
  margin: 1.4rem 0 1.6rem;
}
.hero h1 em { font-style: italic; font-weight: 400; }
.hero .sub {
  color: var(--caption);
  max-width: 44ch; margin-inline: auto;
}
.hero .sub .lang { display: block; margin-top: 0.35rem; font-size: 0.92rem; }
.hero .sub .lang i { font-style: italic; }

.ornament {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  color: var(--accent); margin: 2.2rem 0 0;
  font-size: 0.6rem;
}
.ornament::before, .ornament::after {
  content: ""; height: 1px; width: 4.5rem; background: var(--hairline);
}

/* ----------------------------------------------------------- sections --- */

.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section + .section { border-top: 1px solid var(--hairline); }
.section-head { max-width: 52rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  font-weight: 500;
  margin-top: 0.9rem;
}
.section-head p { color: var(--caption); margin-top: 0.9rem; max-width: var(--measure); }
.section-head .fr { font-style: italic; }

.band { background: var(--surface); }
.band-ink { background: var(--ink); color: var(--ground); }
.band-ink .eyebrow { color: var(--accent-light); }
.band-ink p { color: color-mix(in srgb, var(--ground) 82%, var(--ink)); }

/* Homepage information ledgers: non-interactive decision and service modules. */
.info-ledger--light { background: var(--ground); }
.info-ledger--dark { background: var(--ink); color: var(--ground); }

.ledger-layout {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
.ledger-intro { grid-column: span 4; }
.ledger-intro h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  font-weight: 500;
  text-wrap: balance;
}
.ledger-intro p {
  max-width: 36ch;
  margin-top: 1.2rem;
  color: var(--caption);
}
.ledger-items {
  grid-column: span 8;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem) clamp(2rem, 4vw, 4rem);
  list-style: none;
}
.ledger-item {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 1rem;
  align-content: start;
  border-top: 1px solid var(--hairline);
  padding-top: 1.35rem;
}
.ledger-index {
  font-family: var(--serif);
  font-size: 1rem;
  font-style: italic;
  line-height: 1.3;
  color: var(--accent);
}
.ledger-item h3 {
  font-size: 1.42rem;
  font-weight: 500;
  margin-bottom: 0.6rem;
}
.ledger-item p {
  color: var(--caption);
  font-size: 0.95rem;
  line-height: 1.6;
}
.info-ledger--dark .ledger-intro p,
.info-ledger--dark .ledger-item p {
  color: color-mix(in srgb, var(--ground) 78%, var(--ink));
}
.info-ledger--dark .ledger-item { border-color: rgba(242, 233, 220, 0.22); }
.info-ledger--dark .ledger-index { color: var(--accent-light); }

@media (max-width: 960px) {
  .ledger-layout { grid-template-columns: 1fr; gap: 2.75rem; }
  .ledger-intro, .ledger-items { grid-column: 1; }
  .ledger-intro { max-width: 46rem; }
  .ledger-intro p { max-width: var(--measure); }
}

@media (max-width: 640px) {
  .ledger-layout { gap: 2.25rem; }
  .ledger-items { grid-template-columns: 1fr; gap: 1.8rem; }
  .ledger-item { grid-template-columns: 2.25rem minmax(0, 1fr); gap: 0.8rem; }
}

/* ----------------------------------------------------------- line cards --- */

.line-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }

.line-card {
  background: var(--lc-ground, var(--surface));
  color: var(--lc-ink, var(--ink));
  border: 1px solid var(--lc-edge, var(--hairline));
  padding: 2.4rem 2rem 2.2rem;
  display: flex; flex-direction: column; gap: 1rem;
  min-height: 22rem;
  transition: transform 0.5s ease;
}
.line-card:hover { transform: translateY(-3px); }
.line-card .line-eyebrow {
  font-size: 0.7rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--lc-accent, var(--accent));
}
.line-card h3 { font-size: 1.9rem; font-weight: 500; }
.line-card p { font-size: 0.97rem; opacity: 0.85; flex-grow: 1; }
.line-card .card-link {
  font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--lc-ink, var(--ink));
  border-bottom: 1px solid var(--lc-accent, var(--accent));
  align-self: flex-start; padding-bottom: 0.3rem;
}

/* ------------------------------------------------------------ pillars --- */

.pillar-grid { display: grid; gap: 2.5rem 2rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.pillar h3 { font-size: 1.45rem; margin-bottom: 0.6rem; }
.pillar h3 i { font-style: italic; }
.pillar p { font-size: 0.95rem; color: var(--caption); }
.band-ink .pillar p { color: color-mix(in srgb, var(--ground) 78%, var(--ink)); }
.pillar .num {
  font-family: var(--serif); font-size: 0.95rem; color: var(--accent);
  display: block; margin-bottom: 0.85rem;
}

/* ----------------------------------------------------------- catalogue --- */

.cat-nav { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.8rem; }
.cat-nav a {
  font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase;
  border: 1px solid var(--hairline); border-radius: 2rem;
  padding: 0.45rem 1.1rem; color: var(--caption);
}
.cat-nav a:hover { border-color: var(--accent); color: var(--ink); }

.product-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr)); }

.product { background: var(--surface); border: 1px solid var(--ground-edge); display: flex; flex-direction: column; }
body[data-line="hotel"] .product { border-color: var(--hairline); }

.photo {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--photo-a), var(--photo-b));
  display: flex; align-items: flex-end;
  padding: 0.8rem 1rem;
  position: relative;
}
.photo::before {
  content: "◆";
  position: absolute; top: 0.85rem; left: 1rem;
  font-size: 0.55rem; color: var(--accent); opacity: 0.7;
}
.photo .brief {
  font-size: 0.68rem; line-height: 1.45; letter-spacing: 0.04em;
  color: var(--ink); opacity: 0.55; font-style: italic;
}

/* real product photography — cutout heroes, framed edits, pending cells.
   Shared by the line pages and the catalogue so both read identically. */
.photo--cutout, .photo--framed, .photo--pendiente {
  align-items: center; justify-content: center; padding: 1.3rem; overflow: hidden;
}
.photo--cutout {
  background: color-mix(in srgb, var(--ground) 90%, var(--ink));
}
body[data-line="obrador"] .photo--cutout {
  background: color-mix(in srgb, var(--ground) 94%, var(--ink));
}
.photo--cutout img {
  max-width: 100%; max-height: 100%; width: auto; object-fit: contain;
}
/* The digital catalogue compares raw dough with finished pieces in one grid.
   Keep unproofed references visibly smaller so their preview reflects real scale. */
.page-products .product[data-estado="fermentar"] .photo--cutout > img:not(.shot-alt) {
  transform: scale(0.72);
  transform-origin: center;
}
.page-products .product[data-ref="LC-01-004-01"] .photo--cutout > img:not(.shot-alt),
.page-products .product[data-ref="LC-02-003-01"] .photo--cutout > img:not(.shot-alt) {
  transform: scale(0.55);
}
/* second shot on hover — the reference's photographic edit, same image its ficha opens on */
.photo--cutout { position: relative; }
.photo--cutout .shot-alt {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  object-fit: cover; opacity: 0; transition: opacity 0.45s ease;
}
.photo--cutout:hover .shot-alt,
.photo--cutout:focus-visible .shot-alt { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .photo--cutout .shot-alt { transition: none; } }
.photo--framed { background: #f9f7f2; padding: 0; }
.photo--framed img { width: 100%; height: 100%; object-fit: cover; }
.photo--pendiente {
  flex-direction: column; gap: 0.4rem;
  background: linear-gradient(135deg, var(--photo-a), var(--photo-b));
}
.photo--pendiente .pend {
  font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink); opacity: 0.6; font-style: italic; text-align: center;
}

/* bicolor fermentar · regenerar · terminado strip */
.state-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin: 0.2rem 0; }
.scell { text-align: center; display: flex; flex-direction: column; gap: 0.3rem; }
.sbox {
  aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--hairline);
  background: color-mix(in srgb, var(--ground) 90%, var(--ink));
}
.sbox img {
  max-width: 84%; max-height: 84%; object-fit: contain;
}
.sbox.pend {
  font-size: 0.55rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--caption); font-style: italic; border-style: dashed;
  padding: 0.4rem; line-height: 1.3;
}
.slbl { font-size: 0.58rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }

.product .body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.55rem; flex-grow: 1; }
.product h3 { font-size: 1.42rem; font-weight: 500; }
.product h3 a { color: inherit; text-decoration: none; }
.product h3 a:hover { color: var(--accent); }
.product h3 .fr { font-style: italic; }
.product .desc { font-size: 0.93rem; color: var(--caption); flex-grow: 1; }
.product .spec {
  font-size: 0.76rem; letter-spacing: 0.06em; color: var(--caption);
  border-top: 1px solid var(--hairline); padding-top: 0.7rem;
  font-feature-settings: "onum" 1, "tnum" 1;
}
.product .moments { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.product .moments > span {
  font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); border: 1px solid var(--hairline);
  padding: 0.18rem 0.55rem; border-radius: 2rem;
}

.cat-section { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.cat-section + .cat-section { border-top: 1px solid var(--hairline); }
.cat-section h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem); font-style: italic; font-weight: 500;
  margin-bottom: 0.5rem;
}
.cat-section .cat-note { color: var(--caption); max-width: var(--measure); margin-bottom: 2rem; font-size: 0.97rem; }

/* ---------------------------------------------------- service model steps --- */
/* Line pages: the service story in three gestures (recepción → gesto propio
   de la línea → servicio). Palette-true via body[data-line] like every
   component; the number and micro tags carry the line accent. */

.service-steps {
  display: grid; gap: 2.5rem 2rem;
  grid-template-columns: repeat(3, 1fr);
}
.service-step {
  border-top: 1px solid var(--hairline);
  padding-top: 1.5rem;
}
.service-step .num {
  font-family: var(--serif); font-style: italic;
  font-size: 1.05rem; color: var(--accent);
  display: block; margin-bottom: 0.9rem;
  font-feature-settings: "onum" 1;
}
.service-step h3 { font-size: 1.5rem; font-weight: 500; margin-bottom: 0.6rem; }
.service-step h3 i { font-style: italic; }
.service-step p { font-size: 0.95rem; color: var(--caption); max-width: 40ch; }
.service-step .fine {
  margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem;
  font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent);
}
@media (max-width: 720px) {
  .service-steps { grid-template-columns: 1fr; gap: 2rem; }
}

/* featured strip on line pages: the product grid plus a full-range exit */
.range-row { margin-top: 2.6rem; }

/* ---------------------------------------------------------------- cta --- */

.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 400; }
.cta-band p { max-width: 52ch; margin: 1rem auto 2rem; }
.cta-band h2 + .btn-row { margin-top: 2rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.btn {
  display: inline-block;
  font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 0.95rem 2.1rem;
  border: 1px solid currentColor;
  transition: background 0.4s ease, color 0.4s ease;
}
.btn-solid { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.btn-solid:hover { background: transparent; color: var(--ink); }
.band-ink .btn-solid { background: var(--ground); color: var(--ink); border-color: var(--ground); }
.band-ink .btn-solid:hover { background: transparent; color: var(--ground); }
.btn-quiet:hover { color: var(--accent); }

/* -------------------------------------------------------------- prose --- */

.prose { max-width: var(--measure); }
.prose p + p { margin-top: 1.2em; }
.prose .lede { font-family: var(--serif); font-size: 1.45rem; line-height: 1.45; font-weight: 400; }
.prose i, .prose em { font-style: italic; }

.quote-band blockquote {
  font-family: var(--serif); font-weight: 400; font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.4;
  max-width: 36ch; margin-inline: auto; text-align: center;
}
.quote-band cite {
  display: block; margin-top: 1.4rem; font-family: var(--sans);
  font-style: normal; font-size: 0.74rem; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--accent);
}

/* --------------------------------------------------------- spec tables --- */

.spec-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.spec-table th, .spec-table td {
  text-align: left; padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--hairline); vertical-align: top;
}
.spec-table th {
  font-weight: 500; font-size: 0.74rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--caption);
}
.spec-table td:first-child { font-family: var(--serif); font-size: 1.1rem; }

/* ----------------------------------------------------- photographic bands --- */
/* Reusable image surfaces — brings the §15 hero / detail / atmosphere
   cadence into the spine. Used by the Products hub; available site-wide. */

.atmos {
  position: relative;
  min-height: clamp(24rem, 60vh, 36rem);
  display: grid; align-items: end;
  overflow: hidden;
  background: var(--ground-edge);
}
.atmos > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.atmos::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    color-mix(in srgb, var(--ink) 86%, transparent) 0%,
    color-mix(in srgb, var(--ink) 54%, transparent) 38%,
    color-mix(in srgb, var(--ink) 12%, transparent) 100%);
}
.atmos .wrap { position: relative; z-index: 1; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.atmos .eyebrow { color: var(--accent-light); }
.atmos h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.08;
  color: var(--ground); margin: 1.1rem 0 1.2rem; max-width: 18ch;
}
.atmos h1 em { font-style: italic; }
.atmos .sub { color: color-mix(in srgb, var(--ground) 84%, var(--ink)); max-width: 46ch; }
/* photographic line hero — full-bleed image with a fixed dark veil + cream
   text, so it reads identically on the warm, cacao, and royal grounds
   (unlike .atmos, whose veil is palette-derived). Mirrors the print
   catalogue's category-hero cadence. */
.line-hero {
  position: relative;
  min-height: clamp(20rem, 52vh, 28rem);
  display: grid; align-items: end;
  overflow: hidden;
  background: var(--ground-edge);
}
.line-hero > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.line-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(18, 12, 7, 0.90) 0%,
    rgba(18, 12, 7, 0.55) 42%,
    rgba(18, 12, 7, 0.14) 100%);
}
.line-hero .wrap { position: relative; z-index: 1; padding-block: clamp(2.25rem, 4.5vw, 3.5rem); max-width: 60rem; }
.line-hero .eyebrow { color: var(--accent-light); }
.line-hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.2rem, 5.2vw, 4rem); line-height: 1.08;
  color: #F4ECDD; margin: 1.1rem 0 1.2rem; max-width: 20ch;
}
.line-hero h1 em { font-style: italic; }
.line-hero .sub { color: rgba(244, 236, 221, 0.88); max-width: 48ch; }
.line-hero .sub em { font-style: italic; }
.line-hero .cat-nav { margin-top: 1.8rem; }
.line-hero .cat-nav a { color: rgba(244, 236, 221, 0.82); border-color: rgba(244, 236, 221, 0.30); }
.line-hero .cat-nav a:hover { color: #F4ECDD; border-color: var(--accent-light); }

/* Standalone editorial statement following a line hero. Image context belongs
   in adjacent content or alt text, never as an explanatory image overlay. */
.line-quote {
  background: var(--surface);
  border-bottom: 1px solid var(--hairline);
}
.line-quote .wrap { padding-block: clamp(2.25rem, 5vw, 4rem); }
.line-quote blockquote {
  max-width: 26ch;
  margin: 0 auto;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  font-style: italic;
  line-height: 1.15;
  text-align: center;
  text-wrap: balance;
}

/* split image / text feature band */
.feature .wrap {
  display: grid; gap: clamp(1.5rem, 4vw, 3.5rem);
  grid-template-columns: 1fr 1fr; align-items: center;
}
.feature.flip .feature-media { order: 2; }
.feature-media {
  aspect-ratio: 4 / 5; overflow: hidden;
  border: 1px solid var(--hairline);
}
.feature-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature-copy h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 500; }
.feature-copy h2 i { font-style: italic; }
.feature-copy p { color: var(--caption); margin-top: 1rem; max-width: 42ch; }
.feature-copy .micro {
  margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem;
  font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent);
}
@media (max-width: 720px) {
  .feature .wrap { grid-template-columns: 1fr; }
  .feature.flip .feature-media { order: 0; }
}

/* --------------------------------------------------------- catalogue filters --- */

.filters-shell {
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 1.4rem; margin-bottom: 2.4rem;
}
.filters-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.filters-toggle {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink);
  background: transparent; border: 1px solid var(--hairline); border-radius: 2rem;
  padding: 0.5rem 1.1rem; cursor: pointer;
  transition: border-color 0.3s ease;
}
.filters-toggle:hover { border-color: var(--ink); }
.filters-chevron { transition: transform 0.3s ease; }
.filters-toggle[aria-expanded="true"] .filters-chevron { transform: rotate(180deg); }
.filters-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 1.15rem; height: 1.15rem; padding: 0 0.28rem;
  border-radius: 1rem; background: var(--ink); color: var(--ground);
  font-size: 0.62rem; letter-spacing: 0; font-feature-settings: "tnum" 1;
}
.filters-badge[hidden] { display: none; }
/* collapsed by default: 0fr row + overflow-hidden clip animates open without a
   fixed max-height; visibility keeps the closed chips out of the tab order */
.filters-panel {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s ease;
}
.filters-clip {
  overflow: hidden; min-height: 0;
  visibility: hidden; transition: visibility 0s linear 0.45s;
}
.filters-panel.open { grid-template-rows: 1fr; }
.filters-panel.open .filters-clip { visibility: visible; transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) {
  .filters-panel, .filters-clip, .filters-chevron { transition: none; }
}

.filters {
  display: flex; flex-wrap: wrap; gap: 1.6rem 2.4rem;
  padding-top: 1.6rem;
}
.filter-group { display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem; }
.filter-group .flbl {
  font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--caption); margin-right: 0.4rem;
}
.chip {
  font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--caption);
  background: transparent; border: 1px solid var(--hairline); border-radius: 2rem;
  padding: 0.42rem 1rem; cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.chip:hover { color: var(--ink); }
.chip[aria-pressed="true"] {
  color: var(--ground); background: var(--ink); border-color: var(--ink);
}
.chip .dot {
  display: inline-block; width: 0.5rem; height: 0.5rem; border-radius: 50%;
  margin-right: 0.4rem; vertical-align: 0.02em; background: var(--chip, var(--accent));
}
.filter-count {
  font-size: 0.78rem; color: var(--caption); margin: 0;
  font-feature-settings: "tnum" 1;
}

/* product cards carry a line tag + accent edge, palette-true on the warm ground */
.product { transition: opacity 0.4s ease, transform 0.4s ease, border-color 0.3s ease; }
.product[hidden] { display: none; }
.product.lc { border-top: 2px solid var(--lc, var(--accent)); }
.product .tag {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--lc, var(--accent)); margin-bottom: 0.1rem;
}
.product .tag::before {
  content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%;
  background: var(--lc, var(--accent));
}
/* shared references carry one tag per line, each palette-true */
.product .tag { margin-right: 0.85rem; }
.product .tag:last-of-type { margin-right: 0; }
.product .cat-label { font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--caption); }
.no-results {
  text-align: center; color: var(--caption); font-style: italic;
  font-family: var(--serif); font-size: 1.3rem; padding: 3rem 0;
}
.no-results--inline {
  grid-column: 1 / -1; margin: 0; padding: 1.2rem;
  border: 1px dashed var(--hairline); background: var(--surface);
}

/* --------------------------------------------------------- product fiches --- */
/* breadcrumb path — sits in flow directly under the site header */
.breadcrumb {
  border-bottom: 1px solid var(--hairline);
  background: color-mix(in srgb, var(--ground) 97%, var(--ink));
}
.breadcrumb .wrap {
  display: flex; align-items: center; gap: 0.6rem;
  padding-top: 0.7rem; padding-bottom: 0.7rem;
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
}
.breadcrumb a { color: var(--accent); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb .sep { color: var(--caption); }
.breadcrumb .current {
  color: var(--caption);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fiche-layout {
  display: grid; grid-template-columns: minmax(16rem, 0.95fr) minmax(18rem, 1.05fr);
  gap: clamp(2rem, 6vw, 4rem); align-items: start;
}
.fiche-media {
  aspect-ratio: 1 / 1; border: 1px solid var(--ground-edge);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.fiche-media img { width: 100%; height: 100%; object-fit: cover; }
.fiche-copy h1 {
  font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.15;
  max-width: 24ch; margin: 0.35rem 0 1rem;
}

/* allergen chips — field-label typography, hairline pills, spec-sheet register */
.fiche-allergens { margin: 0 0 1.7rem; }
.fiche-allergens h2 {
  font-family: var(--sans); font-weight: 500;
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--caption); margin-bottom: 0.7rem;
}
.fiche-allergens ul {
  display: flex; flex-wrap: wrap; gap: 0.45rem;
  list-style: none; margin: 0; padding: 0;
}
.fiche-allergens li {
  font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink); border: 1px solid var(--hairline);
  border-radius: 2rem; padding: 0.32rem 0.85rem;
}
.fiche-allergens .note {
  margin-top: 0.7rem; font-size: 0.8rem; color: var(--caption); font-style: italic;
}
.fiche-specs {
  display: grid; grid-template-columns: minmax(8rem, 0.45fr) 1fr;
  gap: 0; margin: 1.4rem 0 1.6rem; border-top: 1px solid var(--hairline);
}
.fiche-specs dt,
.fiche-specs dd { padding: 0.75rem 0; border-bottom: 1px solid var(--hairline); }
.fiche-specs dt {
  color: var(--caption); letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.72rem;
}
.fiche-specs dd { font-feature-settings: "onum" 1, "tnum" 1; }

/* top bar above the fiche grid: back-to-catalogue chip + line-page chips */
.fiche-topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.8rem 1rem; flex-wrap: wrap;
  margin-bottom: clamp(1.6rem, 3vw, 2.4rem);
}
.fiche-back { display: inline-flex; align-items: baseline; gap: 0.45rem; }
.fiche-lines { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; }

/* fiche image carousel — quiet controls, hairline dots, palette-true grounds */
.fiche-carousel { position: relative; width: 100%; height: 100%; }
.fiche-carousel .slide {
  position: absolute; inset: 0; margin: 0; opacity: 0;
  transition: opacity 0.5s ease;
  display: flex; align-items: center; justify-content: center;
}
.fiche-carousel .slide.is-active { opacity: 1; }
.fiche-carousel .slide img { width: 100%; height: 100%; object-fit: cover; }
.fiche-carousel .slide--cutout {
  padding: 2.2rem;
  background: color-mix(in srgb, var(--ground) 94%, var(--ink));
}
.fiche-carousel .slide--cutout img {
  width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain;
}
.fiche-carousel .cbtn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 1;
  width: 2.4rem; height: 2.4rem; border-radius: 50%; padding: 0;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--ground) 78%, transparent);
  border: 1px solid var(--hairline); color: var(--ink); cursor: pointer;
  transition: background 0.3s ease;
}
.fiche-carousel .cbtn:hover { background: var(--ground); }
.fiche-carousel .cbtn--prev { left: 0.7rem; }
.fiche-carousel .cbtn--next { right: 0.7rem; }
.fiche-carousel .cbtn svg { width: 0.7rem; height: 0.7rem; }
.fiche-carousel .cdots {
  position: absolute; left: 0; right: 0; bottom: 0.85rem; z-index: 1;
  display: flex; gap: 0.5rem; justify-content: center;
}
.fiche-carousel .cdots button {
  width: 0.5rem; height: 0.5rem; border-radius: 50%; padding: 0;
  border: 1px solid var(--ink); background: transparent; cursor: pointer;
}
.fiche-carousel .cdots button[aria-current="true"] { background: var(--ink); }
@media (prefers-reduced-motion: reduce) { .fiche-carousel .slide { transition: none; } }

/* ------------------------------------------------------------- footer --- */

.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 3.5rem 0 2.5rem;
  font-size: 0.88rem; color: var(--caption);
}
.site-footer .wrap { display: flex; flex-direction: column; gap: 2.5rem; }
.site-footer .footer-main {
  display: grid; gap: 2.5rem 2rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  align-items: start;
}
.site-footer .to-top {
  justify-self: end; align-self: start;
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--caption);
  border: 1px solid var(--hairline); border-radius: 2rem;
  padding: 0.6rem 1.2rem;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.site-footer .to-top:hover { color: var(--ink); border-color: var(--accent); }
.site-footer .to-top .to-top-icon { font-size: 1rem; line-height: 1; }
.site-footer .cipher { color: var(--accent); margin-bottom: 1rem; }
.site-footer h4 {
  font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase;
  font-weight: 500; color: var(--ink); margin-bottom: 0.9rem;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.45rem; }
.site-footer .endorsement {
  font-family: var(--serif); font-style: italic; font-size: 1rem;
}
.site-footer .legal {
  border-top: 1px solid var(--hairline);
  padding-top: 1.4rem; font-size: 0.78rem; letter-spacing: 0.06em;
  display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: space-between;
}
.site-footer .legal-links { display: inline-flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; }
.site-footer .legal-links a { color: var(--caption); border-bottom: 1px solid transparent; }
.site-footer .legal-links a:hover { color: var(--ink); border-bottom-color: var(--accent); }

/* ------------------------------------------------------- legal/privacy --- */

.legal-page .hero { padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.legal-prose { max-width: 52rem; }
.legal-prose > section + section {
  margin-top: 2.5rem; padding-top: 2.5rem; border-top: 1px solid var(--hairline);
}
.legal-prose h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); font-weight: 500; margin-bottom: 0.9rem; }
.legal-prose h3 { font-family: var(--sans); font-size: 0.76rem; letter-spacing: 0.18em; text-transform: uppercase; margin: 1.4rem 0 0.5rem; }
.legal-prose p + p { margin-top: 0.9rem; }
.legal-prose ul { margin: 0.8rem 0 0 1.2rem; }
.legal-prose li + li { margin-top: 0.45rem; }
.legal-prose a, .privacy-summary a { color: var(--accent); border-bottom: 1px solid var(--hairline); }
.operator-card {
  padding: 1.4rem 1.5rem; border: 1px solid var(--hairline); background: var(--surface);
  display: grid; gap: 0.45rem; margin-top: 1rem;
}
.privacy-summary {
  grid-column: 1 / -1; padding: 1rem 1.1rem;
  border: 1px solid var(--hairline); background: var(--surface);
  color: var(--caption); font-size: 0.82rem; line-height: 1.55;
}
.privacy-summary strong { color: var(--ink); font-weight: 500; }

/* --------------------------------------------------------- language links --- */
.lang-switch {
  display: inline-flex; align-self: center;
  border: 1px solid var(--hairline); border-radius: 2rem; overflow: hidden;
}
/* header toggle: top-right corner of the brand row */
.site-header .lang-switch { order: 2; margin-left: auto; }
/* footer links: bottom-right corner */
.site-footer .lang-switch--footer { align-self: flex-end; margin-top: 0.4rem; }
.lang-switch a {
  display: inline-block;
  font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--caption);
  background: transparent;
  padding: 0.4rem 0.72rem; transition: color 0.3s ease, background 0.3s ease;
}
.lang-switch a + a { border-left: 1px solid var(--hairline); }
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current="page"] { color: var(--ground); background: var(--ink); }
.lang-switch a[aria-current="page"]:hover { color: var(--ground); }

/* ------------------------------------------------------ analytics consent --- */
.cookie-settings-link {
  appearance: none; padding: 0; border: 0; border-bottom: 1px solid transparent;
  background: transparent; color: var(--caption); font: inherit; letter-spacing: inherit;
  cursor: pointer;
}
.cookie-settings-link:hover { color: var(--ink); border-bottom-color: var(--accent); }
.consent-banner {
  position: fixed; z-index: 1000; right: 1rem; bottom: 1rem;
  width: min(42rem, calc(100% - 2rem)); padding: clamp(1.2rem, 3vw, 1.8rem);
  display: grid; grid-template-columns: 1fr; gap: 1.25rem;
  align-items: end; color: var(--ink); background: var(--ground);
  border: 1px solid var(--ink); box-shadow: 0 1.25rem 4rem rgba(31,24,18,0.18);
}
.consent-banner[hidden] { display: none; }
.consent-banner h2 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); font-weight: 500; margin-bottom: 0.45rem; }
.consent-banner p { color: var(--caption); font-size: 0.86rem; line-height: 1.55; }
.consent-banner p a { color: var(--accent); border-bottom: 1px solid var(--hairline); }
.consent-banner__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; }
.consent-banner__actions .btn { min-width: 0; text-align: center; }
.catalogue-language-note { width: 100%; margin-bottom: 1rem; text-align: center; }

/* --------------------------------------------------------- responsive --- */

@media (max-width: 640px) {
  .site-nav { position: relative; }
  .site-nav ul { gap: 1rem 1.3rem; }
  .site-nav .has-menu { position: static; }
  .site-nav .submenu {
    top: calc(100% + 0.35rem); left: 0; right: auto;
    width: min(13.5rem, 100%); min-width: 0; max-width: 100%;
  }
  .hero .wrap { text-align: left; }
  .hero .sub { margin-inline: 0; }
  .ornament { justify-content: flex-start; }
  .ornament::before { display: none; }
  .fiche-layout { grid-template-columns: 1fr; }
  .fiche-copy h1 { max-width: none; }
  .fiche-specs { grid-template-columns: 1fr; }
  .fiche-specs dt { padding-bottom: 0.2rem; border-bottom: none; }
  .fiche-specs dd { padding-top: 0; }
  .consent-banner__actions .btn { min-width: 0; padding-inline: 0.7rem; }
}

/* ----------------------------------------------------- flipbook --------- */
/* Interactive page-flip catalogue (catalogo.html). PDF.js renders pages onto
   canvases; StPageFlip turns them into the book. */

.flipbook-wrap { display: flex; flex-direction: column; gap: 1.6rem; align-items: center; }

.flipbook-stage {
  width: 100%;
  min-height: 60vh;
  display: flex; align-items: center; justify-content: center;
  padding: 1.4rem;
  background:
    radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--ground) 80%, var(--ink)), transparent 70%),
    var(--ground-edge);
  border: 1px solid var(--hairline);
}
.flipbook-stage:fullscreen { background: var(--ground-edge); padding: 3vh 2vw; }

#flipbook { margin: 0 auto; max-width: 100%; }
#flipbook .pf-page { background: #fdfbf6; box-shadow: 0 0 1px rgba(31,24,18,0.4); overflow: hidden; }
#flipbook canvas { display: block; width: 100%; height: 100%; }

/* status / loading / error / no-JS */
.flipbook-status { text-align: center; color: var(--caption); font-size: 0.92rem; letter-spacing: 0.04em; }
.flipbook-status .flipbook-loading,
.flipbook-status .flipbook-error { display: none; margin-bottom: 0.5rem; }
.flipbook-status[data-state="loading"] .flipbook-loading { display: block; }
.flipbook-status[data-state="error"] .flipbook-error { display: block; color: var(--accent); }
.flipbook-status[data-state="ready"] { display: none; }
.flipbook-status[data-state="loading"] .flipbook-fallback { display: none; }
.flipbook-fallback a, .flipbook-noscript a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--hairline); }
.flipbook-fallback a:hover, .flipbook-noscript a:hover { color: var(--ink); }
.flipbook-noscript { text-align: center; margin-top: 1rem; }

/* controls — pill buttons in the system's voice */
.flipbook-controls { display: flex; flex-wrap: wrap; gap: 0.6rem 0.8rem; align-items: center; justify-content: center; }
.flip-btn {
  font-family: inherit; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink); background: var(--surface); border: 1px solid var(--hairline); border-radius: 2rem;
  padding: 0.6rem 1.25rem; cursor: pointer; text-decoration: none; line-height: 1;
  display: inline-flex; align-items: center; gap: 0.4rem;
  transition: color .25s, border-color .25s, background .25s;
}
.flip-btn:hover { border-color: var(--accent); color: var(--accent); }
.flip-btn--quiet { background: transparent; color: var(--caption); }
.flip-btn--quiet:hover { color: var(--ink); }
.flipbook-indicator {
  font-size: 0.72rem; letter-spacing: 0.16em; color: var(--caption);
  font-feature-settings: "tnum" 1; min-width: 5ch; text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .stf__item { transition: none !important; }
}
@media (max-width: 640px) {
  .flipbook-stage { min-height: 50vh; padding: 0.8rem; }
}
