:root {
  --bg-alpha: rgba(0,0,0,0.5);
  --bg-primary: #0a0a0f;
  --bg-secondary: #111118;
  --bg-card: #16161e;
  --bg-header: rgba(10, 10, 15, 0.82);
  --bg-navlink: rgba(10, 10, 15, 0.5); /* semi-transparent dark bg for menu links */
  --text-primary: #e8e8ec;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --accent-cyan: #00e5ff;
  --accent-amber: #ffb347;
  --accent-cyan-dim: rgba(0, 229, 255, 0.15);
  --accent-amber-dim: rgba(255, 179, 71, 0.12);
  --border-color: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(0, 229, 255, 0.25);
  --radius: 8px;
  --radius-lg: 24px; /* 12px; */
  --max-width: 1120px;
  --basePadding: 2em;
  --font-body: 'IBM Plex Sans', 'VG5000', sans-serif;
  --font-heading: 'JetBrains Mono', 'Consolas', 'Monaco', monospace;
  --big-word-font: 'JetBrains Mono', 'Consolas', 'Monaco', monospace;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --header-height: 3rem;
}

*, *:after, *:before {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

.unselectable {
  -moz-user-select: -moz-none;
  -khtml-user-select: none;
  -webkit-user-select: none;
  -o-user-select: none;
  user-select: none;
}

::selection {
  background: var(--accent-cyan);
  color: var(--bg-primary);
}

::-webkit-scrollbar {
  width: 6px;
  background-color: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

::-webkit-scrollbar-track {
  background-color: var(--bg-secondary);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.45em;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.bgWrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: fixed;
  inset: 0;
  z-index: 900;
  color: white;
  overflow: hidden;
  /* background-color: rgba(0, 229, 255, 0.1); */
  opacity: .5; /*  0.1; */

  #bgContent {
    position: absolute;
    top: 0;
    left: 0;
  }

  .word {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    font-family: var(--big-word-font);
    text-transform: uppercase;
    font-size: 220px;
    line-height: 1em;
    font-weight: 100;
    padding: 0px 0.0875em;
    /* one box = one token: never let the text wrap inside the box
       (e.g. "—or" breaks after the em dash, splitting the token in two) */
    white-space: nowrap;
    will-change: transform;
    /* hidden until revealed word-by-word by typing in the search field;
       the transition makes each word fade in (or back out) slowly */
    opacity: 0;
    transition: opacity 1.2s ease;

    .token {
      font-size: 0.2em;
      line-height: 1em;
      position: absolute;
      bottom: 0.5em;
      right: 0.5em;
      color: pink;
    }
  }

}

.pageWrapper {
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 0px; /* 5em 0px 0px 0px; */
  z-index: 1000;
}


/* ******************************************************************************** */
/* typography */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  margin: 0 0 0.75em 0;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
}

h2 {
  font-size: clamp(1.5em, 3vw, 2em);
  position: relative;
  /* display: inline-block; */
}

/*
h2::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--accent-cyan);
}

h2.center::after {
  left: 50%;
  transform: translateX(-50%);
}
*/


p {
  margin: 0 0 1.25em 0;
}

a {
  color: var(--accent-amber);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-cyan);
}

.center {
  text-align: center;
}



/* ***************************************************************** */







/* ******************************************************************************** */
/* hero */

.heroSection {
  position: relative;
  width: 100%;
  background: transparent; /* var(--bg-primary); */
  overflow: hidden;
}

.heroSearch {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.heroSearch h1 {
  font-family: var(--font-heading);
  font-size: clamp(2em, 5vw, 3.5em);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin: 0;
  text-align: center;
}

.heroSearch h1 span.accent {
  color: var(--accent-cyan);
}

.inputWrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  justify-content: center;
  align-items: center;
  position: relative;
  min-height: 4.25em;
  margin: 1.5em auto 0;
}
.heroSearchBar {
  width: 100%;
  max-width: 680px;
  position: absolute; /* relative; */
}
.heroSearchBar {
  z-index: 100;
}

.heroSearchBar input,
.heroSearchBar textarea {
  width: 100%;
  padding: 0.85em 1.25em 1em 3em;
  min-height: 1em;
  font-family: var(--font-heading);
  font-size: inherit;
  line-height: 1.35em; /* inherit; */
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  caret-color: var(--accent-cyan);

  &::placeholder {
    font-style: italic;
  }
}

