/* Lauro Santos — página one page. Complementa tokens.css + ds.css; só valores do design system. */

html { scroll-behavior: smooth; scroll-padding-top: 110px; background: var(--bg); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; min-height: 100vh; }
body.ls-root { background: var(--grad-fundo) fixed; }
h1, h2, h3, p { margin: 0; }

.skip {
  position: fixed; left: 16px; top: 16px; z-index: 100; padding: 12px 18px; border-radius: var(--radius-sm);
  background: var(--btn-bg); color: var(--btn-ink); font-weight: 500; text-decoration: none;
  transform: translateY(-160%); transition: transform .2s ease;
}
.skip:focus { transform: none; }

/* Fundo fixo: grade e brilho ficam presos à viewport; a cena fica entre eles e o conteúdo */
.ls-grid-bg--fixed { position: fixed; inset: 0; z-index: 0; }
.ls-sheen--fixed { position: fixed; inset: 0; z-index: 0; }
.ls-scene { z-index: 0; }
.no-webgl .ls-scene { display: none; }
/* Desktop: as placas em CSS ficam até a cena 3D confirmar que subiu (html.scene-on) — sem módulo, sem WebGL ou aberto como arquivo, o fundo não fica vazio */
@media (min-width: 1024px) {
  html:not(.scene-on) .ls-scene-lite { display: block; }
  html:not(.scene-on) .ls-scene { visibility: hidden; }
}
main.ls-layer, footer.ls-layer { position: relative; z-index: 1; }

/* Navegação fixa */
body > header { position: fixed; top: 0; left: 0; right: 0; z-index: 20; pointer-events: none; }
body > header .ls-nav { position: relative; top: 0; margin: 28px 40px 0; pointer-events: auto; }

/* Abertura: a seta de rolagem é um link */
.ls-scroll-cue { text-decoration: none; }
.ls-scroll-cue:hover { color: var(--gold); }

/* Sobre */
.about { max-width: 720px; display: grid; gap: var(--space-4); text-align: center; }
.about p { font-size: clamp(17px, 1.3vw, 20px); font-weight: 300; line-height: 1.65; color: var(--muted); }
.about p:first-child { color: var(--ink-soft); }
.about-link { margin-top: var(--space-3); }

/* Cinco áreas: 3 + 2 centralizados */
.ls-cards--5 { grid-template-columns: repeat(6, 1fr); }
.ls-cards--5 > * { grid-column: span 2; }
.ls-cards--5 > :nth-child(4) { grid-column: 2 / span 2; }
.ls-card p { max-width: 34ch; margin-left: auto; margin-right: auto; }

/* Projetos */
.gallery-gap { margin-top: var(--space-6); }
.ls-shot { color: inherit; transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s ease; }
.ls-shot:hover { transform: translateY(-4px); }
.ls-shot:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.ls-shot--big .ls-shot-caption { max-width: 46ch; }
.ls-shot:not(.ls-shot--big) .ls-shot-caption { padding: 9px 12px; }
.ls-shot:not(.ls-shot--big) .ls-shot-caption b { font-size: 15px; }

/* Trajetória */
.ls-timeline { list-style: none; margin: 0 auto; padding-left: 0; }
.ls-step h3 { margin: 12px 0 0; font-size: 20px; font-weight: 500; letter-spacing: -.01em; color: var(--ink); }
.list-block { margin-top: calc(var(--section-pad-top) * .8); }
.acc-h { margin: 0; font: inherit; }

/* Carrossel da trajetória dentro da seção (que é flex em coluna) */
#trajetoria .tl3d { width: 100%; }
#trajetoria.ls-section { padding-top: 0; padding-bottom: 0; }
#trajetoria .tl3d:not(.is-3d) .tl3d-stage { padding-top: 0; }

/* Formação */
.ls-plans .ls-chip { margin-bottom: 18px; }

/* Contato */
.ls-cta { padding-bottom: 12vh; }
footer.ls-contact { padding-top: 0; }

