:root{
    --ink:#0b0b0a;
    --ink-2:#131211;
    --paper:#f4efe6;
    --gold:#c8a45c;
    --gold-soft: rgba(200,164,92,0.35);
    --muted:#9a948a;
    --line: rgba(244,239,230,0.12);
  }
  *{box-sizing:border-box; margin:0; padding:0;}
  html{scroll-behavior:smooth;}
  html,body{background:var(--ink); color:var(--paper); font-family:'Poppins', sans-serif; font-weight:300; overflow-x:hidden;}
  a{color:inherit; text-decoration:none;}
  img{display:block; max-width:100%;}
  button{font-family:inherit; border:none; background:none; cursor:pointer; color:inherit;}
  .container{max-width:1280px; margin:0 auto; padding:0 32px;}
  .eyebrow{
    font-size:12px; letter-spacing:0.32em; text-transform:uppercase;
    color:var(--gold); font-weight:500;
  }
  h1,h2,h3{font-family:'Bodoni Moda', serif; font-weight:600; letter-spacing:0.01em;}

  /* custom cursor */
  .cursor-dot{
    position:fixed; top:0; left:0; width:8px; height:8px;
    background:var(--gold); border-radius:50%;
    pointer-events:none; z-index:9999; transform:translate(-50%,-50%);
    transition:width .25s ease, height .25s ease, background .25s ease;
  }
  .cursor-dot.hover{width:44px; height:44px; background:rgba(200,164,92,0.18); border:1px solid var(--gold);}
  @media (max-width:900px){ .cursor-dot{display:none;} }

  /* header */
  header{
    position:fixed; top:0; left:0; right:0; z-index:500;
    background:linear-gradient(to bottom, rgba(11,11,10,0.85), transparent);
    transition:background .4s ease, backdrop-filter .4s ease;
  }
  header.scrolled{ background:rgba(11,11,10,0.92); backdrop-filter:blur(10px); border-bottom:1px solid var(--line); }
  .nav-container{ display:flex; align-items:center; justify-content:space-between; padding:26px 0; }
  .logo-block{display:flex; align-items:center; gap:14px;}
  .logo-mark{
    width:44px; height:44px; border:1px solid var(--gold); border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    font-family:'Bodoni Moda', serif; font-size:17px; color:var(--gold);
    overflow:hidden;
  }
  .logo-mark img{ width:100%; height:100%; object-fit:cover; }
  .logo-text{font-family:'Bodoni Moda', serif; font-size:17px; letter-spacing:0.03em; line-height:1.15;}
  .logo-text span{display:block; font-family:'Poppins',sans-serif; font-size:9.5px; letter-spacing:0.22em; text-transform:uppercase; color:var(--muted); font-weight:400; margin-top:3px;}

  .menu-button{ width:38px; height:30px; display:flex; flex-direction:column; justify-content:space-between; cursor:pointer; z-index:1100; }
  .hamburger-line{width:100%; height:1px; background:var(--paper); transition:transform .35s ease, opacity .35s ease, background .35s ease;}
  .menu-button.open .hamburger-line:nth-child(1){transform:translateY(14px) rotate(45deg); background:var(--gold);}
  .menu-button.open .hamburger-line:nth-child(2){opacity:0;}
  .menu-button.open .hamburger-line:nth-child(3){transform:translateY(-14px) rotate(-45deg); background:var(--gold);}

  /* sliding sidebar nav */
  .sidebar{
    position:fixed; top:0; right:0; height:100vh; width:min(460px, 92vw);
    background:#0e0d0c; border-left:1px solid var(--line);
    display:flex; flex-direction:column; justify-content:center; gap:44px;
    padding:60px; transform:translateX(100%);
    transition:transform .55s cubic-bezier(.65,0,.35,1);
    z-index:1000;
  }
  .sidebar.open{transform:translateX(0);}
  .nav-link-holder{display:flex; flex-direction:column; gap:20px;}
  .nav-link{font-family:'Bodoni Moda', serif; font-size:38px; letter-spacing:0.01em; opacity:0.82; transition:opacity .25s, color .25s;}
  .nav-link:hover{opacity:1; color:var(--gold);}
  .nav-line{height:1px; background:var(--line); width:100%;}
  .sidebar-contact{display:flex; flex-direction:column; gap:8px; font-size:13px; color:var(--muted);}
  .sidebar-contact a:hover{color:var(--gold);}

  .overlay{ position:fixed; inset:0; background:rgba(0,0,0,0.55); opacity:0; pointer-events:none; transition:opacity .4s ease; z-index:900; }
  .overlay.open{opacity:1; pointer-events:auto;}

  /* hero */
  .hero{
    position:relative; height:100vh; min-height:640px;
    display:flex; align-items:center;
    background:#000;
  }
  .hero.hero-compact{ height:58vh; min-height:440px; }
  .hero-bg{
    position:absolute; inset:0; overflow:hidden; left: -500px;
  }
  .hero-bg img{ width:100%; height:100%; object-fit:cover; opacity:0.55; }
  .hero-bg::after{
    content:""; position:absolute; inset:0;
    background:linear-gradient(180deg, rgba(11,11,10,0.35) 0%, rgba(11,11,10,0.55) 55%, rgba(11,11,10,0.95) 100%);
  }
  .hero-content{position:relative; z-index:2;}
  .hero-content .eyebrow{margin-bottom:22px; display:block;}
  .hero-content h1{font-size:clamp(46px, 7vw, 96px); line-height:1.03; max-width:14ch;}
  .hero-content h1 em{font-style:italic; color:var(--gold); font-weight:400;}
  .hero-content p.tagline{margin-top:22px; max-width:46ch; color:#d9d3c3; font-size:16px; line-height:1.7;}
  .hero-cta{
    margin-top:38px; display:inline-flex; align-items:center; gap:14px;
    padding:16px 30px; border:1px solid var(--gold); color:var(--gold);
    font-size:12px; letter-spacing:0.22em; text-transform:uppercase;
    transition:background .3s ease, color .3s ease;
  }
  .hero-cta:hover{background:var(--gold); color:var(--ink);}
  .scroll-cue{
    position:absolute; bottom:36px; left:50%; transform:translateX(-50%);
    display:flex; flex-direction:column; align-items:center; gap:10px;
    font-size:10px; letter-spacing:0.3em; color:var(--muted); z-index:2;
  }
  .scroll-cue .line{width:1px; height:44px; background:var(--line); position:relative; overflow:hidden;}
  .scroll-cue .line::after{
    content:""; position:absolute; top:-100%; left:0; width:100%; height:100%;
    background:var(--gold); animation:scrollLine 2.2s ease-in-out infinite;
  }
  @keyframes scrollLine{ 0%{top:-100%;} 60%{top:100%;} 100%{top:100%;} }

  /* intro / about */
  .section{padding:130px 0;}
  .section.tight{padding:90px 0;}
  .about-grid{ display:grid; grid-template-columns: 1.1fr 0.9fr; gap:80px; align-items:start; }
  .about-grid .eyebrow{margin-bottom:18px; display:block;}
  .about-grid h2{font-size:clamp(30px,3.4vw,44px); line-height:1.2; margin-bottom:26px;}
  .about-grid p{color:#cfc9bb; line-height:1.85; font-size:15.5px; max-width:52ch;}
  .about-grid p + p{margin-top:16px;}

  /* merged intro / about strip — full width */
  .section.intro-compact{ padding:48px 0; border-bottom:1px solid var(--line); }
  .section.intro-large{
    position:relative; min-height:100vh; display:flex; align-items:center;
    padding:60px 0; border-bottom:1px solid var(--line); overflow:hidden;
  }
  .section.intro-large .container{ width:100%; position:relative; z-index:2; }
  .intro-large .intro-text h2{
    font-size:clamp(34px,4vw,54px); margin:14px 0 16px; line-height:1.1;
  }
  .intro-large .intro-text p{ font-size:17px; margin-bottom:30px; }
  .intro-large .hero-cta{ margin-top:0; margin-bottom:36px; }
  .intro-grid{
    display:flex; flex-direction:column; align-items:center; text-align:center; gap:44px;
  }
  .intro-text{ display:flex; flex-direction:column; align-items:center; max-width:720px; margin:0 auto; }
  .intro-text .eyebrow{margin-bottom:10px; display:block;}
  .intro-text p{color:#cfc9bb; line-height:1.7; font-size:15px; max-width:60ch; text-align:center;}
  .stat-list.compact{ display:flex; justify-content:center; gap:36px; flex-wrap:wrap; }
  .stat-list.compact .stat{ padding-top:10px; text-align:center; min-width:90px; }
  .stat-list.compact .num{ font-size:38px; }
  .stat-list.compact .label{ font-size:11px; }
  @media (max-width:900px){
    .stat-list.compact{gap:24px;}
  }
  .stat-list{display:grid; grid-template-columns:repeat(2,1fr); gap:36px 24px;}
  .stat{border-top:1px solid var(--line); padding-top:16px;}
  .stat .num{font-family:'Bodoni Moda', serif; font-size:44px; color:var(--gold); line-height:1;}
  .stat .label{margin-top:8px; font-size:12px; letter-spacing:0.1em; color:var(--muted); text-transform:uppercase;}

  /* works */
  .works-head{ display:flex; justify-content:space-between; align-items:flex-end; flex-wrap:wrap; gap:20px; margin-bottom:56px; }
  .works-head h2{font-size:clamp(34px,4.4vw,58px);}
  .works-head p{color:var(--muted); font-size:14px; max-width:38ch;}

  .portfolio-image-grid{ column-count:3; column-gap:22px; }
  .gallery-image{
    position:relative; overflow:hidden; border-radius:2px; cursor:pointer;
    display:block; width:100%; margin:0 0 22px;
    break-inside:avoid; -webkit-column-break-inside:avoid;
    opacity:0; transform:translateY(18px);
    animation:riseIn .6s ease forwards;
  }
  @keyframes riseIn{ to{opacity:1; transform:translateY(0);} }
  .gallery-image img{width:100%; height:auto; display:block; transition:transform .8s cubic-bezier(.2,.7,.2,1), filter .5s ease;}
  .gallery-image:hover img{transform:scale(1.06);}
  .gallery-image::after{ content:""; position:absolute; inset:0; background:rgba(0,0,0,0.12); opacity:0; transition:opacity .3s ease; }
  .gallery-image:hover::after{opacity:1;}
  .gallery-image .gi-tag{
    position:absolute; left:16px; bottom:16px; font-size:11px; letter-spacing:0.14em;
    text-transform:uppercase; color:var(--paper);
    opacity:0; transform:translateY(6px); transition:opacity .3s ease, transform .3s ease;
  }
  .gallery-image:hover .gi-tag{opacity:1; transform:translateY(0);}
  .gallery-image .gi-plus{
    position:absolute; right:16px; top:16px; width:30px; height:30px; border-radius:50%;
    border:1px solid var(--gold-soft); display:flex; align-items:center; justify-content:center;
    color:var(--gold); font-size:16px; opacity:0; transform:scale(0.7);
    transition:opacity .3s ease, transform .3s ease;
  }
  .gallery-image:hover .gi-plus{opacity:1; transform:scale(1);}

  @media (max-width:900px){ .portfolio-image-grid{column-count:2;} .about-grid{grid-template-columns:1fr;} }
  @media (max-width:560px){
      .portfolio-image-grid{ column-count:3; column-gap:6px; }
      .gallery-image{ margin-bottom:6px; }
      .gallery-image .gi-tag,
      .gallery-image .gi-plus{ display:none; }
    }

  .scroll-sentinel{
    height:60px; display:flex; align-items:center; justify-content:center; margin-top:20px;
  }
  .scroll-sentinel .spin{
    width:26px; height:26px; border-radius:50%;
    border:2px solid rgba(244,239,230,0.15); border-top-color:var(--gold);
    animation:lbSpin .8s linear infinite;
    opacity:0; transition:opacity .25s ease;
  }
  .scroll-sentinel.loading .spin{opacity:1;}
  .gallery-count{ text-align:center; margin-top:18px; font-size:12px; color:var(--muted); letter-spacing:0.05em; }

  /* lightbox */
  .lightbox{
    position:fixed; inset:0; background:rgba(6,6,5,0.97); backdrop-filter:blur(6px); z-index:2000;
    display:flex; flex-direction:column; align-items:center; justify-content:center;
    opacity:0; pointer-events:none; transition:opacity .35s ease;
  }
  .lb-caption{
    margin-top:22px; font-size:12px; letter-spacing:0.18em; text-transform:uppercase;
    color:var(--gold); opacity:0; transform:translateY(6px);
    transition:opacity .3s ease .1s, transform .3s ease .1s;
  }
  .lightbox.open .lb-caption{opacity:1; transform:translateY(0);}
  .lightbox.open{opacity:1; pointer-events:auto;}
  .lightbox img{
    max-width:88vw; max-height:84vh; object-fit:contain;
    box-shadow:0 30px 80px rgba(0,0,0,0.6);
    opacity:0; transform:scale(0.97); transition:opacity .35s ease, transform .35s ease, filter .5s ease;
  }
  .lightbox.open img{opacity:1; transform:scale(1);}
  .lightbox img.is-loading{ filter:blur(14px) brightness(0.8); transform:scale(1.01); }
  .lb-spinner{
    position:absolute; width:34px; height:34px; border-radius:50%;
    border:2px solid rgba(244,239,230,0.18); border-top-color:var(--gold);
    opacity:0; transition:opacity .25s ease; animation:lbSpin .8s linear infinite;
    pointer-events:none;
  }
  .lb-spinner.show{opacity:1;}
  @keyframes lbSpin{ to{ transform:rotate(360deg); } }
  .lb-close, .lb-prev, .lb-next{
    position:absolute; color:var(--paper); font-size:15px; letter-spacing:0.1em;
    width:48px; height:48px; border:1px solid var(--line); border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    transition:border-color .3s ease, color .3s ease;
  }
  .lb-close:hover, .lb-prev:hover, .lb-next:hover{border-color:var(--gold); color:var(--gold);}
  .lb-close{top:28px; right:32px;}
  .lb-prev{left:24px; top:50%; transform:translateY(-50%);}
  .lb-next{right:24px; top:50%; transform:translateY(-50%);}
  .lb-counter{ position:absolute; bottom:26px; left:50%; transform:translateX(-50%); font-size:12px; letter-spacing:0.16em; color:var(--muted); }
  @media (max-width:700px){ .lb-prev,.lb-next{width:38px; height:38px; font-size:13px;} .lb-close{width:38px; height:38px; top:16px; right:16px;} }

  /* contact / footer */
  .contact-section{ border-top:1px solid var(--line); }
  .contact-grid{ display:grid; grid-template-columns:1fr 1fr; gap:70px; align-items:center; }
  .contact-grid h2{font-size:clamp(30px,3.6vw,46px); margin-bottom:20px;}
  .contact-grid p{color:#cfc9bb; line-height:1.8; max-width:42ch; margin-bottom:28px;}
  .contact-list{display:flex; flex-direction:column; gap:14px; font-size:14px;}
  .contact-list a:hover{color:var(--gold);}
  .contact-list .k{color:var(--muted); font-size:11px; letter-spacing:0.16em; text-transform:uppercase; display:block; margin-bottom:4px;}
  .social-row{display:flex; gap:16px; margin-top:34px;}
  .social-row.small{ margin-top:20px; gap:12px; }
  .social-row.small .social-link{ width:34px; height:34px; }
  .social-row.small .social-link svg{ width:13px; height:13px; }
  .social-link{
    width:44px; height:44px; border:1px solid var(--line); border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    transition:background .3s ease, border-color .3s ease;
  }
  .social-link:hover{background:var(--gold); border-color:var(--gold);}
  .social-link:hover svg{stroke:var(--ink);}
  .social-link svg{width:16px; height:16px; stroke:var(--paper); transition:stroke .3s ease;}
  @media (max-width:900px){ .contact-grid{grid-template-columns:1fr;} }

  footer{border-top:1px solid var(--line); padding:30px 0; font-size:12px; color:var(--muted);}
  .footer-wrapper{display:flex; flex-wrap:wrap; gap:16px; justify-content:space-between; align-items:center;}
  .footer-link-wrapper{display:flex; gap:22px;}
  .footer-link:hover{color:var(--gold);}
