@import url("https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,300;0,400;0,500;0,600;0,700;1,600&display=swap");

* {
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

:root {
  --nav-h: 68px;
  /* Bottom team/advisory panel nav height (kept compact so content isn't obscured) */
  --team-rail-h: 44px;
  /* Fixed extra scroll room for stacked (mobile) member/advisor panels */
  /* Extra scroll room below the fixed bottom rail (constant in stacked mode) */
  /* Scroll buffer under the fixed bottom rail in stacked (mobile) member/advisor panels */
  /* (Reduced so there isn't a huge blank gap under the text.) */
  --stacked-scroll-buffer: 180px;
  /* Theme overrides */
  --bg-main: #0F121B;
  --bg-products: #1E2336;
  --nav-bg: #000000;
  --heading: #758BD5;
  --text: #FFFFFF;

}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-main);
  color: var(--text);

  background-color: #050814;
}


/* Full-bleed background bands (replaces the old card-based section look) */
.band{ position: relative; isolation: isolate; overflow: hidden;
  width: 100%;
}

/* ===== Angled backgrounds (left side 5% lower than right) ===== */
.band{ position: relative; isolation: isolate; overflow: hidden;
  position: relative;
  z-index: 0; /* create stacking context for ::before */
  background: transparent; /* backgrounds now live on ::before via --band-bg */
}

.band::before{
  content:"";
  position:absolute;
  inset:0;
  background: var(--band-bg, transparent);
  clip-path: polygon(0 var(--band-cut, 7%), 100% 0%, 100% 100%, 0% 100%);
  z-index: -1;
}


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

.section-head{
  margin-bottom: 28px;
}

.band-hero{
    --band-bg: radial-gradient(1200px 700px at 15% 20%, rgba(255,255,255,0.10), transparent 55%),
    radial-gradient(900px 600px at 80% 30%, rgba(0,180,255,0.10), transparent 60%),
    linear-gradient(135deg, #000814, #001d3d, #003566);
  background: transparent;

}



.band-products{
    --band-bg: var(--bg-products);
  background: transparent;

}



.band-events{
    --band-bg: radial-gradient(900px 520px at 25% 20%, rgba(255,255,255,0.07), transparent 60%),
    linear-gradient(180deg, #070A12 0%, #050814 100%);
  background: transparent;

}


.band-team{
  --band-cut: 0%;
    --band-bg: linear-gradient(180deg, #040611 0%, #0B1327 100%);

}



.band-contact{
        --band-cut: 0%;
--band-bg: radial-gradient(900px 520px at 50% 15%, rgba(255,255,255,0.06), transparent 60%),
    linear-gradient(180deg, rgba(6,7,10,1), rgba(5,6,8,1));
  background: transparent;

}


.contact-panel{
  width: min(760px, 100%);
  margin: 0 auto;
}


/* Top Nav */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 50;

  /* Transparent at top, black fades in via --nav-bg-alpha (set in JS) */
  background: rgba(0, 0, 0, var(--nav-bg-alpha, 0));
  border-bottom: 1px solid rgba(255,255,255, calc(0.06 + (var(--nav-bg-alpha, 0) * 0.10)));
  backdrop-filter: none;

  /* Keep logo + links visible at all times */
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.top-nav.is-scrolled{
  backdrop-filter: none;
}


.nav-inner {
  height: 100%;
  max-width: none;
  margin: 0;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-weight: 750;
  letter-spacing: 0.2px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-logo{
  height: 34px;
  width: auto;
  display: block;
}

.brand-text{
  line-height: 1;
}

.nav-links {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links a {
  color: #ffffff;
  text-decoration: none;
  padding: 6px 0;
  border-radius: 0;
  border: none;
  background: transparent;
  position: relative;
  opacity: 0.88;
  }

.nav-links a::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: none;
}

.nav-links a:hover{
  opacity: 1;
}

.nav-links a:hover::after{
  transform: scaleX(1);
}

.nav-links a.active{
  opacity: 1;
}

.nav-links a.active::after{
  transform: scaleX(1);
}


/*
  Keep the landing hero flush to the top of the viewport (nav overlays it).
  Other sections get top padding so content doesn't sit underneath the fixed nav.
*/
#app {
  padding-top: 0;
}

/* Home-only background */
#landing{
  /* Subtle image background for just the home section */
  background-image:
    radial-gradient(1200px 600px at 20% 10%, rgba(255,255,255,0.10), transparent 60%),
    radial-gradient(900px 500px at 80% 20%, rgba(59,130,246,0.12), transparent 65%),
    ;
  background-repeat: no-repeat;
  background-position: center center, center center, 85% 15%;
  background-size: auto, auto, 920px auto;
}

/* Sections */
.section {
  /* Top padding includes nav height so section headings don't hide under the fixed nav */
  padding: calc(28px + var(--nav-h)) 16px 28px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  scroll-margin-top: calc(var(--nav-h) + 18px); /* keeps anchors from hiding under the nav */
}

/* Landing is a full-viewport hero; don't push it down */
#landing.section{
  padding-top: 0;
  /* Ensure the landing background/hero reserves a full viewport so the next
     section (Products) never appears to overlap it at the bottom. */
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: 0;
}

/* Landing hero layout */
.hero{
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: calc(var(--nav-h) + 72px) 16px 88px;
  position: relative;
  overflow: hidden;
}

.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background-image: url('assets/prescott-logo.svg');
  background-repeat: no-repeat;
  background-position: 70% 55%;
  background-size: min(900px, 80vw);
  opacity: 0.10;
  pointer-events:none;
  transform: none;
}


.hero-inner{
  width: min(1100px, 100%);
}

