/* ===========================================================
   Vivek Singh — Product Designer — Showcase Site
   Structure/typography rhythm modeled on eduardoduccigne.co,
   rebuilt with free fonts (Inter + JetBrains Mono) and a
   plain black/white palette — no licensed assets.
   =========================================================== */

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

:root {
  --black: #000000;
  --white: #ffffff;
  --grey: #9a9a9a;
  --grey-light: #f5f5f5;
  --sidebar-w: 340px;
  --col-gap: 8px;
  --row-gap: 8px;
  --ease-enter: cubic-bezier(.22, 1, .36, 1);
  font-family: "Inter", -apple-system, "system-ui", "Segoe UI", Helvetica, Arial, sans-serif;
}

html, body {
  background: var(--white);
  color: var(--black);
  height: 100%;
}

body {
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* ============ SIDEBAR ============ */

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 36px 40px 40px;
}

.sidebar-top {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.name {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.bio {
  font-size: 14px;
  line-height: 1.6;
  color: var(--black);
  max-width: 260px;
}

.inline-link {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--grey);
  transition: text-decoration-color .18s var(--ease-enter);
}

.inline-link:hover {
  text-decoration-color: var(--black);
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: "JetBrains Mono", "Geist Mono", ui-monospace, monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 9px 16px;
  border-radius: 999px;
  white-space: nowrap;
  transition: transform .2s var(--ease-enter), box-shadow .2s var(--ease-enter),
    background-color .2s var(--ease-enter), color .2s var(--ease-enter),
    border-color .2s var(--ease-enter);
}

.pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
}

.pill:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.pill-filled {
  background: var(--black);
  color: var(--white);
  border: 1px solid var(--black);
}

.pill-filled:hover {
  background: #262626;
  border-color: #262626;
}

.pill-outline {
  background: transparent;
  color: var(--black);
  border: 1px solid var(--black);
}

.pill-outline:hover {
  background: var(--black);
  color: var(--white);
}

.pill-icon {
  flex: 0 0 auto;
}

.sidebar-bottom {
  font-family: "JetBrains Mono", "Geist Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.03em;
  color: var(--grey);
}

.sidebar-bottom .dot {
  margin: 0 4px;
}

/* ============ GRID ============ */

.grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: var(--col-gap);
  row-gap: var(--row-gap);
  padding: 0 24px 24px 0;
  align-content: start;
}

.project {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.thumb {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  background: var(--grey-light);
}

.thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 10;
  transition: transform .5s var(--ease-enter);
}

.thumb:hover img {
  transform: scale(1.02);
}

.thumb-placeholder {
  aspect-ratio: 16 / 10;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grey-light);
  color: #b8b8b8;
  font-family: "JetBrains Mono", "Geist Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  transition: background .25s var(--ease-enter);
}

.thumb:hover .thumb-placeholder {
  background: #e9e9e9;
}

.label {
  font-family: "JetBrains Mono", "Geist Mono", ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--black);
}

.label .dot {
  color: var(--grey);
  margin: 0 1px;
}

/* ============ RESPONSIVE ============ */

@media (max-width: 900px) {
  .page {
    flex-direction: column;
  }

  .sidebar {
    position: relative;
    height: auto;
    width: 100%;
    flex: none;
    padding: 28px 24px;
  }

  .grid {
    grid-template-columns: 1fr;
    padding: 0 24px 24px 24px;
    row-gap: 32px;
  }
}

@media (max-width: 480px) {
  .pills {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============ CUSTOM CURSOR ============ */
/* Only on devices with a real mouse + hover support — leave touch untouched */
@media (hover: hover) and (pointer: fine) {
  html.has-custom-cursor,
  html.has-custom-cursor body,
  html.has-custom-cursor a,
  html.has-custom-cursor button,
  html.has-custom-cursor .pill,
  html.has-custom-cursor .thumb {
    cursor: none;
  }
}

#cursor-trail {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9998;
}

#cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff5a1f;
  border: 0px solid #ff5a1f;
  pointer-events: none;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width .28s var(--ease-enter), height .28s var(--ease-enter),
    background-color .2s var(--ease-enter), border-width .28s var(--ease-enter);
  opacity: 0;
  box-sizing: border-box;
}

#cursor-dot.visible {
  opacity: 1;
}

#cursor-dot.hover {
  width: 60px;
  height: 60px;
  background: transparent;
  border-width: 1.5px;
}

#cursor-dot span {
  opacity: 0;
  transform: scale(.6);
  font-family: "JetBrains Mono", "Geist Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: #ff5a1f;
  text-transform: uppercase;
  white-space: nowrap;
  transition: opacity .18s var(--ease-enter) .05s, transform .18s var(--ease-enter) .05s;
}

#cursor-dot.hover span {
  opacity: 1;
  transform: scale(1);
}
