/* Евро Импекс – сайт (демо). Арт дирекция: „гласът на контейнера“.
   Зеленото, черното и лаймът са от логото; буквите са като шаблонните надписи по контейнерите;
   мрежата е от девет панела – колкото са буквите в EUROIMPEX. 3D обектите са направени от техни снимки. */

@font-face { font-family: "Sofia Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/sofia-sans-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Sofia Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/sofia-sans-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: "Commissioner"; font-style: normal; font-weight: 500 800; font-display: swap; src: url("../fonts/commissioner-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Commissioner"; font-style: normal; font-weight: 500 800; font-display: swap; src: url("../fonts/commissioner-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; }

:root {
  --white: #FFFFFF;
  --tone: #EFEFEA;
  --ink: #1F1A17;
  --ink-2: #322C28;
  --green: #049240;
  --rib: #037B36;
  --lime: #84C225;
  --muted: #5E5A55;
  --on-ink-muted: #BFBBB6;
  /* Two typefaces only (client, 2026-11-23): the caps labels use Commissioner too. */
  --display: "Commissioner", "Sofia Sans", "Helvetica Neue", Arial, sans-serif;
  --font-head: "Commissioner", "Sofia Sans", "Helvetica Neue", Arial, sans-serif;
  --text: "Sofia Sans", "Helvetica Neue", Arial, sans-serif;
  --m: clamp(16px, 2.2vw, 32px);
  --g: clamp(10px, 1.25vw, 20px);
  --bleed: calc(var(--m) + max(0px, (100vw - 1760px) / 2));
  --head: 72px;
  --gap-sec: clamp(88px, 11vw, 176px);
  --pad-field: clamp(72px, 9vw, 144px);
  --fs-menu: min(15.5vw, calc((100svh - var(--head) - 150px) / 5.7));
  --ease: cubic-bezier(.2, .7, .1, 1);
  --tilt: 14.7deg;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 18px/1.5 var(--text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--lime); color: var(--ink); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--m); top: -120px; z-index: 100; background: var(--ink); color: #fff; padding: 12px 16px; font-weight: 700; }
.skip:focus { top: 8px; }
.wrap { width: 100%; max-width: 1760px; margin-inline: auto; padding-inline: var(--m); }
.g9 { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); column-gap: var(--g); }

/* The stencil voice: the lettering of the containers. */
.cap { font-family: var(--display); font-weight: 900; text-transform: uppercase; letter-spacing: 0; line-height: .9; }
/* Headings: Commissioner (Bulgarian letterforms with lang="bg"), in sentence case. The stencil caps of
   Commissioner caps stay for the container's own voice: menu, tab, buttons, labels, footer wall. */
