/* ==========================================================================
   Pedro kmz — portfólio
   Visual macOS escuro com os mesmos tokens do Downloader (que segue o YT Jobs
   Masters). Para ajustar cores, fontes, raios, sombras e espaços, mexa só no :root.
   ========================================================================== */

:root {
  /* superfícies, do fundo para cima (iguais ao Downloader) */
  --window: #1e1e1e;
  --panel: #252525;
  --popover: #2c2c2e;
  --material: rgba(40, 40, 40, 0.72);     /* vidro: mesmo valor da barra lateral do Downloader */
  --separator: rgba(255, 255, 255, 0.08);
  --edge: rgba(0, 0, 0, 0.5);             /* contorno escuro por fora das janelas */

  /* texto */
  --label-strong: #f5f5f7;
  --label: rgba(255, 255, 255, 0.88);
  --label-2: rgba(255, 255, 255, 0.55);
  --label-3: rgba(255, 255, 255, 0.35);

  /* preenchimentos de controles */
  --fill: rgba(255, 255, 255, 0.1);
  --fill-hover: rgba(255, 255, 255, 0.14);
  --fill-subtle: rgba(255, 255, 255, 0.05);

  /* a única cor de destaque, e o verde de "feito" */
  --accent: #0a84ff;
  --accent-soft: rgba(10, 132, 255, 0.15);
  --accent-tint: rgba(10, 132, 255, 0.06);
  --accent-ring: rgba(10, 132, 255, 0.6);
  --green: #30d158;

  /* semáforo das janelas */
  --traffic-close: #ff5f57;
  --traffic-minimize: #febc2e;
  --traffic-zoom: #28c840;
  --traffic-idle: rgba(255, 255, 255, 0.16);

  /* tipografia: fonte do sistema (SF Pro no Mac e no iPhone) */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;
  --text-xs: 12px;
  --text-sm: 13px;
  --text-base: 15px;
  --text-md: 17px;
  --text-lg: 20px;
  --text-xl: clamp(26px, 3.6vw, 34px);
  --text-display: clamp(38px, 6.4vw, 66px);

  /* raios (iguais ao Downloader) */
  --radius-control: 6px;
  --radius-badge: 5px;
  --radius-card: 10px;
  --radius-panel: 14px;                   /* painéis flutuantes, como as notificações */

  /* sombras */
  --shadow-control: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-window: 0 0 0 1px var(--edge), 0 12px 32px rgba(0, 0, 0, 0.35);
  --shadow-window-key: 0 0 0 1px var(--edge), 0 22px 60px rgba(0, 0, 0, 0.55);

  /* espaços */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --gutter: 16px;
  --section-gap: clamp(72px, 11vw, 128px);
  --page-width: 1040px;
  --text-width: 680px;
  --topbar-height: 52px;

  /* movimento: curvas suaves como as do macOS */
  --duration: 150ms;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);          /* entradas: rápido no começo, assenta devagar */
  --ease-spring: cubic-bezier(0.34, 1.36, 0.64, 1);   /* passa um pouco do ponto e volta */
  --stagger: 80ms;                                    /* intervalo entre itens que entram em cascata */

  color-scheme: dark;
}

@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; } }

/* ---------------------------------------------------------------- base */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-height) + var(--space-4));
}

body {
  margin: 0;
  background: var(--window);
  color: var(--label);
  font-family: var(--font-sans);
  font-size: var(--text-md);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

/* sem o "quique" ao rolar com força no topo e no fim: o Safari preencheria a faixa que
   aparece com uma cor lisa, cortando o brilho dos cantos com uma borda */
html, body { overscroll-behavior-y: none; }

/* "papel de parede" do Downloader: fixo e estático, não repinta ao rolar */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1200px 800px at -10% -20%, rgba(70, 90, 140, 0.35), transparent 60%),
    radial-gradient(900px 700px at 110% 120%, rgba(120, 70, 110, 0.25), transparent 60%);
}

