/* Coquina — estrutura transplantada de buildcover.com (captura 2026-09-17, viewport 1920).
   Todo valor numérico abaixo vem de secoes/*.md; --k converte o px medido em 1920 para a janela atual. */

:root {
  /* cor — medida em design-system.md, sem acento inventado */
  --paper: #ffffff;
  --ink: #202020;
  --ash: #7e7e7e;
  --concrete: #bfc0bc;
  --graphite: #292829;
  --mist: #e6e6e4;
  --stone: #808076;              /* botão escuro, rgb(128,128,118) */
  --glass: rgba(127, 127, 118, .3);
  --tab-bg: rgba(0, 0, 0, .4);

  /* tipo — ABC Diatype -> Switzer, FK Roman Standard -> Newsreader */
  --sans: "Switzer", Helvetica, Arial, sans-serif;
  --serif: "Newsreader", Times, "Times New Roman", serif;

  /* escala: 1px no viewport de 1920, piso de 0.6px */
  --k: clamp(.6px, calc(100vw / 1920), 1px);
  --gutter: calc(60 * var(--k));
  --space-xl: calc(240 * var(--k));
  --space-lg: calc(120 * var(--k));
  --space-md: calc(60 * var(--k));
  --space-sm: calc(30 * var(--k));

  --fs-display: clamp(34px, 3.229vw, 62px);   /* 62px serif, 63.86px sans */
  --fs-card: clamp(22px, 1.667vw, 32px);
  --fs-body: clamp(18px, 1.25vw, 24px);
  --fs-ui: 16px;

  --r-lg: 20px;
  --r-sm: 10px;
  --r-pill: 80px;

  --dur: .25s;
  --dur-slow: .5s;

  --bar-h: 53px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.3;
  letter-spacing: -.02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; letter-spacing: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
figure, p, h1, h2 { margin: 0; }
h1, h2 { font-weight: inherit; font-size: inherit; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: -100px; z-index: 300;
  background: var(--ink); color: var(--paper); padding: 12px 16px; border-radius: var(--r-sm);
  font-size: var(--fs-ui);
}
.skip-link:focus { top: 16px; }

/* ---------- headline: serifa + negrito sans na mesma linha ---------- */
.headline {
  font-family: var(--serif);
  font-size: var(--fs-display);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.03em;
  font-optical-sizing: auto;
}
.headline strong {
  display: block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1.03em;            /* 63.86 / 62 */
  line-height: 1.2;
  letter-spacing: -.029em;
}

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 20px 24px;
  border-radius: var(--r-sm);
  font-size: var(--fs-ui);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.01em;
  white-space: nowrap;
  transition: background-color var(--dur) ease, color var(--dur) ease;
}
.btn-dark { background: var(--stone); color: var(--paper); }
.btn-dark:hover { background: var(--ink); }
.btn-white { background: var(--paper); color: var(--ink); }
.btn-white:hover { background: var(--mist); }
.btn-glass {
  background: var(--glass); color: var(--paper);
  -webkit-backdrop-filter: blur(50px); backdrop-filter: blur(50px);
}
.btn-glass:hover { background: rgba(127, 127, 118, .5); }
.is-past-hero .btn-glass { color: var(--ink); }

