/* Longaray · identidade v1 ("O canto"). Tokens conforme docs/identidade-visual.md. */
:root {
  --papel: #F3EFE7;
  --papel-escuro: #E7E2D8;
  --tinta: #17140F;
  --tinta-suave: #2B2620;
  --caneta: #D93A21;
  --caneta-clara: #FF6A4D;
  --grafite: #5B554C;
  --grafite-claro: #C9C2B5;
  --marca-texto: #F2D04B;
  --linha: rgb(23 20 15 / 16%);
  --linha-clara: rgb(243 239 231 / 18%);

  --font: 'Schibsted Grotesk', system-ui, sans-serif;
  --hand: 'Nanum Pen Script', 'Segoe Print', cursive;

  --pad: clamp(20px, 5vw, 64px);
  --max: 1280px;
  --section: clamp(72px, 10vw, 136px);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
h1, h2 { font-weight: 800; letter-spacing: -0.035em; line-height: 1.04; text-wrap: balance; }
h1 { font-size: clamp(42px, 6.4vw, 88px); }
h2 { font-size: clamp(34px, 4.4vw, 60px); }
h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--caneta); outline-offset: 4px; }
::selection { background: var(--marca-texto); color: var(--tinta); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 20; background: var(--tinta); color: var(--papel); padding: 12px 16px; }
.skip:focus { top: 12px; }

