/* Shared base styles for PlanIt with Nikita — common across all pages */

    @font-face {
      font-family: 'Kalufonia';
      src: url('../fonts/Kalufonia-Regular.otf') format('opentype');
    }

    @font-face {
      font-family: 'PS';
      src: url('../fonts/PS.ttf') format('truetype');
    }

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

    html, body { min-height: 100%; background: var(--ivory); color: #000; font-family: 'Lato', sans-serif; }

    body { padding-bottom: 72px; }

    body { padding-bottom: 0 !important; padding-top: 0; }

    .topbar-wrap {
      position: fixed;
      top: 0; left: 0; right: 0;
      z-index: 100;
    }

    .topbar {
      position: relative;
      width: 100%;
      height: 56px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 24px;
      background: rgba(255,255,255,0.5);
      border-bottom: 1px solid transparent;
    }

    .topbar-logo {
      display: flex;
      align-items: center;
      gap: 10px;
      text-decoration: none;
      color: #000;
    }

    .topbar-logo img {
      width: 28px; height: 28px;
      border-radius: 50%;
      object-fit: cover;
    }

    .topbar-wordmark {
      font-family: 'Kalufonia', 'Cormorant Garamond', serif;
      font-size: 21px;
      font-weight: 400;
      letter-spacing: 0;
      color: #000;
      line-height: 1;
      text-transform: none;
      transform: translateY(4px);
    }

    .topbar-links {
      display: none;
      align-items: center;
      gap: 32px;
    }

    .topbar-links a {
      font-family: 'Cormorant Garamond', serif;
      font-size: 14px;
      font-weight: 400;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: #000;
      text-decoration: none;
      position: relative;
    }

    .topbar-links a.on { font-weight: 700; }

    .topbar-links a:hover { opacity: 0.6; }

    /* Mobile menu toggle */

    .menu-toggle {
      display: flex;
      flex-direction: column;
      gap: 4px;
      width: 22px;
      cursor: pointer;
      background: none;
      border: none;
      padding: 8px;
      margin: -8px;
    }

    .menu-toggle span {
      display: block;
      height: 1px;
      background: var(--dark);
      width: 100%;
      transition: all 0.3s;
    }

    .menu-toggle.open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }

    .menu-toggle.open span:nth-child(2) { opacity: 0; }

    .menu-toggle.open span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

    /* Mobile dropdown menu - flat white, full width */

    .mobile-menu-wrap {
      position: fixed;
      top: 56px; left: 0; right: 0;
      z-index: 99;
    }

    .mobile-menu {
      width: 100%;
      max-height: 0;
      overflow: hidden;
      background: #ffffff;
      border-bottom: 1px solid rgba(43,39,36,0.10);
      transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1);
    }

    .mobile-menu.open { max-height: 320px; }

    .mobile-menu-inner {
      display: flex;
      flex-direction: column;
      padding: 8px 24px 20px;
    }

    .mobile-menu a {
      padding: 14px 0;
      font-family: 'Cormorant Garamond', serif;
      font-size: 19px;
      font-weight: 400;
      color: #000;
      text-decoration: none;
      border-bottom: 1px solid rgba(43,39,36,0.08);
    }

    .mobile-menu a.on { opacity: 0.6; }

    .mobile-menu a:last-child { border-bottom: none; }

    @media (min-width: 768px) {
      .topbar-links { display: flex; }
      .menu-toggle { display: none; }
      .topbar { padding: 0 48px; }
    }

    @keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

    .fu { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s ease; }

    .fu.is-visible { opacity: 1; transform: translateY(0); }

    @media (prefers-reduced-motion: reduce) { .fu { opacity: 1; transform: none; transition: none; } }

    @keyframes heroKenBurns { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.08) translate(-1%, -1%); } }

    @media (prefers-reduced-motion: reduce) { .hero-floral, .img-single-img, .page-hero-bg, .final-cta-bg { animation: none !important; } }

    /* stagger for grouped items */

    .process-item:nth-of-type(2) { transition-delay: 0.06s; }

    .process-item:nth-of-type(3) { transition-delay: 0.12s; }

    .process-item:nth-of-type(4) { transition-delay: 0.18s; }

    .svc-grid .svc-card:nth-child(2) { transition-delay: 0.06s; }

    .svc-grid .svc-card:nth-child(3) { transition-delay: 0.12s; }

    .svc-grid .svc-card:nth-child(4) { transition-delay: 0.18s; }

    .svc-grid .svc-card:nth-child(5) { transition-delay: 0.24s; }

    .svc-grid .svc-card:nth-child(6) { transition-delay: 0.3s; }

    em { font-style: italic; color: inherit; }

    body { padding-bottom: 72px; }

    /* ── HERO ── */

    .hero {
      position: relative;
      min-height: 100dvh; min-height: calc(var(--vh, 1vh) * 100);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 80px 24px 40px;
      overflow: hidden;
      gap: 40px;
    }

    .hero-floral { position: absolute; inset: 0; z-index: 0; animation: heroKenBurns 26s ease-in-out infinite alternate; background: url('../images/hero-1.jpg') center/cover no-repeat; }

    .hero-glass { position: absolute; inset: 0; z-index: 1; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }

    .hero-content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; width: 100%; gap: 28px; }

    .logo-img { width: clamp(72px,10vh,92px); height: clamp(72px,10vh,92px); border-radius: 50%; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.12); }

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

    .hero-tagline { display: block; text-align: center; font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: #000; }

    .hero-headline {
      font-family: 'Kalufonia', 'Cormorant Garamond', serif;
      font-weight: 400;
      font-size: clamp(40px, 11vw, 64px);
      color: #000; text-align: center; line-height: 1.1;
      margin: 0;
    }

    .hero-sub {
      font-family: 'Cormorant Garamond', serif;
      font-size: clamp(15px, 4vw, 19px);
      font-weight: 300; color: #000;
      text-align: center; line-height: 1.7; max-width: 320px;
    }

    .hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

    .cta {
      font-size: 10px; font-weight: 400; letter-spacing: 0.22em; text-transform: uppercase;
      padding: 14px 26px; text-decoration: none; transition: opacity 0.2s;
      border-radius: 100px;
    }

    .cta-primary { background: var(--dark); color: var(--ivory); }

    .cta-secondary { border: 1px solid var(--dark); color: #000; }

    .cta-glass {
      background: rgba(255,255,255,0.32);
      backdrop-filter: blur(16px) saturate(180%);
      -webkit-backdrop-filter: blur(16px) saturate(180%);
      border: 1px solid rgba(255,255,255,0.55);
      color: #000;
      box-shadow: 0 4px 18px rgba(43,39,36,0.10), inset 0 1px 0 rgba(255,255,255,0.7);
    }

    .cta-glass:hover { background: rgba(255,255,255,0.48); opacity: 1; }

    .cta:hover { opacity: 0.75; }

    .hero-scroll { position: absolute; bottom: 24px; left: 0; right: 0; width: max-content; margin: 0 auto; text-align: center; font-size: 9px; letter-spacing: 0.3em; text-transform: uppercase; color: #000; opacity: 0.45; z-index: 2; }

    .hero-scroll.is-visible { opacity: 0.45; }

    /* ── SECTION SHARED ── */

    .section { padding: 64px 24px; max-width: 720px; margin: 0 auto; }

    .section-tight { padding: 48px 24px; max-width: 720px; margin: 0 auto; }

    .eyebrow { display: block; font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--light); text-align: center; margin-bottom: 14px; }

    .section-title { font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: clamp(24px, 6.5vw, 34px); line-height: 1.4; text-align: center; color: #000; max-width: 640px; margin: 0 auto; }

    .section-title em { font-style: italic; }

    /* ── WELCOME ── */

    .welcome { background: var(--card); min-height: 60vh; display: flex; flex-direction: column; justify-content: center; }

    .welcome-body { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: clamp(17px, 4.5vw, 22px); line-height: 1.7; text-align: center; color: var(--mid); margin-top: 20px; max-width: 560px; margin-left: auto; margin-right: auto; }

    .welcome-body em { color: #000; }

    /* ── IMAGE STRIP ── */

    .img-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; margin: 0 0 32px; }

    .img-frame { overflow: hidden; display: block; aspect-ratio: 3/4; }

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

    .img-frame:hover img { transform: scale(1.08); }

    .img-strip .img-frame:nth-child(5) { display: none; }

    .img-single-wrap { width: 100%; height: 280px; overflow: hidden; margin: 32px 0; }

    .img-single-img { width: 100%; height: 100%; object-fit: cover; display: block; animation: heroKenBurns 30s ease-in-out infinite alternate; }

    /* ── PROCESS NUMBERS ── */

    .process { background: var(--ivory); }

    .process-item { padding: 28px 0; border-top: 1px solid rgba(43,39,36,0.1); text-align: center; }

    .process-item:last-child { border-bottom: 1px solid rgba(43,39,36,0.1); }

    .process-num { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 13px; color: var(--light); display: block; margin-bottom: 8px; }

    .process-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(19px,5vw,24px); color: #000; margin-bottom: 10px; }

    .process-title em { font-style: italic; }

    .process-desc { font-size: 13px; font-weight: 300; color: var(--mid); line-height: 1.7; max-width: 440px; margin: 0 auto; }

    /* ── SERVICES TEASER ── */

    .svc-teaser { background: var(--card); }

    .svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 28px; }

    .svc-card { display: flex; flex-direction: column; border: 1px solid rgba(43,39,36,0.12); border-radius: 2px; overflow: hidden; text-decoration: none; color: #000; }

    .svc-card-img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; transition: transform 0.5s ease; }

    .svc-card:hover .svc-card-img { transform: scale(1.06); }

    .svc-card-body { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; padding: 16px 14px; flex: 1; }

    .svc-card-name { font-family: 'Cormorant Garamond', serif; font-size: clamp(17px,4.5vw,20px); font-weight: 400; line-height: 1.3; }

    .svc-card-desc { font-size: 12px; font-weight: 300; color: var(--mid); line-height: 1.6; }

    .svc-card-arrow { font-size: 14px; color: var(--light); align-self: flex-end; }

    .svc-cta { text-align: center; margin-top: 28px; }

    /* ── PORTFOLIO TEASER ── */

    .port-teaser { background: var(--ivory); padding: 64px 0; }

    .port-teaser .section-tight { padding: 0 24px 32px; }

    .port-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }

    .port-grid .img-frame { aspect-ratio: 3/4; }

    .port-cta { text-align: center; margin-top: 28px; padding: 0 24px; }

    /* ── TESTIMONIALS ── */

    .testimonial { background: var(--card); padding: 64px 0; }

    .testimonial .section-tight { padding: 0 24px 32px; text-align: center; }

    .testimonial-carousel { position: relative; max-width: 720px; margin: 0 auto; padding: 0 24px; overflow: hidden; display: flex; flex-direction: column; }

    .testimonial-card { display: none; position: relative; background: var(--ivory); border: 1px solid rgba(43,39,36,0.08); border-radius: 2px; padding: 56px 28px 48px; text-align: center; overflow: hidden; }

    .testimonial-card::before { content: ''; position: absolute; inset: 0; background: url('../images/hero-1.jpg') center/cover no-repeat; opacity: 0.14; z-index: 0; }

    .testimonial-card > * { position: relative; z-index: 1; }

    .testimonial-card.active { display: flex; flex-direction: column; justify-content: center; flex: 1; }

    .testimonial-card.slide-in-left  { animation: slideInLeft  0.45s cubic-bezier(0.16,1,0.3,1) both; }

    .testimonial-card.slide-in-right { animation: slideInRight 0.45s cubic-bezier(0.16,1,0.3,1) both; }

    @keyframes slideInLeft  { from { opacity: 0; transform: translateX(24px);  } to { opacity: 1; transform: translateX(0); } }

    @keyframes slideInRight { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: translateX(0); } }

    @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

    .quote-mark-open { position: absolute; top: 6px; left: 20px; font-family: 'Cormorant Garamond', serif; font-size: 88px; font-weight: 600; color: #000; opacity: 0.12; line-height: 1; pointer-events: none; }

    .quote-mark-close { position: absolute; bottom: 6px; right: 20px; font-family: 'Cormorant Garamond', serif; font-size: 88px; font-weight: 600; color: #000; opacity: 0.12; line-height: 1; pointer-events: none; }

    .quote-text { font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 300; font-size: clamp(17px,4.4vw,21px); line-height: 1.6; color: #000; margin: 12px 0 20px; position: relative; }

    .quote-author { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--light); position: relative; }

    @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

    .testimonial-dots { display: flex; justify-content: center; gap: 10px; margin-top: 28px; }

    .dot {
      width: 28px; height: 28px; border-radius: 50%;
      border: 1px solid rgba(43,39,36,0.25);
      background: transparent; color: var(--mid);
      font-family: 'Lato', sans-serif; font-size: 12px;
      display: flex; align-items: center; justify-content: center;
      cursor: pointer; padding: 0;
      transition: background 0.2s, color 0.2s, border-color 0.2s;
    }

    .dot:hover { border-color: var(--dark); }

    .dot.active { background: var(--dark); color: var(--ivory); border-color: var(--dark); }

    /* ── FINAL CTA ── */

    .final-cta { position: relative; overflow: hidden; text-align: center; padding: 80px 24px; }

    .final-cta-bg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; animation: heroKenBurns 26s ease-in-out infinite alternate; }

    .final-cta-glass { position: absolute; inset: 0; z-index: 1; background: rgba(245,240,232,0.55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }

    .final-cta-content { position: relative; z-index: 2; }

    .final-cta-content > * { max-width: 480px; margin-left: auto; margin-right: auto; }

    .final-cta .eyebrow { color: var(--mid); }

    .final-cta-title { font-family: 'Kalufonia', 'Cormorant Garamond', serif; font-size: clamp(36px,9vw,52px); margin-bottom: 16px; color: #000; }

    .final-cta-sub { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: clamp(15px,4vw,18px); color: var(--mid); margin-bottom: 28px; max-width: 320px; margin-left: auto; margin-right: auto; line-height: 1.6; }

    .final-cta-social { display: flex; gap: 20px; justify-content: center; margin-top: 24px; }

    .final-cta-social a { color: rgba(0,0,0,0.65); transition: opacity 0.2s; }

    .final-cta-social a:hover { opacity: 0.6; }

    .final-cta-social svg { width: 20px; height: 20px; fill: currentColor; display: block; }

    @media (min-width: 768px) {
      .img-strip { grid-template-columns: repeat(5, 1fr); }
      .img-strip .img-frame:nth-child(5) { display: block; }
      .img-single-wrap { height: 420px; }
      .port-grid { grid-template-columns: repeat(5, 1fr); }
      .port-grid .img-frame:nth-child(6) { display: none; }
      .svc-grid { grid-template-columns: repeat(2, 1fr); max-width: 640px; margin-left: auto; margin-right: auto; }
    }

    @media (max-width: 480px) {
      .hero-glass { backdrop-filter: blur(1.5px); -webkit-backdrop-filter: blur(1.5px); }
    }

    /* ── LIGHTBOX ── */

    .lb { display: none; position: fixed; inset: 0; z-index: 9999; align-items: center; justify-content: center; }

    .lb.open { display: flex; }

    .lb-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.92); cursor: pointer; }

    .lb-img-wrap { position: relative; z-index: 2; max-width: 88vw; max-height: 86vh; display: flex; align-items: center; justify-content: center; border: 10px solid #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 24px 80px rgba(0,0,0,0.7), 0 4px 20px rgba(0,0,0,0.5); }

    .lb-img-wrap img { max-width: 92vw; max-height: 90vh; width: auto; height: auto; object-fit: contain; display: block; pointer-events: none; user-select: none; -webkit-user-select: none; }

    .lb-close { position: fixed; top: 20px; right: 24px; z-index: 3; background: none; border: none; color: #fff; font-size: 26px; cursor: pointer; line-height: 1; padding: 8px; opacity: 0.75; }

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

    .lb-prev:hover, .lb-next:hover { opacity: 1; }

    @media (max-width: 767px) {
      /* Latest grid mobile order: 1,2,4,3,5,6 */
      .port-grid .img-frame:nth-child(1) { order: 1; }
      .port-grid .img-frame:nth-child(2) { order: 2; }
      .port-grid .img-frame:nth-child(3) { order: 4; }
      .port-grid .img-frame:nth-child(4) { order: 3; }
      .port-grid .img-frame:nth-child(5) { order: 5; }
      .port-grid .img-frame:nth-child(6) { order: 6; }
    }

    /* ── IMAGE PROTECTION ── */

    .img-frame { -webkit-user-select: none; user-select: none; }

    .img-frame img { pointer-events: none; -webkit-user-drag: none; }
