/* ============================================
   HSO Brand Design Tokens
   Premium Redesign
   ============================================ */

/* Geared Slab */
@font-face { font-family: 'Geared Slab'; src: url('/assets/fonts/GearedSlab-Light.ttf') format('truetype'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Geared Slab'; src: url('/assets/fonts/GearedSlab-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Geared Slab'; src: url('/assets/fonts/GearedSlab-Extrabold.ttf') format('truetype'); font-weight: 800; font-display: swap; }

/* Thirsty Rough */
@font-face { font-family: 'Thirsty Rough'; src: url('/assets/fonts/ThirstyRough-BoldTwo.ttf') format('truetype'); font-weight: 700; font-display: swap; }

/* Lato */
@font-face { font-family: 'Lato'; src: url('/assets/fonts/Lato-Thin.ttf') format('truetype'); font-weight: 100; font-display: swap; }
@font-face { font-family: 'Lato'; src: url('/assets/fonts/Lato-Light.ttf') format('truetype'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Lato'; src: url('/assets/fonts/Lato-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Lato'; src: url('/assets/fonts/Lato-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Lato'; src: url('/assets/fonts/Lato-Black.ttf') format('truetype'); font-weight: 900; font-display: swap; }

:root {
  /* ---- Primary Brand Colors ---- */
  --color-cobalt: #2933ba;
  --color-cobalt-70: rgba(41, 51, 186, 0.7);
  --color-cobalt-40: rgba(41, 51, 186, 0.4);
  --color-cobalt-20: rgba(41, 51, 186, 0.2);
  --color-cobalt-10: rgba(41, 51, 186, 0.1);

  --color-shark: #252c37;
  --color-shark-90: rgba(37, 44, 55, 0.9);
  --color-shark-70: rgba(37, 44, 55, 0.7);
  --color-shark-50: rgba(37, 44, 55, 0.5);
  --color-shark-20: rgba(37, 44, 55, 0.2);
  --color-shark-10: rgba(37, 44, 55, 0.1);

  --color-sun: #ffed00;
  --color-sun-glow: rgba(255, 237, 0, 0.3);
  --color-grain: #e3ceb2;
  --color-grain-50: rgba(227, 206, 178, 0.5);
  --color-grain-20: rgba(227, 206, 178, 0.2);

  /* ---- Sub-Brand Colors ---- */
  --color-sea: #acddd1;
  --color-sea-glow: rgba(172, 221, 209, 0.4);
  --color-sage: #c1cbb8;
  --color-sage-glow: rgba(193, 203, 184, 0.4);
  --color-nude: #c1a4a2;
  --color-nude-glow: rgba(193, 164, 162, 0.4);
  --color-midnight: #192341;

  /* ---- Neutral Colors ---- */
  --color-white: #ffffff;
  --color-off-white: #f8f6f3;
  --color-light-gray: #edeae6;
  --color-mid-gray: #9a9590;
  --color-dark: #1a1a1a;
  --color-black: #000000;

  /* ---- Gradient Presets ---- */
  --gradient-hero: linear-gradient(135deg, #192341 0%, #252c37 40%, #1a2a4a 70%, #192341 100%);
  --gradient-cobalt: linear-gradient(135deg, #2933ba, #1a2066);
  --gradient-dark: linear-gradient(180deg, #1a1a1a 0%, #252c37 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));

  /* ---- Typography ---- */
  --font-headline: 'Geared Slab', 'Roboto Slab', Georgia, serif;
  --font-body: 'Lato', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-accent: 'Thirsty Rough', Georgia, serif;

  /* ---- Font Sizes (fluid) ---- */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.3vw, 1rem);
  --text-base: clamp(1rem, 0.9rem + 0.4vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --text-xl: clamp(1.25rem, 1rem + 0.8vw, 1.75rem);
  --text-2xl: clamp(1.75rem, 1.2rem + 1.5vw, 2.5rem);
  --text-3xl: clamp(2rem, 1.5rem + 2vw, 3.25rem);
  --text-4xl: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
  --text-5xl: clamp(3rem, 2rem + 4vw, 5.5rem);

  /* ---- Spacing ---- */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;
  --space-section: clamp(5rem, 4rem + 4vw, 9rem);

  /* ---- Layout ---- */
  --container-max: 1280px;
  --container-narrow: 900px;
  --container-padding: clamp(1.25rem, 1rem + 2vw, 3rem);

  /* ---- Effects ---- */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(37, 44, 55, 0.08);
  --shadow-md: 0 4px 16px rgba(37, 44, 55, 0.1);
  --shadow-lg: 0 8px 32px rgba(37, 44, 55, 0.12);
  --shadow-xl: 0 16px 48px rgba(37, 44, 55, 0.16);
  --shadow-glow-cobalt: 0 0 30px rgba(41, 51, 186, 0.3);
  --shadow-glow-sun: 0 0 30px rgba(255, 237, 0, 0.2);

  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.15);
  --glass-blur: blur(20px);

  --transition-fast: 200ms ease;
  --transition-base: 350ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 600ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ---- Z-Index Scale ---- */
  --z-behind: -1;
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
}


/* ============================================
   Base Reset & Global Styles
   ============================================ */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-shark);
  background-color: var(--color-off-white);
  overflow-x: hidden;
}

img, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headline);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-shark);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

p { max-width: 65ch; }

::selection {
  background: var(--color-cobalt-20);
  color: var(--color-shark);
}

:focus-visible {
  outline: 2px solid var(--color-cobalt);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.container--narrow {
  max-width: var(--container-narrow);
}

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

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


/* ============================================
   Reusable Components
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: none;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.btn--primary {
  background: var(--color-cobalt);
  color: var(--color-white);
  box-shadow: 0 4px 15px rgba(41, 51, 186, 0.3);
}

.btn--primary:hover {
  background: #3340d4;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(41, 51, 186, 0.4);
}

.btn--primary:active { transform: translateY(0); }

.btn--outline {
  background: transparent;
  color: var(--color-shark);
  border: 2px solid var(--color-shark-20);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn--outline:hover {
  background: var(--color-shark);
  color: var(--color-white);
  border-color: var(--color-shark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 44, 55, 0.3);
}

.btn--ghost {
  background: transparent;
  color: var(--color-shark);
  padding-inline: 0.5rem;
}

.btn--ghost::after {
  content: '\2192';
  transition: transform var(--transition-fast);
  font-size: 1.1em;
}

.btn--ghost:hover { color: var(--color-cobalt); }
.btn--ghost:hover::after { transform: translateX(6px); }

.btn--white {
  background: var(--color-white);
  color: var(--color-shark);
  box-shadow: var(--shadow-md);
}

.btn--white:hover {
  background: var(--color-off-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--hero-outline {
  background: rgba(255, 255, 255, 0.25);
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.4);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn--hero-outline:hover {
  background: var(--color-shark);
  border-color: var(--color-shark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 44, 55, 0.4);
}

.tag {
  display: inline-block;
  padding: 0.4rem 1rem;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  background: var(--color-grain-20);
  color: var(--color-shark);
}

.tag--sea { background: rgba(172, 221, 209, 0.2); color: #1a6b5a; }
.tag--sage { background: rgba(193, 203, 184, 0.25); color: #4a5a3e; }
.tag--nude { background: rgba(193, 164, 162, 0.2); color: #6b4a48; }

.section-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-cobalt);
  margin-bottom: var(--space-sm);
  position: relative;
  padding-left: 2rem;
}

.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1.2rem;
  height: 2px;
  background: var(--color-cobalt);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-header .section-label { padding-left: 0; }
.section-header .section-label::before { display: none; }

.section-header p {
  margin-inline: auto;
  margin-top: var(--space-sm);
  color: var(--color-shark-70);
  font-size: var(--text-lg);
}

.divider {
  width: 100%;
  height: 1px;
  background: var(--color-shark-20);
  border: none;
}

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

@media (max-width: 768px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}


/* ============================================
   Animations & Scroll Effects
   ============================================ */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.75s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
}

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

[data-reveal-stagger]>* {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-reveal-stagger].revealed>*:nth-child(1) { transition-delay: 0ms; }
[data-reveal-stagger].revealed>*:nth-child(2) { transition-delay: 150ms; }
[data-reveal-stagger].revealed>*:nth-child(3) { transition-delay: 300ms; }
[data-reveal-stagger].revealed>*:nth-child(4) { transition-delay: 450ms; }
[data-reveal-stagger].revealed>*:nth-child(5) { transition-delay: 600ms; }

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

.hero [data-reveal] {
  transform: translateY(24px);
  transition-duration: 0.75s;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.hero__headline[data-reveal] { transition-delay: 260ms; }
.hero__actions[data-reveal] { transition-delay: 660ms; }
.hero__subtext[data-reveal] { transition-delay: 460ms; }
.hero__trust[data-reveal] { transition-delay: 800ms; }
.hero__subtitle[data-reveal] { transition-delay: 460ms; }

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

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(41, 51, 186, 0.2); }
  50% { box-shadow: 0 0 40px rgba(41, 51, 186, 0.4); }
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes slide-in-right {
  from { transform: translateX(20px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes particle-float {
  0% { transform: translate(0, 0) scale(1); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translate(var(--tx), var(--ty)) scale(0.5); opacity: 0; }
}

@keyframes counter-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes testimonial-slide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--color-cobalt), var(--color-sun), var(--color-cobalt));
  background-size: 200% 100%;
  animation: gradient-shift 3s ease infinite;
  z-index: 9999;
  pointer-events: none;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(41, 51, 186, 0.4);
}

.section-label { will-change: transform, opacity; }
.stat__number { will-change: transform; }
.service-card { will-change: transform; }
.service-card__image { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-reveal-stagger]>* {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .service-card, .section-label, .stat__number {
    transform: none !important;
    opacity: 1 !important;
  }

  .hero__particles { display: none; }
  .scroll-progress { display: none; }
}




/* ============================================
   Hero Section — Static Fullscreen
   ============================================ */

.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
  background: var(--color-shark);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero__bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to top,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0.3) 30%,
    rgba(0, 0, 0, 0.1) 60%,
    transparent 100%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  grid-template-rows: 1fr auto;
  gap: 0 clamp(2rem, 4vw, 4rem);
  width: 100%;
  height: 100%;
  padding-inline: clamp(2rem, 5vw, 6rem);
}

