/* ==========================================================================
   ISABELA ROSSE ⟡ TATTOO · @isabelarrosse — João Monlevade, MG

   Direção: carta celeste. O feed dela é céu noturno, parede de estúdio com
   sóis e luas em ocre, e um post que é só uma linha laranja sobre o preto.
   A página nasce dessas três coisas: fundo de noite, ocre como TRAÇO (nunca
   como fundo ou degradê) e o laranja vivo reservado à ação.
   Os blocos de decisão são plaquetas de papel sobre a noite — a mesa de
   estêncil. Uma ousadia só: a linha de constelação que se desenha na margem.
   ========================================================================== */

:root {
  /* Cor */
  --night: #050406;
  --night-deep: #000000;
  --night-lift: #14101A;
  --linen: #F2E9E6;
  --linen-dim: rgba(242, 233, 230, 0.68);
  --linen-faint: rgba(242, 233, 230, 0.6);
  --ochre: #FF59B0;              /* rosa da mandala: marca o nó, o detalhe */
  --ochre-soft: rgba(255, 89, 176, 0.42);
  --flare: #FE8200;              /* laranja da mandala: a ação */
  --flare-lit: #FFA03A;
  --ink: #17090F;
  --paper: #F4EDE9;
  --paper-line: rgba(23, 9, 15, 0.16);

  /* Tipografia */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-text: "Karla", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Motion */
  --motion-instant: 90ms;
  --motion-fast: 140ms;
  --motion-standard: 220ms;
  --motion-emphasis: 320ms;
  --motion-scene: 460ms;
  --ease-enter: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-exit: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-standard: cubic-bezier(0.65, 0, 0.35, 1);

  /* Espaço */
  --gutter: 26px;
  --column: 560px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --dock-h: 0px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  background: var(--night);
}

body {
  margin: 0;
  font: 400 16px/1.6 var(--font-text);
  color: var(--linen);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; background: none; border: 0; -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 2px solid var(--flare-lit);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Ícones: traço fino, o mesmo vocabulário do desenho. Sem fonte de ícone. */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i {
  width: 1.32em;
  height: 1.32em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 60;
  padding: 12px 16px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
  border-radius: 2px;
}
.skip-link:focus { top: 12px; }

.shell {
  max-width: var(--column);
  margin: 0 auto;
  padding-bottom: calc(52px + var(--dock-h));
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   Assinatura: a linha de constelação na margem esquerda
   -------------------------------------------------------------------------- */
.thread {
  position: absolute;
  top: 78vh;
  left: max(0px, calc(50vw - var(--column) / 2 - 22px));
  width: 24px;
  height: 2400px;
  color: rgba(201, 120, 43, 0.5);
  z-index: 0;
  pointer-events: none;
}
@media (min-width: 620px) {
  .thread { left: calc(50vw - var(--column) / 2 - 26px); }
}
.thread path { opacity: 0.42; }
.js .thread path {
  stroke-dasharray: var(--len, 2600);
  stroke-dashoffset: var(--off, 2600);
}

/* Estrela de 4 pontas nos títulos de seção — o nó da constelação */
.h-star {
  position: relative;
  font: 300 27px/1.15 var(--font-display);
  font-variation-settings: "SOFT" 50, "WONK" 1, "opsz" 48;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}
.h-star::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 0.44em;
  width: 11px;
  height: 11px;
  background: var(--ochre);
  clip-path: polygon(50% 0%, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0% 50%, 40% 40%);
  opacity: 0.45;
  transform: scale(0.7);
  transition: opacity var(--motion-emphasis) var(--ease-enter),
              transform var(--motion-emphasis) var(--ease-enter);
}
.reveal.in .h-star::before { opacity: 1; transform: scale(1); }
@media (max-width: 360px) {
  :root { --gutter: 20px; }
  .h-star::before { left: -16px; width: 9px; height: 9px; }
}

/* --------------------------------------------------------------------------
   01 · Céu
   -------------------------------------------------------------------------- */
.sky {
  position: relative;
  min-height: 96svh;
  min-height: 96vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  isolation: isolate;
}

.sky-plate {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 56%;
  object-fit: cover;
  object-position: 52% 20%;
  filter: saturate(0.94) contrast(1.03);
  /* a fotografia dissolve na noite em vez de terminar numa borda */
  -webkit-mask-image: linear-gradient(to bottom, #000 46%, rgba(0, 0, 0, 0) 97%);
  mask-image: linear-gradient(to bottom, #000 46%, rgba(0, 0, 0, 0) 97%);
  z-index: -2;
}

.sky-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 52% at 50% 2%, rgba(5, 4, 6, 0) 0%, rgba(5, 4, 6, 0.26) 62%, rgba(5, 4, 6, 0.58) 100%),
    linear-gradient(to top, rgba(5, 4, 6, 0.92) 30%, rgba(5, 4, 6, 0.78) 50%, rgba(5, 4, 6, 0.12) 72%);
}

.sky-copy {
  padding: 0 var(--gutter) 40px;
  margin-top: auto;
  /* a fotografia continua atrás do texto em telas curtas: o texto se protege */
  text-shadow: 0 1px 16px rgba(8, 10, 14, 0.78);
}
.sky-copy .btn-primary,
.sky-copy .btn-ghost { text-shadow: none; }

.place {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--linen-dim);
  margin-bottom: 18px;
}
.place .i { width: 1.15em; height: 1.15em; color: var(--ochre); vertical-align: -0.24em; margin-right: 4px; }

