/* Ana Beatriz Manso · portfólio
   Tipografia: Instrument Serif (títulos), Schibsted Grotesk (texto), IBM Plex Mono (legendas) */

:root {
  --paper: #f3efe7;
  --paper-2: #e9e3d6;
  --ink: #16140f;
  --ink-2: #4b463d;
  --ink-3: #6b6458;
  --rule: rgba(22, 20, 15, 0.16);
  --accent: #b8321a;
  --on-ink: #f3efe7;

  --serif: "Instrument Serif", "Times New Roman", Times, serif;
  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --col-gap: clamp(16px, 2vw, 32px);
  --max: 1440px;
  --header-h: 64px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #12110e;
    --paper-2: #1c1a16;
    --ink: #f0ebe0;
    --ink-2: #bdb5a6;
    --ink-3: #958d7e;
    --rule: rgba(240, 235, 224, 0.16);
    --accent: #ef6647;
    --on-ink: #12110e;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #12110e;
  --paper-2: #1c1a16;
  --ink: #f0ebe0;
  --ink-2: #bdb5a6;
  --ink-3: #958d7e;
  --rule: rgba(240, 235, 224, 0.16);
  --accent: #ef6647;
  --on-ink: #12110e;
  color-scheme: dark;
}

/* ---------- Idiomas ---------- */
html[data-lang="pt"] body [lang="en"],
html[data-lang="en"] body [lang="pt-BR"] {
  display: none !important;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--accent);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::selection {
  background: var(--accent);
  color: #fff;
}

em {
  font-style: italic;
}

.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.mono {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  background: var(--ink);
  color: var(--on-ink);
  padding: 0.6rem 1rem;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: var(--header-h);
}

.brand {
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  margin-right: auto;
}

.brand:hover {
  color: var(--ink);
}

.brand .dot {
  color: var(--accent);
}

.nav {
  display: flex;
  gap: clamp(1rem, 2.4vw, 2.25rem);
}

.nav a {
  position: relative;
  font-size: 0.92rem;
  text-decoration: none;
  padding-block: 0.25rem;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}

.nav a:hover {
  color: var(--ink);
}

.nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.lang-tabs {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 3px;
  flex: none;
}

.lang-tabs::before {
  content: "";
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 3px);
  border-radius: 999px;
  background: var(--ink);
  transition: transform 0.45s var(--ease);
}

html[data-lang="en"] .lang-tabs::before {
  transform: translateX(100%);
}

.lang-tabs button {
  position: relative;
  z-index: 1;
  border: 0;
  background: none;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.3s;
}

.lang-tabs button[aria-pressed="true"] {
  color: var(--on-ink);
}

.menu-btn {
  display: none;
  border: 0;
  background: none;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.5rem 0;
  cursor: pointer;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: var(--paper);
  padding: calc(var(--header-h) + 2rem) var(--gutter) 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
}

.mobile-menu nav a {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 12vw, 4rem);
  line-height: 1.1;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-block: 0.35rem;
}

.mobile-menu .mono {
  color: var(--ink-2);
}

@media (max-width: 860px) {
  .nav {
    display: none;
  }

  .menu-btn {
    display: inline-block;
  }

  .header-inner {
    gap: 1rem;
  }
}

/* ---------- Revelação ao rolar ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 1.1s var(--ease);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(1.5rem, 4vw, 3rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.dateline {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--ink);
  padding-top: 0.7rem;
  color: var(--ink-2);
}

.hero-name {
  margin: clamp(2.5rem, 7vw, 6rem) 0 1.25rem;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  font-weight: 500;
  letter-spacing: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-name::before {
  content: "";
  width: 2.5rem;
  height: 1px;
  background: var(--accent);
  flex: none;
}

.hero-name .role {
  color: var(--ink-2);
  font-weight: 400;
}

.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.1rem, 11.2vw, 10.5rem);
  line-height: 0.9;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}

.hero-title em {
  color: var(--accent);
}

.hero-foot {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 2.5rem var(--col-gap);
  margin-top: clamp(2.5rem, 6vw, 5rem);
  align-items: end;
}

.hero-lede {
  grid-column: 1 / span 7;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.15vw, 1.95rem);
  line-height: 1.22;
  margin: 0;
  max-width: 34ch;
}

.hero-now {
  grid-column: 9 / span 4;
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-2);
}

.hero-now .mono {
  display: block;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.hero-now a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.1rem;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.15rem;
}

.hero-now a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: clamp(3rem, 6vw, 5rem) 0 0;
  border-top: 1px solid var(--ink);
}

.fact {
  padding: 1.25rem var(--col-gap) 0 0;
}

.fact + .fact {
  border-left: 1px solid var(--rule);
  padding-left: var(--col-gap);
}

.fact dt {
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
}

.fact dd {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
  color: var(--ink-2);
  max-width: 28ch;
}

@media (max-width: 860px) {
  .hero-lede,
  .hero-now {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .facts {
    grid-template-columns: 1fr;
  }

  .fact,
  .fact + .fact {
    display: grid;
    grid-template-columns: 5.5rem 1fr;
    align-items: baseline;
    gap: 1rem;
    border-left: 0;
    padding: 1rem 0;
  }

  .fact + .fact {
    border-top: 1px solid var(--rule);
  }

  .fact dd {
    margin: 0;
  }
}

/* ---------- Faixa de veículos ---------- */
.ticker-label {
  margin: 0 0 0.9rem;
  color: var(--ink-2);
}

