/* ============================================================
   Devscope Landing — theme.css
   Editorial agency style · Devscope brand adaptation
   All styles scoped with .dw- prefix
   ============================================================ */

/* ── Design Tokens ── */
:root {
  --dw-cream: #f5f1e8;
  --dw-cream-dark: #ece8dc;
  --dw-dark: #0a0a0a;
  --dw-accent: #1313cc;
  --dw-accent-hover: #1515e0;
  --dw-accent-light: #2222ff;
  --dw-text-dark: #0f0f0f;
  --dw-text-muted: rgba(15, 15, 15, 0.52);
  --dw-border-dark: rgba(15, 15, 15, 0.14);
  --dw-display-font: "Anton", "Impact", sans-serif;
}

/* ── Shimmer @property for service cards ── */
@property --dw-shimmer-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

/* ============================================================
   BASE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

img, video, svg {
    display: block;
    max-width: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans, "Inter", sans-serif);
  background: var(--dw-dark);
  color: #fafafa;
  overflow-x: hidden;
}

/* ── Heading colors: inherit from section context ── */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: inherit;
  margin: 0;
}

.dw-section--dark h1,
.dw-section--dark h2,
.dw-section--dark h3,
.dw-section--dark h4,
.dw-section--dark h5,
.dw-section--dark h6,
.dw-hero h1 {
  color: #fafafa;
}

.dw-section--dark a {
  color: #fafafa;
  text-decoration: none;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.dw-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem clamp(1.25rem, 4vw, 2.5rem);
  transition:
    background 0.35s ease,
    backdrop-filter 0.35s ease,
    border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}

.dw-nav--scrolled {
  background: rgba(10, 10, 10, 0);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.dw-nav__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.dw-nav__logo img {
  height: 38px;
  width: auto;
  display: block;
}

.dw-nav__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ── Buttons ── */
.dw-btn-cta,
.dw-btn-menu {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border-radius: 4px;
  font-family: var(--font-sans, sans-serif);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  border: 1.5px solid transparent;
  text-decoration: none;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  white-space: nowrap;
}

.dw-btn-cta {
  background: var(--dw-accent);
  color: #fff;
  border-color: var(--dw-accent);
}

.dw-btn-cta:hover {
  background: var(--dw-accent-hover);
  border-color: var(--dw-accent-hover);
  box-shadow: 0 0 20px rgba(19, 19, 204, 0.35);
}

.dw-btn-menu {
  background: #0a0a0a;
  color: #fafafa;
  border-color: rgba(255, 255, 255, 0.2);
}

.dw-btn-menu:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: #111122;
}

/* ── CTA link button (inline) ── */
.dw-link-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  border: 1.5px solid currentColor;
  border-radius: 4px;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  margin-top: 2rem;
}

.dw-link-cta:hover {
  background: var(--dw-accent) !important;
  color: #fff !important;
  border-color: var(--dw-accent) !important;
  box-shadow: 0 0 20px rgba(19, 19, 204, 0.3);
}

/* ============================================================
   MENU OVERLAY — Two rounded panels + dimmed backdrop
   ============================================================ */

/* Invisible full-screen container, positions panels */
.dw-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(0.75rem, 3vw, 1.25rem);
  pointer-events: none;
  opacity: 0;
}

.dw-menu-overlay.is-open {
  pointer-events: all;
}

/* Dimmed backdrop — click to close */
.dw-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.55);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  cursor: pointer;
}

/* Constrained panel wrap */
.dw-menu-panel-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 660px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  will-change: transform, opacity;
}

/* Shared panel styles */
.dw-menu-panel {
  border-radius: 16px;
  overflow: hidden;
}

/* Main nav panel — cream bg */
.dw-menu-panel--main {
  background: var(--dw-cream);
  color: var(--dw-text-dark);
  padding: 1.25rem 1.75rem 1.75rem;
  position: relative;
}

/* X close button — top-right corner of main panel */
.dw-menu-close {
  position: absolute;
  top: 1.125rem;
  right: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--dw-text-dark);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
  z-index: 2;
}

.dw-menu-close:hover {
  background: #333;
  transform: scale(0.95);
}

/* Nav links */
.dw-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 0.25rem;
}

.dw-menu-nav__link {
  font-family: var(--dw-display-font);
  font-size: clamp(2.25rem, 7.5vw, 5rem);
  line-height: 1.06;
  text-transform: uppercase;
  color: var(--dw-text-dark);
  text-decoration: none;
  letter-spacing: -0.01em;
  display: block;
  padding: 0.08rem 0;
  transition:
    color 0.2s ease,
    padding-left 0.2s ease;
}

.dw-menu-nav__link:hover {
  color: var(--dw-accent);
  padding-left: 0.6rem;
}

/* Language switcher */
.dw-menu-lang {
  display: flex;
  gap: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 1.25rem;
}

.dw-menu-lang__item {
  color: var(--dw-text-muted);
  cursor: pointer;
}

.dw-menu-lang__item--active {
  color: var(--dw-text-dark);
}

/* Social panel — lighter cream, centered links */
.dw-menu-panel--social {
  background: #edeae0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(1.5rem, 6vw, 4rem);
  padding: 1.125rem 1.75rem;
}

