/* ==========================================================================
   Web2midia · Notebook que abre a tampa (topo da página de Sites)
   Adaptado de "Notebook que Abre a Tampa" © 2026 Upward Creative Academy
   (licença: uso liberado em projetos próprios e de clientes; proibido revender
   ou redistribuir como template, kit, curso ou produto).
   Mudanças: cores e fontes da Web2midia, sem fundo próprio (usa o do topo),
   telas com prints reais do portfólio, selos com tipo de projeto e segmento.
   Sem JS: a tampa aparece de frente, sem teclado, mostrando o primeiro site.
   ========================================================================== */
.upw-nb {
  --upw-ink: #fff; --upw-muted: rgba(238, 243, 248, .66); --upw-line: rgba(255, 255, 255, .16);
  --upw-accent: #74CFF8;
  --upw-alu-1: #d9dde2; --upw-alu-2: #9aa0a8;
  --upw-w: clamp(270px, 33vw, 490px);
  position: relative; display: grid; justify-items: center; width: 100%; color: var(--upw-ink);
  font: 400 15px/1.5 var(--f-sans); animation: riseIn .7s var(--ease-out) .12s both;
}
.upw-nb *, .upw-nb *::before, .upw-nb *::after { box-sizing: border-box; }
/* cena */
.upw-nb__scene { position: relative; width: 100%; height: calc(var(--upw-w) * 1.02); perspective: 1700px; perspective-origin: 50% 32%; touch-action: pan-y; cursor: grab; -webkit-user-select: none; user-select: none; }
.upw-nb__scene.is-drag { cursor: grabbing; }
.upw-nb__rig { position: absolute; left: 50%; top: calc(var(--upw-w) * .66); width: var(--upw-w); height: 0; margin-left: calc(var(--upw-w) * -.5); transform-style: preserve-3d; will-change: transform; }
.upw-nb__deck { position: absolute; left: 0; top: 0; width: var(--upw-w); height: calc(var(--upw-w) * .66); transform-origin: 50% 0; transform: rotateX(90deg); border-radius: 0 0 calc(var(--upw-w) * .03) calc(var(--upw-w) * .03);
  background: radial-gradient(70% 50% at 30% 20%, rgba(255, 255, 255, .45), transparent 70%), linear-gradient(180deg, var(--upw-alu-1), var(--upw-alu-2)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45); }
