/* ==========================================================================
   TRÍADE CAFÉS — visual clone study
   ========================================================================== */

:root {
  --ink: #2b1b14;
  --ink-deep: #20120c;
  --ink-soft: #352219;
  --cream: #f2dece;
  --cream-2: #edd1bd;
  --sand: #e3c1ad;
  --brown: #6b4632;
  --brown-deep: #4a2f20;
  --red: #d6251c;
  --red-deep: #a80f0c;
  --line: rgba(242, 222, 206, 0.16);
  --muted: rgba(242, 222, 206, 0.58);
  --serif: "Instrument Serif", "Times New Roman", serif;
  --cond: "Oswald", "Arial Narrow", sans-serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --pad: clamp(20px, 4vw, 64px);
  --container: 1600px;
  --header-h: clamp(76px, 7vw, 104px);
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(15px, 1.02vw, 17px);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.is-locked { overflow: hidden; }

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

h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

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

:focus-visible {
  outline: 1px solid var(--cream);
  outline-offset: 4px;
}

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

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

.section {
  position: relative;
  padding-block: clamp(90px, 11vw, 170px);
}

.eyebrow {
  font-family: var(--cond);
  font-weight: 500;
  font-size: clamp(0.66rem, 0.78vw, 0.8rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.8rem, 6.4vw, 6.6rem);
  line-height: 0.94;
  letter-spacing: -0.02em;
}

.display--xl {
  font-size: clamp(3.4rem, 8.6vw, 9.2rem);
}

.display em { font-style: italic; color: var(--sand); }

.lede {
  max-width: 44ch;
  font-size: clamp(1.02rem, 1.35vw, 1.32rem);
  line-height: 1.55;
  color: rgba(242, 222, 206, 0.82);
  font-weight: 300;
}

.lede--tight { max-width: 58ch; }

.section__head--center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(18px, 2vw, 30px);
}
.section__head--center .lede { margin-inline: auto; }

.cta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

/* --------------------------------------------------------------- buttons */
.pill {
  --pill-bg: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 clamp(22px, 2.3vw, 34px);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.96rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--cream);
  background: var(--pill-bg);
  border: 1px solid transparent;
  overflow: hidden;
  transition: color 0.5s var(--ease), border-color 0.5s var(--ease), background-color 0.5s var(--ease);
  will-change: transform;
}

.pill > span, .pill > svg { position: relative; z-index: 2; }
.pill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--cream);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.55s var(--ease);
  z-index: 1;
}
.pill:hover::after { transform: scaleX(1); transform-origin: left center; }
.pill:hover { color: var(--ink); }

.pill--cream { background: var(--cream-2); color: var(--ink); }
.pill--cream::after { background: var(--red); }
.pill--cream:hover { color: var(--cream); }

.pill--red { background: var(--red); color: #fff2e7; }
.pill--red::after { background: var(--ink); }
.pill--red:hover { color: var(--cream); }

.pill--dark {
  background: rgba(24, 14, 9, 0.86);
  border-color: rgba(242, 222, 206, 0.18);
  color: var(--cream);
  backdrop-filter: blur(12px);
}
.pill--dark::after { background: var(--cream); }

.pill--glass {
  background: rgba(30, 18, 12, 0.55);
  border-color: rgba(242, 222, 206, 0.16);
  backdrop-filter: blur(14px) saturate(120%);
}
.pill--glass::after { background: var(--cream); }

.pill--ghost {
  border-color: rgba(242, 222, 206, 0.34);
  min-height: 54px;
}

.circle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(54px, 4.6vw, 68px);
  height: clamp(54px, 4.6vw, 68px);
  border-radius: 50%;
  background: rgba(58, 36, 25, 0.92);
  border: 1px solid rgba(242, 222, 206, 0.08);
  color: var(--cream);
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease), transform 0.5s var(--ease);
  flex: none;
}
.circle-btn:hover { background: var(--cream); color: var(--ink); transform: rotate(-8deg); }
.circle-btn--brown { background: var(--brown); }
.circle-btn--cream { background: var(--cream); color: var(--ink); }
.circle-btn--cream:hover { background: var(--red); color: var(--cream); }
.circle-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.4; }

.ico {
  width: 17px; height: 17px;
  fill: none; stroke: currentColor; stroke-width: 1.3;
  stroke-linecap: round; stroke-linejoin: round;
  flex: none;
}
.ico--chev { width: 13px; height: 13px; opacity: 0.8; }

/* ------------------------------------------------------------------ grain */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 90;
  pointer-events: none;
  opacity: 0.38;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.36'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  animation: grainShift 1.2s steps(3) infinite;
}
@keyframes grainShift {
  0% { transform: translate(0, 0); }
  33% { transform: translate(-2%, 1.5%); }
  66% { transform: translate(1.5%, -1%); }
  100% { transform: translate(0, 0); }
}

