:root {
  --bg: #020712;
  --ink: #f5f9ff;
  --muted: #aab8d4;
  --soft: #7585a8;
  --line: rgba(142, 183, 255, 0.22);
  --panel: rgba(7, 15, 32, 0.74);
  --panel-strong: rgba(11, 22, 45, 0.9);
  --teal: #49f2cf;
  --blue: #3bb7ff;
  --purple: #b184ff;
  --gold: #ffd369;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  min-height: 100vh;
}

body::before,
body::after,
.space-scene {
  inset: 0;
  pointer-events: none;
  position: fixed;
}

body::before {
  background:
    radial-gradient(circle at 22% 14%, rgba(62, 160, 255, 0.34), transparent 22rem),
    radial-gradient(circle at 62% 2%, rgba(144, 96, 255, 0.26), transparent 20rem),
    radial-gradient(circle at 78% 62%, rgba(64, 242, 207, 0.16), transparent 18rem),
    linear-gradient(180deg, rgba(1, 5, 13, 0.6), rgba(1, 4, 11, 0.94));
  content: "";
  z-index: -4;
}

body::after {
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.86) 0 1px, transparent 1.6px) 0 0 / 94px 94px,
    radial-gradient(circle, rgba(91, 199, 255, 0.72) 0 1px, transparent 1.6px) 24px 36px / 142px 142px,
    radial-gradient(circle, rgba(255, 211, 105, 0.72) 0 1px, transparent 1.5px) 52px 12px / 186px 186px;
  content: "";
  opacity: 0.38;
  z-index: -3;
}

.space-scene {
  background:
    radial-gradient(ellipse at 16% 64%, rgba(73, 242, 207, 0.17), transparent 28rem),
    radial-gradient(ellipse at 54% 44%, rgba(59, 183, 255, 0.2), transparent 34rem),
    radial-gradient(ellipse at 84% 18%, rgba(177, 132, 255, 0.16), transparent 28rem),
    linear-gradient(90deg, rgba(2, 7, 18, 0.92), rgba(2, 7, 18, 0.5), rgba(2, 7, 18, 0.9));
  z-index: -2;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 4px;
}

.app-header {
  align-items: center;
  background: rgba(3, 9, 22, 0.78);
  border-bottom: 1px solid rgba(113, 154, 222, 0.18);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  min-height: 64px;
  padding: 12px clamp(18px, 4vw, 46px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand,
.header-nav {
  align-items: center;
  display: flex;
}

.brand {
  gap: 11px;
  min-width: 0;
}

.brand-mark {
  align-items: center;
  background: rgba(9, 20, 42, 0.82);
  border: 1px solid rgba(73, 242, 207, 0.36);
  border-radius: 9px;
  box-shadow: 0 0 26px rgba(73, 242, 207, 0.18);
  display: inline-flex;
  flex: 0 0 auto;
  height: 36px;
  justify-content: center;
  overflow: hidden;
  width: 36px;
}

.brand-mark img {
  display: block;
  height: 27px;
  object-fit: contain;
  width: 27px;
}

.brand strong {
  display: block;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  line-height: 1.05;
}

.brand small,
.eyebrow,
.project-category,
.project-meta dt {
  color: #b7c4e1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand small {
  display: block;
  font-size: 0.66rem;
  font-weight: 800;
  margin-top: 3px;
}

.header-nav {
  gap: 18px;
}

.header-nav a {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
  padding: 8px 0;
  position: relative;
}

.header-nav a.active,
.header-nav a:hover {
  color: var(--ink);
}

.header-nav a.active::after {
  background: linear-gradient(90deg, var(--teal), var(--blue));
  border-radius: 999px;
  bottom: 0;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  right: 0;
}

.shell {
  margin: 0 auto;
  max-width: 1120px;
  padding: clamp(34px, 7vw, 76px) clamp(18px, 4vw, 46px) 32px;
}

.intro {
  align-items: end;
  display: flex;
  gap: 22px;
  justify-content: space-between;
  margin-bottom: 22px;
}

h1,
h2,
h3,
p,
dl,
dd {
  margin: 0;
}

h1 {
  font-size: clamp(2.2rem, 7vw, 5.1rem);
  letter-spacing: 0;
  line-height: 0.92;
}

.intro p {
  color: #cbd7ef;
  font-size: 1rem;
  line-height: 1.5;
  margin-top: 12px;
}

.availability {
  align-items: center;
  background: rgba(6, 16, 35, 0.72);
  border: 1px solid rgba(73, 242, 207, 0.26);
  border-radius: 999px;
  box-shadow: 0 0 24px rgba(73, 242, 207, 0.12);
  color: #d8fff7;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.8rem;
  font-weight: 850;
  gap: 8px;
  letter-spacing: 0.12em;
  padding: 9px 13px;
  text-transform: uppercase;
}

.availability > span:first-child {
  background: var(--teal);
  border-radius: 999px;
  box-shadow: 0 0 14px var(--teal);
  height: 8px;
  width: 8px;
}

.project-panel {
  background: rgba(4, 11, 26, 0.56);
  border: 1px solid rgba(111, 151, 218, 0.22);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 22px 70px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.panel-head {
  align-items: center;
  background: rgba(9, 20, 42, 0.52);
  border-bottom: 1px solid rgba(111, 151, 218, 0.18);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 18px 20px;
}

.eyebrow {
  display: block;
  font-size: 0.68rem;
  font-weight: 850;
  margin-bottom: 4px;
}

.panel-head h2 {
  font-size: 1.05rem;
  line-height: 1.1;
}

.panel-line {
  background: linear-gradient(90deg, transparent, rgba(73, 242, 207, 0.55), transparent);
  flex: 1;
  height: 1px;
  max-width: 420px;
}

.project-list {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.project-row {
  --accent: var(--teal);
  align-items: center;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 13%, transparent), transparent 38%),
    var(--panel);
  border: 1px solid color-mix(in srgb, var(--accent) 42%, var(--line));
  border-radius: 15px;
  display: grid;
  gap: 16px;
  grid-template-columns: 58px minmax(0, 1fr) minmax(190px, 0.36fr) 112px;
  min-height: 92px;
  padding: 16px;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.project-row:hover {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 18%, transparent), transparent 42%),
    var(--panel-strong);
  border-color: color-mix(in srgb, var(--accent) 78%, white 4%);
  box-shadow: 0 0 32px color-mix(in srgb, var(--accent) 18%, transparent);
  transform: translateY(-1px);
}

.accent-teal {
  --accent: var(--teal);
}

.accent-blue {
  --accent: var(--blue);
}

.accent-purple {
  --accent: var(--purple);
}

.project-icon {
  align-items: center;
  background: rgba(3, 10, 24, 0.78);
  border: 1px solid color-mix(in srgb, var(--accent) 54%, transparent);
  border-radius: 14px;
  box-shadow: inset 0 0 18px color-mix(in srgb, var(--accent) 12%, transparent), 0 0 20px color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  display: flex;
  height: 54px;
  justify-content: center;
  width: 54px;
}

.project-icon svg {
  fill: none;
  height: 28px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 28px;
}

.project-icon svg path:first-child,
.project-icon svg circle {
  fill: color-mix(in srgb, var(--accent) 12%, transparent);
}

.project-category {
  color: var(--accent);
  display: block;
  font-size: 0.68rem;
  font-weight: 900;
  margin-bottom: 5px;
}

.project-main h3 {
  font-size: 1.22rem;
  line-height: 1.1;
}

.project-main p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
  margin-top: 7px;
}

