/**
 * CoolMedia FSE — Master Layered Stylesheet
 * Architecture: @layer tokens, base, components, utilities;
 * All design tokens are sourced from theme.json v3 (--wp--preset--* and --wp--custom--*).
 */
@layer tokens, base, components, utilities;

/* ==========================================================================
   1. LAYER: TOKENS (Mapped strictly from theme.json v3 Presets & Custom)
   ========================================================================== */
@layer tokens {
  :root {
    /* Core Petrol Slate Progression */
    --bg-darkest: var(--wp--preset--color--bg-darkest);
    --bg-stage-deep: var(--wp--preset--color--bg-stage-deep);
    --bg-stage: var(--wp--preset--color--bg-stage);
    --bg-surface: var(--wp--preset--color--bg-surface);
    --bg-surface-elevated: var(--wp--preset--color--bg-surface-elevated);
    --bg-card-frosted: var(--wp--preset--color--bg-card-frosted);
    --bg-pill-frosted: var(--wp--preset--color--bg-pill-frosted);
    --bg-canopy-frosted: var(--wp--preset--color--bg-canopy-frosted);
    --bg-pill-hover: var(--wp--preset--color--bg-pill-hover);
    --bg-toggle-hover: var(--wp--preset--color--bg-toggle-hover);
    --bg-meta-summary: var(--wp--preset--color--bg-meta-summary);
    --bg-ghost: var(--wp--preset--color--bg-ghost);
    --bg-ghost-hover: var(--wp--preset--color--bg-ghost-hover);
    --bg-footer: var(--wp--preset--color--bg-footer);

    /* Typography Color Tokens */
    --text-pure: var(--wp--preset--color--text-pure);
    --text-primary: var(--wp--preset--color--text-primary);
    --text-muted: var(--wp--preset--color--text-muted);
    --text-dim: var(--wp--preset--color--text-dim);
    --mask-knockout: var(--wp--preset--color--mask-knockout);

    /* Electric Turquoise, Mint & EU Accents */
    --accent-teal: var(--wp--preset--color--accent-teal);
    --accent-teal-glow: var(--wp--preset--color--accent-teal-glow);
    --accent-teal-subtle: var(--wp--preset--color--accent-teal-subtle);
    --accent-mint: #1de9b6;
    --eu-flag-blue: var(--wp--preset--color--eu-flag-blue);

    /* Primary CTA Button Tokens (Single Source of Truth) */
    --color-surface-deep-teal: #0e3b43;
    --btn-primary-bg: var(--accent-mint, #1de9b6);
    --btn-primary-text: var(--bg-darkest, #0d1b22);
    --btn-primary-border: var(--accent-mint, #1de9b6);
    --btn-primary-hover-bg: var(--color-surface-deep-teal);
    --btn-primary-hover-text: var(--accent-mint, #1de9b6);
    --btn-primary-hover-border: var(--accent-mint, #1de9b6);
    --btn-primary-hover-glow: 0 0 22px rgba(29, 233, 182, 0.28);

    /* Gradients */
    --gradient-spotlight: var(--wp--preset--gradient--spotlight-radial);
    --gradient-video-ambient: var(--wp--preset--gradient--video-ambient-vignette);
    --gradient-ue-card: var(--wp--preset--gradient--ue-card-surface);
    --gradient-scroll-cue: var(--wp--preset--gradient--scroll-cue-line);

    /* Structural Borders */
    --border-subtle: var(--wp--custom--border--subtle);
    --border-teal: var(--wp--custom--border--teal);
    --border-legal: var(--wp--custom--border--legal);

    /* Font Stacks */
    --font-display: var(--wp--preset--font-family--display);
    --font-body: var(--wp--preset--font-family--body);

    /* Layout & Component Metrics */
    --nav-height: var(--wp--custom--layout--nav-height);
    --hero-seam-top: var(--wp--custom--layout--hero-seam-top);
    --container-width: var(--wp--custom--layout--container-width);
    --header-width: var(--wp--custom--layout--header-width);
    --canopy-width: var(--wp--custom--layout--canopy-width);
    --seam-max-width: var(--wp--custom--layout--seam-max-width);
    --tv-slider-max-width: var(--wp--custom--layout--tv-slider-max-width);
    --lead-max-width: var(--wp--custom--layout--lead-max-width);
    --ue-summary-max-width: var(--wp--custom--layout--ue-summary-max-width);
    --footer-bio-max-width: var(--wp--custom--layout--footer-bio-max-width);
    --spotlight-size: var(--wp--custom--layout--spotlight-size);
    --tv-seam-gap: var(--wp--custom--layout--tv-seam-gap, 10px);
    --toggle-size: var(--wp--custom--layout--toggle-size);
    --hamburger-width: var(--wp--custom--layout--hamburger-width);
    --hamburger-height: var(--wp--custom--layout--hamburger-height);
    --dot-size: var(--wp--custom--layout--dot-size);
    --monolith-width: var(--wp--custom--layout--monolith-width);
    --agency-content-offset: var(--wp--custom--layout--agency-content-offset);

    /* Unified Editorial Spacing & Grid Gutter Scale */
    --space-kicker-to-title: clamp(0.65rem, 1.15vh, 0.95rem);
    --space-title-to-lead: clamp(1rem, 1.9vh, 1.45rem);
    --space-lead-to-list: clamp(1rem, 1.8vh, 1.35rem);
    --space-list-item-gap: clamp(0.65rem, 1.15vh, 0.95rem);
    --space-content-to-cta: clamp(1.5rem, 2.8vh, 2.25rem);
    --grid-gutter-desktop: clamp(2.5rem, 5vw, 5rem);

    /* Backdrop Blur Presets */
    --blur-pill: var(--wp--custom--blur--pill);
    --blur-card: var(--wp--custom--blur--card);
    --blur-tv-card: var(--wp--custom--blur--tv-card);
    --blur-canopy: var(--wp--custom--blur--canopy);

    /* Box & Text Shadows */
    --shadow-pill: var(--wp--custom--shadow--pill);
    --shadow-canopy: var(--wp--custom--shadow--canopy);
    --shadow-section: var(--wp--custom--shadow--section);
    --shadow-publishing: var(--wp--custom--shadow--publishing);
    --shadow-events: var(--wp--custom--shadow--events);
    --shadow-tv-card: var(--wp--custom--shadow--tv-card);
    --shadow-ue-card: var(--wp--custom--shadow--ue-card);
    --shadow-stat-card: var(--wp--custom--shadow--stat-card);
    --shadow-service-card: var(--wp--custom--shadow--service-card);
    --shadow-eu-flag: var(--wp--custom--shadow--eu-flag);
    --shadow-tv-meta: var(--wp--custom--shadow--tv-meta-text);
    --shadow-tv-title: var(--wp--custom--shadow--tv-title-text);
    --shadow-tv-lead: var(--wp--custom--shadow--tv-lead-text);

    /* Radii */
    --radius-xs: var(--wp--custom--radius--xs);
    --radius-sm: var(--wp--custom--radius--sm);
    --radius-btn: var(--wp--custom--radius--btn);
    --radius-meta: var(--wp--custom--radius--meta);
    --radius-agency: var(--wp--custom--radius--agency);
    --radius-card: var(--wp--custom--radius--card);
    --radius-status: var(--wp--custom--radius--status);
    --radius-ue-pill: var(--wp--custom--radius--ue-pill);
    --radius-pill: var(--wp--custom--radius--pill);
    --radius-circle: var(--wp--custom--radius--circle);
    --radius-canopy-desktop: var(--wp--custom--radius--canopy-desktop);
    --radius-canopy-mobile: var(--wp--custom--radius--canopy-mobile);
  }
}

/* ==========================================================================
   2. LAYER: BASE (Reset, Typography Baseline & FSE Container Normalization)
   ========================================================================== */
@layer base {
  @font-face {
    font-family: 'Anton';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/anton-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
  }

  @font-face {
    font-family: 'Anton';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/anton-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }

  @font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 900;
    font-display: swap;
    src: url('../fonts/inter-v18-latin-ext_latin-variable.woff2') format('woff2');
  }

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

  html, body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-darkest);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: var(--wp--preset--font-size--base);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  h1, h2, h3, h4, h5, h6,
  .editorial-headline,
  .brand-word-media,
  .svg-font-cool,
  .agency-vertical-text,
  .agency-card__title,
  .service-card__title,
  .ue-compliance-card__title {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

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

  .wp-site-blocks,
  .site-main,
  .site-header-wrapper {
    margin: 0;
    padding: 0;
  }

  :where(
    .wp-site-blocks > *,
    .wp-block-group,
    section.act-stage,
    section.content-section,
    .horizontal-scroll-stage
  ) {
    margin-block: 0;
  }

  :where(.wp-site-blocks > * + *) {
    margin-block-start: 0;
  }

  a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease;
  }

  .section-container {
    width: var(--container-width);
    margin: 0 auto;
    position: relative;
    z-index: 2;
  }
}

/* ==========================================================================
   3. LAYER: COMPONENTS (Cinema Stages, Navigation, Cards & Footer)
   ========================================================================== */
@layer components {
  /* GPU Spotlight Disc (Smooth Mouse Follower) */
  .spotlight-disc {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--spotlight-size);
    height: var(--spotlight-size);
    margin: 0;
    border-radius: var(--radius-circle);
    pointer-events: none;
    z-index: 5;
    background: var(--gradient-spotlight);
    mix-blend-mode: screen;
    will-change: transform, opacity;
    opacity: 0.9;
    transition: opacity 0.4s ease;
  }

  /* Floating Navigation Header: Frosted Glass Pills & Canopy Dropdown */
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
  }

  .site-header.is-footer-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .admin-bar .site-header {
    top: var(--wp-admin--admin-bar--height, 2rem);
  }

  .header-inner {
    width: var(--header-width);
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
  }

  .site-header__pill,
  .brand-signature,
  #site-header [data-brand-pill] {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.68rem 1.35rem;
    border-radius: var(--radius-pill);
    background: var(--bg-pill-frosted);
    backdrop-filter: var(--blur-pill);
    -webkit-backdrop-filter: var(--blur-pill);
    border: var(--radius-xs) solid var(--border-subtle);
    box-shadow: var(--shadow-pill);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    will-change: opacity, transform;
    transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
  }

  .brand-signature:hover {
    border-color: var(--border-teal);
    background: var(--bg-pill-hover);
    transform: translateY(-0.0625rem);
  }

  .brand-signature__dot {
    width: var(--dot-size);
    height: var(--dot-size);
    background-color: var(--accent-teal);
    border-radius: var(--radius-circle);
    box-shadow: 0 0 0.625rem var(--accent-teal);
    flex-shrink: 0;
  }

  .brand-signature__title {
    font-family: var(--font-body);
    font-size: var(--wp--preset--font-size--brand-pill);
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--text-pure);
    text-transform: uppercase;
  }

  .nav-toggle-btn {
    pointer-events: auto;
    border-radius: var(--radius-pill);
    border: var(--radius-xs) solid var(--border-subtle);
    background: var(--bg-pill-frosted);
    backdrop-filter: var(--blur-pill);
    -webkit-backdrop-filter: var(--blur-pill);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 0.68rem 1.25rem;
    color: var(--text-pure);
    box-shadow: var(--shadow-pill);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
  }

  .nav-toggle-btn:hover {
    transform: scale(1.05);
    border-color: var(--accent-teal);
    background: var(--bg-toggle-hover);
  }

  .nav-toggle-btn__label {
    font-family: var(--font-body);
    font-size: var(--wp--preset--font-size--sm);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-pure);
    line-height: 1;
  }

  .nav-toggle-btn__icon {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
  }

  .hamburger-bar,
  .nav-toggle-btn__bar {
    display: block;
    width: var(--hamburger-width);
    height: var(--hamburger-height);
    background-color: var(--text-pure);
    border-radius: var(--radius-sm);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  }

  .canopy-menu {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-115%);
    width: var(--canopy-width);
    background: var(--bg-canopy-frosted);
    backdrop-filter: var(--blur-canopy);
    -webkit-backdrop-filter: var(--blur-canopy);
    border: var(--radius-xs) solid var(--border-teal);
    border-top: none;
    border-radius: var(--radius-canopy-desktop);
    box-shadow: var(--shadow-canopy);
    padding: 6.5rem var(--wp--preset--spacing--60) var(--wp--preset--spacing--60) var(--wp--preset--spacing--60);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s;
    z-index: -1;
  }

  .canopy-menu__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--wp--preset--spacing--50);
  }

  .nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--wp--preset--spacing--40) var(--wp--preset--spacing--55);
  }

  .nav-links__item {
    font-family: var(--font-body);
    font-size: var(--wp--preset--font-size--nav-item);
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
  }

  .nav-links__num {
    font-size: var(--wp--preset--font-size--num);
    color: var(--accent-teal);
    font-weight: 700;
  }

  .nav-links__item:hover {
    color: var(--text-pure);
  }

  .canopy-menu__footer {
    padding-top: var(--wp--preset--spacing--30);
    border-top: var(--radius-xs) solid var(--border-subtle);
    width: 100%;
    max-width: var(--footer-bio-max-width);
    text-align: center;
  }

  .ue-pill-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1.4rem;
    background: var(--accent-teal-subtle);
    border: var(--radius-xs) solid var(--border-teal);
    border-radius: var(--radius-ue-pill);
    font-size: var(--wp--preset--font-size--meta);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-teal);
  }

  /* ACT 1 & ACT 2: Hero Stage, Video Layer & Zero-Drift SVG Mask */
  .site-video-background {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
  }

  .hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Unified Surface & Sub-Pixel Gap Seal for Content Stages */
  .content-section:not(.hero-pinned-stage),
  .horizontal-scroll-stage {
    background-color: var(--bg-stage);
    box-shadow: 0 0 0 1px var(--bg-stage), var(--shadow-section);
  }

  .content-section {
    min-height: 100vh;
    padding: var(--wp--preset--spacing--90) 0;
    position: relative;
    z-index: 30;
    display: flex;
    align-items: center;
  }

  .act-stage {
    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    box-sizing: border-box;
    overflow: hidden;
    contain: paint layout;
  }

  .hero-pinned-stage {
    position: relative;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    background-color: transparent;
  }

  /* Single Canonical Hero Contrast Layer (Fades in at 60% scroll progress) */
  .act-hero::after,
  .hero-pinned-stage::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      180deg,
      rgba(13, 14, 18, 0.3) 0%,
      rgba(13, 14, 18, 0.85) 100%
    );
    z-index: 2;
    pointer-events: none;
    opacity: var(--hero-contrast-opacity, 0);
  }

  .hero-mask-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
    overflow: visible;
  }

  .svg-font-cool {
    font-family: var(--font-display);
    font-size: var(--wp--custom--svg--cool-font-size);
    font-weight: 900;
    letter-spacing: -0.015em;
    opacity: 0;
    visibility: hidden;
  }

  .mask-knockout-text {
    fill: var(--mask-knockout);
  }

  .mask-dilate-rect {
    transform-box: fill-box;
    transform-origin: center center;
    opacity: 0;
  }

  .eyelids-master {
    pointer-events: none;
  }

  /* 2.5D Micro-Parallax Centerpiece (MEDIA & BROADCASTING & EVENTS) */
  .hero-centerpiece {
    position: absolute;
    inset: 0;
    z-index: 10;
    pointer-events: none;
    transform-style: preserve-3d;
    will-change: transform;
  }

  .median-seam-stage {
    position: absolute;
    top: var(--hero-seam-top);
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--seam-max-width);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .seam-overflow-box {
    overflow: hidden;
    position: relative;
    display: block;
    width: 100%;
  }

  .seam-overflow-box--media {
    padding-top: 0.1rem;
    padding-bottom: var(--wp--preset--spacing--10);
  }

  .seam-overflow-box--legal {
    margin-top: 0.55rem;
    padding-top: 0.15rem;
    padding-bottom: 0.25rem;
  }

  .seam-slider {
    will-change: transform;
  }

  .brand-word-media {
    display: inline-block;
    font-family: var(--font-display);
    font-size: calc(var(--cool-lockup-width, 530px) * 0.168);
    font-weight: 900;
    letter-spacing: 0.26em;
    padding-left: 0.26em;
    color: var(--accent-teal);
    text-shadow: 0 0 2rem var(--accent-teal-glow);
    line-height: 1.05;
    text-transform: uppercase;
    opacity: 0;
    visibility: hidden;
    will-change: transform, opacity;
  }

  .brand-sub-legal {
    margin: 0;
    font-family: var(--font-body);
    font-size: max(0.58rem, calc(var(--cool-lockup-width, 530px) * 0.028));
    font-weight: 600;
    letter-spacing: 0.46em;
    padding-left: 0.46em;
    color: var(--text-muted);
    text-transform: uppercase;
    opacity: 0;
    visibility: hidden;
    will-change: transform, opacity;
  }

  .hero-scroll-cue {
    position: absolute;
    bottom: var(--wp--preset--spacing--55);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    pointer-events: auto;
    opacity: 0;
    visibility: hidden;
  }

  .hero-scroll-cue__arrow {
    display: block;
    margin-bottom: 8px;
    color: var(--accent-teal);
    opacity: 0.9;
    will-change: transform;
    animation: heroArrowBounce 2s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
  }

  .hero-scroll-cue__label {
    font-family: var(--font-primary, var(--font-body, sans-serif));
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    padding-left: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
  }

  @keyframes heroArrowBounce {
    0%, 100% {
      transform: translateY(0);
      opacity: 0.7;
    }
    50% {
      transform: translateY(9px);
      opacity: 1;
      filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.5));
    }
  }

  /* ACT 2: Casa Magazin TV 50% - 50% Vertical Seam Stage */
  #tv-split-stage,
  .tv-split-stage {
    position: absolute;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    margin-inline: 0;
    padding-inline: 0;
    z-index: 25;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: center;
    align-items: center;
    padding-top: calc(var(--nav-height, 88px) + clamp(0.75rem, 2vh, 1.5rem));
    padding-bottom: clamp(1rem, 2.5vh, 2rem);
    pointer-events: none;
    opacity: 0;
    transform: translateZ(0);
  }

  .tv-split-side {
    width: 100%;
    height: auto;
    overflow: hidden;
    overflow: clip;
    overflow-x: clip;
    overflow-y: visible;
    position: relative;
    display: flex;
    align-items: center;
  }

  .tv-split-slider {
    max-width: var(--tv-slider-max-width);
    width: 100%;
    height: auto;
    will-change: transform, opacity;
  }

  .tv-split-side--left {
    justify-content: flex-start;
  }

  #tv-slider-left,
  .tv-split-slider--left {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    max-width: none;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: max(4vw, calc((100vw - var(--container-width, 1440px)) / 2));
    padding-right: clamp(2.5rem, 4vw, 4.5rem);
    overflow: hidden;
    overflow: clip;
    overflow-x: clip;
    overflow-y: visible;
  }

  .tv-split-side--right {
    justify-content: flex-end;
  }

  #tv-slider-right,
  .tv-split-slider--right {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    max-width: none;
    width: 100%;
    padding-left: clamp(2.5rem, 4vw, 4.5rem);
    padding-right: max(4vw, calc((100vw - var(--container-width, 1440px)) / 2));
    overflow: hidden;
    overflow: clip;
    overflow-x: clip;
    overflow-y: visible;
  }

  .tv-meta-label {
    display: block;
    font-family: var(--font-body);
    font-size: var(--wp--preset--font-size--meta);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.22em;
    color: var(--accent-mint);
    text-transform: uppercase;
    text-align: left;
    max-width: 54ch;
    width: 100%;
    margin: 0 0 clamp(0.45rem, 0.9vh, 0.65rem) 0;
    text-shadow: var(--shadow-tv-meta);
  }

  .tv-split-slider--left .editorial-headline {
    font-size: clamp(2.5rem, 4.2vw, 3.9rem);
    line-height: 1.12;
    text-align: left;
    max-width: 54ch;
    width: 100%;
    margin-block-start: 0;
    margin-block-end: var(--space-title-to-lead);
    text-shadow: var(--shadow-tv-title);
  }

  .tv-display-lead {
    font-size: var(--wp--preset--font-size--lead-tv);
    color: var(--text-primary);
    line-height: 1.65;
    margin: 0;
    text-shadow: var(--shadow-tv-lead);
  }

  .tv-feature-list {
    list-style: none;
    padding: 0;
    padding-inline: 0;
    margin: 0;
    margin-inline: 0;
    max-width: 54ch;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(0.7rem, 1.35vh, 1rem);
    text-align: left;
  }

  .tv-feature-list__item {
    position: relative;
    padding-inline: 0;
    padding-left: 0;
    padding-right: 0;
    text-align: left;
    font-size: clamp(0.82rem, 0.9vw, 0.92rem);
    line-height: 1.48;
    color: var(--text-muted);
    text-shadow: var(--shadow-tv-lead);
  }

  .tv-feature-list__item strong {
    color: var(--text-pure);
    font-weight: 600;
  }

  .tv-frosted-card {
    background: var(--bg-card-frosted);
    backdrop-filter: var(--blur-tv-card);
    -webkit-backdrop-filter: var(--blur-tv-card);
    border: var(--radius-xs) solid var(--border-teal);
    border-radius: var(--radius-card);
    padding-block: clamp(2.25rem, 4.2vh, 3.25rem);
    padding-inline: clamp(1.5rem, 2.2vw, 2.25rem);
    box-shadow: 14px 20px 42px -10px rgba(0, 0, 0, 0.55);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: clamp(1.4rem, 2.8vh, 2.1rem);
    width: 100%;
    height: auto;
  }

  .tv-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.35rem, 2.6vh, 2rem) clamp(1.15rem, 1.6vw, 1.6rem);
    border-bottom: var(--radius-xs) solid var(--border-subtle);
    padding-bottom: clamp(1.35rem, 2.6vh, 2rem);
  }

  .tv-spec-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
  }

  .tv-spec-item__val {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 2.3vw, 2.25rem);
    line-height: 1.05;
    letter-spacing: 0.04em;
    color: var(--accent-mint);
  }

  .tv-spec-item__key {
    font-size: clamp(0.7rem, 0.76vw, 0.76rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--text-pure);
    text-transform: uppercase;
    line-height: 1.3;
  }

  .tv-spec-item__sub {
    font-size: clamp(0.78rem, 0.85vw, 0.86rem);
    line-height: 1.45;
    color: var(--text-muted);
  }

  .tv-actions-row {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 0.75rem;
  }

  .tv-actions-row .btn,
  .tv-actions-row .btn-primary,
  .tv-actions-row .btn-outline {
    padding: 0.78rem 1.15rem;
    font-size: 0.74rem;
    letter-spacing: 0.1em;
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  /* Reusable UI Components */
  .btn,
  .btn-primary,
  .btn-outline,
  .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    gap: var(--wp--preset--spacing--20);
    padding: 0.95rem 1.9rem;
    border-radius: var(--radius-btn);
    font-weight: 700;
    font-size: var(--wp--preset--font-size--sm);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
  }

  .btn-primary,
  .btn--solid,
  .wp-block-button__link {
    background-color: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    border: 1px solid var(--btn-primary-border);
  }

  .btn-primary:hover,
  .btn-primary:focus-visible,
  .btn--solid:hover,
  .btn--solid:focus-visible,
  .wp-block-button__link:hover,
  .wp-block-button__link:focus-visible {
    background-color: var(--btn-primary-hover-bg);
    color: var(--btn-primary-hover-text);
    border-color: var(--btn-primary-hover-border);
    box-shadow: var(--btn-primary-hover-glow);
    transform: translateY(-0.125rem);
  }

  .btn-outline,
  .btn--ghost {
    border: var(--radius-xs) solid var(--border-subtle);
    color: var(--text-primary);
    background: var(--bg-ghost);
  }

  .btn-outline:hover,
  .btn-outline:focus-visible,
  .btn--ghost:hover,
  .btn--ghost:focus-visible {
    border-color: var(--accent-teal);
    background: var(--bg-ghost-hover);
  }

  /* ACT 3: Publishing & Platforms Grid */
  .section-publishing {
    position: relative;
    z-index: 30;
    display: flex;
    align-items: center;
    padding-top: calc(var(--nav-height, 88px) + clamp(0.75rem, 2vh, 1.5rem));
    padding-bottom: clamp(1rem, 2.5vh, 2rem);
    background-color: var(--bg-stage);
    box-shadow: 0 0 0 1px var(--bg-stage), var(--shadow-publishing);
  }

  .grid-publishing {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    row-gap: clamp(1.75rem, 3.5vw, 3.5rem);
    column-gap: var(--grid-gutter-desktop);
    align-items: center;
  }

  .publishing-info > .section-label {
    margin-block-start: 0;
    margin-block-end: var(--space-kicker-to-title);
  }

  .publishing-info > .editorial-headline {
    margin-block-start: 0;
    margin-block-end: var(--space-title-to-lead);
    line-height: 1.12;
  }

  .publishing-info > .editorial-lead {
    margin-block-start: 0;
    margin-block-end: var(--space-lead-to-list);
  }

  .publishing-info > .portal-features {
    margin-block-start: 0;
    margin-block-end: var(--space-content-to-cta);
    gap: var(--space-list-item-gap);
  }

  .publishing-info > .action-row {
    margin-block-start: 0;
    margin-block-end: 0;
  }

  .section-publishing .section-label {
    line-height: 1.35;
    margin-top: 0;
    margin-bottom: var(--space-kicker-to-title);
  }

  .section-publishing .editorial-headline {
    font-size: clamp(2.4rem, 4.2vw, 3.9rem);
    line-height: 1.12;
    margin-top: 0;
    margin-bottom: var(--space-title-to-lead);
  }

  .section-publishing .editorial-lead {
    font-size: clamp(0.95rem, 1.12vw, 1.1rem);
    line-height: 1.55;
    margin-top: 0;
    margin-bottom: var(--space-lead-to-list);
  }

  .portal-features {
    list-style: none;
    padding: 0;
    margin-top: 0;
    margin-bottom: var(--space-content-to-cta);
    display: flex;
    flex-direction: column;
    gap: var(--space-list-item-gap);
  }

  .portal-features__item {
    position: relative;
    padding-left: 1.35rem;
    font-size: clamp(0.84rem, 0.94vw, 0.94rem);
    line-height: 1.5;
    color: var(--text-muted);
  }

  .portal-features__item strong {
    color: var(--text-pure);
    font-weight: 600;
  }

  .portal-features__item::before {
    content: "■";
    position: absolute;
    left: 0;
    color: var(--accent-teal);
    font-size: 0.65rem;
    top: 0.22rem;
  }

  .action-row,
  .section-publishing .action-row {
    margin-top: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
  }

  .publishing-stats-box {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(0.85rem, 1.5vw, 1.25rem);
    align-items: stretch;
    margin-top: 0;
  }

  .stat-block {
    background: var(--bg-card-frosted);
    backdrop-filter: var(--blur-card);
    -webkit-backdrop-filter: var(--blur-card);
    border: var(--radius-xs) solid var(--border-subtle);
    padding: clamp(1.15rem, 2.2vh, 1.75rem) clamp(1rem, 1.5vw, 1.4rem);
    border-radius: var(--radius-card);
    text-align: left;
    box-shadow: var(--shadow-stat-card);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.35rem;
  }

  .stat-block__number {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 2.7vw, 2.65rem);
    line-height: 1.02;
    letter-spacing: 0.03em;
    color: var(--accent-teal);
    display: block;
  }

  .stat-block__label {
    font-size: clamp(0.68rem, 0.76vw, 0.76rem);
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-pure);
    text-transform: uppercase;
    line-height: 1.3;
    display: block;
  }

  .stat-block__desc {
    font-size: clamp(0.76rem, 0.84vw, 0.84rem);
    line-height: 1.45;
    color: var(--text-muted);
    margin-top: 0.1rem;
    display: block;
  }

  /* ACT 4 & 5: Horizontal Scroll Stage (Events -> Agency) */
  #horizontal-stage,
  .horizontal-scroll-stage {
    position: relative;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background-color: var(--bg-stage);
    overflow: hidden;
    z-index: 20;
  }

  .horizontal-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    will-change: transform;
  }

  #horizontal-canvas .act-stage {
    flex-shrink: 0;
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
  }

  #agency,
  #events {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding-top: calc(var(--nav-height, 88px) + clamp(0.75rem, 2vh, 1.5rem));
    padding-bottom: clamp(1rem, 2.5vh, 2rem);
    background-color: var(--bg-stage);
    overflow: hidden;
  }

  #events {
    box-shadow: var(--shadow-events);
  }

  .agency-vertical-monolith {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--monolith-width);
    height: 100vh;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
  }

  .agency-monolith-video-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
    background-image: url('../images/cunoaste-arhitectul-Claudiu-Salanta.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  .agency-monolith-fallback-img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
  }

  .agency-monolith-video {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: transparent;
  }

  .agency-monolith-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100vh;
    z-index: 3;
  }

  .agency-vertical-text {
    font-family: var(--font-display);
    font-size: var(--wp--custom--svg--monolith-font-size);
    font-weight: 900;
    letter-spacing: 0.05em;
    fill: var(--mask-knockout);
  }

  #events > .section-container,
  .events-content-wrap {
    position: relative;
    z-index: 5;
    margin-left: var(--agency-content-offset);
    margin-right: 0;
    padding-right: clamp(2rem, 4.5vw, 5rem);
    width: calc(100% - var(--agency-content-offset));
    max-width: none;
    box-sizing: border-box;
  }

  .agency-content-wrap {
    position: relative;
    z-index: 5;
    width: var(--container-width);
    margin-inline: auto;
    padding-inline: 0;
    box-sizing: border-box;
  }

  .agency-header {
    will-change: transform, opacity;
  }

  #agency .editorial-headline {
    font-size: clamp(2rem, 3.6vw, 3.6rem);
    line-height: 1.06;
    margin-bottom: clamp(0.65rem, 1.4vh, 1.15rem);
  }

  #agency .editorial-lead {
    font-size: clamp(0.95rem, 1.12vw, 1.14rem);
    line-height: 1.55;
    margin-bottom: 0;
  }

  .agency-matrix {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1rem, 1.8vw, 1.75rem);
    margin-top: clamp(1.5rem, 3vh, 2.75rem);
    align-items: stretch;
  }

  .agency-card {
    box-sizing: border-box;
    border: var(--radius-xs) solid var(--border-subtle);
    border-left: 0.1875rem solid var(--accent-teal);
    padding: 1.6rem var(--wp--preset--spacing--45) 1.6rem var(--wp--preset--spacing--50);
    background: var(--bg-card-frosted);
    backdrop-filter: var(--blur-card);
    -webkit-backdrop-filter: var(--blur-card);
    border-radius: var(--radius-agency);
    box-shadow: var(--shadow-stat-card);
    will-change: transform, opacity;
  }

  .agency-card__title {
    font-family: var(--font-display);
    font-size: var(--wp--preset--font-size--card-title-sm);
    text-transform: uppercase;
    margin: 0 0 var(--wp--preset--spacing--25) 0;
    color: var(--text-pure);
  }

  .agency-card__desc {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.65;
  }

  /* Event & Editorial Component Styling */
  .section-label {
    display: block;
    font-family: var(--font-body);
    font-size: var(--wp--preset--font-size--xs);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.28em;
    color: var(--accent-teal);
    text-transform: uppercase;
    margin-top: 0;
    margin-bottom: var(--space-kicker-to-title);
  }

  .editorial-headline {
    font-family: var(--font-display);
    font-size: var(--wp--preset--font-size--display-lg);
    line-height: 1.12;
    text-transform: uppercase;
    margin-block-start: 0;
    margin-block-end: var(--space-title-to-lead);
    letter-spacing: -0.01em;
    color: var(--text-pure);
  }

  .editorial-lead {
    font-size: var(--wp--preset--font-size--lead-editorial);
    color: var(--text-muted);
    line-height: 1.7;
    margin-top: 0;
    margin-bottom: var(--space-lead-to-list);
  }

  .section-header-split {
    display: block;
    margin-bottom: clamp(1.5rem, 3vh, 2.75rem);
    will-change: transform, opacity;
  }

  #events .editorial-headline {
    font-size: clamp(2rem, 3.3vw, 3.35rem);
    line-height: 1.06;
    margin-bottom: 0;
  }

  .events-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1rem, 1.8vw, 1.75rem);
    align-items: stretch;
  }

  .service-card {
    background: var(--bg-card-frosted);
    backdrop-filter: var(--blur-card);
    -webkit-backdrop-filter: var(--blur-card);
    border: var(--radius-xs) solid var(--border-subtle);
    border-left: 3px solid var(--accent-mint);
    padding: clamp(1.35rem, 2.5vh, 2.1rem) clamp(1.15rem, 1.6vw, 1.75rem);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-service-card);
    transition: transform 0.3s ease, border-color 0.3s ease;
    will-change: transform, opacity;
  }

  .service-card:hover {
    transform: translateY(-0.3125rem);
    border-color: var(--border-teal);
  }

  .service-card__title {
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 1.4vw, 1.45rem);
    line-height: 1.24;
    text-transform: uppercase;
    margin: 0 0 clamp(0.5rem, 1.1vh, 0.85rem) 0;
    color: var(--text-pure);
  }

  .service-card__desc {
    margin: 0;
    color: var(--text-muted);
    font-size: var(--wp--preset--font-size--card-body);
    line-height: 1.65;
  }

  /* ACT 6: European Project Compliance Banner */
  .section-ue-banner {
    position: relative;
    z-index: 10;
    padding: var(--wp--preset--spacing--70) 0;
    background-color: var(--bg-stage);
  }

  .ue-compliance-card {
    background: var(--gradient-ue-card);
    backdrop-filter: var(--blur-tv-card);
    -webkit-backdrop-filter: var(--blur-tv-card);
    border: var(--radius-xs) solid var(--border-teal);
    border-radius: var(--radius-card);
    padding: var(--wp--preset--spacing--80);
    box-shadow: var(--shadow-ue-card);
    display: flex;
    flex-direction: column;
    gap: var(--wp--preset--spacing--50);
  }

  .ue-compliance-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--wp--preset--spacing--30);
    padding-bottom: var(--wp--preset--spacing--40);
    border-bottom: var(--radius-xs) solid var(--border-subtle);
  }

  .ue-badge-cluster {
    display: flex;
    align-items: center;
    gap: var(--wp--preset--spacing--25);
  }

  .ue-badge-cluster__program {
    font-size: var(--wp--preset--font-size--meta);
    font-weight: 700;
    letter-spacing: 0.16em;
    color: var(--text-pure);
    text-transform: uppercase;
  }

  .ue-compliance-card__status {
    font-size: var(--wp--preset--font-size--status);
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--accent-teal);
    background: var(--accent-teal-subtle);
    padding: var(--wp--preset--spacing--10) var(--wp--preset--spacing--25);
    border-radius: var(--radius-status);
  }

  .ue-compliance-card__title {
    font-family: var(--font-body);
    font-size: var(--wp--preset--font-size--card-title);
    font-weight: 700;
    color: var(--text-pure);
    line-height: 1.4;
    margin: 0 0 var(--wp--preset--spacing--30) 0;
  }

  .ue-compliance-card__summary {
    font-size: var(--wp--preset--font-size--nav-item);
    color: var(--text-muted);
    max-width: var(--ue-summary-max-width);
    margin: 0 0 var(--wp--preset--spacing--50) 0;
  }

  .ue-meta-summary {
    display: grid;
    grid-template-columns: 1.2fr 0.7fr 1.5fr;
    gap: var(--wp--preset--spacing--40) var(--wp--preset--spacing--50);
    align-items: start;
    padding: 1.4rem;
    background: var(--bg-meta-summary);
    border: var(--radius-xs) solid var(--border-subtle);
    border-radius: var(--radius-meta);
  }

  .ue-meta-summary__point {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
  }

  .ue-meta-summary__label {
    font-size: var(--wp--preset--font-size--num);
    letter-spacing: 0.1em;
    color: var(--text-dim);
    text-transform: uppercase;
  }

  .ue-meta-summary__val {
    font-size: var(--wp--preset--font-size--card-body);
    font-weight: 600;
    color: var(--text-primary);
  }

  .ue-compliance-card__action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--wp--preset--spacing--35);
    padding-top: var(--wp--preset--spacing--30);
  }

  .ue-compliance-card__subtext {
    font-size: var(--wp--preset--font-size--xs);
    letter-spacing: 0.08em;
    color: var(--text-dim);
  }

  /* Subpage Header Visibility (Immediate display when Hero stage is absent) */
  body:not(:has(#hero)) .site-header__pill,
  body:not(:has(#hero)) .brand-signature,
  body:not(:has(#hero)) #site-header [data-brand-pill],
  body:not(:has(#hero)) .nav-toggle-btn {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  /* Standard Editorial Pages (.cm-standard-page: About, Legal, General Info) */
  #main-content.cm-standard-page,
  .cm-standard-page {
    position: relative;
    z-index: 30;
    min-height: 70vh;
    background-color: var(--bg-darkest);
    padding-top: clamp(120px, 15vh, 168px);
    padding-bottom: clamp(64px, 8vh, 110px);
    padding-inline: clamp(16px, 4vw, 32px);
  }

  .admin-bar #main-content.cm-standard-page,
  .admin-bar .cm-standard-page {
    padding-top: calc(clamp(120px, 15vh, 168px) + var(--wp-admin--admin-bar--height, 32px));
  }

  .cm-standard-page .cm-page-hero {
    max-width: 900px;
    margin-inline: auto;
    margin-bottom: clamp(28px, 4vh, 44px);
  }

  .cm-standard-page .cm-page-hero__inner {
    max-width: 900px;
    margin-inline: auto;
  }

  .cm-standard-page .cm-page-eyebrow {
    font-family: var(--font-body);
    font-size: clamp(0.75rem, 0.9vw, 0.8125rem);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-mint, #34d399);
    line-height: 1.4;
    margin: 0 0 0.75rem 0;
  }

  .cm-standard-page .cm-page-title {
    color: #f8fafc;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.12;
    margin: 0 0 1.25rem 0;
  }

  .cm-standard-page .cm-page-divider {
    width: 56px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #10b981 0%, var(--accent-mint, #34d399) 100%);
    margin: 0;
  }

  .cm-standard-page .cm-page-body {
    max-width: 900px;
    margin-inline: auto;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: clamp(24px, 4vw, 52px);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  }

  /* Dedicated EU Project Page (/proiect-european/) — MIV PR BI 2021-2027 */
  .eu-project-page {
    position: relative;
    z-index: 30;
    background-color: var(--bg-darkest);
    padding-top: calc(var(--nav-height, 88px) + clamp(0.75rem, 1.8vw, 1.35rem));
    padding-bottom: clamp(3rem, 6vw, 5rem);
  }

  .admin-bar .eu-project-page {
    padding-top: calc(var(--nav-height, 88px) + var(--wp-admin--admin-bar--height, 2rem) + clamp(0.75rem, 1.8vw, 1.35rem));
  }

  .eu-project-container {
    width: var(--container-width);
    max-width: 1080px;
    margin-inline: auto;
  }

  /* Zone 1: Top Bar with the 4 Official Logos (Mandatory MIV Protection Zone) */
  .eu-logo-bar {
    background-color: #ffffff;
    background-image: none;
    padding: clamp(20px, 3.2vw, 40px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: none;
    filter: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transform: none;
  }

  .eu-logo-bar__strip {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 0;
    box-shadow: none;
    filter: none;
    transform: none;
  }

  .eu-logo-bar__grid {
    display: none;
  }

  .eu-logo-bar__grid-item img {
    box-shadow: none;
    filter: none;
    transform: none;
  }

  /* Zone 2: Project Identification Header */
  .eu-zone--intro {
    margin-top: clamp(1.5rem, 3vw, 2.5rem);
  }

  .eu-project-intro {
    background-color: var(--bg-stage-deep);
    border: 1px solid var(--border-subtle);
    border-left: 4px solid var(--accent-teal);
    border-radius: 12px;
    padding: clamp(1.5rem, 3.2vw, 2.75rem);
  }

  .eu-project-intro__eyebrow {
    font-family: 'Calibri', 'Carlito', 'Inter', system-ui, -apple-system, sans-serif;
    font-size: clamp(0.82rem, 1.05vw, 0.92rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-mint);
    line-height: 1.4;
    margin: 0 0 0.75rem 0;
  }

  .eu-project-intro__title {
    margin: 0 0 1.15rem 0;
  }

  .eu-project-intro__lead {
    font-family: 'Calibri', 'Carlito', 'Inter', system-ui, -apple-system, sans-serif;
    font-size: clamp(1rem, 1.18vw, 1.125rem);
    line-height: 1.65;
    color: var(--text-primary);
    margin: 0;
  }

  /* Zone 3 & Zone 4: High-Contrast Editorial Sheet & Communiqué Footer */
  .eu-zone--communique {
    margin-top: clamp(1.5rem, 3vw, 2.5rem);
  }

  .eu-communique-sheet {
    background-color: #ffffff;
    color: #0f172a;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: clamp(1.6rem, 4vw, 3.5rem);
    font-family: 'Calibri', 'Carlito', 'Inter', system-ui, -apple-system, sans-serif;
    font-size: clamp(1rem, 1.05vw, 1.0625rem);
    line-height: 1.65;
  }

  .eu-communique-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem 1.5rem;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--eu-flag-blue);
  }

  .eu-communique-meta__type {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--eu-flag-blue);
  }

  .eu-communique-meta__date {
    font-size: 0.95rem;
    font-weight: 600;
    color: #334155;
  }

  .eu-communique-body__title {
    margin: 0 0 1.5rem 0;
  }

  .eu-communique-body__heading {
    margin: 2rem 0 0.75rem 0;
  }

  .eu-communique-body__paragraph {
    color: #0f172a;
    line-height: 1.65;
    margin: 0 0 1.1rem 0;
  }

  .eu-communique-body__paragraph:last-child {
    margin-bottom: 0;
  }

  .eu-communique-list {
    margin: 0 0 1.25rem 0;
    padding-left: 1.45rem;
    color: #0f172a;
    line-height: 1.65;
    list-style-type: disc;
  }

  .eu-communique-list > li {
    margin-bottom: 0.65rem;
  }

  .eu-communique-list > li:last-child {
    margin-bottom: 0;
  }

  .eu-communique-sublist {
    margin: 0.5rem 0 0.25rem 0;
    padding-left: 1.4rem;
    list-style-type: circle;
  }

  .eu-communique-sublist > li {
    margin-bottom: 0.4rem;
  }

  .eu-communique-sublist > li:last-child {
    margin-bottom: 0;
  }

  .eu-communique-body__smis strong {
    color: #0f172a;
  }

  /* Zone 4: Communiqué Footer */
  .eu-communique-footer {
    margin-top: 2.25rem;
    padding-top: 1.75rem;
    border-top: 1px solid #cbd5e1;
  }

  .eu-communique-footer__heading {
    margin: 0 0 0.75rem 0;
  }

  .eu-communique-contact p {
    margin: 0 0 0.35rem 0;
    color: #1e293b;
    line-height: 1.6;
  }

  .eu-communique-contact p:last-child {
    margin-bottom: 0;
  }

  .eu-communique-divider {
    border: 0;
    border-top: 1px solid #cbd5e1;
    margin: 1.5rem 0 1.25rem 0;
  }

  .eu-communique-disclaimer {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.6;
    color: #334155;
    font-style: italic;
  }

  /* Footer Component */
  footer.wp-block-template-part {
    margin: 0;
    padding: 0;
    min-height: 0;
    height: auto;
  }

  #footer-contact,
  .site-footer {
    background-color: var(--bg-footer);
    border-top: var(--radius-xs) solid var(--border-subtle);
    min-height: 0;
    height: auto;
    padding-top: clamp(40px, 5vh, 64px);
    padding-bottom: clamp(20px, 2.5vh, 32px);
    padding-inline: 0;
    position: relative;
    z-index: 40;
    overflow: hidden;
  }

  .footer-grid {
    display: grid;
    grid-template-columns: 1.75fr 1fr 1fr;
    gap: clamp(2rem, 4vw, 4rem);
    align-items: start;
    padding-bottom: clamp(16px, 2.2vh, 24px);
    margin-bottom: 0;
  }

  .footer-grid__brand {
    font-family: var(--font-display);
    font-size: var(--wp--preset--font-size--brand-footer);
    display: block;
    color: var(--text-pure);
    line-height: 0.92;
  }

  .footer-grid__brand-sub {
    font-size: var(--wp--preset--font-size--meta);
    font-weight: 700;
    letter-spacing: 0.28em;
    color: var(--accent-mint);
    display: block;
    margin-top: 0.2rem;
    line-height: 1.15;
  }

  .footer-grid__bio {
    color: var(--text-muted);
    font-size: var(--wp--preset--font-size--footer-body);
    line-height: 1.38;
    max-width: min(100%, 520px);
    margin: clamp(0.35rem, 0.8vh, 0.75rem) 0 0 0;
  }

  .footer-grid .footer-copyright {
    margin: clamp(0.4rem, 0.9vh, 0.85rem) 0 0 0;
    font-size: var(--wp--preset--font-size--meta);
    color: var(--text-dim);
    line-height: 1.25;
  }

  .footer-grid__heading {
    display: block;
    font-size: var(--wp--preset--font-size--xs);
    font-weight: 700;
    letter-spacing: 0.22em;
    color: var(--text-pure);
    text-transform: uppercase;
    line-height: 1.15;
    margin-bottom: clamp(0.4rem, 0.85vh, 0.75rem);
  }

  .footer-nav,
  .footer-grid .footer-info-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: clamp(0.2rem, 0.5vh, 0.45rem);
  }

  .footer-nav li,
  .footer-grid .footer-info-nav li {
    line-height: 1.22;
    margin: 0;
  }

  .footer-nav a,
  .footer-grid .footer-info-nav a {
    color: var(--text-muted);
    font-size: var(--wp--preset--font-size--footer-body);
  }

  .footer-nav a:hover,
  .footer-nav a:focus-visible,
  .footer-grid .footer-info-nav a:hover,
  .footer-grid .footer-info-nav a:focus-visible {
    color: var(--accent-mint);
  }

  .footer-social {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: clamp(0.5rem, 1vh, 0.9rem);
  }

  .footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-btn);
    border: var(--radius-xs) solid var(--border-subtle);
    background: var(--bg-ghost);
    color: var(--text-secondary, var(--text-muted));
    transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
  }

  .footer-social a:hover,
  .footer-social a:focus-visible {
    color: var(--accent-mint);
    border-color: var(--accent-mint);
    background: var(--bg-ghost-hover);
    transform: translateY(-0.125rem);
  }

  .footer-social svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    display: block;
    flex-shrink: 0;
  }

  .site-footer .footer-giant-band {
    width: 100%;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: center;
    overflow: hidden;
    padding-top: clamp(16px, 2.2vh, 28px);
    margin-top: 0;
    user-select: none;
    pointer-events: none;
  }

  .footer-giant-wordmark {
    font-family: var(--font-display, 'Anton', sans-serif);
    font-weight: 400;
    text-transform: uppercase;
    color: var(--accent-mint);
    line-height: 0.74;
    letter-spacing: -0.02em;
    font-size: clamp(6.5rem, 52vw, 64rem);
    display: block;
    text-align: center;
    transform: translateY(8%);
  }
}

/* ==========================================================================
   4. LAYER: UTILITIES (Interactive States, Modifiers & Responsive Queries)
   ========================================================================== */
@layer utilities {
  .nav-toggle-btn.is-active .hamburger-bar--top,
  .nav-toggle-btn.is-active .nav-toggle-btn__bar:first-child {
    transform: translateY(0.25rem) rotate(45deg);
  }

  .nav-toggle-btn.is-active .hamburger-bar--bottom,
  .nav-toggle-btn.is-active .nav-toggle-btn__bar:last-child {
    transform: translateY(-0.25rem) rotate(-45deg);
  }

  .canopy-menu.is-open {
    transform: translateX(-50%) translateY(0%);
    visibility: visible;
    pointer-events: auto;
  }

  .tv-split-stage.is-interactive {
    pointer-events: auto;
  }

  .max-width-p {
    max-width: var(--lead-max-width);
  }

  .snap-section {
    scroll-margin-top: 0;
  }

  .screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
  }

  /* Hide pre-launch elements without occupying flex/grid gap space */
  .is-pending-launch {
    display: none !important;
  }

  @media (max-width: 991.98px) {
    #tv-split-stage,
    .tv-split-stage {
      width: 100%;
      max-width: 100%;
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      align-items: center;
      min-height: 100svh;
      height: auto;
      max-height: 100dvh;
      overflow-y: auto;
      padding-top: calc(var(--nav-height, 88px) + 1rem);
      padding-bottom: 2rem;
      gap: 1.25rem;
    }

    .section-publishing {
      align-items: flex-start;
      min-height: 100svh;
      height: auto;
      max-height: 100dvh;
      overflow-y: auto;
      padding-top: calc(var(--nav-height, 88px) + 1.25rem);
      padding-bottom: 2rem;
    }

    .grid-publishing {
      grid-template-columns: 1fr;
      gap: 1.75rem;
    }

    .publishing-stats-box {
      margin-top: 0;
    }

    .tv-split-side {
      width: 100%;
      height: auto;
      overflow: visible;
      padding: 0 var(--wp--preset--spacing--40);
      justify-content: center;
    }

    .tv-split-slider,
    .tv-frosted-card {
      height: auto;
    }

    #tv-slider-left,
    .tv-split-slider--left,
    #tv-slider-right,
    .tv-split-slider--right {
      text-align: left;
      align-items: flex-start;
      max-width: var(--tv-slider-max-width);
      margin-left: 0;
      margin-right: 0;
      padding-left: 0;
      padding-right: 0;
    }

    .tv-meta-label,
    .tv-split-slider--left .editorial-headline {
      text-align: left;
    }

    .tv-feature-list {
      align-items: flex-start;
      text-align: left;
    }

    .tv-feature-list__item {
      padding-inline: 0;
      padding-right: 0;
      padding-left: 0;
      text-align: left;
    }

    .ue-meta-summary {
      grid-template-columns: 1fr;
      gap: 1rem;
    }

    .footer-grid {
      grid-template-columns: 1fr;
    }
  }

  @media (max-width: 64rem) {
    .canopy-menu {
      border-radius: var(--radius-canopy-mobile);
    }
  }

  @media (max-width: 640px) {
    .publishing-stats-box {
      grid-template-columns: 1fr;
    }
  }

  @media (max-width: 540px) {
    .header-inner {
      gap: 0.5rem;
    }

    .brand-signature__sub,
    .nav-toggle-btn__label {
      display: none;
    }

    .site-header__pill,
    .brand-signature,
    #site-header [data-brand-pill] {
      padding: 0.52rem 0.9rem;
      gap: 0.5rem;
      white-space: nowrap;
    }

    .brand-signature__title {
      letter-spacing: 0.14em;
      white-space: nowrap;
    }

    .nav-toggle-btn {
      padding: 0.58rem 0.85rem;
      flex-shrink: 0;
    }
  }

  /* MIV Narrow Mobile Calibration (< 480px): Maximize strip legibility & support 2x2 grid fallback */
  @media (max-width: 479.98px) {
    .eu-project-page .eu-project-container {
      width: calc(100vw - 16px);
    }

    .eu-logo-bar {
      padding: 16px 12px;
      border-radius: 10px;
    }

    .eu-logo-bar.has-mobile-grid {
      padding: 24px;
    }

    .eu-logo-bar.has-mobile-grid .eu-logo-bar__strip {
      display: none;
    }

    .eu-logo-bar.has-mobile-grid .eu-logo-bar__grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 16px 14px;
      align-items: center;
      justify-items: center;
    }

    .eu-logo-bar__grid-item {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;
    }

    .eu-logo-bar__grid-item img {
      display: block;
      width: auto;
      max-width: 100%;
      max-height: 44px;
      height: auto;
      object-fit: contain;
    }

    .eu-logo-bar__grid-item--eu-flag img {
      height: 48px;
      max-height: 48px;
      width: auto;
    }

    .eu-communique-sheet {
      padding: 1.35rem 1.15rem;
    }
  }

  /* Responsive Horizontal Stage: Release 100vh lock & stack cards on mobile / short viewports */
  @media (max-width: 991.98px), (max-height: 660px) {
    .section-publishing.act-stage,
    .section-ue-banner.act-stage {
      height: auto;
      max-height: none;
      overflow: visible;
    }

    #horizontal-stage,
    .horizontal-scroll-stage {
      height: auto;
      min-height: 0;
      overflow: visible;
    }

    .horizontal-canvas {
      position: relative;
      inset: auto;
      height: auto;
    }

    #horizontal-canvas .act-stage,
    #agency,
    #events {
      position: relative;
      top: auto;
      left: auto;
      height: auto;
      min-height: 0;
      max-height: none;
      padding: var(--wp--preset--spacing--75) 0;
      background-color: var(--bg-stage);
    }

    #events > .section-container,
    .events-content-wrap,
    .agency-content-wrap {
      width: var(--container-width);
      margin-inline: auto;
      padding-inline: 0;
    }

    .section-header-split {
      display: block;
    }

    .agency-vertical-monolith {
      display: none;
    }

    .agency-matrix,
    .events-cards-grid {
      grid-template-columns: 1fr;
    }

    .agency-card {
      width: 100%;
    }
  }

  /* Ultra-Wide Display Calibration (Aspect Ratios >= 21:9) */
  @media (min-aspect-ratio: 21/9) {
    .site-video-background,
    .hero-pinned-stage {
      width: 100vw;
      height: 100vh;
      min-width: 100%;
      min-height: 100%;
      overflow: hidden;
    }

    .hero-video {
      width: 100%;
      height: 100%;
      min-width: 100vw;
      min-height: 100vh;
      object-fit: cover;
      object-position: center center;
    }

    #hero-mask-svg,
    .hero-mask-svg {
      position: absolute;
      inset: 0;
      width: 100vw;
      height: 100vh;
      min-width: 100%;
      min-height: 100%;
      overflow: visible;
    }
  }
}

