/* Doori Na, violin. One 1152px column on a warm ground: yellow hero band,
   navy About band, and a film-dark video player that opens over the page. */

@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-roman.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

:root {
  --ground: #F3EFE7;
  --ink: #1E2538;
  --ink-soft: #3A4766;
  --ink-hover: #2D3754;
  --muted: #4B546A;
  --rule: #DDD6CA;
  --panel: #E9E3D8;
  --yellow: #DCB93F;
  --hero-yellow: #D6A200;
  --on-navy: #F3F1EA;
  --on-navy-muted: #B8C0D0;
  --gold: #E3C356;
  --gold-bright: #F0D886;
  --film: #0E1220;
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --gutter: clamp(24px, 5vw, 64px);
  --max: 1152px;
  --ease-out: cubic-bezier(.2, .75, .15, 1);
  color-scheme: light;
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-gutter: stable;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
html.is-playing { overflow: hidden; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }

a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}
a:hover { color: var(--ink-soft); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 2px; }

h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
cite { font-style: italic; }

.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--ground);
  text-decoration: none;
}
.skip:focus { top: 16px; color: var(--ground); }

main h2 {
  margin: 0;
  font-size: clamp(2.25rem, 4.5vw, 3rem);
  font-weight: 450;
  line-height: 1.1;
  letter-spacing: -.01em;
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.35fr);
  min-height: 680px;
  /* Colors sampled from the photo's own background where it fades into the page */
  background: linear-gradient(180deg, #c38200 0%, #c98b00 25%, #c88701 50%, #ba7401 75%, #9a4f00 100%);
}
.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 56px;
  padding: 28px 24px 72px var(--gutter);
}
/* ---------- Menus ----------
   Small, spaced capitals on wide screens. On phones a single "Menu" button
   opens a full-screen navy menu (the links stay visible if JavaScript is off). */