.hero__headline {
  font-family: var(--font-headline);
  font-size: clamp(3rem, 6vw, 5.5rem);
  color: var(--color-white);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  grid-column: 2;
  grid-row: 1 / -1;
  align-self: center;
  justify-self: end;
  text-align: right;
}

.hero__headline em {
  font-style: normal;
  color: var(--color-sun);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.hero__headline-soft {
  color: var(--color-sun);
}


/* ---- Intro Text (links oben) ---- */
.hero__intro-text {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  will-change: transform, opacity;
  position: relative;
  z-index: 5;
}

.hero__intro-line {
  width: 120px;
  height: 2px;
  background: rgba(255, 255, 255, 0.6);
  margin-bottom: 1.25rem;
  border-radius: 2px;
  transform-origin: left;
  animation: hero-line-in 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
}

@keyframes hero-line-in {
  from { transform: scaleX(0); opacity: 0; }
  to { transform: scaleX(1); opacity: 1; }
}

.hero__intro-desc {
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 1vw + 0.3rem, 1rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  max-width: 340px;
}

/* ---- Google Badge (links unten) ---- */
.hero__google-badge {
  position: absolute;
  bottom: clamp(3rem, 6vw, 5rem);
  left: clamp(1.5rem, 3vw, 3rem);
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.hero__google-stars {
  display: flex;
  align-items: center;
  gap: 2px;
}

.hero-star {
  fill: rgba(255, 255, 255, 0.25);
  animation: star-fill 0.4s cubic-bezier(0.4, 0, 0.2, 1) var(--star-delay, 1.6s) forwards;
}

.hero-star--half {
  animation-name: star-fill-half;
}

@keyframes star-fill {
  0% { fill: rgba(255, 255, 255, 0.25); transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { fill: #FBBC05; transform: scale(1); }
}

@keyframes star-fill-half {
  0% { fill: rgba(255, 255, 255, 0.25); transform: scale(1); }
  50% { fill: url(#starGrad); transform: scale(1.3); }
  100% { fill: url(#starGrad); transform: scale(1); }
}

.hero-star--half {
  animation-name: star-fill-half;
}

.hero__google-score {
  font-family: var(--font-headline);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-white);
  margin-left: 0.5rem;
}

.hero__google-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.04em;
}


/* ---- Scroll Hint ---- */
.hero__scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  will-change: opacity;
}

.hero__scroll-hint span {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.7);
  animation: scroll-line-pulse 2s ease-in-out infinite;
}

@keyframes scroll-line-pulse {
  0%   { top: -100%; }
  50%  { top: 100%; }
  100% { top: 100%; }
}


/* ---- Hero Entrance Animations ---- */

/* Headline lines: slide from left or right */
.hero-slide {
  display: block;
  opacity: 0;
  animation: 0.9s cubic-bezier(0.16, 1, 0.3, 1) var(--anim-delay, 0s) forwards;
}

.hero-slide--left {
  transform: translateX(-120px);
  animation-name: hero-slide-left;
}

.hero-slide--right {
  transform: translateX(120px);
  animation-name: hero-slide-right;
}

@keyframes hero-slide-left {
  from { opacity: 0; transform: translateX(-120px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes hero-slide-right {
  from { opacity: 0; transform: translateX(120px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Fade up: text under line + google badge */
.hero-fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: hero-fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) var(--anim-delay, 0s) forwards;
}

@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- Mobile ---- */
@media (max-width: 768px) {
  .hero__content {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
  }
  .hero__headline { font-size: clamp(2.8rem, 10vw, 4rem); grid-column: 1; grid-row: 1; align-self: end; text-align: left; justify-self: start; padding-top: 10rem; }
  .hero__intro-text { grid-column: 1; grid-row: 2; padding-top: 1rem; }
  .hero__google-badge { position: relative; bottom: auto; left: auto; grid-column: 1; grid-row: 3; padding-bottom: 2rem; }
  .hero__google-stars { flex-wrap: wrap; }
  .hero__scroll-hint { display: none; }
}



/* ============================================
   Services Section
   ============================================ */

/* Wrapper scopes the sticky services — career scrolls over, then normal flow resumes */
.scroll-over-wrap {
  position: relative;
}

.services.section {
  background: var(--color-off-white);
  padding-block: var(--space-xl);
  min-height: 100vh;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.service-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-shark-10);
  position: relative;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(37, 44, 55, 0.12);
  border-color: transparent;
}

.service-card__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--color-light-gray);
  position: relative;
  overflow: hidden;
}

.service-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(1.05);
}

.service-card:hover .service-card__image img {
  transform: scale(1.1);
}

.service-card__image::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.service-card:hover .service-card__image::before { opacity: 1; }

.service-card--retreat .service-card__image::before { background: linear-gradient(to top, rgba(172, 221, 209, 0.3), transparent 60%); }
.service-card--corporate .service-card__image::before { background: linear-gradient(to top, rgba(193, 203, 184, 0.3), transparent 60%); }
.service-card--signature .service-card__image::before { background: linear-gradient(to top, rgba(193, 164, 162, 0.3), transparent 60%); }

.service-card__body {
  padding: var(--space-md) var(--space-md) var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card__title {
  font-size: var(--text-xl);
  line-height: 1.25;
  margin-top: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.service-card__text {
  font-size: var(--text-sm);
  color: var(--color-shark-70);
  line-height: 1.7;
  margin-bottom: var(--space-sm);
}

.service-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-md) 0;
  flex: 1;
}

.service-card__features li {
  font-size: var(--text-xs);
  color: var(--color-shark-70);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-shark-10);
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.service-card__features li:last-child { border-bottom: none; }

.feature-icon {
  width: 18px;
  height: 18px;
  min-width: 18px;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}

.service-card:hover .feature-icon { opacity: 1; }

.service-card--retreat .feature-icon { color: var(--color-sea); }
.service-card--corporate .feature-icon { color: var(--color-sage); }
.service-card--signature .feature-icon { color: var(--color-nude); }

.service-card--retreat .service-card__features li { border-left: 3px solid var(--color-sea); padding-left: 0.75rem; }
.service-card--corporate .service-card__features li { border-left: 3px solid var(--color-sage); padding-left: 0.75rem; }
.service-card--signature .service-card__features li { border-left: 3px solid var(--color-nude); padding-left: 0.75rem; }

.service-card__link {
  font-size: var(--text-sm);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
  margin-top: auto;
  color: var(--color-shark);
}

.service-card__link svg { width: 18px; height: 18px; transition: transform var(--transition-fast); }
.service-card:hover .service-card__link { color: var(--color-cobalt); }
.service-card:hover .service-card__link svg { transform: translateX(6px); }

@media (max-width: 1024px) {
  .services__grid { grid-template-columns: 1fr; gap: var(--space-md); }
  .service-card { max-width: 560px; margin-inline: auto; width: 100%; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .service-card:last-child { grid-column: 1 / -1; max-width: 560px; justify-self: center; }
}


/* ============================================
   Precision Section (sticky — career scrolls over)
   ============================================ */

.precision.section {
  background: var(--color-off-white);
  position: sticky;
  top: -50vh;
  z-index: 1;
  padding-block: var(--space-section);
}

/* ---- Top: Image + Feature Cards ---- */
.precision__top {
  display: grid;
  grid-template-columns: 0.45fr 0.55fr;
  gap: var(--space-xl);
  align-items: start;
  margin-bottom: var(--space-section);
}

.precision__image-col {
  position: relative;
}

.precision__image-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3 / 4;
}

.precision__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.precision__quote {
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-top: -5rem;
  margin-left: 1.5rem;
  margin-right: -2rem;
  box-shadow: var(--shadow-lg);
  z-index: 2;
}

.precision__quote h3 {
  font-family: var(--font-accent);
  font-size: var(--text-xl);
  color: var(--color-shark);
  margin-bottom: var(--space-xs);
  font-style: italic;
}

.precision__quote p {
  font-size: var(--text-sm);
  color: var(--color-shark-70);
  line-height: 1.6;
}

/* ---- Header: Warum HSO ---- */
.precision__header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.precision__header .section-label {
  padding-left: 0;
}

.precision__header .section-label::before {
  display: none;
}

.precision__title {
  font-size: var(--text-3xl);
  line-height: 1.2;
  max-width: 700px;
  margin-inline: auto;
}

.precision__content {
  padding-top: var(--space-md);
}

.precision__headline {
  font-size: var(--text-3xl);
  line-height: 1.15;
  margin-bottom: var(--space-xl);
  max-width: 520px;
}

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

.precision__card {
  padding: var(--space-md);
}

.precision__card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(255, 237, 0, 0.15);
  color: #d4a800;
  margin-bottom: var(--space-sm);
}

.precision__card-icon svg {
  width: 24px;
  height: 24px;
}

.precision__card h4 {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-xs);
  color: var(--color-shark);
}

.precision__card p {
  font-size: var(--text-sm);
  color: var(--color-shark-70);
  line-height: 1.65;
}

/* ---- Bottom: Warum HSO ---- */
.precision__bottom {
  text-align: center;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-shark-10);
}

.precision__bottom .section-label {
  padding-left: 0;
}

.precision__bottom .section-label::before {
  display: none;
}

.precision__bottom-title {
  font-size: var(--text-3xl);
  max-width: 750px;
  margin-inline: auto;
  margin-bottom: var(--space-sm);
  line-height: 1.2;
}

.precision__bottom-sub {
  color: var(--color-shark-70);
  max-width: 650px;
  margin-inline: auto;
  margin-bottom: var(--space-xl);
  font-size: var(--text-sm);
  line-height: 1.7;
}

.precision__usp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  text-align: left;
}

