@font-face {
  font-family: "Nunito Sans";
  src: url("/assets/nunito-sans-regular") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Nunito Sans";
  src: url("/assets/nunito-sans-semibold") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Nunito Sans";
  src: url("/assets/nunito-sans-bold") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src: url("/assets/nunito-regular") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src: url("/assets/nunito-bold") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --page: #f3f0ea;
  --surface: #fbf9f5;
  --surface-strong: #ffffff;
  --ink: #23201e;
  --muted: #6d6863;
  --line: #d8d3cb;
  --charcoal: #141312;
  --charcoal-soft: #211f1d;
  --light-ink: #f6f2eb;
  --light-muted: #bbb5ad;
  --accent: #7f171b;
  --accent-strong: #a82124;
  --focus: #c64639;
  --header: rgba(243, 240, 234, 0.92);
  --max: 1440px;
  --gutter: clamp(16px, 3vw, 48px);
  --section: clamp(58px, 7.5vw, 112px);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #191816;
  --surface: #211f1c;
  --surface-strong: #2a2723;
  --ink: #f1ede6;
  --muted: #bdb6ad;
  --line: #403b35;
  --charcoal: #11100f;
  --charcoal-soft: #1b1917;
  --accent: #d55b53;
  --accent-strong: #e66b62;
  --focus: #f18c76;
  --header: rgba(25, 24, 22, 0.92);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--page);
  color: var(--ink);
  font-family: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body.menu-open { overflow: hidden; }

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

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

button, input, select { font: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

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

h1, h2, h3, p { margin-top: 0; }

h1, h2, h3 {
  font-family: "Nunito", "Nunito Sans", sans-serif;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

h1 { font-size: clamp(2.7rem, 4.8vw, 4.8rem); margin-bottom: 0.34em; }
h2 { font-size: clamp(1.85rem, 3vw, 3.1rem); margin-bottom: 0.45em; }
h3 { font-size: 1.05rem; }

.shell { width: min(100%, var(--max)); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 940px; }
.reading-width { max-width: 920px; }
.section { padding-block: var(--section); }
.page-shell { min-height: 70vh; }

.eyebrow {
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dark-panel {
  background-color: var(--charcoal);
  background-image:
    linear-gradient(110deg, rgba(10,9,9,.08), rgba(10,9,9,.22)),
    url("/assets/wallpaper-dark");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--light-ink);
}

:root[data-theme="dark"] body {
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,.022), transparent 32%),
    radial-gradient(circle at 88% 72%, rgba(127,23,27,.028), transparent 38%);
}

.dark-panel .eyebrow { color: #df7a70; }

.faceted-panel {
  position: relative;
  isolation: isolate;
  background: #e8e4df;
  color: #211f1d;
}

.faceted-panel::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(243,240,234,.68), rgba(243,240,234,.38)), url("/assets/wallpaper") 58% center/cover no-repeat;
  opacity: 1;
}

:root[data-theme="dark"] .faceted-panel { background: #242321; color: var(--light-ink); }
:root[data-theme="dark"] .faceted-panel::before {
  background: linear-gradient(90deg, rgba(10,9,9,.12), rgba(10,9,9,.24)), url("/assets/wallpaper-dark") 58% center/cover no-repeat;
  filter: none;
  opacity: 1;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.button-light { border-color: #f5f0e8; background: #f5f0e8; color: #1c1b1a; }
.button-light:hover { border-color: #fff; background: #fff; }
.button-outline { background: transparent; color: var(--ink); }

.arrow-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid currentColor;
  font-weight: 700;
}

.sr-only {
  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;
  z-index: 1000;
  top: 12px;
  left: 12px;
  transform: translateY(-180%);
  background: var(--surface-strong);
  color: var(--ink);
  padding: 0.75rem 1rem;
}

.skip-link:focus { transform: translateY(0); }

/* ---- Faixa de cookies (Consent Mode) ---- */

.cookie-banner[hidden] { display: none; }
.cookie-banner {
  position: fixed;
  z-index: 900;
  inset: auto 0 0 0;
  background: var(--surface-strong);
  color: var(--ink);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.12);
}

.cookie-banner-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem 2rem;
  max-width: var(--max);
  margin-inline: auto;
  padding: 1.1rem var(--gutter);
}
.cookie-banner-bar[hidden] { display: none; }

.cookie-banner-bar p { margin: 0; max-width: 620px; font-size: 0.88rem; color: var(--muted); }

.cookie-banner-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.1rem; flex: none; }
.cookie-banner-actions .button,
.cookie-banner-actions .button-outline { min-height: 44px; padding: 0.6rem 1.1rem; }