/* ----------------------------------------------------------------- cursor */
.cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
}
.cursor.is-on { opacity: 1; }
.cursor__dot,
.cursor__ring {
  position: absolute;
  top: 0; left: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor__dot {
  width: 6px; height: 6px;
  background: var(--cream);
  mix-blend-mode: difference;
  transition: width 0.3s var(--ease), height 0.3s var(--ease), opacity 0.3s;
}
.cursor__ring {
  width: 38px; height: 38px;
  border: 1px solid rgba(242, 222, 206, 0.55);
  transition: width 0.45s var(--ease), height 0.45s var(--ease), border-color 0.45s, opacity 0.3s;
}
.cursor.is-hover .cursor__ring { width: 68px; height: 68px; border-color: rgba(242, 222, 206, 0.22); }
.cursor.is-hover .cursor__dot { width: 3px; height: 3px; opacity: 0.5; }
.cursor.is-hide { opacity: 0; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ----------------------------------------------------------------- loader */
.loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: var(--ink-deep);
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__inner { width: min(320px, 70vw); text-align: center; }
.loader__logo {
  width: 88px; height: auto;
  margin: 0 auto 34px;
  animation: logoPulse 2.2s var(--ease-io) infinite;
}
@keyframes logoPulse {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-7px) scale(1.03); }
}
.loader__bar { height: 1px; background: rgba(242, 222, 206, 0.18); overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 0%; background: var(--cream); }
.loader__meta {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-family: var(--cond);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ----------------------------------------------------------------- header */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding-block: clamp(14px, 1.6vw, 24px);
  transition: background-color 0.6s var(--ease), backdrop-filter 0.6s;
}
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22, 13, 9, 0.72), rgba(22, 13, 9, 0));
  opacity: 1;
  transition: opacity 0.6s;
  pointer-events: none;
}
.header.is-scrolled { backdrop-filter: blur(10px); }
.header.is-scrolled::before { background: linear-gradient(180deg, rgba(22, 13, 9, 0.94), rgba(22, 13, 9, 0.66)); }

.header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: clamp(14px, 2.2vw, 38px);
  min-height: 56px;
}
.header__side { flex: 1; display: flex; }
.header__side--right { justify-content: flex-end; }

.logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: clamp(64px, 5.4vw, 96px);
  transform-style: preserve-3d;
  transition: width 0.6s var(--ease);
  filter: drop-shadow(0 10px 26px rgba(0, 0, 0, 0.35));
}
.logo img { width: 100%; height: auto; }
.header.is-scrolled .logo { width: clamp(52px, 4vw, 72px); }

.header__progress {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: rgba(242, 222, 206, 0.08);
}
.header__progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: rgba(242, 222, 206, 0.55);
  transform-origin: left;
}

/* ------------------------------------------------------------------- lang */
.lang { position: relative; }
.lang__button { min-height: 50px; padding-inline: 18px; gap: 9px; }
.lang__button .ico { width: 19px; height: 19px; }
.lang__code {
  font-family: var(--cond);
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  font-weight: 500;
}
.lang__list {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 172px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(26, 15, 10, 0.96);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s;
  z-index: 20;
}
.lang.is-open .lang__list { opacity: 1; visibility: visible; transform: none; }
.lang__list button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 0.92rem;
  color: rgba(242, 222, 206, 0.7);
  transition: background-color 0.3s, color 0.3s;
}
.lang__list button:hover { background: rgba(242, 222, 206, 0.08); color: var(--cream); }
.lang__list button[aria-selected="true"] { color: var(--cream); }
.lang__list button[aria-selected="true"]::after { content: "·"; margin-left: 6px; color: var(--red); }

/* ------------------------------------------------------------------ sound */
.sound {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(30, 18, 12, 0.55);
  border: 1px solid rgba(242, 222, 206, 0.16);
  backdrop-filter: blur(14px) saturate(120%);
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.sound:hover { background: rgba(242, 222, 206, 0.1); border-color: rgba(242, 222, 206, 0.3); }
.sound__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 18px;
  height: 18px;
}
.sound__icon i {
  display: block;
  width: 2px;
  height: 7px;
  border-radius: 2px;
  background: var(--cream);
  opacity: 0.8;
}
.sound__icon i:nth-child(2) { height: 13px; }
.sound__icon i:nth-child(3) { height: 10px; }
.sound__icon i:nth-child(4) { height: 5px; }
.sound[aria-pressed="true"] .sound__icon i { animation: eq 1.1s ease-in-out infinite; }
.sound[aria-pressed="true"] .sound__icon i:nth-child(2) { animation-delay: 0.12s; }
.sound[aria-pressed="true"] .sound__icon i:nth-child(3) { animation-delay: 0.24s; }
.sound[aria-pressed="true"] .sound__icon i:nth-child(4) { animation-delay: 0.36s; }
@keyframes eq {
  0%, 100% { transform: scaleY(0.6); }
  50% { transform: scaleY(1.8); }
}
.sound__label {
  white-space: nowrap;
  font-family: var(--cond);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.sound__label b { font-weight: 500; color: var(--cream); }

/* ------------------------------------------------------------------- menu */
.menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  visibility: hidden;
  color: var(--cream);
}
.menu__bg {
  position: absolute;
  inset: 0;
  background: #1c110b;
  transform: translateY(-101%);
  transition: transform 0.9s var(--ease);
}
.menu.is-open { visibility: visible; }
.menu.is-open .menu__bg { transform: translateY(0); }
.menu__inner {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: clamp(18px, 2vw, 32px) var(--pad) clamp(20px, 2.4vw, 34px);
  opacity: 0;
  transition: opacity 0.5s;
}
.menu.is-open .menu__inner { opacity: 1; transition-delay: 0.25s; }

.menu__head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.menu__head-actions { display: flex; align-items: center; gap: 10px; }
.menu__eyebrow {
  font-family: var(--cond);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  color: var(--muted);
}
.menu__close { min-height: 50px; gap: 10px; padding-inline: 20px; }
.menu__close .ico { width: 15px; height: 15px; }

.menu__grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(30px, 6vw, 110px);
  align-items: center;
  padding-block: clamp(30px, 5vh, 60px);
}

.menu__primary { display: flex; flex-direction: column; gap: clamp(4px, 1vw, 14px); }
.menu__link {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: clamp(14px, 2vw, 30px);
  padding-block: clamp(4px, 0.7vw, 12px);
  font-family: var(--serif);
  font-size: clamp(2.4rem, 6.6vw, 6.4rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: rgba(242, 222, 206, 0.72);
  transition: color 0.4s, transform 0.6s var(--ease);
}
.menu__link:hover { color: var(--cream); transform: translateX(14px); }
.menu__idx {
  font-family: var(--cond);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--red);
  transform: translateY(-1.6em);
}