/* ==========================================================================
   5. UNLAYERED OVERRIDES (WordPress Global Styles Cascade Fix)
   ========================================================================== */
.btn-primary,
a.btn-primary,
.wp-block-button__link.btn-primary,
.btn--solid,
a.btn--solid {
  background-color: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border: 1px solid var(--btn-primary-border);
}

.btn-primary:hover,
.btn-primary:focus-visible,
a.btn-primary:hover,
a.btn-primary:focus-visible,
.wp-block-button__link.btn-primary:hover,
.wp-block-button__link.btn-primary:focus-visible,
.btn--solid:hover,
.btn--solid:focus-visible,
a.btn--solid:hover,
a.btn--solid:focus-visible {
  background-color: var(--btn-primary-hover-bg);
  color: var(--btn-primary-hover-text);
  border-color: var(--btn-primary-hover-border);
  box-shadow: var(--btn-primary-hover-glow);
}

.publishing-info > .section-label {
  margin-block-start: 0;
  margin-block-end: var(--space-kicker-to-title);
}

.publishing-info > .editorial-headline {
  margin-block-start: 0;
  margin-block-end: var(--space-title-to-lead);
  line-height: 1.12;
}

.publishing-info > .editorial-lead {
  margin-block-start: 0;
  margin-block-end: var(--space-lead-to-list);
}

