/* ============================================================
   ZAHNARZTPRAXIS DR. STEPHAN JANSEN — DESIGN SYSTEM
   Premium dental website · Gelnhausen, Germany
   ============================================================ */

/* ------------------------------------------------------------
   1. MODERN CSS RESET
   ------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* ------------------------------------------------------------
   2. CUSTOM PROPERTIES — DESIGN TOKENS
   ------------------------------------------------------------ */
:root {
  /* — Colors — */
  --charcoal:        #242424;
  --charcoal-light:  #363636;
  --cream:           #F6F1E9;
  --cream-dark:      #EDE8DF;
  --tiffany:         #81D8D0;
  --tiffany-dark:    #5EBFB8;
  --tiffany-glow:    rgba(129, 216, 208, 0.15);
  --tiffany-glow-md: rgba(129, 216, 208, 0.28);
  --apple-green:     #8DB600;
  --apple-green-glow: rgba(141, 182, 0, 0.15);
  --white:           #FFFFFF;
  --text:            #2E2E2E;
  --text-light:      #7A7A7A;
  --text-xlight:     #ABABAB;
  --border:          rgba(36, 36, 36, 0.09);
  --border-light:    rgba(255, 255, 255, 0.11);
  --shadow-sm:       0 2px 8px rgba(36, 36, 36, 0.07);
  --shadow-md:       0 8px 32px rgba(36, 36, 36, 0.11);
  --shadow-lg:       0 24px 64px rgba(36, 36, 36, 0.14);
  --shadow-tiffany:  0 8px 32px rgba(129, 216, 208, 0.28);

  /* — Typography — */
  --font-serif:  'Instrument Serif', Georgia, 'Times New Roman', serif;
  --font-sans:   'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* — Type Scale (fluid with clamp) — */
  --text-xl:   clamp(3rem,    6vw + 1rem, 6rem);       /* hero headline */
  --text-lg:   clamp(2.25rem, 4vw + 0.5rem, 4rem);     /* page titles */
  --text-md:   clamp(1.75rem, 3vw + 0.25rem, 2.75rem); /* section headers */
  --text-sm:   clamp(1.375rem, 2vw, 2rem);              /* sub-headers */
  --text-base: clamp(1.0625rem, 1.5vw, 1.1875rem);     /* body */
  --text-xs:   clamp(0.875rem, 1.25vw, 1rem);          /* small / label */
  --text-2xs:  0.8125rem;                               /* caption */

  /* — Line Heights — */
  --lh-tight:  1.15;
  --lh-snug:   1.35;
  --lh-normal: 1.6;
  --lh-loose:  1.8;

  /* — Letter Spacing — */
  --ls-tight:  -0.03em;
  --ls-snug:   -0.02em;
  --ls-normal: -0.01em;
  --ls-wide:   0.06em;
  --ls-wider:  0.12em;

  /* — Spacing Scale — */
  --space-1:   0.25rem;   /*  4px */
  --space-2:   0.5rem;    /*  8px */
  --space-3:   0.75rem;   /* 12px */
  --space-4:   1rem;      /* 16px */
  --space-5:   1.25rem;   /* 20px */
  --space-6:   1.5rem;    /* 24px */
  --space-8:   2rem;      /* 32px */
  --space-10:  2.5rem;    /* 40px */
  --space-12:  3rem;      /* 48px */
  --space-16:  4rem;      /* 64px */
  --space-20:  5rem;      /* 80px */
  --space-24:  6rem;      /* 96px */
  --space-32:  8rem;      /* 128px */
  --space-40:  10rem;     /* 160px */

  /* — Section Rhythm — */
  --section-sm: clamp(3rem, 6vw, 5rem);
  --section-md: clamp(5rem, 10vw, 8rem);
  --section-lg: clamp(7rem, 14vw, 12rem);

  /* — Container — */
  --container-max: 1320px;
  --container-pad: clamp(1.25rem, 5vw, 4rem);

  /* — Border Radius — */
  --radius-sm:  0.25rem;
  --radius-md:  0.5rem;
  --radius-lg:  1rem;
  --radius-xl:  1.5rem;
  --radius-2xl: 2.5rem;
  --radius-full: 9999px;

  /* — Transitions — */
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.4, 0, 1, 1);
  --ease-inout:cubic-bezier(0.37, 0, 0.63, 1);
  --duration-fast:   180ms;
  --duration-base:   320ms;
  --duration-slow:   520ms;
  --duration-xslow:  800ms;

  /* — Z-Index Layers — */
  --z-below:   -1;
  --z-base:     0;
  --z-raised:  10;
  --z-overlay: 50;
  --z-nav:    100;
  --z-modal:  200;
}

/* ------------------------------------------------------------
   3. BASE DOCUMENT
   ------------------------------------------------------------ */
body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--text);
  background-color: var(--cream);
  line-height: var(--lh-normal);
}

/* ------------------------------------------------------------
   4. TYPOGRAPHY SCALE
   ------------------------------------------------------------ */

/* — Headings — */
.heading-xl {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 400;
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: inherit;
}

.heading-lg {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 400;
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-snug);
  color: inherit;
}

.heading-md {
  font-family: var(--font-serif);
  font-size: var(--text-md);
  font-weight: 400;
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-snug);
  color: inherit;
}

.heading-sm {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-normal);
  color: inherit;
}

/* — Body — */
.body-lg {
  font-size: clamp(1.125rem, 1.75vw, 1.3125rem);
  font-weight: 300;
  line-height: var(--lh-loose);
  letter-spacing: var(--ls-normal);
}

.body-md {
  font-size: var(--text-base);
  font-weight: 400;
  line-height: var(--lh-normal);
}

.body-sm {
  font-size: var(--text-xs);
  font-weight: 400;
  line-height: var(--lh-normal);
}

/* — Label — */
.label {
  font-family: var(--font-sans);
  font-size: var(--text-2xs);
  font-weight: 600;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--tiffany);
}

.label--light {
  color: rgba(91, 192, 190, 0.8);
}

.label--muted {
  color: var(--text-light);
}

/* — Prose — */
.prose {
  max-width: 68ch;
}

.prose p + p {
  margin-top: var(--space-4);
}

.prose h2 {
  font-family: var(--font-serif);
  font-size: var(--text-sm);
  font-weight: 400;
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
}

.prose ul,
.prose ol {
  padding-left: var(--space-6);
  margin-top: var(--space-4);
}

.prose li {
  margin-bottom: var(--space-2);
}

.prose a {
  color: var(--tiffany);
  border-bottom: 1px solid var(--tiffany-glow-md);
  transition: border-color var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out);
}

.prose a:hover {
  color: var(--tiffany-dark);
  border-color: var(--tiffany);
}

/* ------------------------------------------------------------
   5. LAYOUT — CONTAINER & GRID
   ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.container--narrow {
  max-width: 860px;
}

.container--wide {
  max-width: 1520px;
}

/* — Section Spacing — */
.section {
  padding-block: var(--section-md);
}

.section--sm {
  padding-block: var(--section-sm);
}

.section--lg {
  padding-block: var(--section-lg);
}

/* — Grid Systems — */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: var(--space-6);
}

/* — Flex Utilities — */
.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* ------------------------------------------------------------
   6. NAVIGATION
   ------------------------------------------------------------ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: var(--z-nav);
  padding-block: var(--space-6);
  transition: padding var(--duration-base) var(--ease-out),
              background 0.3s ease,
              box-shadow var(--duration-base) var(--ease-out),
              transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Smart header — hidden when scrolling down past hero */
.header-hidden {
  transform: translateY(-100%);
}

.nav.nav--scrolled {
  padding-block: var(--space-4);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06),
              0 8px 40px rgba(0, 0, 0, 0.08);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}

.nav__logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.6em;
  flex-shrink: 0;
}

.nav__logo-img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  flex-shrink: 0;
}

.nav__logo-texts {
  display: flex;
  flex-direction: column;
  gap: 0.1em;
}

/* Footer logo */
.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.75em;
}

.site-footer__logo-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  flex-shrink: 0;
}

.nav__logo-name {
  font-family: var(--font-serif);
  font-size: 1.1875rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--white);
  line-height: 1.2;
}

.nav__logo-sub {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--tiffany);
}

.nav__links {
  display: none;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
}

.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.75);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  border-bottom: 2px solid transparent;
  transition: color var(--duration-fast) var(--ease-out),
              background var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out);
  white-space: nowrap;
}

.nav__link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.nav__link.nav__link--active,
.nav__link.nav__link--spy-active {
  color: var(--apple-green);
  border-bottom-color: var(--apple-green);
}

.nav__cta {
  display: none;
  flex-shrink: 0;
}

.nav__hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  border-radius: var(--radius-sm);
  transition: background var(--duration-fast) var(--ease-out);
}

.nav__hamburger:hover {
  background: rgba(255, 255, 255, 0.08);
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
  transition: transform var(--duration-base) var(--ease-out),
              opacity var(--duration-base) var(--ease-out);
}

/* Mobile menu open state — hamburger lines animate into X */
.nav--open .nav__hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav--open .nav__hamburger span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav--open .nav__hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav Drawer */
.nav__mobile {
  position: fixed;
  inset: 0;
  background: var(--charcoal);
  z-index: calc(var(--z-nav) - 1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-16) var(--container-pad);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-base) var(--ease-out);
}

/* Opened via JS class — direct, no sibling selector needed */
.nav__mobile--open {
  opacity: 1 !important;
  pointer-events: all !important;
}

.nav__mobile-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.nav__mobile-link {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
  padding-block: var(--space-3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: color var(--duration-fast) var(--ease-out);
}

.nav__mobile-link:hover {
  color: var(--white);
}

.nav__mobile-footer {
  margin-top: auto;
  padding-top: var(--space-8);
}

/* — Nav scrolled state: flip to dark text on white bg — */
.nav--scrolled .nav__logo-name {
  color: var(--charcoal);
}

.nav--scrolled .nav__logo-sub {
  color: var(--tiffany-dark);
}

.nav--scrolled .nav__link {
  color: rgba(45, 45, 45, 0.65);
}

.nav--scrolled .nav__link:hover {
  color: var(--charcoal);
  background: rgba(45, 45, 45, 0.06);
}

.nav--scrolled .nav__link.nav__link--active,
.nav--scrolled .nav__link.nav__link--spy-active {
  color: var(--apple-green);
  border-bottom-color: var(--apple-green);
}

.nav--scrolled .nav__hamburger:hover {
  background: rgba(45, 45, 45, 0.06);
}

.nav--scrolled .nav__hamburger span {
  background: var(--charcoal);
}

/* NAV CTA pill — tel: link, tiffany outline, adapts on scroll */
.nav__cta--tel {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--tiffany);
  border-color: var(--tiffany);
  letter-spacing: 0.01em;
}

.nav__cta--tel:hover {
  background: var(--tiffany);
  color: var(--white);
  box-shadow: var(--shadow-tiffany);
  transform: translateY(-1px);
}

.nav--scrolled .nav__cta--tel {
  color: var(--tiffany-dark);
  border-color: var(--tiffany-dark);
}

.nav--scrolled .nav__cta--tel:hover {
  background: var(--tiffany-dark);
  color: var(--white);
}

/* ------------------------------------------------------------
   7. BUTTONS
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.875em 1.75em;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background var(--duration-base) var(--ease-out),
              color var(--duration-base) var(--ease-out),
              border-color var(--duration-base) var(--ease-out),
              transform var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
}

.btn:active {
  transform: translateY(1px);
}

/* Primary — Tiffany fill */
.btn-primary {
  background: var(--tiffany);
  color: var(--white);
  border-color: var(--tiffany);
}

.btn-primary:hover {
  background: var(--tiffany-dark);
  border-color: var(--tiffany-dark);
  box-shadow: var(--shadow-tiffany);
  transform: translateY(-1px);
}

/* Outline — transparent with tiffany border */
.btn-outline {
  background: transparent;
  color: var(--tiffany);
  border-color: var(--tiffany);
}

.btn-outline:hover {
  background: var(--tiffany);
  color: var(--white);
  box-shadow: var(--shadow-tiffany);
  transform: translateY(-1px);
}

/* Ghost — white outline (for dark backgrounds) */
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
}

/* Sizes */
.btn--sm {
  font-size: 0.8125rem;
  padding: 0.65em 1.25em;
}

.btn--lg {
  font-size: 1.0625rem;
  padding: 1em 2.25em;
}

/* Icon inside button */
.btn svg {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}

/* ------------------------------------------------------------
   8. CARDS
   ------------------------------------------------------------ */
.card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card__image {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.card:hover .card__image img {
  transform: scale(1.04);
}

.card__body {
  padding: var(--space-8);
}

.card__label {
  margin-bottom: var(--space-3);
}

.card__title {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  font-weight: 400;
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-snug);
  margin-bottom: var(--space-4);
  color: var(--charcoal);
}

.card__text {
  color: var(--text-light);
  font-size: var(--text-xs);
  line-height: var(--lh-normal);
  margin-bottom: var(--space-6);
}

/* Service card — dark variant */
.card--dark {
  background: var(--charcoal);
  color: var(--white);
}

.card--dark .card__title {
  color: var(--white);
}

.card--dark .card__text {
  color: rgba(255, 255, 255, 0.55);
}

/* Icon card */
.card--icon {
  padding: var(--space-10) var(--space-8);
  border: 1px solid var(--border);
  background: var(--white);
}

.card__icon {
  width: 2.75rem;
  height: 2.75rem;
  color: var(--tiffany);
  margin-bottom: var(--space-6);
}

/* ------------------------------------------------------------
   9. HERO — full-screen carousel, glass card bottom-right
   ------------------------------------------------------------ */

/* Background slides */
.hero__slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.8s ease;
  background-size: cover;
  background-position: center;
}
.hero__slide--active { opacity: 1; }

/* Dark overlay — keeps text legible over photos */
.hero__slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.38) 0%,
    rgba(0,0,0,0.20) 50%,
    rgba(0,0,0,0.58) 100%
  );
}

/* Slide indicator dots */
.hero__indicators {
  position: absolute;
  bottom: clamp(2.5rem, 5vh, 4rem);
  left: clamp(2rem, 5vw, 5rem);
  display: flex;
  gap: var(--space-2);
  z-index: 10;
}
.hero__dot {
  width: 28px;
  height: 2px;
  background: rgba(255,255,255,0.28);
  border-radius: 1px;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: width 0.4s var(--ease-out), background 0.4s var(--ease-out);
}
.hero__dot--active {
  width: 48px;
  background: var(--tiffany);
}

.hero {
  position: relative;
  height: 100vh;
  height: 100svh; /* mobile — excludes browser chrome */
  min-height: 580px;
  overflow: hidden;
  background: var(--charcoal);
}

/* Teal radial orbs */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: var(--radius-full);
  pointer-events: none;
}

.hero::before {
  top: -15%;
  left: -10%;
  width: clamp(500px, 65vw, 900px);
  height: clamp(500px, 65vw, 900px);
  background: radial-gradient(circle, rgba(129, 216, 208, 0.16) 0%, transparent 62%);
  animation: heroAurora1 14s ease-in-out infinite alternate;
}

.hero::after {
  bottom: -20%;
  right: -8%;
  width: clamp(350px, 50vw, 720px);
  height: clamp(350px, 50vw, 720px);
  background: radial-gradient(circle, rgba(129, 216, 208, 0.10) 0%, transparent 62%);
  animation: heroAurora2 18s ease-in-out infinite alternate;
}

@keyframes heroAurora1 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(6%, 8%) scale(1.12); }
}

@keyframes heroAurora2 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-8%, -6%) scale(1.10); }
}

/* Third orb — subtle mid accent */
.hero__orb {
  position: absolute;
  bottom: 10%;
  left: 20%;
  width: clamp(200px, 30vw, 400px);
  height: clamp(200px, 30vw, 400px);
  border-radius: var(--radius-full);
  background: radial-gradient(circle, rgba(91, 192, 190, 0.05) 0%, transparent 65%);
  pointer-events: none;
}

