/* =========================================================
   Andrea Sandtfoss — portfolio
   Minimal editorial system · achromatic UI, the work supplies the colour
   Tokens from design handoff: colors_and_type.css + styles.css
   ========================================================= */

:root {
  /* ---- Base palette ---- */
  --white: #ffffff;
  --ink: #111111;
  --ink-2: #2a2a2a;
  --muted: #8a8a8a;
  --muted-2: #b8b8b8;
  --rule: #e8e8e8;
  --rule-soft: #f2f2f2;
  --hover: #fafafa;
  --plate: #f5f5f4;
  --plate-2: #ececea;

  /* ---- Semantic ---- */
  --bg: var(--white);
  --fg1: var(--ink);
  --fg2: var(--ink-2);
  --fg3: var(--muted);
  --fg4: var(--muted-2);
  --border-strong: var(--ink);
  --border: var(--rule);
  --border-soft: var(--rule-soft);
  --surface-hover: var(--hover);
  --surface-figure: var(--plate);
  --header-glass: rgba(255, 255, 255, 0.92);
  --arrow-hover: rgba(0, 0, 0, 0.03);

  /* ---- Type families ---- */
  --font-sans: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* ---- Type scale ---- */
  --fs-xs: 11px;
  --fs-sm: 12px;
  --fs-md: 13px;
  --fs-body: 15px;
  --fs-lg: 20px;
  --fs-hero: clamp(28px, calc(4.02vw - .2px), 44px);

  --lh-body: 1.45;
  --lh-tight: 1.05;

  /* ---- Layout ---- */
  --pad-x: clamp(24px, 4vw, 56px);
  --max: 1400px;
  --figure-max: 1080px;
  --header-h: clamp(56px, calc(1.5385vw + 47.385px), 64px);

  /* ---- Spacing scale: 8, 12, 16, 24, 32, 48, 64, 96, 128 ---- */
  --sp-1: 8px; --sp-2: 12px; --sp-3: 16px; --sp-4: 24px;
  --sp-5: 32px; --sp-6: 48px; --sp-7: 64px; --sp-8: 96px;
  --sp-9: 128px;

  /* ---- Radii — circles only ---- */
  --radius-0: 0;
  --radius-round: 50%;

  /* ---- Elevation — one shadow in the whole system ---- */
  --shadow-thumb: 0 20px 40px -12px rgba(0, 0, 0, 0.12);

  /* ---- Motion ---- */
  --ease: ease;
  --dur-fast: .18s;
  --dur: .2s;
  --dur-underline: .3s;
  --dur-slide: .55s;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "ss02";
}

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; max-width: 100%; height: auto; }
.responsive-picture { display: block; width: 100%; height: auto; min-width: 0; }
.hero-picture { display: flex; align-items: center; justify-content: center; }

h1, h2, h3, h4 { font-weight: 400; margin: 0; text-transform: lowercase; }

p {
  font-size: var(--fs-body);
  color: var(--fg2);
  max-width: 52ch;
  text-wrap: pretty;
  margin: 0;
}

/* ---- Semantic type roles ---- */
.t-title { font-size: var(--fs-body); letter-spacing: -.005em; text-transform: lowercase; color: var(--fg1); }
.t-ui { font-family: var(--font-sans); font-size: var(--fs-md); color: var(--fg2); }
.t-brand { font-family: var(--font-sans); font-size: var(--fs-md); font-weight: 500; letter-spacing: -.005em; }
.t-meta, code {
  font-family: var(--font-mono); font-size: var(--fs-md); color: var(--fg3);
  text-transform: lowercase; letter-spacing: .01em;
}
.t-label {
  font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--fg3);
  text-transform: lowercase; letter-spacing: .06em;
}
.t-eyebrow {
  font-family: var(--font-sans); font-size: var(--fs-sm);
  text-transform: uppercase; letter-spacing: .18em; color: var(--fg3);
}
.t-overline {
  font-family: var(--font-sans); font-size: var(--fs-xs); font-weight: 500;
  text-transform: uppercase; letter-spacing: .16em; color: var(--fg3);
}

/* =========================================================
   Header
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-glass);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--rule); }

.site-header .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { font-size: var(--fs-md); letter-spacing: -.005em; font-weight: 500; }
.brand .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ink);
  margin-right: 10px;
  vertical-align: 2px;
}

.nav {
  display: flex;
  gap: 28px;
  align-items: baseline;
  font-size: var(--fs-md);
  color: var(--ink-2);
}
.nav a { position: relative; padding: 4px 0; }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--ink);
  transition: right var(--dur-underline) ease;
}
.nav a:hover::after { right: 0; }
.nav a.active::after { right: 0; }

.lang-toggle {
  display: inline-flex;
  gap: 6px;
  align-items: baseline;
  margin-left: 12px;
}
.lang-toggle a {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: .06em;
  color: var(--muted);
  transition: color var(--dur) ease;
}
.lang-toggle a:hover { color: var(--ink); }
.lang-toggle a.on { color: var(--ink); }
.lang-toggle a.on::after { right: 0; }
.lang-toggle .sep {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--muted-2);
}

/* =========================================================
   Hero carousel
   ========================================================= */

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 8vh, 96px) var(--pad-x) clamp(32px, 5vh, 56px);
}

.hero-meta-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--sp-4);
  margin-bottom: 24px;
  font-size: var(--fs-sm);
  color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: .02em;
  text-transform: lowercase;
}
.hero-meta-top .left { display: flex; gap: var(--sp-4); }
.hero-meta-top .right { text-align: right; }

.hero-stage { position: relative; max-width: var(--figure-max); margin: 0 auto; }

.hero-figure {
  position: relative;
  width: 100%;
  max-width: var(--figure-max);
  margin: 0 auto;
  aspect-ratio: 16 / 10;
  background: var(--plate);
}
.hero-figure--work {
  aspect-ratio: auto;
  background: transparent;
  display: block;
  height: min(72vh, 640px);
  position: relative;
  overflow: hidden;
  /* the carousel reads a horizontal swipe; keep vertical scrolling native */
  touch-action: pan-y;
}
.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: none;
  pointer-events: none;
}
.hero-slide.on { opacity: 1; pointer-events: auto; }
.hero-slide.slide-error { display: none; }
.hero-slide img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; }

.hero-arrow {
  all: unset;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 18px;
  border-radius: 50%;
  transition: color var(--dur) ease, background var(--dur) ease;
  z-index: 5;
}
.hero-arrow:hover { color: var(--ink); background: var(--arrow-hover); }
.hero-arrow.prev { left: -56px; }
.hero-arrow.next { right: -56px; }

.hero-caption {
  max-width: var(--figure-max);
  margin: 24px auto 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--sp-4);
  align-items: baseline;
  font-size: var(--fs-sm);
  color: var(--muted);
  font-family: var(--font-mono);
  text-transform: lowercase;
  letter-spacing: .02em;
}
.hero-caption .center {
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  text-transform: none;
  letter-spacing: 0;
}
.hero-caption .right { text-align: right; }

/* the dot itself stays 4px — that is the system's mark. The *button* around
   it is 20px, because a 4px target cannot be hit with a thumb. */
.hero-dots { display: flex; justify-content: center; gap: 0; margin-top: 28px; }
.hero-dots button {
  all: unset;
  cursor: pointer;
  width: 20px; height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.hero-dots button::before {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--muted-2);
  transition: background var(--dur) ease, transform var(--dur) ease;
}
.hero-dots button:hover::before { transform: scale(1.4); }
.hero-dots button.on::before { background: var(--ink); }

/* =========================================================
   Categories bar (filters)
   ========================================================= */

.categories {
  max-width: var(--max);
  margin: clamp(64px, 10vh, 120px) auto clamp(24px, 4vh, 40px);
  padding: 0 var(--pad-x);
  display: flex;
  justify-content: center;
  gap: clamp(28px, 5vw, 64px);
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  letter-spacing: .18em;
  text-transform: uppercase;
}
.categories button {
  all: unset;
  cursor: pointer;
  padding: 8px 2px;
  color: var(--muted);
  position: relative;
  transition: color var(--dur) ease;
}
.categories button:hover { color: var(--ink); }
.categories button.active { color: var(--ink); }
.categories button.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--ink);
}

/* =========================================================
   Index table
   ========================================================= */

.index-section {
  max-width: var(--max);
  margin: 0 auto clamp(80px, 12vh, 140px);
  padding: 0 var(--pad-x);
}

