/* ==========================================================================
   Grão & Alma · Cafeteria artesanal (site conceito Pixel Forge)
   Paleta da marca: Espresso Profundo #20140F · Dourado Caramelo #C99543
   Creme Baunilha #F6EDDF · Marrom Café #79543C · Bege Cappuccino #E8D8C1
   Bronze Torrado #A66A32
   ========================================================================== */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../assets/fonts/cormorant-latin.woff2") format("woff2");
  font-weight: 300 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../assets/fonts/cormorant-latin-italic.woff2") format("woff2");
  font-weight: 300 700; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("../assets/fonts/jost-latin.woff2") format("woff2");
  font-weight: 300 700; font-style: normal; font-display: swap;
}

:root {
  --espresso: #20140F;
  --espresso-deep: #170E0A;
  --espresso-2: #2B1C15;
  --gold: #C99543;
  --gold-light: #E3BC74;
  --cream: #F6EDDF;
  --capp: #E8D8C1;
  --coffee: #79543C;
  --bronze: #A66A32;

  --text: var(--cream);
  --text-soft: rgba(246, 237, 223, .76);
  --line: rgba(246, 237, 223, .14);
  --line-gold: rgba(201, 149, 67, .38);

  --f-display: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --f-text: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;

  --header-h: 76px;
  --wrap: 1320px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(6rem, 13vw, 11rem);
  --radius: 18px;
  --radius-sm: 10px;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--espresso);
  color: var(--text);
  font-family: var(--f-text);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
/* Grão de filme sutil: dá textura de papel à luz baixa */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, video, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
::selection { background: var(--gold); color: var(--espresso); }

:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; border-radius: 4px; }
.section-light :focus-visible { outline-color: var(--coffee); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.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; }
.skip {
  position: fixed; top: .75rem; left: .75rem; z-index: 200; padding: .75rem 1.1rem;
  background: var(--gold); color: var(--espresso); border-radius: 8px; font-weight: 500; text-decoration: none;
  transform: translateY(-160%); transition: transform .3s var(--ease);
}
.skip:focus { transform: none; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--section); position: relative; }

.i { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Tipografia ---------- */
.display { font-family: var(--f-display); font-weight: 400; letter-spacing: -.01em; line-height: 1.02; }
.display em { font-style: italic; font-weight: 400; color: var(--gold-light); }
.h2 { font-size: clamp(2.6rem, 1.6rem + 4.4vw, 5.4rem); font-weight: 300; text-wrap: balance; }
.h3 { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem); font-weight: 400; }
.lead { font-size: clamp(1.06rem, 1rem + .35vw, 1.25rem); line-height: 1.65; color: var(--text-soft); max-width: 36em; text-wrap: pretty; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .9em;
  font-family: var(--f-text); font-size: .78rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold);
}
.eyebrow .dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .7; }
.eyebrow-line::before { content: ""; width: 2.6rem; height: 1px; background: currentColor; transform-origin: left; }
.eyebrow-center::after { content: ""; width: 2.6rem; height: 1px; background: currentColor; }

.section-head { display: grid; gap: 1.4rem; margin-bottom: clamp(3rem, 6vw, 5.5rem); }
.section-head-row { grid-template-columns: 1fr auto; align-items: end; gap: 2rem; }
.section-head-center { justify-items: center; text-align: center; }

/* Palavras divididas pelo JS (máscara para a revelação) */
.w { display: inline-block; overflow: clip; vertical-align: top; padding: .06em .06em .14em; margin: -.06em -.06em -.14em; }
.wi { display: inline-block; will-change: transform; }

