/* ============================================================
   CASE ANDRÉ — CSS original da landing (D:\Inetpub\andre agencia
   veiculos\landing\styles.css), escopado dentro de ".ac-case".
   Header, menu e rodapé desta página são os da Criarte; por isso
   todo seletor de chrome do site original (.site-header, .brand,
   .desktop-nav, .header-cta, .menu-toggle, .mobile-menu, footer,
   html, body) foi removido — quem cuida disso agora é a Fable.
   O loader continua: é a experiência cinematográfica do case, não
   chrome de navegação.
   ============================================================ */

.ac-case {
  --ac-ink: #07101a;
  --ac-navy: #0b1a29;
  --ac-blue: #168cff;
  --ac-blue-soft: #8ac8ff;
  --ac-paper: #eef0f2;
  --ac-paper-deep: #e3e6e9;
  --ac-text: #121820;
  --ac-muted: #68717b;
  --ac-line: rgba(17, 31, 45, 0.13);

  position: relative;
  overflow: clip;
  background: var(--ac-paper);
  color: var(--ac-text);
  font-family: "Manrope", sans-serif;
}

.ac-case * {
  box-sizing: border-box;
}

.ac-case button,
.ac-case a {
  font: inherit;
}

.ac-case a {
  color: inherit;
}

/* ---------- loader (experiência de abertura) ---------- */

.ac-case .loader {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(28px, 4vw, 68px);
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(2, 7, 13, .65), rgba(2, 7, 13, .25), rgba(2, 7, 13, .65)),
    url("../assets/andre-case/loader.webp") center / cover no-repeat,
    #02060b;
  transition: opacity .7s ease, visibility .7s ease;
}
.ac-case .loader::before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(186, 222, 255, .12);
  pointer-events: none;
}
.ac-case .loader__film {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}
.ac-case .loader.is-playing .loader__film { opacity: 1; }
.ac-case .loader__top, .ac-case .loader__bottom {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(226, 240, 252, .48);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.ac-case .loader__top img { width: clamp(112px, 12vw, 190px); filter: brightness(0) invert(1); }
.ac-case .loader__bottom { padding-top: 16px; border-top: 1px solid rgba(186, 222, 255, .14); }
.ac-case .loader__count {
  position: relative;
  z-index: 2;
  align-self: center;
  display: flex;
  align-items: flex-start;
  color: #f7fbff;
  font: 500 clamp(130px, 20vw, 320px)/.72 "Space Grotesk", sans-serif;
  letter-spacing: -.09em;
  transition: opacity .35s ease, filter .35s ease, transform .4s ease;
}
.ac-case .loader__count small { margin: .04em 0 0 .2em; color: var(--ac-blue-soft); font-size: 28px; letter-spacing: 0; }
.ac-case .loader.is-count-hidden .loader__count { opacity: 0; filter: blur(5px); transform: translateY(-12px); }
.ac-case .loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }

/* ---------- hero em vídeo, controlado pela rolagem ---------- */

.ac-case .hero-scroll { height: 245vh; background: var(--ac-ink); }
.ac-case .hero {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 660px;
  overflow: hidden;
  color: #fff;
  background: #06111d;
}
.ac-case .hero video, .ac-case .hero__shade, .ac-case .hero__grain { position: absolute; inset: 0; width: 100%; height: 100%; }
.ac-case .hero video { object-fit: cover; }
.ac-case .hero__shade {
  background:
    linear-gradient(90deg, rgba(2, 7, 13, .7), rgba(2, 7, 13, .05) 56%, rgba(2, 7, 13, .42)),
    linear-gradient(180deg, rgba(2, 7, 13, .4), transparent 35%, rgba(2, 7, 13, .66));
}
.ac-case .hero__grain {
  opacity: .07;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}
