/* xone.build: the look of cliquex.net (same colours, type, background and motion), with a project grid instead of product sections */
:root {
  --bg: #141312;
  --bg-2: #1f1e1d;
  --text: #e8e4dc;
  --dim: #a8a49b;
  --mute: #6f6c66;
  --accent: #b3241f;
  --logo: #b3241f;
  --teal: #10a37f;
  --violet: #9d6bf5;
  --border: rgba(255, 255, 255, 0.12);
  --radius: 14px;
  --mono: "Cascadia Code", "JetBrains Mono", Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

#gl { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; }
.grain { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; padding: 14px 28px; backdrop-filter: blur(14px); background: rgba(20, 19, 18, 0.55); border-bottom: 1px solid var(--border); }
.brand { display: inline-flex; align-items: center; font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }
.brand b { color: var(--logo); font-weight: 700; }
.brand i { font-style: normal; color: var(--mute); font-weight: 500; }
nav { display: flex; gap: 22px; align-items: center; font-size: 14px; color: var(--dim); }
nav a:hover { color: var(--text); }
nav .cta { color: var(--text); border: 1px solid var(--border); padding: 6px 14px; border-radius: 999px; }
nav .cta:hover { border-color: var(--accent); }

main { position: relative; z-index: 2; }
section { padding: 96px 28px; max-width: 1180px; margin: 0 auto; }

.hero { text-align: center; padding-top: 120px; padding-bottom: 40px; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); margin: 0 0 18px; }
h1 { font-size: clamp(38px, 6.4vw, 78px); line-height: 1.02; letter-spacing: -0.02em; margin: 0 0 22px; font-weight: 700; }
h1 .line { display: block; }
h1 .accent { background: linear-gradient(92deg, var(--accent), #ffb28a 40%, var(--accent) 60%, var(--violet)); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 7s linear infinite; }
@keyframes shimmer { to { background-position: 300% 0; } }
.lede { max-width: 680px; margin: 0 auto 30px; font-size: clamp(16px, 1.6vw, 20px); color: var(--dim); }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.04); color: var(--text); font-weight: 600; transition: transform 0.2s, border-color 0.2s, background 0.2s; }
.btn:hover { transform: translateY(-1px); border-color: rgba(255, 255, 255, 0.3); }
.btn.primary { background: var(--accent); border-color: transparent; color: #f3ece6; box-shadow: 0 10px 30px rgba(179, 36, 31, 0.3); }
.btn.primary:hover { background: #c93a33; }

h2 { font-size: clamp(28px, 3.6vw, 44px); letter-spacing: -0.02em; margin: 0 0 26px; }
.muted { color: var(--dim); }

/* the projects: one large card each, the thumbnail on top */
.work { padding-top: 56px; }
.projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 22px; }
.project { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: rgba(31, 30, 29, 0.6); backdrop-filter: blur(10px); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); transition: border-color 0.25s, opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
a.project:hover { border-color: rgba(179, 36, 31, 0.7); }
.project figure { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--border); background: var(--bg-2); }
.project figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
a.project:hover figure img { transform: scale(1.025); }
.project-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.project-body h3 { margin: 0; font-size: 24px; letter-spacing: -0.01em; }
.project-body p { margin: 0; color: var(--dim); font-size: 15.5px; }
.project-body .status { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); display: flex; align-items: center; gap: 8px; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--mute); }
.project-body .status.live { color: var(--teal); }
.status.live i { background: var(--teal); box-shadow: 0 0 10px var(--teal); }
.go { margin-top: auto; padding-top: 12px; font-weight: 600; color: var(--text); }
a.project:hover .go { color: #e0574f; }
.more { text-align: center; color: var(--mute); font-size: 14px; margin: 34px 0 0; }

.about { text-align: center; }
.about p { max-width: 640px; margin: 0 auto; font-size: 17px; }
.donate-btn { min-width: 200px; justify-content: center; }
.about + .about { padding-top: 0; }
.dl { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 28px 0 0; }

footer { position: relative; z-index: 2; display: flex; gap: 22px; align-items: center; justify-content: center; padding: 30px 28px 48px; border-top: 1px solid var(--border); font-size: 14px; color: var(--dim); flex-wrap: wrap; }
footer b { color: var(--logo); }
footer a:hover { color: var(--text); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }
/* tilt follows the pointer */
.tilt { transform-style: preserve-3d; will-change: transform; }

@media (max-width: 860px) {
  section { padding: 64px 18px; }
  .hero { padding-top: 84px; }
  nav a:not(.cta) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  h1 .accent { animation: none; }
}
