:root {
  --cream: #e1e0cc;
  --black: #050505;
  --panel: #aeb0ab;
  --project-panel: #3f4140;
  --panel-text: #171717;
  --muted: #777771;
  --radius: clamp(18px, 2.3vw, 34px);
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

html {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--cream);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

button,
a {
  font: inherit;
  touch-action: manipulation;
}

img {
  max-width: 100%;
}

button {
  color: inherit;
}

.site-shell {
  position: relative;
  min-height: 100svh;
  min-height: 100dvh;
  margin: 0;
  overflow: hidden;
  background: #131313;
  isolation: isolate;
}

.hero-video,
.video-fallback,
.video-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-video {
  z-index: -3;
  object-fit: cover;
  background: #181818;
}

.video-fallback {
  z-index: -4;
  background: linear-gradient(135deg, #242424, #0b0b0b 65%);
}

.video-overlay {
  z-index: -2;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.24), transparent 46%, rgba(0, 0, 0, 0.68)),
    rgba(0, 0, 0, 0.08);
}

.top-tabs {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 50%;
  display: flex;
  align-items: stretch;
  gap: clamp(20px, 4vw, 58px);
  max-width: calc(100% - 24px);
  padding: max(10px, env(safe-area-inset-top)) clamp(20px, 3vw, 42px) 12px;
  background: var(--black);
  border-radius: 0 0 24px 24px;
  transform: translateX(-50%);
}

.tab-button {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(225, 224, 204, 0.82);
  cursor: pointer;
  font-size: clamp(11px, 1vw, 14px);
  text-decoration: none;
  white-space: nowrap;
}

.tab-button:not(.tab-disabled)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -2px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.tab-button:not(.tab-disabled):hover::after,
.tab-button:not(.tab-disabled):focus-visible::after {
  transform: scaleX(1);
}

.tab-disabled {
  gap: 7px;
  color: rgba(225, 224, 204, 0.43);
  cursor: default;
}

.tab-disabled small {
  padding: 3px 6px;
  border: 1px solid rgba(225, 224, 204, 0.22);
  border-radius: 999px;
  font-size: 7px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.audio-toggle {
  position: absolute;
  z-index: 10;
  top: 16px;
  right: max(18px, env(safe-area-inset-right));
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(225, 224, 204, 0.18);
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.74);
  color: rgba(225, 224, 204, 0.82);
  cursor: pointer;
  font-size: 11px;
  backdrop-filter: blur(10px);
}

.audio-toggle:hover,
.audio-toggle:focus-visible,
.audio-toggle[aria-pressed="true"] {
  color: var(--cream);
  border-color: rgba(225, 224, 204, 0.42);
}

.audio-toggle [data-audio-icon] {
  font-size: 14px;
}

.video-next {
  position: absolute;
  z-index: 10;
  top: 50%;
  right: max(18px, env(safe-area-inset-right));
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 4px 4px 11px;
  border: 1px solid rgba(225, 224, 204, 0.2);
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.7);
  color: rgba(225, 224, 204, 0.84);
  cursor: pointer;
  font-size: 10px;
  backdrop-filter: blur(10px);
  transform: translateY(-50%);
}

.video-next i {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: rgba(225, 224, 204, 0.14);
  font-style: normal;
  transition: transform 160ms ease;
}

.video-next:hover,
.video-next:focus-visible {
  border-color: rgba(225, 224, 204, 0.45);
  color: var(--cream);
}

.video-next:hover i,
.video-next:focus-visible i {
  transform: translateX(2px);
}

.video-next:disabled {
  cursor: wait;
  opacity: 0.55;
}

.hero-copy {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 370px);
  align-items: end;
  gap: 28px;
  padding:
    0 max(clamp(18px, 3.2vw, 48px), env(safe-area-inset-right))
    max(clamp(10px, 2vw, 30px), env(safe-area-inset-bottom))
    max(clamp(18px, 3.2vw, 48px), env(safe-area-inset-left));
}

