/* =============== Base =============== */
:root{
  --bg-dark: #0a0a0a;
  --bg-red:  #150406;
  --header:  rgba(12,12,12,.9);
  --panel:   rgba(18,18,18,.96);
  --line:    rgba(255,255,255,.08);
  --ink:     #f2f2f2;
  --muted:   rgba(255,255,255,.65);
  --radius-xl: 22px;
  --radius-lg: 16px;
  --shadow-xl: 0 20px 40px rgba(0,0,0,.45);
  --shadow-md: 0 12px 24px rgba(0,0,0,.35);
  --nav-triangle: rgba(255,255,255,.65);
  --nav-triangle-hover: rgba(255,255,255,.9);
  --nav-offset-top: 50%;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

html.no-smooth {
  scroll-behavior: auto !important;
}

body{
  margin: 0;
  color: var(--ink);
  font-family: "Barlow Condensed", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(1200px 800px at 50% 30%, rgba(85, 20, 24, 0.12), transparent 60%),
    linear-gradient(180deg, var(--bg-dark), var(--bg-red));
  -webkit-overflow-scrolling: touch;
  overflow-x: hidden;
}

/* =============== Header / Menu (restored + robust) =============== */
.site-header{
  position:-webkit-sticky; position:sticky; top:0; z-index:1000;
  backdrop-filter: saturate(120%) blur(6px);
  background: var(--header);
  border-bottom: 1px solid var(--line);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  max-width: 1200px; margin: 0 auto;
  padding: 10px 18px;
}
.brand img{ display:block; height: 30px; width:auto; }

.main-nav{ display:flex; align-items:center; }
.burger{
  display:flex; align-items:center; gap:10px;
  background:transparent; border:0; color:var(--ink);
  font-size: clamp(18px, 2.2vw, 22px);
  cursor:pointer; padding:8px 6px;
}
.burger .burger-icon{ display:inline-flex; flex-direction:column; gap:4px; width:24px; }
.burger .bar{
  display:block; height:2px; width:100%; background:var(--ink);
  transition: transform .25s ease, opacity .25s ease;
}
.burger.is-open .bar:nth-child(1){ transform: translateY(6px) rotate(45deg); }
.burger.is-open .bar:nth-child(2){ opacity:0; }
.burger.is-open .bar:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

/* slide-down panel (right) */
.menu-panel{
  position: fixed;
  top: var(--menu-top, 52px);
  right: var(--menu-right, auto);
  z-index: 900;
  min-width: clamp(160px, 14vw, 200px);
  max-height: calc(100vh - 88px);
  padding: 12px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-xl);
  transform: translateY(-12px) scale(.98);
  transform-origin: top right;
  opacity: 0; pointer-events: none;
  transition: transform .28s ease, opacity .28s ease;
}
.menu-panel.is-open{ transform: translateY(0) scale(1); opacity: 1; pointer-events:auto; }
.menu-list{
  list-style: none;
  margin: 4px 0;
  padding: 0;
  padding-right: var(--menu-text-pad, 8px);
  text-align: right;
}
.menu-link{
  font-size: clamp(18px, 2.2vw, 22px);
  display:block; padding:10px 12px; color:var(--ink); text-decoration:none;
  border-radius:10px;
}
.menu-link:hover{ background: rgba(255,255,255,.05); }

/* anchor offset so header doesn't cover sections */
#section-1, #section-2, #section-3, #section-4, #section-5{ scroll-margin-top:72px; }

/* =============== Hero (unchanged) =============== */
.canvas-wrap{
  width: 100vw;
  height: calc(100vh - 52px);
  margin: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  contain: layout style paint;
}

@supports (height: 100dvh) {
  .canvas-wrap {
    height: calc(100dvh - 52px);
  }
}

/* Mobile: Fix to prevent constant resizing */
@media (max-width: 768px) {
  .canvas-wrap {
    height: -webkit-fill-available;
    height: calc(100vh - 120px);
    max-height: calc(100vh - 52px);
  }
}

.canvas-frame{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  border: none;
  border-radius: 0;
  overflow: visible;
  background: radial-gradient(800px 600px at 50% 50%, rgba(255,255,255,.02), rgba(0,0,0,.4));
  isolation: isolate;
}

#heroCanvas{
  position:absolute; inset:0;
  width:100%; height:100%; display:block;
  border-radius: 0;
  z-index: 1;
  transform: translateZ(0);
  will-change: transform;
}
.overlay-logo{ position:absolute; left:50%; top:3%; transform:translateX(-50%); width: clamp(325px, 42vw, 620px); pointer-events:none; filter: drop-shadow(0 8px 12px rgba(0,0,0,.35)); z-index:1001; }
.meta-row{
  position: absolute;
  bottom: clamp(20px, 3vh, 40px);
  right: max(18px, calc((100vw - 1200px) / 2 + 18px));
  left: max(18px, calc((100vw - 1200px) / 2 + 18px));
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.corner-tag{
  display:block;
  text-align:right;
  letter-spacing:.06em;
  color: #ffb432;
  font-size: clamp(14px, 2.5vw, 18px);
}

/* model nav (triangle only) */
.model-nav{
  position:absolute; top:var(--nav-offset-top); transform:translateY(-50%);
  z-index:8; width:48px; height:48px; padding:0; margin:0; background:transparent; border:none; cursor:pointer; outline:none;
}
.model-nav.left{ left:12px; } .model-nav.right{ right:12px; }
.model-nav::before{
  content:""; display:block; width:0; height:0; margin:auto;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, .4)) drop-shadow(0 2px 6px rgba(0,0,0,.35));
  transition: transform .2s ease, filter .2s ease, border-color .2s ease;
}
.model-nav.left::before{
  border-top:14px solid transparent; border-bottom:14px solid transparent; border-right:18px solid var(--nav-triangle);
}
.model-nav.right::before{
  border-top:14px solid transparent; border-bottom:14px solid transparent; border-left:18px solid var(--nav-triangle);
}
@media (hover: hover) {
  .model-nav:hover::before{ filter: drop-shadow(0 0 12px rgba(255, 255, 255, .6)) drop-shadow(0 3px 8px rgba(0,0,0,.45)); transform: translateY(1px); }
  .model-nav.left:hover::before{ border-right-color: var(--nav-triangle-hover); }
  .model-nav.right:hover::before{ border-left-color: var(--nav-triangle-hover); }
}

/* =============== Services Intro =============== */
.services-intro {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(100px, 14vh, 140px) 18px clamp(80px, 10vh, 100px);
  text-align: center;
}

.services-intro-text {
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
  letter-spacing: 0.01em;
}

/* =============== Section 2: Services =============== */
.services-section{
  position: relative;
  max-width: 1200px;
  width: 100%;
  margin: 10vh auto 0;
  padding: 0 18px;
  min-height: 100vh;
  display: grid;
}
.services-grid{
  display:grid;
  grid-template-columns: 1fr 0.9fr;
  gap: clamp(24px, 5vw, 56px);
  align-items: stretch;
  max-height: 80vh;
}

/* LEFT column: headline top + content bottom aligned */
.services-left{
  display:flex;
  flex-direction: column;
  min-height: 100%;
}
.section-title{
  font-size: clamp(36px, 7vw, 86px);
  line-height:.95;
  margin: 0 0 24px;
}
.service-content{
  max-width: 640px;
  margin-top: auto;
}
.service-subtitle{
  font-size: clamp(20px, 3vw, 28px);
  margin: 4px 0 10px;
  letter-spacing:.02em;
}
.service-text{
  font-size: clamp(16px, 2.2vw, 20px);
  line-height: 1.45;
  color: var(--muted);
  margin: 0 0 18px;
}

/* Media box */
.service-media{
  position:relative; width:100%; aspect-ratio:16/9;
  border:none; border-radius: var(--radius-lg);
  background: none; overflow:hidden; box-shadow: none;
}
.service-media img, .service-media video{
  position:absolute; inset:0; width:100%; height:100%; object-fit:contain; display:none;
}
.service-ph{ position:absolute; inset:0; display:grid; place-items:center; font-size:14px; color:var(--muted); }

/* RIGHT column: full-height list; first item top-aligned with headline */
.services-right{ position:relative; display:flex; align-items:stretch; }
.service-list{
  list-style:none; margin:0; padding:0;
  display:flex; flex-direction:column;
  justify-content: space-between;
  height: 100%;
}
.service-item{
  all: unset;
  cursor:pointer;
  font-size: clamp(22px, 5vw, 54px);
  line-height:1;
  letter-spacing:.02em;
  color:var(--ink);
  text-transform: uppercase;
  transition: opacity .18s ease, transform .18s ease, text-decoration-color .18s ease;
  border-bottom: 2px solid transparent;
}
.service-item:hover{ opacity:.9; transform: translateX(-2px); }
.service-item.is-active{ border-bottom-color: var(--ink); }

/* Modal (mobile) - FIXED FOR MOBILE VIEWPORTS */
.service-modal[hidden]{ display:none; }
.service-modal{ 
  position: fixed;
  inset: 0;
  z-index: 2000;
  width: 100vw;
  /* Fallback chain: 100vh -> 100dvh -> JS --vh var */
  height: 100vh;
  height: 100dvh;
  height: calc(var(--vh, 1vh) * 100);
  overflow: hidden;              /* no body scroll behind modal */
  overscroll-behavior: contain;  /* avoid scroll chaining */
  background: transparent;
}

