/* ═══════════════════════════════════════════════
   KROK LAB — Pixel Minimal
   Share Tech Mono + Unbounded
   Pure black / off-white / red punctuation
   ═══════════════════════════════════════════════ */

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

:root {
  --black:  #080808;
  --white:  #f0ede6;
  --grey:   #1a1a1a;
  --grey-2: #2a2a2a;
  --dim:    #5a5a5a;
  --dim-2:  #3a3a3a;
  --red:    #e02a1a;
  --mono:   'Share Tech Mono', monospace;
  --wide:   'Unbounded', sans-serif;
  --px:     clamp(1.25rem, 4vw, 4rem);
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

::selection { background: var(--red); color: #fff; }
::-webkit-scrollbar { width: 2px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--dim); }


/* ─── CURSOR ─── */
.cursor {
  position: fixed; z-index: 9999; pointer-events: none;
  top: 0; left: 0;
  width: 14px; height: 14px;
  border: 1.5px solid var(--red);
  transition: width .15s, height .15s, opacity .15s;
}
.cursor::after {
  content: '';
  position: absolute; top: 50%; left: 50%;
  width: 3px; height: 3px;
  background: var(--red);
  transform: translate(-50%, -50%);
}
.cursor.grow { width: 36px; height: 36px; }

@media (pointer: coarse) { .cursor { display: none; } body { cursor: auto; } }

/* ─── NAV ─── */
.nav {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem var(--px);
  border-bottom: 1px solid var(--grey-2);
  background: var(--black);
  z-index: 100;
}
.nav-logo img {
  height: 20px; width: auto; display: block;
  image-rendering: pixelated;
}
.nav-links {
  display: flex; gap: 2.5rem;
}
.nav-links a {
  font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--dim); text-decoration: none;
  transition: color .15s;
}
.nav-links a:hover { color: var(--red); }

/* ─── HERO ─── */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column;
  justify-content: space-between;
  padding: 3rem var(--px) 2.5rem;
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--grey-2);
}

/* pixel noise bg */
.hero-noise {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Crect width='1' height='1' x='0' y='0' fill='%23ffffff' opacity='0.015'/%3E%3Crect width='1' height='1' x='2' y='2' fill='%23ffffff' opacity='0.02'/%3E%3Crect width='1' height='1' x='1' y='3' fill='%23ffffff' opacity='0.01'/%3E%3C/svg%3E");
  background-size: 4px 4px;
}

/* ─── HERO BG VIDEO ─── */
.hero-bg-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.35;
  pointer-events: none;
}

.hero-center {
  flex: 1; display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 2;
}

.hero-logo-block {
  display: flex; flex-direction: column; align-items: center; gap: 2.5rem;
  text-align: center;
}

.hero-logo {
  width: clamp(240px, 52vw, 680px);
  height: auto; display: block;
  animation: logoIn .8s cubic-bezier(.16,1,.3,1) forwards;
  image-rendering: auto;
}

.hero-tag {
  display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
  justify-content: center;
  font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 0.2em; color: var(--dim);
  opacity: 0; animation: fadeIn .6s .5s forwards;
}
.hero-tag .sep { color: var(--grey-2); }
.hero-tag .red { color: var(--red); }

.blink {
  color: var(--red);
  animation: blink 1s step-end infinite;
}

.hero-bottom {
  display: flex; align-items: center; justify-content: space-between;
  position: relative; z-index: 2;
  padding-top: 2rem;
  border-top: 1px solid var(--grey-2);
  opacity: 0; animation: fadeIn .5s .8s forwards;
}

.hero-cta {
  font-family: var(--mono); font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--white); text-decoration: none;
  transition: color .15s;
}
.hero-cta:hover { color: var(--red); }
.cta-bracket { color: var(--dim); }

.hero-socials {
  display: flex; gap: 1.5rem;
}
.hero-socials a {
  font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--dim); text-decoration: none;
  transition: color .15s;
}
.hero-socials a:hover { color: var(--red); }

/* ─── ABOUT ─── */
.about {
  display: grid; grid-template-columns: 120px 1fr;
  gap: 4rem; padding: 6rem var(--px);
  border-bottom: 1px solid var(--grey-2);
  max-width: 1200px; margin: 0 auto;
}
.about-index {
  font-family: var(--mono); font-size: 0.68rem;
  letter-spacing: 0.14em; color: var(--red);
  padding-top: 0.3rem;
}
.about-content { display: flex; flex-direction: column; gap: 1.5rem; }
.about-title {
  font-family: var(--wide); font-size: clamp(1.4rem, 3vw, 2.5rem);
  font-weight: 700; letter-spacing: 0.06em;
  color: var(--white); line-height: 1;
  margin-bottom: 0.5rem;
}
.about-text {
  font-size: 0.88rem; color: #8a8a8a;
  line-height: 1.9; max-width: 640px;
}
.about-tags {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  padding-top: 0.5rem;
}
.about-tags span {
  font-family: var(--mono); font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--dim);
  border: 1px solid var(--grey-2);
  padding: 0.3rem 0.8rem;
  transition: border-color .15s, color .15s;
}
.about-tags span:hover { border-color: var(--dim); color: var(--white); }
.tag-red { border-color: rgba(224,42,26,0.3) !important; color: var(--red) !important; }

