/* ==========================================================================
   SAJ Dental Clinic — "Our Philosophy" section
   Scope: everything lives under .our-philosophy-section.

   Desktop (>= 1024px): the orbit stage is a 1280 x 850 design canvas that
   scales as one piece. --op-u is one canvas unit (100cqw / 1280), so cards,
   badges, the centre image and the SVG orbit stay locked together at any
   width. Each card is anchored by its badge centre (--op-x / --op-y).
   Tablet (768–1023px): centre image + simplified ring, 2-column cards.
   Mobile (< 768px): vertical flow with a curved rail drawn through badges.
   ========================================================================== */

.our-philosophy-section {
  /* ---- Brand ---- */
  --op-navy: #0B2340;
  --op-blue: #1269A8;
  --op-blue-bright: #0E7BD0;
  --op-blue-soft: #DCEAF7;
  --op-blue-pale: #EEF5FC;
  --op-orange: #F4511E;
  --op-orange-bright: #FF6A34;
  --op-orange-soft: #FCE0D2;
  --op-white: #FFFFFF;
  --op-text: #4A5872;

  --op-font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --op-font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --op-gutter: clamp(16px, 4vw, 56px);
  --op-ease: cubic-bezier(0.22, 1, 0.36, 1);

  box-sizing: border-box;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
  padding: clamp(72px, 8vw, 124px) 0 clamp(120px, 13vw, 210px);
  background:
    radial-gradient(70% 45% at 50% 58%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, #F8FBFE 0%, #EEF5FC 52%, #F2F7FD 100%);
  font-family: var(--op-font-body);
  color: var(--op-text);
  -webkit-font-smoothing: antialiased;
}

.our-philosophy-section *,
.our-philosophy-section *::before,
.our-philosophy-section *::after {
  box-sizing: border-box;
}

.our-philosophy-section .our-philosophy__defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Reveal fail-safe: GSAP owns visibility once the script marks the section
   .op-ready. If GSAP never arrives, everything appears after 2.5s.
   -------------------------------------------------------------------------- */
.our-philosophy-section.op-js [data-op-reveal] {
  visibility: hidden;
  animation: our-philosophy-failsafe 0s linear 2.5s forwards;
}

.our-philosophy-section.op-js .our-philosophy__orbit-path,
.our-philosophy-section.op-js .our-philosophy__ring-path {
  stroke-dashoffset: 1;
  animation: our-philosophy-failsafe-draw 0s linear 2.5s forwards;
}

.our-philosophy-section.op-ready [data-op-reveal],
.our-philosophy-section.op-ready .our-philosophy__orbit-path,
.our-philosophy-section.op-ready .our-philosophy__ring-path {
  animation: none;
}

@keyframes our-philosophy-failsafe {
  to { visibility: visible; }
}

@keyframes our-philosophy-failsafe-draw {
  to { stroke-dashoffset: 0; }
}

/* ==========================================================================
   1. Background decoration
   ========================================================================== */
.our-philosophy-section .our-philosophy__decor {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.our-philosophy-section .our-philosophy__decor-item {
  position: absolute;
}

.our-philosophy-section .our-philosophy__decor-item > div {
  width: 100%;
  height: 100%;
}

/* Organic pale-blue blobs — soft gradients, no animated blur */
.our-philosophy-section .our-philosophy__blob-shape {
  display: block;
  width: 100%;
  height: 100%;
  will-change: transform;
}

.our-philosophy-section .our-philosophy__blob--a {
  top: 8%;
  left: -14vw;
  width: 52vw;
  height: 44vw;
}

.our-philosophy-section .our-philosophy__blob--a .our-philosophy__blob-shape {
  border-radius: 62% 38% 55% 45% / 48% 60% 40% 52%;
  background: radial-gradient(closest-side, rgba(196, 222, 246, 0.55), rgba(196, 222, 246, 0));
}

.our-philosophy-section .our-philosophy__blob--b {
  top: 34%;
  right: -16vw;
  width: 50vw;
  height: 46vw;
}

.our-philosophy-section .our-philosophy__blob--b .our-philosophy__blob-shape {
  border-radius: 44% 56% 38% 62% / 58% 42% 58% 42%;
  background: radial-gradient(closest-side, rgba(186, 216, 244, 0.5), rgba(186, 216, 244, 0));
}

.our-philosophy-section .our-philosophy__blob--c {
  bottom: -6%;
  left: 28%;
  width: 46vw;
  height: 26vw;
}

.our-philosophy-section .our-philosophy__blob--c .our-philosophy__blob-shape {
  border-radius: 50% 50% 46% 54% / 60% 60% 40% 40%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
}

.our-philosophy-section .our-philosophy__flow {
  inset: 0;
}

.our-philosophy-section .our-philosophy__flow svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Tooth silhouettes */
.our-philosophy-section .our-philosophy__tooth-shape {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: rgba(255, 255, 255, 0.78);
  stroke: rgba(18, 105, 168, 0.12);
  stroke-width: 3;
  filter: blur(1px) drop-shadow(0 18px 30px rgba(18, 105, 168, 0.08));
  will-change: transform;
}

.our-philosophy-section .our-philosophy__tooth {
  aspect-ratio: 400 / 440;
}

.our-philosophy-section .our-philosophy__tooth--a {
  top: 3%;
  left: 7%;
  width: clamp(150px, 14vw, 250px);
  opacity: 0.75;
  transform: rotate(-14deg);
}

.our-philosophy-section .our-philosophy__tooth--b {
  top: 48%;
  right: -3.5vw;
  width: clamp(170px, 16vw, 290px);
  opacity: 0.7;
  transform: rotate(12deg);
}

.our-philosophy-section .our-philosophy__tooth--c {
  bottom: 10%;
  right: 22%;
  width: clamp(80px, 7vw, 130px);
  opacity: 0.45;
  transform: rotate(-8deg);
}

/* Clinic photograph, top right — masked so it melts into the background */
.our-philosophy-section .our-philosophy__clinic {
  top: 0;
  right: 0;
  width: clamp(280px, 30vw, 560px);
  aspect-ratio: 520 / 620;
}

.our-philosophy-section .our-philosophy__clinic-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% 30%;
  opacity: 0.88;
  border-radius: 0 0 0 64% / 0 0 0 48%;
  -webkit-mask-image: radial-gradient(118% 98% at 100% 0%, #000 42%, rgba(0, 0, 0, 0.55) 58%, transparent 74%);
  mask-image: radial-gradient(118% 98% at 100% 0%, #000 42%, rgba(0, 0, 0, 0.55) 58%, transparent 74%);
}

/* Large 3D tooth, bottom left */
.our-philosophy-section .our-philosophy__hero-tooth {
  left: -4vw;
  bottom: clamp(20px, 3vw, 70px);
  width: clamp(220px, 25vw, 440px);
  aspect-ratio: 1;
  opacity: 0.92;
}

.our-philosophy-section .our-philosophy__hero-tooth-art {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 30px 40px rgba(11, 35, 64, 0.12));
  will-change: transform;
}

/* 10. Bottom organic wave */
.our-philosophy-section .our-philosophy__wave {
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: -1px;
  height: clamp(56px, 8.5vw, 150px);
}

.our-philosophy-section .our-philosophy__wave-art {
  display: block;
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   2–3. Header
   ========================================================================== */
.our-philosophy-section .our-philosophy__container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: calc(1280px + var(--op-gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--op-gutter);
}

.our-philosophy-section .our-philosophy__header {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.our-philosophy-section .our-philosophy__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--op-navy);
}

.our-philosophy-section .our-philosophy__eyebrow-line {
  display: block;
  width: 44px;
  height: 2px;
  border-radius: 2px;
  background: var(--op-orange);
  transform-origin: right center;
}

.our-philosophy-section .our-philosophy__heading {
  margin: 20px 0 24px;
  font-family: var(--op-font-display);
  font-size: clamp(36px, 4.6vw, 68px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.012em;
  color: var(--op-navy);
}

/* Masked lines: the text rises out of its own line box */
.our-philosophy-section .our-philosophy__heading-line {
  display: block;
  overflow: hidden;
  overflow: clip;
  padding: 0.04em 0.14em 0.14em;
  margin: -0.04em -0.14em -0.14em;
}

.our-philosophy-section .our-philosophy__heading-text {
  display: inline-block;
}

.our-philosophy-section .our-philosophy__heading-lead,
.our-philosophy-section .our-philosophy__heading-highlight {
  font-style: italic;
  font-weight: 600;
}

.our-philosophy-section .our-philosophy__heading-highlight {
  color: var(--op-orange);
}

.our-philosophy-section .our-philosophy__intro {
  max-width: 600px;
  margin: 0 auto;
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.75;
  color: var(--op-text);
}

/* ==========================================================================
   4. Orbit stage (desktop canvas)
   ========================================================================== */
.our-philosophy-section .our-philosophy__orbit {
  --op-u: calc(100cqw / 1280);
  --op-badge: calc(90 * var(--op-u));

  position: relative;
  container-type: inline-size;
  width: 100%;
  max-width: 1280px;
  aspect-ratio: 1280 / 850;
  margin: clamp(8px, 1.6vw, 28px) auto 0;
}

/* Narrower desktops / iPad landscape: slightly wider cards for readability */
@media (min-width: 1024px) and (max-width: 1279.98px) {
  .our-philosophy-section .our-philosophy__card {
    width: calc(var(--op-card-w, 300) * var(--op-u) * 1.12);
    --op-card-pad-outer: calc(24 * var(--op-u));
  }

  .our-philosophy-section .our-philosophy__card-text {
    line-height: 1.55;
  }
}

/* 7. Orbit SVG */
.our-philosophy-section .our-philosophy__orbit-svg {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.our-philosophy-section .our-philosophy__orbit-track {
  fill: none;
  stroke: var(--op-blue);
  stroke-opacity: 0.1;
  stroke-width: 6;
}

.our-philosophy-section .our-philosophy__orbit-path {
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.our-philosophy-section .our-philosophy__orbit-dots {
  fill: none;
  stroke: var(--op-blue);
  stroke-opacity: 0.22;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 0.1 11;
}

/* 8. Orbit nodes */
.our-philosophy-section .our-philosophy__node-glow {
  fill: var(--op-blue);
  opacity: 0;
  transition: opacity 0.8s var(--op-ease);
}

.our-philosophy-section .our-philosophy__node-ring {
  fill: var(--op-white);
  stroke: #A9CCEC;
  stroke-width: 1.5;
  transition: stroke 0.6s var(--op-ease);
}

.our-philosophy-section .our-philosophy__node-dot {
  fill: #C3DCF2;
  transition: fill 0.6s var(--op-ease);
}

.our-philosophy-section .our-philosophy__node.is-active .our-philosophy__node-glow {
  opacity: 0.14;
}

.our-philosophy-section .our-philosophy__node.is-active .our-philosophy__node-ring {
  stroke: var(--op-blue);
}

.our-philosophy-section .our-philosophy__node.is-active .our-philosophy__node-dot {
  fill: var(--op-orange);
}

/* ==========================================================================
   5. Centre patient image
   ========================================================================== */
.our-philosophy-section .our-philosophy__center {
  --op-center: calc(370 * var(--op-u));

  position: absolute;
  z-index: 2;
  left: calc(50% - var(--op-center) / 2);
  top: calc(41.176% - var(--op-center) / 2);
  width: var(--op-center);
  margin: 0;
}

.our-philosophy-section .our-philosophy__center-frame {
  --op-ring: calc(12 * var(--op-u));

  position: relative;
  padding: var(--op-ring);
  border-radius: 50%;
  background: var(--op-white);
  box-shadow:
    0 calc(34 * var(--op-u)) calc(70 * var(--op-u)) calc(-30 * var(--op-u)) rgba(11, 35, 64, 0.34),
    0 0 0 calc(var(--op-ring) * 1.4) rgba(255, 255, 255, 0.55),
    0 0 0 calc(var(--op-ring) * 1.4 + 1px) rgba(18, 105, 168, 0.1);
}

/* Soft outer glow ring */
.our-philosophy-section .our-philosophy__center-frame::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: calc(var(--op-ring) * -3.2);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(214, 232, 249, 0.95) 76%, rgba(214, 232, 249, 0) 100%);
}

.our-philosophy-section .our-philosophy__center-photo {
  position: relative;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--op-blue-pale);
  will-change: transform;
}

.our-philosophy-section .our-philosophy__center-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 56% 40%;
  transform: scale(1.16);
  transform-origin: 56% 42%;
}

/* Simplified ring around the image — tablet / mobile only */
.our-philosophy-section .our-philosophy__ring {
  display: none;
}

/* ==========================================================================
   6. Principle cards (desktop: anchored around the orbit)
   ========================================================================== */
.our-philosophy-section .our-philosophy__cards {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.our-philosophy-section .our-philosophy__rail {
  display: none;
}

.our-philosophy-section .our-philosophy__list {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.our-philosophy-section .our-philosophy__item {
  position: absolute;
  left: var(--op-x, 50%);
  top: var(--op-y, 50%);
  width: 0;
  height: 0;
}

.our-philosophy-section .our-philosophy__card {
  --op-card-pad-inner: calc(var(--op-badge) / 2 + 22 * var(--op-u));
  --op-card-pad-outer: calc(30 * var(--op-u));

  position: absolute;
  top: calc(var(--op-badge) / -2 + 14 * var(--op-u));
  width: calc(var(--op-card-w, 300) * var(--op-u));
  padding: calc(24 * var(--op-u)) var(--op-card-pad-outer) calc(26 * var(--op-u));
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: max(16px, calc(22 * var(--op-u)));
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.6));
  box-shadow:
    0 22px 50px -26px rgba(11, 35, 64, 0.22),
    0 2px 6px rgba(11, 35, 64, 0.03);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
}

/* Active-state shadow lives on a layer so only opacity animates */
.our-philosophy-section .our-philosophy__card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 30px 60px -24px rgba(18, 105, 168, 0.36);
  opacity: 0;
  transition: opacity 0.9s var(--op-ease);
  pointer-events: none;
}