/* ---------- 02b · barra fixa ---------- */
.announce {
  position: fixed; inset: 0 0 auto 0; z-index: 120;
  height: var(--bar-h);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 0 var(--gutter);
  background: var(--graphite); color: var(--concrete);
  font-size: 15px; line-height: 1.2; letter-spacing: -.01em;
}
.announce a { color: var(--paper); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.announce-close { color: var(--paper); display: grid; place-items: center; width: 32px; height: 32px; margin-right: -6px; }
html.bar-closed { --bar-h: 0px; }
html.bar-closed .announce { display: none; }

/* ---------- 02 · menu ---------- */
.header {
  position: absolute; top: var(--bar-h); left: 0; right: 0; z-index: 100;
  padding: 30px var(--gutter);
  color: var(--paper);
  pointer-events: none;
}
.header-nav { display: flex; align-items: center; justify-content: space-between; }
.logo { display: inline-flex; align-items: center; gap: 12px; height: 48px; pointer-events: auto; }
.logo-mark { width: 40px; height: 40px; flex: none; }
.logo-word { font-family: var(--sans); font-weight: 400; font-size: 40px; line-height: 1; letter-spacing: -.04em; }
.logo-dot { font-size: .5em; }
.header-actions {
  position: fixed; top: var(--bar-h); right: 0; z-index: 110;
  display: flex; gap: 10px;
  padding: 24px var(--gutter) 0 0;
  pointer-events: auto;
}

/* ---------- 01 · hero ---------- */
.hero {
  position: relative;
  height: 100vh; height: 100svh; min-height: 560px;
  margin-bottom: var(--space-xl);
  color: var(--paper);
}
.hero-bg { position: absolute; inset: 0; background: var(--ink); overflow: hidden; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.hero-inner {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: flex-start;
  padding: 30px var(--gutter);
}
.hero .headline strong { display: inline; }
.hero-corner { position: absolute; right: 0; bottom: 0; z-index: 10; padding: 30px var(--gutter); }
.hero-corner-inner {
  position: relative; display: block;
  width: calc(384 * var(--k)); min-width: 200px; aspect-ratio: 1.4 / 1;
  border-radius: var(--r-pill); overflow: hidden;
}
.hero-corner-inner img { width: 100%; height: 100%; object-fit: cover; }
.plus {
  position: absolute; right: 33.33px; bottom: 33.33px;
  width: calc(100 * var(--k)); min-width: 56px; aspect-ratio: 1;
  display: grid; place-items: center;
  border-radius: 50%; background: var(--paper); color: var(--ink);
  transition: transform var(--dur) ease;
}
.hero-corner-inner:hover .plus { transform: scale(1.06); }

/* ---------- 03/06/08/10 · heading ---------- */
.heading {
  display: flex; flex-direction: column; align-items: center;
  padding: 0 var(--gutter);
  margin-bottom: var(--space-lg);
  text-align: center;
}
.heading .headline { max-width: 1364px; }
.heading-cta { margin-top: var(--space-md); }

/* ---------- 04 · carrossel ---------- */
.carousel { padding: 0 var(--gutter); margin-bottom: var(--space-xl); }
.carousel-inner { position: relative; max-width: 1800px; margin: 0 auto; }
.carousel-items { display: grid; }
.carousel-item {
  grid-area: 1 / 1;
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur-slow) ease;
}
.carousel-item.is-active { opacity: 1; pointer-events: auto; }
.carousel-item img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-lg); }
.carousel-nav {
  position: absolute; top: 0; left: 0; right: 0; z-index: 1;
  display: flex; justify-content: center;
  padding: 30px var(--gutter) 0;
}
.carousel-nav ul {
  display: flex; gap: 20px;
  padding: 24px 30px;
  border-radius: var(--r-sm);
  background: var(--tab-bg);
  color: var(--paper);
  font-size: var(--fs-ui); line-height: 1;
}
.carousel-nav li { opacity: .5; transition: opacity var(--dur) ease; }
.carousel-nav li.is-active, .carousel-nav li:hover { opacity: 1; }
.carousel-nav button { line-height: 1; letter-spacing: -.01em; white-space: nowrap; }
.carousel-cta {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: center;
  padding: 30px var(--gutter);
}

/* ---------- 05 · featured in ---------- */
.logos { padding: 0 var(--gutter); margin-bottom: var(--space-xl); color: var(--concrete); }
.logos-heading { text-align: center; font-size: var(--fs-body); font-weight: 500; margin-bottom: calc(80 * var(--k)); }
.logos-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  column-gap: calc(100 * var(--k)); row-gap: 24px;
  min-height: 30px;
}
.wm { line-height: 30px; white-space: nowrap; }
.wm-gch { font-family: var(--serif); font-size: 30px; font-weight: 400; letter-spacing: -.04em; font-style: italic; }
.wm-tpl { font-family: var(--serif); font-size: 19px; letter-spacing: .18em; }
.wm-tr { font-family: var(--sans); font-size: 28px; font-weight: 500; letter-spacing: -.05em; }
.wm-tr span { font-weight: 300; }
.wm-sg { font-family: var(--sans); font-size: 26px; font-weight: 300; letter-spacing: .02em; text-transform: uppercase; }
.wm-cbq { font-family: var(--sans); font-size: 24px; font-weight: 500; letter-spacing: -.03em; }
.wm-cbq i { font-family: var(--serif); font-weight: 400; }

/* ---------- 07 · reveal ---------- */
.reveal { padding: 0 var(--gutter); margin-bottom: var(--space-xl); }
.reveal-inner {
  position: relative; max-width: 1800px; margin: 0 auto;
  aspect-ratio: 2.02 / 1;
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--mist);
  color: var(--paper);
}
.reveal-item { position: absolute; inset: 0; }
.reveal-item img { width: 100%; height: 100%; object-fit: cover; }
.reveal-item--top { clip-path: inset(0 0 0 var(--pos)); }
.reveal-title {
  position: absolute; bottom: 30px; z-index: 1;
  font-size: var(--fs-body); font-weight: 500; line-height: 1.3; white-space: nowrap;
}
.reveal-title--left { left: 30px; }
.reveal-title--right { left: calc(var(--pos) + 50px); }
.reveal-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 10;
  width: 20px; transform: translateX(-50%);
  background: var(--paper);
  pointer-events: none;
}
.reveal-range {
  position: absolute; inset: 0; z-index: 11;
  width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize;
  -webkit-appearance: none; appearance: none;
}
.reveal-inner:has(.reveal-range:focus-visible) .reveal-handle { outline: 2px solid var(--ink); }

