:root { --paper: #fff; --ink: #252525; --quiet: #777; }

* { box-sizing: border-box; }

html, body { width: 100%; min-height: 100%; margin: 0; background: var(--paper); }

body { color: var(--ink); font-family: Vazirmatn, Arial, sans-serif; -webkit-font-smoothing: antialiased; }

.holding-page {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--paper);
}

.scene {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: 100%;
}

.reference-composition {
  --edge-left: 0px;
  --edge-right: 100%;
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  overflow: hidden;
  isolation: isolate;
}

/* The supplied 16:9 / 9:16 compositions are the geometry source of truth. */
.reference-composition::before,
.reference-composition::after {
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  display: block;
  content: "";
  background-repeat: repeat-x;
  background-position: center top;
  background-size: 1px 100%;
}

/* Extend each actual outer pixel of the supplied composition to its own side.
   The two fills meet the centered reference image exactly, without a seam. */
.reference-composition::before {
  left: 0;
  width: var(--edge-left);
  right: auto;
  background-image: url("brand/desk-edge-left-landscape.png");
}

.reference-composition::after {
  left: var(--edge-right);
  right: 0;
  background-image: url("brand/desk-edge-right-landscape.png");
}

.reference-layer {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 50%;
  display: block;
  width: auto;
  height: 100%;
  transform: translateX(-50%);
  transition: opacity 280ms ease-in-out;
  will-change: opacity;
}

.reference-portrait {
  opacity: 0;
}

/* This is pure white below the desk only; it replaces the reference placeholders. */
.footer-wash {
  display: none;
}

.brand-subtitle {
  position: absolute;
  z-index: 2;
  top: 26.6%;
  left: 50%;
  width: max-content;
  margin: 0;
  transform: translateX(-50%);
  color: var(--quiet);
  font-family: Arial, sans-serif;
  font-size: min(1.1svh, 12px);
  font-weight: 400;
  letter-spacing: .18em;
  line-height: 1;
  white-space: nowrap;
}

.platforms {
  position: absolute;
  z-index: 2;
  top: 88.5%;
  left: 50%;
  bottom: auto;
  width: min(92vw, 620px);
  transform: translateX(-50%);
  text-align: center;
  opacity: 0;
  animation: arrive .65s ease .35s forwards;
}

.platforms p {
  margin: 0 0 min(1.4svh, 15px);
  color: var(--quiet);
  font-size: min(1.2svh, 13px);
  font-weight: 300;
  line-height: 1.5;
  white-space: nowrap;
}

.platforms nav { display: flex; align-items: center; justify-content: center; gap: min(1.6svh, 18px); direction: ltr; }

.platform-link {
  display: grid;
  place-items: center;
  width: min(1.7svh, 18px);
  height: min(1.7svh, 18px);
  color: var(--ink);
  text-decoration: none;
  transition: opacity .2s ease, transform .2s ease;
}

.platform-link:hover, .platform-link:focus-visible { opacity: .55; transform: translateY(-2px); outline: none; }

.platform-icon {
  display: block;
  width: 100%;
  height: 100%;
  background-color: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

.icon-instagram { --icon: url("icons/instagram.svg"); }
.icon-youtube { --icon: url("icons/youtube.svg"); }
.icon-telegram { --icon: url("icons/telegram.svg"); }
.icon-spotify { --icon: url("icons/spotify.svg"); }
.icon-apple-music { --icon: url("icons/apple-music.svg"); }
.icon-soundcloud { --icon: url("icons/soundcloud.svg"); }
.icon-facebook { --icon: url("icons/facebook.svg"); }
.icon-x { --icon: url("icons/x.svg"); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes arrive { to { opacity: 1; } }

@media (orientation: portrait) {
  .reference-composition::before {
    background-image: url("brand/desk-edge-left-portrait.png");
  }
  .reference-composition::after {
    background-image: url("brand/desk-edge-right-portrait.png");
  }
  .reference-landscape { opacity: 0; }
  .reference-portrait { opacity: 1; }
  .brand-subtitle { top: 26.5%; font-size: min(1.1svh, 12px); }
  .platforms { top: 85%; bottom: auto; width: min(88vw, 440px); }
  .platforms p { margin-bottom: min(1.25svh, 12px); font-size: min(1.2svh, 13px); }
  .platforms nav { gap: min(1.9svh, 20px); }
  .platform-link { width: min(2svh, 21px); height: min(2svh, 21px); }
}

@media (prefers-reduced-motion: reduce) { .platforms { animation: none; opacity: 1; } }
