/* sicks.cc */

:root {
  --bg: #000;
  --white: #f0f0f0;
  --red: #6822f2;
  --muted: #383838;
  --muted-light: #787878;
  --border: rgba(255,255,255,0.07);
  --font: 'Inter', sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  animation: pagein 0.7s ease both;
}
@keyframes pagein {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* smooth scroll wrapper */
#scroller {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  will-change: transform;
}
@media (hover: none) {
  #scroller { position: relative; will-change: auto; }
}


a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; color: inherit; }

img {
  display: block;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}

.protect {
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: pointer;
}

/* ---- Scroll progress ---- */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--red);
  z-index: 200;
  pointer-events: none;
  transform-origin: left;
}

/* ---- Custom cursor ---- */
@media (hover: hover) {
  *, *::before, *::after { cursor: none !important; }

  .cursor-dot {
    position: fixed;
    top: 0; left: 0;
    width: 5px; height: 5px;
    background: var(--white);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    will-change: transform;
    transform: translate(-50%, -50%);
    transition: opacity 0.15s;
  }
  .cursor-ring {
    position: fixed;
    top: 0; left: 0;
    width: 32px; height: 32px;
    border: 1px solid rgba(240,240,240,0.28);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    will-change: left, top;
    transform: translate(-50%, -50%);
    transition: border-color 0.3s, width 0.35s cubic-bezier(0.23,1,0.32,1),
                height 0.35s cubic-bezier(0.23,1,0.32,1), opacity 0.15s;
  }

  body.cursor-hover .cursor-dot { opacity: 0; }
  body.cursor-hover .cursor-ring {
    width: 46px; height: 46px;
    border-color: var(--red);
  }
  body.cursor-out .cursor-dot,
  body.cursor-out .cursor-ring { opacity: 0; }
}

/* ---- Page exit ---- */
@keyframes pageout { to { opacity: 0; } }
body.page-exit {
  animation: pageout 0.35s ease forwards;
  pointer-events: none;
}

/* ---- Nav ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 48px;
  height: 56px;
  background: rgba(8,8,8,0.88);
  border-bottom: 1px solid var(--border);
  transition: transform 0.45s cubic-bezier(0.76,0,0.24,1);
}
.nav.nav--hidden { transform: translateY(-100%); }

.nav-links {
  position: relative;
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-links a {
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--muted-light);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  position: relative;
  transition: color 0.15s, transform 0.2s cubic-bezier(0.23,1,0.32,1);
  will-change: transform;
}
.nav-links a:hover { color: var(--white); }

.nav-links a.nav-live {
  color: var(--muted-light);
  display: flex;
  align-items: center;
  gap: 7px;
  transition: color 0.3s;
}
.nav-links a.nav-live:hover { color: var(--white); }

.nav-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted-light);
  flex-shrink: 0;
  transition: background 0.3s;
}

.nav-links a.nav-live.is-live { color: var(--red); }
.nav-links a.nav-live.is-live:hover { color: var(--red); }
.nav-links a.nav-live.is-live .nav-live-dot {
  background: var(--red);
  animation: livepulse 1.4s ease-in-out infinite;
}
@keyframes livepulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%       { transform: scale(0.5); opacity: 0.4; }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  z-index: 60;
  position: absolute;
  right: 24px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 1px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}

/* ---- Mute button ---- */
.nav-mute {
  position: absolute;
  right: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--muted-light);
  transition: color 0.15s;
}
.nav-mute:hover { color: var(--white); }

.nav-mute svg {
  width: 16px;
  height: 16px;
}
.nav-mute .mute-icon-off { display: none; }
.nav-mute.muted .mute-icon-on  { display: none; }
.nav-mute.muted .mute-icon-off { display: block; }

/* ---- Hero ---- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 80px 48px 64px;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.hero-glitch {
  display: grid;
  place-items: center;
}
.hero-glitch > * { grid-area: 1 / 1; }

.hero-logo-img {
  width: auto;
  height: auto;
  max-height: 80px;
  max-width: min(340px, 60vw);
  object-fit: contain;
  pointer-events: none;
  display: block;
}


.hero-rule {
  width: 32px;
  height: 1px;
  background: var(--red);
}

.scramble-char { color: var(--red); }

.hero-sub {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted-light);
}

.hero-year {
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hero-scroll span {
  display: block;
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, transparent, var(--muted-light));
  animation: line 2.2s ease-in-out infinite;
}
.hero-scroll-label {
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
@keyframes line {
  0%, 100% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  40%       { opacity: 1; transform: scaleY(1); }
  80%       { opacity: 0; transform-origin: bottom; }
}

/* ---- Section labels ---- */
.section-label {
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 28px 0 20px 4px;
  margin-left: 2px;
}

