:root {
  --bg: #070707;
  --ink: #f2ece2;
  --quiet: #a89f92;
  --gutter: 20px;
  /* Georgia is the type of the chord names in the videos */
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { background: var(--bg); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.5 var(--serif);
  overflow-x: hidden;
}

h1, h2, p { margin: 0; font-weight: 400; }

/* Phone: the clip fills the width and the words sit in its dark lower part,
   below the tab, which ends about 79% of the way down the frame. */

.row {
  position: relative;
  container-type: inline-size;
  max-width: 560px;
  margin-inline: auto;
}

.clip {
  position: relative;
  aspect-ratio: 9 / 16;
  width: 100%;
}

.clip video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--bg);
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 99%);
  mask-image: linear-gradient(to bottom, #000 80%, transparent 99%);
}

.glow { display: none; }



.sound {
  position: absolute;
  z-index: 2;
  top: calc(env(safe-area-inset-top) + 72px);
  right: calc(var(--gutter) - 12px);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
  opacity: .38;
  transition: opacity .25s, color .25s;
}
.sound:hover { opacity: .75; }

/* A small speaker, unlit until the sound is on */
.sound svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(0, 0, 0, .9));
}
.sound .waves { opacity: 0; transition: opacity .25s; }

.sound[aria-pressed="true"] { opacity: .95; }
.sound[aria-pressed="true"] .waves { opacity: 1; }

.copy {
  position: relative;
  z-index: 1;
  /* Pull up over the dark part of the frame, just under the tab */
  margin-top: -33cqw;
  padding: 0 var(--gutter);
}

h1 {
  font-size: clamp(28px, 8.2cqw, 38px);
  line-height: 1.14;
  letter-spacing: -.012em;
  text-wrap: balance;
}

.reach {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 12px;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(242, 236, 226, .32);
  text-decoration-thickness: 1px;
  text-underline-offset: .32em;
  overflow-wrap: anywhere;
  transition: text-decoration-color .25s;
}

.reach:hover { text-decoration-color: var(--ink); }

:focus-visible { outline: 1px solid var(--ink); outline-offset: 2px; }

.example { margin-block: 56px 0; }

