@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

body {
    background-color: #121212;
    overflow-x: hidden; 
    margin: 0;
}
  

#main-section {
    display: grid;
    grid-template-rows: auto 1fr auto;
    grid-template-columns: auto 1fr auto;
    min-height: 100vh;
    margin: 0.8rem;
    gap: 2rem;
    margin-left: 3rem;
    margin-right: 3rem;
    margin-top: 2rem;
    position: relative;
}

#logo {
    background-image: url("iconfinalfinal.svg");
    width: 11rem;
    height: 5rem;
    background-repeat: no-repeat;
    grid-column: 1;
    grid-row: 1;
    margin: 1rem;
}

#text-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    grid-column: span 2;
    grid-row: 2;
    margin-top: 5rem;
}

h1, h2, h3, p{
    color: #FFFBF7;
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

#title {
    font-size: 4rem;
    margin: 0;
    text-align: center;
    margin-top: -5rem;
    letter-spacing: 1rem;
}


#subheader {
    letter-spacing: 0.2rem;
    font-weight: 500;
    font-style: italic;
    font-size: 1.5rem;
    margin: 1rem;
    text-align: center;
}

#blob1 {
    background-image: url(blobtrackpad.png);
    top: -25vh;
    left: 70vw;
    width: 40vw;
    height: 70vh;
}

#blob2 {
    background-image: url(blobtrackpad2.png);
    bottom: -29vh;
    right: 81vw;
    width: 35rem;
    height: 40rem;
}

.blobs {
    width: 20rem;
    height: 20rem;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.3;  
    position: absolute;
    z-index: -1;
    filter: blur(8px);
    transition: transform 2s ease-out;
}

.menu-item {
    letter-spacing: 0.2rem;
    font-weight: 500;
    font-size: 1.2rem;
}

#menu {
    display: flex;
    gap: 4rem;
    grid-column: 2;
    grid-row: 1;
    align-items: center;
    justify-content: flex-end;
}


.menu-item:hover {
    color: grey;
    cursor: pointer;
    transition: color 0.4s ease;
}

#project-section {
    margin: 0.8rem;
    margin-left: 7rem;
    margin-right: 7rem;
    margin-top: 2rem;
    scroll-margin-top: 6rem;
}

.p-title {
    letter-spacing: 0.3rem;
    margin: 0;
    font-size: 2.8rem;
}

.p-subheader {
    letter-spacing: 0.1rem;
    font-weight: 600;
    font-size: 2.2rem;
    line-height: 2.2rem;
    margin-top: 12rem;
}

.p-text {
    letter-spacing: normal;
    font-weight: 400;
    font-size: 1.3rem;
    line-height: 2.4rem;
    margin: 0;
}

.between-p-text {
    font-weight: 400;
    line-height: 2.3;
    margin-top: 1rem;
    font-size: 1.7rem;
    margin-bottom: 3rem;
}

#arrow {
    background-image: url(ArrowDownCircleFillPurple.svg);
    width: 7rem;
    height: 7rem;
    background-repeat: no-repeat;

    transition: transform 0.4s ease;
    margin: 5rem;

    transform: scale(0.8);
}

#linkedin {
    background-image: url(linkedinIcon.svg);
    width: 5rem;
    height: 5rem;
    background-repeat: no-repeat;
}

#mail {
    background-image: url(MailIcon.svg);
    width: 7rem;
    height: 5rem;
    background-repeat: no-repeat;
}

#logo-footer {
    background-image: url(iconfinalfinal.svg);
    width: 15rem;
    height: 5rem;
    background-repeat: no-repeat;
    margin-left: 3rem; 
}

#arrow-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

#arrow:hover {
    cursor: pointer;
    transform: scale(1);
}

#logo-footer-container {
    display: flex;
}

#footer-left {
    display: flex;
    justify-content: end;
    width: 100%;
    margin-right: 3rem;
}

#mail,
#linkedin {
  transform: scale(0.4);
  transition: transform 0.4s ease
}

#footer-copyright {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 2rem;
}