.hero-copy h1 {
  margin: 0;
  min-width: 0;
  font-size: clamp(68px, 11.5vw, 210px);
  font-weight: 500;
  line-height: 0.82;
  letter-spacing: -0.075em;
  white-space: nowrap;
}

.hero-note {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: clamp(42px, 4.2vw, 58px);
}

.hero-note p {
  max-width: 370px;
  margin: 0;
  color: rgba(225, 224, 204, 0.78);
  font-size: clamp(13px, 1.25vw, 17px);
  line-height: 1.3;
}

.round-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  align-self: flex-start;
  padding: 4px 4px 4px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--cream);
  color: var(--black);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

.round-link i {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--black);
  color: var(--cream);
  font-style: normal;
  transition: transform 180ms ease;
}

.round-link:hover i,
.round-link:focus-visible i {
  transform: rotate(45deg);
}

.project-layer,
.contact-layer,
.service-layer,
.about-layer {
  position: fixed;
  z-index: 40;
  inset: 0;
  display: grid;
  place-items: center;
  padding:
    max(clamp(16px, 3vw, 46px), env(safe-area-inset-top))
    max(clamp(16px, 3vw, 46px), env(safe-area-inset-right))
    max(clamp(16px, 3vw, 46px), env(safe-area-inset-bottom))
    max(clamp(16px, 3vw, 46px), env(safe-area-inset-left));
}

.project-layer[hidden],
.contact-layer[hidden],
.service-layer[hidden],
.about-layer[hidden] {
  display: none;
}

.layer-backdrop {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(0, 0, 0, 0.72);
  cursor: default;
  backdrop-filter: blur(10px);
}

.project-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.15fr);
  width: min(1180px, 100%);
  min-height: min(700px, 84svh);
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--project-panel);
  color: var(--cream);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.42);
  animation: panel-in 300ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.about-card {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  max-height: min(860px, 92svh);
  overflow-y: auto;
  padding: clamp(30px, 4.5vw, 64px);
  border: 1px solid rgba(225, 224, 204, 0.1);
  border-radius: var(--radius);
  background: #303231;
  color: var(--cream);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.48);
  animation: panel-in 300ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  scrollbar-color: rgba(225, 224, 204, 0.25) transparent;
  scrollbar-width: thin;
}

.about-card::-webkit-scrollbar {
  width: 6px;
}

.about-card::-webkit-scrollbar-track {
  background: transparent;
}

.about-card::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(225, 224, 204, 0.25);
}

.about-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 54px;
}

.about-heading > img {
  width: 42px;
  height: 42px;
  padding: 6px;
  border-radius: 12px;
  background: var(--cream);
  object-fit: contain;
}

.about-heading h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.055em;
}

.about-heading h2 span {
  color: rgba(225, 224, 204, 0.42);
}

.about-intro {
  max-width: 810px;
  margin: clamp(28px, 4vw, 46px) 0 0;
  color: rgba(225, 224, 204, 0.68);
  font-size: clamp(15px, 1.45vw, 18px);
  line-height: 1.55;
}

.about-intro strong {
  color: var(--cream);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 14px;
  margin-top: clamp(30px, 4vw, 48px);
}

.about-module {
  min-width: 0;
  padding: clamp(20px, 2.6vw, 30px);
  border: 1px solid rgba(225, 224, 204, 0.1);
  border-radius: 20px;
  background: rgba(5, 5, 5, 0.2);
}

.module-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.module-heading p,
.module-heading h3 {
  margin: 0;
}

.module-heading p {
  margin-bottom: 2px;
  color: rgba(225, 224, 204, 0.42);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.module-heading h3 {
  font-size: 18px;
  font-weight: 550;
  letter-spacing: -0.025em;
}

.spotify-mark,
.music-mark,
.computer-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
}