.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 34px;
  font-size: .8125rem;
  font-weight: 560;
  letter-spacing: .16em;
  line-height: 1.4;
  text-transform: uppercase;
}
.nav a {
  padding-block: 10px 6px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.nav a:hover { color: var(--ink); border-bottom-color: currentColor; }
.nav a[aria-current] { border-bottom-color: currentColor; }
/* Wide screens: the hero menu stays on one line, running onto the plain yellow if needed */
@media (min-width: 1181px) {
  .hero-text { position: relative; z-index: 1; }
  .hero .nav { flex-wrap: nowrap; width: max-content; }
}

.menu-btn {
  display: none;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 0 15px 0 13px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: .75rem;
  font-weight: 560;
  letter-spacing: .16em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.menu-btn:hover { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.menu-bars {
  width: 14px;
  height: 6px;
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
}

@media (max-width: 760px) {
  .js .nav, .js .topbar nav { display: none; }
  .js .menu-btn { display: inline-flex; }
  .js .hero-top { justify-content: flex-end; }
}

/* The full-screen menu: quiet, like the inside cover of a program */
html.menu-open { overflow: hidden; }
.menu-panel {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--ink);
  color: var(--on-navy);
  overflow-y: auto;
}
.menu-panel:focus { outline: none; }
.menu-panel::backdrop { background: rgba(14, 18, 32, .4); }
.menu-panel-inner {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding-top: calc(12px + env(safe-area-inset-top, 0px));
  padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
}
.menu-panel-top { display: flex; align-items: center; justify-content: space-between; min-height: 56px; }
.menu-panel-name { color: var(--on-navy); font-size: 1.125rem; font-weight: 500; text-decoration: none; }
.menu-panel-name:hover { color: var(--on-navy); }
.menu-close {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-right: -8px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: var(--on-navy-muted);
  font: inherit;
  font-size: .75rem;
  font-weight: 560;
  letter-spacing: .18em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .2s ease;
}
.menu-close:hover { color: var(--on-navy); }
.menu-x { position: relative; width: 12px; height: 12px; }
.menu-x::before, .menu-x::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 1px;
  background: currentColor;
  transform: translate(-50%, -50%) rotate(45deg);
}
.menu-x::after { transform: translate(-50%, -50%) rotate(-45deg); }
.menu-panel nav { margin-top: clamp(40px, 9vh, 88px); }
.menu-panel ul { list-style: none; margin: 0; padding: 0; counter-reset: menu; }
.menu-panel li { counter-increment: menu; }
.menu-panel li a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding-block: 11px;
  color: var(--on-navy);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.005em;
  text-decoration: none;
  transition: color .2s ease;
}
.menu-panel li a::before {
  content: counter(menu, decimal-leading-zero);
  min-width: 1.6em;
  font-size: .6875rem;
  font-weight: 560;
  letter-spacing: .12em;
  color: var(--gold);
  opacity: .8;
  font-variant-numeric: tabular-nums;
}
.menu-panel li a:hover, .menu-panel li a[aria-current] { color: var(--gold); font-style: italic; }
.menu-panel-foot {
  margin: auto 0 0;
  padding-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.menu-panel-foot::before { content: ""; width: 32px; height: 1px; background: var(--gold); opacity: .7; }
.menu-panel-mail { color: var(--on-navy); font-size: 1.0625rem; text-decoration: none; }
.menu-panel-mail:hover { color: var(--gold-bright); }
.menu-panel-social { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.menu-panel-social a {
  padding-block: 6px;
  color: var(--on-navy-muted);
  font-size: .75rem;
  font-weight: 560;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
}
.menu-panel-social a:hover { color: var(--on-navy); }
.menu-panel :focus-visible { outline-color: var(--gold); }
@media (prefers-reduced-motion: no-preference) {
  .menu-panel[open] { animation: menu-in .3s ease both; }
  .menu-panel[open] li { animation: rise .55s var(--ease-out) both; }
  .menu-panel[open] li:nth-child(2) { animation-delay: .04s; }
  .menu-panel[open] li:nth-child(3) { animation-delay: .08s; }
  .menu-panel[open] li:nth-child(4) { animation-delay: .12s; }
  .menu-panel[open] li:nth-child(5) { animation-delay: .16s; }
  .menu-panel[open] li:nth-child(6) { animation-delay: .2s; }
}
@keyframes menu-in { from { opacity: 0; } to { opacity: 1; } }
.hero-title { display: flex; flex-direction: column; align-items: flex-start; }
.name {
  margin: 0;
  font-size: clamp(5.5rem, 12.5vw, 10rem);
  font-weight: 460;
  line-height: .84;
  letter-spacing: -.025em;
}
.instrument {
  display: block;
  margin: 18px 0 0;
  font-weight: 400;
  letter-spacing: 0;
  font-style: italic;
  font-size: clamp(1.75rem, 3vw, 2.375rem);
  line-height: 1.1;
}
.cta {
  margin-top: 40px;
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 26px;
  background: var(--ink);
  color: var(--ground);
  font-size: 1.125rem;
  text-decoration: none;
  border-radius: 2px;
  transition: background-color .2s ease;
}
.cta:hover { background: var(--ink-hover); color: var(--ground); }
.hero-media { position: relative; min-height: 0; }
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%);
  mask-image: linear-gradient(90deg, transparent 0, #000 12%);
}
@media (max-width: 1180px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; background: var(--hero-yellow); }
  .hero-text { position: relative; z-index: 1; }
  /* The photo's plain yellow top slides up under the name, so he sits higher */
  .hero-media { aspect-ratio: 4 / 3; margin-top: -56px; }
  .hero-media img {
    object-position: 50% 0;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16%);
    mask-image: linear-gradient(180deg, transparent 0, #000 16%);
  }
  .name { font-size: clamp(5.5rem, 20vw, 10rem); }
  /* "violin" sits beside "Na" instead of on its own line */
  .instrument { display: inline; margin: 0 0 0 .2em; font-size: clamp(1.5rem, 4.6vw, 2.75rem); }
}

