/* ============================================================
   Centelha — "Laurissilva" design tokens & site styles
   Bauhaus structure · Nakashima warmth · honest weight
   ============================================================ */

:root {
  /* Palette */
  --bone:   #ECE6D7;
  --oat:    #DDD6C4;
  --sage:   #97987F;
  --cedar:  #C2925C;
  --laurel: #47543F;
  --bark:   #2A241B;
  --stone:  #6E6755;

  --line:   color-mix(in oklab, var(--stone) 38%, transparent);
  --line-soft: color-mix(in oklab, var(--stone) 18%, transparent);

  /* Type */
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Jost", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Rhythm */
  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-y: clamp(72px, 11vw, 168px);

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

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bone);
  color: var(--bark);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

::selection { background: color-mix(in oklab, var(--cedar) 40%, transparent); }

/* ---------- Typography primitives ---------- */
.serif { font-family: var(--serif); }
.sans  { font-family: var(--sans); }

h1, h2, h3 { margin: 0; font-weight: 500; }

.display {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.01em;
  font-size: clamp(2.6rem, 6.2vw, 4.6rem);
  text-wrap: balance;
}

.h2 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.005em;
  font-size: clamp(2rem, 4vw, 2.9rem);
  text-wrap: balance;
}

.lede {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  line-height: 1.34;
  color: var(--bark);
  text-wrap: pretty;
}

.eyebrow {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--stone);
}

.body {
  font-size: 17px;
  line-height: 1.74;
  color: color-mix(in oklab, var(--bark) 88%, var(--stone));
  text-wrap: pretty;
}
.body--muted { color: var(--stone); }

.caption {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--stone);
}

.measure { max-width: 60ch; }
.measure-sm { max-width: 44ch; }

/* ---------- Layout ---------- */
.shell { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }

.band-oat { background: var(--oat); }
.band-laurel { background: var(--laurel); color: var(--bone); }

/* ---------- Links ---------- */
a { color: inherit; text-decoration: none; }

.ulink {
  position: relative;
  font-family: var(--sans);
  color: var(--laurel);
  padding-bottom: 2px;
}
.ulink::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.ulink:hover::after { transform: scaleX(1); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: var(--sans); font-weight: 500; font-size: 14px;
  letter-spacing: 0.04em; white-space: nowrap;
  padding: 14px 26px;
  border: 1px solid transparent; border-radius: 3px;
  cursor: pointer; background: none;
  transition: background 0.45s var(--ease), color 0.45s var(--ease), border-color 0.45s var(--ease);
}
.btn--solid { background: var(--laurel); color: var(--bone); }
.btn--solid:hover { background: var(--cedar); color: var(--bark); }
.btn--ghost { border-color: var(--bark); color: var(--bark); }
.btn--ghost:hover { background: var(--bark); color: var(--bone); }
.btn--light { border-color: color-mix(in oklab, var(--bone) 55%, transparent); color: var(--bone); }
.btn--light:hover { background: var(--bone); color: var(--bark); }

/* ---------- Hairline divider with butterfly marker ---------- */
.rule { display: flex; align-items: center; gap: 18px; color: var(--sage); }
.rule::before, .rule::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.rule__mark { flex: none; color: var(--cedar); }

/* =========================================================
   TOP CHROME
   ========================================================= */
.chrome {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(18px, 2.4vw, 30px) var(--gutter);
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.chrome[data-scrolled="true"] {
  background: color-mix(in oklab, var(--bone) 86%, transparent);
  backdrop-filter: blur(10px) saturate(115%);
  border-bottom-color: var(--line-soft);
}
.chrome[data-on-dark="true"]:not([data-scrolled="true"]) { color: var(--bone); }
.chrome[data-on-dark="true"]:not([data-scrolled="true"]) .seal-mark { color: var(--bone); }

.brand { display: flex; align-items: center; gap: 14px; }
.brand .seal-mark { width: 30px; height: 30px; flex: none; }
.wordmark {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.5rem, 2.4vw, 1.9rem); line-height: 1;
  letter-spacing: 0.005em;
}
.wordmark sup {
  font-family: var(--sans); font-style: normal; font-size: 9px;
  letter-spacing: 0.18em; vertical-align: super; opacity: 0.6;
  margin-left: 2px;
}

