/* Portfolio site styles — extends colors_and_type.css */

/* Page shell */
body {
  background: var(--site-black);
  color: var(--fg);
  font-family: var(--font-body);
  margin: 0;
  overflow-x: hidden;
}

main { display: block; }

.um-container { max-width: 1240px; margin: 0 auto; padding: 0 56px; }
@media (max-width: 720px) { .um-container { padding: 0 24px; } }

/* ------ NAV ------ */
.pw-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20, 20, 20, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid #232323;
}
.pw-nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 56px;
  max-width: 1240px; margin: 0 auto;
}
.pw-nav-mark { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.pw-nav-mark .mark { height: 44px; width: auto; display: block; }
.pw-nav-mark .brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--fg);
  text-transform: uppercase;
  line-height: 1;
}
@media (max-width: 720px) { .pw-nav-mark .brand-name { display: none; } }
.pw-nav-links { display: flex; gap: 36px; }
.pw-nav-links a {
  font-size: 13px; color: var(--muted-grey); text-decoration: none;
  letter-spacing: 0.08em; font-weight: 500; transition: color var(--t-short) var(--ease-out);
}
.pw-nav-links a:hover, .pw-nav-links a.active { color: var(--fg); }
@media (max-width: 820px) { .pw-nav-links { display: none; } }

/* ------ SECTION LABEL ------ */
.pw-label {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px;
  border: 2px solid var(--border);
  border-radius: 999px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted-grey);
  background: transparent;
  white-space: nowrap;
}
.pw-label .dot {
  width: 6px; height: 6px; background: var(--accent); border-radius: 999px;
  box-shadow: 0 0 8px var(--accent);
}

/* ------ HERO ------ */
.pw-hero { position: relative; padding: 120px 0 100px; overflow: hidden; }
.pw-hero-speedline { display: none; }
.pw-hero-grid {
  display: grid; grid-template-columns: 1fr 0.85fr; gap: 64px; align-items: center;
}
.pw-hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(56px, 7.4vw, 112px);
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 28px 0 28px;
}
.pw-hero-title .accent { color: var(--accent); }
.pw-hero-sub {
  font-size: 17px; color: var(--muted-grey); max-width: 52ch;
  line-height: 1.6;
}
.pw-hero-ctas { display: flex; gap: 16px; align-items: center; margin-top: 38px; }
.pw-hero-meta {
  display: flex; gap: 26px; margin-top: 64px;
  border-top: 1px solid #232323; padding-top: 26px;
}
.pw-hero-meta .stat-num {
  font-family: var(--font-display); font-size: 36px; line-height: 1;
  color: var(--fg); font-weight: 700; letter-spacing: -0.01em;
}
.pw-hero-meta .stat-num .accent { color: var(--accent); }
.pw-hero-meta .stat-lbl {
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--dim-grey); margin-top: 8px; font-weight: 600;
}
.pw-hero-portrait {
  position: relative; aspect-ratio: 4/5; max-width: 460px; justify-self: end;
  width: 100%;
}
.pw-hero-portrait .frame {
  width: 100%; height: 100%;
  border: 2px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  object-fit: cover;
  display: block;
}
.pw-hero-portrait .badge {
  position: absolute; right: -18px; bottom: 36px;
  background: var(--site-black); border: 2px solid var(--accent);
  color: var(--fg); padding: 14px 18px;
  border-radius: 16px; box-shadow: var(--shadow-glow);
  display: flex; align-items: center; gap: 12px;
}
.pw-hero-portrait .badge .num { font-weight: 800; font-size: 22px; color: var(--accent); }
.pw-hero-portrait .badge .lbl { font-size: 9px; letter-spacing: 0.2em; color: var(--muted-grey); text-transform: uppercase; }
.pw-hero-monogram { display: none; }
.pw-hero-speedline {
  position: absolute; left: 0; right: 0; top: 50%; height: 2px;
  background: var(--accent); opacity: 0.35;
  transform: translateY(-50%);
}
@media (max-width: 880px) {
  .pw-hero-grid { grid-template-columns: 1fr; }
  .pw-hero-portrait { justify-self: stretch; max-width: 100%; }
}