.example .clip video {
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 6%, #000 76%, transparent 97%);
  mask-image: linear-gradient(to bottom, transparent, #000 6%, #000 76%, transparent 97%);
}

/* The neck runs lower in this frame, so the words sit lower too */
.example .copy { margin-top: -22cqw; }

.example .sound { top: 14px; }

h2 { font-size: 28px; line-height: 1.16; letter-spacing: -.01em; }

.example p { margin-top: 8px; color: var(--quiet); max-width: 34em; }

.contact {
  max-width: 560px;
  margin-inline: auto;
  padding: 96px var(--gutter) calc(env(safe-area-inset-bottom) + 32px);
}

.contact h2 { max-width: 15em; text-wrap: balance; }

.reach.large { margin-top: 20px; font-size: clamp(21px, 6vw, 34px); }

.limn { margin-top: 72px; color: var(--quiet); font-size: 15px; }
.limn dfn { color: var(--ink); }
.limn span { font-style: italic; }

/* Desktop: the clip stands centred like a film, melting into the page, and
   its own colours spill out behind it. */

@media (min-width: 1000px) {
  :root { --gutter: 48px; }

  .row {
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    column-gap: 56px;
    align-items: end;
  }

  .clip {
    grid-column: 2;
    grid-row: 1;
    width: auto;
    height: min(100vh, 71vw, 1080px);
    height: min(100svh, 71vw, 1080px);
  }

  .clip video, .example .clip video {
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 4%, #000 82%, transparent 99%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 4%, #000 82%, transparent 99%);
    mask-composite: intersect;
  }

  .glow {
    display: block;
    position: absolute;
    inset: -15% -70%;
    width: 240%;
    height: 130%;
    opacity: .38;
    filter: blur(90px);
    -webkit-mask-image: radial-gradient(closest-side, #000 45%, transparent);
    mask-image: radial-gradient(closest-side, #000 45%, transparent);
    pointer-events: none;
  }



  .sound, .example .sound { top: 24px; right: 20px; }

  .copy, .example .copy {
    grid-row: 1;
    z-index: 3;
    margin: 0;
    padding-bottom: 12vh;
  }

  .hero .copy { grid-column: 3; padding-right: var(--gutter); padding-left: 0; }

  h1 { font-size: clamp(32px, 3.1vw, 48px); }

  .example { margin-block: 96px 0; }

  /* Rows alternate: words left, then right */
  .example:nth-child(odd) .copy { grid-column: 1; justify-self: end; text-align: right; padding-left: var(--gutter); padding-right: 0; }
  .example:nth-child(even) .copy { grid-column: 3; padding-left: 0; padding-right: var(--gutter); }

  .example p { max-width: 22em; }

  .contact {
    max-width: none;
    position: relative;
    padding: 140px var(--gutter) 40px;
    text-align: center;
  }

  .contact h2 { margin: 0 auto; font-size: 38px; }

  .limn { margin-top: 110px; }
}

@media (prefers-reduced-motion: reduce) {
  .sound, .sound .waves, .reach { transition: none; }
}

.about {
  max-width: 560px;
  margin: 88px auto 0;
  padding: 0 var(--gutter);
}

.about h2 { font-size: 17px; color: var(--ink); letter-spacing: 0; }
.about p { margin-top: 8px; color: var(--quiet); }

.about + .contact { padding-top: 72px; }

@media (min-width: 1000px) {
  .about { max-width: 32em; margin-top: 120px; padding: 0; text-align: center; }
  .about + .contact { padding-top: 96px; }
}


/* Site bar: the logo with its six strings, and one link */
.site {
  position: absolute;
  z-index: 5;
  top: calc(env(safe-area-inset-top) + 12px);
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
}
.site a {
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  text-shadow: 0 0 12px rgba(0, 0, 0, .9);
}
.site a:not(.logo):hover { text-decoration: underline; text-underline-offset: .25em; text-decoration-thickness: 1px; }
.site .links { display: flex; gap: 22px; }
.site .logo img {
  display: block;
  width: 118px;
  height: auto;
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, .7));
}

.sub {
  margin-top: 10px;
  color: var(--quiet);
  font-size: clamp(18px, 4.6cqw, 21px);
}
.hero .reach { margin-top: 18px; }

/* The creators teaser: a strip of real notation and three lines */
.band {
  max-width: 560px;
  margin: 120px auto 0;
  padding: 0 var(--gutter);
}
.band-pic img {
  display: block;
  width: 100%;
  height: auto;
  padding: 3% 3%;
  background: #f3eee6;
  border-radius: 2px;
}
.band-text { margin-top: 28px; }
.band-text p { margin-top: 12px; color: var(--quiet); }

.sign {
  display: block;
  width: min(260px, 70%);
  height: auto;
  margin-bottom: 56px;
}

@media (min-width: 1000px) {
  .site { top: 20px; }
  .site .logo img { width: 150px; }
  .sound, .example .sound { top: 24px; }
  .sub { font-size: 21px; }
  .band {
    max-width: 1100px;
    margin-top: 180px;
    padding: 0 var(--gutter);
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 64px;
    align-items: center;
  }
  .band-text { margin-top: 0; }
  .sign { width: 340px; margin: 0 auto 72px; }
}

/* The mission: two lines set like a title card. Sound in ink, Sight lit
   like a fretted note, "into" small and italic between them. */
.mission {
  font-size: clamp(42px, 13.2cqw, 64px);
  line-height: .96;
  letter-spacing: -.028em;
  text-wrap: initial;
}
.mission > span { display: block; white-space: nowrap; }
.mission .turn { padding-left: .9em; }
.mission i {
  margin-right: .06em;
  font-size: .46em;
  letter-spacing: .01em;
  color: var(--quiet);
}
.mission .lit {
  color: #fffaf2;
  text-shadow: 0 0 .3em rgba(255, 250, 242, .35), 0 0 1.2em rgba(255, 250, 242, .14);
}
.tagline {
  margin-top: 22px;
  padding-left: 1.6em;
  position: relative;
  font-style: italic;
  font-size: clamp(19px, 5.4cqw, 24px);
  line-height: 1.3;
  color: var(--ink);
}
/* A hairline, like a string, leading into the line */
.tagline::before {
  content: "";
  position: absolute;
  left: 0;
  top: .68em;
  width: 1.1em;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--quiet));
}

@media (min-width: 1000px) {
  .mission { font-size: clamp(48px, 4.3vw, 78px); }
  .tagline { font-size: clamp(21px, 1.6vw, 27px); }
}

/* About: the last line stands on its own */
.about p + p { margin-top: 14px; }
.about .own { color: var(--ink); font-style: italic; }
