/* =====================================================================
   VALORA SUISSE · Loading page de lançamento
   Mobile-first (360–430px) → desktop a partir de 900px
   ===================================================================== */

/* ---------- Fontes (no próprio site, subset latin, variáveis) ---------- */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../assets/fonts/cormorant-garamond-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url('../assets/fonts/cormorant-garamond-italic-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/montserrat-latin.woff2') format('woff2');
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: only light;

  /* paleta oficial */
  --verde: #032D1F;
  --musgo: #384937;
  --ouro: #CFA35C;
  --marfim: #F6EEE1;
  --grafite: #201F1D;

  /* derivados funcionais (medidos) */
  --musgo-claro: #5E6A5C;          /* opção não escolhida: 4,9:1 sobre Marfim */
  --marfim-72: rgba(246, 238, 225, .72);
  --linha: rgba(56, 73, 55, .22);
  --erro: #8A3324;                  /* 6,9:1 sobre Marfim */

  --serif: 'Cormorant Garamond', 'Cormorant', Garamond, 'Times New Roman', serif;
  --sans: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --gutter: clamp(20px, 5.6vw, 72px);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-soft: cubic-bezier(.33, 1, .68, 1);

  --papel: url('../assets/papel-verde.webp');
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--verde);
}
body {
  margin: 0;
  background: var(--marfim);
  color: var(--grafite);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
h1, h2, h3, p, figure, fieldset { margin: 0; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--verde); outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -.01em;
  color: var(--verde);
  text-wrap: balance;
}

/* ---------- Botões e links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .02em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: transform .16s var(--ease-soft), background-color .25s, border-color .25s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--verde); color: var(--marfim); }
.btn-ghost { background: transparent; color: var(--verde); border-color: rgba(3, 45, 31, .5); }
.btn-block { width: 100%; }
@media (hover: hover) {
  .btn-primary:hover { background: #0B3D2B; }
  .btn-ghost:hover { border-color: var(--verde); }
}
.link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--verde);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  cursor: pointer;
}
.link:active { transform: scale(.97); }
.link--muted { color: var(--musgo); font-size: 13.5px; }

/* ---------- Logo (lockup empilhado, como no estojo) ---------- */
.brand {
  display: grid;
  justify-items: center;
  text-decoration: none;
  color: var(--verde);
  line-height: 1;
  transition: transform .16s var(--ease-soft), opacity .16s;
}
.brand:active { transform: scale(.97); opacity: .75; }
.brand--hero:active { transform: translateX(-50%) scale(.97); }
.brand-star { width: 13px; height: 13px; margin-bottom: 7px; color: var(--ouro); }
.brand-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 25px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding-left: .1em;
}
.brand-sub {
  margin-top: 6px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 8.5px;
  letter-spacing: .52em;
  text-transform: uppercase;
  padding-left: .52em;
}

/* =====================================================================
   ABERTURA · o lacre
   ===================================================================== */
.intro { display: none; }
.js.intro-on:not(.intro-free), .js.intro-on:not(.intro-free) body { overflow: hidden; }
.js.intro-on .intro {
  --seal: min(46vw, 210px);
  --tip: 44vh;
  display: block;
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow: hidden;
  touch-action: none;
  overscroll-behavior: contain;
  cursor: pointer;
  /* rede de segurança: se o JS travar no meio, o envelope some sozinho */
  animation: intro-failsafe .5s 9s forwards;
}
.js.intro-on .intro.is-live { animation: none; }
@keyframes intro-failsafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }

