/* PERSIS — shared base styles (tokens, shell, header, menu, footer, buttons) */

@font-face {
  font-family: 'Meticula';
  src: url('fonts/Meticula-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Will & Grace';
  src: url('fonts/WillGrace.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0E1325;            /* Fundo principal Persis */
  --ink-2: #152151;          /* Azul noite */
  --ink-3: #172B7D;          /* Azul profundo */
  --paper: #F3F4F6;          /* Branco suave */
  --paper-2: #E3E5ED;        /* Cinza claro */
  --paper-3: #C0C7E2;        /* Azul claro (texto secundário) */
  --lime: #FAF539;           /* Amarelo Persis (primária) */
  --lime-2: #D4C800;         /* Amarelo hover */
  --blue: #2A4EDE;           /* Azul Persis (secundária) */
  --blue-hover: #4D68D6;     /* Azul forte hover */
  --blue-strong: #1F40C7;    /* Azul intenso */
  --blue-deep: #1935A3;      /* Azul escuro */
  --mute-on-dark: rgba(192, 199, 226, 0.75);
  --mute-on-light: rgba(14, 19, 37, 0.55);
  --hair-on-dark: rgba(243, 244, 246, 0.10);
  --hair-on-light: rgba(14, 19, 37, 0.10);
  --sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Playfair Display', 'Times New Roman', Georgia, serif;
  --display: 'Meticula', 'Plus Jakarta Sans', system-ui, sans-serif;
  --logo: 'Will & Grace', 'Playfair Display', Georgia, serif;
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-in-out-quart: cubic-bezier(0.77, 0, 0.175, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: hidden; }
html { scroll-behavior: auto; }

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 2px; }

/* Preloader */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--ink);
  display: grid;
  place-items: center;
  transition: transform 1s var(--ease-in-out-quart);
}
.preloader.done { transform: translateY(-100%); }
.pre-word {
  font-family: var(--logo);
  font-weight: 400;
  font-size: clamp(64px, 11vw, 128px);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 24px;
  text-align: center;
  color: var(--paper);
}
.pre-word em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  color: var(--mute-on-dark);
}
.pre-count {
  display: block;
  text-align: center;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.24em;
  color: var(--mute-on-dark);
}
.pre-count::after { content: '%'; margin-left: 4px; }

/* Cursor dot */
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--lime);
  border-radius: 50%;
  pointer-events: none;
  z-index: 250;
  transform: translate(-50%, -50%);
  transition: width .25s var(--ease-out-expo), height .25s var(--ease-out-expo), opacity .3s;
  opacity: 0;
  mix-blend-mode: difference;
}
.cursor-dot.active { opacity: 1; }
.cursor-dot.hover { width: 40px; height: 40px; }
@media (max-width: 900px), (hover: none) { .cursor-dot { display: none; } }

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  padding: 22px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  transition: transform .5s var(--ease-out-expo);
}
.site-header.hidden { transform: translateY(-105%); }
.site-header > * { pointer-events: auto; }

.logo {
  font-family: var(--logo);
  font-weight: 400;
  font-size: 40px;
  letter-spacing: -0.01em;
  color: var(--paper);
  display: inline-flex;
  align-items: baseline;
  line-height: 1;
}
.logo em {
  font-family: var(--logo);
  font-style: normal;
  font-weight: 400;
  color: var(--lime);
  letter-spacing: -0.02em;
}
body.light-header .logo,
body.light-header .say-hello,
body.light-header .menu-btn .bars,
body.light-header .menu-btn .bars::before,
body.light-header .menu-btn .bars::after { color: var(--ink); }
body.light-header .menu-btn .bars,
body.light-header .menu-btn .bars::before,
body.light-header .menu-btn .bars::after { background: var(--ink); }
body.light-header .menu-btn { border-color: rgba(14, 19, 37, 0.22); }

.nav-right { display: flex; align-items: center; gap: 26px; }

.say-hello {
  color: var(--lime);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}
.say-hello .arrow {
  display: inline-block;
  transform: rotate(-45deg);
  font-weight: 900;
  transition: transform .3s var(--ease-out-expo);
}
.say-hello:hover .arrow { transform: rotate(-45deg) translate(3px, -3px); }

.menu-btn {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(243, 244, 246, 0.28);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: border-color .25s ease;
}
.menu-btn:hover { border-color: var(--lime); }
.menu-btn .bars { display: block; width: 16px; height: 10px; position: relative; }
.menu-btn .bars::before,
.menu-btn .bars::after {
  content: '';
  position: absolute;
  left: 0;
  width: 16px;
  height: 1.4px;
  background: var(--paper);
  transition: transform .35s var(--ease-in-out-quart);
}
.menu-btn .bars::before { top: 1px; }
.menu-btn .bars::after { top: 7px; }
body.menu-open .menu-btn .bars::before { transform: translateY(3px) rotate(45deg); background: var(--paper); }
body.menu-open .menu-btn .bars::after  { transform: translateY(-3px) rotate(-45deg); background: var(--paper); }
body.menu-open .menu-btn { border-color: rgba(243, 244, 246, 0.28); }

