/* Variação a-baixo/1 — Base Dark Portfolio (Continuidade Editorial + Case Studies Monumentais)
 * Header + Hero IDÊNTICOS a variacoes/a/ · Parte inferior redesenhada sobre Sala escura + tokens.css.
 * Motion estrito em transform/opacity · Fallback mobile e prefers-reduced-motion.
 */

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--ds-bg-deep);
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--ds-line-strong) var(--ds-bg-deep);
  scrollbar-width: thin;
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--ds-bg-canvas);
  color: var(--ds-text-primary);
  font-family: var(--ds-font-sans);
  font-size: var(--ds-fs-base);
  line-height: var(--ds-lh-body);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection { background: var(--ds-accent); color: var(--ds-bg-deep); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--ds-bg-deep); }
::-webkit-scrollbar-thumb { background: var(--ds-line-strong); border-radius: 999px; border: 2px solid var(--ds-bg-deep); }

:focus-visible { outline: 2px solid var(--ds-accent); outline-offset: 3px; border-radius: 4px; }
:focus:not(:focus-visible) { outline: none; }

h1, h2, h3, h4 { margin: 0; font-weight: var(--ds-fw-medium); text-wrap: balance; }
p, figure, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }

.wrap { width: min(100% - 2 * var(--ds-gutter), var(--ds-container-max)); margin-inline: auto; }

.skip-link {
  position: absolute; left: var(--ds-gutter); top: -100px; z-index: 90;
  background: var(--ds-text-primary); color: var(--ds-bg-deep);
  padding: 10px 16px; border-radius: var(--ds-radius-sm); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ===== HEADER + HERO IDÊNTICOS A variacoes/a/ (NÃO ALTERAR) ===== */
.draft-strip {
  background: var(--ds-bg-deep);
  border-bottom: 1px solid var(--ds-line-subtle);
  font-size: var(--ds-fs-micro);
  color: var(--ds-text-muted);
}
.draft-inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
  padding-block: 8px;
}
.draft-tag {
  font-family: var(--ds-font-mono);
  color: var(--ds-accent);
  border: 1px solid var(--ds-accent-border);
  background: var(--ds-accent-tint);
  padding: 2px 8px;
  border-radius: var(--ds-radius-xs);
}

.site-header {
  position: sticky; top: 0; z-index: var(--ds-z-sticky);
  background: rgba(12, 11, 12, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ds-line-subtle);
}
.header-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px 24px; min-height: var(--ds-header-h); padding-block: 10px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; font-weight: var(--ds-fw-bold);
  font-size: 1.0625rem; letter-spacing: -0.015em; flex: none;
}
.brand-mark { width: 30px; height: 30px; }

.header-meta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--ds-fs-sm); color: var(--ds-text-muted);
  padding-inline: 16px; border-inline: 1px solid var(--ds-line-subtle);
}
.status-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #e2b65c; flex: none;
}

.main-nav ul { display: flex; align-items: center; gap: 20px; }
.main-nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: var(--ds-fs-sm); color: var(--ds-text-secondary);
  text-decoration: none;
  transition: color var(--ds-dur-fast) var(--ds-ease-out);
}
.main-nav a:hover, .main-nav a[aria-current="true"] { color: var(--ds-text-primary); }

.cta-pill {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 46px; padding: 5px 20px 5px 6px;
  border-radius: var(--ds-radius-pill);
  background: var(--ds-cta-bg); color: var(--ds-cta-ink);
  font-weight: var(--ds-fw-medium); font-size: 0.9375rem; line-height: 1;
  text-decoration: none; flex: none;
  transition: transform var(--ds-dur-fast) var(--ds-ease-out), opacity var(--ds-dur-fast) var(--ds-ease-out);
}
.cta-circle {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--ds-cta-icon-bg); color: var(--ds-cta-icon-ink);
  display: grid; place-items: center; flex: none;
}
.cta-circle svg {
  width: 15px; height: 15px;
  transition: transform var(--ds-dur-fast) var(--ds-ease-out);
}
.cta-pill:hover { transform: translateY(-1px); }
.cta-pill:hover .cta-circle svg { transform: translateX(3px); }
.cta-pill:active { transform: translateY(0); }
.cta-label-short { display: none; }
.cta-lg { min-height: 52px; padding: 6px 24px 6px 7px; font-size: 1rem; }
.cta-lg .cta-circle { width: 38px; height: 38px; }

