/* ============================================================================
   ANGR — INTERIOR PAGES DESIGN SYSTEM
   Three-layer tokens (primitive → semantic → component) + component library.
   Loaded alongside the shared Tailwind header/footer. Interior page content
   uses these bespoke classes; the header/footer keep the homepage's styling.
   ============================================================================ */

/* ---------------------------------------------------------------------------
   1. TOKENS
--------------------------------------------------------------------------- */
:root {
  /* -- PRIMITIVES (raw values) -- */
  --c-bg:            #EEF1F4;
  --c-bg-alt:        #E7ECF0;
  --c-surface:       #F7F9FB;
  --c-surface-glass: rgba(247, 249, 251, 0.72);

  --c-ink:   #1B262C;
  --c-ink-2: #3B4A54;
  --c-ink-3: #5E6D77;   /* nudged darker than spec #6B7A84 for AA on --bg */

  --c-green:      #3C8A24;
  --c-green-soft: #6FB84E;

  --c-blue:      #1F6BB0;
  --c-blue-deep: #17548C;
  --c-blue-soft: #4E92CF;

  --c-dark:    #16222B;
  --c-on-dark: #E8EEF2;

  --c-line:        #D5DCE2;
  --c-line-strong: #C2CBD3;

  /* -- SEMANTIC (purpose aliases) -- */
  --bg:            var(--c-bg);
  --bg-alt:        var(--c-bg-alt);
  --surface:       var(--c-surface);
  --surface-glass: var(--c-surface-glass);
  --ink:           var(--c-ink);
  --ink-2:         var(--c-ink-2);
  --ink-3:         var(--c-ink-3);
  --accent-detail: var(--c-green);      /* green = small details only */
  --accent-action: var(--c-blue);       /* blue = links / buttons / emphasis */
  --accent-action-strong: var(--c-blue-deep);
  --line:          var(--c-line);
  --line-strong:   var(--c-line-strong);
  --dark:          var(--c-dark);
  --on-dark:       var(--c-on-dark);
  --ghost:         rgba(27, 38, 44, 0.05);   /* ink @ ~0.05 */
  --ghost-blue:    rgba(31, 107, 176, 0.06);

  /* -- TYPE -- */
  --font-body:    "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-script:  "Alex Brush", cursive;
  --font-mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;

  --fs-display: clamp(2.6rem, 6vw, 5rem);
  --fs-h2:      clamp(1.6rem, 3vw, 2.4rem);
  --fs-h3:      clamp(1.15rem, 2vw, 1.5rem);
  --fs-lead:    clamp(1.15rem, 1.6vw, 1.4rem);
  --fs-body:    clamp(1rem, 1.05vw, 1.125rem);
  --fs-kicker:  0.75rem;
  --fs-caption: 0.8125rem;

  /* -- SPACE / SHAPE / MOTION -- */
  --container: 1280px;
  --pad-x:     clamp(20px, 5vw, 64px);
  --sec-y:     clamp(64px, 9vw, 128px);
  --radius:    20px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(22, 34, 43, 0.04), 0 4px 16px rgba(22, 34, 43, 0.05);
  --shadow-md: 0 10px 30px rgba(22, 34, 43, 0.10);
  --shadow-lg: 0 24px 60px rgba(22, 34, 43, 0.14);
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
  --dur:       0.6s;
}

/* ---------------------------------------------------------------------------
   2. BASE (scoped so the Tailwind header/footer are untouched)
--------------------------------------------------------------------------- */
body.interior {
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.interior main { display: block; }

.interior ::selection { background: var(--c-blue-soft); color: #fff; }

/* Accessible focus ring everywhere */
.interior a:focus-visible,
.interior button:focus-visible,
.interior input:focus-visible,
.interior textarea:focus-visible,
.interior [tabindex]:focus-visible {
  outline: 3px solid var(--accent-action);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 100;
  transform: translateY(-160%);
  background: var(--dark);
  color: var(--on-dark);
  padding: 10px 18px;
  border-radius: 999px;
  font: 600 0.85rem var(--font-body);
  text-decoration: none;
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---------------------------------------------------------------------------
   3. LAYOUT PRIMITIVES
--------------------------------------------------------------------------- */
.container-i {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
.section {
  position: relative;
  padding-block: var(--sec-y);
  overflow: clip;               /* contains ghost type, prevents h-scroll */
}
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--dark); color: var(--on-dark); }
.section--tight { padding-block: clamp(40px, 6vw, 80px); }

/* 12-col grid helper */
.grid-i {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.col-text  { grid-column: span 12; }
.col-media { grid-column: span 12; }
@media (min-width: 900px) {
  .col-text  { grid-column: span 7; }
  .col-media { grid-column: span 5; }
  .col-text--wide { grid-column: span 8; }
  .col-media--narrow { grid-column: span 4; }
}

/* ---------------------------------------------------------------------------
   4. TYPOGRAPHY COMPONENTS
--------------------------------------------------------------------------- */
.kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-kicker);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-action);
}
.section--dark .kicker { color: var(--c-blue-soft); }

