/* ============================================================
   Sunaly Moura — Photo-driven enhancements v2
   ============================================================ */

/* ============================================================
   HERO — Grid-based photo composition (predictable, no overflows)
   ============================================================ */
.hero {
  padding-top: 120px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hero-collage {
  flex: 1;
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(40px, 5vw, 80px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 980px) {
  .hero-collage {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 72px;
  }
}

.hero-left {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

/* Watermark removed — was causing overflow issues */
.hero-watermark { display: none !important; }

/* Right column: photo composition + caption plate (flex column) */
.hero-right {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Photo composition: fixed aspect-ratio grid containing the two photos */
.hero-photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  max-height: 70vh;
  display: grid;
  grid-template-columns: 1fr 0.46fr;
  grid-template-rows: 0.62fr 0.38fr;
  gap: 0;
}
@media (max-width: 980px) {
  .hero-photo-wrap { max-height: 64vh; aspect-ratio: 4/5; }
}

/* Caption plate that grounds the photo into the page typography */
.hero-plate {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 2px 0;
  margin-top: 14px;
  border-top: 1px solid var(--line-dark);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.hero-plate-l { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hero-plate .key { color: var(--gold); }
.hero-plate .dash { color: var(--gold); margin: 0 2px; }
.hero-plate-r { color: var(--gold-2); }
@media (max-width: 540px) {
  .hero-plate { font-size: 9px; letter-spacing: 0.16em; }
  .hero-plate-r { display: none; }
}

/* Corner ticks attached to the photo wrap (not the column) */
.hero-tick-tl,
.hero-tick-br {
  position: absolute;
  width: 28px;
  height: 28px;
  pointer-events: none;
  z-index: 5;
}
.hero-tick-tl {
  top: -10px;
  left: -10px;
  border-top: 1px solid var(--gold);
  border-left: 1px solid var(--gold);
}
.hero-tick-br {
  bottom: -10px;
  right: -10px;
  border-bottom: 1px solid var(--gold);
  border-right: 1px solid var(--gold);
}

/* Photo base — clean, embedded, no isolated-square feel */
.hero-photo {
  position: relative;
  overflow: hidden;
  background: var(--ink-2);
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(8%) contrast(1.05) brightness(0.94) saturate(0.94);
  transition: transform 1.4s var(--ease-out), filter 0.8s var(--ease);
}
.hero-photo:hover img { transform: scale(1.04); }

/* Main photo: spans full grid */
.hero-photo--main {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}
.hero-photo--main::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,10,8,0.45) 0%, rgba(11,10,8,0) 35%, rgba(11,10,8,0) 65%, rgba(11,10,8,0.35) 100%);
  pointer-events: none;
}

/* Accent photo: sits on TOP of main's bottom-right corner via z-index */
.hero-photo--accent {
  grid-column: 2;
  grid-row: 2;
  z-index: 2;
  border: 6px solid var(--ink);
  align-self: end;
  justify-self: end;
  width: 100%;
  height: 100%;
}
@media (max-width: 760px) {
  .hero-photo--accent { display: none; }
  .hero-photo--main { grid-column: 1 / 3; grid-row: 1 / 3; }
}

/* Photo caption inside main — top-left, clear of accent */
.hero-photo-cap {
  position: absolute;
  top: 20px; left: 20px; right: 20px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  pointer-events: none;
}
.hero-photo-cap .name {
  font-family: var(--serif);
  font-size: clamp(18px, 1.5vw, 24px);
  line-height: 1.05;
  color: var(--paper);
}
.hero-photo-cap .name em { color: var(--gold); font-weight: 300; }
.hero-photo-cap .role {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin-top: 6px;
}
.hero-photo-cap .frame {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--paper);
  background: rgba(11,10,8,0.5);
  padding: 4px 8px;
  backdrop-filter: blur(6px);
}

/* Seal: absolute, anchored to main's BOTTOM-LEFT corner (away from accent) */
.hero-seal {
  position: absolute;
  left: -28px;
  bottom: -28px;
  width: 96px;
  height: 96px;
  z-index: 4;
}
.hero-seal svg { width: 100%; height: 100%; }
.hero-seal .ring { animation: spin 22s linear infinite; transform-origin: 50% 50%; }
.hero-seal .center {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  fill: var(--gold);
  text-anchor: middle;
  dominant-baseline: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 760px) {
  .hero-seal { display: none; }
}

/* Headline tweaks for collage variant */
.hero-title {
  text-wrap: balance;
  font-size: clamp(44px, 7vw, 116px);
}
.hero-title .gold-italic {
  color: var(--gold);
  font-style: italic;
  font-weight: 300;
}

/* ============================================================
   MANIFESTO — photo-integrated spread
   ============================================================ */
.manifesto { padding: clamp(80px, 10vw, 140px) 0; }
.manifesto .container {
  grid-template-columns: 1fr;
  gap: 64px;
  align-items: start;
}
@media (min-width: 900px) {
  .manifesto .container {
    grid-template-columns: 0.85fr 1fr;
    gap: 96px;
  }
}

.manifesto-photo {
  position: relative;
  aspect-ratio: 3/4;
  background: var(--ink-2);
  overflow: hidden;
}
.manifesto-photo img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(20%) contrast(1.03) sepia(0.05);
}
.manifesto-photo .frame-num {
  position: absolute;
  top: 16px; left: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--paper);
  background: rgba(11,10,8,0.7);
  padding: 6px 10px;
  backdrop-filter: blur(6px);
  z-index: 2;
}
.manifesto-photo .frame-cap {
  position: absolute;
  bottom: 16px; left: 16px; right: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-2);
  z-index: 2;
}
.manifesto-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(11,10,8,0.6) 100%);
  pointer-events: none;
}
/* Editorial corner ticks — consistent with hero treatment */
.manifesto-photo::before {
  content: "";
  position: absolute;
  top: -10px; left: -10px;
  width: 28px; height: 28px;
  border-top: 1px solid var(--gold);
  border-left: 1px solid var(--gold);
  z-index: 3;
}
/* Wrapper to host the bottom-right tick + plate */
.manifesto-photo-wrap {
  position: relative;
}
.manifesto-photo-wrap::after {
  content: "";
  position: absolute;
  bottom: 50px; right: -10px;
  width: 28px; height: 28px;
  border-bottom: 1px solid var(--gold);
  border-right: 1px solid var(--gold);
  z-index: 3;
  pointer-events: none;
}
.manifesto-photo-plate {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 2px 0;
  margin-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.manifesto-photo-plate .key { color: var(--gold-deep); }

.manifesto-text {
  position: relative;
}
.manifesto-quote {
  font-size: clamp(28px, 3.2vw, 48px);
}
.manifesto-quote::before {
  font-size: 5em;
  top: -0.25em;
  left: -0.4em;
}

/* Caption italics flourish */
.handwritten {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.1;
  color: var(--gold-deep);
  letter-spacing: -0.005em;
  display: inline-block;
  position: relative;
}
.handwritten::before {
  content: "—";
  margin-right: 12px;
  color: var(--gold);
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.4em;
  vertical-align: middle;
}

/* ============================================================
   ÁREAS — sticky photo column variant
   ============================================================ */
.areas .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 980px) {
  .areas .container {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 80px;
    align-items: start;
  }
}

