:root {
  /* Teal / cyan noir — deep blue-black, chrome HUD, sunset + lime as rare accents (little-to-no purple) */
  --chrome: #3cf0ff;
  --chrome-dim: #1aa7b8;
  --teal: #3db8c4;
  --teal-dim: #2a7a82;
  --sunset: #ff9f6e;
  --sunset-dim: #c96d48;
  --lime: #d4ff4a;
  --lime-dim: #9fe632;
  --blue: #5b9dff;
  --blue-deep: #2d5a8c;
  --citrus: var(--sunset);
  --sprout: var(--lime-dim);
  --aqua: var(--chrome);
  --bloom: var(--teal);

  --bg-deep: #020810;
  --bg: #051018;
  --bg-mid: #081c24;
  --bg-elevated: #0e2430;
  --text: #eef4f6;
  --text-muted: #8a9dad;

  --accent: var(--chrome);
  --accent-hover: #9fffff;
  --accent-soft: rgba(60, 240, 255, 0.12);
  --accent-heat-soft: rgba(255, 159, 110, 0.08);
  --accent-border: rgba(60, 240, 255, 0.38);
  --accent-border-strong: rgba(61, 184, 196, 0.42);
  --accent-glow: rgba(60, 240, 255, 0.28);
  --focus-ring: 0 0 0 2px var(--bg-deep), 0 0 0 4px rgba(60, 240, 255, 0.55);

  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(60, 240, 255, 0.22);
  --radius: 18px;
  --radius-sm: 12px;
  --font-sans: "Space Grotesk", system-ui, sans-serif;
  --font-display: "Syne", var(--font-sans);
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(60, 240, 255, 0.05);
  --shadow-hover:
    0 32px 80px rgba(0, 0, 0, 0.62),
    0 0 0 1px rgba(45, 90, 140, 0.18),
    0 0 56px -12px rgba(60, 240, 255, 0.16);

  --gradient-spray: linear-gradient(110deg, var(--chrome) 0%, var(--blue) 38%, var(--teal) 68%, var(--lime) 100%);
  --gradient-spray-soft: linear-gradient(
    125deg,
    rgba(60, 240, 255, 0.12) 0%,
    rgba(45, 90, 140, 0.12) 42%,
    rgba(61, 184, 196, 0.08) 100%
  );

  --glow-cyan-wash: rgba(60, 240, 255, 0.14);
  --glow-deep-blue-wash: rgba(35, 75, 120, 0.18);
  --glow-sunset-wash: rgba(255, 159, 110, 0.09);
  --glow-lime-wash: rgba(212, 255, 74, 0.05);

  --header-blur: 18px;
  color-scheme: dark;
}

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

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Slow drifting neons + haze (Blade Runner / vaporwave); body sits above for content */
html::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 120% 85% at 5% -5%, var(--glow-deep-blue-wash) 0%, transparent 44%),
    radial-gradient(ellipse 100% 75% at 100% 0%, var(--glow-cyan-wash) 0%, transparent 48%),
    radial-gradient(ellipse 75% 55% at 85% 100%, var(--glow-sunset-wash) 0%, transparent 52%),
    radial-gradient(ellipse 65% 45% at 0% 100%, var(--glow-lime-wash) 0%, transparent 50%),
    linear-gradient(185deg, var(--bg-deep) 0%, var(--bg) 38%, var(--bg-mid) 100%);
  animation: neo-atmosphere 16s ease-in-out infinite alternate;
}

html::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(60, 240, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 120, 150, 0.028) 1px, transparent 1px);
  background-size: 52px 52px;
  mix-blend-mode: screen;
  animation: neo-grid-pulse 22s ease-in-out infinite alternate;
}

@keyframes neo-atmosphere {
  0% {
    opacity: 0.78;
    filter: saturate(0.94) hue-rotate(-4deg);
  }
  100% {
    opacity: 1;
    filter: saturate(1.06) hue-rotate(6deg);
  }
}

@keyframes neo-grid-pulse {
  0% {
    opacity: 0.22;
  }
  100% {
    opacity: 0.48;
  }
}

@keyframes neo-header-edge {
  0% {
    border-bottom-color: rgba(60, 240, 255, 0.14);
    box-shadow: 0 8px 44px rgba(0, 0, 0, 0.55), 0 0 32px -8px rgba(60, 240, 255, 0.06);
  }
  100% {
    border-bottom-color: rgba(61, 184, 196, 0.26);
    box-shadow: 0 8px 44px rgba(0, 0, 0, 0.55), 0 0 40px -6px rgba(45, 90, 140, 0.12);
  }
}