/* Content card — glass, bottom-RIGHT */
.hero__content {
  position: absolute;
  bottom: clamp(2.5rem, 6vh, 5rem);
  right: clamp(2rem, 5vw, 6rem);
  left: auto;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  padding: clamp(1rem, 1.5vw, 1.4rem) clamp(1.1rem, 2vw, 1.75rem);
  max-width: 460px;
  width: min(75vw, 460px);
  background: linear-gradient(135deg, rgba(4,6,8,0.12) 0%, rgba(8,22,24,0.09) 100%);
  backdrop-filter: blur(10px) saturate(1.2) brightness(0.85);
  -webkit-backdrop-filter: blur(10px) saturate(1.2) brightness(0.85);
  border-radius: 24px 4px 24px 24px;
  border: 1px solid rgba(255,255,255,0.10);
  border-right: 3px solid var(--tiffany);
  border-bottom: 3px solid var(--tiffany);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.07),
    0 16px 48px rgba(0,0,0,0.28),
    0 0 50px rgba(129,216,208,0.07),
    0 0 0 1px rgba(129,216,208,0.04);
  will-change: transform, opacity;
}

/* House illustration — bottom-right of testimonials section */
.testimonials {
  position: relative;
  overflow: hidden;
}

.testimonials__house {
  position: absolute;
  bottom: -3rem;
  width: clamp(330px, 33vw, 510px);
  height: auto;
  pointer-events: none;
  opacity: 1;
  /* Explicit sepia(0) + saturate(1) locks colour rendering identically on both sides */
  filter: sepia(0) saturate(1) brightness(1) drop-shadow(0 8px 32px rgba(0,0,0,0.15));
  mix-blend-mode: normal;
  isolation: isolate;
  z-index: 0;
}

.testimonials__house--right {
  right: -2rem;
  left: auto;
}

/* Mirror horizontally — scaleX does NOT affect colour, same filter applied */
.testimonials__house--left {
  left: -2rem;
  right: auto;
  transform: scaleX(-1);
}

@media (max-width: 767px) {
  .testimonials__house {
    width: clamp(120px, 36vw, 180px);
    bottom: -1.5rem;
  }
  .testimonials__house--right { right: -1rem; }
  .testimonials__house--left  { left: -1rem; }
}

/* Hero slide arrows */
.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.13);
  color: rgba(255,255,255,0.65);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
.hero__arrow:hover {
  background: rgba(129,216,208,0.14);
  color: var(--tiffany);
  border-color: rgba(129,216,208,0.3);
}
.hero__arrow--prev { left: clamp(1rem, 2.5vw, 2rem); }
.hero__arrow--next { right: clamp(1rem, 2.5vw, 2rem); }

/* Label */
.hero__label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--text-2xs);
  font-weight: 600;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--tiffany);
}

/* H1 */
.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 5.5vw, 5.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--white);
}

/* Instrument Serif italic subtitle */
.hero__subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.125rem, 2vw, 1.625rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.70);
  letter-spacing: -0.01em;
}

/* Description */
.hero__desc {
  font-size: clamp(0.9375rem, 1.25vw, 1.125rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.80);
  line-height: var(--lh-loose);
  max-width: 52ch;
}

/* Buttons row */
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: var(--space-4);
  margin-top: var(--space-3);
  position: relative;
  z-index: 5; /* always above any overlay */
}

/* Divider line — hidden in compact card layout */
.hero__divider { display: none; }

/* — Scroll indicator — */
.hero__scroll {
  position: absolute;
  bottom: clamp(var(--space-8), 4vh, var(--space-12));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  z-index: 10;
}

.hero__scroll-text {
  font-size: var(--text-2xs);
  font-weight: 600;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.35), transparent);
  animation: heroPulse 2.4s ease-in-out infinite;
  transform-origin: top center;
}

@keyframes heroPulse {
  0%, 100% { opacity: 0.35; transform: scaleY(1); }
  50%       { opacity: 0.7;  transform: scaleY(0.6); }
}

/* ------------------------------------------------------------
   9b. FOCUS BADGE — fixed, left edge, hides after hero
   ------------------------------------------------------------ */
.focus-badge {
  position: fixed;
  top: 120px;
  left: 0;
  z-index: calc(var(--z-nav) - 1);
  /* JS drives --badge-progress (1=visible → 0=hidden) for smooth progressive fade */
  opacity: var(--badge-progress, 1);
  transform: translateX(calc((1 - var(--badge-progress, 1)) * -110%));
  will-change: opacity, transform;
}

.focus-badge:hover {
  transform: translateX(calc((1 - var(--badge-progress, 1)) * -110% + 8px));
}

.focus-badge__link {
  display: block;
  width: 130px;
  overflow: hidden;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  box-shadow: var(--shadow-md);
  outline: none;
  transition: box-shadow var(--duration-base) var(--ease-out);
}

.focus-badge__link:focus-visible {
  box-shadow: 0 0 0 3px var(--tiffany), var(--shadow-md);
}

.focus-badge__link:hover {
  box-shadow: var(--shadow-lg);
}

.focus-badge__img {
  width: 130px;
  height: auto;
  display: block;
}

/* ------------------------------------------------------------
   9c. ABOUT SECTION
   ------------------------------------------------------------ */
.about {
  background: var(--cream);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

/* — Left column — */
.about__content .label {
  margin-bottom: var(--space-4);
}

.about__title {
  margin-bottom: var(--space-6);
  color: var(--charcoal);
  font-size: var(--text-lg);
  letter-spacing: -0.03em;
}

.about__text {
  color: var(--text-light);
  line-height: var(--lh-loose);
  margin-bottom: var(--space-10);
  max-width: 48ch;
}

/* Feature cards */
.about__features {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.about__feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-5);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  transition: transform var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out),
              border-color var(--duration-base) var(--ease-out);
}

.about__feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--tiffany-glow-md);
}

.about__feature-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-md);
  background: var(--tiffany-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tiffany);
  flex-shrink: 0;
  transition: background var(--duration-base) var(--ease-out),
              color var(--duration-base) var(--ease-out);
}

.about__feature:hover .about__feature-icon {
  background: var(--tiffany);
  color: var(--white);
}

.about__feature-body {
  flex: 1;
  min-width: 0;
}

.about__feature-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: var(--space-1);
  letter-spacing: -0.01em;
}

.about__feature-text {
  font-size: var(--text-xs);
  color: var(--text-light);
  line-height: var(--lh-snug);
}

/* — Right column — */
.about__media {
  position: relative;
}

.about__image-wrap {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  aspect-ratio: 4/5;
  background:
    radial-gradient(ellipse 70% 50% at 60% 30%, rgba(91,192,190,0.18) 0%, transparent 70%),
    linear-gradient(160deg, #d8d3ca 0%, #cac5bb 40%, #b8b3aa 100%);
  position: relative;
}

/* Real photo — lock transform so GSAP parallax doesn't shift the image */
.about__image-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 54% 33%;
  display: block;
  transform: none !important;
}

/* Floating credential card — dark charcoal, stands out on cream page */
.about__credential {
  position: absolute;
  bottom: -1.5rem;
  right: calc(var(--space-8) * -1);
  background: var(--charcoal);
  border: 1px solid rgba(129, 216, 208, 0.25);
  border-radius: var(--radius-xl);
  padding: var(--space-5) var(--space-6);
  box-shadow: 0 12px 40px rgba(0,0,0,0.28);
  max-width: 260px;
}

.about__credential-label {
  font-size: var(--text-2xs);
  font-weight: 600;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--tiffany);
  margin-bottom: var(--space-2);
}

.about__credential-text {
  font-size: var(--text-2xs);
  color: rgba(255,255,255,0.72);
  line-height: var(--lh-snug);
}

/* Responsive — tablet: side by side */
@media (min-width: 900px) {
  .about__grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Stack order: content left, media right (DOM order is already correct) */
}

/* On narrow screens, credential card tucks inside the image */
@media (max-width: 899px) {
  .about__credential {
    right: var(--space-4);
    bottom: var(--space-4);
    max-width: 220px;
  }
}

/* ------------------------------------------------------------
   9d. SERVICES / THERAPIESPEKTRUM
   ------------------------------------------------------------ */
.services {
  background: var(--white);
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Service card */
.service-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  text-decoration: none;
  transition: transform var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out),
              border-color var(--duration-base) var(--ease-out);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 0 4px var(--tiffany-glow),
              var(--shadow-md);
  border-color: var(--tiffany-glow-md);
}

/* Image area — CSS-only icon panel, no img required */
.service-card__image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--cream) 0%, #EDE8DF 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--duration-base) var(--ease-out);
}

.service-card:hover .service-card__image {
  background: linear-gradient(135deg, #e8f7f7 0%, #d4efef 100%);
}

/* The SVG icon inside each card's image panel */
.service-card__icon {
  width: 48px;
  height: 48px;
  color: var(--tiffany);
  opacity: 0.55;
  transition: opacity var(--duration-base) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.service-card:hover .service-card__icon {
  opacity: 1;
  transform: scale(1.12) translateY(-2px);
}

/* Body */
.service-card__body {
  padding: 1.75rem 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  flex: 1;
}

.service-card__title {
  font-family: var(--font-serif);
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  font-weight: 400;
  color: var(--charcoal);
  letter-spacing: -0.02em;
  line-height: var(--lh-snug);
}

.service-card__title::before {
  content: '●';
  display: inline-block;
  color: var(--apple-green);
  font-size: 6px;
  line-height: 1;
  vertical-align: middle;
  margin-right: 6px;
  position: relative;
  top: -1px;
}

.service-card__desc {
  font-size: var(--text-xs);
  color: var(--text-light);
  line-height: 1.75;
  flex: 1;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--tiffany);
  margin-top: var(--space-3);
  white-space: nowrap;
  transition: color var(--duration-fast) var(--ease-out),
              gap var(--duration-fast) var(--ease-out);
}

.service-card:hover .service-card__link {
  color: var(--tiffany-dark);
  gap: var(--space-2);
}

/* Grid breakpoints */
@media (min-width: 600px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ------------------------------------------------------------
   10. SECTION HEADERS
   ------------------------------------------------------------ */
.section-header {
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.section-header--center {
  text-align: center;
}

.section-header--center .prose {
  margin-inline: auto;
}

.section-header .label {
  margin-bottom: var(--space-4);
}

.section-header__title {
  margin-bottom: var(--space-5);
  letter-spacing: -0.025em;
}

.section-header__lead {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  font-weight: 300;
  color: var(--text-light);
  line-height: var(--lh-loose);
  max-width: 58ch;
}

.section-header--center .section-header__lead {
  margin-inline: auto;
}

/* Decorative rule */
.section-header__rule {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.section-header__rule::before,
.section-header__rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.section-header__rule--left::before {
  display: none;
}

/* ------------------------------------------------------------
   11. TRUST / STATS BAR
   ------------------------------------------------------------ */
.stats-bar {
  background: var(--charcoal);
  padding-block: var(--space-10);
}

.stats-bar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  justify-content: space-around;
  align-items: center;
}

.stat {
  text-align: center;
  flex: 1;
  min-width: 120px;
}

.stat__number {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat__number em {
  font-style: italic;
  color: var(--tiffany);
}

.stat__label {
  font-size: var(--text-2xs);
  font-weight: 500;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

/* Divider between stats */
.stat + .stat {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  padding-left: var(--space-8);
}

/* ------------------------------------------------------------
   12. SERVICE CARDS — HOMEPAGE GRID
   ------------------------------------------------------------ */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.service-item {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-6) var(--space-8);
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: background var(--duration-base) var(--ease-out),
              border-color var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out),
              transform var(--duration-base) var(--ease-out);
}

.service-item:hover {
  background: var(--white);
  border-color: var(--tiffany-glow-md);
  box-shadow: 0 0 0 4px var(--tiffany-glow),
              var(--shadow-md);
  transform: translateX(4px);
}

.service-item__icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-md);
  background: var(--tiffany-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tiffany);
  flex-shrink: 0;
  transition: background var(--duration-base) var(--ease-out);
}

.service-item:hover .service-item__icon {
  background: var(--tiffany);
  color: var(--white);
}

.service-item__icon svg {
  width: 1.375rem;
  height: 1.375rem;
}

.service-item__body {
  flex: 1;
  min-width: 0;
}

.service-item__name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: var(--space-1);
  transition: color var(--duration-fast) var(--ease-out);
}

.service-item:hover .service-item__name {
  color: var(--tiffany-dark);
}

.service-item__desc {
  font-size: var(--text-xs);
  color: var(--text-light);
  line-height: var(--lh-snug);
}

.service-item__arrow {
  color: var(--text-xlight);
  transition: color var(--duration-fast) var(--ease-out),
              transform var(--duration-base) var(--ease-out);
}

.service-item:hover .service-item__arrow {
  color: var(--tiffany);
  transform: translateX(4px);
}

/* ------------------------------------------------------------
   13. ABOUT / SPLIT SECTION
   ------------------------------------------------------------ */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-16);
  align-items: center;
}

.split--reverse .split__media {
  order: -1;
}

.split__media {
  position: relative;
}

.split__image-wrap {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  aspect-ratio: 4/5;
}

.split__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split__badge {
  position: absolute;
  bottom: var(--space-8);
  right: var(--space-8);
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-5) var(--space-6);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.split__badge-number {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.04em;
  color: var(--charcoal);
  line-height: 1;
}

.split__badge-number em {
  font-style: italic;
  color: var(--tiffany);
}

.split__badge-label {
  font-size: var(--text-2xs);
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--text-light);
}

.split__content {
  padding-block: var(--space-4);
}

.split__content .label {
  margin-bottom: var(--space-4);
}

.split__title {
  margin-bottom: var(--space-6);
}

.split__text {
  color: var(--text-light);
  line-height: var(--lh-loose);
  margin-bottom: var(--space-8);
}

.split__features {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}

.split__feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.split__feature-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--tiffany);
  flex-shrink: 0;
  margin-top: 0.15em;
}

.split__feature-text {
  font-size: var(--text-xs);
  color: var(--text-light);
  line-height: var(--lh-snug);
}

.split__feature-text strong {
  color: var(--charcoal);
  font-weight: 600;
}

/* ------------------------------------------------------------
   14. TEAM
   ------------------------------------------------------------ */
.team__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0 !important;
  overflow: hidden;
  width: 100%;
}

.team-card {
  display: block;
  width: 33.3333%;          /* 3 columns always */
  background: var(--charcoal);
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  transition: transform var(--duration-base) var(--ease-out);
}

.team-card:hover {
  transform: scale(1.02);
  z-index: 2;
  position: relative;
}

.team-card__image {
  aspect-ratio: 3/4;
  overflow: hidden;
}

.team-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform var(--duration-slow) var(--ease-out);
  filter: grayscale(10%);
}

.team-card:hover .team-card__image img {
  transform: scale(1.04);
  filter: grayscale(0%);
}

.team-card__body {
  padding: var(--space-6);
  flex: 1;
}

.team-card__role {
  margin-bottom: var(--space-2);
  hyphens: none;
  word-break: keep-all;
  overflow-wrap: normal;
}

.team-card__name {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 400;
  color: var(--charcoal);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
}

.team-card__bio {
  font-size: var(--text-xs);
  color: var(--text-light);
  line-height: var(--lh-normal);
}

/* ------------------------------------------------------------
   15. TESTIMONIALS
   ------------------------------------------------------------ */
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.testimonial {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.testimonial__quote {
  font-family: var(--font-serif);
  font-size: clamp(1.125rem, 1.75vw, 1.375rem);
  font-weight: 400;
  font-style: italic;
  line-height: var(--lh-snug);
  color: var(--charcoal);
  position: relative;
  padding-left: var(--space-6);
}

.testimonial__quote::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--tiffany);
  border-radius: 1px;
}

.testimonial__footer {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.testimonial__avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-full);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--cream);
}

.testimonial__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial__author {
  font-weight: 600;
  font-size: var(--text-xs);
  color: var(--charcoal);
  margin-bottom: 0.125rem;
}

.testimonial__meta {
  font-size: var(--text-2xs);
  color: var(--text-light);
}

.testimonial__stars {
  margin-left: auto;
  display: flex;
  gap: 2px;
  color: #F9A825;
}

/* ------------------------------------------------------------
   16. CTA SECTION
   ------------------------------------------------------------ */
