/* PP Hatton Font Import */
@font-face {
  font-family: 'PP Hatton';
  src: url('../font/pphtton-ultralight.woff2') format('woff2');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'PP Hatton';
  src: url('../font/pphtton-medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root{
    --glass-bg: rgba(255, 255, 255, 0.14);
    --glass-border: rgba(255, 255, 255, 0.25);
    --text: rgba(20, 20, 20, 0.92);
    --text-muted: rgba(20, 20, 20, 0.65);
    --shadow: 0 12px 30px rgba(0,0,0,0.18);
    --radius: 999px;
    --active-bg: rgba(178, 178, 178, 0.28);
    --hover-bg: rgba(255, 255, 255, 0.22);
    --focus: 0 0 0 3px rgba(59, 130, 246, 0.35);
  
    --page-pad: 18px;
    --nav-top: 18px;
  }
  
  *{ box-sizing:border-box; }
  
  html, body{
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    max-width: 100%;
  }
  
  body{
    font-family: open sans, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    min-height:100vh;
    color: var(--text);
    background: linear-gradient(
        to bottom,
        #ffffff 0%,
        #fff4f6 30%,
        #ffffff 55%,
      );
      position: relative;
    
  }

  
  
  /* ---------------- PAGE ---------------- */
  .page{
    width: min(1100px, 100%);
    margin: 0 auto;
    padding: var(--page-pad);
  }
  
  /* ---------------- NAV ---------------- */
  .nav-wrap{
    position: sticky;
    top: var(--nav-top);
    z-index: 1000;
    display:flex;
    justify-content:center;
    pointer-events:none;
  }
  
  .glass-nav{
    pointer-events:auto;
    display:flex;
    align-items:center;
    gap: 10px;
    padding: 10px;
    border-radius: var(--radius);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px) saturate(130%);
    -webkit-backdrop-filter: blur(16px) saturate(130%);
  }
  
  .nav-links{
    display:flex;
    gap: 6px;
  }
  
  .nav-divider{
    width: 1px;
    height: auto;
    background: rgba(96, 96, 96, 0.223);
    margin: 0 2px;
  }
  
  .nav-link{
    color: var(--text-muted);
    text-decoration:none;
    text-decoration-thickness: 2px;
    text-underline-offset: 7px;
    text-decoration-color: transparent;
    font-weight:600;
    font-size:16px;
    padding:10px 14px;
    border-radius: var(--radius);
    transition: background .18s, color .18s, transform .18s;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    white-space: nowrap;
  }
  
  .nav-link:hover{
    background: var(--hover-bg);
    color: #295E7A;
    transform: translateY(-1px);
  }
  
  .nav-link.active{
    background: transparent;
    color: #295E7A;
    text-decoration-line: underline;
    text-decoration-color: #295E7A;
  }
  
  .nav-link:focus-visible{
    outline: none;
    box-shadow: var(--focus);
  }

  /* Work dropdown */
  .nav-dropdown {
    position: relative;
  }

  .nav-dropdown__menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(12px);
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
    padding: 10px 6px 6px;
    min-width: 200px;
    z-index: 200;
    flex-direction: column;
    gap: 2px;
  }

  /* invisible bridge so cursor can reach the menu */
  .nav-dropdown__menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
  }

  .nav-dropdown:hover .nav-dropdown__menu,
  .nav-dropdown:focus-within .nav-dropdown__menu {
    display: flex;
  }

  .nav-dropdown__category {
    display: block;
    padding: 6px 14px 2px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #295E7A;
    margin-top: 4px;
  }

  .nav-dropdown__category:first-child {
    margin-top: 0;
  }

  .nav-dropdown__item {
    display: block;
    padding: 7px 14px 7px 26px;
    border-radius: 7px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
    transition: background .15s, color .15s;
  }

  .nav-dropdown__item:hover {
    background: var(--hover-bg);
    color: #295E7A;
  }

  .menu-btn{
    display:none;
  }

  
  /* ---------------- HERO (FULL-BLEED + TOUCH TOP) ---------------- */
  .typing-hero{
    position: relative;
    left: 50%;
    width: 100vw;
    margin-left: -50vw;
  
    margin-top: calc(var(--page-pad) * -1 - var(--nav-top));
  
    min-height: 85vh;
    overflow: hidden;
  
    display: grid;
    place-items: center;
    text-align: center;
  }
  
  .hero-video{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: -2;
  }
  

  
  .typing-title{
    position: relative;
    z-index: 1;
    margin:0;
    font-size: clamp(56px, 9vw, 120px);
    font-weight:500;
    font-family: 'PP Hatton', sans-serif;
  }
  
  #typewriter{
    font-family: 'Sacramento', cursive;
  }
  
  .caret{
    display:inline-block;
    width:3px;
    height:1em;
    margin-left:8px;
    background:currentColor;
    animation: caretBlink 900ms steps(1) infinite;
    transform: translateY(6px);
  }
  
  @keyframes caretBlink{
    50%{ opacity:0; }
  }
  
  /* ---------------- FULL-BLEED MARQUEE ---------------- */
  .marquee{
    position: relative;
    left: 50%;
    width: 100vw;
    margin-left: -50vw;
    overflow: hidden;
    padding: 18px 0;
  
    mask-image: linear-gradient(
      to right,
      transparent,
      black 8%,
      black 92%,
      transparent
    );
    background: #295E7A;
  }
  
  .marquee-track{
    display: inline-flex;
    align-items: center;
    gap: 28px;
    white-space: nowrap;
    will-change: transform;
    transform: translateX(0);
  }
  
  .marquee span{
    font-size: clamp(14px, 2vw, 18px);
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: lowercase;
    color: #ffffff;
  }
  
  .marquee .dot{
    opacity: .5;
    color: #f7f3ee;
  }
  
  /* ===== GLASS PROJECT CARD ===== */
