:root {
  --bg: #0d0d0d;
  --gray: #7e7e7e;     /* name + body copy */
  --bright: #f7f8fa;   /* tagline */
  --link: #b3b3b3;     /* links */
  --radius: 0px;
  --gap: 8px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; background: var(--bg); }

/* hide scrollbars, keep scroll */
html { scrollbar-width: none; }
::-webkit-scrollbar { display: none; }

body {
  color: var(--gray);
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 15px;       /* body */
  line-height: 1.5;      /* 150% */
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ---------- Desktop: text left (3fr) + gallery right (7fr) ---------- */
.page {
  width: 100%;
  display: grid;
  grid-template-columns: 3fr 7fr;
  align-items: start;
}

/* text column pinned while the gallery scrolls */
.sidebar {
  grid-column: 1;
  grid-row: 1;
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  background: var(--bg);
}

.gallery {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: stretch; /* both columns take the height of the taller one */
  gap: var(--gap);
  padding: var(--gap);
}

.col {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  flex: 1 1 0;
  min-width: 0;
}

.shot { margin: 0; }

/* the last image in each column fills any leftover space so both columns
   end on the same bottom line (only the shorter column actually crops) */
.col .shot:last-child { flex: 1 1 auto; min-height: 0; }
.col .shot:last-child img { height: 100%; object-fit: cover; }

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: zoom-in;
}
.shot img[data-href] { cursor: pointer; } /* redirects instead of opening the lightbox */

.logo { display: inline-flex; width: 28px; height: 28px; }
.logo img { width: 28px; height: 28px; display: block; border-radius: var(--radius); }

.intro { display: flex; flex-direction: column; }
.intro p { margin: 0; font-size: 17px; font-weight: 450; line-height: 1.5; letter-spacing: 0; } /* heading */
.name { color: var(--gray); }
.tagline { color: var(--bright); }

.about { display: flex; flex-direction: column; gap: 15.5px; }
.about p { margin: 0; }

/* writing list — pinned to the bottom-left of the sidebar */
.writing { margin-top: auto; display: flex; flex-direction: column; gap: 5px; padding-top: 32px; }
.writing-label { color: var(--gray); }
/* .writing a inherits the global (sycamore) link style */

a {
  color: var(--link);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { color: var(--bright); }

/* ---------- Lightbox ---------- */
.lightbox {
  --lb-pad: 8px;
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--lb-pad);
  cursor: zoom-out;
  pointer-events: none; /* invisible/inert until open */
}
.lightbox::before { /* dark backdrop — fades independently of the image */
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(13, 13, 13, 0.92);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.lightbox.open { pointer-events: auto; }
.lightbox.open::before { opacity: 1; }
.lightbox img:not([src]) { display: none; } /* when closed (no src) render nothing — no leftover outline */
.lightbox img {
  position: relative; /* above the backdrop; JS switches to fixed while animating */
  display: block;
  /* fit within the viewport minus the padding on each side, keep aspect ratio */
  max-width: calc(100vw - var(--lb-pad) * 2);
  max-height: calc(100vh - var(--lb-pad) * 2);
  width: auto;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform-origin: top left;
  will-change: transform;
}

/* ---------- Entrance reveal ---------- */
.reveal .logo,
.reveal .intro,
.reveal .about,
.reveal .writing,
.reveal .shot {
  opacity: 0;
  transform: translateY(32px);
}
/* text */
.reveal .logo,
.reveal .intro,
.reveal .about,
.reveal .writing {
  filter: blur(16px);
  transition: opacity 550ms cubic-bezier(0.44, 0, 0.4, 1),
              transform 550ms cubic-bezier(0.44, 0, 0.4, 1),
              filter 550ms cubic-bezier(0.44, 0, 0.4, 1);
}
/* images — slower, fade + blur + scale up from 97% (no slide) */
.reveal .shot {
  transform: scale(0.97); /* override the shared slide */
  filter: blur(8px);
  transition: opacity 500ms cubic-bezier(0.44, 0, 0.4, 1),
              transform 500ms cubic-bezier(0.44, 0, 0.4, 1),
              filter 500ms cubic-bezier(0.44, 0, 0.4, 1);
}
.reveal .logo.in,
.reveal .intro.in,
.reveal .about.in,
.reveal .writing.in,
.reveal .shot.in {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* ---------- Tablet: text on top, two-column gallery below ---------- */
@media (max-width: 1023px) {
  .page { grid-template-columns: 1fr; }
  .sidebar {
    grid-column: auto;
    grid-row: auto;
    order: -1; /* text sits above the gallery when stacked */
    position: static;
    width: 100%;
    height: auto;
  }
  .gallery { grid-column: auto; grid-row: auto; }
}

/* ---------- Mobile: single column ---------- */
@media (max-width: 700px) {
  .sidebar { padding: 34px 24px; }
  .gallery { flex-direction: column; }
}
