/* ==========================================================================
   Rob Piercer — Roberta Faracci
   Tema: Dark Luxury editorial · mobile-first
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;

  /* Paleta */
  --bg: #0C090B;
  --bg-2: #151013;
  --bg-3: #1C1519;
  --wine: #481E2B;
  --terra: #783946;
  --terra-hover: #8A4352;
  --rose: #A66C77;
  --rose-light: #C48D97;
  --ink: #F1E9E7;
  --ink-2: #CFC3C1;
  --ink-3: #A39493;
  --line: rgba(241, 233, 231, .09);
  --line-2: rgba(241, 233, 231, .16);
  --line-wine: rgba(166, 108, 119, .38);

  /* Tipografia */
  --font-serif: "Playfair Display", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --fs-h1: clamp(2.5rem, 1.6rem + 4.4vw, 5.6rem);
  --fs-h2: clamp(2.15rem, 1.4rem + 3.1vw, 4.1rem);
  --fs-h3: clamp(1.45rem, 1.2rem + .9vw, 1.9rem);
  --fs-lead: clamp(1.02rem, .96rem + .3vw, 1.16rem);
  --fs-body: 1rem;
  --fs-small: .875rem;
  --fs-micro: .72rem;

  /* Espaços */
  --gutter: clamp(1.15rem, .6rem + 2.6vw, 2.5rem);
  --section-y: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --header-h: 4.25rem;
  --radius: 2px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

@media (min-width: 900px) {
  :root { --header-h: 5rem; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, p, figure, dl, dd, ol, ul { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }

::selection { background: var(--terra); color: #fff; }

:focus-visible {
  outline: 2px solid var(--rose-light);
  outline-offset: 3px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: var(--bg);
  padding: .75rem 1.1rem; font-weight: 600; font-size: var(--fs-small);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; }

.wrap {
  width: 100%;
  max-width: calc(1200px + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left));
}

/* ---------- Tipografia ---------- */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--ink);
  text-wrap: balance;
}
h2 {
  font-size: var(--fs-h2);
  line-height: 1.06;
  letter-spacing: -.02em;
  margin-top: .9rem;
}
h3 { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -.01em; }
p { text-wrap: pretty; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  font-family: var(--font-sans);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--rose-light);
}
.eyebrow--line::before {
  content: "";
  width: 2.25rem; height: 1px;
  background: currentColor;
  flex: none;
}

/* ---------- Botões ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--line-2);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 3.25rem;
  padding: .9rem 1.6rem;
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1.2;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.btn-icon { width: 1.05rem; height: 1.05rem; flex: none; transition: transform .3s var(--ease); }
.btn:hover .btn-icon { transform: translateX(3px); }
.btn:active { transform: translateY(1px) scale(.99); }

.btn--primary { --btn-bg: var(--terra); --btn-bd: var(--terra); --btn-fg: #fff; }
.btn--primary:hover { --btn-bg: var(--terra-hover); --btn-bd: var(--terra-hover); }

.btn--ghost { --btn-bd: var(--line-2); }
.btn--ghost:hover { --btn-bg: rgba(241, 233, 231, .05); --btn-bd: var(--rose); }

.btn--outline { --btn-bd: var(--line-wine); }
.btn--outline:hover { --btn-bg: var(--terra); --btn-bd: var(--terra); --btn-fg: #fff; }

.btn--sm { min-height: 2.6rem; padding: .6rem 1.15rem; font-size: .7rem; }
.btn--block { display: flex; width: 100%; }

.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 9, 11, .82);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(12, 9, 11, .92); }

.header-inner {
  min-height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1.25rem;
}

.brand { display: inline-flex; flex-direction: column; line-height: 1; padding-block: .4rem; }
.brand-name {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 1.05rem + .5vw, 1.45rem);
  letter-spacing: .01em;
  color: var(--ink);
}
.brand-sub {
  margin-top: .42rem;
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--rose-light);
}

.nav-desktop { display: none; }

.menu-toggle {
  position: relative; z-index: 60;
  width: 2.9rem; height: 2.9rem;
  margin-right: -.6rem;
  display: grid; place-content: center; gap: 7px;
  -webkit-tap-highlight-color: transparent;
}
.menu-toggle-bar {
  display: block; width: 24px; height: 1.5px; background: var(--ink);
  transition: transform .4s var(--ease-out), width .4s var(--ease-out);
}
.menu-toggle-bar:last-child { width: 16px; justify-self: end; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:first-child { transform: translateY(4.25px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:last-child { width: 24px; transform: translateY(-4.25px) rotate(-45deg); }

/* Menu mobile */
.mobile-menu {
  position: fixed; inset: 0; z-index: 45;
  background: var(--bg);
  padding-top: var(--header-h);
  overflow-y: auto;
  overscroll-behavior: contain;
  visibility: hidden;
  opacity: 0;
  transition: opacity .35s var(--ease), visibility 0s linear .35s;
}
.mobile-menu.is-open {
  visibility: visible; opacity: 1;
  transition: opacity .35s var(--ease), visibility 0s;
}
.mobile-menu-inner {
  display: flex; flex-direction: column; gap: 2rem;
  min-height: calc(100% - 1px);
  padding-block: 2rem calc(2rem + env(safe-area-inset-bottom));
}
.mobile-menu-list { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.mobile-menu-list li { border-bottom: 1px solid var(--line); }
.mobile-menu-list a {
  display: flex; align-items: baseline; gap: 1rem;
  padding: 1.05rem 0;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 1.3rem + 2.5vw, 2.4rem);
  line-height: 1.15;
  transform: translateY(12px); opacity: 0;
  transition: transform .5s var(--ease-out), opacity .5s var(--ease-out), color .2s;
}
.mobile-menu-list a span { font-family: var(--font-sans); font-size: .72rem; letter-spacing: .15em; color: var(--rose-light); }
.mobile-menu-list a:hover { color: var(--rose-light); }
.mobile-menu.is-open .mobile-menu-list a { transform: none; opacity: 1; }
.mobile-menu.is-open li:nth-child(2) a { transition-delay: .04s; }
.mobile-menu.is-open li:nth-child(3) a { transition-delay: .08s; }
.mobile-menu.is-open li:nth-child(4) a { transition-delay: .12s; }
.mobile-menu-contacts { display: flex; gap: .75rem; justify-content: center; font-size: var(--fs-small); color: var(--ink-3); }
.mobile-menu-contacts a { color: var(--ink-2); padding: .5rem .25rem; }
.mobile-menu-contacts a:hover { color: var(--ink); }