h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
h1, h2, h3 { font-weight: 600; line-height: 1.2; text-wrap: balance; }
p { text-wrap: pretty; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { font-weight: 600; color: var(--label); }

:focus-visible { outline: 3px solid var(--accent-ring); outline-offset: 2px; }
::selection { background: rgba(10, 132, 255, 0.45); }

.sr-only {
  position: absolute; 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; }
.nowrap { white-space: nowrap; }

.icon {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container { width: min(100% - 2 * var(--gutter), var(--page-width)); margin-inline: auto; }
.container--narrow { width: min(100% - 2 * var(--gutter), var(--text-width)); }

/* ---------------------------------------------------------------- barra do topo */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--topbar-height);
  border-bottom: 1px solid transparent;
  transition: background-color var(--duration) var(--ease), border-color var(--duration) var(--ease);
}
.topbar.is-scrolled {
  background: var(--material);
  border-bottom-color: var(--separator);
  -webkit-backdrop-filter: blur(30px) saturate(1.6);
  backdrop-filter: blur(30px) saturate(1.6);
}
.topbar__inner { display: flex; align-items: center; gap: var(--space-4); height: 100%; }

.brand { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--label); font-size: var(--text-base); font-weight: 600; }
.brand:hover { text-decoration: none; }
.brand__icon { width: 24px; height: 24px; }

.topbar__nav { display: none; gap: 2px; margin-left: auto; }
.topbar__nav a {
  padding: 6px 10px;
  border-radius: var(--radius-control);
  color: var(--label-2);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: background-color var(--duration) var(--ease), color var(--duration) var(--ease);
}
.topbar__nav a:hover { background: var(--fill-subtle); color: var(--label); text-decoration: none; }
.topbar__nav a.is-current { background: var(--fill); color: var(--label); }  /* seção que está na tela */
.topbar__cta { margin-left: auto; }
@media (min-width: 760px) {
  .topbar__nav { display: flex; }
  .topbar__cta { margin-left: 0; }
}

/* ---------------------------------------------------------------- controles */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--radius-control);
  background: var(--fill);
  color: var(--label);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--duration) var(--ease), filter var(--duration) var(--ease), color var(--duration) var(--ease), transform var(--duration) var(--ease);
}
.btn:hover { background: var(--fill-hover); text-decoration: none; }
.btn:active { background: var(--fill); transform: scale(0.97); }
.btn .icon { width: 16px; height: 16px; }
.btn--primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-control); }
.btn--primary:hover { background: var(--accent); filter: brightness(1.1); }
.btn--primary:active { background: var(--accent); filter: brightness(0.95); }
.btn--lg { height: 46px; padding: 0 20px; border-radius: var(--radius-card); font-size: var(--text-base); }
.btn--lg .icon { width: 18px; height: 18px; }
.btn--sm { height: 26px; padding: 0 9px; gap: 5px; font-size: var(--text-xs); }
.btn--sm .icon { width: 13px; height: 13px; }
.btn.is-copied { color: var(--green); }

.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); }
.actions .btn { flex: 1 1 auto; }
@media (min-width: 480px) { .actions .btn { flex: 0 0 auto; } }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--radius-badge);
  background: var(--fill);
  color: var(--label-2);
  font-size: var(--text-xs);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}
.chip .icon { width: 13px; height: 13px; }
.chip--accent { background: var(--accent-soft); color: var(--accent); }
.chip--glass {
  background: rgba(30, 30, 30, 0.55);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(12px) saturate(1.6);
  backdrop-filter: blur(12px) saturate(1.6);
}

/* ---------------------------------------------------------------- janela do macOS */

.window {
  --light-1: var(--traffic-idle);
  --light-2: var(--traffic-idle);
  --light-3: var(--traffic-idle);
  --title: var(--label-3);
  position: relative;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--separator);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-window);
  transition: box-shadow 200ms var(--ease);
}

/* janela "em foco": semáforo colorido, título mais claro e sombra maior */
.window--key,
.clip--featured .window,
.clip.is-playing .window {
  --light-1: var(--traffic-close);
  --light-2: var(--traffic-minimize);
  --light-3: var(--traffic-zoom);
  --title: var(--label);
  box-shadow: var(--shadow-window-key);
}
@media (hover: hover) {
  .clip:hover .window {
    --light-1: var(--traffic-close);
    --light-2: var(--traffic-minimize);
    --light-3: var(--traffic-zoom);
    --title: var(--label);
    box-shadow: var(--shadow-window-key);
  }
  .reel:has(.clip:not(.clip--featured):hover) .clip--featured:not(.is-playing) .window {
    --light-1: var(--traffic-idle);
    --light-2: var(--traffic-idle);
    --light-3: var(--traffic-idle);
    --title: var(--label-3);
    box-shadow: var(--shadow-window);
  }
}
/* outro vídeo tocando: o principal sai de foco */
.reel:has(.clip.is-playing) .clip--featured:not(.is-playing) .window {
  --light-1: var(--traffic-idle);
  --light-2: var(--traffic-idle);
  --light-3: var(--traffic-idle);
  --title: var(--label-3);
  box-shadow: var(--shadow-window);
}