.cta-section {
  background: var(--charcoal);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 70vw;
  height: 70vw;
  max-width: 700px;
  max-height: 700px;
  border-radius: var(--radius-full);
  background: radial-gradient(circle, rgba(91,192,190,0.12) 0%, transparent 65%);
  pointer-events: none;
}

.cta-section__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: center;
}

.cta-section__label {
  margin-bottom: var(--space-4);
}

.cta-section__title {
  color: var(--white);
  margin-bottom: var(--space-6);
}

.cta-section__text {
  color: rgba(255, 255, 255, 0.55);
  font-size: var(--text-xs);
  line-height: var(--lh-loose);
  max-width: 44ch;
  margin-bottom: var(--space-8);
}

.cta-section__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.cta-info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.cta-info-item__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-md);
  background: var(--tiffany-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tiffany);
  flex-shrink: 0;
}

.cta-info-item__icon svg {
  width: 1.125rem;
  height: 1.125rem;
}

.cta-info-item__label {
  font-size: var(--text-2xs);
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.40);
  margin-bottom: var(--space-1);
}

.cta-info-item__value {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--white);
  line-height: var(--lh-snug);
}

/* ------------------------------------------------------------
   17. FOOTER
   ------------------------------------------------------------ */
.footer {
  background: var(--charcoal);
  color: var(--white);
  padding-top: var(--space-20);
  padding-bottom: var(--space-10);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__brand-name {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: var(--space-2);
  letter-spacing: -0.02em;
}

.footer__brand-tagline {
  font-size: var(--text-2xs);
  font-weight: 500;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--tiffany);
  margin-bottom: var(--space-6);
}

.footer__address {
  font-style: normal;
  font-size: var(--text-xs);
  line-height: var(--lh-loose);
  margin-bottom: var(--space-6);
}

.footer__col-title {
  font-size: var(--text-2xs);
  font-weight: 600;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: var(--space-5);
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__link {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--duration-fast) var(--ease-out);
}

.footer__link:hover {
  color: var(--white);
}

.footer__bottom {
  padding-top: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: center;
  text-align: center;
}

.footer__legal {
  font-size: var(--text-2xs);
  color: rgba(255, 255, 255, 0.35);
}

.footer__legal-links {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
  justify-content: center;
}

.footer__legal-link {
  font-size: var(--text-2xs);
  color: rgba(255, 255, 255, 0.30);
  transition: color var(--duration-fast) var(--ease-out);
}

.footer__legal-link:hover {
  color: var(--tiffany);
}

/* ------------------------------------------------------------
   18. PAGE HERO (interior pages)
   ------------------------------------------------------------ */
.page-hero {
  background: var(--charcoal);
  padding-top: calc(var(--space-32) + 2rem);
  padding-bottom: var(--space-20);
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  opacity: 0.25;
}

.page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero__content {
  position: relative;
  z-index: 1;
}

.page-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.page-hero__breadcrumb-item {
  font-size: var(--text-2xs);
  font-weight: 500;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.40);
}

.page-hero__breadcrumb-sep {
  color: rgba(255, 255, 255, 0.20);
  font-size: 0.625rem;
}

.page-hero__breadcrumb-item--active {
  color: var(--tiffany);
}

.page-hero__label {
  margin-bottom: var(--space-4);
}

.page-hero__title {
  color: var(--white);
  margin-bottom: var(--space-6);
  max-width: 18ch;
}

.page-hero__lead {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.60);
  line-height: var(--lh-loose);
  max-width: 52ch;
}

/* ------------------------------------------------------------
   19. SCROLL ANIMATIONS (initial states, GSAP drives the rest)
   ------------------------------------------------------------ */
[data-reveal] {
  will-change: transform, opacity;
}

[data-reveal="fade-up"] {
  opacity: 0;
  transform: translateY(40px);
}

[data-reveal="fade-left"] {
  opacity: 0;
  transform: translateX(-40px);
}

[data-reveal="fade-right"] {
  opacity: 0;
  transform: translateX(40px);
}

[data-reveal="fade-in"] {
  opacity: 0;
}

[data-reveal].revealed {
  opacity: 1;
  transform: none;
}

/* ------------------------------------------------------------
   20. UTILITIES
   ------------------------------------------------------------ */
.bg-charcoal { background-color: var(--charcoal); }
.bg-cream     { background-color: var(--cream); }
.bg-white     { background-color: var(--white); }
.bg-tiffany   { background-color: var(--tiffany); }

.text-white   { color: var(--white); }
.text-charcoal{ color: var(--charcoal); }
.text-muted   { color: var(--text-light); }
.text-tiffany { color: var(--tiffany); }

.text-center  { text-align: center; }
.text-left    { text-align: left; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Divider */
.divider {
  height: 1px;
  background: var(--border);
  border: none;
}

.divider--light {
  background: rgba(255,255,255,0.06);
}

/* Tiffany accent line */
.accent-line {
  display: inline-block;
  width: 2.5rem;
  height: 2px;
  background: var(--tiffany);
  border-radius: 1px;
}

/* Reveal overflow clip */
.overflow-hidden { overflow: hidden; }

/* Aspect ratios */
.aspect-square   { aspect-ratio: 1/1; }
.aspect-video    { aspect-ratio: 16/9; }
.aspect-portrait { aspect-ratio: 3/4; }

/* Image fills */
.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Margin helpers */
.mt-auto { margin-top: auto; }
.mb-4    { margin-bottom: var(--space-4); }
.mb-6    { margin-bottom: var(--space-6); }
.mb-8    { margin-bottom: var(--space-8); }

/* ------------------------------------------------------------
   21. RESPONSIVE — 768px (Tablet)
   ------------------------------------------------------------ */
@media (min-width: 768px) {

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

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-card { width: 33.3333%; }

  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-section__inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .footer__legal-links {
    justify-content: flex-end;
  }

  .stat + .stat {
    padding-left: var(--space-10);
  }
}

/* ------------------------------------------------------------
   22. RESPONSIVE — 1024px (Desktop)
   ------------------------------------------------------------ */
@media (min-width: 1024px) {

  .nav__links {
    display: flex;
  }

  .nav__cta {
    display: block;
  }

  .nav__hamburger {
    display: none;
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split {
    grid-template-columns: 1fr 1fr;
    gap: clamp(4rem, 8vw, 8rem);
  }

  .split--reverse .split__media {
    order: unset;
  }

  .team-card { width: 33.3333%; }

  .testimonial-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }

  .cta-section__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-20);
  }
}

/* ------------------------------------------------------------
   23. RESPONSIVE — 1280px (Wide Desktop)
   ------------------------------------------------------------ */
@media (min-width: 1280px) {

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .split {
    grid-template-columns: 5fr 6fr;
  }

  .split--reverse {
    grid-template-columns: 6fr 5fr;
  }

  /* hero card now bottom-right — no extra padding override needed */

  /* Team grid is handled by the full-bleed rules above */
}

/* ------------------------------------------------------------
   24. REDUCED MOTION
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ------------------------------------------------------------
   25. PRINT
   ------------------------------------------------------------ */
@media print {
  .nav,
  .hero__scroll,
  .cta-section,
  .footer { display: none; }

  body {
    color: #000;
    background: #fff;
  }
}

/* ============================================================
   TEAM SECTION
   ============================================================ */
.team {
  background: var(--charcoal);
  padding-bottom: 0; /* grid goes flush to bottom edge */
}

.team .section-header__lead {
  color: rgba(255, 255, 255, 0.45);
}

/* Grid — mobile: 2 cols, tablet+: 3 cols → perfect 3×3 */
.team__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0 !important;
  margin-top: var(--space-10);
  width: 100%;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

@media (min-width: 640px) {
  .team-card { width: 33.3333%; }
}

/* Individual card — always portrait, face always in frame */
.team-card {
  position: relative;
  overflow: hidden;
  width: 33.3333%;          /* 3 col — 9 staff grid */
  aspect-ratio: 3 / 4;
  height: auto;
  border-radius: 0;
  margin: 0;
  padding: 0;
  cursor: default;
  display: block;
  box-sizing: border-box;
  transition: opacity var(--duration-base) var(--ease-out);
}

/* Featured — uniform size, same as all other cards */
.team-card--featured {
  grid-column: span 1;
}

/* Dim siblings when any card is hovered */
.team__grid:has(.team-card:hover) .team-card:not(:hover) {
  opacity: 0.55;
}

/* Photo layer — grayscale by default */
.team-card__photo {
  position: absolute;
  inset: 0;
  background: #111;          /* kills any white pixel gaps / image edge artifacts */
  filter: grayscale(100%);
  transition: filter var(--duration-slow) var(--ease-out);
}

.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.team-card:hover .team-card__photo {
  filter: grayscale(0%);
}

/* Bottom gradient overlay */
.team-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.80) 0%,
    rgba(0, 0, 0, 0.20) 45%,
    transparent 75%
  );
  z-index: 1;
  transition: opacity var(--duration-base) var(--ease-out);
}

.team-card:hover .team-card__overlay {
  opacity: 0.9;
}

/* Info block — name always visible, role slides up on hover */
.team-card__info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-6) var(--space-6);
  z-index: 2;
}

.team-card__name {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.4vw, 1.5rem);
  font-weight: 400;
  color: var(--white);
  letter-spacing: -0.01em;
  line-height: var(--lh-snug);
  margin-bottom: var(--space-1);
  transform: translateY(0);
  transition: transform var(--duration-base) var(--ease-out);
}

.team-card:hover .team-card__name {
  transform: translateY(-4px);
}

.team-card__role {
  font-size: clamp(0.6rem, 0.72vw, 0.6875rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--tiffany);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--duration-base) var(--ease-out),
              transform var(--duration-base) var(--ease-out);
  hyphens: none;
  word-break: keep-all;
  overflow-wrap: normal;
}

.team-card:hover .team-card__role {
  opacity: 1;
  transform: translateY(-4px);
}

/* ============================================================
   QUOTE / TESTIMONIAL SECTION
   ============================================================ */
.quote-section {
  background: var(--cream);
  padding-block: var(--section-lg);
}

.quote-wrap {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
}

.quote-mark {
  font-family: var(--font-serif);
  font-size: clamp(4rem, 10vw, 8rem);
  line-height: 0.6;
  color: var(--tiffany);
  opacity: 0.6;
  user-select: none;
  margin-bottom: var(--space-2);
}

.quote-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.375rem, 2.5vw, 2rem);
  font-weight: 400;
  line-height: var(--lh-snug);
  letter-spacing: -0.02em;
  color: var(--charcoal);
}

.quote-footer {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  margin-top: var(--space-4);
}

.quote-line {
  display: block;
  width: 2.5rem;
  height: 2px;
  background: var(--tiffany);
  border-radius: 1px;
  flex-shrink: 0;
}

.quote-author {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--charcoal);
  letter-spacing: -0.01em;
  margin-bottom: 0.125rem;
}

.quote-role {
  font-size: var(--text-2xs);
  font-weight: 500;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--text-light);
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
/* ============================================================
   CONTACT — editorial full-bleed redesign
   ============================================================ */

.contact {
  background: var(--charcoal);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

/* Tiffany aurora in top-left */
.contact::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -10%;
  width: clamp(400px, 55vw, 800px);
  height: clamp(400px, 55vw, 800px);
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(129, 216, 208, 0.09) 0%,
    transparent 65%);
  pointer-events: none;
}

/* Editorial top stripe — headline */
.contact__top {
  padding-top: clamp(var(--space-16), 8vw, var(--space-24));
  padding-bottom: clamp(var(--space-10), 5vw, var(--space-16));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.contact__top-inner {
  max-width: 700px;
}

.contact__top .label {
  color: var(--tiffany);
  margin-bottom: var(--space-6);
}

.contact__headline {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 7vw, 7rem);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: var(--space-5);
}

.contact__headline em {
  font-style: italic;
  color: var(--tiffany);
}

.contact__tagline {
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  color: rgba(255, 255, 255, 0.50);
  line-height: 1.7;
  max-width: 48ch;
}

/* Body: two columns */
.contact__body {
  padding-top: clamp(var(--space-10), 5vw, var(--space-16));
  padding-bottom: clamp(var(--space-16), 8vw, var(--space-24));
}

.contact__cols {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

@media (min-width: 768px) {
  .contact__cols {
    flex-direction: row;
    align-items: flex-start;
    gap: clamp(var(--space-10), 6vw, var(--space-16));
  }

  .contact__info-col { flex: 1; }
  .contact__divider {
    width: 1px;
    min-height: 320px;
    background: rgba(255, 255, 255, 0.10);
    flex-shrink: 0;
    align-self: stretch;
  }
  .contact__cta-col { flex: 1; }
}

.contact__divider {
  display: none;
}

@media (min-width: 768px) {
  .contact__divider { display: block; }
}

/* Info column */
.contact__info-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.contact__info-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.contact__block-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-2xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tiffany);
}

.contact__address {
  font-style: normal;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
}

/* Hours */
.contact__hours {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.contact__hours-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-4);
  padding-block: var(--space-3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: var(--text-xs);
}

.contact__hours-row dt {
  font-weight: 500;
  color: rgba(255,255,255,0.70);
  min-width: 3.5rem;
  flex-shrink: 0;
}

.contact__hours-row dd {
  color: rgba(255,255,255,0.45);
  text-align: right;
}

.contact__hours-row--closed dt,
.contact__hours-row--closed dd {
  color: rgba(255,255,255,0.22);
}

/* CTA column */
.contact__cta-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* ── Terminanfrage CTA card in contact section ── */
.termin-cta-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  background: rgba(91,192,190,0.08);
  border: 1.5px solid rgba(91,192,190,0.30);
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  cursor: pointer;
}
.termin-cta-card:hover {
  background: rgba(91,192,190,0.14);
  border-color: rgba(91,192,190,0.55);
  transform: translateY(-2px);
}
.termin-cta-card__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(91,192,190,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tiffany);
}
.termin-cta-card__body {
  flex: 1;
}
.termin-cta-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 2px;
}
.termin-cta-card__sub {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
}
.termin-cta-card__arrow {
  flex-shrink: 0;
  color: var(--tiffany);
  opacity: 0.7;
  transition: transform 0.2s, opacity 0.2s;
}
.termin-cta-card:hover .termin-cta-card__arrow {
  transform: translateX(4px);
  opacity: 1;
}
[data-theme="light"] .termin-cta-card__title { color: #1a1a1a; }
[data-theme="light"] .termin-cta-card__sub   { color: #555; }

.contact__cta-eyebrow {
  font-size: var(--text-2xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.40);
  margin-bottom: var(--space-1);
}

/* Big editorial phone number */
.contact__phone-number {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--white);
  line-height: 1.05;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

.contact__phone-number:hover {
  color: var(--tiffany);
}

.contact__phone-alt {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.35);
}

.contact__phone-alt a {
  color: rgba(255,255,255,0.55);
  font-weight: 500;
  transition: color var(--duration-fast) var(--ease-out);
}

.contact__phone-alt a:hover {
  color: var(--tiffany);
}

.contact__cta-divider {
  width: 48px;
  height: 1px;
  background: rgba(255,255,255,0.15);
  margin-block: var(--space-2);
}

.contact__email {
  display: inline-block;
  font-size: clamp(0.8rem, 1.1vw, 0.95rem);
  color: rgba(255,255,255,0.50);
  word-break: break-all;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

.contact__email:hover {
  color: var(--apple-green);
  text-shadow: 0 0 14px rgba(141, 182, 0, 0.30);
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

/* Override btn-outline for dark bg context */
.contact__actions .btn-outline {
  border-color: rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.70);
}

.contact__actions .btn-outline:hover {
  border-color: var(--tiffany);
  color: var(--tiffany);
  background: transparent;
}

/* ============================================================
   SITE FOOTER
   ============================================================ */
.site-footer {
  background: var(--charcoal);
  padding-top: var(--space-12);
  padding-bottom: var(--space-10);
}

.site-footer__top {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  padding-bottom: var(--space-8);
}

@media (min-width: 640px) {
  .site-footer__top {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  text-decoration: none;
}

.site-footer__brand-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: 1.2;
}

.site-footer__brand-sub {
  font-size: var(--text-2xs);
  font-weight: 500;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--tiffany);
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  align-items: center;
}

.site-footer__link {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--duration-fast) var(--ease-out);
}

