/* =========================================================================
   CCDA — Colégio Carlos Drummond de Andrade
   Design system: "Noir, Esmeralda & Ouro"
   ========================================================================= */

:root {
  --ink: #05081a;
  --ink-2: #0a1030;
  --ink-3: #121a46;
  --indigo: #2e3192;
  --indigo-l: #7479ff;
  --emerald: #1fb37a;
  --emerald-l: #45e3a6;
  --gold: #d8b25e;
  --gold-l: #f4dc9e;
  --gold-d: #a8823a;
  --ivory: #f5f0e6;
  --ivory-2: #ebe3d2;
  --paper: #fbf8f2;
  --muted: rgba(245, 240, 230, .64);
  --muted-2: rgba(245, 240, 230, .42);
  --line: rgba(245, 240, 230, .12);
  --line-2: rgba(245, 240, 230, .22);
  --ink-muted: rgba(5, 8, 26, .62);
  --ink-line: rgba(5, 8, 26, .12);

  --f-display: 'Fraunces', 'Times New Roman', serif;
  --f-ui: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1360px;
  --hdr: 84px;
  --r: 22px;
  --r-lg: 34px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --gold-grad: linear-gradient(120deg, #a8823a 0%, #f4dc9e 38%, #d8b25e 55%, #fff1c9 72%, #b88f43 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-width: thin; scrollbar-color: var(--gold-d) var(--ink); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; background: var(--ink); color: var(--ivory);
  font-family: var(--f-ui); font-size: 16px; line-height: 1.65; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; text-rendering: optimizeLegibility;
}
body.is-loading { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 9999; background: var(--gold); color: var(--ink); padding: 10px 16px; border-radius: 999px; font-weight: 700; }
.skip:focus { top: 16px; }

.wrap { width: min(var(--maxw), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.sec { position: relative; padding-block: clamp(84px, 11vw, 170px); }
.sec--tight { padding-block: clamp(56px, 7vw, 110px); }
.sec--light { background: var(--paper); color: var(--ink); }
.sec--ivory { background: var(--ivory); color: var(--ink); }
.sec--deep { background: var(--ink-2); }

/* ---------- Typography ---------- */
.display, .h1, .h2, .h3 { font-family: var(--f-display); font-weight: 300; letter-spacing: -.025em; margin: 0; font-variation-settings: 'opsz' 144, 'SOFT' 50; }
.display { font-size: clamp(52px, 10.2vw, 172px); line-height: .9; }
.h1 { font-size: clamp(44px, 7.4vw, 124px); line-height: .94; }
.h2 { font-size: clamp(36px, 5.2vw, 84px); line-height: 1; }
.h3 { font-size: clamp(26px, 2.6vw, 40px); line-height: 1.08; }
.display em, .h1 em, .h2 em, .h3 em, .gold-text {
  font-style: italic; font-weight: 300;
  background: var(--gold-grad); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: goldShift 8s ease-in-out infinite alternate;
  padding-right: .06em;
}
.sec--light .h2 em, .sec--light .h1 em, .sec--ivory .h2 em, .sec--light .h3 em {
  background: linear-gradient(120deg, #2e3192, #1fb37a 70%, #2e3192); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
}
@keyframes goldShift { to { background-position: 100% 0; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--gold);
}
.eyebrow::before { content: ''; width: 36px; height: 1px; background: currentColor; opacity: .7; }
.sec--light .eyebrow, .sec--ivory .eyebrow { color: var(--indigo); }
.lead { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.6; color: var(--muted); max-width: 62ch; font-weight: 300; }
.sec--light .lead, .sec--ivory .lead { color: var(--ink-muted); }
.muted { color: var(--muted); }
.prose { max-width: 70ch; font-size: 17.5px; line-height: 1.8; color: var(--muted); }
.prose p { margin: 0 0 1.2em; }
.prose strong { color: var(--ivory); font-weight: 600; }
.prose h3 { font-family: var(--f-display); font-weight: 400; color: var(--ivory); font-size: 26px; margin: 1.8em 0 .6em; letter-spacing: -.01em; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.4em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--gold); }
.sec--light .prose, .sec--ivory .prose { color: var(--ink-muted); }
.sec--light .prose strong, .sec--light .prose h3 { color: var(--ink); }
.link { color: var(--gold); border-bottom: 1px solid currentColor; padding-bottom: 1px; transition: color .3s; }
.link:hover { color: var(--gold-l); }

/* split text */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.wi { display: inline-block; will-change: transform; }

/* ---------- Buttons ---------- */
.btn {
  --bg: transparent; --fg: var(--ivory); --bd: var(--line-2); --fill: var(--ivory); --fill-fg: var(--ink);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 58px; padding: 0 30px; border-radius: 999px; border: 1px solid var(--bd);
  background: var(--bg); color: var(--fg); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  overflow: hidden; isolation: isolate; white-space: nowrap; transition: color .5s var(--ease), border-color .5s var(--ease);
}
.btn::before {
  content: ''; position: absolute; inset: -1px; z-index: -1; background: var(--fill);
  border-radius: inherit; transform: translateY(101%); transition: transform .6s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: var(--fill-fg); border-color: var(--fill); }
.btn .arr { width: 18px; height: 18px; transition: transform .6s var(--ease); }
.btn:hover .arr { transform: translateX(4px) rotate(-45deg); }
.btn--gold { --bg: var(--gold-grad); --fg: var(--ink); --bd: transparent; --fill: var(--ivory); --fill-fg: var(--ink); background: var(--gold-grad); background-size: 180% 100%; }
.btn--gold:hover { border-color: transparent; }
.btn--emerald { --bg: var(--emerald); --fg: var(--ink); --bd: var(--emerald); --fill: var(--ivory); background: var(--emerald); }
.btn--ink { --bg: var(--ink); --fg: var(--ivory); --bd: var(--ink); --fill: var(--indigo); --fill-fg: var(--ivory); background: var(--ink); }
.btn--line-ink { --fg: var(--ink); --bd: var(--ink-line); --fill: var(--ink); --fill-fg: var(--ivory); }
.btn--sm { height: 44px; padding: 0 20px; font-size: 11.5px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn.is-loading { pointer-events: none; }
.btn.is-loading .btn__txt { opacity: 0; }
.btn.is-loading::after { content: ''; position: absolute; width: 20px; height: 20px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.magnetic { will-change: transform; }

.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line-2); font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--muted);
  transition: all .4s var(--ease);
}
.chip:hover, .chip.is-active { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.sec--light .chip, .sec--ivory .chip { border-color: var(--ink-line); color: var(--ink-muted); }
.sec--light .chip:hover, .sec--light .chip.is-active, .sec--ivory .chip.is-active { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 0 rgba(31, 179, 122, .6); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(31, 179, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 179, 122, 0); } }

/* ---------- Grain + glow ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 9000; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0%, 100% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; opacity: .5; }
.glow--indigo { background: radial-gradient(circle, #3a3fd0 0%, transparent 70%); }
.glow--emerald { background: radial-gradient(circle, #128f61 0%, transparent 70%); }
.glow--gold { background: radial-gradient(circle, #8d6a2a 0%, transparent 70%); }

/* ---------- Cursor ---------- */
.cursor, .cursor-dot { position: fixed; left: 0; top: 0; pointer-events: none; z-index: 9500; border-radius: 50%; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--gold); }
.cursor {
  width: 44px; height: 44px; margin: -22px 0 0 -22px; border: 1px solid rgba(216, 178, 94, .6);
  display: grid; place-items: center; transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background .45s, border-color .45s;
}
.cursor__label { font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); opacity: 0; transition: opacity .3s; white-space: nowrap; }
.cursor.is-hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: var(--gold); background: rgba(216, 178, 94, .08); }
.cursor.is-label { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--gold); border-color: var(--gold); }
.cursor.is-label .cursor__label { opacity: 1; }
.cursor.is-down { transform: scale(.85); }
@media (hover: none), (pointer: coarse) { .cursor, .cursor-dot { display: none; } }
@media (hover: hover) and (pointer: fine) { body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; } body.has-cursor input, body.has-cursor textarea, body.has-cursor select { cursor: text; } }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 9800; display: grid; place-items: center; background: var(--ink);
  overflow: hidden;
}
.preloader__inner { display: grid; justify-items: center; gap: 28px; position: relative; z-index: 2; }
.preloader__logo { width: min(320px, 64vw); }
.preloader__logo path, .preloader__logo .pl-c { fill: none; stroke-width: 11; }
.preloader__meta { display: flex; align-items: center; gap: 18px; font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); }
.preloader__count { font-family: var(--f-display); font-size: clamp(64px, 12vw, 150px); font-weight: 200; line-height: 1; color: var(--ivory); font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.preloader__bar { width: min(320px, 64vw); height: 1px; background: var(--line); position: relative; overflow: hidden; }
.preloader__bar i { position: absolute; inset: 0; background: var(--gold-grad); transform-origin: left; transform: scaleX(0); }
.preloader__panel { position: absolute; left: 0; right: 0; height: 50.5%; background: var(--ink); z-index: 1; }
.preloader__panel--t { top: 0; }
.preloader__panel--b { bottom: 0; }

/* ---------- Page transition ---------- */
.ptrans { position: fixed; inset: 0; z-index: 9400; pointer-events: none; display: grid; grid-template-columns: repeat(5, 1fr); }
.ptrans__bar { background: var(--ink-3); transform: scaleY(0); transform-origin: bottom; }
.ptrans__bar:nth-child(2) { background: #0e1640; }
.ptrans__bar:nth-child(3) { background: var(--indigo); }
.ptrans__bar:nth-child(4) { background: #0e1640; }
.ptrans__bar:nth-child(5) { background: var(--ink-3); }
.ptrans__label {
  position: fixed; inset: 0; display: grid; place-items: center; z-index: 9401; pointer-events: none;
  font-family: var(--f-display); font-style: italic; font-weight: 300; font-size: clamp(42px, 8vw, 120px); color: var(--ivory);
  letter-spacing: -.03em; opacity: 0;
}
.ptrans__label small { display: block; font-family: var(--f-ui); font-style: normal; font-size: 11px; letter-spacing: .38em; text-transform: uppercase; color: var(--gold); text-align: center; margin-bottom: 14px; font-weight: 700; }

/* ---------- Header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 900; height: var(--hdr);
  display: flex; align-items: center; transition: transform .7s var(--ease), background .5s, backdrop-filter .5s, border-color .5s;
  border-bottom: 1px solid transparent;
}
.hdr.is-scrolled { background: rgba(5, 8, 26, .72); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); border-color: var(--line); }
.hdr.is-hidden { transform: translateY(-100%); }
.hdr__in { display: flex; align-items: center; gap: 28px; width: 100%; padding-inline: var(--gutter); }
.hdr__logo { display: flex; align-items: center; gap: 14px; flex: none; }
.hdr__logo svg { width: 92px; height: auto; }
.hdr__name { font-size: 10.5px; line-height: 1.35; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 600; border-left: 1px solid var(--line-2); padding-left: 14px; }
.hdr__nav { display: none; margin-left: auto; gap: 4px; }
.hdr__nav a {
  position: relative; padding: 10px 14px; font-size: 12.5px; font-weight: 600; letter-spacing: .08em; color: var(--muted);
  transition: color .3s;
}
.hdr__nav a::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.hdr__nav a:hover, .hdr__nav a.is-active { color: var(--ivory); }
.hdr__nav a:hover::after, .hdr__nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.hdr__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.hdr__nav + .hdr__actions { margin-left: 18px; }
.hdr__login { white-space: nowrap;
  display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px 0 6px; border-radius: 999px; border: 1px solid var(--line-2);
  font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; transition: all .4s var(--ease);
}
.hdr__login span.ic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--ivory); color: var(--ink); }
.hdr__login svg { width: 16px; height: 16px; }
.hdr__login:hover { border-color: var(--gold); color: var(--gold-l); }
.burger { width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; position: relative; transition: border-color .4s; }
.burger:hover { border-color: var(--gold); }
.burger i { position: absolute; width: 18px; height: 1.5px; background: var(--ivory); transition: transform .6s var(--ease), width .4s; }
.burger i:nth-child(1) { transform: translateY(-4px); }
.burger i:nth-child(2) { transform: translateY(4px); width: 12px; margin-left: 6px; }
.menu-open .burger i:nth-child(1) { transform: rotate(45deg); }
.menu-open .burger i:nth-child(2) { transform: rotate(-45deg); width: 18px; margin-left: 0; }
@media (min-width: 1240px) { .hdr__nav { display: flex; } }
@media (max-width: 760px) { .hdr__name, .hdr__mat { display: none !important; } .hdr__login .lbl { display: none; } .hdr__login { padding: 0 6px; } :root { --hdr: 72px; } .hdr__logo svg { width: 80px; } }

/* progress */
.progress { position: fixed; left: 0; top: 0; height: 2px; width: 100%; z-index: 950; background: var(--gold-grad); transform-origin: left; transform: scaleX(0); }

/* ---------- Fullscreen menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 880; background: var(--ink); visibility: hidden;
  clip-path: circle(0% at calc(100% - 60px) 42px); display: flex;
}
.menu__in { width: 100%; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; padding: calc(var(--hdr) + 30px) var(--gutter) 40px; overflow-y: auto; }
.menu__list { list-style: none; margin: 0; padding: 0; counter-reset: m; align-self: center; }
.menu__list li { overflow: hidden; }
.menu__list a {
  display: flex; align-items: baseline; gap: 22px; padding: 4px 0; font-family: var(--f-display); font-weight: 300;
  font-size: clamp(36px, 5.4vw, 78px); line-height: 1.08; letter-spacing: -.03em; color: var(--ivory); transition: color .4s, transform .6s var(--ease);
}
.menu__list a small { font-family: var(--f-ui); font-size: 12px; letter-spacing: .2em; color: var(--gold); font-weight: 700; transform: translateY(-1.4em); }
.menu__list a:hover { color: var(--gold-l); transform: translateX(16px); font-style: italic; }
.menu__list a.is-active { color: var(--gold); font-style: italic; }
.menu__aside { align-self: end; display: grid; gap: 28px; color: var(--muted); font-size: 15px; }
.menu__aside h4 { margin: 0 0 8px; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.menu__preview { position: fixed; width: 300px; aspect-ratio: 4/5; border-radius: 18px; overflow: hidden; pointer-events: none; z-index: 2; opacity: 0; transform: scale(.8); left: 0; top: 0; }
.menu__preview img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .menu__in { grid-template-columns: 1fr; align-content: start; } .menu__preview { display: none; } .menu__aside { align-self: start; } }

/* ---------- Pages ---------- */
.page { display: none; min-height: 100vh; }
.page.is-active { display: block; }
.page-hero { position: relative; padding: calc(var(--hdr) + clamp(60px, 10vw, 150px)) 0 clamp(60px, 8vw, 110px); overflow: hidden; }
.page-hero .h1 { max-width: 14ch; }
.page-hero__meta { display: flex; flex-wrap: wrap; gap: 16px 40px; margin-top: 44px; align-items: end; justify-content: space-between; }
.crumbs { display: flex; gap: 10px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 30px; font-weight: 600; }
.crumbs a:hover { color: var(--gold); }

/* ---------- HOME HERO ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; padding: calc(var(--hdr) + 40px) 0 clamp(36px, 6vh, 70px); }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero__vignette { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(120% 90% at 70% 40%, transparent 30%, rgba(5, 8, 26, .78) 85%), linear-gradient(to top, var(--ink) 0%, transparent 38%); }
.hero__in { position: relative; z-index: 2; }
.hero__top { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: clamp(20px, 4vh, 44px); }
.hero__badge { display: inline-flex; align-items: center; gap: 12px; padding: 8px 18px 8px 10px; border-radius: 999px; background: rgba(245, 240, 230, .06); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; backdrop-filter: blur(10px); }
.hero__badge b { color: var(--gold-l); font-weight: 700; }
.hero__title { max-width: 13ch; }
.hero__row { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; margin-top: clamp(28px, 4vh, 48px); }
.hero__lead { max-width: 46ch; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__side { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%) rotate(180deg); writing-mode: vertical-rl; font-size: 11px; letter-spacing: .4em; text-transform: uppercase; color: var(--muted-2); z-index: 2; display: flex; gap: 18px; align-items: center; }
.hero__side::before { content: ''; width: 1px; height: 60px; background: var(--line-2); }
.hero__scroll { display: inline-flex; align-items: center; gap: 14px; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.hero__scroll i { width: 1px; height: 46px; background: var(--line-2); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ''; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--gold); animation: drip 2.2s var(--ease-io) infinite; }
@keyframes drip { to { top: 100%; } }
@media (max-width: 900px) { .hero__row { grid-template-columns: 1fr; } .hero__side { display: none; } .hero__top { flex-direction: column; align-items: flex-start; } }

/* ---------- Marquee ---------- */
.marquee { position: relative; overflow: hidden; border-block: 1px solid var(--line); padding: 26px 0; background: var(--ink); }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: flex; align-items: center; gap: 40px; padding-right: 40px; font-family: var(--f-display); font-size: clamp(26px, 3.4vw, 52px); font-weight: 300; letter-spacing: -.02em; white-space: nowrap; }
.marquee__item em { font-style: italic; color: var(--gold-l); }
.marquee__star { width: 22px; height: 22px; color: var(--emerald); flex: none; animation: spin 10s linear infinite; }
.marquee--gold { background: var(--gold); color: var(--ink); border: 0; transform: rotate(-2deg) scale(1.04); margin-block: -10px; z-index: 3; }
.marquee--gold .marquee__item { font-family: var(--f-ui); font-weight: 800; text-transform: uppercase; font-size: clamp(16px, 1.8vw, 24px); letter-spacing: .12em; }
.marquee--gold .marquee__star { color: var(--ink); }
.marquee--rev .marquee__track { animation-direction: reverse; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Manifesto ---------- */
.manifesto__text { font-family: var(--f-display); font-weight: 300; font-size: clamp(30px, 4.3vw, 68px); line-height: 1.12; letter-spacing: -.02em; max-width: 22ch; margin: 34px 0 0; }
.manifesto__text .mw { color: rgba(245, 240, 230, .14); transition: color .2s; }
.manifesto__text .mw.on { color: var(--ivory); }
.manifesto__text .mw.gold.on { color: var(--gold-l); font-style: italic; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: clamp(60px, 8vw, 120px); border-top: 1px solid var(--line); }
.stat { padding: 34px 26px 10px 0; border-right: 1px solid var(--line); }
.stat + .stat { padding-left: 26px; }
.stat:last-child { border-right: 0; }
.stat__n { font-family: var(--f-display); font-size: clamp(48px, 5.6vw, 92px); font-weight: 200; line-height: 1; letter-spacing: -.04em; display: flex; align-items: baseline; gap: 4px; }
.stat__n sup { font-size: .32em; color: var(--gold); font-weight: 400; letter-spacing: 0; top: -1.6em; }
.stat__l { margin-top: 14px; font-size: 13.5px; color: var(--muted); max-width: 24ch; }
@media (max-width: 900px) { .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(3) { padding-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* ---------- Journey (age slider) ---------- */
.journey { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.journey__age { font-family: var(--f-display); font-weight: 200; font-size: clamp(120px, 20vw, 300px); line-height: .8; letter-spacing: -.06em; color: var(--ink); display: flex; align-items: flex-start; gap: 10px; font-variant-numeric: tabular-nums; }
.journey__age small { font-family: var(--f-ui); font-size: 14px; letter-spacing: .24em; text-transform: uppercase; font-weight: 700; color: var(--indigo); margin-top: 1.4em; }
.journey__serie { font-family: var(--f-display); font-size: clamp(26px, 3vw, 44px); font-style: italic; font-weight: 300; color: var(--indigo); min-height: 1.2em; }
.range { position: relative; margin-top: 44px; height: 70px; }
.range input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: grab; z-index: 3; margin: 0; }
.range input:active { cursor: grabbing; }
.range__track { position: absolute; left: 0; right: 0; top: 34px; height: 2px; background: var(--ink-line); }
.range__fill { position: absolute; left: 0; top: 34px; height: 2px; background: linear-gradient(90deg, var(--emerald), var(--indigo)); }
.range__thumb { position: absolute; top: 35px; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 6px rgba(46, 49, 146, .14), 0 10px 30px rgba(5, 8, 26, .3); display: grid; place-items: center; z-index: 2; transition: box-shadow .3s; }
.range__thumb::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.range input:focus-visible ~ .range__thumb { box-shadow: 0 0 0 6px rgba(216, 178, 94, .5); }
.range__ticks { position: absolute; left: 0; right: 0; top: 52px; display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-muted); font-weight: 700; }
.range__ticks span { width: 0; display: flex; justify-content: center; }
.range__seg { position: absolute; top: 0; height: 22px; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--ink-muted); border-left: 1px solid var(--ink-line); padding-left: 8px; white-space: nowrap; transition: color .3s; }
.range__seg.on { color: var(--indigo); }
.seg-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.seg-card {
  position: relative; padding: 26px; border-radius: var(--r); border: 1px solid var(--ink-line); background: #fff; min-height: 190px;
  display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; transition: transform .6s var(--ease), border-color .5s, box-shadow .6s var(--ease), background .5s;
}
.seg-card__n { font-size: 12px; font-weight: 800; letter-spacing: .2em; color: var(--ink-muted); }
.seg-card h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(22px, 2vw, 28px); line-height: 1.05; margin: 18px 0 6px; letter-spacing: -.015em; }
.seg-card p { margin: 0; font-size: 13.5px; color: var(--ink-muted); }
.seg-card .arr { position: absolute; right: 20px; top: 20px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--ink-line); display: grid; place-items: center; transition: all .5s var(--ease); }
.seg-card .arr svg { width: 15px; }
.seg-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(5, 8, 26, .35); }
.seg-card:hover .arr { background: var(--ink); color: var(--ivory); transform: rotate(-45deg); }
.seg-card.on { background: var(--ink); color: var(--ivory); border-color: var(--ink); transform: translateY(-6px) scale(1.02); box-shadow: 0 40px 80px -30px rgba(46, 49, 146, .55); }
.seg-card.on p, .seg-card.on .seg-card__n { color: var(--muted); }
.seg-card.on .arr { border-color: var(--line-2); background: var(--gold); color: var(--ink); }
@media (max-width: 960px) { .journey { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .seg-cards { grid-template-columns: 1fr; } .range__seg { font-size: 9px; letter-spacing: .06em; } }

/* ---------- Approvals deck ---------- */
.aprov { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 110px); align-items: center; }
.deck { position: relative; aspect-ratio: 9/16; width: min(380px, 78vw); margin-inline: auto; touch-action: pan-y; user-select: none; }
.deck__card {
  position: absolute; inset: 0; border-radius: 26px; overflow: hidden; background: var(--ink-3);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(245, 240, 230, .08);
  will-change: transform; cursor: grab;
}
.deck__card:active { cursor: grabbing; }
.deck__card img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.deck__card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(5, 8, 26, .55), transparent 40%); }
.deck__hint { position: absolute; bottom: -54px; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; }
.deck__btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: all .4s var(--ease); }
.deck__btn:hover { background: var(--ivory); color: var(--ink); }
.deck__btn svg { width: 16px; }
.deck__count { font-size: 12px; letter-spacing: .24em; color: var(--muted); font-weight: 700; }
.aprov__info { min-height: 330px; }
.aprov__name { font-family: var(--f-display); font-weight: 300; font-size: clamp(40px, 5vw, 80px); line-height: .96; letter-spacing: -.03em; margin: 24px 0 18px; }
.aprov__curso { font-size: clamp(18px, 1.6vw, 22px); color: var(--gold-l); font-weight: 500; }
.aprov__ies { color: var(--muted); margin-top: 6px; }
.aprov__tag { margin-top: 26px; }
@media (max-width: 900px) { .aprov { grid-template-columns: 1fr; } .aprov__info { min-height: 0; order: -1; } .deck { margin-bottom: 70px; } }