.window__bar {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  align-items: center;
  gap: var(--space-2);
  height: 30px;
  padding: 0 10px;
  background: var(--popover);
  border-bottom: 1px solid rgba(0, 0, 0, 0.4);
}
.traffic { display: flex; gap: 8px; }
.traffic i { width: 12px; height: 12px; border-radius: 50%; transition: background-color var(--duration) var(--ease); }
.traffic i:nth-child(1) { background: var(--light-1); }
.traffic i:nth-child(2) { background: var(--light-2); }
.traffic i:nth-child(3) { background: var(--light-3); }
.window__title {
  overflow: hidden;
  color: var(--title);
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color var(--duration) var(--ease);
}

/* ---------------------------------------------------------------- topo da página */

.hero { padding-top: clamp(40px, 6vw, 72px); text-align: center; }
.eyebrow { margin-bottom: var(--space-4); color: var(--label-2); font-size: var(--text-sm); font-weight: 500; }
.hero__title {
  max-width: 20ch;
  margin-inline: auto;
  color: var(--label-strong);
  font-size: var(--text-display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.hero__lead {
  max-width: 36em;
  margin: var(--space-5) auto 0;
  color: var(--label-2);
  font-size: clamp(var(--text-md), 1.9vw, var(--text-lg));
  line-height: 1.45;
}
.hero .actions { margin-top: var(--space-6); }

.checks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2) var(--space-5);
  margin: var(--space-4) 0 0;
  padding: 0;
  list-style: none;
  color: var(--label-2);
  font-size: var(--text-sm);
}
.checks li { display: inline-flex; align-items: center; gap: 6px; }
.checks .icon { width: 15px; height: 15px; stroke-width: 2.2; }

/* números: uma linha agrupada, como as listas dos Ajustes do Sistema */
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 620px;
  margin: var(--space-6) auto 0;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--separator);
  border-radius: var(--radius-card);
}
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 3px; padding: var(--space-3) var(--space-2); }
.stat + .stat { border-left: 1px solid var(--separator); }
.stat dd { color: var(--label); font-size: clamp(22px, 3.4vw, 30px); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat dt { color: var(--label-2); font-size: var(--text-xs); line-height: 1.35; }

/* ---------------------------------------------------------------- seções */

.section { padding-top: var(--section-gap); }
.hero + .section { padding-top: clamp(56px, 7vw, 80px); } /* vídeos colados no topo: aparecem mais cedo */
.section__head { max-width: var(--text-width); margin: 0 auto var(--space-6); text-align: center; }
.section__head h2,
.about h2,
.contact h2 { color: var(--label-strong); font-size: var(--text-xl); letter-spacing: -0.02em; }
.section__head p { margin-top: var(--space-2); color: var(--label-2); }
.note { margin-top: var(--space-5); color: var(--label-3); font-size: var(--text-sm); text-align: center; }

/* ---------------------------------------------------------------- vídeos */

/* celular: o principal em largura total e os outros dois lado a lado */
.reel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6) var(--space-3);
  align-items: start;
}
.clip--featured { grid-column: 1 / -1; justify-self: center; width: min(100%, 420px); }

.player { position: relative; aspect-ratio: 9 / 16; overflow: hidden; background: #000; } /* a capa ampliada no hover não invade a barra */
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.player__poster {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  color: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 200ms var(--ease), visibility 200ms var(--ease);
}
.player__poster img { width: 100%; height: 100%; object-fit: cover; }
.player[data-state="active"] .player__poster { opacity: 0; visibility: hidden; }

/* player pronto por baixo da capa: o toque no meio passa direto para o YouTube e o vídeo toca
   já no primeiro toque (inclusive no iPhone). As faixas de cima e de baixo continuam na capa,
   para ninguém cair sem querer no título ou no logo do YouTube. */
.player[data-state="cued"] .player__poster { pointer-events: none; }
.player[data-state="cued"] .player__poster::before,
.player[data-state="cued"] .player__poster::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: auto;
}
.player[data-state="cued"] .player__poster::before { top: 0; height: 20%; }
.player[data-state="cued"] .player__poster::after { bottom: 0; height: 16%; }

