:root {
  color-scheme: dark;
  --surface: #0a0c0a;
  --ink: rgba(246, 249, 244, 0.94);
  --muted: rgba(239, 245, 236, 0.42);
  --line: rgba(230, 242, 227, 0.13);
  --green: #96f59f;
  --pointer-x: 50%;
  --pointer-y: 50%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  min-width: 320px;
  background: var(--surface);
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow: hidden;
  background: var(--surface);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 50%;
  z-index: 100;
  padding: 9px 12px;
  color: #0a0c0a;
  background: #f4f8f2;
  font-size: 12px;
  text-decoration: none;
  text-transform: uppercase;
  transform: translate(-50%, -160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

.site-shell {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(144, 237, 151, 0.025), transparent 30%),
    var(--surface);
}

.site-shell::after {
  position: absolute;
  z-index: 4;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, var(--surface), transparent 9%, transparent 91%, var(--surface)),
    linear-gradient(180deg, rgba(10, 12, 10, 0.3), transparent 16%, transparent 80%, rgba(10, 12, 10, 0.58));
}

.visual-field {
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

#flow-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
}

.light-wash {
  position: absolute;
  inset: -35%;
  background:
    radial-gradient(
      ellipse 34% 28% at var(--pointer-x) var(--pointer-y),
      rgba(182, 255, 184, 0.09),
      rgba(104, 229, 123, 0.035) 30%,
      transparent 72%
    ),
    conic-gradient(
      from 218deg at 64% 48%,
      transparent 0 17%,
      rgba(121, 238, 137, 0.055) 21%,
      transparent 29% 71%,
      rgba(218, 255, 214, 0.035) 76%,
      transparent 82%
    );
  filter: blur(36px);
  opacity: 0.92;
  transform: scale(1.08);
}

.glass-form {
  position: absolute;
  border: 1px solid rgba(225, 255, 220, 0.055);
  border-radius: 50%;
  mix-blend-mode: screen;
  filter: blur(0.2px);
  opacity: 0.5;
}

.glass-form::before,
.glass-form::after {
  position: absolute;
  inset: 9%;
  border: 1px solid rgba(213, 255, 211, 0.04);
  border-radius: inherit;
  content: "";
}

.glass-form::after {
  inset: 24%;
}

.glass-form--one {
  top: 50%;
  left: 59%;
  width: min(72vw, 1080px);
  aspect-ratio: 1.55;
  transform: translate(-50%, -50%) rotate(-10deg);
  box-shadow:
    inset 24px 15px 80px rgba(155, 255, 164, 0.025),
    0 0 120px rgba(119, 230, 129, 0.02);
  animation: glass-drift 16s ease-in-out infinite alternate;
}

.glass-form--two {
  top: 45%;
  left: 43%;
  width: min(48vw, 740px);
  aspect-ratio: 1.4;
  transform: translate(-50%, -50%) rotate(15deg);
  opacity: 0.28;
  animation: glass-drift-two 20s ease-in-out infinite alternate;
}

.grain {
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
  transform: translate3d(0, 0, 0);
  animation: grain-shift 0.22s steps(2) infinite;
}

.frame {
  position: absolute;
  z-index: 8;
  inset: 14px;
  border: 1px solid rgba(226, 239, 224, 0.085);
  pointer-events: none;
}

.frame::before,
.frame::after {
  position: absolute;
  content: "";
  background: var(--line);
}

.frame::before {
  top: 50%;
  left: -5px;
  width: 9px;
  height: 1px;
}

.frame::after {
  top: 50%;
  right: -5px;
  width: 9px;
  height: 1px;
}

.corner {
  position: absolute;
  width: 8px;
  height: 8px;
}

.corner::before,
.corner::after {
  position: absolute;
  content: "";
  background: rgba(231, 244, 228, 0.25);
}

.corner::before {
  width: 8px;
  height: 1px;
}

.corner::after {
  width: 1px;
  height: 8px;
}

.corner--top-left {
  top: -1px;
  left: -1px;
}

.corner--top-right {
  top: -1px;
  right: -1px;
  transform: rotate(90deg);
}

.corner--bottom-left {
  bottom: -1px;
  left: -1px;
  transform: rotate(-90deg);
}

.corner--bottom-right {
  right: -1px;
  bottom: -1px;
  transform: rotate(180deg);
}