.site-footer__link:hover {
  color: var(--white);
}

.site-footer__divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
  margin-bottom: var(--space-8);
}

.site-footer__bottom {
  text-align: center;
}

.site-footer__copy {
  font-size: var(--text-2xs);
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.01em;
}

/* ============================================================
   SERVICE SUBPAGE TEMPLATE
   ============================================================ */

/* ============================================================
   SUBPAGE HERO — editorial premium redesign
   ============================================================ */

.service-hero {
  position: relative;
  height: 62vh;
  min-height: 520px;
  max-height: 700px;
  background: var(--charcoal);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

/* Dark overlay so text stays legible over any photo */
.service-hero--has-img::before {
  background: radial-gradient(circle,
    rgba(129, 216, 208, 0.07) 0%,
    transparent 60%) !important; /* softer orb when photo is present */
}
.service-hero--has-img::after {
  height: 75%;
  background: linear-gradient(
    to top,
    rgba(20, 24, 26, 0.88) 0%,
    rgba(20, 24, 26, 0.45) 55%,
    transparent 100%
  ) !important;
}

/* Tiffany aurora orb — top right */
.service-hero::before {
  content: '';
  position: absolute;
  top: -15%;
  right: -10%;
  width: clamp(360px, 52vw, 720px);
  height: clamp(360px, 52vw, 720px);
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(129, 216, 208, 0.13) 0%,
    rgba(129, 216, 208, 0.05) 40%,
    transparent 70%);
  pointer-events: none;
  animation: subHeroOrb 16s ease-in-out infinite alternate;
}

@keyframes subHeroOrb {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-4%, 6%) scale(1.08); }
}

/* Bottom fade to content */
.service-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(36, 36, 36, 0.55) 0%, transparent 100%);
  pointer-events: none;
}

/* Film grain overlay — injected by JS */
.service-hero__grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

/* Large editorial background numeral — via data-hero-num */
.service-hero__bg-num {
  position: absolute;
  bottom: -0.15em;
  right: clamp(-0.1em, 3vw, 0.1em);
  font-family: var(--font-serif);
  font-size: clamp(14rem, 22vw, 24rem);
  font-weight: 400;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.06);
  letter-spacing: -0.04em;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

/* Horizontal editorial rule */
.service-hero__rule {
  display: block;
  width: 48px;
  height: 1px;
  background: var(--tiffany);
  margin-bottom: var(--space-6);
  transform-origin: left center;
}

.service-hero__inner {
  position: relative;
  z-index: 3;
  width: 100%;
  padding-bottom: clamp(var(--space-12), 6vh, var(--space-20));
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.breadcrumb__item {
  font-size: var(--text-2xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.30);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

.breadcrumb__item:hover {
  color: var(--tiffany);
}

.breadcrumb__sep {
  color: rgba(255, 255, 255, 0.15);
  font-size: 0.55rem;
}

.breadcrumb__item--current {
  color: rgba(255, 255, 255, 0.60);
  pointer-events: none;
}

/* Label pill */
.service-hero .label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-2xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tiffany);
  margin-bottom: var(--space-5);
}

.service-hero .label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--tiffany);
}

/* Hero title — large editorial serif */
.service-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw + 0.5rem, 5.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--white);
  margin: 0 0 var(--space-5);
  max-width: 18ch;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

/* Subtitle — light, wide-tracked */
.service-hero__sub {
  font-size: clamp(0.8rem, 1.2vw, 0.95rem);
  font-weight: 400;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.50);
  max-width: 54ch;
  text-transform: none;
  letter-spacing: 0;
}

/* — Prose content — */
.service-content {
  background: var(--cream);
  padding-block: var(--section-md);
}

.service-prose {
  max-width: 760px;
  margin-inline: auto;
}

.service-prose h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--charcoal);
  margin-top: var(--space-12);
  margin-bottom: var(--space-6);
  line-height: var(--lh-snug);
}

.service-prose h2:first-child {
  margin-top: 0;
}

.service-prose p {
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  font-weight: 400;
  color: var(--text);
  line-height: 1.85;
  margin-bottom: var(--space-5);
}

.service-prose p:last-child {
  margin-bottom: 0;
}

.service-prose ul,
.service-prose ol {
  padding-left: 0;
  list-style: none;
  margin-bottom: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.service-prose li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: clamp(1rem, 1.25vw, 1.0625rem);
  color: var(--text);
  line-height: 1.7;
}

.service-prose li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--tiffany);
  flex-shrink: 0;
  margin-top: 0.55em;
}

.service-prose strong {
  font-weight: 600;
  color: var(--charcoal);
}

/* Intro lead */
.service-prose__lead {
  font-size: clamp(1.125rem, 1.75vw, 1.375rem) !important;
  font-weight: 300 !important;
  color: var(--text-light) !important;
  line-height: 1.75 !important;
  margin-bottom: var(--space-10) !important;
}

/* — Related services — */
.related-services {
  background: var(--white);
  padding-block: var(--section-sm);
}

.related-services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  margin-top: clamp(2rem, 4vw, 3rem);
}

@media (min-width: 600px) {
  .related-services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .related-services__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* — CTA band — */
.service-cta {
  background: var(--charcoal);
  padding-block: clamp(3rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
}

.service-cta::before {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 50vw;
  height: 50vw;
  max-width: 500px;
  border-radius: var(--radius-full);
  background: radial-gradient(circle, rgba(91,192,190,0.10) 0%, transparent 65%);
  pointer-events: none;
}

.service-cta__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .service-cta__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.service-cta__text {
  font-family: var(--font-serif);
  font-size: clamp(1.375rem, 2.5vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: var(--lh-snug);
}

.service-cta__text em {
  font-style: italic;
  color: var(--tiffany);
}

.service-cta__actions {
  display: flex;
  gap: var(--space-4);
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: center;
}

/* ============================================================
   JOB CARD — karriere.html
   ============================================================ */
.job-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(45, 45, 45, 0.08);
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.job-card__header {
  background: var(--charcoal);
  padding: 3rem clamp(2rem, 5vw, 4rem);
}

.job-card__title {
  font-family: var(--font-serif);
  font-size: clamp(1.375rem, 2.8vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: var(--lh-snug);
  margin-bottom: 1.5rem;
}

.job-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.job-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: var(--text-2xs);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  padding: 0.4rem 1rem;
}

.job-card__body {
  padding: 3rem clamp(2rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.job-card__section {
  border-top: 1px solid rgba(45, 45, 45, 0.08);
  padding-top: 3rem;
}

.job-card__section:first-child {
  border-top: none;
  padding-top: 0;
}

.job-card__section-title {
  font-size: var(--text-2xs);
  font-weight: 600;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--tiffany);
  margin-bottom: 1.25rem;
}

.job-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.job-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  font-size: clamp(0.9375rem, 1.25vw, 1.0625rem);
  color: var(--text);
  line-height: 1.8;
}

.job-card__list li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--tiffany);
  flex-shrink: 0;
  margin-top: 0.5em;
}

/* Specialty tags */
.job-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.job-tag {
  font-size: clamp(0.75rem, 0.9vw, 0.875rem);
  font-weight: 500;
  color: var(--charcoal);
  background: rgba(91, 192, 190, 0.10);
  border: 1px solid rgba(91, 192, 190, 0.25);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-5);
}

/* Application grid */
.job-apply-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

@media (min-width: 600px) {
  .job-apply-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.job-apply-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.job-apply-item__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(91, 192, 190, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tiffany);
  flex-shrink: 0;
}

.job-apply-item__label {
  font-size: var(--text-2xs);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: var(--space-1);
}

.job-apply-item__value {
  font-size: clamp(0.875rem, 1.2vw, 1rem);
  font-weight: 500;
  color: var(--charcoal);
  text-decoration: none;
  line-height: 1.4;
}

a.job-apply-item__value:hover {
  color: var(--tiffany);
}

/* ============================================================
   LEGAL PLACEHOLDER — impressum.html / datenschutz.html
   ============================================================ */
.legal-placeholder {
  background: rgba(91, 192, 190, 0.06);
  border: 1px dashed rgba(91, 192, 190, 0.35);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-8), 4vw, var(--space-12));
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.legal-placeholder__icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: rgba(91, 192, 190, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tiffany);
}

.legal-placeholder__title {
  font-family: var(--font-serif);
  font-size: clamp(1.125rem, 2vw, 1.5rem) !important;
  font-weight: 400 !important;
  color: var(--charcoal) !important;
  margin: 0 !important;
}

.legal-placeholder__text {
  font-size: clamp(1rem, 1.25vw, 1.125rem) !important;
  color: var(--text) !important;
  margin: 0 !important;
}

.legal-placeholder__text em {
  font-style: italic;
  color: var(--tiffany) !important;
}

.legal-placeholder__note {
  font-size: var(--text-xs) !important;
  color: var(--text-light) !important;
  max-width: 480px;
  margin: 0 !important;
  line-height: 1.65 !important;
}

/* ============================================================
   COOKIE CONSENT BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: calc(var(--z-nav) + 20);
  transform: translateY(110%);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.cookie-banner--visible {
  transform: translateY(0);
  pointer-events: auto;
}

.cookie-banner__inner {
  max-width: 960px;
  margin: 0 auto;
  background: var(--charcoal);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: var(--space-5) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
  box-shadow: 0 -4px 40px rgba(0, 0, 0, 0.18), 0 -1px 0 rgba(255,255,255,0.04);
}

.cookie-banner__text {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
  margin: 0;
  flex: 1;
  min-width: 200px;
}

.cookie-banner__link {
  color: var(--tiffany);
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}

.cookie-banner__link:hover {
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  flex-shrink: 0;
}

.cookie-banner__dismiss {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  font-size: var(--text-2xs);
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  transition: color var(--duration-fast) var(--ease-out);
  white-space: nowrap;
}

.cookie-banner__dismiss:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* ============================================================
   PRELOADER — brand text + progress bar
   ============================================================ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.preloader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
}

.preloader__name {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--white);
  opacity: 0.9;
}

.preloader__bar {
  width: 200px;
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.preloader__fill {
  height: 100%;
  background: var(--tiffany);
  border-radius: var(--radius-full);
  transform-origin: left center;
}

/* ============================================================
   SCROLL-TO-TOP BUTTON
   ============================================================ */
.scroll-top {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: calc(var(--z-nav) - 1);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--tiffany);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(91, 192, 190, 0.35);
  transition: background var(--duration-fast) var(--ease-out),
              box-shadow  var(--duration-fast) var(--ease-out);
  /* opacity/scale handled by GSAP */
}

.scroll-top:hover {
  background: var(--tiffany-dark, #4aadab);
  box-shadow: 0 6px 28px rgba(91, 192, 190, 0.45);
}

.scroll-top:focus-visible {
  outline: 2px solid var(--tiffany);
  outline-offset: 3px;
}

@media (max-width: 599px) {
  .scroll-top {
    bottom: var(--space-4);
    right:  var(--space-4);
    width:  44px;
    height: 44px;
  }
}

/* ============================================================
   ABOUT CALLOUTS — Praxislabor + Karriere
   ============================================================ */
.about__callouts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  margin-top: var(--space-10);
}

@media (max-width: 599px) {
  .about__callouts { grid-template-columns: 1fr; }
}

.about__callout {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(45,45,45,0.06);
  overflow: hidden;
  transition: box-shadow var(--duration-base) var(--ease-out),
              border-color var(--duration-base) var(--ease-out);
}

.about__callout:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
  border-color: rgba(91,192,190,0.2);
}

/* ── Accordion trigger button (always visible header) ── */
.about__callout-trigger {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  width: 100%;
  padding: var(--space-6);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background var(--duration-fast) var(--ease-out);
}

.about__callout-trigger:hover {
  background: rgba(91,192,190,0.04);
}

.about__callout-summary {
  flex: 1;
  min-width: 0;
}

/* + / × toggle icon */
.about__callout-plus {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(91,192,190,0.12);
  color: var(--tiffany);
  font-size: 1.25rem;
  line-height: 28px;
  text-align: center;
  font-weight: 300;
  transition: transform 0.35s var(--ease-out), background 0.2s;
  margin-top: 2px;
}

.about__callout--open .about__callout-plus {
  transform: rotate(45deg);
  background: var(--tiffany);
  color: var(--white);
}

/* ── Collapsible body ── */
.about__callout-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.about__callout--open .about__callout-body {
  max-height: 900px; /* large enough to never clip content */
}

.about__callout-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.about__callout-detail {
  padding: var(--space-5) var(--space-6) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.about__callout-detail p {
  font-size: var(--text-xs);
  color: var(--text-light);
  line-height: 1.7;
}

.about__callout-detail ul {
  padding-left: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.about__callout-detail li {
  font-size: var(--text-xs);
  color: var(--text-light);
  line-height: 1.6;
}

.about__callout-detail li::marker {
  color: var(--tiffany);
}

.about__callout-cta {
  margin-top: var(--space-2);
  align-self: flex-start;
}

/* Original shared styles */
.about__callout-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(91,192,190,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tiffany);
}

.about__callout-title {
  font-size: clamp(0.9375rem, 1.25vw, 1.0625rem);
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: var(--space-2);
}

.about__callout-text {
  font-size: var(--text-xs);
  color: var(--text-light);
  line-height: 1.65;
}

.about__callout-link {
  display: inline-block;
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--tiffany);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

.about__callout-link:hover { color: var(--tiffany-dark); }

/* ============================================================
   VIDEO TEASER
   ============================================================ */
.video-teaser {
  position: relative;
  background: var(--cream);
  overflow: hidden;
  padding: clamp(5rem, 10vw, 9rem) 0;
  text-align: center;
}

.video-teaser::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91,192,190,0.07) 0%, transparent 65%);
  pointer-events: none;
}

/* ── Framed thumbnail with centred play button ── */
.video-teaser__thumb {
  position: relative;
  display: block;
  width: min(720px, 88vw);
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  border: 1.5px solid rgba(0,0,0,0.10);
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
  transition: transform var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
}

.video-teaser__thumb:hover {
  transform: scale(1.02);
  box-shadow: 0 28px 70px rgba(0,0,0,0.55), 0 0 0 1px rgba(129,216,208,0.25);
}

.video-teaser__thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--duration-slow) var(--ease-out);
}

.video-teaser__thumb:hover .video-teaser__thumb-img {
  transform: scale(1.04);
}

/* Play circle centred over the thumbnail */
.video-teaser__thumb .video-teaser__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255,255,255,0.30);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--duration-base) var(--ease-out),
              transform  var(--duration-base) var(--ease-out);
  pointer-events: none;
}

.video-teaser__thumb:hover .video-teaser__play {
  background: var(--tiffany);
  border-color: var(--tiffany);
  transform: scale(1.10);
}

.video-teaser__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-7);
}

.video-teaser__play {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(255,255,255,0.18);
  color: var(--white);
  cursor: pointer;
  transition: background var(--duration-base) var(--ease-out),
              transform  var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
}

.video-teaser__play:hover {
  background: var(--tiffany);
  border-color: var(--tiffany);
  transform: scale(1.08);
  box-shadow: 0 0 50px rgba(91,192,190,0.4);
}

/* ── VIDEO LIGHTBOX MODAL ─────────────────────────────────── */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.video-modal[hidden] { display: none; }

.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 14, 0.92);
  cursor: pointer;
  animation: modalFadeIn 0.25s var(--ease-out);
}

.video-modal__box {
  position: relative;
  width: 100%;
  max-width: 960px;
  background: #000;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
  animation: modalSlideUp 0.3s var(--ease-out);
  z-index: 1;
}

.video-modal__video {
  display: block;
  width: 100%;
  max-height: 80vh;
  outline: none;
}

.video-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-full);
  color: var(--white);
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out);
}

