/* Adriano Dias — Portfolio
 * Night studio: black void, emerald rim light, a trace of orange warmth.
 * Layers: fonts → tokens → base → utilities → components → sections →
 * overlays → responsive → reduced motion.
 * `.motion` (set in <head>) gates every JS-driven state, so the page reads
 * complete with no JS, a failed CDN, or prefers-reduced-motion. */

/* ---------------------------------------------------------------- fonts */

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/outfit-latin.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/plexmono-400-latin.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/plexmono-500-latin.woff2") format("woff2");
}

/* --------------------------------------------------------------- tokens */

:root {
  --bg: #050807;
  --surface: #0b100e;
  --surface-2: #121a17;
  --ink: #eef3f0;
  --muted: #8a9a93;
  --emerald: #19d38a;
  --emerald-deep: #0a7a4f;
  --on-emerald: #03140c;
  --warm: #ff8a3d;
  --line: rgba(238, 243, 240, 0.12);
  --line-strong: rgba(238, 243, 240, 0.28);

  --sans: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: clamp(16px, 5vw, 80px);
  --gap: clamp(12px, 2vw, 32px);
  --nav-h: 76px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);

  color-scheme: dark;
}

/* ----------------------------------------------------------------- base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 1.05vw, 1.125rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--emerald);
  color: var(--on-emerald);
}

:focus-visible {
  outline: 2px solid var(--emerald);
  outline-offset: 4px;
  border-radius: 4px;
}

/* bilingual switch: both languages ship in the markup */
html:not([lang="pt"]) [data-l="pt"],
html[lang="pt"] [data-l="en"] {
  display: none !important;
}

/* ------------------------------------------------------------ utilities */

.mono {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.5;
}

.eyebrow {
  margin: 0 0 clamp(16px, 2.4vh, 28px);
  color: var(--muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--emerald);
  color: var(--on-emerald);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease-out);
}
.skip-link:focus {
  transform: none;
}

.word,
.char {
  display: inline-block;
}
.char {
  will-change: transform;
}

.pulse {
  position: relative;
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 12px var(--emerald);
}
.pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--emerald);
  animation: pulse 2.2s var(--ease-out) infinite;
}

@keyframes pulse {
  from { transform: scale(0.4); opacity: 1; }
  to { transform: scale(1.8); opacity: 0; }
}

/* film grain + vignette over everything */
.grain {
  position: fixed;
  inset: -120px;
  z-index: 150;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(6) infinite;
}

@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-40px, 30px); }
  40% { transform: translate(30px, -50px); }
  60% { transform: translate(-60px, -20px); }
  80% { transform: translate(50px, 40px); }
  100% { transform: translate(0, 0); }
}

/* --------------------------------------------------------------- buttons */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.45s var(--ease-out), border-color 0.45s var(--ease-out);
}
.btn::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: var(--emerald);
  transform: translateY(102%);
  transition: transform 0.55s var(--ease-out);
}
.btn:hover {
  color: var(--on-emerald);
  border-color: var(--emerald);
}
.btn:hover::before {
  transform: none;
}
.btn--solid {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.btn--small {
  min-height: 42px;
  padding: 0 18px;
}
.btn__arrow {
  display: inline-block;
  transition: transform 0.45s var(--ease-out);
}
.btn:hover .btn__arrow {
  transform: translateY(3px);
}

.link {
  position: relative;
  display: inline-flex;
  gap: 0.4em;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--emerald);
  padding-bottom: 4px;
}
.link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-out);
}
.link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.chip {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.chip:hover {
  color: var(--ink);
  border-color: var(--ink);
}
.chip[aria-pressed="true"] {
  background: var(--emerald);
  border-color: var(--emerald);
  color: var(--on-emerald);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tags > * {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.64rem;
}

/* glowing screen: every project image sits in one */
.screen {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  background: var(--surface);
  box-shadow:
    0 0 0 1px rgba(238, 243, 240, 0.12),
    0 30px 90px -40px rgba(25, 211, 138, 0.45);
}
.screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.09), transparent 38%);
}
.screen img {
  width: 100%;
  height: auto;
}