/* ---- Work Grid ---- */
.work { padding: 0 0 120px; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.cell {
  position: relative;
  overflow: hidden;
  background: #111;
}
.cell--wide { grid-column: span 2; }
.cell--tall { grid-row: span 2; }

.cell-img {
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: 4/3;
  transition: transform 0.65s cubic-bezier(0.16,1,0.3,1);
  will-change: transform;
}
.cell:hover .cell-img { transform: scale(1.04); }

.cell-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) brightness(0.85) contrast(1.1);
  transition: filter 0.55s cubic-bezier(0.16,1,0.3,1);
}
.cell:hover .cell-img img {
  filter: grayscale(0%) brightness(1) contrast(1);
}

/* ---- About ---- */
.about {
  padding: 120px 48px;
  border-top: 1px solid var(--border);
}

.about-inner {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}

.about-img {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #111;
  cursor: default;
}
.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85) contrast(1.1) saturate(0.65);
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-body {
  font-size: 0.92rem;
  line-height: 1.95;
  color: var(--muted-light);
  font-weight: 300;
}

.about-ig {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  border-bottom: 1px solid var(--red);
  padding-bottom: 4px;
  align-self: flex-start;
  transition: color 0.2s;
}
.about-ig:hover { color: var(--red); }

/* ---- Footer ---- */
.footer {
  padding: 28px 48px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo img {
  height: 16px;
  width: auto;
  opacity: 0.22;
  transition: opacity 0.2s;
}
.footer-logo span { display: none; }
.footer-logo:hover img { opacity: 0.5; }

.footer-copy {
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- Lightbox ---- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.lightbox::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(4,4,4,0.98);
}
.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lb-stage {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 92vw;
  max-height: 88vh;
}
.lb-stage img {
  max-width: 92vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.45s cubic-bezier(0.16,1,0.3,1), opacity 0.3s ease;
  transform: scale(0.9);
  opacity: 0;
  will-change: transform, opacity;
}
.lightbox.open .lb-stage img {
  transform: scale(1);
  opacity: 1;
}
.lb-stage img.sliding-out {
  transform: scale(0.94) translateX(var(--slide-dir, -60px));
  opacity: 0;
  transition: transform 0.25s cubic-bezier(0.4,0,1,1), opacity 0.25s ease;
}
.lb-stage img.sliding-in {
  transform: scale(0.96) translateX(calc(var(--slide-dir, -60px) * -1));
  opacity: 0;
  transition: none;
}

.lb-counter {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 6px;
  align-items: center;
}
.lb-dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--muted);
  transition: background 0.2s, transform 0.2s;
}
.lb-dot.active {
  background: var(--red);
  transform: scale(1.5);
}

.lb-close {
  position: absolute;
  top: 20px; right: 24px;
  z-index: 2;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted-light);
  transition: color 0.15s;
}
.lb-close:hover { color: var(--white); }

.lb-prev, .lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  font-size: 1.6rem;
  font-weight: 200;
  color: var(--muted);
  padding: 24px 20px;
  transition: color 0.15s;
}
.lb-prev { left: 0; }
.lb-next { right: 0; }
.lb-prev:hover, .lb-next:hover { color: var(--white); }

/* ---- Reveal ---- */
.cell {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.8s cubic-bezier(0.76,0,0.24,1);
}
.cell.visible {
  clip-path: inset(0 0 0% 0);
}

.about-inner {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.about-inner.visible {
  opacity: 1;
  transform: none;
}

/* ==============================
   MOBILE
   ============================== */
@media (max-width: 768px) {
  .nav { padding: 0 20px; }

  .nav-links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    background: var(--bg);
    transform: translateY(-100%);
    transition: transform 0.35s cubic-bezier(0.76,0,0.24,1);
    z-index: 55;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { font-size: 0.85rem; color: var(--white); }

  .nav-toggle { display: flex; }
  .nav-toggle.open span:first-child { transform: translateY(3px) rotate(45deg); }
  .nav-toggle.open span:last-child  { transform: translateY(-3px) rotate(-45deg); }

  .hero { padding: 80px 24px 56px; gap: 14px; }

  .work { padding: 0 0 80px; }
  .grid {
    grid-template-columns: 1fr 1fr;
    gap: 2px;
  }
  .cell--wide { grid-column: span 2; }
  .cell--tall { grid-row: span 1; }
  .cell--tall .cell-img { position: relative; inset: auto; aspect-ratio: 4/3; }

  .about { padding: 72px 24px; }
  .about-inner { grid-template-columns: 1fr; gap: 36px; }
  .about-img { aspect-ratio: 4/3; }

  .nav-mute { right: 60px; }

  .footer { padding: 24px; }

  .lb-prev { padding: 16px 10px; }
  .lb-next { padding: 16px 10px; }
}

@media (max-width: 480px) {
  .grid { grid-template-columns: 1fr; gap: 2px; }
  .cell--wide { grid-column: span 1; }
}