.video-modal__close:hover {
  background: rgba(255,255,255,0.15);
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

.video-teaser__label {
  font-size: var(--text-2xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(36,36,36,0.45);
}

/* ============================================================
   TESTIMONIAL CAROUSEL
   ============================================================ */
.testimonials { background: var(--cream); }

.t-carousel {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.t-carousel__stage {
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-10);
}

.t-carousel__slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
  pointer-events: none;
}

.t-carousel__slide--active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
  width: 100%;                /* fill stage so centering works */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.t-carousel__quote-mark {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  line-height: 0.7;
  color: var(--tiffany);
  display: inline;
  vertical-align: -0.18em;
  user-select: none;
  margin-right: 0.06em;
}

.t-carousel__quote-mark--close {
  margin-left: 0.06em;
  margin-right: 0;
}

.t-carousel__quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.25rem, 2.5vw, 1.875rem);
  color: var(--charcoal);
  line-height: 1.45;
  max-width: 680px;
  width: 100%;
  margin-inline: auto;
  margin-bottom: var(--space-6);
  text-align: center;
  padding: 0;         /* kill any inherited left-padding */
  border: none;       /* kill any inherited left-border */
}

.t-carousel__author {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-1);
  width: 100%;
}

.t-carousel__name {
  font-size: clamp(0.875rem, 1.1vw, 1rem);
  font-weight: 600;
  color: var(--charcoal);
  letter-spacing: 0.01em;
}

.t-carousel__role {
  font-size: var(--text-2xs);
  color: var(--text-light);
  letter-spacing: 0.03em;
}

/* People navigation */
.t-carousel__people {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: var(--space-5);
  flex-wrap: wrap;
}

.t-carousel__person {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  border-radius: var(--radius-md);
  opacity: 0.4;
  transition: opacity var(--duration-base) var(--ease-out);
}

.t-carousel__person--active,
.t-carousel__person:hover { opacity: 1; }

.t-carousel__avatar {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-full);
  border: 3px solid transparent;
  overflow: hidden;
  transition: border-color var(--duration-fast) var(--ease-out),
              transform     var(--duration-fast) var(--ease-out);
}

.t-carousel__person--active .t-carousel__avatar {
  border-color: var(--tiffany);
  transform: scale(1.1);
}

.t-carousel__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: inherit;
}

/* Natalie Schulz — no photo placeholder */
.team-card__photo--placeholder {
  background: linear-gradient(160deg, #3a3a3a 0%, #1e1e1e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-card__initials {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.04em;
  user-select: none;
}

.t-carousel__person-name {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.t-carousel__person--active .t-carousel__person-name {
  color: var(--tiffany);
  font-weight: 600;
}

/* ============================================================
   PHASE 1 PREMIUM UPGRADES — Animation, Cursor, Stats, Marquee
   ============================================================ */

/* ------------------------------------------------------------
   WORD-MASK — hero title line-reveal animation
   ------------------------------------------------------------ */
.word-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  line-height: inherit;
}

.word-inner {
  display: inline-block;
  will-change: transform;
}

/* ------------------------------------------------------------
   CUSTOM MAGNETIC CURSOR — desktop only
   ------------------------------------------------------------ */
.custom-cursor,
.custom-cursor * {
  cursor: none !important;
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  /* ⚠️  NO transform here — GSAP owns `transform` for x/y positioning.
     Centering is done via xPercent/yPercent in JS.
     Scale states use the independent CSS `scale` property (not `transform`)
     so they never conflict with GSAP's inline transform. */
  will-change: transform;
  transition: scale 0.18s var(--ease-out), opacity 0.18s,
              border-color 0.25s, background 0.25s;
}

.cursor-dot {
  width: 7px;
  height: 7px;
  background: var(--tiffany);
  box-shadow: 0 0 14px rgba(129, 216, 208, 0.9);
}

.cursor-ring {
  width: 38px;
  height: 38px;
  border: 1.5px solid rgba(129, 216, 208, 0.40);
  background: transparent;
}

/* Use CSS `scale` property — independent of `transform`, never fights GSAP */
.cursor-dot--hover {
  scale: 2;
}
.cursor-ring--hover {
  scale: 1.5;
  border-color: rgba(129, 216, 208, 0.65);
  background: rgba(129, 216, 208, 0.06);
}

.cursor-dot--click {
  scale: 0.6;
}
.cursor-ring--click {
  scale: 0.85;
  border-color: rgba(129, 216, 208, 0.9);
}

/* ------------------------------------------------------------
   STATS STRIP — 3 key credentials between About and Services
   ------------------------------------------------------------ */
.stats-strip {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0;
  padding: clamp(5rem, 12vh, 9rem) var(--container-pad);
  position: relative;
  overflow: hidden;        /* clips the oversized bg child */
  background: #e8e8e8;     /* light gray fallback */
}

/* Real child element — JS translateY drives true parallax */
.stats-strip__bg {
  position: absolute;
  top: -160px;             /* fixed pixel overshoot top */
  bottom: -160px;          /* fixed pixel overshoot bottom */
  left: 0;
  right: 0;
  z-index: 0;
  background-image: url('https://i.imgur.com/9ccPbjX.png');
  background-size: cover;
  background-position: center center;
  will-change: transform;
  transform: translateY(0); /* initial — JS overrides immediately */
}

/* Light wash overlay — chair photo shows as desaturated/gray tone */
.stats-strip__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(232, 232, 232, 0.62);
}

/* Lift grid content above the bg */
.stats-strip__item,
.stats-strip__separator {
  position: relative;
  z-index: 1;
}

@media (max-width: 640px) {
  .stats-strip {
    grid-template-columns: 1fr;
    gap: var(--space-8);
    text-align: center;
    padding-block: clamp(3.5rem, 10vh, 6rem);
  }
  .stats-strip__separator { display: none; }
}

.stats-strip__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding-inline: var(--space-8);
  text-align: center;
}

.stats-strip__separator {
  width: 1px;
  height: 60px;
  background: rgba(36,36,36,0.20);
}

.stats-strip__number {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 4vw, 3.75rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--charcoal);
}

.stats-strip__label {
  font-size: var(--text-2xs);
  font-weight: 500;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: rgba(36,36,36,0.60);
  max-width: 18ch;
}

/* ------------------------------------------------------------
   MARQUEE TICKER — editorial luxury feel between sections
   ------------------------------------------------------------ */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--cream);
  padding-block: var(--space-5);
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: var(--space-10);
  width: max-content;
  animation: marqueeScroll 40s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.marquee__item {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(0.875rem, 1.2vw, 1.0625rem);
  font-weight: 400;
  color: var(--text-light);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.marquee__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--tiffany);
  flex-shrink: 0;
  opacity: 0.7;
}

/* Reverse scroll direction */
.marquee--reverse .marquee__track {
  animation-direction: reverse;
}

/* Light gray variant — used around the stats-strip parallax */
.marquee--light {
  background: #e8e8e8;
  border-color: rgba(36,36,36,0.10);
}
.marquee--light .marquee__item {
  color: rgba(36,36,36,0.55);
}

/* ------------------------------------------------------------
   SERVICE CARD — premium hover: tiffany accent border
   ------------------------------------------------------------ */
.service-card {
  position: relative;
}

.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1.5px solid transparent;
  pointer-events: none;
  transition: border-color var(--duration-slow) var(--ease-out);
}

.service-card:hover::after {
  border-color: rgba(129, 216, 208, 0.35);
}

/* Service card link arrow slide */
.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  transition: gap var(--duration-base) var(--ease-out),
              color var(--duration-base) var(--ease-out);
}

.service-card:hover .service-card__link {
  gap: 0.55em;
  color: var(--tiffany-dark);
}

/* ------------------------------------------------------------
   TEAM CARD — info glide-up + sibling dim on hover
   ------------------------------------------------------------ */
.team-card__photo {
  transition: filter 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

/* When photos are real images (later), reveal color from B&W */
.team-card:has(img) .team-card__photo {
  filter: grayscale(80%) brightness(0.92);
}

.team-card:hover:has(img) .team-card__photo {
  filter: grayscale(0%) brightness(1.04);
}

/* Siblings dim when one card is hovered */
.team__grid:has(.team-card:hover) .team-card:not(:hover) {
  opacity: 0.55;
  transition: opacity 0.45s var(--ease-out);
}

.team__grid .team-card {
  transition: opacity 0.45s var(--ease-out);
}

/* Name + role slide up elegantly on hover */
.team-card__info {
  transform: translateY(0);
  transition: transform 0.45s var(--ease-out);
}

.team-card:hover .team-card__info {
  transform: translateY(-6px);
}

/* Tiffany underline accent on hovered card name */
.team-card__name::after {
  content: '';
  display: block;
  width: 0;
  height: 1.5px;
  background: var(--tiffany);
  margin-top: 4px;
  transition: width 0.4s var(--ease-out);
}

.team-card:hover .team-card__name::after {
  width: 2rem;
}

/* Apple-green underline on Dr. Jansen's card — always visible, signals lead */
.team-card--featured .team-card__name::after {
  background: var(--apple-green);
  width: 40px;
}

/* ------------------------------------------------------------
   SECTION LABELS — more editorial + apple tooth icon
   ------------------------------------------------------------ */
.label {
  letter-spacing: 0.14em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Tooth logo before every section label */
.label::before {
  content: '';
  display: inline-block;
  width: 44px;
  height: 44px;
  background-image: url('https://i.imgur.com/vDj0vDS.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
  opacity: 0.85;
}

/* ------------------------------------------------------------
   ABOUT SECTION — credential card tiffany border on reveal
   ------------------------------------------------------------ */
.about__credential {
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.about__media:hover .about__credential {
  transform: translateY(-4px) rotate(0deg);
  box-shadow: 0 16px 40px rgba(36, 36, 36, 0.15);
}

/* ------------------------------------------------------------
   FOCUS BADGE — edge illumination on hover
   ------------------------------------------------------------ */
.focus-badge {
  transition: box-shadow 0.4s var(--ease-out), transform 0.4s var(--ease-out), opacity 0.4s var(--ease-out);
}

.focus-badge:hover {
  box-shadow: 0 0 0 2px rgba(129, 216, 208, 0.4),
              0 12px 40px rgba(0,0,0,0.2);
}

/* Service card editorial number */
.service-card__number {
  display: block;
  font-family: var(--font-serif);
  font-size: var(--text-2xs);
  font-weight: 400;
  color: var(--text-xlight);
  letter-spacing: 0.08em;
  margin-bottom: var(--space-2);
  transition: color var(--duration-base) var(--ease-out);
}
.service-card:hover .service-card__number {
  color: var(--tiffany);
}

/* Hero grain texture overlay for cinematic depth */
.hero__grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ============================================================
   SERVICE TILES — 3×3 dark grid below Schwerpunkte
   ============================================================ */
.service-tiles {
  background: var(--charcoal);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-bottom: var(--space-16);
}
.service-tiles__label {
  color: rgba(129,216,208,0.7);
  padding-top: var(--space-10);
  padding-bottom: var(--space-8);
  padding-left: var(--container-pad);  /* match page margin so it lines up with grid content */
  display: flex;
  align-items: center;
}
.service-tiles__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.06);
}
@media (max-width: 640px) {
  .service-tiles__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 380px) {
  .service-tiles__grid { grid-template-columns: 1fr; }
}
.service-tile {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-7) var(--space-8);
  background: var(--charcoal);
  text-decoration: none;
  transition: background 0.3s var(--ease-out);
}
.service-tile:hover { background: rgba(129,216,208,0.06); }
.service-tile__num {
  font-family: var(--font-serif);
  font-size: var(--text-2xs);
  color: var(--tiffany);
  opacity: 0.5;
  flex-shrink: 0;
  width: 1.5rem;
}
.service-tile__name {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.4vw, 1.375rem);
  color: var(--white);
  font-weight: 400;
  flex: 1;
}
.service-tile__arrow {
  font-size: 1rem;
  color: rgba(255,255,255,0.2);
  transition: color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  flex-shrink: 0;
}
.service-tile:hover .service-tile__arrow {
  color: var(--tiffany);
  transform: translateX(4px);
}

/* ============================================================
   SERVICES CAROUSEL — full-width, 3-up on desktop
   ============================================================ */
.services__carousel-wrap {
  position: relative;
  width: 100%;
  padding: 0 clamp(1rem, 4vw, 3rem);
  box-sizing: border-box;
  margin-top: var(--space-12);
}

.services__carousel {
  overflow: hidden;
}

.services__track {
  display: flex;
  gap: var(--space-6);
  will-change: transform;
}

/* Desktop ≥900px: 3 per view */
.services__track .service-card {
  flex: 0 0 calc(33.333% - 16px);
  min-width: 0;
}

/* Small tablet 540–899px: 2 per view */
@media (max-width: 899px) {
  .services__track .service-card {
    flex: 0 0 calc(50% - 12px);
  }
}

/* Mobile <540px: 1 per view */
@media (max-width: 539px) {
  .services__track .service-card {
    flex: 0 0 85%;
  }
}

/* Drag cursor feedback */
.services__track {
  cursor: grab;
}

.services__track:active {
  cursor: grabbing;
}

/* Controls bar */
.services__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  margin-top: var(--space-10);
}

.services__nav-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--charcoal);
  background: var(--charcoal);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--duration-base) var(--ease-out),
              border-color var(--duration-base) var(--ease-out),
              transform var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
}

.services__nav-btn:hover {
  background: var(--tiffany);
  border-color: var(--tiffany);
  color: var(--charcoal);
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(129, 216, 208, 0.35);
}

.services__nav-btn:active {
  transform: scale(0.95);
}

.services__nav-btn:disabled {
  opacity: 0.35;
  pointer-events: none;
}

.services__dots {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.services__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--duration-base) var(--ease-out),
              transform var(--duration-base) var(--ease-out);
}

.services__dot--active {
  background: var(--charcoal);
  transform: scale(1.4);
}

/* ============================================================
   SECTION PARALLAX BACKGROUNDS — placeholder until real images
   ============================================================ */

/* Both sections need relative + overflow:hidden for bg parallax */
.services,
.team {
  position: relative;
  overflow: hidden;
}

.section-parallax-bg {
  position: absolute;
  inset: -30%;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}

.section-parallax-bg--dots {
  background-image:
    radial-gradient(circle, rgba(129, 216, 208, 0.18) 1.5px, transparent 1.5px),
    radial-gradient(ellipse 60% 40% at 70% 30%, rgba(129, 216, 208, 0.08) 0%, transparent 70%),
    linear-gradient(160deg, rgba(246,241,233,0.95) 0%, rgba(237,232,223,0.98) 100%);
  background-size: 40px 40px, 100% 100%, 100% 100%;
}