.wordmark {
  font: 300 clamp(38px, 12.5vw, 52px)/1.06 var(--font-display);
  font-variation-settings: "SOFT" 50, "WONK" 1, "opsz" 120;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.wordmark em {
  font-style: normal;
  color: var(--ochre);
  font-size: 0.62em;
  vertical-align: 0.18em;
  margin-left: 0.06em;
}
.wm-line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.js .wm-line > * { display: block; }

.craft {
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--linen-dim);
  max-width: 34ch;
  margin-bottom: 26px;
}

/* --------------------------------------------------------------------------
   Céu: o fundo da página inteira.
   O desenho estático vem por CSS e já está lá no primeiro paint; o canvas
   entra por cima só quando o WebGL sobe, e some com movimento reduzido.
   -------------------------------------------------------------------------- */
body {
  background-color: var(--night);
  background-image: url("sky.svg");
  background-size: 100% auto;
  background-repeat: repeat-y;
  background-position: 50% 0;
  background-attachment: fixed;
}

.sky-gl {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  opacity: 0;
  pointer-events: none;
  transition: opacity 900ms var(--ease-enter);
}
/* com o canvas no ar, o fundo estático sai de cena para não somar brilho */
.gl-on .sky-gl { opacity: 1; }
.gl-on body,
body.gl-on { background-image: none; }

/* --------------------------------------------------------------------------
   Botões
   -------------------------------------------------------------------------- */
.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 14px 20px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
  font-size: 16px;
  border-radius: 2px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset;
  transition: transform var(--motion-instant) var(--ease-standard),
              background var(--motion-fast) var(--ease-standard);
}
.btn-primary .i { color: #17703E; stroke-width: 1.6; }
.btn-primary:active { transform: scale(0.985); background: #FFF7E9; }

.btn-ghost {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  margin-top: 10px;
  color: var(--linen-dim);
  font-size: 15px;
  border: 1px solid rgba(234, 227, 216, 0.16);
  border-radius: 2px;
  transition: transform var(--motion-instant) var(--ease-standard),
              border-color var(--motion-fast) var(--ease-standard),
              color var(--motion-fast) var(--ease-standard);
}
.btn-ghost:active { transform: scale(0.985); color: var(--linen); border-color: var(--ochre-soft); }

/* --------------------------------------------------------------------------
   Reveal (só com JS; sem JS o conteúdo já está visível)
   -------------------------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--motion-scene) var(--ease-enter),
              transform var(--motion-scene) var(--ease-enter);
}
.js .reveal.in { opacity: 1; transform: none; }

section { padding: 56px var(--gutter); position: relative; }

/* o céu fica atrás de tudo; onde há leitura corrida, um véu segura o fundo */
.who, .repertoire, .contact {
  background: radial-gradient(112% 58% at 50% 50%, rgba(5, 4, 6, 0.74) 0%, rgba(5, 4, 6, 0.42) 60%, rgba(5, 4, 6, 0) 100%);
}

/* --------------------------------------------------------------------------
   02 · Quem desenha
   -------------------------------------------------------------------------- */
.who { display: grid; gap: 22px; }
.who-photo {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
}
.who-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 62% 18%;
  filter: saturate(0.88) contrast(1.02);
}
.who-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 -70px 90px -40px var(--night);
  pointer-events: none;
}
.who-text p { color: var(--linen-dim); margin-bottom: 14px; }
.who-note {
  font-size: 14.5px;
  color: var(--linen-faint);
  border-left: 1px solid var(--ochre-soft);
  padding-left: 12px;
}
.who-note strong { color: var(--ochre); font-weight: 600; }

/* --------------------------------------------------------------------------
   03 · Repertório
   -------------------------------------------------------------------------- */
