/* PCOM Demo — Alternative Layout */

:root {
  --primary: #343C8D;
  --primary-light: #4a54a8;
  --primary-dark: #252b66;
  --primary-soft: rgba(52, 60, 141, 0.08);
  --primary-glow: rgba(52, 60, 141, 0.35);

  --bg: #050508;
  --bg-2: #0c0c12;
  --bg-dark: #0f1120;
  --bg-card: #12121a;
  --bg-light: #f4f5fa;
  --text: #eaeaf0;
  --text-muted: #9499b0;
  --text-dark: #12121a;
  --border: rgba(255, 255, 255, 0.08);

  --font-display: 'Syne', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --wrap: min(1320px, 100% - 3rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
strong { font-weight: 600; }

.d-about strong,
.d-why strong,
.d-svc-card__mantra strong,
.d-carousel__mantra strong { color: var(--primary-light); }

.d-about strong { color: var(--primary); }

.d-hero strong,
.d-connect strong,
.d-future strong,
.d-contact strong { color: #fff; }

.d-wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.d-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 1rem;
}

.d-heading {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.d-heading--xl {
  font-size: clamp(3rem, 7vw, 6rem);
}

.d-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 1.5rem;
}

.d-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.9rem 2rem;
  background: var(--primary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 100px;
  border: 2px solid var(--primary);
  transition: all 0.35s var(--ease);
}

.d-btn:hover {
  background: #fff;
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 16px 48px var(--primary-glow);
}

.d-btn--outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}

.d-btn--outline:hover {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}

/* Cursor glow */
.cursor-glow {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(52,60,141,0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  opacity: 0;
}

body.is-ready .cursor-glow { opacity: 1; }

/* Topbar + Header */
.d-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.d-header {
  padding: 1rem 0;
  transition: background 0.4s, border-color 0.4s;
}

.d-topbar.is-scrolled .d-header,
.d-topbar.is-menu-open .d-header {
  background: rgba(5, 5, 8, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.d-topbar.is-menu-open {
  z-index: 10000;
}

.d-header__inner {
  width: var(--wrap);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.d-logo img { height: 34px; width: auto; }

/* Nav */
.d-nav {
  z-index: 1001;
}

.d-nav__overlay,
.d-nav__mobile-head,
.d-nav__mobile-foot {
  display: none;
}

@media (min-width: 769px) {
  .d-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    pointer-events: none;
  }

  .d-nav__panel {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2rem;
    width: var(--wrap);
    max-width: 1320px;
    margin-inline: auto;
    padding: 1.15rem clamp(1.5rem, 4vw, 3rem);
    pointer-events: auto;
  }

  .d-nav__links {
    display: flex;
    align-items: center;
    gap: 2rem;
  }

  .d-nav__num {
    display: none;
  }

  .d-nav__links a {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color 0.25s;
  }

  .d-nav__links a:hover {
    color: #fff;
  }

  .d-nav__link-contact {
    display: none !important;
  }

  .d-nav__cta--desk {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    transition: all 0.3s var(--ease);
  }

  .d-nav__cta--desk:hover {
    background: var(--primary);
    border-color: var(--primary);
  }

  .d-menu-btn {
    display: none !important;
  }
}

.d-menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  transition: background 0.3s, border-color 0.3s;
  position: relative;
  z-index: 10001;
}

.d-menu-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.d-menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: transform 0.35s var(--ease), opacity 0.25s;
  transform-origin: center;
}

.d-menu-btn.is-open {
  background: transparent;
  border-color: transparent;
}

.d-menu-btn.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.d-menu-btn.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.d-menu-btn.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.d-hero {
  position: relative;
  min-height: 100vh;
  padding: 7rem 0 0;
  z-index: 1;
}

.d-hero__mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 20%, rgba(52,60,141,0.35) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 85% 60%, rgba(52,60,141,0.2) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  z-index: -1;
}

.d-hero__grid {
  width: var(--wrap);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding-bottom: 3rem;
}

.d-hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.d-hero__line {
  display: block;
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
}

.d-hero__line--accent {
  color: var(--primary-light);
  font-size: clamp(2.8rem, 6vw, 5rem);
}

.d-hero__tagline {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  font-style: italic;
  color: var(--text-muted);
}

.d-hero__logo-wrap {
  margin-bottom: 2rem;
  padding: 2rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 24px;
  backdrop-filter: blur(8px);
}

.d-hero__logo {
  width: min(280px, 100%);
  margin-inline: auto;
}

.d-hero__desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.d-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.d-hero__chips span {
  padding: 0.4rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 100px;
}

.d-hero__stat-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}

