/*
 * Dental SEO Services — "enamel".
 *
 * A clinical-calm page. Deep teal ink on white and a mint ground; one
 * teal-to-sky "floss" gradient (--dn-floss) spent on the numerals, the icon
 * plates, the open strategy panel, the process arch and the closing band.
 * Two motifs carry the subject: four-point sparkle glints (clean teeth) and
 * the smile curve — under the H1, under every stat, and as the dental arch
 * that tells the process. White text never sits on the bright gradient; the
 * text bands use --dn-floss-deep.
 *
 * Everything is scoped under .dn-page. landing.css still loads (the button
 * set and the shared FAQ accordion), so a few rules unpick a shared default.
 *
 * Motion contract (same as the HVAC and AIO pages): [data-reveal] gets .is-in
 * from dental-seo.js on first intersection and each child staggers off its
 * own --i; the reveal is an ANIMATION with backwards fill, so it never
 * replaces a component's own hover transition. Hero elements carry .dn-rise
 * and animate on load. Hiding is gated on .dn-js, added by the script at
 * parse time — no script, nothing hidden. Everything collapses to "visible,
 * still" under prefers-reduced-motion at the foot of this file.
 *
 * Order: tokens, type, buttons, motion, hero, what + stats, helps (bento),
 * services + turn band, strategies (panels), cases (stack) + grow band,
 * process (arch), why, who, leads, FAQ, responsive, reduced motion.
 */