h1.cap, h2.cap, h3.cap, .era-t, .colophon h3, .call .cap, .doc strong { font-family: var(--font-head); font-weight: 700; text-transform: none; letter-spacing: -.025em; line-height: 1; font-variant-numeric: lining-nums; }
h2.h-xl, h1.hh-title, h2.era-year { font-weight: 650; letter-spacing: -.035em; }
.h-xl { font-size: clamp(36px, 5.2vw, 88px); } /* smaller headings (client, 2026-11-23) */
.statement { font: 500 clamp(22px, 2.5vw, 36px)/1.22 var(--text); letter-spacing: -.01em; }
figcaption { font-size: 15px; line-height: 1.4; color: var(--muted); padding-top: 10px; }
.plain, .dir a, .desks a, .foot-bar a, .ask-link { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .22em; transition: text-decoration-color .2s; }
.plain:hover, .ask-link:hover { text-decoration-color: var(--green); }
.plain { font-weight: 700; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 22px 9px; background: var(--ink); color: #fff; border: 0; border-radius: 0; font: 900 22px/1 var(--display); text-transform: uppercase; letter-spacing: .01em; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, transform .12s; }
.btn:hover { background: var(--green); }
.btn:active { transform: translateY(1px) scale(.985); }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { background: #fff; color: var(--ink); }

/* ---------- Header and the menu tab ---------- */
.top { display: flex; align-items: center; height: var(--head); padding-inline: var(--m); }
.brand { display: block; flex: none; }
.brand img { height: 52px; width: auto; }
/* Phone on the left, beside the logo; the enquiry link at the far right, before the menu tab. */
.top-tel { margin-left: clamp(24px, 3.4vw, 56px); }
.top-ask { margin-left: auto; }
.top-link { font-weight: 700; font-size: 19px; white-space: nowrap; text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: .24em; transition: text-decoration-color .2s; }
.top-link:hover { text-decoration-color: var(--ink); }
/* The sales number, set as a small sculpture: Commissioner (the headings' face), lit from above.
   Depth = four thin graded steps (lighter at the face, darker toward the back, in em so it scales with the size),
   then a tight contact shadow and a long soft one. On hover it tips back and the depth and the light lengthen. */
.top-tel { display: inline-block; padding: 2px 2px 4px; color: var(--ink); font: 700 clamp(32px, 3.25vw, 48px)/1 var(--font-head); letter-spacing: -.025em; font-variant-numeric: lining-nums tabular-nums; text-decoration: none;
  text-shadow:
    0 .02em 0 #E3E5DE, 0 .04em 0 #D2D5CB, 0 .06em 0 #C0C4B8, 0 .08em 0 #ADB2A5,
    0 .1em .04em rgb(31 26 23 / .22), 0 .18em .2em rgb(31 26 23 / .14), 0 .34em .5em rgb(31 26 23 / .08);
  transform: perspective(600px) rotateX(0deg) translateY(0); transform-origin: 50% 100%;
  transition: transform .6s cubic-bezier(.2, .8, .2, 1), text-shadow .6s cubic-bezier(.2, .8, .2, 1), color .3s; }
.top-tel:hover, .top-tel:focus-visible { color: #0C0A09; text-decoration: none;
  text-shadow:
    0 .02em 0 #E3E5DE, 0 .045em 0 #D2D5CB, 0 .07em 0 #C0C4B8, 0 .095em 0 #ADB2A5, 0 .12em 0 #9CA194,
    0 .15em .05em rgb(31 26 23 / .24), 0 .28em .3em rgb(31 26 23 / .16), 0 .5em .7em rgb(31 26 23 / .10);
  transform: perspective(600px) rotateX(14deg) translateY(-.06em); }
.top-tel:active { transform: perspective(600px) rotateX(5deg) translateY(0); transition-duration: .12s; }
@media (hover: none) { .top-tel:hover { transform: none; } }
@media (prefers-reduced-motion: reduce) { .top-tel:hover, .top-tel:focus-visible, .top-tel:active { transform: none; } }

/* ---------- Horizontal menu (replaces the МЕНЮ tab, client 2026-11-23) ---------- */
.tab { display: none !important; }
/* Dark bar so it never blends with a white page, and it stays at the top while scrolling (client, 2026-11-24). */
:root { --hnav: 46px; }
html { scroll-padding-top: var(--hnav); }
.hnav { position: sticky; top: 0; z-index: 40; background: var(--grey); color: var(--ink); } /* same grey as the enquiry buttons (client, 2026-11-24) */

.hnav > ul { display: flex; justify-content: center; gap: clamp(6px, 2.4vw, 40px); padding-inline: var(--m); }
.hnav > ul > li { position: relative; }
.hnav a { display: block; padding: 15px 4px 13px; color: var(--ink); font: 700 clamp(14px, 1.05vw, 16px)/1 var(--font-head); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; white-space: nowrap; transition: color .2s, box-shadow .25s var(--ease); }
.hnav > ul > li > a:hover, .hnav > ul > li:has(:focus-visible) > a, .hnav > ul > li.is-open > a, .hnav a[aria-current] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--ink); }
.hnav :focus-visible { outline-color: var(--ink); outline-offset: -3px; }
.hn-drop > a::after { content: ""; display: inline-block; width: .38em; height: .38em; margin: 0 0 .2em .45em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.hn-drop ul { position: absolute; left: -14px; top: 100%; min-width: 250px; padding: 8px 0; background: #fff; box-shadow: 0 18px 40px -18px rgb(31 26 23 / .45); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .25s var(--ease), visibility 0s .25s; }
.hn-drop ul a { padding: 10px 18px; color: var(--ink); font: 600 15px/1.2 var(--text); letter-spacing: 0; text-transform: none; }
.hn-drop ul a:hover, .hn-drop ul a:focus-visible { background: var(--tone); color: var(--rib); }
@media (hover: hover) { .hn-drop:hover > ul { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .25s var(--ease); } }
.hn-drop.is-open > ul, .hn-drop:has(:focus-visible) > ul { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .25s var(--ease); }
@media (max-width: 700px) {
  .hnav > ul { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; gap: 14px; }
  .hnav > ul::-webkit-scrollbar { display: none; }
  .hnav a { padding: 13px 2px 11px; font-size: 13px; }
  /* The row scrolls sideways; a list opened by a tap spans the bar, outside the scrolling row. */
  .hnav > ul > li { position: static; }
  .hn-drop ul { left: 0; right: 0; min-width: 0; }
}
.tab { position: fixed; z-index: 60; top: 0; right: var(--m); min-width: 116px; height: 56px; padding: 5px 18px 0; background: var(--lime); color: var(--ink); border: 0; border-radius: 0; font: 900 25px/1 var(--display); text-transform: uppercase; letter-spacing: .01em; cursor: pointer; transition: background-color .2s, color .2s; }
.tab:hover { background: var(--ink); color: var(--lime); }
/* The tab leans a few pixels toward a mouse that comes near (see site.js); it settles back when the mouse leaves. */
.tab { translate: var(--mx, 0) var(--my, 0); }
.tab:not(.is-near) { transition: background-color .2s, color .2s, translate .5s cubic-bezier(.3, 1.6, .5, 1); }
.on-lime .tab, .menu-open .tab { background: var(--ink); color: var(--lime); }
.on-lime .tab:hover { background: #fff; color: var(--ink); }
.menu-open .tab:hover { background: var(--lime); color: var(--ink); }

/* ---------- The menu: a container wall, set down over the page ---------- */
.menu { position: fixed; inset: 0; z-index: 50; overflow: hidden; visibility: hidden; pointer-events: none; transition: visibility 0s .5s; }
.menu-open .menu { visibility: visible; pointer-events: auto; transition: none; }
.menu-wall { position: absolute; left: -25vw; top: -45vh; width: 150vw; height: 190vh; background: var(--green); transform: translate3d(0, -108%, 0) rotate(calc(-1 * var(--tilt))); transition: transform .48s cubic-bezier(.5, 0, .8, .3); }
.menu-open .menu-wall { transform: none; transition: transform .75s cubic-bezier(.16, .84, .24, 1); }
.menu-wall .ribs { left: 25vw; right: auto; width: 100vw; }
.menu-in { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; padding: calc(var(--head) + 4px) var(--m) max(20px, var(--m)); overflow: hidden auto; }
.menu-nav li { position: relative; z-index: 0; opacity: 0; transform: translateY(26px); transition: opacity .2s, transform .2s; }
.menu-open .menu-nav li { opacity: 1; transform: none; transition: opacity .35s, transform .6s var(--ease); }
.menu-open .menu-nav li:nth-child(1) { transition-delay: .26s; }
.menu-open .menu-nav li:nth-child(2) { transition-delay: .31s; }
.menu-open .menu-nav li:nth-child(3) { transition-delay: .36s; }
.menu-open .menu-nav li:nth-child(4) { transition-delay: .41s; }
.menu-open .menu-nav li:nth-child(5) { transition-delay: .46s; }
.menu-open .menu-nav li:nth-child(6) { transition-delay: .51s; }
.menu-nav a { display: block; padding-top: .05em; color: var(--ink); font: 900 var(--fs-menu)/.9 var(--display); text-transform: uppercase; text-decoration: none; white-space: nowrap; letter-spacing: 0; transition: letter-spacing .55s var(--ease); }
.menu-nav a[aria-current]::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: .04em; left: calc(-1 * var(--m)); right: calc(-1 * var(--m)); background: var(--lime); }
.menu-nav a:focus-visible { letter-spacing: var(--ls, .12em); outline: none; }
.menu-nav a:focus-visible::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--ink); }
@media (hover: hover) { .menu-nav a:hover { letter-spacing: var(--ls, .12em); } }
.menu-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 36px; font: 700 21px/1.2 var(--text); opacity: 0; transition: opacity .2s; }
.menu-open .menu-foot { opacity: 1; transition: opacity .4s .6s; }
.menu-foot a:not(.btn) { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .22em; }
.menu-foot .btn { margin-left: auto; }
.menu-foot .btn:hover { background: var(--lime); color: var(--ink); }
.menu :focus-visible { outline-color: var(--ink); }

/* Between pages the same wall comes down, the next page loads behind it, and it lifts. */
.wall-in .menu, .wall-down .menu, .wall-lift .menu { visibility: visible; transition: none; }
.wall-in .menu-in, .wall-down .menu-in, .wall-lift .menu-in { visibility: hidden; }
.wall-in .menu-wall, .wall-down .menu-wall { transform: none; }
.wall-in .menu-wall { transition: none; }
.wall-down .menu-wall { transition: transform .42s cubic-bezier(.3, .7, .25, 1); }
.wall-lift .menu-wall { transition: transform .68s cubic-bezier(.7, 0, .2, 1); }

/* Ribs: the nine panels of a container side. */
.ribs { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(9, 1fr); pointer-events: none; }
.ribs i { border-left: max(6px, .8vw) solid var(--rib); }
.ribs i:first-child { border-left: 0; }

/* Without script the menu is a plain block under the header. */
html:not(.js) .tab { display: none; }
html:not(.js) .menu { position: static; visibility: visible; pointer-events: auto; background: var(--green); }
html:not(.js) .menu-wall { display: none; }
html:not(.js) .menu-in { padding-top: 24px; visibility: visible; }
html:not(.js) .menu-nav li, html:not(.js) .menu-foot { opacity: 1; transform: none; }
html:not(.js) .menu-nav a { font-size: clamp(36px, 6vw, 72px); }

/* ---------- Hero: their real container, photographed side-on (client photo, 2026-11-19) ----------
   The photograph carries its own lettering (EU RO IM PE X) and the sales number; nothing is written over it.
   On arrival the container is lowered and set down level, as a hook-lift truck sets it on the ground. */
.hero { position: relative; container-type: inline-size; }
.hero-frame {
  /* The frame leaves room for the statement and the button, so the first screen says what Euroimpex does and how to ask. */
  --H: clamp(38cqw, calc(100svh - var(--head) - var(--hnav) - var(--lead-h, 196px)), 58cqw);
  position: relative; height: var(--H); overflow: hidden; background: #B9C6D2;
}
.stage { position: absolute; inset: 0; transform-origin: 50% 72%; transition: transform 1.1s cubic-bezier(.62, .02, .18, 1); will-change: transform, translate; }
.plate { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 62%;
  /* The photo was taken slightly crooked (the container's top edge rises 8 px over 450 px): turned level, and
     enlarged just enough that no corner shows. */
  rotate: .85deg; scale: 1.035; }