.d-stat {
  padding: 2rem clamp(1rem, 3vw, 2.5rem);
  border-right: 1px solid var(--border);
  text-align: center;
}

.d-stat:last-child { border-right: none; }

.d-stat__num,
.d-stat__text {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.d-stat__label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Marquee */
.d-marquee {
  overflow: hidden;
  border-block: 1px solid var(--border);
  background: var(--primary);
  padding: 1rem 0;
}

.d-marquee__track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.d-marquee__track span {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: rgba(255,255,255,0.9);
}

.d-marquee__track span::after {
  content: '◆';
  margin-left: 3rem;
  font-size: 0.5rem;
  vertical-align: middle;
  opacity: 0.5;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* About */
.d-about {
  padding: clamp(5rem, 10vw, 8rem) 0;
  background: var(--bg-light);
  color: var(--text-dark);
}

.d-about strong { color: var(--primary); }

.d-about__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 5rem);
}

.d-about__aside {
  position: relative;
}

.d-about__badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  box-shadow: 0 20px 60px var(--primary-glow);
}

.d-about__badge span {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
}

.d-about__badge small {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.d-about__main p {
  font-size: 1.1rem;
  color: #4a4f63;
  margin-bottom: 1.25rem;
}

.d-quote {
  margin: 2rem 0;
  padding: 1.75rem 2rem;
  background: #fff;
  border-left: 4px solid var(--primary);
  border-radius: 0 16px 16px 0;
  box-shadow: 0 8px 40px rgba(52,60,141,0.08);
}

.d-quote p {
  font-family: var(--font-display);
  font-size: 1.25rem !important;
  font-weight: 600;
  color: var(--text-dark) !important;
  margin-bottom: 0.35rem !important;
}

.d-mantra {
  font-size: 0.85rem !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7a8094 !important;
}

/* Connect */
.d-connect {
  padding: clamp(4rem, 8vw, 7rem) 0;
  text-align: center;
  background: var(--bg-2);
}

.d-connect__lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin: 1.5rem 0 2rem;
}

.d-connect__close {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
}

/* Services — List + Carousel (Dark) */
.d-services {
  position: relative;
  padding: clamp(5rem, 10vw, 8rem) 0;
  background: var(--bg-dark);
  color: var(--text);
  overflow: hidden;
}

.d-services::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 0% 50%, rgba(52, 60, 141, 0.2) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 80%, rgba(52, 60, 141, 0.12) 0%, transparent 50%);
  pointer-events: none;
}

.d-services .d-wrap {
  position: relative;
  z-index: 1;
}

.d-services__header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.d-services__header .d-heading {
  color: #fff;
}

.d-services__shell {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: stretch;
}

/* Service list */
.d-services__list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.d-svc-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  width: 100%;
  padding: 1.1rem 1.25rem;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 16px;
  cursor: pointer;
  color: inherit;
  font-family: inherit;
  transition: background 0.35s var(--ease), border-color 0.35s, transform 0.35s var(--ease);
  overflow: hidden;
}

.d-svc-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.d-svc-item.is-active {
  background: rgba(52, 60, 141, 0.35);
  border-color: rgba(107, 115, 196, 0.5);
  transform: translateX(6px);
}

.d-svc-item__num {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-muted);
  min-width: 1.5rem;
  padding-top: 0.15rem;
  transition: color 0.3s;
}

.d-svc-item.is-active .d-svc-item__num {
  color: #a8b0e8;
}

