:root {
  --bg: #050505;
  --bg-alt: #0b0b0b;
  --text: #f5f5f5;
  --muted: #a3a3a3;
  --line: #1a1a1a;
  --accent: #00ff9a;
  --accent-soft: rgba(0, 255, 154, 0.12);

  --font-sans: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-pill: 999px;

  --shadow-soft: 0 20px 40px rgba(0, 0, 0, 0.4);

  --max-width: 1120px;
}

/* Strong reset to avoid host/theme styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Layout */
html, body {
  height: 100%;
}

body {
  background: radial-gradient(circle at top left, #111 0, #050505 45%, #000 100%);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100vh;
}

.shell {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--line);
}

.section--border {
  border-top: 1px solid var(--line);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(5, 5, 5, 0.92), rgba(5, 5, 5, 0.7), transparent);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-soft);
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.35rem 0;
  position: relative;
}

.nav a[aria-current="page"] {
  color: var(--text);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.15rem;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.18s ease-out;
}

.nav a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.3rem;
  flex-direction: column;
  gap: 0.22rem;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  transition: transform 0.18s ease-out, opacity 0.18s ease-out;
}

.nav-toggle--open span:nth-child(1) {
  transform: translateY(2px) rotate(45deg);
}

.nav-toggle--open span:nth-child(2) {
  transform: translateY(-2px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #000;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease-out, color 0.18s ease-out, transform 0.12s ease-out, box-shadow 0.18s ease-out;
}

.btn:hover {
  background: #000;
  color: var(--accent);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: none;
}

.btn--small {
  padding: 0.45rem 0.95rem;
  font-size: 0.75rem;
}

/* Pills & badges */
.availability-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.7);
  color: var(--muted);
  font-size: 0.75rem;
}

.availability-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #3dfd9b;
  box-shadow: 0 0 10px rgba(61, 253, 155, 0.7);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #3dfd9b;
  margin-right: 0.35rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  font-size: 0.75rem;
  color: var(--muted);
}

/* Text styles */
.hero-kicker {
  margin: 1.5rem 0 0.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
}

h1 {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  letter-spacing: -0.04em;
  line-height: 1.12;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
}

h3 {
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.hero-lede {
  margin-top: 1.4rem;
  max-width: 40rem;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--muted);
}

.highlight {
  color: var(--accent);
}

.muted {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.7;
}

.small {
  font-size: 0.8rem;
}

.link {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

/* Section headers */
.section-header {
  margin-bottom: 2rem;
}

.section-tagline {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

/* Hero layout */
.hero {
  padding-top: 6rem;
}

.hero-shell {
  padding-top: 1.5rem;
  padding-bottom: 3rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.6rem;
}

/* Grid */
.grid {
  display: grid;
  gap: 1.6rem;
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Cards */
.card {
  padding: 1.3rem 1.3rem 1.4rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: radial-gradient(circle at top left, #121212 0, #050505 60%);
}

.card--ghost {
  background: transparent;
  border-style: dashed;
  text-decoration: none;
  color: inherit;
  transition: background 0.18s ease-out, transform 0.12s ease-out, border-color 0.18s ease-out;
}

.card--ghost:hover {
  background: #0c0c0c;
  border-color: var(--accent);
  transform: translateY(-2px);
}

.card-label {
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 0.4rem;
}

/* Lists */
.list {
  list-style: none;
  padding-left: 0;
  margin: 0.4rem 0 0;
}

.list li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.45rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0.05rem;
  color: var(--accent);
}

/* Work grid */
.work-grid .card h3 {
  margin-top: 0.35rem;
}

/* Subheading */
.subheading {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

/* Domains grid */
.domains-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
}

.domain-card h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tag {
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 0.1rem 0.6rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.domains-note {
  margin-top: 1.7rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 2rem;
  background: #020202;
}

.footer-shell {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.footer-brand {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 1024px) {
  .domains-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .header-shell {
    gap: 0.6rem;
  }

  .nav-links {
    position: absolute;
    inset: 56px 1.5rem auto;
    padding: 0.8rem 1rem;
    background: rgba(5, 5, 5, 0.98);
    border-radius: 12px;
    border: 1px solid var(--line);
    display: none;
    flex-direction: column;
    gap: 0.4rem;
  }

  .nav-links--open {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 720px) {
  .grid--2,
  .grid--3 {
    grid-template-columns: 1fr;
  }

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

  .hero {
    padding-top: 5rem;
  }

  .hero-lede {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .shell {
    padding: 0 1.1rem;
  }

  .header-shell {
    padding-inline: 1.1rem;
  }

  h1 {
    font-size: 2.1rem;
  }

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