/* WZS Studio · portfólio de desenvolvedor front-end
   Referências: noth.in (estrutura, projetos, showreel) e alejandroha.com (colchetes, serviços empilhados, rodapé azul).
   Paleta da marca: azul-marinho, azul e gelo. Fonte única: Geist, com Geist Mono só para código. */

:root {
  --bg: #0f1a2b;
  --bg-deep: #0a1220;
  --surface: #15233a;
  --line: #22324d;
  --text: #eef1f6;
  --body: #c5ccd8;
  --muted: #8e99ab;
  --blue: #3b82f6;
  --blue-d: #1f5fd6;
  --blue-sec: #173a8a;
  --code-str: #9ec5ff;
  --code-key: #6ea8ff;
  --code-com: #5d6a80;
  --g: 16px;                                      /* margem lateral */
  --ease: cubic-bezier(.32, .72, 0, 1);
  --sans: "Geist", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
}
@media (min-width: 768px) { :root { --g: 24px; } }
@media (min-width: 1280px) { :root { --g: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/24px var(--sans); letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; letter-spacing: inherit; }
img, video, svg { display: block; max-width: 100%; }
figure, p, h1, h2, h3, dl, dd { margin: 0; }
h1, h2, h3 { font-weight: 600; text-wrap: balance; }
p { text-wrap: pretty; }
code { font: 400 14px/20px var(--mono); color: var(--code-str); background: var(--surface); padding: 2px 4px; border-radius: 4px; }
.sr-only, .sr-defs { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 4px; }
.skip { position: fixed; left: 16px; top: -64px; z-index: 200; padding: 8px 12px; border-radius: 8px; background: var(--blue-d); color: #fff; font-weight: 600; transition: top .5s var(--ease); }
.skip:focus { top: 16px; }

.mono { font: 400 12px/16px var(--mono); letter-spacing: .02em; color: var(--muted); }
.bracket { font: 600 30px/36px var(--sans); letter-spacing: -.03em; }
.bracket::first-letter { color: var(--blue); }
@media (min-width: 768px) { .bracket { font-size: 36px; line-height: 40px; } }

/* ---------- Botões ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 9999px;
  font: 600 16px/24px var(--sans); letter-spacing: -.01em; white-space: nowrap;
  transition: background .7s var(--ease), border-color .7s var(--ease), color .7s var(--ease), transform .7s var(--ease);
}
.btn i { font-size: 20px; }
.btn:active { transform: scale(.98); }
.btn--blue { background: var(--blue-d); color: #fff; }
.btn--blue:hover { background: var(--blue); }
.btn--ghost { border: 1px solid var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--text); }
.btn--sm { font-size: 14px; line-height: 20px; padding: 8px 12px; background: var(--blue-d); color: #fff; }
.btn--sm:hover { background: var(--blue); }

/* ---------- Carregamento estilo terminal ---------- */
.loader { position: fixed; inset: 0; z-index: 100; background: var(--bg-deep); display: flex; flex-direction: column; justify-content: flex-end; padding: 32px var(--g); }
.loader__log { margin: 0; font: 400 14px/20px var(--mono); color: var(--muted); white-space: pre-wrap; }
.loader__log .ok { color: var(--blue); }
.loader__count { position: absolute; top: 32px; right: var(--g); font: 500 48px/1 var(--mono); color: var(--text); }

/* ---------- Cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 90; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 9999px; background: var(--blue); pointer-events: none; display: grid; place-items: center; transition: width .7s var(--ease), height .7s var(--ease), margin .7s var(--ease), background .7s var(--ease), opacity .3s; }
.cursor__label { font: 500 12px/16px var(--mono); color: #fff; opacity: 0; white-space: nowrap; transition: opacity .3s; }
.cursor.is-link { width: 40px; height: 40px; margin: -20px 0 0 -20px; background: rgba(59, 130, 246, .35); }
.cursor.is-label { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--blue-d); }
.cursor.is-label .cursor__label { opacity: 1; }
.cursor.is-hidden { opacity: 0; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Menu em pílula flutuante ---------- */
.island {
  position: fixed; top: 24px; left: 50%; transform: translateX(-50%); z-index: 70; width: max-content; max-width: calc(100% - 32px);
  display: flex; align-items: center; gap: 24px; padding: 8px 8px 8px 16px; border-radius: 9999px;
  background: rgba(15, 26, 43, .72); border: 1px solid rgba(238, 241, 246, .1);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  transition: transform .7s var(--ease), background .7s var(--ease);
}
.island.is-hidden { transform: translate(-50%, -96px); }
.island__brand { font: 700 18px/28px var(--sans); letter-spacing: -.04em; }
.island__brand span { color: var(--blue); }
.island__links { display: flex; gap: 24px; font-size: 14px; line-height: 20px; color: var(--body); }
.island__links a { position: relative; transition: color .7s var(--ease); }
.island__links a:hover, .island__links a.is-current { color: var(--text); }
.island__links a.is-current::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 4px; height: 4px; margin-left: -2px; border-radius: 9999px; background: var(--blue); }
.burger { position: relative; display: none; width: 40px; height: 40px; border-radius: 9999px; background: var(--surface); }
.burger span { position: absolute; left: 12px; width: 16px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .7s var(--ease), top .7s var(--ease); }
.burger span:first-child { top: 16px; }
.burger span:last-child { top: 22px; }
.burger[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 65; background: rgba(10, 18, 32, .8); -webkit-backdrop-filter: blur(64px); backdrop-filter: blur(64px); display: flex; align-items: center; padding: 96px var(--g); }
.menu[hidden] { display: none; }
.menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.menu li { overflow: hidden; }
.menu li a { display: flex; align-items: baseline; gap: 16px; font: 600 48px/1 var(--sans); letter-spacing: -.04em; transform: translateY(48px); opacity: 0; transition: transform .7s var(--ease), opacity .7s var(--ease), color .7s var(--ease); }
.menu.is-open li a { transform: none; opacity: 1; }
.menu.is-open li:nth-child(1) a { transition-delay: .1s; }
.menu.is-open li:nth-child(2) a { transition-delay: .15s; }
.menu.is-open li:nth-child(3) a { transition-delay: .2s; }
.menu.is-open li:nth-child(4) a { transition-delay: .25s; }
.menu.is-open li:nth-child(5) a { transition-delay: .3s; }
.menu li a:hover { color: var(--blue); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; padding: 128px var(--g) 32px; display: flex; flex-direction: column; justify-content: space-between; gap: 64px; background: var(--bg); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: center; }
.hero__tag { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; }
.hero__tag .dot { width: 8px; height: 8px; border-radius: 9999px; background: var(--blue); box-shadow: 0 0 0 4px rgba(59, 130, 246, .2); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(59, 130, 246, 0); } }
.hero__title {
  max-width: 680px; font-size: 36px; line-height: 40px; letter-spacing: -.04em;
  background: linear-gradient(90deg, #ffffff, #9b9b9b); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub { max-width: 680px; margin-top: 24px; font-size: 18px; line-height: 28px; color: var(--body); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__proof { display: flex; align-items: center; gap: 8px; margin-top: 24px; }
.hero__proof i { color: var(--blue); font-size: 16px; }
.hero__logo { color: var(--surface); }
.hero__logo svg { width: 100%; height: auto; aspect-ratio: 1160 / 422; }
@media (min-width: 768px) { .hero__title { font-size: 48px; line-height: 1; } }
@media (min-width: 1200px) {
  .hero__grid { grid-template-columns: minmax(0, 680px) minmax(0, 1fr); gap: 64px; }
  .hero__title { font-size: 60px; }
}

/* ---------- Editor de código ---------- */
.editor, .term { border: 1px solid var(--line); border-radius: 16px; background: var(--bg-deep); overflow: hidden; box-shadow: 0 24px 64px rgba(0, 0, 0, .35); }
.editor__bar { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--line); }
.editor__dots { display: flex; gap: 8px; }
.editor__dots i { width: 12px; height: 12px; border-radius: 9999px; background: var(--line); }
.editor__dots i:first-child { background: var(--blue-d); }
.editor__tab { color: var(--body); }
.editor__run { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 9999px; background: var(--blue-d); color: #fff; transition: background .7s var(--ease), transform .7s var(--ease); }
.editor__run:hover { background: var(--blue); }
.editor__run:active { transform: scale(.98); }
.editor__run[disabled] { opacity: .5; cursor: wait; }
.editor__code { margin: 0; padding: 24px; min-height: 320px; font: 400 14px/24px var(--mono); color: var(--body); white-space: pre; overflow-x: auto; counter-reset: ln; }
.editor__code .ln { display: block; }
.editor__code .ln::before { counter-increment: ln; content: counter(ln); display: inline-block; width: 24px; margin-right: 16px; color: var(--code-com); text-align: right; }
.editor__code .k { color: var(--code-key); }
.editor__code .s { color: var(--code-str); }
.editor__code .c { color: var(--code-com); }
.editor__code .b { color: var(--blue); }
.caret { display: inline-block; width: 8px; height: 16px; margin-left: 2px; vertical-align: -2px; background: var(--blue); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.editor__console { min-height: 72px; padding: 12px 24px 16px; border-top: 1px solid var(--line); color: var(--body); font-size: 12px; line-height: 20px; }
.editor__console .muted { color: var(--code-com); }
.editor__console .ok { color: var(--blue); }

/* ---------- Faixa de tecnologias ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-deep); padding: 24px 0; }
.marquee__track { display: flex; gap: 24px; width: max-content; font-size: 20px; line-height: 28px; color: var(--body); animation: marquee 36s linear infinite; }
.marquee__track b { color: var(--blue); font-weight: 400; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Frase que acende ---------- */
.tagline { padding: 96px var(--g); display: flex; justify-content: center; }
.tagline__text { max-width: 1200px; font: 600 36px/40px var(--sans); letter-spacing: -.04em; text-align: center; }
.tagline__text .w { color: rgba(238, 241, 246, .28); transition: color .9s var(--ease); }
.tagline__text .w.on { color: var(--text); }
.tagline__text .w.on.hl { color: var(--blue); }
@media (min-width: 768px) { .tagline__text { font-size: 48px; line-height: 1; } }
@media (min-width: 1200px) { .tagline__text { font-size: 60px; } }

/* ---------- Revelação na rolagem ---------- */
.reveal { opacity: 0; transform: translateY(64px); filter: blur(12px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; filter: none; }

/* ---------- Sobre ---------- */
.about { padding: 96px var(--g); border-top: 1px solid var(--line); }
.about__grid { display: grid; gap: 48px; margin-top: 48px; }
.about__mark { color: var(--blue); width: 160px; }
.about__mark svg { width: 100%; height: auto; aspect-ratio: 1; animation: spin 24s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.about__text { display: grid; gap: 24px; max-width: 680px; font-size: 18px; line-height: 28px; color: var(--body); }
.about__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; padding-top: 24px; border-top: 1px solid var(--line); }
.about__facts dd { margin-top: 4px; font-size: 16px; line-height: 24px; color: var(--text); }
@media (min-width: 960px) {
  .about__grid { grid-template-columns: 1fr 680px; align-items: start; }
  .about__mark { width: 240px; justify-self: center; }
}

/* ---------- Serviços empilhados ---------- */
.services { background: var(--blue-sec); padding: 96px 0 0; }
.services > .bracket, .services__lead { padding: 0 var(--g); }
.services .bracket::first-letter { color: var(--text); }
.services__lead { margin: 16px 0 64px; font: 600 48px/1 var(--sans); letter-spacing: -.04em; max-width: 980px; }
@media (min-width: 1200px) { .services__lead { font-size: 72px; } }
.svc { position: sticky; top: 0; background: var(--blue-sec); border-top: 1px solid rgba(238, 241, 246, .18); }
.svc__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px var(--g); }
.svc__num { font-size: 24px; line-height: 32px; color: var(--text); }
.svc__head h3 { font-size: 24px; line-height: 32px; text-transform: uppercase; letter-spacing: -.02em; text-align: right; }
.svc__body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 0 var(--g) 48px; }
.svc__body p { max-width: 420px; color: #d7def0; }
.svc__body strong { display: block; color: var(--text); font-weight: 600; margin-bottom: 4px; }
.svc__body figure { overflow: hidden; border-radius: 8px; }
.svc__body img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .9s var(--ease); }
.svc:hover .svc__body img { transform: scale(1.03); }
.svc__phone { justify-self: center; }
.svc__phone img { aspect-ratio: auto; max-height: 420px; width: auto; }
.svc:nth-of-type(1) { top: 0; } .svc:nth-of-type(2) { top: 64px; } .svc:nth-of-type(3) { top: 128px; } .svc:nth-of-type(4) { top: 192px; } .svc:nth-of-type(5) { top: 256px; }
@media (min-width: 960px) {
  .svc__num, .svc__head h3 { font-size: 30px; line-height: 36px; }
  .svc__body { grid-template-columns: 1fr 1.6fr; align-items: end; padding-bottom: 64px; }
  .svc__body img { max-height: 48vh; }
}

/* ---------- Projetos ---------- */
.works { position: relative; background: var(--bg); padding: 96px var(--g); }
.works__head { display: grid; gap: 24px; }
.works__claim { font: 600 30px/36px var(--sans); letter-spacing: -.04em; color: var(--body); }
@media (min-width: 960px) { .works__head { grid-template-columns: 1fr 1fr; align-items: end; } .works__claim { justify-self: end; text-align: right; } }
.works__list { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 64px; margin-top: 64px; }
.work__open { display: block; width: 100%; text-align: left; }
.work__meta { display: flex; justify-content: space-between; margin-bottom: 12px; }
.work__meta span:last-child { color: var(--code-str); }
.work__line { display: block; font-size: 20px; line-height: 28px; letter-spacing: -.03em; margin-bottom: 16px; }
.work__media { display: block; position: relative; overflow: hidden; border-radius: 8px; background: var(--surface); aspect-ratio: 16 / 9; }
.work__media video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.2s var(--ease), filter 1.2s var(--ease); filter: saturate(.85); }
.work__open:hover video { transform: scale(1); filter: none; }
.work__media--phone { aspect-ratio: 9 / 16; }
.work__media--phone video { object-fit: contain; }
@media (min-width: 960px) {
  .works__list { grid-template-columns: repeat(24, minmax(0, 1fr)); row-gap: 96px; }
  .work--l { grid-column: 1 / 13; } .work--l .work__media { aspect-ratio: 1 / .84; }
  .work--r { grid-column: 17 / 25; margin-top: 160px; }
  .work--c { grid-column: 9 / 19; }
  .work--s { grid-column: 2 / 7; }
  .work--r2 { grid-column: 11 / 25; margin-top: 160px; }
}
@media (max-width: 959px) { .work--s { width: 64%; } }
.works__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 96px; }
.works__all { display: inline-flex; align-items: center; gap: 8px; font: 600 30px/36px var(--sans); letter-spacing: -.04em; transition: color .7s var(--ease); }
.works__all:hover { color: var(--blue); }