.dn-page {
  --dn-ink: #0b2b33;
  --dn-ink-2: #103a44;
  --dn-teal: #0fa89a;
  --dn-teal-d: #0b7f78;
  --dn-sky: #3a8dff;
  --dn-mint: #eef9f7;
  --dn-mint-2: #d9f1ec;
  --dn-coral: #ff7a6b;
  --dn-floss: linear-gradient(120deg, #19c2b0 0%, #3a8dff 100%);
  --dn-floss-text: linear-gradient(100deg, #0b9e92 0%, #1aa7c4 45%, #2f7fe8 100%);
  --dn-floss-deep: linear-gradient(125deg, #0a6f6a 0%, #0b7f78 35%, #1f5fd0 100%);
  --dn-muted: #56696e;
  --dn-line: rgba(11, 43, 51, 0.1);
  --dn-line-light: rgba(255, 255, 255, 0.12);

  --dn-num: "Poppins", var(--heading-font);
  --dn-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dn-sec-y: clamp(64px, 8vw, 120px);
  --dn-top: clamp(96px, 9vw, 124px); /* the theme's header-clearing offset */
  --dn-radius: 28px;

  background: #fff;
  color: var(--dn-ink);
  overflow-x: clip; /* glows and sparkles overhang; never scroll for them */
}

.dn-page ul,
.dn-page ol,
.dn-page dl,
.dn-page dd,
.dn-page figure {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dn-sec {
  position: relative;
  padding-block: var(--dn-sec-y);
}

.dn-mint {
  background: var(--dn-mint);
}

.dn-dark {
  background: var(--dn-ink);
  color: #fff;
}

/* ---------- Type ---------- */
.dn-page .dn-h2 {
  font-family: var(--heading-font);
  font-size: clamp(30px, 3.5vw, 50px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.028em;
  color: var(--dn-ink);
  margin: 0;
  text-wrap: balance;
}

.dn-page .dn-h3 {
  font-family: var(--heading-font);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.01em;
  color: var(--dn-ink);
  margin: 0;
}

.dn-page .dn-h2-center {
  text-align: center;
}

.dn-page .dn-h2-light {
  color: #fff;
}

.dn-page .dn-accent,
.dn-page .dn-hash {
  background: var(--dn-floss-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.dn-page .dn-dark .dn-accent,
.dn-page .dn-h2-light .dn-accent {
  background-image: linear-gradient(100deg, #4fe3cf 0%, #8cc0ff 100%);
}

.dn-lead {
  margin: 18px 0 0;
  max-width: 60ch;
  color: var(--dn-muted);
  font-size: 16px;
  line-height: 1.8;
}

.dn-lead + .dn-lead {
  margin-top: 14px;
}

.dn-lead-center {
  margin-inline: auto;
  text-align: center;
  max-width: 64ch;
}

/* Body copy is justified (owner, 2026-09-28). Centered copy stays out:
   .dn-lead-center, the stat labels, the arch readout. One-line text (hero
   sub, who captions, chips) is left alone — justify never touches a last
   line. The FAQ answers are scoped to this page's #faq only. */
.dn-page .dn-lead:not(.dn-lead-center),
.dn-page .dn-hero-text,
.dn-page .dn-help p,
.dn-page .dn-svc p,
.dn-page .dn-panel-body p,
.dn-page .dn-case-row dd,
.dn-page .dn-step p,
.dn-page .dn-reason p,
.dn-page .dn-faq .faq-ans-in p {
  text-align: justify;
  hyphens: auto;
}

.dn-lead-light {
  color: rgba(255, 255, 255, 0.82);
}

.dn-head-center {
  margin-bottom: clamp(36px, 4.4vw, 64px);
}

/* Heading left, its note right and low, so the pair reads as a spread. */
.dn-head-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(24px, 4vw, 72px);
  align-items: end;
  margin-bottom: clamp(36px, 4.4vw, 64px);
}

.dn-head-split .dn-lead {
  margin-top: 0;
}

.dn-actions {
  margin-top: 30px;
}

/* ---------- Buttons ---------- */
/* The theme's .btn-strategy pill in the page's deep teal (white on it is
   ~4.9:1; the bright teal would not pass). style.css animates the label
   padding and the disc position on hover, so every property named here
   transitions on the same curve. */
.dn-page .btn-strategy.dn-btn {
  background-color: var(--dn-teal-d);
  border-color: var(--dn-teal-d);
  transition:
    padding 0.42s var(--dn-ease),
    background-color 0.42s var(--dn-ease),
    border-color 0.42s var(--dn-ease),
    box-shadow 0.42s var(--dn-ease),
    transform 0.42s var(--dn-ease);
}

.dn-page .btn-strategy.dn-btn:hover {
  background-color: var(--dn-ink);
  border-color: var(--dn-ink);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(11, 127, 120, 0.32);
}

.dn-page .btn-strategy.dn-btn .icon-circle {
  background: #fff;
}

.dn-page .btn-strategy.dn-btn .icon-circle svg path {
  fill: var(--dn-teal-d);
}

.dn-page .btn-strategy.dn-btn:hover .icon-circle svg path {
  fill: var(--dn-ink);
}

/* White pill for the ink and gradient bands. */
.dn-page .btn-strategy.dn-btn-light {
  background-color: #fff;
  border-color: #fff;
}

.dn-page .btn-strategy.dn-btn-light .btn-text {
  color: var(--dn-ink);
  transition: color 0.42s var(--dn-ease);
}

.dn-page .btn-strategy.dn-btn-light:hover {
  background-color: var(--dn-ink);
  border-color: var(--dn-ink);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

.dn-page .btn-strategy.dn-btn-light:hover .btn-text {
  color: #fff;
}

.dn-page .btn-strategy.dn-btn-light .icon-circle {
  background: var(--dn-teal-d);
}

.dn-page .btn-strategy.dn-btn-light .icon-circle svg path {
  fill: #fff;
}

.dn-page .btn-strategy.dn-btn-light:hover .icon-circle {
  background: #fff;
}

.dn-page .btn-strategy.dn-btn-light:hover .icon-circle svg path {
  fill: var(--dn-ink);
}

/* ---------- Motion primitives ---------- */
/* Decorations (aria-hidden sparkles, rings) keep their own animation. */
.dn-page.dn-js [data-reveal] > :not([aria-hidden="true"]),
.dn-page.dn-js [data-reveal] > ul > li,
.dn-page.dn-js [data-reveal] > ol > li {
  opacity: 0;
}

.dn-page [data-reveal].is-in > :not([aria-hidden="true"]),
.dn-page [data-reveal].is-in > ul > li,
.dn-page [data-reveal].is-in > ol > li {
  opacity: 1;
  animation: dn-reveal 0.85s var(--dn-ease) backwards;
  animation-delay: calc(var(--i, 0) * 80ms);
}

@keyframes dn-reveal {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
}

.dn-page.dn-js .dn-rise {
  opacity: 0;
  transform: translateY(30px);
  animation: dn-rise 0.95s var(--dn-ease) forwards;
  animation-delay: calc(var(--i, 0) * 110ms + 120ms);
}

@keyframes dn-rise {
  to {
    opacity: 1;
    transform: none;
  }
}

/* The sparkle glint: a four-point star that blooms, turns and fades. */
.dn-spark {
  position: absolute;
  z-index: 2;
  width: 22px;
  height: 22px;
  color: var(--dn-teal);
  pointer-events: none;
  animation: dn-twinkle 3.6s ease-in-out infinite;
}

.dn-spark svg {
  display: block;
  width: 100%;
  height: 100%;
}

.dn-spark path {
  fill: currentColor;
}

@keyframes dn-twinkle {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.3) rotate(0deg);
  }
  45%,
  55% {
    opacity: 1;
    transform: scale(1) rotate(45deg);
  }
}

/* ---------- Hero ---------- */
.dn-hero {
  position: relative;
  overflow: hidden;
  padding-block: calc(var(--dn-top) + 24px) clamp(72px, 8vw, 120px);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.55) 45%, rgba(255, 255, 255, 0) 70%),
    var(--dn-hero-bg) center bottom / cover no-repeat,
    var(--dn-mint);
}

.dn-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.dn-page .dn-hero-title {
  font-family: var(--heading-font);
  font-size: clamp(44px, 5.4vw, 80px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--dn-ink);
  margin: 0;
}

.dn-page .dn-hash {
  font-family: var(--dn-num);
  letter-spacing: -0.02em;
}

/* The smile: a curve under "Dental SEO", wiped in left to right after the
   heading lands. non-scaling-stroke keeps the line even when stretched. */
.dn-smile {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.dn-smile::after {
  content: "";
  position: absolute;
  left: 2%;
  right: 2%;
  bottom: -0.2em;
  height: 0.32em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 30' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g'%3E%3Cstop offset='0' stop-color='%2319c2b0'/%3E%3Cstop offset='1' stop-color='%233a8dff'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M4 6 Q150 44 296 6' fill='none' stroke='url(%23g)' stroke-width='5' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E")
    center / 100% 100% no-repeat;
  clip-path: inset(0 0 0 0);
}

.dn-page.dn-js .dn-smile::after {
  clip-path: inset(0 100% 0 0);
  animation: dn-wipe 1s var(--dn-ease) 0.75s forwards;
}

@keyframes dn-wipe {
  to {
    clip-path: inset(0 0 0 0);
  }
}

.dn-hero-sub {
  margin: 30px 0 0;
  font-family: var(--heading-font);
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 700;
  line-height: 1.4;
  color: var(--dn-teal-d);
}

.dn-hero-text {
  margin: 14px 0 0;
  max-width: 56ch;
  font-size: 16px;
  line-height: 1.8;
  color: var(--dn-muted);
}

.dn-hero-actions {
  margin-top: 32px;
}

/* The art: the dashboard floats; the wrapper drifts toward the pointer via
   the translate property (dental-seo.js), because .dn-rise owns transform. */
.dn-hero-art {
  position: relative;
  translate: var(--tx, 0) var(--ty, 0);
  transition: translate 0.6s var(--dn-ease);
}

.dn-hero-art img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow:
    0 40px 80px -30px rgba(11, 43, 51, 0.35),
    0 0 0 1px rgba(11, 43, 51, 0.04);
  animation: dn-float 7s ease-in-out infinite;
}

.dn-hero-shadow {
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: -38px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(11, 91, 90, 0.28), transparent);
  animation: dn-breathe 7s ease-in-out infinite;
}

@keyframes dn-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

@keyframes dn-breathe {
  0%,
  100% {
    transform: scaleX(1);
    opacity: 1;
  }
  50% {
    transform: scaleX(0.86);
    opacity: 0.6;
  }
}

.dn-spark-1 {
  top: -18px;
  left: 8%;
  width: 26px;
  height: 26px;
}

.dn-spark-2 {
  top: 14%;
  right: -16px;
  width: 18px;
  height: 18px;
  color: var(--dn-sky);
  animation-delay: 1.1s;
}

.dn-spark-3 {
  bottom: 8%;
  left: -18px;
  width: 20px;
  height: 20px;
  animation-delay: 2s;
}

.dn-spark-4 {
  bottom: -14px;
  right: 18%;
  width: 14px;
  height: 14px;
  color: var(--dn-sky);
  animation-delay: 2.8s;
}

/* ---------- What + stats ---------- */
.dn-what-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 88px);
  align-items: start;
}

.dn-what-copy .dn-lead:first-child {
  margin-top: 0;
}

/* One white strip, hairlines between the cells (a 1px gap on a line-colour
   ground), so the dividers are right at any column count. */
.dn-page .dn-stats {
  margin-top: clamp(44px, 5vw, 72px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--dn-line);
  border: 1px solid var(--dn-line);
  border-radius: var(--dn-radius);
  overflow: hidden;
  box-shadow: 0 30px 60px -40px rgba(11, 127, 120, 0.45);
}

.dn-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: clamp(26px, 3vw, 40px) 16px;
  background: #fff;
  text-align: center;
  transition: background-color 0.4s var(--dn-ease);
}