.cookie-preferences[hidden] { display: none; }
.cookie-preferences {
  max-width: var(--max);
  margin-inline: auto;
  padding: 1rem var(--gutter) 1.4rem;
  border-top: 1px solid var(--line);
}
.cookie-preferences h2 { font-size: 1.1rem; margin: 0 0 0.85rem; }

.cookie-category {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.cookie-category:last-of-type { border-bottom: 0; }
.cookie-category input { flex: none; width: 19px; height: 19px; margin-top: 0.15rem; }
.cookie-category span { display: grid; gap: 0.2rem; }
.cookie-category small { color: var(--muted); font-size: 0.82rem; }

.cookie-preferences-actions { display: flex; flex-wrap: wrap; gap: 0.6rem 1.1rem; margin-top: 0.9rem; }

.cookie-preferences-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; margin: 0.9rem 0 0; font-size: 0.82rem; }
.cookie-preferences-links a { color: var(--muted); text-decoration: underline; text-underline-offset: 0.15em; }

@media (max-width: 640px) {
  .cookie-banner-bar { flex-direction: column; align-items: stretch; }
  .cookie-banner-actions { justify-content: flex-start; }
  .cookie-banner-actions .button,
  .cookie-banner-actions .button-outline,
  .cookie-banner-actions .text-button { flex: 1 1 auto; }
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: var(--header);
  backdrop-filter: blur(14px);
}

.header-inner { display: flex; min-height: 76px; align-items: center; gap: 2rem; }
.brand { display: flex; min-width: 0; align-items: center; }
.brand-logo { display: block; width: 264px; height: auto; flex: none; }
:root[data-theme="dark"] .brand-logo { filter: grayscale(1) brightness(0) invert(1); }

.desktop-nav { display: flex; margin-left: auto; align-items: center; gap: clamp(1rem, 2.2vw, 2.5rem); }
.desktop-nav a { font-size: 0.91rem; font-weight: 600; }
.desktop-nav a:hover { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 0.35rem; }
.icon-button {
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 1.35rem;
}
.theme-toggle {
  width: 40px;
  height: 40px;
  border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}