.d-svc-item__info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
}

.d-svc-item__name {
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}

.d-svc-item__hint {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.35;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.35s, max-height 0.35s var(--ease);
}

.d-svc-item.is-active .d-svc-item__hint {
  opacity: 1;
  max-height: 3rem;
}

.d-svc-item__bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #a8b0e8;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease);
  border-radius: 0 2px 2px 0;
}

.d-svc-item.is-active .d-svc-item__bar {
  transform: scaleY(1);
}

/* Carousel */
.d-carousel {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  overflow: hidden;
  min-height: 520px;
  backdrop-filter: blur(8px);
}

.d-carousel__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
}

.d-carousel__count {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.5);
}

.d-carousel__count span {
  color: #a8b0e8;
  font-size: 1.1rem;
}

.d-carousel__nav {
  display: flex;
  gap: 0.5rem;
}

.d-carousel__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.d-carousel__btn:hover:not(:disabled) {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: scale(1.05);
}

.d-carousel__btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}

.d-carousel__viewport {
  flex: 1;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.d-carousel__track {
  display: flex;
  width: calc(100% * var(--slide-count, 6));
  transition: transform 0.65s var(--ease);
  will-change: transform;
}

.d-carousel__slide {
  flex: 0 0 calc(100% / var(--slide-count, 6));
  width: calc(100% / var(--slide-count, 6));
  min-width: calc(100% / var(--slide-count, 6));
  padding: clamp(1.75rem, 3vw, 2.75rem);
  box-sizing: border-box;
}

.d-carousel__cat {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #a8b0e8;
  margin-bottom: 0.75rem;
}

.d-carousel__slide h3 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  color: #fff;
}

.d-carousel__callout {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: #a8b0e8;
  margin-bottom: 0.75rem;
}

.d-carousel__body {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  margin-bottom: 1.75rem;
  max-width: 620px;
}

.d-carousel__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.75rem;
}

.d-carousel__tags span {
  padding: 0.4rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: #c8ceff;
  background: rgba(52, 60, 141, 0.25);
  border: 1px solid rgba(107, 115, 196, 0.35);
  border-radius: 999px;
}

.d-carousel__mantra {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.d-carousel__mantra strong {
  color: #a8b0e8;
}

.d-carousel__progress {
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
}

.d-carousel__progress-fill {
  display: block;
  height: 100%;
  width: 16.666%;
  background: linear-gradient(90deg, var(--primary), #6b73c4);
  transition: width 0.65s var(--ease);
}

/* Why */
.d-why {
  padding: clamp(5rem, 10vw, 8rem) 0;
  background: var(--bg-light);
  color: var(--text-dark);
}

.d-why__header { margin-bottom: 2.5rem; }

.d-why__intro {
  max-width: 680px;
  margin-bottom: 3rem;
}

.d-why__intro p {
  font-size: 1.1rem;
  color: #4a4f63;
  margin-bottom: 0.75rem;
}

.d-why__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.d-why-card {
  padding: 2rem 1.5rem;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(52,60,141,0.06);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}

.d-why-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(52,60,141,0.12);
}

.d-why-card__icon {
  width: 40px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
  margin-bottom: 1.25rem;
}

.d-why-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.d-why-card p {
  font-size: 0.9rem;
  color: #5c6178;
  line-height: 1.55;
}

.d-why__banner {
  padding: 2.5rem;
  background: var(--primary);
  color: #fff;
  border-radius: 20px;
  text-align: center;
}

.d-why__banner h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.d-why__banner p {
  font-size: 1.05rem;
  opacity: 0.9;
}

/* Future */
.d-future {
  position: relative;
  padding: clamp(6rem, 12vw, 10rem) 0;
  text-align: center;
  overflow: hidden;
}

.d-future__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 100%, rgba(52,60,141,0.4) 0%, transparent 55%),
    var(--bg-2);
  z-index: -1;
}

.d-future__eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: var(--primary-light);
  margin-bottom: 1rem;
}

.d-future__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
}