/* Botões e links */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 14px 24px;
  background: var(--tinta); color: var(--papel);
  border-radius: 4px; font-weight: 700; font-size: 16px; text-decoration: none;
  transition: background-color .2s, transform .2s;
}
.button:hover { background: var(--tinta-suave); transform: translateY(-2px); }
.button--small { min-height: 44px; padding: 10px 18px; font-size: 15px; }
.button--light { background: var(--papel); color: var(--tinta); }
.button--light:hover { background: #fff; }
.text-link {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px;
}
.text-link:hover { text-decoration-color: var(--caneta); }

/* Anotação à mão: no máximo uma por tela */
.note {
  font-family: var(--hand); font-size: 32px; line-height: 1; color: var(--caneta);
  transform: rotate(-3deg); transform-origin: left center;
}
.note--light { color: var(--caneta-clara); }
mark { background: var(--marca-texto); color: inherit; padding: 0 .12em; }

.circled { position: relative; white-space: nowrap; }
.hand-circle {
  position: absolute; left: -5%; top: -16%; width: 112%; max-width: none; height: 132%;
  color: var(--caneta); overflow: visible; pointer-events: none;
}
.hand-circle path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1s .5s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Cantos de enquadramento */
.frame { position: relative; padding: var(--frame-gap, 14px); --corner: 40px; --corner-stroke: 7px; }
.frame--large { --corner: 64px; --corner-stroke: 10px; --frame-gap: 20px; }
.frame-corner { position: absolute; width: var(--corner); height: var(--corner); border: 0 solid var(--tinta); pointer-events: none; }
.frame-corner--bl { left: 0; bottom: 0; border-left-width: var(--corner-stroke); border-bottom-width: var(--corner-stroke); }
.frame-corner--tr { right: 0; top: 0; border-right-width: var(--corner-stroke); border-top-width: var(--corner-stroke); }
.shot { display: block; width: 100%; height: auto; object-fit: cover; object-position: top center; background: var(--papel-escuro); }
.placeholder {
  display: grid; place-items: center; height: 100%; min-height: 220px; padding: 24px;
  background: var(--papel-escuro); color: var(--grafite); font-size: 15px; text-align: center;
}

/* Cabeçalho */
.header { display: flex; align-items: center; gap: 32px; height: 112px; }
.header-logo svg { width: 190px; height: auto; }
.nav { display: flex; gap: 28px; margin-left: auto; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; padding-block: 10px; }
.nav a:hover, .nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.menu-toggle { display: none; margin-left: auto; min-height: 44px; padding: 8px 16px; background: none; border: 2px solid var(--tinta); border-radius: 4px; font-weight: 700; }
.mobile-nav { display: none; }
.menu-icon { position: relative; width: 18px; height: 10px; margin-left: 10px; }
.menu-icon span { position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px; transition: transform .35s cubic-bezier(.2, .8, .2, 1), top .35s cubic-bezier(.2, .8, .2, 1); }
.menu-icon span:first-child { top: 0; }
.menu-icon span:last-child { top: 8px; }
.menu-toggle[aria-expanded='true'] .menu-icon span:first-child { top: 4px; transform: rotate(45deg); }
.menu-toggle[aria-expanded='true'] .menu-icon span:last-child { top: 4px; transform: rotate(-45deg); }

/* Abertura */
.hero { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(64px, 9vw, 136px) clamp(80px, 10vw, 152px); }
.hero-text { position: relative; display: grid; justify-items: center; gap: 28px; max-width: 1040px; text-align: center; }
.hero .lead { max-width: 36em; }
.hero .actions { justify-content: center; }

/* Fundo da abertura: papel quadriculado que some atrás do texto e cantos da marca */
.hero-backdrop { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgb(23 20 15 / 7%) 1px, transparent 1px), linear-gradient(90deg, rgb(23 20 15 / 7%) 1px, transparent 1px);
  background-size: 40px 40px; background-position: center -1px;
  -webkit-mask-image: radial-gradient(ellipse 58% 62% at 50% 48%, transparent 30%, #000 85%);
  mask-image: radial-gradient(ellipse 58% 62% at 50% 48%, transparent 30%, #000 85%);
}
.hero-mark { position: absolute; width: clamp(40px, 5vw, 72px); height: clamp(40px, 5vw, 72px); border: 0 solid var(--tinta); }
.hero-mark--bl { left: var(--pad); bottom: 28px; border-left-width: 8px; border-bottom-width: 8px; }
.hero-mark--tr { right: var(--pad); top: 12px; border-right-width: 8px; border-top-width: 8px; }
.lead { font-size: 19px; color: var(--grafite); max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

/* Seções */
.section { padding-block: var(--section); }
.section--tinta { background: var(--tinta); color: var(--papel); }
.section--tinta :focus-visible { outline-color: var(--caneta-clara); }
.section--alt { background: var(--papel-escuro); }
.section--alt .placeholder { background: var(--papel); }
.section-head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px 80px; align-items: end; margin-bottom: 56px; }
.section-head p { color: var(--grafite); max-width: 26em; }
.section-head--stack { grid-template-columns: 1fr; gap: 16px; }

/* Projetos */
.work { border-top: 1px solid var(--linha); }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 40px; }
.project:first-child { grid-column: 1 / -1; }
.project:first-child :is(.placeholder, .shot) { aspect-ratio: 16 / 8; }
.project :is(.placeholder, .shot) { aspect-ratio: 16 / 10; min-height: 0; }
.project-caption { display: grid; gap: 2px; padding-top: 16px; }
.project-caption p { color: var(--grafite); font-size: 15px; }
.project[hidden] { display: none; }
.project { position: relative; }
.project h3 a { text-decoration: none; }
.project h3 a::after { content: ''; position: absolute; inset: 0; }
.project:hover h3 a, .project h3 a:focus-visible { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.project .frame-corner { transition: transform .25s ease-out; }
.project:hover .frame-corner--bl { transform: translate(-6px, 6px); }
.project:hover .frame-corner--tr { transform: translate(6px, -6px); }
.project-grid--pair .project:first-child { grid-column: auto; }
.project-grid--pair .project:first-child :is(.placeholder, .shot) { aspect-ratio: 16 / 10; }
.work-end { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 48px; }

/* Serviços */
  display: grid; grid-template-columns: minmax(0, 1fr) 28px; gap: 6px 24px;
  padding: 28px 0; cursor: pointer; list-style: none;
}
.service-name { font-size: 15px; font-weight: 700; color: var(--caneta-clara); }

/* Conversa */
.thread { display: grid; gap: 28px; max-width: 820px; margin: 0 0 32px; }
.exchange { display: grid; gap: 10px; }
.bubble { max-width: min(520px, 88%); padding: 16px 20px; font-size: 17px; line-height: 1.5; margin: 0; }
.bubble--them { justify-self: end; background: var(--papel-escuro); border-radius: 20px 20px 4px 20px; font-weight: 700; }
.bubble--us { justify-self: start; background: var(--tinta); color: var(--papel); border-radius: 20px 20px 20px 4px; }
.typing { display: inline-flex; gap: 6px; padding: 18px 20px; }
.typing span { width: 9px; height: 9px; border-radius: 50%; background: var(--papel); animation: typing 1.2s infinite ease-in-out; }
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; background: var(--caneta-clara); }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

