/* ============================================================================
   Services-Atelier — Welle 5.17 "Atelier"
   ----------------------------------------------------------------------------
   Editorial Premium Bento für Thai-Markt + DACH SMB-Owner.

   Layout-Konzept (Hybrid Pattern 1+3):
   - 3 entkoppelte Rows (keine Stretch-Konflikte mehr garantiert)
   - Row 1: Hero Webdesign (volle Breite, aspect 21:9 Desktop)
   - Row 2: Marketing | Consulting (50/50, aspect 4:3)
   - Row 3: Bookmi | Yummi | Shopmi (33/33/33, aspect 4:5)

   Aesthetic: "Atelier" = Premium Workshop Magazine
   - Editorial typography (Inter mit aggressive treatment, ready für Premium-Font)
   - Celadon Green als Thai-Heritage-Akzent (Mandarin Oriental Brand 2025)
   - Mocha Gold + Deep Navy + Warm Cream
   - Glass-Morphism mit subtle noise + thin gold hairlines

   Interaktion:
   - Magnetic Cursor (max 8px translate) auf Tile-Hover
   - 3D Parallax (max 4° rotateX/Y) Spring-Physics
   - Spotlight-Dim (non-hovered → 0.55)
   - KEINE scroll-reveals, KEIN fade-up — alles immer visible
   - Mini-UIs: alle parallel live (Ticker, Streams, Globe)

   Performance:
   - aspect-ratio + 3-row-decoupled = stretch-frei garantiert
   - GPU-only transforms (translate3d, opacity)
   - IntersectionObserver pause loops outside viewport (JS-Modul)
   - prefers-reduced-motion: alle Loops static, kein Tilt, kein Magnetic

   Quellen-Inspiration: Stripe Connect Globe-Blog, Linear Features,
   Mandarin Oriental Brand 2025, Apple iPad-Pro Bento.
   ============================================================================ */

/* ════════════════════════════════════════════════════════════════════════
   1. SECTION CONTAINER + DESIGN TOKENS
   ════════════════════════════════════════════════════════════════════════ */
.atelier {
  /* Layout */
  --at-pad-y:         clamp(2.5rem, 5vw, 4rem);
  --at-row-gap:       clamp(0.75rem, 1.4vw, 1.25rem);
  --at-tile-gap:      clamp(0.75rem, 1.2vw, 1rem);
  --at-radius:        24px;
  --at-radius-sm:     14px;

  /* Aesthetic-Tokens (Editorial Atelier) */
  --at-font-display:  'Inter', 'Cormorant Garamond', Georgia, serif;
  --at-font-body:     'Inter', system-ui, sans-serif;
  --at-font-mono:     'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
  --at-font-thai:     'Sarabun', 'Inter', sans-serif;

  /* ════════════════════════════════════════════════════════════════════════
     COLOR-SYSTEM: "miraTEQ Digital 2026" Palette — DIE OFFIZIELLE PALETTE
     ────────────────────────────────────────────────────────────────────────
     Position: Webdesign+Marketing+Digital-Tech-Agentur (KEIN Hotel-Luxury).
     Vorbild: Stripe/Linear/Vercel Tech-Premium, NICHT Mandarin Oriental.
     Doku: _shared/css/BRAND-COLORS.md (ANCHOR-Datei für die Palette).

     PRIMARY  = miraTEQ Blue   #1498D5  (Logo + CTA — Brand-Anchor, Thai-Trust)
     ACCENT   = Sunset Coral   #FF7A4D  (Energy/Growth — "neue Kunden")
     DEEP     = Midnight Navy  #0A1B33  (Text/Depth — kein Schwarz)
     LIGHT    = Cool Off-White #FAFBFD  (Background — kein Cream!)
     TINT     = Frost          #E8EFF7  (Card-Tint, kühl statt warm)

     ⛔ DEPRECATED (Welle 5.16-5.23 Mandarin-Oriental-Era):
        --at-mocha, --at-celadon — bleiben als Aliases (legacy), neuer Code
        nutzt --at-blue / --at-coral. Verwendet KEINE neuen mocha/celadon!
     ════════════════════════════════════════════════════════════════════════ */
  --at-bg-page:       #FAFBFD;  /* Cool Off-White — modern, kein cream/heritage */
  --at-tile-bg:       rgba(255, 255, 255, 0.82);
  --at-tile-border:   1px solid rgba(20, 152, 213, 0.12);  /* blue hairline */
  --at-tile-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 1px 2px rgba(10, 27, 51, 0.05),
    0 12px 32px rgba(10, 27, 51, 0.07);

  --at-ink:           #0A1B33;  /* Midnight Navy — text-strong */
  --at-ink-soft:      rgba(10, 27, 51, 0.65);
  --at-ink-mute:      rgba(10, 27, 51, 0.42);

  /* PRIMARY — miraTEQ Blue (Logo, CTA, Trust-Signal) */
  --at-blue:          #1498D5;
  --at-blue-bright:   #3EB6F0;
  --at-blue-deep:     #0F7BB2;

  /* ACCENT — Sunset Coral (Energy, Growth, ROI-Signal) */
  --at-coral:         #FF7A4D;
  --at-coral-bright:  #FF9466;
  --at-coral-deep:    #E55F32;

  /* TINT — Frost (Card-Subtle-Tint) */
  --at-frost:         #E8EFF7;

  --at-navy:          #0A1B33;
  --at-rule:          rgba(20, 152, 213, 0.18);  /* blue hairline */

  /* ⛔ LEGACY ALIASES — DEPRECATED, do not use in new code */
  --at-mocha:         var(--at-blue);
  --at-mocha-bright:  var(--at-blue-bright);
  --at-mocha-deep:    var(--at-blue-deep);
  --at-celadon:       var(--at-coral);
  --at-celadon-deep:  var(--at-coral-deep);

  /* Status colors */
  --at-live:          #00a86b;  /* emerald — active/live */
  --at-process:       #f5a524;  /* amber — processing */
  --at-ok:            #6592E6;  /* blue — ready/done */

  /* Easings */
  --at-ease:          cubic-bezier(0.16, 1, 0.3, 1);     /* stripe-enter */
  --at-ease-spring:   cubic-bezier(0.34, 1.56, 0.64, 1); /* spring-out subtle */
  --at-ease-snap:     cubic-bezier(0.85, 0, 0.15, 1);    /* fast-snap */

  padding-block: var(--at-pad-y);
  position: relative;
  isolation: isolate;
  /* ════════════════════════════════════════════════════════════════════════
     Welle 5.24 — "miraTEQ Digital 2026" 4-LAYER PREMIUM SECTION-BACKGROUND
     ────────────────────────────────────────────────────────────────────────
     Layer 1 (background-color):  Base — Cool Off-White / Midnight Navy
     Layer 2 (background, this):  Animated Aurora Glow — Blue+Coral mesh
                                  langsame Bewegung (~22s loop), Wow-Effekt
                                  ohne Konkurrenz zum Hero-WebGL
     Layer 3 (::before):          Blueprint Dot-Grid mit radial fade-mask
                                  Vercel-Aesthetic = Tech-Position-Signal
     Layer 4 (::after):           SVG-Grain noise — filmic depth, combat banding

     Performance: 0 KB für Aurora+Grid (pure CSS), ~700 bytes inline SVG noise.
     Aurora animiert position (GPU-accelerated), respektiert prefers-reduced-motion.
     ════════════════════════════════════════════════════════════════════════ */
  /* Welle 5.25 v8: TRANSPARENT — page-mesh schimmert durch (body::before) */
  background-color: transparent;
  position: relative;
}

/* ════════════════════════════════════════════════════════════════════════
   Welle 5.25 v7 STEP 2 — Atelier Aurora-Overlay (isoliert, mask-fade Edges)
   ────────────────────────────────────────────────────────────────────────
   Architektur: position absolute Overlay-div mit 4-Layer animated Aurora.
   mask-image fadet Top + Bottom 120px aus → seamless Übergang zu body-bg.
   Premium 2026 (Apple/Stripe-Pattern).
   ════════════════════════════════════════════════════════════════════════ */
