/* Vellie — landing page (noir) */

:root {
  --noir: #0a0908;
  --espresso: #15120f;
  --cream: #f4efe8;
  --cream-2: rgba(244, 239, 232, 0.66);
  --cream-3: rgba(244, 239, 232, 0.42);
  --champagne: #e2c89a;
  --blush: #f08ba2;
  --bone: #ece5da;

  --font-display: "Cormorant Garamond", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", "Noto Serif KR", "Songti SC", "Noto Serif SC", Georgia, serif;
  --font-ui: "Figtree", system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Apple SD Gothic Neo", "PingFang SC", sans-serif;
  --font-hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;

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

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

html {
  background: var(--noir);
  color: var(--cream);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
::selection { background: rgba(226, 200, 154, 0.35); color: var(--cream); }

:focus-visible {
  outline: 2px solid var(--champagne);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- tipografia ---------- */
.display {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(52px, 7.6vw, 112px);
  line-height: 0.9;
  letter-spacing: -0.025em;
  color: var(--cream);
  text-wrap: balance;
}
.display span { display: block; }
.display span + span {
  /* espaço para as "pernas" das letras (g, p) não serem cortadas pelo gradiente */
  padding: 0 0.08em 0.16em 0;
  margin-bottom: -0.16em;
  color: transparent;
  background: linear-gradient(95deg, #f4efe8 0%, #ead7b4 60%, #e2c89a 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.display i {
  font-style: normal;
  color: var(--champagne);
  -webkit-text-fill-color: var(--champagne);
}
:lang(ja) .display,
:lang(ko) .display,
:lang(zh) .display {
  font-style: normal;
  font-weight: 600;
  font-size: clamp(30px, 5.6vw, 84px);
  line-height: 1.16;
  letter-spacing: 0;
}
/* quebrar linhas entre palavras/frases e não a meio */
:lang(ja) .display { word-break: auto-phrase; }
:lang(ko) .display,
:lang(ko) .lede,
:lang(ko) .body { word-break: keep-all; }

.lede,
.body {
  margin: 0;
  max-width: 34em;
  color: var(--cream-2);
}
.lede { font-size: clamp(17px, 1.5vw, 20px); }

.hand {
  font-family: var(--font-hand);
  font-weight: 600;
  color: var(--champagne);
}

.wordmark {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 27px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--cream);
}
.wordmark i { font-style: normal; color: var(--champagne); }

/* ---------- topo ---------- */
.top {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: calc(var(--safe-t) + 14px) var(--gutter) 14px;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.top.is-scrolled {
  background: rgba(10, 9, 8, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(244, 239, 232, 0.06);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}
.brand-mark { width: 30px; height: 30px; object-fit: contain; }

.lang { position: relative; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 42px;
  padding: 0 14px 0 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(21, 18, 15, 0.7);
  box-shadow: inset 0 0 0 1px rgba(244, 239, 232, 0.12);
  color: var(--cream);
  font: 500 14px/1 var(--font-ui);
  cursor: pointer;
  transition: box-shadow 0.2s ease, background 0.2s ease;
}
.lang-btn:hover,
.lang-btn[aria-expanded="true"] {
  background: rgba(29, 25, 21, 0.85);
  box-shadow: inset 0 0 0 1px rgba(226, 200, 154, 0.5);
}
.lang-caret {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: var(--cream-2);
  stroke-width: 1.6;
  transition: transform 0.2s ease;
}
.lang-btn[aria-expanded="true"] .lang-caret { transform: rotate(180deg); }
.lang-short { display: none; letter-spacing: 0.04em; }

.flag {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  overflow: hidden;
  background: #222;
  box-shadow: 0 0 0 1px rgba(244, 239, 232, 0.16), 0 2px 6px rgba(0, 0, 0, 0.35);
}
.flag svg { display: block; width: 100%; height: 100%; }

.lang-scrim {
  position: fixed;
  inset: 0;
  z-index: 69;
  background: transparent;
}
.lang-panel {
  position: fixed;
  z-index: 70;
  width: min(440px, calc(100vw - 32px));
  padding: 8px;
  border-radius: 22px;
  background: rgba(19, 16, 13, 0.97);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow:
    inset 0 0 0 1px rgba(226, 200, 154, 0.22),
    0 40px 80px -30px rgba(0, 0, 0, 0.95);
  transform-origin: top right;
  animation: langIn 0.18s cubic-bezier(.2, .8, .2, 1) both;
}
.lang-panel[hidden],
.lang-scrim[hidden] { display: none; }
@keyframes langIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
.lang-grab { display: none; }
.lang-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}
.lang-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 8px 12px 8px 10px;
  border-radius: 14px;
  color: var(--cream-2);
  font: 500 15px/1.2 var(--font-ui);
  cursor: pointer;
  outline: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.lang-opt:hover,
.lang-opt:focus-visible {
  background: rgba(244, 239, 232, 0.07);
  color: var(--cream);
}
.lang-opt:focus-visible { box-shadow: inset 0 0 0 1.5px var(--champagne); }
.lang-opt[aria-selected="true"] {
  background: rgba(226, 200, 154, 0.1);
  color: var(--champagne);
}
.lang-opt[aria-selected="true"] .flag { box-shadow: 0 0 0 1.5px var(--champagne), 0 2px 6px rgba(0, 0, 0, 0.35); }
.lang-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lang-txt small {
  font-size: 12px;
  font-weight: 400;
  color: var(--cream-3);
}
.lang-check {
  flex: none;
  width: 16px;
  height: 16px;
  margin-left: auto;
  fill: none;
  stroke: var(--champagne);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
}
.lang-opt[aria-selected="true"] .lang-check { opacity: 1; }

/* telemóvel: o botão mostra só a bandeira e o código, e a lista abre de baixo */
@media (max-width: 600px) {
  .lang-btn { padding-right: 12px; }
  .lang-cur { display: none; }
  .lang-short { display: inline; }
  .lang-scrim { background: rgba(0, 0, 0, 0.55); animation: fadeIn 0.2s ease both; }
  .lang-panel {
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    bottom: 0;
    width: auto;
    padding: 8px 12px calc(var(--safe-b) + 16px);
    border-radius: 26px 26px 0 0;
    transform-origin: bottom center;
    animation: sheetIn 0.28s cubic-bezier(.2, .8, .2, 1) both;
  }
  .lang-grab {
    display: block;
    width: 40px;
    height: 4px;
    margin: 4px auto 12px;
    border-radius: 99px;
    background: rgba(244, 239, 232, 0.2);
  }
}
@keyframes sheetIn { from { transform: translateY(100%); } to { transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- lojas (em breve) ---------- */
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
  max-width: 400px;
}
.store {
  display: grid;
  flex: 1 1 150px;
  grid-template-columns: auto 1fr;
  align-content: center;
  column-gap: 12px;
  row-gap: 3px;
  height: 60px;
  padding: 0 18px;
  border-radius: 16px;
  background: linear-gradient(180deg, #1d1915, #120f0d);
  box-shadow: inset 0 0 0 1px rgba(226, 200, 154, 0.42), 0 14px 30px -18px rgba(0, 0, 0, 0.9);
}
.store-ic {
  grid-row: 1 / 3;
  align-self: center;
  width: 26px;
  height: 26px;
  fill: var(--champagne);
}
.store small {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  line-height: 1;
  color: var(--cream-3);
}
.store small i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--champagne);
  box-shadow: 0 0 8px rgba(226, 200, 154, 0.8);
}
.store b {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--champagne);
  white-space: nowrap;
}
@media (max-width: 440px) {
  .store { padding: 0 14px; column-gap: 9px; }
  .store-ic { width: 22px; height: 22px; }
  .store b { font-size: 17px; }
}

/* ---------- 1. hero ---------- */
.hero {
  position: relative;
  min-height: max(640px, 100svh);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(120% 60% at 50% 110%, rgba(122, 98, 80, 0.32), transparent 70%),
    var(--noir);
}
.hero-stage {
  position: absolute;
  inset: 0;
  z-index: -3;
  overflow: hidden;
}
.wall {
  position: absolute;
  left: -14%;
  right: -14%;
  top: -24%;
  bottom: -24%;
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), 1fr);
  gap: clamp(12px, 1.4vw, 20px);
  transform: rotate(-8deg);
}
.wall-col { min-height: 0; }
.wall-track {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.4vw, 20px);
  will-change: transform;
  animation: wallUp var(--dur, 50s) linear infinite;
  animation-delay: var(--delay, 0s);
}
.wall-col:nth-child(even) .wall-track { animation-name: wallDown; }
@keyframes wallUp { from { transform: translateY(0); } to { transform: translateY(calc(-50% - 8px)); } }
@keyframes wallDown { from { transform: translateY(calc(-50% - 8px)); } to { transform: translateY(0); } }

