/* Kyros-inspired — dark canvas, lime accent, bold type */

:root {
  --color-bg: #050505;
  --color-bg-soft: #0f0f0f;
  --color-bg-card: #111111;
  --color-bg-card-hover: #161616;
  --color-ink: #ffffff;
  --color-body: #a3a3a3;
  --color-muted: #666666;
  --color-border: #222222;
  --color-border-hover: #333333;
  --color-accent: #c8ff00;
  --color-accent-dim: rgba(200, 255, 0, 0.12);
  --color-accent-text: #050505;

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-logo: 'Satoshi', 'General Sans', 'Cabinet Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --space-xs: 8px;
  --space-sm: 12px;
  --space-base: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-xxl: 64px;
  --space-section: clamp(80px, 10vh, 120px);

  --max-width: 1160px;
  --nav-height: 72px;
  --rounded-sm: 8px;
  --rounded-md: 12px;
  --rounded-lg: 16px;
  --rounded-pill: 9999px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-body);
  background: var(--color-bg);
  min-height: 100dvh;
}

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

.mono {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

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

/* Page */
.page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.main {
  flex: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg) var(--space-section);
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-base);
  height: var(--nav-height);
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.nav__brand {
  display: flex;
  align-items: center;
  color: var(--color-ink);
}

.wordmark {
  font-family: var(--font-logo);
  font-size: clamp(1.25rem, 3vw, 1.5625rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1;
  white-space: nowrap;
}

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

.wordmark__tld {
  color: var(--color-ink);
}

.footer__brand .wordmark {
  font-size: 1.125rem;
}

.nav__links {
  display: none;
  gap: var(--space-lg);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-body);
}

.nav__links a {
  transition: color 0.2s;
}

.nav__links a:hover {
  color: var(--color-ink);
}

@media (min-width: 640px) {
  .nav__links {
    display: flex;
  }
}

/* Buttons */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: var(--rounded-pill);
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-ink);
  transition:
    background 0.2s var(--ease-out),
    border-color 0.2s var(--ease-out),
    transform 0.2s var(--ease-out);
  white-space: nowrap;
}

.btn-pill:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-1px);
}

.btn-pill--accent {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-accent-text);
}

.btn-pill--accent:hover {
  background: #d4ff33;
  border-color: #d4ff33;
}

.nav__cta {
  display: none;
}

@media (min-width: 640px) {
  .nav__cta {
    display: inline-flex;
  }
}

/* Hero */
.hero {
  padding-top: calc(var(--space-section) - var(--nav-height) + 32px);
  padding-bottom: var(--space-xxl);
}

.hero__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-body);
  margin-bottom: var(--space-xl);
}

.hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 12px rgba(200, 255, 0, 0.5);
  animation: pulse 2.5s var(--ease-out) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.hero__eyebrow {
  color: var(--color-muted);
  margin-bottom: var(--space-base);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.75rem;
}

.hero__title {
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--color-ink);
  margin-bottom: var(--space-xl);
}

.hero__title em {
  font-style: normal;
  color: var(--color-accent);
}

.hero__lede {
  max-width: 520px;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-body);
  margin-bottom: var(--space-lg);
}

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-xl);
}

.pill {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-ink);
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--rounded-pill);
}

.hero__cta {
  margin-top: var(--space-sm);
}

/* Sections */
.section {
  padding: var(--space-xxl) 0;
  border-top: 1px solid var(--color-border);
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-sm);
  margin-bottom: var(--space-base);
}

.section__index {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-muted);
  font-size: 0.8125rem;
}

.section__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

.section__dash {
  color: var(--color-muted);
}

.section__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--color-ink);
}

.section__subtitle {
  max-width: 560px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-body);
  margin-bottom: var(--space-xl);
}

/* Sites table */
.sites-section {
  padding-top: var(--space-xl);
}

.sites-section .section__head {
  margin-bottom: var(--space-base);
  align-items: center;
}

.sites-section__meta {
  margin-left: auto;
  font-size: 0.6875rem;
  color: var(--color-muted);
  white-space: nowrap;
}

@media (max-width: 720px) {
  .sites-section__meta {
    flex-basis: 100%;
    margin-left: 0;
    margin-top: 4px;
  }
}

.section--compact {
  padding: var(--space-xl) 0 var(--space-lg);
}

.sites-dir {
  column-count: 1;
  column-gap: var(--space-lg);
}

@media (min-width: 800px) {
  .sites-dir {
    column-count: 2;
  }
}

.sites-dir__group {
  break-inside: avoid;
  margin-bottom: var(--space-xl);
}