.dw-menu-social__link {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--dw-text-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

.dw-menu-social__link:hover {
  color: var(--dw-accent);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.dw-display {
  font-family: var(--dw-display-font);
  font-size: clamp(3.5rem, 10vw, 9rem);
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.dw-display--md {
  font-size: clamp(2.5rem, 7vw, 6.5rem);
}

.dw-display--sm {
  font-size: clamp(2rem, 5vw, 4.5rem);
}

.dw-display--xs {
  font-size: clamp(1.5rem, 3.5vw, 3rem);
}

.dw-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  margin-top: 1.5rem;
}

.dw-meta-item {
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.45;
  font-weight: 500;
}

/* ============================================================
   SECTION WRAPPERS
   ============================================================ */
.dw-section {
  padding: clamp(4rem, 8vw, 8rem) clamp(1.5rem, 5vw, 4rem);
}

.dw-section--dark {
  background: var(--dw-dark);
  color: #fafafa;
}

.dw-section--cream {
  background: var(--dw-cream);
  color: var(--dw-text-dark);
}

.dw-section__label {
  display: block;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.4;
  font-weight: 500;
  margin-bottom: 1.25rem;
}

/* ============================================================
   HERO
   ============================================================ */
.dw-hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--dw-dark);
  overflow: hidden;
}

/* Background video */
.dw-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

/* Dark overlay — starts hidden, JS animates in */
.dw-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(4, 4, 12, 0.95) 0%,
    rgba(4, 4, 12, 0.6) 45%,
    rgba(4, 4, 12, 0.3) 100%
  );
  z-index: 1;
  opacity: 0;
}

.dw-hero__content {
  position: relative;
  z-index: 2;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  padding-top: 9rem;
}

.dw-hero__headline {
  max-width: 18ch;
  opacity: 0;
  /* JS sets to 1 before scramble */
}

.dw-h-word {
  display: inline-block;
  white-space: nowrap;
}

.dw-h-char {
  display: inline-block;
}

.dw-h-space {
  display: inline-block;
  width: 0.28em;
}

.dw-hero__meta {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 0;
}

.dw-hero__meta .dw-meta-item {
  opacity: 0;
  /* JS staggers in */
}

/* Ghost CTA button */
.dw-hero__cta {
  opacity: 0;
  /* JS animates in */
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 3rem;
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    background 0.2s ease;
}

.dw-hero__cta:hover {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fafafa;
  background: rgba(255, 255, 255, 0.05);
}

/* ── Placeholders ── */
.dw-placeholder-img {
  background: var(--color-surface-2, #1a1a1a);
  border: 1px solid rgba(255, 255, 255, 0.06);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dw-placeholder-img::after {
  content: "[ IMAGE ]";
  font-family: var(--font-mono, monospace);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.12);
  text-transform: uppercase;
}

.dw-section--cream .dw-placeholder-img {
  background: var(--dw-cream-dark);
  border-color: var(--dw-border-dark);
}

.dw-section--cream .dw-placeholder-img::after {
  color: rgba(15, 15, 15, 0.18);
}

.dw-placeholder-graphic {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0f0f14 0%, #111122 50%, #0d0d18 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.dw-placeholder-graphic::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(19, 19, 204, 0.12) 0%,
    transparent 70%
  );
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse-glow 4s ease-in-out infinite;
}

.dw-placeholder-graphic::after {
  content: "[ GRAPHIC PLACEHOLDER ]";
  font-family: var(--font-mono, monospace);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.1);
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

@keyframes pulse-glow {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 1;
  }
}

/* ============================================================
   ABOUT
   ============================================================ */
.dw-about__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 4rem;
  margin-top: 2.5rem;
}

.dw-about__copy {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--dw-text-muted);
}

@media (max-width: 640px) {
  .dw-about__body {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   WORK — SWIPER SLIDER
   ============================================================ */
.dw-work__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.5rem;
}

.dw-work-slider-wrap {
  position: relative;
  margin: 0 calc(-1 * clamp(1.5rem, 5vw, 4rem));
  padding: 0 clamp(1.5rem, 5vw, 4rem);
}

/* Disable text selection on all swipers */
.swiper {
  user-select: none;
}

.dw-work-swiper {
  overflow: visible;
}

.dw-work-swiper .swiper-slide {
  width: 360px;
  flex-shrink: 0;
}

.dw-work-nav {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
  justify-content: flex-end;
}

.dw-swiper-btn {
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  background: transparent;
  color: #fafafa;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.dw-swiper-btn:hover {
  border-color: var(--dw-accent);
  background: rgba(19, 19, 204, 0.1);
  color: var(--dw-accent-light);
}

.dw-section--cream .dw-swiper-btn {
  border-color: var(--dw-border-dark);
  color: var(--dw-text-dark);
}

.dw-section--cream .dw-swiper-btn:hover {
  border-color: var(--dw-accent);
  background: rgba(19, 19, 204, 0.08);
  color: var(--dw-accent);
}

.dw-project-card {
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
  will-change: transform;
  transform: translateY(30px);
  opacity: 0;
}

.dw-project-card.in-view {
  transform: translateY(0);
  opacity: 1;
  transition:
    transform 0.6s ease,
    opacity 0.6s ease;
}

.dw-project-card__img {
  position: absolute;
  inset: 0;
  transition: transform 0.6s ease;
}

.dw-project-card:hover .dw-project-card__img {
  transform: scale(1.06);
}

.dw-project-card__meta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.25rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, transparent 100%);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.dw-project-card__client {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fafafa;
  letter-spacing: -0.01em;
}

.dw-project-card__year {
  font-family: var(--font-mono, monospace);
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 2px;
}

.dw-project-card__tag {
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

/* ============================================================
   CLIENTS — Marquee (reuses .s-trust pattern via main.css)
   ============================================================ */
/* Override trust-strip for cream background context */
.dw-clients-marquee .s-trust {
  padding-block: 2.5rem;
  background: transparent;
}

.dw-clients-marquee .s-trust__logo {
  display: flex;
  align-items: center;
  padding: 0 0.25rem;
}

.dw-clients-marquee .s-trust__logo img {
  height: 36px;
  width: auto;
  display: block;
  opacity: 0.5;
}

.dw-clients-marquee .s-trust__sep {
  background: rgba(15, 15, 15, 0.15);
}

/* ============================================================
   SERVICES — Bento Grid
   ============================================================ */
.dw-services__header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: end;
  margin-bottom: 3rem;
}