.our-philosophy-section .our-philosophy__card.is-active::before {
  opacity: 1;
}

.our-philosophy-section [data-philosophy-side="end"] .our-philosophy__card {
  right: 0;
  padding-right: var(--op-card-pad-inner);
}

.our-philosophy-section [data-philosophy-side="start"] .our-philosophy__card {
  left: 0;
  padding-left: var(--op-card-pad-inner);
}

/* Icon badge */
.our-philosophy-section .our-philosophy__badge {
  position: absolute;
  top: calc(-14 * var(--op-u));
  display: block;
  width: var(--op-badge);
  height: var(--op-badge);
  padding: calc(var(--op-badge) * 0.09);
  border-radius: 50%;
  background: var(--op-white);
  box-shadow:
    0 16px 30px -16px rgba(11, 35, 64, 0.32),
    0 0 0 1px rgba(18, 105, 168, 0.06);
}

.our-philosophy-section [data-philosophy-side="end"] .our-philosophy__badge {
  right: calc(var(--op-badge) / -2);
}

.our-philosophy-section [data-philosophy-side="start"] .our-philosophy__badge {
  left: calc(var(--op-badge) / -2);
}

.our-philosophy-section .our-philosophy__badge-inner {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #F6FAFE, var(--op-blue-soft) 72%);
  color: var(--op-blue);
  transition: color 0.6s var(--op-ease);
}

