/* ============================================================
   Premium polish styles
   ============================================================ */

/* ----- Read progress bar (top) ----- */
.read-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-bright));
  transform-origin: left center;
  transform: scaleX(0);
  z-index: 100;
  pointer-events: none;
  opacity: 0.85;
}

/* ----- Page transition overlay ----- */
.page-transition {
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, #050b15 0%, #07101e 100%);
  z-index: 200;
  pointer-events: none;
  opacity: 1;
  transition: opacity 380ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.page-transition::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 64px; height: 64px;
  transform: translate(-50%, -50%);
  background: url('assets/brasao-nav.png') center/contain no-repeat;
  opacity: 0;
  transition: opacity 200ms;
}
.page-transition.arrived {
  opacity: 0;
}
.page-transition.leaving {
  opacity: 1;
  pointer-events: auto;
}
.page-transition.leaving::before {
  opacity: 0.9;
  transition: opacity 200ms 100ms;
}

/* ----- Hero title letter reveal ----- */
.hero-title .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.4em);
  animation: charIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes charIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ----- Cursor accent (desktop only) ----- */
@media (pointer: fine) {
  body, body * { cursor: none !important; }
  input, textarea, select { cursor: text !important; }
}
.cursor-accent {
  position: fixed;
  top: 0; left: 0;
  width: 0; height: 0;
  z-index: 150;
  pointer-events: none;
  mix-blend-mode: difference;
}
.cursor-dot {
  position: absolute;
  top: 0; left: 0;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold-bright);
  transform: translate(-50%, -50%);
  transition: width 240ms, height 240ms;
}
.cursor-ring {
  position: absolute;
  top: 0; left: 0;
  width: 38px; height: 38px;
  border: 1px solid rgba(201, 154, 82, 0.5);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 320ms cubic-bezier(0.2, 0.7, 0.2, 1), height 320ms cubic-bezier(0.2, 0.7, 0.2, 1), border-color 240ms, background 240ms;
}
.cursor-accent.hover .cursor-dot {
  width: 0; height: 0;
}
.cursor-accent.hover .cursor-ring {
  width: 56px; height: 56px;
  background: rgba(201, 154, 82, 0.12);
  border-color: var(--gold);
}

/* ----- Cases / proof section ----- */
.cases {
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.cases-head {
  max-width: 720px;
  margin-bottom: 56px;
}
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 880px) { .cases-grid { grid-template-columns: 1fr; } }
.case {
  padding: 40px 36px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--paper);
  transition: background var(--t-med) var(--ease);
}
.case:last-child { border-right: 0; }
@media (max-width: 880px) {
  .case { border-right: 0; padding: 44px 32px; }
  .case:last-child { border-bottom: 0; }
}
.case:hover { background: var(--bg-deep); }
.case-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.case-tag::before {
  content: "";
  width: 16px; height: 1px;
  background: var(--gold);
}
.case-headline {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--gold-deep);
  font-variant-numeric: tabular-nums;
  margin: 0;
}
.case-headline em {
  font-style: italic;
  font-weight: 300;
  display: block;
  font-size: 0.4em;
  letter-spacing: 0.04em;
  color: var(--text-soft);
  margin-top: 6px;
}
.case-body {
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
  flex: 1;
}
.case-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--text-mute);
  text-transform: uppercase;
  padding-top: 18px;
  border-top: 1px dashed var(--line-soft);
}
.case-meta strong {
  color: var(--text);
  font-weight: 500;
}

.cases-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  flex-wrap: wrap;
  gap: 16px;
}
.cases-foot .note {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-mute);
  letter-spacing: 0.05em;
  max-width: 56ch;
}

/* ----- Small-caps eyebrow refinement ----- */
.eyebrow-sc {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow-sc::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}