.rep-list li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid rgba(234, 227, 216, 0.09);
}
.rep-list li:first-child { border-top: 1px solid rgba(234, 227, 216, 0.09); }
.rep-list img {
  width: 72px;
  height: 92px;
  object-fit: cover;
  border-radius: 1px;
  filter: contrast(1.04);
}
.rep-list b {
  display: block;
  font: 400 19px/1.2 var(--font-display);
  font-variation-settings: "SOFT" 50, "WONK" 1, "opsz" 30;
  margin-bottom: 3px;
}
.rep-list span { font-size: 14.5px; color: var(--linen-faint); }

/* --------------------------------------------------------------------------
   04 · Peças — friso contínuo

   O trabalho dela passa como uma faixa, na altura do olho. O movimento é
   lento e constante; encostou o dedo, ele para e o scroll vira do usuário.
   Como o movimento é automático e não termina sozinho, existe um botão de
   pausa de verdade, não só a preferência do sistema.
   -------------------------------------------------------------------------- */
.gallery { padding-left: 0; padding-right: 0; }
.gal-head,
.gal-hint,
.gallery > .gal-more { margin-left: var(--gutter); margin-right: var(--gutter); }

.gal-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.gal-head .h-star { margin-bottom: 18px; }

.reel-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 48px;
  padding: 0 4px 0 10px;
  font-size: 13.5px;
  color: var(--linen-faint);
  border-left: 1px solid rgba(242, 233, 230, 0.14);
  transition: color var(--motion-fast) var(--ease-standard);
}
.reel-toggle .i { width: 1.05em; height: 1.05em; }
.reel-toggle[aria-pressed="true"] { color: var(--ochre); }
.reel-toggle:active { color: var(--linen); }

.gal-hint { font-size: 14px; color: var(--linen-faint); margin: -8px 0 18px; }

.reel {
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* a faixa sangra nas duas bordas em vez de terminar num corte seco */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.reel::-webkit-scrollbar { display: none; }
.reel:focus-visible { outline: 2px solid var(--flare-lit); outline-offset: -2px; }

.reel-track {
  display: flex;
  gap: 10px;
  width: max-content;
  padding: 0 var(--gutter);
}

.piece {
  position: relative;
  display: block;
  flex: none;
  height: clamp(230px, 62vw, 310px);
  padding: 0;
  overflow: hidden;
  border-radius: 2px;
  cursor: pointer;
  transition: transform var(--motion-instant) var(--ease-standard);
}
.piece:active { transform: scale(0.982); }
.piece img {
  width: auto;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.piece.tall img { aspect-ratio: 3 / 4; }

.piece-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 10px 9px;
  font-size: 12.5px;
  color: var(--linen);
  text-align: left;
  background: linear-gradient(to top, rgba(5, 4, 6, 0.86), rgba(5, 4, 6, 0));
}

.gal-more {
  display: inline-block;
  padding: 13px 0;
  min-height: 48px;
  margin-top: 18px;
  font-size: 15px;
  color: var(--ochre);
  border-bottom: 1px solid var(--ochre-soft);
}
.gal-more .i { width: 1em; height: 1em; vertical-align: -0.12em; margin-left: 6px; }

/* --------------------------------------------------------------------------
   05 · Plaqueta de papel
   -------------------------------------------------------------------------- */
.plate {
  background: var(--paper);
  color: var(--ink);
  padding: 30px 22px 26px;
  border-radius: 2px;
  box-shadow: 0 18px 40px -26px rgba(0, 0, 0, 0.9);
}
.plate h2 {
  font: 400 26px/1.15 var(--font-display);
  font-variation-settings: "SOFT" 50, "WONK" 1, "opsz" 48;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
}
.plate-lede { font-size: 15px; color: rgba(20, 16, 12, 0.74); margin-bottom: 20px; }

.brief-list { counter-reset: step; margin-bottom: 24px; }
.brief-list li {
  counter-increment: step;
  position: relative;
  padding: 13px 0 13px 34px;
  border-top: 1px solid var(--paper-line);
}
.brief-list li:last-child { border-bottom: 1px solid var(--paper-line); }
.brief-list li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 15px;
  font: 600 12px/1 var(--font-text);
  color: #D9317F;
  letter-spacing: 0.04em;
}
.brief-list b { display: block; font-size: 16px; font-weight: 600; }
.brief-list span { font-size: 14.5px; color: rgba(20, 16, 12, 0.74); }