/* fotos "por revelar" (p&b, escuras) até o flash passar */
.shot {
  position: relative;
  margin: 0;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  overflow: hidden;
  background: #16130f;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.9), inset 0 0 0 1px rgba(244, 239, 232, 0.06);
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) brightness(0.42) contrast(1.12);
  transition: filter 1.4s ease, transform 1.6s ease;
}
.shot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(226, 200, 154, 0);
  transition: box-shadow 1.2s ease;
}
.shot.is-lit img {
  filter: grayscale(0) brightness(1) contrast(1.02) saturate(1.05);
  transform: scale(1.035);
  transition: filter 0.45s ease-out, transform 2s cubic-bezier(.2, .8, .2, 1);
}
.shot.is-lit::after { box-shadow: inset 0 0 0 1px rgba(226, 200, 154, 0.34); transition-duration: 0.6s; }

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10, 9, 8, 0.75) 0%, rgba(10, 9, 8, 0) 18%),
    linear-gradient(180deg, rgba(10, 9, 8, 0) 34%, rgba(10, 9, 8, 0.82) 62%, var(--noir) 92%);
}
.grain {
  position: absolute;
  inset: -50%;
  z-index: -1;
  opacity: 0.06;
  mix-blend-mode: screen;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.2 -.1'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 0.5s steps(4) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); }
  75% { transform: translate(-2%, -1%); }
}

