/* ALL TYPE · Sobre — retrato e assinatura: the name set large at the left, the signature under it, the person in black and white at the right.
   Loaded after home.css, which brings the header, the footer, the buttons, the Contatos block and the tokens. */

.sobre-top { display: grid; grid-template-columns: minmax(0, 1fr) clamp(260px, 36.8vw, 530px); align-items: start; gap: 0 clamp(32px, 4vw, 56px); padding: 22px var(--gut) 0; }

/* the portraits wear the Trajetória's lime: 10px on top and at the right */
.portrait { border-top: 10px solid var(--lime); border-right: 10px solid var(--lime); }
.sobre-top .portrait { position: sticky; top: 24px; } /* the Leia mais can run longer than the photo: it stays beside the text */
.portrait picture { display: block; }
.portrait img { width: 100%; height: auto; }

/* the name (Display Hero), the signature of the home under it (.sig: ruler 56x6 and Label at .32em), the first paragraph (Lede de leitura) */
.name { font: 600 clamp(56px, 7.4vw, 106px)/.92 var(--serif); letter-spacing: -.01em; }
.signature { margin-top: 24px; }
.lede { max-width: 28.5em; margin-top: 24px; font: 500 24px/1.45 var(--serif); text-wrap: pretty; } /* ~32px of air to the signature: the CTA row stays in a 1280x800 first view */

/* Leia mais: a native details, no motion; the summary is an outline button that inverts like the others (the panel's Fechar) */
.more { margin-top: 24px; }
.more summary { display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border: 1px solid var(--ink); font: 700 13px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; list-style: none; cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.more summary::-webkit-details-marker { display: none; }
.more summary:hover { background: var(--lime); border-color: var(--lime); color: var(--black); }
.more[open] summary span { display: none; }
.more[open] summary::before { content: "Leia menos"; }
.more > p:not(.belief) { max-width: 65ch; margin-top: 24px; font: 500 17px/1.6 var(--sans); }
.brands { display: block; margin: .35em 0; font: 600 28px/1.3 var(--serif); text-wrap: pretty; } /* the list of brands, large type of its own between the sentence's opening and its continuation */
.belief { margin: 40px 0 16px; padding-top: 24px; border-top: 6px solid var(--lime); font: 600 clamp(40px, 4.4vw, 64px)/1.08 var(--serif); letter-spacing: -.01em; text-wrap: balance; } /* 1.08: the accents clear the descenders */

/* WhatsApp, and the portfolio */
.bio-end { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px; margin-top: 36px; }
.all { display: inline-block; font: var(--caps); line-height: 2; letter-spacing: .14em; text-transform: uppercase; text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 4px; text-underline-offset: .45em; transition: background-color .2s var(--ease), color .2s var(--ease); }
.all:hover { background: var(--lime); color: var(--black); }
.all .i { display: inline-block; width: 16px; height: 16px; margin-left: 8px; vertical-align: middle; }

/* the end: the selfie beside the home's Contatos block (WhatsApp over the four channels), on the white ground of the home's */
.sobre-fim { display: grid; grid-template-columns: clamp(240px, 28vw, 400px) minmax(0, 1fr); align-items: start; gap: 40px clamp(32px, 5vw, 72px); margin-top: clamp(72px, 8vw, 112px); padding: clamp(80px, 7.2vw, 104px) var(--gut); background: var(--white); }
.sobre-fim .contato { grid-column: 2; grid-row: 1; padding: 0; background: none; }
.sobre-fim .contato-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
.selfie { grid-column: 1; grid-row: 1; }

@media (max-width: 1099px) {
  .sobre-fim .canais { grid-template-columns: minmax(0, 1fr); }
}
/* tablets: the name, the signature and the lede beside the portrait, which ends with the lede (the photo fills the rows the
   text makes, cut from the top); the Leia mais and the CTA row run under both */
@media (min-width: 721px) and (max-width: 1000px) {
  .sobre-top { grid-template-columns: minmax(0, 1fr) clamp(300px, 40vw, 380px); grid-template-areas: "name portrait" "sig portrait" "lede portrait" "more more" "end end"; grid-template-rows: auto auto 1fr auto auto; }
  .bio { display: contents; }
  .name { grid-area: name; }
  .signature { grid-area: sig; }
  .lede { grid-area: lede; font-size: clamp(20px, 2.4vw, 24px); }
  .more { grid-area: more; margin-top: 32px; }
  .bio-end { grid-area: end; }
  .sobre-top .portrait { grid-area: portrait; align-self: stretch; position: relative; top: auto; min-height: 420px; }
  .sobre-top .portrait img { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: 50% 0; }
}
/* phones: one column, and the portrait comes right under the name, as wide as the text */
@media (max-width: 720px) {
  .sobre-top { grid-template-columns: minmax(0, 1fr); padding-top: 12px; }
  .bio { display: contents; }
  .sobre-top .portrait { order: 1; position: static; width: min(100%, 430px); margin-top: 28px; } /* as the selfie: the text's width on a phone */
  .lede, .more, .bio-end { order: 2; }
  .sobre-fim { grid-template-columns: minmax(0, 1fr); margin-top: 64px; padding-top: 72px; padding-bottom: 72px; }
  .sobre-fim .contato, .selfie { grid-column: 1; grid-row: auto; }
  .selfie { width: min(100%, 430px); }
}
@media (max-width: 359px) {
  .bio-end .cta { padding: 0 16px; letter-spacing: .12em; } /* keeps "Conversar no WhatsApp" on one line */
}

/* ---------- print (A4): the whole text (the Leia mais open), the portrait small at the right, the contacts; no menu, button or float ---------- */
@media print {
  @page { size: A4; margin: 16mm 18mm; }
  :root { --gut: 0px; } /* the page's own margins frame the sheet */
  html, body { background: var(--white); }
  .nav, .menu-toggle, .top .cta, .wa-float, .bio-end, .foot, .skip, .selfie, .wa-big { display: none; }
  .top { display: block; height: auto; min-height: 0; padding: 0 0 12px; }
  details::details-content { content-visibility: visible; display: block; }
  .more summary { display: none; } /* as specific as the screen rule that makes it a button */
  .sobre-top { grid-template-columns: minmax(0, 1fr) 52mm; gap: 0 8mm; padding: 0; }
  .bio { display: block; }
  .sobre-top .portrait { order: 0; width: auto; margin: 0; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .lede, .more { order: 0; }
  .name { font-size: 48px; }
  .lede { font-size: 19px; }
  .more > p:not(.belief) { font-size: 14px; line-height: 1.5; margin-top: 14px; }
  .more > p { break-inside: avoid; orphans: 3; widows: 3; } /* no paragraph split between the sheets */
  .belief { margin: 22px 0 8px; padding-top: 14px; font-size: 30px; break-inside: avoid; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .brands { font-size: 18px; line-height: 1.3; }
  .sobre-fim { display: block; margin: 24px 0 0; padding: 0; background: none; break-inside: avoid; }
  .sobre-fim .contato-grid { display: block; }
  .sobre-fim .canais { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sig::before { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
