/* =========================================================
   Leonardo Reis — Noir
   100% dark · preto e branco · motion em tudo
   ========================================================= */

:root {
  --bg: #060606;
  --bg-2: #0d0d0d;
  --bg-3: #151515;
  --fg: #f3f3f1;
  --fg-2: #b9b9b4;
  --muted: #76766f;
  --line: rgba(255, 255, 255, .1);
  --line-2: rgba(255, 255, 255, .22);

  --sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --serif: "Instrument Serif", Georgia, serif;

  --gutter: clamp(16px, 3.6vw, 56px);
  --hdr: 76px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100svh;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ol, ul { list-style: none; margin: 0; padding: 0; }
dl, dd, h1, h2, h3, p { margin: 0; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
::selection { background: var(--fg); color: var(--bg); }
:focus-visible { outline: 1.5px solid var(--fg); outline-offset: 4px; border-radius: 4px; }

[hidden] { display: none !important; }
h1[tabindex="-1"]:focus { outline: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { padding-inline: var(--gutter); }
.skip { position: fixed; left: 16px; top: -60px; z-index: 300; padding: 10px 16px; border-radius: 999px; background: var(--fg); color: var(--bg); font-size: 14px; }
.skip:focus { top: 16px; }

/* ---------- camadas de ambiente ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 250; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}
.guides {
  position: fixed; inset: 0 var(--gutter); z-index: 0; pointer-events: none;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.guides i { border-left: 1px solid rgba(255, 255, 255, .035); }
.guides i:last-child { position: absolute; right: 0; top: 0; bottom: 0; }
.progress {
  position: fixed; left: 0; top: 0; z-index: 120; width: 100%; height: 2px;
  background: var(--fg); transform: scaleX(0); transform-origin: 0 50%;
}

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 400; background: var(--bg);
  display: grid; place-items: center; padding: var(--gutter);
}
.no-js .loader, .loader.done { display: none; }
.loader-name {
  font-size: clamp(44px, 10vw, 168px); font-weight: 500; letter-spacing: -.06em; line-height: .9;
}
.loader-foot {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: calc(var(--gutter) + 14px);
  display: flex; justify-content: space-between; align-items: flex-end;
  font: 400 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.loader-count { font-size: clamp(40px, 6vw, 88px); color: var(--fg); letter-spacing: -.04em; font-family: var(--sans); font-weight: 300; }
.loader-bar { position: absolute; left: var(--gutter); right: var(--gutter); bottom: var(--gutter); height: 1px; background: var(--line); }
.loader-bar i { display: block; height: 100%; background: var(--fg); transform: scaleX(0); transform-origin: 0 50%; }

/* ---------- curtain (transição de página) ---------- */
.curtain {
  position: fixed; inset: 0; z-index: 200; pointer-events: none; visibility: hidden;
  background: var(--bg-3); display: grid; place-items: center;
  clip-path: inset(100% 0% 0% 0%);
}
.curtain::before { content: ""; position: absolute; inset: 0; border-top: 1px solid var(--line-2); }
.curtain-label { font-family: var(--serif); font-style: italic; font-size: clamp(56px, 11vw, 190px); line-height: 1; letter-spacing: -.02em; }

/* ---------- texto dividido ---------- */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .04em .12em 0; margin: 0 -.04em -.12em 0; }
.c { display: inline-block; will-change: transform; }
.mw { transition: none; }

/* ---------- cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none; display: none; }
.has-cursor .cursor { display: block; }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor .b { cursor: none; }
.cursor-dot, .cursor-ring { position: fixed; left: 0; top: 0; border-radius: 50%; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--fg); mix-blend-mode: difference; }
.cursor-ring {
  width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 1px solid rgba(255, 255, 255, .5);
  display: grid; place-items: center; transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background .3s, border-color .3s;
}
.cursor-label { font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--bg); opacity: 0; transition: opacity .2s; white-space: nowrap; }
.cursor.is-label .cursor-ring { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--fg); border-color: var(--fg); }
.cursor.is-label .cursor-label { opacity: 1; transition-delay: .1s; }
.cursor.is-label .cursor-dot { opacity: 0; }
.cursor.is-link .cursor-ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: var(--fg); }
.cursor.is-down .cursor-ring { width: 28px; height: 28px; margin: -14px 0 0 -14px; }
.cursor.is-hidden { opacity: 0; }

/* ---------- header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--hdr);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding-inline: var(--gutter);
  transition: background .4s, border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.hdr.is-solid { background: rgba(6, 6, 6, .72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-color: var(--line); }
.hdr-brand { display: inline-flex; align-items: center; gap: 12px; width: fit-content; font-weight: 500; letter-spacing: -.02em; }
.hdr-mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line-2); font: 500 11px/1 var(--mono); transition: background .35s, color .35s, transform .6s var(--ease);
}
.hdr-brand:hover .hdr-mark { background: var(--fg); color: var(--bg); transform: rotate(-90deg); }
.hdr-nav { position: relative; display: flex; gap: 6px; padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: rgba(13, 13, 13, .6); }
.hdr-nav a { position: relative; z-index: 1; padding: 9px 16px; border-radius: 999px; font-size: 14px; color: var(--fg-2); transition: color .35s; }
.hdr-nav a:hover { color: var(--fg); }
.hdr-nav a[aria-current="page"] { color: var(--bg); }
.hdr-ind { position: absolute; left: 0; top: 5px; bottom: 5px; width: 0; border-radius: 999px; background: var(--fg); opacity: 0; }
.hdr-meta { justify-self: end; display: flex; align-items: center; gap: 10px; font: 400 12px/1 var(--mono); letter-spacing: .06em; color: var(--fg-2); }
.hdr-tz { color: var(--muted); }
.hdr-menu { display: none; justify-self: end; padding: 10px 16px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; }
.pulse { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--fg); flex: none; }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--fg); animation: pulse 2s var(--ease) infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(3.2); opacity: 0; } }

/* menu mobile */
.menu {
  position: fixed; inset: 0; z-index: 95; background: var(--bg-2);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 32px;
  padding: calc(var(--hdr) + 24px) var(--gutter) calc(var(--gutter) + 12px);
}
.menu nav { display: grid; }
.menu nav a {
  display: flex; align-items: baseline; gap: 14px; padding: 6px 0; border-bottom: 1px solid var(--line);
  font-size: clamp(46px, 13vw, 88px); font-weight: 500; letter-spacing: -.055em; line-height: 1.05;
}
.menu nav a small { font: 400 11px/1 var(--mono); color: var(--muted); letter-spacing: .08em; }
.menu-foot { font: 400 13px/1.4 var(--mono); color: var(--fg-2); }

/* ---------- roll text (hover) ---------- */
.roll { position: relative; display: inline-block; overflow: hidden; vertical-align: top; line-height: 1.2; }
.roll > span { display: block; transition: transform .6s var(--ease); }
.roll::after {
  content: attr(data-text); position: absolute; left: 0; top: 100%; white-space: nowrap;
  transition: transform .6s var(--ease);
}
@media (hover: hover) {
  a:hover > .roll > span, button:hover > .roll > span, a:hover .roll > span { transform: translateY(-100%); }
  a:hover > .roll::after, button:hover > .roll::after, a:hover .roll::after { transform: translateY(-100%); }
}
.hdr-menu[aria-expanded="true"] .roll > span, .hdr-menu[aria-expanded="true"] .roll::after { transform: translateY(-100%); }

/* ---------- botões ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: space-between; gap: 18px;
  min-height: 56px; padding: 0 12px 0 26px; border: 1px solid var(--line-2); border-radius: 999px;
  font-size: 15px; font-weight: 500; letter-spacing: -.01em; white-space: nowrap;
  transition: color .5s var(--ease), border-color .5s;
}
.btn::before {
  content: ""; position: absolute; left: var(--mx, 50%); top: var(--my, 50%); z-index: -1;
  width: 240%; aspect-ratio: 1; border-radius: 50%; background: var(--fg);
  transform: translate(-50%, -50%) scale(0); transition: transform .7s var(--ease);
}
.btn-ico {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--fg); color: var(--bg); font-size: 15px; transition: transform .6s var(--ease), background .5s, color .5s;
}
.btn-solid { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn-solid::before { background: var(--bg-3); }
.btn-solid .btn-ico { background: var(--bg); color: var(--fg); }
@media (hover: hover) {
  .btn:hover { color: var(--bg); border-color: var(--fg); }
  .btn:hover::before { transform: translate(-50%, -50%) scale(1); }
  .btn:hover .btn-ico { transform: rotate(-45deg); background: var(--bg); color: var(--fg); }
  .btn-solid:hover { color: var(--fg); }
  .btn-solid:hover .btn-ico { background: var(--fg); color: var(--bg); }
}

/* ---------- views ---------- */
main { position: relative; z-index: 1; }
.view[hidden] { display: none !important; }
.label { font: 400 12px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.display {
  font-size: clamp(64px, 13.5vw, 232px); font-weight: 500; line-height: .86; letter-spacing: -.065em;
  margin-top: 22px;
}
.display em { letter-spacing: -.03em; }
.display-sup { font: 400 clamp(14px, 1.6vw, 22px)/1 var(--mono); letter-spacing: 0; vertical-align: top; margin-left: .3em; color: var(--fg-2); position: relative; top: .5em; }
.h2 { font-size: clamp(40px, 6.4vw, 104px); font-weight: 500; line-height: .92; letter-spacing: -.06em; margin-top: 18px; }
.lead { max-width: 36ch; font-size: clamp(17px, 1.5vw, 22px); line-height: 1.45; color: var(--fg-2); letter-spacing: -.015em; }
.page-head { padding-top: calc(var(--hdr) + clamp(48px, 9vw, 120px)); padding-bottom: clamp(48px, 6vw, 88px); }
.page-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-top: clamp(32px, 4vw, 56px); }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column;
  padding: calc(var(--hdr) + clamp(20px, 3vw, 40px)) var(--gutter) 0;
  overflow: hidden; border-bottom: 1px solid var(--line);
}
.hero-ui { position: relative; z-index: 3; pointer-events: none; }
.hero-ui a, .hero-ui button { pointer-events: auto; }
.hero-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.badge { display: inline-flex; align-items: center; gap: 12px; font: 400 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-2); }
.redrop { display: inline-flex; align-items: center; gap: 8px; font: 400 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-2); padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; transition: border-color .3s, color .3s; }
.redrop:hover { border-color: var(--fg); color: var(--fg); }
.redrop > span:first-child { display: inline-block; transition: transform .7s var(--ease); }
.redrop:hover > span:first-child { transform: rotate(-180deg); }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, max-content)); gap: clamp(28px, 6vw, 110px); margin-top: clamp(28px, 4.5vw, 64px); }
.stat { display: flex; flex-direction: column-reverse; gap: 10px; }
.stat dt { font: 400 11px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); max-width: 14ch; }
.stat dd, .strip dd { font-size: clamp(56px, 8.4vw, 148px); font-weight: 300; line-height: .82; letter-spacing: -.07em; font-variant-numeric: tabular-nums; }
.stat dd i, .strip dd i { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; margin-left: .02em; color: var(--fg-2); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(28px, 3.6vw, 52px); }
.hero-space { flex: 1; min-height: var(--drop-h, clamp(250px, 34vh, 420px)); }
.hero-hint {
  position: absolute; z-index: 1; right: var(--gutter); bottom: 18px; pointer-events: none;
  display: inline-flex; align-items: center; gap: 8px;
  font: 400 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.hint-ico { display: inline-block; animation: hint 2.4s var(--ease) infinite; }
@keyframes hint { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(3px, -3px); } }