.menu-toggle {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--sans); font-size: 12px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  background: none; border: none; cursor: pointer; color: inherit;
  padding: 6px 2px;
}
.menu-toggle__bars { display: inline-flex; flex-direction: column; gap: 5px; width: 24px; }
.menu-toggle__bars span {
  height: 1.5px; background: currentColor; border-radius: 2px;
  transition: transform 0.4s var(--ease), width 0.4s var(--ease);
}
.menu-toggle__bars span:nth-child(2) { width: 16px; align-self: flex-end; }
.menu-toggle:hover .menu-toggle__bars span:nth-child(2) { width: 24px; }

/* =========================================================
   MENU OVERLAY
   ========================================================= */
.overlay {
  position: fixed; inset: 0; z-index: 80;
  background: var(--laurel); color: var(--bone);
  display: grid; grid-template-rows: auto 1fr auto;
  padding: clamp(18px, 2.4vw, 30px) var(--gutter) var(--gutter);
  opacity: 0; visibility: hidden; pointer-events: none;
}
.overlay[data-open="true"] { opacity: 1; visibility: visible; pointer-events: auto; }

.overlay__top { display: flex; align-items: center; justify-content: space-between; }
.overlay__close {
  font-family: var(--sans); font-size: 12px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  background: none; border: none; color: inherit; cursor: pointer;
  display: flex; align-items: center; gap: 12px;
}
.overlay__x { width: 22px; height: 22px; position: relative; }
.overlay__x::before, .overlay__x::after {
  content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 1.5px;
  background: currentColor;
}
.overlay__x::before { transform: rotate(45deg); }
.overlay__x::after { transform: rotate(-45deg); }

.overlay__nav {
  align-self: center;
  display: flex; flex-direction: column; gap: clamp(6px, 1.2vw, 14px);
  padding-block: 4vh;
}
.overlay__link {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.8rem, 9vw, 6rem); line-height: 1.02;
  color: color-mix(in oklab, var(--bone) 80%, var(--laurel));
  display: flex; align-items: baseline; gap: 22px;
  width: fit-content;
  transition: color 0.4s var(--ease), padding-left 0.5s var(--ease);
}
.overlay__link .idx {
  font-family: var(--sans); font-size: 13px; font-weight: 400;
  letter-spacing: 0.1em; color: var(--cedar);
  transform: translateY(-0.4em);
}
.overlay__link:hover { color: var(--bone); padding-left: 18px; }

.overlay__foot {
  display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: baseline;
  justify-content: space-between;
  border-top: 1px solid color-mix(in oklab, var(--bone) 22%, transparent);
  padding-top: 22px;
  color: color-mix(in oklab, var(--bone) 70%, var(--laurel));
  font-size: 13px; letter-spacing: 0.02em;
}
.overlay__foot .sep { color: var(--cedar); }

/* =========================================================
   HERO (shared)
   ========================================================= */
.hero { position: relative; }
.hero__eyebrow { margin-bottom: 22px; }
.hero__links {
  display: flex; gap: clamp(20px, 4vw, 48px); flex-wrap: wrap;
  font-family: var(--sans); font-size: 13px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.hero__links a { color: var(--stone); transition: color 0.4s var(--ease); }
.hero__links a:hover { color: var(--laurel); }
.hero__caption { display: flex; align-items: center; gap: 12px; color: var(--sage); }
.hero__caption .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--cedar); flex: none; }

/* Hero photo frame — gallery "plate" */
.plate {
  position: relative; background: var(--oat);
  display: grid; place-items: center; overflow: hidden;
  border: 1px solid var(--line-soft);
}
.plate img { width: 100%; height: 100%; object-fit: cover; }

/* Variant A — centered plate */
.hero-a { padding-top: clamp(120px, 16vh, 200px); }
.hero-a .plate { aspect-ratio: 16 / 10; border-radius: 4px; }
.hero-a__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; margin-bottom: 38px; }
.hero-a__foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 30px; }

/* Variant B — full-bleed */
.hero-b { min-height: 100svh; position: relative; display: flex; align-items: flex-end; }
.hero-b__img { position: absolute; inset: 0; }
.hero-b__img img { width: 100%; height: 100%; object-fit: cover; }
.hero-b__scrim { position: absolute; inset: 0; background:
  linear-gradient(to top, color-mix(in oklab, var(--bark) 80%, transparent) 0%, transparent 46%),
  linear-gradient(to bottom, color-mix(in oklab, var(--bark) 30%, transparent) 0%, transparent 30%); }
