:root{
    --c-red: #F0332A;
    --c-black: #000000;
    --c-white: #FFFFFF;
    --c-gray-100: #E4E4E2;
    --c-gray-300: #C7C7C5;
    --c-gray-600: #6B6B6B;
    --c-purple: #4B3F91;
    --c-maroon: #591518;

    --pms-pink: #c66be5;
    --pms-orange: #F7941D;
    --pms-green: #8DC63F;
    --pms-purple: #6A5ACD;
    --pms-blue: #0089CF;
    --pms-navy: #08003c;

    --font-display: "ivypresto-headline", serif;
    --font-body: 'Schibsted Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --headline: 40px;
    --body-copy: 20px;
    --caption: 16px;
    --nav-height: 88px;

    /* work gallery */
    --work-gap: 8px;
    --work-copy-height: 40px;

    --ease: cubic-bezier(.22,.61,.36,1);
    
  }



p{
  text-wrap: pretty;
}

.back-to-top{
  border-radius: 100px;
  background-color: var(--c-black);
  color: white;
  position: fixed;
  bottom: 20px;
  right: 30px;
  z-index: 100;
  text-decoration: none;
  width: 35px;
  height: 35px;
  text-align: center;
  align-items: center;
  display: grid;
}

.back-to-top:hover{
  background-color: white;
  color: black;
}


  @media (max-width: 768px){
    :root{
      --headline: 32px;
      --body-copy: 18px;
      --caption: 16px;
      --nav-height: 64px;
      --work-copy-height: 56px;
    }
  }

  *{ box-sizing: border-box; }
  html{ scroll-behavior: smooth; }
  @media (prefers-reduced-motion: reduce){
    html{ scroll-behavior: auto; }
    *{ animation-duration: .001ms !important; transition-duration: .001ms !important; }
  }

  body{
    margin:0;
    background: var(--c-white);
    color: var(--c-black);
    font-family: var(--font-body);
    font-size: var(--body-copy);
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
  }

  img, .placeholder{ 
    max-width: 100%;
    display: block;
    width: 60px;
  }

  h1,h2,h3{
    font-family: var(--font-display);
    font-weight: 500;
    margin: 0;
    line-height: 1.08;
  }

  p{ margin: 0; }

  a{ color: inherit; }

  .skip-link{
    position: absolute;
    left: -999px;
    top: auto;
    background: var(--c-white);
    color: var(--c-black);
    padding: 12px 20px;
    z-index: 1000;
    font-family: var(--font-body);
    font-size: var(--caption);
  }
  .skip-link:focus{
    left: 16px;
    top: 16px;
  }

  a:focus-visible,
  button:focus-visible{
    outline: 3px solid var(--c-red);
    outline-offset: 3px;
  }

  .btn{
    font-size: var(--caption);
    text-decoration: none;
  }

  .btn:hover{
    font-family: var(--headline);
    font-style: italic;
  }

  .btn:active{
    font-family: var(--headline);
    font-style: italic;
  }

  /* ---------- NAV ---------- */
  .site-nav{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 100;
    background: rgb(0 0 0);
  }
  .nav-inner{
    /* max-width: 1400px; */
    /* margin: 0 auto; */
    height: 100%;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .nav-logo{
        /* font-family: var(--font-display); */
    /* font-style: italic; */
    /* font-weight: 600; */
    min-height: 100px;
    display: contents;
    /* font-size: 28px; */
    /* color: var(--c-white); */
    /* text-decoration: none;*/
  }
  .nav-links{
    list-style: none;
    display: flex;
    gap: 36px;
    margin: 0;
    padding: 0;
  }
  .nav-links a{
    color: var(--c-white);
    text-decoration: none;
    font-size: var(--caption);
    font-weight: 400;
    padding: 6px 2px;
    border-bottom: 1px solid transparent;
    transition: border-color .25s var(--ease);
  }
  .nav-links a:hover{ 
    font-family: var(--font-display);
    font-style: italic;
    /* font-size: 18px;  */
    letter-spacing: 0.06em;
    }

  .nav-links a:active{ 
    font-family: var(--font-display);
    font-style: italic;
    /* font-size: 18px;  */
    letter-spacing: 0.06em;
    }

  .nav-toggle{
  display: none;
  position: relative;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 200; /* stay above the full-screen menu */
}

.nav-toggle-line{
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--c-white);
  border-radius: 1px;
  transition: transform .35s var(--ease), top .35s var(--ease), opacity .2s var(--ease);
}