html.menu-open, html.modal-open { overflow: hidden; }

@media (min-width: 900px) {
  .menu-toggle, .mobile-menu { display: none; }
  .nav-desktop { display: flex; align-items: center; gap: clamp(1.5rem, 3vw, 2.75rem); }
  .nav-desktop ul { display: flex; gap: clamp(1.25rem, 2.6vw, 2.25rem); list-style: none; padding: 0; }
  .nav-desktop ul a {
    position: relative;
    font-size: .8rem; font-weight: 500; letter-spacing: .06em;
    color: var(--ink-2);
    padding-block: .5rem;
    transition: color .25s var(--ease);
  }
  .nav-desktop ul a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: .2rem; height: 1px;
    background: var(--rose-light);
    transform: scaleX(0); transform-origin: right;
    transition: transform .35s var(--ease-out);
  }
  .nav-desktop ul a:hover, .nav-desktop ul a[aria-current="true"] { color: var(--ink); }
  .nav-desktop ul a:hover::after, .nav-desktop ul a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(2.25rem, 1rem + 4vw, 4.5rem) clamp(3.5rem, 2rem + 4vw, 5.5rem);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  /* luz difusa vinho, bem discreta */
  content: ""; position: absolute; z-index: -1;
  width: min(80vw, 820px); aspect-ratio: 1;
  right: -18%; top: -10%;
  background: radial-gradient(closest-side, rgba(72, 30, 43, .55), rgba(72, 30, 43, 0));
  pointer-events: none;
}

.hero-grid { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 4rem); align-items: center; }

.hero-title {
  margin-top: 1.4rem;
  font-size: var(--fs-h1);
  line-height: 1.02;
  letter-spacing: -.028em;
  max-width: 12ch;
}
.hero-title em {
  display: block;
  font-style: italic;
  color: var(--rose-light);
  letter-spacing: -.02em;
}
.hero-lead {
  margin-top: 1.5rem;
  max-width: 34rem;
  font-size: var(--fs-lead);
  line-height: 1.75;
  color: var(--ink-2);
}
.hero .actions { margin-top: 2rem; }

.hero-facts {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: start;
  gap: 1rem clamp(1.25rem, 3vw, 2.75rem);
  margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.hero-facts dt { font-size: .66rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.hero-facts dd { margin-top: .3rem; font-family: var(--font-serif); font-size: clamp(1.05rem, .95rem + .4vw, 1.3rem); color: var(--ink); white-space: nowrap; }
.hero-facts a { border-bottom: 1px solid var(--line-wine); transition: border-color .25s, color .25s; }
.hero-facts a:hover { color: var(--rose-light); border-color: var(--rose-light); }

.hero-media { position: relative; margin-right: .75rem; margin-top: .75rem; }
.hero-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 78svh;
  background: var(--bg-3);
}
.hero-frame::before {
  /* moldura deslocada fina */
  content: ""; position: absolute; inset: -.75rem -.75rem .75rem .75rem;
  border: 1px solid var(--line-wine);
  pointer-events: none;
}
.hero-frame img {
  position: relative;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 30%;
}
.hero-caption {
  display: flex; justify-content: space-between; gap: 1rem;
  margin-top: 1rem;
  font-size: .68rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-3);
}
.hero-caption span:first-child { color: var(--ink-2); }

