/* ==========================================================================
   The Ocean Export and Import
   Static HTML / CSS / JS build
   --------------------------------------------------------------------------
   1.  Design tokens
   2.  Reset & base
   3.  Layout helpers
   4.  Buttons & links
   5.  Header / navigation
   6.  Footer & WhatsApp button
   7.  Home — hero slider
   8.  Home — intro hero, benefits, featured, certs, CTA
   9.  Products — filters, grid, gallery
   10. About — story, factory, values
   11. Sustainability — reasons, certifications, handmade
   12. Contact — form, info cards
   13. 404
   14. Responsive
   15. Accessibility & motion
   ========================================================================== */

/* 1. Design tokens ======================================================== */

:root {
  /* Palette (converted from the original OKLCH tokens) */
  --primary: #31623d;              /* Forest green */
  --primary-hover: #2a5434;
  --primary-foreground: #fbf8f1;
  --secondary: #e8e0d3;            /* Warm beige */
  --secondary-foreground: #221811;
  --accent: #5e402f;               /* Natural brown */
  --accent-foreground: #fbf8f1;

  --background: #fcfaf6;
  --foreground: #1e1a16;
  --card: #ffffff;
  --muted: #efebe4;
  --muted-foreground: #6c6158;
  --border: #dbd7d0;
  --cream: #f6f1e7;
  --whatsapp: #25d366;

  /* Tinted surfaces (the /30 /40 /60 opacities in the original) */
  --secondary-30: rgba(232, 224, 211, 0.3);
  --secondary-40: rgba(232, 224, 211, 0.4);
  --secondary-50: rgba(232, 224, 211, 0.5);
  --secondary-60: rgba(232, 224, 211, 0.6);
  --border-60: rgba(219, 215, 208, 0.6);
  --primary-05: rgba(49, 98, 61, 0.05);
  --primary-10: rgba(49, 98, 61, 0.1);
  --primary-20: rgba(49, 98, 61, 0.2);
  --primary-40: rgba(49, 98, 61, 0.4);

  /* Type */
  --font-display: "Fraunces", ui-serif, Georgia, serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;

  /* Geometry */
  --radius: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-3xl: 1.5rem;
  --container: 80rem;
  --pad: 1.5rem;

  /* Shadows */
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(49, 98, 61, 0.18);
}

/* 2. Reset & base ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
  border-color: var(--border);
}

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 1 auto;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

em {
  font-style: italic;
}

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

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

ul {
  list-style: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

strong {
  font-weight: 500;
  color: var(--foreground);
}

/* Icon sizing (inline SVG sprite) */
.icon {
  width: 1.25rem;
  height: 1.25rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.icon-xs { width: 0.75rem;  height: 0.75rem; }
.icon-sm { width: 0.875rem; height: 0.875rem; }
.icon-md { width: 1rem;     height: 1rem; }
.icon-lg { width: 1.5rem;   height: 1.5rem; }
.icon-xl { width: 2rem;     height: 2rem; }

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

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

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius) 0;
  font-size: 0.875rem;
}

.skip-link:focus {
  left: 0;
}

/* 3. Layout helpers ======================================================= */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section {
  padding-block: 5rem;
}

.section-sm { padding-block: 4rem; }
.section-lg { padding-block: 6rem; }

.eyebrow {
  font-size: 0.75rem;
  line-height: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--primary);
}

.section-title {
  margin-top: 0.75rem;
  font-size: 2.25rem;
  letter-spacing: -0.02em;
}

.section-lead {
  margin-top: 1.25rem;
  max-width: 42rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--muted-foreground);
}

.measure {
  max-width: 42rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 1px solid var(--primary-20);
  background: var(--primary-05);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--primary);
}

