/* ============================================================
   THE CREATIVITY LAB — Professional Websites service page (.pw-)
   World-class, editorial, premium. Layered on the base + sd-shell.
   ============================================================ */
.pw-bloom { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(60% 40% at 78% 8%, rgba(255,90,44,0.08), transparent 60%); }
.sd-page { position: relative; z-index: 1; }

/* ---- shared section rhythm ---- */
.pw-sec { padding: clamp(56px, 8vw, 130px) 0; border-top: 1px solid var(--border-subtle); }
.pw-sec__head { margin-bottom: clamp(34px, 4.5vw, 64px); }
.pw-sec__head--split { display: grid; grid-template-columns: 1fr; gap: clamp(20px, 3vw, 40px); }
@media (min-width: 920px) { .pw-sec__head--split { grid-template-columns: 1.1fr 1fr; align-items: end; } }
.pw-sec__eyebrow { font-family: var(--font-label); font-size: 13px; font-weight: var(--fw-semibold); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-secondary); }
.pw-sec__eyebrow .idx { color: var(--text-faint); }
.pw-sec__title { margin-top: clamp(18px, 2.2vw, 28px); font-family: var(--font-display); font-weight: var(--fw-bold); font-size: clamp(1.9rem, 4vw, 3.4rem); line-height: 1.02; letter-spacing: var(--tracking-display); color: var(--text-primary); max-width: 20ch; text-wrap: balance; }
.pw-sec__head--split .pw-sec__title { max-width: 16ch; }
.pw-sec__intro { font-size: clamp(1.05rem, 1.3vw, 1.32rem); line-height: 1.55; letter-spacing: -0.01em; color: var(--text-muted); max-width: 50ch; }

/* ---- 1 · HERO ---- */
.pw-hero { padding: clamp(40px, 6vw, 96px) 0 clamp(40px, 5vw, 80px); }
.pw-eyebrow { font-family: var(--font-label); font-size: 13px; font-weight: var(--fw-semibold); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-secondary); }
.pw-eyebrow .idx { color: var(--text-faint); }
.pw-h1 { margin-top: clamp(22px, 3vw, 40px); font-family: var(--font-display); font-weight: var(--fw-bold); font-size: clamp(2.6rem, 7.4vw, 6.8rem); line-height: 0.92; letter-spacing: var(--tracking-display); color: var(--text-primary); }
.pw-h1 .ln { display: block; }
.pw-h1 .ln.accent { color: var(--mg-orange); }
.pw-lead { margin-top: clamp(24px, 3vw, 38px); max-width: 56ch; font-size: clamp(1.1rem, 1.4vw, 1.45rem); line-height: 1.5; letter-spacing: -0.01em; color: var(--text-secondary); }
.pw-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(30px, 3.6vw, 46px); }
.pw-trust { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: clamp(26px, 3vw, 38px); font-family: var(--font-label); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-faint); }
.pw-trust i { width: 4px; height: 4px; border-radius: 50%; background: var(--border-strong); }

/* premium buttons */
.pw-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 clamp(22px, 2.4vw, 32px); font-family: var(--font-display); font-weight: var(--fw-medium); font-size: clamp(1rem, 1.1vw, 1.12rem); letter-spacing: -0.01em; text-decoration: none; border: 1px solid transparent;
  transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); }
