/* ============================================================
   FIBRA · fibra.eco
   Design system: "the material is the brand"
   Palette from the product itself: bleached pulp, board, kraft,
   ink, deep bamboo forest green. Type: Archivo (display + body),
   IBM Plex Mono (specs, codes, eyebrows).
   Signature: the bale tag / grade plate (clipped-corner card).
   ============================================================ */

/* ---- Self-hosted fonts (latin subsets, served same-origin) --- */
@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/archivo-var.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 100% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../assets/fonts/plexmono-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../assets/fonts/plexmono-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../assets/fonts/plexmono-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}

/* ---- Tokens ------------------------------------------------ */
:root {
  /* color */
  --bleached:     #F2EFE7;   /* light warm paper, main bg      */
  --bleached-hi:  #F8F6F0;   /* raised surfaces                */
  --board:        #E7E0CE;   /* pulp board, alt surface        */
  --kraft:        #C9B48F;   /* unbleached kraft, accents      */
  --kraft-deep:   #A68D62;   /* kraft shadow tone              */
  --ink:          #191C18;   /* near-black green-tinted ink    */
  --ink-soft:     #4C5148;   /* secondary text                 */
  --ink-faint:    #5E625A;   /* captions on light              */
  --forest:       #1E3D2B;   /* deep bamboo green, brand       */
  --forest-deep:  #142B1E;   /* footer / dark band base        */
  --leaf:         #3E7A50;   /* interactive accent             */
  --leaf-bright:  #79BA88;   /* interactive accent on dark     */
  --paper-dark:   #EDE9DD;   /* subtle band on light           */
  --line:         rgba(25, 28, 24, 0.16);
  --line-strong:  rgba(25, 28, 24, 0.55);
  --line-dark:    rgba(242, 239, 231, 0.18);

  /* type */
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body:    "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono:    "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  /* rhythm */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 96px;
  --container: 1240px;
  --pad-x: clamp(20px, 4.5vw, 48px);
  --notch: 26px;   /* the tag corner cut */

  /* motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---- Reset / base ------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--forest-deep); /* footer shows through on lift */
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 420;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.06;
  margin: 0 0 var(--space-3);
  font-weight: 640;
  letter-spacing: -0.015em;
  font-variation-settings: "wdth" 112;
  text-wrap: balance;
}

p { margin: 0 0 var(--space-2); }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--leaf); }

::selection { background: var(--kraft); color: var(--ink); }

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--bleached);
  padding: 10px 18px;
  font-family: var(--font-mono);
  font-size: 13px;
}
.skip-link:focus { left: 0; }

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

/* ---- Loader ------------------------------------------------- */
#loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bleached);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.55s var(--ease), visibility 0.55s;
}
#loader.is-done { opacity: 0; visibility: hidden; }
#loader .loader-mark {
  font-family: var(--font-display);
  font-weight: 750;
  font-variation-settings: "wdth" 122;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  font-size: clamp(20px, 3vw, 30px);
  color: var(--forest);
  animation: loaderPulse 1.4s var(--ease) infinite alternate;
}
@keyframes loaderPulse { from { opacity: 0.45; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  #loader { display: none; }
}

/* ---- Layout helpers ----------------------------------------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

main {
  position: relative;
  z-index: 1;
  background: var(--bleached);
  /* soft fiber grain */
  background-image:
    radial-gradient(rgba(25,28,24,0.028) 1px, transparent 1px);
  background-size: 5px 5px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.45);
}

.section { padding-block: clamp(72px, 9vw, 124px); }
.section-tight { padding-block: clamp(52px, 6vw, 84px); }
.band-board { background: var(--paper-dark); }
.band-dark {
  background: var(--forest);
  color: var(--bleached);
}
.band-dark ::selection { background: var(--leaf); color: var(--bleached); }

/* Eyebrow: mono metadata line above headings */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: var(--space-3);
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--kraft-deep);
  flex: none;
}
.band-dark .eyebrow { color: rgba(242,239,231,0.6); }
.band-dark .eyebrow::before { background: var(--leaf-bright); }