.d-future__text {
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

.d-future__text p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.d-future__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  margin-bottom: 2rem;
}

.d-future__row span {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 100px;
}

.d-future__together {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: 0.35em;
}

/* Contact — Dark unified panel */
.d-contact {
  position: relative;
  padding: clamp(5rem, 10vw, 8rem) 0;
  background: var(--bg-dark);
  overflow: hidden;
}

.d-contact__mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 100% 0%, rgba(52, 60, 141, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(52, 60, 141, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

.d-contact .d-wrap {
  position: relative;
  z-index: 1;
}

.d-contact__panel {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 32px;
  padding: clamp(2rem, 4vw, 3.5rem);
  backdrop-filter: blur(16px);
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.35);
}

.d-contact__header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(2rem, 3vw, 2.5rem);
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.d-contact__title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0.5rem 0 1.25rem;
}

.d-contact__loc {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.55);
}

.d-contact__loc svg {
  opacity: 0.7;
  flex-shrink: 0;
}

.d-contact__prompts {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.65rem;
}

.d-contact__prompts li {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  padding-left: 1.5rem;
  position: relative;
}

.d-contact__prompts li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 2px;
  background: var(--primary-light);
  border-radius: 1px;
}

.d-contact__topics-wrap {
  margin-bottom: 2rem;
}

.d-contact__topics-label {
  display: none;
}

.d-contact__topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.d-contact__topic {
  padding: 0.55rem 1rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
  text-align: left;
}

.d-contact__topic:hover {
  border-color: rgba(107, 115, 196, 0.6);
  color: #fff;
}

.d-contact__topic.is-selected {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(52, 60, 141, 0.4);
}

/* Form */
.d-contact-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.d-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.d-field--full {
  grid-column: 1 / -1;
}

.d-field label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.d-field input,
.d-field select,
.d-field textarea {
  width: 100%;
  padding: 0.9rem 1.1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.d-field select {
  cursor: pointer;
  appearance: none;
  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='%23ffffff' fill-opacity='0.5' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.d-field select option {
  color: var(--text-dark);
  background: #fff;
}

.d-field textarea {
  resize: vertical;
  min-height: 130px;
}

.d-field input:focus,
.d-field select:focus,
.d-field textarea:focus {
  border-color: rgba(107, 115, 196, 0.7);
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 0 0 3px rgba(52, 60, 141, 0.25);
}

.d-field input.is-invalid,
.d-field select.is-invalid,
.d-field textarea.is-invalid {
  border-color: #e87070;
  box-shadow: 0 0 0 3px rgba(232, 112, 112, 0.2);
}

.d-contact-form__foot {
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.d-contact-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1.15rem 2rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  background: #fff;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.35s var(--ease);
}

.d-contact-form__submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(255, 255, 255, 0.15);
  gap: 1rem;
}

.d-contact-form__submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.d-form-note {
  min-height: 1.25rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.d-form-note.is-visible {
  opacity: 1;
}

.d-form-note.is-success {
  color: #8ee4a8;
}

.d-form-note.is-error {
  color: #ff9a9a;
}

/* Footer */
.d-footer {
  padding: clamp(3rem, 6vw, 4.5rem) 0 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.d-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--border);
}

.d-footer__brand img {
  height: 40px;
  width: auto;
  margin-bottom: 1.25rem;
}

.d-footer__tagline {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  font-style: italic;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.35rem;
}

.d-footer__motto {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.d-footer__nav h4,
.d-footer__info h4 {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 1.25rem;
}

.d-footer__nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.d-footer__nav a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.25s;
}

.d-footer__nav a:hover {
  color: #fff;
}

.d-footer__location {
  font-size: 0.95rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 0.75rem;
}

.d-footer__desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 280px;
}

.d-footer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0;
  flex-wrap: wrap;
}

.d-footer__copy {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.d-footer__heritage {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.35);
  text-align: right;
}