.spotify-mark {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.now-playing {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin-top: 34px;
  color: inherit;
  text-decoration: none;
}

.music-mark {
  width: 46px;
  height: 46px;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(225, 224, 204, 0.1);
  color: rgba(225, 224, 204, 0.74);
  font-size: 20px;
}

.music-mark img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.music-mark img[hidden],
.music-mark [data-song-placeholder][hidden] {
  display: none;
}

.now-playing > div {
  min-width: 0;
}

.now-playing strong,
.now-playing span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.now-playing strong {
  font-size: 14px;
  font-weight: 600;
}

.now-playing span {
  margin-top: 4px;
  color: rgba(225, 224, 204, 0.45);
  font-size: 11px;
}

.music-progress {
  margin-top: 22px;
}

.music-progress > div,
.stat-bar {
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(225, 224, 204, 0.12);
}

.music-progress > div span,
.stat-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--cream);
  transition: width 500ms ease;
}

.music-progress > div span {
  background: #1ed760;
}

.music-progress p {
  display: flex;
  justify-content: space-between;
  margin: 7px 0 0;
  color: rgba(225, 224, 204, 0.38);
  font-size: 9px;
}

.queue-block {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(225, 224, 204, 0.09);
}

.queue-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  color: rgba(225, 224, 204, 0.62);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.queue-heading small {
  color: rgba(225, 224, 204, 0.32);
  font-size: 9px;
  letter-spacing: normal;
  text-transform: none;
}

.queue-list {
  display: grid;
  gap: 3px;
  max-height: 142px;
  overflow-y: auto;
  padding-right: 5px;
  overscroll-behavior: contain;
  scrollbar-color: rgba(225, 224, 204, 0.2) transparent;
  scrollbar-width: thin;
}

.queue-list::-webkit-scrollbar {
  width: 4px;
}

.queue-list::-webkit-scrollbar-thumb {
  border-radius: 99px;
  background: rgba(225, 224, 204, 0.2);
}

.queue-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 5px;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  transition: background 160ms ease;
}

.queue-item:hover {
  background: rgba(225, 224, 204, 0.06);
}

.queue-art {
  display: grid;
  width: 30px;
  height: 30px;
  overflow: hidden;
  place-items: center;
  border-radius: 7px;
  background: rgba(225, 224, 204, 0.09);
  color: rgba(225, 224, 204, 0.52);
  font-size: 12px;
}

.queue-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.queue-copy {
  min-width: 0;
}

.queue-copy strong,
.queue-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.queue-copy strong {
  font-size: 10px;
  font-weight: 550;
}

.queue-copy span {
  margin-top: 2px;
  color: rgba(225, 224, 204, 0.4);
  font-size: 9px;
}

.queue-item > small {
  color: rgba(225, 224, 204, 0.26);
  font-size: 8px;
}

.queue-empty {
  margin: 12px 0 4px;
  color: rgba(225, 224, 204, 0.38);
  font-size: 10px;
}

.computer-heading {
  padding-right: 0;
}

.computer-mark {
  width: 36px;
  height: 36px;
  padding: 5px;
  border-radius: 10px;
  background: var(--cream);
}

.computer-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.computer-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 6px 9px;
  border: 1px solid rgba(255, 116, 116, 0.22);
  border-radius: 999px;
  color: rgba(255, 161, 161, 0.82);
  font-size: 9px;
}

.computer-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e95858;
}

.computer-status.is-online {
  border-color: rgba(73, 218, 132, 0.22);
  color: #8ee2ae;
}

.computer-status.is-online i {
  background: #49da84;
  box-shadow: 0 0 9px rgba(73, 218, 132, 0.56);
}

.computer-stats {
  display: grid;
  gap: 20px;
  margin-top: 28px;
}

.computer-stat p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  font-size: 12px;
}

.computer-stat p strong {
  color: rgba(225, 224, 204, 0.66);
  font-size: 10px;
  font-weight: 500;
}