#mail:hover,
#linkedin:hover {
    transform: scale(0.6);
    cursor: pointer;
}

a {
    text-decoration: none;
}

/* Initial hidden state */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }
  
  /* When visible */
  .fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

/* initial state */
.page-fade {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  }
  
  /* final visible state */
  .page-fade.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  html {
    scroll-behavior: smooth;
  }

  .haptics-word {
    display: inline-block;
    margin-left: -0.05rem;
  }
  
  .haptics-word .letter {
    display: inline-block;
    transition: transform 0.2s ease;
    margin-left: -2rem;
  }

  .haptics-word:hover .letter {
    animation: haptic-shake 0.35s ease-in-out infinite;
  }
  
  .haptics-word:hover .letter:nth-child(odd) {
    animation-duration: 0.3s;
  }
  
  .haptics-word:hover .letter:nth-child(even) {
    animation-duration: 0.4s;
  }
  
  .haptics-word:hover .letter:nth-child(3n) {
    animation-delay: 0.05s;
  }

  #project-meta {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    align-items: flex-start;
  
    margin-top: 5.5rem;
    padding: 2rem 2.4rem;
    
    max-width: 34rem;
    width: 100%;
  
    border-radius: 1rem;

  box-shadow:
    0 0 20px rgba(124, 77, 255, 0.25),
    0 0 40px rgba(79, 124, 255, 0.18);
  
    font-size: 1.2rem;
    letter-spacing: 0.12rem;
  }
  
  
  #project-meta p {
    margin: 0;
    color: #FFFBF7; /* same white as the rest */
    white-space: nowrap;
  }
  
  #project-meta span {
    font-weight: 400;
    margin-right: 0.6rem;
    color: #FFFBF7;
  }

  #project-meta p:last-child::after {
    content: "";
  }

#image3 {
    background-image: url(image3.png);
}

#image1 {
    background-image: url(image1.png);
}

.image-block-solo {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 5rem;
    height: 100%;
    align-items: center;
    text-align: center;
}

/* We target the caption inside the solo block specifically */
.image-block-solo .exploration-item {
    width: 70%; /* This MUST match the width you set for #image2 */
    text-align: left;
    margin-top: 1rem;
}

#image2 {
    width: 70%; /* Keep this width to make it 'smaller' */
    height: auto;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 1rem;
    overflow: hidden;
    background-image: url(image2.svg);
    /* Remove margin-left/right auto from here, the parent now handles centering */
}

#image1, #image3 {
    /* Remove the fixed width and height */
    width: 100%; 
    height: 45vh; /* Keep the height if you want them tall */
    
    background-position: center;
    background-size: cover;
    border-radius: 1rem;
}

#image4, #image5 {
    width: 100%; 
    height: 65vh; /* Increased height to show more of the UI */
    background-position: top center; /* Start from the top of the interface */
    background-size: contain; /* This ensures the WHOLE image fits without cropping */
    background-repeat: no-repeat;
    border-radius: 1rem;
}

.image-block {
    flex: 1; /* This forces both blocks to share the width 50/50 */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    min-width: 0; /* Prevents flex children from bursting out */
}

#image-container {
    display: flex;
    gap: 4rem;
  }
  
  /* caption styling */
  .exploration-item {
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: 0.08rem;
    color: #FFFBF7;
    
    text-align: left;      /* force left alignment */
    align-self: flex-start; /* prevents flex centering */

    margin-top: 1rem;      /* consistent spacing from image */
    margin-bottom: 2rem;
  }
  
  .interface-gallery {
    display: flex;
    flex-direction: column;
    gap: 4rem; /* Space between the four pairs */
    margin: 4rem 0;
}

.comparison-row {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two images per pair */
    gap: 2rem;
}

.tech-frame2 {
    width: 100%;
    height: 40vh;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 1rem;

}

#goal-header, #goal-text {
    text-align: center;
}

#insights {
    margin-bottom: 5rem;
}

/* Background Image Assignments */
#interface1-visuals { background-image: url('interface1Visual.png'); }
#interface1-nonvisuals { background-image: url('interface1NoVisuals.png'); }

