*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --black: #111; --mid: #555; --light: #999; --lighter: #ccc;
  --border: #e8e8e6; --bg: #fff;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', sans-serif;
  --sw: 190px;
}
body { background: var(--bg); color: var(--black); font-family: var(--sans); font-weight: 300; min-height: 100vh; }

/* SIDEBAR */
#sidebar {
  display: none; position: fixed; top: 0; left: 0;
  width: var(--sw); height: 100vh; padding: 2.2rem 1.4rem 4rem;
  z-index: 100; overflow-y: auto; border-right: 0.5px solid var(--border);
}
#sidebar::-webkit-scrollbar { width: 0; }
.sname {
  font-family: var(--sans); font-weight: 500; font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--black);
  margin-bottom: 2rem; cursor: pointer; display: block; line-height: 1.5;
}
.ntop {
  display: block; font-size: 11.5px; font-weight: 400; letter-spacing: 0.02em;
  color: var(--mid); padding: 0.28rem 0; cursor: pointer; transition: color 0.18s;
  user-select: none; text-decoration: none;
}
.ntop:hover, .ntop.on { color: var(--black); }
.nkids { display: none; padding-left: 0.85rem; }
.nkids.open { display: block; }
.nkid {
  display: block; font-size: 10.5px; font-weight: 300; color: var(--light);
  padding: 0.2rem 0; cursor: pointer; transition: color 0.18s; text-decoration: none;
}
.nkid:hover, .nkid.on { color: var(--mid); }
.ngkids { display: none; padding-left: 0.7rem; }
.ngkids.open { display: block; }
.ngkid {
  display: block; font-size: 10px; font-weight: 300; color: var(--lighter);
  padding: 0.17rem 0; cursor: pointer; transition: color 0.18s; text-decoration: none;
}
.ngkid:hover, .ngkid.on { color: var(--light); }
.ndiv { border: none; border-top: 0.5px solid var(--border); margin: 0.55rem 0; }
.ssocial { position: absolute; bottom: 1.5rem; left: 1.4rem; display: flex; gap: 12px; }
.ssocial a { font-size: 10px; color: var(--lighter); text-decoration: none; letter-spacing: 0.05em; text-transform: uppercase; transition: color 0.2s; }
.ssocial a:hover { color: var(--mid); }

/* PAGES */
.pg { display: none; }
.pg.on { display: block; }

