:root {
  --bg: #0a0b0d;
  --fg: #e8e8e6;
  --dim: #888;
  --rule: rgba(255, 255, 255, 0.08);
  --accent: #5eead4;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

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

html,
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

main {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 32px 80px;
}

.masthead {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 112px;
  color: var(--accent);
}

.masthead-mark {
  width: 52px;
  height: auto;
  flex-shrink: 0;
}

.masthead-wordmark {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg);
  font-weight: 500;
}

/* Hero */
.hero h1 {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 32px;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  color: var(--fg);
}

.cursor {
  color: var(--accent);
  animation: blink 1.1s steps(1) infinite;
  margin-left: 2px;
  font-weight: 400;
}

@keyframes blink {
  50% { opacity: 0; }
}

.tagline {
  color: var(--dim);
  font-size: 17px;
  margin-bottom: 72px;
}

/* Section labels */
.label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 18px;
  font-weight: 500;
}

/* Services */
.services {
  margin-bottom: 88px;
}

.bullets {
  list-style: none;
}

.bullets li {
  position: relative;
  padding: 7px 0 7px 22px;
  color: var(--fg);
  font-size: 16px;
}

.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 17px;
  width: 10px;
  height: 1px;
  background: var(--accent);
}

/* Contact */
.contact {
  margin-top: 88px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 14px;
  color: var(--dim);
}

.contact a {
  color: var(--dim);
  text-decoration: none;
  transition: color 0.15s ease;
}

.contact a:hover {
  color: var(--accent);
}

.sep {
  margin: 0 10px;
  opacity: 0.5;
}

/* Projects rotator */
.projects {
  border-top: 1px solid var(--rule);
  padding-top: 48px;
}

.rotator {
  position: relative;
}

.slides {
  position: relative;
  min-height: 560px;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
}

.slide-visual {
  display: block;
  width: 100%;
  text-decoration: none;
}

a.slide-visual {
  cursor: zoom-in;
}

.screenshot {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
  background: #111216;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

a.slide-visual:hover .screenshot {
  border-color: rgba(94, 234, 212, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

.screenshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.muted-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  margin-left: 10px;
  vertical-align: 2px;
  font-weight: 400;
}

.slide-body h3 {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 10px;
  letter-spacing: -0.005em;
}

.slide-body h3 a {
  color: var(--fg);
  text-decoration: none;
  transition: color 0.15s ease;
}

.slide-body h3 a:hover {
  color: var(--accent);
}

.slide-body h3 .arrow {
  color: var(--dim);
  font-size: 13px;
  margin-left: 4px;
  transition: color 0.15s ease;
}

.slide-body h3 a:hover .arrow {
  color: var(--accent);
}

.slide-body p {
  color: var(--dim);
  font-size: 15px;
  line-height: 1.6;
}

.dots {
  display: flex;
  gap: 10px;
  justify-content: flex-start;
  margin-top: 32px;
}

.dot {
  width: 28px;
  height: 2px;
  background: rgba(255, 255, 255, 0.14);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease;
}

.dot.active {
  background: var(--accent);
}

.dot:hover {
  background: rgba(255, 255, 255, 0.32);
}

.dot.active:hover {
  background: var(--accent);
}

/* Mobile */
@media (max-width: 640px) {
  main {
    padding: 80px 24px 56px;
  }
  .hero h1 {
    font-size: 26px;
  }
  .tagline {
    margin-bottom: 56px;
  }
  .now {
    margin-bottom: 56px;
  }
  .contact {
    margin-bottom: 72px;
  }
  .projects {
    padding-top: 40px;
  }
  .slides {
    min-height: 460px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cursor {
    animation: none;
  }
  .slide {
    transition: none;
  }
}