.areas-photo {
  position: relative;
  aspect-ratio: 3/4;
  background: var(--ink-2);
  overflow: hidden;
}
@media (min-width: 980px) {
  .areas-photo {
    position: sticky;
    top: 120px;
    aspect-ratio: 3/4.2;
  }
}
.areas-photo-stack {
  position: relative;
  width: 100%; height: 100%;
}
.areas-photo-stack img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  filter: grayscale(15%) contrast(1.04);
  transform: scale(1.04);
}
.areas-photo-stack img.is-active {
  opacity: 1;
  transform: scale(1);
}
.areas-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(11,10,8,0.5) 100%);
  pointer-events: none;
}
.areas-photo-cap {
  position: absolute;
  bottom: 24px; left: 24px; right: 24px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.areas-photo-cap .ttl {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.1;
  color: var(--paper);
  font-style: italic;
  font-weight: 300;
}
.areas-photo-cap .idx {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--gold-2);
}

.areas-photo-rot {
  position: absolute;
  top: 24px; left: 24px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper);
  background: rgba(11,10,8,0.45);
  padding: 6px 10px;
  backdrop-filter: blur(6px);
}

/* Hide the old floating preview on this layout */
.area-preview { display: none !important; }

/* Make areas list a bit tighter when paired with sticky photo */
.areas-list .area-title { font-size: clamp(28px, 3.6vw, 56px); }