.dw-services__copy {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.45);
}

/* Bento grid layout */
.dw-services-bento {
  display: grid;
  grid-template-columns: 3fr 2fr;
  grid-template-rows: auto auto;
  gap: 1px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  overflow: hidden;
}

.dw-service-card {
  position: relative;
  background: var(--dw-dark);
  padding: 2rem;
  overflow: hidden;
  cursor: pointer;
  transition: background 0.3s ease;
}

.dw-service-card:hover {
  background: #111;
}

/* Shimmer border on hover */
.dw-service-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 1px;
  background: conic-gradient(
    from var(--dw-shimmer-angle),
    transparent 0%,
    rgba(19, 19, 204, 0.4) 20%,
    rgba(34, 34, 255, 0.95) 45%,
    rgba(19, 19, 204, 0.4) 70%,
    transparent 88%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  border-radius: 5px;
}

.dw-service-card:hover::before {
  opacity: 1;
  animation: dw-shimmer-spin 3s linear infinite;
}

@keyframes dw-shimmer-spin {
  to {
    --dw-shimmer-angle: 360deg;
  }
}

/* Shimmer background sweep */
.dw-service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(19, 19, 204, 0.04) 50%,
    transparent 60%
  );
  background-size: 200% 100%;
  background-position: 200% 0;
  transition: background-position 0.6s ease;
  pointer-events: none;
}

.dw-service-card:hover::after {
  background-position: -200% 0;
}

/* Grid placement */
.dw-service-card--strategy {
  grid-row: 1;
  grid-column: 1;
}

.dw-service-card--design {
  grid-row: 1;
  grid-column: 2;
}

.dw-service-card--build {
  grid-row: 2;
  grid-column: 1;
}

.dw-service-card--optimize {
  grid-row: 2;
  grid-column: 2;
}

.dw-service-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background: rgba(19, 19, 204, 0.1);
  border: 1px solid rgba(19, 19, 204, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dw-accent-light);
  font-size: 1rem;
  margin-bottom: 1.25rem;
  transition:
    background 0.3s ease,
    box-shadow 0.3s ease;
  position: relative;
  z-index: 1;
}

.dw-service-card:hover .dw-service-card__icon {
  background: rgba(19, 19, 204, 0.18);
  box-shadow: 0 0 16px rgba(19, 19, 204, 0.3);
}

.dw-service-card__title {
  font-family: var(--dw-display-font);
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  text-transform: uppercase;
  color: #fafafa;
  line-height: 0.95;
  margin-bottom: 0.875rem;
  position: relative;
  z-index: 1;
}

.dw-service-card__desc {
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.dw-service-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  position: relative;
  z-index: 1;
}

.dw-service-card__list li {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.38);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dw-service-card__list li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--dw-accent-light);
  opacity: 0.6;
  flex-shrink: 0;
}

/* Visual area inside cards */
.dw-service-card__visual {
  margin-top: 1.5rem;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  z-index: 1;
}

/* Code snippet visual */
.dw-code-visual {
  background: #0d0d14;
  padding: 1rem;
  font-family: var(--font-mono, monospace);
  font-size: 0.6875rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.35);
}

.dw-code-visual__line--kw {
  color: var(--dw-accent-light);
}

.dw-code-visual__line--fn {
  color: #79c0ff;
}

.dw-code-visual__line--str {
  color: #4ade80;
}

.dw-code-visual__line--cm {
  color: rgba(160, 160, 160, 0.35);
}

/* Network/connection visual */
.dw-connect-visual {
  background: #0d0d14;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dw-connect-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono, monospace);
  font-size: 0.6875rem;
  padding: 0.4rem 0.6rem;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.dw-connect-row__label {
  color: rgba(255, 255, 255, 0.45);
}

.dw-connect-row__status {
  font-size: 0.625rem;
  letter-spacing: 0.06em;
}

.dw-connect-row__status--live {
  color: #4ade80;
}

.dw-connect-row__status--api {
  color: var(--dw-accent-light);
}

.dw-connect-row__status--done {
  color: rgba(255, 255, 255, 0.3);
}

/* Metrics visual */
.dw-metrics-visual {
  background: #0d0d14;
  padding: 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.dw-metric-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono, monospace);
  font-size: 0.6875rem;
}

.dw-metric-row__label {
  color: rgba(255, 255, 255, 0.4);
  flex: 1;
}

.dw-metric-row__bar-wrap {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
}

.dw-metric-row__bar {
  height: 100%;
  background: var(--dw-accent-light);
  border-radius: 2px;
  transition: width 1.2s ease;
  width: 0;
}

.dw-service-card:hover .dw-metric-row__bar {
  width: var(--bar-w, 70%);
}

.dw-metric-row__val {
  color: #4ade80;
  font-size: 0.625rem;
}

@media (max-width: 768px) {
  .dw-services-bento {
    grid-template-columns: 1fr;
  }

  .dw-service-card--strategy,
  .dw-service-card--design,
  .dw-service-card--build,
  .dw-service-card--optimize {
    grid-row: auto;
    grid-column: auto;
  }

  .dw-services__header {
    grid-template-columns: 1fr;
  }
}

/* ── Service Phase Accordion ── */
.dw-service-phases {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 1rem;
}

