/* ============================================================
   Tryon Tools — Per-layer styles
   ============================================================ */

/* ---------- Menu (Layer 0) — chromostereopsis red/blue ---------- */
.layer-menu {
  --menu-red: 0 100% 50%;
  --primary: 0 100% 50%;
  --primary-foreground: 0 0% 100%;
  --ring: 0 100% 50%;
  --layer-glow: 0 100% 50%;
  --border: 235 100% 25%;
  --card: 235 80% 8%;
  --muted: 235 70% 10%;
  --foreground: 0 100% 60%;
  --muted-foreground: 0 90% 50%;
  --layer-bg-base: hsl(235 100% 5%);
  --layer-bg-color: hsl(235 100% 50% / .25);
  --layer-bg-accent: hsl(235 100% 45% / .25);
}
.layer-menu .layer-bg { filter: blur(2px); }
.layer-menu .layer-header {
  background: linear-gradient(180deg, hsl(235 100% 5% / .95), hsl(235 100% 5% / .7));
  border-bottom-color: hsl(0 100% 50% / .3);
}
.layer-menu .logo {
  box-shadow: 0 0 18px hsl(var(--menu-red) / .6), 0 0 40px hsl(var(--menu-red) / .25), 2px 2px 0 hsl(235 100% 30% / .5);
}
.layer-menu h1.brand-title {
  text-shadow: 2px 2px 0 hsl(var(--menu-red) / .5), -2px -2px 0 hsl(235 100% 60% / .5), 0 0 15px hsl(var(--menu-red) / .6);
}
.layer-menu .tagline {
  color: hsl(var(--menu-red));
  text-shadow: 0 0 12px hsl(var(--menu-red)), 1px 1px 0 hsl(var(--menu-red) / .8), -1px -1px 0 hsl(235 100% 60% / .4);
}
.layer-menu nav span {
  text-shadow: 0 0 10px hsl(var(--menu-red) / .5), 1px 1px 0 hsl(var(--menu-red) / .3), -1px -1px 0 hsl(235 100% 60% / .3);
}
.layer-menu .btn-primary {
  background: hsl(var(--menu-red)); color: white;
  box-shadow: 0 0 20px hsl(var(--menu-red) / .7), 0 0 50px hsl(var(--menu-red) / .3), inset 0 0 10px hsl(var(--menu-red) / .2), 3px 3px 0 hsl(235 100% 30% / .5);
}
.layer-menu .hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .3;
  filter: hue-rotate(200deg) saturate(2) brightness(.7);
  pointer-events: none;
}
.layer-menu .hero-block { position: relative; z-index: 1; text-align: center; max-width: 720px; margin: 0 auto; }
.layer-menu .hero-eyebrow {
  font-family: 'JetBrains Mono', monospace; font-size: .85rem; letter-spacing: .3em; color: hsl(var(--menu-red));
  text-shadow: 0 0 15px hsl(var(--menu-red)), 0 0 35px hsl(var(--menu-red) / .6);
  margin-bottom: 1rem;
}
.layer-menu .hero-title {
  font-size: clamp(2.75rem, 9vw, 6.5rem); font-weight: 700; line-height: 1; margin-bottom: 1.25rem;
  text-shadow: 3px 3px 0 hsl(var(--menu-red) / .6), -3px -3px 0 hsl(235 100% 55% / .5), 0 0 30px hsl(var(--menu-red) / .5), 0 0 80px hsl(var(--menu-red) / .2);
}
.layer-menu .hero-title span {
  color: hsl(var(--menu-red));
  text-shadow: 0 0 25px hsl(var(--menu-red)), 0 0 60px hsl(var(--menu-red) / .7), 0 0 100px hsl(var(--menu-red) / .35), 3px 3px 0 hsl(235 100% 25%), -2px -2px 0 hsl(var(--menu-red) / .5);
}
.layer-menu .hero-desc {
  color: hsl(var(--muted-foreground));
  font-size: clamp(.95rem, 1.5vw, 1.15rem);
  margin: 0 auto 1.75rem; max-width: 90vw;
}
.layer-menu .feature {
  padding: 1.5rem; max-width: 320px; width: 100%;
  box-shadow: 0 0 25px hsl(var(--menu-red) / .15), inset 0 0 30px hsl(235 100% 50% / .08), 3px 3px 0 hsl(235 100% 25% / .3);
}
.layer-menu .feature h3 {
  font-size: 1.15rem; margin: .5rem 0;
  text-shadow: 2px 2px 0 hsl(var(--menu-red) / .25), -2px -2px 0 hsl(235 100% 60% / .25);
}
.layer-menu .feature p { font-size: .85rem; color: hsl(var(--muted-foreground)); }
.layer-menu .feature .icon { color: hsl(var(--menu-red)); font-size: 1.75rem; filter: drop-shadow(0 0 10px hsl(var(--menu-red) / .9)); }