/* ------ SECTION shared ------ */
.pw-section { padding: 110px 0; position: relative; }
.pw-section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 48px; gap: 32px; flex-wrap: wrap;
}
.pw-section-head h2 {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 14px 0 0; max-width: 18ch;
}
.pw-section-head h2 .accent { color: var(--accent); }
.pw-section-head .pw-section-aside {
  color: var(--muted-grey); font-size: 14px; max-width: 36ch; line-height: 1.55;
}

/* ------ SERVICES (scrollable strip) ------ */
.pw-services-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: visible;
  padding: 8px 56px 24px;
  margin: 0 -56px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--border-grey) transparent;
}
.pw-services-scroll::-webkit-scrollbar { height: 6px; }
.pw-services-scroll::-webkit-scrollbar-track { background: transparent; }
.pw-services-scroll::-webkit-scrollbar-thumb { background: var(--border-grey); border-radius: 999px; }
.pw-services-scroll::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }
.pw-services-scroll .pw-service {
  flex: 0 0 320px;
  scroll-snap-align: start;
}
@media (max-width: 720px) { .pw-services-scroll .pw-service { flex: 0 0 280px; } }

.pw-scroll-hint {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 18px;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 700; color: var(--dim-grey);
}
.pw-scroll-hint .arrows { display: flex; gap: 8px; }
.pw-scroll-hint button {
  width: 36px; height: 36px; border-radius: 999px;
  border: 2px solid var(--border); background: transparent;
  color: var(--fg); cursor: pointer; font-size: 16px;
  transition: border-color var(--t-short) var(--ease-out);
}
.pw-scroll-hint button:hover { border-color: var(--accent); color: var(--accent); }

/* ------ BRAND MARQUEE ------ */
.pw-brands {
  padding: 80px 0;
  border-top: 1px solid #232323;
  border-bottom: 1px solid #232323;
  overflow: hidden;
  position: relative;
}
.pw-brands .lbl {
  display: flex; align-items: center; gap: 14px;
  padding: 0 56px;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--dim-grey); font-weight: 700;
  margin-bottom: 36px;
}
.pw-brands .lbl::before, .pw-brands .lbl::after {
  content: ""; height: 1px; background: #232323; flex: 1;
}
.pw-marquee {
  display: flex; gap: 56px;
  width: max-content;
  animation: marquee 48s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.pw-marquee:hover { animation-play-state: paused; }
.pw-brand-chip {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 14px 28px;
  border: 2px solid var(--border);
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted-grey);
  white-space: nowrap;
  transition: all var(--t-short) var(--ease-out);
}
.pw-brand-chip:hover { color: var(--fg); border-color: var(--accent); }
.pw-brand-chip .dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--accent);
}
.pw-service {
  position: relative;
  border: 2px solid var(--border);
  border-radius: 18px;
  padding: 24px 22px 22px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color var(--t-short) var(--ease-out);
}
.pw-service:hover { border-color: var(--accent); }
.pw-service.selected { border-color: var(--accent); }
.pw-service .ico {
  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;
  margin-bottom: 4px;
}
.pw-service:hover .ico { background: var(--accent); color: #fff; }
.pw-service h3 { font-size: 19px; font-weight: 700; margin: 0; line-height: 1.25; }
.pw-service p { color: var(--muted-grey); font-size: 13px; line-height: 1.55; margin: 0; flex: 1; }
.pw-service .count-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 8px; padding-top: 16px;
  border-top: 1px solid #232323;
}
.pw-service .count {
  font-size: 10px; letter-spacing: 0.18em; color: var(--dim-grey);
  font-weight: 600; text-transform: uppercase;
}
.pw-service .view {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 700; color: var(--fg);
}
.pw-service:hover .view { color: var(--accent); }

