/* OROS — oros.house */

@font-face {
  font-family: "Bodoni Moda";
  src: url("../fonts/bodoni-moda-latin-opsz-normal.woff2") format("woff2-variations"),
       url("../fonts/bodoni-moda-latin-opsz-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
/* Poppins carries the reading text: Bodoni's hairlines thin out too far at body sizes on black */
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-latin-300-normal.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-latin-300-italic.woff2") format("woff2");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bodoni Moda";
  src: url("../fonts/bodoni-moda-latin-opsz-italic.woff2") format("woff2-variations"),
       url("../fonts/bodoni-moda-latin-opsz-italic.woff2") format("woff2");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}

:root {
  /* taken from the film */
  --void: #000000;      /* the render's black, so the film has no edge */
  --brass: #c9a35f;     /* lit brass */
  --glow: #f3cb7a;      /* the ring */
  --vellum: #eee6d8;    /* headings */
  --smoke: #aaa194;     /* body text, 8:1 on black */
  --umber: #2b2219;     /* dark bronze, used for rules and selection */

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --measure: 34em;
  --step: clamp(6rem, 14vh, 11rem);
  --serif: "Bodoni Moda", "Bodoni 72", "Didot", Georgia, serif;
  --sans: "Poppins", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--void);
  color: var(--smoke);
  font-family: var(--sans);
  font-weight: 300;
  font-optical-sizing: auto;
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body { margin: 0; background: var(--void); }

::selection { background: var(--umber); color: var(--vellum); }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:focus-visible { outline: 2px solid var(--glow); outline-offset: 4px; border-radius: 1px; }

p { margin: 0 0 1em; }

/* ---------- film ---------- */
.film {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--void);
}
.film-video,
.film-canvas,
.film-still img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}
/* wider than 2:1: show the whole frame instead of cropping the object;
   the film's edges are black like the page, so the sides feather away */
@media (min-aspect-ratio: 2/1) {
  .film-video,
  .film-canvas,
  .film-still img {
    left: 50%;
    right: auto;
    width: auto;
    aspect-ratio: 16 / 10;
    transform: translateX(-50%);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent);
            mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent);
  }
}
.film-still { display: none; }
.film.is-still .film-video { display: none; }
.film.is-still .film-still { display: block; }

/* Daniel in the glass (avatar.js): the canvas holds the film's own last frame, so they swap in one paint */
.film-canvas { visibility: hidden; pointer-events: none; }
.film.has-presence .film-canvas { visibility: visible; }
.film.has-presence .film-video { visibility: hidden; }
.presence-feed {
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 2px;
  opacity: 0.001;
  pointer-events: none;
}
/* placed by avatar.js against the glass: beside it on landscape screens, on the sleeve below it on phones */
.presence {
  position: absolute;
  z-index: 3;
  opacity: 0;
  translate: 0 0.5rem;
  transition: opacity 0.9s ease, translate 0.9s ease;
}
.presence[data-place="side"] { transform: translateY(-50%); text-align: left; }
.presence[data-place="below"] { transform: translateX(-50%); text-align: center; }
.presence.is-shown { opacity: 1; translate: 0 0; }
.presence-talk {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.72em 1.5em 0.78em 1.2em;
  font: inherit;
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: var(--vellum);
  background: rgba(8, 6, 4, 0.45);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  border: 1px solid color-mix(in srgb, var(--brass) 55%, transparent);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.3s, background-color 0.3s;
}
.presence-talk:hover { border-color: var(--glow); background-color: rgba(8, 6, 4, 0.6); }
.presence-talk:focus-visible { outline: 2px solid var(--glow); outline-offset: 4px; }
.presence-dot {
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: var(--glow);
  box-shadow: 0 0 0.7em var(--glow);
  animation: presence-breathe 3.2s ease-in-out infinite;
}
.presence[data-state="connecting"] .presence-dot { animation-duration: 0.9s; }
.presence[data-state="live"] .presence-dot { animation-duration: 1.6s; background: #ffd98c; }
@keyframes presence-breathe {
  0%, 100% { opacity: 0.45; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1); }
}
.presence-note {
  margin: 0.7em 0 0;
  min-height: 1.3em;
  font-size: 0.875rem;
  color: var(--smoke);
  text-shadow: 0 0 0.6em #000;
}
@media (prefers-reduced-motion: reduce) { .presence-dot { animation: none; } }