.hero-b .shell { position: relative; padding-bottom: var(--section-y); color: var(--bone); }
.hero-b .hero__eyebrow { color: color-mix(in oklab, var(--bone) 75%, transparent); }
.hero-b .hero__links a { color: color-mix(in oklab, var(--bone) 78%, transparent); }
.hero-b .hero__links a:hover { color: var(--bone); }

/* Variant C — split editorial */
.hero-c { padding-top: clamp(120px, 16vh, 200px); }
.hero-c__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.hero-c .plate { aspect-ratio: 4 / 5; height: 100%; border-radius: 4px; }
.hero-c__text { display: flex; flex-direction: column; gap: 28px; }

/* Variant D — stacked archive cover */
.hero-d { padding-top: clamp(120px, 16vh, 190px); }
.hero-d__title { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: end; margin-bottom: 44px; }
.hero-d .plate { aspect-ratio: 21 / 9; border-radius: 4px; }
.hero-d__meta { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 26px; }
.hero-d__meta div { display: flex; flex-direction: column; gap: 4px; }

@media (max-width: 860px) {
  .hero-c__grid { grid-template-columns: 1fr; }
  .hero-c .plate { aspect-ratio: 16 / 11; }
  .hero-d__title { grid-template-columns: 1fr; gap: 14px; }
}

/* =========================================================
   MANIFESTO
   ========================================================= */
.manifesto__grid { display: grid; grid-template-columns: 1fr; gap: clamp(34px, 5vw, 60px); }
.manifesto__quote { font-family: var(--serif); font-weight: 500; line-height: 1.12;
  font-size: clamp(1.9rem, 4.4vw, 3.4rem); letter-spacing: -0.01em; text-wrap: balance; }
.manifesto__quote em { font-style: italic; color: var(--cedar); }
.manifesto__cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 4vw, 64px); }
.manifesto__cols .label { margin-bottom: 14px; }
@media (max-width: 720px) { .manifesto__cols { grid-template-columns: 1fr; } }

/* =========================================================
   SELECTED WORK
   ========================================================= */
.work__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(34px, 5vw, 60px); }
.work__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(22px, 3vw, 44px) clamp(20px, 3vw, 40px); }

.piece { display: flex; flex-direction: column; gap: 18px; }
.piece__media { position: relative; overflow: hidden; background: var(--oat); border-radius: 4px; border: 1px solid var(--line-soft); }
.piece__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.piece:hover .piece__media img { transform: scale(1.035); }
.piece__tag {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--bark); background: color-mix(in oklab, var(--bone) 88%, transparent);
  padding: 6px 12px; border-radius: 100px;
}
.piece__row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.piece__name { font-family: var(--serif); font-weight: 500; font-size: clamp(1.35rem, 2.2vw, 1.7rem); line-height: 1.1; }
.piece__price { font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--stone); white-space: nowrap; }
.piece__meta { color: var(--stone); font-size: 14px; line-height: 1.55; }

.piece--lg { grid-column: span 7; }
.piece--sm { grid-column: span 5; }
.piece--half { grid-column: span 6; }
.piece--lg .piece__media { aspect-ratio: 7 / 5; }
.piece--sm .piece__media { aspect-ratio: 5 / 6; }
.piece--half .piece__media { aspect-ratio: 3 / 2; }
@media (max-width: 820px) {
  .piece--lg, .piece--sm, .piece--half { grid-column: span 12; }
  .piece--lg .piece__media, .piece--sm .piece__media, .piece--half .piece__media { aspect-ratio: 4 / 3; }
}

/* =========================================================
   DETAIL / MATERIAL STORY
   ========================================================= */
.detail__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.detail__media { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px; background: var(--oat); }
.detail__media img { width: 100%; height: 100%; object-fit: cover; }
.detail__text { display: flex; flex-direction: column; gap: 26px; }
.detail__list { display: flex; flex-direction: column; gap: 0; margin: 4px 0 0; }
.detail__list .item { display: flex; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line-soft); }
.detail__list .item:last-child { border-bottom: 1px solid var(--line-soft); }
.detail__list .item .bf { flex: none; color: var(--cedar); margin-top: 3px; }
.detail__list .item p { margin: 0; }
.detail__list .item strong { font-weight: 500; }
@media (max-width: 820px) { .detail__grid { grid-template-columns: 1fr; } .detail__media { aspect-ratio: 16 / 11; } }