/* ------ SKILLS ------ */
.pw-skills { display: flex; gap: 16px; flex-wrap: wrap; }
.pw-skill {
  width: 116px; height: 184px;
  border: 2px solid var(--border);
  border-radius: 999px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px;
  background: transparent;
  cursor: pointer;
  transition: border-color var(--t-short) var(--ease-out), transform var(--t-short) var(--ease-out);
}
.pw-skill:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.pw-skill.featured {
  border: 2px solid var(--signal-green);
  box-shadow: 0 0 28px rgba(57, 255, 20, 0.22);
}
.pw-skill .badge {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 22px; letter-spacing: -0.04em;
  background: rgba(255,255,255,0.04);
}
.pw-skill .pct { font-weight: 800; font-size: 18px; color: var(--accent); }
.pw-skill.featured .pct { color: var(--signal-green); }
.pw-skill .nm  {
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted-grey); font-weight: 600;
}

/* ------ WORK ------ */
.pw-work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 820px) { .pw-work-grid { grid-template-columns: 1fr; } }
.pw-work-card {
  position: relative;
  border: 2px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--card-dark);
  cursor: pointer;
  transition: border-color var(--t-short) var(--ease-out);
}
.pw-work-card:hover { border-color: var(--border-strong); }
.pw-work-cover {
  position: absolute; inset: 0;
  overflow: hidden;
}
.pw-work-cover img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform var(--t-standard) var(--ease-out);
}
.pw-work-card:hover .pw-work-cover img { transform: scale(1.05); }
.pw-work-meta {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 22px 24px;
  display: flex; justify-content: space-between; align-items: flex-end;
  background: linear-gradient(180deg, transparent, rgba(20,20,20,0.95));
  pointer-events: none;
}
.pw-work-meta .title { font-weight: 700; font-size: 18px; }
.pw-work-meta .tag {
  font-size: 10px; letter-spacing: 0.2em; color: var(--muted-grey);
  text-transform: uppercase;
}
.pw-work-meta .arrow {
  width: 36px; height: 36px; border: 2px solid var(--border-strong);
  border-radius: 999px; display: flex; align-items: center; justify-content: center;
  color: var(--fg);
}

/* ------ TESTIMONIALS ------ */
.pw-test-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pw-test-grid-10 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1280px) { .pw-test-grid-10 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px)  { .pw-test-grid, .pw-test-grid-10 { grid-template-columns: 1fr; } }

