: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%;
}

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

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

.site-shell {
  position: relative;
  min-height: 100svh;
  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);
  padding: 10px 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: 18px;
  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;
}

.hero-copy {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 0.72fr);
  align-items: end;
  gap: 28px;
  padding: 0 clamp(18px, 3.2vw, 48px) clamp(10px, 2vw, 30px);
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(76px, 15vw, 250px);
  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(8px, 2.4vw, 32px);
}

.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 {
  position: fixed;
  z-index: 40;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(16px, 3vw, 46px);
}

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

.layer-backdrop {
  position: absolute;
  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;
}

.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: 820px) {
  .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;
  }

  .hero-copy {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-bottom: 24px;
  }

  .hero-copy h1 {
    font-size: clamp(70px, 20.5vw, 160px);
    line-height: 0.84;
  }

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

  .project-layer {
    overflow-y: auto;
    place-items: start center;
  }

  .service-layer {
    overflow-y: auto;
    place-items: start center;
    padding: 12px;
  }

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

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

  .project-card {
    grid-template-columns: 1fr;
    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: 12px;
    padding: 8px 15px 10px;
  }

  .hero-copy h1 {
    font-size: clamp(64px, 19.7vw, 94px);
    letter-spacing: -0.08em;
  }

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

  .project-copy h2 {
    font-size: 54px;
  }
}

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

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