/* ==========================================================================
   Norelden — styles
   Mobile-first. One breakpoint: 1024px (desktop layout).
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens (from Figma) ---------- */
:root {
  --navy: #004b69;          /* headings */
  --blue: #0090c4;          /* eyebrows, leads, outline buttons */
  --button: #005f9e;        /* primary buttons, nav */
  --deep: #00385e;          /* dark service cards */
  --cyan-text: #97e9ff;     /* text on dark cards */
  --orange: #dd6700;        /* "Does this sound familiar" heading */
  --text: #222222;
  --muted: #374151;         /* testimonials */
  --grey-bg: #f6f6f6;
  --yellow-bg: rgba(255, 252, 213, 0.6);
  --line: #e0e0e0;
  --card-border: #d9d9d9;
  --note-border: #dbd8be;

  --pad: 36px;              /* mobile side padding */
  --mobile-max: 600px;      /* mobile layout column on tablets */
  --container: 1120px;
  --text-col: 928px;

  --radius-card: 32px;
  --radius-box: 60px;
  --radius-photo: 64px;     /* "Mask 60px" smooth corner */
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.5;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--button); color: #fff; padding: 10px 16px; border-radius: 25px;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* Show/hide per layout */
.desktop-only { display: none !important; }

/* ---------- Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--mobile-max);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.wrap--flush { padding-inline: 0; }
.wrap--narrow { padding-inline: 16px; }

.center { text-align: center; }
.narrow { max-width: var(--text-col); margin-inline: auto; }

/* ---------- Typography ---------- */
.h1 {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.21;
  color: var(--navy);
}
.h2 {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.21;
  color: var(--navy);
}
.eyebrow {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.21;
  color: var(--blue);
  text-align: center;
}
.lead {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--blue);
}
.lead--sm { font-size: 20px; }
.prose p + p { margin-top: 27px; }   /* one empty line at 18px / 1.5 */
.prose strong, .strong { font-weight: 600; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  height: 50px;
  padding: 0 26px;
  border-radius: 25px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--button); color: #fff; border: 0; }
.btn--primary:hover { background: #004c80; }
.btn--outline {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
  padding: 0 22px;
}
.btn--outline:hover { background: rgba(0, 144, 196, .08); }
.btn .arrow { width: 26px; height: 15px; flex: none; }
.btn--back .arrow { transform: scaleX(-1); }
.btn--back { padding: 0 24px 0 20px; }

.btn-row { display: flex; justify-content: center; }
.btn-row--start { justify-content: flex-start; }

/* ---------- Divider ---------- */
.divider {
  border: 0;
  height: 96px;
  margin: 0;
  background: linear-gradient(var(--line), var(--line)) center / 100% 1px no-repeat;
}
.divider--lg { height: 128px; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header { position: relative; z-index: 20; }

/* Mobile: Home — hamburger + logo */
.mobile-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
  padding: 0 28px 0 13px;
  max-width: var(--mobile-max);
  margin-inline: auto;
}
.mobile-bar .logo img { width: 141px; height: 34px; }

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 1px;
  background: var(--blue);
}

/* Mobile: subpages — Back + page title */
.mobile-bar--sub {
  height: auto;
  padding: 30px var(--pad) 0;
  align-items: flex-start;
}
.mobile-bar--sub .btn--back { margin-top: 10px; }
.page-title {
  max-width: 170px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.21;
  color: var(--blue);
  text-align: right;
}

/* Mobile menu: white panel drops down from the top, page behind is dimmed (40% black).
   Tapping the dimmed area closes the menu.
   Nothing here may be position: fixed AND reach the bottom of the screen. Safari on
   iOS 26 tints its floating bottom toolbar to match such elements, on its own
   timing, so a flat gray bar appears late and lingers after closing. So the panel
   is fixed to the top only, and the dimming (.menu-scrim, added by main.js) is an
   ordinary absolutely positioned layer that covers the whole page. */