.layer-menu .video-card {
  padding: 0; overflow: hidden; max-width: 520px; width: 100%;
  box-shadow: 0 0 30px hsl(var(--menu-red) / .2), 4px 4px 0 hsl(235 100% 25% / .3);
}
.layer-menu .video-card .video { aspect-ratio: 16/9; background: hsl(var(--muted)); display: flex; align-items: center; justify-content: center; }
.layer-menu .video-card .meta { padding: 1rem; font-family: 'JetBrains Mono', monospace; font-size: .8rem; color: hsl(var(--muted-foreground)); }

.layer-menu .instructions {
  padding: 1.25rem; max-width: 320px; width: 100%; text-align: left;
  font-size: .85rem; color: hsl(var(--muted-foreground));
  box-shadow: 0 0 25px hsl(var(--menu-red) / .12), inset 0 0 30px hsl(235 100% 50% / .08), 3px 3px 0 hsl(235 100% 25% / .3);
}
.layer-menu .instructions p { margin: .25rem 0; }
.layer-menu .instructions-label { font-family: 'JetBrains Mono', monospace; font-size: .7rem; color: hsl(var(--muted-foreground)); letter-spacing: .3em; margin-bottom: .5rem; text-align: center; }

/* ---------- About (Layer 1) ---------- */
.layer-about {
  --primary: 260 60% 65%;
  --secondary: 260 60% 55%;
  --layer-glow: 260 60% 55%;
  --layer-bg-base: hsl(0 0% 18%);
  --layer-bg-color: hsl(0 0% 26%);
  --layer-bg-accent: hsl(0 0% 30%);
}
.layer-about .eyebrow { font-family: 'JetBrains Mono', monospace; color: hsl(var(--secondary)); letter-spacing: .3em; font-size: .85rem; margin-bottom: 1rem; }
.layer-about h2 { font-size: clamp(2rem, 6vw, 4.5rem); font-weight: 700; line-height: 1.05; margin-bottom: 1.25rem; }
.layer-about h2 span { color: hsl(var(--secondary)); }
.layer-about .desc { color: hsl(var(--muted-foreground)); font-size: 1rem; margin: 0 auto 1.5rem; max-width: 480px; }
.layer-about .stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; width: 100%; max-width: 320px; }
.layer-about .stat { padding: 1.25rem; text-align: center; }
.layer-about .stat .num { font-size: 1.5rem; font-weight: 700; color: hsl(var(--foreground)); }
.layer-about .stat .lbl { font-size: .7rem; font-family: 'JetBrains Mono', monospace; color: hsl(var(--muted-foreground)); }
.layer-about .mission { padding: 1.75rem; max-width: 320px; width: 100%; }
.layer-about .mission h3 { font-size: 1.15rem; margin-bottom: .75rem; }
.layer-about .mission p { color: hsl(var(--muted-foreground)); font-size: .9rem; line-height: 1.6; }
.layer-about .values { display: flex; flex-direction: column; gap: .75rem; max-width: 320px; width: 100%; }
.layer-about .values h3 { font-size: 1.15rem; margin-bottom: .25rem; }
.layer-about .value-item { padding: .85rem 1rem; display: flex; align-items: center; gap: .75rem; }
.layer-about .value-item::before { content: ''; width: 8px; height: 8px; border-radius: 999px; background: hsl(var(--secondary)); }