.pill-light {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  letter-spacing: 0.22em;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* Fixed-attachment tinted background sections */
.parallax {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.bg-beige { background-color: var(--secondary-40); }
.bg-cream { background-color: var(--secondary-30); }

/* 4. Buttons ============================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  padding: 0.875rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease,
    border-color 0.2s ease, gap 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover { background: var(--primary-hover); }

.btn-outline {
  border-color: var(--border);
  background: var(--background);
  color: var(--foreground);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-light {
  background: var(--background);
  color: var(--primary);
}

.btn-light:hover { background: var(--secondary); }

.btn-glass {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.btn-glass:hover { background: rgba(255, 255, 255, 0.2); }

.btn-sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.75rem;
}

.btn-block { width: 100%; }

/* Text link with arrow that nudges on hover */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  transition: gap 0.2s ease;
}

.link-arrow:hover { gap: 0.75rem; }

/* 5. Header / navigation ================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--border-60);
  background: rgba(252, 250, 246, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 0 0 1px var(--border);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.brand-tag {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted-foreground);
}

.nav-desktop {
  display: none;
}

.nav-desktop-list {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  font-size: 0.875rem;
  color: rgba(30, 26, 22, 0.75);
}

.nav-link:hover { color: var(--primary); }

.nav-link.is-active {
  color: var(--primary);
  font-weight: 500;
}

.nav-toggle {
  display: inline-grid;
  place-items: center;
  padding: 0.25rem;
  color: var(--foreground);
}

.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-toggle[aria-expanded="true"] .icon-open  { display: none; }

.nav-mobile {
  display: none;
  border-top: 1px solid var(--border-60);
  background: var(--background);
}

.nav-mobile.is-open { display: block; }

.nav-mobile-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-block: 1rem;
  margin: 0;
  list-style: none;
}

.nav-mobile-list a {
  border-radius: var(--radius);
  padding: 0.5rem;
  font-size: 1rem;
  color: rgba(30, 26, 22, 0.8);
}

.nav-mobile-list a:hover { background: var(--secondary); }

.nav-mobile-list a.is-active { color: var(--primary); font-weight: 500; }

/* 6. Footer & WhatsApp ==================================================== */

.site-footer {
  margin-top: 6rem;
  border-top: 1px solid var(--border-60);
  background: var(--secondary-40);
}

.footer-grid {
  display: grid;
  gap: 3rem;
  padding-block: 4rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 0 0 1px var(--border);
}

.footer-brand span {
  font-family: var(--font-display);
  font-size: 1.125rem;
}

.footer-about {
  margin-top: 1rem;
  max-width: 20rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--muted-foreground);
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 1rem;
}

.footer-list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer-list-spaced { gap: 0.75rem; }

.footer-list a:hover { color: var(--primary); }

.footer-item {
  display: flex;
  gap: 0.5rem;
}

.footer-item .icon {
  margin-top: 0.125rem;
  width: 1rem;
  height: 1rem;
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-60);
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-block: 1.5rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.whatsapp-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
}

.whatsapp-fab:hover { transform: scale(1.05); }

/* 7. Home — hero slider =================================================== */

.slider {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 420px;
  overflow: hidden;
  background: var(--secondary-40);
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
}

.slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.slide img {
  position: absolute;
  top: -10%;
  left: 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
}

.slide-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.6),
    rgba(0, 0, 0, 0.3),
    transparent
  );
}

.slide-body {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}

.slide-copy {
  max-width: 42rem;
  color: #fff;
}

.slide-title {
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-size: 2.25rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.slide-caption {
  margin-top: 1rem;
  max-width: 36rem;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
}

.slide-actions {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  z-index: 10;
  display: none;
  place-items: center;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background-color 0.2s ease;
}

.slider-arrow:hover { background: rgba(255, 255, 255, 0.3); }
.slider-prev { left: 1rem; }
.slider-next { right: 1rem; }

.slider-dots {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  z-index: 10;
  display: flex;
  gap: 0.5rem;
  transform: translateX(-50%);
}

.slider-dots button {
  height: 0.375rem;
  width: 0.75rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.5);
  transition: width 0.3s ease, background-color 0.3s ease;
}

.slider-dots button:hover { background: rgba(255, 255, 255, 0.8); }

.slider-dots button[aria-current="true"] {
  width: 2rem;
  background: #fff;
}

/* 8. Home — intro, benefits, featured, certs, CTA ========================= */

