/* =========================================================
   DR. RAPHAEL LUNA — PSIQUIATRIA (BELÉM-PA)
   style.css — v9 · FOLHA ÚNICA, LIMPA E COMPLETA
   Substitui integralmente a v7/v8 e todos os patches.
   Paleta: preto-carvão / cinza-bronze / bronze dourado.
   Ordem: tokens → base → componentes → seções → responsivo → a11y.
   ========================================================= */

/* ---------- 00. TOKENS ---------- */
:root {
  --ink: #1C1B1A;
  --ink-2: #3B3935;
  --muted: #6B665E;

  --bg: #F2F0EC;
  --bg-2: #EAE6E0;
  --bg-3: #D8D2C9;
  --paper: #F7F5F0;

  --charcoal: #16181C;
  --charcoal-2: #1A1C20;
  --on-dark: #EDE7DC;
  --on-dark-muted: #B5AC9F;

  --bronze: #C4A174;
  --bronze-light: #D8BC90;
  --bronze-pale: #F0DEBA;
  --bronze-dark: #866344;
  --bronze-ink: #62462E;

  --line: rgba(98, 70, 46, .22);
  --line-strong: rgba(98, 70, 46, .42);
  --line-dark: rgba(216, 188, 144, .22);

  --gradient-main: linear-gradient(130deg, #E4CCA4 0%, #F5F2EC 46%, #C5BBAC 100%);
  --gradient-soft: linear-gradient(130deg, #EEE4D4 0%, #F4F1EB 48%, #D9D2C6 100%);
  --gradient-paper: linear-gradient(130deg, #F8F6F1 0%, #F2F0EC 55%, #E9E4DA 100%);
  --gradient-dark: linear-gradient(130deg, #24221F 0%, #1A1C20 50%, #111215 100%);

  --metal: linear-gradient(115deg, #866344 0%, #D8BC90 42%, #F0DEBA 60%, #A98153 100%);
  --metal-text: linear-gradient(115deg, #5A4028 0%, #8B6543 38%, #C09A68 55%, #5F4530 100%);
  --metal-light: linear-gradient(115deg, #C4A174 0%, #F1DFC2 45%, #D1AF7D 100%);

  --rule: linear-gradient(90deg, transparent 0%, rgba(139, 107, 65, .25) 12%, rgba(170, 133, 82, .80) 45%, rgba(218, 193, 155, .85) 60%, rgba(139, 107, 65, .25) 88%, transparent 100%);

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='g' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.76' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)' opacity='.85'/%3E%3C/svg%3E");

  --shadow-card:
    0 24px 56px -30px rgba(31, 27, 22, .30),
    0 7px 18px -10px rgba(73, 56, 35, .18),
    inset 0 1px 0 rgba(255, 255, 255, .75);
  --shadow-dark:
    0 28px 48px -28px rgba(0, 0, 0, .64),
    0 6px 16px -10px rgba(0, 0, 0, .40),
    inset 0 1px 0 rgba(243, 218, 178, .11);

  --plank: linear-gradient(180deg, #E2CBA8 0%, #AE9270 16%, #79654D 40%, #4A4136 100%);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --header-h: 76px;
  --container: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 18px;

  --book-w: 290px;
  --book-thick: 26px;
  --shelf-gap: clamp(28px, 3.5vw, 44px);
  --stage-pad: 16px;
}

/* ---------- 01. BASE ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main {
  display: block;
}

img,
svg,
video,
iframe,
canvas {
  max-width: 100%;
}

img {
  display: block;
  height: auto;
}

iframe {
  border: 0;
}

address {
  font-style: normal;
}

button {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration-color: rgba(134, 99, 68, .45);
  text-underline-offset: .15em;
  transition: color .2s var(--ease), text-decoration-color .2s var(--ease);
}

a:hover {
  color: var(--bronze-ink);
  text-decoration-color: currentColor;
}

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

h1, h2, h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -.015em;
  color: var(--ink);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 1.6rem + 3.4vw, 4.4rem);
  line-height: 1.04;
}

h2 {
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem);
  line-height: 1.08;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.25;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

@supports (background-clip: text) or (-webkit-background-clip: text) {
  h1 em,
  h2 em {
    font-style: italic;
    font-weight: 500;
    color: var(--bronze-ink);
    background-image: var(--metal-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .dark-section h2 em,
  .site-footer em {
    background-image: var(--metal-light);
  }
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
  min-width: 0;
}

.small,
.source-note,
.section-footnote,
.privacy-microcopy {
  font-size: .82rem;
  line-height: 1.55;
  color: var(--muted);
}

.lead {
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--ink-2);
}

.kicker {
  margin: 0 0 12px;
  font: 600 .72rem/1 var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--bronze-ink);
}

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

.svg-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--charcoal);
  color: var(--bronze-pale);
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- 02. ELEMENTOS COMUNS ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  font: 600 .74rem/1 var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--bronze-ink);
}

.eyebrow::before {
  content: "";
  flex: 0 0 42px;
  width: 42px;
  height: 1px;
  background: var(--metal);
  box-shadow: 0 2px 6px rgba(148, 111, 61, .14);
}

.eyebrow span {
  font: 500 1rem/1 var(--serif);
  letter-spacing: .04em;
  color: var(--bronze-dark);
}

.icon {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}

.icon.metal {
  stroke: url(#icon-metal);
}

.button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 13px 24px;
  border: 1px solid #9C794F;
  border-radius: 6px;
  background: linear-gradient(130deg, #C4A174 0%, #E9D4AE 46%, #B8925F 100%);
  color: #1A1510;
  font: 600 .95rem/1.2 var(--sans);
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow:
    0 12px 26px -14px rgba(71, 49, 23, .42),
    0 3px 7px rgba(71, 49, 23, .08),
    inset 0 1px 0 rgba(255, 245, 224, .70),
    inset 0 -1px 0 rgba(82, 57, 29, .20);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), filter .25s var(--ease);
}

.button:hover,
.btn:hover {
  color: #1A1510;
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow:
    0 17px 32px -15px rgba(71, 49, 23, .46),
    0 4px 9px rgba(71, 49, 23, .10),
    inset 0 1px 0 rgba(255, 245, 224, .80);
}

.button:active,
.btn:active {
  transform: translateY(0);
}

.button-small {
  min-height: 42px;
  padding: 9px 16px;
  font-size: .84rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--bronze-ink);
  font: 600 .92rem/1.3 var(--sans);
  text-decoration: none;
  cursor: pointer;
  background-image: linear-gradient(90deg, var(--bronze-dark), var(--bronze-light));
  background-repeat: no-repeat;
  background-size: 100% 1px;
  background-position: 0 100%;
  padding-bottom: 3px;
  transition: background-size .3s var(--ease), color .2s var(--ease);
}

.text-link:hover {
  color: var(--bronze-dark);
  background-size: 35% 1px;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(255, 255, 255, .5);
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}

.icon-button:hover {
  background: rgba(196, 161, 116, .18);
  border-color: var(--bronze-dark);
}

.stars {
  color: var(--bronze-dark);
  letter-spacing: .08em;
}

/* Superfícies */
.gradient-main {
  background-color: var(--bg);
  background-image: var(--gradient-main);
}

.gradient-soft {
  background-color: var(--bg);
  background-image: var(--gradient-soft);
}

.paper {
  background-color: var(--bg);
  background-image: var(--gradient-paper);
}

.dark-section {
  background-color: var(--charcoal-2);
  background-image:
    radial-gradient(ellipse at 8% 12%, rgba(167, 120, 60, .17), transparent 48%),
    radial-gradient(ellipse at 92% 88%, rgba(149, 111, 62, .11), transparent 48%),
    var(--gradient-dark);
  color: var(--on-dark);
}

.dark-section h2,
.dark-section h3,
.dark-section strong {
  color: var(--on-dark);
}

.dark-section .eyebrow,
.dark-section .eyebrow span,
.dark-section .text-link {
  color: var(--bronze-light);
}

.dark-section .small,
.dark-section .muted {
  color: var(--on-dark-muted);
}

.dark-section .stars {
  color: var(--bronze-light);
}

/* Seções: padding generoso, nunca 100svh forçado */
.section {
  position: relative;
  isolation: isolate;
  display: block;
  min-height: 0;
  padding-block: clamp(84px, 10vw, 136px);
  overflow-x: clip;
}

.section > .container,
.hero > .container {
  position: relative;
  z-index: 2;
}

.section::before,
.hero::before,
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--grain);
  background-size: 180px 180px;
  opacity: .05;
}

.section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
  height: 1px;
  background: var(--rule);
  pointer-events: none;
}

.dark-section::after {
  background: linear-gradient(90deg, transparent, rgba(216, 188, 144, .55) 50%, transparent);
}

.section-number {
  position: absolute;
  top: clamp(16px, 4vw, 48px);
  inset-inline-end: max(var(--gutter), calc((100% - var(--container)) / 2));
  z-index: 0;
  display: block;
  font: 400 clamp(7rem, 20vw, 19rem)/.82 var(--serif);
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: -.08em;
  color: #8C7351;
  opacity: .085;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

.hero .section-number,
.final-cta .section-number {
  inset-inline-start: max(var(--gutter), calc((100% - var(--container)) / 2));
  inset-inline-end: auto;
  opacity: .07;
}

.dark-section .section-number {
  color: var(--bronze-light);
  opacity: .05;
}

.section-heading {
  max-width: 760px;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.section-heading > p:not(.eyebrow) {
  max-width: 62ch;
  margin-top: 20px;
  font-size: 1.08rem;
  color: var(--ink-2);
}

.section-heading .text-link {
  margin-top: 18px;
}

.compact-heading {
  margin-bottom: clamp(28px, 4vw, 44px);
}

/* Molduras compartilhadas */
.trajectory,
.childhood-art,
.sketchbook-host,
.book-panel,
.map-frame,
.contact-form,
.location-copy {
  position: relative;
  border: 1px solid rgba(150, 115, 68, .43);
  box-shadow: var(--shadow-card);
}

.trajectory::before,
.childhood-art::before,
.sketchbook-host::before,
.book-panel::before,
.map-frame::before,
.contact-form::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(172, 137, 88, .21);
  border-radius: inherit;
  pointer-events: none;
}

/* ---------- 03. CABEÇALHO ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: linear-gradient(130deg, #E8D8BF 0%, #F2F0EC 65%, #E5DED2 100%);
  border-bottom: 1px solid rgba(139, 107, 65, .36);
  box-shadow:
    0 5px 22px rgba(43, 35, 25, .045),
    inset 0 1px 0 rgba(255, 255, 255, .65);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
}

.brand-type {
  display: flex;
  flex-direction: column;
  font: 600 1.15rem/1.05 var(--serif);
  letter-spacing: -.02em;
  white-space: nowrap;
}

.brand-type small {
  margin-top: 3px;
  font: 600 .62rem/1 var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--bronze-ink);
}

.desktop-nav {
  display: flex;
  gap: clamp(14px, 1.8vw, 26px);
  margin-left: auto;
}

.desktop-nav a {
  position: relative;
  padding: 6px 0;
  font: 500 .86rem/1 var(--sans);
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--metal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-cta {
  flex: 0 0 auto;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  flex-direction: column;
  gap: 6px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .3s var(--ease);
}

/* Menu mobile (dialog) */
.mobile-menu {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 24px var(--gutter) 40px;
  border: 0;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(184, 144, 87, .16), transparent 58%),
    var(--paper);
  color: var(--ink);
  overflow-y: auto;
}

.mobile-menu::backdrop {
  background: rgba(22, 24, 28, .55);
}

.menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.menu-head p {
  margin: 0;
  display: flex;
  flex-direction: column;
  font: 600 1.25rem/1.05 var(--serif);
}

.menu-head small {
  margin-top: 4px;
  font: 600 .62rem/1 var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--bronze-ink);
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  padding: 20px 0 28px;
}

.mobile-menu nav a {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font: 500 1.5rem/1.2 var(--serif);
  color: var(--ink);
  text-decoration: none;
}

.mobile-menu nav a:hover {
  color: var(--bronze-ink);
}

.mobile-menu .button {
  width: 100%;
}

.mobile-menu .small {
  margin-top: 16px;
  text-align: center;
}

/* ---------- 04. HERO ---------- */
/* 100svh de dobra útil: viewport menos o cabeçalho sticky. O conteúdo nunca estica o hero
   porque cena, grade e número são absolutos. */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100svh - var(--header-h));
  padding: clamp(40px, 6vh, 72px) 0 clamp(80px, 11vh, 112px);
  overflow-x: clip;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse at 83% 23%, rgba(177, 127, 62, .20), transparent 47%),
    radial-gradient(ellipse at 11% 85%, rgba(157, 116, 63, .12), transparent 41%),
    radial-gradient(circle at 66% 17%, rgba(159, 112, 48, .60) 0 1px, transparent 2px),
    radial-gradient(circle at 89% 28%, rgba(255, 243, 217, .90) 0 1.5px, transparent 3px),
    radial-gradient(circle at 74% 64%, rgba(153, 111, 54, .44) 0 1px, transparent 2.5px),
    radial-gradient(circle at 94% 73%, rgba(255, 240, 204, .82) 0 1.2px, transparent 3px),
    var(--gradient-main);
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .46;
  background-image:
    linear-gradient(rgba(111, 87, 57, .13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 87, 57, .13) 1px, transparent 1px);
  background-size: 104px 104px;
  -webkit-mask-image: linear-gradient(90deg, transparent 22%, #000 78%);
  mask-image: linear-gradient(90deg, transparent 22%, #000 78%);
}

/* Cena decorativa (three.js ou SVG): sempre absoluta, nunca participa do fluxo. */
.neural-art,
.hero-scene {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: 62%;
  max-width: 100%;
  overflow: hidden;
  pointer-events: none;
  opacity: .28;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 35%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 35%);
}

.neural-art > *,
.hero-scene > *,
.neural-art canvas,
.neural-art svg,
.hero-scene canvas,
.hero-scene svg,
[data-scene-art] {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
}

.neural-art canvas,
.hero-scene canvas {
  filter: grayscale(1) sepia(.26) saturate(.75);
}

.neural-fallback g:first-child {
  stroke: #8A6942;
}

.neural-fallback g:nth-child(2) {
  stroke: #8D867A;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
}

.hero-copy {
  min-width: 0;
  max-width: 620px;
}

.hero-copy h1 {
  margin-bottom: 22px;
}

.hero-description {
  max-width: 48ch;
  font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem);
  line-height: 1.5;
  color: var(--ink-2);
}

.hero-credentials {
  margin: 18px 0 26px;
  font: 600 .92rem/1.3 var(--sans);
  letter-spacing: .015em;
}

.hero-credentials span {
  display: inline-block;
  margin-left: 10px;
  padding-left: 10px;
  border-left: 1px solid var(--line-strong);
  font-weight: 500;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}

.hero-proof {
  margin-top: 30px;
  padding-top: 20px;
  background: var(--rule) left top / 100% 1px no-repeat;
}

.hero-proof a {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  color: var(--ink);
  font-size: .92rem;
  text-decoration: none;
}

.hero-proof a strong {
  font: 600 1.15rem/1 var(--serif);
}

.hero-proof a span:not(.stars) {
  color: var(--muted);
}

.hero-proof p {
  margin: 8px 0 0;
  font-size: .85rem;
  color: var(--muted);
}

/* Retrato editorial */
.portrait-frame {
  position: relative;
  justify-self: end;
  width: min(100%, 460px);
  min-width: 0;
  margin: 0;
}

.portrait-mat {
  --portrait-large: 58px;
  --portrait-small: 13px;
  --portrait-padding: 12px;

  position: relative;
  padding: var(--portrait-padding);
  border: 1px solid rgba(143, 107, 59, .72);
  border-radius: var(--portrait-large) var(--portrait-small) var(--portrait-large) var(--portrait-small);
  background: linear-gradient(130deg, rgba(255, 250, 239, .82), rgba(239, 230, 215, .58) 48%, rgba(201, 183, 156, .52));
  box-shadow:
    0 36px 70px -30px rgba(36, 30, 23, .38),
    0 12px 24px -14px rgba(58, 43, 24, .24),
    inset 0 1px 0 rgba(255, 255, 255, .90);
}

.portrait-mat::before {
  content: "";
  position: absolute;
  inset: 5px;
  z-index: 1;
  border: 1px solid rgba(177, 140, 86, .65);
  border-radius:
    calc(var(--portrait-large) - 5px) calc(var(--portrait-small) - 5px)
    calc(var(--portrait-large) - 5px) calc(var(--portrait-small) - 5px);
  pointer-events: none;
}

.portrait-mat img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius:
    calc(var(--portrait-large) - var(--portrait-padding))
    max(2px, calc(var(--portrait-small) - var(--portrait-padding)))
    calc(var(--portrait-large) - var(--portrait-padding))
    max(2px, calc(var(--portrait-small) - var(--portrait-padding)));
  filter: grayscale(1) sepia(.12) saturate(.65) contrast(1.025);
}

