@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/inter-tight-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/inter-tight-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/*
 * Suíço silencioso.
 * Uma fonte, preto e um cinzento. A cor vem só das imagens.
 * Leitura em F: menu numa linha, título à esquerda, detalhes à direita;
 * a coluna da esquerda é sempre o "o que é isto" e o olho desce por ela.
 */

:root {
  --bg: #f6f5f3;
  --ink: #141414;
  --grey: #8c8b88;
  --line: #d9d7d3;
  --media: #e5e3de;
  --ok: #3a9d5d;

  --font: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --pad: clamp(16px, 1.8vw, 28px);
  --gap: clamp(16px, 2vw, 32px);
  --section: clamp(104px, 12vw, 184px);

  /* Sempre claro, mesmo com o sistema em modo escuro: a identidade é clara. */
  color-scheme: only light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 1.5px solid var(--ink);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: var(--pad);
  top: 8px;
  z-index: 20;
  padding: 6px 10px;
  background: var(--ink);
  color: var(--bg);
}

.muted {
  color: var(--grey);
}

.u {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--line);
  transition: text-decoration-color 0.15s;
}
.u:hover {
  text-decoration-color: currentColor;
}

main {
  padding-inline: var(--pad);
}

/* ── Cabeçalho ──────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: baseline;
  gap: var(--gap);
  padding: 14px var(--pad);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.brand {
  white-space: nowrap;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 6px;
  color: var(--grey);
}
.nav a {
  transition: color 0.15s;
}
.nav a:hover,
.nav a.active,
.nav a.is-active {
  color: var(--ink);
}
.nav sup {
  font-size: 10px;
  font-weight: 400;
  vertical-align: 6px;
}

.nav-contact {
  position: absolute;
  right: var(--pad);
  top: 14px;
}
.nav-contact:hover {
  color: var(--grey);
}

/* ── Blocos base ────────────────────────────────────── */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px var(--gap);
  align-items: start;
}

.page-top {
  padding-top: clamp(48px, 7vw, 112px);
}

.section {
  padding-top: var(--section);
}
.section-sm {
  padding-top: clamp(64px, 8vw, 120px);
}

.aside {
  display: grid;
  gap: 40px;
  align-content: start;
}

.arrow {
  display: block;
  margin-bottom: 18px;
  font-size: 26px;
  line-height: 1;
  font-weight: 300;
  color: var(--grey);
}

.title {
  font-size: clamp(36px, 4.4vw, 72px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
  text-wrap: pretty;
}
.title em {
  font-style: normal;
  color: inherit; /* numa só cor, a pedido */
}

.lead {
  font-size: clamp(20px, 1.8vw, 27px);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -0.025em;
  text-wrap: pretty;
}

.body-text {
  max-width: 54ch;
  font-size: 15px;
  line-height: 1.5;
}

.indent {
  text-indent: 3.2em;
}

.label {
  font-size: 11px;
  color: var(--grey);
  letter-spacing: 0;
}
.label-strong {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: -28px;
}
.labelled {
  display: grid;
  gap: 6px;
}

/* Cabeçalho de secção: título grande, contador e nota, sobre um filete preto */
.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 24px;
  margin-bottom: clamp(24px, 3vw, 44px);
  padding-bottom: clamp(14px, 1.6vw, 22px);
  border-bottom: 1px solid var(--ink);
}
.section-title {
  font-size: clamp(36px, 4.4vw, 72px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
}
.section-title .muted {
  font-weight: 400;
}
.section-note {
  font-size: 13px;
  color: var(--grey);
}

/* Atalhos para recrutadores na abertura */
.cta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  font-size: 15px;
  font-weight: 500;
}

/* Ficha em colunas (abertura da home) */
.meta-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px var(--gap);
}
.meta-cols dt,
.rows dt {
  font-size: 11px;
  color: var(--grey);
}
.meta-cols dd {
  font-size: 14px;
  margin-top: 2px;
}

.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--ok);
  vertical-align: 1px;
}
.dot.is-off {
  background: var(--grey);
}

