:root {
  --canvas: #F6F8FB;
  --surface: #FFFFFF;
  --mist: #E8EEF5;
  --pale: #C0D0DE;
  --navy: #142E74;
  --ink: #0F2257;
  --soft: #3F4E73;
  --line: rgba(20, 46, 116, 0.12);
  --unlit: #7F8DB0;
  --ok: #1F7A57;
  --f-name: "Bodoni Moda", "Didot", Georgia, serif;
  --f-display: "Newsreader", Georgia, serif;
  --f-text: "Jost", system-ui, sans-serif;
  --f-script: "Pinyon Script", "Snell Roundhand", cursive;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --gut: clamp(20px, 5vw, 72px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--canvas); color: var(--ink);
  font-family: var(--f-text); font-weight: 400; font-size: 1.125rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 99px; transition: top .3s var(--ease); }
.skip:focus { top: 12px; }

/* grain: fixed, non-interactive */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px; text-decoration: none;
  background: var(--navy); color: #fff; font-weight: 500; letter-spacing: .01em;
  padding: 8px 8px 8px 26px; border-radius: 999px; border: 0;
  transition: transform .5s var(--ease), background .5s var(--ease);
}
.btn:hover { background: var(--ink); }
.btn:active { transform: scale(.98); }
.btn__dot {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.14); transition: transform .5s var(--ease);
}
.btn__dot svg { width: 20px; height: 20px; }
.btn:hover .btn__dot { transform: translate(2px, -2px) scale(1.06); }
.btn--sm { padding: 5px 5px 5px 20px; font-size: .95rem; }
.btn--sm .btn__dot { width: 34px; height: 34px; }
.btn--lg { padding: 10px 10px 10px 32px; font-size: 1.125rem; }
.btn--lg .btn__dot { width: 48px; height: 48px; }
.btn--ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { background: var(--mist); }
.btn--ghost .btn__dot { background: var(--mist); }
.btn--ghost:not(:has(.btn__dot)) { padding: 12px 24px; }
.link { background: none; border: 0; color: var(--navy); text-decoration: underline; text-underline-offset: 4px; padding: 8px 4px; }
.chip {
  display: inline-block; font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 500;
  color: var(--navy); background: var(--surface); padding: 7px 14px; border-radius: 99px; box-shadow: 0 0 0 1px var(--line);
  margin-bottom: 28px;
}