.modal-backdrop{ 
  position:absolute; 
  inset:0; 
  background:rgba(0,0,0,.5); 
  backdrop-filter: blur(4px); 
}
.modal-dialog{
  position: fixed;
  inset: 0;
  width: 100vw;
  /* Fallback chain for height just like container */
  height: 100vh;
  height: 100dvh;
  height: calc(var(--vh, 1vh) * 100);
  max-height: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: rgba(18,18,18,.98);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: clamp(16px, 3vw, 28px);
  padding-top: calc(env(safe-area-inset-top) + 12px);
  padding-bottom: calc(env(safe-area-inset-bottom) + 12px);
  box-shadow: none;
}


/* Improved scroll behavior for modal */
@supports (height: 100dvh) {
  .service-modal {
    height: 100dvh;
  }
/* (removed) .modal-dialog { max-height: 88dvh; } */
}

.modal-close{ 
  position:sticky;
  top: 0;
  right: 0;
  float: right;
  background:transparent; 
  border:0; 
  color:var(--ink); 
  font-size:32px; 
  line-height:1; 
  cursor:pointer;
  padding: 4px 8px;
  margin: -8px -8px 12px 12px;
  z-index: 10;
}
.modal-title{
  font-size: clamp(24px, 5vw, 32px);
  margin: 0 0 12px;
  clear: both;
}

#impressumModal .modal-title {
  text-align: center;
  margin-bottom: 32px;
}
.modal-text{ 
  font-size: clamp(16px, 3vw, 20px); 
  color: var(--muted); 
  margin: 0 0 18px;
  line-height: 1.5;
}
.modal-media{
  position:relative; 
  width:100%; 
  aspect-ratio:16/9;
  border-radius: var(--radius-lg);
  overflow:hidden; 
  background: rgba(255,255,255,.02);
  margin-top: 12px;
}
.modal-media img, .modal-media video{ 
  position:absolute; 
  inset:0; 
  width:100%; 
  height:100%; 
  object-fit:cover; 
  display:none; 
}

/* =============== Responsive =============== */
@media (max-width: 820px){
  .overlay-logo{ top:5%; }

  /* Section 2 becomes stacked */
  .services-section{ min-height:90vh; margin-top:8vh; }
  .services-grid{ grid-template-columns: 1fr; gap:18px; }
  .section-title{
    text-align: right;
  }
  .services-right{
    align-items: flex-end;
    justify-content: flex-end;
  }
  .service-list{
    gap:12px;
    justify-content:flex-start;
    padding-bottom:8px;
    align-items: flex-end;
  }
  .service-item{
    font-size: clamp(28px, 8vw, 42px);
    border-bottom-width:1.5px;
    text-align: right;
    width: auto;
    align-self: flex-end;
  }
  .service-item.is-active{
    border-bottom-color: transparent !important;
  }
  .service-item:hover{
    transform: translateX(2px);
  }

  /* Hide left content area on mobile (content comes via modal) */
  .service-content{ display:none !important; }
  
  /* Mobile modal adjustments */
/* (removed) .modal-dialog { width: 94vw; max-height: 90dvh; padding: clamp(16px, 4vw, 24px); } */
.modal-close {
    font-size: 28px;
  }
}

/* =============== Text Divider with Glitch & Glow Effect =============== */
.text-divider {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(40px, 8vh, 80px) 18px;
  overflow: hidden;
  margin-top: 17.5vh;
  margin-bottom: 17.5vh;
}

.text-3d-effect {
  position: relative;
  width: 100%;
  height: clamp(48px, 8vw, 120px);
}

.text-3d-line {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(48px, 8vw, 120px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  will-change: opacity, text-shadow;
  color: #fff78c;
  text-align: center;
  display: inline-block;
  white-space: nowrap;
  opacity: 0;
}

/* Override glitch--small positioning for text-3d-line */
.text-3d-line.glitch--small {
  position: absolute;
}

/* Neon Flicker & Glow Animation */
.text-3d-line:nth-child(1) {
  animation: neon-flicker 12s linear infinite;
  animation-delay: 0s;
}

.text-3d-line:nth-child(2) {
  color: #ff9670;
  animation: neon-flicker-red 12s linear infinite;
  animation-delay: 4s;
}

.text-3d-line:nth-child(3) {
  color: #9ac8ff;
  animation: neon-flicker-blue 12s linear infinite;
  animation-delay: 8s;
}

@keyframes neon-flicker {
  /* Flackern beim Anschalten */
  0% {
    opacity: 0;
    text-shadow: none;
  }

  0.5% {
    opacity: 0.8;
    text-shadow:
      0 0 4px rgba(255, 247, 140, 0.6),
      0 0 8px rgba(255, 247, 140, 0.4);
  }

  1% {
    opacity: 0.2;
    text-shadow: 0 0 2px rgba(255, 247, 140, 0.3);
  }

  1.5% {
    opacity: 1;
    text-shadow:
      0 0 8px rgba(255, 247, 140, 0.9),
      0 0 16px rgba(255, 247, 140, 0.6),
      0 0 24px rgba(255, 247, 140, 0.4);
  }

  1.8% {
    opacity: 0.7;
    text-shadow:
      0 0 6px rgba(255, 247, 140, 0.5),
      0 0 12px rgba(255, 247, 140, 0.3);
  }

  2% {
    opacity: 1;
    text-shadow:
      0 0 10px rgba(255, 247, 140, 1),
      0 0 20px rgba(255, 247, 140, 0.7),
      0 0 30px rgba(255, 247, 140, 0.5),
      0 0 40px rgba(255, 247, 140, 0.3);
  }

  /* Voll leuchtend */
  2%, 29% {
    opacity: 1;
    text-shadow:
      0 0 10px rgba(255, 247, 140, 1),
      0 0 20px rgba(255, 247, 140, 0.7),
      0 0 30px rgba(255, 247, 140, 0.5),
      0 0 40px rgba(255, 247, 140, 0.3);
  }

  /* Flackern beim Ausschalten */
  29.5% {
    opacity: 0.6;
    text-shadow:
      0 0 6px rgba(255, 247, 140, 0.6),
      0 0 12px rgba(255, 247, 140, 0.4);
  }

  30% {
    opacity: 1;
    text-shadow:
      0 0 10px rgba(255, 247, 140, 0.8),
      0 0 20px rgba(255, 247, 140, 0.5);
  }

  30.5% {
    opacity: 0.4;
    text-shadow:
      0 0 4px rgba(255, 247, 140, 0.4),
      0 0 8px rgba(255, 247, 140, 0.2);
  }

  31% {
    opacity: 0.8;
    text-shadow:
      0 0 6px rgba(255, 247, 140, 0.5);
  }

  31.5% {
    opacity: 0.2;
    text-shadow: 0 0 2px rgba(255, 247, 140, 0.2);
  }

  32%, 100% {
    opacity: 0;
    text-shadow: none;
  }
}

@keyframes neon-flicker-red {
  /* Flackern beim Anschalten - rötlich und weniger hell */
  0% {
    opacity: 0;
    text-shadow: none;
  }

  0.5% {
    opacity: 0.6;
    text-shadow:
      0 0 3px rgba(255, 120, 90, 0.4),
      0 0 6px rgba(255, 120, 90, 0.3);
  }

  1% {
    opacity: 0.15;
    text-shadow: 0 0 2px rgba(255, 120, 90, 0.2);
  }

  1.5% {
    opacity: 0.8;
    text-shadow:
      0 0 6px rgba(255, 120, 90, 0.7),
      0 0 12px rgba(255, 120, 90, 0.5),
      0 0 18px rgba(255, 120, 90, 0.3);
  }

  1.8% {
    opacity: 0.5;
    text-shadow:
      0 0 5px rgba(255, 120, 90, 0.4),
      0 0 10px rgba(255, 120, 90, 0.25);
  }

  2% {
    opacity: 0.85;
    text-shadow:
      0 0 8px rgba(255, 120, 90, 0.8),
      0 0 16px rgba(255, 120, 90, 0.55),
      0 0 24px rgba(255, 120, 90, 0.4),
      0 0 32px rgba(255, 120, 90, 0.25);
  }

  /* Voll leuchtend - weniger intensiv als gelb */
  2%, 29% {
    opacity: 0.85;
    text-shadow:
      0 0 8px rgba(255, 120, 90, 0.8),
      0 0 16px rgba(255, 120, 90, 0.55),
      0 0 24px rgba(255, 120, 90, 0.4),
      0 0 32px rgba(255, 120, 90, 0.25);
  }

  /* Flackern beim Ausschalten */
  29.5% {
    opacity: 0.45;
    text-shadow:
      0 0 5px rgba(255, 120, 90, 0.5),
      0 0 10px rgba(255, 120, 90, 0.3);
  }

  30% {
    opacity: 0.8;
    text-shadow:
      0 0 8px rgba(255, 120, 90, 0.65),
      0 0 16px rgba(255, 120, 90, 0.4);
  }

  30.5% {
    opacity: 0.3;
    text-shadow:
      0 0 3px rgba(255, 120, 90, 0.3),
      0 0 6px rgba(255, 120, 90, 0.15);
  }

  31% {
    opacity: 0.6;
    text-shadow:
      0 0 5px rgba(255, 120, 90, 0.4);
  }

  31.5% {
    opacity: 0.15;
    text-shadow: 0 0 2px rgba(255, 120, 90, 0.15);
  }

  32%, 100% {
    opacity: 0;
    text-shadow: none;
  }
}

@keyframes neon-flicker-blue {
  /* Flackern beim Anschalten - bläulich */
  0% {
    opacity: 0;
    text-shadow: none;
  }

  0.5% {
    opacity: 0.8;
    text-shadow:
      0 0 4px rgba(154, 200, 255, 0.6),
      0 0 8px rgba(154, 200, 255, 0.4);
  }

  1% {
    opacity: 0.2;
    text-shadow: 0 0 2px rgba(154, 200, 255, 0.3);
  }

  1.5% {
    opacity: 1;
    text-shadow:
      0 0 8px rgba(154, 200, 255, 0.9),
      0 0 16px rgba(154, 200, 255, 0.6),
      0 0 24px rgba(154, 200, 255, 0.4);
  }

  1.8% {
    opacity: 0.7;
    text-shadow:
      0 0 6px rgba(154, 200, 255, 0.5),
      0 0 12px rgba(154, 200, 255, 0.3);
  }

  2% {
    opacity: 1;
    text-shadow:
      0 0 10px rgba(154, 200, 255, 1),
      0 0 20px rgba(154, 200, 255, 0.7),
      0 0 30px rgba(154, 200, 255, 0.5),
      0 0 40px rgba(154, 200, 255, 0.3);
  }

  /* Voll leuchtend */
  2%, 29% {
    opacity: 1;
    text-shadow:
      0 0 10px rgba(154, 200, 255, 1),
      0 0 20px rgba(154, 200, 255, 0.7),
      0 0 30px rgba(154, 200, 255, 0.5),
      0 0 40px rgba(154, 200, 255, 0.3);
  }

  /* Flackern beim Ausschalten */
  29.5% {
    opacity: 0.6;
    text-shadow:
      0 0 6px rgba(154, 200, 255, 0.6),
      0 0 12px rgba(154, 200, 255, 0.4);
  }

  30% {
    opacity: 1;
    text-shadow:
      0 0 10px rgba(154, 200, 255, 0.8),
      0 0 20px rgba(154, 200, 255, 0.5);
  }

  30.5% {
    opacity: 0.4;
    text-shadow:
      0 0 4px rgba(154, 200, 255, 0.4),
      0 0 8px rgba(154, 200, 255, 0.2);
  }

  31% {
    opacity: 0.8;
    text-shadow:
      0 0 6px rgba(154, 200, 255, 0.5);
  }

  31.5% {
    opacity: 0.2;
    text-shadow: 0 0 2px rgba(154, 200, 255, 0.2);
  }

  32%, 100% {
    opacity: 0;
    text-shadow: none;
  }
}

@media (max-width: 768px) {
  .text-divider {
    min-height: 50vh;
  }

  .text-3d-line {
    font-size: clamp(36px, 10vw, 80px);
  }

  /* Faster animations on mobile for better sync */
  .text-3d-line:nth-child(1) {
    animation: neon-flicker 12s linear infinite;
  }

  .text-3d-line:nth-child(2) {
    animation: neon-flicker-red 12s linear infinite;
    animation-delay: 4s;
  }

  .text-3d-line:nth-child(3) {
    animation: neon-flicker-blue 12s linear infinite;
    animation-delay: 8s;
  }

  /* Sync mechanical corners on mobile */
  .mech-corner-tl::before,
  .mech-corner-tr::before,
  .mech-corner-bl::before,
  .mech-corner-br::before {
    animation-duration: 12s;
  }

  .mech-corner-tl::after,
  .mech-corner-tr::after,
  .mech-corner-bl::after,
  .mech-corner-br::after {
    animation-duration: 12s;
  }

  /* Reduce shadow complexity on mobile for better performance */
  .text-3d-line {
    will-change: opacity;
  }

  .mech-corner {
    will-change: auto;
  }

  /* Simplify animations on mobile */
  @keyframes neon-flicker {
    0%, 32%, 100% { opacity: 0; text-shadow: none; }
    2%, 29% { opacity: 1; text-shadow: 0 0 10px rgba(255, 247, 140, 1), 0 0 20px rgba(255, 247, 140, 0.7); }
  }

  @keyframes neon-flicker-red {
    0%, 32%, 100% { opacity: 0; text-shadow: none; }
    2%, 29% { opacity: 0.85; text-shadow: 0 0 8px rgba(255, 120, 90, 0.8), 0 0 16px rgba(255, 120, 90, 0.55); }
  }

  @keyframes neon-flicker-blue {
    0%, 32%, 100% { opacity: 0; text-shadow: none; }
    2%, 29% { opacity: 1; text-shadow: 0 0 10px rgba(154, 200, 255, 1), 0 0 20px rgba(154, 200, 255, 0.7); }
  }

  /* Reduce Web3 animation complexity */
  .web3-frame {
    contain: strict;
  }
}

/* =============== Mechanical Console Corners =============== */
.text-divider {
  position: relative;
}

.mech-corner {
  position: absolute;
  width: clamp(80px, 12vw, 140px);
  height: clamp(80px, 12vw, 140px);
  pointer-events: none;
  z-index: 10;
  will-change: box-shadow;
  transform: translateZ(0);
}

/* Base metal panel styling with depth */
.mech-corner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(40, 40, 45, 0.85) 0%, rgba(25, 25, 30, 0.85) 100%);
  border: 1px solid rgba(60, 60, 70, 0.6);
  box-shadow:
    inset 2px 2px 4px rgba(80, 80, 90, 0.3),
    inset -2px -2px 4px rgba(0, 0, 0, 0.5),
    0 0 0 rgba(255, 247, 140, 0);
  transition: box-shadow 0.1s ease-out;
}