.menu__side { display: flex; gap: clamp(20px, 3vw, 44px); align-items: center; }
.menu__preview {
  width: clamp(150px, 16vw, 250px);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 4px;
  background: var(--ink-soft);
  transform: rotate(-3deg);
}
.menu__preview img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.25s; }
.menu__secondary { display: flex; flex-direction: column; gap: 14px; }
.menu__secondary a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(0.95rem, 1.15vw, 1.1rem);
  color: rgba(242, 222, 206, 0.66);
  transition: color 0.3s, gap 0.4s var(--ease);
}
.menu__secondary a:hover { color: var(--cream); gap: 16px; }
.menu__arrow { font-size: 0.8em; opacity: 0.5; }

.menu__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--cond);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.menu__socials { display: flex; gap: 22px; }
.menu__socials a:hover { color: var(--cream); }

/* ------------------------------------------------------------------- hero */
.hero {
  position: relative;
  min-height: min(100svh, 1080px);
  padding-top: calc(var(--header-h) + 20px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  isolation: isolate;
}

.hero__media { position: absolute; inset: 0; z-index: -1; background: var(--ink-deep); }
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s var(--ease);
}
.hero__slide.is-active { opacity: 1; }
.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 7s linear;
  filter: saturate(0.9) contrast(1.04) brightness(0.86);
}
.hero__slide.is-active img { transform: scale(1); }

.hero__gl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: normal;
  opacity: 0.95;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(180deg, rgba(20, 12, 8, 0.55) 0%, rgba(20, 12, 8, 0.05) 32%, rgba(20, 12, 8, 0.18) 58%, rgba(20, 12, 8, 0.92) 100%),
    linear-gradient(90deg, rgba(20, 12, 8, 0.55) 0%, rgba(20, 12, 8, 0.1) 55%, rgba(20, 12, 8, 0) 100%);
}

.hero__content {
  position: relative;
  z-index: 4;
  padding-inline: var(--pad);
  padding-bottom: clamp(28px, 3vw, 46px);
  max-width: min(1100px, 82vw);
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--cond);
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(242, 222, 206, 0.7);
  margin-bottom: clamp(14px, 1.4vw, 22px);
}
.hero__eyebrow i { display: block; width: 34px; height: 1px; background: rgba(242, 222, 206, 0.4); }

.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.1rem, 8.6vw, 9.4rem);
  line-height: 0.92;
  letter-spacing: -0.025em;
  text-shadow: 0 12px 50px rgba(0, 0, 0, 0.22);
}
.hero__line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero__line > span { display: block; transform: translateY(0); }
.hero.is-changing .hero__line > span { animation: lineOut 0.5s var(--ease-io) both; }
.hero__line:nth-child(2) > span { animation-delay: 0.06s; }
@keyframes lineOut {
  to { transform: translateY(-105%); opacity: 0; }
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: clamp(22px, 2.6vw, 38px);
}

.hero__bottom {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: flex-end;
  gap: clamp(20px, 3vw, 44px);
  padding: 0 var(--pad) clamp(18px, 2vw, 30px);
  border-top: 1px solid rgba(242, 222, 206, 0.16);
  margin-inline: var(--pad);
  padding-top: clamp(14px, 1.6vw, 22px);
}

.hero__nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2.4vw, 40px);
  flex: 1;
  max-width: 1120px;
}
.hero__item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  color: rgba(242, 222, 206, 0.5);
  transition: color 0.5s;
}
.hero__item.is-active { color: var(--cream); }
.hero__bar { display: block; height: 1px; background: rgba(242, 222, 206, 0.2); }
.hero__fill { display: block; height: 100%; width: 0; background: var(--cream); }
.hero__item.is-active .hero__fill { animation: heroFill var(--hero-dur, 8s) linear forwards; }
.hero.is-paused .hero__item.is-active .hero__fill { animation-play-state: paused; }
@keyframes heroFill { from { width: 0; } to { width: 100%; } }

.hero__item-body { display: flex; align-items: center; gap: 14px; }
.hero__thumb {
  width: 84px;
  height: 56px;
  object-fit: cover;
  border-radius: 2px;
  filter: grayscale(0.6) brightness(0.8);
  transition: filter 0.5s, transform 0.6s var(--ease);
}
.hero__item.is-active .hero__thumb { filter: none; transform: scale(1.04); }
.hero__item-text { display: flex; gap: 12px; align-items: flex-start; font-size: 0.86rem; line-height: 1.35; }
.hero__item-text b {
  font-family: var(--cond);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  opacity: 0.7;
  display: block;
  margin-top: 2px;
}
.hero__item-text > span { max-width: 20ch; }

.hero__scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--cond);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: var(--muted);
  padding-bottom: 4px;
}
.hero__scroll i { display: block; width: 1px; height: 46px; background: linear-gradient(180deg, rgba(242, 222, 206, 0.5), transparent); animation: scrollHint 2.4s var(--ease-io) infinite; }
@keyframes scrollHint {
  0% { transform: scaleY(0.2); transform-origin: top; opacity: 0; }
  40% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
}

