/*
  sobre.html: the partners, the timeline, the closing line of the cycle and the symbol. Linked after assets/site.css.
*/

/* hero: the two partners, each in the client's 320px file and never wider */
.people { display: flex; align-items: center; justify-content: center; gap: var(--s-5); padding: var(--s-6); border-radius: var(--r-lg);
  background:
    radial-gradient(70% 60% at 18% 10%, color-mix(in oklab, var(--ground-surface) 80%, white), transparent 70%),
    radial-gradient(60% 50% at 92% 100%, color-mix(in oklab, var(--ground-bg) 82%, var(--ground-accent)), transparent 70%),
    var(--ground-bg); }
.person { margin: 0; display: grid; gap: var(--s-4); width: min(100%, 280px); align-content: center; }
.person img { width: 100%; max-width: 280px; aspect-ratio: 29 / 36; object-fit: cover; object-position: 50% 20%; border-radius: var(--r-md); background: var(--surface); }
.person figcaption { display: grid; gap: var(--s-1); }
.person b { font: 500 var(--t-h3)/1.3 var(--font-text); letter-spacing: -0.01em; }
.person span { font-size: var(--t-body); color: var(--muted); }
@media (max-width: 639px) { .people { padding: var(--s-4); gap: var(--s-3); align-items: flex-start; } .person img { aspect-ratio: 4 / 5; } .person b { font-size: var(--t-lead); } .person span { font-size: var(--t-small); } }

/* #socios: each partner's résumé in short points, read across the two columns */
.socio__role { margin: 0; font-size: var(--t-lead); color: var(--muted); }
.socio .points { width: 100%; }

/* #historia: a vertical line, the year in the display face */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; width: 100%; }
.timeline > li { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: var(--s-2) var(--s-5); align-items: baseline; padding: var(--s-4) 0 var(--s-4) var(--s-5); border-left: 1px solid var(--line-strong); position: relative; }
.timeline > li::after { content: ""; position: absolute; left: -5px; top: calc(var(--s-4) + .55em); width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.timeline__year { font: var(--display-weight) var(--t-h3)/1.2 var(--font-display); letter-spacing: var(--display-tracking); font-variant-numeric: tabular-nums; }
.timeline p { margin: 0; font-size: var(--t-lead); line-height: 1.4; max-width: 44ch; }
.timeline > li[data-aprovacao="pendente"] { outline-offset: -2px; }
.timeline > li[data-aprovacao="pendente"]::before { grid-column: 1 / -1; margin-bottom: 0; }
.hist { display: grid; gap: var(--s-6); }
.hist > h2 { max-width: 12ch; }
@media (min-width: 1024px) {
  .hist { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); grid-template-rows: auto 1fr; align-items: start; }
  .hist > .timeline { grid-column: 7 / span 6; grid-row: 1 / span 2; }
  .hist > h2 { grid-column: 1 / span 5; grid-row: 1; }
  .hist > .hist__also { grid-column: 1 / span 5; grid-row: 2; align-self: end; }
}
.also { grid-template-columns: minmax(0, 1fr); width: 100%; }
.also > li { max-width: none; font-size: var(--t-body); padding-top: var(--s-2); }
@media (min-width: 640px) and (max-width: 1023px) { .also { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-6); } }
@media (max-width: 639px) { .timeline > li { grid-template-columns: 72px minmax(0, 1fr); gap: var(--s-3); padding-left: var(--s-4); } .timeline p { font-size: var(--t-body); } .also { grid-template-columns: 1fr; } }

/* #nome: the brand's C as the cycle. The four verbs sit round it (Codificar right, Apropriar bottom, Gerar
   left, Disseminar top, clockwise); choosing one turns the C, clockwise as the cycle runs, until its opening
   faces that verb. The lime dot, the company's knowledge, stays put and sends out one ring per turn.
   assets/system.js tabs() selects; assets/pages/sobre.js turns --t the short way round. */