.intro {
  display: grid;
  align-items: center;
  gap: 3rem;
  padding-block: 4rem;
}

.intro-title {
  margin-top: 1.5rem;
  font-size: 3rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.intro-title em { color: var(--primary); }

.intro-lead {
  margin-top: 1.5rem;
  max-width: 36rem;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--muted-foreground);
}

.intro-actions {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.stat-row {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  font-size: 0.875rem;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--primary);
}

.stat-label { color: var(--muted-foreground); }

.intro-media { position: relative; }

.intro-media::before {
  content: "";
  position: absolute;
  inset: -1.5rem;
  z-index: -1;
  border-radius: 2rem;
  background: var(--secondary-60);
}

.intro-media img {
  width: 100%;
  border-radius: 1.75rem;
  object-fit: cover;
  box-shadow: var(--shadow-2xl);
}

.badge-float {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  display: none;
  border-radius: var(--radius-2xl);
  background: var(--background);
  padding: 1rem;
  box-shadow: var(--shadow-xl), 0 0 0 1px var(--border);
}

.badge-float-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
}

.badge-float .icon { color: var(--primary); }
.badge-float strong { display: block; font-weight: 500; }
.badge-float span { color: var(--muted-foreground); }

/* Card grids */
.grid-cards {
  margin-top: 3.5rem;
  display: grid;
  gap: 1.5rem;
}

.card-soft {
  border-radius: var(--radius-2xl);
  background: rgba(252, 250, 246, 0.9);
  padding: 1.75rem;
  box-shadow: 0 0 0 1px var(--border);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition: box-shadow 0.2s ease;
}

.card-soft:hover { box-shadow: 0 0 0 1px var(--primary-40); }

.card-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  background: var(--primary-10);
  color: var(--primary);
}

.card-icon-solid {
  background: var(--primary);
  color: var(--primary-foreground);
}

.card-title {
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.card-text {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--muted-foreground);
}

/* Featured products */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

.grid-products {
  margin-top: 3rem;
  display: grid;
  gap: 1.5rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  background: var(--card);
  box-shadow: 0 0 0 1px var(--border);
}

.product-media {
  overflow: hidden;
  background: var(--secondary-50);
  aspect-ratio: 1 / 1;
}

.product-media-tall { aspect-ratio: 4 / 5; }

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.product-card:hover .product-media img { transform: scale(1.05); }

.product-body {
  padding: 1.25rem;
}

.product-name {
  font-family: var(--font-display);
  font-size: 1.125rem;
}

.product-meta {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.product-card .link-arrow { margin-top: 1rem; }

/* Certification strip */
.cert-strip {
  border-block: 1px solid var(--border);
  background: var(--secondary-40);
  padding-block: 3rem;
}

.cert-strip-label {
  text-align: center;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted-foreground);
}

.cert-strip-list {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem 3rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: rgba(30, 26, 22, 0.8);
}

.cert-strip-list .sep { color: var(--border); }

/* CTA band */
.cta-band {
  max-width: 64rem;
  margin-inline: auto;
  border-radius: var(--radius-3xl);
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 4rem 2rem;
  text-align: center;
}

.cta-band h2 {
  font-size: 2.25rem;
  letter-spacing: -0.02em;
}

.cta-band p {
  margin-inline: auto;
  margin-top: 1rem;
  max-width: 42rem;
  color: rgba(251, 248, 241, 0.85);
}

.cta-band .btn { margin-top: 2rem; }

.cta-inline {
  margin-top: 4rem;
  border-radius: var(--radius-3xl);
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 2.5rem;
}

.cta-inline-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-inline h2 {
  font-size: 1.875rem;
  letter-spacing: -0.02em;
}

.cta-inline p {
  margin-top: 0.5rem;
  max-width: 36rem;
  color: rgba(251, 248, 241, 0.85);
}

/* 9. Products page ======================================================== */

.page-head {
  padding-block: 4rem 0;
}

.page-title {
  margin-top: 0.75rem;
  font-size: 3rem;
  letter-spacing: -0.02em;
}