/* the film's floor fades into the page instead of stopping in a line: kept short and eased,
   so it only takes the last of the floor and never the base of the piece */
.film::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4vh;
  height: 4svh;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.15) 40%, rgba(0, 0, 0, 0.55) 75%, var(--void));
  pointer-events: none;
  z-index: 1;
}


/* ---------- sections ---------- */
main > section:not(.film) {
  padding: var(--step) var(--gutter) 0;
}
.intro, .reveal-copy, .commissions, .exhibitions, .enquiries {
  max-width: calc(var(--measure) + 2 * var(--gutter));
}
@media (min-width: 60em) {
  /* text hangs off a column a third of the way in, like wall text beside a work */
  .intro, .reveal-copy, .commissions, .exhibitions, .enquiries {
    margin-left: 30vw;
  }
}

/* Bodoni for the names of things: headings, callout titles, exhibition titles, the address */
.display, .callout-title, .show-title cite, .enquiries-mail, .label dt { font-family: var(--serif); }

.display {
  color: var(--vellum);
  font-weight: 400;
  font-size: clamp(2.25rem, 1.4rem + 3.4vw, 4.75rem);
  line-height: 1.04;
  letter-spacing: -0.012em;
  margin: 0 0 0.55em;
  text-wrap: balance;
}
.intro .display { font-size: clamp(2.75rem, 1.5rem + 5vw, 6.5rem); }

.nowrap { white-space: nowrap; }

section p {
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.0938rem);
  font-weight: 300;
  letter-spacing: 0.005em;
  line-height: 1.75;
  max-width: var(--measure);
  text-wrap: pretty;
}

/* ---------- anatomy: the piece with its callouts ----------
   Phones (and no script): the picture, then the callouts as a numbered list, the
   picture's points marked with numbers. Wider screens: site.js sets each callout
   beside the piece and draws a fine line from the part it describes. */
.anatomy-figure {
  margin: clamp(1.5rem, 4vh, 3rem) calc(-1 * var(--gutter)) 0;   /* the picture's black meets the page's */
}
.anatomy-stage {
  position: relative;
  margin: 0 auto;
  max-width: calc(88svh * 1080 / 1651);   /* the tall crop, never taller than the screen */
}
.anatomy-img {
  display: block;
  width: 100%;
  height: auto;
  /* the floor's light fades into the page instead of stopping at the picture's edge */
  -webkit-mask-image: linear-gradient(to bottom, #000 91%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 91%, transparent 100%);
}
.anatomy-lines {
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  overflow: visible;
  pointer-events: none;
}
.anatomy-lines path {
  fill: none;
  stroke: var(--brass);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  opacity: 0.8;
  transition: stroke-dashoffset 1s cubic-bezier(0.6, 0, 0.2, 1) calc(var(--d, 0s) + 0.3s);
}
.anatomy-lines .dot {
  fill: var(--glow);
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
  transition: transform 0.45s cubic-bezier(0.3, 1.6, 0.5, 1) var(--d, 0s);
}
.anatomy-lines .halo {
  fill: none;
  stroke: var(--glow);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}
.anatomy-lines .num {
  fill: var(--brass);
  font-size: 12px;
  letter-spacing: 0.08em;
  opacity: 0;
  transition: opacity 0.6s ease calc(var(--d, 0s) + 1.1s);
}
.is-on .anatomy-lines .dot { transform: scale(1); }
.is-on .anatomy-lines .halo { animation: halo 2.4s ease-out calc(var(--d, 0s) + 0.1s) both; }
.is-on .anatomy-lines .num { opacity: 1; }
@keyframes halo {
  0%   { opacity: 0.9; transform: scale(0.4); }
  70%  { opacity: 0; transform: scale(2.6); }
  100% { opacity: 0; transform: scale(2.6); }
}

.callouts {
  list-style: none;
  margin: 2.5rem auto 0;
  padding: 0 var(--gutter);
  display: grid;
  gap: 2.25rem;
  max-width: calc(var(--measure) + 2 * var(--gutter));
}
.callout { position: relative; padding-top: 1.1rem; }
/* each callout opens with a fine rule that draws across as it arrives */
.callout::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  height: 1px;
  background: var(--umber);
  transform-origin: left;
}
.callout p, .callout-points {
  margin: 0;
  font-size: clamp(0.9375rem, 0.85rem + 0.2vw, 1.0625rem);
  line-height: 1.55;
  max-width: 26em;
}
.callout-kicker {
  font-weight: 400;
  color: var(--brass);
  font-size: 0.75rem !important;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.6em !important;
}
.callout-title {
  margin: 0 0 0.3em;
  color: var(--vellum);
  font-weight: 400;
  font-size: clamp(1.125rem, 1rem + 0.4vw, 1.375rem);
  line-height: 1.25;
}
.callout-num {
  color: var(--brass);
  font-size: 0.7em;
  letter-spacing: 0.08em;
  margin-right: 0.45em;
  font-variant-numeric: lining-nums tabular-nums;
}
.callout--lead .callout-title {
  font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem);
  font-style: italic;
  line-height: 1.1;
  margin-bottom: 0.45em;
}
.callout-points { list-style: none; padding: 0; }
.callout--lead .callout-points { color: var(--vellum); opacity: 0.88; }
.callout--tech .callout-points { font-size: clamp(0.8125rem, 0.75rem + 0.15vw, 0.9375rem); opacity: 0.85; }
.callout-note { font-style: italic; opacity: 0.7; font-size: 0.875rem !important; margin-top: 0.3em !important; }