.hero-copy {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter) calc(var(--safe-b) + clamp(40px, 9vh, 96px));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}
.hero .display { font-size: clamp(58px, 9.4vw, 148px); max-width: 11em; }
:lang(ja) .hero .display,
:lang(ko) .hero .display,
:lang(zh) .hero .display { font-size: clamp(32px, 6.4vw, 96px); }
.hero .lede { max-width: 28em; }
.hero .stores { margin-top: 6px; }

@media (min-width: 900px) {
  .hero { align-items: center; }
  .hero-copy { padding-top: 120px; padding-bottom: 60px; }
  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(10, 9, 8, 0.7) 0%, rgba(10, 9, 8, 0) 16%),
      linear-gradient(90deg, rgba(10, 9, 8, 0.94) 0%, rgba(10, 9, 8, 0.78) 34%, rgba(10, 9, 8, 0.1) 72%, rgba(10, 9, 8, 0.25) 100%),
      linear-gradient(180deg, rgba(10, 9, 8, 0) 70%, var(--noir) 100%);
  }
}

/* entrada da página: uma só sequência */
.hero .display span,
.hero .lede,
.hero .stores {
  animation: rise 1s cubic-bezier(.2, .7, .2, 1) both;
}
.hero .display span:nth-child(1) { animation-delay: 0.15s; }
.hero .display span:nth-child(2) { animation-delay: 0.3s; }
.hero .lede { animation-delay: 0.5s; }
.hero .stores { animation-delay: 0.65s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* ---------- secções ---------- */
.ba,
.looks-head,
.car,
.end,
.foot {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- 2. antes / depois ---------- */
.ba {
  display: grid;
  gap: 40px;
  padding-top: clamp(72px, 12vw, 160px);
  padding-bottom: clamp(72px, 10vw, 140px);
}
.ba-copy { display: flex; flex-direction: column; gap: 22px; }
.ba-side { position: relative; }
.ba-frame {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 3 / 4;
  margin: 0 auto;
  border-radius: 28px;
  overflow: hidden;
  background: #16130f;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.95), inset 0 0 0 1px rgba(226, 200, 154, 0.22);
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.ba-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.ba-after {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 var(--p));
}
.ba-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--p);
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(244, 239, 232, 0), #f4efe8 18%, #f4efe8 82%, rgba(244, 239, 232, 0));
  filter: drop-shadow(0 0 10px rgba(244, 239, 232, 0.55));
  pointer-events: none;
}
.ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgba(10, 9, 8, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1.5px #f4efe8;
}
.ba-handle svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #f4efe8;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ba-tag {
  position: absolute;
  top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(10, 9, 8, 0.5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 13px;
  font-weight: 600;
  color: var(--cream);
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.ba-tag--before { left: 18px; opacity: clamp(0, calc((var(--pn, 0.5) - 0.18) * 8), 1); }
.ba-tag--after { right: 18px; color: var(--champagne); opacity: clamp(0, calc((0.82 - var(--pn, 0.5)) * 8), 1); }
.ba-tag--after i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--champagne);
  box-shadow: 0 0 8px rgba(226, 200, 154, 0.8);
}
.ba-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 18px 0 0;
  font-size: 26px;
  line-height: 1;
  transform: rotate(-3deg);
}
.ba-hint svg {
  width: 46px;
  height: 30px;
  fill: none;
  stroke: var(--champagne);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: scaleY(-1) rotate(-8deg);
}

