/* ==========================================================================
   Digitalismus — Design System
   ========================================================================== */

:root {
  /* Colors — dark theme */
  --c-accent: #F15B40;
  --c-accent-dark: #D8462D;
  --c-accent-light: #FFB199;
  /* accent-text = coral for small TEXT accents on dark (~5.5:1 on --c-bg) */
  --c-accent-text: #FF7A54;
  /* accent-strong = deeper coral for button/badge BACKGROUNDS with white text (~4.7:1) */
  --c-accent-strong: #D9300F;
  --c-ink: #F4F3F1;          /* primary text/foreground — now light */
  --c-ink-soft: #C7CAD2;
  --c-slate: #9A9EA9;        /* muted body text on dark */
  --c-bg: #14161D;           /* page background — dark */
  --c-bg-alt: #1A1D26;       /* alternating sections — slightly lighter dark */
  --c-bg-dark: #0F1116;      /* deepest surfaces (footer, cta, dark cards) */
  --c-line: rgba(255, 255, 255, 0.12);
  --c-white: #FFFFFF;        /* pure white — button/avatar text, orbit nodes */
  --c-panel: #1E212B;        /* elevated card/surface background */

  /* Type */
  --f-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  /* Scale */
  --radius-sm: 10px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-pill: 999px;

  --shadow-soft: 0 24px 60px -24px rgba(0, 0, 0, 0.6);
  --shadow-accent: 0 20px 45px -18px rgba(217, 48, 15, 0.5);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--f-body);
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* ==========================================================================
   Accessibility: focus states & skip link
   ========================================================================== */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2.5px solid var(--c-accent-text);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 10001;
  background: var(--c-bg-dark);
  color: var(--c-white);
  font-weight: 600;
  font-size: 14px;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  transition: top 0.3s var(--ease-out);
}
.skip-link:focus {
  top: 16px;
  outline: 2.5px solid var(--c-white);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.02em;
}

p { line-height: 1.65; margin: 0; color: var(--c-slate); }

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

@media (max-width: 720px) {
  .container { padding: 0 20px; }
}

section { position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-accent-text);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--c-accent);
  border-radius: 2px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: var(--radius-pill);
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 15px;
  border: none;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--c-accent-strong);
  color: var(--c-white);
  box-shadow: var(--shadow-accent);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 26px 50px -16px rgba(241, 91, 64, 0.65); }

.btn-dark {
  background: var(--c-ink);
  color: var(--c-bg);
}
.btn-dark:hover { transform: translateY(-3px); }

.btn-outline {
  background: transparent;
  color: var(--c-ink);
  border: 1.5px solid var(--c-line);
}
.btn-outline:hover { border-color: var(--c-ink); transform: translateY(-3px); }

.btn-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transition: transform 0.4s var(--ease-out);
}
.btn:hover .btn-arrow { transform: translateX(4px) rotate(45deg); }

/* ==========================================================================
   Custom cursor
   ========================================================================== */

.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--c-accent);
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--c-accent);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out), border-color 0.3s;
  will-change: transform;
}
.cursor-ring.is-active { width: 64px; height: 64px; border-color: var(--c-ink); }
@media (hover: none), (max-width: 900px) {
  .cursor, .cursor-ring { display: none; }
}

/* ==========================================================================
   Page transition overlay
   ========================================================================== */

.page-transition {
  position: fixed;
  inset: 0;
  background: var(--c-bg-dark);
  z-index: 10000;
  pointer-events: none;
  visibility: hidden;
}
.page-transition.is-active { pointer-events: all; }

/* ==========================================================================
   Nav
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: padding 0.45s var(--ease-out);
}
/* When scrolled, the bar detaches from the edges and becomes a floating,
   glassy "pill" — a modern floating-navbar pattern. */
.site-header.is-scrolled { padding: 14px 16px; }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  transition: max-width 0.45s var(--ease-out), padding 0.45s var(--ease-out),
              background 0.45s var(--ease-out), border-color 0.45s var(--ease-out),
              box-shadow 0.45s var(--ease-out);
  will-change: max-width, padding;
}
.site-header.is-scrolled .nav-inner {
  max-width: 1080px;
  padding: 9px 10px 9px 26px;
  background: rgba(24, 27, 37, 0.72);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  backdrop-filter: blur(20px) saturate(1.4);
  border-color: rgba(255, 255, 255, 0.10);
  box-shadow: 0 16px 44px -16px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 38px; height: auto; transition: width 0.45s var(--ease-out); }