.atelier-aurora {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse 60% 50% at 15% 40%, rgba(20, 152, 213, 0.20), transparent 65%),
    radial-gradient(ellipse 55% 45% at 85% 60%, rgba(255, 122, 77, 0.14), transparent 65%),
    radial-gradient(ellipse 50% 45% at 70% 35%, rgba(20, 152, 213, 0.16), transparent 65%),
    radial-gradient(ellipse 55% 50% at 25% 65%, rgba(255, 122, 77, 0.12), transparent 65%);
  background-size: 200% 200%, 200% 200%, 200% 200%, 200% 200%;
  background-position: 0% 50%, 100% 50%, 50% 100%, 50% 0%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 120px, black calc(100% - 120px), transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, black 120px, black calc(100% - 120px), transparent 100%);
  animation: atelier-aurora-drift 22s ease-in-out infinite;
}
@keyframes atelier-aurora-drift {
  0%, 100% { background-position: 0% 50%, 100% 50%, 50% 100%, 50% 0%; }
  50%      { background-position: 100% 50%, 0% 50%, 50% 0%, 50% 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .atelier-aurora { animation: none; }
}
body.is-dark-bg .atelier-aurora {
  background-image:
    radial-gradient(ellipse 60% 50% at 15% 40%, rgba(62, 182, 240, 0.26), transparent 65%),
    radial-gradient(ellipse 55% 45% at 85% 60%, rgba(255, 148, 102, 0.18), transparent 65%),
    radial-gradient(ellipse 50% 45% at 70% 35%, rgba(62, 182, 240, 0.22), transparent 65%),
    radial-gradient(ellipse 55% 50% at 25% 65%, rgba(255, 148, 102, 0.14), transparent 65%);
}

/* Aurora-Loop: Position-Drift schafft "atmospheric breath" ohne Color-Shift.
   GPU-accelerated über background-position (compositor-only), keine repaints. */
@keyframes atelier-aurora {
  0%, 100% {
    background-position: 0% 50%, 100% 50%, 50% 100%, 50% 0%;
  }
  50% {
    background-position: 100% 50%, 0% 50%, 50% 0%, 50% 100%;
  }
}

/* A11y: keine Bewegung wenn User reduced-motion bevorzugt */
@media (prefers-reduced-motion: reduce) {
  .atelier { animation: none; }
}

/* Layer 3 — Blueprint Dot-Grid (Vercel-Aesthetic, Tech-Position-Signal).
   Radial fade-mask: Grid ist im oberen Center am stärksten sichtbar, fadet
   zu allen Edges aus → Cards prominenter, Section atmet. miraTEQ-Blue tint
   im Dot statt schwarz → Brand-konsistent. */
/* Welle 5.25 v7: Blueprint-Grid DEAKTIVIERT — wird in STEP 2 als isoliertes
   Overlay-Element neu eingebaut wenn Continuous-Base verifiziert ist. */
.atelier::before {
  content: none;
}

/* Layer 4 — Paper-grain noise (Linear/Notion/Arc/Vercel filmic-depth pattern).
   z-index: -1 (trapped via isolation:isolate), mix-blend-mode multiply für
   organic tactile feel. */
/* Welle 5.25 v7: Paper-Grain-Noise DEAKTIVIERT — STEP 2 später. */
.atelier::after {
  content: none;
}

/* Dark-Mode Token-Overrides — "miraTEQ Digital 2026" Dark Variant
   Base: Midnight Navy #0A1B33 (statt carbon black)
   Primary: Sky Blue brighter #3EB6F0
   Accent: Soft Coral brighter #FF9466
   Tint: Slate Navy #1A2940 für Cards */
body.is-dark-bg .atelier {
  --at-bg-page:       #0A1B33;  /* Midnight Navy — Deep, kein carbon */
  --at-tile-bg:       rgba(26, 41, 64, 0.78);
  --at-tile-border:   1px solid rgba(62, 182, 240, 0.18);
  --at-tile-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 1px 2px rgba(0, 0, 0, 0.30),
    0 12px 32px rgba(0, 0, 0, 0.40);

  --at-ink:           #F0F4FA;  /* Off-white text */
  --at-ink-soft:      rgba(240, 244, 250, 0.72);
  --at-ink-mute:      rgba(240, 244, 250, 0.42);

  --at-blue:          #3EB6F0;  /* Sky Blue — brighter für Dark */
  --at-blue-bright:   #5DC4F4;
  --at-blue-deep:     #1498D5;

  --at-coral:         #FF9466;  /* Soft Coral — brighter für Dark */
  --at-coral-bright:  #FFAE8C;
  --at-coral-deep:    #FF7A4D;

  --at-frost:         #1A2940;  /* Slate Navy für Cards */
  --at-rule:          rgba(62, 182, 240, 0.25);

  /* Legacy aliases bleiben für hero-legacy compat */
  --at-mocha:         var(--at-blue);
  --at-mocha-bright:  var(--at-blue-bright);
  --at-celadon:       var(--at-coral);

  /* Welle 5.25 v7: STEP 1 — Continuous Dark base only */
  background-color: var(--at-bg-page);
}

/* Dark-Mode Blueprint-Grid: brighter Sky-Blue Dots gegen Midnight */
body.is-dark-bg .atelier::before {
  background-image: radial-gradient(circle, rgba(62, 182, 240, 0.22) 1px, transparent 1.4px);
}

/* Dark-Mode Grain: lighter blend für sichtbare Tiefe auf Navy */
body.is-dark-bg .atelier::after {
  opacity: 0.12;
  mix-blend-mode: screen;
}

body.is-dark-bg .atelier::before {
  opacity: 0.12;
  mix-blend-mode: screen;
}

/* ════════════════════════════════════════════════════════════════════════
   2. EDITORIAL HEADER (eyebrow + section-title)
   ════════════════════════════════════════════════════════════════════════ */
.atelier-header {
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  max-width: 880px;
}

.atelier-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.7rem;
  font-family: var(--at-font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.20em;
  text-transform: uppercase;
}
.atelier-eyebrow-num {
  color: var(--at-mocha);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.atelier-eyebrow-line {
  flex: 0 0 64px;
  height: 1px;
  background: linear-gradient(90deg, var(--at-mocha) 0%, transparent 100%);
}
.atelier-eyebrow-label {
  color: var(--at-ink-soft);
}

.atelier-title {
  font-family: var(--at-font-display);
  font-size: clamp(1.85rem, 3.8vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1.04;
  color: var(--at-ink);
  margin: 0;
  /* Inter-Editorial-Treatment für Premium-Look */
  font-feature-settings: "ss03", "cv11", "kern";
  font-optical-sizing: auto;
}

/* ════════════════════════════════════════════════════════════════════════
   3. BENTO-GRID (3 entkoppelte Rows)
   ════════════════════════════════════════════════════════════════════════ */
.atelier-bento {
  display: flex;
  flex-direction: column;
  gap: var(--at-row-gap);
  position: relative;
  isolation: isolate;
}

/* Welle 5.26 v43: Mini-Subhead über Row-Gruppen (Services / Apps).
   Reine Text-Markierung, kein Pill — unterscheidet semantisch:
   Row-1+2 = Webdesign Services (Web/Marketing/Consulting)
   Row-3   = Booking System Apps (Bookmi/Yummi/Shopmi) */
.atelier-subhead {
  font-family: var(--at-font-mono, 'JetBrains Mono', ui-monospace, monospace);
  font-size: clamp(0.7rem, 0.88vw, 0.82rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--at-mocha, #1498D5);
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

/* Subtle hairline AFTER the label — wie ein Section-Trenner */
.atelier-subhead::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg,
    rgba(20, 152, 213, 0.32) 0%,
    rgba(20, 152, 213, 0.04) 70%,
    transparent 100%);
}

body.is-dark-bg .atelier-subhead {
  color: rgba(110, 200, 240, 0.95);
}
body.is-dark-bg .atelier-subhead::after {
  background: linear-gradient(90deg,
    rgba(110, 200, 240, 0.32) 0%,
    rgba(110, 200, 240, 0.06) 70%,
    transparent 100%);
}

/* Apps-Variante (Row 3): gleiche Farbe wie Services (Brand-Blue konsistent),
   nur etwas mehr margin-top als visueller Kategorie-Trenner. */
.atelier-subhead--apps {
  margin-top: clamp(1rem, 2vw, 1.75rem);
}

.atelier-row {
  display: grid;
  gap: var(--at-tile-gap);
  perspective: 1800px;  /* 3D-Container für Tile-Tilt */
}

/* ─── Mobile (default): 1-col stack — keine Stretch-Probleme möglich ─── */
.atelier-row-1,
.atelier-row-2,
.atelier-row-3 {
  grid-template-columns: 1fr;
}

/* ─── Mobile + Tablet (≤1023px): Welle 5.22.16 — Tiered Vertical Layout.
   Carousel-Pattern (Welle 5.22.15) revertiert — Lazada/TikTok-Carousels passen
   nicht zur miraTEQ-Zielgruppe (40-55 J., Restaurant/Hotel/Spa-Owner, eher
   Facebook/LINE als TikTok). Recherche zeigte: B2B-Boutique-Brands
   (Pentagram, Linear, Webflow, Stripe) nutzen alle vertikal scroll, NICHT
   horizontale Carousels. Plus NN/G: Carousels haben Low-Discoverability
   bei >5 items, wir hatten 6 → Yummi/Shopmi würden missed werden.

   Stattdessen: Vertikal scroll + Tiered card-sizes. Hauptverkäufer
   (Web Design) full-size, Mid-Tier (Marketing/Consulting/Booking) etwas
   kompakter, Soon-Apps (Yummi/Shopmi) compact-mode (ehrliches Signal). */
@media (max-width: 1023px) {
  /* Mid-Tier Cards (Marketing/Consulting/Booking): padding tighter, ~25% kompakter */
  .atelier-card[data-service="marketing"] .atelier-card-body,
  .atelier-card[data-service="consulting"] .atelier-card-body,
  .atelier-card[data-service="bookmi"] .atelier-card-body {
    padding: 1.25rem 1.25rem 1rem;
  }

  /* Soon-Apps (Yummi/Shopmi): kompaktes Padding, aber Animationen sichtbar —
     konsistent zu anderen Tiles (Visual-First Apple-Pattern, Welle 5.18+). */
  .atelier-card[data-service="yummi"] .atelier-card-body,
  .atelier-card[data-service="shopmi"] .atelier-card-body {
    padding: 1rem 1.25rem 0.85rem;
  }
  /* "Coming soon"-Badge oben-rechts auf Mobile leicht kleiner */
  .atelier-card-soon-badge {
    top: 12px;
    right: 12px;
    font-size: 0.58rem;
    padding: 0.22rem 0.55rem;
  }

  /* Eyebrow auf 1 Zeile zwingen — Welle 5.22.17.
     Line zu kurz reduziert + flex-wrap: nowrap damit "01 ─ WEB DESIGN ·
     MARKETING · CONSULTING" auf einer Zeile bleibt. */
  .atelier-eyebrow {
    flex-wrap: nowrap;
    gap: 0.55rem;
    font-size: 0.62rem;
    letter-spacing: 0.14em;
  }
  .atelier-eyebrow-line {
    flex: 0 0 22px;
  }
  .atelier-eyebrow-label {
    white-space: nowrap;
  }

  /* Trust-Strip "11 YEARS · CHIANG MAI · TH + EN" auf 1 Zeile.
     Selector mit [data-service="web"] für höchste Specificity — andere rules
     (.atelier-row-1 .ui-web-source = 0.82rem) würden sonst wins. */
  .atelier-card[data-service="web"] .ui-web-source {
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    white-space: nowrap;
    min-height: 2.6rem;
    padding: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Industry-Tabs (Hotel/Restaurant/Spa/Beauty/Nails/Yoga) ALLE 6 sichtbar
     auf 1 Zeile — clean layout mit consistent line-height. */
  .atelier-card .ui-web-tabs {
    flex-wrap: nowrap;
    gap: 0.3rem;
    padding-bottom: 0;
  }
  .atelier-card .ui-web-tab {
    font-size: 0.7rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0;
    padding: 0.5rem 0.65rem;
    flex-shrink: 1;
    min-width: 0;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* ─── Mobile only (<768px): Web-Card Reorder — Visual mittig (Apple-Pattern)
   Apple Service-Page Hybrid: Title → Lede → VISUAL → Bullets → Trust Strip.
   Industry-Carousel (Hotel/Restaurant/Spa/...) IST das Verkaufsargument
   und muss früher im Card-Flow sichtbar werden, nicht nach 600px Scroll.
   Technik: display:contents auf <header> hebt Box auf — Kinder werden
   direkte Flex-Items von .atelier-card-body, dann order: numeriert.
   <header> hat hier kein implizites Landmark (innerhalb <article>),
   daher a11y-safe. ─── */
@media (max-width: 767px) {
  .atelier-card[data-service="web"] .atelier-card-head {
    display: contents;
  }
  .atelier-card[data-service="web"] .atelier-card-eyebrow { order: 1; }
  .atelier-card[data-service="web"] .atelier-card-title   { order: 2; }
  .atelier-card[data-service="web"] .atelier-card-lede    { order: 3; }
  .atelier-card[data-service="web"] .atelier-card-stage   { order: 4; }
  .atelier-card[data-service="web"] .ui-web-bullets       { order: 5; }
  .atelier-card[data-service="web"] .ui-web-source        { order: 6; }
}

/* ─── Mobile only (<540px): MARKETING-Card Visual mittig (Orbit oben in Stage)
   Recherche-Fazit (2026 Mobile + Thai-Markt): Channel-Orbit ist Trust-Signal
   (LINE = 85% Mobile-Interactions in TH) → muss früh sichtbar sein, nicht am
   Card-Bottom verstecken. Plus: Ring 3 + Planet kompakter damit LINE-Icon
   nicht aus dem Tile ragt (alter Bug: inset -8% + planet top:-14px → 30px
   Overflow nach unten). ─── */
@media (max-width: 539px) {
  /* Stage internal reorder: Orbit oben (statt unten), Funnel danach */
  .atelier-card[data-service="marketing"] .ui-mkg-orbit  { order: -1; }
  .atelier-card[data-service="marketing"] .ui-mkg-orbit {
    max-width: 180px;
    margin-bottom: 0.85rem;
  }
  /* Ring + Planet kompakter — kein Overflow mehr (auch im neuen Layout sicher) */
  .atelier-card[data-service="marketing"] .ui-mkg-orbit-ring--1 { inset: 28%; }
  .atelier-card[data-service="marketing"] .ui-mkg-orbit-ring--2 { inset: 16%; }
  .atelier-card[data-service="marketing"] .ui-mkg-orbit-ring--3 { inset: 4%; }
  .atelier-card[data-service="marketing"] .ui-mkg-orbit-planet {
    width: 22px;
    height: 22px;
    top: -11px;
  }
}

/* ─── Tablet (768+): Row 2 50/50, Row 3 50/50 mit Shopmi banner ─── */
@media (min-width: 768px) {
  .atelier-row-2,
  .atelier-row-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  /* Row 3: Shopmi spans full-width as banner */
  .atelier-row-3 > .atelier-card:nth-child(3) {
    grid-column: 1 / -1;
  }
}

/* ─── Desktop (1024+): Row 3 wird 3-col ─── */
@media (min-width: 1024px) {
  .atelier-row-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .atelier-row-3 > .atelier-card:nth-child(3) {
    grid-column: auto;  /* reset */
  }
}

/* ════════════════════════════════════════════════════════════════════════
   4. CARDS (mit aspect-ratio = stretch-frei garantiert)
   ════════════════════════════════════════════════════════════════════════ */
.atelier-card {
  position: relative;
  background: var(--at-tile-bg);
  border: var(--at-tile-border);
  border-radius: var(--at-radius);
  box-shadow: var(--at-tile-shadow);
  overflow: hidden;
  isolation: isolate;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  transform-style: preserve-3d;
  cursor: pointer;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --mag-x: 0px;
  --mag-y: 0px;
  --mx: 50%;
  --my: 50%;
  transform:
    translate3d(var(--mag-x), var(--mag-y), 0)
    rotateX(var(--tilt-x))
    rotateY(var(--tilt-y));
  transition:
    opacity 0.4s var(--at-ease),
    box-shadow 0.4s var(--at-ease),
    border-color 0.3s ease;
  will-change: transform;
}

/* ──────── Whole-Card-Click via Stretched-Link Pattern (Welle 5.21)
   Headline becomes the primary link; ::after expands hit area over the whole card.
   Internal interactives (tabs, etc.) get z-index: 2 to stay clickable above.
   ──────── */
.atelier-card-link {
  color: inherit;
  text-decoration: none;
  background-image: none;
  outline: none;
}
.atelier-card-link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}
.atelier-card-link:focus-visible::after {
  outline: 2px solid var(--at-mocha);
  outline-offset: -3px;
}

/* ──────── "Coming Soon"-Badge — Top-Right Sticker für Soon-Apps
   (Yummi, Shopmi). Editorial 2026 design: subtiles Mocha-Tint + uppercase
   tracking, klares Trust-Signal "noch nicht released, kommt bald".

   Wichtig: bei Soon-Apps wird der "öffnet sich"-Pfeil-Indikator
   (.atelier-card::after) versteckt — dort sitzt jetzt der Badge.
   Sonst doppelte Top-Right-Marker mit widersprüchlicher Botschaft
   ("kommt bald" vs "öffnet sich jetzt"). ──────── */
.atelier-card[data-service="yummi"]::after,
.atelier-card[data-service="shopmi"]::after {
  display: none;
}
.atelier-card-soon-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  font-family: var(--at-font-body);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--at-mocha);
  background: rgba(20, 152, 213, 0.08);
  border: 1px solid rgba(20, 152, 213, 0.25);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  pointer-events: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
body.is-dark-bg .atelier-card-soon-badge {
  color: #d4a14e;
  background: rgba(255, 122, 77, 0.10);
  border-color: rgba(255, 122, 77, 0.35);
}
/* Subtle headline accent on card hover */
.atelier-card.is-hovered .atelier-card-link {
  text-decoration: underline;
  text-decoration-thickness: 0.05em;
  text-decoration-color: var(--at-mocha);
  text-underline-offset: 0.16em;
}
body.is-dark-bg .atelier-card.is-hovered .atelier-card-link {
  text-decoration-color: var(--at-mocha-bright);
}
/* Internal interactives stay above the stretched link */
.ui-web-tab,
.ui-web-browser-bar,
.ui-web-caption {
  position: relative;
  z-index: 2;
}

/* Cursor-Spotlight via ::before (radial gradient folgt cursor)
   2026-Style: wider + stronger glow for premium cursor-aware feel */
.atelier-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.45s var(--at-ease);
  background: radial-gradient(
    circle 420px at var(--mx) var(--my),
    rgba(20, 152, 213, 0.22) 0%,
    rgba(20, 152, 213, 0.08) 30%,
    transparent 60%
  );
  mix-blend-mode: plus-lighter;
}
body.is-dark-bg .atelier-card::before {
  background: radial-gradient(
    circle 420px at var(--mx) var(--my),
    rgba(255, 122, 77, 0.30) 0%,
    rgba(255, 122, 77, 0.10) 30%,
    transparent 60%
  );
}

/* Hover-States: 2026 Style — soft dim + cursor-spotlight + subtle glow
   Recherche: 3D-Tilts bleiben Trend, aber subtle. Spotlight-Dim weicher,
   nicht dramatic. Hover-State mit cursor-aware radial glow. */
.atelier-bento.has-hover .atelier-card:not(.is-hovered) {
  opacity: 0.82 !important;
  filter: saturate(0.88);
}
.atelier-card.is-hovered {
  opacity: 1 !important;
  z-index: 2;
  filter: saturate(1.02);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 0 0 1px rgba(20, 152, 213, 0.28),
    0 28px 72px rgba(26, 26, 26, 0.14),
    0 10px 28px rgba(20, 152, 213, 0.10);
  border-color: rgba(20, 152, 213, 0.40);
}
.atelier-card.is-hovered::before {
  opacity: 1;
}
body.is-dark-bg .atelier-bento.has-hover .atelier-card:not(.is-hovered) {
  opacity: 0.72 !important;
  filter: saturate(0.85) brightness(0.92);
}
body.is-dark-bg .atelier-card.is-hovered {
  filter: saturate(1.05);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 0 0 1px rgba(255, 122, 77, 0.38),
    0 28px 72px rgba(0, 0, 0, 0.55),
    0 10px 28px rgba(255, 122, 77, 0.15);
  border-color: rgba(255, 122, 77, 0.48);
}

/* Aspect-Ratios per Row
   Welle 5.26 v52: Row 1 (Webdesign-Hero-Card) — aspect-ratio durch min-height
   ersetzt, weil fixe aspect-ratio + overflow:hidden den Trust-Strip am Bottom
   abschnitt sobald Title 2-zeilig wurde (iPad Mini / schmalere Desktops).
   min-height garantiert Premium-Visual-Maß, lässt aber Content nach unten
   wachsen wenn nötig. */
@media (min-width: 768px) {
  .atelier-row-1 > .atelier-card { aspect-ratio: auto; min-height: clamp(420px, 56vw, 520px); }
  /* Row 2 + Row 3: content-driven, no min-height — Grid-stretch keeps row consistent */
  .atelier-row-2 > .atelier-card { aspect-ratio: auto; }
  .atelier-row-3 > .atelier-card { aspect-ratio: auto; }
}
@media (min-width: 1024px) {
  .atelier-row-1 > .atelier-card { aspect-ratio: auto; min-height: clamp(460px, 38vw, 600px); }
  .atelier-row-2 > .atelier-card { aspect-ratio: auto; }
  .atelier-row-3 > .atelier-card { aspect-ratio: auto; }
}

/* ─── Card Body Layout ─── */
.atelier-card-body {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: clamp(1.1rem, 2.4vw, 1.75rem);
  gap: clamp(0.6rem, 1.2vw, 1rem);
}

/* HERO-CARD: Side-by-side Layout (Content links, Visual rechts) */
@media (min-width: 768px) {
  .atelier-row-1 > .atelier-card .atelier-card-body {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(1.25rem, 2.5vw, 2rem);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    align-items: stretch;  /* full height per column, no centering */
  }
  /* Header in left column fills full height — Trust + CTA group at bottom */
  .atelier-row-1 > .atelier-card .atelier-card-head {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    height: 100%;
  }
  .atelier-row-1 > .atelier-card .atelier-card-lede {
    font-size: 1rem;
    line-height: 1.55;
  }
  /* Trust-Strip: linksbündig im Card-Body (nur so breit wie Text + Padding),
     Text mittig im Strip — Hairlines (::before/::after) skalieren mit dem
     schmaleren Element. flex + line-height:1 für saubere vertikale Mitte. */
  .atelier-row-1 > .atelier-card .ui-web-source {
    margin-top: 0.5rem;
    margin-right: auto;
    width: fit-content;
    padding: 0 1.25rem;
    min-height: 2.6rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.atelier-card-head {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.atelier-card-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: max-content;
  padding: 0.22rem 0.65rem 0.22rem 0.5rem;
  font-family: var(--at-font-body);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--at-ink-soft);
  background: rgba(26, 26, 26, 0.04);
  border-radius: 999px;
  border: 1px solid rgba(26, 26, 26, 0.06);
}
body.is-dark-bg .atelier-card-eyebrow {
  background: rgba(245, 237, 224, 0.06);
  border-color: rgba(245, 237, 224, 0.10);
}
/* Welle 5.26 v12: optionales Mini-Logo im Eyebrow-Pill (Wiedererkennungswert) */
.atelier-card-eyebrow-logo {
  display: block;
  height: 32px;
  width: auto;
  flex-shrink: 0;
  margin: -4px 0; /* Logo darf leicht über Pill hinausragen, ohne Pill aufzublähen */
}
body.is-dark-bg .atelier-card-eyebrow-logo {
  /* Welle 5.26 v44: invert-Filter ersetzt — bei farbigen 3D-Render-Logos
     (Webdesign-Browser, Marketing-Globus, Booking-Calendar etc.) führte
     invert zu unbrand-konformen Farben (gelb/cyan). Stattdessen leicht
     dimmen damit Logos im Dark-Mode kontextuell ruhiger wirken. */
  filter: brightness(0.95) saturate(0.92);
}
.atelier-card-title {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
  font-family: var(--at-font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--at-ink);
  margin: 0;
  line-height: 1.1;
  font-optical-sizing: auto;
}
.atelier-card-tag {
  font-family: var(--at-font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--at-ink-mute);
  padding: 0.22rem 0.55rem;
  background: rgba(26, 26, 26, 0.04);
  border-radius: 6px;
}
body.is-dark-bg .atelier-card-tag {
  background: rgba(245, 237, 224, 0.08);
}
.atelier-card-lede {
  font-family: var(--at-font-body);
  font-size: 0.94rem;
  line-height: 1.5;
  color: var(--at-ink-soft);
  margin: 0;
  max-width: 52ch;
}

.atelier-card-stage {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(0.6rem, 1.2vw, 0.9rem);
  position: relative;
  min-height: 0;
}

/* HERO-CARD: Grid-Items top-align */
@media (min-width: 768px) {
  .atelier-row-1 .atelier-card-body > * {
    align-self: stretch;
  }
}

/* ════════════════════════════════════════════════════════════════════════
   5. CROSS-CUTTING: Status-Pulse-Dots
   ════════════════════════════════════════════════════════════════════════ */
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  position: relative;
  flex-shrink: 0;
}
.status-dot::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: inherit;
  animation: status-pulse 2.4s ease-out infinite;
}
.status-dot--live    { background: var(--at-live); }
.status-dot--process { background: var(--at-process); }
.status-dot--ok      { background: var(--at-ok); }

@keyframes status-pulse {
  0%   { transform: scale(1);    opacity: 0.55; }
  100% { transform: scale(2.6);  opacity: 0;    }
}

/* ════════════════════════════════════════════════════════════════════════
   6. WEBDESIGN-TILE (Hero) — "Why a website?" (Welle 5.18 rebuild)
   ════════════════════════════════════════════════════════════════════════ */
.ui-web {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  height: 100%;
  justify-content: center;
}

/* Service-Eyebrow (clean, no Live-pill) — Editorial-Style category label */
.atelier-card-eyebrow--service {
  background: transparent;
  border: none;
  padding-left: 0;
  padding-right: 0;
  letter-spacing: 0.22em;
  font-size: 0.7rem;
  color: var(--at-mocha);
}
body.is-dark-bg .atelier-card-eyebrow--service {
  background: transparent;
  border: none;
  color: var(--at-mocha-bright);
}
/* Statement-headline — default scale (Row 2/3 tiles) */
.atelier-card-title--question {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}
/* Hero override (Row 1) — confident scale */
.atelier-row-1 .atelier-card-title--question {
  font-size: clamp(1.85rem, 3.6vw, 2.85rem);
  line-height: 1.04;
  letter-spacing: -0.032em;
}
@media (min-width: 1024px) {
  .atelier-row-1 .atelier-card-lede {
    font-size: 1.08rem;
    line-height: 1.55;
  }
  .atelier-row-1 .ui-web-bullets li {
    font-size: 0.95rem;
  }
}

/* The 1,000 vs 20 anchor — Facebook reach today */
.ui-web-anchor {
  margin-top: 0.85rem;
  padding: 0.9rem 1.1rem 0.75rem;
  background: linear-gradient(135deg,
    rgba(20, 152, 213, 0.06),
    rgba(20, 152, 213, 0.02));
  border: 1px solid var(--at-rule);
  border-radius: var(--at-radius-sm);
}
body.is-dark-bg .ui-web-anchor {
  background: linear-gradient(135deg,
    rgba(255, 122, 77, 0.08),
    rgba(255, 122, 77, 0.02));
}
.ui-web-anchor-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 0;
}
.ui-web-anchor-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  text-align: center;
  padding: 0.15rem 0.55rem;
}
.ui-web-anchor-side + .ui-web-anchor-side {
  border-left: 1px solid var(--at-rule);
}
.ui-web-anchor-num {
  font-family: var(--at-font-mono);
  font-size: clamp(1.7rem, 3.6vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--at-ink-mute);
}
.ui-web-anchor-side--alt .ui-web-anchor-num {
  color: var(--at-ink);
}
.ui-web-anchor-label {
  font-family: var(--at-font-body);
  font-size: 0.72rem;
  color: var(--at-ink-soft);
  letter-spacing: 0.02em;
  line-height: 1.3;
}
.ui-web-anchor-caption {
  margin: 0.65rem 0 0;
  font-family: var(--at-font-body);
  font-size: 0.76rem;
  font-style: italic;
  color: var(--at-ink-mute);
  text-align: center;
  letter-spacing: 0.01em;
}