.publishing-info > .portal-features {
  margin-block-start: 0;
  margin-block-end: var(--space-content-to-cta);
  gap: var(--space-list-item-gap);
}

.publishing-info > .action-row {
  margin-block-start: 0;
  margin-block-end: 0;
}

/* MIV & Standard Subpage Unlayered Overrides (Beat WordPress Global Styles Heading & Link Rules) */
.eu-logo-bar {
  background-color: #ffffff;
  background-image: none;
  box-shadow: none;
  filter: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transform: none;
}

.eu-logo-bar img {
  box-shadow: none;
  filter: none;
  transform: none;
}

.eu-project-intro__title {
  font-family: 'Calibri', 'Carlito', 'Inter', system-ui, -apple-system, sans-serif;
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.01em;
  text-transform: none;
  color: #ffffff;
}

.eu-communique-sheet h2,
.eu-communique-body__title {
  font-family: 'Calibri', 'Carlito', 'Inter', system-ui, -apple-system, sans-serif;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: normal;
  text-transform: none;
  color: #0f172a;
}

.eu-communique-sheet h3,
.eu-communique-body__heading {
  font-family: 'Calibri', 'Carlito', 'Inter', system-ui, -apple-system, sans-serif;
  font-size: clamp(1.125rem, 1.4vw, 1.3rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: normal;
  text-transform: none;
  color: var(--eu-flag-blue, #003399);
}

.eu-communique-sheet .eu-communique-footer__heading {
  font-size: 1.1rem;
  color: #0f172a;
}

.eu-communique-sheet a {
  color: #003399;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.eu-communique-sheet a:hover,
.eu-communique-sheet a:focus-visible {
  color: #001f66;
  background-color: rgba(0, 51, 153, 0.08);
  border-radius: 3px;
}

/* Standard Editorial Page (.cm-standard-page) Unlayered Typography & Link Overrides */
.cm-standard-page .cm-page-eyebrow {
  font-family: var(--font-body);
  font-size: clamp(0.75rem, 0.9vw, 0.8125rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-mint, #34d399);
  line-height: 1.4;
  margin-block: 0 0.75rem;
}

.cm-standard-page .cm-page-title {
  color: #f8fafc;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.12;
  margin-block: 0 1.25rem;
}

.cm-standard-page .cm-page-body .wp-block-post-content {
  max-width: 100%;
  margin-inline: auto;
  color: #cbd5e1;
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.05vw, 1.125rem);
  line-height: 1.75;
}

.cm-standard-page .cm-page-body .wp-block-post-content > * {
  max-width: 100%;
}

.cm-standard-page .cm-page-body .wp-block-post-content p {
  font-size: clamp(1rem, 1.05vw, 1.125rem);
  line-height: 1.75;
  color: #cbd5e1;
  margin-block: 0 1.25rem;
}

.cm-standard-page .cm-page-body .wp-block-post-content p:last-child,
.cm-standard-page .cm-page-body .wp-block-post-content > :last-child {
  margin-bottom: 0;
}

.cm-standard-page .cm-page-body .wp-block-post-content :where(h2, h3, h4) {
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: none;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: #ffffff;
  margin-block: 2rem 0.75rem;
}

.cm-standard-page .cm-page-body .wp-block-post-content > :first-child:where(h2, h3, h4) {
  margin-top: 0;
}

.cm-standard-page .cm-page-body .wp-block-post-content h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
}

.cm-standard-page .cm-page-body .wp-block-post-content h3 {
  font-size: clamp(1.15rem, 1.6vw, 1.375rem);
}

.cm-standard-page .cm-page-body .wp-block-post-content h4 {
  font-size: clamp(1.05rem, 1.25vw, 1.175rem);
}

.cm-standard-page .cm-page-body .wp-block-post-content :where(strong, b) {
  color: #ffffff;
  font-weight: 600;
}

.cm-standard-page .cm-page-body .wp-block-post-content :where(ul, ol) {
  padding-left: 1.35rem;
  margin-block: 0 1.25rem;
  color: #cbd5e1;
  font-size: clamp(1rem, 1.05vw, 1.125rem);
  line-height: 1.75;
}

.cm-standard-page .cm-page-body .wp-block-post-content li + li {
  margin-top: 0.5rem;
}

.cm-standard-page .cm-page-body .wp-block-post-content a {
  color: #34d399;
  text-decoration: none;
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.cm-standard-page .cm-page-body .wp-block-post-content a:hover,
.cm-standard-page .cm-page-body .wp-block-post-content a:focus-visible {
  color: #10b981;
  text-decoration: underline;
}