#interface2-visuals { background-image: url('interface2Visuals.png'); }
#interface2-nonvisuals { background-image: url('interface2noVisuals.png'); }

#interface3-visuals { background-image: url('interface3visuals.png'); }
#interface3-nonvisuals { background-image: url('interface3novisuals.png'); }

#interface4-visuals { background-image: url('interface4visuals.png'); }
#interface4-nonvisuals { background-image: url('interface4novisuals.png'); }


#image10 { background-image: url('image10.png'); }
#image11 { background-image: url('image11.png'); }
#image12 { background-image: url('image12.png'); }


.tech-card-container {
    display: flex;
    gap: 3rem; /* Slightly wider gap for better breathing room */
    margin: 10rem 0; /* More vertical space to match your section margins */
    justify-content: center;
}

.tech-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* More space between title and text */
    padding: 3rem; /* Increased padding to match the 'projects' card feel */
    border-radius: 1rem;
    background: transparent; 

    /* Maintaining your signature glow */
    box-shadow: 
        0 0 25px rgba(124, 77, 255, 0.25), 
        0 0 50px rgba(79, 124, 255, 0.18);
    
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#insight-card {
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
}


.card-title-purple {
    color: rgb(197, 146, 255);
    font-size: 1.6rem; /* Increased to stand out next to 1.5rem body text */
    letter-spacing: 0.15rem;
    font-weight: 700;
    margin: 0;
    font-family: "Inter", sans-serif;
    text-transform: uppercase;
}

.card-text {
    font-size: 1.5rem; /* Matches your .between-p-text size */
    line-height: 2.3;
    margin: 0;
    color: #FFFBF7;
    font-weight: 400;
    margin-top: 1.5rem;
}

.card-text.italic {
    font-style: italic;
    opacity: 0.95;
}

.taxonomy-container {
    margin: 10rem 0;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* 1. Fix the Grid Spacing */
.taxonomy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6rem; /* Increased gap so waves don't overlap neighboring text */
    border-top: 1px solid rgba(255, 251, 247, 0.1);
    padding-top: 5rem;
    row-gap: 2rem;
}

/* 2. Fix the Item Container */
.taxonomy-item {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    position: relative; /* This is the 'anchor' for the background wave */
    padding: 2rem 0;
    min-height: 150px; /* Ensures there is room for the image */
}

.taxonomy-content {
    position: relative; /* Context for the absolute background */
    z-index: 1;
}

.shape-wave-bg {
    position: absolute;
    top: 50%;
    left: 40px; /* Push it slightly right of the dot */
    transform: translateY(-50%);
    width: 100%; 
    height: 100%; /* Fill the container height */
    
    
    /* Make sure this filename matches your actual file (image2.svg or image2.png) */
    background-image: url('image2.svg'); 
    background-repeat: no-repeat;
    opacity: 0.18; /* Subtle watermark look */
    z-index: -1; /* MANDATORY: puts it behind the text */
}

/* 4. Sprite Positioning - Adjust these % to 'crop' the right wave from your image2 */
.square-wave  { background-position: 0% 0%; }    
.circle-wave  { background-position: 100% 0%; }  
.blob-wave    { background-position: 0% 100%; }  
.pattern-wave { background-position: 100% 100%; }

.shape-name {
    font-size: 1.3rem; /* Scaled up slightly */
    letter-spacing: 0.2rem;
    font-weight: 700;
    margin: 0 0 0.2rem 0;
    text-transform: uppercase;
    color: #818181;
}

.shape-desc {
    font-size: 1.5rem; /* Restoring the size you liked */
    line-height: 1.6;
    color: #FFFBF7;
    position: relative;
    z-index: 2; /* Ensures text is definitely on top */
}

.highlight {
    font-style: italic;
    font-weight: 500;
    cursor: none;
}

/* Quote styling */
.quote-text {
    font-style: italic;
    font-size: 1.8rem;
    color: rgb(197, 146, 255);
    border-left: 3px solid rgba(124, 77, 255, 0.5);
    padding-left: 2rem;
    margin: 2rem 0;
}