/* ---------------------------------------------------------------- historia */
.historia { background: linear-gradient(180deg, var(--ink) 0%, #2a1a12 45%, var(--ink) 100%); }
.historia .display { max-width: 14ch; }
.historia .eyebrow { letter-spacing: 0.3em; }

.timeline {
  position: relative;
  height: clamp(620px, 68vw, 940px);
  margin-top: clamp(40px, 6vw, 90px);
}
.timeline__path {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.timeline__line {
  stroke: rgba(242, 222, 206, 0.42);
  stroke-width: 1.2;
  stroke-dasharray: 2600;
  stroke-dashoffset: 2600;
  vector-effect: non-scaling-stroke;
}
.timeline__line--ghost { stroke: rgba(242, 222, 206, 0.1); stroke-dasharray: none; stroke-dashoffset: 0; }

.polaroid {
  position: absolute;
  width: clamp(150px, 17vw, 252px);
  padding: 9px 9px 0;
  background: #f2e6d6;
  border-radius: 2px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
  text-align: left;
  transition: transform 0.65s var(--ease), box-shadow 0.65s var(--ease);
  will-change: transform;
}
.polaroid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: sepia(0.18) contrast(1.02);
}
.polaroid__cap {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 9px 3px 12px;
  color: #4b3527;
  font-size: 0.66rem;
  letter-spacing: 0.04em;
}
.polaroid__cap b { font-family: var(--cond); font-weight: 500; font-size: 0.86rem; letter-spacing: 0.06em; }
.polaroid__cap span { opacity: 0.65; }
.polaroid:hover { transform: rotate(0deg) translateY(-10px) scale(1.03); box-shadow: 0 34px 90px rgba(0, 0, 0, 0.5); z-index: 3; }

.polaroid--1 { left: 1%; top: 1%; transform: rotate(-5deg); }
.polaroid--2 { left: 31%; top: 10%; transform: rotate(4deg); width: clamp(140px, 15vw, 216px); }
.polaroid--3 { left: 63%; top: 31%; transform: rotate(-3deg); }
.polaroid--4 { left: 15%; top: 52%; transform: rotate(3deg); width: clamp(150px, 16vw, 236px); }
.polaroid--5 { left: 52%; top: 64%; transform: rotate(-4deg); width: clamp(136px, 14vw, 204px); }

.timeline__note {
  position: relative;
  text-align: center;
  margin-top: clamp(10px, 2vw, 30px);
  font-size: 0.82rem;
  color: var(--muted);
}

/* ------------------------------------------------------------------- ciclo */
.ciclo {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  padding-block: clamp(90px, 10vw, 130px) clamp(50px, 6vw, 80px);
  isolation: isolate;
}
.ciclo__bg { position: absolute; inset: 0; z-index: -2; }
.ciclo__img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.2s var(--ease), transform 2.4s var(--ease);
}
.ciclo__img.is-active { opacity: 1; transform: scale(1); }
.ciclo__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.82) brightness(0.62) contrast(1.05);
}
.ciclo__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(20, 12, 8, 0.86) 0%, rgba(20, 12, 8, 0.45) 45%, rgba(20, 12, 8, 0.1) 100%),
    linear-gradient(0deg, rgba(20, 12, 8, 0.9) 0%, rgba(20, 12, 8, 0.1) 55%, rgba(20, 12, 8, 0.55) 100%);
}
.ciclo__route {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}
.ciclo__route path {
  stroke: rgba(242, 222, 206, 0.6);
  stroke-width: 1.2;
  stroke-dasharray: 5 9;
  stroke-dashoffset: 0;
  vector-effect: non-scaling-stroke;
}

.ciclo__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  gap: clamp(50px, 8vh, 110px);
}

.ciclo__head { padding-top: 10px; }
.ciclo__title {
  margin-top: clamp(16px, 1.6vw, 26px);
  font-family: var(--cond);
  font-weight: 600;
  font-size: clamp(3.2rem, 10.6vw, 12rem);
  line-height: 0.82;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 0.16em;
  color: var(--cream);
}
.ciclo__title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 0.42em;
  letter-spacing: 0;
  text-transform: none;
  color: var(--cream);
  transform: translateY(-0.35em);
}
.ciclo__title em::before { content: "("; opacity: 0.35; margin-right: 0.08em; }
.ciclo__title em::after { content: ")"; opacity: 0.35; margin-left: 0.08em; }

.ciclo__foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(30px, 6vw, 90px);
  align-items: end;
}
.ciclo__copy { max-width: 470px; animation: fadeUp 0.7s var(--ease) both; }
.ciclo__copy.is-out { animation: fadeOut 0.3s var(--ease-io) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fadeOut { to { opacity: 0; transform: translateY(-10px); } }
.ciclo__num {
  font-family: var(--cond);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: rgba(242, 222, 206, 0.55);
}
.ciclo__copy h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  line-height: 1;
  margin: 8px 0 14px;
}
.ciclo__copy p { color: rgba(242, 222, 206, 0.75); max-width: 42ch; margin-bottom: 24px; }

