/* Heading font and size configuration */
:root {
	/* Change these variables to pick a different font or size */
	--heading-font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
	--heading-font-size: 16rem; /* use px, rem, etc. */
	--heading-color: #111111;
}

/* Prevent horizontal scrolling while preserving vertical scrolling */
html, body {
  overflow-x: clip;
  overflow-y: visible;
  /* hide native scrollbars but keep scrolling functional */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
}

/* WebKit browsers (Chrome, Safari, Edge) */
body::-webkit-scrollbar {
  width: 0px;
  height: 0px;
}

/* Header navigation styles */
#site-header{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  gap: 12px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10002; /* above canvas and marquee control */
  pointer-events: auto;
}

.site-brand .brand-link{
  font-family: var(--heading-font-family);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #111;
  text-decoration: none;
  font-size: 18px;
}

#site-nav{
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav-link{
  color: #111;
  text-decoration: none;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 6px;
}
.nav-link:hover{
  background: rgba(0,0,0,0.06);
}

/* Ensure page content isn't hidden under the fixed header */
body { padding-top: 64px; }

#heading {
	position: relative;
	z-index: -2; 
	pointer-events: auto;
	padding: 16px;
    word-break: keep-all;
    word-wrap: normal;
	white-space: nowrap;
}

#heading h1 {
	margin: 0;
	font-family: var(--heading-font-family);
	font-size: var(--heading-font-size);
	line-height: 1;
	color: var(--heading-color);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	white-space: nowrap;
	overflow: visible; /* allow it to overflow horizontally if necessary */
}


/* Marquee-style animated SVG splash. This places the splash fixed in the
   viewport, animates duplicated copies of the SVG horizontally and keeps
   pointer-events disabled so the Three.js canvas remains interactive. */

/* Place the splash below the fixed header (64px) and size to the remaining
   viewport height so it visually fits without overflowing. */
#splashimg{
  position: static;
  top: 0;
  left: 0;
  height: calc(100vh - 64px - 64px);
  width: 100%;
  overflow: hidden;
  display: block;
  z-index: 1;
  pointer-events: none; /* let interactions pass through to canvas */
}

.marquee{
  display: flex;
  align-items: center;
  height: 100%;
  /* allow the inner content to be wider than the viewport */
  width: max-content;
  will-change: transform;
  /* animation uses CSS variable --marquee-duration and will translate by
     --marquee-shift which is set from JS to the measured group width */
  animation: marqueeAnim var(--marquee-duration, 12s) linear infinite;
}

.marquee__group{
  display: flex;
  align-items: center;
  flex: none; /* prevent flexbox from resizing clones; keep measured width exact */
}

.marquee__group img{
  /* scale to fill the visible splash area (viewport minus header) */
  height: calc(100vh - 64px - 64px);
  max-height: calc(100vh - 64px);
  width: auto;
  display: block;
  pointer-events: none;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

@keyframes marqueeAnim{
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-1 * var(--marquee-shift))); }
}
/*------------------------------*/


#FlavorText {
    position: sticky;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16rem;
    color: #000000;
    word-wrap: normal;
    word-break: keep-all;
    top: 0px;
    pointer-events: auto;
    padding: 16px;
    z-index: 10;
}


/* Small responsive tweak */
@media (max-width: 600px) {
	:root { --heading-font-size: 28px; }
}