/* Processo */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; padding: 0; margin: 56px 0 0; }
.steps li { counter-increment: step; display: grid; gap: 12px; align-content: start; }
.steps li::before { content: counter(step); font-size: 56px; font-weight: 800; line-height: 1; letter-spacing: -0.04em; }
.steps p { color: var(--grafite); font-size: 16px; }

/* Sobre */
.about-inner { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px 96px; align-items: center; }
.frame--portrait .placeholder { aspect-ratio: 4 / 5; min-height: 0; }
.about-text { display: grid; gap: 20px; }
.about-text p { color: var(--grafite); max-width: 32em; }
.about-text h2 { margin-bottom: 8px; }
.about-sign { font-weight: 700; color: var(--tinta) !important; }

/* Contato */
.contact-inner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px 96px; align-items: end; }
.contact h2 { font-size: clamp(38px, 5vw, 72px); }
.contact-side { display: grid; gap: 20px; justify-items: start; }
.contact-side > p:first-child { color: var(--grafite-claro); }
.contact-number { color: var(--grafite-claro); font-size: 15px; }

/* Rodapé */
.footer { padding-block: 56px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 48px; }
.footer-logo svg { width: 180px; height: auto; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-left: auto; font-size: 15px; }
.footer-nav a { text-decoration: none; padding-block: 10px; }
.footer-nav a:hover { text-decoration: underline; }
.footer-note { width: 100%; color: var(--grafite); font-size: 14px; }