.sites-dir__letter {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  padding-bottom: 8px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--color-border);
}

.sites-dir__list {
  list-style: none;
}

.sites-dir__item {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 10px;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
  border-bottom: 1px solid var(--color-border);
  color: inherit;
}

.sites-dir__item:hover .sites-dir__label {
  color: var(--color-accent);
}

.sites-dir__item--offline {
  opacity: 0.45;
}

.sites-dir__item--offline:hover {
  opacity: 0.7;
}

.sites-dir__icon img {
  display: block;
  border-radius: 3px;
  background: var(--color-bg-soft);
}

.sites-dir__text {
  min-width: 0;
}

.sites-dir__label {
  display: block;
  font-weight: 500;
  color: var(--color-ink);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sites-dir__domain {
  display: block;
  font-size: 0.6875rem;
  color: var(--color-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sites-dir__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.sites-dir__dot--online {
  background: var(--color-accent);
  box-shadow: 0 0 6px rgba(200, 255, 0, 0.45);
}

.sites-dir__dot--offline {
  background: var(--color-muted);
}

/* Project grid */
.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
  list-style: none;
}

@media (min-width: 640px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-base);
  }
}

.project-grid--compact {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-lg);
  min-height: 180px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--rounded-lg);
  color: var(--color-ink);
  transition:
    background 0.25s var(--ease-out),
    border-color 0.25s var(--ease-out),
    transform 0.25s var(--ease-out);
}

.project-card:hover {
  background: var(--color-bg-card-hover);
  border-color: var(--color-border-hover);
  transform: translateY(-2px);
}

.project-card:hover .project-card__arrow {
  color: var(--color-accent);
  transform: translate(2px, -2px);
}

.project-card__tag {
  font-size: 0.75rem;
  color: var(--color-accent);
}

.project-card__name {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.project-card__desc {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--color-body);
  flex: 1;
}

.project-card__arrow {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  color: var(--color-muted);
  transition: transform 0.25s var(--ease-out), color 0.25s var(--ease-out);
}

.project-card--compact {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: auto;
  padding: 14px 18px;
  gap: var(--space-base);
}

.project-card--compact .project-card__name {
  font-size: 0.875rem;
  font-weight: 500;
}

.project-card--compact .project-card__arrow {
  position: static;
}

/* Featured */
.featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-base);
  list-style: none;
}

@media (min-width: 640px) {
  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .featured-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.featured-card {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: var(--rounded-lg);
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
}

.featured-card__shot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(10px);
  transform: scale(1.12);
  transition: transform 0.4s var(--ease-out), filter 0.4s var(--ease-out);
}

.featured-card__veil {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.42);
  transition: opacity 0.4s var(--ease-out);
}

.featured-card__domain {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--color-ink);
  text-align: center;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.65);
}

.featured-card:hover .featured-card__shot {
  filter: blur(0);
  transform: scale(1);
}

.featured-card:hover .featured-card__veil {
  opacity: 0;
}

.featured-card:hover .featured-card__domain {
  color: var(--color-accent);
}

/* Contact */
.contact-section {
  padding: var(--space-xxl) 0;
  border-top: 1px solid var(--color-border);
}

.contact-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-xl);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--rounded-lg);
  color: var(--color-ink);
  transition: border-color 0.25s var(--ease-out);
}

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

.contact-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--rounded-md);
  background: var(--color-accent-dim);
  color: var(--color-accent);
  flex-shrink: 0;
}

.contact-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 200px;
}

.contact-card__body strong {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.contact-card__body span {
  font-size: 0.875rem;
  color: var(--color-body);
}

.contact-card__btn {
  pointer-events: none;
}

/* Footer */
.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-lg);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-xxl) var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer__tagline {
  color: var(--color-muted);
  font-size: 0.75rem;
}

.footer__meta {
  text-align: right;
  font-size: 0.8125rem;
  color: var(--color-muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Focus */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* Animations */
@media (prefers-reduced-motion: no-preference) {
  .fade-in {
    animation: fadeUp 0.8s var(--ease-out) both;
  }

  .fade-in--1 { animation-delay: 0.05s; }
  .fade-in--2 { animation-delay: 0.12s; }
  .fade-in--3 { animation-delay: 0.19s; }
  .fade-in--4 { animation-delay: 0.26s; }
  .fade-in--5 { animation-delay: 0.33s; }

  @keyframes fadeUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .fade-in { animation: none; }
  .hero__dot { animation: none; }
  html { scroll-behavior: auto; }
}
