*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --sw: 22vw;         /* <-- Change this to 22vw! */
  --sw-min: 260px;
  --gap: 12px;
  --fs: 17px;
  --font: 'Google Sans Code', monospace;
  --ink: #fff;
  --mid: #666;
  --bg: #000;
  --active: #FFF200;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-weight: 300;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; background: none; border: none; font-family: inherit; color: inherit; padding: 0; }

/* SIDEBAR (Desktop) */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: max(var(--sw-min), var(--sw));
  height: 100vh;
  padding: 22px 28px 22px 22px;
  display: flex;
  flex-direction: column;
  z-index: 50;
  background: var(--bg);
  overflow-y: auto;
}

.s-name  { font-size: var(--fs); font-weight: 400; line-height: 1.35; }
.s-role  { font-size: var(--fs); font-weight: 300; margin-bottom: 28px; }
.s-label { font-size: var(--fs); font-weight: 300; margin-bottom: 6px; }

.s-nav { list-style: none; margin-bottom: 16px; }
.s-nav li {
  display: flex; align-items: baseline; gap: 12px;
  cursor: pointer; user-select: none; padding: 1px 0;
}
.s-nav .n {
  font-size: var(--fs); font-weight: 300; min-width: 26px; flex-shrink: 0;
  font-variant-numeric: tabular-nums; transition: color 0.18s;
}
.s-nav .t { font-size: var(--fs); font-weight: 300; line-height: 1.5; transition: color 0.18s; }
.s-nav li:hover .n, .s-nav li:hover .t { color: #ffdf00; }
.s-nav li.active .n, .s-nav li.active .t { color: #ffdf00; }

.s-about { display: block; font-size: var(--fs); font-weight: 300; line-height: 1.5; transition: color 0.18s; }
.s-about:hover { color: #ffdf00; }

.s-foot { margin-top: auto; }
.s-foot a { display: block; font-size: var(--fs); font-weight: 300; line-height: 1.65; transition: color 0.18s; }
.s-foot a:hover { color: #ffdf00; }
.s-squig { margin-top: 4px; font-size: 12px; letter-spacing: -2px; color: #ccc; }

/* --- DESKTOP / MOBILE BLURB FIX --- */
.desktop-blurb {
  position: fixed;          
  top: 25px;                
  right: 52vw;              /* Anchors the text perfectly to the left of the images! */
  width: 22vw;              /* Gives the text a nice editorial width */
  font-size: 16px;          
  font-weight: 300;
  line-height: 1.5;
  margin: 0;
  padding: 0;               /* Removes the padding that was squishing your text */
}

.mobile-blurb {
  display: none; 
}

/* MAIN CONTENT */
.main {
  margin: 0;
  padding-top: var(--gap);
  padding-right: 0;         /* Keeps the images flush to the right edge */
}

.proj { 
  width: 50vw;
  margin-left: auto;
  margin-bottom: var(--gap); 
  overflow: hidden;           /* ← add this */
  opacity: 0; 
  transform: translateY(18px); 
  transition: opacity 0.6s ease, transform 0.6s ease; 
}

.proj-label {
  font-size: 28px;       /* Increases the text size. Adjust this number up or down! */
  font-weight: 400;      /* Makes it slightly bolder than your normal paragraph text */
  margin-bottom: 16px;   /* Gives it a little breathing room above the image */
  line-height: 1.2;
}

.proj.visible { opacity: 1; transform: translateY(0); }
.proj-img { line-height: 0; font-size: 0; }


.ph { width: 100%; display: block; }
.ph-full { aspect-ratio: 16 / 9; }
.ph-half { aspect-ratio: 16 / 5; }
.ph-thin { aspect-ratio: 16 / 2; }

.ph { 
  width: 100%; 
  display: block; 
  background: #333; /* Temporary color to see the boxes if images are missing */
}

/* MOBILE BAR - Elevated z-index */
.mob-bar {
  display: none; 
  position: fixed; 
  top: 0; left: 0; right: 0;
  height: 60px; 
  padding: 0 20px; 
  background: var(--bg);
  align-items: center; 
  justify-content: space-between; 
  z-index: 400; 
}
.mob-name { font-size: 17px; font-weight: 400; }

/* HAMBURGER & ARROW BASE */
/* HAMBURGER & ARROW BASE */
.hamburger { 
  display: inline-block; 
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.hamburger-box { 
  width: 24px; 
  height: 18px; 
  display: block; 
  position: relative; 
}

.hamburger-inner { 
  display: block; 
  top: 50%; 
  margin-top: -1px; 
  width: 24px;
  height: 2px;
  background-color: var(--ink);
  position: absolute;
  transition: transform 0.2s ease, background-color 0.1s ease;
}

/* Hide middle bar and stop rotation */
.hamburger--arrow-down.is-active .hamburger-inner { 
  background-color: transparent; 
  transform: none; 
}

.hamburger-inner::before, 
.hamburger-inner::after { 
  content: ""; 
  display: block; 
  width: 24px;
  height: 2px;
  background-color: var(--ink);
  position: absolute;
  transition: transform 0.2s ease;
}

.hamburger-inner::before { top: -8px; } 
.hamburger-inner::after { bottom: -8px; }

/* Left leg - Pulled further left to -10px */
.hamburger--arrow-down.is-active .hamburger-inner::before { 
  transform: translate3d(0px, 8px, 0) rotate(-45deg) scaleX(0.6); 
  transform-origin: right center;
}

/* Right leg - Pulled further right to 10px */
.hamburger--arrow-down.is-active .hamburger-inner::after { 
  transform: translate3d(0px, -8px, 0) rotate(45deg) scaleX(0.6); 
  transform-origin: left center;
}


/* MOBILE OVERLAY */
.mob-overlay {
  position: fixed; inset: 0; background: var(--bg); z-index: 200;
  padding: 80px 20px 40px; 
  transform: translateY(-100%); 
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
}
.mob-overlay.open { transform: translateY(0); }
.mob-ov-head { margin-bottom: 40px; }
.mob-ov-title {
font-size: 28px;
font-weight: 300;
letter-spacing:
-0.025em;
}

.mob-ov-nav {
list-style: none;
margin-bottom: 36px;
}

.mob-ov-nav li {
display: flex;
align-items: baseline;
gap: 10px;
margin-bottom: 2px;
}

.mob-ov-nav .n { font-size: 28px; font-weight: 300; color: var(--mid); min-width: 40px; transition: color .15s; }
.mob-ov-nav a  { font-size: 28px; font-weight: 300; transition: color .15s; }
.mob-ov-nav li:hover .n { color: #ffdf00; }
.mob-ov-nav li:hover a  { color: #ffdf00; }
.mob-ov-about { display: block; font-size: 28px; font-weight: 300; margin-top: 20px; margin-bottom: 24px; transition: color .15s; }
.mob-ov-about:hover { color: #ffdf00; }

/* --- MOBILE LAYOUT OVERRIDES --- */
@media (max-width: 760px) {
  .sidebar { display: none; }
  .mob-bar { display: flex; }
  
  /* Reset the main container spacing */
  .main { 
    margin-left: 0; 
    padding-top: 80px; 
    padding-right: 0; 
  }
  
  /* Hide the floating desktop text */
  .desktop-blurb { 
    display: none; 
  }
  
  /* Restore the stacked mobile text */
  .mobile-blurb {
    display: block;
	margin-left: 20px;
	margin-right: 30px;
    margin-bottom: 24px;
    line-height: 1.5;
  }

  /* Force images back to full width and remove the right-align push */
  .proj {
    width: 100%;          
    margin-left: 0;       
    margin-bottom: 10px;  
  }
}

/* 1. Set the background images for each project */
.ph-01 { background-image: url('images/TLC/TLC.jpg'); }
.ph-02 { background-image: url('images/The-Key/logo-mockup.jpg'); }
.ph-03 { background-image: url('images/Stanley/ST6.jpg'); }
.ph-04 { background-image: url('images/Gama/G6.jpg'); }
.ph-05 { background-image: url('images/Prescript/PS_7.jpg'); }
.ph-06 { background-image: url('images/Murphy/Murphy_Merch.jpg'); }
.ph-07 { background-image: url('images/HS2/HS2 Sign on Curzon slab site.jpg'); }
.ph-08 { background-image: url('images/Created Equal/CE Hoddies.jpg'); }
.ph-09 { background-image: url('images/Concepts/plant.jpg'); }

/* 2. Global styling to make the images fill the boxes correctly */
.ph { 
  width: 100%; 
  display: block; 
  background-size: cover;      /* Scales the image to fill the div */
  background-position: center; /* Centers the image so it doesn't crop weirdly */
  background-repeat: no-repeat;
  background-color: #111;      /* Shows dark gray while the image is loading */
}


/* Sidebar Link Alignment */
.s-nav a {
  display: flex;
  gap: 12px;
  align-items: baseline;
  width: 100%;
}

/* Ensure the list item itself doesn't interfere with the link layout */
.s-nav li {
  list-style: none;
  padding: 0;
  margin: 0;
}


/* Fix images and videos to fill their containers */
.img-fit {
  width: 100%;
  object-fit: cover;
  display: block;
}

video.ph {
  background-image: none;
}



  .about-main {
      width: 50vw;
      margin-left: auto;
      padding: 28px 48px 80px 48px;
    }

    .about-section {
      margin-bottom: 30px;
    }

    .about-label {
      font-size: 11px;
      font-weight: 400;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: #666;
      margin-bottom: 18px;
    }

    .about-heading {
      font-size: 32px;
      font-weight: 300;
      line-height: 1.25;
      letter-spacing: -0.02em;
      margin-bottom: 24px;
    }

    .about-body {
      font-size: 15px;
      font-weight: 300;
      line-height: 1.7;
      color: #fff;
      max-width: 480px;
    }

    .about-body p + p {
      margin-top: 16px;
    }

    .about-rule {
      border: none;
      border-top: 1px solid #222;
      margin-bottom: 30px;
    }

    .about-skills {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 6px 32px;
      max-width: 420px;
    }

    .about-skill {
      font-size: 14px;
      font-weight: 300;
      color: #ccc;
      padding: 5px 0;
      border-bottom: 1px solid #1a1a1a;
    }

    .about-contact a {
      display: inline-block;
      font-size: 15px;
      font-weight: 300;
      color: #fff;
      margin-right: 28px;
      margin-bottom: 8px;
      transition: color 0.15s;
    }

    .about-contact a:hover {
      color: #ffdf00;
    }

    @media (max-width: 760px) {
      .about-main {
        width: 100%;
        margin-left: 0;
        padding: 100px 24px 60px;
      }

      .about-heading {
        font-size: 24px;
      }

      .about-skills {
        grid-template-columns: 1fr;
      }
    }


.proj-img-pair {
  display: flex;
  gap: var(--gap);
  line-height: 0;
  font-size: 0;
}

.proj-img-pair .img-fit {
  flex: 1;
  min-width: 0;
}


.ph-portrait { aspect-ratio: 3 / 4; }

.ph-square {
aspect-ratio: 4 / 4;
}