.h1-display {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
  margin: 0;
}
/* compact size for long, multi-word institutional titles */
.h1-display.h1--compact {
  font-size: clamp(2.2rem, 4.2vw, 3.5rem);
  line-height: 1.08;
}
.h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
  margin: 0;
}
.h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
  margin: 0;
}
.accent-script {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 1.35em;
  line-height: 0.8;
  letter-spacing: normal;
  color: var(--accent-action);
  padding-inline: 0.06em;
}
.accent-script--green { color: var(--accent-detail); }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--ink);
  max-width: 60ch;
  margin: 0;
}
.prose {
  max-width: 70ch;
  color: var(--ink-2);
  font-size: var(--fs-body);
  line-height: 1.72;
  text-wrap: pretty;
}
.lead { text-wrap: pretty; }
.prose + .prose { margin-top: 1.1em; }
.prose strong { color: var(--ink); font-weight: 600; }
.caption { font-size: var(--fs-caption); color: var(--ink-3); }

/* stack rhythm inside a text column */
.stack > * + * { margin-top: clamp(16px, 2vw, 24px); }
.stack-sm > * + * { margin-top: 12px; }

/* Section heading block */
.sec-head { margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head .kicker { margin-bottom: 14px; }

/* Gradient hairline (green → blue) */
.hairline {
  height: 2px;
  width: min(140px, 40%);
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-detail), var(--accent-action));
  margin: 0;
}
.hairline--full { width: 100%; opacity: 0.9; }

/* ---------------------------------------------------------------------------
   5. GHOST TYPOGRAPHY
--------------------------------------------------------------------------- */
.ghost {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.8;
  color: var(--ghost);
  white-space: nowrap;
}
.ghost--word { font-size: clamp(8rem, 26vw, 24rem); text-transform: uppercase; }
.ghost--num  { font-size: clamp(9rem, 24vw, 22rem); }
.ghost--blue { color: var(--ghost-blue); }
.section > .container-i { position: relative; z-index: 1; }

/* ---------------------------------------------------------------------------
   6. PAGE HERO
--------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  padding-top: clamp(120px, 15vh, 180px);   /* clears the fixed nav */
  padding-bottom: clamp(48px, 7vw, 88px);
  overflow: clip;
}
.page-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
@media (min-width: 900px) {
  .page-hero__grid { grid-template-columns: 1.15fr 0.85fr; }
  .page-hero--wide .page-hero__grid { grid-template-columns: 1fr; }
}
.page-hero__title { margin: 18px 0 22px; }
.page-hero .hairline { margin-top: clamp(28px, 4vw, 44px); }
.page-hero > .container-i { position: relative; z-index: 1; }

/* ---------------------------------------------------------------------------
   7. IMAGE FRAME
--------------------------------------------------------------------------- */
.image-frame {
  position: relative;
  z-index: 1;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--line);
  isolation: isolate;
}
.image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.image-frame[data-ar] { aspect-ratio: var(--ar, 4 / 3); }
/* Cool unifying tint so mixed placeholder photos read as one calm palette */
.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(31, 107, 176, 0.07), rgba(22, 34, 43, 0.02) 55%, rgba(60, 138, 36, 0.05));
  mix-blend-mode: multiply;
  pointer-events: none;
}
.image-frame__caption {
  margin-top: 10px;
  font-size: var(--fs-caption);
  color: var(--ink-3);
}
.image-wrap { position: relative; }
.image-wrap .ghost { top: -8%; right: -4%; z-index: 0; }

.hero-media { position: relative; }
.hero-media .image-frame { transform: translateZ(0); }

/* subtle scale-in on load for hero image (respects reduced motion below) */
.hero-media .image-frame img { transition: transform 1.2s var(--ease); }
.hero-media.is-loaded .image-frame img { transform: scale(1); }
.hero-media:not(.is-loaded) .image-frame img { transform: scale(1.06); }

