:root {
      /* Jasne, mineralne tło (wapń / kamień) */
      --bg-primary: #F7F7F5;
      --bg-surface: #EFEFED;
      --bg-card: #FFFFFF;
      --bg-card-hover: #FCFCFB;
      
      /* Wysoki kontrast tekstu */
      --text-primary: #1E1B18;
      --text-secondary: #4D4742;
      --text-muted: #756E68;
      
      /* Szlachetna rdzawa miedź (głęboki kontrast odcieni, zero marchewki) */
      --copper-dark: #542314;
      --copper-deep: #7D3620;
      --copper-mid: #A34B30;
      --copper-bright: #C96A4B;
      --copper-sheen: #E8A48C;
      --copper-soft: rgba(163, 75, 48, 0.11);
      
      /* Utleniona miedź / Patyna (skala odcieni) */
      --patina-obsidian: #152623;
      --patina-deep: #1E3F39;
      --patina-moss: #2D6659;
      --patina-mid: #388C7E;
      --patina-bright: #57C4B6;
      --patina-light: #89DFD3;
      --patina-mist: #E2F2EF;

      --border-subtle: rgba(30, 27, 24, 0.08);
      --border-copper: rgba(163, 75, 48, 0.28);
      --border-patina: rgba(56, 140, 126, 0.35);
      --shadow-soft: 0 20px 44px -16px rgba(30, 27, 24, 0.07);
      --shadow-copper: 0 12px 28px -8px rgba(84, 35, 20, 0.35);
      --shadow-patina: 0 22px 46px -14px rgba(30, 63, 57, 0.18);
      
      --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
      --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
    }

    [data-theme="dark"] {
      --bg-primary: #121716;
      --bg-surface: #181F1E;
      --bg-card: #1D2523;
      --bg-card-hover: #222B29;
      
      --text-primary: #F4EFE6;
      --text-secondary: #C9C2B8;
      --text-muted: #938C84;
      
      --copper-dark: #692C19;
      --copper-deep: #964126;
      --copper-mid: #BD593A;
      --copper-bright: #DF7F5E;
      --copper-sheen: #F2B6A0;
      --copper-soft: rgba(223, 127, 94, 0.16);
      
      --patina-obsidian: #0E1C19;
      --patina-deep: #1B3B35;
      --patina-moss: #295E52;
      --patina-mid: #3D998A;
      --patina-bright: #66D1C3;
      --patina-light: #9CEBE0;
      --patina-mist: #1D3531;

      --border-subtle: rgba(244, 239, 230, 0.09);
      --border-copper: rgba(223, 127, 94, 0.35);
      --border-patina: rgba(102, 209, 195, 0.35);
      --shadow-soft: 0 24px 48px -16px rgba(0, 0, 0, 0.45);
      --shadow-copper: 0 14px 32px -8px rgba(0, 0, 0, 0.55);
      --shadow-patina: 0 24px 48px -12px rgba(0, 0, 0, 0.5);
    }

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

    html {
      scroll-behavior: smooth;
      background-color: var(--bg-primary);
      color: var(--text-primary);
      font-family: var(--font-sans);
      font-size: 16px;
      line-height: 1.65;
      -webkit-font-smoothing: antialiased;
      transition: background-color 0.4s var(--ease-out), color 0.4s var(--ease-out);
    }

    body {
      min-height: 100vh;
      overflow-x: hidden;
      position: relative;
      background-color: var(--bg-primary);
      color: var(--text-primary);
    }

    /* Ambient light w tle */
    .ambient-room {
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: 0;
      background: radial-gradient(circle at 86% 74%, rgba(56, 140, 126, 0.04), transparent 50%);
      overflow: hidden;
    }

    .ambient-bloom {
      position: absolute;
      width: min(42vw, 420px);
      height: min(42vw, 420px);
      border-radius: 50%;
      right: 4%;
      top: 18%;
      background: radial-gradient(circle, rgba(87, 196, 182, 0.14) 0%, rgba(163, 75, 48, 0.06) 42%, transparent 70%);
      filter: blur(2px);
      will-change: transform;
      transform: translate3d(0, 0, 0);
    }

    /* Living wires — full-bleed fixed backdrop, paths sit on the right */
    .wire-backdrop {
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: 1;
      overflow: hidden;
      transition: opacity 0.2s ease;
    }

    .wire-canvas-bg {
      display: block;
      width: 100%;
      height: 100%;
      opacity: 0.85;
      /* nudge below sticky header */
      transform: translateY(4.5rem);
    }

    @media (max-width: 960px) {
      .wire-canvas-bg {
        opacity: 0.34;
      }
    }

    [data-theme="dark"] .ambient-bloom {
      background: radial-gradient(circle, rgba(87, 196, 182, 0.12) 0%, rgba(201, 106, 75, 0.05) 42%, transparent 70%);
    }

    [data-theme="dark"] .wire-canvas-bg {
      opacity: 0.7;
    }

    /* —— Anatomia przepływu —— */
    .anatomy-section {
      padding: clamp(1.75rem, 4vw, 3rem) 0;
      position: relative;
      z-index: 2;
    }

    .anatomy-card {
      background: color-mix(in srgb, var(--bg-card) 92%, transparent);
      border: 1px solid var(--border-subtle);
      border-radius: 28px;
      padding: clamp(1.5rem, 4vw, 2.75rem);
      box-shadow: var(--shadow-soft);
    }

    .anatomy-head {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 0.85rem;
      margin-bottom: 1.5rem;
    }

    .anatomy-head h2 {
      max-width: 38rem;
      margin: 0.4rem 0 0;
      font-size: clamp(1.65rem, 3vw, 2.35rem);
    }

    .flow-tabs {
      display: flex;
      flex-wrap: wrap;
      gap: 0.45rem;
      margin: 0 0 1.1rem;
    }

    .flow-tab {
      border: 1px solid var(--line, rgba(28, 28, 26, 0.16));
      background: transparent;
      color: inherit;
      border-radius: 999px;
      padding: 0.4rem 0.85rem;
      font: inherit;
      font-size: 0.86rem;
      cursor: pointer;
    }

    .flow-tab[aria-pressed="true"] {
      background: #1e3f39;
      color: #f7f4ef;
      border-color: #1e3f39;
    }

    .contact-check {
      margin: 0.85rem 0 1.25rem;
      padding: 0;
      list-style: none;
      color: var(--text-secondary);
      font-size: 0.95rem;
      line-height: 1.45;
    }

    .contact-check li {
      position: relative;
      padding-left: 1.15rem;
      margin: 0.35rem 0;
    }

    .contact-check li::before {
      content: "";
      position: absolute;
      left: 0;
      top: 0.45em;
      width: 0.45rem;
      height: 0.45rem;
      border-radius: 50%;
      background: #b85d3b;
    }

    .anatomy-hint {
      max-width: 36rem;
      margin: 0.15rem 0 0;
      font-size: 0.9rem;
      color: var(--text-muted);
      line-height: 1.45;
    }

    .anatomy-stages {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 0.65rem;
      margin-bottom: 1.25rem;
    }

    @media (max-width: 900px) {
      .anatomy-stages {
        grid-template-columns: 1fr;
      }
    }

    .anatomy-stage {
      text-align: left;
      border: 1px solid var(--border-subtle);
      background: var(--bg-surface);
      border-radius: 16px;
      padding: 0.85rem 1rem;
      cursor: pointer;
      font-family: var(--font-sans);
      color: var(--text-primary);
      transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    }

    .anatomy-stage span {
      display: block;
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      color: var(--copper-mid);
      margin-bottom: 0.25rem;
    }

    .anatomy-stage strong {
      display: block;
      font-size: 0.95rem;
      font-weight: 700;
      margin-bottom: 0.15rem;
    }

    .anatomy-stage em {
      display: block;
      font-style: normal;
      font-size: 0.78rem;
      color: var(--text-muted);
      line-height: 1.35;
    }

    .anatomy-stage:hover,
    .anatomy-stage.is-active,
    .anatomy-stage:focus-visible {
      border-color: var(--border-copper);
      box-shadow: 0 0 0 3px rgba(163, 75, 48, 0.12);
      transform: translateY(-1px);
    }

    .anatomy-stage[data-flow-stage="3"]:hover,
    .anatomy-stage[data-flow-stage="3"].is-active,
    .anatomy-stage[data-flow-stage="3"]:focus-visible {
      border-color: var(--border-patina);
      box-shadow: 0 0 0 3px rgba(56, 140, 126, 0.14);
    }

    .anatomy-diagram {
      overflow-x: auto;
      border-radius: 18px;
      border: 1px solid var(--border-subtle);
      background: var(--bg-primary);
      padding: 1rem 0.75rem 0.5rem;
      color: var(--text-muted);
    }

    .anatomy-svg {
      display: block;
      width: 100%;
      min-width: 880px;
      height: auto;
    }

    .anatomy-stage-detail {
      display: none;
      margin: 0;
    }

    @media (max-width: 720px) {
      .flow-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
      }

      .flow-tab {
        flex: 0 0 auto;
      }

      .anatomy-stages {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }

      .anatomy-stage {
        text-align: center;
        padding: 0.7rem 0.4rem;
      }

      .anatomy-stage strong {
        font-size: 0.78rem;
      }

      .anatomy-stage em {
        display: none;
      }

      .anatomy-stage-detail {
        display: block;
        margin: -0.35rem 0 0.85rem;
        text-align: center;
        color: var(--text-muted);
        font-size: 0.92rem;
        line-height: 1.45;
      }

      .anatomy-diagram {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
      }

      .anatomy-svg {
        min-width: 880px;
      }
    }

    /* Full diagram visible by default; hover only soft-dims + lifts active band */
    .anatomy-diagram .flow-band {
      opacity: 1;
      transition: opacity 0.3s ease, filter 0.3s ease;
    }

    .anatomy-diagram[data-active-stage] .flow-band {
      opacity: 0.72;
      filter: saturate(0.85);
    }

    .anatomy-diagram[data-active-stage="1"] .flow-band-1,
    .anatomy-diagram[data-active-stage="2"] .flow-band-2,
    .anatomy-diagram[data-active-stage="3"] .flow-band-3 {
      opacity: 1;
      filter: drop-shadow(0 0 10px rgba(200, 109, 68, 0.28));
    }

    .anatomy-diagram[data-active-stage="3"] .flow-band-3 {
      filter: drop-shadow(0 0 10px rgba(31, 163, 155, 0.32));
    }

    [data-theme="dark"] .anatomy-diagram {
      background: color-mix(in srgb, var(--bg-surface) 80%, #0c1211);
    }

    .container {
      width: 100%;
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 clamp(1.5rem, 4vw, 3rem);
      position: relative;
      z-index: 2;
    }

    /* Sticky Header z miedzianym hoverem */
    header {
      position: sticky;
      top: 0;
      z-index: 50;
      background: color-mix(in srgb, var(--bg-primary) 86%, transparent);
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
      border-bottom: 1px solid var(--border-subtle);
      transition: background-color 0.3s ease, border-color 0.3s ease;
    }

    .nav-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      min-height: 74px;
      height: 74px;
      gap: 1rem;
    }

    .brand-mark {
      display: inline-flex;
      align-items: center;
      gap: 0.75rem;
      text-decoration: none;
      color: var(--text-primary);
      padding: 0.4rem;
      border-radius: 12px;
      transition: transform 0.3s var(--ease-out);
      flex-shrink: 0;
    }

    .brand-mark:hover {
      transform: scale(1.04);
    }

    .nav-links {
      display: flex;
      align-items: center;
      flex-wrap: nowrap;
      gap: 0.15rem;
      flex: 1 1 auto;
      justify-content: center;
      min-width: 0;
      overflow: hidden;
    }

    .nav-link {
      position: relative;
      text-decoration: none;
      color: var(--text-secondary);
      font-size: 0.84rem;
      font-weight: 500;
      padding: 0.45rem 0.7rem;
      border-radius: 999px;
      white-space: nowrap;
      flex-shrink: 0;
      transition: color 0.3s var(--ease-out), background 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
      overflow: hidden;
    }

    .nav-link::after {
      content: "";
      position: absolute;
      bottom: 6px;
      left: 50%;
      width: 0;
      height: 2px;
      background: linear-gradient(90deg, var(--copper-deep), var(--copper-bright), var(--copper-sheen));
      border-radius: 2px;
      transform: translateX(-50%);
      transition: width 0.35s var(--ease-out);
    }

    .nav-link:hover, .nav-link:focus-visible {
      color: var(--copper-mid);
      background: linear-gradient(135deg, rgba(163, 75, 48, 0.08), rgba(232, 164, 140, 0.14));
      box-shadow: inset 0 0 0 1px rgba(163, 75, 48, 0.22);
    }

    [data-theme="dark"] .nav-link:hover {
      color: var(--copper-sheen);
      background: linear-gradient(135deg, rgba(189, 89, 58, 0.18), rgba(242, 182, 160, 0.08));
    }

    .nav-link:hover::after {
      width: 55%;
    }

    .nav-controls {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      flex-shrink: 0;
    }

    .pill-toggle {
      background: var(--bg-surface);
      border: 1px solid var(--border-subtle);
      color: var(--text-primary);
      font-family: var(--font-sans);
      font-size: 0.82rem;
      font-weight: 600;
      padding: 0.45rem 0.85rem;
      border-radius: 999px;
      cursor: pointer;
      transition: all 0.3s var(--ease-out);
    }

    .pill-toggle:hover {
      border-color: var(--copper-mid);
      color: var(--copper-mid);
      background: var(--copper-soft);
    }


    /* Szlachetne, mieniące się miedziane buttony */
    .btn-copper {
      position: relative;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.6rem;
      padding: 0.9rem 1.75rem;
      border-radius: 999px;
      border: 1px solid rgba(232, 164, 140, 0.35);
      color: #FDF9F5;
      font-family: var(--font-sans);
      font-size: 0.94rem;
      font-weight: 600;
      text-decoration: none;
      cursor: pointer;
      overflow: hidden;
      background: linear-gradient(125deg, var(--copper-dark) 0%, var(--copper-mid) 48%, var(--copper-bright) 100%);
      background-size: 200% 200%;
      background-position: 0% 50%;
      box-shadow: var(--shadow-copper), inset 0 1px 1px rgba(255, 255, 255, 0.28);
      transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background-position 0.6s var(--ease-out);
    }

    .btn-copper::before {
      content: "";
      position: absolute;
      top: 0;
      left: -120%;
      width: 85%;
      height: 100%;
      background: linear-gradient(
        105deg,
        transparent 0%,
        rgba(255, 236, 226, 0.12) 35%,
        rgba(255, 245, 238, 0.48) 50%,
        rgba(255, 236, 226, 0.12) 65%,
        transparent 100%
      );
      transform: skewX(-22deg);
      transition: left 0.7s var(--ease-out);
      pointer-events: none;
    }

    .btn-copper:hover {
      transform: translateY(-2px);
      background-position: 100% 50%;
      box-shadow: 0 16px 34px -8px rgba(84, 35, 20, 0.48), inset 0 1px 1px rgba(255, 255, 255, 0.45);
    }

    .btn-copper:hover::before {
      left: 140%;
    }

    .btn-copper-sm {
      padding: 0.55rem 1.25rem;
      font-size: 0.86rem;
    }

    .btn-secondary {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.88rem 1.6rem;
      border-radius: 999px;
      background: var(--bg-card);
      border: 1px solid var(--border-subtle);
      color: var(--text-primary);
      font-size: 0.94rem;
      font-weight: 600;
      text-decoration: none;
      cursor: pointer;
      transition: all 0.3s var(--ease-out);
    }

    .btn-secondary:hover {
      border-color: var(--copper-mid);
      color: var(--copper-mid);
      transform: translateY(-2px);
      box-shadow: var(--shadow-soft);
    }

    /* Sekcje i oddech */
    section {
      padding: clamp(2.75rem, 5.5vw, 4.75rem) 0;
      position: relative;
      z-index: 2;
    }

    .hero-section {
      padding-top: clamp(3.5rem, 7vw, 6rem);
      padding-bottom: clamp(2.5rem, 5vw, 4rem);
      position: relative;
      overflow: visible;
    }

    .hero-layout {
      display: grid;
      grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr);
      gap: clamp(1.5rem, 4vw, 3rem);
      align-items: start;
    }

    @media (max-width: 960px) {
      .hero-layout {
        grid-template-columns: 1fr;
      }
    }

    .hero-copy {
      min-width: 0;
    }

    .hero-header-block {
      max-width: min(58rem, 100%);
      margin-bottom: clamp(2rem, 4vw, 2.75rem);
    }

    .hero-float-field {
      position: relative;
      min-height: 22rem;
      /* align with lantern (apex/exit in site.js BULB_TOP/BULB_EXIT) */
      margin-top: 8rem;
      pointer-events: none;
    }

    .hero-chip {
      position: absolute;
      display: inline-flex;
      align-items: center;
      padding: 0.45rem 0.85rem;
      border-radius: 999px;
      font-size: 0.78rem;
      font-weight: 600;
      letter-spacing: 0.01em;
      white-space: nowrap;
      border: 1px solid color-mix(in srgb, var(--copper-mid) 35%, transparent);
      background: color-mix(in srgb, var(--bg-card) 78%, transparent);
      color: var(--copper-deep);
      box-shadow: 0 10px 28px -18px rgba(84, 35, 20, 0.45);
      backdrop-filter: blur(8px);
      animation: heroChipFloat 7.5s ease-in-out infinite;
    }

    .hero-chip.chip-b,
    .hero-chip.chip-d {
      border-color: color-mix(in srgb, var(--patina-mid) 40%, transparent);
      color: var(--patina-deep);
      box-shadow: 0 10px 28px -18px rgba(30, 63, 57, 0.4);
    }

    /* Chips sit inside the lantern, alternating L/R of its axis */
    .chip-a { top: 17%; left: 26%; animation-delay: 0s; }
    .chip-b { top: 30%; left: 58%; animation-delay: -1.4s; }
    .chip-c { top: 46%; left: 14%; animation-delay: -2.8s; }
    .chip-d { top: 60%; left: 54%; animation-delay: -4.1s; }
    .chip-e { top: 76%; left: 32%; animation-delay: -5.5s; }

    @keyframes heroChipFloat {
      0%, 100% { transform: translate3d(0, 0, 0); }
      50% { transform: translate3d(0, -10px, 0); }
    }

    @media (prefers-reduced-motion: reduce) {
      .hero-chip { animation: none; }
    }

    @media (max-width: 960px) {
      .hero-float-field {
        display: none;
      }
    }

    .hero-band {
      display: none;
    }

    @media (max-width: 767px) {
      .wire-backdrop {
        display: none;
      }

      .hero-section {
        padding-top: 2rem;
        padding-bottom: 1.5rem;
        overflow-x: clip;
      }

      .hero-header-block {
        margin-bottom: 1.5rem;
      }

      .hero-copy .hero-cta-row {
        flex-wrap: nowrap;
        gap: 0.5rem;
        margin-top: 1.25rem;
      }

      .hero-copy .hero-cta-row .btn-copper,
      .hero-copy .hero-cta-row .btn-secondary {
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
        justify-content: center;
        gap: 0.35rem;
        padding: 0.8rem 0.65rem;
        font-size: 0.84rem;
        white-space: nowrap;
      }

      .hero-band {
        display: block;
        width: 100%;
        height: 120px;
        margin-top: 1.5rem;
        overflow: visible;
      }

      .hero-band-lines path {
        stroke-dasharray: 1;
        stroke-dashoffset: 1;
        animation: heroBandDraw 1.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
      }

      .hero-band-lines path:nth-child(2) { animation-delay: 0.12s; }
      .hero-band-lines path:nth-child(3) { animation-delay: 0.24s; }
      .hero-band-lines path:nth-child(4) { animation-delay: 0.36s; }
      .hero-band-lines path:nth-child(5) { animation-delay: 0.48s; }

      .hero-band-pulse path {
        stroke-dasharray: 0.14 0.86;
        stroke-dashoffset: 0.14;
        opacity: 0;
        animation: heroBandPulse 3.6s linear 2.2s infinite;
      }

      .hero-band-pulse path:nth-child(2) { animation-delay: 2.9s; }
      .hero-band-pulse path:nth-child(3) { animation-delay: 2.5s; }
      .hero-band-pulse path:nth-child(4) { animation-delay: 3.3s; }
      .hero-band-pulse path:nth-child(5) { animation-delay: 2.7s; }

      .hero-band-knot {
        transform-box: fill-box;
        transform-origin: center;
        animation: heroBandKnot 1.2s ease-out both;
      }
    }

    @keyframes heroBandDraw {
      to { stroke-dashoffset: 0; }
    }

    @keyframes heroBandPulse {
      0% { stroke-dashoffset: 0.14; opacity: 0; }
      12% { opacity: 0.9; }
      88% { opacity: 0.9; }
      100% { stroke-dashoffset: -0.86; opacity: 0; }
    }

    @keyframes heroBandKnot {
      from { opacity: 0; transform: scale(0.4); }
      to { opacity: 1; transform: scale(1); }
    }

    @media (max-width: 767px) and (prefers-reduced-motion: reduce) {
      .hero-band-lines path,
      .hero-band-knot {
        animation: none;
        stroke-dashoffset: 0;
        opacity: 1;
        transform: none;
      }

      .hero-band-pulse {
        display: none;
      }
    }


    .eyebrow-dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: var(--patina-mid);
      box-shadow: 0 0 0 3px rgba(56, 140, 126, 0.2);
    }

    h1 {
      font-family: var(--font-sans);
      font-size: clamp(2.55rem, 5vw, 4.2rem);
      font-weight: 600;
      line-height: 1.08;
      letter-spacing: -0.025em;
      color: var(--text-primary);
      margin-bottom: 1.35rem;
    }

    h1 em {
      display: inline-block;
      margin-top: 0.12em;
      font-size: 0.68em;
      font-style: italic;
      line-height: 1.12;
      color: var(--copper-mid);
    }

    .hero-lead {
      font-size: clamp(1.02rem, 1.3vw, 1.15rem);
      color: var(--text-secondary);
      line-height: 1.7;
      margin-bottom: 0;
      max-width: 70ch;
    }

    .hero-cta-row {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 1rem;
      margin-top: clamp(1.75rem, 3vw, 2.25rem);
    }

    /* Legenda podróży przewodu (scroll indicator) */
    .wire-legend-card {
      margin-top: 3.5rem;
      display: inline-flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 1.25rem;
      padding: 0.85rem 1.35rem;
      border-radius: 18px;
      background: color-mix(in srgb, var(--bg-card) 82%, transparent);
      backdrop-filter: blur(12px);
      border: 1px solid var(--border-subtle);
      font-size: 0.82rem;
      color: var(--text-secondary);
    }

    .legend-step {
      display: inline-flex;
      align-items: center;
      gap: 0.45rem;
    }

    .swatch {
      width: 10px;
      height: 10px;
      border-radius: 50%;
    }

    /* Nagłówki sekcji */
    .section-header {
      max-width: 620px;
      margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
    }

    .section-kicker {
      display: block;
      font-size: 0.82rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--copper-mid);
      margin-bottom: 0.75rem;
    }

    h2 {
      font-family: var(--font-sans);
      font-size: clamp(2.2rem, 4vw, 3.35rem);
      font-weight: 400;
      line-height: 1.12;
      color: var(--text-primary);
      margin-bottom: 1rem;
    }

    .section-desc {
      color: var(--text-secondary);
      font-size: 1.05rem;
    }

    /* Sposób działania — karty z patynowym przejściem tonalnym na hoverze */
    .pillars-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1.75rem;
    }

    @media (max-width: 900px) {
      .pillars-grid {
        grid-template-columns: 1fr;
      }
    }

    .pillar-card {
      position: relative;
      background: var(--bg-card);
      border: 1px solid var(--border-subtle);
      border-radius: 24px;
      padding: clamp(2rem, 3.2vw, 2.75rem);
      box-shadow: var(--shadow-soft);
      overflow: hidden;
      transition:
        transform 0.45s var(--ease-out),
        border-color 0.45s var(--ease-out),
        box-shadow 0.45s var(--ease-out),
        background 0.45s var(--ease-out);
    }

    /* Subtelna mgła tonalna patyny rozlewająca się na hoverze */
    .pillar-card::before {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(
        145deg,
        rgba(30, 63, 57, 0.04) 0%,
        rgba(56, 140, 126, 0.09) 55%,
        rgba(137, 223, 211, 0.16) 100%
      );
      opacity: 0;
      transition: opacity 0.45s var(--ease-out);
      pointer-events: none;
    }

    .pillar-card:hover {
      transform: translateY(-7px);
      border-color: var(--border-patina);
      box-shadow: var(--shadow-patina);
    }

    .pillar-card:hover::before {
      opacity: 1;
    }

    .pillar-num {
      position: relative;
      z-index: 1;
      width: 48px;
      height: 48px;
      border-radius: 15px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      font-size: 0.96rem;
      margin-bottom: 1.65rem;
      color: var(--copper-mid);
      background: linear-gradient(135deg, rgba(163, 75, 48, 0.14), rgba(201, 106, 75, 0.06));
      border: 1px solid rgba(163, 75, 48, 0.22);
      transition:
        background 0.45s var(--ease-out),
        color 0.45s var(--ease-out),
        border-color 0.45s var(--ease-out),
        box-shadow 0.45s var(--ease-out),
        transform 0.45s var(--ease-out);
    }

    /* Skala odcieni patyny na numerach 1, 2, 3 przy najechaniu */
    .pillar-card:hover .pillar-num {
      color: #F4FBF9;
      border-color: rgba(137, 223, 211, 0.45);
      background: linear-gradient(
        135deg,
        var(--patina-obsidian) 0%,
        var(--patina-moss) 48%,
        var(--patina-bright) 100%
      );
      box-shadow: 0 10px 22px -6px rgba(30, 63, 57, 0.42), inset 0 1px 1px rgba(255, 255, 255, 0.35);
      transform: scale(1.06);
    }

    .pillar-card h3 {
      position: relative;
      z-index: 1;
      font-size: 1.24rem;
      font-weight: 700;
      color: var(--text-primary);
      margin-bottom: 0.85rem;
      line-height: 1.35;
      transition: color 0.3s ease;
    }

    .pillar-card p {
      position: relative;
      z-index: 1;
      color: var(--text-secondary);
      font-size: 0.96rem;
      line-height: 1.68;
    }

    .areas {
      margin-top: 2.75rem;
      padding-top: 2rem;
      border-top: 1px solid var(--border-subtle);
    }
    .areas-label {
      margin: 0 0 1rem;
      font-size: 0.82rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--copper-mid);
    }
    .areas-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 1rem;
    }
    .area-card {
      background: var(--bg-card);
      border: 1px solid var(--border-subtle);
      border-radius: 16px;
      padding: 1rem 1.15rem 1.1rem;
    }
    .area-card h3 {
      display: flex;
      align-items: baseline;
      gap: 0.55rem;
      margin: 0 0 0.35rem;
      font-size: 1.02rem;
      font-weight: 700;
      line-height: 1.35;
      color: var(--text-primary);
    }
    .area-num {
      flex-shrink: 0;
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.04em;
      color: var(--copper-mid);
    }
    .area-card p {
      margin: 0;
      font-size: 0.88rem;
      line-height: 1.55;
      color: var(--text-secondary);
    }
    @media (max-width: 720px) {
      .areas-grid { grid-template-columns: 1fr; }
    }

    .case-tag {
      position: relative;
      z-index: 1;
      display: inline-block;
      padding: 0.38rem 0.9rem;
      border-radius: 999px;
      font-size: 0.78rem;
      font-weight: 600;
      color: var(--patina-deep);
      background: var(--patina-mist);
      margin-bottom: 1.35rem;
      transition: all 0.4s var(--ease-out);
    }

    [data-theme="dark"] .case-tag {
      color: var(--patina-light);
    }

    /* FAQ: sticky intro + accordion, one column below 900px */
    .faq-layout {
      display: grid;
      grid-template-columns: 1fr;
      gap: 1.75rem;
      align-items: start;
    }
    .faq-intro {
      position: static;
      margin-bottom: 0;
      max-width: 28rem;
    }
    .faq-layout .faq-list {
      max-width: none;
      width: 100%;
    }
    @media (min-width: 900px) {
      .faq-layout {
        grid-template-columns: 1fr 1.65fr;
        gap: 3.5rem;
      }
      .faq-intro {
        position: sticky;
        top: 110px;
      }
    }

    /* FAQ Akordeon */
    .faq-list {
      max-width: 780px;
      display: flex;
      flex-direction: column;
      gap: 0.9rem;
    }

    .faq-item {
      background: var(--bg-card);
      border: 1px solid var(--border-subtle);
      border-radius: 18px;
      overflow: hidden;
      transition: border-color 0.3s ease;
    }

    .faq-item:hover {
      border-color: var(--border-copper);
    }

    .faq-btn {
      width: 100%;
      text-align: left;
      background: none;
      border: none;
      padding: 1.35rem 1.75rem;
      font-family: var(--font-sans);
      font-size: 1.02rem;
      font-weight: 600;
      color: var(--text-primary);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      cursor: pointer;
    }

    .faq-icon {
      color: var(--copper-mid);
      font-size: 1.3rem;
      transition: transform 0.3s var(--ease-out);
    }

    .faq-item.open .faq-icon {
      transform: rotate(45deg);
    }

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

    .faq-item.open .faq-answer {
      max-height: 48rem;
    }

    .faq-answer p + p {
      padding-top: 0;
    }

    .faq-answer p {
      padding: 0 1.75rem 1.5rem;
      color: var(--text-secondary);
      font-size: 0.95rem;
    }

    .faq-answer p:first-child {
      padding-bottom: 0.75rem;
    }

    .faq-answer ul {
      margin: 0 1.75rem 1.15rem;
      padding: 0;
      list-style: none;
      color: var(--text-secondary);
      font-size: 0.95rem;
    }

    .faq-answer li {
      position: relative;
      margin: 0 0 0.75rem;
      padding-left: 1.15rem;
    }

    .faq-answer li:last-child {
      margin-bottom: 0;
    }

    .faq-answer li::before {
      content: "";
      position: absolute;
      left: 0;
      top: 0.55em;
      width: 0.4rem;
      height: 0.4rem;
      border-radius: 50%;
      background: #b85d3b;
    }

    .faq-answer li strong {
      color: var(--text-primary);
      font-weight: 600;
    }

    /* Minimalistyczny, architektoniczny kalendarz rezerwacji */
    .contact-layout {
      display: grid;
      grid-template-columns: 1fr;
      gap: clamp(2rem, 4vw, 3.5rem);
      align-items: start;
    }

    @media (min-width: 921px) {
      .contact-layout {
        grid-template-columns: 1.1fr 0.9fr;
        align-items: center;
      }
      .contact-layout > :first-child { order: 2; }
      .scheduler-card { order: 1; }
    }

    .contact-copy h2 {
      margin-bottom: 0.3rem;
    }

    .contact-sub {
      margin: 0 0 1rem;
      color: var(--copper-mid);
      font-size: clamp(1.2rem, 2vw, 1.5rem);
      font-weight: 500;
      line-height: 1.25;
    }

    .contact-actions {
      --ca-bg: #FFFFFF;
      --ca-line: rgba(43, 61, 55, 0.14);
      --ca-line-hover: rgba(43, 61, 55, 0.28);
      --ca-ink: #2B3D37;
      --ca-accent: #C86D44;
      --ca-muted: #7A8783;
      --ca-btn-bg: #F4F1EC;
      --ca-btn-bg-hover: #EAE5DD;
      --ca-btn-line: rgba(43, 61, 55, 0.08);
      --ca-btn-ink: #4E5E59;
      --ca-ok-bg: rgba(56, 140, 126, 0.14);
      --ca-ok-line: rgba(56, 140, 126, 0.35);
      --ca-ok-ink: #2B6B60;
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 0.75rem;
      margin-top: 2rem;
    }
    [data-theme="dark"] .contact-actions {
      --ca-bg: var(--bg-card);
      --ca-line: var(--border-subtle);
      --ca-line-hover: var(--border-strong, rgba(244, 239, 230, 0.28));
      --ca-ink: var(--text-primary);
      --ca-accent: var(--copper-bright);
      --ca-muted: var(--text-muted);
      --ca-btn-bg: rgba(244, 239, 230, 0.08);
      --ca-btn-bg-hover: rgba(244, 239, 230, 0.14);
      --ca-btn-line: var(--border-subtle);
      --ca-btn-ink: var(--text-secondary);
      --ca-ok-bg: rgba(86, 176, 160, 0.18);
      --ca-ok-line: rgba(86, 176, 160, 0.4);
      --ca-ok-ink: var(--patina-light);
    }

    .email-pill {
      display: inline-flex;
      align-items: center;
      gap: 0.75rem;
      max-width: 100%;
      height: 44px;
      padding: 0 0.45rem 0 1rem;
      background: var(--ca-bg);
      border: 1px solid var(--ca-line);
      border-radius: 12px;
      transition: border-color 0.2s ease;
    }
    .email-pill:hover { border-color: var(--ca-line-hover); }
    .email-link {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-size: 0.88rem;
      font-weight: 600;
      letter-spacing: -0.01em;
      color: var(--ca-ink);
      text-decoration: none;
    }
    .email-link:hover { color: var(--ca-accent); }

    .copy-btn {
      flex-shrink: 0;
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      height: 30px;
      padding: 0 0.65rem;
      background: var(--ca-btn-bg);
      border: 1px solid var(--ca-btn-line);
      border-radius: 8px;
      font-family: inherit;
      font-size: 0.76rem;
      font-weight: 600;
      color: var(--ca-btn-ink);
      white-space: nowrap;
      cursor: pointer;
      transition: all 0.18s ease;
    }
    .copy-btn:hover { background: var(--ca-btn-bg-hover); color: var(--ca-ink); }
    .copy-btn.is-copied {
      background: var(--ca-ok-bg);
      border-color: var(--ca-ok-line);
      color: var(--ca-ok-ink);
    }

    .linkedin-pill {
      display: inline-flex;
      align-items: center;
      gap: 0.45rem;
      height: 44px;
      padding: 0 1rem;
      background: var(--ca-bg);
      border: 1px solid var(--ca-line);
      border-radius: 12px;
      font-size: 0.86rem;
      font-weight: 600;
      color: var(--ca-ink);
      text-decoration: none;
      transition: all 0.2s ease;
    }
    .linkedin-pill svg { color: var(--ca-ink); transition: color 0.2s ease; }
    .linkedin-pill .ext-arrow {
      font-size: 0.78rem;
      color: var(--ca-muted);
      transition: transform 0.2s ease, color 0.2s ease;
    }
    .linkedin-pill:hover { border-color: color-mix(in srgb, var(--ca-accent) 45%, transparent); color: var(--ca-accent); }
    .linkedin-pill:hover svg,
    .linkedin-pill:hover .ext-arrow { color: var(--ca-accent); }
    .linkedin-pill:hover .ext-arrow { transform: translate(2px, -2px); }

    .scheduler-card {
      background: var(--bg-card);
      border: 1px solid var(--border-subtle);
      border-radius: 26px;
      padding: clamp(1.35rem, 2.4vw, 1.9rem);
      box-shadow: var(--shadow-soft);
    }

    .scheduler-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding-bottom: 0.95rem;
      margin-bottom: 1.1rem;
      border-bottom: 1px solid var(--border-subtle);
    }

    .scheduler-title {
      font-weight: 700;
      font-size: 1.05rem;
      color: var(--text-primary);
    }

    .scheduler-meta {
      font-size: 0.82rem;
      color: var(--patina-mid);
      font-weight: 600;
      background: var(--patina-mist);
      padding: 0.3rem 0.75rem;
      border-radius: 999px;
    }

    .scheduler-body {
      display: grid;
      grid-template-columns: 1.15fr 0.85fr;
      gap: 1.35rem;
      align-items: stretch;
    }

    @media (max-width: 600px) {
      .scheduler-body {
        grid-template-columns: 1fr;
      }
    }

    .cal-month-nav {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 0.7rem;
      font-weight: 600;
      font-size: 0.92rem;
      color: var(--text-primary);
    }

    .cal-nav-btn {
      background: var(--bg-surface);
      border: none;
      width: 30px;
      height: 30px;
      border-radius: 50%;
      color: var(--text-primary);
      cursor: pointer;
      transition: background 0.2s ease;
    }

    .cal-nav-btn:hover {
      background: var(--copper-soft);
      color: var(--copper-mid);
    }

    .cal-grid {
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      gap: 0.22rem;
      text-align: center;
    }

    .cal-weekday {
      font-size: 0.74rem;
      font-weight: 600;
      color: var(--text-muted);
      padding-bottom: 0.4rem;
    }

    .cal-day {
      aspect-ratio: 1 / 0.86;
      border-radius: 10px;
      border: 1px solid transparent;
      background: transparent;
      color: var(--text-muted);
      font-family: var(--font-sans);
      font-size: 0.85rem;
      font-weight: 500;
      cursor: default;
      transition: all 0.25s var(--ease-out);
    }

    .cal-day.past {
      opacity: 0.38;
      color: var(--text-muted);
    }

    .cal-day.available {
      color: var(--text-primary);
      background: var(--bg-surface);
      cursor: pointer;
      font-weight: 600;
    }

    .cal-day.available:hover {
      border-color: var(--copper-mid);
      color: var(--copper-mid);
    }

    .cal-day.selected {
      color: #FFFFFF;
      background: linear-gradient(135deg, var(--copper-dark), var(--copper-mid), var(--copper-bright));
      box-shadow: 0 6px 16px -4px rgba(125, 54, 32, 0.45);
    }

    .slots-col {
      display: flex;
      flex-direction: column;
      gap: 0.55rem;
      min-height: 0;
    }

    @media (min-width: 601px) {
      .slots-col {
        height: 0;
        min-height: 100%;
        overflow: hidden;
      }
    }

    .slots-label {
      font-size: 0.82rem;
      font-weight: 600;
      color: var(--text-secondary);
      margin-bottom: 0.25rem;
    }

    .time-slot {
      flex: 0 0 auto;
      padding: 0.62rem 1rem;
      border-radius: 12px;
      border: 1px solid var(--border-subtle);
      background: var(--bg-surface);
      color: var(--text-primary);
      font-family: var(--font-sans);
      font-size: 0.88rem;
      font-weight: 600;
      text-align: center;
      cursor: pointer;
      transition: all 0.25s var(--ease-out);
    }

    .time-slot:hover {
      border-color: var(--copper-mid);
      color: var(--copper-mid);
    }

    .time-slot.selected {
      background: linear-gradient(135deg, var(--patina-deep), var(--patina-mid));
      color: #FFFFFF;
      border-color: transparent;
    }

    .booking-confirm {
      margin-top: 1.1rem;
      padding-top: 1rem;
      border-top: 1px solid var(--border-subtle);
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
    }

    .booking-summary {
      font-size: 0.88rem;
      color: var(--text-secondary);
    }

    .booking-summary strong {
      color: var(--text-primary);
    }

    .slot-list {
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
      min-height: 0;
      overflow-y: auto;
      overscroll-behavior: contain;
      scrollbar-width: thin;
      scrollbar-color: color-mix(in srgb, var(--text-muted) 55%, transparent) transparent;
    }

    @media (min-width: 601px) {
      .slot-list {
        flex: 1 1 auto;
        padding-right: 0.2rem;
      }
    }

    @media (max-width: 600px) {
      .slot-list {
        max-height: 13.5rem;
      }
    }

    .slot-list::-webkit-scrollbar {
      width: 6px;
    }

    .slot-list::-webkit-scrollbar-thumb {
      background: color-mix(in srgb, var(--text-muted) 50%, transparent);
      border-radius: 999px;
    }

    .booking-form[hidden],
    .booking-note[hidden] { display: none; }

    .booking-form {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0.65rem;
      flex: 1 1 100%;
    }

    .booking-form label {
      display: flex;
      flex-direction: column;
      gap: 0.3rem;
      font-size: 0.76rem;
      font-weight: 600;
      color: var(--text-secondary);
    }

    .booking-form input {
      border: 1px solid var(--border-subtle);
      background: var(--bg-surface);
      color: var(--text-primary);
      border-radius: 12px;
      padding: 0.65rem 0.8rem;
      font: inherit;
      font-size: 0.9rem;
    }

    .booking-form input:focus {
      outline: 2px solid color-mix(in srgb, var(--copper-mid) 55%, transparent);
      border-color: var(--copper-mid);
    }

    .booking-note {
      flex: 1 1 100%;
      margin: 0;
      font-size: 0.84rem;
      color: var(--text-secondary);
    }

    .booking-note.is-error { color: var(--copper-mid); }

    .cal-nav-btn:disabled {
      opacity: 0.35;
      cursor: default;
    }

    .cal-nav-btn:disabled:hover {
      background: var(--bg-surface);
      color: var(--text-primary);
    }

    @media (max-width: 600px) {
      .booking-form { grid-template-columns: 1fr; }
    }

    /* Podstrony Case Studies + Izolowany Sandbox dla Dema */
    .case-view {
      display: none;
      padding: 3rem 0 6rem;
      position: relative;
      z-index: 3;
    }

    .case-view.active {
      display: block;
    }

    .main-view.hidden {
      display: none;
    }

    .sandbox-shell {
      margin-top: 2.5rem;
      border-radius: 24px;
      background: var(--bg-card);
      border: 1px solid var(--border-subtle);
      box-shadow: var(--shadow-soft);
      overflow: hidden;
    }

    .sandbox-toolbar {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      padding: 1rem 1.5rem;
      background: var(--bg-surface);
      border-bottom: 1px solid var(--border-subtle);
    }

    .sandbox-frame {
      width: 100%;
      min-height: 540px;
      border: none;
      display: block;
      background: #FFFFFF;
    }

    footer {
      border-top: 1px solid var(--border-subtle);
      padding: 2.5rem 0;
      font-size: 0.88rem;
      color: var(--text-muted);
      position: relative;
      z-index: 2;
    }

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

    @media (max-width: 1180px) {
      .brand-tag {
        display: none;
      }
    }



