/* ============================================================
   AL NAYZEK DRILLING & OIL SERVICES L.L.C.
   Industrial Control Interface — Design System
   ============================================================ */

/* ---------- LIGHT THEME (default) — warm daylight, navy + gold company identity ---------- */
:root {
  --deep-black: #F3F0E7;      /* page background */
  --graphite: #EAE5D6;        /* footer / secondary surfaces */
  --graphite-2: #F9F7F0;      /* raised surfaces */
  --steel: #DAD4C3;
  --steel-2: #C6BEA9;
  --gold: #9C7010;
  --amber: #B8860B;
  --offwhite: #1B2A36;        /* primary text — deep navy from logo */
  --muted: #55626C;
  --green: #178A50;
  --red: #C93636;
  --cyan: #0E7F92;
  --glass: rgba(255, 255, 255, 0.78);
  --line: rgba(156, 112, 16, 0.32);
  --line-soft: rgba(27, 42, 54, 0.14);
  --header-bg: rgba(243, 240, 231, 0.88);
  --input-bg: rgba(255, 255, 255, 0.75);
  --chip-bg: rgba(27, 42, 54, 0.06);
  --grid-line: rgba(156, 112, 16, 0.08);
  --ambient-1: rgba(184, 134, 11, 0.10);
  --ambient-2: rgba(27, 42, 54, 0.05);
  --svc-fade: rgba(249, 247, 240, 0.92);
  --font-body: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  --font-tech: 'Rajdhani', 'Plus Jakarta Sans', sans-serif;
  --shadow-glow: 0 0 24px rgba(184, 134, 11, 0.28);
  --radius: 6px;
  --header-h: 96px;
}

/* ---------- DARK THEME — night operations ---------- */
html[data-theme="dark"] {
  --deep-black: #060708;
  --graphite: #11161A;
  --graphite-2: #171d22;
  --steel: #242C32;
  --steel-2: #2e3840;
  --gold: #C99632;
  --amber: #F2A51A;
  --offwhite: #F4F1E8;
  --muted: #9aa4ab;
  --green: #35D07F;
  --red: #EF5454;
  --cyan: #4FD8E0;
  --glass: rgba(23, 29, 34, 0.72);
  --line: rgba(201, 150, 50, 0.18);
  --line-soft: rgba(244, 241, 232, 0.08);
  --header-bg: rgba(6, 7, 8, 0.82);
  --input-bg: rgba(6, 7, 8, 0.6);
  --chip-bg: rgba(36, 44, 50, 0.45);
  --grid-line: rgba(201, 150, 50, 0.045);
  --ambient-1: rgba(242, 165, 26, 0.10);
  --ambient-2: rgba(201, 150, 50, 0.06);
  --svc-fade: rgba(17, 22, 26, 0.9);
  --shadow-glow: 0 0 24px rgba(242, 165, 26, 0.25);
}

/* Sections that keep a dark photographic/tactical background in BOTH themes:
   re-scope tokens so text and accents stay bright on the dark imagery. */
