/* ==========================================================================
   Brisa Suave — styles
   ========================================================================== */

:root {
  /* palette — taken from the labels and the beach artwork */
  --ink: #15120f;
  --ink-soft: #4a443d;
  --cream: #fbf7ee;
  --paper: #ffffff;
  --sand: #fbe2a8;
  --sand-deep: #f3cf86;
  --sky: #cdeff3;
  --sea: #2fc6b8;
  --sea-deep: #14897f;
  --mint: #a9e9d3;
  --coral: #ff9e9c;
  --coral-deep: #f47f7d;
  --gold: #b3924f;
  --line: rgba(21, 18, 15, 0.14);

  --serif: "DM Serif Display", "Playfair Display", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --script: "Homemade Apple", "Snell Roundhand", cursive;

  --header-h: 72px;
  --gutter: clamp(20px, 5vw, 72px);
  --radius: 18px;
  --shadow: 0 24px 60px -28px rgba(20, 60, 56, 0.35);
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
}

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; margin: 0; letter-spacing: 0.01em; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }

.tilde { font-family: var(--serif); margin-left: 0.02em; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 10px;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--sea-deep); outline-offset: 3px; border-radius: 4px; }

/* ==========================================================================
   Header / navigation
   ========================================================================== */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
  transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}
.site-header.is-solid {
  background: rgba(251, 247, 238, 0.94);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 1px 0 var(--line);
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.55rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.35s ease, transform 0.35s var(--ease);
}
/* on the home hero the big title is the wordmark — keep the small one out of the way */
body[data-route="home"] .site-header:not(.is-solid) .wordmark { opacity: 0; transform: translateY(-6px); pointer-events: none; }

.site-nav > ul { display: flex; gap: clamp(18px, 3vw, 40px); list-style: none; margin: 0; padding: 0; }
.site-nav a {
  font-family: var(--serif);
  font-size: 1.12rem;
  text-decoration: none;
  padding: 8px 2px;
  position: relative;
  display: inline-block;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }

.has-sub { position: relative; }
.has-sub > a { padding-right: 16px; }
.has-sub > a::before {
  content: ""; position: absolute; right: 0; top: 50%; width: 6px; height: 6px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
}
.sub {
  list-style: none; margin: 0; padding: 10px 8px;
  position: absolute; top: 100%; left: -18px; min-width: 190px;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-radius: 14px; box-shadow: var(--shadow), 0 0 0 1px var(--line);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s var(--ease), visibility 0.25s;
}
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: 7px 12px; font-size: 1.02rem; border-radius: 8px; }
.sub a::after { display: none; }
.sub a:hover, .sub a[aria-current="page"] { background: var(--mint); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  position: relative; z-index: 60; color: var(--ink);
}
.nav-toggle span {
  position: absolute; left: 10px; right: 10px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 26px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: 0; z-index: 55;
    background: linear-gradient(180deg, var(--sky) 0%, var(--cream) 45%, var(--sand) 100%);
    display: grid; place-items: center;
    opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; }
  .site-nav > ul { flex-direction: column; align-items: center; gap: 6px; text-align: center; }
  .site-nav a { font-size: 1.7rem; padding: 6px 4px; }
  .has-sub > a { padding-right: 4px; }
  .has-sub > a::before { display: none; }
  .sub {
    position: static; opacity: 1; visibility: visible; transform: none;
    background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
    padding: 2px 0 10px; min-width: 0;
  }
  .sub a { font-size: 1.15rem; padding: 3px 10px; color: var(--ink-soft); }
}

/* ==========================================================================
   Pages
   ========================================================================== */