.ciclo__tabs { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.ciclo__tab {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: clamp(12px, 1.4vw, 18px) 0;
  border-bottom: 1px solid var(--line);
  color: rgba(242, 222, 206, 0.45);
  text-align: left;
  transition: color 0.4s, padding-left 0.5s var(--ease);
}
.ciclo__tab span {
  font-family: var(--cond);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  opacity: 0.7;
  width: 26px;
}
.ciclo__tab b {
  font-family: var(--cond);
  font-weight: 400;
  font-size: clamp(1.2rem, 1.8vw, 1.65rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  flex: 1;
}
.ciclo__tab i {
  display: block;
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 1px solid currentColor;
  transition: background-color 0.4s, border-color 0.4s, transform 0.4s;
}
.ciclo__tab:hover { color: rgba(242, 222, 206, 0.8); padding-left: 8px; }
.ciclo__tab.is-active { color: var(--cream); padding-left: 12px; }
.ciclo__tab.is-active i { background: var(--cream); border-color: var(--cream); transform: scale(1.15); }

/* --------------------------------------------------------------------- ddd */
.ddd {
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(120, 74, 46, 0.28) 0%, rgba(43, 27, 20, 0) 60%),
    var(--ink);
  overflow: hidden;
}
.ddd__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(16px, 1.8vw, 26px);
  padding-bottom: clamp(50px, 6vw, 90px);
}
.ddd__title {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.08em;
  line-height: 0.8;
  margin-top: 6px;
}
.ddd__d {
  font-family: var(--serif);
  font-size: clamp(4.6rem, 12vw, 12.5rem);
  line-height: 0.8;
  letter-spacing: -0.03em;
}
.ddd__de {
  font-family: var(--cond);
  font-size: clamp(0.8rem, 1.6vw, 1.5rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  transform: translateY(-0.2em);
}
.ddd__delta {
  font-family: var(--cond);
  font-weight: 600;
  font-size: clamp(3.2rem, 9.4vw, 10rem);
  letter-spacing: -0.01em;
  line-height: 0.8;
}
.ddd .lede { text-align: center; }
.ddd .cta-row { justify-content: center; }

.ddd__gallery {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.6vw, 24px);
  padding-block: 10px;
  overflow: hidden;
}
.marquee { overflow: hidden; width: 100%; }
.marquee__track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marquee 62s linear infinite;
  will-change: transform;
}
.marquee--rev .marquee__track { animation-direction: reverse; animation-duration: 74s; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

.tile {
  position: relative;
  width: clamp(180px, 21vw, 300px);
  aspect-ratio: 3 / 4;
  flex: none;
  margin-right: clamp(14px, 1.6vw, 24px);
  overflow: hidden;
  border-radius: 3px;
  text-align: left;
  background: var(--ink-soft);
}
.tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.88);
  transition: transform 1.1s var(--ease), filter 0.6s;
}
.tile:hover img { transform: scale(1.06); filter: saturate(1) brightness(0.98); }
.tile__cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 44px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.82rem;
  line-height: 1.3;
  color: var(--cream);
  background: linear-gradient(0deg, rgba(16, 9, 6, 0.85), rgba(16, 9, 6, 0));
  opacity: 0.92;
  transition: opacity 0.4s;
}
.tile__cap small {
  font-family: var(--cond);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(242, 222, 206, 0.6);
}

/* ----------------------------------------------------------------- cultura */
.cultura { background: linear-gradient(180deg, var(--ink) 0%, #241610 60%, var(--ink) 100%); }
.cultura__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
.cultura__stage {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 44%, #f0dcc6 0%, #e3c4a8 55%, #c79c79 100%);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
}
.cultura__stage:active { cursor: grabbing; }
.cultura__stage canvas, .cultura__fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.cultura__stage canvas { z-index: 2; }
.cultura__fallback { object-fit: cover; z-index: 1; }
.cultura__stage.is-webgl .cultura__fallback { opacity: 0; }
.cultura__hint {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 7%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(43, 27, 20, 0.55);
  backdrop-filter: blur(8px);
  color: var(--cream);
  font-family: var(--cond);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}
.cultura__hint i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cream);
  animation: pulse 2s var(--ease-io) infinite;
}
@keyframes pulse { 0%, 100% { opacity: 0.4; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.2); } }

.cultura__text { display: flex; flex-direction: column; gap: clamp(16px, 1.8vw, 24px); }
.cultura__text .lede { max-width: 52ch; }

.cards { display: flex; flex-direction: column; margin-top: 12px; }
.card {
  display: grid;
  grid-template-columns: 124px 1fr;
  gap: 22px;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  text-align: left;
  transition: padding-left 0.5s var(--ease);
}
.card:last-child { border-bottom: 1px solid var(--line); }
.card:hover { padding-left: 10px; }
.card__media { display: block; width: 124px; height: 86px; overflow: hidden; border-radius: 2px; }
.card__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.35) brightness(0.9); transition: transform 0.8s var(--ease), filter 0.5s; }
.card:hover .card__media img { transform: scale(1.06); filter: none; }
.card__body { display: flex; flex-direction: column; gap: 5px; }
.card__title { font-family: var(--serif); font-size: clamp(1.2rem, 1.6vw, 1.5rem); line-height: 1.1; }
.card__text { font-size: 0.85rem; line-height: 1.5; color: var(--muted); max-width: 40ch; }
.card__link { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; font-family: var(--cond); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(242, 222, 206, 0.75); }
.card__link i { font-style: normal; transition: transform 0.4s var(--ease); }
.card:hover .card__link i { transform: translate(3px, -3px); }

/* -------------------------------------------------------------------- quiz */
.quiz { background: var(--ink); }
.quiz__card {
  position: relative;
  background: linear-gradient(135deg, #f2dece 0%, #e9cfb9 60%, #e0bfa4 100%);
  color: var(--ink);
  border-radius: 6px;
  overflow: hidden;
  padding: clamp(26px, 4.4vw, 70px);
  box-shadow: 0 50px 140px rgba(0, 0, 0, 0.35);
}
.quiz__card .eyebrow { color: rgba(43, 27, 20, 0.55); }
.quiz__card .lede { color: rgba(43, 27, 20, 0.75); }

.quiz__intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(30px, 5vw, 80px);
  align-items: center;
}
.quiz__intro-copy { display: flex; flex-direction: column; gap: clamp(14px, 1.6vw, 22px); }
.quiz__intro-copy .display { font-size: clamp(2.5rem, 5.2vw, 5.4rem); }
.quiz__start { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 8px; }
.quiz__meta {
  font-family: var(--cond);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(43, 27, 20, 0.55);
}
.quiz__intro-art { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px; }
.quiz__intro-art img { width: 100%; height: 100%; object-fit: cover; filter: sepia(0.15) saturate(0.9); }
.quiz__badge {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 84px; height: 84px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--serif);
  font-size: 2.2rem;
  line-height: 1;
}
.quiz__badge i { font-size: 0.45em; font-style: normal; position: absolute; bottom: 18px; right: 22px; opacity: 0.6; }