/* arrival: the rule draws, then the words come up */
.anatomy-figure.is-ready .callout::before { transform: scaleX(0); transition: transform 1s cubic-bezier(0.6, 0, 0.2, 1) var(--d, 0s); }
.anatomy-figure.is-ready .callout > * { opacity: 0; transform: translateY(0.4rem); transition: opacity 0.8s ease calc(var(--d, 0s) + 0.35s), transform 0.8s ease calc(var(--d, 0s) + 0.35s); }
.anatomy-figure.is-ready .callout.is-in::before { transform: none; }
.anatomy-figure.is-ready .callout.is-in > * { opacity: 1; transform: none; }

@media (min-width: 64em) {
  .anatomy-stage { max-width: calc(94svh * 16 / 9); }   /* very wide screens: the whole piece still fits */
  /* beside the piece: the lines do the work of the rule */
  .anatomy-figure.is-ready .callouts {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 0;
    max-width: none;
    display: block;
  }
  .anatomy-figure.is-ready .callout {
    position: absolute;
    width: min(24%, 22rem);
    padding-top: 0;
  }
  .anatomy-figure.is-ready .callout::before { display: none; }
  .anatomy-figure.is-ready .callout[data-side="l"] { right: 61.5%; text-align: right; }
  .anatomy-figure.is-ready .callout[data-side="r"] { left: 60.5%; }
  .anatomy-figure.is-ready .callout > * { transition-delay: calc(var(--d, 0s) + 1.05s); }
  .anatomy-figure.is-ready .callout p, .anatomy-figure.is-ready .callout-points { font-size: clamp(0.8125rem, 0.55rem + 0.42vw, 1.0625rem); }
  .anatomy-figure.is-ready .callout--tech .callout-points { font-size: clamp(0.8125rem, 0.55rem + 0.36vw, 0.9375rem); }
  /* beside the piece the lines already tie each callout to its part: the numbers are for phones */
  .anatomy-figure.is-ready .callout-num { display: none; }
  .anatomy-figure.is-ready .callout-title { font-size: clamp(1rem, 0.62rem + 0.6vw, 1.375rem); }
  .anatomy-figure.is-ready .callout--lead .callout-title { font-size: clamp(1.375rem, 0.7rem + 1.15vw, 2.25rem); }
  .anatomy > .anatomy-label { margin-top: clamp(1.5rem, 4vh, 3rem); }
}
.anatomy > .anatomy-label { max-width: var(--measure); }
@media (min-width: 60em) {
  .anatomy > .display, .anatomy > .anatomy-label { margin-left: 30vw; }
}

/* reduced motion: everything simply there */
.anatomy-figure.is-still .callout::before,
.anatomy-figure.is-still .callout > *,
.anatomy-figure.is-still .anatomy-lines * { transition: none !important; animation: none !important; }

.label {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.35em 1.5em;
  margin: 2.25em 0 0;
  padding-top: 1.25em;
  border-top: 1px solid var(--umber);
  font-size: 0.9375rem;
  line-height: 1.5;
  max-width: var(--measure);
}
.label dt { font-style: italic; color: var(--smoke); opacity: 0.75; }
.label dd { margin: 0; color: var(--vellum); }

