/* Davi Reis v3. Editorial suíço: tema claro único, tinta quase preta, um acento laranja. */
:root {
  --bg: #ededea;
  --bg-2: #e4e4e0;
  --paper: #f6f6f4;
  --ink: #121212;
  --ink-2: #2a2a28;
  --muted: #5d5d58;
  --line: rgb(18 18 18 / 0.14);
  --line-2: rgb(18 18 18 / 0.28);
  --accent: #ee5a2b;
  --accent-ink: #121212;
  --radius: 14px;
  --radius-lg: 24px;
  --gut: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --z-top: 50;
  --font: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.55; font-variation-settings: "opsz" 16; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
mark { background: none; color: inherit; box-shadow: inset 0 -0.38em 0 rgb(238 90 43 / .35); }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.mono { font-family: var(--mono); font-size: 0.74em; letter-spacing: 0.01em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
section { padding-inline: var(--gut); }

.h2 { font-size: clamp(2.2rem, 5.4vw, 4.6rem); line-height: 0.98; letter-spacing: -0.012em; font-weight: 700; font-variation-settings: "opsz" 96, "wdth" 85; max-width: 16ch; text-wrap: balance; }
.lead { margin-top: 20px; font-size: clamp(1.05rem, 1.35vw, 1.2rem); color: var(--muted); max-width: 50ch; text-wrap: pretty; }
.kicker { color: var(--accent); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 18px; font-size: 12px; }
.u { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 0.09em; text-underline-offset: 0.1em; }

/* Links com sublinhado que corre */
.ulink { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.ulink::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.ulink:hover::after, .ulink.is-active::after { transform: scaleX(1); transform-origin: left; }
.ulink--big { font-size: 1.2rem; font-weight: 600; margin-top: 28px; }
.ulink--big::after { transform: scaleX(1); background: var(--accent); height: 2px; }
.ulink--big:hover::after { transform: scaleX(.3); }

/* Botões */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 24px; border-radius: 999px; font-weight: 600; font-size: 15.5px; white-space: nowrap; border: 1.5px solid var(--ink); transition: background-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease); }
.btn:active { transform: scale(.97); }
.btn i { font-size: 17px; transition: transform .35s var(--ease); }
.btn:hover i { transform: translate(2px, 2px); }
.btn--ink { background: var(--ink); color: var(--bg); }
.btn--ink:hover { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.btn--line:hover { background: var(--ink); color: var(--bg); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn--accent:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn--lg { height: 62px; padding: 0 30px; font-size: 17px; }

/* Topo */
.top { position: fixed; inset: 0 0 auto; z-index: var(--z-top); height: 64px; padding: 0 var(--gut); display: flex; align-items: center; gap: 24px; font-size: 15px; transition: background-color .3s, box-shadow .3s, transform .5s var(--ease); }
.top.is-solid { background: rgb(237 237 234 / .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.top.is-hidden { transform: translateY(-100%); }
.top__brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; margin-right: auto; }
.top__brand svg { width: 28px; height: 28px; }
.top__nav { display: none; gap: 28px; }
.top__cta { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 600; font-size: 14px; transition: background-color .3s, color .3s; }
.top__cta:hover { background: var(--accent); color: var(--ink); }
@media (min-width: 860px) { .top__nav { display: flex; } }

/* HERO */
.hero { min-height: 100dvh; padding-top: 96px; padding-bottom: 36px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.hero__title { font-size: clamp(3.4rem, 15vw, 15.5rem); line-height: 0.86; letter-spacing: -0.012em; font-weight: 800; font-variation-settings: "opsz" 96, "wdth" 82; }
.row { display: flex; align-items: center; gap: 0.12em; overflow: hidden; padding-bottom: 0.04em; }
.row--pill { padding-left: clamp(0px, 12vw, 240px); }
@media (min-width: 900px) { .hero__title .row:nth-child(3) { justify-content: flex-end; } }
.word { display: inline-block; }
.word em { font-style: normal; color: var(--accent); }
.hero__foot { display: grid; gap: 22px; align-items: end; }
@media (min-width: 900px) and (max-width: 1099px) { .hero__foot { grid-template-columns: 1fr minmax(360px, 440px); gap: 40px; } }
@media (min-width: 1100px) {
  .hero { min-height: min(100dvh, 860px); padding-bottom: 56px; display: grid; grid-template-columns: 1fr minmax(380px, 440px); grid-template-rows: auto auto; align-content: center; column-gap: clamp(40px, 5vw, 96px); row-gap: 40px; align-items: center; }
  .hero__title { font-size: clamp(6rem, 9.6vw, 11rem); grid-column: 1; grid-row: 1; align-self: end; }
  .hero__foot { display: contents; }
  .hero__text { grid-column: 1; grid-row: 2; }
  .lead-form { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .hero__title .row:nth-child(3) { justify-content: flex-start; padding-left: clamp(0px, 20vw, 360px); }
}
.hero__text { display: grid; gap: 18px; justify-items: start; }
.hero__text .ticker { justify-self: start; }
@media (max-width: 1099px) {
  .hero__text { display: contents; }
  .hero__sub { order: 1; }
  .lead-form { order: 2; }
  .hero__text > .ulink { order: 3; }
  .hero__text > .ticker { order: 4; }
}

/* Mini formulário do topo */
.lead-form { background: var(--paper); border: 1.5px solid var(--ink); border-radius: var(--radius-lg); padding: 20px; display: grid; gap: 14px; box-shadow: 6px 6px 0 var(--ink); }
.lead-form [data-lead-fields] { display: grid; gap: 14px; }
.lead-form__title { font-weight: 700; font-size: 1.2rem; line-height: 1.2; }
.lead-form__title span { display: block; font-weight: 400; font-size: .95rem; color: var(--muted); }
.lead-form__opts { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lead-form__opts label { cursor: pointer; }
.lead-form__opts input { position: absolute; opacity: 0; pointer-events: none; }
.lead-form__opts span { display: inline-block; padding: 8px 13px; border-radius: 999px; border: 1.5px solid var(--line-2); font-size: 14px; font-weight: 600; transition: background-color .2s, color .2s, border-color .2s; }
.lead-form__opts label:hover span { border-color: var(--ink); }
.lead-form__opts input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.lead-form__opts input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.lead-form__row { display: grid; gap: 8px; }
@media (min-width: 520px) { .lead-form__row { grid-template-columns: 1fr 1fr; } }
.lead-form__row input { height: 50px; padding: 0 16px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--bg); font: inherit; font-size: 16px; color: var(--ink); min-width: 0; transition: border-color .2s, box-shadow .2s; }
.lead-form__row input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgb(238 90 43 / .25); }
.lead-form__row input[aria-invalid="true"] { border-color: #c2381a; }
.lead-form__send { width: 100%; justify-content: center; cursor: pointer; font: inherit; font-weight: 600; }
.lead-form__send[disabled] { opacity: .6; cursor: progress; }
.lead-form__err { color: #b3311a; font-size: 14px; }
.lead-form__ok { display: grid; gap: 12px; justify-items: start; outline: none; }
.lead-form__ok > i { font-size: 40px; color: var(--accent); }
.lead-form__ok[hidden], [data-lead-fields][hidden] { display: none; }
.hero__sub { max-width: 40ch; font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--ink-2); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.ticker { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 12.5px; color: var(--muted); max-width: 100%; overflow: hidden; white-space: nowrap; }
@media (min-width: 900px) { .ticker { justify-self: end; } }
.ticker__dot { width: 8px; height: 8px; border-radius: 99px; background: var(--accent); flex: none; }
.ticker__label { color: var(--ink); }
[data-ticker] { display: inline-block; overflow: hidden; text-overflow: ellipsis; }

/* MANIFESTO */
.manifesto { padding-top: clamp(56px, 7vw, 110px); padding-bottom: clamp(64px, 8vw, 120px); border-top: 1px solid var(--line); }
.manifesto p { font-size: clamp(2rem, 5.6vw, 5rem); line-height: 1.02; letter-spacing: -0.012em; font-weight: 700; font-variation-settings: "opsz" 96, "wdth" 85; max-width: 20ch; }
.manifesto__a { color: var(--muted); }
.manifesto__b { margin-top: .3em; margin-left: clamp(0px, 12vw, 220px); }
.strike { position: relative; display: inline-block; }
.strike svg { position: absolute; left: -2%; top: 46%; width: 104%; height: 0.32em; overflow: visible; }
.strike path { fill: none; stroke: var(--accent); stroke-width: 7; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 400; stroke-dashoffset: 400; }
.hl { background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 88% / 0% 0.22em; transition: background-size 1s var(--ease); }
.hl.on { background-size: 100% 0.22em; }
.caps { margin-top: clamp(56px, 7vw, 90px); display: flex; flex-wrap: wrap; gap: 10px; }
.caps li { padding: 10px 18px; border: 1.5px solid var(--ink); border-radius: 999px; font-weight: 600; font-size: clamp(14px, 1.3vw, 17px); transition: background-color .3s, color .3s; }
.caps li:hover { background: var(--ink); color: var(--bg); }

/* SIMULADOR (conversa) */
.chat-sec { padding-top: clamp(80px, 10vw, 140px); padding-bottom: clamp(80px, 10vw, 140px); background: var(--paper); border-block: 1px solid var(--line); display: grid; gap: 48px; }
@media (min-width: 1000px) { .chat-sec { grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: start; } .chat-sec__head { position: sticky; top: 110px; } }
.chat { border: 1.5px solid var(--ink); border-radius: var(--radius-lg); background: var(--bg); padding: 18px; display: grid; gap: 14px; }
.chat__log { display: grid; gap: 14px; max-height: 520px; overflow-y: auto; padding: 4px; min-height: 160px; align-content: start; }
.msg { display: flex; gap: 10px; align-items: flex-end; max-width: 92%; }
.msg img { width: 34px; height: 34px; border-radius: 99px; object-fit: cover; flex: none; }
.bubble { padding: 12px 16px; border-radius: 18px 18px 18px 6px; background: var(--paper); border: 1px solid var(--line); line-height: 1.5; }
.msg--you { margin-left: auto; }
.msg--you .bubble { background: var(--ink); color: var(--bg); border-color: var(--ink); border-radius: 18px 18px 6px 18px; }
.typing { display: inline-flex; gap: 4px; padding: 16px; }
.typing i { width: 7px; height: 7px; border-radius: 99px; background: var(--muted); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.plan { display: grid; gap: 8px; margin-top: 10px; counter-reset: s; }
.plan li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: baseline; padding: 8px 0; border-top: 1px dashed var(--line-2); }
.plan li::before { counter-increment: s; content: counter(s, decimal-leading-zero); font-family: var(--mono); font-size: 12px; color: var(--muted); }
.plan b { font-weight: 600; }
.plan em { font-style: normal; font-family: var(--mono); font-size: 11px; padding: 2px 7px; border-radius: 6px; border: 1px solid var(--line-2); }
.plan em.auto { background: var(--accent); border-color: var(--accent); }
.plan__cta { margin-top: 12px; display: inline-flex; gap: 6px; align-items: center; font-weight: 600; border-bottom: 2px solid var(--accent); }
.chat__examples { display: flex; flex-wrap: wrap; gap: 8px; }
.chat__examples button { cursor: pointer; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; font-size: 13.5px; transition: background-color .25s, color .25s, border-color .25s; }
.chat__examples button:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chat__form { display: flex; gap: 8px; }
.chat__form input { flex: 1; min-width: 0; height: 52px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--paper); font: inherit; font-size: 16px; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.chat__form input::placeholder { color: #75756f; }
.chat__form input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgb(238 90 43 / .25); }
.chat__form input[aria-invalid="true"] { border-color: #b8361a; }
.chat__form button { width: 52px; height: 52px; flex: none; border-radius: 999px; border: 0; background: var(--accent); cursor: pointer; font-size: 20px; transition: background-color .25s, color .25s, transform .2s; }
.chat__form button:hover { background: var(--ink); color: var(--bg); }
.chat__form button:active { transform: scale(.94); }
.chat__error { color: #a8301a; font-size: 14px; }
.chat__note { color: var(--muted); }

/* CAFÉ: tela dividida */
.cafe { padding-top: clamp(80px, 10vw, 140px); padding-bottom: clamp(80px, 10vw, 140px); display: grid; gap: 40px; }
@media (min-width: 1000px) { .cafe { grid-template-columns: 0.85fr 1.15fr; gap: 72px; } }
.cafe__sticky { position: sticky; top: 110px; display: grid; gap: 4px; justify-items: start; }
.cafe__sticky .btn { margin-top: 28px; }
.playlist { border-top: 1.5px solid var(--ink); }
.playlist a { position: relative; display: grid; grid-template-columns: clamp(96px, 9vw, 140px) 1fr auto; gap: 6px 24px; align-items: center; padding: 28px 8px; border-bottom: 1.5px solid var(--ink); overflow: hidden; isolation: isolate; }
.playlist a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent); transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease); }
.playlist a:hover::before, .playlist a:focus-visible::before { transform: scaleY(1); }
.playlist__n { font-size: clamp(2.6rem, 5vw, 4.4rem); font-weight: 800; letter-spacing: -0.012em; line-height: .9; font-variation-settings: "opsz" 96, "wdth" 75; transition: transform .5s var(--ease); }
.playlist a:hover .playlist__n { transform: translateX(10px); }
.playlist__t { font-size: clamp(1.1rem, 1.6vw, 1.35rem); font-weight: 600; line-height: 1.25; letter-spacing: -0.015em; }
.playlist__m { grid-column: 2; color: var(--muted); }
.playlist i { grid-row: 1; grid-column: 3; font-size: 22px; transition: transform .35s var(--ease); }
.playlist a:hover i { transform: rotate(45deg); }
.playlist a:hover .playlist__m { color: var(--ink); }

/* MÉTODO */
.method { padding-top: clamp(80px, 10vw, 140px); padding-bottom: clamp(60px, 7vw, 100px); border-top: 1px solid var(--line); }
.qs { margin-top: 56px; display: grid; gap: 0; }
@media (min-width: 900px) { .qs { grid-template-columns: repeat(3, 1fr); } .q + .q { border-left: 1.5px solid var(--ink); } .q:nth-child(2) { margin-top: 80px; } .q:nth-child(3) { margin-top: 160px; } }
.q { padding: 28px clamp(0px, 2vw, 28px) 28px; border-top: 1.5px solid var(--ink); }
.q__n { display: block; font-size: clamp(6rem, 12vw, 11rem); line-height: .8; font-weight: 800; letter-spacing: -0.012em; color: transparent; -webkit-text-stroke: 1.5px var(--ink); font-variation-settings: "opsz" 96, "wdth" 75; margin-bottom: 24px; transition: color .4s; }
.q.on .q__n { color: var(--accent); -webkit-text-stroke-color: var(--accent); }
.q h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); letter-spacing: -0.012em; line-height: 1.05; font-weight: 700; }
.q p { margin-top: 10px; color: var(--muted); max-width: 34ch; }

.seq { padding: 0; }
.seq__pin { height: 100dvh; display: grid; place-content: center; justify-items: center; text-align: center; gap: 26px; padding: 0 var(--gut); background: var(--ink); color: var(--bg); position: relative; overflow: hidden; }
.seq__label { color: var(--accent); text-transform: uppercase; letter-spacing: .14em; font-size: 12px; }
.seq__words { position: relative; height: 1.05em; width: 100vw; font-size: clamp(3.4rem, 15vw, 15rem); line-height: 1; font-weight: 800; letter-spacing: -0.012em; font-variation-settings: "opsz" 96, "wdth" 75; }
.seq__words span { position: absolute; inset: 0; opacity: 0; }
.seq__words span.is-on { opacity: 1; }
.seq__words .ia { color: var(--accent); }
.seq__steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; color: rgb(237 237 234 / .4); font-size: 13px; }
.seq__steps li { transition: color .3s; }
.seq__steps li.is-on { color: var(--bg); }
.seq__note { color: rgb(237 237 234 / .7); max-width: 34ch; }
.seq__hint { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); display: grid; justify-items: center; gap: 10px; color: rgb(237 237 234 / .75); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }
.seq__hint i { font-size: 18px; color: var(--accent); animation: nudge 1.6s var(--ease) infinite; }
.seq__bar { display: block; width: 140px; height: 2px; background: rgb(237 237 234 / .18); border-radius: 2px; overflow: hidden; }
.seq__bar b { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .seq__hint { display: none; } }
@media (prefers-reduced-motion: reduce) { .seq__pin { height: auto; padding-block: 96px; } .seq__words { height: auto; display: grid; gap: .1em; } .seq__words span { position: static; opacity: 1; transform: none; } }

/* ANTES E DEPOIS */
.ba { padding-top: clamp(80px, 10vw, 140px); padding-bottom: clamp(80px, 10vw, 140px); }
.ba__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.switch { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 5px; border: 1.5px solid var(--ink); border-radius: 999px; }
.switch button { position: relative; z-index: 1; cursor: pointer; border: 0; background: none; height: 46px; padding: 0 24px; font-weight: 600; transition: color .35s; }
.switch button.is-on { color: var(--bg); }
.switch__thumb { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 999px; background: var(--ink); transition: transform .5s var(--ease), background-color .3s; }
.switch.is-after .switch__thumb { transform: translateX(100%); background: var(--accent); }
.switch.is-after button.is-on { color: var(--ink); }
.ba__lead { min-height: 3.2em; }
.board { position: relative; margin-top: 36px; min-height: 520px; border: 1.5px solid var(--ink); border-radius: var(--radius-lg); background: var(--paper); padding: 24px; }
.node { display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; border: 1.5px solid var(--ink); background: var(--bg); font-weight: 600; white-space: nowrap; }
.node i { font-size: 18px; }
.node em { display: none; font-style: normal; font-family: var(--mono); font-size: 11px; font-weight: 400; color: var(--muted); margin-left: auto; }
.node .alt-b { display: none; }
.board.is-chaos .node { position: absolute; transform: rotate(var(--r)); }
.board.is-chaos .node[data-flip="1"] { left: 6%; top: 10%; --r: -5deg; }
.board.is-chaos .node[data-flip="2"] { left: 46%; top: 18%; --r: 4deg; }
.board.is-chaos .node[data-flip="3"] { left: 14%; top: 44%; --r: 6deg; }
.board.is-chaos .node[data-flip="4"] { left: 58%; top: 46%; --r: -7deg; }
.board.is-chaos .node[data-flip="5"] { left: 8%; top: 74%; --r: -3deg; border-color: #b8361a; color: #a8301a; }
.board.is-chaos .node[data-flip="6"] { left: 44%; top: 78%; --r: 5deg; border-color: #b8361a; color: #a8301a; }
.board.is-flow { display: grid; align-content: center; gap: 10px; }
@media (min-width: 900px) { .board.is-flow { grid-template-columns: repeat(3, 1fr); } }
.board.is-flow .node { white-space: normal; }
.board.is-flow .node em { display: inline; }
.board.is-flow .alt-a { display: none; }
.board.is-flow .alt-b { display: inline; }
.board.is-flow .node--key { background: var(--accent); border-color: var(--accent); }
.board.is-flow .node--key em { color: var(--ink); }
@media (max-width: 640px) {
  .board { min-height: 460px; padding: 16px; }
  .board.is-chaos .node { font-size: 13px; padding: 9px 12px; white-space: normal; max-width: 62%; }
  .board.is-chaos .node[data-flip="2"] { left: 34%; top: 20%; }
  .board.is-chaos .node[data-flip="4"] { left: 40%; top: 48%; }
  .board.is-chaos .node[data-flip="6"] { left: 30%; top: 84%; }
}

/* TRABALHO: painéis que abrem */
.work { padding-top: clamp(80px, 10vw, 140px); padding-bottom: clamp(80px, 10vw, 140px); background: var(--paper); border-block: 1px solid var(--line); }
.acc { margin-top: 48px; display: grid; gap: 10px; }
@media (min-width: 900px) { .acc { display: flex; height: 460px; } }
.panel { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 28px; border-radius: var(--radius-lg); border: 1.5px solid var(--ink); background: var(--bg); min-height: 240px; flex: 1; transition: flex-grow .7s var(--ease), background-color .5s var(--ease); }
@media (min-width: 900px) { .panel.is-open { flex-grow: 2.6; background: var(--accent); } }
@media (max-width: 899px) { .panel { background: var(--bg); } .panel:first-child { background: var(--accent); } }
.panel__n { font-size: 13px; }
.panel__body { display: grid; gap: 10px; max-width: 42ch; }
.panel h3 { font-size: clamp(1.8rem, 3.4vw, 3.2rem); line-height: .95; letter-spacing: -0.012em; font-weight: 800; font-variation-settings: "opsz" 96, "wdth" 80; }
.panel p { color: var(--ink-2); transition: opacity .4s; }
@media (min-width: 900px) { .panel p { min-height: 4.8em; } }
.panel__go { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; margin-top: 6px; transition: opacity .4s; }
.panel__icon { position: absolute; top: 22px; right: 24px; font-size: 40px; transition: transform .7s var(--ease); }
@media (min-width: 900px) {
  .panel:not(.is-open) p, .panel:not(.is-open) .panel__go { opacity: 0; }
  .panel.is-open .panel__icon { transform: rotate(-12deg) scale(1.2); }
}

/* PROJETOS: índice */
.projects { padding-top: clamp(80px, 10vw, 140px); padding-bottom: clamp(80px, 10vw, 140px); }
.index { margin-top: 48px; border-top: 1.5px solid var(--ink); }
.index__row { display: grid; grid-template-columns: 1fr; gap: 4px 24px; padding: 22px 10px; border-bottom: 1.5px solid var(--ink); align-items: center; transition: background-color .3s, color .3s, padding .4s var(--ease); }
@media (min-width: 760px) { .index__row { grid-template-columns: 1.1fr 1.6fr 0.6fr; } }
.index__row--head { padding-block: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-size: 11.5px; }
@media (max-width: 759px) { .index__row--head { display: none; } }
.index__name { font-size: clamp(1.7rem, 3.4vw, 2.8rem); font-weight: 800; letter-spacing: -0.012em; line-height: 1; font-variation-settings: "opsz" 96, "wdth" 80; }
.index__row span:last-child { display: inline-flex; gap: 6px; align-items: center; }
@media (min-width: 760px) { .index__row span:last-child { justify-self: end; } }
a.index__row:hover { background: var(--ink); color: var(--bg); padding-inline: 22px; }
.index__row.is-off { color: var(--muted); }
.building { color: var(--accent); }
.cursor { animation: blink 1s steps(1) infinite; }

/* BASTIDORES: foto em fatias */
.behind { padding-top: clamp(80px, 10vw, 140px); padding-bottom: clamp(80px, 10vw, 140px); display: grid; gap: 48px; align-items: center; border-top: 1px solid var(--line); }
@media (min-width: 1000px) { .behind { grid-template-columns: 0.8fr 1.2fr; gap: 80px; } }
.slices { display: flex; aspect-ratio: 4 / 5; width: 100%; max-width: 480px; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-2); }
.slices span { flex: 1; background: url("../images/davi.webp") no-repeat; background-size: 500% 100%; background-position: calc(var(--k) * 25%) 0; filter: grayscale(1) contrast(1.08); }
.behind__title { font-size: clamp(2.4rem, 5.4vw, 4.8rem); line-height: .96; letter-spacing: -0.012em; font-weight: 800; font-variation-settings: "opsz" 96, "wdth" 80; }
.behind__title span { display: block; color: var(--accent); }
.behind blockquote { margin-top: 28px; font-size: clamp(1.15rem, 1.7vw, 1.45rem); font-weight: 600; letter-spacing: -0.015em; max-width: 36ch; padding-left: 18px; border-left: 3px solid var(--accent); }

/* CONTATO */
.contact { padding-top: clamp(80px, 10vw, 140px); padding-bottom: clamp(60px, 8vw, 110px); background: var(--paper); border-top: 1px solid var(--line); }
.builder { margin-top: 44px; display: grid; gap: 40px; }
@media (min-width: 1000px) { .builder { grid-template-columns: 1.3fr 0.7fr; align-items: end; } }
.sentence { font-size: clamp(1.7rem, 3.6vw, 3.1rem); line-height: 1.2; letter-spacing: -0.012em; font-weight: 700; }
.choices { display: inline; }
.choices button { cursor: pointer; font: inherit; letter-spacing: inherit; background: none; border: 0; padding: 0 .08em; margin: 0 .04em; color: rgb(18 18 18 / .28); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .12em; text-decoration-color: rgb(18 18 18 / .2); transition: color .3s, text-decoration-color .3s; }
.choices button:hover { color: var(--ink-2); }
.choices button.is-on { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 4px; }
.choices button + button::before { content: "/"; color: rgb(18 18 18 / .2); margin-right: .2em; text-decoration: none; display: inline-block; }
.builder__out { display: grid; gap: 14px; justify-items: start; }
.builder__preview { padding: 14px 16px; border-radius: 14px; border: 1px dashed var(--line-2); background: var(--bg); font-size: 13px; width: 100%; }
.builder__hint { color: var(--muted); font-size: 14px; }
.socials { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; font-weight: 600; }
.socials .mono { color: var(--muted); font-weight: 400; }

/* FECHAMENTO */
.end { padding-top: clamp(90px, 12vw, 170px); padding-bottom: clamp(40px, 5vw, 70px); }
.end__sub { max-width: 40ch; color: var(--muted); font-size: clamp(1.05rem, 1.4vw, 1.25rem); margin-bottom: 20px; }
.end__link { display: block; font-size: clamp(3.2rem, 12.5vw, 13rem); line-height: .9; letter-spacing: -0.012em; font-weight: 800; font-variation-settings: "opsz" 96, "wdth" 75; }
.end__link .ch { display: inline-block; transition: transform .5s var(--ease), color .3s; transition-delay: calc(var(--d) * 18ms); }
.end__link:hover .ch { transform: translateY(-0.08em); color: var(--accent); }
.end__link .sp { display: inline-block; width: .16em; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding: 22px var(--gut) 30px; border-top: 1.5px solid var(--ink); font-size: 13px; }

/* Estados iniciais (só com JS e movimento liberado) */
.js-motion .hero__title .word { transform: translateY(105%); }
.js-motion .hero__foot > * { opacity: 0; transform: translateY(20px); }
.js-motion .slices span { transform: translateY(101%); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .strike path { stroke-dashoffset: 0; }
  .hl { background-size: 100% .22em; }
}

/* Ajustes de celular */
.hero, .end { overflow: hidden; }
html { overflow-x: clip; }
@media (max-width: 640px) {
  .hero { min-height: auto; padding-bottom: 40px; justify-content: flex-start; gap: 36px; }
  .hero__title { font-size: 22.5vw; }
  .row--pill { padding-left: 14vw; }
  .lead-form { box-shadow: 4px 4px 0 var(--ink); }
  .choices { display: grid; justify-items: start; gap: .15em; margin-top: .2em; }
  .choices button + button::before { content: none; }
  .choices button { text-align: left; }
}