.page { animation: pageIn 0.6s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.page-band {
  padding: calc(var(--header-h) + clamp(40px, 8vw, 90px)) var(--gutter) clamp(56px, 9vw, 110px);
  text-align: center;
  background:
    linear-gradient(180deg, #bfeaf1 0%, #dff5f3 38%, #a9e9d3 62%, #f7f3df 80%, var(--cream) 100%);
}
.page-band h1 { font-size: clamp(2.3rem, 6.2vw, 4.6rem); }
.eyebrow { font-family: var(--serif); font-size: 1.15rem; margin: 0 0 10px; color: var(--sea-deep); }

/* ---------- Home hero ---------- */

.hero {
  position: relative;
  height: 100vh; height: 100svh; min-height: 600px;
  overflow: hidden;
  background: linear-gradient(180deg, #8fdcee 0%, #d6f3f5 40%, #58d4c8 41%, #b7efe4 62%, #ffffff 66%, var(--sand) 74%);
}
#scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; }
.hero.is-hovering #scene { cursor: pointer; }
.hero.is-dragging #scene { cursor: grabbing; }

.hero-title {
  position: absolute; left: 0; right: 0; top: calc(var(--header-h) + 1.5vh);
  text-align: center; pointer-events: none;
}
.hero-title h1 {
  display: inline-flex; flex-direction: column; align-items: flex-start; text-align: left;
  font-size: clamp(3rem, min(10.5vw, 13vh), 8.4rem);
  line-height: 0.86;
  letter-spacing: -0.005em;
}
.logo-wave { font-style: normal; display: inline-block; font-size: 0.5em; margin-left: 0.05em; transform: translateY(0.3em); }
.script {
  font-family: var(--script);
  font-size: clamp(1.5rem, min(4.2vw, 5.8vh), 3.6rem);
  line-height: 1.2;
  margin: 0.3em 0 0 31vw;
  transform: rotate(-4deg);
  transition: opacity 0.25s ease, transform 0.4s var(--ease);
}
.script.is-swapping { opacity: 0; transform: rotate(-4deg) translateY(8px); }

.hero-labels a {
  position: absolute; left: 0; top: 0;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.6vw, 2.3rem);
  line-height: 1;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.16em;
  white-space: nowrap;
  will-change: transform;
  transition: color 0.25s ease, letter-spacing 0.35s var(--ease);
}
.hero-labels a:hover, .hero-labels a.is-active { color: var(--sea-deep); letter-spacing: 0.06em; }
/* before the 3D scene positions them (or without WebGL) */
.hero-labels:not(.is-placed) { position: absolute; left: 0; right: 0; bottom: 5vh; display: flex; justify-content: space-evenly; }
.hero-labels:not(.is-placed) a { position: static; }

/* static fallback when WebGL is unavailable */
.hero.no-webgl { background: url("assets/beach.jpg") center / cover; }
.hero.no-webgl #scene { display: none; }

/* ---------- Home sections ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; min-height: min(78vh, 720px); }
.split-text { padding: clamp(48px, 8vw, 110px) var(--gutter); align-self: center; max-width: 720px; justify-self: center; }
.split-text.center { text-align: center; }
.split-media { margin: 0; min-height: 320px; overflow: hidden; }
.split-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.split:hover .split-media img { transform: scale(1.04); }

.split--verde { background: linear-gradient(135deg, #46d6a6 0%, #3bcfae 100%); }
.split--verde h2 { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.4rem); margin-bottom: 0.7em; }
.split--verde p { font-family: var(--serif); font-size: 1.12rem; line-height: 1.5; }
.split--verde .accent { color: #fff; margin-top: 1.8em; margin-bottom: 0; }

.split--saude { background: var(--paper); }
.display { font-size: clamp(3.6rem, 9vw, 6.6rem); letter-spacing: 0.02em; }
.lead { font-size: clamp(1.2rem, 2.2vw, 1.65rem); max-width: 14em; margin: 0.5em auto 1em; line-height: 1.3; }

.icon-link {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid currentColor; transition: background 0.25s ease, color 0.25s ease, transform 0.35s var(--ease);
}
.icon-link:hover { background: var(--ink); color: var(--cream); transform: translateY(-2px); }

.moments { background: var(--sand); padding: clamp(36px, 6vw, 72px) var(--gutter); }
.moments-track {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px);
  max-width: 1180px; margin: 0 auto;
}
.moments-track img {
  width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform 0.5s var(--ease);
}
.moments-track img:nth-child(odd) { transform: translateY(8px) rotate(-1.2deg); }
.moments-track img:nth-child(even) { transform: translateY(-8px) rotate(1.2deg); }
.moments-track img:hover { transform: translateY(-8px) rotate(0) scale(1.03); }
@media (max-width: 820px) { .moments-track { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- About ---------- */

.about-intro {
  display: grid; grid-template-columns: 1fr minmax(280px, 1.1fr) 1fr; align-items: stretch;
  max-width: 1280px; margin: clamp(-60px, -5vw, -30px) auto 0; padding: 0 var(--gutter);
}
.about-intro > img { width: 100%; height: 100%; max-height: 520px; object-fit: cover; }
.about-intro > img:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.about-intro > img:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.about-intro-text {
  background: #fbf6e6; display: grid; align-content: center; justify-items: center; text-align: center;
  padding: clamp(36px, 5vw, 64px) clamp(22px, 3vw, 44px);
}
.about-intro-text h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); letter-spacing: 0.08em; color: var(--ink-soft); margin-bottom: 0.9em; }
.about-intro-text p { font-family: var(--serif); max-width: 22em; margin: 0; }