/* —— Project integration extras —— */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 60;
  background: var(--copper-mid);
  color: #fff;
  padding: 0.6rem 0.9rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { top: 0.75rem; }

:focus-visible {
  outline: 2px solid var(--copper-mid);
  outline-offset: 3px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  line-height: 1.1;
}
.brand-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
}
.brand-tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav-links { flex-wrap: nowrap; }

.lang-toggle {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.theme-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--border-copper);
  background: #fff;
  color: var(--text-primary);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}
.theme-icon .icon-sun { display: none; }
[data-theme="dark"] .theme-icon .icon-moon { display: none; }
[data-theme="dark"] .theme-icon .icon-sun { display: block; }
[data-theme="dark"] .theme-icon {
  background-color: var(--bg-card);
  border-color: var(--border-patina);
  color: var(--text-primary);
}

@media (max-width: 720px) {
  .nav-inner {
    height: 64px;
    min-height: 64px;
    gap: 0.45rem;
  }
  .brand-mark { gap: 0.45rem; padding: 0.2rem; }
  .nav-controls { gap: 0.35rem; }
  .btn-copper-sm { padding: 0.42rem 0.72rem; font-size: 0.78rem; }
}
@media (max-width: 420px) {
  .brand-text { display: none; }
}

@media (max-width: 1100px) {
  .nav-link {
    font-size: 0.78rem;
    padding: 0.4rem 0.55rem;
  }
}

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