.portrait-frame figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 6px 0;
  font-size: .8rem;
  line-height: 1.45;
  color: var(--muted);
}

.portrait-frame figcaption span:first-child {
  font: 600 1.1rem/1.2 var(--serif);
  color: var(--ink);
}

.portrait-frame figcaption span:last-child {
  text-align: right;
}

.portrait-side {
  position: absolute;
  top: 8px;
  right: -2.4rem;
  writing-mode: vertical-rl;
  font: 600 .66rem/1 var(--sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #655A4C;
  pointer-events: none;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 2;
  transform: translateX(-50%);
  font: 600 .7rem/1 var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--bronze-ink);
  text-decoration: none;
  white-space: nowrap;
}

.scroll-cue span {
  display: inline-block;
  margin-left: 6px;
  animation: cue-bob 2.2s var(--ease) infinite;
}

@keyframes cue-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* ---------- 05. MARQUEE ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 14px 0;
  background:
    linear-gradient(110deg, rgba(188, 150, 98, .12), transparent 48%),
    var(--charcoal);
  border-block: 1px solid rgba(181, 146, 99, .65);
  box-shadow:
    inset 0 1px 0 rgba(244, 224, 191, .10),
    inset 0 -1px 0 rgba(0, 0, 0, .40);
  color: var(--bronze-light);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 42s linear infinite;
}