.story { max-width: 1180px; margin: 0 auto; padding: clamp(56px, 9vw, 120px) var(--gutter); display: grid; gap: clamp(56px, 9vw, 120px); }
.story-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 84px); align-items: center; }
.story-row.reverse figure { order: 2; }
.story-row figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3.3; }
.story-row figure img, .story-row figure video { width: 100%; height: 100%; object-fit: cover; display: block; }
.story-row figure.is-wide { aspect-ratio: 16 / 10; }

/* 750 mL into 1 L: the pour */
.pour { aspect-ratio: 480 / 396; background: var(--sky); }
.pour svg { width: 100%; height: 100%; display: block; }
.pv-cap { font-family: var(--serif); font-size: 19px; fill: var(--ink); }
.pv-frac { font-family: var(--serif); font-size: 30px; fill: var(--ink); }
.pv-blank, .pv-arm { transform-box: view-box; transform-origin: 0 0; }
.pv-blank { transform: translate(330px, 332px); }
.pv-arm { transform: translate(600px, 247px) rotate(-6deg); }
.pv-fingers { opacity: 0; }
.pv-stream { opacity: 0; }
.pv-blank-liq { transform-box: fill-box; transform-origin: 50% 0%; transform: scaleY(0); }
.pv-brisa-liq { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0.486); }
@media (prefers-reduced-motion: no-preference) {
  .pv-scene     { animation: pvScene 12s linear infinite; }
  .pv-blank     { animation: pvBlank 12s cubic-bezier(0.45, 0, 0.3, 1) infinite; }
  .pv-arm       { animation: pvArm 12s cubic-bezier(0.45, 0, 0.3, 1) infinite; }
  .pv-fingers   { animation: pvFingers 12s linear infinite; }
  .pv-blank-liq { animation: pvBlankLiq 12s linear infinite; }
  .pv-brisa-liq { animation: pvBrisaLiq 12s linear infinite; }
  .pv-stream    { animation: pvStream 12s linear infinite; }
  .pv-mark      { animation: pvMark 12s linear infinite; }
}
@keyframes pvScene { 0% { opacity: 0; } 3%, 96% { opacity: 1; } 100% { opacity: 0; } }
@keyframes pvBlank {
  0%, 12% { transform: translate(330px, 332px) rotate(0deg); }
  24%     { transform: translate(374px, 42px) rotate(-100deg); }
  68%     { transform: translate(376px, 38px) rotate(-108deg); }
  82%, 100% { transform: translate(330px, 332px) rotate(0deg); }
}
@keyframes pvArm {
  0%        { transform: translate(600px, 247px) rotate(-6deg); }
  9%, 12%   { transform: translate(322px, 236px) rotate(-6deg); }
  24%       { transform: translate(280px, 59px) rotate(16deg); }
  68%       { transform: translate(272px, 50px) rotate(14deg); }
  82%, 85%  { transform: translate(322px, 236px) rotate(-6deg); }
  94%, 100% { transform: translate(600px, 247px) rotate(-6deg); }
}
@keyframes pvFingers { 0%, 9% { opacity: 0; } 11%, 84% { opacity: 1; } 87%, 100% { opacity: 0; } }
@keyframes pvBlankLiq { 0%, 26% { transform: scaleY(1); } 66%, 100% { transform: scaleY(0); } }
@keyframes pvBrisaLiq { 0%, 27% { transform: scaleY(0); } 67%, 100% { transform: scaleY(0.486); } }
@keyframes pvStream { 0%, 25% { opacity: 0; } 27%, 65% { opacity: 1; } 67%, 100% { opacity: 0; } }
@keyframes pvMark { 0%, 70% { opacity: 0; } 76%, 100% { opacity: 1; } }
.story-row h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); margin-bottom: 0.7em; }
.story-row h2::after { content: ""; display: block; width: 54px; height: 3px; background: var(--sea); margin-top: 0.55em; border-radius: 3px; }
.story-row p { color: var(--ink-soft); margin: 0; }