footer {
  padding: 2rem 0 2.75rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-muted);
  position: relative;
  z-index: 2;
}

/* Case page shared */
.page-hero { padding-bottom: 1.5rem; }
.page-hero h1 { margin-bottom: 1rem; }
.sandbox-shell {
  margin-top: 1.5rem;
  border: 1px solid var(--border-subtle);
  border-radius: 22px;
  overflow-x: auto;
  background: var(--bg-card);
  box-shadow: var(--shadow-soft);
}
.sandbox-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}
.sandbox-frame {
  width: 100%;
  min-height: 420px;
  border: 0;
  display: block;
  background: #fff;
  overflow: hidden;
}
.still {
  margin: 1.75rem 0 2.5rem;
}
.still figcaption {
  margin-top: 0.65rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* —— Language / theme toggles (light, clear) —— */
.seg-toggle {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border-copper);
  box-shadow: var(--shadow-soft);
  gap: 2px;
}
.seg-toggle button {
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  cursor: pointer;
}
.seg-toggle button[aria-pressed="true"] {
  background: color-mix(in srgb, var(--copper-mid) 16%, #fff);
  color: var(--copper-deep);
}
.pill-toggle {
  border: 1px solid var(--border-copper);
  background: #fff;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}
[data-theme="dark"] .seg-toggle {
  background: var(--bg-card);
  border-color: var(--border-patina);
}
[data-theme="dark"] .seg-toggle button[aria-pressed="true"] {
  background: color-mix(in srgb, var(--patina-mid) 28%, transparent);
  color: var(--patina-light);
}
[data-theme="dark"] .pill-toggle {
  background: var(--bg-card);
  border-color: var(--border-patina);
  color: var(--text-primary);
}

/* —— O mnie / About: two columns (monogram card + copy) —— */
.about-section {
  --about-bg: transparent;
  --about-ink: #2B3D37;
  --about-accent: #C86D44;
  --about-card: var(--bg-card);
  --about-card-foot: var(--bg-card);
  --about-body: #4E5E59;
  --about-muted: #6E7D78;
  --about-line: rgba(43, 61, 55, 0.12);
  padding: 5.5rem 1.5rem;
  background-color: transparent;
  border-top: none;
}
[data-theme="dark"] .about-section {
  --about-bg: transparent;
  --about-ink: var(--text-primary);
  --about-accent: var(--copper-bright);
  --about-card: var(--bg-card);
  --about-card-foot: var(--bg-card);
  --about-body: var(--text-secondary);
  --about-muted: var(--text-muted);
  --about-line: var(--border-subtle);
  background-color: transparent;
  border-top: none;
}

.about-container {
  position: relative;
  z-index: 2;
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(240px, 300px) 1fr;
  gap: 3.5rem;
  align-items: center;
}

.about-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--about-card);
  border: 1px solid var(--about-line);
  border-radius: 16px;
}
.about-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 42%;
}
.about-monogram-placeholder {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 280px;
  padding: 3rem 2rem 2.5rem;
}
.placeholder-quote {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--about-ink);
}
.about-card-footer {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0.9rem 1.15rem;
  background: var(--about-card-foot);
  border-top: 1px solid var(--about-line);
}
.about-sign {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--about-ink);
}

