:root {
  color-scheme: dark;
  --ink: #f2eee5;
  --muted: #a7afb1;
  --gold: #d6b36a;
  --line: rgba(214, 179, 106, .25);
  --paper: #0b1418;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: #05090b; }
body { margin: 0; color: var(--ink); background: #05090b; }
a { color: inherit; text-decoration: none; }

.site-header {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 16px clamp(22px, 5vw, 80px);
  background: linear-gradient(180deg, rgba(3, 7, 9, .9), transparent);
}

.brand { display: grid; grid-template-columns: 46px auto; column-gap: 12px; align-items: center; }
.brand > img {
  grid-row: 1 / span 2;
  width: 46px;
  height: 46px;
  object-fit: cover;
  border: 1px solid rgba(214, 179, 106, .42);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .38);
}
.brand strong { letter-spacing: .28em; font: 600 16px/1.1 Georgia, serif; }
.brand small { margin-top: 4px; color: var(--muted); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.header-link { padding-bottom: 5px; border-bottom: 1px solid var(--line); color: #d9d6cf; font-size: 13px; }

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-media, .hero-media video, .hero-veil { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media { z-index: -3; background: #071015 url('../../historias/sanatorio-valdemar/images/atlases/rooms-cube.webp') center/cover no-repeat; }
.hero-media video { object-fit: cover; filter: saturate(.72) brightness(.58) contrast(1.08); }
.hero-veil {
  z-index: -2;
  background:
    radial-gradient(circle at 52% 42%, transparent 0 12%, rgba(3, 7, 9, .28) 48%, rgba(3, 7, 9, .88) 100%),
    linear-gradient(180deg, rgba(3, 7, 9, .22), transparent 32%, rgba(3, 7, 9, .9));
}
.hero-content { width: min(780px, calc(100% - 40px)); text-align: center; text-wrap: balance; }
.eyebrow { margin: 0 0 16px; color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.hero h1 { margin: 0; font: 400 clamp(76px, 15vw, 184px)/.82 Georgia, serif; letter-spacing: .12em; text-indent: .12em; text-shadow: 0 10px 60px #000; }
.hero-content > p:not(.eyebrow) { max-width: 590px; margin: 30px auto 34px; color: #d9dcda; font: 400 clamp(17px, 2vw, 22px)/1.65 Georgia, serif; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border: 1px solid var(--gold); letter-spacing: .08em; text-transform: uppercase; font-size: 12px; font-weight: 700; transition: .2s ease; }
.button-primary { color: #11100c; background: var(--gold); }
.button-sound { gap: 11px; color: #eee7d8; background: rgba(4, 9, 11, .62); cursor: pointer; }
.button-sound[aria-pressed="true"] { border-color: #efe3c6; background: rgba(214, 179, 106, .12); }
.sound-mark { display: inline-flex; align-items: center; gap: 3px; height: 15px; }
.sound-mark i { display: block; width: 2px; height: 5px; background: currentColor; animation: sound-wave .9s ease-in-out infinite alternate; }
.sound-mark i:nth-child(2) { height: 13px; animation-delay: -.35s; }
.sound-mark i:nth-child(3) { height: 8px; animation-delay: -.6s; }
.button-sound[aria-pressed="false"] .sound-mark i { animation-play-state: paused; opacity: .65; }
.button:hover { transform: translateY(-2px); box-shadow: 0 14px 42px rgba(0, 0, 0, .32); }
.hero-scroll { position: absolute; bottom: 28px; display: grid; justify-items: center; gap: 8px; color: #c5c8c5; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; }
.hero-scroll span { display: block; width: 1px; height: 34px; background: linear-gradient(var(--gold), transparent); }

.library { min-height: 100svh; padding: 130px clamp(22px, 7vw, 110px); background: radial-gradient(circle at 74% 40%, rgba(67, 93, 100, .15), transparent 34%), var(--paper); }
.section-heading { max-width: 760px; margin: 0 auto 54px; text-align: center; text-wrap: balance; }
.section-heading h2 { margin: 0; font: 400 clamp(42px, 7vw, 82px)/1 Georgia, serif; }
.section-heading > p:last-child { margin: 18px 0 0; color: var(--muted); }
.play-principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(1180px, 100%);
  margin: 0 auto 42px;
  border: 1px solid var(--line);
  background: rgba(4, 10, 13, .44);
}
.play-principles article { position: relative; min-height: 210px; padding: 34px clamp(25px, 3.2vw, 46px); }
.play-principles article + article { border-left: 1px solid var(--line); }
.principle-mark { display: flex; align-items: center; justify-content: space-between; color: var(--gold); }
.principle-mark span { font: 600 10px/1 Inter, sans-serif; letter-spacing: .18em; }
.principle-mark i { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(214,179,106,.28); color: #d8c28f; background: rgba(214,179,106,.045); font-size: 20px; }
.play-principles h3 { margin: 15px 0 13px; font: 400 clamp(25px, 3vw, 34px)/1 Georgia, serif; }
.play-principles p { margin: 0; color: #aeb6b6; font-size: 14px; line-height: 1.7; }
.case-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(430px, .92fr);
  width: min(1180px, 100%);
  min-height: 560px;
  margin: auto;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #091115;
  box-shadow: 0 32px 90px rgba(0, 0, 0, .38);
}
.case-card-media { position: relative; min-height: 480px; overflow: hidden; background: #081015; }
.case-card-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.76) brightness(.68); transition: transform .8s ease, filter .4s ease; }
.case-card-media > span { position: absolute; inset: 0; background: linear-gradient(90deg, transparent 55%, #091115 100%), linear-gradient(180deg, transparent 65%, rgba(4, 8, 10, .55)); }
.case-card-media > small { position: absolute; left: 30px; bottom: 24px; color: #ddd1b8; font-size: 9px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.case-card-content { display: flex; flex-direction: column; justify-content: center; padding: clamp(34px, 4vw, 56px); }
.case-card-content small { color: var(--gold); letter-spacing: .16em; text-transform: uppercase; }
.case-card-content strong { max-width: 500px; margin: 20px 0 24px; font: 400 clamp(31px, 2.65vw, 42px)/1.08 Georgia, serif; text-wrap: balance; }
.case-card-content > span { color: #b7bdbc; line-height: 1.75; }
.case-card-content .case-card-rule { margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(214, 179, 106, .18); color: #d8d1c4; font: italic 15px/1.65 Georgia, serif; }
.case-card-content b { margin-top: 38px; color: #eee7d8; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.case-card-content i { margin-left: 9px; color: var(--gold); font-style: normal; transition: margin .2s ease; }
.case-card:hover .case-card-media img { transform: scale(1.025); filter: saturate(.9) brightness(.8); }
.case-card:hover .case-card-content i { margin-left: 15px; }
.case-card + .case-card { margin-top: 46px; }
footer { display: flex; justify-content: space-between; align-items: center; gap: 28px; padding: 30px clamp(22px, 7vw, 110px); border-top: 1px solid rgba(255,255,255,.07); color: #7f898a; background: #05090b; font-size: 12px; }
.footer-signature { display: flex; align-items: center; gap: 16px; }
footer strong { color: var(--gold); letter-spacing: .22em; }
footer small { color: #929a99; font: italic 13px/1.3 Georgia, serif; }
.copyright { display: grid; justify-items: end; gap: 4px; letter-spacing: .035em; }
.copyright-rights { white-space: nowrap; }
.copyright a { color: #cdbb93; border-bottom: 1px solid rgba(214, 179, 106, .34); transition: color .2s ease, border-color .2s ease; }
.copyright a:hover { color: #f0dfb9; border-color: currentColor; }

@keyframes sound-wave { to { height: 14px; } }

@media (max-width: 760px) {
  .site-header { min-height: 66px; padding: 12px 18px; }
  .brand { grid-template-columns: 40px auto; column-gap: 9px; }
  .brand > img { width: 40px; height: 40px; border-radius: 9px; }
  .brand small, .header-link { display: none; }
  .hero h1 { font-size: clamp(64px, 25vw, 106px); }
  .hero-content > p:not(.eyebrow) { font-size: 17px; line-height: 1.5; }
  .hero-actions { align-items: stretch; flex-direction: column; width: min(310px, 100%); margin: auto; }
  .library { padding: 100px 18px 74px; }
  .play-principles { grid-template-columns: 1fr; }
  .play-principles article { min-height: 0; }
  .play-principles article + article { border-top: 1px solid var(--line); border-left: 0; }
  .case-card { grid-template-columns: 1fr; }
  .case-card-media { min-height: 56svh; }
  .case-card-media > span { background: linear-gradient(180deg, transparent 52%, #091115 100%); }
  .case-card-content { margin-top: 0; padding: 30px 26px 42px; z-index: 1; background: #091115; }
  footer, .footer-signature { align-items: center; flex-direction: column; text-align: center; }
  .copyright { justify-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media video { display: none; }
  .sound-mark i { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
