/* Brand website landing — light open family (same rhythm as Social Media). */

body.wbh-standalone-landing {
  --wbh-ink: #111216;
  --wbh-paper: #ffffff;
  --wbh-soft: #f4f6f8;
  --wbh-lime: #c6f135;
  --wbh-lime-dim: rgba(198, 241, 53, 0.22);
  --wbh-muted: #5a616c;
  --wbh-line: rgba(17, 18, 22, 0.1);
  --wbh-radius: 16px;
  --wbh-max: min(1120px, 100%);
  --page-gutter: clamp(1.25rem, 3.75vw, 3.25rem);
  background: var(--wbh-paper);
  color: var(--wbh-ink);
}

body.wbh-standalone-landing .site-wrap::before {
  display: none;
}

body.wbh-standalone-landing .site-main {
  padding-top: var(--site-header-offset, 5rem);
  background: var(--wbh-paper);
}

.wbh-land-root {
  --wbh-ink: #111216;
  --wbh-paper: #ffffff;
  --wbh-soft: #f4f6f8;
  --wbh-lime: #c6f135;
  --wbh-muted: #5a616c;
  --wbh-line: rgba(17, 18, 22, 0.1);
  --wbh-max: min(1120px, 100%);
  color: var(--wbh-ink);
  background: var(--wbh-paper);
}

.wbh-kicker {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wbh-muted);
  margin: 0 0 0.65rem;
}

.wbh-section-inner {
  width: var(--wbh-max, min(1120px, 100%));
  margin-inline: auto;
}

.wbh-land-root h2 {
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  line-height: 1.25;
  margin-top: 0.35rem;
  color: var(--wbh-ink);
  max-width: 22em;
}

.wbh-lead {
  max-width: 42rem;
  color: var(--wbh-muted);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-top: 0.75rem;
}

.wbh-n {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--wbh-muted);
  margin-bottom: 0.45rem;
}