@keyframes logo-engine-beacon-pulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(60, 240, 255, 0.45);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
    box-shadow: 0 0 0 10px rgba(60, 240, 255, 0);
  }
}

body {
  position: relative;
  z-index: 1;
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.62;
  letter-spacing: 0.02em;
  color: var(--text);
  background: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(60, 240, 255, 0.28);
  color: var(--bg-deep);
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 9999;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.18s ease, opacity 0.18s ease;
}

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

a:focus-visible {
  outline: none;
  color: var(--accent-hover);
  box-shadow: var(--focus-ring);
  border-radius: 4px;
}

/* Top bar: ~1.125in tall full width; logo mark ~0.75in tall (25% smaller than 1.5in / 1in) */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
  height: 1.125in;
  min-height: 1.125in;
  min-width: 0;
  padding-left: max(1rem, env(safe-area-inset-left, 0px));
  padding-right: max(1rem, env(safe-area-inset-right, 0px));
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(
    180deg,
    rgba(2, 8, 16, 0.97) 0%,
    rgba(5, 16, 24, 0.88) 65%,
    rgba(5, 16, 24, 0) 100%
  );
  backdrop-filter: blur(var(--header-blur));
  -webkit-backdrop-filter: blur(var(--header-blur));
  border-bottom: 1px solid rgba(60, 240, 255, 0.14);
  box-shadow: 0 8px 44px rgba(0, 0, 0, 0.55), 0 0 32px -8px rgba(60, 240, 255, 0.06);
  animation: neo-header-edge 12s ease-in-out infinite alternate;
  flex-shrink: 0;
}

.site-header .nav {
  flex: 1;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}

/* Logo mark + engine status dot/label */
.site-header .site-header-brand {
  gap: 0.22rem 0.42rem;
}

.site-header .nav-start {
  flex-shrink: 0;
}

.site-header .logo {
  margin-inline-end: -0.26rem;
  /* Clip neo sweep / glow so they stay in the bar without hiding the whole header. */
  overflow: hidden;
  border-radius: 8px;
}

/* Bar is 1.125in; scale mark to fit with a sliver of slack for hover scale. */
.site-header .logo-visual {
  height: 1.02in;
  max-height: 1.02in;
}

.site-header .logo .logo-visual img {
  height: 1.02in;
  max-height: 1.02in;
}

.site-header .logo-visual::before {
  inset: -2px -8px;
}

.site-header .site-header-tagline {
  margin-inline-start: -0.06rem;
  font-size: clamp(0.78rem, 1.35vw, 0.98rem);
  line-height: 1.22;
}

.site-header-brand {
  display: flex;
  align-items: center;
  gap: 0.22rem 0.38rem;
  min-width: 0;
  flex: 0 1 auto;
}

