:root {
  --bg: #1b1916;
  --surface: #25221e;
  --ink: #f1f0ec;
  --muted: #b3ab9d;
  --accent: #c98a4b;
  --accent-strong: #dc9c5c;
  --accent-ink: #1b1916;
  --field: #dcd9d1;
  --field-ink: #1b1916;
  --field-muted: #34312c;
  --green: #1f3a2e;

  --f-display: 'Gambarino', 'Times New Roman', serif;
  --f-text: 'General Sans', system-ui, sans-serif;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2.375rem, 1.2rem + 4.2vw, 5.25rem);
  --step-display: clamp(5.5rem, 18vw, 21rem);

  --m: clamp(16px, 2.4vw, 32px);
  --gap: clamp(120px, 14vw, 200px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-text); font-size: var(--step-body); line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3, p, figure, ul, dl, dd, fieldset { margin: 0; padding: 0; }
ul { list-style: none; }
fieldset { border: 0; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.head, .name, .verb, .foot-name, .lead, .card-title, .card-preview, .panel-title, .course-name, .menu strong, .invite-lead {
  font-family: var(--f-display); font-weight: 400;
}
.head { font-size: var(--step-head); line-height: 0.95; letter-spacing: -0.02em; }
.lead { font-size: var(--step-lead); line-height: 1.25; letter-spacing: -0.01em; }

.link { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.25em; text-decoration-thickness: 0.07em; transition: text-decoration-color 200ms ease; }
.btn, .card-send, .wa-float {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--accent-ink); text-decoration: none;
  font-family: var(--f-text); font-weight: 500; font-size: var(--step-small);
  border-radius: 999px; padding: 0 22px; min-height: 46px;
  transition: transform 140ms var(--ease-out), background-color 200ms ease;
}
.btn:active, .card-send:active, .wa-float:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .link:hover { text-decoration-color: currentColor; }
  .btn:hover, .card-send:hover, .wa-float:hover { background: var(--accent-strong); }
}

/* Hero: a fazenda é a página inteira; o nome fica na borda de baixo, como título de filme */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; color: var(--ink); }
.hero-photos { position: absolute; inset: 0; display: grid; grid-template-columns: 3fr 4fr 3fr; gap: 6px; background: var(--bg); }
.hero-photo { position: relative; overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.hp-3 img { object-position: 50% 60%; }
.hero::before, .hero::after { content: ""; position: absolute; left: 0; right: 0; pointer-events: none; z-index: 1; }
.hero::before { top: 0; height: 120px; /* taste-skill-ignore: scrim neutro sob o texto */ background: linear-gradient(rgba(16, 14, 12, 0.45), rgba(16, 14, 12, 0)); }
.hero::after { bottom: 0; height: 52%; /* taste-skill-ignore: scrim neutro sob o texto */ background: linear-gradient(rgba(16, 14, 12, 0), rgba(16, 14, 12, 0.72)); }
.top { position: absolute; z-index: 2; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 20px var(--m); }
.top-links { display: flex; gap: 28px; font-size: var(--step-small); font-weight: 500; }
.top-links a { text-decoration-color: transparent; }
.hero-foot { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 0 var(--m) 12px; }
.hero-line { max-width: 34ch; font-size: var(--step-lead); font-family: var(--f-display); line-height: 1.2; }
.name { font-size: var(--step-display); line-height: 0.8; letter-spacing: -0.035em; margin: 22px 0 -0.14em -0.04em; padding-bottom: 0.24em; white-space: nowrap; }
.name .ch, .foot-name .ch { display: inline-block; }

/* Intro: o título é a legenda do panorama da brasa */
.intro { padding-top: var(--gap); }
.intro-text { padding: 0 var(--m); max-width: 1440px; }
.captions { display: flex; gap: 48px; margin-top: 32px; }
.captions p { max-width: 30ch; font-size: var(--step-body); color: var(--ink); }
.panorama { margin-top: 56px; overflow: hidden; aspect-ratio: 21 / 9; }
.panorama img { width: 100%; height: 118%; object-fit: cover; object-position: 50% 44%; will-change: transform; }

/* Ocasiões: faixa de painéis desiguais que se abrem */
.occasions { padding-top: var(--gap); }
.occ-title { padding-left: calc(var(--m) + 16.66vw); margin-bottom: 56px; }
.band { display: flex; height: 72svh; min-height: 460px; }
.panel { position: relative; flex: var(--g) 1 0; min-width: 0; overflow: hidden; cursor: pointer; transition: flex-grow 600ms var(--ease-in-out); }
.panel img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-soft); }
.panel figcaption { position: absolute; inset: auto 0 0 0; padding: 72px 24px 24px; /* taste-skill-ignore: scrim neutro sob o texto */ background: linear-gradient(rgba(16, 14, 12, 0), rgba(16, 14, 12, 0.7)); }
.panel-title { display: block; font-size: var(--step-lead); line-height: 1.1; }
.panel-dish { display: block; margin-top: 6px; max-width: 30ch; font-size: var(--step-small); opacity: 0; transform: translateY(8px); transition: opacity 300ms ease, transform 400ms var(--ease-out); }
.panel.is-open .panel-dish { opacity: 1; transform: none; }
@media (hover: hover) and (pointer: fine) {
  .band:hover .panel { flex-grow: var(--g); }
  .band .panel:hover { flex-grow: 6; }
  .band:hover .panel:hover .panel-dish { opacity: 1; transform: none; }
  .band:hover .panel.is-open:not(:hover) .panel-dish { opacity: 0; }
  .panel:hover img { transform: scale(1.04); }
}
.band .panel.is-open { flex-grow: 6; }
.band-note { margin-top: 24px; padding: 0 var(--m); max-width: 52ch; }