.project-meta {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr;
}

.project-meta div {
  background: rgba(1, 7, 18, 0.42);
  border: 1px solid rgba(142, 183, 255, 0.14);
  border-radius: 10px;
  padding: 9px 10px;
}

.project-meta dt {
  font-size: 0.62rem;
  font-weight: 850;
  margin-bottom: 4px;
}

.project-meta dd {
  color: #edf5ff;
  font-size: 0.88rem;
  font-weight: 750;
}

.open-button {
  align-items: center;
  background: rgba(4, 12, 28, 0.8);
  border: 1px solid color-mix(in srgb, var(--accent) 72%, white 5%);
  border-radius: 999px;
  box-shadow: inset 0 0 16px color-mix(in srgb, var(--accent) 10%, transparent);
  color: #f7fbff;
  display: inline-flex;
  font-size: 0.88rem;
  font-weight: 850;
  gap: 8px;
  justify-content: center;
  justify-self: end;
  min-width: 96px;
  padding: 10px 15px;
  white-space: nowrap;
}

.open-button:hover {
  background: color-mix(in srgb, var(--accent) 18%, rgba(4, 12, 28, 0.9));
  box-shadow: 0 0 24px color-mix(in srgb, var(--accent) 28%, transparent);
}

.site-footer {
  align-items: center;
  color: var(--soft);
  display: flex;
  font-size: 0.82rem;
  gap: 16px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1120px;
  padding: 18px clamp(18px, 4vw, 46px) 28px;
}

@media (max-width: 860px) {
  .intro {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-row {
    grid-template-columns: 54px minmax(0, 1fr) 104px;
  }

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

  .open-button {
    grid-column: 3;
    grid-row: 1;
  }
}

@media (max-width: 620px) {
  .app-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-nav {
    width: 100%;
  }

  .project-panel {
    border-radius: 14px;
  }

  .panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .panel-line {
    max-width: none;
    width: 100%;
  }

  .project-row {
    grid-template-columns: 48px minmax(0, 1fr);
    padding: 14px;
  }

  .project-icon {
    border-radius: 12px;
    height: 48px;
    width: 48px;
  }

  .project-main {
    min-width: 0;
  }

  .project-meta {
    grid-column: 1 / -1;
  }

  .open-button {
    grid-column: 1 / -1;
    grid-row: auto;
    justify-self: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
