@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,200;0,400;0,700;0,900;1,900&family=IBM+Plex+Mono:wght@300;400;700&family=Barlow:wght@300;400;700&display=swap');

:root {
  --ink:    #000000;
  --paper:  #ffffff;
  --dim:    #888888;
  --rule:   1px solid #000;
  --rule-w: 2px solid #000;
  --f-display: 'Barlow Condensed', sans-serif;
  --f-mono:    'IBM Plex Mono', monospace;
  --f-body:    'Barlow', sans-serif;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #000 #fff;
}
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: #fff; }
::-webkit-scrollbar-thumb { background: #000; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  overflow-x: hidden;
}

#cur {
  position: fixed;
  width: 8px; height: 8px;
  background: #000;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%,-50%);
  transition: width .15s, height .15s;
  mix-blend-mode: difference;
}
#cur.hover { width: 44px; height: 44px; }

#cur-trail {
  position: fixed;
  width: 32px; height: 32px;
  border: 1px solid rgba(0,0,0,0.25);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%,-50%);
  transition: left .1s ease, top .1s ease;
  mix-blend-mode: difference;
}

#scroll-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: #000;
  z-index: 99997;
  width: 0%;
  transition: width .05s linear;
}

#loader {
  position: fixed; inset: 0;
  background: #000;
  z-index: 999999;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  gap: 0;
  transition: opacity .5s ease, visibility .5s ease;
}
#loader.out { opacity:0; visibility:hidden; pointer-events:none; }

.ld-line {
  display: block;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(70px, 14vw, 160px);
  letter-spacing: -2px;
  color: #fff;
  line-height: .85;
  overflow: hidden;
}
.ld-line span {
  display: block;
  transform: translateY(110%);
  animation: ldIn .7s cubic-bezier(.77,0,.18,1) forwards;
}
.ld-line:nth-child(1) span { animation-delay: .05s; }
.ld-line:nth-child(2) span { animation-delay: .15s; }
.ld-line:nth-child(3) span { animation-delay: .25s; }

@keyframes ldIn { to { transform: translateY(0); } }

.ld-bar {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,.15);
  margin-top: 40px;
  position: relative;
  overflow: hidden;
}
.ld-bar::after {
  content:'';
  position:absolute; left:0; top:0; height:100%; width:0;
  background:#fff;
  animation: ldBar 1.8s cubic-bezier(.77,0,.18,1) .3s forwards;
}
@keyframes ldBar { to { width:100%; } }

.ld-status {
  position: absolute;
  bottom: 40px; right: 40px;
  font-family: var(--f-mono);
  font-size: 10px;
  color: rgba(255,255,255,.3);
  letter-spacing: 3px;
  text-transform: uppercase;
  animation: ldBlink 1s steps(1) infinite;
}
@keyframes ldBlink { 50% { opacity:0; } }

.marquee-wrap {
  overflow: hidden;
  background: #000;
  padding: 14px 0;
  border-top: var(--rule-w);
  border-bottom: var(--rule-w);
  position: relative;
  z-index: 10;
}
.marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
  will-change: transform;
  animation: marqueeScroll 18s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
@keyframes marqueeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.marquee-item {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 4px;
  color: #fff;
  white-space: nowrap;
  padding: 0 40px;
  text-transform: uppercase;
  display: flex; align-items: center; gap: 24px;
}
.marquee-item::after {
  content: '///';
  opacity: .3;
}

.inv { background:#000; color:#fff; }
.inv a { color:#fff; }

section { position: relative; overflow: hidden; }

@keyframes revealUp {
  from { opacity:0; transform: translateY(50px); }
  to   { opacity:1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity:0; }
  to   { opacity:1; }
}

.s-label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 8px;
  display: block;
}
.inv .s-label { color: rgba(255,255,255,.35); }

@media (max-width:768px) {
  .ld-line { font-size: clamp(50px, 18vw, 100px); }
  .ld-status { bottom:20px; right:20px; }
  .marquee-item { padding: 0 24px; font-size: 10px; }
}

@media (max-width:480px) {
  .ld-line { font-size: clamp(40px, 16vw, 80px); }
  .ld-status { bottom:16px; right:16px; font-size: 9px; }
  .marquee-item { padding: 0 16px; font-size: 9px; letter-spacing: 2px; }
}

@media (hover: none) and (pointer: coarse) {
  #cur, #cur-trail { display: none; }
}