.theme-toggle:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--ink) 38%, transparent); background: var(--surface-strong); }
.theme-glyph, .theme-glyph svg { display: block; width: 19px; height: 19px; }
.theme-glyph svg { fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.menu-button { display: none; }
.mobile-menu { display: none; }

.site-footer {
  background-color: var(--charcoal);
  background-image:
    radial-gradient(circle at 16% 12%, rgba(255,255,255,.018), transparent 34%),
    radial-gradient(circle at 86% 82%, rgba(127,23,27,.025), transparent 38%);
  color: var(--light-ink);
  padding-block: 64px 24px;
}
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 3rem; }
.footer-grid img { opacity: 0.9; }
.footer-signature { margin: 0.75rem 0 0; font: 700 1.35rem "Nunito"; }
.footer-grid p { color: var(--light-muted); }
.footer-grid nav, .footer-contact { display: flex; flex-direction: column; align-items: flex-start; gap: 0.7rem; }
.footer-grid a:hover { color: #df7a70; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid #333; color: var(--light-muted); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; font-size: 0.82rem; }
.footer-legal a, .footer-legal-button { color: var(--light-muted); }
.footer-legal a:hover, .footer-legal-button:hover { color: #df7a70; }
.footer-legal-button { border: 0; background: transparent; padding: 0; font: inherit; cursor: pointer; }

.hero { display: grid; min-height: clamp(520px, 68svh, 640px); align-items: stretch; }
.hero-background {
  position: relative;
  isolation: isolate;
  background: #151514 url("/assets/hero-exhibition") 62% center / cover no-repeat;
}
.hero-background::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(13,13,12,.92) 0%, rgba(13,13,12,.76) 31%, rgba(13,13,12,.25) 58%, rgba(13,13,12,.08) 100%);
  content: "";
}
.hero-grid { position: relative; display: flex; align-items: center; padding-block: clamp(42px, 5vw, 72px); }
.hero-copy { max-width: 580px; }
.hero-copy h1 { max-width: 580px; text-wrap: balance; }
.hero-primary > p:not(.eyebrow) { max-width: 540px; color: var(--light-muted); font-size: clamp(1.05rem, 1.4vw, 1.3rem); }
.hero-copy .button { margin-top: 1rem; }
.hero-copy small { display: block; margin-top: 1rem; color: #969089; }
.hero-credit { position: absolute; right: var(--gutter); bottom: 1.25rem; margin: 0; color: rgba(246,242,235,.72); font-size: 0.74rem; }

.works-section { background: var(--surface); }
.manifesto-section { padding-block: clamp(34px, 4vw, 54px); background: var(--page); text-align: center; }
.manifesto-section .narrow { display: grid; justify-items: center; }
.manifesto-section h2 { max-width: 760px; margin-bottom: 0; font-size: clamp(1.65rem, 2.4vw, 2.5rem); text-wrap: balance; }
.home-page .section { padding-block: clamp(48px, 6vw, 86px); }
.home-page .section h2 { font-size: clamp(1.8rem, 2.65vw, 2.8rem); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2.5rem; }
.section-heading h2 { margin-bottom: 0; }

.context-section { background: var(--page); }
.context-heading { max-width: 620px; margin-bottom: clamp(28px, 4vw, 52px); }
.context-heading h2 { margin-bottom: 0; }
.context-grid { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, .74fr) minmax(0, 1fr); align-items: start; gap: clamp(14px, 2.1vw, 30px); }
.context-card { min-width: 0; margin: 0; }
.context-card-panther { margin-top: clamp(48px, 6vw, 90px); }
.context-card-heart { margin-top: clamp(18px, 2.5vw, 38px); }
.context-media { position: relative; overflow: hidden; background: var(--surface-strong); }
.context-card-alce .context-media { aspect-ratio: 9 / 14; }
.context-card-panther .context-media { aspect-ratio: 3 / 4; }
.context-card-heart .context-media { aspect-ratio: 1; }
.context-media img { object-fit: cover; transition: transform 260ms ease; }
.context-card:hover .context-media img { transform: scale(1.012); }
.context-card figcaption, .process-video figcaption { margin-top: 0.65rem; color: var(--muted); font-size: 0.76rem; }

.works-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 2rem); }
.work-card { min-width: 0; }
.work-card a { display: block; }
.work-card-image { overflow: hidden; aspect-ratio: 1; background: var(--surface-strong); }
.work-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 220ms ease; }
.work-card a:hover .work-card-image img, .work-card a:focus-visible .work-card-image img { transform: scale(1.018); }
.work-card-copy { padding-top: 0.85rem; }
.work-card-copy h3 { margin-bottom: 0.16rem; font-family: "Nunito Sans"; font-size: clamp(0.94rem, 1.4vw, 1.15rem); letter-spacing: -0.015em; }
.work-card-copy p { margin-bottom: 0; color: var(--muted); font-size: 0.8rem; }

