/* =====================================================================
   Creatio Studio — protótipo "O ponto"
   O ponto amarelo de "Ideias que movem marcas." percorre o site e marca,
   em cada seção, onde está a decisão.
   ===================================================================== */

@font-face { font-family: "Bricolage Grotesque"; src: url("/assets/fonts/bricolage-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("/assets/fonts/bricolage-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/assets/fonts/instrument-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/assets/fonts/instrument-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/assets/fonts/instrument-400i.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

@view-transition { navigation: auto; }

:root {
  color-scheme: light;
  --navy: #101c4c;
  --navy-deep: #0a1131;
  --yellow: #c99524;
  --yellow-hover: #d6a63f;
  --yellow-ink: #89620d;
  --paper: #f5f5f2;
  --paper-2: #ebebe6;
  --text-2: #5d6276;
  --line: #d9dce3;
  --on-dark-2: rgba(255, 255, 255, .74);
  --line-dark: rgba(255, 255, 255, .18);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --g: clamp(16px, 3.2vw, 48px);
  --nav-h: 64px;
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --text: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --fs-hero: clamp(3rem, 18.4vw, 6.6rem);
  --fs-h2: clamp(2.4rem, 5.6vw, 6rem);
  --fs-h3: clamp(1.75rem, 3.1vw, 3.2rem);
  --fs-lead: clamp(1.3rem, 1.75vw, 1.75rem);
  --fs-manifesto: clamp(1.9rem, 3.9vw, 4rem);
}

@media (min-width: 900px) {
  :root { --nav-h: 76px; --fs-hero: min(12.2vw, 13.5rem); }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--nav-h); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ol, ul, dl, dd, figure, fieldset, legend { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--yellow); color: var(--navy-deep); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 3px; }
[tabindex="-1"]:focus { outline: none; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nowrap { white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip {
  position: fixed; left: var(--g); top: 12px; z-index: 200;
  padding: 10px 18px; border-radius: 999px;
  background: var(--navy-deep); color: #fff; font-weight: 700; text-decoration: none;
  transform: translateY(-180%); transition: transform .35s var(--ease);
}
.skip:focus { transform: none; }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- O ponto ---------- */
.ponto {
  position: fixed; left: 0; top: 0; z-index: 40;
  width: 160px; height: 160px; margin: -80px 0 0 -80px;
  border-radius: 50%; background: var(--yellow);
  pointer-events: none; display: none;
  transform: translate3d(-400px, -400px, 0) scale(0);
  will-change: transform;
}
html.motion .ponto { display: block; }
html.menu-open .ponto { opacity: 0; }

/* Lugar do ponto dentro do texto: ocupa o espaço de um ponto final. */
.slot {
  display: inline-block; position: relative;
  width: .2em; height: .18em; margin-left: .035em;
  vertical-align: baseline;
}
.slot::before {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: .18em; height: .18em; border-radius: 50%;
  background: var(--yellow);
}
html.motion .slot::before { opacity: 0; }

/* Anel: possibilidade. O ponto dentro dele: escolha. */
.ring {
  position: relative; display: inline-block; flex: none;
  width: 14px; height: 14px; border-radius: 50%;
  border: 1.5px solid currentColor;
}
.ring::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 56%; height: 56%; border-radius: 50%;
  background: var(--yellow); transform: scale(0);
  transition: transform .35s var(--ease);
}
html:not(.motion) .stair-row.is-active .ring::after,
html:not(.motion) .wp-case.is-active .wp-meta .ring::after,
html:not(.motion) input:checked + .ring::after { transform: scale(1); }

/* Abertura: a tela inteira é o ponto, que se contrai até o seu lugar. */
.intro-layer { display: none; position: fixed; inset: 0; z-index: 100; background: var(--yellow); pointer-events: none; }
html.intro .intro-layer { display: block; }

/* ---------- Tipografia ---------- */
.label { font-weight: 700; font-size: .875rem; line-height: 1.35; color: var(--text-2); }
[data-tone="dark"] .label { color: var(--on-dark-2); }
.sec-title {
  font-family: var(--display); font-weight: 700;
  font-size: var(--fs-h2); line-height: .95; letter-spacing: -.035em;
  text-wrap: balance;
}
.sec-lead { font-size: clamp(1.0625rem, 1.2vw, 1.25rem); line-height: 1.5; color: var(--text-2); max-width: 34em; }
[data-tone="dark"] .sec-lead { color: var(--on-dark-2); }

/* ---------- Links e botões ---------- */
.link {
  font-weight: 700; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat;
  padding-bottom: 3px;
  transition: background-size .55s var(--ease);
}
.link:hover { background-size: 0 1.5px; background-position: 100% 100%; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px;
  background: var(--navy-deep); color: #fff;
  font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center;
  cursor: pointer;
  transition: background-color .3s var(--ease), transform .45s var(--ease), opacity .3s;
}
.btn:hover { background: var(--navy); }
.btn:active { transform: scale(.97); }
.btn--light { background: #fff; color: var(--navy-deep); }
.btn--light:hover { background: var(--paper); }
.btn[disabled] { opacity: .4; cursor: not-allowed; transform: none; }
.btn:focus-visible { outline-color: var(--navy-deep); }
[data-tone="dark"] .btn:focus-visible { outline-color: #fff; }

.pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 20px; border-radius: 999px;
  background: var(--yellow); color: var(--navy-deep);
  font-weight: 700; font-size: .9375rem; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: background-color .3s var(--ease), transform .45s var(--ease);
}
.pill:hover { background: var(--yellow-hover); }
.pill:active { transform: scale(.97); }

.link-btn {
  background: none; border: 0; padding: 10px 2px; cursor: pointer;
  font-weight: 700; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px;
}

/* ---------- Navegação ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px);
  height: var(--nav-h); padding: 0 var(--g);
  color: var(--navy);
  transition: color .45s var(--ease);
}
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--paper); opacity: 0;
  transition: opacity .45s var(--ease), background-color .45s var(--ease);
}
.nav.is-scrolled::before { opacity: 1; }
.nav[data-tone="dark"] { color: #fff; }
.nav[data-tone="dark"]::before { background: var(--navy-deep); }
html.menu-open .nav::before { opacity: 0; }

.nav-logo { display: block; width: clamp(96px, 8vw, 118px); padding: 8px 0; color: inherit; }
.nav-logo svg { width: 100%; height: auto; fill: currentColor; }
.nav-links { display: none; gap: clamp(20px, 2.2vw, 36px); margin-left: auto; }
.nav-links a { position: relative; padding: 8px 0; font-weight: 700; font-size: .9375rem; text-decoration: none; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: 100% 50%;
  transition: transform .5s var(--ease);
}
.nav-links a:hover::after, .nav-links a.is-current::after { transform: scaleX(1); transform-origin: 0 50%; }
.nav-cta { margin-left: auto; }
.nav-cta:focus-visible { outline-color: currentColor; }

.nav-toggle {
  display: inline-flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 2px 0 10px; border: 0; background: none; cursor: pointer;
  font-weight: 700; font-size: .9375rem;
}
.nav-toggle-icon { position: relative; width: 22px; height: 12px; }
.nav-toggle-icon i { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .45s var(--ease), top .45s var(--ease); }
.nav-toggle-icon i:first-child { top: 2px; }
.nav-toggle-icon i:last-child { top: 9px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon i:first-child { top: 5.5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon i:last-child { top: 5.5px; transform: rotate(-45deg); }

@media (max-width: 479px) {
  .nav-cta { display: none; }
  .nav-toggle { margin-left: auto; }
}
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-cta { margin-left: 0; }
  .nav-toggle { display: none; }
}
html.menu-open { overflow: hidden; }
html:not(.js) .nav { position: absolute; height: auto; min-height: var(--nav-h); flex-wrap: wrap; padding-block: 10px; }
html:not(.js) .nav-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
html:not(.js) .nav-toggle { display: none; }

.menu {
  position: fixed; inset: 0; z-index: 45;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  padding: calc(var(--nav-h) + 28px) var(--g) calc(28px + env(safe-area-inset-bottom));
  background: var(--navy-deep); color: #fff; overflow-y: auto;
}
.menu[hidden] { display: none; }
.menu ul { display: grid; gap: 2px; }
.menu ul a {
  display: inline-block; padding: 4px 0;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2.4rem, 11vw, 4.2rem); line-height: 1.02; letter-spacing: -.035em;
  text-decoration: none;
}
.menu-foot { display: grid; gap: 18px; justify-items: start; }
.menu-mail { color: var(--on-dark-2); font-weight: 700; text-decoration: none; }
html.motion .menu.is-open li { animation: rise .7s var(--ease) both; }
html.motion .menu.is-open li:nth-child(2) { animation-delay: .04s; }
html.motion .menu.is-open li:nth-child(3) { animation-delay: .08s; }
html.motion .menu.is-open li:nth-child(4) { animation-delay: .12s; }
html.motion .menu.is-open li:nth-child(5) { animation-delay: .16s; }
@keyframes rise { from { opacity: 0; transform: translateY(36%); } }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto auto auto;
  padding: calc(var(--nav-h) + 14px) var(--g) clamp(28px, 5vh, 56px);
  overflow-x: clip;
}
.hero-top {
  grid-row: 1; display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  font-weight: 700; font-size: .875rem; line-height: 1.35; color: var(--text-2);
}
.hero-clock { white-space: nowrap; font-variant-numeric: tabular-nums; }
.clock { margin-left: .45em; color: var(--navy); font-variant-numeric: tabular-nums; }
.clock:empty { display: none; }
.hero-stage { display: contents; }
.hero-title {
  grid-row: 3; padding-top: 28px;
  font-family: var(--display); font-weight: 700;
  font-size: var(--fs-hero); line-height: .88; letter-spacing: -.045em;
  margin-left: -.035em;
}
.line { display: block; overflow: hidden; padding: 0 .08em .15em 0; margin-bottom: -.15em; }
.line-in { display: block; }
html.motion .hero .line-in { transform: translate3d(0, 110%, 0); }
html.motion .hero.is-in .line-in { transform: none; transition: transform 1.2s var(--ease); }
html.motion .hero.is-in .line:nth-child(2) .line-in { transition-delay: .12s; }
html.motion .hero .hero-top,
html.motion .hero .hero-foot,
html.motion .hero .reel { opacity: 0; transform: translate3d(0, 18px, 0); }
html.motion .hero.is-in .hero-top,
html.motion .hero.is-in .hero-foot { opacity: 1; transform: none; transition: opacity 1s var(--ease) .45s, transform 1.2s var(--ease) .45s; }
html.motion .hero.is-in .reel { opacity: 1; transform: none; transition: opacity 1s var(--ease) .6s, transform 1.2s var(--ease) .6s; }

.hero-foot {
  grid-row: 4; display: grid; gap: 18px;
  margin-top: clamp(28px, 5vh, 52px); padding-top: 20px;
  border-top: 1px solid var(--line);
}
.hero-lead { font-family: var(--display); font-size: var(--fs-lead); line-height: 1.12; letter-spacing: -.018em; }
.hero-sub { max-width: 31em; color: var(--text-2); }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; padding-top: 4px; }

.reel { grid-row: 5; margin-top: 44px; }
.reel-frame {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 3 / 2; border-radius: 6px; background: var(--paper-2);
}
.reel-frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  clip-path: inset(100% 0 0 0); transform: scale(1.12);
  transition: clip-path 1.1s var(--ease), transform 1.6s var(--ease);
}
.reel-frame img.is-on { clip-path: inset(0); transform: none; z-index: 2; }
.reel-frame img.is-prev { clip-path: inset(0); transform: none; z-index: 1; transition: none; }
.reel-frame:focus-visible { outline-offset: 4px; }
.reel-cap { display: flex; align-items: center; gap: 12px; margin-top: 12px; font-size: .875rem; line-height: 1.3; }
.reel-text { display: grid; flex: 0 1 auto; min-width: 0; }
.reel-text strong { font-weight: 700; }
.reel-text span { color: var(--text-2); }
.reel-bar { position: relative; flex: 1 1 24px; min-width: 24px; height: 1.5px; background: var(--line); overflow: hidden; }
.reel-bar i { position: absolute; inset: 0; background: var(--navy); transform-origin: 0 50%; transform: scaleX(0); }
.reel-toggle {
  flex: none; width: 30px; height: 30px; padding: 0; border-radius: 50%;
  border: 1.5px solid currentColor; background: none; cursor: pointer;
  display: none; place-items: center;
}
html.motion .reel-toggle { display: inline-grid; }
.reel-toggle::before {
  content: ""; width: 8px; height: 9px;
  border-left: 2px solid currentColor; border-right: 2px solid currentColor;
}
.reel-toggle[aria-pressed="true"]::before {
  width: 0; height: 0; margin-left: 2px;
  border-style: solid; border-color: transparent; border-width: 5px 0 5px 8px; border-left-color: currentColor;
}

@media (min-width: 900px) {
  .hero-stage { display: block; position: relative; grid-row: 3; }
  .hero-title { padding-top: 0; }
  .reel {
    position: absolute; right: 0; z-index: 2;
    bottom: calc(var(--fs-hero) * .88 + 1vw);
    width: clamp(260px, 29vw, 480px); margin: 0;
  }
  .hero-foot {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) auto;
    align-items: end; column-gap: clamp(24px, 4vw, 72px);
  }
  .hero-ctas { flex-direction: column; align-items: flex-end; gap: 14px; }
}

/* ---------- Manifesto ---------- */
.manifesto { display: grid; gap: 28px; padding: clamp(120px, 22vh, 240px) var(--g) clamp(110px, 20vh, 220px); }
.manifesto-text {
  font-family: var(--display); font-weight: 400;
  font-size: var(--fs-manifesto); line-height: 1.1; letter-spacing: -.022em;
  max-width: 20.5em; text-wrap: pretty;
}
.manifesto-text .slot { height: .17em; width: .19em; }
html.motion .manifesto-text .w { opacity: .2; transition: opacity .5s var(--ease); }
html.motion .manifesto-text .w.is-lit { opacity: 1; }
.manifesto-next { margin-top: 36px; font-size: 1.0625rem; color: var(--text-2); }
@media (min-width: 900px) {
  .manifesto { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
  .manifesto > .label { grid-column: 1 / span 3; padding-top: 1.1em; }
  .manifesto-body { grid-column: 4 / -1; }
}

/* ---------- Projetos ---------- */
.work { position: relative; background: var(--navy-deep); color: #fff; }
.work-stage { display: grid; gap: clamp(40px, 7vh, 72px); padding: clamp(100px, 15vh, 170px) var(--g) clamp(90px, 14vh, 150px); }
.work-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.work-index { display: none; }
.work-index a {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 0;
  font-weight: 700; font-size: .9375rem; text-decoration: none;
  color: rgba(255, 255, 255, .62); transition: color .35s var(--ease);
}
.work-index a:hover, .work-index a.is-active { color: #fff; }
.work-index .ring::after { background: #fff; }
.work-index a.is-active .ring::after { transform: scale(1); }
.work-track { position: relative; display: grid; gap: clamp(80px, 13vh, 130px); }
.wp-title .sec-title { max-width: 8.5em; }
.wp-case { display: grid; gap: 22px; align-content: start; }
.wp-media { position: relative; display: block; overflow: hidden; border-radius: 6px; background: #141d47; }
.wp-media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); pointer-events: none; }
.wp-media img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.2s var(--ease); }
.wp-media:hover img { scale: 1.035; }
.wp-case .wp-media { aspect-ratio: var(--ar, 4 / 3); }
.wp--portrait .wp-media { aspect-ratio: 4 / 5; }
.wp-media img { object-position: var(--focus, 50% 50%); }
.wp-copy { display: grid; gap: 16px; justify-items: start; align-content: end; }
.wp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: .9375rem; line-height: 1.35; }
.wp-meta strong { font-weight: 700; }
.wp-meta span:last-child { color: var(--on-dark-2); }
.wp-meta .ring { color: rgba(255, 255, 255, .85); }
.wp-q { font-family: var(--display); font-weight: 700; font-size: var(--fs-h3); line-height: 1.02; letter-spacing: -.03em; max-width: 13em; text-wrap: balance; }
.wp-text { max-width: 33em; color: var(--on-dark-2); }
.wp-note { font-size: .875rem; color: var(--on-dark-2); border: 1px solid var(--line-dark); border-radius: 999px; padding: 4px 12px; }
.wp-close { display: grid; gap: 28px; justify-items: start; }
.wp-close-title { font-family: var(--display); font-weight: 700; font-size: var(--fs-h2); line-height: .95; letter-spacing: -.035em; max-width: 9em; text-wrap: balance; }
.work-progress { display: none; }

html.pin .work-stage {
  position: sticky; top: 0; height: 100vh; overflow: clip;
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; gap: 0; padding: 0;
}
html.pin .work-bar { padding: calc(var(--nav-h) + 14px) var(--g) 0; }
html.pin .work-index { display: flex; gap: clamp(20px, 2.6vw, 44px); }
html.pin .work-viewport { position: relative; min-width: 0; min-height: 0; display: flex; align-items: center; }
html.pin .work-track {
  display: flex; align-items: center; gap: 6vw;
  width: max-content; height: 100%; padding: 0 var(--g);
  will-change: transform;
}
html.pin .wp { flex: none; height: min(68vh, 700px); }
html.pin .wp-title { width: 36vw; display: flex; align-items: center; }
html.pin .wp-case { grid-template-rows: minmax(0, 1fr); align-items: end; gap: 3.4vw; }
html.pin .wp-case .wp-media { height: 100%; aspect-ratio: auto; }
html.pin .wp-case .wp-media img { width: 114%; max-width: none; margin-left: -7%; will-change: transform; }
html.pin .wp--a { width: 80vw; grid-template-columns: minmax(0, 33fr) minmax(0, 67fr); }
html.pin .wp--a .wp-media { order: 2; }
html.pin .wp--b { width: 80vw; grid-template-columns: minmax(0, 64fr) minmax(0, 36fr); }
html.pin .wp--portrait { grid-template-columns: calc(min(68vh, 700px) * var(--ar-n, .667)) 26vw; }
html.pin .wp--portrait .wp-media img { object-position: center; }
html.pin .wp-close { width: 44vw; align-content: center; }
html.pin .work-progress { display: block; height: 1.5px; margin: 0 var(--g) 30px; background: var(--line-dark); }
html.pin .work-progress i { display: block; height: 100%; background: #fff; transform-origin: 0 50%; transform: scaleX(0); }

@media (min-width: 700px) {
  html:not(.pin) .wp-case { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 5vw; align-items: end; }
  html:not(.pin) .wp--b .wp-media { order: 2; }
  html:not(.pin) .wp--portrait { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
}

/* ---------- Método ---------- */
.method { position: relative; }
.method-stage { display: grid; gap: 44px; padding: clamp(110px, 16vh, 180px) var(--g); }
.method-copy { display: grid; gap: 18px; align-content: start; }
.method-lead { max-width: 30em; color: var(--text-2); }
.steps { margin-top: 16px; border-top: 1px solid var(--line); }
.step { display: grid; gap: 8px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.step-name { display: flex; align-items: baseline; gap: 14px; font-family: var(--display); font-weight: 700; font-size: 1.375rem; line-height: 1.2; letter-spacing: -.02em; }
.step-num { font-family: var(--text); font-weight: 700; font-size: .8125rem; letter-spacing: 0; color: var(--text-2); font-variant-numeric: tabular-nums; }
.step-head { font-weight: 700; }
.step-body p:last-child { color: var(--text-2); max-width: 32em; }
.method-canvas { position: relative; width: 100%; max-width: 540px; aspect-ratio: 1; justify-self: center; }
.method-canvas canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
html:not(.js) .method-canvas { display: none; }
@media (min-width: 760px) and (max-width: 1023px) {
  .method-stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 5vw; align-items: start; }
  .method-canvas { position: sticky; top: calc(var(--nav-h) + 40px); }
}

html.pin .method { height: 340vh; }
html.pin .method-stage {
  position: sticky; top: 0; height: 100vh;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4vw;
  padding: calc(var(--nav-h) + 20px) var(--g) 36px;
}
html.pin .method-copy { display: flex; flex-direction: column; gap: 16px; height: 100%; }
html.pin .method-copy .sec-title { font-size: clamp(2.4rem, 4.9vw, 5.4rem); }
html.pin .steps { position: relative; margin-top: auto; padding-bottom: 164px; border-top: 0; }
html.pin .step { display: block; padding: 0; border: 0; }
html.pin .step-name { padding: 9px 0; border-top: 1px solid var(--line); font-size: 1.125rem; color: var(--text-2); transition: color .4s var(--ease); }
html.pin .step.is-active .step-name { color: var(--navy); }
html.pin .step-body {
  position: absolute; left: 0; right: 0; bottom: 0; height: 148px;
  opacity: 0; transform: translate3d(0, 14px, 0); pointer-events: none;
  transition: opacity .4s var(--ease), transform .7s var(--ease);
}
html.pin .step.is-active .step-body { opacity: 1; transform: none; transition-delay: .08s; }
html.pin .step-head { margin-bottom: 10px; font-family: var(--display); font-size: clamp(1.6rem, 2.2vw, 2.3rem); line-height: 1.05; letter-spacing: -.025em; }
html.pin .method-canvas { max-width: none; height: 100%; aspect-ratio: auto; }
@media (max-width: 1199px) {
  html.pin .method-stage { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); }
}

/* ---------- Soluções ---------- */
.offers { padding: clamp(110px, 16vh, 190px) var(--g) clamp(72px, 10vh, 120px); }
.sec-head { display: grid; gap: 22px; margin-bottom: clamp(56px, 9vh, 110px); }
@media (min-width: 900px) {
  .sec-head { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: end; column-gap: 5vw; }
}
.stair-row { position: relative; display: grid; gap: 18px; padding: 34px 0 46px; border-top: 1px solid var(--navy); }
.stair-mark { position: absolute; left: 0; top: -11px; display: grid; place-items: center; width: 22px; height: 22px; background: var(--paper); color: var(--navy); }
.stair-verb { margin-bottom: 10px; font-weight: 700; font-size: .9375rem; color: var(--yellow-ink); }
.stair-name h3 { font-family: var(--display); font-weight: 700; font-size: clamp(1.75rem, 2.8vw, 3rem); line-height: 1; letter-spacing: -.03em; max-width: 11em; text-wrap: balance; }
.stair-desc p { max-width: 32em; }
.stair-items { display: grid; gap: 6px; margin-top: 16px; color: var(--text-2); }
.stair-items li { position: relative; padding-left: 20px; }
.stair-items li::before { content: ""; position: absolute; left: 0; top: .78em; width: 9px; height: 1.5px; background: currentColor; }
.stair-act { display: grid; gap: 12px; align-content: start; justify-items: start; }
.stair-format { font-size: .9375rem; color: var(--text-2); }
@media (min-width: 1000px) {
  .stair-row {
    grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) minmax(0, 2.6fr); column-gap: 3vw;
    margin-left: calc(var(--i, 0) * 8vw);
  }
}

.skills { padding: clamp(72px, 10vh, 120px) var(--g) clamp(110px, 16vh, 190px); }
.sec-title--m { font-size: clamp(2rem, 4vw, 4.25rem); max-width: 12em; }
.skills-list { margin-top: clamp(40px, 6vh, 72px); border-top: 1px solid var(--line); }
.skills-list li { display: grid; gap: 8px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.skills-list h3 { font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 2.5vw, 2.5rem); line-height: 1.05; letter-spacing: -.03em; transition: transform .6s var(--ease); }
.skills-list p { max-width: 36em; color: var(--text-2); }
.skills-list [lang="en"] { font-weight: 700; font-size: .875rem; color: var(--text-2); }
@media (min-width: 900px) {
  .skills-list li { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) minmax(0, 2fr); align-items: baseline; column-gap: 3vw; }
  .skills-list [lang="en"] { justify-self: end; text-align: right; }
  .skills-list li:hover h3 { transform: translateX(14px); }
}

/* ---------- Raio-x ---------- */
.xray { display: grid; gap: 48px; padding: clamp(110px, 16vh, 190px) var(--g); background: var(--navy); color: #fff; }
.xray-intro { display: grid; gap: 22px; align-content: start; }
.xray-intro .sec-title { max-width: 8em; }
.xray-nojs { display: none; }
html:not(.js) .xray-nojs { display: block; }
html:not(.js) .xray-form { display: none; }
.xray-form { display: grid; gap: 28px; align-content: start; min-width: 0; }
.xray-q { min-width: 0; padding: 0; border: 0; }
.xray-q legend { display: block; width: 100%; margin-bottom: 24px; padding: 0; }
.xray-q legend > span { display: block; }
.xray-count { margin-bottom: 10px; font-weight: 700; font-size: .875rem; color: var(--on-dark-2); font-variant-numeric: tabular-nums; }
.xray-legend { font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 2.5vw, 2.5rem); line-height: 1.08; letter-spacing: -.025em; }
.opts { display: grid; gap: 10px; }
.opt {
  position: relative; display: flex; align-items: center; gap: 16px;
  padding: 18px 20px; border: 1px solid rgba(255, 255, 255, .26); border-radius: 14px;
  cursor: pointer; transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.opt:hover { border-color: rgba(255, 255, 255, .62); }
.opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.opt .ring { width: 24px; height: 24px; color: rgba(255, 255, 255, .9); }
.opt:has(input:checked) { border-color: #fff; background: rgba(255, 255, 255, .07); }
.opt:has(input:focus-visible) { outline: 2px solid #fff; outline-offset: 3px; }
.opt-text { display: grid; gap: 2px; line-height: 1.4; }
.opt-text strong { font-weight: 700; }
.opt-text small { font-size: .9375rem; color: var(--on-dark-2); }
.xray-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.xray-hint { flex-basis: 100%; min-height: 1.4em; font-size: .9375rem; color: var(--on-dark-2); }
.xray-actions[hidden] { display: none; }
.xray-result { display: grid; gap: 16px; justify-items: start; }
.xray-result[hidden] { display: none; }
.xray-result-label { color: var(--on-dark-2); }
.xray-offer { font-family: var(--display); font-weight: 700; font-size: var(--fs-h3); line-height: 1.02; letter-spacing: -.03em; max-width: 12em; }
.xray-offer-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-weight: 700; font-size: .9375rem; }
.xray-offer-meta span:last-child { color: var(--on-dark-2); font-weight: 400; }
.xray-offer-desc { max-width: 32em; color: var(--on-dark-2); }
.xray-result-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 10px; }
html.motion .is-entering { animation: q-in .65s var(--ease) both; }
@keyframes q-in { from { opacity: 0; transform: translate3d(28px, 0, 0); } }
@media (min-width: 1000px) {
  .xray { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: 6vw; align-items: start; }
  .xray-intro { position: sticky; top: calc(var(--nav-h) + 40px); }
}

/* ---------- Studio ---------- */
.studio { display: grid; gap: clamp(48px, 8vh, 96px); padding: clamp(110px, 16vh, 190px) var(--g) clamp(150px, 26vh, 300px); }
.studio .sec-title { max-width: 11em; }
.studio-grid { display: grid; gap: 48px; }
.studio-lead { margin-bottom: 22px; font-family: var(--display); font-size: var(--fs-lead); line-height: 1.18; letter-spacing: -.015em; }
.studio-text p + p { margin-top: 14px; color: var(--text-2); max-width: 34em; }
.principles { border-top: 1px solid var(--line); }
.principles li { padding: 18px 0; border-bottom: 1px solid var(--line); font-family: var(--display); font-size: clamp(1.6rem, 2.6vw, 2.6rem); line-height: 1.1; letter-spacing: -.025em; }
.audience { display: grid; gap: 18px; padding-top: 34px; border-top: 1px solid var(--navy); }
.audience h3 { font-family: var(--display); font-weight: 700; font-size: var(--fs-h3); line-height: 1.02; letter-spacing: -.03em; max-width: 10em; }
.audience > p { max-width: 32em; }
.markets { display: grid; gap: 22px; margin-top: 10px; }
.markets dt { font-weight: 700; font-size: 1.125rem; }
.markets dd { margin: 4px 0 0; color: var(--text-2); }
@media (min-width: 900px) {
  .studio-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: 6vw; }
  .audience { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: 6vw; }
  .audience h3 { grid-row: 1 / span 2; }
  .markets { grid-template-columns: 1fr 1fr; column-gap: 3vw; }
}

/* ---------- Final: contato e rodapé ---------- */
.finale {
  position: relative; display: grid; gap: clamp(72px, 12vh, 140px);
  padding: clamp(110px, 18vh, 200px) var(--g) 26px;
  background: var(--navy-deep); color: #fff;
}
.finale-main { display: grid; gap: 48px; }
.finale-head { display: grid; gap: 26px; align-content: start; }
.finale-head .sec-title { max-width: 10em; }
.finale-kicker { font-family: var(--display); font-size: var(--fs-lead); line-height: 1.15; letter-spacing: -.015em; color: var(--on-dark-2); }
.finale-place { margin-top: 18px; font-weight: 700; font-size: .9375rem; color: var(--on-dark-2); font-variant-numeric: tabular-nums; }
.finale-place .clock { color: #fff; }
.finale-body { display: grid; gap: 18px; justify-items: start; align-content: end; }
.finale-text { max-width: 30em; color: var(--on-dark-2); }
.finale-mail { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin: 10px 0 6px; }
.mail {
  font-family: var(--display); font-size: clamp(1.25rem, 2.2vw, 2.4rem); line-height: 1.15; letter-spacing: -.025em;
  text-decoration: none; overflow-wrap: anywhere;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat; padding-bottom: 4px;
  transition: background-size .55s var(--ease);
}
.mail:hover { background-size: 0 2px; background-position: 100% 100%; }
.copy {
  min-height: 40px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .42); background: none; color: #fff;
  font-weight: 700; font-size: .875rem;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.copy:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.wordmark { position: relative; }
.wordmark svg { width: 100%; height: auto; fill: #fff; overflow: visible; }
.wm-dot { position: absolute; left: 77.63%; top: 10.72%; width: 4.9%; aspect-ratio: 1; transform: translate(-50%, -50%); }
.wm-dot::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--yellow); }
html.motion .wm-dot::before { opacity: 0; }
.finale-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px;
  padding-top: 18px; border-top: 1px solid var(--line-dark);
  font-size: .875rem; color: var(--on-dark-2);
}
.finale-bottom a { color: #fff; font-weight: 700; text-decoration: none; }
.finale-bottom a:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 900px) {
  .finale-main { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 5vw; }
}

/* ---------- Entradas por rolagem ---------- */
html.motion [data-reveal] { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
html.motion [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Páginas de projeto ---------- */
.case-head { display: grid; gap: 16px; padding: calc(var(--nav-h) + clamp(32px, 6vh, 80px)) var(--g) clamp(36px, 6vh, 64px); }
.case-back { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; font-weight: 700; font-size: .9375rem; text-decoration: none; }
.case-back span { transition: transform .45s var(--ease); }
.case-back:hover span { transform: translateX(-4px); }
.case-cat { margin-top: clamp(14px, 4vh, 44px); font-weight: 700; font-size: .875rem; color: var(--text-2); }
.case-title { font-family: var(--display); font-weight: 700; font-size: clamp(3rem, 10.5vw, 11.5rem); line-height: .9; letter-spacing: -.045em; margin-left: -.03em; text-wrap: balance; }
.case-intro { display: grid; gap: 14px; margin-top: 14px; }
.case-q { font-family: var(--display); font-size: clamp(1.45rem, 2.5vw, 2.5rem); line-height: 1.12; letter-spacing: -.02em; max-width: 20em; }
.case-deck { max-width: 32em; color: var(--text-2); font-size: 1.125rem; }
@media (min-width: 900px) {
  .case-intro { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); column-gap: 5vw; align-items: end; }
}
.case-figure { padding: 0 var(--g); }
.case-frame { position: relative; overflow: hidden; border-radius: 8px; background: var(--paper-2); view-transition-name: case-media; }
.case-frame img { width: 100%; height: auto; }
.case-figure figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin-top: 12px; font-size: .875rem; color: var(--text-2); }
.case-figure figcaption span:first-child { font-weight: 700; color: var(--navy); }
@media (min-width: 900px) {
  .case--portrait { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: 6vw; align-items: end; }
  .case--portrait .case-frame { grid-column: 2; grid-row: 1; width: min(100%, 620px); }
  .case--portrait figcaption { grid-column: 1; grid-row: 1; flex-direction: column; margin: 0 0 4px; }
}
.case-body { display: grid; gap: 48px; padding: clamp(72px, 12vh, 140px) var(--g); }
.case-facts dl { border-top: 1px solid var(--line); }
.case-facts dl > div { display: grid; align-content: start; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.case-facts dt { font-weight: 700; font-size: .8125rem; color: var(--text-2); }
.case-facts dd { margin: 0; font-weight: 700; }
.case-narrative { display: grid; gap: clamp(52px, 9vh, 96px); max-width: 46rem; }
.case-narrative h2 { margin-bottom: 18px; font-family: var(--display); font-weight: 700; font-size: clamp(1.9rem, 3.4vw, 3.4rem); line-height: 1; letter-spacing: -.03em; text-wrap: balance; }
.case-narrative section p { font-size: clamp(1.0625rem, 1.25vw, 1.25rem); }
.case-note { padding-top: 20px; border-top: 1px solid var(--line); font-size: .9375rem; color: var(--text-2); }
@media (min-width: 900px) {
  .case-body { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: 6vw; align-items: start; }
  .case-facts { position: sticky; top: calc(var(--nav-h) + 32px); }
}
.case-next { padding: 0 var(--g) clamp(110px, 18vh, 200px); }
.case-next a { display: grid; gap: 20px; padding-top: 28px; border-top: 1px solid var(--navy); text-decoration: none; }
.case-next-label { font-weight: 700; font-size: .875rem; color: var(--text-2); }
.case-next-title { font-family: var(--display); font-weight: 700; font-size: clamp(2.6rem, 8vw, 8.5rem); line-height: .92; letter-spacing: -.045em; text-wrap: balance; }
.case-next-media { display: block; overflow: hidden; max-width: 420px; aspect-ratio: 16 / 10; border-radius: 6px; background: var(--paper-2); }
.case-next-media img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.1s var(--ease); }
.case-next a:hover .case-next-media img { scale: 1.05; }
@media (min-width: 900px) {
  .case-next a { grid-template-columns: minmax(0, 1fr) minmax(0, 380px); align-items: end; column-gap: 5vw; }
  .case-next-label { grid-column: 1 / -1; }
}

/* ---------- Texto longo (projetos e artigos) ---------- */
.prose { max-width: 46rem; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: clamp(52px, 8vh, 88px); margin-bottom: -.15em; font-family: var(--display); font-weight: 700; font-size: clamp(1.9rem, 3.4vw, 3.4rem); line-height: 1; letter-spacing: -.03em; text-wrap: balance; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 2em; font-family: var(--display); font-weight: 700; font-size: clamp(1.35rem, 1.9vw, 1.8rem); line-height: 1.1; letter-spacing: -.02em; }
.prose p, .prose li { font-size: clamp(1.0625rem, 1.25vw, 1.25rem); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--yellow-ink); }
.prose a { text-decoration-thickness: 1.5px; text-underline-offset: .18em; text-decoration-color: var(--yellow); }
.prose a:hover { text-decoration-color: currentColor; }
.prose blockquote { margin: 1.8em 0; padding-left: 22px; border-left: 3px solid var(--yellow); font-family: var(--display); font-size: clamp(1.35rem, 2vw, 1.9rem); line-height: 1.2; letter-spacing: -.02em; }
.prose blockquote p { font-size: inherit; }
.prose img { height: auto; border-radius: 6px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose strong { font-weight: 700; }
.case-narrative.prose { display: block; }
.case-narrative.prose .case-note { margin-top: clamp(52px, 8vh, 88px); }

.case-frame--plain { view-transition-name: none; }

/* ---------- Listas: projetos e ideias ---------- */
.list-head { padding-bottom: clamp(48px, 8vh, 96px); }
.list-head .case-title { max-width: 11em; }
.cards { list-style: none; margin: 0; padding: 0 var(--g) clamp(110px, 16vh, 190px); display: grid; gap: clamp(48px, 7vh, 72px) 24px; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cards:not(.cards--projetos) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { position: relative; display: grid; gap: 12px; align-content: start; padding-top: 18px; border-top: 1px solid var(--navy); }
.card--projeto { padding-top: 0; border-top: 0; }
.card-media { display: block; overflow: hidden; border-radius: 6px; aspect-ratio: 16 / 10; background: var(--paper-2); margin-bottom: 6px; }
.card-media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 50%); transition: scale 1.1s var(--ease); }
.card:hover .card-media img { scale: 1.04; }
.card-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-weight: 700; font-size: .8125rem; color: var(--text-2); }
.card-title { font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 2.2vw, 2.1rem); line-height: 1.04; letter-spacing: -.025em; text-wrap: balance; }
.card--projeto .card-title { font-size: clamp(1.9rem, 3.4vw, 3.2rem); }
.card-title a { text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; }
.card-title a:hover { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .12em; }
.card-text { color: var(--text-2); max-width: 32em; }
.card-draft { justify-self: start; font-weight: 700; font-size: .8125rem; color: var(--yellow-ink); border: 1px solid currentColor; border-radius: 999px; padding: 3px 10px; }
.tags { list-style: none; margin: 0 0 clamp(36px, 6vh, 64px); padding: 0 var(--g); display: flex; flex-wrap: wrap; gap: 10px; }
.tags li { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; font-weight: 700; font-size: .875rem; }
.tags-n { color: var(--text-2); }
.empty { padding: 0 var(--g) clamp(110px, 16vh, 190px); font-size: var(--fs-lead); color: var(--text-2); }
.err-links { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 28px; }