.filters {
  margin-top: 3rem;
  display: grid;
  gap: 1.5rem;
  border-radius: var(--radius-2xl);
  background: var(--secondary-40);
  padding: 1.5rem;
}

.filter-label {
  margin-bottom: 0.75rem;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted-foreground);
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--background);
  padding: 0.375rem 0.875rem;
  font-size: 0.75rem;
  color: var(--foreground);
  transition: background-color 0.2s ease, border-color 0.2s ease,
    color 0.2s ease;
}

.chip:hover { border-color: rgba(49, 98, 61, 0.5); }

.chip[aria-pressed="true"] {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-foreground);
}

.catalogue {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.5rem;
}

/* Ensure the hidden attribute works on elements with explicit display */
.catalogue .product-card[hidden],
.catalogue[hidden],
.empty-state[hidden] {
  display: none !important;
}

/* Smooth fade-in when cards become visible after filtering */
@keyframes filterFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.catalogue .product-card:not([hidden]) {
  animation: filterFadeIn 0.35s ease both;
}

.catalogue .product-card { min-height: 100%; }

.catalogue-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
}

.catalogue-tags {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.catalogue-cat {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--primary);
}

.catalogue-gsm {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.catalogue-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.spec-list {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.spec-row {
  display: flex;
  gap: 0.5rem;
}

.spec-row dt {
  width: 6rem;
  flex-shrink: 0;
  color: rgba(108, 97, 88, 0.7);
}

.spec-row dd {
  flex: 1 1 auto;
  color: rgba(30, 26, 22, 0.8);
}

.catalogue-actions {
  margin-top: auto;
  display: flex;
  gap: 0.5rem;
  padding-top: 1rem;
}

.catalogue-actions .btn { flex: 1 1 0; }

.empty-state {
  margin-top: 3rem;
  border-radius: var(--radius-2xl);
  background: var(--secondary-40);
  padding: 2rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.empty-state button {
  color: var(--primary);
  text-decoration: underline;
}

.gallery-block { margin-top: 6rem; }

.gallery-grid {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.25rem;
}

.gallery-item {
  overflow: hidden;
  border-radius: var(--radius-2xl);
  background: var(--secondary-40);
  box-shadow: 0 0 0 1px var(--border);
}

.gallery-media {
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.gallery-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-media img { transform: scale(1.05); }

.gallery-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: var(--background);
  padding: 0.75rem 1rem;
}

.gallery-caption span:first-child {
  font-family: var(--font-display);
  font-size: 0.875rem;
  line-height: 1.25;
}

.gallery-tag {
  flex-shrink: 0;
  border-radius: 9999px;
  background: var(--secondary);
  padding: 0.25rem 0.625rem;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
}

/* 10. About page ========================================================== */

.story {
  display: grid;
  gap: 3.5rem;
  padding-block: 5rem;
}

.story-title {
  margin-top: 0.75rem;
  font-size: 3rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.story-title em { color: var(--primary); }

.story-body {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.story .btn { margin-top: 2.5rem; }

.story-media img {
  width: 100%;
  border-radius: var(--radius-3xl);
  object-fit: cover;
  box-shadow: var(--shadow-xl);
}

.stat-cards {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.stat-card {
  border-radius: var(--radius-2xl);
  background: var(--background);
  padding: 1rem;
  text-align: center;
  box-shadow: 0 0 0 1px var(--border);
}

.stat-card-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--primary);
}

.stat-card-label {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.factory-section {
  border-top: 1px solid var(--border-60);
  padding-block: 5rem;
}

.factory-grid {
  margin-top: 3rem;
  display: grid;
  gap: 1.25rem;
}

.factory-item {
  overflow: hidden;
  border-radius: var(--radius-2xl);
  box-shadow: 0 0 0 1px var(--border);
}

.factory-item img {
  aspect-ratio: 4 / 5;
  width: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.factory-item:hover img { transform: scale(1.05); }

.factory-item figcaption {
  background: var(--background);
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
}

.values-grid {
  margin-top: 3rem;
  display: grid;
  gap: 1.5rem;
}

.value-card {
  border-radius: var(--radius-2xl);
  background: rgba(252, 250, 246, 0.9);
  padding: 2rem;
  box-shadow: 0 0 0 1px var(--border);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.value-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.value-card p {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--muted-foreground);
}

/* 11. Sustainability page ================================================= */

.sustain-hero {
  display: grid;
  gap: 3rem;
  padding-block: 5rem;
}

.sustain-title {
  margin-top: 1.5rem;
  font-size: 3rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.sustain-title em { color: var(--primary); }

.sustain-lead {
  margin-top: 1.5rem;
  max-width: 36rem;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--muted-foreground);
}

.sustain-hero img {
  width: 100%;
  border-radius: var(--radius-3xl);
  object-fit: cover;
  box-shadow: var(--shadow-xl);
}

.certs-grid {
  margin-top: 3rem;
  display: grid;
  gap: 1rem;
}

.cert-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-radius: var(--radius-2xl);
  background: var(--background);
  padding: 1.5rem;
  box-shadow: 0 0 0 1px var(--border);
}

.cert-card .card-icon {
  width: 3rem;
  height: 3rem;
}

.cert-name {
  font-family: var(--font-display);
  font-size: 1.125rem;
}

.cert-desc {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.handmade {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.handmade p {
  margin-top: 1.25rem;
  max-width: 28rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.handmade img {
  width: 100%;
  border-radius: var(--radius-3xl);
  object-fit: cover;
  box-shadow: var(--shadow-xl);
}

/* 12. Contact page ======================================================== */

.contact-grid {
  margin-top: 3.5rem;
  display: grid;
  gap: 2.5rem;
}

.contact-form {
  border-radius: var(--radius-3xl);
  background: var(--card);
  padding: 2rem;
  box-shadow: 0 0 0 1px var(--border);
}

.field-grid {
  display: grid;
  gap: 1.25rem;
}

.field label,
.field-block label {
  margin-bottom: 0.5rem;
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted-foreground);
}

.field input,
.field-block textarea {
  width: 100%;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--background);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input::placeholder,
.field-block textarea::placeholder { color: rgba(108, 97, 88, 0.6); }

.field input:focus,
.field-block textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-20);
}

.field-block {
  margin-top: 1.25rem;
}

.field-block textarea {
  resize: vertical;
  min-height: 8rem;
  font-family: inherit;
}

.form-submit { margin-top: 1.75rem; }

.form-note {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--primary);
}

.form-note[hidden] { display: none; }

.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-card {
  display: flex;
  gap: 1rem;
  border-radius: var(--radius-2xl);
  background: var(--card);
  padding: 1.25rem;
  box-shadow: 0 0 0 1px var(--border);
}

.info-card-title {
  font-family: var(--font-display);
  font-size: 1rem;
}

.info-card-body {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.info-card-body a:hover { color: var(--primary); }

.whatsapp-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-radius: var(--radius-2xl);
  background: var(--primary);
  padding: 1.25rem;
  color: var(--primary-foreground);
  transition: background-color 0.2s ease;
}

.whatsapp-card:hover { background: var(--primary-hover); }

.whatsapp-card .card-icon {
  width: 2.75rem;
  height: 2.75rem;
  background: rgba(252, 250, 246, 0.15);
  color: inherit;
}

.whatsapp-card-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
}

.whatsapp-card-sub {
  font-size: 0.875rem;
  color: rgba(251, 248, 241, 0.85);
}

/* 13. 404 ================================================================= */

.error-page {
  display: flex;
  min-height: 70vh;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
}

.error-page h1 {
  font-family: var(--font-sans);
  font-size: 4.5rem;
  font-weight: 700;
}

.error-page h2 {
  margin-top: 1rem;
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 600;
}

.error-page p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.error-page .btn { margin-top: 1.5rem; }

/* 13b. Enhanced sections (added) ========================================== */

/* --- Scroll reveal (used by timeline, texture strip, sections) --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* --- Count-up stat emphasis --- */
.stat-value[data-count],
.stat-card-value[data-count] {
  font-variant-numeric: tabular-nums;
}

/* --- How-we-work animated timeline --- */
.timeline {
  position: relative;
  margin-top: 3.5rem;
  display: grid;
  gap: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 1.35rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(var(--primary-20), var(--primary-40), var(--primary-20));
}

.timeline-step {
  position: relative;
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 1.25rem;
  align-items: start;
}

.timeline-marker {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 0 0 6px var(--background);
}

.timeline-card {
  display: grid;
  gap: 1.25rem;
  border-radius: var(--radius-2xl);
  background: var(--card);
  box-shadow: 0 0 0 1px var(--border);
  overflow: hidden;
}

.timeline-media {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--secondary-50);
}

.timeline-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.timeline-step:hover .timeline-media img { transform: scale(1.04); }

.timeline-text { padding: 0 1.5rem 1.5rem; }
.timeline-step-num {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}
.timeline-title {
  margin-top: 0.35rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
}
.timeline-desc {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--muted-foreground);
}

/* --- Real-world use carousel --- */
.usecase-track {
  margin-top: 3rem;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 82%;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1rem;
  scrollbar-width: thin;
}
.usecase-track::-webkit-scrollbar { height: 8px; }
.usecase-track::-webkit-scrollbar-thumb {
  background: var(--primary-20);
  border-radius: 9999px;
}

.usecase-card {
  scroll-snap-align: start;
  overflow: hidden;
  border-radius: var(--radius-3xl);
  background: var(--card);
  box-shadow: 0 0 0 1px var(--border), var(--shadow-md);
}

.usecase-media {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--secondary-50);
}

