:root {
  --bg: #020302;
  --text: #f1f4f2;
  --muted: #717a74;
  --green: #8ef0b3;
  --line: rgba(255, 255, 255, .08);
  --display: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100svh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--display);
  overflow-x: hidden;
  overflow-y: auto;
}
a { color: inherit; text-decoration: none; }

.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #000;
  color: #fff;
  transition: opacity .8s ease, visibility .8s ease;
}
.intro.done { opacity: 0; visibility: hidden; }
.boot-centre {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(330px, calc(100% - 54px));
  text-align: center;
  transform: translate(-50%, -50%);
}
.intro p {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  font-weight: 500;
  letter-spacing: -.055em;
}
.boot-meta {
  position: absolute;
  top: 27px;
  left: 30px;
  right: 30px;
  display: flex;
  justify-content: space-between;
  font: 300 8px var(--mono);
  letter-spacing: .14em;
  color: #d8ded9;
}
.boot-track {
  height: 1px;
  margin: 27px auto 14px;
  overflow: hidden;
  background: #111713;
}
.boot-track i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
  transition: width .18s linear;
}
.boot-centre small {
  font: 300 7px var(--mono);
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #c1c9c3;
}
.boot-corners i {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: #172019;
  border-style: solid;
}
.boot-corners i:nth-child(1) { left: 24px; top: 24px; border-width: 1px 0 0 1px; }
.boot-corners i:nth-child(2) { right: 24px; top: 24px; border-width: 1px 1px 0 0; }
.boot-corners i:nth-child(3) { right: 24px; bottom: 24px; border-width: 0 1px 1px 0; }
.boot-corners i:nth-child(4) { left: 24px; bottom: 24px; border-width: 0 0 1px 1px; }
.cursor {
  color: var(--green);
  font-weight: 300;
  animation: blink .7s steps(1) infinite;
}

.site-shell {
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  opacity: 0;
  transition: opacity 1.15s ease;
}
.site-shell.ready { opacity: 1; }

.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.noise {
  position: absolute;
  inset: 0;
  opacity: .03;
  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='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}
.tech-grid {
  position: absolute;
  inset: 0;
  opacity: .17;
  background-image:
    linear-gradient(rgba(117, 241, 161, .026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(117, 241, 161, .026) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at center, black, transparent 72%);
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .09;
  animation: float 18s ease-in-out infinite;
}
.orb-one {
  width: 480px;
  height: 480px;
  right: -230px;
  top: -230px;
  background: #2ae570;
}
.orb-two {
  width: 340px;
  height: 340px;
  left: -220px;
  bottom: -210px;
  background: #54665b;
  animation-delay: -9s;
}
.mouse-glow {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(84, 255, 150, .06), transparent 68%);
  transform: translate(-50%, -50%);
  will-change: left, top;
}

header, main, footer {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 52px));
  margin-inline: auto;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: clamp(20px, 3.5vh, 36px);
}
.system-id {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font: 300 8px var(--mono);
  letter-spacing: .11em;
  color: #c4ccc6;
}
.system-id i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(142,240,179,.75);
}
header nav {
  display: flex;
  gap: 27px;
}
header nav a {
  position: relative;
  font: 300 9px var(--mono);
  color: #d3d9d5;
  transition: color .2s ease, text-shadow .2s ease;
}
header nav a span { margin-left: 3px; color: #9ca6a0; }
header nav a:hover, header nav a:focus-visible,
footer a:hover, footer a:focus-visible { color: var(--green); }
header nav a::before,
footer a::before {
  content: "";
  position: absolute;
  inset: -12px -15px;
  z-index: -1;
  border-radius: 18px;
  opacity: 0;
  background: radial-gradient(circle, rgba(172,255,203,.18), rgba(82,239,140,.06) 45%, transparent 72%);
  filter: blur(5px);
  transform: scale(.72);
  transition: opacity .2s ease, transform .28s ease;
}
header nav a.is-bright,
footer a.is-bright {
  color: #eafff1;
  text-shadow: 0 0 8px rgba(213,255,228,.9), 0 0 22px rgba(84,255,149,.65);
}
header nav a.is-bright::before,
footer a.is-bright::before {
  opacity: 1;
  transform: scale(1);
}

main {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 0;
  padding: clamp(30px, 7vh, 68px) 0;
}
.mark-wrap {
  position: relative;
  width: clamp(180px, min(25vw, 36svh), 340px);
  display: grid;
  place-items: center;
}
.mark-data {
  position: absolute;
  top: 50%;
  font: 300 7px var(--mono);
  letter-spacing: .12em;
  color: #9ba59e;
  white-space: nowrap;
  opacity: 0;
  animation: data-in .7s ease forwards 2.9s;
}
.data-left { right: calc(100% + 46px); }
.data-right { left: calc(100% + 46px); }
.mark {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 26px rgba(255,255,255,.025));
  animation: breathe 7s ease-in-out infinite;
}
.mark-glow {
  position: absolute;
  width: 130%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(112,240,161,.07), transparent 64%);
  filter: blur(18px);
}
.three-words {
  display: flex;
  align-items: center;
  margin: clamp(30px, 6vh, 54px) 0 0;
  font: 300 clamp(.72rem, .9vw, .86rem) var(--mono);
  letter-spacing: .025em;
  color: #e1e6e2;
}
.three-words span:not(:last-child)::after {
  content: "/";
  margin: 0 14px;
  color: #737d76;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  padding: clamp(18px, 3vh, 28px) 0 clamp(20px, 3.5vh, 34px);
  border-top: 1px solid var(--line);
  font: 300 8px var(--mono);
  letter-spacing: .045em;
  color: #b8c0ba;
}
footer p { margin: 0; }
footer a {
  position: relative;
  transition: color .2s ease, text-shadow .2s ease;
}
.status { justify-self: end; }
.status i {
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 9px rgba(142,240,179,.75);
}
.click-flare {
  position: fixed;
  z-index: 90;
  width: 12px;
  height: 12px;
  border: 1px solid rgba(225,255,235,.9);
  border-radius: 50%;
  pointer-events: none;
  background: rgba(184,255,208,.32);
  box-shadow:
    0 0 8px rgba(230,255,238,.95),
    0 0 28px rgba(102,255,158,.72),
    0 0 65px rgba(64,233,126,.35);
  transform: translate(-50%, -50%) scale(.2);
  animation: click-flare .55s cubic-bezier(.12,.7,.28,1) forwards;
}

