/* Buttons, navigation details, cards, and decorative elements. */

.brand {
  display: inline-flex;

  align-items: center;

  gap: 13px;

  white-space: nowrap;

  font-size: 14px;

  font-weight: 800;

  letter-spacing: 0.13em;
}

.brand-light {
  color: var(--text-muted);

  font-weight: 400;
}

.brand-mark {
  width: 27px;

  height: 27px;

  border: 1px solid var(--accent);

  border-radius: 50%;

  display: grid;

  place-items: center;

  transform: rotate(-32deg);
}
.brand-mark span {
  width: 6px;

  height: 6px;

  border-radius: 50%;

  background: var(--accent);
}

.site-nav a {
  color: var(--text-muted);

  font-size: 12px;

  font-weight: 600;

  transition: color 0.2s ease;
}

.site-nav a:hover,
.text-link:hover {
  color: var(--accent-bright);
}

.header-action {
  padding: 12px 19px;

  border: 1px solid rgba(117, 101, 167, 0.28);

  border-radius: 4px;

  font: 600 11px var(--font-mono);

  letter-spacing: 0.035em;

  transition: background 0.2s ease;
}

.header-action:hover {
  background: rgba(117, 101, 167, 0.11);
}

.header-action span {
  color: var(--accent);

  padding-left: 12px;
}

.menu-toggle {
  display: none;

  flex-direction: column;

  gap: 6px;

  border: 0;

  background: none;

  cursor: pointer;

  padding: 9px;
}

.menu-toggle span {
  display: block;

  width: 24px;

  height: 2px;

  background: var(--text);
}