.precision__usp h4 {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-xs);
  color: var(--color-cobalt);
}

.precision__usp p {
  font-size: var(--text-sm);
  color: var(--color-shark-70);
  line-height: 1.65;
}

/* ---- Precision Responsive ---- */
@media (max-width: 1024px) {
  .precision__top {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  .precision__quote {
    margin-right: 0;
    margin-left: 1rem;
  }
  .precision__usp-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .precision__grid {
    grid-template-columns: 1fr;
  }
  .precision__usp-grid {
    grid-template-columns: 1fr;
  }
  .precision__quote {
    margin-top: -3rem;
    margin-left: 0.5rem;
  }
}


/* ============================================
   Why HSO Section
   ============================================ */

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

.why-hso__title {
  text-align: center;
  font-size: var(--text-3xl);
  max-width: 700px;
  margin-inline: auto;
}

.why-hso__subtitle {
  text-align: center;
  color: var(--color-shark-70);
  max-width: 600px;
  margin-inline: auto;
  margin-top: var(--space-sm);
  margin-bottom: var(--space-xl);
  font-size: var(--text-base);
  line-height: 1.7;
}

.why-hso__stats {
  display: flex;
  justify-content: center;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
}

.stat { text-align: center; }

.stat__number {
  font-family: var(--font-headline);
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--color-cobalt);
  line-height: 1;
  display: flex;
  align-items: baseline;
  justify-content: center;
}