.marquee-track span {
  padding-inline-end: 3rem;
  font: 500 .78rem/1 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee-track b {
  margin-inline: .9em;
  font-weight: 400;
  color: var(--bronze);
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- 06. O MÉDICO ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.about-grid > div {
  min-width: 0;
}

.philosophy {
  margin: 0 0 26px;
  padding: 22px 24px 24px;
  border-left: 2px solid #AA8555;
  border-radius: 0 16px 16px 0;
  background: linear-gradient(90deg, rgba(197, 164, 117, .15), transparent 90%);
}

.philosophy p {
  margin: 0 0 12px;
  font: italic 500 clamp(1.25rem, 1.1rem + .6vw, 1.55rem)/1.4 var(--serif);
  color: var(--ink);
}

.philosophy cite {
  font: 600 .74rem/1 var(--sans);
  font-style: normal;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--bronze-ink);
}

.about-grid > div > p {
  color: var(--ink-2);
}

.values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.values > div {
  min-width: 0;
  padding: 18px 14px;
  border-top: 1px solid rgba(155, 118, 70, .42);
  border-radius: 2px 2px 12px 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .48), rgba(255, 255, 255, .08));
  box-shadow: 0 12px 24px -24px rgba(53, 42, 28, .35);
}

.values .icon {
  width: 28px;
  height: 28px;
  margin-bottom: 12px;
}

.values h3 {
  margin-bottom: 6px;
  font-size: 1.2rem;
}

.values p {
  font-size: .9rem;
  color: var(--muted);
}

.trajectory {
  padding: clamp(24px, 2.6vw, 34px);
  border-radius: 4px 22px 4px 22px;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(183, 142, 86, .15), transparent 56%),
    linear-gradient(130deg, #E9E0D2, #F7F4EE 48%, #EAE4D9);
}

.timeline {
  list-style: none;
  margin: 0 0 18px;
  padding: 0 0 0 14px;
  border-left: 1px solid rgba(158, 120, 69, .34);
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(151, 115, 74, .20);
}

.timeline li:last-child {
  border-bottom: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 22px;
  width: 7px;
  height: 7px;
  border: 1px solid #A37D4D;
  border-radius: 50%;
  background: #EEE5D6;
  box-shadow: 0 0 0 3px rgba(191, 157, 110, .11);
}

.timeline li > span {
  font: 600 .78rem/1.6 var(--sans);
  letter-spacing: .04em;
  color: var(--bronze-ink);
}

.timeline h3 {
  margin-bottom: 4px;
  font-size: 1.15rem;
}

.timeline p {
  font-size: .9rem;
  color: var(--muted);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(151, 115, 74, .24);
}

.stats > div {
  min-width: 0;
}

.stats > div + div {
  padding-left: 12px;
  border-left: 1px solid rgba(151, 115, 74, .24);
}

.stats strong {
  display: block;
  font: 500 clamp(1.7rem, 1.4rem + 1vw, 2.4rem)/1 var(--serif);
  color: #654B31;
}

.stats span {
  display: block;
  margin-top: 6px;
  font-size: .78rem;
  color: var(--muted);
}