.dn-stat:hover {
  background: var(--dn-mint);
}

.dn-stat-num {
  font-family: var(--dn-num);
  font-size: clamp(40px, 4vw, 60px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  background: var(--dn-floss-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.dn-stat-arc {
  width: 84px;
  height: 14px;
  overflow: visible;
}

.dn-stat-arc path {
  fill: none;
  stroke: var(--dn-teal);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.1s var(--dn-ease);
  transition-delay: calc(var(--i, 0) * 120ms + 400ms);
}

.dn-page.dn-js .dn-stats:not(.is-in) .dn-stat-arc path {
  stroke-dashoffset: 1;
}

.dn-stat-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--dn-muted);
}

/* ---------- Helps (bento on ink) ---------- */
.dn-helps {
  overflow: hidden;
  background:
    radial-gradient(50% 60% at 0% 0%, rgba(25, 194, 176, 0.18), transparent 70%),
    radial-gradient(40% 50% at 100% 100%, rgba(58, 141, 255, 0.16), transparent 70%),
    var(--dn-ink);
}

/* A faint dot field, fading toward the foot. */
.dn-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1.5px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, #000, transparent 75%);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 75%);
}

.dn-bento {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.dn-bento-head {
  grid-column: span 2;
  display: flex;
  align-items: flex-end;
  padding: 8px 40px 28px 0;
}

.dn-page .dn-bento-head .dn-h2 {
  font-size: clamp(32px, 3.8vw, 54px);
  max-width: 16ch;
}

.dn-help {
  position: relative;
  overflow: hidden;
  padding: 30px 28px 32px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--dn-line-light);
  transition:
    border-color 0.45s var(--dn-ease),
    background-color 0.45s var(--dn-ease),
    transform 0.45s var(--dn-ease);
}