.stat__suffix { font-size: 0.6em; margin-left: 2px; }

.stat__label {
  font-size: var(--text-sm);
  color: var(--color-shark-70);
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

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

.feature {
  text-align: center;
  padding: var(--space-lg) var(--space-md);
  border-radius: var(--radius-lg);
  background: var(--color-off-white);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
}

.feature::before {
  display: none;
}

.feature:hover {
  background: var(--color-white);
  box-shadow: 0 12px 40px rgba(37, 44, 55, 0.1);
  transform: translateY(-6px);
  border-color: var(--color-shark-10);
}

.feature__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(255, 237, 0, 0.15);
  color: #d4a800;
  transition: all var(--transition-base);
}

.feature:hover .feature__icon {
  background: var(--color-sun);
  color: var(--color-shark);
  transform: scale(1.1);
}

.feature__icon svg { width: 28px; height: 28px; }
.feature__title { font-size: var(--text-lg); font-weight: 700; margin-bottom: var(--space-xs); }
.feature__text { font-size: var(--text-sm); color: var(--color-shark-70); line-height: 1.7; margin-inline: auto; }


/* ---- Repeatable Slide from Right ---- */
[data-slide-repeat="right"] {
  opacity: 0;
  transform: translateX(280px);
  transition:
    opacity   2s cubic-bezier(0.16, 1, 0.3, 1),
    transform 2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

[data-slide-repeat="right"].slide-in {
  opacity: 1;
  transform: translateX(0);
}

.feature[data-slide-repeat].slide-in:hover {
  transform: translateY(-6px);
}

[data-slide-delay="0"] { transition-delay: 0ms; }
[data-slide-delay="1"] { transition-delay: 120ms; }
[data-slide-delay="2"] { transition-delay: 240ms; }
[data-slide-delay="3"] { transition-delay: 360ms; }

@media (prefers-reduced-motion: reduce) {
  [data-slide-repeat] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.why-hso__actions {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
  flex-wrap: wrap;
}

@media (max-width: 1024px) {
  .why-hso__grid { grid-template-columns: repeat(2, 1fr); }
  .why-hso__stats { gap: var(--space-lg); }
}

@media (max-width: 600px) {
  .why-hso__grid { grid-template-columns: 1fr; }
  .why-hso__stats { gap: var(--space-md); }
}


/* ============================================
   Testimonials Section
   ============================================ */

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

.testimonials__header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.testimonials__header .section-label { padding-left: 0; }
.testimonials__header .section-label::before { display: none; }

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.testimonial {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  position: relative;
  border: 1px solid var(--color-shark-10);
  transition: all var(--transition-base);
}

.testimonial:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(37, 44, 55, 0.1);
  border-color: transparent;
}

.testimonial__stars { display: flex; gap: 3px; margin-bottom: var(--space-md); }
.testimonial__star { width: 18px; height: 18px; color: var(--color-sun); }

.testimonial__quote {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-shark-70);
  margin-bottom: var(--space-md);
  font-style: italic;
}

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

