/* ============================================================
   Sunaly Moura — Components
   ============================================================ */

/* ---------- Top bar ---------- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(11,10,8,0.55) 0%, rgba(11,10,8,0) 100%);
  transition: background 0.5s var(--ease), backdrop-filter 0.5s var(--ease);
  color: var(--paper);
}
.topbar.is-scrolled {
  background: rgba(11,10,8,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.topbar.is-light {
  background: rgba(244,239,230,0.92);
  backdrop-filter: blur(14px);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.topbar.is-light .nav-link::before { background: var(--ink); }

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.85;
}
.brand-mark svg { width: 18px; height: 18px; }
.brand-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-wordmark .name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.005em;
}
.brand-wordmark .kicker {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-top: 4px;
}

.nav {
  display: none;
  gap: 36px;
}
@media (min-width: 980px) { .nav { display: flex; } }
.nav-link {
  position: relative;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 4px 0;
}
.nav-link .num {
  opacity: 0.5;
  margin-right: 8px;
}
.nav-link::before {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.5s var(--ease);
}
.nav-link:hover::before { width: 100%; }

.topbar-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--ink);
  border: 1px solid var(--gold);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn:hover { background: var(--gold-2); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: currentColor;
  border: 1px solid currentColor;
}
.btn-ghost:hover { background: currentColor; color: var(--ink); }
.dark .btn-ghost:hover { color: var(--ink); background: var(--paper); border-color: var(--paper); }

.menu-toggle {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border: 1px solid currentColor;
  border-radius: 50%;
}
@media (min-width: 980px) { .menu-toggle { display: none; } }
.menu-toggle span {
  display: block;
  width: 14px; height: 1px;
  background: currentColor;
  position: relative;
}
.menu-toggle span::before {
  content: ""; position: absolute; left: 0; top: -5px;
  width: 14px; height: 1px; background: currentColor;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-top: 100px;
}
.hero-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: end;
  padding: 0 var(--gutter) clamp(40px, 5vw, 80px);
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
}
@media (min-width: 980px) {
  .hero-grid { grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: end; }
}
.hero-title-block { position: relative; }
.hero-meta {
  display: flex;
  gap: 32px;
  margin-bottom: 32px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.hero-meta .dot { color: var(--gold); margin-right: 6px; }
.hero-title {
  font-family: var(--serif);
  font-size: clamp(48px, 8.2vw, 132px);
  line-height: 0.95;
  font-weight: 400;
  letter-spacing: -0.025em;
  color: var(--paper);
  text-wrap: balance;
}
.hero-title .line {
  display: block;
}
.hero-title .gold {
  color: var(--gold);
  font-style: italic;
  font-weight: 300;
}
@keyframes heroRise {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-sub {
  margin-top: 32px;
  max-width: 540px;
  font-family: var(--serif);
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.45;
  color: var(--paper-2);
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.hero-actions {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-portrait {
  position: relative;
  aspect-ratio: 3/4;
  background: var(--ink-2);
  overflow: hidden;
}
.hero-portrait img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(15%) contrast(1.05) brightness(0.95);
  transition: transform 8s var(--ease-out), filter 1s var(--ease);
}
.hero-portrait:hover img { filter: grayscale(0%) contrast(1) brightness(1); transform: scale(1.04); }
.hero-portrait::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(11,10,8,0.4) 100%);
  pointer-events: none;
}
.portrait-caption {
  position: absolute;
  bottom: 24px; left: 24px; right: 24px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.portrait-caption .name {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--paper);
  line-height: 1.1;
}
.portrait-caption .role {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin-top: 4px;
}
.portrait-caption .oab {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--muted-dark);
}

.hero-foot {
  padding: 20px var(--gutter);
  border-top: 1px solid var(--line-dark);
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.hero-foot .scroll-cue {
  display: inline-flex; align-items: center; gap: 10px;
}
.hero-foot .scroll-cue::after {
  content: ""; width: 32px; height: 1px;
  background: var(--gold);
  animation: stretch 2s var(--ease) infinite;
}
@keyframes stretch {
  0%, 100% { transform: scaleX(0.4); transform-origin: left; }
  50% { transform: scaleX(1); transform-origin: left; }
}

/* Marquee */
.marquee {
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  padding: 24px 0;
}
.marquee-track {
  display: flex;
  gap: 64px;
  white-space: nowrap;
  animation: scroll 40s linear infinite;
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 400;
}
.marquee-track .star { color: var(--gold); font-size: 0.6em; vertical-align: middle; margin: 0 24px; }
.marquee-track .italic { font-style: italic; color: var(--paper-2); }
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