@media (min-width: 900px) {
  .ba {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: center;
    gap: clamp(40px, 6vw, 100px);
  }
  .ba-frame { max-width: none; max-height: 82vh; width: auto; height: min(78vh, 680px); }
}


/* botões dos Filtros Pro */
.ba-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 2px 6px;
  margin: 18px auto 0;
  max-width: 440px;
}
.ba-chips { max-width: 520px; flex-wrap: wrap; justify-content: center; overflow: visible; }
.chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(244, 239, 232, 0.06);
  box-shadow: inset 0 0 0 1px rgba(244, 239, 232, 0.12);
  font: 500 14px/1 var(--font-ui);
  color: var(--cream-2);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.chip:hover { color: var(--cream); background: rgba(244, 239, 232, 0.1); }
.chip[aria-checked="true"] {
  color: var(--noir);
  background: var(--champagne);
  box-shadow: none;
}
/* troca de par nos Filtros Pro */
.ba-frame img { transition: opacity 0.25s ease; }
.ba-frame.is-swapping img { opacity: 0.35; }

/* ---------- 3. looks ---------- */
.looks {
  padding-top: clamp(40px, 6vw, 80px);
  padding-bottom: clamp(72px, 10vw, 140px);
}
.looks-head {
  display: grid;
  gap: 22px;
  margin-bottom: clamp(32px, 4vw, 56px);
}
@media (min-width: 900px) {
  .looks-head { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: end; }
  .looks-head .body { padding-bottom: 0.6em; }
}
.looks-row {
  --card: clamp(196px, 22vw, 292px);
  display: flex;
  gap: clamp(12px, 1.6vw, 22px);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 6px max(var(--gutter), calc((100vw - var(--max)) / 2)) 30px;
  scrollbar-width: none;
  cursor: grab;
}
.looks-row::-webkit-scrollbar { display: none; }
.looks-row.is-dragging { cursor: grabbing; }
.look {
  position: relative;
  flex: none;
  width: var(--card);
  margin: 0;
  aspect-ratio: 3 / 4;
  border-radius: 22px;
  overflow: hidden;
  background: #16130f;
  box-shadow: 0 24px 50px -30px rgba(0, 0, 0, 0.95), inset 0 0 0 1px rgba(244, 239, 232, 0.06);
}
.look:nth-child(even) { margin-top: 28px; }
.look img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}
.look figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 48px 18px 16px;
  background: linear-gradient(180deg, rgba(10, 9, 8, 0), rgba(10, 9, 8, 0.82));
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--cream);
}

/* ---------- 4. carrossel ---------- */
.car {
  display: grid;
  gap: 40px;
  padding-top: clamp(40px, 6vw, 80px);
  padding-bottom: clamp(48px, 6vw, 88px);
}
.car-copy { display: flex; flex-direction: column; gap: 22px; }
.car-list {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  color: var(--cream-2);
}
.car-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.car-list li::before {
  content: "";
  flex: none;
  width: 14px;
  height: 1px;
  background: var(--champagne);
  transform: translateY(-0.3em);
}
.car-side {
  position: relative;
  display: grid;
  place-items: center;
  padding: 10px 0;
}
.car-side::before {
  content: "";
  position: absolute;
  inset: -6% -10%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(226, 200, 154, 0.16), rgba(226, 200, 154, 0) 70%);
  pointer-events: none;
}
@media (min-width: 900px) {
  .car {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    align-items: center;
    gap: clamp(40px, 5vw, 80px);
  }
  .car-copy { order: 2; }
  .car-side { order: 1; }
}


