/* ===========================
   css/menu.css (PASTE ENTIRE FILE)
   FIX: Header hover behavior matches submenu:
   - Icon + text change TOGETHER on hover (33% -> 100%)
   - Remove separate icon/text hover rules
   Everything else unchanged.
   =========================== */

:root{
  --bone: #e6e6e6;
  --bone-soft: #bfbfbf;
  --bone-faint: #8f8f8f;

  --border: rgba(230,230,230,0.18);
  --border-hover: rgba(230,230,230,0.32);

  --panel: rgba(0,0,0,0.45);

  --ui-33: 0.33;
  --ui-100: 1;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }

body{
  margin: 0;
  background: #000;
  color: var(--bone);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

/* Links: no underline, no color shift, bold on hover */
a{ color: inherit; text-decoration: none; font-weight: inherit; }
a:visited{ color: inherit; }
a:hover{ font-weight: 700; }
a:active{ color: inherit; }

.page{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.header{
  padding: 18px 16px;
  border-bottom: 1px solid var(--border);
}
.logoWrap{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* Default state: both at 33% */
.logoIcon{
  width: 25px;
  height: 25px;
  object-fit: contain;
  opacity: var(--ui-33);
  transition: opacity 160ms ease, transform 120ms ease;
}
.logoText{
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--bone-soft);
  opacity: var(--ui-33);
  transition: opacity 160ms ease, font-weight 160ms ease;
  white-space: nowrap;
}

/* Hover group: both to 100% together */
.logoWrap:hover .logoIcon,
.logoWrap:hover .logoText{
  opacity: var(--ui-100);
}
.logoWrap:hover .logoText{ font-weight: 700; }
.logoWrap:hover .logoIcon{ transform: translateY(-1px); }

/* Main */
.main{
  flex: 1 0 auto;
  padding: 26px 16px 40px;
}
.container{
  max-width: 1200px;
  margin: 0 auto;
}

/* Portal */
.portalCell{
  display: flex;
  justify-content: flex-start; /* desktop */
  margin-bottom: 18px;
}
.portalSmall{
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--border);
}
.portalSmall iframe{
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  pointer-events: none;
}

/* Grid */
.tilesGrid{
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Tile */
.tile{
  position: relative;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
}
.tile:hover{
  border-color: var(--border-hover);
}

/* Thumbnail button (audio toggle) */
.thumb{
  width: 100%;
  aspect-ratio: 9 / 16;
  background: #000;
  overflow: hidden;
  border: 0;
  padding: 0;
  margin: 0;
  display: block;
  cursor: pointer;
}
.thumbToggle{
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
}
.thumb iframe{
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  pointer-events: none;
}

/* Title overlay */
.tileTitleBtn{
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 5;
  padding: 12px;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
  color: var(--bone);
}
.tileTitleBtn:hover{
  border-color: var(--border-hover);
  font-weight: 700;
}

/* Audio indicator */
.audioTag{
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 6;
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-faint);
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity 140ms ease, transform 140ms ease;
  pointer-events: none;
}
.thumbToggle.is-audio-on ~ .audioTag{
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
.footer{
  margin-top: auto;
  padding: 18px 16px;
  border-top: 1px solid var(--border);
  text-align: center;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--bone-faint);
}
.hero_header{
  margin: 0 0 10px 0;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: var(--bone-soft);
  opacity: 0.33;
  transition: opacity 160ms ease, font-weight 160ms ease;
}
.hero_header:hover{
  opacity: 1;
  font-weight: 700;
}

/* Footer icons */
.contactIcons{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  margin-top: 12px;
}
.contactIcons a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
}
.contactIcons img{
  width: 50px;
  height: 50px;
  object-fit: contain;
  opacity: 0.33;
  transition: opacity 160ms ease, transform 120ms ease;
}
.contactIcons img:hover{
  opacity: 1;
  transform: translateY(-1px);
}

/* Breakpoints */
@media (max-width: 1024px){
  .tilesGrid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portalCell{ justify-content: center; }
}
@media (max-width: 560px){
  .tilesGrid{ grid-template-columns: 1fr; }
  .portalCell{ justify-content: center; }
  .portalSmall{ width: 180px; height: 180px; }
  .contactIcons{ gap: 18px; }
  .contactIcons img{ width: 44px; height: 44px; }
}
/* === Remove all thin outlines around video frames === */

/* Tile container */
.tile{
  border: none !important;
  box-shadow: none !important;
}

/* Clickable video wrapper */
.thumb{
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Vimeo iframe */
.thumb iframe{
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Prevent focus rings on click (mouse/touch only) */
.thumb:focus,
.thumb:focus-visible{
  outline: none !important;
}

/* Ensure title glass panel positions consistently on all avatar tiles */
.tile{
  position: relative;
}

/* ===== Subtle audio affordance (hover-only) ===== */
.audioHint{
  position:absolute;
  left:12px;
  top:12px;
  z-index:7; /* above title (z=5) and audioTag (z=6) */

  font-size:11px;
  letter-spacing:.14em;
  text-transform:uppercase;

  color: rgba(236,236,236,0.45);
  opacity:0;

  pointer-events:none;
  transition: opacity 160ms ease;
}

/* Show hint when hovering anywhere on the tile */
.tile:hover .audioHint{
  opacity:0.55;
}

/* Hide hint once audio is on */
.thumbToggle.is-audio-on .audioHint{
  opacity:0;
}

/* No hover on touch devices */
@media (hover: none){
  .audioHint{ display:none; }
}