.index-header {
  display: grid;
  grid-template-columns: 60px 104px 1fr 220px 150px 20px;
  gap: var(--sp-4);
  padding: 12px 4px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: lowercase;
  letter-spacing: .06em;
  color: var(--muted);
}
.index-header .col-name { color: var(--ink); }

.index-list { list-style: none; margin: 0; padding: 0; }

.index-group { margin-top: 56px; }
.index-group:first-child { margin-top: 32px; }
.index-group[hidden] { display: none; }

.group-head {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: var(--sp-4);
  align-items: baseline;
  padding: 0 4px 12px;
  border-bottom: 1px solid var(--ink);
}
.group-num, .group-count {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--muted);
  letter-spacing: .06em;
}
.group-label { font-size: var(--fs-lg); letter-spacing: -.01em; text-transform: lowercase; }

.index-row {
  display: grid;
  grid-template-columns: 60px 104px 1fr 220px 150px 20px;
  gap: var(--sp-4);
  align-items: baseline;
  padding: 14px 4px;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  position: relative;
  transition: background var(--dur-fast) ease, color var(--dur-fast) ease;
}
.index-row:hover { background: var(--hover); }

.index-row .num,
.index-row .year,
.index-row .medium,
.index-row .dims {
  font-family: var(--font-mono);
  font-size: var(--fs-md);
  color: var(--muted);
  text-transform: lowercase;
  letter-spacing: .01em;
}
.index-row .num { color: var(--ink); }
.index-row .name {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  color: var(--ink);
  text-transform: lowercase;
  letter-spacing: -.005em;
}
.index-row .name .arrow {
  display: inline-block;
  margin-left: 10px;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity var(--dur) ease, transform var(--dur) ease;
  color: var(--muted);
}
.index-row:hover .name .arrow { opacity: 1; transform: translateX(0); }

.index-row .status { display: inline-flex; align-items: center; gap: 8px; }
.index-row .status::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--muted-2);
  flex-shrink: 0;
}
.index-row .status.realized::before { background: var(--ink); }
.index-row .status.in-progress::before {
  background: transparent;
  border: 1px solid var(--ink);
  width: 5px; height: 5px;
}
.index-row .status.not-realized::before {
  background: transparent;
  border: 1px dashed var(--muted-2);
  width: 5px; height: 5px;
}

.index-row .has-img { font-size: 7px; color: var(--muted-2); text-align: right; }

/* the whole row is the hit area, so the markup stays a grid of cells */
.index-row-link { position: absolute; inset: 0; z-index: 3; }
.index-row > .num,
.index-row > .year,
.index-row > .name,
.index-row > .medium,
.index-row > .dims,
.index-row > .has-img { position: relative; z-index: 2; }

/* Hover thumb — floats near cursor (the system's single shadow) */
.hover-thumb {
  position: fixed;
  top: 0; left: 0;
  width: 280px;
  height: 200px;
  background: var(--plate);
  pointer-events: none;
  opacity: 0;
  transform: translate3d(0, 0, 0) scale(.98);
  transition: opacity var(--dur-fast) ease, transform var(--dur-fast) ease;
  z-index: 100;
  overflow: hidden;
  box-shadow: var(--shadow-thumb);
}
.hover-thumb.on { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
.hover-thumb img { width: 100%; height: 100%; object-fit: contain; }
.hover-thumb .placeholder {
  width: 100%; height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--plate-2), var(--plate));
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: lowercase;
  letter-spacing: .1em;
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer { border-top: 1px solid var(--rule); padding: var(--sp-6) var(--pad-x) 40px; }
.site-footer .inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  font-size: var(--fs-md);
}
.site-footer h4 {
  margin: 0 0 12px;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--muted);
  font-weight: 500;
}
.site-footer a { display: block; padding: 3px 0; color: var(--ink-2); }
.site-footer a:hover { color: var(--ink); }
.site-footer .colophon {
  max-width: var(--max);
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--rule-soft);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--muted);
  text-transform: lowercase;
  letter-spacing: .04em;
}

/* =========================================================
   Project page
   ========================================================= */

.project {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 8vh, 96px) var(--pad-x) 80px;
}

.project-head {
  display: grid;
  grid-template-columns: 60px 90px 1fr 130px 90px 112px;
  gap: var(--sp-4);
  padding: 12px 4px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: var(--fs-md);
  color: var(--muted);
  text-transform: lowercase;
  margin-bottom: 48px;
}
.project-head .num { color: var(--ink); }
.project-head .name { font-family: var(--font-sans); color: var(--ink); font-size: var(--fs-body); }
.project-head .status { display: inline-flex; align-items: center; gap: 8px; }
.project-head .status::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ink);
}
.project-head .status.in-progress::before {
  background: transparent;
  border: 1px solid var(--ink);
  width: 5px; height: 5px;
}
.project-head .status.not-realized::before {
  background: transparent;
  border: 1px dashed var(--muted-2);
  width: 5px; height: 5px;
}

.project-title-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: var(--sp-7);
  align-items: end;
}
.project-title-block h1 {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--fs-hero);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 0;
  text-transform: lowercase;
  text-wrap: balance;
}
.project-title-block p {
  margin: 0;
  font-size: var(--fs-body);
  color: var(--ink-2);
  max-width: 44ch;
  text-wrap: pretty;
}

.project-figure {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--plate);
  margin-bottom: 12px;
  overflow: hidden;
}
.project-figure.tall { aspect-ratio: 4 / 5; }
.project-figure.wide { aspect-ratio: 21 / 9; }
.project-figure.portrait { aspect-ratio: 683 / 1024; }
.project-figure img { width: 100%; height: 100%; object-fit: contain; display: block; }
.project-figure video { width: 100%; height: 100%; object-fit: contain; display: block; background: var(--plate); }
.clip-figure { background: var(--plate); }
.clips .project-pair { margin-top: 32px; }
.project-figure .contain { object-fit: contain; background: var(--white); }
.project-figure .placeholder {
  width: 100%; height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--plate-2), var(--plate));
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: .1em;
  text-transform: lowercase;
}
.home-page .project-figure.image-pending { background: var(--plate); }
.home-page .project-figure.image-ready { background: transparent; }
.home-page .project-figure.image-error { display: none !important; }

.project-caption {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--muted);
  text-transform: lowercase;
  letter-spacing: .04em;
  margin-bottom: var(--sp-7);
}

.project-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
  margin-bottom: 12px;
}
.project-pair .project-figure { margin-bottom: 0; }

.project-pair--flush { margin-bottom: 0; }

.fig-center { max-width: 760px; margin: 0 auto; }

/* Prev / next */
.project-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
  border-top: 1px solid var(--rule);
  padding-top: 32px;
  margin-top: 80px;
}
.project-nav a {
  display: block;
  padding: 8px 0;
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--muted);
  text-transform: lowercase;
  transition: color var(--dur) ease;
}
.project-nav a:hover { color: var(--ink); }
.project-nav a .label {
  display: block;
  font-size: var(--fs-xs);
  letter-spacing: .12em;
  margin-bottom: 6px;
}
.project-nav a .title {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  color: var(--ink);
  text-transform: lowercase;
}
.project-nav a.next { text-align: right; }

/* =========================================================
   Facts — catalogue metadata strip
   ========================================================= */

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
  border-top: 1px solid var(--rule);
  padding-top: var(--sp-3);
  margin: -24px 0 96px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: lowercase;
  letter-spacing: .04em;
}
.facts dt { color: var(--muted); margin-bottom: 6px; }
.facts dd { margin: 0; color: var(--ink); }

/* =========================================================
   Reading — palindrome table
   ========================================================= */

.reading { margin: 0 0 var(--sp-8); }
.clips { margin: 0 0 var(--sp-8); }

/* the sentence taken apart — the same definition list as the catalogue facts,
   but the terms are grammatical functions and the values are the work itself.
   Five terms, so five columns, hairline rule above like every other group. */
.oracao { margin: 0 0 var(--sp-8); }
.parse {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--sp-4);
  border-top: 1px solid var(--ink);
  padding-top: var(--sp-3);
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: lowercase;
  letter-spacing: .04em;
}
.parse dt { color: var(--muted); margin-bottom: 6px; }
.parse dd { margin: 0; color: var(--ink); }

/* the technical sheet — the catalogue's own definition-list grammar, but set
   as rows rather than as a four-column strip: eight specification fields with
   long prose values need a wide value column. No border-top, because the
   section head above already opens the group with its black hairline; the
   light rule between rows keeps the catalogue texture. */
