/* Editorial footer columns: balanced around the interactive cow. */
body .lvl-footer.illuminated-footer {
 grid-template-columns:minmax(0,1fr) minmax(0,1fr);
 grid-template-rows:minmax(0,1fr) auto;
}
body .lvl-footer.illuminated-footer .footer-explore,
body .lvl-footer.illuminated-footer .footer-connect {
 grid-row:1;
 align-self:end;
 display:flex;
 flex-direction:column;
 gap:2px;
 margin:0 0 12px;
}
body .lvl-footer.illuminated-footer .footer-explore {
 grid-column:1;
 align-items:flex-start;
}
body .lvl-footer.illuminated-footer .footer-connect {
 grid-column:2;
 align-items:flex-end;
}
body .lvl-footer.illuminated-footer .footer-column-label {
 margin-bottom:13px;
 font-size:10px;
 font-weight:600;
 letter-spacing:.18em;
 text-transform:uppercase;
 color:#a9a092;
}
body .lvl-footer.illuminated-footer .footer-connect a {
 position:relative;
 display:inline-flex;
 gap:9px;
 align-items:center;
 min-height:38px;
 padding:4px 0;
 font-size:13px;
 font-weight:500;
 color:#e9e1d4;
 text-decoration:none;
 transition:color .2s ease;
}
body .lvl-footer.illuminated-footer .footer-connect a span {color:#a9a092;font-size:12px;}
body .lvl-footer.illuminated-footer .footer-connect a:hover,
body .lvl-footer.illuminated-footer .footer-connect a:focus-visible {color:#c6cea7;}
body .lvl-footer.illuminated-footer .footer-bottom {
 grid-column:1/-1;
 grid-row:2;
 display:flex;
 flex-wrap:wrap;
 justify-content:space-between;
 align-items:center;
 gap:8px 22px;
 border-top:1px solid rgba(238,229,211,.19);
 padding-top:16px;
 font-size:11px;
 color:#a99e90;
}
body .lvl-footer.illuminated-footer .footer-bottom .design-credit {
 display:block;
 width:auto;
 max-width:none;
 margin:0;
 padding:0;
 border:0;
 text-align:right;
}
body .lvl-footer.illuminated-footer .footer-bottom a {
 color:inherit;
 text-decoration:none;
}
body .lvl-footer.illuminated-footer .footer-bottom a:hover,
body .lvl-footer.illuminated-footer .footer-bottom a:focus-visible {color:#eee5d3;text-decoration:underline;}
body .lvl-footer.illuminated-footer .footer-back-top {white-space:nowrap;}
@media(max-width:720px){
 body .lvl-footer.illuminated-footer {
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  grid-template-rows:minmax(230px,1fr) auto;
  gap:18px 12px;
  padding-bottom:20px;
 }
 body .lvl-footer.illuminated-footer .footer-explore,
 body .lvl-footer.illuminated-footer .footer-connect {
  grid-row:1;
  align-self:start;
  margin:0;
  padding-top:8px;
 }
 body .lvl-footer.illuminated-footer .footer-explore {grid-column:1;align-items:flex-start;flex-direction:column;gap:0;}
 body .lvl-footer.illuminated-footer .footer-connect {grid-column:2;align-items:flex-end;gap:0;}
 body .lvl-footer.illuminated-footer .footer-explore a,
 body .lvl-footer.illuminated-footer .footer-connect a {min-height:34px;font-size:12px;}
 body .lvl-footer.illuminated-footer .footer-column-label {margin-bottom:7px;}
 body .lvl-footer.illuminated-footer .footer-bottom {grid-row:2;gap:9px 14px;font-size:10px;}
 body .lvl-footer.illuminated-footer .footer-bottom .design-credit {flex-basis:100%;text-align:left;}
}

/* Keep the artwork's pointer surface unobstructed by the editorial columns.
   Only actual links accept pointer input; whitespace passes through. */
body .lvl-footer.illuminated-footer .footer-explore,
body .lvl-footer.illuminated-footer .footer-connect,
body .lvl-footer.illuminated-footer .footer-bottom {
 pointer-events:none;
}
body .lvl-footer.illuminated-footer .footer-explore a,
body .lvl-footer.illuminated-footer .footer-connect a,
body .lvl-footer.illuminated-footer .footer-bottom a {
 pointer-events:auto;
}
@media (pointer:coarse) {
 body .lvl-footer.illuminated-footer .footer-touch-surface {
  z-index:2;
  height:79%;
 }
}


/* Keep effects local and avoid re-rasterizing full-footer blur surfaces. */
.footer-laser-backdrop {contain:layout paint;}
.footer-firework-canvas {mix-blend-mode:normal;}
.footer-interaction-halo {
 inset:auto;left:50%;top:48%;width:640px;height:480px;
 transform:translate(-50%,-50%);
 background:radial-gradient(ellipse,rgba(245,139,178,.22),rgba(200,145,104,.08) 40%,transparent 72%);
}
.footer-fog-cloud i,.footer-fog-cloud .footer-haze-bloom {filter:none;}
.footer-electric-aura {filter:none;stroke-width:9px;}
.footer-electric-core {filter:drop-shadow(0 0 4px rgba(255,184,195,.6));}
.footer-electric-contour {filter:drop-shadow(0 0 5px rgba(235,119,173,.6));}
.footer-electric-branch {filter:none;}
.footer-sonic-ink path {filter:none;}
.lvl-footer:not(.sign-visible) .footer-laser-backdrop *,
.lvl-footer.footer-motion-paused .footer-laser-backdrop * {animation-play-state:paused!important;}

/* Fit the complete original viewBox, including horns and bottom lettering. */
.footer-laser-backdrop svg:not(.footer-electric-circuit) {
 left:50%;top:calc(50% - 28px);bottom:auto;
 width:calc(100% - 48px);height:calc(100% - 112px);
}
@media(max-width:720px) {
 .footer-laser-backdrop svg:not(.footer-electric-circuit) {
  left:50%;top:auto;bottom:90px;
  width:calc(100% - 24px);height:calc(100% - 122px);
 }
}

/* Phase 3: footer stays editorial but its phone links are real touch targets. */
@media(max-width:720px){
 body .lvl-footer.illuminated-footer .footer-column-label{
  font-size:11px;line-height:1.4;letter-spacing:.13em;
 }
 body .lvl-footer.illuminated-footer .footer-explore a,
 body .lvl-footer.illuminated-footer .footer-connect a{
  min-height:44px;display:inline-flex;align-items:center;
  font-size:13px;line-height:1.4;
 }
 body .lvl-footer.illuminated-footer .footer-bottom{
  font-size:11px;line-height:1.5;gap:10px 16px;
 }
 body .lvl-footer.illuminated-footer .footer-bottom a{
  display:inline-flex;align-items:center;min-height:44px;
 }
}

/* Touch interaction repair: the editorial grid must not turn the invisible
   drag surface into a grid cell. The direct-child rule above previously won
   over .footer-touch-surface { position:absolute }. */
body .lvl-footer.illuminated-footer > .footer-touch-surface {
  position:absolute;
  inset:0 0 21% 0;
  width:auto;
  height:auto;
  margin:0;
  padding:0;
  grid-area:auto;
  z-index:2;
  display:none;
  pointer-events:none;
  -webkit-user-select:none;
  user-select:none;
  -webkit-touch-callout:none;
  -webkit-tap-highlight-color:transparent;
}
@media (any-pointer:coarse), (hover:none) {
  body .lvl-footer.illuminated-footer > .footer-touch-surface {
    display:block;
    pointer-events:auto;
    /* Safari must not cancel active drag events to scroll the page. */
    touch-action:none;
  }
}


/* November 2026: larger full artwork on desktop; a dedicated illustrated
   stage above all navigation on phones. Keep the original SVG proportions. */
body .lvl-footer.illuminated-footer > .footer-art-slot {
  display:none;
  pointer-events:none;
}
@media (min-width:721px) {
  body .lvl-footer.illuminated-footer {
    min-height:clamp(800px,65vw,980px);
  }
  .footer-laser-backdrop svg:not(.footer-electric-circuit) {
    top:44%;
    width:calc(100% - 64px);
    height:calc(100% - 108px);
  }
}
@media (max-width:720px) {
  body .lvl-footer.illuminated-footer {
    --lvl-footer-art-height:clamp(342px,114vw,540px);
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    align-items:stretch;
    min-height:0;
    height:auto;
    column-gap:clamp(16px,5vw,30px);
    padding:24px clamp(18px,5vw,28px) max(22px,env(safe-area-inset-bottom,0px));
  }
  body .lvl-footer.illuminated-footer > .footer-art-slot {
    display:block;
    grid-column:1/-1;
    grid-row:1;
    width:100%;
    min-height:var(--lvl-footer-art-height);
  }
  /* The entire emblem, including its original lettering, fits within row 1. */
  .footer-laser-backdrop svg:not(.footer-electric-circuit) {
    left:50%;
    top:24px;
    bottom:auto;
    width:min(calc(100% - 30px),480px);
    height:calc(var(--lvl-footer-art-height) - 8px);
    max-width:none;
    object-fit:contain;
    transform:translateX(-50%);
  }
  /* The laser intro must have the same transform as the resting mobile SVG. */
  .lvl-footer.footer-intro-complete .footer-laser-etch,
  .lvl-footer.footer-intro-complete .footer-sonic-ink {
    transform:translateX(-50%);
  }
  body .lvl-footer.illuminated-footer .footer-explore,
  body .lvl-footer.illuminated-footer .footer-connect {
    grid-row:2;
    align-self:start;
    align-items:flex-start;
    flex-direction:column;
    flex-wrap:nowrap;
    justify-content:flex-start;
    gap:0;
    min-width:0;
    width:100%;
    margin:0;
    padding:22px 0 10px;
    border-top:1px solid rgba(238,229,211,.25);
    text-align:left;
  }
  body .lvl-footer.illuminated-footer .footer-explore {grid-column:1;}
  body .lvl-footer.illuminated-footer .footer-connect {grid-column:2;}
  body .lvl-footer.illuminated-footer .footer-column-label {
    margin:0 0 12px;
    font-size:11px;
    line-height:1.4;
    letter-spacing:.14em;
    text-align:left;
  }
  body .lvl-footer.illuminated-footer .footer-explore a,
  body .lvl-footer.illuminated-footer .footer-connect a {
    display:flex;
    align-items:center;
    justify-content:flex-start;
    min-height:44px;
    width:max-content;
    max-width:100%;
    margin:0;
    padding:8px 0;
    font-size:13px;
    line-height:1.45;
    font-weight:500;
    white-space:normal;
    text-align:left;
  }
  body .lvl-footer.illuminated-footer .footer-bottom {
    display:grid;
    align-items:start;
    gap:8px 14px;
    min-width:0;
    margin-top:20px;
    padding:16px 0 0;
    font-size:11px;
    line-height:1.5;
    text-align:left;
  }
  body .lvl-footer.illuminated-footer .footer-back-top {
    justify-self:end;
    display:inline-flex;
    align-items:center;
    min-height:44px;
  }
  body .lvl-footer.illuminated-footer .footer-bottom .design-credit {
    width:100%;
    flex-basis:auto;
    padding:0;
    margin:0;
    border:0;
  }
  body .lvl-footer.illuminated-footer .footer-bottom .design-credit a {
    display:inline-flex;
    align-items:center;
    min-height:44px;
    text-align:left;
  }
  /* Restrict the invisible drag layer to the artwork, not the links. */
  body .lvl-footer.illuminated-footer > .footer-touch-surface {
    top:0;
    bottom:auto;
    height:calc(var(--lvl-footer-art-height) + 32px);
  }
}


/* Social icons are an image-only navigation row on phones. Desktop keeps the
   established editorial Explore, Connect and credit presentation. */
body .lvl-footer.illuminated-footer .footer-connect .footer-social-icon {
  display:none;
}
body .lvl-footer.illuminated-footer .footer-connect a .footer-social-name {
  color:inherit;
  font-size:inherit;
}
@media (max-width:720px) {
  body .lvl-footer.illuminated-footer {
    grid-template-columns:minmax(0,1fr);
    grid-template-rows:var(--lvl-footer-art-height) auto auto;
    row-gap:0;
    padding-bottom:max(22px,env(safe-area-inset-bottom,0px));
  }
  /* Hide only page navigation on phones. Retain social icons, copyright,
     back-to-top and the designer credit underneath the SVG. */
  body .lvl-footer.illuminated-footer .footer-explore {
    display:none!important;
  }
  body .lvl-footer.illuminated-footer .footer-bottom {
    display:grid!important;
    grid-column:1/-1;
    grid-row:3;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:center;
    gap:4px 14px;
    margin-top:18px;
    padding:14px 0 0;
    border-top:1px solid rgba(238,229,211,.20);
  }
  body .lvl-footer.illuminated-footer .footer-bottom .design-credit {
    grid-column:1/-1;
    grid-row:2;
    text-align:left;
  }
  body .lvl-footer.illuminated-footer .footer-connect {
    display:flex!important;
    grid-column:1!important;
    grid-row:2!important;
    align-self:start;
    align-items:center!important;
    justify-content:center!important;
    flex-direction:row!important;
    flex-wrap:nowrap!important;
    gap:clamp(20px,7vw,34px)!important;
    width:100%;
    margin:0!important;
    padding:18px 0 0!important;
    border-top:1px solid rgba(238,229,211,.21);
    text-align:center;
    pointer-events:none;
  }
  body .lvl-footer.illuminated-footer .footer-connect .footer-column-label,
  body .lvl-footer.illuminated-footer .footer-connect .footer-social-name {
    display:none!important;
  }
  body .lvl-footer.illuminated-footer .footer-connect a {
    display:flex!important;
    flex:0 0 54px;
    align-items:center!important;
    justify-content:center!important;
    width:54px!important;
    max-width:54px!important;
    min-width:54px;
    height:54px;
    min-height:54px!important;
    margin:0!important;
    padding:0!important;
    border:1px solid rgba(238,229,211,.24);
    border-radius:50%;
    background:rgba(238,229,211,.035);
    color:#eee5d3;
    text-decoration:none;
    pointer-events:auto;
    transition:border-color .2s ease,color .2s ease,background .2s ease;
  }
  body .lvl-footer.illuminated-footer .footer-connect .footer-social-icon {
    display:flex!important;
    align-items:center;
    justify-content:center;
    width:25px;
    height:25px;
    color:inherit!important;
  }
  body .lvl-footer.illuminated-footer .footer-social-icon svg {
    display:block;
    width:25px;
    height:25px;
    overflow:visible;
  }
  body .lvl-footer.illuminated-footer .footer-connect a:hover,
  body .lvl-footer.illuminated-footer .footer-connect a:focus-visible {
    border-color:#ef9aab;
    background:rgba(239,154,171,.10);
    color:#ef9aab;
  }
}