.hero-title{
  margin: 0;
  font-size: clamp(44px, 6vw, 86px);
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.hero-accent{
  margin-top: 14px;
  font-weight: 800;
  letter-spacing: 0.22em;
  opacity: 0.85;
}

/* Card UI */

/* Legacy card class (kept for safety, but visually neutral in the new band layout) */
.card{
  background: transparent;
  border: none;
  backdrop-filter: none;
  border-radius: 0;
  padding: 0;
  width: 100%;
  max-width: none;
  box-shadow: none;
}


.center {
  text-align: center;
}

h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

h2 {
  font-size: 2.2rem;
  margin-top: 0;
}

.subtitle {
  color: var(--heading);
  margin-bottom: 28px;
}

/* Landing logo */
.hero-logo{
  width: 86px;
  height: 86px;
  margin-bottom: 14px;
}

/* Products */
.products-grid{
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 24px;
  margin-top: 34px;
}


.product-card{
  width: 100%;
  max-width: 760px;
  background: rgba(15,18,27,0.55);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 52px 40px;
  text-align: center;
}


.product-logo{
  width: 180px;
  height: 180px;
  margin-bottom: 18px;
}

.product-title{
  font-size: 2.0rem;
  font-weight: 850;
  margin-bottom: 10px;
}

.product-text{
  color: rgba(255,255,255,0.86);
  line-height: 1.6;
  font-size: 1.15rem;
}

@media (max-width: 900px){
  .products-grid{ grid-template-columns: 1fr; }
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.feature {
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 20px;
}

.feature h3 {
  color: var(--heading);
  margin-bottom: 8px;
}

button {
  background: #1d4ed8;
  border: none;
  color: var(--text);
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 1rem;
  cursor: pointer;
  }

button:hover {
  background: #2563eb;
}

.footer {
  margin-top: 40px;
  font-size: 0.8rem;
  color: #9ca3af;
}

form {
  display: grid;
  gap: 18px;
  margin-top: 20px;
  margin-bottom: 0;
}

label {
  font-size: 0.8rem;
  color: #cbd5f5;
}

input,
textarea,
select {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.45);
  background: rgba(0,0,0,0.5);
  color: var(--text);
  font-size: 0.9rem;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #3b82f6;
}

textarea {
  resize: vertical;
  min-height: 110px;
}

/* Small link-style button */
.link {
  background: none;
  color: #93c5fd;
  padding: 0;
  margin-top: 4px;
}


/* hover removed: non-profile */
.link:hover{ }


/* Status text */
.form-status {
  margin-top: 6px;
  font-size: 0.9rem;
  color: #cbd5f5;
  min-height: 0;
}

/* Honeypot anti-spam field */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  height: 1px !important;
  width: 1px !important;
  opacity: 0 !important;
}

/* Event links */
.events-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.event-link {
  color: #93c5fd;
  text-decoration: underline;
}

/* Home hub buttons */
.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* PayPal Smart Buttons layout (Events section) */
.paypal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 18px;
}

.paypal-label {
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 8px;
}

.paypal-mount {
  min-height: 40px;
}

/* Team section */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 36px 24px;
  margin-top: 18px;
}

.team-card .role {
  color: var(--heading);
  margin: 6px 0 0 0;
  font-size: 0.95rem;
}

.team-card .bio {
  color: var(--text);
  margin: 10px 0 0 0;
  line-height: 1.5;
  font-size: 0.95rem;
}

@media (max-width: 700px) {
  .paypal-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    gap: 8px;
  }
  .nav-links a {
    padding: 8px 10px;
  }
}

@media (max-width: 600px) {
  .card {
    padding: 28px;
  }
}


/* Keep landing section full-height */
/* #landing.section {
  min-height: calc(100vh - var(--nav-h));
} */


/* ---------------- Riot-style Team Tiles ---------------- */

.team-grid.tiles{
  display:grid;
  /* Responsive, fluid tiles that naturally shrink and reflow like the reference */
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(14px, 2vw, 22px);
  margin-top: 22px;
}


 /* Team tiles: a bit more horizontal breathing room */
.team-grid.tiles{
  column-gap: clamp(20px, 3vw, 34px);
}

/* Tighten the minimum tile size on small screens so they shrink before stacking */
@media (max-width: 900px){
  .team-grid.tiles{ grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); row-gap: 34px; }

  /* Prevent photos from scaling up as the window widens in 2-up layouts */
  .team-tile{
    width: 100%;
    max-width: 360px;
    justify-self: center;
  }
  .team-photo{
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
  }
}
@media (max-width: 520px){
  .brand-logo{ height: 30px; }

  .team-grid.tiles{ grid-template-columns: 1fr; row-gap: 34px; }

  /* Keep single-column tiles a consistent size; no scaling/zoom as width changes */
  .team-tile{
    width: 100%;
    max-width: 380px;
    justify-self: center;
  }
  .team-photo{
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
  }
}

.team-tile{
  position: relative;
  z-index: 0;
  background: transparent;
  border: 0;
  padding: 0;
  text-align: left;
  color: inherit;
  cursor: pointer;
  display: block;
  transform: none;
  }

.team-tile:hover{ transform: none; z-index: 5; }
.team-tile:focus-visible{ --lift: -10px; }

.team-photo{
  width: 100%;
  margin: 0 auto;

  position: relative;
  border-radius: 0;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.45);
  background: rgba(15,18,27,0.92);
  aspect-ratio: 4 / 5;
}

.team-overlay{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  pointer-events: none;
}

.team-overlay-name{
  color: var(--text);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  line-height: 1.05;
  text-shadow: 0 10px 24px rgba(0,0,0,0.55);
}

.team-photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
  filter: grayscale(1) contrast(1.04) brightness(1.02);
  transform: none;
  }

.team-name{
  margin-top: 12px;
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: 0.2px;
  opacity: 0.92;
}

.team-tile:hover .team-photo img,
.team-tile:focus-visible .team-photo img{
  filter: grayscale(0) contrast(1.05) brightness(1.03);
  transform: none;
}

.team-tile:focus-visible{
  /* Neutral focus ring (replaces light-blue glow) */
  outline: 2px solid rgba(255,255,255,0.22);
  outline-offset: 6px;
  border-radius: 14px;
}

/* ---------------- Team Panel ---------------- */

.no-scroll{
  overflow: hidden;
}

.team-panel{
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.team-panel.hidden{
  display: none;
}

.team-panel-backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
}

.team-panel-shell{
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.team-panel-rail{
  /* Bottom bar like the reference (full-width, docked) */
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  height: calc(var(--team-rail-h) + env(safe-area-inset-bottom));
  background: rgba(0,0,0,0.92);
  box-shadow: 0 -18px 50px rgba(0,0,0,0.35);

  /* Buttons */
  display: flex;
  justify-content: center;
  align-items: center;

  /* Shift buttons UP within the rail */
  padding: 0 clamp(16px, 20vw, 260px) calc(env(safe-area-inset-bottom) + 8px);
  gap: 14px;
}

/* Keep button positions stable (even when hidden) */
/* Rail button vertical nudge (move buttons UP within the bottom rail) */
.team-panel-rail .rail-btn{ transform: none; }

.rail-btn{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.45);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
}


/* hover removed: non-profile */
.rail-btn:hover{ }


.rail-btn.is-gone{
  visibility: hidden;
  pointer-events: none;
}

.team-panel-content{
  /* Fallback then dynamic viewport to avoid top cropping on mobile */
  height: calc(100vh - var(--team-rail-h));
  height: calc(100dvh - var(--team-rail-h));
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(360px, 520px) 1fr;
  background: #0F121B;
  color: var(--text);
}

