/* COACH KASAMA
   Colors and fonts are set once here; change a value and the whole site follows. */
:root {
  --black: #000000;
  --ivory: #f5efe4;
  --champagne: #e3d4bc;
  --taupe: #9c8c7b;
  --taupe-deep: #5e5348;
  --gold: #b39a64;

  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;

  --gutter: clamp(1.25rem, 5vw, 5rem);
  --band: clamp(5rem, 11vw, 10rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--black);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, dl, dd, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ivory); padding: .75rem 1rem; z-index: 100; }
.skip:focus { left: 0; }

.band { padding: var(--band) var(--gutter); }

.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 6.5vw, 5.25rem);
  line-height: 1;
  letter-spacing: -0.015em;
}

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-block;
  padding: 1.05rem 2rem;
  border: 1px solid transparent;
  font: 400 .78rem/1 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s;
}
.btn-light { background: var(--ivory); color: var(--black); }
.btn-light:hover { background: var(--champagne); }
.btn-outline { border-color: rgba(245, 239, 228, .6); color: var(--ivory); }
.btn-outline:hover { background: var(--ivory); color: var(--black); }
.btn-dark { background: var(--black); color: var(--ivory); }
.btn-dark:hover { background: var(--taupe-deep); }

.text-link {
  display: inline-block;
  font-size: .95rem;
  text-decoration: none;
  padding-bottom: .2rem;
  border-bottom: 1px solid var(--gold);
  transition: color .2s;
}
.text-link:hover { color: var(--gold); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem var(--gutter);
  color: var(--ivory);
  transition: background-color .3s;
}
.site-header.is-solid, .site-header.menu-open { background: var(--ivory); color: var(--black); box-shadow: 0 1px 0 var(--champagne); }
.wordmark {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
}
.wordmark, .site-nav a { white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: clamp(1.1rem, 2.4vw, 2.4rem); }
.site-nav a {
  font-size: .78rem; font-weight: 400;
  letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none;
}
.site-nav a:hover { color: var(--gold); }
.site-nav .nav-book { border: 1px solid currentColor; padding: .7rem 1.1rem; }
.site-nav .nav-book:hover { background: var(--ivory); color: var(--black); }
.is-solid .nav-book:hover, .menu-open .nav-book:hover { background: var(--black); color: var(--ivory); }
.menu-toggle {
  display: none;
  background: none; border: 0; color: inherit; cursor: pointer;
  font: 400 .78rem var(--sans); letter-spacing: .18em; text-transform: uppercase;
  padding: .5rem 0;
}

/* ---------- Photo frames ----------
   Each frame shows its photo once the file exists in the images folder.
   Until then it shows the file name it is waiting for. */
.photo { position: relative; overflow: hidden; background: var(--champagne); }
.photo::before {
  content: "Add " attr(data-file);
  position: absolute; inset: 0;
  display: grid; place-items: center;
  padding: 1rem; text-align: center;
  font-size: .8rem; letter-spacing: .08em;
  color: var(--taupe-deep);
}
.photo:has(img)::before, .photo:has(video)::before { content: none; }
.photo img, .photo video { display: block; position: relative; width: 100%; height: 100%; object-fit: cover; }
.photo figcaption {
  position: absolute; left: 0; bottom: 0; right: 0;
  padding: 2.5rem 1rem .85rem;
  font-size: .8rem; letter-spacing: .06em;
  color: var(--ivory);
  background: linear-gradient(transparent, rgba(0, 0, 0, .55));
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  background: var(--taupe-deep);
  color: var(--ivory);
  padding: 7rem var(--gutter) clamp(2.5rem, 6vw, 5rem);
}
.hero-photo { position: absolute; inset: 0; background: linear-gradient(160deg, #8d7d6c, #4f453b); }
.hero-photo::before { color: rgba(245, 239, 228, .55); align-items: start; justify-items: end; padding: 5.5rem var(--gutter); }
.hero-photo img, .hero-photo video { object-position: center top; }
/* Wide screens: the vertical video fills the right side, with the headline beside it */
@media (min-width: 901px) {
  .hero .hero-photo { left: auto; width: 46%; background: none; }
  .hero .hero-photo::after {
    background:
      linear-gradient(to right, var(--taupe-deep) 0%, rgba(94, 83, 72, 0) 24%),
      linear-gradient(to bottom, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, 0) 22%);
  }
}
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .12) 50%, rgba(0, 0, 0, .12) 100%);
}
.hero-text { position: relative; max-width: 60rem; }
@media (min-width: 901px) { .hero-text { max-width: 46vw; } }
.hero h1 { font-weight: 400; }
.hero-name {
  display: block;
  font-family: var(--serif);
  font-size: clamp(3.6rem, 9.5vw, 9rem);
  line-height: .86;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-left: -0.04em;
}
.hero-role {
  display: block;
  margin-top: clamp(1.25rem, 2.5vw, 2rem);
  font: 400 clamp(.78rem, 1.2vw, .95rem) var(--sans);
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--champagne);
}
.hero-motto {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.2;
}
.hero-support { margin-top: 1rem; max-width: 34rem; color: rgba(245, 239, 228, .82); }
.actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.25rem; }

