/* Self-hosted fonts (2026-10-21), was Google Fonts. All three are SIL Open Font
   License 1.1, so hosting them ourselves is allowed. Latin subset only: the site is
   English. Removes two extra connections and a render-blocking stylesheet.
   Orbitron is ONE variable file for both 700 and 900. Files: assets/fonts/. */
@font-face {
  font-family: 'Orbitron';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/orbitron.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Orbitron';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('/assets/fonts/orbitron.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Rajdhani';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/rajdhani-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Rajdhani';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/rajdhani-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Rajdhani';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/rajdhani-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Share Tech Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/share-tech-mono-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ================================================================
   DirectFXIT — main.css  (SINGLE STYLESHEET — hard rule)
   Ported to Chamber standards: Lighthouse 95+, one file, native.
   Sections: TOKENS / RESET / GRID BG / NAV / STRIPE / BUTTONS /
             HERO / VIDEO MODAL / REDUCED MOTION / MOBILE
   ================================================================ */

/* --- DESIGN TOKENS --- */
:root {
  --black:   #0a0a0f;
  --dark:    #0f0f1a;
  --panel:   #13131f;
  --blue:    #00b7ae;
  --cyan:    #00b7ae;
  --green:   #4fb528;
  --orange:  #ff6a00;
  --yellow:  #feba02;
  --red:     #f90d01;
  --white:   #f0f4ff;
  --grid:    rgba(0,183,174,0.055);
  --glow-c:  0 0 22px rgba(0,183,174,0.55);
  --glow-g:  0 0 22px rgba(79,181,40,0.55);
  --fd: 'Orbitron', monospace;
  --fm: 'Share Tech Mono', monospace;
  --fb: 'Rajdhani', sans-serif;
  --ease: cubic-bezier(.4,0,.2,1);
}

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body.dfx-site {
  background: var(--black);
  color: var(--white);
  font-family: var(--fb);
  font-size: 18px;
  line-height: 1.65;
  overflow-x: hidden;
}
img, picture, svg { display: block; max-width: 100%; }
a { color: inherit; }

/* --- GRID BACKGROUND --- */
body.dfx-site::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none; z-index: 0;
}