/* Linhas rótulo → valor com filetes */
.rows {
  border-top: 1px solid var(--line);
}
.rows > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--gap);
  padding: 9px 0 10px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.rows dt {
  font-size: 14px;
}
.rows dd strong {
  display: block;
  font-weight: 500;
}
.rows dd .muted {
  display: block;
  max-width: 56ch;
  margin-top: 2px;
}
.aside .rows > div {
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
}
.rows-tight > div {
  padding: 5px 0 6px;
  font-size: 13px;
}
.rows-tight dt {
  font-size: 13px;
}

/* ── Trabalho ───────────────────────────────────────── */

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px var(--pad);
}
.work-grid .is-wide {
  grid-column: 1 / -1;
}

.card {
  display: grid;
  gap: 16px;
}
.card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--media);
}
.is-wide .card-media {
  aspect-ratio: 16 / 7;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.card:hover .card-media img {
  transform: scale(1.02);
}

/* Texto do card: título numerado, frase em cinzento, destaques pequenos */
.card-text {
  display: grid;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.card-text > * {
  max-width: 760px;
}
.card-title {
  font-size: clamp(24px, 2.2vw, 34px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.03em;
  transition: color 0.15s;
}
.card-lead {
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.38;
  letter-spacing: -0.01em;
  color: var(--grey);
  text-wrap: pretty;
}
.card:hover .card-title {
  color: var(--grey);
}

/* Trabalho em lista alternada: número e texto de um lado, miniatura do
   outro; o lado da miniatura troca a cada projeto. */
.work-list {
  border-bottom: 1px solid var(--line);
}
.work-list li {
  border-top: 1px solid var(--line);
}
.work-list .card {
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(24px, 4vw, 72px);
  padding: clamp(28px, 3.4vw, 52px) 0;
}
.work-list li:nth-child(even) .card {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr);
}
.work-list li:nth-child(odd) .card-media {
  order: 2;
}
.work-list .card-media {
  aspect-ratio: 4 / 3;
}
.work-list .card-text {
  grid-template-columns: clamp(40px, 5vw, 80px) minmax(0, 1fr);
  gap: 0;
  padding-top: 0;
  border-top: 0;
}
.card-n {
  padding-top: 0.5em;
  font-size: 13px;
  color: var(--grey);
  font-variant-numeric: tabular-nums;
}
.card-body {
  display: grid;
  gap: 14px;
  justify-items: start;
}
.card-meta {
  font-size: 13px;
  color: var(--grey);
}
.work-list .card-title {
  font-size: clamp(30px, 3.2vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.work-list .card-lead {
  max-width: 34ch;
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.card-more {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.card-more span {
  display: inline-block;
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.card:hover .card-more span {
  transform: translateX(6px);
}

/* ── Contacto ───────────────────────────────────────── */

.contact .title {
  font-size: clamp(32px, 3.6vw, 56px);
}

/* ── Projeto ────────────────────────────────────────── */

.hero-media {
  padding-top: var(--pad);
}
.hero-media img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  background: var(--media);
}
.hero-media figcaption {
  margin-top: 8px;
  font-size: 12px;
}

.project-head {
  padding-top: clamp(32px, 4vw, 56px);
}

/* Página de projeto: de cima para baixo, sem nada fixo ao lado */
.case-top {
  display: grid;
  gap: clamp(16px, 2vw, 28px);
  padding-top: clamp(40px, 5vw, 80px);
}
.case-meta-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: var(--grey);
}
.case-meta-line a {
  color: var(--ink);
}
.case-name {
  font-size: clamp(52px, 8.4vw, 150px);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.055em;
  text-wrap: balance;
}
.case-headline {
  max-width: 30ch;
  font-size: clamp(22px, 2.4vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--grey);
  text-wrap: pretty;
}
/* Ficha numa linha (passa a várias no celular) */
.case-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px var(--gap);
  margin-top: clamp(16px, 2.4vw, 40px);
  padding-top: 12px;
  border-top: 1px solid var(--ink);
  font-size: 15px;
}
.case-strip dt {
  margin-bottom: 4px;
  font-size: 12px;
  color: var(--grey);
}
.case-cover-wide {
  margin-top: clamp(40px, 5vw, 80px);
  aspect-ratio: 16 / 8;
  overflow: hidden;
  background: var(--media);
}
.case-cover-wide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Em 30 segundos */
.case-intro {
  display: grid;
  gap: 16px;
  max-width: 1100px;
  padding-top: var(--section);
}
.case-intro-text {
  max-width: 36ch;
  font-size: clamp(26px, 3vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.035em;
  text-wrap: pretty;
}
.case-intro-sub {
  max-width: 56ch;
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.5;
  color: var(--grey);
}

/* Capítulos: número grande, título enorme, texto numa coluna larga */
.chapter {
  display: grid;
  gap: clamp(20px, 2.4vw, 36px);
  padding-top: var(--section);
  scroll-margin-top: 80px;
}
.chapter-head {
  display: flex;
  align-items: baseline;
  gap: clamp(14px, 2vw, 32px);
  padding-top: 16px;
  border-top: 1px solid var(--ink);
}
.chapter-n {
  font-size: clamp(56px, 8vw, 140px);
  font-weight: 400;
  line-height: 0.85;
  letter-spacing: -0.06em;
  color: var(--grey);
  font-variant-numeric: tabular-nums;
}
.chapter-title {
  font-size: clamp(36px, 5vw, 88px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.05em;
}
.chapter-body {
  display: grid;
  gap: 20px;
  max-width: 64ch;
  margin-left: auto;
  margin-right: clamp(0px, 8vw, 160px);
}
.chapter-lead {
  font-size: clamp(20px, 1.9vw, 30px);
  line-height: 1.3;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}
.chapter-points {
  display: grid;
  gap: 6px;
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.5;
  color: var(--grey);
}
.chapter-points li {
  position: relative;
  padding-left: 18px;
}
.chapter-points li::before {
  content: "–";
  position: absolute;
  left: 0;
}
.chapter-media {
  margin-top: clamp(16px, 2vw, 32px);
  background: var(--media);
  overflow: hidden;
}
.chapter-media img {
  width: 100%;
}

/* Secções do case: título numerado, abertura em cinzento, provas pequenas */
.case-secs {
  display: grid;
  gap: clamp(48px, 5vw, 72px);
  padding-top: clamp(64px, 8vw, 120px);
}
.case-sec {
  display: grid;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.case-sec > :not(.case-sec-media) {
  max-width: 760px;
}
.case-sec-title {
  font-size: clamp(26px, 2.4vw, 36px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.case-sec-lead {
  font-size: clamp(18px, 1.45vw, 21px);
  line-height: 1.38;
  letter-spacing: -0.01em;
  color: var(--grey);
  text-wrap: pretty;
}
.case-sec-points {
  display: grid;
  gap: 2px;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.6;
}
.case-sec-points li {
  position: relative;
  padding-left: 14px;
}
.case-sec-points li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--grey);
}
.case-sec-media {
  margin-top: 16px;
  background: var(--media);
}
.case-sec-media img {
  width: 100%;
}

/* Texto do editor (Sobre e texto extra do projeto): ## fica na coluna da esquerda, alinhado com o
   primeiro parágrafo; o texto corre na coluna da direita. */
.prose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: var(--gap);
  padding-top: clamp(64px, 8vw, 120px);
  font-size: 16px;
  line-height: 1.55;
}
.prose > * {
  grid-column: 2;
  max-width: 60ch;
  margin-bottom: 1em;
}
.prose > h2 {
  grid-column: 1;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.4;
}
.prose > h2,
.prose > h2 + * {
  margin-top: clamp(48px, 5vw, 80px);
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.prose > h2:first-child,
.prose > h2:first-child + * {
  margin-top: 0;
}
.prose > h3 {
  font-size: 16px;
  font-weight: 500;
  margin-top: 1.4em;
}
.prose > blockquote {
  margin: 0.6em 0 1.4em;
  font-size: clamp(20px, 1.8vw, 27px);
  line-height: 1.22;
  letter-spacing: -0.025em;
}
.prose > blockquote p {
  margin: 0;
}
.prose > p:has(> img:only-child) {
  grid-column: 1 / -1;
  max-width: none;
  margin-block: 1.2em 2em;
}
.prose img {
  width: 100%;
  background: var(--media);
}
.prose ul,
.prose ol {
  display: grid;
  gap: 4px;
}
.prose ul li {
  position: relative;
  padding-left: 16px;
}
.prose ul li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--grey);
}
.prose ol {
  list-style: decimal;
  padding-left: 1.2em;
}
.prose a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.prose strong {
  font-weight: 500;
}
.prose hr {
  grid-column: 1 / -1;
  max-width: none;
  border: 0;
  border-top: 1px solid var(--line);
}

.next {
  margin-top: var(--section);
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.next-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  gap: 6px var(--gap);
}
.next-link .label {
  grid-column: 1;
}
.next-title {
  grid-column: 1;
  font-size: clamp(28px, 3vw, 48px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}
.next-media {
  display: block;
  grid-column: 2;
  grid-row: 1 / span 2;
  overflow: hidden;
  background: var(--media);
}
.next-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.next-link:hover .next-title {
  color: var(--grey);
}

/* ── Sobre ──────────────────────────────────────────── */

.portrait {
  aspect-ratio: 4 / 5;
  max-width: 520px;
  background: var(--media);
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Sobre: retrato fixo à esquerda, história à direita ── */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: clamp(32px, 5vw, 96px);
  padding-top: clamp(40px, 5vw, 80px);
}
.about-portrait {
  position: sticky;
  top: 80px;
  align-self: start;
}
.about-portrait .portrait {
  position: relative;
  width: 100%;
  max-width: none;
  max-height: calc(100svh - 110px);
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.portrait-initials {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  font-size: clamp(96px, 14vw, 240px);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: color-mix(in srgb, var(--grey) 45%, var(--media));
}

.about-main {
  display: grid;
  gap: clamp(64px, 7vw, 120px);
  min-width: 0;
}
.about-head {
  display: grid;
  gap: 18px;
}
.about-name {
  font-size: clamp(44px, 5.6vw, 96px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.05em;
}
.about-role {
  font-size: 15px;
  color: var(--grey);
}
.about-head .lead {
  max-width: 34ch;
  margin-top: 10px;
}

/* Texto da página: cada ## é um título de secção grande */
.about-prose > h2 {
  margin-top: clamp(48px, 5vw, 80px);
  padding-top: 16px;
  border-top: 1px solid var(--ink);
  font-size: clamp(28px, 2.8vw, 44px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.about-prose > h2:first-child {
  margin-top: 0;
}
.about-prose > p,
.about-prose > ul {
  max-width: 60ch;
  margin-top: 1em;
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.55;
  letter-spacing: -0.01em;
}
.about-prose > h2 + p {
  margin-top: 22px;
}
.about-prose ul {
  display: grid;
  gap: 6px;
}
.about-prose ul li {
  position: relative;
  padding-left: 20px;
}
.about-prose ul li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--grey);
}
.about-prose strong {
  font-weight: 500;
}

/* Experiência e Abordagem dentro da coluna */
.about-main .section-title {
  font-size: clamp(32px, 3.4vw, 56px);
}
.about-xp li {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 6px var(--gap);
  padding: 18px 0 20px;
  border-bottom: 1px solid var(--line);
}
.about-xp-period {
  font-size: 15px;
  color: var(--grey);
  font-variant-numeric: tabular-nums;
}
.about-xp-role {
  font-size: clamp(20px, 1.8vw, 28px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.about-xp-company {
  margin-top: 4px;
  font-size: 14px;
  color: var(--grey);
}
.about-xp-text {
  max-width: 54ch;
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--grey);
}
.about-main .pr-row {
  grid-template-columns: 48px minmax(0, 1fr);
}
.about-main .pr-text {
  grid-column: 2;
}
.about-main .pr-title {
  font-size: clamp(22px, 2vw, 32px);
}

/* ── Rodapé = contacto: faixa em movimento ─────────── */

.site-footer {
  --fg: #f6f5f3;
  --fg-dim: #8c8b88;
  --fg-line: #2e2e2d;
  margin-top: var(--section);
  padding-top: clamp(72px, 9vw, 140px);
  background: #111;
  color: var(--fg);
}

/* Faixa: a frase corre devagar da direita para a esquerda, sem emenda
   (4 cópias, a animação anda metade da largura). Para com o rato por cima. */
.ticker {
  overflow: hidden;
  border-block: 1px solid var(--fg-line);
  padding-block: clamp(10px, 1.4vw, 20px);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: tt-ticker 80s linear infinite;
}
.ticker:hover .ticker-track {
  animation-play-state: paused;
}
.ticker-track span {
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: clamp(80px, 15vw, 260px);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.05em;
}
@keyframes tt-ticker {
  to {
    transform: translateX(-50%);
  }
}

.footer-inner {
  padding: 0 var(--pad) clamp(28px, 3vw, 40px);
}

.footer-cta {
  max-width: 18ch;
  margin-bottom: clamp(20px, 2.4vw, 36px);
  font-size: clamp(36px, 4.4vw, 72px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
}
.footer-cta em {
  font-style: normal;
  color: inherit;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px var(--gap);
  margin-top: clamp(56px, 7vw, 112px);
}
.footer-label {
  margin-bottom: 8px;
  font-size: 11px;
  color: var(--fg-dim);
}
.footer-cols ul {
  display: grid;
  gap: 6px;
  font-size: clamp(16px, 1.3vw, 19px);
  letter-spacing: -0.01em;
}
.footer-mail {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  font-size: clamp(22px, 2.6vw, 42px);
  letter-spacing: -0.03em;
}
.footer-mail a {
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: var(--fg-line);
}
.footer-copy {
  appearance: none;
  border: 0;
  padding: 0;
  background: none;
  color: var(--fg-dim);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.footer-cols a:hover,
.footer-copy:hover,
.footer-bottom a:hover {
  color: var(--fg-dim);
}
.footer-mail a:hover {
  text-decoration-color: currentColor;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(56px, 7vw, 96px);
  padding-top: 12px;
  border-top: 1px solid var(--fg-line);
  font-size: 12px;
  color: var(--fg-dim);
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation: none;
  }
}

/* ── Sofisticação: movimento, abertura, faixa, galeria ── */

/* Transições entre páginas (nativas do navegador). A capa do card e a capa
   do projeto têm o mesmo view-transition-name, por isso a imagem "voa". */
@view-transition {
  navigation: auto;
}
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.45s;
  animation-timing-function: cubic-bezier(0.2, 0.7, 0.2, 1);
}
::view-transition-group(*) {
  animation-duration: 0.7s;
  animation-timing-function: cubic-bezier(0.7, 0, 0.2, 1);
}

/* Cabeçalho: esconde ao descer */
.site-header {
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.site-header.is-hidden {
  transform: translateY(-100%);
}

/* Títulos palavra a palavra */
.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}
.wi {
  display: inline-block;
}
/* Cada palavra é um inline-block: sem isto, o recuo da 1ª linha (.indent)
   repetia-se em todas as palavras e espalhava o texto. */
.w,
.wi {
  text-indent: 0;
}
html.js .is-split .wi {
  transform: translateY(110%);
  transition: transform 1s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(min(var(--i, 0), 24) * 28ms);
}
html.js .is-split.is-in .wi {
  transform: none;
}

/* Texto e linhas: sobem e aparecem */
html.js .rv {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(min(var(--d, 0), 10) * 60ms);
}
html.js .rv.is-in {
  opacity: 1;
  transform: none;
}

/* Imagens: abrem de baixo para cima, com a foto a assentar */
html.js .rv-img {
  clip-path: inset(18% 0 0 0);
  transition: clip-path 1.2s cubic-bezier(0.7, 0, 0.2, 1);
}
html.js .rv-img img {
  transform: scale(1.12);
  transition: transform 1.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
html.js .rv-img.is-in {
  clip-path: inset(0 0 0 0);
}
html.js .rv-img.is-in img {
  transform: none;
}
html.js .card:hover .rv-img.is-in img {
  transform: scale(1.02);
}

/* Se o script falhar, nada fica escondido */
html.reveal-all .wi,
html.reveal-all .rv,
html.reveal-all .rv-img,
html.reveal-all .rv-img img {
  opacity: 1 !important;
  transform: none !important;
  clip-path: none !important;
}

/* Mídia da abertura, por baixo do título */
/* Título da abertura em largura total */
.hero-head .title {
  font-size: clamp(40px, 6.2vw, 112px);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

/* Perfil centrado entre a mídia da abertura e o Trabalho */
.intro-block {
  display: grid;
  justify-items: center;
  gap: 22px;
  padding-top: var(--section);
  text-align: center;
}
.intro-text {
  max-width: 34ch;
  font-size: clamp(30px, calc(2.4vw + 8px), 46px); /* +8 px a pedido */
  line-height: 1.25;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.intro-block .cta-links {
  justify-content: center;
  margin-top: 6px;
}
.hero-visual {
  position: relative;
  margin-top: clamp(48px, 6vw, 96px);
  aspect-ratio: 16 / 8;
  overflow: hidden;
  background: var(--media);
}
.hero-visual video,
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(calc(1.08 - var(--p, 0) * 0.08));
}
/* Aqui o "assentar" ligado ao scroll manda; a revelação só faz o recorte. */
html.js .hero-visual.rv-img img,
html.js .hero-visual.rv-img.is-in img,
html.js .hero-visual.rv-img video {
  transform: scale(calc(1.08 - var(--p, 0) * 0.08));
  transition: none;
}
.hero-draft {
  display: grid;
  place-content: center;
  height: 100%;
  padding: 24px;
  text-align: center;
  font-size: 15px;
  color: var(--grey);
}
.hero-draft small {
  display: block;
  max-width: 44ch;
  margin-top: 6px;
  font-size: 12px;
}

/* Galeria horizontal do projeto */
.gallery {
  margin: clamp(64px, 8vw, 120px) calc(var(--pad) * -1) 0;
  overflow: hidden;
}
.gallery-track {
  display: flex;
  gap: var(--pad);
  width: max-content;
  padding-inline: var(--pad);
  will-change: transform;
}
.gallery-item {
  flex: 0 0 auto;
  height: min(70vh, 720px);
  background: var(--media);
  overflow: hidden;
}
.gallery-item img {
  width: auto;
  height: 100%;
  max-width: none;
}

/* ── Secções em lista: Experiência, Abordagem, Competências, FAQ ── */

/* Experiência: cargo grande, período, descrição e linha do tempo */
.xp-row {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 0.8fr) minmax(0, 1.6fr) minmax(0, 1.2fr);
  align-items: baseline;
  gap: 10px var(--gap);
  padding: clamp(22px, 2.6vw, 36px) 0 clamp(30px, 3.4vw, 48px);
  border-bottom: 1px solid var(--line);
}
.xp-n,
.pr-n {
  font-size: 13px;
  color: var(--grey);
}
.xp-period {
  font-size: clamp(18px, 1.5vw, 24px);
  letter-spacing: -0.02em;
  color: var(--grey);
  font-variant-numeric: tabular-nums;
}
.xp-role {
  font-size: clamp(24px, 2.5vw, 40px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.xp-company {
  margin-top: 8px;
  font-size: 15px;
  color: var(--grey);
}
.xp-text,
.pr-text {
  max-width: 48ch;
  font-size: 16px;
  line-height: 1.5;
  color: var(--grey);
}
/* Barra: a fatia dos anos que o cargo ocupa no total */
.xp-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  height: 3px;
  background: color-mix(in srgb, var(--line) 55%, transparent);
}
.xp-bar i {
  position: absolute;
  inset: 0 auto 0 var(--from);
  width: var(--width);
  background: var(--ink);
  transform-origin: left center;
}
html.js .xp-bar i {
  transform: scaleX(0);
  transition: transform 1.4s cubic-bezier(0.7, 0, 0.2, 1) 0.25s;
}
html.js .xp-row.is-in .xp-bar i,
html.reveal-all .xp-bar i {
  transform: none;
}

/* Abordagem: número, título grande, texto ao lado */
.pr-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: baseline;
  gap: 10px var(--gap);
  padding: clamp(22px, 2.6vw, 36px) 0;
  border-bottom: 1px solid var(--line);
}
.pr-title {
  font-size: clamp(26px, 2.8vw, 46px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

/* Depoimentos em duas colunas */
.tm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(36px, 4vw, 64px) var(--gap);
}
.tm {
  display: grid;
  align-content: start;
  gap: 14px;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.tm-role {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--grey);
}
.tm-quote {
  margin: 0;
  max-width: 34ch;
  font-size: clamp(20px, 1.9vw, 30px);
  line-height: 1.25;
  letter-spacing: -0.025em;
  text-wrap: pretty;
}
.tm-quote p {
  margin: 0;
  text-indent: -0.4em; /* a aspa de abertura fica pendurada na margem */
}
.tm-name {
  font-size: 15px;
  font-weight: 500;
}

/* Competências como índice corrido: um só bloco de texto grande */
.skills-index {
  font-size: clamp(26px, 3.2vw, 52px);
  line-height: 1.2;
  letter-spacing: -0.035em;
  text-wrap: pretty;
}
.skills-index dd {
  display: inline;
}
.skills-index .nw {
  white-space: nowrap;
}
.skills-index .lbl {
  position: relative;
  top: -1.2em;
  margin: 0 0.35em 0 0.2em;
  font-size: 13px;
  letter-spacing: 0;
  color: var(--grey);
}
.skills-index dd:first-of-type .lbl {
  margin-left: 0;
}
.skills-index .it {
  white-space: normal;
}
.skills-index .nw + .it::before,
.skills-index .it + .it::before {
  content: " / ";
  color: var(--grey);
}
.skills-index dd::after {
  content: " ";
}

/* Perguntas frequentes: pergunta grande, resposta ao lado */
.faq-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: baseline;
  gap: 10px var(--gap);
  padding: clamp(20px, 2.4vw, 32px) 0;
  border-bottom: 1px solid var(--line);
}
.faq-row dt {
  max-width: 24ch;
  font-size: clamp(20px, 1.9vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.faq-row dd {
  max-width: 58ch;
  font-size: 16px;
  line-height: 1.55;
  color: var(--grey);
}

/* Rótulo que segue o rato sobre os projetos */
.cursor-tag {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 50;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  scale: 0.6;
  transition: opacity 0.2s, scale 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.cursor-tag.is-on {
  opacity: 1;
  scale: 1;
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}

/* ── WordPress ──────────────────────────────────────── */

.admin-bar .site-header {
  top: 32px;
}
@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}
/* Imagens do editor de blocos saem da coluna de leitura */
.prose > figure,
.prose > .wp-block-image,
.prose > .wp-block-gallery {
  grid-column: 1 / -1;
  max-width: none;
  margin-block: 1.2em 2em;
}
.prose figcaption {
  margin-top: 8px;
  font-size: 12px;
  color: var(--grey);
}
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ── Celular ────────────────────────────────────────── */

@media (max-width: 820px) {
  .tm-grid {
    grid-template-columns: 1fr;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-portrait {
    position: static;
  }
  .about-portrait .portrait {
    max-height: 70svh;
  }
  .about-xp li {
    grid-template-columns: 1fr;
  }
  .case-cover-wide {
    aspect-ratio: 4 / 3;
  }
  .chapter-head {
    flex-direction: column;
    gap: 8px;
  }
  .chapter-body {
    margin-right: 0;
  }
  .work-list .card,
  .work-list li:nth-child(even) .card {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .work-list li:nth-child(odd) .card-media {
    order: 0;
  }
  .gallery {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .gallery-item {
    height: 56vh;
    scroll-snap-align: center;
  }
  .hero-visual {
    aspect-ratio: 4 / 5;
  }
  .xp-row {
    grid-template-columns: auto 1fr;
    gap: 6px 14px;
  }
  .xp-main,
  .xp-text {
    grid-column: 1 / -1;
  }
  .pr-row {
    grid-template-columns: auto 1fr;
    gap: 6px 14px;
  }
  .pr-text {
    grid-column: 1 / -1;
  }
  .faq-row {
    grid-template-columns: 1fr;
  }
  .site-header {
    grid-template-columns: 1fr auto;
    font-size: 16px;
  }
  .nav {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .nav-contact {
    position: static;
    grid-column: 2;
    grid-row: 1;
  }
  .split,
  .prose,
  .next-link {
    grid-template-columns: 1fr;
  }
  .prose > *,
  .prose > h2,
  .prose > p:has(> img:only-child),
  .next-link .label,
  .next-title,
  .next-media {
    grid-column: 1;
    grid-row: auto;
  }
  .prose > h2 + * {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }
  .prose > h2 {
    margin-bottom: 8px;
  }
  .work-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .is-wide .card-media,
  .hero-media img {
    aspect-ratio: 4 / 3;
  }
  .meta-cols {
    grid-template-columns: 1fr 1fr;
  }
  .footer-cols {
    grid-template-columns: 1fr 1fr;
  }
  .footer-cols > div:first-child {
    grid-column: 1 / -1;
  }
}