.btn-primary.on-plate {
  background: var(--ink);
  color: var(--paper);
  box-shadow: none;
}
.btn-primary.on-plate .i { color: #6FD08C; }
.btn-primary.on-plate:active { background: #241D16; }

.btn-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 48px;
  margin-top: 10px;
  font-size: 14.5px;
  color: rgba(20, 16, 12, 0.82);
  transition: transform var(--motion-instant) var(--ease-standard);
}
.btn-copy:active { transform: scale(0.985); }

/* --------------------------------------------------------------------------
   06 · Contato
   -------------------------------------------------------------------------- */
.contact-place { color: var(--linen-dim); margin-bottom: 20px; }
.contact-place strong { color: var(--linen); font-weight: 600; }

.links { display: grid; gap: 10px; }
.link-row {
  display: grid;
  grid-template-columns: 26px 1fr 14px;
  align-items: center;
  gap: 14px;
  min-height: 62px;
  padding: 12px 16px;
  background: var(--night-lift);
  border: 1px solid rgba(234, 227, 216, 0.08);
  border-radius: 2px;
  transition: transform var(--motion-instant) var(--ease-standard),
              border-color var(--motion-fast) var(--ease-standard);
}
.link-row:active { transform: scale(0.99); border-color: var(--ochre-soft); }
.link-row > .i:first-child { width: 1.45em; height: 1.45em; color: var(--ochre); }
.link-row b { display: block; font-size: 15.5px; font-weight: 600; }
.link-row small { font-size: 13px; color: var(--linen-faint); }
.link-row .chev { width: 0.9em; height: 0.9em; color: var(--linen-faint); }

/* --------------------------------------------------------------------------
   Rodapé
   -------------------------------------------------------------------------- */
.foot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 34px var(--gutter) 10px;
  border-top: 1px solid rgba(234, 227, 216, 0.08);
  margin: 0 var(--gutter);
}
.foot img { width: 44px; height: 44px; border-radius: 50%; filter: grayscale(0.3); }
.foot p { font-size: 12.5px; color: var(--linen-faint); }

/* --------------------------------------------------------------------------
   Dock (CTA fixo)
   -------------------------------------------------------------------------- */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 10px var(--gutter) calc(10px + var(--safe-b));
  background: linear-gradient(to top, var(--night-deep) 62%, rgba(8, 10, 14, 0));
  transform: translateY(120%);
  transition: transform var(--motion-emphasis) var(--ease-enter);
}
.dock[hidden] { display: block; visibility: hidden; }
.dock.up { transform: none; visibility: visible; }
.viewing .dock { transform: translateY(120%); }
.dock-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: var(--column);
  margin: 0 auto;
  min-height: 52px;
  background: var(--flare);
  color: #140D06;
  font-weight: 600;
  border-radius: 2px;
  transition: transform var(--motion-instant) var(--ease-standard), background var(--motion-fast) var(--ease-standard);
}
.dock-cta .i { stroke-width: 1.7; }
.dock-cta:active { transform: scale(0.985); background: var(--flare-lit); }

/* --------------------------------------------------------------------------
   Visor
   -------------------------------------------------------------------------- */
.viewer {
  width: min(100%, 520px);
  max-width: 100%;
  max-height: 100svh;
  padding: 0;
  border: 0;
  background: var(--night-deep);
  color: var(--linen);
  overflow: auto;
}
.viewer::backdrop { background: rgba(4, 5, 8, 0.92); }
.viewer img { width: 100%; height: auto; }
.viewer-cap {
  padding: 14px 18px 4px;
  font: 400 17px/1.3 var(--font-display);
  font-variation-settings: "SOFT" 50, "WONK" 1, "opsz" 30;
}
.viewer-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  margin: 14px 18px calc(18px + var(--safe-b));
  background: var(--flare);
  color: #140D06;
  font-weight: 600;
  border-radius: 2px;
}
.viewer-close .i { width: 20px; height: 20px; }
.viewer-close {
  position: sticky;
  top: 10px;
  float: right;
  z-index: 2;
  width: 44px;
  height: 44px;
  margin-right: 10px;
  border-radius: 50%;
  background: rgba(8, 10, 14, 0.72);
  font-size: 18px;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(86px + var(--safe-b));
  z-index: 70;
  transform: translate(-50%, 12px);
  padding: 11px 18px;
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  border-radius: 2px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--motion-standard) var(--ease-standard),
              transform var(--motion-standard) var(--ease-enter);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* --------------------------------------------------------------------------
   Reduced motion: a composição fica, o movimento sai.
   A constelação nasce inteira, os reveals nascem no estado final,
   o dock aparece sem deslizar e o press vira mudança de cor.
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .sky-gl { display: none; }
  body { background-image: url("sky.svg") !important; }
  .piece:active { transform: none; }
  .js .thread path { stroke-dasharray: none !important; stroke-dashoffset: 0 !important; }
  .reveal .h-star::before { opacity: 1; transform: scale(1); }
  .dock.up { transform: none; }
  .btn-primary:active { background: #FFF2DC; transform: none; }
  .btn-ghost:active, .link-row:active, .piece:active, .btn-copy:active { transform: none; }
  .btn-ghost:active { border-color: var(--ochre); }
  .toast.on { transform: translate(-50%, 0); }
}