.heroSearchBar textarea {
  resize: none;
  overflow: hidden;
  min-height: 3.4em;                 /* LLM prompt bar proportions */
  padding-right: 4em;                /* room for the send button */
}

.heroSearchBar textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow:
    0 0 0 1px var(--accent-cyan-dim),
    0 0 28px rgba(0, 229, 255, 0.14);
}

.heroSearchBar {
  display: flex;
  flex-direction: column;
  opacity: 1;
}

.heroSearchIcon {
  position: absolute;
  left: 1em;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-cyan);
  opacity: 0.7;
}

/* the LLM-style send button (arrow up in a circle) */
.heroSendBtn {
  position: absolute;
  right: 1em;
  top: 50%;
  transform: translateY(-50%);
  width: 2.1em;
  height: 2.1em;
  border-radius: 50%;
  border: none;
  background: var(--accent-cyan);
  color: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
}

.heroSendBtn:hover {
  transform: translateY(-50%) scale(1.07);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.35);
}

.heroSendBtn:active {
  transform: translateY(-50%) scale(0.94);
}

.heroSendBtn svg {
  display: block;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.cursor {
  display: inline-block;
  width: 1px; /* 2px; */
  height: 1em;
  background: var(--accent-cyan);
  margin-left: 0.1em;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

.heroSubtitle {
  font-family: var(--font-heading);
  font-size: 0.7em;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 1em;
  text-align: center;
}





/* ******************************************************************************** */
/* main / content areas */

main {
  padding: 0;
}

.inside {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--basePadding) var(--basePadding) calc(var(--basePadding) / 4) var(--basePadding);
  background: var(--bg-alpha);
}


/* ******************************************************************************** */
/* section divider */

p.divider {
  margin: 3rem 0 0 0;
  padding: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--accent-cyan) 20%,
    var(--accent-amber) 50%,
    var(--accent-cyan) 80%,
    transparent 100%
  );
  opacity: 0.35;
  border: none;
}


/* ******************************************************************************** */
/* text content styling */

.textBlock {
  padding-left: 1em;
  border-left: 2px solid var(--border-accent);
  margin-bottom: 1em;
}

.textBlock p:last-child {
  margin-bottom: 0;
}


/* ******************************************************************************** */
/* gallery */

.gallerySection {
  background: transparent; /* var(--bg-secondary); */
}

.gallerySection .inside {
  padding-top: calc(var(--basePadding) * 1.25);
}

.galleryWrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75em;
}

.galleryWrapper a {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.galleryWrapper a:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.15);
  transform: translateY(-2px);
}

.galleryWrapper a img {
  width: 100%;
  height: auto;
  display: block;
  filter: saturate(0.85);
  transition: filter var(--transition);
}

.galleryWrapper a:hover img {
  filter: saturate(1);
}


/* ******************************************************************************** */
/* video */

.videoWrapper {
  display: flex;
  flex-direction: column;
  flex: 0 0 100%;
  margin-bottom: 2em;
}

.videoWrapper video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.videoWrapper video:hover {
  border-color: var(--border-accent);
  box-shadow: 0 4px 30px rgba(0, 229, 255, 0.1);
}

.videoWrapper div.videoCaption {
  padding: 0.75em 0 0 0;
  text-align: center;
  font-size: 0.85em;
  color: var(--text-muted);
  font-style: italic;
}


/* ******************************************************************************** */
/* events / previous */

.eventsList {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5em 0;
}

.eventsList li {
  padding: 0.5em 0.75em; /* 1em 1.25em; */
  margin-bottom: 0.5em;
  border-left: 2px solid var(--accent-cyan);
  position: relative;
  background: var(--bg-alpha); /* var(--bg-card); */
  border-radius: 0 var(--radius) var(--radius) 0;
  line-height: 1.35em; /* 1.5em; */
}

.eventsList li:last-child {
  margin-bottom: 0;
}

.date {
  font-family: var(--font-heading);
  font-size: 0.7em;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  display: inline-block;
  margin-right: 0.5em;
  background: var(--accent-cyan-dim);
  padding: 0.1em 0.35em; /* 0.15em 0.5em; */
  border-radius: 3px;
}


/* ******************************************************************************** */
/* logos */


.logos {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 3rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;

  a {
    display: flex;
    flex-direction: column;
    opacity: 0.65;
    color: var(--font-body);

    &:hover {
      opacity: 0.8;
    }

    svg.logoSvg {
      display: block;
      width: auto;
      height: auto;
    }
  }
}


/* ******************************************************************************** */
/* contact */