/* ---------- nav: floating pill ---------- */
.nav {
  position: fixed; z-index: 60; top: 18px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: clamp(14px, 3vw, 40px);
  padding: 7px 7px 7px 18px; border-radius: 999px;
  background: rgba(246,248,251,.78); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 0 0 1px var(--line), 0 10px 40px -18px rgba(20,46,116,.35);
  max-width: calc(100vw - 24px);
}
.nav__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--f-display); font-weight: 600; color: var(--navy); white-space: nowrap; }
.nav__mark { width: 22px; height: 26px; }
.nav__links { display: flex; gap: 26px; }
.nav__links a { text-decoration: none; font-size: 1rem; color: var(--soft); transition: color .4s var(--ease); }
.nav__links a:hover { color: var(--navy); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; overflow: hidden; isolation: isolate;
  display: grid; grid-template-rows: 1fr auto; padding: 0 var(--gut) 32px;
}
.hero > * { will-change: transform; }
.hero__ghost { position: absolute; z-index: 0; right: -14vw; top: -8vh; width: min(70vw, 980px); opacity: .3; }
.hero__ghost svg { width: 100%; height: auto; }
.hero__name {
  position: absolute; z-index: 2; inset: 0; display: grid; place-items: start center; padding-top: 52vh;
  text-align: center; pointer-events: none;
}
.hero__name h1 { font-weight: 500; }
.hero__dra { display: block; font-family: var(--f-name); font-size: clamp(1.2rem, 2.4vw, 2.2rem); font-weight: 500; letter-spacing: .4em; text-indent: .4em; color: var(--navy); margin-bottom: .2em; text-transform: uppercase; }
.hero__cecilia { display: block; font-family: var(--f-name); font-weight: 700; font-size: clamp(3.3rem, 14vw, 14rem); line-height: .9; letter-spacing: -.01em; color: var(--navy); white-space: nowrap; }
.ltr { display: inline-block; overflow: hidden; vertical-align: top; padding: .24em .01em .04em; margin-top: -.24em; }
.ltr i { display: inline-block; font-style: normal; }
.hero__mark { position: absolute; z-index: 1; inset: 0; display: grid; place-items: start center; padding-top: 11vh; pointer-events: none; }
.hero__mark svg { width: min(46vh, 38vw); height: auto; overflow: visible; filter: drop-shadow(0 30px 40px rgba(20,46,116,.12)); }
.tooth-fill { fill: none; }
.hero__fore { position: absolute; z-index: 3; inset: 0; display: grid; place-items: start center; padding-top: 71vh; text-align: center; pointer-events: none; }
.hero__script { display: inline-block; font-family: var(--f-script); font-size: clamp(2.6rem, 7.4vw, 7rem); color: var(--navy); line-height: 1; transform: rotate(-4deg); text-shadow: 0 0 18px var(--canvas), 0 0 6px var(--canvas); }
.hero__spark { position: absolute; z-index: 3; inset: 0; pointer-events: none; }
.hero__spark i { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 1px var(--pale), 0 8px 18px -6px rgba(20,46,116,.28); }
.hero__foot {
  position: relative; z-index: 4; grid-row: 2; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end;
  padding-top: 62vh;
}
.hero__tag { max-width: 34ch; color: var(--soft); font-size: 1.0625rem; }
.hero__tag span { color: var(--navy); font-weight: 500; }
.hero__cta { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.hero__open { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--soft); }
.hero__open i, .where__status i { width: 8px; height: 8px; border-radius: 50%; background: var(--pale); flex: none; }
.is-open i { background: var(--ok) !important; box-shadow: 0 0 0 4px rgba(31,122,87,.16); }

/* ---------- manifesto ---------- */
.manifesto { padding: clamp(110px, 18vh, 220px) var(--gut); max-width: 1320px; margin: 0 auto; }
.manifesto__label { font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; color: var(--soft); margin-bottom: 36px; }
.manifesto__text { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.9rem, 4.4vw, 4.2rem); line-height: 1.14; letter-spacing: -.02em; max-width: 22ch; color: var(--navy); }
.manifesto__text .w { color: var(--unlit); display: inline; }
.manifesto__quote { margin-top: clamp(56px, 9vh, 110px); margin-left: auto; max-width: 440px; padding-left: 28px; border-left: 1px solid var(--pale); }
.manifesto__quote blockquote { font-family: var(--f-display); font-size: 1.5rem; line-height: 1.3; color: var(--ink); }
.manifesto__quote figcaption { margin-top: 12px; font-size: .9rem; color: var(--soft); }
.manifesto__quote figcaption span { display: block; font-size: .8rem; }