/* Calçada texture band */
.calcada {
  background-color: var(--bark);
  background-image:
    radial-gradient(color-mix(in oklab, var(--bone) 90%, transparent) 1.1px, transparent 1.3px),
    radial-gradient(color-mix(in oklab, var(--bone) 90%, transparent) 1.1px, transparent 1.3px);
  background-size: 18px 18px; background-position: 0 0, 9px 9px;
}

/* =========================================================
   MAKER
   ========================================================= */
.maker__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.maker__media { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px; background: color-mix(in oklab, var(--laurel) 70%, black); }
.maker__media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.96; }
.maker__text { display: flex; flex-direction: column; gap: 26px; }
.band-laurel .eyebrow { color: var(--cedar); }
.band-laurel .body { color: color-mix(in oklab, var(--bone) 82%, var(--laurel)); }
.band-laurel .rule::before, .band-laurel .rule::after { background: color-mix(in oklab, var(--bone) 24%, transparent); }
.maker__sign { font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--bone); }
.band-laurel.has-texture {
  background-image:
    radial-gradient(color-mix(in oklab, var(--bone) 12%, transparent) 1px, transparent 1.4px),
    radial-gradient(color-mix(in oklab, var(--bone) 12%, transparent) 1px, transparent 1.4px);
  background-size: 22px 22px; background-position: 0 0, 11px 11px;
}
@media (max-width: 820px) { .maker__grid { grid-template-columns: 1fr; } .maker__media { aspect-ratio: 16 / 11; max-height: 60vh; } }

/* =========================================================
   FOOTER
   ========================================================= */
.foot { background: var(--bark); color: color-mix(in oklab, var(--bone) 78%, var(--bark)); }
.foot__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(28px, 4vw, 60px); padding-block: clamp(56px, 8vw, 96px); }
.foot__brand { display: flex; flex-direction: column; gap: 20px; }
.foot__brand .wordmark { color: var(--bone); }
.foot__brand .seal-mark { width: 40px; height: 40px; color: var(--cedar); }
.foot__col h4 { font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sage); margin: 0 0 18px; }
.foot__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.foot__col a { color: color-mix(in oklab, var(--bone) 80%, var(--bark)); font-size: 15px; transition: color 0.4s var(--ease); }
.foot__col a:hover { color: var(--cedar); }
.foot__bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  border-top: 1px solid color-mix(in oklab, var(--bone) 16%, transparent); padding-block: 26px;
  font-size: 12.5px; letter-spacing: 0.04em; color: var(--sage); }
.foot__bar .lang { display: flex; gap: 14px; }
.foot__bar .lang b { color: var(--bone); font-weight: 500; }
.foot__bar .essencia { font-family: var(--serif); font-style: italic; font-size: 16px; color: color-mix(in oklab, var(--bone) 70%, var(--bark)); letter-spacing: 0; }
@media (max-width: 720px) { .foot__top { grid-template-columns: 1fr 1fr; } .foot__brand { grid-column: 1 / -1; } }