.scroll-cue { display: none; }

@media (max-width: 389px) {
  .eyebrow--line { gap: .6rem; letter-spacing: .19em; }
  .eyebrow--line::before { width: 1.1rem; }
  .hero-facts { grid-template-columns: 1fr 1fr; }
  .hero-facts > div:last-child { grid-column: 1 / -1; }
}
@media (max-width: 559px) {
  .hero .actions .btn { flex: 1 1 100%; }
}

/* Camada de recorte: existe só na composição mobile */
.hero-cutout { display: none; }

@media (max-width: 899px) {
  /* ==========================================================
     HERO MOBILE — composição editorial em camadas
     1 fundo · 2 foto (+ escurecimento da parede) · 3 título
     4 topo da cabeça recortado (à frente do título) · 5 botões
     ========================================================== */
  .hero {
    --hero-bleed: max(var(--gutter), env(safe-area-inset-left));
    --hero-photo-h: min(125vw, 64svh);
    padding-block: clamp(1.1rem, .6rem + 2.4vw, 2rem) clamp(2.75rem, 2rem + 3vw, 4rem);
  }
  .hero::before { right: -45%; top: -22%; width: 115vw; opacity: .7; }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "eyebrow"
      "title"
      "media"
      "lead"
      "facts";
    gap: 0;
    align-items: start;
  }
  /* os filhos do bloco de texto passam a ser itens da grade, sem mudar o HTML */
  .hero-copy { display: contents; }
  .hero-copy > .eyebrow { grid-area: eyebrow; }

  .hero-title {
    grid-area: title;
    position: relative; z-index: 2;
    margin-top: 1rem;
    font-size: clamp(2.6rem, 1.2rem + 7vw, 3.6rem);
    line-height: 1;
    letter-spacing: -.03em;
    max-width: 11ch;
  }
  .hero-title em { margin-top: .04em; }

  /* Foto: largura total, começa sob a última linha do título */
  .hero-media {
    grid-area: media;
    position: relative;
    width: auto;
    margin: calc(var(--hero-title-overlap, 1.04) * -1em) calc(var(--hero-bleed) * -1) 0;
    font-size: clamp(2.6rem, 1.2rem + 7vw, 3.6rem); /* 1em = tamanho do título */
  }
  .hero-frame {
    position: static;
    height: var(--hero-photo-h);
    max-height: none;
    aspect-ratio: auto;
    background: none;
  }
  .hero-frame::before { content: none; }
  .hero-frame img {
    position: absolute; inset: 0; z-index: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: 50% 0%;
  }
  .hero-frame > img:first-child,
  .hero-frame::after {
    /* entra suave no fundo em cima e se dissolve embaixo */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 9%, #000 58%, transparent 100%);
            mask-image: linear-gradient(to bottom, transparent 0, #000 9%, #000 58%, transparent 100%);
  }
  .hero-frame::after {
    /* escurece só a parede atrás do título (termina antes do fim do recorte) */
    content: ""; position: absolute; inset: 0; z-index: 1;
    background:
      linear-gradient(to bottom, rgba(12, 9, 11, .72) 0%, rgba(12, 9, 11, .3) 14%, rgba(12, 9, 11, 0) 25%),
      linear-gradient(to right, rgba(12, 9, 11, .55), rgba(12, 9, 11, 0) 22%, rgba(12, 9, 11, 0) 78%, rgba(12, 9, 11, .55));
    pointer-events: none;
  }
  .hero-cutout {
    display: block;
    z-index: 3;
    pointer-events: none;
  }

  /* Legenda vertical discreta na lateral da foto */
  .hero-caption {
    position: absolute; z-index: 3;
    right: calc(var(--hero-bleed) * .55); top: calc(var(--hero-photo-h) * .2);
    margin: 0;
    writing-mode: vertical-rl;
    gap: 1rem;
    font-size: .55rem; letter-spacing: .26em;
    color: rgba(241, 233, 231, .62);
  }
  .hero-caption span:first-child { color: var(--rose-light); }

  /* Botões sobre a parte inferior da foto (peito/roupa escura), nunca sobre o rosto */
  .hero .actions {
    grid-area: media;
    align-self: end;
    position: relative; z-index: 4;
    margin: 0;
    flex-wrap: nowrap;
    gap: .6rem;
  }
  .hero .actions .btn { flex: 1 1 auto; padding-inline: .9rem; min-height: 3.2rem; }
  .hero .actions .btn--primary { flex-grow: 1.5; }
  .hero .actions .btn--ghost {
    background: rgba(12, 9, 11, .55);
    -webkit-backdrop-filter: blur(8px);
            backdrop-filter: blur(8px);
  }

  @media (max-width: 599px) {
    .hero-grid {
      grid-template-areas:
        "eyebrow"
        "title"
        "media"
        "lead"
        "more"
        "facts";
    }
    .hero .actions { display: contents; }
    .hero .actions .btn--primary { grid-area: media; align-self: end; position: relative; z-index: 4; }
    .hero .actions .btn--ghost { grid-area: more; margin-top: 1.25rem; }
    .hero .actions .btn { flex: none; width: 100%; }
  }

  .hero-lead {
    grid-area: lead;
    margin-top: 1.5rem;
    font-size: 1rem;
    line-height: 1.7;
  }

  /* Informações em faixa horizontal compacta */
  .hero-facts {
    grid-area: facts;
    grid-template-columns: repeat(3, minmax(0, auto));
    justify-content: space-between;
    gap: .75rem 1rem;
    margin-top: 1.5rem; padding-top: 1.15rem;
  }
  .hero-facts > div { display: grid; grid-template-rows: 1fr auto; }
  .hero-facts dt { align-self: end; font-size: .6rem; letter-spacing: .16em; line-height: 1.45; }
  .hero-facts dd { font-size: 1.02rem; }

  /* entrada suave sem criar contexto de empilhamento na figura */
  /* a figura não pode virar camada própria, senão o recorte fica preso atrás do título */
  html.js .hero .hero-media { animation: none; }
  html.js .hero .hero-frame img { animation: heroIn 1.2s var(--ease-out) .1s both; }
}