.site-header,
.site-footer {
  position: absolute;
  z-index: 10;
  left: 0;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding-inline: clamp(28px, 3vw, 52px);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-header {
  top: 0;
  height: 74px;
  justify-content: flex-end;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(236, 244, 233, 0.54);
  text-decoration: none;
}

.contact-link:hover,
.contact-link:focus-visible {
  color: var(--ink);
}

.contact-link:focus-visible {
  outline: 1px solid rgba(240, 247, 237, 0.55);
  outline-offset: 6px;
}

.contact-link svg {
  width: 9px;
  height: 9px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-width: 0.9;
}

.hero {
  position: relative;
  z-index: 6;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  padding: 84px 24px;
}

.hero-content {
  position: relative;
  display: flex;
  width: min(95vw, 1620px);
  flex-direction: column;
  align-items: center;
  transform: translateY(-1.1vh);
}

.hero-index {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: clamp(14px, 1.45vw, 22px);
  color: rgba(235, 245, 232, 0.34);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0;
  animation: content-in 900ms 420ms cubic-bezier(0.2, 0.75, 0.2, 1) forwards;
}

.status-dot {
  width: 4px;
  height: 4px;
  background: rgba(151, 245, 159, 0.68);
  box-shadow: 0 0 9px rgba(151, 245, 159, 0.6);
  animation: status-pulse 2.8s ease-in-out infinite;
}

.hero-title {
  position: relative;
  margin: 0;
  color: rgba(244, 248, 242, 0.9);
  font-family: "Iowan Old Style", "Baskerville", "Times New Roman", Times, serif;
  font-size: clamp(1.1rem, 2vw, 2rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.052em;
  text-align: center;
  text-shadow:
    0 0 44px rgba(155, 245, 159, 0.075),
    0 1px 0 rgba(255, 255, 255, 0.14);
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(16px);
  animation: title-in 1.1s 220ms cubic-bezier(0.16, 0.8, 0.2, 1) forwards;
}

.hero-title::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: attr(data-title);
  color: transparent;
  text-transform: uppercase;
}

.hero-title::before {
  z-index: -1;
  color: rgba(137, 247, 150, 0.2);
  filter: blur(18px);
  opacity: 0.22;
  transform: scaleY(1.07);
}

.hero-rule {
  display: grid;
  width: min(280px, 56vw);
  grid-template-columns: 1fr 4px 1fr;
  align-items: center;
  gap: 9px;
  margin-top: clamp(18px, 2.2vw, 34px);
  opacity: 0;
  animation: content-in 900ms 550ms cubic-bezier(0.2, 0.75, 0.2, 1) forwards;
}

.hero-rule span {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(226, 241, 223, 0.2));
}

.hero-rule span:last-child {
  transform: rotate(180deg);
}

.hero-rule i {
  width: 3px;
  height: 3px;
  border: 1px solid rgba(230, 247, 226, 0.4);
  transform: rotate(45deg);
}

.site-footer {
  bottom: 0;
  height: 68px;
  justify-content: flex-end;
  color: rgba(235, 243, 232, 0.28);
}

.site-footer p {
  margin: 0;
}

@keyframes title-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes content-in {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes status-pulse {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

@keyframes glass-drift {
  from {
    transform: translate(-50%, -50%) rotate(-10deg) scale(0.98);
  }
  to {
    transform: translate(-48%, -52%) rotate(-6deg) scale(1.04);
  }
}

@keyframes glass-drift-two {
  from {
    transform: translate(-50%, -50%) rotate(15deg) scale(1.02);
  }
  to {
    transform: translate(-52%, -47%) rotate(9deg) scale(0.96);
  }
}

@keyframes grain-shift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  25% {
    transform: translate3d(2%, -3%, 0);
  }
  50% {
    transform: translate3d(-3%, 2%, 0);
  }
  75% {
    transform: translate3d(3%, 4%, 0);
  }
  100% {
    transform: translate3d(-2%, -4%, 0);
  }
}

@media (max-width: 640px) {
  .frame {
    inset: 8px;
  }

  .site-header,
  .site-footer {
    padding-inline: 22px;
  }

  .site-header {
    height: 62px;
  }

  .site-footer {
    height: 56px;
  }

  .hero {
    padding-inline: 16px;
  }

  .hero-title {
    font-size: clamp(0.95rem, 3.4vw, 1.15rem);
    letter-spacing: -0.045em;
  }

  .glass-form--one {
    left: 65%;
    width: 145vw;
  }

  .glass-form--two {
    width: 95vw;
  }
}

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