/* Sub-page styles. Loads after site.css. */

/* ============================================================
   Sub-page hero
   ============================================================ */
.ps-hero {
  padding: 120px 0 64px;
  border-bottom: 1px solid #232323;
}
.ps-hero.with-backlink { padding-top: 24px; }
.ps-hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(56px, 8vw, 120px);
  line-height: 0.94;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 28px 0 0;
}
.ps-hero-title .accent { color: var(--accent); }
.ps-hero-lede {
  margin: 28px 0 0;
  font-size: 18px;
  color: var(--muted-grey);
  max-width: 64ch;
  line-height: 1.55;
}
.ps-hero-stats {
  display: flex;
  gap: 56px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid #232323;
  flex-wrap: wrap;
}
.ps-hero-stats .num {
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.ps-hero-stats .lbl {
  margin-top: 10px;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim-grey);
  font-weight: 700;
}

/* ============================================================
   Back link
   ============================================================ */
.ps-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-grey);
  font-weight: 700;
  margin-bottom: 32px;
  padding: 8px 16px 8px 12px;
  border: 2px solid var(--border);
  border-radius: 999px;
  transition: border-color var(--t-short) var(--ease-out);
}
.ps-back:hover { border-color: var(--accent); color: var(--fg); }
.ps-back .arrow { color: var(--accent); font-size: 16px; }

/* ============================================================
   Two-column service detail
   ============================================================ */
.ps-twocol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding: 88px 0;
}
@media (max-width: 920px) {
  .ps-twocol { grid-template-columns: 1fr; gap: 48px; padding: 60px 0; }
}

.ps-block { display: flex; flex-direction: column; gap: 20px; }
.ps-block h3 {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.01em;
  margin: 6px 0 0;
}
.ps-block h3 .accent { color: var(--accent); }
.ps-block p { color: var(--muted-grey); font-size: 15px; line-height: 1.6; margin: 0; max-width: 56ch; }

.ps-list {
  list-style: none; padding: 0; margin: 12px 0 0;
  display: flex; flex-direction: column; gap: 12px;
}
.ps-list li {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: 12px;
  color: var(--fg); font-weight: 500; font-size: 14px;
}
.ps-list li .marker {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--accent);
}

/* ============================================================
   Work strip (gallery)
   ============================================================ */
.ps-work-section { padding: 88px 0; border-top: 1px solid #232323; }
.ps-mockups-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 40px;
}
@media (max-width: 920px) { .ps-mockups-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .ps-mockups-grid { grid-template-columns: 1fr; } }
.ps-mockup-card {
  aspect-ratio: 1/1;
  border: 2px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: #0a0a0a;
  position: relative;
  cursor: pointer;
  transition: border-color var(--t-short) var(--ease-out);
}
.ps-mockup-card:hover { border-color: var(--accent); }
.ps-mockup-card img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform var(--t-standard) var(--ease-out);
}
.ps-mockup-card:hover img { transform: scale(1.04); }
.ps-mockup-card .tag {
  position: absolute;
  bottom: 16px; left: 16px;
  font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase;
  font-weight: 700; color: var(--fg);
  background: var(--site-black);
  padding: 5px 10px; border-radius: 999px;
  border: 2px solid var(--border);
}

/* ============================================================
   Services-overview grid (large)
   ============================================================ */
.ps-services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  padding: 60px 0 88px;
}
@media (max-width: 820px) { .ps-services-grid { grid-template-columns: 1fr; } }