@media (max-width: 900px) {
  body > header .ls-nav { margin: 16px 16px 0; }
  .ls-section-head { padding: 0 30px; }
  .ls-cards--5 { grid-template-columns: 1fr; }
  .ls-cards--5 > *, .ls-cards--5 > :nth-child(4) { grid-column: auto; }
  .about { text-align: left; }
  .ls-shot:hover { transform: none; }
  .ls-gallery { grid-auto-rows: auto; }
  .ls-shot { min-height: 170px; }
  .ls-shot--big { min-height: 300px; }
  .ls-ask a { font-size: clamp(20px, 6vw, 28px); word-break: break-all; }
}
@media (max-width: 560px) {
  .ls-gallery { grid-template-columns: 1fr; }
  .ls-shot--big { grid-column: auto; }
  .ls-brand { font-size: 17px; }
  body > header .ls-nav { padding: 0 8px 0 18px; }
}
@media (prefers-reduced-motion: reduce) { .ls-shot, .ls-shot:hover { transition: none; transform: none; } }

/* Cartões de projeto com captura de tela: mais altos no celular, para a imagem aparecer acima da legenda */
@media (max-width: 900px) {
  .ls-shot:has(> img) { min-height: 300px; }
  .ls-shot--big:has(> img) { min-height: 470px; }
}

/* Painel no lugar da captura (logo de parceiro, ficha do acervo) — mesmo encaixe da imagem */
.ls-shot-panel {
  position: absolute; left: 26px; top: 64px; width: calc(100% - 26px); height: calc(100% - 64px);
  border-radius: 14px 0 0 0; box-shadow: var(--shadow-shot); overflow: hidden;
  background: #f6f1e8; color: #1c1a17;
}
.shot-logo { display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 14px; padding: 20px 22px; }
.ls-shot .shot-logo img { position: static; width: min(72%, 230px); height: auto; display: block; object-fit: contain; border-radius: 0; box-shadow: none; }
.shot-ficha { display: grid; align-content: start; gap: 0; padding: 18px 20px; font-size: 12.5px; line-height: 1.35; }
.ficha-head { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #7c5c2e; padding-bottom: 10px; border-bottom: 1.5px solid #c9a46a; margin-bottom: 4px; }
.ficha-row { display: grid; grid-template-columns: 78px 1fr; gap: 10px; padding: 7px 0; border-bottom: 1px dashed #d8cebc; }
.ficha-row b { font-weight: 600; color: #5c5447; }
@media (max-width: 900px) {
  .ls-shot:has(> .ls-shot-panel) { min-height: 300px; }
}
.shot-logo-text { font-size: 13px; line-height: 1.4; color: #5c5447; }
.shot-logo-text b { display: block; font-size: 15px; font-weight: 600; color: #1c1a17; }

/* ============ Formulário de contato ============ */
.contact-form { max-width: 680px; margin: var(--space-7) auto 0; display: grid; gap: 22px; text-align: left; }
.cf-field { display: grid; gap: 8px; }
.cf-field label { font-size: 14px; font-weight: 500; color: var(--ink-soft); }
.cf-field input, .cf-field textarea {
  width: 100%; box-sizing: border-box; font: 300 16px/1.5 var(--font-sans); color: var(--ink);
  background: var(--surface-raised); border: 1px solid var(--line-control); border-radius: var(--radius-sm);
  padding: 14px 16px; min-height: 52px; transition: border-color .2s ease, box-shadow .2s ease;
}
.cf-field textarea { resize: vertical; min-height: 160px; }
.cf-field input:hover, .cf-field textarea:hover { border-color: var(--muted); }
.cf-field input:focus, .cf-field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.cf-field [aria-invalid="true"] { border-color: var(--ember); }
.cf-error { margin: 0; font-size: 14px; color: var(--ember); }
.cf-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-bottom { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.cf-turnstile { min-height: 65px; flex: 1 1 300px; max-width: 400px; }
.cf-submit { flex: none; }
.cf-submit[disabled] { opacity: .6; cursor: progress; }
.cf-status { margin: 0; min-height: 1.5em; font-size: 15px; color: var(--muted); }
.cf-status.is-ok { color: var(--gold); }
.cf-status.is-erro { color: var(--ember); }
@media (max-width: 560px) { .cf-submit { width: 100%; } .cf-turnstile { max-width: none; } }

/* Palestras — grade 2×2 e link para os Anais */
.ls-quotes--2 { grid-template-columns: repeat(2, 1fr); }
.ls-quote-link { align-self: flex-start; margin-top: 18px; font-size: 14px; font-weight: 500; letter-spacing: .02em; color: var(--gold); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--gold) 40%, transparent); padding-bottom: 2px; transition: border-color .2s; }
.ls-quote-link:hover, .ls-quote-link:focus-visible { border-bottom-color: var(--gold); }
@media (max-width: 900px) { .ls-quotes--2 { grid-template-columns: 1fr; } }