.pw-btn svg { transition: transform var(--dur) var(--ease-out); }
.pw-btn:hover svg { transform: translate(3px, -3px); }
.pw-btn--primary { background: var(--text-primary); color: #000; }
.pw-btn--primary:hover { background: #fff; transform: translateY(-2px); }
.pw-btn--ghost { border-color: var(--border-strong); color: var(--text-primary); }
.pw-btn--ghost:hover { border-color: var(--mg-orange); background: rgba(255,90,44,0.06); transform: translateY(-2px); }
.pw-btn:focus-visible { outline: 2px solid rgba(255,90,44,0.6); outline-offset: 3px; }

/* cinematic 16:9 hero media */
.pw-hero__media { position: relative; width: 100%; max-width: 1100px; aspect-ratio: 16 / 9; overflow: hidden;
  margin-top: clamp(40px, 5vw, 72px); border-radius: 28px; background: var(--mg-ink-900);
  box-shadow: 0 44px 96px -44px rgba(0,0,0,0.88), 0 0 70px -18px rgba(255,90,44,0.16); }
.pw-hero__media::after { content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.10); }
.pw-hero__media::before { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; mix-blend-mode: screen; opacity: 0.5;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,0.10) 48%, rgba(255,255,255,0.03) 55%, transparent 66%);
  background-size: 250% 100%; background-position: 130% 0; animation: pwReflect 9s ease-in-out infinite; }
@keyframes pwReflect { 0% { background-position: 135% 0; } 100% { background-position: -35% 0; } }
.pw-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1); transition: transform 1400ms cubic-bezier(0.22,1,0.36,1); }
.pw-hero__media:hover .pw-video { transform: scale(1.04); }
.pw-media__scrim { position: absolute; inset: 0; z-index: 4; pointer-events: none; border-radius: inherit; background: linear-gradient(180deg, rgba(5,5,7,0.1) 0%, rgba(5,5,7,0) 45%, rgba(5,5,7,0.5) 100%); }
@media (max-width: 600px) { .pw-hero__media { border-radius: 18px; } }

/* ---- 2 / 6 · CARD GRID ---- */
.pw-grid { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--border-subtle); border: 1px solid var(--border-subtle); }
@media (min-width: 640px) { .pw-grid--4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .pw-grid--4 { grid-template-columns: repeat(4, 1fr); } }
.pw-card { position: relative; background: var(--mg-black); padding: clamp(24px, 2.4vw, 36px); transition: background 0.5s var(--ease-out); }
.pw-card:hover { background: #0c0c0d; }
.pw-card__n { font-family: var(--font-label); font-size: 12px; font-weight: var(--fw-semibold); letter-spacing: 0.1em; color: var(--mg-orange); }
.pw-card__t { margin-top: clamp(28px, 3vw, 44px); font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: clamp(1.18rem, 1.5vw, 1.5rem); line-height: 1.12; letter-spacing: -0.01em; color: var(--text-primary); }
.pw-card--geo .pw-card__t { margin-top: 0; }
.pw-card__d { margin-top: 14px; font-size: clamp(0.96rem, 1.05vw, 1.08rem); line-height: 1.55; color: var(--text-muted); }
.pw-card::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--mg-orange); transition: width 0.5s var(--ease-out); }
.pw-card:hover::after { width: 100%; }

/* ---- 3 · WHY MOST FAIL ---- */
.pw-fails { display: grid; grid-template-columns: 1fr; gap: 0; }
@media (min-width: 860px) { .pw-fails { grid-template-columns: 1fr 1fr; column-gap: clamp(40px, 5vw, 80px); } }
.pw-fail { padding: clamp(22px, 2.6vw, 32px) 0; border-top: 1px solid var(--border-subtle); }
.pw-fail__t { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: clamp(1.15rem, 1.5vw, 1.5rem); letter-spacing: -0.01em; color: var(--text-primary); }
.pw-fail__x { position: relative; width: 16px; height: 16px; flex: none; }
.pw-fail__x::before, .pw-fail__x::after { content: ""; position: absolute; top: 50%; left: 0; width: 100%; height: 1.5px; background: var(--mg-orange); }
.pw-fail__x::before { transform: rotate(45deg); } .pw-fail__x::after { transform: rotate(-45deg); }
.pw-fail__d { margin-top: 12px; font-size: clamp(0.98rem, 1.05vw, 1.1rem); line-height: 1.55; color: var(--text-muted); max-width: 48ch; }

