:root {
  color-scheme: dark;
  --ink: #f7eee9;
  --muted: #c7cad8;
  --soft: rgba(247, 238, 233, 0.66);
  --line: rgba(247, 238, 233, 0.18);
  --peach: #ffae8d;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", Arial, sans-serif;

  --page-bg:
    radial-gradient(circle at 83% 16%, rgba(255, 174, 141, 0.18), transparent 28rem),
    linear-gradient(180deg, #061124 0%, #0d2442 48%, #243f62 100%);
  --grain-opacity: 0.2;
  --grain-line-a: rgba(255, 255, 255, 0.05);
  --grain-line-b: rgba(255, 255, 255, 0.035);
  --grain-blend: screen;
  --nav-link: rgba(247, 238, 233, 0.84);
  --outline-border: rgba(255, 174, 141, 0.48);
  --outline-bg: rgba(255, 255, 255, 0.03);
  --hero-shade:
    linear-gradient(90deg, rgba(5, 14, 29, 0.9) 0%, rgba(8, 19, 37, 0.54) 42%, rgba(10, 18, 35, 0.28) 100%),
    linear-gradient(180deg, rgba(4, 11, 23, 0.1) 0%, rgba(5, 13, 27, 0.24) 53%, #102644 100%);
  --hero-rule: linear-gradient(90deg, transparent, rgba(247, 238, 233, 0.42), transparent);
  --eyebrow-rule: rgba(247, 238, 233, 0.5);
  --intro: rgba(247, 238, 233, 0.86);
  --button-bg: linear-gradient(135deg, rgba(172, 156, 205, 0.74), rgba(255, 174, 141, 0.95));
  --button-shadow: 0 22px 52px rgba(255, 126, 94, 0.18);
  --card-bg: rgba(20, 45, 78, 0.5);
  --card-shadow: 0 26px 80px rgba(0, 0, 0, 0.18);
  --project-info-bg: linear-gradient(180deg, rgba(37, 62, 96, 0.58), rgba(27, 48, 82, 0.72));
  --project-number: rgba(247, 238, 233, 0.82);
  --body-copy: rgba(247, 238, 233, 0.74);
  --image-shadow: 0 28px 80px rgba(0, 0, 0, 0.22);
  --footer-heading: rgba(247, 238, 233, 0.82);
  --footer-text: rgba(247, 238, 233, 0.68);
  --footer-line: rgba(247, 238, 233, 0.12);
}

:root[data-theme="light"] {
  color-scheme: light;
  --ink: #203044;
  --muted: #5c6672;
  --soft: rgba(32, 48, 68, 0.62);
  --line: rgba(32, 48, 68, 0.13);
  --peach: #ee955d;
  --page-bg:
    radial-gradient(circle at 85% 7%, rgba(255, 223, 184, 0.46), transparent 22rem),
    linear-gradient(180deg, #fdf9f1 0%, #f8f4ec 58%, #f4efe5 100%);
  --grain-opacity: 0.16;
  --grain-line-a: rgba(32, 48, 68, 0.035);
  --grain-line-b: rgba(32, 48, 68, 0.025);
  --grain-blend: multiply;
  --nav-link: rgba(32, 48, 68, 0.82);
  --outline-border: rgba(238, 149, 93, 0.74);
  --outline-bg: rgba(255, 255, 255, 0.18);
  --hero-shade:
    linear-gradient(90deg, rgba(252, 248, 239, 0.82) 0%, rgba(252, 248, 239, 0.45) 36%, rgba(252, 248, 239, 0.06) 78%),
    linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(249, 245, 237, 0.08) 58%, #f8f4ec 100%);
  --hero-rule: linear-gradient(90deg, transparent, rgba(32, 48, 68, 0.2), rgba(238, 149, 93, 0.4));
  --eyebrow-rule: rgba(32, 48, 68, 0.5);
  --intro: rgba(32, 48, 68, 0.88);
  --button-bg: linear-gradient(135deg, #f0a16d, #f5b37f);
  --button-shadow: 0 20px 46px rgba(172, 111, 66, 0.18);
  --card-bg: rgba(255, 255, 255, 0.78);
  --card-shadow: 0 20px 60px rgba(41, 52, 63, 0.12);
  --project-info-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(252, 249, 242, 0.96));
  --project-number: rgba(32, 48, 68, 0.82);
  --body-copy: rgba(32, 48, 68, 0.78);
  --image-shadow: 0 24px 70px rgba(41, 52, 63, 0.15);
  --footer-heading: rgba(32, 48, 68, 0.82);
  --footer-text: rgba(32, 48, 68, 0.68);
  --footer-line: rgba(32, 48, 68, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  background: var(--page-bg);
  transition: color 240ms ease, background 240ms ease;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  content: "";
  opacity: var(--grain-opacity);
  background-image:
    linear-gradient(var(--grain-line-a) 1px, transparent 1px),
    linear-gradient(90deg, var(--grain-line-b) 1px, transparent 1px);
  background-size: 160px 160px;
  mix-blend-mode: var(--grain-blend);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.theme-image {
  transition: opacity 220ms ease;
}

.site-header {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  padding: 42px clamp(24px, 6vw, 96px);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  width: 54px;
  height: 54px;
  color: var(--ink);
}

.brand-mark {
  display: block;
  width: 54px;
  height: 54px;
  object-fit: contain;
  overflow: visible;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(28px, 5vw, 72px);
}

.main-nav a,
.outline-button,
.theme-toggle,
.text-link,
.eyebrow,
.project-info span,
.subscription-form label,
.inquiry-form span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.main-nav a {
  color: var(--nav-link);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  justify-content: end;
  gap: 14px;
}

.outline-button,
.theme-toggle {
  min-height: 46px;
  color: var(--ink);
  border: 1px solid var(--outline-border);
  border-radius: 10px;
  background: var(--outline-bg);
}

.outline-button {
  min-width: 122px;
  padding: 16px 24px;
  text-align: center;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 122px;
  padding: 10px 14px;
  cursor: pointer;
}

.theme-toggle:disabled {
  cursor: progress;
  opacity: 0.74;
}

.toggle-track {
  position: relative;
  width: 32px;
  height: 16px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--peach);
  box-shadow: 0 0 18px rgba(255, 174, 141, 0.7);
  transition: transform 180ms ease;
}

:root[data-theme="light"] .toggle-thumb {
  transform: translateX(16px);
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  z-index: -3;
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  z-index: -2;
  background: var(--hero-shade);
}

.hero-content {
  width: min(820px, calc(100% - 48px));
  padding: 28vh 0 0 clamp(24px, 7.4vw, 116px);
}

.eyebrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 22px;
  color: var(--ink);
}

.eyebrow::after {
  display: block;
  width: 38px;
  height: 1px;
  content: "";
  background: var(--eyebrow-rule);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 28px;
  font-family: var(--font-display);
  font-size: clamp(72px, 7.6vw, 118px);
  font-weight: 500;
  line-height: 0.92;
}

h1 span,
em {
  color: var(--peach);
  font-style: italic;
}

h1 .nowrap {
  color: inherit;
  font-style: normal;
  white-space: nowrap;
}

h1 .nowrap span {
  color: var(--peach);
  font-style: normal;
}

.intro {
  max-width: 476px;
  margin-bottom: 50px;
  color: var(--intro);
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 38px;
  flex-wrap: wrap;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 21px 29px;
  color: #fffaf6;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background: var(--button-bg);
  box-shadow: var(--button-shadow);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  color: var(--ink);
  border-bottom: 1px solid rgba(255, 174, 141, 0.7);
}

.work-section,
.site-footer {
  width: min(100% - 48px, 1380px);
  margin: 0 auto;
}

.work-section {
  padding: 82px 0 56px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 36px;
}

.section-heading h2,
.subscription-copy h2 {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(40px, 4vw, 60px);
  font-weight: 500;
  line-height: 1.04;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.project-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
}

.project-card img {
  width: 100%;
  aspect-ratio: 1.7;
  object-fit: cover;
  transition: opacity 180ms ease;
}

.project-info {
  position: relative;
  min-height: 124px;
  padding: 18px 28px 25px;
  background: var(--project-info-bg);
}

.project-info span {
  display: block;
  margin-bottom: 16px;
  color: var(--project-number);
}

.project-info h3 {
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 21px;
  font-weight: 500;
}

.project-info p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.ensemble-card {
  min-height: 320px;
}

.ensemble-card::before {
  position: absolute;
  inset: 72px 32px auto;
  height: 74px;
  pointer-events: none;
  content: "";
  opacity: 0.32;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 14px,
    var(--line) 15px,
    transparent 16px
  );
}

.ensemble-card::after,
.site-footer::after {
  position: absolute;
  content: "";
  border-radius: 50%;
  background: var(--peach);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5), 0 0 28px 8px rgba(255, 174, 141, 0.45);
}

.ensemble-card::after {
  top: 36px;
  right: 34px;
  width: 6px;
  height: 6px;
}

.ensemble-card .project-info {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 32px 34px;
}

.ensemble-card .project-info span,
.ensemble-card .project-info h3,
.ensemble-card .project-info p {
  position: relative;
  z-index: 1;
}

.ensemble-card .project-info span {
  margin-bottom: auto;
}

.ensemble-card .project-info h3 {
  max-width: 300px;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: clamp(34px, 3.8vw, 54px);
  line-height: 1;
}

.ensemble-card .project-info p {
  max-width: 310px;
  color: var(--body-copy);
  font-size: 15px;
  line-height: 1.65;
}

.site-footer {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.7fr);
  align-items: end;
  gap: clamp(42px, 8vw, 120px);
  padding: clamp(64px, 8vw, 108px) 0 32px;
  border-top: 1px solid var(--line);
}

