/* Hallmark · genre: modern-minimal · macrostructure: Split Studio · theme: custom (vibe: "branco clínico, azul-oceano, capivara" · paper oklch(99.2% 0.004 245) · accent oklch(59.3% 0.175 252) azul · Archivo + Nunito) · enrichment: Tier C generated still (vidro 3D, só na capa) · nav: N9 · footer: Ft2 · axes: light / geometric-sans / cool · contrast: pass (40–41) · slop: pass (42–45) · honest: pass (46) · chrome: pass (47) · tokens: pass (48) · responsive: pass (49) · icons: pass (30) · mobile: pass (34, 49, 50–57) · extras: fontes e GSAP locais (offline), tier projetor (largura ≥60rem e altura ≤56rem), impressão paisagem 1 slide/página, janela do apresentador (?speaker) · exceções do dono: cena de vidro em profundidade (blur) em todo slide, prints sangrando pela borda de baixo, botão do site */
/* Hallmark · pre-emit critique: P4 H5 E4 S5 R4 V4 */

* { box-sizing: border-box; }
html { overflow-x: clip; scroll-snap-type: y mandatory; scroll-behavior: smooth; }
body {
  margin: 0; overflow-x: clip; overscroll-behavior: none;
  background: var(--color-paper); color: var(--color-ink);
  font-family: var(--font-body); font-weight: 400; font-size: var(--text-base); line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
::selection { background: var(--color-accent-soft); color: var(--color-ink-deep); }
body.idle { cursor: none; }
body.black::after { content: ""; position: fixed; inset: 0; z-index: 1000; background: var(--color-ink); }
a { color: inherit; text-decoration: none; }
figure { margin: 0; }
kbd { font: 700 var(--text-sm)/1 var(--font-body); padding: var(--space-2xs) var(--space-xs); border: var(--rule); border-radius: 6px; background: var(--color-paper-2); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }

/* ---------- moldura fixa (N9 + Ft2) ---------- */
.chrome {
  position: fixed; left: 0; right: 0; z-index: var(--z-sticky);
  display: flex; align-items: center; justify-content: space-between;
  height: var(--space-2xl); padding-inline: var(--space-lg); pointer-events: none;
}
.chrome a, .chrome .counter { pointer-events: auto; }
.chrome-top { top: 0; }
.progress { position: fixed; left: 0; top: 0; right: 0; height: 2px; z-index: var(--z-sticky); pointer-events: none; }
.progress i { display: block; height: 100%; width: 0; background: var(--color-accent); transition: width var(--dur-long) var(--ease-out); }
.chrome-bottom { bottom: 0; }
.wordmark { display: inline-flex; align-items: center; gap: var(--space-xs); font: 700 var(--text-md)/1 var(--font-display); letter-spacing: -0.02em; color: var(--color-ink); white-space: nowrap; }
.wordmark .mark { width: 10px; height: 10px; border-radius: 2px; background: var(--color-volt); }
.label { font: 700 var(--text-sm)/1 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-muted); white-space: nowrap; }
.label .x { color: var(--color-accent-text); padding-inline: var(--space-2xs); }
.label .fiap { color: var(--color-fiap); }
.label-top { display: none; } /* no celular não cabe ao lado da marca; a parceria aparece nos slides 1, 4 e 10 */
.counter b { color: var(--color-ink); display: inline-block; min-width: 1.6em; }
.hint { display: none; align-items: center; gap: var(--space-xs); }
.link-site { text-transform: none; letter-spacing: 0.02em; color: var(--color-accent-text); }
.link-site:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- slides ---------- */
#deck { position: relative; z-index: var(--z-base); }
.slide { position: relative; min-height: 100dvh; scroll-snap-align: start; scroll-snap-stop: always; overflow: clip; }
.wrap {
  min-height: 100dvh; max-width: 104rem; margin-inline: auto;
  padding: var(--space-3xl) var(--space-lg) var(--space-4xl);
  display: grid; align-content: center; align-items: center; gap: var(--space-xl);
}
.split { grid-template-columns: minmax(0, 1fr); }
.stack { justify-items: center; text-align: center; gap: var(--space-lg); }