/* Responsive */
@media (max-width: 1024px) {
  .d-services__shell {
    grid-template-columns: 1fr;
  }

  .d-services__list {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 0.5rem;
    padding: 0.25rem 0 0.75rem;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 -0.25rem;
  }

  .d-services__list::-webkit-scrollbar {
    display: none;
  }

  .d-svc-item {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    max-width: 220px;
    scroll-snap-align: center;
    transform: none !important;
    padding: 0.75rem 1rem;
    flex-direction: row;
    align-items: center;
    gap: 0.65rem;
  }

  .d-svc-item__info {
    min-width: 0;
  }

  .d-svc-item__name {
    font-size: 0.82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .d-svc-item__hint {
    display: none;
  }

  .d-svc-item__bar {
    display: none;
  }

  .d-svc-item.is-active {
    background: rgba(52, 60, 141, 0.45);
    border-color: rgba(107, 115, 196, 0.6);
  }

  .d-carousel {
    min-height: auto;
  }

  .d-why__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .d-about__badge {
    position: static;
    margin-top: 1.5rem;
  }
}

@media (max-width: 768px) {
  .d-topbar {
    background: rgba(5, 5, 8, 0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
  }

  .d-header__inner {
    width: var(--wrap);
  }

  .d-menu-btn {
    display: flex;
  }

  .d-nav {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
  }

  .d-nav.is-open {
    pointer-events: auto;
  }

  .d-nav__overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease), visibility 0.4s;
    z-index: 9998;
  }

  .d-nav.is-open .d-nav__overlay {
    opacity: 1;
    visibility: visible;
  }

  .d-nav__panel {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    width: min(340px, 88vw);
    height: 100vh;
    height: 100dvh;
    background: linear-gradient(180deg, #12121c 0%, #0a0a10 100%);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.25rem 1.5rem 2rem;
    transform: translateX(100%);
    transition: transform 0.45s var(--ease);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    z-index: 9999;
  }

  .d-nav.is-open .d-nav__panel {
    transform: translateX(0);
  }

  .d-nav__mobile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1.5rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .d-nav__mobile-head img {
    height: 30px;
    width: auto;
  }

  .d-nav__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    transition: background 0.25s;
  }

  .d-nav__close:hover {
    background: rgba(255, 255, 255, 0.12);
  }

  .d-nav__links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    flex: 1;
    padding: 1rem 0;
  }

  .d-nav__link-contact {
    display: none !important;
  }

  .d-nav.is-open .d-nav__links a {
    animation: navLinkIn 0.45s var(--ease) backwards;
  }

  .d-nav.is-open .d-nav__links a:nth-child(1) { animation-delay: 0.06s; }
  .d-nav.is-open .d-nav__links a:nth-child(2) { animation-delay: 0.1s; }
  .d-nav.is-open .d-nav__links a:nth-child(3) { animation-delay: 0.14s; }
  .d-nav.is-open .d-nav__links a:nth-child(4) { animation-delay: 0.18s; }

  .d-nav__num {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-light);
    min-width: 1.75rem;
    opacity: 0.7;
  }

  .d-nav__links a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 0;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-transform: none;
    color: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: color 0.25s, padding-left 0.25s;
  }

  .d-nav__links a:hover {
    color: #fff;
    padding-left: 0.5rem;
  }

  .d-nav__cta--desk {
    display: none;
  }

  .d-nav__mobile-foot {
    display: block;
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .d-nav__mobile-foot .d-nav__cta {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--primary);
    border-color: var(--primary);
    font-size: 0.82rem;
  }

  .d-nav__mobile-foot .d-nav__cta:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
  }

  .d-nav__mobile-foot p {
    text-align: center;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
  }

  .d-menu-btn.is-open {
    opacity: 0;
    pointer-events: none;
  }

  body.is-menu-open {
    overflow: hidden;
  }

  .d-hero__grid {
    grid-template-columns: 1fr;
  }

  .d-hero__stat-bar {
    grid-template-columns: 1fr;
  }

  .d-stat {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .d-contact-form__grid {
    grid-template-columns: 1fr;
  }

  .d-contact__header {
    grid-template-columns: 1fr;
  }

  .d-contact__prompts--desk {
    display: none;
  }

  .d-contact__topics-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 0.75rem;
  }

  .d-contact__topics-wrap {
    margin-bottom: 1.5rem;
  }

  .d-contact__topics {
    flex-direction: column;
    flex-wrap: nowrap;
    overflow: visible;
    gap: 0.5rem;
  }

  .d-contact__topic {
    width: 100%;
    padding: 1rem 1.15rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: normal;
    line-height: 1.35;
    display: flex;
    align-items: center;
    gap: 0.85rem;
  }

  .d-contact__topic::before {
    content: '';
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    transition: all 0.25s var(--ease);
  }

  .d-contact__topic.is-selected {
    background: rgba(52, 60, 141, 0.4);
    border-color: rgba(107, 115, 196, 0.55);
    color: #fff;
    box-shadow: none;
  }

  .d-contact__topic.is-selected::before {
    border-color: #fff;
    background: #fff;
    box-shadow: inset 0 0 0 4px var(--primary);
  }

  .d-field--topic-select {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .d-about__grid {
    grid-template-columns: 1fr;
  }

  .d-why__grid {
    grid-template-columns: 1fr;
  }

  .d-footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .d-footer__bar {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .d-footer__heritage {
    text-align: left;
  }

  .cursor-glow { display: none; }

  /* Mobile typography — prevent overlap */
  .d-heading {
    font-size: clamp(1.85rem, 7vw, 2.75rem);
    overflow-wrap: break-word;
    word-wrap: break-word;
  }

  .d-heading--xl {
    font-size: clamp(2rem, 9vw, 3.25rem);
  }

  .d-hero__line {
    font-size: clamp(1.85rem, 7.5vw, 2.75rem);
  }

  .d-hero__line--accent {
    font-size: clamp(2rem, 8.5vw, 3rem);
  }

  .d-hero__tagline {
    font-size: 1.15rem;
  }

  .d-contact__title {
    font-size: clamp(1.85rem, 7vw, 2.75rem);
    max-width: 100%;
  }

  .d-future__title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .d-future__together {
    font-size: clamp(1.35rem, 5.5vw, 2rem);
    letter-spacing: 0.12em;
  }

  .d-future__row span {
    font-size: 0.85rem;
    padding: 0.4rem 0.85rem;
  }

  .d-carousel__slide h3 {
    font-size: clamp(1.25rem, 5vw, 1.65rem);
    overflow-wrap: break-word;
  }

  .d-carousel__tags span {
    font-size: 0.72rem;
  }

  .d-about__aside {
    padding-bottom: 0;
  }

  .d-about__badge {
    position: static;
    margin-top: 1.5rem;
    width: 100px;
    height: 100px;
  }

  .d-about__badge span {
    font-size: 2rem;
  }

  .d-contact__prompts li {
    font-size: clamp(0.95rem, 3.5vw, 1.1rem);
  }

  .d-wrap {
    width: min(1320px, 100% - 2rem);
  }

  .d-svc-item {
    max-width: 200px;
  }

  .d-svc-item__name {
    font-size: 0.78rem;
  }
}

@media (max-width: 480px) {
  .d-hero {
    padding-top: 5.5rem;
  }

  .d-stat__num,
  .d-stat__text {
    font-size: 1.75rem;
  }

  .d-stat__label {
    font-size: 0.65rem;
    line-height: 1.4;
  }

  .d-marquee__track span {
    font-size: 0.9rem;
  }

  .d-future__row {
    gap: 0.5rem;
  }

  .d-future__row span {
    font-size: 0.75rem;
    padding: 0.35rem 0.65rem;
  }

  .d-footer__heritage {
    font-size: 0.65rem;
    line-height: 1.5;
  }

  .d-services__header .d-heading {
    font-size: 1.65rem;
  }
}

@keyframes navLinkIn {
  from {
    opacity: 0;
    transform: translateX(16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .d-marquee__track { animation: none; }
  .d-nav.is-open .d-nav__links a { animation: none; }
  html { scroll-behavior: auto; }
}