@media (max-width: 899px) and (min-width: 600px) {
  /* tablet: foto proporcional e centralizada, mesma linguagem */
  .hero { --hero-photo-h: min(88vw, 64svh); }
  .hero-title { max-width: 12ch; }
  .hero .actions { max-width: 34rem; }
  .hero-lead { max-width: 36rem; }
  .hero-facts { justify-content: start; gap: 1rem 2.75rem; }
}

@media (max-width: 899px) {
  /* faixa horizontal de 3 informações (anula a regra antiga de 2 colunas) */
  .hero-facts > div:last-child { grid-column: auto; }
}
@media (max-width: 339px) {
  /* telas muito estreitas: informações em 2 colunas */
  .hero-facts { grid-template-columns: 1fr 1fr; }
  .hero-facts > div:last-child { grid-column: 1 / -1; }
}

@media (min-width: 900px) {
  .hero {
    min-height: calc(100svh - var(--header-h));
    display: flex; flex-direction: column; justify-content: center;
    padding-block: 3rem 5.5rem;
  }
  .hero-grid { grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); gap: clamp(3rem, 6vw, 6.5rem); }
  .hero-title { max-width: 11.5ch; }
  .hero-media { margin: .75rem .75rem 0 0; }
  .hero-frame { max-height: min(72svh, 640px); margin-left: auto; }

  .scroll-cue {
    position: absolute; left: 50%; bottom: 1.5rem; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: .6rem;
    font-size: .64rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
    color: var(--ink-3);
    transition: color .25s;
  }
  .scroll-cue:hover { color: var(--ink); }
  .scroll-cue i { width: 1px; height: 2.5rem; background: linear-gradient(var(--rose), transparent); transform-origin: top; animation: cue 2.4s var(--ease) infinite; }
}
@keyframes cue { 0% { transform: scaleY(0); } 45% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Seções ---------- */
.section { padding-block: var(--section-y); border-top: 1px solid var(--line); }

.section-head { display: grid; gap: 1.25rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem); }
.section-intro { max-width: 26rem; color: var(--ink-3); font-size: .95rem; line-height: 1.75; }
.section-intro a { color: var(--ink-2); border-bottom: 1px solid var(--line-wine); transition: color .25s, border-color .25s; }
.section-intro a:hover { color: var(--rose-light); border-color: var(--rose-light); }

@media (min-width: 760px) {
  .section-head:not(.section-head--stack) { grid-template-columns: 1fr auto; align-items: end; }
  .section-head:not(.section-head--stack) .section-intro { text-align: right; }
}

