
    *,
    *::before,
    *::after {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    :root {
      --bg-dark: #120a18;
      --bg-main: #1e0233;
      --card-bg: #2a0a3f;
      --text-primary: #f5ede9;
      --text-secondary: #cbb6af;
      --accent: #5a0f2e;
      --accent-hover: #6e1a3a;
      --border-subtle: #895575;
      --bg: var(--bg-dark);
      --bg-soft: var(--bg-main);
      --text: var(--text-primary);
      --text-muted: var(--text-secondary);
      --purple-deep: #1e0233;
      --purple-main: #342d50;
      --plum: #895575;
      --wine: #5a0f2e;
      --wine-soft: #6e1a3a;
      --wine-deep: #4a0a24;
      --beige: #e7d3cc;
      --border: var(--border-subtle);
      --highlight: #c9a6ff;
      --deep-purple: var(--purple-deep);
      --main-purple: var(--text-primary);
      --soft-beige: var(--beige);
      --ink: var(--text);
      --mid: var(--text-muted);
      --line: var(--border-subtle);
      --surface-soft: rgba(42, 10, 63, 0.85);
      --surface-soft-strong: rgba(42, 10, 63, 0.95);
      --overlay-deep: rgba(18, 10, 24, 0.88);
      --overlay-tint: rgba(30, 2, 51, 0.66);
      --overlay-wine: rgba(122, 28, 46, 0.15);
      --shadow-purple: rgba(30, 2, 51, 0.28);
      --shadow-purple-soft: rgba(52, 45, 80, 0.34);
      --shadow-wine-soft: rgba(122, 28, 46, 0.2);
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      background: linear-gradient(135deg, var(--bg-dark), var(--bg-main));
      color: var(--ink);
      font-family: "Jost", sans-serif;
      font-weight: 300;
      cursor: none;
      overflow-x: hidden;
      opacity: 0;
      transition: opacity 1s ease;
    }

    img {
      max-width: 100%;
      height: auto;
    }

    :where(a,
      button,
      input,
      textarea,
      .contact-field,
      .contact-submit,
      .nav-links a,
      .socials a,
      .contact-email,
      .g-item,
      .strip-item,
      .story-img) {
      transition: all 0.3s ease;
    }

    h1,
    h2,
    h3 {
      color: var(--main-purple);
    }

    a {
      color: var(--accent);
    }

    p {
      color: #c9a3af;
      opacity: 0.85;
    }

    body.page-ready {
      opacity: 1;
    }

    #page-veil {
      position: fixed;
      inset: 0;
      background: radial-gradient(circle at 20% 20%,
          var(--main-purple) 0%,
          var(--bg) 100%);
      z-index: 9998;
      pointer-events: none;
      opacity: 1;
      transition:
        opacity 1.1s cubic-bezier(0.23, 1, 0.32, 1),
        visibility 1.1s;
      visibility: visible;
    }

    #page-veil.hide {
      opacity: 0;
      visibility: hidden;
    }

    /* ── Custom Cursor ── */
    #cursor {
      position: fixed;
      top: 0;
      left: 0;
      z-index: 9999;
      pointer-events: none;
      mix-blend-mode: screen;
    }

    #cursor-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--ink);
      position: absolute;
      transform: translate(-50%, -50%);
      transition:
        transform 0.1s,
        width 0.3s,
        height 0.3s,
        background 0.3s;
    }

    #cursor-ring {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      border: 1px solid var(--ink);
      position: absolute;
      transform: translate(-50%, -50%);
      transition:
        transform 0.25s cubic-bezier(0.23, 1, 0.32, 1),
        width 0.4s,
        height 0.4s,
        opacity 0.3s;
      opacity: 0.5;
    }

    body.hovering #cursor-dot {
      width: 12px;
      height: 12px;
      background: var(--accent);
    }

    body.hovering #cursor-ring {
      width: 56px;
      height: 56px;
      opacity: 0.25;
    }

    /* ── Nav ── */
    nav {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 100;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 36px 78px;
      background: rgba(18, 10, 24, 0.6);
      backdrop-filter: blur(10px);
    }

    .nav-logo {
      font-family: "Times New Roman", "Cormorant Garamond", serif;
      font-size: clamp(1.5rem, 2.4vw, 2.25rem);
      font-weight: 500;
      letter-spacing: 0.02em;
      line-height: 1;
      color: var(--ink);
      text-decoration: none;
      text-transform: uppercase;
    }

    .nav-links {
      display: flex;
      gap: 36px;
      list-style: none;
    }

    .menu-toggle {
      display: none;
      font-size: 1.8rem;
      line-height: 1;
      cursor: pointer;
      color: var(--text-primary);
      user-select: none;
    }

    .nav-links a {
      font-size: 0.72rem;
      font-weight: 300;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--ink);
      text-decoration: none;
      opacity: 0.6;
      transition:
        opacity 0.3s ease,
        color 0.3s ease;
      border-bottom: 1px solid transparent;
    }

    .nav-links a:hover {
      opacity: 1;
      color: var(--accent-hover);
      border-bottom-color: var(--accent);
    }

    .nav-links a:active,
    .nav-links a.active {
      color: var(--accent);
      border-bottom-color: var(--accent);
    }

    /* ── Hero ── */
    #hero {
      height: 100vh;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      padding: 0 78px 120px;
      position: relative;
      overflow: hidden;
      background-color: #120a18;
    }

    .hero-bg {
      position: absolute;
      inset: 0;
      z-index: 0;
      background-color: #120a18;
    }

    .hero-img-frame {
      position: absolute;
      top: 7%;
      right: 4%;
      width: 38vw;
      height: 82vh;
      overflow: hidden;
      clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
      padding: 8px;
      border-radius: 16px;
      background: rgba(42, 10, 63, 0.2);
      backdrop-filter: blur(4px);
      -webkit-backdrop-filter: blur(4px);
      border: 1px solid rgba(137, 85, 117, 0.4);
      box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
      transition: transform 0.4s ease;
    }

    .hero-img-frame img {
      width: 100%;
      height: auto;
      object-fit: cover;
      opacity: 0;
      transform: scale(1.05);
      animation: heroReveal 1.2s ease-out forwards;
      border-radius: 14px;
      border: 1px solid rgba(137, 85, 117, 0.4);
      box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    }

    @media (hover: hover) and (pointer: fine) {
      .hero-img-frame:hover {
        transform: scale(1.01);
      }
    }

    .hero-line {
      position: absolute;
      top: 50%;
      left: 60px;
      width: 1px;
      height: 120px;
      background: var(--ink);
      opacity: 0.15;
      transform: translateY(-50%);
    }

    .hero-content {
      position: relative;
      z-index: 1;
      max-width: 560px;
    }

    .hero-eyebrow {
      font-size: 0.68rem;
      letter-spacing: 0.25em;
      text-transform: uppercase;
      color: var(--mid);
      margin-bottom: 20px;
      opacity: 0;
      animation: fadeUp 0.9s 0.35s forwards;
    }

    .hero-title {
      font-family: "Cormorant Garamond", serif;
      font-size: clamp(4.2rem, 7vw, 7rem);
      font-weight: 300;
      line-height: 1.05;
      letter-spacing: -0.02em;
      opacity: 0;
      animation: fadeUp 0.9s 0.5s forwards;
    }

    .hero-title em {
      font-style: italic;
      color: var(--highlight);
    }

    .hero-sub {
      margin-top: 24px;
      font-size: 0.9rem;
      color: rgba(201, 163, 175, 0.85);
      line-height: 1.8;
      max-width: 380px;
      opacity: 0;
      animation: fadeUp 0.9s 0.65s forwards;
    }

    .hero-cta {
      margin-top: 40px;
      display: inline-flex;
      align-items: center;
      gap: 14px;
      font-size: 0.72rem;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--ink);
      text-decoration: none;
      opacity: 0;
      animation: fadeUp 0.9s 0.8s forwards;
    }

    .hero-cta span {
      display: inline-block;
      width: 48px;
      height: 1px;
      background: var(--ink);
      transition: width 0.4s;
    }

    .hero-cta:hover span {
      width: 72px;
    }

    /* ── Section Shared ── */
    section {
      padding: 160px 78px;
      background-color: #2a0a3f;
    }

    section {
      transition:
        opacity 0.7s ease,
        transform 0.7s ease;
    }

    .section-label {
      font-size: 0.62rem;
      letter-spacing: 0.28em;
      text-transform: uppercase;
      color: var(--mid);
      margin-bottom: 64px;
      display: flex;
      align-items: center;
      gap: 20px;
    }

    .section-label::before {
      content: "";
      display: block;
      width: 32px;
      height: 1px;
      background: var(--mid);
    }

    /* ── Gallery ── */
    #work {
      background-color: #1a0d2a;
    }

    .gallery {
      position: relative;
    }

    .gallery-intro {
      display: grid;
      grid-template-columns: 1.15fr 0.85fr;
      align-items: end;
      margin-bottom: 110px;
      gap: 84px;
    }

    .gallery-heading {
      font-family: "Cormorant Garamond", serif;
      font-size: clamp(2.8rem, 5vw, 4.8rem);
      font-weight: 300;
      line-height: 1.06;
      max-width: 560px;
    }

    .gallery-desc {
      font-family: "Cormorant Garamond", serif;
      font-size: 1.05rem;
      color: #c9a3af;
      opacity: 0.85;
      line-height: 1.9;
      max-width: 330px;
      text-align: left;
      justify-self: end;
    }

    .gallery-grid {
      display: flex;
      overflow-x: auto;
      overflow-y: hidden;
      gap: 20px;
      padding: 20px;
      scroll-behavior: auto;
      scroll-snap-type: x proximity;
      -webkit-overflow-scrolling: touch;
      will-change: transform;
    }

    .g-item {
      display: flex;
      flex-direction: column;
      flex: 0 0 auto;
      width: 280px;
      position: relative;
      overflow: hidden;
      border-radius: 18px;
      background: rgba(255, 255, 255, 0.03);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      border: 1px solid rgba(255, 255, 255, 0.08);
      box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
      cursor: pointer;
      scroll-snap-align: start;
      transition: all 0.35s ease;
      touch-action: manipulation;
      -webkit-tap-highlight-color: transparent;
    }

    .gallery-item {
      min-width: 260px;
      height: 320px;
      flex-shrink: 0;
      display: flex;
      flex-direction: column;
    }

    .gallery .image-container {
      width: 100%;
      height: 100%;
      overflow: hidden;
      position: relative;
      border-radius: 16px;
    }

    .gallery .image-container::after {
      content: "";
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      height: 40%;
      background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
      pointer-events: none;
    }

    .frame-overlay {
      position: absolute;
      bottom: 12px;
      left: 14px;
      z-index: 2;
      font-size: 12px;
      letter-spacing: 2px;
      color: rgba(255, 255, 255, 0.9);
    }

    .gallery-item .image-container .like-overlay {
      position: absolute;
      bottom: 10px;
      right: 12px;
      z-index: 2;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .g-item.gallery-item {
      opacity: 0;
      transform: translateY(20px);
      transition:
        opacity 2s ease-out,
        transform 2s ease-out;
      transition-delay: calc(var(--index, 0) * 0.1s);
    }

    .g-item.gallery-item.visible {
      opacity: 1;
      transform: translateY(0);
    }

    .g-item.gallery-item.visible img.gallery-img.loaded {
      opacity: 1;
      filter: brightness(0.95) contrast(1.01) saturate(0.95);
    }

    .g-item img.gallery-img {
      opacity: 0;
      transition:
        opacity 2s ease-out,
        filter 0.5s ease;
      transition-delay: calc(var(--index, 0) * 0.1s);
      max-width: 100%;
      height: 100%;
      /* Blur placeholder while loading */
      filter: blur(10px) brightness(0.95) contrast(1.01) saturate(0.95);
    }

    .gallery-item img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .g-item img,
    .trending-item img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      border-radius: 16px;
      filter: brightness(0.92) contrast(1.05) saturate(0.95);
      transition:
        transform 0.6s ease,
        filter 0.4s ease;
    }


    /* Image error fallback */
    .g-item img.gallery-img.error {
      opacity: 1;
      filter: none;
      background: rgba(42, 10, 63, 0.3);
      object-fit: contain;
    }

    .g-item:hover,
    .trending-item:hover {
      transform: translateY(-6px) scale(1.01);
      box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.7),
        0 0 40px rgba(122, 28, 46, 0.25);
    }

    .g-item:hover img,
    .trending-item:hover img {
      transform: scale(1.06);
      filter: brightness(1.05) contrast(1.08) saturate(1.05);
    }

    .g-item .image-container::before,
    .trending-item .image-container::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      height: 35%;
      width: 100%;
      background: linear-gradient(to bottom,
          rgba(255, 255, 255, 0.15),
          transparent);
      pointer-events: none;
      z-index: 2;
    }

    /* ── Trending Section - Editorial Grid ── */
    #trending {
      background: var(--bg);
      padding: 80px 20px;
    }

    .trending-header {
      text-align: center;
      margin-bottom: 32px;
    }

    .trending-label {
      font-size: 0.65rem;
      letter-spacing: 0.25em;
      text-transform: uppercase;
      color: var(--accent);
      margin-bottom: 16px;
      display: block;
    }

    .trending-title {
      font-family: "Cormorant Garamond", serif;
      font-size: clamp(2.5rem, 5vw, 4.5rem);
      font-weight: 300;
      color: var(--text-primary);
      line-height: 1.2;
    }

    .trending-grid {
      display: grid;
      grid-template-columns: 2fr 1fr;
      gap: 20px;
      align-items: start;
      max-width: 1100px;
      margin: 0 auto;
      padding: 40px 20px;
    }

    .trending-item {
      display: block;
      width: 100%;
      aspect-ratio: 16 / 10 !important;
      position: relative;
      overflow: hidden;
      border-radius: 18px;
      background: rgba(255, 255, 255, 0.03);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      border: 1px solid rgba(255, 255, 255, 0.08);
      box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
      cursor: pointer;
      opacity: 0;
      transform: translateY(20px);
      transition: all 0.35s ease;
      transition-delay: calc(var(--index, 0) * 0.1s);
    }

    .trending-item,
    .trending-item * {
      min-height: 0 !important;
    }

    .trending-item:first-child {
      grid-row: span 2;
    }

    .trending-item .image-container {
      width: 100%;
      height: 100% !important;
      position: relative;
      overflow: hidden;
    }

    .trending-item img {
      width: 100% !important;
      height: 100% !important;
      object-fit: cover;
      display: block;
      z-index: 1;
    }

    .trending-item.visible {
      opacity: 1;
      transform: translateY(0);
    }

    /* Image error fallback for trending */
    .trending-item img.gallery-img.error {
      opacity: 1;
      filter: none;
      background: rgba(42, 10, 63, 0.3);
      object-fit: contain;
    }

    .trending-rank {
      position: absolute;
      top: 16px;
      left: 16px;
      font-family: "Cormorant Garamond", serif;
      font-size: 0.9rem;
      font-weight: 300;
      color: rgba(255, 255, 255, 0.8);
      background: rgba(90, 15, 46, 0.6);
      backdrop-filter: blur(4px);
      padding: 6px 12px;
      border-radius: 20px;
      border: 1px solid rgba(137, 85, 117, 0.3);
      letter-spacing: 0.1em;
      z-index: 5;
    }

    .trending-item:first-child .trending-rank {
      font-size: 1.1rem;
      padding: 8px 16px;
    }

    .trending-likes {
      position: absolute;
      bottom: 16px;
      right: 16px;
      font-size: 0.7rem;
      color: rgba(255, 255, 255, 0.7);
      background: rgba(18, 10, 24, 0.6);
      backdrop-filter: blur(4px);
      padding: 6px 12px;
      border-radius: 20px;
      border: 1px solid rgba(137, 85, 117, 0.3);
      display: flex;
      align-items: center;
      gap: 6px;
      z-index: 5;
    }

    .trending-likes svg {
      width: 12px;
      height: 12px;
      fill: var(--accent);
    }

    /* ── Loading Skeleton / Placeholder ── */
    .skeleton-card {
      background: rgba(42, 10, 63, 0.2);
      backdrop-filter: blur(6px);
      -webkit-backdrop-filter: blur(6px);
      border: 1px solid rgba(137, 85, 117, 0.25);
      border-radius: 10px;
      overflow: hidden;
      position: relative;
    }

    .gallery-grid .skeleton-card {
      flex: 0 0 auto;
      width: 280px;
      height: 320px;
      padding: 6px;
    }

    .gallery-grid .skeleton-inner {
      width: 100%;
      height: 200px;
      background: linear-gradient(90deg,
          rgba(90, 15, 46, 0.1) 0%,
          rgba(90, 15, 46, 0.2) 50%,
          rgba(90, 15, 46, 0.1) 100%);
      background-size: 200% 100%;
      border-radius: 8px;
      animation: shimmer 2s ease-in-out infinite;
    }

    .trending-grid .skeleton-card {
      width: 100%;
      height: 100%;
      aspect-ratio: 16 / 10;
    }

    .trending-grid .skeleton-inner {
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg,
          rgba(90, 15, 46, 0.1) 0%,
          rgba(90, 15, 46, 0.2) 50%,
          rgba(90, 15, 46, 0.1) 100%);
      background-size: 200% 100%;
      border-radius: 8px;
      animation: shimmer 2s ease-in-out infinite;
    }

    @keyframes shimmer {
      0% {
        background-position: 200% 0;
      }

      100% {
        background-position: -200% 0;
      }
    }

    /* ── Lazy loaded images with blur placeholder ── */
    .lazy-img {
      opacity: 0;
      filter: blur(10px);
      transition:
        opacity 0.5s ease,
        filter 0.5s ease;
      max-width: 100%;
      height: auto;
    }

    .lazy-img.loaded,
    .lazy-img[src]:not([src=""]) {
      opacity: 1;
      filter: blur(0);
    }

    .lazy-img.error {
      opacity: 1;
      filter: none;
      background: rgba(42, 10, 63, 0.3);
    }

    /* ── Error Messages ── */
    .gallery-error {
      font-size: 0.9rem;
      color: var(--text-secondary);
      text-align: center;
      padding: 40px 20px;
      background: rgba(42, 10, 63, 0.2);
      backdrop-filter: blur(6px);
      border: 1px solid rgba(137, 85, 117, 0.3);
      border-radius: 10px;
      margin: 20px auto;
      max-width: 400px;
      letter-spacing: 0.05em;
    }

    /* Double-tap heart animation */
    .double-tap-heart {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%) scale(0);
      width: 80px;
      height: 80px;
      pointer-events: none;
      z-index: 10;
      opacity: 0;
    }

    .double-tap-heart svg {
      width: 100%;
      height: 100%;
      fill: rgba(255, 255, 255, 0.9);
      filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    }

    .double-tap-heart.animate {
      animation: heartPop 0.7s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    }

    @keyframes heartPop {
      0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0);
      }

      20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
      }

      40% {
        transform: translate(-50%, -50%) scale(0.95);
      }

      60% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
      }

      100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1);
      }
    }

    .g-item-caption {
      color: var(--text);
      font-size: 0.68rem;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      opacity: 1;
      transform: none;
      position: static;
      padding: 0;
      background: transparent;
    }

    .g-item .like-container {
      position: static;
      display: flex;
      align-items: center;
      gap: 6px;
      z-index: 2;
    }

    /* Preview icon for opening lightbox */
    .preview-icon {
      position: absolute;
      top: 10px;
      right: 10px;
      width: 32px;
      height: 32px;
      background: rgba(18, 10, 24, 0.7);
      border: 1px solid rgba(137, 85, 117, 0.4);
      border-radius: 8px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 3;
      opacity: 0;
      transition:
        opacity 0.3s ease,
        background 0.3s ease,
        border-color 0.3s ease;
      padding: 0;
    }

    .g-item:hover .preview-icon,
    .trending-item:hover .preview-icon {
      opacity: 1;
    }

    .preview-icon:hover {
      background: rgba(90, 15, 46, 0.8);
      border-color: var(--accent);
    }

    .preview-icon svg {
      width: 16px;
      height: 16px;
      stroke: var(--text);
      fill: none;
      stroke-width: 2;
    }

    .preview-icon:hover svg {
      stroke: var(--accent);
    }

    .like-btn {
      background: rgba(18, 10, 24, 0.7);
      border: 1px solid rgba(137, 85, 117, 0.4);
      color: white;
      cursor: pointer;
      padding: 8px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.3s ease;
      width: 32px;
      height: 32px;
    }

    .like-btn svg {
      width: 16px;
      height: 16px;
      stroke: var(--text);
      fill: none;
      stroke-width: 1.8;
      transition: all 0.3s ease;
    }

    .like-btn:hover {
      background: rgba(90, 15, 46, 0.8);
      border-color: var(--accent);
    }

    .like-btn:hover svg {
      stroke: var(--accent);
    }

    .like-btn.liked svg {
      fill: var(--accent);
      stroke: var(--accent);
    }

    .like-btn:disabled {
      cursor: not-allowed;
      opacity: 0.7;
    }

    .like-btn:disabled svg {
      fill: var(--accent);
      stroke: var(--accent);
    }

    .like-btn.animate-like svg {
      animation: likePop 350ms cubic-bezier(0.23, 1, 0.32, 1);
    }

    .like-btn.animate-like {
      animation: likeGlow 350ms ease-out;
    }

    @keyframes likePop {
      0% {
        transform: scale(1);
      }

      40% {
        transform: scale(1.35);
      }

      70% {
        transform: scale(0.95);
      }

      100% {
        transform: scale(1);
      }
    }

    @keyframes likeGlow {
      0% {
        box-shadow: 0 0 0 0 rgba(90, 15, 46, 0.6);
      }

      40% {
        box-shadow: 0 0 20px 4px rgba(90, 15, 46, 0.4);
      }

      100% {
        box-shadow: 0 0 0 0 rgba(90, 15, 46, 0);
      }
    }

    .like-count {
      color: white;
      font-size: 12px;
    }

    .gallery-grid::-webkit-scrollbar {
      height: 6px;
    }

    .gallery-grid::-webkit-scrollbar-thumb {
      background: rgba(137, 85, 117, 0.5);
      border-radius: 10px;
    }

    .gallery-lightbox {
      position: fixed;
      inset: 0;
      background: var(--overlay-deep);
      display: grid;
      place-items: center;
      padding: 24px;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.35s ease;
      z-index: 120;
    }

    .gallery-lightbox.open {
      opacity: 1;
      pointer-events: auto;
    }

    .gallery-lightbox img {
      max-width: min(1200px, 92vw);
      max-height: 86vh;
      width: auto;
      height: auto;
      object-fit: contain;
      border-radius: 10px;
      box-shadow: 0 20px 60px var(--shadow-purple-soft);
    }

    .lightbox-close {
      position: absolute;
      top: 20px;
      right: 24px;
      border: 0;
      background: transparent;
      color: var(--text);
      font-size: 2rem;
      line-height: 1;
      cursor: pointer;
      opacity: 0.8;
      transition: opacity 0.2s ease;
    }

    .lightbox-close:hover {
      opacity: 1;
    }

    /* ── Story / Philosophy ── */
    #story {
      background-color: #221238;
      color: var(--text);
    }

    .story-container {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: clamp(40px, 6vw, 60px);
      width: 100%;
      max-width: 1160px;
      margin: 0 auto;
    }

    .story-img {
      flex: 0 0 clamp(280px, 30vw, 320px);
      width: clamp(280px, 30vw, 320px);
      aspect-ratio: 3 / 4;
      overflow: hidden;
      position: relative;
      border-radius: 14px;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
      transition:
        transform 0.45s ease,
        box-shadow 0.45s ease;
    }

    .story-img::after {
      content: "";
      position: absolute;
      inset: 0;
      background: var(--overlay-wine);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s ease;
    }

    .story-img img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      transition: transform 0.45s ease;
    }

    .story-img:hover {
      transform: translateY(-4px);
      box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 0 20px var(--shadow-wine-soft);
    }

    .story-img:hover img {
      transform: scale(1.03);
    }

    .story-img:hover::after {
      opacity: 1;
    }

    .story-text {
      flex: 1;
      max-width: 600px;
    }

    .story-text .section-label {
      color: rgba(234, 234, 240, 0.55);
    }

    .story-text .section-label::before {
      background: rgba(234, 234, 240, 0.55);
    }

    .story-heading {
      font-family: "Cormorant Garamond", serif;
      font-size: clamp(2.4rem, 4.2vw, 4rem);
      font-weight: 300;
      line-height: 1.08;
      margin-bottom: 38px;
    }

    .story-heading em {
      font-style: italic;
      color: var(--highlight);
    }

    .story-body {
      font-size: 1rem;
      line-height: 2.08;
      color: #c9a3af;
      opacity: 0.85;
      max-width: 600px;
    }

    .story-body p+p {
      margin-top: 20px;
    }

    .story-stats {
      margin-top: 56px;
      display: flex;
      gap: 48px;
    }

    .stat-num {
      font-family: "Cormorant Garamond", serif;
      font-size: 3rem;
      font-weight: 300;
      line-height: 1;
      color: var(--accent);
    }

    .stat-label {
      font-size: 0.68rem;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: rgba(234, 234, 240, 0.55);
      margin-top: 6px;
    }

    /* ── Featured Story ── */
    #featured {
      background: var(--bg);
      text-align: center;
    }

    .featured-label {
      justify-content: center;
    }

    .featured-label::before {
      display: none;
    }

    .featured-label::after {
      content: "";
      display: block;
      width: 32px;
      height: 1px;
      background: var(--mid);
    }

    .featured-title {
      font-family: "Cormorant Garamond", serif;
      font-size: clamp(3rem, 6vw, 6rem);
      font-weight: 300;
      margin-bottom: 64px;
      line-height: 1.1;
    }

    .featured-strip {
      display: flex;
      gap: 2px;
      height: 480px;
    }

    .strip-item {
      flex: 1;
      overflow: hidden;
      position: relative;
      transition: flex 1.2s cubic-bezier(0.23, 1, 0.32, 1);
      cursor: none;
      border: 1px solid var(--line);
      background-color: var(--card-bg);
    }

    .strip-item::after {
      content: "";
      position: absolute;
      inset: 0;
      background: var(--overlay-wine);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s ease;
    }

    .strip-item img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transform: scale(1.01);
      transition:
        transform 1.8s cubic-bezier(0.23, 1, 0.32, 1),
        filter 1.1s;
      filter: brightness(0.95) saturate(0.95);
    }

    .strip-item:hover {
      flex: 3.5;
    }

    .strip-item:hover img {
      transform: scale(1.08);
      filter: brightness(1.02) saturate(1.02);
    }

    .strip-item:hover::after {
      opacity: 1;
    }

    .strip-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(to top,
          var(--overlay-tint) 0%,
          transparent 50%);
      opacity: 0;
      transition: opacity 0.5s;
      display: flex;
      align-items: flex-end;
      padding: 28px;
    }

    .strip-item:hover .strip-overlay {
      opacity: 1;
    }

    .strip-text {
      color: var(--text);
      text-align: left;
    }

    .strip-text h4 {
      font-family: "Cormorant Garamond", serif;
      font-size: 1.6rem;
      font-weight: 300;
    }

    .strip-text span {
      font-size: 0.65rem;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      opacity: 0.65;
    }

    /* ── Contact ── */
    #contact {
      background: var(--bg-soft);
      text-align: center;
      border-top: 1px solid var(--line);
    }

    .contact-heading {
      font-family: "Cormorant Garamond", serif;
      font-size: clamp(3rem, 6vw, 6.2rem);
      font-weight: 300;
      line-height: 1.05;
      margin-bottom: 28px;
    }

    .contact-heading em {
      font-style: italic;
      color: var(--mid);
    }

    .contact-sub {
      font-size: 0.88rem;
      color: #c9a3af;
      opacity: 0.85;
      margin-bottom: 52px;
    }

    .contact-form {
      width: min(720px, 100%);
      margin: 0 auto;
      text-align: left;
    }

    .contact-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 14px;
      margin-bottom: 14px;
    }

    .contact-field {
      width: 100%;
      border: 1px solid var(--line);
      background: var(--card-bg);
      color: var(--ink);
      font: inherit;
      font-size: 0.9rem;
      padding: 14px 16px;
      outline: none;
      transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
    }

    .contact-field:focus {
      border-color: var(--accent);
      background: var(--surface-soft-strong);
      box-shadow: 0 0 0 3px rgba(122, 28, 46, 0.24);
    }

    textarea.contact-field {
      min-height: 140px;
      resize: vertical;
      margin-bottom: 14px;
    }

    .contact-actions {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 16px;
      flex-wrap: wrap;
    }

    .contact-submit {
      border: 1px solid var(--accent);
      background: var(--accent);
      color: #fff;
      padding: 12px 26px;
      font-size: 0.7rem;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      cursor: none;
      transition:
        background 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease;
    }

    .contact-submit:hover {
      background: var(--accent-hover);
      border-color: var(--accent-hover);
      color: #fff;
      box-shadow: 0 0 20px var(--shadow-wine-soft);
    }

    .contact-submit:active {
      background: var(--wine-soft);
      border-color: var(--wine-soft);
      color: #fff;
    }

    .contact-submit:disabled {
      opacity: 0.65;
      cursor: not-allowed;
    }

    .contact-status {
      font-size: 0.75rem;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: var(--mid);
      opacity: 0;
      transform: translateY(8px);
    }

    .contact-status.show {
      animation: statusPop 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    }

    .contact-status.success {
      color: var(--highlight);
    }

    .contact-status.error {
      color: var(--wine-soft);
    }

    .contact-email {
      display: inline-block;
      font-family: "Cormorant Garamond", serif;
      font-size: clamp(1.2rem, 2vw, 1.8rem);
      color: var(--ink);
      text-decoration: none;
      border-bottom: 1px solid var(--ink);
      padding-bottom: 4px;
      transition:
        color 0.3s,
        border-color 0.3s;
    }

    .contact-email:hover {
      color: var(--accent);
      border-color: var(--accent);
    }

    .socials {
      margin-top: 56px;
      display: flex;
      justify-content: center;
      gap: 32px;
    }

    .socials a {
      font-size: 0.65rem;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--mid);
      text-decoration: none;
      transition: color 0.3s;
    }

    .socials a:hover {
      color: var(--accent-hover);
    }

    .social-links {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 14px;
    }

    .social-links a {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      color: var(--text-primary);
      text-decoration: none;
      border: 1px solid rgba(137, 85, 117, 0.4);
      padding: 10px 16px;
      border-radius: 8px;
      letter-spacing: 0.08em;
      font-size: 0.72rem;
      text-transform: uppercase;
      transition: all 0.3s ease;
    }

    .social-links a svg {
      width: 15px;
      height: 15px;
      stroke: currentColor;
      fill: none;
      stroke-width: 1.8;
    }

    .social-links a:hover {
      background: rgba(90, 15, 46, 0.2);
      border-color: rgba(137, 85, 117, 0.7);
      color: var(--text-primary);
    }

    a:hover {
      color: var(--accent-hover);
    }

    /* ── Footer ── */
    footer {
      padding: 34px 78px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-top: 1px solid var(--line);
      font-size: 0.65rem;
      letter-spacing: 0.12em;
      color: var(--mid);
    }

    /* ── Scroll Reveal ── */
    .reveal {
      opacity: 0;
      transform: translateY(20px);
      transition:
        opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1),
        transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    }

    .reveal.visible {
      opacity: 1;
      transform: translateY(0);
    }

    /* ── Keyframes ── */
    @keyframes fadeUp {
      from {
        opacity: 0;
        transform: translateY(20px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @keyframes heroReveal {
      from {
        opacity: 0;
        transform: scale(1.05);
      }

      to {
        opacity: 1;
        transform: scale(1);
      }
    }

    @keyframes statusPop {
      from {
        opacity: 0;
        transform: translateY(8px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @media (min-width: 769px) {
      body {
        padding-top: 84px;
      }
    }

    /* ── Responsive ── */
    @media (max-width: 900px) {
      nav {
        padding: 22px 28px;
      }

      .nav-logo {
        font-size: 1.35rem;
      }

      #hero {
        padding: 0 28px 70px;
      }

      .hero-img-frame {
        width: 54vw;
        top: 10%;
        right: 0;
      }

      section {
        padding: 95px 28px;
      }

      .gallery-intro {
        grid-template-columns: 1fr;
        gap: 28px;
      }

      .gallery-desc {
        text-align: left;
        justify-self: start;
      }

      .gallery-grid {
        gap: 16px;
        padding: 16px;
      }

      #story {
        text-align: center;
      }

      .story-container {
        flex-direction: column;
        align-items: center;
        gap: 28px;
      }

      .story-img {
        width: min(82vw, 320px);
        flex-basis: auto;
      }

      .story-text {
        max-width: 600px;
      }

      .story-text .section-label {
        justify-content: center;
      }

      .story-text .section-label::before {
        display: none;
      }

      .contact-row {
        grid-template-columns: 1fr;
      }

      footer {
        flex-direction: column;
        gap: 10px;
        text-align: center;
      }

      .featured-strip {
        height: 340px;
      }
    }

    @media (max-width: 768px) {
      nav {
        position: fixed;
      }

      .nav-right {
        gap: 16px;
      }

      #visit-counter {
        padding: 5px 10px;
        font-size: 0.6rem;
      }

      #visit-counter svg {
        width: 13px;
        height: 13px;
      }

      .menu-toggle {
        display: block;
      }

      .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        right: 20px;
        background: rgba(18, 10, 24, 0.95);
        backdrop-filter: blur(10px);
        padding: 20px;
        border-radius: 10px;
        border: 1px solid rgba(137, 85, 117, 0.4);
        gap: 14px;
        min-width: 170px;
        z-index: 130;
      }

      .nav-links.active {
        display: flex;
      }

      body {
        overflow-x: hidden;
      }

      #hero {
        padding: 20px;
        flex-direction: column;
        justify-content: flex-end;
        overflow: hidden;
      }

      .hero-img-frame {
        width: 100%;
        height: auto;
        right: 0;
        top: 14%;
        padding: 6px;
      }

      .hero-img-frame img {
        width: 100%;
        height: auto;
        object-fit: cover;
        border-radius: 12px;
      }

      .hero-content {
        width: 100%;
      }

      .hero-title {
        font-size: clamp(1.8rem, 5vw, 3.5rem);
      }

      .gallery-grid {
        gap: 16px;
        padding: 15px;
      }

      .g-item {
        width: 240px;
      }

      section {
        padding: 40px 20px;
      }

      .gallery-intro,
      .story-container,
      .contact-row {
        grid-template-columns: 1fr;
      }

      .gallery-intro,
      .story-container {
        gap: 20px;
      }

      .hero-content,
      .gallery-intro,
      .story-text,
      #contact {
        text-align: center;
      }

      .social-links {
        gap: 10px;
      }

      .trending-item:nth-child(1) {
        grid-column: span 2;
      }

      .trending-item:nth-child(3) {
        grid-row: span 1;
      }

      .trending-title {
        font-size: 2rem;
      }

      .trending-rank {
        font-size: 0.8rem;
        padding: 4px 10px;
      }

      .gallery-grid .skeleton-card {
        width: 240px;
        height: 280px;
      }

      .gallery-error {
        font-size: 0.85rem;
        padding: 30px 16px;
        margin: 16px;
      }
    }

    @media (max-width: 480px) {
      #hero {
        padding: 16px;
      }

      section {
        padding: 32px 16px;
      }

      .hero-title {
        font-size: clamp(1.55rem, 7.5vw, 2.3rem);
      }

      .hero-sub {
        font-size: 0.82rem;
      }

      .social-links a {
        width: 100%;
        justify-content: center;
        padding: 10px 14px;
      }

      /* Mobile trending text improvements */
      .trending-title {
        font-size: 1.8rem;
      }

      .trending-label {
        font-size: 0.6rem;
        letter-spacing: 0.2em;
      }

      .trending-rank {
        font-size: 0.75rem;
        padding: 4px 8px;
        top: 12px;
        left: 12px;
      }

      .trending-likes {
        font-size: 0.65rem;
        padding: 4px 8px;
        bottom: 12px;
        right: 12px;
      }

      /* Gallery caption mobile sizing */
      .g-item-caption {
        font-size: 0.6rem;
        padding: 12px 12px 10px;
        letter-spacing: 0.15em;
      }

      /* Like count mobile sizing */
      .like-count {
        font-size: 0.7rem;
      }

      .like-btn {
        width: 28px;
        height: 28px;
        padding: 6px;
      }

      .like-btn svg {
        width: 14px;
        height: 14px;
      }
    }

    .nav-links a {
      font-family: "Cormorant Garamond", serif;
      font-size: 0.9rem;
      letter-spacing: 0.08em;
    }

    .nav-logo {
      letter-spacing: 0.08em;
    }

    .nav-links a:hover {
      color: var(--accent);
    }

    .nav-right {
      display: flex;
      align-items: center;
      gap: 32px;
    }

    #visit-counter {
      font-size: 0.65rem;
      color: var(--text);
      background: rgba(18, 10, 24, 0.5);
      padding: 6px 12px;
      border-radius: 999px;
      pointer-events: none;
      display: flex;
      align-items: center;
      gap: 6px;
      border: 1px solid rgba(137, 85, 117, 0.35);
      white-space: nowrap;
    }

    #visit-counter svg {
      width: 16px;
      height: 16px;
      stroke: var(--accent);
      fill: none;
      stroke-width: 1.8;
    }

    /* Force readable subtext across site */
    p,
    .subtext,
    .description {
      color: #c9a3af !important;
      opacity: 0.9;
    }

    .trending-item img.gallery-img {
      opacity: 1 !important;
      filter: brightness(0.92) contrast(1.05) saturate(0.95) !important;
    }

    /* Glass outer frame only (image remains untouched) */
    .g-item,
    .trending-item {
      position: relative;
      padding: 6px;
      border-radius: 18px;
      background: rgba(255, 255, 255, 0.04);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      border: 1px solid rgba(255, 255, 255, 0.08);
      box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    }

    .g-item .image-container,
    .trending-item .image-container {
      border-radius: 14px;
      overflow: hidden;
      border: none;
      box-shadow: none;
      background: transparent;
    }

    .trending-item .image-container {
      position: relative;
    }

    .trending-item .g-item-caption {
      position: absolute;
      bottom: 12px;
      left: 14px;
      z-index: 3;
      font-size: 12px;
      letter-spacing: 2px;
      color: rgba(255, 255, 255, 0.9);
      pointer-events: none;
      opacity: 0;
      transform: translateY(6px);
      transition: all 0.3s ease;
      margin-top: 0;
      padding: 0;
    }

    .trending-item:hover .g-item-caption {
      opacity: 1;
      transform: translateY(0);
    }

    @media (max-width: 768px) {
      .trending-grid {
        display: flex !important;
        flex-direction: column;
        gap: 20px;
      }

      .trending-item:first-child {
        grid-row: unset !important;
        grid-column: unset !important;
      }

      .trending-item {
        width: 100% !important;
        aspect-ratio: 16 / 10 !important;
      }
    }
  