/* paranoiac — portfolio. Components adapted from /Desktop/planes-components. */

* { box-sizing: border-box; }

:root {
  color-scheme: dark;
  --page-bg: #050408;
  --page-fg: #f6f3ff;
  --muted: rgba(246, 243, 255, .55);
  --line: rgba(246, 243, 255, .12);
  --ink: #7b6cf0;
  --lilac: #cdc4ff;
  --mono: ui-monospace, "SF Mono", Consolas, "Cascadia Mono", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page-bg);
  color: var(--page-fg);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ---------- page background ---------- */

.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  background: #050408;
}

.bg canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.bg-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(5, 4, 8, .28), rgba(5, 4, 8, .28)),
    radial-gradient(ellipse at 50% 42%, rgba(5, 4, 8, .78), rgba(5, 4, 8, .46) 72%),
    linear-gradient(180deg, rgba(5, 4, 8, .55), rgba(5, 4, 8, 0) 22%, rgba(5, 4, 8, 0) 76%, rgba(5, 4, 8, .6));
}

a { color: inherit; }

::selection { background: rgba(123, 108, 240, .45); color: #fff; }

:focus-visible {
  outline: 2px solid var(--lilac);
  outline-offset: 3px;
}

/* ---------- announcement bar (component) ---------- */

.bar {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #09090b;
  color: #fff;
}

.bar-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.bar-bg canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.bar-dim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .42);
}

/* the two sweep layers darken the strip at rest, then slide away on hover */
.sweep { background: rgba(4, 3, 10, .94); }

.sweep-left { clip-path: inset(0 var(--r, 0%) 0 0); }
.sweep-right { clip-path: inset(0 0 0 var(--l, 0%)); }

.bar-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 1400px;
  min-height: 40px;
  margin: 0 auto;
  padding: 8px 16px;
}

.bar-inner.is-hiding { opacity: 0; transition: opacity .12s ease; }

.bar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
  border-radius: 6px;
  color: #fff;
  font-size: 13px;
  text-decoration: none;
  outline: none;
}

.bar-link:focus-visible { box-shadow: 0 0 0 2px rgba(255, 255, 255, .6); }

.bar-tag {
  flex: 0 0 auto;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .16);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  line-height: 16px;
}

.bar-copy {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-title {
  font-weight: 500;
  letter-spacing: -.01em;
}

.bar-desc { color: rgba(255, 255, 255, .75); }

.bar-more {
  display: none;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  font-weight: 500;
}

.bar-dot { color: rgba(255, 255, 255, .4); }

.bar-more svg,
.bar-arrow {
  width: 14px;
  height: 14px;
  transition: transform .15s ease;
}

.bar-link:hover .bar-more svg { transform: translateX(2px); }

.bar-arrow { flex: 0 0 auto; }

.bar-dismiss {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-right: -6px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, .75);
  cursor: pointer;
  outline: none;
  transition: background-color .15s ease, color .15s ease;
}

.bar-dismiss svg { width: 14px; height: 14px; }
.bar-dismiss:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.bar-dismiss:focus-visible { box-shadow: 0 0 0 2px rgba(255, 255, 255, .6); }

@media (min-width: 640px) {
  .bar-inner { padding: 8px 24px; }
  .bar-link { justify-content: center; }
  .bar-more { display: inline-flex; }
  .bar-arrow { display: none; }
}

@media (min-width: 768px) {
  .bar-desc { display: inline; }
}

@media (max-width: 767px) {
  .bar-desc { display: none; }
}

/* ---------- skip link ---------- */

.skip {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: #f4f1ff;
  color: #0b0718;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: top .18s ease;
}

.skip:focus { top: 12px; }