/* tipografia */
.display {
  margin: 0; font: 700 var(--text-display)/1.02 var(--font-display); letter-spacing: -0.035em; color: var(--color-ink);
  text-wrap: balance; overflow-wrap: anywhere; min-width: 0;
}
.display-s { font-size: var(--text-display-s); }
.display em { font-style: normal; color: var(--color-accent); }
.lede { margin: var(--space-lg) 0 0; max-width: 38ch; font: 600 var(--text-lede)/1.4 var(--font-body); color: var(--color-ink); text-wrap: pretty; }
.lede-center { margin-inline: auto; max-width: 60ch; }
.punch { margin: var(--space-lg) 0 0; max-width: 30ch; font: 700 var(--text-lg)/1.3 var(--font-display); letter-spacing: -0.02em; color: var(--color-ink); }

/* ações */
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-lg); margin-top: var(--space-xl); }
/* botão primário igual ao do site: azul da marca, texto branco, sombra sólida que afunda no clique */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-sm); height: 56px; padding-inline: var(--space-xl); border-radius: var(--radius-btn);
  background: var(--color-accent); color: var(--color-accent-ink); font: 800 var(--text-md)/1 var(--font-body); white-space: nowrap;
  box-shadow: var(--shadow-press);
  transition: background-color var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out), box-shadow var(--dur-micro) var(--ease-out);
}
.btn:hover { background: var(--color-accent-text); }
.btn:active { transform: translateY(4px); box-shadow: none; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.btn svg, .link svg { width: 1.1em; height: 1.1em; stroke-width: 2.5; }
.link { display: inline-flex; align-items: center; gap: var(--space-xs); font: 700 var(--text-base)/1 var(--font-body); color: var(--color-accent-text); white-space: nowrap; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }
.link:active { color: var(--color-ink-deep); }
i[data-icon] { display: inline-flex; }
i[data-icon] svg { width: 1em; height: 1em; }

/* prints reais: figura com fio, sem moldura desenhada */
.screen { border-radius: var(--radius-card); overflow: hidden; border: var(--rule); box-shadow: var(--shadow-whisper); background: var(--color-paper-2); }
.screen img { width: 100%; height: auto; }
.screen-hero { border-radius: var(--radius-screen); }

/* notas ancoradas nos prints (estado real da UI) */
.note {
  margin: 0; display: inline-grid; gap: var(--space-2xs); padding: var(--space-sm) var(--space-md); border-radius: var(--radius-card);
  background: var(--color-paper); border: var(--rule); box-shadow: var(--shadow-whisper); white-space: nowrap;
}
.note b { font: 700 var(--text-md)/1.15 var(--font-display); letter-spacing: -0.01em; }
.note span { font: 600 var(--text-base)/1.2 var(--font-body); color: var(--color-muted); }

/* ---------- capa ---------- */
.hero-visual { position: relative; width: min(100%, 74dvh); margin-inline: auto; aspect-ratio: 1 / 1; }
.hero-visual > * { position: absolute; }
.glass { left: 0; top: -2%; width: 100%; }
.screen-hero { left: 31%; top: 9%; width: 38%; rotate: -4deg; }
.note-a { left: 0; top: 14%; }
.note-b { left: 4%; bottom: 16%; }
.vento { right: 0; bottom: 2%; height: 42%; width: auto; }

/* ---------- números ---------- */
.stats { margin: 0; display: grid; gap: 0; }
.stat { padding-block: var(--space-lg); border-top: var(--rule); }
.stat:last-child { border-bottom: var(--rule); }
.stat dt { font: 900 var(--text-stat)/0.92 var(--font-display); letter-spacing: -0.05em; color: var(--color-accent); font-variant-numeric: tabular-nums; }
.stat dd { margin: var(--space-sm) 0 0; max-width: 30ch; font: 700 var(--text-stat-dd)/1.25 var(--font-body); color: var(--color-ink); text-wrap: pretty; }
.stat dd small { display: block; margin-top: var(--space-xs); font: 600 var(--text-sm)/1.3 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-muted); }
.stat-big .figure { margin: 0; font: 900 var(--text-stat)/0.92 var(--font-display); letter-spacing: -0.05em; color: var(--color-accent); font-variant-numeric: tabular-nums; }
.stat-big .lede { margin-top: var(--space-md); max-width: 26ch; font-weight: 700; line-height: 1.3; }