.computer-stat small {
  display: block;
  margin-top: 4px;
  color: rgba(225, 224, 204, 0.4);
  font-size: 9px;
}

.stat-bar {
  margin-top: 9px;
}

.status-note {
  margin: 18px 0 0;
  color: rgba(225, 224, 204, 0.34);
  font-size: 9px;
}

.close-button {
  position: absolute;
  z-index: 4;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.74);
  color: white;
  cursor: pointer;
  font-size: 25px;
  line-height: 1;
}

.project-info {
  position: relative;
  display: grid;
  align-items: center;
  justify-items: start;
  gap: 0;
  min-width: 0;
  padding: clamp(34px, 4.5vw, 70px);
}

.connect-logo {
  position: absolute;
  top: clamp(34px, 4.5vw, 70px);
  left: clamp(34px, 4.5vw, 70px);
  display: block;
  width: 96px;
  height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
}

.project-copy {
  width: 100%;
  max-width: 430px;
}

.project-label {
  margin: 0 0 16px;
  color: rgba(225, 224, 204, 0.52);
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.project-copy h2 {
  margin: 0 0 24px;
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.065em;
}

.project-copy > p:not(.project-label) {
  max-width: 430px;
  margin: 0;
  color: rgba(225, 224, 204, 0.7);
  font-size: clamp(14px, 1.2vw, 17px);
  line-height: 1.55;
}

.project-copy strong {
  color: var(--cream);
}

.project-preview-wrap {
  display: grid;
  min-width: 0;
  place-items: center;
  padding: clamp(38px, 4vw, 64px);
  overflow: hidden;
}

.project-preview {
  position: relative;
  display: block;
  width: 100%;
  transform: none;
  transition: transform 260ms ease, filter 260ms ease;
}

.project-preview::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 8% -3% -5% 8%;
  border-radius: 24px;
  background: rgba(0, 0, 0, 0.15);
  filter: blur(22px);
}

.project-preview img {
  display: block;
  width: 100%;
  max-height: 560px;
  border-radius: clamp(14px, 1.6vw, 24px);
  object-fit: cover;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
}

.project-preview span {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 10px 13px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.78);
  color: white;
  font-size: 11px;
  text-decoration: none;
  backdrop-filter: blur(10px);
}

.project-preview:hover,
.project-preview:focus-visible {
  filter: saturate(1.04);
  transform: none;
}

body.modal-open {
  overflow: hidden;
}