/* ---------- Portfolio (Layer 2) ---------- */
.layer-portfolio {
  --primary: 42 90% 55%;
  --layer-glow: 42 90% 55%;
  --layer-bg-base: hsl(40 30% 15%);
  --layer-bg-color: hsl(42 40% 28%);
  --layer-bg-accent: hsl(45 35% 35%);
}
.layer-portfolio .layer-grid {
  grid-template-rows: repeat(2, 1fr);
  min-height: 200vh;
}
.layer-portfolio .project { max-width: 520px; width: 100%; display: flex; flex-direction: column; gap: 1rem; text-align: center; }
.layer-portfolio .project img { aspect-ratio: 16/9; width: 100%; object-fit: cover; border-radius: var(--radius); }
.layer-portfolio .project-meta { display: flex; justify-content: center; gap: .75rem; font-family: 'JetBrains Mono', monospace; font-size: .7rem; color: hsl(var(--primary)); letter-spacing: .25em; }
.layer-portfolio .project-meta .year { color: hsl(var(--muted-foreground)); }
.layer-portfolio .project h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); font-weight: 700; letter-spacing: -.04em; }
.layer-portfolio .project .subtitle { font-family: 'JetBrains Mono', monospace; font-size: .85rem; color: hsl(var(--primary) / .8); margin: .35rem 0 .75rem; }
.layer-portfolio .project p.desc { color: hsl(var(--muted-foreground)); font-size: .9rem; line-height: 1.5; max-width: 420px; margin: 0 auto 1rem; }
.layer-portfolio .chips { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 1rem; }
.layer-portfolio .actions { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }

/* ---------- Contact (Layer 3) ---------- */
.layer-contact {
  --primary: 195 70% 55%;
  --accent: 330 70% 55%;
  --layer-glow: 195 70% 55%;
  --layer-bg-base: hsl(195 30% 15%);
  --layer-bg-color: hsl(195 40% 28%);
  --layer-bg-accent: hsl(195 35% 35%);
}
.layer-contact .form-block { max-width: 460px; width: 100%; position: relative; z-index: 1; }
.layer-contact .eyebrow { text-align: center; font-family: 'JetBrains Mono', monospace; color: hsl(var(--accent)); letter-spacing: .3em; font-size: .85rem; margin-bottom: 1rem; }
.layer-contact h2 { text-align: center; font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; margin-bottom: 1.5rem; }
.layer-contact form { display: flex; flex-direction: column; gap: .75rem; }
.layer-contact .info { display: flex; flex-direction: column; gap: .75rem; max-width: 320px; width: 100%; }
.layer-contact .info-item { padding: 1.25rem; display: flex; gap: 1rem; align-items: center; }
.layer-contact .info-item .ico { font-size: 1.5rem; color: hsl(var(--accent)); flex-shrink: 0; }
.layer-contact .info-item .lbl { font-size: .7rem; font-family: 'JetBrains Mono', monospace; color: hsl(var(--muted-foreground)); }
.layer-contact .info-item .val { font-size: .9rem; }
.layer-contact .schedule { padding: 1.75rem; max-width: 320px; width: 100%; }
.layer-contact .schedule h3 { font-size: 1.15rem; margin-bottom: 1rem; }
.layer-contact .schedule .row { display: flex; justify-content: space-between; padding: .35rem 0; color: hsl(var(--muted-foreground)); font-size: .9rem; }
.layer-contact .schedule .row span:last-child { color: hsl(var(--foreground)); }

