/* =========================================================
   RAÍZ — Café de Origen
   ========================================================= */

:root {
  --cream: #f3ede3;
  --cream-2: #ebe2d2;
  --paper: #f7f2ea;
  --ink: #1a1512;
  --ink-soft: #2a221d;
  --coffee: #3d2b1f;
  --terra: #b7522e;
  --clay: #c67a4a;
  --moss: #4a5a3a;
  --muted: #8a7e6e;
  --line: rgba(26, 21, 18, 0.12);

  --f-display: "Fraunces", Georgia, serif;
  --f-sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --container: min(1400px, 92vw);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--f-sans);
  background: var(--cream);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

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

/* ---------- Grain overlay ---------- */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 200;
  opacity: 0.07;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.9'/%3E%3C/svg%3E");
}

/* ---------- Loader ---------- */
.loader {
  position: fixed;
  inset: 0;
  background: var(--ink);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
.loader.hide { opacity: 0; visibility: hidden; }
.loader-inner { text-align: center; }
.loader-text {
  font-family: var(--f-display);
  font-size: clamp(2rem, 6vw, 4rem);
  font-style: italic;
  font-weight: 300;
  letter-spacing: -0.02em;
  display: block;
  margin-bottom: 1.2rem;
}
.loader-bar {
  width: clamp(180px, 25vw, 260px);
  height: 1px;
  background: rgba(243, 237, 227, 0.2);
  margin: 0 auto;
  overflow: hidden;
}
.loader-bar span {
  display: block;
  height: 100%;
  background: var(--cream);
  animation: loadBar 1.6s var(--ease) forwards;
}
@keyframes loadBar {
  from { width: 0; }
  to { width: 100%; }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.5rem 0;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), backdrop-filter 0.4s;
}
.nav.scrolled {
  background: rgba(243, 237, 227, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--f-display);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.logo-mark {
  display: inline-block;
  animation: spin 18s linear infinite;
  color: var(--terra);
}
@keyframes spin { to { transform: rotate(360deg); } }
.logo-text {
  font-size: 1.1rem;
  letter-spacing: 0.18em;
}
.logo.large .logo-text { font-size: 2rem; letter-spacing: 0.12em; }

.nav-links {
  display: flex;
  gap: 2rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 500;
}
.nav-links a {
  position: relative;
  padding: 0.4rem 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: currentColor;
  transition: width 0.4s var(--ease);
}
.nav-links a:hover::after { width: 100%; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  font-weight: 500;
}
.lang-btn {
  background: none;
  border: none;
  padding: 0.35rem 0.2rem;
  font: inherit;
  letter-spacing: inherit;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.3s;
}
.lang-btn.active { color: var(--ink); }
.lang-btn:hover { color: var(--ink); }
.lang-sep { color: var(--muted); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  width: 28px; height: 18px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  padding: 0;
}
.menu-toggle span {
  display: block;
  height: 1.5px;
  background: var(--ink);
}

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  grid-template-rows: auto 1fr auto;
  grid-template-areas:
    "meta    media"
    "title   media"
    "scroll  media";
  column-gap: 4rem;
  row-gap: 2rem;
  align-items: start;
  padding: 7rem 0 3rem;
  position: relative;
}
.hero-meta {
  grid-area: meta;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.3s forwards;
}
.hero-meta .dot { color: var(--terra); font-size: 0.5rem; }

.hero-title {
  grid-area: title;
  align-self: center;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(3rem, 9.5vw, 9rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--ink);
}

/* Hero image / figure */
.hero-media {
  grid-area: media;
  position: relative;
  height: 100%;
  min-height: 60vh;
  align-self: stretch;
}
/* Wrapper handles scroll-driven parallax translate (set by JS) */
.hero-figure-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 60vh;
  overflow: hidden;
  will-change: transform;
}
/* Figure handles the entrance reveal */
.hero-figure {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px);
  animation: heroReveal 1.2s var(--ease) 0.6s forwards;
}
/* Image handles the endless slow float + ken-burns */
.hero-figure img {
  width: 100%;
  height: 108%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04);
  transform-origin: center 40%;
  animation: kenBurns 14s ease-out 0.6s forwards,
             heroFloat 12s ease-in-out 14s infinite;
  will-change: transform;
}
.hero-figure figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  padding: 1.2rem 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  color: var(--cream);
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0));
}
.hero-figure figcaption .cap-num {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 300;
  text-transform: none;
  letter-spacing: 0;
  font-size: 1rem;
  color: var(--clay);
}

