/* ============================================
   ALVEX STUDIO — Work / Portfolio Page
   ============================================ */

.work-hero {
  padding: 160px 48px 80px;
  background: var(--dark);
}
.work-hero h1 {
  font-size: clamp(48px, 8vw, 96px);
  letter-spacing: -.05em;
  line-height: .92;
  margin-bottom: 20px;
}
.work-hero .sub {
  font-size: 16px;
  font-weight: 300;
  color: rgba(240,237,230,.5);
  max-width: 500px;
  line-height: 1.7;
}
.work-hero .sub + .sub { margin-top: 14px; }
.work-hero .sub-link {
  color: var(--warm-white);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(240,237,230,.3);
  transition: text-decoration-color .2s;
}
.work-hero .sub-link:hover { text-decoration-color: var(--blue); }

/* --- Portfolio Grid --- */
.work-body {
  padding: 80px 48px 120px;
  background: var(--navy);
}
.work-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

/* --- Device Card --- */
.device-card {
  text-align: center;
}
.device-info {
  margin-bottom: 24px;
}
.device-info h3 {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
  color: var(--warm-white);
  margin-bottom: 6px;
}
.device-info p {
  font-size: 14px;
  font-weight: 300;
  color: rgba(240,237,230,.4);
}
.device-info .device-tags {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.device-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 1px;
  background: rgba(42,94,232,.12);
  color: #7BA3F5;
}

/* Sector, drawn from the six on the templates page. Amber rather than blue so it
   is legible at a glance as a different kind of label from Web Design or SEO. */
.device-tag--sector {
  background: rgba(200,151,58,.14);
  color: #D9B368;
}

/* iPad Landscape shell */
.ipad {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  background: #1a1a1a;
  border-radius: 20px;
  padding: 16px;
  box-shadow:
    0 0 0 2px #333,
    0 20px 60px rgba(0,0,0,.4);
}
/* Camera dot */
.ipad::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 8px;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: #333;
  border-radius: 50%;
  z-index: 10;
}
.ipad-screen {
  width: 100%;
  aspect-ratio: 1194 / 834;
  border-radius: 8px;
  overflow: hidden;
  background: var(--dark);
  position: relative;
}
.ipad-screen iframe {
  width: 1194px;
  height: 834px;
  border: none;
  transform-origin: top left;
  pointer-events: none;
  transition: pointer-events .3s;
  display: block;
}
.device-card:hover .ipad-screen iframe {
  pointer-events: auto;
}

/* Interaction hint */
.ipad-hint {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(240,237,230,.3);
  background: rgba(0,0,0,.6);
  padding: 6px 14px;
  border-radius: 20px;
  z-index: 5;
  transition: opacity .3s;
}
.device-card:hover .ipad-hint { opacity: 0; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .work-hero { padding: 140px 24px 60px; }
  .work-body { padding: 60px 24px 80px; }
  .work-grid { gap: 60px; }
}

@media (max-width: 768px) {
  .work-hero { padding: 120px 20px 48px; }
  .work-body { padding: 48px 20px 60px; }
  .work-grid { gap: 48px; }
}
