html { scroll-behavior: smooth; }

:root{
  --paper: #f6f3ea;
  --ink: #111;
  --muted: #3b3b3b;
  --rule: rgba(0,0,0,.10);
  --accent: #2d3a8c;

  --card: rgba(255,255,255,.72);
  --shadow: 0 12px 28px rgba(0,0,0,.10);
  --shadow-soft: 0 10px 24px rgba(0,0,0,.06);
  --ring: rgba(45,58,140,.18);
  --accent-wash: rgba(45,58,140,.10);
}

body{
  margin:0;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
}

.container{
  width: min(860px, 92vw);
  margin: 72px auto;
  padding-bottom: 80px;
}

.section{
  padding: 34px 0;
  border-top: 1px solid var(--rule);
}

h2{
  font-size: 14px;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin: 0 0 14px;
  color: var(--muted);
}

.video, .project-links {
    display: flex;
    width: 100%;
    justify-content: center;
    iframe {
        height: 45vh;
        width: 85%;
        border-radius: 20px;
        box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    }
}

/* mobile: resize video */
@media (max-width: 1500px){
  .video > iframe { 
      height: 40vw; 
  }
}

/* mobile: resize video */
@media (max-width: 1200px){
  .video > iframe { 
      height: 50vw; 
      width: 90%;
  }
}

/* --- Orb nav --- */
.orb-nav{
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 12px;
  z-index: 20;
}

.orb{
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.28);
  background: rgba(255,255,255,.05);
  position: relative;
}

.orb.active{
  border-color: rgba(45,58,140,.55);
  background: rgba(45,58,140,.14);
}

/* label appears on hover */
.orb span{
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: var(--muted);
  background: rgba(246,243,234,.9);
  border: 1px solid rgba(0,0,0,.08);
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.orb:hover span{
  opacity: 1;
  transform: translateY(-50%) translateX(-2px);
}

/* lagging halo */
.orb-halo{
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(45,58,140,.22);
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  transform: translate(-8px, -8px);
  left: 0;
  top: 0;
  pointer-events: none;
  transition: transform 700ms cubic-bezier(.2,.9,.2,1);
}

/* mobile: hide orb nav */
@media (max-width: 820px){
  .orb-nav{ display:none; }
}


/* Cursor Orb */
.cursor-orb{
  position: fixed;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  pointer-events: none;
  border: 1px solid rgba(0,0,0,0.25);
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, border 0.2s ease;
  z-index: 9999;
}

/* ------------------------------------- */

.narrow {
  max-width: 780px;
}

.back-link {
  margin-top: 40px;
}

.project-header h1 {
  margin-bottom: 6px;
}

.project-tagline {
  color: #444;
  font-size: 16px;
}

.screenshot-grid {
  display: grid;
  gap: 20px;
}

.screenshot-grid img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.download-box {
  border: 1px solid rgba(0,0,0,0.08);
  padding: 24px;
  border-radius: 18px;
  background: rgba(255,255,255,0.4);
}

.download-row {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.download-btn {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.25);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease, border 0.2s ease;
}

.download-btn:hover {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.4);
}

.checksum-inline {
  font-size: 12px;
  color: #444;
  display: flex;
  align-items: center;
  gap: 10px;
}

.checksum-inline code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: rgba(0,0,0,0.05);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 11px;
  word-break: break-all;
}

.checksum-label {
  letter-spacing: 0.08em;
  font-size: 11px;
  text-transform: uppercase;
}

button {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.2);
  background: transparent;
  cursor: pointer;
}


.hidden {
  display: none;
}

.comingSoon {
  width: 100%;
  height: 30vh;
  border: 1px solid var(--ink);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  padding: 10px 2px;
  font-family: Papyrus;
  font-style: italic;
}


/* Hide on mobile */
@media (max-width: 820px){
  .cursor-orb{ display: none; }
  .video {
    height: 100%;
  }
}






/* --------------- */



.box-container {
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
    opacity: 0.7;
}

.box-card {
    width: 100px;
    height: 100px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 1s ease;
    cursor: pointer;
}

.box-card:hover {
    animation: rotate3d 8s infinite linear;
}