.spec {
  margin: 0 0 var(--sp-8);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: lowercase;
  letter-spacing: .04em;
}
.spec > div {
  display: grid;
  grid-template-columns: clamp(150px, 18vw, 240px) 1fr;
  gap: var(--sp-4);
  padding: 14px 4px;
  border-bottom: 1px solid var(--rule);
}
.spec dt { margin: 0; color: var(--muted); }
.spec dd { margin: 0; color: var(--ink); max-width: 76ch; text-wrap: pretty; }

.oracao-intro {
  padding: 24px 4px 32px;
  margin: 0;
  color: var(--ink-2);
  max-width: 64ch;
  text-wrap: pretty;
}
/* a hairline closes the list, so the two paragraphs read as a frame around
   the decomposed sentence rather than as loose prose */
.oracao-outro {
  padding: 32px 4px 0;
  margin: 0;
  border-top: 1px solid var(--rule);
  color: var(--ink-2);
  max-width: 64ch;
  text-wrap: pretty;
}

/* closing prose — a single paragraph of the artist's own text standing on its
   own, the way the oração outro closes the sentence: hairline above, a wider
   measure than the reading intro, and room before the specification below */
.prose-close {
  padding: 32px 4px 0;
  margin: 0 0 var(--sp-8);
  border-top: 1px solid var(--rule);
  color: var(--ink-2);
  max-width: 72ch;
  text-wrap: pretty;
}

/* the documentary keeps its studio sound and real controls, so it never
   autoplays — nothing moves or makes noise until the visitor asks */
.clip-doc video { object-fit: contain; }

/* the image-led home sequence — native proportions and irregular editorial scale */
.home-editorial {
  max-width: var(--max);
  margin: 0 auto clamp(80px, 10vh, 120px);
  padding: 0 var(--pad-x);
}
.home-feature { margin: 0 0 clamp(72px, 8vw, 112px); }
.home-feature .section-head { margin-bottom: 24px; }
.home-feature-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(20px, 4vw, 48px);
}
.home-feature-pair > div { min-width: 0; }
.home-feature .project-figure { margin-bottom: 10px; }
.home-feature .project-caption { margin: 0; }
.home-fullbleed { margin-inline: 0; }
.home-fullbleed .project-figure { margin-bottom: 12px; }
.home-feature-link {
  max-width: none;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: .04em;
}
.home-feature-link a { color: var(--muted); }
.home-feature-link a:hover { color: var(--ink); }
.home-artist-note {
  max-width: 48ch;
  margin: 20px 0 0;
  color: var(--ink-2);
  line-height: 1.6;
}
.home-editorial-statement {
  max-width: 32ch;
  margin: 0 0 28px;
  color: var(--ink);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.22;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.home-editorial-statement span { color: var(--muted); }

/* the studio record on the home page — centred and quieter than the index */
.home-clip {
  max-width: 1080px;
  margin: 0 auto clamp(80px, 12vh, 140px);
  padding: 0 var(--pad-x);
}

/* generic section head — a black 1px rule opens every group */
.reading-head,
.section-head {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: var(--sp-4);
  padding: 0 4px 12px;
  border-bottom: 1px solid var(--ink);
  align-items: baseline;
}
.reading-head .lbl,
.section-head .lbl { font-size: var(--fs-lg); letter-spacing: -.01em; }
.reading-head .n,
.reading-head .c,
.section-head .n,
.section-head .c {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--muted);
  letter-spacing: .06em;
}

.reading-intro {
  display: grid;
  grid-template-columns: 60px 1fr 1fr;
  gap: var(--sp-4);
  padding: 24px 4px 32px;
  border-bottom: 1px solid var(--rule);
}
.reading-intro p { margin: 0; color: var(--ink-2); max-width: 44ch; text-wrap: pretty; }

.word-row {
  display: grid;
  grid-template-columns: 60px 1fr 1fr;
  gap: var(--sp-4);
  align-items: center;
  padding: 28px 4px;
  border-bottom: 1px solid var(--rule);
  transition: background var(--dur-fast) ease;
}
.word-row:hover { background: var(--hover); }
.word-row .n {
  font-family: var(--font-mono);
  font-size: var(--fs-md);
  color: var(--ink);
}

.word {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: clamp(36px, 5.4vw, 72px);
  line-height: 1;
  letter-spacing: .28em;
  color: var(--muted-2);
  display: flex;
}
.word span { transition: color var(--dur-underline) ease; }
.word .pivot { color: var(--ink); }
.word-row:hover .word span { color: var(--ink); }

.word-row .def { margin: 0; color: var(--ink-2); max-width: 40ch; text-wrap: pretty; }
.word-row .def b { font-weight: 500; color: var(--ink); }

.statement {
  text-align: center;
  margin: 0 0 112px;
  font-size: var(--fs-hero);
  line-height: 1.15;
  letter-spacing: -.02em;
  font-weight: 400;
  max-width: none;
  color: var(--ink);
  text-wrap: balance;
}
.statement .soft { color: var(--muted); }

/* object study — gentle sway (móbile) */
.mobile-anim { overflow: hidden; background: var(--white); perspective: 1400px; }
.mobile-anim img {
  transform-origin: 50% 0;
  animation: sway 9s ease-in-out infinite;
  will-change: transform;
}
@keyframes sway {
  0%, 100% { transform: rotateY(-14deg) rotate(-1.2deg); }
  50%      { transform: rotateY(14deg)  rotate(1.2deg); }
}

/* =========================================================
   Info page
   ========================================================= */

.info-page { max-width: var(--max); margin: 0 auto; padding: clamp(48px, 8vh, 96px) var(--pad-x) 80px; }

/* the facts strip follows the title-block here (not the project-head), so it
   carries no negative pull-back */
.info-facts { margin: 0 0 var(--sp-8); }

.info-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin: 0 0 var(--sp-8);
}
.info-body p { margin: 0; color: var(--ink-2); max-width: 52ch; text-wrap: pretty; }

/* curriculum — the index grammar with the medium/dims columns swapped for
   place/type. Same hairlines, same mono metadata. */
.cv-header,
.cv-row {
  display: grid;
  grid-template-columns: 60px 1fr 1fr 200px;
  gap: var(--sp-4);
  align-items: baseline;
  padding: 14px 4px;
}
.cv-header {
  padding: 12px 4px;
  border-top: 1px solid var(--ink);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--muted);
  text-transform: lowercase;
  letter-spacing: .06em;
  margin-top: 32px;
}
.cv-header .title { color: var(--ink); }
.cv-row { border-bottom: 1px solid var(--rule); }
.cv-row .year,
.cv-row .place,
.cv-row .type {
  font-family: var(--font-mono);
  font-size: var(--fs-md);
  color: var(--muted);
  text-transform: lowercase;
}
.cv-row .year { color: var(--ink); }
.cv-row .title {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  color: var(--ink);
  text-transform: lowercase;
  letter-spacing: -.005em;
}

/* =========================================================
   Responsive system
   The desktop catalogue stays intact above 820px. Tablet and phone
   layouts recompose only the grids that cannot retain their measure.
   ========================================================= */

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: -10000px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
}
.skip-link:focus { left: 12px; }

html { scroll-padding-top: calc(var(--header-h) + 16px); }

.menu-toggle { display: none; }

@media (max-width: 1200px) {
  .hero-arrow.prev { left: 4px; }
  .hero-arrow.next { right: 4px; }
}