.lede {
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 46em;
}
.band-dark .lede { color: rgba(242,239,231,0.82); }

.measure { max-width: 62ch; }

/* ---- Header / nav -------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(242, 239, 231, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-block: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 22px;
  height: 22px;
  background: var(--forest);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
  flex: none;
}
.brand-word {
  font-family: var(--font-display);
  font-weight: 760;
  font-variation-settings: "wdth" 122;
  letter-spacing: 0.26em;
  font-size: 17px;
  line-height: 1;
  transform: translateY(1px);
}
.brand-tld {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.1em;
  transform: translateY(2px);
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: clamp(18px, 2.4vw, 34px);
  margin: 0;
  padding: 0;
  align-items: center;
}
.site-nav a {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  padding-block: 6px;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--kraft-deep); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--forest); }
.site-nav .nav-cta a {
  border: 1px solid var(--ink);
  padding: 9px 16px;
  color: var(--ink);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}
.site-nav .nav-cta a:hover { background: var(--ink); color: var(--bleached); }

/* Mobile nav */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 1px solid var(--ink);
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}
/* Hamburger that animates to an X */
.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle-icon { position: relative; }
.nav-toggle-icon::before { position: absolute; left: 0; top: -6px; }
.nav-toggle-icon::after  { position: absolute; left: 0; top: 6px; }
.nav-open .nav-toggle-icon { background: transparent; }
.nav-open .nav-toggle-icon::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle-icon::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 940px) {
  .nav-toggle { display: inline-flex; }
  /* Full-screen opaque overlay panel */
  .site-nav {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: var(--bleached);
    display: none;
    z-index: 1;               /* within the header stacking context */
    padding: 96px var(--pad-x) 48px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .nav-open .site-nav { display: block; }
  /* Lift the brand and toggle above the overlay so both stay tappable */
  .nav-open .brand,
  .nav-open .nav-toggle { position: relative; z-index: 2; }
  /* Keep the header bar opaque, and drop the scrolled backdrop-filter:
     backdrop-filter makes the header a containing block for the fixed
     overlay, which would trap it inside the header bar. */
  .nav-open .site-header {
    background: var(--bleached);
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .site-nav a {
    font-size: 17px;
    letter-spacing: 0.18em;
    padding-block: 12px;
    display: block;
  }
  .site-nav .nav-cta { margin-top: 18px; }
}

/* ---- Buttons -------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 26px;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--bleached); }
.btn-solid { background: var(--forest); border-color: var(--forest); color: var(--bleached); }
.btn-solid:hover { background: var(--forest-deep); border-color: var(--forest-deep); color: var(--bleached); }
.band-dark .btn { border-color: var(--bleached); color: var(--bleached); }
.band-dark .btn:hover { background: var(--bleached); color: var(--forest); }
.band-dark .btn-solid { background: var(--bleached); color: var(--forest); border-color: var(--bleached); }
.band-dark .btn-solid:hover { background: var(--kraft); border-color: var(--kraft); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: var(--space-4); }

/* ---- Hero ------------------------------------------------------ */
.hero {
  padding-top: clamp(140px, 18vh, 200px);
  padding-bottom: clamp(56px, 7vw, 96px);
}
.hero h1 {
  font-size: clamp(40px, 6.2vw, 78px);
  font-weight: 700;
  letter-spacing: -0.022em;
  font-variation-settings: "wdth" 115;
  max-width: 15ch;
  margin-bottom: var(--space-3);
}
.hero .lede { max-width: 52ch; }

/* Sheet stack: the signature hero object. Stacked pulp boards,
   bleached to unbleached, each labeled with its grade line. */
.sheet-stack {
  margin-top: clamp(48px, 6vw, 84px);
  display: flex;
  flex-direction: column;
}
.sheet {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  padding: 17px 22px;
  border: 1px solid var(--line);
  border-bottom: none;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.sheet:last-child { border-bottom: 1px solid var(--line); }
.sheet:hover { transform: translateX(8px); color: var(--ink); }
.sheet-grade { font-weight: 600; white-space: nowrap; }
.sheet-name { flex: 1; color: var(--ink-soft); min-width: 0; }
.sheet-spec { color: var(--ink-faint); white-space: nowrap; }
.sheet-1 { background: var(--bleached-hi); margin-right: 0; }
.sheet-2 { background: var(--board); margin-right: 3.5%; }
.sheet-3 { background: #DCD2B8; margin-right: 1.5%; }
.sheet-4 { background: var(--kraft); margin-right: 5%; }
.sheet-5 {
  background: var(--forest);
  color: var(--bleached);
  margin-right: 2.5%;
}
.sheet-5:hover { color: var(--bleached); }
.sheet-5 .sheet-name { color: rgba(242,239,231,0.75); }
.sheet-5 .sheet-spec { color: rgba(242,239,231,0.55); }
@media (max-width: 700px) {
  .sheet { flex-wrap: wrap; row-gap: 4px; padding: 14px 16px; }
  .sheet-spec { display: none; }
  .sheet-2, .sheet-3, .sheet-4, .sheet-5 { margin-right: 0; }
}

/* ---- Tag plate: the bale-tag card ------------------------------ */
.plate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(18px, 2.5vw, 28px);
  margin-top: var(--space-5);
}
.tag-plate {
  background: var(--bleached-hi);
  border: 1px solid var(--line-strong);
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%);
  padding: 26px 26px 24px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
a.tag-plate:hover { transform: translateY(-4px); color: var(--ink); }
.band-dark .tag-plate {
  background: rgba(242,239,231,0.045);
  border-color: var(--line-dark);
  color: var(--bleached);
}
.tag-plate-kraft { background: var(--board); }
.tag-code {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.band-dark .tag-code { color: rgba(242,239,231,0.55); border-color: var(--line-dark); }
.tag-plate h3 {
  font-size: 21px;
  font-weight: 650;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.tag-plate p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 0;
}
.band-dark .tag-plate p { color: rgba(242,239,231,0.75); }
.tag-plate .tag-foot {
  margin-top: auto;
  padding-top: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--leaf);
}
.band-dark .tag-plate .tag-foot { color: var(--leaf-bright); }

/* ---- Spec table ------------------------------------------------- */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 13.5px;
  margin-top: var(--space-4);
}
.spec-table caption {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-bottom: 12px;
}
.spec-table th, .spec-table td {
  text-align: left;
  padding: 13px 18px 13px 0;
  border-top: 1px solid var(--line);
  vertical-align: top;
}
.spec-table tr:last-child th, .spec-table tr:last-child td {
  border-bottom: 1px solid var(--line);
}
.spec-table th {
  font-weight: 500;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
  width: 34%;
  white-space: nowrap;
}
.spec-table td { color: var(--ink); font-weight: 500; }
.spec-note {
  font-size: 13px;
  color: var(--ink-faint);
  margin-top: 14px;
  max-width: 60ch;
}
.band-dark .spec-table th { color: rgba(242,239,231,0.55); }
.band-dark .spec-table td { color: var(--bleached); }
.band-dark .spec-table th, .band-dark .spec-table td { border-color: var(--line-dark); }
.band-dark .spec-note { color: rgba(242,239,231,0.55); }
@media (max-width: 620px) {
  .spec-table th { white-space: normal; width: 42%; }
}

/* Table wrapper for anything wide */
.table-scroll { overflow-x: auto; }

/* ---- Document list (the dossier) -------------------------------- */
.doc-list {
  list-style: none;
  margin: var(--space-4) 0 0;
  padding: 0;
  border-top: 1px solid var(--line-dark);
}
.doc-list li {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 15px 4px;
  border-bottom: 1px solid var(--line-dark);
  font-size: 15.5px;
}
.doc-list .doc-index {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--leaf-bright);
  letter-spacing: 0.1em;
  flex: none;
  width: 42px;
}
.doc-list .doc-name { font-weight: 560; }
.doc-list .doc-desc { color: rgba(242,239,231,0.65); font-size: 14px; }
@media (max-width: 700px) {
  .doc-list li { flex-wrap: wrap; row-gap: 2px; }
  .doc-list .doc-desc { flex-basis: 100%; padding-left: 60px; }
}
/* Light-band variant */
.section .doc-list.on-light { border-color: var(--line); }
.doc-list.on-light li { border-color: var(--line); }
.doc-list.on-light .doc-index { color: var(--leaf); }
.doc-list.on-light .doc-desc { color: var(--ink-faint); }

/* ---- Timeline (compliance calendar) ------------------------------ */
.timeline {
  list-style: none;
  margin: var(--space-4) 0 0;
  padding: 0;
}
.timeline li {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline time, .timeline .t-date {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--forest);
  text-transform: uppercase;
}
.timeline .t-title { font-weight: 600; display: block; margin-bottom: 3px; }
.timeline .t-body { color: var(--ink-soft); font-size: 15px; }
.timeline li.is-due time, .timeline li.is-due .t-date { color: #A2542E; }
@media (max-width: 620px) {
  .timeline li { grid-template-columns: 1fr; gap: 6px; }
}

/* ---- Process steps (numbered: order carries meaning) -------------- */
.steps {
  list-style: none;
  counter-reset: step;
  margin: var(--space-5) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 26px;
}
.steps li { counter-increment: step; }
.steps li::before {
  content: "0" counter(step);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--leaf);
  display: block;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.band-dark .steps li::before { color: var(--leaf-bright); border-color: var(--line-dark); }
.steps h3 { font-size: 17.5px; font-weight: 640; margin-bottom: 8px; }
.steps p { font-size: 14.5px; color: var(--ink-soft); }
.band-dark .steps p { color: rgba(242,239,231,0.72); }

/* ---- Split layout ------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.split > * { min-width: 0; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
}
.sticky-col { position: sticky; top: 120px; }
@media (max-width: 860px) { .sticky-col { position: static; } }

/* Definition rows (origin, logistics facts) */
.fact-rows { margin-top: var(--space-4); }
.fact-row {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 18px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  font-size: 15.5px;
}
.fact-row:last-child { border-bottom: 1px solid var(--line); }
.fact-row dt {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 500;
  padding-top: 2px;
}
.fact-row dd { margin: 0; color: var(--ink-soft); }
.fact-row dd strong { color: var(--ink); font-weight: 600; }
.band-dark .fact-row { border-color: var(--line-dark); }
.band-dark .fact-row dt { color: rgba(242,239,231,0.5); }
.band-dark .fact-row dd { color: rgba(242,239,231,0.78); }
.band-dark .fact-row dd strong { color: var(--bleached); }
@media (max-width: 560px) {
  .fact-row { grid-template-columns: 1fr; gap: 4px; }
}

/* ---- Page hero (inner pages) --------------------------------------- */
.page-hero {
  padding-top: clamp(130px, 16vh, 180px);
  padding-bottom: clamp(40px, 5vw, 72px);
}
.page-hero h1 {
  font-size: clamp(34px, 4.8vw, 60px);
  font-weight: 700;
  font-variation-settings: "wdth" 115;
  letter-spacing: -0.02em;
  max-width: 17ch;
}

/* ---- Prose (legal etc.) --------------------------------------------- */
.prose h2 { font-size: 24px; margin-top: var(--space-5); }
.prose h3 { font-size: 18px; margin-top: var(--space-4); }
.prose p, .prose li { color: var(--ink-soft); font-size: 15.5px; }
.prose ul { padding-left: 22px; }

/* ---- Contact page ---------------------------------------------------- */
.contact-card {
  border: 1px solid var(--line-strong);
  background: var(--bleached-hi);
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%);
  padding: clamp(26px, 4vw, 44px);
}
.contact-email {
  font-family: var(--font-display);
  font-weight: 680;
  font-variation-settings: "wdth" 110;
  font-size: clamp(22px, 3.4vw, 36px);
  letter-spacing: -0.01em;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  word-break: break-word;
}
.rfq-checklist {
  list-style: none;
  margin: var(--space-3) 0 0;
  padding: 0;
}
.rfq-checklist li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink-soft);
}
.rfq-checklist li:last-child { border-bottom: 1px solid var(--line); }
.rfq-checklist li::before {
  content: "→";
  font-family: var(--font-mono);
  color: var(--leaf);
  flex: none;
}

