/* Guilherme Pinto — portfólio
   Layout fiel à referência aprovada; todas as peças gráficas vêm de assets/kit (kit do cliente). */
:root {
  --papel: #F3ECDF;
  --papel-claro: #F8F3EA;
  --kraft: #D8C3A0;
  --tinta: #241612;
  --vinho: #5C2A2E;
  --terracota: #C2492A;
  --rosa: #E895BE;
  --mostarda: #C99A06;
  --ardosia: #5E7F8E;
  --linha: rgba(92, 42, 46, .38);

  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Noto Sans", system-ui, sans-serif;

  --max: 1120px;
  --gutter: clamp(20px, 5vw, 56px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --pop: cubic-bezier(.3, 1.45, .5, 1);
  --grain: url("assets/kit/svg/bg-grain-overlay.svg");
}

@view-transition { navigation: auto; }
::view-transition-group(*) { animation-duration: .45s; animation-timing-function: var(--ease); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; color: var(--tinta);
  background: var(--papel) var(--grain) 0 0 / 256px 256px repeat;
  font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2 { font-family: var(--serif); font-weight: 500; color: var(--vinho); margin: 0; letter-spacing: -.015em; text-wrap: balance; }
ul { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--terracota); outline-offset: 3px; }
::selection { background: var(--rosa); }

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: var(--gutter); top: -60px; z-index: 50; background: var(--tinta); color: var(--papel-claro); padding: 10px 14px; text-decoration: none; }
.skip:focus { top: 12px; }

.arw { width: 20px; height: 12px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }

/* botão: retângulo vinho como na referência */
.btn {
  display: inline-flex; align-items: center; gap: 14px; min-height: 46px; padding: 0 24px;
  background: var(--vinho); color: var(--papel-claro); text-decoration: none;
  font: 500 .95rem/1 var(--sans); transition: background-color .2s, transform .2s var(--ease);
}
.btn:hover { background: var(--terracota); }
.btn:hover .arw { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }
.btn--light { background: var(--papel-claro); color: var(--vinho); }
.btn--light:hover { background: #fff; }

/* papel rasgado entre seções: o divisor do kit recortando a cor da página */
.tear {
  position: absolute; left: 0; width: 100%; height: clamp(26px, 3.2vw, 46px); z-index: 2; pointer-events: none;
  background: var(--papel) var(--grain) 0 0 / 256px 256px repeat;
  -webkit-mask: url("assets/kit/svg/divider-torn-cream.svg") center / 100% 100% no-repeat;
          mask: url("assets/kit/svg/divider-torn-cream.svg") center / 100% 100% no-repeat;
}
.tear--top { top: -1px; }
.tear--bottom { bottom: -1px; transform: scale(-1, -1); }

/* =================== topo =================== */
.top { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 0 18px; border-bottom: 1px solid var(--linha); }
.top__name { font: 500 1.6rem/1 var(--serif); color: var(--vinho); text-decoration: none; letter-spacing: -.01em; }
.top__nav { display: flex; gap: clamp(18px, 3.4vw, 40px); }
.top__nav a { font-size: .95rem; font-weight: 500; text-decoration: none; padding: 10px 0; background: linear-gradient(currentColor, currentColor) 0 calc(100% - 6px) / 0 1px no-repeat; transition: background-size .3s var(--ease); }
.top__nav a:hover { background-size: 100% 1px; }
.top__nav { align-items: center; }
/* botão Baixar CV: etiqueta vinho do mesmo sistema do botão do hero */
.top__nav .cv { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; background: var(--vinho); color: var(--papel-claro); transition: background-color .2s; }
.top__nav .cv:hover { background: var(--terracota); background-size: auto; }
.cv svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.cv:hover svg { transform: translateY(2px); }
.cv__short { display: none; }

/* =================== hero =================== */
.hero { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding: clamp(36px, 5vw, 56px) 0 clamp(44px, 5vw, 64px); }
.hero__name { font-size: clamp(3.3rem, 6.6vw, 5.8rem); line-height: .92; letter-spacing: -.025em; }
.hero__role { margin: 28px 0 0; font-size: 1rem; font-weight: 500; color: var(--tinta); }
.rule { border: 0; border-top: 1px solid var(--linha); margin: 26px 0 24px; }
.hero__lead { margin: 0 0 32px; max-width: 34ch; font-size: 1.06rem; color: rgba(36, 22, 18, .82); }

/* colagens: cada peça é um arquivo do kit posicionado em % do quadro */
.art { position: relative; width: 100%; }
.art > .k { position: absolute; max-width: none; transform: rotate(var(--r, 0deg)); filter: drop-shadow(0 8px 10px rgba(36, 22, 18, .14)); }
.art--hero { aspect-ratio: 470 / 430; }
.art--hero > .k { animation: stick .7s var(--pop) both; animation-delay: calc(var(--n) * 70ms + 120ms); }
@keyframes stick { from { opacity: 0; transform: translateY(-20px) rotate(calc(var(--r, 0deg) + 7deg)) scale(1.05); } }

.k-slate    { left: 32%; top: 1%;  width: 60%; height: 96%; --r: 2deg; }
.k-sun      { left: 88%; top: 3%;  width: 10%; --r: 6deg; }
.k-mustard  { left: 36%; top: 78%; width: 59%; height: 20%; --r: -2deg; }
.k-notebook { left: 0;   top: 31%; width: 48%; height: 45%; --r: -4deg; }
.k-pink     { left: 11%; top: 1%;  width: 35%; --r: -4deg; }
.k-tape1    { left: 19%; top: 0;   width: 19%; height: 6%; --r: 2deg; }
.k-binder   { left: 10%; top: 26%; width: 7%;  --r: -10deg; }
.k-polaroid { left: 44%; top: 13%; width: 50%; --r: 4deg; margin: 0; }
.k-tape2    { left: 64%; top: 12%; width: 19%; height: 5.5%; --r: 4deg; }
.k-clip     { left: 63%; top: 4%;  width: 6.2%; --r: 3deg; }
.k-yellow   { left: 15%; top: 62%; width: 31%; --r: -4deg; }
.k-squiggle { left: 21%; top: 81%; width: 18%; --r: -6deg; filter: none; }
.k-arrow    { left: 96%; top: 64%; width: 13%; --r: 0deg; filter: none; }

/* molduras do kit com a foto na janela exata do arquivo */
.frame { aspect-ratio: var(--fr); }
.frame--portrait { --fr: 1000 / 1350; }
.frame--square   { --fr: 1000 / 1200; }
.frame > img { position: absolute; }
.frame > img:first-child { object-fit: cover; background: #ded3c2; }
.frame--portrait > img:first-child { left: 7%; top: 5.185%; width: 86%; height: 79.63%; }
.frame--square   > img:first-child { left: 7%; top: 5.833%; width: 86%; height: 71.667%; }
.k-photo { object-position: 50% 28%; } /* mantém o rosto do Guilherme na janela da polaroid */
.frame__paper { inset: 0; width: 100%; height: 100%; pointer-events: none; }
img[data-drive] { opacity: 0; }
img[data-drive].is-in { opacity: 1; transition: opacity .45s; }

/* =================== trabalhos (faixa kraft) =================== */
.work {
  position: relative; padding: clamp(90px, 11vw, 140px) 0 clamp(100px, 12vw, 150px);
  background: var(--kraft) url("assets/kit/web/bg-reciclado-areia-photo.webp") center / cover;
}
.head { display: flex; align-items: flex-end; gap: clamp(16px, 2.4vw, 32px); }
.head h2 { font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; }
.head__rule { flex: 1; height: 1px; background: var(--linha); margin-bottom: 14px; }
.more { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 4px; padding: 10px 0; font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--vinho); text-decoration: none; white-space: nowrap; }
.more:hover .arw { transform: translateX(4px); }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.6vw, 32px); margin-top: clamp(40px, 5vw, 60px); }
.cards li:nth-child(1) .card { --r: -.6deg; }
.cards li:nth-child(2) .card { --r: .4deg; }
.cards li:nth-child(3) .card { --r: -.3deg; }
.card {
  position: relative; display: flex; flex-direction: column; height: 100%;
  padding: 16px 16px 22px; text-decoration: none; color: var(--tinta);
  transform: rotate(var(--r, 0deg)); transition: transform .35s var(--ease);
  filter: drop-shadow(0 10px 12px rgba(36, 22, 18, .16));
}
.card:hover { transform: rotate(var(--r, 0deg)) translateY(-4px); }
.card__paper { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.card__photo { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: #ded3c2; }
.card__photo img { width: 100%; height: 100%; object-fit: cover; transition: scale .5s var(--ease), opacity .45s; }
.card:hover .card__photo img { scale: 1.03; }
.card__body { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-top: 16px; }
.card__text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.card__name { font: 500 1.6rem/1.1 var(--serif); color: var(--tinta); }
.card__tags { font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(36, 22, 18, .78); }
.card .arw { width: 22px; height: 14px; margin-bottom: 2px; }
.card:hover .arw { transform: translateX(4px); }
.card__pin { position: absolute; z-index: 3; pointer-events: none; max-width: none; }
.card__pin--tape  { top: -14px; left: 26%; width: 38%; height: 30px; transform: rotate(-3deg); }
.card__pin--clip  { top: -34px; right: 18%; width: 30px; transform: rotate(10deg); }
.card__pin--tape2 { top: -14px; left: 34%; width: 38%; height: 30px; transform: rotate(3deg); }

/* =================== sobre =================== */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .82fr) minmax(0, .56fr); gap: clamp(24px, 3.4vw, 44px); align-items: center; padding: clamp(56px, 6vw, 84px) 0 clamp(96px, 10vw, 130px); }
.art--about { aspect-ratio: 330 / 360; max-width: 460px; }
.a-slate    { left: 0;   top: 0;   width: 73%; height: 84%; --r: -3deg; }
.a-mustard  { left: 5%;  top: 78%; width: 95%; height: 22%; --r: -2deg; }
.a-polaroid { left: 12%; top: 12%; width: 76%; --r: -3deg; margin: 0; }
.a-tape     { left: 33%; top: 9%;  width: 26%; height: 6%; --r: 1deg; }
.a-sun      { left: 86%; top: 7%;  width: 12%; --r: 8deg; }
.a-arrow    { left: 91%; top: 50%; width: 13%; filter: none; }
.a-photo { object-position: 50% 30%; } /* janela quadrada: enquadra rosto e camisa */
.about__text h2 { font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; margin-bottom: 22px; }
.about__text p { margin: 0 0 18px; max-width: 34ch; font-size: 1.02rem; color: rgba(36, 22, 18, .85); }

