/* ==========================================================
   Tayane Cristine Fotografia
   Shape rule: interactive = pill, inputs = 12px, media = 4px
   One accent (rose, from the logo). Light + dark via tokens.
   ========================================================== */

:root {
  --bg: #f7ecf0;
  --surface: #efdde5;
  --field: #fdf8fa;
  --ink: #2a2027;
  --muted: #57434f;
  --line: #e4cfd8;
  --accent: #a3517a;
  --accent-ink: #ffffff;
  --accent-soft: #ecc6d8;
  --shadow: 0 24px 60px -28px rgb(110 50 80 / .35);

  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-media: 14px;
  --r-input: 12px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 120px;

  color-scheme: only light;
}



*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
figure { margin: 0; }
::selection { background: var(--accent-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px;
  transition: top .2s;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(80px, 11vw, 150px) 0; }
.top-sentinel { position: absolute; top: 0; height: 40px; width: 1px; }

/* ---------- Type ---------- */
.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 4.6vw, 4.2rem);
  line-height: 1.12;
  letter-spacing: -.01em;
  margin: 0 0 24px;
  text-wrap: balance;
}
.display em, .h2 em { font-style: italic; color: var(--accent); padding-bottom: .08em; }
.h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.18;
  letter-spacing: -.01em;
  margin: 0 0 28px;
  text-wrap: balance;
}
.eyebrow {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 20px;
}
.lead { font-size: clamp(1.02rem, 1.3vw, 1.14rem); color: var(--muted); max-width: 44ch; margin: 0 0 36px; }