.ps-service-card {
  display: flex; flex-direction: column; gap: 16px;
  padding: 36px 32px 32px;
  border: 2px solid var(--border);
  border-radius: 22px;
  text-decoration: none;
  color: inherit;
  transition: border-color var(--t-short) var(--ease-out);
  min-height: 280px;
}
.ps-service-card:hover { border-color: var(--accent); }
.ps-service-card .top { display: flex; justify-content: space-between; align-items: flex-start; }
.ps-service-card .ico {
  width: 56px; height: 56px; border-radius: 14px;
  background: rgba(0, 163, 255, 0.12); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.ps-service-card:hover .ico { background: var(--accent); color: #fff; }
.ps-service-card .num {
  font-family: var(--font-display); font-weight: 700;
  color: var(--dim-grey); font-size: 22px; letter-spacing: -0.02em;
}
.ps-service-card h3 {
  font-size: 28px; font-weight: 800; letter-spacing: -0.02em; margin: 0;
  line-height: 1.1;
}
.ps-service-card p {
  color: var(--muted-grey); font-size: 14px; line-height: 1.6; margin: 0; flex: 1;
}
.ps-service-card .bot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 8px; padding-top: 18px;
  border-top: 1px solid #232323;
}
.ps-service-card .meta { font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--dim-grey); font-weight: 700; }
.ps-service-card .view {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700;
  color: var(--fg);
}
.ps-service-card:hover .view { color: var(--accent); }

/* ============================================================
   About page
   ============================================================ */
.ps-about-grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px;
  padding: 80px 0;
  align-items: center;
}
@media (max-width: 920px) { .ps-about-grid { grid-template-columns: 1fr; gap: 40px; } }
.ps-portrait-wrap {
  aspect-ratio: 4/5;
  border: 2px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  position: relative;
}
.ps-portrait-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ps-portrait-wrap .badge {
  position: absolute; right: -16px; bottom: 32px;
  background: var(--site-black);
  border: 2px solid var(--accent);
  padding: 14px 18px; border-radius: 16px;
  display: flex; gap: 12px; align-items: center;
  box-shadow: var(--shadow-glow);
}
.ps-portrait-wrap .badge .v { font-weight: 800; color: var(--accent); font-size: 22px; }
.ps-portrait-wrap .badge .l { font-size: 9px; letter-spacing: 0.2em; color: var(--muted-grey); text-transform: uppercase; }

.ps-about-bio { display: flex; flex-direction: column; gap: 24px; }
.ps-about-bio h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(48px, 6vw, 88px); line-height: 0.95;
  letter-spacing: -0.01em; text-transform: uppercase; margin: 12px 0 0;
}
.ps-about-bio h1 .accent { color: var(--accent); }
.ps-about-bio p { font-size: 16px; color: var(--muted-grey); line-height: 1.65; margin: 0; max-width: 56ch; }

/* ============================================================
   Tools row
   ============================================================ */
.ps-tools {
  padding: 60px 0;
  border-top: 1px solid #232323;
}
.ps-tools-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin-top: 32px;
}
@media (max-width: 820px) { .ps-tools-grid { grid-template-columns: repeat(2, 1fr); } }
.ps-tool {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  border: 2px solid var(--border); border-radius: 12px;
}
.ps-tool .ic {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.04);
  font-weight: 800; font-size: 16px; letter-spacing: -0.04em;
}
.ps-tool .nm { font-weight: 700; font-size: 14px; }
.ps-tool .ro { font-size: 11px; color: var(--dim-grey); letter-spacing: 0.06em; margin-top: 2px; }

/* ============================================================
   Contact page
   ============================================================ */
.ps-contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
  padding: 80px 0;
}
@media (max-width: 920px) { .ps-contact-grid { grid-template-columns: 1fr; gap: 40px; } }

.ps-channels { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }
.ps-channel {
  display: flex; align-items: center; gap: 20px;
  padding: 22px 24px;
  border: 2px solid var(--border); border-radius: 16px;
  text-decoration: none; color: inherit;
  transition: border-color var(--t-short) var(--ease-out);
}
.ps-channel:hover { border-color: var(--accent); }
.ps-channel .ic {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(0,163,255,0.12); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 44px;
}
.ps-channel .ttl { font-weight: 700; font-size: 16px; }
.ps-channel .val { color: var(--muted-grey); font-size: 13px; margin-top: 4px; }
.ps-channel .arrow { margin-left: auto; color: var(--muted-grey); }
.ps-channel:hover .arrow { color: var(--accent); }