.source-note {
  margin-top: 12px;
  font-size: .74rem;
}

/* ---------- 07. ESTANTE ----------
   .shelf > .shelf-row > (.shelf-stage + #book-panel)
   Browse: fileira horizontal rolável (rolagem só na estante).
   Detail: desktop = livro + painel lado a lado; mobile = empilhado.
   Nenhum filter/opacity nos ancestrais 3D dos livros. */
.shelf,
.shelf-row,
.shelf-stage,
.book-panel {
  min-width: 0;
  max-width: 100%;
}

.shelf {
  width: 100%;
}

.shelf-instruction {
  margin: 0 0 8px;
}

.shelf-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: var(--shelf-gap);
  width: 100%;
}

.shelf-stage {
  position: relative;
  display: flex;
  flex-flow: row nowrap;
  align-items: flex-end;
  gap: var(--shelf-gap);
  width: 100%;
  padding: 44px var(--stage-pad) 58px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-padding-inline: var(--stage-pad);
  scrollbar-width: thin;
  scrollbar-color: rgba(134, 101, 57, .45) transparent;
  background-image: var(--plank);
  background-repeat: repeat-x;
  background-size: 100% 14px;
  background-position: left bottom 44px;
  background-attachment: local;
}

.shelf-stage::-webkit-scrollbar {
  height: 6px;
}

.shelf-stage::-webkit-scrollbar-thumb {
  border-radius: 3px;
  background: rgba(134, 101, 57, .45);
}

.book-card {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: block;
  width: var(--book-w);
  aspect-ratio: 2 / 3;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  appearance: none;
  scroll-snap-align: start;
  perspective: 1400px;
  -webkit-tap-highlight-color: transparent;
}

.book-card:focus-visible {
  outline: 2px solid var(--bronze-ink);
  outline-offset: 8px;
}

.book {
  position: absolute;
  inset: 0;
  display: block;
  transform-style: preserve-3d;
  transform: rotate(var(--r, 0deg)) rotateY(var(--yaw, 0deg));
  transition: transform .6s var(--ease);
}

.book > *,
.book::before {
  position: absolute;
  display: block;
  backface-visibility: hidden;
}

.book-shadow {
  inset: 4% 2% -2%;
  border-radius: 8px;
  transform: translateZ(calc(var(--book-thick) / -2 - 2px));
  box-shadow:
    11px 19px 18px -5px rgba(26, 23, 19, .35),
    22px 32px 30px -16px rgba(47, 35, 20, .34);
  transition: box-shadow .55s var(--ease), opacity .55s var(--ease);
}

.book-back {
  inset: 0;
  border-radius: 2px 8px 8px 2px;
  background: color-mix(in srgb, var(--cover-color, #36312B) 70%, #000 30%);
  transform: translateZ(calc(var(--book-thick) / -2));
}

/* Lombada */
.book::before {
  content: "";
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--book-thick);
  border-radius: 2px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .25), transparent 30%, rgba(255, 255, 255, .08) 70%, rgba(0, 0, 0, .2)),
    color-mix(in srgb, var(--cover-color, #36312B) 80%, #000 20%);
  transform: translateX(calc(var(--book-thick) / -2)) rotateY(-90deg);
}

/* Bloco de páginas (lado direito) */
.page-block {
  top: 1.5%;
  bottom: 1.5%;
  right: 0;
  width: var(--book-thick);
  border-radius: 1px;
  background:
    repeating-linear-gradient(90deg, #F3ECDF 0 1px, #DDD3C2 1px 2px),
    #EFE7D9;
  box-shadow: inset 0 0 6px rgba(60, 45, 25, .25);
  transform: translateX(calc(var(--book-thick) / 2)) rotateY(90deg);
}

/* Folhas que aparecem na borda quando o livro gira */
.page-fan {
  inset: 0;
  transform-style: preserve-3d;
}

.page-fan i {
  position: absolute;
  inset: 1.5% 0 1.5% 1.5%;
  display: block;
  border-radius: 1px 6px 6px 1px;
  background: #F1EADF;
  box-shadow: inset -1px 0 0 rgba(90, 70, 40, .18);
  transform: translateZ(var(--z, 0px));
}

.page-fan i:nth-child(1) { --z: calc(var(--book-thick) / 2 - 3px); }
.page-fan i:nth-child(2) { --z: calc(var(--book-thick) / 2 - 8px); }
.page-fan i:nth-child(3) { --z: calc(var(--book-thick) / 2 - 14px); }
.page-fan i:nth-child(4) { --z: calc(var(--book-thick) / 2 - 20px); }

.front-cover {
  inset: 0;
  overflow: hidden;
  border: 1px solid rgba(219, 189, 145, .43);
  border-radius: 2px 8px 8px 2px;
  background-color: var(--cover-color, #36312B);
  transform: translateZ(calc(var(--book-thick) / 2));
  box-shadow: inset 0 0 0 1px rgba(244, 223, 191, .12);
  transition: box-shadow .55s var(--ease);
}

.front-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(0, 0, 0, .28) 0, rgba(0, 0, 0, .06) 5%, transparent 9%);
  box-shadow:
    inset 3px 0 7px rgba(20, 18, 15, .40),
    inset 0 0 0 1px rgba(244, 223, 191, .20),
    inset -1px 0 0 rgba(250, 235, 211, .16);
}

/* Capa: SEMPRE visível, dimensionada pelo card (não pelo arquivo). */
.front-cover img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  filter: grayscale(.9) sepia(.22) saturate(.85) contrast(1.03);
}

@media (hover: hover) {
  .book-card:hover .book {
    transform: translateY(-12px) rotate(0deg) rotateY(calc(var(--yaw, 0deg) * .4));
  }

  .book-card:hover .book-shadow {
    box-shadow:
      13px 30px 28px -7px rgba(26, 23, 19, .34),
      0 0 30px 4px rgba(176, 132, 71, .16);
  }
}

.book-card.selected .book,
.book-card.is-selected .book {
  transform: rotate(0deg) rotateY(-12deg);
}

.book-card.selected .book-shadow,
.book-card.is-selected .book-shadow,
.book-card:focus-visible .book-shadow {
  box-shadow:
    15px 25px 25px -8px rgba(26, 23, 19, .34),
    0 0 36px 7px rgba(174, 130, 69, .22),
    0 0 80px 18px rgba(174, 130, 69, .12);
}

.book-card.selected .front-cover,
.book-card.is-selected .front-cover {
  box-shadow: inset 0 0 0 1px rgba(245, 223, 187, .34);
}

/* Modo detalhe */
.shelf[data-mode="detail"] .shelf-stage {
  align-items: flex-start;
  justify-content: center;
  padding: 24px var(--stage-pad) 40px;
  overflow: visible;
  scroll-snap-type: none;
  background: none;
}

.shelf[data-mode="detail"] .book-card:not(.selected):not(.is-selected) {
  display: none;
}

.shelf[data-mode="detail"] .book-card.selected .book,
.shelf[data-mode="detail"] .book-card.is-selected .book {
  transform: rotateX(var(--detail-pitch, 0deg)) rotateY(var(--detail-yaw, -22deg));
}

