.project-viewer,
.app-sheet,
.contact-layer {
  position: fixed;
  inset: 0;
  z-index: 72;
  color: #fff;
}

.project-viewer[hidden],
.app-sheet[hidden],
.contact-layer[hidden] {
  display: none;
}

.project-viewer:not([hidden]),
.app-sheet:not([hidden]),
.contact-layer:not([hidden]) {
  animation: layerFade 180ms ease both;
}

.project-viewer {
  --viewer-media-top: clamp(112px, 16vh, 150px);
  --viewer-media-width: min(110vw, 760px);
  --viewer-media-height: min(56vh, 76vw);
  --viewer-nav-top: clamp(282px, 35vh, 360px);
  --viewer-caption-top: clamp(430px, 54vh, 512px);
  --viewer-image-position: center;
  --viewer-backdrop-position: center;
  --viewer-image-filter: none;
  isolation: isolate;
  overflow: hidden;
  overflow-anchor: none;
  background: #050607;
  touch-action: pan-y;
}

.project-viewer::before {
  position: absolute;
  inset: 0;
  z-index: 2;
  content: "";
  pointer-events: none;
  opacity: 1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.22) 24%, rgba(0, 0, 0, 0.12) 48%, rgba(0, 0, 0, 0.78) 100%),
    radial-gradient(circle at 50% 33%, transparent 0, rgba(0, 0, 0, 0.1) 52%, rgba(0, 0, 0, 0.42) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.28), transparent 20%, transparent 80%, rgba(0, 0, 0, 0.28));
  transition: opacity 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.project-viewer::after {
  position: absolute;
  inset: -8%;
  z-index: 0;
  content: "";
  pointer-events: none;
  background-image: var(--project-image);
  background-position: var(--viewer-backdrop-position);
  background-size: cover;
  opacity: 0.48;
  filter: blur(28px) saturate(0.82) brightness(0.55);
  transform: scale(1.08);
}

.contact-layer {
  z-index: 78;
  display: grid;
  place-items: center;
  min-height: 100vh;
  overflow: hidden;
  padding: max(28px, env(safe-area-inset-top)) 24px max(28px, env(safe-area-inset-bottom));
  background:
    linear-gradient(180deg, rgba(44, 38, 32, 0.7), rgba(62, 52, 43, 0.54)),
    rgba(23, 19, 16, 0.54);
  backdrop-filter: blur(30px) saturate(82%);
  -webkit-backdrop-filter: blur(30px) saturate(82%);
}

.contact-layer::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 18% 88%, rgba(102, 142, 126, 0.38), transparent 20rem),
    radial-gradient(circle at 76% 90%, rgba(42, 108, 151, 0.42), transparent 18rem),
    radial-gradient(circle at 62% 30%, rgba(130, 103, 82, 0.34), transparent 22rem);
  opacity: 0.86;
  pointer-events: none;
}

.wechat-screen-title {
  position: absolute;
  top: max(44px, env(safe-area-inset-top));
  left: 50%;
  z-index: 2;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0;
  transform: translateX(-50%);
}

.wechat-card-image {
  position: relative;
  z-index: 1;
  width: min(430px, calc(100vw - 180px));
  max-height: 72vh;
  border-radius: 28px;
  object-fit: contain;
  box-shadow:
    0 26px 76px rgba(0, 0, 0, 0.28),
    0 1px 0 rgba(255, 255, 255, 0.3);
}

.wechat-side-actions {
  position: absolute;
  top: 50%;
  right: clamp(18px, calc(50vw - 338px), 92px);
  z-index: 2;
  display: grid;
  gap: 96px;
  transform: translateY(-50%);
}

.wechat-round-action {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.wechat-round-action:last-child {
  background: rgba(255, 255, 255, 0.88);
  color: rgba(93, 80, 70, 0.82);
}

.wechat-round-action svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.phone-number {
  position: absolute;
  top: 26%;
  left: 50%;
  z-index: 1;
  width: min(92vw, 680px);
  margin: 0;
  color: #fff;
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  transform: translateX(-50%);
}

.phone-action-row {
  position: absolute;
  top: 47%;
  left: 50%;
  z-index: 1;
  display: flex;
  gap: 74px;
  align-items: start;
  justify-content: center;
  transform: translateX(-50%);
}

.phone-action {
  display: grid;
  min-width: 112px;
  gap: 14px;
  justify-items: center;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0;
}

.phone-action-orb {
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.16);
}