.hero-noise {
  position: absolute;

  inset: 0;

  opacity: 0.26;

  background-image: radial-gradient(
    rgba(117, 101, 167, 0.4) 0.6px,
    transparent 0.9px
  );

  background-size: 55px 55px;

  mask-image: linear-gradient(to right, transparent, #000 67%);

  pointer-events: none;
}

.eyebrow {
  display: flex;

  align-items: center;

  gap: 13px;

  color: var(--text-muted);

  font: 600 10px var(--font-mono);

  letter-spacing: 0.17em;
}

.eyebrow-number {
  color: var(--text-muted);

  margin-left: 9px;
}

.live-dot {
  flex: none;

  width: 7px;

  height: 7px;

  border-radius: 100%;

  background: var(--accent);
}

.title-world {
  display: inline-flex;

  align-items: baseline;
}

.word-part {
  position: relative;

  display: inline-block;

  isolation: isolate;
}

.word-text {
  display: inline-block;
}

/* The moving censorship window */

.censor-bar {
  position: absolute;

  inset: 10% 0;

  z-index: 1;

  background: var(--censor-bg);

  border-radius: 2px;

  overflow: hidden;

  /* Hidden at the left edge */

  clip-path: inset(0 100% 0 0);

  transition: clip-path 0.7s cubic-bezier(0.76, 0, 0.24, 1);
}

/* Expand across the word */

.word-part.redacted .censor-bar {
  clip-path: inset(0 0 0 0);
}

/* When leaving, collapse toward the right edge */

.word-part.leaving .censor-bar {
  clip-path: inset(0 0 0 100%);
}

/* Replacement text stays inside the black bar */

.censor-label {
  position: absolute;

  top: 50%;

  left: 50%;

  z-index: 2;

  display: block;

  width: max-content;

  font-family: var(--font-mono);

  font-style: italic;

  font-size: 1em;

  font-weight: 700;

  line-height: 1;

  white-space: nowrap;

  color: var(--censor-text);

  --label-scale: 1;

  opacity: 0;

  transform: translate(-50%, 100%) scaleX(var(--label-scale));

  transition:
    opacity 0.25s ease,
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Slide replacement text into the censor */

.word-part.redacted .censor-label {
  opacity: 1;

  transform: translate(-50%, -50%) scaleX(var(--label-scale));

  transition-delay: 0.2s;
}

/* Slide it out when switching */

.word-part.leaving .censor-label {
  opacity: 0;

  transform: translate(-50%, -170%) scaleX(var(--label-scale));

  transition-delay: 0s;
}

@media (prefers-reduced-motion: reduce) {
  .censor-bar,
  .censor-label {
    transition: none;
  }
}

.word-part.resetting .censor-bar,
.word-part.resetting .censor-label {
  transition: none !important;
}

.word-part.resetting .censor-bar {
  clip-path: inset(0 100% 0 0);
}

.title-underline {
  height: 2px;

  width: 75px;

  background: var(--accent);

  margin: 26px 0 0 6px;
}

.button {
  display: inline-flex;

  justify-content: center;

  align-items: center;

  gap: 28px;

  padding: 18px 23px;

  border-radius: 2px;

  font-size: 12px;

  font-weight: 750;

  white-space: nowrap;

  transition: background 0.2s ease;
}

.button:hover {
  opacity: 0.9;
}

.button-primary {
  background: var(--text);

  color: var(--surface);
}

.button-primary:hover {
  background: #353535;
  color: #ffffff;
}

.button-secondary {
  border: 1px solid var(--line);
  color: var(--text);
  background: transparent;
  border-radius: 50px;
}

.button-secondary:hover {
  background: var(--surface-hover);
}

.button span {
  font-size: 16px;

  font-weight: 500;
}

.hero-scroll,
.hero-status {
  display: flex;

  align-items: center;

  gap: 14px;

  font: 600 10px var(--font-mono);

  letter-spacing: 0.13em;

  color: var(--text-muted);
}

.scroll-track {
  height: 47px;

  width: 23px;

  border: 1px solid rgba(117, 101, 167, 0.45);

  border-radius: 15px;

  position: relative;
}

.scroll-track::after {
  content: "";

  position: absolute;

  left: 10px;

  top: 10px;

  width: 1px;

  height: 12px;

  background: var(--accent);

  animation: scroll-down 2s infinite;
}

.hero-status span {
  color: var(--accent);
}

@keyframes scroll-down {
  0% {
    transform: translateY(0);

    opacity: 1;
  }
  100% {
    transform: translateY(13px);

    opacity: 0;
  }
}

.world-orbit {
  position: absolute;

  width: 85%;

  height: 40%;

  border: 1px solid rgba(117, 101, 167, 0.1);

  border-radius: 50%;

  top: 31%;

  left: 7.5%;

  transform: rotate(-23deg);
}

.orbit-two {
  transform: rotate(46deg);

  width: 80%;

  height: 43%;

  top: 28%;

  border-color: rgba(117, 101, 167, 0.09);
}

.world-coordinate {
  position: absolute;

  color: var(--text-muted);

  font: 10px var(--font-mono);

  letter-spacing: 0.09em;
}

.coordinate-top {
  top: 21%;

  right: 9%;
}

.coordinate-bottom {
  bottom: 15%;

  left: 14%;

  display: flex;

  align-items: center;

  gap: 12px;
}

.coordinate-line {
  display: inline-block;

  width: 35px;

  height: 1px;

  background: var(--text-muted);
}

.world-reticle {
  position: absolute;

  top: 19%;

  left: 18%;

  width: 28px;

  height: 28px;

  border-left: 1px solid var(--accent);

  border-top: 1px solid var(--accent);

  opacity: 0.55;
}

.text-link {
  display: inline-flex;

  gap: 25px;

  align-items: center;

  color: var(--text);

  font: 600 12px var(--font-mono);

  letter-spacing: 0.1em;

  border-bottom: 1px solid var(--accent);

  padding-bottom: 9px;
}

.text-link span {
  color: var(--accent);
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
  padding: 25px 26px 24px;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
}

.project-card:hover {
  transform: translateY(-2px);

  border-color: rgba(117, 101, 167, 0.4);
}

.card-top {
  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: 10px;
}

.card-index {
  font: 600 10px var(--font-mono);

  color: var(--text-muted);

  letter-spacing: 0.14em;
}

.card-symbol {
  color: var(--accent);

  font-size: 23px;
}

.card-visual {
  height: 238px;

  margin: 19px 0 22px;

  position: relative;

  overflow: hidden;

  border: 1px solid rgba(117, 101, 167, 0.07);

  border-radius: 2px;
}

.visual-caption {
  position: absolute;

  bottom: 13px;

  left: 15px;

  color: rgba(95, 85, 112, 0.54);

  font: 9px var(--font-mono);

  letter-spacing: 0.09em;
}

.card-content {
  display: flex;

  align-items: flex-start;

  justify-content: space-between;

  gap: 15px;

  min-height: 97px;
}

.card-content h3 {
  font-size: 25px;

  letter-spacing: -0.045em;

  font-weight: 650;

  margin: 0 0 8px;
}

.card-content p {
  font-size: 13px;

  line-height: 1.7;

  color: var(--text-muted);

  max-width: 330px;

  margin-bottom: 0;
}

.round-link,
.card-arrow {
  flex: none;

  width: 36px;

  height: 36px;

  border: 1px solid rgba(117, 101, 167, 0.3);

  border-radius: 50%;

  display: grid;

  place-items: center;

  font-size: 19px;

  color: var(--accent);
}

.round-link:hover {
  background: var(--accent);
  color: #ffffff;
}

.card-tags {
  display: flex;

  gap: 8px;

  flex-wrap: wrap;

  border-top: 1px solid rgba(117, 101, 167, 0.12);

  padding-top: 20px;

  margin-top: 17px;
}

.card-tags span,
.skill-list span {
  font: 10px var(--font-mono);

  letter-spacing: 0.08em;

  color: var(--text-muted);

  border: 1px solid rgba(117, 101, 167, 0.16);

  border-radius: 2px;

  padding: 7px 10px;
}

/* The project illustrations are CSS-only: no external image downloads. */

.visual-engine {
  background: radial-gradient(
    circle at 50% 45%,
    #e7e0f1 0%,
    #d3c8e5 35%,
    #b8abc9 78%
  );
}

.engine-grid {
  position: absolute;

  inset: -50%;

  background-image:
    linear-gradient(rgba(117, 101, 167, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(117, 101, 167, 0.13) 1px, transparent 1px);

  background-size: 37px 37px;

  transform: rotateX(65deg) rotateZ(35deg);
}

.engine-cube {
  position: absolute;

  left: calc(50% - 74px);

  top: 38px;

  width: 148px;

  height: 148px;

  border: 2px solid #9d8bc9;

  transform: rotate(27deg) skew(-9deg, -9deg);

  box-shadow:
    0 0 36px rgba(117, 101, 167, 0.25),
    inset 0 0 28px rgba(117, 101, 167, 0.13);
}

.cube-back {
  transform: translate(36px, -12px) rotate(27deg) skew(-9deg, -9deg);

  opacity: 0.32;
}

.engine-cross {
  position: absolute;

  top: 43%;

  left: 49%;

  color: var(--accent);

  font-size: 33px;

  font-weight: 200;

  text-shadow: 0 0 26px #7565a744;
}

.visual-vr {
  background: linear-gradient(#eee9f5, #ddd5ea 55%, #c8bed9);
}

.vr-sun {
  position: absolute;

  border-radius: 50%;

  width: 145px;

  height: 145px;

  top: 29px;

  left: calc(50% - 72px);

  background: linear-gradient(#c4b2d9, #7565a7);

  box-shadow: 0 0 80px rgba(117, 101, 167, 0.35);
}

.vr-landscape {
  position: absolute;

  width: 110%;

  height: 130px;

  left: -5%;

  bottom: -49px;

  background: #b8acc9;

  clip-path: polygon(
    0 59%,
    18% 17%,
    33% 52%,
    47% 3%,
    68% 54%,
    83% 18%,
    100% 62%,
    100% 100%,
    0 100%
  );
}

.landscape-front {
  bottom: -77px;

  background: #8c7ea2;

  transform: scaleX(-1);
}

.vr-frame {
  position: absolute;

  top: 79px;

  left: calc(50% - 118px);

  width: 236px;

  height: 84px;

  border: 6px solid #e8e1f2;

  border-radius: 48px 48px 38px 38px;

  display: flex;

  gap: 14px;

  padding: 14px;

  box-shadow:
    0 8px 35px rgba(117, 101, 167, 0.7),
    0 0 30px rgba(117, 101, 167, 0.35);

  background: rgba(117, 101, 167, 0.82);
}

.vr-lens {
  flex: 1;

  border: 1px solid rgba(117, 101, 167, 0.6);

  border-radius: 50%;

  background: radial-gradient(
    circle at 65% 20%,
    rgba(117, 101, 167, 0.6),
    #afa0c9 65%
  );
}

.visual-drone {
  background: radial-gradient(circle at center, #eae5f0, #d9d1e4 56%, #c5b9d5);
}

.drone-radar {
  position: absolute;

  top: 50%;

  left: 50%;

  transform: translate(-50%, -50%);

  border: 1px solid rgba(117, 101, 167, 0.23);

  border-radius: 50%;
}

.radar-outer {
  width: 225px;

  height: 225px;
}

.radar-inner {
  width: 145px;

  height: 145px;
}

.drone-radar::before,
.drone-radar::after {
  content: "";

  position: absolute;

  background: rgba(117, 101, 167, 0.15);
}

.drone-radar::before {
  left: 50%;

  top: 0;

  width: 1px;

  height: 100%;
}

.drone-radar::after {
  top: 50%;

  left: 0;

  height: 1px;

  width: 100%;
}

.drone-object {
  position: absolute;

  top: calc(50% - 24px);

  left: calc(50% - 24px);

  width: 48px;

  height: 48px;

  border: 8px solid #7565a7;

  transform: rotate(45deg);

  filter: drop-shadow(0 0 17px rgba(117, 101, 167, 0.7));
}

.drone-object span {
  position: absolute;

  width: 22px;

  height: 22px;

  border: 4px solid #9d8bc9;

  border-radius: 50%;
}

.drone-object span:nth-child(1) {
  top: -29px;

  left: -29px;
}

.drone-object span:nth-child(2) {
  top: -29px;

  right: -29px;
}

.drone-object span:nth-child(3) {
  bottom: -29px;

  left: -29px;
}

.drone-object span:nth-child(4) {
  bottom: -29px;

  right: -29px;
}

.drone-center {
  position: absolute;

  width: 10px;

  height: 10px;

  border-radius: 50%;

  top: calc(50% - 5px);

  left: calc(50% - 5px);

  background: #f7f7f5;

  box-shadow: 0 0 15px #7565a7;
}

.visual-reality {
  background: radial-gradient(circle, #f0eaf7 0, #e2d8ef 54%, #d0c2e1);
}

.atom-path {
  position: absolute;

  top: 50%;

  left: 50%;

  width: 235px;

  height: 92px;

  border: 2px solid rgba(117, 101, 167, 0.66);

  border-radius: 50%;

  box-shadow: 0 0 19px rgba(117, 101, 167, 0.13);
}

.atom-one {
  transform: translate(-50%, -50%) rotate(0deg);
}

.atom-two {
  transform: translate(-50%, -50%) rotate(60deg);
}

.atom-three {
  transform: translate(-50%, -50%) rotate(-60deg);
}

.atom-nucleus {
  position: absolute;

  width: 27px;

  height: 27px;

  border-radius: 50%;

  background: #a78bfa;

  box-shadow: 0 0 45px 10px rgba(117, 101, 167, 0.55);

  top: calc(50% - 13px);

  left: calc(50% - 13px);
}

.skill-list {
  display: flex;

  flex-wrap: wrap;

  gap: 9px;

  max-width: 500px;
}

.skill-list span {
  color: var(--text-muted);

  padding: 9px 12px;
}

.terminal {
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--surface);
  overflow: hidden;
  font: 13px/1.8 var(--font-mono);
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-hover);
  color: var(--text-muted);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.terminal-lights {
  display: flex;

  gap: 6px;
}

.terminal-lights i {
  width: 8px;

  height: 8px;

  display: block;

  border-radius: 50%;

  background: #b98992;
}

.terminal-lights i:nth-child(2) {
  background: #c1a574;
}

.terminal-lights i:nth-child(3) {
  background: #a59ac5;
}

.terminal-body {
  padding: 25px 28px 31px;
}

.terminal-body p {
  margin-bottom: 3px;
}

.terminal-prompt {
  color: var(--accent);

  margin-right: 10px;
}

.terminal-output {
  color: var(--text-muted);

  padding-left: 22px;
}

.terminal-quote {
  color: var(--accent);

  margin-bottom: 13px !important;
}

.terminal-cursor {
  color: var(--accent);

  animation: cursor-blink 1.1s infinite steps(2, start);
}

@keyframes cursor-blink {
  to {
    opacity: 0;
  }
}

.contact-orbit {
  position: absolute;

  width: 680px;

  height: 210px;

  border: 1px solid rgba(117, 101, 167, 0.09);

  border-radius: 50%;

  left: 50%;

  top: 50%;

  transform: translate(-50%, -50%) rotate(-20deg);

  pointer-events: none;
}

.footer-star {
  color: var(--accent);

  margin-left: 10px;
}

@media (max-width: 600px) {
  .eyebrow {
    font-size: 8px;

    gap: 9px;

    letter-spacing: 0.09em;
  }

  .eyebrow-number {
    margin-left: 0;
  }

  .card-visual {
    height: 205px;
  }

  .project-card {
    padding: 22px 20px;
  }

  .card-content h3 {
    font-size: 23px;
  }

  .terminal-body {
    padding: 21px 16px;

    font-size: 11px;
  }

  .terminal-header {
    padding: 12px;
  }
}