/* Screw/Bolt details */
.mech-corner::after {
  content: '';
  position: absolute;
  width: clamp(6px, 1vw, 10px);
  height: clamp(6px, 1vw, 10px);
  background: radial-gradient(circle, rgba(50, 50, 55, 0.9) 0%, rgba(30, 30, 35, 0.9) 100%);
  border: 1px solid rgba(70, 70, 80, 0.5);
  border-radius: 50%;
  box-shadow:
    inset 1px 1px 2px rgba(80, 80, 90, 0.4),
    inset -1px -1px 2px rgba(0, 0, 0, 0.6),
    0 0 0 rgba(255, 247, 140, 0);
}

/* Top-Left Corner */
.mech-corner-tl {
  top: clamp(20px, 3%, 40px);
  left: clamp(20px, 3%, 40px);
}

.mech-corner-tl::before {
  clip-path: polygon(
    0 0,
    100% 0,
    100% 25%,
    25% 25%,
    25% 100%,
    0 100%
  );
  border-right-width: 2px;
  border-bottom-width: 2px;
}

.mech-corner-tl::after {
  top: 15%;
  left: 15%;
}

/* Top-Right Corner */
.mech-corner-tr {
  top: clamp(20px, 3%, 40px);
  right: clamp(20px, 3%, 40px);
}

.mech-corner-tr::before {
  clip-path: polygon(
    0 0,
    100% 0,
    100% 100%,
    75% 100%,
    75% 25%,
    0 25%
  );
  border-left-width: 2px;
  border-bottom-width: 2px;
}

.mech-corner-tr::after {
  top: 15%;
  right: 15%;
}

/* Bottom-Left Corner */
.mech-corner-bl {
  bottom: clamp(20px, 3%, 40px);
  left: clamp(20px, 3%, 40px);
}

.mech-corner-bl::before {
  clip-path: polygon(
    0 0,
    25% 0,
    25% 75%,
    100% 75%,
    100% 100%,
    0 100%
  );
  border-right-width: 2px;
  border-top-width: 2px;
}

.mech-corner-bl::after {
  bottom: 15%;
  left: 15%;
}

/* Bottom-Right Corner */
.mech-corner-br {
  bottom: clamp(20px, 3%, 40px);
  right: clamp(20px, 3%, 40px);
}

.mech-corner-br::before {
  clip-path: polygon(
    75% 0,
    100% 0,
    100% 100%,
    0 100%,
    0 75%,
    75% 75%
  );
  border-left-width: 2px;
  border-top-width: 2px;
}

.mech-corner-br::after {
  bottom: 15%;
  right: 15%;
}

/* Panel grooves/lines using additional elements */
.mech-corner-tl,
.mech-corner-tr,
.mech-corner-bl,
.mech-corner-br {
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 8px,
      rgba(50, 50, 60, 0.3) 8px,
      rgba(50, 50, 60, 0.3) 9px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 8px,
      rgba(50, 50, 60, 0.3) 8px,
      rgba(50, 50, 60, 0.3) 9px
    );
}

/* TOP-LEFT Corner: Light from center (right-bottom), shadow on left-top */
@keyframes mech-glow-tl {
  /* Phase 1: Gelb */
  0% {
    box-shadow:
      inset 2px 2px 4px rgba(0, 0, 0, 0.5),
      inset -2px -2px 4px rgba(80, 80, 90, 0.3),
      0 0 0 rgba(255, 247, 140, 0);
  }
  1% {
    box-shadow:
      inset 2px 2px 4px rgba(0, 0, 0, 0.4),
      inset -2px -2px 4px rgba(100, 100, 110, 0.4),
      0 0 8px rgba(255, 247, 140, 0.15),
      inset 0 0 4px rgba(255, 247, 140, 0.1);
  }
  2%, 29% {
    box-shadow:
      inset 2px 2px 6px rgba(0, 0, 0, 0.2),
      inset -2px -2px 4px rgba(140, 140, 150, 0.6),
      0 0 15px rgba(255, 247, 140, 0.3),
      0 0 25px rgba(255, 247, 140, 0.15),
      inset 0 0 8px rgba(255, 247, 140, 0.2);
  }
  30%, 32% {
    box-shadow:
      inset 2px 2px 4px rgba(0, 0, 0, 0.5),
      inset -2px -2px 4px rgba(80, 80, 90, 0.3),
      0 0 0 rgba(255, 247, 140, 0);
  }
  /* Phase 2: Rot */
  34% {
    box-shadow:
      inset 2px 2px 4px rgba(0, 0, 0, 0.4),
      inset -2px -2px 4px rgba(100, 100, 110, 0.4),
      0 0 6px rgba(255, 120, 90, 0.12),
      inset 0 0 3px rgba(255, 120, 90, 0.08);
  }
  35%, 62% {
    box-shadow:
      inset 2px 2px 6px rgba(0, 0, 0, 0.25),
      inset -2px -2px 4px rgba(130, 110, 110, 0.5),
      0 0 12px rgba(255, 120, 90, 0.25),
      0 0 20px rgba(255, 120, 90, 0.12),
      inset 0 0 6px rgba(255, 120, 90, 0.15);
  }
  63%, 65% {
    box-shadow:
      inset 2px 2px 4px rgba(0, 0, 0, 0.5),
      inset -2px -2px 4px rgba(80, 80, 90, 0.3),
      0 0 0 rgba(255, 120, 90, 0);
  }
  /* Phase 3: Blau */
  67% {
    box-shadow:
      inset 2px 2px 4px rgba(0, 0, 0, 0.4),
      inset -2px -2px 4px rgba(100, 100, 110, 0.4),
      0 0 8px rgba(154, 200, 255, 0.15),
      inset 0 0 4px rgba(154, 200, 255, 0.1);
  }
  68%, 95% {
    box-shadow:
      inset 2px 2px 6px rgba(0, 0, 0, 0.2),
      inset -2px -2px 4px rgba(120, 130, 150, 0.6),
      0 0 15px rgba(154, 200, 255, 0.3),
      0 0 25px rgba(154, 200, 255, 0.15),
      inset 0 0 8px rgba(154, 200, 255, 0.2);
  }
  96%, 100% {
    box-shadow:
      inset 2px 2px 4px rgba(0, 0, 0, 0.5),
      inset -2px -2px 4px rgba(80, 80, 90, 0.3),
      0 0 0 rgba(154, 200, 255, 0);
  }
}