/* ---------- Portfólio ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); }
.filter {
  display: inline-flex; align-items: center; gap: .55rem;
  min-height: 2.75rem;
  padding: .55rem 1.05rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: .82rem; font-weight: 500; letter-spacing: .02em;
  color: var(--ink-2);
  -webkit-tap-highlight-color: transparent;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.filter-count { font-size: .68rem; color: var(--ink-3); font-variant-numeric: tabular-nums; transition: color .25s; }
.filter:hover { border-color: var(--rose); color: var(--ink); }
.filter.is-active { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.filter.is-active .filter-count { color: var(--terra); }

.gallery {
  list-style: none; padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: clamp(.75rem, .4rem + 1.2vw, 1.25rem);
}
.work { min-width: 0; }
.work[hidden] { display: none !important; }
.work figure { display: flex; flex-direction: column; height: 100%; }
.work--feature { grid-column: span 2; }

.work-media {
  position: relative; display: block; width: 100%;
  overflow: hidden;
  background: var(--bg-3);
  border: 1px solid var(--line);
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
}
.work-media img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  transition: transform .9s var(--ease-out), opacity .4s var(--ease);
}
.work-media::after {
  /* véu + ícone de ampliar ao passar o mouse */
  content: "";
  position: absolute; inset: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Ccircle cx='24' cy='24' r='23' fill='rgba(12,9,11,.55)' stroke='rgba(241,233,231,.5)'/%3E%3Cpath d='M24 17v14M17 24h14' stroke='%23F1E9E7' stroke-width='1.4'/%3E%3C/svg%3E") center / 3rem no-repeat,
    linear-gradient(to top, rgba(12, 9, 11, .45), rgba(12, 9, 11, 0) 55%);
  opacity: 0;
  transition: opacity .45s var(--ease);
}
@media (hover: hover) {
  .work-media:hover img { transform: scale(1.04); }
  .work-media:hover::after { opacity: 1; }
}
.work-media:focus-visible { outline-offset: 4px; }
.work-media:focus-visible::after { opacity: 1; }

.work-meta {
  display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap;
  padding: .8rem .1rem 0;
  font-size: .8rem; line-height: 1.35;
}
.work-num { font-size: .66rem; color: var(--rose-light); letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.work-cat { font-weight: 600; font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); }
.work-title { color: var(--ink-3); flex-basis: 100%; font-family: var(--font-serif); font-style: italic; font-size: .98rem; }

@media (min-width: 700px) {
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .work--feature { grid-column: span 2; grid-row: span 2; }
  .work-meta { padding-top: .9rem; }
  .work--feature .work-meta { padding-top: 1rem; }
  /* Filtrado: grade uniforme */
  .gallery:not(.is-filtered) .work--feature .work-media { flex: 1; min-height: 0; }
  .gallery:not(.is-filtered) .work--feature .work-media img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
  .gallery.is-filtered .work--feature { grid-column: auto; grid-row: auto; }
  .gallery.is-filtered[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.gallery.is-filtered .work--feature { grid-column: auto; }

/* Animação de entrada dos itens filtrados */
.work.is-entering { animation: workIn .55s var(--ease-out) both; }
@keyframes workIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Sobre ---------- */
.about { background: var(--bg-2); }
.about-grid { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 5.5rem); align-items: center; }
.about-media { position: relative; width: min(100%, 34rem); }
.about-frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-3); }
.about-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.about-media::after {
  content: ""; position: absolute; left: -1px; top: 2.5rem; width: 1px; height: 6rem;
  background: var(--rose);
}
.about-media figcaption {
  margin-top: 1rem;
  font-size: .68rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3);
}

.about-copy h2 { margin-bottom: 1.75rem; }
.about-lead {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem);
  line-height: 1.38;
  letter-spacing: -.01em;
  color: var(--ink);
  max-width: 30rem;
}
.about-copy > p:not(.eyebrow):not(.about-lead) { margin-top: 1.25rem; color: var(--ink-2); max-width: 32rem; line-height: 1.8; }
.about-note {
  display: flex; gap: .9rem; align-items: flex-start;
  margin-top: 2rem; padding: 1.15rem 1.25rem;
  border: 1px solid var(--line);
  border-left: 2px solid var(--terra);
  background: rgba(12, 9, 11, .45);
  max-width: 32rem;
}
.about-note svg { width: 1.3rem; height: 1.3rem; flex: none; color: var(--rose-light); margin-top: .15rem; }
.about-note p { font-size: .92rem; line-height: 1.7; color: var(--ink-2); }
.about-note strong { color: var(--ink); font-weight: 600; }
.about .actions { margin-top: 2rem; }

@media (max-width: 859px) {
  .about-media { margin-inline: auto; }
}
@media (min-width: 860px) {
  .about-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
}

/* ---------- Como agendar ---------- */
.steps {
  list-style: none; padding: 0;
  display: grid; gap: 0;
  counter-reset: step;
}
.step {
  position: relative;
  display: grid; grid-template-columns: auto 1fr; column-gap: 1.25rem; row-gap: .4rem;
  padding-block: 1.75rem;
  border-top: 1px solid var(--line-2);
}
.step:last-child { border-bottom: 1px solid var(--line-2); }
.step-num {
  grid-row: span 2;
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(2.2rem, 1.8rem + 1.5vw, 3.2rem); line-height: .9;
  color: var(--rose);
  min-width: 2.6ch;
}
.step p { color: var(--ink-3); line-height: 1.75; max-width: 22rem; }