.quiz__stage { display: flex; flex-direction: column; gap: clamp(26px, 4vw, 50px); min-height: 420px; }
.quiz__top { display: flex; align-items: center; gap: 18px; }
.quiz__back {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(43, 27, 20, 0.2);
  display: grid; place-items: center;
  transition: background-color 0.3s, color 0.3s;
}
.quiz__back:hover { background: var(--ink); color: var(--cream); }
.quiz__back.is-hidden { opacity: 0; pointer-events: none; }
.quiz__back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.quiz__count { font-family: var(--cond); font-size: 0.7rem; letter-spacing: 0.18em; color: rgba(43, 27, 20, 0.6); }
.quiz__progress { flex: 1; height: 1px; background: rgba(43, 27, 20, 0.18); }
.quiz__progress span { display: block; height: 100%; width: 0%; background: var(--ink); transition: width 0.6s var(--ease); }

.quiz__question-wrap { display: flex; flex-direction: column; gap: clamp(20px, 3vw, 36px); }
.quiz__question {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.1vw, 2.9rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  max-width: 22ch;
}
.quiz__options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quiz__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  border: 1px solid rgba(43, 27, 20, 0.2);
  border-radius: 3px;
  text-align: left;
  font-size: 0.94rem;
  line-height: 1.35;
  transition: background-color 0.35s var(--ease), color 0.35s, border-color 0.35s, transform 0.35s;
}
.quiz__option i { font-style: normal; opacity: 0.4; transition: transform 0.35s var(--ease), opacity 0.35s; }
.quiz__option:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.quiz__option:hover i { opacity: 1; transform: translate(2px, -2px); }
.quiz__option.is-selected { background: var(--red); color: #fff2e7; border-color: var(--red); }
.quiz__tip { margin-top: auto; font-size: 0.78rem; color: rgba(43, 27, 20, 0.5); }

.quiz__result { display: flex; flex-direction: column; gap: 16px; max-width: 720px; }
.quiz__result-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.4vw, 4rem);
  line-height: 1;
  letter-spacing: -0.01em;
}
.quiz__result-text { font-size: clamp(1rem, 1.3vw, 1.2rem); line-height: 1.55; color: rgba(43, 27, 20, 0.78); }
.quiz__origins { display: flex; flex-wrap: wrap; gap: 8px; }
.quiz__origins span {
  font-family: var(--cond);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 14px;
  border: 1px solid rgba(43, 27, 20, 0.25);
  border-radius: 999px;
}
.quiz__result-actions { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.quiz__result-actions .pill--cream { background: var(--ink); color: var(--cream); }
.quiz__result-actions .pill--cream::after { background: var(--red); }

/* ----------------------------------------------------------------- journal */
.journal { background: linear-gradient(180deg, var(--ink) 0%, #23150f 100%); }
.journal__head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr) auto;
  gap: clamp(24px, 4vw, 60px);
  align-items: end;
  padding-bottom: clamp(36px, 5vw, 70px);
  border-bottom: 1px solid var(--line);
}
.journal__head .display { font-size: clamp(2.6rem, 5.6vw, 6rem); }
.journal__sub { font-size: 0.98rem; color: var(--muted); max-width: 30ch; justify-self: center; }
.journal__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 40px);
  padding-top: clamp(36px, 4.4vw, 64px);
}
.article { display: flex; flex-direction: column; gap: 14px; }
.article__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 3px;
}
.article__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85) brightness(0.9); transition: transform 1s var(--ease), filter 0.5s; }
.article:hover .article__media img { transform: scale(1.05); filter: none; }
.article__meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--cond);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.article__title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.25rem, 1.7vw, 1.65rem); line-height: 1.12; letter-spacing: -0.01em; }
.article__title button { text-align: left; transition: color 0.3s; }
.article:hover .article__title button { color: var(--sand); }
.article__read { display: inline-flex; align-items: center; gap: 10px; font-family: var(--cond); font-size: 0.64rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(242, 222, 206, 0.5); }
.article__read i { display: block; width: 26px; height: 1px; background: currentColor; transition: width 0.4s var(--ease); }
.article:hover .article__read i { width: 46px; }