.section-parallax-bg--team {
  background-image:
    radial-gradient(circle, rgba(129, 216, 208, 0.09) 1.5px, transparent 1.5px),
    radial-gradient(ellipse 50% 60% at 30% 60%, rgba(129, 216, 208, 0.12) 0%, transparent 65%),
    linear-gradient(160deg, #2e2e2e 0%, #1a1a1a 100%);
  background-size: 40px 40px, 100% 100%, 100% 100%;
}

/* Make sure container content stays above parallax bg */
.services .container,
.team .container {
  position: relative;
  z-index: 1;
}

/* ============================================================
   MOBILE RESPONSIVE POLISH — 375px / ≤ 640px
   ============================================================ */

/* Focus badge — compact on mobile, just below the nav */
@media (max-width: 767px) {
  .focus-badge {
    top: 68px;
    bottom: auto;
    left: 0;
    right: auto;
    transform: none !important;
  }
  .focus-badge__link {
    width: 44px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
  }
  .focus-badge__img {
    width: 44px;
    height: auto;
  }
}

/* Nav: hide sub-text on very small screens */
@media (max-width: 480px) {
  .nav__logo-sub { display: none; }
  .nav__logo-name { font-size: 0.9rem; }
}

/* ── HERO RESPONSIVE ─────────────────────────────────────────
   Tablet  : ≤ 1024px
   Mobile  : ≤ 640px
   XS      : ≤ 390px
   ──────────────────────────────────────────────────────────── */

/* Tablet */
@media (max-width: 1024px) {
  .hero__content {
    max-width: 520px;
    right: clamp(1.5rem, 4vw, 3.5rem);
    left: auto;
    bottom: clamp(2.5rem, 5vh, 4.5rem);
  }
}

/* ── MOBILE HERO: stacked layout (image on top, content below) ──
   Matches reference site: full image visible, no overlay card
   ──────────────────────────────────────────────────────────── */
@media (max-width: 640px) {

  /* Hero becomes a flex column — image above, content below */
  .hero {
    display: flex;
    flex-direction: column;
    height: auto !important;          /* kill the 100svh */
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    background: transparent !important; /* no dark fill behind */
  }

  /* Kill aurora orbs on mobile */
  .hero::before,
  .hero::after { display: none; }

  /* Slides container: give it real height so the image shows fully */
  .hero__slides {
    position: relative !important;
    inset: auto !important;
    width: 100%;
    height: 56vw;          /* ~16:9 aspect ratio at phone width */
    min-height: 220px;
    max-height: 320px;
    flex-shrink: 0;
    overflow: hidden;
    order: 0;
  }

  /* Individual slides stay absolute inside the now-relative container */
  .hero__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;  /* show top of image — faces visible */
  }

  /* Grain + orb: hide decorative layers */
  .hero__grain,
  .hero__orb { display: none; }

  /* Dots: sit at bottom of image block */
  .hero__indicators {
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    order: 0;
  }

  /* Content: flows BELOW the image — no more overlay */
  .hero__content {
    position: relative !important;
    inset: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    order: 1;
    padding: 1rem 1.125rem 1.25rem;
    gap: 0.4rem;
    border-radius: 0 !important;
    border: none !important;
    border-top: 2px solid var(--tiffany) !important;
    background: rgba(28, 28, 28, 0.97) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Title */
  .hero__title {
    font-size: clamp(1.375rem, 6.5vw, 1.875rem);
    line-height: 1.1;
  }

  /* Subtitle */
  .hero__subtitle {
    font-size: 0.75rem;
    margin-bottom: 0.1rem;
  }

  /* Description: show again now that we have space below image */
  .hero__desc {
    display: block;
    font-size: 0.8125rem;
    line-height: 1.5;
    margin-top: 0.1rem;
    opacity: 0.75;
  }

  /* Buttons: side by side, compact */
  .hero__actions {
    flex-direction: row;
    gap: 0.5rem;
    margin-top: 0.5rem;
  }
  .hero__actions .btn {
    flex: 1;
    justify-content: center;
    padding-block: 0.6rem;
    font-size: 0.8125rem;
    white-space: nowrap;
  }

  /* Arrows + scroll indicator: hide */
  .hero__arrow  { display: none; }
  .hero__scroll { display: none; }
}

/* Extra-small (iPhone SE, Galaxy A series, etc.) */
@media (max-width: 390px) {
  .hero__content {
    left: 0.625rem;
    right: 0.625rem;
    padding: 0.9rem 1rem;
    bottom: clamp(2rem, 5vh, 3rem);
  }
  .hero__title {
    font-size: clamp(1.85rem, 8.5vw, 2.6rem);
  }
}

/* Stats strip — stay 3-col on mobile but compact */
@media (max-width: 640px) {
  .stats-strip__item {
    padding-inline: var(--space-3);
  }

  .stats-strip__number {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
  }

  .stats-strip__label {
    font-size: 0.6rem;
  }
}

/* Services carousel — smaller nav buttons on mobile */
@media (max-width: 540px) {
  .services__nav-btn {
    width: 44px;
    height: 44px;
  }

  .services__controls {
    gap: var(--space-4);
    margin-top: var(--space-8);
  }
}

/* Team grid — 3-col always */
@media (max-width: 480px) {
  .team-card { width: 50%; }
}

/* Testimonials — bigger tap targets + compact on mobile */
@media (max-width: 640px) {
  .t-carousel__quote {
    font-size: 1.1rem;
    padding-inline: var(--space-2);
  }

  .t-carousel__stage {
    min-height: 200px;
  }

  .t-carousel__people {
    gap: var(--space-3);
    flex-wrap: wrap;
    justify-content: center;
  }

  .t-carousel__avatar {
    width: 48px;
    height: 48px;
  }
}

/* Contact — scale down headline + stack actions */
@media (max-width: 640px) {
  .contact__headline {
    font-size: clamp(2.75rem, 11vw, 4rem);
  }

  .contact__phone-number {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .contact__actions {
    flex-direction: column;
  }

  .contact__actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Subpage hero — compact on mobile */
@media (max-width: 640px) {
  .service-hero {
    height: auto;
    min-height: 360px;
  }

  .service-hero__title {
    font-size: clamp(2.5rem, 10vw, 3.5rem);
  }

  .service-hero__sub {
    font-size: 0.85rem;
  }

  /* Hide giant bg numeral on mobile — too distracting at small sizes */
  .service-hero__bg-num {
    display: none;
  }
}

/* Service CTA band — stack on mobile */
@media (max-width: 640px) {
  .service-cta__inner {
    flex-direction: column;
    gap: var(--space-6);
    align-items: flex-start;
  }

  .service-cta__actions {
    flex-direction: column;
    width: 100%;
  }

  .service-cta__actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Footer — single column on mobile */
@media (max-width: 480px) {
  .site-footer__top {
    flex-direction: column;
    gap: var(--space-8);
  }
}

/* Subpage hero — tighter font on very small screens */
@media (max-width: 480px) {
  .service-hero {
    min-height: 480px;
    height: auto;              /* let content dictate height on tiny phones */
    padding-block: 6rem 3rem;  /* top padding clears fixed nav */
    align-items: flex-start;   /* text starts from top, not jammed at bottom */
  }
  .service-hero__title {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
    line-height: 1.1;
  }
  .service-hero__inner {
    padding-bottom: var(--space-8);
  }
}

/* Scroll-to-top — better tap target */
@media (max-width: 640px) {
  .scroll-to-top {
    width: 44px;
    height: 44px;
    bottom: var(--space-5);
    right: var(--space-4);
  }
}

/* ============================================================
   SCROLL PROGRESS BAR — tiffany line at the very top
   ============================================================ */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, var(--tiffany), var(--apple-green));
  transform-origin: left center;
  transform: scaleX(0);
  z-index: calc(var(--z-nav) + 10);
  pointer-events: none;
  box-shadow: 0 0 8px rgba(141, 182, 0, 0.35);
}

/* Team cards — tighter when 5-col */
@media (min-width: 1280px) {
  .team-card__name {
    font-size: 0.85rem;
  }

  .team-card__role {
    font-size: 0.6rem;
  }

  .team-card__info {
    padding: var(--space-3) var(--space-4);
  }
}

/* Custom cursor: never show on touch / coarse-pointer devices */
@media (hover: none), (pointer: coarse) {
  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }

  .custom-cursor,
  .custom-cursor * {
    cursor: auto !important;
  }
}

/* ── PAGE LOADER ──────────────────────────────────────────────── */
#page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--charcoal);
  overflow: hidden;
}

.loader__orb {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(129, 216, 208, 0.12) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: loaderOrb 3s ease-in-out infinite alternate;
}

@keyframes loaderOrb {
  from { transform: translate(-50%, -50%) scale(0.9); opacity: 0.6; }
  to   { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

.loader__content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.loader__name {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 400;
  color: var(--white);
  letter-spacing: -0.02em;
  margin: 0 0 0.25em;
  opacity: 0;
}

.loader__sub {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--tiffany);
  margin: 0 0 1.5em;
  opacity: 0;
}

.loader__line {
  width: 120px;
  height: 1px;
  background: var(--tiffany);
  margin: 0 auto;
  transform: scaleX(0);
  transform-origin: left center;
  box-shadow: 0 0 12px rgba(129, 216, 208, 0.5);
}

.loader__curtain {
  position: absolute;
  inset: 0;
  background: var(--charcoal);
  z-index: 3;
  transform: translateY(0);
}

/* ── SCRAMBLE CHAR ────────────────────────────────────────────── */
.scramble-char {
  color: var(--tiffany);
  font-style: normal;
}

/* ============================================================
   DIGITALE 3D-ZAHNMEDIZIN — Innovation feature section
   ============================================================ */
.digi3d {
  background: var(--charcoal);
  padding: clamp(5rem, 10vh, 8rem) 0;
  position: relative;
  overflow: hidden;
}

/* subtle tiffany radial glow top-right */
.digi3d::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 55vw;
  height: 55vw;
  border-radius: 50%;
  background: radial-gradient(ellipse at center,
    rgba(129, 216, 208, 0.055) 0%,
    transparent 70%);
  pointer-events: none;
}

.digi3d .container {
  position: relative;
  z-index: 1;
}

/* ── Ankylos section overrides ── */
.ankylos__logo {
  height: 38px;
  width: auto;
  margin-bottom: var(--space-5);
  border-radius: 6px;
  opacity: 0.92;
  display: block;
}

.ankylos__img {
  filter: drop-shadow(0 12px 48px rgba(129, 216, 208, 0.18));
  mix-blend-mode: normal;
}

.ankylos__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="light"] .ankylos__logo {
  filter: brightness(0.85);
}

.digi3d__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 7rem);
  align-items: center;
}

/* ── Left: text ── */
.digi3d__label {
  color: var(--tiffany);
  margin-bottom: var(--space-4);
}

.digi3d__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: var(--space-6);
}

.digi3d__title em {
  color: var(--tiffany);
  font-style: italic;
}

.digi3d__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.digi3d__body p {
  font-size: clamp(0.9375rem, 1.1vw, 1.0625rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.72);
  max-width: 52ch;
}

/* Feature chips */
.digi3d__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.digi3d__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(129, 216, 208, 0.25);
  background: rgba(129, 216, 208, 0.06);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.70);
  white-space: nowrap;
}

.digi3d__chip--award {
  border-color: rgba(255, 215, 100, 0.35);
  background: rgba(255, 215, 100, 0.07);
  color: rgba(255, 215, 100, 0.90);
}

.digi3d__chip-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--tiffany);
  flex-shrink: 0;
}

.digi3d__chip--award .digi3d__chip-dot {
  background: rgba(255, 215, 100, 0.9);
}

/* ── Right: image frame ── */
.digi3d__visual {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 1 / 1;   /* square — matches product photo exactly */
  background: #f0efeb;
  border: 1px solid rgba(129, 216, 208, 0.12);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.45);
  max-width: 480px;       /* cap size so it doesn't overpower the text */
  margin-left: auto;
}

.digi3d__img {
  width: 100%;
  height: 100%;
  object-fit: cover;      /* fill the square frame — image is already square */
  object-position: center;
  display: block;
  padding: 0;             /* no padding — let the image breathe naturally */
  background: #f0efeb;    /* cream fallback while loading */
}

/* Placeholder state (before real image) */
.digi3d__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  color: rgba(255, 255, 255, 0.22);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: var(--space-6);
}

.digi3d__placeholder svg {
  opacity: 0.25;
}

/* Corner tiffany accent on the visual frame */
.digi3d__visual::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 60px; height: 3px;
  background: var(--tiffany);
  border-radius: 0 0 3px 0;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .digi3d__grid {
    grid-template-columns: 1fr;
    gap: clamp(2.5rem, 5vw, 4rem);
  }
  .digi3d__visual {
    max-width: 420px;
    margin: 0 auto;
    aspect-ratio: 1 / 1;  /* keep square on mobile too */
  }
}

@media (max-width: 480px) {
  .digi3d__body p { max-width: 100%; }
  .digi3d__chips { gap: 8px; }
}

/* ── SECTION DIVIDER — slim editorial separator ─────────────── */
.section-divider {
  background: var(--charcoal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: clamp(2rem, 4vh, 3.5rem);
}

.section-divider__rule {
  position: relative;
  width: min(540px, 70vw);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Left line */
.section-divider__rule::before,
.section-divider__rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(
    to var(--dir, right),
    transparent 0%,
    rgba(129, 216, 208, 0.55) 100%
  );
}

.section-divider__rule::before { --dir: right; }
.section-divider__rule::after  { --dir: left;  }

/* Diamond gem */
.section-divider__gem {
  display: block;
  width: 8px;
  height: 8px;
  background: var(--tiffany);
  transform: rotate(45deg);
  margin-inline: var(--space-5);
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(129, 216, 208, 0.5);
}

/* ── BEFORE / AFTER SLIDER ────────────────────────────────────── */
.ba-section {
  background: var(--charcoal);
  color: var(--white);
  padding-block: var(--space-20);
}

.ba-section .section-header__body {
  color: rgba(255,255,255,0.6);
  max-width: 44ch;
  margin-inline: auto;
}

.ba-slider {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: var(--space-10) auto 0;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: col-resize;
  user-select: none;
  touch-action: none;
  box-shadow: 0 40px 100px rgba(0,0,0,0.5);
}

@media (max-width: 640px) {
  .ba-slider { aspect-ratio: 4 / 3; }
}

.ba-slider__before,
.ba-slider__after {
  position: absolute;
  inset: 0;
}

.ba-slider__photo {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ba-slider__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.ba-slider__photo--before { filter: none; }
.ba-slider__photo--after  { filter: none; }

.ba-slider__placeholder-text {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 6vw, 5rem);
  color: rgba(255,255,255,0.15);
  font-weight: 400;
  letter-spacing: -0.02em;
  pointer-events: none;
}

.ba-slider__after {
  clip-path: inset(0 0 0 50%);
  transition: clip-path 0.02s linear;
}

.ba-slider--dragging .ba-slider__after {
  transition: none;
}

/* Handle */
.ba-slider__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.ba-slider__track {
  position: absolute;
  inset: 0;
  width: 2px;
  background: var(--white);
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 20px rgba(129, 216, 208, 0.4);
}

.ba-slider__circle {
  position: relative;
  z-index: 2;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3), 0 0 0 3px rgba(129,216,208,0.4);
  color: var(--charcoal);
  flex-shrink: 0;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.ba-slider__handle:hover .ba-slider__circle,
.ba-slider--dragging .ba-slider__circle {
  transform: scale(1.12);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4), 0 0 0 4px rgba(129,216,208,0.6);
}

.ba-slider__handle:focus-visible {
  outline: none;
}

.ba-slider__handle:focus-visible .ba-slider__circle {
  box-shadow: 0 0 0 4px var(--tiffany), 0 8px 30px rgba(0,0,0,0.3);
}

/* Labels */
.ba-slider__label {
  position: absolute;
  top: var(--space-4);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  padding: 0.35em 0.85em;
  border-radius: var(--radius-full);
  backdrop-filter: blur(12px);
  pointer-events: none;
  z-index: 5;
}

.ba-slider__label--before {
  left: var(--space-4);
  background: rgba(0,0,0,0.5);
  color: rgba(255,255,255,0.8);
}

.ba-slider__label--after {
  right: var(--space-4);
  background: rgba(129,216,208,0.2);
  color: var(--tiffany);
  border: 1px solid rgba(129,216,208,0.3);
}

.ba-slider__caption {
  text-align: center;
  color: rgba(255,255,255,0.4);
  margin-top: var(--space-4);
}

/* ── HORIZONTAL SERVICE SPOTLIGHT ────────────────────────────── */
.h-scroll-section {
  background: var(--charcoal);
  overflow: hidden;
}

.h-scroll-section__sticky {
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-16) 0 var(--space-10);
  overflow: hidden;
  position: relative;
}

.h-scroll-section__header {
  padding: 0 var(--space-8) var(--space-8);
  flex-shrink: 0;
}

.h-scroll-section__header .heading-md {
  margin-top: var(--space-2);
  line-height: 1.1;
}

.h-scroll-track {
  display: flex;
  gap: var(--space-5);
  padding: 0 var(--space-8);
  will-change: transform;
  cursor: grab;
  user-select: none;
}

.h-scroll-track:active { cursor: grabbing; }

.h-scroll-card {
  flex: 0 0 clamp(300px, 42vw, 500px);
  height: clamp(300px, 36vw, 440px);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(4px);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s var(--ease-out), background 0.3s var(--ease-out);
}

.h-scroll-card:hover,
.h-scroll-card--active {
  border-color: rgba(129, 216, 208, 0.25);
  background: rgba(255,255,255,0.05);
}

.h-scroll-card__num {
  font-family: var(--font-serif);
  font-size: 5rem;
  font-weight: 400;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.08);
  line-height: 1;
  margin-bottom: auto;
  position: absolute;
  top: var(--space-5);
  right: var(--space-6);
}

.h-scroll-card__body {
  position: relative;
  z-index: 2;
  margin-top: auto;
}

.h-scroll-card__tag {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--tiffany);
  margin-bottom: var(--space-3);
}

.h-scroll-card__title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}

.h-scroll-card__title em {
  font-style: italic;
  color: var(--tiffany);
}

