/* ==========================================================================
   Base & Variables
   ========================================================================== */
   :root {
    --color-bg: #050505;
    --color-bg-alt: #111111;
    --color-text: #f0f0f0;
    --color-text-muted: #888888;
    --color-accent: #d91e18; /* Deep red */
    --color-border: #222222;
    
    --font-primary: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-display: "Helvetica Neue", "Arial", sans-serif;
    
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;
    
    --radius-sm: 4px;
    --radius-md: 8px;
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  }
  
  *, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  html {
    scroll-behavior: smooth;
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.5;
  }
  
  body {
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  
  /* Remove scroll behavior for reduced motion */
  @media (prefers-reduced-motion: reduce) {
    html {
      scroll-behavior: auto;
    }
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }
  }
  
  ::selection {
    background: var(--color-accent);
    color: #fff;
  }
  
  :focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 4px;
  }
  
  /* ==========================================================================
     Typography
     ========================================================================== */
  h1, h2, h3, h4, .hero-tag {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
  }
  
  a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
  }
  
  /* ==========================================================================
     Buttons
     ========================================================================== */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--transition-fast);
    border-radius: var(--radius-sm);
  }
  
  .btn-primary {
    background-color: var(--color-text);
    color: var(--color-bg);
    border: 1px solid var(--color-text);
  }
  
  .btn-primary:hover {
    background-color: transparent;
    color: var(--color-text);
  }
  
  .btn-secondary {
    background-color: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
  }
  
  .btn-secondary:hover {
    border-color: var(--color-text);
  }
  
  .btn-large {
    padding: 1.2rem 3rem;
    font-size: 1rem;
  }
  
  /* ==========================================================================
     Navbar
     ========================================================================== */
  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
  }
  
  .navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1440px;
    margin: 0 auto;
  }
  
  .logo {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
  }
  
  .desktop-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
  }
  
  .nav-link {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
  }
  
  .nav-link:hover {
    color: var(--color-text);
  }
  
  .nav-cta {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-accent);
    font-weight: 600;
  }
  
  .nav-cta:hover {
    color: var(--color-text);
  }
  
  .hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    position: relative;
    z-index: 101;
  }
  
  .hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-text);
    position: absolute;
    left: 10px;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
  }
  
  .hamburger span:nth-child(1) { top: 16px; }
  .hamburger span:nth-child(2) { bottom: 16px; }
  
  /* Mobile Menu */
  .mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    z-index: 99;
    visibility: hidden;
    opacity: 0;
    transition: opacity var(--transition-fast), visibility var(--transition-fast);
  }
  
  .mobile-menu.active {
    visibility: visible;
    opacity: 1;
  }
  
  .mobile-menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
  }
  
  .mobile-menu-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
  }
  
  .close-menu {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--color-text);
    font-size: 3rem;
    line-height: 1;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }
  
  .mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
  
  .mobile-link {
    font-size: 1.5rem;
    font-family: var(--font-display);
    text-transform: uppercase;
    font-weight: 700;
  }
  
  .mobile-cta {
    font-size: 1.5rem;
    font-family: var(--font-display);
    text-transform: uppercase;
    font-weight: 700;
    color: var(--color-accent);
    margin-top: 1rem;
  }
  
  /* ==========================================================================
     Hero Section
     ========================================================================== */
  .hero {
    position: relative;
    height: 100dvh;
    min-height: 600px;
    display: flex;
    align-items: center;
    padding: 0 2rem;
    overflow: hidden;
    border-bottom: 1px solid var(--color-border);
  }
  
  .hero-container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    align-items: center;
    gap: 4rem;
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 10;
  }

  .hero-text-col {
    grid-column: span 5; /* Approx 41.6% width */
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  .hero-art-col {
    grid-column: span 7; /* Approx 58.3% width */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 75dvh;
    max-height: 700px;
    animation: fadeUpSmooth 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
  }
  
  .art-frame {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  /* Intersecting editorial grid lines behind illustration */
  .art-frame::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 85%;
    height: 85%;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    z-index: -2;
    pointer-events: none;
  }
  
  /* Glowing halo behind the artwork to separate from dark background */
  .art-frame::after {
    content: '';
    position: absolute;
    inset: -60px;
    background: radial-gradient(circle, rgba(217, 30, 24, 0.04) 0%, transparent 60%);
    z-index: -3;
    pointer-events: none;
  }
  
  .art-accent-line {
    position: absolute;
    bottom: -15px;
    left: 5%;
    width: 90%;
    height: 1px;
    background-color: var(--color-accent);
    z-index: -1;
    opacity: 0.3;
  }
  
  .hero-art-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    background-color: #ffffff; /* Keep original white background of the illustration */
    border: 1px solid var(--color-border);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    border-radius: var(--radius-sm);
    transition: transform var(--transition-slow);
  }
  
  .hero-art-image:hover {
    transform: scale(1.015);
  }
  
  .hero-tag {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--color-accent);
    margin-bottom: 2rem;
    animation: fadeUp 1s var(--transition-slow) both;
  }
  
  .hero-title {
    font-size: clamp(3rem, 10vw, 8rem);
    line-height: 0.9;
    margin-bottom: 2rem;
    letter-spacing: -2px;
    animation: fadeUp 1s var(--transition-slow) 0.1s both;
  }
  
  .hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #b3b3b3;
    max-width: 500px;
    margin-bottom: 3rem;
    animation: fadeUp 1s var(--transition-slow) 0.2s both;
  }
  
  .hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeUp 1s var(--transition-slow) 0.3s both;
  }
  
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes fadeUpSmooth {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  /* ==========================================================================
     Sections (Global)
     ========================================================================== */
  .section-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: var(--space-xl) 2rem;
  }
  
  .section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: var(--space-lg);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: var(--space-sm);
  }
  
  /* ==========================================================================
     Portfolio
     ========================================================================== */
  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
    align-items: start;
  }
  
  .gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background-color: transparent;
    cursor: zoom-in;
  }
  
  .layout-half {
    grid-column: span 6;
  }
  
  .layout-third {
    grid-column: span 4;
  }
  
  @media (max-width: 1024px) {
    .layout-half { grid-column: span 12; }
    .layout-third { grid-column: span 6; }
  }
  
  @media (max-width: 768px) {
    .gallery-grid {
      display: flex;
      flex-direction: column;
      gap: 2rem;
    }
    .gallery-item {
      width: 100%;
    }
  }
  
  /* Placeholder styles if no real image */
  .placeholder-img {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: repeating-linear-gradient(
      45deg,
      #111,
      #111 10px,
      #151515 10px,
      #151515 20px
    );
    color: var(--color-text-muted);
    font-family: var(--font-display);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
  }
  
  .real-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-slow);
  }
  
  .gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 40%);
    opacity: 0;
    transition: opacity var(--transition-fast);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
  }
  
  .gallery-item:hover .gallery-item-overlay {
    opacity: 1;
  }
  
  /* Remove zoom hover to prevent cutting borders */
  /* .gallery-item:hover .real-img { transform: scale(1.03); } */
  
  .item-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    transform: translateY(10px);
    transition: transform var(--transition-fast);
  }
  
  .item-category {
    font-size: 0.8rem;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: translateY(10px);
    transition: transform var(--transition-fast) 0.05s;
  }
  
  .gallery-item:hover .item-title,
  .gallery-item:hover .item-category {
    transform: translateY(0);
  }
  
  /* Touch devices fallback for hover */
  @media (hover: none) {
    .gallery-item-overlay {
      opacity: 1;
      background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 40%);
    }
    .item-title, .item-category {
      transform: translateY(0);
    }
  }
  
  /* ==========================================================================
     Commissions
     ========================================================================== */
  .commissions-section {
    background-color: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
  }
  
  .timeline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin: var(--space-lg) 0;
    overflow-x: auto;
    padding-bottom: 2rem;
    scrollbar-width: thin;
    scrollbar-color: var(--color-border) transparent;
  }
  
  .timeline::-webkit-scrollbar {
    height: 4px;
  }
  .timeline::-webkit-scrollbar-thumb {
    background: var(--color-border);
  }
  
  .timeline-item {
    flex: 0 0 auto;
    min-width: 120px;
  }
  
  .timeline-line {
    flex: 1 0 40px;
    height: 1px;
    background-color: var(--color-border);
    margin: 1.2rem 1rem 0 1rem;
  }
  
  .step-num {
    display: block;
    font-size: 0.85rem;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
    font-weight: 600;
  }
  
  .step-title {
    font-size: 1.1rem;
    text-transform: none;
    font-family: var(--font-primary);
    font-weight: 400;
  }
  
  .commissions-notes {
    margin-top: var(--space-lg);
    border-left: 2px solid var(--color-accent);
    padding-left: 1.5rem;
  }
  
  .note-main {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
  }
  
  .note-discrete {
    font-size: 0.85rem;
    color: var(--color-text-muted);
  }
  
  /* ==========================================================================
     About
     ========================================================================== */
  .about-text {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    line-height: 1.4;
    max-width: 900px;
    font-family: var(--font-display);
    font-weight: 300;
    color: var(--color-text);
  }
  
  /* ==========================================================================
     Contact & Footer
     ========================================================================== */
  .contact-section {
    text-align: center;
    padding: var(--space-xl) 2rem;
    background: linear-gradient(to bottom, var(--color-bg) 0%, #0a0a0a 100%);
  }
  
  .contact-title {
    border: none;
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1rem;
  }
  
  .contact-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
  }
  
  .contact-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
  }
  
  footer {
    border-top: 1px solid var(--color-border);
    padding: 2rem;
    background-color: var(--color-bg);
  }
  
  .footer-container {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .footer-logo {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
  }
  
  .footer-links {
    display: flex;
    gap: 1.5rem;
  }
  
  .footer-links a {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
  }
  
  .footer-links a:hover {
    color: var(--color-text);
  }
  
  .footer-year {
    font-size: 0.85rem;
    color: var(--color-text-muted);
  }
  
  /* ==========================================================================
     Modal
     ========================================================================== */
  .lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity var(--transition-fast), visibility var(--transition-fast);
  }
  
  .lightbox-modal.active {
    visibility: visible;
    opacity: 1;
  }
  
  .lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
  }
  
  .lightbox-content {
    position: relative;
    z-index: 1000;
    width: 90%;
    max-width: 1200px;
    height: 90dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    pointer-events: none; /* Let clicks pass to overlay where empty */
  }
  
  .lightbox-image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    pointer-events: auto;
  }
  
  .lightbox-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--radius-sm);
  }
  
  .lightbox-info {
    margin-top: 1rem;
    text-align: center;
    pointer-events: auto;
  }
  
  .lightbox-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
  }
  
  .lightbox-info p {
    color: var(--color-accent);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
  }
  
  .lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--color-border);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: var(--color-text);
    font-size: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    z-index: 1001;
    transition: background var(--transition-fast), border-color var(--transition-fast);
  }
  .lightbox-close:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-text);
  }
  
  /* ==========================================================================
     Responsive
     ========================================================================== */
  @media (max-width: 1024px) {
    .gallery-grid {
      grid-template-columns: repeat(6, 1fr);
    }
    .gallery-item:nth-child(3n + 1) { grid-column: span 6; aspect-ratio: 16/10; }
    .gallery-item:nth-child(3n + 2) { grid-column: span 3; }
    .gallery-item:nth-child(3n + 3) { grid-column: span 3; aspect-ratio: 1/1; }
  }
  
  @media (max-width: 768px) {
    .desktop-menu { display: none; }
    .hamburger { display: block; }
    
    .hero {
      min-height: auto;
      height: auto;
      padding-top: 100px;
      padding-bottom: 60px;
    }

    .hero-container {
      grid-template-columns: 1fr;
      gap: 3rem;
    }

    .hero-text-col {
      grid-column: span 1;
    }

    .hero-art-col {
      grid-column: span 1;
      height: 45dvh;
      max-height: 380px;
      margin-top: 1rem;
      animation: fadeUpSmooth 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
    }

    .art-frame::before {
      top: -10px;
      right: -10px;
      width: 90%;
      height: 90%;
    }

    .art-frame::after {
      inset: -30px;
    }

    .hero-title {
      font-size: clamp(3rem, 15vw, 5rem);
    }
    
    .timeline {
      flex-direction: column;
      gap: 1.5rem;
    }
    .timeline-line {
      display: none;
    }
    
    .gallery-grid {
      grid-template-columns: 1fr;
    }
    .gallery-item,
    .gallery-item:nth-child(3n + 1),
    .gallery-item:nth-child(3n + 2),
    .gallery-item:nth-child(3n + 3) {
      grid-column: span 1;
      aspect-ratio: 4/5;
      min-height: auto;
    }
  }
  
  @media (max-width: 430px) {
    .section-container {
      padding: var(--space-lg) 1rem;
    }
    
    .btn {
      width: 100%;
    }
    
    .footer-container {
      flex-direction: column;
      align-items: center;
      text-align: center;
    }
  }