.player__hint { position: absolute; top: 10px; right: 10px; }

.player__button {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(30, 30, 30, 0.55);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 8px 24px rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
  backdrop-filter: blur(14px) saturate(1.6);
  transform: translate(-50%, -50%);
  transition: transform var(--duration) var(--ease), background-color var(--duration) var(--ease);
}
.player__button .icon { width: 26px; height: 26px; } /* o desenho já vem um pouco à direita: centro óptico */
.player__button > *,
.player__button::after { grid-area: 1 / 1; }
@media (hover: hover) {
  .player:hover .player__button { background: var(--accent); transform: translate(-50%, -50%) scale(1.06); }
}

/* tocou antes de o player ficar pronto: o botão vira um indicador giratório */
.player[data-state="starting"] .player__button .icon { visibility: hidden; }
.player[data-state="starting"] .player__button::after {
  content: "";
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

/* sem player na página (vídeo bloqueado ou site aberto direto do computador):
   o botão vira "Watch on YouTube ↗" e a capa abre o vídeo em outra aba */
.player[data-state="error"] .player__hint { display: none; }
.player[data-state="error"] .player__button {
  grid-auto-flow: column;
  gap: 6px;
  width: max-content;  /* "auto" encolheria o botão pela metade da largura (left: 50%) */
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
}
.player[data-state="error"] .player__button > *,
.player[data-state="error"] .player__button::after { grid-area: auto; }
.player[data-state="error"] .player__button .icon { width: 15px; height: 15px; margin: 0; }
.player[data-state="error"] .player__button::after {
  content: "Watch on YouTube";
  order: -1;
  font-size: var(--text-sm);
  font-weight: 600;
  white-space: nowrap;
}

.clip__meta { padding: var(--space-3) 2px 0; }
.clip__views { color: var(--label-2); font-size: var(--text-sm); }
.clip__views strong { margin-right: 2px; color: var(--label); font-size: var(--text-lg); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.clip__credit { margin-top: 2px; color: var(--label-2); font-size: var(--text-sm); }
.clip__link { display: inline-flex; align-items: center; gap: 3px; margin-top: var(--space-2); font-size: var(--text-sm); font-weight: 500; }
.clip__link .icon { width: 13px; height: 13px; }

/* janelas pequenas no celular */
@media (max-width: 759px) {
  .clip:not(.clip--featured) .window__bar { grid-template-columns: auto minmax(0, 1fr); gap: var(--space-2); padding: 0 8px; }
  .clip:not(.clip--featured) .traffic { gap: 5px; }
  .clip:not(.clip--featured) .traffic i { width: 9px; height: 9px; }
  .clip:not(.clip--featured) .window__title { text-align: left; }
  .clip:not(.clip--featured) .eq { display: none; }
  .clip:not(.clip--featured) .player__button { width: 48px; height: 48px; }
  .clip:not(.clip--featured) .player__button .icon { width: 20px; height: 20px; }
  .clip:not(.clip--featured) .player[data-state="error"] .player__button { width: max-content; height: 34px; padding: 0 12px; }
  .clip:not(.clip--featured) .player[data-state="error"] .player__button .icon { width: 13px; height: 13px; }
  .clip:not(.clip--featured) .player[data-state="error"] .player__button::after { content: "YouTube"; font-size: var(--text-xs); }
  .clip:not(.clip--featured) .clip__views strong { font-size: var(--text-md); }
}

/* desktop: três colunas, o principal no centro e um pouco maior */
@media (min-width: 760px) {
  .reel { grid-template-columns: 1fr 1.2fr 1fr; gap: var(--space-6); align-items: center; }
  .clip--featured { grid-column: 2; grid-row: 1; width: 100%; }
}

/* ---------------------------------------------------------------- depoimento */

.review__body { padding: var(--space-6) clamp(20px, 5vw, 40px) var(--space-5); }
.review__quote p { color: var(--label); font-size: clamp(18px, 2.4vw, 22px); line-height: 1.5; letter-spacing: -0.01em; }
.review__author {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--separator);
}
.review__author img { width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 0 0 1px var(--separator); }
.review__who { display: flex; flex-direction: column; font-size: var(--text-sm); line-height: 1.35; }
.review__who span { color: var(--label-2); }
.review__link { display: inline-flex; align-items: center; gap: 3px; margin-left: auto; font-size: var(--text-sm); font-weight: 500; }
.review__link .icon { width: 13px; height: 13px; }

/* ---------------------------------------------------------------- especialidade */

.card { background: var(--panel); border: 1px solid var(--separator); border-radius: var(--radius-card); }

.pillars { display: grid; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.pillar { padding: var(--space-5); }
.pillar__icon { width: 28px; height: 28px; margin-bottom: var(--space-3); color: var(--accent); }
.pillar h3 { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); font-size: var(--text-md); }
.pillar p { margin-top: 6px; color: var(--label-2); font-size: var(--text-base); }

.pillar--lead {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-4);
  background: linear-gradient(var(--accent-tint), var(--accent-tint)), var(--panel);
  border-color: rgba(10, 132, 255, 0.25);
}
.pillar--lead .pillar__icon { width: 34px; height: 34px; margin: 0; }
.pillar--lead p { max-width: 60ch; font-size: var(--text-md); }