.about-content .section-kicker {
  display: inline-block;
  margin-bottom: 0.6rem;
  font-size: 0.72rem;
  color: var(--about-accent);
}
.about-heading {
  margin: 0 0 1.1rem;
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--about-ink);
}
.about-lead {
  margin: 0 0 1.25rem;
  font-size: 1.12rem;
  line-height: 1.55;
  font-weight: 500;
  color: var(--about-ink);
}
.about-paragraphs p {
  margin: 0 0 0.85rem;
  font-size: 0.96rem;
  line-height: 1.62;
  color: var(--about-body);
}
.about-paragraphs p:last-child { margin-bottom: 0; }
.about-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  margin: 1.15rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--about-muted);
}
.about-tags li { display: inline; }
.about-tags li + li::before {
  content: "·";
  margin: 0 0.45rem;
  color: var(--about-accent);
}

@media (max-width: 860px) {
  .about-section { padding: 4rem 1.5rem; }
  .about-container { grid-template-columns: 1fr; gap: 2.25rem; }
  .about-card { max-width: 320px; }
}


/* —— Case studies: 3 equal cards with a micro-UI preview —— */
.work-grid {
  --w-card: #FFFFFF;
  --w-ink: #2B3D37;
  --w-body: #55645F;
  --w-muted: #6E7D78;
  --w-tag: #388C7E;
  --w-accent: #C86D44;
  --w-line: rgba(43, 61, 55, 0.11);
  --w-line-soft: rgba(43, 61, 55, 0.07);
  --w-preview: #F4F1EC;
  --w-mini: #FFFFFF;
  --w-mini-line: rgba(43, 61, 55, 0.09);
  --w-bar: #E6ECEA;
  --w-bar-soft: #EEF1F0;
  --w-chip: #F4F1EC;
  --w-chip-ink: #5C6B66;
  --w-dot: #9AA6A2;
  --w-duty: #388C7E;
  --w-shadow: 0 12px 28px rgba(43, 61, 55, 0.06);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}