.dark-scene, .hero, .hero-band, .about-band, .map-panel, .media-panel .overlay, .hero-ticker {
  --offwhite: #F4F1E8;
  --muted: #c3bdaf;
  --gold: #C99632;
  --amber: #F2A51A;
  --green: #35D07F;
  --red: #EF5454;
  --cyan: #4FD8E0;
  --line-soft: rgba(244, 241, 232, 0.15);
  color: var(--offwhite);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
body.motion-paused *, body.motion-paused *::before, body.motion-paused *::after {
  animation-play-state: paused !important;
}

body {
  background: var(--deep-black);
  color: var(--offwhite);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}

::selection { background: var(--amber); color: var(--deep-black); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* Background industrial grid */
.hud-bg {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hud-bg::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 90% 60% at 50% -10%, var(--ambient-1), transparent 60%),
              radial-gradient(ellipse 70% 50% at 80% 110%, var(--ambient-2), transparent 60%);
}

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--font-tech); text-transform: uppercase; letter-spacing: 0.03em; line-height: 1.12; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }
.tech { font-family: var(--font-tech); letter-spacing: 0.08em; }
.mono-label {
  font-family: var(--font-tech); font-weight: 600; font-size: 0.82rem;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--amber);
}
.text-muted { color: var(--muted); }
.text-gold { color: var(--gold); }
.text-amber { color: var(--amber); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-cyan { color: var(--cyan); }

/* ---------- Layout ---------- */
.container { width: min(1240px, 100% - 2.5rem); margin-inline: auto; }
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-head { margin-bottom: 2.6rem; border-left: 4px solid var(--amber); padding-left: 1.4rem; }
.section-head .mono-label { display: block; margin-bottom: 0.5rem; }
.section-head p.lead { color: var(--muted); max-width: 720px; margin-top: 0.7rem; }

/* ---------- Panels / cards ---------- */
.panel {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 4px rgba(27, 42, 54, 0.07);
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.panel:hover { border-color: rgba(242,165,26,0.5); }
.panel.lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.panel-pad { padding: 1.8rem; }

/* Corner brackets */
.brackets::before, .brackets::after,
.brackets > .bk::before, .brackets > .bk::after {
  content: ""; position: absolute; width: 14px; height: 14px; border-color: var(--gold); border-style: solid; border-width: 0;
}
.brackets::before { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.brackets::after { top: -1px; right: -1px; border-top-width: 2px; border-right-width: 2px; }
.brackets > .bk::before { bottom: -1px; left: -1px; border-bottom-width: 2px; border-left-width: 2px; }
.brackets > .bk::after { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }

/* ---------- Status badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: var(--font-tech); font-weight: 600; font-size: 0.8rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.28rem 0.75rem; border-radius: 3px; border: 1px solid;
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.badge-green { color: var(--green); border-color: rgba(53,208,127,0.4); background: rgba(53,208,127,0.08); }
.badge-amber { color: var(--amber); border-color: rgba(242,165,26,0.4); background: rgba(242,165,26,0.08); }
.badge-red { color: var(--red); border-color: rgba(239,84,84,0.4); background: rgba(239,84,84,0.08); }
.badge-steel { color: var(--muted); border-color: var(--line-soft); background: var(--chip-bg); }
.badge-cyan { color: var(--cyan); border-color: rgba(79,216,224,0.4); background: rgba(79,216,224,0.07); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.7rem;
  font-family: var(--font-tech); font-weight: 700; font-size: 1.05rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.95rem 2.1rem; border-radius: 4px; border: 1px solid transparent;
  transition: all .25s; position: relative; overflow: hidden;
}
.btn-primary { background: linear-gradient(120deg, var(--gold), var(--amber)); color: #1a1205; }
.btn-primary:hover { box-shadow: 0 0 28px rgba(242,165,26,0.45); transform: translateY(-2px); }
.btn-outline { border-color: var(--gold); color: var(--amber); background: rgba(201,150,50,0.06); }
.btn-outline:hover { background: rgba(201,150,50,0.16); box-shadow: var(--shadow-glow); }
.btn-ghost { color: var(--offwhite); border-color: var(--line-soft); }
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--amber); outline-offset: 3px;
}
.btn-sm { padding: 0.55rem 1.2rem; font-size: 0.9rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  background: var(--header-bg); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 1rem; }
.brand img { height: 68px; width: auto; object-fit: contain; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.25)); }
.brand .name { font-family: var(--font-tech); font-weight: 700; letter-spacing: 0.1em; line-height: 1.12; }
.brand .name b { display: block; font-size: 1.32rem; color: var(--offwhite); }
.brand .name span { display: block; font-size: 0.7rem; letter-spacing: 0.26em; color: var(--gold); }
@media (max-width: 620px) { .brand img { height: 54px; } .brand .name b { font-size: 1.05rem; } .brand .name span { font-size: 0.58rem; } }
.main-nav { display: flex; gap: 1.6rem; align-items: center; }
.main-nav a {
  font-family: var(--font-tech); font-weight: 600; font-size: 0.86rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  padding: 0.4rem 0.15rem; position: relative; transition: color .2s; white-space: nowrap;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--amber); transition: right .25s;
}
.main-nav a:hover { color: var(--offwhite); }
.main-nav a:hover::after, .main-nav a.active::after { right: 0; }
.main-nav a.active { color: var(--amber); }
.header-status { display: flex; align-items: center; gap: 0.9rem; }
.header-badge { margin-right: 1.4rem; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); color: var(--amber);
  width: 46px; height: 46px; border-radius: 4px; font-size: 1.3rem;
}
.theme-toggle {
  background: var(--chip-bg); border: 1px solid var(--line); color: var(--amber);
  width: 46px; height: 46px; border-radius: 50%; font-size: 1.25rem; line-height: 1;
  display: flex; align-items: center; justify-content: center; transition: all .25s;
}
.theme-toggle:hover { box-shadow: var(--shadow-glow); transform: rotate(15deg); }
/* ---------- Mobile navigation drawer + scrim ---------- */
.nav-scrim {
  position: fixed; inset: 0; z-index: 88;
  background: rgba(6, 7, 8, 0.5); backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease;
}
.nav-scrim.open { opacity: 1; visibility: visible; }
@media (min-width: 1081px) { .nav-scrim { display: none; } }

@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .header-status .badge, .header-badge { display: none; }

  .main-nav {
    /* The header uses backdrop-filter, which makes it the containing block for
       fixed descendants — so size the drawer to the viewport explicitly rather
       than stretching with bottom:0 (which would resolve against the 96px header). */
    position: fixed; top: var(--header-h); right: 0;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    width: min(340px, 86vw); z-index: 95;
    flex-direction: column; align-items: stretch; gap: 0.35rem;
    background: linear-gradient(180deg, var(--graphite-2), var(--graphite));
    border-left: 3px solid var(--amber);
    box-shadow: -18px 0 50px rgba(0, 0, 0, 0.35);
    padding: 1.2rem 1rem calc(1.4rem + env(safe-area-inset-bottom, 0px));
    overflow-y: auto; overscroll-behavior: contain;
    transform: translateX(100%); transition: transform .32s cubic-bezier(.4, 0, .2, 1);
  }
  .main-nav.open { transform: translateX(0); }

  .main-nav a {
    font-family: var(--font-tech); font-weight: 600; font-size: 1.02rem;
    letter-spacing: 0.12em; text-transform: uppercase; color: var(--offwhite);
    width: 100%; padding: 0.95rem 1rem; border: 1px solid transparent;
    border-radius: var(--radius); display: flex; align-items: center;
    transition: background .2s, color .2s, border-color .2s;
  }
  .main-nav a::after { display: none; }
  .main-nav a:hover { background: var(--chip-bg); color: var(--amber); border-color: var(--line); }
  .main-nav a.active {
    color: var(--amber); background: rgba(242, 165, 26, 0.14);
    border-color: var(--line); border-left: 3px solid var(--amber); padding-left: calc(1rem - 3px);
  }
}
html[data-theme="dark"] .main-nav { box-shadow: -18px 0 50px rgba(0, 0, 0, 0.6); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--graphite); margin-top: 4rem; }
.site-footer .grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 2.5rem; padding: 3.5rem 0 2.5rem; }
.site-footer h4 { font-family: var(--font-tech); text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.95rem; color: var(--amber); margin-bottom: 1rem; }
.site-footer a { color: var(--muted); display: block; padding: 0.28rem 0; font-size: 0.95rem; transition: color .2s; }
.site-footer a:hover { color: var(--amber); }
.site-footer p { color: var(--muted); font-size: 0.95rem; }
.footer-bottom { border-top: 1px solid var(--line-soft); padding: 1.2rem 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem; font-size: 0.83rem; color: var(--muted); }
@media (max-width: 860px) { .site-footer .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .site-footer .grid { grid-template-columns: 1fr; } }