/* ---------------------------------------------------------------------------
   8. FEATURE LIST
--------------------------------------------------------------------------- */
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(14px, 1.8vw, 22px); }
.feature-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
}
.feature-item__marker {
  flex: none;
  width: 26px;
  height: 26px;
  margin-top: 2px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(60, 138, 36, 0.12);
  color: var(--accent-detail);
}
.feature-item__marker svg { width: 15px; height: 15px; }
.feature-item__body { color: var(--ink-2); }
.feature-item__body strong { color: var(--ink); font-weight: 600; }
.feature-item__lead { color: var(--ink); font-weight: 600; }

/* linkable feature items (e.g. councils) */
a.feature-item {
  text-decoration: none;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
a.feature-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--c-blue-soft);
}
a.feature-item .feature-item__lead { color: var(--ink); }
a.feature-item .arrow { color: var(--accent-action); }

/* ---------------------------------------------------------------------------
   9. PROCESS STEPS (numbered sequence)
--------------------------------------------------------------------------- */
.steps { display: grid; gap: clamp(28px, 3vw, 40px); position: relative; }
.step { position: relative; display: grid; gap: 10px; }
.step__num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent-action);
}
.step__num small { color: var(--ink-3); font-weight: 500; }
.step__title { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h3); color: var(--ink); }
.step__desc { color: var(--ink-2); font-size: 0.98rem; line-height: 1.6; max-width: 34ch; }

@media (min-width: 900px) {
  .steps--row { grid-auto-flow: column; grid-auto-columns: 1fr; gap: clamp(24px, 2.5vw, 40px); }
  /* connecting line behind the numbers */
  .steps--row::before {
    content: "";
    position: absolute;
    top: clamp(1.2rem, 2vw, 1.7rem);
    left: 6%;
    right: 6%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-detail), var(--accent-action));
    opacity: 0.35;
    z-index: 0;
  }
  .step { z-index: 1; }
}
/* vertical connector on mobile */
@media (max-width: 899px) {
  .steps--row .step { padding-left: 22px; }
  .steps--row .step::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 8px;
    bottom: -28px;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-action), var(--accent-detail));
    opacity: 0.3;
  }
  .steps--row .step:last-child::before { display: none; }
}

/* ---------------------------------------------------------------------------
   10. CALLOUT / STAT (glass, blue accent)
--------------------------------------------------------------------------- */
.callout {
  position: relative;
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px);
  background: var(--surface-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent-action);
  box-shadow: var(--shadow-sm);
}
.callout__label {
  font-family: var(--font-mono);
  font-size: var(--fs-kicker);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-action);
  margin-bottom: 10px;
  display: block;
}
.callout__title { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h3); color: var(--ink); margin: 0 0 8px; }
.callout p { margin: 0; color: var(--ink-2); }
.callout--formula {
  font-family: var(--font-mono);
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  line-height: 1.9;
  color: var(--ink);
  border-left-color: var(--accent-detail);
}
.stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent-action);
}

/* ---------------------------------------------------------------------------
   11. DEFINITION BLOCK
--------------------------------------------------------------------------- */
.definition {
  border-left: 3px solid var(--accent-detail);
  padding: 4px 0 4px 22px;
  max-width: 72ch;
}
.definition .prose { color: var(--ink); }
.definition-grid { display: grid; gap: clamp(20px, 3vw, 32px); }
@media (min-width: 760px) { .definition-grid { grid-template-columns: 1fr 1fr; } }

/* ---------------------------------------------------------------------------
   12. LEGAL NOTE
--------------------------------------------------------------------------- */
.legal-note {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--ink-3);
  background: var(--bg-alt);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  padding: clamp(18px, 2.5vw, 26px);
  max-width: 80ch;
}
.legal-note strong { color: var(--ink-2); font-weight: 600; }

/* ---------------------------------------------------------------------------
   13. BUTTONS & ARROW LINKS
--------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font: 600 0.82rem var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease), color 0.3s var(--ease);
  min-height: 44px;
}
.btn svg { width: 16px; height: 16px; }
.btn--primary { background: var(--accent-action); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--accent-action-strong); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--outline:hover { border-color: var(--accent-action); color: var(--accent-action); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-action);
  font-weight: 600;
  text-decoration: none;
  position: relative;
}
.arrow-link .arrow { transition: transform 0.3s var(--ease); }
.arrow-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  height: 2px; width: 0;
  background: var(--accent-action);
  transition: width 0.3s var(--ease);
}
.arrow-link:hover .arrow { transform: translateX(4px); }
.arrow-link:hover::after { width: calc(100% - 22px); }

/* ---------------------------------------------------------------------------
   14. RELATED LINKS & SECTOR CARDS
--------------------------------------------------------------------------- */
.related { display: grid; gap: clamp(16px, 2.5vw, 24px); grid-template-columns: 1fr; }
@media (min-width: 760px) { .related { grid-template-columns: repeat(3, 1fr); } }
.related--2 { grid-template-columns: 1fr; }
@media (min-width: 760px) { .related--2 { grid-template-columns: repeat(2, 1fr); } }