/* ------------------------------------------------------------ preloader */

.preloader {
  display: none;
}
.motion .preloader {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--gutter) * 0.8) var(--gutter);
  background: var(--bg);
}
.preloader__top {
  display: flex;
  justify-content: space-between;
  margin: 0;
  color: var(--muted);
}
.preloader__name {
  display: flex;
  flex-direction: column;
  font-size: clamp(3.4rem, 15vw, 16rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.84;
}
.preloader__name > span {
  display: block;
  overflow: hidden;
  padding-bottom: 0.04em;
}
.preloader__name > span:last-child {
  color: var(--emerald);
}
.preloader__foot {
  display: flex;
  align-items: center;
  gap: 24px;
}
.preloader__bar {
  flex: 1;
  height: 1px;
  background: var(--line);
}
.preloader__bar i {
  display: block;
  height: 100%;
  background: var(--emerald);
  transform: scaleX(0);
  transform-origin: left;
}

/* --------------------------------------------------------------- cursor */

.cursor {
  display: none;
}
@media (hover: hover) and (pointer: fine) {
  .motion .cursor {
    display: block;
  }
  .motion body,
  .motion a,
  .motion button {
    cursor: none;
  }
}
.cursor {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 220;
  pointer-events: none;
  transition: opacity 0.3s;
}
.cursor__dot,
.cursor__ring {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
  will-change: transform;
}
.cursor__dot {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  background: var(--ink);
}
.cursor__ring {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border: 1px solid rgba(238, 243, 240, 0.45);
  transition:
    width 0.45s var(--ease-out),
    height 0.45s var(--ease-out),
    margin 0.45s var(--ease-out),
    background 0.3s,
    border-color 0.3s;
}
.cursor__label {
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--on-emerald);
  opacity: 0;
  transition: opacity 0.2s;
}
.cursor.is-link .cursor__ring {
  width: 60px;
  height: 60px;
  margin: -30px 0 0 -30px;
  border-color: var(--emerald);
}
.cursor.is-view .cursor__ring {
  width: 96px;
  height: 96px;
  margin: -48px 0 0 -48px;
  background: var(--emerald);
  border-color: var(--emerald);
}
.cursor.is-view .cursor__label {
  opacity: 1;
}
.cursor.is-view .cursor__dot {
  opacity: 0;
}

/* ------------------------------------------------------------------ nav */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--nav-h);
  padding-inline: var(--gutter);
  border-bottom: 1px solid transparent;
  transition:
    transform 0.6s var(--ease-io),
    background 0.4s,
    border-color 0.4s;
}
.nav.is-scrolled {
  background: rgba(5, 8, 7, 0.62);
  border-color: var(--line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.nav.is-hidden {
  transform: translateY(-100%);
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
}
.nav__links {
  display: flex;
  gap: clamp(20px, 3vw, 44px);
}
.nav__links a {
  position: relative;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.3s;
}
.nav__links a:hover,
.nav__links a.is-active {
  color: var(--ink);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--emerald);
  transform: scaleX(0);
  transition: transform 0.5s var(--ease-out);
}
.nav__links a.is-active::after {
  transform: scaleX(1);
}
.nav__tools {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lang {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.lang button {
  min-width: 40px;
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}
.lang button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--bg);
}

/* --------------------------------------------------------------- scenes */

.scene {
  position: relative;
}
.motion .scene--hero { height: 250vh; }
.motion .scene--about { height: 330vh; }
.motion .scene--contact { height: 260vh; }

.scene__sticky {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
}
.motion .scene__sticky {
  position: sticky;
  top: 0;
  height: 100svh;
}

.scene__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 70% at 50% 45%, rgba(25, 211, 138, 0.14), transparent 70%),
    radial-gradient(ellipse 40% 50% at 70% 60%, rgba(255, 138, 61, 0.06), transparent 70%),
    var(--bg);
}
.scene__poster,
.scene__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
.motion .scene__poster {
  transform: scale(calc(1.08 - var(--p, 0) * 0.08));
  transform-origin: 50% 45%;
}
.scene__poster.is-missing {
  display: none;
}
.scene__media video {
  opacity: 0;
  transition: opacity 0.35s linear;
}
.scene__media video.is-ready {
  opacity: 1;
}
.scene__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 8, 7, 0.55) 0%, transparent 22%, transparent 45%, rgba(5, 8, 7, 0.92) 100%),
    radial-gradient(ellipse at center, transparent 45%, rgba(5, 8, 7, 0.65) 100%);
}
.scene--hero .scene__shade {
  background:
    linear-gradient(90deg, rgba(5, 8, 7, 0.84) 0%, rgba(5, 8, 7, 0.58) 40%, rgba(5, 8, 7, 0.08) 72%),
    linear-gradient(180deg, rgba(5, 8, 7, 0.44) 0%, transparent 28%, rgba(5, 8, 7, 0.72) 100%);
}

