:root{--deep:#101f19;--green:#172c23;--muted:#bed0c5;--gold:#e1bd80;--paper:#f6f4ed;--ink:#192b22;--line:#d9ded4;font-family:system-ui,-apple-system,sans-serif;color-scheme:light}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--deep);color:var(--paper);line-height:1.6}a{color:inherit;text-underline-offset:.24em}a:focus-visible,summary:focus-visible{outline:3px solid #a77739;outline-offset:5px}.wrap{width:min(1160px,calc(100% - 64px));margin-inline:auto}.skip{position:absolute;left:1rem;top:-8rem;padding:.7rem;background:var(--paper);color:var(--ink);z-index:4}.skip:focus{top:1rem}
.top{border-bottom:1px solid #ffffff25}.top-inner,.foot{display:flex;align-items:center;justify-content:space-between;gap:1.5rem}.top-inner{min-height:84px}.brand{display:flex;align-items:center;gap:.65rem;text-decoration:none;font-weight:650}.brand img{object-fit:contain}.brand small{display:block;color:var(--muted);font-size:.875rem;font-weight:400}.top nav{display:flex;gap:1.6rem}.top nav a{text-decoration:none}.top nav a:hover,.quiet:hover,.foot a:hover{color:var(--gold)}.button{display:inline-flex;align-items:center;justify-content:center;padding:.84rem 1.25rem;border:1px solid var(--gold);background:var(--gold);color:#17231a;text-decoration:none;border-radius:.24rem;font-weight:700;line-height:1.25;min-height:46px}.button:hover{background:#f1d39f}.outline{color:var(--gold);background:none}.outline:hover{color:var(--deep)}.quiet{font-weight:600}
.hero{background:radial-gradient(ellipse at 78% 30%,#263d30 0%,var(--deep) 65%)}.hero-inner{display:grid;grid-template-columns:1.12fr .88fr;align-items:center;gap:3.7rem;padding-block:3.9rem}.eyebrow{font-size:.875rem;letter-spacing:.115em;text-transform:uppercase;font-weight:700;color:var(--gold);margin:0 0 1.1rem}h1,h2,h3{font-family:Georgia,serif;font-weight:400;line-height:1.03;margin:0}h1{font-size:clamp(3rem,6.5vw,6.3rem);letter-spacing:-.055em}h1 em{display:block;color:var(--gold);font-weight:400}h2{font-size:clamp(2.5rem,5vw,4.1rem);letter-spacing:-.045em}h3{font-size:1.65rem;line-height:1.14}.lead{max-width:37rem;color:#dce7dc;font-size:1.18rem;margin:1.5rem 0}.actions{display:flex;gap:1.25rem;align-items:center;flex-wrap:wrap}.location{margin:1.45rem 0 0;color:var(--muted);font-size:.95rem}.portrait{margin:0;position:relative;aspect-ratio:4/4.5;background:#253b2d;border:1px solid #e1bd8060;overflow:hidden;border-radius:48% 48% .35rem .35rem / 23% 23% .35rem .35rem}.portrait img{width:100%;height:100%;display:block;object-fit:cover;object-position:center 32%}
.credentials{border-block:1px solid #ffffff25;background:var(--green)}.credentials-inner{display:grid;grid-template-columns:repeat(3,1fr)}.credentials-inner div{padding:1.35rem 1.15rem;border-inline-start:1px solid #ffffff25}.credentials-inner div:last-child{border-inline-end:1px solid #ffffff25}.credentials strong,.credentials span{display:block}.credentials strong{color:var(--gold)}.credentials span{color:#e1e9e0}
.light{background:var(--paper);color:var(--ink);padding-block:5rem}.light .eyebrow{color:#765526}.split{display:grid;grid-template-columns:1fr 1.2fr;gap:4rem}.story p:first-child{margin-top:0}.story p,.cards p,.places p,.light .split>div>p:not(.eyebrow){color:#3e5146}details{border-top:1px solid var(--line);padding-top:.85rem;margin-top:1.45rem}summary{cursor:pointer;font-weight:650}.care{padding-top:0}.care h2{border-top:1px solid var(--line);padding-top:2.8rem;margin-bottom:1.8rem}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:1.15rem}.cards article,.places article{border:1px solid var(--line);padding:1.4rem;background:#ffffff47}.cards p,.places p{margin-bottom:0}.sports{background:var(--green);padding-block:4.8rem}.sports p:not(.eyebrow){color:#d7e2d8;max-width:30rem}.modalities{display:flex;gap:.65rem;flex-wrap:wrap;align-content:center;padding:0;margin:0;list-style:none}.modalities li{border:1px solid #e1bd8063;padding:.45rem .82rem;border-radius:2rem}.dark-button{background:var(--green);color:white;border-color:var(--green);margin-top:.5rem}.dark-button:hover{background:#304b3c}.places{display:grid;gap:.65rem}.places p{margin-top:.35rem}.foot{padding-block:1.5rem;color:var(--muted)}
@media(max-width:820px){.top nav{display:none}.hero-inner,.split{gap:1.8rem}.hero-inner{padding-block:2.6rem}.light,.sports{padding-block:3.6rem}.care{padding-top:0}.cards{grid-template-columns:1fr}.credentials-inner div{padding:1rem .7rem}}
@media(max-width:640px){.wrap{width:calc(100% - 36px)}.top-inner{min-height:72px;gap:.45rem}.brand{font-size:.88rem;gap:.35rem}.brand img{width:40px;height:40px}.brand small{font-size:.78rem}.top .button{font-size:.86rem;padding:.55rem .65rem}.hero-inner,.split,.credentials-inner{grid-template-columns:1fr}.portrait{width:min(100%,390px);margin:auto;aspect-ratio:4/4.15}.hero .eyebrow{letter-spacing:.06em}.credentials-inner div,.credentials-inner div:last-child{border-inline:0;border-bottom:1px solid #ffffff25}.credentials-inner div:last-child{border-bottom:0}.foot{align-items:flex-start;flex-direction:column;gap:.45rem}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
.hero{background:radial-gradient(ellipse at 82% 30%,#49634a 0%,#23392b 32%,var(--deep) 72%)}.portrait{isolation:isolate;box-shadow:0 2rem 5rem #06110ba0}.portrait::after{content:"";position:absolute;inset:0;background:radial-gradient(ellipse at 70% 15%,#f3b76830,transparent 65%),linear-gradient(0deg,#10251b70,transparent 40%);pointer-events:none}.portrait img{animation:portrait-drift 1.7s ease-out both}.care-intro{display:grid;grid-template-columns:1fr minmax(260px,38%);align-items:center;gap:2rem;border-top:1px solid var(--line);padding-block:1.5rem;margin-bottom:1rem}.care-intro h2{border:0;padding:0;margin:0}.care-intro p{max-width:37rem;color:#3e5146}.cardio-art{background:radial-gradient(ellipse at 64% 35%,#456248,#182c23 62%,#101f19 85%);border-radius:.35rem;height:230px;overflow:hidden;display:grid;place-items:center}.cardio-art img{width: min(92%,310px);height:100%;max-height:230px;object-fit:contain;animation:cardio-reveal 1.5s ease-out both;filter:drop-shadow(0 .6rem .85rem #040b07b0)}.formation{border-bottom:1px solid var(--line)}.formation-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem 2rem;margin-top:1.7rem}.formation-grid article{border-top:1px solid var(--line);padding:1.25rem 0}.formation-grid ul{padding-left:1.15rem;margin-bottom:0}.formation-grid li+li{margin-top:.4rem}
@keyframes portrait-drift{from{transform:scale(1.07) translateY(1.5%)}to{transform:scale(1) translateY(0)}}@keyframes cardio-reveal{from{transform:translateY(10px) rotate(-5deg) scale(.94);opacity:.65}to{transform:translateY(0) rotate(0) scale(1);opacity:1}}@media(max-width:820px){.care-intro{grid-template-columns:1fr 1fr}}@media(max-width:640px){.care-intro,.formation-grid{grid-template-columns:1fr;gap:1rem}.cardio-art{height:200px}}@media(prefers-reduced-motion:reduce){.portrait img,.cardio-art img{animation:none}}
.hero-name{color:var(--muted);font-weight:600;margin:0 0 .8rem}.hero h1{font-size:clamp(3.25rem,6.15vw,5.6rem)}.service-cards,.singular-grid,.service-cards article{display:flex;flex-direction:column;align-items:flex-start;gap:.9rem;padding:1.55rem}.service-cards p{margin:.15rem 0 .4rem}.service-cards .button{margin-top:auto}.track-link{display:inline-block;font-weight:700;margin-top:.7rem;text-decoration-thickness:1px}.singular{background:radial-gradient(ellipse at 80% 0,#385a45 0%,var(--deep) 64%);padding-block:4.7rem}.singular h2{color:var(--gold);letter-spacing:.055em}.singular-head{align-items:center;margin-bottom:2rem}.singular-head p:not(.eyebrow){margin-top:0;color:#e0e9e2}.singular-grid article{padding:1.4rem;border:1px solid #e1bd8048;background:#ffffff08;border-radius:.3rem}.singular-grid article p{color:#dce8df;margin-bottom:0}.singular-grid .track-link{color:var(--gold)}.mobile-book{display:none}.consult-photo{background:var(--green);border-radius:.35rem;overflow:hidden;margin:0}.consult-photo img{width:100%;height:100%;max-height:410px;object-fit:cover;display:block}.consult-photo figcaption{padding:.6rem .85rem;color:#deebe3}.care-intro .consult-photo{justify-self:stretch}.care-intro .cardio-art{margin-top:.65rem}.care-intro .cardio-art.compact{height:120px}.care-intro .cardio-art.compact img{max-height:120px}.hero .portrait img{object-position:center 38%}
@media(max-width:930px){.top nav{gap:.8rem}}@media(max-width:640px){.service-cards,.singular-grid,.singular{padding-block:3.2rem}.mobile-book{display:flex;position:fixed;z-index:3;bottom:max(.8rem,env(safe-area-inset-bottom));right:.8rem;box-shadow:0 .35rem 1.25rem #101f1955}.foot{padding-bottom:4.5rem}.care-intro .cardio-art.compact{display:none}}
.singular .cardio-art.compact{margin-top:1rem;height:110px;width:min(100%,230px);background:transparent}.singular .cardio-art.compact img{height:112px}.care-intro{grid-template-columns:1fr minmax(280px,46%)}@media(max-width:640px){.care-intro{grid-template-columns:1fr}}

.institute-exams{background:#edf0e8}.institute-team{border-bottom:1px solid var(--line)}.institute-heading{display:flex;justify-content:space-between;align-items:end;gap:1.5rem;margin-bottom:1.8rem}.institute-heading p:last-child{color:#3e5146;max-width:42rem;margin-bottom:0}.institute-heading .button{flex-shrink:0}.exam-grid,.team-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.exam-grid article,.team-grid article{border:1px solid var(--line);padding:1.3rem;background:#ffffff65;border-radius:.3rem}.exam-grid ul{list-style:none;margin:.8rem 0 0;padding:0}.exam-grid li+li{border-top:1px solid var(--line)}.exam-link{display:block;padding:.62rem 0;color:var(--ink)}.exam-link:hover{color:#765526}.team-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.team-grid p{color:#3e5146;margin-bottom:0}@media(max-width:1070px){.top nav a[href="#formacao"],.top nav a[href="#trajetoria"]{display:none}}@media(max-width:640px){.institute-heading{display:block}.institute-heading .button{margin-top:1rem}.exam-grid,.team-grid{grid-template-columns:1fr}}

.exam-details { margin-top: 1rem; }
.team-heading { margin: 0 0 1rem; }
.team-grid + .team-heading { margin-top: 2rem; }
.team-grid h4 {
  margin: .45rem 0 0;
  font: 400 1.35rem/1.2 Georgia, serif;
  overflow-wrap: anywhere;
}
.team-grid .team-role { margin: 0; font-size: .875rem; font-weight: 700; }
.team-grid h4 + p { margin-top: .65rem; }
.team-grid .team-registration { font-size: .875rem; }
.team-grid .team-registration + p { margin-top: .55rem; }

.portrait-card {
  width: min(100%, 28rem);
  margin: 0;
  background: var(--green);
  border-radius: .35rem;
  box-shadow: 0 .9rem 2rem #13281b29;
}
.portrait-card a { display: block; border-radius: inherit; }
.portrait-card img { display: block; width: 100%; height: auto; border-radius: inherit; }
.trajectory-card { margin-top: 1.3rem; }
.care-intro { border-top: 0; }
.care-intro .portrait-card { justify-self: end; overflow: hidden; }
.care-intro .portrait-card img { margin-top: -1.25%; border-radius: 0; }
@media (max-width: 620px) {
  .care-intro .portrait-card { justify-self: start; }
}

.archive {
  margin-top: clamp(2rem, 6vw, 4rem);
  padding: clamp(1rem, 3vw, 2rem);
  color: #eef4ef;
  background: #142d25;
  border-radius: .55rem;
}
.archive h3 { margin-bottom: 1rem; }
.team-grid .team-profile {
  display: grid;
  grid-template-columns: clamp(3.25rem, 6vw, 5rem) minmax(0, 1fr);
  align-items: start;
  gap: .85rem;
  padding: clamp(.8rem, 2vw, 1.25rem);
  background: #fff;
  border-radius: .5rem;
}
.team-avatar {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: .4rem;
  background: #e2ebe3;
  color: #264739;
  font: 400 1.45rem/1 Georgia, serif;
}
.team-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 33%; }
.team-avatar img[hidden] { display: none; }
.team-profile-copy h4 { margin-top: .25rem; }
@media (max-width: 640px) {
  }

.top-inner { gap: 1rem; }
.top nav { flex-wrap: wrap; justify-content: center; row-gap: .45rem; }
.brand { flex-shrink: 0; }
.brand-symbol {
  position: relative;
  display: block;
  flex: none;
  width: 2.55rem;
  transform-style: preserve-3d;
}
.brand-face {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  border-radius: .3rem;
  backface-visibility: hidden;
  transform: translateZ(.5px);
}
.brand-face + .brand-face { transform: rotateY(180deg) translateZ(.5px); }
.brand-symbol img { position: absolute; height: auto; max-width: none; }
.brand-symbol-murilo { aspect-ratio: 208 / 266; }
.brand-symbol-murilo img { width: 357.21%; left: -134.13%; top: -33.83%; }
.brand-symbol-instituto { aspect-ratio: 100 / 132; }
.brand-symbol-instituto img { width: 756%; left: -543%; top: -123.48%; }
.brand-institute { flex-direction: row-reverse; text-align: right; }
.section-return { margin-top: 1.5rem; }
.section-return a { text-underline-offset: .22em; }
.back-home {
  position: fixed;
  z-index: 3;
  left: max(.8rem, env(safe-area-inset-left));
  bottom: max(.8rem, env(safe-area-inset-bottom));
  padding: .58rem .85rem;
  color: #fff;
  background: #142d25;
  border: 1px solid #ffffff55;
  border-radius: .35rem;
  box-shadow: 0 .35rem 1.25rem #101f1955;
  font-size: .875rem;
  text-decoration: none;
}
.back-home:hover { background: #244e40; }
@media (max-width: 820px) {
  .top-inner { min-height: 0; padding-block: .65rem; flex-wrap: wrap; gap: .55rem; }
  .top nav { display: flex; order: 1; width: 100%; gap: .3rem .8rem; font-size: .875rem; line-height: 1.45; }
  .top nav a[href="#formacao"], .top nav a[href="#trajetoria"] { display: inline; }
}
@media (max-width: 420px) {
  .brand { flex-shrink: 1; font-size: .8rem; line-height: 1.2; }
  .brand small { margin-top: .18rem; font-size: .72rem; }
  .brand-symbol { width: 1.8rem; }
  .top nav { justify-content: flex-start; }
}

.brand-symbol-murilo .brand-face { background: #055e65; }
.brand-symbol-instituto .brand-face { background: #903b20; }
@media (prefers-reduced-motion: no-preference) {
  .brand-symbol { animation: brand-spin 7s ease-in-out infinite; }
  .brand:hover .brand-symbol, .brand:focus-visible .brand-symbol { animation: none; }
}
@keyframes brand-spin {
  0%, 25% { transform: perspective(160px) rotateY(0deg); }
  75%, 100% { transform: perspective(160px) rotateY(360deg); }
}

.singular-feature {
  display: grid;
  grid-template-columns: minmax(0, 25rem) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 6vw, 5rem);
  margin-bottom: clamp(1.6rem, 4vw, 3rem);
}
.singular-feature .singular-head { margin: 0; }
.singular-art { position: relative; margin: 0; overflow: hidden; border-radius: .4rem; box-shadow: 0 1rem 2.5rem #0005; }
.singular-art > img { display: block; width: 100%; height: auto; }
.singular-art .singular-beat {
  position: absolute;
  inset: 0;
  clip-path: polygon(25% 42%, 28% 35%, 35% 31%, 35% 24%, 39% 19%, 58% 19%, 67% 24%, 65% 30%, 76% 33%, 78% 40%, 76% 46%, 80% 53%, 79% 63%, 73% 70%, 67% 74%, 61% 76%, 49% 74%, 37% 68%, 29% 60%, 24% 52%);
  transform-origin: 53% 49%;
}
.singular-orbit { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.singular-orbit path {
  fill: none;
  stroke: #ffe28a;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 18 82;
  filter: drop-shadow(0 0 3px #ffc142) drop-shadow(0 0 6px #ffb342);
  opacity: 0;
}
.singular-orbit path + path { stroke-width: 1.25; }
.singular-filter { position: absolute; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .singular-beat { animation: singular-beat 3.55s ease-in-out infinite; }
  .singular-orbit path { animation: singular-light 4.1s linear infinite; }
  .singular-orbit path + path { animation-delay: -1.6s; }
}
@keyframes singular-beat {
  0%, 100% { transform: scale(1); }
  2.96% { transform: scale(1); }
  5.07% { transform: scale(1.038); }
  7.89% { transform: scale(1.005); }
  14.37% { transform: scale(1.019); }
  17.46% { transform: scale(1); }
  28.73% { transform: scale(1); }
  30.85% { transform: scale(1.038); }
  33.66% { transform: scale(1.005); }
  38.79% { transform: scale(1.019); }
  41.89% { transform: scale(1); }
  53.69% { transform: scale(1); }
  55.80% { transform: scale(1.038); }
  58.62% { transform: scale(1.005); }
  62.65% { transform: scale(1.019); }
  65.75% { transform: scale(1); }
  78.65% { transform: scale(1); }
  80.76% { transform: scale(1.038); }
  83.58% { transform: scale(1.005); }
  88.70% { transform: scale(1.019); }
  91.80% { transform: scale(1); }
}
@keyframes singular-light {
  from { stroke-dashoffset: 100; opacity: 0; }
  9%, 91% { opacity: .92; }
  to { stroke-dashoffset: 0; opacity: 0; }
}
@media (max-width: 640px) {
  .singular-feature { grid-template-columns: minmax(0, 1fr); }
  .singular-art { width: min(100%, 25rem); margin-inline: auto; }
}

.singular-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 1rem; padding: 0; }
.singular-grid article { display: flex; flex-direction: column; gap: .7rem; background: var(--green); border-color: #e1bd8066; }
.singular-plan-heading { display: flex; align-items: center; gap: 1rem; color: var(--gold); }
.singular-plan-heading h3 { font-size: clamp(1.9rem, 3.5vw, 2.55rem); font-weight: 600; }
.singular-plan-symbol { display: block; width: clamp(3.5rem, 8vw, 5.2rem); height: 3.8rem; flex: none; }
.singular-grid article p { color: var(--paper); }
.singular-grid .singular-plan-track { margin: .2rem 0 0; font-size: .9rem; font-weight: 700; color: var(--muted); }
.singular-grid .track-link { margin-top: auto; color: var(--gold); }
@media (max-width: 640px) {
  .singular-grid { grid-template-columns: 1fr; }
}

.archive-heading { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; margin-bottom: .9rem; }
.archive-heading h3 { margin: 0; }
.archive-tools:not([hidden]) { display: flex; gap: .45rem; }
.archive-tools button, .archive-close {
  min-width: 2.75rem;
  min-height: 2.75rem;
  border: 1px solid #e1bd8070;
  border-radius: .35rem;
  background: var(--deep);
  color: var(--gold);
  padding: .35rem .7rem;
  font: inherit;
  cursor: pointer;
}
.archive-tools button:hover, .archive-close:hover { background: #2a493a; }
.archive-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2rem) / 3);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--gold) #193a2d;
  padding: .35rem .15rem .6rem;
}
.archive-strip figure { margin: 0; min-width: 0; scroll-snap-align: start; }
.archive-strip a { display: block; background: #0b2118; border-radius: .35rem; overflow: hidden; }
.archive-strip img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; }
.archive-zoom {
  width: min(70rem, 95vw);
  max-width: 95vw;
  max-height: 94vh;
  max-height: 94dvh;
  padding: 1rem;
  background: var(--deep);
  color: var(--paper);
  border: 1px solid #e1bd8066;
  border-radius: .55rem;
}
.archive-zoom::backdrop { background: #030a07dd; }
.archive-zoom figure { margin: 0; text-align: center; }
.archive-enlarged { display: block; margin-inline: auto; padding: 0; background: none; border: 0; cursor: zoom-out; max-width: 100%; }
.archive-enlarged img { display: block; max-width: 100%; max-height: 79vh; max-height: 79dvh; width: auto; height: auto; }
.archive-close { display: block; margin: 0 0 .6rem auto; line-height: 1; font-size: 1.45rem; }
@media (max-width: 640px) {
  .archive-strip { grid-auto-columns: calc((100% - .65rem) / 2); gap: .65rem; }
  .archive-zoom { padding: .6rem; }
}


.music-choice {
  width: min(30rem, calc(100% - 2rem));
  padding: clamp(1.4rem, 5vw, 2.2rem);
  background: var(--green);
  color: var(--paper);
  border: 1px solid #e1bd8080;
  border-radius: .6rem;
  box-shadow: 0 1.5rem 4rem #0008;
  text-align: center;
}
.music-choice::backdrop { background: #07110bd9; }
.music-choice h2 { margin: 0; color: var(--gold); font-size: clamp(1.75rem, 6vw, 2.65rem); }
.music-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .65rem; margin-top: 1.3rem; }
.music-actions button { min-width: 6.3rem; font: inherit; font-weight: 700; cursor: pointer; }
.music-toggle:not([hidden]), .music-status:not([hidden]) {
  position: fixed;
  z-index: 3;
  left: max(.8rem, env(safe-area-inset-left));
  bottom: calc(max(.8rem, env(safe-area-inset-bottom)) + 3rem);
  padding: .55rem .8rem;
  color: var(--gold);
  background: #142d25;
  border: 1px solid #e1bd8066;
  border-radius: .35rem;
  font: 500 .875rem/1.45 system-ui, sans-serif;
}
.music-toggle:not([hidden]) { cursor: pointer; }
.music-toggle:hover { background: #244e40; }
.music-status:not([hidden]) { bottom: calc(max(.8rem, env(safe-area-inset-bottom)) + 6rem); max-width: min(21rem, 85vw); }

.trajectory-animation {
  display: block;
  width: min(100%, 34rem);
  height: auto;
  aspect-ratio: 16 / 9;
  margin-top: 1.4rem;
  border-radius: 5px;
}

.legends-nav-link { white-space: nowrap; }
.legends {
  padding-block: clamp(3rem, 7vw, 6rem);
  background: radial-gradient(ellipse at 76% 37%, #352719, #151410 57%, #0c100e 85%);
  border-block: 1px solid #e1bd8040;
}
.legends-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(1.25rem, 6vw, 5rem);
  align-items: center;
}
.legends-intro h2 { color: var(--gold); max-width: 10ch; }
.legends-controls:not([hidden]) { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.legends-controls button {
  min-height: 44px;
  padding: .45rem .85rem;
  border: 1px solid #e1bd8080;
  border-radius: .35rem;
  background: #221b14;
  color: var(--paper);
  font: inherit;
  cursor: pointer;
}
.legends-controls button:hover { background: #4b3823; }
.legends-controls button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.legends-position { margin: .65rem 0 0; color: var(--gold); font-variant-numeric: tabular-nums; }
.legends-announcement {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.legends-slides {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  width: min(100%, 29rem);
  margin: 0 auto;
  padding: 0;
  overflow: auto;
  scroll-snap-type: x mandatory;
  list-style: none;
  border: 1px solid #e1bd8060;
  border-radius: .45rem;
  background: #100e0d;
  box-shadow: 0 1.25rem 3rem #0006;
}
.legends-slides li { scroll-snap-align: start; }
.legends-slides img { display: block; width: 100%; height: auto; }
.legends-slides[data-ready] { overflow: hidden; }
@media (max-width: 640px) {
  .legends-layout { grid-template-columns: minmax(0, 1fr); }
  .legends-intro h2 { max-width: none; }
}