/* ---- 4 · STACK ---- */
.pw-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border-subtle); border: 1px solid var(--border-subtle); }
@media (min-width: 720px) { .pw-stack { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1080px) { .pw-stack { grid-template-columns: repeat(4, 1fr); } }
.pw-tech { background: var(--mg-black); padding: clamp(18px, 1.9vw, 26px); transition: background 0.5s var(--ease-out); }
.pw-tech:hover { background: #0c0c0d; }
.pw-tech__t { font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: clamp(1.05rem, 1.3vw, 1.3rem); letter-spacing: -0.01em; color: var(--text-primary); }
.pw-tech__d { margin-top: 7px; font-family: var(--font-label); font-size: 12px; letter-spacing: 0.02em; color: var(--text-faint); }

/* ---- 5 · PERFORMANCE ---- */
.pw-stats { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3vw, 44px) clamp(20px, 3vw, 40px); }
@media (min-width: 860px) { .pw-stats { grid-template-columns: repeat(4, 1fr); } }
.pw-stat__v { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: clamp(2.6rem, 5vw, 4.2rem); line-height: 0.9; letter-spacing: -0.03em; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.pw-stat__c { margin-top: 14px; font-size: clamp(0.95rem, 1.05vw, 1.08rem); line-height: 1.45; color: var(--text-muted); max-width: 26ch; }
.pw-topics { list-style: none; margin: clamp(40px, 5vw, 64px) 0 0; padding: clamp(28px, 3vw, 40px) 0 0; border-top: 1px solid var(--border-subtle); display: flex; flex-wrap: wrap; gap: 10px 12px; }
.pw-topics li { font-family: var(--font-label); font-size: 13px; letter-spacing: 0.02em; color: var(--text-secondary); padding: 9px 15px; border: 1px solid var(--border-subtle); border-radius: 999px; }

/* ---- 6 · GEO accent ---- */
.pw-geo .pw-card--geo:hover { background: rgba(255,90,44,0.04); }

/* ---- 7 · INDUSTRIES ---- */
.pw-ind { display: flex; flex-wrap: wrap; gap: 12px; }
.pw-ind__tag { font-family: var(--font-display); font-weight: var(--fw-medium); font-size: clamp(1.1rem, 1.7vw, 1.7rem); letter-spacing: -0.01em; color: var(--text-secondary); padding: 12px 22px; border: 1px solid var(--border-subtle); border-radius: 999px; transition: color 0.5s var(--ease-out), border-color 0.5s var(--ease-out), background 0.5s var(--ease-out); }
.pw-ind__tag:hover { color: var(--text-primary); border-color: rgba(255,90,44,0.4); background: rgba(255,90,44,0.05); }

/* ---- 8 · CUSTOM VS TEMPLATE ---- */
.pw-vs { display: grid; grid-template-columns: 1fr; gap: clamp(16px, 2vw, 24px); }
@media (min-width: 760px) { .pw-vs { grid-template-columns: 1fr 1fr; } }
.pw-vs__col { padding: clamp(26px, 3vw, 40px); border: 1px solid var(--border-subtle); border-radius: 18px; }
.pw-vs__col--good { border-color: rgba(255,90,44,0.35); background: rgba(255,90,44,0.04); box-shadow: 0 30px 70px -50px rgba(255,90,44,0.4); }
.pw-vs__label { font-family: var(--font-label); font-size: 12px; font-weight: var(--fw-semibold); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); margin-bottom: clamp(18px, 2vw, 26px); }
.pw-vs__col--good .pw-vs__label { color: var(--mg-orange); }
.pw-vs__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: clamp(13px, 1.4vw, 18px); }
.pw-vs__col li { display: flex; align-items: center; gap: 13px; font-family: var(--font-display); font-weight: var(--fw-medium); font-size: clamp(1.05rem, 1.3vw, 1.32rem); letter-spacing: -0.01em; color: var(--text-secondary); }
.pw-vs__col--good li { color: var(--text-primary); }
.pw-vs__mark { width: 26px; height: 26px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.pw-vs__mark--bad { background: rgba(255,255,255,0.05); color: var(--text-faint); }
.pw-vs__mark--good { background: rgba(255,90,44,0.16); color: var(--mg-orange); }

/* ---- 9 · FAQ ---- */
.pw-faq { border-top: 1px solid var(--border-subtle); }
.pw-faq__item { border-bottom: 1px solid var(--border-subtle); }
.pw-faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; text-align: left; cursor: pointer;
  background: none; border: none; padding: clamp(22px, 2.6vw, 32px) 0;
  font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: clamp(1.15rem, 1.7vw, 1.6rem); line-height: 1.2; letter-spacing: -0.01em; color: var(--text-primary);
  transition: color 0.4s var(--ease-out); }