.h-scroll-card__desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
  margin-bottom: var(--space-5);
}

.h-scroll-card {
  cursor: pointer;
}

.h-scroll-card__cta {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--tiffany);
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.5em 0;
  transition: gap 0.2s var(--ease-out), color 0.2s var(--ease-out);
  pointer-events: none; /* card handles click */
}

.h-scroll-card:hover .h-scroll-card__cta {
  gap: 0.7em;
}

.h-scroll-card__visual {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.h-scroll-card__bg {
  position: absolute;
  inset: 0;
}

/* 2D illustration — large, faded, bottom-right of each card */
.h-scroll-card__illus {
  position: absolute;
  bottom: -6%;
  right: -6%;
  width: 68%;
  height: auto;
  object-fit: contain;
  opacity: 0.14;
  pointer-events: none;
  user-select: none;
  transition: opacity 0.4s ease;
  filter: brightness(0) invert(1); /* white line-art regardless of source colour */
}

.h-scroll-card:hover .h-scroll-card__illus,
.h-scroll-card--active .h-scroll-card__illus {
  opacity: 0.24;
}

/* Progress bar — clean version */
.h-scroll-progress {
  padding: 0 var(--space-8);
  display: flex;
  align-items: center;
  margin-top: var(--space-6);
}

.h-scroll-progress__track {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.12);
  border-radius: 1px;
  overflow: hidden;
}

#hScrollBar {
  height: 1px;
  background: var(--tiffany);
  transform-origin: left center;
  transform: scaleX(0);
  box-shadow: 0 0 8px rgba(129,216,208,0.5);
  border-radius: 1px;
}

/* Mobile: disable horizontal scroll layout, show normally */
@media (max-width: 767px) {
  .h-scroll-section__sticky {
    height: auto;
    padding-block: var(--space-10);
  }
  .h-scroll-track {
    flex-direction: column;
    overflow: visible;
  }
  .h-scroll-card {
    flex: none;
    max-height: none;
  }
}

/* ── CONTACT FORM ─────────────────────────────────────────────── */
.contact__form-col {
  flex: 1;
}

.contact-form {
  margin-top: var(--space-4);
}

.cf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

@media (max-width: 600px) {
  .cf-row { grid-template-columns: 1fr; }
}

.cf-field {
  position: relative;
  margin-bottom: var(--space-4);
}

.cf-input {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  padding: 1.1em 1.2em 0.6em;
  outline: none;
  transition: border-color 0.25s var(--ease-out), background 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
  -webkit-appearance: none;
  appearance: none;
}

.cf-input::placeholder { color: transparent; }

.cf-input:focus {
  border-color: var(--tiffany);
  background: rgba(129,216,208,0.05);
  box-shadow: 0 0 0 3px rgba(129,216,208,0.15);
}

.cf-textarea {
  resize: vertical;
  min-height: 100px;
}

.cf-label {
  position: absolute;
  left: 1.2em;
  top: 0.85em;
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.45);
  pointer-events: none;
  transition: top 0.2s var(--ease-out), font-size 0.2s var(--ease-out), color 0.2s var(--ease-out);
  transform-origin: left top;
  line-height: 1;
}

/* Float label when input has content or is focused */
.cf-input:focus + .cf-label,
.cf-input:not(:placeholder-shown) + .cf-label {
  top: 0.4em;
  font-size: 0.72rem;
  color: var(--tiffany);
  letter-spacing: 0.03em;
}

.cf-optional {
  font-size: 0.75em;
  opacity: 0.6;
}

.cf-hint {
  display: block;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  margin-top: 0.4em;
  padding-left: 1.2em;
}

.cf-error {
  display: block;
  font-size: 0.78rem;
  color: #ff6b6b;
  margin-top: 0.35em;
  padding-left: 1.2em;
  min-height: 1.2em;
}

.cf-check {
  position: absolute;
  right: 1em;
  top: 50%;
  transform: translateY(-50%) scale(0);
  opacity: 0;
  color: var(--tiffany);
  font-size: 1rem;
  font-weight: 700;
  pointer-events: none;
}

/* Valid state */
.cf-field--valid .cf-input {
  border-color: rgba(141, 182, 0, 0.55);
  background: rgba(141, 182, 0, 0.03);
}

/* Error state */
.cf-field--error .cf-input {
  border-color: rgba(255,107,107,0.7);
  background: rgba(255,107,107,0.04);
}

.cf-field--error .cf-label {
  color: #ff6b6b;
}

/* Select */
.cf-field--select { position: relative; }

.cf-select {
  cursor: pointer;
  padding-right: 3em;
}

.cf-select-arrow {
  position: absolute;
  right: 1em;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.45);
  pointer-events: none;
}

.cf-select option {
  background: var(--charcoal);
  color: var(--white);
}

/* Checkbox */
.cf-field--check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.cf-field--check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 0.15em;
  accent-color: var(--tiffany);
  cursor: pointer;
}

.cf-label-check {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
  cursor: pointer;
}

.cf-dsgvo-link {
  color: var(--tiffany);
  text-decoration: underline;
  text-decoration-color: rgba(129,216,208,0.4);
}

.cf-submit {
  width: 100%;
  margin-top: var(--space-2);
  justify-content: center;
}

.cf-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Success state */
.cf-success {
  text-align: center;
  padding: var(--space-12) var(--space-6);
}

.cf-success__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(141, 182, 0, 0.12);
  border: 2px solid var(--apple-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--apple-green);
  margin: 0 auto var(--space-5);
}

.cf-success__title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--white);
  margin-bottom: var(--space-2);
}

.cf-success__text {
  color: rgba(255,255,255,0.6);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ── CURSOR LABEL ─────────────────────────────────────────────── */
.cursor-label {
  position: fixed;
  top: -20px;
  left: -30px;
  pointer-events: none;
  z-index: calc(var(--z-nav) + 200);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--tiffany);
  color: var(--charcoal);
  padding: 0.35em 0.85em;
  border-radius: var(--radius-full);
  white-space: nowrap;
  opacity: 0;
  transform: scale(0.7);
  transform-origin: center center;
  translate: -50% -50%;
}

/* ── PHOTO TINTING SYSTEM ─────────────────────────────────────── */
/* Use .photo-tinted on any img wrapper. Add --tint-color CSS var to customize. */
.photo-tinted {
  position: relative;
  overflow: hidden;
}

.photo-tinted img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(30%) contrast(1.05);
  transition: filter var(--duration-slow) var(--ease-out);
}

.photo-tinted::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--tint-color, rgba(129, 216, 208, 0.12));
  mix-blend-mode: multiply;
  pointer-events: none;
  transition: opacity var(--duration-slow) var(--ease-out);
}

.photo-tinted:hover img {
  filter: grayscale(0%) contrast(1.02);
}

.photo-tinted:hover::after {
  opacity: 0.5;
}

/* Variant: strong tint for hero overlays */
.photo-tinted--strong::after {
  background: var(--tint-color, rgba(129, 216, 208, 0.22));
}

/* Variant: warm tone */
.photo-tinted--warm {
  --tint-color: rgba(200, 160, 100, 0.15);
}

/* Variant: cool tone (default) */
.photo-tinted--cool {
  --tint-color: rgba(129, 216, 208, 0.15);
}

/* Charcoal monochrome for team cards */
.photo-tinted--mono img {
  filter: grayscale(100%) contrast(1.1) brightness(0.9);
}

.photo-tinted--mono:hover img {
  filter: grayscale(20%) contrast(1.05) brightness(1);
}

/* Apply tinting system to team cards */
.team-card__photo {
  filter: grayscale(100%) contrast(1.05) brightness(0.85);
  transition: filter var(--duration-slow) var(--ease-out);
}

.team-card:hover .team-card__photo {
  filter: grayscale(20%) contrast(1.02) brightness(1);
}

/* ============================================================
   MOBILE FIXES (≤ 767px)
   ============================================================ */
@media (max-width: 767px) {

  /* 1 ── H-SCROLL CAROUSEL → native swipe on mobile */
  .h-scroll-section {
    overflow: visible;
  }
  .h-scroll-section__sticky {
    position: relative !important;
    top: auto !important;
    height: auto !important;
    padding: var(--space-12) 0 var(--space-8);
  }
  .h-scroll-track {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-padding-left: var(--space-5);
    cursor: auto;
    /* undo GSAP transform so cards are visible */
    transform: none !important;
    padding-bottom: var(--space-4);
  }
  .h-scroll-track::-webkit-scrollbar { display: none; }
  .h-scroll-card {
    flex: 0 0 82vw;
    height: clamp(260px, 72vw, 360px);
    scroll-snap-align: start;
  }
  /* hide progress bar on mobile — not meaningful */
  .h-scroll-progress { display: none; }

  /* 2 ── TEAM GRID — 3×3 on mobile (9 people = perfect symmetry) */
  .team-card { width: 33.3333% !important; }
  .team-card {
    aspect-ratio: 3 / 4;  /* keep portrait on mobile too */
    height: auto;
  }
  /* reset any odd-card override */
  .team__grid .team-card:last-child:nth-child(odd) {
    grid-column: auto;
    max-width: none;
    margin-inline: 0;
    justify-self: auto;
  }

  /* 3 ── TESTIMONIAL AVATARS — scrollable row, no wrap */
  .t-carousel__people {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    padding: 0 var(--space-4) var(--space-2);
    gap: var(--space-4);
    scroll-snap-type: x mandatory;
  }
  .t-carousel__people::-webkit-scrollbar { display: none; }
  .t-carousel__person {
    flex-shrink: 0;
    scroll-snap-align: center;
  }
  .t-carousel__avatar {
    width: 72px;
    height: 72px;
  }

  /* 4 ── CUSTOM CURSOR — force hide on touch devices */
  .cursor-dot,
  .cursor-ring,
  .cursor-label { display: none !important; }

  /* 5 ── HERO CARD indicators stay bottom-left */
  .hero__indicators {
    left: 1rem;
    bottom: 1rem;
  }
}

/* ============================================================
   MOBILE SCALE FIX — 640px and below
   clamp() mins were designed for desktop and win on narrow screens,
   making everything feel zoomed in. Override tokens + section padding here.
   ============================================================ */
@media (max-width: 640px) {

  /* ── Nav CTA: compact on mobile ── */
  .nav__cta {
    padding: 0.35rem 0.75rem !important;
    font-size: 0.75rem !important;
  }

  /* ── Typography scale — bring all mins down ── */
  :root {
    --text-xl:   clamp(2rem,    8vw, 2.75rem);   /* was clamp(3rem, …) */
    --text-lg:   clamp(1.625rem, 6vw, 2.125rem); /* was clamp(2.25rem, …) */
    --text-md:   clamp(1.25rem,  5vw, 1.625rem); /* was clamp(1.75rem, …) */
    --text-sm:   clamp(1.0625rem,4vw, 1.25rem);  /* was clamp(1.375rem, …) */
    --text-base: 1rem;                           /* was 1.0625rem */
  }

  /* ── Section rhythm — reduce giant clamp minimums ── */
  :root {
    --section-sm: 2rem;
    --section-md: 2.75rem;
    --section-lg: 4rem;
  }

  /* ── Generic .section utility ── */
  .section { padding-block: 2.75rem !important; }

  /* ── Hero: keep compact (set above in hero section) ── */
  /* Hero min-height already set to min(340px, 48svh) above */

  /* ── Stats strip: compact ── */
  .stats-strip { padding-block: 2.5rem !important; }

  /* ── Video teaser: compact ── */
  .video-teaser { padding: 2.5rem 0 !important; }

  /* ── About section: flush full-width, reduce padding ── */
  .about { padding-block: 2.75rem !important; }
  /* Reduce grid gap so content doesn't float with giant whitespace */
  .about__grid { gap: 2rem; }
  /* Remove card border/shadow on feature items — prevents floating-box look on mobile */
  .about__feature {
    border-radius: var(--radius-sm);
    border-color: transparent;
    background: rgba(255,255,255,0.6);
    padding: var(--space-4) var(--space-4);
  }
  /* Hide credential floating card — it overflows on narrow screens */
  .about__credential { display: none; }

  /* ── Digi3D section — use padding shorthand to override base shorthand ── */
  .digi3d { padding: 2.75rem 0 !important; }

  /* ── Before/After section ── */
  .ba-section { padding-block: 2.75rem !important; }

  /* ── Testimonials section ── */
  .testimonials { padding-block: 2.75rem !important; }

  /* ── Contact section ── */
  .contact { padding-block: 2.75rem !important; }

  /* ── Quote section (uses var(--section-lg) which is overridden above) ── */
  .quote-section { padding-block: 2.75rem !important; }

  /* ── Service tiles: reduce bottom padding ── */
  .service-tiles { padding-bottom: 2.5rem !important; }

  /* ── H-scroll carousel: compact heading ── */
  .h-scroll__heading { font-size: clamp(1.75rem, 7vw, 2.5rem); }

  /* ── Service cards on subpages ── */
  .services-grid { gap: 0.75rem; }

  /* ── body-lg: bring minimum down ── */
  .body-lg { font-size: clamp(0.9375rem, 3.5vw, 1.125rem); }
}

/* ============================================================
   320px SAFETY NET — smallest phones (Galaxy Fold, etc.)
   ============================================================ */
@media (max-width: 360px) {
  /* Nav: shrink logo text */
  .nav__logo-name { font-size: 0.8rem; }
  .nav__logo-img  { width: 32px; height: 32px; }

  /* Hero: tighten padding */
  .hero__content  { padding: 1.25rem 1rem; }
  .hero__title    { font-size: clamp(2rem, 11vw, 3rem); }

  /* Buttons: full-width stack */
  .hero__actions  { flex-direction: column; gap: 0.6rem; }
  .btn--lg        { width: 100%; text-align: center; justify-content: center; }

  /* Stats strip: single column */
  .stats-strip    { grid-template-columns: 1fr; gap: var(--space-6); }
  .stats-strip__separator { display: none; }

  /* Team: 3 col always */
  .team-card { width: 50% !important; }

  /* Contact form: single column */
  .cf-row { grid-template-columns: 1fr !important; }

  /* Section padding */
  .section { padding-block: 3rem; }
}


/* ============================================================
   THEME SYSTEM — Dark (default) / Light toggle
   ============================================================ */

/* ── Semantic colour tokens (DARK = default) ── */
:root {
  --theme-bg:           #242424;
  --theme-bg-alt:       #1e1e1e;
  --theme-bg-raised:    #2d2d2d;
  --theme-text:         #F6F1E9;
  --theme-text-muted:   rgba(246,241,233,0.58);
  --theme-text-faint:   rgba(246,241,233,0.32);
  --theme-border:       rgba(246,241,233,0.08);
  --theme-nav-bg:       rgba(36,36,36,0.90);
  --theme-card-bg:      rgba(255,255,255,0.04);
  --theme-card-border:  rgba(255,255,255,0.08);
  --theme-shadow:       rgba(0,0,0,0.30);
}

/* ── LIGHT theme overrides ── */
[data-theme="light"] {
  --theme-bg:           #F6F1E9;
  --theme-bg-alt:       #EDE8DF;
  --theme-bg-raised:    #FFFFFF;
  --theme-text:         #242424;
  --theme-text-muted:   rgba(36,36,36,0.58);
  --theme-text-faint:   rgba(36,36,36,0.38);
  --theme-border:       rgba(36,36,36,0.09);
  --theme-nav-bg:       rgba(246,241,233,0.95);
  --theme-card-bg:      rgba(255,255,255,0.85);
  --theme-card-border:  rgba(36,36,36,0.09);
  --theme-shadow:       rgba(36,36,36,0.12);
}

/* ── Smooth theme transitions (only on toggle, not on load) ── */
html.theme-transitioning,
html.theme-transitioning *,
html.theme-transitioning *::before,
html.theme-transitioning *::after {
  transition:
    background-color 0.38s cubic-bezier(0.16,1,0.3,1),
    color            0.38s cubic-bezier(0.16,1,0.3,1),
    border-color     0.38s cubic-bezier(0.16,1,0.3,1),
    box-shadow       0.38s cubic-bezier(0.16,1,0.3,1) !important;
}

/* ── body ── */
[data-theme="light"] body {
  background: var(--cream);
  color: var(--charcoal);
}