/* Menu overlay */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-101%);
  transition: transform .9s var(--ease-in-out-quart);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
body.menu-open .menu-overlay { transform: translateY(0); }
.menu-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(250, 245, 57, 0.10), transparent 60%),
    radial-gradient(ellipse 30% 40% at 100% 0%, rgba(42, 78, 222, 0.12), transparent 60%);
  pointer-events: none;
}
.menu-inner {
  flex: 1;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  padding: 130px 32px 60px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  position: relative;
}
.menu-nav { display: flex; flex-direction: column; gap: 4px; }
.menu-nav a {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(28px, 3.6vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--paper);
  padding: 4px 0;
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 16px;
  overflow: hidden;
}
.menu-nav a .num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 15px;
  letter-spacing: 0.05em;
  color: var(--mute-on-dark);
  transform: translateY(-6px);
}
.menu-nav a .txt {
  display: inline-block;
  transform: translateY(110%);
  transition: transform .8s var(--ease-out-expo), color .3s ease;
}
.menu-nav a .txt em { font-family: var(--serif); font-style: italic; font-weight: 300; }
body.menu-open .menu-nav a .txt { transform: translateY(0); }
.menu-nav a:hover .txt { color: var(--lime); }
body.menu-open .menu-nav a:nth-child(1) .txt { transition-delay: .3s; }
body.menu-open .menu-nav a:nth-child(2) .txt { transition-delay: .38s; }
body.menu-open .menu-nav a:nth-child(3) .txt { transition-delay: .46s; }
body.menu-open .menu-nav a:nth-child(4) .txt { transition-delay: .54s; }
body.menu-open .menu-nav a:nth-child(5) .txt { transition-delay: .62s; }
body.menu-open .menu-nav a:nth-child(6) .txt { transition-delay: .70s; }
body.menu-open .menu-nav a.active .txt { color: var(--lime); }

.menu-aside {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 40px;
  padding-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s ease .6s, transform .8s var(--ease-out-expo) .6s;
}
body.menu-open .menu-aside { opacity: 1; transform: translateY(0); }
.menu-aside h4 {
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mute-on-dark);
  margin-bottom: 14px;
}
.menu-aside .email {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 28px;
  border-bottom: 1px solid rgba(243, 244, 246, 0.2);
  padding-bottom: 6px;
  display: inline-block;
  transition: color .3s, border-color .3s;
}
.menu-aside .email:hover { color: var(--lime); border-color: var(--lime); }
.menu-aside .socials { display: flex; flex-wrap: wrap; gap: 22px 30px; list-style: none; }
.menu-aside .socials a { font-size: 14px; font-weight: 500; position: relative; }
.menu-aside .socials a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: -4px;
  height: 1px;
  background: var(--lime);
  transition: right .3s var(--ease-out-expo);
}
.menu-aside .socials a:hover { color: var(--lime); }
.menu-aside .socials a:hover::after { right: 0; }
.menu-address { font-size: 14px; line-height: 1.7; color: var(--mute-on-dark); }
.menu-address strong { color: var(--paper); font-weight: 600; }

.menu-footer {
  padding: 20px 32px;
  border-top: 1px solid rgba(243, 244, 246, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute-on-dark);
  gap: 20px;
  flex-wrap: wrap;
}

/* Page-hero (used on inner pages) */
.page-hero {
  position: relative;
  padding: 200px 32px 100px;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}
.page-hero-atmos {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 60% at 50% 130%, rgba(250, 245, 57, 0.10), transparent 60%),
    radial-gradient(ellipse 40% 30% at 100% 0%, rgba(42, 78, 222, 0.14), transparent 60%);
}
.page-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  background: rgba(243, 244, 246, 0.06);
  border: 1px solid rgba(243, 244, 246, 0.14);
  border-radius: 100px;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 30px;
}
.page-eyebrow .dot { width: 6px; height: 6px; background: var(--lime); border-radius: 50%; animation: pulse 2s ease-in-out infinite; }
.page-hero h1 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(52px, 8.4vw, 148px);
  line-height: 0.94;
  letter-spacing: -0.035em;
  text-wrap: balance;
  max-width: 1100px;
}
.page-hero h1 em { font-family: var(--serif); font-style: italic; font-weight: 300; letter-spacing: -0.01em; color: var(--lime); }
.page-hero-lede {
  margin-top: 34px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--mute-on-dark);
  max-width: 620px;
}
.page-hero-lede em { color: var(--lime); font-style: normal; font-weight: 600; }