/* One entrance, on page load only */
@media (prefers-reduced-motion: no-preference) {
  .hero-name, .hero-role, .hero-motto, .hero-support, .hero .actions { animation: rise 1.1s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-role { animation-delay: .25s; }
  .hero-motto { animation-delay: .45s; }
  .hero-support { animation-delay: .6s; }
  .hero .actions { animation-delay: .75s; }
  @keyframes rise { from { opacity: 0; transform: translateY(1.5rem); } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); }
.pillar { padding: 0 clamp(1.25rem, 3vw, 3rem); border-left: 1px solid var(--champagne); }
.pillar:first-child { padding-left: 0; border-left: 0; }
.pillar h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.6rem, 2.6vw, 2.3rem); line-height: 1.1;
  margin-bottom: 1rem;
}
.pillar p { max-width: 22rem; color: var(--taupe-deep); }

/* ---------- About ---------- */
.about {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
  padding-top: 0;
}
.about-photo { width: 100%; aspect-ratio: 989 / 1218; max-height: calc(100vh - 7.5rem); position: sticky; top: 6rem; }
.about-photo img { object-position: center top; }
.about-text .display { margin-bottom: 2.5rem; }
.about-text p { max-width: 36rem; margin-bottom: 1.15rem; }
.about-text .lede {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  line-height: 1.45;
  margin-bottom: 1.75rem;
}
.record-title { margin: 3rem 0 .9rem; font: 400 1.35rem/1.2 var(--serif); }
.record { max-width: 36rem; border-top: 1px solid var(--black); }
.record > div {
  display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem;
  padding: 1rem 0; border-bottom: 1px solid var(--champagne);
}
.record dt { font-family: var(--serif); font-style: italic; color: var(--taupe-deep); }
.record dd { font-weight: 400; }
.record dd span { display: block; font-weight: 300; font-size: .92rem; color: var(--taupe-deep); }

/* ---------- Programs ---------- */
.programs { border-top: 1px solid var(--champagne); }
.programs-head {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 6vw, 6rem); align-items: end;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.programs-head p { max-width: 30rem; color: var(--taupe-deep); }
.program {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 1.5rem clamp(2rem, 6vw, 6rem);
  padding: clamp(2rem, 4vw, 3.25rem) 0;
  border-top: 1px solid var(--champagne);
}
.program h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.75rem, 3.4vw, 3rem); line-height: 1.05;
}
.program ul { columns: 2; column-gap: 2.5rem; margin-bottom: 1.75rem; }
.program li { padding: .45rem 0; break-inside: avoid; color: var(--taupe-deep); }
.program-body p { max-width: 30rem; margin-bottom: 1.75rem; color: var(--taupe-deep); }

