:root {
  --ink: #050506;
  --charcoal: #0A0A0B;
  --elevated: #111113;
  --border: #1C1C1F;
  --metal: #C9C4B8;
  --metal-dim: #8A857C;
}
html { scrollbar-width: none; }
::-webkit-scrollbar { display: none; }
.marquee-container { overflow: hidden; white-space: nowrap; width: 100%; }
.marquee-content { display: inline-block; animation: marquee 28s linear infinite; will-change: transform; }
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.clip-text-image {
  background: url("https://hoirqrkdgbmvpwutwuwj.supabase.co/storage/v1/object/public/assets/assets/5ee0a38a-b5d3-4531-8793-98beed4af162_1600w.jpg") center/cover;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.12);
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px #050506 inset !important;
  -webkit-text-fill-color: white !important;
}
body { cursor: auto; }
@media (min-width: 768px) {
  body.has-cursor { cursor: none; }
}
.cursor-dot, .cursor-outline { display: none; }
@media (min-width: 768px) {
  .has-cursor .cursor-dot, .has-cursor .cursor-outline { display: block; }
}
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 6px; height: 6px;
  background-color: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
}
.cursor-outline {
  position: fixed;
  top: 0; left: 0;
  width: 40px; height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9998;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), height 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease, border-color 0.3s ease;
}
.cursor-hover .cursor-outline {
  width: 64px; height: 64px;
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}
.cursor-hover .cursor-dot { background-color: var(--metal); }
.glow-card { position: relative; }
.glow-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(201,196,184,0.08), transparent 40%);
  z-index: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  border-radius: inherit;
}
.glow-card:hover::before { opacity: 1; }
.gs-nav {
  background: transparent;
  border-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.gs-nav.is-solid,
body:not(.is-home) .gs-nav {
  background: rgba(8, 8, 8, 0.82);
  border-color: #1C1C1F;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  background: #fff;
  color: #050506;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.875rem;
}
.skip-link:focus { top: 1rem; }
.flow-line {
  stroke-dasharray: 6 8;
  animation: flowdash 18s linear infinite;
}
@keyframes flowdash { to { stroke-dashoffset: -280; } }
.use-row { border-top: 1px solid #1C1C1F; }
.use-row:last-child { border-bottom: 1px solid #1C1C1F; }
#menu-toggle {
  position: relative;
}
#menu-toggle::before,
#menu-toggle::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 1rem;
  height: 1px;
  background: #fff;
  transform: translateX(-50%);
}
#menu-toggle::before { top: calc(50% - 3px); }
#menu-toggle::after { top: calc(50% + 3px); }
#mobile-menu {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
#mobile-menu.is-open { clip-path: inset(0 0 0 0); }
.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.prose-arq p { max-width: 42rem; }
nav a[aria-current="page"] { color: #C9C4B8; }
section[id] { scroll-margin-top: 6.5rem; }
*:focus-visible {
  outline: 1px solid var(--metal);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .marquee-content, .flow-line { animation: none !important; }
  html { scroll-behavior: auto; }
  .sys-seg { stroke-dashoffset: 0 !important; }
  .system-node, .gs-card-path, .gs-app-row, .gs-method-step, .gs-fade-up {
    opacity: 1 !important;
    transform: none !important;
  }
}

.system-board { isolation: isolate; }
.system-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 45%, #000 28%, transparent 74%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 45%, #000 28%, transparent 74%);
  transform-origin: center;
  will-change: transform, opacity;
}
.system-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.55rem;
  margin-bottom: 2.5rem;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.22);
}
.system-status [data-step] { color: rgba(255, 255, 255, 0.22); }
.system-status [data-step].is-lit { color: var(--metal); }
.sys-arrow { color: rgba(255, 255, 255, 0.16); }
.system-node { will-change: transform, opacity; }
.system-core {
  display: block;
  width: 8px;
  height: 8px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(201, 196, 184, 0.28);
  box-shadow: 0 0 0 0 transparent;
}
.system-node.is-active .system-core {
  background: var(--metal);
  border-color: var(--metal);
  box-shadow: 0 0 18px rgba(201, 196, 184, 0.38);
}
.sys-seg {
  fill: none;
  stroke: rgba(201, 196, 184, 0.5);
  stroke-width: 1.25;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  vector-effect: non-scaling-stroke;
}
.gs-card-path, .gs-app-row, .gs-method-step { will-change: transform, opacity; }

@media (max-width: 767px) {
  .system-nodes ol {
    border-left: 1px solid var(--border);
    padding-left: 1.25rem;
    margin-left: 0.2rem;
  }
  .system-status { margin-bottom: 1.75rem; }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .no-gsap .gs-fade-up {
      animation: sys-fade-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 36%;
    }
    .no-gsap .system-node {
      animation: sys-fade-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 40%;
    }
  }
}
@keyframes sys-fade-rise {
  from { opacity: 0.15; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
