/* Calendarq · Base, movimento e tipografia (partes 2 a 4). Dono: a Fundação; as frentes não editam (sobrescrevem em css/telas/). */
/* =========================================================================
   2. BASE
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
/* Sem rolagem suave (3.49): ao tocar, a tela vai direto ao destino. */
html, body { overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--sans);
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: -.006em;
  color: var(--g-900);
  background: var(--g-0);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--g-900); color: var(--g-0); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, h5, h6, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; }
[hidden] { display: none !important; }
/* Foco do teclado (revisão de 09/11): anel branco por dentro e grafite por fora,
   visível no branco e no grafite. A sombra cinza a 12% de antes quase não se via. */
:focus-visible { outline: 2px solid var(--g-900); outline-offset: 2px; box-shadow: 0 0 0 2px var(--g-0); border-radius: 10px; }

/* Grão animado sobre a página inteira */
body::after {
  content: '';
  position: fixed;
  inset: -50%;
  z-index: 90;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 7s steps(10) infinite;
}

/* Ícones (Solar Linear, embutidos na página) */
.ic { width: 1em; height: 1em; flex: none; display: inline-block; vertical-align: -.14em; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.tnum { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }


/* =========================================================================
   3. MOVIMENTO
   ========================================================================= */
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-3%, -2%); }
  20% { transform: translate(2%, 3%); }
  30% { transform: translate(-2%, 1%); }
  40% { transform: translate(3%, -3%); }
  50% { transform: translate(-1%, 2%); }
  60% { transform: translate(2%, -1%); }
  70% { transform: translate(-3%, 3%); }
  80% { transform: translate(1%, -2%); }
  90% { transform: translate(-2%, -3%); }
}
@keyframes slideUpFade {
  0% { opacity: 0; transform: translateY(40px) scale(.98); filter: blur(10px); }
  100% { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes animationIn {
  0% { opacity: 0; transform: translateY(20px); filter: blur(10px); }
  100% { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33% { transform: translate3d(4%, -6%, 0) scale(1.08); }
  66% { transform: translate3d(-5%, 4%, 0) scale(.95); }
}
@keyframes pulseRing { 0% { box-shadow: 0 0 0 0 var(--lgs-31-31-31-35); } 100% { box-shadow: 0 0 0 10px var(--lgs-31-31-31-0); } }
@keyframes pulseRingLight { 0% { box-shadow: 0 0 0 0 var(--lgs-255-255-255-55); } 100% { box-shadow: 0 0 0 10px var(--lgs-255-255-255-0); } }
@keyframes pulseRingWarn { 0% { box-shadow: 0 0 0 0 var(--lgs-148-104-31-35); } 100% { box-shadow: 0 0 0 10px var(--lgs-148-104-31-0); } }
@keyframes hatch { to { background-position: 28px 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes shine { 0% { transform: translateX(-120%) skewX(-20deg); } 100% { transform: translateX(260%) skewX(-20deg); } }
@keyframes sweep { to { transform: rotate(360deg); } }
@keyframes cue { 0%, 100% { opacity: 1; } 50% { opacity: .2; } }
@keyframes popIn { 0% { opacity: 0; transform: scale(.85) translateY(8px); } 100% { opacity: 1; transform: none; } }
@keyframes breathe { 0%, 100% { opacity: .55; transform: scale(1); } 50% { opacity: .9; transform: scale(1.06); } }
@keyframes borderFlow { to { --angle: 360deg; } }
@keyframes veilIn { to { transform: translateY(0); } }
@keyframes veilBar { to { transform: scaleX(1); } }
@keyframes drawHalf { to { stroke-dashoffset: var(--to, 500); } }
@property --angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }

/* Entradas (o JS acende .active quando o bloco aparece) */
.motion-enter { opacity: 0; }
.motion-enter.active { animation: slideUpFade 1.2s var(--ease) forwards; }
.animate-on-scroll { opacity: 0; }
.animate-on-scroll.active { animation: animationIn .8s var(--ease) forwards; }
.clip-enter { clip-path: inset(100% 0 0 0); transform: translateY(20px); transition: clip-path 1.2s var(--ease), transform 1.2s var(--ease); }
.clip-enter.active { clip-path: inset(0 0 0 0); transform: none; }
.delay-100 { animation-delay: .1s; transition-delay: .1s; }
.delay-200 { animation-delay: .2s; transition-delay: .2s; }
.delay-300 { animation-delay: .3s; transition-delay: .3s; }
.delay-500 { animation-delay: .5s; transition-delay: .5s; }
.delay-700 { animation-delay: .7s; transition-delay: .7s; }
.delay-900 { animation-delay: .9s; transition-delay: .9s; }

/* Título que sobe por trás de uma máscara */
.text-reveal-wrapper { overflow: hidden; display: inline-flex; vertical-align: bottom; padding-bottom: .06em; }
.text-reveal-content { display: block; transform: translateY(110%); opacity: 0; transition: transform 1.2s var(--ease), opacity 1.2s ease; }
.reveal-active .text-reveal-content { transform: none; opacity: 1; }
.reveal-active .text-reveal-wrapper ~ .text-reveal-wrapper .text-reveal-content,
.reveal-active .text-reveal-content + .text-reveal-content { transition-delay: .14s; }

.hover-lift { transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.hover-lift:hover { transform: translateY(-4px); box-shadow: 0 10px 30px -10px var(--lgs-31-31-31-12); }
.animate-float { animation: float 6s ease-in-out infinite; }
.animate-breathe { animation: breathe 5s ease-in-out infinite; }
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.tilt { transform-style: preserve-3d; transition: transform .5s var(--ease); }

/* Letras que trocam de peso sob o cursor (o JS divide em .ch) */
[data-chars] .ch { display: inline-block; font-weight: var(--w); }


/* =========================================================================
   4. TIPOGRAFIA
   ========================================================================= */
.display { font-size: clamp(48px, 6.6vw, 112px); font-weight: 800; line-height: .9; letter-spacing: -.05em; }
.display .row { display: block; white-space: nowrap; }
.display .row.thin { font-weight: 200; color: var(--g-450); }
.h1 { font-size: clamp(36px, 4.4vw, 64px); font-weight: 600; line-height: 1; letter-spacing: -.04em; }
.sec-title { font-size: clamp(30px, 3.2vw, 46px); font-weight: 600; line-height: 1.04; letter-spacing: -.035em; color: var(--g-900); }
.h3 { font-size: 28px; font-weight: 600; line-height: 1.15; letter-spacing: -.025em; }
.h4 { font-size: 22px; font-weight: 600; line-height: 1.25; letter-spacing: -.018em; }
.h5 { font-size: 18px; font-weight: 600; line-height: 1.35; letter-spacing: -.012em; }
.h6 { font-size: 15px; font-weight: 600; line-height: 1.4; letter-spacing: -.006em; }
.accent { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.lead { font-size: clamp(17px, 1.4vw, 20px); font-weight: 300; line-height: 1.65; letter-spacing: -.011em; color: var(--g-600); }
.lead strong { font-weight: 500; color: var(--g-900); }
.body-lg { font-size: 17px; line-height: 1.65; color: var(--g-800); }
.body-sm { font-size: 13px; line-height: 1.55; color: var(--g-600); }
.caption { font-size: 12px; line-height: 1.45; letter-spacing: .005em; color: var(--g-500); }
.eyebrow { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .14em; line-height: 1.2; text-transform: uppercase; color: var(--g-500); }
.mono-label { font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .14em; line-height: 1.3; text-transform: uppercase; color: var(--g-500); }
.sec-index { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--g-500); }
.spec { font-family: var(--mono); font-size: 11px; line-height: 1.9; color: var(--g-500); }
.spec b { color: var(--g-900); font-weight: 500; }
.numeral { font-size: clamp(36px, 3.6vw, 52px); font-weight: 600; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }


