/* ============================================================
   janxy.dev · slick, minimal, monochrome + single accent
   ============================================================ */

:root {
  --bg:            #0c0d10;
  --bg-alt:        #0f1014;
  --surface:       #15171d;
  --surface-2:     #1a1d24;
  --border:        rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text:          #e9ebef;
  --text-muted:    #9aa1ad;
  --text-faint:    #6b7280;
  --accent:        #6c8cff;
  --accent-hover:  #889dff;
  --accent-soft:   rgba(108, 140, 255, 0.12);

  --radius:   14px;
  --radius-sm: 9px;
  --maxw:     1240px;
  --gap:      clamp(1rem, 3vw, 2rem);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
          Helvetica, Arial, system-ui, sans-serif;
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2rem);
}

/* ----- Accessibility ----- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: .6rem 1rem;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================
   Header / nav
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 13, 16, 0.72);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  font-size: 1.05rem;
}
.brand-mark {
  width: 18px; height: 18px;
  border-radius: 5px;
  background: var(--accent);
  box-shadow: inset 0 0 0 3px var(--bg);
}
.brand-dot { color: var(--accent); }

.nav { display: flex; align-items: center; gap: .4rem; }
.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: color .15s ease, background .15s ease;
}
.nav-icon:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-icon svg { width: 20px; height: 20px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 2px;
  margin-inline: auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.mobile-nav a {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .9rem clamp(1.1rem, 4vw, 2rem);
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  font-weight: 500;
}
.mobile-nav a svg { width: 20px; height: 20px; }
.mobile-nav.open { display: flex; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding: clamp(4.5rem, 12vw, 8rem) 0 clamp(3rem, 8vw, 5rem);
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}
.eyebrow {
  display: inline-block;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.hero h1 {
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 700;
  max-width: 16ch;
}
.lede {
  margin-top: 1.4rem;
  max-width: 56ch;
  font-size: clamp(1.02rem, 2.3vw, 1.2rem);
  color: var(--text-muted);
}
.lede strong { color: var(--text); font-weight: 600; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 2rem;
}

/* Hero rotating showcase */
.hero-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 24px 70px -28px rgba(0, 0, 0, 0.75);
}
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: heroFade 16s infinite;
}
.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 4s; }
.hero-slide:nth-child(3) { animation-delay: 8s; }
.hero-slide:nth-child(4) { animation-delay: 12s; }

@keyframes heroFade {
  0%   { opacity: 0; }
  3%   { opacity: 1; }
  25%  { opacity: 1; }
  28%  { opacity: 0; }
  100% { opacity: 0; }
}

/* Reduced motion: animations are disabled globally, so just show the first frame */
@media (prefers-reduced-motion: reduce) {
  .hero-slide:first-child { opacity: 1; }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-size: .95rem;
  font-weight: 600;
  padding: .72rem 1.3rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .15s ease, color .15s ease;
}
.btn-sm { padding: .58rem 1.05rem; font-size: .9rem; }
.btn-primary {
  background: var(--accent);
  color: #0a0b0e;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--text-muted); background: rgba(255,255,255,0.03); }

/* ============================================================
   Sections
   ============================================================ */
.section { padding: clamp(3.5rem, 9vw, 6rem) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }

.section-head { max-width: 56ch; margin-bottom: clamp(2rem, 5vw, 3rem); }
.section-kicker {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .7rem;
}
.section-head h2 {
  font-size: clamp(1.7rem, 4.5vw, 2.5rem);
  letter-spacing: -0.02em;
  line-height: 1.12;
  font-weight: 700;
}
.section-sub { margin-top: .9rem; color: var(--text-muted); font-size: 1.05rem; }
.section-note {
  margin-top: 2rem;
  color: var(--text-muted);
  font-size: .98rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.section-note strong { color: var(--text); }

/* Discipline-specific hire CTA */
.section-cta {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.2rem;
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.section-cta h3 { font-size: 1.2rem; font-weight: 680; letter-spacing: -0.01em; }
.section-cta p { margin-top: .35rem; color: var(--text-muted); font-size: .96rem; max-width: 48ch; }
.section-cta .btn { white-space: nowrap; }

/* ============================================================
   Cards
   ============================================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2rem);
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  background: var(--surface-2);
}

.card-icon {
  width: 50px; height: 50px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 1.2rem;
}
.card-title { font-size: 1.3rem; font-weight: 680; letter-spacing: -0.01em; }
.card-tag {
  font-size: .82rem;
  color: var(--accent);
  font-weight: 600;
  margin-top: .25rem;
}
.card-desc { margin-top: .9rem; color: var(--text-muted); font-size: .98rem; }

.feature-list, .role-list {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.feature-list li, .role-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: .94rem;
  color: var(--text);
}
.feature-list li::before, .role-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--accent);
}

.card-actions { margin-top: 1.6rem; display: flex; gap: .7rem; flex-wrap: wrap; }

/* Cards with a media banner (game cards + tool cards) */
.game-card, .tool-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.game-card .card-body, .tool-card .card-body { padding: clamp(1.4rem, 3vw, 2rem); }

.game-art, .card-art {
  height: 170px;
  background-color: var(--surface-2);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--border);
}
.game-art-dragon { background-image: url("/assets/dragon.png"); }
.game-art-zombie { background-image: url("/assets/mobs.png"); }
.card-art-vat    { background-image: url("/assets/toolkit.jpg"); }
.card-art-crowd  { background-image: url("/assets/crowd.jpg"); }

/* ============================================================
   Contact
   ============================================================ */
.contact-inner { text-align: center; max-width: 50ch; }
.contact-inner h2 {
  font-size: clamp(1.7rem, 4.5vw, 2.5rem);
  letter-spacing: -0.02em;
  font-weight: 700;
  white-space: nowrap;
}
.contact-inner .section-sub { margin-inline: auto; }
.status-line {
  margin-top: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-muted);
}
.status-dot {
  flex: none;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #3fcf8e;
  box-shadow: 0 0 0 0 rgba(63, 207, 142, 0.55);
  animation: statusPulse 2.2s ease-out infinite;
}
@keyframes statusPulse {
  0%   { box-shadow: 0 0 0 0 rgba(63, 207, 142, 0.5); }
  70%  { box-shadow: 0 0 0 9px rgba(63, 207, 142, 0); }
  100% { box-shadow: 0 0 0 0 rgba(63, 207, 142, 0); }
}
.contact-actions {
  margin-top: 1.8rem;
  display: flex;
  gap: .8rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .8rem;
}
.footer-copy { color: var(--text-faint); font-size: .88rem; }

/* ============================================================
   Reveal-on-scroll (progressive enhancement)
   ============================================================ */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s ease, transform .55s ease;
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-frame { max-width: 560px; }
}

@media (max-width: 760px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .cards { grid-template-columns: 1fr; }
  .section-cta { flex-direction: column; align-items: flex-start; }
  .section-cta .btn { width: 100%; }
}