.dw-service-phase {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dw-service-phase__trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.75rem 0;
  background: none;
  border: none;
  color: #fafafa;
  cursor: pointer;
  text-align: left;
  gap: 1rem;
}

.dw-service-phase__name {
  font-family: var(--dw-display-font);
  font-size: clamp(1.75rem, 4vw, 3.5rem);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1;
  transition: color 0.2s ease;
}

.dw-service-phase.is-open .dw-service-phase__name,
.dw-service-phase__trigger:hover .dw-service-phase__name {
  color: var(--dw-accent-light);
}

.dw-service-phase__icon {
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.3s ease;
}

.dw-service-phase.is-open .dw-service-phase__icon {
  border-color: var(--dw-accent-light);
  background: rgba(34, 34, 255, 0.1);
  transform: rotate(45deg);
}

.dw-service-phase__body {
  height: 0;
  overflow: hidden;
}

/* ── Phase Swiper — portrait card slider inside accordion ── */
.dw-phase-swiper {
  width: 100%;
  height: 360px;
  overflow: hidden;
  margin-bottom: 2.5rem;
  opacity: 0;
}

.dw-phase-swiper .swiper-wrapper {
  height: 100%;
}

/* 4 cards visible — (100% - 3×16px gap) / 4 */
.dw-phase-swiper .swiper-slide {
  width: calc(25% - 12px);
  height: 100%;
  flex-shrink: 0;
}

.dw-phase-slide {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 4px;
  overflow: hidden;
  background: #0d0d14;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    0 20px 56px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  cursor: default;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.dw-phase-slide:hover {
  border-color: rgba(34, 34, 255, 0.4);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(34, 34, 255, 0.18);
}

/* ── Skeleton shimmer keyframe ── */
@keyframes dw-shimmer {
  0% {
    background-position: -200% center;
  }

  100% {
    background-position: 200% center;
  }
}

/* Image area — shimmer only here */
.dw-phase-slide__img {
  flex: 0 0 180px;
  position: relative;
  overflow: hidden;
  transition: transform 0.6s ease;
  background: linear-gradient(
    90deg,
    #1a1a1a 0%,
    #1a1a1a 30%,
    #282828 50%,
    #1a1a1a 70%,
    #1a1a1a 100%
  );
  background-size: 200% 100%;
  animation: dw-shimmer 1.8s linear infinite;
}

.dw-phase-slide:hover .dw-phase-slide__img {
  transform: scale(1.04);
}

/* Video inside slide — always visible, shows first frame as poster */
.dw-phase-slide__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Text content — bottom part */
.dw-phase-slide__text {
  flex: 1;
  padding: 1.1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  justify-content: center;
}

.dw-phase-slide__step {
  font-family: var(--font-mono, monospace);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  color: var(--dw-accent-light);
  opacity: 0.65;
  text-transform: uppercase;
}

.dw-phase-slide__title {
  font-family: var(--dw-display-font);
  font-size: 1.2rem;
  text-transform: uppercase;
  color: #fafafa;
  line-height: 0.95;
  letter-spacing: -0.01em;
}

.dw-phase-slide__desc {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  /* 2.4 cards visible */
  .dw-phase-swiper {
    height: 360px;
  }

  .dw-phase-swiper .swiper-slide {
    width: calc(41.666% - 11px);
  }

  .dw-phase-slide__img {
    flex: 0 0 165px;
  }
}

@media (max-width: 640px) {
  /* 1.3 cards visible */
  .dw-phase-swiper {
    height: 340px;
  }

  .dw-phase-swiper .swiper-slide {
    width: calc(78% - 8px);
  }

  .dw-phase-slide__img {
    flex: 0 0 155px;
  }
}

/* ── Service phase hover preview card (follows cursor) ── */
.dw-phase-preview {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 600;
  width: 280px;
  background: var(--dw-dark);
  color: #fafafa;
  border-radius: 14px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  will-change: opacity, transform, left, top;
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

.dw-phase-preview__img {
  height: 150px;
  overflow: hidden;
  object-fit: cover;
  background: linear-gradient(
    90deg,
    #1a1a1a 0%,
    #1a1a1a 30%,
    #2e2e2e 50%,
    #1a1a1a 70%,
    #1a1a1a 100%
  );
  background-size: 200% 100%;
  animation: dw-shimmer 1.8s linear infinite;
}

.dw-phase-preview__body {
  padding: 1rem 1.25rem;
}

.dw-phase-preview__label {
  font-family: var(--font-mono, monospace);
  font-size: 0.625rem;
  color: var(--dw-accent-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
  opacity: 0.7;
}

.dw-phase-preview__title {
  font-family: var(--dw-display-font);
  font-size: 1.375rem;
  text-transform: uppercase;
  color: #fafafa;
  line-height: 0.95;
  margin-bottom: 0.5rem;
}

.dw-phase-preview__text {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 768px) {
  .dw-phase-preview {
    display: none;
  }
}

/* ── FAQ (below services) ── */
.dw-faq {
  margin-top: 4rem;
}

.dw-faq__title {
  font-family: var(--dw-display-font);
  font-size: clamp(1.5rem, 4vw, 3rem);
  text-transform: uppercase;
  color: #fafafa;
  margin: 2rem 0;
}

.dw-faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dw-faq-item__trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans, sans-serif);
  font-size: 0.9375rem;
  font-weight: 500;
  gap: 1rem;
  transition: color 0.2s ease;
}

.dw-faq-item__trigger:hover {
  color: #fafafa;
}

.dw-faq-item__icon {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  flex-shrink: 0;
  transition:
    transform 0.3s ease,
    border-color 0.2s ease;
}

