:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  color: #fff;
  background: #08090c;
  --dark: #08090c;
  --surface: #0c0e11;
  --surface-raised: #14161a;
  --line: #303238;
  --text-secondary: #d2d3d7;
  --accent: #e32626;
  --action: #dc2626;
  --action-hover: #be2020;
  --action-active: #a21c1c;
  --action-line: #8b2020;
  --radius: 1rem;
  --pill: 999px;
  --measure: 78rem;
  --gutter: clamp(1.25rem, 5.3vw, 5.75rem);
  --spacing: clamp(3rem, 7vw, 7rem);
  --display: Georgia, 'Times New Roman', serif;
  line-height: 1.65;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: #fff; text-underline-offset: .22em; }
a:hover { text-decoration-color: var(--accent); text-decoration-thickness: .13em; }
:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
main { scroll-margin-top: 1rem; }
main:focus-visible { outline-offset: -4px; }
[hidden] { display: none !important; }

.shell, .about {
  width: min(var(--measure), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

.skip {
  position: absolute;
  inset: 1rem auto auto 1rem;
  z-index: 3;
  padding: .6rem 1rem;
  background: var(--surface);
  transform: translateY(-250%);
}
.skip:focus { transform: none; }

.top {
  display: grid;
  grid-template-columns: minmax(max-content, 1fr) minmax(0, auto) auto;
  align-items: center;
  gap: .4rem clamp(1rem, 3vw, 2.5rem);
  min-height: 5rem;
  padding: .65rem 0;
  border-bottom: 1px solid var(--line);
}
.brand {
  justify-self: start;
  font: 700 clamp(1.25rem, 2.6vw, 1.65rem)/1.15 var(--display);
  letter-spacing: -.045em;
  color: inherit;
  text-decoration: none;
}
.site-nav, .languages { display: flex; align-items: center; flex-wrap: wrap; gap: .15rem .55rem; }
.site-nav { max-width: 34rem; }
.top nav a {
  min-height: 2.75rem;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  padding: .25rem .35rem;
  color: var(--text-secondary);
  text-decoration: none;
  overflow-wrap: anywhere;
  font-size: .875rem;
}
.top nav a[aria-current] {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--accent);
}
.top nav a:hover { color: #fff; background: var(--action-hover); border-radius: var(--pill); }
.languages { gap: .1rem; }
.languages a {
  min-width: 2.75rem;
  justify-content: center;
  border-radius: var(--pill);
  font-weight: 650;
  letter-spacing: .07em;
}
.top .languages a[aria-current] {
  background: var(--surface-raised);
  color: #fff;
  text-decoration-color: var(--accent);
}
.preview {
  color: var(--text-secondary);
  font-size: .8rem;
  margin: .75rem auto 0;
}

h1, h2, h3, .capsule > summary {
  font-family: var(--display);
  font-weight: 500;
  margin: 0 0 1rem;
  overflow-wrap: anywhere;
}
h1 {
  font-size: clamp(2.65rem, 5.45vw, 5.6rem);
  line-height: .99;
  letter-spacing: -.045em;
  text-wrap: balance;
}
h2 {
  font-size: clamp(2.05rem, 4.35vw, 4.1rem);
  line-height: 1.04;
  letter-spacing: -.035em;
  text-wrap: balance;
}
h3 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -.025em;
}
p { margin: 0 0 1rem; }
.prose {
  color: var(--text-secondary);
  font-size: clamp(1rem, 1.3vw, 1.175rem);
  overflow-wrap: anywhere;
}
.prose > :is(p, ul, ol, blockquote, details) { max-width: 62ch; }
.prose > :last-child { margin-bottom: 0; }
.prose ul, .prose ol { padding-left: 1.5rem; }
.prose blockquote { margin-inline: 0; padding-inline-start: 1rem; border-inline-start: 2px solid var(--accent); }
.prose hr { border: 0; border-top: 1px solid var(--line); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  max-width: 100%;
  padding: .75rem clamp(1.25rem, 2.6vw, 2.15rem);
  color: #fff;
  background: var(--action);
  border: 1px solid transparent;
  border-radius: var(--pill);
  font: 650 .89rem/1.35 system-ui, sans-serif;
  letter-spacing: .055em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.button:hover { color: #fff; background: var(--action-hover); }
.button:active { background: var(--action-active); }
.button:disabled, .button[aria-disabled="true"] { cursor: wait; opacity: .74; }
.contact-link { font-weight: 700; }

figure { margin: 1.5rem 0; }
figure img, figure video {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--dark);
  border-radius: .65rem;
  object-fit: contain;
}
figure figcaption, .media-note { color: var(--text-secondary); font-size: .875rem; margin: .65rem 0 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.about { padding-bottom: var(--spacing); }
.chapter { padding: clamp(2rem, 4.5vw, 4.25rem) 0; border-block-start: 1px solid var(--line); }
.landing > .chapter .chapter-copy, .about > .chapter .chapter-copy {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(.75rem, 2vw, 1.8rem) clamp(2rem, 7vw, 7.5rem);
  align-items: baseline;
}
.chapter-copy h2 { margin: 0; }
.chapter > summary { cursor: pointer; font: 500 1.6rem/1.25 var(--display); }
.chapter > summary + .prose { margin-top: 1rem; }

.pathways {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(.75rem, 2vw, 1.5rem);
  padding-block: clamp(2.5rem, 7vw, 6.5rem);
  border-block: 1px solid var(--line);
  background: var(--dark);
}
.capsule {
  min-width: 0;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--action-line);
  border-radius: var(--radius);
}
.pathways > :only-child, .contacts > :only-child { grid-column: 1 / -1; }
.capsule:hover, .capsule[open] { border-color: var(--action); }
.capsule > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2.75rem;
  align-items: center;
  gap: clamp(.8rem, 2vw, 1.5rem);
  padding: clamp(.8rem, 2.15vw, 1.9rem);
  margin: 0;
  border-radius: inherit;
  font: 550 clamp(1.12rem, 2vw, 1.65rem)/1.24 system-ui, sans-serif;
  list-style: none;
  cursor: pointer;
}
.capsule > summary::-webkit-details-marker { display: none; }
.capsule-title { grid-column: 1; }
.capsule-visual {
  grid-area: 1 / 1 / 2 / -1;
  display: block;
  overflow: hidden;
  aspect-ratio: 1.85;
  border-radius: .7rem;
  background: var(--dark);
}
.capsule-visual img { display: block; width: 100%; height: 100%; object-fit: cover; }
.capsule-icon {
  grid-column: 2;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--action-line);
  border-radius: 50%;
  color: #fff;
  background: var(--surface-raised);
}
.capsule > summary:hover .capsule-icon, .capsule[open] .capsule-icon { background: var(--action-hover); }
.capsule-icon::before, .capsule-icon::after {
  grid-area: 1 / 1;
  content: '';
  width: .85rem;
  border-top: 2px solid currentColor;
}
.capsule-icon::after { transform: rotate(90deg); }
.capsule[open] .capsule-icon::after { display: none; }
.capsule > .prose { padding: 0 clamp(.8rem, 2.15vw, 1.9rem) clamp(1.25rem, 3vw, 2.15rem); }
.capsule > .prose figure { margin-bottom: 0; }

