/* ==========================================================
   CELL PHONE — landing page
   Paleta tirada do showroom: parede greige, painel iluminado,
   carvalho do piso, couro conhaque e o grafite da mesa.
   ========================================================== */

:root {
  --panel: #F7F6F3;      /* painel iluminado */
  --paper: #EFECE7;      /* fundo base */
  --wall: #E2DCD4;       /* parede greige */
  --taupe: #C9C0B4;      /* moldura / parede curva */
  --oak: #D3BE9F;        /* piso */
  --cognac: #844A27;     /* couro da poltrona */
  --graphite: #242321;   /* base da mesa */
  --ink: #1C1B19;
  --muted: #5F5A53;
  --line: rgba(28, 27, 25, .12);
  --led: #FFF7E6;

  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --r: 28px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
b { font-weight: inherit; }
figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

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

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

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Tipografia ---------- */

.label {
  font: 500 .72rem/1 var(--f-display);
  font-stretch: 125%;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--cognac);
}
.label--muted { color: var(--muted); }

.h2 {
  font-family: var(--f-display);
  font-stretch: 108%;
  font-weight: 300;
  font-size: clamp(2rem, 3.9vw, 3.35rem);
  line-height: 1.04;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.h2 b { font-weight: 500; }

.lede { color: var(--muted); max-width: 34rem; text-wrap: pretty; }
.lede p + p { margin-top: .6em; }

/* ---------- Wordmark ---------- */

.wordmark {
  display: inline-flex; gap: .42em; align-items: baseline;
  text-decoration: none;
  font-family: var(--f-display);
  font-stretch: 118%;
  font-size: 1rem;
  letter-spacing: .2em;
  line-height: 1;
}
.wordmark__a { font-weight: 400; }
.wordmark__b { font-weight: 600; }
.wordmark--lg { font-size: clamp(1.6rem, 4vw, 2.6rem); letter-spacing: .16em; }

/* ---------- Botões ---------- */

.btn {
  --bg: var(--graphite); --fg: var(--panel);
  display: inline-flex; align-items: center; gap: .9em;
  min-height: 54px; padding: 0 1.5em 0 1.7em;
  border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font: 500 .8rem/1 var(--f-display);
  font-stretch: 115%;
  letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background-color .3s;
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 10px 24px -14px rgba(28,27,25,.55);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 18px 30px -16px rgba(28,27,25,.6); }
.btn__arrow { font-family: var(--f-body); font-size: 1.1rem; letter-spacing: 0; transition: transform .4s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn--sm { min-height: 40px; padding: 0 1.2em; font-size: .7rem; }
.btn--light { --bg: var(--panel); --fg: var(--ink); }
.btn--ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn--ghost:hover { --bg: var(--ink); --fg: var(--panel); box-shadow: none; }

/* ---------- Nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, transform .5s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 68px; }
.nav__links { display: flex; gap: 32px; }
.nav__links a {
  text-decoration: none; font-size: .9rem; color: var(--muted);
  transition: color .2s;
}
.nav__links a:hover { color: var(--ink); }

/* ---------- Hero ---------- */

.hero { padding: clamp(24px, 4vw, 48px) 0 clamp(32px, 4vw, 56px); }
.hero__grid {
  display: grid; grid-template-columns: 1.08fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center;
}
.hero__copy { display: flex; flex-direction: column; align-items: flex-start; }
.hero__title {
  font-family: var(--f-display);
  font-stretch: 106%;
  font-weight: 300;
  font-size: clamp(2.45rem, 5.3vw, 4.7rem);
  line-height: 1;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.hero__title b { font-weight: 600; }
.hero__q {
  margin-top: 18px;
  font-family: var(--f-display);
  font-stretch: 106%;
  font-weight: 400;
  font-size: clamp(1.2rem, 1.9vw, 1.6rem);
  letter-spacing: -.015em;
  color: var(--cognac);
}
.hero .lede { margin-top: 18px; }
.hero__cta { margin-top: 34px; }

.facts {
  display: flex; flex-wrap: wrap; gap: 10px 28px;
  margin-top: 40px; padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: .88rem; color: var(--muted);
}
.facts b { color: var(--ink); font-weight: 600; margin-right: .25em; }

/* ---------- Vídeo do showroom na hero ---------- */

.hero-media {
  position: relative;
  aspect-ratio: 4 / 5;
  /* alinhado ao topo do título e cabendo inteiro na primeira tela */
  align-self: start;
  max-height: max(420px, calc(100svh - 180px));
  border-radius: var(--r);
  overflow: hidden;
  background: var(--wall) url("../video/hero-showroom.jpg") center / cover;
  box-shadow: 0 40px 80px -50px rgba(60, 45, 30, .55);
  isolation: isolate;
}
.hero-media video {
  width: 100%; height: 100%;
  object-fit: cover;
  animation: fadeIn 1.2s var(--ease) both;
}
.hero-media::after { /* leve sombra embaixo para a legenda */
  content: "";
  position: absolute; inset: auto 0 0 0; height: 32%;
  background: linear-gradient(180deg, transparent, rgba(28, 27, 25, .45));
  pointer-events: none;
}
.hero-media__tag {
  position: absolute; z-index: 2; left: 18px; bottom: 18px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 14px;
  border-radius: 999px;
  background: rgba(28, 27, 25, .38);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
  color: #fff;
  font: 500 .74rem/1 var(--f-display); font-stretch: 115%; letter-spacing: .14em; text-transform: uppercase;
}
.hero-media__tag::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--led);
}
.hero-media__toggle {
  position: absolute; z-index: 2; right: 14px; bottom: 14px;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(28, 27, 25, .38);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
  color: #fff; cursor: pointer;
  transition: background-color .3s;
}
.hero-media__toggle:hover { background: rgba(247, 246, 243, .3); }
.hero-media__toggle .i-play { display: none; }
.hero-media.is-paused .i-play { display: block; }
.hero-media.is-paused .i-pause { display: none; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Seções ---------- */

.section { padding: clamp(40px, 5vw, 64px) 0; }
.section--wall { background: var(--wall); }
.section--dark { background: var(--graphite); color: var(--panel); position: relative; }
.section--dark::before { /* fita de LED */
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--led) 20%, var(--led) 80%, transparent);
  box-shadow: 0 0 18px 2px rgba(255, 238, 200, .45);
}
.section--dark .lede { color: #A9A39A; }
.section--dark .label { color: var(--oak); }

.head { display: grid; gap: 16px; margin-bottom: clamp(28px, 3.5vw, 44px); max-width: 46rem; }
.head--split {
  max-width: none;
  grid-template-columns: 1.2fr 1fr; align-items: end; gap: 18px 64px;
}
.head--split .label { margin-bottom: 18px; }
.section__cta { margin-top: clamp(24px, 3vw, 36px); }

/* Modelos */
.choices { display: grid; gap: 20px; }
.choice {
  position: relative;
  display: grid; grid-template-columns: 1fr 1.1fr; align-items: stretch;
  min-height: clamp(360px, 34vw, 440px);
  background: var(--panel);
  border-radius: var(--r);
  box-shadow: 0 0 0 1px var(--line);
  overflow: hidden;
  isolation: isolate;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.choice::before { /* luz de sanca no topo do card */
  content: ""; position: absolute; z-index: 2; top: 0; left: 12%; right: 12%; height: 1px;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  box-shadow: 0 0 26px 6px rgba(255, 246, 225, .9);
}
.choice:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line), 0 30px 50px -36px rgba(60, 45, 30, .5); }
.choice--warm { background: #E7E1D8; }

.choice__copy {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 16px;
  padding: clamp(28px, 4.5vw, 64px);
}
.choice__title {
  font-family: var(--f-display); font-stretch: 112%; font-weight: 400;
  font-size: clamp(2.2rem, 4.4vw, 3.6rem); line-height: 1; letter-spacing: -.035em;
  margin-top: 10px;
}
.choice__text { color: var(--muted); max-width: 24rem; }
.choice__link {
  margin-top: 14px;
  display: inline-flex; align-items: center; gap: .6em;
  font: 500 .8rem/1 var(--f-display); font-stretch: 115%; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid currentColor;
}
.choice__link span { font-family: var(--f-body); letter-spacing: 0; font-size: 1rem; transition: transform .4s var(--ease); }
.choice__link:hover span { transform: translateX(4px); }

/* vídeos com fundo branco: o multiply funde o branco na cor do card */
.choice__media { position: relative; min-height: 0; }
.choice__media video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain; object-position: center;
  mix-blend-mode: multiply;
}
.choice__media--novo video { object-position: center bottom; }

/* Condições */
.perks { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(247, 246, 243, .14); }
.perk { padding: 36px 32px 8px 0; display: grid; gap: 10px; align-content: start; }
.perk + .perk { padding-left: 32px; border-left: 1px solid rgba(247, 246, 243, .14); }
.perk__big {
  font-family: var(--f-display); font-stretch: 120%; font-weight: 200;
  font-size: clamp(3.4rem, 6vw, 5.4rem); line-height: 1; letter-spacing: -.04em;
  color: var(--panel);
  margin-bottom: 18px;
}
.perk__big small { font-size: 1.15rem; font-weight: 400; letter-spacing: .02em; color: #A9A39A; }
.perk__title { font: 500 .78rem/1.3 var(--f-display); font-stretch: 120%; letter-spacing: .16em; text-transform: uppercase; }
.perk p { color: #A9A39A; max-width: 18rem; }

/* O espaço */
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 16px;
  height: clamp(520px, 62vw, 760px);
}
.gallery__item { border-radius: var(--r); overflow: hidden; background: var(--wall); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gallery__item--lead { grid-column: 1; grid-row: 1 / 3; }
.gallery__item--tall { grid-column: 3; grid-row: 1 / 3; }
.gallery__item:nth-child(3) { grid-column: 2; grid-row: 1 / 2; }
.gallery__item:nth-child(4) { grid-column: 2; grid-row: 2 / 3; }
.gallery__item:nth-child(4) img { object-position: 50% 70%; }

/* Clientes */
.prints {
  overflow-x: auto;
  padding: 8px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) 24px;
  scrollbar-width: none;
}
.prints::-webkit-scrollbar { display: none; }
.prints__track { display: flex; gap: 20px; width: max-content; }

/* carrossel infinito: o JS duplica as fotos e a faixa desliza sem parar */
.prints.is-marquee {
  overflow: hidden;
  padding-inline: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.prints.is-marquee .prints__track {
  padding-right: 20px; /* igual ao gap, para a emenda ficar exata */
  animation: marquee var(--dur, 45s) linear infinite;
}
.prints.is-marquee:hover .prints__track,
.prints.is-marquee:focus-within .prints__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }

.print {
  flex: 0 0 clamp(220px, 22vw, 290px);
  aspect-ratio: 3 / 4;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--taupe);
  box-shadow: 0 30px 50px -34px rgba(40, 30, 20, .6);
}
.print { position: relative; isolation: isolate; }
.print::before { /* prévia borrada que aparece na hora, enquanto a foto carrega */
  content: ""; position: absolute; inset: -12%; z-index: -1;
  background: var(--lqip) 50% 30% / cover no-repeat;
  filter: blur(14px);
}
.print img {
  position: relative;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 30%;
  transition: transform 1.2s var(--ease), opacity .6s var(--ease);
}
.js .print img:not(.is-loaded) { opacity: 0; }
.print:hover img { transform: scale(1.03); }