/* 3-Bullet trust list */
.ui-web-bullets {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}
.ui-web-bullets li {
  position: relative;
  padding-left: 1.15rem;
  font-family: var(--at-font-body);
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--at-ink-soft);
}
.ui-web-bullets li::before {
  content: '';
  position: absolute;
  top: 0.55rem;
  left: 0.15rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--at-mocha);
}

/* Trust-Strip — shared Editorial 2026 badge with gold-gradient hairlines + warm tint
   (Recherche: 2026 = wide letter-spacing, bolder weight, gold accents, subtle background) */
.ui-web-source,
.atelier-trust-strip {
  position: relative;
  /* Welle 5.26 v51: 0.9rem → 1.5rem — etwas mehr Air zwischen Bullets
     und Trust-Strip damit der Strip optisch nicht direkt klebt. */
  margin: 1.5rem 0 0;
  padding: 1.05rem 0;
  font-family: var(--at-font-body);
  font-size: 0.8rem;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--at-ink);
  text-align: left;
  border: none;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(20, 152, 213, 0.04) 20%,
    rgba(20, 152, 213, 0.05) 50%,
    rgba(20, 152, 213, 0.04) 80%,
    transparent 100%
  );
}
/* Gold-gradient hairlines (fade out at edges) */
.ui-web-source::before,
.ui-web-source::after,
.atelier-trust-strip::before,
.atelier-trust-strip::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(20, 152, 213, 0.45) 25%,
    rgba(20, 152, 213, 0.55) 50%,
    rgba(20, 152, 213, 0.45) 75%,
    transparent 100%
  );
}
.ui-web-source::before,
.atelier-trust-strip::before { top: 0; }
.ui-web-source::after,
.atelier-trust-strip::after { bottom: 0; }
/* Hero (Row 1) version is slightly larger */
.atelier-row-1 .ui-web-source {
  font-size: 0.82rem;
  letter-spacing: 0.26em;
}
/* Dark mode — brighter gold gradient */
body.is-dark-bg .ui-web-source,
body.is-dark-bg .atelier-trust-strip {
  color: var(--at-ink);
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(255, 122, 77, 0.06) 20%,
    rgba(255, 122, 77, 0.08) 50%,
    rgba(255, 122, 77, 0.06) 80%,
    transparent 100%
  );
}
body.is-dark-bg .ui-web-source::before,
body.is-dark-bg .ui-web-source::after,
body.is-dark-bg .atelier-trust-strip::before,
body.is-dark-bg .atelier-trust-strip::after {
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(255, 122, 77, 0.55) 25%,
    rgba(255, 122, 77, 0.65) 50%,
    rgba(255, 122, 77, 0.55) 75%,
    transparent 100%
  );
}

