/* ==========================================================
   pages.css — bigger pieces used on certain pages
   ----------------------------------------------------------
   1. Device mockups (laptop + phone frames for screenshots)
   2. "Some of my work" showcase that rotates (Home page)
   3. Work page list
   4. Case study page
   5. About (Home preview + About page)
   ========================================================== */


/* ---------- 1. Device mockups ---------- */
.device {
  position: relative;
}

/* Laptop: black frame + screen + thin keyboard base */
.mock-laptop {
  position: relative;
}

.mock-screen {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 8px solid var(--ink);
  border-radius: 16px;
  background: var(--card);
}

.mock-laptop::after {
  content: "";
  display: block;
  height: 14px;
  margin: 0 -6%;
  background: var(--ink);
  border-radius: 3px 3px 14px 14px;
}

/* Phone: rounded black frame */
.mock-phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 23%;
  aspect-ratio: 390 / 844;
  overflow: hidden;
  border: 6px solid var(--ink);
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 24px 50px rgba(28, 26, 23, 0.2);
}

.mock-screen img,
.mock-phone img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* The stage leaves room on the right/bottom for the phone */
.device-stage {
  position: relative;
  padding: 0 12% 7% 0;
}


/* ---------- 2. "Some of my work" showcase ----------
   Every screenshot is stacked in the same place; only the one with
   "is-active" is visible. showcase.js moves "is-active" every few seconds. */
.showcase {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 72px;
  align-items: center;
}

.slide {
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.8s ease, transform 1.2s ease;
}

.slide.is-active {
  opacity: 1;
  transform: none;
}

/* The phone gently rises each time the slide changes */
.mock-phone.is-moving {
  animation: phone-rise 0.9s ease;
}

@keyframes phone-rise {
  0%   { transform: translateY(14px); }
  100% { transform: none; }
}

/* A "coming soon" screen for projects that are still being built */
.slide-soon {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  background: var(--soft);
  text-align: center;
}

.slide-soon svg {
  width: 44%;
}

.slide-soon .label {
  font-size: 11px;
}

.mock-phone .slide-soon svg {
  width: 80%;
}

.mock-phone .slide-soon .label {
  display: none;
}

/* The text on the right that changes with the slides */
.showcase-info {
  position: relative;
  min-height: 330px;
}

.info {
  display: none;
}

.info.is-active {
  display: block;
  animation: info-in 0.6s ease;
}

@keyframes info-in {
  from { opacity: 0; translate: 0 12px; }
  to   { opacity: 1; translate: 0 0; }
}

.info .label {
  margin-bottom: 14px;
}

.info h3 {
  font-size: 34px;
  margin-bottom: 12px;
}

.info p {
  color: var(--muted);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 3px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  background: var(--card);
}

.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3a9a55;
}

.status-soon::before {
  background: #b8b0a2;
}

/* Arrows, dots and the "01 / 04" counter */
.showcase-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
}

.round-button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 20px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.round-button:hover {
  background: var(--ink);
  color: var(--paper);
}

.dots {
  display: flex;
  gap: 8px;
  margin: 0 10px;
}

.dot {
  width: 28px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: rgba(28, 26, 23, 0.18);
  cursor: pointer;
}

.dot[aria-current="true"] {
  background: var(--ink);
}

@media (max-width: 960px) {
  .showcase {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .showcase-info {
    min-height: 0;
  }
}


/* ---------- 3. Work page list ---------- */
.project {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 64px 0;
  border-top: 1px solid var(--line);
}

.project:first-child {
  border-top: 0;
  padding-top: 0;
}

.project h2 {
  font-size: clamp(32px, 3.4vw, 44px);
}

.project p {
  color: var(--muted);
}

.project .label {
  margin-bottom: 14px;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.project-meta li {
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  color: var(--muted);
}

@media (max-width: 960px) {
  .project {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}


/* ---------- 4. Case study page ---------- */
.case-hero {
  max-width: 1000px;
  margin: 0 auto;
}

.case-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 80px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.case-facts div {
  padding: 24px 24px 24px 0;
}

.case-facts dt {
  margin-bottom: 6px;
}

.case-facts dd {
  margin: 0;
}

.case-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 72px;
  align-items: start;
}

/* Table of contents that stays in view while you read */
.toc {
  position: sticky;
  top: 110px;
}

.toc ol {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toc a {
  color: var(--muted);
  text-decoration: none;
}

.toc a:hover {
  color: var(--ink);
}

.case-section {
  padding-bottom: 56px;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--line);
}

.case-section:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}

.case-section h2 {
  font-size: 36px;
}

.case-section p,
.case-section li {
  color: var(--muted);
  font-size: 19px;
}

.case-section ul {
  padding-left: 22px;
}

.case-section li {
  margin-bottom: 8px;
}

.case-section strong {
  color: var(--ink);
  font-weight: 500;
}

.case-photos {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 20px;
  align-items: center;
  margin-top: 36px;
}

.case-photos img {
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.case-phones {
  display: flex;
  gap: 20px;
  margin-top: 36px;
}

.case-phones .mock-phone {
  position: relative;
  width: 31%;
  box-shadow: none;
}

@media (max-width: 960px) {
  .case-facts {
    grid-template-columns: 1fr 1fr;
  }

  .case-body {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .toc {
    position: static;
  }

  .case-photos {
    grid-template-columns: 1fr 1fr;
  }

  .case-photos img:last-child {
    grid-column: 1 / -1;
  }
}


/* ---------- 5. About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
  align-items: center;
}

.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--soft);
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Until there's a photo, Bino sits in the frame */
.portrait-placeholder {
  display: grid;
  place-items: center;
}

.portrait-placeholder svg {
  width: 48%;
}

.about-grid .lead {
  font-size: 24px;
  line-height: 1.45;
}

.about-grid p {
  color: var(--muted);
}

.about-grid .lead {
  color: var(--ink);
}

.signature {
  margin-top: 28px;
  font-weight: 500;
}

@media (max-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .portrait {
    max-width: 360px;
  }
}

/* The caption under Bino's photo */
.portrait-figure {
  margin: 0;
}

.portrait-figure figcaption {
  margin-top: 12px;
  font-size: 15px;
  color: var(--muted);
}

/* Packages without prices: a thin line between the description and the list */
.plan-for {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.plan-card-featured .plan-for {
  border-color: rgba(246, 242, 234, 0.2);
}