/* Pointer glow: follows --mx/--my, fades in on hover. */
.dn-help::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(25, 194, 176, 0.22), transparent 70%);
  opacity: 0;
  transition: opacity 0.45s var(--dn-ease);
  pointer-events: none;
}

.dn-help:hover {
  border-color: rgba(79, 227, 207, 0.4);
  transform: translateY(-4px);
}

.dn-help:hover::before {
  opacity: 1;
}

.dn-help > * {
  position: relative;
}

.dn-help-ico {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 22px;
  border-radius: 18px;
  background: var(--dn-floss);
  box-shadow: 0 14px 30px -12px rgba(25, 194, 176, 0.7);
  transition: transform 0.55s var(--dn-ease);
}

.dn-help-ico img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.dn-help:hover .dn-help-ico {
  transform: rotate(-8deg) scale(1.08);
}

.dn-page .dn-help .dn-h3 {
  color: #fff;
}

.dn-help p {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- Services ---------- */
.dn-svc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.dn-svc {
  position: relative;
  overflow: hidden;
  padding: 30px 26px 32px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--dn-line);
  transition:
    transform 0.5s var(--dn-ease),
    box-shadow 0.5s var(--dn-ease),
    border-color 0.5s var(--dn-ease);
}

/* The enamel sheen: a skewed highlight that sweeps across on hover. */
.dn-svc::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 60%;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.75) 50%, transparent 100%);
  transform: translateX(-160%) skewX(-18deg);
  pointer-events: none;
}

.dn-svc:hover {
  transform: translateY(-8px);
  border-color: rgba(15, 168, 154, 0.35);
  box-shadow: 0 30px 60px -30px rgba(11, 127, 120, 0.4);
}

.dn-svc:hover::after {
  transform: translateX(260%) skewX(-18deg);
  transition: transform 1s var(--dn-ease);
}

.dn-svc-ico {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  margin-bottom: 22px;
  border-radius: 24px;
  background: linear-gradient(160deg, var(--dn-mint) 0%, var(--dn-mint-2) 100%);
}

.dn-svc-ico img {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.dn-svc:hover .dn-svc-ico img {
  animation: dn-bob 1.4s ease-in-out infinite;
}

@keyframes dn-bob {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-6px) rotate(-3deg);
  }
}

.dn-svc p {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--dn-muted);
}

/* The "turn more searches" band on the owner's cta-bg. The art frames an
   empty centre (props left and right), so the copy is centred in it; a
   soft white pool behind the text keeps it legible where the blurred
   clinic shows through. (Round two: was pinned left over the pin/review
   props with a white wash — "too much on the left".) */
.dn-turn {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  margin-top: clamp(48px, 6vw, 88px);
  border-radius: 32px;
  background:
    radial-gradient(38% 60% at 50% 50%, rgba(255, 255, 255, 0.7), transparent 100%),
    var(--dn-turn-bg) center / cover no-repeat,
    var(--dn-mint);
  border: 1px solid var(--dn-line);
  box-shadow: 0 40px 80px -50px rgba(11, 127, 120, 0.5);
}

.dn-turn-copy {
  max-width: 640px;
  padding: clamp(48px, 6vw, 88px) clamp(24px, 4vw, 48px);
  text-align: center;
}