/* Phones: a tighter text block and a taller, closer crop so the photo is on the first screen */
@media (max-width: 700px) {
  .hero-text { gap: 26px; padding-top: 22px; padding-bottom: 22px; }
  .name { font-size: clamp(4.25rem, 20vw, 5.5rem); }
  .instrument { font-size: clamp(1.5rem, 7vw, 2rem); }
  .hero-media { margin-top: -48px; }
  .cta { display: none; }
  .hero-media { aspect-ratio: 4 / 5; }
}

/* ---------- Intro ---------- */

.intro { padding-top: 112px; }
.intro p {
  margin: 0;
  max-width: 28em;
  font-size: clamp(1.5rem, 2.7vw, 2.125rem);
  line-height: 1.32;
  font-weight: 380;
}
.intro-more {
  display: inline-flex;
  align-items: center;
  margin-top: 22px;
  font-size: .8125rem;
  font-weight: 560;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-block: 14px 5px;
}
.intro-more:hover { color: var(--ink-soft); }
.intro-arrow { margin-left: 10px; letter-spacing: 0; transition: transform .2s ease; }
.intro-more:hover .intro-arrow { transform: translateX(3px); }

/* ---------- Watch ---------- */

.watch { padding-top: 112px; padding-bottom: 104px; }
.watch h2 { margin-bottom: 12px; }
.watch-note { margin: 0 0 40px; color: var(--muted); }

.video-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 56px 32px;
}
.video-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--ink);
  text-decoration: none;
}
.video-card:hover { color: var(--ink); }
.video-card:focus-visible { outline-offset: 8px; }
.thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  max-width: 100%;
  border-radius: 3px;
  overflow: hidden;
  background: var(--ink);
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease-out);
}
.play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 17%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 1px rgba(30, 37, 56, .25);
  transform: translate(-50%, -50%);
  transition: transform .3s var(--ease-out);
}
.play svg {
  width: 40%;
  height: 40%;
  fill: var(--ink);
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-linejoin: round;
}
@media (hover: hover) {
  .video-card:hover .thumb img { transform: scale(1.025); }
  .video-card:hover .play { transform: translate(-50%, -50%) scale(1.08); }
}
.video-card.is-lifted .thumb { visibility: hidden; }

.card-text { display: flex; flex-direction: column; gap: 4px; }
.card-title { font-style: italic; font-size: 1.375rem; line-height: 1.25; }
.card-sub { font-size: 1rem; line-height: 1.45; color: var(--muted); }
.card-sub .feature { font-weight: 560; color: var(--ink); }
.video-card:hover .card-title {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

/* Preview only: marks videos that have no link yet. */
.video-card[data-video=""] .thumb::after {
  content: "Not uploaded yet";
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 3px 8px;
  border-radius: 2px;
  background: rgba(30, 37, 56, .86);
  color: var(--ground);
  font-size: .8125rem;
  line-height: 1.3;
}
.video-row[data-video=""] .row-title::after {
  content: " · not uploaded yet";
  font-style: normal;
  font-size: .875rem;
  color: var(--muted);
}

.more-h {
  margin: 96px 0 8px;
  font-size: 1.75rem;
  font-weight: 450;
  line-height: 1.2;
}
.video-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
  column-gap: 48px;
}
.video-list li { border-top: 1px solid var(--rule); }
.video-row {
  display: flex;
  align-items: baseline;
  gap: 4px 14px;
  min-height: 44px;
  padding: 16px 0;
  color: var(--ink);
  text-decoration: none;
}
.video-row:hover { color: var(--ink); }
.video-row::before {
  content: "";
  flex: none;
  align-self: center;
  width: .5em;
  height: .58em;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  opacity: .45;
  transition: opacity .2s ease;
}
.video-row:hover::before { opacity: 1; }
.row-title { font-style: italic; }
.row-sub {
  margin-left: auto;
  font-size: .9375rem;
  color: var(--muted);
  text-align: right;
}
.video-row:hover .row-title {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

/* ---------- Listen ---------- */

.listen { padding-bottom: 120px; }
.listen-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 48px;
  padding-top: 72px;
  margin-bottom: 32px;
  border-top: 1px solid var(--rule);
}
.listen-head p { margin: 0; max-width: 32em; color: var(--muted); }
.soundcloud {
  position: relative;
  height: 450px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 3px;
  background: var(--panel);
}
.soundcloud iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  transition: opacity .4s ease;
}
.soundcloud iframe.is-loaded { opacity: 1; }
.soundcloud-link { font-size: 1.0625rem; }