.usecase-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.usecase-card:hover .usecase-media img { transform: scale(1.12); }

.usecase-body { padding: 1.25rem 1.5rem 1.5rem; }
.usecase-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
}
.usecase-desc {
  margin-top: 0.35rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.usecase-nav {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
}
.usecase-arrow {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  background: var(--card);
  color: var(--primary);
  box-shadow: 0 0 0 1px var(--border);
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
.usecase-arrow:hover { box-shadow: 0 0 0 1px var(--primary-40); }
.usecase-arrow:disabled { opacity: 0.4; cursor: default; }

/* --- Before / after comparison slider --- */
.compare {
  position: relative;
  margin-top: 3rem;
  aspect-ratio: 16 / 10;
  max-height: 34rem;
  border-radius: var(--radius-3xl);
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--border), var(--shadow-xl);
  -webkit-user-select: none;
  user-select: none;
  touch-action: pan-y;
}
.compare img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.compare-after {
  clip-path: inset(0 0 0 50%);
}
.compare-label {
  position: absolute;
  bottom: 1rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: rgba(30, 26, 22, 0.62);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.compare-label.is-before { left: 1rem; }
.compare-label.is-after { right: 1rem; }
.compare-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-1px);
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}
.compare-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background: #fff;
  color: var(--primary);
  box-shadow: var(--shadow-md);
  cursor: ew-resize;
}
.compare-handle svg { width: 1.25rem; height: 1.25rem; }
.compare-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

