  /* ============================================
     3rd Wish Tattoo — Custom Styles
     ============================================ */

  :root {
    --burgundy: #781F37;
    --burgundy-dark: #5A1528;
    --burgundy-light: #9E2A47;
    --blush: #F5E6E0;
    --blush-light: #FBF5F2;
    --blush-mid: #EED8CF;
    --cream: #FDF8F5;
    --dark: #1A1A1A;
    --dark-soft: #2D2D2D;
    --gray: #6B6B6B;
    --gray-light: #9A9A9A;
    --gray-pale: #E8E4E0;
    --white: #FFFFFF;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  }

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

  html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--dark);
    background-color: var(--cream);
    line-height: 1.7;
    overflow-x: hidden;
  }

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

  a {
    color: inherit;
    text-decoration: none;
  }

  button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
  }

  input, textarea, select {
    font-family: var(--font-body);
    font-size: 1rem;
  }

  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
  }

  /* ============================================
     Navigation
     ============================================ */
  .nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(253, 248, 245, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(120, 31, 55, 0.08);
    transition: background 0.4s var(--ease-out);
  }

  .nav.scrolled {
    background: rgba(253, 248, 245, 0.97);
    box-shadow: 0 1px 20px rgba(120, 31, 55, 0.06);
  }

  .nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
  }

  .nav-logo {
    display: flex;
    align-items: baseline;
    gap: 2px;
    text-decoration: none;
  }

  .nav-logo-num {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 300;
    color: var(--burgundy);
    line-height: 1;
  }

  .nav-logo-word {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--dark);
    line-height: 1;
  }

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

  .nav-links a {
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gray);
    transition: color 0.3s ease;
    position: relative;
  }

  .nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--burgundy);
    transition: width 0.3s var(--ease-out);
  }

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

  .nav-links a::after {
    width: 100%;
  }

  .nav-cta {
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.08em !important;
    color: var(--white) !important;
    background: var(--burgundy);
    padding: 10px 24px;
    border-radius: 100px;
    transition: background 0.3s ease, transform 0.2s ease !important;
  }

  .nav-cta::after {
    display: none !important;
  }

  .nav-cta:hover {
    background: var(--burgundy-dark) !important;
    color: var(--white) !important;
    transform: translateY(-1px);
  }

  .nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--dark);
    transition: color 0.3s ease;
  }

  /* ============================================
     Mobile Menu
     ============================================ */
  .mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: var(--cream);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease-out), visibility 0.4s;
  }

  .mobile-menu.active {
    opacity: 1;
    visibility: visible;
  }

  .mobile-menu-link {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    color: var(--dark);
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
  }

  .mobile-menu-link:hover {
    color: var(--burgundy);
  }

  .mobile-menu-cta {
    font-family: var(--font-body);
    font-size: 0.875rem !important;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--white) !important;
    background: var(--burgundy);
    padding: 14px 36px;
    border-radius: 100px;
    margin-top: 8px;
  }

  .mobile-menu-contact {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .mobile-menu-contact a {
    font-size: 0.875rem;
    color: var(--gray);
    transition: color 0.3s ease;
  }

  .mobile-menu-contact a:hover {
    color: var(--burgundy);
  }

  /* ============================================
     Hero
     ============================================ */
  .hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
  }

  .hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to bottom,
      rgba(26, 26, 26, 0.55) 0%,
      rgba(26, 26, 26, 0.65) 50%,
      rgba(26, 26, 26, 0.80) 100%
    );
  }

  .hero-content {
    position: relative;
    z-index: 1;
    max-width: 780px;
    padding: 0 24px;
    text-align: center;
  }

  .hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--blush);
    margin-bottom: 24px;
    opacity: 0.85;
  }

  .hero-headline {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 300;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 24px;
    letter-spacing: -0.01em;
  }

  .hero-headline em {
    font-style: italic;
    color: var(--blush);
  }

  .hero-sub {
    font-size: 1.0625rem;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(245, 230, 224, 0.8);
    max-width: 560px;
    margin: 0 auto 40px;
  }

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

  .hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    color: rgba(245, 230, 224, 0.5);
    animation: scrollBounce 2s ease-in-out infinite;
    transition: color 0.3s ease;
  }

  .hero-scroll:hover {
    color: var(--blush);
  }

  @keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
  }

  /* ============================================
     Buttons
     ============================================ */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 16px 36px;
    border-radius: 100px;
    transition: all 0.3s var(--ease-out);
    text-decoration: none;
  }

  .btn-primary {
    background: var(--burgundy);
    color: var(--white);
    border: 1.5px solid var(--burgundy);
  }

  .btn-primary:hover {
    background: var(--burgundy-dark);
    border-color: var(--burgundy-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(120, 31, 55, 0.25);
  }

  .btn-ghost {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(245, 230, 224, 0.4);
  }

  .btn-ghost:hover {
    border-color: var(--blush);
    color: var(--blush);
    transform: translateY(-2px);
  }

  .btn-full {
    width: 100%;
  }

  /* ============================================
     Section Divider
     ============================================ */
  .section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
  }

  /* ============================================
     Section Shared
     ============================================ */
  .section-eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--burgundy);
    margin-bottom: 16px;
  }

  .section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    line-height: 1.15;
    color: var(--dark);
    margin-bottom: 20px;
    letter-spacing: -0.01em;
  }

  /* ============================================
     Services
     ============================================ */
  .services {
    padding: 120px 0;
    background: var(--cream);
  }

  .services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 64px;
  }

  .service-card {
    padding: 40px 32px;
    background: var(--white);
    border: 1px solid var(--gray-pale);
    border-radius: 2px;
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
  }

  .service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--burgundy);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease-out);
  }

  .service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(120, 31, 55, 0.08);
    border-color: transparent;
  }

  .service-card:hover::before {
    transform: scaleX(1);
  }

  .service-icon {
    margin-bottom: 24px;
  }

  .service-card h3 {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 400;
    color: var(--dark);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
  }

  .service-card p {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: var(--gray);
    font-weight: 300;
  }

  /* ============================================
     About
     ============================================ */
  .about {
    padding: 120px 0;
    background: var(--white);
  }

  .about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
  }

  .about-image {
    position: relative;
  }

  .about-image img {
    width: 100%;
    height: 750px;
    object-fit: cover;
    border-radius: 2px;
  }

  .about-image::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 60%;
    height: 60%;
    border: 1px solid var(--blush-mid);
    border-radius: 2px;
    z-index: -1;
  }

  .about-content {
    padding: 20px 0;
  }

  .about-text {
    font-size: 1.0625rem;
    line-height: 1.85;
    color: var(--gray);
    font-weight: 300;
    margin-bottom: 20px;
  }

  .about-stats {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid var(--gray-pale);
  }

  .stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .stat-number {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 300;
    color: var(--burgundy);
    line-height: 1;
  }

  .stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gray-light);
  }

  .stat-divider {
    width: 1px;
    height: 48px;
    background: var(--gray-pale);
  }

  /* ============================================
     Gallery
     ============================================ */
  .gallery {
    padding: 120px 0;
    background: var(--cream);
  }

  .gallery .section-title {
    margin-bottom: 48px;
  }

  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    cursor: pointer;
  }

  .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
    display: block;
  }

  .gallery-item:nth-child(1) { grid-row: span 2; }
  .gallery-item:nth-child(1) img { height: calc(100% * 2 + 16px); }
  .gallery-item:nth-child(3) { grid-row: span 2; }
  .gallery-item:nth-child(3) img { height: calc(100% * 2 + 16px); }

  .gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(120, 31, 55, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s var(--ease-out);
  }

  .gallery-overlay span {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--white);
    letter-spacing: 0.08em;
  }

  .gallery-item:hover img {
    transform: scale(1.05);
  }

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

  .gallery-note {
    text-align: center;
    margin-top: 32px;
    font-size: 0.875rem;
    color: var(--gray-light);
    font-style: italic;
    font-family: var(--font-display);
    font-size: 1.125rem;
  }

  /* ============================================
     Process
     ============================================ */
  .process {
    padding: 120px 0;
    background: var(--dark);
  }

  .process .section-eyebrow {
    color: var(--blush);
    opacity: 0.7;
  }

  .process .section-title {
    color: var(--white);
    margin-bottom: 64px;
  }

  .process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
  }

  .process-step {
    position: relative;
  }

  .process-step::after {
    content: '';
    position: absolute;
    top: 24px;
    right: -20px;
    width: 40px;
    height: 1px;
    background: rgba(245, 230, 224, 0.2);
  }

  .process-step:last-child::after {
    display: none;
  }

  .step-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 300;
    color: var(--burgundy-light);
    line-height: 1;
    margin-bottom: 20px;
    display: block;
  }

  .process-step h3 {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 12px;
  }

  .process-step p {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: rgba(245, 230, 224, 0.55);
    font-weight: 300;
  }

  /* ============================================
     FAQ
     ============================================ */
  .faq {
    padding: 120px 0;
    background: var(--white);
  }

  .faq .section-title {
    margin-bottom: 48px;
  }

  .faq-list {
    max-width: 800px;
  }

  .faq-item {
    border-bottom: 1px solid var(--gray-pale);
  }

  .faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 28px 0;
    text-align: left;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--dark);
    transition: color 0.3s ease;
  }

  .faq-question:hover {
    color: var(--burgundy);
  }

  .faq-toggle {
    flex-shrink: 0;
    transition: transform 0.3s var(--ease-out);
    color: var(--burgundy);
  }

  .faq-question[aria-expanded="true"] .faq-toggle {
    transform: rotate(45deg);
  }

  .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease-out), padding 0.4s var(--ease-out);
  }

  .faq-answer.open {
    max-height: 300px;
    padding-bottom: 28px;
  }

  .faq-answer p {
    font-size: 0.9375rem;
    line-height: 1.8;
    color: var(--gray);
    font-weight: 300;
  }

  .faq-answer a {
    color: var(--burgundy);
    text-decoration: underline;
    text-decoration-color: rgba(120, 31, 55, 0.3);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.3s ease;
  }

  .faq-answer a:hover {
    text-decoration-color: var(--burgundy);
  }

  /* ============================================
     Contact
     ============================================ */
  .contact {
    padding: 120px 0;
    background: var(--blush-light);
  }

  .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
  }

  .contact-text {
    font-size: 1.0625rem;
    line-height: 1.85;
    color: var(--gray);
    font-weight: 300;
    margin-bottom: 40px;
  }

  .contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    font-size: 0.9375rem;
    color: var(--dark);
    transition: color 0.3s ease;
  }

  .contact-detail:hover {
    color: var(--burgundy);
  }

  .contact-detail svg {
    flex-shrink: 0;
    margin-top: 3px;
  }

  .contact-detail span {
    line-height: 1.6;
  }

  .contact-form-wrap {
    background: var(--white);
    padding: 48px;
    border-radius: 2px;
    border: 1px solid var(--gray-pale);
  }

  .form-group {
    margin-bottom: 24px;
  }

  .form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 8px;
  }

  .form-group input,
  .form-group textarea {
    width: 100%;
    padding: 14px 0;
    border: none;
    border-bottom: 1px solid var(--gray-pale);
    background: transparent;
    color: var(--dark);
    font-size: 1rem;
    font-weight: 300;
    transition: border-color 0.3s ease;
    outline: none;
    border-radius: 0;
    -webkit-appearance: none;
  }

  .form-group input::placeholder,
  .form-group textarea::placeholder {
    color: var(--gray-light);
  }

  .form-group input:focus,
  .form-group textarea:focus {
    border-bottom-color: var(--burgundy);
  }

  .form-group textarea {
    resize: vertical;
    min-height: 120px;
  }

  .form-success {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 20px 0;
    margin-top: 20px;
    font-size: 0.9375rem;
    color: var(--burgundy);
    font-weight: 400;
  }

  .form-success.show {
    display: flex;
  }

  /* ============================================
     Map
     ============================================ */
  .map-section {
    height: 380px;
    background: var(--gray-pale);
  }

  .map-section iframe {
    width: 100%;
    height: 100%;
    display: block;
    filter: grayscale(0.3) contrast(1.05);
  }

  /* ============================================
     Footer
     ============================================ */
  .footer {
    background: var(--dark);
    padding: 80px 0 40px;
  }

  .footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
  }

  .footer-brand p {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: rgba(245, 230, 224, 0.5);
    font-weight: 300;
    margin-top: 20px;
    max-width: 280px;
  }

  .footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .footer-links a {
    font-size: 0.875rem;
    color: rgba(245, 230, 224, 0.5);
    transition: color 0.3s ease;
    font-weight: 300;
  }

  .footer-links a:hover {
    color: var(--blush);
  }

  .footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .footer-contact a {
    font-size: 0.9375rem;
    color: rgba(245, 230, 224, 0.5);
    transition: color 0.3s ease;
    font-weight: 300;
  }

  .footer-contact a:hover {
    color: var(--blush);
  }

  .footer-contact span {
    font-size: 0.9375rem;
    color: rgba(245, 230, 224, 0.5);
    font-weight: 300;
    line-height: 1.6;
  }

  .footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(245, 230, 224, 0.08);
  }

  .footer-bottom p {
    font-size: 0.8125rem;
    color: rgba(245, 230, 224, 0.3);
    font-weight: 300;
  }

  /* ============================================
     Responsive
     ============================================ */
  @media (max-width: 1024px) {
    .services-grid {
      grid-template-columns: repeat(2, 1fr);
    }

    .process-steps {
      grid-template-columns: repeat(2, 1fr);
      gap: 48px;
    }

    .process-step::after {
      display: none;
    }

    .about-grid {
      gap: 48px;
    }

    .contact-grid {
      gap: 48px;
    }
  }

  @media (max-width: 768px) {
    .nav-links {
      display: none;
    }

    .nav-toggle {
      display: flex;
    }

    .hero-headline {
      font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero-actions {
      flex-direction: column;
      gap: 12px;
    }

    .hero-actions .btn {
      width: 100%;
      text-align: center;
    }

    .services-grid {
      grid-template-columns: 1fr;
      gap: 20px;
    }

    .service-card {
      padding: 32px 28px;
    }

    .about-grid {
      grid-template-columns: 1fr;
      gap: 40px;
    }

    .about-image img {
      height: 500px;
    }

    .about-image::after {
      display: none;
    }

    .gallery-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 8px;
    }

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

    .gallery-item:nth-child(1) img,
    .gallery-item:nth-child(3) img {
      height: 100%;
    }

    .process-steps {
      grid-template-columns: 1fr;
      gap: 40px;
    }

    .contact-grid {
      grid-template-columns: 1fr;
      gap: 48px;
    }

    .contact-form-wrap {
      padding: 32px 24px;
    }

    .footer-grid {
      grid-template-columns: 1fr;
      gap: 40px;
    }

    .about-stats {
      flex-wrap: wrap;
      gap: 24px;
    }

    .stat-divider {
      display: none;
    }
  }

  @media (max-width: 480px) {
    .container {
      padding: 0 20px;
    }

    .services,
    .about,
    .gallery,
    .process,
    .faq,
    .contact {
      padding: 80px 0;
    }

    .gallery-grid {
      grid-template-columns: 1fr;
    }
  }

  /* ============================================
     Reduced Motion
     ============================================ */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      transition-duration: 0.01ms !important;
    }

    html {
      scroll-behavior: auto;
    }

    .hero-scroll {
      animation: none;
    }
  }