/* passos de 1910: lista ordinal, fios entre linhas */
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { position: relative; display: grid; grid-template-columns: var(--space-xl) minmax(0, 1fr); align-items: center; font: 700 var(--text-2xl)/1 var(--font-display); letter-spacing: -0.02em; }
.steps .w { padding-block: var(--space-md); border-top: var(--rule); }
.steps li:last-child .w { border-bottom: var(--rule); }
.steps .n { font: 700 var(--text-base)/1 var(--font-body); color: var(--color-muted); font-variant-numeric: tabular-nums; }
/* seta entre os passos: a ordem é o argumento */
.steps li + li::before {
  content: ""; position: absolute; left: 0; top: calc(-1 * var(--space-sm)); width: var(--space-lg); height: var(--space-lg);
  background: var(--color-accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14'/%3E%3Cpath d='m19 12-7 7-7-7'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14'/%3E%3Cpath d='m19 12-7 7-7-7'/%3E%3C/svg%3E") center / contain no-repeat;
}
.steps .fade .w { color: var(--color-muted); text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: var(--color-accent); }


/* origem: marca da FIAP com a cor dela, hospital em texto */
.s-fiap .display em { color: var(--color-fiap); }
.parceria { margin: 0 0 var(--space-lg); display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-md) var(--space-lg); }
.fiap-logo { height: var(--space-xl); width: auto; color: var(--color-fiap); }
.parceria .x { font: 700 var(--text-lg)/1 var(--font-display); color: var(--color-muted); }
.hmv-logo { height: var(--space-2xl); width: auto; }