/* ---- Reveals ----------------------------------------------------------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js [data-reveal].is-revealed { opacity: 1; transform: none; }
.js [data-reveal="2"] { transition-delay: 0.08s; }
.js [data-reveal="3"] { transition-delay: 0.16s; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---- Footer (fixed reveal) ---------------------------------------------- */
.site-footer {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 0;
  background: var(--forest-deep);
  color: var(--bleached);
  padding-top: clamp(56px, 7vw, 88px);
  /* no bottom padding: ghost wordmark sits flush on the page bottom */
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  padding-bottom: clamp(40px, 5vw, 64px);
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
.footer-brand .brand-word { color: var(--bleached); }
.footer-brand .brand-mark { background: var(--kraft); }
.footer-tagline {
  margin-top: 16px;
  color: rgba(242,239,231,0.65);
  font-size: 15px;
  max-width: 34ch;
}
.footer-col h3 {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(242,239,231,0.5);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  text-decoration: none;
  color: rgba(242,239,231,0.82);
  font-size: 15px;
}
.footer-col a:hover { color: var(--bleached); }
.footer-legal {
  border-top: 1px solid var(--line-dark);
  padding-block: 22px 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(242,239,231,0.5);
}
.footer-legal a { color: inherit; text-decoration: none; }
.footer-legal a:hover { color: var(--bleached); }

/* Ghost wordmark: only the top half of the letters shows */
.ghost-wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-variation-settings: "wdth" 125;
  font-size: clamp(90px, 19vw, 300px);
  line-height: 1;
  height: 0.48em;
  overflow: hidden;
  text-align: center;
  letter-spacing: 0.08em;
  text-indent: 0.08em;
  color: #1A3526; /* footer bg + ~4% lightness */
  user-select: none;
  pointer-events: none;
}