/* o post que desliza sozinho */
.ig {
  position: relative;
  width: min(100%, 440px);
  margin: 0;
  border-radius: 26px;
  background: #121010;
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.95), inset 0 0 0 1px rgba(244, 239, 232, 0.08);
  overflow: hidden;
  transform: rotate(-1.5deg);
  transition: width 0.45s ease;
}
/* stories: 9:16, mesma altura do post (75% da largura) */
.ig.is-story { width: min(75%, 330px); }
.ig.is-story .ig-view { aspect-ratio: 9 / 16; }
.ig-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  font-size: 14px;
}
.ig-head img {
  width: 30px;
  height: 30px;
  padding: 5px;
  border-radius: 50%;
  background: #1c1916;
  box-shadow: 0 0 0 1.5px var(--champagne);
}
.ig-head b { font-weight: 600; color: var(--cream); }
.ig-more { margin-left: auto; display: flex; gap: 3px; }
.ig-more i { width: 3.5px; height: 3.5px; border-radius: 50%; background: var(--cream-2); }
.ig-view {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
  transition: opacity 0.45s ease;
}
.ig-view.is-fading { opacity: 0; }
.tp--ig { transition: transform 0.85s cubic-bezier(.65, 0, .35, 1); will-change: transform; }
.ig-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px 14px;
}
.ig-foot svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: var(--cream);
  stroke-width: 1.7;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.ig-foot .ig-save { margin-left: auto; }
.ig-dots {
  position: absolute;
  left: 50%;
  display: flex;
  gap: 5px;
  transform: translateX(-50%);
}
.ig-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(244, 239, 232, 0.25); transition: background 0.3s ease; }
.ig-dots i.is-on { background: var(--champagne); }

/* uma tira de template (mesmas camadas da app) */
.tp {
  position: relative;
  flex: none;
  overflow: hidden;
}
.tp-slot {
  position: absolute;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}