/* ---------- Performances ---------- */

/* Laid out like a concert program: a large day number, then the work, the
   musicians and the hall. Recent concerts sit below as a quiet, compact list. */

.shows { padding-bottom: 120px; --role: #7A5800; }
.shows-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 48px;
  padding-top: 72px;
  margin-bottom: 40px;
  border-top: 1px solid var(--rule);
}
.shows-head p { margin: 0; max-width: 32em; color: var(--muted); }

.group-h {
  margin: 0 0 4px;
  font-size: .875rem;
  font-weight: 560;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Upcoming */
.show-list { list-style: none; margin: 0; padding: 0; }
.show {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr) auto;
  align-items: start;
  gap: 4px 36px;
  padding-block: 30px;
  border-top: 1px solid var(--rule);
}
.show:first-child { border-top-color: var(--ink); }
.show-list.is-collapsed .is-extra { display: none; }

.show-when { display: flex; flex-direction: column; line-height: 1; }
.show-month {
  font-size: .8125rem;
  font-weight: 560;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.show-day {
  margin-top: 6px;
  font-size: 2.75rem;
  font-weight: 380;
  letter-spacing: -.02em;
  font-variant-numeric: lining-nums;
  white-space: nowrap;
}
.show-dow { margin-top: 8px; font-size: .9375rem; color: var(--muted); }

.show-body { display: flex; flex-direction: column; gap: 4px; padding-top: 1px; }
.show-title {
  margin: 0 0 2px;
  font-size: 1.625rem;
  font-weight: 420;
  font-style: italic;
  line-height: 1.2;
}
.show-title a { text-decoration: none; }
.show-title a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.show-role {
  font-size: .8125rem;
  font-weight: 560;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--role);
}
.show-with { font-size: 1.0625rem; line-height: 1.45; }
.show-with .feature { font-weight: 560; }
.show-place { font-size: 1rem; line-height: 1.45; color: var(--muted); }

.show-link {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding-inline: 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease;
}
.show-link:hover { background: var(--ink); color: var(--ground); }
.show-arrow { font-size: .875em; }

.shows-all {
  display: block;
  width: 100%;
  min-height: 56px;
  margin: 0;
  padding: 16px 0;
  border: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 1.0625rem;
  text-align: left;
  cursor: pointer;
}
.shows-all::after { content: " ↓"; color: var(--muted); }
.shows-all:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.show-list:not(.is-collapsed) { border-bottom: 1px solid var(--rule); }

/* Recent */
.show-group--past { margin-top: 80px; }
.past-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
  column-gap: 48px;
}
.past {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 16px;
  padding-block: 14px;
  border-top: 1px solid var(--rule);
  font-size: 1rem;
  line-height: 1.45;
}
.past-when { color: var(--muted); white-space: nowrap; }
.past-body { display: flex; flex-direction: column; }
.past-title { font-style: italic; font-size: 1.0625rem; }
.past-title a { text-decoration: none; }
.past-title a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.past-place { color: var(--muted); font-size: .9375rem; }

@media (max-width: 760px) {
  .show {
    grid-template-columns: 4.75rem minmax(0, 1fr);
    gap: 4px 18px;
    padding-block: 24px;
  }
  .show-day { font-size: 2.125rem; }
  .show-day.is-range { font-size: 1.5rem; margin-top: 8px; letter-spacing: -.01em; }
  .show-title { font-size: 1.375rem; }
  .show-link { grid-column: 2; justify-self: start; margin-top: 10px; min-height: 40px; padding-inline: 16px; font-size: .9375rem; }
}