.shelf[data-mode="detail"] .book-card.selected .book-shadow,
.shelf[data-mode="detail"] .book-card.is-selected .book-shadow {
  opacity: var(--detail-glow, 1);
}

/* Painel */
.book-panel {
  z-index: 2;
  display: block;
  width: 100%;
  align-self: start;
  padding: clamp(22px, 2.5vw, 32px);
  border-radius: 5px 22px 5px 22px;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(189, 151, 95, .13), transparent 58%),
    #F5F2EB;
  color: var(--ink);
  overflow-wrap: anywhere;
  outline: none;
}

.book-panel-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.book-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(150, 115, 68, .4);
  border-radius: 50%;
  background: rgba(255, 255, 255, .85);
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background .2s var(--ease);
}

.book-close:hover,
.book-close:focus-visible {
  background: rgba(196, 161, 116, .25);
}

.bp-kicker {
  margin: 0;
  padding-right: 48px;
}

.bp-title {
  margin: 0;
  padding-right: 48px;
  font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.3rem);
  line-height: 1.12;
}

.bp-desc {
  margin: 0;
  color: var(--ink-2);
}

.bp-list {
  display: grid;
  gap: 8px;
  margin: 4px 0 0;
  padding: 0 0 0 1.15em;
  color: var(--ink-2);
}

.bp-list li::marker {
  color: var(--bronze-dark);
}

.bp-cta {
  align-self: flex-start;
  margin-top: 6px;
}

.bp-note {
  margin: 0;
}

/* ---------- 08. INFÂNCIA ---------- */
.childhood-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.childhood-grid > div {
  min-width: 0;
}

.childhood-grid h2 {
  margin-bottom: 22px;
}

.childhood-grid .lead {
  margin-bottom: 14px;
}

.childhood-grid > div > p:not(.lead):not(.eyebrow):not(.small) {
  color: var(--ink-2);
}

.age-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 26px 0 28px;
  padding-top: 20px;
  background: var(--rule) left top / 100% 1px no-repeat;
}

.age-notes > p {
  margin: 0;
  padding-left: 12px;
  border-left: 2px solid rgba(158, 119, 64, .44);
}

.age-notes strong {
  display: block;
  font: 500 1.2rem/1.2 var(--serif);
  color: var(--ink);
}

.age-notes span {
  display: block;
  margin-top: 4px;
  font-size: .86rem;
  color: var(--muted);
}

.childhood-art {
  padding: clamp(22px, 2.8vw, 36px);
  border-radius: 42px 10px 42px 10px;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(183, 145, 90, .20), transparent 54%),
    linear-gradient(130deg, #EFE7DA, #F7F4EE 53%, #E2DACD);
}

.childhood-art > svg {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 9px 10px rgba(88, 66, 35, .08));
}

