/* ===================================
   WEB DESIGN / PORTFOLIO PAGE
   =================================== */

.wd-hero em,
.wd-head__title em,
.wd-cta__title em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent-green);
}

/* ==================
   SHARED HEADINGS
   ================== */
.wd-head {
  max-width: 760px;
  margin: 0 auto 72px;
  text-align: center;
}

.wd-head .section-label { justify-content: center; }

.wd-head--left {
  margin: 0;
  text-align: left;
}

.wd-head--left .section-label { justify-content: flex-start; }

.wd-head__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.6vw, 60px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin: 18px 0 22px;
}

.wd-head__sub {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.wd-head--left .wd-head__sub,
.wd-promise__intro .wd-head__sub { margin: 0; }

/* ==================
   BROWSER + PHONE FRAMES
   ================== */
.wd-browser {
  position: relative;
  border-radius: 14px;
  background: #141418;
  border: 1px solid var(--border-strong);
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 50px 100px -40px rgba(0, 0, 0, 0.9),
    0 30px 60px -30px rgba(var(--glow, 52, 211, 153), 0.18);
  transition: transform 0.8s var(--ease-out), box-shadow 0.8s var(--ease-out), border-color 0.6s ease;
}

.wd-browser__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 34px;
  padding: 0 14px;
  background: #1a1a1f;
  border-bottom: 1px solid var(--border-subtle);
}

.wd-browser__dots { display: flex; gap: 6px; flex-shrink: 0; }

.wd-browser__dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3a3a42;
  transition: background 0.4s ease;
}

.wd-browser__url {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  max-width: 320px;
  margin: 0 auto;
  height: 20px;
  padding: 0 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wd-browser__url i { font-size: 10px; color: var(--text-dim); }

/* After the dots, keep the url centered by offsetting the dots' width */
.wd-browser__bar::after { content: ''; width: 39px; flex-shrink: 0; }

.wd-browser__view {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0d0d10;
}

.wd-browser__view img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  transform: translateY(0);
  transition: transform 1.2s cubic-bezier(0.45, 0, 0.2, 1);
  will-change: transform;
}

/* Hover-scroll through the captured homepage */
.wd-feature__open:hover .wd-browser__view img,
.wd-feature__open:focus-visible .wd-browser__view img,
.wd-card__open:hover .wd-browser__view img,
.wd-card__open:focus-visible .wd-browser__view img {
  transform: translateY(var(--shift));
  transition-duration: var(--dur);
}

.wd-feature__open:hover .wd-browser,
.wd-card__open:hover .wd-browser {
  border-color: rgba(255, 255, 255, 0.2);
}

.wd-feature__open:hover .wd-browser__dots i:nth-child(1),
.wd-card__open:hover .wd-browser__dots i:nth-child(1) { background: #FB7185; }
.wd-feature__open:hover .wd-browser__dots i:nth-child(2),
.wd-card__open:hover .wd-browser__dots i:nth-child(2) { background: #FBBF24; }
.wd-feature__open:hover .wd-browser__dots i:nth-child(3),
.wd-card__open:hover .wd-browser__dots i:nth-child(3) { background: #34D399; }

.wd-phone {
  position: relative;
  aspect-ratio: 390 / 844;
  border-radius: 34px;
  padding: 7px;
  background: linear-gradient(160deg, #2a2a31, #111114 60%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 40px 80px -20px rgba(0, 0, 0, 0.9);
}

.wd-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 27px;
  background: #0d0d10;
}

.wd-phone::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  width: 26%;
  height: 16px;
  transform: translateX(-50%);
  border-radius: 20px;
  background: #050506;
  z-index: 1;
}

/* Reset buttons used as frame wrappers */
.wd-feature__open,
.wd-card__open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: zoom-in;
  border-radius: 14px;
}

.wd-feature__open:focus-visible,
.wd-card__open:focus-visible {
  outline: 2px solid var(--accent-green);
  outline-offset: 6px;
}

/* ==================
   HERO
   ================== */
.wd-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 150px 0 60px;
  overflow: hidden;
  isolation: isolate;
}

.wd-hero__wall {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  perspective: 1800px;
}

.wd-hero__plane {
  position: absolute;
  top: -30%;
  right: -18%;
  width: 92%;
  height: 170%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  transform: rotateX(28deg) rotateY(-14deg) rotateZ(14deg);
  transform-origin: center;
  opacity: 0.55;
}

.wd-hero__col {
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: wd-rise var(--d, 80s) linear infinite;
}

.wd-hero__col:nth-child(even) { animation-direction: reverse; }

.wd-hero__col img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9);
}