.phone-action.dial .phone-action-orb {
  background: #17c83e;
}

.phone-action.copy .phone-action-orb {
  background: rgba(255, 255, 255, 0.16);
}

.phone-action.exit .phone-action-orb {
  background: #ff453f;
}

.phone-action-orb svg,
.phone-action-orb img {
  width: 42px;
  height: 42px;
}

.phone-action-orb img {
  object-fit: contain;
}

.phone-action-orb svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.35;
}

.phone-action-orb .phone-glyph-solid {
  fill: currentColor;
  stroke: none;
}

.viewer-close,
.viewer-nav,
.sheet-close {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.viewer-close {
  position: absolute;
  top: max(34px, env(safe-area-inset-top));
  left: 28px;
  z-index: 5;
  width: 56px;
  height: 56px;
}

.viewer-close svg,
.viewer-nav svg,
.sheet-close svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.project-counter {
  position: absolute;
  top: max(46px, env(safe-area-inset-top));
  right: 28px;
  z-index: 5;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
  font-weight: 800;
}

.project-frame {
  position: absolute;
  top: var(--viewer-media-top);
  left: 50%;
  z-index: 1;
  width: var(--viewer-media-width);
  height: var(--viewer-media-height);
  margin: 0;
  overflow: hidden;
  background: #05070a;
  transform: translateX(-50%);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.42);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 62%, rgba(0, 0, 0, 0.74) 76%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 62%, rgba(0, 0, 0, 0.74) 76%, transparent 100%);
}

.project-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--viewer-image-position);
  filter: var(--viewer-image-filter);
  transition: transform 260ms ease, opacity 220ms ease;
}

.project-viewer[data-project-key="h5-01"] {
  --viewer-image-position: center 12%;
  --viewer-backdrop-position: center 14%;
  --viewer-image-filter: brightness(0.92) saturate(0.94) contrast(1.06);
  --viewer-caption-top: clamp(452px, 56vh, 528px);
}

.project-viewer[data-project-key="h5-02"] {
  --viewer-image-position: center 32%;
  --viewer-backdrop-position: center 43%;
  --viewer-image-filter: brightness(1.46) saturate(1.2) contrast(1.08);
}

.project-viewer[data-project-key="h5-01"]::before,
.project-viewer[data-project-key="h5-02"]::before {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0.16) 24%, rgba(0, 0, 0, 0.08) 48%, rgba(0, 0, 0, 0.8) 100%),
    radial-gradient(circle at 50% 33%, transparent 0, rgba(0, 0, 0, 0.08) 52%, rgba(0, 0, 0, 0.36) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.24), transparent 20%, transparent 80%, rgba(0, 0, 0, 0.24));
}

.project-viewer[data-project-key="h5-01"] .project-caption h2,
.project-viewer[data-project-key="h5-02"] .project-caption h2 {
  font-size: clamp(2.28rem, 8.7vw, 3.38rem);
}

.project-viewer.is-changing .project-frame img {
  opacity: 0.22;
  transform: scale(1.04);
}

.viewer-nav {
  position: absolute;
  top: var(--viewer-nav-top);
  z-index: 5;
  width: 68px;
  height: 96px;
  color: rgba(255, 255, 255, 0.82);
  transform: translateY(-50%);
}

.viewer-prev {
  left: 0;
}

.viewer-next {
  right: 0;
}