/* HOME */
#pg-home { display: none; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; text-align: center; padding: 2rem; }
#pg-home.on { display: flex; }
#pg-home h1 { font-family: var(--sans); font-weight: 400; font-size: clamp(15px, 2vw, 23px); letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 2.2rem; }
.hnav { display: flex; flex-wrap: wrap; justify-content: center; max-width: 700px; }
.hnav a { font-family: var(--sans); font-size: 10.5px; font-weight: 300; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mid); text-decoration: none; padding: 0 0.44rem; cursor: pointer; transition: color 0.2s; }
.hnav a + a::before { content: '/'; margin: 0 0.44rem; color: #ddd; }
.hnav a:hover { color: var(--black); }

/* INNER */
.ip { margin-left: var(--sw); padding: 3rem 3.5rem 6rem; min-height: 100vh; }

/* PAGE HEADER */
.ph2 { margin-bottom: 2.5rem; padding-bottom: 1.1rem; border-bottom: 0.5px solid var(--border); }
.ph2 h2 { font-family: var(--sans); font-size: 10.5px; font-weight: 400; letter-spacing: 0.15em; text-transform: uppercase; color: var(--lighter); }

/* BREADCRUMB */
.bc { font-family: var(--sans); font-size: 10.5px; color: var(--light); margin-bottom: 0.7rem; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bcl { cursor: pointer; transition: color 0.18s; }
.bcl:hover { color: var(--mid); }
.bcs { color: var(--border); }
.bcc { color: var(--mid); }

/* MASONRY */
.ms { columns: 4 180px; column-gap: 10px; }
.mi { break-inside: avoid; margin-bottom: 10px; cursor: pointer; }
.mi:hover .mp { opacity: 0.78; }
.mp { display: block; width: 100%; background: #f0ede9; transition: opacity 0.25s; }
.mp43 { aspect-ratio: 4/3; } .mp34 { aspect-ratio: 3/4; } .mp11 { aspect-ratio: 1/1; }
.mp23 { aspect-ratio: 2/3; } .mp32 { aspect-ratio: 3/2; } .mp169 { aspect-ratio: 16/9; }
.mc { font-size: 10px; color: var(--light); padding: 4px 0 0; letter-spacing: 0.03em; }

/* TILES */
.tg { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-top: 0.5rem; }
.tl { border: 0.5px solid var(--border); padding: 2.2rem 1.5rem 1.8rem; cursor: pointer; transition: border-color 0.2s; }
.tl:hover { border-color: var(--light); }
.te { font-family: var(--sans); font-size: 9.5px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--light); margin-bottom: 0.7rem; }
.tn { font-family: var(--serif); font-size: 24px; font-weight: 400; color: var(--black); line-height: 1.15; margin-bottom: 0.3rem; }
.tk { font-size: 10px; color: var(--lighter); margin-top: 0.9rem; }

/* WRITING LIST */
.wl { margin-top: 0.5rem; }
.wi { display: flex; justify-content: space-between; align-items: baseline; padding: 1rem 0; border-bottom: 0.5px solid var(--border); cursor: pointer; transition: opacity 0.2s; }
.wi:first-child { border-top: 0.5px solid var(--border); }
.wi:hover { opacity: 0.5; }
.wt { font-family: var(--serif); font-size: 19px; font-weight: 400; }
.wm { font-size: 10.5px; color: var(--light); flex-shrink: 0; margin-left: 1.5rem; }

/* READING OVERLAY */
#rlay { display: none; position: fixed; inset: 0; background: #fff; z-index: 300; overflow-y: auto; }
#rlay.on { display: block; }
.rcls { position: fixed; top: 1.4rem; right: 1.6rem; font-size: 20px; color: var(--light); cursor: pointer; background: none; border: none; z-index: 301; transition: color 0.2s; line-height: 1; }
.rcls:hover { color: var(--black); }
.ri { max-width: 620px; margin: 0 auto; padding: 5rem 2rem 7rem; }
.rey { font-family: var(--sans); font-size: 10px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--light); margin-bottom: 1.4rem; }
.rtl { font-family: var(--serif); font-size: clamp(26px, 4vw, 44px); font-weight: 400; line-height: 1.18; margin-bottom: 0.9rem; }
.rsu { font-family: var(--serif); font-size: 17px; font-style: italic; font-weight: 300; color: var(--mid); padding-bottom: 2.2rem; margin-bottom: 2.2rem; border-bottom: 0.5px solid var(--border); }
.rbd { font-family: var(--serif); font-size: 19px; font-weight: 300; line-height: 1.9; color: #1e1e1e; }
.rbd p { margin-bottom: 1.5em; }
.rbd p:first-child::first-letter { font-size: 3.4em; line-height: 0.72; float: left; margin: 0.06em 0.07em 0 0; font-family: var(--serif); font-weight: 400; }
.rpm { font-family: var(--serif); font-size: 19px; font-weight: 300; line-height: 2.1; font-style: italic; white-space: pre-line; color: #1e1e1e; }

/* ABOUT */
.aw { max-width: 520px; }
.aw h1 { font-family: var(--serif); font-size: 38px; font-weight: 400; margin-bottom: 1.6rem; }
.aw p { font-family: var(--serif); font-size: 18px; font-weight: 300; line-height: 1.85; color: #2a2a2a; margin-bottom: 1.2em; }

/* SANDEEP HERO */
.sh { max-width: 520px; margin-bottom: 3.5rem; }
.sh h1 { font-family: var(--serif); font-size: 40px; font-weight: 400; margin-bottom: 0.4rem; }
.sdates { font-family: var(--sans); font-size: 11px; letter-spacing: 0.08em; color: var(--light); margin-bottom: 1.6rem; }
.sh p { font-family: var(--serif); font-size: 17px; font-weight: 300; line-height: 1.82; color: #333; }

/* CONTACT */
.cw { max-width: 380px; }
.cw h1 { font-family: var(--serif); font-size: 36px; font-weight: 400; margin-bottom: 2rem; }
.cr { display: flex; justify-content: space-between; align-items: baseline; padding: 0.85rem 0; border-bottom: 0.5px solid var(--border); }
.cr:first-of-type { border-top: 0.5px solid var(--border); }
.cl { font-family: var(--sans); font-size: 10.5px; color: var(--light); letter-spacing: 0.04em; }
.cv { font-family: var(--serif); font-size: 16px; color: var(--black); text-decoration: none; }
.cv:hover { text-decoration: underline; }

/* WORK */
.wg { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 1.8rem; }
.wc { cursor: pointer; }
.wth { background: #eeece8; aspect-ratio: 16/9; margin-bottom: 0.8rem; display: flex; align-items: center; justify-content: center; font-size: 10px; color: var(--lighter); letter-spacing: 0.05em; transition: opacity 0.22s; }
.wc:hover .wth { opacity: 0.7; }
.wct { font-family: var(--serif); font-size: 16px; margin-bottom: 0.25rem; }
.wcd { font-size: 10.5px; color: var(--light); }

/* CREATIVE RIDGE */
.cri { max-width: 500px; margin-bottom: 3rem; }
.cri h1 { font-family: var(--serif); font-size: 36px; font-weight: 400; margin-bottom: 1rem; }
.cri p { font-family: var(--serif); font-size: 17px; font-weight: 300; line-height: 1.8; color: #333; margin-bottom: 1em; }
.igbox { border: 0.5px solid var(--border); padding: 3rem 2rem; text-align: center; max-width: 480px; }
.igbox p { font-family: var(--sans); font-size: 11px; color: var(--light); letter-spacing: 0.04em; margin-bottom: 0.5rem; }
.igbox a { font-family: var(--sans); font-size: 12px; color: var(--mid); }
.igbox small { display: block; margin-top: 1rem; font-size: 10px; color: var(--lighter); }

/* LIGHTBOX */
body.lb-open { overflow: hidden; }

.lb-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4.5rem 4rem;
  box-sizing: border-box;
  cursor: zoom-out;
}
.lb-overlay[hidden] {
  display: none !important;
}

.lb-panel {
  cursor: default;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  pointer-events: auto;
}

.lb-stage {
  max-width: 100%;
  max-height: calc(100vh - 9rem);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-img {
  max-width: 100%;
  max-height: calc(100vh - 11rem);
  width: auto;
  height: auto;
  object-fit: contain;
  vertical-align: middle;
}

.lb-caption {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 300;
  color: #bbb;
  text-align: center;
  max-width: 38rem;
  line-height: 1.45;
  letter-spacing: 0.02em;
  margin: 0;
  padding: 0 0.5rem;
}

.lb-close {
  position: absolute;
  top: 1.1rem;
  right: 1.25rem;
  z-index: 402;
  font-size: 1.65rem;
  line-height: 1;
  color: #aaa;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.35rem 0.5rem;
  transition: color 0.2s;
}
.lb-close:hover {
  color: #fff;
}

.lb-prev,
.lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 402;
  width: 2.75rem;
  height: 3.25rem;
  font-family: var(--sans);
  font-size: 1.75rem;
  font-weight: 300;
  line-height: 1;
  color: #ccc;
  background: rgba(255, 255, 255, 0.06);
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.lb-prev:hover,
.lb-next:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}
.lb-prev {
  left: 1rem;
}
.lb-next {
  right: 1rem;
}
.lb-prev.lb-nav--off,
.lb-next.lb-nav--off {
  visibility: hidden;
  pointer-events: none;
}