.site-footer::after {
  right: 12px;
  bottom: 30px;
  width: 7px;
  height: 7px;
}

.subscription-copy .eyebrow {
  margin-bottom: 24px;
}

.subscription-copy h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(42px, 5.2vw, 76px);
  line-height: 0.98;
}

.subscription-form {
  width: 100%;
}

.form-honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-status {
  min-height: 22px;
  margin: 12px 0 0;
  color: var(--footer-text);
  font-size: 14px;
  line-height: 1.55;
}

.form-status.is-error {
  color: var(--peach);
}

.subscription-form label {
  display: block;
  margin-bottom: 18px;
  color: var(--footer-heading);
}

.email-field {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
}

.email-field input {
  width: 100%;
  min-width: 0;
  height: 54px;
  padding: 0 16px;
  color: var(--ink);
  font-size: 16px;
  border: 0;
  outline: 0;
  background: transparent;
}

.email-field input::placeholder {
  color: var(--muted);
}

.email-field button {
  min-height: 54px;
  flex: 0 0 auto;
  padding: 0 22px;
  color: #fffaf6;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: 0;
  border-radius: 6px;
  background: var(--button-bg);
  box-shadow: var(--button-shadow);
  cursor: pointer;
}

.email-field button:disabled,
.inquiry-form button:disabled {
  cursor: progress;
  opacity: 0.72;
}

