/* ==========================================================================
   CSS VARIABLES
   ========================================================================== */

   :root {
    /* Colors */
    --color-bg-primary: seashell;
    --color-bg-dark: #222240;
    --color-text-light: seashell;
    --color-text-dark: #222240;
    --color-text-muted: #aab;
    --color-accent-blue: #6495ED;
    --color-accent-pink: #FF69B4;
    --color-accent-yellow: #FFD700;
    --color-accent-green: #3CB371;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Transitions */
    --transition-fast: 0.25s ease;
    --transition-medium: 0.5s ease;
    
    /* Shadows */
    --shadow-card: 0 18px 32px rgba(0, 0, 0, 0.22);
    --shadow-card-inset: inset 0 1px 0 rgba(255, 255, 255, 0.4);
    --shadow-polaroid: inset 0 2px 0 rgba(255, 255, 255, 0.35), 0 18px 30px rgba(0, 0, 0, 0.22);
    
    /* Layout */
    --nav-height: 60px;
  }
  
  @font-face {
    font-family: 'Ocean Trace Custom';
    src: url('fonts/ocean-trace.woff2') format('woff2'),
         url('fonts/ocean-trace.woff') format('woff'),
         url('fonts/ocean-trace.ttf') format('truetype');
  }
  
  
  /* ==========================================================================
     RESET & BASE STYLES
     ========================================================================== */
  
  *,
  *::before,
  *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  img, video {
    max-width: 100%;
    display: block;
  }
  
  html {
    background-color: var(--color-bg-primary);
    font-family: "M Plus Rounded 1c", sans-serif;
    scroll-behavior: smooth;
    overflow-x: hidden;
  }
  
  body {
    color: var(--color-bg-dark);
    line-height: 1.6;
    background-color: var(--color-bg-primary);
    padding: 40px 20px;
    opacity: 0;
    animation: page-fade-in 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    overflow-x: hidden;
  }
  
  
  /* ==========================================================================
     TYPOGRAPHY
     ========================================================================== */
  
  h1 {
    font-size: clamp(1.9rem, 5vw, 2.5rem);
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
  }
  
  h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    margin-bottom: var(--spacing-sm);
    margin-top: var(--spacing-xl);
    color: var(--color-bg-dark);
  }
  
  h2:first-of-type {
    margin-top: 0;
  }
  
  h3 {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 0.4rem;
  }
  
  p {
    font-size: 1.05rem;
    margin-bottom: var(--spacing-sm);
  }
  
  
  /* ==========================================================================
     LAYOUT
     ========================================================================== */
  
  section {
    padding: var(--spacing-lg) var(--spacing-md);
    max-width: 1080px;
    width: 100%;
    margin-inline: auto;
  }
  
  section + section {
    margin-block: var(--spacing-sm);
  }
  
  section.work {
    padding-inline: var(--spacing-md);
    padding-block: 0;
  }
  
  section > p {
    font-size: 1.05rem;
    max-width: 700px;
    margin-bottom: var(--spacing-md);
    color: var(--color-bg-dark);
  }
  
  .home-header,
  .work,
  #about,
  #contact {
    margin-top: calc(var(--nav-height) + 1.5rem);
  }
  
  section:has(.proj-head) {
    margin-top: calc(var(--nav-height) - 24px);
    padding-top: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
  }

  header:has(.proj-head) {
    padding: var(--spacing-md) 0 0;
    text-align: left;
  }
  
  
  /* ==========================================================================
     NAVIGATION
     ========================================================================== */
  
  nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--color-bg-dark);
    color: var(--color-text-light);
    opacity: 0;
    animation: smooth-fade 1s cubic-bezier(0.4, 0, 0.2, 1) 0.1s forwards;
    will-change: opacity;
  }
  
  .logo {
    font-size: 16pt;
    font-weight: 600;
    opacity: 0;
  }
  
  nav ul {
    display: flex;
    gap: var(--spacing-md);
    list-style: none;
  }
  
  nav a {
    position: relative;
    padding: 0.35rem 0.75rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    color: var(--color-text-light);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-fast);
  }
  
  /* Navigation Heart Effect */
  nav a .heart {
    position: absolute;
    inset: 50% auto auto 50%;
    z-index: -1;
    width: 20px;
    height: 20px;
    opacity: 0;
    transform: translate(-50%, -50%) rotate(45deg) scale(0);
    transition: transform var(--transition-fast), opacity var(--transition-fast);
  }
  
  nav a .heart::before,
  nav a .heart::after {
    content: "";
    position: absolute;
    width: inherit;
    height: inherit;
    background: inherit;
    border-radius: 50%;
  }
  
  nav a .heart::before {
    inset: -14px auto auto 0;
  }
  
  nav a .heart::after {
    inset: 0 auto auto -14px;
  }
  
  nav li:nth-child(1) a .heart { background: var(--color-accent-blue); }
  nav li:nth-child(2) a .heart { background: var(--color-accent-pink); }
  nav li:nth-child(3) a .heart { background: var(--color-accent-yellow); }
  nav li:nth-child(4) a .heart { background: var(--color-accent-green); }
  
  nav a:hover .heart {
    opacity: 0.9;
    transform: translate(-50%, -50%) rotate(45deg) scale(1);
  }
  
  nav a:active .heart {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(45deg) scale(0);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55), opacity 0.3s ease;
  }
  
  /* Hamburger Menu */
  .hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
  }
  
  .hamburger div {
    width: 25px;
    height: 3px;
    background-color: var(--color-text-light);
    transition: var(--transition-fast);
  }

  .hamburger.open div:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.open div:nth-child(2) {
    opacity: 0;
  }

  .hamburger.open div:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  
  /* ==========================================================================
     HEADER
     ========================================================================== */
  
  header {
    padding: var(--spacing-xl) var(--spacing-md) var(--spacing-lg);
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    animation: smooth-slide-in 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
    will-change: opacity, transform;
  }
  
  header p {
    margin-top: 0.75rem;
    font-size: 1.1rem;
    color: var(--color-text-muted);
  }

  section.title_marq {
    padding-block: 0;
  }

  .title_marq {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    text-align: center;
    width: 100%;
  }
  
  
  /* ==========================================================================
     SKILLS MARQUEE
     ========================================================================== */
  
  .skills-marquee {
    width: 100%;
    padding-block: 0.75rem;
    margin-top: 1.5rem;
    overflow: hidden;
    opacity: 0;
    animation: smooth-fade 1s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
    will-change: opacity;
  }
  
  .skills-track {
    display: flex;
    gap: 3rem;
    width: max-content;
    animation: scroll-marquee 22s linear infinite;
  }
  
  .skills-track span {
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--color-bg-dark);
    opacity: 0.85;
  }
  
  
  
  /* ==========================================================================
     PORTFOLIO GRID
     ========================================================================== */
  
  .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-sm);
  }
  
  .grid-item {
    position: relative;
    aspect-ratio: 13 / 18;
    overflow: hidden;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: transform var(--transition-fast);
  }
  
  .grid-item:hover {
    transform: translateY(-4px) scale(1.02);
  }
  
  /* Grid Item Heart Effects */
  .grid-item .heart-hover {
    position: absolute;
    inset: 50% auto auto 50%;
    z-index: 1;
    width: 60px;
    height: 60px;
    opacity: 0;
    transform: translate(-50%, -50%) rotate(45deg) scale(0);
    transition: transform var(--transition-fast), opacity var(--transition-fast);
    pointer-events: none;
  }
  
  .grid-item .heart-hover::before,
  .grid-item .heart-hover::after {
    content: "";
    position: absolute;
    width: inherit;
    height: inherit;
    background: inherit;
    border-radius: 50%;
  }
  
  .grid-item .heart-hover::before {
    inset: -30px auto auto 0;
  }
  
  .grid-item .heart-hover::after {
    inset: 0 auto auto -30px;
  }
  
  /* Small Hearts Around Main Heart */
  .grid-item .heart-small {
    position: absolute;
    inset: 50% auto auto 50%;
    z-index: 1;
    width: 20px;
    height: 20px;
    opacity: 0;
    transform: translate(-50%, -50%) rotate(45deg) scale(0);
    transition: transform 0.4s ease, opacity 0.4s ease;
    pointer-events: none;
  }
  
  .grid-item .heart-small::before,
  .grid-item .heart-small::after {
    content: "";
    position: absolute;
    width: inherit;
    height: inherit;
    background: inherit;
    border-radius: 50%;
  }
  
  .grid-item .heart-small::before {
    inset: -10px auto auto 0;
  }
  
  .grid-item .heart-small::after {
    inset: 0 auto auto -10px;
  }
  
  /* Heart Colors by Grid Item */
  .grid-item:nth-child(1) .heart-hover,
  .grid-item:nth-child(1) .heart-small { background: var(--color-accent-green); }
  .grid-item:nth-child(2) .heart-hover,
  .grid-item:nth-child(2) .heart-small { background: var(--color-accent-yellow); }
  .grid-item:nth-child(3) .heart-hover,
  .grid-item:nth-child(3) .heart-small { background: var(--color-accent-blue); }
  .grid-item:nth-child(4) .heart-hover,
  .grid-item:nth-child(4) .heart-small { background: var(--color-accent-pink); }
  
  /* Heart Hover States */
  .grid-item:hover .heart-hover {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(45deg) scale(1);
  }
  
  .grid-item:hover .heart-small:nth-child(2) {
    opacity: 1;
    transform: translate(-50%, -75%) rotate(0deg) scale(1) translate(-60px, -40px);
  }
  
  .grid-item:hover .heart-small:nth-child(3) {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg) scale(1) translate(60px, -40px);
  }
  
  .grid-item:hover .heart-small:nth-child(4) {
    opacity: 1;
    transform: translate(-100%, -50%) rotate(0deg) scale(1) translate(-60px, 40px);
  }
  
  .grid-item:hover .heart-small:nth-child(5) {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg) scale(1) translate(60px, 40px);
  }
  
  .grid-item:active .heart-hover,
  .grid-item:active .heart-small {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(45deg) scale(0);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55), opacity 0.3s ease;
  }
  
  /* Grid Backgrounds */
  .g-one {
    background-image: url(./assets/grace_imagine_final.png);
    background-position: bottom;
  }
  
  .g-two {
    background-image: url(./assets/women.png);
  }
  
  .g-three {
    background-image: url(./assets/news_thumb.png);
    background-size: 105%;
    background-position: top;
  }
  
  .g-four {
    background-image: url("./assets/report_thumb.png");
  }
  
  /* Overlay Cards */
  .overlay {
    width: 100%;
    padding: var(--spacing-md) 1.5rem;
    background: var(--color-bg-dark);
    color: var(--color-text-light);
  }
  
  .overlay p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0;
    opacity: 0.85;
  }
  
  .grid-item .overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 0.75rem var(--spacing-sm);
  }
  
  .grid-item .overlay h3 {
    font-size: 1rem;
  }
  
  .grid-item .overlay p {
    font-size: 0.85rem;
  }
  
  
  /* ==========================================================================
     ABOUT SECTION
     ========================================================================== */
  
  .about-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    max-width: 1200px;
    padding: 2.5rem;
    margin: var(--spacing-xl) auto;
    background: var(--color-bg-dark);
    color: var(--color-text-light);
    border-radius: 6px;
    opacity: 0;
    transform: translateY(10px);
    animation: smooth-slide-in 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
    will-change: opacity, transform;
  }
  
  .about-image {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .about-image img {
    width: 80%;
    height: auto;
    padding: 0.9rem 0.9rem 2.2rem;
    background: var(--color-bg-primary);
    transform: rotate(-2deg);
    transition: transform var(--transition-fast);
  }
  
  .about-image img:hover {
    transform: rotate(0deg);
  }
  
  .about-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  .about-content h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 0.25rem;
  }
  
  .about-content p {
    font-size: 0.9rem;
    max-width: 48ch;
    margin-bottom: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
  }
  
  /* Social Buttons */
  .about-socials {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-top: 1.5rem;
  }
  
  .social-btn {
    position: relative;
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0;
    animation: smooth-fade 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    will-change: opacity;
  }
  
  .social-btn:nth-child(1) { animation-delay: 0.6s; }
  .social-btn:nth-child(2) { animation-delay: 0.65s; }
  .social-btn:nth-child(3) { animation-delay: 0.7s; }
  .social-btn:nth-child(4) { animation-delay: 0.75s; }
  
  .social-btn .heart {
    position: absolute;
    width: 40px;
    height: 40px;
    transform: rotate(45deg);
    transition: transform var(--transition-fast), filter var(--transition-fast);
  }
  
  .social-btn .heart::before,
  .social-btn .heart::after {
    content: "";
    position: absolute;
    width: inherit;
    height: inherit;
    background: inherit;
    border-radius: 50%;
  }
  
  .social-btn .heart::before {
    inset: -20px auto auto 0;
  }
  
  .social-btn .heart::after {
    inset: 0 auto auto -20px;
  }
  
  .social-btn:nth-child(1) .heart { background: var(--color-accent-blue); }
  .social-btn:nth-child(2) .heart { background: var(--color-accent-green); }
  .social-btn:nth-child(3) .heart { background: var(--color-accent-pink); }
  .social-btn:nth-child(4) .heart { background: var(--color-accent-yellow); }
  
  .social-btn img {
    position: relative;
    z-index: 1;
    width: 2rem;
    height: 2rem;
    margin-top: -0.7rem;
    pointer-events: none;
    transition: transform var(--transition-fast);
  }
  
  .social-btn:hover .heart {
    transform: rotate(45deg) scale(1.3);
  }
  
  .social-btn:active .heart {
    transform: rotate(45deg) scale(1.15);
  }
  
  .social-btn:hover img {
    transform: scale(1.3);
  }
  
  .social-btn:active img {
    transform: scale(1.15);
  }
  
  
  /* ==========================================================================
     PROJECT PAGES
     ========================================================================== */
  
  .top-bar {
    padding: 0;
  }

  .back-link {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: color var(--transition-fast);
    margin-bottom: 1rem;
  }

  .back-link:hover {
    color: rgba(255, 255, 255, 0.8);
  }

  /* -- Project header: image on top, info panel below -- */

  .project-header {
    position: relative;
    margin-top: 0;
    border-radius: 12px;
  }

  /* Info panel - editorial magazine style */
  .project-header .proj-head {
    position: static;
    background: var(--color-bg-dark);
    color: var(--color-text-light);
    padding: 1.5rem 2.25rem 1.4rem;
    border-radius: 12px 12px 0 0;
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .header-image {
    width: 100%;
    height: 420px;
    background-color: #d0d0d8;
    background-size: cover;
    background-position: center;
    border-radius: 0 0 12px 12px;
  }

  /* Big editorial title */
  .project-header .proj-head h1 {
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    font-size: clamp(1.75rem, 3.8vw, 2.75rem);
    font-weight: bold;
    line-height: 1.1;
    letter-spacing: -0.3px;
    margin-bottom: 0.9rem;
    color: var(--color-text-light);
  }

  /* Thin rule before byline */
  .project-header .proj-head .project-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0;
    margin-bottom: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 0.9rem;
  }

  /* Each span is a labelled byline cell */
  .project-header .proj-head .project-meta span {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0 1.5rem 0 0;
    margin-right: 1.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
    white-space: nowrap;
    line-height: 1.4;
    letter-spacing: 0.01em;
  }

  .project-header .proj-head .project-meta span:last-child {
    border-right: none;
    margin-right: 0;
    padding-right: 0;
  }

  /* Tools - sits after the meta row */
  .project-header .proj-head .tools-meta {
    margin-top: 0.6rem;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.04em;
  }

  .project-header .proj-head .tools-meta strong {
    color: rgba(255, 255, 255, 0.55);
    font-weight: 500;
  }

  /* -- Standalone .proj-head (no image variant) -- */
  .proj-head {
    margin-top: var(--spacing-md);
    background: var(--color-bg-dark);
    color: var(--color-text-light);
    padding: var(--spacing-md);
    border-radius: 8px 8px 0 0;
    text-align: left;
  }

  .proj-head h1 {
    font-size: clamp(1.9rem, 5vw, 2.5rem);
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    font-weight: bold;
    letter-spacing: -0.3px;
    line-height: 1.1;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-light);
  }

  /* These only apply outside .project-header context */
  .project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    font-size: 0.8rem;
    margin-bottom: var(--spacing-sm);
    color: rgba(255, 255, 255, 0.55);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 0.9rem;
    line-height: 1.4;
  }

  .project-meta span {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0 1.5rem 0 0;
    margin-right: 1.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
  }

  .project-meta span:last-child {
    border-right: none;
    margin-right: 0;
    padding-right: 0;
  }

  .tools-meta {
    margin-top: 0.6rem;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.04em;
    line-height: 1.5;
  }

  .tools-meta strong {
    color: rgba(255, 255, 255, 0.55);
    font-weight: 500;
  }


  /* ==========================================================================
     PROCESS GRID SYSTEM
     ========================================================================== */
  
  .process-grid {
    display: grid;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
  }
  
  .process-grid.one-col {
    grid-template-columns: 1fr;
  }
  
  .process-grid.two-col {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .process-grid.three-col {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .grid-img {
    width: 100%;
    aspect-ratio: 3 / 4;
    background-color: #d8d8dc;
    background-size: cover;
    border-radius: 4px;
  }
  
  .process-grid.one-col .grid-img {
    aspect-ratio: 16 / 9;
  }
  
  /* Video Container */
  .video-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    margin-bottom: var(--spacing-xl);
    overflow: hidden;
  }

  .video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    object-fit: fill;
    display: block;
  }

  .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.1);
  }
  
  
  /* ==========================================================================
     EXTRAS GRID
     ========================================================================== */
  
  .extras-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1080px;
    margin: 0 auto;
    margin-top: var(--spacing-sm);
  }
  
  .grid-extra {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  /* Layout modifiers — add these to .grid-extra */
  .grid-extra--wide {
    grid-column: 1 / -1;
  }

  .grid-extra--half {
    grid-column: span 1;
  }
  
  .grid-extra-content {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    cursor: pointer;
    transition: transform var(--transition-fast);
    background-size: cover;
    background-position: center;
    width: 100%;
  }
  
  /* Aspect ratios — add these to .grid-extra-content */
  .grid-extra-content--wide::before {
    content: "";
    display: block;
    padding-top: 56.25%; /* 16:9 */
  }

  .grid-extra-content--half::before {
    content: "";
    display: block;
    padding-top: 115%; /* portrait */
  }

  /* Video/media inside content fills the pseudo-element space */
  .grid-extra-content video,
  .grid-extra-content img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .grid-caption {
    color: var(--color-text-dark);
    margin: 0;
    font-weight: 500;
  }
  
  
  /* ==========================================================================
     REPORT GRID
     ========================================================================== */
  
  .report-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1080px;
    margin: 0 auto;
    margin-top: var(--spacing-sm);
  }
  
  .grid-report {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .grid-report:nth-child(1) {
    grid-column: 1 / -1;
  }
  
  .grid-report-content {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    cursor: pointer;
    transition: transform var(--transition-fast);
    width: 100%;
    background-color: #000;
  }
  
  .grid-report--wide {
    grid-column: 1 / -1;
  }

  .grid-report--wide .grid-report-content {
    aspect-ratio: 66 / 43;
    width: 100%;
    object-fit: cover;
  }

  .grid-report--half .grid-report-content {
    aspect-ratio: 33 / 43;
    width: 100%;
    object-fit: cover;
  }

  .grid-report-content video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
  }
  
  .grid-report-caption {
    color: var(--color-text-dark);
    margin: 0;
    font-weight: 500;
    font-size: 1rem;
  }
  
  
  /* ==========================================================================
     SVG ANIMATIONS
     ========================================================================== */
  
  .title,
  .about-title {
    opacity: 0;
    animation: fade-in var(--transition-medium) forwards;
  }
  
  .title {
    width: 100%;
    max-width: 600px;
    margin: 0 auto -5%;
  }
  
  .about-title {
    width: 20rem;
    margin-bottom: var(--spacing-sm);
  }
  
  .title path,
  .title line,
  .title polyline,
  .title polygon,
  .title circle,
  .title rect {
    fill: transparent;
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    animation: 
      draw-path 2.5s ease-out forwards,
      fill-path var(--transition-medium) ease-in forwards 3s;
  }
  
  .about-title path,
  .about-title line,
  .about-title polyline,
  .about-title polygon {
    fill: transparent;
    stroke-dasharray: 1500;
    stroke-dashoffset: 1500;
  }
  
  .about-title.animate path,
  .about-title.animate line,
  .about-title.animate polyline,
  .about-title.animate polygon {
    animation: 
      draw-path 2s ease-out forwards,
      fill-path var(--transition-medium) ease-in forwards 2.5s;
  }
  
  .title path:nth-child(1), .about-title.animate path:nth-child(1) { animation-delay: 0s; }
  .title path:nth-child(2), .about-title.animate path:nth-child(2) { animation-delay: 0.1s; }
  .title path:nth-child(3), .about-title.animate path:nth-child(3) { animation-delay: 0.2s; }
  .title path:nth-child(4), .about-title.animate path:nth-child(4) { animation-delay: 0.3s; }
  .title path:nth-child(5), .about-title.animate path:nth-child(5) { animation-delay: 0.4s; }
  .title path:nth-child(6), .about-title.animate path:nth-child(6) { animation-delay: 0.5s; }
  .title path:nth-child(7), .about-title.animate path:nth-child(7) { animation-delay: 0.6s; }
  .title path:nth-child(8), .about-title.animate path:nth-child(8) { animation-delay: 0.7s; }
  .title path:nth-child(9) { animation-delay: 0.8s; }
  .title path:nth-child(10) { animation-delay: 0.9s; }
  
  
  /* ==========================================================================
     FOOTER
     ========================================================================== */
  
  footer {
    padding: var(--spacing-sm);
    margin-top: var(--nav-height);
    color: var(--color-bg-dark);
    background: var(--color-bg-primary);
    text-align: center;
  }
  
  
  /* ==========================================================================
     ANIMATIONS
     ========================================================================== */
  
  @keyframes page-fade-in  { to { opacity: 1; } }
  @keyframes smooth-fade   { to { opacity: 1; } }
  @keyframes scroll-marquee { to { transform: translateX(-50%); } }
  @keyframes draw-path     { to { stroke-dashoffset: 0; } }
  @keyframes fade-in       { to { opacity: 1; } }

  @keyframes smooth-slide-in {
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes fill-path {
    from { fill: transparent; }
    to   { fill: currentColor; }
  }
  
  
  /* ==========================================================================
     PAGE LOAD ANIMATIONS
     ========================================================================== */
  
  section {
    opacity: 0;
    transform: translateY(10px);
    animation: smooth-slide-in 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    will-change: opacity, transform;
  }
  
  section:nth-of-type(1) { animation-delay: 0.25s; }
  section:nth-of-type(2) { animation-delay: 0.3s; }
  section:nth-of-type(3) { animation-delay: 0.35s; }
  section:nth-of-type(4) { animation-delay: 0.4s; }
  
  
  /* ==========================================================================
     RESPONSIVE DESIGN - TABLET
     ========================================================================== */
  
  @media (min-width: 769px) {
    .grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (min-width: 769px) and (max-width: 1024px) {
    .process-grid.three-col {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  
  /* ==========================================================================
     RESPONSIVE DESIGN - MOBILE
     ========================================================================== */
  
  @media (max-width: 768px) {
    nav { padding: var(--spacing-sm) 1rem; }

    nav ul {
      position: fixed;
      inset: var(--nav-height) 0 0 0;
      flex-direction: column;
      width: 100%;
      padding: var(--spacing-md) var(--spacing-sm);
      gap: 0.25rem;
      background: var(--color-bg-dark);
      opacity: 0;
      pointer-events: none;
      transform: translateY(-8px);
      transition: opacity 0.25s ease, transform 0.25s ease;
      overflow-y: auto;
    }
  
    nav ul.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
    nav ul li { border-bottom: 1px solid rgba(255,255,255,0.08); }
    nav ul li:last-child { border-bottom: none; }
  
    nav a {
      color: var(--color-text-light);
      display: flex;
      width: 100%;
      padding: 1rem 0.75rem;
      font-size: 1.1rem;
      min-height: 52px;
      transition: color 0.2s ease;
    }
  
    nav a:hover, nav a:active { color: #4d8ff5; }
    nav a:hover .heart { opacity: 0; transform: translate(-50%, -50%) rotate(45deg) scale(1); }
    .hamburger { display: flex; }
    .grid { grid-template-columns: repeat(2, 1fr); }

    section { padding: var(--spacing-md) var(--spacing-sm); }
    section.work { padding-inline: var(--spacing-sm); }
  
    .about-card {
      grid-template-columns: 1fr;
      gap: var(--spacing-sm);
      padding: 1.5rem;
      margin: var(--spacing-md) 0;
    }
  
    .about-image { display: none; }
    .about-content { align-items: center; text-align: center; }
    .about-content h2 { font-size: clamp(1.75rem, 6vw, 2.5rem); margin-bottom: 0.5rem; }
    .about-content p { font-size: 0.95rem; max-width: 100%; margin-bottom: 1rem; }
    .about-title { margin-inline: auto; width: 16rem; }
    .about-socials { justify-content: center; gap: var(--spacing-sm); margin-top: 1rem; }
    .social-btn { width: 55px; height: 55px; }
    .social-btn .heart { width: 36px; height: 36px; }
    .social-btn .heart::before { inset: -18px auto auto 0; }
    .social-btn .heart::after  { inset: 0 auto auto -18px; }
    .social-btn img { width: 1.75rem; height: 1.75rem; }

    /* Project header - mobile */
    .top-bar { padding: 0; }
    .back-link { font-size: 0.72rem; }

    .project-header {
      border-radius: 10px;
    }

    .header-image {
      height: 210px;
    }

    .project-header .proj-head {
      padding: 1.5rem 1.5rem 1.25rem;
    }

    .project-header .proj-head h1 {
      font-size: clamp(1.4rem, 5.5vw, 2rem);
      margin-bottom: 1rem;
    }

    .project-header .proj-head .project-meta span {
      padding-right: 1.1rem;
      margin-right: 1.1rem;
      font-size: 0.76rem;
    }

    .project-header .proj-head .tools-meta {
      white-space: normal;
    }

    .proj-head { padding: 1.5rem; }
    .proj-head h1 { font-size: clamp(1.3rem, 5.5vw, 1.8rem); }

    .process-grid.three-col,
    .process-grid.two-col { grid-template-columns: 1fr; }
  
    .report-grid { grid-template-columns: 1fr; gap: 2rem; }
    .grid-report:nth-child(1) .grid-report-content,
    .grid-report:nth-child(2) .grid-report-content,
    .grid-report:nth-child(3) .grid-report-content { width: 100%; height: auto; min-height: unset; }
  
    .extras-grid { grid-template-columns: 1fr; }
    .grid-extra--wide,
    .grid-extra--half { grid-column: 1 / -1; }
  
    .title path { animation-duration: 2s; }
    .about-title.animate path { animation-duration: 1.5s; }
    #whiteboard { height: 250px; }
  
    h1 { font-size: clamp(1.5rem, 6vw, 1.9rem); }
    h2 { font-size: clamp(1.3rem, 5vw, 1.5rem); }
    h3 { font-size: 1rem; }
    p  { font-size: 0.95rem; }
    section > p { font-size: 0.95rem; }
    header p    { font-size: 1rem; }
    .skills-marquee        { margin-top: 0.5rem; }
    .skills-track span     { font-size: 0.65rem; }
    .grid-item .overlay h3 { font-size: 0.9rem; }
    .grid-item .overlay p  { font-size: 0.8rem; }
    .grid-report-caption, .grid-caption { font-size: 0.9rem; }
    nav a { font-size: 0.95rem; }
    .about-content h2 { font-size: clamp(1.5rem, 7vw, 2rem); }
    .about-content p  { font-size: 0.85rem; }
    header { padding: 6rem var(--spacing-sm) var(--spacing-md); }
    .title_marq { display: flex; flex-direction: column; align-items: center; padding: 0; margin: 0; text-align: center; }
    .title { margin-inline: auto; }
  }
  
  
  /* ==========================================================================
     RESPONSIVE DESIGN - SMALL MOBILE
     ========================================================================== */
  
  @media (max-width: 480px) {
    body { padding: 20px 10px; }
    .grid { grid-template-columns: 1fr; }
    .about-card { margin: var(--spacing-md) 0; }
    .about-image img { width: 70%; max-width: 200px; }

    .header-image { height: 160px; }

    .project-header .proj-head h1,
    .proj-head h1 { font-size: clamp(1.2rem, 6.5vw, 1.5rem); }

    .video-container { padding-top: 60vw; min-height: 200px; }
    .report-grid { gap: 1.5rem; }
    .grid-report:nth-child(1) .grid-report-content { min-height: 15rem; }
    .grid-report:nth-child(2) .grid-report-content,
    .grid-report:nth-child(3) .grid-report-content { min-height: 35rem; }
    #whiteboard { height: 160px; }
    .knob { width: 40px; height: 40px; font-size: 12px; }
  
    h1 { font-size: clamp(1.3rem, 7vw, 1.5rem); }
    h2 { font-size: clamp(1.2rem, 6vw, 1.3rem); }
    h3 { font-size: 0.95rem; }
    p  { font-size: 0.9rem; }
    section > p { font-size: 0.9rem; }
    header p    { font-size: 0.95rem; }
    .skills-track span  { font-size: 0.8rem; }
    .about-content h2   { font-size: clamp(1.3rem, 8vw, 1.75rem); }
    .about-content p    { font-size: 0.85rem; }
    .grid-report-caption, .grid-caption { font-size: 0.85rem; }
  }
  
  
  /* ==========================================================================
     MOBILE TOUCH INTERACTIONS
     ========================================================================== */
  
  @media (hover: none) and (pointer: coarse) {
    .grid-item .overlay {
      background: linear-gradient(to top, rgba(34,34,64,0.92) 0%, rgba(34,34,64,0.3) 100%);
    }

    nav a, .grid-item { -webkit-tap-highlight-color: transparent; }
    .grid-item:hover { transform: none; }
    .grid-item:active { transform: scale(0.98); transition: transform 0.15s ease; }

    nav a:active .heart {
      opacity: 0;
      transform: translate(-50%, -50%) rotate(45deg) scale(0);
      transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55), opacity 0.4s ease;
    }

    /* Show hearts on tap via JS .tapped class */
    .grid-item.tapped .heart-hover {
      opacity: 1;
      transform: translate(-50%, -50%) rotate(45deg) scale(1);
      transition: opacity 0.4s ease, transform 0.4s ease;
    }

    .grid-item.tapped .heart-small:nth-child(2) {
      opacity: 1;
      transform: translate(-50%, -75%) rotate(0deg) scale(1) translate(-60px, -40px);
      transition: opacity 0.4s ease 0.05s, transform 0.4s ease 0.05s;
    }
    .grid-item.tapped .heart-small:nth-child(3) {
      opacity: 1;
      transform: translate(-50%, -50%) rotate(0deg) scale(1) translate(60px, -40px);
      transition: opacity 0.4s ease 0.05s, transform 0.4s ease 0.05s;
    }
    .grid-item.tapped .heart-small:nth-child(4) {
      opacity: 1;
      transform: translate(-100%, -50%) rotate(0deg) scale(1) translate(-60px, 40px);
      transition: opacity 0.4s ease 0.05s, transform 0.4s ease 0.05s;
    }
    .grid-item.tapped .heart-small:nth-child(5) {
      opacity: 1;
      transform: translate(-50%, -50%) rotate(0deg) scale(1) translate(60px, 40px);
      transition: opacity 0.4s ease 0.05s, transform 0.4s ease 0.05s;
    }
  }

  .before-after {
    align-items: center;
  }
  .before-after-arrow {
    font-size: 1.8rem;
    text-align: center;
    flex-shrink: 0;
  }
  .process-grid.two-col.before-after {
    grid-template-columns: 1fr auto 1fr;
  }
  
  
  /* ==========================================================================
     ACCESSIBILITY
     ========================================================================== */
  
  @media (prefers-reduced-motion: reduce) {
    body, nav, header, section, .grid-item, .about-card, .social-btn, .skills-marquee {
      animation: instant-fade 0.3s ease-out forwards;
      transform: none;
      will-change: auto;
    }
    @keyframes instant-fade { to { opacity: 1; } }
  }

  .skills-marquee:hover .skills-track,
    .skills-marquee:focus-within .skills-track {
      animation-play-state: paused;
    }
    @media (max-width: 600px) {
      .skills-track {
        animation-duration: 30s;
      }
    }
    
    a.grid-item {
      display: block;
      text-decoration: none;
      color: inherit;
    }