/* ---------- Blog (Layer 4) ---------- */
.layer-blog {
  --primary: 280 70% 65%;
  --layer-glow: 280 70% 65%;
  --layer-bg-base: hsl(270 30% 15%);
  --layer-bg-color: hsl(270 35% 26%);
  --layer-bg-accent: hsl(270 30% 32%);
}
.layer-blog .layer-grid {
  grid-template-rows: repeat(4, 1fr);
  min-height: 400vh;
}
.layer-blog .hero-block { position: relative; z-index: 1; text-align: center; max-width: 720px; margin: 0 auto; }
.layer-blog .hero-eyebrow { font-family: 'JetBrains Mono', monospace; font-size: .85rem; letter-spacing: .3em; color: hsl(var(--primary)); margin-bottom: 1rem; }
.layer-blog h2 { font-size: clamp(2.5rem, 8vw, 5.5rem); font-weight: 700; line-height: 1; margin-bottom: 1rem; }
.layer-blog h2 span { color: hsl(var(--primary)); }
.layer-blog .hero-desc { color: hsl(var(--muted-foreground)); font-size: 1.05rem; }
.layer-blog .posts { display: flex; flex-direction: column; gap: 1rem; max-width: 320px; width: 100%; }
.layer-blog .post { padding: 1.25rem; cursor: pointer; transition: transform .2s; }
.layer-blog .post:hover { transform: scale(1.03); }
.layer-blog .post .meta { font-size: .7rem; font-family: 'JetBrains Mono', monospace; color: hsl(var(--muted-foreground)); margin-bottom: .5rem; }
.layer-blog .post h4 { font-size: .95rem; margin-bottom: .35rem; }
.layer-blog .post p { font-size: .8rem; color: hsl(var(--muted-foreground)); }
.layer-blog .featured { padding: 0; max-width: 720px; width: 100%; overflow: hidden; }
.layer-blog .featured .body { padding: 1.75rem; }
.layer-blog .featured .label { font-family: 'JetBrains Mono', monospace; font-size: .7rem; letter-spacing: .3em; color: hsl(var(--primary)); margin-bottom: .75rem; }
.layer-blog .featured h3 { font-size: clamp(1.25rem, 3vw, 1.85rem); margin-bottom: 1.25rem; line-height: 1.2; }
.layer-blog .featured img { aspect-ratio: 16/9; width: 100%; object-fit: cover; border-radius: .5rem; margin-bottom: 1.25rem; }
.layer-blog .featured .paragraphs { display: flex; flex-direction: column; gap: .85rem; font-size: .9rem; color: hsl(var(--muted-foreground)); line-height: 1.65; }
.layer-blog .featured .footer-row { display: flex; flex-direction: column; gap: .75rem; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid hsl(var(--primary) / .15); }
@media (min-width: 640px) { .layer-blog .featured .footer-row { flex-direction: row; justify-content: space-between; align-items: center; } }

/* ---------- Lazy video ---------- */
.lazy-video { position: relative; aspect-ratio: 16/9; cursor: pointer; background: hsl(var(--muted) / .5); display: flex; align-items: center; justify-content: center; }
.lazy-video .play {
  width: 64px; height: 64px; border-radius: 999px;
  background: hsl(var(--primary) / .2); border: 1px solid hsl(var(--primary) / .4);
  display: flex; align-items: center; justify-content: center;
  color: hsl(var(--primary)); font-size: 1.5rem;
  transition: transform .2s;
}
.lazy-video:hover .play { transform: scale(1.1); }

/* ---------- Mobile responsive grid collapse ---------- */
@media (max-width: 639px) {
  .layer-grid {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto !important;
    min-width: 100vw !important;
  }
  .layer-content, .tile { width: 100vw; }
  .cell { min-height: 100vh; padding: 1.5rem; }
}