/* ─────────────────────────────────────────────
   THEME TOGGLE BUTTON
───────────────────────────────────────────── */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,0.13);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.75);
  cursor: pointer;
  flex-shrink: 0;
  transition:
    background var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
  margin-inline-start: var(--space-3);
}
.theme-toggle:hover {
  background: rgba(129,216,208,0.14);
  border-color: rgba(129,216,208,0.35);
  color: var(--tiffany);
  transform: rotate(18deg);
}
.theme-toggle__icon {
  width: 17px;
  height: 17px;
  display: block;
  transition: opacity var(--duration-fast) var(--ease-out),
              transform var(--duration-base) var(--ease-out);
}
.theme-toggle__icon--sun  { display: none; }
.theme-toggle__icon--moon { display: block; }

[data-theme="light"] .theme-toggle__icon--sun  { display: block; }
[data-theme="light"] .theme-toggle__icon--moon { display: none; }

/* Light mode toggle button style */
[data-theme="light"] .theme-toggle {
  border-color: rgba(36,36,36,0.13);
  background: rgba(36,36,36,0.05);
  color: rgba(36,36,36,0.65);
}
[data-theme="light"] .theme-toggle:hover {
  background: rgba(129,216,208,0.15);
  border-color: var(--tiffany);
  color: var(--tiffany-dark);
}

/* ─────────────────────────────────────────────
   NAV — light mode
───────────────────────────────────────────── */
[data-theme="light"] .nav {
  background: rgba(246,241,233,0.92);
  backdrop-filter: blur(22px) saturate(1.6);
  border-bottom: 1px solid rgba(36,36,36,0.06);
  box-shadow: 0 1px 0 rgba(36,36,36,0.06);
}
[data-theme="light"] .nav--scrolled {
  background: rgba(246,241,233,0.98);
  box-shadow: 0 1px 12px rgba(36,36,36,0.08);
}
[data-theme="light"] .nav__logo-name {
  color: var(--charcoal);
}
[data-theme="light"] .nav__link {
  color: rgba(36,36,36,0.68);
}
[data-theme="light"] .nav__link:hover {
  color: var(--charcoal);
  background: rgba(36,36,36,0.05);
}
[data-theme="light"] .nav__link--active {
  color: var(--charcoal);
}
[data-theme="light"] .nav__link--active::after {
  background: var(--tiffany-dark);
}
[data-theme="light"] .nav__hamburger span {
  background: var(--charcoal);
}
[data-theme="light"] .nav--open .nav__hamburger span {
  background: var(--charcoal);
}
[data-theme="light"] .nav__cta {
  color: var(--charcoal);
  border-color: rgba(36,36,36,0.25);
}
[data-theme="light"] .nav__cta:hover {
  background: var(--charcoal);
  color: var(--cream);
  border-color: var(--charcoal);
}

/* Mobile drawer — light mode */
[data-theme="light"] .nav__mobile {
  background: var(--cream);
  border-color: rgba(36,36,36,0.08);
}
[data-theme="light"] .nav__mobile-link {
  color: rgba(36,36,36,0.68);
  border-bottom-color: rgba(36,36,36,0.06);
}
[data-theme="light"] .nav__mobile-link:hover {
  color: var(--charcoal);
  background: rgba(36,36,36,0.04);
}

/* ─────────────────────────────────────────────
   MARQUEE STRIP — light mode
───────────────────────────────────────────── */
[data-theme="light"] .marquee-section,
[data-theme="light"] .marquee-strip {
  background: var(--cream-dark);
  border-top: 1px solid rgba(36,36,36,0.07);
  border-bottom: 1px solid rgba(36,36,36,0.07);
}
[data-theme="light"] .marquee__item,
[data-theme="light"] .marquee__sep {
  color: rgba(36,36,36,0.38);
}

/* ─────────────────────────────────────────────
   H-SCROLL SERVICES CAROUSEL — light mode
───────────────────────────────────────────── */
[data-theme="light"] #therapiespektrum,
[data-theme="light"] .h-scroll-section {
  background: var(--cream-dark);
}
[data-theme="light"] .h-scroll-section__header .label {
  color: var(--tiffany-dark);
}
[data-theme="light"] .h-scroll-section__header h2 {
  color: var(--charcoal);
}
[data-theme="light"] .h-scroll-card {
  background: #FFFFFF;
  border: 1px solid rgba(36,36,36,0.09);
  box-shadow: 0 4px 24px rgba(36,36,36,0.07);
}
[data-theme="light"] .h-scroll-card__num {
  color: rgba(36,36,36,0.07);
}
[data-theme="light"] .h-scroll-card__tag {
  color: var(--tiffany-dark);
}
[data-theme="light"] .h-scroll-card__title {
  color: var(--charcoal);
}
[data-theme="light"] .h-scroll-card__title em {
  color: var(--tiffany-dark);
}
[data-theme="light"] .h-scroll-card__desc {
  color: rgba(36,36,36,0.60);
}
[data-theme="light"] .h-scroll-card__cta {
  color: var(--tiffany-dark);
}
[data-theme="light"] .h-scroll-card__illus {
  opacity: 0.75;
}
[data-theme="light"] .h-scroll-progress__fill {
  background: var(--tiffany-dark);
}

/* ─────────────────────────────────────────────
   DIGITALE 3D-ZAHNMEDIZIN — light mode
───────────────────────────────────────────── */
[data-theme="light"] .digi3d {
  background: var(--cream);
}
[data-theme="light"] .digi3d__label {
  color: var(--tiffany-dark);
}
[data-theme="light"] .digi3d__title {
  color: var(--charcoal);
}
[data-theme="light"] .digi3d__title em {
  color: var(--tiffany-dark);
}
[data-theme="light"] .digi3d__body p {
  color: rgba(36,36,36,0.65);
}
[data-theme="light"] .digi3d__chip {
  background: rgba(36,36,36,0.05);
  border-color: rgba(36,36,36,0.12);
  color: rgba(36,36,36,0.72);
}
[data-theme="light"] .digi3d__chip-dot {
  background: var(--tiffany-dark);
}
[data-theme="light"] .digi3d__chip--award {
  background: rgba(129,216,208,0.10);
  border-color: rgba(129,216,208,0.28);
  color: var(--tiffany-dark);
}
[data-theme="light"] .digi3d__visual {
  background: #F0EFEB;
}

/* ─────────────────────────────────────────────
   SECTION DIVIDER — light mode
───────────────────────────────────────────── */
[data-theme="light"] .section-divider {
  background: var(--cream-dark);
}

/* ─────────────────────────────────────────────
   TEAM SECTION — light mode
───────────────────────────────────────────── */
[data-theme="light"] .team {
  background: var(--cream-dark);
}
[data-theme="light"] .team .section-header__title {
  color: var(--charcoal);
}
[data-theme="light"] .team .section-header__lead {
  color: rgba(36,36,36,0.55);
}
[data-theme="light"] .team .label--light {
  color: var(--tiffany-dark);
}
/* Team cards stay dark — photos look premium on charcoal */
[data-theme="light"] .team-card__name {
  color: #F6F1E9;
}
[data-theme="light"] .team-card__role {
  color: rgba(246,241,233,0.60);
}

/* Building logo in testimonials */
[data-theme="light"] .testimonials__building {
  opacity: 0.06;
}

/* ─────────────────────────────────────────────
   TESTIMONIALS — light mode
───────────────────────────────────────────── */
[data-theme="light"] .testimonials {
  background: var(--cream);
}
[data-theme="light"] .testimonials .section-header__title,
[data-theme="light"] .t-carousel__quote {
  color: var(--charcoal);
}
[data-theme="light"] .testimonials .section-header__lead,
[data-theme="light"] .t-carousel__author,
[data-theme="light"] .t-carousel__role {
  color: rgba(36,36,36,0.55);
}
[data-theme="light"] .t-carousel__stars svg {
  color: var(--tiffany-dark);
}
[data-theme="light"] .t-nav-btn {
  border-color: rgba(36,36,36,0.15);
  color: var(--charcoal);
  background: rgba(255,255,255,0.70);
}
[data-theme="light"] .t-nav-btn:hover {
  background: #FFFFFF;
  border-color: var(--tiffany-dark);
  color: var(--tiffany-dark);
}
[data-theme="light"] .t-dot {
  background: rgba(36,36,36,0.20);
}
[data-theme="light"] .t-dot--active {
  background: var(--tiffany-dark);
}
[data-theme="light"] .t-card {
  background: #FFFFFF;
  border-color: rgba(36,36,36,0.08);
  box-shadow: 0 4px 24px rgba(36,36,36,0.06);
}

/* ─────────────────────────────────────────────
   VIDEO TEASER — light mode
───────────────────────────────────────────── */
[data-theme="light"] .video-teaser {
  background: var(--cream-dark); /* slightly darker than base cream in dark mode */
}
[data-theme="light"] .video-teaser__thumb {
  box-shadow: 0 8px 40px rgba(36,36,36,0.15);
}
[data-theme="light"] .video-teaser__play {
  background: rgba(36,36,36,0.65);
  border-color: rgba(36,36,36,0.30);
}
[data-theme="light"] .video-teaser__play:hover {
  background: var(--tiffany-dark);
}

/* ─────────────────────────────────────────────
   CONTACT — light mode (already cream, minor tweaks)
───────────────────────────────────────────── */
[data-theme="light"] .contact {
  background: var(--cream);
}
[data-theme="light"] .contact__headline,
[data-theme="light"] .contact__tagline {
  color: var(--charcoal);
}
[data-theme="light"] .contact__block-label {
  color: var(--tiffany-dark);
}
[data-theme="light"] .contact__address,
[data-theme="light"] .contact__hours-row,
[data-theme="light"] .contact__tel {
  color: rgba(36,36,36,0.70);
}
[data-theme="light"] .contact-form {
  background: #FFFFFF;
  box-shadow: 0 4px 32px rgba(36,36,36,0.08);
}
[data-theme="light"] .cf-input {
  background: #F6F1E9;
  border-color: rgba(36,36,36,0.12);
  color: var(--charcoal);
}
[data-theme="light"] .cf-input:focus {
  border-color: var(--tiffany);
  background: #FFFFFF;
}

/* ─────────────────────────────────────────────
   ABOUT SECTION — light mode (already light — minor adjustments)
───────────────────────────────────────────── */
[data-theme="light"] .about__credential {
  background: rgba(255,255,255,0.92);
  border-color: rgba(129,216,208,0.30);
  box-shadow: 0 4px 24px rgba(36,36,36,0.08);
  color: var(--charcoal);
}

/* ─────────────────────────────────────────────
   SERVICE CARDS (homepage) — light mode
───────────────────────────────────────────── */
[data-theme="light"] .services {
  background: var(--cream);
}
[data-theme="light"] .services .section-header__title,
[data-theme="light"] .services .section-header__lead {
  color: var(--charcoal);
}
[data-theme="light"] .service-card {
  background: #FFFFFF;
  border: 1px solid rgba(36,36,36,0.08);
  box-shadow: 0 2px 16px rgba(36,36,36,0.06);
}
[data-theme="light"] .service-card__title {
  color: var(--charcoal);
}
[data-theme="light"] .service-card__desc {
  color: rgba(36,36,36,0.60);
}
[data-theme="light"] .service-card__link {
  color: var(--tiffany-dark);
}

/* ─────────────────────────────────────────────
   COOKIE BANNER — light mode
───────────────────────────────────────────── */
[data-theme="light"] .cookie-banner {
  background: #FFFFFF;
  color: var(--charcoal);
  border-color: rgba(36,36,36,0.08);
  box-shadow: 0 -4px 24px rgba(36,36,36,0.08);
}
[data-theme="light"] .cookie-banner__text {
  color: rgba(36,36,36,0.70);
}

/* ─────────────────────────────────────────────
   SUBPAGE — service content sections — light mode
───────────────────────────────────────────── */
[data-theme="light"] .service-content {
  background: var(--cream);
  color: var(--charcoal);
}
[data-theme="light"] .service-content h2,
[data-theme="light"] .service-content h3 {
  color: var(--charcoal);
}
[data-theme="light"] .service-content p,
[data-theme="light"] .service-content li {
  color: rgba(36,36,36,0.72);
}
[data-theme="light"] .prose {
  color: rgba(36,36,36,0.72);
}

/* Related services grid — light mode */
[data-theme="light"] .related-services {
  background: var(--cream-dark);
}
[data-theme="light"] .related-services .heading-md {
  color: var(--charcoal);
}
[data-theme="light"] .service-cta {
  background: var(--charcoal);
}

/* ─────────────────────────────────────────────
   KARRIERE / LEGAL PAGES — light mode
───────────────────────────────────────────── */
[data-theme="light"] .job-card {
  background: #FFFFFF;
  border-color: rgba(36,36,36,0.08);
  box-shadow: 0 2px 16px rgba(36,36,36,0.06);
}
[data-theme="light"] .job-card__title {
  color: var(--charcoal);
}
[data-theme="light"] .job-card__section-title {
  color: var(--charcoal);
}
[data-theme="light"] .job-card__body li {
  color: rgba(36,36,36,0.70);
}
[data-theme="light"] .legal-page {
  background: var(--cream);
  color: var(--charcoal);
}
[data-theme="light"] .legal-page h1,
[data-theme="light"] .legal-page h2,
[data-theme="light"] .legal-page h3 {
  color: var(--charcoal);
}
[data-theme="light"] .legal-page p,
[data-theme="light"] .legal-page li {
  color: rgba(36,36,36,0.70);
}

/* ─────────────────────────────────────────────
   FOOTER — stays dark in both modes (premium feel)
───────────────────────────────────────────── */
/* footer intentionally unchanged — dark footer anchors both themes */

/* ─────────────────────────────────────────────
   SCROLL PROGRESS BAR — light mode
───────────────────────────────────────────── */
[data-theme="light"] .scroll-progress {
  background: rgba(36,36,36,0.08);
}
[data-theme="light"] .scroll-progress__bar {
  background: var(--tiffany-dark);
}

/* ─────────────────────────────────────────────
   ACCORDION (Praxislabor / Karriere) — light mode
───────────────────────────────────────────── */
[data-theme="light"] .callout-accordion__trigger {
  background: var(--cream-dark);
  color: var(--charcoal);
  border-color: rgba(36,36,36,0.09);
}
[data-theme="light"] .callout-accordion__trigger:hover {
  background: #FFFFFF;
}
[data-theme="light"] .callout-accordion__panel {
  background: #FFFFFF;
  border-color: rgba(36,36,36,0.06);
}

/* END OF THEME SYSTEM */

/* ─────────────────────────────────────────────
   LANGUAGE SWITCHER
───────────────────────────────────────────── */
.lang-switch {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-inline-end: var(--space-2);
  flex-shrink: 0;
}
.lang-switch__sep {
  color: rgba(255,255,255,0.25);
  font-size: 0.75rem;
  line-height: 1;
  user-select: none;
}
.lang-switch__opt {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  padding: 3px 6px;
  border-radius: var(--radius-sm);
  transition: color var(--duration-fast) var(--ease-out),
              background var(--duration-fast) var(--ease-out);
  cursor: pointer;
  border: none;
  background: none;
}
a.lang-switch__opt:hover {
  color: var(--tiffany);
  background: rgba(129,216,208,0.10);
}
.lang-switch__opt--active {
  color: var(--tiffany) !important;
  cursor: default;
}
/* Light mode */
[data-theme="light"] .lang-switch__sep {
  color: rgba(45,45,45,0.30);
}
[data-theme="light"] .lang-switch__opt {
  color: rgba(45,45,45,0.65);
}
.nav--scrolled .lang-switch__sep {
  color: rgba(45,45,45,0.30);
}
.nav--scrolled .lang-switch__opt {
  color: rgba(45,45,45,0.65);
}
.nav--scrolled a.lang-switch__opt:hover {
  color: var(--tiffany-dark);
  background: rgba(129,216,208,0.12);
}
[data-theme="light"] a.lang-switch__opt:hover {
  color: var(--tiffany-dark);
  background: rgba(129,216,208,0.12);
}
[data-theme="light"] .lang-switch__opt--active {
  color: var(--tiffany-dark) !important;
}