@keyframes wd-rise {
  from { transform: translateY(0); }
  to   { transform: translateY(calc(-50% - 11px)); }
}

.wd-hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--bg-page) 0%, rgba(6, 6, 8, 0.96) 32%, rgba(6, 6, 8, 0.55) 62%, rgba(6, 6, 8, 0.25) 100%),
    linear-gradient(180deg, rgba(6, 6, 8, 0.7) 0%, transparent 22%, transparent 70%, var(--bg-page) 100%),
    radial-gradient(ellipse at 15% 40%, rgba(52, 211, 153, 0.08), transparent 55%);
}

.wd-hero > .container { width: 100%; }

.wd-hero__content { max-width: 680px; }

.wd-hero__title {
  font-family: var(--font-display);
  font-size: clamp(48px, 7.4vw, 108px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  margin: 26px 0 30px;
}

.wd-hero__sub {
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 560px;
}

.wd-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 44px;
}

.wd-hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 96px;
  border-top: 1px solid var(--border-strong);
}

.wd-hero__stats > div {
  padding: 26px 24px 0 0;
}

.wd-hero__stats > div + div {
  padding-left: 24px;
  border-left: 1px solid var(--border-subtle);
}

.wd-hero__stats dt {
  font-family: var(--font-display);
  font-size: clamp(34px, 3.4vw, 48px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.wd-hero__stats dd {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}

/* ==================
   FEATURED
   ================== */
.wd-featured {
  padding: 140px 0 60px;
}

.wd-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  align-items: center;
  gap: 80px;
  padding: 70px 0 110px;
}

.wd-feature--flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); }
.wd-feature--flip .wd-feature__visual { order: 2; }

.wd-feature__visual {
  position: relative;
  padding-bottom: 8%;
}

.wd-feature__halo {
  position: absolute;
  inset: -12% -8% -4%;
  z-index: -1;
  background: radial-gradient(ellipse at 50% 50%, rgba(var(--glow), 0.28), transparent 62%);
  filter: blur(40px);
  opacity: 0.8;
  pointer-events: none;
}

.wd-feature__open:hover .wd-browser--lg { transform: translateY(-6px); }

.wd-feature__phone {
  position: absolute;
  right: -5%;
  bottom: -2%;
  width: 24%;
  transition: transform 0.9s var(--ease-out);
  pointer-events: none;
}

.wd-feature--flip .wd-feature__phone { right: auto; left: -5%; }

.wd-feature__visual:hover .wd-feature__phone { transform: translateY(-14px) rotate(-2deg); }
.wd-feature--flip .wd-feature__visual:hover .wd-feature__phone { transform: translateY(-14px) rotate(2deg); }

.wd-feature__num {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  font-style: italic;
  color: var(--text-dim);
  margin-bottom: 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.wd-feature__sector {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-green);
}

.wd-feature__sector span,
.wd-card__sector span { color: var(--text-dim); margin: 0 4px; }

.wd-feature__name {
  font-family: var(--font-display);
  font-size: clamp(34px, 3.6vw, 48px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 14px 0 20px;
}

.wd-feature__desc {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.wd-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 32px;
}

.wd-tags li {
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  font-size: 12px;
  color: var(--text-secondary);
}

.wd-feature__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
}

.wd-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 0 6px;
  border: 0;
  border-bottom: 1px solid var(--accent-green);
  background: none;
  font: 600 14px/1.4 var(--font-body);
  letter-spacing: 0.02em;
  color: var(--text-primary);
  cursor: pointer;
  transition: color 0.3s ease, gap 0.4s var(--ease-out);
}

.wd-link:hover { color: var(--accent-green); gap: 12px; }

.wd-link--ghost {
  border-bottom-color: var(--border-strong);
  color: var(--text-muted);
}

.wd-link--ghost:hover { color: var(--text-primary); border-bottom-color: var(--text-primary); }

/* ==================
   PROMISE
   ================== */
.wd-promise {
  padding: 140px 0;
  background: var(--bg-section-alt);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.wd-promise__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 90px;
  align-items: start;
}

.wd-promise__intro { position: sticky; top: 140px; }

.wd-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  list-style: none;
}

.wd-pillar {
  padding: 40px 34px 44px;
  background: var(--bg-section-alt);
  transition: background 0.5s ease;
}

.wd-pillar:hover { background: var(--bg-card); }

.wd-pillar i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  font-size: 20px;
  color: var(--accent-green);
  background: var(--accent-green-glow);
  margin-bottom: 26px;
}

.wd-pillar h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.wd-pillar p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ==================
   GALLERY
   ================== */
.wd-gallery { padding: 140px 0 120px; }

.wd-gallery__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 56px;
}

.wd-gallery__top .wd-head__title { margin-bottom: 0; }