/* =========================================================
   SCROLL REVEAL  (enhancement only — never hides content)
   Base state is fully visible; motion runs in real browsers
   but a frozen/non-animating context still shows everything.
   ========================================================= */
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes revealIn {
    from { opacity: 0.55; transform: translateY(20px); }
    to   { opacity: 1; transform: none; }
  }
  .reveal[data-shown="true"] { animation: revealIn 0.9s var(--ease) both; }
  .reveal.d1[data-shown="true"] { animation-delay: 0.09s; }
  .reveal.d2[data-shown="true"] { animation-delay: 0.18s; }
  .reveal.d3[data-shown="true"] { animation-delay: 0.27s; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* =========================================================
   v2 — feedback adaptations
   ========================================================= */

/* Warmer, less-white canvas + more laurel presence on the front page */
body { background: #E7DEC9; }
.eyebrow { color: var(--laurel); }                 /* greener labels across light sections */
.band-laurel .eyebrow { color: var(--cedar); }     /* keep cedar on the dark laurel band */
.hero-b .hero__eyebrow { color: color-mix(in oklab, var(--bone) 75%, transparent); }
#manifesto { background: color-mix(in oklab, var(--laurel) 8%, var(--bone)); }
.manifesto__quote em { color: var(--laurel); }      /* the emphasis now reads laurel */

/* Maker — black-and-white image gallery (2×2) */
.maker__gallery {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  align-self: stretch;
}
.maker__gallery img {
  width: 100%; height: 100%; aspect-ratio: 1 / 1;
  object-fit: cover; border-radius: 4px;
  background: color-mix(in oklab, var(--laurel) 70%, black);
}
@media (max-width: 820px) {
  .maker__gallery { grid-template-columns: 1fr 1fr; }
}

/* Selected work — uniform square cards (2×2) */
.piece--half .piece__media { aspect-ratio: 1 / 1; }
@media (max-width: 820px) {
  .piece--half .piece__media { aspect-ratio: 1 / 1; }
}

/* Detail section — reworked editorial feature so the image leads */
.detail2__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; margin-bottom: clamp(26px, 4vw, 46px); }
.detail2__head .eyebrow { margin-bottom: 12px; }
.detail2__feature { position: relative; margin: 0; border-radius: 4px; overflow: hidden; border: 1px solid var(--line-soft); background: var(--oat); aspect-ratio: 16 / 9; }
.detail2__feature img { width: 100%; height: 100%; object-fit: cover; }
.detail2__cap { position: absolute; left: 16px; bottom: 14px; color: var(--bone); background: color-mix(in oklab, var(--bark) 52%, transparent); padding: 7px 13px; border-radius: 3px; backdrop-filter: blur(4px); letter-spacing: 0.02em; }
.detail2__joints { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(22px, 3vw, 46px); margin-top: clamp(30px, 4vw, 52px); }
.detail2__joints .joint { display: flex; flex-direction: column; gap: 9px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.detail2__joints .joint .bf { color: var(--cedar); }
.joint__name { font-family: var(--serif); font-weight: 500; line-height: 1.1; font-size: clamp(1.3rem, 2vw, 1.6rem); }
.detail2__woods { margin-top: clamp(26px, 3vw, 40px); }
@media (max-width: 820px) {
  .detail2__feature { aspect-ratio: 4 / 3; }
  .detail2__joints { grid-template-columns: 1fr; gap: 0; margin-top: 30px; }
  .detail2__joints .joint:last-child { border-bottom: 1px solid var(--line-soft); padding-bottom: 18px; }
}

/* Detail carousel */
.carousel { position: relative; max-width: 720px; margin: 0 auto; }
.carousel__viewport { overflow: hidden; border-radius: 4px; border: 1px solid var(--line-soft); background: var(--oat); }
.carousel__track { display: flex; transition: transform 0.55s var(--ease); }
.carousel__slide { flex: 0 0 100%; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.carousel__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  display: grid; place-items: center; font-size: 26px; line-height: 1; padding: 0 0 3px;
  color: var(--bark); background: color-mix(in oklab, var(--bone) 78%, transparent);
  backdrop-filter: blur(6px); transition: background 0.35s var(--ease);
}
.carousel__btn:hover { background: var(--bone); }
.carousel__btn--prev { left: 14px; }
.carousel__btn--next { right: 14px; }
.carousel__dots { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 9px; }
.carousel__dot { width: 8px; height: 8px; border-radius: 50%; border: none; padding: 0; cursor: pointer;
  background: color-mix(in oklab, var(--bone) 55%, transparent); transition: background 0.3s var(--ease), transform 0.3s var(--ease); }
.carousel__dot[aria-current="true"] { background: var(--cedar); transform: scale(1.25); }
@media (max-width: 560px) { .carousel__btn { width: 40px; height: 40px; font-size: 22px; } }

/* Story modal — mobile-optimized */
.modal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center;
  padding: clamp(16px, 4vw, 40px); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.35s var(--ease); }
.modal[data-open="true"] { opacity: 1; visibility: visible; pointer-events: auto; }
.modal__backdrop { position: absolute; inset: 0; background: color-mix(in oklab, var(--bark) 72%, transparent); backdrop-filter: blur(3px); }
.modal__panel { position: relative; z-index: 1; width: 100%; max-width: 660px; max-height: 88vh;
  display: flex; flex-direction: column; background: var(--bone); border: 1px solid var(--line-soft); border-radius: 6px; overflow: hidden; }
.modal__close { position: absolute; top: 12px; right: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--stone); background: color-mix(in oklab, var(--bone) 70%, transparent); border: none; cursor: pointer;
  padding: 8px 12px; border-radius: 100px; transition: color 0.3s var(--ease); }