/* ---------- navbar (component) ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 12px 16px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 1000px;
  height: 60px;
  margin: 0 auto;
  padding: 0 8px 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(246, 243, 255, .1);
  background: rgba(10, 8, 18, .7);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 50px -30px rgba(0, 0, 0, .9);
  transition: background-color .25s ease, border-color .25s ease;
}

.nav.is-scrolled .nav-inner {
  background: rgba(10, 8, 18, .9);
  border-color: rgba(246, 243, 255, .16);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -.01em;
  text-decoration: none;
  color: var(--page-fg);
}

.nav-brand img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(246, 243, 255, .2);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  flex: 1 1 auto;
}

.nav-links a {
  padding: 6px 0;
  font-size: 13px;
  color: rgba(246, 243, 255, .62);
  text-decoration: none;
  transition: color .2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: #fff;
  outline: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 36px;
  padding: 0 14px;
  border-radius: 9px;
  background: #f4f1ff;
  color: #0b0718;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -.01em;
  text-decoration: none;
  transition: background-color .2s ease;
}

.nav-cta:hover { background: #fff; }

.nav-menu-btn {
  display: none;
  width: 38px;
  height: 38px;
  place-items: center;
  padding: 0;
  border-radius: 9px;
  border: 1px solid rgba(246, 243, 255, .12);
  background: rgba(246, 243, 255, .05);
  color: #f6f3ff;
  cursor: pointer;
}

.nav-menu-btn svg { width: 17px; height: 17px; }
.nav-menu-btn .icon-close { display: none; }
.nav-menu-btn.is-open .icon-open { display: none; }
.nav-menu-btn.is-open .icon-close { display: block; }

.nav-panel {
  position: absolute;
  left: 16px;
  right: 16px;
  top: calc(100% + 10px);
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 22px;
  border-radius: 16px;
  border: 1px solid rgba(246, 243, 255, .12);
  background: rgba(10, 8, 18, .94);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .95);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity .2s ease, transform .25s cubic-bezier(.16, 1, .3, 1);
}

.nav-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

.nav-panel-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  padding: 6px 0;
}

.nav-panel-text h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -.035em;
  color: #fff;
}

.nav-panel-text p {
  margin: 0;
  max-width: 40ch;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(246, 243, 255, .55);
}

.nav-panel-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  margin-top: 6px;
  padding: 0 14px;
  border-radius: 9px;
  border: 1px solid rgba(246, 243, 255, .14);
  background: rgba(246, 243, 255, .06);
  color: #f6f3ff;
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color .2s ease;
}

.nav-panel-link:hover { background: rgba(246, 243, 255, .12); }

.nav-panel-card {
  position: relative;
  height: 190px;
  border-radius: 12px;
  overflow: hidden;
  background: #120c28;
}

.nav-panel-card canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.nav-card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 4, 8, .05) 30%, rgba(5, 4, 8, .78));
}

.nav-card-copy {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nav-card-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: #fff;
}

.nav-card-sub {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(246, 243, 255, .55);
}

.nav-menu { display: none; }

@media (max-width: 820px) {
  .nav-inner {
    width: 100%;
    max-width: 430px;
    gap: 14px;
    height: 56px;
    padding: 0 8px 0 14px;
    border-radius: 14px;
  }

  .nav-links { display: none; }
  .nav-panel { display: none; }
  .nav-menu-btn { display: grid; }

  .nav-menu {
    flex-direction: column;
    width: 100%;
    max-width: 430px;
    margin: 8px auto 0;
    padding: 6px 16px 12px;
    border: 1px solid rgba(246, 243, 255, .1);
    border-radius: 14px;
    background: rgba(10, 8, 18, .96);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }

  .nav-menu:not([hidden]) { display: flex; }

  .nav-menu a {
    padding: 14px 2px;
    font-size: 15px;
    color: rgba(246, 243, 255, .82);
    text-decoration: none;
    border-bottom: 1px solid rgba(246, 243, 255, .07);
  }

  .nav-menu a:last-child {
    border-bottom: 0;
  }
}

/* ---------- hero ---------- */

.page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  padding: clamp(40px, 6vh, 64px) 0 clamp(40px, 6vh, 72px);
}

.hero h1 {
  margin: 0 0 clamp(24px, 4vh, 36px);
  font-size: clamp(52px, 6.4vw, 92px);
  font-weight: 600;
  line-height: .9;
  letter-spacing: -.055em;
  text-indent: -.04em;
  color: #fbf9ff;
  text-shadow: 0 0 90px rgba(123, 108, 240, .22);
}