/* palco de física */
.drop { position: absolute; inset: 0; z-index: 2; overflow: hidden; }
.b {
  position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  white-space: nowrap; line-height: 1; user-select: none; -webkit-user-select: none; touch-action: none;
  cursor: grab; visibility: hidden; transform-origin: 50% 50%; will-change: transform;
}
.b.on { visibility: visible; }
.b.grab { cursor: grabbing; }
.b-name {
  font-size: clamp(38px, min(7.4vw, 11.5vh), 132px); font-weight: 500; letter-spacing: -.058em;
  padding: .14em .5em .2em; border-radius: 999px; background: var(--fg); color: var(--bg);
}
.b-role {
  font-size: clamp(15px, min(1.8vw, 2.9vh), 30px); letter-spacing: -.025em; padding: .78em 1.2em;
  border-radius: 999px; background: var(--bg-3); border: 1px solid var(--line-2);
}
.b-mail {
  font: 400 clamp(13px, min(1.32vw, 2.2vh), 22px)/1 var(--mono); padding: 1.05em 1.35em;
  border-radius: 999px; border: 1px solid var(--fg); background: var(--bg); color: var(--fg);
  transition: background .3s, color .3s;
}
.b-mail:hover { background: var(--fg); color: var(--bg); }
.b-time {
  font-family: var(--serif); font-style: italic; font-size: clamp(22px, min(2.7vw, 4.3vh), 46px); letter-spacing: -.01em;
  padding: .32em .85em .4em; border-radius: 999px; border: 1px dashed rgba(255, 255, 255, .45); background: var(--bg);
}
.b-time b { font-family: var(--sans); font-style: normal; font-weight: 500; letter-spacing: -.05em; }
.b-chip {
  font: 400 clamp(11px, min(.95vw, 1.6vh), 14px)/1 var(--mono); letter-spacing: .09em; text-transform: uppercase;
  padding: .95em 1.3em; border-radius: 999px; border: 1px solid var(--line-2); color: var(--fg-2); background: var(--bg-2);
}
.b-dot { width: clamp(40px, min(5.2vw, 8vh), 88px); aspect-ratio: 1; border-radius: 50%; background: var(--fg); }
.b-ring { width: clamp(46px, min(6vw, 9vh), 104px); aspect-ratio: 1; border-radius: 50%; border: 1.5px solid var(--fg); }
.b-star { width: clamp(44px, min(5.4vw, 8.4vh), 92px); aspect-ratio: 1; border-radius: 50%; background: var(--bg-3); border: 1px solid var(--line-2); font-size: clamp(20px, 2.4vw, 40px); }
.b-sq { width: clamp(38px, min(4.6vw, 7vh), 78px); aspect-ratio: 1; border-radius: 14px; background: #2b2b2b; }

/* fallback estático (sem física / reduced motion) */
.drop.static {
  position: relative; inset: auto; order: 3; display: flex; flex-wrap: wrap; align-content: flex-end; justify-content: center;
  gap: 10px; padding: 32px 0; overflow: visible;
}
.drop.static .b { position: static; visibility: visible; }
.drop.static .b:nth-child(3n) { transform: rotate(-4deg); }
.drop.static .b:nth-child(3n+1) { transform: rotate(3deg); }
.hero.is-static .hero-space { display: none; }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; border-bottom: 1px solid var(--line); padding: clamp(18px, 2.4vw, 32px) 0; }
.marquee-track { display: flex; width: max-content; will-change: transform; }
.marquee-track span {
  display: inline-flex; align-items: center; gap: clamp(24px, 3vw, 48px); padding-right: clamp(24px, 3vw, 48px);
  font-size: clamp(40px, 6.4vw, 108px); font-weight: 500; letter-spacing: -.055em; line-height: 1; white-space: nowrap;
}
.marquee-track span::after { content: "✦"; font-size: .4em; color: var(--muted); }
.marquee-track .o { color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .55); font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; }