.dn-page .dn-turn .dn-h2 {
  font-size: clamp(28px, 3vw, 44px);
}

.dn-turn .dn-lead {
  margin-inline: auto;
}

.dn-turn .dn-actions {
  display: flex;
  justify-content: center;
}

/* ---------- Strategies (expanding panels) ---------- */
.dn-panels {
  display: flex;
  gap: 12px;
  height: 440px;
}

.dn-panel {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  border-radius: 24px;
  background: var(--dn-mint);
  border: 1px solid var(--dn-line);
  transition:
    flex-grow 0.75s var(--dn-ease),
    background-color 0.5s var(--dn-ease),
    border-color 0.5s var(--dn-ease);
}

.dn-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--dn-floss-deep);
  opacity: 0;
  transition: opacity 0.6s var(--dn-ease);
}

.dn-panel.is-active {
  flex-grow: 4.4;
  border-color: transparent;
}

.dn-panel.is-active::before {
  opacity: 1;
}

.dn-panel:not(.is-active):hover {
  background: var(--dn-mint-2);
}

.dn-panel-tab {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 26px 0;
  background: none;
  border: 0;
  color: var(--dn-ink);
  cursor: pointer;
  transition: opacity 0.3s var(--dn-ease);
}

.dn-panel-tab:focus-visible {
  outline: 2px solid var(--dn-teal);
  outline-offset: -6px;
  border-radius: 24px;
}

.dn-panel.is-active .dn-panel-tab {
  opacity: 0;
  pointer-events: none;
}

.dn-panel-num {
  font-family: var(--dn-num);
  font-size: 15px;
  font-weight: 700;
  color: var(--dn-teal-d);
}

.dn-panel-spine {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--heading-font);
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.dn-panel-plus {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--dn-line);
  background: #fff;
  transition: transform 0.45s var(--dn-ease);
}

.dn-panel-plus::before,
.dn-panel-plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1.6px;
  background: var(--dn-ink);
  translate: -50% -50%;
}

.dn-panel-plus::after {
  rotate: 90deg;
}

.dn-panel-tab:hover .dn-panel-plus {
  transform: rotate(90deg);
}

/* The open panel's copy. A fixed min-width stops the text re-wrapping on
   every frame while the panel grows; it simply fades in once there's room. */
.dn-panel-body {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 400px;
  padding: 40px 44px;
  color: #fff;
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.3s var(--dn-ease),
    transform 0.3s var(--dn-ease);
  pointer-events: none;
}

.dn-panel.is-active .dn-panel-body {
  opacity: 1;
  transform: none;
  transition-duration: 0.6s;
  transition-delay: 0.28s;
  pointer-events: auto;
}

.dn-panel-big {
  position: absolute;
  top: 18px;
  right: 30px;
  font-family: var(--dn-num);
  font-size: 150px;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.3);
}

.dn-page .dn-panel-body .dn-h3 {
  max-width: 20ch;
  font-size: clamp(24px, 2.2vw, 30px);
  color: #fff;
}

.dn-panel-body p {
  margin: 14px 0 0;
  max-width: 46ch;
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.88);
}

/* ---------- Cases (sticky stack) ---------- */
.dn-stack {
  display: grid;
  gap: 40px;
}

.dn-case {
  display: grid;
  grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding: 22px clamp(22px, 3vw, 44px) 22px 22px;
  border-radius: 32px;
  background: #fff;
  border: 1px solid var(--dn-line);
  box-shadow: 0 -20px 60px -30px rgba(11, 43, 51, 0.18);
}

@media (min-width: 992px) and (min-height: 760px) {
  .dn-case {
    position: sticky;
    top: calc(var(--dn-top) + var(--i, 0) * 24px);
  }
}

/* Where scroll-driven animations exist, each card settles in from slightly
   small as it enters — CSS only, no script. */
@supports (animation-timeline: view()) {
  .dn-case {
    animation: dn-case-in linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 70%;
  }

  @keyframes dn-case-in {
    from {
      opacity: 0.4;
      transform: scale(0.92) translateY(30px);
    }
  }
}

.dn-case-art {
  overflow: hidden;
  border-radius: 22px;
  aspect-ratio: 1;
}

.dn-case-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--dn-ease);
}

.dn-case:hover .dn-case-art img {
  transform: scale(1.05);
}

.dn-case-title {
  margin: 0 0 22px;
  font-family: var(--heading-font);
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--dn-ink);
}

.dn-case-row {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--dn-line);
}