/* universities marquee */
.unis { margin-top: clamp(80px, 9vw, 140px); }

/* ---------- Hall (search) ---------- */
.hall { margin-top: 60px; border-top: 1px solid var(--line); }
.hall__bar { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; padding: 24px 0; }
.search { position: relative; flex: 1 1 280px; max-width: 420px; }
.search input { width: 100%; height: 52px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(245, 240, 230, .04); padding: 0 20px 0 50px; color: var(--ivory); outline: none; transition: border-color .3s, background .3s; }
.search input:focus { border-color: var(--gold); background: rgba(245, 240, 230, .07); }
.search svg { position: absolute; left: 18px; top: 50%; width: 18px; transform: translateY(-50%); color: var(--muted); }
.sec--light .search input { border-color: var(--ink-line); background: #fff; color: var(--ink); }
.hall__list { list-style: none; margin: 0; padding: 0; }
.hall__row { display: grid; grid-template-columns: 70px 1.2fr 1.2fr 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; font-size: 15px; transition: background .3s, padding .4s var(--ease); }
.hall__row:hover { background: rgba(245, 240, 230, .03); padding-left: 10px; }
.hall__row .y { font-size: 12px; font-weight: 800; letter-spacing: .14em; color: var(--gold); }
.hall__row .n { font-family: var(--f-display); font-size: 20px; }
.hall__row .c { color: var(--ivory); }
.hall__row .u { color: var(--muted); font-size: 14px; }
.hall__empty { padding: 30px 0; color: var(--muted); }
@media (max-width: 760px) { .hall__row { grid-template-columns: 52px 1fr; gap: 4px 14px; } .hall__row .c, .hall__row .u { grid-column: 2; } }

/* ---------- Timeline (horizontal) ---------- */
.tl { position: relative; overflow: hidden; background: var(--ink-2); }
.tl__head { padding-top: clamp(84px, 10vw, 150px); }
.tl__track { display: flex; gap: clamp(20px, 3vw, 40px); padding: 70px var(--gutter) clamp(84px, 10vw, 150px); width: max-content; }
.tl__item { position: relative; width: clamp(280px, 30vw, 440px); flex: none; padding-top: 50px; border-top: 1px solid var(--line-2); }
.tl__item::before { content: ''; position: absolute; top: -6px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 6px rgba(216, 178, 94, .15); }
.tl__year { font-family: var(--f-display); font-weight: 200; font-size: clamp(70px, 8vw, 130px); line-height: .9; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1px rgba(245, 240, 230, .5); }
.tl__item:hover .tl__year { color: var(--ivory); -webkit-text-stroke-color: transparent; }
.tl__year { transition: color .6s var(--ease); }
.tl__item h3 { font-family: var(--f-display); font-weight: 400; font-size: 26px; margin: 20px 0 10px; letter-spacing: -.01em; }
.tl__item p { margin: 0; color: var(--muted); font-size: 15px; max-width: 36ch; }
.tl__img { margin-top: 26px; border-radius: 16px; overflow: hidden; aspect-ratio: 16/10; }
.tl__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .8s, transform 1.2s var(--ease); }
.tl__item:hover .tl__img img { filter: none; transform: scale(1.05); }
@media (max-width: 899px) {
  .tl__scroller { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .tl__item { scroll-snap-align: start; width: 82vw; }
}

/* ---------- Reels grid ---------- */
.reels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 60px; }
.reel { position: relative; aspect-ratio: 9/16; border-radius: 20px; overflow: hidden; background: var(--ink-3); transform-style: preserve-3d; }
.reel img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; }
.reel::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(5, 8, 26, .92) 0%, rgba(5, 8, 26, .1) 50%, transparent); }
.reel__meta { position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 2; }
.reel__meta b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 19px; line-height: 1.15; }
.reel__meta span { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; color: var(--muted); font-weight: 600; }
.reel__play { position: absolute; top: 16px; right: 16px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; background: rgba(245, 240, 230, .14); backdrop-filter: blur(8px); display: grid; place-items: center; transition: all .5s var(--ease); }
.reel__play svg { width: 14px; margin-left: 2px; }
.reel:hover img { transform: scale(1.08); }
.reel:hover .reel__play { background: var(--gold); color: var(--ink); transform: scale(1.12); }
.reel:nth-child(even) { transform: translateY(40px); }
@media (max-width: 900px) { .reels { grid-template-columns: repeat(2, 1fr); } }

