/* A single, accessible navigation surface for phones and compact tablets. */
html.mobile-menu-open,html.mobile-menu-open body { overflow: hidden; }
.mobile-menu:not([open]) { display: none; }
.mobile-menu {
  position: fixed; inset: 0; margin: max(12px,env(safe-area-inset-top)) 12px max(12px,env(safe-area-inset-bottom)) auto;
  width: min(440px,calc(100% - 24px)); height: calc(100dvh - max(12px,env(safe-area-inset-top)) - max(12px,env(safe-area-inset-bottom)));
  max-width: none; max-height: 800px; padding: 0; overflow: hidden; color: #f5f5f5;
  border: 1px solid #ffc40040; border-radius: 22px; background: linear-gradient(135deg,#ffc4000a,transparent 40%),#111215;
  box-shadow: 0 20px 90px #0009; grid-template-rows: auto minmax(0,1fr) auto;
}
.mobile-menu[open] { display: grid; }
.mobile-menu::backdrop { background: #000b; backdrop-filter: blur(7px); }
.mobile-menu-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid #ffffff16; }
.mobile-menu-head > div { display: flex; align-items: center; gap: 14px; }
.mobile-menu-head img { width: 90px; height: 52px; object-fit: contain; }
.mobile-menu-head h2 { font-size: .82rem; font-weight: 650; line-height: 1.35; margin: 0; max-width: 75px; color: #d2d2d5; }
.mobile-menu-close { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border: 1px solid #ffffff30; border-radius: 50%; background: #ffffff08; font-size: 28px; color: #fff; line-height: 1; }
.mobile-menu-close:hover { background: #ffc400; color: #111; }
.mobile-menu-links { display: grid; align-content: start; gap: 5px; padding: 15px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #ffc400 #1a1b1d; }
.mobile-menu-links a { display: flex; align-items: center; min-height: 58px; padding: 12px 15px; border: 1px solid transparent; border-radius: 12px; gap: 16px; }
.mobile-menu-number { font: 500 .75rem/1 monospace; color: #97999e; }
.mobile-menu-links strong { flex: 1; font-size: 1.2rem; font-weight: 700; line-height: 1.2; }
.mobile-menu-arrow { color: #878b91; font-size: 1.4rem; }
.mobile-menu-links a[aria-current] { background: #ffc40014; border-color: #ffc40035; }
.mobile-menu-links a[aria-current] strong,.mobile-menu-links a[aria-current] .mobile-menu-number,.mobile-menu-links a[aria-current] .mobile-menu-arrow { color: #ffd54b; }
.mobile-menu-links a:hover { background: #ffffff0b; }
.mobile-menu-foot { padding: 18px 22px 22px; border-top: 1px solid #ffffff16; background: #0b0c0ed9; }
.mobile-menu-foot > span { display: flex; align-items: center; gap: 8px; font: 600 .72rem/1.4 monospace; text-transform: uppercase; letter-spacing: .08em; }
.mobile-menu-foot p { color: #a7a9ae; font-size: .78rem; margin: 8px 0 16px; }
.mobile-menu-foot a { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; min-height: 48px; border-radius: 12px; background: #ffc400; color: #111; font-weight: 750; font-size: .9rem; }
.mobile-menu a:focus-visible,.mobile-menu button:focus-visible { outline: 2px solid #ffe16b; outline-offset: -3px; }
@media(max-width:949px) {
  :root { --header-height: 78px; }
  .topbar { height: calc(78px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 20px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
  :root { --header-height: calc(78px + env(safe-area-inset-top)); }
  .topbar > .nav,.topbar .story-menu,.topbar .header-live,.story-nav { display: none; }
  .topbar .energy-brand { width: 136px; }
  .topbar .energy-brand img { width: 136px; height: 64px; }
  .topbar .header-actions { margin-left: auto; gap: 0; }
  .topbar .menu-toggle { display: flex; align-items: center; justify-content: center; flex-direction: row; width: auto; height: 46px; min-width: 100px; padding: 0 15px; gap: 13px; color: #fff; background: #ffffff09; border: 1px solid #ffffff30; border-radius: 14px; }
  .menu-toggle b { font-size: .9rem; font-weight: 700; }
  .menu-toggle i { display: flex; width: 18px; height: 16px; flex-direction: column; justify-content: center; gap: 6px; }
  .menu-toggle i span { display: block; width: 18px; height: 2px; background: #ffc400; margin: 0; position: static; transform: none; }
  .menu-toggle:focus-visible { outline: 2px solid #ffc400; outline-offset: 4px; }
  html { scroll-padding-top: var(--header-height); }
}
@media(min-width:950px) { .topbar .menu-toggle { display: none; } }
@media(max-height:680px) {
  .mobile-menu-head { padding: 10px 18px; }
  .mobile-menu-head img { width: 80px; height: 45px; }
  .mobile-menu-foot { padding: 12px 18px; }
  .mobile-menu-foot p { display: none; }
  .mobile-menu-foot a { margin-top: 10px; padding: 10px 14px; }
  .mobile-menu-links { padding: 10px; gap: 2px; }
  .mobile-menu-links a { min-height: 50px; padding: 10px 14px; }
}
@media(max-width:760px) {
  :root { --player-height: calc(82px + env(safe-area-inset-bottom)); }
  .energy-player { padding-bottom: calc(10px + env(safe-area-inset-bottom)); min-height: var(--player-height); }
  .section-pad { padding-top: 86px; padding-bottom: 54px; }
  .section-heading h2,.contact-intro h2,.app-story-stage .app-copy h2 { font-size: clamp(2.3rem,9.5vw,4rem); overflow-wrap: anywhere; }
  .section-heading > p,.video-intro > p,.app-copy > p { line-height: 1.7; }
  .contact-details a,.energy-footer a,.contact-dialog .contact-details a { overflow-wrap: anywhere; }
  .contact-form input,.contact-form select,.contact-form textarea { font-size: 16px; width: 100%; min-width: 0; }
  .contact-form label { min-width: 0; }
  .video-controls button { min-width: 44px; min-height: 44px; }
  .section-tail a,.energy-footer nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .app-story-stage .phone-scene { min-height: 570px; }
  .app-story-stage .app-screenshot { max-width: calc(100% - 36px); }
  .broadcast-socials a { width: 44px; height: 44px; }
  .broadcast-footer { gap: 12px; }
}
@media(max-width:374px) {
  :root { --page-gutter: 18px; }
  .topbar { padding-inline: 16px; }
  .mobile-menu-head { padding-inline: 14px; }
  .mobile-menu-head > div { gap: 9px; }
  .mobile-menu-links { padding-inline: 10px; }
  .mobile-menu-links a { gap: 12px; }
  .mobile-menu-links strong { font-size: 1.08rem; }
  .broadcast-copy h1 { font-size: 11.6vw; }
  .broadcast-footer { flex-direction: column; align-items: flex-start; }
  .broadcast-socials { margin-left: 0; }
  .store-button { padding-inline: 6px; gap: 6px; }
  .store-button strong { font-size: .82rem; }
  .broadcast-benefits { padding-inline: 10px; }
  .broadcast-benefits li { gap: 6px; }
  .broadcast-benefits li:nth-child(even) { padding-left: 7px; }
  .broadcast-benefits b { font-size: .54rem; }
  .broadcast-benefits small { font-size: .53rem; }
}