/* ==============================
   PROJECT CARD (GLASS + ALIGNMENT LIKE YOUR MOCK)
   Replace your current project-card CSS with this block
================================ */

.project-card{
    margin: 28px 0;
  }
  
  .project-link{
    display:block;
    text-decoration:none;
    color: inherit;
  }
  
  /* Glass card + correct grid layout */
  .project-grid{
    margin-top: 10%;
    margin-bottom: 10%;
    position: relative; /* needed for ::after highlight */
    display: grid;
    grid-template-columns: minmax(320px, 520px) 1fr;
    grid-template-rows: 1fr auto; /* title area + tags at bottom */
    column-gap: 56px;
    row-gap: 28px;
  
    padding: 56px;
    border-radius: 34px;
  
    background: rgba(255, 255, 255, 0.38);
    border: 1px solid #295E7A;
  
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
  
    box-shadow:
      0 12px 40px rgba(0,0,0,0.10),
      inset 0 1px 0 rgba(255,255,255,0.65);
  
    transition: transform 260ms ease, box-shadow 260ms ease, background 260ms ease;
  }
  
  .project-grid::after{
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(255,255,255,0.35), transparent 45%);
  }
  
  .project-link:hover .project-grid{
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.45);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
  }
  
  /* Left square preview */
  .project-media{
    grid-column: 1;
    grid-row: 1 / span 2;

    width: 100%;
    aspect-ratio: 1 / 0.75;         /* keeps it square like the mock */
    border-radius: 34px;
    overflow: hidden;
      }
      