.env { position: absolute; inset: 0; }
.env-body {
  position: absolute;
  inset: 0;
  background: var(--papel) 0 0 / 160px 160px, var(--verde);
}
.env-art {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.env-folds { fill: none; stroke: rgba(0, 0, 0, .3); stroke-width: 1px; vector-effect: non-scaling-stroke; }
.env-flap-shadow { fill: rgba(0, 0, 0, .5); }

.env-flap {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: var(--tip);
  transform-origin: 50% 0;
}
.flap-art {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.flap-edge { fill: none; stroke: rgba(255, 255, 255, .09); stroke-width: 1px; vector-effect: non-scaling-stroke; }
.flap-dark { fill: #000; opacity: 0; }

/* o lacre: a imagem tem 40px de margem (sombra) em cada lado de um lacre de 600px */
.seal-piece, .seal-whole {
  position: absolute;
  width: calc(var(--seal) * 680 / 600);
  max-width: none;
  height: auto;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}
.seal-piece {
  left: calc(50% - var(--seal) * 340 / 600);
  top: calc(var(--tip) - var(--seal) * 340 / 600);
  visibility: hidden;
}
.intro.is-breaking .seal-piece { visibility: visible; }
.intro.is-breaking .seal-whole, .intro.is-breaking .seal-crack { visibility: hidden; }

.seal {
  position: absolute;
  left: 50%;
  top: var(--tip);
  width: var(--seal);
  height: var(--seal);
  margin: calc(var(--seal) / -2) 0 0 calc(var(--seal) / -2);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
}
.seal:focus-visible { outline: 2px solid var(--ouro); outline-offset: 12px; }
.seal-whole { left: calc(var(--seal) * -40 / 600); top: calc(var(--seal) * -40 / 600); }
.seal-crack {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.seal-crack path {
  fill: none;
  stroke: rgba(78, 52, 16, .72);
  stroke-width: 1.2;
  stroke-linejoin: round;
  stroke-linecap: round;
  opacity: 0;
}
.seal-label {
  margin-top: 26px;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--marfim-72);
  opacity: 0;
}
.intro-copy {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--tip) + var(--seal) / 2 + 24px);
  padding: 0 var(--gutter);
  text-align: center;
  pointer-events: none;
}
.intro-line {
  font-family: var(--serif);
  font-style: italic;
  font-size: 25px;
  line-height: 1.25;
  color: var(--ouro);
  opacity: 0;
}
.intro.is-ready .intro-line { animation: fade-in .7s .4s var(--ease-soft) both; }
.intro.is-ready .seal-label { animation: fade-in .7s 1.4s var(--ease-soft) both; }
[data-intro="short"] .intro-line, [data-intro="short"] .seal-label { display: none; }
.intro.is-opening { cursor: default; }
.intro.is-opening .intro-line, .intro.is-opening .seal-label { animation: none; transition: opacity .2s; opacity: 0; }
.intro.is-releasing { pointer-events: none; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* =====================================================================
   HERO
   ===================================================================== */
.hero { position: relative; }
.hero-media {
  height: clamp(250px, 44vh, 540px);
  height: clamp(250px, 44svh, 540px);
  overflow: hidden;
  background: #F2EDE5;
}
.hero-media picture { height: 100%; }
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}
.brand--hero {
  position: absolute;
  z-index: 2;
  top: calc(var(--safe-t) + 16px);
  left: 50%;
  transform: translateX(-50%);
}
.hero-copy { padding: 24px var(--gutter) 28px; }
.hero h1 {
  font-size: clamp(40px, 12vw, 84px);
  line-height: .98;
}
.hero-sub {
  margin-top: 8px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 6.2vw, 30px);
  line-height: 1.2;
  color: var(--musgo);
}
.hero-date {
  margin-top: 14px;
  max-width: 30em;
  font-size: 14px;
  line-height: 1.55;
}
.hero-date time { font-weight: 700; color: var(--verde); white-space: nowrap; }
.hero-cta { width: 100%; margin-top: 20px; }

/* =====================================================================
   CONTAGEM
   ===================================================================== */
.countdown {
  margin: 0 var(--gutter);
  padding: 30px 0 8px;
  border-top: 1px solid var(--linha);
}
.cd-title {
  font-style: italic;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--musgo);
}
.cd-grid { display: flex; gap: clamp(28px, 9vw, 64px); margin-top: 12px; }
.cd-unit { display: grid; gap: 4px; min-width: 2ch; }
.cd-num {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 10.4vw, 60px);
  line-height: 1;
  color: var(--verde);
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: 'lnum' 1, 'tnum' 1;
}
.cd-num.tick { animation: fade-in .6s var(--ease-soft); }
.cd-label {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  line-height: 1;
  color: var(--musgo);
}
.no-js .countdown { display: none; }
.cd-open {
  margin-top: 12px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 26px;
  line-height: 1.25;
  color: var(--verde);
}
.cd-open a { display: inline-flex; min-height: 44px; align-items: center; font-family: var(--sans); font-style: normal; font-size: 15px; font-weight: 600; transition: transform .16s var(--ease-soft); }
.cd-open a:active { transform: scale(.97); }

/* =====================================================================
   ESCOLHA SUA PEDRA
   ===================================================================== */