.site-header-tagline {
  margin: 0;
  align-self: center;
  max-width: min(36ch, 42vw);
  font-family: "Space Grotesk", var(--font-sans), system-ui, sans-serif;
  font-size: clamp(0.62rem, 1.05vw, 0.8rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.28;
  color: rgba(196, 218, 228, 0.88);
  text-wrap: balance;
  text-transform: none;
}

@media (max-width: 520px) {
  .site-header-tagline {
    display: none;
  }
}

.logo-engine-beacon {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  margin-inline-start: 0.12rem;
  pointer-events: none;
  line-height: 1.2;
}

.logo-engine-beacon-dot {
  display: block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
}

.logo-engine-beacon-label {
  display: flex;
  flex-direction: column;
  gap: 0.06rem;
  font-family: "Space Grotesk", var(--font-sans), system-ui, sans-serif;
  font-size: clamp(0.58rem, 1vw, 0.74rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.12;
}

.logo-engine-beacon-label-line {
  display: block;
  white-space: nowrap;
}

.logo-engine-beacon--online .logo-engine-beacon-dot {
  background: radial-gradient(circle at 40% 35%, #d9fbff 0%, var(--chrome) 42%, var(--teal) 100%);
  box-shadow: 0 0 14px rgba(60, 240, 255, 0.6), 0 0 24px rgba(45, 90, 140, 0.32);
  animation: logo-engine-beacon-pulse 2.3s ease-in-out infinite;
}

.logo-engine-beacon--online .logo-engine-beacon-label {
  color: rgba(60, 240, 255, 0.78);
}

.logo-engine-beacon--offline .logo-engine-beacon-dot {
  background: radial-gradient(
    circle at 40% 35%,
    #ffd0dc 0%,
    rgba(120, 28, 48, 0.95) 42%,
    rgba(88, 12, 28, 1) 100%
  );
  box-shadow: 0 0 10px rgba(200, 48, 72, 0.5), 0 0 18px rgba(60, 12, 22, 0.4);
  animation: none;
}

.logo-engine-beacon--offline .logo-engine-beacon-label {
  color: rgba(232, 140, 158, 0.88);
}

@media (max-width: 640px) {
  .logo-engine-beacon-label {
    display: none;
  }
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  line-height: 0;
  color: var(--text);
  border-radius: 8px;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  max-width: min(50vw, 19rem);
}

.logo:focus-visible {
  border-radius: 8px;
}

.logo-visual {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 2.109375in;
  max-height: 2.109375in;
  line-height: 0;
  background: transparent;
  isolation: isolate;
}

.logo-visual::before {
  content: "";
  position: absolute;
  inset: -4px -12px;
  border-radius: 14px;
  background:
    radial-gradient(ellipse 92% 78% at 22% 32%, rgba(60, 240, 255, 0.12) 0%, transparent 58%),
    linear-gradient(158deg, rgba(255, 255, 255, 0.06) 0%, transparent 42%, rgba(91, 157, 255, 0.05) 100%);
  opacity: 0;
  transform: scale(0.985);
  transition:
    opacity 0.32s ease,
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 0;
  pointer-events: none;
}

.logo .logo-visual img {
  position: relative;
  z-index: 1;
  display: block;
  height: 2.109375in;
  max-height: 2.109375in;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  background: transparent;
  filter: drop-shadow(0 3px 14px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 14px rgba(60, 240, 255, 0.14));
  transition:
    filter 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) {
  .logo:hover .logo-visual::before {
    opacity: 1;
    transform: scale(1);
  }

  .logo:hover .logo-visual img {
    filter: brightness(1.05) saturate(1.04) drop-shadow(0 4px 16px rgba(0, 0, 0, 0.5))
      drop-shadow(0 0 22px rgba(60, 240, 255, 0.22));
    transform: translateY(-1px);
  }
}

.logo:focus-visible .logo-visual::before {
  opacity: 1;
  transform: scale(1);
}

.logo:focus-visible .logo-visual img {
  filter: brightness(1.05) saturate(1.04) drop-shadow(0 4px 16px rgba(0, 0, 0, 0.5))
    drop-shadow(0 0 22px rgba(60, 240, 255, 0.22));
  transform: translateY(-1px);
}

.nav {
  display: flex;
  gap: 0.6rem;
  flex-wrap: nowrap;
  align-items: center;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-start {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
  min-width: 0;
  flex: 0 1 auto;
  justify-content: flex-start;
}

/* Primary nav: logo | end strip (page links, account) */
.site-header .nav-end-slot {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 0.55rem;
  min-width: 0;
  margin-left: auto;
}

.site-header .nav-end-slot .nav-links-root {
  flex: 0 0 auto;
}

.site-header .nav-end-slot .nav-account-root {
  flex: 0 0 auto;
}

/* Narrow viewports (devtools docked, tablets, phones): wrap instead of horizontal scroll; second row for engine + links */
@media (max-width: 960px) {
  .site-header {
    height: auto;
    min-height: 3.15rem;
    padding-top: max(0.35rem, env(safe-area-inset-top, 0px));
    padding-bottom: 0.35rem;
  }

  .site-header .logo-visual,
  .site-header .logo .logo-visual img {
    height: clamp(2rem, 12vw, 1.02in);
    max-height: clamp(2rem, 12vw, 1.02in);
  }

  .site-header .nav {
    flex-wrap: wrap;
    align-content: center;
    row-gap: 0.4rem;
    column-gap: 0.45rem;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .site-header .nav-start {
    order: 1;
    flex: 0 1 auto;
    min-width: 0;
    max-width: min(100%, 58%);
  }

  .site-header .nav-end-slot {
    display: contents;
  }

  .site-header .nav-account-root {
    order: 2;
    flex: 1 1 0;
    min-width: 0;
    margin-left: auto;
    justify-content: flex-end;
  }

  .site-header .nav-links-root {
    order: 4;
    flex: 0 0 auto;
    min-width: 0;
  }

  .site-header .nav::before {
    content: "";
    order: 3;
    flex: 1 1 100%;
    height: 0;
    border-top: 1px solid rgba(60, 240, 255, 0.1);
    margin-top: 0.05rem;
    pointer-events: none;
  }

  .site-header .nav-account-user {
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 100%;
  }

  .nav-account-badge .nav-account-badge-svg {
    height: clamp(1.15rem, 4.5vw, 1.52rem);
  }

  .nav-account-email {
    max-width: min(11rem, 42vw);
  }

  .nav-badge-action {
    padding: 0.22rem 0.42rem;
    min-height: 2.25rem;
  }

  .nav-logout-btn {
    min-height: 2.25rem;
    padding: 0.28rem 0.62rem;
  }

  .nav-trashed-link {
    min-height: 2.35rem;
    padding: 0.38rem 0.72rem 0.38rem 0.42rem;
  }

  .site-header .logo {
    max-width: min(54vw, 13rem);
  }
}

.nav-trashed {
  position: relative;
}

.nav-links-root {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.45rem;
}

.nav-trashed-link {
  position: relative;
  display: inline-grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 0.38rem;
  min-height: 2rem;
  padding: 0.35rem 0.68rem 0.35rem 0.38rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(125deg, rgba(14, 32, 44, 0.88) 0%, rgba(4, 12, 18, 0.8) 48%, rgba(6, 14, 22, 0.88) 100%);
  color: #d4e7ee;
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.2s ease, transform 0.18s ease, color 0.18s ease;
}

.nav-trashed-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 78% 62% at 80% 0%, rgba(60, 240, 255, 0.14) 0%, transparent 56%);
  transition: opacity 0.2s ease;
}

.nav-trashed-slot {
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  padding: 0.16rem 0.34rem;
  border-radius: 999px;
  color: #08131d;
  background: linear-gradient(135deg, rgba(60, 240, 255, 0.88) 0%, rgba(255, 159, 110, 0.72) 100%);
  box-shadow: 0 0 10px rgba(60, 240, 255, 0.28);
}

.nav-trashed-icon {
  display: inline-grid;
  place-items: center;
  color: #9feef5;
}

.nav-trashed-svg {
  display: block;
}

.nav-trashed-label {
  white-space: nowrap;
}

.nav-trashed-link.is-active,
.nav-trashed-link[aria-current="page"] {
  border-color: rgba(60, 240, 255, 0.45);
  background: rgba(60, 240, 255, 0.11);
  color: #effbfd;
  box-shadow: 0 0 0 1px rgba(60, 240, 255, 0.14), 0 10px 30px rgba(0, 0, 0, 0.32);
}

@media (hover: hover) {
  .nav-trashed-link:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(8, 22, 32, 0.75);
    color: #f5fcff;
    transform: translateY(-1px);
  }

  .nav-trashed-link:hover::after {
    opacity: 1;
  }
}

.nav-trashed-link:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.25rem 1.5rem 4.5rem;
}

.hero {
  padding: 1.5rem 0 3.25rem;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 3.85rem);
  font-weight: 700;
  font-style: normal;
  line-height: 1.08;
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
  text-shadow:
    0 0 48px rgba(60, 240, 255, 0.2),
    0 0 96px rgba(45, 90, 140, 0.18),
    0 0 120px rgba(61, 184, 196, 0.08);
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 38ch;
  margin: 0;
  font-weight: 500;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
}

.hero-tags li {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  color: #eefcf4;
  background: var(--gradient-spray-soft);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 0 0 1px rgba(60, 240, 255, 0.1) inset;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

@media (hover: hover) {
  .hero-tags li:hover {
    border-color: var(--border-strong);
    transform: translateY(-1px);
  }
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  margin-top: 2rem;
}

.hero-cta-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  border: 1px solid rgba(60, 240, 255, 0.42);
  border: 1px solid color-mix(in srgb, var(--chrome) 60%, var(--teal) 40%);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.22s ease, border-color 0.18s ease, background 0.18s ease;
}

.btn-primary {
  color: #050210;
  background: linear-gradient(135deg, #5cf8ff 0%, #4a9fe6 36%, #3db8b0 72%, #c4f06a 100%);
  box-shadow:
    0 0 32px rgba(60, 240, 255, 0.28),
    0 0 44px rgba(45, 90, 140, 0.14),
    0 4px 22px rgba(0, 0, 0, 0.45);
}

@media (hover: hover) {
  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow:
      0 0 42px rgba(60, 240, 255, 0.36),
      0 0 56px rgba(61, 184, 196, 0.16),
      0 8px 28px rgba(0, 0, 0, 0.48);
    border-color: rgba(255, 255, 255, 0.38);
  }
}

