/* DIN 2014 — licensed font, supply your own file in /fonts/ */
@font-face {
  font-family: "DIN 2014";
  src: url("fonts/DIN-2014_Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
body {
  user-select: none;
  -webkit-user-select: none;
}
:root {
  --ink: #111111;
  --muted: #999999;
  --box: #d9d9d9;
  --fs: 16px;
  --font: "DIN 2014", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --row: 3.16vh;          /* vertical distance between two consecutive nav rows */
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #ffffff;
  color: var(--muted);
  font-family: var(--font);
  font-size: var(--fs);
  line-height: 1.45;
  letter-spacing: 0.3px;
}

a { text-decoration: none; color: inherit; }
button { font-family: inherit; font-size: inherit; letter-spacing: inherit; color: inherit; }
p { margin: 0; }

/* =====================================================================
   SIDEBAR — identical on every page.
   Positioned with vw for x, vh for y so it lines up exactly the same
   way the PDF pages measured out (x values as % of a 16:9 canvas width,
   y values as % of a 16:9 canvas height).
   ===================================================================== */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  padding-left: 3vw;
  padding-top: 1.73vh;
  width: 21.9vw;
  z-index: 10;
  background: #ffffff;
}

.brand {
  display: block;
  color: var(--ink);
  white-space: nowrap;   /* keep "JASON KWAME ASIEDU" on one line */
  margin-bottom: 8vh;
}

.nav { display: flex; flex-direction: column; }

.nav a {
  display: flex;
  align-items: center;
  height: var(--row);
  color: var(--muted);
  white-space: nowrap;
}

.nav a.active { color: var(--ink); }
.nav a:hover { color: var(--ink); }

/* spacer inserted right after the active nav item — height varies per
   page because that's how the wireframes measured out */
.nav-gap { height: 0; }

/* =====================================================================
   "SCREEN" pages — everything that should fill exactly one viewport
   with no scrolling (landing grid, process, photography, announcements,
   film/video, library, and resume all use this).
   ===================================================================== */
.screen {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.box { position: absolute; background: var(--box); overflow: hidden; }
.meta { position: absolute; color: var(--ink); white-space: nowrap; }
.meta .sub { color: var(--ink); }

/* ---- grid pages (landing / process / photography / announcements) ---- */
/* Row 1 */
.g-r1a { left: 21.9vw; top: 5.69vh;  width: 27.5vw; height: 34.31vh; }
.g-r1b { left: 50.5vw; top: 5.69vh;  width: 27.5vw; height: 34.31vh; }
/* Row 2 */
.g-r2a { left: 21.9vw; top: 42.67vh; width: 13.2vw; height: 34.31vh; }
.g-r2b { left: 36.2vw; top: 42.67vh; width: 13.2vw; height: 34.31vh; }
.g-r2c { left: 50.5vw; top: 42.67vh; width: 27.5vw; height: 34.31vh; }
/* Row 3 */
.g-r3a { left: 21.9vw; top: 79.64vh; width: 13.2vw; height: 20.09vh; }
.g-r3b { left: 36.3vw; top: 79.64vh; width: 27.4vw; height: 20.09vh; }
.g-r3c { left: 64.9vw; top: 79.64vh; width: 13.2vw; height: 20.09vh; }

.meta-r1 { left: 79.1vw; top: 12.93vh; }
.meta-r2 { left: 79.1vw; top: 68.76vh; }

/* ---- film/video (single full block) ---- */
.fv-box { left: 21.9vw; top: 12.44vh; width: 56.1vw; height: 76.98vh; }

/* ---- library (uneven two-column pairs) ---- */
.lib-a { left: 36.2vw; top: 12.27vh; width: 27.5vw; height: 48.89vh; }
.lib-b { left: 64.8vw; top: 12.27vh; width: 13.2vw; height: 48.89vh; }
.lib-c { left: 36.2vw; top: 65.78vh; width: 27.5vw; height: 33.96vh; }
.lib-d { left: 64.8vw; top: 65.78vh; width: 13.2vw; height: 33.96vh; }
.lib-meta { left: 79.2vw; top: 12.93vh; }
.lib-meta .sub { color: var(--muted); }

/* =====================================================================
   WORK — a tall, scrolling page. Each carousel frame is a fixed 7:1
   strip: your widest images fill it edge to edge, anything narrower
   gets white margins on the sides instead of being cropped. Because
   the frame is short, the next project's carousel naturally peeks in
   at the bottom of the screen before you scroll to it.
   ===================================================================== */
.work-page { position: relative; padding-left: 21.9vw; }

.project { position: relative; padding: 6vh 4vw 14vh 0vw; }

.carousel {
  position: relative;
  width: 56vw;
  aspect-ratio: 2 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
}

.carousel .box {
  position: static;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
}

.carousel .box img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.car-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  padding: 12px;
  color: var(--ink);
}
.car-btn.prev { left: -6px; }
.car-btn.next { right: -6px; }

.project-meta {
  position: absolute;
  left: calc(56vw + 5vw);
  top: 6vh;
  width: 16vw;
}

.project-title { color: var(--ink); white-space: nowrap; }
.project-date { color: var(--muted); margin-top: 2px; }

.toggle {
  display: block;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  margin-top: 10px;
}
.toggle:hover { color: var(--ink); }

.description { color: var(--muted); margin-top: 10px; max-width: 16vw; }
.description[hidden] { display: none; }

/* =====================================================================
   RESUME
   Section headings sit visibly higher than the row of entries under
   them (pulled up slightly rather than baseline-aligned) — matching
   the staggered look in the reference CV.
   ===================================================================== */
.resume-page {
  position: relative;
  padding: 6vh 4vw 8vh 21.9vw;
}

.resume-contact { position: absolute; left: 79.1vw; top: 1.73vh; color: var(--muted); white-space: nowrap; }

.resume-section {
  display: flex;
  align-items: flex-start;
  gap: 2vw;
  margin-bottom: 5.5vh;
}

.resume-heading {
  flex: 0 0 13vw;
  color: var(--ink);
  transform: translateY(-4vh); /* the "higher" offset */
}

.resume-entries { flex: 1; display: flex; flex-direction: column; gap: 2.6vh; }

.resume-entry { display: flex; gap: 2vw; }

.entry-left { flex: 0 0 15vw; }
.entry-title { color: var(--ink); }
.entry-sub { color: var(--muted); }

.entry-desc { flex: 1 1 24vw; color: var(--muted); max-width: 26vw; }

.entry-date { flex: 0 0 9vw; text-align: right; color: var(--ink); white-space: nowrap; }

.skills-list { color: var(--muted); max-width: 46vw; }

/* =====================================================================
   RESPONSIVE FALLBACK — below this, drop the fixed-screen approach
   and let everything stack so the site stays usable on phones.
   ===================================================================== */
@media (max-width: 820px) {
  .sidebar { position: static; width: auto; height: auto; padding: 24px; }
  .screen { height: auto; width: auto; overflow: visible; position: static; }
  .box, .meta { position: static; width: auto !important; height: auto !important; margin-bottom: 12px; }
  .box { aspect-ratio: 4/3; }
  .meta-r1, .meta-r2, .lib-meta { margin: 12px 0; }

  .feed { margin-left: 0; grid-template-columns: repeat(2, 1fr); }
  
  .work-page { padding-left: 0; }
  .project { height: auto; padding: 24px; }
  .carousel { width: 100%; height: auto; aspect-ratio: 16/9; }
  .project-meta { position: static; width: auto; margin-top: 12px; }

  .resume-page { padding: 24px 16px; }
  .resume-contact { position: static; display: block; margin: 8px 0 24px; }
  .resume-section, .resume-entry { flex-direction: column; gap: 6px; }
  .resume-heading { transform: none; }
  .entry-date { text-align: left; }

  
   /* resume: lift the desktop width caps */
  .resume-heading, .entry-left, .entry-desc, .entry-date { flex: none; max-width: none; }
  .skills-list { max-width: none; }

  /* work page: let the caption use the full width when you tap + */
  .description { max-width: none; }
}
/* =====================================================================
   this makes it so the images on the index are on grid formation
   ===================================================================== */
   .feed {
  margin-left: 21.9vw;
  padding: 4vh 3vw 8vh 3vw;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4vw;
}

.feed .box {
  position: static;
  aspect-ratio: 4 / 3;
}
.box img, .box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* =====================================================================
   FILM & VIDEO — dark mode
   ===================================================================== */

.film-page {
  background: #000000;
  color: var(--muted);
}

.film-page .sidebar {
  background: #000000;
}

.film-page .brand {
  color: #ffffff;
}

.film-page .nav a {
  color: var(--muted);
}

.film-page .nav a.active,
.film-page .nav a:hover {
  color: #ffffff;
}

.film-page .meta {
  color: #ffffff;
}

.film-page .meta .sub {
  color: #ffffff;
}
/* =====================================================================
   PHOTOGRAPHY — three auto-scrolling columns
   ===================================================================== */
.photo-page {
  margin-left: 21.9vw;
  height: 100vh;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr);
  gap: 1.16vw;
}

.photo-col {
  --speed: 40s;        /* bigger number = slower scroll */
  --space: 1.16vw;     /* space between stacked images */
  overflow: hidden;
  min-height: 0;
}

.photo-track {
  animation: photo-scroll var(--speed) linear infinite;
}

.photo-track img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: var(--space);
}

/* hover anywhere in a column = that column freezes */
.photo-col:hover .photo-track { animation-play-state: paused; }

@keyframes photo-scroll   { to { transform: translateY(-50%); } }
@keyframes photo-scroll-x { to { transform: translateX(-50%); } }

@media (max-width: 820px) {
  .photo-page {
    margin-left: 0;
    height: auto;
    grid-template-columns: 1fr;
    grid-template-rows: none;
    padding: 0 24px;
    gap: 8px;
  }

  /* each column becomes a horizontal strip, stacked on top of each other */
  .photo-col { height: 35vh; --space: 8px; }
  .photo-track {
    display: flex;
    width: max-content;
    height: 100%;
    animation-name: photo-scroll-x;
  }
  .photo-track img {
    flex: none;
    width: auto;
    height: 100%;
    margin: 0 var(--space) 0 0;
  }

  .feed { margin-left: 0; grid-template-columns: repeat(2, 1fr); }
}