/* Browser-Mockup */
.ui-web-browser {
  background: #f5f5f7;
  border: 1px solid rgba(26, 26, 26, 0.08);
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  position: relative;
  box-shadow:
    0 8px 24px rgba(26, 26, 26, 0.08),
    0 2px 6px rgba(26, 26, 26, 0.05);
}
body.is-dark-bg .ui-web-browser {
  background: #1a2030;
  border-color: rgba(245, 237, 224, 0.10);
}
.ui-web-browser-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.75rem;
  background: rgba(26, 26, 26, 0.04);
  border-bottom: 1px solid rgba(26, 26, 26, 0.06);
}
body.is-dark-bg .ui-web-browser-bar {
  background: rgba(245, 237, 224, 0.04);
  border-bottom-color: rgba(245, 237, 224, 0.06);
}
.ui-web-browser-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(26, 26, 26, 0.20);
}
.ui-web-browser-dot--r { background: #ff5f57; }
.ui-web-browser-dot--y { background: #febc2e; }
.ui-web-browser-dot--g { background: #28c840; }
.ui-web-browser-url {
  flex: 1;
  margin-left: 0.45rem;
  padding: 0.28rem 0.75rem;
  background: rgba(26, 26, 26, 0.06);
  border-radius: 999px;
  font-family: var(--at-font-mono);
  font-size: 0.72rem;
  color: var(--at-ink-soft);
  position: relative;
  min-height: 1.35rem;
  overflow: hidden;
}
body.is-dark-bg .ui-web-browser-url {
  background: rgba(245, 237, 224, 0.08);
}
.ui-web-browser-url .cycle-item {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s var(--at-ease), transform 0.45s var(--at-ease);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.ui-web-browser-url .cycle-item.is-active {
  opacity: 1;
  transform: translateY(0);
}
.ui-web-browser-screen {
  position: relative;
  width: 100%;
  height: calc(100% - 2.4rem);
  overflow: hidden;
}
.ui-web-site {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.6s var(--at-ease), transform 0.8s var(--at-ease);
}
.ui-web-site.is-active {
  opacity: 1;
  transform: scale(1);
}
.ui-web-site img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Industry-Tabs above the browser preview — auto-sync + clickable */
.ui-web-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}
.ui-web-tab {
  font-family: var(--at-font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--at-rule);
  background: rgba(26, 26, 26, 0.02);
  color: var(--at-ink-soft);
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.25s var(--at-ease),
    color 0.25s var(--at-ease),
    border-color 0.25s var(--at-ease),
    transform 0.18s var(--at-ease);
  -webkit-tap-highlight-color: transparent;
}
.ui-web-tab:hover {
  border-color: var(--at-mocha);
  color: var(--at-ink);
}
.ui-web-tab:active { transform: scale(0.97); }
.ui-web-tab.is-active {
  background: var(--at-ink);
  color: var(--at-bg-page);
  border-color: var(--at-ink);
}
body.is-dark-bg .ui-web-tab {
  background: rgba(245, 237, 224, 0.03);
}
body.is-dark-bg .ui-web-tab.is-active {
  background: var(--at-mocha);
  color: #0a0d14;
  border-color: var(--at-mocha);
}

/* Welle 5.22.18 — Caption komplett ausgeblendet (Desktop + Mobile).
   Begründung: Caption ("Spa · Malee Spa · Phuket") ist redundant zu Tab
   (Category) + Browser-URL (Brand). Apple/Stripe/Linear-Standard: Mockup
   spricht für sich, keine Caption unter Product-Mockups. */
.ui-web-caption {
  display: none !important;
}

/* Legacy styles (kept for reference, no longer rendered) */
.ui-web-caption-legacy {
  position: relative;
  min-height: 1.5rem;
  margin: 0.85rem 0 0;
  font-family: var(--at-font-body);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--at-ink-soft);
  letter-spacing: 0.025em;
  text-align: left;
}
.ui-web-caption .cycle-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.5s var(--at-ease), transform 0.5s var(--at-ease);
  white-space: nowrap;
}
.ui-web-caption .cycle-item.is-active {
  opacity: 1;
  transform: translateY(0);
}

/* Sparkline-Draw keyframe (preserved — used by other tiles) */
.ui-sparkline-draw {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: sparkline-draw 1.8s var(--at-ease) 0.4s forwards;
}
@keyframes sparkline-draw {
  to { stroke-dashoffset: 0; }
}

/* ════════════════════════════════════════════════════════════════════════
   7. MARKETING-TILE — "Funnel Live"
   ════════════════════════════════════════════════════════════════════════ */
.ui-mkg {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  height: 100%;
}
@media (min-width: 540px) {
  .ui-mkg {
    grid-template-columns: 1.5fr 1fr;
    align-items: center;
  }
}

.ui-mkg-funnel {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.ui-mkg-funnel-step {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.7rem;
  align-items: baseline;
  padding: 0.65rem 0.85rem;
  background: rgba(26, 26, 26, 0.03);
  border-radius: var(--at-radius-sm);
  position: relative;
  overflow: hidden;
}
body.is-dark-bg .ui-mkg-funnel-step {
  background: rgba(245, 237, 224, 0.04);
}
.ui-mkg-funnel-num {
  font-family: var(--at-font-mono);
  font-size: 1.3rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.025em;
  color: var(--at-ink);
  line-height: 1;
  grid-row: 1;
}
.ui-mkg-funnel-label {
  font-family: var(--at-font-body);
  font-size: 0.76rem;
  color: var(--at-ink-soft);
  grid-row: 1;
  align-self: center;
}
.ui-mkg-funnel-bar {
  grid-column: 1 / -1;
  grid-row: 2;
  height: 4px;
  margin-top: 0.45rem;
  background: rgba(26, 26, 26, 0.06);
  border-radius: 999px;
  position: relative;
  overflow: hidden;
}
body.is-dark-bg .ui-mkg-funnel-bar {
  background: rgba(245, 237, 224, 0.08);
}
.ui-mkg-funnel-bar::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--fill, 50%);
  background: linear-gradient(90deg, var(--at-celadon), var(--at-mocha));
  border-radius: inherit;
  transform: scaleX(0);
  transform-origin: left;
  animation: funnel-bar-draw 1.6s var(--at-ease) 0.3s forwards;
}
@keyframes funnel-bar-draw {
  to { transform: scaleX(1); }
}