.copyright {
  grid-column: 1 / -1;
  margin: 16px 0 0;
  padding-top: 24px;
  color: var(--footer-text);
  font-size: 14px;
  border-top: 1px solid var(--footer-line);
}

.contact-page {
  min-height: 100vh;
}

.contact-main {
  width: min(100% - 48px, 1380px);
  margin: 0 auto;
  padding: clamp(150px, 18vw, 220px) 0 clamp(72px, 9vw, 120px);
}

.contact-hero {
  max-width: 780px;
  margin-bottom: clamp(54px, 8vw, 96px);
}

.contact-hero h1 {
  margin-bottom: 24px;
}

.contact-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  width: min(100%, 920px);
  margin: 0 auto;
  padding: clamp(44px, 6vw, 76px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.listen-shell {
  width: min(100%, 760px);
  margin: 0 auto;
}

.listen-card {
  padding: clamp(32px, 6vw, 62px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
}

.listen-card h1 {
  margin-bottom: 20px;
  font-size: clamp(52px, 8vw, 86px);
}

.listen-card .intro {
  margin-bottom: 34px;
}

.listen-playlist {
  display: grid;
  gap: 24px;
}

.listen-track {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--card-bg) 88%, transparent);
}

.listen-track-cover {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: var(--image-shadow);
}

.listen-track-copy {
  min-width: 0;
}

.listen-track-number {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--footer-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.listen-track-copy h2 {
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 500;
  line-height: 0.96;
}

.audio-player {
  width: 100%;
  margin-top: 10px;
}

.locked-message {
  margin: 0;
  color: var(--footer-text);
  font-size: 15px;
  line-height: 1.65;
}

.inquiry-form {
  display: grid;
  gap: 18px;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.inquiry-form label {
  display: grid;
  gap: 10px;
}

.inquiry-form span {
  color: var(--footer-heading);
}

.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea {
  width: 100%;
  color: var(--ink);
  font-size: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
}

.inquiry-form input,
.inquiry-form select {
  height: 56px;
  padding: 0 16px;
}

.inquiry-form textarea {
  min-height: 180px;
  padding: 16px;
  resize: vertical;
}

.inquiry-form input:focus,
.inquiry-form select:focus,
.inquiry-form textarea:focus {
  border-color: var(--outline-border);
}

.inquiry-form button {
  justify-self: start;
  min-height: 56px;
  padding: 0 26px;
  color: #fffaf6;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: 0;
  border-radius: 6px;
  background: var(--button-bg);
  box-shadow: var(--button-shadow);
  cursor: pointer;
}

.has-floating-player {
  padding-bottom: var(--floating-player-space, 0);
}

.has-floating-player.floating-player-expanded {
  --floating-player-space: 360px;
}

.has-floating-player.floating-player-minimized {
  --floating-player-space: 112px;
}

.floating-player {
  position: fixed;
  right: max(24px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 32;
  width: min(328px, calc(100vw - 48px));
  pointer-events: none;
}

.floating-player-shell,
.floating-player-launcher {
  pointer-events: auto;
}

.floating-player-shell[hidden],
.floating-player-launcher[hidden] {
  display: none !important;
}

.floating-player-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--card-bg) 92%, transparent);
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(12px);
}

