@font-face {
  font-family: Switzer;
  src: url('assets/fonts/switzer-400.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Switzer;
  src: url('assets/fonts/switzer-500.woff2') format('woff2');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('assets/fonts/ibm-plex-mono-400.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

body.editorial {
  --editorial-ease: cubic-bezier(.16, 1, .3, 1);
  --editorial-rule: color-mix(in srgb, currentColor 15%, transparent);
  font-family: Switzer, Manrope, sans-serif;
}
.editorial :is(h2, h3) { font-weight: 400; letter-spacing: -.035em; }
.editorial :is(h2, h3) em { background: none; color: inherit; -webkit-text-fill-color: currentColor; }
.editorial .brand { font-family: Manrope, sans-serif; }
.editorial :is(.eyebrow, .chapter-label, .view-metadata b, .pub-type, .people article>span, .publication-tools, .edition-strip) {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.editorial header { border-bottom: 1px solid var(--editorial-rule); }
.editorial .chapter-progress { font-family: 'IBM Plex Mono',monospace; font-size: 11px; letter-spacing: .09em; margin-right: auto; margin-left: 2rem; }
.editorial .hero-title p { font-weight: 400; }
.editorial .chapter-label { display: flex; align-items: center; gap: 2rem; margin-bottom: 2rem; }
.editorial .chapter-label::after { content: ''; height: 1px; background: currentColor; opacity: .15; flex: 1; }

/* The existing mosaic controller owns the geometry and visibility of this scene. */
.editorial #observatorio .story-copy { border-left: 1px solid var(--editorial-rule); padding-inline: 4vw; }
.editorial #observatorio .story-intro { max-width: none; }
.editorial #observatorio .story-intro>p.intro-brand { font-family: Manrope, sans-serif; font-weight: 500; }
.editorial #observatorio .story-intro h2 { font-weight: 400; line-height: 1.03; letter-spacing: -.035em; }
.editorial #observatorio .story-intro>p:not(.intro-brand) { max-width: 46ch; line-height: 1.55; }
.editorial #observatorio .story-intro>p+p { margin-top: 1.1em; }

.editorial .human { height: 125svh; mask-image: none; }
.editorial .human-copy {
  width: 100%; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 1.5vw; align-content: center; row-gap: 2rem;
}
.editorial .human-copy>.eyebrow { grid-column: 1 / -1; margin: 0; }
.editorial .human h2 { grid-column: 1 / 7; font-size: clamp(3rem, 5vw, 6.5rem); line-height: 1; max-width: 13ch; }
.editorial .fact { grid-column: 1 / 7; margin: 0; max-width: none; padding: 1.5rem 0 0; border-color: var(--editorial-rule); }
.editorial .fact strong { font-size: clamp(5rem, 10vw, 11rem); font-weight: 400; line-height: 1; margin: .12em 0; background: none; -webkit-text-fill-color: currentColor; }
.editorial .fact>span { font-family: 'IBM Plex Mono', monospace; font-size: 12px; }
.editorial .fact p { font-size: clamp(1rem, 1.5vw, 1.5rem); }
.editorial .human-shade { background: linear-gradient(90deg, #061c36ec, #061c3690 47%, transparent 80%); }

.editorial .analysis { padding-block: clamp(80px, 8vw, 160px); }
.editorial .section-heading { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: 2vw; align-items: end; margin-bottom: clamp(36px,5vw,80px); }
.editorial .section-heading>div { grid-column: 1 / 9; }
.editorial .section-heading>p { grid-column: 10 / -1; max-width: 24ch; font-size: clamp(1rem,1.2vw,1.25rem); line-height: 1.5; }
.editorial .section-heading h2 { font-size: clamp(3rem,6.4vw,7.5rem); line-height: .98; }
.editorial .section-heading .eyebrow { margin-bottom: 2rem; }
.editorial .theme-index { display: grid; grid-template-columns: 5fr 7fr; gap: 5vw; align-items: stretch; margin-bottom: clamp(48px,6vw,96px); }
.editorial .themes { display: flex; flex-direction: column; flex-wrap: nowrap; gap: 0; padding: 0; border: 0; }
.editorial .themes button {
  display: grid; grid-template-columns: 2.5rem minmax(0,1fr) 1.5rem; gap: .7rem;
  align-items: center; text-align: left; padding: clamp(15px,1.75vw,28px) 0;
  border: 0; border-top: 1px solid var(--editorial-rule); border-radius: 0;
  font-weight: 400; font-size: clamp(1.25rem,2.15vw,2.6rem); line-height: 1.1;
  background: transparent; color: inherit; box-shadow: none; transform: none;
}
.editorial .themes button:last-child { border-bottom: 1px solid var(--editorial-rule); }
.editorial .theme-number { font-family: 'IBM Plex Mono',monospace; font-size: 11px; letter-spacing: .06em; }
.editorial .theme-name { transition: transform .5s var(--editorial-ease); }
.editorial .theme-arrow { font-size: .8em; opacity: 0; transform: translate(-6px,6px); transition: opacity .25s,transform .5s var(--editorial-ease); }
.editorial .themes button:is(:hover,:focus-visible,[aria-selected=true]) .theme-arrow { opacity: 1; transform: none; }
.editorial .themes button:is(:hover,:focus-visible) .theme-name { transform: translateX(8px); }
.editorial .themes button[aria-selected=true] .theme-number { color: var(--accent); text-decoration: underline; text-underline-offset: .5em; }
.editorial .theme-preview { margin: 0; display: flex; flex-direction: column; min-width: 0; }
.editorial .preview-media { position: relative; flex: 1; min-height: 320px; overflow: hidden; }
.editorial .preview-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.editorial .preview-media img[data-castelinho] { object-fit: contain; }
.editorial .theme-preview figcaption { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .75rem 1.5rem; padding-top: 1.15rem; border-top: 1px solid var(--editorial-rule); margin-top: 1.15rem; }
.editorial .preview-caption { font-size: clamp(1rem,1.3vw,1.4rem); }
.editorial .preview-value { font-size: clamp(1.4rem,2.6vw,3rem); font-weight: 400; letter-spacing: -.04em; line-height: 1.1; }
.editorial .preview-context { grid-column: 1 / -1; font-size: 12px; line-height: 1.5; }
.editorial .analysis-meta { border-top: 1px solid var(--editorial-rule); padding-top: 1.5rem; scroll-margin-top: 110px; }
.editorial .views { flex-wrap: wrap; }
.editorial .views button { font-size: clamp(.875rem,1vw,1.1rem); }
.editorial .view-metadata { border-top: 1px solid var(--editorial-rule); padding-top: 1.5rem; }
.editorial .data-actions { justify-content: flex-start; }
.editorial .data-actions>div { flex-wrap: wrap; }
.editorial .data-actions :is(a,button) { border-bottom: 1px solid var(--editorial-rule); padding: .6rem 0; font-size: 14px; }
.editorial .chart h3 { font-weight: 500; }

.editorial .evidence { padding-block: clamp(90px,10vw,180px); }
.editorial .evidence-content { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: 1.5rem 2vw; }
.editorial .evidence-content>.eyebrow { grid-column: 1 / -1; margin: 0; }
.editorial .evidence h2 { grid-column: 1 / 8; font-size: clamp(2.75rem,5.2vw,6rem); line-height: 1; text-shadow: none; }
.editorial .evidence .lede { grid-column: 9 / -1; margin: 0; font-size: 1rem; align-self: end; }
.editorial .source-layout { grid-column: 1 / -1; display: grid; grid-template-columns: 2fr 10fr; gap: 3vw; margin-top: 3rem; border-top: 1px solid var(--editorial-rule); padding-top: 2rem; }
.editorial .source-tabs { flex-direction: column; align-items: stretch; gap: 0; margin: 0; }
.editorial .source-tabs button { text-align: left; padding: 1rem .5rem; border: 0; border-bottom: 1px solid var(--editorial-rule); border-radius: 0; }
.editorial .source-tabs button[aria-selected=true] { background: transparent; color: inherit; text-decoration: underline; text-underline-offset: .4em; }
.editorial .source-detail { padding: 0; background: none; border: 0; min-height: 0; grid-template-columns: 1fr 1.15fr; gap: 3vw; }
.editorial .source-detail h3 { font-size: clamp(1.75rem,2.8vw,3.25rem); line-height: 1.1; }
.editorial .source-body { border-left: 1px solid var(--editorial-rule); padding-left: 3vw; }
.editorial .source-origin { margin-top: 0; }
.editorial .team { grid-template-columns: 5fr 6fr; gap: 8vw; padding-block: clamp(90px,10vw,170px); }
.editorial .team h2 { font-size: clamp(2.75rem,5vw,6rem); line-height: 1; text-shadow: none; }
.editorial .people article { padding-block: 2rem 3rem; border-color: var(--editorial-rule); }
.editorial .people h3 { font-size: clamp(2rem,3.7vw,4rem); font-weight: 400; }
.editorial .dusk { height: 100svh; min-height: 600px; margin-bottom: 0; }
.editorial .dusk>img { height: 100%; }
.editorial .dusk-title { top: 18%; }
.editorial .publications { display: block; }
.editorial .publication { display: grid; grid-template-columns: 3fr 8fr; gap: 7vw; padding-block: clamp(32px,4vw,64px); border-color: var(--editorial-rule); }
.editorial .publication[hidden] { display: none; }
.editorial .publication>img { width: 100%; height: auto!important; max-height: 380px!important; object-fit: contain; object-position: top left; box-shadow: none; transform: none; }
.editorial .publication:hover>img { transform: scale(1.025); }
.editorial .publication>div { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 1rem 3vw; }
.editorial .publication .pub-type { grid-column: 1 / -1; }
.editorial .publication h3 { grid-column: 1; grid-row: 2 / 5; font-size: clamp(2.3rem,4vw,5rem); line-height: 1; margin: 0; }
.editorial .publication :is(p,.text-link) { grid-column: 2; margin: 0; }
.editorial .publication .text-link { justify-self: start; align-self: end; margin-top: 1rem; }
.editorial .publication-tools { border-top: 1px solid var(--editorial-rule); padding-top: 1.5rem; }
.editorial .footer-top>p { font-size: clamp(2rem,4vw,5rem); line-height: 1.02; letter-spacing: -.035em; }
.editorial .edition-strip { display:flex; flex-wrap:wrap; justify-content:space-between; gap: 1rem; border-block:1px solid var(--editorial-rule); padding-block:1.3rem; margin-bottom:3rem; }
.editorial .footer-links { border-color: var(--editorial-rule); }

.editorial .line-mask { display:block; overflow:clip; padding-bottom:.08em; margin-bottom:-.08em; }
.editorial .line-mask>span { display:block; }
.editorial .arrival { transition:opacity .8s, translate .9s var(--editorial-ease); }
.editorial .arrival .line-mask>span { transition:transform 1s var(--editorial-ease); transition-delay:calc(var(--line,0)*70ms); }
.editorial .arrival-pending .line-mask>span { transform:translateY(108%); }
.editorial .curtain { clip-path:inset(0); transition:clip-path 1.1s var(--editorial-ease); }
.editorial .curtain.is-pending { clip-path:inset(0 0 100% 0); }
.editorial .curtain img { transition:transform 1.2s var(--editorial-ease); }
.editorial .curtain.is-pending img { transform:scale(1.06); }
html.lenis,html.lenis body { height:auto; }
html.lenis-smooth { scroll-behavior:auto!important; }
.lenis-smooth [data-lenis-prevent] { overscroll-behavior:contain; }

@media(max-width:1023px) {
  .editorial .theme-index { grid-template-columns:1fr 1fr; gap:3vw; }
  .editorial .themes button { grid-template-columns:1.5rem minmax(0,1fr) 1rem; }
  .editorial .evidence .lede { grid-column:8 / -1; }
  .editorial .source-layout { grid-template-columns:1fr; }
  .editorial .source-tabs { flex-direction:row; flex-wrap:wrap; gap:1rem; }
  .editorial .publication>div { display:block; }
  .editorial .publication h3 { margin:1rem 0; }
  .editorial .publication p { margin-bottom:1rem; }
}
@media(max-width:650px) {
  .editorial .chapter-progress { margin-left: 1rem; }
  .editorial #observatorio .story-copy { border:0; padding-inline:24px; }
  .editorial #observatorio .story-intro h2 { font-size:clamp(30px,8vw,44px); }
  .editorial .section-heading { display:block; }
  .editorial .section-heading h2 { font-size:clamp(2.7rem,11vw,4.5rem); }
  .editorial .section-heading>p { margin-top:1.5rem; max-width:none; }
  .editorial .theme-index { display:flex; flex-direction:column; gap:2rem; }
  .editorial .themes button { font-size:clamp(1.3rem,5.5vw,1.75rem); padding:16px 0; }
  .editorial .preview-media { min-height:0; aspect-ratio:16 / 9; flex:none; }
  .editorial .preview-value { font-size:1.7rem; }
  .editorial .theme-preview figcaption { grid-template-columns:1fr; }
  .editorial .human h2 { font-size:clamp(2.5rem,10vw,4rem); grid-column:1 / -1; }
  .editorial .human-copy { padding:80px 24px 40px; gap:1.2rem; }
  .editorial .fact { grid-column:1 / -1; }
  .editorial .fact strong { font-size:clamp(5rem,23vw,7rem); }
  .editorial .human-shade { background:linear-gradient(90deg,#061c36ec,#061c3690 65%,#061c3640); }
  .editorial .evidence-content { display:block; }
  .editorial .evidence h2 { font-size:clamp(2.5rem,10vw,4rem); margin-block:1.5rem; }
  .editorial .evidence .lede { margin-top:1.5rem; }
  .editorial .source-detail { grid-template-columns:1fr; gap:2rem; }
  .editorial .source-body { border-left:0; border-top:1px solid var(--editorial-rule); padding:2rem 0 0; }
  .editorial .team { grid-template-columns:1fr; gap:2rem; }
  .editorial .dusk { min-height:0; height:85svh; }
  .editorial .publication { grid-template-columns:1fr; gap:1.8rem; }
  .editorial .publication>img { width:45%; max-height:220px!important; }
  .editorial .publication h3 { font-size:2.6rem; }
  .editorial .publication-tools { flex-direction:column; align-items:stretch; }
  .editorial .publication-tools label { width:100%; }
  .editorial .edition-strip { margin-bottom:2rem; }
}
@media(prefers-reduced-motion:reduce) {
  .editorial .curtain,.editorial .curtain.is-pending { clip-path:none; }
  .editorial .arrival-pending .line-mask>span,.editorial .curtain img { transform:none; }
  .editorial :is(.line-mask>span,.curtain,.curtain img,.theme-name,.theme-arrow) { transition:none; }
}