.testimonial__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-cobalt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-weight: 700;
  font-size: var(--text-sm);
  flex-shrink: 0;
}

.testimonial__name { font-weight: 700; font-size: var(--text-sm); color: var(--color-shark); }
.testimonial__role { font-size: var(--text-xs); color: var(--color-mid-gray); }

@media (max-width: 1024px) {
  .testimonials__grid { grid-template-columns: repeat(2, 1fr); }
}

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


/* ============================================
   Career Section
   ============================================ */

.career {
  background: var(--color-shark);
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  margin-top: 0;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.2);
  margin-top: -1px;
}

.career::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(41, 51, 186, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 30%, rgba(255, 237, 0, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(41, 51, 186, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.career__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 750px;
  margin-inline: auto;
}

.career__label { color: rgba(41, 51, 186, 0.8); padding-left: 0; }
.career__label::before { display: none; }

.career__title {
  color: var(--color-white);
  font-size: var(--text-3xl);
  margin-top: var(--space-sm);
}

.career__title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--color-sun), #ffd700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.career__stats {
  display: flex;
  justify-content: center;
  gap: var(--space-2xl);
  margin-top: var(--space-xl);
  flex-wrap: wrap;
}

.career__stat { text-align: center; }

.career__stat-number {
  font-family: var(--font-headline);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1;
}

