/* =========================================================
   PHONE — the digital half of the phygital pair
   ========================================================= */

.phone {
  --phone-w: 100%;
  width: var(--phone-w);
  aspect-ratio: 1 / 2.02;
}

.phone__frame {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 2.6%;
  border-radius: 13.5%/6.6%;
  background: linear-gradient(158deg, #3d3a36 0%, #14120f 22%, #26231f 52%, #0d0b09 82%, #37332e 100%);
  box-shadow: 0 2px 0 rgba(255, 255, 255, 0.09) inset,
    0 -2px 0 rgba(0, 0, 0, 0.7) inset, 0 40px 70px -20px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(0, 0, 0, 0.6);
}

.phone__island {
  position: absolute;
  top: 3.4%;
  left: 50%;
  transform: translateX(-50%);
  width: 26%;
  height: 2.1%;
  border-radius: 999px;
  background: #050403;
  z-index: 3;
}

.phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 11.5%/5.6%;
  overflow: hidden;
  background: var(--ink-100);
  display: flex;
  flex-direction: column;
}

.phone__chrome {
  flex: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5em;
  padding: 4.2% 6% 2.4%;
  background: #0f0d0c;
  border-bottom: 1px solid rgba(237, 231, 219, 0.08);
}

.phone__time,
.phone__url {
  font-family: var(--font-mono);
  font-size: clamp(0.3rem, 0.72vw, 0.46rem);
  letter-spacing: 0.02em;
  color: var(--bone-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.phone__time {
  color: var(--bone-300);
}

.phone__page {
  flex: 1;
  min-height: 0;
  padding: 5.5% 6% 6%;
  display: flex;
  flex-direction: column;
  gap: 3.4%;
  overflow: hidden;
}

.phone__head {
  text-align: center;
}

.phone__head h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(0.95rem, 2.6vw, 1.5rem);
  line-height: 1;
  color: var(--bone-100);
}

.phone__head p {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(0.4rem, 1vw, 0.62rem);
  color: var(--gold-200);
  margin-top: 0.2em;
}

.phone__dates {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(0.28rem, 0.68vw, 0.42rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-500);
  margin-top: 0.55em;
}

.phone__hero {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 2px;
  flex: none;
}

.phone__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
  filter: saturate(0.9) contrast(1.05);
}

.phone__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  flex: none;
}

.phone__thumbs span {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 1px;
}

.phone__thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.04);
}

.phone__body {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(0.34rem, 0.82vw, 0.52rem);
  line-height: 1.62;
  color: var(--bone-300);
  text-align: center;
}

/* ---- player ---- */

.phone__player {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 4%;
  padding: 3.2% 4%;
  background: rgba(237, 231, 219, 0.05);
  border: 1px solid rgba(237, 231, 219, 0.1);
  border-radius: 999px;
  flex: none;
}

.phone__play {
  flex: none;
  width: 1.55em;
  height: 1.55em;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold-300);
  color: var(--ink-100);
  font-size: clamp(0.4rem, 1vw, 0.62rem);
  padding-left: 0.1em;
}

.phone__wave {
  flex: 1;
  min-width: 0;
  height: 1.4em;
  display: flex;
  align-items: center;
  gap: 1.5px;
  font-size: clamp(0.4rem, 1vw, 0.62rem);
}

.phone__wave i {
  flex: 1;
  min-width: 0;
  background: var(--gold-200);
  opacity: 0.75;
  border-radius: 999px;
  transform-origin: center;
  will-change: transform;
}

.phone__dur {
  flex: none;
  font-family: var(--font-mono);
  font-size: clamp(0.28rem, 0.68vw, 0.42rem);
  color: var(--bone-400);
  font-variant-numeric: tabular-nums;
}

.phone__track {
  height: 1px;
  background: rgba(237, 231, 219, 0.12);
  overflow: hidden;
  flex: none;
}

.phone__track span {
  display: block;
  height: 100%;
  background: var(--gold-300);
  transform-origin: left center;
}

.phone__audiolabel {
  font-family: var(--font-mono);
  font-size: clamp(0.26rem, 0.62vw, 0.38rem);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--bone-500);
  text-align: center;
  flex: none;
}