/* faixa de ideias na home e “continue lendo” */
.notes { padding: clamp(110px, 16vh, 190px) 0 0; }
.notes-head { padding: 0 var(--g); }
@media (min-width: 900px) { .notes-head { grid-template-columns: minmax(0, 1fr) auto; align-items: end; } }

/* ---------- Artigo ---------- */
.article-title { font-family: var(--display); font-weight: 700; font-size: clamp(2.5rem, 6.4vw, 6.5rem); line-height: .95; letter-spacing: -.04em; max-width: 14em; text-wrap: balance; }
.article-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .9375rem; color: var(--text-2); }
.article-meta span:first-child { font-weight: 700; color: var(--navy); }
.article-body { padding: clamp(56px, 9vh, 110px) var(--g) clamp(90px, 14vh, 150px); margin: 0 auto; box-sizing: content-box; }
@media (min-width: 900px) { .article-head .case-intro { align-items: start; } }
.article-cta { display: grid; gap: 22px; justify-items: start; padding: clamp(90px, 14vh, 150px) var(--g); background: var(--navy-deep); color: #fff; }
.article-cta p { max-width: 32em; color: var(--on-dark-2); font-size: 1.125rem; }

/* ---------- Transições entre páginas ---------- */
::view-transition-old(root) { animation: vt-out .4s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .6s var(--ease) both; }
::view-transition-group(case-media) { animation-duration: .8s; animation-timing-function: var(--ease); }
::view-transition-old(case-media),
::view-transition-new(case-media) { width: 100%; height: 100%; object-fit: cover; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translate3d(0, 16px, 0); } }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Contato e redes no rodapé */
.finale-contact{margin:0}
.finale-social{list-style:none;margin:0;padding:0;display:flex;gap:12px}
.social{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;border:1px solid rgba(255,255,255,.4);color:#fff;transition:background-color .2s,color .2s,border-color .2s}
.social:hover{background:var(--yellow);border-color:var(--yellow);color:var(--navy-deep)}

/* Botão fixo de WhatsApp */
.wa {
  position: fixed; z-index: 60;
  right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--yellow); color: var(--navy-deep);
  box-shadow: 0 6px 20px rgba(10, 17, 49, .28);
  transition: transform .2s ease, background-color .2s ease;
}
.wa:hover { background: var(--yellow-hover); transform: translateY(-2px); }
.wa:focus-visible { outline: 3px solid var(--navy-deep); outline-offset: 3px; }
html.intro .wa { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .wa { transition: none; } .wa:hover { transform: none; } }