@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); }
  .step { display: block; padding-block: 2rem 0; border-bottom: 0 !important; }
  .step::before {
    content: ""; position: absolute; top: -1px; left: 0; width: 3rem; height: 1px; background: var(--rose-light);
  }
  .step-num { display: block; margin-bottom: 1.5rem; }
  .step h3 { margin-bottom: .6rem; }
}

/* ---------- Agendamento ---------- */
.booking {
  position: relative;
  padding-block: var(--section-y);
  background:
    radial-gradient(60% 80% at 0% 0%, rgba(72, 30, 43, .55), rgba(72, 30, 43, 0) 70%),
    var(--bg-2);
  border-top: 1px solid var(--line-wine);
}
.booking-grid { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 5rem); align-items: start; }
.booking-text { margin-top: 1.5rem; color: var(--ink-2); max-width: 28rem; line-height: 1.8; }

.contact-list { list-style: none; padding: 0; display: grid; gap: .75rem; margin-top: 2.25rem; max-width: 26rem; }
.contact-card {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line-2);
  background: rgba(12, 9, 11, .5);
  transition: border-color .3s var(--ease), background-color .3s var(--ease), transform .3s var(--ease);
}
.contact-card:hover { border-color: var(--rose); background: rgba(72, 30, 43, .35); }
.contact-icon {
  display: grid; place-items: center; flex: none;
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  border: 1px solid var(--line-wine); color: var(--rose-light);
}
.contact-icon svg { width: 1.2rem; height: 1.2rem; }
.contact-text { display: grid; min-width: 0; }
.contact-label { font-size: .66rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.contact-value { font-size: 1.02rem; color: var(--ink); overflow-wrap: anywhere; }
.contact-arrow { margin-left: auto; color: var(--ink-3); transition: transform .3s var(--ease), color .3s; }
.contact-card:hover .contact-arrow { transform: translate(2px, -2px); color: var(--rose-light); }

.booking-form {
  display: grid; gap: 1.15rem;
  padding: clamp(1.35rem, 1rem + 2vw, 2.5rem);
  background: var(--bg);
  border: 1px solid var(--line-2);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .6);
}
.form-title {
  font-family: var(--font-serif); font-size: 1.35rem; line-height: 1.25;
  padding-bottom: 1.1rem; margin-bottom: .2rem;
  border-bottom: 1px solid var(--line);
}
.field { display: grid; gap: .5rem; }
.field-label { font-size: .78rem; font-weight: 600; letter-spacing: .04em; color: var(--ink-2); }
.field input, .field select {
  width: 100%;
  min-height: 3.2rem;
  padding: .8rem 1rem;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--bg-2);
  color: var(--ink);
  font-size: 1rem; /* 16px evita zoom no iOS */
  outline: none;
  transition: border-color .25s var(--ease), background-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field input::placeholder { color: #8E7F80; opacity: 1; }
.field input:hover, .field select:hover { border-color: rgba(241, 233, 231, .26); }
.field input:focus-visible, .field select:focus-visible {
  border-color: var(--rose-light);
  box-shadow: 0 0 0 3px rgba(196, 141, 151, .18);
  background: var(--bg-3);
}
.field input:user-invalid, .field select:user-invalid { border-color: #C46A6A; }
.select-wrap { position: relative; display: block; }
.select-wrap::after {
  content: ""; position: absolute; right: 1.1rem; top: 50%;
  width: .5rem; height: .5rem; margin-top: -.35rem;
  border-right: 1.5px solid var(--ink-2); border-bottom: 1.5px solid var(--ink-2);
  transform: rotate(45deg); pointer-events: none;
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 2.75rem; cursor: pointer; }
.field select option { background: var(--bg-2); color: var(--ink); }
.booking-form .btn { margin-top: .5rem; min-height: 3.5rem; }
.note { font-size: .82rem; line-height: 1.65; color: var(--ink-3); }

@media (min-width: 900px) {
  .booking-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .booking-copy { position: sticky; top: calc(var(--header-h) + 2rem); }
}

/* ---------- Rodapé ---------- */
.site-footer { border-top: 1px solid var(--line); padding-top: clamp(3rem, 2rem + 3vw, 4.5rem); padding-bottom: calc(6.5rem + env(safe-area-inset-bottom)); }
.footer-grid { display: grid; gap: 2rem; padding-bottom: 2.25rem; }
.footer-brand { display: grid; gap: .5rem; }
.footer-brand .brand-name { font-size: 1.6rem; }
.footer-brand .brand-sub { margin: 0; letter-spacing: .22em; line-height: 1.7; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.footer-nav a { color: var(--ink-2); font-size: .9rem; padding-block: .45rem; transition: color .25s; }
.footer-nav a:hover { color: var(--rose-light); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 1.5rem;
  padding-top: 1.5rem; border-top: 1px solid var(--line);
  font-size: .8rem; color: var(--ink-3);
}
.to-top { transition: color .25s; }
.to-top:hover { color: var(--ink); }

@media (min-width: 760px) {
  .footer-grid { grid-template-columns: auto auto; justify-content: space-between; align-items: end; }
}
@media (min-width: 900px) {
  .site-footer { padding-bottom: 2.5rem; }
}

/* ---------- Barra fixa mobile ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: .75rem max(var(--gutter), env(safe-area-inset-left)) max(.75rem, env(safe-area-inset-bottom));
  background: rgba(12, 9, 11, .9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform .45s var(--ease-out);
}
.mobile-bar.is-visible { transform: none; }
html.no-js .mobile-bar { transform: none; }
@media (min-width: 900px) { .mobile-bar { display: none; } }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100%; height: 100%;
  max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(8, 6, 7, .96);
  color: var(--ink);
  overflow: hidden;
}
.lightbox::backdrop { background: rgba(8, 6, 7, .9); }
.lightbox[open] { animation: lbIn .35s var(--ease) both; }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }

.lightbox-inner {
  position: relative; height: 100%;
  display: grid; grid-template-rows: auto 1fr;
  padding: max(.75rem, env(safe-area-inset-top)) max(.75rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(.75rem, env(safe-area-inset-left));
}
.lightbox-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-left: .5rem; }
.lightbox-counter { font-size: .75rem; letter-spacing: .2em; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.lightbox-figure {
  min-height: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
  padding: .5rem 0 0;
  touch-action: pan-y pinch-zoom;
}
.lightbox-figure img {
  max-width: 100%;
  max-height: calc(100% - 3rem);
  width: auto; height: auto;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
  transition: opacity .25s var(--ease);
}
.lightbox-figure img.is-loading { opacity: 0; }
.lightbox-figure figcaption { text-align: center; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }

.lb-btn {
  display: grid; place-items: center;
  width: 3rem; height: 3rem; border-radius: 50%;
  border: 1px solid var(--line-2);
  background: rgba(21, 16, 19, .7);
  color: var(--ink);
  transition: background-color .25s, border-color .25s;
}
.lb-btn:hover { background: var(--terra); border-color: var(--terra); }
.lb-btn svg { width: 1.25rem; height: 1.25rem; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: max(.75rem, env(safe-area-inset-left)); }
.lb-next { right: max(.75rem, env(safe-area-inset-right)); }
.lb-btn[hidden] { display: none; }

@media (max-width: 699px) {
  /* no celular, setas ficam embaixo para não cobrir a foto */
  .lightbox-inner {
    grid-template-rows: auto 1fr auto;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "top top" "fig fig" "prev next";
    row-gap: .75rem;
  }
  .lb-prev, .lb-next { position: static; transform: none; }
  .lightbox-top { grid-area: top; }
  .lightbox-figure { grid-area: fig; }
  .lb-prev { grid-area: prev; justify-self: end; margin-right: .5rem; }
  .lb-next { grid-area: next; justify-self: start; margin-left: .5rem; }
}
@media (min-width: 700px) {
  .lightbox-inner { padding-inline: 5.5rem; }
}

/* ---------- Aparecimento suave ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
html.js [data-reveal].is-visible { opacity: 1; transform: none; }
html.js .hero-copy > *, html.js .hero-media {
  animation: heroIn 1s var(--ease-out) both;
}
html.js .hero-copy > :nth-child(2) { animation-delay: .08s; }
html.js .hero-copy > :nth-child(3) { animation-delay: .16s; }
html.js .hero-copy > :nth-child(4) { animation-delay: .22s; }
html.js .hero-copy > :nth-child(5) { animation-delay: .28s; }
html.js .hero-media { animation-delay: .12s; animation-duration: 1.2s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  html.js [data-reveal] { opacity: 1; transform: none; }
}

/* Indicador de rolagem só onde há espaço vertical sobrando */
@media (max-width: 1199px), (max-height: 820px) {
  .scroll-cue { display: none !important; }
}


/* ---------- Biossegurança | editorial ---------- */
#biosseguranca { scroll-margin-top: calc(var(--header-h) + 1rem); }
.biosafety { background: var(--bg); position: relative; }
.bio-head { display: grid; gap: 1.6rem; align-items: end; margin-bottom: clamp(2.25rem, 4vw, 4.25rem); }
.bio-head h2 { max-width: 14ch; font-family: var(--font-serif); font-size: var(--fs-h2); line-height: 1.12; font-weight: 400; letter-spacing: -.035em; margin-top: 1.1rem; }
.bio-head h2 em { color: var(--rose-light); font-weight: 400; }
.bio-head-aside { max-width: 35rem; }
.bio-head-aside p { font-size: clamp(.97rem, 1.3vw, 1.07rem); line-height: 1.85; color: var(--ink-2); }
.bio-rule { display: block; width: 3.25rem; height: 1px; background: var(--rose); margin-bottom: 1.25rem; }
.bio-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.bio-card { min-width: 0; background: linear-gradient(145deg, #1b1418, #120e11); border: 1px solid var(--line-2); padding: clamp(1.4rem, 2.5vw, 2.5rem); transition: border-color .3s var(--ease), transform .3s var(--ease); }
.bio-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: clamp(1.8rem, 3vw, 3rem); }
.bio-card-number { font-size: .68rem; font-weight: 600; letter-spacing: .22em; color: var(--rose-light); }
.bio-card-icon { width: 2.3rem; height: 2.3rem; flex: none; color: var(--rose-light); }
.bio-card h3 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.4rem, 2.2vw, 1.85rem); letter-spacing: -.02em; line-height: 1.3; margin-bottom: .9rem; }
.bio-card p { font-size: .94rem; line-height: 1.8; color: var(--ink-2); max-width: 33rem; }
@media (hover: hover) { .bio-card:hover { border-color: var(--line-wine); transform: translateY(-3px); } }
.bio-safety-note { display: flex; align-items: flex-start; gap: 1rem; margin: 2rem 0 3rem; max-width: 60rem; font-size: .91rem; line-height: 1.75; color: var(--ink-2); }
.bio-safety-note span { font-size: 1.25rem; color: var(--rose-light); line-height: 1.4; }
.bio-details { border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.bio-details summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 1.65rem .2rem; }
.bio-details summary::-webkit-details-marker { display: none; }
.bio-details summary small { display: block; color: var(--rose-light); letter-spacing: .19em; font-size: .64rem; font-weight: 600; margin-bottom: .55rem; }
.bio-details summary strong { display: block; font-family: var(--font-serif); font-size: clamp(1.2rem, 2.2vw, 1.75rem); font-weight: 400; }
.bio-details summary:hover strong { color: var(--rose-light); }
.bio-details summary:focus-visible { outline: 2px solid var(--rose-light); outline-offset: 3px; }
.bio-plus { position: relative; width: 2rem; height: 2rem; border: 1px solid var(--line-wine); border-radius: 50%; flex: none; }
.bio-plus::before, .bio-plus::after { content: ''; position: absolute; width: .75rem; height: 1px; background: var(--rose-light); top: 50%; left: 50%; transform: translate(-50%, -50%); }
.bio-plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .25s var(--ease); }
.bio-details[open] .bio-plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.bio-details-content { display: grid; gap: 1.65rem 2.5rem; padding: .3rem .2rem 2rem; }
.bio-details-content h3 { font-size: .95rem; font-weight: 600; margin-bottom: .55rem; color: var(--ink); }
.bio-details-content p { color: var(--ink-2); font-size: .88rem; line-height: 1.8; }
.bio-references { padding-top: 2rem; font-size: .78rem; line-height: 1.8; color: var(--ink-3); }
.bio-references ul { display: flex; flex-wrap: wrap; list-style: none; gap: .25rem 1.5rem; padding: .55rem 0; }
.bio-references a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-wine); text-underline-offset: .2em; overflow-wrap: anywhere; }
.bio-references a:hover { color: var(--rose-light); }
.bio-disclaimer { font-size: .73rem; max-width: 48rem; }
@media (min-width: 720px) { .bio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bio-details-content { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .bio-head { grid-template-columns: 1.1fr .9fr; gap: 3rem; } }
@media (max-width: 399px) { .bio-card { padding: 1.25rem; } .bio-head h2 { overflow-wrap: break-word; } }

/* Logo original integrada ao cabeçalho — Rob Piercer */
.site-header .brand {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  min-width: 0;
}
.site-header .brand-symbol {
  display: block;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  object-fit: contain;
}
.site-header .brand-copy {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
  line-height: 1;
}
@media (max-width: 767px) {
  .site-header .brand { gap: 10px; }
  .site-header .brand-symbol {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }
}
@media (max-width: 359px) {
  .site-header .brand { gap: 8px; }
  .site-header .brand-symbol {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }
  .site-header .brand-name { font-size: 1.12rem; }
  .site-header .brand-sub { font-size: .54rem; letter-spacing: .25em; }
}