/* --- Texture / craftsmanship close-up strip --- */
.texture-grid {
  margin-top: 3rem;
  display: grid;
  gap: 1rem;
}
.texture-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  aspect-ratio: 1 / 1;
  box-shadow: 0 0 0 1px var(--border);
}
.texture-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.texture-item:hover img { transform: scale(1.08); }
.texture-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.5rem 1rem 0.85rem;
  background: linear-gradient(transparent, rgba(30, 26, 22, 0.72));
  color: #fff;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* --- Lightweight JS parallax --- */
[data-parallax] {
  will-change: transform;
}

/* 14. Responsive ========================================================== */

@media (min-width: 640px) {
  .slider { height: 72vh; }
  .slide-title { font-size: 3rem; }
  .slide-caption { font-size: 1.125rem; }
  .slider-arrow { display: grid; }

  .section-title,
  .cta-band h2 { font-size: 3rem; }

  .cta-band { padding-inline: 4rem; }
  .cta-inline { padding: 3.5rem; }
  .cta-inline h2 { font-size: 2.25rem; }

  .intro-title,
  .page-title,
  .story-title,
  .sustain-title { font-size: 3.75rem; }

  .badge-float { display: block; }

  .grid-cards,
  .grid-products,
  .catalogue,
  .gallery-grid,
  .values-grid,
  .certs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .cert-strip-list { font-size: 1.5rem; }

  .contact-form { padding: 2.5rem; }

  .footer-bottom-inner { flex-direction: row; }

  .texture-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .usecase-track { grid-auto-columns: 46%; }
}