.related-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(22px, 2.5vw, 30px);
  border-radius: var(--radius);
  background: var(--surface-glass);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  min-height: 100%;
}
.related-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--c-blue-soft); }
.related-card__title { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--ink); }
.related-card__text { font-size: 0.92rem; color: var(--ink-2); line-height: 1.55; flex: 1; }
.related-card .arrow-link { margin-top: 4px; }

/* Sector cards (Setores landing) — larger, image-led */
.sector-grid { display: grid; gap: clamp(20px, 3vw, 36px); grid-template-columns: 1fr; }
@media (min-width: 820px) { .sector-grid { grid-template-columns: 1fr 1fr; } }
.sector-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.sector-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--c-blue-soft); }
.sector-card .image-frame { border-radius: 0; box-shadow: none; }
.sector-card__body { padding: clamp(22px, 3vw, 34px); display: grid; gap: 12px; }
.sector-card__title { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h3); color: var(--ink); }
.sector-card__text { color: var(--ink-2); font-size: 0.98rem; line-height: 1.6; }
.sector-card:hover .image-frame img { transform: scale(1.05); }
.sector-card .image-frame img { transition: transform 0.8s var(--ease); }

/* Article / news cards (Atualidade) */
.news-grid { display: grid; gap: clamp(20px, 3vw, 32px); grid-template-columns: 1fr; }
@media (min-width: 720px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .news-grid { grid-template-columns: repeat(3, 1fr); } }
.article-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.article-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--c-blue-soft); }
.article-card .image-frame { border-radius: 0; box-shadow: none; }
.article-card .image-frame img { transition: transform 0.8s var(--ease); }
.article-card:hover .image-frame img { transform: scale(1.05); }
.article-card__body { padding: clamp(20px, 2.4vw, 28px); display: grid; gap: 10px; }
.article-card__meta { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.article-card__title { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; line-height: 1.25; color: var(--ink); }
.article-card__excerpt { font-size: 0.92rem; color: var(--ink-2); line-height: 1.55; }

/* Empty / coming-soon state */
.empty-state {
  display: grid;
  gap: 14px;
  justify-items: start;
  padding: clamp(28px, 4vw, 48px);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-glass);
  max-width: 60ch;
}
.empty-state--center { justify-items: center; text-align: center; margin-inline: auto; }
.empty-state__icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(31, 107, 176, 0.10);
  color: var(--accent-action);
}
.empty-state__icon svg { width: 22px; height: 22px; }
.empty-state__title { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h3); color: var(--ink); }
.empty-state p { margin: 0; color: var(--ink-2); }

/* Quiet tagline treatment */
.tagline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: -0.01em;
  max-width: 24ch;
}
.tagline .accent-script { display: inline-block; }

/* ---------------------------------------------------------------------------
   17. POSIÇÕES E EXPOSIÇÕES — gallery (distinct from the shared template)
--------------------------------------------------------------------------- */
.group-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: clamp(8px, 2vw, 20px); }
.group-head .h2 { margin: 0; }
.group-head .count { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-3); letter-spacing: 0.1em; }