/* ============================================================
   EQUIPE — magazine spread w/ giant gold numerals + editorial framing
   ============================================================ */
.equipe { padding: clamp(100px, 12vw, 180px) 0; overflow: hidden; }
.equipe-grid {
  gap: 80px !important;
  position: relative;
  row-gap: 96px !important;
}
@media (min-width: 900px) {
  .equipe-grid { grid-template-columns: 1fr 1fr; gap: 80px !important; }
  .equipe-grid .member:nth-child(2) { padding-top: 64px; }
}

.member { position: relative; gap: 24px; }
.member-photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  z-index: 1;
}
.member-photo .frame-num { display: none; }

/* Editorial corner ticks on each member photo */
.member-photo::before,
.member-photo::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  z-index: 4;
  pointer-events: none;
}
.member-photo::before {
  top: -10px; left: -10px;
  border-top: 1px solid var(--gold);
  border-left: 1px solid var(--gold);
}
.member-photo::after {
  bottom: -10px; right: -10px;
  border-bottom: 1px solid var(--gold);
  border-right: 1px solid var(--gold);
}

/* Caption plate below each member photo */
.member-plate {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 0 0;
  margin-top: 0;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.member-plate .key { color: var(--gold-deep); }
.member-plate .num { color: var(--gold); }

/* Giant gold numeral — contained within member, doesn't bleed outside */
.member-numeral {
  position: absolute;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(120px, 14vw, 200px);
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: var(--gold);
  opacity: 0.55;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.member:nth-child(1) .member-numeral { top: -10px; right: 12px; }
.member:nth-child(2) .member-numeral { top: -10px; left: 12px; }

.member-body { position: relative; z-index: 1; padding-top: 8px; }

/* Italic role label */
.member-role-italic {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.1;
  color: var(--gold-deep);
  margin-bottom: 4px;
}

.member-name {
  font-size: clamp(36px, 4vw, 56px);
  line-height: 0.98;
}
.member-name .surname {
  display: block;
  font-style: italic;
  font-weight: 300;
  color: var(--gold-deep);
}

/* Quote pulled from each lawyer */
.member-quote {
  margin-top: 24px;
  border-left: 1px solid var(--gold);
  padding: 8px 0 8px 20px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.45;
  color: var(--ink);
  max-width: 420px;
}

/* Tiny vertical OAB tab */
.oab-tab {
  position: absolute;
  top: 0; right: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  z-index: 3;
}

/* Float fact card overlapping photo bottom-right — flush so it doesn't clip mobile */
.member-fact {
  position: absolute;
  bottom: 16px;
  right: 16px;
  z-index: 3;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 14px 18px;
  max-width: 200px;
  box-shadow: 0 18px 40px rgba(11,10,8,0.18);
}
.member-fact .k {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
}
.member-fact .v {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1;
  color: var(--ink);
  margin-top: 4px;
}
.member-fact .v em { color: var(--gold-deep); font-style: italic; font-weight: 300; }

/* ============================================================
   BASTIDORES — horizontal scroll gallery
   ============================================================ */
.bastidores {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(100px, 12vw, 180px) 0 0;
  overflow: hidden;
}
.bastidores .container { padding-bottom: clamp(60px, 8vw, 100px); }

.bastidores-scroll {
  display: flex;
  gap: 28px;
  padding: 0 var(--gutter) clamp(80px, 10vw, 140px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--gutter);
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
}
.bastidores-scroll::-webkit-scrollbar { height: 4px; }
.bastidores-scroll::-webkit-scrollbar-thumb { background: var(--gold); }
.bastidores-scroll::-webkit-scrollbar-track { background: var(--line-dark); }

.bastidor {
  flex: 0 0 auto;
  width: clamp(280px, 32vw, 460px);
  aspect-ratio: 3/4;
  position: relative;
  overflow: hidden;
  scroll-snap-align: start;
  background: var(--ink-2);
}
.bastidor:nth-child(odd) { transform: translateY(40px); }
.bastidor img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(12%) contrast(1.05);
  transition: transform 1.2s var(--ease-out);
}
.bastidor:hover img { transform: scale(1.05); }
.bastidor::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(11,10,8,0.55) 100%);
  pointer-events: none;
  z-index: 1;
}
/* Editorial corner ticks (inside photo bounds) */
.bastidor::before {
  content: "";
  position: absolute;
  top: 12px; left: 12px;
  width: 22px; height: 22px;
  border-top: 1px solid var(--gold);
  border-left: 1px solid var(--gold);
  z-index: 2;
  pointer-events: none;
}
.bastidor-cap {
  position: absolute;
  bottom: 20px; left: 20px; right: 20px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.bastidor-cap .ttl {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 22px;
  line-height: 1.05;
  color: var(--paper);
}
.bastidor-cap .num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--gold-2);
}

