/* ==========================================================================
   EVOLUTION IA — Design System
   Paleta extraída da marca: verde profundo → verde → lima, sobre preto esverdeado.
   ========================================================================== */

/* TOKENS ------------------------------------------------------------------ */
:root {
  --bg: #060b0a;
  --bg-2: #0a1210;
  --surface: #0e1815;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .13);
  --text: #eef3ef;
  --muted: #94a39c;
  --dim: #5f6d67;

  --brand: #a6d63a;      /* lima */
  --brand-2: #2e9e4f;    /* verde */
  --brand-3: #17602f;    /* verde profundo */
  --grad: linear-gradient(120deg, var(--brand-2), var(--brand));

  --accent: var(--brand);
  --accent-2: var(--brand-2);

  --f-display: "Geist", "Inter", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Geist Mono", ui-monospace, Consolas, monospace;

  --pad: clamp(20px, 5vw, 64px);
  --max: 1280px;
  --radius: 18px;
  --radius-lg: 26px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* BASE -------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--f-body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
[hidden] { display: none !important; }
::selection { background: var(--brand); color: var(--bg); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 200; padding: 10px 16px; border-radius: 999px;
  background: var(--text); color: var(--bg); font-weight: 600;
  transform: translateY(-200%); transition: transform .3s var(--ease);
}
.skip-link:focus { transform: none; }

/* TIPOGRAFIA -------------------------------------------------------------- */
.display-xxl, .display-xl, .display-lg, .display-md {
  font-family: var(--f-display); font-weight: 500; letter-spacing: -.045em; line-height: .98; text-wrap: balance;
}
.display-xxl { font-size: clamp(56px, 11vw, 168px); letter-spacing: -.055em; line-height: .9; }
.display-xl  { font-size: clamp(44px, 6.6vw, 104px); }
.display-lg  { font-size: clamp(36px, 4.6vw, 72px); }
.display-md  { font-size: clamp(28px, 3.2vw, 48px); line-height: 1.05; letter-spacing: -.035em; }
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.lead { font-size: clamp(17px, 1.3vw, 19px); line-height: 1.6; color: var(--muted); max-width: 44ch; }
.accent-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .04em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(166, 214, 58, .15); }

/* LAYOUT ------------------------------------------------------------------ */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.section { position: relative; padding-block: clamp(80px, 10vw, 144px); }
.section--tight { padding-block: clamp(48px, 6vw, 88px); }
.section--flush { padding-top: 0; }
.section--line { border-top: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: clamp(36px, 5vw, 64px); }

.glass {
  background: rgba(10, 18, 16, .66);
  -webkit-backdrop-filter: blur(20px) saturate(140%); backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, .09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 20px 50px -24px rgba(0, 0, 0, .7);
}

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 500; white-space: nowrap;
  border-bottom: 1px solid var(--line-2); padding-bottom: 4px; transition: gap .3s var(--ease), border-color .3s;
}
.link-arrow:hover { gap: 10px; border-color: var(--brand); }
.link-inline { display: inline-flex; align-items: center; gap: 4px; transition: color .3s; }
.link-inline:hover { color: var(--accent); }

/* BOTÕES ------------------------------------------------------------------ */
.btn {
  --h: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 24px; border-radius: 999px; font-weight: 500; font-size: 15px; white-space: nowrap;
  transition: transform .4s var(--ease), background-color .3s, box-shadow .4s var(--ease), border-color .3s;
}
.btn .icon { transition: transform .4s var(--ease); }
.btn:hover .icon { transform: translate(2px, -2px); }
.btn:active { transform: scale(.97); }
.btn--sm { --h: 40px; padding: 0 18px; font-size: 14px; }
.btn--brand { background: var(--grad); color: #071008; font-weight: 600; }
.btn--brand:hover { box-shadow: 0 12px 36px -12px rgba(166, 214, 58, .6); }
.btn--light { background: var(--text); color: var(--bg); }
.btn--light:hover { box-shadow: 0 12px 30px -12px rgba(255, 255, 255, .4); }
.btn--ghost { border: 1px solid var(--line-2); }
.btn--ghost:hover { border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .04); }
.btn__spinner { display: none; }
.btn.is-loading { pointer-events: none; opacity: .85; }
.btn.is-loading .btn__icon { display: none; }
.btn.is-loading .btn__spinner { display: inline-flex; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* CURSOR CONTEXTUAL ------------------------------------------------------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 120; pointer-events: none; display: none; }
.cursor__label {
  position: absolute; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%;
  background: var(--brand); color: var(--bg); font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
  transform: translate(-50%, -50%) scale(0); transition: transform .45s var(--ease);
}
.cursor.is-active .cursor__label { transform: translate(-50%, -50%) scale(1); }
@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; }
  [data-cursor].has-cursor, [data-cursor].has-cursor * { cursor: none; }
}

