/* =========================================================
   Offroad Media Group — theme for Bootstrap 5.3.9 (cdnjs)
   Fonts: Red Hat Display + IBM Plex Mono, from the logo
   Loaded after bootstrap.min.css. Overrides Bootstrap's CSS
   variables first, then adds the brand-specific pieces.
   ========================================================= */

/* ---------- 1. Brand tokens ---------- */
:root {
  --omg-black: #0A0A0B;
  --omg-surface: #161618;       /* dark gray panels */
  --omg-surface-2: #1B1B1F;     /* program window */
  --omg-surface-3: #222226;     /* camera tiles */
  --omg-line: #2A2A2F;          /* borders */
  --omg-line-2: #3A3A41;
  --omg-line-3: #5C5C64;
  --omg-gray: #9D9DA5;          /* secondary text */
  --omg-gray-light: #C9C9CF;    /* supporting text, letter-mark gray */
  --omg-white: #F4F4F5;
  --omg-red: #E10E1A;           /* brand / primary actions */
  --omg-red-dark: #7A0A10;
  --omg-amber: #FFB81C;         /* hot spot */
  --omg-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------- 2. Bootstrap variable overrides (dark theme) ---------- */
[data-bs-theme="dark"] {
  --bs-body-bg: var(--omg-black);
  --bs-body-bg-rgb: 10, 10, 11;
  --bs-body-color: var(--omg-white);
  --bs-body-color-rgb: 244, 244, 245;
  --bs-body-font-family: "Red Hat Display", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bs-font-monospace: var(--omg-mono);
  --bs-secondary-color: var(--omg-gray);
  --bs-secondary-color-rgb: 157, 157, 165;
  --bs-tertiary-bg: var(--omg-surface);
  --bs-tertiary-bg-rgb: 22, 22, 24;
  --bs-secondary-bg: var(--omg-surface-3);
  --bs-border-color: var(--omg-line);
  --bs-border-radius: 8px;
  --bs-border-radius-lg: 16px;
  --bs-border-radius-sm: 6px;
  --bs-primary: var(--omg-red);
  --bs-primary-rgb: 225, 14, 26;
  --bs-warning: var(--omg-amber);
  --bs-warning-rgb: 255, 184, 28;
  --bs-light-rgb: 201, 201, 207;
  --bs-link-color: var(--omg-white);
  --bs-link-color-rgb: 244, 244, 245;
  --bs-link-hover-color: var(--omg-amber);
  --bs-link-hover-color-rgb: 255, 184, 28;
  --bs-heading-color: var(--omg-white);
  --bs-focus-ring-color: rgba(255, 184, 28, 0.55);
  color-scheme: dark;
}

body { -webkit-font-smoothing: antialiased; }

/* 1280px content width with 32px side padding */
.container { --bs-gutter-x: 4rem; }
@media (max-width: 575.98px) { .container { --bs-gutter-x: 2.5rem; } }
@media (min-width: 1400px) { .container { max-width: 1344px; } }

/* Keyboard focus: amber ring everywhere */
a:focus-visible, button:focus-visible, .btn:focus-visible, .btn-check:focus-visible + .btn {
  outline: 2px solid var(--omg-amber);
  outline-offset: 3px;
  box-shadow: none;
}

.omg-skip {
  position: absolute; top: 12px; left: 12px; z-index: 2000;
  background: var(--omg-amber); color: var(--omg-black); padding: 10px 16px; border-radius: 8px;
}

/* ---------- 3. Buttons (letter-mark tiles inside the badge's rim) ---------- */
.btn {
  --bs-btn-font-weight: 700;
  --bs-btn-border-radius: 8px;
  --bs-btn-padding-x: 1.25rem;
  --bs-btn-padding-y: 0.75rem;
  --bs-btn-font-size: 0.9375rem;
}
.btn-lg { --bs-btn-padding-x: 1.75rem; --bs-btn-padding-y: 1rem; --bs-btn-font-size: 1.0625rem; --bs-btn-border-radius: 8px; }

.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--omg-red);
  --bs-btn-border-color: var(--omg-red);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #C50C17;
  --bs-btn-hover-border-color: #C50C17;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #A90A14;
  --bs-btn-active-border-color: #A90A14;
  --bs-btn-disabled-bg: var(--omg-red);
  --bs-btn-disabled-border-color: var(--omg-red);
}
.btn-light {
  --bs-btn-color: var(--omg-black);
  --bs-btn-bg: var(--omg-gray-light);
  --bs-btn-border-color: var(--omg-gray-light);
  --bs-btn-hover-color: var(--omg-black);
  --bs-btn-hover-bg: var(--omg-white);
  --bs-btn-hover-border-color: var(--omg-white);
  --bs-btn-active-color: var(--omg-black);
  --bs-btn-active-bg: #B4B4BA;
  --bs-btn-active-border-color: #B4B4BA;
}
/* The thin black + gray frame, like the compass badge's outer rim */
.omg-btn { box-shadow: 0 0 0 3px var(--omg-black), 0 0 0 4px var(--omg-line-3); white-space: nowrap; }
.omg-btn-plain {
  --bs-btn-color: var(--omg-white);
  --bs-btn-border-color: var(--omg-line-3);
  --bs-btn-hover-bg: var(--omg-surface-3);
  --bs-btn-hover-border-color: var(--omg-line-3);
  --bs-btn-hover-color: var(--omg-white);
  --bs-btn-font-weight: 600;
}