/* ---------- Showreel: o card cresce até ocupar a tela ---------- */
.reel { position: relative; height: 240vh; background: var(--bg); }
.reel__sticky { position: sticky; top: 0; height: 100svh; display: grid; place-items: center; overflow: hidden; }
.reel__frame { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 24px; transform: scale(.58); transform-origin: 50% 50%; will-change: transform, border-radius; background: var(--bg-deep); }
.reel__frame video { width: 100%; height: 100%; object-fit: cover; }
.reel__shade { position: absolute; left: 0; right: 0; bottom: 0; height: 160px; background: linear-gradient(0deg, rgba(10, 18, 32, .85), rgba(10, 18, 32, 0)); pointer-events: none; }
.reel__bars { position: absolute; left: var(--g); right: var(--g); bottom: 24px; display: flex; gap: 8px; }
.reel__bars button { flex: var(--w, 1); height: 24px; padding: 10px 0; }
.reel__bars button span { display: block; height: 4px; border-radius: 9999px; background: rgba(238, 241, 246, .25); overflow: hidden; transition: background .5s var(--ease); }
.reel__bars button span i { display: block; height: 100%; width: 100%; background: var(--text); transform: scaleX(0); transform-origin: left; }
.reel__bars button:hover span { background: rgba(238, 241, 246, .45); }
.reel__cap { position: absolute; left: var(--g); bottom: 64px; margin: 0; display: grid; gap: 4px; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reel__cap .mono { color: var(--code-str); }
.reel__cap span:last-child { font: 600 24px/32px var(--sans); letter-spacing: -.03em; max-width: 680px; }
.reel__cap.swap { opacity: 0; transform: translateY(12px); }
.reel__pill { position: absolute; top: 24px; right: var(--g); display: flex; align-items: center; gap: 8px; padding: 4px 8px 4px 12px; border-radius: 9999px; background: rgba(10, 18, 32, .72); color: var(--text); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.toggle { width: 24px; height: 12px; border-radius: 9999px; background: var(--blue-d); position: relative; }
.toggle::after { content: ""; position: absolute; top: 2px; right: 2px; width: 8px; height: 8px; border-radius: 9999px; background: #fff; transition: right .7s var(--ease); }
.reel__pill[aria-pressed="true"] .toggle { background: var(--line); }
.reel__pill[aria-pressed="true"] .toggle::after { right: 14px; }
@media (max-width: 767px) {
  .reel { height: auto; padding: 0 var(--g); }
  .reel__sticky { position: relative; height: auto; }
  .reel__frame { aspect-ratio: 16 / 9; height: auto; transform: none; border-radius: 8px; }
  .reel__cap { bottom: 36px; } .reel__cap span:last-child { font-size: 14px; line-height: 20px; }
  .reel__bars { bottom: 4px; } .reel__pill { top: 8px; }
}

/* ---------- Processo (git log) ---------- */
.process { padding: 96px var(--g); }
.process__cmd { margin: 24px 0 48px; font-size: 14px; line-height: 20px; color: var(--body); }
.prompt { color: var(--blue); }
.log { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 48px; max-width: 980px; }
.log::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.log__item { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 24px; padding-left: 32px; }
.log__item::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 9999px; background: var(--bg); border: 2px solid var(--blue); }
.log__hash { color: var(--code-str); padding-top: 8px; }
.log__item h3 { display: flex; align-items: baseline; gap: 12px; font-size: 30px; line-height: 36px; letter-spacing: -.03em; }
.log__item h3 .mono { color: var(--blue); }
.log__item p { margin-top: 8px; max-width: 560px; color: var(--body); }
@media (max-width: 599px) { .log__item { grid-template-columns: minmax(0, 1fr); gap: 4px; } .log__hash { padding-top: 0; } .log__item h3 { font-size: 24px; line-height: 32px; } }

/* ---------- Terminal ---------- */
.term-sec { display: grid; gap: 48px; padding: 96px var(--g); background: var(--bg-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.term-sec__copy p { margin-top: 16px; max-width: 420px; color: var(--body); font-size: 18px; line-height: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chip { padding: 8px 12px; border-radius: 9999px; border: 1px solid var(--line); color: var(--body); font-size: 14px; line-height: 20px; transition: border-color .7s var(--ease), color .7s var(--ease), transform .7s var(--ease); }
.chip:hover { border-color: var(--blue); color: var(--text); }
.chip:active { transform: scale(.98); }
.term { background: var(--bg); }
.term__out { height: 320px; overflow-y: auto; padding: 16px 24px 0; font-size: 14px; line-height: 24px; color: var(--body); white-space: pre-wrap; }
.term__out .cmd { color: var(--text); }
.term__out .ok, .term__out a { color: var(--blue); }
.term__out a { text-decoration: underline; text-underline-offset: 4px; }
.term__out .err { color: #ff8a8a; }
.term__line { display: flex; align-items: center; gap: 12px; padding: 12px 24px 16px; font-size: 14px; line-height: 24px; }
.term__line input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--text); font: inherit; caret-color: var(--blue); }
.term:focus-within { border-color: var(--blue); }
@media (min-width: 960px) { .term-sec { grid-template-columns: 1fr 1.4fr; align-items: center; } }

/* ---------- Perguntas ---------- */
.faq { padding: 96px var(--g); display: grid; gap: 48px; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px 0; cursor: pointer; list-style: none; font: 600 20px/28px var(--sans); letter-spacing: -.02em; transition: color .7s var(--ease); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--blue); }
.faq summary i { flex: none; font-size: 24px; color: var(--blue); transition: transform .7s var(--ease); }
.faq details[open] summary i { transform: rotate(45deg); }
.faq details p { max-width: 680px; padding: 0 0 24px; color: var(--body); font-size: 18px; line-height: 28px; }
@media (min-width: 960px) { .faq { grid-template-columns: 1fr 2fr; } }

/* ---------- Contato ---------- */
.contact { position: relative; min-height: 100svh; display: grid; place-items: center; padding: 96px var(--g); overflow: hidden; background: var(--bg-deep); }
.contact__float span { position: absolute; font: 400 20px/28px var(--mono); color: rgba(158, 197, 255, .35); filter: blur(1px); white-space: nowrap; will-change: transform; }
.contact__center { position: relative; text-align: center; display: grid; justify-items: center; gap: 24px; }
.contact__title { font: 700 72px/1 var(--sans); letter-spacing: -.05em; }
@media (min-width: 768px) { .contact__title { font-size: 96px; } }
@media (min-width: 1200px) { .contact__title { font-size: 128px; } }
.contact__sub { max-width: 680px; color: var(--body); font-size: 18px; line-height: 28px; }
.contact__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
@media (max-width: 767px) { .contact__float span { font-size: 14px; line-height: 20px; } .contact__sub br { display: none; } }

/* ---------- Rodapé azul com colchetes ---------- */
.footer { background: var(--blue-sec); color: var(--text); padding: 48px var(--g) 0; }
.footer__frame { position: relative; padding: 48px 24px 24px; }
.footer__frame::before, .footer__frame::after { content: ""; position: absolute; top: 0; bottom: 0; width: 32px; border: 8px solid var(--text); }
.footer__frame::before { left: 0; border-right: 0; }
.footer__frame::after { right: 0; border-left: 0; }
.footer__cols { display: grid; gap: 32px; padding: 0 24px; }
.footer__cols div { display: grid; gap: 8px; align-content: start; font-weight: 500; }
.footer__cols h3 { font-size: 24px; line-height: 32px; margin-bottom: 8px; }
.footer__cols a { width: max-content; max-width: 100%; transition: opacity .7s var(--ease); }
.footer__cols a:hover { opacity: .7; }
.footer__logo { margin-top: 64px; padding: 0 24px; color: var(--text); }
.footer__logo svg { width: 100%; height: auto; aspect-ratio: 1160 / 422; }
.footer__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 16px 0; color: #c7d2ee; text-transform: uppercase; }
@media (min-width: 768px) { .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; } }

/* ---------- Projeto aberto ---------- */
.case { position: fixed; inset: 0; z-index: 80; background: var(--bg-deep); overflow-y: auto; overscroll-behavior: contain; }
.case[hidden] { display: none; }
.case__close { position: fixed; top: 24px; right: var(--g); z-index: 2; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 9999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; transition: background .7s var(--ease); }
.case__close:hover { background: var(--blue-d); }
.case__inner { padding: 32px var(--g) 96px; max-width: 1400px; }
.case__inner h2 { font-weight: 600; font-size: 48px; line-height: 1; letter-spacing: -.05em; margin: 12px 0 32px; }
@media (min-width: 768px) { .case__inner h2 { font-size: 96px; } }
.case__video { background: #000; border-radius: 16px; overflow: hidden; }
.case__video video { width: 100%; max-height: 78svh; margin: 0 auto; }
.case__video--phone video { width: auto; height: 78svh; }
.case__cols { display: grid; gap: 48px; margin-top: 48px; }
@media (min-width: 960px) { .case__cols { grid-template-columns: 1.2fr 1fr; } }
.case__cols p { font-size: 18px; line-height: 28px; color: var(--body); margin-bottom: 16px; }
.case__cols .note { font-size: 14px; line-height: 20px; color: var(--muted); margin-top: 24px; }
.case__cols .note a { text-decoration: underline; }
.case .pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 9999px; background: var(--blue-d); color: #fff; font-weight: 600; transition: background .7s var(--ease); }
.case .pill:hover { background: var(--blue); }
.stack { list-style: none; padding: 0; margin: 8px 0 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.stack li { font: 400 12px/16px var(--mono); padding: 4px 12px; border: 1px solid var(--line); border-radius: 9999px; color: var(--code-str); }
.chapters { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.chapters button { display: flex; gap: 16px; width: 100%; padding: 12px 0; border-bottom: 1px solid var(--line); text-align: left; transition: color .7s var(--ease), padding .7s var(--ease); }
.chapters button:hover { color: var(--blue); padding-left: 8px; }
.chapters time { font: 400 12px/24px var(--mono); color: var(--blue); min-width: 40px; }
body.case-open, body.menu-open { overflow: hidden; }

/* ---------- Telas pequenas ---------- */
@media (max-width: 767px) { .hero__title br, .tagline__text br, .services__lead br, .works__claim br { display: none; } }
@media (max-width: 959px) {
  .island { gap: 12px; }
  .island__links, .island .btn--sm { display: none; }
  .burger { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
  .reel__frame { transform: none; border-radius: 0; }
}