/* ---------- About ---------- */

.about { background: var(--ink); color: var(--on-navy); }
.about a { color: var(--gold); }
.about a:hover { color: var(--gold-bright); }
.about :focus-visible { outline-color: var(--gold); }
.about-inner {
  padding-block: 128px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
  gap: 64px;
  align-items: start;
}
.portrait {
  width: 100%;
  max-width: 560px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 40%;
  border-radius: 2px;
}
.about-text {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 34em;
  min-width: 0;
}
.about-text h2 { margin-bottom: 14px; }
.about-text p { margin: 0; line-height: 1.62; }
.bio { display: flex; flex-direction: column; gap: 18px; }
.bio p { margin: 0; line-height: 1.62; }
.more {
  align-self: flex-start;
  margin: 6px 0 0;
  padding: 10px 0;
  background: none;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  font: inherit;
  color: var(--gold);
  cursor: pointer;
}
.more:hover { color: var(--gold-bright); }

/* ---------- Contact ---------- */

.contact { padding-block: 120px 104px; }
.contact h2 { margin-bottom: 28px; }
.email {
  font-size: clamp(1.375rem, 2.8vw, 1.875rem);
  line-height: 1.25;
  text-underline-offset: .14em;
  overflow-wrap: anywhere;
}
.social {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 32px;
  font-size: 1.125rem;
}
.social a { display: inline-block; padding-block: 8px; }

/* ---------- Footer ---------- */

.footer { border-top: 1px solid var(--rule); }
.footer-inner {
  padding-block: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: .9375rem;
  color: var(--muted);
}

/* ---------- Video player ---------- */

.player {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  overscroll-behavior: contain;
  background: transparent;
  color: var(--on-navy);
}
.player:not([open]) { display: none; }
.player::backdrop { background: transparent; }
.player :focus-visible { outline-color: var(--gold); }

.player-backdrop { position: absolute; inset: 0; background: var(--film); }