.career__stat-label {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.4rem;
}

.career__actions {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .career__actions { flex-direction: column; align-items: center; }
  .career__stats { gap: var(--space-lg); }
}

@media (max-width: 768px) {
  .precision.section {
    position: relative;
    top: auto;
  }
  .career {
    position: relative;
    z-index: auto;
  }
}


/* ============================================
   CRESolutions Teaser Banner
   ============================================ */

.cre-solutions {
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.cre-solutions__banner {
  display: grid;
  grid-template-columns: 280px 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  padding-block: var(--space-lg);
}

.cre-solutions__banner-image { border-radius: var(--radius-lg); overflow: hidden; }

.cre-solutions__banner-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.cre-solutions__banner-content .section-label { color: var(--color-grain); }

.cre-solutions__banner-title {
  font-size: var(--text-3xl);
  color: var(--color-white);
  line-height: 1.15;
  font-weight: 800;
}

.cre-solutions__banner-info p {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.cre-solutions__banner-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-grain);
  transition: all var(--transition-fast);
}

.cre-solutions__banner-link svg { width: 18px; height: 18px; transition: transform var(--transition-fast); }
.cre-solutions__banner-link:hover { color: var(--color-white); }
.cre-solutions__banner-link:hover svg { transform: translateX(6px); }