/* Páginas internas */
.page-intro { display: grid; gap: 24px; justify-items: start; padding-block: clamp(32px, 5vw, 72px) 56px; }
.page-intro h1 { max-width: 14em; }
.back-link { font-size: 15px; color: var(--grafite); text-decoration: none; padding-block: 10px; }
.back-link:hover { color: var(--tinta); text-decoration: underline; }
.kicker { font-size: 15px; font-weight: 700; color: var(--grafite); }
.muted { color: var(--grafite); }
.h-small { font-size: 22px; letter-spacing: -0.01em; margin-bottom: 12px; }
.columns { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 32px 96px; align-items: start; }
.columns .button { margin-top: 24px; }
.columns h2 + .check-list { margin-top: 32px; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.check-list li { position: relative; padding: 18px 0 18px 40px; border-bottom: 1px solid var(--linha); font-size: 18px; }
.check-list li:first-child { border-top: 1px solid var(--linha); }
.check-list li::before { content: ''; position: absolute; left: 4px; top: 25px; width: 14px; height: 14px; border: 0 solid var(--tinta); border-left-width: 4px; border-bottom-width: 4px; }
.situations-note { margin-top: 24px; }
.service-page-scope { margin-top: 24px; font-size: 15px; max-width: 34em; }

/* Projeto */
.case-cover { position: relative; }
:is(.placeholder--wide, .shot--wide) { aspect-ratio: 16 / 8; min-height: 0; }
.case-note { position: absolute; right: calc(var(--pad) + 8px); bottom: -44px; }
.case-story { padding-bottom: 0; }
.case-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.case-facts p { color: var(--grafite); }

/* Portfólio */
.portfolio-work { padding-bottom: var(--section); }
.prototype-note { color: var(--grafite); font-size: 15px; margin-bottom: 24px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.filters button { min-height: 44px; padding: 8px 18px; background: none; border: 2px solid var(--tinta); border-radius: 4px; font-size: 15px; font-weight: 700; }
.filters button[aria-pressed='true'] { background: var(--tinta); color: var(--papel); }
.filter-status { color: var(--grafite); font-size: 15px; margin: 20px 0 32px; }
.portfolio-grid.filtered .project:first-child { grid-column: auto; }
.portfolio-grid.filtered .project :is(.placeholder, .shot) { aspect-ratio: 16 / 10; }

/* Revisão da identidade */
.review { padding-block: 48px 96px; }
.review > h1 { font-size: 40px; margin-bottom: 12px; }
.review > h2 { font-size: 26px; margin: 56px 0 24px; }
.review-row { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.review-card { background: #fff; padding: 32px; width: 420px; }
.review-card--tinta { background: var(--tinta); }
.review-card--small { width: 160px; }
.review-card--bare { background: none; padding: 0; }
.review iframe { border: 1px solid var(--linha); background: var(--papel); }
.desktop-frame { overflow: auto; max-width: 100%; }
.post { margin: 0; width: 360px; aspect-ratio: 4 / 5; padding: 28px; background: var(--papel); border: 1px solid var(--linha); display: flex; flex-direction: column; gap: 14px; }
.post .frame { flex: 1; --corner: 32px; --corner-stroke: 6px; }
.frame--post { display: flex; flex-direction: column; gap: 14px; padding: 28px 24px; }
.post-title { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.post-text { font-size: 15px; color: var(--grafite); }
.post-kicker { font-size: 14px; font-weight: 700; color: var(--grafite); }
.post .bubble { font-size: 16px; }
.post--conversa .bubble--them { font-size: 22px; letter-spacing: -0.02em; line-height: 1.2; }
.post .note { font-size: 26px; }
.post-sign { margin-top: auto; font-size: 13px; font-weight: 700; }

/* Responsivo */
@media (max-width: 1000px) {
  .about-inner, .contact-inner, .columns, .chat-inner { grid-template-columns: 1fr; }
  .service-cards { grid-template-columns: 1fr; }
  .case-facts { grid-template-columns: 1fr; gap: 32px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .frame--portrait { max-width: 420px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .header { height: 88px; gap: 16px; position: relative; }
  .header-logo svg { width: 150px; }
  .nav, .header-cta { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; }
  .mobile-nav {
    position: absolute; z-index: 10; top: 84px; left: var(--pad); right: var(--pad);
    display: grid; gap: 4px; padding: 20px; background: var(--papel); border: 2px solid var(--tinta);
    box-shadow: 8px 8px 0 var(--tinta);
    visibility: hidden; opacity: 0; transform: translateY(-10px); transform-origin: top right;
    clip-path: inset(0 0 100% 0 round 2px);
    transition: opacity .25s ease, transform .4s cubic-bezier(.2, .8, .2, 1), clip-path .45s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .45s;
  }
  .mobile-nav.is-open {
    visibility: visible; opacity: 1; transform: none; clip-path: inset(-12px -12px -12px -12px round 2px);
    transition: opacity .2s ease, transform .4s cubic-bezier(.2, .8, .2, 1), clip-path .45s cubic-bezier(.2, .8, .2, 1), visibility 0s;
  }
  .mobile-nav > * { opacity: 0; transform: translateY(8px); transition: opacity .2s ease, transform .3s ease; }
  .mobile-nav.is-open > * { opacity: 1; transform: none; transition: opacity .3s ease calc(.08s + var(--i, 0) * .05s), transform .4s cubic-bezier(.2, .8, .2, 1) calc(.08s + var(--i, 0) * .05s); }
  .mobile-nav a:not(.button) { padding: 12px 0; font-size: 18px; font-weight: 700; text-decoration: none; }
  .mobile-nav .button { margin-top: 12px; }
  .hero { padding-block: 56px 72px; }
  .hero-grid { background-size: 28px 28px; -webkit-mask-image: radial-gradient(ellipse 80% 55% at 50% 45%, transparent 25%, #000 90%); mask-image: radial-gradient(ellipse 80% 55% at 50% 45%, transparent 25%, #000 90%); }
  .hero-mark { width: 32px; height: 32px; border-width: 0; }
  .hero-mark--bl { bottom: 20px; border-left-width: 6px; border-bottom-width: 6px; }
  .hero-mark--tr { top: 8px; border-right-width: 6px; border-top-width: 6px; }
  .hero .lead { font-size: 17px; }
  .hero h1 { font-size: clamp(36px, 11vw, 48px); }
  .hand-circle { left: -3%; width: 106%; }
  .lead { font-size: 17px; }
  .section-head { grid-template-columns: 1fr; margin-bottom: 40px; }
  .project-grid { grid-template-columns: 1fr; gap: 48px; }
  .project:first-child :is(.placeholder, .shot), :is(.placeholder--wide, .shot--wide) { aspect-ratio: 4 / 3; }
  .case-note { position: static; margin-top: 20px; }
  .check-list li { font-size: 16px; }
  .work-end { flex-direction: column; align-items: flex-start; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .steps li::before { font-size: 44px; }
  .bubble { max-width: 92%; font-size: 16px; }
  .footer-nav { margin-left: 0; }
  .review-card { width: 100%; }
  .review iframe { max-width: 100%; }
  .desktop-frame iframe { max-width: none; }
  .post { width: 100%; max-width: 360px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hand-circle path { stroke-dashoffset: 0; }
}

/* Publicação: blocos sem conteúdo real saem do layout */
.about-inner--text { grid-template-columns: minmax(0, 760px); }

/* Projeto nos dois formatos: notebook + iPhone desenhados em CSS.
   Medidas em cqw (largura do quadro); cada aparelho escala pelo próprio font-size. */
.devices {
  --lw: 76; --lx: 7; --ly: 6; --pw: 19; --px: 5; --pb: 4;
  position: relative; display: block; overflow: hidden;
  container-type: inline-size; aspect-ratio: 16 / 10;
  background: var(--papel-escuro);
}
.devices--solo { --lw: 84; --lx: 8; --ly: 3; }
.section--alt .devices { background: var(--papel); }
.laptop {
  position: absolute; left: calc(var(--lx) * 1cqw); top: calc(var(--ly) * 1cqw);
  width: calc(var(--lw) * 1cqw); font-size: calc(var(--lw) * .01cqw);
  transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.laptop-lid {
  position: relative; padding: 2.2em 2.2em 2.6em; border-radius: 2.4em 2.4em .6em .6em;
  background: #111; box-shadow: inset 0 0 0 .35em #2f2f30, inset 0 0 0 .55em #0a0a0a;
}
.laptop-cam { position: absolute; top: .8em; left: 50%; width: .7em; height: .7em; transform: translateX(-50%); border-radius: 50%; background: #2a2d33; }
.laptop-screen { display: block; overflow: hidden; aspect-ratio: 16 / 10; background: #000; }
.laptop-base {
  position: relative; height: 3em; margin: 0 -7em;
  border-radius: 0 0 2.6em 2.6em / 0 0 3em 3em;
  background: linear-gradient(180deg, #e0e0e3 0%, #c6c6ca 45%, #9b9ba0 100%);
  box-shadow: 0 3.2em 4em -2.2em rgb(23 20 15 / 45%);
}
.laptop-base::before { content: ''; position: absolute; top: 0; left: 50%; width: 15%; height: 42%; transform: translateX(-50%); border-radius: 0 0 1.2em 1.2em; background: #ababaf; }
.phone {
  position: absolute; right: calc(var(--px) * 1cqw); bottom: calc(var(--pb) * 1cqw);
  width: calc(var(--pw) * 1cqw); font-size: calc(var(--pw) * .05cqw);
  transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.phone-body {
  position: relative; display: block; padding: .7em; border-radius: 3.1em;
  background: linear-gradient(150deg, #57534c 0%, #1e1c19 30%, #121110 62%, #47433d 100%);
  box-shadow: inset 0 0 0 .1em rgb(255 255 255 / 22%), inset 0 0 0 .32em #0a0908, -1.4em 2.6em 3.2em -1.2em rgb(23 20 15 / 50%);
}
.phone-screen { position: relative; display: block; overflow: hidden; aspect-ratio: 390 / 844; border-radius: 2.45em; background: #000; }
.phone-island { position: absolute; top: 1.8%; left: 50%; width: 31%; height: 3.4%; transform: translateX(-50%); border-radius: 999px; background: #000; }
.phone-key { position: absolute; width: .2em; background: linear-gradient(90deg, #2b2925, #5d5952); }
.phone-key--action { left: -.2em; top: 16%; height: 4.5%; border-radius: .2em 0 0 .2em; }
.phone-key--up { left: -.2em; top: 24%; height: 8.5%; border-radius: .2em 0 0 .2em; }
.phone-key--down { left: -.2em; top: 35%; height: 8.5%; border-radius: .2em 0 0 .2em; }
.phone-key--power { right: -.2em; top: 27%; height: 13%; border-radius: 0 .2em .2em 0; background: linear-gradient(270deg, #2b2925, #5d5952); }
.phone-glare {
  position: absolute; inset: .7em; border-radius: 2.45em; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(115deg, rgb(255 255 255 / 0%) 35%, rgb(255 255 255 / 12%) 48%, rgb(255 255 255 / 0%) 60%);
}
.devices .laptop-screen .shot, .devices .phone-screen .shot { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: top center; }
.project:hover .laptop { transform: translateY(-1cqw); }
.project:hover .phone { transform: translateY(-2.2cqw); }

/* Variante larga: capa e telas do case e primeiro destaque das grades */
.frame--wide .devices,
.project-grid:not(.project-grid--pair):not(.filtered) > .project:first-child .devices { aspect-ratio: 16 / 8; --lw: 60; --lx: 14; --ly: 4; --pw: 15; --px: 16; --pb: 3; }
.frame--wide .devices--solo,
.project-grid:not(.project-grid--pair):not(.filtered) > .project:first-child .devices--solo { --lw: 66; --lx: 17; --ly: 3; }
.case-screens { margin-top: 48px; }

@media (max-width: 760px) {
  .frame--wide .devices,
  .project-grid:not(.project-grid--pair):not(.filtered) > .project:first-child .devices { aspect-ratio: 16 / 10; --lw: 76; --lx: 7; --ly: 6; --pw: 19; --px: 5; --pb: 4; }
  .frame--wide .devices--solo,
  .project-grid:not(.project-grid--pair):not(.filtered) > .project:first-child .devices--solo { --lw: 84; --lx: 8; --ly: 3; }
}

/* Serviços em cards (página inicial) */
.services-intro p { color: var(--grafite-claro); }
.service-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.service-card {
  display: flex; flex-direction: column; gap: 14px; padding: 32px 28px 28px;
  border: 1px solid var(--linha-clara); border-radius: 4px; transition: border-color .25s, background-color .25s;
}
.service-card:hover { border-color: rgb(243 239 231 / 45%); background: rgb(243 239 231 / 4%); }
.service-card h3 { font-size: clamp(22px, 2vw, 26px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.service-card > p:not(.service-name) { color: var(--grafite-claro); font-size: 16px; }
.service-name { font-size: 15px; font-weight: 700; color: var(--caneta-clara); }
.service-more { margin-top: auto; width: fit-content; }

/* Perguntas em duas colunas */
.chat-inner { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 32px 80px; align-items: start; }
.chat-intro { display: grid; gap: 16px; position: sticky; top: 32px; }
.chat-intro p { color: var(--grafite); }
.chat-body .thread { max-width: none; }

/* Cantos da marca só nos destaques: primeiro projeto das grades, capa e telas do case */
.project .frame-corner { display: none; }
.project-grid:not(.project-grid--pair):not(.filtered) > .project:first-child .frame-corner { display: block; }
@media (max-width: 1000px) {
  .service-cards, .chat-inner { grid-template-columns: minmax(0, 1fr); }
  .chat-intro { position: static; }
}

/* Faixa de projetos da home: todos iguais, lado a lado, andando em loop (pausa ao passar o mouse) */
.marquee {
  overflow: hidden; padding-block: 8px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 70s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-set { display: flex; gap: 40px; padding-right: 40px; }
.marquee .project { flex: none; width: clamp(300px, 36vw, 520px); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (max-width: 720px) {
  .marquee-set { gap: 20px; padding-right: 20px; }
  .marquee .project { width: 82vw; }
  .marquee-track { animation-duration: 50s; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; padding-inline: var(--pad); }
  .marquee-track { animation: none; }
  .marquee-set[aria-hidden] { display: none; }
}

/* Acentos na letra à mão: letra base + acento da própria fonte (gerado por handAccents em assets/brand/brand.mjs; manter igual a handAccentsCss) */
.acento { position: relative; }
.acento::after { content: attr(data-a); position: absolute; left: 50%; top: -.28em; line-height: 1; transform: translateX(-50%); }
.acento--alto::after { top: -.55em; }
.acento--agudo::after { transform: translateX(-30%) scaleX(-1) rotate(-10deg); }
.acento--til::after { top: -.34em; }
.acento--cedilha::after { top: -.1em; transform: translateX(-85%); }
