html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

* { box-sizing: border-box; }

/* ---- Theme ---------------------------------------------------------------
   Default = near-black background, neon-green tick.
   .invert (cursor over the tick) = neon-green background, black tick.       */
.page {
  --bg: #0a0a0a;
  --text: #e8e8e8;
  --wordmark: #7fae86;
  --foot: #5d7560;
  --caption: #4dff6a;
  --menu-inactive: #8a9a8c;
  --menu-active: #4dff6a;

  position: fixed;
  inset: 0;
  overflow: hidden;
  font-family: 'JetBrains Mono', monospace;
  background: var(--bg);
  color: var(--text);
  transition: background .4s ease, color .4s ease;
}

.page.invert {
  --bg: #3df064;
  --text: #0a0a0a;
  --wordmark: #0c3a1a;
  --foot: #11491f;
  --caption: #0c3a1a;
  --menu-inactive: #11491f;
  --menu-active: #0a0a0a;
}

/* ---- Wordmark ------------------------------------------------------------ */
.wordmark {
  position: absolute;
  top: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--wordmark);
  transition: color .4s ease;
}

/* ---- Hero ---------------------------------------------------------------- */
.hero {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

@keyframes tickBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}

.tick {
  position: relative;
  width: 300px;
  height: 280px;
  cursor: pointer;
  animation: tickBob 4.2s ease-in-out infinite;
}

.tick-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  transition: opacity .25s ease;
}

.tick-neutral { opacity: 1; }
.tick-smile   { opacity: 0; }
.page.invert .tick-neutral { opacity: 0; }
.page.invert .tick-smile   { opacity: 1; }

.caption {
  margin-top: 30px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--caption);
  transition: color .4s ease;
}

/* ---- Footer -------------------------------------------------------------- */
.copyright {
  position: absolute;
  bottom: 34px;
  left: 40px;
  z-index: 5;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--foot);
  transition: color .4s ease;
}

.menu {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 34px;
}

.menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  padding: 4px 0;
  color: var(--menu-inactive);
  transition: color .2s;
}

.menu-btn.active { color: var(--menu-active); }
.menu-btn:hover  { color: #4dff6a; }

.email {
  position: absolute;
  bottom: 34px;
  right: 40px;
  z-index: 5;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-decoration: none;
  color: var(--foot);
  transition: color .4s ease, opacity .2s ease;
}

.email:hover { opacity: 0.6; }

/* ---- Overlay ------------------------------------------------------------- */
.overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 9, 8, 0.96);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.overlay-card {
  position: relative;
  max-width: 560px;
  width: calc(100% - 80px);
  max-height: 84vh;
  overflow-y: auto;
}

.overlay-close {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  line-height: 1;
  padding: 6px;
  color: #6f7a70;
  transition: color .2s ease;
}

.overlay-close:hover { color: #3df064; }

/* ---- Panels -------------------------------------------------------------- */
.panel { display: none; }
.panel.active { display: block; }

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #5fa46e;
  margin-bottom: 20px;
}

.lead {
  font-family: 'Newsreader', serif;
  font-weight: 400;
  font-size: 26px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: #f2f2ec;
  margin: 0 0 22px;
}

.body {
  font-size: 13px;
  line-height: 1.8;
  color: #a7a79c;
  margin: 0 0 14px;
}

.body-last { margin-bottom: 18px; }

.closing {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: #3df064;
  margin: 0;
}