.project-media img{
     
        height: 100%;
        width: 100%;
        object-fit: cover;
        display: block;
      }
    
  
  /* If you DON’T want the lorem ipsum notes (your mock doesn’t show them) */
  .project-notes{
    display: none;
  }
  
  /* Right side title block centered vertically */
  .project-meta{
    grid-column: 2;
    grid-row: 1;
    align-self: center;          /* vertical center */
  }
  
  .project-title{
    margin: 0;
    font-family: 'PP Hatton', sans-serif;
    font-size: clamp(28px, 3vw, 44px);
    letter-spacing: 0.02em;
    font-weight: 100;
    line-height: 1.05;
    color: rgba(20,20,20,0.92);
  }
  
  .project-company{
    margin: 14px 0 0 0;
    font-size: 16px;
    letter-spacing: 0.18em;
    text-transform: none;
    color: rgba(20,20,20,0.55);
  }
  
  /* Tags sit below title area (bottom-left of right column) */
  .project-tags{
    grid-column: 2;
    grid-row: 2;
    align-self: end;
    justify-self: start;
  
    display:flex;
    gap: 16px;
    align-items:center;
  
    font-size: 16px;
    letter-spacing: 0.12em;
    color: #295E7A;
  }
  
  .project-tags .dot{
    opacity: 0.6;
    color: #295E7A;
  }


  /* ================= ABOUT PAGE LAYOUT ================= */

.about-layout{
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 60px;
    margin-top: 50px;
    align-items: start;
  }
  
  /* LEFT */
  .about-visual{
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  
  .about-visual img{
    width: 100%;
    border-radius: 20px;
  }

  
  /* RIGHT */
  .about-content{
    max-width: 640px;
  }
  
  .about-content p{
    font-size: 16px;
    line-height: 1.7;
    color: #121212B3;
    margin-bottom: 16px;
  }
  
  /* ================= TITLE + SPARKLES ================= */
  
  .about-title-wrap{
    position: relative;
    display: inline-block;
    margin-bottom: 22px;
  }

.case.reveal.is-visible {
  padding-top:50px;
  }

  /* Case title wrapper: reuse the about-title sparkles + layout */
  .case-title-wrap{
    position: relative;
    display: inline-block;
    margin-bottom: 22px;
  }

  .case-title-wrap .sparkle{
    background: #295E7A; /* match about sparkles */
    filter: drop-shadow(0 0 8px rgba(140,0,0,0.45));
    z-index: 2;
  }

  /* Position sparkles around the title (not behind letters).
     These offsets push the sparkles further out from the text bounds
     so they sit around the heading instead of overlapping the glyphs. */
  .case-title-wrap .s1{ top: -32px; left: 6%; }
  .case-title-wrap .s2{ top: -22px; right: 12%; }
  .case-title-wrap .s3{ bottom: -32px; right: -6%; }
  .case-title-wrap .s4{ bottom: -12px; left: -8%; }
  .case-title-wrap .s5{ top: 44px; right: 44%; }

  /* Also nudge the about-page sparkles slightly outward to avoid overlapping large headings */
  .about-title-wrap .s1{ top: -22px; left: 8%; }
  .about-title-wrap .s2{ top: -12px; right: 8%; }
  .about-title-wrap .s3{ bottom: -22px; right: -8%; }
  .about-title-wrap .s4{ bottom: -2px; left: -10%; }
  .about-title-wrap .s5{ top: 44px; right: 32%; }


  /* Make sparkles visible on light backgrounds in the About page */
  .about-title-wrap .sparkle{
    background: #295E7A; /* Disney-accent red */
    filter: drop-shadow(0 0 8px rgba(41,94,122,0.35));
    z-index: 2;
  }
  

  /* Make About title match Home hero typewriter look */
.about-title{
    margin: 0;
    font-family: 'PP Hatton', sans-serif;
    font-size: clamp(30px, 6vw, 44px);
    font-weight: 100;
    letter-spacing: 0.02em;
    line-height: 1.05;
  }
  
  #about-type{
    font-family: 'PP Hatton', sans-serif;
    font-weight: 100;
    letter-spacing: 0.02em;
    font-size: clamp(30px, 6vw, 44px);
    line-height: 1.05;
  }
  
  .caret{
    display:inline-block;
    width:3px;
    height:1em;
    margin-left:8px;
    background: currentColor;
    animation: caretBlink 900ms steps(1) infinite;
    transform: translateY(6px);
  }

  /* ================= HOME TITLE SPARKLES ================= */
  /* Position and color tweaks specifically for the home page title
     so sparkles sit around the `#typewriter-home` element and are
     visible on the light background. */
  .home-title.sparkle-wrap{
    position: relative;
    display: inline-block;
    margin-bottom: 14px;
    isolation: isolate;
  }

  .home-intro::after{
    content: "";
    position: absolute;
    top: 52%;
    left: 85%;
    width: clamp(209px, 28.5vw, 361px);
    aspect-ratio: 1 / 1;
    transform: translate(-50%, -50%);
    background: url("../images/new_logo.png") center / contain no-repeat;
    opacity: 0.16;
    z-index: 0;
    pointer-events: none;
  }

  .home-intro > *{
    position: relative;
    z-index: 1;
  }

  .home-title.sparkle-wrap > #typewriter-home,
  .home-title.sparkle-wrap > .caret{
    position: relative;
    z-index: 1;
  }

  .home-title.sparkle-wrap .sparkle{
    background: #295E7A;
    filter: drop-shadow(0 0 8px rgba(41,94,122,0.35));
    z-index: 2;
    pointer-events: none;
  }

  .home-title.sparkle-wrap .s1{ top: -20px; left: 6%; }
  .home-title.sparkle-wrap .s2{ top: -10px; right: 10%; }
  .home-title.sparkle-wrap .s3{ bottom: -18px; right: -8%; }
  .home-title.sparkle-wrap .s4{ bottom: 6px; left: -10%; }
  .home-title.sparkle-wrap .s5{ top: 30px; right: 34%; }
  
  /* ================= SPARKLES ================= */
  
  .sparkle{
    position: absolute;
    width: 10px;
    height: 10px;
    background: white;
    clip-path: polygon(
      50% 0%,
      61% 36%,
      100% 50%,
      61% 64%,
      50% 100%,
      39% 64%,
      0% 50%,
      39% 36%
    );
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.8));
    opacity: 0.6;
  }
  
  .s1{ top:-12px; left:12%; animation-delay:0s; }
  .s2{ top:-4px; right:8%; animation-delay:.5s; }
  .s3{ bottom:-16px; right:-12px; animation-delay:1s; }
  .s4{ bottom:4px; left:-12px; animation-delay:.7s; }
  .s5{ top:24px; right:32%; animation-delay:1.3s; }
  

  
  /* ================= CONTACT ================= */
  
  .contact-block{
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 28px;
    margin-top: 42px;
  }
  
  .contact-left{
    min-width: 0;
  }
  
  .contact-carousel{
    width: 190px;       /* tweak size */
    height: auto;
    display: block;
    opacity: 0.95;
  }
  
  
  /* ===== RESUME IMAGE (ABOUT PAGE) ===== */