.site-header.is-scrolled .brand img { width: 32px; }
.brand span {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links > li > a {
  position: relative;
  display: block;
  padding: 10px 16px;
  font-size: 14.5px;
  font-weight: 500;
  border-radius: var(--radius-pill);
  transition: background 0.3s, color 0.3s;
}
.nav-links > li > a:hover { background: var(--c-bg-alt); }
.nav-links li.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 300px;
  background: var(--c-panel);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.3s var(--ease-out);
}
li.has-dropdown:hover .dropdown,
li.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.dropdown a:hover { background: var(--c-bg-alt); color: var(--c-accent-text); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-cta .btn { padding: 12px 24px; font-size: 14px; }
.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--c-line);
  background: var(--c-panel);
  color: var(--c-ink);
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}
.btn-icon:hover { background: var(--c-accent-strong); border-color: var(--c-accent-text); color: var(--c-white); transform: translateY(-2px); }

.nav-toggle {
  display: none;
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--c-line);
  background: var(--c-panel);
  align-items: center;
  justify-content: center;
}
.nav-toggle .bars { position: relative; width: 18px; height: 12px; }
.nav-toggle .bars i {
  position: absolute; left: 0; width: 100%; height: 1.5px; background: var(--c-ink);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle .bars i:nth-child(1) { top: 0; }
.nav-toggle .bars i:nth-child(2) { bottom: 0; }

.mobile-menu { display: none; }

@media (max-width: 980px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--c-bg);
    z-index: 1500;
    display: flex;
    flex-direction: column;
    padding: 100px 32px 40px;
    overflow-y: auto;
    transform: translateY(-100%);
    transition: transform 0.5s var(--ease-out);
  }
  .mobile-menu.is-open { transform: translateY(0); }
  .mobile-menu a {
    font-family: var(--f-display);
    font-size: 32px;
    padding: 14px 0;
    border-bottom: 1px solid var(--c-line);
  }
  .mobile-close {
    position: absolute; top: 26px; right: 24px;
    width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid var(--c-line); background: var(--c-panel);
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 160px 0 100px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
@keyframes fade-up-in {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fade-scale-in {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-title, .hero-sub, .hero-actions, .hero-stats, .hero-visual, .page-hero h1 {
    animation: none !important;
  }
}

.hero-title {
  font-size: clamp(30px, 3.2vw, 46px);
  max-width: 620px;
  line-height: 1.1;
  text-wrap: balance;
  animation: fade-up-in 0.9s 0.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Rotating headline accent — first item is always visible via plain CSS;
   JS only adds the cycling, so this degrades gracefully without JS.
   Block-level grid puts the rotating phrase on its own line below the
   static lead, and stacks the items in one cell so the container height
   stays at a single line (no reserved-width reflow). */
.text-cycle {
  position: relative;
  display: grid;
  margin-top: 4px;
}
.text-cycle-item {
  grid-area: 1 / 1;
  color: var(--c-accent-text);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.text-cycle-item.is-active {
  opacity: 1;
  transform: translateY(0);
}
.text-cycle-item.is-leaving {
  opacity: 0;
  transform: translateY(-14px);
}
@media (prefers-reduced-motion: reduce) {
  .text-cycle-item { transition: opacity 0.3s ease; transform: none !important; }
}
/* Below this width, don't reserve space for the widest phrase — it forces
   the whole cycle to wrap as one block and strands the word before it
   (e.g. "online") alone on its own line. Let the active phrase size to
   its own natural width instead; minor reflow between items is fine. */
@media (max-width: 640px) {
  .text-cycle { display: inline; }
  .text-cycle-item { display: none; position: static; transition: none; }
  .text-cycle-item.is-active { display: inline; opacity: 1; }
  .text-cycle-item.is-leaving { display: none; }
}

.hero-sub {
  margin-top: 26px;
  font-size: 19px;
  max-width: 480px;
  animation: fade-up-in 0.9s 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-actions {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  animation: fade-up-in 0.9s 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-stats {
  margin-top: 64px;
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  animation: fade-up-in 0.9s 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-stats .stat b {
  font-family: var(--f-display);
  font-size: 34px;
  display: block;
}
.hero-stats .stat span { font-size: 13px; color: var(--c-slate); }

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1.05;
  border-radius: var(--radius-lg);
  overflow: hidden;
  --r1: 78px; --r2: 130px; --r3: 182px;
  animation: fade-scale-in 1s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Orbiting service icons */
.orbit-hero {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.orbit-glow {
  position: absolute;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: var(--c-accent);
  filter: blur(70px);
  opacity: 0.22;
}
.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px dashed rgba(20, 23, 31, 0.16);
}
.orbit-ring.r1 { width: calc(var(--r1) * 2); height: calc(var(--r1) * 2); }
.orbit-ring.r2 { width: calc(var(--r2) * 2); height: calc(var(--r2) * 2); }
.orbit-ring.r3 { width: calc(var(--r3) * 2); height: calc(var(--r3) * 2); }

.orbit-core {
  position: relative;
  z-index: 3;
  width: 88px; height: 88px;
  border-radius: 50%;
  background: var(--c-white);
  box-shadow: 0 0 50px -8px rgba(241, 91, 64, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: core-pulse 3.6s ease-in-out infinite;
}
.orbit-core img { width: 50px; height: auto; }
@keyframes core-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.orbit-icon {
  position: absolute;
  top: 50%; left: 50%;
  width: 46px; height: 46px;
  margin: -23px;
  border-radius: 50%;
  background: var(--c-white);
  box-shadow: 0 12px 26px -12px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-accent);
  animation-name: orbit-move;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
.orbit-icon.ring1 { animation-duration: 16s; --r: var(--r1); }
.orbit-icon.ring2 { animation-duration: 22s; --r: var(--r2); }
.orbit-icon.ring3 { animation-duration: 30s; --r: var(--r3); }
@keyframes orbit-move {
  from { transform: rotate(0deg) translateX(var(--r)) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(var(--r)) rotate(-360deg); }
}

@media (max-width: 640px) {
  .hero-visual { --r1: 54px; --r2: 90px; --r3: 126px; }
  .orbit-core { width: 66px; height: 66px; }
  .orbit-core img { width: 38px; }
  .orbit-icon { width: 38px; height: 38px; margin: -19px; }
}

@media (prefers-reduced-motion: reduce) {
  .orbit-icon, .orbit-core { animation: none; }
}

.hero-visual .card-float {
  position: absolute;
  background: var(--c-panel);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 18px 20px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-visual .card-float.f1 { top: 3%; right: 3%; z-index: 4; }
.hero-visual .card-float.f2 { bottom: 4%; left: 3%; z-index: 4; }
.hero-visual .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-accent); }

.scroll-cue {
  position: absolute;
  bottom: 40px; left: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-slate);
}
.scroll-cue .line { width: 1px; height: 40px; background: var(--c-line); position: relative; overflow: hidden; }
.scroll-cue .line::after {
  content: ""; position: absolute; top: -100%; left: 0; width: 100%; height: 100%;
  background: var(--c-accent);
  animation: scrollcue 2s ease-in-out infinite;
}
@keyframes scrollcue { 0% { top: -100%; } 50% { top: 0; } 100% { top: 100%; } }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding: 140px 0 70px; }
  .hero-visual { order: -1; aspect-ratio: 4/3; }
}

/* ==========================================================================
   Marquee
   ========================================================================== */

.marquee-section { padding: 40px 0; border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.marquee { display: flex; overflow: hidden; }
.marquee-track { display: flex; gap: 64px; padding-right: 64px; white-space: nowrap; animation: marquee 26s linear infinite; }
.marquee-track span { font-family: var(--f-display); font-size: 22px; color: var(--c-slate); opacity: 0.55; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ==========================================================================
   Section headers
   ========================================================================== */

.section { padding: 130px 0; }
.section-alt { background: var(--c-bg-alt); }
.section-dark { background: var(--c-bg-dark); color: var(--c-white); }
.section-dark p { color: rgba(255,255,255,0.65); }
.section-dark .eyebrow { color: var(--c-accent-light); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 64px;
}
.section-head h2 { font-size: clamp(32px, 4.2vw, 52px); max-width: 640px; }
.section-head p { max-width: 380px; }

@media (max-width: 780px) {
  .section { padding: 90px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 18px; }
}

/* ==========================================================================
   About split
   ========================================================================== */

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: start;
}
.about-lead { font-family: var(--f-display); font-size: clamp(24px, 2.6vw, 34px); line-height: 1.3; color: var(--c-ink); }
.about-lead .accent { color: var(--c-accent); }
.about-body { margin-top: 30px; display: flex; flex-direction: column; gap: 22px; }
.about-body p { font-size: 16px; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 34px; } }

/* ==========================================================================
   Service cards
   ========================================================================== */

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  position: relative;
  padding: 40px 30px;
  border-radius: var(--radius-lg);
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  overflow: hidden;
  transition: transform 0.5s var(--ease-out), border-color 0.5s, box-shadow 0.5s;
}
.service-card:hover { transform: translateY(-8px); border-color: transparent; box-shadow: var(--shadow-soft); }
.service-card .num { font-family: var(--f-display); font-size: 13px; color: var(--c-accent-text); font-weight: 700; }
.service-card h3 { margin-top: 22px; font-size: 22px; }
.service-card p { margin-top: 14px; font-size: 14.5px; }
.service-card .go {
  margin-top: 26px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--c-ink);
}
.service-card .go svg { transition: transform 0.4s var(--ease-out); }
.service-card:hover .go svg { transform: translateX(6px); }
.service-card .glow {
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: var(--c-accent);
  filter: blur(60px);
  opacity: 0;
  top: -60px; right: -60px;
  transition: opacity 0.5s;
}
.service-card:hover .glow { opacity: 0.16; }

@media (max-width: 980px) { .service-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .service-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Process steps
   ========================================================================== */

.process-list { display: flex; flex-direction: column; }
.process-item {
  display: grid;
  grid-template-columns: 90px 1fr 40px;
  gap: 30px;
  align-items: center;
  padding: 36px 0;
  border-top: 1px solid var(--c-line);
  transition: padding 0.4s var(--ease-out);
}
.process-item:last-child { border-bottom: 1px solid var(--c-line); }
.process-item .idx { font-family: var(--f-display); font-size: 15px; color: var(--c-accent-text); font-weight: 700; }
.process-item h3 { font-size: 26px; transition: color 0.3s; }
.process-item p { max-width: 560px; margin-top: 10px; font-size: 15px; opacity: 0; height: 0; overflow: hidden; transition: opacity 0.4s, height 0.4s; }
.process-item .arrow { justify-self: end; opacity: 0.3; transition: transform 0.4s var(--ease-out), opacity 0.4s; }
.process-item:hover { padding-top: 44px; padding-bottom: 44px; }
.process-item:hover h3 { color: var(--c-accent); }
.process-item:hover p { opacity: 1; height: auto; margin-top: 10px; }
.process-item:hover .arrow { transform: rotate(45deg); opacity: 1; }

@media (max-width: 700px) {
  .process-item { grid-template-columns: 50px 1fr; }
  .process-item .arrow { display: none; }
  .process-item p { opacity: 1; height: auto; }
}

/* ==========================================================================
   Stats band
   ========================================================================== */

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stats-band .stat b {
  font-family: var(--f-display);
  font-size: clamp(38px, 4vw, 58px);
  display: block;
  color: var(--c-accent);
}
.stats-band .stat span { font-size: 14px; color: var(--c-slate); }
.section-dark .stats-band .stat span { color: rgba(255,255,255,0.6); }
@media (max-width: 780px) { .stats-band { grid-template-columns: 1fr 1fr; } }

/* ==========================================================================
   Projects grid
   ========================================================================== */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.project-card {
  border-radius: var(--radius-lg);
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  padding: 34px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.5s var(--ease-out), background 0.5s, border-color 0.5s;
}
.project-card:hover { transform: translateY(-6px); background: #262A36; border-color: transparent; }
.project-card .tag {
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--c-accent-text);
}
.project-card h3 { margin-top: 14px; font-size: 24px; }
.project-card p { margin-top: 10px; font-size: 14px; }
@media (max-width: 980px) { .projects-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .projects-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Pricing
   ========================================================================== */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.price-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-line);
  padding: 44px 34px;
  background: var(--c-panel);
  display: flex;
  flex-direction: column;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s;
}
.price-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-soft); }
.price-card.featured {
  background: #262A36;
  color: var(--c-white);
  border-color: var(--c-accent);
}
.price-card.featured p, .price-card.featured li { color: rgba(255,255,255,0.68); }
.price-card .plan-name { font-family: var(--f-display); font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.price-card .plan-price { margin-top: 18px; display: flex; align-items: baseline; gap: 6px; }
.price-card .plan-price b { font-family: var(--f-display); font-size: 48px; }
.price-card .plan-price span { font-size: 14px; color: var(--c-slate); }
.price-card.featured .plan-price span { color: rgba(255,255,255,0.6); }
.price-card ul { margin-top: 30px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.price-card li { font-size: 14.5px; display: flex; align-items: flex-start; gap: 10px; }
.price-card li svg { flex-shrink: 0; margin-top: 3px; color: var(--c-accent); }
.price-card .btn { margin-top: 34px; width: 100%; }
.price-note { margin-top: 26px; font-size: 13px; color: var(--c-slate); text-align: center; }

@media (max-width: 980px) { .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }

/* ==========================================================================
   FAQ accordion
   ========================================================================== */

.faq-list { max-width: 780px; }
.faq-item { border-top: 1px solid var(--c-line); }
.faq-item:last-child { border-bottom: 1px solid var(--c-line); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 4px;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--f-display);
  font-size: 18px;
  color: var(--c-ink);
}
.faq-q .plus { position: relative; width: 20px; height: 20px; flex-shrink: 0; margin-left: 20px; }
.faq-q .plus::before, .faq-q .plus::after {
  content: ""; position: absolute; background: var(--c-ink); transition: transform 0.4s var(--ease-out);
}
.faq-q .plus::before { top: 50%; left: 0; width: 100%; height: 1.5px; transform: translateY(-50%); }
.faq-q .plus::after { left: 50%; top: 0; height: 100%; width: 1.5px; transform: translateX(-50%); }
.faq-item.is-open .plus::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.45s var(--ease-out); }
.faq-a p { padding: 0 4px 26px; font-size: 15px; max-width: 640px; }