/* O ritual: um verbo por tela, preso no centro enquanto a imagem passa */
.ritual { margin-top: var(--gap); }
.stage { position: relative; height: 100svh; min-height: 520px; overflow: hidden; display: grid; place-items: center; }
.stage-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.62); }
.embers { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.verb-wrap { position: relative; z-index: 1; text-align: center; }
.verb { display: block; font-size: var(--step-display); line-height: 0.85; letter-spacing: -0.035em; color: var(--ink); }
.verb-note { position: absolute; z-index: 1; left: var(--m); bottom: var(--m); max-width: 36ch; font-size: var(--step-body); padding: 14px 18px; background: rgba(16, 14, 12, 0.55); }

/* O menu: a única virada para o campo claro, composto como um cardápio impresso */
.menu { background: var(--field); color: var(--field-ink); padding: var(--gap) var(--m); display: grid; grid-template-columns: 5fr 7fr; gap: 64px; }
.menu-head { align-self: start; }
.menu .lead { margin-top: 28px; max-width: 26ch; }
.menu-photo { margin-top: 40px; width: 100%; max-width: 520px; aspect-ratio: 4 / 5; overflow: hidden; }
.menu-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1100px) { .menu-photo { width: 100%; max-width: 520px; } }
.courses { display: grid; grid-template-columns: 1fr 1fr; gap: 56px 48px; }
.course-name { font-size: var(--step-lead); line-height: 1.1; color: #8a4f1e; margin-bottom: 18px; }
.course li + li { margin-top: 18px; }
.course strong { display: block; font-size: var(--step-lead); line-height: 1.15; letter-spacing: -0.01em; }
.course span { display: block; margin-top: 4px; color: var(--field-muted); max-width: 40ch; }

/* A chef */
.chef { padding: var(--gap) var(--m) 0; }
.chef-lead { margin-top: 24px; max-width: 44ch; }
.chef-title { text-transform: uppercase; letter-spacing: 0.01em; }
.chef-sep { color: var(--accent); }
.chef-br { display: none; }
@media (max-width: 900px) { .chef-sep { display: none; } .chef-br { display: inline; } }
@media (max-width: 700px) { .chef-title { font-size: 7.4vw; line-height: 1; } }
.chef-tiles { display: grid; grid-template-columns: 8fr 4fr; gap: 16px; margin-top: 72px; align-items: start; }
.chef-photo { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.chef-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.chef-note { position: absolute; top: 0; right: 0; width: 320px; padding: 20px; background: var(--field); color: var(--field-ink); }
.map-tile { background: var(--green); aspect-ratio: 4 / 3; }
.map-tile svg { width: 100%; height: 100%; }
.map-area { fill: #2c5242; }
.map-dot { fill: var(--accent); }
.map-ring { fill: none; stroke: var(--accent); stroke-width: 2; transform-origin: 170px 130px; }
.map-tile text { fill: var(--ink); font-family: var(--f-text); font-size: 15px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; margin-top: 20px; }
.facts dt { color: var(--muted); font-size: var(--step-small); }
.facts dd { font-size: var(--step-body); line-height: 1.3; }

/* O convite: um cartão de resposta deitado na página */
.invite { position: relative; margin-top: var(--gap); background: var(--green); min-height: 80svh; padding: 96px var(--m) 0; display: grid; grid-template-columns: 4fr 1fr 7fr; overflow: hidden; }
.invite-text { grid-column: 1 / 3; align-self: end; margin-bottom: 64px; }
.invite-title { max-width: 9em; }
.invite-lead { margin-top: 24px; font-size: var(--step-lead); line-height: 1.2; max-width: 24ch; }
.card { grid-column: 3; justify-self: end; width: min(44vw, 640px); background: var(--ink); color: var(--field-ink); padding: 48px; margin-bottom: -28px; transform: rotate(2deg); transform-origin: 50% 100%; text-align: center; }
.card-title { font-size: var(--step-lead); line-height: 1.1; }
.occ { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 24px; }
.occ legend { width: 100%; margin-bottom: 10px; font-size: var(--step-small); color: var(--field-muted); }
.occ label { position: relative; }
.occ input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.occ span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: #e6dfd1; font-size: var(--step-small); font-weight: 500; transition: background-color 200ms ease, color 200ms ease, transform 140ms var(--ease-out); }
.occ input:checked + span { background: var(--field-ink); color: var(--ink); }
.occ input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.occ label:active span { transform: scale(0.96); }
.fields { display: grid; grid-template-columns: 0.8fr 1.2fr 1.2fr; gap: 12px; margin-top: 20px; text-align: left; }
.fields label { display: grid; gap: 4px; font-size: var(--step-small); color: var(--field-muted); }
.fields input { width: 100%; min-height: 46px; padding: 0 12px; border: 1px solid #b9b0a0; border-radius: 0; background: #faf7f0; color: var(--field-ink); font: inherit; font-size: 1rem; }
.check { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 16px; font-size: var(--step-small); }
.check input { width: 18px; height: 18px; accent-color: var(--field-ink); }
.card-preview { margin-top: 24px; font-size: var(--step-lead); line-height: 1.25; min-height: 3.75em; transition: opacity 180ms ease; }
.card-preview.is-changing { opacity: 0.35; }
.card-send { display: flex; width: 100%; margin-top: 20px; min-height: 56px; border-radius: 0; background: var(--field-ink); color: var(--ink); font-size: var(--step-body); }
@media (hover: hover) and (pointer: fine) { .card-send:hover { background: #3a342c; } }

/* Rodapé: o fim do dia na mesma fazenda */
.foot { position: relative; height: 100svh; min-height: 560px; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 32px var(--m) 0; margin-top: 60px; }
.foot-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 78%; filter: brightness(0.5); }
.foot-top { position: relative; display: flex; justify-content: space-between; gap: 32px; }
.foot-links, .foot-contact { display: grid; gap: 6px; align-content: start; }
.foot-contact { text-align: right; }
.foot-bottom { position: relative; }
.foot-name { font-size: var(--step-display); line-height: 0.8; letter-spacing: -0.035em; white-space: nowrap; margin: 0 0 -0.14em -0.04em; padding-bottom: 0.24em; }
.legal { margin: 18px 0 20px; font-size: var(--step-small); color: var(--ink); }

.wa-float { position: fixed; z-index: 20; right: var(--m); bottom: var(--m); opacity: 0; transform: translateY(140%); pointer-events: none; transition: opacity 300ms ease, transform 500ms var(--ease-out), background-color 200ms ease; }
.wa-float.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.wa-float { gap: 10px; min-height: 54px; padding: 0 22px 0 18px; font-size: var(--step-body); background: #25d366; color: #0b2e1a; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #25d366; z-index: -1; }
.wa-icon { flex: none; }
.card-send { gap: 12px; }
@media (hover: hover) and (pointer: fine) { .wa-float:hover { background: #3be07a; } }
@media (prefers-reduced-motion: no-preference) {
  .wa-float.is-shown::before { animation: wa-wave 1.4s var(--ease-out) infinite; }
  .wa-float.is-shown .wa-icon { animation: wa-beat 1.4s ease-in-out infinite; }
}
@keyframes wa-wave { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(1.45, 1.9); opacity: 0; } }
@keyframes wa-beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.28) rotate(-8deg); } 30% { transform: scale(1); } 45% { transform: scale(1.18) rotate(6deg); } 60% { transform: scale(1); } }

/* ---------- Movimento ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .shutter { clip-path: inset(0 0 100% 0); transition: clip-path 1200ms var(--ease-in-out); }
  .js .shutter img { transform: scale(1.12); transition: transform 1800ms var(--ease-soft); }
  .js .shutter.is-in { clip-path: inset(0); }
  .js .shutter.is-in img { transform: none; }
  .js .hp-2, .js .hp-2 img { transition-delay: 160ms; }
  .js .hp-3, .js .hp-3 img { transition-delay: 320ms; }

  .js [data-split] .ch { transform: translateY(105%); opacity: 0; transition: transform 900ms var(--ease-out), opacity 500ms ease; transition-delay: calc(var(--i) * 55ms + var(--base, 0ms)); }
  .js [data-split].is-in .ch { transform: none; opacity: 1; }
  .js .name { --base: 650ms; overflow: hidden; }
  .js .foot-name { overflow: hidden; }

  .js [data-rise] { opacity: 0; transform: translateY(28px); transition: opacity 700ms ease, transform 900ms var(--ease-out); transition-delay: var(--d, 0ms); }
  .js [data-rise].is-in { opacity: 1; transform: none; }
  .js .hero-line { --d: 1100ms; }
  .js .top { opacity: 0; transition: opacity 800ms ease 900ms; }
  .js .hero.is-ready .top { opacity: 1; }

  .js .panel[data-rise] { transform: translateY(60px); clip-path: inset(100% 0 0 0); transition: clip-path 1000ms var(--ease-in-out), transform 1000ms var(--ease-out), opacity 400ms ease, flex-grow 600ms var(--ease-in-out); transition-delay: var(--d, 0ms), var(--d, 0ms), var(--d, 0ms), 0ms; }
  .js .panel[data-rise].is-in { clip-path: inset(0); transform: none; }

  .js .verb { overflow: hidden; }
  .js .verb .ch { --base: 150ms; }
  .js .stage.is-in .verb .ch { transform: none; opacity: 1; }
  .js .stage-media { transform: scale(1.15); transition: transform 2200ms var(--ease-soft); }
  .js .stage.is-in .stage-media { transform: scale(1); }
  .js .verb-note { opacity: 0; transform: translateY(16px); transition: opacity 600ms ease 300ms, transform 800ms var(--ease-out) 300ms; }
  .js .stage.is-in .verb-note { opacity: 1; transform: none; }

  .js .card { transform: rotate(7deg) translateY(120px); opacity: 0; transition: transform 1300ms var(--ease-out), opacity 600ms ease; }
  .js .card.is-in { transform: rotate(2deg); opacity: 1; }

  .map-ring { animation: ring 2.4s var(--ease-out) infinite; }
}
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.08) translate(-1.5%, -1%); } }
@keyframes ring { from { transform: scale(1); opacity: 1; } to { transform: scale(3.2); opacity: 0; } }

/* ---------- Telas médias ---------- */
@media (max-width: 1100px) {
  .menu { grid-template-columns: 1fr; }
  .menu-head { position: static; }
  .chef-tiles { grid-template-columns: 1fr; }
  .chef-side { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
  .facts { margin-top: 0; }
  .invite { grid-template-columns: 1fr; padding-top: 96px; }
  .invite-text { grid-column: 1; margin-bottom: 40px; }
  .card { grid-column: 1; justify-self: center; width: min(90%, 640px); }
}

/* ---------- Celular: uma composição própria ---------- */
@media (max-width: 700px) {
  .hero { height: 100svh; }
  .hero-photos { grid-template-columns: 1fr; gap: 0; }
  .hp-1, .hp-3 { display: none; }
  .top-links a:not(:nth-child(2)) { display: none; }
  .hero-line { font-size: 1.125rem; max-width: 26ch; }
  .name { font-size: 23vw; margin-top: 6px; }
  .captions { flex-direction: column; gap: 12px; margin-top: 24px; }
  .panorama { aspect-ratio: 4 / 5; margin-top: 40px; }
  .occ-title { padding-left: var(--m); margin-bottom: 32px; }
  .band { flex-wrap: wrap; height: 92svh; }
  .panel, .band .panel.is-open { flex-grow: 0; height: 50%; }
  .panel:nth-child(1), .panel:nth-child(4) { flex-basis: 60%; }
  .panel:nth-child(2), .panel:nth-child(3) { flex-basis: 40%; }
  .panel figcaption { padding: 56px 14px 14px; }
  .panel-title { font-size: 1.125rem; white-space: normal; }
  .panel-dish { opacity: 1; transform: none; font-size: 0.8125rem; }
  .stage { height: 92svh; }
  .verb { font-size: 26vw; }
  .verb-note { left: 0; right: 0; top: 0; bottom: auto; max-width: none; padding: 20px var(--m); font-size: 1rem; }
  .courses { grid-template-columns: 1fr; gap: 40px; }
  .chef-side { grid-template-columns: 1fr; }
  .chef-photo { aspect-ratio: 4 / 3; overflow: visible; }
  .chef-photo img { aspect-ratio: 4 / 3; height: auto; }
  .chef-note { position: static; width: auto; padding: 16px 0 0; background: none; color: var(--ink); font-size: 1rem; }
  .invite { padding-top: 72px; min-height: 0; }
  .card { width: 100%; padding: 28px 20px; transform: rotate(1deg); }
  .js .card.is-in { transform: rotate(1deg); }
  .fields { grid-template-columns: 1fr 1fr; }
  .fields label:last-child { grid-column: 1 / -1; }
  .card-send { min-height: 52px; }
  .foot { height: 88svh; }
  .foot-top { flex-direction: column; gap: 16px; }
  .foot-contact { text-align: left; }
  .foot-name { font-size: 25vw; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .panel, .panel img, .panel-dish { transition: none; }
}