.project-viewer .viewer-close,
.project-viewer .viewer-nav {
  --liquid-rest-edge-glint: 0.07;
  --liquid-core-alpha: 0.06;
  --liquid-ring-alpha: 0.022;
  --liquid-mid-alpha: 0.007;
  --liquid-tail-alpha: 0.002;
  --liquid-hover-core-glint: 0;
  --liquid-hover-edge-glint: 0.22;
  --liquid-press-core-glint: 0.01;
  --liquid-press-edge-glint: 0.32;
  --liquid-touch-core-glint: 0.008;
  --liquid-touch-edge-glint: 0.28;
  --liquid-hover-brightness: 1;
  --liquid-hover-saturation: 1;
  --liquid-hover-y: 0px;
  --liquid-hover-scale: 1.002;
  --liquid-press-scale: 0.985;
  border: 0;
  background: rgba(255, 255, 255, 0.012);
  color: rgba(255, 255, 255, 0.86);
  box-shadow:
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.15),
    inset 0 1px 1px rgba(255, 255, 255, 0.16),
    inset 0 -1px 2px rgba(0, 0, 0, 0.2),
    0 3px 10px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(3px) saturate(120%) contrast(108%) brightness(1.01);
  -webkit-backdrop-filter: blur(3px) saturate(120%) contrast(108%) brightness(1.01);
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 160ms cubic-bezier(0.2, 0.72, 0.18, 1),
    filter 180ms ease,
    background 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.project-viewer .viewer-close {
  --liquid-base-transform: translateZ(0);
  --liquid-rest-edge-glint: 0.055;
  --liquid-hover-edge-glint: 0.16;
  --liquid-press-edge-glint: 0.24;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.01);
  opacity: 0.78;
  transform: var(--liquid-base-transform);
}

.project-viewer .viewer-nav {
  --liquid-base-transform: translateY(-50%);
  --liquid-rest-edge-glint: 0.08;
  --liquid-hover-edge-glint: 0.2;
  --liquid-press-edge-glint: 0.3;
  width: 36px;
  height: 36px;
  opacity: 0.86;
  transform: var(--liquid-base-transform);
}

.project-viewer .viewer-close svg,
.project-viewer .viewer-nav svg {
  position: relative;
  z-index: 1;
  width: 21px;
  height: 21px;
  stroke-width: 2.3;
}

.project-viewer .viewer-close svg {
  width: 21px;
  height: 21px;
  filter:
    drop-shadow(0 2px 8px rgba(0, 0, 0, 0.72))
    drop-shadow(0 0 1px rgba(255, 255, 255, 0.18));
  transition:
    color 160ms ease,
    filter 160ms ease,
    transform 160ms cubic-bezier(0.2, 0.72, 0.18, 1);
}

.project-viewer .viewer-nav svg {
  width: 22px;
  height: 22px;
  color: rgba(255, 255, 255, 0.9);
  filter:
    drop-shadow(0 2px 8px rgba(0, 0, 0, 0.72))
    drop-shadow(0 0 1px rgba(255, 255, 255, 0.18));
  transition:
    color 160ms ease,
    filter 160ms ease,
    transform 160ms cubic-bezier(0.2, 0.72, 0.18, 1);
}

.project-viewer .viewer-prev {
  left: 18px;
  padding: 0;
  place-items: center;
}

.project-viewer .viewer-next {
  right: 18px;
  padding: 0;
  place-items: center;
}

@media (hover: hover) and (pointer: fine) {
  .project-viewer .viewer-close:hover {
    background: rgba(255, 255, 255, 0.016);
    color: rgba(255, 255, 255, 0.9);
    filter: none;
    box-shadow:
      inset 0 0 0 0.5px rgba(255, 255, 255, 0.24),
      inset 0 1px 1px rgba(255, 255, 255, 0.24),
      inset 0 -1px 2px rgba(0, 0, 0, 0.2),
      0 4px 12px rgba(0, 0, 0, 0.08);
    opacity: 0.9;
  }

  .project-viewer .viewer-nav:hover {
    background: rgba(255, 255, 255, 0.018);
    color: rgba(255, 255, 255, 0.92);
    filter: none;
    box-shadow:
      inset 0 0 0 0.5px rgba(255, 255, 255, 0.26),
      inset 0 1px 1px rgba(255, 255, 255, 0.26),
      inset 0 -1px 2px rgba(0, 0, 0, 0.22),
      0 4px 12px rgba(0, 0, 0, 0.08);
    opacity: 0.96;
  }

  .project-viewer .viewer-close:hover svg {
    transform: translateX(-2px);
  }

  .project-viewer .viewer-prev:hover svg {
    transform: translateX(-2px);
  }

  .project-viewer .viewer-next:hover svg {
    transform: translateX(2px);
  }
}

.project-viewer .viewer-close:active:not(.liquid-icon-control) {
  transform: scale(0.985);
}

.project-viewer .viewer-nav:active:not(.liquid-icon-control) {
  transform: translateY(-50%) scale(0.985);
}