.contact-card {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  padding: clamp(34px, 5vw, 64px);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--panel-text);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.42);
  animation: panel-in 300ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.contact-card > p {
  margin: 0 0 28px;
  color: #5b5c58;
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.contact-card h2 {
  margin: 0 0 22px;
  font-size: clamp(48px, 7vw, 82px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.065em;
}

.contact-card > a {
  display: block;
  width: fit-content;
  color: var(--panel-text);
  font-size: clamp(17px, 2vw, 24px);
  text-underline-offset: 6px;
}

.copy-email {
  margin-top: 28px;
  padding: 11px 15px;
  border: 0;
  border-radius: 999px;
  background: var(--black);
  color: var(--cream);
  cursor: pointer;
  font-size: 12px;
}

.service-card {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  max-height: min(900px, 92svh);
  overflow-y: auto;
  padding: clamp(30px, 4vw, 54px);
  border-radius: var(--radius);
  background: var(--project-panel);
  color: var(--cream);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.48);
  animation: panel-in 300ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.service-heading {
  padding-right: 52px;
}

.service-heading > p {
  margin: 0 0 16px;
  color: rgba(225, 224, 204, 0.5);
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.service-heading h2 {
  margin: 0;
  font-size: clamp(48px, 7vw, 78px);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.065em;
}

.service-heading > span {
  display: block;
  margin-top: 14px;
  color: rgba(225, 224, 204, 0.62);
  font-size: 14px;
}

.upload-form {
  margin-top: clamp(28px, 4vw, 46px);
}

.drop-zone {
  display: grid;
  min-height: 210px;
  place-items: center;
  align-content: center;
  gap: 7px;
  padding: 28px;
  border: 1px dashed rgba(225, 224, 204, 0.32);
  border-radius: 18px;
  background: rgba(5, 5, 5, 0.13);
  cursor: pointer;
  text-align: center;
  transition: border-color 180ms ease, background 180ms ease;
}

.drop-zone:hover,
.drop-zone:focus-visible,
.drop-zone.is-dragging {
  border-color: rgba(225, 224, 204, 0.78);
  background: rgba(5, 5, 5, 0.24);
}

.drop-plus {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 5px;
  place-items: center;
  border-radius: 50%;
  background: var(--cream);
  color: var(--black);
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
}

.drop-zone strong {
  font-size: 17px;
  font-weight: 600;
}

.drop-zone small {
  color: rgba(225, 224, 204, 0.5);
  font-size: 12px;
}

.selected-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(5, 5, 5, 0.22);
}

.selected-file[hidden] {
  display: none;
}

.selected-file div {
  min-width: 0;
}

.selected-file strong,
.selected-file span {
  display: block;
}

.selected-file strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-file span {
  margin-top: 3px;
  color: rgba(225, 224, 204, 0.48);
  font-size: 11px;
}

.selected-file button,
.cancel-upload,
.delete-upload,
.owner-panel button {
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(225, 224, 204, 0.66);
  cursor: pointer;
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.keep-file {
  display: flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  margin-top: 16px;
  color: rgba(225, 224, 204, 0.72);
  cursor: pointer;
  font-size: 12px;
}

.keep-file[hidden] {
  display: none;
}

.keep-file input {
  width: 15px;
  height: 15px;
  accent-color: var(--cream);
}

.upload-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
}

.upload-button,
.owner-access form button,
.result-link-row button {
  padding: 11px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--cream);
  color: var(--black);
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
}

.upload-button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.upload-progress {
  margin-top: 20px;
}

.upload-progress[hidden] {
  display: none;
}

.upload-progress > div {
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(225, 224, 204, 0.16);
}

.upload-progress > div span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--cream);
  transition: width 120ms linear;
}

.upload-progress p {
  display: flex;
  justify-content: space-between;
  margin: 8px 0 0;
  color: rgba(225, 224, 204, 0.52);
  font-size: 10px;
}

.upload-progress p strong {
  color: rgba(225, 224, 204, 0.75);
}

.upload-status {
  min-height: 18px;
  margin: 12px 0 0;
  color: rgba(225, 224, 204, 0.68);
  font-size: 12px;
}

.upload-status.is-error,
.owner-access [data-owner-status].is-error {
  color: #ffb4a9;
}

.upload-result {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid rgba(225, 224, 204, 0.16);
  border-radius: 14px;
  background: rgba(5, 5, 5, 0.18);
}

.upload-result[hidden] {
  display: none;
}

.upload-result > p {
  margin: 0 0 11px;
  color: rgba(225, 224, 204, 0.6);
  font-size: 11px;
}

.result-link-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.result-link-row a {
  min-width: 0;
  overflow: hidden;
  color: var(--cream);
  font-size: 13px;
  text-overflow: ellipsis;
  text-underline-offset: 4px;
  white-space: nowrap;
}

.result-link-row button {
  flex: 0 0 auto;
  padding: 8px 12px;
  font-size: 10px;
}

.delete-upload {
  margin-top: 15px;
}

.owner-access {
  margin-top: 28px;
  border-top: 1px solid rgba(225, 224, 204, 0.13);
  color: rgba(225, 224, 204, 0.6);
}

.owner-access summary {
  width: fit-content;
  padding-top: 20px;
  cursor: pointer;
  font-size: 11px;
  list-style: none;
}

.owner-access summary::-webkit-details-marker {
  display: none;
}