.hero-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.lower {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: end;
}

/* ---------- portrait ---------- */

.portrait {
  position: relative;
  width: min(340px, 100%);
  margin: 0;
  perspective: 900px;
}

.pfp {
  position: relative;
  aspect-ratio: 1;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(246, 243, 255, .18);
  background: #160f2e;
  box-shadow:
    0 24px 64px -34px rgba(89, 68, 196, .65),
    0 1px 0 rgba(255, 255, 255, .12) inset;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .2s ease-out;
  will-change: transform;
}

.pfp img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pfp-sheen {
  position: absolute;
  inset: 0;
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
  background: radial-gradient(
    55% 80% at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, .28),
    rgba(255, 255, 255, .07) 42%,
    transparent 72%
  );
}

.portrait:hover .pfp-sheen { opacity: 1; }

/* ---------- shader rows (component) ---------- */

.rows {
  list-style: none;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.row-item {
  display: flex;
  flex: 1 1 0;
  border-top: 1px solid var(--line);
  transition: opacity .3s ease;
}

.row-item:first-child { border-top: 0; }
.row-item.is-dim { opacity: .4; }

.row {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  margin: 0;
  padding: 20px 20px 20px 26px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  outline: none;
}

.row:focus-visible { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .4); }

.row-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #000;
  clip-path: inset(0 var(--r, 100%) 0 var(--l, 0%));
  pointer-events: none;
}

.row-bg canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.row-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, .8), rgba(0, 0, 0, .55) 55%, rgba(0, 0, 0, .1));
}

.row-text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  gap: 3px;
}

.row-title {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -.02em;
  color: var(--page-fg);
  transition: color .3s ease;
}

.row-desc {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .02em;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color .3s ease;
}

.row-icon {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .62);
  transition: background-color .3s ease, color .3s ease;
}

.row-icon svg { width: 20px; height: 20px; }

.row.is-active .row-title { color: #fff; }
.row.is-active .row-desc { color: rgba(255, 255, 255, .75); }
.row.is-active .row-icon { background: #fff; color: var(--accent, #7b6cf0); }

/* ---------- cinematic text (component) ---------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.hero h1 .word {
  display: inline-block;
  white-space: pre;
  will-change: filter, transform;
}

.hero h1 .word:not(:last-child) { margin-right: .16em; }

/* ---------- about band ---------- */

.about {
  margin: 0 0 clamp(40px, 6vh, 64px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 16px;
  padding: 20px 0;
}

.about-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(246, 243, 255, .72);
  white-space: nowrap;
}

.about-sep {
  font-size: 10px;
  color: rgba(169, 155, 250, .55);
}

.about-star {
  font-size: 11px;
  letter-spacing: .08em;
  color: rgba(205, 196, 255, .5);
}

.about-item em {
  font-style: normal;
  color: #cdc4ff;
}

.about-item em.muted { color: rgba(246, 243, 255, .38); }

.lv {
  display: inline-block;
  width: 18px;
  height: 12px;
  border-radius: 2px;
  vertical-align: middle;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .15);
}

/* ---------- discord popover ---------- */

.row-item { position: relative; }

.row-item.is-copied .row-title { color: #cdc4ff; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero {
    min-height: 0;
    padding-top: 40px;
  }

  .lower {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-main { display: contents; }

  .portrait {
    width: min(300px, 70%);
    margin: 0 auto;
    order: 2;
  }

  .hero h1 { order: 1; margin-bottom: 0; }
  .rows { order: 3; }
}

@media (max-width: 560px) {
  .hero h1 { margin-bottom: 36px; }

  .portrait { width: min(240px, 64%); }

  .row { padding: 18px 6px; gap: 14px; }
  .row-title { font-size: 19px; }
  .row-icon { width: 40px; height: 40px; }

  .row-desc { font-size: 10.5px; }

  .about-band { padding: 16px 0; gap: 8px 14px; }
  .about-item { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pfp { transform: none !important; }
}