.team-panel-left{
  /* Left column is the scroll container in side-by-side layout */
  /* More top space so the name isn't jammed against the top */
  padding: 124px 48px calc(var(--team-rail-h) + 96px + env(safe-area-inset-bottom)) 48px;
  overflow-y: auto;
  overflow-x: hidden;
  /* Keep scroll working inside flex layouts */
  min-height: 0;
  -webkit-overflow-scrolling: touch;
  height: 100%;
}

.team-panel-name{
  font-size: clamp(44px, 5vw, 72px);
  line-height: 1.02;
  margin: 0 0 16px 0;
  letter-spacing: -0.02em;
}

.team-panel-links{
  display:flex;
  gap: 18px;
  margin-bottom: 40px;
  align-items: center;
}

.team-panel-link{
  color: var(--text);
  text-decoration: none;
  font-weight: 650;
  border-bottom: 1px solid rgba(11,18,32,0.25);
  padding-bottom: 2px;
}

.team-panel-link:hover{
  border-bottom-color: rgba(117,139,213,0.75);
}

.team-panel-section{
  margin-top: 26px;
  max-width: 520px;
}

.team-panel-label{
  font-weight: 850;
  margin-bottom: 10px;
  color: var(--heading);
}

.team-panel-role{
  font-size: 1.05rem;
  opacity: 0.85;
}

.team-panel-bio{
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.88);
}

.team-panel-right{
  position: relative;
  overflow: hidden;
  background: #0B1020;
}

.team-panel-photo{
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Prefer showing the top of portraits (avoid cutting off the head) */
  object-position: center top;
  display:block;
}

@media (max-width: 980px){
  /* Mobile: image takes the viewport, then you scroll down for the content.
     Bottom rail stays fixed, so we pad the scroll area to avoid overlap. */
  .team-panel-content{
    display: flex;
    flex-direction: column;
    /* Use dynamic viewport units on mobile (prevents top crop when browser UI changes) */
    height: calc(100dvh - var(--team-rail-h));
    overflow-y: auto;
    overflow-x: hidden;
    /* Extra padding so the fixed rail never blocks the last lines */
    padding-bottom: calc(var(--team-rail-h) + 6vh + env(safe-area-inset-bottom));
}

  .team-panel-right{
    order: -1; /* image first */
    display: block;
    flex: 0 0 auto;
    height: calc(100dvh - var(--team-rail-h)); /* full page image above the rail */
  }

  .team-panel-left{
    order: 0;
    overflow: visible;
    /* More top space in stacked mode as well */
    padding: 68px 22px 36px 22px;
  }
}


.rail-btn.is-gone{
  visibility: hidden;
  pointer-events: none;
}


@media (max-width: 860px){
  /* Keep padding consistent in stacked mode regardless of viewport size */
  .team-panel-left{
    padding: 40px 18px 36px 18px;
  }
}


@media (max-width: 520px){
  :root{
    --team-rail-h: 40px;
  }

  .rail-btn{
    width: 40px;
    height: 40px;
  }
}

.team-tile:hover .team-photo,
.team-tile:focus-visible .team-photo{
  /* Darker hover/focus background (no colored "glow") */
  background: rgba(10,12,18,0.96);
  border-color: rgba(0,0,0,0.65);
  box-shadow: 0 18px 36px rgba(0,0,0,0.45);
}

.feature{
  }
.card{
  }
.product-card{
  }
