/* Base layout */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: #e9eeec;
  background: #0c1010;
  overflow: hidden;
}

/* Shader canvas background */
#shader-canvas {
  position: fixed;
  left: 0; 
  top: 0;
  width: 100vw; 
  height: 100vh;
  z-index: -2;
  pointer-events: none;
  display: block;
}

/* Background: layered radial gradients for a soft dual-tone look */
.bg {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
  z-index: -1;
  mix-blend-mode: multiply;
}

/* Subtle dark vignette to match edges in the screenshot */
.vignette {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background:
    radial-gradient(120vw 120vw at 50% 50%, rgba(0,0,0,0.0) 0%, rgba(0,0,0,0.0) 55%, rgba(0,0,0,0.12) 80%, rgba(0,0,0,0.22) 100%);
  mix-blend-mode: multiply;
  z-index: 1;
}

/* Canvas overlay for subtle lattice */
/* lattice canvas removed */

.shell {
  position: relative;
  height: 100vh;
}

/* Left tagline */
.left-tagline {
  position: absolute;
  top: 46%;
  left: 10vw;
  transform: translate(-50%, -50%);
  font-weight: 400;
  letter-spacing: 0.22em;
  font-size: 14px;
  color: rgba(255,255,255,0.92);
  text-transform: uppercase;
  white-space: nowrap;
}

/* Center vertical menu */
.menu {
  position: absolute;
  top: 46%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  align-items: center;
}
.menu { --fadeFar: 80px; --focusBand: 24px; }
.menu .items-viewport {
  position: relative;
  /* Fade mask anchored to menu center (where brackets live) */
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0.35) calc(50% - var(--fadeFar)),
    rgba(0,0,0,1) calc(50% - var(--focusBand)),
    rgba(0,0,0,1) calc(50% + var(--focusBand)),
    rgba(0,0,0,0.35) calc(50% + var(--fadeFar)),
    rgba(0,0,0,0) 100%
  );
          mask-image: linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0.35) calc(50% - var(--fadeFar)),
    rgba(0,0,0,1) calc(50% - var(--focusBand)),
    rgba(0,0,0,1) calc(50% + var(--focusBand)),
    rgba(0,0,0,0.35) calc(50% + var(--fadeFar)),
    rgba(0,0,0,0) 100%
  );
}
.menu .items { display: grid; gap: 22px; justify-items: center; }
.menu .items { will-change: transform; transition: transform 260ms ease-out; position: relative; z-index: 0; }
.menu .items.is-initial { transition: none !important; }

.menu-item {
  appearance: none;
  border: none;
  background: none;
  color: rgba(235,240,238,0.62);
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 400;
  text-align: center;
  padding: 0;
  cursor: pointer;
}

.menu-item:hover { color: rgba(250,252,251,0.92); }
.menu-item.active { color: rgba(250,252,251,0.98); }
.menu-item .label { display: inline-block; transform-origin: 50% 50%; }

/* Floating selector brackets */
.selector {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(250,252,251,0.95);
  pointer-events: none;
  transition: left 220ms ease, width 220ms ease;
}
.selector.is-initial { transition: none !important; }
.sel-bracket { opacity: 0.95; }

/* Selector "arms" will be positioned around active label via JS using CSS vars */
.selector {
  --sel-left: 0px;    /* x position of left bracket */
  --sel-top: 0px;     /* y center */
  --sel-width: 0px;   /* width to span */
}
.selector { left: 0; }
.selector .sel-bracket:first-child { margin-right: 6px; }
.selector .sel-bracket:last-child { margin-left: 6px; }

/* Right CTA */
/* removed CTA */