.player-stage {
  --pad: clamp(16px, 3vw, 40px);
  --top: 72px;
  --bar: 76px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  position: relative;
  height: 100%;
  display: grid;
  place-items: center;
  padding:
    calc(var(--top) + var(--safe-t))
    calc(var(--pad) + env(safe-area-inset-right, 0px))
    calc(var(--pad) + var(--safe-b))
    calc(var(--pad) + env(safe-area-inset-left, 0px));
}
.player-body {
  /* --ar is the video's width / height. Tall videos get a tall frame instead of black bars. */
  width: min(100%, calc((100vh - var(--top) - var(--bar) - var(--pad) - var(--safe-t) - var(--safe-b)) * var(--ar, 1.7778)), 1440px);
  width: min(100%, calc((100dvh - var(--top) - var(--bar) - var(--pad) - var(--safe-t) - var(--safe-b)) * var(--ar, 1.7778)), 1440px);
}
.player-frame {
  position: relative;
  aspect-ratio: var(--ar, 1.7778);
  overflow: hidden;
  border-radius: 4px;
  background: #000;
  outline: none;
  transform-origin: 0 0;
}
.player-media > video,
.player-media > iframe {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 0;
}
.player-media > video { object-fit: contain; background: #000; }
.player-media > iframe:focus-visible { outline: none; }
.player-media > video:focus-visible { outline-offset: -3px; }
.player-poster {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  transition: opacity .35s ease;
}
.player-frame.is-ready .player-poster { opacity: 0; }
.player-frame.is-closing .player-poster { opacity: 1; transition: none; }
.player-spinner {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border: 2px solid rgba(243, 241, 234, .25);
  border-top-color: var(--on-navy);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.player-frame.is-loading .player-spinner {
  opacity: 1;
  transition-delay: .6s;
  animation: player-spin .9s linear infinite;
}
@keyframes player-spin { to { transform: rotate(360deg); } }
.player-note {
  position: absolute;
  inset: 0;
  z-index: 4;
  margin: 0;
  display: grid;
  place-content: center;
  gap: 10px;
  padding: 24px;
  background: rgba(14, 18, 32, .74);
  font-size: 1.125rem;
  line-height: 1.4;
  text-align: center;
}
.player-note a { color: var(--gold); }

.player-bar {
  min-height: var(--bar);
  padding-top: 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px 20px;
}
.player-caption {
  margin: 0;
  min-width: 0;
  padding-top: 6px;
  font-size: 1.0625rem;
  line-height: 1.35;
}
.player-title { font-style: italic; font-size: 1.375rem; }
.player-sub { color: var(--on-navy-muted); }
.player-sub .feature { font-weight: 560; color: var(--on-navy); }
.player-nav { flex: none; display: flex; align-items: center; gap: 6px; }
.player-count {
  min-width: 5ch;
  text-align: center;
  font-size: .9375rem;
  color: var(--on-navy-muted);
  font-variant-numeric: tabular-nums;
}
.player button {
  appearance: none;
  -webkit-appearance: none;
  height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0;
  border: 1px solid rgba(243, 241, 234, .28);
  border-radius: 999px;
  background: transparent;
  color: var(--on-navy);
  font: inherit;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}
.player button:hover { background: rgba(243, 241, 234, .1); border-color: rgba(243, 241, 234, .55); }
.player button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.player .player-close {
  position: absolute;
  top: calc(14px + var(--safe-t));
  right: calc(var(--pad) + env(safe-area-inset-right, 0px));
  z-index: 5;
  padding: 0 14px 0 18px;
}
.player-close-label { font-size: 1rem; }

@media (max-width: 640px) {
  .player-stage { --pad: 0px; --top: 68px; --bar: 150px; }
  .player-frame { border-radius: 0; }
  .player-bar { padding-inline: 16px; padding-bottom: 12px; }
  .player .player-close { right: calc(12px + env(safe-area-inset-right, 0px)); }
}
@media (orientation: landscape) and (max-height: 520px) {
  .player-stage { --pad: 0px; --top: 0px; --bar: 0px; }
  .player-frame { border-radius: 0; }
  .player-bar { display: none; }
  .player .player-close {
    top: calc(8px + var(--safe-t));
    right: calc(8px + env(safe-area-inset-right, 0px));
    background: rgba(14, 18, 32, .6);
  }
}

/* ---------- Apps page ---------- */

.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 32px;
  min-height: 88px;
  padding-block: 18px;
  /* a hairline under the header, as wide as the page content */
  background: linear-gradient(var(--rule), var(--rule)) center bottom / calc(100% - 2 * var(--gutter)) 1px no-repeat;
}
.bar-name {
  font-size: 1.375rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: -.005em;
}

/* Apps list (/apps/): a short intro and a compact grid, so several apps fit on one screen */
.apps-intro { padding-block: clamp(48px, 7vw, 80px) 32px; }
.apps-intro h1 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 450;
  line-height: 1;
  letter-spacing: -.015em;
}
.apps-intro p { margin: 12px 0 0; max-width: 32em; color: var(--muted); font-size: 1.0625rem; }
.app-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
  gap: 0 40px;
  border-top: 1px solid var(--ink);
}
.app-list li { border-bottom: 1px solid var(--rule); }
.app-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding-block: 20px;
  color: var(--ink);
  text-decoration: none;
}
.app-card:hover { color: var(--ink); }
.app-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 22.37%;
  box-shadow: 0 1px 2px rgba(30, 37, 56, .12), 0 8px 18px -10px rgba(30, 37, 56, .35);
}
.app-card-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.app-card-name { font-size: 1.375rem; font-weight: 500; line-height: 1.15; }
.app-card-tagline { font-style: italic; font-size: 1rem; line-height: 1.35; }
.app-card-meta {
  margin-top: 2px;
  color: var(--muted);
  font-size: .6875rem;
  font-weight: 560;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.app-card-go {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  font-size: 1rem;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.app-card:hover .app-card-go { background: var(--ink); border-color: var(--ink); color: var(--ground); }
.app-card:hover .app-card-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.apps-intro + .wrap .app-more { margin: 32px 0 56px; font-size: 1.0625rem; }

/* Email sign-up under the Apps list (a Kit form, styled here) */
.signup-sec { padding-bottom: 96px; }
.signup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px 56px;
  align-items: center;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--rule);
  border-radius: 20px;
  background: var(--panel);
}
.signup h2 {
  margin: 0 0 10px;
  font-size: clamp(1.75rem, 3.2vw, 2.25rem);
  font-weight: 450;
  line-height: 1.15;
  letter-spacing: -.01em;
}
.signup-text p { margin: 0; max-width: 28em; color: var(--ink-soft); font-size: 1.0625rem; }
.signup-form { margin: 0; min-width: 0; }
.signup-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 560;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.signup-row { display: flex; flex-wrap: wrap; gap: 10px; }
.signup-row input {
  flex: 1 1 14em;
  min-width: 0;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: #FBF9F4;
  color: var(--ink);
  font: inherit;
  font-size: 1.0625rem;
}
.signup-row input:focus-visible { outline-offset: 2px; }
.signup-row button {
  flex: 0 0 auto;
  min-height: 50px;
  padding: 0 26px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--on-navy);
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color .2s ease;
}
.signup-row button:hover { background: var(--ink-hover); }
.signup-row button[disabled] { opacity: .6; cursor: default; }
.signup-small { margin: 10px 0 0; color: var(--muted); font-size: .875rem; }
.signup-small.is-error { color: #8A2A1E; }
.signup-done p { margin: 0 0 8px; color: var(--ink-soft); font-size: 1.0625rem; }
.signup-done p:last-child { margin-bottom: 0; }
.signup-done strong { color: var(--ink); font-weight: 600; font-size: 1.25rem; }
.signup-done:focus { outline: none; }
@media (max-width: 760px) {
  .signup { grid-template-columns: 1fr; }
  .signup-sec { padding-bottom: 72px; }
}
@media (max-width: 420px) {
  .signup-row button { flex: 1 1 100%; }
}


.app-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding-block: clamp(56px, 9vw, 112px) clamp(64px, 9vw, 112px);
}
.app-icon {
  width: clamp(120px, 20vw, 220px);
  height: auto;
  aspect-ratio: 1;
  border-radius: 22.37%;
  box-shadow: 0 1px 2px rgba(30, 37, 56, .12), 0 18px 40px -12px rgba(30, 37, 56, .28);
}
.app-hero h1 {
  margin: 0;
  font-size: clamp(3.25rem, 8vw, 6rem);
  font-weight: 450;
  line-height: 1;
  letter-spacing: -.02em;
}
.app-tagline {
  margin: 14px 0 0;
  font-size: clamp(1.375rem, 2.6vw, 2rem);
  line-height: 1.25;
  font-style: italic;
}
.app-lede { margin: 22px 0 0; max-width: 32em; color: var(--ink-soft); }
.app-status {
  margin: 28px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: .9375rem;
}
.app-status span {
  padding: 7px 14px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  line-height: 1.2;
}
.app-status span:first-child { background: var(--ink); color: var(--ground); }

