:root{
    --linen: #F3E9DD;
    --linen-deep: #ECDECB;
    --paper: #FBF5EC;
    --ink: #3A2C22;
    --ink-soft: #7A6857;
    --plum: #833C4C;
    --plum-deep: #6B2E3C;
    --moss: #6E7A50;
    --moss-deep: #545E3C;
    --marigold: #D69436;
    --border: #DCC9AE;
    --shadow: rgba(58, 44, 34, 0.14);
    --radius: 22px;
  }

  *{ box-sizing: border-box; }
  html{ scroll-behavior: smooth; }
  body{
    margin:0;
    background: var(--linen);
    color: var(--ink);
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }
  img{ max-width:100%; display:block; }
  a{ color: inherit; text-decoration:none; }
  ul{ margin:0; padding:0; list-style:none; }
  button{ font-family: inherit; cursor:pointer; }
  input, textarea, select{ font-family: inherit; font-size: 1rem; }

  h1,h2,h3,h4{
    font-family:'Fraunces', serif;
    font-weight: 600;
    margin: 0 0 0.5em 0;
    color: var(--plum-deep);
    letter-spacing: -0.01em;
  }
  .display{ font-weight: 500; }
  .script{
    font-family:'Caveat', cursive;
    font-weight: 600;
    color: var(--marigold);
  }

  /* ---------- Texture ---------- */
  .linen-bg{
    background-color: var(--linen);
    background-image:
      radial-gradient(circle at 1px 1px, rgba(131,60,76,0.06) 1px, transparent 0);
    background-size: 22px 22px;
  }

  /* ---------- Stitch divider (signature element) ---------- */
  .stitch{
    width:100%;
    height: 18px;
    display:block;
  }
  .stitch svg{ width:100%; height:100%; display:block; }
  .stitch-underline{
    display:inline-block;
    width: 100%;
    max-width: 220px;
    margin-top: 6px;
  }

  /* ---------- Layout helpers ---------- */
  .wrap{ max-width: 1180px; margin: 0 auto; padding: 0 28px; }
  .section{ padding: 96px 0; }
  .section-tight{ padding: 64px 0; }
  .center{ text-align:center; }
  .eyebrow{
    font-family:'Caveat', cursive;
    font-size: 1.4rem;
    color: var(--moss-deep);
    display:inline-block;
    margin-bottom: 6px;
    transform: rotate(-2deg);
  }
  .lede{
    color: var(--ink-soft);
    font-size: 1.08rem;
    max-width: 620px;
  }
  .center .lede{ margin-left:auto; margin-right:auto; }

  .btn{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding: 15px 30px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid transparent;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  }
  .btn-primary{
    background: var(--plum);
    color: var(--paper);
    box-shadow: 0 8px 20px -8px rgba(107,46,60,0.65);
  }
  .btn-primary:hover{ transform: translateY(-2px) rotate(-0.5deg); background: var(--plum-deep); }
  .btn-outline{
    background: transparent;
    color: var(--plum-deep);
    border: 2px dashed var(--plum);
  }
  .btn-outline:hover{ transform: translateY(-2px) rotate(0.5deg); background: rgba(131,60,76,0.06); }
  .btn-small{ padding: 10px 20px; font-size: 0.9rem; }

  /* ---------- Header / Nav ---------- */
  header{
    position: sticky; top:0; z-index: 500;
    background: rgba(243,233,221,0.92);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--border);
  }
  .nav-wrap{
    max-width:1180px; margin:0 auto; padding: 16px 28px;
    display:flex; align-items:center; justify-content:space-between;
  }
  .logo{
    display:flex; align-items:center; gap:10px;
    font-family:'Fraunces', serif; font-weight:600; font-size:1.35rem;
    color: var(--plum-deep);
  }
  .logo .script{ font-size: 1.6rem; margin-left: 2px; }
  nav.links{ display:flex; gap: 6px; align-items:center; }
  nav.links a{
    padding: 8px 16px;
    font-weight: 500;
    font-size: 0.98rem;
    color: var(--ink-soft);
    border-radius: 999px;
    transition: background .2s, color .2s;
    position: relative;
  }
  nav.links a:hover{ color: var(--plum-deep); background: rgba(131,60,76,0.08); }
  nav.links a.active{ color: var(--plum-deep); background: var(--linen-deep); font-weight:600; }
  .nav-cta{ margin-left: 8px; }

  .hamburger{
    display:none; flex-direction:column; gap:5px; background:none; border:none; padding: 8px;
  }
  .hamburger span{ width: 26px; height: 2px; background: var(--plum-deep); border-radius: 2px; }

  .mobile-panel{
    display:none;
    position: fixed; inset: 0; z-index: 600;
    background: var(--linen);
    padding: 24px 28px;
  }
  .mobile-panel.open{ display:block; }
  .mobile-panel-top{ display:flex; justify-content:space-between; align-items:center; margin-bottom: 30px; }
  .mobile-panel a{
    display:block; font-family:'Fraunces',serif; font-size: 1.6rem; padding: 14px 0;
    border-bottom: 1px dashed var(--border); color: var(--ink);
  }

  /* ---------- Pages ---------- */
  .page{ display:none; }
  .page.active{ display:block; animation: fadein .5s ease; }
  @keyframes fadein{ from{ opacity:0; transform: translateY(10px);} to{opacity:1; transform:none;} }

  /* ---------- Hero ---------- */
  .hero{
    padding: 76px 0 40px;
    position: relative;
    overflow:hidden;
  }
  .hero-grid{
    display:grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items:center;
  }
  .hero h1{
    font-size: clamp(2.4rem, 4.6vw, 3.6rem);
    line-height: 1.08;
    color: var(--plum-deep);
  }
  .hero .subtitle{
    font-family:'Caveat', cursive;
    font-size: 1.6rem;
    color: var(--moss-deep);
    margin: 6px 0 20px;
  }
  .hero .lede{ margin-bottom: 30px; }
  .hero-btns{ display:flex; gap: 16px; flex-wrap:wrap; }

  .hero-cluster{ position:relative; height: 420px; }
  .swatch{
    position:absolute;
    border-radius: 14px;
    box-shadow: 0 18px 34px -14px var(--shadow);
    border: 8px solid var(--paper);
    overflow:hidden;
  }
  .swatch img, .swatch .placeholder{ width:100%; height:100%; }
  .swatch.s1{ width: 58%; top: 0; left: 0; transform: rotate(-6deg); z-index:2; }
  .swatch.s2{ width: 50%; top: 42%; left: 40%; transform: rotate(5deg); z-index:3; }
  .swatch.s3{ width: 40%; top: 4%; left: 58%; transform: rotate(9deg); z-index:1; }
  .tape{
    position:absolute; width: 70px; height: 26px;
    background: rgba(214,148,54,0.55);
    top:-10px; left: 40%;
    transform: rotate(-8deg);
    z-index: 4;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
  }

  /* ---------- Placeholder photo slots ---------- */
  .photo-slot{
    background:
      repeating-linear-gradient(135deg, rgba(131,60,76,0.06) 0 10px, transparent 10px 20px),
      var(--paper);
    border: 2px dashed var(--border);
    border-radius: 14px;
    display:flex; flex-direction:column; align-items:center; justify-content:center;
    gap: 8px;
    color: var(--ink-soft);
    text-align:center;
    padding: 18px;
    min-height: 160px;
  }
  .photo-slot svg{ width: 34px; height: 34px; opacity: 0.65; }
  .photo-slot .ph-label{ font-size: 0.82rem; font-weight:600; letter-spacing: 0.02em; }
  .photo-slot .ph-sub{ font-size: 0.72rem; opacity: 0.8; }

  /* ---------- Craft intro cards ---------- */
  .craft-grid{
    display:grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 50px;
  }
  .craft-card{
    background: var(--paper);
    border-radius: var(--radius);
    padding: 34px 28px;
    box-shadow: 0 14px 30px -18px var(--shadow);
    border: 1px solid var(--border);
    transition: transform .3s ease, box-shadow .3s ease;
  }
  .craft-card:hover{ transform: translateY(-6px); box-shadow: 0 22px 34px -18px var(--shadow); }
  .craft-icon{
    width: 54px; height:54px; border-radius: 50%;
    background: var(--linen-deep);
    display:flex; align-items:center; justify-content:center;
    margin-bottom: 18px;
  }
  .craft-icon svg{ width: 28px; height: 28px; stroke: var(--plum); }
  .craft-card h3{ font-size: 1.35rem; }
  .craft-card p{ color: var(--ink-soft); font-size: 0.97rem; }
  .craft-card .link-more{
    display:inline-flex; align-items:center; gap:6px; margin-top: 14px;
    font-weight:600; color: var(--plum-deep); font-size: 0.92rem;
  }

  /* ---------- Steps ---------- */
  .steps{ display:grid; grid-template-columns: repeat(3,1fr); gap: 36px; margin-top: 50px; position:relative; }
  .step{ text-align:center; position:relative; }
  .step-mark{
    font-family:'Caveat', cursive; font-size: 2.3rem; color: var(--marigold);
    display:block; margin-bottom: 4px;
  }
  .step h4{ font-size: 1.15rem; margin-bottom: 8px; }
  .step p{ color: var(--ink-soft); font-size: 0.93rem; }

  /* ---------- Testimonial-style note ---------- */
  .note-card{
    background: var(--paper);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    padding: 34px;
    max-width: 640px;
    margin: 0 auto;
    text-align:center;
  }
  .note-card .script{ font-size: 1.5rem; display:block; margin-bottom: 10px; }

  /* ---------- Services page ---------- */
  .service-block{
    display:grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items:center;
    padding: 70px 0;
  }
  .service-block.reverse{ direction: rtl; }
  .service-block.reverse > *{ direction: ltr; }
  .service-block + .service-block{ border-top: 1px dashed var(--border); }
  .service-photos{ display:grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .service-photos .photo-slot:first-child{ grid-column: 1 / -1; min-height: 220px; }
  .service-text .tag{
    display:inline-block; background: var(--linen-deep); color: var(--moss-deep);
    padding: 5px 14px; border-radius: 999px; font-size: 0.78rem; font-weight:700;
    letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 14px;
  }
  .service-text ul{ margin: 18px 0 26px; }
  .service-text li{
    padding-left: 26px; position:relative; margin-bottom: 10px; color: var(--ink-soft); font-size: 0.96rem;
  }
  .service-text li::before{
    content:'✦'; position:absolute; left:0; top:1px; color: var(--marigold); font-size: 0.9rem;
  }

  /* ---------- Gallery ---------- */
  .filter-row{ display:flex; gap:10px; justify-content:center; flex-wrap:wrap; margin: 34px 0 46px; }
  .filter-btn{
    padding: 9px 20px; border-radius: 999px; border: 1.5px solid var(--border);
    background: var(--paper); font-weight:600; font-size: 0.9rem; color: var(--ink-soft);
    transition: all .2s ease;
  }
  .filter-btn.active, .filter-btn:hover{ background: var(--plum); color: var(--paper); border-color: var(--plum); }
  .gallery-grid{
    columns: 3 260px; column-gap: 20px;
  }
  .gallery-item{
    break-inside: avoid; margin-bottom: 20px; border-radius: 16px; overflow:hidden;
  }
  .gallery-item .photo-slot{ border-radius: 16px; }
  .gallery-item.h1 .photo-slot{ min-height: 200px; }
  .gallery-item.h2 .photo-slot{ min-height: 280px; }
  .gallery-item.h3 .photo-slot{ min-height: 230px; }
  .gallery-item{ display:block; }
  .gallery-item.hidden{ display:none; }
  .gallery-cap{
    font-size: 0.78rem; color: var(--ink-soft); margin-top: 6px; padding-left: 4px;
  }

  /* ---------- Order form ---------- */
  .order-layout{ display:grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items:start; }
  .form-card{
    background: var(--paper); border-radius: var(--radius); padding: 40px;
    border: 1px solid var(--border); box-shadow: 0 14px 34px -20px var(--shadow);
  }
  .field{ margin-bottom: 22px; }
  .field label{
    display:block; font-weight:600; font-size: 0.9rem; margin-bottom: 8px; color: var(--plum-deep);
  }
  .field .hint{ font-size: 0.78rem; color: var(--ink-soft); font-weight: 400; margin-top: 4px; }
  .field input[type=text], .field input[type=tel], .field input[type=email], .field input[type=date], .field select, .field textarea{
    width:100%; padding: 13px 16px; border-radius: 12px; border: 1.5px solid var(--border);
    background: var(--linen); color: var(--ink); transition: border-color .2s, background .2s;
  }
  .field input:focus, .field select:focus, .field textarea:focus{
    outline: none; border-color: var(--plum); background: var(--paper);
  }
  .field textarea{ min-height: 110px; resize: vertical; }
  .field-row{ display:grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  .upload-box{
    border: 2px dashed var(--border); border-radius: 14px; padding: 26px; text-align:center;
    background: var(--linen); cursor:pointer; transition: border-color .2s;
  }
  .upload-box:hover{ border-color: var(--plum); }
  .upload-box svg{ width:30px; height:30px; margin-bottom:8px; opacity:0.7; }
  .upload-box input{ display:none; }
  .file-name{ margin-top: 10px; font-size: 0.85rem; color: var(--moss-deep); font-weight:600; }

  .price-note{
    margin-top: 8px; background: var(--linen-deep); border-radius: 12px; padding: 14px 16px;
    font-size: 0.86rem; color: var(--ink-soft); display:none;
  }
  .price-note.show{ display:block; }
  .price-note ul{ margin-top: 6px; }
  .price-note li{ margin-bottom: 4px; }
  .price-note li::before{ content:'· '; color: var(--marigold); font-weight:700; }

  .order-side{ position:sticky; top: 100px; }
  .order-side .side-card{
    background: var(--linen-deep); border-radius: var(--radius); padding: 30px; margin-bottom: 22px;
  }
  .order-side .side-card h4{ font-size: 1.05rem; }
  .order-side .side-card p{ font-size: 0.9rem; color: var(--ink-soft); }

  .confirm-box{
    display:none; margin-top: 20px; background: var(--linen-deep); border: 1px dashed var(--moss);
    border-radius: 14px; padding: 18px 20px; font-size: 0.9rem; color: var(--moss-deep); font-weight: 600;
  }
  .confirm-box.show{ display:block; }

  /* ---------- About ---------- */
  .about-grid{ display:grid; grid-template-columns: 0.85fr 1.15fr; gap: 60px; align-items:center; }
  .about-text p{ color: var(--ink-soft); margin-bottom: 16px; }
  .values-row{ display:flex; gap: 18px; margin-top: 30px; flex-wrap:wrap; }
  .value-chip{
    background: var(--paper); border: 1px solid var(--border); border-radius: 999px;
    padding: 10px 18px; font-size: 0.86rem; font-weight:600; color: var(--plum-deep);
  }

  /* ---------- Contact ---------- */
  .contact-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 46px; }
  .contact-card{
    background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 32px; text-align:center; transition: transform .25s;
  }
  .contact-card:hover{ transform: translateY(-5px); }
  .contact-card .c-icon{
    width: 54px; height:54px; border-radius:50%; background: var(--linen-deep);
    display:flex; align-items:center; justify-content:center; margin: 0 auto 16px;
  }
  .contact-card .c-icon svg{ width:26px; height:26px; stroke: var(--plum); }
  .contact-card h4{ font-size: 1.1rem; margin-bottom: 6px; }
  .contact-card p{ color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 16px; }

  .big-cta{ text-align:center; margin-top: 60px; }
  .big-cta p.lede{ margin: 14px auto 26px; }

  /* ---------- Footer ---------- */
  footer{
    background: var(--plum-deep); color: var(--linen); padding: 56px 0 26px; margin-top: 40px;
  }
  .footer-grid{ display:grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
  footer h4{ color: var(--linen); font-family:'Fraunces',serif; font-size: 1.1rem; }
  footer p, footer a{ color: rgba(243,233,221,0.78); font-size: 0.92rem; }
  footer ul li{ margin-bottom: 10px; }
  footer a:hover{ color: var(--linen); }
  .footer-bottom{
    border-top: 1px solid rgba(243,233,221,0.18); padding-top: 22px;
    display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px;
    font-size: 0.82rem; color: rgba(243,233,221,0.6);
  }
  .footer-bottom .script{ color: var(--marigold); }

  /* ---------- Reveal on scroll ---------- */
  .reveal{ opacity:0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
  .reveal.in{ opacity:1; transform:none; }

  /* ---------- Responsive ---------- */
  @media (max-width: 940px){
    .hero-grid{ grid-template-columns: 1fr; }
    .hero-cluster{ height: 320px; margin-top: 20px; }
    .craft-grid{ grid-template-columns: 1fr; }
    .steps{ grid-template-columns: 1fr; }
    .service-block{ grid-template-columns: 1fr; padding: 40px 0; }
    .service-block.reverse{ direction: ltr; }
    .service-block .service-photos{ order: -1; }
    .order-layout{ grid-template-columns: 1fr; }
    .order-side{ position:static; }
    .about-grid{ grid-template-columns: 1fr; }
    .contact-grid{ grid-template-columns: 1fr; }
    .footer-grid{ grid-template-columns: 1fr; }
    nav.links{ display:none; }
    .hamburger{ display:flex; }
    .gallery-grid{ columns: 2 200px; }
  }
  @media (max-width: 560px){
    .field-row{ grid-template-columns: 1fr; }
    .gallery-grid{ columns: 1; }
    .section{ padding: 60px 0; }
  }

  @media (prefers-reduced-motion: reduce){
    *{ animation: none !important; transition: none !important; }
  }
/* ==========================================
   FINAL PAGE NAVIGATION FIX
========================================== */

.page {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

.page.active {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    min-height: 400px !important;
    overflow: visible !important;
}

/* Make the contents visible */
.page.active .center,
.page.active .wrap,
.page.active .section-tight,
.page.active .reveal,
.page.active .contact-card,
.page.active .form-card {
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
}
.price-note {
  font-weight: 700;
  color: #8b3f55;
  background: #f7e5d2;
  padding: 8px 14px;
  border-radius: 8px;
  display: inline-block;
  margin-top: 6px;
}
.my-work-note {
    text-align: center;
    font-weight: 600;
    color: #8b3f55;
    margin: 15px auto 25px;
    max-width: 700px;
    line-height: 1.6;
}