/* ============================================================
   MARIA BRASIL — MODERN EDITORIAL LAYER (v1)
   Loaded after mb.css. Bold asymmetry, dramatic type scale,
   outline numerals, hairline rhythm, magazine feel.
   ============================================================ */

:root {
  --maxw: 1280px;
  --line: rgba(21,18,15,0.10);
  --line-strong: rgba(21,18,15,0.18);
}

/* generous, varied vertical rhythm */
.section { padding-block: clamp(96px, 16vh, 230px); }

/* a hairline + running index/label at the top of major sections */
.sec-rule {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px;
  padding-bottom: clamp(28px, 4vh, 52px); margin-bottom: clamp(40px, 6vh, 80px);
  border-bottom: 1px solid var(--line);
}
.sec-rule .sec-no { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.2em; color: var(--accent); }
.sec-rule .sec-name { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--ink-faint); justify-self: center; }
.sec-rule .sec-meta { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; color: var(--ink-faint); justify-self: end; }

/* ============================================================
   CONTINUOUS BACKGROUND FIELD (single fixed layer) — no seams
   ============================================================ */
html { background: #F4F1EC; }
body { background: transparent; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(85% 65% at 86% 4%, color-mix(in oklab, var(--accent) 32%, transparent), transparent 66%),
    radial-gradient(80% 65% at 8% 98%, color-mix(in oklab, #F2CE7E 42%, transparent), transparent 68%),
    radial-gradient(70% 55% at 50% 46%, color-mix(in oklab, var(--accent) 18%, transparent), transparent 72%),
    #F4F1EC;
}
/* dither layer kills gradient banding (the faint "lines") */
.grain { opacity: 0.09 !important; }
.press, .sobre, .traj2, .tedx, .livros, .newsletter, .contato, .footer { background: transparent !important; }
.tedx { overflow: visible !important; }
.footer { border-top: none !important; }

/* ============================================================
   SOBRE — asymmetric editorial statement
   ============================================================ */
.sobre .wrap { display: block; }
.sobre-intro { text-align: center; max-width: none; margin: 0 auto clamp(44px, 7vh, 96px); align-items: center; gap: clamp(18px, 2.6vh, 30px); }
.sobre-big {
  font-size: clamp(36px, 6.2vw, 96px) !important; line-height: 0.94 !important; letter-spacing: -0.045em !important;
  max-width: 18ch; text-wrap: balance; text-align: center;
}
.sobre-sub-line {
  font-size: clamp(22px, 2.6vw, 38px) !important; line-height: 1.32; letter-spacing: -0.02em;
  max-width: 46ch; color: var(--ink) !important; margin-top: clamp(8px, 2vh, 20px); text-align: center;
}
.sobre-grid { grid-template-columns: 0.82fr 1.18fr; align-items: center; gap: clamp(40px, 5vw, 84px); }
.sobre-portrait { width: 100%; height: auto; }
.sobre-portrait image-slot { width: 100% !important; height: auto !important; aspect-ratio: 488 / 732; display: block; border-radius: 16px; }
.sobre-photo { width: 100%; height: auto; aspect-ratio: 2001 / 3000; object-fit: cover; object-position: center 30%; transform: scale(1.26); display: block; border-radius: 16px; }
.sobre-portrait { overflow: hidden; border-radius: 16px; }
/* credential statements: uniform size, no hairlines */
.sobre-text { gap: clamp(18px, 2.4vh, 28px) !important; padding-bottom: 6px; }
.sobre-body {
  font-size: clamp(19px, 1.65vw, 25px) !important; line-height: 1.5; color: var(--ink-dim) !important;
  padding: 0; margin: 0; border-top: none; position: relative;
}
.sobre-body:first-child { border-top: none; padding-top: 0; color: var(--ink-dim) !important; font-size: clamp(19px, 1.65vw, 25px) !important; letter-spacing: -0.005em; }

/* ============================================================
   PRESS — floating glass capsule with gray logos (bobbin-style)
   ============================================================ */
.press {
  position: relative;
  padding-block: clamp(48px, 8vh, 96px) !important;
}
.press::before { display: none; }
.press .wrap { position: relative; z-index: 1; }
.press .logo-row {
  gap: clamp(16px, 2.4vw, 36px) !important; flex-wrap: nowrap;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(26px) saturate(1.25); -webkit-backdrop-filter: blur(26px) saturate(1.25);
  border: 1px solid rgba(255,255,255,0.42);
  box-shadow: 0 14px 36px rgba(21,18,15,0.06), inset 0 1px 0 rgba(255,255,255,0.6);
  border-radius: 100px; padding: clamp(9px, 1.1vw, 14px) clamp(18px, 2.4vw, 34px);
  max-width: max-content; margin-inline: auto; margin-top: clamp(24px, 4vh, 56px);
}
/* white logos → lighter gray on the translucent glass */
.press-logo { filter: invert(1) grayscale(1) brightness(0.72) contrast(1); opacity: 0.36; transition: opacity .25s; }
.press-logo-link { opacity: 1 !important; }
.press-logo-link:hover .press-logo { opacity: 0.6; }
@media (max-width: 640px){ .press .logo-row { flex-wrap: wrap; border-radius: 34px; } }
/* SOBRE — frosted glass over a soft contained gradient (bobbin-style) */
.sobre {
  position: relative;
  padding-top: clamp(24px, 3vh, 48px) !important;
}
.sobre-card {
  position: relative; margin-top: clamp(8px, 2vh, 24px);
  background: rgba(255,255,255,0.28);
  backdrop-filter: blur(40px) saturate(1.5); -webkit-backdrop-filter: blur(40px) saturate(1.5);
  border-radius: 34px; padding: clamp(28px, 3.4vw, 60px);
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: 0 40px 100px rgba(21,18,15,0.14), inset 0 1px 0 rgba(255,255,255,0.9), inset 0 -1px 0 rgba(255,255,255,0.25);
}
.sobre-card .sobre-grid { align-items: center; }
.sobre-photo, .sobre-portrait { border-radius: 24px; }
.sobre-portrait { box-shadow: 0 30px 70px rgba(21,18,15,0.28); }

/* Formação box — deeper frosted glass nested in the card */
.fm-box {
  margin-top: clamp(20px, 3vh, 34px); padding: clamp(24px, 2.6vw, 38px);
  border-radius: 22px; color: var(--ink);
  background: rgba(255,255,255,0.22);
  backdrop-filter: blur(24px) saturate(1.4); -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.65);
  box-shadow: 0 10px 40px rgba(21,18,15,0.08), inset 0 1px 0 rgba(255,255,255,0.7);
  display: flex; flex-direction: column; gap: 16px;
}
.fm-box-tag { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); }
.fm-box-item { font-size: clamp(15px, 1.15vw, 18px); line-height: 1.5; color: var(--ink); margin: 0; }
.fm-box-item strong { font-weight: 700; color: var(--ink); }
@media (max-width: 860px){ .sobre-grid { grid-template-columns: 1fr; gap: 36px; } }

/* ============================================================
   FORMAÇÃO — discreet, refined credential strip
   ============================================================ */
.formacao2 { padding-block: clamp(56px, 9vh, 120px) !important; }
.formacao2 .flow-kicker { font-size: 12px !important; }
.formacao2 .fm-list {
  margin-top: clamp(26px, 4vh, 44px) !important; border-bottom: none !important;
  display: grid !important; grid-template-columns: 1fr 1fr !important; gap: clamp(28px, 5vw, 80px) !important;
}
.fm-row {
  display: block !important; grid-template-columns: none !important;
  padding: clamp(20px, 3vh, 28px) 0 0 !important; border-top: 1px solid var(--line) !important;
}
.fm-index {
  display: inline-block; font-family: var(--font-mono) !important; font-weight: 400 !important; font-style: normal !important;
  -webkit-text-stroke: 0 !important; text-stroke: 0 !important; color: var(--accent) !important;
  font-size: 12px !important; letter-spacing: 0.2em !important; line-height: 1 !important; margin-bottom: 14px;
}
.fm-stmt {
  font-size: clamp(16px, 1.35vw, 20px) !important; line-height: 1.5 !important; letter-spacing: -0.01em !important;
  font-weight: 400; color: var(--ink-dim) !important; max-width: none !important;
}
.fm-stmt strong { font-weight: 700; color: var(--ink); }
@media (max-width: 700px){
  .formacao2 .fm-list { grid-template-columns: 1fr !important; gap: 0 !important; }
}

/* ============================================================
   LIDERANÇA — editorial horizontal cards with big index
   ============================================================ */
.traj2 {
  padding-block: clamp(48px, 7vh, 96px) !important;
  position: relative;
}
.traj2-card {
  background: #fff; border-radius: 32px; padding: clamp(30px, 3.6vw, 60px);
  box-shadow: 0 40px 100px rgba(21,18,15,0.10), 0 2px 6px rgba(21,18,15,0.04);
  border: 1px solid rgba(21,18,15,0.05);
}
/* neutralize the track's full-bleed inside the card + fit as grid */
.traj2-card .traj2-track {
  margin-inline: 0 !important; padding-inline: 0 !important;
  display: grid !important; grid-template-columns: 0.82fr 1.08fr 1fr; gap: clamp(28px, 3vw, 52px); overflow: visible !important;
}
.traj2-card .t2-panel { flex: none !important; }
.traj2-card .t2-photo { align-self: start; }
.traj2-card .t2-photo-img { height: auto !important; aspect-ratio: 43 / 70; min-height: 0; }
@media (max-width: 860px){
  .traj2-card .traj2-track { grid-template-columns: 1fr; }
}
.traj2-head { align-items: flex-end; }
.traj2 .flow-kicker { font-size: clamp(22px, 3vw, 44px) !important; font-family: var(--font-sans) !important; font-weight: 700; letter-spacing: -0.03em !important; text-transform: none !important; color: var(--ink) !important; gap: 16px; }
.traj2 .flow-kicker .k-dot { display: none; }
.traj2-head { justify-content: flex-start; }
.t2-panel:not(.t2-photo) {
  border-top: 2px solid var(--ink) !important; padding-top: clamp(22px, 3vh, 34px) !important;
  display: flex; flex-direction: column;
}
.t2-tag {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent) !important; margin-bottom: clamp(20px, 4vh, 40px) !important;
}
.t2-text { font-size: clamp(18px, 1.55vw, 26px) !important; line-height: 1.34 !important; letter-spacing: -0.02em; }
.t2-sub { margin-top: clamp(24px, 3.4vh, 40px); padding-top: clamp(22px, 3vh, 34px); border-top: 2px solid var(--ink); }
.t2-photo image-slot { height: clamp(500px, 70vh, 740px) !important; border-radius: 18px; filter: grayscale(1); }

