:root{
  --bg:#070707;
  --panel:#0b0b0b;
  --text:#f2f2f2;
  --muted:rgba(242,242,242,.72);
  --faint:rgba(242,242,242,.45);
  --line:rgba(242,242,242,.12);
  --accent:#ff2d2d;
  --accent2:#ffb000;
  --radius:22px;
  --shadow: 0 20px 60px rgba(0,0,0,.55);
  --max: 1180px;

  /* Type */
  --h: "Bebas Neue", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;       /* Headline */
  --sh:"Space Grotesk", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;    /* Subheading */
  --b: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;            /* Body */
  --m: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* Microcopy */
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background: radial-gradient(1200px 800px at 25% -10%, rgba(255,45,45,.10), transparent 55%),
              radial-gradient(900px 700px at 80% 10%, rgba(255,176,0,.10), transparent 55%),
              var(--bg);
  color:var(--text);
  font-family:var(--b);
  line-height:1.35;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  overflow-x:hidden;
}

a{color:inherit; text-decoration:none}
.wrap{max-width:var(--max); margin:0 auto; padding:0 22px}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse){
  nav a, .cta, .btn{
    -webkit-tap-highlight-color: rgba(255,45,45,.15);
  }
}

/* Top bar */
.topbar{
  position:fixed; inset:0 0 auto 0;
  z-index:50;
  background: linear-gradient(to bottom, rgba(7,7,7,.85), rgba(7,7,7,.25), transparent);
  backdrop-filter: blur(8px);
  border-bottom:1px solid rgba(255,255,255,.06);
}
.topbar .wrap{
  display:flex; align-items:center; justify-content:space-between;
  height:64px;
  gap:16px;
}
.brand{
  display:flex; align-items:center; gap:12px;
  letter-spacing:.02em;
  font-family:var(--sh);
  font-weight:700;
  text-transform:uppercase;
  font-size:13px;
  color:rgba(242,242,242,.88);
}
.dot{
  width:8px; height:8px; border-radius:99px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow:0 0 0 6px rgba(255,45,45,.08);
}
nav{
  display:flex; gap:14px; align-items:center;
  font-family:var(--m);
  font-size:12px;
  color:rgba(242,242,242,.72);
  white-space:nowrap;
}
nav a{opacity:.82}
nav a:hover{opacity:1}

.cta{
  display:inline-flex; align-items:center; justify-content:center;
  height:38px; padding:0 14px;
  border-radius:999px;
  border:1px solid rgba(242,242,242,.18);
  background: rgba(242,242,242,.06);
  font-family:var(--sh);
  font-weight:700;
  letter-spacing:.01em;
  text-transform:uppercase;
  font-size:12px;
}
.cta:hover{
  border-color:rgba(255,45,45,.35);
  box-shadow:0 0 0 6px rgba(255,45,45,.10);
}

/* Mobile Menu Toggle */
.menuToggle{
  display:none;
  flex-direction:column;
  justify-content:space-between;
  width:28px;
  height:20px;
  background:transparent;
  border:none;
  cursor:pointer;
  padding:0;
  z-index:60;
}
.menuToggle span{
  display:block;
  width:100%;
  height:2px;
  background:rgba(242,242,242,.82);
  border-radius:2px;
  transition: all 0.3s ease;
}
.menuToggle.active span:nth-child(1){
  transform: translateY(9px) rotate(45deg);
}
.menuToggle.active span:nth-child(2){
  opacity:0;
}
.menuToggle.active span:nth-child(3){
  transform: translateY(-9px) rotate(-45deg);
}

/* Panels */
.panel{
  min-height:100vh;
  display:flex;
  align-items:center;
  padding:92px 0 56px;
  border-top:1px solid rgba(255,255,255,.04);
}