.project-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  top: var(--viewer-caption-top);
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(26px, 3.8vh, 34px) 42px max(24px, env(safe-area-inset-bottom));
  background:
    linear-gradient(
      180deg,
      rgba(5, 6, 7, 0) 0%,
      rgba(5, 6, 7, 0.3) 20%,
      rgba(5, 6, 7, 0.76) 50%,
      rgba(5, 6, 7, 0.96) 100%
    );
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.project-viewer.is-playing::before {
  opacity: 0;
}

.project-viewer.is-playing {
  display: grid;
  grid-template-rows: max(var(--viewer-media-top), clamp(72px, 8vh, 104px)) auto auto 1fr;
  justify-items: center;
  align-content: start;
  overflow-x: hidden;
  overflow-y: auto;
}

.project-viewer.is-playing .project-frame {
  position: relative;
  top: auto;
  left: auto;
  grid-row: 2;
  width: var(--viewer-media-width);
  height: var(--viewer-media-height);
  transform: none;
  -webkit-mask-image: none;
  mask-image: none;
}

.project-viewer.is-playing .project-caption {
  position: relative;
  inset: auto;
  grid-row: 3;
  display: flex;
  box-sizing: border-box;
  width: min(100vw, var(--viewer-media-width));
  padding: clamp(18px, 2.4vh, 22px) 42px max(28px, env(safe-area-inset-bottom));
  background: none;
  transform: none;
}

.project-viewer.is-playing .project-caption h2,
.project-viewer.is-playing .project-kicker,
.project-viewer.is-playing .project-description,
.project-viewer.is-playing .project-result,
.project-viewer.is-playing .project-tags,
.project-viewer.is-playing .project-play {
  display: none;
}

.project-viewer.is-playing .project-highlight {
  max-width: 680px;
  margin: 0;
  padding-top: 0;
  border-top: 0;
}

.project-kicker,
.sheet-kicker {
  margin: 0 0 6px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.project-caption h2,
.sheet-card h2 {
  margin: 0;
  font-size: clamp(2.46rem, 9.4vw, 3.7rem);
  line-height: 1;
}

.sheet-card h2 {
  grid-column: 2;
  grid-row: 2;
  max-width: calc(100% - 26px);
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.28rem, 4vw, 1.5rem);
  font-weight: 760;
  letter-spacing: 0;
  line-height: 1.04;
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.58),
    0 10px 26px rgba(0, 0, 0, 0.26);
}

.project-description,
.sheet-description {
  max-width: 520px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1rem;
  line-height: 1.5;
}

.project-result,
.project-highlight {
  max-width: 520px;
  margin: 13px 0 0;
  padding-top: 11px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.project-result-label,
.project-highlight-label {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
}

.project-result-copy,
.project-highlight-copy {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  line-height: 1.5;
}

.sheet-description {
  grid-column: 1 / -1;
  max-width: none;
  min-height: 2.8em;
  margin: 8px 0 40px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  line-height: 1.4;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.project-tags,
.sheet-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.sheet-tags {
  display: none;
}

.project-tags span,
.sheet-tags span {
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.74rem;
  font-weight: 800;
}

.sheet-tags span {
  padding: 4px 7px;
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.68rem;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.42);
}

.sheet-card[data-action-count="2"] .sheet-description {
  position: absolute;
  grid-column: auto;
  grid-row: auto;
  right: 15px;
  left: 15px;
  top: 92px;
  bottom: auto;
  margin: 0;
  min-height: 0;
  max-height: 1.34em;
  overflow: hidden;
  display: block;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 0.78rem;
  line-height: 1.34;
}

.sheet-card[data-action-count="2"] .sheet-icon {
  position: absolute;
  grid-column: auto;
  grid-row: auto;
  top: 17px;
  left: 15px;
}

.sheet-card[data-action-count="2"] .sheet-kicker {
  position: absolute;
  grid-column: auto;
  grid-row: auto;
  top: 29px;
  left: 74px;
  margin: 0;
}

.sheet-card[data-action-count="2"] h2 {
  position: absolute;
  grid-column: auto;
  grid-row: auto;
  top: 49px;
  left: 74px;
  max-width: calc(100% - 122px);
}

.sheet-card[data-action-count="2"] .sheet-tags {
  display: none;
}

.sheet-card[data-action-count="2"] .sheet-tags span {
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.66rem;
  font-weight: 760;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.45);
}