.cycle { display: grid; grid-template-columns: minmax(0, 1fr); border-radius: var(--r-lg); overflow: hidden; }
.cycle__compass { --cs: 340px; --lx: calc(var(--cs) * .5 + 92px); --ly: calc(var(--cs) * .5 + 30px); --turn: .7s;
  position: relative; min-height: 480px; background: var(--p-inv-bg, #062b45); color: var(--p-inv-ink, #f4f7fa); }
.cycle__c { position: absolute; left: 50%; top: 50%; width: var(--cs); height: var(--cs); margin: calc(var(--cs) / -2) 0 0 calc(var(--cs) / -2); overflow: visible; }
.cycle__ring { fill: #fff; transform-box: view-box; transform-origin: 50% 50%; transform: rotate(calc(var(--t) * 90deg)); }
.cycle__compass.is-moving .cycle__ring { transition: transform var(--turn) cubic-bezier(.65, 0, .35, 1); }
.cycle__dot { fill: var(--lime); }
.cycle__ping { fill: none; stroke: var(--lime); stroke-width: 3; opacity: 0; transform-box: fill-box; transform-origin: 50% 50%; }
.cycle__compass.is-moving .cycle__ping { animation: cycle-ping .9s cubic-bezier(.2, .7, .3, 1) .35s both; }
@keyframes cycle-ping { from { opacity: .7; transform: scale(1); } to { opacity: 0; transform: scale(2.1); } }
/* the four verbs, each a tab: a quiet label, lit and underlined in lime when chosen */
.cycle__tabs { position: absolute; inset: 0; }
.cycle__tab { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-3);
  border: 0; border-radius: var(--r-sm); background: none; cursor: pointer; white-space: nowrap;
  font: 500 var(--t-lead)/1 var(--font-text); letter-spacing: -0.01em; color: color-mix(in oklab, var(--p-inv-ink, #f4f7fa) 62%, transparent);
  transition: color var(--m-out, .2s) ease; }
.cycle__tab::after { content: ""; position: absolute; left: var(--s-3); right: var(--s-3); bottom: 6px; height: 2px; border-radius: 2px; background: var(--lime);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s cubic-bezier(.65, 0, .35, 1); }
.cycle__tab:nth-child(1) { left: calc(50% + var(--lx)); }
.cycle__tab:nth-child(2) { top: calc(50% + var(--ly)); }
.cycle__tab:nth-child(3) { left: calc(50% - var(--lx)); }
.cycle__tab:nth-child(4) { top: calc(50% - var(--ly)); }
.cycle__tab:hover { color: var(--p-inv-ink, #f4f7fa); }
.cycle__tab[aria-selected="true"] { color: var(--p-inv-ink, #f4f7fa); }
.cycle__tab[aria-selected="true"]::after { transform: scaleX(1); }
.cycle__tab:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.cycle__key { position: absolute; left: var(--s-5); bottom: var(--s-4); margin: 0; display: flex; align-items: center; gap: var(--s-2);
  font-size: var(--t-small); color: color-mix(in oklab, var(--p-inv-ink, #f4f7fa) 70%, transparent); }
.cycle__key::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--lime); }
/* the chosen verb's text: every panel shares one cell, so the card keeps the height of the longest */
.cycle__reader { background: var(--p-bg, #f4f7fa); padding: var(--s-6); }
.cycle__panels { display: grid; }
.cycle__panel { grid-area: 1 / 1; display: grid; gap: var(--s-3); align-content: start; max-width: 52ch; }
/* system.css hides [hidden] with !important; a hidden panel here keeps its place, unseen and out of reach */
.cycle__panel[hidden] { display: grid !important; visibility: hidden; }
.cycle__panel > * { margin: 0; }
.cycle__step { font-size: var(--t-small); color: var(--muted); font-variant-numeric: tabular-nums; }
.cycle__text { font-size: var(--t-lead); line-height: 1.45; }
.cycle__quote { margin-top: var(--s-2) !important; padding-top: var(--s-4); border-top: 1px solid var(--line-strong); display: grid; gap: var(--s-2); }
.cycle__quote blockquote { margin: 0; font-size: var(--t-body); line-height: 1.5; }
.cycle__quote figcaption { font-size: var(--t-small); color: var(--muted); }
.cycle__next { justify-self: start; min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer; font-size: var(--t-body); }
.cycle__next::after { content: "→"; }
@media (min-width: 1024px) {
  .cycle { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cycle__reader { padding: var(--s-7) var(--s-7) var(--s-6); }
  /* a short laptop screen: the section grows past the screen rather than run into the next one */
  #nome { height: auto; min-height: 100vh; min-height: 100svh; }
}
@media (min-width: 640px) and (max-width: 1023px) { .cycle__compass { min-height: 440px; } }
@media (max-width: 639px) {
  #nome { --hm: 2; }
  .cycle__compass { --cs: 140px; --lx: calc(var(--cs) * .5 + 58px); --ly: calc(var(--cs) * .5 + 30px); min-height: 340px; }
  .cycle__tab { font-size: var(--t-body); padding: 0 var(--s-2); }
  .cycle__tab::after { left: var(--s-2); right: var(--s-2); }
  .cycle__key { left: var(--s-4); bottom: var(--s-3); }
  .cycle__reader { padding: var(--s-5) var(--s-4); }
}
@media (prefers-reduced-motion: reduce) {
  .cycle__compass.is-moving .cycle__ring, .cycle__tab, .cycle__tab::after { transition: none; }
  .cycle__compass.is-moving .cycle__ping { animation: none; }
}
html[data-motion="off"] .cycle__compass.is-moving .cycle__ring { transition: none; }
/* pinned (sobre.js adds .is-pinned from 1024px on a screen tall enough for the whole section, never under
   reduced motion): the section is three screens tall and its content sticks for two of them, while the scroll
   turns the C a full revolution, one quarter per verb, and the page then goes on */
#nome.is-pinned { display: block; height: 300vh; height: 300svh; min-height: 0; padding: 0; }
#nome.is-pinned > .wrap { position: sticky; top: 0; flex: none; height: 100vh; height: 100svh; box-sizing: border-box; padding-top: var(--nav, 72px);
  display: flex; flex-direction: column; justify-content: center; }
#nome.is-pinned .cycle__compass.is-moving .cycle__ring { transition: none; }
/* a laptop screen under 880px tall: a smaller C and less air, so the whole section still fits and pins */
@media (min-width: 1024px) and (max-height: 880px) {
  #nome.is-pinned .sec-body { margin-top: var(--s-5); }
  #nome.is-pinned .sec-head .t-lead { font-size: var(--t-body); }
  #nome.is-pinned .cycle__compass { --cs: 270px; --ly: calc(var(--cs) * .5 + 26px); min-height: 400px; }
  #nome.is-pinned .cycle__reader { padding: var(--s-5) var(--s-6); }
  #nome.is-pinned .cycle__panel { gap: var(--s-2); }
}

/* #era-da-ia: the heading over the lit sentence, where the company's knowledge lives, the closing line */
.era__title { font-size: var(--t-h3); font-weight: 500; margin-bottom: var(--s-5); color: var(--muted); }
#era-da-ia .mo-wh__text { font-size: var(--t-h1); max-width: none; }
.era__close { margin-top: var(--s-7); font: var(--display-weight) var(--t-lead)/1.4 var(--font-display); max-width: 48ch; }
@media (max-width: 1023px) { .era__close { margin-top: var(--s-5); } }

/* #lado-de-dentro: the negative symbol, large, with clear room on every side */
.symbol { display: grid; place-items: center; min-height: 600px; padding: var(--s-5); }
.symbol img { display: block; height: 440px; width: auto; }
@media (max-width: 1023px) { .symbol { grid-column: 1 / -1; min-height: 0; padding: var(--s-6) 0; justify-self: stretch; } .symbol img { height: 160px; } }
#lado-de-dentro .t-lead { font-size: var(--t-h3); line-height: 1.4; max-width: 34em; }
@media (max-width: 1023px) { .symbol { padding-block: var(--s-8); } }
@media (max-width: 639px) { #lado-de-dentro .t-lead { font-size: var(--t-lead); } .symbol { padding-block: var(--s-6); } }
.person { flex: 0 1 280px; grid-template-rows: auto auto; align-content: center; }
.person img { height: auto; min-height: 0; }
#lado-de-dentro .grid { min-height: min(680px, var(--ly-fit, 680px)); align-items: center; }
@media (max-width: 1023px) { #lado-de-dentro .grid { min-height: 0; } }
#lado-de-dentro h2 { font-size: var(--t-h1); }
@media (min-width: 640px) and (max-width: 1023px) { .symbol img { height: 300px; } .symbol { padding-block: 120px; } }