/* ---------- Philosophy ---------- */
.philosophy { background: var(--champagne); text-align: center; }
.philosophy-title { font: 400 1rem var(--sans); letter-spacing: .04em; color: var(--taupe-deep); margin-bottom: 2.5rem; }
.philosophy blockquote { max-width: 62rem; margin-inline: auto; }
.philosophy blockquote p {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.75rem, 4.2vw, 3.6rem);
  line-height: 1.22; letter-spacing: -0.01em;
  text-wrap: balance;
}
.philosophy blockquote footer { margin-top: 2rem; font-family: var(--serif); font-size: 1.15rem; }
.philosophy-note { max-width: 36rem; margin: 3rem auto 0; color: var(--taupe-deep); }
.philosophy-note + .philosophy-note { margin-top: 1.15rem; }
.philosophy-line { margin-top: 2.5rem; font: italic 400 clamp(1.25rem, 2.2vw, 1.7rem)/1.3 var(--serif); }

/* ---------- The Portfolio ---------- */
.portfolio-head {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(1.5rem, 6vw, 6rem); align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.portfolio-tag { font: italic 400 clamp(1.35rem, 2.4vw, 1.9rem)/1.25 var(--serif); margin-bottom: .75rem; }
.portfolio-head p:not(.portfolio-tag) { max-width: 30rem; color: var(--taupe-deep); }

.covers { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(.5rem, 1vw, 1rem); }
.cover {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 3 / 5; padding: 0; border: 0; cursor: pointer;
  background: var(--champagne); color: var(--ivory); text-align: left;
  font: inherit;
}
.cover img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.cover:hover img, .cover:focus-visible img { transform: scale(1.05); }
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .7), rgba(0, 0, 0, 0) 48%); }
.cover-text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 1.25rem 1.1rem; }
.cover-title { display: block; font: 400 clamp(1.25rem, 1.9vw, 1.75rem)/1.1 var(--serif); }
.cover-count { display: block; margin-top: .5rem; font-size: .8rem; letter-spacing: .06em; color: var(--champagne); }

/* Collection viewer (opens when a cover is chosen) */
.viewer {
  width: 100vw; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: var(--ivory); color: var(--black);
}
.viewer[open] { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden; }
.viewer::backdrop { background: var(--ivory); }
.viewer-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1rem var(--gutter); border-bottom: 1px solid var(--champagne);
}
.viewer-tabs { min-width: 0; display: flex; gap: clamp(1.1rem, 2.6vw, 2.5rem); overflow-x: auto; scrollbar-width: none; }
.viewer-tabs::-webkit-scrollbar { display: none; }
.viewer-tabs button, .viewer-close {
  background: none; border: 0; padding: .6rem 0; cursor: pointer; color: var(--taupe-deep);
  font: 400 .78rem var(--sans); letter-spacing: .18em; text-transform: uppercase; white-space: nowrap;
  border-bottom: 1px solid transparent;
}
.viewer-tabs button:hover, .viewer-close:hover { color: var(--black); }
.viewer-tabs button[aria-current="true"] { color: var(--black); border-bottom-color: var(--gold); }
.viewer-close { color: var(--black); }

.viewer-track {
  display: flex; align-items: center; gap: clamp(.75rem, 2vw, 2rem);
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: clamp(1rem, 3vh, 2rem) 0;
  scrollbar-width: none; outline: 0;
}
.viewer-track::-webkit-scrollbar { display: none; }
.viewer-track::before, .viewer-track::after { content: ""; flex: 0 0 50vw; }
.slide {
  flex: 0 0 auto; height: 100%; margin: 0;
  display: flex; align-items: center;
  scroll-snap-align: center;
  opacity: .28; transition: opacity .6s ease;
}
.slide.is-active { opacity: 1; }
.slide img, .slide video { display: block; max-height: 100%; max-width: 86vw; cursor: pointer; }
.slide.is-active img { cursor: zoom-in; }

