:root {
  color-scheme: dark;
  font-family: Roboto, Arial, sans-serif;
  color: #faf4ff;
  background: #191321;
  --muted: #d2c5dc;
  --line: rgba(236, 213, 255, .23);
}
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: radial-gradient(ellipse at 50% 10%, #59376a 0, #211628 37rem, #191321 65rem);
  min-height: 100vh;
  min-height: 100svh;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, summary:focus-visible { outline: 2px solid #e8c2ff; outline-offset: 4px; }
.biolynk {
  width: min(100%, 450px);
  margin: auto;
  padding: 18px 16px 26px;
}
.profile {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  justify-items: center;
  align-items: start;
  min-height: clamp(245px, 76vw, 320px);
  border-radius: 28px;
  text-align: center;
}
.portrait, .portrait::after { position: absolute; inset: 0; }
.portrait {
  z-index: -1;
  background: radial-gradient(ellipse at 45% 14%, #9569a3, transparent 73%), #352348;
  -webkit-mask-image: linear-gradient(to bottom, #000 43%, #000c 62%, #0005 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 43%, #000c 62%, #0005 82%, transparent 100%);
}
.portrait::after {
  content: "";
  background: linear-gradient(180deg, #20152899, #20152858 55%, #20152848);
}
.cover { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }
.profile-identity {
  margin: clamp(36px, 12vw, 56px) 0 0;
  padding-inline: 16px;
}
.mark {
  width: clamp(96px, 31vw, 132px);
  margin: 0 auto;
}
.profile-quote {
  margin: 6px 0 0;
  color: #fff8ff;
  font: italic clamp(.98rem, 4.2vw, 1.15rem)/1.35 Georgia, serif;
  text-shadow: 0 1px 4px #160d22, 0 0 12px #160d22;
}
.mark img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 3px #f7e3ff) drop-shadow(0 0 9px #d4a1ef80);
}
.links { display: grid; gap: 10px; margin-top: 16px; }
.glass {
  --glass-reflection: #efd2ff59;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 55px;
  padding: 12px 16px;
  border: 1px solid #e8c8fd57;
  border-radius: 18px;
  color: #fdf7ff;
  text-align: center;
  font: 600 .92rem/1.35 Roboto, Arial, sans-serif;
  letter-spacing: .018em;
  background:
    radial-gradient(ellipse at 28% 0%, #efcbff32, transparent 72%),
    linear-gradient(150deg, #e1afff26, #a468c321 74%);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 1px #ffffff44, inset 0 -1px #200f344d, 0 0 15px #bc75ed2e, 0 6px 14px #10071947;
  cursor: pointer;
  transition: border-color .25s ease, transform .25s ease;
}
:is(.glass, .info-dialog)::before,
:is(.glass, .info-dialog)::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}
:is(.glass, .info-dialog)::before {
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(120px 80px at 10% 0%, #ffffff29, transparent 70%),
    radial-gradient(100px 70px at 90% 100%, #ddb1ff28, transparent 70%);
  opacity: .55;
  animation: button-glass-pulse 5s ease-in-out infinite;
}
:is(.glass, .info-dialog)::after {
  inset: -60% auto -60% 0;
  width: 42%;
  background: linear-gradient(90deg, transparent, var(--glass-reflection), transparent);
  opacity: 0;
  animation: button-glass-sweep 8s ease-in-out infinite;
}
.glass:nth-child(4n + 2)::after { animation-delay: -2s; }
.glass:nth-child(4n + 3)::after { animation-delay: -4s; }
.glass:nth-child(4n)::after { animation-delay: -6s; }
.glass:hover { border-color: #f1d5ffb0; }
.glass:active { transform: scale(.98); }
.primary {
  --glass-reflection: #fff1ff80;
  min-height: 60px;
  background:
    radial-gradient(ellipse at 29% 0%, #f8d7ff65, transparent 72%),
    linear-gradient(125deg, #75418f, #4c225f 85%);
  border-color: #e9bfffa6;
  box-shadow: inset 0 1px #ffffff60, 0 0 20px #bc75ed55, 0 8px 19px #10071959;
}
.primary::after { animation-duration: 5s; }

@keyframes button-glass-pulse {
  0%, 100% { opacity: .45; transform: scale(1); }
  50% { opacity: .75; transform: scale(1.02); }
}
@keyframes button-glass-sweep {
  0%, 12% { transform: translateX(-140%) skewX(-18deg); opacity: 0; }
  22% { opacity: 1; }
  42% { transform: translateX(250%) skewX(-18deg); opacity: 1; }
  52%, 100% { transform: translateX(300%) skewX(-18deg); opacity: 0; }
}
footer { display: flex; justify-content: center; margin-top: 14px; color: var(--muted); font-size: .68rem; }
footer a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 12px; }
footer a:hover { text-decoration: underline; }
@media (min-width: 540px) { .biolynk { padding-top: 30px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .glass:active { transform: none; }
  :is(.glass, .info-dialog)::before,
  :is(.glass, .info-dialog)::after { animation: none; }
}

button { font: inherit; color: inherit; }
button:focus-visible { outline: 2px solid #e8c2ff; outline-offset: 3px; }
.modal-links > *, .modal-back, .modal-close {
  cursor: pointer;
  background: linear-gradient(135deg, #dca7ff24, #dca7ff0d);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: inset 0 1px #ffffff20, 0 0 12px #bc75ed22;
}
html:has(dialog[open]) { overflow: hidden; }
.info-dialog {
  --glass-reflection: #efd2ff24;
  isolation: isolate;
  overflow: hidden;
  width: min(420px, calc(100% - 32px));
  max-height: 85vh;
  max-height: 85dvh;
  padding: 20px;
  border: 1px solid #d5a8f568;
  border-radius: 22px;
  color: #faf4ff;
  background: linear-gradient(140deg, #432852, #20152a 80%);
  box-shadow: 0 20px 72px #12091ad9, inset 0 1px #fff3;
  overscroll-behavior: contain;
}
.info-dialog::backdrop { background: #110919bb; backdrop-filter: blur(7px); }
.info-dialog[open] { display: flex; flex-direction: column; }
.modal-header { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; flex-shrink: 0; }
.modal-header h2 { margin: 0; font: 500 1.65rem/1.15 Georgia, serif; outline: none; }
.modal-back { grid-column: 1 / -1; justify-self: start; padding: 8px 12px; }
.modal-close { width: 44px; height: 44px; font-size: 1.45rem; }
.modal-scroll {
  min-height: 0;
  margin: 10px -4px -4px;
  padding: 4px;
  overflow: auto;
  overscroll-behavior: contain;
}
.modal-body { font-size: .9rem; line-height: 1.55; color: var(--muted); }
.modal-body h3 { margin: 0; color: #faf4ff; }
.about-portrait {
  display: grid;
  align-items: end;
  padding-top: clamp(100px, 31vw, 148px);
  border-radius: 14px;
  overflow: hidden;
  background:
    linear-gradient(180deg, #160d22a8, #160d22d9 46%, #160d22 100%),
    #160d22 url("assets/lucio-sobre.png") center top / 100% auto no-repeat;
}
.about-copy {
  padding: 18px 18px 20px;
  color: #fff8ff;
  font-size: .96rem;
  line-height: 1.65;
}
.about-copy p:last-child { margin-bottom: 0; }
.modal-body p { margin: 0 0 12px; }
.modal-body details { margin-bottom: 8px; border: 1px solid var(--line); border-radius: 11px; background: #e4b7ff0f; }
.modal-body summary { cursor: pointer; min-height: 44px; padding: 11px 12px; color: #faf4ff; }
.modal-body details p { padding: 0 12px; }
.session-photo { margin: 0 12px 12px; }
.modal-photo { display: block; width: 100%; height: auto; border-radius: 12px; }
.session-photo figcaption { margin-top: 5px; font-size: .77rem; }
.modal-links { display: grid; gap: 8px; margin-top: 12px; }
.modal-links > * { display: block; min-height: 44px; padding: 10px 12px; color: #faf4ff; text-align: left; }
.contact { margin-top: 0; overflow-wrap: anywhere; }
.contact dt { font-weight: bold; color: #faf4ff; }
.contact dd { margin: 0 0 9px; }

.modal-body .session-heading {
  display: flex;
  align-items: center;
  min-height: 48px;
  list-style: none;
}
.session-heading::-webkit-details-marker { display: none; }
.session-panel { display: flow-root; }
.session-description {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 12px 12px;
}
.modal-body .session-description p { flex: 1; margin: 0; padding: 0; }
.session-more {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(135deg, #dca7ff24, #dca7ff0d);
  color: #faf4ff;
  font-size: .78rem;
  white-space: nowrap;
}
.session-more:hover { border-color: #e8c8fd87; }
.portfolio-frame {
  display: block;
  width: 100%;
  height: min(58dvh, 620px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

:root, .modal-scroll {
  scrollbar-width: thin;
  scrollbar-color: #c69be0 #2b1d35;
}

/* Use the glass gradient where the browser exposes scrollbar parts. */
@supports selector(::-webkit-scrollbar) {
  :root, .modal-scroll { scrollbar-color: auto; scrollbar-width: auto; }
  :is(:root, .modal-scroll)::-webkit-scrollbar { width: 11px; }
  :is(:root, .modal-scroll)::-webkit-scrollbar-track {
    background: #d6a6ef12;
    border-radius: 999px;
  }
  :is(:root, .modal-scroll)::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 999px;
    background: linear-gradient(90deg, #ecd0f9, #ad76c9) padding-box;
    box-shadow: inset 0 0 0 1px #fff3;
  }
  :is(:root, .modal-scroll)::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, #f8e5ff, #c18cdd) padding-box;
  }
}

@media (forced-colors: active) {
  :root, .modal-scroll { scrollbar-color: auto; }
}

html:has(.opening[open]) { overflow: hidden; }
.opening {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  overflow: hidden;
}
.opening::backdrop { background: transparent; }
.opening-stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #2e2140;
}
.opening-stage > * {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.opening-video, .opening-final { opacity: 0; }
.opening.is-playing .opening-video, .opening.is-ending .opening-final { opacity: 1; }
.opening-controls {
  position: absolute;
  inset: auto 0 calc(16px + env(safe-area-inset-bottom)) ;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  width: min(calc(100% - 32px), 400px);
  margin-inline: auto;
}
.opening-controls .glass {
  width: auto;
  min-height: 44px;
  padding: 8px 16px;
  background-color: #221433b3;
}
.opening-replay {
  min-height: 44px;
  padding-inline: 10px;
  cursor: pointer;
  background: transparent;
  border: 0;
}
.opening-replay:hover { text-decoration: underline; }
.opening-logo {
  position: fixed;
  pointer-events: none;
  filter: drop-shadow(0 0 2px #fff7) drop-shadow(0 0 8px #d4a1ef80);
}
