@font-face {
  font-family: "Bigilla";
  src: url("assets/Bigilla.otf") format("opentype");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #07070a;
  --paper: #f7f7fb;
  --muted: rgba(247, 247, 251, 0.62);
  --line: rgba(255, 255, 255, 0.12);
  --pink: #e90072;
  --blue: #159de4;
  --violet: #8c5cff;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ink);
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 115%, rgba(140, 92, 255, 0.12), transparent 43%),
    var(--ink);
  color: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: clamp(54px, 6vw, 88px) clamp(54px, 6vw, 88px);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.58), transparent 88%);
  opacity: 0.22;
  content: "";
}

.ambient {
  position: fixed;
  z-index: -3;
  width: min(52vw, 720px);
  aspect-ratio: 1;
  border-radius: 999px;
  filter: blur(125px);
  opacity: 0.17;
  pointer-events: none;
  animation: breathe 9s ease-in-out infinite alternate;
}

.ambient--blue {
  top: -32%;
  right: -10%;
  background: var(--blue);
}

.ambient--pink {
  bottom: -38%;
  left: -12%;
  background: var(--pink);
  animation-delay: -4.5s;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 4;
  opacity: 0.028;
  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='.78' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
  pointer-events: none;
}

.page-shell {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
  overflow: clip;
  padding: clamp(22px, 3.2vw, 52px) clamp(22px, 5vw, 82px);
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header {
  position: relative;
  z-index: 2;
}

.brand {
  display: inline-flex;
  align-items: flex-start;
  color: inherit;
  text-decoration: none;
}

.brand__word {
  font-family: "Bigilla", Georgia, serif;
  font-size: clamp(2.8rem, 5.2vw, 5.6rem);
  font-weight: 700;
  line-height: 0.72;
  letter-spacing: -0.055em;
}

.brand__spark {
  width: 0.55rem;
  height: 0.55rem;
  margin: -0.2rem 0 0 0.45rem;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 24px rgba(233, 0, 114, 0.8);
  animation: pulse 2.2s ease-out infinite;
}

.status {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: clamp(0.72rem, 1vw, 0.84rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.status__dot {
  width: 0.58rem;
  height: 0.58rem;
  border: 2px solid var(--pink);
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(233, 0, 114, 0.6);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(32px, 0.13fr) minmax(0, 1fr) minmax(180px, 0.62fr);
  align-items: center;
  gap: clamp(18px, 3vw, 48px);
  width: min(100%, 1500px);
  margin: 0 auto;
}

.hero__index {
  align-self: end;
  margin-bottom: clamp(18px, 7vh, 84px);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  writing-mode: vertical-rl;
}

.hero__index::after {
  display: inline-block;
  width: 1px;
  height: 64px;
  margin-top: 15px;
  background: var(--line);
  content: "";
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 940px;
}

.eyebrow {
  margin: 0 0 clamp(18px, 3vh, 34px);
  color: var(--blue);
  font-size: clamp(0.78rem, 1.1vw, 0.95rem);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.message {
  min-height: 4.8em;
  margin: 0;
  font-family: "Bigilla", Georgia, serif;
  font-size: clamp(3.15rem, 6.8vw, 7.5rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

#typed-text::first-line {
  color: var(--paper);
}

.cursor {
  display: inline-block;
  width: 0.075em;
  height: 0.72em;
  margin-left: 0.07em;
  border-radius: 999px;
  background: var(--pink);
  box-shadow: 0 0 24px rgba(233, 0, 114, 0.75);
  vertical-align: 0.02em;
  animation: blink 0.82s step-end infinite;
}

.hero__mark {
  position: relative;
  width: min(27vw, 410px);
  aspect-ratio: 1;
  justify-self: end;
  display: grid;
  place-items: center;
  opacity: 0.9;
  animation: float 8s ease-in-out infinite;
}

.hero__mark::before,
.hero__mark::after {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.19);
  content: "";
}

.hero__mark::before {
  width: 72%;
  height: 88%;
  transform: rotate(18deg);
}

.hero__mark::after {
  width: 88%;
  height: 64%;
  border-color: rgba(21, 157, 228, 0.44);
  transform: rotate(-23deg);
}

.hero__mark-letter,
.hero__mark-echo {
  position: absolute;
  font-family: "Bigilla", Georgia, serif;
  font-size: clamp(13rem, 25vw, 24rem);
  font-weight: 700;
  line-height: 1;
}

.hero__mark-letter {
  background: linear-gradient(145deg, var(--blue) 10%, var(--violet) 48%, var(--pink) 86%);
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 42px rgba(140, 92, 255, 0.25));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__mark-echo {
  color: transparent;
  opacity: 0.24;
  transform: translate(12%, -9%);
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.55);
}

.hero__mark-dot {
  position: absolute;
  z-index: 1;
  display: block;
  transform: rotate(45deg);
}

.hero__mark-dot--one {
  top: 29%;
  left: 2%;
  width: 14px;
  height: 14px;
  background: var(--blue);
  box-shadow: 0 0 23px var(--blue);
}

.hero__mark-dot--two {
  right: 6%;
  bottom: 21%;
  width: 18px;
  height: 18px;
  border: 2px solid var(--pink);
  box-shadow: 0 0 18px rgba(233, 0, 114, 0.45);
}

.site-footer {
  color: var(--muted);
  font-size: clamp(0.78rem, 1vw, 0.95rem);
  letter-spacing: 0.04em;
}

.site-footer__mark {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--paper);
  font-family: "Bigilla", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
}

@keyframes blink {
  50% { opacity: 0; }
}

@keyframes pulse {
  0% { transform: scale(0.72); opacity: 0.9; }
  70%, 100% { transform: scale(1.65); opacity: 0; }
}

@keyframes float {
  0%, 100% { transform: translate3d(0, -6px, 0) rotate(-2deg); }
  50% { transform: translate3d(0, 11px, 0) rotate(2deg); }
}

@keyframes breathe {
  from { transform: scale(0.9) translate3d(0, 0, 0); }
  to { transform: scale(1.12) translate3d(3%, 2%, 0); }
}

@media (max-width: 860px) {
  body {
    overflow-y: auto;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    padding: 4vh 0;
  }

  .hero__index {
    display: none;
  }

  .message {
    min-height: 5.5em;
    font-size: clamp(3rem, 11vw, 5.7rem);
  }

  .hero__mark {
    position: absolute;
    right: -2vw;
    bottom: -5vh;
    z-index: 0;
    width: min(50vw, 340px);
    opacity: 0.36;
  }
}

@media (max-width: 560px) {
  .page-shell {
    min-height: 100svh;
    padding: 25px 22px 22px;
  }

  .status span:last-child {
    display: none;
  }

  .status__dot {
    width: 0.72rem;
    height: 0.72rem;
  }

  .eyebrow {
    max-width: 18rem;
    line-height: 1.5;
  }

  .message {
    min-height: 6.2em;
    font-size: clamp(3rem, 14.5vw, 4.5rem);
  }

  .site-footer {
    max-width: 100%;
    gap: 1rem;
    line-height: 1.35;
  }
}

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

  .cursor {
    display: none;
  }
}