.app-section { padding-block: 0 104px; }
.app-section h2,
.app-band h2 {
  margin: 0 0 28px;
  font-size: clamp(2.25rem, 4.5vw, 3rem);
  font-weight: 450;
  line-height: 1.1;
  letter-spacing: -.01em;
}
.tools {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px 48px;
}
@media (min-width: 560px) { .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .tools { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 36px; } }
.tools h3 { margin: 0 0 8px; font-size: 1.5rem; font-weight: 500; line-height: 1.2; }
.tools p { margin: 0; color: var(--ink-soft); }
.app-note { margin: 40px 0 0; max-width: 36em; color: var(--muted); font-size: 1rem; }

.app-band { background: var(--ink); color: var(--on-navy); margin-bottom: 104px; }
.app-band-inner {
  padding-block: 104px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 64px;
}
.app-band p { margin: 0 0 16px; max-width: 32em; }
.app-band p:last-child { margin-bottom: 0; }

.app-more { margin: 0; font-size: clamp(1.25rem, 2.4vw, 1.625rem); font-style: italic; color: var(--ink-soft); }
.app-support { margin: 0; }
.app-support .email { font-size: clamp(1.25rem, 2.6vw, 1.625rem); }
.app-section:last-of-type { padding-bottom: 96px; }

@media (max-width: 560px) {
  .app-hero { grid-template-columns: 1fr; }
  .app-section { padding-bottom: 80px; }
  .app-band { margin-bottom: 80px; }
  .app-band-inner { padding-block: 80px; gap: 48px; }
}