.resume-section{
    margin-top: 80px;
    display: flex;
    justify-content: center;
  }
  
  .resume-image{
    width: 100%;
    max-width: 820px;
    border-radius: 24px;
  
    background: rgba(255,255,255,0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  
    box-shadow:
      0 20px 50px rgba(0,0,0,0.12),
      inset 0 1px 0 rgba(255,255,255,0.6);
  }
  

/* =========================
   CASE STUDY LAYOUT 
========================= */


.case{
    padding-top: 22px;
    padding-bottom: 90px;
  }
  
  /* --- Hero --- */
  .case-hero{
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 90px;
    align-items: start;
    margin-top: 26px;
  }
  
  .case-hero__thumbs{
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    justify-items: center;
  }
  
  .case-thumb{
    width: 100%;
    overflow: hidden;
  }
  
  .case-thumb img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  /* constrain autoplay video in case thumb so it doesn't overflow */
  .case-thumb video{
    width: 100%;        /* fill the thumb container */
    height: auto;       /* keep natural aspect ratio */
    max-width: 266px;   /* 30% smaller than previous 380px */
    display: block;
    object-fit: cover;  /* crop if necessary */
  }

  /* page-specific larger hero video (used by outsidemagazine) */
  .page--hero-large .case-thumb video{
    max-width: 520px; /* larger hero size for pages that need it */
  }

  /* page-specific larger video for motiongraphics */
  .page--hero-xlarge .case-thumb video{
    max-width: 100%; /* full width for motiongraphics */
  }
  
  /* Add extra space above the first video pair on motiongraphics page */
.page--hero-xlarge .case-thumb.video-pair {
  margin-top: 48px;
}
  
  .case-hero__meta{
    max-width: 520px;
    margin: 0 auto;        /* centers the whole text column like your mock */
  }

  /* spacing for hero summary CTA */
  .case-hero__meta .case-btn{
    margin-top: 18px;
  }
  
  .case-title{
    margin: 0;
    font-family: 'PP Hatton', sans-serif;
    font-size: clamp(30px, 6vw, 44px);
    font-weight: 100;
    letter-spacing: 0.02em;
    line-height: 1.05;
    text-align: left;
  }
  
  .case-tags{
    margin: 10px 0 0 0;
    font-size: 16px;
    letter-spacing: 0.10em;
    color: #295E7A;
    text-align: left;
  }
  
  .case-tags .dot{ opacity: .5; }
  
  /* overview + right column */
  .case-summary{
    margin-top: 36px;
    display: grid;
    grid-template-columns: 1fr 240px;
    gap: 70px;
  }
  
  .case-summary h3{
    margin: 0 0 10px 0;
    font-size: 16px;
    letter-spacing: 0.10em;
    color: rgba(20,20,20,0.85);
  }
  
  .case-summary p{
    margin: 0 0 10px 0;
    line-height: 1.6;
    color: #121212B3;
  }
  
  /* --- Section headings --- */
  .case-section{
    margin-top: 90px;
  }
  
  .case-h2{
    margin: 0 0 22px 0;
    font-family: 'PP Hatton', sans-serif;
    font-size: 26px;
    font-weight: 100;
  }
  
  /* --- The Problem row --- */
  .case-problem{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 110px;
    align-items: start;
  }
  
  .case-problem__item{
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 80px;
    row-gap: 30px;
    align-items: start;
  }
  
  .case-img{
    width: 100%;
    overflow: hidden;
  }
  
  .case-img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .case-img-caption{
    display: block;
    margin-top: 10px;
    text-align: center;
    font-size: 14px;
    color: rgba(20, 20, 20, 0.75);
    font-weight: 600;
    letter-spacing: 0.04em;
  }

  .case-img--with-caption{
    overflow: visible;
  }

  .case-img--with-caption img{
    height: auto;
  }
  
  .case-callout{
    padding-left: 14px;
    border-left: 4px solid #295E7A;
    line-height: 1.6;
    color: #121212B3;
    max-width: 260px;
  }

  .case-callout--gray-line{
    border-left-color: #8a8a8a;
  }
  
  /* --- Competitive + Journey --- */
  .case-two{
    margin-top: 100px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 110px;
    align-items: start;
  }
  
  .case-card .case-h2{
    margin-bottom: 18px;
  }

  /* Remove browser default margins on figures inside case cards so
     the image lines up with the section heading */
  .case-card figure{
    margin: 0;
  }
  
  .case-wide{
    width: 100%;
    /* aspect-ratio: 16 / 6; */
    overflow: hidden;
  }
  
  .case-wide img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  
  /* --- New Design --- */
  .case-new{
    display: grid;
    /* two-column layout: left column (callout) + right column (screens)
       the third column was previously empty so we remove it */
    grid-template-columns: minmax(220px, 280px) 1fr;
    gap: 28px;                /* tighter spacing */
        row-gap: 90px;

    align-items: start;
  }

  /* Left column wrapper for subheading + callout */
  .case-new__col-left{
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .case-subh{
    margin: 0;
    font-family: 'PP Hatton', sans-serif;
    font-size: 16px;
    font-weight: 100;
    color: rgba(20,20,20,0.85);
    letter-spacing: 0.06em;
  }

  /* spacing for the button added to the left column */
  .case-new__col-left .case-btn{
    margin-top: 12px;
  }
  
  .case-new__screens{
    display: grid;
    /* stack screens vertically in the right column */
    grid-template-columns: 1fr;
    gap: 18px;
    justify-items: center;
  }

  .case-new__screens--trio{
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
  }
  
  
  .case-callout--right{
    /* align right callout under the left callout */
    justify-self: start;
    margin-right: 0;
  }

  /* Modifier: force a three-column inline layout for specific case-new sections */
  .case-new--three{
    grid-template-columns: minmax(220px, 280px) 1fr minmax(220px, 280px);
  }

  .case-new--three .case-new__screens{
    /* place two images side-by-side */
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    justify-items: center;
  }

  .case-new--three .case-callout--right{
    justify-self: end;
    margin-right: 6px;
  }

  .case-new--two .case-new__screens{
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    justify-items: center;
  }
  
  /* --- Prototype CTA --- */
  .case-cta{
    margin-top: 100px;
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 70px;
    align-items: center;
    justify-items: center;
  }
  
  .case-cta__preview{
    width: 100%;
    overflow: hidden;
  }
  
  .case-cta__preview img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  
  .case-cta__label{
    margin: 0 0 14px 0;
    color: #121212B3;
  }

  /* Alignments for CTA: preview stays centered, text aligns left */
  .case-cta__preview{
    justify-self: center; /* center the preview column */
  }

  .case-cta__text{
    justify-self: start; /* left-align the text block within the grid cell */
    text-align: left;    /* ensure text inside is left-aligned */
    max-width: 100%;
  }
  
  .case-btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 22px;
    border-radius: 999px;
    background: #295E7A;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.08em;
    transition: transform 180ms ease, background 180ms ease;
  }
  
  .case-btn:hover{
    transform: translateY(-1px);
    background: rgba(0,0,0,0.10);;
    color: rgba(20,20,20,0.80);
  }

  .case-btn--gray{
    background: #fff;
    color: #295E7A;
    border: 2px solid #295E7A;
  }

  .case-btn--gray:hover{
    background: #eef5f9;
    color: #295E7A;
  }
  
 
  


  /* ================= RESPONSIVE ================= */
  
  
  /* Responsive */
  @media (max-width: 820px){
    .project-grid{
      grid-template-columns: 1fr;
      grid-template-rows: auto auto auto;
      padding: 28px;
      row-gap: 18px;
    }
    .about-layout{
        grid-template-columns: 1fr;
        gap: 40px;
      }
    
      .about-visual{
        align-items: center;
      }
  
    .project-media{
      grid-column: 1;
      grid-row: 1;
      max-width: 520px;
      margin: 0 auto;
      border-radius: 26px;
    }
  
    .project-meta{
      grid-column: 1;
      grid-row: 2;
      text-align: center;
    }
  
    .project-tags{
      grid-column: 1;
      grid-row: 3;
      justify-self: center;
    }

    .case-hero{
        grid-template-columns: 1fr;
        gap: 28px;
      }
    
      .case-hero__meta{
        max-width: none;
        margin: 0;
      }
    
      .case-title,
      .case-tags{
        text-align: left;
      }
    
      .case-summary{
        grid-template-columns: 1fr;
        gap: 18px;
      }
    
      .case-problem{
        grid-template-columns: 1fr;
        gap: 40px;
      }
    
      .case-problem__item{
        grid-template-columns: 180px 1fr;
      }
    
      .case-two{
        grid-template-columns: 1fr;
        gap: 60px;
      }
    
      .case-new{
        grid-template-columns: 1fr;
        gap: 18px;
      }
    
      .case-new__screens{
        grid-template-columns: 1fr;
      }
    
      .case-callout,
      .case-callout--right{
        justify-self: start;
        max-width: 240px;

      }
    
      .case-cta{
        grid-template-columns: 1fr;
        gap: 18px;
        align-items: start;
      }
  }
  
  /* REPLACE your current reveal styles with this */
.reveal{
    opacity: 1;
    transform: none;
    transition: opacity 700ms ease, transform 700ms ease;
  }
  
  /* only hide when JS is confirmed running */
  .js .reveal{
    opacity: 0;
    transform: translateY(28px);
  }
  
  .js .reveal.is-visible{
    opacity: 1;
    transform: translateY(0);
  }

    


  /* ---------------- CONTENT ---------------- */
  .content{
    display:grid;
    gap:18px;
    padding-bottom:60px;
  }
  
  .section{
    padding:24px;
    border-radius:20px;
    background: rgba(255,255,255,.45);
    border:1px solid rgba(255,255,255,.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  
  /* Quote column stays stacked and aligned */
.case-quotes{
    display: grid;
    gap: 18px;
    align-content: start;
    min-width: 0;
  }
  
  /* Grid overflow fix (critical for responsiveness) */
  .case-hero > *,
  .case-summary > *,
  .case-problem > *,
  .case-problem__item > *,
  .case-two > *,
  .case-new > *,
  .case-new__screens > *,
  .case-cta > *{
    min-width: 0;
  }
  
  /* Images never exceed container */
  .case img{
    max-width: 100%;
    height: 100%;
    display: block;
    border-radius: 24px;

  }
  


  /* ---------------- ACCESSIBILITY ---------------- */
  @media (prefers-reduced-motion: reduce){
    .caret{ animation:none; }
    .js .reveal{
        opacity: 1;
        transform: none;
        transition: none;
      }
    .sparkle,
    .caret{
      animation: none;
    }
  }
  
  /* ---------------- RESPONSIVE ---------------- */
  @media (max-width: 820px){
    .project-grid{
      grid-template-columns: 1fr;
    }
    .project-tags{
      justify-self:start;
    }
    .project-media{
      height: 260px;
    }
    .contact-block{
        grid-template-columns: 1fr;
        align-items: start;
      }
      .contact-carousel{
        width: 180px;
        margin-top: 18px;
        justify-self: start;
      }
  }
  
  /* ---------------- DESKTOP AUTO NAV ANIMATION ---------------- */
  @media (min-width: 641px){
    .glass-nav{
      width: 280px;
      justify-content: center;
      overflow: visible;
      gap: 12px;
      padding: 8px 14px;
    transition: width 400ms ease, padding 400ms ease;
    }

    .js .glass-nav{
      width: 78px;
      overflow: hidden;
      gap: 0;
      padding: 8px 20px;
    }

    .glass-nav.nav-open{
      width: 280px;
      padding: 8px 14px;
      justify-content: center;
      gap: 12px;
      overflow: visible;
    }

    .menu-btn{
      display:inline-flex;
      align-items:center;
      justify-content:center;
      border: none;
      background: none;
      color: rgba(20,20,20,0.92);
      border-radius: var(--radius);
      width: 50px;
      height: 50px;
      padding: 0;
      flex: 0 0 auto;
      pointer-events: auto;
    }

    .menu-btn img{
      width: 38px;
      height: 38px;
      object-fit: contain;
      display: block;
    }

    .nav-links{
      display:flex;
      align-items:center;
      justify-content:center;
      gap: 6px;
      max-width: 260px;
      opacity: 1;
      overflow: visible;
      white-space: nowrap;
      transform: translateX(0);
      transition: max-width 350ms ease, opacity 250ms ease;
    }

    .js .nav-links{
      max-width: 0;
      opacity: 0;
      overflow: hidden;
      transform: translateX(10px);
    }

    .nav-links.open{
      max-width: 260px;
      opacity: 1;
      transform: translateX(0);
      overflow: visible;
    }
  }

  /* ---------------- MOBILE NAV ---------------- */
  @media (max-width: 640px){
    /* Keep the pill compact — just the logo button */
    .glass-nav{
      position: relative;
      flex-direction: row;
      align-items: center;
      justify-content: center;
      width: auto;
      gap: 0;
      padding: 6px;
      overflow: visible; /* let dropdown escape the pill */
    }

    .menu-btn{
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border: none;
      background: none;
      color: rgba(20,20,20,0.92);
      border-radius: var(--radius);
      cursor: pointer;
      width: 50px;
      height: 50px;
      padding: 0;
      flex: 0 0 auto;
    }

    .menu-btn img{
      width: 38px;
      height: 38px;
      object-fit: contain;
      display: block;
    }

    /* Dropdown: separate container below the nav pill */
    .nav-links{
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 4px;
      position: static;
      margin-top: 8px;
      width: 100%;
      white-space: nowrap;
      opacity: 1;
      pointer-events: auto;
    }

    .js .nav-links{
      position: absolute;
      top: calc(100% + 10px);
      left: 50%;
      transform: translateX(-50%) translateY(-6px);
      width: auto;
      min-width: 160px;
      margin-top: 0;
      background: var(--glass-bg);
      border: 1px solid var(--glass-border);
      box-shadow: var(--shadow);
      backdrop-filter: blur(16px) saturate(130%);
      -webkit-backdrop-filter: blur(16px) saturate(130%);
      border-radius: 20px;
      padding: 8px;
      opacity: 0;
      pointer-events: none;
      transition: opacity 220ms ease, transform 220ms ease;
    }

    .nav-links.open{
      opacity: 1;
      pointer-events: auto;
      transform: translateX(-50%) translateY(0);
    }

    .nav-links .nav-link{
      padding: 10px 18px;
      font-size: 15px;
      width: 100%;
      text-align: center;
    }

    .nav-divider{
      display: none;
    }
  }
  @media (max-width: 560px){
    
  .case-problem__item{
    grid-template-columns: 1fr; /* Already there */
    gap: 18px; /* Even smaller gap */
  }
  
  .case-new{
    gap: 16px;
    padding: 0 8px; /* Add padding to prevent edge overflow */
  }
  
  .case-callout{
    max-width: 100%; /* Let it be flexible */
    padding-left: 12px;
  }
  
  /* Ensure images don't overflow */
  .case-img,
  .case-wide,
  .case-cta__preview{
    max-width: 100%;
  }
  }

  /* ===== Lightbox styles ===== */
  .lightbox-overlay{
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.75);
    z-index: 2000;
    padding: 24px;
  }

  .lightbox-overlay.open{
    display: flex;
  }

  .lightbox-content{
    max-width: 1100px;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    background: #000;
    position: relative;
  }

  .lightbox-content img{
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    background: #000;
  }

  .lightbox-close{
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,0.06);
    color: #fff;
    border: none;
    height: 38px;
    width: 38px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
  }

  /* Mobile responsive: stack videos vertically */
  @media (max-width: 768px) {
    .case-hero {
      display: flex;
      flex-direction: column;
      grid: none;
      gap: 40px;
    }

    .case-hero__thumbs {
      display: contents;
    }

    .case-hero__first-video {
      order: 1;
      width: 100%;
      margin-left: auto;
      margin-right: auto;
      max-width: 100%;
    }

    .case-hero__meta {
      order: 2;
    }

    .case-hero__second-video {
      order: 3;
      width: 100%;
      margin-left: auto;
      margin-right: auto;
      max-width: 100%;
    }

    .case-thumb[style*="display: flex"] {
      flex-direction: column !important;
      padding: 0 var(--page-pad) !important;
      margin-left: auto !important;
      margin-right: auto !important;
      width: 100% !important;
      max-width: 100% !important;
      display: flex !important;
      align-items: center !important;
    }

    .case-thumb[style*="display: flex"] > div {
      width: 100%;
    }
  }

  @keyframes lightboxIn{
    from{ transform: scale(.95); opacity: 0; }
    to{ transform: scale(1); opacity: 1; }
  }

  .image-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
  }

  .image-carousel__track {
    display: flex;
    transition: transform 320ms ease;
    will-change: transform;
  }

  .image-carousel__slide {
    min-width: 100%;
    margin: 0;
  }

  .image-carousel__slide img {
    display: block;
    width: 100%;
    height: auto;
  }

  .image-carousel__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.58);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
  }

  .image-carousel__btn:hover {
    background: rgba(0, 0, 0, 0.72);
  }

  .image-carousel__btn--prev {
    left: 10px;
  }

  .image-carousel__btn--next {
    right: 10px;
  }

  .image-carousel__dots {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
  }

  .image-carousel__dot {
    width: 8px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.56);
    cursor: pointer;
  }

  .image-carousel__dot.is-active {
    background: #fff;
  }