.nav-toggle-line:first-child{ top: 4px; }
.nav-toggle-line:last-child{ top: 16px; }

/* X state — toggled by JS adding .is-open to the button */
.nav-toggle.is-open .nav-toggle-line:first-child{
  top: 9px;
  transform: rotate(45deg);
}
.nav-toggle.is-open .nav-toggle-line:last-child{
  top: 9px;
  transform: rotate(-45deg);
}

@media (max-width: 768px){
  .nav-links{
    position: fixed;
    inset: 0; /* full screen instead of a small pop-out */
    top: 0;
    background: var(--c-black);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-height: none;
    height: 110vh;
    height: 110dvh;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s var(--ease), visibility 0s linear .35s;
  }
  .nav-links.open{
    opacity: 1;
    visibility: visible;
    transition: opacity .35s var(--ease), visibility 0s linear 0s;
  }
  .nav-links li{ border-bottom: none; }
  .nav-links a{
    display: block;
    padding: 18px 24px;
    font-size: clamp(24px, 6vw, 36px);
    text-align: center;
  }
  .nav-toggle{ display: block; }
}



  main{ display: block; }

  /* ---------- HERO ---------- */
  /* ---------- HERO GRID (sticky, media + sidebar) ---------- */
  .hero-grid-wrap{
    position: relative;
    padding-top: var(--nav-height);
  }
  .hero-grid{
    position: sticky;
    top: var(--nav-height);
    height: calc(100vh - var(--nav-height));
    height: calc(100dvh - var(--nav-height));
    z-index: 0;
    display: grid;
    grid-template-columns: 7fr 3fr;
    background: var(--c-black);
    overflow: hidden;
  }

  .hero-grid-media{
    display: grid;
    grid-template-rows: 1fr auto;
    height: 100%;
    min-height: 0;
  }
 .hero-grid-visual{
  position: relative;
  overflow: hidden;
  min-height: 0;
  container-type: size;
}

.hero-grid-visual iframe{
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 80vw;
    min-height: 85vh;
    transform: translate(-50%, -50%);
}
  .hero-grid-visual video{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

   .hero-grid-visual img{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .hero-grid-caption{
    display: flex;
    align-items: center;
    padding: 28px clamp(24px, 3vw, 48px);
  }
  .hero-grid-caption p{
    font-size: var(--body-copy);
    line-height: 1.5;
    color: var(--c-white);
    max-width: 90ch;
  }

  .green{
    background: #80862c;
  }

  .sage-green{
    background: #629866
  }

  .purple{
    background: var(--pms-purple);
  }

  .dark-purple{
    background: #59419b;
  }

  .blue{
    background: #0396FF;
  }

  .orange{
    background: #ff6900;
  }

  .pink{
        background: var(--pms-pink);
  }

  .black{
    background: #000000;
  }

  .dark-blue{
    background: var(--pms-navy);
  }

  .white{
    background: #FFFFFF;
  }

  .light{
    background: #FFFFFF;
    color: #000000;
  }

  .dark{
    background: #000000;
    color: #FFFFFF;
  }

  .dark p{
    color: rgba(255,255,255,0.8);
  }

  .light p{
    color: #000000d5;
  }

  .hero-grid-sidebar{
    background: var(--c-black);
    color: var(--c-white);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px clamp(24px, 3vw, 40px);
    height: 100%;
    min-height: 0;
  }
  .hero-grid-sidebar h1{
    line-height: 1.18;
    max-width: 16ch;
    font-family: var(--body-copy);
    font-weight: 600;
    text-wrap: pretty;
  }
  .hero-grid-meta{
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .hero-grid-tag{
    font-size: 16px;
    color: rgba(255,255,255,0.9);
  }
  .hero-grid-divider{
    border: none;
    border-top: 1px solid rgba(255,255,255,0.3);
    margin: 0;
    padding-bottom: 5px;
  }
  .hero-grid-credit{
    font-size: var(--caption);
    line-height: 1.45;
    color: rgba(255,255,255,0.7);
    /* max-width: 24ch; */
  }

  @media (max-width: 900px){
  .hero-grid{
    position: relative;
    top: auto;
    height: auto;
    grid-template-columns: 1fr;
  }
  .hero-grid-media{
    display: contents;
  }
  .hero-grid-visual{
    aspect-ratio: 16 / 9;
    height: auto;
  }
  .hero-grid-visual video{
    height: auto;
  }
  .hero-grid-sidebar{
    order: 2;
    padding: 32px;
    gap: 24px;
  }
  .hero-grid-sidebar h1{ max-width: none; }
  .hero-grid-caption{
    order: 3;
    padding: 24px 32px;
  }
  .hero-grid-visual iframe{
    min-width: 100vw;
  }
}


  /* ---------- SPLIT SECTIONS (challenge) ---------- */
  .split-section{
    display: grid;
    grid-template-columns: 1fr auto;
    min-height: 70vh;
  }
  .split-media{
    display: block;
    width: 100%;
    height: -webkit-fill-available;
    object-fit: cover;
  }
  .split-copy{
    padding: 40px clamp(24px, 3vw, 40px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    max-width: 30vw;
  }


  .mixed-heading{
    font-family: 'ivypresto-headline';
    font-weight: 100;
  }
  .mixed-heading em{
    font-style: italic;
    font-weight: 600;
  }
  .split-copy p{
    font-size: var(--body-copy);
    line-height: 1.4;
  }

  .split-section--pink{
    position: relative;
    z-index: 1;
    background: #ffffff;
  }
  .split-section--pink .split-media{
    background: var(--pms-pink);
  }
  .split-section--pink .mixed-heading,
  .split-section--pink .split-copy p{
    color: var(--c-black);
  }

  @media (max-width: 900px){
    .split-section{ grid-template-columns: 1fr; }
    .split-copy{ padding: 40px 32px; max-width:100vw;}
    .split-copy p{ max-width: 100vw; }

  }

  /* ---------- APPROACH ---------- */
  .approach-text{
  padding-left: 32px;
}

.approach-sticky{
  position: sticky;
  top: var(--nav-height);
  background: var(--c-white);
  padding-top: 25vh;
  margin: 0;
  z-index: 5;
}
  .approach{
  position: relative;
  padding: 0 0 40px;
}

.approach-body{
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5vw;
  align-items: start;
}

.approach-media{
    position: sticky;
    top: var(--nav-height);
    height: 92vh;
    align-self: start;
}

.approach-photo iframe{
  width: 100%;
  height: 100%;
}

  .approach-body{
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 5vw;
  }
  .approach-item{
    min-height: 68vh;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 32px;
    text-wrap: pretty;
  }
  .approach-item:first-child{ border-top: none; padding-top: 0; }
  .approach-item h3{
    font-size: 28px;
    font-weight: 500;
  }
  .approach-item p{
    font-size: var(--body-copy);
    line-height: 1.45;
    color: #262626;
    max-width: 25vw;
  }
  .approach-item-photo{ display: none; }

  .approach-photo{
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .6s var(--ease);
    border-radius: 2px;
    overflow: hidden;
  }
  .approach-photo.is-active{ opacity: 1; }
  .approach-photo[data-approach-index="0"]{ background: white; }
  .approach-photo[data-approach-index="1"]{ background: white;}
  .approach-photo[data-approach-index="2"]{ background: white;}
  .approach-photo img{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

@media (max-width: 900px){
  .approach{ padding: 0 32px 28px; margin: 0px;}
  .approach-sticky{
    padding: 32px 22px 32px;
    margin-left: -20px;
    margin-right: -20px;
    width: 95vw;
  }
  .approach-text{ 
    display: block;
    max-width: none;
    width: calc(100%);
    margin-left: -20px;
    margin-right: -20px;
    height: auto;
    margin-bottom: 4px;
    border-radius: 0;
    padding: 0px 20px;
  }
  .approach-body{ grid-template-columns: 1fr; gap: 0; }
  .approach-media{ display: none; }
  .approach-item{ min-height: 0; padding: 28px 0; 
  max-width: 100vw;}
  .approach-item-photo{
    display: block;
    max-width: none;
    width: 90vw;
    margin-left: -20px;
    margin-right: -20px;
    height: auto;
    margin-bottom: 4px;
    border-radius: 0;
    padding: 0px 20px;
  }
  .approach-item p{
    max-width: 100vw;
  }

  .approach-item-photo iframe{
    width: 90vw;
    height: 40vh;
}

}

@media (max-width: 400px){
  .approach-item-photo iframe{
        width: 90vw;
        height: 40vh;
        display: block;
        max-width: none;
        margin-left: -20px;
        margin-right: -20px;
        height: auto;
        margin-bottom: 4px;
        border-radius: 0;
        padding: 0px 20px;
  }
}
/* ---------- BRAND ---------- */
/* .brand{
  padding: 40px 0 0px;
} */
.brand-body{
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;   /* this is what vertically centers the text */
  gap: 5vw;
  padding: 0 32px;
}
.brand-text{
  max-width: 26vw;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.brand-text h2{
  font-size: var(--headline);
}
.brand-text p{
  font-size: var(--body-copy);
  line-height: 1.45;
  color: #262626;
}
.brand-media{
  display: grid;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 900px){
  .brand{ padding: 0 0 0px; }
  .brand-body{
    grid-template-columns: 1fr;
    align-items: start;
    padding: 0 32px;
    gap: 28px;
  }
  .brand-text{ max-width: none; 
  padding-top: 50px;}
  .brand-media{ grid-template-columns: 1fr; }
}



  /* ---------- PHOTO BANDS ---------- */
  .photo-band{
    display: block;
    width: 100%;
    height: auto;
    background: var(--c-black);
  }
  .photo-band.dark{
  background: var(--c-black);
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.photo-band.dark iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

  /* ---------- RESULT ---------- */
  .result{
    background: var(--c-black);
    color: var(--c-white);
    padding: 120px 32px 20px 32px;
  }
  .result-inner{
    max-width: 1400px;
    display: flex;
    flex-direction: column;
    gap: 28px;
  }
  .result h2{ font-size: var(--headline); }
  .result p{
    font-size: var(--body-copy);
    max-width: 46ch;
    color: rgba(255,255,255,0.88);
    line-height: 1.45;
  }

  @media (max-width: 900px){
    .result{ padding: 48px 32px; }
    .result-inner{ gap: 20px; }
  }

  /* ---------- BRAND / TYPE SPECIMEN ---------- */
  .brand-split-section{
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 64px 32px;

  }

  .brand-split-media{
    display: block;
    width: 100%;
    max-width: 500px;
    height: -webkit-fill-available;
    object-fit: contain;
    justify-self: center;
  }

  .mobile-padding{
    padding-left: 32px;
  }

  .mobile-photo{
    display: none;
  }

  .desktop-photo{
    display: block;
  }

  @media (max-width: 900px){
    .brand-split-section{
      grid-template-columns: 1fr;
    }
    .mobile-padding{
      padding-left: 0px;
      padding-top:64px;
    }
    .desktop-photo{
      display: none;
    }
    .mobile-photo{
      display: block;
    }
  }

  /* ---------- QUOTE ---------- */
  .quote{
    padding: 120px 32px 20px 32px;
    text-align: left;
  }
  .quote-inner{
    max-width: 1200px;
  }
  .quote h2{
    font-size: var(--headline);
    font-weight: 400;
    margin-bottom: 32px;
    max-width: 35ch;
  }
  .quote h2 em{ font-style: italic; font-weight: 600; }
  .quote p{
    font-size: var(--body-copy);
    max-width: 44ch;
  }


  .half-section{
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 90vh;
    object-fit: contain;
  }

  img.half-section-media{
  object-fit: cover;
  object-position: top;
}

  .half-section-media{
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.half-section-media iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.fill{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

  @media (max-width: 900px){
    .quote{ padding: 48px 32px; }
    .quote h2{ margin-bottom: 20px; }
  .half-section{
    grid-template-columns: 1fr;
    height: auto;
  }
  .half-section-media{
    height: 60vh;
    height: 60dvh;
  }
}


  /* ---------- PATTERN BAND ---------- */
  .pattern-band{
    position: relative;
    min-height: 50vh;
    background:
      repeating-conic-gradient(var(--c-purple) 0% 25%, var(--c-maroon) 0% 50%) 0 0 / 80px 80px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .pattern-band .pattern-center{
    width: 30%;
    aspect-ratio: 1;
    background: var(--c-black);
  }

  /* ---------- NEXT PROJECT ---------- */
  /* 1. The Parent Container */
.video-container {
  position: relative;
  width: 100%;       /* Or your choice of width */
  height: 500px;     /* Or your choice of height (e.g., 100vh) */
  overflow: hidden;  /* Crops the overflowing oversized video */
}

/* 2. The Vimeo Iframe */
.video-container iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Centers the cropped iframe */
  
  /* Forces the video to stay locked in a 16:9 ratio */
  min-width: 100%;
  min-height: 100%;
  width: 177.78vh; /* 16 / 9 = 1.7778 (177.78% of the height) */
  height: 56.25vw; /* 9 / 16 = 0.5625 (56.25% of the width) */
}

  .next-project{
    display: block;
    text-decoration: none;
    color: inherit;
  }
  .next-project-link{
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 60vh;
    text-decoration: none;
    color: inherit;
  }
  .next-project-copy{
    background: var(--c-black);
    color: var(--c-white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    padding: 64px;
  }
  .next-project-link iframe{
    pointer-events: none;
  }
  .next-project-copy .eyebrow{
    font-size: var(--caption);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--c-gray-300);
  }
  .next-project-copy h2{
    font-size: var(--headline);
    font-style: italic;
    font-weight: 600;
    transition: transform .35s var(--ease);
  }
  .next-project-link:hover .next-project-copy h2{ transform: translateX(12px); }
  .next-project-media{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: var(--c-black);
  }

  @media (max-width: 900px){
    .video-container iframe {
      position: relative;
    }
    .next-project-link{ grid-template-columns: 1fr; 
    min-height: unset;}
    .next-project-media{ height: auto; object-fit: contain; }
    .next-project-copy{ padding: 36px 32px; }
  }

  /* ---------- FOOTER ---------- */
  .site-footer{
    background: var(--c-black);
    color: var(--c-gray-600);
    padding: 28px 32px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: var(--caption);
  }
  .site-footer a{ text-decoration: none; color: var(--c-gray-300); }
  .site-footer a:hover{ color: var(--c-white); }

  
  /* ============================================================
     HOME — FLIP STACK
     ============================================================ */
  .flip-stack{
    position: relative;
    min-height: 100vh;
  }
  .flip-block{
    position: sticky;
    top: var(--nav-height);
    height: calc(100vh - var(--nav-height));
    height: calc(100dvh - var(--nav-height));
    display: grid;
    grid-template-columns: 7fr 3fr;
    overflow: hidden;
    background: var(--c-black);
    text-decoration: none;
    color: inherit;
  }
  .flip-stack .flip-block:nth-of-type(1){ z-index: 1; }
  .flip-stack .flip-block:nth-of-type(2){ z-index: 2; }
  .flip-stack .flip-block:nth-of-type(3){ z-index: 3; }
  .flip-stack .flip-block:nth-of-type(4){ z-index: 4; }
  .flip-stack .flip-block:nth-of-type(5){ z-index: 5; }
  .flip-stack .flip-block:nth-of-type(6){ z-index: 6; }
 
  .flip-block-media{
    position: relative;
    overflow: hidden;
    min-height: 0;
  }
  .flip-block-media img,
  .flip-block-media video{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .flip-block-media iframe{
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100vw;
    min-height: 100vh;
    transform: translate(-50%, -50%);
  }
  .flip-block-solid{
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: left;
  }
  .flip-block-solid h2{
    font-size: clamp(30px, 4.4vw, 60px);
    line-height: 1.12;
    color: var(--c-white);
    max-width: 15ch;
  }
  .flip-block-solid h2 em{
    font-style: italic;
    font-weight: 600;
  }
 
  .flip-block-sidebar{
    color: var(--c-white);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px clamp(24px, 3vw, 40px);
    background: var(--pms-blue);
  }
  .flip-block-sidebar h3{
    font-size: clamp(20px, 2.2vw, 30px);
    line-height: 1.18;
    max-width: 14ch;
    font-weight: 600;
  }
  .flip-block-tag{
    font-size: 16px;
    color: rgba(255,255,255,0.9);
  }

  .social-links{
    display: grid;
    gap: 15px;
    padding-top: 40px;
  }

  .flip-block-tag:hover{
    font-style: italic;
  }
  .flip-block-note{
    font-size: 14px;
    color: rgba(255,255,255,0.65);
    max-width: 24ch;
    margin: 0;
  }
  .flip-block-link{
    font-size: var(--caption);
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--c-white);
    border-bottom: 1px solid rgba(255,255,255,.4);
    padding-bottom: 2px;
    align-self: flex-start;
    transition: border-color .25s var(--ease);
  }
  .flip-block:hover .flip-block-link{ border-color: var(--c-red); }
 
  .flip-block--pink .flip-block-sidebar{ background: var(--pms-pink); }
  .flip-block--purple .flip-block-sidebar{ background: var(--pms-purple); }
  .flip-block--blue .flip-block-sidebar{ background: var(--pms-blue); }
  .flip-block--green .flip-block-sidebar{ background: var(--pms-green); }
  .flip-block--cta .flip-block-sidebar,
  .flip-block--cta .flip-block-media{ background: var(--c-red); }
 
  @media (max-width: 900px){
    .flip-stack{ display: flex; flex-direction: column; }
    .flip-block{
      position: relative;
      top: auto;
      height: auto;
      grid-template-columns: 1fr;
    }
    .flip-block-media{ aspect-ratio: 4 / 3; }
    .flip-block-media iframe{ min-width: 100vw; min-height: 100%; }
    .flip-block-solid{ padding: 32px 32px; aspect-ratio: auto; min-height: 40vh; }
    .flip-block-sidebar{ padding: 28px 32px; gap: 20px; }
  }
 

  /* ============================================================
     WORK GALLERY — BENTO GRID (also serves as the home page)
     ============================================================ */
  .work-stack{
    display: grid;
    grid-template-columns: 2.5fr 7fr;
    gap: 5vw;
    padding: calc(var(--nav-height)) 32px 80px;
  }
  .work-stack-nav{
    position: sticky;
    top: var(--nav-height);
    align-self: start;
    padding-top: 25vh;
    min-width: 220px;
  }
  .work-stack-nav h1{
    font-size: var(--headline);
    margin: 0 0 28px;
  }
  .work-stack-nav h1 em{
    font-style: italic;
    font-weight: 600;
  }
  .work-stack-intro{
    max-width: 30ch;
    font-size: var(--caption);
    line-height: 1.55;
    color: rgba(255,255,255,0.72);
  }
  .work-index{
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
  .work-index li{
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: var(--caption);
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--c-gray-600);
    transition: color .3s var(--ease);
    cursor: pointer;
  }
  .work-index li.is-active{ color: var(--c-white); }
  .work-index-swatch{
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--c-gray-300);
    transition: background .3s var(--ease);
  }
  .work-index li.is-active .work-index-swatch{
    background: var(--swatch-color, var(--c-red));
  }

  .dark-bg{
    background-color: #000000;
  }

  .white-text{
    color: #FFFFFF;
  }

  /* Bento grid: tight two-column masonry. Tile "height" comes from the
     aspect-ratio modifiers below (--wide / --square / --tall), so
     different-sized tiles naturally interlock like the reference. */
  .work-stack-list{
    column-count: 2;
    column-gap: var(--work-gap);
  }

  .work-row{
    position: relative;
    display: block;
    break-inside: avoid;
    margin: 0 0 var(--work-gap);
    text-decoration: none;
    color: var(--c-white);
  }

  .work-row-media-wrap{
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--c-black);
    aspect-ratio: 4 / 5;
  }
  .work-row--tall .work-row-media-wrap{ aspect-ratio: 3 / 4; }
  .work-row--portrait .work-row-media-wrap{ aspect-ratio: 4 / 5; }
  .work-row--square .work-row-media-wrap{ aspect-ratio: 1 / 1; }
  .work-row--wide .work-row-media-wrap{ aspect-ratio: 16 / 10; }

  /* .work-row-media is a wrapper div (role="img"); the actual img/iframe
     inside carries .fill and simply fills this box at 100%/100%. Shrinking
     this box's height on hover is what "crops" the image from the bottom
     and reveals the caption strip beneath it. */
  .work-row-media{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; /* never changes now */
  clip-path: inset(0 0 0 0);
  transition: clip-path .5s var(--ease), filter .5s var(--ease);
  will-change: clip-path;
}
  .work-row-media.img-placeholder{
    background: repeating-conic-gradient(var(--c-gray-100) 0% 25%, var(--c-white) 0% 50%) 0 0 / 40px 40px;
  }

  /* Vimeo/YouTube iframes (and any <video>) must not swallow clicks —
     pointer-events:none lets a click pass straight through to the
     wrapping <a class="work-row">, so the whole tile — video included —
     is a real link to the case study. */
  .work-row-media-wrap iframe,
  .work-row-media-wrap video{
    pointer-events: none;
  }

  .work-row-copy{
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--work-copy-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    /* padding: 0 clamp(16px, 2.4vw, 28px); */
    color: var(--c-white);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .35s var(--ease), transform .35s var(--ease);
    pointer-events: none;
  }
  .work-row-copy h2{
    font-family: var(--font-body);
    font-size: var(--caption);
    font-weight: 500;
    font-style: normal;
    order: 1;
  }
  .work-row-copy .eyebrow{
    font-family: var(--font-body);
    font-size: var(--caption);
    text-transform: none;
    letter-spacing: normal;
    color: var(--c-gray-300);
    opacity: 1;
    order: 2;
    white-space: nowrap;
  }

  /* Hover / focus: crop the media up by the caption's height and fade
     the caption in below it — no color bars, no overlay on the image. */
  .work-row:hover .work-row-media,
.work-row:focus-visible .work-row-media{
  clip-path: inset(0 0 var(--work-copy-height) 0);
}

  
  .work-row:hover .work-row-copy,
  .work-row:focus-visible .work-row-copy{
    opacity: 1;
    transform: translateY(0);
  }

  .work-stack-list:has(.work-row:hover) .work-row:not(:hover) .work-row-media,
  .work-stack-list:has(.work-row:focus-visible) .work-row:not(:focus-visible) .work-row-media{
    filter: brightness(.35);
  }
  @media (max-width: 900px){
    .work-stack{
      grid-template-columns: 1fr;
      padding: calc(var(--nav-height) + 24px) 32px 60px;
      gap: 24px;
    }
    .work-stack-nav{ position: relative; top: auto; padding-top: 0; min-width: 0; }
    .work-index{ flex-direction: row; flex-wrap: wrap; gap: 14px 20px; }
    .work-stack-list{ column-count: 1; }
    .work-row-copy{
      position: static;
      height: auto;
      opacity: 1;
      transform: none;
      padding: 12px 2px 0;
      pointer-events: auto;
    }
    .work-row:hover .work-row-media,
  .work-row:focus-visible .work-row-media{
    clip-path: inset(0 0 0 0); /* full-height on mobile, same as before */
  }
    .work-stack-list:has(.work-row:hover) .work-row:not(:hover) .work-row-media,
    .work-stack-list:has(.work-row:focus-visible) .work-row:not(:focus-visible) .work-row-media{
      filter: none;
    }
  }


  /* ============================================================
     CONTENT PAGES — about / resume / contact
     ============================================================ */
  .page-hero{
    padding: calc(var(--nav-height) + 100px) 32px 60px;
    max-width: 1400px;
  }
  .page-hero .eyebrow{
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: var(--caption);
    color: var(--c-gray-600);
    margin-bottom: 20px;
  }
  .page-hero h1{
    font-size: clamp(36px, 6vw, 84px);
    max-width: 20ch;
  }
  .page-hero h1 em{ font-style: italic; font-weight: 600; }
  .page-hero p.lede{
    margin-top: 28px;
    font-size: var(--body-copy);
    max-width: 56ch;
    line-height: 1.5;
    color: #262626;
  }

  .content-section{
    padding: 40px 32px 80px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 5vw;
    max-width: 1400px;
  }
  .content-section h2{
    font-size: var(--headline);
    position: sticky;
    top: calc(var(--nav-height) + 40px);
    align-self: start;
  }
  .content-section-body{
    display: flex;
    flex-direction: column;
    gap: 40px;
  }

  .resume-entry{
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--c-gray-100);
  }
  .resume-entry:last-child{ border-bottom: none; padding-bottom: 0; }
  .resume-entry-top{
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 20px;
    flex-wrap: wrap;
  }
  .resume-entry h3{
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 600;
  }
  .resume-entry .role-meta{
    font-size: var(--caption);
    color: var(--c-gray-600);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
  }
  .resume-entry p{
    font-size: var(--body-copy);
    color: #262626;
    line-height: 1.5;
    max-width: 60ch;
  }

  .skills-grid{
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }
  .skill-pill{
    font-size: var(--caption);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 8px 16px;
    border: 1px solid var(--c-gray-300);
    border-radius: 999px;
  }

  .open-btn{
    min-width: 250px;
    text-align: center;
    align-items: center;
    gap: 10px;
    background: var(--c-black);
    color: var(--c-white);
    text-decoration: none;
    padding: 16px 28px;
    font-size: var(--caption);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: 1px solid white;
    width: fit-content;
    transition: background .25s var(--ease);
  }

  .open-btn:hover{
    opacity: 70%;
    background-color: white;
    color: var(--c-black);
  }

  .download-btn{
    min-width: 250px;
    text-align: center;
    align-items: center;
    gap: 10px;
    background: var(--c-white);
    color: var(--c-black);
    text-decoration: none;
    padding: 16px 28px;
    font-size: var(--caption);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: 2px;
    width: fit-content;
    transition: background .25s var(--ease);
  }
  .download-btn:hover{ 
    opacity: 70%;
  }

 

  @media (max-width: 900px){
    .page-hero{ padding: calc(var(--nav-height) + 56px) 32px 40px; }
    .content-section{ grid-template-columns: 1fr; padding: 8px 32px 56px; gap: 24px; }
    .content-section h2{ position: relative; top: auto; }
    .contact-link{ font-size: clamp(20px, 6vw, 28px); flex-wrap: wrap; gap: 6px; }
  }


  /* ============================================================
     PATCH 2 — hero-grid variants for about / resume / contact
     ============================================================ */

  /* Generic "light crop" split-section — forces dark text, independent
     of which utility background color (.orange/.blue/etc) is applied
     to .split-media. Mirrors what .split-section--pink already does,
     just decoupled from one specific color. */
  .split-section--light{
    position: relative;
    z-index: 1;
    background: #ffffff;
  }
  .split-section--light .mixed-heading,
  .split-section--light .split-copy p{
    color: var(--c-black);
  }

  /* PDF embedded inside the hero-grid media column (resume page).
     Overrides the video-centering rules on .hero-grid-visual iframe —
     higher specificity via the extra .pdf-embed wrapper class. */
  .hero-grid-visual .pdf-embed{
    position: absolute;
    inset: 0;
  }
  .hero-grid-visual .pdf-embed iframe{
    position: absolute;
    inset: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    transform: none;
    border: 0;
    background: var(--c-white);
  }
  .pdf-fallback{
    position: absolute;
    bottom: 16px;
    right: 16px;
    z-index: 2;
    background: var(--c-black);
    color: var(--c-white);
    text-decoration: none;
    font-size: var(--caption);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 12px 18px;
    border-radius: 2px;
    transition: background .25s var(--ease);
  }
  .pdf-fallback:hover{ background: var(--c-red); }

  .contact-link-row {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--black);
    transition: opacity 0.2s;
  }

  .contact-link-icon {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  /* Contact form living inside a .flip-block-media slot. Overrides the
     fixed aspect-ratio/height that slot normally takes for images. */
  .flip-block-media.flip-block-form{
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px clamp(24px, 4vw, 64px);
    overflow-y: auto;
  }
  .contact-form{
    width: 100%;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    gap: 22px;
  }
  .form-field{
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .form-field label{
    font-size: var(--caption);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.75);
  }
  .form-field input,
  .form-field textarea{
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255,255,255,0.45);
    color: var(--c-white);
    font-family: var(--font-body);
    font-size: 19px;
    padding: 10px 2px;
    transition: border-color .25s var(--ease);
  }
  .form-field input::placeholder,
  .form-field textarea::placeholder{ color: rgba(255,255,255,0.55); }
  .form-field input:focus,
  .form-field textarea:focus{
    outline: none;
    border-color: var(--c-white);
  }
  .form-field textarea{ resize: vertical; min-height: 96px; }
  .form-hp{
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
  }
  .form-submit{
    align-self: flex-start;
    background: var(--c-white);
    color: var(--c-black);
    border: none;
    padding: 16px 28px;
    font-size: var(--caption);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: background .25s var(--ease), color .25s var(--ease);
    font-family: var(--font-body);
  }
  .form-submit:hover{ background: var(--c-black); color: var(--c-white); }
  .form-note{
    font-size: var(--caption);
    color: rgba(255,255,255,0.6);
  }

  @media (max-width: 900px){
    .flip-block-media.flip-block-form{ aspect-ratio: auto; }
  }