@media (min-width: 760px) {
  .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
  .pillar--lead { grid-column: 1 / -1; }
}

/* ---------------------------------------------------------------- sobre */

.about { text-align: center; }
.about p { margin-top: var(--space-4); color: var(--label-2); font-size: clamp(var(--text-md), 2vw, var(--text-lg)); line-height: 1.6; }

/* ---------------------------------------------------------------- contato */

.contact__body { padding: clamp(24px, 5vw, 40px); text-align: center; }
.contact__lead { max-width: 34em; margin: var(--space-3) auto 0; color: var(--label-2); }

.inset {
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: var(--popover);
  border: 1px solid var(--separator);
  border-radius: var(--radius-card);
  list-style: none;
  text-align: left;
}
.inset > * + * { border-top: 1px solid var(--separator); }

.steps { margin-top: var(--space-5); }
.step { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: var(--space-3); padding: var(--space-3) var(--space-4); }
.step__num {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: var(--text-xs);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.step h3 { font-size: var(--text-base); line-height: 1.6; }
.step p { color: var(--label-2); font-size: var(--text-sm); }

.contact .actions { margin-top: var(--space-5); }
.contact__email { margin-top: var(--space-3); font-size: var(--text-sm); }
.contact__email a { color: var(--label-2); }

.others { margin-top: var(--space-5); }
.inset__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 48px;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
}
.others__label { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: 500; }
.others__label .icon { width: 16px; height: 16px; color: var(--label-2); }
.others__value { display: inline-flex; align-items: center; gap: var(--space-3); color: var(--label-2); }
.others a { display: inline-flex; align-items: center; gap: 3px; font-weight: 500; }
.others a .icon { width: 13px; height: 13px; }

/* ---------------------------------------------------------------- rodapé */

.footer { padding: var(--space-7) 0 var(--space-6); color: var(--label-3); font-size: var(--text-xs); text-align: center; }

/* ---------------------------------------------------------------- aviso (notificação do macOS) */

.toast {
  position: fixed;
  top: calc(var(--topbar-height) + 12px);
  right: 16px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(340px, calc(100vw - 32px));
  padding: 12px 14px;
  border: 1px solid var(--separator);
  border-radius: var(--radius-panel);
  background: var(--material);
  box-shadow: var(--shadow-window-key);
  -webkit-backdrop-filter: blur(30px) saturate(1.6);
  backdrop-filter: blur(30px) saturate(1.6);
  font-size: var(--text-sm);
  line-height: 1.35;
  opacity: 0;
  visibility: hidden;
  transform: translateX(calc(100% + 24px));
  transition: transform 400ms var(--ease-out), opacity 300ms var(--ease), visibility 0s linear 400ms;
}
.toast.is-in {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: transform 550ms var(--ease-spring), opacity 200ms var(--ease), visibility 0s;
}
.toast__icon { width: 34px; height: 34px; flex: none; }
.toast__text { display: flex; flex-direction: column; min-width: 0; }
.toast__text strong { font-weight: 600; }
.toast__text span { overflow: hidden; color: var(--label-2); text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 639px) {
  .toast { left: 16px; width: auto; transform: translateY(calc(-100% - var(--topbar-height) - 24px)); }
}