/* ---------- Grids ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.3rem; }
.bento .b-2 { grid-column: span 2; }
.bento .b-3 { grid-column: span 3; }
.bento .b-4 { grid-column: span 4; }
.bento .b-6 { grid-column: span 6; }
@media (max-width: 1000px) { .bento .b-2, .bento .b-3 { grid-column: span 3; } .bento .b-4, .bento .b-6 { grid-column: span 6; } }
@media (max-width: 640px) { .bento .b-2, .bento .b-3, .bento .b-4, .bento .b-6 { grid-column: span 6; } }

/* ---------- Media panels ---------- */
.media-panel { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); min-height: 260px; }
.media-panel img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform .6s; }
.media-panel:hover img { transform: scale(1.05); }
.media-panel .overlay {
  position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.8rem; background: linear-gradient(to top, rgba(6,7,8,0.92) 8%, rgba(6,7,8,0.45) 55%, rgba(6,7,8,0.15));
}

/* ---------- Data readouts ---------- */
.readout { font-family: var(--font-tech); font-weight: 700; font-size: clamp(1.9rem, 3.4vw, 2.8rem); color: var(--amber); line-height: 1; }
.readout small { font-size: 0.45em; color: var(--muted); letter-spacing: 0.1em; }
.stat-row { display: flex; justify-content: space-between; align-items: baseline; padding: 0.5rem 0; border-bottom: 1px dashed var(--line-soft); font-family: var(--font-tech); letter-spacing: 0.06em; }
.stat-row .k { color: var(--muted); font-size: 0.86rem; text-transform: uppercase; letter-spacing: 0.14em; }
.stat-row .v { font-weight: 700; color: var(--offwhite); }

/* Progress bar */
.bar { height: 6px; background: var(--steel); border-radius: 3px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--amber)); border-radius: 3px; transition: width .6s ease; box-shadow: 0 0 10px rgba(242,165,26,0.5); }
.bar.green > span { background: var(--green); box-shadow: 0 0 10px rgba(53,208,127,0.4); }

/* Gauge ring */
.ring { position: relative; width: 110px; height: 110px; }
.ring svg { transform: rotate(-90deg); width: 100%; height: 100%; }
.ring circle { fill: none; stroke-width: 7; }
.ring .track { stroke: var(--steel); }
.ring .val { stroke: var(--amber); stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(242,165,26,0.6)); transition: stroke-dashoffset 1s ease; }
.ring .label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--font-tech); }
.ring .label b { font-size: 1.35rem; color: var(--offwhite); }
.ring .label span { font-size: 0.62rem; letter-spacing: 0.18em; color: var(--muted); text-transform: uppercase; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Tables ---------- */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.data-table th {
  font-family: var(--font-tech); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem;
  color: var(--gold); text-align: left; padding: 0.8rem 1rem; border-bottom: 1px solid var(--line);
}
.data-table td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--line-soft); }
.data-table tbody tr { transition: background .2s; }
.data-table tbody tr:hover { background: rgba(242,165,26,0.05); }

/* ---------- Forms ---------- */
.field { margin-bottom: 1.3rem; }
.field label { display: block; font-family: var(--font-tech); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.78rem; color: var(--amber); margin-bottom: 0.45rem; }
.field input, .field textarea, .field select {
  width: 100%; background: var(--input-bg); color: var(--offwhite);
  border: 1px solid var(--line-soft); border-radius: 4px; padding: 0.85rem 1rem;
  font-family: var(--font-body); font-size: 1rem; transition: border-color .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--amber); outline: none; box-shadow: 0 0 0 3px rgba(242,165,26,0.15); }
.field .err { color: var(--red); font-size: 0.82rem; margin-top: 0.3rem; display: none; }
.field.invalid input, .field.invalid textarea { border-color: var(--red); }
.field.invalid .err { display: block; }

/* ---------- Accordion ---------- */
.acc-item { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 0.9rem; background: var(--glass); overflow: hidden; }
.acc-head {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  background: none; border: none; color: var(--offwhite); text-align: left;
  padding: 1.15rem 1.4rem; font-family: var(--font-tech); font-weight: 700; font-size: 1.05rem;
  letter-spacing: 0.08em; text-transform: uppercase; transition: color .2s;
}
.acc-head:hover { color: var(--amber); }
.acc-head .chev { transition: transform .3s; color: var(--gold); flex-shrink: 0; }
.acc-item.open .acc-head .chev { transform: rotate(180deg); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height .45s ease; }
.acc-body-inner { padding: 0 1.4rem 1.4rem; color: var(--muted); }