.dn-case-row dt {
  display: flex;
  align-items: center;
  gap: 8px;
  align-self: start;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.dn-case-problem dt {
  color: #d9523f;
}

.dn-case-solution dt {
  color: var(--dn-teal-d);
}

.dn-case-result dt {
  color: #1f5fd0;
}

.dn-case-row dd {
  font-size: 15px;
  line-height: 1.7;
  color: var(--dn-muted);
}

.dn-case-result dd {
  color: var(--dn-ink);
  font-weight: 500;
}

/* The "grow" band: ink, a slow dashed ring, a pointer glow. */
.dn-band {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  margin-top: clamp(56px, 7vw, 96px);
  padding: clamp(36px, 5vw, 64px);
  border-radius: 32px;
  background:
    radial-gradient(420px circle at var(--mx, 80%) var(--my, 30%), rgba(25, 194, 176, 0.28), transparent 70%),
    var(--dn-ink);
}

.dn-band > * {
  position: relative;
}

.dn-page .dn-band .dn-h2 {
  font-size: clamp(28px, 3vw, 42px);
  max-width: 22ch;
}

.dn-band .dn-lead {
  max-width: 64ch;
}

.dn-band-ring {
  position: absolute !important;
  right: -120px;
  top: 50%;
  width: 380px;
  height: 380px;
  margin-top: -190px;
  border-radius: 50%;
  border: 1.5px dashed rgba(79, 227, 207, 0.28);
  animation: dn-spin 40s linear infinite;
  pointer-events: none;
}

.dn-band-ring::after {
  content: "";
  position: absolute;
  inset: 48px;
  border-radius: 50%;
  border: 1px solid rgba(140, 192, 255, 0.18);
}

@keyframes dn-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Process (the arch) ---------- */
.dn-process-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
}

/* The grid ITEM is sticky, not a child of it (the HVAC lesson). */
.dn-arch-col {
  position: sticky;
  top: calc(var(--dn-top) + 20px);
  align-self: start;
}

.dn-arch {
  position: relative;
  padding: 28px 18px 10px;
  border-radius: 36px;
  background:
    radial-gradient(70% 60% at 50% 20%, #fff 0%, transparent 100%),
    var(--dn-mint);
  border: 1px solid var(--dn-line);
}

.dn-arch svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.dn-arch-track,
.dn-arch-fill {
  fill: none;
  stroke-width: 5;
  stroke-linecap: round;
}

.dn-arch-track {
  stroke: var(--dn-mint-2);
}

.dn-arch-fill {
  stroke: url(#dn-floss);
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--dn-arch, 0));
  transition: stroke-dashoffset 0.7s var(--dn-ease);
}

.dn-tooth-in {
  transition: transform 0.6s var(--dn-ease);
}

.dn-tooth-in > path:first-child {
  fill: #fff;
  stroke: rgba(11, 43, 51, 0.22);
  stroke-width: 1.6;
  transition:
    fill 0.5s var(--dn-ease),
    stroke 0.5s var(--dn-ease);
}

.dn-tooth.is-past .dn-tooth-in > path:first-child {
  fill: var(--dn-mint-2);
  stroke: var(--dn-teal);
}

.dn-tooth.is-current .dn-tooth-in {
  transform: scale(1.22);
}