/* ---------- Botões e links ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  min-height: 52px; padding: 0 1.75rem; border-radius: 999px; isolation: isolate; overflow: hidden;
  font-family: var(--f-text); font-size: .95rem; font-weight: 500; letter-spacing: .04em; text-decoration: none;
  cursor: pointer; border: 1px solid transparent;
  transition: color .45s var(--ease), border-color .45s var(--ease), background-color .45s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  transform: translateY(101%); transition: transform .6s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn .i { transition: transform .5s var(--ease); }
.btn:hover .i { transform: translateX(4px); }
.btn-gold { background: var(--gold); color: var(--espresso); }
.btn-gold::before { background: var(--gold-light); }
.btn-line { border-color: rgba(246, 237, 223, .38); color: var(--cream); }
.btn-line::before { background: var(--cream); }
.btn-line:hover, .btn-line:focus-visible { color: var(--espresso); border-color: var(--cream); }
.btn-dark { background: var(--espresso); color: var(--cream); }
.btn-dark::before { background: var(--coffee); }
.btn-line-dark { border-color: rgba(32, 20, 15, .4); color: var(--espresso); }
.btn-line-dark::before { background: var(--espresso); }
.btn-line-dark:hover, .btn-line-dark:focus-visible { color: var(--cream); border-color: var(--espresso); }
.btn-sm { min-height: 44px; padding: 0 1.25rem; font-size: .88rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .6rem; min-height: 44px;
  color: var(--gold-light); text-decoration: none; font-weight: 500; letter-spacing: .04em;
  background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat;
  transition: background-size .6s var(--ease);
}
.link-arrow:hover, .link-arrow:focus-visible { background-size: 100% 1px; }
.link-arrow .i { transition: transform .5s var(--ease); }
.link-arrow:hover .i { transform: translateX(5px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 80; height: var(--header-h);
  transition: transform .6s var(--ease), background-color .5s var(--ease-soft), border-color .5s var(--ease-soft);
  border-bottom: 1px solid transparent;
}
.site-header.is-solid {
  background: rgba(23, 14, 10, .78);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: rgba(201, 149, 67, .16);
}
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { height: 100%; width: min(100% - 2 * var(--gutter), 1440px); margin-inline: auto; display: flex; align-items: center; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; min-height: 44px; margin-right: auto; position: relative; z-index: 2; }
.brand-mark { width: 40px; height: auto; }
.brand-word { font-family: var(--f-display); font-size: 1.32rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; padding-top: .1em; }
.brand-word .amp { color: var(--gold); letter-spacing: 0; margin-inline: .08em .2em; font-style: italic; }

.nav ul { display: flex; gap: clamp(1.4rem, 2.6vw, 2.6rem); }
.nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  font-size: .92rem; letter-spacing: .06em; text-decoration: none; color: var(--text-soft);
  transition: color .4s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--cream); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav-foot { display: none; }

.menu-btn {
  display: none; align-items: center; gap: .75rem; min-height: 44px; min-width: 44px; padding: 0 .25rem;
  background: none; border: 0; cursor: pointer; position: relative; z-index: 2;
  font-size: .82rem; letter-spacing: .22em; text-transform: uppercase;
}
.menu-btn-lines { display: grid; gap: 6px; width: 26px; }
.menu-btn-lines i { display: block; height: 1.5px; background: currentColor; transition: transform .5s var(--ease); }
.menu-btn[aria-expanded="true"] .menu-btn-lines i:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn-lines i:last-child { transform: translateY(-3.75px) rotate(-45deg); }

@media (max-width: 899px) {
  :root { --header-h: 68px; }
  .menu-btn { display: inline-flex; }
  .header-cta { display: none; }
  .brand-word { font-size: 1.12rem; letter-spacing: .16em; }
  .brand-mark { width: 34px; }
  .nav {
    position: fixed; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: center;
    padding: calc(var(--header-h) + 2rem) var(--gutter) 2.5rem;
    background: radial-gradient(120% 80% at 80% 0%, #3A251A 0%, var(--espresso-deep) 60%);
    visibility: hidden; opacity: 0; transition: opacity .5s var(--ease-soft), visibility 0s .5s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transition: opacity .5s var(--ease-soft); }
  .nav ul { flex-direction: column; gap: .3rem; }
  .nav a { font-family: var(--f-display); font-size: clamp(2.4rem, 11vw, 3.4rem); font-weight: 300; letter-spacing: 0; color: var(--cream); line-height: 1.15; }
  .nav a::after { bottom: .2em; }
  .nav li { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .8s var(--ease); }
  .nav.is-open li { opacity: 1; transform: none; }
  .nav.is-open li:nth-child(2) { transition-delay: .06s; }
  .nav.is-open li:nth-child(3) { transition-delay: .12s; }
  .nav.is-open li:nth-child(4) { transition-delay: .18s; }
  .nav-foot { display: block; margin-top: auto; padding-top: 2rem; border-top: 1px solid var(--line); color: var(--text-soft); font-size: .92rem; }
  body.menu-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; grid-template-rows: 1fr auto; overflow: hidden; background: var(--espresso-deep); }
.hero-media { position: absolute; inset: 0; }
.hero-media picture, .hero-poster, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 22% 50%; }
.hero-video { opacity: 0; transition: opacity 1.2s var(--ease-soft); }
.hero-video.is-playing { opacity: 1; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(23, 14, 10, .94) 0%, rgba(23, 14, 10, .8) 30%, rgba(23, 14, 10, .35) 50%, rgba(23, 14, 10, 0) 66%, rgba(23, 14, 10, .2) 100%),
    linear-gradient(0deg, rgba(23, 14, 10, .9) 0%, rgba(23, 14, 10, 0) 32%),
    linear-gradient(180deg, rgba(23, 14, 10, .55) 0%, rgba(23, 14, 10, 0) 22%);
}
.hero-content { position: relative; z-index: 2; align-self: center; padding-top: calc(var(--header-h) + 3rem); padding-bottom: 2rem; }
.hero-mark { width: clamp(64px, 6vw, 88px); height: auto; margin-bottom: 1.8rem; overflow: visible; }
.hero-title { font-size: clamp(3rem, 1.2rem + 5.4vw, 6.8rem); font-weight: 300; line-height: .98; max-width: 7.4em; margin: 1.4rem 0 1.8rem; letter-spacing: -.015em; text-wrap: balance; }
.hero-title em { display: inline; }
.br-lg { display: none; }
@media (min-width: 900px) { .br-lg { display: inline; } }
.hero-lead { max-width: 30em; font-size: clamp(1.05rem, 1rem + .3vw, 1.22rem); color: var(--text-soft); text-wrap: pretty; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.4rem; }
.hero-bar { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.4rem 1.8rem; border-top: 1px solid var(--line); }
.hero-hours { display: inline-flex; align-items: center; gap: .6rem; font-size: .88rem; letter-spacing: .04em; color: var(--text-soft); }
.hero-hours .i { color: var(--gold); }
.scroll-cue { position: absolute; left: 50%; bottom: 1.4rem; width: 1px; height: 46px; background: rgba(246, 237, 223, .2); overflow: hidden; }
.scroll-cue span { position: absolute; inset: 0; background: var(--gold); transform: translateY(-100%); animation: cue 2.6s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 55% { transform: translateY(0); } 100% { transform: translateY(100%); } }
.video-toggle {
  display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; padding: 0 1rem;
  background: rgba(23, 14, 10, .35); border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
  font-size: .8rem; letter-spacing: .08em; color: var(--text-soft); transition: border-color .4s, color .4s;
}
.video-toggle:hover { color: var(--cream); border-color: var(--line-gold); }
.video-toggle[hidden] { display: none; }
.video-toggle .i-play { display: none; }
.video-toggle[aria-pressed="true"] .i-play { display: block; }
.video-toggle[aria-pressed="true"] .i-pause { display: none; }

@media (max-width: 719px) {
  .hero-media picture, .hero-poster, .hero-video { object-position: 60% 50%; }
  .hero-shade {
    background:
      linear-gradient(0deg, rgba(23, 14, 10, .97) 0%, rgba(23, 14, 10, .88) 48%, rgba(23, 14, 10, .45) 66%, rgba(23, 14, 10, .1) 82%, rgba(23, 14, 10, .5) 100%);
  }
  .hero-content { align-self: end; padding-top: 30svh; padding-bottom: 1.2rem; }
  .hero-mark { width: 52px; margin-bottom: 1rem; }
  .hero-title { font-size: clamp(2.7rem, 12.4vw, 3.8rem); margin: 1rem 0 1.1rem; }
  .hero-lead { font-size: 1rem; }
  .hero-ctas { margin-top: 1.6rem; gap: .6rem; }
  .hero-ctas .btn { flex: 1 1 0; padding: 0 1rem; }
  .hide-sm { display: none; }
  .scroll-cue { display: none; }
  .hero-hours { font-size: .8rem; }
  .video-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .video-toggle { padding: 0; width: 44px; justify-content: center; }
}

/* ---------- Manifesto: o ritual do pingo ----------
   Molduras em posições fixas (arcos e círculos) com folga garantida entre si e o texto.
   Larguras em min(vw, svh) para não colidirem em telas largas e baixas.
   Nada aqui usa a propriedade CSS translate: o GSAP anima transform nesses elementos. */