/* ---------- 09 · galeria horizontal ---------- */
.media-group { margin-bottom: var(--space-xl); }
.media-group-scroller { overflow-x: clip; }
.media-group-inner {
  display: flex; gap: 20px;
  padding: 0 var(--gutter);
  overflow-x: auto; scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.media-group-inner::-webkit-scrollbar { display: none; }
.media-card {
  position: relative; flex: none;
  width: calc(738 * var(--k)); min-width: 300px;
  scroll-snap-align: start;
}
.media-card img { width: 100%; aspect-ratio: .83 / 1; object-fit: cover; border-radius: var(--r-lg); }
.media-card-text {
  position: absolute; top: 0; left: 0; right: 0; z-index: 1;
  max-width: 95%;
  padding: var(--space-md);
  color: var(--paper);
  font-size: var(--fs-card); font-weight: 500; line-height: 1.3; letter-spacing: -.01em;
}
.media-card--dark .media-card-text { color: var(--ink); }
html.motion-on .media-group-inner { overflow: visible; scroll-snap-type: none; }

/* ---------- 11 · processo ---------- */
.steps { padding: 0 var(--gutter); margin-bottom: var(--space-xl); }
.steps-inner { display: flex; gap: 20px; max-width: 1800px; margin: 0 auto; }
.steps-left, .steps-right { flex: 1 1 0; aspect-ratio: 1 / 1; border-radius: var(--r-lg); overflow: hidden; }
.steps-left {
  display: flex; align-items: center; justify-content: center;
  background: var(--graphite); color: var(--paper);
}
.steps-list {
  width: 70%;
  font-family: var(--serif); font-size: var(--fs-display); line-height: 1.2; letter-spacing: -.03em;
}
.step-text { opacity: .2; transition: opacity var(--dur) ease; }
.step-text.is-active { opacity: 1; }
.steps-right { position: relative; background: var(--mist); }
.step-media { position: absolute; inset: 0; opacity: 0; transition: opacity var(--dur) ease; }
.step-media.is-active { opacity: 1; }
.step-media img { width: 100%; height: 100%; object-fit: cover; }
/* sem JS: todos os passos acesos, só a primeira imagem */
html:not(.motion-on) .step-text { opacity: 1; }

/* ---------- 12 · media headline ---------- */
.media-headline { padding: 0 var(--gutter); margin-bottom: var(--space-xl); }
.media-headline-inner { position: relative; max-width: 1800px; margin: 0 auto; color: var(--paper); }
.media-headline-bg { background: var(--ink); border-radius: var(--r-lg); overflow: hidden; }
.media-headline-bg img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; opacity: .9; }
.media-headline-content {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 30px var(--gutter);
  text-align: center;
}
.media-headline-cta { position: absolute; left: 0; right: 0; bottom: 30px; display: flex; justify-content: center; }