/* Fullscreen image panels (1st + last) */
.panel.full{
  position:relative;
  padding:0;
  border-top:none;
}
.panel.full .bg{
  position:absolute; inset:0;
  background-size:cover;
  background-position:50% 50%;
  background-repeat:no-repeat;
  filter:saturate(1.02) contrast(1.02);
}
.panel.full .shade{
  position:absolute; inset:0;
  background:
    linear-gradient(to bottom, rgba(7,7,7,.65), rgba(7,7,7,.35), rgba(7,7,7,.70)),
    radial-gradient(900px 700px at 25% 20%, rgba(255,45,45,.18), transparent 60%),
    radial-gradient(900px 700px at 80% 60%, rgba(255,176,0,.14), transparent 65%);
}
.panel.full .content{
  position:relative;
  width:100%;
  padding:110px 0 78px;
}

.kicker{
  font-family:var(--m);
  color:rgba(242,242,242,.70);
  font-size:12px;
  letter-spacing:.06em;
  text-transform:uppercase;
}
h1{
  font-family:var(--h);
  font-size: clamp(44px, 6.5vw, 92px);
  line-height:.92;
  margin:10px 0 10px;
  letter-spacing:.02em;
  text-transform:uppercase;
}
.sub{
  font-family:var(--sh);
  font-size: clamp(16px, 1.9vw, 22px);
  color:rgba(242,242,242,.86);
  margin:0 0 12px;
}
.body{
  color:var(--muted);
  font-size:15px;
  max-width:72ch;
}
.micro{
  font-family:var(--m);
  font-size:12px;
  color:rgba(242,242,242,.60);
}

.scrollHint{
  position:absolute;
  left:50%;
  bottom:18px;
  transform:translateX(-50%);
  font-family:var(--m);
  font-size:11px;
  color:rgba(242,242,242,.55);
  display:flex; align-items:center; gap:10px;
  user-select:none;
  opacity:.92;
}
.chev{
  width:26px; height:26px;
  border:1px solid rgba(242,242,242,.18);
  border-radius:999px;
  display:grid; place-items:center;
  background: rgba(242,242,242,.06);
}
.chev:before{
  content:"";
  width:8px; height:8px;
  border-right:2px solid rgba(242,242,242,.70);
  border-bottom:2px solid rgba(242,242,242,.70);
  transform: rotate(45deg) translateY(-1px);
  display:block;
}

/* Split panels */
.split{
  width:100%;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:26px;
  align-items:center;
}
.split.reverse{grid-template-columns: 1fr 1fr;}

/* Balanced media treatment */
.media{
  border-radius:var(--radius);
  border:1px solid rgba(242,242,242,.10);
  background: rgba(242,242,242,.03);
  box-shadow: var(--shadow);
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:14px;
}
.media img{
  display:block;
  max-width:100%;
  max-height:72vh;
  width:100%;
  height:auto;
  object-fit:contain;
  cursor: zoom-in;
  transition: transform 0.2s ease;
}

/* Image zoom overlay */
.zoom-overlay{
  position: fixed;
  inset: 0;
  background: rgba(7, 7, 7, 0.95);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  backdrop-filter: blur(8px);
}

.zoom-overlay.active{
  display: flex;
}

.zoom-container{
  position: relative;
  max-width: 95vw;
  max-height: 95vh;
  overflow: hidden;
  cursor: none;
}

.zoom-container img{
  display: block;
  max-width: 100%;
  max-height: 95vh;
  object-fit: contain;
  transform-origin: 0 0;
  transition: none;
}

.zoom-lens{
  position: absolute;
  width: 200px;
  height: 200px;
  border: 2px solid rgba(255, 45, 45, 0.6);
  border-radius: 50%;
  pointer-events: none;
  background: rgba(255, 45, 45, 0.1);
  box-shadow: 0 0 20px rgba(255, 45, 45, 0.3),
              inset 0 0 40px rgba(0, 0, 0, 0.3);
  display: none;
}

.zoom-container:hover .zoom-lens{
  display: block;
}