.viewer-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: .9rem var(--gutter) 1.2rem; border-top: 1px solid var(--champagne);
}
.viewer-arrow { background: none; border: 0; padding: .9rem .25rem; cursor: pointer; color: var(--black); transition: transform .3s, opacity .3s; }
.viewer-arrow svg { display: block; width: 2.5rem; height: 1rem; }
#viewer-prev:hover { transform: translateX(-.35rem); }
#viewer-next:hover { transform: translateX(.35rem); }
.viewer-arrow:disabled { opacity: .25; cursor: default; transform: none !important; }
.viewer-status { min-width: 0; text-align: center; }
.viewer-dots { display: flex; justify-content: center; gap: .45rem; }
.viewer-dots button { width: 1.4rem; height: 1.1rem; padding: 0; border: 0; background: none; cursor: pointer; }
.viewer-dots button::before { content: ""; display: block; height: 1px; background: var(--taupe); transition: height .3s, background-color .3s; }
.viewer-dots button[aria-current="true"]::before { height: 3px; background: var(--black); }
.viewer-caption { margin-top: .55rem; font-size: .9rem; color: var(--taupe-deep); min-height: 1.6em; }
#viewer-count { font-family: var(--serif); font-style: italic; margin-right: .75rem; color: var(--black); }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100dvh; cursor: zoom-out; }
.lightbox::backdrop { background: rgba(0, 0, 0, .96); }
.lightbox img { max-width: 100vw; max-height: calc(100dvh - 3.5rem); object-fit: contain; }
.lightbox-close {
  display: block; margin: .9rem auto 0; background: none; border: 0; cursor: pointer;
  color: var(--ivory); font: 400 .78rem var(--sans); letter-spacing: .18em; text-transform: uppercase;
}