.collection-list { border-top: 1px solid #444; }
.collection-list a { display: grid; min-height: 78px; grid-template-columns: 1fr auto auto; align-items: center; gap: 2rem; border-bottom: 1px solid #444; }
.collection-list a:hover { color: #df7a70; }
.collection-list small { color: var(--light-muted); }

.split-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 8vw, 9rem); }
.split-grid > div:last-child { max-width: 720px; }
.split-grid > div:last-child p { color: var(--muted); }
.about-home .split-grid > div:last-child p { color: #4f4a45; }
:root[data-theme="dark"] .about-home .split-grid > div:last-child p { color: var(--muted); }
.split-section, .trajectory-home { background: var(--surface); }
.process-section { background: var(--page); }
.process-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .62fr); align-items: center; gap: clamp(2.5rem, 8vw, 9rem); }
.process-copy { max-width: 720px; }
.process-copy p:not(.eyebrow) { color: var(--muted); }
.process-video { width: min(100%, 440px); margin: 0; justify-self: end; }
.process-video-media { position: relative; overflow: hidden; border: 1px solid var(--line); background: var(--charcoal); }
.process-video video { display: block; width: 100%; max-height: 680px; aspect-ratio: 9 / 16; background: var(--charcoal); object-fit: cover; }
.process-video-play { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: .75rem; border: 0; background: linear-gradient(180deg, rgba(12,11,10,.08), rgba(12,11,10,.34)); color: #fff; cursor: pointer; font: 700 .76rem "Nunito Sans", sans-serif; letter-spacing: .11em; text-transform: uppercase; }
.process-video-play[hidden] { display: none; }
.process-video-play-icon { width: 58px; height: 58px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.72); border-radius: 50%; background: rgba(17,16,15,.58); backdrop-filter: blur(6px); transition: transform 160ms ease, background 160ms ease; }
.process-video-play-icon::before { width: 0; height: 0; margin-left: 4px; border-block: 8px solid transparent; border-left: 13px solid currentColor; content: ""; }
.process-video-play:hover .process-video-play-icon { transform: scale(1.05); background: rgba(127,23,27,.82); }
.particle-field { position: relative; overflow: hidden; isolation: isolate; }
.particle-field > .shell { position: relative; z-index: 1; }
.contact-home { text-align: center; }
.geometric-particles { position: absolute; z-index: 0; inset: 0; display: block; width: 100%; height: 100%; pointer-events: none; }
.contact-callout { position: relative; z-index: 1; max-width: 980px; }
.contact-callout h2 { max-width: 900px; margin-inline: auto; }
.contact-callout > p:not(.eyebrow) { color: var(--light-muted); }
.contact-callout .button { margin: 1rem 0; }
.contact-callout > a:last-child { display: block; color: var(--light-muted); }

.page-intro { max-width: 1080px; margin: 0 auto clamp(3rem, 7vw, 7rem); }
.page-intro > p:last-child { max-width: 700px; color: var(--muted); font-size: 1.08rem; }

.works-explorer { position: relative; }
.desktop-filters { margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.filter-fields { display: grid; grid-template-columns: 1.2fr 1fr 1fr auto; align-items: end; gap: 1rem; }
.filter-fields label { display: grid; gap: 0.4rem; }
.filter-fields label span { color: var(--muted); font-size: 0.78rem; font-weight: 700; }
.filter-fields input, .filter-fields select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
  color: var(--ink);
  padding: 0.6rem 0.75rem;
}
.text-button { min-height: 48px; border: 0; border-bottom: 1px solid currentColor; background: transparent; color: var(--ink); cursor: pointer; }
.text-button:disabled { opacity: 0.4; cursor: default; }
.mobile-filters { display: none; }
.results-count { margin: 0 0 1.5rem; color: var(--muted); font-size: 0.86rem; }
.empty-state { min-height: 380px; display: grid; place-content: center; justify-items: center; text-align: center; }
.empty-state h2 { font-size: clamp(1.8rem, 3vw, 3rem); }