/* ---------- reveal: scrolling turns the piece round to the artwork ----------
   The stage pins to the screen while the track scrolls past; site.js draws the
   rendered frame for that scroll position. Without the script, or with reduced
   motion, the stage is one screen tall and shows the last frame. */
main > section.reveal { padding: 0; }
.reveal-track { position: relative; }
.reveal.is-live .reveal-track { height: 340vh; height: 340svh; }
.reveal-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--void);
}
.reveal-canvas { display: none; position: absolute; inset: 0; width: 100%; height: 100%; }
.reveal.is-live .reveal-canvas { display: block; }
.reveal.is-live .reveal-still { display: none; }
.reveal-still img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (min-aspect-ratio: 2/1) {
  .reveal-still img {
    left: 50%;
    right: auto;
    width: auto;
    aspect-ratio: 16 / 9;
    transform: translateX(-50%);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent);
            mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent);
  }
}
.reveal-copy { padding: var(--step) var(--gutter) 0; }

/* landscape screens: the copy rises over the right of the frame as the turn
   finishes, beside the piece rather than below it */
@media (min-width: 60em) and (min-aspect-ratio: 5/4) {
  .reveal-copy {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100vh;
    height: 100svh;
    margin: -100vh 0 0 60vw;
    margin-top: -100svh;
    padding: 0 var(--gutter) 0 0;
    max-width: calc(36vw + var(--gutter));
  }
  .reveal-copy .display { font-size: clamp(2.25rem, 1rem + 2.6vw, 4rem); }
  .reveal.is-live .reveal-copy { opacity: clamp(0, calc((var(--p, 1) - 0.62) * 4), 1); }
}

/* ---------- the artist: a portrait beside wall text ---------- */
.artist-portrait {
  margin: 0 0 clamp(1.75rem, 4vh, 2.5rem);
  max-width: min(100%, 22rem);
}
.artist-portrait img {
  display: block;
  width: 100%;
  height: auto;
  /* the photograph's black runs into the page's */
  -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent 100%), linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, #000 82%, transparent 100%), linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  mask-composite: intersect;
}
.artist-copy { max-width: var(--measure); }
.artist-kicker {
  margin: 0 0 0.6em;
  color: var(--brass);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.artist cite { font-style: italic; }
.artist-link {
  display: inline-block;
  margin-top: 0.25em;
  padding-bottom: 0.2em;
  color: var(--brass);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--brass) 45%, transparent);
  transition: color 0.2s, border-color 0.2s;
}
.artist-link::after { content: " \2197"; font-size: 0.8em; }
.artist-link:hover { color: var(--glow); border-color: var(--glow); }
@media (min-width: 60em) {
  /* the portrait hangs in the left margin, the words keep to the page's column */
  .artist {
    display: grid;
    grid-template-columns: calc(30vw - var(--gutter)) minmax(0, var(--measure));   /* words start where every other section's do */
    column-gap: var(--gutter);
    align-items: start;
  }
  .artist-portrait { margin: 0; max-width: 22rem; justify-self: end; width: 100%; }
}

/* ---------- commissions: a quiet invitation ---------- */
.commissions-note { font-style: italic; opacity: 0.75; }
.commissions-cta {
  display: inline-block;
  margin-top: 0.25em;
  padding-bottom: 0.2em;
  color: var(--brass);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--brass) 45%, transparent);
  transition: color 0.2s, border-color 0.2s;
}
.commissions-cta:hover { color: var(--glow); border-color: var(--glow); }