.manifesto { position: relative; background: var(--espresso); }
.manifesto-stage {
  position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; isolation: isolate;
  background: radial-gradient(70% 60% at 50% 50%, #2F1E15 0%, var(--espresso) 72%);
}
.m-glow { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .7;
  background: radial-gradient(42% 38% at 50% 52%, rgba(201, 149, 67, .26), rgba(201, 149, 67, 0) 70%); }
.m-milk { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0;
  background: radial-gradient(75% 70% at 50% 50%, #FBF4E9 0%, var(--cream) 45%, var(--capp) 100%); }
.m-rings { position: absolute; left: 50%; top: 50%; z-index: 2; width: 0; height: 0; pointer-events: none; }
.m-rings span {
  position: absolute; left: calc(min(70vmin, 640px) / -2); top: calc(min(70vmin, 640px) / -2);
  width: min(70vmin, 640px); aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(227, 188, 116, .55); opacity: 0;
}
.m-rings-milk span { border-color: rgba(121, 84, 60, .45); }

.frames { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.frame { position: absolute; margin: 0; }
.frame-img { position: relative; overflow: hidden; height: 100%; box-shadow: 0 30px 60px -26px rgba(0, 0, 0, .8); }
.frame-img picture, .frame-img img { width: 100%; height: 100%; object-fit: cover; }
.arch { aspect-ratio: 3 / 4; }
.arch .frame-img, .arch .frame-ring { border-radius: 999px 999px 16px 16px; }
.circle { aspect-ratio: 1; }
.circle .frame-img, .circle .frame-ring { border-radius: 50%; }
/* Contorno dourado afastado da foto: a "moldura" de vitrine */
.frame::after { content: ""; position: absolute; inset: -9px; border: 1px solid rgba(201, 149, 67, .42); border-radius: inherit; pointer-events: none; }
.arch::after { border-radius: 999px 999px 22px 22px; }
.circle::after { border-radius: 50%; }
.frame-ring { position: absolute; inset: 0; border: 1.5px solid var(--gold-light); opacity: 0; pointer-events: none; }

.f1 { left: 5vw;  top: 11svh; width: min(15vw, 30svh); }
.f2 { left: 12vw; top: 62svh; width: min(12vw, 22svh); }
.f3 { left: 27vw; top: 6svh;  width: min(8.5vw, 16svh); }
.f4 { right: 15vw; top: 9svh; width: min(11vw, 21svh); }
.f5 { right: 5vw; top: 48svh; width: min(15vw, 30svh); }
.f6 { right: 27vw; top: 74svh; width: min(8.5vw, 16svh); }

.drop { position: absolute; left: 50%; top: 50%; z-index: 5; width: 18px; height: 26px; margin: -13px 0 0 -9px; opacity: 0; pointer-events: none; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .35)); }
.drop svg { width: 100%; height: 100%; }
.drop-main { width: 26px; height: 37px; margin: -18px 0 0 -13px; }

.manifesto-lines { position: relative; z-index: 4; text-align: center; width: min(100% - 2 * var(--gutter), 52vw, 11em); font-size: clamp(2.2rem, 1.4rem + 3.4vw, 4.6rem); display: grid; gap: .5em; }
.m-line { font-weight: 300; text-wrap: balance; }
.m-c { font-size: 1.9em; line-height: .95; }
.m-c em { color: var(--gold); }
.m-b { color: var(--text-soft); font-size: .78em; font-style: italic; }
/* Com animação, o "ritual" surge sobre o leite: texto em tom café */
.motion .m-c { color: var(--espresso); }
.motion .m-c em { color: var(--coffee); }

/* Leite escorrendo para a seção seguinte (só com animação, quando o fundo vira creme) */
.m-drips { --h: clamp(80px, 10vw, 150px); display: none; position: relative; z-index: 2; height: var(--h); margin-bottom: calc(-1 * var(--h)); pointer-events: none; }
.motion .m-drips { display: block; }
.m-drips svg { width: 100%; height: 100%; transform-origin: top; }
.m-droplet {
  position: absolute; left: var(--x); top: calc(var(--t) * var(--h) - 4px); width: 9px; height: 13px; margin-left: -4.5px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: #F1E6D5; opacity: 0;
  animation: drip-fall 3.4s cubic-bezier(.55, 0, 1, .45) var(--d) infinite;
}
@keyframes drip-fall {
  0% { transform: translateY(-4px) scale(.3); opacity: 0; }
  18% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(130px) scale(.9, 1.3); opacity: 0; }
}

@media (max-width: 719px) {
  .f3, .f6 { display: none; }
  .f1 { left: 6vw;  top: calc(var(--header-h) + 2svh); width: 31vw; }
  .f4 { left: auto; right: 7vw; top: 14svh; width: 26vw; }
  .f2 { left: 9vw;  top: auto; bottom: 9svh; width: 26vw; }
  .f5 { right: 6vw; top: auto; bottom: 6svh; width: 31vw; }
  .frame::after { inset: -6px; }
  .manifesto-lines { width: min(100% - 3rem, 11em); font-size: clamp(1.7rem, 7vw, 2.4rem); }
  .drop { width: 14px; height: 20px; margin: -10px 0 0 -7px; }
}
@media (max-width: 719px) and (max-height: 700px) {
  .f1, .f5 { width: 24vw; } .f2, .f4 { width: 21vw; }
}

/* ---------- Processo ---------- */
.process-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(3rem, 7vw, 7rem); align-items: start; }
.process-visual { position: sticky; top: calc(var(--header-h) + 4vh); }
.process-frame { position: relative; aspect-ratio: 4 / 5; max-height: calc(100svh - var(--header-h) - 8vh); width: 100%; border-radius: var(--radius); overflow: hidden; background: var(--espresso-2); }
.pv { position: absolute; inset: 0; opacity: 0; transform: scale(1.06); transition: opacity 1.2s var(--ease-soft), transform 1.8s var(--ease); }
.pv.is-on { opacity: 1; transform: none; }
.pv img { width: 100%; height: 100%; object-fit: cover; }
.process-count {
  position: absolute; left: 1.2rem; bottom: 1.1rem; padding: .35rem .8rem; border-radius: 999px;
  background: rgba(23, 14, 10, .6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: .78rem; letter-spacing: .18em; color: var(--cream);
}
.steps { display: grid; }
.step { min-height: 62svh; display: flex; flex-direction: column; justify-content: center; gap: 1.1rem; padding-block: 3rem; border-top: 1px solid var(--line); }
.step:first-child { border-top: 0; padding-top: 0; min-height: 52svh; justify-content: flex-start; }
.step-num { font-size: clamp(4rem, 3rem + 3vw, 6.5rem); font-weight: 300; line-height: .8; color: transparent; -webkit-text-stroke: 1px var(--gold); }
.step p { color: var(--text-soft); max-width: 32em; }
.step .step-meta { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.steam-divider { width: 100%; height: clamp(60px, 9vw, 120px); margin-top: var(--section); fill: none; stroke: var(--line-gold); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.process { padding-bottom: 0; }

@media (max-width: 959px) {
  .process-grid { grid-template-columns: 1fr; gap: 0; }
  .process-visual { top: calc(var(--header-h) + .5rem); z-index: 2; }
  .process-frame { aspect-ratio: 16 / 10; max-height: 36svh; box-shadow: 0 18px 40px -20px #000; }
  .step, .step:first-child { min-height: 0; padding-block: 3.5rem; justify-content: flex-start; }
  .step:first-child { border-top: 0; }
}

/* ---------- Assinaturas (bento) ---------- */
.bento {
  display: grid; gap: clamp(.8rem, 1.4vw, 1.25rem);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(14rem, 19vw, 17.5rem);
  grid-template-areas: "a a b b" "a a c d" "e f f d";
}
.card { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--espresso-2); isolation: isolate; }
.card-a { grid-area: a; } .card-b { grid-area: b; } .card-c { grid-area: c; }
.card-d { grid-area: d; } .card-e { grid-area: e; } .card-f { grid-area: f; }
.card picture, .card picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card picture img { transition: transform 1.6s var(--ease); }
.card:hover picture img { transform: scale(1.05); }
.card::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(20, 12, 8, .94) 0%, rgba(20, 12, 8, .6) 38%, rgba(20, 12, 8, 0) 70%);
}
.card-body { position: absolute; inset: auto 0 0; z-index: 1; padding: clamp(1.1rem, 2vw, 1.8rem); display: grid; gap: .35rem; }
.card-tag { justify-self: start; font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--espresso); background: var(--gold-light); padding: .25rem .65rem; border-radius: 999px; margin-bottom: .4rem; }
.card-title { font-size: clamp(1.5rem, 1.1rem + 1vw, 2.1rem); font-weight: 400; }
.card-a .card-title { font-size: clamp(2.2rem, 1.4rem + 2.4vw, 3.6rem); font-weight: 300; }
.card-desc { font-size: .92rem; color: var(--text-soft); max-width: 30em; line-height: 1.5; }
.card-price { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); margin-top: .3rem; }
.card-note { background: linear-gradient(145deg, #D7A659 0%, var(--gold) 50%, #A66D29 100%); color: var(--espresso); padding: clamp(1.3rem, 2.2vw, 2rem); display: flex; flex-direction: column; justify-content: space-between; }
.card-note::after { display: none; }
.note-mark { width: 44px; height: auto; filter: brightness(.25) sepia(.6); }
.note-text { font-size: clamp(1.7rem, 1.2rem + 1.3vw, 2.4rem); font-weight: 400; line-height: 1.05; }
.note-text em { color: var(--espresso); }
.note-sub { font-size: .88rem; line-height: 1.5; color: #3A2619; }

@media (max-width: 899px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 13rem; grid-template-areas: "a a" "a a" "b b" "c d" "e d" "f f"; }
  .card-desc { display: none; }
  .card-a .card-desc, .card-d .card-desc { display: block; }
}
@media (max-width: 719px) { .section-head-row { grid-template-columns: 1fr; } }
@media (max-width: 479px) {
  .bento { grid-auto-rows: 11.5rem; }
  .card-d .card-desc, .note-sub { display: none; }
}

/* ---------- Ambiente ---------- */
.ambience { position: relative; background: var(--espresso); padding-bottom: var(--section); }
.ambience-media { position: relative; height: min(100svh, 980px); min-height: 560px; overflow: hidden; display: grid; align-items: end; }
.ambience-media picture, .ambience-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ambience-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(23, 14, 10, .92) 0%, rgba(23, 14, 10, .45) 40%, rgba(23, 14, 10, .05) 75%); }
.ambience-copy { position: relative; z-index: 2; padding-bottom: clamp(3rem, 7vw, 6rem); display: grid; gap: 1.4rem; }
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; padding-top: clamp(3rem, 5vw, 4.5rem); }
.features li { display: grid; gap: .9rem; align-content: start; padding-top: 1.4rem; border-top: 1px solid var(--line); color: var(--text-soft); font-size: .98rem; line-height: 1.5; }
.features strong { display: block; font-family: var(--f-display); font-size: 1.55rem; font-weight: 500; color: var(--cream); line-height: 1.1; margin-bottom: .2rem; }
.features .i { width: 28px; height: 28px; color: var(--gold); stroke-width: 1.3; }
@media (max-width: 899px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.25rem; } }