/* ---------- News cards ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2vw, 30px); }
.ncard { display: flex; flex-direction: column; gap: 18px; }
.ncard__img { position: relative; aspect-ratio: 4/3; border-radius: var(--r); overflow: hidden; background: var(--ink-3); }
.ncard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .8s; filter: saturate(.85); }
.ncard:hover .ncard__img img { transform: scale(1.07); filter: saturate(1.1); }
.ncard__cat { position: absolute; left: 14px; top: 14px; z-index: 2; height: 30px; padding: 0 12px; border-radius: 999px; background: rgba(5, 8, 26, .7); backdrop-filter: blur(8px); color: var(--ivory); font-size: 11px; font-weight: 700; letter-spacing: .1em; display: inline-flex; align-items: center; text-transform: uppercase; }
.ncard__date { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.sec--light .ncard__date { color: var(--indigo); }
.ncard h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(22px, 1.9vw, 28px); line-height: 1.12; margin: 0; letter-spacing: -.015em; transition: color .3s; }
.ncard p { margin: 0; color: var(--muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sec--light .ncard p { color: var(--ink-muted); }
.ncard:hover h3 { color: var(--gold-l); }
.sec--light .ncard:hover h3 { color: var(--indigo); }
.ncard--feat { grid-column: span 2; }
.ncard--feat .ncard__img { aspect-ratio: 16/9; }
.ncard--feat h3 { font-size: clamp(28px, 3vw, 44px); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; margin-bottom: 50px; }
@media (max-width: 960px) { .news-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .news-grid { grid-template-columns: 1fr; } .ncard--feat { grid-column: auto; } }

/* article */
.article { display: grid; grid-template-columns: 1fr 340px; gap: clamp(40px, 6vw, 100px); }
.article__cover { border-radius: var(--r-lg); overflow: hidden; margin-bottom: 50px; max-height: 70vh; }
.article__cover img { width: 100%; height: 100%; object-fit: cover; max-height: 70vh; }
.article__side { position: sticky; top: calc(var(--hdr) + 30px); align-self: start; display: grid; gap: 30px; }
.article__side h4 { margin: 0 0 14px; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.mini { display: grid; grid-template-columns: 74px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
.mini img { width: 74px; height: 74px; object-fit: cover; border-radius: 12px; }
.mini b { font-family: var(--f-display); font-weight: 400; font-size: 16px; line-height: 1.2; display: block; }
.mini span { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }
.mini:hover b { color: var(--gold-l); }
.share { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 960px) { .article { grid-template-columns: 1fr; } .article__side { position: static; } }

/* ---------- Tabs ---------- */
.tabs__list { position: relative; display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 6px; border-radius: 999px; border: 1px solid var(--line); background: rgba(245, 240, 230, .03); max-width: 100%; }
.tabs__btn { position: relative; z-index: 2; height: 48px; padding: 0 22px; border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--muted); transition: color .5s var(--ease); white-space: nowrap; }
.tabs__btn[aria-selected="true"] { color: var(--ink); }
.tabs__btn:hover:not([aria-selected="true"]) { color: var(--ivory); }
.tabs__ink { position: absolute; z-index: 1; top: 6px; left: 0; height: 48px; border-radius: 999px; background: var(--gold-grad); background-size: 200% 100%; transition: transform .7s var(--ease), width .7s var(--ease), height .7s var(--ease), top .7s var(--ease); box-shadow: 0 10px 30px -10px rgba(216, 178, 94, .6); }
.tabs__panel { display: none; }
.tabs__panel.is-active { display: block; }
.tabs--scroll .tabs__list { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
.sec--light .tabs__list { border-color: var(--ink-line); background: #fff; }
.sec--light .tabs__btn { color: var(--ink-muted); }
.sec--light .tabs__btn:hover:not([aria-selected="true"]) { color: var(--ink); }
.sec--light .tabs__ink { background: var(--ink); box-shadow: 0 10px 30px -12px rgba(5, 8, 26, .5); }
.sec--light .tabs__btn[aria-selected="true"] { color: var(--ivory); }
@media (max-width: 700px) { .tabs__list { border-radius: 26px; } .tabs__btn { height: 42px; padding: 0 14px; font-size: 12px; } .tabs__ink { height: 42px; } }

/* ---------- Course page ---------- */
.course { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 6vw, 100px); margin-top: 70px; }
.course__big { font-family: var(--f-display); font-weight: 200; font-size: clamp(110px, 16vw, 260px); line-height: .8; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1px var(--line-2); }
.course__side { display: grid; gap: 22px; align-content: start; }
.panel { border: 1px solid var(--line); border-radius: var(--r); padding: 28px; background: linear-gradient(160deg, rgba(245, 240, 230, .04), rgba(245, 240, 230, .01)); }
.panel h4 { margin: 0 0 16px; font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.panel li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.panel li:last-child { border-bottom: 0; }
.panel li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--emerald); flex: none; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 22px; font-size: 15px; }
.kv dt { color: var(--muted-2); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; padding-top: 3px; }
.kv dd { margin: 0; }
.course__photo { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16/10; margin-top: 50px; }
.course__photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 960px) { .course { grid-template-columns: 1fr; } }

