@property --mx {
  syntax: "<length-percentage>";
  inherits: true;
  initial-value: 50%;
}

@property --my {
  syntax: "<length-percentage>";
  inherits: true;
  initial-value: 22%;
}

:root {
  --bg: #08090a;
  --fg: #ececec;
  --accent: #b45309;
  --muted: #9a9a9a;
  --rule: color-mix(in srgb, var(--fg) 14%, transparent);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --mx: 50%;
  --my: 18%;
}

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

html {
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, ui-sans-serif, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100dvh;
  overflow-x: hidden;
}

::selection {
  background: color-mix(in srgb, var(--accent) 42%, black);
  color: var(--fg);
}

.field {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1200px 700px at var(--mx) var(--my), color-mix(in srgb, var(--accent) 16%, transparent), transparent 42%),
    radial-gradient(900px 500px at 80% 110%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 50%),
    var(--bg);
}

.field-grid {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(to right, color-mix(in srgb, var(--fg) 7%, transparent) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(to bottom, color-mix(in srgb, var(--fg) 7%, transparent) 0 1px, transparent 1px 48px);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 20%, transparent 75%);
  opacity: 0.55;
}

.field-glow {
  position: absolute;
  width: 42rem;
  height: 42rem;
  left: var(--mx);
  top: var(--my);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent), transparent 62%);
  filter: blur(8px);
  opacity: 0.7;
}

.field-scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, color-mix(in srgb, var(--accent) 10%, transparent) 50%, transparent 100%);
  background-size: 100% 220%;
  animation: scan 9s linear infinite;
  opacity: 0.35;
  mix-blend-mode: screen;
}

.field-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, #000 100%);
  opacity: 0.55;
}

main {
  position: relative;
  z-index: 1;
  max-width: 38rem;
  min-height: 100dvh;
  padding: 18vh 1.5rem 8rem;
}

.company-line {
  margin: 0 0 4.25rem;
  max-width: 18ch;
  font-size: clamp(1.7rem, 4.2vw, 2.35rem);
  line-height: 1.12;
  font-weight: 560;
  letter-spacing: -0.045em;
  text-wrap: pretty;
  animation: rise 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.principle-line {
  margin: 1.75rem 0 0;
  max-width: 28rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
  letter-spacing: -0.02em;
  animation: rise 900ms cubic-bezier(0.16, 1, 0.3, 1) 180ms both;
}

.brand-line {
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  animation: rise 900ms cubic-bezier(0.16, 1, 0.3, 1) 240ms both;
}

.product-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--rule);
  animation: rise 900ms cubic-bezier(0.16, 1, 0.3, 1) 120ms both;
}

.product {
  border-bottom: 1px solid var(--rule);
}

.product-link,
.product--soon {
  display: block;
  padding: 1.2rem 0 1.25rem;
}

.product-name {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.product-status {
  display: inline-block;
  margin-left: 0.7rem;
  padding: 0.16rem 0.42rem 0.18rem;
  border: 1px solid color-mix(in srgb, var(--accent) 70%, black);
  border-radius: 2px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: lowercase;
  vertical-align: 0.14em;
}

.product--live .product-status {
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent);
  animation: pulse 2.4s ease-out infinite;
}

.product--soon .product-status {
  margin-left: 0;
  vertical-align: baseline;
  border-color: var(--rule);
  color: var(--muted);
  animation: none;
  box-shadow: none;
}

.product-line {
  display: block;
  margin-top: 0.45rem;
  max-width: 34rem;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.45;
  letter-spacing: -0.012em;
}

.product-link {
  position: relative;
  color: inherit;
  text-decoration: none;
  padding-right: 1.75rem;
}

.product-link::before {
  content: "";
  position: absolute;
  left: -1.5rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: center;
}

.product-link::after {
  content: "->";
  position: absolute;
  right: 0;
  top: 1.28rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  opacity: 0.45;
}

.product-link:hover,
.product-link:focus-visible {
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

.product-link:hover .product-name,
.product-link:focus-visible .product-name {
  color: var(--accent);
}

.product-link:hover::before,
.product-link:focus-visible::before {
  transform: scaleY(1);
}

.product-link:hover::after,
.product-link:focus-visible::after {
  color: var(--accent);
  opacity: 1;
  transform: translateX(3px);
}

.product-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

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

@keyframes scan {
  from { background-position: 0 -40%; }
  to { background-position: 0 140%; }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 50%, transparent); }
  70% { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}


@keyframes field-drift {
  0% {
    --mx: 22%;
    --my: 18%;
  }
  35% {
    --mx: 74%;
    --my: 36%;
  }
  62% {
    --mx: 48%;
    --my: 70%;
  }
  100% {
    --mx: 22%;
    --my: 18%;
  }
}

@media (hover: none) {
  html:not(.js-field) {
    animation: field-drift 22s ease-in-out infinite;
  }

  .field-glow {
    width: 28rem;
    height: 28rem;
    opacity: 0.85;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    animation: none;
  }

  .company-line,
  .product-list,
  .principle-line,
  .brand-line,
  .product--live .product-status,
  .field-scan {
    animation: none;
  }

  .field-glow {
    display: none;
  }
}

@media (max-width: 640px) {
  main {
    padding: 16vh 1.15rem 7.5rem;
  }

  .company-line {
    margin-bottom: 3.25rem;
    max-width: none;
  }

  .product-link::before {
    left: -0.75rem;
  }

  .principle-line,
  .brand-line {
    position: sticky;
    z-index: 2;
    margin: 0;
    max-width: none;
    background: linear-gradient(
      to top,
      var(--bg) 62%,
      color-mix(in srgb, var(--bg) 0%, transparent)
    );
  }

  .principle-line {
    bottom: 2.15rem;
    padding: 1.35rem 0 0.35rem;
  }

  .brand-line {
    bottom: 0.85rem;
    padding: 0 0 0.85rem;
  }
}

@media (min-width: 641px) {
  html,
  body {
    height: 100dvh;
    overflow: hidden;
  }

  main {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
    padding: 8vh 1.5rem 5vh;
    overflow: hidden;
  }

  .company-line {
    margin: 0 0 2.25rem;
    font-size: clamp(1.45rem, 2.4vw, 2rem);
  }

  .product-link,
  .product--soon {
    padding: 0.85rem 0 0.9rem;
  }

  .principle-line {
    margin-top: auto;
    padding-top: 1.25rem;
  }

  .brand-line {
    margin-top: 0.85rem;
  }
}