/* ---------- 4. Shared type pieces ---------- */
.omg-mono-label {
  font-family: var(--omg-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--omg-gray-light);
}
.omg-eyebrow {
  display: block;
  font-family: var(--omg-mono); font-size: 0.8125rem; letter-spacing: 0.14em;
  color: var(--omg-amber); margin-bottom: 1rem;
}
.omg-h2 {
  font-weight: 800;
  font-size: clamp(2.125rem, 4.2vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.omg-h2-xl { font-weight: 850; font-size: clamp(2.5rem, 5vw, 4.25rem); line-height: 0.98; letter-spacing: -0.035em; }
.omg-lede { font-size: 1.0625rem; line-height: 1.6; }
.omg-body-lg { font-size: 1.125rem; line-height: 1.6; color: var(--omg-gray-light); }

@keyframes omgpulse { 0% { opacity: 1; } 50% { opacity: .25; } 100% { opacity: 1; } }
.omg-pulse { animation: omgpulse 1.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .omg-pulse { animation: none; } }
.omg-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: none; }

/* Knurled divider, like the bezel's ridged edge */
.omg-knurl {
  height: 12px;
  background: repeating-linear-gradient(90deg, var(--omg-line-2) 0 2px, var(--omg-black) 2px 6px);
  border-top: 1px solid var(--omg-line);
  border-bottom: 1px solid var(--omg-line);
}

.omg-section { padding-block: clamp(4.5rem, 9vw, 7rem); }

/* ---------- 5. Header (bearing readout) ---------- */
.omg-header { position: relative; z-index: 2; } /* keeps menu + button above the hero compass */
.omg-brand-mark { width: clamp(104px, 11vw, 152px); height: auto; display: block; }

.omg-toggler {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 18px;
  font-weight: 700; font-size: 0.9375rem; color: var(--omg-black);
  background: var(--omg-gray-light); border: 0; border-radius: 8px;
  box-shadow: 0 0 0 3px var(--omg-black), 0 0 0 4px var(--omg-line-3);
}
.omg-toggler:focus { box-shadow: 0 0 0 3px var(--omg-black), 0 0 0 4px var(--omg-line-3); }

.omg-heading-rule {
  align-items: center; gap: 12px;
  font-family: var(--omg-mono); font-size: 0.6875rem; letter-spacing: 0.14em; color: var(--omg-gray);
}
.omg-heading-ticks {
  flex: 1; height: 8px;
  background: repeating-linear-gradient(90deg, var(--omg-line-2) 0 1px, transparent 1px 8px);
}

.navbar .omg-bearing {
  display: flex; flex-direction: column; gap: 6px;
  min-width: 104px; padding: 10px 0;
  border-top: 2px solid var(--omg-line);
  color: var(--omg-white);
}
.navbar .omg-bearing:hover, .navbar .omg-bearing:focus-visible { color: var(--omg-amber); border-top-color: var(--omg-line-3); }
.omg-deg { font-family: var(--omg-mono); font-size: 0.6875rem; letter-spacing: 0.14em; color: var(--omg-gray); }
.omg-label { font-size: 1.0625rem; font-weight: 600; }
.navbar .omg-bearing-home { border-top-color: var(--omg-amber); }
.navbar .omg-bearing-home .omg-deg { color: var(--omg-amber); }

/* Collapsed (phone/tablet) menu: full-width rows */
@media (max-width: 1199.98px) {
  .navbar .omg-bearing { flex-direction: row; justify-content: space-between; align-items: baseline; padding: 14px 0; }
  .navbar-nav .nav-item:last-child .omg-bearing { border-bottom: 1px solid var(--omg-line); }
}

/* ---------- 6. Hero + program monitor ---------- */
/* The faint compass may rise behind the header, but is cut off at the right edge and the bottom of the hero */
.omg-hero { overflow-x: clip; overflow-y: visible; clip-path: inset(-2000px 0 0 0); }
.omg-hero-bezel {
  position: absolute; z-index: 0; top: 50%; right: -220px;
  width: 900px; height: 900px; transform: translateY(-50%);
  opacity: 0.16; pointer-events: none;
}
.omg-hero-inner { padding-top: 0.5rem; padding-bottom: 5rem; z-index: 1; }

.omg-monitor { background: var(--omg-surface); border: 1px solid var(--omg-line); border-radius: 16px; padding: 12px; }
.omg-monitor-row { display: flex; flex-wrap: wrap; gap: 12px; }
.omg-pgm-wrap { flex: 1 1 100%; min-width: 0; display: flex; container-type: inline-size; }
.omg-pgm {
  position: relative; flex: 1 1 auto; min-width: 0;
  border-radius: 10px; background: var(--omg-surface-2);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 24px;
  min-height: 420px;
  padding: 88px clamp(20px, 4vw, 56px) clamp(20px, 4vw, 48px) clamp(20px, 1.5vw, 16px);
}
.omg-pgm-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.omg-live-badge {
  position: absolute; top: 16px; left: 16px; display: flex; align-items: center; gap: 8px;
  background: var(--omg-red); color: #fff; font-family: var(--omg-mono); font-weight: 500; font-size: 0.8125rem; letter-spacing: 0.1em;
  padding: 6px 12px; border-radius: 4px;
}
.omg-live-badge .omg-dot { width: 8px; height: 8px; }
.omg-timecode {
  position: absolute; top: 16px; right: 16px; font-family: var(--omg-mono); font-size: 0.8125rem; color: var(--omg-white);
  background: rgba(10, 10, 11, 0.75); padding: 6px 12px; border-radius: 4px;
}
.omg-tc { color: #fff; font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.omg-headline {
  position: relative; margin: 0; max-width: 15ch;
  font-weight: 850; font-size: clamp(2.375rem, 6.6vw, 5rem); line-height: 0.94; letter-spacing: -0.015em; color: var(--omg-white);
}
.omg-lower-third { position: relative; display: flex; align-items: stretch; align-self: flex-start; max-width: 760px; }
.omg-lower-third-body { background: var(--omg-black); padding: 16px 22px; display: flex; flex-direction: column; gap: 8px; }
.omg-lower-third-body p { font-size: clamp(1rem, 1.5vw, 1.25rem); line-height: 1.5; color: var(--omg-gray-light); }
.omg-lower-third-bar { width: 8px; flex: none; }

/* Camera column: 2x2 under the program window on smaller screens, a 16:9 stack beside it on wide ones */
.omg-cams { flex: 1 1 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.omg-cam {
  position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden;
  background: var(--omg-surface-3); border: 1px solid var(--omg-line);
  display: flex; align-items: flex-end; padding: 8px;
  font-family: var(--omg-mono); font-size: 0.6875rem; color: var(--omg-gray-light);
}
.omg-cam img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.omg-cam span { position: relative; background: rgba(10, 10, 11, 0.75); padding: 3px 7px; border-radius: 4px; }
@media (min-width: 1000px) {
  .omg-pgm-wrap { flex: 4 1 640px; }
  .omg-pgm { min-height: calc(100cqw * 9 / 16); }
  .omg-cams { flex: 1 1 140px; display: flex; flex-direction: column; justify-content: space-between; }
}

/* Status bar under the monitor */
.omg-status {
  flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  padding: 4px 6px; font-family: var(--omg-mono); font-size: 0.6875rem; color: var(--omg-gray);
}
.omg-status-group { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.omg-pill {
  height: 32px; display: inline-flex; align-items: center; padding: 0 12px;
  background: var(--omg-surface-3); border: 1px solid var(--omg-line); border-radius: 6px; color: var(--omg-gray-light);
}
.omg-pill.omg-chart { padding: 0 8px; }
.omg-pill svg { display: block; overflow: hidden; }
.omg-red-text { color: #FF4A4F; }
@media (max-width: 1199.98px) { .omg-chart { display: none !important; } } /* charts are the first to go */

@keyframes omgscroll { from { transform: translateX(0); } to { transform: translateX(-180px); } }
@keyframes omgtape { to { stroke-dashoffset: -18; } }
.omg-scroll-a { animation: omgscroll 9s linear infinite; }
.omg-scroll-b { animation: omgscroll 5s linear infinite; }
.omg-scroll-c { animation: omgscroll 7s linear infinite; }
.omg-tape { animation: omgtape 1.2s linear infinite; }
@media (prefers-reduced-motion: reduce) { .omg-scroll-a, .omg-scroll-b, .omg-scroll-c, .omg-tape, .omg-pulse { animation: none; } }

/* ---------- 7. Capability strip ---------- */
.omg-strip { background: var(--omg-surface); font-family: var(--omg-mono); font-size: 0.8125rem; letter-spacing: 0.08em; color: var(--omg-gray-light); }
.omg-slash { color: var(--omg-line-3); }

/* ---------- 8. Services ---------- */
.omg-service-grid {
  border: 1px solid var(--omg-line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--omg-line);
  gap: 1px;
  display: grid;
  grid-template-columns: 1fr;
  margin: 0;
}
@media (min-width: 768px) { .omg-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) { .omg-service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.omg-service { background: var(--omg-black); padding: 36px 32px; display: flex; flex-direction: column; gap: 16px; height: 100%; }
.omg-service h3 { font-size: 1.5rem; font-weight: 750; margin: 0; }
.omg-service p { font-size: 1rem; line-height: 1.6; color: var(--omg-gray); margin: 0; }
.omg-dial { position: relative; width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; }
.omg-dial-ring { position: absolute; inset: 0; }

/* ---------- 9. Approach table ---------- */
.omg-compare { border: 1px solid var(--omg-line); border-radius: 16px; overflow: hidden; background: var(--omg-black); }
.omg-compare .table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--omg-white);
  --bs-table-border-color: var(--omg-line);
  table-layout: fixed;
}
.omg-compare th {
  font-family: var(--omg-mono); font-size: 0.75rem; font-weight: 400; letter-spacing: 0.12em;
  color: var(--omg-gray); padding: 18px 24px;
}
.omg-compare th.text-warning { color: var(--omg-amber) !important; }
.omg-compare td { padding: 22px 24px; font-size: 1rem; line-height: 1.5; }
.omg-compare td:first-child { color: var(--omg-gray); }
.omg-compare th + th, .omg-compare td + td { border-left: 1px solid var(--omg-line); }
.omg-compare tbody tr:last-child td { border-bottom: 0; }

/* ---------- 10. Process ---------- */
.omg-step { display: flex; flex-direction: column; gap: 14px; padding-top: 24px; border-top: 2px solid var(--omg-line-2); height: 100%; }
.omg-step-active { border-top-color: var(--omg-red); }
.omg-step-num { font-family: var(--omg-mono); font-size: 0.875rem; color: var(--omg-gray-light); }
.omg-step h3 { font-size: 1.375rem; font-weight: 750; margin: 0; }
.omg-step p { font-size: 1rem; line-height: 1.6; color: var(--omg-gray); margin: 0; }

/* ---------- 11. Built for ---------- */
.omg-audiences { display: flex; flex-wrap: wrap; gap: 12px 40px; font-weight: 800; font-size: clamp(1.625rem, 3.2vw, 2.75rem); line-height: 1.15; }
.omg-sep { color: var(--omg-line-3); }

/* ---------- 12. Work ---------- */
.omg-work { display: flex; flex-direction: column; gap: 16px; }
.omg-work-media {
  aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; background: var(--omg-surface);
  border: 1px solid var(--omg-line);
}
.omg-work-media img, .omg-work-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.omg-work h3 { font-size: 1.375rem; font-weight: 750; margin: 0; }
.omg-work p { font-size: 1rem; line-height: 1.6; color: var(--omg-gray); margin: 0; }
.omg-work ul { margin: -6px 0 0; padding-left: 1.15em; font-size: 1rem; line-height: 1.6; color: var(--omg-gray); }
.omg-work li { margin: 2px 0; }

.omg-work-grid { row-gap: 64px; }

/* ---------- 12b. Built with: brand buttons ---------- */
.omg-brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 130px), 1fr)); gap: 20px 16px; }
.omg-brand {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 52px; padding: 0 16px; border-radius: 8px;
  background: var(--brand-bg); color: var(--brand-fg); border: 1px solid var(--brand-bd);
  box-shadow: 0 0 0 3px var(--omg-black), 0 0 0 4px var(--omg-line-3);
  font-size: 0.9375rem; font-weight: 700; line-height: 1.2; text-decoration: none;
  transition: filter .15s ease, transform .15s ease;
}
.omg-brand:hover, .omg-brand:focus-visible { color: var(--brand-fg); filter: brightness(1.12); transform: translateY(-2px); }
.omg-brand svg { flex: none; opacity: 0.8; }