/* ---------- Motion: a gentle entrance, and sections that settle in as you scroll ---------- */

@media (prefers-reduced-motion: no-preference) {
  .hero-title > * { animation: rise 1s var(--ease-out) both; }
  .hero-title > .cta { animation-delay: .18s; }
  .nav { animation: fade .9s ease both .1s; }

  .hero-media img.is-pending { opacity: 0; transform: scale(1.035); }
  .hero-media img.is-in {
    transition: opacity 1.1s ease, transform 2.4s var(--ease-out);
  }

  .reveal { opacity: 0; transform: translateY(18px); }
  .reveal.is-in {
    opacity: 1;
    transform: none;
    transition: opacity .8s ease, transform .9s var(--ease-out);
    transition-delay: var(--d, 0s);
  }

  .page-apps .app-hero > * { animation: rise 1s var(--ease-out) both; }
  .page-apps .app-hero > :nth-child(2) { animation-delay: .12s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Slim header that appears once you scroll past the top, and follows the section you're in ---------- */

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 6;
  background: rgba(243, 239, 231, .95);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--rule);
  transform: translateY(-100%);
  visibility: hidden;
}
.topbar.is-shown { transform: none; visibility: visible; }
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 28px;
  padding-block: 8px;
  min-height: 56px;
}
.topbar-name { font-size: 1.1875rem; font-weight: 500; text-decoration: none; letter-spacing: -.005em; }
.topbar nav {
  display: flex;
  gap: 2px 30px;
  font-size: .75rem;
  font-weight: 560;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.topbar nav a {
  padding-block: 8px 5px;
  text-decoration: none;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color .25s ease, border-color .25s ease;
}
.topbar .menu-btn { min-height: 36px; padding: 0 13px 0 11px; font-size: .6875rem; }
.topbar nav a:hover { color: var(--ink); }
.topbar nav a.is-current { color: var(--ink); border-bottom-color: var(--ink); }
@media (max-width: 1000px) { .topbar nav { gap: 2px 20px; letter-spacing: .12em; } }
/* Without JavaScript, phones keep the links, centered */
@media (max-width: 760px) {
  html:not(.js) .topbar-name { display: none; }
  html:not(.js) .topbar-inner { justify-content: center; }
  html:not(.js) .topbar nav { gap: 2px 14px; letter-spacing: .06em; font-size: .6875rem; flex-wrap: wrap; justify-content: center; }
}
@media (prefers-reduced-motion: no-preference) {
  .topbar { transition: transform .45s var(--ease-out), visibility 0s linear .45s; }
  .topbar.is-shown { transition: transform .45s var(--ease-out), visibility 0s; }
  .hero-title { will-change: transform, opacity; }
}
section[id], #top { scroll-margin-top: 64px; }
#top { scroll-margin-top: 0; }

/* ---------- Soft fade between pages (home and Apps). Browsers without support simply change page as usual. ---------- */

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-group(root) { animation-duration: .4s; }
  ::view-transition-old(root) { animation: .25s ease both vt-out; }
  ::view-transition-new(root) { animation: .4s ease both vt-in; }
}
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }
