/* ============================================
   EGOTECH PRODUCTIONS — Design Tokens
   Grounded in the actual product: LED walls are
   built from individual physical panels bolted
   together into one image. The panel seam is the
   visual signature throughout this site.
   ============================================ */

:root {
  /* Color */
  --bg: #15181b;
  --bg-panel: #1d2226;
  --bg-panel-raised: #242a2f;
  --line: #33393f;
  --text: #eceeef;
  --text-mute: #8d949c;
  --signal: #e8433d;      /* tally-light red — rec/live indicator */
  --calib: #3f8cff;       /* calibration blue — LED wall test-pattern blue */
  --laser: #39ff6a;       /* laser green — nod to the laser rig / "Laser Bob" */
  --success: #3ecf8e;

  /* Type */
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  /* Layout */
  --panel-unit: 64px; /* base module size, echoes physical LED panel proportions */
  --radius: 2px;       /* road cases and panels have near-zero radius */
  --max-w: 1240px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Panel-seam grid signature ----------
   A literal representation of an LED wall's modular
   construction: thin seams between square panels.
   Used as a background texture and as a structural
   device (numbered "panels" instead of numbered steps). */

.panel-grid {
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: var(--panel-unit) var(--panel-unit);
  background-position: center;
}

/* ---------- Header ---------- */

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(21, 24, 27, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;   /* contains the laser sweep as it exits right */
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand .dot {
  width: 9px;
  height: 9px;
  background: var(--signal);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px 1px rgba(232, 67, 61, 0.7);
}

.nav-links {
  display: flex;
  gap: 36px;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 500;
}

.nav-links a {
  position: relative;
  color: var(--text-mute);
  padding-bottom: 6px;
  transition: color 0.15s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1.5px;
  background: var(--laser);
  box-shadow: 0 0 6px 0.5px rgba(57, 255, 106, 0.85);
  transition: width 0.22s ease-out;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--text); }
.nav-links a:hover::after, .nav-links a:focus-visible::after { width: 100%; }

/* ---------- Laser sweep — a single pass across the header on load ---------- */

.laser-sweep {
  position: absolute;
  top: 0;
  left: -15%;
  width: 12%;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--laser) 45%, var(--laser) 55%, transparent);
  box-shadow: 0 0 8px 1px rgba(57, 255, 106, 0.9);
  opacity: 0;
  animation: laser-sweep-run 2.4s ease-in-out 0.4s 1 both;
}

@keyframes laser-sweep-run {
  0%   { left: -15%; opacity: 0; }
  6%   { opacity: 1; }
  55%  { opacity: 0.9; }
  90%  { opacity: 0; }
  100% { left: 105%; opacity: 0; }
}

/* Second pass along the venue tape's top edge, trailing the header sweep. */
.laser-sweep-tape { animation-delay: 0.8s; }

/* Plain text, pitched to match the nav links rather than the CTA button. */
.nav-phone {
  font-size: 14px;
  color: var(--text-mute);
  transition: color 0.15s ease;
}
.nav-phone:hover, .nav-phone:focus-visible { color: var(--text); }

.nav-cta {
  border: 1px solid var(--signal);
  color: var(--text);
  padding: 10px 20px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  transition: background 0.15s ease;
}
.nav-cta:hover, .nav-cta:focus-visible { background: var(--signal); }

.nav-toggle { display: none; }

@media (max-width: 800px) {
  .nav-links { display: none; }
  .nav-toggle {
    display: block;
    background: none;
    border: 1px solid var(--line);
    color: var(--text);
    padding: 8px 12px;
    font-family: var(--font-mono);
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 120px 0 100px;
  overflow: hidden;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--calib);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--calib);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 0.98;
  letter-spacing: 0.01em;
  max-width: 17ch;   /* fits the accent phrase on one line at full size */
}

.hero h1 .accent { color: var(--signal); }

.hero p.lede {
  margin-top: 28px;
  font-size: 19px;
  color: var(--text-mute);
  max-width: 52ch;
}

.hero-actions {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 16px 30px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--signal);
  color: #fff;
}
.btn-primary:hover, .btn-primary:focus-visible { background: #ff5a53; transform: translateY(-1px); }

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--text);
}
.btn-ghost:hover, .btn-ghost:focus-visible { border-color: var(--text-mute); }

/* ---------- Stat strip ---------- */

.stat-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat-strip .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  padding: 28px 24px;
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: none; }

.stat .num {
  font-family: var(--font-mono);
  font-size: 30px;
  color: var(--calib);
}
.stat .label {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (max-width: 700px) {
  .stat-strip .wrap { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; }
}

/* ---------- Section scaffolding ---------- */

section { padding: 100px 0; }

.section-head {
  max-width: 62ch;
  margin-bottom: 56px;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--signal);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.section-head h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 600;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
}

.section-head p {
  margin-top: 16px;
  color: var(--text-mute);
  font-size: 17px;
}

/* ---------- Service panels (the panel-seam signature applied to a grid of cards) ---------- */

.panels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
}

.panel {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 36px 28px;
  position: relative;
  transition: background 0.2s ease;
}
.panel:nth-child(4n) { border-right: none; }

.panel:hover, .panel:focus-within {
  background: var(--bg-panel);
}

.panel .tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.panel.flagship .tag { color: var(--signal); }

.panel h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 21px;
  margin-top: 14px;
  letter-spacing: 0.01em;
}

.panel p {
  margin-top: 10px;
  color: var(--text-mute);
  font-size: 15px;
}

.panel a.more {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--calib);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* The why section runs three panels, not four, so it gets its own column count. */
#why .panels { grid-template-columns: repeat(3, 1fr); }
#why .panel:nth-child(3n) { border-right: none; }

@media (max-width: 900px) {
  .panels { grid-template-columns: repeat(2, 1fr); }
  .panel:nth-child(4n) { border-right: 1px solid var(--line); }
  .panel:nth-child(2n) { border-right: none; }

  #why .panels { grid-template-columns: repeat(2, 1fr); }
  #why .panel:nth-child(2n) { border-right: none; }
  #why .panel:nth-child(3) { grid-column: 1 / -1; }   /* fills the odd row */
}
@media (max-width: 560px) {
  .panels { grid-template-columns: 1fr; }
  .panel { border-right: none !important; }

  #why .panels { grid-template-columns: 1fr; }
}

/* ---------- Included-in-every-wall-rental list ---------- */

.included {
  border: 1px solid var(--line);
  background: var(--bg-panel);
}

.included-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  border-bottom: 1px solid var(--line);
  padding: 22px 28px;
  gap: 16px;
}
.included-row:last-child { border-bottom: none; }

.included-row .k {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--calib);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-top: 2px;
}

.included-row .v { color: var(--text); font-size: 16px; }
.included-row .v span { color: var(--text-mute); }

@media (max-width: 640px) {
  .included-row { grid-template-columns: 1fr; gap: 6px; padding: 20px; }
}

/* ---------- Venue tape (marquee of places worked) ---------- */

.venue-tape {
  position: relative;   /* containing block for the laser sweep */
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 28px;
}

.venue-tape-label {
  flex-shrink: 0;
  padding-left: 32px;
  padding-right: 24px;
  border-right: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--calib);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.venue-tape-scroll {
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
}

.venue-tape .track {
  display: inline-flex;
  gap: 48px;
  animation: scroll-left 32s linear infinite;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.venue-tape .track span.sep { color: var(--signal); }

@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 640px) {
  .venue-tape-label { padding-left: 20px; padding-right: 16px; font-size: 11px; }
}

/* ---------- Gallery ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.gallery-grid .ph {
  aspect-ratio: 4 / 3;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-mute);
  text-align: center;
  padding: 10px;
}

@media (max-width: 700px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- CTA band ---------- */

.cta-band {
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 110px 0;
}

.cta-band h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(30px, 5vw, 52px);
}

.cta-band p {
  margin: 18px auto 36px;
  color: var(--text-mute);
  max-width: 50ch;
  font-size: 17px;
}

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--line);
  padding: 48px 0;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14px;
  color: var(--text-mute);
}

.footer-links { display: flex; gap: 24px; }

/* ---------- Breadcrumb / page header for inner pages ---------- */

.page-head {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--line);
}

.breadcrumb {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-mute);
  margin-bottom: 18px;
}
.breadcrumb .current { color: var(--signal); }

.page-head h1 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.02;
}

/* ---------- Utility ---------- */

.mono { font-family: var(--font-mono); }
.mt-lg { margin-top: 64px; }