.dw-faq-item.is-open .dw-faq-item__icon {
  transform: rotate(45deg);
  border-color: var(--dw-accent-light);
  color: var(--dw-accent-light);
}

.dw-faq-item__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.dw-faq-item.is-open .dw-faq-item__body {
  max-height: 300px;
}

.dw-faq-item__answer {
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.4);
  padding-bottom: 1.25rem;
}

/* ============================================================
   PROCESS SECTION — Alternating Timeline
   ============================================================ */
.dw-process__header {
  margin-bottom: 4rem;
}

/* Timeline container — centered line */
.dw-process-timeline {
  position: relative;
}

.dw-process-timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(15, 15, 15, 0.14) 6%,
    rgba(15, 15, 15, 0.14) 94%,
    transparent 100%
  );
}

/* Each step: 3-column grid — [left side] [center marker] [right side] */
.dw-timeline-step {
  display: grid;
  grid-template-columns: 1fr 5.5rem 1fr;
  align-items: center;
  padding: 4rem 0;
  border-bottom: 1px solid rgba(15, 15, 15, 0.06);
  position: relative;
  cursor: default;
}

.dw-timeline-step:last-child {
  border-bottom: none;
}

/* Side slots */
.dw-timeline-step__side {
  display: flex;
  align-items: center;
}

/* LEFT step — title in first slot (right-aligned) */
.dw-timeline-step--left .dw-timeline-step__side:nth-child(1) {
  justify-content: flex-end;
  padding-right: 3rem;
  text-align: right;
}

/* RIGHT step — title in third slot (left-aligned) */
.dw-timeline-step--right .dw-timeline-step__side:nth-child(3) {
  justify-content: flex-start;
  padding-left: 3rem;
  text-align: left;
}

/* Center dot marker */
.dw-timeline-step__marker {
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.dw-timeline-step__dot {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--dw-cream);
  border: 1.5px solid rgba(15, 15, 15, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
  position: relative;
  z-index: 1;
}

.dw-timeline-step:hover .dw-timeline-step__dot {
  background: var(--dw-text-dark);
  border-color: var(--dw-text-dark);
  box-shadow: 0 0 0 6px rgba(15, 15, 15, 0.07);
}

.dw-timeline-step__n {
  font-family: var(--font-mono, monospace);
  font-size: 0.5rem;
  color: rgba(15, 15, 15, 0.38);
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: color 0.35s ease;
}

.dw-timeline-step:hover .dw-timeline-step__n {
  color: var(--dw-cream);
}

/* Title — large display, only element shown on steps */
.dw-timeline-step__title {
  font-family: var(--dw-display-font);
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  text-transform: uppercase;
  color: var(--dw-text-dark);
  line-height: 0.92;
  letter-spacing: -0.01em;
  transition: color 0.25s ease;
}

.dw-timeline-step:hover .dw-timeline-step__title {
  color: var(--dw-accent);
}

/* Hover preview card — follows cursor (position set by JS) */
.dw-timeline-preview {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 600;
  width: 280px;
  background: var(--dw-dark);
  color: #fafafa;
  border-radius: 14px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  will-change: opacity, transform, left, top;
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.07);
}

.dw-timeline-preview__img {
  height: 162px;
  overflow: hidden;
}

.dw-timeline-preview__body {
  padding: 1rem 1.25rem;
}

.dw-timeline-preview__label {
  font-family: var(--font-mono, monospace);
  font-size: 0.625rem;
  color: var(--dw-accent-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  opacity: 0.7;
}

.dw-timeline-preview__title {
  font-family: var(--dw-display-font);
  font-size: 1.5rem;
  text-transform: uppercase;
  color: #fafafa;
  line-height: 0.95;
  margin-bottom: 0.5rem;
}

.dw-timeline-preview__text {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.42);
}

/* Responsive — single column, hide preview card */
@media (max-width: 768px) {
  .dw-process-timeline::before {
    left: 1.25rem;
    transform: none;
  }

  .dw-timeline-step {
    grid-template-columns: 2.5rem 1fr;
    padding: 2.5rem 0;
  }

  .dw-timeline-step__side:nth-child(1),
  .dw-timeline-step__side:nth-child(3) {
    grid-column: 2;
    text-align: left;
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 1.5rem;
  }

  .dw-timeline-step__side:nth-child(3) {
    display: none;
  }

  .dw-timeline-step--right .dw-timeline-step__side:nth-child(1) {
    display: none;
  }

  .dw-timeline-step--right .dw-timeline-step__side:nth-child(3) {
    display: flex;
  }

  .dw-timeline-step__marker {
    grid-column: 1;
    grid-row: 1;
  }

  .dw-timeline-preview {
    display: none;
  }
}

/* ============================================================
   INSIGHTS — SWIPER SLIDER
   ============================================================ */
.dw-insights__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.5rem;
}

.dw-insights-swiper {
  overflow: visible;
}

.dw-insights-swiper .swiper-slide {
  width: 270px;
  flex-shrink: 0;
}

.dw-insights-nav {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.dw-post-card {
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.dw-post-card.in-view {
  opacity: 1;
  transform: translateY(0);
}

.dw-post-card__img {
  height: 180px;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.875rem;
  transition: transform 0.4s ease;
}

.dw-post-card:hover .dw-post-card__img {
  transform: scale(1.03);
}

.dw-post-card__tag {
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dw-accent);
  font-weight: 600;
  margin-bottom: 0.4rem;
  display: block;
}

.dw-post-card__title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--dw-text-dark);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.dw-insights__cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* ============================================================
   CONTACT
   ============================================================ */
.dw-contact__inner {
  max-width: 860px;
  margin: 0 auto;
}

.dw-contact__inner__container {
  max-width: 560px !important;
  margin: 0 auto;
}