/* ------ TESTIMONIALS (scrollable strip) ------ */
.pw-test-scroll {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  overflow-y: visible;
  padding: 8px 56px 24px;
  margin: 0 -56px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--border-grey) transparent;
}
.pw-test-scroll::-webkit-scrollbar { height: 6px; }
.pw-test-scroll::-webkit-scrollbar-track { background: transparent; }
.pw-test-scroll::-webkit-scrollbar-thumb { background: var(--border-grey); border-radius: 999px; }
.pw-test-scroll::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }
.pw-test-scroll .pw-test {
  flex: 0 0 460px;
  scroll-snap-align: start;
}
@media (max-width: 720px) { .pw-test-scroll .pw-test { flex: 0 0 320px; } }
.pw-test {
  border: 2px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  display: flex; flex-direction: column; gap: 16px;
}
.pw-test .stars { color: var(--accent); font-size: 14px; letter-spacing: 0.12em; }
.pw-test .body { color: var(--fg); font-size: 15px; line-height: 1.5; font-weight: 500; }
.pw-test .who { display: flex; align-items: center; gap: 12px; }
.pw-test .who > div:last-child { display: flex; flex-direction: column; justify-content: center; }
.pw-test .av {
  width: 42px; height: 42px; border-radius: 999px; flex: 0 0 42px;
  background: linear-gradient(135deg, rgba(0, 163, 255, 0.1) 0%, rgba(0, 163, 255, 0.05) 100%);
  border: 2px solid rgba(0, 163, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.pw-test .av::before {
  content: '"';
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  font-family: Georgia, serif;
}
.pw-test .nm { font-weight: 700; font-size: 13px; }
.pw-test .ro { color: var(--dim-grey); font-size: 11px; letter-spacing: 0.06em; margin-top: 2px; }

/* ------ PRICING ------ */
.pw-pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 820px) { .pw-pricing { grid-template-columns: 1fr; } }
.pw-plan {
  border: 2px solid var(--border);
  border-radius: 18px;
  padding: 32px 28px;
  position: relative;
  display: flex; flex-direction: column; gap: 18px;
}
.pw-plan.featured { border-color: var(--accent); }
.pw-plan.featured::before {
  content: "POPULAR";
  position: absolute; top: -1px; left: 28px;
  background: var(--accent); color: #fff;
  font-size: 10px; letter-spacing: 0.2em; font-weight: 800;
  padding: 5px 12px; border-radius: 0 0 8px 8px;
}
.pw-plan .lbl { font-size: 11px; letter-spacing: 0.22em; color: var(--muted-grey); text-transform: uppercase; font-weight: 700; }
.pw-plan .nm { font-weight: 800; font-size: 22px; }
.pw-plan .pr { display: flex; align-items: baseline; gap: 6px; }
.pw-plan .pr .v { font-weight: 800; font-size: 52px; color: var(--accent); letter-spacing: -0.02em; line-height: 1; }
.pw-plan .pr .s { color: var(--fg); font-size: 14px; font-weight: 500; }
.pw-plan ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.pw-plan ul li { color: var(--muted-grey); font-size: 14px; display: flex; gap: 10px; align-items: flex-start; }
.pw-plan ul li::before { content: "+"; color: var(--accent); font-weight: 800; flex: 0 0 auto; }

/* ------ CTA BAND ------ */
.pw-cta {
  margin: 0 auto; max-width: 1240px;
  border: 2px solid var(--border);
  border-radius: 24px;
  padding: 64px 56px;
  position: relative; overflow: hidden;
}
.pw-cta h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 6.5vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0 0 28px;
  max-width: 14ch;
}
.pw-cta h2 .accent { color: var(--accent); }
.pw-cta .row { display: flex; gap: 16px; flex-wrap: wrap; }
.pw-cta .um-monogram-bg { display: none; }

/* ------ FOOTER ------ */
.pw-footer {
  margin-top: 80px;
  border-top: 1px solid #232323;
  padding: 48px 0 36px;
}
.pw-footer-row { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.pw-footer-mark img { height: 22px; display: block; margin-bottom: 12px; }
.pw-footer-mark p { color: var(--muted-grey); font-size: 13px; max-width: 30ch; line-height: 1.5; margin: 0; }
.pw-footer-cols { display: flex; gap: 56px; }
.pw-footer-col h4 {
  font-size: 10px; letter-spacing: 0.22em; color: var(--dim-grey);
  font-weight: 700; text-transform: uppercase; margin: 0 0 14px;
}
.pw-footer-col a {
  display: block; color: var(--muted-grey); text-decoration: none;
  font-size: 13px; margin-bottom: 8px;
}
.pw-footer-col a:hover { color: var(--fg); }
.pw-footer-bot {
  margin-top: 36px; padding-top: 24px; border-top: 1px solid #1a1a1a;
  display: flex; justify-content: space-between; font-size: 11px;
  color: var(--dim-grey); letter-spacing: 0.1em;
}

/* ------ SIDE RAIL — In-page nav ------ */
.pw-rail {
  position: fixed;
  right: 36px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 10px;
  background: rgba(20, 20, 20, 0.7);
  backdrop-filter: blur(10px);
  border: 2px solid var(--border);
  border-radius: 999px;
}
.pw-rail a {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 16px; height: 28px;
  text-decoration: none;
}
.pw-rail a::after {
  content: "";
  width: 6px; height: 6px; border-radius: 999px;
  background: #3A3A3A;
  transition: all var(--t-short) var(--ease-out);
}
.pw-rail a:hover::after { background: var(--muted-grey); }
.pw-rail a.active::after {
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  width: 8px; height: 8px;
}
.pw-rail .tip {
  position: absolute;
  right: 28px; top: 50%; transform: translateY(-50%);
  white-space: nowrap;
  background: var(--site-black);
  border: 2px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 700; color: var(--fg);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-short) var(--ease-out);
}
.pw-rail a:hover .tip { opacity: 1; }
@media (max-width: 900px) { .pw-rail { display: none; } }