.wd-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.wd-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: transparent;
  font: 500 13px/1 var(--font-body);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.35s var(--ease-out);
}

.wd-filter span {
  font-size: 11px;
  color: var(--text-dim);
  transition: color 0.35s ease;
}

.wd-filter:hover { border-color: rgba(255, 255, 255, 0.28); color: var(--text-primary); }

.wd-filter.is-active {
  background: var(--text-primary);
  border-color: var(--text-primary);
  color: var(--bg-page);
}

.wd-filter.is-active span { color: rgba(6, 6, 8, 0.55); }

.wd-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 56px 32px;
}

.wd-card[hidden] { display: none; }

.wd-card.is-entering { animation: wd-card-in 0.7s var(--ease-out) both; }

@keyframes wd-card-in {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

.wd-card__open:hover .wd-browser { transform: translateY(-6px); }

.wd-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-top: 22px;
}

.wd-card__name {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.wd-card__sector {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

.wd-card__visit {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
  transition: all 0.4s var(--ease-out);
}

.wd-card__visit:hover {
  background: var(--accent-green);
  border-color: var(--accent-green);
  color: var(--bg-page);
  transform: rotate(45deg);
}

.wd-card__soon,
.wd-soon {
  flex-shrink: 0;
  padding: 6px 11px;
  border-radius: var(--radius-pill);
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.22);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-amber);
  white-space: nowrap;
}

/* ==================
   PROCESS
   ================== */
.wd-process {
  padding: 140px 0;
  background: var(--bg-section-alt);
  border-top: 1px solid var(--border-subtle);
}

.wd-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  list-style: none;
  border-top: 1px solid var(--border-strong);
}

.wd-step {
  position: relative;
  padding: 40px 26px 10px 0;
}

.wd-step + .wd-step { padding-left: 26px; border-left: 1px solid var(--border-subtle); }

.wd-step::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 16px var(--accent-green);
}

.wd-step + .wd-step::before { left: -4px; }

.wd-step__num {
  font-family: var(--font-display);
  font-size: 14px;
  font-style: italic;
  color: var(--text-dim);
}

.wd-step h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 14px 0 14px;
}

.wd-step p {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ==================
   FAQ
   ================== */
.wd-faq { padding: 140px 0; }

.wd-faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  gap: 90px;
  align-items: start;
}

.wd-q { border-bottom: 1px solid var(--border-subtle); }
.wd-q:first-child { border-top: 1px solid var(--border-subtle); }

.wd-q summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 26px 0;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 400;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
  transition: color 0.3s ease;
}

.wd-q summary::-webkit-details-marker { display: none; }
.wd-q summary:hover { color: var(--accent-green); }

.wd-q summary i {
  flex-shrink: 0;
  font-size: 18px;
  color: var(--text-muted);
  transition: transform 0.4s var(--ease-out);
}

.wd-q[open] summary i { transform: rotate(45deg); color: var(--accent-green); }

.wd-q p {
  padding: 0 60px 28px 0;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-secondary);
}

/* ==================
   CTA
   ================== */
.wd-cta {
  position: relative;
  padding: 160px 0 170px;
  overflow: hidden;
  text-align: center;
  border-top: 1px solid var(--border-subtle);
}

.wd-cta__glow {
  position: absolute;
  left: 50%;
  bottom: -40%;
  width: 1100px;
  height: 700px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(52, 211, 153, 0.14), transparent 65%);
  pointer-events: none;
}

.wd-cta__inner { position: relative; max-width: 780px; margin: 0 auto; }

.wd-cta__title {
  font-family: var(--font-display);
  font-size: clamp(44px, 6.4vw, 88px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.035em;
  margin: 22px 0 28px;
}

.wd-cta__sub {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto;
}

.wd-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 44px;
}

/* ==================
   PROJECT VIEWER (dialog)
   ================== */
.wd-modal {
  width: min(1320px, calc(100vw - 48px));
  max-width: none;
  height: min(860px, calc(100vh - 48px));
  max-height: none;
  margin: auto;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-2xl);
  background: #0c0c0f;
  color: var(--text-primary);
  box-shadow: 0 60px 140px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}

