:root {
  --bg: #07080a;
  --bg-soft: #0d0f10;
  --fg: #f3f4f1;
  --fg-muted: #a1a4a3;
  --fg-faint: #6d7170;
  --accent: #b7ff3c;
  --accent-rgb: 183, 255, 60;
  --cyan: #d8fff5;
  --cyan-rgb: 216, 255, 245;
  --border: rgba(255, 255, 255, 0.09);
  --grid-line: rgba(255, 255, 255, 0.035);
  --focus-ring: 0 0 0 3px rgba(183, 255, 60, 0.4);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ---------- background layers ---------- */

.hero-media {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-media picture,
.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(7, 8, 10, 0.97) 0%,
    rgba(7, 8, 10, 0.93) 28%,
    rgba(7, 8, 10, 0.72) 50%,
    rgba(7, 8, 10, 0.34) 72%,
    rgba(7, 8, 10, 0.1) 100%
  );
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center top;
  mask-image: radial-gradient(ellipse 80% 60% at 30% 20%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 30% 20%, #000 0%, transparent 75%);
}

.hero-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(38rem 30rem at 82% 26%, rgba(var(--accent-rgb), 0.15), transparent 70%),
    radial-gradient(26rem 22rem at 68% 76%, rgba(var(--cyan-rgb), 0.07), transparent 70%),
    linear-gradient(115deg, transparent 46%, rgba(var(--accent-rgb), 0.05) 47%, transparent 48.5%),
    linear-gradient(115deg, transparent 61%, rgba(var(--cyan-rgb), 0.04) 61.6%, transparent 63%);
}

.console {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 3vw;
  z-index: 0;
  width: min(30rem, 42vw);
  display: flex;
  align-items: center;
  pointer-events: none;
  user-select: none;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 14%, #000 82%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 14%, #000 82%, transparent 100%);
}

.console pre {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.76rem;
  line-height: 1.75;
  white-space: pre;
  animation: console-drift 46s ease-in-out infinite alternate;
}

.console .c-prompt {
  color: var(--accent);
  font-weight: 600;
  text-shadow: 0 0 10px rgba(var(--accent-rgb), 0.35);
}

.console .c-out {
  color: #3c6b47;
}

.console .c-hl {
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(var(--cyan-rgb), 0.4);
}

.console .c-cursor {
  animation: console-blink 1.3s steps(1) infinite;
}

@keyframes console-drift {
  from {
    transform: translateY(-8px);
  }
  to {
    transform: translateY(8px);
  }
}

@keyframes console-blink {
  0%, 49% {
    opacity: 1;
  }
  50%, 100% {
    opacity: 0;
  }
}

/* ---------- foreground ---------- */

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  background: var(--accent);
  color: #07080a;
  padding: 0.6rem 1rem;
  border-radius: 0.25rem;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

a {
  color: inherit;
}

.site-header,
.hero,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(1.25rem, 4vw, 2.5rem) clamp(1.25rem, 5vw, 3.5rem);
}

.monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--accent);
  background: radial-gradient(circle at 35% 30%, rgba(var(--accent-rgb), 0.2), rgba(var(--accent-rgb), 0.04) 70%);
  box-shadow: 0 0 18px rgba(var(--accent-rgb), 0.28), inset 0 0 12px rgba(var(--accent-rgb), 0.1);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.monogram:hover {
  box-shadow: 0 0 28px rgba(var(--accent-rgb), 0.45), inset 0 0 14px rgba(var(--accent-rgb), 0.14);
  transform: translateY(-1px);
}

.domain {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(6px);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--fg-muted);
}

.domain-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.75);
}

.hero {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 2rem clamp(1.25rem, 5vw, 3.5rem);
  max-width: 78rem;
}

.hero-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(1.5rem, 3.5vw, 2.25rem);
  max-width: 40rem;
}

.headline {
  margin: 0;
  font-size: clamp(2.75rem, 9vw, 7.5rem);
  line-height: 0.98;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.headline .outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
  text-stroke: 1.5px var(--accent);
  text-shadow: 0 0 42px rgba(var(--accent-rgb), 0.3);
}

@supports not ((-webkit-text-stroke: 1px) or (text-stroke: 1px)) {
  .headline .outline {
    color: var(--accent);
  }
}

.role {
  margin: 0;
  max-width: 30rem;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 500;
  color: var(--fg);
  letter-spacing: 0.01em;
  hyphens: none;
  -webkit-hyphens: none;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--fg-muted);
  background: rgba(13, 15, 16, 0.55);
  backdrop-filter: blur(4px);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.tags li:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.status {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  max-width: 34rem;
  margin: 0;
  color: var(--fg-muted);
  font-size: 1rem;
}

.status-dot {
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  margin-top: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.14);
  animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% {
    box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.14);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(var(--accent-rgb), 0.24);
  }
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: #07080a;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  background: #cbff70;
  transform: translateY(-1px);
  box-shadow: 0 0 28px rgba(var(--accent-rgb), 0.42);
}

.btn:active {
  transform: translateY(0);
}

.email-link {
  font-size: 0.95rem;
  color: var(--fg-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.email-link:hover {
  color: var(--fg);
  border-color: var(--fg-muted);
}

a:focus-visible,
button:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 0.35rem;
}

.site-footer {
  padding: 1.5rem clamp(1.25rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 2.5rem);
}

.site-footer p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--fg-faint);
  letter-spacing: 0.02em;
}

/* ---------- responsive ---------- */

@media (max-width: 64rem) {
  .hero-media img {
    object-position: 80% center;
  }

  .console {
    opacity: 0.6;
    width: 36vw;
  }
}

@media (max-width: 48rem) {
  .console {
    display: none;
  }

  .hero-media img {
    object-position: 88% center;
  }

  .hero-overlay {
    background: linear-gradient(
      100deg,
      rgba(7, 8, 10, 0.97) 0%,
      rgba(7, 8, 10, 0.95) 42%,
      rgba(7, 8, 10, 0.82) 68%,
      rgba(7, 8, 10, 0.58) 100%
    );
  }
}

@media (max-width: 30rem) {
  .site-header {
    padding-inline: 1.25rem;
  }

  .hero-main {
    align-items: stretch;
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .hero-overlay {
    background: rgba(7, 8, 10, 0.94);
  }

  .hero-media img {
    object-position: 92% center;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }

  .btn:hover {
    transform: none;
  }

  .status-dot,
  .console pre,
  .console .c-cursor {
    animation: none;
  }
}