#square-wave {
    top: -4rem;
    left: 4rem;
    width: 20rem;
    height: 15rem;
    transform: scale(0.8);
}

#circle-wave {
    top: 4rem;
    left: 3rem;
    width: 25rem;
    height: 20rem;
}

#blob-wave {
    top: 2rem;
    left: 2rem;
    width: 26rem;
    height: 6rem;
}

#pattern-wave {
    top: 3.5rem;
    left: 6rem;
    width: 23rem;
    height: 5rem;
}

#custom-cursor {
    position: fixed;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    opacity: 0;

    transition: 
        width 0.3s ease,
        height 0.3s ease,
        background-color 0.3s ease;
}

.highlight-square  { color: #db6f93; }
.highlight-circle  { color: #008001; }
.highlight-blob    { color: #21b2a9; }
.highlight-pattern { color: #778699; }

/* Specific Haptic Styles */
#custom-cursor.is-square {
    background-color: #db6f93;
    animation: shake-square 0.1s infinite;
}

#custom-cursor.is-circle {
    background-color: #008001;
    animation: wave-circle 0.9s infinite ease-in-out;
}

#custom-cursor.is-blob {
    background-color: #21b2a9;
    animation: glitch-blob 0.5s infinite;
}

#custom-cursor.is-pattern {
    background-color: #778699;
    animation: bump-pattern 0.5s infinite ease-in-out;
}


.interface-stepper {
    max-width: 100%; /* make it full width of portfolio section */
    width: 100%;
    margin: 4rem auto;
}

.stepper-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2); /* subtle grey line */
    padding-bottom: 2rem; /* space between text and line */
}

.step {
    color: #666; /* default text */
    font-family: "Inter", sans-serif;
    font-weight: 600;
    font-size: 1.4rem;
    letter-spacing: 0.1rem;
    cursor: pointer;
    padding: 0.8rem 1.5rem;
    border-radius: 0.5rem;
    background: transparent; /* same as your cards */
    box-shadow: 0 0 0 rgba(124,77,255,0); /* no glow by default */
    transition: all 0.4s ease;
}

.step:hover {  color: #FFFBF7; /* text turns white */ }
.step.active { color:  #FFFBF7; /* signature purple */ }

.interface-info { margin-bottom: 2rem; min-height: 120px; }
.tech-frame-interactive {
    width: 100%;
    height: 45vh; /* give a fixed height to match other images */
    min-height: 300px; /* ensures minimum size on small screens */
    background-size: cover;
    background-position: center;
    border-radius: 1rem;
}

.comparison-container {
    display: flex; /* switch from grid to flex for equal-height columns */
    gap: 2rem;
    width: 100%;
}

.gallery-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.interface-display {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }
  
  .interface-display.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  #haptic-body {
    background-image: url('round2haptics.svg');
    width: auto;
    height: 10rem;           /* Adjust to match other waves */
    top: 0;
    left: 0;
    transform: none;
    background-repeat: no-repeat;
    background-size: contain; /* Fit entire SVG without cropping */
    position: absolute;       /* Match other .shape-wave-bg positioning */
    z-index: -1;              /* Keep it behind text */
    opacity: 0.18;            /* Match the subtle background style */
}
/* Shared Haptic Language Wave Positioning */

/* 1. Updated Base Style */
#haptic-headers, #haptic-body, #haptic-navigation, #haptic-boundary {
    position: absolute;
    background-image: url('round2haptics.svg');
    background-repeat: no-repeat;
    
    /* CHANGE THIS: 200% means the image is twice as big as the container, 
       effectively "zooming in" on one quarter of a 2x2 grid */
    background-size: 200% 200%; 
    
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
}

/* 2. Precise Quadrant Positioning */
#haptic-headers {
    top: 3rem;
    left: 9rem;
    width: 30rem;
    height: 15rem;
    background-position: 0% 0%;
}

#haptic-body {
    top: -1.5rem;
    left: 0rem;
    width: 36rem;
    height: 16rem;
    background-position: 100% 0%;
}