.zoom-close{
  position: fixed;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(242, 242, 242, 0.1);
  border: 1px solid rgba(242, 242, 242, 0.2);
  color: var(--text);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10000;
  transition: all 0.2s ease;
}

.zoom-close:hover{
  background: rgba(255, 45, 45, 0.2);
  border-color: rgba(255, 45, 45, 0.4);
  transform: scale(1.1);
}

.copy{
  padding:6px 2px;
}
.panelNo{
  font-family:var(--m);
  font-size:12px;
  color:rgba(242,242,242,.55);
  letter-spacing:.12em;
  text-transform:uppercase;
  margin-bottom:10px;
}
h2{
  font-family:var(--sh);
  font-size: clamp(26px, 3.3vw, 44px);
  line-height:1.02;
  margin:0 0 10px;
}
.lead{
  color:rgba(242,242,242,.82);
  font-size:16px;
  margin:0 0 14px;
  max-width:72ch;
}
ol{
  margin:0;
  padding-left:18px;
  color:var(--muted);
  font-size:14px;
  max-width:74ch;
}
ol li{margin:8px 0}
.pillRow{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:14px;
}
.pill{
  font-family:var(--m);
  font-size:12px;
  color:rgba(242,242,242,.70);
  border:1px solid rgba(242,242,242,.16);
  background: rgba(242,242,242,.05);
  padding:8px 10px;
  border-radius:999px;
}

/* Footer CTA */
.heroCard{
  border-radius:var(--radius);
  border:1px solid rgba(242,242,242,.10);
  background: rgba(7,7,7,.55);
  box-shadow: var(--shadow);
  padding:22px;
}
.finalActions{
  display:flex; gap:12px; flex-wrap:wrap;
  margin-top:8px;
}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  height:46px; padding:0 16px;
  border-radius:999px;
  font-family:var(--sh);
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.02em;
  font-size:12px;
  border:1px solid rgba(242,242,242,.18);
  background: rgba(242,242,242,.06);
  cursor:pointer;
}
.btn.primary{
  border-color: rgba(255,45,45,.45);
  background: linear-gradient(135deg, rgba(255,45,45,.22), rgba(255,176,0,.14));
  box-shadow:0 0 0 6px rgba(255,45,45,.10);
}
.btn:hover{filter:brightness(1.06)}

/* Responsive */
@media (max-width: 980px){
  .split{grid-template-columns: 1fr; display: flex; flex-direction: column;}
  .split.reverse{grid-template-columns: 1fr; display: flex; flex-direction: column;}
  
  /* Stack media and copy - images appear ABOVE content on mobile for reverse layouts */
  .split.reverse .media{order: 1}
  .split.reverse .copy{order: 2}
}