/* Rotating circular stamp — scroll- and hover-reactive */
.hero-stamp {
  position: absolute;
  left: -4.5rem;
  bottom: -3rem;
  width: 180px;
  height: 180px;
  z-index: 3;
  display: block;
  cursor: pointer;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 1.3s forwards;
  transition: filter 0.5s;
  will-change: transform;
}
.hero-stamp-inner {
  width: 100%;
  height: 100%;
  transition: transform 0.5s var(--ease);
  transform: scale(1);
}
.hero-stamp:hover .hero-stamp-inner { transform: scale(1.1); }
.hero-stamp:active .hero-stamp-inner { transform: scale(1.04); }
.hero-stamp::before {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: var(--cream);
  box-shadow: 0 10px 40px -12px rgba(26, 21, 18, 0.35),
              0 0 0 1px rgba(26, 21, 18, 0.06);
  transition: background 0.5s, box-shadow 0.5s;
  z-index: -1;
}
/* SVG rotation is driven by JS via inline style on #heroStampSvg */
.hero-stamp svg {
  width: 100%;
  height: 100%;
  display: block;
}
.hero-stamp .stamp-text {
  font-family: var(--f-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  fill: var(--ink);
  text-transform: uppercase;
  transition: fill 0.4s;
}

.hero-stamp:hover {
  filter: drop-shadow(0 12px 28px rgba(183, 82, 46, 0.3));
}
.hero-stamp:hover::before {
  background: var(--ink);
  box-shadow: 0 18px 50px -12px rgba(26, 21, 18, 0.55);
}
.hero-stamp:hover .stamp-text { fill: var(--cream); }
.hero-stamp:focus-visible {
  outline: none;
  filter: drop-shadow(0 0 0 2px var(--terra));
}

@keyframes heroReveal {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes kenBurns {
  from { transform: scale(1.2) translateY(-2%); }
  to   { transform: scale(1.05) translateY(0); }
}
@keyframes heroFloat {
  0%, 100% { transform: scale(1.05) translateY(0); }
  50%      { transform: scale(1.08) translateY(-3%); }
}
.hero-title .line {
  display: block;
  overflow: hidden;
}
.hero-title .line > span {
  display: inline-block;
  transform: translateY(110%);
  animation: revealUp 1.2s var(--ease) forwards;
}
.hero-title .line:nth-child(1) > span { animation-delay: 0.4s; }
.hero-title .line:nth-child(2) > span { animation-delay: 0.55s; padding-left: 8vw; }
.hero-title .line:nth-child(3) > span { animation-delay: 0.7s; padding-left: 3vw; }
.hero-title .italic > span {
  font-style: italic;
  font-weight: 300;
  color: var(--terra);
}

@keyframes revealUp {
  to { transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-scroll {
  grid-area: scroll;
  align-self: end;
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 1.3s forwards;
}
.hero-scroll .arrow {
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* ---------- Marquee ---------- */
.marquee {
  background: var(--ink);
  color: var(--cream);
  padding: 1.4rem 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.marquee-track {
  display: flex;
  gap: 2.5rem;
  white-space: nowrap;
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  animation: marquee 35s linear infinite;
  width: max-content;
}
.marquee-track .m-dot {
  color: var(--terra);
  font-style: normal;
  font-size: 0.5em;
  align-self: center;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Sections ---------- */
section {
  width: var(--container);
  margin: 0 auto;
  padding: 7rem 0;
}

.section-label {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2rem;
  position: relative;
  padding-left: 1.5rem;
}
.section-label::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 1rem; height: 1px;
  background: currentColor;
}
.section-label.light { color: rgba(243, 237, 227, 0.6); }

.h-display {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 7vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.h-display em {
  font-style: italic;
  font-weight: 300;
  color: var(--terra);
}
.h-display.light { color: var(--cream); }
.h-display.light em { color: var(--clay); }

/* ---------- Story ---------- */
.story-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 4rem;
  align-items: center;
}
.story-images {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.story-img {
  overflow: hidden;
  aspect-ratio: 4/5;
}
.story-img.small {
  aspect-ratio: 4/5;
  margin-top: 3rem;
}
.story-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}
.story-img:hover img { transform: scale(1.06); }

.story-text p {
  color: var(--ink-soft);
  font-size: 1.02rem;
  margin-top: 1.5rem;
  max-width: 42ch;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2.2rem;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.5rem;
  transition: gap 0.3s var(--ease);
}
.btn-link:hover { gap: 1rem; }

/* ---------- Origin ---------- */
.origin {
  width: 100%;
  max-width: 100%;
  background: var(--ink);
  color: var(--cream);
  margin: 0;
  padding: 7rem 4vw;
}
.origin-header {
  max-width: 1400px;
  margin: 0 auto 4rem;
}
.origin-intro {
  color: rgba(243, 237, 227, 0.7);
  max-width: 55ch;
  margin-top: 1.5rem;
  font-size: 1.05rem;
}

.origins-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.origin-card {
  background: rgba(243, 237, 227, 0.04);
  border: 1px solid rgba(243, 237, 227, 0.1);
  overflow: hidden;
  transition: transform 0.6s var(--ease), border-color 0.4s;
}
.origin-card:hover {
  transform: translateY(-6px);
  border-color: rgba(243, 237, 227, 0.25);
}
.origin-media {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.origin-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
  filter: saturate(0.9) contrast(1.05);
}
.origin-card:hover .origin-media img { transform: scale(1.08); }
.origin-coord {
  position: absolute;
  top: 1rem; left: 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  background: rgba(26, 21, 18, 0.7);
  color: var(--cream);
  padding: 0.4rem 0.7rem;
  backdrop-filter: blur(6px);
}
.origin-body { padding: 1.8rem; }
.origin-body h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 2.4rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.8rem;
}
.origin-body p {
  color: rgba(243, 237, 227, 0.7);
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
}
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chips li {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid rgba(243, 237, 227, 0.2);
  padding: 0.3rem 0.7rem;
  color: rgba(243, 237, 227, 0.8);
}

.ethics {
  max-width: 1400px;
  margin: 5rem auto 0;
  padding-top: 3rem;
  border-top: 1px solid rgba(243, 237, 227, 0.15);
}
.ethics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.ethics-num {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--clay);
  display: block;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
.ethics p {
  font-size: 0.9rem;
  color: rgba(243, 237, 227, 0.7);
  max-width: 22ch;
}

/* ---------- Menu ---------- */
.menu-title { margin-bottom: 4rem; }
.menu-title em { padding-left: 0.3em; }

.menu-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem;
}
.menu-group {
  font-family: var(--f-display);
  font-weight: 400;
  font-style: italic;
  font-size: 1.5rem;
  color: var(--terra);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.menu-list { list-style: none; }
.menu-list li {
  display: flex;
  align-items: baseline;
  padding: 0.9rem 0;
  border-bottom: 1px dashed var(--line);
  gap: 0.8rem;
  transition: padding-left 0.4s var(--ease);
}
.menu-list li:hover {
  padding-left: 0.5rem;
  color: var(--terra);
}
.mi-name {
  font-family: var(--f-display);
  font-size: 1.15rem;
  font-weight: 400;
}
.mi-dots { flex: 1; border-bottom: 1px dotted var(--muted); transform: translateY(-4px); }
.mi-price {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
}

/* ---------- Craft ---------- */
.craft {
  width: 100%;
  max-width: 100%;
  background: var(--coffee);
  color: var(--cream);
  margin: 0;
  padding: 7rem 4vw;
}
.craft-top {
  max-width: 1400px;
  margin: 0 auto 4rem;
}
.craft-intro {
  color: rgba(243, 237, 227, 0.7);
  max-width: 55ch;
  margin-top: 1.5rem;
  font-size: 1.05rem;
}

.gallery {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 160px;
  gap: 1rem;
}
.gallery figure {
  overflow: hidden;
  position: relative;
}
.gallery img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease), filter 0.6s;
  filter: saturate(0.85);
}
.gallery figure:hover img { transform: scale(1.08); filter: saturate(1.1); }

.g-1 { grid-column: span 3; grid-row: span 2; }
.g-2 { grid-column: span 3; grid-row: span 1; }
.g-3 { grid-column: span 2; grid-row: span 1; }
.g-4 { grid-column: span 1; grid-row: span 2; }
.g-5 { grid-column: span 4; grid-row: span 2; }
.g-6 { grid-column: span 2; grid-row: span 1; }

.pull-quote {
  max-width: 900px;
  margin: 5rem auto 0;
  text-align: center;
}
.pull-quote p {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.pull-quote em { color: var(--clay); }
.quote-by {
  display: block;
  margin-top: 1.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(243, 237, 227, 0.5);
}

/* ---------- Visit ---------- */
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: center;
}
.visit-meta {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.visit-meta h4 {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1rem;
  color: var(--terra);
  margin-bottom: 0.6rem;
}
.visit-meta p { font-size: 0.95rem; }
.muted { color: var(--muted); font-size: 0.88rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--ink);
  color: var(--cream);
  padding: 1.1rem 1.8rem;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  margin-top: 2.5rem;
  transition: gap 0.3s var(--ease), background 0.3s;
}
.btn:hover { gap: 1.3rem; background: var(--terra); }

.visit-right {
  aspect-ratio: 4/5;
  overflow: hidden;
}
.visit-right img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}
.visit-right:hover img { transform: scale(1.05); }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: var(--cream);
  padding: 5rem 4vw 2rem;
}
.footer-top {
  max-width: 1400px;
  margin: 0 auto 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(243, 237, 227, 0.15);
}
.footer-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.footer-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--clay);
  display: block;
}
.footer-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 3rem;
}
.footer-grid h5 {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(243, 237, 227, 0.5);
  margin-bottom: 1.2rem;
  font-weight: 500;
}
.footer-grid a {
  display: block;
  padding: 0.4rem 0;
  font-size: 0.95rem;
  transition: color 0.3s, padding-left 0.3s;
}
.footer-grid a:hover { color: var(--clay); padding-left: 0.5rem; }
.footer-grid .muted { color: rgba(243, 237, 227, 0.5); margin-top: 1rem; }