@media (max-width: 820px) {
  :root {
    --fs-body: clamp(15px, calc(-.3846vw + 18.154px), 16px);
    --fs-hero: clamp(28px, max(calc(-2.5385vw + 50.215px), 4vw), 36px);
  }

  .index-header,
  .index-row { grid-template-columns: 40px 76px minmax(0, 1fr); gap: 12px; }
  .index-header > :nth-child(n+4),
  .index-row .medium,
  .index-row .dims,
  .index-row .has-img { display: none; }
  .index-row > .num,
  .index-row > .year,
  .index-row > .name { min-width: 0; }
  .index-row .name { overflow-wrap: anywhere; }

  .project-head {
    grid-template-columns: 40px 72px minmax(0, 1fr) 76px;
    gap: 12px;
  }
  .project-head .status,
  .project-head .area { display: none; }

  .hover-thumb { display: none; }
  .project-title-block { grid-template-columns: minmax(0, 1fr); }
  .project-pair { grid-template-columns: minmax(0, 1fr); }
  .home-feature-pair { gap: 22px; }
  .project-pair[style*="repeat(4"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 14px !important; }
  .nav { gap: 18px; align-items: center; }
  .nav > a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .lang-toggle { display: inline-flex; align-items: center; min-height: 44px; }
  .lang-toggle a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
  }
  .categories { flex-wrap: wrap; }

  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 72px; }
  .spec > div { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 12px 4px; }
  .parse { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .oracao-intro,
  .oracao-outro { padding-left: 0; padding-right: 0; }
  .reading-intro,
  .word-row { grid-template-columns: 40px minmax(0, 1fr); }
  .reading-intro > :first-child { display: none; }
  .reading-intro p:last-child,
  .word-row .def { grid-column: 2; }
  .word { letter-spacing: .2em; }
  .info-body { grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); }
  .cv-header,
  .cv-row { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
  .cv-header > :nth-child(n+3),
  .cv-row .place,
  .cv-row .type { display: none; }
  .section-head { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; }
  .site-footer .inner { grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); }
  .home-feature-pair { gap: 20px; }

  .project { padding-top: 56px; }
  .hero { padding-top: 56px; }
  .hero-figure--work { height: min(58vw, 500px); }
  .project-pair { gap: 18px; }
  .project-figure.has-image { aspect-ratio: var(--native-ratio) !important; }
  .project-figure.has-image img { width: 100%; height: 100%; object-fit: contain; }
  .facts { gap: 20px; }
  .site-header .inner { height: var(--header-h); }
}

/* Narrow phones (320–374): keep the existing 20px page margin, but give
   long catalogues a strict minmax grid and a compact, fully legible header. */
@media (max-width: 374px) {
  .hero-meta-top { gap: 8px; margin-bottom: 14px; font-size: 10px; }
  .hero-meta-top .left { gap: 10px; }
  .hero-figure--work { height: auto; aspect-ratio: var(--hero-slide-ratio); }
  .hero-arrow { width: 44px; height: 44px; background: rgba(255, 255, 255, .76); }
  .hero-caption { grid-template-columns: minmax(0, 1fr); gap: 4px; margin-top: 12px; }
  .hero-caption .right { text-align: left; }
  .hero-caption .left,
  .hero-caption .right { font-size: 10px; }
  .hero-dots { margin-top: 12px; }
  .categories { justify-content: flex-start; gap: 4px 12px; margin: 36px auto 24px; font-size: 10px; }
  .categories button { min-height: 44px; padding: 10px 2px; }
  .project { padding-top: 36px; }
  .project-head { grid-template-columns: 34px minmax(0, 1fr) auto; column-gap: 8px; }
  .project-head .num { font-size: 11px; }
  .project-head .type { font-size: 10px; }
  .project-head .name { font-size: 13px; }
  .project-head .year { font-size: 11px; }
  .project-title-block { gap: 16px; margin-bottom: 40px; }
  .project-title-block h1 { font-size: var(--fs-hero); line-height: 1.08; letter-spacing: -.025em; }
  .project-title-block p { font-size: 15px; line-height: 1.62; }
  .facts { gap: 12px; margin: -8px 0 48px; }
  .facts > div { grid-template-columns: 72px minmax(0, 1fr); gap: 10px; }
  .facts dt, .facts dd { overflow-wrap: anywhere; }
  .index-header,
  .index-row { grid-template-columns: 30px 62px minmax(0, 1fr); gap: 8px; }
  .index-row { padding: 14px 2px; }
  .index-row .num,
  .index-row .year { font-size: 11px; }
  .index-row .name { font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
  .group-head { grid-template-columns: 30px minmax(0, 1fr) auto; gap: 8px; }
  .group-label { font-size: 18px; }
  .group-count { white-space: nowrap; }
  .site-header .inner {
    flex-wrap: wrap;
    align-content: center;
    padding-top: 4px;
    padding-bottom: 4px;
  }
  .site-header .nav {
    flex: 0 0 100%;
    justify-content: flex-end;
    margin-left: 0;
  }
}

/* Standard phones: the index, images and text share one measured edge. */
@media (max-width: 560px) {
  :root {
    --pad-x: clamp(20px, calc(10vw - 19px), 24px);
    --fs-body: clamp(15px, calc(1.8182vw + 9.1818px), 16px);
    --fs-hero: clamp(30px, calc(4vw + 17.2px), 36px);
    --header-h: clamp(54px, calc(1.6667vw + 48.6667px), 56px);
  }
  html, body { width: 100%; overflow-x: clip; }
  body { font-size: var(--fs-body); }
  p { max-width: 38ch; line-height: 1.65; }
  .site-header { position: sticky; padding-top: env(safe-area-inset-top); }
  .site-header .inner {
    height: auto;
    min-height: var(--header-h);
    padding-left: max(var(--pad-x), env(safe-area-inset-left));
    padding-right: max(var(--pad-x), env(safe-area-inset-right));
  }
  .brand { white-space: nowrap; font-size: 13px; }
  .brand .dot { margin-right: 8px; }
  .nav {
    display: flex;
    position: static;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(8px, 2.7vw, 14px);
    width: auto;
    margin-left: auto;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 12px;
  }
  .nav > a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 0;
    border-bottom: 0;
    white-space: nowrap;
  }
  .nav > a::after { display: none; }
  .nav > a.active { color: var(--ink); }
  .lang-toggle { display: inline-flex; align-items: center; min-height: 44px; gap: 2px; margin: 0; }
  .lang-toggle a { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; min-height: 44px; padding: 8px 4px; font-size: 11px; }

  .hero { padding-top: 32px; padding-bottom: 24px; }
  .hero-meta-top { margin-bottom: 16px; }
  .hero-figure--work {
    width: 100%;
    height: auto;
    aspect-ratio: var(--hero-slide-ratio);
    transition: height .28s cubic-bezier(.2, .7, .2, 1);
  }
  .hero-slide { padding: 0; }
  .hero-slide picture.hero-picture { display: block; width: 100%; height: 100%; }
  .hero-slide img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: none;
    object-fit: initial;
  }
  .hero-arrow { width: 44px; height: 44px; background: rgba(255, 255, 255, .74); }
  .hero-arrow.prev { left: 0; }
  .hero-arrow.next { right: 0; }
  .hero-caption { grid-template-columns: minmax(0, 1fr); gap: 4px; margin-top: 14px; }
  .hero-caption .left,
  .hero-caption .right { text-align: left; }
  .hero-caption .right { grid-row: 3; }
  .hero-dots { margin-top: 16px; }
  .hero-dots button { width: 24px; height: 24px; }

  .categories {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-items: start;
    gap: 4px 8px;
    margin-top: 36px;
    margin-bottom: 28px;
    font-size: 10px;
    letter-spacing: .14em;
  }
  .categories button { min-height: 44px; padding: 10px 2px; white-space: nowrap; }
  .index-section { margin-bottom: var(--sp-7); }
  .index-header { padding: 10px 2px; font-size: 10px; }
  .index-group { margin-top: 40px; }
  .index-group:first-child { margin-top: 24px; }
  .group-head { padding: 0 2px 10px; }
  .index-row { padding: 14px 2px; }
  .index-row .name { line-height: 1.4; }

  .project { padding-top: 40px; padding-bottom: 56px; }
  .project-head {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    column-gap: 10px;
    row-gap: 2px;
    padding: 10px 2px;
    margin-bottom: 36px;
    font-size: 11px;
  }
  .project-head .num { grid-row: 1 / 3; align-self: start; }
  .project-head .type { grid-column: 2 / -1; grid-row: 1; }
  .project-head .name { grid-column: 2; grid-row: 2; min-width: 0; font-size: 13px; }
  .project-head .year { grid-column: 3; grid-row: 2; text-align: right; white-space: nowrap; font-size: 11px; }
  .project-title-block { grid-template-columns: minmax(0, 1fr); gap: 18px; margin-bottom: 44px; align-items: start; }
  .project-title-block h1 { font-size: var(--fs-hero); line-height: 1.08; letter-spacing: -.025em; text-wrap: balance; overflow-wrap: anywhere; }
  .project-title-block p { max-width: 38ch; font-size: 16px; line-height: 1.65; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 12px; margin: -8px 0 48px; padding-top: 14px; }
  .facts > div { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 12px; }
  .facts dt { margin: 0; }
  .facts dd { min-width: 0; overflow-wrap: anywhere; line-height: 1.5; }
  .info-facts { margin-bottom: 48px; }

  .project-figure.has-image {
    aspect-ratio: var(--native-ratio) !important;
    height: auto;
    margin-bottom: 10px;
  }
  .project-figure picture { display: block; width: 100%; height: 100%; }
  .project-figure img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  .project-figure .contain { object-fit: contain; }
  .project-figure video { object-fit: contain; }
  .project-pair { grid-template-columns: minmax(0, 1fr); gap: 0; margin-bottom: 8px; }
  .project-pair > div { min-width: 0; }
  .project-pair .project-caption { margin-bottom: 24px; }
  .project-pair--flush { margin-bottom: 0; }
  .project-pair--flush .project-caption { margin-bottom: 24px; }
  .project-pair[style*="repeat(4"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; }
  .fig-center { max-width: 100%; }

  .project-caption {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
    margin: 0 0 32px;
    font-size: 10px;
    line-height: 1.5;
    letter-spacing: .025em;
  }
  .project-caption span { min-width: 0; overflow-wrap: anywhere; }
  .project-caption span:empty { display: none; }

  .section-head,
  .reading-head {
    grid-template-columns: 24px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 0 2px 10px;
  }
  .reading-head .lbl,
  .section-head .lbl { font-size: 18px; min-width: 0; }
  .reading-head .n,
  .reading-head .c,
  .section-head .n,
  .section-head .c { font-size: 10px; line-height: 1.4; }
  .reading-head .c,
  .section-head .c { max-width: 132px; text-align: right; }
  .reading-intro { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 20px 2px 24px; }
  .reading-intro p { max-width: 40ch; line-height: 1.65; }
  .reading-intro p:last-child { grid-column: auto; }
  .word-row { grid-template-columns: 28px minmax(0, 1fr); gap: 10px; padding: 22px 2px; }
  .word-row .n { font-size: 11px; }
  .word { font-size: clamp(32px, 9vw, 40px); letter-spacing: .12em; }
  .word-row .def { grid-column: 2; font-size: 15px; line-height: 1.55; }

  .facts,
  .spec,
  .parse,
  .cv-header,
  .cv-row { min-width: 0; }
  .spec { margin-bottom: 48px; font-size: 11px; line-height: 1.55; }
  .spec > div { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 12px 2px; }
  .spec dd { overflow-wrap: anywhere; }
  .parse { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; font-size: 10px; }
  .parse dd { overflow-wrap: anywhere; line-height: 1.5; }
  .oracao-intro { padding: 20px 2px 24px; line-height: 1.65; }
  .oracao-outro,
  .prose-close { padding: 24px 2px 0; line-height: 1.65; }
  .oracao,
  .reading,
  .clips,
  .info-body { margin-bottom: 48px; }
  .prose-close { margin-bottom: 48px; }
  .statement {
    max-width: 34ch;
    margin: 0 auto 56px;
    padding: 0 2px;
    font-size: clamp(24px, 6.7vw, 32px);
    line-height: 1.25;
    text-wrap: balance;
  }
  .mobile-anim img { animation-duration: 14s; }
  .home-editorial { margin-bottom: var(--sp-7); }
  .home-feature { margin-bottom: 56px; }
  .home-feature .section-head { margin-bottom: 18px; }
  .home-feature-pair { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .home-feature-pair .project-caption { margin-bottom: 0; }
  .home-fullbleed { margin-inline: calc(-1 * var(--pad-x)); }
  .home-fullbleed .project-figure { margin-bottom: 10px; }
  .home-feature-link { margin-top: 14px; }
  .home-clip { margin-bottom: var(--sp-7); }
  .home-clip .section-head { margin-bottom: 16px; }
  .home-clip .project-caption { margin-bottom: 20px; }
  .project-nav { grid-template-columns: minmax(0, 1fr); gap: 4px; padding-top: 20px; margin-top: 48px; }
  .project-nav a { min-height: 52px; padding: 10px 0; font-size: 11px; }
  .project-nav a.next { text-align: left; }
  .project-nav a .title { display: block; max-width: 34ch; font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }

  .info-body { gap: 20px; }
  .info-body p { max-width: 40ch; font-size: 16px; line-height: 1.65; }
  .cv-header,
  .cv-row { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 13px 2px; }
  .cv-row .title { min-width: 0; overflow-wrap: anywhere; line-height: 1.45; }
  .cv-header { margin-top: 24px; }
  .site-footer { padding: 36px max(var(--pad-x), env(safe-area-inset-right)) calc(28px + env(safe-area-inset-bottom)) max(var(--pad-x), env(safe-area-inset-left)); }
  .site-footer .inner { gap: 20px; }
  .site-footer a { min-height: 44px; padding: 10px 0; overflow-wrap: anywhere; }
  .site-footer .colophon { margin-top: 28px; padding-top: var(--sp-3); flex-wrap: wrap; gap: 8px 16px; font-size: 10px; }

  /* Tap and scroll remain native; no hover-only information or fixed viewport
     height is used on iOS Safari. */
  .nav, .hero, .project, .info-page { max-width: 100%; }
}