/* affiliations: single row, equalized sizes */
.lid-affil { gap: clamp(24px, 3.5vw, 56px) !important; flex-wrap: nowrap !important; }
.lid-logo { flex: 1 1 0; justify-content: center; }
.lid-affil .lid-logo img { height: clamp(26px, 3vw, 40px) !important; max-width: 100%; object-fit: contain; }
.lid-affil .lid-logo:nth-child(3) img, .lid-affil .lid-logo:nth-child(6) img { height: clamp(34px, 3.9vw, 52px) !important; }
@media (max-width: 700px){ .lid-affil { flex-wrap: wrap !important; } }

/* ============================================================
   LIVROS — gallery, big covers, dramatic titles
   ============================================================ */
.livros { padding-top: clamp(30px, 4vh, 64px) !important; }
.livros-title { font-size: clamp(34px, 5.4vw, 86px) !important; line-height: 0.98 !important; letter-spacing: -0.04em !important; max-width: 16ch; }
.books-feature { gap: clamp(70px, 12vh, 150px) !important; margin-top: clamp(48px, 7vh, 88px) !important; }
.book { align-items: center; gap: clamp(40px, 7vw, 120px) !important; }
.book .cover image-slot { height: clamp(360px, 50vw, 560px) !important; box-shadow: 0 50px 110px rgba(21,18,15,0.28) !important; }
.book h3 { font-size: clamp(30px, 5vw, 76px) !important; line-height: 0.98 !important; letter-spacing: -0.04em !important; margin-top: 12px !important; }
.book .byear { font-size: 14px !important; letter-spacing: 0.22em !important; }
.book p { font-size: clamp(16px, 1.25vw, 21px) !important; line-height: 1.5 !important; margin-top: 24px !important; max-width: 50ch; }
/* SAIBA MAIS — glass capsule (echoes the book page "compre aqui") */
.book .blink {
  margin-top: clamp(28px, 3vh, 38px) !important;
  display: inline-flex !important; align-items: center; gap: 9px !important;
  padding: 13px 32px !important; border-radius: 999px !important;
  font-family: var(--font-sans) !important; font-size: 15px !important; font-weight: 500 !important;
  letter-spacing: 0 !important; text-transform: none !important; color: var(--ink) !important;
  background: rgba(255,255,255,0.26);
  backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3);
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 14px 36px rgba(21,18,15,0.08), inset 0 1px 0 rgba(255,255,255,0.7);
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
}
.book .blink:hover { gap: 12px !important; transform: translateY(-2px); background: rgba(255,255,255,0.42); box-shadow: 0 18px 44px rgba(21,18,15,0.12), inset 0 1px 0 rgba(255,255,255,0.85); }
/* reversed book (O Discurso do Réu) — title & text right-aligned to the button */
.book--rev .book-meta { text-align: right !important; align-items: flex-end !important; }
.book--rev .book-meta p { margin-left: auto !important; }
.book--rev .book-meta h3, .book--rev .book-meta .byear { text-align: right !important; }