/* NAVEGAÇÃO FLUTUANTE ----------------------------------------------------- */
.nav {
  position: fixed; top: 16px; left: 50%; z-index: 100; width: min(1080px, calc(100% - 24px));
  transform: translateX(-50%); transition: transform .6s var(--ease);
}
.nav.is-hidden { transform: translate(-50%, calc(-100% - 24px)); }
.nav__pill { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; padding: 0 8px 0 16px; border-radius: 999px; }
.nav__logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { width: auto; height: 30px; transition: transform .6s var(--ease); }
.nav__logo:hover .logo-mark { transform: rotate(-8deg) scale(1.05); }
.nav__wordmark { font-family: var(--f-display); font-weight: 600; font-size: 17px; letter-spacing: -.03em; }
.nav__wordmark em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav__links { display: flex; gap: 2px; }
.nav__links a { padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--muted); transition: color .3s, background-color .3s; }
.nav__links a:hover, .nav__links a[aria-current] { color: var(--text); background: rgba(255, 255, 255, .06); }
.nav__actions { display: flex; align-items: center; gap: 6px; }
.nav__toggle { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .06); transition: background-color .3s; }
.nav__toggle:hover { background: rgba(255, 255, 255, .12); }
.nav__toggle-icon { position: relative; width: 18px; height: 18px; }
.nav__toggle-icon .icon { position: absolute; inset: 0; transition: transform .45s var(--ease), opacity .3s; }
.nav__toggle-icon .icon:last-child { opacity: 0; transform: rotate(-90deg) scale(.6); }
.nav__toggle[aria-expanded="true"] .icon:first-child { opacity: 0; transform: rotate(90deg) scale(.6); }
.nav__toggle[aria-expanded="true"] .icon:last-child { opacity: 1; transform: none; }

.menu { position: absolute; top: calc(100% + 10px); right: 0; width: min(420px, 100%); }
.menu__inner {
  padding: 12px; border-radius: var(--radius-lg); background: rgba(8, 14, 12, .94);
  opacity: 0; transform: translateY(-10px) scale(.98); transform-origin: top right;
  transition: opacity .3s var(--ease), transform .5s var(--ease);
}
.menu.is-open .menu__inner { opacity: 1; transform: none; }
.menu__projects a { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 14px; transition: background-color .3s; }
.menu__projects a:hover { background: rgba(255, 255, 255, .05); }
.menu__projects strong { display: block; font-weight: 500; line-height: 1.3; }
.menu__projects small { color: var(--muted); font-size: 13px; }
.menu__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; flex: none; background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent); }
.menu__go { margin-left: auto; color: var(--dim); transition: color .3s, transform .4s var(--ease); }
.menu__projects a:hover .menu__go { color: var(--text); transform: translate(2px, -2px); }
.menu__foot { display: flex; gap: 4px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.menu__foot a { flex: 1; text-align: center; padding: 10px; border-radius: 12px; font-size: 14px; color: var(--muted); transition: color .3s, background-color .3s; }
.menu__foot a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }

/* RAIL — ÍCONES LATERAIS DOS PROJETOS ------------------------------------- */
.rail { position: fixed; z-index: 95; left: 20px; top: 50%; transform: translateY(-50%); transition: transform .6s var(--ease); }
.rail__list { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px; border-radius: 999px; }
.rail__sep { width: 18px; height: 1px; background: var(--line-2); margin: 4px 0; }
.rail__item { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--muted); transition: color .3s, background-color .3s; }
.rail__icon { display: grid; place-items: center; transition: transform .4s var(--ease); }
.rail__item:hover, .rail__item:focus-visible { color: var(--accent); background: color-mix(in srgb, var(--accent) 15%, transparent); }
.rail__item:hover .rail__icon { transform: scale(1.12); }
.rail__item.is-active { color: var(--bg); background: var(--accent); }
.rail__item.is-active::before { content: ""; position: absolute; left: -12px; top: 50%; width: 3px; height: 18px; border-radius: 3px; background: var(--accent); transform: translateY(-50%); }
.rail__item.is-near:not(.is-active) { color: var(--accent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent); }
.rail__label {
  position: absolute; left: calc(100% + 16px); top: 50%; display: grid; min-width: max-content;
  padding: 9px 14px; border-radius: 12px; background: rgba(8, 14, 12, .94); border: 1px solid var(--line-2);
  pointer-events: none; opacity: 0; transform: translate(-8px, -50%); transition: opacity .25s, transform .4s var(--ease);
}
.rail__label small { font-family: var(--f-mono); font-size: 10px; color: var(--accent); }
.rail__label strong { font-family: var(--f-display); font-weight: 500; font-size: 15px; color: var(--text); line-height: 1.25; }
.rail__label em { font-style: normal; font-size: 12px; color: var(--muted); }
.rail__item:hover .rail__label, .rail__item:focus-visible .rail__label { opacity: 1; transform: translate(0, -50%); }