@media (min-width: 768px) {
  .factory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .values-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .texture-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  /* Timeline: alternating two-column layout with centre spine */
  .timeline::before { left: 50%; transform: translateX(-1px); }
  .timeline { gap: 3rem; }
  .timeline-step {
    grid-template-columns: 1fr 2.75rem 1fr;
    align-items: center;
  }
  .timeline-step .timeline-marker { grid-column: 2; }
  .timeline-step:nth-child(odd) .timeline-card {
    grid-column: 1;
    grid-row: 1;
  }
  .timeline-step:nth-child(odd) .timeline-marker {
    grid-column: 2;
    grid-row: 1;
  }
  .timeline-step:nth-child(even) .timeline-card {
    grid-column: 3;
    grid-row: 1;
  }
  .timeline-step:nth-child(even) .timeline-marker {
    grid-column: 2;
    grid-row: 1;
  }
}

@media (min-width: 1024px) {
  :root { --pad: 2.5rem; }

  .nav-desktop { display: flex; }
  .nav-toggle { display: none; }
  .nav-mobile { display: none !important; }

  .slider { height: 82vh; }
  .slide-title { font-size: 3.75rem; }

  .section-lg { padding-block: 7rem; }

  .intro {
    grid-template-columns: 1.05fr 1fr;
    gap: 4rem;
    padding-block: 6rem;
  }

  .grid-cards,
  .grid-products { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .catalogue,
  .gallery-grid,
  .certs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .factory-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .story {
    grid-template-columns: 1fr 1.1fr;
    gap: 5rem;
    padding-block: 7rem;
  }

  .sustain-hero {
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
    padding-block: 7rem;
  }

  .handmade {
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
  }

  .contact-grid { grid-template-columns: 1.2fr 1fr; }

  .usecase-track { grid-auto-columns: 31%; }
}

@media (min-width: 1280px) {
  .gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Mobile: parallax backgrounds are unreliable on touch devices */
@media (max-width: 1023px) {
  .parallax { background-attachment: scroll; }
}

/* 15. Accessibility & motion ============================================== */

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 2px;
}

.slide-copy :focus-visible,
.slider-arrow:focus-visible,
.slider-dots button:focus-visible {
  outline-color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .parallax { background-attachment: scroll; }

  .reveal { opacity: 1; transform: none; }
  [data-parallax] { transform: none !important; }
}

@media print {
  .site-header,
  .site-footer,
  .whatsapp-fab,
  .slider-arrow,
  .slider-dots { display: none !important; }
}

/* ==========================================================================
   10. Product Detail Page
   ========================================================================== */

.pdp-section {
  padding-top: 2rem;
  padding-bottom: 5rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.pdp-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .pdp-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.pdp-gallery {
  position: relative;
}

.pdp-main-image {
  background: var(--surface);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
}

.pdp-main-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

@media (min-width: 1024px) {
  .pdp-main-image:hover img {
    transform: scale(1.05);
  }
}

.pdp-info {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.pdp-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pdp-tags {
  margin: 0;
}

.pdp-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.1;
  color: var(--text-strong);
  margin: 0;
}

.pdp-desc {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text);
  margin: 0;
}

.pdp-section-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 1.5rem;
  color: var(--text-strong);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.pdp-spec-list .spec-row dt {
  flex: 0 0 140px;
}

.pdp-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  background: var(--surface);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.pdp-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-strong);
}

.pdp-feature .icon {
  color: var(--primary);
}

.pdp-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