.pw-faq__q:hover { color: var(--mg-orange); }
.pw-faq__plus { position: relative; width: 18px; height: 18px; flex: none; }
.pw-faq__plus::before, .pw-faq__plus::after { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); background: currentColor; transition: transform 0.45s var(--ease-out), opacity 0.45s var(--ease-out); }
.pw-faq__plus::before { width: 16px; height: 1.5px; }
.pw-faq__plus::after { width: 1.5px; height: 16px; }
.pw-faq__item.is-open .pw-faq__plus::after { transform: translate(-50%,-50%) rotate(90deg); opacity: 0; }
.pw-faq__item.is-open .pw-faq__q { color: var(--mg-orange); }
.pw-faq__a { max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.55s var(--ease-out), opacity 0.45s var(--ease-out); }
.pw-faq__item.is-open .pw-faq__a { max-height: 360px; opacity: 1; }
.pw-faq__a p { padding: 0 0 clamp(24px, 2.8vw, 34px); max-width: 70ch; font-size: clamp(1rem, 1.15vw, 1.18rem); line-height: 1.6; color: var(--text-muted); }

/* ---- 10 · PROJECTS ---- */
.pw-projects { display: grid; grid-template-columns: 1fr; gap: clamp(16px, 2vw, 26px); }
@media (min-width: 720px) { .pw-projects { grid-template-columns: repeat(3, 1fr); } }
.pw-proj { display: block; text-decoration: none; }
.pw-proj__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 16px; border: 1px solid var(--border-subtle); background: var(--mg-ink-900); }
.pw-proj__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.01); transition: transform 1100ms cubic-bezier(0.22,1,0.36,1); }
.pw-proj:hover .pw-proj__video { transform: scale(1.06); }
.pw-proj__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,5,7,0.05) 0%, rgba(5,5,7,0) 40%, rgba(5,5,7,0.55) 100%); }
.pw-proj__foot { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-top: 16px; }
.pw-proj__name { font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: clamp(1.1rem, 1.3vw, 1.32rem); letter-spacing: -0.01em; color: var(--text-primary); transition: color 0.4s var(--ease-out); }
.pw-proj:hover .pw-proj__name { color: var(--mg-orange); }
.pw-proj__role { font-family: var(--font-label); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-faint); text-align: right; }

/* ---- 11 · FINAL CTA ---- */
.pw-final { padding: clamp(72px, 10vw, 160px) 0 clamp(40px, 6vw, 90px); border-top: 1px solid var(--border-subtle); text-align: center; }
.pw-final__h { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: clamp(2.4rem, 6.5vw, 5.6rem); line-height: 0.96; letter-spacing: var(--tracking-display); color: var(--text-primary); max-width: 18ch; margin: 0 auto; text-wrap: balance; }
.pw-final__h .accent { color: var(--mg-orange); }
.pw-final__sub { margin: clamp(24px, 3vw, 36px) auto 0; max-width: 52ch; font-size: clamp(1.08rem, 1.3vw, 1.35rem); line-height: 1.55; color: var(--text-muted); }
.pw-final__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: clamp(34px, 4vw, 52px); }

@media (prefers-reduced-motion: reduce) {
  .pw-hero__media::before { animation: none; }
  .pw-video, .pw-proj__video { transition: none; }
}