/* ---- Utility ------------------------------------------------------------- */
.mono-note {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}
.band-dark .mono-note { color: rgba(242,239,231,0.5); }
.mt-0 { margin-top: 0; }
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(20px, 3vw, 40px);
}

/* Section heading block */
.section-head { max-width: 720px; }
.section-head h2 {
  font-size: clamp(28px, 3.8vw, 46px);
  font-weight: 690;
  letter-spacing: -0.02em;
}

/* Inline links inside dark bands */
.band-dark a:hover { color: var(--leaf-bright); }

/* Print sanity */
@media print {
  .site-header, .site-footer, #loader { display: none; }
  main { box-shadow: none; }
}

/* ============================================================
   QA amendments (v20260708): contrast, no-JS footer flow,
   loader failsafe, focus visibility, CLS fallback font.
   ============================================================ */

/* Metric-compatible fallback to reduce CLS while Archivo loads */
@font-face {
  font-family: "Archivo Fallback";
  src: local("Arial");
  size-adjust: 98%;
  ascent-override: 92%;
  descent-override: 24%;
  line-gap-override: 0%;
}
:root {
  --font-display: "Archivo", "Archivo Fallback", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Archivo", "Archivo Fallback", "Helvetica Neue", Arial, sans-serif;
  --leaf-text: #356B45; /* green dark enough for body text on light surfaces */
}