.btn-primary:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring), 0 0 32px rgba(60, 240, 255, 0.35);
}

.panel {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 55% at 100% 0%, rgba(45, 90, 140, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 0% 100%, rgba(60, 240, 255, 0.06) 0%, transparent 50%),
    linear-gradient(165deg, rgba(10, 22, 32, 0.98) 0%, var(--bg-elevated) 48%, rgba(4, 10, 16, 0.99) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.85rem;
  margin-bottom: 1.35rem;
  box-shadow: var(--shadow), 0 1px 0 rgba(255, 255, 255, 0.05) inset;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.2s ease;
}

.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 88% 68% at 88% 0%, rgba(60, 240, 255, 0.14) 0%, transparent 56%);
  transition: opacity 0.2s ease;
}

@media (hover: hover) {
  .panel:hover {
    border-color: rgba(60, 240, 255, 0.22);
    box-shadow: var(--shadow-hover), 0 1px 0 rgba(255, 255, 255, 0.06) inset;
    transform: translateY(-1px);
  }

  .panel:hover::after {
    opacity: 1;
  }
}

.panel:focus-within {
  border-color: rgba(60, 240, 255, 0.28);
  box-shadow: var(--shadow-hover), 0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

.panel:focus-within::after {
  opacity: 1;
}

.panel h2 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4vw, 2.1rem);
  font-weight: 700;
  font-style: normal;
  margin: 0 0 1rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.section-head {
  margin-bottom: 1.5rem;
}

.section-head h2 {
  margin-bottom: 0.35rem;
}

.section-sub {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.prose code,
.section-sub code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.86em;
  font-weight: 500;
  padding: 0.12em 0.4em;
  border-radius: 6px;
  background: rgba(60, 240, 255, 0.09);
  border: 1px solid rgba(60, 240, 255, 0.24);
  color: #c8fff8;
}

.prose {
  margin: 0 0 1rem;
  color: var(--text-muted);
  max-width: 55ch;
}

.prose:last-child {
  margin-bottom: 0;
}

.meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

.project-buckets {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.project-group-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--citrus);
  margin: 0 0 1rem;
}

@supports (background-clip: text) {
  .hero-eyebrow,
  .project-group-title {
    background: var(--gradient-spray);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}

.project-grid {
  display: grid;
  gap: 1rem;
}

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

.project-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.3rem 1.4rem;
  background:
    radial-gradient(ellipse 70% 80% at 100% 0%, rgba(45, 90, 140, 0.1) 0%, transparent 55%),
    radial-gradient(ellipse 60% 70% at 0% 100%, rgba(60, 240, 255, 0.05) 0%, transparent 50%),
    linear-gradient(160deg, rgba(12, 24, 34, 0.9) 0%, rgba(6, 14, 22, 0.75) 100%);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
  transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

@media (hover: hover) {
  .project-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-3px);
    box-shadow:
      0 16px 40px rgba(0, 0, 0, 0.32),
      0 0 0 1px rgba(60, 240, 255, 0.14),
      0 12px 36px -20px rgba(45, 90, 140, 0.12);
  }
}

