/* base (from the original page wrapper) */
:root{color-scheme:light;box-sizing:border-box;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}html{scroll-padding-top:env(safe-area-inset-top,0px)}body{margin:0;padding:0;font:14px -apple-system,BlinkMacSystemFont,sans-serif;background:#faf9f5;color:#141413}img{max-width:100%}[hidden]:not([hidden=until-found i]){display:none!important}

/* site */
:root { color-scheme: dark; }
  /* Caladea (SIL OFL 1.1) is metric-compatible with Cambria: devices without Cambria
     (Android, iOS, Linux) get identical line widths instead of a random fallback serif */
  @font-face { font-family: 'Caladea'; font-style: normal; font-weight: 400; font-display: swap;
    src: url(fonts/caladea-regular-latin.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
  @font-face { font-family: 'Caladea'; font-style: normal; font-weight: 400; font-display: swap;
    src: url(fonts/caladea-regular-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
  @font-face { font-family: 'Caladea'; font-style: italic; font-weight: 400; font-display: swap;
    src: url(fonts/caladea-italic-latin.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
  @font-face { font-family: 'Caladea'; font-style: italic; font-weight: 400; font-display: swap;
    src: url(fonts/caladea-italic-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
  @font-face { font-family: 'Caladea'; font-style: normal; font-weight: 700; font-display: swap;
    src: url(fonts/caladea-bold-latin.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
  @font-face { font-family: 'Caladea'; font-style: normal; font-weight: 700; font-display: swap;
    src: url(fonts/caladea-bold-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

  :root{
    /* the block is a rectangular box, not a cube: its height equals its
       length (depth), while its width is a separate, smaller dimension */
    --k: 1;   /* grows on large screens (set from JS) so the object and its text scale together */
    --blockW: min(46vmin, calc(400px * var(--k)));
    --blockL: min(58vmin, calc(520px * var(--k)));
    --halfW: calc(var(--blockW) / 2);
    --halfL: calc(var(--blockL) / 2);

    --bg-a: #26241F;
    --bg-b: #171613;
    --ink-light: #F2EEE6;

    --wood-deck: #9C744A;
    --wood-foot: #7C5A38;

    --deckH: calc(var(--blockW) * 0.045);
    --footH: calc(var(--blockW) * 0.15);
    --palletW: calc(var(--blockW) * 1.08);
    --palletD: calc(var(--blockL) * 1.05);
    --footW: calc(var(--palletW) * 0.22);
    --footOffset: calc(var(--palletW) / 2 - var(--footW) / 2);
    --palletH: calc(var(--deckH) * 2 + var(--footH));
    --lift: calc(var(--palletH) * 0.72);          /* raises the assembly so block + pallet sit centred together */
    --ui-bottom: clamp(30px, 6.5vh, calc(52px * var(--k)));        /* dots / arrows row */

    --c-company:  #2C4A45;
    --c-service1: #3E5972;
    --c-service2: #9C6B3F;
    --c-service3: #8B4A47;
    --c-service4: #83743C;
  }

  * { box-sizing: border-box; }

  html { font-size: calc(16px * var(--k, 1)); }
  html, body {
    overscroll-behavior: none;   /* no pull-to-refresh / bounce while using the page */
    height: 100%;
    margin: 0;
    font-family: Cambria, Caladea, Georgia, "Times New Roman", serif;
    overflow: hidden;
  }

  body {
    /* soft warm ambient light behind the object, over a deep dark base */
    background:
      radial-gradient(ellipse 55% 45% at 50% 42%, rgba(255,232,190,0.11) 0%, rgba(255,232,190,0) 70%),
      radial-gradient(ellipse at 50% 42%, #302e28 0%, #1e1c19 50%, #0f0e0c 100%);
  }
  /* deeper vignette, sits behind the scene */
  body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at 50% 45%, rgba(0,0,0,0) 38%, rgba(0,0,0,0.62) 100%);
    z-index: 0;
  }

  .scene {
    position: relative;
    z-index: 1;
    width: 100vw;
    height: 100vh;
    height: 100dvh;            /* ignores the collapsing mobile browser toolbar */
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: calc(1900px * var(--k, 1));
    perspective-origin: 50% calc(50% - var(--lift));
    cursor: grab;              /* open hand: the object can be grabbed */
    user-select: none;
    -webkit-user-select: none;
    touch-action: pinch-zoom;  /* one finger rotates, two fingers can still pinch-zoom */
  }
  .scene.dragging {
    cursor: grabbing;          /* closed hand while dragging */
  }
  /* touch-action isn't inherited past a scroll container (.face-inner), so set it on everything inside */
  .scene *, .scene { touch-action: pinch-zoom; }
  /* while the page is pinch-zoomed in, let the browser pan instead of rotating */
  .page-zoomed .scene, .page-zoomed .scene * { touch-action: auto; }

  .sr-only {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  /* page indicator: one dot per page, current one stretches into a pill */
  .dots {
    position: absolute;
    bottom: var(--ui-bottom);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2px;
    z-index: 10;
    pointer-events: none;
  }
  /* each dot has a fixed-width slot; the visible dot/pill is drawn inside it, so
     nothing shifts sideways when the active page changes */
  .dot {
    position: relative;
    width: calc(22px * var(--k, 1));
    height: calc(6px * var(--k, 1));
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    pointer-events: auto;
    -webkit-appearance: none;
    appearance: none;
  }
  .dot::before {
    content: "";
    position: absolute;
    top: 0; bottom: 0; left: 50%;
    width: calc(6px * var(--k, 1));
    transform: translateX(-50%);
    border-radius: calc(3px * var(--k, 1));
    background: rgba(242,238,230,0.28);
    transition: width 0.4s ease, background 0.4s ease;
  }
  .dot::after { content: ""; position: absolute; inset: -14px -2px; }   /* comfortable tap target */
  .dot:hover::before { background: rgba(242,238,230,0.55); }
  .dot.active::before { width: calc(22px * var(--k, 1)); background: rgba(242,238,230,0.85); }
  .dot:focus-visible { outline: 2px solid var(--ink-light); outline-offset: 2px; border-radius: 3px; }

  /* only appears for keyboard users: Tab to it, press Enter to open the current page */
  .open-btn {
    position: absolute;
    left: 50%;
    top: clamp(14px, 3vh, 26px);          /* top of the screen: clear of the object, hint and dots */
    transform: translateX(-50%);
    z-index: 11;
    font-family: inherit;
    font-size: 0.85rem;
    color: #22403b;
    background: #F2EEE6;
    border: 0;
    border-radius: 999px;
    padding: 0.5em 1.3em;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
  }
  .open-btn:focus-visible { opacity: 1; pointer-events: auto; outline: 2px solid #F2EEE6; outline-offset: 3px; }

  /* quiet hint, fades away after the first interaction */
  .hint {
    position: absolute;
    bottom: clamp(8px, 2vh, 18px);
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.78rem;
    font-style: italic;
    letter-spacing: 0.03em;
    color: rgba(242,238,230,0.55);
    white-space: nowrap;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.9s ease;
    z-index: 10;
  }
  .hint.hidden { opacity: 0; }

  .floor-shadow {
    position: absolute;
    left: 50%;
    bottom: calc(50% - var(--halfL) - var(--palletH) + var(--lift) - 5%);
    width: calc(var(--palletW) * 1.3);
    height: calc(var(--blockW) * 0.22);
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 70%);
    filter: blur(2px);
    z-index: 1;
  }

  /* wrapper for the gentle idle sway; driven from JS, gone after first interaction */
  .sway {
    position: relative;
    top: calc(var(--lift) * -1);
    width: 0;
    height: 0;
    transform-style: preserve-3d;
    z-index: 2;
  }

  .assembly {
    position: relative;
    width: 0;
    height: 0;
    transform-style: preserve-3d;
    transition: transform 0.9s cubic-bezier(.65,0,.35,1);
    transform: rotateX(-10deg) rotateY(0deg);
    z-index: 2;
  }

  /* ---------- text block (rectangular, not a cube) ---------- */
  .face {
    position: absolute;
    display: flex;
    flex-direction: column;
    color: var(--ink-light);
    backface-visibility: hidden;
    border: 1px solid rgba(242,238,230,0.14);
    /* no overflow:hidden here: on a 3D-rotated face it stops the browser from
       registering clicks on the wider left/right sides. .face-inner clips the text. */
    border-radius: 4px;
    box-shadow: 0 20px 40px -20px rgba(0,0,0,0.6);
  }

  .face-inner {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 7% 9%;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;     /* the full text is read in the fullscreen view */
  }
  .face-inner::-webkit-scrollbar { display: none; }
  /* soft fade where text runs past the bottom; JS only switches it on when it is needed
     and the Contact button is not inside the faded zone */
  .face-inner.fade-bottom {
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 34px), transparent);
            mask-image: linear-gradient(to bottom, #000 calc(100% - 34px), transparent);
  }

  .face h1, .face h2 { font-weight: 400; letter-spacing: 0.01em; margin: 0 0 0.15em 0; text-align: center; }
  .face h1 { font-size: clamp(1.05rem, 3.2vmin, 1.5rem); }
  .face h2 { font-size: clamp(0.9rem, 2.5vmin, 1.15rem); text-align: left; }

  .tagline { text-align: center; font-style: italic; opacity: 0.85; font-size: clamp(0.66rem, 1.6vmin, 0.78rem); margin: 0 0 0.9em 0; }

  .face p { margin: 0 0 0.5em 0; font-size: clamp(0.66rem, 1.5vmin, 0.78rem); line-height: 1.5; opacity: 0.94; }

  .section-label { font-size: clamp(0.6rem, 1.35vmin, 0.68rem); opacity: 0.75; margin: 0.8em 0 0.3em 0; text-align: center; }

  .doc-list { list-style: none; margin: 0 0 0.7em 0; padding: 0; }
  .doc-list li { font-size: clamp(0.64rem, 1.45vmin, 0.76rem); line-height: 1.45; padding-left: 1.1em; position: relative; margin-bottom: 0.25em; opacity: 0.94; }
  .doc-list li::before { content: "\2013"; position: absolute; left: 0; }

  .about-text { text-align: center; font-size: clamp(0.62rem, 1.4vmin, 0.74rem); line-height: 1.6; margin: 0.2em auto 0.9em; max-width: 34em; opacity: 0.92; text-wrap: pretty; }
  .overlay-content .about-text { font-size: clamp(1rem, 2.1vmin, 1.25rem); line-height: 1.65; max-width: 36em; margin: 0.4em auto 1.2em; }
  @media (max-aspect-ratio: 1/1) { .face .about-text { display: none; } }   /* too small on the phone block; shown in full when zoomed in */
  .face .zoom-only { display: none; }                 /* partners list: only on the zoomed-in page */
  .face-back .face-inner > .about-text { margin-bottom: auto; }   /* last visible item on the block face, keeps the group centred */
  @media (max-aspect-ratio: 1/1) { .face-back .face-inner > .about-text { margin-bottom: 0; } .face-back .face-inner > .tagline { margin-bottom: auto; } }
  .face-cta { display: none; }                         /* the Kontakt button lives on the zoomed-in page only */
  .overlay-content .face-cta { display: flex; justify-content: center; margin-top: 1.6em; }
  .partners-row { text-align: center; font-size: clamp(0.64rem, 1.45vmin, 0.76rem); line-height: 1.8; opacity: 0.92; }

  .contact-block { text-align: center; font-size: clamp(0.64rem, 1.45vmin, 0.74rem); line-height: 1.75; opacity: 0.92; }
  .contact-block .lbl { opacity: 0.7; margin-right: 0.4em; }
  .contact-block a { color: inherit; text-decoration: underline; text-decoration-color: rgba(242,238,230,0.4); text-underline-offset: 3px; }
  .contact-block a:hover { text-decoration-color: rgba(242,238,230,0.9); }

  .placeholder-note { font-size: clamp(0.62rem, 1.4vmin, 0.72rem); opacity: 0.65; font-style: italic; text-align: center; margin-top: 1em; }

  /* front, back and top share the same WxL panel; left/right are the
     square L x L side panels (since height == length) */
  .face-front, .face-back, .face-top {
    width: var(--blockW);
    height: var(--blockL);
    top: calc(var(--blockL) / -2);
    left: calc(var(--blockW) / -2);
  }
  .face-left, .face-right {
    width: var(--blockL);
    height: var(--blockL);
    top: calc(var(--blockL) / -2);
    left: calc(var(--blockL) / -2);
  }

  .face-front  { background: var(--c-company);  transform: rotateY(0deg)    translateZ(var(--halfL)); }
  .face-top    { background: var(--c-company); transform: rotateX(90deg)   translateZ(var(--halfL)); }
  .face-right  { background: var(--c-company); transform: rotateY(90deg)   translateZ(var(--halfW)); }
  .face-back   { background: var(--c-company); transform: rotateY(180deg) translateZ(var(--halfL)); }
  .face-left   { background: var(--c-company); transform: rotateY(-90deg)  translateZ(var(--halfW)); }

  /* ---------- true 3D pallet ---------- */
  .box3d {
    position: absolute;
    top: 0; left: 0;
    transform-style: preserve-3d;
  }
  .box3d .f { position: absolute; background: var(--face-color); }
  .box3d .f-front  { width: var(--w); height: var(--h); transform: translate(calc(var(--w) / -2), calc(var(--h) / -2)) translateZ(calc(var(--d) / 2)); }
  .box3d .f-back   { width: var(--w); height: var(--h); transform: translate(calc(var(--w) / -2), calc(var(--h) / -2)) rotateY(180deg) translateZ(calc(var(--d) / 2)); }
  .box3d .f-right  { width: var(--d); height: var(--h); transform: translate(calc(var(--d) / -2), calc(var(--h) / -2)) rotateY(90deg)  translateZ(calc(var(--w) / 2)); }
  .box3d .f-left   { width: var(--d); height: var(--h); transform: translate(calc(var(--d) / -2), calc(var(--h) / -2)) rotateY(-90deg) translateZ(calc(var(--w) / 2)); }
  .box3d .f-top    { width: var(--w); height: var(--d); transform: translate(calc(var(--w) / -2), calc(var(--d) / -2)) rotateX(90deg)  translateZ(calc(var(--h) / 2)); }
  .box3d .f-bottom { width: var(--w); height: var(--d); transform: translate(calc(var(--w) / -2), calc(var(--d) / -2)) rotateX(-90deg) translateZ(calc(var(--h) / 2)); }

  .f-top    { filter: brightness(1.32); }
  .f-front  { filter: brightness(1.02); }
  .f-left, .f-right { filter: brightness(0.82); }
  .f-back   { filter: brightness(0.62); }
  .f-bottom { filter: brightness(0.5); }

  .pallet-deck-top {
    --w: var(--palletW); --h: var(--deckH); --d: var(--palletD); --face-color: var(--wood-deck);
    transform: translate3d(0, calc(var(--halfL) + var(--deckH) / 2), 0);
  }
  .pallet-foot-left {
    --w: var(--footW); --h: var(--footH); --d: var(--palletD); --face-color: var(--wood-foot);
    transform: translate3d(calc(var(--footOffset) * -1), calc(var(--halfL) + var(--deckH) + var(--footH) / 2), 0);
  }
  .pallet-foot-center {
    --w: var(--footW); --h: var(--footH); --d: var(--palletD); --face-color: var(--wood-foot);
    transform: translate3d(0, calc(var(--halfL) + var(--deckH) + var(--footH) / 2), 0);
  }
  .pallet-foot-right {
    --w: var(--footW); --h: var(--footH); --d: var(--palletD); --face-color: var(--wood-foot);
    transform: translate3d(var(--footOffset), calc(var(--halfL) + var(--deckH) + var(--footH) / 2), 0);
  }
  .pallet-deck-bottom {
    --w: var(--palletW); --h: var(--deckH); --d: var(--palletD); --face-color: var(--wood-deck);
    transform: translate3d(0, calc(var(--halfL) + var(--deckH) + var(--footH) + var(--deckH) / 2), 0);
  }

  /* page-to-page arrows: a chevron plus the title of the page they lead to (updated on every page change) */
  .arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    max-width: min(20vw, calc(240px * var(--k, 1)));
    display: flex;
    align-items: center;
    gap: 0.7em;
    padding: 0.55em 0.95em;
    border-radius: 16px;
    border: 1px solid rgba(242,238,230,0.26);
    background: rgba(23,22,19,0.55);
    color: var(--ink-light);
    cursor: pointer;
    font-size: 0.85rem;
    line-height: 1.3;
    font-family: Cambria, Caladea, Georgia, serif;
    transition: background 0.2s ease, border-color 0.2s ease;
  }
  .arrow-chev { font-size: 1.7em; line-height: 1; flex: none; }
  .arrow-label {
    min-width: 0;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3;
    overflow: hidden;
    overflow-wrap: break-word;
  }
  .arrow-left  .arrow-label { text-align: left; }
  .arrow-right .arrow-label { text-align: right; }
  .arrow:hover { background: rgba(242,238,230,0.12); border-color: rgba(242,238,230,0.5); }
  .arrow:focus-visible { outline: 2px solid var(--ink-light); outline-offset: 2px; }
  .arrow-left  { left: 3%; }
  .arrow-right { right: 3%; }

  /* ---------- hero text on page 1 ---------- */
  .hero { text-align: center; }
  /* page 1 is only the hero: centre it on the block face */
  .face-front .face-inner { display: flex; flex-direction: column; }
  .face-front .hero { margin: auto 0; }
  /* pages 2-4: centre the content vertically on the block face (auto margins, so tall content never clips) */
  .face-right .face-inner, .face-back .face-inner, .face-left .face-inner { display: flex; flex-direction: column; }
  .face-right .face-inner > :first-child, .face-back .face-inner > :first-child, .face-left .face-inner > :first-child { margin-top: auto; }
  .face-right .face-inner > :last-child, .face-back .face-inner > :last-child, .face-left .face-inner > :last-child { margin-bottom: auto; }
  .face .hero-title { font-size: clamp(1.15rem, 3.5vmin, 1.7rem); line-height: 1.2; margin: 0 0 0.5em; text-wrap: balance; }
  .face .hero-desc { font-size: clamp(0.66rem, 1.5vmin, 0.8rem); line-height: 1.55; text-align: center; margin: 0 auto 0.9em; text-wrap: pretty; }
  .face h2.brand { font-size: clamp(1.15rem, 3.2vmin, 1.6rem); text-align: center; letter-spacing: 0.04em; margin-bottom: 0.1em; }
  .hero-cta { margin: 0; }
  .hero-art { display: none; }
  .overlay-content .hero-art { display: block; width: min(100%, 680px); height: auto; margin: clamp(18px,4vh,40px) auto 0; opacity: 0.36; pointer-events: none; user-select: none; }
  .side-art { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
  .side-art { opacity: 0; transition: opacity 0.2s ease; }
  .overlay.open .side-art { opacity: 1; transition: opacity 0.4s ease 0.38s; }
  .side-art img { position: absolute; height: auto; opacity: 0.4; user-select: none; }
  .side-art .sa-l { left: -2vw; top: 50%; width: 36vw; transform: translateY(-50%); }
  .side-art .sa-r { right: 3vw; top: 50%; width: 27vw; transform: translateY(-50%); opacity: 0.46; }
  @media (max-aspect-ratio: 1/1) {
    .side-art .sa-l { left: -8vw; top: 3%; width: 82vw; transform: none; }
    .side-art .sa-r { right: 4vw; top: auto; bottom: 4%; width: 72vw; transform: none; }
  }
  .svc-pop.has-img { width: min(440px, calc(100% - 24px)); }
  .svc-pop .pop-img { display: block; width: 100%; height: auto; margin: 0.6em 0 0.7em; border-radius: 6px; background: #fff; }
  .svc-pop .pop-img.tall { max-height: 38vh; width: auto; max-width: 100%; margin-left: auto; margin-right: auto; }
  .svc-pop .pop-img.plan { background: transparent; }

  .cta {
    font-family: inherit;
    font-size: clamp(0.72rem, 1.6vmin, 0.85rem);
    letter-spacing: 0.03em;
    color: #22403b;
    background: #F2EEE6;
    border: 0;
    border-radius: 999px;
    padding: 0.6em 1.7em;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
  }
  .cta:hover { background: #fff; transform: translateY(-1px); }
  .cta:focus-visible { outline: 2px solid #F2EEE6; outline-offset: 3px; }


  /* ---------- language toggle (top right) ---------- */
  .lang-toggle {
    position: fixed;
    top: clamp(14px, 3vh, 26px);
    right: clamp(14px, 3vw, 28px);
    z-index: 55;                      /* above the fullscreen page (50), below the contact modal (60) */
    display: flex;
    gap: 2px;
    padding: 3px;
    background: rgba(31,54,50,0.55);
    border: 1px solid rgba(242,238,230,0.38);
    border-radius: 999px;
    -webkit-backdrop-filter: blur(6px);
            backdrop-filter: blur(6px);
  }
  .lang-btn {
    font-family: inherit;
    font-size: clamp(0.8rem, 1.6vmin, 0.95rem);
    letter-spacing: 0.08em;
    color: var(--ink-light);
    background: transparent;
    border: 0;
    border-radius: 999px;
    padding: 0.4em 0.85em;
    min-width: 2.6em;
    cursor: pointer;
    opacity: 0.75;
    transition: background 0.2s ease, opacity 0.2s ease, color 0.2s ease;
  }
  .lang-btn:hover { opacity: 1; background: rgba(242,238,230,0.14); }
  .lang-btn[aria-pressed="true"] { background: var(--ink-light); color: #22403b; opacity: 1; cursor: default; }
  .lang-btn:focus-visible { outline: 2px solid var(--ink-light); outline-offset: 2px; }


  /* ---------- page 2: "Usluge" dropdown + item popups ---------- */
  .svc { margin-top: 0.5em; }
  .svc-toggle {
    font: inherit; color: inherit; background: none; border: 0;
    border-bottom: 1px solid rgba(242,238,230,0.45);
    padding: 0.3em 0.1em; margin: 0 0 0.6em;
    display: inline-flex; align-items: center; gap: 0.7em;
    font-size: clamp(0.8rem, 1.9vmin, 0.95rem); letter-spacing: 0.04em;
    cursor: pointer;
  }
  .overlay-content .svc-toggle { font-size: clamp(1.15rem, 2.6vmin, 1.5rem); }
  .svc-toggle:hover { border-bottom-color: var(--ink-light); }
  .svc-toggle:focus-visible, .svc-item:focus-visible, .svc-pop-close:focus-visible { outline: 2px solid var(--ink-light); outline-offset: 3px; }
  .svc-chev {
    width: 0.5em; height: 0.5em;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translate(-12%, -12%);
    transition: transform 0.25s ease;
  }
  .svc.open .svc-chev { transform: rotate(-135deg) translate(-12%, -12%); }
  .svc-body {
    display: grid; grid-template-rows: 0fr;
    visibility: hidden;                         /* closed items can't be reached with Tab */
    transition: grid-template-rows 0.3s ease, visibility 0s linear 0.3s;
  }
  .svc.open .svc-body { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows 0.3s ease, visibility 0s; }
  .svc-inner { overflow: hidden; min-height: 0; }
  .svc-item {
    font: inherit; color: inherit; text-align: left;
    background: none; border: 0; padding: 0; cursor: pointer;
    text-decoration: underline dotted rgba(242,238,230,0.6); text-underline-offset: 0.28em;
  }
  .svc-item:hover, .svc-item.active { text-decoration-style: solid; text-decoration-color: var(--ink-light); }
  .svc-pop {
    position: absolute; z-index: 6;
    width: min(320px, calc(100% - 24px));
    background: #F2EEE6; color: #22403b;
    border-radius: 10px;
    padding: 0.85em 2.4em 0.95em 1em;
    box-shadow: 0 12px 40px rgba(0,0,0,0.45);
    font-size: clamp(0.92rem, 1.8vmin, 1.05rem); line-height: 1.5;
    opacity: 0; transform: translateY(4px);
    transition: opacity 0.15s ease, transform 0.15s ease;
  }
  .svc-pop.show { opacity: 1; transform: none; }
  .svc-pop strong { display: block; font-weight: 700; margin-bottom: 0.25em; }
  .svc-pop-close {
    position: absolute; top: 0.3em; right: 0.35em;
    font: inherit; font-size: 1.4em; line-height: 1;
    width: 1.5em; height: 1.5em; border: 0; border-radius: 50%;
    background: transparent; color: #22403b; cursor: pointer;
  }
  .svc-pop-close:hover { background: rgba(34,64,59,0.12); }

  /* ---------- contact modal ---------- */
  .modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0s linear 0.25s;
  }
  .modal.open { opacity: 1; visibility: visible; transition: opacity 0.25s ease; }
  .modal-backdrop { position: absolute; inset: 0; background: rgba(8,8,7,0.66); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
  .modal-card {
    position: relative;
    width: 100%;
    max-width: calc(380px * var(--k, 1));
    background: #24312e;
    color: var(--ink-light);
    border: 1px solid rgba(242,238,230,0.16);
    border-radius: 14px;
    padding: 28px 24px 24px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.55);
    transform: translateY(10px) scale(0.97);
    transition: transform 0.3s cubic-bezier(.22,.8,.26,1);
  }
  .modal.open .modal-card { transform: none; }
  .modal-card h2 { font-size: 1.35rem; font-weight: 400; margin: 0 0 0.25em; text-align: left; }
  .modal-sub { font-size: 0.9rem; opacity: 0.7; margin: 0 0 1.2em; }
  .modal-close {
    position: absolute;
    top: 10px; right: 12px;
    width: 34px; height: 34px;
    border: 0;
    background: transparent;
    color: var(--ink-light);
    font-size: 1.5rem;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0.7;
  }
  .modal-close:hover { opacity: 1; background: rgba(242,238,230,0.1); }
  .modal-close:focus-visible, .contact-opt:focus-visible { outline: 2px solid var(--ink-light); outline-offset: 2px; }

  .contact-opt {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    margin-bottom: 10px;
    border: 1px solid rgba(242,238,230,0.18);
    border-radius: 10px;
    color: inherit;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
  }
  .contact-opt:last-child { margin-bottom: 0; }
  .contact-opt:hover { background: rgba(242,238,230,0.08); border-color: rgba(242,238,230,0.4); }
  .contact-opt .ico {
    flex: 0 0 auto;
    width: 38px; height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(242,238,230,0.1);
  }
  .contact-opt .ico svg { width: 20px; height: 20px; fill: none; stroke: var(--ink-light); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .contact-opt .txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .contact-opt strong { font-weight: 400; font-size: 1rem; }
  .contact-opt small { font-size: 0.82rem; opacity: 0.65; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  @media (max-height: 520px) {
    .face .hero-title { font-size: clamp(0.95rem, 3vmin, 1.2rem); margin-bottom: 0.35em; }
    .face .hero-desc { font-size: 0.62rem; line-height: 1.4; margin-bottom: 0.6em; }
  }

  /* ---------- fullscreen page (opens from the clicked side) ---------- */
  .overlay {
    position: fixed;
    z-index: 50;
    background: var(--c-company);
    color: var(--ink-light);
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    transition:
      left 0.55s cubic-bezier(.22,.8,.26,1),
      top 0.55s cubic-bezier(.22,.8,.26,1),
      width 0.55s cubic-bezier(.22,.8,.26,1),
      height 0.55s cubic-bezier(.22,.8,.26,1),
      border-radius 0.55s ease;
  }
  .overlay.open { border-radius: 0; }
  .overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse at 50% 28%, rgba(255,255,255,0.07), rgba(255,255,255,0) 60%),
      radial-gradient(ellipse at 50% 50%, rgba(0,0,0,0) 50%, rgba(0,0,0,0.28) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
  }
  .overlay.open::before { opacity: 1; }
  .overlay:focus { outline: none; }

  /* "Nazad": the visible way out of pages 2-4 (page 1 has Explore in its hero) */
  .overlay-back {
    position: absolute;
    top: clamp(14px, 3vh, 26px);
    left: clamp(14px, 3vw, 28px);
    z-index: 3;
    font-family: inherit;
    font-size: clamp(0.85rem, 1.7vmin, 1rem);
    color: var(--ink-light);
    background: rgba(31,54,50,0.55);
    border: 1px solid rgba(242,238,230,0.38);
    border-radius: 999px;
    padding: 0.5em 1.2em 0.5em 1em;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.25s ease, background 0.2s ease;
  }
  .overlay.open .overlay-back { opacity: 1; transition-delay: 0.38s, 0s; }
  .overlay-back:hover { background: rgba(242,238,230,0.14); }
  .overlay-back:focus-visible, .overlay .cta:focus-visible { outline: 2px solid var(--ink-light); outline-offset: 3px; }
  .overlay.has-back .overlay-content { padding-top: clamp(64px, 11vh, 100px); }
  /* page 2 grows when "Usluge" opens: anchor it near the top so the title doesn't jump */
  .overlay.has-svc .overlay-content { margin: 0 auto; padding-top: clamp(80px, 17vh, 170px); }

  /* bottom dock of page 1: the way into the rest of the site */
  .overlay-dock {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75em;
    padding: 72px 16px clamp(18px, 4.5vh, 40px);
    background: linear-gradient(to top, rgba(31,54,50,0.72) 30%, rgba(31,54,50,0));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
  }
  .overlay.open .overlay-dock { opacity: 1; transition-delay: 0.45s; }
  .overlay-dock > * { pointer-events: auto; }
  /* the single, highlighted call to action: plain text, no button outline (still a real button for keyboard/screen readers) */
  .dock-line {
    font-family: inherit;
    font-size: clamp(1.1rem, 2.5vmin, 1.45rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #fff;
    background: none;
    border: 0;
    border-radius: 4px;
    padding: 0.35em 0.6em;
    cursor: pointer;
    text-shadow: 0 0 22px rgba(242,238,230,0.55), 0 1px 2px rgba(0,0,0,0.35);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.4em;
    text-decoration-color: rgba(242,238,230,0.6);
    transition: text-decoration-color 0.2s ease, text-shadow 0.2s ease;
    animation: dockGlow 3.6s ease-in-out 2.6s infinite;
  }
  .dock-line:hover { text-decoration-color: #fff; animation: none; text-shadow: 0 0 26px rgba(242,238,230,0.8), 0 1px 2px rgba(0,0,0,0.35); }
  .dock-line:focus-visible { outline: 2px solid var(--ink-light); outline-offset: 4px; animation: none; }
  .when-touch { display: none; }
  @media (hover: none) and (pointer: coarse) { .when-mouse { display: none; } .when-touch { display: inline; } }
  .overlay.has-dock .overlay-content { padding-bottom: clamp(140px, 24vh, 200px); }

  /* page 1 atmosphere: a faint floor grid receding to a horizon, like a 3D plan of an industrial hall
     (drawn as a small vector image: converging lines + horizontals that bunch up towards the horizon) */
  .overlay-art {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    width: 100%; height: 52%;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to top, #000 22%, transparent 100%);
            mask-image: linear-gradient(to top, #000 22%, transparent 100%);
  }

  @media (max-aspect-ratio: 1/1) { .overlay-art { height: 40%; } }

  /* barely-there glow on the line; stops while you hover or focus it */
  @keyframes dockGlow {
    0%, 100% { text-shadow: 0 0 14px rgba(242,238,230,0.30), 0 1px 2px rgba(0,0,0,0.35); }
    50%      { text-shadow: 0 0 30px rgba(242,238,230,0.80), 0 1px 2px rgba(0,0,0,0.35); }
  }

  /* entrance on first load: title, description, button, then the dock fade up one after another */
  .overlay.intro .hero-title,
  .overlay.intro .hero-desc,
  .overlay.intro .hero-cta { animation: introUp 1s cubic-bezier(.22,.8,.26,1) both; }
  .overlay.intro .hero-title { animation-delay: 0.2s; }
  .overlay.intro .hero-desc  { animation-delay: 0.48s; }
  .overlay.intro .hero-cta   { animation-delay: 0.76s; }
  .overlay.intro .overlay-dock { animation: introFade 1.1s ease 1.15s both; }
  .overlay.intro .overlay-art  { animation: introFade 2s ease 0.1s both; }
  @keyframes introUp   { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
  @keyframes introFade { from { opacity: 0; } to { opacity: 1; } }

  .overlay-scroll {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.25s ease;
    touch-action: manipulation;     /* scroll + pinch-zoom both work in the fullscreen text */
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .overlay.open .overlay-scroll { opacity: 1; transition-delay: 0.38s; }

  .overlay-content {
    margin: auto;
    width: 100%;
    max-width: calc(820px * var(--k, 1));
    padding: clamp(32px, 8vh, 80px) clamp(22px, 5vw, 48px) clamp(64px, 12vh, 110px);
  }
  .overlay-content h1 { font-size: clamp(2rem, 5.2vmin, 3.2rem); font-weight: 400; text-align: center; margin: 0 0 0.15em; }
  .overlay-content h2 { font-size: clamp(1.5rem, 4vmin, 2.4rem); font-weight: 400; text-align: left; margin: 0 0 0.6em; line-height: 1.25; }
  .overlay-content p { font-size: clamp(1rem, 2.1vmin, 1.25rem); line-height: 1.65; margin: 0 0 0.7em; opacity: 0.94; }
  .overlay-content .tagline { font-size: clamp(0.95rem, 1.9vmin, 1.1rem); text-align: center; font-style: italic; margin: 0 0 1.6em; }
  .overlay-content .section-label { font-size: clamp(0.85rem, 1.7vmin, 1rem); text-align: center; opacity: 0.75; margin: 1.6em 0 0.6em; }
  .overlay-content .doc-list { margin: 0 0 1em; }
  .overlay-content .doc-list li { font-size: clamp(1rem, 2.1vmin, 1.25rem); line-height: 1.6; margin-bottom: 0.5em; padding-left: 1.3em; }
  .overlay-content .partners-row { font-size: clamp(1rem, 2.1vmin, 1.25rem); line-height: 1.9; }
  .overlay-content .contact-block { font-size: clamp(1rem, 2.1vmin, 1.25rem); line-height: 1.9; text-align: center; }
  .overlay-content .hero-cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
  .overlay-content .hero-title {
    font-size: clamp(2.4rem, 7.2vmin, 4.6rem);
    line-height: 1.06;
    letter-spacing: -0.012em;
    font-weight: 400;
    margin: 0 0 0.5em;
    text-wrap: balance;                      /* even line lengths, no lonely last word */
    text-shadow: 0 2px 24px rgba(0,0,0,0.18);
    font-feature-settings: "kern", "liga";
    -webkit-font-smoothing: antialiased;
  }
  .overlay-content .hero-desc { font-size: clamp(1.05rem, 2.3vmin, 1.3rem); line-height: 1.68; max-width: calc(640px * var(--k, 1)); margin: 0 auto 1.7em; opacity: 0.88; text-wrap: pretty; }
  .overlay-content .cta { font-size: clamp(0.95rem, 1.9vmin, 1.1rem); padding: 0.78em 2.4em; letter-spacing: 0.05em; }
  .overlay-content h2.brand { font-size: clamp(1.9rem, 4.8vmin, 3rem); text-align: center; margin: 0 0 0.1em; }
  .overlay-content .placeholder-note { font-size: clamp(0.95rem, 1.9vmin, 1.1rem); }

  .overlay-hint {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    text-align: center;
    padding: 34px 16px clamp(14px, 3vh, 26px);
    background: linear-gradient(to top, rgba(31,54,50,0.96) 35%, rgba(31,54,50,0));
    font-size: 0.8rem;
    font-style: italic;
    letter-spacing: 0.03em;
    color: rgba(242,238,230,0.7);
    opacity: 0;
    pointer-events: none;
  }
  .overlay.open .overlay-hint { animation: overlayHint 4.5s ease 0.9s both; }
  @keyframes overlayHint {
    0%   { opacity: 0; }
    12%  { opacity: 0.9; }
    78%  { opacity: 0.9; }
    100% { opacity: 0; }
  }

  /* portrait screens (phones): use the width, and move the arrows beside the dots */
  @media (max-aspect-ratio: 1/1) {
    :root {
      --blockW: min(60vw, calc(400px * var(--k)));
      --blockL: min(76vw, calc(520px * var(--k)));
      --ui-bottom: clamp(20px, 5vh, 44px);
    }
    .arrow {
      top: auto;
      bottom: calc(var(--ui-bottom) + 30px);       /* a row above the dots, so long titles get room */
      transform: none;
      max-width: calc(50% - 18px);
      font-size: 0.72rem;
      gap: 0.5em;
      padding: 0.45em 0.7em;
      border-radius: 12px;
    }
    .open-btn { left: 14px; transform: none; max-width: calc(100% - 150px); }   /* keep clear of the language toggle */
    .arrow-left  { left: 12px; right: auto; }
    .arrow-right { right: 12px; left: auto; }
    .hint { bottom: calc(var(--ui-bottom) + 100px); }
  }

  @media (prefers-reduced-motion: reduce) {
    .overlay.intro .hero-title, .overlay.intro .hero-desc, .overlay.intro .hero-cta,
    .overlay.intro .overlay-dock, .overlay.intro .overlay-art, .dock-line { animation: none; }
    .assembly { transition: none; }
    .overlay, .overlay::before, .overlay-scroll, .side-art,
    .modal, .modal-card, .dot, .hint, .cta, .arrow, .contact-opt, .overlay-back, .overlay-dock, .lang-btn, .svc-body, .svc-chev, .svc-pop { transition-duration: 0.01s; transition-delay: 0s; }
  }