.floating-player-cover {
  position: relative;
  aspect-ratio: 1.55;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 174, 141, 0.26), transparent 8rem),
    linear-gradient(160deg, rgba(8, 27, 48, 0.82), rgba(22, 53, 86, 0.92));
}

:root[data-theme="light"] .floating-player-cover {
  background:
    radial-gradient(circle at 82% 18%, rgba(238, 149, 93, 0.22), transparent 8rem),
    linear-gradient(160deg, rgba(255, 250, 244, 0.92), rgba(245, 238, 227, 0.98));
}

.floating-player-cover::after {
  position: absolute;
  inset: auto 22px 18px;
  height: 1px;
  content: "";
  opacity: 0.38;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.floating-player-cover-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.floating-player-cover-fallback,
.floating-player-launcher-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-family: var(--font-display);
}

.floating-player-cover-fallback {
  position: absolute;
  inset: 0;
  gap: 8px;
  flex-direction: column;
  letter-spacing: 0.08em;
}

.floating-player-cover-fallback span {
  font-size: clamp(44px, 8vw, 62px);
  line-height: 1;
}

.floating-player-cover-fallback small {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.floating-player-topbar {
  position: absolute;
  top: 14px;
  right: 14px;
  left: 14px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.floating-player-icon-button,
.floating-player-control,
.floating-player-inline-button,
.floating-player-launcher {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--card-bg) 84%, rgba(255, 255, 255, 0.04));
  box-shadow: 0 16px 32px rgba(7, 16, 28, 0.12);
}

.floating-player-icon-button,
.floating-player-control,
.floating-player-inline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  color: var(--ink);
  border-radius: 999px;
  cursor: pointer;
}

.floating-player-control:disabled,
.floating-player-icon-button:disabled,
.floating-player-inline-button:disabled {
  cursor: not-allowed;
  opacity: 0.54;
}

.floating-player-icon,
.floating-player-icon svg {
  display: inline-flex;
  width: 18px;
  height: 18px;
}

.floating-player-state-pill {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--card-bg) 88%, rgba(255, 255, 255, 0.08));
  backdrop-filter: blur(8px);
}

.floating-player-volume-panel {
  position: absolute;
  top: 64px;
  right: 16px;
  z-index: 4;
  width: min(188px, calc(100% - 32px));
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--card-bg) 96%, rgba(255, 255, 255, 0.06));
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(16px);
}

.floating-player-volume-label {
  display: grid;
  gap: 12px;
}

.floating-player-volume-label span,
.floating-player-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.floating-player-volume-label span {
  color: var(--footer-heading);
}

.floating-player-volume-panel input[type="range"] {
  width: 100%;
  accent-color: var(--peach);
}

.floating-player-inline-button {
  width: 100%;
  margin-top: 12px;
  border-radius: 10px;
}

.floating-player-body {
  overflow-y: auto;
  padding: 18px 20px 20px;
}

.floating-player-kicker {
  margin-bottom: 10px;
  color: var(--footer-heading);
}

.floating-player-title {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 34px);
  font-weight: 500;
  line-height: 0.96;
}

.floating-player-progress {
  height: 4px;
  overflow: hidden;
  margin-bottom: 18px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--line) 88%, transparent);
}

.floating-player-progress-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255, 174, 141, 0.68), var(--peach));
}