.ac-case .hero__copy {
  position: absolute;
  z-index: 3;
  left: clamp(34px, 7vw, 134px);
  top: 50%;
  width: min(680px, 65vw);
  transform: translateY(-43%);
}
.ac-case .hero__copy > p, .ac-case .section-kicker {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 20px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.ac-case .hero__copy > p { color: rgba(231, 243, 255, .62); }
.ac-case .hero__copy > p i, .ac-case .section-kicker i {
  width: 28px;
  height: 1px;
  background: var(--ac-blue-soft);
  box-shadow: 0 0 12px var(--ac-blue);
}
.ac-case .hero h1 {
  margin: 0;
  font: 500 clamp(62px, 7.6vw, 132px)/.84 "Space Grotesk", sans-serif;
  letter-spacing: -.075em;
  text-transform: uppercase;
}
.ac-case .hero h1 em { color: transparent; font-style: normal; -webkit-text-stroke: 1px rgba(242, 249, 255, .72); }
.ac-case .hero__support {
  display: flex;
  gap: 34px;
  margin-top: 30px;
  color: rgba(226, 240, 252, .58);
  font-size: 10px;
  letter-spacing: .08em;
}
.ac-case .hero__progress {
  position: absolute;
  z-index: 3;
  right: clamp(28px, 4.5vw, 84px);
  top: 50%;
  display: grid;
  justify-items: center;
  gap: 12px;
  transform: translateY(-40%);
}
.ac-case .hero__progress span { writing-mode: vertical-rl; font-size: 7px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; opacity: .55; }
.ac-case .hero__progress div { width: 1px; height: 130px; background: rgba(207, 230, 250, .18); }
.ac-case .hero__progress div i { display: block; width: 1px; height: 100%; background: var(--ac-blue-soft); transform: scaleY(0); transform-origin: top; box-shadow: 0 0 12px var(--ac-blue); }
.ac-case .hero__progress b { font: 500 9px/1 "Space Grotesk", sans-serif; letter-spacing: .12em; }
.ac-case .hero__scroll-hint {
  position: absolute;
  z-index: 3;
  bottom: 28px;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transform: translateX(-50%);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: .58;
}
.ac-case .hero__scroll-hint i { width: 1px; height: 38px; background: linear-gradient(var(--ac-blue-soft), transparent); animation: ac-scroll-line 1.6s infinite; }

/* ---------- manifesto ---------- */

.ac-case .manifesto {
  position: relative;
  display: grid;
  grid-template-columns: .35fr 1.3fr .7fr;
  gap: clamp(34px, 6vw, 110px);
  min-height: 760px;
  padding: clamp(110px, 12vw, 190px) clamp(28px, 7vw, 130px);
  overflow: hidden;
  background: var(--ac-paper);
}
.ac-case .manifesto::after {
  content: "CURATORIA";
  position: absolute;
  right: -1vw;
  bottom: -3vw;
  color: rgba(19, 29, 39, .035);
  font: 600 16vw/.75 "Space Grotesk", sans-serif;
  letter-spacing: -.08em;
}
.ac-case .manifesto__number { color: rgba(13, 28, 41, .18); font: 400 clamp(70px, 8vw, 130px)/.8 "Space Grotesk", sans-serif; letter-spacing: -.08em; }
.ac-case .section-kicker { color: #6e7b87; }
.ac-case .manifesto h2, .ac-case .stock-section h2, .ac-case .closing h2 {
  margin: 0;
  font: 500 clamp(48px, 6vw, 102px)/.92 "Space Grotesk", sans-serif;
  letter-spacing: -.065em;
}
.ac-case .manifesto h2 em { color: var(--ac-blue); font-style: normal; }
.ac-case .manifesto__copy > p:last-child {
  max-width: 600px;
  margin: 34px 0 0;
  color: var(--ac-muted);
  font-size: 15px;
  line-height: 1.75;
}
.ac-case .manifesto__facts { align-self: end; display: grid; }
.ac-case .manifesto__facts div { display: grid; gap: 5px; padding: 20px 0; border-bottom: 1px solid var(--ac-line); }
.ac-case .manifesto__facts strong { font: 500 30px/1 "Space Grotesk", sans-serif; }
.ac-case .manifesto__facts span { color: var(--ac-muted); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }

/* ---------- estoque (cada categoria renderizada por JS) ---------- */

.ac-case .stock-section {
  position: relative;
  padding: clamp(105px, 11vw, 170px) clamp(28px, 6vw, 112px);
  overflow: hidden;
  background: var(--ac-paper-deep);
  border-top: 1px solid var(--ac-line);
}
.ac-case .stock-section:nth-child(even) { background: #f5f5f3; }
.ac-case .stock-section__head {
  display: grid;
  grid-template-columns: 120px 1fr .55fr;
  gap: 30px;
  align-items: end;
  margin-bottom: 58px;
}
.ac-case .stock-section__index { color: rgba(16, 34, 50, .2); font: 500 62px/.9 "Space Grotesk", sans-serif; letter-spacing: -.06em; }
.ac-case .stock-section__head p:last-child { align-self: end; margin: 0 0 8px; color: var(--ac-muted); font-size: 13px; line-height: 1.7; }
.ac-case .stock-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ac-case .stock-card {
  position: relative;
  display: grid;
  grid-template-columns: 46% 1fr;
  min-height: 276px;
  overflow: hidden;
  border: 1px solid rgba(18, 34, 49, .12);
  background: rgba(255, 255, 255, .58);
  transition: transform .4s cubic-bezier(.22,1,.36,1), box-shadow .4s ease, background .4s ease;
}
.ac-case .stock-card:hover { transform: translateY(-5px); background: #fff; box-shadow: 0 22px 55px rgba(24, 39, 53, .11); }
.ac-case .stock-card__image { position: relative; overflow: hidden; }
.ac-case .stock-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.22,1,.36,1); }
.ac-case .stock-card:hover img { transform: scale(1.045); }
.ac-case .stock-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 7px 9px;
  color: #fff;
  background: rgba(7, 16, 26, .74);
  backdrop-filter: blur(8px);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.ac-case .stock-card__body { display: flex; flex-direction: column; padding: 24px 24px 20px; }
.ac-case .stock-card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; color: #70808e; font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.ac-case .stock-card__top strong { color: #111a23; font: 700 clamp(17px, 1.35vw, 23px)/1 "Space Grotesk", sans-serif; letter-spacing: -.035em; white-space: nowrap; }
.ac-case .stock-card h3 { margin: 11px 0 8px; font: 600 clamp(21px, 1.7vw, 29px)/1 "Space Grotesk", sans-serif; letter-spacing: -.035em; }
.ac-case .stock-card__body > p { margin: 0; color: var(--ac-muted); font-size: 11px; line-height: 1.55; }
.ac-case .stock-card__specs { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 18px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--ac-line); color: #425361; font-size: 11px; font-weight: 750; }
.ac-case .stock-card__specs span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.ac-case .stock-card__specs svg { width: 15px; height: 15px; flex: 0 0 auto; color: var(--ac-blue); stroke-width: 1.9; }
.ac-case .stock-section__footer { display: flex; justify-content: space-between; align-items: center; margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--ac-line); }
.ac-case .stock-section__footer span { color: var(--ac-muted); font-size: 8px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.ac-case .stock-section__footer a { font-size: 9px; font-weight: 800; letter-spacing: .14em; text-decoration: none; text-transform: uppercase; }

/* ---------- CTA final (fica dentro do palco de sobreposição) ---------- */

.ac-case .closing {
  position: relative;
  min-height: 760px;
  padding: clamp(120px, 13vw, 210px) clamp(28px, 8vw, 150px);
  overflow: hidden;
  color: #f3f8fc;
  background:
    radial-gradient(circle at 75% 40%, rgba(20, 112, 202, .22), transparent 32%),
    linear-gradient(135deg, #06111c, #0b1c2c);
}
.ac-case .closing__line { position: absolute; top: 0; left: 8vw; width: 1px; height: 100%; background: linear-gradient(transparent, rgba(129, 195, 255, .22), transparent); }
.ac-case .closing .section-kicker { color: rgba(220, 238, 253, .5); }
.ac-case .closing h2 { font-size: clamp(64px, 8vw, 138px); }
.ac-case .closing > a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 60px;
  width: min(520px, 100%);
  margin-top: 60px;
  padding: 22px 24px;
  border: 1px solid rgba(99, 255, 167, .28);
  background: rgba(5, 18, 28, .48);
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
}
.ac-case .closing > a span { grid-column: 1; display: flex; align-items: center; gap: 8px; color: rgba(203, 238, 220, .56); font-size: 7px; letter-spacing: .18em; text-transform: uppercase; }
.ac-case .closing > a b { grid-column: 2; grid-row: 1 / 3; align-self: center; color: #68ffab; font-size: 26px; font-weight: 400; }
.ac-case .closing > a i,
.ac-case .header-cta i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #63ffa7;
  box-shadow: 0 0 14px #63ffa7;
  animation: ac-pulse 1.8s infinite;
}

@keyframes ac-pulse { 70% { box-shadow: 0 0 0 8px rgba(99,255,167,0); } 100% { box-shadow: 0 0 0 0 rgba(99,255,167,0); } }
@keyframes ac-scroll-line { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- responsivo ---------- */

@media (max-width: 900px) {
  .ac-case .hero-scroll { height: 220vh; }
  .ac-case .hero { min-height: 600px; }
  .ac-case .hero video { object-position: 52% center; }
  .ac-case .hero__copy { left: 24px; width: calc(100vw - 54px); }
  .ac-case .hero h1 { font-size: clamp(54px, 15vw, 84px); }
  .ac-case .hero__support { display: grid; gap: 5px; }
  .ac-case .hero__progress { right: 16px; }
  .ac-case .manifesto { grid-template-columns: 1fr; min-height: auto; }
  .ac-case .manifesto__number { font-size: 70px; }
  .ac-case .stock-section__head { grid-template-columns: 70px 1fr; }
  .ac-case .stock-section__head > p:last-child { grid-column: 2; }
  .ac-case .stock-grid { grid-template-columns: 1fr; }
  .ac-case .closing { min-height: 680px; }
}

@media (max-width: 560px) {
  .ac-case .loader__top span, .ac-case .loader__bottom span:last-child { display: none; }
  .ac-case .loader__count { font-size: 36vw; }
  .ac-case .hero__copy > p { font-size: 8px; letter-spacing: .16em; }
  .ac-case .hero__progress { display: none; }
  .ac-case .manifesto, .ac-case .stock-section { padding-inline: 20px; }
  .ac-case .manifesto h2, .ac-case .stock-section h2 { font-size: 46px; }
  .ac-case .stock-section__head { grid-template-columns: 1fr; gap: 16px; }
  .ac-case .stock-section__index { font-size: 50px; }
  .ac-case .stock-section__head > p:last-child { grid-column: 1; }
  .ac-case .stock-card { grid-template-columns: 1fr; }
  .ac-case .stock-card__image { height: 210px; }
  .ac-case .stock-card__body { min-height: 220px; }
  .ac-case .stock-section__footer span { display: none; }
  .ac-case .closing h2 { font-size: 58px; }
}

@media (prefers-reduced-motion: reduce) {
  .ac-case *, .ac-case *::before, .ac-case *::after {
    animation: none !important;
    transition-duration: .01ms !important;
  }
}