.work-page { padding-top: clamp(20px, 3.5vw, 52px); }
.work-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr); align-items: start; gap: clamp(2rem, 5vw, 6rem); }
.artwork-gallery { min-width: 0; }
.artwork-main-image { display: grid; min-height: 480px; place-items: center; background: var(--surface); }
.artwork-main-image img { width: 100%; max-height: min(78svh, 900px); object-fit: contain; }
.artwork-thumbs { display: flex; gap: 0.65rem; overflow-x: auto; padding: 0.85rem 0 0.3rem; }
.artwork-thumbs button { flex: 0 0 74px; width: 74px; height: 74px; border: 1px solid transparent; background: var(--surface); padding: 3px; cursor: pointer; }
.artwork-thumbs button.is-active { border-color: var(--accent); }
.artwork-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery-count { color: var(--muted); font-size: 0.8rem; text-align: right; }
.work-information { position: sticky; top: 110px; }
.work-information h1 { font-size: clamp(2.6rem, 4vw, 4.5rem); overflow-wrap: anywhere; }
.work-description { color: var(--muted); font-size: 1.06rem; white-space: pre-line; }
.inline-link { border-bottom: 1px solid var(--line); }
.work-facts { display: grid; grid-template-columns: minmax(110px, 0.45fr) 1fr; margin: 1.65rem 0; border-top: 1px solid var(--line); }
.work-facts dt, .work-facts dd { margin: 0; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
.work-facts dt { color: var(--muted); font-size: 0.78rem; font-weight: 700; }
.work-facts dd { white-space: pre-line; }
.commercial-note { padding: 1.5rem; background: var(--surface); }
.commercial-note h2 { font-size: 1.65rem; }
.commercial-note p { color: var(--muted); font-size: 0.92rem; }
.commercial-note .value-note { color: var(--ink); font-weight: 700; }
.commercial-note .button { margin-top: 0.45rem; }
.work-editorial { display: grid; width: min(100% - (2 * var(--gutter)), 820px); gap: clamp(2.5rem, 5vw, 4.5rem); margin-top: clamp(28px, 4vw, 52px); }
.work-editorial-section { border-top: 1px solid var(--line); padding-top: clamp(1.5rem, 3vw, 2.5rem); }
.work-editorial-section h2 { font-size: clamp(1.65rem, 3vw, 2.5rem); }
.work-editorial-section > p:not(.eyebrow) { color: var(--muted); font-size: 1.06rem; line-height: 1.75; white-space: pre-line; }
.artist-note { margin-top: 1.5rem; padding-left: 1.25rem; border-left: 2px solid var(--accent); }
.work-pagination { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: clamp(44px, 6vw, 84px); padding-block: 2rem; border-block: 1px solid var(--line); }
.work-pagination a { display: flex; flex-direction: column; }
.work-pagination a:last-child { align-items: flex-end; text-align: right; }
.work-pagination span { color: var(--muted); font-size: 0.8rem; }
.related-section { background: var(--surface); }

.institutional-hero { padding-block: clamp(70px, 9vw, 124px); }
.institutional-hero p:not(.eyebrow) { max-width: 760px; font-size: clamp(1.1rem, 2vw, 1.5rem); }
.editorial-content > p { color: var(--muted); font-size: 1.08rem; }
.editorial-content h2 { margin-top: clamp(3rem, 5vw, 4.5rem); font-size: clamp(1.9rem, 3vw, 3rem); }
.editorial-content h2:first-child { margin-top: 0; }
.editorial-content ul { margin: 0 0 1.5rem; padding-left: 1.3rem; color: var(--muted); font-size: 1.08rem; }
.editorial-content ul li { margin-bottom: 0.5rem; }
.editorial-content ul li:last-child { margin-bottom: 0; }
.editorial-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 0.15em; }
.custom-projects-content { background: var(--page); padding-bottom: clamp(42px, 5vw, 72px); }
.custom-projects-flow { display: grid; max-width: 1180px; gap: clamp(2rem, 3.5vw, 3.75rem); }
.custom-projects-content .editorial-content h2 {
  margin-top: clamp(3rem, 5vw, 4.75rem);
  border-top: 1px solid var(--line);
  padding-top: clamp(1.4rem, 2.5vw, 2rem);
  font-size: clamp(1.9rem, 3vw, 3rem);
}
.custom-projects-content .editorial-content p { max-width: 760px; }
.custom-projects-flow > .editorial-content > h2:first-child { margin-top: 0; }
.custom-projects-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, .92fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  border-block: 1px solid var(--line);
  padding-block: clamp(1.75rem, 3vw, 3rem);
}
.custom-projects-feature .editorial-content h2 { margin-top: 0; border-top: 0; padding-top: 0; }
.custom-projects-image { margin: 0; }
.custom-projects-image img { width: 100%; max-height: 700px; object-fit: cover; object-position: center; }
.custom-projects-intro { border-top: 0; padding-top: 0; }
.custom-projects-reference { width: min(100%, 440px); margin: 0; justify-self: end; }
.custom-projects-reference img { width: 100%; }
.custom-projects-reference figcaption,
.custom-projects-feature figcaption { margin-top: .65rem; color: var(--muted); font-size: .76rem; }
.custom-projects-feature-reversed .editorial-content { order: 2; }
.custom-projects-feature-reversed .custom-projects-image { order: 1; }
.custom-projects-finish-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: clamp(.85rem, 2vw, 1.5rem); }
.custom-projects-finish-grid figure { min-width: 0; margin: 0; }
.custom-projects-finish-grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.custom-projects-finish-grid figure:first-child img { object-position: 44% center; }
.custom-projects-practical { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: clamp(2rem, 6vw, 6rem); }
.custom-projects-practical .editorial-content { height: 100%; border-top: 1px solid var(--line); padding-top: clamp(1.4rem, 2.5vw, 2rem); }
.custom-projects-practical .editorial-content h2 { margin-top: 0; border-top: 0; padding-top: 0; }
.custom-projects-start { background: color-mix(in srgb, var(--surface) 58%, var(--page)); padding: clamp(1.75rem, 3vw, 3rem); }
.custom-projects-start .editorial-content h2 { margin-top: 0; border-top: 0; padding-top: 0; }
.custom-projects-start .editorial-content p:last-child { margin-bottom: 0; }
.custom-projects-page .closing-callout { padding-block: clamp(44px, 5vw, 72px); }
.custom-projects-page .institutional-hero {
  border-bottom: 1px solid var(--line);
  background-color: var(--charcoal);
  background-image:
    linear-gradient(90deg, rgba(10,9,9,.14), rgba(10,9,9,.26)),
    url("/assets/wallpaper-dark");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--light-ink);
}
.custom-projects-page .institutional-hero h1,
.custom-projects-page .institutional-hero p { text-shadow: 0 1px 18px rgba(0,0,0,.32); }
:root[data-theme="dark"] .custom-projects-feature {
  border-color: color-mix(in srgb, var(--ink) 17%, transparent);
  background: color-mix(in srgb, var(--surface) 76%, transparent);
  padding-inline: clamp(1.25rem, 3vw, 2.5rem);
}
:root[data-theme="dark"] .custom-projects-page .closing-callout { background: var(--charcoal); color: var(--light-ink); }
:root[data-theme="dark"] .custom-projects-page .closing-callout::before {
  background:
    linear-gradient(rgba(10,9,9,.1), rgba(10,9,9,.2)),
    url("/assets/wallpaper-dark") center / cover no-repeat;
  filter: none;
  opacity: 1;
}
.timeline-content .editorial-content { border-left: 1px solid var(--line); padding-left: clamp(1.5rem, 5vw, 5rem); }
.timeline-content h2 { position: relative; }
.timeline-content h2::before { position: absolute; left: calc(clamp(1.5rem, 5vw, 5rem) * -1 - 5px); top: 0.35em; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); content: ""; }
.closing-callout { text-align: center; }
.closing-callout h2 { margin-inline: auto; }