.stones { padding: 64px var(--gutter) 72px; }
.stone-pick { min-width: 0; padding: 0; border: 0; }
.stone-legend {
  padding: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--musgo);
}
.stone-options { display: flex; flex-wrap: wrap; column-gap: 26px; margin-top: 6px; }
.stone-opt {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 60px;
  cursor: pointer;
  transition: transform .16s var(--ease-soft);
}
.stone-opt:active { transform: scale(.97); }
.stone-opt input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.stone-opt span {
  padding-bottom: 5px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(36px, 10.4vw, 56px);
  line-height: 1;
  color: var(--musgo-claro);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: color .4s var(--ease-soft), background-size .6s var(--ease-out);
}
.stone-opt input:checked + span { color: var(--verde); background-size: 100% 1px; }
.stone-opt input:focus-visible + span { outline: 2px solid var(--verde); outline-offset: 5px; }

.stone-texts { display: grid; margin-top: 18px; }
.stone-text {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease-soft), visibility 0s .3s;
}
.stones[data-active="zirconia"] .stone-text[data-stone="zirconia"],
.stones[data-active="moissanite"] .stone-text[data-stone="moissanite"] {
  opacity: 1;
  visibility: visible;
  transition: opacity .45s .12s var(--ease-soft), visibility 0s;
}
.stone-desc {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(24px, 6.6vw, 34px);
  line-height: 1.22;
  color: var(--grafite);
  text-wrap: pretty;
}
.stone-fact { margin-top: 10px; font-size: 13px; color: var(--musgo); text-wrap: pretty; }

