/* ==========================================================================
   Double Perfection Sdn. Bhd. — main stylesheet
   Built on Bootstrap 5.3
   ========================================================================== */

:root {
  --dp-ink: #12111c;
  --dp-ink-2: #1d1b2b;
  --dp-body: #4a4858;
  --dp-muted: #77748a;
  --dp-line: #ebe8f0;
  --dp-soft: #f8f6fa;
  --dp-pink: #eba6e6;          /* logo dot */
  --dp-pink-soft: #fbeefa;
  --dp-accent: #a63ea2;        /* readable accent on white */
  --dp-accent-dark: #86307f;
  --dp-grad: linear-gradient(135deg, #a63ea2 0%, #d47ccf 55%, #eba6e6 100%);
  --dp-radius: 1rem;
  --dp-shadow: 0 10px 30px rgba(18, 17, 28, .07);
  --dp-shadow-lg: 0 24px 60px rgba(18, 17, 28, .12);
  --dp-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --dp-font-zh: "Plus Jakarta Sans", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;

  --bs-primary: var(--dp-accent);
  --bs-primary-rgb: 166, 62, 162;
  --bs-link-color: var(--dp-accent);
  --bs-link-color-rgb: 166, 62, 162;
  --bs-link-hover-color: var(--dp-accent-dark);
  --bs-link-hover-color-rgb: 134, 48, 127;
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--dp-font);
  color: var(--dp-body);
  background: #fff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html[lang="zh-Hans"] body { font-family: var(--dp-font-zh); line-height: 1.85; }

h1, h2, h3, h4, h5, h6 { color: var(--dp-ink); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
html[lang="zh-Hans"] h1, html[lang="zh-Hans"] h2, html[lang="zh-Hans"] h3,
html[lang="zh-Hans"] h4, html[lang="zh-Hans"] h5 { letter-spacing: 0; line-height: 1.35; }

a { text-decoration: none; }
::selection { background: var(--dp-pink); color: var(--dp-ink); }

.text-gradient {
  background: var(--dp-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn { font-weight: 600; border-radius: 999px; padding: .75rem 1.6rem; transition: all .25s ease; }
.btn-sm { padding: .45rem 1rem; }
.btn-dp {
  background: var(--dp-ink); color: #fff; border: 1px solid var(--dp-ink);
}
.btn-dp:hover, .btn-dp:focus { background: var(--dp-accent); border-color: var(--dp-accent); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(166, 62, 162, .3); }
.btn-dp-outline { border: 1px solid rgba(18, 17, 28, .2); color: var(--dp-ink); background: transparent; }
.btn-dp-outline:hover { border-color: var(--dp-ink); background: var(--dp-ink); color: #fff; }
.btn-dp-light { background: #fff; color: var(--dp-ink); border: 1px solid #fff; }
.btn-dp-light:hover { background: var(--dp-pink); border-color: var(--dp-pink); color: var(--dp-ink); transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--dp-pink); outline-offset: 2px; }

/* ---------- Navbar ---------- */
.dp-nav {
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: padding .25s ease, border-color .25s ease, box-shadow .25s ease;
  padding: 1.1rem 0;
}
.dp-nav.scrolled { padding: .6rem 0; border-color: var(--dp-line); box-shadow: 0 4px 20px rgba(18, 17, 28, .05); }
.dp-brand { display: flex; align-items: center; gap: .6rem; color: var(--dp-ink); }
.dp-brand img { width: 40px; height: 40px; }
.dp-brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.dp-brand-text strong { font-size: 1.05rem; font-weight: 800; letter-spacing: .02em; color: var(--dp-ink); }
.dp-brand-text small { font-size: .62rem; font-weight: 600; letter-spacing: .18em; color: var(--dp-muted); }
.dp-nav .nav-link {
  color: var(--dp-ink); font-weight: 500; padding: .5rem 1rem !important; position: relative;
}
.dp-nav .nav-link::after {
  content: ""; position: absolute; left: 1rem; right: 1rem; bottom: .25rem; height: 2px;
  background: var(--dp-grad); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.dp-nav .nav-link:hover::after, .dp-nav .nav-link.active::after { transform: scaleX(1); }
.dp-nav .nav-link.active { color: var(--dp-accent); }
.lang-switch {
  display: inline-flex; border: 1px solid var(--dp-line); border-radius: 999px; padding: 3px; background: #fff;
}
.lang-switch button {
  border: 0; background: transparent; font-size: .8rem; font-weight: 600; color: var(--dp-muted);
  padding: .3rem .75rem; border-radius: 999px; transition: all .2s ease; line-height: 1.4;
}
.lang-switch button.active { background: var(--dp-ink); color: #fff; }
.navbar-toggler { border: 0; padding: .4rem; }
.navbar-toggler:focus { box-shadow: 0 0 0 3px var(--dp-pink); }

@media (max-width: 991.98px) {
  .dp-nav .navbar-collapse {
    background: #fff; border-radius: var(--dp-radius); margin-top: .75rem; padding: .75rem;
    box-shadow: var(--dp-shadow-lg);
  }
  .dp-nav .nav-link::after { display: none; }
  .dp-nav .nav-link { padding: .7rem .75rem !important; border-radius: .6rem; }
  .dp-nav .nav-link.active { background: var(--dp-pink-soft); }
  .dp-nav-actions { padding: .75rem; border-top: 1px solid var(--dp-line); margin-top: .5rem; }
}

/* ---------- Sections ---------- */
.section { padding: 6rem 0; }
.section-sm { padding: 4rem 0; }
.bg-soft { background: var(--dp-soft); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--dp-accent); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dp-pink); box-shadow: 0 0 0 4px var(--dp-pink-soft); }
.section-title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 1rem; }
.section-lead { font-size: 1.1rem; color: var(--dp-muted); max-width: 640px; }
.section-head.text-center .section-lead { margin-left: auto; margin-right: auto; }

@media (max-width: 767.98px) {
  .section { padding: 4rem 0; }
  .section-sm { padding: 3rem 0; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; padding: 9rem 0 6rem; overflow: hidden;
  background:
    radial-gradient(60% 60% at 85% 20%, rgba(235, 166, 230, .35) 0%, rgba(235, 166, 230, 0) 70%),
    radial-gradient(40% 50% at 0% 100%, rgba(166, 62, 162, .08) 0%, rgba(166, 62, 162, 0) 70%),
    #fff;
}
.hero h1 { font-size: clamp(2.3rem, 5.5vw, 4rem); font-weight: 800; margin-bottom: 1.5rem; }
html[lang="zh-Hans"] .hero h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
.hero .lead { font-size: 1.18rem; color: var(--dp-body); max-width: 560px; margin-bottom: 2.2rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.hero-badge {
  font-size: .8rem; font-weight: 600; padding: .35rem .85rem; border-radius: 999px;
  background: #fff; border: 1px solid var(--dp-line); color: var(--dp-ink);
}
.hero-badge i { color: var(--dp-accent); margin-right: .3rem; }

.hero-visual { position: relative; aspect-ratio: 1 / 1; max-width: 520px; margin: 0 auto; }
/* orbit paths: each circle sways gently and carries its chip along the path */
.hero-visual .orbit {
  position: absolute; z-index: 2; border-radius: 50%; border: 1px dashed rgba(166, 62, 162, .3);
  animation: orbitSway var(--d, 12s) ease-in-out infinite alternate;
}
.hero-visual .orbit.o1 { inset: 0; --d: 13s; }
.hero-visual .orbit.o2 { inset: 10%; --d: 11s; border-style: solid; border-color: rgba(18, 17, 28, .08); }
.hero-visual .orbit.o3 { inset: 18%; --d: 15s; }
.hero-visual .orbit.o4 { inset: 27%; --d: 10s; border-style: solid; border-color: rgba(166, 62, 162, .18); }
.orbit-arm { position: absolute; left: 50%; top: 50%; width: 50%; height: 0; transform-origin: 0 0; transform: rotate(var(--a)); }
.orbit-anchor { position: absolute; right: 0; top: 0; width: 0; height: 0; transform: rotate(calc(-1 * var(--a))); }
/* cancels the orbit's sway so the chip text stays upright */
.orbit-counter { position: absolute; left: 0; top: 0; animation: orbitCounter var(--d, 12s) ease-in-out infinite alternate; }
.orbit .hero-chip { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); animation: none; }
.hero-core {
  position: absolute; z-index: 1; inset: 35%; border-radius: 50%; background: #fff; box-shadow: var(--dp-shadow-lg);
  display: grid; place-items: center;
}
.hero-core .hero-mark { width: 64%; height: auto; animation: float 6s ease-in-out infinite; }
.hero-chip {
  position: absolute; display: flex; align-items: center; gap: .6rem; background: #fff;
  padding: .7rem 1rem; border-radius: .9rem; box-shadow: var(--dp-shadow-lg); font-weight: 600;
  font-size: .9rem; color: var(--dp-ink); white-space: nowrap;
}
.hero-chip .ic {
  width: 36px; height: 36px; border-radius: .6rem; display: grid; place-items: center;
  background: var(--dp-pink-soft); color: var(--dp-accent); font-size: 1.1rem;
}
@keyframes orbitSway { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }
@keyframes orbitCounter { from { transform: rotate(5deg); } to { transform: rotate(-5deg); } }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

@media (max-width: 991.98px) {
  .hero { padding: 7.5rem 0 4rem; text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero-badges { justify-content: center; }
  .hero-actions { justify-content: center; }
  .hero-visual { max-width: 380px; margin-top: 3rem; }
}
@media (max-width: 575.98px) {
  .hero-visual { max-width: 300px; }
  .hero-chip { font-size: .75rem; padding: .5rem .7rem; }
  .hero-chip .ic { width: 28px; height: 28px; font-size: .9rem; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; overflow: hidden; padding: 10rem 0 5rem; color: rgba(255, 255, 255, .78);
  background:
    radial-gradient(50% 80% at 90% 10%, rgba(235, 166, 230, .35) 0%, rgba(235, 166, 230, 0) 70%),
    radial-gradient(40% 60% at 10% 110%, rgba(166, 62, 162, .45) 0%, rgba(166, 62, 162, 0) 70%),
    var(--dp-ink);
}
.page-hero::after {
  content: ""; position: absolute; right: -120px; top: 50%; width: 460px; height: 460px; transform: translateY(-50%);
  background: url("../img/logo-light.png") left center / auto 100% no-repeat; opacity: .06; pointer-events: none;
}
@media (max-width: 991.98px) { .page-hero { padding: 8rem 0 4rem; } }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; margin-bottom: 1rem; }
.page-hero .lead { max-width: 640px; font-size: 1.12rem; }
.page-hero .eyebrow { color: var(--dp-pink); }
.page-hero .eyebrow::before { box-shadow: 0 0 0 4px rgba(235, 166, 230, .2); }
.breadcrumb { --bs-breadcrumb-divider-color: rgba(255, 255, 255, .4); margin-bottom: 1.25rem; font-size: .88rem; }
.breadcrumb a { color: rgba(255, 255, 255, .7); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb-item.active { color: var(--dp-pink); }

/* ---------- Cards ---------- */
.dp-card {
  height: 100%; background: #fff; border: 1px solid var(--dp-line); border-radius: var(--dp-radius);
  padding: 2rem; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; position: relative;
}
.dp-card:hover { transform: translateY(-6px); box-shadow: var(--dp-shadow-lg); border-color: transparent; }
.dp-card h3, .dp-card h4 { font-size: 1.25rem; margin-bottom: .75rem; }
.dp-card p { margin-bottom: 0; }
.dp-icon {
  width: 56px; height: 56px; border-radius: .9rem; display: grid; place-items: center; font-size: 1.5rem;
  background: var(--dp-pink-soft); color: var(--dp-accent); margin-bottom: 1.4rem; transition: all .3s ease;
}
.dp-card:hover .dp-icon { background: var(--dp-grad); color: #fff; }
.dp-card .card-link {
  display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; margin-top: 1.25rem; color: var(--dp-ink);
}
.dp-card .card-link i { transition: transform .25s ease; }
.dp-card:hover .card-link { color: var(--dp-accent); }
.dp-card:hover .card-link i { transform: translateX(4px); }

.pillar-card { padding: 2.5rem 2rem; overflow: hidden; }
.pillar-card .num {
  position: absolute; top: 1.25rem; right: 1.5rem; font-size: 3.5rem; font-weight: 800; line-height: 1;
  color: var(--dp-soft); transition: color .3s ease;
}
.pillar-card:hover .num { color: var(--dp-pink-soft); }

.dp-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.dp-list li { position: relative; padding-left: 1.6rem; margin-bottom: .5rem; }
.dp-list li::before {
  content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: 0;
  color: var(--dp-accent); font-weight: 700;
}

/* ---------- Why us (dark) ---------- */
.why-section {
  position: relative; overflow: hidden; color: rgba(255, 255, 255, .7);
  background:
    radial-gradient(45% 60% at 100% 0%, rgba(235, 166, 230, .22) 0%, rgba(235, 166, 230, 0) 70%),
    radial-gradient(40% 60% at 0% 100%, rgba(166, 62, 162, .35) 0%, rgba(166, 62, 162, 0) 70%),
    var(--dp-ink);
}
/* concentric rings echoing the logo */
.why-section::before {
  content: ""; position: absolute; left: -180px; bottom: -220px; width: 560px; height: 560px; border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 46px, rgba(255, 255, 255, .05) 46px 48px);
  pointer-events: none;
}
.why-section .section-title { color: #fff; }
.why-section .section-lead { color: rgba(255, 255, 255, .65); }
.why-section .eyebrow { color: var(--dp-pink); }
.why-section .eyebrow::before { box-shadow: 0 0 0 4px rgba(235, 166, 230, .2); }

.why-card {
  position: relative; height: 100%; padding: 1.9rem; border-radius: var(--dp-radius); overflow: hidden;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform .35s ease, background .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.why-card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: var(--dp-grad);
  transform: scaleX(0); transform-origin: left; transition: transform .45s ease;
}
.why-card:hover {
  transform: translateY(-6px); background: rgba(255, 255, 255, .07); border-color: rgba(235, 166, 230, .35);
  box-shadow: 0 20px 50px rgba(166, 62, 162, .25);
}
.why-card:hover::before { transform: scaleX(1); }
.why-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.4rem; }
.why-icon {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 1.3rem;
  background: var(--dp-grad); color: #fff; box-shadow: 0 8px 20px rgba(166, 62, 162, .4);
}
.why-num { font-size: 2.2rem; font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .22); }
.why-card:hover .why-num { -webkit-text-stroke-color: var(--dp-pink); }
.why-card h4 { color: #fff; font-size: 1.15rem; margin-bottom: .5rem; }
.why-card p { margin: 0; font-size: .95rem; color: rgba(255, 255, 255, .62); }
/* staggered grid on desktop */
@media (min-width: 992px) {
  .why-grid { padding-bottom: 2.5rem; }
  .why-grid > div:nth-child(even) .why-card { top: 2.5rem; }
}

/* ---------- Process ---------- */
.process-step { position: relative; text-align: center; padding: 0 .75rem; }
.process-step .step-num {
  width: 72px; height: 72px; margin: 0 auto 1.25rem; border-radius: 50%; display: grid; place-items: center;
  font-size: 1.4rem; font-weight: 800; color: var(--dp-ink); background: #fff; border: 1px solid var(--dp-line);
  position: relative; z-index: 1; transition: all .3s ease;
}
.process-step:hover .step-num { background: var(--dp-ink); color: #fff; border-color: var(--dp-ink); }
.process-step h4 { font-size: 1.15rem; margin-bottom: .5rem; }
.process-step p { color: var(--dp-muted); margin-bottom: 0; font-size: .95rem; }
@media (min-width: 992px) {
  .row > div:not(:last-child) > .process-step::after {
    content: ""; position: absolute; top: 36px; left: calc(50% + 46px); right: calc(-50% - 3rem + 46px);
    border-top: 2px dashed var(--dp-line);
  }
}

/* ---------- About page ---------- */
.mv-card { border-radius: var(--dp-radius); padding: 2.25rem; height: 100%; }
.mv-card.mission { background: var(--dp-pink-soft); }
.mv-card.vision { background: var(--dp-ink); color: rgba(255, 255, 255, .8); }
.mv-card.vision h3 { color: #fff; }
.mv-card .dp-icon { background: #fff; }
.mv-card.vision .dp-icon { background: rgba(255, 255, 255, .08); color: var(--dp-pink); }

.value-item { text-align: center; padding: 1.5rem 1rem; }
.value-item .dp-icon { margin: 0 auto 1.1rem; }
.value-item h4 { font-size: 1.1rem; }
.value-item p { color: var(--dp-muted); font-size: .95rem; margin: 0; }

/* ---------- Services page ---------- */
.service-nav {
  position: sticky; top: 72px; z-index: 10; background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--dp-line);
}
.service-nav .nav { flex-wrap: nowrap; overflow-x: auto; gap: .5rem; padding: .85rem 0; scrollbar-width: none; }
.service-nav .nav::-webkit-scrollbar { display: none; }
.service-nav .nav-link {
  white-space: nowrap; border-radius: 999px; color: var(--dp-ink); font-weight: 600; font-size: .92rem;
  padding: .5rem 1.1rem; border: 1px solid var(--dp-line); background: #fff;
}
.service-nav .nav-link:hover, .service-nav .nav-link.active { background: var(--dp-ink); color: #fff; border-color: var(--dp-ink); }

.service-group + .service-group { border-top: 1px solid var(--dp-line); }
.service-group-head .dp-icon { width: 64px; height: 64px; font-size: 1.7rem; background: var(--dp-grad); color: #fff; }

/* Software development cards */
.sw-card {
  height: 100%; display: flex; flex-direction: column; padding: 2rem; border-radius: var(--dp-radius);
  background: #fff; border: 1px solid var(--dp-line); transition: transform .3s ease, box-shadow .3s ease;
}
.sw-card:hover { transform: translateY(-6px); box-shadow: var(--dp-shadow-lg); }
.sw-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.sw-icon {
  width: 56px; height: 56px; border-radius: .9rem; display: grid; place-items: center; font-size: 1.5rem;
  background: var(--dp-grad); color: #fff; box-shadow: 0 8px 20px rgba(166, 62, 162, .3);
}
.sw-card h3 { font-size: 1.3rem; margin-bottom: .75rem; }
.sw-gain { margin-top: auto; padding: 1.25rem 1.25rem .75rem; border-radius: .8rem; background: var(--dp-soft); }
.sw-gain h4 { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--dp-ink); margin: 0; }
.sw-gain .dp-list { margin-top: .75rem; font-size: .93rem; }
.sw-card p { margin-bottom: 1.5rem; }
.sw-card.featured { background: var(--dp-ink); border-color: var(--dp-ink); color: rgba(255, 255, 255, .72); }
.sw-card.featured h3 { color: #fff; }
.sw-card.featured .sw-gain { background: rgba(255, 255, 255, .06); }
.sw-card.featured .sw-gain h4 { color: #fff; }
.sw-card.featured .dp-list li::before { color: var(--dp-pink); }

/* ---------- Contact page ---------- */
.contact-card { display: flex; gap: 1.1rem; align-items: flex-start; }
.contact-card .dp-icon { flex: 0 0 52px; width: 52px; height: 52px; font-size: 1.3rem; margin: 0; }
.contact-card h4 { font-size: 1rem; margin-bottom: .25rem; }
.contact-card p, .contact-card a { margin: 0; color: var(--dp-body); word-break: break-word; }
.contact-card a:hover { color: var(--dp-accent); }

.form-wrap { background: #fff; border-radius: calc(var(--dp-radius) * 1.25); padding: 2.5rem; box-shadow: var(--dp-shadow-lg); border: 1px solid var(--dp-line); }
@media (max-width: 575.98px) { .form-wrap { padding: 1.5rem; } }
.form-label { font-weight: 600; color: var(--dp-ink); font-size: .9rem; }
.form-control, .form-select {
  border-radius: .7rem; border-color: var(--dp-line); padding: .8rem 1rem; background-color: var(--dp-soft);
}
.form-control:focus, .form-select:focus { border-color: var(--dp-pink); box-shadow: 0 0 0 .25rem rgba(235, 166, 230, .3); background-color: #fff; }
.map-wrap { border-radius: calc(var(--dp-radius) * 1.25); overflow: hidden; border: 1px solid var(--dp-line); line-height: 0; }
.map-wrap iframe { width: 100%; height: 420px; border: 0; filter: grayscale(.2); }
@media (max-width: 575.98px) { .map-wrap iframe { height: 300px; } }

/* ---------- Testimonials ---------- */
.t-controls { display: flex; gap: .75rem; margin-top: 2rem; }
.t-btn {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 1.2rem;
  border: 1px solid var(--dp-line); background: #fff; color: var(--dp-ink); transition: all .25s ease;
}
.t-btn:hover:not(:disabled) { background: var(--dp-ink); border-color: var(--dp-ink); color: #fff; }
.t-btn:disabled { opacity: .35; cursor: default; }
.t-btn:focus-visible { outline: 3px solid var(--dp-pink); outline-offset: 2px; }
.t-track {
  display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: .5rem .25rem 1.5rem; margin: 0 -.25rem; scrollbar-width: none; overscroll-behavior-x: contain;
}
.t-track::-webkit-scrollbar { display: none; }
.t-track:focus-visible { outline: 3px solid var(--dp-pink); outline-offset: 4px; border-radius: var(--dp-radius); }
.t-card {
  flex: 0 0 calc(50% - .625rem); scroll-snap-align: start; margin: 0; display: flex; flex-direction: column;
  padding: 2rem; border-radius: calc(var(--dp-radius) * 1.25); background: #fff; border: 1px solid var(--dp-line);
  box-shadow: var(--dp-shadow); transition: transform .3s ease, box-shadow .3s ease;
}
.t-card:hover { transform: translateY(-4px); box-shadow: var(--dp-shadow-lg); }
.t-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.t-quote { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; background: var(--dp-grad); color: #fff; }
.t-tag { font-size: .68rem; font-weight: 700; letter-spacing: .06em; white-space: nowrap; text-transform: uppercase; color: var(--dp-accent); background: var(--dp-pink-soft); padding: .3rem .75rem; border-radius: 999px; text-align: right; }
.t-card blockquote { font-size: 1.05rem; line-height: 1.75; color: var(--dp-ink); margin: 0 0 1.75rem; flex: 1; }
.t-person { display: flex; align-items: center; gap: .85rem; padding-top: 1.25rem; border-top: 1px solid var(--dp-line); }
.t-avatar { width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .9rem; background: var(--dp-ink); color: #fff; }
.t-person strong { display: block; color: var(--dp-ink); font-size: .98rem; }
.t-person small { display: block; color: var(--dp-muted); font-size: .85rem; }
@media (max-width: 991.98px) { .t-card { flex-basis: calc(70% - .625rem); } }
@media (max-width: 575.98px) {
  .t-card { flex-basis: 88%; padding: 1.5rem; }
  .t-controls { margin-top: 1.25rem; }
}

/* ---------- Footer (light, type-led) ---------- */
.dp-footer {
  position: relative; overflow: hidden; padding: 5.5rem 0 0; font-size: .95rem; color: var(--dp-body);
  background:
    radial-gradient(50% 60% at 100% 0%, rgba(235, 166, 230, .35) 0%, rgba(235, 166, 230, 0) 70%),
    linear-gradient(180deg, #fff 0%, var(--dp-pink-soft) 100%);
  border-top: 1px solid var(--dp-line);
}
.dp-footer a { color: inherit; }

.footer-cta { padding-bottom: 4rem; }
.footer-cta-title { font-size: clamp(2.2rem, 5.5vw, 4.2rem); font-weight: 800; line-height: 1.05; margin-bottom: 1.25rem; max-width: 760px; }
html[lang="zh-Hans"] .footer-cta-title { line-height: 1.25; }
.footer-cta-text { font-size: 1.1rem; color: var(--dp-muted); max-width: 560px; }

/* spinning circular button */
.cta-circle { position: relative; display: grid; place-items: center; width: 190px; height: 190px; flex: none; }
.cta-circle-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; }
.cta-circle-ring text { font-size: 15px; font-weight: 700; letter-spacing: .12em; fill: var(--dp-ink); }
html[lang="zh-Hans"] .cta-circle-ring text { letter-spacing: 0; }
.cta-circle-core {
  width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; font-size: 2rem;
  background: var(--dp-ink); color: #fff; transition: background .3s ease, transform .4s cubic-bezier(.34, 1.56, .64, 1);
}
.cta-circle:hover .cta-circle-core { background: var(--dp-accent); transform: scale(1.08) rotate(45deg); }
.cta-circle:focus-visible { outline: 3px solid var(--dp-pink); outline-offset: 4px; border-radius: 50%; }

/* contact tiles */
.contact-tile {
  position: relative; display: flex; flex-direction: column; gap: .35rem; height: 100%; padding: 1.5rem 1.6rem;
  border-radius: var(--dp-radius); background: rgba(255, 255, 255, .75); border: 1px solid var(--dp-line);
  transition: background .3s ease, border-color .3s ease, transform .3s ease, color .3s ease;
}
.ct-label { display: inline-flex; align-items: center; gap: .5rem; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--dp-accent); }
.ct-value { font-size: 1.08rem; font-weight: 700; color: var(--dp-ink); word-break: break-word; padding-right: 1.5rem; }
.ct-sub { font-size: .85rem; color: var(--dp-muted); }
.ct-arrow { position: absolute; top: 1.4rem; right: 1.4rem; font-size: 1.1rem; color: var(--dp-ink); transition: transform .3s ease; }
.contact-tile:hover { background: var(--dp-ink); border-color: var(--dp-ink); transform: translateY(-4px); }
.contact-tile:hover .ct-value, .contact-tile:hover .ct-arrow { color: #fff; }
.contact-tile:hover .ct-label { color: var(--dp-pink); }
.contact-tile:hover .ct-sub { color: rgba(255, 255, 255, .6); }
.contact-tile:hover .ct-arrow { transform: translate(3px, -3px); }

/* brand + links row */
.footer-mid {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
  margin-top: 3.5rem; padding: 2rem 0; border-top: 1px solid rgba(18, 17, 28, .08); border-bottom: 1px solid rgba(18, 17, 28, .08);
}
.footer-brand { display: flex; align-items: center; gap: .65rem; }
.footer-brand img { width: 40px; height: 40px; }
.footer-brand strong { display: block; color: var(--dp-ink); font-size: 1rem; font-weight: 800; letter-spacing: .02em; line-height: 1.1; }
.footer-brand small { display: block; font-size: .62rem; font-weight: 600; letter-spacing: .18em; color: var(--dp-muted); }
.footer-nav { display: flex; flex-wrap: wrap; gap: .5rem 2rem; list-style: none; margin: 0; padding: 0; }
.footer-nav a { font-weight: 600; color: var(--dp-ink); position: relative; }
.footer-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--dp-grad);
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.footer-nav a:hover::after { transform: scaleX(1); }

.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem;
  padding: 1.5rem 0; font-size: .85rem; color: var(--dp-muted);
}

/* giant wordmark */
.footer-wordmark {
  font-size: clamp(2rem, 8.4vw, 10rem); font-weight: 800; line-height: .78; letter-spacing: -.04em;
  text-align: center; white-space: nowrap; user-select: none; pointer-events: none;
  margin-top: 1rem; margin-bottom: -.12em; padding: 0 .5rem;
  background: linear-gradient(180deg, rgba(166, 62, 162, .3) 0%, rgba(166, 62, 162, .07) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

@media (max-width: 767.98px) {
  .dp-footer { padding-top: 4rem; }
  .footer-cta { padding-bottom: 3rem; text-align: center; }
  .footer-cta-text { margin: 0 auto; }
  .cta-circle { width: 160px; height: 160px; }
  .cta-circle-core { width: 88px; height: 88px; font-size: 1.7rem; }
  .footer-mid { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; padding-bottom: 1rem; }
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1030; width: 46px; height: 46px; border-radius: 50%;
  background: var(--dp-ink); color: #fff; border: 0; display: grid; place-items: center; font-size: 1.2rem;
  box-shadow: var(--dp-shadow-lg); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s ease;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--dp-accent); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; }
.reveal.d2 { transition-delay: .2s; }
.reveal.d3 { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}


/* About: illustration + activity tiles */
.about-illustration { width: 100%; max-width: 540px; height: auto; }
.activity-tile {
  height: 100%; border-radius: var(--dp-radius); padding: 1.75rem; background: #fff; border: 1px solid var(--dp-line);
  transition: transform .3s ease, box-shadow .3s ease;
}
.activity-tile:hover { transform: translateY(-6px); box-shadow: var(--dp-shadow-lg); }
.activity-tile h4 { font-size: 1.1rem; margin-bottom: .4rem; }
.activity-tile p { margin: 0; color: var(--dp-muted); font-size: .95rem; }
.activity-tile .dp-icon { margin-bottom: 1.1rem; }
.activity-tile.dark { background: var(--dp-ink); border-color: var(--dp-ink); }
.activity-tile.dark h4 { color: #fff; }
.activity-tile.dark p { color: rgba(255, 255, 255, .7); }
.activity-tile.dark .dp-icon { background: rgba(255, 255, 255, .08); color: var(--dp-pink); }

/* ---------- Process animation (home "How We Work") ---------- */
.process-step .step-num::before {
  content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 2px solid var(--dp-pink);
  opacity: 0; transform: scale(.9); pointer-events: none;
}
.process-step h4 { transition: color .4s ease; }
.process-animated .process-step .step-num { opacity: 0; transform: scale(.5); }
.process-animated.play .process-step .step-num {
  animation: stepPop .7s cubic-bezier(.34, 1.56, .64, 1) forwards;
  animation-delay: calc(var(--i, 0) * .35s);
}
.process-step.active .step-num {
  background: var(--dp-ink); color: #fff; border-color: var(--dp-ink);
  box-shadow: 0 12px 28px rgba(166, 62, 162, .35);
}
.process-step.active .step-num::before { animation: stepRing 1.6s ease-out infinite; }
.process-step.active h4 { color: var(--dp-accent); }
@media (min-width: 992px) {
  .process-animated > div:not(:last-child) > .process-step::before {
    content: ""; position: absolute; top: 36px; height: 2px; left: calc(50% + 46px); right: calc(-50% - 3rem + 46px);
    background: var(--dp-grad); transform: scaleX(0); transform-origin: left;
    transition: transform .6s ease; transition-delay: calc(var(--i, 0) * .35s + .35s);
  }
  .process-animated.play > div:not(:last-child) > .process-step::before { transform: scaleX(1); }
}
@keyframes stepPop { to { opacity: 1; transform: scale(1); } }
@keyframes stepRing { 0% { opacity: .9; transform: scale(.9); } 100% { opacity: 0; transform: scale(1.4); } }
@media (prefers-reduced-motion: reduce) {
  .process-animated .process-step .step-num { opacity: 1; transform: none; }
}