/* ---------- exhibitions: a dated list ---------- */
.shows { list-style: none; margin: 0; padding: 0; }
.shows li {
  display: grid;
  gap: 0.2em;
  padding: 1.4em 0;
  border-top: 1px solid var(--umber);
}
.shows li:last-child { border-bottom: 1px solid var(--umber); }
/* each venue's mark, in the page's own vellum, quietly to the right */
.shows li { grid-template-columns: 4rem minmax(0, 1fr) auto; column-gap: 1.1em; }
.shows li > :where(:not(.show-mark):not(.show-photo)) { grid-column: 2; }
/* a small photo of the piece at each show, at the start of its row */
.show-photo {
  grid-column: 1;
  grid-row: 1 / span 3;
  align-self: start;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: var(--umber);
  position: relative;
  transform-origin: 0 50%;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.55s ease;
}
/* hover (or tap on a phone) brings the photo up, out of its row */
@media (hover: hover) {
  .show-photo { cursor: zoom-in; }
  .show-photo:hover { z-index: 3; transform: scale(3.5); box-shadow: 0 0.6rem 2rem rgba(0, 0, 0, 0.55); }
}
.show-photo.is-big { z-index: 3; transform: scale(3); box-shadow: 0 0.6rem 2rem rgba(0, 0, 0, 0.55); }
@media (prefers-reduced-motion: reduce) { .show-photo { transition: none; } }
.show-mark {
  grid-column: 3;
  grid-row: 1 / span 3;
  align-self: center;
  justify-self: end;
  width: auto;
  height: clamp(2.75rem, 2.2rem + 1.2vw, 3.5rem);
  max-width: 8rem;
  object-fit: contain;
  opacity: 0.72;
}
.show-mark--wide { height: auto; width: clamp(5.5rem, 4.5rem + 3vw, 7.5rem); }
.shows time { font-size: 0.9375rem; color: var(--brass); font-variant-numeric: lining-nums; }
.shows p { margin: 0; }
.show-title { color: var(--vellum); }
.show-title cite { font-style: italic; }
@media (min-width: 40em) {
  .shows li { grid-template-columns: 4.5rem 11.5em minmax(0, 1fr) auto; column-gap: 1.5em; }
  .shows time { white-space: nowrap; }
  /* the list runs wider than the text column, so long show titles keep to two lines */
  .exhibitions { max-width: calc(46em + 2 * var(--gutter)); }
  .shows li > time { grid-column: 2; grid-row: 1 / span 2; padding-top: 0.25em; }
  .shows li > .show-title, .shows li > .show-venue { grid-column: 3; }
  .show-photo { grid-row: 1 / span 3; }
  .show-mark { grid-column: 4; grid-row: 1 / span 3; }
}

/* ---------- enquiries ---------- */
main > section.enquiries { padding-bottom: var(--step); }
.enquiries-mail {
  display: inline-block;
  margin-top: 0.4em;
  color: var(--brass);
  font-size: clamp(1.6rem, 1.1rem + 2.4vw, 3rem);
  line-height: 1.15;
  text-decoration-color: color-mix(in srgb, var(--brass) 40%, transparent);
  transition: color 0.2s, text-decoration-color 0.2s;
  overflow-wrap: anywhere;
}
.enquiries-mail:hover { color: var(--glow); text-decoration-color: var(--glow); }

/* ---------- the music switch: three fine bars, bottom left, moving while the music plays ---------- */
.sound {
  position: fixed;
  left: max(calc(var(--gutter) - 12px), env(safe-area-inset-left));
  bottom: max(0.75rem, env(safe-area-inset-bottom));
  z-index: 30;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  padding: 15px 13px;
  background: none;
  border: 0;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.3s;
}
.sound:hover, .sound:focus-visible { opacity: 1; }
.sound:focus-visible { outline: 1px solid var(--glow); outline-offset: -4px; border-radius: 2px; }
.sound span {
  flex: 1;
  height: 2px;
  background: var(--brass);
  border-radius: 1px;
  transition: height 0.5s ease;
}
.sound[aria-pressed="true"] { opacity: 0.75; }
.sound[aria-pressed="true"] span { height: 100%; transform-origin: bottom; animation: bars 1.4s ease-in-out infinite; }
.sound[aria-pressed="true"] span:nth-child(2) { animation-delay: -0.45s; }
.sound[aria-pressed="true"] span:nth-child(3) { animation-delay: -0.9s; }
@keyframes bars { 0%, 100% { transform: scaleY(0.3); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .sound[aria-pressed="true"] span { animation: none; transform: scaleY(0.7); } }

/* ---------- footer ---------- */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: clamp(2.5rem, 6vh, 4rem) var(--gutter) max(2rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--umber);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--smoke);
}
.footer p { margin: 0; opacity: 0.8; }
.footer .footer-small { margin-top: -0.4rem; font-size: 0.75rem; opacity: 0.6; }
/* the gold wordmark, its black dropped with screen so the glow sits straight on the page */
.footer-mark { display: block; width: clamp(96px, 9vw, 132px); }
.footer-link {
  font-weight: 400;
  color: var(--brass);
  text-decoration: none;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.75rem;
  padding: 0.6em 0.4em;
}
.footer-link:hover { color: var(--glow); }
.footer-mark img {
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: screen;
  /* the glow fades out before the picture's edge */
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
}
.footer-mark:focus-visible { outline-offset: 2px; }