@media (max-width: 768px) {
  .cre-solutions__banner { grid-template-columns: 1fr; gap: var(--space-md); text-align: center; }
  .cre-solutions__banner-title { font-size: var(--text-2xl); }
  .cre-solutions__banner-title br { display: none; }
}


/* ============================================
   Contact Section
   ============================================ */

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

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.contact__info { padding-top: var(--space-sm); }
.contact__title { font-size: var(--text-3xl); margin-top: var(--space-xs); }
.contact__text { color: var(--color-shark-70); margin-top: var(--space-md); line-height: 1.7; }

.contact__details {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

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

.contact__detail-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-cobalt-10);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-cobalt);
  flex-shrink: 0;
}

.contact__detail-icon svg { width: 22px; height: 22px; }

.contact__detail-label {
  font-size: var(--text-xs);
  color: var(--color-mid-gray);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact__detail-value { font-size: var(--text-base); font-weight: 600; }
.contact__detail-value a { color: var(--color-shark); transition: color var(--transition-fast); }
.contact__detail-value a:hover { color: var(--color-cobalt); }

.contact__form {
  background: var(--color-off-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid var(--color-shark-10);
}

.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
.form__group { display: flex; flex-direction: column; gap: 0.5rem; }
.form__group--full { grid-column: 1 / -1; }
.form__label { font-size: var(--text-sm); font-weight: 600; color: var(--color-shark); }

.form__input, .form__select, .form__textarea {
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--color-shark-20);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  background: var(--color-white);
  color: var(--color-shark);
  transition: all var(--transition-fast);
  width: 100%;
}

.form__input::placeholder, .form__textarea::placeholder { color: var(--color-mid-gray); }

.form__input:focus, .form__select:focus, .form__textarea:focus {
  outline: none;
  border-color: var(--color-cobalt);
  box-shadow: 0 0 0 3px var(--color-cobalt-10);
}

.form__textarea { resize: vertical; min-height: 120px; }

.form__submit { margin-top: var(--space-sm); }
.form__submit .btn { width: 100%; padding: 1rem 2rem; }

.form__note {
  font-size: var(--text-xs);
  color: var(--color-mid-gray);
  margin-top: var(--space-sm);
  text-align: center;
}

@media (max-width: 768px) {
  .contact__inner { grid-template-columns: 1fr; gap: var(--space-xl); }
  .form__grid { grid-template-columns: 1fr; }
}
/* Footer */
#footer-root {
  position: relative;
}