@layer base {
  html {
    color-scheme: dark;
    background: #000;
    scroll-behavior: smooth;
  }

  body {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    min-height: 100svh;
    overflow-x: clip;
    background:
      conic-gradient(rgba(255, 255, 255, 0.03) 90deg, transparent 90deg 180deg, rgba(255, 255, 255, 0.03) 180deg 270deg, transparent 270deg) 0 0 / 2px 2px,
      #000;
    color: #f4f4f5;
    font-family: "Geist", ui-sans-serif, system-ui, sans-serif;
    font-feature-settings: "ss01", "ss02", "cv11";
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }

  ::selection {
    background: rgba(245, 30, 172, 0.32);
    color: #fff;
  }

  :focus-visible {
    outline: 2px solid #7deaff;
    outline-offset: 3px;
  }
}

#omp-background-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  image-rendering: pixelated;
  opacity: 0.96;
}

@media (min-width: 768px) {
  #omp-background-canvas {
    -webkit-mask-image: linear-gradient(to bottom, #000 75%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 75%, transparent 100%);
  }
}

.omp-main {
  min-height: 100svh;
}

.omp-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  height: 58px;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.omp-header-scrolled {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(5, 5, 7, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.omp-header-inner {
  display: flex;
  width: min(100% - 40px, 1280px);
  height: 100%;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
}

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

.omp-brand {
  gap: 0.55rem;
  min-height: 44px;
  color: #f4f4f5;
  text-decoration: none;
}

.n8-mark {
  white-space: nowrap;
}

.n8-mark > span:first-child {
  color: #f02aa7;
  -webkit-text-fill-color: #f02aa7;
}

.n8-mark > span:last-child {
  color: #75e7e2;
  -webkit-text-fill-color: #75e7e2;
}

.omp-brand-mark {
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: -0.07em;
}

.omp-brand-name {
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.omp-header-nav {
  gap: clamp(0.65rem, 2vw, 1.5rem);
}

.omp-header-link {
  min-height: 44px;
  color: rgba(244, 244, 245, 0.78);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.omp-header-link:hover,
.omp-header-link:focus-visible {
  color: #fff;
}

.omp-header-github {
  min-width: 44px;
  justify-content: center;
}

.omp-header-github svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.lang-switch {
  gap: 0.1rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.lang-switch-option {
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.35rem;
  border-radius: 0;
  border-bottom: 1px solid transparent;
  color: rgba(244, 244, 245, 0.5);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.lang-switch-active,
.lang-switch-active:hover {
  border-color: #f02aa7;
  background: transparent;
  color: #fff;
}

.omp-hero {
  position: relative;
  display: flex;
  width: min(100% - 48px, 1100px);
  min-height: 100svh;
  margin: 0 auto;
  padding: 8rem 0 7.25rem;
  align-items: center;
  isolation: isolate;
}

.omp-hero-copy {
  width: min(100%, 500px);
}

.omp-eyebrow,
.omp-section-label {
  margin: 0 0 1.1rem;
  color: rgba(105, 229, 223, 0.68);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  line-height: 1.5;
  text-transform: uppercase;
}

.omp-display {
  max-width: 15ch;
  margin: 0;
  color: #f4f4f5;
  font-family: "Geist", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(2.4rem, 1.2rem + 3.8vw, 4.4rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.98;
  text-wrap: balance;
}

.omp-display > span {
  display: block;
}

.omp-sunray {
  background: linear-gradient(105deg, #f024ae 38%, #fff 50%, #f024ae 62%);
  background-size: 320% 100%;
  background-position: 100% 0;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.omp-lead {
  max-width: 52ch;
  margin: 1.35rem 0 0;
  color: rgba(244, 244, 245, 0.72);
  font-size: clamp(1rem, 0.92rem + 0.25vw, 1.12rem);
  font-weight: 400;
  line-height: 1.65;
}

.omp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.8rem;
}

.omp-action-primary,
.omp-action-secondary {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.75rem;
  color: #f4f4f5;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.64rem;
  letter-spacing: 0.13em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.omp-action-primary {
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(9, 9, 11, 0.74);
}

.omp-action-primary:hover,
.omp-action-primary:focus-visible,
.omp-action-secondary:hover,
.omp-action-secondary:focus-visible {
  color: #ff64c8;
}

.omp-action-primary svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.2;
}

.omp-action-secondary {
  color: rgba(244, 244, 245, 0.62);
  text-transform: none;
  letter-spacing: 0.02em;
}

.omp-compatible {
  width: min(100%, 490px);
  margin-top: 2.1rem;
  overflow: hidden;
}

.omp-section-label {
  margin-bottom: 0.75rem;
  color: rgba(244, 244, 245, 0.72);
  font-size: 0.57rem;
  letter-spacing: 0.2em;
}

.omp-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8% 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8% 92%, transparent);
}

.omp-marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
}

.omp-marquee-item {
  display: inline-flex;
  min-width: 116px;
  height: 38px;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: rgba(244, 244, 245, 0.62);
  font-size: 0.7rem;
  white-space: nowrap;
}

.omp-marquee-item img {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  filter: grayscale(0.9);
  opacity: 0.72;
  object-fit: cover;
}

.omp-feature-rail {
  position: fixed;
  top: 50%;
  left: max(12px, calc((100vw - 1400px) / 2));
  z-index: 20;
  display: grid;
  width: 44px;
  grid-template-columns: 1fr;
  transform: translateY(-50%);
}

.omp-feature-chip {
  position: relative;
  display: grid;
  min-width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 0;
  background: rgba(9, 9, 11, 0.76);
  color: #fff;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.omp-feature-chip:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.omp-feature-chip:hover,
.omp-feature-chip:focus-visible {
  z-index: 1;
  border-color: rgba(240, 42, 167, 0.48);
  background: #111114;
}

.omp-feature-chip > img {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  object-fit: cover;
}

.omp-feature-letter {
  font-size: 0.9rem;
  font-weight: 500;
}

.omp-feature-index {
  position: absolute;
  right: 3px;
  bottom: 2px;
  color: rgba(244, 244, 245, 0.72);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.43rem;
  line-height: 1;
}

.work-section {
  width: min(100% - 48px, 1100px);
  margin: 0 auto;
  padding: 6rem 0 8rem;
  background: transparent;
  scroll-margin-top: 5rem;
}

.section-container {
  max-width: none;
  padding: 0;
}

.work-section-header {
  max-width: 48rem;
  margin: 0 0 2.5rem;
  text-align: left;
}

.work-kicker {
  display: block;
  margin-bottom: 0.8rem;
  color: rgba(105, 229, 223, 0.68);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
}

.work-kicker::before,
.work-kicker::after {
  display: none;
}

.work-heading {
  color: #f4f4f5;
  font-family: "Geist", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(2rem, 1.4rem + 2vw, 3.2rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.work-subheading {
  margin: 0.8rem 0 0;
  color: rgba(244, 244, 245, 0.64);
  font-size: 0.96rem;
  line-height: 1.55;
}

.work-filter-bar {
  justify-content: flex-start;
  gap: 1.1rem;
  margin: 0 0 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-chip {
  position: relative;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.55rem 0.2rem 0.8rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(244, 244, 245, 0.54);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.61rem;
  font-weight: 400;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.filter-chip:hover,
.filter-chip:focus-visible,
.filter-chip-active {
  border-color: transparent;
  background: transparent;
  color: #f4f4f5;
  box-shadow: none;
  transform: none;
}

.filter-chip-active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: #f02aa7;
  content: "";
}

.filter-chip-count,
.filter-chip-count-active {
  min-width: auto;
  height: auto;
  padding: 0;
  background: transparent;
  color: rgba(244, 244, 245, 0.72);
  font-size: 0.57rem;
  font-weight: 400;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  justify-content: initial;
  background: rgba(255, 255, 255, 0.1);
}

.work-grid > .project-card {
  width: auto;
  max-width: none;
  min-width: 0;
  flex: initial;
}

.project-card {
  min-height: 17rem;
  gap: 1rem;
  padding: 1.25rem;
  border: 0;
  border-radius: 0;
  background: #09090b;
  box-shadow: none;
  transform: none;
  transition: background-color 0.24s ease;
}

.project-card::after {
  display: none;
}

.project-card:hover,
.project-card:focus-visible {
  border-color: transparent;
  background: #111114;
  box-shadow: none;
  transform: none;
}

.project-card-icon-shell {
  width: 2.75rem;
  height: 2.75rem;
}

.project-card-icon-halo {
  display: none;
}

.project-card-icon,
.project-card-icon-image {
  border-radius: 0.45rem;
  box-shadow: none;
}

.project-card-badges {
  gap: 0.35rem;
}

.project-status-badge,
.project-type-badge,
.project-stack-tag,
.project-stack-more {
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(244, 244, 245, 0.72);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.56rem;
  font-weight: 400;
  letter-spacing: 0.12em;
}

.project-status-live,
.project-status-wip,
.project-status-default,
.project-type-badge {
  background: transparent;
  color: rgba(244, 244, 245, 0.56);
}

.project-card-copy {
  gap: 0.35rem;
}

.project-card-title {
  color: #f4f4f5;
  font-family: "Geist", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.project-card-description {
  color: rgba(244, 244, 245, 0.62);
  font-size: 0.84rem;
  line-height: 1.55;
}

.project-stack-row {
  gap: 0.65rem;
}

.project-stack-tag,
.project-stack-more {
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(244, 244, 245, 0.72);
  font-size: 0.56rem;
  text-transform: none;
}

.project-link-row {
  padding-top: 0.7rem;
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(244, 244, 245, 0.68);
}

.project-link-label {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.57rem;
  font-weight: 400;
  letter-spacing: 0.11em;
}

.project-link-arrow {
  color: #f02aa7;
}

.work-closing-shell {
  max-width: none;
  margin: 2.5rem 0 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
}

.work-closing-shell::before {
  display: none;
}

.work-closing-kicker {
  color: rgba(244, 244, 245, 0.72);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.59rem;
  letter-spacing: 0.18em;
}

.work-closing-text {
  color: rgba(244, 244, 245, 0.72);
}

.omp-footer {
  position: fixed;
  inset: auto 0 0;
  z-index: 30;
  display: flex;
  width: min(100% - 40px, 1280px);
  height: 48px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.omp-footer-brand,
.omp-footer-copy {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: rgba(244, 244, 245, 0.8);
  font-size: 0.68rem;
  text-decoration: none;
}

.omp-footer-brand {
  min-width: 44px;
  gap: 0.45rem;
  pointer-events: auto;
}

.omp-footer-brand .n8-mark {
  font-size: 1.15rem;
}

.omp-footer-copy {
  gap: 0.3rem;
  padding: 0 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.82);
  color: rgba(244, 244, 245, 0.72);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.52rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.omp-skip-link {
  position: absolute;
  top: -5rem;
  left: 1rem;
  z-index: 100;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #09090b;
  color: #fff;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  text-decoration: none;
}

.omp-skip-link:focus {
  top: 1rem;
}

.scroll-progress {
  height: 1px;
  background: linear-gradient(90deg, #f02aa7, #72e6e0);
  box-shadow: none;
}

@media (prefers-reduced-motion: no-preference) {
  .omp-sunray {
    animation: 9s cubic-bezier(0.4, 0, 0.2, 1) infinite omp-sunray-sweep;
  }

  .omp-marquee-track {
    animation: 60s linear infinite omp-marquee-drift;
  }

  .omp-marquee:hover .omp-marquee-track,
  .omp-marquee:focus-within .omp-marquee-track {
    animation-play-state: paused;
  }
}

@keyframes omp-sunray-sweep {
  0% { text-shadow: none; background-position: 100% 0; }
  8% { text-shadow: 0 0 16px rgba(125, 234, 255, 0.38); }
  18%, 100% { text-shadow: none; background-position: 0 0; }
}

@keyframes omp-marquee-drift {
  to { transform: translateX(-50%); }
}

@media (max-width: 767.98px) {
  .omp-hero {
    width: calc(100% - 48px);
    min-height: 100svh;
    padding: 8.5rem 0 5.5rem;
    align-items: flex-start;
    flex-direction: column;
  }

  .omp-hero-copy {
    width: 100%;
  }

  .omp-display {
    max-width: 15ch;
    font-size: clamp(2.4rem, 1.2rem + 3.8vw, 4.4rem);
  }

  .omp-lead {
    margin-top: 1.5rem;
    line-height: 1.65;
  }

  .omp-hero-actions {
    margin-top: 1.7rem;
  }

  .omp-feature-rail {
    position: static;
    width: min(100%, 440px);
    margin-top: 2.35rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    transform: none;
  }

  .omp-feature-chip {
    min-width: 0;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin: 0 0 -1px -1px;
  }

  .omp-compatible {
    margin-top: 1.6rem;
  }

  .work-section {
    width: calc(100% - 48px);
    padding: 4.75rem 0 7rem;
  }

  .work-filter-bar {
    gap: 0.9rem;
    overflow-x: auto;
    justify-content: flex-start;
    scrollbar-width: none;
  }

  .work-filter-bar::-webkit-scrollbar {
    display: none;
  }

  .filter-chip {
    flex-shrink: 0;
  }

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

  .project-card {
    min-height: 17rem;
    padding: 0.9rem;
  }

  .project-card-head {
    gap: 0.5rem;
  }

  .project-status-badge,
  .project-type-badge {
    font-size: 0.48rem;
  }
}

@media (max-width: 430px) {
  .omp-header-inner,
  .omp-footer {
    width: calc(100% - 28px);
  }

  .omp-hero,
  .work-section {
    width: calc(100% - 40px);
  }

  .omp-header-nav {
    gap: 0.25rem;
  }

  .omp-header-link {
    font-size: 0.52rem;
  }

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

@media (max-width: 360px) {
  .omp-brand-name {
    display: none;
  }

  .omp-brand {
    min-width: 44px;
  }

  .omp-header-nav {
    gap: 0;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
