  /* ============================================================
     TOKENS
     ============================================================ */
  :root{
    --primary: #2D4272;
    --primary-dark: #1F2F52;
    --primary-soft: #4863A0;
    --primary-tint: rgba(45,66,114,0.06);
    --primary-tint-2: rgba(45,66,114,0.14);

    --ink: #14171F;
    --ink-2: #2C313D;
    --body: #3A404E;
    --muted: #6B7282;
    --rule: #E0E2E8;
    --surface: #F3F4F7;
    --surface-2: #E9EAEF;
    --paper: #FAFAF7;
    --white: #FFFFFF;

    --max: 1280px;
    --pad: clamp(20px, 4vw, 56px);

    --rad-s: 8px;
    --rad-m: 12px;
    --rad-l: 18px;

    --display: 'Sansation', system-ui, sans-serif;
    --body-f: 'Inter Tight', system-ui, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, monospace;

    /* Glass surfaces */
    --glass-bg: rgba(255,255,255,0.55);
    --glass-bg-dark: rgba(20,23,31,0.55);
    --glass-border: rgba(255,255,255,0.7);
    --glass-shadow: 0 8px 32px rgba(45,66,114,0.10), inset 0 1px 0 rgba(255,255,255,0.8);
    --glass-shadow-dark: 0 8px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.08);
  }

  /* ============================================================
     ATMOSPHERE  —  aurora blobs + subtle grain
     ============================================================ */
  .atmosphere{
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
  }
  .aurora{
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.55;
    will-change: transform;
  }
  .aurora.a1{
    top: -10%; left: -8%;
    width: 56vw; height: 56vw; max-width: 720px; max-height: 720px;
    background: radial-gradient(circle at 30% 30%, rgba(45,66,114,0.35), transparent 60%);
    animation: drift1 28s ease-in-out infinite alternate;
  }
  .aurora.a2{
    top: 36%; right: -12%;
    width: 50vw; height: 50vw; max-width: 640px; max-height: 640px;
    background: radial-gradient(circle at 60% 40%, rgba(72,99,160,0.28), transparent 60%);
    animation: drift2 34s ease-in-out infinite alternate;
  }
  .aurora.a3{
    bottom: -10%; left: 30%;
    width: 44vw; height: 44vw; max-width: 560px; max-height: 560px;
    background: radial-gradient(circle at 50% 50%, rgba(45,66,114,0.22), transparent 60%);
    animation: drift3 40s ease-in-out infinite alternate;
  }
  @keyframes drift1{
    from{ transform: translate(0,0) scale(1); }
    to{ transform: translate(6vw,4vw) scale(1.1); }
  }
  @keyframes drift2{
    from{ transform: translate(0,0) scale(1); }
    to{ transform: translate(-5vw,3vw) scale(1.08); }
  }
  @keyframes drift3{
    from{ transform: translate(0,0) scale(1); }
    to{ transform: translate(3vw,-4vw) scale(1.12); }
  }

  .grain{
    position: fixed; inset: 0; z-index: -1;
    pointer-events: none;
    opacity: 0.5;
    mix-blend-mode: overlay;
  }

  /* Glass utility */
  .glass{
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
  }
  .glass-dark{
    background: var(--glass-bg-dark);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: var(--glass-shadow-dark);
  }

  @media (prefers-reduced-motion: reduce){
    .aurora{ animation: none; }
  }

  /* ============================================================
     RESET / BASE
     ============================================================ */
  *, *::before, *::after { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body{
    font-family: var(--body-f);
    color: var(--body);
    background: var(--paper);
    font-size: 17px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
  }
  img, svg { display: block; max-width: 100%; }
  a { color: inherit; text-decoration: none; }
  button { font: inherit; cursor: pointer; }

  h1, h2, h3, h4 {
    font-family: var(--display);
    color: var(--ink);
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.05;
    text-wrap: balance;
  }
  p { margin: 0; text-wrap: pretty; }

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

  .mono{ font-family: var(--mono); }
  .kicker{
    font-family: var(--mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: 10px;
  }
  .kicker .dot{
    width: 6px; height: 6px;
    background: var(--primary);
    transform: rotate(45deg);
    display: inline-block;
  }

  /* Diamond bullet — recurring visual motif from the logo */
  .diamond{
    width: 8px; height: 8px;
    background: currentColor;
    transform: rotate(45deg);
    display: inline-block;
    flex-shrink: 0;
  }
  .diamond.outline{
    background: transparent;
    border: 1.5px solid currentColor;
  }

  /* Buttons */
  .btn{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 999px;
    font-family: var(--body-f);
    font-size: 15px;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    color: var(--ink);
    box-shadow: 0 4px 16px rgba(45,66,114,0.06), inset 0 1px 0 rgba(255,255,255,0.9);
    transition: transform .18s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
    white-space: nowrap;
    cursor: pointer;
  }
  .btn:hover{
    transform: translateY(-1px);
    background: rgba(45,66,114,0.12);
    border-color: rgba(45,66,114,0.35);
    color: var(--primary-dark);
    box-shadow: 0 8px 24px rgba(45,66,114,0.15), inset 0 1px 0 rgba(255,255,255,0.8);
  }
  .btn.primary{
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 4px 16px rgba(45,66,114,0.25);
  }
  .btn.primary:hover{
    background: var(--primary-dark);
    color: var(--white);
    border-color: var(--primary-dark);
    box-shadow: 0 8px 24px rgba(45,66,114,0.35);
  }
  .btn.ghost{ background: rgba(255,255,255,0.4); }
  .btn .arrow{
    width: 18px; height: 1.5px; background: currentColor; position: relative;
  }
  .btn .arrow::after{
    content: ''; position: absolute; right: 0; top: -3px;
    width: 7px; height: 7px;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    transform: rotate(45deg);
  }

  /* Tags */
  .tag{
    display: inline-block;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--rule);
    color: var(--muted);
    background: var(--white);
  }

  /* Striped placeholder (for images the author will provide) */
  .placeholder{
    background:
      repeating-linear-gradient(135deg,
        rgba(45,66,114,0.10) 0 10px,
        transparent 10px 20px),
      var(--surface);
    border: 1px dashed rgba(45,66,114,0.35);
    border-radius: var(--rad-m);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--primary);
    font-family: var(--mono);
    font-size: 12px;
    padding: 16px;
    line-height: 1.4;
  }

  /* Module spacing rhythm */
  .module{ padding-block: clamp(56px, 8vw, 112px); }
  .module.tight{ padding-block: clamp(36px, 5vw, 64px); }
  .module.bleed{ padding-block: 0; }

  .section-head{
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: clamp(28px, 4vw, 48px);
    flex-wrap: wrap;
  }
  .section-head h2{
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 700;
  }
  .section-head .sub{
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.06em;
    color: var(--muted);
    text-transform: uppercase;
  }

  /* ============================================================
     NAV  (template chrome, not a Redaxo module)
     ============================================================ */
  .nav{
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(250,250,247,0.6);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border-bottom: 1px solid rgba(255,255,255,0.6);
    box-shadow: 0 1px 0 rgba(45,66,114,0.06);
  }
  .nav-inner{
    display: flex;
    align-items: center;
    gap: 32px;
    height: 76px;
  }
  .nav-logo img{ height: 32px; width: auto; }
  .nav-links{
    display: flex;
    gap: 28px;
    margin-left: 16px;
  }
  .nav-links a{
    font-size: 15px;
    color: var(--ink-2);
    font-weight: 500;
    position: relative;
    padding: 6px 0;
  }
  .nav-links a:hover{ color: var(--primary); }
  .nav-links a.active{ color: var(--primary); }
  .nav-links a.active::after{
    content: '';
    position: absolute;
    left: 50%; bottom: -2px;
    width: 6px; height: 6px;
    background: var(--primary);
    transform: translateX(-50%) rotate(45deg);
  }
  .nav-actions{
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 18px;
  }
  .lang{
    font-family: var(--mono);
    font-size: 12px;
    color: var(--muted);
    display: flex;
    gap: 6px;
    align-items: center;
  }
  .lang .sep{ opacity: .4; }
  .lang .on{ color: var(--ink); font-weight: 600; }

  /* mobile nav */
  .nav-toggle{ display: none; background: transparent; border: 0; padding: 8px; cursor: pointer; }
  .nav-toggle span{ display: block; width: 22px; height: 1.5px; background: var(--ink); margin: 5px 0; transition: transform .2s ease, opacity .15s ease; }

  /* ============================================================
     MODULE: HERO
     ============================================================ */
  .module-hero{
    padding-top: clamp(48px, 7vw, 96px);
    padding-bottom: clamp(48px, 7vw, 96px);
    position: relative;
    overflow: hidden;
  }
  /* big tilted diamond behind hero (logo motif, blown up) */
  .hero-diamond{
    position: absolute;
    top: 50%; right: -120px;
    width: 560px; height: 560px;
    transform: translateY(-50%) rotate(45deg);
    border: 1px solid rgba(45,66,114,0.18);
    border-radius: 32px;
    pointer-events: none;
    z-index: 0;
    animation: slowSpin 60s linear infinite;
  }
  .hero-diamond::before{
    content: ''; position: absolute; inset: 40px;
    border: 1px dashed rgba(45,66,114,0.12);
    border-radius: 24px;
  }
  @keyframes slowSpin{
    from{ transform: translateY(-50%) rotate(45deg); }
    to{ transform: translateY(-50%) rotate(405deg); }
  }
  @media (prefers-reduced-motion: reduce){
    .hero-diamond{ animation: none; }
  }

  .hero-wave{
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 120px;
    pointer-events: none;
    opacity: 0.6;
    z-index: 0;
    mask: linear-gradient(to right, transparent, #000 20%, #000 80%, transparent);
    -webkit-mask: linear-gradient(to right, transparent, #000 20%, #000 80%, transparent);
  }

  .hero-grid{
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: stretch;
  }
  .hero-content{
    display: flex;
    flex-direction: column;
    gap: 28px;
  }
  .hero-content > .kicker{ align-self: flex-start; }
  .hero-content h1{
    font-size: clamp(48px, 7.5vw, 112px);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.035em;
  }
  .hero-content h1 .accent{
    color: var(--primary);
    font-style: normal;
  }
  .hero-lede{
    font-size: clamp(18px, 1.4vw, 21px);
    line-height: 1.45;
    color: var(--ink-2);
    max-width: 56ch;
  }
  .on-air{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 999px;
    width: fit-content;
    max-width: 100%;
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.8);
    box-shadow: 0 4px 24px rgba(45,66,114,0.10), inset 0 1px 0 rgba(255,255,255,0.9);
  }
  .on-air .pulse{
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #C53030;
    box-shadow: 0 0 0 0 rgba(197,48,48,0.6);
    animation: pulse 2s infinite;
    flex-shrink: 0;
  }
  @keyframes pulse{
    0%{ box-shadow: 0 0 0 0 rgba(197,48,48,0.55); }
    70%{ box-shadow: 0 0 0 12px rgba(197,48,48,0); }
    100%{ box-shadow: 0 0 0 0 rgba(197,48,48,0); }
  }
  .on-air .item{
    font-family: var(--mono);
    font-size: 12px;
    color: var(--ink-2);
    letter-spacing: 0.04em;
  }
  .on-air .item b{ color: var(--primary); font-weight: 600; }
  .on-air .sep{ color: var(--rule); user-select: none; }

  .hero-ctas{
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
  }

  .hero-image{
    position: relative;
    min-height: 480px;
    border-radius: var(--rad-l);
  }
  /* tilted backdrop card behind the hero image */
  .hero-image::before{
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--rad-l);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-soft) 100%);
    transform: rotate(-2deg) translate(-12px, 12px);
    opacity: 0.85;
    z-index: 0;
  }
  .hero-image .placeholder{
    position: absolute; inset: 0;
    border-radius: var(--rad-l);
    font-size: 13px;
    line-height: 1.5;
    z-index: 1;
    background:
      repeating-linear-gradient(135deg,
        rgba(45,66,114,0.10) 0 10px,
        transparent 10px 20px),
      linear-gradient(180deg, var(--surface), var(--surface-2));
    box-shadow: 0 24px 60px rgba(45,66,114,0.18);
  }
  /* Real hero image (when one is set via REX_MEDIA) — sits on the same layer
     as the placeholder, fills the slot, and respects the rounded corners. */
  .hero-image > img{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--rad-l);
    z-index: 1;
    box-shadow: 0 24px 60px rgba(45,66,114,0.18);
  }
  /* floating mode chips around the image */
  .hero-image .chip{
    position: absolute;
    z-index: 3;
    padding: 8px 14px;
    border-radius: 999px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.9);
    box-shadow: 0 8px 24px rgba(45,66,114,0.18);
    color: var(--ink);
    display: flex; align-items: center; gap: 6px;
  }
  .hero-image .chip .diamond{ background: var(--primary); width: 6px; height: 6px; }
  /* Each chip-N has a position and a default tilt; editor can override the tilt
     per-chip by passing a --chip-tilt CSS variable from the inline style attr. */
  .hero-image .chip-1{ top: 12%;    left: -22px; transform: rotate(var(--chip-tilt, -3deg)); }
  .hero-image .chip-2{ top: 48%;    right: -16px; transform: rotate(var(--chip-tilt,  2deg)); }
  .hero-image .chip-3{ bottom: 16%; left: 14%;   transform: rotate(var(--chip-tilt, -1deg)); }
  .hero-image .badge{
    position: absolute;
    top: 16px; left: 16px;
    background: var(--ink);
    color: var(--white);
    padding: 8px 12px;
    border-radius: 999px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    z-index: 3;
    display: flex; align-items: center; gap: 8px;
  }
  .hero-image .badge .diamond{ background: var(--primary); }

  /* ============================================================
     MODULE: MARQUEE
     ============================================================ */
  .module-marquee{
    background: var(--ink);
    color: var(--white);
    padding: 0;
    overflow: hidden;
    border-top: 1px solid var(--ink-2);
    border-bottom: 1px solid var(--ink-2);
    position: relative;
  }
  .module-marquee::before,
  .module-marquee::after{
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 12%;
    z-index: 2;
    pointer-events: none;
  }
  .module-marquee::before{
    left: 0;
    background: linear-gradient(to right, var(--ink), transparent);
  }
  .module-marquee::after{
    right: 0;
    background: linear-gradient(to left, var(--ink), transparent);
  }
  .marquee-track{
    display: flex;
    gap: 36px;
    align-items: center;
    white-space: nowrap;
    padding: 18px 0;
    animation: marquee 50s linear infinite;
    width: max-content;
  }
  .marquee-item{
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-family: var(--mono);
    font-size: 14px;
    letter-spacing: 0.08em;
    color: var(--white);
  }
  .marquee-item .diamond{ background: var(--primary-soft); }
  .marquee-item .accent{ color: var(--primary-soft); font-weight: 500; }
  .marquee-item .live{ color: #FF7A7A; }
  @keyframes marquee{
    from{ transform: translateX(0); }
    to{ transform: translateX(-50%); }
  }
  .module-marquee:hover .marquee-track{ animation-play-state: paused; }

  /* ============================================================
     MODULE: EVENT CARDS
     ============================================================ */
  .events-grid{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
  .event-card{
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: var(--rad-m);
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    position: relative;
    box-shadow: 0 4px 16px rgba(45,66,114,0.06), inset 0 1px 0 rgba(255,255,255,0.9);
    overflow: hidden;
  }
  .event-card::before{
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--rad-m);
    padding: 1px;
    background: linear-gradient(135deg, rgba(45,66,114,0.4), transparent 40%, transparent 60%, rgba(45,66,114,0.2));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0;
    transition: opacity .25s ease;
    pointer-events: none;
  }
  .event-card:hover{
    transform: translateY(-4px);
    box-shadow: 0 24px 48px rgba(45,66,114,0.18), 0 0 0 1px rgba(45,66,114,0.3), inset 0 1px 0 rgba(255,255,255,0.9);
  }
  .event-card::after{
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--rad-m);
    background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(45,66,114,0.18), transparent 60%);
    opacity: 0;
    transition: opacity .25s ease;
    pointer-events: none;
  }
  .event-card:hover::after{ opacity: 1; }
  .event-card:hover::before{ opacity: 1; }
  .event-card .top{
    display: grid;
    grid-template-columns: 1fr 76px;
    gap: 14px;
    align-items: start;
  }
  .event-card h3{
    font-size: 26px;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1;
  }
  .event-card .meta{
    margin-top: 10px;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .event-card .meta .date{ color: var(--primary); font-weight: 600; font-size: 13px; }
  .event-card .logo-slot{
    width: 76px; height: 76px;
    border-radius: 8px;
    background: var(--surface);
    border: 1px dashed rgba(45,66,114,0.3);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    /* logos sit object-contain — never cropped */
  }
  .event-card .logo-slot .ph-label{
    font-family: var(--mono); font-size: 9px; color: var(--muted);
    text-align: center; line-height: 1.3; padding: 4px;
  }
  .event-card .desc{
    font-size: 14.5px;
    color: var(--body);
    line-height: 1.5;
    flex-grow: 1;
  }
  .event-card .tags{
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .event-card .bottom{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--rule);
    gap: 12px;
  }
  .event-card .status{
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted);
    display: flex; align-items: center; gap: 6px;
    letter-spacing: 0.05em;
  }
  .event-card .status.live{ color: var(--primary); font-weight: 600; }
  .event-card .status.live .diamond{ background: var(--primary); }
  .event-card .status.live::before{ content: '●'; color: #C53030; font-size: 10px; }
  .event-card .more{
    font-family: var(--mono);
    font-size: 12px;
    color: var(--ink);
    display: inline-flex; align-items: center; gap: 6px;
    border: 0;
    background: transparent;
    padding: 0;
    transition: color .15s ease, gap .15s ease;
  }
  .event-card .more:hover{ color: var(--primary); gap: 10px; }

  /* ============================================================
     MODULE: FREQUENCY STRIP
     ============================================================ */
  .module-strip{
    background: transparent;
    border-top: 1px solid rgba(255,255,255,0.5);
    border-bottom: 1px solid rgba(255,255,255,0.5);
    position: relative;
  }
  .strip-wrap{
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: var(--rad-l);
    padding: 32px clamp(24px, 3vw, 40px) 28px;
    box-shadow: 0 12px 48px rgba(45,66,114,0.10), inset 0 1px 0 rgba(255,255,255,0.9);
    position: relative;
    overflow: hidden;
  }
  /* spectrum analyzer behind the timeline */
  .spectrum{
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 60%;
    z-index: 0;
    opacity: 0.5;
    pointer-events: none;
    display: flex; align-items: flex-end; gap: 3px;
    padding: 0 12px;
    mask: linear-gradient(to top, #000 0%, transparent 100%);
    -webkit-mask: linear-gradient(to top, #000 0%, transparent 100%);
  }
  .spectrum span{
    flex: 1;
    background: linear-gradient(to top, var(--primary), var(--primary-soft));
    border-radius: 2px 2px 0 0;
    animation: bar 1.4s ease-in-out infinite;
    transform-origin: bottom;
  }
  /* Phase 1 — settling: freeze the bouncing (transform pinned via inline style),
     then smoothly shrink the bar height down to the 6px calm baseline.
     Only `height` transitions; transform stays at its pinned value so the bar
     doesn't "shoot up" mid-shrink. */
  .spectrum.settling span{
    animation: none;
    height: 6px !important;
    transition: height 1.8s cubic-bezier(0.4, 0, 0.2, 1);
  }
  /* Phase 2 — calm: gentle baseline oscillation on the 6px bars.
     .barCalm animation overrides the pinned inline transform (animations beat
     inline style in the CSS cascade), so no manual cleanup needed. */
  .spectrum.calm span{
    height: 6px !important;
    animation: barCalm 4s ease-in-out infinite;
  }
  @keyframes barCalm{
    0%, 100%{ transform: scaleY(0.85); }
    50%{ transform: scaleY(1.15); }
  }
  @keyframes bar{
    0%, 100%{ transform: scaleY(0.2); }
    50%{ transform: scaleY(1); }
  }
  @media (prefers-reduced-motion: reduce){
    .spectrum span{ animation: none; transform: scaleY(0.3); }
  }
  .strip-head{
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
    margin-bottom: 28px;
    flex-wrap: wrap;
  }
  .strip-head h2{ font-size: clamp(28px, 3.5vw, 44px); }
  .strip-head .legend{
    display: flex;
    gap: 18px;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    flex-wrap: wrap;
  }
  .strip-head .legend span{ display: inline-flex; align-items: center; gap: 7px; }
  .strip-head .legend .past{ width: 8px; height: 8px; border: 1.5px solid var(--muted); transform: rotate(45deg); background: transparent; display: inline-block; }
  .strip-head .legend .now{ width: 8px; height: 8px; background: var(--primary); transform: rotate(45deg); display: inline-block; }

  .strip{
    position: relative;
    height: 220px;
    padding: 0 12px;
    z-index: 1;
  }
  .strip-head, .strip-foot{ position: relative; z-index: 1; }
  .strip-axis{
    position: absolute;
    left: 12px; right: 12px;
    top: 50%;
    height: 1px;
    background: var(--ink);
    transform: translateY(-50%);
  }
  .strip-axis .tick{
    position: absolute;
    top: -7px;
    width: 1px; height: 14px;
    background: var(--ink);
  }
  .strip-axis .tick-label{
    position: absolute;
    top: 18px;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.06em;
    transform: translateX(-50%);
    white-space: nowrap;
  }
  /* sub-ticks (months) */
  .strip-axis .subtick{
    position: absolute;
    top: -3px;
    width: 1px; height: 6px;
    background: var(--rule);
  }

  .strip-event{
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    /* When rendered as <a> (link_url is set in YForm): no underline, inherit color */
    color: inherit;
    text-decoration: none;
  }
  .strip-event .marker{
    width: 16px; height: 16px;
    background: var(--primary);
    transform: rotate(45deg);
    transition: transform .15s ease;
    box-shadow: 0 0 0 4px rgba(45,66,114,0.15), 0 0 24px rgba(45,66,114,0.5);
  }
  .strip-event.past .marker{
    background: transparent;
    border: 1.5px solid var(--muted);
  }
  .strip-event:hover .marker{ transform: rotate(45deg) scale(1.3); }
  .strip-event .label{
    position: absolute;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--ink);
    letter-spacing: 0.04em;
    white-space: nowrap;
    line-height: 1.4;
    text-align: center;
  }
  .strip-event .label b{ color: var(--primary); font-weight: 600; display: block; font-size: 13px; }
  .strip-event.up .label{ bottom: 36px; }
  .strip-event.down .label{ top: 36px; }
  .strip-event .stem{
    position: absolute;
    left: 50%;
    width: 1px;
    background: var(--rule);
    transform: translateX(-50%);
  }
  .strip-event.up .stem{ bottom: 14px; height: 32px; }
  .strip-event.down .stem{ top: 14px; height: 32px; }

  .strip-now{
    position: absolute;
    top: 8px; bottom: 8px;
    width: 1px;
    background: #C53030;
    box-shadow: 0 0 12px rgba(197,48,48,0.6);
  }
  .strip-now::before{
    content: 'JETZT';
    position: absolute;
    top: -16px; left: 50%;
    transform: translateX(-50%);
    font-family: var(--mono);
    font-size: 9px;
    color: #C53030;
    letter-spacing: 0.1em;
  }
  .strip-now::after{
    content: '';
    position: absolute;
    top: 0; left: -3px;
    width: 7px; height: 7px;
    background: #C53030;
    border-radius: 50%;
  }

  .strip-foot{
    margin-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    font-family: var(--mono);
    font-size: 11.5px;
    color: var(--muted);
    letter-spacing: 0.05em;
  }
  .strip-foot .freq{ color: var(--primary); font-weight: 600; }

  /* ============================================================
     MODULE: ABOUT (Was ist Hamfest?)
     ============================================================ */
  .module-about{
    position: relative;
    overflow: hidden;
  }
  /* oversized 1929 ghost number */
  .module-about::before{
    content: '1929';
    position: absolute;
    bottom: -8vw;
    left: -2vw;
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(280px, 32vw, 480px);
    line-height: 0.85;
    letter-spacing: -0.06em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(45,66,114,0.12);
            text-stroke: 1px rgba(45,66,114,0.12);
    pointer-events: none;
    z-index: 0;
  }
  .about-grid{
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: clamp(32px, 5vw, 72px);
    align-items: start;
  }
  .about-text h2{
    font-size: clamp(36px, 4.5vw, 64px);
    margin-bottom: 24px;
  }
  .about-text h2 .accent{ color: var(--primary); }
  .about-text p{
    font-size: 17.5px;
    color: var(--ink-2);
    line-height: 1.6;
    margin-bottom: 18px;
    max-width: 60ch;
  }
  .about-text p a{
    color: var(--primary);
    border-bottom: 1.5px solid var(--primary);
    padding-bottom: 1px;
  }
  .about-ctas{
    display: flex;
    gap: 12px;
    margin-top: 28px;
    flex-wrap: wrap;
  }

  .signal-card{
    background: rgba(20,23,31,0.85);
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--rad-l);
    padding: 28px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.06);
  }
  .signal-card::before{
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 160px; height: 160px;
    background: var(--primary);
    transform: rotate(45deg);
    opacity: 0.4;
    filter: blur(2px);
  }
  .signal-card::after{
    content: '';
    position: absolute;
    bottom: -60px; left: -60px;
    width: 120px; height: 120px;
    background: var(--primary-soft);
    transform: rotate(45deg);
    opacity: 0.2;
    filter: blur(4px);
  }
  .signal-card .label{
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-bottom: 4px;
    position: relative;
  }
  .signal-card h3{
    color: var(--white);
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 24px;
    position: relative;
  }
  .signal-card .rows{
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
  }
  .signal-card .row{
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    font-family: var(--mono);
    font-size: 13px;
  }
  .signal-card .row:last-child{ border-bottom: 0; }
  .signal-card .row .k{ color: rgba(255,255,255,0.6); }
  .signal-card .row .v{ color: var(--white); font-weight: 500; }
  .signal-card .row .v.hl{ color: #95B1E6; }

  /* ============================================================
     FOOTER
     ============================================================ */
  .module-footer{
    background: var(--ink);
    color: rgba(255,255,255,0.65);
    padding-block: clamp(56px, 7vw, 96px) 32px;
    position: relative;
    overflow: hidden;
  }
  .module-footer::before{
    content: '';
    position: absolute;
    top: -20%; left: -10%;
    width: 60%; height: 80%;
    background: radial-gradient(circle at 30% 30%, rgba(45,66,114,0.5), transparent 60%);
    filter: blur(60px);
    pointer-events: none;
  }
  .module-footer::after{
    content: '';
    position: absolute;
    bottom: -30%; right: -10%;
    width: 50%; height: 100%;
    background: radial-gradient(circle at 60% 50%, rgba(72,99,160,0.35), transparent 60%);
    filter: blur(80px);
    pointer-events: none;
  }
  .module-footer > .container{ position: relative; z-index: 1; }
  .footer-grid{
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
  }
  .footer-brand img{ height: 44px; margin-bottom: 18px; filter: invert(1) brightness(2); }
  .footer-brand .invert-wrap{
    background: var(--white);
    padding: 16px 22px;
    border-radius: 12px;
    width: fit-content;
    margin-bottom: 18px;
  }
  .footer-brand .invert-wrap img{
    height: 44px;
    margin: 0;
    filter: none;
  }
  .footer-brand p{
    font-size: 15px;
    color: rgba(255,255,255,0.7);
    line-height: 1.55;
    max-width: 36ch;
    margin-bottom: 18px;
  }
  .footer-brand .meta-line{
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .footer-brand .meta-line .diamond{ background: var(--primary-soft); }
  .footer-col h4{
    color: var(--white);
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 18px;
    font-weight: 500;
  }
  .footer-col ul{
    list-style: none;
    padding: 0; margin: 0;
    display: flex; flex-direction: column;
    gap: 10px;
  }
  .footer-col li a{
    color: rgba(255,255,255,0.7);
    font-size: 15px;
    transition: color .15s ease;
  }
  .footer-col li a:hover{ color: var(--white); }
  .footer-col li a.external::after{
    content: '↗';
    margin-left: 6px;
    color: var(--primary-soft);
  }
  .footer-col li a.media::after{
    content: '↓';
    margin-left: 6px;
    color: var(--primary-soft);
  }

  .footer-bottom{
    margin-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    font-family: var(--mono);
    font-size: 11.5px;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.04em;
    flex-wrap: wrap;
  }
  .footer-bottom .lang{ color: rgba(255,255,255,0.5); }
  .footer-bottom .lang .on{ color: var(--white); }
  .footer-bottom .lang .sep{ color: rgba(255,255,255,0.25); }

  /* ============================================================
     RESPONSIVE
     ============================================================ */
  @media (max-width: 1100px){
    .events-grid{ grid-template-columns: repeat(2, 1fr); }
    .hero-grid{ grid-template-columns: 1fr; }
    .hero-image{ min-height: 360px; }
    .about-grid{ grid-template-columns: 1fr; }
    .footer-grid{ grid-template-columns: 1.4fr 1fr 1fr; }
    .footer-brand{ grid-column: 1 / -1; }
  }
  @media (max-width: 760px){
    .nav-links{ display: none; }
    .nav-actions .lang{ display: none; }
    .nav-toggle{ display: block; margin-left: auto; }

    /* Drawer state — toggled by .nav-toggle via body.nav-open */
    body.nav-open .nav-actions .lang{ display: flex; }
    body.nav-open .nav-links{
      display: flex;
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      flex-direction: column;
      gap: 0;
      margin: 0;
      padding: 8px 24px 20px;
      background: rgba(250,250,247,0.96);
      backdrop-filter: blur(20px) saturate(160%);
      -webkit-backdrop-filter: blur(20px) saturate(160%);
      border-bottom: 1px solid rgba(255,255,255,0.6);
      box-shadow: 0 8px 24px rgba(45,66,114,0.08);
    }
    body.nav-open .nav-links a{
      font-size: 16px;
      padding: 14px 0;
      border-bottom: 1px solid rgba(45,66,114,0.06);
    }
    body.nav-open .nav-links a:last-child{ border-bottom: 0; }

    /* Burger → X */
    body.nav-open .nav-toggle span:nth-child(1){ transform: translateY(6.5px) rotate(45deg); }
    body.nav-open .nav-toggle span:nth-child(2){ opacity: 0; }
    body.nav-open .nav-toggle span:nth-child(3){ transform: translateY(-6.5px) rotate(-45deg); }

    .events-grid{ grid-template-columns: 1fr; }
    .footer-grid{ grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer-brand{ grid-column: 1 / -1; }
    .strip{ height: 280px; padding-bottom: 30px; }
    .on-air{ padding: 12px 16px; gap: 10px; }
    .on-air .sep{ display: none; }
  }

/* ============================================================
   ALLERWELTS-MODUL UTILITIES (für „Inhalt"-Modul und ähnliche)
   ------------------------------------------------------------
   Mini-Grid + Background/Margin/Padding-Utilities. Bewusst klein
   gehalten und scope-frei — kollidiert nicht mit den Modul-CSSen.
   ============================================================ */

/* Hintergrund-Klassen (Hamfest-Tokens, nicht Bootstrap) */
.bg-white{ background-color: var(--white); }
.bg-light{ background-color: var(--surface); }
.bg-cyan{  background-color: rgba(72,99,160,0.08); }  /* Primary-Soft-Tint */
.bg-blue{  background-color: var(--primary-tint); }

/* Margin-Bottom-Utilities */
.mb-0{  margin-bottom: 0; }
.mb-20{ margin-bottom: 20px; }
.mb-40{ margin-bottom: 40px; }
.mb-60{ margin-bottom: 60px; }
.mb-80{ margin-bottom: 80px; }

/* Padding-Y-Utilities */
.py-0{  padding-top: 0;    padding-bottom: 0; }
.py-20{ padding-top: 20px; padding-bottom: 20px; }
.py-40{ padding-top: 40px; padding-bottom: 40px; }
.py-60{ padding-top: 60px; padding-bottom: 60px; }
.py-80{ padding-top: 80px; padding-bottom: 80px; }

/* 12-Column-Grid via CSS Grid (Bootstrap-API-Ähnlich, aber Custom) */
.row{
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
    align-items: start;
}
.col-md-1{  grid-column: span 1; }
.col-md-2{  grid-column: span 2; }
.col-md-3{  grid-column: span 3; }
.col-md-4{  grid-column: span 4; }
.col-md-5{  grid-column: span 5; }
.col-md-6{  grid-column: span 6; }
.col-md-7{  grid-column: span 7; }
.col-md-8{  grid-column: span 8; }
.col-md-9{  grid-column: span 9; }
.col-md-10{ grid-column: span 10; }
.col-md-11{ grid-column: span 11; }
.col-md-12{ grid-column: span 12; }

/* Auf Mobile (<760px) alle Cols full-width */
@media (max-width: 760px){
    .row > [class*="col-md-"]{ grid-column: span 12; }
}