.note { position: relative; align-self: end; width: 100%; max-width: 240px; aspect-ratio: 1.1 / 1; margin: 0 0 -6px -18px; transform: rotate(-3deg); }
.note > img { position: absolute; max-width: none; pointer-events: none; }
.note__back  { inset: 8% -6% -10% 6%; width: 100%; height: 100%; transform: rotate(7deg); filter: drop-shadow(0 6px 8px rgba(36, 22, 18, .12)); }
.note__paper { inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 6px 8px rgba(36, 22, 18, .14)); }
.note__clip  { top: -20%; left: 52%; width: 13%; }
.note__list { position: relative; z-index: 1; display: grid; gap: 12px; padding: 26% 12% 0 16%; font-size: 1.02rem; color: var(--tinta); }
.note__list li { display: flex; align-items: center; gap: 12px; }
.note__list li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--mostarda); flex: none; }

/* =================== contato (faixa vinho) =================== */
.contact {
  position: relative; padding: clamp(100px, 12vw, 150px) 0 clamp(80px, 10vw, 120px);
  background: var(--vinho) url("assets/kit/web/bg-algodao-vinho-photo.webp") center / cover;
  color: var(--papel-claro);
}
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.contact__intro { padding-right: clamp(24px, 6vw, 80px); }
.contact h2 { color: var(--papel-claro); font-size: clamp(2.6rem, 4.8vw, 3.9rem); line-height: 1.04; }
.under { position: relative; white-space: nowrap; }
.under::after {
  content: ""; position: absolute; left: -2%; bottom: -.22em; width: 104%; height: .3em; background: var(--mostarda);
  -webkit-mask: url("assets/kit/svg/doodle-underline-vinho.svg") center / 100% 100% no-repeat;
          mask: url("assets/kit/svg/doodle-underline-vinho.svg") center / 100% 100% no-repeat;
}
.contact__intro p { margin: 28px 0 30px; max-width: 36ch; color: rgba(248, 243, 234, .82); }
.contact__list { display: grid; gap: 22px; align-self: stretch; align-content: center; padding: 12px 0 12px clamp(28px, 6vw, 88px); border-left: 1px solid rgba(248, 243, 234, .3); }
.contact__list li { display: flex; align-items: center; gap: 18px; }
.contact__list svg { width: 24px; height: 24px; flex: none; fill: none; stroke: var(--papel-claro); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.contact__list svg .dot { fill: var(--papel-claro); }
.contact__list a { font-size: 1.02rem; text-decoration: none; padding: 8px 0; overflow-wrap: anywhere; }
.contact__list a:hover { color: var(--rosa); }
.be { width: 24px; flex: none; font: 700 1rem/1 var(--sans); letter-spacing: -.04em; text-align: center; }

/* =================== página de projeto =================== */
.back { display: inline-flex; align-items: center; gap: 10px; margin: 26px 0 30px; padding: 8px 0; font-size: .9rem; font-weight: 500; text-decoration: none; color: var(--vinho); }
.back:hover .arw { transform: translateX(-4px); }
.work--project { padding-top: clamp(70px, 8vw, 100px); }

.tabs { overflow-x: auto; scrollbar-width: none; padding: 4px 2px 10px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs__track { position: relative; display: inline-flex; gap: 2px; padding: 5px; background: var(--papel-claro); border-radius: 999px; box-shadow: 0 8px 16px -12px rgba(36, 22, 18, .5); }
.tabs__pill { position: absolute; left: 0; top: 5px; bottom: 5px; border-radius: 999px; background: var(--vinho); transition: transform .5s var(--pop), width .5s var(--pop), background-color .3s; }
.tabs__tab { position: relative; z-index: 1; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; font-size: .88rem; font-weight: 500; text-decoration: none; white-space: nowrap; border-radius: 999px; color: var(--tinta); transition: color .3s; }
.tabs__tab[aria-current="page"] { color: var(--papel-claro); }
.tabs__pill { background: var(--vinho) !important; } /* a pílula fica sempre vinho: a cor do cliente some sobre o kraft */

.case { position: relative; margin-top: 30px; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 3.4vw, 48px); padding: clamp(26px, 3vw, 44px); filter: drop-shadow(0 12px 14px rgba(36, 22, 18, .16)); }
.case__paper { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; pointer-events: none; }
.case__tape { position: absolute; top: -14px; left: 8%; width: 160px; height: 32px; max-width: none; transform: rotate(-3deg); pointer-events: none; z-index: 2; }
.case__tag { position: absolute; right: 28px; top: -16px; z-index: 2; background: url("assets/kit/svg/label-ink.svg") center / 100% 100% no-repeat; color: var(--papel-claro); font-size: .78rem; font-weight: 500; padding: 9px 18px 10px; transform: rotate(4deg); }
.case__info { position: relative; display: flex; flex-direction: column; }
.project__title { font-size: clamp(2.4rem, 4.4vw, 3.6rem); line-height: 1; }
.case__tags { margin: 12px 0 0; font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(36, 22, 18, .78); }
.project__meta { margin: 16px 0 0; max-width: 32ch; }
.case__facts { margin: 0; padding: 22px 0 26px; display: grid; }
.case__facts div { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--linha); }
.case__facts div:last-child { border-bottom: 1px solid var(--linha); }
.case__facts dt { font-size: .85rem; color: rgba(36, 22, 18, .72); }
.case__facts dd { margin: 0; font: 500 1.7rem/1 var(--serif); color: var(--vinho); font-variant-numeric: lining-nums tabular-nums; }
.case__info .btn { margin-top: auto; align-self: flex-start; }

