/* Stage 2: shared portfolio, services and atmospheric section treatment.
   Existing business copy, tokens, typefaces and Stage 1 device skin are retained. */
body.wbh-stage2.motion-enabled .reveal,
body.wbh-stage2 .reveal {
  opacity: 1 !important;
  transform: none;
  transition: none;
  transition-delay: 0s !important;
}
.wbh-stage2 .wbh-lit-section {
  position: relative;
  isolation: isolate;
  background: linear-gradient(165deg, #101410, #0a1013 57%, #080b0d);
  border-block: 1px solid rgba(244, 215, 156, .055);
}
.wbh-lit-section::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
  background: radial-gradient(ellipse at 91% 24%, rgba(217, 168, 79, .09), transparent 46%), radial-gradient(ellipse at 8% 100%, rgba(43, 140, 255, .035), transparent 45%);
  transform: translate3d(0, var(--ambient-y, 0px), 0);
}
.wbh-lit-section::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: auto 7% 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244, 215, 156, .24), transparent);
}
.wbh-stage2 .wbh-portfolio-grid {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 3.5rem);
}
.wbh-stage2 .full-case.wbh-portfolio-grid {
  padding: clamp(1.1rem, 3vw, 2.5rem);
  background: linear-gradient(145deg, rgba(29, 31, 24, .88), rgba(9, 15, 17, .96));
}
.wbh-portfolio-grid > * { min-width: 0; }
.wbh-stage2 .callout-grid > .wbh-project-media,
.wbh-stage2 .full-case > .wbh-project-media {
  aspect-ratio: auto;
  overflow: visible;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.wbh-portfolio-grid h2 { max-width: 20ch; }
.wbh-portfolio-copy .hero-actions { gap: .75rem; flex-wrap: wrap; }
.wbh-portfolio-copy .btn { min-height: 48px; }
.wbh-project-media {
  --device-y: 0px;
  --device-rx: 6deg;
  --device-ry: -7deg;
  --device-rz: -3deg;
  --device-scale: 1;
  position: relative;
  width: 100%;
  min-width: 0;
  margin: 0;
}
.wbh-project-stage { position: relative; height: 500px; perspective: 1400px; perspective-origin: 50% 40%; }
.wbh-project-stage::before {
  content: "";
  position: absolute;
  inset: 5% -2% 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 55% 55%, rgba(217, 168, 79, .12), transparent 65%);
}
.wbh-project-rig {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: translate3d(0, var(--project-y, 0px), 0) rotateX(var(--project-rx, 0deg)) rotateY(var(--project-ry, 0deg));
}
.wbh-project-rig .wbh-laptop { position: absolute; width: 87%; left: 4%; top: 145px; margin: 0; }
.wbh-project-stage .wbh-laptop-screen { aspect-ratio: var(--screen-ratio, 1895 / 859); }
.wbh-project-stage .wbh-laptop-screen img { object-fit: contain; width: 100%; height: 100%; }
.wbh-project-phone {
  position: absolute;
  z-index: 2;
  width: 29%;
  max-width: 190px;
  top: 5px;
  right: 3%;
  padding: 8px;
  border: 1px solid #ac9870;
  border-radius: 27px;
  background: linear-gradient(140deg, #625c49, #20261f 28%, #171d18 70%, #88734d);
  box-shadow: 2px 2px 0 #d2bb88, 4px 4px 0 #1b211b, 12px 22px 38px #0008;
  /* Clear the laptop lid's rotated depth so the screens never intersect. */
  transform: translate3d(0, var(--phone-lift, 0px), 90px) rotate(6deg);
  transform-style: preserve-3d;
  pointer-events: none;
}
.wbh-phone-display { position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 941 / 1672; border-radius: 19px; border: 1px solid #080c09; background: #080b09; }
.wbh-phone-display::after { content: ""; position: absolute; top: 6px; left: 35%; width: 30%; height: 5px; border-radius: 10px; background: #030605; pointer-events: none; }
.wbh-phone-display picture, .wbh-phone-display img { width: 100%; height: 100%; }
.wbh-stage2 .wbh-phone-display img { object-fit: contain; }
.wbh-image-frame { position: relative; isolation: isolate; }
.wbh-image-frame[data-asset-state="unavailable"] picture { visibility: hidden; }
.wbh-image-fallback {
  position: absolute;
  z-index: -1;
  inset: 0;
  display: grid;
  place-content: center;
  padding: 1rem;
  text-align: center;
  color: var(--gold-bright);
  background: radial-gradient(ellipse at 50% 25%, #28271b, #080d0a 80%);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(.8rem, 1.7vw, 1.3rem);
  line-height: 1.45;
}
.wbh-project-caption { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .65rem; padding-top: .5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .7rem; }
.wbh-project-caption .proof-label { position: static; margin: 0; font-size: .7rem; font-weight: 600; text-transform: none; letter-spacing: 0; border: 0; backdrop-filter: none; background: transparent; padding: .3rem 0; color: var(--gold-bright); }
.wbh-project-caption span + span { color: var(--muted); }
.wbh-page-motion { display: flex; justify-content: flex-end; margin-top: 1.5rem; }
.wbh-page-motion .wbh-motion-toggle { min-height: 44px; }
.wbh-stage2 .wbh-services-grid { gap: 1.25rem; }
.wbh-stage2 .wbh-interactive-card {
  position: relative;
  border-color: rgba(244, 215, 156, .15);
  background: radial-gradient(ellipse at 95% 0%, rgba(217, 168, 79, .065), transparent 65%), linear-gradient(150deg, #151914, #0b1013);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
  transition-delay: 0s !important;
}
.wbh-stage2 .wbh-interactive-card:focus-within { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(244, 215, 156, .18), 0 16px 32px #0004; }
.wbh-stage2 .service-row { gap: clamp(1.75rem, 5vw, 4rem); }
.wbh-stage2 .service-copy { min-width: 0; }
.wbh-stage2 .service-row .service-visual { border-color: rgba(244, 215, 156, .22); }
.wbh-stage2 .wbh-image-frame picture { position: relative; }
.wbh-stage2 .service-visual.wbh-image-frame picture { aspect-ratio: var(--shot-ratio, 1895 / 859); }
.wbh-stage2 .service-visual.wbh-image-frame img { object-fit: contain; }
.wbh-stage2 .wbh-gallery-shot { aspect-ratio: auto; padding: 12px; }
.wbh-stage2 .wbh-gallery-shot .proof-label { position: static; margin-bottom: .7rem; font-size: .61rem; }
.wbh-stage2 .wbh-gallery-shot picture { aspect-ratio: var(--shot-ratio, 1895 / 859); overflow: hidden; border-radius: 8px; background: #090d0c; }
.wbh-stage2 .wbh-gallery-shot img { width: 100%; height: 100%; object-fit: contain; }
.wbh-stage2 .wbh-gallery-shot figcaption { position: static; padding: .85rem 0 .15rem; color: var(--muted); }
@media (hover: hover) and (pointer: fine) {
  html[data-wbh-motion="running"] .wbh-stage2 .wbh-interactive-card:hover { border-color: rgba(244, 215, 156, .55); box-shadow: 0 14px 36px #0005, 0 0 32px rgba(217, 168, 79, .035); transform: translateY(-3px); }
}
html[data-wbh-motion="paused"] .wbh-stage2 *,
html[data-wbh-motion="paused"] .wbh-stage2 *::before,
html[data-wbh-motion="paused"] .wbh-stage2 *::after,
html[data-wbh-motion="hidden"] .wbh-stage2 *,
html[data-wbh-motion="reduced"] .wbh-stage2 * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html[data-wbh-motion="paused"] .wbh-stage2 .btn:hover,
html[data-wbh-motion="paused"] .wbh-stage2 .wbh-interactive-card:hover { transform: none; }
html[data-wbh-motion="paused"], html[data-wbh-motion="reduced"] { scroll-behavior: auto; }
@media (max-width: 960px) {
  .wbh-stage2 .wbh-portfolio-grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .wbh-project-stage { max-width: 680px; margin-inline: auto; height: 480px; }
  .wbh-project-rig .wbh-laptop { width: 84%; left: 8%; top: 120px; }
  .wbh-project-phone { width: 32%; max-width: 194px; top: 7px; right: 5%; transform: translate3d(0, var(--phone-lift, 0px), 70px) rotate(4deg); }
  .wbh-stage2 .wbh-services-grid { gap: 1rem; }
  .wbh-lit-section::before { background: radial-gradient(ellipse at 100% 15%, rgba(217, 168, 79, .055), transparent 55%); }
}
@media (max-width: 600px) {
  .wbh-project-stage { height: clamp(300px, 92vw, 390px); }
  .wbh-project-rig .wbh-laptop { width: 84%; left: 8%; top: 105px; }
  .wbh-project-phone { width: 43%; max-width: 174px; top: 3px; left: 4%; right: auto; padding: 6px; border-radius: 23px; transform: translate3d(0, var(--phone-lift, 0px), 40px) rotate(-4deg); box-shadow: 1px 1px 0 #d2bb88, 3px 3px 0 #1b211b, 8px 12px 22px #0007; }
  .wbh-phone-display { border-radius: 17px; }
  .wbh-project-caption { gap: .5rem; font-size: .65rem; }
  .wbh-project-caption .proof-label { font-size: .61rem; }
  .wbh-stage2 .wbh-portfolio-copy .hero-actions { display: grid; grid-template-columns: 1fr; }
  .wbh-stage2 .wbh-portfolio-copy .hero-actions .btn { width: 100%; min-height: 48px; }
  .wbh-stage2 .full-case.wbh-portfolio-grid { border-radius: 20px; }
  .wbh-stage2 .capability-card, .wbh-stage2 .feature-teaser-card { padding: 1.35rem; }
  .wbh-stage2 .service-copy h3 { font-size: 1.9rem; }
  .wbh-stage2 .service-boundary { font-size: .8rem; }
  .wbh-stage2 .wbh-gallery-shot { padding: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .wbh-stage2 [data-wbh-enter], .wbh-stage2 .wbh-interactive-card { animation: none !important; transition: none !important; transform: none !important; }
  .wbh-project-rig { transform: none; }
  .wbh-lit-section::before { transform: none; }
}
@supports not (transform-style: preserve-3d) { .wbh-project-rig, .wbh-project-phone { transform: none; } }