/* ==========================================================================
   CTA band
   ========================================================================== */

.cta-band {
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #201A1C, #14161D);
  color: var(--c-white);
  padding: 90px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { font-size: clamp(32px, 5vw, 56px); max-width: 720px; margin: 0 auto; }
.cta-band p { color: rgba(255,255,255,0.65); margin: 22px auto 0; max-width: 460px; }
.cta-band .btn { margin-top: 40px; }
.cta-band .orb { position: absolute; width: 320px; height: 320px; border-radius: 50%; background: var(--c-accent); filter: blur(100px); opacity: 0.35; }
.cta-band .orb-a { top: -120px; left: -80px; }
.cta-band .orb-b { bottom: -140px; right: -60px; }
@media (max-width: 780px) { .cta-band { padding: 60px 28px; } }

/* ==========================================================================
   Blog teaser
   ========================================================================== */

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card { border-radius: var(--radius-lg); overflow: hidden; background: var(--c-panel); border: 1px solid var(--c-line); transition: transform 0.5s var(--ease-out); }
.blog-card:hover { transform: translateY(-6px); }
.blog-card .thumb { aspect-ratio: 16/11; background: var(--c-bg-alt); position: relative; overflow: hidden; }
.blog-card .thumb .grad { position: absolute; inset: 0; background: linear-gradient(150deg, var(--c-accent-light), var(--c-bg-alt)); opacity: 0.7; }
.blog-card .body { padding: 26px; }
.blog-card .cat { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--c-accent-text); }
.blog-card h3 { margin-top: 12px; font-size: 19px; line-height: 1.3; }
@media (max-width: 980px) { .blog-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Contact page
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
}
.contact-info-card {
  background: var(--c-bg-dark);
  color: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: 46px 38px;
  height: fit-content;
}
.contact-info-card h3 { font-size: 26px; }
.contact-info-card p { color: rgba(255,255,255,0.6); margin-top: 14px; }
.contact-channels { margin-top: 36px; display: flex; flex-direction: column; gap: 20px; }
.contact-channels a { display: flex; align-items: center; gap: 14px; font-size: 15px; font-weight: 600; }
.contact-channels .ic { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-socials { margin-top: 36px; display: flex; gap: 12px; }
.contact-socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; transition: background 0.3s; }
.contact-socials a:hover { background: var(--c-accent); border-color: var(--c-accent); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: var(--c-ink); }
.field input, .field textarea {
  border: 1.5px solid var(--c-line);
  border-radius: var(--radius-sm);
  padding: 15px 18px;
  font-family: var(--f-body);
  font-size: 15px;
  color: var(--c-ink);
  background: var(--c-panel);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--c-slate); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 4px rgba(241,91,64,0.12);
}
.field textarea { resize: vertical; min-height: 140px; }
.form-note { font-size: 13px; color: var(--c-slate); margin-top: -4px; margin-bottom: 24px; }
.form-status { margin-top: 16px; font-size: 14px; font-weight: 600; display: none; }
.form-status.is-visible { display: block; }
.form-status.success { color: #1E8E5A; }
.form-status.error { color: var(--c-accent-text); }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Inner-page hero (service pages)
   ========================================================================== */

.page-hero {
  padding: 150px 0 90px;
}
.page-hero .eyebrow { margin-bottom: 22px; }
.page-hero h1 { font-size: clamp(36px, 4.6vw, 60px); max-width: 780px; animation: fade-up-in 0.9s 0.1s cubic-bezier(0.16, 1, 0.3, 1) both; }
.page-hero .lead { margin-top: 26px; font-size: 18px; max-width: 620px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--c-slate); margin-bottom: 30px; }
.breadcrumb a:hover { color: var(--c-accent-text); }