.stone-stage {
  position: relative;
  margin-top: 22px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--marfim);
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}
.stone-stage.is-dragging { cursor: grabbing; }
.stone-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  visibility: hidden;
  background: var(--marfim);
}
.stone-layer picture, .stone-layer img { width: 100%; height: 100%; }
.stone-layer img { object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.stone-layer.is-current { visibility: visible; z-index: 1; }
.stone-layer.is-incoming { visibility: visible; z-index: 2; }
.stone-edge {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  width: 1px;
  background: var(--ouro);
  opacity: 0;
  pointer-events: none;
}
/* sem JS: a foto e o texto seguem o botão escolhido (:has) */
.no-js .stone-layer[data-stone="zirconia"] { visibility: visible; }
.no-js .stones:has(input[value="moissanite"]:checked) .stone-layer[data-stone="moissanite"] { visibility: visible; z-index: 2; }
.no-js .stones:has(input[value="moissanite"]:checked) .stone-text[data-stone="zirconia"] { opacity: 0; visibility: hidden; }
.no-js .stones:has(input[value="moissanite"]:checked) .stone-text[data-stone="moissanite"] { opacity: 1; visibility: visible; }

.stone-caption { margin-top: 12px; font-size: 12.5px; color: var(--musgo); }
.stone-note { margin-top: 20px; max-width: 30em; font-size: 14px; line-height: 1.55; text-wrap: pretty; }
.stones-cta { width: 100%; margin-top: 24px; }

/* =====================================================================
   LISTA DE CONVIDADOS
   ===================================================================== */
.waitlist { padding: 8px var(--gutter) 80px; scroll-margin-top: 12px; }
.invite {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  padding: 40px 24px 32px;
  border: 1px solid rgba(56, 73, 55, .3);
  box-shadow: inset 0 0 0 7px var(--marfim), inset 0 0 0 8px rgba(207, 163, 92, .65);
}
.invite h2 { font-size: clamp(34px, 9.4vw, 52px); line-height: 1.02; }
.wl-text { margin-top: 12px; }
#wl-form { margin-top: 18px; }
.field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--musgo);
}
.field-input {
  display: block;
  width: 100%;
  height: 56px;
  margin-top: 2px;
  padding: 0 2px;
  border: 0;
  border-bottom: 1px solid rgba(56, 73, 55, .6);
  border-radius: 0;
  background: transparent;
  font-family: var(--sans);
  font-size: max(19px, 1rem);
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--grafite);
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .25s, box-shadow .25s;
}
.field-input::placeholder { color: var(--musgo-claro); opacity: 1; }
.field-input:focus { outline: none; border-bottom-color: var(--verde); box-shadow: 0 1px 0 0 var(--verde); }
.field-input[aria-invalid="true"] { border-bottom-color: var(--erro); box-shadow: 0 1px 0 0 var(--erro); }
.field-input[aria-invalid="true"]:focus { box-shadow: 0 2px 0 0 var(--erro); outline: 2px solid var(--erro); outline-offset: 4px; }
.field-error { margin-top: 8px; font-size: 13.5px; font-weight: 500; color: var(--erro); }
.field-error a { color: inherit; }
.wl-switch { margin-top: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { margin-top: 10px; font-size: 13px; line-height: 1.55; color: var(--grafite); }
.consent a { display: inline-block; margin: -12px 0; padding: 12px 0; color: var(--verde); text-underline-offset: 3px; }
.consent a:active, .field-error a:active { opacity: .7; }
.wl-nojs { margin-top: 12px; }
.js .wl-nojs { display: none; }
#wl-submit { margin-top: 18px; }
.btn.is-loading { pointer-events: none; opacity: .88; }
.btn.is-loading .btn-label::after {
  content: '';
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-left: 10px;
  vertical-align: 1px;
  background: currentColor;
  -webkit-clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  animation: spin 1.1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* confirmação: o lacre é carimbado no convite */
.invite-done { text-align: center; }
.done-seal { position: relative; width: 124px; height: 124px; margin: 0 auto 22px; }
.done-seal img { position: relative; width: 100%; height: 100%; }
.done-ripple {
  position: absolute;
  inset: 10%;
  border: 1px solid var(--ouro);
  border-radius: 50%;
  opacity: 0;
}
.invite-done.is-new .done-seal img { animation: stamp .72s cubic-bezier(.3, .7, .3, 1) both; }
.invite-done.is-new .done-ripple { animation: ripple 1.1s .4s var(--ease-out) both; }
.invite-done.is-new h3,
.invite-done.is-new .done-text,
.invite-done.is-new #done-fix,
.invite-done.is-new .done-actions,
.invite-done.is-new .done-bye { animation: rise .8s var(--ease-out) both; }
.invite-done.is-new h3 { animation-delay: .5s; }
.invite-done.is-new .done-text { animation-delay: .6s; }
.invite-done.is-new #done-fix { animation-delay: .66s; }
.invite-done.is-new .done-actions { animation-delay: .74s; }
.invite-done.is-new .done-bye { animation-delay: .84s; }
.invite.is-stamped { animation: impact .5s .34s var(--ease-out); }
@keyframes stamp {
  0% { opacity: 0; transform: scale(1.9) rotate(-10deg); }
  55% { opacity: 1; transform: scale(.97) rotate(1deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes ripple { 0% { opacity: .8; transform: scale(.95); } 100% { opacity: 0; transform: scale(1.9); } }
@keyframes impact { 25% { transform: translateY(2px); } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.invite-done h3 { font-size: clamp(32px, 8.6vw, 46px); line-height: 1.05; }
.done-text { margin: 12px auto 0; max-width: 24em; }
.done-text strong { font-weight: 600; overflow-wrap: anywhere; }
.done-text strong.is-phone { white-space: nowrap; }
.done-actions { display: grid; justify-items: center; gap: 10px; margin-top: 18px; }
.done-actions .btn { width: 100%; }
.done-bye {
  margin-top: 18px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--musgo);
}

/* =====================================================================
   GALERIA
   ===================================================================== */
.gallery { padding: 24px var(--gutter) 96px; }
.piece + .piece { margin-top: 88px; }
.piece--1 { width: 100%; }
.piece--2 { width: 78%; margin-left: auto; }
.piece--3 { width: 56%; margin-left: 8%; }
.piece img { width: 100%; }
.js .piece img, .js .stone-layer img { transition: opacity .8s var(--ease-soft); }
.js img.is-pending { opacity: 0; }
.piece figcaption { display: grid; gap: 2px; margin-top: 10px; }
.piece figcaption b { font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.piece figcaption span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  line-height: 1.25;
  color: var(--musgo);
}

/* =====================================================================
   RODAPÉ
   ===================================================================== */
.footer {
  display: grid;
  justify-items: center;
  padding: 76px var(--gutter) calc(40px + var(--safe-b));
  text-align: center;
  background: var(--papel) 0 0 / 160px 160px, var(--verde);
  color: var(--marfim);
}
.brand--footer { color: var(--marfim); }
.brand--footer .brand-star { color: var(--ouro); }
.tagline { display: grid; gap: 6px; margin-top: 28px; }
.tagline-fr {
  font-family: var(--serif);
  font-style: italic;
  font-size: 26px;
  line-height: 1.2;
}
.tagline-pt { font-size: 13px; color: var(--marfim-72); }
.ig {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin-top: 22px;
  padding: 0 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--ouro);
  text-decoration: none;
}
.ig { transition: transform .16s var(--ease-soft), opacity .16s; }
.ig:active { transform: scale(.97); opacity: .75; }
.ig svg { width: 20px; height: 20px; }
.footer :focus-visible { outline-color: var(--ouro); }
.legal { margin-top: 18px; font-size: 12px; color: var(--marfim-72); }
.legal a { display: inline-block; padding: 13px 0; color: inherit; text-underline-offset: 3px; }
.legal a:active { opacity: .7; }

/* =====================================================================
   DESKTOP
   ===================================================================== */
@media (min-width: 900px) {
  /* margem esquerda comum a todas as seções (conteúdo com no máximo 1240px) */
  :root { --edge: max(var(--gutter), calc(50vw - 620px + var(--gutter))); }
  body { font-size: 16px; }
  .brand-name { font-size: 28px; }

  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 100vh;
    min-height: 100svh;
  }
  .hero-media { grid-column: 2; grid-row: 1; height: auto; max-height: none; }
  .hero-media img { object-position: 42% 46%; }
  .brand--hero { left: var(--edge); top: 40px; transform: none; justify-items: start; }
  .brand--hero:active { transform: scale(.97); }
  .brand--hero .brand-name, .brand--hero .brand-sub { padding-left: 0; }
  .hero-copy { grid-column: 1; grid-row: 1; align-self: center; padding: 150px var(--gutter) 80px var(--edge); }
  .hero h1 { font-size: clamp(56px, 6.8vw, 84px); }
  .hero-cta { width: auto; min-width: 260px; }

  .countdown { max-width: 1240px; margin: 0 auto; padding: 44px var(--gutter) 8px; border-top: 0; }
  .countdown::before { content: ''; display: block; height: 1px; margin-bottom: 44px; background: var(--linha); }

  .stones {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "pick stage" "texts stage" "caption stage" "note stage" "cta stage";
    grid-template-rows: auto auto auto auto 1fr;
    column-gap: clamp(48px, 7vw, 120px);
    max-width: 1240px;
    margin: 0 auto;
    padding-top: 120px;
    padding-bottom: 120px;
  }
  .stone-pick { grid-area: pick; }
  .stone-texts { grid-area: texts; }
  .stone-stage { grid-area: stage; margin-top: 0; }
  .stone-caption { grid-area: caption; margin-top: 18px; }
  .stone-note { grid-area: note; }
  .stones-cta { grid-area: cta; align-self: start; width: auto; justify-self: start; }

  .waitlist { padding-bottom: 120px; }
  .invite { padding: 56px 52px 44px; }
  .done-actions { grid-auto-flow: column; justify-content: center; }
  .done-actions .btn { width: auto; }

  .gallery {
    display: grid;
    grid-template-columns: 34fr 28fr 22fr;
    column-gap: 5vw;
    align-items: start;
    max-width: 1240px;
    margin: 0 auto;
    padding-top: 80px;
  }
  .piece, .piece + .piece { width: auto; margin: 0; }
  .gallery .piece--2 { margin-top: 140px; }
  .gallery .piece--3 { margin-top: 60px; }
}

/* =====================================================================
   CELULAR DEITADO (pouca altura, largura de celular)
   ===================================================================== */
@media (orientation: landscape) and (max-height: 500px) {
  .hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero-media { grid-column: 2; grid-row: 1; height: 100vh; height: 100svh; max-height: none; min-height: 0; }
  .hero-media img { object-position: 42% 46%; }
  .brand--hero { left: var(--gutter); top: 16px; transform: none; justify-items: start; }
  .brand--hero:active { transform: scale(.97); }
  .brand--hero .brand-name, .brand--hero .brand-sub { padding-left: 0; }
  .hero-copy { grid-column: 1; grid-row: 1; align-self: end; padding: 96px var(--gutter) 22px; }
  .hero h1 { font-size: 38px; }
  .hero-sub { font-size: 21px; }
  .stone-stage { max-width: 70svh; margin-left: auto; margin-right: auto; }
  .piece--1 { max-width: 88svh; }
  .piece--2 { max-width: 70svh; }
  .piece--3 { max-width: 52svh; }
}

/* =====================================================================
   MOVIMENTO REDUZIDO
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  /* a rede de segurança do envelope continua esperando os 9 s (só não anima) */
  .js.intro-on .intro:not(.is-live) { animation-delay: 9s !important; }
}