@media (min-width: 640px) {
  .pdp-actions {
    flex-direction: row;
  }
  .pdp-actions .btn {
    flex: 1;
  }
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.pdp-related-section {
  padding-bottom: 5rem;
}

.pdp-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

/* 16. Blog — listing & article =========================================== */

.blog-grid {
  margin-top: 3.5rem;
  display: grid;
  gap: 1.75rem;
}

.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  background: var(--card);
  box-shadow: 0 0 0 1px var(--border);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  text-decoration: none;
  color: inherit;
}

.post-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.post-card-media {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--secondary-50);
}

.post-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.post-card:hover .post-card-media img { transform: scale(1.05); }

.post-card-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
}

.post-cat {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.4rem;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--primary);
}

.post-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.25;
}

.post-excerpt {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.post-meta {
  margin-top: auto;
  padding-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  border-top: 1px solid var(--border-60);
}

.post-meta .dot { color: var(--border); }

/* Featured post */
.featured-post {
  margin-top: 3rem;
  display: grid;
  overflow: hidden;
  border-radius: var(--radius-3xl);
  background: var(--card);
  box-shadow: var(--shadow-2xl);
  text-decoration: none;
  color: inherit;
}

.featured-post-media {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--secondary-50);
}

.featured-post-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.featured-post:hover .featured-post-media img { transform: scale(1.04); }

.featured-post-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.1rem;
  padding: 2.5rem;
}

.featured-flag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
}

.featured-title {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.featured-excerpt {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted-foreground);
  max-width: 40rem;
}

@media (min-width: 640px) {
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .featured-post { grid-template-columns: 1.15fr 1fr; }
  .featured-post-media { aspect-ratio: auto; height: 100%; }
  .featured-post-body { padding: 3.5rem; }
  .featured-title { font-size: 2.6rem; }
}

@media (min-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Article (blog-detail) */
.article { padding-block: 3rem 0; }

.article-head {
  max-width: 48rem;
  margin-inline: auto;
  text-align: center;
}

.article-head .pill { margin-bottom: 1.25rem; }

.article-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.article-meta {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted-foreground);
}

.article-meta .dot { color: var(--border); }
.article-meta strong { color: var(--foreground); font-weight: 600; }

.article-hero {
  max-width: 60rem;
  margin: 2.5rem auto 0;
  border-radius: var(--radius-3xl);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
  aspect-ratio: 16 / 9;
  background: var(--secondary-50);
}

.article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-body {
  max-width: 44rem;
  margin: 3rem auto 0;
  font-size: 1.0625rem;
  line-height: 1.8;
}

.article-body > * + * { margin-top: 1.4rem; }

.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  margin-top: 2.75rem;
  color: var(--foreground);
}

.article-body h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-top: 2rem;
  color: var(--foreground);
}

.article-body p { color: rgba(30, 26, 22, 0.85); }

.article-body a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-body ul,
.article-body ol {
  padding-left: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  color: rgba(30, 26, 22, 0.85);
}

.article-body li { padding-left: 0.35rem; }
.article-body li::marker { color: var(--primary); }

.article-body strong { color: var(--foreground); font-weight: 600; }

.article-body blockquote {
  margin-block: 2.25rem;
  padding: 1.5rem 1.75rem;
  border-left: 3px solid var(--primary);
  background: var(--secondary-30);
  border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--foreground);
}

.article-body figure { margin-block: 2.25rem; }
.article-body figure img { width: 100%; border-radius: var(--radius-2xl); display: block; }
.article-body figcaption {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted-foreground);
}

.key-takeaways {
  margin-top: 2.5rem;
  padding: 1.75rem;
  border-radius: var(--radius-2xl);
  background: var(--primary-05);
  border: 1px solid var(--primary-10);
}
.key-takeaways h3 { margin-top: 0 !important; }

.article-foot {
  max-width: 44rem;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.article-share {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.article-share > span { font-size: 0.85rem; color: var(--muted-foreground); }

.share-btn {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--foreground);
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.share-btn:hover { border-color: var(--primary); color: var(--primary); }

.article-related { padding-block: 5rem; }

.share-btn.is-copied {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-foreground);
}