.dn-tooth.is-current .dn-tooth-in > path:first-child {
  fill: url(#dn-floss);
  stroke: #fff;
  filter: drop-shadow(0 6px 10px rgba(15, 168, 154, 0.45));
}

.dn-tooth-spark {
  fill: var(--dn-teal);
  opacity: 0;
}

.dn-tooth.is-current .dn-tooth-spark {
  animation: dn-glint 1.8s ease-in-out infinite;
}

@keyframes dn-glint {
  0%,
  100% {
    opacity: 0.15;
  }
  50% {
    opacity: 1;
  }
}

.dn-arch-readout {
  position: absolute;
  left: 50%;
  top: 22%;
  width: 46%;
  translate: -50% 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.dn-arch-num {
  font-family: var(--dn-num);
  font-size: clamp(44px, 4.4vw, 64px);
  font-weight: 700;
  line-height: 1;
  background: var(--dn-floss-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.dn-arch-label {
  margin-top: 8px;
  font-family: var(--heading-font);
  font-size: clamp(14px, 1.2vw, 17px);
  font-weight: 700;
  line-height: 1.35;
  color: var(--dn-ink);
}

.dn-arch-readout.is-swap > * {
  animation: dn-swap 0.5s var(--dn-ease);
}

@keyframes dn-swap {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

.dn-step {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 22px;
  padding: 30px 0;
  border-bottom: 1px solid var(--dn-line);
}

.dn-step:first-child {
  padding-top: 8px;
}

/* The reveal owns the li's opacity, so the resting dim lives on the
   children (the HVAC trap). */
.dn-step > * {
  opacity: 0.5;
  transition: opacity 0.5s var(--dn-ease);
}

.dn-step.is-past > * {
  opacity: 0.78;
}

.dn-step.is-current > * {
  opacity: 1;
}

.dn-step-num {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-family: var(--dn-num);
  font-size: 16px;
  font-weight: 700;
  color: var(--dn-teal-d);
  background: var(--dn-mint);
  border: 1px solid var(--dn-line);
  transition:
    background 0.5s var(--dn-ease),
    color 0.5s var(--dn-ease),
    transform 0.5s var(--dn-ease),
    box-shadow 0.5s var(--dn-ease);
}

.dn-step.is-current .dn-step-num {
  color: #fff;
  background: var(--dn-floss-deep);
  border-color: transparent;
  transform: scale(1.1);
  box-shadow: 0 14px 28px -12px rgba(11, 127, 120, 0.7);
}

.dn-page .dn-step .dn-h3 {
  font-size: 21px;
}

.dn-step p {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--dn-muted);
}

/* ---------- Why ---------- */
.dn-why-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
}

.dn-why-art {
  position: relative;
}

.dn-why-photo {
  overflow: hidden;
  border-radius: 32px;
  aspect-ratio: 5 / 6;
  clip-path: inset(0 0 0 0 round 32px);
  transition: clip-path 1.3s var(--dn-ease);
}

.dn-why-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 38% center;
  transition: transform 1.6s var(--dn-ease);
}

.dn-page.dn-js .dn-why-art:not(.is-in) .dn-why-photo {
  clip-path: inset(0 100% 0 0 round 32px);
}

.dn-page.dn-js .dn-why-art:not(.is-in) .dn-why-photo img {
  transform: scale(1.18);
}

.dn-why-chip {
  position: absolute;
  right: -22px;
  bottom: 36px;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 18px 24px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 50px -20px rgba(11, 43, 51, 0.35);
}

.dn-why-chip strong {
  font-family: var(--dn-num);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  background: var(--dn-floss-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.dn-why-chip span {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--dn-muted);
}

.dn-page .dn-reasons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px 32px;
  margin-top: 36px;
}

.dn-reason {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid var(--dn-line);
}

.dn-reason-ico {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--dn-floss-deep);
  box-shadow: 0 12px 24px -12px rgba(11, 127, 120, 0.7);
  transition: transform 0.5s var(--dn-ease);
}

.dn-reason-ico img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.dn-reason:hover .dn-reason-ico {
  transform: rotate(-8deg) scale(1.08);
}

.dn-reason p {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--dn-muted);
}

/* ---------- Who (photo tiles) ---------- */
.dn-who-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.dn-who-tile {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 24px;
  background: var(--dn-mint-2);
  outline: none;
}

/* The unveil: each tile opens from an inset, staggered by --i. */
.dn-page.dn-js .dn-who-grid > li {
  clip-path: inset(10% 10% 10% 10% round 24px);
  transition: clip-path 1.1s var(--dn-ease) calc(var(--i, 0) * 90ms);
}

.dn-page.dn-js .dn-who-grid.is-in > li {
  clip-path: inset(0 0 0 0 round 24px);
}

.dn-who-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--dn-ease);
}

.dn-who-tile:hover img,
.dn-who-tile:focus-visible img {
  transform: scale(1.08);
}

.dn-who-tile:focus-visible {
  box-shadow: inset 0 0 0 3px var(--dn-teal);
}

.dn-who-cap {
  position: absolute;
  inset: auto 0 0;
  padding: 60px 24px 22px;
  background: linear-gradient(180deg, transparent 0%, rgba(8, 36, 43, 0.82) 70%);
}

.dn-page .dn-who-cap .dn-h3 {
  color: #fff;
  font-size: 20px;
}

/* 0fr -> 1fr so the line rises by its real height. */
.dn-who-cap p {
  display: grid;
  grid-template-rows: 0fr;
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.86);
  opacity: 0;
  transition:
    grid-template-rows 0.5s var(--dn-ease),
    opacity 0.5s var(--dn-ease),
    margin 0.5s var(--dn-ease);
}

.dn-who-cap p::before {
  content: "";
}

.dn-who-tile:hover .dn-who-cap p,
.dn-who-tile:focus-visible .dn-who-cap p {
  grid-template-rows: 1fr;
  margin-top: 6px;
  opacity: 1;
}

@media (hover: none) {
  .dn-who-cap p {
    grid-template-rows: 1fr;
    margin-top: 6px;
    opacity: 1;
  }
}

/* ---------- Leads (closing band) ---------- */
.dn-leads {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding: clamp(36px, 5vw, 72px);
  border-radius: 36px;
  background:
    radial-gradient(380px circle at var(--mx, 20%) var(--my, 20%), rgba(255, 255, 255, 0.16), transparent 70%),
    var(--dn-floss-deep);
}

