:root {
  --foot-h: 92px;
  --canvas: #000;
  --surface: #111114;
  --raise: #18181C;
  --ink: #F3F2EE;
  --ink-soft: #8B8A86;
  --ink-mute: #5C5B58;
  --accent: #F3F2EE;
  --accent-ink: #0A0A0B;
  --line: rgba(243, 242, 238, .1);
  --display: "Geist", system-ui, sans-serif;
  --text: "Geist", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 64px);
  --ease: cubic-bezier(.22, .8, .2, 1);
  --p: 0; --mx: 0; --my: 0;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--canvas); }
body {
  margin: 0; background: var(--canvas); color: var(--ink);
  font: 400 17px/1.6 var(--text); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* ---------- nav ---------- */
.nav {
  position: fixed; z-index: 50; top: 0; left: 0; right: 0;
  display: flex; align-items: center; gap: 44px;
  height: 68px; padding: 0 var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background-color .35s, border-color .35s, backdrop-filter .35s;
}
.nav.is-scrolled {
  background: rgba(0, 0, 0, .62); border-bottom-color: var(--line);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.mark { display: inline-flex; align-items: center; min-height: 44px; font: 600 19px/1 var(--display); letter-spacing: -.03em; text-decoration: none; }
.mark span { color: #8E8E8A; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { position: relative; display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-size: 15px; color: var(--ink-soft); transition: color .2s; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav .btn { margin-left: auto; }

/* ---------- buttons ----------
   Primary: a plain white pill; on hover a sheen crosses it and it lifts a little.
   Secondary: text with an underline that draws on hover. No arrows. */
.btn {
  --h: 50px;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--h); padding: 0 28px; border-radius: 999px; border: 0;
  font: 500 15.5px/1 var(--text); letter-spacing: -.005em; text-decoration: none; white-space: nowrap; cursor: pointer;
  background: var(--ink); color: #0A0A0B;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .12), 0 14px 34px -16px rgba(255, 255, 255, .45);
  transition: transform .35s var(--ease), box-shadow .4s var(--ease), background-color .3s;
}
.btn::after {
  content: ""; position: absolute; z-index: -1; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .95) 48%, transparent 66%);
  transform: translateX(-120%); opacity: 0;
}
.btn:hover { background: #fff; transform: translateY(-2px); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .12), 0 20px 46px -14px rgba(255, 255, 255, .6); }
.btn:hover::after { opacity: 1; transform: translateX(120%); transition: transform .9s var(--ease), opacity .2s; }
.btn:active { transform: translateY(0) scale(.97); }
a:focus-visible, button:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 4px; }
.btn-sm { --h: 44px; padding: 0 20px; font-size: 14.5px; }
.btn-big { --h: 64px; padding: 0 40px; font-size: 17px; }

.btn-link {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 10px 2px;
  font: 500 15.5px/1 var(--text); text-decoration: none; color: var(--ink); cursor: pointer;
}
.btn-link .lbl { position: relative; }
.btn-link .lbl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: currentColor; opacity: .45;
  transform-origin: 0 50%; transition: transform .45s var(--ease), opacity .3s;
}
.btn-link:hover .lbl::after { opacity: 1; animation: draw .55s var(--ease); }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- the sky behind every section ---------- */
#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; background: #000; }
main, .foot { position: relative; z-index: 1; }

