@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 400;
  src: url('https://fonts.gstatic.com/s/spacemono/v13/i7dPIFZifjKcF5UAWdDRYEF8RQ.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 700;
  src: url('https://fonts.gstatic.com/s/spacemono/v13/i7dSIFZifjKcF5UAWdDRbEZ8RUo.woff2') format('woff2');
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0.5;
  padding: 0;
}

body {
  animation: pageFade 0.4s ease both;
}

@keyframes pageFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

html, body, .main-content {
  height: auto !important;
  min-height: 0 !important;
}

html, body {
  background: #f4f1ec;
  color: #111110;
  font-family: 'Space Mono', 'Courier New', monospace;
  font-size: 1.2rem;
  line-height: 1.55;
}

/* ── TOP BAR ── */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 2rem 3rem;
  border-bottom: 1px solid rgba(17,17,16,0.07);
  position: sticky !important;
  top: 0 !important;
  background: #f4f1ec;
  z-index: 100;
}

.site-name {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #111110;
}

.top-nav {
  display: flex;
  gap: 1.8rem;
}

.top-nav button {
  font-family: 'Space Mono', 'Courier New', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: rgba(17,17,16,0.4);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.12s;
}

.top-nav button:hover,
.top-nav button.active {
  color: #111110;
}

/* ── MAIN CONTENT ── */
.main-content {
  padding: 1rem;
}

/* ── INLINE PANEL — sits between top bar and list ── */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 2rem 3rem;
  border-bottom: 1px solid rgba(17,17,16,0.07);
  background: #f4f1ec;
  z-index: 100;
}

.page-body {
  padding-top: 0rem;
}

.panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0;
  border-bottom: 1px solid transparent;
}

.panel.open {
  max-height: 600px;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(17,17,16,0.07);
}

.panel-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 5rem;
}

.panel-bio p {
  font-size: 0.82rem;
  line-height: 1.85;
  color: rgba(17,17,16,0.6);
  margin-bottom: 1.2rem;
}

.panel-bio p:last-child { margin-bottom: 0; }

.panel-right {}

.panel-label {
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(17,17,16,0.25);
  margin-bottom: 0.5rem;
  display: block;
}

.panel-links {
  list-style: none;
  margin-bottom: 1.8rem;
}

.panel-links li {
  font-size: 0.82rem;
  line-height: 1.9;
}

.panel-links a {
  color: #111110;
  text-decoration: none;
  border-bottom: 1px solid rgba(17,17,16,0.15);
  padding-bottom: 1px;
  transition: border-color 0.12s;
}

.panel-links a:hover {
  border-bottom-color: #111110;
}

/* select works panel */
.select-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 5rem;
}

/* avail */
.avail {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(17,17,16,0.35);
  margin-bottom: 1.4rem;
}

.avail-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #4a9e5c;
  box-shadow: 0 0 5px rgba(74,158,92,0.55);
  animation: pulse 2.4s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%,100% { opacity:1; box-shadow:0 0 5px rgba(74,158,92,0.55); }
  50%      { opacity:0.3; box-shadow:0 0 2px rgba(74,158,92,0.15); }
}

/* ── WORK LIST ── */
.work-list {
  list-style: none;
}

.work-row {
  display: grid;
  grid-template-columns: 1fr 14rem 5rem;
  align-items: baseline;
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(17,17,16,0.06);
  cursor: pointer;
}

.work-row:first-child {
  border-top: 0px solid rgba(17,17,16,0.06);
}

.work-num {
  display: none;
}

.work-title {
  font-size: 0.95rem;
  color: #111110;
  text-decoration: none;
  transition: color 0.12s;
}

.work-row:hover .work-title {
  color: #3a0808;
}

.work-cat {
  font-size: 0.65rem;
  color: rgba(17,17,16,0.28);
  letter-spacing: 0.03em;
}

.work-year {
  font-size: 0.65rem;
  color: rgba(17,17,16,0.25);
  text-align: right;
}

/* ── FOOTER ── */
.site-footer {
  padding: 1.4rem 3rem;
  border-top: 0px solid rgba(17,17,16,0.06);
  display: flex;
  justify-content: space-between;
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  color: rgba(17,17,16,0.2);
  margin-top: 0;
}

/* ── DARK FLASH ── */
body.dark-flash {
  opacity: 0;
  transition: opacity 0.28s ease;
}

@media (max-width: 700px) {

  /* hide work list on mobile */
  .work-list { display: none; }
  .site-footer { display: none; }

  /* top bar stays the same */
  .top-bar {
    padding: 1.6rem 1.8rem;
  }

  /* mobile hero area — space for animation */
  .mobile-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    height: calc(100vh - 6rem);
  }

  .mobile-hero-text {
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(17,17,16,0.2);
    text-align: center;
    line-height: 2;
  }

  /* panels take full width */
  .panel-inner {
    grid-template-columns: 1fr;
    gap: 2rem 0;
  }

  .select-grid {
    grid-template-columns: 1fr;
  }

  .main-content {
    padding: 0 1.8rem;
  }

}

.mobile-hero { display: none; }