#haptic-navigation {
    top: 5rem;
    left: -5rem;
    width: 33rem;
    height: 14rem;
    background-position: 0% 100%;
}

#haptic-boundary {
    top: 1rem;
    left: 7rem;
    width: 24rem;
    height: 12rem;
    background-position: 100% 100%;
}



@keyframes shake-square {
    0%, 100% { transform: translate(-50%, -50%) translateY(0); }
    50% { transform: translate(-50%, -50%) translateY(-6px); }
}

@keyframes wave-circle {
    0%, 100% { 
        transform: translate(-50%, -50%) translateX(-15px) translateY(0); 
    }
    25%, 75% {
        /* The "Bump": A slight lift in the middle of the slide */
        transform: translate(-50%, -50%) translateX(0) translateY(-6px);
    }
    50% { 
        transform: translate(-50%, -50%) translateX(15px) translateY(0); 
    }
}

@keyframes glitch-blob {
    0%   { transform: translate(-50%, -50%) translateY(0); }
    30%  { transform: translate(-50%, -50%) translateY(-4px); }
    60%  { transform: translate(-50%, -50%) translateY(-12px); }
    100% { transform: translate(-50%, -50%) translateY(0); }
}

@keyframes bump-pattern {
    0%, 100% { 
        transform: translate(-50%, -50%) translateY(0); 
    }
    50% { 
        /* One deep, smooth bump feels more like a "pattern" than a fast jitter */
        transform: translate(-50%, -50%) translateY(-10px); 
    }
}

  @keyframes haptic-shake {
    0%   { transform: translate(0, 0); }
    20%  { transform: translate(-1px, 1px); }
    40%  { transform: translate(1px, -1px); }
    60%  { transform: translate(-1px, -1px); }
    80%  { transform: translate(1px, 1px); }
    100% { transform: translate(0, 0); }
  }
  
  #custom-cursor.is-header {
    background-color: #915cce;
    animation: haptic-header-weight 0.6s infinite ease-in-out;
}

#custom-cursor.is-body {
    background-color: #c44c7e;
    animation: haptic-body-rough 0.15s infinite linear;
}

#custom-cursor.is-navigation {
    background-color: #ce5f46;
    animation: haptic-anticipation-build 2s infinite linear;
}

#custom-cursor.is-boundary {
    background-color: #d3bd2e;
    animation: haptic-boundary-notch 1s infinite ease-out;
}

/* SECOND TAXONOMY COLORS */