body { position: relative; }  /* .menu-scrim covers the full page height */
.menu-scrim {
  position: absolute;
  inset: 0;
  z-index: 49;
  background: rgba(0, 0, 0, .4);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s;
}
body.menu-open .menu-scrim { opacity: 1; visibility: visible; }
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu__panel {
  position: relative;
  max-height: 100vh;
  max-height: 100dvh;
  overflow-y: auto;
  padding: 40px 40px 64px;
  background: #fff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .6);
  transform: translateY(-24px);
  transition: transform .25s ease;
}
.mobile-menu.is-open .mobile-menu__panel { transform: none; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu li + li { margin-top: 32px; }
.mobile-menu a:not(.btn) {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.21;
  color: var(--button);
  text-decoration: none;
}
.mobile-menu .btn { margin-top: 48px; }
.menu-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 66px;
  height: 66px;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
}
.menu-close::before,
.menu-close::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 32px;
  width: 38px;
  height: 2px;
  border-radius: 1px;
  background: #197b96;
  transform: rotate(45deg);
}
.menu-close::after { transform: rotate(-45deg); }

/* Desktop header (hidden on mobile) */
.desktop-bar { display: none; }

/* ==========================================================================
   Home — Hero
   ========================================================================== */
.hero__title { padding-top: 14px; }
.hero__photo { margin: 40px auto 0; max-width: var(--mobile-max); }
.hero__photo img { width: 100%; aspect-ratio: 402 / 648; object-fit: cover; }
.hero__text { padding-top: 40px; }
.hero__text .prose { margin-top: 32px; }
.hero__text .btn-row { margin-top: 40px; }

/* Full-width photo inside the mobile column */
.photo { overflow: hidden; }
.photo img { width: 100%; object-fit: cover; }

/* ==========================================================================
   "Does this sound familiar" — scattered notes
   ========================================================================== */
.familiar {
  margin-top: 60px;
  padding: 40px 0 60px;
  background: var(--yellow-bg);
}
.familiar__title {
  max-width: 310px;
  margin-inline: auto;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--orange);
  text-align: center;
}
.familiar__cta { margin-top: 44px; text-align: center; }
.familiar__cta p { font-size: 18px; line-height: 1.5; color: #000; }
.familiar__cta .btn-row { margin-top: 24px; }

/* Notes: absolutely placed around the column centre, positions taken from Figma.
   Mobile:  --mx = horizontal offset of the note centre from the column centre,
            --my = vertical position of the note centre, --mr = rotation.
   Desktop: --col = column (-1, 0, 1), --ddx = small nudge, --dy, --dr. */
.notes {
  position: relative;
  list-style: none;
  margin: 38px auto 0;
  padding: 0;
  max-width: var(--mobile-max);
  height: var(--notes-h, 690px);
}
.note {
  position: absolute;
  left: calc(50% + var(--mx));
  top: var(--my);
  width: min(338px, calc(100vw - 48px));
  min-height: 88px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--note-border);
  border-radius: 13px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, .06);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  color: #000;
  transform: translate(-50%, -50%) rotate(var(--mr));
}
.note--tall { min-height: 114px; }

/* ==========================================================================
   Services
   ========================================================================== */