[data-theme="dark"] .work-grid {
  --w-card: var(--bg-card);
  --w-ink: var(--text-primary);
  --w-body: var(--text-secondary);
  --w-muted: var(--text-muted);
  --w-tag: var(--patina-light);
  --w-accent: var(--copper-bright);
  --w-line: var(--border-subtle);
  --w-line-soft: var(--border-subtle);
  --w-preview: var(--bg-surface);
  --w-mini: var(--bg-card-hover);
  --w-mini-line: var(--border-subtle);
  --w-bar: rgba(244, 239, 230, 0.12);
  --w-bar-soft: rgba(244, 239, 230, 0.08);
  --w-chip: rgba(244, 239, 230, 0.08);
  --w-chip-ink: var(--text-secondary);
  --w-dot: var(--text-muted);
  --w-duty: var(--patina-mid);
  --w-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.work-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--w-card);
  border: 1px solid var(--w-line);
  border-radius: 16px;
  color: inherit;
  text-decoration: none;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.work-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--w-accent) 45%, transparent);
  box-shadow: var(--w-shadow);
}
.work-card:focus-visible { outline: 2px solid var(--w-accent); outline-offset: 3px; }

.work-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 124px;
  padding: 1rem 1.25rem;
  background: var(--w-preview);
  border-bottom: 1px solid var(--w-line-soft);
}