.ticker {
  border-block: 1px solid var(--ink);
  overflow: hidden;
  padding-block: 1rem;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 85s linear infinite;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-group {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  padding-right: 2.25rem;
  margin: 0;
  padding-left: 0;
  list-style: none;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.8vw, 2.4rem);
  line-height: 1;
  white-space: nowrap;
}

.ticker-group li::after {
  content: "✳";
  margin-left: 2.25rem;
  color: var(--accent);
  font-size: 0.55em;
  vertical-align: 0.35em;
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation: none;
    width: auto;
    padding-inline: var(--gutter);
  }

  .ticker-group {
    flex-wrap: wrap;
    white-space: normal;
    row-gap: 0.75rem;
  }

  .ticker-group[aria-hidden="true"] {
    display: none;
  }
}

/* ---------- Seções ---------- */
.section {
  padding-block: clamp(5rem, 11vw, 10rem);
}

.section-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.75rem var(--col-gap);
  align-items: end;
  margin-bottom: clamp(3rem, 7vw, 6rem);
}

.eyebrow {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--ink);
  padding-top: 0.7rem;
  margin: 0;
  color: var(--ink-2);
}

.section-title {
  grid-column: 1 / span 8;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.8rem, 7.4vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin: 0;
}

.section-title em {
  color: var(--accent);
}

.section-note {
  grid-column: 9 / span 4;
  margin: 0;
  color: var(--ink-2);
  max-width: 36ch;
}

@media (max-width: 860px) {
  .section-title,
  .section-note {
    grid-column: 1 / -1;
  }
}

/* ---------- Trabalhos ---------- */
.work-index {
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--ink);
}

.work-row {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.75rem var(--col-gap);
  align-items: baseline;
  padding-block: clamp(1.75rem, 3.5vw, 3rem);
  border-top: 1px solid var(--ink);
}

.work-row::before {
  content: "";
  position: absolute;
  inset: 0 calc(var(--gutter) * -1);
  z-index: -1;
  background: var(--paper-2);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.work-num {
  grid-column: 1;
  color: var(--accent);
}

.work-title {
  grid-column: 2 / span 5;
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.3rem, 5vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  transition: transform 0.6s var(--ease);
}

.work-title a {
  text-decoration: none;
}

.work-title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.work-title em {
  color: var(--accent);
}

.work-body {
  grid-column: 7 / span 5;
}

.work-meta {
  margin: 0 0 0.6rem;
  color: var(--ink-2);
}

.work-desc {
  margin: 0;
  max-width: 46ch;
  color: var(--ink-2);
}

.work-arrow {
  grid-column: 12;
  justify-self: end;
  align-self: center;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-size: 1.1rem;
  transition: background-color 0.4s, color 0.4s, transform 0.6s var(--ease);
}

@media (hover: hover) {
  .work-row:hover::before {
    opacity: 1;
  }

  .work-row:hover .work-title {
    transform: translateX(0.5rem);
  }

  .work-row:hover .work-arrow {
    background: var(--ink);
    color: var(--paper);
    transform: rotate(-45deg);
  }
}

.work-row:focus-within .work-arrow {
  background: var(--ink);
  color: var(--paper);
}

@media (max-width: 860px) {
  .work-row {
    grid-template-columns: 2.25rem minmax(0, 1fr) auto;
  }

  .work-num {
    grid-column: 1;
  }

  .work-title {
    grid-column: 2;
  }

  .work-arrow {
    grid-column: 3;
    grid-row: 1;
    width: 2.5rem;
    height: 2.5rem;
  }

  .work-body {
    grid-column: 2 / -1;
  }
}

.arrow {
  display: inline-block;
  transition: transform 0.5s var(--ease);
}

.next-project a:hover .arrow,
.hero-now a:hover .arrow {
  transform: translateX(6px);
}

/* ---------- Sobre ---------- */
.about {
  background: var(--paper-2);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 3rem var(--col-gap);
}

.about-portrait {
  grid-column: 1 / span 4;
  margin: 0;
  align-self: start;
  position: sticky;
  top: calc(var(--header-h) + 2rem);
  max-width: 340px;
}

.about-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 30%;
}