.team-grid.advisory-grid{grid-template-columns:1fr;}
@media (min-width:720px){.team-grid.advisory-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
/* Keep 2x2 until the 4-up layout comfortably fits */
@media (min-width:1280px){.team-grid.advisory-grid{grid-template-columns:repeat(4,minmax(0,1fr));}}


/* Team members grid: force 1 -> 2 -> 4 (no 3/auto-fit) */
.team-grid.members-grid{grid-template-columns:1fr;}
@media (min-width:720px){.team-grid.members-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
/* Keep 2x2 until the 4-up layout comfortably fits */
@media (min-width:1280px){.team-grid.members-grid{grid-template-columns:repeat(4,minmax(0,1fr));}}


/* Hardening: keep top nav pinned */
.top-nav{position:fixed !important; top:0 !important; left:0 !important; right:0 !important; z-index:9999 !important;}



/* --- Team tiles: stable sizing across 1 / 2 / 4 columns (prevents overlap) --- */
.team-grid.members-grid{grid-template-columns:1fr;}
@media (min-width:720px){.team-grid.members-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media (min-width:1280px){.team-grid.members-grid{grid-template-columns:repeat(4,minmax(0,1fr));}}

.team-grid.members-grid,
.team-grid.advisory-grid{
  row-gap: clamp(18px, 2.2vw, 26px);
  column-gap: clamp(14px, 2vw, 22px);
  align-items: start;
}

.team-tile{
  width: 100%;
  max-width: none;
  transform: none; /* never offset tiles (offsets cause visual overlap in grid) */
}

.team-photo{
  width: 100%;
  max-width: none;
  aspect-ratio: 4 / 5 !important; /* keep tall rectangles in all layouts */
  height: auto !important;
  max-height: 440px; /* cap tile height */
}

@media (max-width: 900px){
  .team-photo{ max-height: 360px; }
}
@media (max-width: 639px){
  .team-photo{ max-height: 340px; }
}


/* Spacing after Advisory Board before Contact */
.band-team{
  padding-bottom: 110px;
}
.advisory-wrap{
  margin-bottom: 40px;
}
@media (max-width:720px){
  .band-team{ padding-bottom: 90px; }
  .advisory-wrap{ margin-bottom: 28px; }
}

/* ===== Team Section Overrides (clean) =====
   Keeps v17 functionality:
   - Responsive grid: 1 column (sm) -> 2 columns (md) -> 4 columns (lg)
   - Fluid card widths, centered layout, no overlap, no 3–1 split
   - Removes focus rings / glow artifacts
   - Fixes blue corners from transparent PNGs by setting img background
*/

/* Defensive: remove focus ring + any accidental glow */
.team-tile,
.team-tile:focus,
.team-tile:focus-visible,
.team-card,
.team-card:focus,
.team-card:focus-visible,
.team-photo,
.team-photo img {
  outline: none !important;
  box-shadow: none !important;
}

/* iOS/Chrome tap highlight */
.team-tile {
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  appearance: none;
}

/* If headshots have transparent corners, fill them with dark pixels */
.team-photo img {
  background: #0a0a0a !important;
}

/* Normal grid behavior (prevents odd/even offset rules from pulling items) */
.team-tile,
.team-card {
  width: 100% !important;
  justify-self: stretch !important;
  align-self: stretch !important;
}

/* Responsive grid */
.team-grid {
  display: grid !important;
  width: 100% !important;
  max-width: 1200px;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 16px;
  padding-right: 16px;
  column-gap: 14px !important;
  row-gap: 24px !important;
}

/* Small: single column */
@media (max-width: 639px) {
  .team-grid { grid-template-columns: 1fr !important; }
}

/* Medium: 2 columns */
@media (min-width: 640px) and (max-width: 1023px) {
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* Large: 4 columns */
@media (min-width: 1024px) {
  .team-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}

/* Prevent inner media overflow */
.team-photo,
.team-card,
.team-tile {
  overflow: hidden;
}

/* ===== Hero background video ===== */
.hero{
  position: relative;
  overflow: hidden;
}

.hero-bg-video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28; /* tune */
  pointer-events: none;
  transform: scale(1.03); /* avoid edge gaps */
}

.hero-inner{
  position: relative;
  z-index: 1;
}

/* ===== Team hover: circuit traces behind cards =====
   Pure CSS: inline SVG background, no extra assets required.
*/
.team-card, .team-tile{
  position: relative;
  overflow: visible; /* allow traces to extend beyond card */
  z-index: 0;
}

/* Keep photo corners clipped */
.team-photo{
  overflow: hidden;
}

/* Traces layer */
.team-card::after,
.team-tile::after{ content:none !important; display:none !important; }
.team-card:hover::after,
.team-tile:hover::after{
  opacity:1;
  transform: none;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .team-card::after, .team-tile::after{ content:none !important; display:none !important; }
}

/* ===== Hero background video (v19) ===== */
.hero{
  position: relative;
  overflow: hidden;
  min-height: 100vh; /* ensures enough area to see the video */
}
.hero-bg-video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35; /* increase if you want it more visible */
  pointer-events: none;
  transform: scale(1.03);
}
.hero-inner{
  position: relative;
  z-index: 1;
}

/* ===== Team hover: circuit traces behind cards (v19) ===== */
.team-tile{
  position: relative;
  overflow: visible; /* allow traces to extend */
  z-index: 0;
}

/* Keep photo corners clipped */
.team-photo{
  overflow: hidden;
}

/* Traces layer */
.team-tile::after{ content:none !important; display:none !important; }
.team-tile:hover::after{
  opacity:1;
  transform: none;
}

@media (prefers-reduced-motion: reduce){
  .team-tile::after{ content:none !important; display:none !important; }
}

/* ===== v20 Fix: remove hero placeholder overlay + ensure video sits on top of background ===== */
.hero-bg-video{ z-index: 0; }
.hero::before{ 
  background-image: none !important;
  opacity: 0 !important;
}
.hero-inner{ z-index: 2; }

/* ===== v21 Hero layout fixes ===== */
#landing.band-hero { padding: 0 !important; }
.hero { width: 100% !important; max-width: none !important; }
.hero-inner { width: min(1100px, 100%); margin: 0 auto; }

/* ===== v22 Hero cleanup: remove side shading + header divider line ===== */

/* Kill the Prescott-logo hero overlay completely */
.hero::before{
  background-image: none !important;
  opacity: 0 !important;
  content: none !important;
}

/* Make the hero video the actual background (no underlying gradient showing through) */
.hero-bg-video{
  opacity: 1 !important;
}

/* Optional: add a consistent dark overlay so text stays readable (no vertical bands) */
.hero::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,0.40), rgba(0,0,0,0.55));
  pointer-events:none;
  z-index: 1;
}
.hero-inner{ z-index: 2; }

/* Remove any band gradient influence behind hero (prevents edge tints if video has transparency) */
.band-hero{
  background: #000814 !important;
}

/* Remove the gray divider line under the header */
.top-nav{
  border-bottom: none !important;
  box-shadow: none !important;
}

/* ===== v23 Cleanup: remove landing side gradients + kill any header divider artifact ===== */

/* Remove landing/background gradients entirely so the video is the only hero background */
#landing{
  background: none !important;
  background-image: none !important;
}

/* Some browsers still render a 1px border due to subpixel / background blending—force it off */
.top-nav{
  border-bottom: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  background-image: none !important;
}
.top-nav::before,
.top-nav::after{
  content: none !important;
  display: none !important;
}

/* ===== v24 Hero text reposition ===== */

.hero{
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding-top: var(--nav-h) !important;
}

.hero-inner{
  position: relative;
  left: 33vw;
  transform: translateX(-50%);
  max-width: min(900px, calc(100vw - 32px));
}

/* ===== v24 Team hover animation visibility fix ===== */

#team,
.team-grid{
  overflow: visible !important;
}

.team-tile{
  position: relative;
  z-index: 2;
}

.team-tile::after{ content:none !important; display:none !important; }
.team-tile:hover::after{
  opacity: 1 !important;
  transform: scale(1);
}



/* Optional: add Qurova font files in /assets/fonts and uncomment:
@font-face{
  font-family:"Qurova";
  src:url("assets/fonts/Qurova-Medium.woff2") format("woff2"),
      url("assets/fonts/Qurova-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
*/

/* Headings */
h1,h2,h3{
  font-family: var(--font-heading);
  font-weight: 500;
}

/* Accents */
.hero-accent,
.section-eyebrow,
.kicker,
.accent,
.nav-links a{
  font-family: var(--font-accent);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.24em;
}

/* Subheadings */
h4,h5,.subheading,.card-subtitle{
  font-family: var(--font-subheading);
  font-weight: 600;
  font-style: italic;
}

/* Body */
body, p, .copy{
  font-family: var(--font-body);
  font-weight: 400;
}

/* ===== Hide main nav during bio ===== */
/* Cover both body/html scroll-lock + an explicit flag class */
html.no-scroll .top-nav,
body.no-scroll .top-nav,
.no-scroll .top-nav,
.top-nav.is-hidden-in-bio{
  display:none !important;
}

/* ===== v27 Team overlay always visible (name + title) ===== */
.team-overlay{
  opacity: 1 !important;
  transform: none !important;
  pointer-events: none;
}

.team-overlay-row{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
}

.team-overlay-name{
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.05;
}

.team-overlay-role{
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.85em;
  opacity: 0.82;
  white-space: nowrap;
}

/* ===== v28 Typography System (Fonts Wired) =====
Headings: Qurova Medium
Accents: Barlow Regular CAPS
Subheadings: Barlow SemiBold Italic
Paragraphs: Barlow Regular
*/