/* ---------- Buttons ---------- */
.btn {
  --bh: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--bh);
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: .95rem; font-weight: 600; letter-spacing: .01em;
  white-space: nowrap;
  transition: transform .35s var(--ease), background-color .3s var(--ease-soft), color .3s var(--ease-soft), border-color .3s var(--ease-soft), box-shadow .35s var(--ease);
}
.btn i { font-size: 1.25em; }
.btn:active { transform: scale(.97); }
.btn-solid { background: var(--accent); color: var(--accent-ink); }
.btn-solid:hover { transform: translateY(-2px); background: color-mix(in srgb, var(--accent) 88%, var(--ink)); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost i { transition: transform .35s var(--ease); }
.btn-ghost:hover i { transform: translate(2px, 2px); }
.btn-sm { --bh: 44px; padding: 0 20px; font-size: .88rem; }
.btn-block { width: 100%; }

/* ---------- Header (centred logo, split navigation) ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 40;
  height: var(--header-h);
  transition: background-color .45s var(--ease-soft), box-shadow .45s var(--ease-soft), height .5s var(--ease);
}
.site-header.is-scrolled {
  --header-h: 84px;
  background: var(--bg);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner {
  height: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 32px;
}
.brand { display: block; justify-self: center; }
.brand img { height: 100px; width: auto; transition: height .5s var(--ease), transform .4s var(--ease); }
.brand:hover img { transform: rotate(-2deg) scale(1.03); }
.site-header.is-scrolled .brand img { height: 66px; }
.nav { display: flex; gap: clamp(22px, 2.6vw, 40px); }
.nav-left { justify-self: start; }
.nav-right { justify-self: end; display: flex; align-items: center; gap: clamp(22px, 2.6vw, 40px); }
.nav a {
  position: relative; padding: 8px 0;
  font-size: .78rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink); transition: color .3s;
}
.nav a::after {
  content: ""; position: absolute; left: 50%; right: 50%; bottom: 2px; height: 1px;
  background: var(--accent);
  transition: left .45s var(--ease), right .45s var(--ease);
}
.nav a:hover, .nav a.is-active { color: var(--accent); }
.nav a:hover::after, .nav a.is-active::after { left: 0; right: 0; }
.header-cta {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px;
  border: 1px solid var(--accent); border-radius: 999px; color: var(--accent);
  font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
  transition: background-color .35s var(--ease-soft), color .35s var(--ease-soft), transform .35s var(--ease);
}
.header-cta i { font-size: 1.15rem; }
.header-cta:hover { background: var(--accent); color: var(--accent-ink); }
.header-cta:active { transform: scale(.97); }

.menu-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none;
  position: relative; z-index: 60;
}
.menu-toggle span {
  position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink); border-radius: 2px;
  transition: transform .45s var(--ease), top .45s var(--ease);
}
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 26px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 21.5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 21.5px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 35;
  background: var(--bg);
  padding: calc(var(--header-h) + 32px) var(--gutter) 40px;
  display: flex; flex-direction: column; gap: 40px;
  opacity: 0; transition: opacity .4s var(--ease-soft);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { opacity: 1; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 6px; }
.mobile-menu nav a {
  font-family: var(--serif); font-size: 2.6rem; line-height: 1.25;
  opacity: 0; transform: translateY(18px);
  transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.mobile-menu.is-open nav a { opacity: 1; transform: none; }
.mobile-menu.is-open nav a:nth-child(2) { transition-delay: .05s; }
.mobile-menu.is-open nav a:nth-child(3) { transition-delay: .1s; }
.mobile-menu.is-open nav a:nth-child(4) { transition-delay: .15s; }
.mobile-menu .btn { align-self: flex-start; }
.mobile-social { display: flex; gap: 18px; font-size: 1.6rem; color: var(--muted); margin-top: auto; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(60% 70% at 85% 30%, color-mix(in srgb, var(--accent-soft) 70%, transparent), transparent 70%),
    radial-gradient(50% 60% at 0% 100%, color-mix(in srgb, var(--surface) 90%, transparent), transparent 70%);
}
.hero { padding: calc(var(--header-h) + clamp(24px, 5vw, 64px)) 0 clamp(64px, 8vw, 110px); min-height: 100dvh; display: flex; align-items: center; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-media { position: relative; aspect-ratio: 5 / 5.6; }
.hero-img { position: absolute; overflow: hidden; border-radius: var(--r-media); }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-img--main { left: 0; top: 0; width: 64%; height: 92%; }
.hero-img--second { right: 0; top: 18%; width: 42%; height: 52%; }
.hero-img--third { right: 8%; bottom: 0; width: 38%; height: 26%; }

/* load animation */
.load-in { opacity: 0; transform: translateY(22px); animation: rise 1s var(--ease) forwards; animation-delay: calc(.15s + var(--d, 0) * .1s); }
.hero-img { clip-path: inset(100% 0 0 0); animation: unveil 1.4s var(--ease) forwards; }
.hero-img img { transform: scale(1.18); animation: settle 1.8s var(--ease) forwards; }
.hero-img--main, .hero-img--main img { animation-delay: .25s; }
.hero-img--second, .hero-img--second img { animation-delay: .45s; }
.hero-img--third, .hero-img--third img { animation-delay: .65s; }

@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes unveil { to { clip-path: inset(0 0 0 0); } }
@keyframes settle { to { transform: scale(1); } }

/* ---------- Ensaios ---------- */
.ensaios-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  grid-template-rows: auto auto;
  gap: clamp(20px, 3vw, 40px);
  margin-top: 24px;
}
.ensaio { display: flex; flex-direction: column; gap: 22px; }
.ensaio--lg { grid-row: span 2; }
.ensaio--sm { flex-direction: row; align-items: flex-end; }
.ensaio--sm .ensaio-img { flex: 0 0 46%; aspect-ratio: 4 / 5; }
.ensaio-img { overflow: hidden; border-radius: var(--r-media); background: var(--surface); }
.ensaio--lg .ensaio-img { aspect-ratio: 5 / 5.4; }
.ensaio--md .ensaio-img { aspect-ratio: 16 / 10; }
.ensaio-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.ensaio:hover .ensaio-img img { transform: scale(1.05); }
.ensaio h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 2.4vw, 2.2rem); line-height: 1.15; margin: 0 0 8px; }
.ensaio p { color: var(--muted); margin: 0 0 14px; max-width: 42ch; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; color: var(--accent); }
.link-arrow i { transition: transform .4s var(--ease); }
.ensaio:hover .link-arrow i { transform: translateX(5px); }