.wd-modal::backdrop {
  background: rgba(3, 3, 5, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.wd-modal[open] { animation: wd-modal-in 0.55s var(--ease-out); }

@keyframes wd-modal-in {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

.wd-modal__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  height: 100%;
}

.wd-modal__stage {
  padding: 28px;
  min-height: 0;
  display: flex;
}

.wd-browser--modal {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.wd-modal__scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #0d0d10;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.wd-modal__scroll img { width: 100%; height: auto; }

.wd-modal__side {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 28px 28px 24px 0;
  min-height: 0;
  overflow-y: auto;
}

.wd-phone--modal { width: 150px; flex-shrink: 0; border-radius: 26px; padding: 5px; }
.wd-phone--modal img { border-radius: 21px; }
.wd-phone--modal::before { top: 10px; height: 11px; }

.wd-modal__sector {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-green);
}

.wd-modal__title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 10px 0 10px;
}

.wd-modal__place {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

.wd-modal__desc {
  margin-top: 18px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.wd-modal__info .wd-tags { margin: 20px 0 24px; }
.wd-modal__info .wd-soon { display: inline-block; }
.wd-modal [hidden] { display: none !important; }

.wd-modal__nav {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.wd-modal__nav button,
.wd-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(12, 12, 15, 0.8);
  color: var(--text-primary);
  font-size: 17px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.wd-modal__nav button:hover,
.wd-modal__close:hover {
  background: var(--text-primary);
  color: var(--bg-page);
}

.wd-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
}

/* ==================
   RESPONSIVE
   ================== */
@media (max-width: 1024px) {
  .wd-feature,
  .wd-feature--flip {
    grid-template-columns: 1fr;
    gap: 56px;
    padding: 50px 0 80px;
  }

  .wd-feature--flip .wd-feature__visual { order: 0; }
  .wd-feature__copy { max-width: 640px; }

  .wd-promise__grid,
  .wd-faq__grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .wd-promise__intro { position: static; }

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

  .wd-gallery__top { flex-direction: column; align-items: flex-start; }
  .wd-filters { justify-content: flex-start; }

  .wd-steps { grid-template-columns: 1fr 1fr; }
  .wd-step,
  .wd-step + .wd-step { padding: 36px 26px 30px 0; border-left: 0; }
  .wd-steps { border-top: 0; }
  .wd-step { border-top: 1px solid var(--border-strong); }
  .wd-step::before,
  .wd-step + .wd-step::before { left: 0; }

  .wd-hero__plane { width: 120%; right: -50%; opacity: 0.4; }

  .wd-modal__inner { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .wd-modal__stage { padding: 18px 18px 0; }
  .wd-modal__side {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 20px 18px 18px;
    max-height: 44vh;
    border-top: 1px solid var(--border-subtle);
  }
  .wd-phone--modal { display: none; }
  .wd-modal__info { flex: 1 1 100%; }
  .wd-modal__nav { flex: 1 1 100%; }
}

@media (max-width: 768px) {
  .wd-hero { padding: 130px 0 50px; min-height: auto; }

  .wd-hero__veil {
    background:
      linear-gradient(180deg, rgba(6, 6, 8, 0.75) 0%, rgba(6, 6, 8, 0.92) 45%, var(--bg-page) 100%);
  }

  .wd-hero__plane { width: 160%; right: -60%; top: -10%; opacity: 0.5; }

  .wd-hero__stats {
    grid-template-columns: 1fr 1fr;
    margin-top: 64px;
  }

  .wd-hero__stats > div,
  .wd-hero__stats > div + div {
    padding: 24px 16px 22px 0;
    border-left: 0;
  }

  .wd-hero__stats > div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--border-subtle); }
  .wd-hero__stats > div:nth-child(n+3) { border-top: 1px solid var(--border-subtle); }

  .wd-featured,
  .wd-promise,
  .wd-gallery,
  .wd-process,
  .wd-faq { padding: 96px 0; }

  .wd-head { margin-bottom: 48px; }

  .wd-feature__phone { width: 28%; right: -2%; }
  .wd-feature--flip .wd-feature__phone { left: auto; right: -2%; }

  .wd-pillars { grid-template-columns: 1fr; }

  .wd-grid { grid-template-columns: 1fr; gap: 48px; }

  .wd-steps { grid-template-columns: 1fr; }

  .wd-q summary { font-size: 19px; }
  .wd-q p { padding-right: 0; }

  .wd-cta { padding: 110px 0 120px; }

  .wd-modal {
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
    border: 0;
  }
}

@media (max-width: 480px) {
  .wd-browser__bar { height: 28px; padding: 0 10px; }
  .wd-browser__dots i { width: 7px; height: 7px; }
  .wd-browser__url { font-size: 10px; }
  .wd-hero__actions .btn { width: 100%; justify-content: center; }
  .wd-cta__actions .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .wd-hero__col { animation: none; }
  .wd-browser__view img { transition: none; }
}

/* Touch devices: featured screens auto-scroll while in view (set by web-design.js) */
.wd-browser__view.is-auto img {
  transform: translateY(var(--shift));
  transition-duration: calc(var(--dur) * 1.4);
}
