/*
Theme Name: Leonie Petzoldt
Theme URI: https://leonie-petzoldt.de
Description: Custom WordPress theme for Leonie Petzoldt - Systemische Therapeutin & Beraterin. Split-screen design with animated gradient blobs and section-based color variants.
Version: 1.0.0
Author: Angelique Thummerer
Author URI: https://angeliquethummerer.de
Text Domain: leonie-petzoldt
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Leonie Petzoldt WordPress Theme
Copyright (C) 2026

This theme is based on leonie-design-v14.html
Fotos: Elisa Hammerbacher, Februar 2026
*/

      /* ═══════════════════════════════════════════════════════════════
         DESIGN TOKENS · LIGHT THEME (default)
      ═══════════════════════════════════════════════════════════════ */
      :root {
        --cream: #f4f0e8;
        --white: #fdfaf5;
        --black: #1a1a18;
        --mid: #5a5850;
        --light: #e2ddd4;
        --orange: #c84e18;
        --orange-hover: #b44416;

        --radius: 4px;
        --radius-btn: 2px;
        --shadow-hover: 0 4px 24px rgba(0, 0, 0, 0.12);
        --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.04);
        --border: 1px solid var(--light);
        --focus-ring: 0 0 0 3px rgba(200, 78, 24, 0.35);

        --font-serif: "Playfair Display", Georgia, serif;
        --font-sans: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;

        /* Fluid spacing scale */
        --space-section-y: clamp(52px, 9vw, 112px);
        --space-section-x: clamp(20px, 5vw, 72px);
      }

      /* ═══════════════════════════════════════════════════════════════
         RESET · BASE
      ═══════════════════════════════════════════════════════════════ */
      *,
      *::before,
      *::after {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
      }

      html {
        -webkit-text-size-adjust: 100%;
        scroll-behavior: smooth;
      }

      body {
        font-family: var(--font-sans);
        font-weight: 300;
        line-height: 1.65;
        background: #efe5d5;
        color: var(--black);
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        min-height: 100vh;
      }

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

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

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

      /* Accessible focus — visible on all interactive elements */
      :focus-visible {
        outline: none;
        box-shadow: var(--focus-ring);
        border-radius: 2px;
      }

      /* Skip-to-content link — hidden until focused */
      .skip-link {
        position: absolute;
        top: -60px;
        left: 12px;
        padding: 10px 16px;
        background: var(--orange);
        color: var(--white);
        border-radius: var(--radius);
        z-index: 9999;
        font-size: 14px;
        font-weight: 500;
        transition: top 0.2s;
      }
      .skip-link:focus-visible {
        top: 12px;
      }

      /* Honour user's motion preference */
      @media (prefers-reduced-motion: reduce) {
        *,
        *::before,
        *::after {
          animation-duration: 0.001ms !important;
          animation-iteration-count: 1 !important;
          transition-duration: 0.001ms !important;
          scroll-behavior: auto !important;
        }
      }

      /* ═══════════════════════════════════════════════════════════════
         MOBILE-FIRST LAYOUT
         Mobile: stacked (panel on top, content below)
         Desktop ≥769px: split-screen (40% left · 60% right)
      ═══════════════════════════════════════════════════════════════ */

      /* Mobile default: normal document flow */
      .page-wrap {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
      }

      .left-panel {
        position: sticky;
        top: 0;
        z-index: 50;
        width: 100%;
        height: 56vw;
        min-height: 240px;
        max-height: 360px;
        overflow: hidden;
        transition:
          height 0.35s ease,
          min-height 0.35s ease,
          max-height 0.35s ease;
      }

      /* Compact mobile banner when user scrolls */
      .left-panel.mob-compact {
        height: 140px;
        min-height: 140px;
        max-height: 140px;
      }
      .left-panel.mob-compact .left-overlay {
        flex-direction: column;
        align-items: flex-start;
        justify-content: space-between;
        padding: 14px 18px 12px;
      }
      .left-panel.mob-compact .left-heading-wrap {
        flex: 0;
        padding: 0;
        margin-top: 0;
      }
      .left-panel.mob-compact .left-heading {
        font-size: clamp(22px, 5.5vw, 32px);
      }
      .left-panel.mob-compact .left-badges {
        display: none;
      }
      .left-panel.mob-compact .section-dots {
        position: static;
        flex-wrap: nowrap;
        gap: 10px;
      }
      .left-panel.mob-compact .left-name {
        font-size: 12px;
      }

      .right-panel {
        width: 100%;
      }

      /* ─── DESKTOP: split screen ─── */
      @media (min-width: 769px) {
        html,
        body {
          height: 100%;
          overflow: hidden;
        }

        .page-wrap {
          flex-direction: row;
          height: 100vh;
        }

        .left-panel {
          position: fixed;
          top: 0;
          left: 0;
          width: 40%;
          height: 100vh;
          min-height: 100vh;
          max-height: 100vh;
        }

        .right-panel {
          margin-left: 40%;
          width: 60%;
          height: 100vh;
          overflow-y: scroll;
          scroll-behavior: smooth;
          scrollbar-width: none;
        }
        .right-panel::-webkit-scrollbar {
          display: none;
        }
      }

      /* ═══════════════════════════════════════════════════════════════
         LEFT-PANEL BACKGROUND
         Layered gradient blobs, per-section colour variants
      ═══════════════════════════════════════════════════════════════ */

      .scape-bg {
        position: absolute;
        inset: 0;
        background: #e8dcc6;
        transition: background 1.6s ease;
      }

      .scape-blob-1,
      .scape-blob-2,
      .scape-blob-3 {
        position: absolute;
        inset: -30%;
        will-change: transform;
      }

      /* Blob 1 — warm glow */
      .scape-blob-1 {
        background: radial-gradient(
          ellipse 55% 45% at 42% 52%,
          rgba(200, 78, 24, 0.32) 0%,
          transparent 70%
        );
        animation: blob1 22s ease-in-out infinite;
      }

      /* Blob 2 — cool accent */
      .scape-blob-2 {
        background: radial-gradient(
          ellipse 40% 35% at 65% 35%,
          rgba(150, 110, 190, 0.26) 0%,
          transparent 68%
        );
        animation: blob2 28s ease-in-out infinite;
      }

      /* Blob 3 — bottom warmth */
      .scape-blob-3 {
        background: radial-gradient(
          ellipse 50% 40% at 30% 80%,
          rgba(220, 160, 60, 0.26) 0%,
          transparent 65%
        );
        animation: blob3 18s ease-in-out infinite;
      }

      @keyframes blob1 {
        0%,
        100% {
          transform: translate(0, 0) scale(1);
        }
        30% {
          transform: translate(8%, -12%) scale(1.08);
        }
        65% {
          transform: translate(-6%, 9%) scale(0.95);
        }
      }
      @keyframes blob2 {
        0%,
        100% {
          transform: translate(0, 0) scale(1);
        }
        40% {
          transform: translate(-10%, 8%) scale(1.06);
        }
        70% {
          transform: translate(6%, -7%) scale(0.97);
        }
      }
      @keyframes blob3 {
        0%,
        100% {
          transform: translate(0, 0) scale(1);
        }
        50% {
          transform: translate(5%, -6%) scale(1.04);
        }
      }

      /* ─── SECTION VARIANTS · LIGHT (default) — moderately intensified ─── */
      /* hero (default) — warm cream */
      .scape-bg {
        background: #ede1cc;
      }

      #leftPanel.v-forest .scape-bg {
        background: #d8e6dc;
      } /* Therapie — sage */
      #leftPanel.v-plum .scape-bg {
        background: #e8d8e4;
      } /* Angebot — plum */
      #leftPanel.v-slate .scape-bg {
        background: #d6deeb;
      } /* Kontakt — slate */
      #leftPanel.v-sand .scape-bg {
        background: #ecdec2;
      } /* fallback — sand */

      /* Blob tints per variant */
      #leftPanel.v-forest .scape-blob-1 {
        background: radial-gradient(
          ellipse 55% 45% at 42% 52%,
          rgba(46, 140, 92, 0.26) 0%,
          transparent 70%
        );
      }
      #leftPanel.v-plum .scape-blob-1 {
        background: radial-gradient(
          ellipse 55% 45% at 42% 52%,
          rgba(160, 60, 130, 0.26) 0%,
          transparent 70%
        );
      }
      #leftPanel.v-slate .scape-blob-1 {
        background: radial-gradient(
          ellipse 55% 45% at 42% 52%,
          rgba(70, 100, 200, 0.24) 0%,
          transparent 70%
        );
      }
      #leftPanel.v-sand .scape-blob-1 {
        background: radial-gradient(
          ellipse 55% 45% at 42% 52%,
          rgba(200, 120, 40, 0.28) 0%,
          transparent 70%
        );
      }

      /* Noise grain */
      .scape-grain {
        position: absolute;
        inset: 0;
        z-index: 2;
        pointer-events: none;
        opacity: 0.05;
        background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
        background-size: 160px 160px;
        mix-blend-mode: overlay;
      }

      /* Dim for pillar hover */
      .left-dim {
        position: absolute;
        inset: 0;
        z-index: 3;
        background: rgba(0, 0, 0, 0);
        transition: background 0.45s ease;
        pointer-events: none;
      }
      #leftPanel.detail-active .left-dim {
        background: rgba(0, 0, 0, 0.28);
      }
      #leftPanel.detail-active .section-dots {
        opacity: 0;
        pointer-events: none;
      }
      .section-dots {
        transition: opacity 0.3s ease;
      }

      /* ═══════════════════════════════════════════════════════════════
         LEFT-PANEL OVERLAY · HEADING · DOTS
      ═══════════════════════════════════════════════════════════════ */
      .left-overlay {
        position: absolute;
        inset: 0;
        z-index: 4;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: flex-start;
        padding: 18px 22px 16px;
        pointer-events: none;
      }

      @media (min-width: 769px) {
        .left-overlay {
          justify-content: flex-start;
          padding: 44px;
        }
      }

      /* Name: mobile shows in overlay top; desktop uses right-name */
      .left-name {
        font-family: var(--font-serif);
        font-size: 13px;
        font-weight: 700;
        color: color-mix(in srgb, var(--black) 70%, transparent);
        letter-spacing: 0.03em;
        pointer-events: auto;
        display: block;
      }
      .left-name i {
        font-style: italic;
        color: color-mix(in srgb, var(--black) 55%, transparent);
      }

      @media (min-width: 769px) {
        .left-name {
          display: none;
        }
      }

      /* Right-panel sticky name — desktop only */
      .right-name {
        display: none;
      }

      @media (min-width: 769px) {
        .right-name {
          position: sticky;
          top: 0;
          z-index: 5;
          background: var(--white);
          padding: 12px 72px;
          text-align: right;
          font-family: var(--font-serif);
          font-size: 16px;
          font-weight: 700;
          letter-spacing: 0.01em;
          color: #c8c3b7;
          display: block;
        }
        .right-name i {
          font-style: italic;
        }
      }

      /* Big left heading */
      .left-heading-wrap {
        display: flex;
        align-items: flex-end;
        padding: 0;
        width: 100%;
        flex: 1;
      }

      @media (min-width: 769px) {
        .left-heading-wrap {
          align-items: center;
          padding: 0 8px;
          margin-top: 10vh;
          flex: 0 0 auto;
        }
      }

      .left-heading {
        font-family: var(--font-serif);
        font-weight: 800;
        font-size: clamp(30px, 7.5vw, 52px);
        line-height: 1;
        letter-spacing: -0.025em;
        color: var(--black);
        max-width: 95%;
        opacity: 1;
        transition:
          opacity 0.35s ease,
          transform 0.35s ease;
      }

      @media (min-width: 769px) {
        .left-heading {
          font-size: clamp(52px, 6.5vw, 88px);
          max-width: 92%;
        }
      }

      .left-heading i {
        font-style: italic;
        color: var(--orange);
      }
      .left-heading.fade-out {
        opacity: 0;
        transform: translateY(12px);
      }

      /* Section dots — horizontal on mobile, vertical on desktop */
      .section-dots {
        position: static;
        display: flex;
        flex-direction: row;
        gap: 12px;
        flex-wrap: wrap;
        pointer-events: auto;
      }

      @media (min-width: 769px) {
        .section-dots {
          position: absolute;
          bottom: 44px;
          left: 44px;
          flex-direction: column;
          gap: 10px;
          flex-wrap: nowrap;
        }
      }

      .dot-item {
        display: flex;
        align-items: center;
        gap: 10px;
        cursor: pointer;
        opacity: 0.45;
        transition: opacity 0.3s;
        padding: 4px 0; /* larger tap target */
      }
      .dot-item.active {
        opacity: 1;
      }
      .dot-item:hover,
      .dot-item:focus-visible {
        opacity: 0.8;
      }

      .dot {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: var(--black);
        transition:
          width 0.35s,
          border-radius 0.35s;
        flex-shrink: 0;
      }
      .dot-item.active .dot {
        width: 22px;
        border-radius: var(--radius-btn);
      }
      .dot-label {
        display: none; /* hidden on mobile */
        font-family: var(--font-sans);
        font-size: 11px;
        font-weight: 500;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--black);
        white-space: nowrap;
      }
      @media (min-width: 769px) {
        .dot-label {
          display: inline;
        }
      }

      /* Badges */
      .left-badges {
        position: absolute;
        bottom: 14px;
        right: 16px;
        z-index: 5;
        display: flex;
        flex-direction: column;
        gap: 8px;
        align-items: flex-end;
      }

      @media (max-width: 480px) {
        .left-badges {
          display: none;
        }
      }

      @media (min-width: 769px) {
        .left-badges {
          bottom: 40px;
          right: 36px;
        }
      }

      .badge {
        background: color-mix(in srgb, var(--black) 8%, transparent);
        border: 1px solid color-mix(in srgb, var(--black) 14%, transparent);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        border-radius: 40px;
        padding: 6px 12px;
        font-family: var(--font-sans);
        font-size: 9px;
        font-weight: 500;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: color-mix(in srgb, var(--black) 78%, transparent);
        display: flex;
        align-items: center;
        gap: 7px;
      }
      @media (min-width: 769px) {
        .badge {
          font-size: 10px;
          padding: 7px 14px;
        }
      }
      .badge-dot {
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: color-mix(in srgb, var(--black) 50%, transparent);
      }

      /* ═══════════════════════════════════════════════════════════════
         RIGHT PANEL · CONTENT
      ═══════════════════════════════════════════════════════════════ */
      .right-panel {
        background: var(--white);
        color: var(--black);
      }

      .section {
        padding: var(--space-section-y) var(--space-section-x);
      }

      /* Scroll reveal */
      .reveal {
        opacity: 0;
        transform: translateY(18px);
        transition:
          opacity 0.7s ease,
          transform 0.7s ease;
      }
      .reveal.on {
        opacity: 1;
        transform: translateY(0);
      }

      /* Typography */
      h2,
      h3 {
        font-family: var(--font-serif);
        font-weight: 700;
        line-height: 1.1;
        letter-spacing: -0.02em;
      }
      h2 {
        font-size: clamp(28px, 5vw, 56px);
        margin-bottom: 24px;
      }
      h3 {
        font-size: clamp(17px, 2vw, 22px);
      }
      h2 i {
        font-style: italic;
        color: var(--orange);
      }

      .label {
        font-family: var(--font-sans);
        font-size: 11px;
        font-weight: 500;
        letter-spacing: 0.18em;
        text-transform: uppercase;
        color: var(--orange);
        margin-bottom: 18px;
        display: block;
      }

      .body-text {
        font-size: clamp(15px, 1.6vw, 16px);
        line-height: 1.8;
        color: var(--mid);
        max-width: 100%;
      }
      @media (min-width: 769px) {
        .body-text {
          max-width: 480px;
        }
      }

      .section-title {
        font-family: var(--font-serif);
        font-weight: 700;
        font-size: clamp(22px, 2.6vw, 30px);
        line-height: 1.2;
        letter-spacing: -0.015em;
        color: var(--black);
        margin-bottom: 18px;
      }

      /* Intro questions */
      .intro-questions {
        list-style: none;
        margin-top: 28px;
        display: flex;
        flex-direction: column;
        max-width: 100%;
      }
      @media (min-width: 769px) {
        .intro-questions {
          max-width: 520px;
        }
      }
      .intro-questions li {
        font-size: 15px;
        line-height: 1.7;
        color: var(--black);
        padding: 14px 0 14px 28px;
        position: relative;
      }
      .intro-questions li::before {
        content: "→";
        position: absolute;
        left: 0;
        top: 14px;
        color: var(--orange);
        font-size: 13px;
      }

      /* ─── Two-column layout for Therapie + Kontakt ─── */
      .begleitung-section {
        padding-right: var(--space-section-x);
      }
      .begleitung-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0;
        align-items: start;
      }
      .begleitung-text {
        padding-right: 0;
        padding-top: 0;
      }
      .begleitung-text .body-text {
        max-width: 100%;
      }

      .begleitung-portrait {
        position: static;
        height: 260px;
        overflow: hidden;
        border-radius: var(--radius);
        margin-top: 0;
        margin-bottom: 32px;
        order: -1;
      }
      .begleitung-portrait img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
      }

      @media (min-width: 769px) {
        .begleitung-section {
          padding-right: 0;
        } /* portrait bleeds to edge */
        .begleitung-grid {
          grid-template-columns: 1fr 260px;
        }
        .begleitung-text {
          padding-right: 48px;
          order: 1;
        }
        .begleitung-portrait {
          position: sticky;
          top: calc(50vh - 210px);
          height: 420px;
          margin-top: 0;
          border-radius: var(--radius) 0 0 var(--radius);
          order: 2;
        }
      }

      /* HERO */
      .hero-section {
        padding: var(--space-section-y) var(--space-section-x);
        min-height: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
      }
      @media (min-width: 769px) {
        .hero-section {
          min-height: 88vh;
        }
      }

      /* Buttons */
      .btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: var(--orange);
        color: var(--white);
        font-family: var(--font-sans);
        font-size: 13px;
        font-weight: 500;
        letter-spacing: 0.06em;
        padding: 14px 28px;
        border-radius: var(--radius-btn);
        width: fit-content;
        transition:
          background 0.2s,
          transform 0.2s;
        margin-top: 32px;
      }
      .btn:hover {
        background: var(--orange-hover);
      }
      .btn:active {
        transform: translateY(1px);
      }

      .btn-outline {
        background: transparent;
        color: var(--orange);
        border: 1.5px solid var(--orange);
      }
      .btn-outline:hover {
        background: var(--orange);
        color: var(--white);
      }

      /* Pillars (cards) */
      .pillars {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 36px;
      }
      @media (min-width: 560px) {
        .pillars {
          grid-template-columns: 1fr 1fr;
        }
      }
      @media (min-width: 900px) {
        .pillars {
          grid-template-columns: 1fr 1fr 1fr;
          gap: 16px;
        }
      }

      .pillar {
        background: var(--white);
        border: var(--border);
        border-radius: var(--radius);
        padding: 24px 20px;
        display: flex;
        flex-direction: column;
        gap: 12px;
        cursor: default;
        transition:
          border-color 0.25s,
          box-shadow 0.25s,
          transform 0.2s;
        text-align: left;
        width: 100%;
      }
      .pillar:hover,
      .pillar:focus-visible {
        border-color: var(--black);
        box-shadow: var(--shadow-hover);
        transform: translateY(-2px);
      }
      .pillar-icon {
        width: 40px;
        height: 40px;
      }
      .pillar h3 {
        font-family: var(--font-sans);
        font-size: 11px;
        font-weight: 500;
        letter-spacing: 0.14em;
        text-transform: uppercase;
      }
      .pillar p {
        font-size: 14px;
        line-height: 1.72;
        color: var(--mid);
      }
      .pillar-price {
        margin-top: auto;
        padding-top: 12px;
        font-size: 11px;
        font-weight: 500;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--orange);
      }
      .pillar-hint {
        padding-top: 6px;
        font-size: 10px;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--mid);
        opacity: 0.55;
        transition: opacity 0.2s;
      }
      .pillar:hover .pillar-hint,
      .pillar:focus-visible .pillar-hint {
        opacity: 1;
      }
      @media (max-width: 768px) {
        .pillar-hint {
          display: none;
        }
      }

      /* Pillar-detail left overlay (desktop) */
      .left-detail {
        position: absolute;
        inset: 0;
        z-index: 6;
        padding: 52px 44px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.35s ease;
        background: rgba(245, 240, 232, 0.88);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
      }
      @media (max-width: 768px) {
        .left-detail {
          display: none;
        }
      }
      .left-detail.visible {
        opacity: 1;
      }
      .left-detail .detail-label {
        font-family: var(--font-sans);
        font-size: 10px;
        font-weight: 500;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: var(--orange);
        margin-bottom: 18px;
      }
      .left-detail h4 {
        font-family: var(--font-serif);
        font-size: clamp(20px, 2.6vw, 32px);
        font-weight: 800;
        color: var(--black);
        line-height: 1.15;
        letter-spacing: -0.02em;
        margin-bottom: 18px;
      }
      .left-detail p {
        font-size: 13.5px;
        line-height: 1.75;
        color: var(--mid);
        margin-bottom: 12px;
        max-width: 88%;
      }
      .left-detail ul {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 7px;
        margin: 4px 0 14px;
      }
      .left-detail ul li {
        font-size: 13px;
        line-height: 1.6;
        color: var(--mid);
        padding-left: 18px;
        position: relative;
      }
      .left-detail ul li::before {
        content: "–";
        position: absolute;
        left: 0;
        color: var(--orange);
      }
      .left-detail .detail-sub {
        font-size: 10px;
        font-weight: 500;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--mid);
        margin: 10px 0 6px;
        display: block;
      }

      /* Mobile pillar popup */
      .pillar-popup {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 200;
        background: rgba(0, 0, 0, 0.55);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        align-items: flex-end;
        justify-content: center;
      }
      .pillar-popup.open {
        display: flex;
      }
      .pillar-popup-inner {
        background: var(--black);
        color: var(--white);
        width: 100%;
        max-height: 82vh;
        border-radius: var(--radius) var(--radius) 0 0;
        overflow-y: auto;
        padding: 32px 28px 48px;
        position: relative;
        animation: slideUp 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
      }
      @keyframes slideUp {
        from {
          transform: translateY(100%);
        }
        to {
          transform: translateY(0);
        }
      }
      .pillar-popup-close {
        position: absolute;
        top: 18px;
        right: 20px;
        background: color-mix(in srgb, var(--white) 10%, transparent);
        border-radius: 50%;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--white);
        transition: background 0.2s;
      }
      .pillar-popup-close:hover {
        background: color-mix(in srgb, var(--white) 20%, transparent);
      }
      .pillar-popup-body .detail-label {
        display: block;
        font-size: 10px;
        font-weight: 500;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: var(--orange);
        margin-bottom: 14px;
      }
      .pillar-popup-body h4 {
        font-family: var(--font-serif);
        font-size: 26px;
        font-weight: 800;
        color: var(--white);
        line-height: 1.15;
        letter-spacing: -0.02em;
        margin-bottom: 18px;
      }
      .pillar-popup-body p {
        font-size: 15px;
        line-height: 1.75;
        color: color-mix(in srgb, var(--white) 75%, transparent);
        margin-bottom: 14px;
      }
      .pillar-popup-body .detail-sub {
        display: block;
        font-size: 10px;
        font-weight: 500;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: color-mix(in srgb, var(--white) 45%, transparent);
        margin: 18px 0 8px;
      }
      .pillar-popup-body ul {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-bottom: 14px;
      }
      .pillar-popup-body ul li {
        font-size: 15px;
        line-height: 1.65;
        color: color-mix(in srgb, var(--white) 75%, transparent);
        padding-left: 20px;
        position: relative;
      }
      .pillar-popup-body ul li::before {
        content: "–";
        position: absolute;
        left: 0;
        color: var(--orange);
      }

      /* Photo blocks */
      .photo-block {
        width: 100%;
        border-radius: var(--radius);
        overflow: hidden;
        position: relative;
      }
      .photo-block img {
        width: 100%;
        object-fit: cover;
        transition: transform 0.9s ease;
      }
      .photo-block:hover img {
        transform: scale(1.03);
      }

      .photo-trio {
        display: grid;
        grid-template-columns: 1fr;
        gap: 4px;
        margin: 32px calc(var(--space-section-x) * -1) 0;
        height: auto;
      }
      .photo-trio .photo-block {
        height: 200px;
        border-radius: 0;
      }
      .photo-trio .photo-block img {
        height: 100%;
        filter: grayscale(100%);
        transition: filter 0.4s ease;
      }
      .photo-trio .photo-block:hover img {
        filter: grayscale(0%);
      }

      @media (min-width: 560px) {
        .photo-trio {
          grid-template-columns: 1fr 1fr 1fr;
          gap: 0;
          height: 220px;
          margin-top: 36px;
        }
        .photo-trio .photo-block {
          height: 100%;
        }
      }
      @media (min-width: 900px) {
        .photo-trio {
          height: 300px;
          margin-top: 48px;
        }
      }

      /* Method blocks */
      .method {
        border-left: 3px solid var(--orange);
        padding-left: 22px;
        margin-bottom: 26px;
      }
      .method h3 {
        font-family: var(--font-serif);
        font-size: 19px;
        font-weight: 700;
        margin-bottom: 8px;
      }
      .method p {
        font-size: 14px;
        line-height: 1.75;
        color: var(--mid);
      }

      blockquote {
        margin-top: 36px;
        font-family: var(--font-serif);
        font-size: 18px;
        font-style: italic;
        font-weight: 700;
        line-height: 1.5;
        color: var(--black);
      }
      blockquote cite {
        display: block;
        font-family: var(--font-sans);
        font-size: 11px;
        font-style: normal;
        font-weight: 500;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--mid);
        margin-top: 10px;
      }

      /* Timeline */
      .timeline {
        display: flex;
        flex-direction: column;
        gap: 16px;
        margin: 32px 0;
      }
      .tl {
        display: flex;
        gap: 20px;
        align-items: flex-start;
      }
      .tl-yr {
        font-family: var(--font-sans);
        font-size: 12px;
        font-weight: 500;
        letter-spacing: 0.06em;
        color: var(--orange);
        min-width: 48px;
        padding-top: 2px;
      }
      .tl-tx {
        font-size: 14px;
        line-height: 1.65;
        color: var(--mid);
      }

      /* Contact info */
      .ci {
        display: flex;
        flex-direction: column;
        gap: 18px;
        margin-bottom: 36px;
      }
      .ci-row {
        display: flex;
        align-items: flex-start;
        gap: 14px;
      }
      .ci-icon {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        background: color-mix(in srgb, var(--orange) 8%, transparent);
      }
      .ci-label {
        font-size: 10px;
        font-weight: 500;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: var(--mid);
        display: block;
        margin-bottom: 2px;
      }
      .ci-value {
        font-size: 15px;
        color: var(--black);
        transition: color 0.2s;
      }
      a.ci-value:hover {
        color: var(--orange);
      }

      /* Form */
      .contact-form {
        display: flex;
        flex-direction: column;
        gap: 14px;
        margin-top: 32px;
      }
      .form-row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
      }
      @media (min-width: 520px) {
        .form-row {
          grid-template-columns: 1fr 1fr;
        }
      }
      .field {
        display: flex;
        flex-direction: column;
        gap: 6px;
      }
      .field label {
        font-size: 11px;
        font-weight: 500;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--mid);
      }
      .field label .req {
        color: var(--orange);
      }
      .contact-form input,
      .contact-form select,
      .contact-form textarea {
        width: 100%;
        background: var(--cream);
        border: var(--border);
        border-radius: var(--radius);
        color: var(--black);
        font-family: var(--font-sans);
        font-size: 14px;
        font-weight: 300;
        padding: 12px 14px;
        outline: none;
        transition:
          border-color 0.2s,
          background 0.2s;
      }
      .contact-form input::placeholder,
      .contact-form textarea::placeholder {
        color: #a5a198;
      }
      .contact-form input:focus,
      .contact-form select:focus,
      .contact-form textarea:focus {
        border-color: var(--orange);
        background: var(--white);
      }
      .contact-form textarea {
        resize: vertical;
        min-height: 120px;
      }
      .check-row {
        display: flex;
        gap: 10px;
        align-items: flex-start;
        font-size: 13px;
        color: var(--mid);
        line-height: 1.5;
      }
      .check-row input[type="checkbox"] {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
        margin-top: 2px;
        accent-color: var(--orange);
      }
      .check-row a {
        color: var(--orange);
        text-decoration: underline;
        text-underline-offset: 2px;
      }
      .form-hint {
        font-size: 12px;
        line-height: 1.6;
        color: var(--mid);
        margin-top: 4px;
        padding: 12px 14px;
        background: var(--cream);
        border-radius: var(--radius);
        border-left: 3px solid var(--orange);
      }
      button[type="submit"] {
        background: var(--orange);
        color: var(--white);
        font-family: var(--font-sans);
        font-size: 13px;
        font-weight: 500;
        letter-spacing: 0.06em;
        padding: 14px 28px;
        border-radius: var(--radius-btn);
        width: fit-content;
        transition: background 0.2s;
      }
      button[type="submit"]:hover {
        background: var(--orange-hover);
      }

      /* Footer */
      footer {
        background: var(--white);
        border-top: var(--border);
        color: var(--black);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: space-between;
        gap: 20px;
        padding: 36px var(--space-section-x);
      }
      @media (min-width: 769px) {
        footer {
          flex-direction: row;
          align-items: center;
          padding: 40px 72px;
          gap: 0;
        }
      }
      .footer-logo {
        font-family: var(--font-serif);
        font-size: 16px;
        font-weight: 700;
      }
      .footer-logo i {
        font-style: italic;
        color: var(--orange);
      }
      .footer-sub {
        font-size: 11px;
        color: var(--mid);
        margin-top: 4px;
      }
      .footer-mid {
        display: none;
        font-size: 11px;
        font-weight: 500;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: var(--mid);
      }
      @media (min-width: 900px) {
        .footer-mid {
          display: block;
        }
      }
      .footer-links {
        list-style: none;
        display: flex;
        gap: 20px;
        flex-wrap: wrap;
      }
      @media (min-width: 769px) {
        .footer-links {
          gap: 24px;
        }
      }
      .footer-links a {
        font-size: 12px;
        color: var(--mid);
        transition: color 0.2s;
      }
      .footer-links a:hover {
        color: var(--black);
      }

      /* ═══════════════════════════════════════════════════════════════
         DARK THEME OVERRIDE
      ═══════════════════════════════════════════════════════════════ */
      body.theme-dark {
        background: #0f0d18;
      }

      body.theme-dark .right-panel {
        --white: #0f0d18;
        --cream: #161422;
        --black: #ede9df;
        --mid: #9a968e;
        --light: #2a2838;
        --border: 1px solid #2a2838;
        --shadow-hover: 0 4px 24px rgba(0, 0, 0, 0.35);
        background: var(--white);
        color: var(--black);
      }

      /* Intensified dark section colours */
      body.theme-dark .scape-bg {
        background: #201528;
      }
      body.theme-dark #leftPanel.v-forest .scape-bg {
        background: #102a2e;
      }
      body.theme-dark #leftPanel.v-plum .scape-bg {
        background: #231030;
      }
      body.theme-dark #leftPanel.v-slate .scape-bg {
        background: #13162a;
      }
      body.theme-dark #leftPanel.v-sand .scape-bg {
        background: #241713;
      }

      body.theme-dark .scape-blob-1 {
        background: radial-gradient(
          ellipse 55% 45% at 42% 52%,
          rgba(200, 78, 24, 0.42) 0%,
          transparent 70%
        );
      }
      body.theme-dark .scape-blob-2 {
        background: radial-gradient(
          ellipse 40% 35% at 65% 35%,
          rgba(140, 100, 200, 0.28) 0%,
          transparent 68%
        );
      }
      body.theme-dark .scape-blob-3 {
        background: radial-gradient(
          ellipse 50% 40% at 30% 80%,
          rgba(180, 60, 60, 0.22) 0%,
          transparent 65%
        );
      }
      body.theme-dark #leftPanel.v-forest .scape-blob-1 {
        background: radial-gradient(
          ellipse 55% 45% at 42% 52%,
          rgba(46, 160, 100, 0.36) 0%,
          transparent 70%
        );
      }
      body.theme-dark #leftPanel.v-plum .scape-blob-1 {
        background: radial-gradient(
          ellipse 55% 45% at 42% 52%,
          rgba(180, 60, 140, 0.36) 0%,
          transparent 70%
        );
      }
      body.theme-dark #leftPanel.v-slate .scape-blob-1 {
        background: radial-gradient(
          ellipse 55% 45% at 42% 52%,
          rgba(60, 90, 220, 0.32) 0%,
          transparent 70%
        );
      }
      body.theme-dark #leftPanel.v-sand .scape-blob-1 {
        background: radial-gradient(
          ellipse 55% 45% at 42% 52%,
          rgba(200, 100, 40, 0.34) 0%,
          transparent 70%
        );
      }

      /* Dark: heading + dots */
      body.theme-dark .left-heading {
        color: var(--white);
      }
      body.theme-dark .left-name {
        color: color-mix(in srgb, var(--white) 70%, transparent);
      }
      body.theme-dark .left-name i {
        color: color-mix(in srgb, var(--white) 50%, transparent);
      }
      body.theme-dark .dot {
        background: var(--white);
      }
      body.theme-dark .dot-label {
        color: var(--white);
      }
      body.theme-dark .badge {
        background: color-mix(in srgb, var(--white) 10%, transparent);
        border-color: color-mix(in srgb, var(--white) 18%, transparent);
        color: color-mix(in srgb, var(--white) 80%, transparent);
      }
      body.theme-dark .badge-dot {
        background: color-mix(in srgb, var(--white) 65%, transparent);
      }

      body.theme-dark .left-detail {
        background: rgba(20, 16, 30, 0.7);
      }
      body.theme-dark .left-detail h4 {
        color: var(--white);
      }
      body.theme-dark .left-detail p,
      body.theme-dark .left-detail ul li,
      body.theme-dark .left-detail .detail-sub {
        color: color-mix(in srgb, var(--white) 75%, transparent);
      }

      body.theme-dark #leftPanel.detail-active .left-dim {
        background: rgba(0, 0, 0, 0.55);
      }

      /* ═══════════════════════════════════════════════════════════════
         THEME TOGGLE BUTTON
      ═══════════════════════════════════════════════════════════════ */
      #themeToggle {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 9999;
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 9px 16px;
        border-radius: 40px;
        border: 1px solid color-mix(in srgb, var(--black) 15%, transparent);
        background: color-mix(in srgb, var(--black) 7%, transparent);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        color: var(--black);
        font-family: var(--font-sans);
        font-size: 11px;
        font-weight: 500;
        letter-spacing: 0.09em;
        text-transform: uppercase;
        transition:
          background 0.3s,
          border-color 0.3s,
          color 0.3s;
      }
      #themeToggle:hover {
        background: color-mix(in srgb, var(--black) 12%, transparent);
      }
      @media (min-width: 769px) {
        #themeToggle {
          bottom: 28px;
          right: 28px;
        }
      }
      #themeToggle .toggle-icon {
        font-size: 14px;
        line-height: 1;
        transition: transform 0.5s ease;
      }
      body.theme-dark #themeToggle {
        border-color: color-mix(in srgb, var(--white) 18%, transparent);
        background: color-mix(in srgb, var(--white) 10%, transparent);
        color: var(--white);
      }
      body.theme-dark #themeToggle:hover {
        background: color-mix(in srgb, var(--white) 18%, transparent);
      }
      body.theme-dark #themeToggle .toggle-icon {
        transform: rotate(180deg);
      }

      /* Heading sentinels */
      .heading-sentinel {
        height: 1px;
        margin: 0;
        padding: 0;
        pointer-events: none;
        visibility: hidden;
      }

      /* Visually hidden (for accessible labels) */
      .sr-only {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
      }