/* 1 · Focus vs Parked */
.mini-board { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; width: 100%; max-width: 230px; }
.mini-col {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.45rem;
  background: var(--w-mini);
  border: 1px solid var(--w-mini-line);
  border-radius: 8px;
}
.mini-pill { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--w-muted); }
.mini-pill.is-focus { color: var(--w-accent); }
.mini-task { height: 8px; border-radius: 4px; background: var(--w-bar); }
.mini-task.is-active { background: color-mix(in srgb, var(--w-accent) 38%, transparent); }
.mini-task.is-muted { opacity: 0.55; }
.mini-side-quest {
  display: inline-block;
  align-self: flex-start;
  margin-top: 1px;
  padding: 2px 6px;
  border: 1px dashed rgba(43, 61, 55, 0.25);
  border-radius: 5px;
  font-size: 0.56rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.01em;
  text-align: center;
  white-space: nowrap;
  color: #6E7D78;
}
[data-theme="dark"] .mini-side-quest {
  border-color: rgba(255, 255, 255, 0.2);
  color: #9FB0AA;
}

/* 2 · Month roster */
.mini-roster {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  width: 100%;
  max-width: 220px;
  padding: 0.5rem 0.65rem;
  background: var(--w-mini);
  border: 1px solid var(--w-mini-line);
  border-radius: 8px;
}
.roster-row { display: flex; align-items: center; gap: 0.45rem; }
.r-dot { flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--w-dot); }
.r-dot.is-duty { background: var(--w-duty); }
.r-dot.is-away { background: var(--w-accent); }
.r-bar { flex: 1; height: 6px; border-radius: 3px; background: var(--w-bar-soft); }
.r-chip {
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 700;
  background: var(--w-chip);
  color: var(--w-chip-ink);
}
.r-chip.is-patina { background: color-mix(in srgb, var(--w-duty) 16%, transparent); color: var(--w-duty); }
.r-chip.is-copper { background: color-mix(in srgb, var(--w-accent) 16%, transparent); color: var(--w-accent); }