@media (max-width: 768px){
  /* Typography adjustments */
  h1{
    font-size: clamp(36px, 10vw, 64px);
    line-height:.95;
  }
  h2{
    font-size: clamp(24px, 6vw, 36px);
    line-height:1.08;
  }
  .sub{
    font-size: clamp(15px, 4vw, 18px);
  }
  .body, .lead{
    font-size:14px;
  }
  ol{
    font-size:13px;
  }

  /* #top {
    min-height: 50vh !important;
  } */

  /* Fix background positioning on mobile */
  .panel.full .bg{
    background-image:url('../assets/images/hero_bg_mobile.png') !important;
    background-position: center center !important;
    background-size: cover contain;
  }

  /* Show mobile menu toggle, hide desktop CTA */
  .menuToggle{
    display:flex;
  }
  
  .topbar .cta{
    display:none;
  }

  /* Navigation - hamburger menu approach */
  .topbar .wrap{
    height:56px;
    padding:0 16px;
  }
  
  nav{
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background: rgba(7,7,7,.96);
    backdrop-filter: blur(12px);
    border-bottom:1px solid rgba(255,255,255,.08);
    flex-direction: column;
    align-items: stretch;
    padding:12px 16px;
    gap:0;
    display:none;
    z-index:50;
  }
  
  nav.active{
    display:flex;
  }
  
  nav a{
    padding:12px 8px;
    border-bottom:1px solid rgba(255,255,255,.06);
  }
  
  nav a:last-child{
    border-bottom:none;
  }

  .brand{
    font-size:11px;
    gap:8px;
  }
  
  .dot{
    width:7px;
    height:7px;
  }

  .cta{
    font-size:10px;
    height:34px;
    padding:0 12px;
  }

  /* Panels */
  .panel{
    padding:64px 0 40px;
  }
  
  .panel.full .content{
    padding:80px 0 60px;
  }

  .wrap{
    padding:0 16px;
  }

  /* Split layouts */
  .split{
    gap:20px;
  }

  .media{
    padding:10px;
  }
  
  .media img{
    max-height:50vh;
  }
  
  .media.portraitFit img{
    max-height:42vh;
  }

  .copy{
    padding:4px 0;
  }

  /* Scroll hint */
  .scrollHint{
    bottom:12px;
    font-size:10px;
  }
  
  .chev{
    width:22px;
    height:22px;
  }

  /* Form elements */
  .heroCard{
    padding:18px;
  }
  
  input, select{
    font-size:14px !important;
  }

  .finalActions{
    flex-direction:column;
    gap:10px;
  }
  
  .btn{
    width:100%;
    height:44px;
  }
}

@media (max-width: 480px){
  /* Extra small screens */
  .topbar .wrap{
    height:52px;
    padding:0 12px;
  }

  h1{
    font-size: clamp(32px, 12vw, 48px);
  }
  
  h2{
    font-size: clamp(22px, 7vw, 32px);
  }

  .panel{
    padding:56px 0 36px;
  }

  .wrap{
    padding:0 12px;
  }

  .split{
    gap:16px;
  }

  .brand span:last-child{
    font-size:10px;
  }

  .heroCard{
    padding:16px;
  }
  
  ol{
    padding-left:16px;
    font-size:12.5px;
  }
  
  ol li{
    margin:6px 0;
  }
}

/* Landscape mobile optimization */
@media (max-height: 500px) and (orientation: landscape){
  .panel{
    min-height:auto;
    padding:48px 0 32px;
  }
  
  .panel.full{
    min-height:100vh;
  }
  
  .media img{
    max-height:60vh;
  }
  
  nav{
    top:52px;
    max-height: calc(100vh - 52px);
    overflow-y: auto;
  }
}
/* Tighten vertical rhythm (keep structure, reduce sloppy gaps) */
.panel{ padding:84px 0 44px; }
.lead{ font-size:15px; margin:0 0 12px; }
.body{ font-size:14.5px; }
ol{ font-size:13.5px; }
ol li{ margin:7px 0; }
.pillRow{ margin-top:12px; }

/* Uniform media block behaviour */
.media{ padding:12px; flex-direction:column; gap:10px; }
.media img{ max-height:66vh; width:100%; height:auto; object-fit:contain; }

/* If needed, shrink portrait images (no crop) */
.media.portraitFit img{ max-height:52vh; }

/* Simple caption under image */
.imgCaption{
  font-family:var(--m);
  font-size:12px;
  letter-spacing:.10em;
  text-transform:uppercase;
  color:rgba(242,242,242,.60);
  text-align:center;
  width:100%;
}

/* HERO POP (top panel only) */
#top .bg{
  filter:saturate(1.22) contrast(1.10) brightness(1.28);
}

/* HERO LIGHTING (top panel only) */
#top .shade{
  background:
    linear-gradient(to bottom, rgba(7,7,7,.35), rgba(7,7,7,.12), rgba(7,7,7,.40)),
    radial-gradient(900px 700px at 25% 20%, rgba(255,45,45,.22), transparent 60%),
    radial-gradient(900px 700px at 80% 60%, rgba(255,176,0,.18), transparent 65%),
    linear-gradient(to top, rgba(255,255,255,.10), rgba(255,255,255,0));
}