@media (max-width: 359px) {
  .project-head { grid-template-columns: 30px minmax(0, 1fr) auto; column-gap: 7px; }
  .project-head .year { font-size: 10px; }
  .section-head,
  .reading-head { grid-template-columns: 20px minmax(0, 1fr) auto; gap: 8px; }
  .reading-head .c,
  .section-head .c { max-width: 105px; font-size: 9px; }
  .word { font-size: 30px; letter-spacing: .1em; }
  .facts > div { grid-template-columns: 68px minmax(0, 1fr); gap: 8px; }
}


/* Homepage mobile: keep editorial scale differences instead of flattening all
   figures to the same edge. Native image ratios determine figure height. */
@media (max-width: 560px) {
  .home-header .inner {
    height: auto;
    min-height: 100px;
    padding-top: 6px;
    padding-bottom: 6px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    flex-wrap: nowrap;
  }
  .home-header .brand {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    min-height: 44px;
  }
  .home-header .nav {
    display: flex;
    position: static;
    flex: 0 0 44px;
    width: 100%;
    min-height: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    justify-content: space-between;
    align-items: center;
    gap: clamp(2px, 1vw, 6px);
    border: 0;
    background: transparent;
    font-size: 12px;
  }
  .home-header .nav > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 8px 4px;
    white-space: nowrap;
  }
  .home-header .lang-toggle { min-height: 44px; margin: 0; gap: 0; }
  .home-header .lang-toggle a { min-width: 44px; min-height: 44px; }

  .home-page .hero-figure--work {
    width: 100%;
    height: auto;
    aspect-ratio: var(--hero-slide-ratio);
    transition: height .28s cubic-bezier(.2, .7, .2, 1);
  }
  .home-page .hero-slide { align-items: flex-start; }
  .home-page .hero-slide picture.hero-picture { display: block; width: 100%; height: 100%; }
  .home-page .hero-slide img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: none;
    object-fit: initial;
  }
  .home-page .hero-caption {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: baseline;
    margin-top: 12px;
    gap: 4px 12px;
  }
  .home-page .hero-caption .center {
    grid-column: 1 / -1;
    grid-row: 1;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 400;
  }
  .home-page .hero-caption .left,
  .home-page .hero-caption .right {
    grid-row: 2;
    min-width: 0;
    font-size: 10px;
    line-height: 1.4;
    letter-spacing: .025em;
  }
  .home-page .hero-caption .left { grid-column: 1; }
  .home-page .hero-caption .right { grid-column: 2; text-align: right; }
  .home-page .hero-arrow {
    width: 44px;
    height: 44px;
    background: transparent;
    color: var(--fg3);
    font-size: 14px;
  }
  .home-page .hero-dots {
    position: relative;
    left: 50%;
    width: min(308px, calc(100vw - 12px));
    max-width: calc(100vw - 12px);
    height: 44px;
    margin-top: 6px;
    transform: translateX(-50%);
  }
  .home-page .hero-dots button {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
  }

  .home-page .home-painting-pair > div:last-child {
    width: min(78%, 300px);
    margin-left: auto;
  }
  .home-page .home-chain-pair > div:first-child {
    width: min(76vw, 280px);
    margin-inline: auto;
  }
  .home-page .home-chain-pair > div:last-child {
    width: min(64%, 210px);
    margin-left: auto;
  }
  .home-page .home-chain-cube {
    width: min(84%, 320px);
    max-width: none;
    margin: 34px 8% 0 auto;
  }
  .home-page .home-escrituras > .project-figure,
  .home-page .home-escrituras > .project-caption,
  .home-page .home-escrituras > .home-feature-link {
    width: min(76%, 280px);
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
  }
  .home-page .home-clip {
    width: 86%;
    max-width: none;
    margin: 0 var(--pad-x) var(--sp-7) auto;
    padding-inline: 0;
  }
  .home-page .home-clip .section-head { margin-bottom: 16px; }

  .home-page .categories {
    grid-template-columns: max-content max-content max-content;
    justify-content: start;
    justify-items: start;
    gap: 2px clamp(20px, 5vw, 24px);
    margin-top: 22px;
    margin-bottom: 20px;
    font-size: 10px;
    letter-spacing: .12em;
  }
  .home-page .categories button {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    height: 44px;
    padding: 0;
  }
  .home-page .home-feature-link > a,
  .home-page .home-clip > p > a,
  .home-page .home-final-work > p > a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-block: 12px;
  }

  .home-page #index .index-header,
  .home-page #index .index-row {
    grid-template-columns: 32px 48px minmax(0, 1fr);
    column-gap: 8px;
  }
  .home-page #index .index-header { padding: 9px 2px; font-size: 9px; }
  .home-page #index .index-group { margin-top: 27px; }
  .home-page #index .index-group:first-child { margin-top: 17px; }
  .home-page #index .group-head {
    grid-template-columns: 32px minmax(0, 1fr) auto;
    column-gap: 8px;
    padding: 0 2px 8px;
  }
  .home-page #index .group-num,
  .home-page #index .group-count { font-size: 10px; }
  .home-page #index .group-count { white-space: nowrap; }
  .home-page #index .index-row {
    grid-template-rows: auto auto;
    align-items: start;
    row-gap: 2px;
    padding: 9px 2px 10px;
  }
  .home-page #index .index-row > .num { grid-column: 1; grid-row: 1 / span 2; }
  .home-page #index .index-row > .year { grid-column: 2; grid-row: 1 / span 2; }
  .home-page #index .index-row > .name {
    grid-column: 3;
    grid-row: 1;
    font-size: 14px;
    line-height: 1.3;
  }
  .home-page #index .index-row > .medium {
    display: block;
    grid-column: 3;
    grid-row: 2;
    min-width: 0;
    margin-top: 1px;
    font-size: 10px;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }
  .home-page #index .index-row > .dims,
  .home-page #index .index-row > .has-img { display: none; }
  .home-page #index.index-section { margin-bottom: 48px; }
  .home-page .home-editorial { margin-top: 80px; }
  .home-page .home-feature { margin-bottom: 48px; }

  .home-page .home-sala > .project-caption { margin-bottom: 0; }
  .home-page .home-sala .home-artist-note {
    width: 90%;
    margin: 16px 0 0 auto;
  }
  .home-page .home-sala .home-feature-link { width: 90%; margin: 12px 0 0 auto; }
  .home-page .home-escrituras > .project-figure,
  .home-page .home-escrituras > .project-caption,
  .home-page .home-escrituras > .home-feature-link { width: 82%; }
  .home-page .home-escrituras .project-caption { margin-bottom: 0; }
  .home-page .home-escrituras .home-feature-link { margin-top: 10px; }
  .home-page .home-final-work { margin-bottom: clamp(40px, 12vw, 52px); }
  .home-page .home-final-work .project-caption,
  .home-page .home-final-work > p { margin-left: var(--pad-x); margin-right: var(--pad-x); }
  .home-page .home-final-work .project-caption { margin-bottom: 0; }
  .home-page .home-final-work > p { margin-top: 12px; }

  .home-footer { padding-top: 28px; padding-bottom: 24px; }
  .home-footer .inner { gap: 10px; }
  .home-footer h4 { margin-bottom: 6px; }
  .home-footer .colophon { margin-top: 20px; padding-top: 12px; gap: 8px 12px; }
}

