/* f00.sh hub layout extras (shell + cards from shared f00-theme.css) */
:root {
  --max: 68rem;
  --pad: clamp(1rem, 3vw, 2rem);
  --splash-size: clamp(6.5rem, 22vw, 15rem);
  --splash-tracking: -0.06em;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100dvh; overflow-x: hidden; }

.crt, #field, .grain { display: none !important; }
#field { position: absolute; inset: 0; width: 100%; height: 100%; }
.grain, .vignette { display: none; }

.skip {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: #090909; color: #E8ECF0; padding: 0.5rem 1rem; border: 1px solid #E8ECF0;
}
.skip:focus { left: 1rem; top: 1rem; }

.top, main, .foot { position: relative; z-index: 1; }
.top {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  max-width: var(--max); margin: 0 auto; padding: 1.1rem var(--pad) 0.85rem;
}
.brand { display: inline-flex; align-items: baseline; gap: 0.25rem; text-decoration: none; }
.brand-mark { font-size: 1.45rem; letter-spacing: 0.14em; }
.brand-sub { letter-spacing: 0.14em; font-size: 0.8rem; }
.nav { display: flex; gap: 1.15rem; font-size: 0.82rem; letter-spacing: 0.14em; }
.nav a { text-decoration: none; border-bottom: 1px solid transparent; text-transform: uppercase; }

.hero {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(1.5rem, 5vh, 3rem) var(--pad) 0.75rem; text-align: center;
}
.splash-frame { width: 100%; display: flex; justify-content: center; }
.splash {
  margin: 0; display: inline-block;
  font-size: var(--splash-size) !important; line-height: 0.88 !important;
  letter-spacing: var(--splash-tracking) !important; font-weight: 400 !important;
  user-select: none; white-space: nowrap; width: max-content;
}
.splash, .splash .glyph, h1.splash, .brand-mark {
  text-transform: none !important;
}
.splash .glyph {
  display: inline; position: relative;
  font-size: inherit !important; font-family: inherit !important;
  text-shadow: 0 1px 0 rgba(255,255,255,0.22);
  animation: flicker 7s infinite steps(2, end);
}
.splash .glyph:nth-child(2) { animation-delay: 0.45s; }
.splash .glyph:nth-child(3) { animation-delay: 1.1s; }
.splash .glyph::after {
  content: attr(data-text); position: absolute; left: 0; top: 0; opacity: 0;
  color: var(--glitch-color, #c50a1b);
  transform: translate(var(--glitch-x, 1px), var(--glitch-y, -1px)); pointer-events: none;
}
.splash .glyph.is-glitching::after { opacity: 0.95; }
@keyframes flicker {
  0%, 97%, 100% { opacity: 1; } 98% { opacity: 0.88; } 99% { opacity: 0.95; }
}

.projects, .products {
  max-width: var(--max); margin: 0 auto; padding: 1.25rem var(--pad) 3rem;
}
.section-head {
  margin-bottom: 1rem; border-bottom: 1px solid rgba(232,236,240,0.72); padding-bottom: 0.45rem;
}
.section-head h2 {
  margin: 0; font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700;
}
/* spaced project cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 1.1rem;
  border: 0;
}
.card-actions {
  display: flex; flex-wrap: wrap; margin-top: 0.75rem; padding-top: 0.65rem;
  border-top: 1px solid rgba(9, 9, 9, 0.25);
}
.card-actions .btn { margin: 0 0.4rem 0.35rem 0; }
.facts { margin: 0.75rem 0; padding: 0; list-style: none; font-size: 0.85rem; }
.facts li { margin: 0.15rem 0; padding: 0.15rem 0; }

.foot {
  max-width: var(--max); margin: 0 auto; padding: 1.1rem var(--pad) 2rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: none;
}
.foot-stars { text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  .splash .glyph { animation: none; }
  html { scroll-behavior: auto; }
}
@media (max-width: 520px) {
  .nav { gap: 0.7rem; font-size: 0.72rem; }
  .splash { font-size: clamp(5rem, 24vw, 10rem) !important; }
  .card h3 { font-size: 0.88rem; }
  .grid { gap: 1.1rem; }
}

.foot-stars {
  text-decoration: none;
  font-family: var(--font-chip, ui-monospace, monospace);
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
  color: rgba(255,255,255,0.92) !important;
}
.foot-stars:hover { color: #F2F4F6 !important; }
.brand { cursor: pointer; text-decoration: none; }