/* ---- projeto: sistema de colunas e seções (identidade, aplicações) ----
   Duas colunas (4fr rótulos / 8fr conteúdo) em todo o corpo da página;
   imagens e grades ocupam a largura inteira com proporções fixas. */
@media (min-width: 900px) {
  .case-head--proj .case-intro { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: 6vw; align-items: start; }
  .case-head--proj .case-deck { grid-column: 1; grid-row: 1; padding-top: .5em; max-width: 22em; }
  .case-head--proj .case-q { grid-column: 2; grid-row: 1; max-width: 20em; }
}
.case-hero:not(.case--portrait) .case-frame { aspect-ratio: 3 / 2; max-height: 86vh; width: 100%; }
.case-hero:not(.case--portrait) .case-frame img { height: 100%; object-fit: cover; }
.case-body { padding-bottom: clamp(48px, 8vh, 96px); }
.case-list { display: grid; gap: 2px; font-weight: 700; }
@media (max-width: 899px) {
  .case-facts dl { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .case-facts dl > div:has(.case-list) { grid-column: 1 / -1; }
  .case-index { display: none; }
  .case-palette li { aspect-ratio: 5 / 4; }
}
.case-index { margin-top: 28px; }
.case-index p { font-weight: 700; font-size: .8125rem; color: var(--text-2); margin-bottom: 8px; }
.case-index ul { display: grid; gap: 2px; }
.case-index a { display: inline-block; padding: 4px 0; font-weight: 700; text-decoration: none; }
.case-index a:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-underline-offset: .2em; text-decoration-thickness: 2px; }