.sub {
  position: relative;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(243, 237, 227, 0.3);
  padding: 0.6rem 0;
}
.sub input {
  flex: 1;
  background: none;
  border: none;
  color: var(--cream);
  font-family: var(--f-sans);
  font-size: 0.95rem;
  outline: none;
}
.sub input::placeholder { color: rgba(243, 237, 227, 0.4); }
.sub button {
  background: none;
  border: none;
  color: var(--cream);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 0.4rem;
  transition: transform 0.3s;
}
.sub button:hover { transform: translateX(4px); }
.sub-ok {
  position: absolute;
  bottom: -1.8rem;
  left: 0;
  font-size: 0.82rem;
  color: var(--clay);
  font-style: italic;
  opacity: 0;
  transition: opacity 0.4s;
}
.sub-ok.on { opacity: 1; }

.footer-bottom {
  max-width: 1400px;
  margin: 4rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(243, 237, 227, 0.1);
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(243, 237, 227, 0.5);
  letter-spacing: 0.1em;
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Language swap transition ---------- */
[data-i18n] {
  transition: opacity 0.3s ease;
}
body.lang-switching [data-i18n] {
  opacity: 0.2;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 2rem 4vw;
    gap: 1.4rem;
    border-bottom: 1px solid var(--line);
  }

  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 55vh auto;
    grid-template-areas:
      "meta"
      "title"
      "media"
      "scroll";
  }
  .hero-media, .hero-figure { min-height: 55vh; }
  .hero-stamp { left: auto; right: 0.5rem; bottom: -2.5rem; width: 100px; height: 100px; }

  .story-grid, .visit-grid { grid-template-columns: 1fr; gap: 3rem; }
  .origins-grid { grid-template-columns: 1fr; }
  .ethics-grid { grid-template-columns: repeat(2, 1fr); }
  .menu-layout { grid-template-columns: 1fr; gap: 3rem; }
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 140px;
  }
  .g-1, .g-2, .g-3, .g-4, .g-5, .g-6 { grid-column: span 1; grid-row: span 1; }
  .g-1 { grid-column: span 2; grid-row: span 2; }
  .g-5 { grid-column: span 2; }
  .visit-meta { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .hero-title .line:nth-child(2) > span { padding-left: 4vw; }
  .hero-title .line:nth-child(3) > span { padding-left: 2vw; }
  section { padding: 5rem 0; }
  .origin, .craft { padding: 5rem 4vw; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