/* ---------- Band ---------- */
.band { position: relative; min-height: min(88vh, 760px); display: grid; place-items: end start; overflow: hidden; color: #fff; isolation: isolate; }
.band-media { position: absolute; inset: 0; z-index: -1; }
.band-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(30 15 22 / 0) 30%, rgb(30 15 22 / .72) 100%); }
.band-copy { padding: 0 var(--gutter) clamp(48px, 7vw, 96px); max-width: 1320px; width: 100%; margin: 0 auto; }
.band-number { font-family: var(--serif); font-size: clamp(4rem, 11vw, 9rem); line-height: 1; margin: 0; letter-spacing: -.03em; font-variant-numeric: lining-nums tabular-nums; }
.band-text { font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 2.6vw, 2.2rem); line-height: 1.2; margin: 10px 0 0; max-width: 26ch; }

/* ---------- Portfolio ---------- */
.portfolio-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; margin-bottom: 40px; }
.portfolio-head .h2 { margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button {
  border: 1px solid var(--line); background: transparent; border-radius: 999px;
  padding: 10px 20px; font-size: .9rem; font-weight: 500; color: var(--muted);
  transition: background-color .3s, color .3s, border-color .3s, transform .3s var(--ease);
}
.filters button:hover { color: var(--ink); border-color: var(--ink); }
.filters button:active { transform: scale(.96); }
.filters button[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.masonry { columns: 3 300px; column-gap: clamp(12px, 1.6vw, 20px); transition: opacity .35s var(--ease-soft); }
.masonry.is-swapping { opacity: 0; }
.tile {
  display: block; width: 100%; margin: 0 0 clamp(12px, 1.6vw, 20px); padding: 0; border: 0;
  break-inside: avoid; border-radius: var(--r-media); overflow: hidden; background: var(--surface);
  position: relative; cursor: zoom-in;
  opacity: 0; transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .9s var(--ease);
}
.tile.is-in { opacity: 1; transform: none; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), opacity .6s; opacity: 0; }
.tile img.is-loaded { opacity: 1; }
.tile::after { content: ""; position: absolute; inset: 0; background: rgb(40 20 30 / 0); transition: background-color .5s; }
.tile:hover img { transform: scale(1.045); }
.tile:hover::after { background: rgb(40 20 30 / .08); }
.more-wrap { display: flex; justify-content: center; margin-top: 40px; }
.more-wrap[hidden] { display: none; }

/* ---------- Sobre ---------- */
.sobre { background: var(--surface); }
.sobre-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.sobre-img { border-radius: var(--r-media); overflow: hidden; aspect-ratio: 4 / 5; }
.sobre-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.sobre-copy p { color: var(--muted); max-width: 52ch; }
.sobre-copy p.eyebrow { color: var(--accent); }
.facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 20px 48px; margin: 40px 0 0; padding-top: 32px; border-top: 1px solid var(--line); }
.facts div { margin: 0; }
.facts dt { font-family: var(--serif); font-size: 2.2rem; line-height: 1; color: var(--ink); }
.facts dd { margin: 6px 0 0; font-size: .86rem; color: var(--muted); }