.modal__close:hover { color: var(--laurel); }
.modal__close .modal__x { font-size: 13px; }
.modal__scroll { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: clamp(30px, 5vw, 52px); }
.modal__scroll .eyebrow { margin-bottom: 12px; }
.modal__scroll h2 { margin-bottom: 20px; }
.modal__scroll p.body { margin: 0 0 16px; }
.modal__sign { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--laurel); margin-top: 10px; }
@media (max-width: 560px) {
  .modal { padding: 0; }
  .modal__panel { max-width: none; max-height: 100vh; height: 100%; border: none; border-radius: 0; }
}

/* =========================================================
   Legal pages (Impressum / Privacy)
   ========================================================= */
.legal-chrome { display: flex; align-items: center; justify-content: space-between; padding: clamp(18px, 2.4vw, 30px) var(--gutter); border-bottom: 1px solid var(--line-soft); }
.legal-chrome .wordmark { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(1.4rem, 2.2vw, 1.7rem); }
.legal-chrome .back { font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--stone); }
.legal-chrome .back:hover { color: var(--laurel); }
.legal-main { max-width: 760px; margin: 0 auto; padding: clamp(40px, 7vw, 88px) var(--gutter) clamp(56px, 8vw, 104px); }
.legal-main h1 { font-family: var(--serif); font-weight: 500; line-height: 1.05; font-size: clamp(2.2rem, 5vw, 3.1rem); margin: 0 0 8px; }
.legal-main h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.35rem, 3vw, 1.85rem); margin: clamp(30px, 4vw, 46px) 0 10px; }
.legal-main h3 { font-family: var(--sans); font-weight: 500; font-size: 1.02rem; margin: 22px 0 6px; }
.legal-main p, .legal-main li { font-size: 16px; line-height: 1.72; color: color-mix(in oklab, var(--bark) 90%, var(--stone)); }
.legal-main p { margin: 0 0 14px; }
.legal-main ul { padding-left: 1.15em; margin: 0 0 14px; }
.legal-main a { color: var(--laurel); text-decoration: underline; text-underline-offset: 2px; }
.legal-lead { color: var(--stone); font-size: 17px; }
.legal-note { background: color-mix(in oklab, var(--cedar) 15%, var(--bone)); border: 1px solid color-mix(in oklab, var(--cedar) 42%, transparent); border-radius: 6px; padding: 15px 18px; font-size: 14px; line-height: 1.6; margin: 0 0 32px; }
.legal-note strong { font-weight: 500; }
.ph { background: color-mix(in oklab, var(--cedar) 32%, transparent); border-radius: 3px; padding: 0 5px; font-style: normal; }
.legal-foot { border-top: 1px solid var(--line-soft); padding: 24px var(--gutter); font-size: 13px; color: var(--stone); display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap; }
.legal-foot a { color: var(--stone); }
.legal-foot a:hover { color: var(--laurel); }

/* Footer legal links on homepage */
.foot__legal a { color: var(--sage); }
.foot__legal a:hover { color: var(--cedar); }

/* =========================================================
   Language toggle (EN / PT)
   ========================================================= */
.chrome__right { display: flex; align-items: center; gap: clamp(14px, 2vw, 24px); }
.langset { display: inline-flex; align-items: center; gap: 7px; font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: 0.12em; }
.langset > span { opacity: 0.4; }
.langset__btn { background: none; border: none; cursor: pointer; color: inherit; font: inherit; letter-spacing: 0.12em; padding: 4px 1px; opacity: 0.5; transition: opacity 0.3s var(--ease); }
.langset__btn:hover { opacity: 0.85; }
.langset__btn[aria-current="true"] { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }

/* Footer + overlay context tones */
.foot__bar .langset { color: var(--sage); }
.overlay__foot .langset { color: color-mix(in oklab, var(--bone) 75%, var(--laurel)); }

/* Legal page chrome right cluster */
.legal-chrome__right { display: flex; align-items: center; gap: clamp(14px, 2vw, 22px); }
.legal-chrome .langset { color: var(--stone); }
