/* ==========================================================================
   Luna Home Textile — editorial style inspired by tengilemalamala.com
   ========================================================================== */

:root {
  /* colour tokens */
  --bg: #F5EEE9;
  --bg-alt: #EDE5DE;
  --ink: #373F1D;
  --ink-soft: #565D3A;
  --olive: #626F2F;
  --olive-deep: #2B3116;
  --cream: #F5EEE9;
  --line: rgba(55, 63, 29, 0.2);
  --line-cream: rgba(245, 238, 233, 0.28);
  --error: #9B2C1C;
  --success: #3D5A1E;
  --whatsapp: #1F7A4D;

  /* type */
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* layout */
  --gutter: clamp(16px, 3vw, 40px);
  --section: clamp(80px, 12vw, 180px);
  --header-h: 76px;

  /* motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 180ms;
  --dur: 320ms;
  --dur-slow: 900ms;

  /* layers */
  --z-header: 40;
  --z-float: 30;
  --z-menu: 60;
  --z-dialog: 80;
  --z-loader: 100;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: inherit; }

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 2px;
}

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

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--cream);
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform var(--dur) var(--ease-out);
}
.skip-link:focus { transform: none; }

/* ---------- typography helpers ---------- */

.label {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
  margin-bottom: 20px;
}

.statement {
  font-family: var(--serif);
  font-weight: 300;
  font-optical-sizing: auto;
  font-size: clamp(1.75rem, 3.3vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: pretty;
  margin: 0;
}

.display {
  font-family: var(--serif);
  font-weight: 250;
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.small-text {
  font-size: 15px;
  line-height: 1.55;
  max-width: 34ch;
  color: var(--ink-soft);
}

.serif-title {
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(1.35rem, 1.8vw, 1.75rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 16px; height: 16px; flex: none; }

.btn--solid { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.btn--solid:hover { background: var(--olive); border-color: var(--olive); }

.btn--cream { background: var(--cream); border-color: var(--cream); color: var(--ink); }
.btn--cream:hover { background: transparent; color: var(--cream); }

.btn--ghost:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn--ghost-cream { color: var(--cream); }
.btn--ghost-cream:hover { background: var(--cream); color: var(--ink); }

.btn--whatsapp { background: var(--whatsapp); border-color: var(--whatsapp); color: #fff; }
.btn--whatsapp:hover { background: #17623D; border-color: #17623D; }

.btn[disabled] { opacity: 0.5; cursor: progress; }

/* text link with arrow, like "Read about our story ›" */
.link-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  background: var(--bg-alt);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color var(--dur) var(--ease-out);
}
.link-tag:hover { background: #E2D8CF; }
.link-tag svg { width: 14px; height: 14px; transition: transform var(--dur) var(--ease-out); }
.link-tag:hover svg { transform: translateX(3px); }

/* ---------- logo (mask so it can take any colour) ---------- */

.logo {
  display: block;
  aspect-ratio: 615 / 552;
  background: currentColor;
  -webkit-mask: url("../img/logo-mask.png") center / contain no-repeat;
          mask: url("../img/logo-mask.png") center / contain no-repeat;
}

/* ---------- loader ---------- */

.loader {
  position: fixed;
  inset: 0;
  z-index: var(--z-loader);
  display: grid;
  place-items: center;
  background: var(--olive);
  color: var(--cream);
  transition: opacity 700ms var(--ease-in-out), visibility 0s linear 700ms;
  /* safety net if JS never runs */
  animation: loader-out 0s linear 3.5s forwards;
}
.loader .logo { width: 120px; opacity: 0; animation: loader-in 900ms var(--ease-out) 150ms forwards; }
.is-loaded .loader { opacity: 0; visibility: hidden; }
.no-loader .loader { display: none; }
@keyframes loader-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes loader-out { to { opacity: 0; visibility: hidden; } }

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 var(--gutter);
  color: var(--cream);
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out), transform 400ms var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.site-header.is-solid,
.page-solid .site-header {
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }

.header-left, .header-right { display: flex; align-items: center; gap: 12px; }
.header-right { justify-content: flex-end; }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.menu-toggle .bars { display: grid; gap: 6px; width: 22px; }
.menu-toggle .bars span { display: block; height: 1px; background: currentColor; }

.header-logo { display: block; padding: 6px; text-decoration: none; }
.header-logo .logo { width: 74px; }

.lang-switch { display: flex; gap: 2px; }
.lang-switch button {
  min-width: 36px;
  min-height: 36px;
  padding: 0 6px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  cursor: pointer;
  opacity: 0.72;
  transition: opacity var(--dur-fast), border-color var(--dur-fast);
}
.lang-switch button:hover { opacity: 1; }
.lang-switch button[aria-pressed="true"] { opacity: 1; border-color: currentColor; }

.header-enquire { min-height: 40px; padding: 0 18px; font-size: 12px; }

@media (max-width: 720px) {
  :root { --header-h: 64px; }
  .menu-toggle .menu-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .header-enquire { display: none; }
  .header-logo .logo { width: 50px; }
  .lang-switch button { min-width: 32px; padding: 0 4px; }
}

/* ---------- full-screen menu ---------- */

.menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 0 var(--gutter) var(--gutter);
  background: var(--olive);
  color: var(--cream);
  opacity: 0;
  visibility: hidden;
  transition: opacity 450ms var(--ease-out), visibility 0s linear 450ms;
}
.menu.is-open { opacity: 1; visibility: visible; transition: opacity 450ms var(--ease-out); }
.menu-top {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.menu-nav { align-self: center; }
.menu-nav ol { list-style: none; margin: 0; padding: 0; counter-reset: m; }
.menu-nav li { overflow: hidden; }
.menu-nav a {
  display: inline-flex;
  align-items: baseline;
  gap: 18px;
  padding: 4px 0;
  font-family: var(--serif);
  font-weight: 250;
  font-size: clamp(2.2rem, 6.5vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-decoration: none;
  transform: translateY(105%);
  transition: transform 700ms var(--ease-out), opacity var(--dur);
}
.menu-nav a::before {
  counter-increment: m;
  content: "0" counter(m);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.08em;
  opacity: 0.7;
}
.menu.is-open .menu-nav a { transform: none; }
.menu.is-open .menu-nav li:nth-child(2) a { transition-delay: 40ms; }
.menu.is-open .menu-nav li:nth-child(3) a { transition-delay: 80ms; }
.menu.is-open .menu-nav li:nth-child(4) a { transition-delay: 120ms; }
.menu.is-open .menu-nav li:nth-child(5) a { transition-delay: 160ms; }
.menu.is-open .menu-nav li:nth-child(6) a { transition-delay: 200ms; }
.menu-nav a:hover { font-style: italic; }
.menu-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  justify-content: space-between;
  font-size: 14px;
  border-top: 1px solid var(--line-cream);
  padding-top: 20px;
}
.menu-foot a { text-decoration: none; }
.menu-foot a:hover { text-decoration: underline; }

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

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--cream);
  background: var(--olive-deep);
  isolation: isolate;
}
.hero-slides { position: absolute; inset: 0; z-index: -2; }
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1600ms var(--ease-in-out);
}
.hero-slide.is-active { opacity: 1; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 8000ms linear;
}
.hero-slide.is-active img { transform: scale(1); }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(31, 36, 14, 0.28), transparent 75%),
    linear-gradient(180deg, rgba(31, 36, 14, 0.6) 0%, rgba(31, 36, 14, 0.4) 30%, rgba(31, 36, 14, 0.45) 60%, rgba(31, 36, 14, 0.75) 100%);
}
.hero-content {
  text-align: center;
  text-shadow: 0 1px 24px rgba(31, 36, 14, 0.35);
  padding: calc(var(--header-h) + 24px) var(--gutter) 120px;
  max-width: 1200px;
}
.hero-content .label { margin-bottom: 28px; }
.hero-title {
  font-family: var(--serif);
  font-weight: 220;
  font-size: clamp(3.4rem, 10.5vw, 9.5rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  text-wrap: balance;
}
.hero-text {
  max-width: 44ch;
  margin: 28px auto 36px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.35;
}
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.hero-bar {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-controls { display: flex; align-items: center; gap: 14px; }
.hero-pause {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid var(--line-cream);
  border-radius: 50%;
  background: none;
  cursor: pointer;
}
.hero-pause svg { width: 14px; height: 14px; }
.hero-dots { display: flex; gap: 6px; }
.hero-dots span { width: 24px; height: 1px; background: var(--line-cream); }
.hero-dots span.is-active { background: var(--cream); }
.hero-scroll { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.hero-scroll svg { width: 14px; height: 14px; animation: nudge 2.4s var(--ease-in-out) infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* ---------- generic sections & grid ---------- */

.section { padding: var(--section) var(--gutter); }
.section--tight { padding-top: 0; }

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
}

.media { position: relative; overflow: hidden; background: var(--bg-alt); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.ratio-4x5 { aspect-ratio: 4 / 5; }
.ratio-3x4 { aspect-ratio: 3 / 4; }
.ratio-1x1 { aspect-ratio: 1; }

/* ---------- intro ---------- */

.intro .label { grid-column: 1 / -1; }
.intro-statement { grid-column: 4 / 13; }
.intro-row { margin-top: clamp(64px, 9vw, 140px); align-items: end; }
.intro-copy { grid-column: 1 / 4; align-self: end; }
.intro-img-a { grid-column: 5 / 9; }
.intro-img-b { grid-column: 10 / 13; align-self: start; margin-top: 30%; }

@media (max-width: 900px) {
  .intro-statement { grid-column: 1 / -1; }
  .intro-copy { grid-column: 1 / -1; order: 3; margin-top: 40px; }
  .intro-img-a { grid-column: 1 / 8; }
  .intro-img-b { grid-column: 9 / 13; margin-top: 50%; }
}

/* ---------- stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gutter);
  padding: 0 var(--gutter) var(--section);
}
.stat { border-top: 1px solid var(--line); padding-top: 20px; }
.stat-num {
  display: block;
  font-family: var(--serif);
  font-weight: 250;
  font-size: clamp(2.4rem, 4.6vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 14px;
}
.stat-label { font-size: 14px; color: var(--ink-soft); max-width: 22ch; }

@media (max-width: 800px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
}

/* ---------- collections ---------- */

.collections .statement { grid-column: 1 / 11; }
.coll-group { margin-top: clamp(72px, 9vw, 140px); }
.coll-group-head { margin-bottom: 36px; }
.coll-group-head .small-text { grid-column: 1 / 5; margin: 0; }
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gutter);
}
.card { text-decoration: none; display: block; }
.card .media { margin-bottom: 16px; }
.card .media img { transition: transform 1200ms var(--ease-out); }
.card:hover .media img { transform: scale(1.04); }
.card-meta { margin-top: 6px; font-size: 14px; color: var(--ink-soft); }
.coll-foot {
  margin-top: clamp(56px, 7vw, 100px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.coll-foot p { margin: 0; font-family: var(--serif); font-weight: 300; font-size: 1.25rem; }

@media (max-width: 900px) {
  .collections .statement { grid-column: 1 / -1; }
  .coll-group-head .small-text { grid-column: 1 / -1; }
  .cards {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 72%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    margin: 0 calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 8px;
    scrollbar-width: none;
  }
  .cards::-webkit-scrollbar { display: none; }
  .card { scroll-snap-align: start; }
}

/* ---------- words slider ---------- */

.words {
  background: var(--bg-alt);
  text-align: center;
}
.words-track { position: relative; display: grid; max-width: 1100px; margin: 0 auto; }
.word {
  grid-area: 1 / 1;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out), visibility 0s linear 600ms;
}
.word.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.word blockquote {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.6rem, 3.2vw, 3rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.word figcaption { margin-top: 36px; }
.word figcaption .label { margin: 0; }
.words-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 48px;
  font-size: 13px;
}
.words-nav button {
  min-height: 44px;
  padding: 0 8px;
  border: 0;
  background: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 6px;
  transition: text-decoration-color var(--dur);
}
.words-nav button:hover { text-decoration-color: currentColor; }
.words-count { font-variant-numeric: tabular-nums; min-width: 3.5em; }

/* ---------- full bleed ---------- */

.bleed { position: relative; height: clamp(420px, 85vh, 900px); overflow: hidden; }
.bleed img {
  position: absolute;
  inset: -10% 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  will-change: transform;
}

/* ---------- story collage ---------- */

.story { position: relative; min-height: 150vh; padding: var(--section) var(--gutter); }
.story-copy {
  position: relative;
  z-index: 2;
  max-width: 560px;
  margin: 28vh auto;
}
.story-copy .statement { font-size: clamp(1.6rem, 2.6vw, 2.5rem); margin-bottom: 28px; }
.story-copy .small-text { max-width: 44ch; }
.collage-img { position: absolute; z-index: 1; will-change: transform; }
.collage-img .media { width: 100%; }
.c1 { top: 6%;  left: 4%;  width: 15vw; }
.c2 { top: 2%;  right: 9%; width: 19vw; }
.c3 { top: 44%; left: 13%; width: 12vw; }
.c4 { top: 40%; right: 3%; width: 13vw; }
.c5 { bottom: 4%; left: 30%; width: 11vw; }
.c6 { bottom: 8%; right: 22%; width: 16vw; }

@media (max-width: 900px) {
  .story { min-height: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .story-copy { grid-column: 1 / -1; order: -1; margin: 0 0 32px; max-width: none; }
  .collage-img { position: static; width: auto; transform: none !important; }
  .c2, .c5 { margin-top: 48px; }
  .c6 { display: none; }
}

/* ---------- split sections (production / logistics) ---------- */

.split { align-items: center; row-gap: 48px; }
.split-media { grid-column: 1 / 6; }
.split-body { grid-column: 7 / 13; }
.split--reverse .split-media { grid-column: 8 / 13; order: 2; }
.split--reverse .split-body { grid-column: 1 / 7; }
.split-body .display { margin-bottom: 32px; }
.split-body p { max-width: 52ch; font-size: 17px; color: var(--ink-soft); }

.facts { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--line); }
.facts li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.facts li span:last-child { font-family: var(--serif); font-size: 1.2rem; font-weight: 350; text-align: right; }

@media (max-width: 900px) {
  .split-media, .split--reverse .split-media { grid-column: 1 / -1; order: 0; }
  .split-body, .split--reverse .split-body { grid-column: 1 / -1; }
}

/* ---------- enquire ---------- */

.enquire { background: var(--olive); color: var(--cream); }
.enquire .grid { row-gap: 56px; }
.enquire-intro { grid-column: 1 / 6; }
.enquire-intro .display { margin-bottom: 28px; }
.enquire-intro p { max-width: 42ch; font-size: 17px; }
.direct { margin-top: 40px; }
.direct-links { display: flex; flex-wrap: wrap; gap: 10px; }
.direct-list { list-style: none; margin: 28px 0 0; padding: 0; font-size: 15px; }
.direct-list li { padding: 6px 0; }
.direct-list a { text-decoration: none; border-bottom: 1px solid var(--line-cream); }
.direct-list a:hover { border-color: currentColor; }
.enquire-form { grid-column: 7 / 13; }

@media (max-width: 900px) {
  .enquire-intro, .enquire-form { grid-column: 1 / -1; }
}

/* form */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; }
.field { display: grid; gap: 8px; grid-column: span 1; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 500; letter-spacing: 0.02em; }
.field label .req { opacity: 0.75; margin-left: 2px; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--line-cream);
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 16px;
  transition: border-color var(--dur-fast);
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23F5EEE9' stroke-width='1.5'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 24px;
  cursor: pointer;
}
.field select option { color: var(--ink); background: var(--bg); }
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(245, 238, 233, 0.6); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--cream); box-shadow: 0 1px 0 var(--cream); }
.field .help { font-size: 13px; opacity: 0.8; }
.field .err { font-size: 13px; color: #FFD9CF; display: none; }
.field.is-invalid .err { display: block; }
.field.is-invalid input { border-bottom-color: #FFD9CF; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 8px; }
.form-note { font-size: 13px; opacity: 0.85; margin: 0; }
.form-status { grid-column: 1 / -1; margin: 0; padding: 16px 18px; border-radius: 4px; font-size: 15px; display: none; }
.form-status.is-success { display: block; background: rgba(245, 238, 233, 0.14); }
.form-status.is-error { display: block; background: rgba(155, 44, 28, 0.35); }
.hp { position: absolute; left: -9999px; }

@media (max-width: 560px) {
  .field { grid-column: 1 / -1; }
}

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

.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(64px, 8vw, 110px) var(--gutter) 32px;
}
.footer-top { row-gap: 48px; }
.footer-brand { grid-column: 1 / 4; }
.footer-brand .logo { width: 110px; margin-bottom: 20px; }
.footer-brand p { font-family: var(--serif); font-weight: 300; font-size: 1.15rem; line-height: 1.35; max-width: 24ch; }
.footer-col { grid-column: span 2; }
.footer-col:nth-of-type(2) { grid-column: 6 / 8; }
.footer-col ul { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.footer-col li { padding: 4px 0; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-col .label { opacity: 0.75; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: clamp(56px, 8vw, 100px);
  padding-top: 20px;
  border-top: 1px solid var(--line-cream);
  font-size: 13px;
  opacity: 0.8;
}
@media (max-width: 900px) {
  .footer-brand { grid-column: 1 / -1; }
  .footer-col, .footer-col:nth-of-type(2) { grid-column: span 6; }
}

/* ---------- floating chat ---------- */

.float-chat {
  position: fixed;
  right: var(--gutter);
  bottom: 20px;
  z-index: var(--z-float);
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 8px 24px rgba(31, 36, 14, 0.25);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.float-chat.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.float-chat svg { width: 26px; height: 26px; }

/* ---------- reveal on scroll ---------- */

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1000ms var(--ease-out), transform 1000ms var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-img { clip-path: inset(12% 0 0 0); transition: clip-path 1300ms var(--ease-out); }
.js .reveal-img img { transform: scale(1.12); transition: transform 1600ms var(--ease-out); }
.js .reveal-img.is-in { clip-path: inset(0 0 0 0); }
.js .reveal-img.is-in img { transform: none; }

/* ==========================================================================
   Collection page
   ========================================================================== */

.page-head { padding: calc(var(--header-h) + clamp(56px, 9vw, 130px)) var(--gutter) clamp(40px, 5vw, 64px); }
.page-head .display { grid-column: 1 / 9; margin-bottom: 28px; }
.page-head .small-text { grid-column: 1 / 6; max-width: 46ch; font-size: 17px; }
@media (max-width: 900px) { .page-head .display, .page-head .small-text { grid-column: 1 / -1; } }

.filters {
  position: sticky;
  top: var(--header-h);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px var(--gutter);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
  transition: top 400ms var(--ease-out);
}
.header-hidden .filters { top: 0; }
.filters::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.filters-count { margin-left: auto; padding-left: 16px; font-size: 13px; color: var(--ink-soft); white-space: nowrap; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(28px, 3vw, 48px) var(--gutter);
  padding: clamp(32px, 4vw, 56px) var(--gutter) var(--section);
}
@media (max-width: 1100px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px)  { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.product {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}
.product .media { aspect-ratio: 1652 / 2339; margin-bottom: 14px; }
.product .media img { transition: transform 1200ms var(--ease-out); }
.product:hover .media img { transform: scale(1.04); }
.product-cat { display: block; font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px; }
.product-name { font-family: var(--serif); font-weight: 350; font-size: clamp(1.1rem, 1.5vw, 1.4rem); line-height: 1.2; }
.product.is-hidden { display: none; }

/* dialog */
.p-dialog {
  width: min(1100px, calc(100vw - 2 * var(--gutter)));
  max-height: calc(100dvh - 2 * var(--gutter));
  padding: 0;
  border: 0;
  background: var(--bg);
  color: var(--ink);
  overflow: auto;
}
.p-dialog::backdrop { background: rgba(31, 36, 14, 0.72); }
.p-dialog[open] { animation: dlg-in 380ms var(--ease-out); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
.p-dialog-inner { display: grid; grid-template-columns: 1fr 1fr; }
.p-dialog .media { aspect-ratio: 1652 / 2339; max-height: calc(100dvh - 2 * var(--gutter)); }
.p-dialog-body { position: relative; display: flex; flex-direction: column; padding: clamp(28px, 4vw, 56px); }
.p-dialog-body .display { font-size: clamp(2.2rem, 4vw, 3.6rem); margin-bottom: 32px; }
.p-dialog-body .facts { margin-top: 0; }
.p-dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 32px; }
.p-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg);
  cursor: pointer;
}
.p-close svg { width: 16px; height: 16px; }
@media (max-width: 760px) {
  .p-dialog-inner { grid-template-columns: 1fr; }
  .p-dialog .media { aspect-ratio: 4 / 3; }
  .p-dialog-body .facts li { flex-direction: column; gap: 4px; }
  .p-dialog-body .facts li span:last-child { text-align: left; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; transition-delay: 0s !important; }
  .js .reveal, .js .reveal-img, .js .reveal-img img { opacity: 1; transform: none; clip-path: none; }
  .hero-slide img { transform: none; }
  .loader { display: none; }
}