/* -------------------------------------------------------- sustentabilidade */
.sust {
  position: relative;
  min-height: min(100svh, 1000px);
  display: flex;
  align-items: flex-end;
  padding-block: clamp(90px, 10vw, 140px);
  overflow: hidden;
  isolation: isolate;
}
.sust__media { position: absolute; inset: 0; z-index: -2; }
.sust__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.8) brightness(0.55) contrast(1.05); transform: scale(1.04); }
.sust__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(0deg, rgba(20, 12, 8, 0.94) 0%, rgba(20, 12, 8, 0.25) 60%, rgba(20, 12, 8, 0.4) 100%),
    linear-gradient(90deg, rgba(20, 12, 8, 0.6) 0%, rgba(20, 12, 8, 0) 70%);
}
.sust__inner { display: flex; flex-direction: column; gap: clamp(40px, 7vw, 90px); }
.sust__head { max-width: 1100px; }
.sust__title {
  margin-top: 18px;
  font-family: var(--cond);
  font-weight: 600;
  font-size: clamp(2.8rem, 7.8vw, 9rem);
  line-height: 1.04;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  display: flex;
  flex-direction: column;
}
.sust__title span { display: block; }
.sust__title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 0.52em;
  text-transform: none;
  letter-spacing: 0;
  margin-right: 0.15em;
}
.sust__outline {
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 222, 206, 0.8);
  text-stroke: 1px rgba(242, 222, 206, 0.8);
}
.sust__foot {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
  gap: clamp(26px, 4vw, 60px);
  align-items: end;
}
.sust__text { max-width: 46ch; color: rgba(242, 222, 206, 0.8); }
.stats { display: flex; gap: clamp(22px, 3vw, 46px); }
.stat b {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 3vw, 2.9rem);
  line-height: 1;
  margin-bottom: 8px;
}
.stat span {
  font-family: var(--cond);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ------------------------------------------------------------------ footer */
.footer {
  background: var(--ink-deep);
  padding-top: clamp(60px, 8vw, 110px);
  overflow: hidden;
}
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 110px);
  padding-bottom: clamp(50px, 6vw, 90px);
  border-bottom: 1px solid var(--line);
}
.footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.footer__logo img { width: 76px; }
.footer__tagline { font-family: var(--serif); font-size: clamp(2rem, 3.6vw, 3.6rem); line-height: 0.96; letter-spacing: -0.02em; }
.newsletter { width: min(420px, 100%); margin-top: 6px; }
.newsletter label { display: block; font-size: 0.8rem; color: var(--muted); margin-bottom: 10px; }
.newsletter__row { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid rgba(242, 222, 206, 0.3); padding-bottom: 8px; }
.newsletter input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  padding: 8px 0;
  font-size: 0.98rem;
  color: var(--cream);
}
.newsletter input::placeholder { color: rgba(242, 222, 206, 0.35); }
.newsletter input:focus { outline: none; }
.newsletter__row:focus-within { border-color: var(--cream); }
.newsletter__msg { min-height: 1.4em; margin-top: 10px; font-size: 0.78rem; color: var(--sand); }
.newsletter__msg.is-error { color: #f3a08c; }

.footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.footer__col h3 {
  font-family: var(--cond);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}
.footer__col li { margin-bottom: 12px; }
.footer__col a, .footer__col button {
  position: relative;
  font-size: 0.92rem;
  color: rgba(242, 222, 206, 0.78);
  transition: color 0.3s;
  text-align: left;
}
.footer__col a::after, .footer__col button::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.footer__col a:hover, .footer__col button:hover { color: var(--cream); }
.footer__col a:hover::after, .footer__col button:hover::after { transform: scaleX(1); transform-origin: left; }

.footer__newsletter-mobile { display: none; }

.footer__marquee { padding-block: clamp(30px, 4vw, 60px); overflow: hidden; }
.footer__marquee-track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: marquee 44s linear infinite;
  font-family: var(--cond);
  font-weight: 600;
  font-size: clamp(3rem, 9vw, 10rem);
  line-height: 0.8;
  letter-spacing: -0.01em;
  color: rgba(242, 222, 206, 0.16);
  text-transform: uppercase;
  white-space: nowrap;
}
.footer__marquee-track > * { margin-right: clamp(20px, 3vw, 46px); }
.footer__marquee-track i { color: var(--red); font-style: normal; opacity: 0.6; font-size: 0.5em; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-block: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
  color: var(--muted);
}
.footer__legal { display: flex; align-items: center; gap: 22px; }
.footer__legal button { color: var(--muted); transition: color 0.3s; }
.footer__legal button:hover { color: var(--cream); }
.footer__top-btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--cond); letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.66rem; }
.footer__top-btn i { font-style: normal; }