/* Channel-Orbit */
.ui-mkg-orbit {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 200px;
  margin: 0 auto;
}
.ui-mkg-orbit-core {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 50%;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  background:
    radial-gradient(circle at 30% 30%, rgba(122, 155, 135, 0.30), rgba(122, 155, 135, 0.05)),
    rgba(20, 152, 213, 0.10);
  border: 1px solid rgba(20, 152, 213, 0.32);
  border-radius: 50%;
  text-align: center;
  padding: 0.4rem;
}
.ui-mkg-orbit-core-num {
  font-family: var(--at-font-mono);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--at-ink);
  line-height: 1;
  letter-spacing: -0.02em;
}
.ui-mkg-orbit-core-label {
  font-family: var(--at-font-body);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--at-ink-soft);
  line-height: 1.2;
  text-transform: uppercase;
}

.ui-mkg-orbit-ring {
  position: absolute;
  inset: 0;
  border: 1px dashed rgba(26, 26, 26, 0.10);
  border-radius: 50%;
  animation: orbit-rotate linear infinite;
}
body.is-dark-bg .ui-mkg-orbit-ring {
  border-color: rgba(245, 237, 224, 0.12);
}
.ui-mkg-orbit-ring--1 { inset: 12%; animation-duration: 18s; }
.ui-mkg-orbit-ring--2 { inset: 0%;  animation-duration: 26s; animation-direction: reverse; }
.ui-mkg-orbit-ring--3 { inset: -8%; animation-duration: 32s; }

.ui-mkg-orbit-planet {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-family: var(--at-font-body);
  font-weight: 700;
  font-size: 0.78rem;
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(26, 26, 26, 0.22);
}
.ui-mkg-orbit-planet svg { display: block; }
.ui-mkg-orbit-planet[data-channel="google"] {
  background: #fff;  /* 4-Farben Google G braucht weißen BG */
  border: 1px solid rgba(26, 26, 26, 0.08);
}
.ui-mkg-orbit-planet[data-channel="fb"]   { background: #1877F2; }
.ui-mkg-orbit-planet[data-channel="line"] { background: #06C755; }

@keyframes orbit-rotate {
  to { transform: rotate(360deg); }
}

.ui-mkg-foot {
  grid-column: 1 / -1;
  font-family: var(--at-font-body);
  font-style: italic;
  font-size: 0.8rem;
  color: var(--at-ink-soft);
  text-align: center;
  margin: 0;
}
.ui-mkg-foot strong {
  color: var(--at-ink);
  font-weight: 600;
  font-style: normal;
}

/* ════════════════════════════════════════════════════════════════════════
   8. CONSULTING-TILE — "Living Globe" (Three.js)
   ════════════════════════════════════════════════════════════════════════ */
.ui-cns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  height: 100%;
  align-items: center;
}
@media (min-width: 540px) {
  .ui-cns {
    /* Map left (compact), stats right — keeps tile from getting too tall */
    grid-template-columns: 1.6fr 1fr;
  }
}

/* ============================================================
   Welle 5.20 — Atelier SVG-Globe (zurück zum ersten Entwurf)
   200×200 sphere mit rotating lat/long lines + curved arc.
   Kompakt + elegant + premium-editorial. Kein JS, kein WebGL.
   ============================================================ */
.ui-cns-globe {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 240px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--at-celadon, #7a9b87);
}
.ui-cns-globe-svg {
  width: 100%;
  height: auto;
  display: block;
  color: var(--at-celadon, #7a9b87);
}
body.is-dark-bg .ui-cns-globe-svg {
  color: #c5d4cb;
}

/* Lat/long ellipses rotate slowly → "spinning globe" feel without WebGL */
.globe-longs {
  transform-origin: 100px 100px;
  animation: globe-rotate 80s linear infinite;
}
@keyframes globe-rotate {
  to { transform: rotate(360deg); }
}

/* Arc: draws itself in once on scroll, then rests. Subtle width breath ambient. */
.globe-arc {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: globe-arc-draw 6s var(--at-ease, ease-out) 0.6s infinite;
}
@keyframes globe-arc-draw {
  0%   { stroke-dashoffset: 200; opacity: 0; }
  12%  { opacity: 1; }
  55%  { stroke-dashoffset: 0;   opacity: 1; }
  82%  { stroke-dashoffset: 0;   opacity: 1; }
  100% { stroke-dashoffset: 0;   opacity: 0; }
}

/* Marker cores — pulsing gold dot */
.globe-marker {
  transform-origin: center;
  transform-box: fill-box;
  animation: globe-marker-pulse 2.6s ease-in-out infinite;
}
.globe-marker--de { animation-delay: 0s; }
.globe-marker--bkk { animation-delay: 1.3s; }
@keyframes globe-marker-pulse {
  0%, 100% { transform: scale(1); opacity: 0.90; }
  50%      { transform: scale(1.25); opacity: 1; }
}

/* Marker halo rings — radar-style ripple expanding outward */
.globe-marker-halo {
  transform-origin: center;
  transform-box: fill-box;
  opacity: 0;
  animation: globe-marker-ripple 2.6s ease-out infinite;
}
.globe-marker-halo--de { animation-delay: 0s; }
.globe-marker-halo--bkk { animation-delay: 1.3s; }
@keyframes globe-marker-ripple {
  0%   { transform: scale(0.4); opacity: 0.85; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* Travelling pulse-dot on arc — bright glow during flight */
.globe-arc-pulse {
  opacity: 0;
  animation: globe-pulse-fade 3.6s ease-in-out infinite;
}
@keyframes globe-pulse-fade {
  0%, 55%, 100% { opacity: 0; }
  10%, 45%      { opacity: 1; }
}

/* City labels next to markers — small uppercase tracking, atelier ink */
.ui-cns-globe-city {
  font-family: var(--at-font-body, 'Inter', sans-serif);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  fill: var(--at-ink, #2a1a0c);
  text-transform: uppercase;
}
body.is-dark-bg .ui-cns-globe-city {
  fill: #f0e3c8;
}

/* Caption underneath sphere */
.ui-cns-globe-caption {
  margin: 0.6rem 0 0;
  font-family: var(--at-font-body, 'Inter', sans-serif);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--at-ink-soft, #6b5544);
  text-align: center;
  letter-spacing: 0.025em;
}

/* Country-code pair badge (replaces emoji flags) */
.ui-cns-stat-pair {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--at-font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.ui-cns-cc {
  display: inline-block;
  padding: 0.22rem 0.55rem;
  background: rgba(20, 152, 213, 0.08);
  border: 1px solid rgba(20, 152, 213, 0.30);
  border-radius: 5px;
  color: var(--at-ink);
  font-variant-numeric: tabular-nums;
}
.ui-cns-cc-arrow {
  color: var(--at-mocha);
  font-size: 0.85rem;
}
body.is-dark-bg .ui-cns-cc {
  background: rgba(255, 122, 77, 0.10);
  border-color: rgba(255, 122, 77, 0.38);
}
body.is-dark-bg .ui-cns-cc-arrow {
  color: var(--at-mocha-bright);
}
/* Longitude lines rotate slowly — gives sense of spinning globe */
.ui-cns-globe-svg .globe-longs {
  transform-origin: 100px 100px;
  animation: globe-rotate 80s linear infinite;
}
@keyframes globe-rotate {
  to { transform: rotate(360deg); }
}

/* Static arc — always fully drawn (no animation glitches that show partial-state) */
.ui-cns-globe-svg .globe-arc--static {
  opacity: 0.9;
}
/* Legacy animated arc (kept for any other usage) */
.ui-cns-globe-svg .globe-arc:not(.globe-arc--static) {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: globe-arc-draw 6s var(--at-ease) infinite;
}
@keyframes globe-arc-draw {
  0%   { stroke-dashoffset: 200; opacity: 0; }
  10%  { opacity: 1; }
  60%  { stroke-dashoffset: 0;   opacity: 1; }
  85%  { stroke-dashoffset: 0;   opacity: 0; }
  100% { stroke-dashoffset: 0;   opacity: 0; }
}

/* Markers: subtle drop-shadow glow (no pulse animation — keeps single dot clean) */
.ui-cns-globe-svg .globe-marker {
  filter: drop-shadow(0 0 3px rgba(255, 122, 77, 0.6));
}

/* Dark mode globe color */
body.is-dark-bg .ui-cns-globe-svg {
  color: var(--at-celadon);
}

/* City labels on globe */
.ui-cns-globe-city {
  font-family: var(--at-font-body);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  fill: var(--at-ink);
  text-transform: uppercase;
}
body.is-dark-bg .ui-cns-globe-city {
  fill: var(--at-ink);
}

/* Globe caption underneath */
.ui-cns-globe-caption {
  margin: 0.7rem 0 0;
  font-family: var(--at-font-body);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--at-ink-soft);
  text-align: center;
  letter-spacing: 0.025em;
}

.ui-cns-stats {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.ui-cns-stat {
  padding: 0.85rem 1rem;
  background: rgba(26, 26, 26, 0.03);
  border: 1px solid rgba(26, 26, 26, 0.06);
  border-radius: var(--at-radius-sm);
}
body.is-dark-bg .ui-cns-stat {
  background: rgba(245, 237, 224, 0.04);
  border-color: rgba(245, 237, 224, 0.08);
}
.ui-cns-stat-num {
  font-family: var(--at-font-mono);
  font-size: 1.8rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--at-ink);
  display: block;
  line-height: 1;
  letter-spacing: -0.025em;
}
/* Text-status variant (e.g. "Live" instead of a number) */
.ui-cns-stat-num--text {
  font-family: var(--at-font-body);
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--at-live);
}
.ui-cns-stat-label {
  font-family: var(--at-font-body);
  font-size: 0.78rem;
  color: var(--at-ink-soft);
  display: block;
  margin-top: 0.3rem;
  line-height: 1.3;
}
.ui-cns-stat--badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg,
    rgba(122, 155, 135, 0.16),
    rgba(20, 152, 213, 0.06));
  border-color: rgba(122, 155, 135, 0.25);
}
.ui-cns-stat-icon { font-size: 1.3rem; }
.ui-cns-stat--badge .ui-cns-stat-label { margin-top: 0; }

.ui-cns-stepper {
  grid-column: 1 / -1;
  display: flex;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.ui-cns-step {
  flex: 1;
  padding: 0.5rem 0.7rem;
  background: rgba(26, 26, 26, 0.04);
  border-radius: 8px;
  font-family: var(--at-font-body);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--at-ink-mute);
  text-align: center;
  position: relative;
  letter-spacing: 0.03em;
}
body.is-dark-bg .ui-cns-step {
  background: rgba(245, 237, 224, 0.05);
}
.ui-cns-step.is-done {
  color: var(--at-ink-soft);
}
.ui-cns-step.is-done::before {
  content: '✓ ';
  color: var(--at-live);
}
.ui-cns-step.is-active {
  color: var(--at-ink);
  background: linear-gradient(135deg,
    rgba(20, 152, 213, 0.18),
    rgba(20, 152, 213, 0.06));
  border: 1px solid rgba(20, 152, 213, 0.30);
  animation: step-active-pulse 2.4s ease-in-out infinite;
}
@keyframes step-active-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(20, 152, 213, 0.22); }
  50%      { box-shadow: 0 0 0 6px rgba(20, 152, 213, 0); }
}