/* ---------- Contato ---------- */
.contato-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.contato-copy > p { color: var(--muted); max-width: 48ch; margin: 0 0 36px; }
.wa-form { display: grid; gap: 22px; max-width: 560px; }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-size: .88rem; font-weight: 600; color: var(--ink); padding: 0; margin-bottom: 0; }
.field legend { margin-bottom: 8px; }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: var(--field); border: 1px solid var(--line); border-radius: var(--r-input);
  padding: 14px 16px; min-height: 52px;
  transition: border-color .25s, box-shadow .25s;
}
.field textarea { resize: vertical; min-height: 100px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .8; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.field input[aria-invalid="true"] { border-color: #b3261e; }
.field-error { margin: 0; font-size: .84rem; color: #b3261e; min-height: 0; }

.field-error:empty { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; color: var(--muted);
  cursor: pointer; transition: all .3s var(--ease);
}
.chip:hover span { border-color: var(--ink); color: var(--ink); }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }

.contato-side figure { border-radius: var(--r-media); overflow: hidden; aspect-ratio: 4 / 3; margin-bottom: 32px; }
.contato-side figure img { width: 100%; height: 100%; object-fit: cover; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.contact-list li { display: flex; align-items: center; gap: 14px; color: var(--muted); overflow-wrap: anywhere; }
.contact-list i { font-size: 1.3rem; color: var(--accent); flex: none; }
.contact-list a { color: var(--ink); background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .45s var(--ease); }
.contact-list a:hover { background-size: 100% 1px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); padding: clamp(64px, 8vw, 110px) 0 calc(28px + env(safe-area-inset-bottom)); }
.footer-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
  padding-bottom: clamp(48px, 6vw, 72px); border-bottom: 1px solid var(--line);
}
.footer-cta-title { margin: 0; font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.12; }
.footer-cta-title em { font-style: italic; color: var(--accent); }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1fr; gap: 40px;
  padding: clamp(44px, 5vw, 64px) 0;
}
.footer-brand img { height: 110px; width: auto; margin-bottom: 18px; }
.footer-brand p { margin: 0; max-width: 30ch; color: var(--muted); font-size: .95rem; }
.footer-head { margin: 0 0 18px; font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-col li { color: var(--muted); font-size: .95rem; overflow-wrap: anywhere; }
.footer-col a { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); transition: color .3s, transform .35s var(--ease); }
.footer-col a i { font-size: 1.15rem; color: var(--accent); }
.footer-col a:hover { color: var(--ink); transform: translateX(3px); }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px;
  padding-top: 24px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted);
}
.footer-bottom p { margin: 0; }
.footer-bottom-links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer-bottom-links button { border: 0; background: none; padding: 0; color: inherit; font-size: inherit; }
.footer-bottom-links button:hover, .to-top:hover { color: var(--ink); }
.to-top { display: inline-flex; align-items: center; gap: 6px; }
.to-top i { transition: transform .4s var(--ease); }
.to-top:hover i { transform: translateY(-3px); }