.about-portrait figcaption {
  margin-top: 0.75rem;
  color: var(--ink-2);
  display: flex;
  justify-content: space-between;
}

.about-body {
  grid-column: 5 / span 8;
}

.about-statement {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.7vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.012em;
  margin: 0 0 2.5rem;
  text-wrap: balance;
}

.about-statement em {
  color: var(--accent);
}

.about-text {
  columns: 2 22rem;
  column-gap: var(--col-gap);
}

.about-text p {
  margin: 0 0 1.1rem;
  break-inside: avoid;
}

.about-lists {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem var(--col-gap);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.about-lists h3 {
  margin: 0 0 0.9rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--ink);
  font-weight: 400;
  color: var(--ink-2);
}

.about-lists ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.about-lists li {
  padding-block: 0.4rem;
  border-bottom: 1px solid var(--rule);
  font-size: 0.97rem;
}

.about-lists li span.mono {
  float: right;
  color: var(--ink-3);
  padding-top: 0.2rem;
}

@media (max-width: 860px) {
  .about-portrait {
    grid-column: 1 / -1;
    position: static;
    max-width: 280px;
  }

  .about-body {
    grid-column: 1 / -1;
  }

  .about-lists {
    grid-template-columns: 1fr;
  }
}

/* ---------- Trajetória ---------- */
.tl-heading {
  display: flex;
  justify-content: space-between;
  margin: 0 0 0.5rem;
  padding-top: 0.7rem;
  color: var(--ink-2);
  font-weight: 400;
}

.timeline {
  list-style: none;
  margin: 0 0 clamp(4rem, 8vw, 6rem);
  padding: 0;
  border-bottom: 1px solid var(--rule);
}

.tl-item {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.6rem var(--col-gap);
  padding-block: clamp(1.4rem, 2.6vw, 2rem);
  border-top: 1px solid var(--rule);
  transition: background-color 0.4s;
}

.timeline > .tl-item:first-child {
  border-top-color: var(--ink);
}

.tl-years {
  grid-column: 1 / span 2;
  color: var(--ink-2);
  padding-top: 0.55rem;
}

.tl-role {
  grid-column: 3 / span 5;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
  line-height: 1.08;
  margin: 0;
}

.tl-org {
  display: block;
  margin-top: 0.45rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink-2);
  line-height: 1.4;
}

.tl-desc {
  grid-column: 8 / span 5;
  margin: 0;
  color: var(--ink-2);
  font-size: 0.98rem;
}

.tl-desc a {
  color: var(--ink);
}

@media (max-width: 860px) {
  .tl-years,
  .tl-role,
  .tl-desc {
    grid-column: 1 / -1;
  }

  .tl-years {
    padding-top: 0;
  }
}

/* ---------- Contato ---------- */
.contact {
  padding-block: clamp(6rem, 13vw, 12rem) clamp(4rem, 8vw, 7rem);
}

.contact-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.4rem, 13vw, 12rem);
  line-height: 0.88;
  letter-spacing: -0.03em;
  margin: 2rem 0 0;
}

.contact-title em {
  color: var(--accent);
}

.contact-row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 2rem var(--col-gap);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  align-items: end;
}

.contact-mail {
  grid-column: 1 / span 8;
  justify-self: start;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 4.3vw, 3.8rem);
  line-height: 1.1;
  text-decoration: none;
  overflow-wrap: anywhere;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 0.1em;
  transition: background-size 0.6s var(--ease), color 0.3s;
}

.contact-mail:hover {
  background-size: 0 1px;
  background-position: 100% 100%;
}