/* —— Hero: light, open, no device frame —— */
.wbh-hero--light {
  padding: clamp(1.25rem, 3vw, 2rem) var(--page-gutter) clamp(2rem, 4vw, 3rem);
  background: linear-gradient(180deg, #fafbfc 0%, var(--wbh-paper) 72%);
  color: var(--wbh-ink);
}

.wbh-hero .breadcrumbs {
  max-width: min(1200px, 100%);
  margin: 0 auto 1.15rem;
  color: var(--wbh-muted);
}

.wbh-hero .breadcrumbs a {
  color: var(--wbh-ink);
}

.wbh-hero-grid {
  max-width: min(1200px, 100%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(260px, 0.92fr);
  gap: clamp(1.5rem, 4vw, 3.25rem);
  align-items: center;
}

.wbh-hero-copy h1 {
  font-family: var(--font-heading, "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif);
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--wbh-ink);
  max-width: 12em;
  margin: 0;
}

.wbh-hero-lead {
  margin-top: 1.1rem;
  max-width: 38rem;
  color: var(--wbh-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.wbh-hero-price {
  margin-top: 1.15rem;
  font-size: 1rem;
  color: var(--wbh-muted);
  max-width: 38rem;
  line-height: 1.6;
}

.wbh-hero-price mark {
  background: var(--wbh-lime);
  color: var(--wbh-ink);
  padding: 0.12em 0.4em;
  border-radius: 6px;
  font-weight: 700;
}

.wbh-kpi-strip {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem 1.25rem;
  margin: 1.5rem 0 0;
  padding: 0;
}

.wbh-kpi-strip li {
  border-top: 3px solid var(--wbh-lime);
  padding-top: 0.7rem;
  background: transparent;
}

.wbh-kpi-strip strong {
  display: block;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-weight: 700;
  color: var(--wbh-ink);
  line-height: 1.3;
}

.wbh-kpi-strip span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: var(--wbh-muted);
  line-height: 1.5;
}

.wbh-kpi-note {
  margin-top: 0.9rem;
  font-size: 0.84rem;
  color: var(--wbh-muted);
  line-height: 1.6;
  max-width: 42rem;
}

.wbh-hero-actions,
.wbh-scope-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.wbh-hero-visual {
  margin: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.wbh-hero-visual img {
  display: block;
  width: min(100%, 34rem);
  height: auto;
  margin-inline: auto;
}

/* —— Carousel: light, images sit open —— */
.wbh-carousel {
  padding: clamp(2.25rem, 4.5vw, 3.5rem) var(--page-gutter, 1.25rem);
  background: var(--wbh-soft);
  color: var(--wbh-ink);
  scroll-margin-top: calc(var(--site-header-offset, 5rem) + 0.5rem);
}

.wbh-carousel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.4vw, 2rem);
  margin-top: 1.75rem;
  overflow: visible;
}

@media (min-width: 1100px) {
  .wbh-carousel-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.wbh-carousel-card {
  margin: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
  position: relative;
  z-index: 1;
  transition: z-index 0s linear 0.35s;
}

.wbh-carousel-card.is-wbh-armed {
  z-index: 8;
  transition: z-index 0s;
}

.wbh-carousel-open {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  color: inherit;
  transform-origin: center center;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.wbh-carousel-open:focus-visible {
  outline: 2px solid var(--wbh-ink);
  outline-offset: 3px;
}

.wbh-carousel-open img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  transform-origin: center center;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

/* Hover linger ~1s → same centered lightbox as click (armed = brief preview only) */
.wbh-carousel-card.is-wbh-armed .wbh-carousel-open img {
  transform: scale(1.03);
}

@media (prefers-reduced-motion: reduce) {
  .wbh-carousel-open,
  .wbh-carousel-open img {
    transition: none;
  }

  .wbh-carousel-card.is-wbh-armed .wbh-carousel-open img {
    transform: none;
  }
}

.wbh-carousel-card figcaption {
  padding: 0.7rem 0.1rem 0;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--wbh-ink);
}

/* * { margin:0 } kills UA dialog centering — force viewport center */
.wbh-lightbox {
  position: fixed;
  inset: 0;
  width: min(520px, 92vw);
  height: fit-content;
  max-height: 92vh;
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.wbh-lightbox::backdrop {
  background: rgba(17, 18, 22, 0.72);
}

.wbh-lightbox img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
}

.wbh-lightbox p {
  margin: 0.65rem 0 0;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}

.wbh-lightbox-close {
  position: absolute;
  top: -0.2rem;
  right: 0;
  transform: translateY(-120%);
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* —— Open rails: lime rule, no card boxes —— */
.wbh-why,
.wbh-strategy,
.wbh-scope {
  padding: clamp(2.4rem, 5vw, 3.75rem) var(--page-gutter, 1.25rem);
  color: var(--wbh-ink);
  background: var(--wbh-paper);
}

.wbh-why,
.wbh-scope {
  background: var(--wbh-soft);
}

.wbh-why-grid,
.wbh-strategy-grid,
.wbh-scope-grid {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.35rem 1.5rem;
}

.wbh-why-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wbh-strategy-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wbh-scope-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wbh-why-grid > li,
.wbh-strategy-grid > li,
.wbh-scope-grid > li {
  border: 0;
  border-top: 3px solid var(--wbh-lime);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0.85rem 0 0;
}

.wbh-why-grid h3,
.wbh-strategy-grid h3,
.wbh-scope-grid h3 {
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
  line-height: 1.35;
  color: var(--wbh-ink);
}

.wbh-why-grid p,
.wbh-strategy-grid p,
.wbh-scope-grid p {
  margin: 0;
  color: var(--wbh-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.wbh-callout {
  margin: 1.5rem 0 0;
  display: inline;
  padding: 0 0.08em;
  background-image: linear-gradient(180deg, transparent 62%, var(--wbh-lime) 62% 92%, transparent 92%);
  color: var(--wbh-ink);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.6;
  box-shadow: none;
  border-radius: 0;
}

.wbh-scope {
  scroll-margin-top: calc(var(--site-header-offset, 5rem) + 0.5rem);
}

/* —— Portfolio and later bands: open, no browser chrome —— */
body.wbh-standalone-landing .website-showcase-body {
  padding-top: clamp(2rem, 4vw, 3rem);
}

body.wbh-standalone-landing .website-work-portfolio {
  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: none;
}

body.wbh-standalone-landing .website-intro-stats li {
  border: 0;
  background: transparent;
  border-top: 3px solid var(--wbh-lime);
  padding: 0.75rem 0 0;
  border-radius: 0;
  box-shadow: none;
}

body.wbh-standalone-landing .website-showcase-intro,
body.wbh-standalone-landing .website-deliverables,
body.wbh-standalone-landing .website-capability-grid,
body.wbh-standalone-landing .website-process-showcase,
body.wbh-standalone-landing .faq-section.website-faq {
  width: min(1180px, calc(100% - (var(--page-gutter) * 2)));
  margin-inline: auto;
}

body.wbh-standalone-landing .website-showcase-page .website-work-card,
body.wbh-standalone-landing .website-showcase-page .website-work-card:hover {
  background: transparent;
  border: 0;
  box-shadow: none;
  transform: none;
  border-radius: 0;
}

body.wbh-standalone-landing .website-work-browser {
  background: transparent;
}

body.wbh-standalone-landing .website-work-browser-bar {
  display: none;
}

body.wbh-standalone-landing .website-showcase-page .website-work-media {
  background: var(--wbh-soft);
  border-radius: 12px;
}

body.wbh-standalone-landing .website-showcase-page .website-work-card:hover .website-work-media img {
  transform: none;
}

body.wbh-standalone-landing .website-showcase-page .website-work-meta {
  background: transparent;
  border-top: 0;
  padding: 0.8rem 0.1rem 0;
}

body.wbh-standalone-landing .website-deliverables-grid article,
body.wbh-standalone-landing .website-capability-card {
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  border-top: 3px solid var(--wbh-lime);
  min-height: 0;
}

body.wbh-standalone-landing .website-deliverables-grid article {
  padding: 0.9rem 0 0.2rem;
}

body.wbh-standalone-landing .website-capability-demo {
  border-bottom: 0;
  background: transparent;
  min-height: 7.5rem;
}

body.wbh-standalone-landing .website-capability-copy {
  padding: 0.4rem 0 1rem;
}

body.wbh-standalone-landing .website-showcase-intro,
body.wbh-standalone-landing .prose-section,
body.wbh-standalone-landing .revampable-inline {
  background: transparent;
}

@media (max-width: 960px) {
  .wbh-hero-grid,
  .wbh-why-grid,
  .wbh-strategy-grid,
  .wbh-scope-grid {
    grid-template-columns: 1fr;
  }

  .wbh-kpi-strip {
    grid-template-columns: 1fr 1fr;
  }

  .wbh-hero-visual img {
    width: min(100%, 22rem);
  }
}

@media (max-width: 700px) {
  .wbh-carousel-grid {
    grid-template-columns: 1fr;
  }

  .wbh-carousel-open img {
    max-width: 28rem;
    margin-inline: auto;
  }
}

@media (max-width: 560px) {
  .wbh-kpi-strip {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wbh-carousel-open,
  .wbh-carousel-open img {
    transition: none;
  }
}