@font-face{
  font-family: "Qurova";
  src: url("assets/fonts/Qurova-Regular.woff2") format("woff2"),
       url("assets/fonts/Qurova-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: "Qurova";
  src: url("assets/fonts/Qurova-Medium.woff2") format("woff2"),
       url("assets/fonts/Qurova-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: "Qurova";
  src: url("assets/fonts/Qurova-SemiBold.woff2") format("woff2"),
       url("assets/fonts/Qurova-SemiBold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: "Qurova";
  src: url("assets/fonts/Qurova-Bold.woff2") format("woff2"),
       url("assets/fonts/Qurova-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root{
  --font-heading: "Qurova", "Barlow", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-accent: "Barlow", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-subheading: "Barlow", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Headings (Qurova Medium) */
h1,h2,h3,.hero-title{
  font-family: var(--font-heading) !important;
  font-weight: 500 !important;
}

/* Accents (Barlow Regular CAPS) */
.hero-accent,
.section-eyebrow,
.kicker,
.accent,
.nav-links a{
  font-family: var(--font-accent) !important;
  font-weight: 400 !important;
  text-transform: uppercase;
  letter-spacing: 0.24em;
}

/* Subheadings (Barlow SemiBold Italic) */
h4,h5,.subheading,.card-subtitle{
  font-family: var(--font-subheading) !important;
  font-weight: 600 !important;
  font-style: italic !important;
}

/* Paragraphs (Barlow Regular) */
body, p, .copy{
  font-family: var(--font-body) !important;
  font-weight: 400 !important;
}


/* ===== v29 Tweaks ===== */
.rail-btn{
  background: transparent !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
}
.rail-btn:hover{
  background: rgba(255,255,255,0.08);
}

form > button[type="submit"]{
  width: fit-content;
  justify-self: start;
  padding: 12px 18px;
  border-radius: 14px;
}

#contact-form > button[type="submit"]{
  border-radius: 14px;
}


/* ===== v30 Layout & UI fixes ===== */

/* HERO: keep text from sliding off-screen on small widths */
@media (max-width: 980px){
  .hero-inner{
    left: auto !important;
    transform: none !important;
    margin-left: clamp(16px, 6vw, 220px) !important;
    max-width: min(900px, calc(100vw - 32px)) !important;
  }
}
@media (max-width: 520px){
  .hero-inner{
    margin-left: 16px !important;
  }
}

/* BIO rail: fully opaque (no transparency) */
.rail{
  background: #0b1220 !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  backdrop-filter: none !important;
}
.rail-btn{
  background: #0f1a2e !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
}
.rail-btn:hover{
  background: #122042 !important;
}

/* Contact: center the Send Message button again */
form > button[type="submit"]{
  width: fit-content !important;
  justify-self: center !important;
  margin: 0 auto !important;
}

/* Products: remove Panoptix "box" and enlarge logo */
.product-card{
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 18px 0 !important;
}
.product-logo{
  width: min(320px, 70vw) !important;
  max-width: 320px !important;
  margin-bottom: 14px !important;
}

/* Signup/Registration inputs: increase contrast */
input, textarea, select{
  background: rgba(15, 23, 42, 0.58) !important;
  border: 1px solid rgba(148, 163, 184, 0.28) !important;
}
input::placeholder, textarea::placeholder{
  color: rgba(203, 213, 225, 0.72) !important;
}

/* ===== v31 Bio rail buttons cleanup + hero text clamp + mobile nav ===== */

/* Bio rail: remove the lighter blue fill + remove extra padding */
.rail{
  background: #0b1220 !important;
}
.rail-btn{
  background: transparent !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  padding: 0 !important;
  width: 64px !important;
  height: 64px !important;
  border-radius: 16px !important;
}
.rail-btn svg{ width: 28px; height: 28px; }
.rail-btn:hover{
  background: rgba(75,155,255,0.08) !important;
}

/* HERO: keep text on-screen and move smoothly with viewport */
.hero-inner{
  max-width: min(920px, calc(100vw - 32px)) !important;
}
@media (max-width: 980px){
  .hero-inner{
    left: auto !important;
    transform: none !important;
    margin-left: clamp(16px, 6vw, 240px) !important;
  }
}
@media (max-width: 520px){
  .hero-inner{
    margin-left: 16px !important;
  }
  .hero-title{
    font-size: clamp(44px, 10vw, 64px) !important;
    line-height: 0.98 !important;
  }
}

/* ===== Mobile nav (hamburger) ===== */
.nav-toggle{
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(10,16,28,0.7);
  color: #fff;
}

.nav-toggle .bar{
  display:block;
  width: 18px;
  height: 2px;
  background: currentColor;
  margin: 4px auto;
  border-radius: 2px;
}

@media (max-width: 639px){
  .nav-toggle{ display: inline-flex; align-items:center; justify-content:center; }
  .nav-links{ display: none !important; }
  .top-nav.nav-open .nav-links{
    display: flex !important;
    position: absolute;
    top: calc(100% + 10px);
    right: 18px;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    border-radius: 14px;
    background: rgba(11,18,32,0.96);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 18px 50px rgba(0,0,0,0.45);
    z-index: 9999;
  }
  .top-nav.nav-open .nav-links a{
    padding: 10px 12px;
    border-radius: 10px;
  }
  .top-nav.nav-open .nav-links a:hover{
    background: rgba(75,155,255,0.10);
  }
}

/* ===== v32 Fixes ===== */

/* Bio rail buttons: no hover glow/fill, no outline */
.rail-btn{
  background: transparent !important;
  box-shadow: none !important;
}
.rail-btn:hover{
  background: transparent !important;
  box-shadow: none !important;
}
.rail-btn:focus,
.rail-btn:focus-visible{
  outline: none !important;
  box-shadow: none !important;
}

/* Make bio rail taller */
:root{
  --team-rail-h: 56px;
}
.team-panel-rail{
  min-height: var(--team-rail-h) !important;
}
.rail{
  height: var(--team-rail-h) !important;
}

/* HERO: smooth clamp + never off-screen */
.hero-inner{
  position: relative !important;
  left: 0 !important;
  transform: none !important;
  margin-left: clamp(16px, 10vw, 320px) !important;
  max-width: calc(100vw - 32px) !important;
}
@media (max-width: 520px){
  .hero-inner{ margin-left: 16px !important; }
  .hero-title{
    font-size: clamp(40px, 11vw, 62px) !important;
    line-height: 0.98 !important;
  }
}

/* Mobile nav should only switch when team is in 1-column (<=639px) */
.top-nav{ position: relative; }

@media (max-width: 639px){
  .nav-toggle{ display: inline-flex !important; }
  .nav-links{ display: none !important; }
  .top-nav.nav-open .nav-links{
    display: flex !important;
    position: absolute;
    top: calc(100% + 10px);
    right: 18px;
    left: 18px;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    border-radius: 14px;
    background: rgba(11,18,32,0.98);
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: 0 18px 50px rgba(0,0,0,0.55);
    z-index: 9999;
  }
}

/* Above 639px: force normal nav + hide hamburger */
@media (min-width: 640px){
  .nav-toggle{ display: none !important; }
  .nav-links{ display: flex !important; }
}

/* ===== v33 Bio rail buttons: borderless + no hover glow ===== */
.rail-btn{
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
}
.rail-btn:hover{ background: transparent !important; }
.rail-btn:focus, .rail-btn:focus-visible{
  outline: none !important;
  box-shadow: none !important;
}

/* ===== v34 UI adjustments ===== */

/* Bigger section headers */
.section-title{
  font-size: clamp(34px, 3.8vw, 56px) !important;
  line-height: 1.05;
  margin: 0;
}

/* Center bio rail buttons vertically */
.rail{
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 18px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Hamburger: no background/border, icon is the 3 bars (no extra asset needed) */
.nav-toggle{
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 8px !important;
  color: #fff !important;
}
.nav-toggle:focus,
.nav-toggle:focus-visible{
  outline: none !important;
  box-shadow: none !important;
}
.nav-toggle .bar{
  background: currentColor !important;
}

/* Mobile nav breakpoint should match Team column layout */
@media (max-width: 639px){
  .nav-toggle{ display: inline-flex !important; }
}
@media (min-width: 640px){
  .top-nav.nav-open .nav-links{ display:flex !important; position:static !important; background:transparent !important; border:none !important; box-shadow:none !important; padding:0 !important; }
}
/* Products: simplify layout */
.products-grid.simple-products{
  display:flex !important;
  justify-content:center !important;
  margin-top: 18px !important;
}
.product-card.simple{
  width: auto !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.product-logo.big{
  width: min(520px, 84vw) !important;
  max-width: 520px !important;
}


/* ===== v2 Fix: TEAM TILE TEXT OVERFLOW (name + role) =====
   The role text was set to nowrap and the row used space-between,
   which can push long titles outside the card. This stacks them
   and allows wrapping/clamping to stay inside the tile.
*/
.team-overlay-row{
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 6px;
}

.team-overlay-name,
.team-overlay-role{
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.team-overlay-role{
  white-space: normal;
  opacity: 0.82;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2; /* keep it tidy but never overflow */
  overflow: hidden;
}

/* ===== v2 Fix: Reduce extra bottom spacing (stacked bio only) ===== */
@media (max-width: 860px){
  /* End of text + a small buffer (no giant dead zone) */
  .team-panel-left{
    padding-bottom: calc(var(--team-rail-h, 0px) + 56px + env(safe-area-inset-bottom)) !important;
  }
}

.band-team{
  padding-bottom: 80px;
}


/* ===== Replace Hamburger Bars With SVG ===== */
.hamburger-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}

/* Hide old bar spans if still present */
.hamburger span,
.nav-toggle span {
  display: none !important;
}


/* ===== Hamburger Icon (SVG) ===== */
.hamburger-icon{
  width: 28px;
  height: 28px;
  display: block;
  object-fit: contain;
}

/* Hide old bar elements if present */
.nav-toggle .bar,
.nav-toggle span{
  display: none !important;
}


/* ===== v40 Fixes ===== */

/* (A) Team bio bottom rail: fully opaque (no transparency / glass) */
.team-panel-rail{
  background: #070A12 !important; /* solid */
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  opacity: 1 !important;
}

/* (B) Remove inner scrolling on the bio column when side-by-side.
   Move scrolling to the whole panel content instead (no tiny scrollbar in bio). */
.team-panel-content{
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

/* Bio column should NOT be its own scroll container */
.team-panel-left{
  overflow: visible !important;
  height: auto !important;
  min-height: unset !important;
}

/* Respect reduced motion (keeps things calm) */
@media (prefers-reduced-motion: reduce){
  .team-panel-content{
    scroll-behavior: auto !important;
  }
}


/* ===== Contact section: collapsed button + footer ===== */
.band-contact{ padding-bottom: 40px; }

.contact-collapsed-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding: 18px 0 10px 0;
}

.contact-toggle{
  appearance:none;
  background:transparent;
  border:0;
  padding:0;
  color:#ffffff;
  font:inherit;
  font-weight:600;
  letter-spacing:0.01em;
  cursor:pointer;
  /* Always underlined; no hover animation */
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* No hover effects (other than cursor) */
.contact-toggle:hover{ opacity: 1; }

.contact-toggle:focus-visible{
  outline:2px solid rgba(255,255,255,0.6);
  outline-offset:6px;
  border-radius:10px;
}

.contact-footer{
  color: rgba(255,255,255,0.7);
  font-size: 0.92rem;
  line-height: 1.2;
  white-space: nowrap;
}

.contact-reveal{ margin-top: 18px; }
.contact-reveal[hidden]{ display:none !important; }

@media (max-width: 720px){
  .contact-collapsed-bar{ flex-direction:column; align-items:flex-start; }
  .contact-footer{ white-space: normal; }
}


/* ===== Registration: collapsed button -> reveal form ===== */
.reg-collapsed{
  display:flex;
  flex-direction: column;
  gap: 14px;
}

.reg-toggle{
  appearance:none;
  background: transparent;
  border: 0;
  padding: 0;
  color: #ffffff;
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-align: left;
}

.reg-toggle:hover{ opacity: 0.85; }

.reg-toggle:focus-visible{
  outline: 2px solid rgba(255,255,255,0.6);
  outline-offset: 6px;
  border-radius: 10px;
}

.reg-reveal[hidden]{ display:none !important; }


/* ===== Registration panel tweaks ===== */
.reg-panel{
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}


/* ===== Remove blue background from Registration + Contact buttons ===== */
.contact-toggle,
.reg-toggle{
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* Hover underline effect */
.contact-toggle,
.reg-toggle{
  position: relative;
}

.contact-toggle::after,
.reg-toggle::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: currentColor;
  transition: width 180ms ease-out;
}

.contact-toggle:hover::after,
.reg-toggle:hover::after{
  width: 100%;
}

/* Contact button: disable animated underline entirely (always underlined via text-decoration) */
.contact-toggle::after{ content: none !important; display: none !important; }
.contact-toggle:hover::after{ width: 0 !important; }

/* Registration header text color (match conference blue) */
.reg-toggle{
  color: #2F6BFF !important; /* adjust if your exact blue differs */
  font-weight: 600;
}

/* Remove any blue strip backgrounds from collapsed registration container */
.reg-collapsed,
.contact-collapsed-bar{
  background: transparent !important;
}


/* ===== Fix5: Contact/Registration buttons styling ===== */
.contact-toggle,
.reg-toggle{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;

  /* make underline match text width (not full row) */
  display: inline-block !important;
  width: fit-content !important;
}

/* exact same blue as section headings ("Northern Arizona Cybersecurity Conference") */
.reg-toggle{
  color: var(--heading) !important; /* --heading is #758BD5 */
}

/* underline animation stops at word end */
.contact-toggle::after,
.reg-toggle::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: currentColor;
  transition: width 180ms ease-out;
}

.contact-toggle:hover::after,
.reg-toggle:hover::after{
  width: 100%;
}


/* ===== Fix6: tighten spacing above contact section ===== */
.band-contact{
  padding-top: 36px !important;   /* reduce top whitespace */
  margin-top: 0 !important;
}


/* ===== Fix6: make team intro text larger under 'Who we are' ===== */
.band-team .subtitle,
.band-team p.subtitle,
.band-team .section-subtitle,
.band-team .lead,
.band-team .copy{
  font-size: 1.15rem !important;
  line-height: 1.6 !important;
  max-width: 70ch;
}
@media (max-width: 720px){
  .band-team .subtitle,
  .band-team p.subtitle,
  .band-team .section-subtitle,
  .band-team .lead,
  .band-team .copy{
    font-size: 1.05rem !important;
  }
}


/* ===== Fix7: reduce top spacing for Contact section only ===== */
#contact.section{
  padding-top: 12px !important;
}

/* ===== Fix7: make 'Team' title under WHO WE ARE bigger ===== */
.band-team .section-title{
  font-size: clamp(44px, 5.2vw, 72px) !important;
  line-height: 1.02 !important;
}


/* ===== PanoptiX copy under logo (Products section) ===== */
.product-card.simple{
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

.product-card.simple{
  background: var(--bg-products) !important;
  border: 0 !important;
}

.panoptix-copy{
  max-width: 820px;
  width: min(820px, 92vw);
  margin-top: 22px;
  text-align: center;
}

.panoptix-title{
  margin: 0 0 8px 0;
  font-size: clamp(26px, 3.2vw, 34px);
  letter-spacing: 0.01em;
}

.panoptix-subtitle{
  margin: 0 0 16px 0;
  color: var(--heading);
  font-size: 1.15rem;
  font-weight: 500;
}

.panoptix-body{
  margin: 0 0 14px 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Slightly tighter on small screens */
@media (max-width: 720px){
  .panoptix-copy{ margin-top: 18px; }
  .panoptix-subtitle{ font-size: 1.05rem; }
  .panoptix-body{ font-size: 1.0rem; }
}




/* ===== PanoptiX Full Page Layout ===== */
.panoptix-page{
  position: fixed;
  inset: 0;
  background: #070A12;
  z-index: 9999;
  display: none;
  overflow: auto;
  padding: 60px 24px;
}

.panoptix-page.open{ display:block; }

.panoptix-page-inner{
  max-width: 900px;
  margin: 0 auto;
}

.panoptix-back{
  background: transparent;
  border: 0;
  color: var(--heading);
  cursor: pointer;
  font: inherit;
  margin-bottom: 20px;
}

.panoptix-page-title{
  font-size: clamp(40px,5vw,60px);
  margin-bottom: 8px;
}

.panoptix-page-subtitle{
  color: var(--heading);
  margin-bottom: 30px;
}

.panoptix-page-cta{
  margin-top: 40px;
}

.panoptix-learnmore{
  margin-top: 10px;
  background: transparent;
  border: 0;
  color: var(--heading);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  position: relative;
  display: inline-block;
  width: fit-content;
}
.panoptix-learnmore::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-4px;
  width:0%;
  height:2px;
  background: currentColor;
  transition: width 180ms ease-out;
}
.panoptix-learnmore:hover::after{ width:100%; }


/* ===== PanoptiX full page panel ===== */
body.modal-open{ overflow: hidden; }

.panoptix-panel{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}
.panoptix-panel.open{ display: block; }

.panoptix-panel-backdrop{
  position: absolute;
  inset: 0;
  background: transparent;
}

.panoptix-panel-shell{
  position: absolute;
  inset: 0;
  background: #0B1327;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.panoptix-panel-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: #000000;
}

.panoptix-panel-back{
  background: transparent;
  border: 0;
  color: rgba(255,255,255,0.85);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 10px;
}
.panoptix-panel-back:hover{ background: rgba(255,255,255,0.06); color: #fff; }

.panoptix-panel-x{
  background: transparent;
  border: 0;
  color: rgba(255,255,255,0.85);
  font-size: 18px;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 10px;
}
.panoptix-panel-x:hover{ background: rgba(255,255,255,0.06); color: #fff; }

.panoptix-panel-content{
  padding: 34px 22px 40px 22px;
  overflow: auto;
}

.panoptix-panel-title{
  margin: 0 0 6px 0;
  font-size: clamp(32px, 3.6vw, 52px);
}
.panoptix-panel-subtitle{
  margin: 0 0 18px 0;
  color: var(--heading);
  font-size: 1.12rem;
  font-weight: 500;
}

.panoptix-panel-body{
  max-width: 920px;
}

.panoptix-divider{
  margin: 34px 0;
  border: none;
  }

.panoptix-section{
  margin: 0 0 14px 0;
  color: var(--heading);
  font-size: 1.25rem;
}

.panoptix-list p{
  margin: 0 0 18px 0;
  color: var(--muted);
  line-height: 1.7;
}

.panoptix-panel-body p{
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 16px 0;
}

.panoptix-columns{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  margin: 18px 0;
}

.panoptix-columns ul,
.panoptix-bullets{
  margin: 12px 0 0 18px;
  color: var(--muted);
  line-height: 1.7;
}

.panoptix-emphasis{
  font-weight: 600;
}

.panoptix-cta{
  text-align: center;
  margin-top: 10px;
}
.panoptix-cta h3{
  margin: 0 0 6px 0;
}

/* Fix: Learn more button should never show a filled hover background */
.panoptix-learnmore,
.panoptix-learnmore:hover,
.panoptix-learnmore:focus,
.panoptix-learnmore:active{
  background: transparent !important;
  box-shadow: none !important;
}

.panoptix-panel-content{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.panoptix-panel-hero,
.panoptix-panel-body{
  width: min(980px, 92vw);
  margin-left: auto;
  margin-right: auto;
}


/* ===== PanoptiX panel background (Learn more page) ===== */
.panoptix-panel-backdrop{
  background: rgba(0,0,0,0.55);
}

.panoptix-panel-shell{
  /* deep navy -> blue gradient to match palette */
  background: #0B1327;
}

.panoptix-panel-top{
  background: #000000;
}



/* ===== Team cards squared corners ===== */
.team-tile{
  border-radius: 0 !important;
}
.team-tile::after{ content:none !important; display:none !important; }
/* ===== Team tiles: uniform height + squared corners ===== */
.team-tile{
  height: 280px;
  border-radius: 0 !important;
}
.team-photo,
.team-photo img{
  height: 100%;
}
.team-photo img{
  width: 100%;
  object-fit: cover;
  display:block;
}
.team-tile::after{ content:none !important; display:none !important; }
/* ===== Events: add logo on the right of conference block ===== */
.event-split{
  display:flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.event-left{ min-width: 0; }
.event-right{
  flex: 0 0 auto;
  display:flex;
  align-items:flex-start;
  justify-content:flex-end;
}
.event-logo{
  width: 180px;
  max-width: 28vw;
  height: auto;
  opacity: 0.9;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,0.35));
}
@media (max-width: 740px){
  .event-split{ flex-direction: column; }
  .event-right{ justify-content:flex-start; }
  .event-logo{ width: 160px; max-width: 60vw; }
}

.team-photo img{ border-radius: 0 !important; }

.team-tile:focus,
.team-tile:focus-visible{
  outline: none !important;
  box-shadow: none !important;
}
.team-tile:hover .team-photo{
  box-shadow: none !important;
}

/* Keep team tiles uniform (no stagger) */
.team-grid{ align-items: stretch; }
.team-tile{ width: 100%; }

.panoptix-panel-back{ display:none !important; }

/* ===== Contact Us button: always underlined, no animation ===== */
.contact-toggle,
.contact-link,
#contact a{
  text-decoration: underline !important;
  transition: none !important;
}
.contact-toggle:hover,
.contact-link:hover,
#contact a:hover{
  text-decoration: underline !important;
  opacity: 1 !important;
  transform: none !important;
}


/* ===== Contact Us bottom CTA: always underlined, no animation ===== */
.contact-footer a,
.contact-footer .contact-cta,
a.contact-cta,
#contact .contact-cta,
#contact a[href="#contact"],
#contact a{
  text-decoration: underline !important;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
  transition: none !important;
  transform: none !important;
  animation: none !important;
}
.contact-footer a:hover,
.contact-footer .contact-cta:hover,
a.contact-cta:hover{
  opacity: 0.9;
}

/* ===== Fix: Contact button should NOT animate / double-underline ===== */
.contact-toggle{
  /* Always underlined, no hover change */
  text-decoration: underline !important;
  opacity: 1 !important;
}
.contact-toggle::after{
  content: none !important;
  display: none !important;
}
.contact-toggle:hover::after{
  width: 0 !important;
}



/* Enforce tall team tiles in ALL responsive layouts (no squares / no auto aspect) */
.team-grid.tiles .team-photo,
.team-grid.members-grid .team-photo,
.team-grid.advisory-grid .team-photo,
.team-photo{
  aspect-ratio: 4 / 5 !important;
  height: auto !important;
}

.team-grid.tiles .team-photo{ max-height: 520px; }
.team-grid.tiles .team-photo img{ object-position: center 25%; }


.team-panel-rail .rail-btn{transform: none;}

/* ===== Team Tiles: final sizing (prevents overlap in 2-up + column) ===== */
.team-grid.tiles.members-grid{
  align-items: start;
}

/* Never allow the older mobile overrides to break aspect ratio */
.team-photo{
  aspect-ratio: 4 / 5 !important;
  height: auto !important;
  overflow: hidden;
}

/* 4-up / large screens */
@media (min-width: 1280px){
  .team-photo{ max-height: 360px !important; }
}

/* 2-up (this is where overlap was happening) */
@media (min-width: 720px) and (max-width: 1279px){
  .team-photo{ max-height: 300px !important; }
}

/* 1 column */
@media (max-width: 719px){
  .team-photo{ max-height: 340px !important; }
}

/* Ensure tiles never visually overlap due to transforms */
.team-tile{ transform: none !important; }
.team-tile:hover{ transform: none !important; }



/* === Team tiles sizing + spacing fix (Jan 2026) ===
   Goals:
   1) Make the clickable tile (button) match the photo box height (no extra stretched space).
   2) Prevent overlap in 2-up and 1-up layouts by increasing vertical gap and disabling stretch.
   3) Keep the existing 4-up (wide) behavior intact.
*/
.team-grid{
  align-items: start !important;
}

.team-tile{
  align-self: start !important;
  justify-self: stretch !important;
  height: auto !important;
  padding: 0 !important;      /* ensure button never adds extra height */
  border: 0 !important;
  background: transparent !important;
  line-height: 0 !important;  /* removes any default button line-box height */
}

/* Restore readable line-height inside overlay text (button line-height=0 would otherwise affect it) */
.team-tile .team-overlay,
.team-tile .team-overlay *{
  line-height: normal;
}

/* Ensure the photo box defines the tile’s height */
.team-photo{
  display: block;
}

/* More vertical breathing room in 2-up and 1-up layouts */
@media (max-width: 1023px){
  .team-grid{
    row-gap: clamp(28px, 4vw, 44px) !important;
  }
}

/* Slightly more in the narrowest stacked layout */
@media (max-width: 639px){
  .team-grid{
    row-gap: clamp(34px, 6vw, 56px) !important;
  }
}


/* ===== Products->Events seam fix + disable PanoptiX Learn More (temporary) ===== */
/* The angled cut-out of .band::before reveals the element's own background.
   Give Events a base fill matching Products so no darker "peek" shows between sections. */
.band-events{
  background: var(--bg-products);
}

/* Temporarily disable the PanoptiX "Learn more" button */
.panoptix-learnmore[disabled]{
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}



/* === Final Tweaks (Jan 2026) === */
/* Remove border/line between Products and Events */
#events { border-top: none !important; }
#products { border-bottom: none !important; }

/* Temporarily disable specific product image */
img[alt*='Northern Arizona Cybersecurity Conference'] {
  display: none !important;
}


/* ===== Products <-> Events seam line removal + disable NACCC right image (temporary) ===== */
/* Remove the thin anti-alias seam between Products and Events by slightly overlapping the Events band background. */
.band-events::before{
  inset: -1px 0 0 0 !important; /* extend 1px upward to cover the seam line */
}

/* (Extra safety) If any 1px outline/shadow exists on the Events band, remove it */
.band-events{
  border-top: none !important;
  box-shadow: none !important;
}

/* Temporarily hide the image/logo on the right of the Northern Arizona Cybersecurity Conference split */
.event-right,
.event-logo{
  display: none !important;
}