/* ---------------------------------------------------------------- movimento
   Só anima transform e opacity (quem trabalha é a placa de vídeo, a rolagem não trava)
   e tudo some para quem ativou "Reduzir movimento" no sistema. */

@keyframes spin { to { transform: rotate(360deg); } }

/* abertura da página: a barra desce e o topo entra em cascata */
@keyframes drop-in { from { opacity: 0; transform: translateY(-10px); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } }
.topbar { animation: drop-in 600ms var(--ease-out) both; }
.hero > * { animation: rise-in 700ms var(--ease-out) both; }
.hero > :nth-child(2) { animation-delay: calc(var(--stagger) * 1); }
.hero > :nth-child(3) { animation-delay: calc(var(--stagger) * 2); }
.hero > :nth-child(4) { animation-delay: calc(var(--stagger) * 3); }
.hero > :nth-child(5) { animation-delay: calc(var(--stagger) * 4); }
.hero > :nth-child(6) { animation-delay: calc(var(--stagger) * 5); }

/* entrada ao rolar: o texto sobe e as janelas "abrem" (o main.js põe .is-in quando aparecem) */
.js [data-reveal] { opacity: 0; transform: translateY(18px); }
.js [data-reveal="window"] { transform: translateY(16px) scale(0.96); }
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition: opacity 600ms var(--ease-out), transform 800ms var(--ease-out), box-shadow 200ms var(--ease);
  transition-delay: calc(var(--i, 0) * var(--stagger));
}
.reel > :nth-child(2), .pillars > :nth-child(2) { --i: 1; }
.reel > :nth-child(3), .pillars > :nth-child(3) { --i: 2; }
.pillars > :nth-child(4) { --i: 3; }

/* vídeos: a capa aproxima de leve sob o mouse */
.player__poster img { transition: transform 600ms var(--ease-out); }
@media (hover: hover) {
  .player:hover .player__poster img { transform: scale(1.04); }
}

/* equalizador na barra de título enquanto o vídeo toca (como o som nas abas do Safari) */
@keyframes eq { from { transform: scaleY(0.3); } to { transform: scaleY(1); } }
.eq {
  display: inline-flex;
  align-items: flex-end;
  justify-self: end;
  gap: 2px;
  height: 11px;
  opacity: 0;
  transition: opacity 200ms var(--ease);
}
.eq i { width: 3px; height: 100%; border-radius: 1px; background: var(--accent); transform: scaleY(0.35); transform-origin: bottom; }
.clip.is-playing .eq { opacity: 1; }
.clip.is-playing .eq i { animation: eq 800ms ease-in-out infinite alternate; }
.clip.is-playing .eq i:nth-child(2) { animation-duration: 620ms; animation-delay: -200ms; }
.clip.is-playing .eq i:nth-child(3) { animation-duration: 980ms; animation-delay: -450ms; }

/* "Sound on": as ondas pulsam algumas vezes quando o vídeo principal aparece */
@keyframes wave { 50% { opacity: 0.15; } }
.clip.is-in .player__hint .wave { animation: wave 1.1s ease-in-out 900ms 3; }
.clip.is-in .player__hint .wave + .wave { animation-delay: 1050ms; }

/* ícone do sound design: as barras sobem e descem quando o cartão aparece e sob o mouse */
@keyframes bar { 50% { transform: scaleY(0.35); } }
.bars path { transform-box: fill-box; transform-origin: center; }
.bars path:nth-child(2) { --n: 1; }
.bars path:nth-child(3) { --n: 2; }
.bars path:nth-child(4) { --n: 3; }
.bars path:nth-child(5) { --n: 4; }
.pillar--lead.is-in .bars path { animation: bar 700ms ease-in-out calc(500ms + var(--n, 0) * 90ms) 2; }
@media (hover: hover) {
  .pillar--lead:hover .bars path { animation: bar 700ms ease-in-out calc(var(--n, 0) * 90ms) infinite; }
}

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

@media print {
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
}