/* Homepage desktop art direction. Restricted to 821px+ so the established
   tablet/mobile compositions and the global design tokens remain untouched. */
@media (min-width: 821px) {
  .home-page .hero {
    padding-top: clamp(52px, 7vh, 82px);
    padding-bottom: clamp(36px, 5vh, 60px);
  }
  .home-page .hero-meta-top {
    margin-bottom: 14px;
    color: var(--fg4);
    font-size: var(--fs-xs);
  }
  .home-page .hero-meta-top .left { gap: clamp(12px, 1.8vw, 24px); }
  .home-page .hero-meta-top .right { color: var(--fg4); }
  .home-page #hero-figure .hero-slide picture {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
  }
  .home-page #hero-figure .hero-slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
  }
  .home-page .hero-arrow.prev { left: -28px; }
  .home-page .hero-arrow.next { right: -28px; }
  .home-page .hero-caption {
    margin-top: 16px;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }
  .home-page .hero-caption .left,
  .home-page .hero-caption .right { font-size: var(--fs-xs); }
  .home-page .hero-caption .center {
    font-size: clamp(18px, 1.4vw, 22px);
    line-height: 1.15;
    letter-spacing: -.015em;
  }
  .home-page .hero-dots { margin-top: 18px; }

  /* Abertura do arquivo: filtro é navegação secundária, não outro hero. */
  .home-page .categories {
    justify-content: flex-start;
    gap: clamp(18px, 2.2vw, 30px);
    margin-top: clamp(34px, 4vw, 56px);
    margin-bottom: 18px;
    font-size: 10px;
    letter-spacing: .08em;
  }
  .home-page .categories button { padding: 6px 1px; }
  .home-page #index .index-header,
  .home-page #index .index-row {
    grid-template-columns: 48px 84px minmax(180px, 1fr) minmax(165px, 220px) minmax(116px, 150px) 14px;
    column-gap: clamp(12px, 1.25vw, 18px);
  }
  .home-page #index .index-header { padding-top: 10px; padding-bottom: 10px; }
  .home-page #index .index-header > :nth-child(2),
  .home-page #index .index-header > :nth-child(5) { text-align: left; }
  .home-page #index .index-group { margin-top: clamp(36px, 3.4vw, 48px); }
  .home-page #index .index-group:first-child { margin-top: 28px; }
  .home-page #index .group-head {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    column-gap: clamp(12px, 1.25vw, 18px);
    padding-bottom: 10px;
  }
  .home-page #index .group-label { font-size: 18px; letter-spacing: -.01em; }
  .home-page #index .group-count { white-space: nowrap; }
  .home-page #index .index-row {
    padding-top: 11px;
    padding-bottom: 11px;
  }
  .home-page #index .index-row .name { font-size: var(--fs-body); }
  .home-page .index-section { margin-bottom: 0; }

  /* A deliberate reset from catalog density into a visual essay. */
  .home-page .home-editorial {
    margin-top: clamp(112px, 10vw, 152px);
    margin-bottom: clamp(84px, 8vw, 120px);
  }
  .home-page .home-feature { margin-bottom: clamp(88px, 8vw, 120px); }
  .home-page .home-feature .section-head { margin-bottom: clamp(20px, 2.2vw, 30px); }
  .home-page .home-painting-pair,
  .home-page .home-chain-pair {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: start;
    gap: clamp(20px, 3vw, 44px);
  }
  .home-page .home-painting-pair > div:first-child { grid-column: 1 / span 6; }
  .home-page .home-painting-pair > div:last-child {
    grid-column: 9 / span 4;
    margin-top: clamp(74px, 9vw, 126px);
  }
  .home-page .home-painting .project-caption { margin-top: 10px; }
  .home-page .home-painting { margin-bottom: clamp(92px, 9vw, 132px); }

  .home-page .home-sala { margin-bottom: clamp(104px, 10vw, 144px); }
  .home-page .home-sala .home-fullbleed { max-width: 100%; }
  .home-page .home-sala .home-fullbleed .project-figure { margin-bottom: 10px; }
  .home-page .home-sala > .project-caption { margin-bottom: 0; }
  .home-page .home-artist-note {
    width: min(42%, 470px);
    max-width: 48ch;
    margin: clamp(22px, 2.5vw, 36px) 0 0 auto;
    line-height: 1.6;
  }
  .home-page .home-sala .home-feature-link {
    width: min(42%, 470px);
    margin: 14px 0 0 auto;
  }

  .home-page .home-materia { margin-bottom: clamp(112px, 9vw, 136px); }
  .home-page .home-materia .home-editorial-statement {
    max-width: 28ch;
    margin: 0 0 clamp(32px, 4vw, 56px) clamp(60px, 8vw, 116px);
    font-size: clamp(28px, 3.1vw, 42px);
    line-height: 1.2;
  }
  .home-page .home-chain-pair > div:first-child { grid-column: 2 / span 5; }
  .home-page .home-chain-pair > div:last-child {
    grid-column: 9 / span 4;
    margin-top: clamp(58px, 7vw, 96px);
  }
  .home-page .home-chain-pair .home-b-image {
    display: grid;
    place-items: center;
  }
  .home-page .home-chain-pair .home-b-image .responsive-picture {
    display: grid;
    place-items: center;
  }
  .home-page .home-chain-pair .home-b-image img {
    width: clamp(280px, 30vw, 440px) !important;
    height: auto !important;
    max-width: 100%;
    object-fit: contain;
  }
  .home-page .home-chain-pair > div:first-child .project-caption {
    width: 100%;
    margin-top: 12px;
  }
  .home-page .home-chain-pair > div:last-child .project-figure .responsive-picture {
    display: grid;
    place-items: center;
  }
  .home-page .home-chain-pair > div:last-child .project-figure img {
    width: 64% !important;
    height: auto !important;
    max-width: 100%;
    object-fit: contain;
  }
  .home-page .home-chain-pair > div:last-child .project-caption { margin-top: 10px; }
  .home-page .home-chain-cube {
    width: min(44%, 560px);
    max-width: none;
    margin: clamp(52px, 6vw, 84px) 10% 0 auto;
  }
  .home-page .home-chain-cube .project-caption { margin-top: 10px; }

  .home-page .home-escrituras {
    width: 100%;
    margin-bottom: clamp(104px, 10vw, 144px);
  }
  .home-page .home-escrituras > .project-figure {
    width: min(62.5%, 760px);
    max-width: 760px;
    margin-left: clamp(32px, 8.333%, 108px);
  }
  .home-page .home-escrituras > .project-caption,
  .home-page .home-escrituras > .home-feature-link {
    width: min(62.5%, 760px);
    max-width: 760px;
    margin-left: clamp(32px, 8.333%, 108px);
  }
  .home-page .home-escrituras .project-caption { margin-top: 10px; }

  /* Process is a documentary register, set in a narrower measure than works. */
  .home-page .home-clip {
    width: min(62.5%, 720px);
    max-width: none;
    margin: 0 var(--pad-x) clamp(56px, 6vw, 84px) auto;
    padding-inline: 0;
  }
  .home-page .home-clip .section-head { margin-bottom: 18px; }
  .home-page .home-clip .project-caption { margin-top: 10px; margin-bottom: 0; }
  .home-page .home-clip > p { margin: 14px 0 0; }
  .home-page .home-final-work {
    width: min(72%, 900px);
    margin: 0 auto clamp(112px, 10vw, 152px);
  }
  .home-page .home-final-work .project-figure { margin-bottom: 10px; }
  .home-page .home-final-work .project-caption,
  .home-page .home-final-work > p { max-width: 760px; margin-left: auto; margin-right: auto; }
  .home-page .home-final-work .project-caption { margin-bottom: 0; }
  .home-page .home-final-work > p { margin-top: 14px; }
}