.landing > .chapter--artistic .chapter-copy, .landing > .chapter--teaser .chapter-copy {
  grid-template-columns: 1fr;
  justify-items: center;
}
.chapter--artistic, .chapter--teaser {
  padding-block: clamp(2.75rem, 7vw, 6.5rem);
}
.chapter--artistic h2, .chapter--teaser h2 {
  max-width: 22ch;
  text-align: center;
}
.chapter--artistic .prose, .chapter--teaser .prose {
  width: min(100%, 56rem);
}
.chapter--artistic .prose > p, .chapter--teaser .prose > p { margin-inline: auto; }
.chapter--teaser video::cue {
  color: #fff;
  background-color: #08090c;
  font-size: clamp(.9rem, 1.6vw, 1.25rem);
}

.contacts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2.25rem);
  margin: 0 0 clamp(2.5rem, 6vw, 5.5rem);
}
.contacts .chapter {
  padding: clamp(1.5rem, 3.6vw, 3.5rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.contacts h2 { font-size: clamp(1.85rem, 3.65vw, 3.45rem); margin-bottom: .9rem; }
.contacts .button { margin: .25rem .25rem .25rem 0; }
.landing > .chapter--newsletter {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(1.75rem, 5vw, 5rem);
  align-items: start;
  padding-block: clamp(2.5rem, 5.75vw, 5.5rem);
}
.landing > .chapter--newsletter .chapter-copy { display: block; }
.chapter--newsletter .chapter-copy h2 { margin-bottom: 1rem; }
.newsletter {
  min-width: 0;
  padding: clamp(1.1rem, 3vw, 2.5rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow-wrap: anywhere;
}
.newsletter p, .newsletter label { color: var(--text-secondary); }
.form-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.form-fields input {
  display: block;
  width: 100%;
  margin-top: .35rem;
  min-height: 2.8rem;
  padding: 0 .65rem;
  border: 1px solid #75777f;
  border-radius: .6rem;
  background: var(--dark);
  color: inherit;
  font: inherit;
}
.consent { display: flex; align-items: baseline; gap: .7rem; margin: 1.15rem 0; cursor: pointer; }
.consent input { margin: 0; width: 1.1rem; height: 1.1rem; flex: none; accent-color: var(--action); }
.newsletter .form-status { margin: .7rem 0 0; color: #fff; }
.newsletter .form-status:empty { margin: 0; }

.page-intro { padding: var(--spacing) 0; }
.page-title { max-width: 17ch; margin: 0; }
.about > .chapter--credits {
  padding-inline: clamp(1.35rem, 4.5vw, 4rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.footer {
  background: var(--dark);
  border-block-start: 1px solid var(--line);
}
.footer-inner {
  display: flex;
  padding-block: clamp(2rem, 4vw, 3.5rem);
  color: var(--text-secondary);
}
.footer .brand { font-weight: 500; font-size: clamp(1.65rem, 3vw, 2.75rem); }

.notion-gray { --notion-color: #ccc8c1; }
.notion-brown { --notion-color: #dfad88; }
.notion-orange { --notion-color: #ffb07b; }
.notion-yellow { --notion-color: #f6d378; }
.notion-green { --notion-color: #a6d2a2; }
.notion-blue { --notion-color: #a9cbff; }
.notion-purple { --notion-color: #dabaff; }
.notion-pink { --notion-color: #ffafd6; }
.notion-red { --notion-color: #ffb0a6; }
[class*="notion-"] { color: var(--notion-color); }
.notion-background { color: var(--dark); background: var(--notion-color); }

@media (max-width: 57rem) {
  .form-fields { grid-template-columns: 1fr; }
}

@media (max-width: 43rem) {
  .top { grid-template-columns: minmax(0, 1fr) auto; min-height: auto; }
  .top .brand { grid-column: 1 / -1; }
  .site-nav { grid-area: 2 / 1; }
  .top nav a { padding-inline: .3rem; }
  .languages { grid-area: 2 / 2; }
  .landing > .chapter .chapter-copy, .about > .chapter .chapter-copy,
  .landing > .chapter--newsletter, .pathways, .contacts {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.ava-home {
  --edge: max(var(--gutter), calc((100% - var(--measure)) / 2));
  background: var(--dark);
}
.ava-home .top {
  position: absolute;
  inset: 0 0 auto;
  z-index: 4;
  min-height: 4.5rem;
  border: 0;
}
.ava-home .top .brand {
  padding: .55rem .8rem;
  border-radius: var(--pill);
  background: #08090ccc;
}
.ava-home .top .site-nav { justify-content: end; }
.ava-home .top nav a {
  padding-inline: .65rem;
  border-radius: var(--pill);
  background: #08090ce0;
  color: #fff;
}
.top .languages a:hover, .ava-home .top nav a:hover { background: var(--action-hover); }
.ava-home .skip { z-index: 6; }
.ava-home .preview {
  position: absolute;
  z-index: 4;
  inset: 4.65rem 0 auto;
  margin-top: 0;
  font-size: .75rem;
}

.scene {
  --screen: 100vh;
  --screen: 100svh;
  --runway: 0px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  isolation: isolate;
  background: var(--dark);
}
[data-motion] .scene[data-scene] { --runway: min(22svh, 13rem); }
.scene--motion { --screen: 88svh; }
.scene--text-only { --screen: min(72svh, 44rem); }
.scene > * { grid-area: 1 / 1; }
.scene-backdrop {
  position: relative;
  align-self: start;
  height: var(--screen);
  background: var(--surface);
}
[data-motion] .scene-backdrop { position: sticky; top: 0; }
.scene-frame {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
}
.scene-frame img, .scene-frame video {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  object-position: var(--frame-x, 50%) 50%;
  border-radius: 0;
  background: transparent;
}
[data-motion] .scene-frame :is(img, video) {
  transform: translateY(calc(var(--pan, 0px) * -.28)) scale(1.035);
}
.scene-frame video { opacity: 0; pointer-events: none; }
[data-motion] .scene-frame video { transition: opacity .55s ease; }
[data-motion] [data-video-frame] video { opacity: 1; }
.scene-frame::after {
  position: absolute;
  inset: 0;
  content: '';
  background:
    linear-gradient(180deg, #08090c 0%, transparent 19%, transparent 38%, #08090c 100%),
    linear-gradient(90deg, #08090cba 0%, #08090c70 32%, transparent 76%);
}
.scene--opening .scene-frame::after {
  background: linear-gradient(180deg, #08090c80 0%, transparent 19%, transparent 36%, #08090cca 71%, #08090c 100%);
}
.scene-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: flex-start;
  min-height: calc(var(--screen) + var(--runway));
  padding: clamp(4.75rem, 16svh, 10rem) var(--edge)
    calc(var(--runway) + clamp(2.5rem, 7svh, 5.25rem));
}
.scene-copy > * { max-width: 100%; }
.scene-copy :is(h1, h2) {
  max-width: 13ch;
  color: #fff;
  text-shadow: 0 2px 24px #08090c;
}
.scene-copy h2 { font-size: clamp(2.6rem, 5.7vw, 5.25rem); }
.scene-copy > .prose {
  position: relative;
  isolation: isolate;
  max-width: min(38rem, 100%);
  color: #fff;
  text-shadow: 0 1px 5px #08090c;
}
.scene-copy > .prose::before {
  position: absolute;
  inset: -2.5rem -1.5rem;
  z-index: -1;
  content: '';
  pointer-events: none;
  background: radial-gradient(ellipse at 38% 54%, #08090cf5, #08090cd5 49%, transparent 78%);
}
.hero-lead {
  align-items: center;
  padding-block-start: 7rem;
  text-align: center;
}
.hero-lead h1 {
  max-width: min(25ch, 100%);
  margin-bottom: clamp(1.2rem, 2.5vw, 2rem);
  font-size: clamp(3.25rem, 5.75vw, 5.6rem);
}
.hero--long-title .hero-lead h1 { font-size: clamp(2.75rem, 5vw, 4.8rem); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .75rem; }
.hero-action { min-height: 3.3rem; }
.scene--exterior { --frame-x: 71%; }
.scene-control {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.85rem;
  height: 2.85rem;
  border: 1px solid #ffffff61;
  border-radius: 50%;
  color: #fff;
  background: #08090ce0;
  cursor: pointer;
}
.scene-copy > .scene-control { margin-top: 1.25rem; }
@media (prefers-reduced-motion: no-preference) {
  .scene-control[hidden] { display: grid !important; visibility: hidden; }
}
.scene-control:hover { background: var(--action-hover); }
.scene-control:active { background: var(--action-active); }
.scene-control > span:first-child {
  width: 0;
  height: 0;
  margin-inline-start: .18rem;
  border-block: .43rem solid transparent;
  border-inline-start: .67rem solid currentColor;
}
.scene-control[data-playing="true"] > span:first-child {
  width: .68rem;
  height: .8rem;
  margin: 0;
  border: 0;
  border-inline: .2rem solid currentColor;
}
.scene-credit, .scene-interlude, .scene-continuation { padding-inline: var(--edge); }
.scene-credit { padding-block: 1rem; color: var(--text-secondary); font-size: .875rem; }
.scene-interlude { padding-block: clamp(2rem, 5.5vw, 5rem); text-align: center; }
.scene-interlude .prose > p { margin-inline: auto; }
.scene-continuation { padding-block: clamp(1.75rem, 4vw, 4rem); }

.narrative {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 5vw, 4.5rem);
  padding: clamp(2rem, 5vw, 4.75rem) var(--edge);
  background: var(--surface);
  border-block-start: 1px solid var(--line);
}
.narrative > .chapter { padding: 0; border: 0; }
.narrative > .chapter:only-child { grid-column: 1 / -1; }
.narrative h2 { margin-bottom: .85rem; font-size: clamp(1.85rem, 3.6vw, 3.2rem); }

.landing > .chapter, .landing > .prose, .landing > .contacts, .landing > .pathways {
  padding-inline: var(--edge);
}
.landing > .chapter {
  background: var(--surface);
  padding-block: clamp(2.5rem, 7vw, 6.5rem);
}
.landing > .chapter + .chapter { background: var(--dark); }
.landing details.chapter { padding-block: 2rem; }
.landing .contacts {
  margin: 0;
  padding-block: clamp(2.5rem, 7.5vw, 7rem);
  background: var(--dark);
}
.landing .contacts .chapter-copy { display: block; }
.ava-home .consent { align-items: start; min-height: 2.75rem; }
.ava-home .consent input { margin-top: .28rem; }

@media (max-width: 43rem) {
  .ava-home { --gutter: clamp(1rem, 5.3vw, 1.5rem); }
  .ava-home .top { min-height: 0; }
  .ava-home .top:has(.site-nav > :only-child) { grid-template-columns: auto minmax(0, 1fr) auto; column-gap: .4rem; }
  .ava-home .top:has(.site-nav > :only-child) .brand { grid-area: 1 / 1; padding-inline: .55rem; }
  .ava-home .top:has(.site-nav > :only-child) .site-nav { grid-area: 1 / 2; justify-content: end; }
  .ava-home .top:has(.site-nav > :only-child) .languages { grid-area: 1 / 3; }
  .ava-home .top:has(.site-nav > :only-child) .site-nav a { font-size: .75rem; padding-inline: .4rem; }
  .ava-home .preview { inset-block-start: 6.85rem; }
  [data-motion] .scene[data-scene] { --runway: 10svh; }
  .scene--motion { --screen: 76svh; }
  .scene--opening { --frame-x: 52%; }
  .scene--exterior { --frame-x: 84%; }
  .scene-frame::after {
    background: linear-gradient(180deg, #08090cdb 0%, transparent 32%, #08090cc9 65%, #08090c 100%);
  }
  .scene-copy h2 { max-width: 16ch; font-size: clamp(2.1rem, 9vw, 3.2rem); }
  .scene-copy > .prose::before { inset-inline: -1rem; }
  .hero-lead h1 { font-size: clamp(2.3rem, 10vw, 3.5rem); text-wrap: balance; }
  .hero--long-title .hero-lead h1 { font-size: clamp(2.05rem, 8.8vw, 3.15rem); }
  .narrative { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 22rem) {
  .ava-home .top .brand { font-size: 1.12rem; }
  .ava-home .top .site-nav a { padding-inline: .15rem; }
}

@media (prefers-reduced-motion: reduce) {
  [data-motion] .scene[data-scene] { --runway: 0px; }
  [data-motion] .scene-backdrop { position: relative; }
  [data-motion] .scene :is(img, video) { transform: none; }
  .scene video { opacity: 0 !important; }
}
