:root {
    --bg:     #030101; 
    --ink:    #080401;
    --gold:   #C9963C;
    --cream:  #F0E3C8;
    --fog:    #aa9c86;
    --pale:   #D4AA60;
    --serif:  'Playfair Display', Georgia, serif;
    --sans:   'Inter', system-ui, sans-serif;
  }
  
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  
  html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
  }

  body {
    background: var(--bg);
    color: var(--cream);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }

  /* ── WORDMARK & NAV ─────────────────────────────── */
  #hamburger {
    position: fixed; top: 1.7rem; left: 2.0rem; z-index: 600;
    width: 28px; height: 28px;
    background: none; border: none; padding: 6px; cursor: pointer;
    opacity: 0.75; color: var(--cream);
  }
  #hamburger svg {
    width: 100%; height: 100%; display: block;
    transition: transform 0.38s cubic-bezier(0.76, 0, 0.24, 1);
  }
  body.menu-open #hamburger svg { transform: rotate(180deg); }

  #wordmark {
    position: fixed; top: 0; left: 0; right: 0; z-index: 500;
    display: flex; justify-content: center; align-items: flex-start;
    padding: 1.75rem 0; pointer-events: none;
  }
  #wordmark a {
    font-family: var(--serif);
    font-size: 0.88rem; letter-spacing: 0.26em; text-transform: uppercase;
    color: var(--cream); text-decoration: none; opacity: 0.92;
    pointer-events: all; display: block;
  }
  
  #back-btn {
    position: fixed; top: 2.0rem; left: 6.0rem; z-index: 600;
    font-size: 0.55rem; letter-spacing: 0.4em; text-transform: uppercase;
    color: var(--fog); text-decoration: none; opacity: 0.6;
    transition: opacity 0.3s ease, color 0.3s ease;
  }
  #back-btn:hover { opacity: 1; color: var(--gold); }

  /* ── MENU PANEL ─────────────────────────────────── */
  #menu-overlay {
    position: fixed; top: 0; left: 0;
    width: min(360px, 82vw); height: 100vh; z-index: 550; 
    background: rgba(8,4,1,0.97); border-right: 1px solid rgba(196,180,154,0.10);
    display: flex; flex-direction: column; padding: 5.5rem 2.6rem 3.5rem;
    transform: translateX(-100%); transition: transform 0.42s cubic-bezier(0.76, 0, 0.24, 1);
    pointer-events: none;
    overflow-y: auto;
  }
  body.menu-open #menu-overlay { transform: translateX(0); pointer-events: all; }
  #menu-scrim {
    position: fixed; inset: 0; z-index: 540; background: rgba(8,4,1,0.55);
    opacity: 0; pointer-events: none; transition: opacity 0.42s ease;
  }
  body.menu-open #menu-scrim { opacity: 1; pointer-events: all; }

  .menu-nav { display: flex; flex-direction: column; flex: 1; }
  .menu-item {
    font-family: var(--serif); font-size: clamp(1.6rem, 3.6vw, 2.2rem);
    color: var(--cream); text-decoration: none; display: block;
    opacity: 0.82; padding: 0.7rem 0; border-bottom: 1px solid rgba(196,180,154,0.08);
    transition: color 0.2s, opacity 0.2s, padding-left 0.2s;
  }
  .menu-item em { font-style: italic; color: var(--pale); }
  .menu-item:hover { color: var(--pale); opacity: 1; padding-left: 0.4rem; }
  .menu-meta {
    padding-top: 2rem; margin-top: auto;
    border-top: 1px solid rgba(196,180,154,0.10);
  }
  .menu-meta-label {
    font-size: 0.55rem; letter-spacing: 0.3em; text-transform: uppercase;
    color: var(--gold); margin-bottom: 0.9rem; opacity: 0.7;
  }
  .menu-meta-contact {
    font-size: 0.78rem; font-weight: 300; color: var(--fog);
    line-height: 1.95; margin-bottom: 1.4rem;
  }
  .menu-meta-contact a { color: var(--fog); text-decoration: none; transition: color 0.2s; }
  .menu-meta-contact a:hover { color: var(--cream); }
  .menu-meta-location {
    font-size: 0.58rem; letter-spacing: 0.26em; text-transform: uppercase;
    color: rgba(196,180,154,0.38);
  }

  /* ── PAGE LAYOUT ────────────────────────────────── */
  .page-wrap {
    display: flex;
    width: 100%;
  }

  /* ── LEFT HAND SIDE (25% Sticky) ────────────────── */
  .lhs {
    position: sticky;
    top: 0;
    width: 25%;
    height: 100vh;
    border-right: 1px solid rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    padding: 18vh 48px 10vh 60px;
    box-shadow: 10px 0 30px rgba(0,0,0,0.8);
    z-index: 10;
    overflow: hidden;
  }
  
  .lhs-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    filter: sepia(0.35) saturate(1.2) contrast(1.1) brightness(0.18);
    z-index: 0;
    transition: background-image 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  .lhs-bg::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(3,1,1,0.85) 0%, rgba(3,1,1,0.6) 100%);
  }

  .lhs-content {
    position: relative; z-index: 10;
    display: flex; flex-direction: column; height: 100%;
  }

  .ds-num {
    font-size: 11px; letter-spacing: 0.3em;
    color: var(--gold); margin-bottom: 24px; display: inline-block;
  }
  .ds-num::after {
    content: ''; display: block; width: 30px; height: 1px;
    background: var(--gold); margin: 10px 0 0; opacity: 0.6;
  }

  .ds-craft {
    font-family: var(--sans); font-size: 0.7rem; font-weight: 300;
    letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--fog); opacity: 0.7;
    margin: -10px 0 26px;
  }
  .ds-title {
    font-family: var(--serif); font-size: 2.8rem; font-weight: 400;
    color: var(--cream); line-height: 1.15; margin-bottom: 24px;
    font-style: italic;
    background: linear-gradient(180deg, #F0E3C8 0%, #D4AA60 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  }
  
  .lhs-descriptions {
    margin-top: 60px;
    position: relative;
    flex: 1;
  }
  
  .desc-item {
    position: absolute;
    top: 0; left: 0; width: 100%;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    font-size: 0.95rem; color: var(--fog); line-height: 1.9; font-weight: 300;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  }
  .desc-item.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .desc-item h2, .desc-item h3 {
    font-family: var(--serif); font-size: 1.4rem; color: var(--cream);
    margin-bottom: 12px; font-weight: 400; font-style: italic;
  }

  .gallery-link {
    display: inline-block;
    color: var(--gold);
    text-decoration: none;
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 500;
    border-bottom: 1px solid rgba(201, 150, 60, 0.3);
    padding-bottom: 3px;
    transition: color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
  }
  .gallery-link:hover {
    color: var(--cream);
    border-color: var(--cream);
    transform: translateX(4px);
  }



  /* ── BIO FRAME (About only): text overlaid on a knocked-back image ── */
  .ds-frame--bio { display: flex; align-items: center; }
  .ds-frame--bio::after {
    content: ''; position: absolute; inset: 0;
    background: rgba(3, 1, 1, 0.72);
    z-index: 1;
  }
  .frame-bio {
    position: relative; z-index: 3;
    width: 100%;
    padding: 0 6vw;
  }
  .frame-bio p {
    font-size: 1.1rem; line-height: 2.05; font-weight: 300;
    color: var(--fog);
    margin-bottom: 1.8em;
    max-width: 62em;
  }

  /* ── FRAME TAG (desktop): title + link on gallery frames ── */
  .frame-tag {
    /* frames are 115vh with the bottom 15vh masked; keep the tag in the
       band that is on screen when the section snaps */
    position: absolute; left: 3.4vw; bottom: 28vh; z-index: 2;
    max-width: 44ch;
  }
  .frame-tag h2, .frame-tag h3 {
    font-family: var(--serif); font-style: italic; font-weight: 400;
    font-size: clamp(1.6rem, 2.4vw, 2.3rem); color: var(--cream);
    margin-bottom: 0.9rem;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.85);
  }

  /* ── RIGHT HAND SIDE (75% Scrolling Frames) ──────── */
  .rhs {
    width: 75%;
    display: flex;
    flex-direction: column;
  }

  .ds-snap {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    height: 100vh;
  }

  .ds-frame {
    position: relative;
    width: 100%;
    height: 115vh;
    background-size: cover;
    /* The frame IS the visible band (panel edge -> right edge), so center
       means centered in that band. No fixed attachment: it would position
       against the viewport and put the image under the info panel. */
    background-position: center center;
    background-repeat: no-repeat;
    margin-bottom: -15vh;
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black calc(100% - 15vh), rgba(0,0,0,0) calc(100% - 15vh), rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to bottom, black 0%, black calc(100% - 15vh), rgba(0,0,0,0) calc(100% - 15vh), rgba(0,0,0,0) 100%);
  }

  .ds-snap:last-child .ds-frame {
    margin-bottom: 0;
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 100%);
    mask-image: linear-gradient(to bottom, black 0%, black 100%);
  }

  .ds-frame::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to right, rgba(3,1,1,0.92) 0%, rgba(3,1,1,0.05) 40%, rgba(3,1,1,0.3) 100%);
    pointer-events: none;
    z-index: 1;
  }

  /* Fixed top gradient: keeps the wordmark/hamburger/Back legible.
     Pinned to the viewport — the frames scroll beneath it. */
  body::after {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 5.25rem;
    background: linear-gradient(to bottom, var(--bg) 0%, transparent 100%);
    pointer-events: none;
    z-index: 400;
  }

  /* Mobile text block overlays inside frames */
  .mobile-desc-panel {
    display: none;
  }

  /* ── RESPONSIVE DESIGN ───────────────────────────── */
  @media (max-width: 768px) {
    .frame-bio { display: none; }

    .frame-tag { display: none; }

    #back-btn {
      left: auto; right: 2rem;
    }
    .page-wrap {
      flex-direction: column;
    }
    .lhs {
      position: relative;
      width: 100%;
      height: auto;
      padding: 100px 24px 40px 24px;
      border-right: none;
      box-shadow: none;
    }
    .lhs-bg {
      position: absolute;
    }
    .lhs-descriptions {
      display: none; /* Hide LHS floating text on mobile */
    }
    .rhs {
      width: 100%;
    }
    .ds-snap {
      height: auto;
    }
    .ds-frame {
      height: auto;
      min-height: 70vh;
      margin-bottom: 0;
      background-attachment: scroll; /* safe for iOS */
      background-position: center;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      padding: 40px 24px;
      -webkit-mask-image: none;
      mask-image: none;
    }
    .ds-snap:last-child .ds-frame {
      -webkit-mask-image: none;
      mask-image: none;
    }
    .ds-frame::before {
      background: rgba(3, 1, 1, 0.45); /* darker overlay on mobile for text reading */
    }
    .mobile-desc-panel {
      display: block;
      position: relative;
      z-index: 10;
      background: rgba(8, 4, 1, 0.9);
      padding: 24px;
      border: 1px solid rgba(201, 150, 60, 0.25);
      backdrop-filter: blur(8px);
      width: 100%;
    }
    .mobile-desc-panel h2, .mobile-desc-panel h3 {
      font-family: var(--serif); font-size: 1.4rem; font-style: italic; color: var(--cream); margin-bottom: 8px;
    }
    .mobile-desc-panel p {
      font-size: 0.88rem; color: var(--fog); line-height: 1.7; margin-bottom: 16px; font-weight: 300;
    }
    .mobile-desc-panel a {
      display: inline-block; color: var(--gold); text-decoration: none; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500;
      border-bottom: 1px solid var(--gold); padding-bottom: 2px;
    }
  }