/* TOP-RIGHT Corner: Light from center (left-bottom), shadow on right-top */
@keyframes mech-glow-tr {
  0% { box-shadow: inset -2px 2px 4px rgba(0, 0, 0, 0.5), inset 2px -2px 4px rgba(80, 80, 90, 0.3), 0 0 0 rgba(255, 247, 140, 0); }
  1% { box-shadow: inset -2px 2px 4px rgba(0, 0, 0, 0.4), inset 2px -2px 4px rgba(100, 100, 110, 0.4), 0 0 8px rgba(255, 247, 140, 0.15), inset 0 0 4px rgba(255, 247, 140, 0.1); }
  2%, 29% { box-shadow: inset -2px 2px 6px rgba(0, 0, 0, 0.2), inset 2px -2px 4px rgba(140, 140, 150, 0.6), 0 0 15px rgba(255, 247, 140, 0.3), 0 0 25px rgba(255, 247, 140, 0.15), inset 0 0 8px rgba(255, 247, 140, 0.2); }
  30%, 32% { box-shadow: inset -2px 2px 4px rgba(0, 0, 0, 0.5), inset 2px -2px 4px rgba(80, 80, 90, 0.3), 0 0 0 rgba(255, 247, 140, 0); }
  34% { box-shadow: inset -2px 2px 4px rgba(0, 0, 0, 0.4), inset 2px -2px 4px rgba(100, 100, 110, 0.4), 0 0 6px rgba(255, 120, 90, 0.12), inset 0 0 3px rgba(255, 120, 90, 0.08); }
  35%, 62% { box-shadow: inset -2px 2px 6px rgba(0, 0, 0, 0.25), inset 2px -2px 4px rgba(130, 110, 110, 0.5), 0 0 12px rgba(255, 120, 90, 0.25), 0 0 20px rgba(255, 120, 90, 0.12), inset 0 0 6px rgba(255, 120, 90, 0.15); }
  63%, 65% { box-shadow: inset -2px 2px 4px rgba(0, 0, 0, 0.5), inset 2px -2px 4px rgba(80, 80, 90, 0.3), 0 0 0 rgba(255, 120, 90, 0); }
  67% { box-shadow: inset -2px 2px 4px rgba(0, 0, 0, 0.4), inset 2px -2px 4px rgba(100, 100, 110, 0.4), 0 0 8px rgba(154, 200, 255, 0.15), inset 0 0 4px rgba(154, 200, 255, 0.1); }
  68%, 95% { box-shadow: inset -2px 2px 6px rgba(0, 0, 0, 0.2), inset 2px -2px 4px rgba(120, 130, 150, 0.6), 0 0 15px rgba(154, 200, 255, 0.3), 0 0 25px rgba(154, 200, 255, 0.15), inset 0 0 8px rgba(154, 200, 255, 0.2); }
  96%, 100% { box-shadow: inset -2px 2px 4px rgba(0, 0, 0, 0.5), inset 2px -2px 4px rgba(80, 80, 90, 0.3), 0 0 0 rgba(154, 200, 255, 0); }
}

/* BOTTOM-LEFT Corner: Light from center (right-top), shadow on left-bottom */
@keyframes mech-glow-bl {
  0% { box-shadow: inset 2px -2px 4px rgba(0, 0, 0, 0.5), inset -2px 2px 4px rgba(80, 80, 90, 0.3), 0 0 0 rgba(255, 247, 140, 0); }
  1% { box-shadow: inset 2px -2px 4px rgba(0, 0, 0, 0.4), inset -2px 2px 4px rgba(100, 100, 110, 0.4), 0 0 8px rgba(255, 247, 140, 0.15), inset 0 0 4px rgba(255, 247, 140, 0.1); }
  2%, 29% { box-shadow: inset 2px -2px 6px rgba(0, 0, 0, 0.2), inset -2px 2px 4px rgba(140, 140, 150, 0.6), 0 0 15px rgba(255, 247, 140, 0.3), 0 0 25px rgba(255, 247, 140, 0.15), inset 0 0 8px rgba(255, 247, 140, 0.2); }
  30%, 32% { box-shadow: inset 2px -2px 4px rgba(0, 0, 0, 0.5), inset -2px 2px 4px rgba(80, 80, 90, 0.3), 0 0 0 rgba(255, 247, 140, 0); }
  34% { box-shadow: inset 2px -2px 4px rgba(0, 0, 0, 0.4), inset -2px 2px 4px rgba(100, 100, 110, 0.4), 0 0 6px rgba(255, 120, 90, 0.12), inset 0 0 3px rgba(255, 120, 90, 0.08); }
  35%, 62% { box-shadow: inset 2px -2px 6px rgba(0, 0, 0, 0.25), inset -2px 2px 4px rgba(130, 110, 110, 0.5), 0 0 12px rgba(255, 120, 90, 0.25), 0 0 20px rgba(255, 120, 90, 0.12), inset 0 0 6px rgba(255, 120, 90, 0.15); }
  63%, 65% { box-shadow: inset 2px -2px 4px rgba(0, 0, 0, 0.5), inset -2px 2px 4px rgba(80, 80, 90, 0.3), 0 0 0 rgba(255, 120, 90, 0); }
  67% { box-shadow: inset 2px -2px 4px rgba(0, 0, 0, 0.4), inset -2px 2px 4px rgba(100, 100, 110, 0.4), 0 0 8px rgba(154, 200, 255, 0.15), inset 0 0 4px rgba(154, 200, 255, 0.1); }
  68%, 95% { box-shadow: inset 2px -2px 6px rgba(0, 0, 0, 0.2), inset -2px 2px 4px rgba(120, 130, 150, 0.6), 0 0 15px rgba(154, 200, 255, 0.3), 0 0 25px rgba(154, 200, 255, 0.15), inset 0 0 8px rgba(154, 200, 255, 0.2); }
  96%, 100% { box-shadow: inset 2px -2px 4px rgba(0, 0, 0, 0.5), inset -2px 2px 4px rgba(80, 80, 90, 0.3), 0 0 0 rgba(154, 200, 255, 0); }
}

/* BOTTOM-RIGHT Corner: Light from center (left-top), shadow on right-bottom */
@keyframes mech-glow-br {
  0% { box-shadow: inset -2px -2px 4px rgba(0, 0, 0, 0.5), inset 2px 2px 4px rgba(80, 80, 90, 0.3), 0 0 0 rgba(255, 247, 140, 0); }
  1% { box-shadow: inset -2px -2px 4px rgba(0, 0, 0, 0.4), inset 2px 2px 4px rgba(100, 100, 110, 0.4), 0 0 8px rgba(255, 247, 140, 0.15), inset 0 0 4px rgba(255, 247, 140, 0.1); }
  2%, 29% { box-shadow: inset -2px -2px 6px rgba(0, 0, 0, 0.2), inset 2px 2px 4px rgba(140, 140, 150, 0.6), 0 0 15px rgba(255, 247, 140, 0.3), 0 0 25px rgba(255, 247, 140, 0.15), inset 0 0 8px rgba(255, 247, 140, 0.2); }
  30%, 32% { box-shadow: inset -2px -2px 4px rgba(0, 0, 0, 0.5), inset 2px 2px 4px rgba(80, 80, 90, 0.3), 0 0 0 rgba(255, 247, 140, 0); }
  34% { box-shadow: inset -2px -2px 4px rgba(0, 0, 0, 0.4), inset 2px 2px 4px rgba(100, 100, 110, 0.4), 0 0 6px rgba(255, 120, 90, 0.12), inset 0 0 3px rgba(255, 120, 90, 0.08); }
  35%, 62% { box-shadow: inset -2px -2px 6px rgba(0, 0, 0, 0.25), inset 2px 2px 4px rgba(130, 110, 110, 0.5), 0 0 12px rgba(255, 120, 90, 0.25), 0 0 20px rgba(255, 120, 90, 0.12), inset 0 0 6px rgba(255, 120, 90, 0.15); }
  63%, 65% { box-shadow: inset -2px -2px 4px rgba(0, 0, 0, 0.5), inset 2px 2px 4px rgba(80, 80, 90, 0.3), 0 0 0 rgba(255, 120, 90, 0); }
  67% { box-shadow: inset -2px -2px 4px rgba(0, 0, 0, 0.4), inset 2px 2px 4px rgba(100, 100, 110, 0.4), 0 0 8px rgba(154, 200, 255, 0.15), inset 0 0 4px rgba(154, 200, 255, 0.1); }
  68%, 95% { box-shadow: inset -2px -2px 6px rgba(0, 0, 0, 0.2), inset 2px 2px 4px rgba(120, 130, 150, 0.6), 0 0 15px rgba(154, 200, 255, 0.3), 0 0 25px rgba(154, 200, 255, 0.15), inset 0 0 8px rgba(154, 200, 255, 0.2); }
  96%, 100% { box-shadow: inset -2px -2px 4px rgba(0, 0, 0, 0.5), inset 2px 2px 4px rgba(80, 80, 90, 0.3), 0 0 0 rgba(154, 200, 255, 0); }
}