/* HERO -------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; min-height: min(100svh, 960px); display: flex; align-items: center; padding: 140px 0 80px; }
.hero__glow {
  position: absolute; pointer-events: none; z-index: 0;
  width: 70vw; height: 70vw; max-width: 1000px; max-height: 1000px; top: -30%; right: -20%;
  background: radial-gradient(closest-side, rgba(46, 158, 79, .28), rgba(166, 214, 58, .06) 55%, transparent);
}
.hero__glow--accent { right: auto; left: 50%; margin-left: -35vw; top: -45%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 22%, transparent), transparent); }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; }
.hero__content h1 { margin-bottom: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__emblem { position: relative; display: grid; place-items: center; aspect-ratio: 1; perspective: 1000px; }
.hero__emblem img {
  position: relative; z-index: 1; width: 62%;
  filter: drop-shadow(0 30px 60px rgba(46, 158, 79, .35));
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .8s var(--ease);
  animation: float 7s ease-in-out infinite;
}
.hero__ring { position: absolute; inset: 6%; border-radius: 50%; border: 1px solid rgba(166, 214, 58, .14); animation: spin 24s linear infinite; }
.hero__ring::before, .hero__ring::after { content: ""; position: absolute; border-radius: 50%; }
.hero__ring::before { inset: 12%; border: 1px dashed rgba(255, 255, 255, .07); }
.hero__ring::after { top: -4px; left: 50%; width: 8px; height: 8px; margin-left: -4px; background: var(--brand); box-shadow: 0 0 16px var(--brand); }
@keyframes float { 50% { translate: 0 -12px; } }

/* PROJECT CARDS ----------------------------------------------------------- */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(40px, 5vw, 64px) clamp(20px, 2.4vw, 32px); }
.pcard__link { display: block; }
.pcard__stage {
  position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--radius-lg);
  display: grid; place-items: center; padding: 9% 8% 0;
  background: radial-gradient(80% 70% at 50% 110%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%), var(--surface);
  border: 1px solid var(--line); transition: border-color .5s;
}
.pcard__media { width: 100%; align-self: end; transform: translateY(6%); transition: transform .9s var(--ease); }
.pcard__go {
  position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--text); color: var(--bg); opacity: 0; transform: scale(.6) rotate(-45deg); transition: opacity .4s, transform .6s var(--ease);
}
.pcard__meta { display: flex; align-items: center; gap: 14px; padding-top: 20px; }
.pcard__icon { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.pcard__text { flex: 1; min-width: 0; }
.pcard__title { font-family: var(--f-display); font-weight: 500; font-size: clamp(22px, 2vw, 28px); letter-spacing: -.03em; line-height: 1.15; }
.pcard__desc { color: var(--muted); font-size: 15px; }
.pcard__tag { padding: 5px 12px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.pcard__link:hover .pcard__stage { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.pcard__link:hover .pcard__media { transform: translateY(2%) scale(1.03); }
.pcard__link:hover .pcard__go, .pcard__link:focus-visible .pcard__go { opacity: 1; transform: none; }

/* MOLDURAS ---------------------------------------------------------------- */
.frame-browser {
  border-radius: 12px 12px 0 0; overflow: hidden; background: #0b1110;
  border: 1px solid rgba(255, 255, 255, .1); border-bottom: 0;
  box-shadow: 0 -10px 60px -20px rgba(0, 0, 0, .7);
}
.frame-browser__bar { position: relative; display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #111a18; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.frame-browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.frame-browser__bar span {
  position: absolute; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 14px; border-radius: 6px; background: rgba(255, 255, 255, .05); font-family: var(--f-mono); font-size: 11px; color: rgba(255, 255, 255, .45); white-space: nowrap;
}
.frame-browser__img { width: 100%; }
.frame-phone { width: 100%; aspect-ratio: 500 / 1084; padding: 3.2%; border-radius: 13% / 6%; background: linear-gradient(145deg, #26302d, #0d1311); box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 40px 80px -30px rgba(0, 0, 0, .8); }
.frame-phone__screen { height: 100%; border-radius: 10.5% / 4.9%; overflow: hidden; background: #000; }
.frame-phone__img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* SERVIÇOS ---------------------------------------------------------------- */
.services { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.service { display: flex; gap: 20px; padding: 28px 0; border-top: 1px solid var(--line); }
.service:last-child { border-bottom: 1px solid var(--line); }
.service__icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; background: rgba(166, 214, 58, .1); color: var(--brand); transition: transform .5s var(--ease); }
.service:hover .service__icon { transform: rotate(-8deg) scale(1.06); }
.service h3 { font-family: var(--f-display); font-weight: 500; font-size: 22px; letter-spacing: -.025em; margin-bottom: 4px; }
.service p { color: var(--muted); }

/* CASE STUDY -------------------------------------------------------------- */
.case-hero { position: relative; overflow: hidden; padding-top: clamp(120px, 16vh, 168px); }
.case-hero > .container { position: relative; z-index: 1; }
.breadcrumb { display: flex; align-items: center; gap: 8px; color: var(--muted); margin-bottom: 40px; }
.breadcrumb a:hover, .breadcrumb [aria-current] { color: var(--text); }
.breadcrumb__count { margin-left: auto; color: var(--dim); }
.case-hero__head { display: flex; align-items: center; gap: clamp(16px, 2vw, 28px); }
.case-hero__icon {
  display: grid; place-items: center; flex: none; width: clamp(52px, 5.4vw, 80px); height: clamp(52px, 5.4vw, 80px); border-radius: 22%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 18px 44px -16px var(--accent);
}
.case-hero__row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 40px; align-items: start; }
.case-hero__tagline { font-family: var(--f-display); font-size: clamp(24px, 2.4vw, 36px); line-height: 1.2; letter-spacing: -.03em; max-width: 20ch; }
.case-hero__aside { display: grid; gap: 28px; justify-items: start; }
.case-hero__stage { margin-top: clamp(48px, 6vw, 88px); perspective: 1600px; }
.case-hero__frame {
  padding: clamp(28px, 6vw, 88px) clamp(16px, 7vw, 112px) 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: radial-gradient(80% 90% at 50% 100%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%), var(--surface);
  border: 1px solid var(--line); border-bottom: 0;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .8s var(--ease);
}

.case-info { border-bottom: 1px solid var(--line); }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.info-grid > div { padding: 28px 20px 28px 0; border-top: 1px solid var(--line); }
.info-grid dt { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }

.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); }
.story__num { display: block; color: var(--accent); margin-bottom: 20px; }
.story__item p { font-family: var(--f-display); font-size: clamp(20px, 1.8vw, 26px); line-height: 1.45; letter-spacing: -.02em; }

.showcase__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.showcase__phone {
  display: grid; place-items: center; padding: clamp(32px, 5vw, 64px) 0; border-radius: var(--radius-lg);
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 70%, #000), color-mix(in srgb, var(--accent-2) 55%, #000));
}
.showcase__phone .frame-phone { width: min(280px, 62%); }
.showcase__text .lead { margin-top: 20px; }
.shot { margin-top: clamp(32px, 4vw, 56px); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.shot__img { width: 100%; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(255, 255, 255, .015); transition: transform .5s var(--ease), border-color .4s; }
.feature:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.feature__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; margin-bottom: 24px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.feature h3 { font-family: var(--f-display); font-weight: 500; font-size: 19px; letter-spacing: -.02em; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 15px; }

.next { border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.next__link { display: block; padding-block: clamp(72px, 10vw, 140px); position: relative; }
.next__link::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 90% at 80% 100%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%); opacity: .5; transition: opacity .6s; }
.next__link .container { position: relative; }
.next__row { display: flex; align-items: center; gap: clamp(16px, 2vw, 28px); }
.next__icon { display: grid; place-items: center; flex: none; width: clamp(48px, 5vw, 72px); height: clamp(48px, 5vw, 72px); border-radius: 22%; background: var(--accent); color: #fff; transition: transform .6s var(--ease); }
.next__title { transition: transform .7s var(--ease); }
.next__arrow { margin-left: auto; color: var(--accent); transition: transform .7s var(--ease); }
.next__link:hover::before { opacity: 1; }
.next__link:hover .next__title { transform: translateX(14px); }
.next__link:hover .next__arrow { transform: rotate(45deg); }
.next__link:hover .next__icon { transform: rotate(-10deg); }

.cta-band { border-top: 1px solid var(--line); padding-block: clamp(56px, 7vw, 96px); }
.cta-band__inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }

/* WORK INDEX -------------------------------------------------------------- */
.work-hero { position: relative; overflow: hidden; padding: clamp(150px, 20vh, 200px) 0 clamp(40px, 5vw, 64px); }
.work-hero .container { position: relative; z-index: 1; }
.index { border-top: 1px solid var(--line); }
.index__row a {
  display: grid; grid-template-columns: 48px 48px 1fr auto 48px; gap: 20px; align-items: center;
  padding: clamp(22px, 3vw, 36px) 0; border-bottom: 1px solid var(--line); transition: opacity .4s;
}
.index__num { color: var(--dim); }
.index__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); transition: background-color .4s, color .4s, transform .5s var(--ease); }
.index__name { font-family: var(--f-display); font-weight: 500; font-size: clamp(30px, 4.4vw, 64px); letter-spacing: -.045em; line-height: 1; transition: transform .6s var(--ease), color .4s; }
.index__cat { color: var(--muted); font-size: 15px; }
.index__go { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); transition: all .5s var(--ease); }
.index:hover .index__row:not(:hover) a { opacity: .35; }
.index__row a:hover .index__name { transform: translateX(12px); color: var(--accent); }
.index__row a:hover .index__icon { background: var(--accent); color: #fff; transform: rotate(-8deg); }
.index__row a:hover .index__go { background: var(--accent); border-color: var(--accent); color: #fff; transform: rotate(45deg); }

.float-preview { position: fixed; top: 0; left: 0; z-index: 80; pointer-events: none; display: none; }
@media (hover: hover) and (pointer: fine) and (min-width: 1024px) { .float-preview { display: block; } }
.float-preview__item {
  position: absolute; top: 0; left: 0; width: 400px; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line-2); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9);
  opacity: 0; transform: translate(-50%, -50%) scale(.85) rotate(-3deg); clip-path: inset(50% 50% 50% 50% round 16px);
  transition: opacity .3s, transform .6s var(--ease), clip-path .6s var(--ease);
}
.float-preview__item.is-on { opacity: 1; transform: translate(-50%, -50%) rotate(-2deg); clip-path: inset(0 round 16px); }