.childhood-art svg [fill="#EDD7D4"] { fill: #CFB58F; }
.childhood-art svg [fill="#DDE7EC"] { fill: #C9C4BA; }
.childhood-art svg [fill="#E7DCCA"] { fill: #DDD0BA; }
.childhood-art svg [stroke="#CFDCE3"] { stroke: #BDB5A8; }
.childhood-art svg [fill="#AB806D"] { fill: #977246; }

.family-note {
  margin-top: 18px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.family-note h3 {
  margin-bottom: 8px;
  font-size: 1.4rem;
}

.family-note p:not(.kicker) {
  font-size: .95rem;
  color: var(--ink-2);
}

.childhood-art > .small {
  margin-top: 16px;
}

/* ---------- 09. A CONSULTA ---------- */
.consultation-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.consultation-meta span {
  padding: 7px 12px;
  border: 1px solid rgba(150, 115, 68, .25);
  border-radius: 999px;
  background: rgba(250, 247, 240, .62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .68);
  font-size: .82rem;
  font-weight: 500;
  color: var(--ink-2);
}

.sketchbook-host {
  min-height: 180px;
  padding: clamp(8px, 1.3vw, 16px);
  border-radius: 10px 24px 10px 24px;
  background:
    linear-gradient(90deg, rgba(134, 101, 57, .10), transparent 28px),
    radial-gradient(ellipse at 50% 0%, rgba(201, 168, 121, .19), transparent 68%),
    #ECE6DB;
}

.sketchbook-host::after {
  content: "";
  position: absolute;
  top: 0;
  left: 26px;
  width: 72px;
  height: 2px;
  background: var(--metal);
}

.sketchbook-status {
  margin: 0;
  padding: 56px 24px;
  text-align: center;
  font: italic 500 1.15rem/1.4 var(--serif);
  color: var(--muted);
}

.sketchbook-host[data-state="ready"] .sketchbook-status,
.sketchbook-host[data-state="loaded"] .sketchbook-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  padding: 0;
}

.sketchbook-host iframe {
  display: block;
  width: 100% !important;
  height: clamp(460px, 68vh, 720px);
  border-radius: 6px 16px 6px 16px;
  background: #F5F2EB;
}

.method-fallback {
  margin-top: 26px;
  padding: 4px 0 0;
  border-top: 1px solid transparent;
  background: var(--rule) left top / 100% 1px no-repeat;
}

.method-fallback summary {
  padding: 14px 0;
  font: 500 1.1rem/1.3 var(--serif);
  color: var(--bronze-ink);
  cursor: pointer;
  list-style: none;
}

.method-fallback summary::-webkit-details-marker {
  display: none;
}

.method-fallback summary::before {
  content: "+";
  display: inline-block;
  width: 1.2em;
  color: var(--bronze-dark);
}

.method-fallback[open] summary::before {
  content: "–";
}

.method-fallback ol {
  display: grid;
  gap: 12px;
  margin: 0 0 12px;
  padding-left: 1.2em;
  color: var(--ink-2);
}

.method-fallback ol strong {
  color: var(--ink);
}

.section-footnote {
  margin-top: 20px;
}

/* ---------- 10. DEPOIMENTOS ---------- */
.reviews-layout {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.review-intro h2 {
  margin-bottom: 26px;
}

.rating-seal {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  padding: 20px 22px;
  border: 1px solid rgba(194, 153, 97, .37);
  border-radius: 12px 3px 12px 3px;
  background: linear-gradient(130deg, rgba(207, 170, 115, .09), rgba(255, 255, 255, .015));
  box-shadow:
    inset 0 1px 0 rgba(235, 207, 166, .08),
    0 15px 28px -22px rgba(0, 0, 0, .55);
  color: var(--on-dark);
  text-decoration: none;
  font-size: .85rem;
  line-height: 1.5;
}

.rating-seal:hover {
  color: var(--on-dark);
  border-color: rgba(216, 188, 144, .6);
}

.rating-seal > strong {
  font: 500 3rem/1 var(--serif);
  color: var(--bronze-pale);
}

.rating-seal > strong span {
  font-size: 1.2rem;
  color: var(--on-dark-muted);
}

.review-intro .small {
  margin-bottom: 14px;
}

.review-slider {
  min-width: 0;
}

.review-slide {
  position: relative;
  min-height: 360px;
  margin: 0;
  padding: clamp(26px, 3.2vw, 42px);
  border: 1px solid rgba(189, 147, 87, .50);
  border-radius: 22px 5px 22px 5px;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(190, 146, 84, .10), transparent 66%),
    linear-gradient(130deg, #302C27 0%, #242425 54%, #202124 100%);
  box-shadow: var(--shadow-dark);
}

.review-slide::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(211, 174, 119, .09);
  border-radius: 16px 2px 16px 2px;
  pointer-events: none;
}

.quote-mark {
  display: block;
  width: fit-content;
  margin-bottom: -18px;
  font: 500 clamp(5rem, 8vw, 7rem)/.8 var(--serif);
  color: var(--bronze-light);
}

@supports (background-clip: text) or (-webkit-background-clip: text) {
  .quote-mark {
    background-image: var(--metal-light);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

.review-slide blockquote {
  margin: 0 0 22px;
}

.review-slide blockquote p {
  font: italic 500 clamp(1.15rem, 1.05rem + .5vw, 1.45rem)/1.45 var(--serif);
  color: var(--on-dark);
}

.review-slide figcaption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 18px;
  border-top: 1px solid rgba(198, 158, 103, .23);
  font-size: .8rem;
  color: var(--on-dark-muted);
}

.review-slide figcaption strong {
  font: 600 1rem/1.3 var(--sans);
  color: var(--bronze-light);
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 22px;
}

.slider-controls .icon-button {
  border-color: rgba(216, 188, 144, .35);
  background: rgba(222, 185, 135, .045);
  color: var(--bronze-light);
  box-shadow: inset 0 1px 0 rgba(244, 219, 181, .07);
}

.slider-controls .icon-button:hover {
  background: rgba(222, 185, 135, .14);
}

.slider-dots {
  display: flex;
  gap: 10px;
}

.slider-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1px solid rgba(216, 188, 144, .6);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background .25s var(--ease), box-shadow .25s var(--ease);
}

.slider-dots button[aria-current="true"] {
  background: var(--bronze-light);
  box-shadow: 0 0 12px rgba(215, 176, 120, .45);
}

/* ---------- 11. PERGUNTAS ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.faq-grid .section-heading {
  margin-bottom: 0;
}

.faq-list {
  min-width: 0;
  padding-top: 1px;
  background: var(--rule) left top / 100% 1px no-repeat;
}

.faq-list details {
  position: relative;
  transition: background-color .25s var(--ease);
}

.faq-list details::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--rule);
  pointer-events: none;
}

.faq-list summary {
  position: relative;
  padding: 20px 60px 20px 18px;
  font: 500 clamp(1.1rem, 1rem + .4vw, 1.35rem)/1.3 var(--serif);
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 12px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(148, 111, 61, .34);
  border-radius: 50%;
  background: rgba(186, 146, 91, .065);
  font: 400 1.2rem/1 var(--sans);
  color: var(--bronze-ink);
  transform: translateY(-50%);
  transition: transform .3s var(--ease), background .25s var(--ease);
}

.faq-list details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
  border-color: rgba(148, 111, 61, .56);
  background: rgba(186, 146, 91, .15);
}

.faq-list details > div {
  padding: 0 18px 22px;
  color: var(--ink-2);
}

.faq-list details[open] {
  background-color: rgba(191, 155, 103, .085);
}

.faq-list details[open] summary {
  color: var(--bronze-ink);
}

@media (hover: hover) {
  .faq-list details:hover {
    background-color: rgba(191, 155, 103, .06);
  }
}

/* ---------- 12. ONDE ATENDE ---------- */
.location-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.location-copy {
  padding: clamp(22px, 2.6vw, 32px);
  border-left: 2px solid rgba(157, 117, 60, .55);
  border-radius: 4px 20px 4px 20px;
  background: linear-gradient(130deg, rgba(255, 253, 247, .72), rgba(242, 235, 222, .40));
  box-shadow: 0 22px 36px -30px rgba(52, 40, 24, .25);
}

.location-copy h3 {
  margin-bottom: 10px;
  font-size: 1.6rem;
}

.location-copy address {
  font: 500 1.1rem/1.55 var(--serif);
  color: var(--ink-2);
}

.location-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin: 18px 0 6px;
}

.status-line {
  min-height: 0;
  margin: 8px 0 0;
}

.status-line:empty {
  display: none;
}

.local-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0 16px;
  padding-top: 18px;
  background: var(--rule) left top / 100% 1px no-repeat;
  font-size: .9rem;
  color: var(--ink-2);
}

.local-notes p {
  margin: 0;
}

.local-notes strong {
  color: var(--ink);
}

.map-frame {
  width: 100%;
  padding: 12px;
  border-radius: 20px 5px 20px 5px;
  background: #F5F1E9;
}

.map-frame iframe,
.map-embed {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: 460px;
  border-radius: 10px 2px 10px 2px;
  filter: grayscale(.85) sepia(.12) contrast(1.02);
}

.map-frame p {
  margin: 10px 4px 0;
  font-size: .78rem;
  color: var(--muted);
}

/* ---------- 13. CONTATO ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.contact-form {
  padding: clamp(24px, 3vw, 38px);
  border-radius: 6px 24px 6px 24px;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(195, 161, 112, .13), transparent 54%),
    linear-gradient(130deg, #F7F3EB 0%, #EEE7DB 100%);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field {
  min-width: 0;
  margin-bottom: 18px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font: 600 .82rem/1.3 var(--sans);
  letter-spacing: .02em;
  color: var(--ink-2);
}

.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid #8B7E6D;
  border-radius: 5px;
  background: #FAF8F3;
  color: var(--ink);
  font: inherit;
  font-size: .96rem;
  box-shadow:
    inset 0 2px 4px rgba(47, 37, 24, .035),
    0 1px 0 rgba(255, 255, 255, .70);
  transition: border-color .2s, box-shadow .2s;
}

.field textarea {
  resize: vertical;
  min-height: 96px;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: #866344;
  box-shadow:
    inset 0 1px 3px rgba(47, 37, 24, .025),
    0 0 0 4px rgba(162, 123, 68, .12);
}

.select-wrap {
  position: relative;
}

.select-wrap select {
  appearance: none;
  padding-right: 40px;
}

.select-wrap::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--bronze-ink);
  border-bottom: 1.5px solid var(--bronze-ink);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.field .small {
  margin-top: 8px;
}

.contact-form .button {
  margin-top: 4px;
}

.privacy-microcopy {
  margin-top: 18px;
  font-size: .76rem;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
  padding: 18px 20px;
  border: 1px solid rgba(150, 115, 68, .35);
  border-radius: 12px 4px 12px 4px;
  background: linear-gradient(130deg, rgba(255, 253, 248, .86), rgba(234, 225, 211, .40));
  box-shadow:
    0 15px 26px -23px rgba(58, 43, 23, .30),
    inset 0 1px 0 rgba(255, 255, 255, .80);
  transition: border-color .25s, box-shadow .25s;
}

.contact-card:focus-within,
.contact-card:hover {
  border-color: rgba(142, 104, 53, .68);
}

.contact-card > .icon {
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid rgba(167, 128, 74, .27);
  border-radius: 12px;
  background: linear-gradient(130deg, rgba(214, 185, 143, .28), rgba(255, 255, 255, .25));
}

.contact-card > div {
  min-width: 0;
  overflow-wrap: anywhere;
}

.contact-card > div > span {
  display: block;
  margin-bottom: 4px;
  font: 600 .7rem/1 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--bronze-ink);
}

.contact-card a {
  font: 600 1.15rem/1.3 var(--sans);
  color: var(--ink);
  text-decoration: none;
}

.contact-card a:hover {
  color: var(--bronze-ink);
}

.contact-card address,
.contact-card p {
  margin: 0;
  font-size: .92rem;
  line-height: 1.5;
  color: var(--ink-2);
}

.instagram-link {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 6px;
  border-bottom: 1px solid rgba(150, 115, 68, .30);
  font-size: .9rem;
  color: var(--muted);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.instagram-link strong {
  color: var(--ink);
}

/* ---------- 14. CTA FINAL ---------- */
.final-cta {
  text-align: center;
  background-image:
    radial-gradient(ellipse at 50% 70%, rgba(180, 132, 65, .14), transparent 49%),
    radial-gradient(ellipse at 100% 100%, rgba(137, 103, 60, .12), transparent 48%),
    radial-gradient(circle at 18% 26%, rgba(173, 129, 68, .48) 0 1px, transparent 2.5px),
    radial-gradient(circle at 81% 23%, rgba(255, 241, 209, .88) 0 1.5px, transparent 3px),
    var(--gradient-main);
}

.final-cta .container {
  max-width: 760px;
}

.final-cta .eyebrow {
  justify-content: center;
}

.final-cta h2 {
  margin-bottom: 22px;
}

.final-cta .container > p:not(.eyebrow):not(.small) {
  max-width: 56ch;
  margin: 0 auto 30px;
  font-size: 1.1rem;
  color: var(--ink-2);
}

.final-cta .button {
  min-height: 56px;
  padding: 15px 30px;
  font-size: 1rem;
  box-shadow:
    0 18px 36px -16px rgba(90, 62, 28, .38),
    0 0 36px rgba(177, 133, 73, .13),
    inset 0 1px 0 rgba(255, 245, 224, .75);
}

.final-cta .small {
  margin-top: 26px;
}

.final-monogram {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 0;
  transform: translate(-50%, -50%);
  font: 500 clamp(14rem, 34vw, 30rem)/1 var(--serif);
  letter-spacing: -.06em;
  color: #72604A;
  opacity: .07;
  pointer-events: none;
  user-select: none;
}

/* ---------- 15. RODAPÉ ---------- */
.site-footer {
  position: relative;
  isolation: isolate;
  padding: 72px 0 28px;
  overflow-x: clip;
  background:
    radial-gradient(ellipse at 15% 0%, rgba(157, 116, 62, .10), transparent 58%),
    var(--charcoal);
  color: var(--on-dark-muted);
  font-size: .9rem;
}

.site-footer::before {
  opacity: .035;
}

.site-footer > .container {
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(24px, 4vw, 56px);
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line-dark);
}

.footer-grid > * {
  min-width: 0;
}

.footer-grid .brand {
  margin-bottom: 16px;
  color: var(--on-dark);
}

.footer-grid .brand-type small {
  color: var(--bronze-light);
}

.footer-grid h3 {
  margin-bottom: 14px;
  font: 600 .72rem/1 var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #E1C49A;
}

.footer-grid nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-grid a {
  color: var(--on-dark);
  text-decoration: none;
}

.footer-grid a:hover {
  color: var(--bronze-light);
}

.footer-grid address {
  margin: 10px 0;
  line-height: 1.6;
}

.footer-grid .small {
  color: var(--on-dark-muted);
}

.emergency-note {
  margin: 28px 0;
  padding: 18px 22px;
  border: 1px solid rgba(216, 188, 144, .3);
  border-left: 3px solid var(--bronze);
  border-radius: 4px 14px 4px 14px;
  background: rgba(255, 255, 255, .03);
  color: var(--on-dark);
  font-size: .88rem;
  line-height: 1.6;
}

.emergency-note strong {
  display: block;
  margin-bottom: 4px;
  color: var(--bronze-light);
}

.emergency-note a {
  color: var(--bronze-light);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  font-size: .8rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom div {
  display: flex;
  gap: 20px;
}

.footer-bottom a {
  color: var(--on-dark-muted);
  text-decoration: none;
}

.footer-bottom a:hover,
.footer-bottom strong {
  color: var(--bronze-light);
}

/* ---------- 16. AÇÕES FLUTUANTES ---------- */
.floating-actions {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.back-top {
  width: 44px;
  height: 44px;
  border-color: rgba(216, 188, 144, .4);
  background: var(--charcoal-2);
  color: var(--bronze-light);
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .6);
}

.floating-whatsapp {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid #9C794F;
  border-radius: 50%;
  background: linear-gradient(130deg, #C4A174 0%, #E9D4AE 46%, #B8925F 100%);
  color: #1A1510;
  box-shadow:
    0 16px 34px -14px rgba(71, 49, 23, .55),
    0 0 0 6px rgba(196, 161, 116, .16);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}

.floating-whatsapp .icon {
  width: 26px;
  height: 26px;
}

.floating-whatsapp:hover {
  color: #1A1510;
  transform: translateY(-3px);
  box-shadow:
    0 20px 38px -14px rgba(71, 49, 23, .6),
    0 0 0 8px rgba(196, 161, 116, .2);
}

/* ---------- 17. REVEAL (sem depender de JS) ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: reveal-rise 1ms linear both;
      animation-timeline: view();
      animation-range: entry 5% entry 45%;
    }

    .reveal.d1 {
      animation-range: entry 12% entry 55%;
    }
  }
}

@keyframes reveal-rise {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 18. RESPONSIVO (do maior para o menor) ---------- */
@media (max-width: 1180px) {
  .portrait-side {
    display: none;
  }
}

@media (max-width: 1023px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .header-cta {
    margin-left: auto;
  }

  .menu-toggle {
    margin-left: 0;
  }

  .about-grid,
  .childhood-grid,
  .reviews-layout,
  .faq-grid,
  .location-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .faq-grid .section-heading {
    margin-bottom: 8px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .neural-art,
  .hero-scene {
    opacity: .2;
  }
}

@media (min-width: 900px) {
  /* Detalhe desktop: livro selecionado + painel lado a lado */
  .shelf[data-mode="detail"] .shelf-row {
    grid-template-columns: minmax(0, calc(var(--book-w) + 2 * var(--stage-pad))) minmax(0, 1fr);
  }

  .shelf[data-mode="detail"] .shelf-stage {
    grid-column: 1;
    grid-row: 1;
  }

  .shelf[data-mode="detail"] .book-panel {
    grid-column: 2;
    grid-row: 1;
  }
}

@media (max-width: 899px) {
  .hero {
    padding-top: clamp(32px, 5vh, 56px);
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .hero-copy {
    max-width: 640px;
  }

  .portrait-frame {
    justify-self: center;
    width: min(100%, 420px);
  }

  .neural-art,
  .hero-scene {
    width: 100%;
    opacity: .14;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 45%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 45%);
  }

  .hero-grid-lines {
    background-size: 82px 82px;
    opacity: .32;
    -webkit-mask-image: linear-gradient(180deg, transparent 20%, #000 88%);
    mask-image: linear-gradient(180deg, transparent 20%, #000 88%);
  }

  .scroll-cue {
    display: none;
  }

  .section-number {
    top: 20px;
    font-size: clamp(7rem, 26vw, 13rem);
    opacity: .065;
  }

  /* Detalhe: livro em cima, painel embaixo */
  .shelf[data-mode="detail"] .shelf-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  .shelf[data-mode="detail"] .shelf-stage {
    order: 1;
    width: 100%;
    padding: 20px var(--stage-pad) 28px;
  }

  .shelf[data-mode="detail"] .book-card.selected,
  .shelf[data-mode="detail"] .book-card.is-selected {
    margin: 0 auto;
  }

  .shelf[data-mode="detail"] .book-panel {
    order: 2;
    width: 100%;
  }
}

@media (max-width: 767px) {
  .site-header,
  .marquee,
  .hero,
  .section,
  .site-footer {
    overflow-x: clip;
  }

  .container > * {
    min-width: 0;
    max-width: 100%;
  }

  :root {
    --book-w: min(230px, 60vw);
    --book-thick: 20px;
    --shelf-gap: 22px;
  }

  .shelf-stage {
    padding: 32px var(--stage-pad) 48px;
    background-position: left bottom 36px;
    background-size: 100% 12px;
  }

  .portrait-mat {
    --portrait-large: 44px;
    --portrait-small: 12px;
    --portrait-padding: 10px;
  }

  .values {
    grid-template-columns: minmax(0, 1fr);
  }

  .form-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .map-frame iframe,
  .map-embed {
    height: clamp(260px, 72vw, 360px);
  }

  .review-slide {
    min-height: 320px;
  }

  .trajectory {
    padding: 24px 20px;
  }

  .childhood-art {
    border-radius: 30px 8px 30px 8px;
  }

  .book-panel {
    padding: 24px 20px 26px;
  }

  .sketchbook-host iframe {
    height: clamp(420px, 78vh, 640px);
  }
}

@media (max-width: 560px) {
  .header-cta {
    display: none;
  }

  .menu-toggle {
    margin-left: auto;
  }

  .brand-type {
    font-size: 1.05rem;
  }

  h1 br,
  h2 br {
    display: none;
  }

  .eyebrow::before {
    flex-basis: 28px;
    width: 28px;
  }

  .hero .section-number,
  .final-cta .section-number {
    font-size: 7rem;
    opacity: .055;
  }

  .hero-actions {
    gap: 14px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .portrait-mat {
    --portrait-large: 34px;
    --portrait-small: 10px;
    --portrait-padding: 9px;
  }

  .portrait-mat::before {
    inset: 4px;
    border-radius:
      calc(var(--portrait-large) - 4px) calc(var(--portrait-small) - 4px)
      calc(var(--portrait-large) - 4px) calc(var(--portrait-small) - 4px);
  }

  .philosophy {
    padding: 17px 16px;
  }

  .timeline {
    padding-left: 11px;
  }

  .timeline li {
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 10px;
  }

  .timeline li::before {
    left: -15px;
    top: 18px;
  }

  .stats {
    gap: 8px;
  }

  .stats > div + div {
    padding-left: 8px;
  }

  .stats span {
    font-size: .72rem;
  }

  .age-notes,
  .local-notes {
    grid-template-columns: minmax(0, 1fr);
  }

  .consultation-meta span {
    padding: 6px 9px;
    font-size: .78rem;
  }

  .sketchbook-host {
    padding: 8px;
    border-radius: 8px 16px 8px 16px;
  }

  .rating-seal {
    padding: 16px 18px;
    gap: 14px;
  }

  .rating-seal > strong {
    font-size: 2.4rem;
  }

  .review-slide {
    padding: 26px 20px;
  }

  .quote-mark {
    font-size: 5rem;
  }

  .faq-list summary {
    padding: 18px 52px 18px 12px;
  }

  .faq-list details > div {
    padding: 0 12px 20px;
  }

  .faq-list summary::after {
    right: 8px;
  }

  .location-copy {
    padding: 22px 18px;
  }

  .map-frame {
    padding: 10px;
  }

  .contact-form {
    padding: 22px 18px;
  }

  .contact-form .button {
    width: 100%;
  }

  .contact-card {
    gap: 13px;
    padding: 16px;
  }

  .contact-card > .icon {
    width: 40px;
    height: 40px;
    padding: 8px;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .floating-actions {
    right: 14px;
    bottom: 14px;
  }

  .floating-whatsapp {
    width: 54px;
    height: 54px;
  }
}

/* ---------- 19. ACESSIBILIDADE / MOVIMENTO / IMPRESSÃO ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .marquee-track {
    animation: none;
    width: auto;
    flex-wrap: wrap;
  }

  .shelf-stage {
    scroll-behavior: auto;
  }
}

@media (forced-colors: active) {
  .section::before,
  .section::after,
  .hero::before,
  .site-footer::before,
  .section-number,
  .final-monogram,
  .hero-grid-lines,
  .neural-art,
  .hero-scene,
  .faq-list details::after,
  .portrait-mat::before,
  .trajectory::before,
  .childhood-art::before,
  .sketchbook-host::before,
  .sketchbook-host::after,
  .book-panel::before,
  .map-frame::before,
  .contact-form::before,
  .review-slide::after {
    display: none;
  }

  h1 em,
  h2 em,
  .quote-mark {
    background: none;
    color: CanvasText;
    -webkit-text-fill-color: currentColor;
  }

  .portrait-mat img,
  .front-cover img,
  .map-embed {
    filter: none;
  }

  .shelf-stage {
    background: none;
  }
}

@media print {
  .site-header,
  .marquee,
  .floating-actions,
  .scroll-cue,
  .section-number,
  .final-monogram,
  .hero-grid-lines,
  .neural-art,
  .hero-scene,
  .section::before,
  .section::after,
  .hero::before {
    display: none !important;
  }

  .hero,
  .section {
    min-height: 0;
    padding-block: 32px;
    background: none !important;
  }

  .dark-section {
    color: #000;
  }

  h1 em,
  h2 em,
  .quote-mark {
    background: none;
    color: inherit;
    -webkit-text-fill-color: currentColor;
  }
}

/* ===== Caderno interativo (Fable) ===== */
/* ------------------------------------------------------------------ */
/* Caderno interativo (#consulta)                                       */
/* ------------------------------------------------------------------ */

.sketchbook-host {
  position: relative;
  margin: 2rem 0 1.5rem;
  max-width: 100%;
}

.sketchbook-status {
  margin: 0 0 .75rem;
  font-size: .85rem;
  letter-spacing: .02em;
  color: var(--ink-soft, #4A4E56);
  transition: opacity .4s ease;
}

.sketchbook-host[data-state="loading"] .sketchbook-status {
  opacity: .7;
}

.sketchbook-host[data-state="ready"] .sketchbook-status {
  font-size: .78rem;
  opacity: .65;
}

.sketchbook-host[data-state="error"] .sketchbook-status {
  color: #8C7153;
}

#sketchbook-frame {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 380px;
  height: 460px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color-scheme: light;
  transition: height .35s ease;
}

#sketchbook-frame[hidden] {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  #sketchbook-frame,
  .sketchbook-status {
    transition: none;
  }
}