.dn-leads > .dn-leads-copy,
.dn-leads > .dn-leads-list {
  position: relative;
}

.dn-leads .dn-spark {
  color: rgba(255, 255, 255, 0.8);
}

.dn-spark-a {
  top: 26px;
  right: 42%;
}

.dn-spark-b {
  bottom: 30px;
  left: 44%;
  width: 16px;
  height: 16px;
  animation-delay: 1.6s;
}

.dn-leads-list {
  display: grid;
  gap: 14px;
}

.dn-lead-chip {
  display: grid;
  grid-template-columns: 52px auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 16px 22px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.4);
  transition: transform 0.45s var(--dn-ease);
}

.dn-lead-chip:hover {
  transform: translateX(8px);
}

.dn-lead-ico {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--dn-mint);
}

.dn-lead-ico img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.dn-lead-chip strong {
  min-width: 2.2ch;
  font-family: var(--dn-num);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  background: var(--dn-floss-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.dn-lead-chip > span:last-child {
  font-size: 16px;
  font-weight: 600;
  color: var(--dn-ink);
}

/* ---------- FAQ ---------- */
.dn-faq.section {
  padding-block: var(--dn-sec-y);
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .dn-svc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .dn-panel-body {
    min-width: 340px;
    padding: 32px;
  }

  .dn-case {
    grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  }
}

@media (max-width: 991px) {
  .dn-hero-inner,
  .dn-what-inner,
  .dn-head-split,
  .dn-process-inner,
  .dn-why-inner,
  .dn-leads,
  .dn-band {
    grid-template-columns: minmax(0, 1fr);
  }

  .dn-hero-art {
    max-width: 640px;
    margin-inline: auto;
  }

  .dn-hero {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.5) 60%, rgba(255, 255, 255, 0) 100%),
      var(--dn-hero-bg) center bottom / cover no-repeat,
      var(--dn-mint);
  }

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

  /* Panels: a plain stack, every panel open, no script needed. */
  .dn-panels {
    flex-direction: column;
    height: auto;
  }

  .dn-panel,
  .dn-panel.is-active {
    flex: none;
    background: var(--dn-mint);
    border-color: var(--dn-line);
  }

  .dn-panel::before,
  .dn-panel.is-active::before,
  .dn-panel-tab,
  .dn-panel-big {
    display: none;
  }

  .dn-panel-body,
  .dn-panel.is-active .dn-panel-body {
    position: static;
    min-width: 0;
    padding: 26px 24px;
    opacity: 1;
    transform: none;
    color: var(--dn-ink);
  }

  .dn-page .dn-panel-body .dn-h3 {
    max-width: none;
    font-size: 21px;
    color: var(--dn-ink);
  }

  .dn-panel-body p {
    color: var(--dn-muted);
  }

  .dn-case {
    grid-template-columns: minmax(0, 1fr);
    padding: 18px 18px 26px;
  }

  .dn-case-art {
    aspect-ratio: 16 / 10;
  }

  .dn-arch-col {
    display: none;
  }

  .dn-why-art {
    max-width: 520px;
  }

  .dn-why-chip {
    right: 16px;
  }

  .dn-band-ring {
    display: none;
  }

  .dn-bento-head {
    padding-right: 0;
  }
}

@media (max-width: 767px) {
  .dn-svc-grid,
  .dn-bento,
  .dn-page .dn-reasons {
    grid-template-columns: minmax(0, 1fr);
  }

  .dn-bento-head {
    grid-column: auto;
  }

  .dn-who-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .dn-case-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .dn-lead-chip {
    grid-template-columns: 44px auto minmax(0, 1fr);
    padding: 14px 16px;
    gap: 12px;
  }

  .dn-lead-ico {
    width: 44px;
    height: 44px;
  }

  .dn-spark-2,
  .dn-spark-3 {
    display: none;
  }
}

@media (max-width: 575px) {
  .dn-who-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .dn-step {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 16px;
  }

  .dn-step-num {
    width: 44px;
    height: 44px;
    font-size: 14px;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .dn-page [data-reveal] > *,
  .dn-page [data-reveal] > ul > li,
  .dn-page [data-reveal] > ol > li,
  .dn-page .dn-rise {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  .dn-page .dn-smile::after,
  .dn-page .dn-why-photo,
  .dn-page .dn-who-grid > li {
    clip-path: none !important;
    animation: none !important;
  }

  .dn-page .dn-case {
    animation: none !important;
  }

  .dn-page *,
  .dn-page *::before,
  .dn-page *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