/* ---------- care: stacked cards ---------- */
.care { padding: clamp(80px, 12vh, 150px) var(--gut) clamp(80px, 14vh, 180px); max-width: 1320px; margin: 0 auto; }
.care__head { margin-bottom: clamp(40px, 8vh, 90px); }
.care__head h2, .where h2, .play__copy h2 { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.9rem, 4vw, 3.6rem); line-height: 1.1; letter-spacing: -.02em; color: var(--navy); max-width: 18ch; }
.care__stack { display: grid; gap: 28px; }
.card { position: sticky; top: calc(96px + var(--i, 0) * 22px); transform-origin: 50% 0; }
.card__shell, .play__shell, .hours-shell, .map-shell, .ticket-shell { padding: 8px; border-radius: 2.25rem; background: #EAEFF6; box-shadow: 0 0 0 1px var(--line); }
.card__core, .play__core, .hours-core, .map-core { border-radius: calc(2.25rem - 8px); background: var(--surface); box-shadow: inset 0 1px 1px rgba(255,255,255,.9), 0 30px 60px -40px rgba(20,46,116,.35); }
.card__core { display: grid; padding: clamp(28px, 4vw, 56px); min-height: 260px; }
.card h3 { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.15; letter-spacing: -.01em; color: var(--navy); margin-bottom: 14px; }
.card p { color: var(--soft); font-size: 1.125rem; max-width: 46ch; margin-bottom: 28px; }

/* ---------- play ---------- */
.play { max-width: 1320px; margin: 0 auto; padding: clamp(60px, 10vh, 140px) var(--gut); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: center; min-height: 100svh; }
.play__copy p:not(.chip):not(.play__status) { color: var(--soft); max-width: 44ch; margin-top: 22px; }
.play__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; margin-top: 32px; }
.play__bar[hidden], .play__done[hidden] { display: none; }
.play__status { font-weight: 500; color: var(--navy); }
.play__done { margin-top: 32px; }
.play__done > p { font-family: var(--f-display); font-size: 1.6rem; line-height: 1.25; color: var(--navy); max-width: 22ch; margin-bottom: 22px; }
.play__done-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.play__stage { position: relative; }
.play__core { position: relative; overflow: hidden; touch-action: pan-y; cursor: none; padding: clamp(20px, 4vw, 48px); background: var(--surface); }
.play__svg { touch-action: none; width: 100%; height: auto; max-height: 72vh; margin: 0 auto; }
.play__tooth { fill: #fff; filter: drop-shadow(0 20px 30px rgba(20,46,116,.14)); }
[data-spots] circle { fill: #D9C98F; transform-box: fill-box; transform-origin: center; }
[data-spots] circle.sub { fill: #C9B574; }
[data-bubbles] circle { fill: #fff; stroke: var(--pale); stroke-width: 1.5; }
.play__brush { position: absolute; left: 0; top: 0; width: 96px; height: 32px; pointer-events: none; opacity: 0; transition: opacity .3s; will-change: transform; z-index: 3; }
.play__core:hover .play__brush, .play__stage.is-touching .play__brush { opacity: 1; }
.play__stage.is-clean .play__core { background: #F3F7FB; }

/* ---------- where ---------- */
.where { padding: clamp(80px, 14vh, 180px) var(--gut); max-width: 1320px; margin: 0 auto; }
.where__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.where__status { display: flex; align-items: center; gap: 10px; margin: 24px 0 32px; color: var(--soft); }
.hours { list-style: none; margin: 0; padding: clamp(8px, 1.5vw, 18px) clamp(18px, 3vw, 36px); }
.hours li { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--soft); transition: color .4s var(--ease); }
.hours li:last-child { border-bottom: 0; }
.hours b { font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.hours li.is-today { color: var(--navy); }
.hours li.is-today span::after { content: "hoje"; margin-left: 10px; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; background: var(--navy); color: #fff; padding: 3px 9px; border-radius: 99px; vertical-align: 2px; }
.map-core { overflow: hidden; aspect-ratio: 4 / 3; }
.map-core iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(.7) contrast(1.02); }
.addr { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start; margin-top: 24px; font-style: normal; color: var(--soft); }
.addr svg { width: 26px; height: 26px; color: var(--navy); }
.addr a { color: var(--navy); font-weight: 500; text-underline-offset: 4px; white-space: nowrap; }

/* ---------- close ---------- */
.close { position: relative; overflow: hidden; background: var(--navy); color: #fff; padding: clamp(100px, 16vh, 200px) var(--gut); isolation: isolate; border-radius: 3rem 3rem 0 0; }
.close__bg { position: absolute; z-index: -1; right: -8vw; bottom: -12vh; width: min(60vw, 760px); opacity: .1; }
.close__bg svg { width: 100%; height: auto; }
.close__inner { max-width: 880px; margin: 0 auto; }
.close h2 { font-family: var(--f-display); font-weight: 500; font-size: clamp(2.2rem, 5.2vw, 4.6rem); line-height: 1.08; letter-spacing: -.02em; }
.close__sub { margin: 22px 0 44px; color: #C7D3EA; max-width: 46ch; }
.ticket-shell { background: rgba(255,255,255,.08); box-shadow: 0 0 0 1px rgba(255,255,255,.16); }
.ticket { background: var(--surface); color: var(--ink); border-radius: calc(2.25rem - 8px); padding: clamp(24px, 4vw, 44px); display: grid; gap: 26px; }
.ticket fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.ticket legend { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--soft); margin-bottom: 14px; padding: 0; float: left; width: 100%; }
.ticket label { cursor: pointer; }
.ticket input { position: absolute; opacity: 0; pointer-events: none; }
.ticket label span { display: inline-block; padding: 12px 20px; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--line); transition: background .4s var(--ease), color .4s var(--ease), transform .4s var(--ease); }
.ticket label:hover span { background: var(--mist); }
.ticket input:checked + span { background: var(--navy); color: #fff; box-shadow: none; }
.ticket input:focus-visible + span { outline: 2px solid var(--navy); outline-offset: 3px; }
.ticket__preview { font-family: var(--f-display); font-size: 1.25rem; line-height: 1.35; color: var(--navy); padding: 18px 20px; background: var(--canvas); border-radius: 20px; }
.ticket .btn { justify-self: start; }

/* ---------- footer ---------- */
.foot { background: var(--navy); color: #C7D3EA; padding: 56px var(--gut) 96px; display: grid; grid-template-columns: auto 1fr; gap: 32px 64px; border-top: 1px solid rgba(255,255,255,.12); }
.foot__brand { display: flex; align-items: center; gap: 20px; }
.foot__mark { width: 56px; height: 64px; }
.foot__name { font-family: var(--f-name); font-weight: 700; font-size: 1.6rem; color: #fff; line-height: 1; text-transform: uppercase; letter-spacing: .02em; }
.foot__script { font-family: var(--f-script); font-size: 1.9rem; color: #fff; line-height: 1; }
.foot__tag { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin-top: 6px; }
.foot__info { justify-self: end; text-align: right; }
.foot__small { grid-column: 1 / -1; font-size: .85rem; opacity: .8; }
/* the fixed filled mark on the navy footer needs the pale tooth to read */
.foot .foot__mark { background: var(--surface); border-radius: 18px; padding: 8px; width: 64px; height: 72px; }

/* ---------- fab ---------- */
.fab {
  position: fixed; z-index: 55; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px 14px 18px; border-radius: 999px; text-decoration: none; color: #fff; font-weight: 500;
  background: var(--navy); box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 18px 40px -12px rgba(20,46,116,.6);
  transition: transform .6s var(--ease), opacity .4s var(--ease);
}
.fab svg { width: 24px; height: 24px; }
.fab.is-hidden { transform: translateY(24px); opacity: 0; pointer-events: none; }

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .nav__links { display: none; }
  .hero__ghost { right: -40vw; width: 130vw; top: 4vh; }
  .hero__name { padding-top: 40vh; }
  .hero__mark { padding-top: 11vh; }
  .hero__mark svg { width: min(66vw, 34vh); }
  .hero__script { font-size: clamp(2.4rem, 12vw, 4.2rem); }
  .hero__fore { padding-top: 52vh; }
  .hero__foot { grid-template-columns: 1fr; padding-top: 60vh; }
  .hero__cta { align-items: flex-start; }
  .card { position: relative; top: auto; }
  .play, .where__grid { grid-template-columns: 1fr; }
  .play { min-height: auto; }
  .play__core { cursor: auto; }
  .foot { grid-template-columns: 1fr; }
  .foot__info { justify-self: start; text-align: left; }
  .close { border-radius: 2rem 2rem 0 0; }
  .addr { grid-template-columns: auto 1fr; }
  .addr a { grid-column: 2; }
}
@media (max-width: 820px) {
  .fab { padding: 14px; }
  .fab span { display: none; }
}
@media (max-width: 420px) {
  .nav__brand span { display: none; }
  .nav { padding-left: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; }
}