/* Right detail panel - BULLETPROOF fixed positioning */
.detail {
  position: absolute;
  top: 45%;
  left: 86vw;
  right: auto;
  transform: translate(-50%, -50%);
  width: min(38ch, 24vw);
  color: rgba(244,248,247,0.94);
  text-align: left;
}
.detail-title {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  text-align: left;
  /* BULLETPROOF - header stays at exact same level as left tagline and center menu */
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}
.detail-copy {
  margin: 0;
  /* BULLETPROOF - content always exactly 60px below header */
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
}
.detail-body {
  margin: 0;
  line-height: 1.6;
  font-size: 14px;
  letter-spacing: 0.01em;
  color: rgba(240,245,243,0.88);
  font-family: inherit;
  font-weight: 400;
}
/* Links in detail should be white */
.detail a { color: rgba(255,255,255,0.98); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.8); }
.detail a:hover { border-bottom-color: rgba(255,255,255,0.6); }
/* Logo for 12ozCollective in Work section */
.work-logo { 
  height: 12px; 
  width: auto;
  vertical-align: middle; 
  margin-right: 8px; 
  margin-top: -3px; 
  min-width: 12px; /* Prevent layout shift while loading */
  display: inline-block; /* Ensure consistent spacing */
}

/* Contact form styling */
.detail-form { 
  display: none; 
  width: 100%; 
  /* BULLETPROOF - contact form at exact same position as detail-copy */
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
}
.detail-form input,
.detail-form textarea {
  width: 100%;
  padding: 12px 14px;
  margin: 0 0 10px 0;
  border-radius: 8px;
  border: 1px solid rgba(240,245,243,0.45);
  background: rgba(240,245,243,0.08);
  color: rgba(245,248,247,0.98);
  outline: none;
  backdrop-filter: blur(4px);
}
.detail-form input::placeholder,
.detail-form textarea::placeholder { color: rgba(240,245,243,0.75); }
.detail-form input:focus,
.detail-form textarea:focus {
  border-color: rgba(240,245,243,0.75);
  background: rgba(240,245,243,0.12);
}
.detail-form button {
  appearance: none;
  border: 1px solid rgba(240,245,243,0.45);
  background: rgba(240,245,243,0.08);
  color: rgba(245,248,247,0.96);
  padding: 10px 14px;
  border-radius: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}
.detail-form button:hover { background: rgba(240,245,243,0.12); }
.form-status { margin-top: 8px; font-size: 12px; color: rgba(240,245,243,0.82); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,1px,1px); white-space: nowrap; border: 0; }

/* Make sure everything scales nicely on smaller viewports */
@media (max-width: 900px) {
  .menu { gap: 14px; }
  .menu-item { font-size: 12px; }
  .left-tagline { font-size: 10px; }
  .detail { right: 6vw; width: 80vw; max-width: 560px; }
}

/* Mobile layout */
@media (max-width: 700px) {
  html, body { height: 100%; overflow: hidden; overscroll-behavior: none; }
  .shell { overflow: hidden; }
  .left-tagline {
    display: block;
    position: absolute;
    top: calc(env(safe-area-inset-top, 0px) + 48px);
    left: 50%;
    transform: translate(-50%, 0);
    text-align: center;
    font-size: 12px;
    letter-spacing: 0.2em;
  }
  .menu {
    top: 44%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  .menu .items {
    height: 180px; /* force scrollable area so options can move */
    overflow-y: auto;
    padding: 90px 0; /* large top/bottom to allow first/last to center */
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 28px;
    --fadeFar: 90px; --focusBand: 28px;
  }
  .menu .items-viewport {
    --fadeFar: 90px; --focusBand: 28px;
  }
  .menu .items::-webkit-scrollbar { display: none; }
  .menu-item { scroll-snap-align: center; }
  .detail {
    top: 55%;
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
    width: 86vw;
  }
  .detail-title {
    margin-top: 25px; /* Move header down on mobile only */
  }
}

/* Tablet (iPad) layout */
@media (max-width: 1024px) and (min-width: 701px) {
  html, body { height: 100%; overflow: hidden; overscroll-behavior: none; }
  .shell { overflow: hidden; }
  .left-tagline {
    display: block;
    position: absolute;
    top: calc(env(safe-area-inset-top, 0px) + 56px);
    left: 50%;
    transform: translate(-50%, 0);
    text-align: center;
    font-size: 12px;
    letter-spacing: 0.2em;
  }
  .menu {
    top: 48%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  .detail {
    top: 72%;
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
    width: 76vw;
  }
}


