/* Paleta do manual de marca Kyvo */
:root {
  --ink: #0B1B33;
  --ink-2: #0E2140;
  --ink-soft: #4B597A;
  --accent: #2454FF;
  --accent-2: #6A8BFF;
  --accent-soft: #E4EAFD;
  --bg: #F4F6FB;
  --white: #FFFFFF;
  --line: #DDE3EF;
  --line-dark: rgba(228, 234, 253, .12);
  --muted-dark: #A9B4CF;

  --sans: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --wrap: 1160px;
  --radius: 18px;

  /* cores do K (herdadas pelo <use>) */
  --stem: var(--ink);
  --chev: var(--accent);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 700; }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); max-width: 18ch; }
h3 { font-size: 1.35rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
em { font-style: normal; color: var(--accent); }
code { font-family: var(--mono); font-size: .88em; color: var(--accent); }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }

.k-stem { fill: var(--stem); }
.k-chev { stroke: var(--chev); }

.eyebrow {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .95em 1.6em;
  border-radius: 999px;
  border: 1.5px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font: 600 1rem/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s, background .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -10px rgba(36, 84, 255, .7); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent-2); outline-offset: 3px;
}
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); }
.btn--ghost:hover { border-color: #fff; box-shadow: none; }
.btn--sm { padding: .7em 1.2em; font-size: .92rem; }
.btn--full { width: 100%; }

/* Header */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .3s, box-shadow .3s;
  --stem: #F4F6FB;
}
.header.is-scrolled { background: rgba(11, 27, 51, .88); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line-dark); }
.header__in { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: #fff; }
.brand__k { width: 30px; height: 30px; }
.brand__name { font-weight: 700; font-size: 1.45rem; letter-spacing: -.03em; }
.brand__name span { color: var(--accent-2); }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a:not(.btn) { color: var(--muted-dark); text-decoration: none; font-weight: 500; font-size: .96rem; transition: color .2s; }
.nav a:not(.btn):hover { color: #fff; }
.menu { display: none; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: #08142A;
  color: #fff;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: 120px 0 80px;
  --stem: #F4F6FB;
  --chev: var(--accent);
}
.hero__grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(169, 180, 207, .16) 1px, transparent 1.4px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, #000 60%, transparent);
}
.hero__glow {
  position: absolute; width: 900px; height: 900px; right: -250px; top: -200px;
  background: radial-gradient(circle, rgba(36, 84, 255, .32), transparent 62%);
  pointer-events: none;
}
.hero__in { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2.7rem, 7vw, 5.4rem); max-width: 12ch; margin-bottom: .35em; }
.hero h1 em { color: var(--accent-2); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted-dark); max-width: 36ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 2.2rem; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 0; }
.chips li {
  font-family: var(--mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-2);
  border: 1px solid rgba(106, 139, 255, .35);
  border-radius: 999px; padding: .45em 1.1em;
}
.hero__mark { position: relative; aspect-ratio: 1; max-width: 460px; justify-self: end; width: 100%; }
.hero__k { width: 100%; height: 100%; filter: drop-shadow(0 30px 80px rgba(36, 84, 255, .35)); }
.hero__k .k-chev { stroke-dasharray: 130; stroke-dashoffset: 130; animation: draw 1.4s .3s cubic-bezier(.65,0,.35,1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.code {
  position: absolute; font-family: var(--mono); font-size: .85rem; color: var(--muted-dark);
  background: rgba(14, 33, 64, .8); border: 1px solid var(--line-dark);
  padding: .35em .8em; border-radius: 8px; white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}
.code--1 { top: 6%; left: -4%; }
.code--2 { top: 46%; right: -6%; animation-delay: -2s; }
.code--3 { bottom: 4%; left: 8%; animation-delay: -4s; color: var(--accent-2); }
@keyframes float { 50% { transform: translateY(-10px); } }

/* Seções */
.section { padding: clamp(80px, 11vw, 140px) 0; }
.section__lead { color: var(--ink-soft); font-size: 1.15rem; margin-top: -.4rem; }
.section--light { background: var(--white); }
.section--dark { background: var(--ink); color: #fff; --stem: #F4F6FB; }
.section--dark .eyebrow { color: var(--accent-2); }
.section--dark em { color: var(--accent-2); }

.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.split--center { align-items: center; }

/* Comparativo */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.compare__col { border-radius: var(--radius); padding: 1.8rem; }
.compare__col--old { background: var(--bg); color: var(--ink-soft); }
.compare__col--new { background: var(--ink); color: #fff; }
.compare__label { font-family: var(--mono); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1.2rem; }
.compare__col--new .compare__label { color: var(--accent-2); }
.compare ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.compare li { position: relative; padding-left: 1.7rem; line-height: 1.4; }
.compare__col--old li::before { content: "×"; position: absolute; left: 0; font-family: var(--mono); opacity: .6; }
.compare__col--new li::before { content: ">"; position: absolute; left: 0; font-family: var(--mono); color: var(--accent-2); font-weight: 500; }

/* Cards de serviço */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 3rem; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem; display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -24px rgba(11, 27, 51, .25); border-color: var(--accent-soft); }
.card__tag { font-family: var(--mono); font-size: .8rem; color: var(--accent); background: var(--accent-soft); align-self: flex-start; padding: .3em .7em; border-radius: 6px; margin-bottom: 1.6rem; }
.card p { color: var(--ink-soft); }
.card__list { list-style: none; padding: 1.2rem 0 0; margin: auto 0 0; border-top: 1px solid var(--line); display: grid; gap: .45rem; font-size: .95rem; }
.card__list li::before { content: "— "; color: var(--accent); }
.card--accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.card--accent p { color: rgba(255,255,255,.82); }
.card--accent .card__tag { background: rgba(255,255,255,.16); color: #fff; }
.card--accent .card__list { border-color: rgba(255,255,255,.25); }
.card--accent .card__list li::before { color: #fff; }
.card--accent:hover { border-color: var(--accent); }

/* Etapas */
.steps { list-style: none; padding: 0; margin: 3rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; counter-reset: s; }
.step { border-top: 1px solid var(--line-dark); padding-top: 1.6rem; position: relative; }
.step::before { content: ""; position: absolute; top: -1px; left: 0; width: 40px; height: 2px; background: var(--accent); }
.step__n { font-family: var(--mono); font-size: .85rem; color: var(--accent-2); display: block; margin-bottom: 1.4rem; }
.step p { color: var(--muted-dark); font-size: .98rem; }

/* Sobre / conceito */
.concept { margin: 0; }
.concept__box {
  position: relative; aspect-ratio: 1; max-width: 420px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 24px;
  padding: 14%;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 10% 10%;
  background-position: center;
}
.concept__grid { position: absolute; top: 16px; left: 18px; font-family: var(--mono); font-size: .72rem; color: var(--ink-soft); background: var(--bg); padding: 0 .3em; }
.concept__k { width: 100%; height: 100%; }
.concept figcaption { font-family: var(--mono); font-size: .8rem; color: var(--ink-soft); margin-top: 1rem; }
#sobre p:not(.eyebrow) { color: var(--ink-soft); max-width: 52ch; }

/* Contato */
.contact { position: relative; overflow: hidden; --chev: var(--accent); }
.contact::after {
  content: ""; position: absolute; width: 700px; height: 700px; right: -200px; top: -250px;
  background: radial-gradient(circle, rgba(36, 84, 255, .25), transparent 62%); pointer-events: none;
}
.contact .wrap { position: relative; z-index: 1; }
.contact__k { width: 84px; height: 84px; margin: 0 0 1.6rem -12px; }
.contact__title { font-size: clamp(3rem, 7vw, 5.2rem); }
.whats {
  display: inline-block; margin-top: 1rem;
  font-family: var(--mono); font-size: clamp(1.2rem, 2.4vw, 1.6rem); font-weight: 500;
  background: var(--accent); color: var(--ink); text-decoration: none;
  padding: .7em 1.4em; border-radius: 999px; transition: transform .2s;
}
.whats:hover { transform: translateY(-2px); }
.social a { font-family: var(--mono); color: var(--muted-dark); text-decoration: none; font-size: .95rem; }
.social a:hover { color: #fff; }
.social { margin-top: 1.4rem; }

.form {
  background: rgba(244, 246, 251, .04); border: 1px solid var(--line-dark);
  border-radius: 24px; padding: clamp(1.4rem, 3vw, 2.2rem);
  display: grid; gap: 1.1rem;
}
.form label { display: grid; gap: .45rem; font-size: .9rem; color: var(--muted-dark); font-weight: 500; }
.form input:not([type=checkbox]), .form textarea {
  font: inherit; font-size: 1rem; color: #fff;
  background: rgba(8, 20, 42, .6); border: 1px solid var(--line-dark); border-radius: 12px;
  padding: .85em 1em; resize: vertical; width: 100%;
  transition: border-color .2s;
}
.form input:focus, .form textarea:focus { border-color: var(--accent); outline: none; }
.form textarea::placeholder { color: #66739A; }
.form fieldset { border: 0; padding: 0; margin: 0; }
.form legend { font-size: .9rem; color: var(--muted-dark); font-weight: 500; margin-bottom: .6rem; padding: 0; }
.pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.pills label { display: block; cursor: pointer; }
.pills input { position: absolute; opacity: 0; pointer-events: none; }
.pills span {
  display: block; padding: .55em 1.1em; border-radius: 999px;
  border: 1px solid var(--line-dark); color: var(--muted-dark); font-size: .92rem;
  transition: all .2s;
}
.pills input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.pills input:focus-visible + span { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.form__err { color: #FF9A9A; font-size: .9rem; margin: 0; min-height: 0; }
.form__err:empty { display: none; }

/* Portfólio */
.portfolio { overflow: hidden; padding-top: 0; }
.marquee {
  border-bottom: 1px solid var(--line-dark);
  padding: 1.4rem 0; margin-bottom: clamp(70px, 9vw, 120px);
  overflow: hidden; white-space: nowrap;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track { display: inline-flex; animation: marquee 45s linear infinite; }
.marquee span {
  font-size: clamp(2.2rem, 6vw, 5rem); font-weight: 700; letter-spacing: -.03em; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(169, 180, 207, .35);
  padding-right: .6em;
}
.marquee span::after { content: "/"; color: var(--accent); -webkit-text-stroke: 0; padding-left: .6em; }
@keyframes marquee { to { transform: translateX(-50%); } }

.portfolio__head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; margin-bottom: 3rem; }
.portfolio__head h2 { margin: 0; font-size: clamp(2.6rem, 6vw, 4.6rem); }
.portfolio__lead { color: var(--muted-dark); max-width: 34ch; margin: 0; }

.works { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(2rem, 3vw, 2.6rem) clamp(1.2rem, 2.4vw, 2rem); }
.work { grid-column: span 6; display: flex; flex-direction: column; gap: 1.2rem; text-decoration: none; color: #fff; }
.work:nth-child(4n+1), .work:nth-child(4n+4) { grid-column: span 7; }
.work:nth-child(4n+2), .work:nth-child(4n+3) { grid-column: span 5; }
.work:last-child:nth-child(odd) { grid-column: span 12; }

.work__stage {
  --tint-soft: color-mix(in srgb, var(--tint) 45%, transparent);
  position: relative; height: clamp(300px, 34vw, 470px); overflow: hidden;
  border-radius: 22px; border: 1px solid var(--line-dark);
  background:
    radial-gradient(120% 90% at 85% 0%, var(--tint-soft), transparent 60%),
    radial-gradient(rgba(169, 180, 207, .12) 1px, transparent 1.4px) 0 0 / 22px 22px,
    #0A1830;
  isolation: isolate;
}
.browser {
  position: absolute; top: 11%; left: 7%; right: 17%; bottom: -4%;
  border-radius: 12px 12px 0 0; overflow: hidden;
  background: #0E1A2E; box-shadow: 0 30px 70px -20px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.08);
  display: flex; flex-direction: column;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.browser__bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #14223A; flex: none; }
.browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.18); flex: none; }
.browser__bar span {
  margin-left: 10px; font-family: var(--mono); font-size: .68rem; color: var(--muted-dark);
  background: rgba(255,255,255,.06); padding: .25em .9em; border-radius: 6px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;
}
.browser__screen { flex: 1; min-height: 0; }
.browser__screen img, .phone img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%;
  transition: object-position 7s cubic-bezier(.45,.05,.4,1);
}
.phone {
  position: absolute; right: 5%; bottom: 7%; width: clamp(88px, 22%, 150px);
  border-radius: 20px; overflow: hidden; border: 5px solid #050B16;
  box-shadow: 0 24px 50px -12px rgba(0,0,0,.75), 0 0 0 1px rgba(255,255,255,.1);
  background: #050B16;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.phone img { height: auto; object-fit: fill; transition: none; }

.work__meta { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: start; }
.work__n { font-family: var(--mono); font-size: .8rem; color: var(--muted-dark); padding-top: .3rem; }
.work__cat {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 .35rem;
  color: color-mix(in srgb, var(--tint) 55%, white);
}
.work h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); margin: 0 0 .35rem; }
.work__desc { color: var(--muted-dark); font-size: .95rem; margin: 0; max-width: 46ch; }
.work__go {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-dark);
  display: grid; place-items: center; flex: none;
  transition: background .3s, border-color .3s, transform .4s;
}
.work__go svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.work:hover .browser, .work:focus-visible .browser { transform: translateY(-8px); }
.work:hover .browser__screen img, .work:focus-visible .browser__screen img { object-position: 50% 100%; }
.work:hover .phone, .work:focus-visible .phone { transform: translateY(-14px) rotate(-3deg); }
.work:hover .work__go, .work:focus-visible .work__go { background: var(--accent); border-color: var(--accent); transform: rotate(45deg); }
.work:focus-visible { outline: none; }
.work:focus-visible .work__stage { outline: 2px solid var(--accent-2); outline-offset: 4px; }

/* No toque, a página rola sozinha quando o card aparece */
@keyframes pan { from, 15% { object-position: 50% 0%; } to { object-position: 50% 100%; } }
@media (hover: none) {
  .work:not(.work--feature).is-in .browser__screen img { animation: pan 9s 1s cubic-bezier(.45,.05,.4,1) infinite alternate; }
}

.portfolio__cta {
  margin-top: clamp(3rem, 6vw, 5rem); padding: clamp(1.6rem, 3vw, 2.4rem);
  border: 1px solid var(--line-dark); border-radius: 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap;
  background: linear-gradient(100deg, rgba(36, 84, 255, .18), transparent 70%);
}
.portfolio__cta p { margin: 0; font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 600; letter-spacing: -.02em; }

/* Projeto em destaque que abre um case (em vez de um link) */
.work--feature {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(1.4rem, 3vw, 2.6rem); align-items: center;
  width: 100%; margin: 0 0 clamp(2rem, 3vw, 2.6rem); padding: 0;
  background: none; border: 0; text-align: left; font: inherit; cursor: pointer;
}
.work--feature .work__stage { height: clamp(300px, 36vw, 500px); }
.work--feature .browser { right: 7%; }
.work--feature .work__meta { grid-template-columns: auto 1fr; }
.work--feature .browser__screen img, .work--feature:hover .browser__screen img, .work--feature:focus-visible .browser__screen img { object-position: 0 0; }
.work--feature h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.work__more {
  display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.4rem;
  font-weight: 600; font-size: .95rem; color: #fff;
  padding: .75em 1.3em; border-radius: 999px; border: 1px solid var(--line-dark);
  transition: background .3s, border-color .3s;
}
.work__more svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s; }
.work--feature:hover .work__more, .work--feature:focus-visible .work__more { background: var(--tint); border-color: var(--tint); }
.work--feature:hover .work__more svg { transform: translateX(4px); }

/* Janela do case */
.case {
  width: min(100% - 24px, 1080px); max-width: none; max-height: calc(100% - 24px);
  margin: auto; padding: 0; border: 0; border-radius: 24px;
  background: var(--ink); color: #fff;
  box-shadow: 0 40px 120px -20px rgba(0,0,0,.8), 0 0 0 1px var(--line-dark);
  overscroll-behavior: contain;
}
.case::backdrop { background: rgba(4, 10, 22, .72); backdrop-filter: blur(6px); }
.case[open] { animation: case-in .45s cubic-bezier(.2,.7,.2,1); }
.case[open]::backdrop { animation: fade-in .3s ease; }
@keyframes case-in { from { opacity: 0; transform: translateY(24px) scale(.98); } }
@keyframes fade-in { from { opacity: 0; } }
body.has-case { overflow: hidden; }

.case__panel {
  position: relative; padding: clamp(1.4rem, 4vw, 3.2rem);
  background: radial-gradient(80% 50% at 100% 0%, color-mix(in srgb, var(--tint) 35%, transparent), transparent 70%);
}
.case__close {
  position: sticky; top: 0; float: right; z-index: 2; margin: -.4rem -.4rem 0 1rem;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(11, 27, 51, .85); border: 1px solid var(--line-dark); color: #fff; cursor: pointer;
  backdrop-filter: blur(8px); transition: background .2s, transform .2s;
}
.case__close:hover { background: var(--accent); transform: rotate(90deg); }
.case__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.case__head .eyebrow { color: color-mix(in srgb, var(--tint) 45%, white); }
.case__head h2 { font-size: clamp(2rem, 5vw, 3.4rem); max-width: none; margin-bottom: .6rem; }
.case__lead { color: var(--muted-dark); font-size: clamp(1rem, 1.6vw, 1.15rem); max-width: 60ch; }
.case__facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 2rem 0 0; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: 14px; overflow: hidden; }
.case__facts div { background: var(--ink); padding: .9rem 1rem; }
.case__facts dt { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-dark); margin-bottom: .3rem; }
.case__facts dd { margin: 0; font-weight: 600; font-size: .95rem; }

.case__hero { margin: clamp(2rem, 4vw, 3rem) 0 0; }
.case .case__hero .browser { position: relative; inset: auto; border-radius: 12px; }
.case__shot { max-height: 560px; overflow: auto; scrollbar-width: thin; }
.case__shot img { width: 100%; height: auto; }
.case figcaption { font-family: var(--mono); font-size: .75rem; color: var(--muted-dark); margin-top: .7rem; }

.case__block { margin-top: clamp(2.4rem, 5vw, 3.6rem); }
.case__block h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 1.2rem; }
.case__mods { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.case__mods article { border: 1px solid var(--line-dark); border-radius: 16px; padding: 1.2rem 1.2rem 1.3rem; background: rgba(255,255,255,.02); }
.case__mods span { font-family: var(--mono); font-size: .75rem; color: color-mix(in srgb, var(--tint) 45%, white); }
.case__mods h4 { font-size: 1.1rem; margin: .5rem 0 .4rem; }
.case__mods p { color: var(--muted-dark); font-size: .92rem; margin: 0; }

.case__gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.case__gallery figure { margin: 0; }
.case__gallery img { width: 100%; height: auto; aspect-ratio: 1100 / 493; object-fit: cover; object-position: 0 0; border-radius: 10px; border: 1px solid var(--line-dark); box-shadow: 0 20px 40px -20px rgba(0,0,0,.7); }
.case__note { font-family: var(--mono); font-size: .72rem; color: #7F8BA8; margin: 1.2rem 0 0; }

.case__cta {
  margin-top: clamp(2.4rem, 5vw, 3.6rem); padding: clamp(1.2rem, 3vw, 1.8rem);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  border-radius: 18px; background: linear-gradient(100deg, rgba(36, 84, 255, .22), transparent 80%); border: 1px solid var(--line-dark);
}
.case__cta p { margin: 0; font-size: clamp(1.1rem, 2.2vw, 1.4rem); font-weight: 600; }

/* Bolinha "Visitar" sobre os projetos */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none;
  width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: #fff; font: 600 .85rem/1 var(--sans);
  transform: translate(var(--x, -200px), var(--y, -200px)) scale(0);
  transition: transform .25s cubic-bezier(.2,.7,.2,1);
  box-shadow: 0 10px 30px -8px rgba(36, 84, 255, .8);
}
.cursor.is-on { transform: translate(var(--x), var(--y)) scale(1); }
@media (hover: none) { .cursor { display: none; } }

/* Rodapé */
.footer { background: #08142A; color: var(--muted-dark); padding: 2.4rem 0; --stem: #F4F6FB; }
.footer__in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.footer p { margin: 0; font-size: .88rem; }
.footer__tag { font-family: var(--mono); font-size: .76rem !important; letter-spacing: .06em; }

/* Animação de entrada */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__k .k-chev { animation: none; stroke-dashoffset: 0; }
  .code { animation: none; }
  .marquee__track { animation: none; }
  .browser__screen img, .phone img { transition: none; animation: none !important; }
  .cursor { display: none; }
  .case[open], .case[open]::backdrop { animation: none; }
}

/* Responsivo */
@media (max-width: 960px) {
  .hero__in, .split { grid-template-columns: 1fr; }
  .hero__mark { justify-self: start; max-width: 300px; order: -1; margin-left: 20px; }
  .code { font-size: .72rem; }
  .cards { grid-template-columns: 1fr; }
  .works { grid-template-columns: 1fr; }
  .work--feature { grid-template-columns: 1fr; }
  .case__mods { grid-template-columns: 1fr 1fr; }
  .case__facts { grid-template-columns: 1fr 1fr; }
  .work, .work:nth-child(n), .work:last-child:nth-child(odd) { grid-column: auto; }
  .work__stage { height: clamp(260px, 62vw, 460px); }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 2.4rem; }
  .concept__box { max-width: 340px; }
}
@media (max-width: 760px) {
  .menu {
    display: grid; gap: 6px; place-content: center;
    width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 0;
  }
  .menu span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s; }
  .menu[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav {
    position: fixed; inset: 72px 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); padding: .5rem 16px 1.4rem; border-bottom: 1px solid var(--line-dark);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .25s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { padding: .95rem 0; border-bottom: 1px solid var(--line-dark); font-size: 1.05rem; }
  .nav .btn { margin-top: 1rem; }
  .hero { padding-top: 100px; min-height: auto; }
  .hero__in { gap: 1.2rem; }
  .hero__mark { max-width: 140px; margin: 1rem 0 1.4rem 12px; }
  .code { font-size: .66rem; }
  .code--1 { left: -4px; top: -10%; }
  .code--3 { left: 36%; bottom: -10%; }
  .code--2 { right: -62%; }
  .compare { grid-template-columns: 1fr; }
  .work__stage { height: clamp(240px, 68vw, 420px); border-radius: 18px; }
  .browser { left: 5%; right: 5%; top: 9%; border-radius: 10px 10px 0 0; }
  .browser__bar { padding: 7px 10px; }
  .browser__bar span { font-size: .62rem; }
  .phone { width: 23%; right: 4%; bottom: 5%; border-width: 3px; border-radius: 12px; }
  .work__go { display: none; }
  .work__meta { grid-template-columns: auto 1fr; }
  .work--feature .browser { right: 5%; }
  .case { width: 100%; max-height: 100%; height: 100%; border-radius: 0; }
  .case__mods, .case__gallery { grid-template-columns: 1fr; }
  .case__shot { max-height: 60vh; }
  .steps { grid-template-columns: 1fr; }
  .footer__in { flex-direction: column; align-items: flex-start; }
}