/* --------------------------------------------------------------- lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 320;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__scrim { position: absolute; inset: 0; background: rgba(12, 7, 5, 0.94); backdrop-filter: blur(8px); }
.lightbox__figure { position: relative; z-index: 2; max-width: min(1100px, 86vw); text-align: center; }
.lightbox__figure img {
  max-height: 76vh;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
  transform: scale(0.97);
  transition: transform 0.6s var(--ease);
}
.lightbox.is-open .lightbox__figure img { transform: scale(1); }
.lightbox__figure figcaption { margin-top: 18px; font-family: var(--cond); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.lightbox__close {
  position: absolute;
  top: clamp(16px, 2vw, 30px);
  right: clamp(16px, 2vw, 30px);
  z-index: 3;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  transition: background-color 0.3s, color 0.3s;
}
.lightbox__close:hover { background: var(--cream); color: var(--ink); }
.lightbox__close svg, .lightbox__nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.lightbox__nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  transition: background-color 0.3s, color 0.3s;
}
.lightbox__nav:hover { background: var(--cream); color: var(--ink); }
.lightbox__nav--prev { left: clamp(10px, 2vw, 34px); }
.lightbox__nav--next { right: clamp(10px, 2vw, 34px); }

/* ------------------------------------------------------------------ modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 310;
  display: grid;
  place-items: center;
  padding: var(--pad);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0.45s;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__scrim { position: absolute; inset: 0; background: rgba(12, 7, 5, 0.9); backdrop-filter: blur(10px); }
.modal__panel {
  position: relative;
  z-index: 2;
  width: min(980px, 100%);
  max-height: 88vh;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  background: #241610;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  transform: translateY(24px);
  transition: transform 0.6s var(--ease);
}
.modal.is-open .modal__panel { transform: none; }
.modal__media { position: relative; min-height: 240px; background: var(--ink-soft); }
.modal__media img { width: 100%; height: 100%; object-fit: cover; }
.modal__media.is-empty { display: none; }
.modal:has(.modal__media.is-empty) .modal__panel { grid-template-columns: 1fr; }
.modal__content {
  position: relative;
  padding: clamp(26px, 3.4vw, 48px);
  overflow-y: auto;
  max-height: 88vh;
}
.modal__close {
  position: absolute;
  top: 16px; right: 16px;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  transition: background-color 0.3s, color 0.3s;
}
.modal__close:hover { background: var(--cream); color: var(--ink); }
.modal__close svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.modal__content h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 3.2vw, 3rem); line-height: 1; letter-spacing: -0.01em; margin: 10px 0 18px; max-width: 18ch; }
.modal__body { color: rgba(242, 222, 206, 0.78); font-size: 0.94rem; line-height: 1.65; }
.modal__body p { margin-bottom: 14px; }
.modal__body h3 { font-family: var(--cond); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cream); margin: 22px 0 8px; }
.modal__body ul { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.modal__body li { padding-left: 16px; position: relative; }
.modal__body li::before { content: "·"; position: absolute; left: 0; color: var(--red); }
.modal__body a { text-decoration: underline; text-underline-offset: 3px; }
.modal__body .credit { font-size: 0.78rem; color: var(--muted); margin-bottom: 6px; }

/* -------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .menu__grid { grid-template-columns: 1fr; align-items: start; align-content: space-between; gap: 40px; }
  .menu__preview { display: none; }
  .menu__side { align-items: flex-start; }
  .menu__secondary { flex-direction: row; flex-wrap: wrap; gap: 18px 26px; }

  .cultura__grid { grid-template-columns: 1fr; gap: 50px; }
  .cultura__stage { width: min(520px, 100%); margin-inline: auto; }
  .cultura__text { align-items: flex-start; }

  .sust__foot { grid-template-columns: 1fr 1fr; }
  .sust__foot .pill { grid-column: 1 / -1; justify-self: start; }

  .journal__head { grid-template-columns: 1fr auto; }
  .journal__sub { grid-column: 1 / 2; grid-row: 2; justify-self: start; }

  .footer__top { grid-template-columns: 1fr; }
  .footer__cols { max-width: 720px; }
}

@media (max-width: 860px) {
  .hero__title { font-size: clamp(2.7rem, 11vw, 5.4rem); max-width: 12ch; }
  .hero__content { max-width: 100%; }
  .hero__bottom { flex-direction: column; align-items: stretch; gap: 20px; }
  .hero__nav { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .hero__item-text { display: none; }
  .hero__thumb { width: 100%; height: 48px; }
  .hero__scroll { display: none; }

  .timeline { height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  .timeline__path, .timeline__note { display: none; }
  .polaroid { position: relative; inset: auto; width: 100% !important; transform: none !important; }
  .polaroid:hover { transform: translateY(-6px) !important; }
  .polaroid--5 { grid-column: 1 / -1; max-width: 50%; }

  .ciclo__foot { grid-template-columns: 1fr; gap: 34px; }
  .ciclo__title { font-size: clamp(2.8rem, 13vw, 6rem); }

  .ddd__title { flex-wrap: wrap; }
  .ddd__delta { font-size: clamp(2.6rem, 13vw, 5.4rem); }

  .quiz__intro { grid-template-columns: 1fr; }
  .quiz__intro-art { display: none; }
  .quiz__options { grid-template-columns: 1fr; }
  .quiz__card { padding: 26px 22px; }
  .quiz__stage { min-height: 0; }

  .journal__grid { grid-template-columns: 1fr; }
  .journal__head { grid-template-columns: 1fr; gap: 18px; }
  .journal__head .pill { justify-self: start; }

  .sust__title { font-size: clamp(2.6rem, 12vw, 5.6rem); }
  .sust__foot { grid-template-columns: 1fr; align-items: start; }
  .stats { flex-wrap: wrap; }

  .footer__cols { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer__legal { flex-wrap: wrap; gap: 14px; }

  .modal__panel { grid-template-columns: 1fr; max-height: 90vh; overflow-y: auto; }
  .modal__media { min-height: 200px; max-height: 240px; }
  .modal__content { max-height: none; }
  .lightbox__nav { width: 46px; height: 46px; }
}

@media (max-width: 560px) {
  :root { --header-h: 68px; }
  .header__inner { min-height: 50px; }
  .pill { min-height: 50px; font-size: 0.86rem; }
  .lang__button { padding-inline: 14px; }
  .lang__list { min-width: 150px; }
  .sound { height: 46px; padding-inline: 14px; }
  .sound__label { font-size: 0.62rem; }
  .menu__eyebrow { display: none; }
  .menu__head { justify-content: flex-end; }
  .menu__foot { flex-direction: column; align-items: flex-start; gap: 10px; }
  .menu__socials { flex-wrap: wrap; gap: 10px 20px; }

  .hero { min-height: 92svh; }
  .hero__eyebrow { font-size: 0.6rem; letter-spacing: 0.18em; gap: 10px; }
  .hero__actions .pill { min-height: 50px; padding-inline: 20px; }
  .hero__actions .circle-btn { width: 50px; height: 50px; }
  .hero__thumb { height: 40px; }
  .hero__bar { margin-bottom: 2px; }

  .timeline { grid-template-columns: 1fr; }
  .polaroid--5 { max-width: 100%; }
  .cards .card { grid-template-columns: 92px 1fr; gap: 16px; }
  .card__media { width: 92px; height: 70px; }

  .stats { gap: 20px; }
  .stat b { font-size: 1.7rem; }

  .footer__cols { grid-template-columns: 1fr; }
  .footer__tagline { font-size: 2.2rem; }
  .footer__marquee-track { font-size: 3.2rem; }
  .lightbox__figure { max-width: 92vw; }
  .lightbox__nav { top: auto; bottom: 18px; transform: none; }
  .lightbox__nav--prev { left: 20px; }
  .lightbox__nav--next { right: 20px; }
  .lightbox__figure figcaption { margin-bottom: 70px; }
}

/* ------------------------------------------------------------ reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .grain { animation: none; }
  .hero__slide img { transform: none !important; }
  .marquee__track, .footer__marquee-track { animation: none !important; }
}

/* --------------------------------------------------------------- utility */
[hidden] { display: none !important; }