/* ------ FLOATING animation utility ------ */
@keyframes pw-float-anim {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.pw-float { animation: pw-float-anim 4s ease-in-out infinite; }

.pw-nav .um-btn-primary {
  animation: pw-float-anim 5s ease-in-out infinite;
  box-shadow: 0 8px 28px rgba(0, 163, 255, 0.28);
}
  display: block; height: 2px; background: var(--accent);
  width: 100%; opacity: 0.85; border: 0;
}
.pw-thin-rule { height: 1px; background: #1d1d1d; border: 0; margin: 0; }

/* ============= COMPREHENSIVE MOBILE RESPONSIVE FIXES ============= */

/* Mobile: Hero Section */
@media (max-width: 720px) {
  .pw-hero { padding: 80px 0 60px; }
  .pw-hero-title { font-size: clamp(40px, 10vw, 56px); margin: 20px 0; }
  .pw-hero-sub { font-size: 16px; }
  .pw-hero-ctas { flex-direction: column; width: 100%; }
  .pw-hero-ctas .um-btn-primary,
  .pw-hero-ctas .um-btn-ghost { width: 100%; justify-content: center; }
  .pw-hero-meta { flex-direction: column; gap: 20px; margin-top: 48px; padding-top: 20px; }
  .pw-hero-portrait .badge { right: 16px; bottom: 16px; padding: 12px 16px; }
  .pw-hero-portrait .badge .num { font-size: 18px; }
  .pw-hero-portrait .badge .lbl { font-size: 8px; }
  .pw-nav-inner { padding: 16px 24px; }
  .pw-nav-mark .mark { height: 36px; }
}

/* Mobile: Sections */
@media (max-width: 720px) {
  .pw-section { padding: 80px 0; }
  .pw-section-head { margin-bottom: 32px; }
  .pw-section-head h2 { font-size: clamp(32px, 8vw, 42px); }
  .pw-services-scroll { padding: 8px 24px 24px; margin: 0 -24px; }
}

/* Mobile: Footer */
@media (max-width: 720px) {
  .pw-footer-grid { grid-template-columns: 1fr; gap: 48px; }
  .pw-footer-col { width: 100%; }
  .pw-footer-meta { flex-direction: column; gap: 20px; }
}

/* Client Logo Images - replaces text chips */

/* Client Logo Images - 1.5x IMAGES, same card */
.pw-brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.02);
  border: 2px solid var(--border);
  border-radius: 999px;
  transition: all 0.3s ease-out;
  min-width: 140px;
}
.pw-brand-logo:hover {
  border-color: var(--accent);
  background: rgba(0, 163, 255, 0.05);
  transform: translateY(-4px);
}
.pw-brand-logo img {
  max-height: 81px;
  max-width: 315px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%) brightness(0.7);
  transition: filter 0.3s ease-out;
}
.pw-brand-logo:hover img {
  filter: grayscale(0%) brightness(1);
}

/* Footer on phones: columns wrap instead of running off the screen (2 Nov 2026). */
@media (max-width: 720px) {
  .pw-footer-cols { flex-wrap: wrap; gap: 28px 40px; width: 100%; }
  .pw-footer-col a { overflow-wrap: anywhere; }
  .pw-footer-bot { flex-direction: column; gap: 8px; }
}