.contact-links {
  grid-column: 10 / span 3;
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-links li {
  border-top: 1px solid var(--rule);
}

.contact-links a {
  display: flex;
  justify-content: space-between;
  padding-block: 0.75rem;
  text-decoration: none;
}

.contact-note {
  grid-column: 1 / span 6;
  margin: 0;
  color: var(--ink-2);
  max-width: 44ch;
}

@media (max-width: 860px) {
  .contact-mail,
  .contact-links,
  .contact-note {
    grid-column: 1 / -1;
  }
}

/* ---------- Rodapé ---------- */
.site-footer {
  border-top: 1px solid var(--ink);
  padding-block: 1.25rem 2rem;
  color: var(--ink-2);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}

.footer-inner a {
  text-decoration: none;
}

/* ---------- Páginas de projeto ---------- */
.case-hero {
  padding-block: clamp(1.5rem, 4vw, 3rem) clamp(3rem, 6vw, 5rem);
}

.crumb {
  display: inline-flex;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--ink-2);
}

.case-kicker {
  margin: clamp(2.5rem, 6vw, 5rem) 0 1rem;
  color: var(--accent);
}

.case-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.1rem, 10.5vw, 10rem);
  line-height: 0.9;
  letter-spacing: -0.025em;
  margin: 0;
}

.case-title em {
  color: var(--accent);
}

.case-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem var(--col-gap);
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
  border-top: 1px solid var(--ink);
  padding-top: 1rem;
}

.case-facts dt {
  color: var(--ink-3);
}

.case-facts dd {
  margin: 0.4rem 0 0;
  font-size: 0.98rem;
}

@media (max-width: 760px) {
  .case-facts {
    grid-template-columns: 1fr 1fr;
  }
}

.case-intro {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 2.5rem var(--col-gap);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.case-intro .lede {
  grid-column: 1 / span 7;
}

.case-intro .lede p:first-child {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.22;
  margin-top: 0;
}

.case-intro .lede p {
  max-width: 62ch;
}

.toc {
  grid-column: 9 / span 4;
  align-self: start;
}

.toc h2 {
  margin: 0 0 0.6rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--ink);
  font-weight: 400;
  color: var(--ink-2);
}

.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc;
}

.toc li {
  counter-increment: toc;
  border-bottom: 1px solid var(--rule);
}

.toc a {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.5rem;
  padding-block: 0.7rem;
  text-decoration: none;
  font-size: 0.97rem;
  line-height: 1.35;
}

.toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--accent);
  padding-top: 0.15rem;
}

.cover-art {
  grid-column: 9 / span 4;
  margin: 0;
  max-width: 360px;
}

.cover-art img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.cover-art figcaption {
  margin-top: 0.6rem;
  color: var(--ink-2);
}

@media (max-width: 860px) {
  .case-intro .lede,
  .toc,
  .cover-art {
    grid-column: 1 / -1;
  }
}

.case {
  border-top: 1px solid var(--ink);
  padding-block: clamp(3rem, 7vw, 6rem);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 2rem var(--col-gap);
}

.case-side {
  grid-column: 1 / span 3;
  align-self: start;
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}

.case-num {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(3.2rem, 6vw, 5.5rem);
  line-height: 0.85;
  color: var(--accent);
}

.case-side dl {
  margin: 1.5rem 0 0;
}

.case-side dt {
  color: var(--ink-3);
  margin-top: 1rem;
}

.case-side dd {
  margin: 0.25rem 0 0;
  font-size: 0.95rem;
  line-height: 1.45;
}

.case-main {
  grid-column: 5 / span 8;
  min-width: 0;
}

.case-main h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 3.7vw, 3.3rem);
  line-height: 1.03;
  letter-spacing: -0.012em;
  margin: 0 0 1.5rem;
  text-wrap: balance;
}

.case-main .translation {
  display: block;
  margin: -0.75rem 0 1.5rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--ink-2);
}

.case-main p {
  max-width: 66ch;
}

@media (max-width: 860px) {
  .case-side,
  .case-main {
    grid-column: 1 / -1;
    position: static;
  }

  .case-side dl {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1.5rem;
  }
}

.outlets-label {
  margin: 2rem 0 0.75rem;
  color: var(--ink-3);
}

.outlets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.outlets a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 0.38rem 0.85rem;
  font-size: 0.88rem;
  text-decoration: none;
  transition: border-color 0.3s, color 0.3s;
}

.outlets a::after {
  content: "↗";
  font-size: 0.8em;
  color: var(--ink-3);
}

.outlets a:hover {
  border-color: var(--accent);
}

/* ---------- Vídeos ---------- */
.clips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem var(--col-gap);
  margin-top: 2.5rem;
}

.clip {
  margin: 0;
  grid-column: 1 / -1;
}