@keyframes blink { 50% { opacity: 0; } }
@keyframes float { 0%,100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(30px,-25px,0); } }
@keyframes breathe { 0%,100% { transform: translateY(0); opacity: .96; } 50% { transform: translateY(-5px); opacity: 1; } }
@keyframes data-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@keyframes click-flare {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.2); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(7); }
}

@media (max-width: 720px) {
  header, main, footer { width: calc(100% - 34px); }
  header { padding-top: 20px; }
  .system-id { display: none; }
  header nav {
    width: 100%;
    justify-content: space-between;
    gap: clamp(6px, 2.5vw, 14px);
  }
  header nav a { font-size: 8px; }
  main { padding: clamp(32px, 7vh, 55px) 0; }
  .mark-wrap { width: min(62vw, 32svh, 265px); }
  .mark-data { display: none; }
  .three-words { margin-top: clamp(28px, 5vh, 44px); line-height: 2; }
  .three-words span:not(:last-child)::after { margin: 0 8px; }
  footer { grid-template-columns: 1fr 1fr; }
  footer > a { display: none; }
  .status { justify-self: end; }
}

@media (max-width: 420px) {
  header, main, footer { width: calc(100% - 24px); }
  .boot-meta { top: 20px; left: 20px; right: 20px; }
  .boot-corners i:nth-child(1) { left: 16px; top: 16px; }
  .boot-corners i:nth-child(2) { right: 16px; top: 16px; }
  .boot-corners i:nth-child(3) { right: 16px; bottom: 16px; }
  .boot-corners i:nth-child(4) { left: 16px; bottom: 16px; }
  header nav a { font-size: 7.5px; }
  .mark-wrap { width: min(68vw, 30svh, 230px); }
  .three-words { font-size: .67rem; letter-spacing: 0; }
  .three-words span:not(:last-child)::after { margin: 0 5px; }
  footer { gap: 12px; font-size: 7.5px; }
}

@media (max-height: 620px) {
  header { padding-top: 16px; }
  main { padding-block: 20px; }
  .mark-wrap { width: clamp(150px, 30svh, 220px); }
  .three-words { margin-top: 20px; }
  footer { padding-block: 14px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }
  .site-shell { opacity: 1; }
  .cursor, .orb, .mark, .mark-data { animation: none; }
}