/* ─── WORK MOSAIC ─── */
.work {
  padding: 0;
  border-bottom: 1px solid var(--grey-2);
}

.mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2px;
  background: var(--grey-2);
}

/* Row 1 — 4 vertical (9:16) */
.m-cell:nth-child(1)  { grid-column: 1 / 4;   grid-row: 1; height: 48vw; }
.m-cell:nth-child(2)  { grid-column: 4 / 7;   grid-row: 1; height: 48vw; }
.m-cell:nth-child(3)  { grid-column: 7 / 10;  grid-row: 1; height: 48vw; }
.m-cell:nth-child(4)  { grid-column: 10 / 13; grid-row: 1; height: 48vw; }

/* Row 2 — 4 vertical (9:16) */
.m-cell:nth-child(5)  { grid-column: 1 / 4;   grid-row: 2; height: 48vw; }
.m-cell:nth-child(6)  { grid-column: 4 / 7;   grid-row: 2; height: 48vw; }
.m-cell:nth-child(7)  { grid-column: 7 / 10;  grid-row: 2; height: 48vw; }
.m-cell:nth-child(8)  { grid-column: 10 / 13; grid-row: 2; height: 48vw; }

/* Row 3 — 2 horizontal (16:9) */
.m-cell:nth-child(9)  { grid-column: 1 / 7;   grid-row: 3; height: 26vw; }
.m-cell:nth-child(10) { grid-column: 7 / 13;  grid-row: 3; height: 26vw; }

.m-cell {
  position: relative;
  overflow: hidden;
  background: var(--grey);
  min-height: 0;
}

.m-cell iframe,
.m-cell video {
  position: absolute;
  top: 50%; left: 50%;
  width: 120%; height: 120%;
  transform: translate(-50%, -50%);
  border: none;
  pointer-events: none;
  object-fit: cover;
}

.m-cell::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,0);
  transition: background .35s ease;
  pointer-events: none;
  z-index: 2;
}
.m-cell:hover::after { background: rgba(255,255,255,0.04); }

@media (max-width: 1024px) {
  .mosaic { grid-template-columns: repeat(4, 1fr); }
  .m-cell:nth-child(1)  { grid-column: 1 / 3; grid-row: 1; height: 60vw; }
  .m-cell:nth-child(2)  { grid-column: 3 / 5; grid-row: 1; height: 60vw; }
  .m-cell:nth-child(3)  { grid-column: 1 / 3; grid-row: 2; height: 60vw; }
  .m-cell:nth-child(4)  { grid-column: 3 / 5; grid-row: 2; height: 60vw; }
  .m-cell:nth-child(5)  { grid-column: 1 / 3; grid-row: 3; height: 60vw; }
  .m-cell:nth-child(6)  { grid-column: 3 / 5; grid-row: 3; height: 60vw; }
  .m-cell:nth-child(7)  { grid-column: 1 / 3; grid-row: 4; height: 60vw; }
  .m-cell:nth-child(8)  { grid-column: 3 / 5; grid-row: 4; height: 60vw; }
  .m-cell:nth-child(9)  { grid-column: 1 / 5; grid-row: 5; height: 40vw; }
  .m-cell:nth-child(10) { grid-column: 1 / 5; grid-row: 6; height: 40vw; }
}