.sheet-card[data-action-count="2"] .sheet-actions {
  right: 15px;
  bottom: 14px;
}

.sheet-card[data-action-count="2"] .sheet-action {
  min-width: 0;
  flex: 1 1 0;
  height: 30px;
  padding: 0 10px;
}

.project-play,
.sheet-action {
  min-width: 116px;
  height: 42px;
  margin-top: 18px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #171717;
  font-size: 0.96rem;
  font-weight: 900;
}

.project-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 126px;
  height: 40px;
  margin-top: 18px;
  padding: 0 20px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 10px 24px rgba(0, 0, 0, 0.18);
  transition:
    transform 160ms cubic-bezier(0.2, 0.72, 0.18, 1),
    background 160ms ease,
    box-shadow 160ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .project-play:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.92);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.58),
      0 12px 28px rgba(0, 0, 0, 0.2);
  }
}

.sheet-action {
  min-width: 150px;
  height: 31px;
  margin-top: 0;
  padding: 0 18px;
  border: 0;
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.88);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 0.76rem;
  font-weight: 760;
  letter-spacing: 0;
  line-height: 1;
  text-overflow: ellipsis;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.34);
  white-space: nowrap;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(14px) saturate(108%);
  -webkit-backdrop-filter: blur(14px) saturate(108%);
  transition:
    transform 160ms cubic-bezier(0.2, 0.72, 0.18, 1),
    color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
  will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
  .sheet-action:hover {
    transform: scale(1.012);
    background: rgba(255, 255, 255, 0.13);
    color: rgba(255, 255, 255, 0.94);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.14),
      inset 0 -1px 0 rgba(0, 0, 0, 0.14);
  }
}

.sheet-action:active:not(.liquid-icon-control) {
  transform: scale(0.985);
}

.app-sheet {
  z-index: 76;
  display: block;
  padding: 0;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(4px) saturate(88%) brightness(0.94);
  -webkit-backdrop-filter: blur(4px) saturate(88%) brightness(0.94);
}

body.is-sheet-open .tools-panel {
  pointer-events: none;
}

body.is-sheet-open .tools-panel .lg-content {
  opacity: 0;
  filter: none;
}

.sheet-card {
  z-index: 1;
  --lg-tr: 13%;
  --lg-inner-gap: 2px;
  --liquid-depth: 18;
  --liquid-chromatic-aberration: 0.32;
  --liquid-strength: 68;
  --liquid-center-warp: 0.06;
  --liquid-blur: 0.25;
  --liquid-brightness: 1;
  --liquid-saturate: 1.06;
  --liquid-opacity: 0.32;
  --liquid-press-strength: 78;
  --liquid-press-center-warp: 0.08;
  --liquid-press-opacity: 0.34;
  --press-half: 36px;
  --press-soft: 10px;
  position: absolute;
  left: var(--sheet-left, 50%);
  top: var(--sheet-top, 50%);
  width: min(calc(100vw - 44px), var(--sheet-width, 492px));
  height: var(--sheet-height, auto);
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-radius: 34px;
  background: transparent;
  border-color: transparent;
  transform: var(--sheet-transform, translate(-50%, -50%));
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  animation: sheetUp 240ms cubic-bezier(0.2, 0.72, 0.18, 1) both;
}

.sheet-card.glass-panel::before {
  opacity: 0;
}

.sheet-card.glass-panel::after {
  opacity: 0;
}

.sheet-card.glass-panel[data-liquid-distort] .lg-overlay-bg {
  display: none;
}

.sheet-card.glass-panel[data-liquid-distort] .lg-filter-layer {
  display: none;
}

.sheet-card.glass-panel[data-liquid-distort] .lg-overlay-bg::after {
  border-color: rgba(255, 255, 255, 0.12);
  opacity: 0;
}

.sheet-card .lg-content {
  position: relative;
  inset: auto;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  column-gap: 11px;
  width: auto;
  min-height: 0;
  height: 100%;
  box-sizing: border-box;
  padding: 15px 15px 14px;
  overflow: hidden;
  border-radius: 34px;
}

.sheet-close {
  position: absolute;
  top: 11px;
  right: 11px;
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.09);
}

