/* =========================================================================
   Billions — Criação de logo (direção de arte própria)
   Conceito: "O símbolo e sua construção."  Um logo é pensado, medido e testado.
   Hero com a construção geométrica do símbolo da Billions; teste interativo de
   escala e fundo; um processo em que o símbolo é desenhado enquanto a página
   avança (prefixo lg-). Só ativos reais da própria Billions.
   ========================================================================= */

/* ---------- Hero: texto centrado e a construção do símbolo ---------- */
.hero.sv-hero.lg-hero { padding: 152px 0 72px; text-align: center; }
.lg-hero-text { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.hero.sv-hero.lg-hero h1 { max-width: 15em; margin: 0 auto; font-size: clamp(34px, 4.8vw, 68px); line-height: 1.04; letter-spacing: -.034em; text-align: center; text-wrap: balance; }
.lg-mark { color: #fff; box-shadow: inset 0 -.1em 0 rgba(255,255,255,.55); }
.hero.sv-hero.lg-hero .sv-lede { max-width: 34em; margin: 22px auto 0; text-align: center; font-size: clamp(17px, 1.5vw, 21px); text-wrap: balance; }
.lg-hero .actions { justify-content: center; margin-top: 32px; }

.lg-build-wrap { position: relative; z-index: 2; margin-top: 40px; }
.lg-build { margin: 0 auto; width: min(560px, 100%); }
.lg-build-stage { position: relative; aspect-ratio: 1; }
.lg-build-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lg-build-svg * { fill: none; vector-effect: non-scaling-stroke; }
.lg-guides * { stroke: rgba(255,255,255,.14); stroke-width: 1; }
.lg-keylines * { stroke: rgba(255,255,255,.55); stroke-width: 1; }
.lg-keylines rect { stroke-dasharray: 4 5; stroke: rgba(255,255,255,.32); }
.lg-build-mark { position: absolute; left: 50%; top: 50%; width: 60%; height: auto; transform: translate(-50%, -50%); filter: drop-shadow(0 30px 60px rgba(0,217,89,.18)); }
.hero .lg-build figcaption { margin-top: 12px; text-align: center; font-family: var(--font-text); font-size: 12px; color: var(--c-on-dark-soft); }
@media (prefers-reduced-motion: no-preference) {
  /* as linhas se desenham uma vez; o símbolo entra depois */
  .lg-guides *, .lg-keylines * { stroke-dasharray: 1; stroke-dashoffset: 1; animation: lg-draw 1.8s var(--ease-out) forwards; }
  .lg-keylines rect { stroke-dasharray: 4 5; stroke-dashoffset: 0; animation: lg-fade 1.4s var(--ease-out) .9s both; }
  .lg-guides *:nth-child(n+3) { animation-delay: .3s; } .lg-keylines *:nth-child(2) { animation-delay: .25s; } .lg-keylines *:nth-child(3) { animation-delay: .5s; }
  .lg-build-mark { animation: lg-in 1.2s var(--ease-out) 1s both; }
  @keyframes lg-draw { to { stroke-dashoffset: 0; } }
  @keyframes lg-fade { from { opacity: 0; } to { opacity: 1; } }
  @keyframes lg-in { from { opacity: 0; transform: translate(-50%, -46%) scale(.94); } to { opacity: 1; transform: translate(-50%, -50%); } }
}

/* ---------- Mais do que um símbolo ---------- */
.section.lg-more { background: #fff; color: var(--c-ink); }
.lg-more h2, .lg-more h3 { color: var(--c-ink); }
.lg-more p, .lg-more .kicker { color: var(--c-gray); }
.lg-more-head { max-width: 760px; margin-bottom: 88px; }
.lg-more-head p { margin-top: 16px; }
.lg-rows { display: grid; }
.lg-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; padding: 56px 0; border-top: 1px solid var(--c-hairline); }
.lg-row:last-child { border-bottom: 1px solid var(--c-hairline); }
.lg-row-copy { grid-column: 1 / span 4; }
.lg-row-copy h3 { font-size: clamp(28px, 3vw, 44px); line-height: 1.08; letter-spacing: -.025em; }
.lg-row-copy p { margin-top: 14px; max-width: 24em; }
.lg-tag { display: block; margin-bottom: 14px; font-size: 12px; font-weight: 590; letter-spacing: .06em; text-transform: uppercase; color: var(--c-gray); }
.lg-chips { grid-column: 6 / -1; display: flex; flex-wrap: wrap; gap: 12px; list-style: none; }
.lg-chips li { padding: 14px 24px; border: 1px solid var(--c-ink); border-radius: 99px; font: 600 clamp(18px, 1.8vw, 24px)/1 var(--font-display); letter-spacing: -.012em; color: var(--c-ink); }
.lg-idea { grid-column: 6 / -1; display: flex; align-items: center; gap: 16px; font: 600 clamp(24px, 3vw, 44px)/1 var(--font-display); letter-spacing: -.03em; color: var(--c-ink); }
.lg-idea i { flex: 1; height: 1px; min-width: 24px; background: var(--c-ink); position: relative; }
.lg-idea i::after { content: ""; position: absolute; right: 0; top: -4px; width: 8px; height: 8px; border-top: 1px solid var(--c-ink); border-right: 1px solid var(--c-ink); transform: rotate(45deg); }
.lg-idea span:last-child { padding-bottom: 2px; box-shadow: inset 0 -.12em 0 var(--c-ink); }
/* 03 · teste de escala e fundo */
.lg-row--lab { align-items: start; }
.lg-lab { grid-column: 5 / -1; }
.lg-lab-stage { display: grid; place-items: center; height: clamp(260px, 30vw, 380px); overflow: hidden; border-radius: var(--radius-l); background: #000; transition: background-color .4s var(--ease); }
.lg-lab[data-bg="light"] .lg-lab-stage { background: #fff; border: 1px solid var(--c-hairline); }
.lg-lab[data-bg="mint"] .lg-lab-stage { background: var(--c-mint-dark-bg); }
.lg-lab[data-bg="mono"] .lg-lab-stage { background: #1d1d1f; }
.lg-lockup { --s: 120px; display: flex; align-items: center; gap: calc(var(--s) * .22); }
.lg-l-sym { width: var(--s); height: auto; }
.lg-l-word { width: calc(var(--s) * 2.4); height: auto; display: none; }
.lg-lab .lg-l-word--w { display: block; }
.lg-lab[data-bg="light"] .lg-l-word--w, .lg-lab[data-bg="mint"] .lg-l-word--w { display: none; }
.lg-lab[data-bg="light"] .lg-l-word--k, .lg-lab[data-bg="mint"] .lg-l-word--k { display: block; }
.lg-lab[data-bg="mint"] .lg-l-sym { filter: brightness(0); }
.lg-lab[data-bg="mono"] .lg-l-sym { filter: brightness(0) invert(1); }
.lg-lockup.is-small .lg-l-word { display: none !important; }
.lg-lab-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 32px; align-items: center; margin-top: 20px; }
.lg-size { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; font-size: 11px; font-weight: 590; letter-spacing: .08em; text-transform: uppercase; color: var(--c-gray); }
.lg-size output { min-width: 5ch; font-variant-numeric: tabular-nums; color: var(--c-ink); }
.lg-size input { -webkit-appearance: none; appearance: none; width: 100%; height: 24px; margin: 0; background: none; cursor: pointer; }
.lg-size input::-webkit-slider-runnable-track { height: 2px; border-radius: 2px; background: rgba(29,29,31,.22); }
.lg-size input::-moz-range-track { height: 2px; border-radius: 2px; background: rgba(29,29,31,.22); }
.lg-size input::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -9px; border: 0; border-radius: 50%; background: var(--c-ink); box-shadow: 0 0 0 4px #fff; }
.lg-size input::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 50%; background: var(--c-ink); box-shadow: 0 0 0 4px #fff; }
.lg-size input:focus-visible { outline: 2px solid var(--c-ink); outline-offset: 4px; border-radius: 6px; }
.lg-bgs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--c-hairline); border-radius: 99px; background: #fff; }
.lg-bgs button { min-height: 40px; padding: 0 16px; border: 0; border-radius: 99px; background: none; font: 590 13px/1 var(--font-text); color: var(--c-gray); cursor: pointer; transition: background-color .3s var(--ease), color .3s var(--ease); }
.lg-bgs button[aria-pressed="true"] { background: var(--c-ink); color: #fff; }
.lg-bgs button:focus-visible { outline: 2px solid var(--c-ink); outline-offset: 2px; }
.lg-lab-note { grid-column: 1 / -1; margin-top: 16px; max-width: none; font-size: 14px; }

/* ---------- Entregáveis: componente compartilhado ---------- */
.section.lg-scope { background: var(--c-surface-alt); }

/* ---------- Processo: o símbolo é desenhado enquanto a página avança ---------- */
.section.lg-process { background: var(--c-surface-dark); }
.lg-process-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
.lg-process-stick { grid-column: 1 / span 5; position: sticky; top: 112px; }
.lg-process-stick p { margin-top: 16px; }
.lg-drawing { position: relative; width: min(340px, 100%); aspect-ratio: 1; margin-top: 48px; }
.lg-drawing svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.lg-draw { fill: none; stroke: #fff; stroke-width: 1.5; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--lg-p, 1)); vector-effect: non-scaling-stroke; }
.lg-drawing img { position: absolute; left: 50%; top: 50%; width: 52%; height: auto; transform: translate(-50%, -50%); opacity: var(--lg-img, 1); }
.lg-steps { grid-column: 7 / -1; list-style: none; }
.lg-step { display: grid; grid-template-columns: 72px 1fr; column-gap: 20px; align-content: center; min-height: 40vh; padding: 28px 0; border-top: 1px solid var(--c-hairline-dark); transition: opacity .5s var(--ease); }
.lg-step:last-child { border-bottom: 1px solid var(--c-hairline-dark); }
.lg-step-n { grid-row: 1 / span 3; font-family: var(--font-display); font-size: clamp(48px, 5vw, 72px); font-weight: 600; line-height: .9; letter-spacing: -.05em; color: rgba(255,255,255,.2); transition: color .5s var(--ease); }
.lg-step.is-on .lg-step-n { color: #fff; }
.lg-step-tag { margin-bottom: 10px; font-size: 12px; font-weight: 590; letter-spacing: .06em; text-transform: uppercase; }
.lg-step h3 { margin-bottom: 12px; font-size: clamp(26px, 3vw, 40px); line-height: 1.1; letter-spacing: -.02em; }
.lg-step p:not(.lg-step-tag) { max-width: 30em; }
body.has-motion .lg-step:not(.is-on) { opacity: .4; }

/* ---------- Tablet / mobile ---------- */
@media (max-width: 1024px) {
  .lg-row-copy { grid-column: 1 / span 5; } .lg-chips, .lg-idea { grid-column: 6 / -1; } .lg-lab { grid-column: 6 / -1; }
}
@media (max-width: 900px) {
  .hero.sv-hero.lg-hero { padding: 132px 0 56px; }
  .lg-row { display: block; padding: 40px 0; }
  .lg-chips, .lg-idea, .lg-lab { margin-top: 28px; }
  .lg-more-head { margin-bottom: 48px; }
  .lg-lab-controls { grid-template-columns: 1fr; }
  .lg-process-grid { display: block; }
  .lg-process-stick { position: static; }
  .lg-drawing { display: none; }
  .lg-steps { margin-top: 40px; }
  .lg-step { min-height: 0; grid-template-columns: 56px 1fr; }
  body.has-motion .lg-step:not(.is-on) { opacity: 1; }
}
@media (max-width: 760px) {
  .hero.sv-hero.lg-hero h1 { font-size: clamp(30px, 9vw, 42px); line-height: 1.08; }
  .lg-idea { flex-wrap: wrap; }
  .lg-bgs button { padding: 0 12px; }
}