/* ---------- Depoimentos (seção clara) ---------- */
.section-light { background: var(--cream); color: var(--espresso); }
.section-light .display em { color: var(--coffee); }
.section-light .eyebrow { color: var(--coffee); }
.section-light .lead { color: #5E4130; }
.story-intro-copy { display: grid; gap: 1.5rem; }
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.quotes blockquote {
  height: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 2.2rem;
  padding: clamp(1.8rem, 3vw, 2.6rem); border-radius: var(--radius); background: #FBF5EC; border: 1px solid #E6D6BF; position: relative;
}
.quotes blockquote::before { content: "“"; position: absolute; top: -.05em; right: .3em; font-family: var(--f-display); font-size: 7rem; line-height: 1; color: var(--capp); }
.quotes p { position: relative; font-family: var(--f-display); font-style: italic; font-size: clamp(1.35rem, 1.1rem + .7vw, 1.7rem); line-height: 1.3; }
.quotes footer { display: grid; gap: .1rem; font-size: .9rem; padding-top: 1.2rem; border-top: 1px solid #E2D0B6; }
.quotes footer span { color: #6B4A35; }
@media (max-width: 899px) {
  .quotes { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(84%, 380px); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: thin; }
  .quotes li { scroll-snap-align: start; }
}

/* ---------- Visite ---------- */
.visit-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(3rem, 7vw, 7rem); align-items: center; }
.visit-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 5 / 4; }
.visit-media picture, .visit-media img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
.visit-info { display: grid; gap: 1.5rem; }
.hours { display: grid; margin-top: .6rem; border-top: 1px solid var(--line); }
.hours div { display: flex; align-items: baseline; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.hours dt { color: var(--text-soft); }
.hours dd { margin-left: auto; font-family: var(--f-display); font-size: 1.35rem; }
.visit-ctas { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: .6rem; }
@media (max-width: 899px) { .visit-grid { grid-template-columns: 1fr; } }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--espresso-deep); padding: clamp(5rem, 10vw, 8rem) 0 2rem; border-top: 1px solid rgba(201, 149, 67, .14); position: relative; overflow: hidden; }
.footer-top { display: grid; justify-items: center; text-align: center; gap: 1rem; padding-bottom: clamp(3.5rem, 7vw, 6rem); }
.footer-mark { width: 72px; height: auto; }
.footer-word { font-size: clamp(2rem, 11.2vw, 11.5rem); font-weight: 300; letter-spacing: .06em; text-transform: uppercase; line-height: 1; white-space: nowrap; }
.footer-word em { color: var(--gold); font-style: italic; letter-spacing: 0; }
.footer-word [data-chars] { display: inline-block; overflow: clip; padding: .04em .1em .1em; }
.footer-word .ch { display: inline-block; }
.footer-tag { font-size: .8rem; letter-spacing: .5em; text-transform: uppercase; color: var(--capp); display: inline-flex; align-items: center; gap: 1.2rem; }
.footer-tag::before, .footer-tag::after { content: ""; width: 3rem; height: 1px; background: var(--gold); }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; padding-block: 2.6rem; border-top: 1px solid var(--line); color: var(--text-soft); }
.footer-h { font-family: var(--f-text); font-size: .74rem; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.footer-cols a { display: inline-flex; min-height: 36px; align-items: center; text-decoration: none; transition: color .3s; }
.footer-cols a:hover { color: var(--cream); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem 2rem; padding-top: 1.6rem; border-top: 1px solid var(--line); font-size: .84rem; color: rgba(246, 237, 223, .62); }
.footer-bottom a { color: var(--gold-light); }
@media (max-width: 719px) { .footer-cols { grid-template-columns: 1fr; } .footer-tag { letter-spacing: .3em; font-size: .72rem; } .footer-tag::before, .footer-tag::after { width: 1.6rem; } }

/* ==========================================================================
   Páginas internas
   ========================================================================== */
.page-hero { position: relative; min-height: min(78svh, 760px); display: grid; align-items: end; overflow: hidden; background: var(--espresso-deep); }
.page-hero-media, .page-hero-media picture, .page-hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero-shade { position: absolute; inset: 0; background: linear-gradient(0deg, var(--espresso) 0%, rgba(32, 20, 15, .78) 35%, rgba(23, 14, 10, .35) 70%, rgba(23, 14, 10, .65) 100%); }
.page-hero-copy { position: relative; z-index: 2; padding-top: calc(var(--header-h) + 4rem); padding-bottom: clamp(3rem, 6vw, 5rem); display: grid; gap: 1.4rem; }
.page-title { font-size: clamp(3.4rem, 1.6rem + 7vw, 8.4rem); font-weight: 300; line-height: .95; }
.crumbs { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-soft); }
.crumbs a { text-decoration: none; color: var(--gold-light); }
.crumbs a:hover { text-decoration: underline; }