/* prints com anotações */
.shot { position: relative; }
.note-float { position: absolute; left: var(--space-md); bottom: var(--space-md); }
.states { list-style: none; margin: var(--space-md) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.states li { display: inline-flex; align-items: center; gap: var(--space-sm); padding: var(--space-sm) var(--space-md); border-radius: var(--radius-card); background: var(--color-paper); border: var(--rule); box-shadow: var(--shadow-whisper); white-space: nowrap; }
.states b { display: block; font: 700 var(--text-md)/1.15 var(--font-display); }
.states span:not(.dot) { display: block; font: 600 var(--text-base)/1.2 var(--font-body); color: var(--color-muted); }
.states li > span:last-child { display: grid; }
.dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.dot.err { background: var(--color-err); } .dot.warn { background: var(--color-warn); } .dot.ok { background: var(--color-ok); }
.supervisora, .vento-canto { display: none; }

/* etiquetas de competência (pílulas pequenas) */
.tags { list-style: none; margin: var(--space-lg) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.tags li { padding: var(--space-xs) var(--space-md); border-radius: var(--radius-pill); background: var(--color-accent-soft); color: var(--color-ink-deep); font: 700 var(--text-base)/1 var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; }

/* fatos: lista com fios */
.facts { list-style: none; margin: var(--space-lg) 0 0; padding: 0; max-width: 40ch; }
.facts li { padding-block: var(--space-sm); border-top: var(--rule); font: 600 var(--text-lede)/1.3 var(--font-body); color: var(--color-ink); }
.facts li:last-child { border-bottom: var(--rule); }

/* três prints: altura limitada pela tela, largura segue */
.row { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: var(--space-md); width: 100%; }
.screen-sm { border-radius: var(--radius-card); max-width: 100%; }
.screen-sm img { max-height: 38dvh; width: auto; }

/* fecho: título centralizado, QR code para o site (gerado offline, tinta da marca); o Vento grande vive na cena */
.s-fim .wrap.stack { gap: var(--space-lg); }
.qr { display: inline-grid; max-width: 100%; justify-items: center; gap: var(--space-xs); padding: var(--space-md) var(--space-lg); border-radius: var(--radius-btn); background: var(--color-paper); border: var(--rule); box-shadow: var(--shadow-whisper); color: var(--color-ink); }
.qr-code { display: block; width: min(42dvh, 28rem); max-width: 100%; height: auto; }
.qr b { font: 800 var(--text-lg)/1 var(--font-body); }
.qr span { font: 600 var(--text-base)/1 var(--font-body); color: var(--color-muted); }

/* cena em profundidade (todos os slides): vidros longe com blur e leves, perto nítidos e cortados pela borda.
   Posição, tamanho e giro vêm de variáveis no HTML; só rotate/scale individuais, porque a entrada do GSAP escreve transform. */
.scene { position: absolute; inset: 0; overflow: clip; pointer-events: none; }
.scene img { position: absolute; width: auto; height: var(--h); left: var(--x, auto); right: var(--xr, auto); top: var(--y, auto); bottom: var(--yb, auto); rotate: var(--r, 0deg); scale: var(--s, 1); }
.scene .far { filter: blur(16px); opacity: 0.72; }
.scene .mid { filter: blur(4px); opacity: 0.9; }
.scene .desk { display: none; }
.slide > .wrap { position: relative; z-index: var(--z-raised); }
@media (max-width: 59.99rem) { .scene img { height: min(var(--h), 30dvh); } .scene .far { opacity: 0.45; } }

/* ---------- a partir de 40rem: o rótulo do topo cabe ao lado da marca ---------- */
@media (min-width: 40rem) { .label-top { display: inline; } }

/* ---------- a partir de 60rem: díptico ---------- */
@media (min-width: 60rem) {
  .chrome { padding-inline: var(--space-2xl); }
  .hint { display: inline-flex; }
  .wrap { padding: var(--space-3xl) var(--space-2xl) var(--space-4xl); gap: var(--space-2xl); }
  .wrap.stack { gap: var(--space-xl); }
  .split { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .flip .text { order: 2; }
  .flip .proof { order: 1; }
  .hero-visual { width: min(100%, 78dvh); }
  .note-float { left: -6%; bottom: 10%; }
  .states { position: absolute; right: -4%; top: 10%; margin: 0; display: grid; }
  .supervisora { display: block; position: absolute; left: -10%; bottom: -6%; height: 60%; width: auto; }
  .vento-canto { display: block; position: absolute; right: -6%; bottom: -8%; height: 52%; width: auto; }
  .screen-sm.up { margin-bottom: var(--space-lg); }
  .scene .desk { display: block; }
  /* print grande: título à esquerda, lede à direita, print centrado que sai pela borda de baixo */
  .bleed .wrap { max-width: none; align-content: start; padding-top: calc(var(--space-2xl) + var(--space-xl)); }
  .bleed .split { grid-template-columns: minmax(0, 1fr); }
  .bleed .text { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-content: end; align-items: end; column-gap: var(--space-2xl); width: 100%; max-width: 104rem; margin-inline: auto; }
  .bleed .text > * { grid-column: 2; }
  .bleed .text > .display { grid-column: 1; grid-row: 1 / -1; }
  .bleed .lede { margin-top: 0; }
  .bleed .proof { position: absolute; left: 0; right: 0; top: max(42%, var(--print-top, 42%)); width: min(76%, 120rem); margin-inline: auto; }
  /* o print dissolve na borda de baixo: o rodapé fica legível e o corte parece intencional */
  .bleed::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 14dvh; background: linear-gradient(to bottom, transparent, var(--color-paper)); z-index: calc(var(--z-raised) + 1); pointer-events: none; }
  .bleed .note-float { left: -4%; top: 30%; bottom: auto; }
  .bleed .states { right: -3%; top: 8%; }
  .bleed .supervisora { left: -7%; top: 16%; bottom: auto; height: 62%; }
  /* três telefones grandes saindo pela borda de baixo, o do meio mais alto */
  .bleed .row { align-items: flex-start; flex-wrap: nowrap; gap: 2.5%; }
  .bleed .screen-sm { width: 30%; border-radius: var(--radius-screen); }
  .bleed .screen-sm img { max-height: none; width: 100%; }
  .bleed .screen-sm.up { margin-bottom: 0; margin-top: calc(-1 * var(--space-2xl)); }
}

/* ---------- a partir de 90rem: mais ar ---------- */
@media (min-width: 90rem) {
  .chrome { padding-inline: var(--space-3xl); }
  .wrap { padding-inline: var(--space-3xl); gap: var(--space-3xl); }
}

/* ---------- 900px de altura (MacBook Air): números um pouco menores para os dois stats caberem ---------- */
@media (min-width: 60rem) and (max-height: 60rem) {
  :root { --text-stat: clamp(4.5rem, 9vw, 8rem); }
  .stat { padding-block: var(--space-md); }
  .screen-sm img { max-height: 35dvh; }
  .qr-code { width: min(32dvh, 20rem); }
}

/* ---------- projetor: largura de desktop, pouca altura (720p, 768p, 864p) ---------- */
@media (min-width: 60rem) and (max-height: 56rem) {
  :root {
    --text-display: clamp(2.5rem, 3.9vw + 0.5rem, 4rem);
    --text-display-s: clamp(2rem, 3vw + 0.5rem, 3.25rem);
    --text-stat: clamp(4.5rem, 8vw, 7rem);
  }
  .wrap { padding-block: calc(var(--space-2xl) + var(--space-md)); gap: var(--space-xl); }
  .lede, .punch, .tags, .facts { margin-top: var(--space-md); }
  .actions { margin-top: var(--space-lg); }
  .stat { padding-block: var(--space-md); }
  .stat dd { font-size: var(--text-lede); }
  .steps .w { padding-block: var(--space-sm); }
  .facts li { padding-block: var(--space-xs); }
  .hero-visual { width: min(100%, 70dvh); }
  .screen-sm img { max-height: 34dvh; }
  .qr { padding: var(--space-sm) var(--space-md); }
  .qr-code { width: min(32dvh, 16rem); }
}

/* ---------- impressão: um slide por página 16:9 (Cmd+P vira o PDF de reserva) ---------- */
@media print {
  @page { size: landscape; margin: 0; }
  html { scroll-snap-type: none; scroll-behavior: auto; }
  body { background: var(--color-paper); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .slide { height: 100vh; min-height: 0; break-after: page; }
  .wrap { min-height: 100vh; }
  .progress, .hint, .counter, .speaker { display: none !important; }
  .text > *, .tags li, .facts li, .stack > *, .hero-visual > *, .stat, .steps li, .shot > *, .states li, .stat-big > *, .row > *, .scene > * { opacity: 1 !important; }
}

/* ---------- janela do apresentador (?speaker): roteiro, próximo slide, relógio ---------- */
body.is-speaker > :not(.speaker) { display: none !important; }
.speaker { min-height: 100dvh; padding: var(--space-xl) var(--space-lg); display: grid; align-content: start; gap: var(--space-lg); max-width: 64rem; margin-inline: auto; }
.speaker .meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-md); }
.speaker .clock { font-variant-numeric: tabular-nums; color: var(--color-ink); }
.speaker .now { margin: 0; font: 700 var(--text-xl)/1.1 var(--font-display); letter-spacing: -0.03em; text-wrap: balance; }
.speaker .now em { font-style: normal; color: var(--color-accent); }
.speaker .script { display: grid; gap: var(--space-md); font-size: var(--text-lg); line-height: 1.45; color: var(--color-ink); text-wrap: pretty; }
.speaker .script p { margin: 0; }
.speaker .script b { display: block; margin-bottom: var(--space-2xs); font: 700 var(--text-sm)/1 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-accent-text); }
.speaker .next { padding-top: var(--space-lg); border-top: var(--rule); color: var(--color-muted); font-size: var(--text-md); }
.speaker .next b { color: var(--color-ink); }
.speaker .keys { color: var(--color-muted); font-size: var(--text-sm); }

/* ---------- movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 150ms !important; animation-duration: 150ms !important; animation-iteration-count: 1 !important; }
}