/* Screw glow response - three phases */
@keyframes screw-glow-response {
  /* OFF states */
  0%, 32%, 65%, 98%, 100% {
    box-shadow:
      inset 1px 1px 2px rgba(80, 80, 90, 0.4),
      inset -1px -1px 2px rgba(0, 0, 0, 0.6),
      0 0 0 rgba(255, 247, 140, 0);
  }

  /* Phase 1: Gelb */
  2%, 29% {
    box-shadow:
      inset 1px 1px 2px rgba(120, 120, 130, 0.5),
      inset -1px -1px 2px rgba(0, 0, 0, 0.4),
      0 0 6px rgba(255, 247, 140, 0.2);
  }

  /* Phase 2: Rot */
  35%, 62% {
    box-shadow:
      inset 1px 1px 2px rgba(110, 100, 100, 0.45),
      inset -1px -1px 2px rgba(0, 0, 0, 0.45),
      0 0 5px rgba(255, 120, 90, 0.15);
  }

  /* Phase 3: Blau */
  68%, 95% {
    box-shadow:
      inset 1px 1px 2px rgba(120, 130, 150, 0.5),
      inset -1px -1px 2px rgba(0, 0, 0, 0.4),
      0 0 6px rgba(154, 200, 255, 0.2);
  }
}

/* Apply directional animations to each corner */
.mech-corner-tl::before {
  animation: mech-glow-tl 12s linear infinite;
}

.mech-corner-tr::before {
  animation: mech-glow-tr 12s linear infinite;
}

.mech-corner-bl::before {
  animation: mech-glow-bl 12s linear infinite;
}

.mech-corner-br::before {
  animation: mech-glow-br 12s linear infinite;
}

.mech-corner-tl::after,
.mech-corner-tr::after,
.mech-corner-bl::after,
.mech-corner-br::after {
  animation: screw-glow-response 12s linear infinite;
  animation-delay: 0s;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .mech-corner {
    width: clamp(60px, 15vw, 90px);
    height: clamp(60px, 15vw, 90px);
  }
}

/* =============== Section 3: Work / Showcases =============== */
.work-section{
  --work-rail-h: clamp(64px, 10vw, 120px);
  --strip-h-top: clamp(120px, 14vw, 180px);
  --strip-h-bottom: clamp(140px, 15vw, 200px);

  position: relative;
  width: min(92vw, 1280px);
  margin: 4vh auto;
  padding: clamp(10px, 2vw, 16px) 0;
}

/* Headline + Balken sitzen zwischen den Grids */
.work-header{
  position: relative;
  display: grid;
  place-items: center;
  margin: clamp(24px, 2vw, 24px) 0;
  pointer-events: none;
  min-height: var(--work-rail-h);
}

/* Roter Balken */
.work-rail{
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100vw;
  height: var(--work-rail-h);
  transform: translate(-50%, -50%);
  background: #5b1f21;
  pointer-events: none;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
  will-change: transform;
}

/* Headline als SVG */
.work-title-svg{
  position: relative;
  z-index: 10;
  height: calc(var(--work-rail-h) * 0.78);
  max-width: min(90vw, 1100px);
  display: block;
  pointer-events: none;
}

.work-title .wline{ display:block; }

/* ===== Zwei Grids ===== */
.work-grid{
  display: grid;
  gap: clamp(14px, 2vw, 18px);
  align-items: stretch;
  max-width: 80vw;
  margin: auto;
  position: relative;
  z-index: 2;
}

/* OBERES Grid */
.work-grid-top{
  grid-template-columns: 1fr 1fr;
}
.work-grid-top .wc-amen{ align-self: end; }

/* UNTERES Grid */
.work-grid-bottom{
  grid-template-columns: 1fr 1fr;
}

/* Cards */
.work-card{
  all: unset;
  display: grid;
  grid-template-rows: auto 1fr;
  position: relative;
  border: none;
  background: rgba(228, 226, 226, 0.507);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  overflow: hidden;
  z-index: 1;
  will-change: transform;
  backface-visibility: hidden;
}
.work-card:focus-visible{ outline: 2px solid #fff; outline-offset: 2px; }

.work-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(0, 0, 0, .4) 0 1px,
      rgba(0, 0, 0, 0) 1px 4px
    );
  mix-blend-mode: normal;
  opacity: .6;
  animation: web3Scan 6s linear infinite;
}

@keyframes web3Scan {
  from { background-position: 0 0; }
  to   { background-position: 0 560px; }
}
.wc-title{
  position: absolute;
  left: clamp(12px, 2vw, 16px);
  top: clamp(10px, 1.8vw, 14px);
  z-index: 2;
  font-size: clamp(22px, 3.2vw, 36px);
  letter-spacing:.02em;
  text-transform: lowercase;
}
.wc-media{ position:absolute; inset:0; z-index:1; }

/* Seitenverhältnisse */
.wc-amen   { aspect-ratio: 13 / 9; max-width: 80%; max-height: 75%; justify-self: end; }
.wc-artfete{ aspect-ratio: 8 / 9; max-width: 70%; max-height: 100%;}
.wc-chico  { aspect-ratio: 8 / 9; max-width: 70%; max-height: 100%; justify-self: end;}
.wc-dayfox { aspect-ratio: 13 / 9; max-width: 80%; max-height: 75%; }

.work-grid > .work-card{ width: 100%; }


/* Poster placeholder */
.wc-poster{
  display: grid;
  place-items: end center;
  padding: 10px;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 2px, rgba(0,0,0,.08) 2px 4px),
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(0,0,0,.2));
}
.poster-mark{ font-weight: 700; letter-spacing: .06em; font-size: clamp(18px, 3vw, 24px); opacity:.9; }

/* SVG container for work cards */
.wc-svg-container{
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(8px, 1.5vw, 14px) clamp(8px, 1.5vw, 14px) 0;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* Background image layer */
.wc-svg-container::before{
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.4;
  z-index: 0;
}

.wc-svg-image{
  width: 100%;
  height: 100%;
  object-position: top;
  filter: brightness(0.15) contrast(1.2) saturate(0.8);
  position: relative;
  z-index: 1;
}

/* Chico-specific: align to bottom */
.wc-chico .wc-svg-container {
  align-items: flex-end;
  padding: 0 clamp(8px, 1.5vw, 14px) 0;
}

.wc-chico .wc-svg-image {
  object-position: bottom;
  object-fit: contain;
}

/* Individual background images per card */
.wc-amen .wc-svg-container::before{
  background-image: url('images/amen-bg.webp');
}
.wc-artfete .wc-svg-container::before{
  background-image: url('images/artfete-bg.webp');
}
.wc-chico .wc-svg-container::before{
  background-image: url('images/chico-bg.webp');
}
.wc-dayfox .wc-svg-container::before{
  background-image: url('images/dayfox-bg.webp');
}

/* Screen Reader only utility */
.sr-only{
  position:absolute !important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden;
  clip:rect(0,0,0,0); border:0;
}

/* Mobile: Kacheln werden Streifen untereinander */
@media (max-width: 900px){
  .work-header{
    margin: 0;
  }

  .work-grid{
    max-width: 85vw;
    min-height: 38vh;
    align-content: center;
  }
  .work-grid-top,
  .work-grid-bottom{
    grid-template-columns: 1fr;
  }

  .work-card{
    aspect-ratio: auto !important;
    min-height: clamp(90px, 20vw, 130px);
    max-height: clamp(90px, 20vw, 130px);
    height: clamp(90px, 20vw, 130px);
    margin: 0;
  }

  .work-title-svg{ height: calc(var(--work-rail-h) * 0.7); }

  .wc-amen   {
    max-width: 100%;
    min-height: 14vh;
    max-height: 14vh;
    height: 14vh;
    justify-self: stretch !important;
    align-self: stretch !important;
  }
  .wc-artfete{
    max-width: 100%;
    min-height: 14vh;
    max-height: 14vh;
    height: 14vh;
    justify-self: stretch !important;
    align-self: stretch !important;
  }
  .wc-chico  {
    max-width: 100%;
    min-height: 14vh;
    max-height: 14vh;
    height: 14vh;
    justify-self: stretch !important;
    align-self: stretch !important;
  }
  .wc-dayfox {
    max-width: 100%;
    min-height: 14vh;
    max-height: 14vh;
    height: 14vh;
    justify-self: stretch !important;
    align-self: stretch !important;
  }

  .wc-svg-container{
    padding: 0px clamp(8px, 1.5vw, 14px);
    max-height: 100%;
    align-items: center;
    justify-content: center;
  }

  .wc-svg-image{
    max-height: 100%;
    object-position: bottom;
    object-fit: contain;
    ;
  }
}

/* =============== Work "More" Link =============== */
.work-more-container {
  width: 100%;
  text-align: center;
  margin-top: -4vh;
}

.work-more-link {
  display: inline-block;
  font-family: "Barlow Condensed", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: clamp(14px, 1.8vw, 18px);
  letter-spacing: 0.04em;
  color: var(--ink);
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.25s ease;
}

.work-more-link:hover {
  opacity: 1;
}

/* ======================= WEB 3.0 SECTION (CLEAN) ======================= */

/* Section */
.web3-section {
  padding: clamp(28px, 5vw, 56px) 0;
}

/* ----------------------- Frame + Scanlines ----------------------- */
.web3-frame {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  padding: clamp(16px, 2.6vw, 28px);
  background:
    radial-gradient(180% 120% at 12% 50%, rgba(255, 247, 150, .22), transparent 45%),
    radial-gradient(140% 120% at 80% 48%, rgba(255, 247, 150, .14), transparent 58%),
    linear-gradient(180deg, rgba(0, 0, 0, .72), rgba(0, 0, 0, .90));
  border-top: 1.5px solid rgba(85, 71, 20, 0.5);
  border-bottom: 1.5px solid rgba(85, 71, 20, 0.5);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .06),
    0 0 0 1px rgba(255, 245, 130, .28),
    0 26px 60px rgba(0, 0, 0, .45);
  isolation: isolate;
  overflow: visible;
  margin-bottom: 72px;
  contain: layout style;
}