@media (min-width: 821px) and (max-width: 1199px) {
  .home-page .hero-figure--work { height: min(68vh, 590px); }
  .home-page .home-editorial { margin-top: 104px; }
  .home-page .home-feature { margin-bottom: 86px; }
  .home-page .home-painting-pair > div:last-child { margin-top: 68px; }
  .home-page .home-chain-pair > div:first-child { grid-column: 1 / span 5; }
  .home-page .home-chain-pair > div:last-child { grid-column: 8 / span 4; margin-top: 52px; }
  .home-page .home-materia .home-editorial-statement { margin-left: 42px; }
  .home-page .home-chain-cube { width: 48%; margin-right: 6%; }
  .home-page .home-clip { width: min(62.5%, 720px); }
  .home-page .home-final-work { width: 78%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .mobile-anim img { animation: none; }
  .hero-slide { transition: none; }
}

/* Shared media contract: the asset determines height. No editorial crops.
   Specificity bridges legacy responsive rules; layout widths stay unchanged. */
.project-figure.has-image,
.home-page .project-figure.has-image {
  aspect-ratio: auto !important;
  height: auto;
  min-height: 0;
  min-width: 0;
  align-self: start;
  overflow: visible;
  background: transparent;
}
.project-figure.has-image picture,
.home-page .project-figure.has-image picture {
  height: auto;
  min-height: 0;
  min-width: 0;
}
.project-figure.has-image img,
.home-page .project-figure.has-image img {
  height: auto !important;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  animation: none;
  transform: none;
}
.project-figure.image-error { display: none !important; }
.project-figure.clip-figure {
  aspect-ratio: auto !important;
  height: auto;
  min-height: 0;
  overflow: visible;
  align-self: start;
}
.project-figure.clip-figure video { height: auto; object-fit: contain; }
.hero-figure--work,
.home-page .hero-figure--work {
  height: auto !important;
  aspect-ratio: auto;
  overflow: visible;
}
.hero-figure--work .hero-slide { display: none; position: static; }
.hero-figure--work .hero-slide.on { display: flex; }
.hero-figure--work .hero-slide picture,
.home-page #hero-figure .hero-slide picture.hero-picture {
  display: flex;
  justify-content: center;
  width: 100%;
  height: auto;
  min-width: 0;
  min-height: 0;
}
.hero-figure--work .hero-slide img,
.home-page #hero-figure .hero-slide img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(72vh, 640px);
  object-fit: contain;
}
@media (max-width: 820px) {
  .hero-figure--work .hero-slide img,
  .home-page #hero-figure .hero-slide img { width: 100%; max-height: none; }
}

/* Local composition: painting and printmaking only. */
.home-painting .painting-print-composition { display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); gap:48px 24px; align-items:start; }
.home-painting .painting-print-primary { grid-column:1 / span 6; min-width:0; }
.home-painting .painting-print-engraving { grid-column:9 / span 4; margin-top:96px; min-width:0; }
.home-painting .painting-print-triptych { grid-column:3 / span 9; min-width:0; }
.home-painting .painting-exhibition-pair { position:relative; }
.home-painting .painting-exhibition { margin:32px 0 0; }
.home-painting .painting-exhibition img { width:100%; height:auto; }
@media (min-width:821px) and (hover:hover) and (pointer:fine) {
 .home-painting .painting-exhibition { position:absolute; inset:0; margin:0; opacity:0; pointer-events:none; transition:opacity 160ms ease; }
 .home-painting .painting-exhibition img { width:100%; height:100%; object-fit:contain; }
 .home-painting .painting-exhibition figcaption { display:none; }
 .home-painting .painting-original { transition:opacity 160ms ease; }
 .home-painting .painting-exhibition-pair:has(.painting-exhibition.image-ready):hover .painting-exhibition { opacity:1; }
 .home-painting .painting-exhibition-pair:has(.painting-exhibition.image-ready):hover .painting-original { opacity:0; }
}
@media (max-width:820px) {
 .home-painting .painting-print-composition { grid-template-columns:minmax(0,1fr); gap:48px; }
 .home-painting .painting-print-primary { grid-column:1; width:90%; }
 .home-painting .painting-print-engraving { grid-column:1; width:72%; margin:0 0 0 auto; }
 .home-painting .painting-print-triptych { grid-column:1; width:100%; }
 .home-painting .painting-exhibition { width:78%; margin-left:auto; }
}
@media (prefers-reduced-motion:reduce) {
 .home-painting .painting-exhibition, .home-painting .painting-original { transition:none; }
}