/* ---------- Cardápio ---------- */
.filters-bar { position: sticky; top: 0; z-index: 30; background: rgba(32, 20, 15, .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); transition: top .6s var(--ease); }
.has-header .filters-bar { top: var(--header-h); }
.filters { position: relative; display: flex; gap: .5rem; overflow-x: auto; padding-block: .9rem; scrollbar-width: none; scroll-snap-type: x proximity; }
.filters::-webkit-scrollbar { display: none; }
.chip {
  flex: none; scroll-snap-align: start; min-height: 44px; padding: 0 1.2rem; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1px solid var(--line); color: var(--text-soft); font-size: .9rem; letter-spacing: .04em;
  transition: background-color .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease);
}
.chip:hover { border-color: var(--line-gold); color: var(--cream); }
.chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--espresso); }
.chip .count { font-size: .76em; opacity: .7; margin-left: .35em; }
.menu-status { padding-top: 1.6rem; font-size: .88rem; color: var(--text-soft); }
.menu-groups { display: grid; gap: clamp(4rem, 8vw, 7rem); padding-block: clamp(3rem, 6vw, 5rem) var(--section); }
.menu-group[hidden] { display: none; }
.menu-group-head { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 1.5rem; margin-bottom: 2rem; }
.menu-group-head h2 { font-size: clamp(2.4rem, 1.6rem + 2.8vw, 4rem); font-weight: 300; }
.menu-group-head p { color: var(--text-soft); font-size: .95rem; justify-self: end; text-align: right; max-width: 26em; }
.menu-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 5vw, 5rem); }
.item { padding: 1.4rem 0; border-top: 1px solid var(--line); display: grid; gap: .4rem; }
.item-row { display: flex; align-items: baseline; gap: .8rem; }
.item-name { font-family: var(--f-display); font-size: 1.55rem; font-weight: 500; line-height: 1.15; }
.item-row::after { content: none; }
.item-leader { flex: 1; border-bottom: 1px dotted rgba(201, 149, 67, .45); transform: translateY(-.3em); min-width: 1.5rem; }
.item-price { font-family: var(--f-display); font-size: 1.35rem; color: var(--gold-light); white-space: nowrap; }
.item-desc { color: var(--text-soft); font-size: .95rem; line-height: 1.55; max-width: 34em; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .2rem; }
.tag { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; padding: .2rem .55rem; border: 1px solid var(--line-gold); border-radius: 999px; color: var(--gold-light); }
.menu-note { display: grid; grid-template-columns: auto 1fr; gap: 1.6rem; align-items: center; padding: clamp(1.6rem, 3vw, 2.4rem); border-radius: var(--radius); background: var(--espresso-2); border: 1px solid rgba(201, 149, 67, .2); }
.menu-note svg { width: 56px; height: auto; }
.menu-note p { color: var(--text-soft); }
.menu-note strong { color: var(--cream); font-family: var(--f-display); font-size: 1.5rem; font-weight: 500; display: block; }
@media (max-width: 899px) {
  .menu-items { grid-template-columns: 1fr; }
  .menu-group-head { grid-template-columns: 1fr; gap: .6rem; }
  .menu-group-head p { justify-self: start; text-align: left; }
}