/* ---------- Chips / filters ---------- */
.chip {
  font-family: var(--font-tech); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.82rem;
  padding: 0.5rem 1.1rem; border-radius: 999px; border: 1px solid var(--line-soft);
  background: var(--chip-bg); color: var(--muted); transition: all .2s;
}
.chip:hover { border-color: var(--amber); color: var(--offwhite); }
.chip.active { background: rgba(242,165,26,0.14); border-color: var(--amber); color: var(--amber); }

/* ---------- Timeline / stages ---------- */
.stage {
  display: flex; gap: 1.1rem; position: relative; padding-bottom: 1.6rem;
}
.stage::before { content: ""; position: absolute; left: 17px; top: 38px; bottom: 0; width: 2px; background: var(--steel); }
.stage:last-child::before { display: none; }
.stage .node {
  width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%;
  border: 2px solid var(--steel-2); background: var(--graphite);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-tech); font-weight: 700; color: var(--muted); transition: all .3s; position: relative; z-index: 1;
}
.stage.done .node { border-color: var(--green); color: var(--green); box-shadow: 0 0 12px rgba(53,208,127,0.35); }
.stage.done::before { background: var(--green); }
.stage.active .node { border-color: var(--amber); color: var(--amber); box-shadow: 0 0 16px rgba(242,165,26,0.55); animation: pulse 1.6s infinite; }
.stage .body h4 { font-family: var(--font-tech); text-transform: uppercase; letter-spacing: 0.08em; font-size: 1.02rem; }
.stage .body p { color: var(--muted); font-size: 0.92rem; }
.stage.active .body h4 { color: var(--amber); }
.stage.done .body h4 { color: var(--green); }

/* ---------- Notice / technical callout ---------- */
.notice {
  display: flex; gap: 0.8rem; align-items: flex-start;
  border: 1px dashed rgba(242,165,26,0.45); background: rgba(242,165,26,0.06);
  border-radius: var(--radius); padding: 0.95rem 1.2rem; font-size: 0.9rem; color: var(--muted);
}
.notice b { color: var(--amber); font-family: var(--font-tech); letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------- Loader intro ---------- */
#intro-loader {
  position: fixed; inset: 0; z-index: 200; background: var(--deep-black);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.4rem;
  transition: opacity .6s, visibility .6s;
}
#intro-loader.hidden { opacity: 0; visibility: hidden; }
#intro-loader img { width: 200px; animation: pulse 1.8s infinite; filter: drop-shadow(0 0 30px rgba(242,165,26,0.35)); }
#intro-loader .bar { width: 220px; }

/* ---------- Motion toggle ---------- */
.motion-toggle {
  position: fixed; bottom: 1.2rem; right: 1.2rem; z-index: 80;
  background: var(--glass); border: 1px solid var(--line); color: var(--amber);
  border-radius: 999px; padding: 0.55rem 1rem; font-family: var(--font-tech);
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700;
  backdrop-filter: blur(8px); display: flex; align-items: center; gap: 0.5rem;
}
.motion-toggle:hover { box-shadow: var(--shadow-glow); }

/* ---------- Misc anims ---------- */
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.15; } }
.blink { animation: blink 1.4s infinite; }
@keyframes scan { 0% { transform: translateY(-100%); } 100% { transform: translateY(400%); } }

/* skip link */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 300; background: var(--amber); color: #111; padding: 0.6rem 1rem; font-weight: 700; }
.skip-link:focus { left: 0.6rem; top: 0.6rem; }

main { padding-top: var(--header-h); }

/* Large prominent hero logo */
.hero-logo {
  width: clamp(150px, 17vw, 230px); height: auto; margin-bottom: 1.4rem;
  filter: drop-shadow(0 6px 26px rgba(0,0,0,0.5)) drop-shadow(0 0 34px rgba(242,165,26,0.25));
  animation: floaty 6s ease-in-out infinite;
}