/* Sala de Leitura: local documentary constellation. */
.home-sala .sala-frame-pair { position:relative; }
.home-sala .sala-frame-second { display:none; }
@media (min-width:821px) and (hover:hover) and (pointer:fine) {
 .home-sala .sala-frame-second { display:block; position:absolute; top:0; left:0; width:100%; opacity:0; pointer-events:none; transition:opacity 280ms ease; }
 .home-sala .sala-frame-first { transition:opacity 280ms ease; }
 .home-sala .sala-frame-pair:has(.sala-frame-second.image-ready):hover .sala-frame-second { opacity:1; }
 .home-sala .sala-frame-pair:has(.sala-frame-second.image-ready):hover .sala-frame-first { opacity:0; }
}
.home-sala .sala-barthes { width:58%; margin:clamp(88px,10vw,144px) 8% clamp(88px,10vw,144px) auto; }
.home-sala .sala-barthes p { max-width:none; font-size:clamp(20px,2.1vw,30px); line-height:1.5; letter-spacing:-.015em; }
.home-sala .sala-barthes cite { display:block; margin-top:24px; font-family:var(--font-mono); font-size:var(--fs-sm); font-style:normal; color:var(--muted); }
.home-sala .sala-document-constellation { display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); gap:64px 24px; align-items:start; }
.home-sala .sala-document-constellation figure { margin:0; min-width:0; }
.home-sala .sala-tgi-cover { grid-column:2 / span 3; }
.home-sala .sala-tgi-pages { grid-column:7 / span 6; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; margin-top:64px; min-width:0; }
.home-sala .sala-gal { grid-column:8 / span 4; }
.home-sala .sala-document-constellation .project-caption { line-height:1.7; }
@media (max-width:820px) {
 .home-sala .sala-barthes { width:90%; margin:72px 0 72px auto; }
 .home-sala .sala-barthes p { font-size:22px; }
 .home-sala .sala-quote-break { display:none; }
 .home-sala .sala-document-constellation { grid-template-columns:minmax(0,1fr); gap:40px; }
 .home-sala .sala-tgi-cover { grid-column:1; width:55%; margin-left:8% !important; }
 .home-sala .sala-tgi-pages { grid-column:1; width:86%; margin:0 0 0 auto; gap:14px; }
 .home-sala .sala-gal { grid-column:1; width:62%; margin-left:12% !important; }
}
@media (prefers-reduced-motion:reduce) {
 .home-sala .sala-frame-first, .home-sala .sala-frame-second { transition:none; }
}

/* Local artist text: separate from the quotation and documentary images. */
.home-sala .sala-artist-reading { width:58%; margin:0 8% 88px auto; }
.home-sala .sala-artist-reading p { max-width:none; margin:0 0 24px; font-size:16px; line-height:1.8; }
.home-sala .sala-reading-toggle { appearance:none; border:0; padding:8px 0; background:transparent; color:var(--ink); font-family:var(--font-mono); font-size:var(--fs-sm); cursor:pointer; }
.home-sala .sala-reading-toggle:focus-visible { outline:1px solid currentColor; outline-offset:5px; }
.home-sala .sala-reading-expansion { transition:height 220ms ease; overflow:hidden; }
@media (max-width:820px) {
 .home-sala .sala-artist-reading { width:100%; margin:0 0 64px; }
}
@media (prefers-reduced-motion:reduce) { .home-sala .sala-reading-expansion { transition:none; } }


/* Local visual narrative: matter, process, letter, object, space. */
.home-materia .materia-essay { padding-bottom:120px; }
.home-materia .materia-b { width:30%; margin:32px 0 72px 8%; }
.home-materia .home-clip { width:72%; margin:0 0 104px auto; padding:0; }
.home-materia .materia-archive { display:grid; grid-template-columns:4fr 6fr; gap:24px; width:88%; margin:0 0 48px 4%; align-items:start; }
.home-materia .archive-space { margin-top:48px; }
.home-materia .materia-archive-caption { grid-column:1 / -1; font-family:var(--font-mono); font-size:var(--fs-xs); color:var(--muted); line-height:1.8; margin:0; }
.home-materia .materia-process-pair { display:grid; grid-template-columns:5fr 3fr; gap:12%; width:75%; margin:0 0 128px auto; align-items:start; }
.home-materia .materia-trace { margin-top:72px; }
.home-materia .materia-wall { width:58%; margin:0 0 128px 8%; }
.home-materia .materia-word-pair { display:grid; grid-template-columns:6fr 3fr; gap:18%; width:90%; margin:0 0 128px auto; align-items:start; }
.home-materia .materia-object-pair { display:grid; grid-template-columns:3fr 5fr; gap:16%; width:80%; margin:0 0 80px 4%; align-items:center; }
.home-materia .materia-context { width:75%; margin:0 0 128px auto; }
.home-materia .materia-essay div { min-width:0; }
@media (max-width:820px) {
 .home-materia .materia-essay { padding-bottom:80px; }
 .home-materia .materia-b { width:65%; margin:24px 0 40px 6%; }
 .home-materia .home-clip { width:100%; margin:0 0 64px; }
 .home-materia .materia-archive { width:96%; margin:0 0 32px auto; grid-template-columns:minmax(0,1fr); gap:20px; }
 .home-materia .archive-space { margin-top:0; }
 .home-materia .materia-process-pair { display:block; width:100%; margin:0 0 72px; }
 .home-materia .materia-process { width:82%; margin-left:4%; }
 .home-materia .materia-trace { width:62%; margin:28px 0 0 auto; }
 .home-materia .materia-wall { width:88%; margin:0 0 72px 4%; }
 .home-materia .materia-word-pair { display:block; width:100%; margin:0 0 72px; }
 .home-materia .materia-palindromo { width:80%; margin-left:3%; }
 .home-materia .materia-object-pair { display:block; width:100%; margin:0 0 56px; }
 .home-materia .materia-lamp { width:62%; margin-left:6%; }
 .home-materia .materia-cube { width:80%; margin:32px 0 0 auto; }
 .home-materia .materia-context { width:96%; margin:0 0 72px auto; }
}

/* Scoped composition refinement: paired letters and objects in context. */
.home-materia .materia-letter-pair { display:grid; grid-template-columns:7fr 5fr; gap:8%; width:94%; margin:0 auto 48px; align-items:start; }
.home-materia .materia-letter-pair .materia-wall { width:100%; margin:0; }
.home-materia .materia-letter-pair .materia-palindromo { width:100%; margin:96px 0 0; }
.home-materia .materia-object-context { display:grid; grid-template-columns:4fr 7fr; gap:7%; width:100%; margin:0 0 128px; align-items:start; }
.home-materia .materia-object-studies .materia-lamp { width:65%; margin:0 0 40px 4%; }
.home-materia .materia-object-studies .materia-cube { width:90%; margin:0 0 0 auto; }
.home-materia .materia-object-context .materia-context { width:100%; margin:0; }
@media (max-width:820px) {
 .home-materia .materia-letter-pair { display:block; width:100%; margin:0 0 40px; }
 .home-materia .materia-letter-pair .materia-wall { width:90%; margin:0 0 32px; }
 .home-materia .materia-letter-pair .materia-palindromo { width:76%; margin:0 0 0 auto; }
 .home-materia .materia-object-context { display:block; margin:0 0 72px; }
 .home-materia .materia-object-studies .materia-lamp { width:60%; margin:0 0 28px 5%; }
 .home-materia .materia-object-studies .materia-cube { width:74%; margin:0 0 40px auto; }
 .home-materia .materia-object-context .materia-context { width:96%; margin-left:auto; }
}

.home-materia .materia-letter-pair { margin-bottom:144px; }
.home-materia .materia-object-context { margin-bottom:0; }
@media (max-width:820px) { .home-materia .materia-letter-pair { margin-bottom:88px; } }

/* Homepage editorial closing entry. */
.home-anatomia { max-width:var(--max); margin:clamp(112px,12vw,176px) auto clamp(112px,12vw,176px); padding:0 var(--pad-x); display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); column-gap:24px; align-items:start; }
.home-anatomia-meta { grid-column:1 / 7; font-family:var(--font-mono); font-size:var(--fs-xs); color:var(--muted); line-height:1.8; margin:0 0 32px; }
.home-anatomia h2 { grid-column:1 / 8; font-size:clamp(25px,3vw,42px); line-height:1.2; font-weight:400; margin:0 0 40px; }
.home-anatomia blockquote { grid-column:1 / 8; font-size:clamp(21px,2.3vw,32px); line-height:1.45; margin:0 0 40px; }
.home-anatomia-cover { grid-column:9 / 13; grid-row:1 / 6; display:block; }
.home-anatomia-cover img { display:block; width:100%; height:auto; }
.home-anatomia-subtitle { grid-column:1 / 7; max-width:40ch; font-size:16px; line-height:1.7; margin:0 0 20px; }
.home-anatomia .home-feature-link { grid-column:1 / 7; margin:0; }
@media(max-width:820px) {
 .home-anatomia { display:flex; flex-direction:column; gap:0; margin-top:96px; margin-bottom:112px; }
 .home-anatomia h2 { font-size:clamp(23px,5.5vw,34px); overflow-wrap:normal; }
 .home-anatomia blockquote { font-size:23px; }
 .home-anatomia-cover { width:75%; max-width:360px; margin:0 0 36px; }
 .home-anatomia-subtitle { width:100%; }
}
