/* ============================================================
   JACOB KORNFELD — Project Pages
   projectstyles.css
   Standalone styling for Works project detail pages
   ============================================================ */

/* RESET */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  :root {
    --white: #ffffff;
    --black: #000000;
    --font: Arial, Helvetica, sans-serif;
    --serif: Georgia, "Times New Roman", Times, serif;
    --text-small: 14px;
    --sidebar-w: 168px;
  }
  
  html {
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  
  body {
    font-family: var(--font);
    background: var(--white);
    color: var(--black);
    min-height: 100vh;
    overflow-x: hidden;
  }
  
  a {
    color: inherit;
    text-decoration: none;
  }
  
  a:hover {
    text-decoration: underline;
  }
  
  p,
  li,
  a,
  span {
    font-size: var(--text-small);
    line-height: 1.25;
    letter-spacing: -0.01em;
    font-weight: 400;
  }
  
  img {
    display: block;
    width: 100%;
    height: auto;
  }
  
  /* ============================================================
     PAGE SHELL
     ============================================================ */
  
  .page-layout {
    display: block;
    min-height: 100vh;
    width: 100%;
    background: var(--white);
  }
  
  /* FIXED SIDEBAR */
  
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-w);
    height: 100vh;
    background: var(--white);
    padding: 14px 10px;
    z-index: 100;
  }
  
  .name-vertical {
    position: absolute;
    left: 10px;
    top: 14px;
    font-size: var(--text-small);
    letter-spacing: -0.01em;
    color: var(--black);
  }
  
  /* MAIN NAV */
  
  .primary-nav {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
  }
  
  .primary-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  
  .primary-nav a {
    font-size: var(--text-small);
    letter-spacing: -0.01em;
  }
  
  .primary-nav a.active {
    text-decoration: underline;
  }
  
  /* FOOTER NAV */
  
  .footer-nav {
    position: absolute;
    left: 10px;
    bottom: 28px;
  }
  
  .footer-nav a,
  .footer-nav span {
    display: block;
    font-size: var(--text-small);
    line-height: 1.25;
  }
  
  .footer-nav .copyright {
    margin-top: 26px;
  }
  
  /* ============================================================
     PROJECT CONTENT
     ============================================================ */
  
  .case-content {
    margin-left: var(--sidebar-w);
    width: calc(100vw - var(--sidebar-w));
    min-height: 100vh;
    padding: 14px 10px 90px 0;
    background: var(--white);
  }
  
  /* BACK LINK */
  
  .case-back {
    position: fixed;
    top: 14px;
    right: 10px;
    z-index: 200;
    font-size: var(--text-small);
    letter-spacing: -0.01em;
  }
  
  /* ============================================================
     HERO
     ============================================================ */
  
  .case-hero {
    width: calc(100vw - var(--sidebar-w) - 20px);
    min-height: 48vh;
    display: grid;
    grid-template-columns: 220px minmax(420px, 980px);
    column-gap: 72px;
    align-items: start;
    margin-bottom: 110px;
  }
  
  .case-kicker {
    font-size: var(--text-small);
    line-height: 1.25;
    letter-spacing: -0.01em;
  }
  
  .case-hero h1 {
    grid-column: 2;
    font-family: var(--serif);
    font-size: clamp(44px, 5.8vw, 92px);
    line-height: 1.02;
    letter-spacing: -0.055em;
    font-weight: 400;
    max-width: 1100px;
  }
  
  .case-meta {
    grid-column: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 28px;
    margin-top: 20px;
  }
  
  .case-meta span {
    font-size: var(--text-small);
    line-height: 1.25;
  }
  
  /* ============================================================
     LARGE INTRO
     ============================================================ */
  
  .case-large-intro {
    display: grid;
    grid-template-columns: 220px minmax(420px, 920px);
    column-gap: 72px;
    margin-bottom: 120px;
  }
  
  .case-large-intro p {
    grid-column: 2;
    font-family: var(--serif);
    font-size: clamp(30px, 3.8vw, 62px);
    line-height: 1.08;
    letter-spacing: -0.045em;
    max-width: 980px;
  }
  
  /* ============================================================
     STANDARD SECTIONS
     ============================================================ */
  
  .case-section {
    display: grid;
    grid-template-columns: 220px minmax(360px, 620px);
    column-gap: 72px;
    align-items: start;
    margin-bottom: 76px;
  }
  
  .case-section h2 {
    font-size: var(--text-small);
    line-height: 1.25;
    letter-spacing: -0.01em;
    font-weight: 400;
  }
  
  .case-section p {
    font-size: var(--text-small);
    line-height: 1.35;
    letter-spacing: -0.01em;
    max-width: 620px;
  }
  
  .case-section p + p {
    margin-top: 18px;
  }
  
  .case-section ul {
    list-style: none;
    max-width: 640px;
  }
  
  .case-section li {
    font-size: var(--text-small);
    line-height: 1.35;
    letter-spacing: -0.01em;
    margin-bottom: 18px;
    padding-left: 18px;
    position: relative;
  }
  
  .case-section li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
  }
  
  /* ============================================================
     PULL QUOTE
     ============================================================ */
  
  .case-pull {
    width: calc(100vw - var(--sidebar-w) - 20px);
    display: grid;
    grid-template-columns: 220px minmax(420px, 920px);
    column-gap: 72px;
    margin: 120px 0;
  }
  
  .case-pull p {
    grid-column: 2;
    font-family: var(--serif);
    font-size: clamp(34px, 4.5vw, 74px);
    line-height: 1.04;
    letter-spacing: -0.055em;
    max-width: 980px;
  }
  
  /* ============================================================
     LINKS
     ============================================================ */
  
  .case-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-left: 292px;
    margin-top: 120px;
    margin-bottom: 90px;
  }
  
  .case-links a {
    text-decoration: underline;
  }
  
  /* ============================================================
     IMAGES
     ============================================================ */
  
  .case-image-wide {
    width: calc(100vw - var(--sidebar-w));
    margin: 0;
    padding: 0;
  }
  
  .case-image-wide img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
  
  /* ============================================================
     PROJECT IMAGE LIGHTBOX
     ============================================================ */
  
  .project-zoom-image {
    cursor: zoom-in;
  }
  
  .project-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.96);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 48px;
    cursor: zoom-out;
  }
  
  .project-lightbox.active {
    display: flex;
  }
  
  .project-lightbox img {
    display: block;
    max-width: 92vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    cursor: default;
  }
  
  .project-lightbox-close {
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 10000;
    appearance: none;
    border: none;
    background: transparent;
    color: var(--black);
    font-family: var(--font);
    font-size: var(--text-small);
    letter-spacing: -0.01em;
    cursor: pointer;
  }
  
  .project-lightbox-close:hover {
    text-decoration: underline;
  }
  
  .project-lightbox-caption {
    position: fixed;
    left: 14px;
    bottom: 14px;
    max-width: 520px;
    font-family: var(--font);
    font-size: var(--text-small);
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--black);
  }
  
  /* OPTIONAL REVEAL */
  
  .project-reveal {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.45s ease, transform 0.45s ease;
  }
  
  .project-reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* ============================================================
     MOBILE
     ============================================================ */
  
  @media (max-width: 700px) {
    :root {
      --sidebar-w: 100%;
    }
  
    .sidebar {
      position: relative;
      width: 100%;
      height: auto;
      min-height: 180px;
      padding: 12px;
    }
  
    .name-vertical {
      position: static;
      display: block;
      margin-bottom: 44px;
    }
  
    .primary-nav {
      position: static;
      transform: none;
      margin-bottom: 44px;
    }
  
    .primary-nav ul {
      flex-direction: row;
      flex-wrap: wrap;
      gap: 8px 18px;
    }
  
    .footer-nav {
      position: static;
      display: flex;
      gap: 18px;
      align-items: center;
    }
  
    .footer-nav .copyright {
      margin-top: 0;
    }
  
    .case-content {
      margin-left: 0;
      width: 100%;
      padding: 12px 12px 70px 12px;
    }
  
    .case-back {
      position: absolute;
      top: 12px;
      right: 12px;
    }
  
    .case-hero {
      width: 100%;
      display: block;
      min-height: auto;
      margin-bottom: 74px;
      padding-top: 24px;
    }
  
    .case-kicker {
      margin-bottom: 46px;
    }
  
    .case-hero h1 {
      font-size: clamp(40px, 12vw, 62px);
      line-height: 1.02;
    }
  
    .case-meta {
      display: flex;
      margin-top: 18px;
      gap: 8px 18px;
    }
  
    .case-large-intro,
    .case-section,
    .case-pull {
      width: 100%;
      display: block;
      margin-bottom: 64px;
    }
  
    .case-large-intro p,
    .case-pull p {
      font-size: clamp(30px, 9vw, 46px);
      line-height: 1.08;
    }
  
    .case-section h2 {
      margin-bottom: 18px;
    }
  
    .case-links {
      margin-left: 0;
      margin-top: 72px;
      margin-bottom: 72px;
    }
  
    .case-image-wide {
      width: 100%;
    }
  
    .project-lightbox {
      padding: 24px 12px;
    }
  
    .project-lightbox img {
      max-width: 96vw;
      max-height: 82vh;
    }
  
    .project-lightbox-caption {
      left: 12px;
      bottom: 12px;
      max-width: calc(100vw - 24px);
    }
  }