.hero-stage {
  position: relative;
  background: radial-gradient(58% 62% at 50% 42%, #222021 0%, var(--ds-hero-vignette) 54%, var(--ds-hero-stage) 100%);
  min-height: clamp(620px, calc(100vh - 108px), 780px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 28px;
  padding-bottom: clamp(32px, 4vw, 52px);
  border-bottom: 1px solid var(--ds-line-subtle);
  overflow: hidden;
}
.orbit-layer {
  position: absolute; left: 0; right: 0; top: 26%; z-index: 1; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 9%, #000 91%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 9%, #000 91%, transparent 100%);
}
.orbit-perspective { perspective: var(--ds-perspective-stage); transform-style: preserve-3d; }
.orbit-track { display: flex; width: max-content; will-change: transform; animation: orbitRing 34s linear infinite; }
.hero-stage.is-offscreen .orbit-track,
.orbit-layer:hover .orbit-track,
.orbit-layer:focus-within .orbit-track { animation-play-state: paused; }
.orbit-group { display: flex; align-items: center; gap: 28px; padding-right: 28px; }
.orbit-card {
  display: flex; flex-direction: column; width: clamp(220px, 19vw, 276px); flex: none;
  text-decoration: none; background: var(--ds-bg-surface);
  border: 1px solid rgba(237, 233, 228, 0.12); border-radius: var(--ds-radius-md);
  overflow: hidden; box-shadow: var(--ds-shadow-card-float);
  opacity: 0.86; transform: rotateY(-10deg) scale(0.97);
  transition: transform var(--ds-dur-ui) var(--ds-ease-out), opacity var(--ds-dur-ui) var(--ds-ease-out);
}
.orbit-card:nth-child(even) { transform: rotateY(10deg) translateY(8px) scale(0.95); }
.orbit-card:hover, .orbit-card:focus-visible { opacity: 1; transform: rotateY(0deg) translateY(-4px) scale(1.02); border-color: var(--ds-accent-border); }
.orbit-media { aspect-ratio: 16 / 10; background: var(--ds-bg-deep); overflow: hidden; }
.orbit-media img, .orbit-media svg { width: 100%; height: 100%; object-fit: cover; }
.orbit-cap {
  padding: 8px 12px; font-family: var(--ds-font-mono); font-size: var(--ds-fs-micro);
  color: var(--ds-text-secondary); border-top: 1px solid var(--ds-line-subtle);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@keyframes orbitRing { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }

.hero-focal {
  position: absolute; left: 50%; bottom: 0; z-index: 2; transform: translateX(-50%);
  width: clamp(640px, 60vw, 880px); aspect-ratio: 920 / 800; pointer-events: none;
  display: flex; align-items: flex-end; justify-content: center;
}
.hero-portrait {
  display: block; width: 100%; height: 100%;
  -webkit-mask-image:
    radial-gradient(ellipse 47% 58% at 50% 56%, #000 54%, rgba(0, 0, 0, 0.86) 72%, transparent 98%),
    linear-gradient(180deg, transparent 0%, #000 12%, #000 84%, rgba(0, 0, 0, 0.45) 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    radial-gradient(ellipse 47% 58% at 50% 56%, #000 54%, rgba(0, 0, 0, 0.86) 72%, transparent 98%),
    linear-gradient(180deg, transparent 0%, #000 12%, #000 84%, rgba(0, 0, 0, 0.45) 100%);
  mask-composite: intersect;
}
.hero-portrait img {
  display: block; width: 100%; height: 100%; object-fit: contain; object-position: center bottom;
  animation: heroPortraitSettle var(--ds-dur-reveal) var(--ds-ease-out) both;
}
.hero-bottom-fade {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(12, 11, 12, 0) 48%, rgba(12, 11, 12, 0.72) 82%, var(--ds-bg-canvas) 100%),
    radial-gradient(45% 48% at 12% 88%, rgba(12, 11, 12, 0.82) 0%, transparent 100%),
    radial-gradient(45% 48% at 88% 88%, rgba(12, 11, 12, 0.82) 0%, transparent 100%);
}
.hero-overlay {
  position: relative; z-index: 4; display: grid;
  grid-template-columns: minmax(0, 440px) minmax(0, 360px);
  justify-content: space-between; align-items: end; gap: 24px 40px;
  animation: heroContentIn var(--ds-dur-reveal) var(--ds-ease-out) both;
}
.hero-eyebrow {
  font-family: var(--ds-font-mono); font-size: var(--ds-fs-micro);
  letter-spacing: var(--ds-ls-eyebrow); text-transform: uppercase;
  color: var(--ds-text-muted); margin-bottom: 12px;
}
.hero-stage h1 {
  font-family: var(--ds-font-serif); font-weight: 400;
  font-size: clamp(2.25rem, 1.3rem + 2.7vw, 3.65rem); line-height: 1.03;
  letter-spacing: -0.025em; color: var(--ds-text-primary);
}
.hero-stage h1 em { font-style: italic; color: var(--ds-accent); }
.hero-actions { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.hero-br { display: grid; gap: 12px; justify-items: start; }
.hero-quote { font-family: var(--ds-font-serif); font-size: clamp(1rem, 0.92rem + 0.35vw, 1.18rem); line-height: 1.45; color: var(--ds-text-muted); }
.hero-quote strong { color: var(--ds-text-primary); font-weight: 500; }
.link-quiet {
  display: inline-flex; align-items: center; min-height: 44px; font-size: var(--ds-fs-sm);
  color: var(--ds-text-secondary); text-decoration-color: var(--ds-line-strong);
  transition: color var(--ds-dur-fast) var(--ds-ease-out);
}
.link-quiet:hover { color: var(--ds-accent); }
@keyframes heroPortraitSettle { from { opacity: 0.9; transform: scale(1.02); } to { opacity: 1; transform: scale(1); } }
@keyframes heroContentIn { from { opacity: 0.92; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ===== ABAIXO DO HERO — VARIAÇÃO 1 (BASE DARK PORTFOLIO EDITORIAL) ===== */

/* Reveal progressivo controlado só por transform/opacity */
html[data-js="1"] [data-reveal].will-reveal {
  opacity: 0.12;
  transform: translateY(22px);
}
[data-reveal] {
  transition: transform var(--ds-dur-reveal) var(--ds-ease-out), opacity var(--ds-dur-reveal) var(--ds-ease-out);
}
html[data-js="1"] [data-reveal].will-reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* OFERTAS: Arco arquitetônico central + 4 frentes conectadas */
.dp-offers {
  padding-block: clamp(64px, 8vw, 112px);
  background:
    linear-gradient(90deg, rgba(237, 233, 228, 0.025) 1px, transparent 1px) center / 240px 100%,
    var(--ds-bg-deep);
  border-bottom: 1px solid var(--ds-line-subtle);
}
.dp-arch-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px) minmax(0, 1fr);
  gap: 32px clamp(24px, 3.5vw, 48px);
  align-items: center;
}
.dp-col { display: grid; gap: clamp(32px, 4vw, 56px); }
.dp-pillar { display: grid; gap: 10px; }
.dp-pillar-top {
  display: flex; align-items: center; gap: 14px;
}
.dp-num {
  font-family: var(--ds-font-serif);
  font-size: clamp(2rem, 1.5rem + 1.4vw, 2.75rem);
  line-height: 1;
  color: var(--ds-accent);
  flex: none;
}
.dp-connector {
  flex: 1 1 auto;
  height: 1px;
  background: var(--ds-line-default);
  position: relative;
}
.dp-connector::after {
  content: "";
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ds-accent);
}
.dp-connector-l::after { right: auto; left: 0; }
.dp-pillar h3 { font-size: 1.25rem; letter-spacing: -0.015em; }
.dp-pillar p { color: var(--ds-text-secondary); font-size: 0.9375rem; line-height: 1.6; }
.dp-pillar strong { color: var(--ds-text-primary); font-weight: 500; }

.dp-arch-center {
  background: linear-gradient(180deg, var(--palette-espresso) 0%, var(--ds-bg-canvas) 100%);
  border: 1px solid var(--ds-accent-border);
  border-radius: var(--ds-radius-arch);
  padding: clamp(56px, 6vw, 84px) clamp(24px, 3vw, 36px) clamp(32px, 4vw, 44px);
  text-align: center;
  display: grid;
  gap: 18px;
  align-content: center;
  min-height: 430px;
}
.dp-arch-center h2 {
  font-family: var(--ds-font-serif);
  font-weight: 400;
  font-size: clamp(1.85rem, 1.3rem + 1.5vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.dp-arch-center h2 em { font-style: italic; color: var(--ds-accent); }
.dp-arch-center p { color: var(--ds-text-secondary); font-size: 0.95rem; line-height: 1.6; }
.dp-arch-sign {
  font-family: var(--ds-font-mono);
  font-size: var(--ds-fs-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ds-text-secondary);
  padding-top: 12px;
  border-top: 1px solid var(--ds-line-subtle);
}

/* CASES: Cards grandes de Case Study */
.dp-cases {
  padding-block: clamp(64px, 8vw, 112px);
  background: var(--ds-bg-canvas);
  border-bottom: 1px solid var(--ds-line-subtle);
}
.dp-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 16px 48px;
  align-items: end;
  margin-bottom: clamp(36px, 5vw, 60px);
}
.dp-section-head h2 {
  font-family: var(--ds-font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 1.3rem + 2vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
}
.dp-section-head p { color: var(--ds-text-secondary); max-width: 54ch; }

.dp-case-stack { display: grid; gap: clamp(32px, 4.5vw, 56px); }

.dp-study-card {
  background: var(--ds-bg-surface);
  border: 1px solid var(--ds-line-default);
  border-radius: var(--ds-radius-lg);
  overflow: hidden;
}
.dp-study-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 14px 24px;
  padding: clamp(20px, 2.5vw, 28px) clamp(20px, 3vw, 36px);
  border-bottom: 1px solid var(--ds-line-subtle);
  background: var(--ds-bg-canvas);
}
.dp-study-id { display: flex; align-items: baseline; gap: 18px; }
.dp-study-num {
  font-family: var(--ds-font-serif);
  font-size: clamp(1.85rem, 1.3rem + 1.4vw, 2.6rem);
  line-height: 1;
  color: var(--ds-accent);
  flex: none;
}
.dp-study-bar h3 { font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.65rem); line-height: 1.18; letter-spacing: -0.02em; }
.dp-study-meta {
  display: block; margin-top: 4px;
  font-size: var(--ds-fs-sm); color: var(--ds-text-muted);
}
.dp-study-badge {
  font-family: var(--ds-font-mono);
  font-size: var(--ds-fs-micro);
  color: var(--ds-text-secondary);
  border: 1px solid var(--ds-line-default);
  background: var(--ds-bg-surface);
  padding: 5px 12px;
  border-radius: var(--ds-radius-pill);
}

.dp-study-media {
  background: var(--ds-bg-deep);
  border-bottom: 1px solid var(--ds-line-subtle);
}
.dp-study-media img, .dp-study-media svg { width: 100%; display: block; max-height: 620px; object-fit: cover; }
.dp-study-media figcaption {
  padding: 12px clamp(20px, 3vw, 36px);
  border-top: 1px solid var(--ds-line-subtle);
  font-size: var(--ds-fs-micro);
  color: var(--ds-text-muted);
}

.dp-study-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px clamp(24px, 4vw, 48px);
  padding: clamp(22px, 3vw, 36px);
}
.dp-study-cols h4 {
  font-family: var(--ds-font-mono);
  font-size: var(--ds-fs-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ds-accent);
  margin-bottom: 8px;
}
.dp-study-cols p { color: var(--ds-text-secondary); line-height: 1.6; max-width: 58ch; }
.dp-study-cols strong { color: var(--ds-text-primary); font-weight: 500; }

/* SOBRE EDITORIAL */
.dp-about {
  padding-block: clamp(64px, 8vw, 104px);
  background: var(--ds-bg-deep);
  border-bottom: 1px solid var(--ds-line-subtle);
}
.dp-about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 28px clamp(32px, 5vw, 64px);
  align-items: start;
}
.dp-about-lead { display: grid; gap: 16px; }
.dp-about-lead h2 { font-size: var(--ds-fs-section); letter-spacing: -0.025em; }
.dp-about-serif {
  font-family: var(--ds-font-serif);
  font-style: italic;
  font-size: clamp(1.3rem, 1.05rem + 0.9vw, 1.8rem);
  line-height: 1.35;
  color: var(--ds-text-primary);
}
.dp-about-copy { display: grid; gap: 18px; color: var(--ds-text-secondary); font-size: var(--ds-fs-lead); max-width: 60ch; }
.dp-about-copy strong { color: var(--ds-text-primary); font-weight: 500; }

/* CTA FINAL MONUMENTAL */
.dp-cta-final {
  padding-block: clamp(64px, 8vw, 108px);
  background: var(--ds-bg-canvas);
}
.dp-cta-shell {
  background: radial-gradient(65% 80% at 50% 0%, var(--palette-espresso) 0%, var(--ds-bg-surface) 72%);
  border: 1px solid var(--ds-line-default);
  border-radius: var(--ds-radius-lg);
  padding: clamp(36px, 6vw, 72px) clamp(24px, 4vw, 48px);
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 20px;
}
.dp-cta-shell h2 {
  font-family: var(--ds-font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 1.3rem + 2.2vw, 3.25rem);
  line-height: 1.06;
  max-width: 18ch;
}
.dp-cta-shell p { color: var(--ds-text-secondary); max-width: 52ch; font-size: var(--ds-fs-lead); }
.dp-phone { font-family: var(--ds-font-mono); font-size: var(--ds-fs-micro); color: var(--ds-text-secondary); }

/* Footer */
.site-footer {
  background: var(--ds-bg-deep);
  border-top: 1px solid var(--ds-line-subtle);
  padding-block: 24px;
  font-size: var(--ds-fs-sm);
  color: var(--ds-text-muted);
}
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.footer-inner a:hover { color: var(--ds-accent); }

/* Responsivo (Header + Hero preservados de variacoes/a/ + parte inferior adaptada) */
@media (max-width: 1040px) {
  .header-meta { display: none; }
  .dp-arch-grid { grid-template-columns: minmax(0, 1fr); }
  .dp-arch-center { order: -1; min-height: 0; border-radius: var(--ds-radius-lg); padding: 36px 24px; }
  .dp-connector { display: none; }
}

@media (max-width: 899px) {
  .dp-section-head, .dp-study-cols, .dp-about-grid { grid-template-columns: minmax(0, 1fr); }
  .main-nav { display: none; }
  .cta-compact .cta-label-full { display: none; }
  .cta-compact .cta-label-short { display: inline; }
}

@media (max-width: 768px) {
  .hero-stage { min-height: 0; display: grid; grid-template-rows: 276px auto; padding-top: 0; padding-bottom: 28px; }
  .orbit-layer { top: 66px; opacity: 0.65; }
  .orbit-track { animation: none; justify-content: center; transform: translate3d(-110px, 0, 0); }
  .orbit-clone { display: none; }
  .orbit-group { gap: 12px; padding-right: 0; }
  .orbit-card { width: 128px; transform: none; box-shadow: none; opacity: 0.78; }
  .orbit-card:nth-child(even) { transform: none; }
  .orbit-cap { display: none; }
  .hero-focal { position: relative; grid-row: 1; left: auto; bottom: auto; transform: none; width: 370px; height: 322px; margin-inline: auto; align-self: end; }
  .hero-bottom-fade { height: 276px; bottom: auto; background: linear-gradient(180deg, rgba(12, 11, 12, 0) 56%, rgba(20, 18, 19, 0.85) 90%, var(--ds-bg-canvas) 100%); }
  .hero-overlay { grid-row: 2; grid-template-columns: minmax(0, 1fr); gap: 14px; padding-top: 10px; }
  .hero-eyebrow { margin-bottom: 8px; }
  .hero-stage h1 { font-size: 2.125rem; line-height: 1.05; }
  .hero-actions { margin-top: 16px; }
  .hero-br { gap: 6px; }
  .hero-quote { font-size: 0.975rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0ms !important; scroll-behavior: auto !important; }
  .orbit-track { animation: none !important; transform: none !important; justify-content: center; width: 100%; }
  .orbit-clone { display: none !important; }
  .orbit-group { justify-content: center; padding-right: 0; }
  html[data-js="1"] [data-reveal].will-reveal { opacity: 1; transform: none; }
}