/* ---------- manifesto ---------- */
.manifesto { padding-top: clamp(96px, 13vw, 200px); padding-bottom: clamp(80px, 10vw, 160px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 32px; }
.manifesto .label { padding-top: .8em; }
.manifesto-text { font-size: clamp(30px, 4.3vw, 72px); font-weight: 400; line-height: 1.04; letter-spacing: -.045em; }
.principles { grid-column: 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(48px, 6vw, 96px); border-top: 1px solid var(--line); }
.principle { padding: 24px 22px 0 0; }
.principle + .principle { padding-left: 22px; border-left: 1px solid var(--line); }
.principle span { font: 400 11px/1 var(--mono); color: var(--muted); letter-spacing: .08em; }
.principle h3 { margin: 40px 0 12px; font-size: 19px; font-weight: 500; letter-spacing: -.03em; }
.principle p { color: var(--muted); font-size: 14px; line-height: 1.6; }

/* ---------- selecionados / rows ---------- */
.selected { padding-bottom: clamp(80px, 10vw, 160px); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(40px, 5vw, 72px); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; padding-bottom: 6px; border-bottom: 1px solid var(--line-2); transition: border-color .3s; }
.link-arrow:hover { border-color: var(--fg); }
.link-arrow sup { font: 400 11px/1 var(--mono); color: var(--muted); }

.rows { border-top: 1px solid var(--line); }
.row {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: 64px minmax(0, 1.25fr) minmax(0, 1fr) 150px 44px; align-items: center; gap: 24px;
  padding: clamp(20px, 2.5vw, 36px) 0; border-bottom: 1px solid var(--line);
  transition: color .5s var(--ease), padding .6s var(--ease);
}
.row::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--fg);
  transform: scaleY(0); transform-origin: 50% 100%; transition: transform .6s var(--ease);
}
.row-num, .row-year { font: 400 12px/1 var(--mono); letter-spacing: .06em; color: var(--muted); transition: color .5s; }
.row-title { font-size: clamp(30px, 4.6vw, 80px); font-weight: 500; letter-spacing: -.055em; line-height: .95; transition: transform .7s var(--ease); }
.row-kind { font-size: 15px; color: var(--fg-2); transition: color .5s; }
.row-year { white-space: nowrap; text-align: right; }
[data-rows="work"] .row-title { font-size: clamp(30px, 4vw, 64px); }
.row-arrow { justify-self: end; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); transition: border-color .5s, background .5s, color .5s; }
.row-arrow i, .links .l-a i { font-style: normal; display: block; transform: rotate(-45deg); transition: transform .7s var(--ease); }
@media (hover: hover) {
  .row:hover { color: var(--bg); padding-inline: 20px; }
  .row:hover::before { transform: scaleY(1); }
  .row:hover .row-title { transform: translateX(14px); }
  .row:hover .row-num, .row:hover .row-year, .row:hover .row-kind { color: #555; }
  .row:hover .row-arrow i, .links a:hover .l-a i { transform: rotate(0deg); }
  .row:hover .row-arrow { background: var(--bg); color: var(--fg); border-color: var(--bg); }
}

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.chip { padding: 7px 11px; border: 1px solid var(--line-2); border-radius: 999px; font: 400 11px/1 var(--mono); letter-spacing: .04em; color: var(--fg-2); }

/* ---------- experiência ---------- */
.strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.strip > div { padding: clamp(24px, 3vw, 44px) 24px clamp(24px, 3vw, 44px) 0; display: flex; flex-direction: column-reverse; gap: 14px; }
.strip > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.strip dt { font: 400 11px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.strip dd { font-size: clamp(56px, 7vw, 120px); }

.tl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 110px); padding-block: clamp(72px, 9vw, 140px); }
.tl-h { display: flex; align-items: baseline; gap: 14px; font-size: clamp(32px, 3.6vw, 60px); font-weight: 500; letter-spacing: -.05em; margin-bottom: 36px; }
.tl-h span { font: 400 12px/1 var(--mono); color: var(--muted); letter-spacing: .08em; }
.tl-list { position: relative; padding-left: 36px; }
.tl-list::before, .tl-line { content: ""; position: absolute; left: 5px; top: 10px; bottom: 10px; width: 1px; background: var(--line); }
.tl-line { background: var(--fg); transform-origin: 50% 0; transform: scaleY(0); }
.tl-item { position: relative; padding-bottom: 48px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot { position: absolute; left: -36px; top: 6px; width: 11px; height: 11px; border-radius: 50%; border: 1px solid var(--fg); background: var(--bg); }
.tl-dot::after { content: ""; position: absolute; inset: 2px; border-radius: 50%; background: var(--fg); transform: scale(var(--dot, 0)); transition: transform .6s var(--ease); }
.tl-item.lit .tl-dot::after { --dot: 1; }
.tl-when { font: 400 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tl-item h3 { margin-top: 14px; font-size: clamp(26px, 2.6vw, 42px); font-weight: 500; letter-spacing: -.045em; line-height: 1; }
.tl-role { margin-top: 8px; font-family: var(--serif); font-style: italic; font-size: clamp(18px, 1.6vw, 24px); color: var(--fg-2); }
.tl-desc { margin-top: 14px; max-width: 48ch; color: var(--muted); font-size: 15px; line-height: 1.65; }
.tl-links { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.tl-links a { display: inline-flex; align-items: center; gap: 6px; font: 400 12px/1 var(--mono); letter-spacing: .06em; color: var(--fg-2); padding-bottom: 4px; border-bottom: 1px solid var(--line); transition: color .3s, border-color .3s; }
.tl-links a:hover { color: var(--fg); border-color: var(--fg); }
.tl-links a i { font-style: normal; transition: transform .4s var(--ease); }
.tl-links a:hover i { transform: translate(2px, -2px); }
.tl-jobs { margin-top: 22px; max-width: 52ch; list-style: none; padding: 0; border-top: 1px solid var(--line); }
.tl-jobs li { border-bottom: 1px solid var(--line); }
.tl-job { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; padding: 18px 0 18px 0; transition: padding .5s var(--ease); }
.tl-job::before { content: ""; position: absolute; left: 0; top: 50%; width: 10px; height: 1px; background: var(--fg); transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s var(--ease); }
a.tl-job:hover { padding-left: 20px; }
a.tl-job:hover::before { transform: scaleX(1); }
.tl-jobs-when { grid-column: 1 / -1; font: 400 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tl-jobs-name { font-size: 20px; font-weight: 500; letter-spacing: -.03em; color: var(--fg); }
.tl-jobs-name i { font-style: normal; font-size: 14px; color: var(--muted); display: inline-block; transition: transform .4s var(--ease), color .3s; }
a.tl-job:hover .tl-jobs-name i { transform: translate(2px, -2px); color: var(--fg); }
.tl-jobs-url { align-self: center; font: 400 11px/1 var(--mono); letter-spacing: .06em; color: var(--muted); }
.tl-jobs-tag { align-self: center; font: 400 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: 5px 9px; }
.tl-job.is-off .tl-jobs-name { color: var(--fg-2); text-decoration: line-through; text-decoration-color: var(--muted); text-decoration-thickness: 1px; }
.tl-jobs-desc { grid-column: 1 / -1; color: var(--muted); font-size: 14px; line-height: 1.6; }
@media (max-width: 560px) { .tl-jobs-url { display: none; } }

.tools { padding-bottom: clamp(80px, 10vw, 160px); }
.tools-list { display: flex; flex-wrap: wrap; gap: 0 clamp(16px, 2.2vw, 36px); margin-top: 32px; }
.tools-list li {
  font-size: clamp(34px, 5.4vw, 92px); font-weight: 500; letter-spacing: -.055em; line-height: 1.08;
  color: rgba(255, 255, 255, .22); transition: color .4s;
}
.tools-list li:nth-child(even) { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; }
.tools-list li:hover { color: var(--fg); }

/* ---------- contato ---------- */
.contact { padding-top: calc(var(--hdr) + clamp(48px, 9vw, 120px)); padding-bottom: clamp(64px, 8vw, 120px); }
.contact .lead { margin-top: clamp(28px, 3vw, 44px); }
.mail {
  display: block; width: fit-content; max-width: 100%; margin-top: clamp(48px, 7vw, 110px);
  font-size: min(6.2vw, 116px); font-weight: 400; letter-spacing: -.05em; line-height: 1.1;
  overflow-wrap: anywhere; border-bottom: 1px solid var(--line-2); padding-bottom: .08em;
  transition: border-color .4s;
}
.mail:hover { border-color: var(--fg); }
.mail { position: relative; }
.mail .w { overflow: visible; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.links { margin-top: clamp(64px, 8vw, 120px); border-top: 1px solid var(--line); }
.links a {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto 44px; align-items: center; gap: 20px;
  padding: clamp(18px, 2vw, 28px) 0; border-bottom: 1px solid var(--line);
  transition: color .5s var(--ease), padding .6s var(--ease);
}
.links a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--fg); transform: scaleY(0); transform-origin: 50% 100%; transition: transform .6s var(--ease); }
.links .l-n, .links .l-v { font: 400 12px/1 var(--mono); letter-spacing: .06em; color: var(--muted); transition: color .5s; }
.links .l-t { font-size: clamp(28px, 3.6vw, 60px); font-weight: 500; letter-spacing: -.05em; line-height: 1; }
.links .l-a { justify-self: end; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); transition: background .5s, color .5s, border-color .5s; }
@media (hover: hover) {
  .links a:hover { color: var(--bg); padding-inline: 20px; }
  .links a:hover::before { transform: scaleY(1); }
  .links a:hover .l-n, .links a:hover .l-v { color: #555; }
  .links a:hover .l-a { background: var(--bg); color: var(--fg); border-color: var(--bg); }
}
.contact-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(48px, 6vw, 88px); }
.contact-meta > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.contact-meta dt { font: 400 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.contact-meta dd { font-size: 17px; letter-spacing: -.02em; }

/* ---------- CTA + rodapé ---------- */
.cta { padding-block: clamp(80px, 11vw, 180px) clamp(56px, 7vw, 110px); border-top: 1px solid var(--line); }
.cta[hidden] { display: none; }
.cta-link { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-top: 24px; }
.cta-text { font-size: clamp(48px, 9.6vw, 170px); font-weight: 500; letter-spacing: -.065em; line-height: .9; }
.cta-circle {
  flex: none; display: grid; place-items: center; width: clamp(72px, 10vw, 168px); aspect-ratio: 1; border-radius: 50%;
  border: 1px solid var(--line-2); font-size: clamp(24px, 3vw, 48px); transition: background .6s var(--ease), color .6s, transform .8s var(--ease), border-color .6s;
}
@media (hover: hover) { .cta-link:hover .cta-circle { background: var(--fg); color: var(--bg); border-color: var(--fg); transform: rotate(-45deg); } }
.foot {
  display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; flex-wrap: wrap;
  padding-block: 28px calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line);
  font: 400 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.foot-links { display: flex; gap: 20px; }
.foot a, .foot button { transition: color .3s; }
.foot a:hover, .foot button:hover { color: var(--fg); }
.foot-top { font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 260; padding: 14px 20px; border-radius: 999px;
  background: var(--fg); color: var(--bg); font: 400 13px/1 var(--mono); letter-spacing: .04em;
  transform: translate(-50%, 260%); opacity: 0; pointer-events: none;
}
.noscript { position: fixed; inset: 0; z-index: 500; display: grid; place-content: center; gap: 12px; padding: 24px; background: var(--bg); text-align: center; font-size: 18px; }
.noscript a { text-decoration: underline; }

/* ---------- timeline → estudo de caso ---------- */
.tl-case { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 10px 16px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13px; color: var(--fg); transition: background .4s, color .4s, border-color .4s; }
.tl-case i { font-style: normal; display: inline-block; transition: transform .5s var(--ease); }
.tl-case:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.tl-case:hover i { transform: translateX(4px); }
.tl-jobs-url.is-case { color: var(--fg-2); }
a.tl-job:hover .tl-jobs-url.is-case { color: var(--fg); }
.row.is-off { cursor: default; }
.row.is-off .row-title { color: var(--fg-2); text-decoration: line-through; text-decoration-thickness: 1px; text-decoration-color: var(--muted); }
.row.is-off::before { display: none; }

/* ---------- estudo de caso ---------- */
.cs { padding-top: calc(var(--hdr) + clamp(32px, 6vw, 80px)); }
.cs-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.cs-back { display: inline-flex; align-items: center; gap: 10px; font: 400 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-2); }
.cs-back span:first-child { display: inline-block; transition: transform .5s var(--ease); }
.cs-back:hover { color: var(--fg); }
.cs-back:hover span:first-child { transform: translateX(-6px); }
.cs-kicker { display: inline-flex; align-items: center; gap: 10px; font: 400 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-2); }
.cs-when { margin-top: clamp(40px, 6vw, 88px); font: 400 12px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cs .display { margin-top: 18px; }
.strip.cs-metrics { margin-top: clamp(40px, 5vw, 72px); grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); }
.strip.cs-metrics dd { font-size: clamp(48px, 6vw, 104px); }

.cs-sec { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 32px; padding-top: clamp(72px, 9vw, 140px); }
.cs-sec > .label { padding-top: .5em; }
.cs-sec-wide { grid-template-columns: 1fr; gap: 28px; }
.cs-intro { font-size: clamp(24px, 3vw, 46px); line-height: 1.16; letter-spacing: -.035em; }
.cs-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }

/* o que eu fiz */
.cs-did { list-style: none; padding: 0; border-top: 1px solid var(--line); counter-reset: did; }
.cs-did-item { display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); position: relative; }
.cs-did-item::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--fg); transform: scaleX(0); transform-origin: 0 50%; transition: transform .9s var(--ease); }
.cs-did-item:hover::after { transform: scaleX(1); }
.cs-did-n { font: 400 12px/1.8 var(--mono); color: var(--muted); }
.cs-did-item h3 { font-size: clamp(20px, 1.9vw, 30px); font-weight: 500; letter-spacing: -.035em; line-height: 1.12; transition: transform .6s var(--ease); }
.cs-did-item:hover h3 { transform: translateX(8px); }
.cs-did-item p { color: var(--fg-2); font-size: 15px; line-height: 1.65; }

/* arquitetura */
.cs-arch { display: flex; align-items: stretch; padding: clamp(20px, 3vw, 40px); border: 1px solid var(--line); border-radius: clamp(16px, 2vw, 28px); background:
  radial-gradient(circle, rgba(255,255,255,.07) 1px, transparent 1.4px) 0 0 / 22px 22px, var(--bg-2); overflow: hidden; }
.cs-col { flex: 1 1 0; min-width: 0; transform: translateY(var(--py, 0px)); }
.cs-col-h { display: flex; align-items: baseline; gap: 10px; font: 400 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--fg-2); padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i) * .22s); }
.cs-col-h span { color: var(--muted); }
.cs-col ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.cs-col li { padding: 13px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg); font-size: 14px; letter-spacing: -.01em; color: var(--fg); opacity: 0; transform: translateY(18px) scale(.96); transition: opacity .8s var(--ease), transform .8s var(--ease), border-color .4s, background .4s, color .4s; transition-delay: calc(var(--i) * .22s + var(--k) * .08s + .1s); }
.cs-col li:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); transition-delay: 0s; }
.cs-link { position: relative; flex: 0 0 clamp(28px, 4vw, 64px); align-self: center; height: 1px; }
.cs-link::before { content: ""; position: absolute; inset: 0; background: var(--fg-2); transform: scaleX(0); transform-origin: 0 50%; transition: transform .7s var(--ease-io); transition-delay: calc(var(--i) * .22s - .05s); }
.cs-link::after { content: ""; position: absolute; right: -1px; top: -3px; border: 3.5px solid transparent; border-left: 6px solid var(--fg-2); border-right: 0; opacity: 0; transition: opacity .3s; transition-delay: calc(var(--i) * .22s + .5s); }
.cs-link i { position: absolute; left: 0; top: -2.5px; width: 6px; height: 6px; border-radius: 50%; background: var(--fg); box-shadow: 0 0 12px rgba(255,255,255,.8); opacity: 0; }
.cs-arch.is-on .cs-col-h, .cs-arch.is-on .cs-col li { opacity: 1; transform: none; }
.cs-arch.is-on .cs-link::before { transform: scaleX(1); }
.cs-arch.is-on .cs-link::after { opacity: 1; }
.cs-arch.is-on .cs-link i { animation: cs-packet 2.4s var(--ease-io) infinite; animation-delay: calc(var(--i) * .35s + 1s); }
@keyframes cs-packet { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 6px); opacity: 0; } }