.readout {
  position: absolute;
  z-index: 3;
  margin: 0;
  color: var(--muted);
  font-size: 0.66rem;
}
.readout--tr {
  top: calc(var(--nav-h) + 20px);
  right: var(--gutter);
  text-align: right;
}
.readout--bl {
  left: var(--gutter);
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.readout--br {
  right: var(--gutter);
  bottom: 22px;
}
.readout__bar {
  width: clamp(60px, 10vw, 140px);
  height: 1px;
  background: var(--line-strong);
}
.readout__bar i {
  display: block;
  height: 100%;
  background: var(--emerald);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
}
.scroll-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  transition: opacity 0.4s;
}
.scroll-hint i {
  position: relative;
  width: 1px;
  height: 34px;
  overflow: hidden;
  background: var(--line-strong);
}
.scroll-hint i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--emerald);
  animation: drip 1.8s var(--ease-io) infinite;
}
.scene--hero.is-scrolled .scroll-hint {
  opacity: 0;
}

@keyframes drip {
  from { transform: translateY(-100%); }
  to { transform: translateY(100%); }
}

/* ----------------------------------------------------------------- hero */

.hero {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 40px) var(--gutter) clamp(64px, 11vh, 120px);
}
.motion .hero {
  height: 100%;
  opacity: calc(1 - max(0, var(--p, 0) - 0.82) * 5.5);
}
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 clamp(12px, 2vh, 24px);
  color: var(--ink);
}
.hero__name {
  margin: 0;
  font-size: clamp(4.2rem, 17vw, 19rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.82;
  text-transform: uppercase;
}
.hero__line {
  position: relative;
  display: block;
  width: max-content;
  overflow: hidden;
  padding: 0.02em 0.04em 0.05em 0;
}
.hero__line--offset {
  margin-left: clamp(0px, 22vw, 380px);
}
.hero__stroke {
  display: block;
  color: rgba(238, 243, 240, 0.14);
}
.hero__fill {
  position: absolute;
  inset: 0.02em 0.04em 0.05em 0;
  color: var(--ink);
}
.motion .hero__fill {
  clip-path: inset(0 calc((1 - var(--fill, 0)) * 100%) 0 0);
}
.hero__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
  margin-top: clamp(20px, 3.5vh, 40px);
}
.kin {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 0.32em;
  margin: 0;
  font-size: clamp(1.5rem, 3.2vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-transform: uppercase;
}
.kin__window {
  display: inline-block;
  height: 1.12em;
  overflow: hidden;
  color: var(--emerald);
}
.kin__track {
  display: flex;
  flex-direction: column;
  transform: translateY(calc(var(--kin, 0) * -1.12em));
  transition: transform 0.8s var(--ease-out);
}
.kin__track > span {
  display: block;
  height: 1.12em;
  line-height: 1.12em;
}
.hero__aside {
  max-width: 30rem;
}
.hero__sub {
  margin: 0 0 22px;
  color: rgba(238, 243, 240, 0.78);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* -------------------------------------------------------------- numbers */

.numbers {
  position: relative;
  overflow: hidden;
  padding-block: clamp(80px, 13vh, 150px);
  border-block: 1px solid var(--line);
  background: var(--bg);
}
.numbers__marquee {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  opacity: 0.06;
  pointer-events: none;
  transform: translateY(-50%) skewX(var(--skew, 0deg));
  white-space: nowrap;
  font-size: clamp(4rem, 13vw, 13rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
  text-transform: uppercase;
}
.marquee__track {
  display: inline-flex;
  animation: marquee 70s linear infinite;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}
.numbers__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
  margin: 0;
  padding: 0 var(--gutter);
  list-style: none;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 22px;
  border-top: 1px solid var(--line-strong);
}
.stat__value {
  font-size: clamp(3rem, 7.4vw, 7.6rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}
.stat__value em {
  font-style: normal;
  color: var(--emerald);
}
.stat__label {
  color: var(--muted);
}

/* -------------------------------------------------------------- mission */

.mission {
  padding: clamp(120px, 24vh, 280px) var(--gutter);
}
.mission__text {
  max-width: 17em;
  margin: 0;
  font-size: clamp(2rem, 5.2vw, 5.4rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.04;
}
.mission__text em {
  font-style: normal;
  color: var(--emerald);
}

/* ---------------------------------------------------------------- about */

.scene--about .scene__shade {
  background:
    linear-gradient(90deg, rgba(5, 8, 7, 0.9) 0%, rgba(5, 8, 7, 0.55) 45%, transparent 75%),
    linear-gradient(180deg, rgba(5, 8, 7, 0.5) 0%, transparent 25%, transparent 60%, rgba(5, 8, 7, 0.9) 100%);
}
.about {
  position: relative;
  z-index: 2;
  display: grid;
  gap: clamp(64px, 12vh, 120px);
  align-content: end;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 40px) var(--gutter) clamp(72px, 12vh, 130px);
}
.motion .about {
  height: 100%;
  gap: 0;
}
.motion .about__story,
.motion .pillars {
  grid-area: 1 / 1;
  align-self: end;
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.9s var(--ease-out),
    visibility 0.7s;
}
.motion .scene--about:not(.show-story) .about__story,
.motion .scene--about:not(.show-pillars) .pillars {
  opacity: 0;
  visibility: hidden;
  transform: translateY(48px);
}
.about__story {
  max-width: 44rem;
}
.about__title {
  margin: 0 0 clamp(20px, 3vh, 32px);
  font-size: clamp(2.6rem, 7vw, 7.4rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.92;
}
.about__body {
  max-width: 36rem;
  margin: 0;
  color: rgba(238, 243, 240, 0.78);
}
.pillars {
  width: 100%;
}
.pillars__count {
  margin-left: 12px;
  color: var(--emerald);
}
.pillars__list {
  display: grid;
  gap: 56px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.motion .pillars__list {
  gap: 0;
}
.pillar {
  position: relative;
  max-width: 100%;
}
.motion .pillar {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(40px);
  transition:
    opacity 0.6s var(--ease-out),
    transform 0.8s var(--ease-out),
    visibility 0.6s;
}
.motion .pillar.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.pillar__num {
  position: absolute;
  right: 0;
  bottom: -0.08em;
  font-size: clamp(8rem, 26vw, 28rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.8;
  color: rgba(25, 211, 138, 0.14);
  pointer-events: none;
}
.pillar__title {
  position: relative;
  max-width: 12em;
  margin: 0 0 18px;
  font-size: clamp(2.4rem, 6.4vw, 6.6rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.92;
}
.pillar__body {
  position: relative;
  max-width: 34rem;
  margin: 0 0 16px;
  color: rgba(238, 243, 240, 0.8);
}
.pillar__projects {
  position: relative;
  margin: 0 0 20px;
  color: var(--muted);
}

/* ----------------------------------------------------------------- work */

.work {
  position: relative;
  padding: clamp(120px, 20vh, 240px) var(--gutter) clamp(80px, 12vh, 150px);
}
.work__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px 48px;
  margin-bottom: clamp(40px, 8vh, 88px);
}
.work__title {
  margin: 0;
  font-size: clamp(4rem, 15vw, 16rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.82;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.work__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.work-item[hidden] {
  display: none;
}
.work-row,
.work__next {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) auto 3rem;
  align-items: center;
  gap: 12px 28px;
  width: 100%;
  padding: clamp(22px, 3.6vh, 40px) 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  color: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.45s var(--ease-out);
}
.work-row__num {
  color: var(--muted);
}
.work-row__thumb {
  display: none;
}
.work-row__name,
.work__next-name {
  font-size: clamp(2rem, 6vw, 6.4rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
  transition: transform 0.7s var(--ease-out), color 0.4s;
}
.work-row__meta {
  color: var(--muted);
  text-align: right;
}
.work-row__arrow {
  justify-self: end;
  font-size: 1.6rem;
  color: var(--emerald);
  transform: translate(-8px, 8px);
  opacity: 0;
  transition: transform 0.6s var(--ease-out), opacity 0.4s;
}
@media (hover: hover) {
  .work__list:hover .work-row:not(:hover) {
    opacity: 0.28;
  }
  .work-row:hover .work-row__name,
  .work__next:hover .work__next-name {
    transform: translateX(clamp(12px, 2vw, 32px));
  }
  .work-row:hover .work-row__arrow,
  .work__next:hover .work-row__arrow {
    transform: none;
    opacity: 1;
  }
}
.work-row:focus-visible .work-row__arrow {
  opacity: 1;
  transform: none;
}
.work__next {
  grid-template-columns: 4.5rem minmax(0, 1fr) 3rem;
  color: var(--muted);
}
.work__next-name {
  color: rgba(238, 243, 240, 0.24);
}
.work__next:hover .work__next-name {
  color: var(--emerald);
}

.work-preview {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  width: min(32vw, 520px);
  aspect-ratio: 16 / 10;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s;
  will-change: transform;
}
.work-preview.is-visible {
  opacity: 1;
}
.work-preview__inner {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 12px;
  box-shadow:
    0 0 0 1px rgba(238, 243, 240, 0.16),
    0 40px 120px -30px rgba(25, 211, 138, 0.5);
  transform: scale(0.82) rotate(var(--r, 0deg));
  transition: transform 0.6s var(--ease-out);
}
.work-preview.is-visible .work-preview__inner {
  transform: scale(1) rotate(var(--r, 0deg));
}
.work-preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transition: opacity 0.35s;
}
.work-preview img.is-current {
  opacity: 1;
}
@media (hover: none) {
  .work-preview {
    display: none;
  }
}

/* ------------------------------------------------------------- products */

.products {
  padding: clamp(80px, 14vh, 180px) var(--gutter) clamp(120px, 20vh, 240px);
}
.products__title {
  max-width: 11em;
  margin: 0 0 clamp(40px, 8vh, 88px);
  font-size: clamp(2.6rem, 7vw, 7.4rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.92;
}
.products__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}
.product {
  perspective: 1200px;
}
.product__card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  height: 100%;
  padding: clamp(14px, 1.6vw, 24px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.6s var(--ease-out), border-color 0.4s;
}
.product__card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(25, 211, 138, 0.13), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}
.product__card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--emerald);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s var(--ease-out);
}
.product__card:hover {
  border-color: var(--line-strong);
}
.product__card:hover::before {
  opacity: 1;
}
.product__card:hover::after {
  transform: scaleX(1);
}
.product__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-inline: 6px;
}
.product__name {
  font-size: clamp(1.8rem, 3.4vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
}
.product__arrow {
  font-size: 1.5rem;
  color: var(--emerald);
}
.product__desc {
  max-width: 36rem;
  padding-inline: 6px;
  color: rgba(238, 243, 240, 0.75);
}
.product__card .tags {
  padding-inline: 6px;
  padding-bottom: 6px;
}

/* -------------------------------------------------------------- contact */

.scene--contact .scene__shade {
  background:
    linear-gradient(180deg, rgba(5, 8, 7, 0.65) 0%, transparent 25%, transparent 38%, rgba(5, 8, 7, 0.95) 88%),
    radial-gradient(ellipse at center, transparent 40%, rgba(5, 8, 7, 0.7) 100%);
}
.contact {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 40px) var(--gutter) clamp(64px, 10vh, 110px);
}
.motion .contact {
  height: 100%;
}
.contact__title {
  margin: 0;
  font-size: clamp(3.4rem, 12.6vw, 14rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.84;
  text-transform: uppercase;
}
.contact__line {
  display: block;
  perspective: 900px;
}
/* room for the uppercase accents of "É O PRÓXIMO" under the first line */
.contact__line + .contact__line {
  margin-top: 0.14em;
}
.contact__line--accent {
  color: var(--emerald);
}
.contact__line .char {
  transform-origin: 50% 100%;
}
.contact__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px clamp(28px, 5vw, 72px);
  margin-top: clamp(28px, 5vh, 56px);
}
.contact__sub {
  max-width: 22rem;
  margin: 0;
  color: rgba(238, 243, 240, 0.8);
}
.disc {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: clamp(136px, 13vw, 184px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--emerald);
  color: var(--on-emerald);
  text-decoration: none;
  box-shadow:
    0 0 0 1px rgba(25, 211, 138, 0.4),
    0 0 80px -10px rgba(255, 138, 61, 0.45),
    0 0 60px -20px rgba(25, 211, 138, 0.8);
  transition: box-shadow 0.5s;
}
.disc:hover {
  box-shadow:
    0 0 0 10px rgba(25, 211, 138, 0.15),
    0 0 100px -10px rgba(255, 138, 61, 0.6),
    0 0 80px -10px rgba(25, 211, 138, 0.9);
}
.disc__ring {
  position: absolute;
  inset: 6px;
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  animation: spin 14s linear infinite;
}
.disc__ring text {
  fill: var(--on-emerald);
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 2.4px;
}
.disc__label {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.15;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.channels {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.channels li {
  display: grid;
  grid-template-columns: 6.5rem auto;
  gap: 12px;
}
.channels li > span:first-child {
  color: var(--muted);
}
.channels a {
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0.04em;
  transition: color 0.3s;
}
.channels a:hover {
  color: var(--emerald);
}

/* --------------------------------------------------------------- footer */

.footer {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 9vh, 96px) var(--gutter) 0;
  border-top: 1px solid var(--line);
}
.footer__top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer__brand p {
  margin: 0;
}
.footer__brand .mono {
  color: var(--muted);
}
.footer__name {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.footer__clock {
  margin: 0;
  color: var(--muted);
}
.footer__clock time {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 28px;
}
.footer__links a {
  text-decoration: none;
  color: var(--muted);
  transition: color 0.3s;
}
.footer__links a:hover {
  color: var(--emerald);
}
.footer__legal {
  margin: clamp(40px, 6vh, 64px) 0 0;
  color: var(--muted);
}
.footer__giant {
  margin-top: 8px;
  margin-bottom: -0.2em;
  font-size: clamp(5rem, 24vw, 26rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.8;
  color: rgba(238, 243, 240, 0.05);
  white-space: nowrap;
  user-select: none;
}

.wa-pill {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 90;
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--emerald);
  color: var(--on-emerald);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 10px 40px -10px rgba(25, 211, 138, 0.7);
  transform: translateY(160%);
  transition: transform 0.6s var(--ease-out);
}
.wa-pill .pulse {
  background: var(--on-emerald);
  box-shadow: none;
}
.wa-pill .pulse::after {
  border-color: var(--on-emerald);
}
.wa-pill.is-visible {
  transform: none;
}

/* ---------------------------------------------------------- case overlay */

.case {
  position: fixed;
  inset: 0;
  z-index: 200;
}
.case[hidden] {
  display: none;
}
.case-open body {
  overflow: hidden;
}
.case__curtain {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: var(--emerald);
  transform: scaleY(0);
  pointer-events: none;
}
.case__panel {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--bg);
}
.case__bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--nav-h);
  padding-inline: var(--gutter);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 8, 7, 0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.case__index {
  color: var(--muted);
}
.case__nav {
  display: flex;
  gap: 8px;
}
.case__btn {
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.case__btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.case__body {
  max-width: 1600px;
  margin: 0 auto;
  padding: clamp(40px, 8vh, 96px) var(--gutter) clamp(80px, 14vh, 160px);
}
.case__title {
  margin: 0 0 clamp(24px, 4vh, 48px);
  font-size: clamp(3rem, 10vw, 11rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.86;
}
.case__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px var(--gap);
  margin: 0 0 clamp(32px, 6vh, 64px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.case__meta dt {
  color: var(--muted);
  margin-bottom: 6px;
}
.case__meta dd {
  margin: 0;
  text-transform: none;
  letter-spacing: 0.04em;
  font-size: 0.8rem;
}
.case__hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, 21%);
  align-items: end;
  gap: var(--gap);
}
.case__hero--single {
  grid-template-columns: minmax(0, 1fr);
}
.case__hero figure,
.case__gallery figure {
  margin: 0;
}
.case__text {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 64px);
  margin: clamp(48px, 9vh, 110px) 0;
}
.case__text h3 {
  margin: 0 0 14px;
  color: var(--emerald);
}
.case__text p {
  margin: 0;
  font-size: clamp(1.05rem, 1.4vw, 1.35rem);
  line-height: 1.5;
  color: rgba(238, 243, 240, 0.86);
}
.case__gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
  margin-bottom: clamp(48px, 9vh, 110px);
}
.case__note {
  margin: 12px 0 0;
  color: var(--muted);
}
.case__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ----------------------------------------------------------- responsive */

@media (max-width: 1100px) {
  .numbers__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 48px;
  }
  .case__text {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  :root {
    --nav-h: 64px;
  }
  .nav__links {
    display: none;
  }
  .nav__brand span {
    display: none;
  }
  .motion .scene--hero { height: 190vh; }
  .motion .scene--about { height: 260vh; }
  .motion .scene--contact { height: 200vh; }

  .readout--tr {
    display: none;
  }
  .scene--hero .scene__shade {
    background:
      linear-gradient(180deg, rgba(5, 8, 7, 0.08) 0%, rgba(5, 8, 7, 0.16) 36%, rgba(5, 8, 7, 0.94) 72%, var(--bg) 100%),
      linear-gradient(90deg, rgba(5, 8, 7, 0.56) 0%, transparent 78%);
  }
  .scene--hero .scene__poster {
    object-position: center top;
  }
  .hero__eyebrow {
    flex-wrap: wrap;
    row-gap: 6px;
  }
  .hero__line--offset {
    margin-left: 12vw;
  }
  .hero__row {
    flex-direction: column;
    align-items: flex-start;
  }
  .scene--about .scene__shade {
    background: linear-gradient(180deg, rgba(5, 8, 7, 0.55) 0%, transparent 25%, rgba(5, 8, 7, 0.55) 50%, rgba(5, 8, 7, 0.95) 100%);
  }
  .pillar__num {
    bottom: auto;
    top: -0.62em;
    font-size: clamp(7rem, 38vw, 12rem);
  }

  .work-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px 16px;
  }
  .work-row__thumb {
    display: block;
    grid-column: 1 / -1;
    order: -1;
  }
  .work-row__thumb img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top center;
  }
  .work-row__num {
    display: none;
  }
  .work-row__meta {
    grid-column: 1 / -1;
    text-align: left;
    margin-top: -6px;
  }
  .work-row__arrow {
    opacity: 1;
    transform: none;
    grid-row: 2;
    grid-column: 2;
  }
  .work__next {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .work__next > .mono {
    display: none;
  }

  .products__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer__top {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
  }
  .footer__links {
    justify-content: flex-start;
  }

  .wa-pill {
    display: inline-flex;
  }

  .case__hero {
    grid-template-columns: minmax(0, 1fr);
  }
  .case__hero .case__mobile {
    width: 56%;
    justify-self: center;
  }
  .case__gallery {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .btn {
    padding: 0 20px;
  }
  .lang button {
    min-width: 36px;
  }
  .channels li {
    grid-template-columns: 5.5rem auto;
  }
}

/* --------------------------------------------------------- reduced motion */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .grain {
    display: none;
  }
}