/* ---------- Accordion ---------- */
.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 0; text-align: left; font-family: var(--f-display); font-size: clamp(20px, 2vw, 28px); font-weight: 400; letter-spacing: -.01em; transition: color .3s, padding .5s var(--ease); }
.acc__btn:hover { color: var(--gold-l); padding-left: 10px; }
.acc__ic { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); flex: none; position: relative; transition: all .5s var(--ease); }
.acc__ic::before, .acc__ic::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform .5s var(--ease); }
.acc__ic::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc__item.is-open .acc__ic { background: var(--gold); color: var(--ink); border-color: var(--gold); transform: rotate(180deg); }
.acc__item.is-open .acc__ic::after { transform: translate(-50%, -50%) rotate(0); }
.acc__body { height: 0; overflow: hidden; }
.acc__inner { padding: 0 0 30px; color: var(--muted); max-width: 75ch; }
.acc__inner p { margin: 0 0 1em; }
.acc__inner ul { margin: 0 0 1em; padding-left: 1.2em; }
.acc__inner li::marker { color: var(--gold); }
.sec--light .acc, .sec--light .acc__item { border-color: var(--ink-line); }
.sec--light .acc__inner { color: var(--ink-muted); }
.sec--light .acc__btn:hover { color: var(--indigo); }
.sec--light .acc__ic { border-color: var(--ink-line); }