.owner-access summary::after {
  content: " +";
}

.owner-access[open] summary::after {
  content: " −";
}

.owner-access form {
  margin-top: 18px;
}

.owner-access form > label {
  display: block;
  margin-bottom: 7px;
  font-size: 10px;
}

.owner-access form > div {
  display: flex;
  gap: 9px;
}

.owner-access input[type="password"] {
  min-width: 0;
  flex: 1;
  padding: 11px 13px;
  border: 1px solid rgba(225, 224, 204, 0.2);
  border-radius: 999px;
  outline: 0;
  background: rgba(5, 5, 5, 0.24);
  color: var(--cream);
  font: inherit;
  font-size: 12px;
}

.owner-access input[type="password"]:focus {
  border-color: rgba(225, 224, 204, 0.68);
}

.owner-access [data-owner-status] {
  min-height: 16px;
  margin: 8px 0 0;
  font-size: 11px;
}

.owner-panel {
  margin-top: 18px;
  padding: 17px;
  border-radius: 14px;
  background: rgba(5, 5, 5, 0.2);
}

.owner-panel[hidden] {
  display: none;
}

.owner-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.owner-panel-head strong,
.owner-panel-head span {
  display: block;
}

.owner-panel-head strong {
  color: var(--cream);
  font-size: 13px;
}

.owner-panel-head span {
  margin-top: 3px;
  font-size: 10px;
}