.project-card h3 {
  font-size: 1.02rem;
  font-weight: 600;
  margin: 0;
  color: var(--text);
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-summary {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  flex: 1;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.project-stack li {
  font-size: 0.72rem;
  color: var(--text-muted);
  padding: 0.18rem 0.48rem;
  border-radius: 6px;
  background: rgba(60, 240, 255, 0.07);
  border: 1px solid rgba(61, 184, 196, 0.22);
}

.project-card a.project-link {
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 0.25rem;
}

.loading {
  grid-column: 1 / -1;
  color: var(--text-muted);
  margin: 0;
}

.project-empty {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

.link-list {
  list-style: none;
  padding: 0;
  margin: 1.15rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.link-list li {
  border-radius: var(--radius-sm);
  transition: background 0.18s ease;
}

.link-list li:has(a:hover) {
  background: var(--accent-soft);
}

.link-list a {
  font-weight: 500;
  display: inline-block;
  padding: 0.4rem 0.5rem;
  margin: -0.4rem -0.5rem;
  border-radius: var(--radius-sm);
}

.email-line {
  margin-top: 1rem;
}

.email-line a {
  font-weight: 500;
}

.panel-contact .prose {
  margin-bottom: 0;
}

.site-footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.25rem 1.5rem 3.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent 0%, rgba(4, 12, 18, 0.55) 100%);
}

.footer-note {
  opacity: 0.72;
  letter-spacing: 0.02em;
}

.nav-account-root {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
  margin-left: 0;
  padding: 0.2rem 0.2rem 0.2rem 0.4rem;
  border-left: 1px solid rgba(60, 240, 255, 0.18);
  min-width: 0;
  text-transform: none;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  flex: 0 1 auto;
}

.nav-account-link {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0.3rem 0.62rem;
  border-radius: 999px;
  border: 1px solid rgba(60, 240, 255, 0.24);
  background: rgba(60, 240, 255, 0.08);
  color: var(--chrome);
  text-transform: uppercase;
}

.nav-account-user {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  flex: 0 1 auto;
}

.nav-account-badge {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  line-height: 0;
}

.nav-account-badge .nav-account-badge-svg {
  height: 1.52rem;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.nav-account-email {
  color: var(--text-muted);
  min-width: 0;
  flex: 0 1 auto;
  max-width: 24rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-badge-action {
  display: inline-flex;
  align-items: center;
  min-height: 1.4rem;
  padding: 0.18rem 0.4rem;
  border-radius: 999px;
  border: 1px solid rgba(60, 240, 255, 0.25);
  background: rgba(60, 240, 255, 0.08);
  color: var(--chrome);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-badge-action:hover {
  border-color: rgba(60, 240, 255, 0.45);
  background: rgba(60, 240, 255, 0.14);
  color: var(--accent-hover);
}

.nav-logout-btn {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.25rem 0.58rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 154, 171, 0.4);
  background: rgba(255, 107, 138, 0.08);
  color: #ffb4c0;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.nav-account-root .nav-logout-btn {
  font: inherit;
  text-transform: uppercase;
}

.nav-logout-btn:hover {
  border-color: rgba(255, 154, 171, 0.65);
  background: rgba(255, 107, 138, 0.14);
  color: #ffd6de;
}

@media (prefers-reduced-motion: reduce) {
  html::before,
  html::after,
  .site-header {
    animation: none !important;
  }

  .panel,
  .project-card,
  .hero-tags li,
  .logo-visual::before,
  .logo .logo-visual img,
  .logo-engine-beacon,
  .nav a,
  .btn {
    transition: none !important;
  }

  .logo-engine-beacon--online .logo-engine-beacon-dot {
    animation: none !important;
  }

  .logo:focus-visible .logo-visual img {
    transform: none;
  }

  @media (hover: hover) {
    .project-card:hover {
      transform: none;
    }

    .logo:hover .logo-visual img {
      transform: none;
    }

    .panel:hover {
      transform: none;
    }

    .btn-primary:hover {
      transform: none;
    }
  }
}

/* Workspace main — warmer reading tone; header/nav keep :root Space Grotesk + Syne */
main.contract-copilot,
.site-footer {
  --font-sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --text: #f2f6f8;
  --text-muted: #a9b8c6;
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.04);
  --shadow-hover:
    0 24px 56px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(61, 184, 196, 0.12),
    0 0 40px -14px rgba(60, 240, 255, 0.1);

  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  letter-spacing: 0.008em;
}

main.contract-copilot .hero-eyebrow {
  letter-spacing: 0.1em;
  font-size: 0.76rem;
}

@supports (background-clip: text) {
  main.contract-copilot .hero-eyebrow,
  main.contract-copilot .project-group-title {
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    color: var(--teal);
    -webkit-text-fill-color: currentColor;
  }
}

main.contract-copilot .hero-title {
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.12;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

main.contract-copilot .hero-lead {
  max-width: min(42rem, 100%);
  line-height: 1.65;
  font-weight: 400;
}

main.contract-copilot .panel {
  background: linear-gradient(165deg, rgba(12, 26, 34, 0.94) 0%, var(--bg-elevated) 100%);
}

main.contract-copilot .panel h2 {
  font-weight: 600;
  letter-spacing: -0.015em;
}

main.contract-copilot .prose,
main.contract-copilot .section-sub,
main.contract-copilot .meta,
main.contract-copilot .project-summary {
  line-height: 1.65;
}

main.contract-copilot .btn {
  text-transform: none;
  letter-spacing: 0.015em;
  font-weight: 600;
  font-size: 0.94rem;
}

.site-footer {
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}

@media (hover: hover) {
  main.contract-copilot .panel:hover {
    transform: none;
  }
}