.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar {
  padding: 34px 28px;
  border-radius: var(--radius-md);
  background: var(--c-panel);
  border: 1px solid var(--c-line);
}
.pillar .idx { font-family: var(--f-display); color: var(--c-accent-text); font-weight: 700; font-size: 14px; }
.pillar h3 { margin-top: 16px; font-size: 20px; }
.pillar p { margin-top: 12px; font-size: 14.5px; }
@media (max-width: 900px) { .pillars-grid { grid-template-columns: 1fr; } }

.split-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split-media.reverse .media { order: 2; }
.media {
  aspect-ratio: 1/1;
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, #23262F, var(--c-bg-alt));
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.media-illustration {
  width: 62%;
  height: auto;
  animation: media-float 6s ease-in-out infinite;
}
.media-illustration .pulse {
  animation: core-pulse 3.2s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}
.media-illustration .spin-slow {
  animation: spin-cw 46s linear infinite;
  transform-box: fill-box;
  transform-origin: center;
}
@keyframes media-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes spin-cw {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .media-illustration, .media-illustration .pulse, .media-illustration .spin-slow { animation: none; }
}
.media .badge {
  position: absolute;
  top: 24px; left: 24px;
  background: var(--c-panel);
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}
.check-list { margin-top: 26px; display: flex; flex-direction: column; gap: 14px; }
.check-list li { display: flex; gap: 12px; font-size: 15px; color: var(--c-ink); align-items: flex-start; }
.check-list svg { flex-shrink: 0; margin-top: 3px; color: var(--c-accent); }
@media (max-width: 900px) { .split-media { grid-template-columns: 1fr; gap: 34px; } .split-media.reverse .media { order: 0; } }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { background: var(--c-bg-dark); color: var(--c-white); padding: 100px 0 40px; }
.footer-top { display: grid; grid-template-columns: 1.3fr 0.9fr 0.9fr 0.9fr; gap: 40px; padding-bottom: 70px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand .brand span { color: var(--c-white); }
.footer-brand p { margin-top: 18px; max-width: 300px; color: rgba(255,255,255,0.55); font-size: 14.5px; }
.footer-col h4 { font-family: var(--f-display); font-size: 14px; color: rgba(255,255,255,0.9); margin-bottom: 20px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 14.5px; color: rgba(255,255,255,0.55); transition: color 0.3s; }
.footer-col a:hover { color: var(--c-accent); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 30px; flex-wrap: wrap; gap: 16px; }
.footer-bottom p { color: rgba(255,255,255,0.4); font-size: 13px; }
.footer-legal { display: flex; gap: 22px; }
.footer-legal a { font-size: 13px; color: rgba(255,255,255,0.4); }
.footer-legal a:hover { color: var(--c-white); }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; }
.footer-socials a:hover { background: var(--c-accent); border-color: var(--c-accent); }

@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   Reveal utility (GSAP hooks)
   ========================================================================== */

[data-reveal] { opacity: 0; transform: translateY(40px); }
[data-reveal-scale] { opacity: 0; transform: scale(0.94); }

.tag-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: var(--radius-pill);
  background: var(--c-bg-alt); font-size: 13px; font-weight: 600;
}