.floating-player-controls {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.floating-player-primary {
  min-width: 112px;
  min-height: 56px;
  gap: 10px;
  padding: 0 20px;
  color: #fffaf6;
  border: 0;
  border-radius: 999px;
  background: var(--button-bg);
  box-shadow: var(--button-shadow);
}

.floating-player-primary .floating-player-icon,
.floating-player-primary .floating-player-icon svg {
  width: 20px;
  height: 20px;
}

.floating-player-primary-text {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.floating-player-status {
  min-height: 20px;
  margin: 14px 0 0;
  color: var(--footer-text);
  font-size: 13px;
  line-height: 1.45;
}

.floating-player-status.is-error {
  color: var(--peach);
}

.floating-player-live-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  white-space: nowrap;
  border: 0;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
}

.floating-player-launcher {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: auto;
  min-height: 68px;
  padding: 10px 14px 10px 10px;
  color: var(--ink);
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.floating-player-launcher-art {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 50%;
  isolation: isolate;
  background:
    radial-gradient(circle at 74% 22%, rgba(255, 174, 141, 0.34), transparent 3rem),
    linear-gradient(160deg, rgba(13, 36, 66, 0.92), rgba(35, 63, 98, 0.84));
}

:root[data-theme="light"] .floating-player-launcher-art {
  background:
    radial-gradient(circle at 74% 22%, rgba(238, 149, 93, 0.24), transparent 3rem),
    linear-gradient(160deg, rgba(255, 248, 241, 0.92), rgba(244, 236, 226, 0.92));
}

.floating-player-launcher-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.floating-player-launcher-fallback {
  width: 100%;
  height: 100%;
  font-size: 26px;
}

.floating-player-launcher-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
  text-align: left;
}

.floating-player-launcher-label {
  color: var(--footer-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.floating-player-launcher-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 0.94;
}

.floating-player.is-minimized .floating-player-shell {
  display: none;
}

.floating-player.is-minimized {
  width: auto;
}

.floating-player.is-minimized .floating-player-launcher {
  max-width: min(248px, calc(100vw - 48px));
  gap: 8px;
  padding: 10px;
}

.floating-player.is-minimized .floating-player-launcher-copy {
  gap: 3px;
}

.floating-player.is-minimized .floating-player-launcher-title {
  font-size: 20px;
}

.floating-player-control:first-child {
  justify-self: start;
}

.floating-player-control:last-child {
  justify-self: end;
}

.floating-player-icon-button:focus-visible,
.floating-player-control:focus-visible,
.floating-player-inline-button:focus-visible,
.floating-player-launcher:focus-visible,
.floating-player-volume-panel input[type="range"]:focus-visible {
  outline: 2px solid var(--peach);
  outline-offset: 3px;
}

@media (max-width: 1080px) {
  .theme-toggle {
    min-width: 100px;
  }

  .main-nav {
    gap: 28px;
  }
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: auto 1fr;
    gap: 22px;
    padding: 28px 24px;
  }

  .main-nav {
    order: 3;
    grid-column: 1 / -1;
    justify-self: stretch;
    justify-content: flex-start;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .header-actions {
    justify-self: end;
  }

  .outline-button {
    justify-self: end;
  }

  .hero-content {
    padding-top: 25vh;
  }

  .project-grid,
  .site-footer,
  .contact-shell {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

}

@media (max-width: 560px) {
  .has-floating-player.floating-player-expanded {
    --floating-player-space: 408px;
  }

  .has-floating-player.floating-player-minimized {
    --floating-player-space: 96px;
  }

  .floating-player {
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    width: min(352px, calc(100vw - 32px));
  }

  .floating-player-shell {
    max-height: calc(100vh - 32px - env(safe-area-inset-bottom));
  }

  .floating-player-title {
    font-size: 24px;
  }

  .floating-player-controls {
    gap: 8px;
  }

  .floating-player-primary {
    min-width: 104px;
  }

  .site-header {
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .main-nav {
    display: none;
  }

  .header-actions {
    gap: 8px;
  }

  .theme-toggle {
    min-width: 44px;
    padding: 10px;
  }

  .theme-toggle-text {
    display: none;
  }

  .outline-button {
    min-width: auto;
    padding: 13px 15px;
    font-size: 10px;
  }

  h1 {
    font-size: 56px;
  }

  .intro {
    font-size: 16px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .work-section {
    padding-top: 56px;
    padding-bottom: 44px;
  }

  .ensemble-card,
  .ensemble-card .project-info {
    min-height: 220px;
  }

  .ensemble-card .project-info {
    justify-content: flex-start;
    padding: 24px 24px 28px;
  }

  .ensemble-card .project-info span {
    margin-bottom: 18px;
  }

  .listen-card {
    padding: 30px 22px 34px;
  }

  .listen-track {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 18px;
  }

  .email-field {
    align-items: stretch;
    flex-direction: column;
  }

  .email-field button {
    width: 100%;
  }

  .contact-main {
    padding-top: 132px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .inquiry-form button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .theme-image,
  body,
  .toggle-thumb,
  .floating-player-progress-fill {
    transition: none !important;
  }
}