.clips--three .clip:not(:first-child) {
  grid-column: auto;
}

@media (max-width: 640px) {
  .clips--three .clip:not(:first-child) {
    grid-column: 1 / -1;
  }
}

.clip-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.clip-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  transition: transform 1.2s var(--ease);
}

.js .clip:not(.is-playing) video {
  object-fit: cover;
}

.clip-play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  background: rgba(0, 0, 0, 0.12);
  color: #16140f;
  cursor: pointer;
  font: inherit;
  transition: background-color 0.4s;
}

.clip-play:hover {
  background: rgba(0, 0, 0, 0.28);
}

.js .clip:not(.is-playing) .clip-frame:hover video {
  transform: scale(1.03);
}

.play-disc {
  display: grid;
  place-items: center;
  width: clamp(60px, 8vw, 88px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #f3efe7;
  transition: transform 0.5s var(--ease), background-color 0.3s;
}

.play-disc svg {
  width: 30%;
  margin-left: 8%;
}

.clip-play:hover .play-disc {
  transform: scale(1.08);
  background: #fff;
}

.clip-duration {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  z-index: 3;
  background: #f3efe7;
  color: #16140f;
  padding: 0.25rem 0.5rem;
  pointer-events: none;
}

.clip.is-playing .clip-duration,
.clip.is-playing .clip-play,
html:not(.js) .clip-duration,
html:not(.js) .clip-play {
  display: none;
}

.clip figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.7rem;
  font-size: 0.92rem;
}

.clip figcaption .mono {
  color: var(--ink-2);
  padding-top: 0.15rem;
}

.clip-error {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: none;
  place-items: center;
  padding: 1.5rem;
  text-align: center;
  color: #f3efe7;
  background: #16140f;
}

.clip.has-error .clip-error {
  display: grid;
}

/* ---------- Recortes de imprensa ---------- */
.clippings {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  margin: 2.5rem 0 0;
  padding: 0 0 1rem;
  list-style: none;
  scrollbar-width: thin;
  scrollbar-color: var(--ink-3) transparent;
}

.clippings > li {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.clipping {
  margin: 0;
}

.clipping button {
  display: block;
  padding: 0;
  border: 1px solid var(--rule);
  background: #fff;
  cursor: zoom-in;
}

.clipping img {
  height: clamp(170px, 20vw, 250px);
  width: auto;
  max-width: min(78vw, 520px);
  object-fit: cover;
  object-position: 50% 0;
  transition: opacity 0.3s;
}

.clipping button:hover img {
  opacity: 0.85;
}

.clipping figcaption {
  margin-top: 0.55rem;
  color: var(--ink-2);
}

.lightbox {
  border: 0;
  padding: 0;
  max-width: min(1100px, 94vw);
  max-height: 92vh;
  background: transparent;
  color: #f3efe7;
  overflow: visible;
}

.lightbox::backdrop {
  background: rgba(12, 11, 9, 0.9);
}

.lightbox img {
  max-width: 100%;
  max-height: 82vh;
  margin-inline: auto;
  background: #fff;
}

.lightbox-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 0.75rem;
}

.lightbox button {
  border: 1px solid rgba(243, 239, 231, 0.5);
  background: none;
  color: inherit;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Reportagens ---------- */
.story {
  border-top: 1px solid var(--ink);
  padding-block: clamp(3rem, 7vw, 6rem);
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 2.5rem var(--col-gap);
  align-items: start;
}

.story-media {
  grid-column: 1 / span 5;
  margin: 0;
}

.story-media button {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--rule);
  background: #fff;
  cursor: zoom-in;
  overflow: hidden;
}

.story-media img {
  width: 100%;
  height: auto;
  max-height: 78vh;
  object-fit: cover;
  object-position: 50% 0;
  transition: transform 1.2s var(--ease);
}

.story-media button:hover img {
  transform: scale(1.03);
}

.story-media figcaption {
  margin-top: 0.6rem;
  color: var(--ink-2);
}

.story-body {
  grid-column: 7 / span 6;
}

.story:nth-of-type(even) .story-media {
  grid-column: 8 / span 5;
  order: 2;
}

.story:nth-of-type(even) .story-body {
  grid-column: 1 / span 6;
}

.story-body h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.2vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.015em;
  margin: 1rem 0 1.5rem;
  text-wrap: balance;
}

.story-body .translation {
  display: block;
  margin: -0.75rem 0 1.5rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--ink-2);
}

.story-meta {
  color: var(--accent);
}