/* Footer sits in normal flow by default; the fixed reveal is a
   JS-gated enhancement, mirroring the [data-reveal] pattern. */
.site-footer { position: relative; }
.js .site-footer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 0; }

/* Loader failsafe: self-dismiss even if main.js never runs */
#loader { animation: loaderBail 0.4s ease 2s forwards; }
@keyframes loaderBail { to { opacity: 0; visibility: hidden; } }

/* Focus indicators must survive the notch clip-path */
.btn:focus-visible,
.nav-toggle:focus-visible,
.site-nav .nav-cta a:focus-visible,
a.tag-plate:focus-visible { outline-offset: -4px; }
.band-dark :focus-visible,
.site-footer :focus-visible { outline-color: var(--leaf-bright); }

/* Text-safe green on light surfaces */
a:hover { color: var(--leaf-text); }
.tag-plate .tag-foot { color: var(--leaf-text); }
.doc-list.on-light .doc-index { color: var(--leaf-text); }
.steps li::before { color: var(--leaf-text); }
.rfq-checklist li::before { color: var(--leaf-text); content: "\2192" / ""; }
.band-dark .steps li::before { color: var(--leaf-bright); }
.band-dark .tag-plate .tag-foot { color: var(--leaf-bright); }
.band-dark a:hover { color: var(--leaf-bright); }