.owner-files {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.owner-file {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(225, 224, 204, 0.1);
}

.owner-file a,
.owner-file small {
  display: block;
}

.owner-file a {
  overflow: hidden;
  color: var(--cream);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner-file small {
  margin-top: 3px;
  color: rgba(225, 224, 204, 0.4);
  font-size: 9px;
}

.service-limits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.service-limits span {
  padding: 5px 8px;
  border: 1px solid rgba(225, 224, 204, 0.14);
  border-radius: 999px;
  color: rgba(225, 224, 204, 0.44);
  font-size: 9px;
}

:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 4px;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 900px) {
  .top-tabs {
    gap: 20px;
    padding-inline: 21px;
    border-radius: 0 0 18px 18px;
  }

  .tab-disabled small {
    display: none;
  }

  .tab-disabled::after {
    content: "Soon";
    margin-left: 5px;
    font-size: 7px;
    text-transform: uppercase;
  }

  .audio-toggle {
    top: 58px;
    right: 14px;
  }

  .video-next {
    right: 12px;
  }

  .hero-copy {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-bottom: max(18px, env(safe-area-inset-bottom));
  }

  .hero-copy h1 {
    grid-row: 2;
    font-size: clamp(58px, 16.5vw, 148px);
    line-height: 0.84;
  }

  .hero-note {
    grid-row: 1;
    gap: 14px;
    max-width: 310px;
    padding-bottom: 0;
  }

  .project-layer,
  .contact-layer,
  .service-layer,
  .about-layer {
    overflow-y: auto;
    place-items: start center;
    padding:
      max(12px, env(safe-area-inset-top))
      max(12px, env(safe-area-inset-right))
      max(12px, env(safe-area-inset-bottom))
      max(12px, env(safe-area-inset-left));
    overscroll-behavior: contain;
  }

  .about-card {
    width: 100%;
    max-height: none;
    padding: 30px 22px;
  }

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

  .service-card {
    width: 100%;
    max-height: none;
    padding: 30px 22px;
  }

  .contact-card {
    width: 100%;
    margin-block: auto;
  }

  .drop-zone {
    min-height: 180px;
  }

  .project-card {
    grid-template-columns: 1fr;
    width: 100%;
    min-height: auto;
    overflow: hidden;
  }

  .project-info {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 44px;
    padding: 38px 28px 34px;
  }

  .connect-logo {
    position: static;
    width: 82px;
    height: auto;
  }

  .project-preview-wrap {
    padding: 8px 22px 30px;
  }

  .project-preview {
    width: 100%;
    transform: none;
  }
}

@media (max-width: 480px) {
  .top-tabs {
    width: calc(100% - 24px);
    justify-content: space-between;
    gap: 9px;
    padding: 8px 13px 10px;
  }

  .tab-button {
    min-height: 38px;
    font-size: 10px;
  }

  .audio-toggle {
    top: max(66px, calc(env(safe-area-inset-top) + 56px));
    right: max(12px, env(safe-area-inset-right));
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
  }

  .audio-toggle [data-audio-label] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .video-next {
    right: max(10px, env(safe-area-inset-right));
    width: 40px;
    height: 40px;
    justify-content: center;
    padding: 0;
  }

  .video-next > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .video-next i {
    width: auto;
    height: auto;
    background: transparent;
  }

  .hero-copy h1 {
    font-size: clamp(46px, 16.5vw, 79px);
    letter-spacing: -0.08em;
  }

  .hero-note p {
    font-size: 13px;
  }

  .project-copy h2 {
    font-size: clamp(44px, 15vw, 54px);
  }

  .about-heading > img {
    width: 36px;
    height: 36px;
  }

  .about-heading h2 {
    font-size: clamp(28px, 9vw, 34px);
  }

  .about-card,
  .service-card {
    padding: 24px 16px;
  }

  .about-heading,
  .service-heading {
    padding-right: 44px;
  }

  .about-module {
    padding: 18px 15px;
    border-radius: 16px;
  }

  .computer-status {
    padding: 6px 7px;
  }

  .queue-list {
    max-height: 168px;
  }

  .project-info {
    gap: 34px;
    padding: 28px 20px 24px;
  }

  .project-preview-wrap {
    padding: 4px 14px 18px;
  }

  .project-preview span {
    right: 9px;
    bottom: 9px;
    padding: 8px 10px;
    font-size: 10px;
  }

  .contact-card {
    padding: 30px 20px;
  }

  .contact-card h2,
  .service-heading h2 {
    font-size: clamp(40px, 14vw, 52px);
  }

  .contact-card > a {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .close-button {
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
  }

  .drop-zone {
    min-height: 150px;
    padding: 20px 14px;
  }

  .result-link-row,
  .owner-access form > div {
    align-items: stretch;
    flex-direction: column;
  }

  .result-link-row button,
  .owner-access form button {
    align-self: flex-start;
  }

  .selected-file {
    gap: 10px;
    padding-inline: 12px;
  }
}

@media (max-width: 350px) {
  .top-tabs {
    gap: 5px;
    padding-inline: 10px;
  }

  .tab-button {
    font-size: 9px;
  }

  .hero-note {
    max-width: 250px;
  }

  .hero-note p {
    font-size: 12px;
  }

  .round-link {
    padding-left: 14px;
    font-size: 12px;
  }

  .about-heading > img,
  .spotify-mark,
  .computer-mark {
    width: 32px;
    height: 32px;
  }

  .computer-status {
    gap: 4px;
    font-size: 8px;
  }
}

@media (max-height: 560px) and (min-width: 600px) {
  .top-tabs {
    padding-top: 6px;
    padding-bottom: 7px;
  }

  .audio-toggle {
    top: 10px;
  }

  .hero-copy {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
    gap: 22px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }

  .hero-copy h1 {
    grid-row: auto;
    font-size: clamp(66px, 11vw, 112px);
  }

  .hero-note {
    grid-row: auto;
    gap: 10px;
    padding-bottom: 18px;
  }

  .hero-note p {
    font-size: 12px;
  }

  .round-link {
    font-size: 11px;
  }

  .round-link i {
    width: 30px;
    height: 30px;
  }

  .about-card,
  .service-card {
    max-height: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video {
    display: none;
  }

  .project-card,
  .about-card,
  .project-preview,
  .round-link i {
    animation: none;
    transition: none;
  }
}