/* Bastidores marquee subtitle */
.bastidores-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(48px, 8vw, 120px);
  line-height: 1;
  color: var(--paper);
  margin-top: 12px;
  animation: scroll 50s linear infinite;
}
.bastidores-track .accent { color: var(--gold); font-style: normal; }

/* ============================================================
   Voices — add subtle photo backdrop
   ============================================================ */
.voices {
  position: relative;
  overflow: hidden;
}
.voices::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('assets/sunaly-3.jpeg') center/cover no-repeat;
  opacity: 0.1;
  filter: grayscale(40%) contrast(1.1);
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent 0%, black 30%, black 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 30%, black 70%, transparent 100%);
}
.voices .container { position: relative; z-index: 1; }

/* ============================================================
   Stats — make stat number colored gold accent
   ============================================================ */
.stat-num { display: flex; align-items: baseline; gap: 4px; }

/* ============================================================
   Contato — photo strip
   ============================================================ */
.contato { padding-top: clamp(100px, 12vw, 180px); }
.contato-grid { align-items: start; }
.contato::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-deep), transparent);
}

/* ============================================================
   Floating index tab (left side, position indicator)
   ============================================================ */
.section-index {
  position: fixed;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: none;
  flex-direction: column;
  gap: 14px;
  pointer-events: auto;
  mix-blend-mode: difference;
  color: var(--paper);
}
@media (min-width: 1100px) { .section-index { display: flex; } }
.section-index a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 4px 0;
  opacity: 0.5;
  transition: opacity 0.3s var(--ease);
}
.section-index a::before {
  content: "";
  display: block;
  width: 14px;
  height: 1px;
  background: currentColor;
  transition: width 0.4s var(--ease), background 0.4s var(--ease);
}
.section-index a:hover, .section-index a.is-active { opacity: 1; }
.section-index a.is-active::before {
  width: 36px;
  background: var(--gold);
}
.section-index a.is-active .label { color: var(--gold); }
.section-index a .num { color: var(--muted); margin-right: 0; }
.section-index a .label { transition: color 0.3s var(--ease); }