/* ---------- 12b2. Heading tape divider (Examples -> About) ---------- */
.omg-tape { position: relative; overflow: hidden; background: var(--omg-surface); border-top: 1px solid var(--omg-line); border-bottom: 1px solid var(--omg-line); }
.omg-tape-svg { display: block; width: 100%; height: 96px; }

/* ---------- 12b3. Circuit dividers around Built With ---------- */
.omg-circuit { overflow: hidden; border-top: 1px solid var(--omg-line); border-bottom: 1px solid var(--omg-line); }
.omg-circuit-svg { display: block; width: 100%; height: 44px; }
@keyframes omgsignal { from { stroke-dashoffset: 918; } to { stroke-dashoffset: 0; } }
.omg-signal { animation: omgsignal 6s linear infinite; }
.omg-signal-1 { animation-duration: 8s; animation-delay: -3s; }
.omg-signal-2 { animation-duration: 10s; animation-delay: -6s; }
@media (prefers-reduced-motion: reduce) { .omg-signal { animation: none; } }

/* ---------- 12c. About ---------- */
.omg-portrait { position: relative; width: min(100%, 460px); aspect-ratio: 1 / 1; }
.omg-portrait > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.omg-portrait > img {
  position: absolute; inset: 11.5%; width: 77%; height: 77%; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--omg-line);
}
.omg-facts {
  margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px;
  background: var(--omg-line); border: 1px solid var(--omg-line); border-radius: 12px; overflow: hidden;
}
.omg-facts > div { background: var(--omg-black); padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.omg-facts dt { font-family: var(--omg-mono); font-size: 0.6875rem; font-weight: 400; letter-spacing: 0.14em; color: var(--omg-gray); }
.omg-facts dd { margin: 0; font-size: 1rem; font-weight: 600; }

/* ---------- 13. Footer ---------- */
.omg-footer { font-size: 0.875rem; color: var(--omg-gray); }
.omg-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.omg-foot-logo { display: block; line-height: 0; }
.omg-foot-copy { color: inherit; text-decoration: none; }
.omg-foot-copy:hover { color: var(--omg-amber); }
.omg-foot-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
@media (max-width: 767.98px) {
  .omg-foot { flex-direction: column; justify-content: center; text-align: center; }
  .omg-foot-nav { justify-content: center; }
}
.omg-foot-link { color: var(--omg-gray-light); text-decoration: none; font-size: 0.875rem; font-weight: 600; padding-block: 10px; }
.omg-foot-link:hover { color: var(--omg-amber); }
.omg-social { gap: 6px; font-family: var(--omg-mono); font-size: 0.6875rem; letter-spacing: 0.08em; color: var(--omg-gray); }
.omg-social a { color: var(--omg-white); font-weight: 600; text-decoration: none; padding: 6px 2px; }
.omg-social a:hover { color: var(--omg-amber); }