.web3-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 210, .20) 0 2px,
      rgba(0, 0, 0, 0) 2px 6px
    );
  mix-blend-mode: screen;
  opacity: .55;
  animation: web3Scan 6s linear infinite;
}

/* ----------------------- Left Title ----------------------- */
.web3-left {
  padding: clamp(10px, 1.6vw, 18px) clamp(14px, 2.2vw, 22px);
}

.web3-title {
  margin-left: 15%;
  display: flex;
  align-items: flex-end;
  gap: .14em;
}

.web3-tag {
  font-size: clamp(26px, 4.2vw, 54px);
  letter-spacing: .06em;
  color: #fff385;
  text-shadow: 0 0 18px rgba(255, 245, 130, .45);
}

.web3-num {
  font-size: clamp(120px, 22vw, 280px);
  line-height: .9;
  color: #fff78c;
  text-shadow:
    0 0 50px rgba(255, 245, 140, .38),
    0 0 80px rgba(255, 245, 140, .22);
}
.flicker {
  animation: flicker-crt 4s infinite;
  animation-timing-function: steps(3);
}

@keyframes flicker-crt {
  0%, 45% { opacity: 1; }
  46%   { opacity: 0.92; }
  46.5% { opacity: 0.7; }
  47%   { opacity: 1; }

  48%, 87% { opacity: 1; }
  88%   { opacity: 0.85; }
  88.5% { opacity: 0.5; }
  89%   { opacity: 0.95; }

  90%, 94% { opacity: 1; }
  95%   { opacity: 0.92; }
  95.5% { opacity: 0.7; }
  96%   { opacity: 0.95; }
  97%   { opacity: 0.2; }
  97.2% { opacity: 0; }
  97.4% { opacity: 1; }
  99%   { opacity: 0.85; }
  99.2% { opacity: 1; }
}
.glitch--small {
  position: relative;
  display: inline-block;
}

.glitch--small::before,
.glitch--small::after {
  opacity: 50%;
  content: attr(data-glitch);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: inherit;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.glitch--small::before {
  animation: glitchTopSmall 0.8s linear infinite;
  clip-path: polygon(0 0, 100% 0, 100% 40%, 0 40%);
  -webkit-clip-path: polygon(0 0, 100% 0, 100% 40%, 0 40%);
  text-shadow: 0.5px 0 #ff4d4d;
}

.glitch--small::after {
  animation: glitchBottomSmall 1.2s linear infinite;
  clip-path: polygon(0 60%, 100% 60%, 100% 100%, 0 100%);
  -webkit-clip-path: polygon(0 60%, 100% 60%, 100% 100%, 0 100%);
  text-shadow: -0.5px 0 #4d79ff;
}

/* Main text: very slight wobble */
.glitch--small {
  animation: glitchMainSmall 0.8s linear infinite;
}

/* Keyframes */
@keyframes glitchMainSmall {
  2%, 64% { transform: translate(0.5px, 0); }
  4%, 60% { transform: translate(-0.5px, 0); }
  62%     { transform: translate(0, 0) skew(1deg); }
}

@keyframes glitchTopSmall {
  2%, 64% { transform: translate(0.5px, -0.5px); }
  4%, 60% { transform: translate(-0.5px, 0.5px); }
  62%     { transform: translate(2px, -0.5px) skew(-3deg); }
}

@keyframes glitchBottomSmall {
  2%, 64% { transform: translate(-0.5px, 0); }
  4%, 60% { transform: translate(-0.5px, 0); }
  62%     { transform: translate(-3px, 1px) skew(4deg); }
}

.glitch {
  position: relative;
  display: inline-block;
}

.glitch::before,
.glitch::after {
  content: attr(data-glitch);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: inherit;
  overflow: hidden;
  pointer-events: none;
  text-shadow: none;
}

.glitch::before {
  animation: none;
  clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
  -webkit-clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
  z-index: -1;
}

.glitch::after {
  animation: none;
  clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%);
  -webkit-clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%);
  z-index: -2;
}

.glitch {
  animation: none;
}

.glitch.active {
  animation: glitch 0.3s linear;
}

.glitch.active::before {
  animation: glitchTop 0.3s linear;
}

.glitch.active::after {
  animation: glitchBottom 0.3s linear;
}

@keyframes glitch {
  0%, 100% { transform: translate(0, 0) skew(0deg); }
  25% { transform: translate(2px, 0) skew(0deg); }
  50% { transform: translate(-2px, 0) skew(0deg); }
  75% { transform: translate(0, 0) skew(5deg); }
}

@keyframes glitchTop {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(2px, -2px); }
  50% { transform: translate(-2px, 2px); }
  75% { transform: translate(13px, -1px) skew(-13deg); }
}

@keyframes glitchBottom {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-2px, 0); }
  50% { transform: translate(-2px, 0); }
  75% { transform: translate(-22px, 5px) skew(21deg); }
}

/* ----------------------- Carousel ----------------------- */
.w3-carousel {
  position: relative;
  width: 100%;
}

.w3-track {
  --w3H: clamp(280px, 42vw, 460px);
  position: relative;
  height: var(--w3H);
  border-radius: 16px;
  display: grid;
  place-items: center;
  overflow: visible;
  perspective: 1200px;
}

/* ----------------------- Slides ----------------------- */
.w3-slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity .35s ease, transform .35s ease;
}

.w3-slide.is-active {
  opacity: 1;
  transform: none;
  z-index: 1;
}

.w3-slide img {
  position: absolute;
  max-width: 85%;
  max-height: 72%;
  object-fit: contain;
  z-index: 1;
  align-self: center;
  justify-self: center;
  filter: drop-shadow(0 20px 34px rgba(0, 0, 0, .5));
}

.w3-slide::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(560px, 66%);
  height: min(420px, 86%);
  border-radius: 16px;
  border: 2px solid rgba(255, 250, 180, .95);
  box-shadow:
    0 0 28px rgba(255, 245, 150, .55),
    0 0 80px rgba(255, 245, 150, .24),
    inset 0 0 36px rgba(255, 245, 150, .18);
  z-index: 0;
}

/* ----------------------- Caption ----------------------- */
.w3-caption {
  position: absolute;
  bottom: 12px;
  right: clamp(24px, 6vw, 44px);
  z-index: 2;
  font-family: monospace;
  letter-spacing: .12em;
  font-size: clamp(14px, 2vw, 20px);
  background: rgba(0, 0, 0, .55);
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 245, 140, .55);
  color: #fff7b2;
  box-shadow:
    0 0 28px rgba(255, 245, 150, .55),
    0 0 80px rgba(255, 245, 150, .24),
    inset 0 0 36px rgba(255, 245, 150, .18);
  text-shadow: 0 0 18px rgba(255, 245, 130, .45);
}

/* ----------------------- Navigation ----------------------- */
.w3-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 3;
}

.w3-nav.prev { left: -8px; }
.w3-nav.next { right: -8px; }

.w3-nav::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  margin: auto;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .35));
}

.w3-nav.prev::before {
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-right: 16px solid rgba(255, 255, 240, .9);
}

.w3-nav.next::before {
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 16px solid rgba(255, 255, 240, .9);
}

.w3-nav:hover::before {
  filter: drop-shadow(0 4px 10px rgba(255, 245, 130, .45));
}