</style>
<sm-file path="script.js">
  /* ============================================
     3rd Wish Tattoo — Interactions
     ============================================ */

  (function () {
    'use strict';

    // ---- Navigation scroll behavior ----
    const nav = document.getElementById('nav');
    let lastScroll = 0;

    function handleNavScroll() {
      const currentScroll = window.pageYOffset;
      if (currentScroll > 60) {
        nav.classList.add('scrolled');
      } else {
        nav.classList.remove('scrolled');
      }
      lastScroll = currentScroll;
    }

    window.addEventListener('scroll', handleNavScroll, { passive: true });

    // ---- Mobile menu ----
    const navToggle = document.getElementById('navToggle');
    const mobileMenu = document.getElementById('mobileMenu');
    const mobileLinks = mobileMenu.querySelectorAll('a');

    function toggleMenu() {
      const isOpen = mobileMenu.classList.contains('active');
      mobileMenu.classList.toggle('active');
      navToggle.setAttribute('aria-expanded', !isOpen);
      document.body.style.overflow = isOpen ? '' : 'hidden';
    }

    navToggle.addEventListener('click', toggleMenu);

    mobileLinks.forEach(function (link) {
      link.addEventListener('click', function () {
        mobileMenu.classList.remove('active');
        navToggle.setAttribute('aria-expanded', 'false');
        document.body.style.overflow = '';
      });
    });

    // ---- FAQ Accordion ----
    const faqQuestions = document.querySelectorAll('.faq-question');

    faqQuestions.forEach(function (question) {
      question.addEventListener('click', function () {
        const expanded = this.getAttribute('aria-expanded') === 'true';
        const answer = this.nextElementSibling;

        // Close all others
        faqQuestions.forEach(function (q) {
          q.setAttribute('aria-expanded', 'false');
          q.nextElementSibling.classList.remove('open');
        });

        // Toggle current
        this.setAttribute('aria-expanded', !expanded);
        answer.classList.toggle('open');
      });
    });

    // ---- Contact Form ----
    const contactForm = document.getElementById('contactForm');
    const formSuccess = document.getElementById('formSuccess');

    if (contactForm) {
      contactForm.addEventListener('submit', function (e) {
        e.preventDefault();

        // Simple validation
        const name = document.getElementById('name').value.trim();
        const email = document.getElementById('email').value.trim();
        const idea = document.getElementById('idea').value.trim();

        if (!name || !email || !idea) {
          return;
        }

        // Simulate submission
        const submitBtn = contactForm.querySelector('button[type="submit"]');
        submitBtn.textContent = 'Sending...';
        submitBtn.disabled = true;

        setTimeout(function () {
          contactForm.reset();
          formSuccess.classList.add('show');
          submitBtn.textContent = 'Send Message';
          submitBtn.disabled = false;

          // Hide success message after 6 seconds
          setTimeout(function () {
            formSuccess.classList.remove('show');
          }, 6000);
        }, 1200);
      });
    }

    // ---- Smooth scroll for anchor links ----
    document.querySelectorAll('a[href^="#"]').forEach(function (anchor) {
      anchor.addEventListener('click', function (e) {
        const targetId = this.getAttribute('href');
        if (targetId === '#') return;

        const target = document.querySelector(targetId);
        if (target) {
          e.preventDefault();
          const navHeight = nav.offsetHeight;
          const targetPosition = target.getBoundingClientRect().top + window.pageYOffset - navHeight;

          window.scrollTo({
            top: targetPosition,
            behavior: 'smooth'
          });
        }
      });
    });

    // ---- Scroll reveal for below-fold sections ----
    // Only applies when user prefers motion; content is always visible
    if (window.matchMedia('(prefers-reduced-motion: no-preference)').matches) {
      const revealElements = document.querySelectorAll(
        '.services, .about, .gallery, .process, .faq, .contact'
      );

      const observerOptions = {
        root: null,
        rootMargin: '0px 0px -80px 0px',
        threshold: 0.1
      };

      const revealObserver = new IntersectionObserver(function (entries) {
        entries.forEach(function (entry) {
          if (entry.isIntersecting) {
            entry.target.style.opacity = '1';
            entry.target.style.transform = 'translateY(0)';
            revealObserver.unobserve(entry.target);
          }
        });
      }, observerOptions);

      revealElements.forEach(function (el) {
        el.style.opacity = '0';
        el.style.transform = 'translateY(24px)';
        el.style.transition = 'opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1)';
        revealObserver.observe(el);
      });
    } else {
      // If reduced motion is preferred, ensure everything is visible
      document.querySelectorAll('.services, .about, .gallery, .process, .faq, .contact').forEach(function (el) {
        el.style.opacity = '1';
        el.style.transform = 'none';
      });
    }

  })();