.our-philosophy-section .our-philosophy__badge-inner::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0) 62%);
  box-shadow: 0 0 0 calc(var(--op-badge) * 0.06) rgba(18, 105, 168, 0.1);
  opacity: 0;
  transition: opacity 0.8s var(--op-ease);
}

.our-philosophy-section .our-philosophy__badge--orange .our-philosophy__badge-inner {
  background: radial-gradient(circle at 35% 30%, #FFF6F1, var(--op-orange-soft) 72%);
  color: var(--op-orange);
}

.our-philosophy-section .our-philosophy__badge--orange .our-philosophy__badge-inner::after {
  box-shadow: 0 0 0 calc(var(--op-badge) * 0.06) rgba(244, 81, 30, 0.1);
}

.our-philosophy-section .is-active .our-philosophy__badge-inner {
  color: var(--op-blue-bright);
}

.our-philosophy-section .is-active .our-philosophy__badge--orange .our-philosophy__badge-inner {
  color: var(--op-orange-bright);
}

.our-philosophy-section .is-active .our-philosophy__badge-inner::after {
  opacity: 1;
}

.our-philosophy-section .our-philosophy__icon {
  position: relative;
  z-index: 1;
  width: 44%;
  height: 44%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Card text */
.our-philosophy-section .our-philosophy__card-title {
  margin: 0 0 calc(10 * var(--op-u));
  font-family: var(--op-font-display);
  font-size: max(17px, calc(23 * var(--op-u)));
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: var(--op-navy);
}

.our-philosophy-section .our-philosophy__card-text {
  margin: 0;
  font-size: max(12.5px, calc(15 * var(--op-u)));
  line-height: 1.6;
  color: var(--op-text);
}

.our-philosophy-section .our-philosophy__card-accent {
  display: block;
  width: max(26px, calc(32 * var(--op-u)));
  height: 2px;
  margin-top: calc(16 * var(--op-u));
  border-radius: 2px;
  background: var(--op-orange);
  transform-origin: left center;
}

/* ==========================================================================
   Tablet + mobile: compact layout (no circular card orbit)
   ========================================================================== */
@media (max-width: 1023.98px) {
  .our-philosophy-section .our-philosophy__orbit {
    --op-badge: 64px;

    container-type: normal;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 880px;
    aspect-ratio: auto;
    margin-top: clamp(28px, 6vw, 48px);
  }

  .our-philosophy-section .our-philosophy__orbit-svg {
    display: none;
  }

  .our-philosophy-section .our-philosophy__center {
    --op-center: min(50vw, 400px);

    position: relative;
    left: auto;
    top: auto;
    margin: clamp(36px, 7vw, 56px) auto clamp(64px, 11vw, 96px);
  }

  .our-philosophy-section .our-philosophy__center-frame {
    --op-ring: 10px;

    box-shadow:
      0 28px 60px -30px rgba(11, 35, 64, 0.34),
      0 0 0 14px rgba(255, 255, 255, 0.55),
      0 0 0 15px rgba(18, 105, 168, 0.1);
  }

  .our-philosophy-section .our-philosophy__ring {
    display: block;
    position: absolute;
    z-index: -1;
    left: -17%;
    top: -17%;
    width: 134%;
    height: 134%;
    overflow: visible;
  }

  .our-philosophy-section .our-philosophy__ring-path {
    fill: none;
    stroke: var(--op-blue);
    stroke-opacity: 0.45;
    stroke-width: 0.6;
    stroke-dasharray: 1;
    stroke-dashoffset: 0;
  }

  .our-philosophy-section .our-philosophy__ring-dot {
    fill: #C3DCF2;
    stroke: var(--op-white);
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
    transition: fill 0.6s var(--op-ease);
  }

  .our-philosophy-section .our-philosophy__ring-dot.is-active {
    fill: var(--op-orange);
  }

  .our-philosophy-section .our-philosophy__cards {
    position: relative;
    inset: auto;
    width: 100%;
  }

  .our-philosophy-section .our-philosophy__list {
    position: relative;
    z-index: 1;
    inset: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 36px;
  }

  .our-philosophy-section .our-philosophy__item {
    position: relative;
    left: auto;
    top: auto;
    display: flex;
    width: auto;
    height: auto;
  }

  /* A lone last card (odd count) centres under the grid */
  .our-philosophy-section .our-philosophy__item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc((100% - 36px) / 2);
  }

  .our-philosophy-section .our-philosophy__card,
  .our-philosophy-section [data-philosophy-side] .our-philosophy__card {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    flex: 1 1 auto;
    width: auto;
    margin-left: calc(var(--op-badge) / 2);
    padding: 26px 26px 28px calc(var(--op-badge) / 2 + 20px);
    border-radius: 20px;
  }

  .our-philosophy-section .our-philosophy__badge,
  .our-philosophy-section [data-philosophy-side] .our-philosophy__badge {
    top: 20px;
    left: calc(var(--op-badge) / -2);
    right: auto;
  }

  .our-philosophy-section .our-philosophy__card-title {
    margin-bottom: 8px;
    font-size: 21px;
  }

  .our-philosophy-section .our-philosophy__card-text {
    font-size: 14.5px;
  }

  .our-philosophy-section .our-philosophy__card-accent {
    width: 30px;
    margin-top: 16px;
  }

  .our-philosophy-section .our-philosophy__hero-tooth {
    width: 30vw;
    opacity: 0.6;
  }

  .our-philosophy-section .our-philosophy__clinic {
    width: 36vw;
  }

  .our-philosophy-section .our-philosophy__clinic-image {
    opacity: 0.55;
  }
}

/* ==========================================================================
   Mobile: vertical flow
   ========================================================================== */
@media (max-width: 767.98px) {
  .our-philosophy-section .our-philosophy__eyebrow {
    gap: 14px;
    font-size: 11px;
    letter-spacing: 0.26em;
  }

  .our-philosophy-section .our-philosophy__eyebrow-line {
    width: 32px;
  }

  .our-philosophy-section .our-philosophy__heading {
    margin: 16px 0 18px;
    font-size: clamp(28px, 7.9vw, 40px);
  }

  .our-philosophy-section .our-philosophy__intro {
    font-size: 15px;
    line-height: 1.7;
  }

  .our-philosophy-section .our-philosophy__orbit {
    --op-badge: 56px;
  }

  .our-philosophy-section .our-philosophy__center {
    --op-center: min(68vw, 320px);
  }

  .our-philosophy-section .our-philosophy__list {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .our-philosophy-section .our-philosophy__item:last-child:nth-child(odd) {
    grid-column: auto;
    justify-self: stretch;
    width: auto;
  }

  .our-philosophy-section .our-philosophy__card,
  .our-philosophy-section [data-philosophy-side] .our-philosophy__card {
    padding: 22px 20px 24px calc(var(--op-badge) / 2 + 16px);
    border-radius: 18px;
  }

  .our-philosophy-section .our-philosophy__badge,
  .our-philosophy-section [data-philosophy-side] .our-philosophy__badge {
    top: 18px;
  }

  .our-philosophy-section .our-philosophy__card-title {
    font-size: 20px;
  }

  /* Curved rail through the badges (path generated by JS) */
  .our-philosophy-section .our-philosophy__rail {
    display: block;
    position: absolute;
    z-index: 0;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
  }

  .our-philosophy-section .our-philosophy__rail-track,
  .our-philosophy-section .our-philosophy__rail-path {
    fill: none;
    stroke-linecap: round;
  }

  .our-philosophy-section .our-philosophy__rail-track {
    stroke: var(--op-blue);
    stroke-opacity: 0.12;
    stroke-width: 1.5;
  }

  .our-philosophy-section .our-philosophy__rail-path {
    stroke: var(--op-blue);
    stroke-width: 1.8;
  }

  .our-philosophy-section .our-philosophy__rail-head {
    fill: var(--op-orange);
    stroke: var(--op-white);
    stroke-width: 3;
  }

  .our-philosophy-section .our-philosophy__hero-tooth,
  .our-philosophy-section .our-philosophy__tooth--c {
    display: none;
  }

  .our-philosophy-section .our-philosophy__tooth--a {
    top: 1%;
    left: -10vw;
    width: 34vw;
    opacity: 0.5;
  }

  .our-philosophy-section .our-philosophy__tooth--b {
    top: 30%;
    right: -14vw;
    width: 38vw;
    opacity: 0.5;
  }

  .our-philosophy-section .our-philosophy__clinic {
    width: 58vw;
  }

  .our-philosophy-section .our-philosophy__clinic-image {
    opacity: 0.3;
  }
}

/* ==========================================================================
   Reduced motion: static, no transitions
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .our-philosophy-section *,
  .our-philosophy-section *::before,
  .our-philosophy-section *::after {
    transition: none !important;
  }

  .our-philosophy-section .our-philosophy__blob-shape,
  .our-philosophy-section .our-philosophy__tooth-shape,
  .our-philosophy-section .our-philosophy__hero-tooth-art,
  .our-philosophy-section .our-philosophy__center-photo {
    will-change: auto;
  }
}

/* Standalone preview page only */
body.our-philosophy-preview {
  margin: 0;
  background: #FFFFFF;
}