.page-crumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute-on-dark);
  margin-bottom: 26px;
}
.page-crumbs em { color: var(--lime); font-style: normal; font-weight: 600; }
.page-crumbs span { opacity: 0.4; }

/* Reveals */
.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s ease, transform .9s var(--ease-out-expo);
}
.reveal-up.in { opacity: 1; transform: translateY(0); }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.75); }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Marquee (shared component) */
.marquee {
  background: var(--lime);
  color: var(--ink);
  overflow: hidden;
  padding: 30px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: slide 44s linear infinite;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  gap: 48px;
  will-change: transform;
}
.marquee-track > span {
  display: inline-flex;
  align-items: center;
  gap: 48px;
  padding-right: 48px;
  flex-shrink: 0;
}
.marquee-track em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 26px;
}
@keyframes slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 120px 32px 40px;
  overflow: hidden;
}
.footer-inner { max-width: 1300px; margin: 0 auto; }
.footer-cols {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 80px;
  border-bottom: 1px solid rgba(243, 244, 246, 0.1);
}
.footer-tag {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 28px;
  line-height: 1.35;
  color: var(--paper);
  max-width: 380px;
  letter-spacing: -0.005em;
}
.footer-tag a {
  display: inline-block;
  margin-top: 26px;
  font-family: var(--sans);
  font-style: normal;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--lime);
  border-bottom: 1px solid var(--lime);
  padding-bottom: 4px;
}
.footer-h {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mute-on-dark);
  margin-bottom: 22px;
  font-weight: 700;
}
.footer-cols ul { list-style: none; display: grid; gap: 12px; }
.footer-cols li a {
  font-size: 15px;
  transition: color .3s ease, padding-left .3s var(--ease-out-expo);
  position: relative;
  display: inline-block;
}
.footer-cols li a:hover { color: var(--lime); padding-left: 14px; }
.footer-cols li a::before {
  content: '→';
  position: absolute;
  left: -4px;
  top: 0;
  opacity: 0;
  transition: opacity .3s ease, left .3s var(--ease-out-expo);
}
.footer-cols li a:hover::before { opacity: 1; left: 0; }

.footer-wordmark {
  font-family: var(--logo);
  padding-top: 70px;
  font-weight: 400;
  font-size: clamp(110px, 26vw, 380px);
  letter-spacing: -0.045em;
  line-height: 0.9;
  color: var(--paper);
  user-select: none;
  overflow: hidden;
}
.footer-wordmark em {
  font-family: var(--logo);
  font-style: normal;
  font-weight: 400;
  color: var(--lime);
  letter-spacing: -0.03em;
}
.footer-base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 34px;
  font-size: 12px;
  color: var(--mute-on-dark);
  letter-spacing: 0.02em;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-base .signature em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  color: var(--paper);
}

/* Back-to-top */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  display: grid;
  place-items: center;
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity .35s ease, transform .5s var(--ease-out-expo), background .3s ease;
  border: 1px solid var(--ink);
}
.to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top:hover { background: var(--lime); }

/* Buttons */
.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 32px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 100px;
  transition: transform .3s var(--ease-out-expo), background .3s;
}
.pill-btn:hover { transform: translateY(-3px); background: var(--lime-2); }
.pill-btn .arrow { transform: rotate(-45deg); display: inline-block; font-weight: 900; transition: transform .3s; }
.pill-btn:hover .arrow { transform: rotate(-45deg) translate(2px, -2px); }

.ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 30px;
  border: 1px solid var(--blue);
  color: var(--paper);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 100px;
  transition: background .3s, color .3s, border-color .3s;
}
.ghost-btn:hover { background: var(--blue); color: var(--paper); border-color: var(--blue); }

/* Responsive shared */
@media (max-width: 900px) {
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-tag { grid-column: 1 / -1; }
  .menu-inner { grid-template-columns: 1fr; gap: 40px; padding-top: 110px; }
  .menu-aside { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .site-header { padding: 16px 20px; }
  .page-hero { padding: 140px 20px 80px; }
  .site-footer { padding: 90px 20px 40px; }
  .footer-cols { grid-template-columns: 1fr; gap: 36px; padding-bottom: 60px; }
  .footer-base { flex-direction: column; align-items: flex-start; }
  .say-hello { font-size: 11px; letter-spacing: 0.14em; }
  .nav-right { gap: 14px; }
  .marquee-track { font-size: 19px; gap: 34px; }
  .marquee-track > span { gap: 34px; padding-right: 34px; }
  .menu-footer { padding: 16px 20px; }
  .menu-nav a { font-size: clamp(26px, 7.5vw, 38px); gap: 10px; }
  .menu-aside .email { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track, .page-eyebrow .dot { animation: none !important; }
  .reveal-up { opacity: 1 !important; transform: none !important; }
  * { transition-duration: 0.01ms !important; }
}
