/* ====== Creative Scope — Web Design page ====== */
/* Scoped styles for the web design page. Continues the homepage system. */

/* ========== Hero ========== */
/* Reuses the .hero + .hero-reel system from the homepage; only page-specific
   bits (headline scale, metrics row, tags list, breadcrumb) live here. */

/* Tighter top padding than homepage; page already sits below the sticky nav */
.wd-hero {
  padding-top: clamp(24px, 3vw, 48px) !important;
  padding-bottom: clamp(32px, 4vw, 64px) !important;
}

.wd-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: clamp(20px, 2.5vw, 32px);
  flex-wrap: wrap;
  gap: 12px;
  position: relative;
  z-index: 2;
}
.wd-hero-crumb {
  font-size: 11px;
  color: var(--fg-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.wd-hero-crumb a { color: var(--fg-muted); }
.wd-hero-crumb a:hover { color: var(--fg); }
.crumb-sep { opacity: 0.4; }

.wd-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 58%;
}
@media (max-width: 1100px) { .wd-hero-copy { max-width: 62%; } }
@media (max-width: 860px)  { .wd-hero-copy { max-width: 100%; } }

.wd-hero-head {
  font-size: clamp(52px, 8vw, 120px);
  margin-top: 16px;
}

/* Keep each line on one row — scales down if viewport is narrow */
.wd-hero-head .line > span { white-space: nowrap; }

/* Safety: ensure hero text renders — kill animations, show statically */
.wd-hero-head .line { overflow: visible !important; }
.wd-hero-head .line span,
.wd-hero-head .line > span {
  animation: none !important;
  transform: none !important;
  opacity: 1 !important;
}

.wd-hero-lede {
  margin: 24px 0 22px;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.55;
  color: var(--fg-soft);
  max-width: 52ch;
}

.wd-hero-tags {
  list-style: none;
  padding: 0; margin: 0 0 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.wd-hero-tags li { display: inline-flex; align-items: center; gap: 8px; }
.wd-hero-tags .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
}

/* CTAs live inside the copy column, under the bullet list */
.wd-hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Metrics row — full-bleed across .shell, four equal columns with dividers */
.wd-hero-metrics {
  margin-top: clamp(48px, 6vw, 80px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 2;
}
.wd-metric {
  padding: clamp(22px, 2.4vw, 32px) clamp(20px, 2vw, 28px);
  border-right: 1px solid var(--border);
}
.wd-metric:last-child { border-right: none; }
.wd-metric-k {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(44px, 5vw, 72px);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 10px;
}
.wd-metric-label {
  font-weight: 500;
  font-size: 15px;
  margin-bottom: 2px;
}
.wd-metric-sub {
  font-size: 11px;
  color: var(--fg-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
@media (max-width: 860px) {
  .wd-hero-metrics { grid-template-columns: repeat(2, 1fr); }
  .wd-metric:nth-child(2n) { border-right: none; }
  .wd-metric:nth-child(1), .wd-metric:nth-child(2) { border-bottom: 1px solid var(--border); }
}
@media (max-width: 480px) {
  .wd-hero-metrics { grid-template-columns: 1fr; }
  .wd-metric { border-right: none; border-bottom: 1px solid var(--border); }
  .wd-metric:last-child { border-bottom: none; }
  .wd-metric-k { font-size: 44px; }
}

/* ========== Pillars ========== */
.wd-pillars { padding: 120px 0 100px; }
.wd-pillars-head {
  max-width: 860px;
  margin-bottom: 72px;
}
.wd-pillars-head .h2 { margin-top: 20px; }
.wd-pillars-lede {
  margin-top: 20px;
  font-size: 18px;
  color: var(--fg-soft);
  max-width: 56ch;
}
.wd-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.wd-pillar {
  padding: 40px 32px 44px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: transparent;
  position: relative;
  transition: background 220ms ease;
}
.wd-pillar:hover { background: var(--bg-2); }
.wd-pillar-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.wd-pillar-num {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent);
  padding: 4px 9px;
  background: rgba(214,255,61,0.14);
  border: 1px solid rgba(214,255,61,0.3);
  border-radius: 3px;
}
[data-theme="light"] .wd-pillar-num { color: #3F5A00; }
.wd-pillar-rule {
  flex: 1;
  height: 1px;
  background: var(--border);
}
.wd-pillar-title {
  font-size: 22px;
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  text-wrap: balance;
}
.wd-pillar-body {
  color: var(--fg-soft);
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 20px;
}
.wd-pillar-tags {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.wd-pillar-tags li {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 9px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--fg-muted);
}

/* ========== Process ========== */
.wd-process {
  padding: 100px 0;
  background: var(--bg-2);
}
.wd-process-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 60px;
}
.wd-process-note {
  font-size: 16px;
  color: var(--fg-soft);
  line-height: 1.55;
  max-width: 46ch;
  justify-self: end;
}
.wd-process-rail {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 2px solid var(--fg);
}
.wd-step {
  text-align: left;
  padding: 28px 24px 32px;
  border-right: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  position: relative;
  transition: background 200ms ease;
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: inherit;
}
.wd-step:last-child { border-right: none; }
.wd-step:hover { background: var(--bg); }
.wd-step.is-active { background: var(--bg); }
.wd-step-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--fg-muted);
  letter-spacing: 0.08em;
}
.wd-step-n {
  font-size: 28px;
  font-weight: 500;
  color: var(--fg);
  letter-spacing: -0.02em;
}
.wd-step-week { font-size: 10px; text-transform: uppercase; }
.wd-step-name {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.wd-step-lede {
  font-size: 14px;
  color: var(--fg-soft);
}
.wd-step-body {
  margin-top: 8px;
}
.wd-step-body p {
  font-size: 14px;
  color: var(--fg-soft);
  line-height: 1.55;
  margin: 0 0 12px;
}
.wd-step-body ul {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.wd-step-body li {
  font-size: 13px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: var(--fg-soft);
}
.tick {
  color: var(--accent);
  font-size: 11px;
  padding-top: 2px;
  font-weight: 600;
}
.wd-step-rule {
  position: absolute;
  top: -2px; left: 0;
  width: 0; height: 4px;
  background: var(--accent);
  transition: width 320ms ease;
}
.wd-step.is-active .wd-step-rule { width: 100%; }

/* ========== Platforms (WP + Shopify) ========== */
.wd-platforms {
  padding: 120px 0 100px;
}
.wd-platforms-head {
  max-width: 760px;
  margin-bottom: 60px;
}
.wd-platforms-lede {
  margin-top: 20px;
  font-size: 17px;
  color: var(--fg-soft);
  max-width: 56ch;
}
.wd-platforms-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.wd-platform {
  padding: 36px 32px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}
.wd-platform::after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 160px; height: 160px;
  background: radial-gradient(circle at top right, rgba(214,255,61,0.08), transparent 60%);
  pointer-events: none;
}
.wd-platform-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 12px;
}
.wd-platform-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
}
.wd-platform-chip-wp { color: #21759B; }
.wd-platform-chip-shopify { color: #96BF48; }
[data-theme="dark"] .wd-platform-chip-wp { color: #6FB0D3; }
[data-theme="dark"] .wd-platform-chip-shopify { color: #B8E06B; }
.wd-platform-note {
  font-size: 10px;
  color: var(--fg-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.wd-platform-title {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 14px;
  text-wrap: balance;
  max-width: 20ch;
}
.wd-platform-body {
  color: var(--fg-soft);
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 22px;
}
.wd-platform-bullets {
  list-style: none;
  padding: 0; margin: 0 0 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wd-platform-bullets li {
  font-size: 14px;
  color: var(--fg-soft);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border);
}
.wd-platform-bullets li:last-child { border-bottom: none; }
.wd-platform-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--fg);
  transition: gap 200ms ease;
}
.wd-platform-link:hover { gap: 12px; }

/* ========== Addons ========== */
.wd-addons {
  padding: 120px 0;
  background: var(--bg-2);
}
.wd-addons-head {
  max-width: 760px;
  margin-bottom: 60px;
}
.wd-addons-lede {
  margin-top: 20px;
  font-size: 17px;
  color: var(--fg-soft);
  max-width: 54ch;
}
.wd-addons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.wd-addon {
  padding: 36px 32px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.wd-addon-glyph {
  flex-shrink: 0;
  width: 64px; height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  color: var(--fg);
}
.wd-addon-title {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
}
.wd-addon-tagline {
  font-size: 14px;
  color: var(--fg-muted);
  margin: 0 0 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
.wd-addon-copy {
  font-size: 15px;
  color: var(--fg-soft);
  line-height: 1.5;
  margin: 0 0 16px;
}
.wd-addon-points {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.wd-addon-points li {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  padding: 5px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
}

/* ========== FAQ ========== */
.wd-faq { padding: 120px 0 100px; }
.wd-faq-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  gap: 80px;
  align-items: start;
}
.wd-faq-side {
  position: sticky;
  top: 100px;
}
.wd-faq-lede {
  margin-top: 20px;
  font-size: 16px;
  color: var(--fg-soft);
  line-height: 1.55;
  max-width: 42ch;
}
.wd-faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-strong);
}
.wd-faq-item {
  border-bottom: 1px solid var(--border);
}
.wd-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 26px 4px;
  text-align: left;
  cursor: pointer;
  transition: color 200ms ease;
}
.wd-faq-q:hover { color: var(--accent-ink); }
[data-theme="dark"] .wd-faq-q:hover { color: var(--accent); }
.wd-faq-n {
  font-size: 11px;
  color: var(--fg-muted);
  letter-spacing: 0.1em;
  flex-shrink: 0;
}
.wd-faq-qtext {
  flex: 1;
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.wd-faq-pm {
  position: relative;
  width: 18px; height: 18px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.wd-faq-pm .bar {
  position: absolute;
  background: var(--fg);
  transition: transform 240ms ease, opacity 240ms ease;
}
.wd-faq-pm .bar-h { width: 100%; height: 1.5px; }
.wd-faq-pm .bar-v { width: 1.5px; height: 100%; }
.wd-faq-item.is-open .wd-faq-pm .bar-v { transform: scaleY(0); opacity: 0; }

.wd-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 360ms ease;
}
.wd-faq-item.is-open .wd-faq-a {
  max-height: 400px;
}
.wd-faq-a p {
  margin: 0 0 24px 34px;
  color: var(--fg-soft);
  font-size: 15px;
  line-height: 1.65;
  max-width: 62ch;
}

/* ========== Work showcase ========== */
.wd-work { padding: 120px 0 100px; }
.wd-work-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: flex-end;
  margin-bottom: 60px;
  gap: 48px;
}
.wd-work-note {
  font-size: 14px;
  color: var(--fg-soft);
  line-height: 1.55;
  max-width: 34ch;
  margin: 0;
  padding-bottom: 6px;
}

/* ---- Shared meta ---- */
.wd-dev-num {
  font-size: 11px;
  color: var(--fg-muted);
  letter-spacing: 0.12em;
}
.wd-dev-sector {
  font-size: 10px;
  color: var(--fg-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.wd-dev-title {
  font-family: var(--font-sans);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 10px 0 14px;
}
.wd-dev-url {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--fg);
  padding: 9px 14px 9px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  margin-top: 18px;
  transition: background 220ms ease, color 220ms ease;
}
.wd-dev-url-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,0.15);
}
a.wd-dev-featured:hover .wd-dev-url,
a.wd-dev-card:hover .wd-dev-url {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

/* ========== Variant A: Device composite gallery ========== */
.wd-dev-featured {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 40px 40px 40px 40px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  transition: border-color 220ms ease;
  text-decoration: none;
  color: inherit;
}
.wd-dev-featured:hover { border-color: var(--fg); }
.wd-dev-featured::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 85% 50%, color-mix(in oklab, var(--accent) 18%, transparent), transparent 55%);
  pointer-events: none;
  opacity: 0.55;
}
.wd-dev-featured-img {
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.wd-dev-featured-img img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  transition: transform 500ms ease;
}
.wd-dev-featured:hover .wd-dev-featured-img img {
  transform: translateY(-4px) scale(1.015);
}
.wd-dev-featured-meta {
  position: relative;
  z-index: 1;
}
.wd-dev-featured-meta .wd-dev-sector { margin-left: 0; }

.wd-dev-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
/* Handle orphan last rows — 3-col grid. When the count mod 3 leaves
   1 or 2 stragglers, stretch them so the bottom row is even. */
.wd-dev-grid > .wd-dev-card:nth-last-child(1):nth-child(3n+1) {
  grid-column: span 3;
}
.wd-dev-grid > .wd-dev-card:nth-last-child(2):nth-child(3n+1),
.wd-dev-grid > .wd-dev-card:nth-last-child(2):nth-child(3n+1) ~ .wd-dev-card {
  grid-column: span 1;
}
/* When last tile spans 3 cols (orphan row), render it as a horizontal
   editorial row — device on left, meta on right — desktop only. */
@media (min-width: 1101px) {
  .wd-dev-grid > .wd-dev-card:last-child:nth-child(3n+1) {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    align-items: center;
    gap: 48px;
    padding: 40px;
  }
  .wd-dev-grid > .wd-dev-card:last-child:nth-child(3n+1) .wd-dev-card-img {
    margin-bottom: 0;
  }
}
.wd-dev-card {
  padding: 28px 28px 28px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: transparent;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: background 220ms ease;
}
.wd-dev-card:hover { background: var(--bg-2); }
.wd-dev-card-img {
  position: relative;
  margin-bottom: 20px;
  overflow: hidden;
}
.wd-dev-card-img img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  transition: transform 420ms ease;
}
.wd-dev-card:hover .wd-dev-card-img img {
  transform: translateY(-4px) scale(1.02);
}
.wd-dev-card-arrow {
  position: absolute;
  top: 8px; right: 8px;
  width: 32px; height: 32px;
  display: inline-flex;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  color: var(--fg);
  opacity: 0;
  transform: translate(4px, -4px);
  transition: opacity 220ms ease, transform 220ms ease, background 220ms ease, color 220ms ease;
}
.wd-dev-card:hover .wd-dev-card-arrow {
  opacity: 1;
  transform: translate(0, 0);
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.wd-dev-card-meta { display: flex; flex-direction: column; gap: 8px; }
.wd-dev-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.wd-dev-card-title {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.wd-dev-card-url {
  font-size: 11px;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  margin-top: 4px;
}

/* ========== Variant B: Browser frame scroll-reveal ========== */
.wd-browser-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.wd-browser {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: border-color 220ms ease, transform 320ms ease;
}
.wd-browser:hover {
  border-color: var(--fg);
  transform: translateY(-2px);
}
.wd-browser-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklab, var(--bg) 60%, var(--bg-2));
}
.wd-browser-dots {
  display: inline-flex;
  gap: 6px;
}
.wd-browser-dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: color-mix(in oklab, var(--fg) 25%, transparent);
}
.wd-browser-dots span:nth-child(1) { background: #ff5f57; }
.wd-browser-dots span:nth-child(2) { background: #febc2e; }
.wd-browser-dots span:nth-child(3) { background: #28c840; }
.wd-browser-url {
  flex: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--fg-soft);
  padding: 6px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.wd-browser-open {
  font-size: 10px;
  color: var(--fg-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 200ms ease;
}
.wd-browser:hover .wd-browser-open { color: var(--fg); }
.wd-browser-canvas {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #000;
}
.wd-browser-shot {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: auto;
  display: block;
  transition: transform 3500ms cubic-bezier(.2,.8,.2,1);
  will-change: transform;
}
.wd-browser:hover .wd-browser-shot {
  transform: translateY(calc(-100% + 100% * 10 / 16 - 1px));
}
.wd-browser-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-top: 1px solid var(--border);
}
.wd-browser-meta {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
}
.wd-browser-meta .wd-dev-card-title { font-size: 16px; }

/* ========== Responsive ========== */
@media (max-width: 1100px) {
  .wd-hero { padding: 110px 0 60px; }
  .wd-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .wd-hero-showcase { min-height: 0; }
  .wd-browser { transform: none; }
  .wd-browser-body { grid-template-columns: 1fr; min-height: 0; }
  .wd-code { border-right: none; border-bottom: 1px solid rgba(237,232,223,0.08); }
  .wd-hero-metrics { grid-template-columns: repeat(2, 1fr); }
  .wd-metric { border-bottom: 1px solid var(--border); }
  .wd-metric:nth-child(1), .wd-metric:nth-child(2) { border-bottom: 1px solid var(--border); }
  .wd-metric:nth-child(2n) { border-right: none; }
  .wd-pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .wd-process-rail { grid-template-columns: repeat(5, 1fr); overflow-x: auto; }
  .wd-process-head { grid-template-columns: 1fr; }
  .wd-process-note { justify-self: start; }
  .wd-work-strip { grid-template-columns: repeat(2, 1fr); }
  .wd-work-head { grid-template-columns: 1fr; }
  .wd-dev-featured { grid-template-columns: 1fr; padding: 24px; }
  .wd-dev-grid { grid-template-columns: repeat(2, 1fr); }
  .wd-browser-grid { grid-template-columns: 1fr; }
  .wd-addons-grid { grid-template-columns: 1fr; }
  .wd-faq-inner { grid-template-columns: 1fr; gap: 40px; }
  .wd-faq-side { position: static; }
}

@media (max-width: 720px) {
  .wd-hero { padding: 96px 0 48px; }
  .wd-hero-top { margin-bottom: 32px; }
  .wd-hero-head { font-size: clamp(44px, 10vw, 64px); }
  .wd-hero-metrics { grid-template-columns: 1fr 1fr; margin-top: 48px; }
  .wd-pillars { padding: 80px 0 60px; }
  .wd-pillars-head { margin-bottom: 48px; }
  .wd-pillars-grid { grid-template-columns: 1fr; }
  .wd-process { padding: 72px 0; }
  .wd-process-rail { grid-template-columns: 1fr; border-top: 2px solid var(--fg); }
  .wd-step { border-right: none; border-bottom: 1px solid var(--border); }
  .wd-step-rule { top: 0; }
  .wd-step.is-active .wd-step-rule { width: 4px; height: 100%; }
  .wd-platforms { padding: 80px 0 60px; }
  .wd-platforms-grid { grid-template-columns: 1fr; }
  .wd-addons { padding: 80px 0; }
  .wd-addons-grid { grid-template-columns: 1fr; }
  .wd-addon { flex-direction: column; gap: 16px; }
  .wd-work { padding: 80px 0 60px; }
  .wd-work-strip { grid-template-columns: 1fr; }
  .wd-dev-grid { grid-template-columns: 1fr; }
  .wd-faq { padding: 80px 0 60px; }
  .wd-faq-qtext { font-size: 16px; }
}

@media (max-width: 480px) {
  .wd-hero-ctas { flex-direction: column; align-items: stretch; }
  .wd-hero-ctas .btn { justify-content: center; }
  .wd-hero-metrics { grid-template-columns: 1fr; }
  .wd-metric { border-right: none; }
  .wd-metric:nth-child(1), .wd-metric:nth-child(2), .wd-metric:nth-child(3) {
    border-bottom: 1px solid var(--border);
  }
  .wd-metric-k { font-size: 44px; }
  .wd-pillar { padding: 28px 22px; }
  .wd-step { padding: 24px 20px; }
  .wd-platform { padding: 28px 22px; }
  .wd-addon { padding: 28px 22px; }
}

/* ============= MOBILE FIXES — additional (≤760px) ============= */
@media (max-width: 760px) {
  .wd-hero-metrics { grid-template-columns: 1fr 1fr !important; gap: 16px; }
  .wd-pillars-grid { grid-template-columns: 1fr !important; gap: 20px; }
  .wd-platforms-grid { grid-template-columns: 1fr !important; }
  .wd-addons-grid { grid-template-columns: 1fr !important; }
  .wd-process-rail { display: flex; flex-direction: column; gap: 16px; }
  .wd-step { padding: 22px 18px; }
  .wd-hero-head { font-size: clamp(44px, 12vw, 72px) !important; }
}