.upw-nb__keys { position: absolute; left: 13%; right: 13%; top: 7%; height: 46%; display: grid; grid-template-rows: .6fr repeat(5, 1fr); gap: 4.5% 0; padding: 1.4%; border-radius: 4px; background: rgba(40, 46, 56, .25); }
.upw-nb__keys span { display: flex; gap: 1.2%; }
.upw-nb__keys i { flex: 1; border-radius: 3px; background: linear-gradient(180deg, #2b2e34, #17191d); box-shadow: 0 1px 0 rgba(255, 255, 255, .25); }
.upw-nb__grille { position: absolute; top: 7%; width: 9%; height: 46%; background: radial-gradient(circle, rgba(30, 34, 40, .5) 0 .9px, transparent 1.3px) 0 0 / 5px 5px; }
.upw-nb__grille.is-l { left: 2.5%; } .upw-nb__grille.is-r { right: 2.5%; }
.upw-nb__pad { position: absolute; left: 31%; right: 31%; top: 58%; bottom: 6%; border-radius: 6px; background: linear-gradient(180deg, rgba(0, 0, 0, .05), rgba(255, 255, 255, .22)); box-shadow: inset 0 0 0 1px rgba(70, 76, 86, .25); }
.upw-nb__edge { position: absolute; left: 0; top: 0; height: calc(var(--upw-w) * .024); background: linear-gradient(180deg, #c4c8ce, #868b93); }
.upw-nb__edge.is-front { width: var(--upw-w); transform: translateZ(calc(var(--upw-w) * .66)); border-radius: 0 0 6px 6px; }
.upw-nb__edge.is-front::after { content: ''; position: absolute; left: 44%; right: 44%; top: 0; height: 45%; border-radius: 0 0 8px 8px; background: rgba(50, 56, 64, .35); }
.upw-nb__edge.is-l { width: calc(var(--upw-w) * .66); transform-origin: 0 0; transform: rotateY(-90deg); background: linear-gradient(180deg, #aeb3ba, #767c85); }
.upw-nb__edge.is-r { left: calc(var(--upw-w) * .34); width: calc(var(--upw-w) * .66); transform-origin: 100% 0; transform: rotateY(90deg); background: linear-gradient(180deg, #cfd3d8, #939aa2); }
.upw-nb__lid { position: absolute; left: 0; top: calc(var(--upw-w) * -.655); width: var(--upw-w); height: calc(var(--upw-w) * .655); transform-origin: 50% 100%; transform: rotateX(var(--upw-lid, 12deg)); transform-style: preserve-3d; }
.upw-nb__face { position: absolute; inset: 0; border-radius: calc(var(--upw-w) * .028) calc(var(--upw-w) * .028) 3px 3px; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.upw-nb__inner { background: #0b0b0c; box-shadow: inset 0 0 0 1.5px #9aa0a8, inset 0 0 0 3px #0b0b0c, inset 0 0 0 4px rgba(255, 255, 255, .08), 0 40px 90px -40px rgba(0, 139, 204, .55); }
.upw-nb__outer { transform: rotateY(180deg); background: radial-gradient(60% 50% at 40% 30%, rgba(255, 255, 255, .5), transparent 70%), linear-gradient(160deg, var(--upw-alu-1), var(--upw-alu-2)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55); }
.upw-nb__outer::after { content: ''; position: absolute; left: 50%; top: 50%; width: 15%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 70%); }
.upw-nb__screen { position: absolute; left: 2.4%; right: 2.4%; top: 3.6%; bottom: 3.4%; overflow: hidden; border-radius: 4px; background: #000; }
.upw-nb__notch { position: absolute; z-index: 3; left: 50%; top: 3.6%; width: 9%; height: 3.4%; margin-left: -4.5%; border-radius: 0 0 6px 6px; background: #0b0b0c; }
.upw-nb__sites { position: absolute; z-index: 1; inset: 0; transition: opacity .9s, filter .9s; }
.upw-nb.is-off .upw-nb__sites { opacity: 0; filter: brightness(2) blur(4px); }
.upw-nb__glare { position: absolute; z-index: 2; inset: 0; pointer-events: none; mix-blend-mode: screen; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .12) 42%, rgba(255, 255, 255, .02) 52%, transparent 58%) var(--upw-gp, 50%) 0 / 260% 100% no-repeat; }
.upw-nb__hinge { position: absolute; left: 6%; right: 6%; top: calc(var(--upw-w) * -.012); height: calc(var(--upw-w) * .02); border-radius: 6px; background: linear-gradient(180deg, #3a3d42, #15171a); transform: translateZ(-1px); }
.upw-nb__shadow { position: absolute; left: 50%; top: calc(var(--upw-w) * .9); width: calc(var(--upw-w) * 1.25); height: calc(var(--upw-w) * .12); margin-left: calc(var(--upw-w) * -.625); border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .65), transparent); filter: blur(6px); pointer-events: none; }
/* selos (vidro escuro sobre o fundo do topo) */
.upw-nb__chip { position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 11px 16px 11px 11px; border-radius: 18px; background: rgba(8, 16, 26, .62); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 24px 40px -24px rgba(0, 0, 0, .7); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: var(--upw-muted); font: 400 11px/1.35 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; pointer-events: none; will-change: transform; }
.upw-nb__chip b { display: block; margin-bottom: 3px; color: var(--upw-ink); font: 600 16px/1.15 var(--f-sans); letter-spacing: -.02em; text-transform: none; }
.upw-nb__chip svg { flex: none; width: 34px; height: 34px; padding: 7px; border-radius: 11px; background: rgba(116, 207, 248, .14); color: var(--upw-accent); }
.upw-nb__chip.is-a { left: 0; top: 4%; }
.upw-nb__chip.is-b { right: 0; top: 68%; }
/* abas e botão da tampa */
/* a cápsula fica abaixo do alcance do aparelho girando e sempre por cima dele */
.upw-nb__bar { position: relative; z-index: 4; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin-top: calc(var(--upw-w) * .1); }
.upw-nb__tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 4px; border-radius: 24px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.upw-nb__tab { min-height: 38px; padding: 0 15px; border: 0; border-radius: 99px; background: transparent; color: var(--upw-muted); font: 500 13.5px/1 var(--f-sans); cursor: pointer; transition: background-color .3s, color .3s; }
.upw-nb__tab:hover { color: #fff; }
.upw-nb__tab[aria-selected="true"] { background: #fff; color: var(--night, #02050A); }
.upw-nb__toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px 0 12px; border: 0; border-radius: 99px; background: transparent; color: var(--upw-muted); box-shadow: inset 0 0 0 1px var(--upw-line); font: 400 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; transition: color .3s, box-shadow .3s; }
.upw-nb__toggle:hover { color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); }
.upw-nb__toggle svg { width: 16px; height: 16px; }
.upw-nb__tab:focus-visible, .upw-nb__toggle:focus-visible { outline: 2px solid var(--upw-accent); outline-offset: 3px; }
.upw-nb__note { position: relative; z-index: 4; margin-top: 12px; color: var(--upw-muted); font: 400 10.5px/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; text-align: center; }
/* sites dentro da tela: print do topo de cada projeto */
.upw-nb__site { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: #fff; opacity: 0; visibility: hidden; will-change: transform; transition: opacity .6s, visibility .6s; }
.upw-nb__site.is-on { opacity: 1; visibility: visible; }
.upw-nb__site > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
/* um print mais alto que a tela (página inteira) passa a rolar sozinho */
.upw-nb__site.is-tall { height: auto; min-height: 100%; }
.upw-nb__site.is-tall > img { height: auto; }
.upw-nb:not(.is-on) .upw-nb__deck, .upw-nb:not(.is-on) .upw-nb__edge, .upw-nb:not(.is-on) .upw-nb__toggle { display: none; }
.upw-nb:not(.is-on) .upw-nb__lid { transform: none; }
@media (max-width: 1080px) {
  .upw-nb { --upw-w: min(76vw, 470px); }
}
@media (max-width: 640px) {
  .upw-nb { --upw-w: min(82vw, 420px); }
  .upw-nb__chip { padding: 8px 12px 8px 8px; gap: 9px; font-size: 10px; }
  .upw-nb__chip b { font-size: 14px; }
  .upw-nb__chip svg { width: 28px; height: 28px; padding: 6px; }
  .upw-nb__chip.is-a { left: auto; right: -4px; top: auto; bottom: 3%; }
  .upw-nb__chip.is-b { display: none; }
  .upw-nb__tab { padding: 0 12px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .upw-nb, .upw-nb *, .upw-nb *::before { transition: none !important; animation: none !important; } }