.js .hero:not(.is-set) .stage { transform: translateY(-4%) rotate(-1.6deg) scale(1.08); }

.lead { padding-top: clamp(20px, 2.5vw, 36px); align-items: start; row-gap: 14px; }
.lead-main { grid-column: 1 / span 6; grid-row: 1 / span 2; max-width: 38em; font-size: clamp(18px, 1.55vw, 25px); line-height: 1.4; } /* the client's longer text */
.acts { grid-column: 7 / span 3; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.lead-cap { grid-column: 7 / span 3; max-width: 30ch; font-size: 15px; line-height: 1.4; color: var(--muted); }

/* ---------- Sections ---------- */
.sec { padding-top: var(--gap-sec); scroll-margin-top: calc(72px - var(--gap-sec)); }
.sec-ink, .sec-lime, .sec-deep { margin-top: var(--gap-sec); padding-block: var(--pad-field); }
/* Two fields of colour in a row meet edge to edge (a white sliver between them read as a slip). */
:is(.sec-ink, .sec-lime, .sec-deep) + :is(.sec-ink, .sec-lime, .sec-deep) { margin-top: 0; }
.sec-ink { background: var(--ink); color: #fff; color-scheme: dark; }
.sec-ink :focus-visible, .sec-deep :focus-visible { outline-color: var(--lime); }
.sec-ink figcaption { color: var(--on-ink-muted); }
.sec-lime { background: var(--lime); color: var(--ink); }
.sec-deep { background: var(--rib); color: #fff; }
.sec-side { grid-column: 7 / span 3; padding-bottom: .55em; font-size: clamp(17px, 1.4vw, 20px); }

/* ---------- Media module: any photo or video fits its frame, so new footage never changes the layout ---------- */
.m { position: relative; overflow: hidden; background: var(--tone); }
.m > img, .m > video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: var(--fx, 50%) var(--fy, 50%); }
.m-16x9 { aspect-ratio: 16 / 9; }
.m-3x2 { aspect-ratio: 3 / 2; }
.m-4x5 { aspect-ratio: 4 / 5; }
.m-1x1 { aspect-ratio: 1; }
.m-21x9 { aspect-ratio: 21 / 9; }
.sec-ink .m { background: var(--ink-2); }

/* ---------- 3D: boxes made of their own photographs (CSS 3D, no library) ---------- */
.cube { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-style: preserve-3d; }
.cube > i { position: absolute; left: 0; top: 0; display: block; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: var(--ink-2) 50% 50% / cover no-repeat; }
.cube > i::after { content: ""; position: absolute; inset: 0; background: #000; opacity: var(--sh, 0); }
.cube > i > b { position: absolute; inset: 0; background: 50% 50% / cover no-repeat; opacity: var(--mix, 0); }
.cube > .f-front { width: var(--w); height: var(--h); margin: calc(var(--h) / -2) 0 0 calc(var(--w) / -2); transform: translateZ(calc(var(--d) / 2)); }
.cube > .f-left { width: var(--d); height: var(--h); margin: calc(var(--h) / -2) 0 0 calc(var(--d) / -2); transform: rotateY(-90deg) translateZ(calc(var(--w) / 2)); background-position: 0 50%; --sh: .5; }
.cube > .f-right { width: var(--d); height: var(--h); margin: calc(var(--h) / -2) 0 0 calc(var(--d) / -2); transform: rotateY(90deg) translateZ(calc(var(--w) / 2)); background-position: 100% 50%; --sh: .3; }
.cube > .f-top { width: var(--w); height: var(--d); margin: calc(var(--d) / -2) 0 0 calc(var(--w) / -2); transform: rotateX(90deg) translateZ(calc(var(--h) / 2)); background-position: 50% 0; }
.cube > .f-top::after { background: #fff; opacity: .1; }

/* ---------- Services: from the container to the bale, then one large sheet per service ---------- */
.svc { padding-top: clamp(40px, 5vw, 80px); }
.press { position: relative; height: 185vh; }
.press-stage { position: sticky; top: var(--hnav); height: calc(100vh - var(--hnav)); height: calc(100svh - var(--hnav)); display: flex; align-items: center; overflow: hidden; }
/* Title above the container, a short grey line under it (client's sketch of 2026-11-23). */
.press-grid { width: 100%; display: grid; grid-template-rows: auto 1fr auto; height: 100%; padding-block: clamp(24px, 4vh, 48px); }
.press-3d { position: relative; min-height: 0; perspective: 1700px; perspective-origin: 50% 30%; }
.press-lede { max-width: 46ch; font-size: clamp(15px, 1.15vw, 17px); line-height: 1.45; color: var(--muted); }
.press-rig { position: absolute; left: 50%; top: 66%; transform-style: preserve-3d; transform: scale(var(--u, 1)) rotateX(var(--rx, -15deg)) rotateY(var(--ry, -52deg)); }
.press-cube { transform: translateY(calc(var(--h) / -2)); }
.press-cube > .f-front { filter: brightness(1.16); }
.press-cube > .f-top { background-color: #0C3D21; border: 7px solid rgb(4 146 64 / calc(1 - var(--mix, 0))); }
.press-floor { position: absolute; left: -380px; top: -200px; width: 760px; height: 400px; background: var(--tone); transform: rotateX(90deg); }
/* The box's shadow on the floor: it tightens and darkens as the press squeezes the container into a bale. */
.press-shade { position: absolute; left: 0; top: 0; background: radial-gradient(closest-side, rgb(31 26 23 / .55), rgb(31 26 23 / .28) 62%, transparent); pointer-events: none; transform: translateY(-1px) rotateX(90deg); }
.press-cap { position: absolute; left: 0; right: 0; bottom: 0; height: 1em; font: 900 clamp(22px, 2.2vw, 34px)/1 var(--display); text-transform: uppercase; text-align: center; }
.press-cap span { position: absolute; left: 0; right: 0; bottom: 0; }
.press-cap .pc-a { opacity: calc(1 - var(--mix, 0)); }
.press-cap .pc-b { opacity: var(--mix, 0); color: var(--green); }
html:not(.js) .press, .no-anim .press { height: auto; }
html:not(.js) .press-stage, .no-anim .press-stage { position: relative; height: auto; padding-block: 24px; }
html:not(.js) .press-3d { display: none; }

.svc-body { align-items: start; }
.svc-side { grid-column: 1 / span 3; position: sticky; top: calc(var(--hnav) + 16px); display: grid; gap: 22px; padding-top: clamp(24px, 4vh, 48px); }
.svc-main { grid-column: 4 / span 6; }
.svc-index { display: grid; justify-items: start; }
.svc-index ul { width: 100%; }
.si-head { margin: 14px 0 4px; font: 800 13px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.si-head:first-child { margin-top: 0; }
.si-head a { color: inherit; text-decoration: none; }
.si-head a:hover { color: var(--green); }
.svc-index li { position: relative; z-index: 0; }
.svc-index li a { position: relative; display: block; padding: .3em 0 .22em; color: var(--ink); font: 800 clamp(16px, 1.25vw, 20px)/1 var(--display); text-transform: uppercase; letter-spacing: .01em; text-decoration: none; transition: color .2s; }
.svc-index .si-sub a { font: 600 15px/1.2 var(--text); text-transform: none; letter-spacing: 0; }
/* A short enquiry beside the services, in small type. */
.ask-mini { display: grid; gap: 7px; max-width: 320px; padding: 16px; background: var(--tone); }
.am-title { font: 800 14px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; }
.ask-mini input, .ask-mini select, .ask-mini textarea { width: 100%; padding: 8px 10px; border: 1px solid rgb(31 26 23 / .18); border-radius: 0; background: #fff; font-size: 14px; line-height: 1.3; }
.ask-mini textarea { resize: vertical; min-height: 48px; }
.ask-mini input:focus, .ask-mini select:focus, .ask-mini textarea:focus { outline: none; border-color: var(--ink); box-shadow: inset 0 -2px 0 var(--green); }
.ask-mini .btn { min-height: 40px; padding: 9px 14px 7px; font-size: 16px; justify-self: start; }
.ask-mini .f-status { font-size: 13px; color: var(--rib); }
.ask-mini .f-status:empty { display: none; }
/* The side column must fit one screen; on short screens the small form is left to the one at the foot of the page. */
@media (max-height: 860px) { .ask-mini { display: none; } }
.svc-index li a::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: calc(-1 * var(--bleed)); right: -.3em; background: var(--green); transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s var(--ease); }
.svc-index li a[aria-current]::before { transform: none; }
.svc-index li a:hover:not([aria-current]) { color: var(--green); }
.svc-index li a:focus-visible { outline-offset: -3px; }
.svc-list { display: grid; gap: clamp(96px, 10vw, 176px); }
.svc-item { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: var(--g); align-items: start; scroll-margin-top: 28px; }
.svc-head { grid-column: 1 / -1; margin-bottom: clamp(18px, 2vw, 30px); }
.svc-item h3 { font-size: clamp(32px, 3.8vw, 64px); }
.svc-sub { margin-top: 12px; font: 700 clamp(18px, 1.5vw, 22px)/1.3 var(--text); color: var(--rib); } /* the deeper green: 5.4:1 on white */
.svc-media { grid-column: 1 / -1; }
.svc-txt { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: var(--g); row-gap: 16px; margin-top: 24px; }
.svc-txt > p { grid-column: 1 / span 3; }
.svc-txt .incl { grid-column: 4 / span 3; grid-row: 1 / span 2; }
.svc-txt .ask-link { grid-column: 1 / span 3; justify-self: start; }
.svc-item.alt .svc-head { grid-column: 1 / span 3; }
.svc-item.alt .svc-media { grid-column: 4 / span 3; grid-row: 1 / span 2; }
.svc-item.alt .svc-txt { grid-column: 1 / span 3; grid-row: 2; grid-template-columns: minmax(0, 1fr); margin-top: 0; align-self: end; }
.svc-item.alt .svc-txt > * { grid-column: 1; grid-row: auto; }
/* Long words ("Строителни") must fit the half column beside the photo. */
@media (min-width: 900px) { .svc-item h3 { font-size: clamp(32px, 3.4vw, 60px); } }
.incl { display: grid; gap: 6px; }
.incl li { position: relative; padding-left: 20px; }
.incl li::before { content: ""; position: absolute; left: 0; top: .52em; width: 9px; height: 9px; background: var(--green); }
.ask-link { font-weight: 700; }
.ask-link::after { content: " \2192"; }
.bigincl { display: flex; flex-direction: column; justify-content: flex-end; gap: .34em; aspect-ratio: 16 / 9; padding: clamp(20px, 2.8vw, 44px); background: var(--ink); color: #fff; font: 900 clamp(26px, 3.2vw, 56px)/.95 var(--display); text-transform: uppercase; }

/* Reveal: a frame opens from the left, like the door of a container, and the picture settles behind it.
   The door is a panel that slides away (a transform, moved by the graphics card), not a clip repainted each frame. */
.js [data-wipe] .m::after { content: ""; position: absolute; inset: -1px; z-index: 1; background: inherit; transform-origin: 100% 50%; transition: transform .8s cubic-bezier(.65, 0, .2, 1); pointer-events: none; }
.js [data-wipe].is-in .m::after { transform: scaleX(0); }
.js [data-wipe] .m > img, .js [data-wipe] .m > video { transform: scale(1.14); transition: transform 1.15s cubic-bezier(.2, .7, .2, 1); }
.js [data-wipe].is-in .m > img, .js [data-wipe].is-in .m > video { transform: none; }
.js [data-wipe] .bigincl { clip-path: inset(0 100% 0 0); transition: clip-path .8s cubic-bezier(.65, 0, .2, 1); }
.js [data-wipe].is-in .bigincl { clip-path: inset(0 0 0 0); }

/* ---------- For municipalities and companies ---------- */
.who-grid { margin-top: clamp(36px, 5vw, 80px); row-gap: 44px; }
.who-col { grid-column: 1 / span 4; display: grid; gap: 14px; align-content: start; }
.who-col + .who-col { grid-column: 6 / span 4; }
.who-col h3 { margin-bottom: 6px; font-size: clamp(28px, 3.2vw, 54px); }
.who-col p { max-width: 46ch; }
.who-links { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 12px; }
.who-links a { color: #fff; font: 900 clamp(19px, 1.55vw, 25px)/1.1 var(--display); text-transform: uppercase; letter-spacing: .015em; text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 3px; text-underline-offset: .22em; transition: color .2s; }
.who-links a:hover { color: var(--lime); }
.who-btn { margin-top: clamp(40px, 5vw, 72px); }
/* Three boxes, one per kind of client; the box reached from the menu lights up. */
.who-grid .who-box { grid-column: span 3; padding: clamp(20px, 2vw, 32px); background: rgb(255 255 255 / .07); box-shadow: inset 0 3px 0 var(--lime); scroll-margin-top: calc(var(--hnav) + 24px); transition: background-color .4s; }
.who-box h3 { font-size: clamp(24px, 2.1vw, 34px); }
.who-box .who-links a { font-size: clamp(15px, 1.1vw, 18px); }
.who-box:target { background: rgb(255 255 255 / .16); }
.who-soon { color: rgb(255 255 255 / .75); font-style: italic; }
@media (max-width: 1100px) { .who-grid .who-box { grid-column: 1 / -1; } }

/* ---------- Materials: a yard of bales, sorted by kind and colour ---------- */
.matter-head { align-items: end; }
.matter-head h2 { grid-column: 1 / span 6; }
.yard { position: relative; height: clamp(300px, 50vw, 760px); margin-top: clamp(12px, 2vw, 32px); perspective: 1900px; perspective-origin: 50% 18%; overflow: hidden; }
.yard-rig { position: absolute; left: 50%; top: 80%; transform-style: preserve-3d; transform: scale(var(--u, 1)) rotateX(var(--rx, -13deg)) rotateY(var(--ry, -24deg)); }
.yard-floor { position: absolute; left: -700px; top: -330px; width: 1400px; height: 660px; background: #29231F; transform: rotateX(90deg); }
.bale { transform: translate3d(var(--x), calc(var(--y) - 1100px), var(--z)) rotateY(var(--tw, 0deg)); transition: transform .8s cubic-bezier(.32, 1.18, .52, 1) var(--dl, 0s); }
.yard.is-in .bale { transform: translate3d(var(--x), var(--y), var(--z)) rotateY(var(--tw, 0deg)); }
.yard-tag { position: absolute; left: 0; top: 0; transform: translate3d(var(--x), var(--y), var(--z)) translate(-50%, -100%); color: var(--lime); font: 900 23px/1 var(--display); text-transform: uppercase; white-space: nowrap; opacity: 0; transition: opacity .4s var(--dl, 0s); }
.yard.is-in .yard-tag { opacity: 1; }
.yard-key { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; color: var(--lime); font: 900 18px/1 var(--display); text-transform: uppercase; }
@media (min-width: 701px) { .yard-key { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } }
html:not(.js) .yard { display: none; }

.matter-mid { margin-top: clamp(56px, 8vw, 128px); align-items: end; }
.matter-txt { grid-column: 1 / span 3; display: grid; gap: 18px; padding-bottom: 34px; }
.matter-txt p:not(.statement) { color: var(--on-ink-muted); max-width: 34ch; }
.matter-fork { grid-column: 4 / span 6; margin-right: calc(-1 * var(--bleed)); }
.sorted { margin-top: clamp(56px, 7vw, 112px); }
.sorted img { width: 100%; }
/* "Mlechen PET": the photo on the right two thirds, its caption set large in the free third. */
@media (min-width: 900px) {
  .sorted-milk { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); column-gap: clamp(20px, 3vw, 48px); }
  .sorted-milk .frac { grid-column: 2; grid-row: 1; }
  .sorted-milk img { grid-column: 2; grid-row: 2; }
  .sorted-milk figcaption { grid-column: 1; grid-row: 2; align-self: end; max-width: 20ch; color: #fff; font-size: clamp(19px, 1.6vw, 25px); line-height: 1.3; }
}
.frac { position: relative; height: 1em; margin-bottom: clamp(8px, 1vw, 16px); font: 900 clamp(12px, 2.6vw, 46px)/1 var(--display); text-transform: uppercase; color: var(--lime); }
.frac li { position: absolute; left: var(--x); top: 0; white-space: nowrap; }

/* ---------- From the field: the rail of recent pictures and footage ---------- */
.field-head { align-items: end; }
.field-head h2 { grid-column: 1 / span 5; }
.field-head .sec-side { grid-column: 6 / span 2; }
.rail-ctl { grid-column: 8 / span 2; display: flex; justify-content: flex-end; gap: 8px; padding-bottom: .4em; }
.rail-ctl button { width: 54px; height: 54px; border: 0; border-radius: 0; background: var(--ink); color: #fff; font: 700 24px/1 var(--text); cursor: pointer; transition: background-color .2s, transform .12s; }
.rail-ctl button:hover { background: var(--green); }
.rail-ctl button:active { transform: scale(.96); }
/* At either end of the rail its arrow goes quiet. */
.rail-ctl button:disabled { opacity: .28; cursor: default; background: var(--ink); transform: none; }
/* With a mouse the rail can be pulled sideways. */
@media (hover: hover) and (pointer: fine) { .js .rail { cursor: grab; } .js .rail.is-drag { cursor: grabbing; scroll-snap-type: none; user-select: none; } .rail.is-drag img { pointer-events: none; } }
.rail { --rh: clamp(260px, 31vw, 520px); display: flex; gap: var(--g); margin-top: clamp(28px, 4vw, 56px); padding-inline: var(--bleed); scroll-padding-inline: var(--bleed); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > figure { flex: none; width: min-content; scroll-snap-align: start; }
.rail .m { height: var(--rh); width: auto; }
.rail figcaption { min-width: 16ch; }
.rail:focus-visible { outline-offset: -3px; }

/* ---------- Bases: a map of the country with the bases standing on it ---------- */
.bases-head { align-items: end; }
.bases-head h2 { grid-column: 1 / span 6; }
.bases-body { margin-top: clamp(40px, 5vw, 80px); align-items: start; }
.map { grid-column: 1 / span 5; position: sticky; top: calc(var(--hnav) + 24px); aspect-ratio: 1000 / 780; perspective: 1500px; perspective-origin: 50% -10%; }
.map-plane { position: absolute; left: 3%; right: 3%; top: 8%; aspect-ratio: 1000 / 662; transform-style: preserve-3d; transform: rotateX(46deg) rotateZ(-3deg); transform-origin: 50% 60%; }
.map-land { position: absolute; inset: 0; width: 100%; height: 100%; transform: translateZ(var(--z, 0px)); }
.map-top path { fill: var(--green); }
.map-edge path { fill: var(--rib); }
.pin { position: absolute; left: var(--x); top: var(--y); width: 0; height: 0; transform-style: preserve-3d; cursor: default; --w: 32px; --h: 18px; --d: 16px; }
.pin-up { position: absolute; left: 0; top: 0; transform-style: preserve-3d; transform: rotateX(-90deg); }
.pin .cube { transform-origin: 0 calc(var(--h) / 2); transform: translateY(calc(var(--h) / -2)) scaleY(.002); transition: transform .65s cubic-bezier(.3, 1.35, .5, 1) calc(var(--i, 0) * 40ms + 100ms); }
.map.is-in .pin .cube { transform: translateY(calc(var(--h) / -2)) scaleY(1); }
.map.is-in .pin.is-on .cube { transform: translateY(calc(var(--h) / -2)) scaleY(3.2); transition-delay: 0s; transition-duration: .45s; }
/* The small bases are solid colours: their side shading is baked into the colour instead of an extra shade layer
   per face (13 bases x 4 faces fewer planes for the graphics card to sort while the page scrolls). */
.pin .cube > i::after { display: none; }
.pin .cube > i { background: var(--ink); }
.pin .cube > .f-left { background: #100D0C; }
.pin .cube > .f-right { background: #161210; }
.pin .cube > .f-top { background: var(--lime); }
.pin.is-on .cube > i { background: var(--white); }
.pin.is-on .cube > .f-left { background: #808080; }
.pin.is-on .cube > .f-right { background: #B3B3B3; }
.pin.is-on .cube > .f-top { background: var(--lime); }
/* A hidden label is not drawn at all (visibility), not just transparent. */
.pin b { position: absolute; left: 0; bottom: calc(var(--h) + 8px); transform: translateX(-50%); padding: 6px 9px 4px; background: var(--ink); color: #fff; font: 900 17px/1 var(--display); text-transform: uppercase; white-space: nowrap; opacity: 0; visibility: hidden; transition: opacity .2s, bottom .45s var(--ease), visibility 0s .2s; pointer-events: none; }
.pin.is-on b { opacity: 1; visibility: visible; bottom: calc(var(--h) * 3.2 + 10px); transition: opacity .2s, bottom .45s var(--ease), visibility 0s; }
.map.is-in .pin.is-hq:not(.is-on) b { opacity: 1; visibility: visible; transition: opacity .2s .55s, bottom .45s var(--ease), visibility 0s .55s; }
html:not(.js) .pin b { display: none; }

.dir { grid-column: 6 / span 4; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(30px, 3.2vw, 52px) var(--g); }
.dir li { cursor: default; }
.dir h3 { display: inline-block; margin: 0 0 8px -.12em; padding: .1em .12em .02em; font-size: clamp(28px, 2.6vw, 46px); transition: background-color .2s, color .2s; }
.dir li.is-on h3 { background: var(--ink); color: var(--lime); }
.dir p { max-width: 30ch; }
.dir-c { display: flex; flex-direction: column; align-items: flex-start; margin-top: 8px; font-weight: 700; }
.dir a:hover { text-decoration-color: #fff; }
/* On a computer all 13 bases fit beside the map, without scrolling (client, 2026-11-23). */
@media (min-width: 1101px) {
  .bases-body { margin-top: clamp(24px, 2.6vw, 40px); }
  .dir { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 22px; font-size: 13.5px; line-height: 1.35; }
  .dir h3 { margin-bottom: 3px; font-size: clamp(17px, 1.3vw, 21px); }
  .dir-c { margin-top: 4px; font-weight: 600; }
  .dir a { text-decoration-thickness: 1px; }
}

/* ---------- Certificates and permits ---------- */
.certs-head { align-items: end; }
.certs-head h2 { grid-column: 1 / span 5; }
/* Commissioner is wider than the old face: "разрешителни" must stay inside its five columns. */
@media (min-width: 900px) { .certs-head h2 { font-size: clamp(36px, 4.6vw, 80px); } }
.certs-lead { grid-column: 6 / span 4; font-size: clamp(19px, 1.6vw, 25px); }

/* The documents themselves: scans of the client's certificates, each one a sheet
   that stands up from the table when the row arrives, and opens the PDF. */
.docs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(22px, 2.6vw, 44px); margin-top: clamp(40px, 5vw, 80px); }
.doc { display: flex; flex-direction: column; align-items: flex-start; perspective: 1100px; }
.doc-sheet { display: block; width: 100%; aspect-ratio: 720 / 1026; margin-bottom: clamp(16px, 1.6vw, 24px); background: #fff; outline: 1px solid rgb(31 26 23 / .1); box-shadow: 0 2px 0 rgb(31 26 23 / .05), 0 24px 44px -26px rgb(31 26 23 / .55); transform-origin: 50% 100%; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.doc-sheet img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* The light that slides across the paper while the sheet tips toward the pointer (set by the script). */
.doc-sheet { position: relative; overflow: hidden; }
.doc-sheet::after { content: ""; position: absolute; inset: -30%; background: linear-gradient(105deg, transparent 40%, rgb(255 255 255 / .42) 50%, transparent 60%); opacity: var(--go, 0); transform: translateX(var(--gx, 0%)); pointer-events: none; will-change: transform, opacity; }
.doc:hover .doc-sheet { transform: translateY(-8px); box-shadow: 0 2px 0 rgb(31 26 23 / .05), 0 34px 54px -26px rgb(31 26 23 / .6); }
.doc strong { display: block; font-size: clamp(22px, 2.3vw, 40px); line-height: 1; }
.doc-what { display: block; margin-top: 6px; }
.doc-meta { display: block; margin-top: 12px; padding-top: 12px; border-top: 2px solid var(--ink); align-self: stretch; font-size: 14px; line-height: 1.45; font-variant-numeric: tabular-nums; }
.doc-links { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.doc-links a { display: inline-flex; align-items: baseline; gap: 8px; white-space: nowrap; font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.doc-links a:hover { color: var(--green); }
.doc-links small { font-size: 13px; font-weight: 800; letter-spacing: .06em; padding: 1px 6px; background: var(--ink); color: #fff; text-decoration: none; }
@media (max-width: 420px) { .doc-links a { flex-wrap: wrap; row-gap: 4px; white-space: normal; } }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.js .docs .doc-sheet { opacity: 0; transform: rotateX(80deg); transition: transform .8s cubic-bezier(.2, .9, .25, 1.12) calc(var(--i, 0) * 75ms), opacity .3s linear calc(var(--i, 0) * 75ms), box-shadow .45s var(--ease); }
.js .docs.is-in .doc-sheet { opacity: 1; transform: none; }
.js .docs.is-in .doc:hover .doc-sheet { transform: translateY(-8px); transition-delay: 0s; transition-duration: .45s; }
.no-anim .docs .doc-sheet { opacity: 1 !important; transform: none !important; }
.colophon { margin-top: clamp(44px, 6vw, 96px); row-gap: 32px; }
.colophon > div { grid-column: span 3; }
.colophon h3 { margin-bottom: 8px; font: 900 clamp(22px, 2vw, 30px)/1 var(--display); text-transform: uppercase; }
.colophon p { max-width: 46ch; }
.yard-pic { margin-top: clamp(56px, 7vw, 112px); }

/* ---------- History, in short (the full story has its own page) ---------- */
.hist-grid { align-items: end; }
.hist-pic { grid-column: 1 / span 3; }
.hist-txt { grid-column: 5 / span 5; display: grid; gap: clamp(18px, 2vw, 28px); justify-items: start; }
.hist-txt p:not(.statement) { max-width: 52ch; }

/* ---------- History page: the years stay on screen while their story scrolls past ---------- */
.hh { padding-top: clamp(16px, 3vw, 48px); }
.hh-grid { align-items: end; }
.hh-title { grid-column: 1 / span 6; margin-left: -.035em; font-size: clamp(52px, 9vw, 160px); line-height: .9; }
.hh-lead { grid-column: 7 / span 3; padding-bottom: .4em; font-size: clamp(18px, 1.55vw, 23px); line-height: 1.4; }
.hh-pic { margin-top: clamp(28px, 4vw, 64px); }
.eras { margin: 0; padding: var(--gap-sec) 0 0; }
.era { padding-bottom: clamp(96px, 11vw, 184px); }
.era-grid { align-items: start; }
.era-year { grid-column: 1 / span 4; position: sticky; top: calc(var(--hnav) + 16px); font-size: clamp(68px, 10vw, 170px); line-height: .8; }
.era-now .era-year { color: var(--green); }
.era-body { grid-column: 5 / span 5; display: grid; gap: 18px; justify-items: start; padding-top: .6em; }
.era-t { font-size: clamp(30px, 3.5vw, 60px); }
.era-body > p:not(.era-t) { max-width: 56ch; }
.era-pic { width: 100%; margin-top: 16px; }
.era-pic .m-4x5 { width: min(100%, 520px); }
.era-next { margin-top: 26px; }
.hist-ask { margin-top: clamp(40px, 5vw, 72px); }

/* ---------- Contact ---------- */
.contact { margin-top: var(--gap-sec); }
/* Grey instead of black (client's manager, 2026-11-24: the grey she pointed to on a swatch, X11 "dark gray"). */
:root { --grey: #A9A9A9; }
.btn[href$="#zapitvane"], .btn[type="submit"] { background: var(--grey); color: var(--ink); }
.btn[href$="#zapitvane"]:hover, .btn[type="submit"]:hover { background: var(--green); color: #fff; }
.sec-ink.contact { background: var(--grey); color: var(--ink); color-scheme: light; }
.contact :focus-visible { outline-color: var(--ink); }
/* The side column beside the services on the same grey (client, 2026-11-25). */
.svc-side { background: var(--grey); padding: 22px 20px 20px; }
.svc-side .si-head { color: var(--ink); }
.svc-side .svc-index li a::before { left: -20px; right: -20px; }
.svc-side .ask-mini { padding: 14px 0 0; background: none; border-top: 1px solid rgb(31 26 23 / .25); }
.svc-side .ask-mini .btn { background: #fff; color: var(--ink); }
.svc-side .ask-mini .btn:hover { background: var(--green); color: #fff; }
.svc-side .ask-mini .f-status { color: var(--ink); }
@media (max-width: 899.98px) { .svc-side { padding: 18px var(--m); margin-inline: calc(-1 * var(--m)); } }
.contact .call-num { color: var(--ink); }
.contact .call-num:hover { color: var(--rib); }
.contact .desks dt { color: #2E2925; }
.contact .desks a:hover { text-decoration-color: var(--rib); }
.contact-grid { align-items: stretch; }
.contact-main { grid-column: 1 / span 6; }
.call-top { display: block; font-size: clamp(28px, 3.3vw, 56px); }
.call-num { display: block; margin-top: .06em; color: var(--lime); font-size: 15vw; line-height: .82; white-space: nowrap; text-decoration: none; }
.call-num:hover { color: #fff; }
.desks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px var(--g); margin-top: clamp(32px, 4vw, 56px); }
.desks dt { font-size: 15px; color: var(--on-ink-muted); }
.desks dd { font-weight: 700; font-size: 19px; line-height: 1.45; }
.desks a:hover { text-decoration-color: var(--lime); }
.ask { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px var(--g); margin-top: clamp(48px, 6vw, 88px); scroll-margin-top: 24px;
  /* On a light grey panel, not on black (client, 2026-11-23); the button stays black. */
  padding: clamp(20px, 2.6vw, 40px); background: #E4E6E0; color: var(--ink); color-scheme: light; }
.ask h3 { grid-column: 1 / -1; font-size: clamp(34px, 3.7vw, 60px); }
.f label { display: block; margin-bottom: 6px; font-size: 15px; color: #4A433E; }
.f input, .f select, .f textarea { display: block; width: 100%; padding: 14px 14px 12px; background: #fff; border: 1px solid rgb(31 26 23 / .16); border-radius: 0; color: var(--ink); font-size: 18px; line-height: 1.3; }
.f textarea { resize: vertical; min-height: 96px; }
/* Fields: a lime bar rises under the field being typed in; after a failed send, the missing ones are marked. */
.f input, .f select, .f textarea { box-shadow: inset 0 0 0 var(--lime); transition: background-color .2s, box-shadow .25s var(--ease); }
.f input:hover, .f select:hover, .f textarea:hover { background: #fafaf8; }
.f input:focus, .f select:focus, .f textarea:focus { background: #fff; box-shadow: inset 0 -3px 0 var(--green); outline: none; }
.f :focus-visible { outline: none; }
.ask.tried .f :invalid { box-shadow: inset 0 -3px 0 #C8442A; }
.ask.tried .f :invalid:focus { box-shadow: inset 0 -3px 0 var(--green); }
.f-send .f-status { flex-basis: 100%; max-width: 60ch; min-height: 1.4em; font-size: 15px; line-height: 1.4; color: var(--rib); }
.f-status:empty { display: none; }
.btn.is-busy { pointer-events: none; background: #fff; color: var(--ink); }
.f-wide, .f-send { grid-column: 1 / -1; }
.f-send { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 6px; }
.f-send p { max-width: 36ch; font-size: 15px; line-height: 1.4; color: #4A433E; }
.contact-pic { grid-column: 7 / span 3; position: relative; margin: calc(-1 * var(--pad-field)) calc(-1 * var(--bleed)) calc(-1 * var(--pad-field)) 0; }
.contact-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 25% 35%; }

/* ---------- Footer: the side of the container, one letter to a panel ---------- */
.wall { position: relative; overflow: hidden; background: var(--green); padding-block: clamp(22px, 3.2vw, 52px) clamp(14px, 2vw, 30px); }
.wall::before, .wall::after { content: ""; position: absolute; z-index: 1; left: 0; right: 0; height: max(7px, .95vw); background: var(--rib); }
.wall::before { top: 0; }
.wall::after { bottom: 0; }
.wall-name { position: relative; display: grid; grid-template-columns: repeat(9, 1fr); color: var(--ink); font: 900 12.4vw/.86 var(--display); text-align: center; }
.wall-name span { display: block; padding-left: max(6px, .8vw); }
.foot-bar { background: var(--ink); color: #fff; padding-block: 28px 34px; font-size: 15px; line-height: 1.5; }
.foot-legal { grid-column: 1 / span 3; }
.foot-links { grid-column: 4 / span 3; }
.foot-demo { grid-column: 7 / span 3; color: var(--on-ink-muted); }
.foot-demo a { color: #fff; }
.foot-bar a:hover { text-decoration-color: var(--lime); }
.foot-bar :focus-visible { outline-color: var(--lime); }

/* ---------- Entrances ---------- */
.js [data-rise] { opacity: 0; transform: translateY(22px); transition: opacity .45s var(--ease), transform .65s var(--ease); }
.js [data-rise].is-in { opacity: 1; transform: none; }
.js .frac li { opacity: 0; transform: translateY(-16px); transition: opacity .3s, transform .5s var(--ease); }
.js .sorted.is-in .frac li { opacity: 1; transform: none; }
.js .sorted.is-in .frac li:nth-child(1) { transition-delay: .12s; }
.js .sorted.is-in .frac li:nth-child(2) { transition-delay: .22s; }
.js .sorted.is-in .frac li:nth-child(3) { transition-delay: .32s; }
.js .sorted.is-in .frac li:nth-child(4) { transition-delay: .42s; }
.js .wall-name span { transform: translateY(108%); transition: transform .6s var(--ease); }
.js .foot.is-in .wall-name span { transform: none; }
.js .foot.is-in .wall-name span:nth-child(2) { transition-delay: .05s; }
.js .foot.is-in .wall-name span:nth-child(3) { transition-delay: .1s; }
.js .foot.is-in .wall-name span:nth-child(4) { transition-delay: .15s; }
.js .foot.is-in .wall-name span:nth-child(5) { transition-delay: .2s; }
.js .foot.is-in .wall-name span:nth-child(6) { transition-delay: .25s; }
.js .foot.is-in .wall-name span:nth-child(7) { transition-delay: .3s; }
.js .foot.is-in .wall-name span:nth-child(8) { transition-delay: .35s; }
.js .foot.is-in .wall-name span:nth-child(9) { transition-delay: .4s; }

/* Headings do not fade like the copy: they are lifted out of their own baseline, as the letters of the wall
   name are. The block rises by its height while the clip keeps its lower edge on the baseline, so the words
   come up out of a line; the copy then follows with the quieter fade. */
.js .h-xl[data-rise], .js .hh-title[data-rise], .js .era-t[data-rise], .js .call-num[data-rise], .js .svc-head[data-rise] h3 {
  opacity: 1; transform: translateY(100%); clip-path: inset(-.45em -.3em 100% -.3em);
  transition: transform .8s cubic-bezier(.22, .8, .16, 1), clip-path .8s cubic-bezier(.22, .8, .16, 1);
}
.js .h-xl[data-rise].is-in, .js .hh-title[data-rise].is-in, .js .era-t[data-rise].is-in, .js .call-num[data-rise].is-in, .js .svc-head[data-rise].is-in h3 {
  transform: none; clip-path: inset(-.45em -.3em -.45em -.3em);
}
.js .svc-head[data-rise] { opacity: 1; transform: none; }
.js .svc-head[data-rise] .svc-sub { opacity: 0; transition: opacity .45s var(--ease) .2s; }
.js .svc-head[data-rise].is-in .svc-sub { opacity: 1; }

/* With a fine pointer, the photograph answers the hover of its whole service or figure: a slow push in. */
@media (hover: hover) and (pointer: fine) {
  .m > img { transition: scale .9s var(--ease); }
  .js [data-wipe] .m > img { transition: transform 1.15s cubic-bezier(.2, .7, .2, 1), scale .9s var(--ease); }
  .svc-item:hover .m > img, figure.media:hover .m > img { scale: 1.035; }
}

.no-anim [data-rise], .no-anim .frac li, .no-anim .wall-name span { opacity: 1 !important; transform: none !important; }
.no-anim [data-wipe] .m > img, .no-anim [data-wipe] .m > video, .no-anim [data-wipe] .bigincl { clip-path: none !important; transform: none !important; }
.no-anim [data-wipe] .m::after { display: none; }
.no-anim .stage { transform: none !important; }
.no-anim [data-rise], .no-anim [data-rise] h3 { clip-path: none !important; transform: none !important; }
.no-anim .svc-sub { opacity: 1 !important; }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .lead-main { grid-column: 1 / span 6; }
  .acts, .lead-cap { grid-column: 7 / span 3; }
  .map { grid-column: 1 / -1; position: relative; top: auto; max-width: 900px; }
  .dir { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 24px; }
}
@media (max-width: 899.98px) {
  .lead-main, .acts, .lead-cap { grid-column: 1 / -1; grid-row: auto; }
  .acts { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
  .press { height: 160vh; }
  /* Centred in the pinned screen: on a tall tablet, top-aligned left a third of the screen empty under the press. */
  .press-stage { align-items: center; padding-block: 24px; }
  .press-grid { height: auto; row-gap: 10px; padding-block: 0; }
  .press-3d { height: min(44vh, 420px); }
  .svc-side { grid-column: 1 / -1; position: static; padding-top: 0; }
  .svc-main { grid-column: 1 / -1; }
  .ask-mini { display: none; }
  .svc-index ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--g); }
  .svc-index a::before { display: none; }
  .svc-list { margin-top: 64px; }
  .svc-item, .svc-item.alt { display: block; }
  .svc-item .svc-media { margin-inline: calc(-1 * var(--m)); }
  .svc-item.alt .svc-media .m { aspect-ratio: 4 / 4.4; }
  .svc-txt, .svc-item.alt .svc-txt { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: 22px; }
  .svc-txt > *, .svc-txt .incl, .svc-txt .ask-link { grid-column: 1; grid-row: auto; }
  .who-col, .who-col + .who-col { grid-column: 1 / -1; }
  .matter-head h2, .field-head h2, .bases-head h2, .certs-head h2, .sec-side, .field-head .sec-side { grid-column: 1 / -1; }
  .sec-side { padding: 18px 0 0; max-width: 44ch; }
  .rail-ctl { grid-column: 1 / -1; justify-content: flex-start; padding: 22px 0 0; }
  .matter-txt { grid-column: 1 / -1; padding-bottom: 0; }
  .matter-fork { grid-column: 1 / -1; margin-top: 28px; margin-left: calc(-1 * var(--m)); }
  .matter-fork figcaption { padding-left: var(--m); }
  .dir { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .iso { grid-column: 1 / -1; padding-top: 32px; }
  .colophon > div { grid-column: 1 / -1; }
  .certs-lead { grid-column: 1 / -1; padding-top: 18px; max-width: 44ch; }
  .docs { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .yard-pic .m { aspect-ratio: 16 / 9; }
  .hist-pic { grid-column: 1 / span 4; }
  .hist-txt { grid-column: 1 / -1; margin-top: 36px; }
  .hh-title, .hh-lead { grid-column: 1 / -1; }
  .hh-lead { padding: 22px 0 0; max-width: 50ch; }
  .era-year { grid-column: 1 / -1; position: relative; top: auto; font-size: clamp(76px, 22vw, 150px); }
  .era-body { grid-column: 1 / -1; padding-top: 18px; }
  .era-pic .m-4x5 { width: 100%; }
  .contact-main { grid-column: 1 / -1; }
  .contact-pic { grid-column: 1 / -1; grid-row: 1; margin: calc(-1 * var(--pad-field)) calc(-1 * var(--m)) 44px; }
  .contact-pic img { position: static; height: auto; aspect-ratio: 16 / 10; object-position: 50% 10%; }
}

/* ---------- Phone ---------- */
@media (max-width: 700px) {
  :root { --head: 60px; --fs-menu: min(14.2vw, calc((100svh - var(--head) - 210px) / 5.7)); }
  body { font-size: 17px; }
  .h-xl { font-size: clamp(30px, 9.5vw, 48px); }
  .h-xl br { display: none; }
  .g9 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .top { padding-right: var(--m); }
  .top-link { display: none; }
  /* The number stays on phones, between the logo and the menu tab (a tap calls). */
  .top .top-tel { display: inline-block; margin-left: 14px; font-size: clamp(18px, calc((100vw - 120px) / 6.5), 30px); } /* as large as fits */
  .brand img { height: 42px; }
  .tab { min-width: 92px; height: 48px; padding: 4px 14px 0; font-size: 22px; }
  .hero-frame { --H: 88cqw; }
  .plate { object-position: 50% 55%; }
  .lead-main, .acts, .lead-cap { grid-column: 1 / -1; grid-row: auto; }
  .lead { row-gap: 18px; }
  .acts { align-items: stretch; margin-top: 4px; }
  .acts .plain { align-self: flex-start; }
  .acts .btn { width: 100%; }
  .menu-foot { flex-direction: column; align-items: flex-start; gap: 8px; font-size: 19px; }
  .menu-foot .btn { margin: 8px 0 0; width: 100%; }
  .press { height: 150vh; }
  .press-3d { height: min(40vh, 340px); }
  .svc-index ul { grid-template-columns: minmax(0, 1fr); }
  .svc-item h3 { font-size: clamp(30px, 8.5vw, 44px); }
  .yard-tag { display: none; }
  .rail { --rh: 62vw; }
  .pin { --w: 19px; --h: 11px; --d: 10px; }
  .pin b { font-size: 14px; }
  .dir { grid-template-columns: minmax(0, 1fr); }
  .dir h3 { font-size: clamp(30px, 9.5vw, 46px); }
  .dir p { max-width: none; }
  .hist-pic { grid-column: 1 / -1; }
  .desks { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .ask { grid-template-columns: minmax(0, 1fr); }
  .f-send .btn { width: 100%; }
  .wall-name { font-size: 12.6vw; }
  .foot-legal, .foot-links, .foot-demo { grid-column: 1 / -1; }
  .foot-bar .g9 { row-gap: 16px; }
}

/* Reduced motion (a system setting, often switched on by "best performance" or battery modes): nothing travels
   across the screen or tips over on its own any more, things fade in where they stand; the 3D objects stay and
   still answer the visitor's own scroll and pointer, so the page never looks switched off. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .hero .stage { transform: none; transition: none; }
  .js [data-rise], .js .frac li, .menu-nav li { transform: none; }
  .js .wall-name span { transform: none; opacity: 0; transition: opacity .6s var(--ease); }
  .js .foot.is-in .wall-name span { opacity: 1; }
  .js .docs .doc-sheet { transform: none; }
  .js .h-xl[data-rise], .js .hh-title[data-rise], .js .era-t[data-rise], .js .call-num[data-rise], .js .svc-head[data-rise] h3 { opacity: 0; transform: none; clip-path: none; transition: opacity .6s var(--ease); }
  .js .h-xl[data-rise].is-in, .js .hh-title[data-rise].is-in, .js .era-t[data-rise].is-in, .js .call-num[data-rise].is-in, .js .svc-head[data-rise].is-in h3 { opacity: 1; }
  .svc-item:hover .m > img, figure.media:hover .m > img { scale: none; }
  .js [data-wipe] .m::after { display: none; }
  .js [data-wipe] .m > img, .js [data-wipe] .m > video, .js [data-wipe] .bigincl { clip-path: none; transform: none; opacity: 0; transition: opacity .6s var(--ease); }
  .js [data-wipe].is-in .m > img, .js [data-wipe].is-in .m > video, .js [data-wipe].is-in .bigincl { opacity: 1; }
  .bale, .yard.is-in .bale { transform: translate3d(var(--x), var(--y), var(--z)) rotateY(var(--tw, 0deg)); transition: none; }
  .bale > i { opacity: 0; transition: opacity .6s var(--ease) var(--dl, 0s); }
  .yard.is-in .bale > i { opacity: 1; }
  .menu-wall, .menu-open .menu-wall, .wall-down .menu-wall, .wall-lift .menu-wall { transform: none; }
  .menu-wall { opacity: 0; transition: opacity .25s linear; }
  .menu-open .menu-wall, .wall-down .menu-wall { opacity: 1; transition: opacity .3s linear; }
}