/* ---------- Schedule (live) ---------- */
.sched { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sched__col { border: 1px solid var(--line); border-radius: var(--r); padding: 24px; position: relative; overflow: hidden; }
.sched__col.is-today { border-color: rgba(216, 178, 94, .5); box-shadow: inset 0 0 0 1px rgba(216, 178, 94, .2); }
.sched__col h4 { margin: 0 0 18px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.slot { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 10px 12px; border-radius: 12px; font-size: 14.5px; position: relative; transition: background .4s; }
.slot time { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13px; }
.slot.r { color: var(--emerald-l); }
.slot.s { color: var(--muted-2); font-size: 13px; }
.slot.now { background: var(--ivory); color: var(--ink); }
.slot.now time { color: var(--ink-muted); }
.slot.now::after { content: 'agora'; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; background: var(--emerald); color: var(--ink); padding: 3px 8px; border-radius: 999px; }
.slot.done { opacity: .45; }
.clock { display: inline-flex; align-items: center; gap: 10px; font-variant-numeric: tabular-nums; font-weight: 700; font-size: 13px; color: var(--ivory); letter-spacing: .06em; }
@media (max-width: 960px) { .sched { grid-template-columns: 1fr; } }

/* ---------- Calculator ---------- */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; border-radius: var(--r-lg); padding: clamp(26px, 4vw, 54px); background: linear-gradient(140deg, var(--ink-3), var(--ink-2) 60%); border: 1px solid var(--line); position: relative; overflow: hidden; }
.calc__inputs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 26px; }
.calc__inputs label { display: grid; gap: 8px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.calc__inputs input { height: 64px; border-radius: 16px; border: 1px solid var(--line-2); background: rgba(5, 8, 26, .4); text-align: center; font-family: var(--f-display); font-size: 26px; outline: none; transition: border-color .3s; width: 100%; }
.calc__inputs input:focus { border-color: var(--gold); }
.calc__out { display: grid; align-content: center; justify-items: start; gap: 6px; }
.calc__ring { width: 180px; height: 180px; position: relative; }
.calc__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.calc__ring circle { fill: none; stroke-width: 6; }
.calc__ring .bg { stroke: var(--line); }
.calc__ring .fg { stroke: url(#gGold); stroke-linecap: round; transition: stroke-dashoffset 1s var(--ease); }
.calc__ring b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-display); font-size: 46px; font-weight: 300; }
.calc__msg { font-size: 15px; color: var(--muted); max-width: 40ch; }
.calc__msg strong { color: var(--ivory); }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } .calc__inputs { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Gallery / albums ---------- */
.albums { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(14px, 2vw, 26px); }
.album { position: relative; border-radius: var(--r); overflow: hidden; grid-column: span 4; aspect-ratio: 4/5; background: var(--ink-3); display: block; }
.album:nth-child(6n+1) { grid-column: span 7; aspect-ratio: 16/11; }
.album:nth-child(6n+2) { grid-column: span 5; aspect-ratio: auto; }
.album img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease), filter .8s; filter: grayscale(.35); }
.album::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(5, 8, 26, .9), rgba(5, 8, 26, .05) 55%); transition: opacity .6s; }
.album__meta { position: absolute; left: 24px; right: 24px; bottom: 22px; z-index: 2; }
.album__meta small { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.album__meta h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(22px, 2.2vw, 34px); line-height: 1.05; margin: 8px 0 0; letter-spacing: -.015em; }
.album__count { position: absolute; top: 18px; right: 18px; z-index: 2; height: 34px; padding: 0 14px; border-radius: 999px; background: rgba(245, 240, 230, .14); backdrop-filter: blur(10px); display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; }
.album:hover img { transform: scale(1.08); filter: none; }
@media (max-width: 860px) { .album, .album:nth-child(6n+1), .album:nth-child(6n+2) { grid-column: span 12; aspect-ratio: 4/3; } }