/* ════════════════════════════════════════════════════════════════════════
   9. BOOKMI-TILE — "Today's Bookings Board" (Welle 5.21, premium-max 2026)
   Acuity/Calendly/Resy-pattern: live appointment cards stack with avatar,
   name, service, time + LINE confirmation. New bookings slide in from top.
   ════════════════════════════════════════════════════════════════════════ */
.ui-bkm {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  height: 100%;
}
.ui-bkm-board {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  /* Extra bottom-padding keeps last appointment card clear of the
     card-mark indicator (bottom-right ↗ ring) on the parent .atelier-card */
  padding: 0.75rem 0.85rem 0.55rem;
  background: linear-gradient(135deg,
    rgba(20, 152, 213, 0.05),
    rgba(20, 152, 213, 0.01));
  border: 1px solid rgba(20, 152, 213, 0.14);
  border-radius: var(--at-radius-sm);
  position: relative;
  min-height: 0;
  overflow: hidden;
}
body.is-dark-bg .ui-bkm-board {
  background: linear-gradient(135deg,
    rgba(255, 122, 77, 0.05),
    rgba(255, 122, 77, 0.01));
  border-color: rgba(255, 122, 77, 0.14);
}

/* Header — big number left, label + small LINE sub-line right */
.ui-bkm-board-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px dashed rgba(20, 152, 213, 0.18);
}
body.is-dark-bg .ui-bkm-board-head {
  border-bottom-color: rgba(255, 122, 77, 0.22);
}
.ui-bkm-board-num {
  font-family: var(--at-font-mono);
  font-size: clamp(1.6rem, 3.8vw, 2rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--at-ink);
}
.ui-bkm-board-meta {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}
.ui-bkm-board-label {
  font-family: var(--at-font-body);
  font-size: 0.72rem;
  color: var(--at-ink-soft);
  line-height: 1.2;
}
.ui-bkm-board-line-sub {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--at-font-body);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--at-ink-mute);
}
.ui-bkm-board-line-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 13px;
  height: 13px;
  background: #06C755;
  border-radius: 3px;
  flex-shrink: 0;
}

/* Appointment list — position:relative anchors absolute leaving items so list-height stays stable */
.ui-bkm-board-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  flex: 1 1 auto;
  min-height: 0;
  justify-content: space-around;
  position: relative;
  overflow: hidden;
}