.institutional-editorial { padding-block: clamp(48px, 6vw, 84px); }
.editorial-sequence { display: grid; gap: clamp(44px, 5.5vw, 80px); }
.trajectory-sequence { display: grid; gap: clamp(40px, 5vw, 72px); }
.editorial-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr); align-items: center; gap: clamp(2.5rem, 7vw, 8rem); }
.editorial-row.is-reversed .editorial-row-copy { order: 2; }
.editorial-row.is-reversed .editorial-photo { order: 1; }
.editorial-row-copy { max-width: 720px; }
.about-topic-pair { width: min(100%, 1120px); margin-inline: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(3rem, 7vw, 7rem); }
.about-topic h2 { font-size: clamp(1.9rem, 3vw, 3.05rem); }
.about-topic p { color: var(--muted); font-size: 1.04rem; }
.editorial-row-copy h2, .trajectory-entry h2 { font-size: clamp(1.9rem, 3vw, 3.05rem); }
.editorial-row-copy p, .trajectory-entry p { color: var(--muted); font-size: 1.04rem; }
.editorial-photo, .trajectory-photo { margin: 0; }
.editorial-photo img, .trajectory-photo img { width: 100%; object-fit: cover; }
.portrait-wide img { aspect-ratio: 4 / 3; object-position: 38% center; }
.portrait-tall { max-width: 480px; justify-self: center; }
.portrait-tall img { max-height: 760px; object-fit: cover; }
.about-page .institutional-editorial { padding-block: clamp(44px, 5vw, 72px); }
.about-page .editorial-sequence { gap: clamp(2rem, 4vw, 3.75rem); }
.about-page .portrait-tall { max-width: 440px; }
.about-studio-photo { width: min(100%, 620px); justify-self: center; }
.about-studio-photo img { width: 100%; height: auto; object-fit: contain; }
.about-page .closing-callout { padding-block: clamp(44px, 5vw, 72px); }
.editorial-photo figcaption, .trajectory-photo figcaption { margin-top: 0.65rem; color: var(--muted); font-size: 0.76rem; }
.trajectory-entry { display: grid; grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr); align-items: center; gap: clamp(2.5rem, 7vw, 8rem); }
.trajectory-entry:nth-child(even) > div { order: 2; }
.trajectory-entry:nth-child(even) > figure { order: 1; }
.trajectory-entry > div { max-width: 720px; }
.trajectory-entry:not(:has(figure)) { grid-template-columns: minmax(0, 720px); justify-content: center; }
.trajectory-entry.is-contained:not(:has(figure)) { width: min(100%, 1040px); margin-inline: auto; padding: clamp(1.75rem, 4vw, 3.25rem); border-block: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 62%, transparent); }
.trajectory-photo img { aspect-ratio: 3 / 2; }
.trajectory-photo.is-documental { width: min(100%, 520px); justify-self: center; }
.trajectory-photo.is-documental img { aspect-ratio: 4 / 5; object-position: center; }
.trajectory-photo.is-studio { width: min(100%, 560px); justify-self: center; }
.trajectory-photo.is-studio img { aspect-ratio: 4 / 5; object-position: center; }
.trajectory-photo.is-trophy { width: min(100%, 620px); justify-self: center; }
.trajectory-photo.is-trophy img { aspect-ratio: auto; }