.case-sec { display: grid; gap: clamp(32px, 5vh, 56px); padding: clamp(40px, 7vh, 88px) var(--g) 0; scroll-margin-top: calc(var(--nav-h) + 16px); }
.case-sec:last-of-type { padding-bottom: clamp(24px, 4vh, 48px); }
.case-sec-head, .case-row { display: grid; gap: 14px; border-top: 1px solid var(--line); padding-top: clamp(24px, 3.5vh, 40px); }
.case-sec-head h2 { font-family: var(--display); font-weight: 700; font-size: clamp(1.9rem, 3.4vw, 3.4rem); line-height: 1; letter-spacing: -.03em; text-wrap: balance; }
.case-sec-head p { max-width: 46rem; color: var(--text-2); font-size: clamp(1.0625rem, 1.25vw, 1.25rem); }
.case-row h3 { font-family: var(--display); font-weight: 700; font-size: clamp(1.35rem, 1.9vw, 1.8rem); line-height: 1.1; letter-spacing: -.02em; }
@media (min-width: 900px) {
  .case-sec-head, .case-row { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: 6vw; align-items: start; }
}

.fig { margin: 0; }
.fig-frame { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 8px; background: var(--paper-2); }
.fig--cheia .fig-frame { aspect-ratio: 16 / 9; }
.fig-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fig-cap { margin-top: 12px; font-size: .875rem; color: var(--text-2); }
.fig-logo { display: grid; place-items: center; padding: clamp(24px, 6vw, 96px); background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.fig-logo--escuro { background: var(--navy-deep); box-shadow: none; }
.fig-logo img { width: min(100%, 520px); height: auto; max-height: 100%; object-fit: contain; }

.case-grid { display: grid; gap: clamp(28px, 4vh, 40px) 16px; }
@media (min-width: 900px) {
  .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-grid .fig--cheia { grid-column: 1 / -1; }
}

.case-palette { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.case-palette li { display: grid; align-content: end; gap: 2px; aspect-ratio: 4 / 5; padding: 16px; border-radius: 8px; background: var(--sw); color: var(--sw-ink); box-shadow: inset 0 0 0 1px rgba(16, 28, 76, .12); }
.sw-nome { font-weight: 700; }
.sw-hex { font-size: .8125rem; font-variant-numeric: tabular-nums; letter-spacing: .04em; opacity: .85; }
.sw-uso { font-size: .8125rem; opacity: .85; }
.case-type { display: grid; }
.case-type li { display: grid; gap: 10px; padding: 24px 0; border-top: 1px solid var(--line); }
.case-type li:first-child { padding-top: 0; border-top: 0; }
.ty-amostra { font-family: var(--display); font-weight: 700; font-size: clamp(2.4rem, 5.2vw, 5rem); line-height: 1; letter-spacing: -.03em; overflow-wrap: anywhere; }
.ty-meta { display: flex; flex-wrap: wrap; gap: 2px 24px; }
.ty-nome { font-weight: 700; }
.ty-uso { font-size: .9375rem; color: var(--text-2); }

.case-cta { display: grid; gap: 14px; justify-items: start; padding: clamp(72px, 12vh, 140px) var(--g) clamp(56px, 9vh, 100px); }
.case-cta-t { font-family: var(--display); font-weight: 700; font-size: clamp(1.8rem, 4vw, 3.6rem); line-height: 1; letter-spacing: -.03em; max-width: 14em; text-wrap: balance; }

/* ideias: destaque, filtros e lista */
.blog-sub { margin-top: 14px; font-size: .9375rem; color: var(--text-2); }
@media (min-width: 900px) {
  .case-intro:has(.blog-sub) { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: 6vw; align-items: start; }
  .case-intro:has(.blog-sub) .blog-sub { grid-column: 1; grid-row: 1; margin-top: .5em; }
  .case-intro:has(.blog-sub) .case-deck { grid-column: 2; grid-row: 1; max-width: 28em; font-size: clamp(1.25rem, 1.8vw, 1.75rem); line-height: 1.2; color: var(--navy); }
}
.blog-feat { padding: 0 var(--g) clamp(56px, 9vh, 104px); display: grid; gap: 18px; }
.feat { display: grid; gap: 22px; padding-top: 22px; border-top: 1px solid var(--navy); }
.feat-media { display: block; overflow: hidden; border-radius: 8px; aspect-ratio: 16 / 10; background: var(--paper-2); }
.feat-media img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.1s var(--ease); }
.feat:hover .feat-media img { scale: 1.03; }
.feat-copy { display: grid; gap: 14px; align-content: center; justify-items: start; }
.feat-title { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 4.2vw, 4rem); line-height: 1; letter-spacing: -.035em; text-wrap: balance; }
.feat-title a { text-decoration: none; }
.feat-title a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .1em; }
.feat:not(:has(.feat-media)) .feat-copy { max-width: 46em; }
@media (min-width: 900px) {
  .feat:has(.feat-media) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; }
}
.blog-list { display: grid; gap: 28px; }
.blog-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 0 var(--g); }
.blog-bar .tags { margin: 0; padding: 0; }
.blog-bar .tags[hidden] { display: none; }
.tag-btn { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: inherit; font: inherit; font-weight: 700; font-size: .875rem; cursor: pointer; transition: background-color .25s, color .25s, border-color .25s; }
.tag-btn:hover { border-color: var(--navy); }
.tag-btn.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.tag-btn.is-on .tags-n { color: rgba(255, 255, 255, .7); }
.tag-btn:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.empty--inline { padding-bottom: clamp(56px, 8vh, 96px); font-size: 1.0625rem; }
.blog-list .cards { padding-top: 6px; }
[hidden] { display: none !important; }