.mosaic { columns: 3 260px; column-gap: 16px; }
.mosaic button { display: block; width: 100%; margin-bottom: 16px; border-radius: 18px; overflow: hidden; break-inside: avoid; position: relative; }
.mosaic img { width: 100%; transition: transform 1.2s var(--ease), filter .6s; filter: grayscale(.25); }
.mosaic button:hover img { transform: scale(1.05); filter: none; }
.mosaic figcaption { position: absolute; left: 12px; bottom: 12px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; background: rgba(5, 8, 26, .7); padding: 6px 10px; border-radius: 999px; backdrop-filter: blur(8px); }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 9300; background: rgba(5, 8, 26, .96); backdrop-filter: blur(14px); display: none; grid-template-rows: auto 1fr auto; opacity: 0; }
.lb.is-open { display: grid; }
.lb__top { display: flex; justify-content: space-between; align-items: center; padding: 20px var(--gutter); gap: 20px; }
.lb__title { font-family: var(--f-display); font-size: clamp(18px, 2vw, 26px); }
.lb__title small { display: block; font-family: var(--f-ui); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.lb__stage { position: relative; display: grid; place-items: center; overflow: hidden; padding: 0 clamp(16px, 7vw, 120px); touch-action: pan-y; }
.lb__img { max-width: 100%; max-height: calc(100svh - 220px); object-fit: contain; border-radius: 14px; box-shadow: 0 40px 100px rgba(0, 0, 0, .6); user-select: none; }
.lb__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 58px; height: 58px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; background: rgba(5, 8, 26, .5); transition: all .4s var(--ease); z-index: 2; }
.lb__nav:hover { background: var(--ivory); color: var(--ink); }
.lb__nav svg { width: 18px; }
.lb__prev { left: var(--gutter); }
.lb__next { right: var(--gutter); }
.lb__thumbs { display: flex; gap: 8px; padding: 18px var(--gutter) 24px; overflow-x: auto; scrollbar-width: none; justify-content: safe center; }
.lb__thumbs button { flex: none; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; opacity: .4; transition: opacity .3s, transform .4s var(--ease); outline-offset: 2px; }
.lb__thumbs button.on { opacity: 1; transform: translateY(-4px); box-shadow: 0 0 0 2px var(--gold); }
.lb__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.icon-btn { width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: all .4s var(--ease); flex: none; }
.icon-btn:hover { background: var(--ivory); color: var(--ink); transform: rotate(90deg); }
.icon-btn svg { width: 18px; }
@media (max-width: 700px) { .lb__nav { width: 46px; height: 46px; } .lb__prev { left: 8px; } .lb__next { right: 8px; } }