.face {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.75rem;
    font-weight: bold;
    backface-visibility: visible;
    border-radius: 12px;
    background: linear-gradient(145deg, var(--paper), #383838);
    border: 1.5px groove rgba(0 0 0 / 20%);
    transition: all 0.3s ease;
    overflow: hidden;
}

.face::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    top: -100%;
    left: -100%;
    transition: all 0.5s ease;
    transform: translateZ(20px);
}

.face::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        transparent 0%,
        rgba(255, 255, 255, 0.05) 50%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.face:hover::before {
    top: 100%;
    left: 100%;
}

.face:hover::after {
    opacity: 1;
}

.front {
    transform: translateZ(75px);
    border-color: transparent;
}

.back {
    transform: translateZ(-75px) rotateY(180deg);
    border-color: silver;
}

.right {
    transform: translateX(75px) rotateY(90deg);
    border-color: whitesmoke;
}

.left {
    transform: translateX(-75px) rotateY(-90deg);
    border-color: var(--accent);
}

.top {
    transform: translateY(-75px) rotateX(90deg);
    border-color: silver;
}

.bottom {
    transform: translateY(75px) rotateX(-90deg);
    border-color: var(--paper);
}

@keyframes rotate3d {
    0% {
        transform: rotateX(0) rotateY(0);
    }
    25% {
        transform: rotateX(90deg) rotateY(90deg);
    }
    50% {
        transform: rotateX(180deg) rotateY(180deg);
    }
    75% {
        transform: rotateX(270deg) rotateY(270deg);
    }
    100% {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

@media (max-width: 768px) {
    .box-card {
        width: 50px;
        height: 50px;
        animation: rotate3d 8s infinite linear;
    }
    .face{
      font-size: 0.5rem;
    }
    
    .front { transform: translateZ(50px); }
    .back { transform: translateZ(-50px) rotateY(180deg); }
    .right { transform: translateX(50px) rotateY(90deg); }
    .left { transform: translateX(-50px) rotateY(-90deg); }
    .top { transform: translateY(-50px) rotateX(90deg); }
    .bottom { transform: translateY(50px) rotateX(-90deg); }
}


/* Fancy Links for Header ---------------------------------------------- */

/* default: touch */
#links-simple { display: block; }
#links-fancy  { display: none; }

/* only show fancy when hover + fine pointer exists */
@media (hover: hover) and (pointer: fine) {
  #links-simple { display: none; }
  #links-fancy  { display: block; }
}

.fancy-links * {
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

.fancy-links ul {
  display: flex;
  position: relative;
  gap: 18px;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
}

.fancy-links ul li {
  position: relative;
  width: 45px;
  height: 45px;
  background: var(--paper);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-radius: 60px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.5s;
  overflow: hidden; /* keeps gradients neatly clipped */
}

.fancy-links ul li::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50px;
  background: linear-gradient(45deg, var(--i), var(--j));
  opacity: 0;
  transition: 0.5s;
}

.fancy-links ul li::after {
  content: "";
  position: absolute;
  top: 10px;
  width: 100%;
  height: 100%;
  border-radius: 60px;
  background: linear-gradient(45deg, var(--i), var(--j));
  transition: 0.5s;
  filter: blur(15px);
  z-index: -1;
  opacity: 0;
}

.fancy-links ul li:hover {
  width: 180px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0);
}

.fancy-links ul li:hover::before {
  opacity: 1;
}

.fancy-links ul li:hover::after {
  opacity: 0.5;
}

/* Make the anchor fill the whole pill so the whole thing is clickable */
.fancy-links ul li > a {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}

/* Icon */
.fancy-links ul li ion-icon {
  color: #777;
  font-size: 1.75em;
  transition: 0.5s;
  transition-delay: 0.25s;
  padding-top: 7.5px;
}

.fancy-links ul li:hover ion-icon {
  transform: scale(0);
  color: var(--card);
  transition-delay: 0s;
}

.fancy-links ul li span {
  position: absolute;
}

.fancy-links ul li .title {
  font-size: 1.1em;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: scale(0);
  transition: 0.5s;
  transition-delay: 0s;
  white-space: nowrap;
}

.fancy-links ul li:hover .title {
  transform: scale(1);
  transition-delay: 0.25s;
}

/* Keyboard focus (important) */
.fancy-links a:focus-visible {
  outline: 3px solid rgba(0,0,0,0.35);
  outline-offset: 4px;
  border-radius: 60px;
}