/* ----------------------- Dots ----------------------- */
.w3-dots {
  position: absolute;
  left: 50%;
  bottom: -44px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.w3-dots .dot {
  width: 12px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 245, 140, .75);
  background: transparent;
  flex-shrink: 0;
  aspect-ratio: 1;
  transform: translateZ(0);
  backface-visibility: hidden;
  contain: layout style paint;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.w3-dots .dot.is-active {
  background: rgba(255, 245, 140, .95);
  transform: translateZ(0) scale(1);
}

/* ----------------------- Text Block ----------------------- */
.web3-text {
  max-width: min(750px, 88vw);
  margin: clamp(18px, 2.6vw, 28px) auto 0;
  padding: 0 clamp(12px, 2vw, 18px);
  color: var(--ink, #eee);
}

.web3-text .lead {
  font-weight: 700;
  font-size: clamp(16px, 2vw, 20px);
}

.web3-text.fade-out {
  opacity: 0;
  transform: translateY(4px);
  transition: .22s ease;
}

.web3-text.fade-in {
  opacity: 1;
  transform: none;
  transition: .22s ease;
}

/* ----------------------- Responsive: Mobile ----------------------- */
@media (max-width: 900px) {
  .web3-frame {
    grid-template-columns: 1fr;
  }
  .web3-title {
    justify-content: center;
    text-align: center;
    transform: translateY(.38em);
    margin-bottom: -15%;
    margin-left: auto;
  }
  
  .w3-slide::after {
    width: 86%;
    height: clamp(180px, 58vw, 380px);
  }
  .w3-nav.prev { left: 6px; }
  .w3-nav.next { right: 6px; }
}

/* ----------------------- Responsive: Desktop ----------------------- */
@media (min-width: 901px) {
  #section-web3.web3-section {
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .web3-frame {
    max-height: 45vh;
  }

  .web3-right {
    display: grid;
    place-items: center;
  }

  .w3-carousel {
    justify-self: center;
    align-self: center;
  }

  .w3-track {
    height: clamp(220px, 28vh, 33vh);
    max-height: 33vh;
    overflow: visible;
    perspective: 1200px;
  }
}

/* ----------------------- Busy Guard ----------------------- */
#web3Carousel.is-busy * {
  pointer-events: none;
}

.web3-slide--energy,
.energy-ring[data-energy-ring] {
  position:relative;
  width:100%;
  height:100%;
  display:grid;
  place-items:center;
  overflow:hidden;
}
.energy-ring canvas {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  display:block;
}

.web3-slide--network,
.network-animation[data-network-animation] {
  position:relative;
  width:100%;
  height:100%;
  display:grid;
  place-items:center;
  overflow:hidden;
}
.network-animation canvas {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  display:block;
}

.web3-slide--geometry,
.geometry-animation[data-geometry-animation] {
  position:relative;
  width:100%;
  height:100%;
  display:grid;
  place-items:center;
  overflow:hidden;
}
.geometry-animation canvas {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  display:block;
}

.web3-slide--fluid,
.fluid-animation[data-fluid-animation] {
  position:relative;
  width:100%;
  height:100%;
  display:grid;
  place-items:center;
  overflow:hidden;
}
.fluid-animation canvas {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  display:block;
}
/* Use small viewport units when supported (prevents iOS URL bar jumps) */
@supports (height: 100svh) {
  .service-modal,
  .service-modal .modal-dialog,
  .modal-dialog { height: 100svh; }
}

/* =============== Work Gallery Modal =============== */
.gallery-modal[hidden] {
  display: none;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 2500;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: transparent;
}

.gallery-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1;
}

.gallery-dialog {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 4vw, 40px);
  padding-top: calc(env(safe-area-inset-top) + 20px);
  padding-bottom: calc(env(safe-area-inset-bottom) + 20px);
  z-index: 2;
}

.gallery-close {
  position: absolute;
  top: clamp(16px, 3vw, 24px);
  right: clamp(16px, 3vw, 24px);
  background: transparent;
  border: 0;
  color: var(--ink);
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  padding: 8px;
  z-index: 100;
  transition: opacity 0.2s ease;
  pointer-events: auto;
  outline: none;
}

.gallery-close:hover {
  opacity: 0.7;
}

.gallery-close:focus {
  outline: none;
}

.gallery-title {
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
  margin: 0 0 clamp(24px, 4vh, 40px);
  color: var(--ink);
  text-transform: uppercase;
  z-index: 3;
  position: relative;
}

/* Gallery Container */
.gallery-container {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  z-index: 3;
}

.gallery-track {
  display: flex;
  gap: clamp(16px, 2vw, 24px);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: clamp(16px, 2vw, 24px);
  width: 100%;
  height: 100%;
  align-items: center;
  -webkit-overflow-scrolling: touch;
  pointer-events: auto;
  cursor: grab;
  z-index: 3;
}

.gallery-track:active {
  cursor: grabbing;
}

/* Hide scrollbar but keep functionality */
.gallery-track::-webkit-scrollbar {
  display: none;
}

.gallery-track {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.gallery-item {
  position: relative;
  flex-shrink: 0;
  width: clamp(320px, 70vw, 800px);
  height: clamp(240px, 60vh, 600px);
  scroll-snap-align: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(18, 18, 18, 0.95);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xl);
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  padding: clamp(12px, 2vh, 20px);
  text-align: center;
  font-size: clamp(14px, 2vw, 18px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  backdrop-filter: blur(4px);
}

/* Navigation Arrows */
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(18, 18, 18, 0.85);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1;
  width: clamp(44px, 6vw, 60px);
  height: clamp(44px, 6vw, 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
  transition: background 0.2s ease, border-color 0.2s ease;
  backdrop-filter: blur(4px);
  pointer-events: auto;
  padding: 0;
}

.gallery-nav:hover {
  background: rgba(18, 18, 18, 0.95);
  border-color: var(--ink);
}

.gallery-nav-prev {
  left: clamp(8px, 2vw, 16px);
}

.gallery-nav-next {
  right: clamp(8px, 2vw, 16px);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .gallery-nav {
    display: none;
  }

  .gallery-item {
    width: clamp(280px, 85vw, 400px);
    height: clamp(200px, 50vh, 400px);
  }
}

/* =============== Final Section: Contact =============== */
.contact-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  padding: clamp(40px, 8vh, 80px) 18px;
  margin-top: clamp(80px, 12vh, 120px);
}

.contact-section-title {
  position: absolute;
  top: clamp(40px, 8vh, 80px);
  left: max(18px, calc((100vw - 1200px) / 2 + 18px));
  font-size: clamp(32px, 6vw, 72px);
  font-weight: 700;
  line-height: .95;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin: 0 0 24px;
  text-transform: uppercase;
}

.contact-links-wrapper {
  position: relative;
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 40vh;
  margin-top: auto;
  margin-bottom: auto;
}

.contact-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(50px, 6vh, 70px);
  animation: credits-scroll 40s linear infinite;
}

@keyframes credits-scroll {
  0% {
    transform: translateY(0%);
  }
  100% {
    transform: translateY(-33.33%);
  }
}

.contact-link {
  text-decoration: none;
  color: var(--muted);
  font-size: clamp(24px, 4vw, 48px);
  font-weight: 200;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  position: relative;
  white-space: nowrap;
  text-align: center;
}

.contact-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.contact-link:hover {
  color: #ff9670;
}

.contact-link:hover::after {
  transform: scaleX(1);
  background: #ff9670;
}

.tbc-wrap {
  position: absolute;
  bottom: clamp(40px, 8vh, 80px);
  right: max(18px, calc((100vw - 1200px) / 2 + 18px));
}