.dw-contact__headline {
  text-align: center;
}

.dw-contact__sub {
  text-align: center;
  font-size: 0.9375rem;
  color: var(--dw-text-muted);
  line-height: 1.65;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.dw-contact-widget {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1.125rem;
  border: 1px solid var(--dw-border-dark);
  border-radius: 4px;
  margin-bottom: 1.75rem;
  background: rgba(15, 15, 15, 0.04);
  flex-wrap: wrap;
}

.dw-contact-widget__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--dw-cream-dark);
  border: 1px solid var(--dw-border-dark);
}

.dw-contact-widget__info {
  flex: 1;
  min-width: 0;
}

.dw-contact-widget__name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--dw-text-dark);
}

.dw-contact-widget__role {
  font-size: 0.6875rem;
  color: var(--dw-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.dw-contact-widget__links {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.dw-contact-widget__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--dw-text-dark);
  text-decoration: none;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--dw-border-dark);
  border-radius: 4px;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.dw-contact-widget__link:hover {
  background: var(--dw-cream-dark);
  border-color: rgba(15, 15, 15, 0.25);
}

/* Form */
.dw-contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.dw-contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.dw-contact-form__field--full {
  grid-column: 1 / -1;
}

.dw-contact-form label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--dw-text-muted);
}

.dw-contact-form input,
.dw-contact-form textarea {
  width: 100%;
  padding: 0.7rem 0.875rem;
  background: #fff;
  border: 1px solid var(--dw-border-dark);
  border-radius: 4px;
  font-family: var(--font-sans, sans-serif);
  font-size: 0.9375rem;
  color: var(--dw-text-dark);
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.dw-contact-form input::placeholder,
.dw-contact-form textarea::placeholder {
  color: rgba(15, 15, 15, 0.28);
}

.dw-contact-form input:focus,
.dw-contact-form textarea:focus {
  border-color: var(--dw-accent);
  box-shadow: 0 0 0 3px rgba(19, 19, 204, 0.1);
}

.dw-contact-form textarea {
  min-height: 130px;
  resize: vertical;
}

.dw-contact-form__submit {
  grid-column: 1 / -1;
  width: 100%;
  padding: 0.875rem;
  background: var(--dw-accent);
  color: #fff;
  border: 1.5px solid var(--dw-accent);
  border-radius: 4px;
  font-family: var(--font-sans, sans-serif);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.dw-contact-form__submit:hover {
  background: var(--dw-accent-hover);
  box-shadow: 0 0 24px rgba(19, 19, 204, 0.35);
}

@media (max-width: 480px) {
  .dw-contact-form {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
.dw-footer {
  background: var(--dw-dark);
  color: #fafafa;
  padding: 4rem clamp(1.5rem, 5vw, 4rem) 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.dw-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 2rem;
}

.dw-footer__logo {
  display: block;
  margin-bottom: 1rem;
}

.dw-footer__logo img {
  height: 46px;
  width: auto;
}

.dw-footer__company {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.65;
  margin-bottom: 0.5rem;
  max-width: 32ch;
}

.dw-footer__company strong {
  display: block;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  margin-bottom: 0.15rem;
}

.dw-footer__email {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.38);
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-block;
}

.dw-footer__email:hover {
  color: var(--dw-accent-light);
}

.dw-footer__col-label {
  display: block;
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
  font-weight: 500;
  margin-bottom: 0.875rem;
}

.dw-footer__nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.dw-footer__nav a {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.2s ease;
}

.dw-footer__nav a:hover {
  color: #fafafa;
}

.dw-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dw-footer__copy {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
  .dw-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .dw-footer__grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Swiper global overrides for this landing
   ============================================================ */
.dw-section--dark .swiper-wrapper {
  align-items: stretch;
}

.dw-section--cream .swiper-wrapper {
  align-items: stretch;
}

/* ============================================================
   MISC UTILITIES (remove need for inline styles)
   ============================================================ */

/* Clients marquee top spacing */
.dw-clients-marquee {
  margin-top: 2.5rem;
}

/* Section label — centered variant */
.dw-section__label--center {
  text-align: center;
  display: block;
}

/* Superscript counter in headings */
.dw-heading-sup {
  font-size: 0.38em;
  vertical-align: super;
  font-family: var(--font-sans, sans-serif);
  font-weight: 400;
  letter-spacing: 0;
}

/* Menu overlay email */
.dw-menu-email {
  font-size: 0.75rem;
  opacity: 0.35;
  font-family: var(--font-mono, monospace);
  color: inherit;
  text-decoration: none;
}

/* Process section: cream context — code block dark on cream */
.dw-section--cream .dw-process-code {
  background: rgba(15, 15, 15, 0.05);
  border-color: var(--dw-border-dark);
  color: rgba(15, 15, 15, 0.45);
}

.dw-section--cream .dw-process-code .kw {
  color: var(--dw-accent);
}

.dw-section--cream .dw-process-code .cls {
  color: rgba(15, 15, 15, 0.6);
}

.dw-section--cream .dw-process-code .fn {
  color: var(--dw-accent);
}

.dw-section--cream .dw-process-code .val {
  color: #16a34a;
}

.dw-section--cream .dw-process-code .cm {
  color: rgba(15, 15, 15, 0.25);
}

.dw-section--cream .dw-process-card__title {
  color: var(--dw-text-dark);
}

.dw-section--cream .dw-process-card__step {
  color: var(--dw-accent);
}

.dw-section--cream .dw-process-card__item {
  color: rgba(15, 15, 15, 0.45);
}

.dw-section--cream .dw-process-card__item::before {
  background: var(--dw-accent);
}

.dw-section--cream .dw-process-card__num {
  color: rgba(15, 15, 15, 0.04);
}

/* Process card on cream: lighter bg, dark borders */
.dw-section--cream .dw-process-grid {
  background: var(--dw-border-dark);
  border-color: var(--dw-border-dark);
}

.dw-section--cream .dw-process-card {
  background: var(--dw-cream);
}

.dw-section--cream .dw-process-card:hover {
  background: var(--dw-cream-dark);
}

/* ============================================================
   TRUST STRIP BASE (s-trust marquee component)
   ============================================================ */
.s-trust {
  padding-block: 3rem 3.5rem;
  background: transparent;
  overflow: hidden;
}

.s-trust__track-wrapper {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,1) 12%, rgba(0,0,0,1) 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,1) 12%, rgba(0,0,0,1) 88%, transparent 100%);
}

.s-trust__track {
  display: flex;
  align-items: center;
  gap: 4rem;
  width: max-content;
  animation: trust-scroll 28s linear infinite;
}

.s-trust__track-wrapper:hover .s-trust__track {
  animation-play-state: paused;
}

@keyframes trust-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.s-trust__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  white-space: nowrap;
  filter: grayscale(1) brightness(0.65);
  transition: filter 0.4s ease;
  cursor: default;
  user-select: none;
  flex-shrink: 0;
}