.read-link {
  display: inline-flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.1rem;
}

@media (max-width: 860px) {
  .story-media,
  .story-body,
  .story:nth-of-type(even) .story-media,
  .story:nth-of-type(even) .story-body {
    grid-column: 1 / -1;
    order: 0;
  }

  .story-media img {
    max-height: 70vh;
  }
}

/* ---------- Episódios ---------- */
.episode {
  border-top: 1px solid var(--ink);
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.episode .case-main h2 {
  margin-bottom: 1rem;
}

.role-tag {
  display: inline-block;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  margin-bottom: 1.25rem;
}

.player {
  margin-top: 1.75rem;
  border-radius: 12px;
  overflow: hidden;
  background: var(--paper-2);
}

.player iframe {
  width: 100%;
  height: 152px;
  border: 0;
}

/* ---------- Digital PR ---------- */
.facts--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 clamp(4rem, 8vw, 6rem);
}

@media (max-width: 1000px) and (min-width: 641px) {
  .facts--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .facts--4 .fact:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }

  .facts--4 .fact:nth-child(n + 3) {
    margin-top: 1.5rem;
    border-top: 1px solid var(--rule);
  }
}

.shot {
  margin: 2rem 0 0;
}

.shot button {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: #111;
  overflow: hidden;
  cursor: zoom-in;
}

.shot img {
  width: 100%;
  height: auto;
  transition: transform 1.2s var(--ease);
}

.shot button:hover img {
  transform: scale(1.02);
}

.shot figcaption {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: var(--ink-2);
  max-width: 66ch;
}

.tabs {
  margin-top: 2.5rem;
}

.tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.75rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
}

html:not(.js) .tablist {
  display: none;
}

.tablist [role="tab"] {
  margin-bottom: -1px;
  padding: 0.8rem 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s;
}

.tablist [role="tab"]:hover {
  color: var(--ink);
}

.tablist [role="tab"][aria-selected="true"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.tabpanel[hidden] {
  display: none;
}

.js .tabpanel:not([hidden]) {
  animation: panel-in 0.5s var(--ease);
}

html:not(.js) .tabpanel + .tabpanel {
  margin-top: 3rem;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

.prompt {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.9rem;
  margin: 0;
}

.prompt .mono {
  flex: none;
  color: var(--accent);
}

.prompt-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  line-height: 1.25;
}

.tabpanel .shot {
  margin-top: 1rem;
}

.press-wall {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.25rem);
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}

.press-card figure {
  margin: 0;
  border: 1px solid var(--rule);
  background: var(--paper);
  transition: border-color 0.3s, transform 0.6s var(--ease);
}

.press-card figure:hover {
  border-color: var(--ink-3);
}

.press-card figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--rule);
}

.press-card figcaption .mono {
  color: var(--ink);
}

.press-card figcaption a {
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.press-card button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #fff;
  overflow: hidden;
  cursor: zoom-in;
}

.press-card img {
  width: 100%;
  height: auto;
  transition: transform 1.2s var(--ease);
}

.press-card button:hover img {
  transform: scale(1.02);
}

.coverage-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin: clamp(3rem, 6vw, 4.5rem) 0 0;
  padding-top: 0.7rem;
  border-top: 1px solid var(--ink);
}

.coverage-head h3 {
  margin: 0;
  font-weight: 400;
  color: var(--ink-2);
}

.coverage-legend {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: var(--ink-3);
}

.coverage-legend .dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
}

.coverage {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  columns: 3 13rem;
  column-gap: var(--col-gap);
  counter-reset: cov;
}

.coverage li {
  break-inside: avoid;
  border-top: 1px solid var(--rule);
  counter-increment: cov;
}

.coverage a {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0.65rem 0;
  font-size: 0.97rem;
  text-decoration: none;
}

.coverage a::before {
  content: counter(cov, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-3);
}

.coverage a::after {
  content: "↗";
  font-size: 0.8em;
  color: var(--ink-3);
}

.coverage .is-highlight a {
  font-weight: 500;
}

.coverage .is-highlight a::before {
  color: var(--accent);
}

/* ---------- Próximo projeto ---------- */
.next-project {
  border-top: 1px solid var(--ink);
}

.next-project a {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem 2rem;
  padding-block: clamp(3rem, 7vw, 6rem);
  text-decoration: none;
}

.next-project .mono {
  color: var(--ink-2);
}

.next-title {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 9vw, 8.5rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
}

.next-project a:hover .next-title {
  color: var(--accent);
}