.tp-slot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}
.tp-slot[data-frame="polaroid"] { background: #fff; box-shadow: 0 6px 16px rgba(40, 24, 16, 0.25); }
.tp-slot[data-frame="film"] { background: #171410; box-shadow: inset 0 0 0 1px #262019; }
.tp-slot[data-frame] img {
  position: absolute;
  left: var(--fl, 6%);
  top: var(--ft, 6%);
  width: calc(100% - 2 * var(--fl, 6%));
  height: calc(100% - var(--ft, 6%) - var(--fb, 6%));
}
.tp-text {
  position: absolute;
  display: grid;
  place-items: center;
  text-align: center;
  pointer-events: none;
  overflow: visible;
  line-height: 1.1;
}
.tp-text.is-ring { padding: 0 !important; }
.pq-tx { display: inline; white-space: pre-wrap; }
.pq-ring { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.pq-ring span { position: absolute; left: 0; top: 0; transform-origin: 0 0; white-space: pre; line-height: 1; }
.pq-chips { position: relative; display: inline-block; flex: none; }
.pq-chip-ch { position: absolute; top: 50%; display: grid; place-items: center; line-height: 1; margin-top: 0; translate: 0 -50%; }
.tp-seam {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 0;
  border-left: 1px dashed rgba(244, 239, 232, 0.35);
  z-index: 200;
  pointer-events: none;
}

/* ---------- 4b. todos os templates a passar ---------- */
.river {
  padding-bottom: clamp(72px, 10vw, 140px);
  overflow: hidden;
}
.river-note {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto 18px;
  padding: 0 var(--gutter);
  font-size: 28px;
  line-height: 1.1;
  transform: rotate(-2deg);
}
.river-row {
  height: clamp(200px, 24vw, 300px);
  margin-bottom: 18px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.river-track {
  display: flex;
  gap: 18px;
  height: 100%;
  width: max-content;
  animation: river var(--dur, 120s) linear infinite;
  animation-play-state: paused;
}
.river-track .tp { border-radius: 16px; box-shadow: 0 24px 50px -30px rgba(0, 0, 0, 0.95); }
.river-track > .tp { margin-right: 0; }
.river-row.is-on .river-track { animation-play-state: running; }
.river-row:hover .river-track { animation-play-state: paused; }
.river-row--rev .river-track { animation-direction: reverse; }
@keyframes river {
  from { transform: translateX(0); }
  to { transform: translateX(calc(var(--shift, -50%) - 9px)); }
}

/* palco do carrossel (a mesma animação do onboarding da app) */
.cr-stage {
  position: absolute;
  inset: 0;
  perspective: 1000px;
  perspective-origin: 50% 50%;
  transform-style: preserve-3d;
  overflow: hidden;
}
.cr-slide {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 50% 50%;
  transform-style: preserve-3d;
  will-change: transform;
}
.cr-clip {
  position: absolute;
  inset: 0 -1px 0 0;
  overflow: hidden;
  border-radius: var(--rad, 0px);
  background: var(--bone);
  box-shadow:
    0 24px 40px -18px rgba(0, 0, 0, calc(0.85 * var(--lift, 0))),
    inset 0 0 0 calc(1px * var(--lift, 0)) rgba(226, 200, 154, 0.55);
}
.cr-pano-win { position: absolute; inset: 0; }
.cr-pano {
  position: absolute;
  top: 0;
  left: calc(var(--i) * var(--sw) * -1);
  width: calc(var(--sw) * 4);
  height: 100%;
  background:
    radial-gradient(60% 90% at 30% 40%, rgba(255, 252, 245, 0.7), rgba(255, 252, 245, 0) 70%),
    linear-gradient(90deg, #efe8dd, #e9e1d4 50%, #efe8dd);
}
.cr-shade {
  position: absolute;
  inset: 0;
  background: var(--noir);
  opacity: var(--shade, 0);
  pointer-events: none;
}
.cr-it { position: absolute; transform: rotate(var(--r, 0deg)); }
.cr-photo {
  overflow: hidden;
  border-radius: calc(var(--sw) * 0.018);
  box-shadow: 0 calc(var(--sw) * 0.02) calc(var(--sw) * 0.05) rgba(40, 28, 18, 0.28);
}
.cr-photo img,
.cr-pola img { width: 100%; height: 100%; object-fit: cover; }
.cr-pola {
  background: #fbf8f2;
  padding: calc(var(--sw) * 0.026) calc(var(--sw) * 0.026) calc(var(--sw) * 0.1);
  box-shadow: 0 calc(var(--sw) * 0.025) calc(var(--sw) * 0.06) rgba(40, 28, 18, 0.32);
}
.cr-tape {
  position: absolute;
  top: calc(var(--sw) * -0.03);
  left: 50%;
  width: 34%;
  height: calc(var(--sw) * 0.065);
  transform: translateX(-50%) rotate(-4deg);
  background: rgba(240, 228, 205, 0.72);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.cr-hand {
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: calc(var(--fs) * var(--sw));
  line-height: 1;
  white-space: nowrap;
  color: #1a1612;
}
.cr-mono {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: calc(var(--fs) * var(--sw));
  letter-spacing: 0.16em;
  white-space: nowrap;
  color: rgba(26, 22, 18, 0.62);
}
.cr-star svg,
.cr-heart svg { display: block; width: 100%; height: auto; overflow: visible; }
.cr-star svg { fill: #d9b97f; filter: drop-shadow(0 1px 2px rgba(120, 90, 40, 0.35)); }
.cr-heart svg {
  fill: none;
  stroke: #ef8fb0;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cr-stage.is-playing .cr-it { animation: crDrop 0.75s cubic-bezier(.2, .9, .25, 1.15) var(--d, 0s) both; }
@keyframes crDrop {
  from { opacity: 0; transform: translateY(-14%) rotate(calc(var(--r, 0deg) - 9deg)) scale(1.18); }
  to { opacity: 1; transform: rotate(var(--r, 0deg)); }
}
.cr-seam {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: calc(14px * var(--isc, 1));
  opacity: 0;
  pointer-events: none;
  transform: translateX(50%) translateZ(1px);
}
.cr-seam::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: calc(1.6px * var(--isc, 1));
  transform: translateX(-50%);
  background: repeating-linear-gradient(
    180deg,
    rgba(26, 22, 18, 0.72) 0 calc(6px * var(--isc, 1)),
    transparent calc(6px * var(--isc, 1)) calc(11px * var(--isc, 1))
  );
  opacity: var(--so, 0);
  clip-path: inset(0 0 calc((1 - var(--sp, 0)) * 100%) 0);
}
.cr-seam::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(214, 170, 96, 0), rgba(214, 170, 96, 0.55) 45%, rgba(255, 240, 210, 0.9) 50%, rgba(214, 170, 96, 0.55) 55%, rgba(214, 170, 96, 0));
  opacity: var(--gl, 0);
  clip-path: inset(0 0 calc((1 - var(--sp, 0)) * 100%) 0);
}
.cr-seam b {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: calc(var(--sp, 0) * 100%);
  width: calc(10px * var(--isc, 1));
  height: calc(10px * var(--isc, 1));
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, #fffaf0 0 30%, #f3d9a4 55%, #d4a85c 100%);
  box-shadow:
    0 0 calc(8px * var(--isc, 1)) calc(2px * var(--isc, 1)) rgba(212, 168, 92, 0.85),
    0 0 calc(24px * var(--isc, 1)) calc(8px * var(--isc, 1)) rgba(226, 200, 154, 0.5);
  opacity: calc((1 - var(--sp, 0) * var(--sp, 0) * var(--sp, 0) * var(--sp, 0)) * var(--so, 0));
}
.cr-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  z-index: 200;
  display: flex;
  justify-content: center;
  gap: 6px;
  opacity: 0;
}
.cr-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(244, 239, 232, 0.28);
  transition: background 0.25s ease, transform 0.25s ease;
}
.cr-dots span.is-on { background: var(--champagne); transform: scale(1.15); }

/* ---------- 5. final ---------- */
.end {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding-top: clamp(60px, 8vw, 120px);
  padding-bottom: clamp(80px, 10vw, 150px);
  text-align: center;
}
.end .display { font-size: clamp(48px, 6.4vw, 96px); }
:lang(ja) .end .display,
:lang(ko) .end .display,
:lang(zh) .end .display { font-size: clamp(30px, 5vw, 72px); }
.end .body { margin: 0 auto; }
.end .stores { justify-content: center; margin-top: 6px; }
.end-icon {
  position: relative;
  width: clamp(104px, 11vw, 140px);
  aspect-ratio: 1;
  margin-bottom: 8px;
}
.end-icon img {
  position: relative;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.8));
}
.end-bloom {
  position: absolute;
  inset: -120%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 246, 228, 0.9), rgba(226, 200, 154, 0.35) 35%, rgba(226, 200, 154, 0) 70%);
  opacity: 0;
  transform: scale(0.4);
  pointer-events: none;
}
.end.is-seen .end-bloom { animation: bloom 1.6s cubic-bezier(.2, .7, .2, 1) 0.1s both; }
.end.is-seen .end-icon img { animation: iconIn 1.2s cubic-bezier(.2, .8, .2, 1.1) both; }
@keyframes bloom {
  0% { opacity: 0; transform: scale(0.3); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.15); }
}
@keyframes iconIn {
  from { opacity: 0; transform: scale(0.86); }
  to { opacity: 1; transform: none; }
}

/* ---------- rodapé ---------- */
.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 28px;
  padding-bottom: calc(var(--safe-b) + 28px);
  border-top: 1px solid rgba(244, 239, 232, 0.08);
  font-size: 14px;
  color: var(--cream-3);
}
.foot .wordmark { font-size: 22px; }


@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wall-track,
  .grain { animation: none; }
  .hero .display span,
  .hero .lede,
  .hero .stores,
  .cr-stage.is-playing .cr-it,
  .end.is-seen .end-bloom,
  .end.is-seen .end-icon img,
  .lang-panel,
  .lang-scrim { animation: none; }
  .river-track { animation: none; }
  .ig { transform: none; }
}

/* evita scroll para o lado no telemóvel (o brilho atrás do post sai do ecrã) */
main { overflow-x: clip; }

.foot { flex-wrap: wrap; }
.foot-links { display: flex; gap: 20px; margin-left: auto; margin-right: 20px; }
.foot-links a { color: var(--cream-2); text-decoration: none; }
.foot-links a:hover, .foot-links a:focus-visible { color: var(--champagne); }
@media (max-width: 560px) { .foot-links { order: 3; width: 100%; margin: 4px 0 0; } }