.s-trust__logo:hover {
  filter: grayscale(0) brightness(1);
}

.s-trust__logo img {
  height: 36px;
  width: auto;
  display: block;
}

.s-trust__sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(15,15,15,0.15);
  flex-shrink: 0;
}

/* ============================================================
   WORDPRESS ADDITIONS
   ============================================================ */

/* Placeholder image for posts without featured images */
.dw-placeholder-img {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--dw-cream-dark) 0%, var(--dw-cream) 100%);
}

/* Project card images — fill absolutely-positioned container */
.dw-project-card__img img {
  width: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Phase & timeline hover preview images */
.dw-phase-preview__img img,
.dw-timeline-preview__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Post card link reset */
.dw-post-card__link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.dw-post-card__title a {
  text-decoration: none;
  color: inherit;
}

.dw-post-card__excerpt {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--dw-text-muted);
  margin-top: 0.4rem;
}

.dw-post-card__date {
  display: block;
  font-size: 0.6875rem;
  font-family: var(--font-mono, monospace);
  color: var(--dw-text-muted);
  margin-top: 0.5rem;
  letter-spacing: 0.04em;
}

/* Post card image — ensure img fills container */
.dw-post-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Blog listing page ── */
.dw-blog-listing__header {
  margin-bottom: 3rem;
}

.dw-blog-listing__sub {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--dw-text-muted);
  max-width: 52ch;
  margin-top: 1rem;
}

.dw-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (max-width: 1024px) {
  .dw-blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .dw-blog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ── Pagination ── */
.dw-pagination {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.dw-pagination .nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.dw-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.6rem;
  border: 1.5px solid var(--dw-border-dark);
  border-radius: 4px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--dw-text-dark);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.dw-pagination .page-numbers:hover,
.dw-pagination .page-numbers.current {
  background: var(--dw-accent);
  border-color: var(--dw-accent);
  color: #fff;
}

/* ── Blog empty state ── */
.dw-blog-empty {
  text-align: center;
  padding: 4rem 0;
}

.dw-blog-empty p {
  font-size: 1rem;
  color: var(--dw-text-muted);
  margin-bottom: 2rem;
}

/* ── Single post / page hero ── */
.dw-post-hero {
  padding: 8rem clamp(1.5rem, 5vw, 4rem) 3rem;
  background: var(--dw-dark);
  color: #fafafa;
}

/* Top row: back link + category tag */
.dw-post-hero__top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* Full-width editorial headline */
.dw-post-hero__title {
  font-family: var(--dw-display-font);
  font-size: clamp(2.5rem, 7vw, 6rem);
  line-height: 0.95;
  text-transform: uppercase;
  color: #fafafa;
  max-width: none;
  width: 100%;
  margin: 0;
}

/* Date shown below post title in hero */
.dw-post-hero__date {
  display: block;
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(250,250,250,0.5);
  font-family: var(--dw-mono, monospace);
}

/* Page hero inner (page.php) */
.dw-post-hero__inner {
  max-width: 780px;
}

.dw-post-hero .dw-display {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

/* ── Post footer: date, author, share ── */
.dw-post-footer {
  max-width: 720px;
  margin: 2.5rem auto 0;
  padding: 1.75rem 0;
  border-top: 1px solid var(--dw-border-dark);
  border-bottom: 1px solid var(--dw-border-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.dw-post-footer__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-family: var(--font-mono, monospace);
  color: var(--dw-text-muted);
  letter-spacing: 0.03em;
}

.dw-post-footer__share {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dw-share-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dw-text-muted);
  margin-right: 0.25rem;
}

.dw-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1.5px solid var(--dw-border-dark);
  border-radius: 4px;
  background: transparent;
  color: var(--dw-text-dark);
  font-size: 0.875rem;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.dw-share-btn:hover {
  background: var(--dw-accent);
  border-color: var(--dw-accent);
  color: #fff;
}

/* ── Back link ── */
.dw-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: rgba(255,255,255,0.45);
  transition: color 0.2s ease;
  white-space: nowrap;
}

.dw-back-link:hover {
  color: #fafafa;
}

/* ── Post hero breadcrumb ── */
.dw-post-hero__sep {
  color: rgba(255,255,255,0.2);
  font-size: 0.75rem;
  line-height: 1;
}

.dw-post-hero__cat {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dw-accent-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

.dw-post-hero__cat:hover {
  color: #fff;
}

/* ── Post meta (date, author) ── */
.dw-post-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-family: var(--font-mono, monospace);
  color: rgba(255,255,255,0.38);
  letter-spacing: 0.03em;
}

.dw-post-meta__sep {
  opacity: 0.4;
}

/* ── Featured image ── */
.dw-post-thumbnail {
  width: 100%;
  max-height: 520px;
  overflow: hidden;
}

.dw-post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Post content typography ── */
.dw-post-content-wrap {
  padding-top: 3.5rem;
}

.dw-post-content {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--dw-text-dark);
}