/* ==========================================================================
   Ambient background — soft drifting gradient mesh
   ========================================================================== */

.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.ambient-bg span {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}
.ambient-bg span:nth-child(1) {
  width: 640px; height: 640px;
  top: -18%; left: -12%;
  background: var(--c-accent);
  opacity: 0.14;
  animation: drift-a 24s ease-in-out infinite;
}
.ambient-bg span:nth-child(2) {
  width: 560px; height: 560px;
  bottom: -16%; right: -10%;
  background: var(--c-accent-dark);
  opacity: 0.12;
  animation: drift-b 28s ease-in-out infinite;
}
.ambient-bg span:nth-child(3) {
  width: 480px; height: 480px;
  top: 32%; right: 18%;
  background: #3A2A6B;
  opacity: 0.16;
  animation: drift-c 32s ease-in-out infinite;
}
@keyframes drift-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(70px, 50px) scale(1.12); }
}
@keyframes drift-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-60px, -40px) scale(1.08); }
}
@keyframes drift-c {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-50px, 60px) scale(0.94); }
}
@media (prefers-reduced-motion: reduce) {
  .ambient-bg span { animation: none; }
}
@media (max-width: 720px) {
  .ambient-bg span:nth-child(1) { width: 380px; height: 380px; }
  .ambient-bg span:nth-child(2) { width: 340px; height: 340px; }
  .ambient-bg span:nth-child(3) { width: 300px; height: 300px; }
}