.tbc-headline {
  font-size: clamp(32px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin: 0;
  text-align: right;
  text-transform: uppercase;
}

/* =============== Case Study Modal Content (Shared Styles) =============== */
.artfete-content,
.dayfox-content,
.chico-content {
  line-height: 1.7;
}

.artfete-subtitle,
.dayfox-subtitle,
.chico-subtitle {
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 300;
  font-style: italic;
  color: var(--muted);
  margin: 0 0 clamp(24px, 3vh, 32px);
  letter-spacing: 0.02em;
}

.artfete-meta,
.dayfox-meta,
.chico-meta {
  margin-bottom: clamp(24px, 3vh, 32px);
  padding: clamp(16px, 2vh, 24px);
  background: rgba(255, 255, 255, 0.03);
  border-left: 2px solid var(--accent, #ff9670);
}

.artfete-meta p,
.dayfox-meta p,
.chico-meta p {
  margin: 4px 0;
  font-size: clamp(14px, 2.5vw, 16px);
  color: var(--muted);
}

.artfete-intro,
.dayfox-intro,
.chico-intro {
  font-size: clamp(15px, 2.8vw, 17px);
  margin-bottom: clamp(20px, 2.5vh, 28px);
  line-height: 1.8;
}

.artfete-intro em,
.dayfox-results li em,
.chico-results li em {
  font-style: italic;
  color: var(--accent, #ff9670);
}

.artfete-section-title,
.dayfox-section-title,
.chico-section-title {
  font-size: clamp(16px, 3vw, 20px);
  font-weight: 600;
  margin: clamp(28px, 4vh, 40px) 0 clamp(16px, 2vh, 20px);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.artfete-list,
.dayfox-list,
.chico-list {
  list-style: none;
  padding: 0;
  margin: 0 0 clamp(24px, 3vh, 32px);
}

.artfete-list li,
.dayfox-list li,
.chico-list li {
  margin-bottom: clamp(16px, 2vh, 20px);
  padding-left: clamp(20px, 3vw, 24px);
  position: relative;
}

.artfete-list li::before,
.dayfox-list li::before,
.chico-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent, #ff9670);
  font-weight: bold;
}

.artfete-closing,
.dayfox-closing,
.chico-closing {
  font-size: clamp(15px, 2.8vw, 17px);
  margin: clamp(24px, 3vh, 32px) 0;
  padding: clamp(16px, 2vh, 20px);
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  line-height: 1.8;
}

.artfete-closing {
  text-align: center;
  font-style: italic;
}

.artfete-media-placeholder,
.dayfox-media-placeholder,
.chico-media-placeholder {
  margin-top: clamp(40px, 5vh, 60px);
  padding: clamp(32px, 4vh, 48px);
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  text-align: center;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.artfete-media-placeholder::after,
.dayfox-media-placeholder::after,
.chico-media-placeholder::after {
  content: 'Bilder, Videos & Logo folgen';
  color: var(--muted);
  font-size: clamp(14px, 2.5vw, 16px);
  font-style: italic;
  opacity: 0.5;
}

/* =============== Chico-Specific Styles (only unique elements) =============== */
.chico-highlight {
  margin: clamp(24px, 3vh, 32px) 0;
  padding: clamp(20px, 3vh, 28px);
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid var(--accent, #ff9670);
}

.chico-highlight h6 {
  font-size: clamp(15px, 2.8vw, 18px);
  font-weight: 600;
  margin: 0 0 clamp(12px, 1.5vh, 16px);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.chico-sublist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.chico-sublist li {
  margin-bottom: clamp(12px, 1.5vh, 16px);
  padding-left: clamp(16px, 2.5vw, 20px);
  position: relative;
  font-size: clamp(14px, 2.5vw, 16px);
}

.chico-sublist li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent, #ff9670);
}

/* =============== Footer =============== */
.site-footer {
  background: var(--header);
  border-top: 1px solid var(--line);
  padding: clamp(24px, 4vh, 40px) 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(32px, 6vw, 64px);
  align-items: start;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-tagline {
  margin: 0;
  font-size: clamp(14px, 1.8vw, 16px);
  color: var(--muted);
  letter-spacing: 0.02em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.footer-link {
  font-size: clamp(14px, 1.8vw, 16px);
  color: var(--ink);
  text-decoration: none;
  transition: opacity 0.2s ease;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}

.footer-link:hover {
  opacity: 0.7;
}

.footer-link-impressum {
  text-decoration: underline;
}

/* Footer Sitemap (Desktop only) */
.footer-sitemap {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: clamp(24px, 4vw, 48px);
}

.sitemap-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sitemap-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 4px;
}

.sitemap-link {
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.sitemap-link:hover {
  opacity: 0.7;
}

/* Impressum Modal Content */
.impressum-content {
  line-height: 1.6;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.impressum-content p {
  margin: 0 0 24px;
  font-size: clamp(14px, 2.5vw, 16px);
  color: var(--muted);
}

.impressum-content strong {
  color: var(--ink);
}

/* Responsive Footer */
@media (max-width: 820px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-sitemap {
    display: none;
  }

  .footer-links {
    flex-direction: column;
    gap: 12px;
  }
}

/* =============== Retro Digital Clock =============== */
.retro-clock {
  position: relative;
  z-index: 1;
  animation: slideInFromLeft 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
  animation-delay: 0.5s;
  opacity: 0;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.retro-clock:hover {
  transform: scale(1.05);
}

@keyframes slideInFromLeft {
  0% {
    transform: translateX(-200px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.clock-inner {
  position: relative;
  background: transparent;
  border: none;
  padding: 0px 8px 0px;
  overflow: hidden;
}

.clock-display {
  position: relative;
  z-index: 2;
  background: transparent;
  padding: 4px 8px;
  border-radius: 3px;
  border: none;
}

/* Ghost segments - inactive 7-segment display */
.clock-display::before {
  content: '88:88:88';
  position: absolute;
  top: 4px;
  left: 8px;
  font-family: 'Digital-7 Mono', 'DSEG7', monospace;
  font-size: clamp(14px, 2.5vw, 18px);
  font-weight: 400;
  color: rgba(80, 50, 10, 0.15);
  letter-spacing: 0.05em;
  line-height: 1;
  z-index: 1;
  pointer-events: none;
}

.clock-time {
  display: block;
  position: relative;
  z-index: 2;
  font-family: 'Digital-7 Mono', 'DSEG7', monospace;
  font-size: clamp(14px, 2.5vw, 18px);
  font-weight: 400;
  color: #ffb432;
  letter-spacing: 0.05em;
  line-height: 1;
  animation: clockFlicker 0.15s infinite alternate, clockGlitch 8s infinite;
  min-width: 75px;
  text-align: center;
}

/* Glitch effect for text replacement */
.clock-time.glitching {
  animation: textGlitchIn 0.3s ease-out, clockFlicker 0.15s infinite alternate;
}

@keyframes textGlitchIn {
  0% {
    transform: translate(-10px, 2px) skew(-5deg);
    opacity: 0;
    filter: hue-rotate(90deg) brightness(1.5);
    text-shadow:
      -5px 0 rgba(255, 0, 0, 0.7),
      5px 0 rgba(0, 255, 255, 0.7),
      0 0 15px rgba(255, 180, 50, 0.9);
  }
  20% {
    transform: translate(8px, -2px) skew(8deg);
    filter: hue-rotate(-60deg) brightness(0.8);
    text-shadow:
      -3px 0 rgba(255, 0, 0, 0.5),
      3px 0 rgba(0, 255, 255, 0.5),
      0 0 20px rgba(255, 180, 50, 0.9);
  }
  40% {
    transform: translate(-5px, 1px) skew(-3deg);
    filter: hue-rotate(30deg) brightness(1.2);
    opacity: 0.8;
  }
  60% {
    transform: translate(3px, -1px) skew(2deg);
    filter: hue-rotate(-20deg) brightness(0.9);
  }
  80% {
    transform: translate(-2px, 0px) skew(-1deg);
    filter: hue-rotate(10deg) brightness(1.1);
    opacity: 1;
  }
  100% {
    transform: translate(0, 0) skew(0deg);
    opacity: 1;
    filter: hue-rotate(0deg) brightness(1);
    text-shadow:
      0 0 12px rgba(255, 180, 50, 0.9),
      0 0 20px rgba(255, 180, 50, 0.7),
      0 0 28px rgba(255, 180, 50, 0.5),
      0 0 36px rgba(255, 180, 50, 0.3);
  }
}

@keyframes clockFlicker {
  0% {
    opacity: 0.98;
    filter: brightness(0.98);
  }
  100% {
    opacity: 1;
    filter: brightness(1.02);
  }
}

@keyframes clockGlitch {
  0%, 98%, 100% {
    transform: translate(0);
    filter: brightness(1);
  }
  98.5% {
    transform: translate(-2px, 1px);
    filter: brightness(1.3) hue-rotate(15deg);
  }
  99% {
    transform: translate(2px, -1px);
    filter: brightness(0.8) hue-rotate(-15deg);
  }
  99.5% {
    transform: translate(-1px, 0);
    filter: brightness(1.2);
  }
}

.clock-date {
  display: none;
}

.clock-scanline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(255, 180, 50, 0.03) 50%,
    transparent 100%
  );
  background-size: 100% 4px;
  animation: scanlineMove 8s linear infinite;
  pointer-events: none;
  z-index: 3;
}

@keyframes scanlineMove {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 0 100%;
  }
}

/* Corner Accents */
.clock-inner::before,
.clock-inner::after {
  content: '';
  position: absolute;
  width: 5px;
  height: 5px;
  border: 1px solid rgba(255, 180, 50, 0.7);
  z-index: 1;
}

.clock-inner::before {
  top: 2px;
  left: 2px;
  border-right: none;
  border-bottom: none;
}

.clock-inner::after {
  bottom: 2px;
  right: 2px;
  border-left: none;
  border-top: none;
}

/* Mobile adjustments */
@media (max-width: 768px) {

  .retro-clock:hover {
    transform: scale(1.05);
  }

  .clock-inner {
    padding: 0px 12px 0px;
  }

  .clock-display {
    padding: 8px 1px;
  }

  .clock-display::before {
    font-size: 18px;
  }

  .clock-time {
    min-width: 50px;
  }
}

/* =============== Retro Arrow Buttons =============== */
.model-nav {
  position: absolute;
  top: var(--nav-offset-top);
  transform: translateY(-50%);
  z-index: 8;
  width: 40px;
  height: 40px;
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
}

.model-nav.left {
  left: 20px;
}

.model-nav.right {
  right: 20px;
}

.model-nav::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  margin: auto;
  filter: drop-shadow(0 0 10px rgba(255, 180, 50, 0.8));
  transition: all 0.2s ease;
}

.model-nav.left::before {
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-right: 16px solid #ffb432;
}

.model-nav.right::before {
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 16px solid #ffb432;
}

@media (hover: hover) {
  .model-nav:hover::before {
    filter: drop-shadow(0 0 16px rgba(255, 180, 50, 1));
    transform: scale(1.1);
  }
}

/* =============== HUD System =============== */
.hero-hud {
  position: absolute;
  top: 30px;
  left: max(18px, calc((100vw - 1200px) / 2 + 18px));
  right: max(18px, calc((100vw - 1200px) / 2 + 18px));
  z-index: 10;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.hud-code-stream {
  background: transparent;
  border: none;
  padding: 0;
  min-width: 180px;
  max-width: 220px;
  height: 140px;
  overflow: hidden;
  position: relative;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.5;
  color: #ffb432;
}

.code-line {
  opacity: 0;
  animation: fadeInOut 3s linear forwards;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
    transform: translateY(-5px);
  }
  10% {
    opacity: 1;
    transform: translateY(0);
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.hud-radar {
  background: transparent;
  border: none;
  padding: 0;
  width: 140px;
  height: 140px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.radar-canvas {
  width: 140px;
  height: 140px;
  display: block;
}

.radar-label {
  font-family: 'Digital-7 Mono', 'Courier New', monospace;
  font-size: 11px;
  color: #ffb432;
  text-shadow: 0 0 8px rgba(255, 180, 50, 0.6);
  letter-spacing: 0.1em;
  margin-top: 8px;
  text-align: center;
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
}

@media (max-width: 768px) {
  .hero-hud {
    top: 10px;
    left: 12px;
    right: auto;
    gap: 20px;
    transform: none;
    flex-direction: column;
    justify-content: flex-start;
  }

  .hud-code-stream {
    min-width: 140px;
    max-width: 160px;
    height: 100px;
    font-size: 11px;
  }

  .hud-radar {
    display: none;
  }

  .radar-canvas {
    display: none;
  }

  .model-nav {
    width: 40px;
    height: 40px;
  }

  .model-nav.left {
    left: 12px;
  }

  .model-nav.right {
    right: 12px;
  }
}