/* ============================================================
   TEDX — bigger, more dramatic
   ============================================================ */
.tedx { padding-block: clamp(110px, 18vh, 240px); }
.tedx::before { display: none !important; }
.tedx-inner { color: var(--ink) !important; }
.tedx .talk-source { color: var(--accent) !important; }
.tedx-meta { color: var(--ink-dim) !important; }
/* the question in plain black letters, no box */
.tedx-title { display: inline-block; background: transparent; padding: 0; border-radius: 0; box-shadow: none; }
.tedx-q { font-size: clamp(28px, 4.6vw, 68px) !important; line-height: 1.0 !important; letter-spacing: -0.045em !important; color: var(--ink) !important; white-space: nowrap; }
.tedx-q .serif { color: var(--accent) !important; }
.tedx-logo img { height: clamp(48px, 6vw, 84px) !important; }
.tedx-player { box-shadow: 0 40px 100px rgba(21,18,15,0.18) !important; border: 1px solid rgba(255,255,255,0.5) !important; }

/* ============================================================
   NEWSLETTER — editorial dark band
   ============================================================ */
.book-img { width: 100%;height: clamp(300px, 38vw, 480px); object-fit: cover; object-position: 8% center; display: block; border-radius: 12px; box-shadow: 0 40px 90px rgba(21,18,15,0.26); transition: transform .3s ease, box-shadow .3s ease; }
.nav-menu { display: flex; align-items: center; flex-wrap: nowrap; flex-shrink: 0; gap: clamp(14px, 1.5vw, 26px); margin-right: clamp(8px, 1.4vw, 22px); }
.nav-item { font-size: 15px; letter-spacing: -0.01em; color: inherit; opacity: 0.86; transition: opacity .2s, color .2s; white-space: nowrap; }
.nav-item:hover { opacity: 1; color: var(--accent); }
@media (max-width: 1040px){ .nav-menu { display: none; } }
.book--rev .book-img { object-position: center center; transform: scale(1.12); }
.book .cover { overflow: hidden; border-radius: 12px; }
.book .cover[data-tilt]:hover .book-img { box-shadow: 0 50px 110px rgba(21,18,15,0.34); }
.nl-card {
  padding: clamp(26px, 3vw, 48px) !important; border-radius: 26px !important; align-items: center;
  max-width: 900px; margin-inline: auto;
  background: #000 !important;
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  box-shadow: 0 30px 80px rgba(21,18,15,0.22) !important;
}
.nl-desc { font-size: clamp(19px, 2vw, 30px) !important; line-height: 1.2 !important; letter-spacing: -0.02em; color: #fff !important; max-width: 20ch !important; font-weight: 400; }
.nl-visual img { width: clamp(120px, 15vw, 176px) !important; }

/* ============================================================
   CONTATO — oversized headline
   ============================================================ */
.contato-title { font-size: clamp(30px, 4.6vw, 64px) !important; line-height: 0.98 !important; letter-spacing: -0.05em !important; max-width: 16ch; margin-inline: auto; }
.contact-form { margin-top: clamp(56px, 9vh, 90px) !important; }

/* ============================================================
   PRESS — a touch more presence
   ============================================================ */
.press { padding-block: clamp(48px, 7vh, 88px); }

/* subtle: lift the section labels' first letter rhythm on mobile */
@media (max-width: 600px){
  .sobre-big { font-size: clamp(34px, 10vw, 56px) !important; }
  .fm-stmt { font-size: clamp(22px, 7vw, 34px) !important; }
  .tedx-q { font-size: clamp(28px, 8vw, 44px) !important; }
  .contato-title { font-size: clamp(38px, 13vw, 60px) !important; }
  .livros-title { font-size: clamp(32px, 11vw, 52px) !important; }
}

/* ============================================================
   MOBILE OPTIMIZATION PASS
   ============================================================ */
@media (max-width: 720px){
  /* one-column stacks */
  .sobre-grid { grid-template-columns: 1fr !important; gap: 26px !important; }
  .sobre-photo { height: auto !important; }
  .sobre-photo { aspect-ratio: 3/4; }
  .sobre-card { padding: clamp(20px, 5vw, 30px) !important; border-radius: 24px !important; }
  .traj2-card { padding: clamp(20px, 5vw, 32px) !important; border-radius: 24px !important; }
  .traj2-card .traj2-track { grid-template-columns: 1fr !important; gap: 30px !important; }
  .traj2-card .t2-photo-img { height: clamp(300px, 80vw, 460px) !important; min-height: 0 !important; }
  .book, .book--rev { grid-template-columns: 1fr !important; gap: 22px !important; }
  .book--rev .cover { order: 0 !important; }
  .book--rev .book-meta { order: 0 !important; text-align: left !important; }
  .book--rev .book-meta .blink { margin-left: 0 !important; }
  .book-img { height: clamp(300px, 70vw, 440px) !important; }
  .contact-form { grid-template-columns: 1fr !important; }
  /* newsletter stacks */
  .nl-card { grid-template-columns: 1fr !important; gap: 22px !important; text-align: center; width: calc(100% - 32px); margin-inline: auto !important; border-radius: 24px !important; box-sizing: border-box; }
  .nl-card .nl-body { align-items: center !important; text-align: center; }
  .nl-card .nl-body .eyebrow::before { margin-inline: auto; }
  .nl-card .nl-visual { margin-inline: auto; }
  /* press capsule: allow wrap, smaller logos */
  .press .logo-row { flex-wrap: wrap !important; border-radius: 28px !important; padding: 16px 22px !important; gap: 16px 22px !important; }
  .lid-affil { flex-wrap: wrap !important; gap: 22px 26px !important; }
  .lid-logo { flex: 0 0 auto !important; }
  /* editorial section rhythm */
  .section { padding-block: clamp(56px, 10vh, 96px) !important; }
  .traj2 .flow-kicker { font-size: clamp(24px, 7vw, 34px) !important; }
  /* contato smaller */
  .contato-title { font-size: clamp(30px, 9vw, 46px) !important; }
}

/* iOS: fixed pseudo-bg is fine, but ensure it always covers (no white gaps on rubber-band) */
@supports (-webkit-touch-callout: none){
  body::before { height: 100dvh; }
}

@media (max-width: 420px){
  :root { --gutter: 18px; }
  .nav .btn { padding: 0.5em 0.9em; font-size: 12px; }
  .lang-toggle { padding: 5px 9px; }
  .press .logo-row .press-logo { height: 24px !important; }
  .press-logo--globo { height: 30px !important; }
  .sobre-sub-line br { display: none; }
}
