/*
  Dark, modern sidebar layout
  - Static, responsive, accessible
*/

:root {
  --bg: #0a0a0b;
  --panel: #111114;
  --text: #e7e7ea;
  --muted: #a2a2ad;
  --line: #242428;
  --accent: #f59e0b; /* amber */
  --accent-2: #60a5fa; /* soft blue */
  --radius: 12px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
}

img { max-width: 100%; display: block; }
a { color: var(--text); text-decoration: none; }
a:hover, a:focus { color: var(--accent); }

.container { width: min(980px, 100%); padding: 0 20px; margin: 0 auto; }

/* Layout */
.layout { display: grid; grid-template-columns: 320px 1fr; gap: 28px; min-height: 100vh; }

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 18px;
  border-right: 1px solid var(--line);
  background: var(--panel);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.brand { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; }
.avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow); }
.brand-name { font-weight: 800; letter-spacing: 0.2px; }
.brand-tag { color: var(--muted); font-size: 0.9rem; }

.side-nav { display: grid; gap: 8px; margin-top: 8px; }
.side-nav a { padding: 10px 12px; border-radius: 8px; color: var(--muted); border: 1px solid transparent; }
.side-nav a:hover { color: var(--text); border-color: var(--line); background: var(--panel); }

.sidebar-credit { margin-top: auto; color: var(--muted); font-size: 0.85rem; }

.content { padding: 24px 0 40px; }

/* Hero banner */
.hero-banner { padding: 32px 0; border-bottom: 1px solid var(--line); }
.title { font-size: clamp(2rem, 5vw, 3rem); margin: 0; }
.subtitle { color: var(--muted); margin: 6px 0 0; }
/* Mobile inline nav (hidden by default) */
.mobile-nav { display: none; margin-top: 12px; gap: 8px; flex-wrap: wrap; }
.mobile-nav a { display: inline-block; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font-weight: 600; }

/* Sections */
.section { padding: 40px 0; }
.section.alt { background: transparent; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 { margin: 0 0 16px; font-weight: 800; letter-spacing: 0.2px; }

.two-col { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; align-items: start; }
.image-stack img { border-radius: var(--radius); box-shadow: var(--shadow); display: block; max-width: 100%; height: auto; }
.photoCred { display: inline-block; margin-top: 8px; color: var(--muted); font-size: 0.85rem; }
.content p { margin: 0 0 12px; }

.equipment summary { cursor: pointer; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); font-weight: 700; }
.equipment[open] summary { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.equipment ul { margin: 0; padding: 14px; list-style-position: inside; border: 1px solid var(--line); border-top: 0; border-bottom-left-radius: 10px; border-bottom-right-radius: 10px; background: #0f0f13; }
.equipment li { margin: 8px 0; color: var(--muted); }

/* Videos */
.featured-video { margin-bottom: 18px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; box-shadow: var(--shadow); background: #0f0f13; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.video { background: #0f0f13; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; box-shadow: var(--shadow); }
.video iframe, .featured-video iframe { width: 100%; height: 100%; border: 0; }

/* Apps */
.apps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.apps-grid.cards { gap: 18px; }
.app-item { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); display: grid; gap: 10px; overflow: hidden; }
.app-head { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; color: inherit; }
.app-head > div { min-width: 0; }
.app-icon { width: 56px; height: 56px; border-radius: 12px; border: 1px solid var(--line); background: #0f0f13; object-fit: cover; }
.app-title { margin: 0; font-size: 1.1rem; font-weight: 800; letter-spacing: 0.2px; overflow-wrap: anywhere; }
.app-meta { margin: -4px 0 4px; color: var(--muted); font-size: 0.95rem; overflow-wrap: anywhere; }
.app-actions { display: none; }

/* Contact */
.contact { text-align: center; }
.contact-img { margin: 10px auto 0; max-width: min(500px, 90%); border: 1px dashed var(--line); border-radius: 8px; padding: 10px; background: var(--panel); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: transparent; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.top-link { color: var(--muted); }
.top-link:hover { color: var(--text); }

/* Responsive */
@media (max-width: 1020px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .mobile-nav { display: flex; }
}

@media (max-width: 780px) {
  .two-col { grid-template-columns: 1fr; }
  .app-card { grid-template-columns: 1fr; text-align: center; }
  .image-stack { }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Apps (tiles) */
.app-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; padding: 0; margin: 0; list-style: none; }
.app-tile { display: grid; justify-items: center; gap: 8px; padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); color: inherit; }
.app-tile img { width: 72px; height: 72px; border-radius: 16px; border: 1px solid var(--line); object-fit: cover; background: #0f0f13; }
.app-tile .label { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 800; letter-spacing: 0.2px; }
