:root {
  --bg: #040506;
  --bg-alt: #0a0b0d;
  --surface: rgba(255, 255, 255, 0.028);
  --surface-strong: rgba(255, 255, 255, 0.06);
  --text: #f4f6f8;
  --muted: #9aa1a9;
  --accent: #f4f6f8;
  --accent-2: #9aa1a9;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  overflow-x: hidden;
  background: linear-gradient(180deg, #020304 0%, var(--bg) 100%);
  cursor: none;
}

@media (pointer: coarse) {
  body {
    cursor: auto;
  }
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

body::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: 96px 96px;
  opacity: 0.04;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 92%);
}

body::after {
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(4, 6, 7, 0.98);
  border-bottom: none;
}

.nav {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 36px;
  height: 36px;
  display: block;
  border-radius: 10px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.brand-text-only {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text);
}

.brand-text-only span {
  font-family: "Space Grotesk", sans-serif;
}

.brand-text strong,
.section-heading h2,
.hero-copy h1,
.card h3,
.project h3,
.timeline-item h3 {
  font-family: "Space Grotesk", sans-serif;
}

.brand-accent {
  color: var(--muted);
}

.brand-text small {
  display: block;
  color: var(--muted);
}

.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;
}

.nav-links {
  display: flex;
  gap: 10px;
  color: var(--muted);
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-left: auto;
}

.nav-links a:hover {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 0 2px;
  border-radius: 0;
  border: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: transparent;
  color: var(--text);
  font-weight: 600;
  box-shadow: none;
}

.hero-actions .text-link {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding-bottom: 2px;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.02);
}

.text-link {
  color: var(--muted);
  font-weight: 600;
}

.page-title {
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  line-height: 0.98;
  margin: 12px 0 16px;
  font-family: "Space Grotesk", sans-serif;
}

.feature-list {
  line-height: 2;
  color: var(--muted);
}

.text-block {
  max-width: 720px;
}

.hero {
  padding: 42px 0 18px;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: none;
  pointer-events: none;
}

.hero::after {
  content: none;
}

.hero-grid,
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: center;
}

.single-column {
  max-width: 720px;
}

.eyebrow {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero-copy h1 {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 0.94;
  margin: 10px 0 12px;
  max-width: 12ch;
  text-shadow: none;
}

.lead,
.section p,
.card p,
.timeline-item p,
.project p,
.contact-box p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 10px 0 0;
}

.hero-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.card,
.project,
.contact-box,
.timeline-item {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.03);
  box-shadow: none;
  backdrop-filter: blur(14px);
}

.section {
  padding: 28px 0;
  position: relative;
}

.alt {
  background: rgba(255, 255, 255, 0.015);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.section-heading {
  max-width: 560px;
  margin-bottom: 12px;
}

.section-heading h2,
.split h2,
.contact-box h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  margin: 10px 0 16px;
}

.cards,
.projects {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.cards-minimal {
  grid-template-columns: 1fr;
}

.text-list {
  display: grid;
  gap: 6px;
  max-width: 720px;
}

.text-list > div {
  padding-top: 8px;
  border-top: none;
}

.text-list h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.text-list p {
  margin: 0;
}

.card,
.project {
  border-radius: 0;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.card::before,
.project::before,
.admin-card::before,
.contact-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: none;
  pointer-events: none;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  display: flex;
  gap: 16px;
  border-radius: 18px;
  padding: 18px;
}

.timeline-item span {
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
}

.project-tag {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 0.85rem;
  margin-bottom: 16px;
  box-shadow: none;
}

.contact-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  border-radius: 0;
  padding: 0;
}

.contact-form {
  display: grid;
  gap: 8px;
}

.contact-form-minimal {
  max-width: 560px;
  margin-top: 4px;
}

.contact-form label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border-radius: 0;
  border: none;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 1px solid rgba(255, 255, 255, 0.24);
  border-color: transparent;
}

.form-link {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--text);
  padding: 0;
  justify-self: start;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

.form-link:hover {
  color: var(--muted);
}

.admin-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
  align-items: start;
}

.admin-card {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.03);
  box-shadow: none;
  backdrop-filter: none;
  border-radius: 0;
  padding: 18px 0;
  position: relative;
  overflow: hidden;
}

.admin-form {
  display: grid;
  gap: 12px;
}

.admin-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
}

.admin-form input,
.admin-form textarea {
  width: 100%;
  border-radius: 0;
  border: none;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  padding: 12px 14px;
  font: inherit;
}

.admin-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.preview-list {
  display: grid;
  gap: 14px;
  margin: 18px 0 0;
}

.preview-list div {
  padding: 10px 0;
  border-radius: 0;
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.preview-list dt {
  color: var(--accent);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 6px;
}

.preview-list dd {
  margin: 0;
  color: var(--text);
  line-height: 1.6;
}

.reveal {
  opacity: 0;
  transform: none;
  transition: opacity 1.05s ease;
}

.reveal.visible {
  opacity: 1;
}

.cursor-wave {
  position: fixed;
  top: 0;
  left: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0);
  transition: opacity 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow:
    0 0 0 8px rgba(255, 255, 255, 0.03),
    0 0 28px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(2px);
}

.cursor-wave.is-active {
  opacity: 1;
}

.cursor-wave.is-pressed {
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow:
    0 0 0 12px rgba(255, 255, 255, 0.04),
    0 0 34px rgba(255, 255, 255, 0.12);
}

.cursor-wave__core {
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  transform-origin: center;
  animation: cursor-pulse 1.8s ease-in-out infinite;
}

@keyframes cursor-pulse {
  0%, 100% {
    transform: scale(0.92);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .hero-grid,
  .split,
  .cards,
  .projects,
  .contact-box {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: 100%;
  }

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

  .contact-box {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .hero {
    padding-top: 40px;
  }

}
