@font-face {
  font-family: 'Monument Grotesk';
  src: url('fonts/MonumentGrotesk-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Monument Grotesk';
  src: url('fonts/MonumentGrotesk-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Monument Grotesk';
  src: url('fonts/MonumentGrotesk-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Monument Grotesk';
  src: url('fonts/MonumentGrotesk-MediumItalic.woff2') format('woff2');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Monument Grotesk';
  src: url('fonts/MonumentGrotesk-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Monument Grotesk';
  src: url('fonts/MonumentGrotesk-BoldItalic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Monument Grotesk Mono';
  src: url('fonts/MonumentGrotesk-Mono.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Monument Grotesk Semi-Mono';
  src: url('fonts/MonumentGrotesk-Semi-Mono.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: rgba(0,0,0,0.85);
  --ink-2: rgba(0,0,0,0.7);
  --ink-3: rgba(0,0,0,0.5);
  --ink-4: rgba(0,0,0,0.32);
  --line: rgba(0,0,0,0.15);
  --sidebar-w: 40%;
  --font-body: 'Monument Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Monument Grotesk Semi-Mono', 'Monument Grotesk', monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
}

a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.6; }
a:active { opacity: 0.5; }

img { max-width: 100%; display: block; }

.layout {
  display: flex;
  min-height: 100vh;
}

/* ---------- Sidebar ---------- */
.sidebar {
  width: var(--sidebar-w);
  max-width: 800px;
  min-width: 300px;
  flex-shrink: 0;
  padding: 2.6rem 2.6rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sidebar-top .top-home-row {
  display: block;
  margin-bottom: 1.4rem;
}

.sidebar-top .site-url {
  font-size: 0.65rem;
  color: var(--ink-4);
  letter-spacing: 0.01em;
  margin-right: 0.4rem;
}

.sidebar-top .home-link {
  font-size: 1.3rem;
  font-weight: 700;
  display: inline;
}

.nav-group { margin-bottom: 1.4rem; }
.nav-group.work { padding-left: 1.4rem; }

.nav-group .nav-item {
  display: flex;
  align-items: baseline;
  padding: 0.08rem 0;
  font-size: 0.85rem;
  font-weight: 700;
  font-style: italic;
}

.nav-group .nav-prefix {
  flex: 0 0 6.5ch;
  text-align: right;
  margin-right: 0.5rem;
  color: var(--ink-3);
  font-weight: 400;
  font-style: normal;
  font-size: 0.78rem;
}

.nav-group.commissions .nav-item {
  font-style: normal;
  font-weight: 700;
}

.nav-group.commissions .nav-prefix {
  flex-basis: 6.5rem;
}

.sidebar-bottom .row { margin-bottom: 0.7rem; }
.sidebar-bottom .row .site-url { display: inline; margin-right: 0.3rem; }
.sidebar-bottom .row .home-link { font-size: 1rem; margin-bottom: 0; font-weight: 700; display: inline; }

/* ---------- Feed ---------- */
.feed {
  flex: 1;
  min-width: 0;
}

.project-row {
  display: flex;
  border-top: 1px solid var(--line);
  position: relative;
}

.project-row .year-col {
  width: 80px;
  flex-shrink: 0;
  padding: 1.2rem 0.5rem 1.2rem 1.6rem;
  font-size: 0.75rem;
  color: var(--ink-3);
  font-family: var(--font-mono);
}

.project-col {
  flex: 1;
  min-width: 0;
  padding: 1.2rem 2.4rem 2rem 0.8rem;
  position: relative;
}

.section-kicker {
  position: absolute;
  top: 1.2rem;
  right: 2.4rem;
  font-size: 1.15rem;
  color: var(--ink-4);
}

.project-credit-top {
  font-size: 0.8rem;
  color: var(--ink-3);
  font-style: italic;
  margin-bottom: 0.15rem;
}

.project-title {
  font-size: 3.5rem;
  font-weight: 400;
  line-height: 1;
  margin: 0 0 0.3rem;
}

.project-title small {
  font-weight: 400;
  font-size: 1.3rem;
}

.project-title .malayalam { font-family: 'Noto Sans Malayalam', 'Space Grotesk', sans-serif; }

.project-tags {
  font-size: 0.78rem;
  color: var(--ink-3);
}

.project-location {
  font-size: 0.78rem;
  color: var(--ink-4);
}

.meta-line {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 0.9rem;
  flex-wrap: wrap;
}

.project-desc {
  font-size: 0.92rem;
  line-height: 1.3;
  max-width: 60ch;
  margin-bottom: 1.2rem;
  color: var(--ink-2);
}

.project-desc em { font-style: italic; }

/* galleries */
.gallery { max-width: 780px; }

.gallery.g-single figure { max-width: 780px; }

.gallery.g-grid4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  max-width: 780px;
}

.gallery.g-stack figure { margin-bottom: 0.9rem; }
.gallery.g-stack figure:last-child { margin-bottom: 0; }

.gallery figure {
  margin: 0;
  border: 1px solid var(--line);
  overflow: hidden;
}

.gallery figcaption {
  font-size: 0.68rem;
  color: var(--ink-4);
  padding: 0.3rem 0.5rem;
  border-top: 1px solid var(--line);
}

/* t-minus row of 3 small + big below */
.tminus-top {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,180px));
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}
.tminus-top figure { margin: 0; border: 1px solid var(--line); }
.tminus-top img { width: 100%; height: 130px; object-fit: contain; background: #f7f7f7; }

/* ganga viewer */
.ganga-viewer {
  border: 1px solid var(--line);
  max-width: 780px;
  padding: 2rem;
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  background: #fff;
}
.ganga-viewer img { max-height: 260px; width: auto; box-shadow: 0 1px 6px rgba(0,0,0,0.15); }
.ganga-nav {
  position: absolute;
  bottom: 0.6rem;
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--ink-3);
}
.ganga-nav button {
  font-family: inherit;
  font-size: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-3);
  padding: 0.2rem 0.5rem;
}
.ganga-nav button:hover { color: var(--ink); }
.ganga-nav .prev { left: 0.6rem; }
.ganga-nav .next { right: 0.6rem; }
.ganga-counter { position: absolute; bottom: 0.7rem; left: 0.8rem; font-size: 0.7rem; color: var(--ink-4); }

.behance-embed {
  border: 1px solid var(--line);
  display: inline-block;
  line-height: 0;
}

.behance-embed iframe { max-width: 100%; }

.instagram-strip {
  max-width: 900px;
  border: 1px solid var(--line);
}

/* ---------- Info page ---------- */
.info-band {
  background: #ececec;
  text-align: right;
  padding: 0.5rem 2.4rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.info-block { padding-top: 0.5rem; }
.info-block h2 {
  font-size: 1.8rem;
  color: var(--ink-4);
  font-weight: 500;
  line-height: 1.1;
  margin: 1.6rem 0 0.8rem;
}
.info-block h2:first-of-type { margin-top: 0; }

.info-intro {
  display: flex;
  gap: 1.6rem;
  align-items: flex-start;
}
.info-intro p { font-size: 0.92rem; line-height: 1.5; max-width: 58ch; color: var(--ink-2); }
.info-intro p strong { color: var(--ink); font-weight: 700; }
.info-photo { width: 110px; flex-shrink: 0; border: 1px solid var(--line); }

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem 2rem;
}
.info-grid .entry-title { font-weight: 700; font-size: 0.88rem; }
.info-grid .entry-title em { font-style: italic; font-weight: 400; }
.info-grid .entry-sub { font-size: 0.8rem; color: var(--ink-3); font-style: italic; }
.info-grid .entry-loc { font-size: 0.78rem; color: var(--ink-4); }

.contact-line {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .layout { flex-direction: column; }
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .project-row { flex-direction: column; }
  .project-row .year-col { padding: 1rem 1rem 0; width: auto; }
  .project-col { padding: 0.5rem 1rem 1.6rem; }
  .section-kicker { position: static; display: block; text-align: right; margin-bottom: 0.4rem; }
  .project-title { font-size: 1.9rem; }
  .gallery.g-grid4 { grid-template-columns: repeat(2, 1fr); }
  .tminus-top { grid-template-columns: repeat(3, 1fr); }
  .meta-line { flex-direction: column; gap: 0.2rem; }
  .info-grid { grid-template-columns: 1fr; }
  .info-intro { flex-direction: column-reverse; }
}