.highlight-header      { color: #915cce }
.highlight-body        { color: #c44c7e; }
.highlight-navigation  { color: #ce5f46; }
.highlight-boundary    { color: #d3bd2e; }

@keyframes haptic-header-weight {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
}

/* 2. BODY: High-frequency, tight granular jitter */
@keyframes haptic-body-rough {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes haptic-anticipation-build {

    /* very slow start */
    0%   { transform: translateY(0); }
    12%  { transform: translateY(-3px); }
    24%  { transform: translateY(0); }

    /* slightly faster */
    34%  { transform: translateY(-5px); }
    44%  { transform: translateY(0); }

    /* medium speed */
    54%  { transform: translateY(-7px); }
    60%  { transform: translateY(0); }

    /* fast */
    68%  { transform: translateY(-9px); }
    73%  { transform: translateY(0); }

    /* very fast spikes */
    80%  { transform: translateY(-11px); }
    84%  { transform: translateY(0); }

    88%  { transform: translateY(-13px); }
    92%  { transform: translateY(0); }

    96%  { transform: translateY(-15px); }
    100% { transform: translateY(0); }
}

@keyframes haptic-boundary-notch { 
    0% { transform: translateY(0); } 
    30% { transform: translateY(-8px); } 
    45% { transform: translateY(4px); } /* notch bump */ 
    60% { transform: translateY(-8px); } 
    100% { transform: translateY(0); } }

    #image-prototype {
        background-image: url('HapticFeedbackP1.jpeg');
    }
    
    #image-prototype2 {
        background-image: url('image9.png');
    }

    #image-prototype, #image-prototype2 {
        width: 100%;
        height: 45vh;
        background-position: center;
        background-size: cover;
        border-radius: 1rem;
    }

#insight-card2 {
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    max-width: 45rem;
}

.taxonomy-heading {
    margin: 0;
    margin-top: 5rem;
}

.last-quote {
    margin-top: 15rem;
    margin-bottom: 7rem;
}

/* Keep arrow perfectly centered */
#arrow-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Next project link (right side) */
.next-project-inline {
    position: absolute;
    right: 2rem; /* aligns with your layout margins */
    top: 50%;
    transform: translateY(-50%);

    font-family: "Inter", sans-serif;
    font-size: 1.2rem;
    letter-spacing: 0.12rem;
    color: #FFFBF7;
    text-decoration: none;
    opacity: 0.8;

    transition: all 0.3s ease;
}

.next-project-inline:hover {
    opacity: 1;
    transform: translateY(-50%) translateX(4px);
}

@media (max-width: 768px) {

    /* MAIN GRID — identical behavior */
    #main-section {
        margin: 1.5rem;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto 1fr;
        gap: 0;
    }

    #mobile-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: stretch;
        height: auto;
        overflow: hidden;
    }

    /* LOGO */
    #logo {
        grid-column: 1;
        grid-row: 1;
        margin: 0;
        width: 8rem;
        height: 4rem;
        background-size: contain;
    }

    #logo-link {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* MENU */
    #menu {
        grid-column: 1;
        grid-row: 2;
        justify-content: center;
        gap: 1.8rem;
        flex-wrap: nowrap;
    }

    .menu-item {
        font-size: 0.8rem;
        white-space: nowrap;
        letter-spacing: 0.1rem;
    }

    /* HERO (EXACT SAME STRUCTURE) */
    #text-container {
        grid-column: 1;
        grid-row: 3;
        align-items: center;
        text-align: center;
        justify-content: flex-start;
        margin-top: 6rem;
    }

    #title {
        font-size: 2.3rem;
        margin-top: 0;
        line-height: 1.2;
        letter-spacing: 0.4rem;
        word-break: keep-all;
    }

    .haptics-word{
        letter-spacing: 0.91rem;
        margin-left: 2.3rem;
    }

    #subheader {
        font-size: 1rem;
        line-height: 1.6;
        max-width: 90%;
        letter-spacing: 0.1rem;
    }

    /* PROJECT META (fits under hero cleanly) */
    #project-meta {
        margin-top: 3rem;
        padding: 1.5rem;
        font-size: 1rem;
        width: 72%;
        align-items: center;
        text-align: center;
    }

    #project-meta p {
        white-space: normal;
    }

    /* BLOBS — same behavior as homepage */
    #blob1 {
        width: 80vw;
        height: 60vh;
        top: -12vh;
        left: 50vw;
        background-size: contain;
    }

    #blob2 {
        width: 82vw;
        height: 61vh;
        bottom: -30vh;
        right: 42vw;
        background-size: contain;
    }

    /* MAIN CONTENT */
    #project-section {
        margin: 2rem 1.5rem;
        max-width: 315px;
        margin: 0 auto;
        padding: 0 2rem;
    }

    /* TEXT SCALING */
    .p-subheader {
        font-size: 1.6rem;
        margin-top: 6rem;
    }

    .p-text {
        font-size: 1rem;
        line-height: 1.7;
    }

    .between-p-text {
        font-size: 1.1rem;
        line-height: 2;
        margin: 1rem 0;
        margin-bottom: 2rem;
    }

    /* IMAGE CONTAINERS — STACK */
    #image-container {
        flex-direction: column;
        gap: 0;
    }

    .exploration-item {
        font-size: 1.1rem;
        margin-top: 0rem;
        margin-bottom: 2rem;
    }

    .image-block {
        width: 100%;
    }

    #image1, #image3,
    #image-prototype, #image-prototype2 {
        height: 220px;
    }

    #image2 {
        width: 100%;
    }

    /* TAXONOMY → SINGLE COLUMN */
    .taxonomy-grid {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 0;
    }

    .taxonomy-container.fade-in,
  .taxonomy-grid.fade-in,
  .taxonomy-item.fade-in {
    opacity: 1;
  }

  .shape-name {
    font-size: 1rem;
  }

  .shape-desc {
    font-size: 1.1rem;
  }
  
  #square-wave {
    transform: scale(0.7);
  }

  #blob-wave {
    top: -1rem;
    left: 2rem;
    width: 26rem;
    height: 6rem;
    transform: scale(0.9);
  }

  .quote-text {
    font-size: 1.2rem;
  }

    /* TECH CARDS → STACK */
    .tech-card-container {
        flex-direction: column;
        gap: 2rem;
        margin: 4rem 0;
    }

    .tech-card {
        padding: 2rem;
    }

    /* INTERFACE COMPARISON */
    .comparison-container {
        flex-direction: column;
        margin-top: 2rem;
    }

    .tech-frame-interactive {
        height: 250px;
        margin-bottom: -3rem;
        background-size: contain;
        background-repeat: no-repeat;
        margin-top: -4rem;
    }

    .stepper-nav {
        display: flex;
        justify-content: space-between;
        gap: 0.5rem;              /* 🔥 tighter spacing */
        padding-bottom: 0.5rem;
    }
  
    .step {
        flex: 1;                  /* 🔥 equal width like menu */
        text-align: center;
  
        font-size: 0.75rem;       /* 🔥 smaller like menu */
        padding: 0.4rem 0.2rem;
  
        white-space: nowrap;      /* keep single line */
        letter-spacing: 0.05rem;
    }

    .interface-info {
        margin-top: -2rem;
        margin-bottom: -1rem;
    }
  

    #haptic-headers {
        left: 4rem;
        top: -5rem;
        transform: scale(0.8);
    }

    #haptic-body {
        top: -3.5rem;
    left: -5rem;
    width: 36rem;
    height: 16rem;
    background-position: 100% 0%;
    transform: scale(0.8);
    }

    #haptic-navigation {
        top: -5rem;
    left: -5rem;
    width: 33rem;
    height: 14rem;
    background-position: 0% 100%;
    transform: scale(0.8);
    }

    #haptic-boundary {
        top: -4rem;
    left: 2rem;
    width: 24rem;
    height: 12rem;
    background-position: 100% 100%;
    transform: scale(0.8);
    }

    /* GALLERY */
    .comparison-row {
        grid-template-columns: 1fr;
    }

    .tech-frame2 {
        height: 250px;
        margin-bottom: 0.5rem;
    }

    /* FOOTER */
    #logo-footer-container {
        align-items: center;
        margin-bottom: 1rem;
        margin-top: 3rem;
    }

    #footer-left {
        margin-right: 0;
    }

    #logo-footer {
        margin-left: 1rem;
        width: 8rem;
        height: 4rem;
        background-size: contain;
    }

    .last-quote {
        margin-top: 8rem;
        margin-bottom: 5rem;
    }

    #arrow-container {
        flex-direction: column;
    }

    #arrow {
        width: 5rem;
        height: 5rem;
        margin: 1rem;
        background-size: contain;
    }

    #footer-copyright {
        font-size: 0.9rem;
    }

    /* NEXT PROJECT LINK */
    .next-project-inline {
        position: static;
        transform: none;
        margin-top: 1rem;
        text-align: center;
    }

    .tech-card-container {
        flex-direction: column;
        gap: 4rem;
        margin: 3rem 0; /* reduce vertical spacing */
        align-items: center; /* keeps cards centered */
    }

    .tech-card {
        width: 100%;
        max-width: 320px;   /* 🔥 KEY: prevents giant stretching */
        padding: 1.5rem;    /* smaller padding */
        gap: 0.8rem;
    }

    .card-title-purple {
        font-size: 1.1rem;
        letter-spacing: 0.1rem;
    }

    .card-text {
        font-size: 1rem;
        line-height: 2;
        margin-top: 0.5rem;
    }
}