/* ---------- Nossa história ---------- */
.intro-quote { font-size: clamp(2rem, 1.2rem + 3.2vw, 4rem); font-weight: 300; line-height: 1.15; max-width: 22em; text-wrap: balance; }
.intro-quote em { color: var(--gold-light); }
.story-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.story-intro .copy { display: grid; gap: 1.2rem; color: var(--text-soft); max-width: 36em; }
.timeline { position: relative; }
.chapters { display: grid; gap: clamp(5rem, 10vw, 9rem); }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--line); }
.timeline-progress { position: absolute; left: 50%; top: 0; width: 1px; height: 100%; background: var(--gold); transform-origin: top; transform: scaleY(0); }
.chapter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(3rem, 8vw, 8rem); align-items: center; position: relative; }
.chapter::before { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 11px; border-radius: 50%; background: var(--espresso); border: 1px solid var(--gold); transform: translate(-50%, -50%); }
.chapter:nth-child(even) .chapter-media { order: 2; }
.chapter-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.chapter-media img, .chapter-media picture { width: 100%; height: 100%; object-fit: cover; }
.chapter-copy { display: grid; gap: 1.1rem; }
.chapter-year { font-family: var(--f-display); font-size: clamp(4rem, 3rem + 4vw, 7rem); font-weight: 300; line-height: .85; color: transparent; -webkit-text-stroke: 1px var(--gold); }
.chapter-copy p { color: var(--text-soft); max-width: 32em; }
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.value { padding: clamp(1.8rem, 3vw, 2.6rem); border-radius: var(--radius); background: #FBF5EC; border: 1px solid #E6D6BF; display: grid; gap: 1rem; align-content: start; }
.value .i { width: 34px; height: 34px; color: var(--coffee); stroke-width: 1.2; }
.value h3 { font-size: 2rem; font-weight: 500; }
.value p { color: #5E4130; }
.founders { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(3rem, 7vw, 7rem); align-items: center; }
.founders-media { position: relative; aspect-ratio: 4 / 5; }
.founders-media .fm { position: absolute; border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 60px -30px #000; }
.founders-media .fm img { width: 100%; height: 100%; object-fit: cover; }
.fm-1 { inset: 0 22% 18% 0; }
.fm-2 { inset: 46% 0 0 40%; border: 6px solid var(--espresso); }
.signature-line { font-family: var(--f-display); font-style: italic; font-size: 1.6rem; color: var(--gold-light); }
.cta-band { text-align: center; display: grid; justify-items: center; gap: 1.6rem; }
.cta-band .btns { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; }
@media (max-width: 899px) {
  .story-intro, .founders { grid-template-columns: 1fr; }
  .timeline::before, .timeline-progress { left: 0; }
  .chapter { grid-template-columns: 1fr; gap: 1.8rem; padding-left: 1.6rem; }
  .chapter::before { left: 0; top: .5rem; transform: translate(-50%, 0); }
  .chapter:nth-child(even) .chapter-media { order: 0; }
  .values { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Estados de animação (só com html.motion; sem JS ou com menos movimento,
   tudo aparece no estado final)
   ========================================================================== */
/* Entrada do topo em CSS: começa no primeiro quadro, sem depender do GSAP */
.motion [data-split="hero"]:not(.is-split) { opacity: 0; }
.motion [data-split="hero"] .wi { animation: word-in 1.6s var(--ease) both; animation-delay: calc(.12s + var(--i) * 75ms); }
.motion [data-hero] { animation: fade-up 1.5s var(--ease) both; animation-delay: var(--d, .35s); }
.motion .hero .eyebrow, .motion .crumbs { --d: .05s; }
.motion .hero-lead, .motion .page-hero .lead { --d: .3s; }
.motion .hero-ctas { --d: .5s; }
.motion .hero-bar { --d: .75s; animation-name: fade-in; }
.motion .hero-media > picture, .motion [data-page-media] > picture { animation: settle 3.2s cubic-bezier(.25, .1, .25, 1) both; }
@keyframes word-in { from { transform: translateY(120%) rotate(4deg); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes settle { from { transform: scale(1.14); } }
.motion .hero-mark path { stroke-dasharray: 1000; stroke-dashoffset: 1000; }
.motion .hero-mark .bean { opacity: 0; }
.motion .manifesto-lines { display: grid; }
.motion .m-line { grid-area: 1 / 1; align-self: center; }
.motion .steam-divider path { stroke-dasharray: 1; stroke-dashoffset: 1; }

/* Transição suave entre páginas (navegadores com View Transitions) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .45s var(--ease-soft) both; }
::view-transition-new(root) { animation: vt-in .7s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero-video { display: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* ---------- 404 ---------- */
.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: calc(var(--header-h) + 3rem) 0 4rem; background: radial-gradient(60% 50% at 50% 40%, #33211A 0%, var(--espresso) 70%); }
.notfound-inner { display: grid; justify-items: center; gap: 1.4rem; }
.notfound-mark { width: 90px; height: auto; opacity: .9; }
.notfound .lead { margin-inline: auto; }
.notfound .btns { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; margin-top: .6rem; }

/* Enquadramento das fotos (object-position) */
.op-4-90 { object-position: 4% 90% !important; }
.op-8-80 { object-position: 8% 80% !important; }
.op-20-70 { object-position: 20% 70% !important; }
.op-40-45 { object-position: 40% 45% !important; }
.op-45-50 { object-position: 45% 50% !important; }
.op-62-30 { object-position: 62% 30% !important; }
.op-62-50 { object-position: 62% 50% !important; }
.op-62-60 { object-position: 62% 60% !important; }
.op-66-45 { object-position: 66% 45% !important; }
.op-80-70 { object-position: 80% 70% !important; }
.op-86-55 { object-position: 86% 55% !important; }