/* --- NAVIGATION --- */
.dfx-nav {
  position: sticky; top: 0; z-index: 999;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 40px;
  background: rgba(10,10,15,0.96);
  backdrop-filter: blur(14px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.dfx-nav.scrolled { background: rgba(10,10,15,0.97); box-shadow: 0 4px 30px rgba(0,183,174,.12); }
.dfx-nav-logo img { height: 50px; width: auto; filter: drop-shadow(0 0 8px rgba(0,183,174,0.4)); }
.dfx-nav-links { display: flex; gap: 30px; list-style: none; }
.dfx-nav-links a {
  font-family: var(--fd); font-size: 10px; font-weight: 700;
  letter-spacing: .12em; color: var(--white); text-decoration: none;
  text-transform: uppercase; transition: color .2s, text-shadow .2s;
}
.dfx-nav-links a:hover, .dfx-nav-links a.active { color: var(--cyan); text-shadow: var(--glow-c); }
.dfx-nav-cta {
  font-family: var(--fd); font-size: 10px; font-weight: 700;
  letter-spacing: .1em; color: var(--black) !important;
  background: var(--cyan); padding: 10px 22px; text-decoration: none; text-transform: uppercase;
  clip-path: polygon(8px 0%,100% 0%,calc(100% - 8px) 100%,0% 100%);
  transition: background .2s, box-shadow .2s;
}
.dfx-nav-cta:hover { background: var(--green); box-shadow: var(--glow-g); }

/* --- NAV DROPDOWN --- */
/* "Services" is a <button>, not an <a>, because there is no page
   behind it. It is styled to be visually identical to its sibling
   links, so the difference is semantic only. */
.dfx-nav-item { position: relative; }
.dfx-nav-toggle {
  display: inline-flex; align-items: center;
  font-family: var(--fd); font-size: 10px; font-weight: 700;
  letter-spacing: .12em; color: var(--white);
  text-transform: uppercase; background: none; border: none;
  padding: 0; cursor: pointer; line-height: inherit;
  transition: color .2s, text-shadow .2s;
}
.dfx-nav-toggle:hover,
.dfx-has-sub.open > .dfx-nav-toggle { color: var(--cyan); text-shadow: var(--glow-c); }

.dfx-nav-caret {
  width: 5px; height: 5px; margin-left: 8px; flex: none;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-1px) rotate(45deg);
  transition: transform .2s var(--ease);
}
.dfx-has-sub.open .dfx-nav-caret { transform: translateY(1px) rotate(-135deg); }

.dfx-nav-sub {
  position: absolute; top: calc(100% + 18px); left: -18px;
  min-width: 210px; list-style: none;
  padding: 8px; margin: 0;
  background: rgba(10,10,15,0.98);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(0,183,174,.28);
  box-shadow: 0 12px 34px rgba(0,0,0,.55);
  z-index: 1001;
  opacity: 0; visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
/* ⚠️ The 18px offset below the button is a DEAD ZONE for the
   pointer, and crossing it would close the menu mid-travel. This
   pseudo-element bridges it. It is a child of the submenu, so
   hovering it still counts as hovering the parent <li>. Remove it
   and the dropdown becomes unusable with a mouse. */
.dfx-nav-sub::before {
  content: ''; position: absolute;
  left: 0; right: 0; top: -19px; height: 19px;
}
.dfx-nav-sub a {
  display: block; padding: 9px 12px;
  font-family: var(--fd); font-size: 10px; font-weight: 700;
  letter-spacing: .1em; color: var(--white); text-decoration: none;
  text-transform: uppercase; white-space: nowrap;
  border-left: 2px solid transparent;
  transition: color .2s, border-color .2s, background .2s;
}
.dfx-nav-sub a:hover,
.dfx-nav-sub a.active {
  color: var(--cyan); border-left-color: var(--cyan);
  background: rgba(0,183,174,.07);
}

/* Open on hover ONLY for a real mouse. A tablet in landscape is
   above the 768px hamburger breakpoint and has no hover, so it
   uses the click toggle in app.js instead. Without this gate, a
   tap fires a sticky emulated hover and the menu will not close. */
@media (hover: hover) and (pointer: fine) {
  .dfx-has-sub:hover > .dfx-nav-sub { opacity: 1; visibility: visible; transform: none; }
}
/* Click and keyboard path. Not :focus-within: the button keeps
   focus after a click that CLOSES the menu, so focus-within would
   immediately reopen it and the toggle could never be shut. */
.dfx-has-sub.open > .dfx-nav-sub { opacity: 1; visibility: visible; transform: none; }

/* hamburger + mobile nav */
.dfx-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.dfx-hamburger span { display: block; width: 24px; height: 2px; background: var(--cyan); transition: .3s; }
.dfx-mobile-nav {
  display: none; position: fixed; inset: 0; background: rgba(10,10,15,0.98); z-index: 1000;
  flex-direction: column; align-items: center; justify-content: center; gap: 32px;
}
.dfx-mobile-nav.open { display: flex; }
.dfx-mobile-nav a { font-family: var(--fd); font-size: 18px; font-weight: 700; letter-spacing: .12em; color: var(--white); text-decoration: none; text-transform: uppercase; }
.dfx-mobile-nav a:hover { color: var(--cyan); }

/* Mobile menu group. Click-only disclosure, closed on open, since
   a phone has no hover at all. Same button and same JS handler as
   the desktop dropdown. */
.dfx-mob-group { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.dfx-mob-toggle {
  display: inline-flex; align-items: center;
  font-family: var(--fd); font-size: 18px; font-weight: 700;
  letter-spacing: .12em; color: var(--white);
  text-transform: uppercase; background: none; border: none;
  padding: 0; cursor: pointer; transition: color .2s;
}
.dfx-mob-group.open > .dfx-mob-toggle { color: var(--cyan); }
.dfx-mob-toggle .dfx-nav-caret { width: 7px; height: 7px; border-width: 2px; margin-left: 10px; }
.dfx-mob-group.open .dfx-nav-caret { transform: translateY(2px) rotate(-135deg); }

.dfx-mob-sub { display: none; flex-direction: column; align-items: center; gap: 16px; }
.dfx-mob-group.open > .dfx-mob-sub { display: flex; }
/* Smaller and inset, so the child reads as a child. Overrides the
   18px .dfx-mobile-nav a rule above. */
.dfx-mob-sub a {
  font-size: 14px; color: rgba(240,244,255,.72);
  padding-left: 14px; border-left: 2px solid rgba(0,183,174,.45);
}
.dfx-mobile-close { position: absolute; top: 20px; right: 24px; font-family: var(--fd); font-size: 11px; color: var(--cyan); background: none; border: 1px solid var(--cyan); padding: 8px 14px; cursor: pointer; letter-spacing: .1em; }

/* --- STRIPE --- */
.dfx-stripe {
  height: 4px; position: relative; z-index: 10; opacity: .75; filter: blur(.4px);
  background: linear-gradient(90deg, var(--blue) 0% 20%, var(--cyan) 20% 40%, var(--green) 40% 60%, var(--yellow) 60% 80%, var(--orange) 80% 100%);
}

/* --- BUTTONS (shared) --- */
.dfx-btn {
  display: inline-block; font-family: var(--fd); font-size: 11px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  padding: 15px 34px; transition: all .25s var(--ease); cursor: pointer; border: none;
}
.dfx-btn-primary {
  background: var(--cyan); color: var(--black);
  clip-path: polygon(12px 0%,100% 0%,calc(100% - 12px) 100%,0% 100%);
}
.dfx-btn-primary:hover { background: var(--green); box-shadow: var(--glow-g); transform: translateY(-2px); color: var(--black); }

/* --- HERO SECTION --- */
.dfx-hero-section {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: var(--black);
  /* The 5px teal bottom bar was removed 2026-10-21 (Joseph). */
}
/* floating particles */
.dfx-hero-bg { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.dfx-particle { position: absolute; width: 500px; height: 500px; border-radius: 50%; animation: dfx-float 35s infinite ease-in-out; }
.dfx-p1 { top: 5%;   left: 5%;  background: radial-gradient(circle, rgba(0,183,174,.04) 0%, transparent 70%); animation-delay: 0s; }
.dfx-p2 { top: 50%;  right:10%; background: radial-gradient(circle, rgba(0,123,255,.04) 0%, transparent 70%); animation-delay: 10s; }
.dfx-p3 { bottom:15%; left:25%; background: radial-gradient(circle, rgba(79,181,40,.03) 0%, transparent 70%); animation-delay: 20s; }
.dfx-p4 { top: 30%;  right:40%; background: radial-gradient(circle, rgba(255,106,0,.025) 0%, transparent 70%); animation-delay: 15s; }
@keyframes dfx-float {
  0%,100% { transform: translate(0,0) scale(1); }
  33%     { transform: translate(50px,-50px) scale(1.2); }
  66%     { transform: translate(-40px,40px) scale(.85); }
}
/* CRT scanline overlay */
.dfx-hero-section::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: repeating-linear-gradient(to bottom, transparent, transparent 3px, rgba(0,0,0,.07) 3px, rgba(0,0,0,.07) 4px);
}
/* centered stack */
.dfx-hero-container {
  position: relative; z-index: 10; text-align: center; padding: 0 24px;
  max-width: 1000px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center;
  transform: translateY(-15px);
}
.dfx-hero-logo { margin-bottom: 0; }
.dfx-hero-logo img { max-width: 460px; width: 100%; height: auto; filter: drop-shadow(0 0 20px rgba(0,183,174,.35)); }
.dfx-hero-headline {
  font-family: var(--fd); font-size: clamp(1.8rem,3.8vw,4rem);
  font-weight: 900; line-height: 1.15; letter-spacing: -.02em;
  text-transform: uppercase; margin: 20px 0 30px;
}
.dfx-hl-line { display: block; white-space: nowrap; }
.gradient-text {
  background: linear-gradient(180deg,#ffffff 0%,#7a8aaa 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.dfx-hero-sub {
  font-family: var(--fm); font-size: clamp(13px,1.6vw,18px);
  letter-spacing: .35em; text-transform: uppercase;
  color: rgba(0,183,174,.7); margin: -14px 0 36px;
}

/* hero CTAs */
.dfx-hero-ctas { display: flex; gap: 24px; justify-content: center; align-items: center; flex-wrap: wrap; }
.dfx-hbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  box-sizing: border-box; height: 54px; min-width: 240px; padding: 0 40px;
  font-family: var(--fd); font-size: 11px; line-height: 1; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; border: none; outline: none; appearance: none;
  transition: all .25s var(--ease); position: relative; vertical-align: middle;
}
/* primary — laser border */
.dfx-hbtn-primary { background: var(--black); color: var(--white) !important; border: 1px solid rgba(0,183,174,.25); border-radius: 4px; overflow: hidden; z-index: 1; }
.dfx-hbtn-primary::before {
  content: ''; position: absolute; inset: -3px; border-radius: 4px; z-index: -1;
  background: conic-gradient(from 0deg, transparent 0%, transparent 22%, var(--cyan) 25%, var(--cyan) 28%, transparent 30%, transparent 100%);
  animation: dfx-laser 3s linear infinite;
}
.dfx-hbtn-primary::after { content: ''; position: absolute; inset: 1px; background: var(--black); border-radius: 3px; z-index: -1; }
@keyframes dfx-laser { to { transform: rotate(360deg); } }
.dfx-hbtn-primary:hover { transform: scale(1.05); }
/* secondary — ghost + play circle */
.dfx-hbtn-secondary { background: transparent; color: var(--white) !important; border: 1px solid rgba(255,255,255,.2); border-radius: 4px; }
.dfx-play-circle { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); display: flex; align-items: center; justify-content: center; transition: all .3s; }
.dfx-hbtn-secondary:hover { color: var(--cyan) !important; border-color: rgba(0,183,174,.5); }
.dfx-hbtn-secondary:hover .dfx-play-circle { background: var(--cyan); border-color: var(--cyan); }
.dfx-hbtn-secondary:hover .dfx-play-circle svg { color: var(--black); }

/* entrance animations */
.animate-fade-up { opacity: 0; transform: translateY(40px); animation: dfx-fadeup .9s var(--ease) forwards; }
.delay-100 { animation-delay: .2s; }
.delay-200 { animation-delay: .4s; }
@keyframes dfx-fadeup { to { opacity: 1; transform: translateY(0); } }
.slide-in-left  { opacity: 0; transform: translateX(-60px); animation: dfx-sil .8s var(--ease) .8s forwards; }
.slide-in-right { opacity: 0; transform: translateX(60px);  animation: dfx-sir .8s var(--ease) .8s forwards; }
@keyframes dfx-sil { to { opacity: 1; transform: translateX(0); } }
@keyframes dfx-sir { to { opacity: 1; transform: translateX(0); } }

/* --- WELCOME VIDEO MODAL --- */
.dfx-video-modal { position: fixed; inset: 0; z-index: 10000; display: none; opacity: 0; transition: opacity .3s; }
.dfx-video-modal.active { display: flex; opacity: 1; }
.dfx-video-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.92); backdrop-filter: blur(10px); }
.dfx-video-content { position: relative; z-index: 10001; margin: auto; width: 90%; max-width: 1100px; aspect-ratio: 16/9; }
.dfx-video-close { position: absolute; top: -48px; right: 0; background: transparent; border: none; color: var(--white); cursor: pointer; padding: 8px; transition: color .2s; }
.dfx-video-close:hover { color: var(--cyan); }
.dfx-video-frame { width: 100%; height: 100%; border-radius: 8px; overflow: hidden; }
.dfx-video-frame iframe { width: 100%; height: 100%; border: 0; }
.dfx-video-frame #dfx-video-player { width: 100%; height: 100%; }
/* "Tap for sound" button: iPhones only, when the video had to start muted (home.js). */
.dfx-video-hint {
  position: absolute; left: 50%; top: 100%; transform: translateX(-50%); margin-top: 16px;
  padding: 12px 22px; border: 1px solid rgba(0,183,174,.6); border-radius: 4px;
  background: rgba(0,183,174,.12); color: var(--white); cursor: pointer; white-space: nowrap;
  font-family: var(--fd); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.dfx-video-hint[hidden] { display: none; }

/* --- FOOTER --- */
.dfx-footer {
  position: relative; z-index: 2; background: var(--panel); border-top: 2px solid var(--cyan);
  padding: 36px 40px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px;
}
.dfx-footer-logo img { height: 36px; width: auto; opacity: .85; filter: drop-shadow(0 0 6px rgba(0,183,174,.3)); }
.dfx-footer-links { display: flex; gap: 24px; list-style: none; }
.dfx-footer-links a { font-family: var(--fm); font-size: 11px; letter-spacing: .1em; color: rgba(240,244,255,.45); text-decoration: none; text-transform: uppercase; }
.dfx-footer-links a:hover { color: var(--cyan); }
.dfx-footer-copy { font-family: var(--fm); font-size: 11px; letter-spacing: .08em; color: rgba(240,244,255,.32); }

/* --- MOBILE --- */
@media (max-width: 768px) {
  .dfx-nav { padding: 12px 20px; }
  .dfx-nav-links, .dfx-nav-cta { display: none; }
  .dfx-hamburger { display: flex; }
  /* 2026-10-21 phone fix (Joseph's iPhone): the old margin-top: -28px
     pulled the headline 28px up INTO the logo, and at 2.2rem the
     nowrap line "SMALL-TOWN HEART." (about 12.5em wide) ran off both
     sides of any screen under ~480px. Now: same 20px gap as desktop,
     and the size shrinks to fit the screen minus the 24px padding.
     Desktop and tablet (above 768px) are unchanged. */
  .dfx-hero-headline { font-size: min(2.2rem, calc((100vw - 48px) / 12.6)); }
  .dfx-hero-ctas { flex-direction: column; gap: 14px; }
  .dfx-hbtn { width: 100%; max-width: 320px; }
  .dfx-footer { flex-direction: column; text-align: center; padding: 28px 20px; }
}

/* --- REDUCED MOTION --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .animate-fade-up, .slide-in-left, .slide-in-right { opacity: 1 !important; transform: none !important; }
}