.sheet-close svg {
  width: 19px;
  height: 19px;
  stroke-width: 2.2;
}

.sheet-icon {
  grid-column: 1;
  grid-row: 1 / span 2;
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  margin: 0;
  overflow: hidden;
  border-radius: 15px;
}

.sheet-icon svg,
.sheet-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sheet-icon.contact {
  background: linear-gradient(145deg, #19e871, #05be4c);
}

.sheet-icon.profile {
  background: linear-gradient(145deg, #48d8ff, #0a84ff 62%, #006de4);
}

.sheet-icon.phone {
  background: linear-gradient(145deg, #30f65b, #06c52b 60%, #00a817);
}

.sheet-icon.contact svg,
.sheet-icon.profile svg,
.sheet-icon.phone svg {
  width: 62%;
  height: 62%;
  fill: #fff;
}

.sheet-actions {
  position: absolute;
  left: 15px;
  bottom: 14px;
  grid-column: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0;
}

.sheet-kicker {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  margin: 1px 34px 4px 0;
  font-size: 0.68rem;
}

@keyframes layerFade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes sheetUp {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.contact-toast {
  position: fixed;
  left: 50%;
  bottom: max(34px, env(safe-area-inset-bottom));
  z-index: 80;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(18, 18, 18, 0.78);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity 180ms ease, transform 180ms ease;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.contact-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (min-width: 900px) and (min-height: 620px) {
  .project-viewer {
    --viewer-media-top: 0px;
    --viewer-media-width: min(64vw, 1040px);
    --viewer-media-height: auto;
    --viewer-nav-top: clamp(286px, 34vh, 390px);
    display: grid;
    grid-template-rows: clamp(72px, 8vh, 104px) auto auto 1fr;
    justify-items: center;
    align-content: start;
    padding: 0 clamp(72px, 8vw, 160px);
  }

  .project-frame {
    position: relative;
    top: auto;
    left: auto;
    grid-row: 2;
    width: var(--viewer-media-width);
    height: auto;
    aspect-ratio: 16 / 9;
    transform: none;
  }

  .project-caption {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    grid-row: 3;
    width: var(--viewer-media-width);
    padding: clamp(18px, 2.5vh, 28px) 0 0;
    background: none;
    transform: none;
  }

  .project-viewer:not(.is-playing) .project-caption {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    column-gap: 24px;
  }

  .project-viewer:not(.is-playing) .project-kicker,
  .project-viewer:not(.is-playing) .project-caption h2,
  .project-viewer:not(.is-playing) .project-description,
  .project-viewer:not(.is-playing) .project-result {
    grid-column: 1 / -1;
  }

  .project-viewer:not(.is-playing) .project-tags {
    grid-column: 1;
    align-self: center;
  }

  .project-viewer:not(.is-playing) .project-play {
    grid-column: 2;
    align-self: end;
    margin-top: 14px;
  }

  .project-caption h2 {
    font-size: clamp(2.7rem, 4.1vw, 4.35rem);
  }

  .project-description {
    max-width: 680px;
  }

  .project-highlight {
    max-width: 680px;
  }

  .project-result {
    max-width: 680px;
  }

  .project-tags {
    margin-top: 14px;
  }

  .project-play {
    margin-top: 20px;
  }

  .project-viewer.is-playing .project-caption {
    display: block;
    width: var(--viewer-media-width);
    padding: clamp(18px, 2.4vh, 22px) 0 clamp(24px, 3.2vh, 30px);
  }

  .project-viewer .viewer-prev {
    left: clamp(24px, 3.8vw, 76px);
  }

  .project-viewer .viewer-next {
    right: clamp(24px, 3.8vw, 76px);
  }

  .project-viewer[data-project-key="h5-01"],
  .project-viewer[data-project-key="h5-02"] {
    --viewer-media-width: min(38vw, 460px);
  }

  .project-viewer[data-project-key="h5-01"] .project-frame,
  .project-viewer[data-project-key="h5-02"] .project-frame {
    max-height: 62vh;
    aspect-ratio: 2 / 3;
  }

  .project-viewer[data-project-key="h5-01"] .project-caption,
  .project-viewer[data-project-key="h5-02"] .project-caption {
    width: min(56vw, 640px);
  }
}