.contact-page { min-height: calc(100svh - 76px); display: grid; align-items: center; padding-block: var(--section); }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 9vw, 10rem); align-items: center; }
.contact-layout > div > p:last-child { max-width: 680px; color: var(--light-muted); font-size: 1.1rem; }
.contact-options { display: grid; font-style: normal; }
.contact-options a { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid #444; padding: 1.25rem 0; }
.contact-options a:first-child { border-top: 1px solid #444; }
.contact-options span { color: var(--light-muted); font-size: 0.8rem; }
.contact-options b { overflow-wrap: anywhere; text-align: right; }
.contact-options a:hover b { color: #df7a70; }
.not-found { min-height: 65vh; display: grid; align-content: center; justify-items: start; }

@media (max-width: 1100px) {
  .desktop-nav { display: none; }
  .header-actions { margin-left: auto; }
  .menu-button { display: inline-grid; }
  .mobile-menu {
    position: fixed;
    z-index: 99;
    inset: 76px 0 auto;
    height: calc(100svh - 76px);
    display: block;
    visibility: hidden;
    transform: translateY(-1rem);
    background: var(--charcoal);
    color: var(--light-ink);
    opacity: 0;
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms;
  }
  .mobile-menu.is-open { visibility: visible; transform: translateY(0); opacity: 1; }
  .mobile-menu nav { display: grid; align-content: center; min-height: calc(100svh - 76px); width: min(100%, 760px); margin-inline: auto; padding: 2rem var(--gutter); }
  .mobile-menu a { display: flex; min-height: 58px; align-items: center; border-bottom: 1px solid #444; font: 700 clamp(1.25rem, 4vw, 2rem) "Nunito"; }
  .works-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filter-fields { grid-template-columns: 1fr 1fr; }
  .work-layout { grid-template-columns: 1fr; }
  .work-information { position: static; max-width: 820px; }
}

@media (max-width: 800px) {
  :root { --section: clamp(52px, 12vw, 80px); }
  .brand-logo { width: 150px; }
  .header-inner { min-height: 68px; }
  .mobile-menu { inset-block-start: 68px; }
  .mobile-menu { height: calc(100svh - 68px); }
  .mobile-menu nav { min-height: calc(100svh - 68px); }
  .hero { min-height: auto; }
  .hero-background { height: 72svh; min-height: 0; max-height: 640px; background-position: 72% center; }
  .hero-background::before {
    background:
      linear-gradient(0deg, rgba(13,13,12,.68) 0%, rgba(13,13,12,.18) 28%, transparent 48%),
      linear-gradient(90deg, rgba(13,13,12,.86) 0%, rgba(13,13,12,.58) 42%, rgba(13,13,12,.08) 82%);
  }
  .hero-grid { align-items: stretch; padding-block: 32px 54px; }
  .hero-copy { display: flex; width: 100%; max-width: 330px; flex-direction: column; }
  .hero-primary { margin-top: clamp(58px, 9svh, 82px); }
  .hero-copy h1 { font-size: clamp(2.2rem, 8.8vw, 3.25rem); line-height: 1.02; }
  .hero-primary > p:not(.eyebrow) { max-width: 310px; font-size: 0.96rem; line-height: 1.45; }
  .hero-copy .button { min-height: 42px; align-self: flex-start; margin-top: auto; margin-bottom: 0.4rem; padding: 0.55rem 0.9rem; font-size: 0.88rem; }
  .context-grid { grid-template-columns: 1fr; gap: 2rem; }
  .context-card { width: min(100%, 620px); margin: 0 auto; }
  .context-card-panther, .context-card-heart { margin-top: 0; }
  .process-layout { grid-template-columns: 1fr; gap: 2rem; }
  .process-video { width: min(100%, 480px); justify-self: center; }
  .split-grid, .contact-layout { grid-template-columns: 1fr; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .desktop-filters { display: none; }
  .mobile-filters { display: block; margin-bottom: 1.5rem; border-block: 1px solid var(--line); }
  .mobile-filters summary { min-height: 52px; display: flex; align-items: center; cursor: pointer; font-weight: 700; }
  .mobile-filters .filter-fields { padding-bottom: 1.25rem; }
  .artwork-main-image { min-height: 320px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .editorial-row, .trajectory-entry, .trajectory-entry:not(:has(figure)) { grid-template-columns: 1fr; gap: 2rem; }
  .about-topic-pair { grid-template-columns: 1fr; gap: 2.5rem; }
  .trajectory-entry.is-contained:not(:has(figure)) { padding-inline: clamp(1rem, 4vw, 1.75rem); }
  .custom-projects-page .institutional-hero { background-position: 56% center; }
  .custom-projects-feature { grid-template-columns: 1fr; gap: 2rem; }
  .custom-projects-image { width: min(100%, 560px); justify-self: center; }
  .custom-projects-reference { width: min(100%, 420px); margin-inline: auto; justify-self: center; }
  .custom-projects-feature-reversed .editorial-content,
  .custom-projects-feature-reversed .custom-projects-image { order: initial; }
  .custom-projects-finish-grid { width: min(100%, 560px); grid-template-columns: 1fr; justify-self: center; gap: 2rem; }
  .custom-projects-finish-grid img { aspect-ratio: auto; max-height: 680px; }
  .custom-projects-practical { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-page .portrait-tall { max-width: min(100%, 480px); }
  .about-studio-photo { width: min(100%, 620px); }
  .editorial-row.is-reversed .editorial-row-copy, .editorial-row.is-reversed .editorial-photo,
  .trajectory-entry:nth-child(even) > div, .trajectory-entry:nth-child(even) > figure { order: initial; }
  .portrait-tall { max-width: 100%; }
}

@media (max-width: 1023px) {
  .geometric-particles { display: none; }
}

@media (max-width: 520px) {
  :root { --gutter: 14px; }
  h1 { font-size: clamp(2.45rem, 12vw, 3.8rem); }
  h2 { font-size: clamp(1.75rem, 8vw, 2.75rem); }
  .hero-grid { padding-top: 32px; }
  .hero-credit { right: var(--gutter); bottom: 0.7rem; font-size: 0.67rem; }
  .hero-copy small { font-size: 0.7rem; }
  .works-grid { gap: 1.15rem 0.65rem; }
  .work-card-copy { padding-top: 0.6rem; }
  .work-card-copy h3 { font-size: 0.92rem; }
  .work-card-copy p { font-size: 0.72rem; line-height: 1.35; }
  .filter-fields { grid-template-columns: 1fr; }
  .collection-list a { grid-template-columns: 1fr auto; gap: 0.75rem; }
  .collection-list b { display: none; }
  .work-page { padding-top: 14px; }
  .work-layout { padding-inline: 0; }
  .work-information { padding-inline: var(--gutter); }
  .artwork-main-image { min-height: 0; }
  .artwork-main-image img { max-height: 72svh; }
  .artwork-thumbs, .gallery-count { margin-inline: var(--gutter); }
  .work-facts { grid-template-columns: 96px 1fr; }
  .commercial-note { margin-inline: calc(var(--gutter) * -1); }
  .work-pagination { gap: 1rem; }
  .work-pagination b { font-size: 0.8rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:first-child { grid-column: auto; }
  .footer-grid { justify-items: center; text-align: center; }
  .footer-grid > div:first-child { display: grid; justify-items: center; }
  .footer-grid nav, .footer-contact { align-items: center; }
  .footer-bottom { text-align: center; justify-content: center; }
  .footer-legal { justify-content: center; text-align: center; }
  .contact-options a { align-items: flex-start; flex-direction: column; }
  .contact-options b { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .geometric-particles { display: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
