:root{color-scheme:light;--ink:#19362e;--muted:#465c51;--paper:#f8f5ea;--green:#17352d;--green-deep:#102c25;--lime:#dce9b3;--line:#d6d9c8;--serif:Georgia,'Times New Roman',serif;--sans:system-ui,-apple-system,'Segoe UI',sans-serif}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.6 var(--sans)}a{color:inherit;text-underline-offset:.25em}a:hover{text-decoration-thickness:2px}a:focus-visible,summary:focus-visible{outline:3px solid #ae7426;outline-offset:4px}img{display:block;max-width:100%;height:auto}h1,h2,h3,p,figure{margin:0}h1,h2,h3{font-family:var(--serif);font-weight:normal;line-height:1.04}h1,h2{letter-spacing:-.055em}.wrap{width:min(1170px,calc(100% - 80px));margin-inline:auto}.skip{position:absolute;z-index:5;top:8px;left:8px;background:white;padding:10px;transform:translateY(-150%)}.skip:focus{transform:none}
.top,.hero{background:var(--green);color:#faf7eb}.top{border-bottom:1px solid #ffffff24}.navbar{min-height:78px;display:flex;justify-content:space-between;align-items:center;gap:25px}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;font:25px/.92 var(--serif)}.brand small{display:block;margin-top:6px;color:var(--lime);font:700 9px/1 var(--sans);letter-spacing:.17em}.navbar nav{display:flex;gap:32px}.navbar nav a{font-size:14px;text-decoration:none;color:#ecf0e2}.navbar nav a:hover{text-decoration:underline}
.hero{background:radial-gradient(ellipse at 72% 30%,#284a3a 0%,transparent 64%),var(--green)}.hero-grid{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:45px;padding-block:70px 55px}.label,.eyebrow,.card-type{font-size:11px;letter-spacing:.15em;font-weight:800}.label{color:var(--lime);display:flex;align-items:center;gap:12px;margin-bottom:26px}.label span{padding:4px 9px;border:1px solid #a5bb7d;border-radius:20px;letter-spacing:.08em}.hero h1{font-size:clamp(54px,6.4vw,94px);line-height:.98}.hero h1 em{color:var(--lime);font-weight:normal}.intro{max-width:41ch;color:#e0e8d9;margin-top:24px;font-size:17px}.hero-actions{display:flex;align-items:center;flex-wrap:wrap;gap:21px;margin-top:29px}.button{display:inline-flex;align-items:center;gap:20px;border-radius:5px;padding:11px 17px;background:var(--lime);color:var(--green-deep);font-weight:750;text-decoration:none}.button:hover{background:#eef4d5}.secondary{color:#edf1e3;font-size:14px}
.milestones{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid #ffffff35}.milestones a{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;padding:16px 20px;text-decoration:none}.milestones a:first-child{padding-left:0}.milestones a+a{border-left:1px solid #ffffff35}.milestones a:hover span{text-decoration:underline}.milestones b{font:30px/1 var(--serif);color:var(--lime)}.milestones span{font-size:13px}.milestones i{font-style:normal;color:var(--lime)}
.section{padding-block:75px}.section-head{display:grid;grid-template-columns:1.7fr 1fr;align-items:end;gap:28px;margin-bottom:31px}.section-head h2{font-size:clamp(42px,5vw,66px);margin-top:8px}.section-head>p{max-width:37ch;color:var(--muted)}.eyebrow,.card-type{color:#536342}.timeline{border-top:1px solid var(--line)}details{border-bottom:1px solid var(--line);scroll-margin-top:20px}summary{cursor:pointer;display:grid;grid-template-columns:112px 1fr 32px;align-items:center;gap:20px;padding:18px 14px;list-style:none}summary::-webkit-details-marker{display:none}summary:hover{background:#edf0df}summary::after{content:'+';text-align:center;font-size:23px;line-height:32px;border:1px solid #a8b49a;border-radius:50%}details[open] summary::after{content:'−';background:var(--green);border-color:var(--green);color:white}details[open]{background:#ecf0df}.year{font:36px/1 var(--serif);color:#4b6341}summary small{display:block;font-size:10px;font-weight:800;letter-spacing:.12em;color:#55634b}summary strong{display:block;font:clamp(19px,2.3vw,28px)/1.13 var(--serif);margin-top:4px}.detail{padding:0 50px 23px 146px}.detail p{max-width:76ch;color:#34493d;margin-bottom:8px}.detail a,.card a,.chapters a{font-size:14px;font-weight:750}
.archive{background:#e9ecdd;border-block:1px solid var(--line)}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.card{border:1px solid #c1c9b4;background:#f6f6ea;border-radius:6px;padding:23px;display:flex;flex-direction:column;gap:12px}.card h3,.chapters h3{font-size:28px}.card>p:not(.card-type),.chapters p{color:var(--muted)}.card a{margin-top:auto;padding-top:6px}.chapters{border-top:1px solid var(--line)}.chapters article{display:grid;grid-template-columns:55px 1fr auto;align-items:center;gap:15px;padding:17px 0;border-bottom:1px solid var(--line)}.chapters article>span{font:24px/1 var(--serif);color:#586b48}.chapters p{margin-top:5px}.chapters small{letter-spacing:.09em;font-size:9px;font-weight:800;background:#ecefdd;padding:4px 7px;border:1px solid #cbd2bc;border-radius:20px}footer{background:var(--green-deep);color:#f7f5e7;padding:29px 0}footer .wrap{display:flex;justify-content:space-between;gap:20px;align-items:center}footer strong{font:24px/1 var(--serif)}footer p,footer a{font-size:13px;color:#dce5d6}
@media(max-width:870px){.wrap{width:calc(100% - 44px)}.hero-grid{gap:24px;padding-block:49px 38px}.hero h1{font-size:clamp(44px,7vw,70px)}.milestones a{grid-template-columns:1fr auto;gap:3px 8px}.milestones span{grid-row:2}.milestones i{grid-row:1;grid-column:2}.cards{gap:10px}.card{padding:16px}}
@media(max-width:630px){.wrap{width:calc(100% - 32px)}.navbar{flex-wrap:wrap;gap:12px;padding-block:13px}.navbar nav{width:100%;gap:20px}.navbar nav a{font-size:13px}.hero-grid,.section-head,.cards{grid-template-columns:1fr}.hero-grid{padding-block:37px 25px}.hero h1{font-size:clamp(44px,10vw,62px);max-width:12ch}.desktop{display:none}.label{margin-bottom:17px}.intro{margin-top:18px}.hero-actions{margin-top:20px;gap:15px}.milestones a{padding:11px 8px}.milestones b{font-size:25px}.milestones span{font-size:11px;line-height:1.3}.section{padding-block:45px}.section-head{gap:12px;margin-bottom:22px}summary{grid-template-columns:55px 1fr 28px;gap:10px;padding:14px 7px}.year{font-size:27px}summary::after{line-height:28px}.detail{padding:0 14px 17px 72px}.chapters article{grid-template-columns:29px 1fr auto;gap:8px}.chapters h3{font-size:22px}.chapters p{font-size:14px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

[hidden]{display:none!important}
button{font:inherit}
button:focus-visible{outline:3px solid #ae7426;outline-offset:4px}
.journey{background:#e8ecdc;border-bottom:1px solid var(--line)}
.journey-controls{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:10px}
.journey-controls button,.journey-footer button,.choice-list button{border:1px solid #a9b69d;background:#f8f6ed;color:var(--ink);border-radius:6px;cursor:pointer;font-weight:700}
.journey-controls button{display:flex;gap:9px;text-align:left;align-items:center;padding:11px 13px;font-size:14px;line-height:1.35}
.journey-controls button span{font:22px/1 var(--serif)}
.journey-controls button[aria-pressed=true]{background:var(--green);color:var(--lime);border-color:var(--green)}
.journey-frame{border:1px solid #b8c3ac;border-radius:8px;background:#f8f6ed;overflow:hidden}
.scene{display:grid;grid-template-columns:.82fr 1.18fr;gap:28px;align-items:start;padding:clamp(18px,4vw,43px)}

.scene-copy>p:not(.eyebrow){max-width:42ch}

.scene-copy .text-button{margin-top:15px}
.scene-interaction{min-width:0}
.decision{padding:clamp(16px,3vw,28px);border:1px solid #cad1b9;background:#eef0e1;border-radius:7px}
.decision h4{font:clamp(23px,3vw,31px)/1.15 var(--serif);margin:7px 0 13px}
.choice-list{display:grid;gap:7px}
.choice-list button{text-align:left;padding:9px 12px}
.choice-list button:hover,.journey-footer button:not(:disabled):hover,.journey-controls button:not([aria-pressed=true]):hover{background:#e0e8cd}
.choice-list button[aria-pressed=true]{background:#dbe9b0;border-color:#738a55}
.choice-answer{margin-top:13px;min-height:3em;color:#34493d}
.journey-footer{display:grid;grid-template-columns:auto 1fr auto;align-items:center;text-align:center;gap:10px;border-top:1px solid var(--line);padding:11px clamp(12px,3vw,22px)}
.journey-footer button{padding:6px 11px;font-size:13px}
.journey-footer button:disabled{opacity:.45;cursor:default}
.journey-footer span{font-size:13px;color:var(--muted)}
.route-map{position:relative;background:var(--green);border-radius:7px 7px 0 0}
.route-map img{width:100%}
.pin{position:absolute;transform:translate(-50%,-50%);border:2px solid #f7f6e9;background:#234237;color:#fff;min-width:34px;height:34px;border-radius:50%;font-weight:800;cursor:pointer;box-shadow:0 0 0 3px #172e2588}
.pin[aria-pressed=true]{background:#e7f0b8;color:#172e25}
.pin[data-route="0"]{left:12%;top:77%}.pin[data-route="1"]{left:32%;top:62%}.pin[data-route="2"]{left:63%;top:34%}.pin[data-route="3"]{left:87%;top:49%}
.route-note{padding:10px 13px;background:#e6ebd4;border-radius:0 0 7px 7px;min-height:5em}
.visual-caption{color:var(--muted);font-size:12px;margin-top:8px}
.record{padding:0;border-bottom:1px solid #bbc5aa}
.record summary{display:list-item;padding:8px 0;list-style:inside disclosure-closed;font-weight:700}
.record[open] summary{list-style-type:disclosure-open}
.record summary::after{content:none}
.record p{padding:0 0 9px}
.video-wrap{aspect-ratio:16/9;background:var(--green-deep);border-radius:7px;overflow:hidden}
.video-wrap iframe,.video-wrap button{border:0;width:100%;height:100%}
.video-wrap button{background:radial-gradient(ellipse at top,#385a43,var(--green-deep));color:#f7f6e8;cursor:pointer;display:grid;place-content:center;justify-items:center;gap:8px;font-weight:750}
.video-wrap button span{border:1px solid #b7c994;border-radius:50%;width:44px;line-height:42px;text-align:center;color:var(--lime)}
.video-wrap button small{font-size:11px;color:var(--lime)}
.video-wrap button:focus-visible{outline-offset:-4px}
.text-button{border:0;padding:0;background:transparent;color:var(--ink);font-size:14px;font-weight:750;text-decoration:underline;text-underline-offset:.25em;cursor:pointer;text-align:left}
.card .text-button{margin-top:auto;align-self:flex-start}
#source-dialog{width:min(530px,calc(100% - 30px));max-height:calc(100% - 30px);border:1px solid #a7b49a;border-radius:9px;background:#f8f6ed;color:var(--ink);padding:clamp(18px,4vw,36px);box-shadow:0 18px 75px #091b14a0}
#source-dialog::backdrop{background:#101f18b5}
#source-dialog h2{font-size:clamp(36px,6vw,54px);margin:8px 0 12px}
#source-body p{margin-bottom:10px}
#source-body a,.source-credit{font-size:13px}
.dialog-close{position:absolute;top:12px;right:12px;width:36px;height:36px;border-radius:50%;border:1px solid #b9c4ab;background:#ecf0df;color:var(--ink);font-size:24px;line-height:1;cursor:pointer}
@media(max-width:720px){.journey-controls{grid-template-columns:repeat(2,1fr)}.scene{grid-template-columns:1fr;gap:15px}.scene-copy .text-button{margin-top:8px}}
@media(max-width:400px){.navbar nav{gap:12px}.navbar nav a{font-size:12px}}

/* Illustrated exhibition */
:root {
  --ink: #173330;
  --muted: #445b56;
  --paper: #f7f1e6;
  --green: #1c3935;
  --green-deep: #102522;
  --lime: #f4d391;
  --line: #d7d2c2;
}

.top { background: #102522; }
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #122926;
}
.hero-image, .hero::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.hero-image { object-fit: cover; object-position: center 51%; }
.hero::after {
  content: "";
  background:
    linear-gradient(90deg, #0b201cf2, #10252299 38%, transparent 73%),
    linear-gradient(0deg, #0c211ff5, transparent 36%);
}
.hero-grid {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(520px, 63vw, 720px);
  padding-block: 70px 85px;
}
.hero h1 { font-size: clamp(58px, 7.2vw, 111px); }
.hero h1 em { color: #ffd997; }
.hero .intro { color: #fcf5e8; }
.hero-credit {
  position: absolute;
  right: 0;
  bottom: 18px;
  color: #f9ebd4;
  font-size: 11px;
  letter-spacing: .055em;
}
.hero .button { padding: 13px 19px; background: #ffdaa0; }
.hero .button:hover { background: #fff0cd; }

.journey {
  background: radial-gradient(ellipse at 78% 10%, #294a46, transparent 62%), #122b28;
  border-bottom-color: #385551;
  color: #fcf6e8;
}
.journey .section { padding-block: clamp(55px, 8vw, 106px); }
.journey .section-head > p { color: #e0e6df; }
.journey .section-head .eyebrow { color: #efca88; }
.journey-controls { gap: 9px; margin-bottom: 16px; }
.journey-controls button,
.journey-controls button:not([aria-pressed=true]):hover {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 11px;
  row-gap: 2px;
  padding: 12px 13px;
  border: 1px solid #829a8c80;
  border-radius: 8px;
  background: #1c3734;
  color: #f9f5e8;
  transition: background .18s, border-color .18s;
}
.journey-controls button:not([aria-pressed=true]):hover { background: #34534d; }
.journey-controls button[aria-pressed=true] {
  border-color: #f8d59a;
  background: #f8d59a;
  color: #2f291c;
}
.journey-controls button span { grid-row: span 2; }
.journey-controls small { font-size: 11px; font-weight: 500; }
.journey-frame {
  border-color: #a2b0a17a;
  border-radius: 15px;
  background: #f7f1e6;
  color: var(--ink);
  box-shadow: 0 23px 56px #061b1980;
}
.scene {
  grid-template-columns: .86fr 1.14fr;
  gap: clamp(20px, 4vw, 44px);
  padding: 0 clamp(20px, 4vw, 44px) clamp(20px, 4vw, 44px);
  animation: reveal-scene .32s ease-out both;
}
@keyframes reveal-scene {
  from { opacity: .72; }
  to { opacity: 1; }
}
.scene-banner {
  grid-column: 1 / -1;
  position: relative;
  display: flex;
  align-items: end;
  min-height: clamp(250px, 34vw, 405px);
  margin-inline: calc(-1 * clamp(20px, 4vw, 44px));
  padding: clamp(24px, 5vw, 60px);
  padding-bottom: clamp(45px, 6vw, 70px);
  isolation: isolate;
  overflow: hidden;
  background: var(--scene-shade, #143433);
  color: #fff7e8;
}
.scene-banner::before,
.scene-banner::after { content: ""; position: absolute; inset: 0; z-index: -1; }
.scene-banner::before {
  background: var(--scene-art) right 36% center / min(60%, 660px) auto no-repeat;
}
.scene-banner::after {
  background:
    linear-gradient(90deg, var(--scene-shade, #143433) 3%, var(--scene-fade, #143433bf) 38%, transparent 75%),
    linear-gradient(0deg, #121e1cda, transparent 53%);
}
[data-panel="0"] { --scene-art: url("imagens/sede.webp"); --scene-shade: #37221b; --scene-fade: #37221bd9; }
[data-panel="2"] { --scene-art: url("imagens/fachada-1955.webp"); --scene-shade: #112d39; --scene-fade: #112d39d9; }
[data-panel="3"] { --scene-art: url("imagens/autarquia.webp"); --scene-shade: #34241d; --scene-fade: #34241dd9; }
[data-panel="5"] { --scene-art: url("imagens/eta-decantador-2013.webp"); }
[data-panel="5"] .scene-banner::before { background-size: cover; background-position: center; }
.scene-title .eyebrow { color: #ffdc9f; text-transform: uppercase; margin-bottom: 10px; }
.scene-title h3 { max-width: 13ch; font-size: clamp(43px, 6.2vw, 88px); letter-spacing: -.05em; }
.art-credit { position: absolute; right: 18px; bottom: 12px; font-size: 11px; color: #fff2d8; }
.scene-copy { font-size: clamp(16px, 1.5vw, 18px); }
.decision { background: #eee7d6; border-color: #d6cbb2; }
.choice-list button[aria-pressed=true] { background: #f5d8a1; border-color: #9a6b30; }
.choice-list button:hover { background: #f7e4ba; }
.journey-footer { background: #eee8db; }
.journey-footer #scene-next, #journey-timeline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7em;
  min-height: 42px;
  padding: 8px 13px;
  background: #21423d;
  color: #fff6e3;
  border: 1px solid #21423d;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
}
.journey-footer #scene-next:hover, #journey-timeline:hover { background: #376257; }
.journey-footer #scene-next span, #journey-timeline span { color: #ffdaa0; }
.video-wrap button {
  background: linear-gradient(#10252275, #102522b8), url("imagens/eta-decantador-2013.webp") center / cover;
}
.video-wrap button:hover span { background: #ffdaa0; color: #102522; }

@media (max-width: 720px) {
  .hero-grid { min-height: 610px; align-items: end; padding-block: 60px; }
  .hero-image { object-position: 71% 35%; }
  .hero::after {
    background: linear-gradient(0deg, #0b201cf5, #102522ca 40%, #10252226 88%);
  }
  .hero h1 { font-size: clamp(49px, 10vw, 78px); }
  .hero-credit { bottom: 12px; }
  .scene { grid-template-columns: 1fr; }
  .scene-banner { min-height: 310px; }
  .scene-banner::before { background-position: right center; background-size: 75% auto; }
  .scene-banner::after {
    background: linear-gradient(0deg, #121e1cfa, #121e1c58 54%, transparent),
      linear-gradient(90deg, var(--scene-shade, #143433), transparent 66%);
  }
}
@media (max-width: 400px) {
  .journey-footer { grid-template-columns: auto 1fr; }
  .journey-footer .journey-position { grid-column: 1 / -1; grid-row: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .scene { animation: none; }
  .journey-controls button { transition: none; }
}

/* Guided story */
.journey-controls { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.journey-controls button { align-content: center; min-height: 72px; }
.journey-controls button strong { font-size: 13px; }
.scene-banner { align-items: end; }
[data-panel="1"] { --scene-art: url("imagens/camara.webp"); --scene-shade: #2d211b; --scene-fade: #2d211bd9; }
[data-panel="4"] { --scene-art: url("imagens/decantadores-1973.webp"); --scene-shade: #122e38; --scene-fade: #122e38d9; }
[data-panel="1"] .scene-banner::before,
[data-panel="2"] .scene-banner::before,
[data-panel="4"] .scene-banner::before { background-size: cover; background-position: center 52%; }
.scene-copy > p + p { margin-top: .85em; }
.scene-copy .story-opening {
  font: clamp(24px, 2.8vw, 33px)/1.19 var(--serif);
  color: #24413b;
  max-width: 27ch;
}
.scene-interaction > .eyebrow { margin-bottom: .5em; }
.scene-interaction .text-button { margin-top: .75em; }
.date-note { margin-top: 1em; }
.date-note .text-button { margin: 0 0 .75em; }
.scene-bridge {
  grid-column: 1 / -1;
  align-self: end;
  border-left: 3px solid #ab752f;
  margin-top: .15em;
  padding: 6px 0 6px 16px;
  color: #3d574d;
  font: clamp(19px, 2.4vw, 24px)/1.3 var(--serif);
}
.scene-object {
  position: absolute;
  z-index: 1;
  bottom: 42px;
  right: clamp(18px, 3vw, 38px);
  max-width: min(265px, 80%);
  border: 1px solid #f7d9a18c;
  border-radius: 8px;
  background: #112a27ed;
  color: #fff4dd;
  box-shadow: 0 5px 24px #131a16a0;
}
.scene-object[open] { background: #112a27; }
.scene-object summary {
  display: flex;
  align-items: center;
  gap: .6em;
  padding: 7px 13px;
  border-radius: inherit;
  font-size: 13px;
  font-weight: 750;
}
.scene-object summary:hover { background: #2f4d44; }
.scene-object summary::after { content: none; }
.scene-object summary span {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  background: #ffdaa0;
  color: #142f2b;
  border-radius: 50%;
  font-size: 19px;
  font-weight: 550;
  line-height: 1;
}
.scene-object[open] summary span { transform: rotate(45deg); }
.scene-object p { padding: 2px 13px 12px; font-size: 13px; }
.journey-position { display: grid; gap: 4px; justify-items: center; }
.journey-position progress { width: min(108px, 100%); height: 5px; accent-color: #3b6859; }
@media (max-width: 1000px) {
  .journey-controls { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 630px) {
  .journey-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .journey-controls button { min-height: 56px; }
  .scene-banner:has(.scene-object) { padding-bottom: 97px; }
  .scene-banner:has(.scene-object[open]) { padding-bottom: 178px; }
}

#source-body .reference-art {
  width: 100%;
  height: auto;
  margin-bottom: 14px;
  border-radius: 6px;
}

.art-watermark,
.video-wrap button .art-watermark {
  position: absolute;
  z-index: 1;
  bottom: 12px;
  left: 16px;
  width: auto;
  padding: 1px 7px;
  border: 0;
  border-radius: 3px;
  background: #10252280;
  color: #fff4dbe6;
  font: 500 10px/1.5 var(--sans);
  letter-spacing: .025em;
  text-shadow: 0 1px 2px #102522;
  pointer-events: none;
}
.hero-grid > .art-watermark { left: 0; bottom: 18px; }
.video-wrap button, .reference-figure { position: relative; }
.reference-figure { margin-bottom: 14px; }
#source-body .reference-art { margin-bottom: 0; }
.route-map > .art-watermark, .reference-figure > .art-watermark { bottom: 7px; left: 7px; }
@media (max-width: 460px) {
  .hero-grid > .art-watermark { bottom: 12px; }
  .art-credit { right: 10px; bottom: 10px; max-width: 50%; text-align: right; line-height: 1.2; }
  .art-watermark { left: 10px; bottom: 10px; }
}

.visual-method { margin-top: 20px; }

@media (max-width: 460px) {
  .hero-credit { max-width: 44%; text-align: right; line-height: 1.2; }
}

/* Streets and paving chapter */
.road-journey {
  background: radial-gradient(ellipse at 76% 8%, #2c4d47, transparent 58%), #122b28;
  color: #fcf6e8;
  border-bottom: 1px solid #385551;
}
.road-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(610px, 75vw, 790px);
  background: #1b302c;
}
.road-hero-image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 58% center; }
.road-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #0b201cf5, #102522a8 40%, transparent 76%), linear-gradient(0deg, #0c211ff5, transparent 47%);
}
.road-hero-grid { position: relative; display: flex; align-items: center; min-height: clamp(515px, 64vw, 660px); padding-block: 70px 90px; }
.road-hero-copy { max-width: 600px; }
.road-hero h2 { font-size: clamp(57px, 7.2vw, 108px); letter-spacing: -.06em; line-height: .98; }
.road-hero h2 em { color: #ffd997; font-weight: normal; }
.road-hero .intro { color: #fcf5e8; }
.road-hero .button { background: #ffdaa0; color: #142f2b; }
.road-hero .button:hover { background: #fff0cd; }
.road-hero .secondary { color: #f5f1e2; }
.road-hero .art-watermark { left: 0; bottom: 20px; }
.road-hero .hero-credit { right: 0; bottom: 20px; }
.road-milestones { position: relative; grid-template-columns: repeat(4, 1fr); border-color: #ffffff35; }
.road-milestones a { color: #f7f5e8; }
.road-milestones b,.road-milestones i { color: #ffdc9f; }
.road-journey > .section { padding-block: clamp(55px, 8vw, 106px); }
.road-journey .section-head > p { color: #e0e6df; }
.road-journey .section-head .eyebrow { color: #efca88; }
.road-controls { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 9px; margin-bottom: 16px; }
.road-controls button {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  row-gap: 2px;
  min-height: 72px;
  padding: 12px 13px;
  border: 1px solid #829a8c80;
  border-radius: 8px;
  background: #1c3734;
  color: #f9f5e8;
  text-align: left;
  cursor: pointer;
  transition: background .18s, border-color .18s;
}
.road-controls button:hover { background: #34534d; }
.road-controls button[aria-pressed=true] { border-color: #f8d59a; background: #f8d59a; color: #2f291c; }
.road-controls button span { grid-row: span 2; font: 22px/1 var(--serif); }
.road-controls button strong { font-size: 13px; line-height: 1.25; }
.road-controls button small { font-size: 11px; font-weight: 500; }
.road-frame { border: 1px solid #a2b0a17a; border-radius: 15px; background: #f7f1e6; color: var(--ink); box-shadow: 0 23px 56px #061b1980; overflow: hidden; }
.road-scene { animation: reveal-scene .32s ease-out both; }
.road-scene-banner { --scene-art: url("imagens/ruas-calcamento.webp"); --scene-shade: #29352e; --scene-fade: #29352ed9; }
.road-banner-ground { --scene-art: url("imagens/ruas-hero.webp"); --scene-shade: #3a281c; --scene-fade: #3a281cd9; }
.road-banner-stone { --scene-art: url("imagens/ruas-calcamento.webp"); --scene-shade: #3b2b20; --scene-fade: #3b2b20d9; }
.road-banner-asphalt { --scene-art: url("imagens/ruas-asfalto.webp"); --scene-shade: #293b36; --scene-fade: #293b36d9; }
.road-banner-road { --scene-art: url("imagens/ruas-rodovia.webp"); --scene-shade: #273b35; --scene-fade: #273b35d9; }
.road-banner-map { --scene-art: url("imagens/ruas-hero.webp"); --scene-shade: #293a34; --scene-fade: #293a34e6; }
.road-banner-avenue { --scene-art: url("imagens/ruas-avenida.webp"); --scene-shade: #223a35; --scene-fade: #223a35d9; }
.road-scene-banner::before { background-size: min(65%, 760px) auto; background-position: right 42% center; }
.road-footer { display: grid; grid-template-columns: auto 1fr auto; align-items: center; text-align: center; gap: 10px; border-top: 1px solid var(--line); padding: 11px clamp(12px, 3vw, 22px); background: #eee8db; }
.road-footer button { padding: 6px 11px; border: 1px solid #a9b69d; border-radius: 6px; background: #f8f6ed; color: var(--ink); cursor: pointer; font-size: 13px; font-weight: 700; }
.road-footer button:not(:disabled):hover { background: #e0e8cd; }
.road-footer button:disabled { opacity: .45; cursor: default; }
.road-footer #road-next, .road-footer #road-timeline { display: inline-flex; align-items: center; justify-content: center; gap: .7em; min-height: 42px; padding: 8px 13px; background: #21423d; color: #fff6e3; border: 1px solid #21423d; border-radius: 6px; font-size: 13px; font-weight: 750; line-height: 1.2; text-decoration: none; }
.road-footer #road-next:hover, .road-footer #road-timeline:hover { background: #376257; }
.road-footer #road-next span, .road-footer #road-timeline span { color: #ffdaa0; }
.road-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #385551; }
.road-strip button { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px; padding: 17px 18px; border: 0; border-right: 1px solid #385551; background: #17332f; color: #f7f5e8; text-align: left; cursor: pointer; }
.road-strip button:last-child { border-right: 0; }
.road-strip button:hover { background: #264a43; }
.road-strip b { font: 26px/1 var(--serif); color: #ffdc9f; }
.road-strip span { font-size: 12px; line-height: 1.25; }
.road-strip i { color: #ffdc9f; font-style: normal; }
.photo-compare { position: relative; aspect-ratio: 1200 / 848; overflow: hidden; border-radius: 8px; background: #2c3c37; isolation: isolate; }
.photo-compare figure { position: absolute; inset: 0; margin: 0; }
.photo-compare img { width: 100%; height: 100%; object-fit: cover; }
.photo-compare-top { z-index: 2; width: 100%; clip-path: inset(0 50% 0 0); border-right: 2px solid #ffdda1; }
.photo-compare figcaption { position: absolute; left: 12px; bottom: 12px; padding: 4px 8px; border-radius: 4px; background: #102522cc; color: #fff5df; font-size: 12px; font-weight: 750; }
.photo-compare-base figcaption { left: auto; right: 12px; }
.photo-compare-range { position: absolute; z-index: 4; inset: 0; cursor: ew-resize; }
.photo-compare-range input { width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.photo-compare-handle { position: absolute; z-index: 3; top: 50%; left: 50%; display: grid; place-items: center; width: 38px; height: 38px; transform: translate(-50%, -50%); border: 2px solid #fff8e8; border-radius: 50%; background: #19362ecc; color: #ffdda1; font-weight: 800; pointer-events: none; }
.law-stack { display: grid; gap: 8px; }
.law-stack > div { display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: 13px; padding: 15px; border: 1px solid #cfc7b5; border-left: 4px solid #8d9b77; border-radius: 6px; background: #eee8da; }
.law-stack > div.active { border-left-color: #ae7426; background: #f6dba6; }
.law-stack b { font: 27px/1 var(--serif); color: #526446; }
.law-stack span { font-size: 14px; font-weight: 700; }
.law-stack + .text-button { margin-top: 14px; }
.source-warning { margin-top: 1em; padding: 9px 0 9px 14px; border-left: 3px solid #ae7426; color: #6c4a26; font-size: .9em; }
.city-map { border: 1px solid #c9c6b7; border-radius: 8px; overflow: hidden; background: #e9e6d9; }
.map-surface { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #ddd9c6; background-image: linear-gradient(30deg, #ffffff35 12%, transparent 12.5%, transparent 87%, #ffffff35 87.5%, #ffffff35), linear-gradient(150deg, #ffffff35 12%, transparent 12.5%, transparent 87%, #ffffff35 87.5%, #ffffff35); background-size: 34px 54px; }
.map-surface::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 22% 70%, #9caa7e88 0 9%, transparent 10%), radial-gradient(circle at 68% 30%, #b7b08a77 0 7%, transparent 8%); pointer-events: none; }
.map-river { position: absolute; top: -10%; right: 29%; width: 12%; height: 125%; transform: rotate(22deg); background: #8cb5ac9c; border: 2px solid #5f958c80; border-radius: 50%; }
.map-route { position: absolute; z-index: 1; display: block; border: 7px solid #a46d37; border-right-color: transparent; border-bottom-color: transparent; border-radius: 50%; opacity: .2; transition: opacity .2s, filter .2s; }
.map-route-centro { left: 21%; top: 37%; width: 40%; height: 34%; transform: rotate(16deg); }
.map-route-avenida { left: 13%; top: 42%; width: 76%; height: 19%; transform: rotate(-12deg); border-top-color: #b65e32; }
.map-route-rodovia { left: 4%; top: 15%; width: 92%; height: 71%; transform: rotate(12deg); border-top-color: #536c4e; border-left-color: #536c4e; }
.map-route-sul { left: 27%; top: 56%; width: 36%; height: 42%; transform: rotate(-20deg); border-top-color: #8b6385; border-left-color: #8b6385; }
.map-label { position: absolute; z-index: 2; padding: 3px 6px; border-radius: 3px; background: #f6f0dbd9; color: #3e4d3c; font-size: 10px; letter-spacing: .08em; }
.map-label-centro { left: 42%; top: 48%; }
.map-label-sul { left: 50%; bottom: 10%; }
.map-label-rodovia { left: 5%; top: 9%; }
.city-map[data-map-layer="centro"] .map-route-centro,
.city-map[data-map-layer="avenida"] .map-route-avenida,
.city-map[data-map-layer="rodovia"] .map-route-rodovia,
.city-map[data-map-layer="sul"] .map-route-sul { opacity: 1; filter: drop-shadow(0 0 3px #fff9); }
.map-controls { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px; background: #f2eedf; }
.map-controls button { padding: 6px 9px; border: 1px solid #b9c1ab; border-radius: 5px; background: #fbf8ed; color: var(--ink); font-size: 12px; cursor: pointer; }
.map-controls button[aria-pressed="true"] { border-color: #ae7426; background: #f5d8a1; }
.route-note { min-height: 3.6em; padding: 10px 13px; background: #e6ebd4; color: #34493d; font-size: 13px; }
.avenue-card { display: flex; align-items: center; gap: 15px; padding: 17px; border: 1px solid #cfc7b5; border-radius: 8px; background: #eee8da; }
.avenue-number { font: 68px/.85 var(--serif); color: #ae7426; }
.avenue-card b { font: 23px/1.05 var(--serif); }
.avenue-card p { margin-top: 5px; color: var(--muted); font-size: 13px; }
.works-list { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 17px; margin: 15px 0 0; padding-left: 18px; color: #34493d; font-size: 13px; }
.works-list + .text-button { display: inline-block; margin-top: 14px; }
.source-photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.source-photo-grid figure { overflow: hidden; border-radius: 6px; background: #e6e2d5; }
.source-photo-grid img { width: 100%; aspect-ratio: 1.2; object-fit: cover; }
.source-photo-grid figcaption { padding: 6px 8px; font-size: 12px; font-weight: 750; }
.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; }
@media (max-width: 1000px) {
  .road-controls { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .road-milestones { grid-template-columns: repeat(2, 1fr); }
  .road-milestones a:nth-child(3) { border-left: 0; }
}
@media (max-width: 720px) {
  .road-hero-grid { min-height: 610px; align-items: end; padding-block: 60px; }
  .road-hero-image { object-position: 70% 35%; }
  .road-hero::after { background: linear-gradient(0deg, #0b201cf5, #102522ca 42%, #10252226 90%); }
  .road-hero h2 { font-size: clamp(49px, 10vw, 78px); }
  .road-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .road-scene-banner::before { background-position: right center; background-size: 75% auto; }
  .road-strip { grid-template-columns: repeat(2, 1fr); }
  .road-strip button:nth-child(2) { border-right: 0; }
  .road-strip button:nth-child(-n+2) { border-bottom: 1px solid #385551; }
}
@media (max-width: 630px) {
  .road-milestones a { padding: 11px 8px; }
  .road-milestones b { font-size: 25px; }
}
@media (max-width: 400px) {
  .road-footer { grid-template-columns: auto 1fr; }
  .road-footer .journey-position { grid-column: 1 / -1; grid-row: 1; }
  .road-strip span { font-size: 11px; }
  .works-list { grid-template-columns: 1fr; }
}

/* Percursos de imprensa e lugares */
.editorial-hero { min-height: auto; }
.editorial-hero .road-hero-grid { min-height: clamp(500px, 58vw, 680px); }
.editorial-banner { --scene-shade: #263a30; --scene-fade: #263a30d9; }
.editorial-banner::before { background-size: cover; background-position: center; }
.editorial-photo { overflow: hidden; background: #e7dfcf; border: 1px solid #d8cfbb; border-radius: 8px; }
.editorial-photo img { width: 100%; max-height: 420px; object-fit: contain; background: #ddd1bc; }
.editorial-photo figcaption { padding: 9px 12px; color: #445b56; font-size: 12px; line-height: 1.45; }
.editorial-source { display: inline-block; margin-top: 15px; color: var(--ink); font-size: 14px; font-weight: 750; }
.editorial-footer [data-editorial-next], .editorial-end { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 8px 13px; border: 1px solid #21423d; border-radius: 6px; background: #21423d; color: #fff6e3; font-size: 13px; font-weight: 750; line-height: 1.2; text-decoration: none; }
.editorial-footer [data-editorial-next]:hover, .editorial-end:hover { background: #376257; }
.art-watermark,
.video-wrap button .art-watermark { font-size: 9px; opacity: .72; padding: 1px 5px; }
.navbar nav { flex-wrap: wrap; justify-content: flex-end; gap: 12px 25px; }
@media (max-width: 720px) {
  .editorial-hero .road-hero-grid { min-height: 560px; }
  .editorial-banner::before { background-size: cover; }
}
@media (max-width: 630px) {
  .navbar nav { justify-content: flex-start; gap: 8px 16px; }
}

/* Faixa de marcos do capítulo de ruas: mantém os botões dentro da tela */
@media (max-width: 799px) {
  .road-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .road-strip button { min-width: 0; }
  .road-strip button:nth-child(2) { border-right: 0; }
  .road-strip button:nth-child(-n+2) { border-bottom: 1px solid #385551; }
}
@media (max-width: 539px) {
  .road-strip { grid-template-columns: 1fr; }
  .road-strip button { border-right: 0; }
  .road-strip button + button { border-top: 1px solid #385551; }
  .road-strip button:nth-child(-n+2) { border-bottom: 0; }
}

/* ==========================================================================
   Arquitetura de Portal: visualizações dedicadas, temas isolados e navegação
   ========================================================================== */

/* Alternância de áreas temáticas */
[data-portal-view] {
  display: block;
}
[data-portal-view]:not(.is-active),
[data-portal-view][hidden] {
  display: none !important;
}

/* Barra de contexto interna do tema (sticky no topo de cada tema) */
.portal-context-bar {
  background: #102522;
  border-bottom: 1px solid #ffffff24;
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 4px 18px #08171566;
}
.context-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.context-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffd997;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  transition: opacity .18s;
}
.context-back:hover {
  text-decoration: underline;
  opacity: .9;
}
.context-pill {
  font-size: 11px;
  letter-spacing: .08em;
  font-weight: 700;
  color: #e2ebd9;
  background: #1c3935;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid #829a8c66;
}

/* Indicador ativo nos links do menu principal */
.navbar nav a.is-active {
  color: #ffd997;
  text-decoration: underline;
  text-underline-offset: .35em;
  font-weight: 750;
}

/* Barra de resumo de percursos no hero inicial */
.portal-summary-bar {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 900px) {
  .portal-summary-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 540px) {
  .portal-summary-bar {
    grid-template-columns: 1fr;
  }
}

/* Grid de seleção dos 4 temas no portal home */
.portal-themes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  margin-top: 28px;
}
.theme-card {
  border: 1px solid #c8cfbe;
  border-radius: 12px;
  background: #fbf9f1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  box-shadow: 0 4px 20px #091b1414;
}
.theme-card:hover {
  transform: translateY(-4px);
  border-color: #ffd997;
  box-shadow: 0 14px 34px #091b1424;
}
.theme-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #122926;
}
.theme-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .32s ease;
}
.theme-card:hover .theme-card-media img {
  transform: scale(1.04);
}
.theme-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #102522eb;
  color: #ffd997;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  border: 1px solid #ffffff24;
}
.theme-card-scenes {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: #102522d4;
  color: #f7f1e6;
  padding: 4px 9px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
}
.theme-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.theme-card-body h3 {
  font-size: clamp(23px, 2.2vw, 29px);
  line-height: 1.15;
  color: var(--ink);
}
.theme-card-body p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}
.theme-card-meta {
  font-size: 12px;
  color: #4a5c48;
  font-weight: 700;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #e2decb;
}
.theme-launch-btn {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 18px;
  font-size: 14px;
  background: #ffdaa0;
  color: #142f2b;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 750;
  transition: background .18s;
}
.theme-launch-btn:hover {
  background: #ffe6ba;
}

/* Seção de acessos rápidos a Cronologia e Acervo */
.portal-access-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 42px;
}
.access-box {
  padding: 26px;
  border: 1px solid #cbd2be;
  border-radius: 10px;
  background: #eee8d8;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.access-box h3 {
  font-size: 24px;
  line-height: 1.2;
}
.access-box p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}
.access-box .secondary {
  margin-top: auto;
  align-self: flex-start;
  color: var(--ink);
  font-weight: 750;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: .25em;
}

/* Transição de rodapé ao fim de cada tema */
.portal-theme-exit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 38px 0 54px;
  flex-wrap: wrap;
}
.portal-theme-exit .button {
  padding: 12px 20px;
  font-size: 14px;
}

/* Responsividade do portal */
@media (max-width: 780px) {
  .portal-themes-grid,
  .portal-access-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .context-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .portal-theme-exit {
    flex-direction: column;
    align-items: stretch;
  }
  .portal-theme-exit .button {
    text-align: center;
    justify-content: center;
  }
}