.contactSection {
  background: transparent; /* var(--bg-alpha); /*  var(--bg-secondary); */
}

.contactSection .inside {
  padding-top: calc(var(--basePadding) * 1.25);
}

.contactSection a {
  font-family: var(--font-heading);
  font-size: 0.95em;
  letter-spacing: 0.04em;
}


/* ******************************************************************************** */
/* full-width images */

img.fullWidth {
  display: block;
  width: 100%;
  height: auto;
}

img.centered {
  display: block;
  margin: 0 auto;
}



/* ******************************************************************************** */
/* ******************************************************************************** */
/* ******************************************************************************** */
/* ******************************************************************************** */
/* MEDIA QUERIES */

@media screen {

  :root {
    --basePadding: 1.25em;
    --header-height: 3rem;
  }

  body {
    font-size: 16px;
  }


  /* header / nav */    
  header {
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 999;
    padding: 0;
    background: transparent; /* var(--bg-header); */
    /*
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    */
    border-bottom: 1px solid var(--border-color);
    min-height: auto;
    height: var(--header-height);
  }

  header nav {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 0.75em 1.5em;
    column-gap: 0;
    row-gap: 0.25em;
    min-height: auto;
  }

  header nav a {
    text-decoration: none;
    padding: 0.5em 1.25em;
    margin: 0;
    line-height: 1em;
    display: inline-block;
    font-size: 0.85em; /* 0.8em; */
    letter-spacing: 0.15em;
    font-family: var(--font-heading);
    text-transform: uppercase;
    color: var(--text-secondary);
    background: var(--bg-navlink);
    border-radius: 4px;
    transition: color var(--transition), background var(--transition);
  }

  header nav a:first-child {
    color: var(--accent-cyan);
    font-weight: 700;
  }

  header nav a:hover {
    color: var(--accent-cyan);
    background: var(--accent-cyan-dim);
  }

  header nav a:first-child:hover {
    background: var(--accent-cyan-dim);
  }


  .topSpacer {
    height: 0;
  }

  .heroSection {
    display: flex;
    flex-direction: column;
    margin-top: var(--header-height);
    min-height: 75vh;
    /* border: 1px solid blue; */
    justify-content: center;
  }

  .heroSearch {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1em;
    min-height: none;
    /* border: 1px solid purple; */
    width: 100%;
  }

  .galleryWrapper {
    grid-template-columns: repeat(2, 1fr);
  }
}



/* ********************************************************** */
@media screen and (min-width: 600px) {

  :root {
    --basePadding: 2em;
    --header-height: 8vh;
  }

  body {
    font-size: 16px;
  }

  header nav {
    column-gap: 0;
    row-gap: 0.25em;
  }

  .topSpacer {
    height: 0;
  }

  .galleryWrapper {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ********************************************************** */
@media screen and (min-width: 800px) {

}


/* ********************************************************** */
@media screen and (min-width: 1024px) {

  :root {
    --basePadding: 2.5em;
    --header-height: 11vh;
  }

  body {
    font-size: 18px;
  }    

  /*
  header {
    height: var(--header-height);
  }

  .heroSection {
    margin-top: var(--header-height);
  }
    */

  .topSpacer {
    height: 0;
  }

  .galleryWrapper {
    grid-template-columns: repeat(4, 1fr);
  }
}



/* ******************************************************************************** */
/* ******************************************************************************** */
/* FONT FACES */

@font-face {
  font-family: 'VG5000';
  src:    url('../fonts/VG5000-Regular_web.eot');
  src:    url('../fonts/VG5000-Regular_web.eot?#iefix') format('embedded-opentype'),
          url('../fonts/VG5000-Regular_web.woff') format('woff'),
          url('../fonts/VG5000-Regular_web.woff2') format('woff2'),
          url('../fonts/VG5000-Regular_web.ttf') format('truetype'),
          url('../fonts/VG5000-Regular_web.svg#svgFontName') format('svg');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'karrikregular';
  src: url('../fonts/Karrik-Regular.woff2') format('woff2'),
       url('../fonts/Karrik-Regular.woff') format('woff'),
       url('../fonts/Karrik-Regular.ttf') format('truetype');
  font-style: normal;
  font-weight: normal;
}

@font-face {
  font-family: 'karrikitalic';
  src: url('../fonts/Karrik-Italic.woff2') format('woff2'),
       url('../fonts/Karrik-Italic.woff') format('woff'),
       url('../fonts/Karrik-Italic.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