.exhibit-list { display: grid; }
.exhibit {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(16px, 3vw, 40px);
  align-items: center;
  padding: clamp(26px, 3.4vw, 44px) clamp(12px, 1.8vw, 22px);
  border-top: 1px solid var(--line-strong);
  text-decoration: none;
  transition: background 0.4s var(--ease);
}
.exhibit-list .exhibit:last-child { border-bottom: 1px solid var(--line-strong); }
.exhibit:hover { background: var(--surface); }
/* growing left accent bar — transform only, no reflow */
.exhibit::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18%;
  bottom: 18%;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent-detail), var(--accent-action));
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 0.5s var(--ease);
}
.exhibit:hover::before { transform: scaleY(1); }
@media (min-width: 720px) {
  .exhibit { grid-template-columns: auto 1fr minmax(140px, 22%); }
}
.exhibit__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--line-strong);
  font-variant-numeric: tabular-nums;
  transition: color 0.45s var(--ease), transform 0.45s var(--ease);
  align-self: center;
}
.exhibit:hover .exhibit__num { color: var(--accent-action); }
.exhibit__body { display: grid; gap: 8px; min-width: 0; transition: transform 0.45s var(--ease); }
.exhibit:hover .exhibit__body { transform: translateX(8px); }
.exhibit__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.01em;
  position: relative;
  display: inline;
  background-image: linear-gradient(90deg, var(--accent-action), var(--accent-action));
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.45s var(--ease);
  padding-bottom: 3px;
}
.exhibit:hover .exhibit__title { background-size: 100% 2px; }
.exhibit__summary { color: var(--ink-2); font-size: 0.98rem; line-height: 1.55; max-width: 60ch; }
.exhibit__aside { display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
.exhibit__thumb {
  width: 100%;
  max-width: 150px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4 / 3;
  display: none;
}
@media (min-width: 720px) { .exhibit__thumb { display: block; } }
.exhibit__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.exhibit:hover .exhibit__thumb img { transform: scale(1.08); }
.exhibit__arrow {
  flex: none;
  width: 42px; height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  color: var(--ink-2);
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.exhibit__arrow svg { width: 18px; height: 18px; }
.exhibit:hover .exhibit__arrow { background: var(--accent-action); color: #fff; border-color: var(--accent-action); transform: translateX(4px); }

/* Empty council state on the gallery */
.council-empty { margin-top: clamp(16px, 2.5vw, 28px); }

/* ---------------------------------------------------------------------------
   18. EXPOSIÇÃO DETAIL (document reading template)
--------------------------------------------------------------------------- */
#read-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  z-index: 60;
  background: linear-gradient(90deg, var(--accent-detail), var(--accent-action));
  transition: width 0.1s linear;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.3s var(--ease), gap 0.3s var(--ease);
}
.back-link .arrow { transition: transform 0.3s var(--ease); }
.back-link:hover { color: var(--accent-action); }
.back-link:hover .arrow { transform: translateX(-4px); }
.doc { max-width: 760px; }
.doc .sec-head { margin-top: clamp(36px, 5vw, 64px); }
.doc .sec-head:first-of-type { margin-top: 0; }
.doc .prose + .h3 { margin-top: clamp(28px, 4vw, 44px); }

/* ---------------------------------------------------------------------------
   16. CONTACT (cards, form, map)
--------------------------------------------------------------------------- */
.contact-card {
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 34px);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 12px;
}
.contact-card--dark { background: var(--dark); color: var(--on-dark); border-color: rgba(255,255,255,0.08); }
.contact-card__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-action);
}
.contact-card--dark .contact-card__label { color: var(--c-blue-soft); }
.contact-row { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.contact-row svg { width: 18px; height: 18px; color: var(--accent-detail); flex: none; }
.contact-row span, .contact-row address { font-style: normal; color: var(--ink-2); }
.contact-card--dark .contact-row span, .contact-card--dark .contact-row address { color: var(--on-dark); }
a.contact-row:hover span { color: var(--accent-action); }
.contact-card--dark a.contact-row:hover span { color: var(--c-blue-soft); }

.form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 8px; }
.form-row--split { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-row--split { grid-template-columns: 1fr 1fr; } }
.form label { font-weight: 600; font-size: 0.9rem; color: var(--ink); }
.form label .req { color: var(--accent-action); }
.form input, .form textarea {
  width: 100%;
  font: 400 1rem var(--font-body);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  min-height: 48px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.form textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.form input::placeholder, .form textarea::placeholder { color: var(--ink-3); }
.form input:focus, .form textarea:focus {
  outline: none;
  border-color: var(--accent-action);
  box-shadow: 0 0 0 3px rgba(31, 107, 176, 0.16);
}
.form-status {
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  background: rgba(31, 107, 176, 0.10);
  border: 1px solid rgba(31, 107, 176, 0.25);
  color: var(--accent-action-strong);
  font-size: 0.95rem;
}
.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  aspect-ratio: 16 / 9;
  background: var(--bg-alt);
}
.map-frame iframe { display: block; width: 100%; height: 100%; border: 0; }

/* ---------------------------------------------------------------------------
   15. MOTION (reveal on scroll) — transform/opacity only
--------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-media .image-frame img { transition: none !important; transform: none !important; }
  .skip-link { transition: none; }
  .interior * { scroll-behavior: auto !important; }
}