/* ---------- 13 · rodapé ---------- */
.footer {
  background: var(--graphite); color: var(--paper);
  font-size: var(--fs-ui); font-weight: 300; line-height: 1.3; letter-spacing: -.01em;
  padding: var(--space-xl) var(--gutter) 30px;
}
.footer-inner { max-width: 1800px; margin: 0 auto; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.footer-col--left { width: 300px; }
.footer-right { width: min(900px, 50%); }
.footer-right-top { display: flex; gap: 20px; align-items: flex-start; }
.footer-right-top ul { flex: 1 1 0; }
.footer li { padding: 20px 0; border-top: 1px solid var(--ash); line-height: 16px; }
.footer li:last-child { border-bottom: 1px solid var(--ash); }
.footer li a { display: block; transition: opacity var(--dur) ease; }
.footer li a:hover { opacity: .6; }

.newsletter {
  display: grid; grid-template-columns: 1fr 2fr; column-gap: 20px;
  margin-top: 50px;
}
.newsletter-title { padding: 20px 0; border-top: 1px solid var(--ash); }
.newsletter-form {
  display: flex; justify-content: space-between; gap: 20px;
  border-top: 1px solid var(--ash); border-bottom: 1px solid var(--ash);
}
.newsletter-form input {
  flex: 1; min-width: 0;
  padding: 20px 0; border: 0; background: transparent; color: var(--paper);
  font: inherit; letter-spacing: inherit;
}
.newsletter-form input::placeholder { color: var(--ash); }
.newsletter-form input:focus-visible { outline: none; }
.newsletter-form:focus-within { border-bottom-color: var(--paper); }
.newsletter-form button { padding: 20px 0; color: var(--ash); text-align: right; transition: color var(--dur) ease; }
.newsletter-form button:hover { color: var(--paper); }
.newsletter-status { grid-column: 2; min-height: 20px; padding-top: 8px; color: var(--concrete); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 20px;
  margin-top: calc(80 * var(--k));
}
.footer-logo { display: inline-flex; align-items: center; gap: 24px; color: var(--paper); }
.footer-logo .logo-mark { width: 96px; height: 96px; }
.footer-logo .logo-word { font-size: clamp(56px, 5.2vw, 100px); font-weight: 400; letter-spacing: -.05em; }
.footer-logo sup { font-size: .16em; vertical-align: top; margin-left: 4px; position: relative; top: .9em; }
.footer-legal { display: flex; gap: 20px; width: min(900px, 50%); }
.footer-legal p { flex: 1 1 0; }
.footer-legal strong { display: block; font-weight: 300; color: var(--ash); }
.footer-legal span { display: block; }

/* ---------- lightbox (miniatura do hero) ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 400;
  display: grid; place-items: center;
  padding: var(--gutter);
  background: rgba(32, 32, 32, .92);
}
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 90vh; width: auto; border-radius: var(--r-lg); }
.lightbox-close {
  position: absolute; top: 24px; right: 24px;
  width: 48px; height: 48px; display: grid; place-items: center;
  border-radius: 50%; background: var(--paper); color: var(--ink);
}

/* ---------- responsivo (a captura só mediu 1920) ---------- */
@media (max-width: 1100px) {
  .header-actions li:not(:last-child) { display: none; }
  .footer-top { flex-direction: column; gap: 50px; }
  .footer-col--left, .footer-right { width: 100%; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 40px; }
  .footer-legal { width: 100%; }
}

@media (max-width: 720px) {
  :root { --gutter: 16px; --space-xl: 96px; --space-lg: 64px; --space-md: 32px; --bar-h: 64px; }
  .announce { font-size: 13px; }
  .header { padding: 20px var(--gutter); }
  .logo { height: 36px; gap: 8px; }
  .logo-mark { width: 30px; height: 30px; }
  .logo-word { font-size: 30px; }
  .header-actions { padding: 14px var(--gutter) 0 0; }
  .header-actions .btn { padding: 12px 14px; font-size: 14px; }

  .hero-inner { align-items: flex-end; padding-bottom: 200px; }
  .hero .headline strong { display: block; }
  .hero-corner { padding: 16px var(--gutter); }
  .hero-corner-inner { min-width: 0; width: 180px; border-radius: 40px; }
  .plus { right: 14px; bottom: 14px; min-width: 0; width: 44px; }

  .carousel-item img { aspect-ratio: 3 / 4; }
  .carousel-nav { padding: 16px 16px 0; }
  .carousel-nav ul { gap: 14px; padding: 16px 18px; font-size: 14px; }
  .carousel-cta { padding: 16px; }

  .logos-row { column-gap: 32px; }
  .wm-gch { font-size: 24px; } .wm-tpl { font-size: 15px; } .wm-tr { font-size: 22px; }
  .wm-sg { font-size: 20px; } .wm-cbq { font-size: 19px; }

  .reveal-inner { aspect-ratio: 3 / 4; }
  .reveal-title { font-size: 15px; bottom: 16px; white-space: normal; max-width: 40%; }
  .reveal-title--left { left: 16px; }
  .reveal-title--right { left: auto; right: 16px; text-align: right; }
  .reveal-handle { width: 8px; }

  .media-card { width: 80vw; min-width: 0; }
  .media-card-text { padding: 24px; }

  .steps-inner { flex-direction: column; gap: 12px; }
  .steps-left { flex: none; aspect-ratio: auto; padding: 28px 0; }
  .steps-list { width: auto; font-size: clamp(26px, 7.5vw, 34px); }
  .steps-right { flex: none; width: 100%; max-height: 52vh; aspect-ratio: 1 / 1; margin: 0 auto; max-width: 52vh; }

  .media-headline-bg img { aspect-ratio: 3 / 4; }
  .media-headline-cta { bottom: 16px; }

  .footer-right-top { flex-direction: column; align-items: stretch; gap: 0; }
  .footer-right-top ul { flex: none; }
  .footer-right-top ul li:last-child { border-bottom: 0; }
  .footer-right-top ul:last-child li:last-child { border-bottom: 1px solid var(--ash); }
  .newsletter { grid-template-columns: 1fr; }
  .newsletter-title { border-top: 0; padding-bottom: 8px; }
  .newsletter-status { grid-column: 1; }
  .footer-legal { flex-direction: column; }
  .footer-logo .logo-mark { width: 56px; height: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