/* ==========================================================================
   Legal content (Impressum, Datenschutz, AGB)
   ========================================================================== */

.legal-content {
  max-width: 760px;
  margin: 0 auto;
}
.legal-content h2 {
  font-size: 24px;
  margin-top: 52px;
  margin-bottom: 16px;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p {
  font-size: 15.5px;
  margin-bottom: 16px;
}
.legal-content ul {
  margin: 0 0 16px;
  padding-left: 22px;
  list-style: disc;
}
.legal-content li {
  font-size: 15.5px;
  color: var(--c-slate);
  line-height: 1.65;
  margin-bottom: 8px;
}
.legal-content a { color: var(--c-accent-text); text-decoration: underline; text-underline-offset: 3px; }
.legal-content strong { color: var(--c-ink); font-weight: 600; }
.legal-content .toc {
  background: var(--c-bg-alt);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  margin-bottom: 40px;
}
.legal-content .toc p { margin-bottom: 8px; font-weight: 600; }
.legal-content .toc ol { margin: 0; padding-left: 20px; }
.legal-content .toc li { color: var(--c-ink); font-size: 14.5px; margin-bottom: 6px; }

/* ==========================================================================
   Testimonials — Google Reviews
   ========================================================================== */

.testimonial-scroller {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px 4px 24px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.testimonial-scroller::-webkit-scrollbar { display: none; }
.testimonial-card {
  flex: 0 0 min(440px, 85vw);
  scroll-snap-align: start;
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: 38px 34px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s;
}
.testimonial-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.testimonial-stars { display: flex; gap: 3px; color: #F5A623; }
.testimonial-text {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--c-ink);
  font-family: var(--f-display);
  flex: 1;
}
.testimonial-meta { display: flex; align-items: center; gap: 14px; }
.testimonial-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--c-accent-strong);
  color: var(--c-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}
.testimonial-name { font-weight: 600; font-size: 15px; color: var(--c-ink); }
.testimonial-source {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--c-slate);
}
.testimonial-nav { display: flex; gap: 12px; }
.scroller-arrow {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--c-line);
  background: var(--c-panel);
  color: var(--c-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, border-color 0.3s, color 0.3s, opacity 0.3s;
}
.scroller-arrow:hover { background: var(--c-accent-strong); border-color: var(--c-accent-text); color: var(--c-white); }
.scroller-arrow:disabled { opacity: 0.35; pointer-events: none; }

/* ==========================================================================
   Horizontal project carousel
   ========================================================================== */

.project-scroller {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px 4px 24px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.project-scroller::-webkit-scrollbar { display: none; }
.project-scroller .project-card {
  flex: 0 0 min(360px, 80vw);
  scroll-snap-align: start;
  background: var(--c-panel);
  border: 1px solid var(--c-line);
}