/* ---------- hero: gravity ---------- */
.hero { position: relative; height: 250vh; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate; }
.copy::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 40px; width: min(1300px, 120vw); height: 120%; translate: -50% 0;
  background: radial-gradient(50% 50% at 50% 45%, rgba(0, 0, 0, .72), rgba(0, 0, 0, .35) 60%, transparent 75%);
  pointer-events: none;
}
.copy {
  position: relative; z-index: 4; text-align: center;
  padding: clamp(112px, 14vh, 146px) var(--gutter) 0;
}
.copy h1 {
  margin: 0 auto; max-width: 1240px;
  font: 500 clamp(40px, 4.6vw, 70px)/1.04 var(--display); letter-spacing: -.045em; text-wrap: balance;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .8);
}
.h1-a, .h1-swap { display: block; }
.h1-swap { display: grid; }
.h1-b, .h1-c { grid-area: 1 / 1; transition: opacity .5s var(--ease), transform .6s var(--ease), filter .5s; }
.h1-b { color: #A6A5A1; }
.h1-c { color: var(--ink); opacity: 0; transform: translateY(.35em); filter: blur(6px); }
.is-after .h1-b { opacity: 0; transform: translateY(-.35em); filter: blur(6px); }
.is-after .h1-c { opacity: 1; transform: none; filter: none; }
.lede, .ctas { opacity: var(--copyOn, 1); }
.lede { max-width: 50ch; margin: 22px auto 0; color: #A9A8A4; font-size: 18px; text-wrap: balance; text-shadow: 0 1px 18px rgba(0, 0, 0, .9); }
.ctas { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 32px; }

/* the new site comes out of the hole */
.rig {
  position: absolute; z-index: 3; left: 50%; top: var(--bhy, 66%);
  width: min(980px, 92vw); height: 560px;
  opacity: var(--emerge, 0);
  transform: translate(-50%, -50%) scale(calc(.04 + var(--emerge, 0) * .96 * var(--rigScale, .78))) rotateZ(calc((1 - var(--emerge, 0)) * -18deg));
}
.rig .win {
  position: absolute; left: 0; top: 44px; width: 79%;
  border-radius: 14px; overflow: hidden; background: #1A1A1D;
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .95), 0 0 80px rgba(255, 255, 255, calc((1 - var(--emerge, 0)) * .5));
}
.rig .win-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: #1E1E22; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.rig .win-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3A3A40; }
.rig .win-bar span { margin-left: 12px; padding: 3px 12px; border-radius: 6px; background: #2A2A2F; font-size: 12px; color: #A5A4A0; }
.rig .win img { display: block; width: 100%; height: auto; }
.rig .phone { position: absolute; right: 4%; top: 0; --sw: 250px; }
.rig .shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rig-note {
  position: absolute; z-index: 4; left: 0; right: 0; bottom: 16px; margin: 0; text-align: center;
  font-size: 14px; color: #A6A5A1; opacity: var(--emerge, 0);
}

/* ---------- phone frame (hero and cards) ---------- */
.phone {
  position: relative; width: calc(var(--sw) + 24px); padding: 12px; border-radius: 52px;
  background: linear-gradient(140deg, #3B4046 0%, #1C1F23 38%, #2B2F34 62%, #121417 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .14), inset 0 0 0 3px #0B0C0E, 0 30px 60px -20px rgba(0, 0, 0, .8);
}
.side { position: absolute; width: 4px; border-radius: 2px; background: linear-gradient(90deg, #15171A, #3C4147); }
.side.s1 { left: -3px; top: 120px; height: 34px; }
.side.s2 { left: -3px; top: 168px; height: 58px; }
.side.s3 { right: -3px; top: 150px; height: 82px; }
.screen { position: relative; width: var(--sw); aspect-ratio: 390 / 844; overflow: hidden; border-radius: 40px; background: #FAFAFA; isolation: isolate; }
.glass {
  position: absolute; inset: 0; z-index: 9; pointer-events: none; border-radius: inherit;
  background: linear-gradient(115deg, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, 0) 32%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, .07) 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25);
}

/* ---------- phone layout (hero) ---------- */
@media (max-width: 860px) {
  .nav { height: 60px; }
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
  .hero { height: 220vh; }
  .copy { padding-top: 92px; }
  .copy h1 { font-size: clamp(31px, 8.6vw, 44px); }
  .lede { font-size: 15.5px; margin-top: 14px; }
  .ctas { margin-top: 22px; gap: 10px; }
  .rig { width: 100vw; height: 520px; --rigScale: .9; }
  .rig .win { width: 84%; left: 3%; top: 30px; }
  .rig .phone { --sw: 186px; width: calc(var(--sw) + 16px); right: 5%; border-radius: 34px; padding: 8px; }
  .rig .screen { border-radius: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero { height: auto; }
  .stage { position: relative; height: 100svh; min-height: 820px; }
  .h1-b, .h1-c { transition: none; }
}

/* ---------- shared ---------- */
.soft { color: #A6A5A1; }
.works h2, .how h2, .contact h2, .scrub { text-shadow: 0 2px 28px rgba(0, 0, 0, .85); }
.works h2, .how h2, .contact h2 {
  margin: 0; font: 500 clamp(36px, 4.4vw, 64px)/1.06 var(--display); letter-spacing: -.04em; text-wrap: balance;
}
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform 1s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Trabalhos ---------- */
.why {
  position: relative; z-index: 4; max-width: 1180px; margin: 0 auto;
  padding: clamp(110px, 13vw, 180px) var(--gutter) 0;
}
.why h2 { margin: 0; max-width: 22ch; font: 500 clamp(36px, 4.4vw, 64px)/1.06 var(--display); letter-spacing: -.04em; text-wrap: balance; text-shadow: 0 2px 28px rgba(0, 0, 0, .85); }
.works-cta {
  max-width: 1180px; margin: clamp(56px, 7vw, 96px) auto 0;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding-top: 32px; border-top: 1px solid var(--line);
}
.works-cta p { margin: 0; font: 500 clamp(22px, 2.2vw, 30px)/1.2 var(--display); letter-spacing: -.02em; }
.works { position: relative; z-index: 4; padding: clamp(96px, 11vw, 150px) var(--gutter) clamp(80px, 10vw, 140px); }
.sec-head { max-width: 1180px; margin: 0 auto clamp(64px, 8vw, 110px); }
.sec-head h2 { max-width: 20ch; }
.scrub { max-width: 34ch; margin: 34px 0 0; font: 500 clamp(22px, 2.3vw, 32px)/1.3 var(--display); letter-spacing: -.02em; }
.scrub .w { opacity: .16; transition: opacity .25s linear; }

.stack { max-width: 1180px; margin: 0 auto; display: grid; gap: 28px; }
.card {
  position: sticky; top: 92px;
  --q: 0; --cover: 0;
  border-radius: 28px; overflow: hidden; color: #fff;
  background: var(--wa);
  box-shadow: 0 -30px 60px -30px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(255, 255, 255, .08);
  transform: scale(calc(1 - var(--cover) * .06)); transform-origin: 50% 0;
  filter: brightness(calc(1 - var(--cover) * .45));
}
.card.is-light { color: #121212; }
.card-in { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 24px; min-height: min(640px, calc(100svh - 140px)); padding: clamp(28px, 4vw, 56px); }
.card .tag { margin: 0 0 18px; font-size: 14px; font-weight: 500; opacity: .75; }
.card h3 { margin: 0 0 18px; font: 500 clamp(36px, 4vw, 60px)/1 var(--display); letter-spacing: -.04em; }
.card-line { margin: 0 0 34px; max-width: 30ch; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.45; opacity: .86; text-wrap: pretty; }
.card-ctas { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.card.is-light .btn-light { background: #121212; color: #fff; }
.fine { margin: 22px 0 0; font-size: 14px; opacity: .75; }

.card-vis { position: relative; height: 100%; min-height: 440px; --swn: 210; --sw: calc(var(--swn) * 1px); }
.card .win {
  position: absolute; left: 0; right: 10%; top: 50%; translate: 0 -54%;
  border-radius: 12px; overflow: hidden; background: #fff;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .65);
  transition: transform 1s var(--ease);
}
.card .win-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #EEEEEC; }
.card .win-bar i { width: 9px; height: 9px; border-radius: 50%; background: #CFCFCB; }
.card .win-bar span { margin-left: 10px; padding: 2px 10px; border-radius: 5px; background: #fff; font-size: 12px; color: #66655F; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .win img { display: block; width: 100%; height: auto; transition: transform 1.2s var(--ease); }
.card .phone-sm {
  position: absolute; right: 0; bottom: 4%; width: calc(var(--sw) + 20px); padding: 10px; border-radius: 42px;
  transition: transform 1s var(--ease);
}
.card .phone-sm .screen { border-radius: 32px; }
.card .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* hover: the work leans toward you */
@media (hover: hover) {
  .card:hover .win { transform: translateY(-8px); }
  .card:hover .win img { transform: scale(1.03); }
  .card:hover .phone-sm { transform: translateY(-14px) rotate(-1.5deg); }
}

/* ---------- Como funciona: four steps on one line, joined by a hairline ---------- */
.how { position: relative; z-index: 4; max-width: 1180px; margin: 0 auto; padding: clamp(110px, 13vw, 180px) var(--gutter) clamp(40px, 6vw, 80px); }
.how h2 { margin: 0 0 clamp(44px, 6vw, 72px); max-width: 22ch; font: 500 clamp(32px, 3.8vw, 54px)/1.06 var(--display); letter-spacing: -.04em; text-wrap: balance; text-shadow: 0 2px 28px rgba(0, 0, 0, .85); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: step; }
.steps li { position: relative; padding-top: 52px; counter-increment: step; text-shadow: 0 1px 16px rgba(0, 0, 0, .95); }
/* the number sits on a line that runs through all four steps */
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; z-index: 1;
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--canvas); border: 1px solid rgba(255, 255, 255, .45); color: var(--ink);
  font: 500 15px/1 var(--text);
}
.steps li::after { content: ""; position: absolute; left: 34px; right: -32px; top: 17px; height: 1px; background: rgba(255, 255, 255, .22); }
.steps li:last-child::after { display: none; }
.steps b { display: block; font: 500 21px/1.15 var(--display); letter-spacing: -.02em; color: var(--ink); }
.steps span { display: block; margin-top: 8px; font-size: 16px; line-height: 1.5; color: #C4C3BF; max-width: 26ch; }

/* ---------- Contato ---------- */
.contact {
  position: relative; z-index: 4; overflow: hidden; isolation: isolate;
  display: grid; justify-items: center; align-content: center; text-align: center;
  /* the close and the footer share the last screen, so the hole, the line and the footer land together */
  min-height: calc(100vh - var(--foot-h, 92px)); min-height: calc(100svh - var(--foot-h, 92px));
  padding: 92px var(--gutter) 48px;
  border-top: 1px solid var(--line);
}
/* a shooting star crosses the sky behind the close every few seconds (main.js) */
.shooting {
  position: absolute; z-index: -1; left: 0; top: 0; width: 220px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .25) 55%, rgba(255, 255, 255, .95));
  transform-origin: 100% 50%; opacity: 0; pointer-events: none;
}
.shooting::after {
  content: ""; position: absolute; right: -2px; top: 50%; width: 5px; height: 5px; translate: 0 -50%; border-radius: 50%;
  background: #fff; box-shadow: 0 0 8px 2px rgba(255, 255, 255, .8), 0 0 22px 6px rgba(255, 255, 255, .25);
}
.contact-hole { width: 1px; height: clamp(120px, 20vh, 220px); margin: 0 0 clamp(18px, 3vh, 40px); }
.contact h2 { font-size: clamp(36px, min(5.6vw, 9vh), 92px); line-height: 1.02; max-width: 20ch; }
.contact-lede { margin: clamp(16px, 2.6vh, 26px) 0 clamp(24px, 4vh, 40px); color: #C4C3BF; text-shadow: 0 1px 18px rgba(0, 0, 0, .9); font-size: 18px; max-width: 44ch; }
.cta-wrap { position: relative; display: flex; align-items: center; }
.cta-msg {
  position: absolute; left: calc(100% + 16px); top: 50%;
  display: grid; align-items: center; min-height: 44px; padding: 10px 15px;
  border-radius: 14px; border-top-left-radius: 4px; background: #F3F2EE; color: #111;
  font-size: 15px; line-height: 1.35; white-space: nowrap;
  box-shadow: 0 24px 44px -16px rgba(0, 0, 0, .8);
  opacity: 0; transform: translate(-10px, -50%) scale(.96); transform-origin: 0 50%;
  transition: opacity .2s ease, transform .2s ease-out; pointer-events: none;
}
.cta-msg > span { grid-area: 1 / 1; transition: opacity .2s ease; }
.cta-dots { display: flex; gap: 5px; }
.cta-dots i { width: 7px; height: 7px; border-radius: 50%; background: #8B8A86; animation: dot 1s infinite ease-in-out; }
.cta-dots i:nth-child(2) { animation-delay: .15s; }
.cta-dots i:nth-child(3) { animation-delay: .3s; }
.cta-text { opacity: 0; }
.cta-wrap.is-open .cta-msg { opacity: 1; transform: translate(0, -50%); }
.cta-wrap.is-said .cta-dots { opacity: 0; }
.cta-wrap.is-said .cta-text { opacity: 1; }
.contact-num { margin: 18px 0 0; color: var(--ink-soft); font-size: 14.5px; }

/* ---------- footer ---------- */
.foot {
  position: relative; z-index: 4; display: flex; align-items: center; gap: 36px; flex-wrap: wrap;
  padding: 30px var(--gutter) 40px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 15px;
}
.foot-links { display: flex; gap: 24px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--ink-soft); }
.foot-links a:hover { color: var(--ink); }
.foot-c { margin-left: auto; }

/* ---------- phone layout (sections) ---------- */
@media (max-width: 860px) {
  .card { position: relative; top: auto; transform: none; filter: none; border-radius: 22px; }
  .card-in { grid-template-columns: 1fr; min-height: 0; padding: 26px 20px 22px; gap: 8px; }
  .card-vis { order: -1; min-height: 0; aspect-ratio: 1 / .78; --swn: 120; }
  .card .win { right: 18%; }
  .card .phone-sm { border-radius: 24px; padding: 6px; width: calc(var(--sw) + 12px); bottom: 0; }
  .card .phone-sm .screen { border-radius: 18px; }
  .card-line { margin-bottom: 22px; }
  .btn-big { width: 100%; }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .steps li { padding: 0 0 0 52px; }
  .steps li::after { left: 17px; right: auto; top: 34px; bottom: -26px; width: 1px; height: auto; }
  .contact-hole { height: clamp(84px, 12vh, 120px); margin-bottom: 12px; }
  .contact { padding: 72px var(--gutter) 28px; }
  .contact-lede { margin: 14px 0 22px; }
  .foot { gap: 4px 20px; padding: 14px var(--gutter) 18px; }
  .foot-links { gap: 18px; }
  .foot-c { width: auto; margin-left: 0; font-size: 13.5px; }
  .cta-wrap { flex-direction: column-reverse; align-items: stretch; width: 100%; }
  .cta-msg { position: relative; left: auto; top: auto; align-self: flex-end; margin-bottom: 12px; white-space: normal;
    border-top-left-radius: 14px; border-bottom-right-radius: 4px; transform: translateY(8px) scale(.96); transform-origin: 100% 100%; }
  .cta-wrap.is-open .cta-msg { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .scrub .w { opacity: 1; }
  .card { transform: none; filter: none; }
  .cta-msg { transition: none; }
  .cta-dots { display: none; }
}