.notfound { position: relative; overflow: hidden; min-height: 100svh; display: grid; align-items: center; padding: 160px 0 80px; }
.notfound .container { position: relative; z-index: 1; display: grid; gap: 24px; justify-items: start; }

/* CONTATO ----------------------------------------------------------------- */
.contact { border-top: 1px solid var(--line); padding-block: clamp(80px, 10vw, 144px); }
.contact__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact__intro .lead { margin-top: 20px; }
.contact__channels { margin-top: 32px; display: grid; gap: 10px; }
.contact__channels a { display: inline-flex; align-items: center; gap: 12px; transition: color .3s; }
.contact__channels a:hover { color: var(--brand); }
.contact__channels .icon { color: var(--brand); }
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field > span { font-size: 13px; color: var(--muted); }
.field small { color: var(--dim); }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 14px; font: inherit; font-size: 16px; color: var(--text);
  background: rgba(255, 255, 255, .03); border: 1px solid var(--line-2); transition: border-color .3s, box-shadow .3s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(166, 214, 58, .14); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #ff7a7a; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.form__status { font-size: 14px; color: var(--muted); }
.form__status.is-ok { color: var(--brand); }
.form__status.is-error { color: #ff8f8f; }

/* FOOTER ------------------------------------------------------------------ */
.footer { border-top: 1px solid var(--line); padding-top: 48px; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-bottom: 40px; }
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__links a, .footer__mail { color: var(--muted); font-size: 14px; transition: color .3s; }
.footer__links a:hover, .footer__mail:hover { color: var(--text); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; padding-block: 20px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; }

/* MOTION ------------------------------------------------------------------ */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal="scale"] { transform: translateY(36px) scale(.97); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.w { display: inline-block; overflow: clip; vertical-align: top; padding: 0 .04em .1em; margin: 0 -.04em -.1em; }
.w__i { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--wi, 0) * 50ms + var(--d, 0s)); }
.is-split.is-in .w__i { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .w__i { opacity: 1 !important; transform: none !important; }
}

