@font-face {
  font-family: Fraunces;
  src: url("media/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Fraunces;
  src: url("media/fraunces-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url("media/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --canvas: #071d23;
  --surface: #0d292f;
  --deep: #05181e;
  --ink: #f5f3e6;
  --soft: #baccc8;
  --accent: #9defd6;
  --action-ink: #082628;
  --line: #345056;
  --paper: #f4eedc;
  --paper-ink: #153638;
  --display: Fraunces, Georgia, serif;
  --sans: Manrope, system-ui, sans-serif;
}
:root[data-direction="riviera"] {
  color-scheme: light;
  --canvas: #fcf8ec;
  --surface: #f0ecdf;
  --deep: #f6f0df;
  --ink: #193b37;
  --soft: #4c665a;
  --accent: #23614d;
  --action-ink: #fffdf1;
  --line: #c9cdbd;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 500 1rem/1.65 var(--sans); }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid #e69448; outline-offset: 4px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2 { font: 450 clamp(2.6rem, 5.6vw, 5.2rem)/.98 var(--display); letter-spacing: -.06em; }
h3 { font-size: 1rem; }
.shell { width: min(100% - 6rem, 76rem); margin-inline: auto; }
.label { color: var(--accent); font-size: .71rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.section-lede { font-size: 1.06rem; color: var(--soft); }
.skip, .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { z-index: 3; width: auto; height: auto; clip-path: none; inset: .6rem auto auto .6rem; padding: .7rem; background: var(--paper); color: var(--paper-ink); }

.proposal { background: var(--paper); color: var(--paper-ink); border-bottom: 1px solid #c8cdbb; }
.proposal-inner { min-height: 3.65rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; }
.proposal p { font-size: .81rem; font-weight: 800; }
.proposal p span { color: #3e6e61; margin-inline: .2rem; }
.choices { display: flex; align-items: center; gap: .2rem; border-radius: 1.5rem; background: #e7e5d6; padding: .2rem; }
.choices button { display: inline-flex; align-items: center; gap: .42rem; min-height: 2.15rem; padding: .2rem .82rem; border: 0; border-radius: 1.5rem; background: transparent; color: inherit; font-size: .75rem; font-weight: 800; }
.choices button[aria-pressed="true"] { background: #193d3b; color: #fff9e9; }
.choices button:not([aria-pressed="true"]):hover { background: #d8decd; }
.choices i { width: .5rem; height: .5rem; border-radius: 50%; background: #4c9485; }
.choices [data-select="riviera"] i { background: #c67543; }

.opening { isolation: isolate; position: relative; overflow: clip; }
.navigation { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: .35rem 1.4rem; min-height: 4.6rem; border-bottom: 1px solid color-mix(in srgb, var(--ink), transparent 76%); }
.navigation a { text-decoration: none; }
.navigation a:hover, .footer a:hover { text-decoration: underline; text-underline-offset: .32em; }
.wordmark { font: 500 1.27rem/1.2 var(--display); letter-spacing: -.035em; }
.wordmark span { font-style: italic; color: var(--accent); }
.navigation > div { display: flex; flex-wrap: wrap; gap: .1rem 1.5rem; align-items: center; font-size: .83rem; font-weight: 800; }
.navigation > div a { display: inline-flex; align-items: center; min-height: 2.55rem; }

.hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(15rem, .7fr); align-items: center; gap: 2.75rem 4%; min-height: 35rem; padding-block: 5rem 5.5rem; }
.hero-photo { position: absolute; z-index: -1; inset: 0; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 43%; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #04161ce8 0%, #061a23a8 43%, #04182038 78%), linear-gradient(0deg, #061b22c9 0%, transparent 40%, #06182074 100%); }
.hero-photo figcaption { position: absolute; z-index: 1; right: max(3rem, calc((100% - 76rem) / 2)); bottom: 1rem; color: #e4f2ef; font-size: .68rem; }
.hero h1 { margin: .8rem 0 1.25rem; font-size: clamp(4.1rem, 8.9vw, 9rem); line-height: .84; }
.hero h1 em { display: block; font-weight: 430; color: var(--accent); }
.hero-lede { max-width: 27rem; color: #e0ece6; font-size: 1.11rem; }
.action { display: inline-flex; align-items: center; gap: 1.5rem; min-height: 3.05rem; margin-top: 1.8rem; padding: .55rem 1.05rem; border: 1px solid transparent; border-radius: 3rem; background: var(--accent); color: var(--action-ink); font-size: .87rem; font-weight: 800; text-decoration: none; }
.action:hover { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent), transparent 65%); }
.action span { font-size: 1.1rem; }

.brand-card { justify-self: center; width: min(100%, 20rem); display: grid; justify-items: center; gap: .45rem; }
.logo-scene { position: relative; isolation: isolate; overflow: hidden; width: 100%; aspect-ratio: 1; border: 1px solid #fffc; border-radius: 50%; background: #fdfdfd; box-shadow: 0 16px 50px #04141955; }
.logo-scene img { position: absolute; inset: 6%; width: 88%; height: 88%; }
.logo-scene .original { mix-blend-mode: multiply; }
.logo-scene .art { opacity: 0; }
.replay, .replay-note { display: inline-flex; align-items: center; gap: .4rem; min-height: 2.8rem; padding: .2rem .8rem; border: 1px solid transparent; color: var(--ink); font-size: .76rem; font-weight: 800; }
.replay { border-color: #c5efdf70; border-radius: 2rem; background: #07242bef; }
.replay:hover { border-color: var(--accent); }
.replay span { font-size: 1.1rem; line-height: 1; }
.replay-note { display: none; }
@media (prefers-reduced-motion: reduce) {
  .replay { display: none; }
  .replay-note { display: inline-flex; }
}

.direction { border-block: 1px solid var(--line); background: var(--surface); }
.direction-inner { display: grid; grid-template-columns: 17rem 1fr; gap: .45rem 1.1rem; align-items: baseline; padding-block: 1.15rem; }
.direction-inner > p + p { color: var(--ink); font-size: .9rem; }

.overview { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem 8%; padding-block: clamp(3rem, 7vw, 6.75rem); }
.overview h2, .courses h2, .gallery h2, .next h2 { margin-block: .55rem 1rem; }
.overview section > p + p { margin-top: .75rem; }
.profiles { display: grid; gap: .52rem; margin-top: 1.25rem; }
.profiles article { display: flex; align-items: center; gap: .75rem; padding: .62rem .72rem; border: 1px solid var(--line); border-radius: .6rem; }
.profiles p { color: var(--soft); font-size: .81rem; }
.portrait { display: grid; flex: 0 0 2.45rem; height: 2.45rem; place-items: center; border-radius: 50%; background: var(--deep); color: var(--accent); font-size: 1.6rem; line-height: 1; }
.text-link { display: inline-block; margin-top: 1rem; color: var(--accent); font-size: .85rem; font-weight: 800; text-underline-offset: .25em; }

.courses { background: var(--surface); border-block: 1px solid var(--line); }
.course-layout { display: grid; grid-template-columns: minmax(14rem, .75fr) minmax(0, 1fr); gap: 2.3rem 7%; padding-block: clamp(3rem, 7vw, 6.75rem); }
.course-layout header > p:last-child { max-width: 23rem; }
.course-list { border-top: 1px solid var(--line); }
.course-list details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; }
.course-list summary { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, auto) 1.15rem; gap: .6rem; align-items: center; min-height: 3.4rem; padding: .35rem .55rem; list-style: none; }
summary::-webkit-details-marker { display: none; }
.course-list summary::after { content: "+"; color: var(--accent); font-size: 1.2rem; text-align: center; }
.course-list [open] summary::after { content: "−"; }
.course-list summary:hover { background: color-mix(in srgb, var(--accent), transparent 93%); }
.course-list summary span { font-weight: 800; }
.course-list small { color: var(--soft); font-size: .74rem; text-align: right; }
.course-list details p { padding: .1rem .55rem .95rem; color: var(--soft); }

.gallery { padding-block: clamp(3rem, 7vw, 6.75rem); }
.gallery header { display: grid; grid-template-columns: 1fr .57fr; align-items: end; gap: 0 1rem; margin-bottom: 1.15rem; }
.gallery header > p { max-width: 25rem; padding-bottom: .85rem; }
.gallery-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: .85rem; }
.gallery-item { display: grid; grid-template-rows: auto 1fr; text-align: left; color: var(--ink); background: var(--surface); padding: 0; border: 1px solid var(--line); border-radius: .55rem; overflow: hidden; }
.gallery-item:hover { border-color: var(--accent); }
.gallery-item img { width: 100%; height: auto; aspect-ratio: 1.57; object-fit: cover; }
.gallery-item > span { display: flex; align-items: center; gap: .45rem; min-height: 3.1rem; padding: .52rem .7rem; font-size: .82rem; font-weight: 800; }
.gallery-item b { margin-left: auto; order: 2; color: var(--accent); font-size: 1.05rem; }
.gallery-item small { color: var(--soft); font-weight: 600; }
.updates { margin-top: 1.5rem; border-block: 1px solid var(--line); }
.updates summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: .8rem; font-size: .87rem; font-weight: 800; }
.updates summary::after { content: "+"; color: var(--accent); font-size: 1.2rem; }
.updates[open] summary::after { content: "−"; }
.updates dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem 1.4rem; margin: 0 0 1rem; font-size: .87rem; }
.updates dt { font-weight: 800; }
.updates dd { margin: .2rem 0 0; color: var(--soft); }

.next { background: var(--surface); border-block: 1px solid var(--line); }
.next-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 1.4rem 8%; align-items: center; padding-block: clamp(3rem, 7vw, 6rem); }
.next-inner header > p:last-child { max-width: 27rem; }
.next ul { list-style: none; padding: 0; margin: 0; font-size: .95rem; }
.next li { display: grid; grid-template-columns: .75rem 1fr; align-items: baseline; gap: .5rem; padding-block: .58rem; border-bottom: 1px solid var(--line); }
.next li::before { content: "○"; color: var(--accent); font-size: .75rem; }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .55rem 1rem; padding-block: 1.4rem; color: var(--soft); font-size: .75rem; }
.footer a { text-underline-offset: .25em; }

.lightbox { width: min(90vw, 53rem); max-height: calc(100dvh - 1.25rem); padding: .75rem; color: var(--ink); border: 1px solid var(--line); border-radius: .75rem; background: var(--surface); }
.lightbox::backdrop { background: #020f14dd; }
.lightbox-header, .lightbox-nav { display: flex; align-items: center; justify-content: space-between; gap: .5rem 1rem; }
.lightbox-header { padding-bottom: .6rem; }
.lightbox h2 { font-size: clamp(1.45rem, 4vw, 2.15rem); }
.lightbox button { min-width: 2.75rem; min-height: 2.75rem; border: 1px solid var(--line); border-radius: 3rem; background: var(--canvas); color: var(--ink); font-size: 1.15rem; }
.lightbox button:hover { border-color: var(--accent); }
.lightbox-media { display: grid; place-items: center; background: #04171c; }
.lightbox-media img, .lightbox-media video { display: block; width: 100%; max-height: 66dvh; object-fit: contain; }
.lightbox-nav { padding-top: .6rem; }
.lightbox-caption { color: var(--soft); text-align: center; font-size: .79rem; }
html:has(dialog[open]) { overflow: hidden; }

[data-direction="riviera"] .navigation { border-color: var(--line); }
[data-direction="riviera"] .hero { min-height: 33.5rem; padding-block: 3.15rem 3.65rem; grid-template-columns: minmax(0, .95fr) minmax(0, 1fr); gap: 1.35rem 2rem; }
[data-direction="riviera"] .hero-copy { grid-area: 1 / 1; z-index: 1; }
[data-direction="riviera"] .hero h1 { font-size: clamp(3.5rem, 6.7vw, 7rem); }
[data-direction="riviera"] .hero-lede { color: var(--soft); }
[data-direction="riviera"] .hero-photo { position: relative; z-index: auto; grid-area: 1 / 2; min-width: 0; min-height: 23.5rem; align-self: stretch; overflow: hidden; border-radius: 48% 48% .45rem .45rem / 30% 30% .45rem .45rem; }
[data-direction="riviera"] .hero-photo img { position: absolute; inset: 0; object-position: 58% center; }
[data-direction="riviera"] .hero-photo::after { background: linear-gradient(0deg, #0b2a31b0, transparent 35%); }
[data-direction="riviera"] .hero-photo figcaption { right: .65rem; bottom: .5rem; }
[data-direction="riviera"] .brand-card { z-index: 1; grid-area: 1 / 2; justify-self: end; align-self: end; width: min(10.6rem, 43%); margin: 0 -.8rem 2rem 0; padding: .5rem; border: 1px solid var(--line); background: var(--paper); }
[data-direction="riviera"] .logo-scene { box-shadow: none; }
[data-direction="riviera"] .replay, [data-direction="riviera"] .replay-note { min-height: 2.6rem; padding: .2rem; justify-content: center; text-align: center; }
[data-direction="riviera"] .replay { border: 0; border-radius: 0; border-bottom: 1px solid #4c665a; background: none; }
[data-direction="riviera"] .direction { background: #e9e9da; }
[data-direction="riviera"] .overview { grid-template-columns: 1fr 1fr; gap: 2.4rem 7%; }
[data-direction="riviera"] .overview section:first-child { order: 2; }
[data-direction="riviera"] .profiles article { border: 0; border-radius: 0; border-bottom: 1px solid var(--line); padding-inline: 0; }
[data-direction="riviera"] .course-layout { grid-template-columns: 1fr; gap: 1.5rem; }
[data-direction="riviera"] .course-layout header { display: grid; grid-template-columns: 1fr .7fr; column-gap: 1.5rem; align-items: end; }
[data-direction="riviera"] .course-layout header .label { grid-column: 1 / -1; }
[data-direction="riviera"] .course-layout header h2 { margin-block-end: 0; }
[data-direction="riviera"] .course-layout header br { display: none; }
[data-direction="riviera"] .gallery-grid { grid-template-columns: 1fr 1fr 1fr; }
[data-direction="riviera"] .gallery-item { border-radius: 5rem 5rem .2rem .2rem; }

@media (max-width: 760px) {
  .shell { width: min(100% - 2.25rem, 37rem); }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(6.25rem, .55fr); gap: 1.3rem; min-height: 29rem; padding-block: 3rem 3.9rem; }
  .hero h1 { font-size: clamp(3.2rem, 10vw, 5rem); }
  .hero-photo figcaption { right: 1.125rem; }
  .hero-lede { font-size: 1rem; }
  .navigation { flex-wrap: wrap; gap: .15rem 1rem; min-height: 3.15rem; }
  .navigation > div { gap: .1rem .75rem; }
  .navigation > div a { font-size: .75rem; }
  .direction-inner, .overview, .course-layout, .gallery header, .next-inner, [data-direction="riviera"] .overview { grid-template-columns: 1fr; }
  .gallery-grid, [data-direction="riviera"] .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item:first-child { grid-column: 1 / -1; }
  .gallery-item:first-child img { aspect-ratio: 2.15; }
  .updates dl { grid-template-columns: 1fr; }
  [data-direction="riviera"] .hero { min-height: 0; grid-template-columns: 1fr; }
  [data-direction="riviera"] .hero-copy { grid-area: 1 / 1; }
  [data-direction="riviera"] .hero-photo, [data-direction="riviera"] .brand-card { grid-area: 2 / 1; }
  [data-direction="riviera"] .hero-photo { min-height: 17rem; }
  [data-direction="riviera"] .hero h1 { font-size: clamp(3.4rem, 10vw, 5.5rem); }
  [data-direction="riviera"] .course-layout header { grid-template-columns: 1fr; gap: .6rem; }
}

@media (max-width: 490px) {
  .proposal-inner { align-items: flex-start; justify-content: space-between; flex-direction: column; padding-block: .52rem; }
  .navigation { gap: 0; padding-top: .58rem; }
  .navigation > div { width: 100%; justify-content: space-between; }
  .hero { grid-template-columns: 1fr; padding-block: 2.7rem 2.8rem; }
  .hero h1 { font-size: clamp(3.3rem, 14vw, 5rem); }
  .hero-photo img { object-position: 62% center; }
  .brand-card { justify-self: start; width: 100%; grid-template-columns: 6.5rem minmax(0, 1fr); justify-items: start; align-items: center; gap: .7rem; margin-top: .25rem; }
  .brand-card .logo-scene { box-shadow: 0 8px 30px #04141955; }
  .replay, .replay-note { font-size: .71rem; }
  [data-direction="riviera"] .brand-card { grid-template-columns: 1fr; justify-items: center; gap: 0; width: 7.25rem; margin-right: .45rem; }
  [data-direction="riviera"] .hero { padding-block: 2.25rem 2rem; }
  .course-list small { font-size: .67rem; }
}