.ps-form {
  border: 2px solid var(--border); border-radius: 22px;
  padding: 36px;
  display: flex; flex-direction: column; gap: 16px;
}
.ps-form label {
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--dim-grey); font-weight: 700; margin-bottom: 8px; display: block;
}
.ps-form .field { display: flex; flex-direction: column; }
.ps-form input, .ps-form textarea, .ps-form select {
  width: 100%; box-sizing: border-box;
  background: transparent; border: 2px solid var(--border); border-radius: 12px;
  color: var(--fg); font-family: var(--font-body); font-size: 14px;
  padding: 14px 16px; outline: none;
  transition: border-color var(--t-short) var(--ease-out);
}
.ps-form input:focus, .ps-form textarea:focus, .ps-form select:focus { border-color: var(--accent); }
.ps-form textarea { min-height: 120px; resize: vertical; }

/* ============================================================
   Work page — large gallery
   ============================================================ */
.ps-filters {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 36px 0;
}
.ps-filter {
  padding: 8px 16px;
  border: 2px solid var(--border); border-radius: 999px;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 700; color: var(--muted-grey); cursor: pointer;
  background: transparent;
  transition: all var(--t-short) var(--ease-out);
}
.ps-filter:hover { color: var(--fg); border-color: var(--border-strong); }
.ps-filter.active { border-color: var(--accent); color: var(--accent); }

.ps-work-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  padding-bottom: 60px;
}
@media (max-width: 920px) { .ps-work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .ps-work-grid { grid-template-columns: 1fr; } }


/* ========== STATIC GRAPHICS HORIZONTAL SCROLL ========== */
.ps-scroll-strip {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  overflow-y: visible;
  padding: 8px 0 24px;
  margin-top: 40px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--border-grey) transparent;
}
.ps-scroll-strip::-webkit-scrollbar { height: 6px; }
.ps-scroll-strip::-webkit-scrollbar-track { background: transparent; }
.ps-scroll-strip::-webkit-scrollbar-thumb { background: var(--border-grey); border-radius: 999px; }
.ps-scroll-strip::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }

/* Large square cards - matching homepage Recent deliveries size */
.ps-scroll-strip .ps-mockup-card {
  flex: 0 0 450px;
  min-width: 450px;
  width: 450px;
  height: 450px;
  aspect-ratio: 1/1;
  scroll-snap-align: start;
}
@media (max-width: 1400px) {
  .ps-scroll-strip .ps-mockup-card {
    flex: 0 0 450px;
    min-width: 450px;
    width: 450px;
    height: 450px;
  }
}
@media (max-width: 1200px) {
  .ps-scroll-strip .ps-mockup-card {
    flex: 0 0 380px;
    min-width: 380px;
    width: 380px;
    height: 380px;
  }
}
@media (max-width: 920px) {
  .ps-scroll-strip .ps-mockup-card {
    flex: 0 0 320px;
    min-width: 320px;
    width: 320px;
    height: 320px;
  }
}
@media (max-width: 600px) {
  .ps-scroll-strip .ps-mockup-card {
    flex: 0 0 280px;
    min-width: 280px;
    width: 280px;
    height: 280px;
  }
}

/* ========== LIGHTBOX MODAL ========== */
.pw-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.2s ease-out;
}

.pw-modal {
  background: var(--card-dark);
  border: 2px solid var(--border);
  border-radius: 18px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
  animation: slideUp 0.3s ease-out;
}

.pw-modal .close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: var(--muted-grey);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  transition: color 0.2s;
}

.pw-modal .close:hover {
  color: var(--white);
}

.pw-case-cover {
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--bg-dark);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 768px) {
  .pw-modal {
    padding: 24px;
  }
}