@media (max-width: 600px) {
  .mosaic { grid-template-columns: 1fr 1fr; }
  .m-cell:nth-child(1)  { grid-column: 1/2; grid-row: 1; height: auto !important; aspect-ratio: 9/16; }
  .m-cell:nth-child(2)  { grid-column: 2/3; grid-row: 1; height: auto !important; aspect-ratio: 9/16; }
  .m-cell:nth-child(3)  { grid-column: 1/2; grid-row: 2; height: auto !important; aspect-ratio: 9/16; }
  .m-cell:nth-child(4)  { grid-column: 2/3; grid-row: 2; height: auto !important; aspect-ratio: 9/16; }
  .m-cell:nth-child(5)  { grid-column: 1/2; grid-row: 3; height: auto !important; aspect-ratio: 9/16; }
  .m-cell:nth-child(6)  { grid-column: 2/3; grid-row: 3; height: auto !important; aspect-ratio: 9/16; }
  .m-cell:nth-child(7)  { grid-column: 1/2; grid-row: 4; height: auto !important; aspect-ratio: 9/16; }
  .m-cell:nth-child(8)  { grid-column: 2/3; grid-row: 4; height: auto !important; aspect-ratio: 9/16; }
  .m-cell:nth-child(9)  { grid-column: 1/3; grid-row: 5; height: auto !important; aspect-ratio: 16/9; }
  .m-cell:nth-child(10) { grid-column: 1/3; grid-row: 6; height: auto !important; aspect-ratio: 16/9; }
}

/* ─── CONTACT ─── */
.contact {
  display: grid; grid-template-columns: 120px 1fr;
  gap: 4rem; padding: 6rem var(--px);
  border-bottom: 1px solid var(--grey-2);
  max-width: 1200px; margin: 0 auto;
}
.contact-index {
  font-family: var(--mono); font-size: 0.68rem;
  letter-spacing: 0.14em; color: var(--red);
  padding-top: 0.3rem;
}
.contact-content { display: flex; flex-direction: column; }
.contact-title {
  font-family: var(--wide); font-size: clamp(2.5rem, 7vw, 6rem);
  font-weight: 900; letter-spacing: 0.04em; line-height: 0.92;
  color: var(--white); margin-bottom: 1.5rem;
}
.contact-title .red { color: var(--red); }
.contact-sub {
  font-family: var(--mono); font-size: 0.75rem;
  letter-spacing: 0.1em; color: var(--dim);
  margin-bottom: 3rem;
}
.contact-links {
  display: flex; flex-direction: column; gap: 0;
  border-top: 1px solid var(--grey-2);
  max-width: 560px;
}
.clink {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--grey-2);
  text-decoration: none;
  transition: padding-left .15s;
}
a.clink:hover { padding-left: 0.5rem; }
a.clink:hover .clink-val { color: var(--red); }
.clink-label {
  font-family: var(--mono); font-size: 0.58rem;
  letter-spacing: 0.2em; color: var(--dim);
  width: 120px; flex-shrink: 0;
}
.clink-val {
  font-family: var(--mono); font-size: 0.75rem;
  letter-spacing: 0.06em; color: var(--white);
  transition: color .15s;
}
.clink--static .clink-val { color: var(--dim); }

/* ─── FOOTER ─── */
.footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 2rem var(--px);
  border-top: 1px solid var(--grey-2);
}
.footer-copy {
  font-family: var(--mono); font-size: 0.6rem;
  letter-spacing: 0.14em; color: var(--dim-2);
}

/* ─── ANIMATIONS ─── */
@keyframes logoIn {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes blink {
  0%, 100% { opacity: 1; } 50% { opacity: 0; }
}

/* ─── REVEAL ─── */
.reveal {
  opacity: 0; transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* ─── RESPONSIVE ─── */
@media (max-width: 860px) {
  .about, .contact { grid-template-columns: 1fr; gap: 1.5rem; }
  .about-index, .contact-index { display: none; }
}
@media (max-width: 600px) {
  .nav-links { gap: 1.5rem; }
  .hero-tag { font-size: 0.58rem; gap: 0.5rem; }
  .clink { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
  .clink-label { width: auto; }
}

/* ─── TEXT LOGO VARIANTS ─── */
.nav-logo {
  font-family: var(--wide);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--white);
  text-decoration: none;
  transition: color .15s;
}
.nav-logo:hover { color: var(--red); }

.footer-logo-text {
  font-family: var(--wide);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--dim-2);
}

/* ─── SCANLINES ─── */
.scanlines {
  position: fixed; inset: 0; z-index: 50;
  pointer-events: none;
  overflow: hidden;
}

/* ─── REC DOT ─── */
.rec-dot {
  display: inline-block;
  width: 10px; height: 10px;
  background: var(--red);
  border-radius: 50%;
  margin-left: 0.2em;
  vertical-align: middle;
  position: relative;
  top: -0.1em;
  animation: recPulse 1.8s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(224, 42, 26, 0.5);
}

@keyframes recPulse {
  0%   { opacity: 1;   box-shadow: 0 0 0 0   rgba(224,42,26,0.5); }
  50%  { opacity: 0.2; box-shadow: 0 0 0 8px rgba(224,42,26,0);   }
  100% { opacity: 1;   box-shadow: 0 0 0 0   rgba(224,42,26,0.5); }
}