.dw-post-content h2,
.dw-post-content h3,
.dw-post-content h4 {
  font-family: var(--dw-display-font);
  text-transform: uppercase;
  color: var(--dw-text-dark);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.dw-post-content h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
.dw-post-content h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
.dw-post-content h4 { font-size: 1.125rem; }

.dw-post-content p {
  margin-bottom: 1.5rem;
}

.dw-post-content a {
  color: var(--dw-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.dw-post-content a:hover {
  color: var(--dw-accent-hover);
}

.dw-post-content ul,
.dw-post-content ol {
  margin: 0 0 1.5rem 1.5rem;
  padding: 0;
}

.dw-post-content li {
  margin-bottom: 0.5rem;
}

.dw-post-content blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--dw-accent);
  background: var(--dw-cream-dark);
  border-radius: 0 4px 4px 0;
  font-style: italic;
  color: var(--dw-text-dark);
}

.dw-post-content blockquote p:last-child {
  margin-bottom: 0;
}

.dw-post-content pre {
  background: var(--dw-dark);
  color: #fafafa;
  padding: 1.25rem 1.5rem;
  border-radius: 6px;
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.dw-post-content code {
  font-family: var(--font-mono, monospace);
  font-size: 0.875em;
  background: var(--dw-cream-dark);
  padding: 0.15em 0.4em;
  border-radius: 3px;
}

.dw-post-content pre code {
  background: none;
  padding: 0;
  font-size: inherit;
}

.dw-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 1.5rem;
}

.dw-post-content hr {
  border: none;
  border-top: 1px solid var(--dw-border-dark);
  margin: 2.5rem 0;
}

/* ── Post navigation (prev/next) ── */
.dw-post-nav {
  max-width: 720px;
  margin: 3rem auto 0;
  padding-top: 2rem;
}

.dw-post-nav .nav-links {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.dw-post-nav .nav-previous,
.dw-post-nav .nav-next {
  flex: 1;
  min-width: 0;
}

.dw-post-nav .nav-next {
  text-align: right;
}

.dw-post-nav a {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-decoration: none;
  color: var(--dw-text-dark);
}

.dw-post-nav__label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dw-accent);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.dw-post-nav__title {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--dw-text-dark);
}

.dw-post-nav a:hover .dw-post-nav__title {
  color: var(--dw-accent);
}

/* ── Contact form success ── */
.dw-form-success {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dw-accent);
  text-align: center;
  padding: 2rem 0;
}

/* ── 404 page ── */
.dw-404 {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dw-404__inner {
  text-align: center;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.dw-404 .dw-display--md {
  font-size: clamp(6rem, 20vw, 12rem);
  line-height: 0.9;
  margin: 0.5rem 0;
  color: var(--dw-text-dark);
}

.dw-404__msg {
  font-size: 1.0625rem;
  color: var(--dw-text-muted);
  margin-bottom: 2.5rem;
}

/* Blue accent CTA variant */
.dw-link-cta--accent {
  color: var(--dw-accent);
  border-color: var(--dw-accent);
}

/* ── WordPress alignment helpers ── */
.alignleft  { float: left; margin-right: 1.5rem; margin-bottom: 1rem; }
.alignright { float: right; margin-left: 1.5rem; margin-bottom: 1rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; margin-bottom: 1rem; }
.alignwide  { max-width: none; margin-left: -2rem; margin-right: -2rem; }
.alignfull  { max-width: none; width: 100vw; margin-left: calc(-50vw + 50%); }

/* ── Screen-reader text ── */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════════
   AGECHECK FORMS — form-* classes
   ═══════════════════════════════════════════════════════════════ */

.form-card {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 540px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dw-text-dark);
}

.form-label .required {
  color: var(--dw-accent);
  margin-left: 0.125rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 0.9375rem;
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--dw-text-dark);
  background: #fff;
  border: 1.5px solid rgba(15, 15, 15, 0.18);
  border-radius: 6px;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
  appearance: none;
  -webkit-appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(15, 15, 15, 0.3);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--dw-accent);
  box-shadow: 0 0 0 3px rgba(19, 19, 204, 0.1);
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%230f0f0f' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9375rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* Error state */
.form-input.is-error,
.form-select.is-error,
.form-textarea.is-error {
  border-color: #d32f2f;
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

.acf-field-error {
  display: block;
  font-size: 0.75rem;
  color: #d32f2f;
  margin-top: 0.25rem;
}

/* Feedback banner */
.form-feedback {
  font-size: 0.9375rem;
  font-weight: 500;
  min-height: 1.5rem;
  text-align: center;
}

.form-feedback.form-success { color: var(--dw-accent); }
.form-feedback.form-error   { color: #d32f2f; }

/* Submit button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.875rem 2rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, opacity 0.2s;
  text-decoration: none;
}

.btn-solid {
  background: var(--dw-dark);
  color: #fafafa;
}

.btn-solid:hover {
  background: var(--dw-accent);
  box-shadow: 0 0 20px rgba(19, 19, 204, 0.3);
}

.btn-full { width: 100%; }

.btn:disabled,
.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}