/* RESPONSIVO -------------------------------------------------------------- */
@media (min-width: 1024px) {
  .container { padding-left: max(var(--pad), 112px); }
}
@media (max-width: 1023px) {
  .nav__links { display: none; }
  .hero__grid, .services, .contact__grid, .showcase__grid { grid-template-columns: 1fr; }
  .hero__emblem { max-width: 380px; width: 70%; justify-self: center; order: -1; }
  .hero { padding-top: 110px; }

  /* Rail vira dock inferior */
  .rail { left: 50%; top: auto; bottom: calc(12px + env(safe-area-inset-bottom)); transform: translateX(-50%); }
  .rail.is-hidden { transform: translate(-50%, calc(100% + 24px)); }
  .rail__list { flex-direction: row; padding: 6px; }
  .rail__sep { width: 1px; height: 18px; margin: 0 2px; }
  .rail__item.is-active::before { left: 50%; top: auto; bottom: -5px; width: 14px; height: 3px; transform: translateX(-50%); }
  .rail__label { display: none; }
  .footer { padding-bottom: 72px; }
}
@media (max-width: 767px) {
  .nav { top: 10px; }
  .nav__pill { height: 56px; padding-left: 14px; }
  .nav__cta { display: none; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .work-grid, .features, .story, .case-hero__row { grid-template-columns: 1fr; }
  .case-hero__row { gap: 24px; }
  .pcard__go { opacity: 1; transform: none; width: 38px; height: 38px; }
  .pcard__tag { display: none; }
  .breadcrumb__count { display: none; }
  .form__row { grid-template-columns: 1fr; }
  .next__arrow { display: none; }
  .index__row a { grid-template-columns: 44px 1fr 40px; gap: 14px; }
  .index__num, .index__cat { display: none; }
  .index__icon { width: 44px; height: 44px; }
  .index__go { width: 40px; height: 40px; }
  .footer__bottom { flex-direction: column; }
}
@media (hover: none) {
  .index:hover .index__row:not(:hover) a { opacity: 1; }
}

/* Contato no rodapé */
.footer__contact { display: flex; align-items: center; gap: 14px; }
.footer__social { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--muted); transition: color .3s, border-color .3s, background-color .3s; }
.footer__social:hover { color: var(--bg); background: var(--brand); border-color: var(--brand); }

/* Dock mobile com mais projetos: itens compactos e sem o atalho "todos" */
@media (max-width: 767px) {
  .rail__list { gap: 2px; padding: 5px; }
  .rail__item { width: 38px; height: 38px; }
  .rail__item .icon { width: 16px; height: 16px; }
  .rail__list > li:last-child, .rail__list > li:nth-last-child(2) { display: none; }
}
