/* grid-page.css — inner pages (websites, programs, videos, designs) */

.page {
  padding: calc(var(--space) * 2.6) var(--space) calc(var(--space) * 2);
  max-width: var(--content-max);
  margin-inline: auto;
}
.page__head { margin-bottom: calc(var(--space) * 1.6); }
.page__title { font-size: clamp(26px, 4vw, 52px); font-weight: 500; letter-spacing: -0.035em; }
.page__sub { color: var(--color-text-muted); margin-top: 4px; }

/* ---- shared media cell ---- */
.media {
  position: relative;
  overflow: hidden;
  background: var(--color-placeholder);
}
.media video,
.media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media .placeholder { position: absolute; inset: 0; }

/* ---- iPhone frame ---- */
.phone {
  --pw: 300px;
  width: var(--pw);
  aspect-ratio: 9 / 19.3;
  flex: 0 0 auto;
  background: #050506;
  border: 1px solid #1f1f22;
  border-radius: calc(var(--pw) * 0.16);
  padding: calc(var(--pw) * 0.03);
  box-shadow: inset 0 0 0 2px #000, 0 30px 60px rgba(0,0,0,0.5);
  position: relative;
}
.phone::before {              /* dynamic island */
  content: "";
  position: absolute;
  top: calc(var(--pw) * 0.045);
  left: 50%;
  transform: translateX(-50%);
  width: 32%;
  height: calc(var(--pw) * 0.06);
  background: #000;
  border-radius: 100px;
  z-index: 2;
}
.phone__screen {
  width: 100%; height: 100%;
  border-radius: calc(var(--pw) * 0.125);
  overflow: hidden;
  background: var(--color-placeholder);
}
.phone__screen .media { width: 100%; height: 100%; border-radius: inherit; }

/* ---- projects (websites / programs) ---- */
.projects { display: flex; flex-direction: column; gap: clamp(64px, 9vw, 150px); }
.shots { display: flex; align-items: flex-start; gap: clamp(24px, 4vw, 80px); }
.shots--desktop-first { justify-content: flex-start; }
.shots--mobile-first { justify-content: center; align-items: center; }
.shots--solo { justify-content: center; }
.shots .media--desktop { flex: 1 1 auto; aspect-ratio: 16 / 10; border-radius: 14px; }
.shots--solo .media--desktop { width: min(100%, 1400px); }

.project__cap { margin-top: 22px; font-size: var(--fs-body); }
.project__cap.is-left { text-align: left; }
.project__cap.is-center { text-align: center; }
.project__title { font-weight: 500; }

/* ---- videos page ---- */
.videos { display: flex; flex-direction: column; gap: clamp(48px, 7vw, 110px); }
.film .media--film { width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; }

/* ---- designs: composite diagram ---- */
.composite {
  position: relative;
  max-width: 760px;
  margin-bottom: clamp(48px, 7vw, 110px);
}
.composite__zones {
  display: grid;
  grid-template-columns: 0.9fr 1.6fr;
  grid-template-areas: "avatar banner" "avatar other";
  gap: 16px;
}
.zone {
  position: relative;
  border: 1.4px dashed rgba(255,255,255,0.55);
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  font-size: var(--fs-body);
  letter-spacing: -0.01em;
}
.zone--banner { grid-area: banner; min-height: 150px; }
.zone--avatar { grid-area: avatar; min-height: 150px; border-radius: 50% / 32%; }
.zone--other  { grid-area: other; min-height: 190px; }

/* ---- designs grid ---- */
.designs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.cell {
  display: block;
  padding: 0;
  background: var(--color-placeholder);
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.cell img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.5s var(--ease); }
.cell:hover img { opacity: 0.72; }

/* ---- responsive ---- */
@media (max-width: 860px) {
  .shots { flex-direction: column; align-items: stretch; gap: 24px; }
  .shots--mobile-first { align-items: center; }
  .shots .media--desktop { width: 100%; }
  .phone { --pw: 240px; align-self: center; }
  .project__cap.is-center, .project__cap.is-left { text-align: left; }
  .designs-grid { grid-template-columns: repeat(2, 1fr); }
  .composite__zones { gap: 10px; }
}