.services { margin-top: 48px; }
.services__body {
  padding: 48px 16px 32px;
  background: linear-gradient(to bottom, rgba(246, 246, 246, 0) 0, var(--grey-bg) 24px);
}
.services__track {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 568px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Service card — mobile: two-sided card. Tapping the front flips it to the back,
   tapping the back flips it to the front. JS keeps the height in step with the visible side. */
.service-card { position: relative; perspective: 1600px; }  /* relative: keeps the hidden heading inside the carousel */
.service-card__inner {
  position: relative;
  display: grid;
  transform-style: preserve-3d;
  transition: transform .6s cubic-bezier(.4, .2, .2, 1), height .45s ease;
}
.service-card.is-flipped .service-card__inner { transform: rotateY(180deg); }
.service-card__face {
  grid-area: 1 / 1;
  align-self: start;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 32px;
  border-radius: var(--radius-card);
  text-align: left;
  cursor: pointer;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-tap-highlight-color: transparent;
}
.service-card__front {
  align-items: center;
  gap: 16px;
  border: 0;
  background: var(--deep);
  color: #fff;
}
.service-card__back {
  position: relative;
  gap: 0;
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--card-border);
  box-shadow: 0 10px 16px rgba(0, 0, 0, .08);
  color: #000;
  transform: rotateY(180deg);
}
.service-card__icon { width: 200px; height: 100px; }
.service-card__title {
  width: 100%;
  padding-top: 4px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.21;
  color: #fff;
  text-align: center;
}
.service-card__summary {
  width: 100%;
  font-size: 18px;
  line-height: 1.4;
  color: var(--cyan-text);
}
.service-card__more { color: #fff; }
.service-card__back-title {
  max-width: 230px;
  margin-bottom: 24px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.21;
  color: var(--blue);
}
.service-card__p { display: block; font-size: 18px; line-height: 1.5; }
.service-card__p + .service-card__p { margin-top: 27px; }
.service-card__close {
  position: absolute;
  top: 26px;
  right: 26px;
  width: 24px;
  height: 24px;
  color: #d9d9d9;
}

@media (prefers-reduced-motion: reduce) {
  .service-card__inner { transition: none; }
}

.carousel-nav { display: none; }

/* ==========================================================================
   Medical Aesthetics teaser
   ========================================================================== */
.med-teaser { padding-top: 36px; }
.med-teaser__art { display: flex; justify-content: center; }
.med-teaser__art img { width: 200px; height: 200px; }
.med-teaser__title {
  margin-top: 24px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.21;
  color: var(--blue);
}
.med-teaser .prose { margin-top: 24px; }
.med-teaser .btn-row { margin-top: 40px; }

/* ==========================================================================
   About / Strategy / Discovery — shared stacked sections
   ========================================================================== */
.block .photo { margin-top: 40px; }
.block .h2 { margin-top: 40px; }
.block__cols { margin-top: 32px; }
.block .btn-row { margin-top: 40px; }

.about .photo { padding-right: 16px; }
.about .photo img { aspect-ratio: 386 / 648; border-radius: 0 var(--radius-photo) var(--radius-photo) 0; }
.strategy .photo { padding-left: 16px; }
.strategy .photo img { aspect-ratio: 386 / 396; border-radius: var(--radius-photo) 0 0 var(--radius-photo); }

.cols-2 > * + * { margin-top: 27px; }

/* Text split into two columns on desktop (break points as in Figma).
   On mobile the halves of the split paragraph read as one paragraph. */
.split__col { display: contents; }
.split__a, .split__b { display: inline; }
.split__b::before { content: " "; }
.split__col p:has(+ .split__a) { margin-bottom: 27px; }

.included { display: none; }  /* desktop only on Home */

.discovery .h2 { margin-top: 40px; }
.discovery .prose { margin-top: 32px; }
.discovery .btn-row { margin-top: 40px; }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials__track {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  padding: 0 calc((100vw - min(352px, 100vw - 50px)) / 2) 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  align-items: flex-start;
}
.testimonials__track::-webkit-scrollbar { display: none; }
.testimonial {
  flex: 0 0 min(352px, calc(100vw - 50px));
  scroll-snap-align: center;
  padding: 32px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 8px 12px rgba(0, 0, 0, .05);
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}
.testimonial__name { font-weight: 600; }
.testimonial__quote-mark { display: block; width: 48px; height: 80px; }
.testimonial blockquote { margin: 0; }

.dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
}
.dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 2px solid #d9d9d9;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.dot[aria-current="true"] { background: #d9d9d9; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-bottom: 96px;
  text-align: center;
}
.site-footer .divider { width: 100%; }
.site-footer .logo img { width: 141px; height: 34px; }
.site-footer__meta { font-size: 14px; line-height: 1.5; color: var(--text); }
.site-footer__meta a { text-decoration: none; }
.site-footer__meta a:hover { text-decoration: underline; }
.social { display: flex; gap: 17px; padding-top: 48px; }
.social a { display: block; width: 42px; height: 42px; color: #888; transition: color .15s ease; }
.social a:hover { color: var(--button); }
.social svg { width: 42px; height: 42px; display: block; }

/* ==========================================================================
   Medical Aesthetics page
   ========================================================================== */
.ma-hero { display: flex; flex-direction: column; }
.ma-hero__row { display: contents; }
.ma-hero__art { order: -1; display: flex; justify-content: center; margin-top: 43px; }
.ma-hero__art img { width: 200px; height: 200px; }
.ma-hero .h2 { margin-top: 32px; }
.ma-hero .prose { margin-top: 32px; }
.ma-hero__lead { font-size: 18px; font-weight: 400; line-height: 1.5; color: var(--text); }

.familiar--ma { margin-top: 40px; padding-top: 42px; }
.notes--ma { --notes-h: 600px; }

.testimonials { padding-bottom: 48px; }

.support { margin-top: 48px; }
.support__title { text-align: center; max-width: 260px; margin-inline: auto; }
.support__body {
  padding: 38px 16px 32px;
  background: linear-gradient(to bottom, rgba(246, 246, 246, 0), var(--grey-bg));
}
.support__grid {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 568px;
  display: grid;
  gap: 16px;
}
.support-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  box-shadow: 0 6px 10px rgba(0, 0, 0, .06);
}
.support-card img { width: 200px; height: 100px; }
.support-card h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.21;
  color: var(--blue);
  text-align: center;
}
.support-card p { width: 100%; font-size: 18px; line-height: 1.5; color: #000; }

/* Rounded photo that bleeds off one side (mobile) */
.photo-bleed { margin-top: 48px; padding-left: 16px; }
.photo-bleed img {
  width: 100%;
  aspect-ratio: 386 / 653;
  object-fit: cover;
  border-radius: var(--radius-photo) 0 0 var(--radius-photo);
}
.photo-bleed--right { padding-left: 0; padding-right: 16px; margin-top: 40px; }
.photo-bleed--right img {
  aspect-ratio: 386 / 528;
  border-radius: 0 var(--radius-photo) var(--radius-photo) 0;
}

.experience .h2 { margin-top: 40px; font-size: 24px; }
.talk .h2 { font-size: 24px; }
.experience .prose { margin-top: 32px; }

.talk .h2 { }
.talk__lead { margin-top: 32px; font-size: 20px; font-weight: 600; line-height: 1.4; color: var(--blue); }
.talk .btn-row { margin-top: 40px; }

/* ==========================================================================
   Strategy Session page (mobile)
   ========================================================================== */
.included-page .h2 { margin-top: 40px; color: #12526b; }
.included-list { margin-top: 32px; }
.included-list dt { font-weight: 600; }
.included-list dd { margin: 0; }
.included-list dd + dt { margin-top: 27px; }
.included-page .btn-row { margin-top: 40px; }

.page-end { margin-top: 96px; }

/* ==========================================================================
   DESKTOP — 1024px and up
   ========================================================================== */
@media (min-width: 1024px) {
  body { font-size: 20px; }

  :root { --pad: clamp(40px, calc((100vw - 1024px) / 256 * 40 + 40px), 80px); }

  .mobile-only { display: none !important; }
  .desktop-only { display: revert !important; }

  .wrap {
    max-width: calc(var(--container) + 2 * var(--pad));
    padding-inline: var(--pad);
  }
  .wrap--text { max-width: calc(var(--text-col) + 2 * var(--pad)); }
  .wrap--flush { padding-inline: var(--pad); }

  .h1 { font-size: 40px; }
  .h2 { font-size: 32px; }
  .eyebrow { font-size: 24px; }
  .lead { font-size: 28px; }
  .lead--sm { font-size: 24px; }
  .prose p + p { margin-top: 30px; }   /* one empty line at 20px / 1.5 */

  .divider { height: 128px; }

  /* ---------- Header ---------- */
  .mobile-bar, .mobile-menu { display: none; }
  .desktop-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 48px;
  }
  .desktop-bar .logo img { width: 184px; height: 44px; }
  .main-nav { display: flex; align-items: center; gap: 40px; }
  .main-nav ul { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
  .main-nav ul a {
    position: relative;
    display: block;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.21;
    color: var(--button);
    text-decoration: none;
    white-space: nowrap;
  }
  .main-nav ul a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; top: calc(100% + 4px);
    height: 2px;
    background: var(--button);
    transform: scaleX(0);
    transition: transform .2s ease;
  }
  .main-nav ul a:hover::after,
  .main-nav ul a[aria-current="page"]::after { transform: scaleX(1); }
  .main-nav .btn { height: 40px; padding: 0 18px; font-size: 16px; }

  /* ---------- Home hero ---------- */
  .hero__title { padding-top: 47px; max-width: calc(796px + 2 * var(--pad)); margin-inline: auto; text-align: center; }
  .hero__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 352px;
    gap: 32px;
    margin-top: 64px;
    margin-inline: auto;
    max-width: calc(var(--container) + 2 * var(--pad));
    padding-inline: var(--pad);
  }

  /* Desktop photos: 60px corners, kept inside the content grid */
  .hero__photo img,
  .block .photo img,
  .photo-bleed img,
  .photo-bleed--right img { border-radius: var(--radius-box); }
  .hero__photo { margin: 0; max-width: none; }
  .hero__photo img { height: 680px; aspect-ratio: auto; }
  .hero__text { padding: 0; max-width: none; margin: 0; }
  .hero__text .prose { margin-top: 40px; }
  .hero__text .btn-row { margin-top: 48px; justify-content: flex-start; }

  /* ---------- Familiar ---------- */
  .familiar {
    margin: 64px auto 0;
    max-width: var(--container);
    width: calc(100% - 2 * var(--pad));
    padding: 48px 0 64px;
    border-radius: var(--radius-box);
  }
  .familiar__title { max-width: 590px; font-size: 36px; }
  .familiar__cta { margin-top: 48px; }
  .familiar__cta p { font-size: 20px; }
  .familiar__cta p br { display: none; }

  .notes {
    max-width: none;
    margin-top: 45px;
    --pitch: min(326px, calc((100% - 70px) / 3));
  }
  .note {
    left: calc(50% + var(--col) * var(--pitch) + var(--ddx, 0px));
    top: var(--dy);
    z-index: var(--dz, 1);
    width: min(338px, calc((100% - 50px) / 3));
    transform: translate(-50%, -50%) rotate(var(--dr));
  }
  .notes--home { --notes-h: 320px; }
  .notes--ma { --notes-h: 300px; --pitch: min(188px, 25%); }
  .notes--ma .note { width: min(338px, calc(50% - 40px)); }

  /* ---------- Services carousel ---------- */
  .services { margin-top: 45px; }
  .services__head { padding-top: 19px; }
  .services {
    background: linear-gradient(to bottom, rgba(246, 246, 246, 0) 0, var(--grey-bg) 48px);
    padding-bottom: 48px;
  }
  .services__body { padding: 56px 0 0; background: none; }
  .services__track {
    /* 1280px window onto the cards: 3 cards in the content column, the next one
       peeking in at the edge (on both sides once scrolled into the middle) */
    max-width: calc(var(--container) + 2 * var(--pad));
    margin-inline: auto;
    flex-direction: row;
    align-items: stretch;
    gap: 32px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    /* room at the top and bottom so the card shadow isn't clipped by the scroller */
    padding: 8px 0 32px var(--pad);
    scroll-padding-left: var(--pad);
  }
  .services__track::-webkit-scrollbar { display: none; }
  .services__track > li { flex: 0 0 auto; display: flex; scroll-snap-align: start; }
  .services__track::after { content: ""; flex: 0 0 calc(var(--pad) - 32px); }

  /* Desktop: no flip — the front sits on top of the back text in one card */
  .service-card {
    width: calc((min(100vw - 2 * var(--pad), var(--container)) - 64px) / 3);
    display: flex;
    perspective: none;
    overflow: hidden;
    border-radius: var(--radius-card);
    background: #fff;
    border: 1px solid var(--card-border);
    box-shadow: 0 10px 16px rgba(0, 0, 0, .08);
  }
  .service-card__inner,
  .service-card.is-flipped .service-card__inner {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto !important;
    transform: none;
    transition: none;
  }
  .service-card__face {
    -webkit-backface-visibility: visible;
    backface-visibility: visible;
    cursor: default;
    pointer-events: none;
  }
  .service-card__front {
    min-height: 373px;
    justify-content: flex-start;
    border-radius: var(--radius-card) var(--radius-card) 0 0;
  }
  .service-card__more,
  .service-card__back-title,
  .service-card__close { display: none; }
  .service-card__back {
    flex: 1;
    gap: 0;
    padding: 24px 32px 32px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transform: none;
  }

  .carousel-nav {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 8px;
  }
  .carousel-nav button {
    width: 66px;
    height: 50px;
    padding: 0;
    border: 2px solid var(--blue);
    border-radius: 25px;
    background: transparent;
    color: var(--blue);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color .15s ease;
  }
  .carousel-nav button:hover:not(:disabled) { background: rgba(0, 144, 196, .08); }
  .carousel-nav button:disabled { border-color: #b0b0b0; color: #b0b0b0; cursor: default; }
  .carousel-nav svg { width: 26px; height: 15px; }
  .carousel-nav .prev svg { transform: scaleX(-1); }

  /* ---------- Medical teaser ---------- */
  .med-teaser { padding-top: 64px; }
  .med-teaser__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
  }
  .med-teaser__art { align-items: center; min-height: 439px; }
  .med-teaser__art img { width: 318px; height: 318px; }
  .med-teaser__title { margin-top: 0; font-size: 32px; }
  .med-teaser .prose { margin-top: 40px; }
  .med-teaser .btn-row { margin-top: 40px; justify-content: flex-start; }

  /* ---------- Stacked blocks ---------- */
  .block .photo { margin-top: 48px; padding: 0; }
  .block .photo img { height: 680px; aspect-ratio: auto; }
  .block .h2 { margin-top: 48px; text-align: center; }
  .block__cols { margin-top: 48px; }
  .block .btn-row { margin-top: 64px; }

  .split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
  .split__col { display: block; }
  .split__a, .split__b { display: block; }
  .split__b::before { content: none; }
  .split__col p:has(+ .split__a) { margin-bottom: 0; }

  .cols-2--split {
    display: grid;
    grid-template-columns: 352px minmax(0, 544px);
    justify-content: space-between;
    gap: 32px;
  }
  .cols-2 > * + * { margin-top: 0; }

  .strategy .read-more-row { display: none; }

  .included {
    display: block;
    margin-top: 64px;
    padding: 64px var(--pad);
    background: var(--grey-bg);
    border-radius: var(--radius-box);
  }
  .included .h2 { margin-top: 0; }
  .included__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    max-width: var(--text-col);
    margin: 48px auto 0;
  }
  .included__grid dl { margin: 0; }
  .included__grid dt { font-weight: 600; }
  .included__grid dd { margin: 0; }
  .included__grid dd + dt { margin-top: 30px; }

  .discovery .h2 { margin-top: 48px; text-align: center; }
  .discovery .prose { margin-top: 48px; }
  .discovery .btn-row { margin-top: 64px; }

  /* ---------- Testimonials ---------- */
  .testimonials__track {
    margin: 48px auto 0;
    padding: 0;
    max-width: var(--container);
    overflow: visible;
    scroll-snap-type: none;
  }
  .testimonial { flex: 1 1 0; }
  .dots { display: none; }
  .testimonials { padding-bottom: 64px; }

  .ma-hero { display: block; }
  .ma-hero__art { order: 0; }

  /* ---------- Medical Aesthetics page ---------- */
  .ma-hero .h2 { margin-top: 48px; font-size: 32px; }
  .ma-hero__row {
    display: grid;
    align-items: start;
    grid-template-columns: 352px 448px;
    justify-content: space-between;
    margin-top: 48px;
  }
  .ma-hero__art { margin-top: 0; min-height: 366px; align-items: center; }
  .ma-hero__art img { width: 318px; height: 318px; }
  .ma-hero .prose { margin-top: 47px; }
  .ma-hero__lead { font-size: 28px; font-weight: 600; line-height: 1.4; color: var(--blue); }

  .familiar--ma { margin-top: 48px; padding-top: 48px; }

  .support {
    margin-top: 64px;
    padding-top: 9px;
    padding-bottom: 64px;
    background: linear-gradient(to bottom, rgba(246, 246, 246, 0), var(--grey-bg));
  }
  .support__title { max-width: none; font-size: 32px; }
  .support__body { padding: 48px 0 0; background: none; }
  .support__grid {
    max-width: var(--text-col);
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .photo-bleed, .photo-bleed--right { margin-top: 64px; padding: 0; }
  .photo-bleed img, .photo-bleed--right img { height: 680px; aspect-ratio: auto; border-radius: var(--radius-box); }

  .experience .h2 { margin-top: 48px; text-align: center; font-size: 32px; }
  .talk .h2 { font-size: 32px; }
  .experience .prose { margin-top: 48px; }

  .talk .h2 { text-align: center; }
  .talk__lead { margin-top: 48px; font-size: 24px; }
  .talk .btn-row { margin-top: 64px; }

  .page-end { margin-top: 96px; }

  /* ---------- Strategy page on a wide screen ---------- */
  .included-page { max-width: calc(var(--text-col) + 2 * var(--pad)); }
  .included-page .h2 { text-align: left; }
}

/* Tighter header between 1024px and 1199px so logo, links and button fit */
@media (min-width: 1024px) and (max-width: 1199px) {
  .desktop-bar .logo img { width: 150px; height: 36px; }
  .main-nav { gap: 24px; }
  .main-nav ul { gap: 18px; }
  .main-nav ul a { font-size: 15px; }
  .main-nav .btn { padding: 0 14px; font-size: 15px; }
}

/* ---------- 404 page ---------- */
.not-found { padding-top: 64px; }
.not-found__text { margin-top: 24px; font-size: 20px; line-height: 1.5; }
.not-found .btn-row { margin-top: 40px; }