/* Single appointment card — avatar | body | meta (compact) */
.ui-bkm-appt {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.6rem;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(26, 26, 26, 0.06);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(26, 26, 26, 0.04);
  transition: transform 0.4s var(--at-ease), box-shadow 0.4s var(--at-ease), opacity 0.4s ease;
}
body.is-dark-bg .ui-bkm-appt {
  background: rgba(245, 237, 224, 0.04);
  border-color: rgba(245, 237, 224, 0.08);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

/* Avatar — 26px circle with initials, service-coloured */
.ui-bkm-appt-avatar {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  background: var(--svc-color, var(--at-mocha));
  color: #fff;
  font-family: var(--at-font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.20) inset;
}
/* Service colors */
.ui-bkm-appt[data-svc="1"] { --svc-color: var(--at-mocha); }      /* Thai Massage */
.ui-bkm-appt[data-svc="2"] { --svc-color: #06C755; }              /* Wellness (LINE-green) */
.ui-bkm-appt[data-svc="3"] { --svc-color: #d4a14e; }              /* Aroma Oil (gold) */
.ui-bkm-appt[data-svc="4"] { --svc-color: #8baa9b; }              /* Foot Massage (sage) */

.ui-bkm-appt-body {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}
.ui-bkm-appt-name {
  font-family: var(--at-font-body);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--at-ink);
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ui-bkm-appt-svc {
  font-family: var(--at-font-body);
  font-size: 0.68rem;
  color: var(--at-ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ui-bkm-appt-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}
.ui-bkm-appt-time {
  font-family: var(--at-font-mono);
  font-size: 0.84rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--at-ink);
  letter-spacing: -0.01em;
}
.ui-bkm-appt-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: rgba(6, 199, 85, 0.12);
  border: 1px solid rgba(6, 199, 85, 0.25);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Fresh booking slide-in animation */
.ui-bkm-appt.is-fresh {
  animation: ui-bkm-appt-pop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
  border-color: rgba(6, 199, 85, 0.40);
  box-shadow:
    0 1px 2px rgba(26, 26, 26, 0.04),
    0 0 0 3px rgba(6, 199, 85, 0.10),
    0 6px 14px rgba(6, 199, 85, 0.12);
}
@keyframes ui-bkm-appt-pop {
  0%   { opacity: 0; transform: translateY(-18px) scale(0.96); }
  60%  { opacity: 1; transform: translateY(2px)   scale(1.01); }
  100% { opacity: 1; transform: translateY(0)     scale(1); }
}
/* Card sliding out (oldest) */
/* Leaving = pulled out of flow → list-height never grows when new item slides in */
.ui-bkm-appt.is-leaving {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  pointer-events: none;
  animation: ui-bkm-appt-leave 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes ui-bkm-appt-leave {
  to { opacity: 0; transform: translateY(10px) scale(0.96); }
}


/* ════════════════════════════════════════════════════════════════════════
   10. YUMMI-TILE — "Phone → Kitchen Flow" (Welle 5.21, mobile-first compact)
   Stat integrated into the kitchen-display header; no separate footer.
   ════════════════════════════════════════════════════════════════════════ */
.ui-yum {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  height: 100%;
}

/* Flow: Phone | Arrow | Kitchen — Kitchen stretches, others center */
.ui-yum-flow {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: stretch;
  gap: 0.5rem;
  padding: 0.55rem;
  background: linear-gradient(135deg,
    rgba(217, 119, 87, 0.04),
    rgba(217, 119, 87, 0.01));
  border: 1px solid rgba(217, 119, 87, 0.14);
  border-radius: var(--at-radius-sm);
  min-height: 0;
}
/* Kitchen fills its grid cell vertically so tickets can space-center */
.ui-yum-kitchen { height: 100%; }
body.is-dark-bg .ui-yum-flow {
  background: linear-gradient(135deg,
    rgba(217, 119, 87, 0.06),
    rgba(217, 119, 87, 0.02));
  border-color: rgba(217, 119, 87, 0.20);
}

/* Phone-Mockup — premium iPhone-style (compact) */
.ui-yum-phone {
  position: relative;
  width: 72px;
  background: linear-gradient(155deg, #2a2a2a 0%, #0a0a0a 100%);
  border-radius: 15px;
  padding: 10px 4px 7px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 6px 16px rgba(26, 26, 26, 0.18),
    0 2px 4px rgba(26, 26, 26, 0.10);
  align-self: center;
}
/* Dynamic-Island-style notch */
.ui-yum-phone-notch {
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 7px;
  background: #0a0a0a;
  border-radius: 999px;
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.06);
}
.ui-yum-phone-screen {
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
  border-radius: 9px;
  padding: 8px 6px 6px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: stretch;
  box-shadow: inset 0 0 0 0.5px rgba(26, 26, 26, 0.06);
}
.ui-yum-qr {
  width: 100%;
  aspect-ratio: 1;
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  padding: 2px;
  background: #fff;
  box-shadow: inset 0 0 0 0.5px rgba(26, 26, 26, 0.08);
}
.ui-yum-qr-scan {
  animation: ui-yum-qr-scan-line 2.6s ease-in-out infinite;
  transform-origin: center;
}
@keyframes ui-yum-qr-scan-line {
  0%, 100% { transform: translateY(0); opacity: 0; }
  10%      { opacity: 0.6; }
  50%      { transform: translateY(19px); opacity: 0.8; }
  90%      { opacity: 0.6; }
}
.ui-yum-promptpay {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 0 2px;
  border-top: 0.5px solid rgba(26, 26, 26, 0.08);
}
.ui-yum-promptpay-brand {
  font-family: var(--at-font-body);
  font-size: 0.48rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #1e40af;
  text-transform: uppercase;
}
.ui-yum-promptpay-amount {
  font-family: var(--at-font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #0a0a0a;
  letter-spacing: -0.02em;
  line-height: 1;
}

/* Flow arrow with traveling dots */
.ui-yum-flow-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  color: var(--at-mocha);
  align-self: center;
}
.ui-yum-flow-track {
  position: relative;
  width: 30px;
  height: 4px;
  background: rgba(20, 152, 213, 0.18);
  border-radius: 999px;
  overflow: hidden;
}
.ui-yum-flow-dot {
  position: absolute;
  top: 50%;
  left: 0;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  background: var(--at-mocha);
  border-radius: 50%;
  animation: ui-yum-flow-travel 2.2s linear infinite;
}
.ui-yum-flow-dot:nth-child(2) { animation-delay: 0.73s; }
.ui-yum-flow-dot:nth-child(3) { animation-delay: 1.46s; }
@keyframes ui-yum-flow-travel {
  0%   { left: -8px; opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { left: 30px; opacity: 0; }
}
body.is-dark-bg .ui-yum-flow-arrow { color: var(--at-mocha-bright); }
body.is-dark-bg .ui-yum-flow-track { background: rgba(255, 122, 77, 0.18); }
body.is-dark-bg .ui-yum-flow-dot { background: var(--at-mocha-bright); }

/* Kitchen display */
.ui-yum-kitchen {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  padding: 0.4rem 0.5rem 0.45rem;
  background: rgba(26, 26, 26, 0.04);
  border-radius: 6px;
}
body.is-dark-bg .ui-yum-kitchen {
  background: rgba(245, 237, 224, 0.04);
}
.ui-yum-kitchen-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px dashed rgba(26, 26, 26, 0.12);
}
body.is-dark-bg .ui-yum-kitchen-head {
  border-bottom-color: rgba(245, 237, 224, 0.12);
}
.ui-yum-kitchen-label {
  font-family: var(--at-font-mono);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--at-ink-mute);
}
.ui-yum-kitchen-meta {
  font-family: var(--at-font-body);
  font-size: 0.6rem;
  color: var(--at-ink-soft);
  letter-spacing: 0.02em;
}
.ui-yum-kitchen-meta b {
  font-family: var(--at-font-mono);
  font-weight: 700;
  font-size: 0.72rem;
  color: var(--at-ink);
  font-variant-numeric: tabular-nums;
}
.ui-yum-tickets {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 0.28rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
/* Live footer — "● Live · avg 4 sec to kitchen" under tickets */
.ui-yum-kitchen-foot {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
  padding-top: 0.3rem;
  border-top: 1px dashed rgba(26, 26, 26, 0.10);
  font-family: var(--at-font-mono);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--at-ink-mute);
}
body.is-dark-bg .ui-yum-kitchen-foot {
  border-top-color: rgba(245, 237, 224, 0.10);
}
.ui-yum-kitchen-live {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--at-live);
  flex-shrink: 0;
}
.ui-yum-kitchen-live::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: inherit;
  animation: ui-yum-live-ping 2.2s ease-out infinite;
}
@keyframes ui-yum-live-ping {
  0%   { transform: scale(1);   opacity: 0.6; }
  100% { transform: scale(2.8); opacity: 0;   }
}
.ui-yum-ticket {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.4rem;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 4px;
  font-family: var(--at-font-body);
  font-size: 0.7rem;
}
body.is-dark-bg .ui-yum-ticket {
  background: rgba(245, 237, 224, 0.06);
}
.ui-yum-ticket-table {
  font-family: var(--at-font-mono);
  font-weight: 700;
  font-size: 0.72rem;
  color: var(--at-ink);
  font-variant-numeric: tabular-nums;
  min-width: 14px;
}
.ui-yum-ticket-items {
  color: var(--at-ink-soft);
  font-size: 0.66rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ui-yum-ticket-pill {
  padding: 0.1rem 0.42rem;
  border-radius: 999px;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ui-yum-ticket[data-status="cooking"] .ui-yum-ticket-pill {
  background: rgba(245, 165, 36, 0.18); color: #b45309;
}
.ui-yum-ticket[data-status="ready"] .ui-yum-ticket-pill {
  background: rgba(0, 168, 107, 0.18); color: #15803d;
  animation: ui-yum-ready-pulse 2.4s ease-in-out infinite;
}
.ui-yum-ticket[data-status="new"] .ui-yum-ticket-pill {
  background: rgba(101, 146, 230, 0.18); color: #2260D2;
}
body.is-dark-bg .ui-yum-ticket[data-status="cooking"] .ui-yum-ticket-pill { color: #fbbf24; }
body.is-dark-bg .ui-yum-ticket[data-status="ready"] .ui-yum-ticket-pill { color: #4ade80; }
body.is-dark-bg .ui-yum-ticket[data-status="new"] .ui-yum-ticket-pill { color: #8ab4f8; }
@keyframes ui-yum-ready-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 168, 107, 0.30); }
  50%      { box-shadow: 0 0 0 4px rgba(0, 168, 107, 0); }
}


/* ════════════════════════════════════════════════════════════════════════
   11. SHOPMI-TILE — "Live Shop Pulse" (Welle 5.21, premium-max 2026)
   Shopify-Admin-style dashboard: big revenue + trend pill, animated
   sparkline, live-sales list (new sale slides in top, oldest fades out),
   Shopee-vs-Yourshop comparison bars at bottom.
   ════════════════════════════════════════════════════════════════════════ */
.ui-shp {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  height: 100%;
}

.ui-shp-pulse {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.65rem 0.8rem 0.45rem;
  background: linear-gradient(135deg,
    rgba(20, 152, 213, 0.05),
    rgba(20, 152, 213, 0.01));
  border: 1px solid rgba(20, 152, 213, 0.14);
  border-radius: var(--at-radius-sm);
  position: relative;
  min-height: 0;
  overflow: hidden;
}
body.is-dark-bg .ui-shp-pulse {
  background: linear-gradient(135deg,
    rgba(255, 122, 77, 0.05),
    rgba(255, 122, 77, 0.01));
  border-color: rgba(255, 122, 77, 0.14);
}

/* Header — big revenue counter + label/trend stacked right */
.ui-shp-pulse-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.ui-shp-pulse-num {
  font-family: var(--at-font-mono);
  font-size: clamp(1.6rem, 3.8vw, 2rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--at-ink);
}
.ui-shp-pulse-meta {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}
.ui-shp-pulse-label {
  font-family: var(--at-font-body);
  font-size: 0.72rem;
  color: var(--at-ink-soft);
  line-height: 1.2;
}
.ui-shp-pulse-trend {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  width: max-content;
  padding: 0.12rem 0.4rem;
  background: rgba(0, 168, 107, 0.10);
  border: 1px solid rgba(0, 168, 107, 0.22);
  border-radius: 999px;
  font-family: var(--at-font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #15803d;
}
body.is-dark-bg .ui-shp-pulse-trend { color: #4ade80; }

/* Sparkline — animated draw on view */
.ui-shp-pulse-spark {
  width: 100%;
  height: 22px;
  color: var(--at-mocha);
  display: block;
}
body.is-dark-bg .ui-shp-pulse-spark { color: var(--at-mocha-bright); }
.ui-shp-pulse-spark-line {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: ui-shp-spark-draw 2.4s var(--at-ease) 0.4s forwards;
}
.ui-shp-pulse-spark-fill {
  opacity: 0;
  animation: ui-shp-spark-fade 1.4s var(--at-ease) 1.6s forwards;
}
@keyframes ui-shp-spark-draw {
  to { stroke-dashoffset: 0; }
}
@keyframes ui-shp-spark-fade {
  to { opacity: 1; }
}

/* Subhead — "Latest sales" with dashed bottom-border */
.ui-shp-pulse-subhead {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding-bottom: 0.2rem;
  border-bottom: 1px dashed rgba(20, 152, 213, 0.18);
  font-family: var(--at-font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--at-ink-mute);
}
body.is-dark-bg .ui-shp-pulse-subhead {
  border-bottom-color: rgba(255, 122, 77, 0.22);
}
.ui-shp-pulse-subhead-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--at-mocha);
  position: relative;
}
.ui-shp-pulse-subhead-dot::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: inherit;
  animation: ui-shp-pulse-ping 2.4s ease-out infinite;
}
@keyframes ui-shp-pulse-ping {
  0%   { transform: scale(1);   opacity: 0.6; }
  100% { transform: scale(2.8); opacity: 0;   }
}

/* Sales list — position:relative anchors absolute leaving items so list-height stays stable */
.ui-shp-pulse-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  position: relative;
  overflow: hidden;
}

/* Single sale row — dot · name · price · time (compact) */
.ui-shp-pulse-sale {
  display: grid;
  grid-template-columns: 8px 1fr auto auto;
  align-items: center;
  gap: 0.55rem;
  padding: 0.32rem 0.55rem;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(26, 26, 26, 0.05);
  border-radius: 6px;
  font-family: var(--at-font-body);
  font-size: 0.72rem;
  transition: transform 0.4s var(--at-ease), box-shadow 0.4s var(--at-ease), opacity 0.4s ease;
}
body.is-dark-bg .ui-shp-pulse-sale {
  background: rgba(245, 237, 224, 0.04);
  border-color: rgba(245, 237, 224, 0.08);
}
.ui-shp-pulse-sale-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--at-mocha);
}
.ui-shp-pulse-sale-name {
  font-weight: 600;
  color: var(--at-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.ui-shp-pulse-sale-price {
  font-family: var(--at-font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #15803d;
  letter-spacing: -0.01em;
}
body.is-dark-bg .ui-shp-pulse-sale-price { color: #4ade80; }
.ui-shp-pulse-sale-time {
  font-family: var(--at-font-mono);
  font-size: 0.62rem;
  color: var(--at-ink-mute);
  font-variant-numeric: tabular-nums;
}
/* Fresh sale slide-in */
.ui-shp-pulse-sale.is-fresh {
  animation: ui-shp-sale-pop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
  border-color: rgba(0, 168, 107, 0.40);
  box-shadow:
    0 1px 2px rgba(26, 26, 26, 0.04),
    0 0 0 3px rgba(0, 168, 107, 0.10),
    0 6px 14px rgba(0, 168, 107, 0.12);
}
@keyframes ui-shp-sale-pop {
  0%   { opacity: 0; transform: translateY(-14px) scale(0.96); }
  60%  { opacity: 1; transform: translateY(2px)   scale(1.01); }
  100% { opacity: 1; transform: translateY(0)     scale(1); }
}
/* Leaving = pulled out of flow → list-height never grows when new item slides in */
.ui-shp-pulse-sale.is-leaving {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  pointer-events: none;
  animation: ui-shp-sale-leave 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes ui-shp-sale-leave {
  to { opacity: 0; transform: translateY(10px) scale(0.96); }
}

/* Compare bars — Shopee 32% vs Your shop 0% */
.ui-shp-pulse-compare {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.32rem 0.55rem;
  background: linear-gradient(135deg,
    rgba(20, 152, 213, 0.10),
    rgba(20, 152, 213, 0.02));
  border-radius: var(--at-radius-sm);
  margin-top: auto;
}
.ui-shp-pulse-compare-row {
  display: grid;
  grid-template-columns: minmax(70px, auto) 1fr auto;
  align-items: center;
  gap: 0.5rem;
}
.ui-shp-pulse-compare-label {
  font-family: var(--at-font-body);
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--at-ink-soft);
  white-space: nowrap;
}
.ui-shp-pulse-compare-bar {
  position: relative;
  height: 5px;
  background: rgba(26, 26, 26, 0.06);
  border-radius: 999px;
  overflow: hidden;
}
body.is-dark-bg .ui-shp-pulse-compare-bar {
  background: rgba(245, 237, 224, 0.06);
}
.ui-shp-pulse-compare-fill {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 0;
  border-radius: inherit;
  animation: ui-shp-pulse-compare-fill 1.4s var(--at-ease) 0.4s forwards;
}
@keyframes ui-shp-pulse-compare-fill {
  to { width: var(--w); }
}
.ui-shp-pulse-compare-row[data-side="them"] .ui-shp-pulse-compare-fill {
  background: linear-gradient(90deg, #ef4444, #b91c1c);
}
.ui-shp-pulse-compare-row[data-side="you"] .ui-shp-pulse-compare-fill {
  background: linear-gradient(90deg, var(--at-mocha), var(--at-live));
}
.ui-shp-pulse-compare-value {
  font-family: var(--at-font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right;
  min-width: 34px;
}
.ui-shp-pulse-compare-row[data-side="them"] .ui-shp-pulse-compare-value { color: #b91c1c; }
.ui-shp-pulse-compare-row[data-side="you"]  .ui-shp-pulse-compare-value { color: #15803d; }
body.is-dark-bg .ui-shp-pulse-compare-row[data-side="them"] .ui-shp-pulse-compare-value { color: #f87171; }
body.is-dark-bg .ui-shp-pulse-compare-row[data-side="you"]  .ui-shp-pulse-compare-value { color: #4ade80; }
/* ════════════════════════════════════════════════════════════════════════
   12. TICKER-HIGHLIGHT (auf Value-Change)
   ════════════════════════════════════════════════════════════════════════ */
[data-ticker] {
  display: inline-block;
  transition: transform 0.18s ease-out, color 0.4s ease;
}
[data-ticker].is-changed {
  animation: ticker-pop 0.45s var(--at-ease);
}
@keyframes ticker-pop {
  0%   { transform: scale(1); color: var(--at-ink); }
  35%  { transform: scale(1.08); color: var(--at-mocha); }
  100% { transform: scale(1); color: var(--at-ink); }
}

/* ════════════════════════════════════════════════════════════════════════
   14. ATELIER CINEMATIC SUITE (Welle 5.21, premium-max 2026)
   ----------------------------------------------------------------------------
   Layer 1: Scroll-driven Card Reveal (native CSS view-timeline)
   Layer 2: Mocha geometric mark (bottom-right) — affordance + hover-morph
   Layer 3: Headline gold-sheen sweep + enhanced edge-glow on hover
   Layer 4: View Transitions API → smooth page cross-fade (set via meta tag)
   ════════════════════════════════════════════════════════════════════════ */

/* ─── Layer 1: Scroll-Driven Reveal (DISABLED 2026-05-17 — UX trade-off)
   Removed because cards were invisible at first-view, hiding the content
   that should entice users to scroll. Apple/Stripe/Linear keep feature
   sections always-visible. Other premium layers (cursor spotlight, magnetic
   cards, hover bloom, headline glow, View Transitions) remain. */

/* ─── Layer 2: Mocha Geometric Mark (top-right, consistent across all tiles) ─── */
.atelier-card::after {
  content: '';
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  z-index: 3;
  pointer-events: none;
  border: 1px solid rgba(20, 152, 213, 0.32);
  border-radius: 50%;
  background-color: rgba(20, 152, 213, 0.04);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a87841' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M7 17L17 7M9 7h8v8'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px;
  opacity: 0.85;
  transition:
    background-color 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
    background-size 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s ease;
}
body.is-dark-bg .atelier-card::after {
  border-color: rgba(255, 122, 77, 0.32);
  background-color: rgba(255, 122, 77, 0.04);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8b97f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M7 17L17 7M9 7h8v8'/></svg>");
}
/* On hover: fill, white arrow, slide diagonally up-right (towards the arrow's direction) */
.atelier-card.is-hovered::after {
  opacity: 1;
  background-color: var(--at-mocha);
  border-color: var(--at-mocha);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M7 17L17 7M9 7h8v8'/></svg>");
  background-size: 12px;
  transform: translate(2px, -2px);
  box-shadow:
    0 8px 20px rgba(20, 152, 213, 0.35),
    0 0 0 4px rgba(20, 152, 213, 0.10);
}
body.is-dark-bg .atelier-card.is-hovered::after {
  background-color: var(--at-mocha-bright);
  border-color: var(--at-mocha-bright);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0d14' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M7 17L17 7M9 7h8v8'/></svg>");
  box-shadow:
    0 8px 20px rgba(255, 122, 77, 0.40),
    0 0 0 4px rgba(255, 122, 77, 0.12);
}

/* ─── Layer 3: Headline Premium Glow on Hover ─── */
.atelier-card-link {
  transition: text-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.atelier-card.is-hovered .atelier-card-link {
  text-shadow:
    0 0 28px rgba(20, 152, 213, 0.22),
    0 1px 0 rgba(20, 152, 213, 0.10);
}
body.is-dark-bg .atelier-card.is-hovered .atelier-card-link {
  text-shadow:
    0 0 32px rgba(255, 122, 77, 0.30),
    0 1px 0 rgba(255, 122, 77, 0.14);
}
/* Enhanced edge-glow on hover (additional bloom layer) */
.atelier-card.is-hovered {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 0 0 1px rgba(20, 152, 213, 0.32),
    0 32px 80px rgba(26, 26, 26, 0.16),
    0 14px 36px rgba(20, 152, 213, 0.14),
    0 0 64px rgba(20, 152, 213, 0.10);
}
body.is-dark-bg .atelier-card.is-hovered {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.14) inset,
    0 0 0 1px rgba(255, 122, 77, 0.42),
    0 32px 80px rgba(0, 0, 0, 0.58),
    0 14px 36px rgba(255, 122, 77, 0.20),
    0 0 64px rgba(255, 122, 77, 0.14);
}

/* ════════════════════════════════════════════════════════════════════════
   13. REDUCED-MOTION FALLBACK
   ════════════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .atelier-card { transition: opacity 0.3s ease; }
  .atelier-card,
  .atelier-card::after,
  .atelier-card.is-hovered .atelier-card-link,
  .ui-mkg-orbit-ring,
  .ui-cns-globe-fallback,
  .ui-cns-step.is-active,
  .ui-sparkline-draw,
  .ui-mkg-funnel-bar::after,
  .ui-yum-qr-scan,
  .ui-yum-flow-dot,
  .ui-yum-ticket[data-status="ready"] .ui-yum-ticket-pill,
  .ui-shp-compare-fill,
  .status-dot::before,
  [data-ticker] {
    animation: none !important;
    transition: opacity 0.3s ease !important;
  }
  .atelier-card {
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
  }
  /* Disable subtle glow on hover (reduced-motion) */
  .atelier-card.is-hovered .atelier-card-link {
    text-shadow: none;
  }
  .ui-mkg-funnel-bar::after { transform: scaleX(1); }
  .ui-sparkline-draw { stroke-dashoffset: 0; }
  .ui-shp-compare-fill { width: var(--w); }
}