.bento { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.bento[data-n="3"] { align-self: start; }
.bento[data-n="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 480px; justify-self: end; }

.piece { display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; position: relative; background: #ded3c2; overflow: hidden; }
.piece img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: scale .5s var(--ease), opacity .4s; }
.piece:hover img { scale: 1.025; }
.piece--video { cursor: pointer; }
.play { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: var(--papel-claro); display: grid; place-items: center; transition: transform .25s var(--ease); }
.play::after { content: ""; margin-left: 5px; border-left: 15px solid var(--tinta); border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.piece--video:hover .play { transform: scale(1.08); }

.all { padding: clamp(80px, 9vw, 110px) 0 clamp(110px, 12vw, 150px); }
.pieces { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); margin-top: clamp(32px, 4vw, 48px); }
.next { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; align-items: end; margin-top: clamp(64px, 8vw, 100px); padding-top: 28px; border-top: 1px solid var(--linha); text-decoration: none; color: var(--tinta); }
.next__label { grid-column: 1; font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.next__name { grid-column: 1; font: 500 clamp(2.2rem, 4vw, 3.2rem)/1.05 var(--serif); color: var(--vinho); margin-top: 8px; transition: color .25s; }
.next:hover .next__name { color: var(--terracota); }
.next__thumbs { grid-column: 2; grid-row: 1 / span 2; display: flex; }
.next__thumbs img { width: 70px; aspect-ratio: 4 / 5; object-fit: cover; border: 3px solid var(--papel-claro); margin-left: -14px; background: #ded3c2; transition: transform .35s var(--ease); }
.next__thumbs img:nth-child(odd) { transform: rotate(-4deg); }
.next__thumbs img:nth-child(even) { transform: rotate(4deg); }
.next:hover .next__thumbs img { transform: translateY(-4px); }

/* visualizador */
.viewer { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(36, 22, 18, .94); color: var(--papel-claro); }
.viewer[open] { display: grid; grid-template-rows: 1fr auto; animation: fade .25s ease; }
.viewer::backdrop { background: transparent; }
@keyframes fade { from { opacity: 0; } }
.viewer__stage { display: grid; place-items: center; padding: clamp(16px, 4vh, 40px) var(--gutter) 0; min-height: 0; }
.viewer__stage img { max-width: 100%; max-height: calc(100dvh - 110px); width: auto; object-fit: contain; }
.viewer__stage iframe { height: calc(100dvh - 110px); aspect-ratio: 9 / 16; max-width: 100%; border: 0; background: #000; }
.viewer__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px var(--gutter) 18px; font-size: .85rem; font-variant-numeric: tabular-nums; }
.viewer__bar div { display: flex; gap: 8px; }
.viewer__bar button { font: 500 .85rem var(--sans); color: var(--papel-claro); background: transparent; border: 1px solid rgba(248, 243, 234, .4); padding: 0 16px; height: 44px; cursor: pointer; transition: background .2s, color .2s; }
.viewer__bar button:hover { background: var(--papel-claro); color: var(--tinta); }

/* =================== telas menores =================== */
@media (max-width: 980px) {
  .about { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .note { grid-column: 2; justify-self: start; margin: 10px 0 0 6px; }
  .case { grid-template-columns: 1fr; }
  .case__info .btn { margin-top: 20px; }
  .pieces { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .top__name { font-size: 1.12rem; white-space: nowrap; }
  .top__nav { gap: 16px; }
  .top__nav a { font-size: .88rem; }
  .top { flex-wrap: wrap; row-gap: 4px; padding-top: 18px; }
  .top__nav { gap: 12px; width: 100%; justify-content: space-between; }
  .top__nav .cv { padding: 0 12px; min-height: 36px; }
  .cv__long { display: none; }
  .cv__short { display: inline; }
  .hero { grid-template-columns: 1fr; gap: 28px; }
  .hero__text { order: -1; }
  .k-arrow { display: none; }
  .head { flex-wrap: wrap; }
  .head__rule { display: none; }
  .more { margin-left: auto; }
  .cards { grid-template-columns: 1fr; gap: 44px; max-width: 420px; margin-inline: auto; }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .art--about { width: 88%; }
  .a-arrow { display: none; }
  .note { grid-column: 1; justify-self: end; margin: 0 6% 0 0; }
  .contact__grid { grid-template-columns: 1fr; gap: 44px; }
  .contact__intro { padding-right: 0; }
  .contact__list { border-left: 0; border-top: 1px solid rgba(248, 243, 234, .3); padding: 32px 0 0; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento[data-n="4"] { max-width: none; }
  .next__thumbs { display: none; }
  .viewer__bar { flex-direction: column; align-items: stretch; }
  .viewer__bar div button { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  @view-transition { navigation: none; }
}