/* ---------- Contact ---------- */

.contact { max-width: 1040px; margin: clamp(-60px, -5vw, -30px) auto 0; padding: 0 var(--gutter) clamp(64px, 10vw, 120px); display: grid; gap: 28px; }
.card { background: var(--paper); border-radius: var(--radius); padding: clamp(26px, 4.5vw, 52px); box-shadow: var(--shadow); }
.card h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 0.8em; }
.card p { font-family: var(--serif); font-size: 1.1rem; margin: 0 0 0.35em; text-align: center; }
.card p a { text-underline-offset: 0.18em; transition: color 0.2s ease; }
.card p a:hover { color: var(--sea-deep); }

.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.field { position: relative; }
.field label { position: absolute; left: 18px; top: 9px; font-size: 0.78rem; letter-spacing: 0.04em; color: var(--ink-soft); pointer-events: none; }
.field input {
  width: 100%; font: inherit; color: var(--ink);
  padding: 28px 18px 10px; border-radius: 12px;
  background: var(--mint); border: 1.5px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.field input:hover { background: #b8eedb; }
.field input:focus { outline: none; border-color: var(--sea-deep); background: #c6f2e3; box-shadow: 0 0 0 4px rgba(47, 198, 184, 0.22); }
.field input.is-invalid { border-color: var(--coral-deep); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.form-status { margin: 0; font-family: var(--sans) !important; font-size: 1.05rem !important; font-weight: 600; text-align: left !important; color: var(--sea-deep); min-height: 1.4em; }
.form-status.is-error { color: #c8423f; }

.btn {
  font: 600 1rem var(--sans); letter-spacing: 0.02em; color: var(--ink);
  border: 0; border-radius: 999px; padding: 14px 46px; cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.2s ease, box-shadow 0.3s ease;
}
.btn--coral { background: var(--coral); box-shadow: 0 10px 24px -12px rgba(244, 127, 125, 0.9); }
.btn--coral:hover { background: var(--coral-deep); transform: translateY(-2px); }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }

/* ---------- Where to find ---------- */

.map-wrap { max-width: 1280px; margin: clamp(-60px, -5vw, -30px) auto 0; padding: 0 var(--gutter) clamp(64px, 10vw, 120px); }
.map-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--mint); height: min(74vh, 760px); min-height: 460px; }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Playlist / record player ---------- */

.playlist { display: grid; justify-items: center; gap: clamp(28px, 5vw, 48px); margin-top: clamp(-60px, -5vw, -30px); padding: 0 var(--gutter) clamp(64px, 10vw, 120px); }

/* the whole beach: animated sea behind, two small tables on the sand */
.beach-scene {
  position: relative; width: min(100%, 1180px); aspect-ratio: 16 / 9;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  container-type: inline-size; isolation: isolate;
  background: url("assets/beach.jpg") center / cover;
}
.beach-scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.bs-table { position: absolute; bottom: 4%; }
.bs-table::after {                       /* soft shadow on the sand */
  content: ""; position: absolute; left: 4%; right: -6%; bottom: -1.2cqw; height: 3.4cqw; z-index: -1;
  background: radial-gradient(closest-side, rgba(120, 84, 30, 0.4), rgba(120, 84, 30, 0)); border-radius: 50%;
}

/* record-player table, seen from behind, looking out to sea */
.bs-table--deck { left: 6%; width: 54cqw; }
.bs-top {
  position: relative; display: grid; justify-items: center; padding: 3cqw 0 3.4cqw;
  border-radius: 1.6cqw;
  background:
    repeating-linear-gradient(92deg, rgba(150, 105, 50, 0.1) 0 0.5cqw, transparent 0.5cqw 2.2cqw),
    linear-gradient(180deg, #f0d7a8, #e3c084);
  box-shadow: 0 1.5cqw 0 #c39d60, 0 1.9cqw 0 #a98248;
  transform: perspective(95cqw) rotateX(54deg); transform-origin: 50% 100%;
}
.bs-legs { display: flex; justify-content: space-between; padding: 0 6cqw; height: 9cqw; margin-top: 0.9cqw; }
.bs-legs i { width: 1.7cqw; background: linear-gradient(90deg, #c39d60, #94703d); border-radius: 0 0 0.8cqw 0.8cqw; }
.bs-legs i:first-child { transform: skewX(5deg); }
.bs-legs i:last-child { transform: skewX(-5deg); }

/* side table: Brisa Suave Branco and glasses */
.bs-table--bar { right: 7%; width: 23cqw; display: grid; justify-items: center; }
.bs-items { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: center; gap: 0.3cqw; margin-bottom: -3.4cqw; }
.bs-bottle {
  height: 23cqw; width: auto; max-width: none; transform-origin: 50% 100%;
  filter: drop-shadow(0.5cqw 0.4cqw 0.5cqw rgba(60, 40, 10, 0.3));
  animation: bsSway 4.5s ease-in-out infinite alternate;
}
.bs-glass { width: 4.6cqw; height: 10cqw; overflow: visible; transform-origin: 50% 100%; filter: drop-shadow(0.3cqw 0.3cqw 0.4cqw rgba(60, 40, 10, 0.22)); }
.bs-glass--front { margin-left: -1.6cqw; transform: translateY(1.1cqw) scale(1.08); }
.bs-wine { transform-box: fill-box; transform-origin: 50% 0%; animation: bsWine 3.6s ease-in-out infinite alternate; }
.bs-round {
  width: 100%; height: 6.6cqw; border-radius: 50%;
  background: radial-gradient(ellipse at 40% 35%, #f6e2bb, #e3c084 70%);
  box-shadow: 0 1.1cqw 0 #c39d60, 0 1.5cqw 0 #a98248;
}
.bs-post { width: 1.8cqw; height: 8.4cqw; margin-top: 1cqw; background: linear-gradient(90deg, #c39d60, #94703d); }
.bs-foot { width: 10cqw; height: 2.2cqw; margin-top: -1.1cqw; border-radius: 50%; background: #a98248; }

@keyframes bsSway { from { transform: rotate(-1.1deg); } to { transform: rotate(1.1deg); } }
@keyframes bsWine { from { transform: rotate(-2.5deg) translateX(-2px); } to { transform: rotate(2.5deg) translateX(2px); } }
@keyframes bsGroove { 0%, 100% { transform: translateY(0) rotate(-1.6deg); } 50% { transform: translateY(-0.5cqw) rotate(1.6deg); } }
@keyframes bsClink { 0%, 100% { transform: rotate(-2deg); } 50% { transform: translateY(-0.3cqw) rotate(2deg); } }
/* when the music plays, the table joins in */
[data-playing="true"] .bs-bottle { animation: bsGroove 1.1s ease-in-out infinite; }
[data-playing="true"] .bs-glass:not(.bs-glass--front) { animation: bsClink 1.1s ease-in-out infinite; }
[data-playing="true"] .bs-glass:nth-of-type(2) { animation-delay: -0.55s; }
[data-playing="true"] .bs-wine { animation-duration: 0.9s; }

.turntable { --tt: 44cqw; width: var(--tt); }
.player-bar { display: flex; align-items: center; gap: 22px; }
.play-fab { width: 64px; flex: none; }
.tt-plinth {
  position: relative; width: 100%; aspect-ratio: 4 / 3;
  border-radius: calc(var(--tt) * 0.06);
  background: linear-gradient(155deg, #fffdf6 0%, #fbeecb 55%, var(--sand) 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.9),
    inset 0 -10px 0 rgba(179, 146, 79, 0.28),
    0 40px 70px -34px rgba(20, 60, 56, 0.55);
}
.tt-platter {
  position: absolute; left: 6.5%; top: 50%; width: 65%; aspect-ratio: 1; transform: translateY(-50%);
  border-radius: 50%; padding: 2.2%;
  background: radial-gradient(circle, #d5f4ea 0 60%, var(--mint) 61% 100%);
  box-shadow: inset 0 0 0 2px rgba(20, 137, 127, 0.25), 0 10px 22px -10px rgba(20, 60, 56, 0.5);
}
.tt-record {
  position: relative; width: 100%; height: 100%; border-radius: 50%;
  background:
    repeating-radial-gradient(circle, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 4px),
    radial-gradient(circle, #1d6f68 0%, #0f4f4a 55%, #0b3f3b 100%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
  animation: spin 1.8s linear infinite;
  animation-play-state: paused;
}
[data-playing="true"] .tt-record { animation-play-state: running; }
@keyframes spin { to { transform: rotate(360deg); } }

.tt-sheen {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 20deg, transparent 0 8%, rgba(255, 255, 255, 0.22) 12%, transparent 17% 50%, rgba(255, 255, 255, 0.16) 56%, transparent 62% 100%);
  /* counter-rotate so the highlight stays put while the record spins */
  animation: spin 1.8s linear infinite reverse; animation-play-state: paused;
}
[data-playing="true"] .tt-sheen { animation-play-state: running; }
.tt-label { position: absolute; inset: 31%; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5); background: var(--sand); }
.tt-label img { width: 100%; height: 100%; object-fit: cover; }
.tt-spindle { position: absolute; left: 50%; top: 50%; width: 4.5%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #c9c2ae); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); }

/* tonearm */
.tt-arm { position: absolute; right: 11%; top: 9%; width: 13%; aspect-ratio: 1; }
.tt-arm-base {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff, #e9dfc4 70%);
  box-shadow: 0 6px 12px -6px rgba(20, 60, 56, 0.6), inset 0 0 0 2px rgba(179, 146, 79, 0.35);
}
.tt-arm-rod {
  position: absolute; left: 50%; top: 50%; width: 9%; height: 300%;
  margin-left: -4.5%;
  background: linear-gradient(90deg, #f6b3b0, var(--coral) 45%, var(--coral-deep));
  border-radius: 99px;
  transform-origin: 50% 0; transform: rotate(-2deg);
  transition: transform 1.1s var(--ease);
  box-shadow: 4px 6px 8px -4px rgba(20, 60, 56, 0.45);
}
[data-playing="true"] .tt-arm-rod { transform: rotate(30deg); animation: armFloat 2.4s ease-in-out 1.1s infinite alternate; }
@keyframes armFloat { from { transform: rotate(30deg); } to { transform: rotate(31.2deg); } }
.tt-arm-weight { position: absolute; left: 50%; top: -14%; width: 330%; height: 15%; transform: translateX(-50%); border-radius: 6px; background: linear-gradient(90deg, #1d6f68, #0f4f4a); }
.tt-arm-head { position: absolute; left: 50%; bottom: -1%; width: 300%; height: 17%; transform: translateX(-50%) rotate(14deg); border-radius: 5px; background: linear-gradient(180deg, #1d6f68, #0f4f4a); box-shadow: 0 3px 5px rgba(0, 0, 0, 0.3); }

.tt-controls { position: absolute; right: 7%; bottom: 8%; display: flex; align-items: center; gap: 14px; }
.tt-light { width: 9px; height: 9px; border-radius: 50%; background: #d9cfb2; transition: background 0.3s ease, box-shadow 0.3s ease; }
[data-playing="true"] .tt-light { background: var(--sea); box-shadow: 0 0 0 4px rgba(47, 198, 184, 0.25), 0 0 14px var(--sea); }
.tt-play {
  width: calc(var(--tt) * 0.125); aspect-ratio: 1; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; color: var(--ink);
  background: radial-gradient(circle at 35% 28%, #ffc4c2, var(--coral) 60%, var(--coral-deep));
  box-shadow: 0 8px 0 -2px #d86a68, 0 16px 22px -10px rgba(20, 60, 56, 0.6);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.tt-play:hover { transform: translateY(-1px); }
.tt-play:active, [data-playing="true"] .tt-play { transform: translateY(4px); box-shadow: 0 3px 0 -2px #d86a68, 0 8px 14px -8px rgba(20, 60, 56, 0.6); }
.tt-play svg { width: 44%; height: 44%; }
.tt-play .i-pause { display: none; }
[data-playing="true"] .tt-play .i-play { display: none; }
[data-playing="true"] .tt-play .i-pause { display: block; }

.tt-eq { display: flex; align-items: flex-end; gap: 6px; height: 34px; }
.tt-eq i { width: 6px; height: 100%; border-radius: 4px; background: var(--sea); transform-origin: bottom; transform: scaleY(0.12); transition: transform 0.4s ease; }
.tt-eq i:nth-child(even) { background: var(--coral); }
.tt-eq i:nth-child(3n) { background: var(--sand-deep); }
[data-playing="true"] .tt-eq i { animation: eq 0.9s ease-in-out infinite alternate; }
.tt-eq i:nth-child(1) { animation-delay: -0.2s; } .tt-eq i:nth-child(2) { animation-delay: -0.6s; }
.tt-eq i:nth-child(3) { animation-delay: -0.1s; } .tt-eq i:nth-child(4) { animation-delay: -0.75s; }
.tt-eq i:nth-child(5) { animation-delay: -0.35s; } .tt-eq i:nth-child(6) { animation-delay: -0.5s; }
.tt-eq i:nth-child(7) { animation-delay: -0.05s; }
@keyframes eq { 0% { transform: scaleY(0.18); } 50% { transform: scaleY(1); } 100% { transform: scaleY(0.4); } }

.player-embed { width: min(100%, 640px); min-height: 152px; border-radius: 14px; overflow: hidden; }
.player-embed iframe { display: block; width: 100%; border: 0; border-radius: 14px; }

/* ---------- Wine pages ---------- */

.wine { --tint: var(--sky); --tint-2: var(--cream); --accent: var(--gold); background: linear-gradient(180deg, var(--tint) 0%, var(--tint-2) 62%, var(--cream) 100%); }
.wine--branco { --tint: #dfe6b4; --tint-2: #fbf3c4; }
.wine--rose   { --tint: #f6cfc6; --tint-2: #fbe6df; }
.wine--petnat { --tint: #bfe9e2; --tint-2: #fbf0c4; }

.wine-grid {
  max-width: 1240px; margin: 0 auto; min-height: 100vh; min-height: 100svh;
  padding: calc(var(--header-h) + clamp(20px, 4vw, 48px)) var(--gutter) clamp(40px, 6vw, 72px);
  display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(28px, 6vw, 84px); align-items: center;
}
.wine-stage { position: relative; display: grid; place-items: center; min-height: min(72vh, 680px); }
.wine-art {
  position: absolute; inset: 6% 8%; width: 84%; height: 88%; object-fit: cover;
  border-radius: 999px 999px var(--radius) var(--radius); box-shadow: var(--shadow); opacity: 0.95;
}
.wine-art--cover { object-position: 88% center; }
.wine-bottle {
  position: relative; height: min(70vh, 660px); width: auto; max-width: none;
  filter: drop-shadow(0 30px 26px rgba(20, 40, 38, 0.35));
  animation: bottleIn 0.9s var(--ease) both 0.1s;
  transition: transform 0.6s var(--ease);
}
.wine-stage:hover .wine-bottle { transform: translateY(-8px) rotate(-2deg); }
@keyframes bottleIn { from { opacity: 0; transform: translateY(40px) rotate(4deg); } to { opacity: 1; transform: none; } }

.wine-info { background: rgba(255, 253, 246, 0.9); border-radius: var(--radius); padding: clamp(28px, 4.5vw, 60px); box-shadow: var(--shadow); }
.wine-info h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); color: var(--accent); letter-spacing: 0.03em; text-align: center; }
.tagline { text-align: center; font-family: var(--serif); letter-spacing: 0.2em; font-size: 0.92rem; color: var(--ink-soft); margin: 0.9em 0 2em; }
.specs { margin: 0; }
.specs > div { padding: 15px 0; border-top: 1px solid var(--line); font-family: var(--serif); font-size: 1.08rem; line-height: 1.45; }
.specs > div:last-child { padding-bottom: 0; }
.specs dt { display: inline; margin-right: 0.3em; }
.specs dd { display: inline; margin: 0; }

.wine-photos { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter) clamp(64px, 10vw, 120px); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 2vw, 24px); }
.wine-photos img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.wine-photos img:nth-child(2) { margin-top: clamp(16px, 4vw, 48px); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--cream); border-top: 1px solid var(--line);
  padding: clamp(32px, 5vw, 56px) var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 36px;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer nav a { font-family: var(--serif); text-decoration: none; text-underline-offset: 0.2em; }
.site-footer nav a:hover { text-decoration: underline; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 820px) {
  body { font-size: 16px; }
  .split { grid-template-columns: 1fr; min-height: 0; }
  .split--saude .split-media { order: -1; }
  .split-media { max-height: 60vh; }
  .about-intro { grid-template-columns: 1fr 1fr; }
  .about-intro-text { grid-column: 1 / -1; order: -1; border-radius: var(--radius) var(--radius) 0 0; }
  .about-intro > img { max-height: 300px; }
  .about-intro > img:first-child { border-radius: 0 0 0 var(--radius); }
  .about-intro > img:last-child { border-radius: 0 0 var(--radius) 0; }
  .story-row, .story-row.reverse { grid-template-columns: 1fr; }
  .story-row.reverse figure { order: 0; }
  .contact-form { grid-template-columns: 1fr; }
  .form-foot { flex-direction: column-reverse; align-items: stretch; }
  .wine-grid { grid-template-columns: 1fr; }
  .wine-stage { min-height: 56vh; }
  .wine-bottle { height: min(54vh, 520px); }
  .script { margin: 0.2em 0 0 30vw; }
  .site-footer { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .page, .wine-bottle { animation: none; }
  .tt-arm-rod { transition: none; }
  [data-playing="true"] .tt-arm-rod { animation: none; }
  .tt-record, .tt-sheen { animation-duration: 6s; }
}

@media (max-width: 700px) {
  .beach-scene { aspect-ratio: 4 / 5; }
  .bs-table--deck { left: 3%; width: 68cqw; }
  .turntable { --tt: 56cqw; }
  .bs-top { transform: perspective(120cqw) rotateX(50deg); }
  .bs-legs { height: 16cqw; }
  .bs-table--bar { right: 2%; width: 27cqw; }
  .bs-bottle { height: 30cqw; }
  .bs-glass { width: 5.6cqw; height: 12cqw; }
  .bs-post { height: 13cqw; }
}

@media (prefers-reduced-motion: reduce) {
  .bs-bottle, .bs-glass, .bs-wine { animation: none !important; }
}