/* 3 · SEV . PRIO . RANK */
.mini-sev { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; }
.mini-code-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.9rem;
  background: var(--w-mini);
  border: 1px solid var(--w-line);
  border-radius: 999px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 1rem;
  font-weight: 700;
  color: var(--w-ink);
}
.mc-sep { color: var(--w-dot); }
.mc-num.is-sev { color: var(--w-duty); }
.mc-num.is-rank { color: var(--w-accent); }
.mini-code-caption { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.08em; color: var(--w-muted); }

.work-body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem 1.5rem 1.25rem; }
.work-tag { margin-bottom: 0.6rem; font-size: 0.72rem; font-weight: 600; color: var(--w-tag); }
.work-title {
  margin: 0 0 0.75rem;
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.015em;
  color: var(--w-ink);
}
.work-desc { margin: 0; font-size: 0.88rem; line-height: 1.6; color: var(--w-body); }

.work-footer { padding: 0.95rem 1.5rem 1.35rem; }
.work-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--w-ink);
  transition: color 0.2s ease;
}
.work-cta .arrow { display: inline-block; transition: transform 0.2s ease; }
.work-card:hover .work-cta { color: var(--w-accent); }
.work-card:hover .work-cta .arrow { transform: translateX(4px); }

@media (max-width: 920px) {
  .work-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .work-card, .work-cta .arrow { transition: none; }
  .work-card:hover { transform: none; }
}


