/* hexeosis static site - base styles */
:root {
  --bg: #111;
  --bg-section: #1a1a1a;
  --text: #e0e0e0;
  --text-muted: #888;
  --accent: #fff;
  --link: #ccc;
  --link-hover: #fff;
  --border: #333;
  --max-width: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--link); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--link-hover); }

img { max-width: 100%; height: auto; display: block; }

/* Navigation */
.site-header {
  background: #000;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
}

.nav-logo img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  text-transform: lowercase;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.nav-links a {
  color: var(--text-muted);
  padding: 0.25rem 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

/* Mobile nav */
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.5rem; cursor: pointer; }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #000;
    padding: 1rem 1.5rem;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
}

/* Main content */
main {
  flex: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
  width: 100%;
}

/* Section blocks */
.section {
  margin-bottom: 3rem;
  padding: 2rem;
  background: var(--bg-section);
  border-radius: 4px;
}

.section h2 {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
  color: var(--accent);
}

.section p {
  margin-bottom: 1rem;
  color: var(--text);
  font-size: 0.95rem;
}

.section .cta {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.5rem 1.5rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  transition: background 0.2s, color 0.2s;
}

.section .cta:hover {
  background: var(--accent);
  color: var(--bg);
}

/* Page header */
.page-title {
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
  color: var(--accent);
  text-align: center;
}

.page-intro {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* GIF Gallery Grid */
.gif-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.gif-grid a,
.gif-grid .gif-item {
  display: block;
  overflow: hidden;
  border-radius: 2px;
  background: #000;
  aspect-ratio: 1;
}

.gif-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.gif-grid a:hover img {
  transform: scale(1.03);
}

/* Gallery category grid (gifshome) */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.category-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 4px;
  background: #000;
  aspect-ratio: 1;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s, opacity 0.3s;
}

.category-card:hover img {
  transform: scale(1.05);
  opacity: 0.7;
}

.category-card .label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem;
  background: rgba(0,0,0,0.7);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  color: var(--accent);
}

/* NFT grid */
.nft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.nft-card {
  display: block;
  background: var(--bg-section);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.2s;
}

.nft-card:hover { transform: translateY(-2px); }

.nft-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.nft-card .nft-info {
  padding: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Client work grid */
.client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.client-card {
  background: var(--bg-section);
  border-radius: 4px;
  overflow: hidden;
}

.client-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.client-card .client-info {
  padding: 1rem;
}

.client-card .client-name {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.client-card .client-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* About page */
.about-content {
  max-width: 700px;
  margin: 0 auto;
}

.about-content h2 { margin-top: 2rem; }

.contact-info {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--bg-section);
  border-radius: 4px;
}

.contact-info p { margin-bottom: 0.5rem; font-size: 0.9rem; }

/* Social links */
.social-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.social-links a {
  color: var(--text-muted);
  text-transform: lowercase;
  font-size: 0.85rem;
}

/* Platform links */
.platform-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.platform-links a {
  padding: 0.4rem 1rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.platform-links a:hover {
  border-color: var(--accent);
}

/* Legal pages */
.legal-content {
  max-width: 700px;
  margin: 0 auto;
  font-size: 0.9rem;
}

.legal-content h1 {
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}

.legal-content h2 {
  font-size: 1rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--accent);
}

.legal-content h3 {
  font-size: 0.9rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-content p {
  margin-bottom: 0.75rem;
  color: var(--text);
}

.legal-content ul {
  margin: 0.5rem 0 1rem 1.5rem;
  color: var(--text);
}

.legal-content li { margin-bottom: 0.3rem; }

/* Gallery back link */
.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.back-link:hover { color: var(--accent); }

/* Year/theme nav for gallery pages */
.gallery-nav {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.gallery-nav a {
  padding: 0.4rem 1rem;
  border: 1px solid var(--border);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.gallery-nav a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: auto;
}

.site-footer .footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-footer .footer-logo {
  height: 32px;
  margin: 0 auto 1rem;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.footer-social a { color: var(--text-muted); font-size: 0.8rem; }
.footer-social a:hover { color: var(--accent); }

/* Section heading dividers */
.section-label {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 2rem 0 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

/* ==========================================================
   MAIN PAGE — split-screen design
   ========================================================== */
body.home {
  display: block;
  min-height: 100vh;
  background: #000;
  overflow: hidden;
}

.home-layout {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-columns: 60px minmax(320px, 36%) 60px 1fr;
  background: #000;
}

.home-rail {
  position: relative;
  background: #000;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.home-rail img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  padding: 1.5rem 0;
  opacity: 0.85;
}

.home-rail-left img { padding-left: 0.5rem; }
.home-rail-mid img { padding-right: 0.5rem; }

.home-menu {
  background: #000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem 0;
  position: relative;
}

.home-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.home-menu li {
  margin: 0;
}

.home-menu a {
  display: block;
  padding: 0.32em 1.25rem;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(1.2rem, 2.6vw, 2rem);
  line-height: 1.05;
  letter-spacing: -0.005em;
  text-transform: lowercase;
  color: #fff;
  background: transparent;
  transition: background 0.15s, color 0.15s;
  border: none;
}

.home-menu a:hover,
.home-menu a:focus,
.home-menu a.is-active {
  color: #000;
  outline: none;
}

/* spectrum colors per item */
.home-menu li[data-key="gifs"]        a:hover,
.home-menu li[data-key="gifs"]        a.is-active        { background: #d6c235; }
.home-menu li[data-key="hx-01"]       a:hover,
.home-menu li[data-key="hx-01"]       a.is-active        { background: #a4cf3a; }
.home-menu li[data-key="interactive"] a:hover,
.home-menu li[data-key="interactive"] a.is-active        { background: #57b942; }
.home-menu li[data-key="apps"]        a:hover,
.home-menu li[data-key="apps"]        a.is-active        { background: #2db896; }
.home-menu li[data-key="collectables"] a:hover,
.home-menu li[data-key="collectables"] a.is-active       { background: #2189b8; }
.home-menu li[data-key="vjloops"]     a:hover,
.home-menu li[data-key="vjloops"]     a.is-active        { background: #2a5fa8; }
.home-menu li[data-key="commissions"] a:hover,
.home-menu li[data-key="commissions"] a.is-active        { background: #5c4d9c; }
.home-menu li[data-key="about"]       a:hover,
.home-menu li[data-key="about"]       a.is-active        { background: #b577a3; }

.home-feature {
  position: relative;
  background: #000;
  overflow: hidden;
}

.home-feature .feature-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.home-feature .feature-img.is-active {
  opacity: 1;
}

.home-foot {
  position: fixed;
  left: 70px;
  bottom: 8px;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: #555;
  text-transform: uppercase;
  pointer-events: none;
  z-index: 5;
}

.home-foot-mark {
  position: fixed;
  left: 8px;
  bottom: 8px;
  width: 26px;
  height: auto;
  opacity: 0.65;
  z-index: 5;
}

/* Mobile: stack image above menu */
@media (max-width: 800px) {
  body.home { overflow: auto; }
  .home-layout {
    position: relative;
    inset: auto;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }
  .home-rail-left,
  .home-rail-mid { display: none; }
  .home-feature {
    order: 1;
    height: 38vh;
    min-height: 220px;
  }
  .home-menu {
    order: 2;
    padding: 1.25rem 0 2rem;
  }
  .home-menu a {
    font-size: clamp(1.4rem, 6vw, 2rem);
    padding: 0.55em 1.25rem;
  }
  .home-foot, .home-foot-mark { position: static; }
  .home-foot {
    text-align: center;
    padding: 0.75rem 1rem 1.25rem;
    width: 100%;
    left: auto; bottom: auto;
  }
  .home-foot-mark { display: none; }
}