/* produtos */
.cs-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.cs-card { display: flex; flex-direction: column; gap: 14px; padding: 26px; border: 1px solid var(--line); border-radius: 20px; background: var(--bg-2); transition: border-color .5s, transform .7s var(--ease); }
.cs-card:hover { border-color: var(--line-2); transform: translateY(-4px); }
.cs-card-kind { font: 400 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cs-card h3 { font-size: clamp(24px, 2.2vw, 34px); font-weight: 500; letter-spacing: -.045em; line-height: 1; }
.cs-card-desc { color: var(--fg-2); font-size: 14px; line-height: 1.65; flex: 1; }
.cs-card .chips { margin-top: 0; }
.cs-card-link { align-self: flex-start; display: inline-flex; gap: 6px; font: 400 12px/1 var(--mono); letter-spacing: .06em; color: var(--fg-2); padding-bottom: 4px; border-bottom: 1px solid var(--line); transition: color .3s, border-color .3s; }
a.cs-card-link:hover { color: var(--fg); border-color: var(--fg); }
.cs-card-link.is-off { color: var(--muted); border-bottom-color: transparent; }

.cs-rows .row-title { font-size: clamp(26px, 3.2vw, 52px); }
.cs-stack { margin-top: 0; gap: 8px; }
.cs-stack .chip { font-size: 13px; padding: 10px 15px; }

/* próximo caso */
.cs-next { display: block; margin-top: clamp(96px, 12vw, 180px); padding-block: clamp(56px, 8vw, 120px); border-top: 1px solid var(--line); text-align: center; }
.cs-next .label { display: block; margin-bottom: 18px; }
.cs-next-title { display: inline-block; font-size: clamp(52px, 10vw, 180px); font-weight: 500; letter-spacing: -.065em; line-height: .9; transition: letter-spacing .8s var(--ease); }
@media (hover: hover) { .cs-next:hover .cs-next-title { letter-spacing: -.035em; } }

@media (max-width: 1080px) {
  .cs-did-item { grid-template-columns: 40px minmax(0, 1fr); }
  .cs-did-item p { grid-column: 2; }
  .cs-arch { flex-direction: column; align-items: stretch; }
  .cs-col { transform: none; }
  .cs-link { flex: 0 0 36px; width: 1px; height: auto; align-self: flex-start; margin-left: 20px; }
  .cs-link::before { transform: scaleY(0); transform-origin: 50% 0; }
  .cs-arch.is-on .cs-link::before { transform: scaleY(1); }
  .cs-link::after { right: auto; left: -3px; top: auto; bottom: -1px; border: 3.5px solid transparent; border-top: 6px solid var(--fg-2); border-bottom: 0; }
  .cs-link i { left: -2.5px; top: 0; }
  .cs-arch.is-on .cs-link i { animation-name: cs-packet-v; }
  .cs-col ul { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
@keyframes cs-packet-v { 0% { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: calc(100% - 6px); opacity: 0; } }
@media (max-width: 820px) {
  .cs-sec { grid-template-columns: 1fr; gap: 24px; }
  .strip.cs-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip.cs-metrics > div { border-top: 0; }
  .strip.cs-metrics > div:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
  .strip.cs-metrics > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- responsivo ---------- */
@media (max-width: 1080px) {
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principle:nth-child(3) { padding-left: 0; border-left: 0; }
  .principle:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 28px; }
  .row { grid-template-columns: 48px minmax(0, 1fr) minmax(0, .8fr) 44px; }
  .row-year { display: none; }
}
@media (max-width: 820px) {
  :root { --hdr: 64px; }
  .hdr { grid-template-columns: 1fr auto; }
  .hdr-nav, .hdr-meta { display: none; }
  .hdr-menu { display: inline-flex; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .stat dt { font-size: 10px; }
  .manifesto { grid-template-columns: 1fr; gap: 24px; }
  .principles { grid-column: auto; }
  .row { grid-template-columns: 34px minmax(0, 1fr) 40px; gap: 14px; }
  .row-kind { grid-column: 2; grid-row: 2; font-size: 13px; }
  .row-arrow { grid-column: 3; grid-row: 1 / span 2; width: 38px; height: 38px; }
  .tl { grid-template-columns: 1fr; gap: 80px; }
  .strip { grid-template-columns: 1fr; }
  .strip > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .links a { grid-template-columns: 34px minmax(0, 1fr) 40px; gap: 14px; }
  .links .l-v { grid-column: 2; grid-row: 2; }
  .links .l-a { grid-column: 3; grid-row: 1 / span 2; width: 38px; height: 38px; }
  .guides { grid-template-columns: repeat(2, 1fr); }
  .guides i:nth-child(n+3):not(:last-child) { display: none; }
}
@media (max-width: 560px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .stat dd { font-size: clamp(46px, 15vw, 64px); }
  .hero-hint { left: var(--gutter); right: auto; }
  .redrop .roll { display: none; }
  .principles { grid-template-columns: 1fr; }
  .principle, .principle + .principle { padding: 22px 0 0; border-left: 0; }
  .principle:nth-child(n+2) { border-top: 1px solid var(--line); margin-top: 22px; }
  .principle h3 { margin-top: 18px; }
  .contact-meta { grid-template-columns: 1fr; gap: 18px; }
  .contact-meta > div + div { padding-left: 0; border-left: 0; }
  .contact-actions .btn { width: 100%; }
  .cta-link { flex-direction: column; align-items: flex-start; }
  .foot { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .grain { display: none; }
}

/* casos: sobrescreve .strip responsivo */
@media (max-width: 820px) {
  .cs-sec { grid-template-columns: 1fr; gap: 24px; }
  .strip.cs-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip.cs-metrics > div { border-top: 0; }
  .strip.cs-metrics > div:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
  .strip.cs-metrics > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

@media (max-width: 560px) { .cs .display { font-size: clamp(40px, 13vw, 72px); } .cs-next-title { font-size: clamp(40px, 13vw, 72px); } }
@media (max-width: 560px) { .tl-jobs-url.is-case { display: inline; } }