/* —— Dark mode polish: monogram, About band, hero chips, flow diagram —— */
:root {
  --ib-bg: #FAF8F5;   /* iB monogram tile */
  --ib-ink: #2B3D37;  /* iB monogram strokes */
}
[data-theme="dark"] {
  --ib-bg: #1E2623;
  --ib-ink: #F4EFE6;
}

/* About sits on the same surface as the page in both themes */
[data-theme="dark"] .about-section {
  --about-bg: transparent;
  background-color: transparent;
  border-top: none;
}

/* Hero floating chips: readable labels on the dark field */
[data-theme="dark"] .hero-chip {
  background: color-mix(in srgb, var(--bg-card) 88%, transparent);
  border-color: color-mix(in srgb, var(--copper-bright) 55%, transparent);
  color: var(--copper-sheen);
}
[data-theme="dark"] .hero-chip.chip-b,
[data-theme="dark"] .hero-chip.chip-d {
  border-color: color-mix(in srgb, var(--patina-bright) 55%, transparent);
  color: var(--patina-light);
}

/* Quote caption + note */

/* Flow section: tabs, stage cards, diagram */
[data-theme="dark"] .anatomy-hint { color: var(--text-secondary); }
[data-theme="dark"] .flow-tab {
  border-color: rgba(244, 239, 230, 0.28);
  color: var(--text-primary);
}
[data-theme="dark"] .flow-tab:hover { border-color: rgba(244, 239, 230, 0.5); }
[data-theme="dark"] .flow-tab[aria-pressed="true"] {
  background: var(--patina-moss);
  border-color: var(--patina-bright);
  color: #FFFFFF;
}
[data-theme="dark"] .anatomy-stage {
  border-color: rgba(244, 239, 230, 0.2);
  background: var(--bg-card);
}
[data-theme="dark"] .anatomy-stage span { color: var(--copper-bright); }
[data-theme="dark"] .anatomy-stage strong { color: var(--text-primary); }
[data-theme="dark"] .anatomy-stage em { color: var(--text-secondary); }
[data-theme="dark"] .anatomy-diagram { border-color: rgba(244, 239, 230, 0.16); color: var(--text-secondary); }

[data-theme="dark"] .flow-pill rect {
  fill: #1E2623;
  stroke: rgba(255, 255, 255, 0.14);
}
[data-theme="dark"] .flow-pill text { fill: #F4EFE6; }
[data-theme="dark"] .flow-pill circle { fill: var(--copper-bright); }
[data-theme="dark"] .flow-dot { fill: #1E2623; stroke: var(--copper-bright); }
[data-theme="dark"] .flow-guide { stroke: #F4EFE6; stroke-opacity: 0.22; }
[data-theme="dark"] .flow-label-copper { fill: var(--copper-sheen); }
[data-theme="dark"] .flow-label-patina { fill: var(--patina-light); }


/* —— Flow diagram details —— */
.anatomy-diagram { padding: 1rem 1.25rem 0.5rem; }  /* equal left/right inner margin */

/* Pills live outside the dimmable bands: always opaque, drawn on top of guides and wires */
.flow-pills rect { fill-opacity: 1; }
.anatomy-diagram .flow-pills { transition: filter 0.3s ease; }
.anatomy-diagram .flow-pills rect,
.anatomy-diagram .flow-pills text,
.anatomy-diagram .flow-pills circle { transition: opacity 0.3s ease, stroke-opacity 0.3s ease; }
.anatomy-diagram[data-active-stage]:not([data-active-stage="2"]) .flow-pills text,
.anatomy-diagram[data-active-stage]:not([data-active-stage="2"]) .flow-pills circle { opacity: 0.72; }
.anatomy-diagram[data-active-stage]:not([data-active-stage="2"]) .flow-pills rect { stroke-opacity: 0.72; }
.anatomy-diagram[data-active-stage="2"] .flow-pills { filter: drop-shadow(0 0 10px rgba(200, 109, 68, 0.28)); }

/* Dark mode: the tangle keeps a visible copper tail into the hub (end alpha ~0.3) */
[data-theme="dark"] .cd-s1 { stop-color: #E08A68; }
[data-theme="dark"] .cd-s2 { stop-color: #C96A4B; }
[data-theme="dark"] .cd-s3 { stop-color: #C96A4B; stop-opacity: 0.6; }
[data-theme="dark"] .cd-s4 { stop-color: #C96A4B; stop-opacity: 0.3; }


/* Case studies heading: short title + copper italic second line, like the hero */
#projekty .section-header { max-width: 52rem; }
#projekty .section-header h2 em {
  display: block;
  margin-top: 0.3em;
  font-size: 0.62em;
  font-style: italic;
  line-height: 1.15;
  color: var(--copper-mid);
}
[data-theme="dark"] #projekty .section-header h2 em { color: var(--copper-bright); }