/* ---------- Forms ---------- */
.book {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 6vw, 6rem);
  border-top: 1px solid var(--champagne);
}
.book-intro p { max-width: 26rem; margin-top: 2rem; color: var(--taupe-deep); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem 2rem; align-content: start; }
.field-wide { grid-column: 1 / -1; }
.field label { display: block; font-size: .9rem; font-weight: 400; margin-bottom: .35rem; }
.hint { font-weight: 300; color: var(--taupe-deep); margin-left: .4rem; }
.field input, .field select, .field textarea {
  width: 100%;
  background: transparent; color: inherit;
  border: 0; border-bottom: 1px solid var(--taupe);
  border-radius: 0;
  padding: .6rem 0;
  font: 300 1.05rem var(--sans);
}
.field textarea { resize: vertical; line-height: 1.5; }
.field select { appearance: none; background: no-repeat right .2rem center / .7rem
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%239c8c7b' stroke-width='1.2'/%3E%3C/svg%3E"); }
.field select option { color: #000; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-bottom-color: var(--black); box-shadow: 0 1px 0 var(--black); }
.field .invalid { border-bottom-color: #a23b2a; }
.form-end { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; margin-top: .5rem; }
.form-status { font-size: .95rem; max-width: 26rem; }


/* ---------- Contact ---------- */
.contact {
  background: var(--champagne);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 6vw, 6rem);
}
.contact-details ul { margin-top: 2.5rem; }
.contact-details li { padding: .9rem 0; border-top: 1px solid var(--taupe); display: grid; grid-template-columns: 7rem 1fr; }
.contact-details li span { color: var(--taupe-deep); }
.contact-details a { text-decoration: none; }
.contact-details a:hover { color: var(--taupe-deep); }

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: 3.5rem var(--gutter) 2.5rem;
}
.footer-mark { font-family: var(--serif); font-size: 1.5rem; letter-spacing: .22em; text-transform: uppercase; }
.site-footer p + p { margin-top: .6rem; font-family: var(--serif); font-style: italic; color: var(--taupe-deep); }
.site-footer .footer-small { margin-top: 2rem; font: 300 .82rem var(--sans); color: var(--taupe-deep); }

/* ---------- Tablet and mobile ---------- */
@media (max-width: 1100px) {
  .menu-toggle { display: block; position: relative; z-index: 2; }
  .wordmark { position: relative; z-index: 2; }
  .site-nav {
    position: fixed; inset: 0;
    flex-direction: column; justify-content: center; gap: 1.75rem;
    background: var(--ivory);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { font-size: .95rem; }
}
@media (max-width: 900px) {

  .about, .programs-head, .program, .book, .contact { grid-template-columns: 1fr; }
  .about-photo { position: relative; top: auto; max-height: none; max-width: 30rem; }
  .hero-photo::after { background: linear-gradient(to top, rgba(0, 0, 0, .82) 0%, rgba(0, 0, 0, .55) 38%, rgba(0, 0, 0, 0) 68%); }
  .pillars { grid-template-columns: 1fr; gap: 2.5rem; }
  .pillar { padding: 2.5rem 0 0; border-left: 0; border-top: 1px solid var(--champagne); }
  .pillar:first-child { padding-top: 0; border-top: 0; }

  .portfolio-head { grid-template-columns: 1fr; }
  .covers {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(62vw, 17rem);
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
  }
  .covers::-webkit-scrollbar { display: none; }
  .cover { scroll-snap-align: start; }
  .viewer-dots button { width: .9rem; }
  .viewer-arrow svg { width: 1.9rem; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .program ul { columns: 1; }
  .form { grid-template-columns: 1fr; }
  .actions .btn { width: 100%; text-align: center; }
  .record > div { grid-template-columns: 5rem 1fr; }
}

/* ---------- Animation ----------
   Runs only when the visitor has not asked their device to reduce motion.
   script.js marks what to animate and adds "in" as each piece scrolls into view. */
@media (prefers-reduced-motion: no-preference) {
  /* Hero photo settles slowly into place */
  .hero-photo img, .hero-photo video { animation: hero-settle 3.2s cubic-bezier(.2, .6, .2, 1) both; }
  @keyframes hero-settle { from { transform: scale(1.14); } }

  /* Text and blocks rise in */
  .js [data-reveal="up"] {
    opacity: 0; transform: translateY(2.25rem);
    transition: opacity 1.1s cubic-bezier(.2, .7, .2, 1), transform 1.1s cubic-bezier(.2, .7, .2, 1);
    transition-delay: var(--d, 0s);
  }
  .js [data-reveal="up"].in { opacity: 1; transform: none; }

  /* Photos are unveiled from the bottom edge while easing back */
  .js [data-reveal="photo"] img, .js [data-reveal="photo"] video {
    clip-path: inset(100% 0 0 0);
    transform: scale(1.18);
    transition: clip-path 1.3s cubic-bezier(.7, 0, .2, 1), transform 1.9s cubic-bezier(.2, .7, .2, 1);
    transition-delay: var(--d, 0s);
  }
  .js [data-reveal="photo"].in img, .js [data-reveal="photo"].in video { clip-path: inset(0); transform: scale(1); }

  /* Section headings slide up from behind a mask */
  .js [data-reveal="mask"] { overflow: hidden; padding-bottom: .12em; }
  .js [data-reveal="mask"] > span {
    display: block; transform: translateY(110%);
    transition: transform 1.1s cubic-bezier(.2, .7, .2, 1);
  }
  .js [data-reveal="mask"].in > span { transform: none; }

  /* The philosophy quote arrives word by word */
  .js [data-reveal="words"] .w {
    display: inline-block; opacity: 0; transform: translateY(.5em);
    transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1);
    transition-delay: calc(var(--i) * 45ms);
  }
  .js [data-reveal="words"].in .w { opacity: 1; transform: none; }

  /* Links: the gold underline draws itself on hover */
  .text-link {
    border-bottom: 0;
    background: linear-gradient(var(--gold), var(--gold)) no-repeat left bottom / 100% 1px;
    transition: background-size .5s cubic-bezier(.2, .7, .2, 1), color .2s;
  }
  .text-link:hover { background-size: 0 1px; background-position: right bottom; }

  .btn { transition: background-color .35s, color .35s, border-color .35s, letter-spacing .35s; }
  .btn:hover { letter-spacing: .26em; }
}

@media (prefers-reduced-motion: reduce) {
  .viewer-track { scroll-behavior: auto; }
  .slide, .cover img { transition: none; }
}