/* Contrast lifts for small text */
.sheet-3 .sheet-spec, .sheet-4 .sheet-spec { color: #3A3F37; }
.sheet-4 .sheet-name { color: var(--ink); }
.sheet-5 .sheet-spec { color: rgba(242,239,231,0.65); }
.band-dark .tag-code { color: rgba(242,239,231,0.65); }
.band-dark .spec-table th { color: rgba(242,239,231,0.65); }
.band-dark .spec-note { color: rgba(242,239,231,0.65); }
.band-dark .fact-row dt { color: rgba(242,239,231,0.65); }
.band-dark .mono-note { color: rgba(242,239,231,0.65); }
.footer-col h3 { color: rgba(242,239,231,0.62); }
.footer-legal { color: rgba(242,239,231,0.62); }

/* Grade cards may carry h2 for a correct document outline */
.tag-plate h2 {
  font-size: 21px;
  font-weight: 650;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
  line-height: 1.06;
}

/* Lock scroll behind the open mobile menu */
html.nav-open, .nav-open body { overflow: hidden; }

/* Language switcher (header) */
.lang-switch { display: flex; gap: 12px; align-items: center; }
.lang-switch a, .lang-switch .lang-cur {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-faint);
  padding-block: 6px;
  border-bottom: 1px solid transparent;
}
.lang-switch .lang-cur { color: var(--ink); border-bottom-color: var(--forest); }
.lang-switch a:hover { color: var(--ink); border-bottom-color: var(--kraft-deep); }
@media (max-width: 940px) {
  .lang-switch { margin-top: 16px; gap: 18px; }
  .lang-switch a, .lang-switch .lang-cur { font-size: 14px; }
}

/* Nav items never wrap (DE/IT labels) */
.site-nav a, .lang-switch .lang-cur { white-space: nowrap; }

/* Image bands: delivered art (textures / illustrations, not evidence) */
.img-band { margin-top: var(--space-5); }
.img-band img {
  width: 100%;
  height: auto;
  aspect-ratio: 24 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%);
}
.img-band-tall img { aspect-ratio: 16 / 7; }
.band-dark .img-band img { border-color: var(--line-dark); }
@media (max-width: 700px) {
  .img-band img, .img-band-tall img { aspect-ratio: 4 / 3; }
}

/* WhatsApp bubble (injected by main.js when FIBRA_WHATSAPP is set).
   Brand-mark shape: notched square, forest green, drop-shadow survives clip. */
.wa-bubble {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 60;
  width: 54px;
  height: 54px;
  background: var(--forest);
  clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 6px 16px rgba(20, 43, 30, 0.35));
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.wa-bubble:hover { background: var(--leaf); transform: translateY(-2px); }
.wa-bubble svg { width: 26px; height: 26px; fill: var(--bleached); }
.wa-bubble:focus-visible { outline: 2px solid var(--leaf-bright); outline-offset: -5px; }
.nav-open .wa-bubble { display: none; }
@media print { .wa-bubble { display: none; } }