/* ---------- WhatsApp float ---------- */
.wa-float { position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 30; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.wa-fab {
  width: 60px; height: 60px; border-radius: 999px; display: grid; place-items: center;
  background: #25d366; color: #fff; font-size: 2rem;
  box-shadow: 0 14px 30px -10px rgb(37 211 102 / .7);
  transform: scale(0); animation: pop .7s var(--ease) 1.6s forwards;
  transition: transform .35s var(--ease);
}
.wa-fab:hover { transform: scale(1.08) !important; }
.wa-fab::before { content: ""; position: absolute; width: 60px; height: 60px; border-radius: 999px; border: 2px solid #25d366; animation: ring 2.8s var(--ease-soft) 2.6s 3; opacity: 0; }
.wa-bubble {
  position: relative; max-width: 250px; padding: 16px 40px 16px 18px;
  background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: 16px 16px 4px 16px;
  box-shadow: var(--shadow); font-size: .9rem; line-height: 1.45;
  transform-origin: bottom right; animation: bubble .6s var(--ease);
}
.wa-bubble p { margin: 0 0 6px; }
.wa-bubble a { font-weight: 600; color: var(--accent); }
.wa-bubble-close { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; border: 0; background: none; color: var(--muted); display: grid; place-items: center; border-radius: 999px; }
.wa-bubble-close:hover { background: var(--surface); }
@keyframes pop { to { transform: scale(1); } }
@keyframes ring { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes bubble { from { opacity: 0; transform: translateY(8px) scale(.94); } }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: #140e11; color: #fff;
  display: none; grid-template-columns: 72px 1fr 72px; grid-template-rows: 1fr auto; align-items: center;
}
.lightbox[open] { display: grid; animation: fade .4s var(--ease-soft); }
.lightbox::backdrop { background: transparent; }
.lb-stage { grid-column: 2; grid-row: 1; height: 100%; display: grid; place-items: center; padding: 64px 0 16px; min-height: 0; }
.lb-stage img { max-height: calc(100dvh - 160px); max-width: 100%; width: auto; object-fit: contain; border-radius: 6px; transition: opacity .3s var(--ease-soft), transform .5s var(--ease); }
.lb-stage img.is-changing { opacity: 0; transform: scale(.98); }
.lb-btn { width: 52px; height: 52px; border-radius: 999px; border: 1px solid rgb(255 255 255 / .2); background: rgb(255 255 255 / .04); color: #fff; display: grid; place-items: center; font-size: 1.3rem; transition: background-color .3s, transform .3s var(--ease); justify-self: center; }
.lb-btn:hover { background: rgb(255 255 255 / .14); }
.lb-btn:active { transform: scale(.94); }
.lb-close { position: absolute; top: 16px; right: 16px; }
.lb-prev { grid-column: 1; grid-row: 1; }
.lb-next { grid-column: 3; grid-row: 1; }
.lb-bar { grid-column: 1 / -1; grid-row: 2; display: flex; align-items: center; justify-content: center; gap: 20px; padding: 16px 16px calc(24px + env(safe-area-inset-bottom)); }
.lb-bar span { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: rgb(255 255 255 / .8); }
.lightbox .btn-solid { background: #e4a6c3; color: #22161c; }
@keyframes fade { from { opacity: 0; } }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--rd, 0) * .1s); }
.reveal.is-in { opacity: 1; transform: none; }

/* scroll-driven parallax where supported */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .band-media img { animation: band-zoom linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    .sobre-img img { animation: drift linear both; animation-timeline: view(); }
    @keyframes band-zoom { from { transform: scale(1.18) translateY(-4%); } to { transform: scale(1) translateY(4%); } }
    @keyframes drift { from { transform: scale(1.12) translateY(-3%); } to { transform: scale(1.12) translateY(3%); } }
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .header-cta span { display: none; }
  .header-cta { padding: 0; width: 44px; justify-content: center; }
}

@media (max-width: 860px) {
  :root { --header-h: 92px; }
  .site-header.is-scrolled { --header-h: 72px; }
  .header-inner { grid-template-columns: 1fr auto; }
  .nav, .nav-right { display: none; }
  .brand { justify-self: start; }
  .menu-toggle { display: block; }
  .brand img { height: 78px; }
  .site-header.is-scrolled .brand img { height: 56px; }

  .hero { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-media { aspect-ratio: 1 / 1.05; max-width: 560px; width: 100%; justify-self: center; }

  .ensaios-grid { grid-template-columns: 1fr; }
  .ensaio--lg { grid-row: auto; }
  .ensaio--sm { flex-direction: column; align-items: stretch; }
  .ensaio--sm .ensaio-img, .ensaio--md .ensaio-img, .ensaio--lg .ensaio-img { flex: none; aspect-ratio: 4 / 3.6; }

  .sobre-grid, .contato-grid { grid-template-columns: 1fr; }
  .sobre-img { max-width: 520px; }
  .contato-side { order: -1; display: none; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .hero-actions .btn { flex: 1 1 100%; }
  .masonry { columns: 2; }
  .facts { grid-template-columns: repeat(2, auto); gap: 20px 36px; }
  .lightbox { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto auto; }
  .lb-stage { grid-column: 1 / -1; padding: 72px 8px 8px; }
  .lb-stage img { max-height: calc(100dvh - 220px); }
  .lb-prev { grid-column: 1; grid-row: 2; justify-self: end; margin-right: 10px; }
  .lb-next { grid-column: 2; grid-row: 2; justify-self: start; margin-left: 10px; }
  .lb-bar { grid-row: 3; flex-wrap: wrap; }
  .wa-fab { width: 56px; height: 56px; font-size: 1.8rem; }
  .wa-fab::before { width: 56px; height: 56px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .load-in, .reveal, .tile { opacity: 1; transform: none; }
  .hero-img { clip-path: none; }
  .hero-img img { transform: none; }
  .wa-fab { transform: none; }
}

/* ==========================================================
   Coverflow carousel (inspired by 21st.dev "Coverflow Carousel")
   ========================================================== */
.momentos { padding-bottom: clamp(64px, 8vw, 110px); overflow: hidden; }
.momentos-title { text-align: center; margin-inline: auto; max-width: 20ch; }
.cf {
  --cw: clamp(210px, 24vw, 340px);
  position: relative;
  height: calc(var(--cw) * 1.3 + 40px);
  margin-top: clamp(24px, 4vw, 48px);
  perspective: 1600px;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
  outline: none;
}
.cf:active { cursor: grabbing; }
.cf:focus-visible .cf-card.is-active { outline: 2px solid var(--accent); outline-offset: 4px; }
.cf-stage { position: absolute; inset: 0; transform-style: preserve-3d; }
.cf-card {
  position: absolute; left: 50%; top: 20px;
  width: var(--cw); aspect-ratio: 4 / 5.2;
  margin-left: calc(var(--cw) / -2);
  border-radius: var(--r-media); overflow: hidden;
  background: var(--surface);
  transform-style: preserve-3d;
  will-change: transform, opacity;
  transition: transform .8s var(--ease), opacity .8s var(--ease), filter .8s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.cf.is-dragging .cf-card { transition: none; }
.cf-card img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.cf-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: var(--bg); opacity: var(--veil, 0); transition: opacity .8s var(--ease);
  pointer-events: none;
}
.cf.is-dragging .cf-card::after { transition: none; }
.cf-controls { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 4vw, 40px); margin-top: 8px; padding: 0 var(--gutter); }
.cf-caption {
  margin: 0; min-width: 14ch; text-align: center;
  font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 1.8vw, 1.5rem); color: var(--ink);
  transition: opacity .35s var(--ease-soft), transform .5s var(--ease);
}
.cf-caption.is-changing { opacity: 0; transform: translateY(6px); }
.cf-btn {
  width: 52px; height: 52px; border-radius: 999px; border: 1px solid var(--line); background: transparent;
  display: grid; place-items: center; font-size: 1.15rem; color: var(--ink);
  transition: background-color .3s, border-color .3s, color .3s, transform .3s var(--ease);
}
.cf-btn:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.cf-btn:active { transform: scale(.94); }

/* ==========================================================
   Word blur reveal + highlight (inspired by 21st.dev "Blur Reveal" / "Highlight Text")
   ========================================================== */
.split .w {
  display: inline-block;
  opacity: 0; filter: blur(10px); transform: translateY(.3em);
  transition: opacity .9s var(--ease), filter .9s var(--ease), transform 1s var(--ease);
  transition-delay: calc(var(--i, 0) * 65ms + var(--base, 0ms));
}
.split.is-in .w { opacity: 1; filter: blur(0); transform: none; }
.split em {
  background: linear-gradient(var(--accent-soft), var(--accent-soft)) 0 86% / 0% .26em no-repeat;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-size 1.3s var(--ease);
  transition-delay: calc(var(--words, 4) * 65ms + var(--base, 0ms) + 200ms);
}
.split.is-in em { background-size: 100% .26em; }

@media (max-width: 560px) {
  .cf { --cw: 62vw; }
  .mobile-menu nav a { font-size: 2.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .split .w { opacity: 1; filter: none; transform: none; }
  .split em { background-size: 100% .26em; }
}

/* ==========================================================
   Gallery scroll (inspired by 21st.dev "Hero Gallery Scroll Animation")
   --p (0..1) is set by JS while the section is on screen.
   ========================================================== */
.gs { position: relative; height: 260vh; --p: 0; }
.gs-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.gs-cols {
  position: absolute; inset: -30vh -2vw;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(10px, 1.2vw, 18px);
  padding: 0 clamp(10px, 1.2vw, 18px);
}
.gs-col {
  display: flex; flex-direction: column; gap: clamp(10px, 1.2vw, 18px);
  transform: translate3d(0, calc(var(--dir) * (var(--p) - .5) * var(--speed) * 1vh), 0);
  will-change: transform;
}
.gs-col:nth-child(even) { margin-top: -14vh; }
.gs-col figure { border-radius: var(--r-media); overflow: hidden; background: var(--surface); aspect-ratio: 4 / 5; flex: none; }
.gs-col figure:nth-child(3n+2) { aspect-ratio: 4 / 3; }
.gs-col img { width: 100%; height: 100%; object-fit: cover; }
.gs-veil {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 50% 50%, var(--bg) 0%, color-mix(in srgb, var(--bg) 88%, transparent) 45%, color-mix(in srgb, var(--bg) 40%, transparent) 100%);
  opacity: clamp(0, calc(1 - var(--p) * 1.7), 1);
}
.gs-content {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 28px; text-align: center; padding: 0 var(--gutter);
  transform: scale(calc(1 - var(--p) * .35));
  opacity: clamp(0, calc(1 - var(--p) * 2.1), 1);
  pointer-events: none;
}
.gs-content .btn { pointer-events: auto; }
.gs-title {
  margin: 0; font-family: var(--serif); font-size: clamp(2.3rem, 5.2vw, 4.6rem); line-height: 1.12; max-width: 14ch; color: var(--ink);
}
.gs-title em { font-style: italic; color: var(--accent); }

@media (max-width: 860px) {
  .gs { height: 220vh; }
  .gs-cols { grid-template-columns: repeat(3, 1fr); }
  .gs-col:nth-child(n+4) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .gs { height: auto; }
  .gs-sticky { position: relative; height: 90vh; }
  .gs-col { transform: none; }
  .gs-veil, .gs-content { opacity: 1; transform: none; }
}

.menu-toggle { justify-self: end; }

/* ==========================================================
   Cookies (LGPD): small banner + preferences dialog
   ========================================================== */
.cookie-banner {
  position: fixed; left: max(16px, env(safe-area-inset-left)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 45;
  width: min(380px, calc(100vw - 32px));
  padding: 18px 18px 16px;
  background: var(--bg); color: var(--ink);
  border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 18px 40px -24px rgb(80 30 55 / .35);
  opacity: 0; transform: translateY(16px);
  transition: opacity .45s var(--ease), transform .55s var(--ease);
}
.cookie-banner.is-in { opacity: 1; transform: none; }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { display: flex; gap: 10px; margin: 0 0 14px; font-size: .86rem; line-height: 1.5; color: var(--muted); }
.cookie-banner p i { font-size: 1.35rem; color: var(--accent); flex: none; margin-top: -1px; }
.cookie-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cookie-btn {
  min-height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent;
  font-size: .82rem; font-weight: 600; color: var(--ink);
  transition: background-color .3s, border-color .3s, color .3s, transform .3s var(--ease);
}
.cookie-btn:hover { border-color: var(--ink); }
.cookie-btn:active { transform: scale(.97); }
.cookie-btn-solid { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.cookie-btn-solid:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 88%, var(--ink)); }
.cookie-link { margin-left: auto; border: 0; background: none; padding: 6px 2px; font-size: .82rem; font-weight: 600; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.cookie-modal {
  width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 20px;
  background: var(--bg); color: var(--ink);
}
.cookie-modal[open] { animation: bubble .45s var(--ease); }
.cookie-modal::backdrop { background: rgb(30 15 22 / .45); }
.cookie-modal-inner { padding: clamp(22px, 4vw, 32px); }
.cookie-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.cookie-modal h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 1.7rem; }
.cookie-x { width: 40px; height: 40px; border: 0; background: none; border-radius: 999px; display: grid; place-items: center; font-size: 1.2rem; color: var(--muted); }
.cookie-x:hover { background: var(--surface); color: var(--ink); }
.cookie-intro { margin: 0 0 18px; font-size: .92rem; color: var(--muted); }
.cookie-opt { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; border-top: 1px solid var(--line); }
.cookie-opt p { margin: 0; font-size: .86rem; color: var(--muted); line-height: 1.5; }
.cookie-opt .cookie-opt-title { font-size: .95rem; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.cookie-modal-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.cookie-modal-actions .cookie-btn { min-height: 44px; padding: 0 20px; }

.switch { position: relative; flex: none; width: 46px; height: 26px; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch input:disabled { cursor: not-allowed; }
.switch span[aria-hidden] {
  position: absolute; inset: 0; border-radius: 999px; background: var(--line); transition: background-color .3s;
}
.switch span[aria-hidden]::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 999px; background: #fff;
  box-shadow: 0 1px 3px rgb(0 0 0 / .2); transition: transform .35s var(--ease);
}
.switch input:checked + span[aria-hidden] { background: var(--accent); }
.switch input:checked + span[aria-hidden]::after { transform: translateX(20px); }
.switch input:disabled + span[aria-hidden] { opacity: .6; }
.switch input:focus-visible + span[aria-hidden] { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* keep the WhatsApp button clear of the cookie banner on small screens */
@media (max-width: 560px) {
  body.has-cookie-banner .wa-float { bottom: calc(max(16px, env(safe-area-inset-bottom)) + var(--cb-h, 150px)); transition: bottom .4s var(--ease); }
  .cookie-link { margin-left: 0; }
}