/* Fechar escolha — painel iluminado */
.closer {
  position: relative;
  border-radius: calc(var(--r) + 8px);
  padding: clamp(40px, 8vw, 104px) clamp(24px, 7vw, 96px);
  background:
    radial-gradient(90% 80% at 50% 40%, rgba(255,255,255,.95), rgba(255,255,255,0) 75%),
    repeating-linear-gradient(90deg, #FDFCFA 0 3%, #EFECE6 5.5%, #FDFCFA 8%);
  box-shadow: 0 0 0 10px #D2CABF, 0 0 90px 10px rgba(255, 246, 225, .8), 0 50px 80px -40px rgba(60, 45, 30, .45);
  margin: 10px;
  text-align: center;
}
.closer__copy { display: grid; justify-items: center; gap: 22px; max-width: 46rem; margin-inline: auto; }
.closer .lede { margin-bottom: 12px; }

/* ---------- Rodapé ---------- */

.footer { background: var(--graphite); color: var(--panel); padding: clamp(48px, 6vw, 80px) 0 28px; position: relative; }
.footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--led) 20%, var(--led) 80%, transparent);
  box-shadow: 0 0 18px 2px rgba(255, 238, 200, .45);
}
.footer .lede { color: #A9A39A; margin-bottom: 30px; }
.footer__cta {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px 64px; align-items: end;
  padding-bottom: clamp(40px, 5vw, 64px);
  border-bottom: 1px solid rgba(247, 246, 243, .14);
}
.footer__base {
  display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 40px;
  padding-top: 36px;
}
.footer__tag { margin-top: 14px; color: #A9A39A; }
.footer__info { display: flex; flex-wrap: wrap; gap: 24px 48px; }
.footer__info li { display: grid; gap: 10px; }
.footer__info .label { color: #9A948A; }
.footer__info a { text-decoration: none; }
.footer__info a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer__legal { margin-top: 36px; font-size: .8rem; color: #9A948A; }

/* ---------- Botão flutuante ---------- */

.float {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 20px 0 16px;
  border-radius: 999px;
  background: var(--graphite); color: var(--panel);
  font: 500 .72rem/1 var(--f-display); font-stretch: 115%; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 14px 30px -12px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.06) inset;
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.float.is-on { opacity: 1; transform: none; pointer-events: auto; }
.float svg { color: #7FD99A; }

/* ---------- Efeitos ----------
   Tudo só se esconde quando o JS está ativo (classe .js no <html>),
   então a página continua completa sem JavaScript. */

/* sobe e aparece */
.js .fx-up {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity .9s var(--ease), transform .9s var(--ease), box-shadow 1.6s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js .fx-up.is-in { opacity: 1; transform: none; }

/* títulos palavra por palavra */
.fx-words .w {
  display: inline-block; overflow: hidden; vertical-align: bottom;
  padding: .14em .03em .12em; margin: -.14em -.03em -.12em;
}
.fx-words .w > span {
  display: inline-block;
  transform: translate3d(0, 110%, 0);
  transition: transform 1s var(--ease);
  transition-delay: calc(var(--d, 0ms) + var(--i, 0) * 38ms);
}
.fx-words.is-in .w > span { transform: none; }

/* cortina nas fotos e vídeos */
.js .fx-mask {
  clip-path: inset(100% 0 0 0 round var(--r));
  transition: clip-path 1.3s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js .fx-mask.is-in { clip-path: inset(0 0 0 0 round var(--r)); }
.js .fx-mask:not(.is-in) > img,
.js .fx-mask:not(.is-in) > video { transform: scale(1.15); }
.fx-mask > img, .fx-mask > video { transition: transform 1.6s var(--ease); }

/* parallax leve nas fotos do espaço */
.gallery__item img {
  transform: translate3d(0, var(--py, 0px), 0) scale(1.14) !important;
  transition: none;
  will-change: transform;
}

/* fita de LED que acende do centro para as bordas */
.js .section--dark::before,
.js .footer::before { transform: scaleX(0); transition: transform 1.8s var(--ease) .15s; }
.section--dark.is-lit::before,
.footer.is-lit::before { transform: scaleX(1); }

/* painel iluminado acende ao entrar na tela */
.js .closer.fx-up:not(.is-in) {
  box-shadow: 0 0 0 10px #D2CABF, 0 0 0 0 rgba(255, 246, 225, 0), 0 50px 80px -40px rgba(60, 45, 30, .2);
}

/* brilho que passa pelos botões */
.btn { position: relative; overflow: hidden; --sheen: rgba(255, 255, 255, .22); }
.btn--light, .btn--ghost { --sheen: rgba(132, 74, 39, .14); }
.btn::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 30%, var(--sheen) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .9s var(--ease);
  pointer-events: none;
}
.btn:hover::after { transform: translateX(120%); }

/* menu some ao descer e volta ao subir */
.nav.is-hidden { transform: translateY(-100%); }

/* números que contam */
[data-count] { font-variant-numeric: tabular-nums; }



/* ---------- Responsivo ---------- */

@media (max-width: 960px) {
  .nav__links { display: none; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 520px; width: 100%; justify-self: center; }
  .head--split, .footer__cta { grid-template-columns: 1fr; }
  .head--split .label { margin-bottom: 18px; }
  .perks { grid-template-columns: 1fr; }
  .perk, .perk + .perk { padding: 32px 0; border-left: 0; }
  .perk + .perk { border-top: 1px solid rgba(247, 246, 243, .14); }
  .gallery {
    display: flex; height: auto; gap: 12px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery__item { flex: 0 0 72%; aspect-ratio: 3 / 4.4; scroll-snap-align: start; }
  .gallery__item--tall { order: -1; }
}

@media (max-width: 640px) {
  .choice { grid-template-columns: 1fr; min-height: 0; }
  .choice__media { order: -1; height: 240px; }
  .choice__copy { padding-top: 8px; }
  .btn { width: 100%; justify-content: space-between; white-space: nowrap; font-stretch: 100%; letter-spacing: .08em; font-size: .72rem; padding: 0 1.2em 0 1.4em; }
  .closer { padding: 40px 20px; }
  .section { padding: 44px 0; }
  .hero { padding-bottom: 32px; }
  .hero .facts { margin-top: 32px; }
  .btn--sm { width: auto; }
  .hero__cta { width: 100%; }
  .closer { text-align: left; margin: 6px; }
  .closer__copy { justify-items: start; }
  .facts { gap: 8px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .fx-up, .fx-words .w > span, .js .fx-mask > img, .js .fx-mask > video { opacity: 1 !important; transform: none !important; }
  .js .fx-mask { clip-path: none !important; }
  .js .section--dark::before, .js .footer::before { transform: none !important; }
  .gallery__item img { transform: none !important; }
}