/* ---------- Calendar ---------- */
.cal { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(26px, 4vw, 60px); }
.cal__box { border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(18px, 3vw, 36px); background: linear-gradient(170deg, rgba(245, 240, 230, .035), transparent); }
.cal__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 26px; }
.cal__month { font-family: var(--f-display); font-weight: 300; font-size: clamp(32px, 3.6vw, 54px); letter-spacing: -.03em; line-height: 1; text-transform: capitalize; }
.cal__month small { display: block; font-family: var(--f-ui); font-size: 12px; letter-spacing: .3em; color: var(--gold); font-weight: 700; margin-top: 8px; }
.cal__nav { display: flex; gap: 8px; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal__dow { font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-2); text-align: center; padding-bottom: 10px; }
.cal__day { position: relative; aspect-ratio: 1; border-radius: 14px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; padding: 10px; font-size: 15px; font-variant-numeric: tabular-nums; border: 1px solid transparent; transition: background .3s, border-color .3s, transform .4s var(--ease); text-align: left; }
.cal__day:hover { background: rgba(245, 240, 230, .06); }
.cal__day.out { opacity: .22; }
.cal__day.today { border-color: var(--gold); }
.cal__day.today::before { content: 'hoje'; position: absolute; right: 8px; top: 8px; font-size: 9px; text-transform: uppercase; letter-spacing: .14em; color: var(--gold); font-weight: 800; }
.cal__day.sel { background: var(--ivory); color: var(--ink); transform: scale(1.04); }
.cal__day.wknd { color: var(--muted); }
.cal__dots { display: flex; gap: 4px; flex-wrap: wrap; }
.cal__dots i { width: 7px; height: 7px; border-radius: 50%; }
.t-feriado { --c: #ff7a7a; } .t-evento { --c: var(--gold); } .t-prova { --c: var(--indigo-l); } .t-matricula { --c: var(--emerald-l); } .t-vestibular { --c: #c58bff; } .t-reuniao { --c: #6fd3ff; }
.cal__dots i { background: var(--c); }
.cal__list { display: grid; gap: 10px; align-content: start; }
.evt { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); transition: border-color .3s, background .3s, transform .5s var(--ease); }
.evt:hover { border-color: var(--line-2); background: rgba(245, 240, 230, .03); transform: translateX(4px); }
.evt__d { text-align: center; border-right: 1px solid var(--line); padding-right: 14px; }
.evt__d b { display: block; font-family: var(--f-display); font-size: 30px; font-weight: 300; line-height: 1; }
.evt__d span { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.evt__t { font-size: 15px; font-weight: 600; line-height: 1.3; }
.evt__k { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.evt__k::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.evt__add { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: all .4s var(--ease); }
.evt__add:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.evt__add svg { width: 15px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend span::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
@media (max-width: 960px) { .cal { grid-template-columns: 1fr; } .cal__day { padding: 6px; font-size: 13px; border-radius: 10px; } .cal__day.today::before { display: none; } .cal__dots i { width: 5px; height: 5px; } }

.trad { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.trad__c { border-radius: var(--r); padding: 26px; background: #fff; border: 1px solid var(--ink-line); transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.trad__c:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: 0 30px 60px -30px rgba(5, 8, 26, .3); }
.trad__c b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 24px; letter-spacing: -.01em; margin-bottom: 10px; }
.trad__c p { margin: 0; font-size: 14px; color: var(--ink-muted); }
.trad__c i { font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .2em; color: var(--emerald); }
@media (max-width: 960px) { .trad { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .trad { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%; height: 64px; padding: 24px 20px 8px; border-radius: 16px; border: 1px solid var(--line-2);
  background: rgba(245, 240, 230, .035); color: var(--ivory); outline: none; transition: border-color .3s, background .3s, box-shadow .3s; appearance: none; -webkit-appearance: none;
}
.field select { cursor: pointer; }
.field select option { color: var(--ink); }
.field textarea { height: 160px; resize: vertical; padding-top: 30px; line-height: 1.5; }
.field label { position: absolute; left: 21px; top: 21px; font-size: 15px; color: var(--muted); pointer-events: none; transition: all .35s var(--ease); transform-origin: left top; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--gold); background: rgba(245, 240, 230, .06); box-shadow: 0 0 0 4px rgba(216, 178, 94, .12); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select + label { top: 10px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.field.is-invalid input, .field.is-invalid textarea, .field.is-invalid select { border-color: #ff7a7a; }
.field__err { font-size: 12px; color: #ff9b9b; margin-top: 6px; display: none; }
.field.is-invalid .field__err { display: block; }
.field__eye { position: absolute; right: 12px; top: 12px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); transition: color .3s, background .3s; }
.field__eye:hover { color: var(--ivory); background: rgba(245, 240, 230, .06); }
.field__eye svg { width: 18px; }
.field__hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.caps { display: none; font-size: 12px; color: var(--gold); margin-top: 6px; }
.caps.on { display: block; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; border-radius: 7px; border: 1px solid var(--line-2); flex: none; display: grid; place-items: center; transition: all .3s; margin: 0; }
.check input:checked { background: var(--gold); border-color: var(--gold); }
.check input:checked::after { content: ''; width: 10px; height: 5px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg) translate(1px, -1px); }
.sec--light .field input, .sec--light .field textarea, .sec--light .field select { background: #fff; border-color: var(--ink-line); color: var(--ink); }
.sec--light .field label { color: var(--ink-muted); }
.sec--light .field input:focus + label, .sec--light .field input:not(:placeholder-shown) + label, .sec--light .field textarea:focus + label, .sec--light .field textarea:not(:placeholder-shown) + label, .sec--light .field select + label { color: var(--indigo); }
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } }

/* choice cards */
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: grid; gap: 4px; padding: 18px; border-radius: 16px; border: 1px solid var(--line-2); cursor: pointer; transition: all .4s var(--ease); height: 100%; }
.choice span b { font-family: var(--f-display); font-weight: 400; font-size: 19px; }
.choice span small { font-size: 12px; color: var(--muted); }
.choice input:checked + span { border-color: var(--gold); background: rgba(216, 178, 94, .1); box-shadow: inset 0 0 0 1px var(--gold); }
.choice input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- Wizard (matrícula) ---------- */
.wiz { display: grid; grid-template-columns: 300px 1fr; gap: clamp(30px, 5vw, 80px); }
.wiz__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; align-content: start; position: sticky; top: calc(var(--hdr) + 30px); }
.wiz__steps li { display: flex; gap: 16px; align-items: center; padding: 14px 0; color: var(--muted-2); transition: color .4s; font-weight: 600; }
.wiz__steps li b { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 13px; transition: all .5s var(--ease); flex: none; }
.wiz__steps li.on { color: var(--ivory); }
.wiz__steps li.on b { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.wiz__steps li.ok b { background: var(--emerald); border-color: var(--emerald); color: var(--ink); }
.wiz__bar { height: 2px; background: var(--line); margin: 14px 0 6px; position: relative; overflow: hidden; border-radius: 2px; }
.wiz__bar i { position: absolute; inset: 0; background: var(--gold-grad); transform-origin: left; transform: scaleX(.25); transition: transform .8s var(--ease); }
.wiz__step { display: none; }
.wiz__step.is-active { display: grid; gap: 22px; }
.wiz__step h3 { font-family: var(--f-display); font-weight: 300; font-size: clamp(30px, 3.4vw, 48px); letter-spacing: -.02em; margin: 0; line-height: 1.05; }
.wiz__foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.suggest { display: none; padding: 16px 20px; border-radius: 16px; background: rgba(31, 179, 122, .1); border: 1px solid rgba(31, 179, 122, .35); color: var(--emerald-l); font-size: 14.5px; }
.suggest.on { display: block; }
.review { border: 1px solid var(--line); border-radius: var(--r); padding: 6px 24px; }
.review div { display: grid; grid-template-columns: 180px 1fr; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.review div:last-child { border-bottom: 0; }
.review dt { color: var(--muted); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; padding-top: 2px; }
.review dd { margin: 0; }
.success { text-align: center; display: grid; justify-items: center; gap: 18px; padding: 40px 0; }
.success svg { width: 110px; height: 110px; }
.success path, .success circle { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 900px) { .wiz { grid-template-columns: 1fr; } .wiz__steps { position: static; grid-template-columns: repeat(4, 1fr); } .wiz__steps li span { display: none; } .review div { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 100px); }
.cinfo { display: grid; gap: 0; border-top: 1px solid var(--line); }
.cinfo a, .cinfo div { display: grid; grid-template-columns: 50px 1fr auto; gap: 16px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); transition: padding .5s var(--ease), color .3s; }
.cinfo a:hover { padding-left: 10px; color: var(--gold-l); }
.cinfo .ic { width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; }
.cinfo .ic svg { width: 18px; }
.cinfo small { display: block; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.cinfo b { font-weight: 500; font-size: 17px; }
.map { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 21/9; margin-top: clamp(60px, 7vw, 100px); border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.92) contrast(.9) hue-rotate(180deg); }
.map__pin { position: absolute; left: 24px; bottom: 24px; padding: 18px 22px; border-radius: 18px; background: rgba(5, 8, 26, .82); backdrop-filter: blur(12px); border: 1px solid var(--line); max-width: 320px; }
@media (max-width: 960px) { .contact { grid-template-columns: 1fr; } .map { aspect-ratio: 4/5; } }

/* ---------- Login ---------- */
.login { min-height: 100svh; display: grid; grid-template-columns: 1.05fr 1fr; }
.login__art { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: calc(var(--hdr) + 40px) clamp(24px, 5vw, 80px) 50px; background: radial-gradient(120% 80% at 20% 10%, #1a2370 0%, var(--ink-2) 45%, var(--ink) 100%); }
.login__orb { position: absolute; width: 70vmin; height: 70vmin; right: -20vmin; bottom: -20vmin; border-radius: 50%; background: conic-gradient(from 0deg, var(--emerald), var(--indigo), var(--gold), var(--emerald)); filter: blur(60px); opacity: .45; animation: spin 18s linear infinite; }
.login__ring { position: absolute; border-radius: 50%; border: 1px solid var(--line); left: 50%; top: 55%; transform: translate(-50%, -50%); }
.login__form { display: grid; align-content: center; padding: calc(var(--hdr) + 30px) clamp(24px, 6vw, 110px) 50px; background: var(--ink); position: relative; }
.login__card { width: 100%; max-width: 460px; }
.login__note { margin-top: 26px; padding: 18px 20px; border-radius: 16px; border: 1px dashed var(--line-2); font-size: 13.5px; color: var(--muted); }
.login__demo { margin-top: 12px; display: inline-flex; gap: 10px; align-items: center; color: var(--gold-l); font-weight: 700; font-size: 13px; letter-spacing: .06em; border-bottom: 1px solid currentColor; }
.login__forgot { font-size: 13.5px; color: var(--muted); border-bottom: 1px solid var(--line-2); transition: color .3s; }
.login__forgot:hover { color: var(--gold-l); }
.secure { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-top: 16px; }
.secure svg { width: 14px; color: var(--emerald); }
.flip { perspective: 1600px; }
.flip__in { position: relative; transition: transform 1s var(--ease); transform-style: preserve-3d; }
.flip.is-flipped .flip__in { transform: rotateY(180deg); }
.flip__face { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.flip__back { position: absolute; inset: 0; transform: rotateY(180deg); }
@media (max-width: 960px) { .login { grid-template-columns: 1fr; } .login__art { min-height: 52svh; } }

/* ---------- Portal ---------- */
.portal { padding: calc(var(--hdr) + 40px) 0 100px; }
.portal__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 40px; }
.demo-flag { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 999px; background: rgba(216, 178, 94, .14); color: var(--gold-l); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.tile { grid-column: span 4; border: 1px solid var(--line); border-radius: var(--r); padding: 26px; background: linear-gradient(170deg, rgba(245, 240, 230, .04), rgba(245, 240, 230, .01)); position: relative; overflow: hidden; }
.tile--8 { grid-column: span 8; }
.tile--12 { grid-column: span 12; }
.tile--6 { grid-column: span 6; }
.tile h4 { margin: 0 0 18px; display: flex; justify-content: space-between; align-items: center; font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.tile__big { font-family: var(--f-display); font-weight: 200; font-size: 64px; line-height: 1; letter-spacing: -.04em; }
.grades { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.grades th { text-align: left; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-2); font-weight: 800; padding: 0 10px 12px; }
.grades td { padding: 12px 10px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.grades td:first-child { font-weight: 600; }
.grades .bar { width: 120px; height: 6px; border-radius: 6px; background: var(--line); position: relative; overflow: hidden; }
.grades .bar i { position: absolute; inset: 0; border-radius: inherit; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--emerald), var(--emerald-l)); }
.grades .bar i.warn { background: linear-gradient(90deg, var(--gold-d), var(--gold)); }
.grades .bar i.bad { background: linear-gradient(90deg, #b84a4a, #ff7a7a); }
.pill { display: inline-flex; height: 26px; align-items: center; padding: 0 10px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .08em; white-space: nowrap; }
.pill--ok { background: rgba(31, 179, 122, .16); color: var(--emerald-l); }
.pill--warn { background: rgba(216, 178, 94, .16); color: var(--gold-l); }
.pill--bad { background: rgba(255, 122, 122, .14); color: #ff9b9b; }
.table-scroll { overflow-x: auto; }
.notice { padding: 14px 0; border-top: 1px solid var(--line); }
.notice b { display: block; font-weight: 600; }
.notice span { font-size: 13px; color: var(--muted); }
.notice time { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
@media (max-width: 960px) { .tile, .tile--8, .tile--6 { grid-column: span 12; } }

/* ---------- Institutional ---------- */
.hist { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 110px); align-items: start; }
.hist__sticky { position: sticky; top: calc(var(--hdr) + 40px); }
.hist__quote { font-family: var(--f-display); font-weight: 300; font-style: italic; font-size: clamp(26px, 2.8vw, 40px); line-height: 1.2; letter-spacing: -.015em; margin: 30px 0 0; color: var(--ivory); }
.hist__quote::before { content: '“'; display: block; font-size: 2.4em; line-height: .6; color: var(--gold); }
.sign { display: flex; align-items: center; gap: 16px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.sign__av { width: 54px; height: 54px; border-radius: 50%; background: var(--gold-grad); display: grid; place-items: center; color: var(--ink); font-family: var(--f-display); font-size: 20px; }
.sign small { display: block; color: var(--muted); font-size: 13px; }
.photo-stack { position: relative; aspect-ratio: 4/5; }
.photo-stack figure { position: absolute; margin: 0; border-radius: var(--r); overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); }
.photo-stack figure img { width: 100%; height: 100%; object-fit: cover; }
.photo-stack figure:nth-child(1) { inset: 0 22% 22% 0; }
.photo-stack figure:nth-child(2) { inset: 40% 0 0 34%; border: 6px solid var(--ink); }
.facil { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.facil__c { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 3/4; }
.facil__c img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.facil__c:hover img { transform: scale(1.08); }
.facil__c::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(5, 8, 26, .9), transparent 55%); }
.facil__c div { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 2; }
.facil__c b { font-family: var(--f-display); font-weight: 400; font-size: 26px; display: block; }
.facil__c span { font-size: 13.5px; color: var(--muted); }
@media (max-width: 960px) { .hist { grid-template-columns: 1fr; } .hist__sticky { position: static; } .facil { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .facil { grid-template-columns: 1fr; } }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; text-align: center; }
.cta .h1 { max-width: 16ch; margin-inline: auto; }
.cta__ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 44px; }
.cta__orb { position: absolute; left: 50%; top: 50%; width: 900px; height: 900px; transform: translate(-50%, -50%); border-radius: 50%; border: 1px solid var(--line); pointer-events: none; }
.cta__orb::before, .cta__orb::after { content: ''; position: absolute; inset: 14%; border-radius: 50%; border: 1px solid var(--line); }
.cta__orb::after { inset: 30%; border-style: dashed; animation: spin 60s linear infinite; }

/* ---------- Footer ---------- */
.ftr { position: relative; background: var(--ink); border-top: 1px solid var(--line); padding-top: clamp(70px, 9vw, 130px); overflow: hidden; }
.ftr__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.ftr h4 { margin: 0 0 22px; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ftr ul a { color: var(--muted); transition: color .3s, padding .4s var(--ease); display: inline-block; }
.ftr ul a:hover { color: var(--ivory); padding-left: 6px; }
.ftr__about { color: var(--muted); font-size: 15px; max-width: 44ch; }
.ftr__big { font-family: var(--f-display); font-weight: 200; font-size: clamp(64px, 17vw, 300px); line-height: .8; letter-spacing: -.06em; text-align: center; margin: clamp(60px, 8vw, 120px) 0 0; color: transparent; -webkit-text-stroke: 1px rgba(245, 240, 230, .18); white-space: nowrap; user-select: none; }
.ftr__big span { display: inline-block; }
.ftr__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; padding: 26px 0 34px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted-2); }
.social { display: flex; gap: 10px; margin-top: 24px; }
.social a { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: all .4s var(--ease); }
.social a:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); transform: translateY(-4px); }
.social svg { width: 18px; }
.totop { position: fixed; right: 22px; bottom: 22px; z-index: 800; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: rgba(5, 8, 26, .7); backdrop-filter: blur(10px); opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .5s var(--ease); pointer-events: none; }
.totop.on { opacity: 1; transform: none; pointer-events: auto; }
.totop svg.ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.totop svg.ring circle { fill: none; stroke-width: 2; }
.totop svg.arrow { width: 16px; }
.wa-fab { position: fixed; left: 22px; bottom: 22px; z-index: 800; height: 56px; padding: 0 22px 0 8px; border-radius: 999px; background: var(--emerald); color: var(--ink); display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 12.5px; letter-spacing: .08em; box-shadow: 0 20px 40px -14px rgba(31, 179, 122, .7); transition: transform .5s var(--ease); }
.wa-fab span.ic { width: 40px; height: 40px; border-radius: 50%; background: rgba(5, 8, 26, .14); display: grid; place-items: center; }
.wa-fab svg { width: 20px; }
.wa-fab:hover { transform: translateY(-4px); }
@media (max-width: 960px) { .ftr__grid { grid-template-columns: 1fr 1fr; } .ftr__grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 560px) { .wa-fab .lbl { display: none; } .wa-fab { padding: 0 8px; } }

/* ---------- Toast ---------- */
.toasts { position: fixed; top: calc(var(--hdr) + 12px); right: 16px; z-index: 9600; display: grid; gap: 10px; pointer-events: none; }
.toast { pointer-events: auto; max-width: 360px; padding: 16px 20px; border-radius: 16px; background: var(--ivory); color: var(--ink); font-size: 14px; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .6); display: flex; gap: 12px; align-items: flex-start; }
.toast b { display: block; }
.toast--err { background: #ffdede; }

/* ---------- Misc ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: end; }
.split--top { align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.mt-s { margin-top: 20px; } .mt-m { margin-top: 40px; } .mt-l { margin-top: 70px; } .mt-xl { margin-top: clamp(70px, 9vw, 130px); }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.between { justify-content: space-between; }
.hr { height: 1px; background: var(--line); border: 0; margin: 0; }
.tilt { transform-style: preserve-3d; will-change: transform; }
.img-reveal { clip-path: inset(0 0 0 0); }
.note { font-size: 13px; color: var(--muted-2); }
.sec--light .note { color: var(--ink-muted); }
.badge-obj { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.badge-obj i { width: 10px; height: 10px; border-radius: 50%; background: #f7c600; }
.empty { padding: 60px 0; text-align: center; color: var(--muted); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .grain { display: none; }
}

/* ---------- Fixes / refinements ---------- */
.cursor.is-down { width: 34px; height: 34px; margin: -17px 0 0 -17px; }
.display em .wi, .h1 em .wi, .h2 em .wi, .h3 em .wi {
  background: var(--gold-grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: goldShift 8s ease-in-out infinite alternate;
}
.sec--light .h2 em .wi, .sec--light .h1 em .wi, .sec--ivory .h2 em .wi, .sec--light .h3 em .wi {
  background: linear-gradient(120deg, #2e3192, #1fb37a 70%, #2e3192); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text;
}
em .w { padding-right: .16em; margin-right: -.16em; }
.flip__in { display: grid; }
.flip__face { grid-area: 1 / 1; }
.flip__back { position: static; inset: auto; transform: rotateY(180deg); }
.deck { width: min(320px, 74vw); }
.hero__title { text-shadow: 0 2px 40px rgba(5, 8, 26, .55); }
.display { font-size: clamp(48px, 8.6vw, 150px); }
.lb__desc { display: block; font-family: var(--f-ui); font-size: 13px; color: var(--muted); margin-top: 4px; max-width: 70ch; }
.journey__age span { display: inline-block; min-width: 1.1ch; }
@media (max-width: 899px) { .hero__canvas { opacity: .42; } }
@media (hover: none) { .hero .note { display: none; } }
html, body { overflow-x: clip; }
.page { overflow-x: clip; }
@media (max-width: 600px) {
  .cal__nav .icon-btn { width: 40px; height: 40px; }
  .cal__head { gap: 8px; }
  .cal__box { padding: 16px 12px; }
  .cal__grid { gap: 4px; }
}
.deck { aspect-ratio: 720 / 1010; }
.deck__card img.contain { object-fit: contain; background: #0b1a3a; }
/* descenders (g, j, p, q, ç) não podem ser cortados pela máscara da animação */
.w { padding-bottom: .24em; margin-bottom: -.24em; padding-top: .04em; margin-top: -.04em; }
.wi { padding-bottom: .2em; margin-bottom: -.2em; }
.display em, .h1 em, .h2 em, .h3 em, .gold-text { padding-bottom: .12em; }
