/* Spol VP — 2026 · industrial light */

@font-face { font-family: "Geist"; src: url("../fonts/geist-latin-ext.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: "Geist"; src: url("../fonts/geist-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  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: "Geist Mono"; src: url("../fonts/geist-mono-latin-ext.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: "Geist Mono"; src: url("../fonts/geist-mono-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  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 {
  --paper: #ece8e1;
  --panel: #f7f5f1;
  --ink: #2b2a28;
  --ink-2: #33332f;
  --steel: #66635e;
  --stone: #8a8781;
  --line: rgba(18, 18, 18, .16);
  --line-strong: rgba(18, 18, 18, .9);
  --brick: #9c3a24;
  --brick-deep: #7d2c1a;
  --brick-light: #e9a18b;
  --on-brick: #ffffff;
  --sans: "Geist", "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --gutter: clamp(1rem, 3.5vw, 3rem);
  --max: 1400px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
input, textarea, select { font-size: max(16px, 1em); }
button, a, [role="button"] { touch-action: manipulation; }
button, .btn { -webkit-user-select: none; user-select: none; }
::selection { background: var(--brick); color: var(--on-brick); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 5px var(--brick-light); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 max(var(--gutter), env(safe-area-inset-right, 0px)) 0 max(var(--gutter), env(safe-area-inset-left, 0px)); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .75rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }
.mono, .label { font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }
.label { color: var(--steel); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .9rem; min-height: 48px; padding: .9rem 1.2rem; border: 1.5px solid var(--ink);
  font: 500 .8rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; cursor: pointer;
  transition: background .18s var(--ease), color .18s var(--ease), transform .16s var(--ease); }
.btn:active { transform: scale(.97); }
.btn svg { width: 1em; height: 1em; transition: transform .25s var(--ease); }
.btn--brick { background: var(--brick); border-color: var(--brick); color: var(--on-brick); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--line { background: transparent; color: var(--ink); }

/* ---------- top bar + header ---------- */
.topbar { background: var(--ink); color: rgba(236,235,230,.75); }
.topbar .wrap { display: flex; justify-content: space-between; gap: 1rem; height: 34px; align-items: center; }
.topbar a { color: var(--paper); }
.header { position: sticky; top: 0; z-index: 50; background: rgba(236,235,230,.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.header__in { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1.5rem; }
.logo { display: inline-flex; align-items: center; color: #1d1d1b; }
.logo__svg { height: 54px; width: auto; display: block; }
@media (max-width: 760px) { .logo__svg { height: 44px; } }
.logo__type { fill: currentColor; }
.logo__mark { fill: var(--brick); }
.footer .logo__mark { fill: var(--brick-light); }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.6vw, 2.4rem); }
.nav a:not(.btn) { position: relative; padding: .7rem 0; font: 500 .78rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.nav a:not(.btn)::before { content: ""; position: absolute; left: -.9rem; top: 50%; width: .45rem; height: .45rem; margin-top: -.225rem; background: var(--brick); transform: scale(0); transition: transform .2s var(--ease); }
.burger { display: none; width: 44px; height: 44px; background: none; border: 1.5px solid var(--ink); cursor: pointer; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease); }
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 25px; }
.menu-open .burger span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

/* ---------- hero: full-bleed photo + title block ---------- */
.hero { position: relative; }
.slider { position: relative; height: clamp(440px, calc(100svh - 106px), 860px); overflow: hidden; background: var(--ink); }
.slider__slide { margin: 0; position: absolute; inset: 0; opacity: 0; transition: opacity 1s var(--ease); }
.slider__slide.is-on { opacity: 1; }
.slider__slide img { width: 100%; height: 100%; object-fit: cover; }
.slider::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,18,18,.28), transparent 55%); pointer-events: none; }
.slider__bar { position: absolute; right: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); bottom: clamp(1rem, 3vw, 2.5rem); z-index: 2; display: flex; align-items: center; gap: 1rem; width: auto; max-width: calc(100vw - 2 * var(--gutter));
  padding: 0 1rem; background: var(--panel); border: 1.5px solid var(--ink); font: 500 .72rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; min-height: 44px; }
.slider__cap { flex: 1 1 auto; white-space: nowrap; }
.slider__dots { flex: none; }
.slider__dots { display: flex; gap: .35rem; }
.slider__dot { width: 28px; height: 44px; background: none; border: 0; padding: 0; cursor: pointer; position: relative; }
.slider__dot::before, .slider__dot::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; }
.slider__dot::before { background: rgba(18,18,18,.18); }
.slider__dot::after { background: var(--ink); transform: scaleX(0); transform-origin: left; }
.slider__dot.is-on::after { animation: progress 6s linear forwards; }
.slider.is-paused .slider__dot.is-on::after { animation-play-state: paused; }
@keyframes progress { to { transform: scaleX(1); } }

.hero__wrap { position: absolute; inset: 0; display: flex; align-items: flex-end; padding-bottom: clamp(1rem, 3vw, 2.5rem); pointer-events: none; }
.tblock { width: min(560px, 100%); background: var(--panel); border: 1.5px solid var(--ink); box-shadow: 10px 10px 0 rgba(18,18,18,.9); pointer-events: auto; }
.tblock__head { height: 12px; background: var(--brick); border-bottom: 1.5px solid var(--ink); }
.tblock__head .label { color: var(--on-brick); }
.tblock__body { padding: clamp(1.25rem, 2.4vw, 1.9rem) clamp(1.1rem, 2.4vw, 1.9rem); display: grid; gap: 1.1rem; }
.hero h1 { margin: 0; font: 700 clamp(2rem, 3.6vw, 3.3rem)/1 var(--sans); letter-spacing: -.035em; text-transform: uppercase; text-wrap: balance; }
.hero__lead { margin: 0; max-width: 44ch; color: var(--ink-2); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .6rem; padding-top: .2rem; }
.tblock__specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-top: 1.5px solid var(--ink); }
.tblock__specs > div { padding: .75rem 1.1rem .85rem; display: grid; gap: .3rem; }
.tblock__specs > div + div { border-left: 1px solid var(--line); }
.tblock__specs dd { margin: 0; font: 600 .98rem/1.2 var(--sans); }
.tag { display: inline-flex; align-items: center; gap: .6rem; width: fit-content; }
.tag::before { content: ""; width: .6rem; height: .6rem; background: var(--brick); }
.hazard { height: 24px; background-color: var(--paper);
  background-image: linear-gradient(90deg, var(--brick) 0 40px, transparent 40px), linear-gradient(90deg, var(--brick) 0 40px, transparent 40px);
  background-size: 46px 8px, 46px 8px; background-position: 0 3px, 23px 13px; background-repeat: repeat-x; }

/* ---------- sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.head { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; padding-bottom: 1rem; border-bottom: 1.5px solid var(--ink); margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem); }
.head h2 { margin: .5rem 0 0; font: 700 clamp(1.7rem, 3.4vw, 2.9rem)/1 var(--sans); letter-spacing: -.03em; text-transform: uppercase; }

/* services: index on the left, sheet on the right */
.svc { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.svc__list { list-style: none; margin: 0; padding: 0; position: sticky; top: 110px; border-top: 1px solid var(--line); }
.svc__tab { display: grid; grid-template-columns: 1fr auto; align-items: center; width: 100%; min-height: 64px; padding: .9rem .25rem; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; cursor: pointer;
  transition: background .18s var(--ease), padding .25s var(--ease); }
.svc__tab .label { color: var(--steel); }
.svc__tab b { font: 600 clamp(1rem, 1.4vw, 1.2rem)/1.2 var(--sans); letter-spacing: -.01em; }
.svc__tab i { font-style: normal; font: 500 .8rem/1 var(--mono); opacity: 0; transform: translateX(-6px); transition: opacity .2s var(--ease), transform .2s var(--ease); }
.svc__tab[aria-selected="true"] { background: var(--brick); color: var(--on-brick); padding-left: 1rem; }
.svc__tab[aria-selected="true"] .label { color: rgba(255,255,255,.78); }
.svc__tab[aria-selected="true"] i { opacity: 1; transform: none; }
.svc__panel { background: var(--panel); border: 1.5px solid var(--ink); }
.svc__panel[hidden] { display: none; }
.svc__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.svc__copy { padding: clamp(1.25rem, 2.5vw, 2rem); display: flex; flex-direction: column; gap: 1rem; border-right: 1px solid var(--line); }
.svc__copy h3 { margin: 0; font: 700 clamp(1.4rem, 2.2vw, 1.9rem)/1.05 var(--sans); letter-spacing: -.025em; text-transform: uppercase; }
.svc__copy p { margin: 0; color: var(--ink-2); }
.svc__copy .btn { margin-top: auto; align-self: start; }
.svc__media { display: grid; grid-template-rows: auto auto; }
.svc__lead { display: block; width: 100%; border: 0; padding: 0; aspect-ratio: 4 / 3; overflow: hidden; cursor: zoom-in; background: var(--ink); }
.svc__lead img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.thumbs button { position: relative; aspect-ratio: 1; padding: 0; border: 0; border-right: 1px solid var(--line); overflow: hidden; cursor: zoom-in; background: var(--ink); }
.thumbs button:last-child { border-right: 0; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.thumbs .more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(18,18,18,.62); color: var(--paper); font: 500 .75rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: .06em; text-align: center; }
.svc__lead:active, .thumbs button:active { transform: scale(.985); }
.svc__lead, .thumbs button { transition: transform .16s var(--ease); }

/* projects: filter chips + grid; the first two cards are the flagships */
.projects { background: var(--panel); border-bottom: 1.5px solid var(--ink); }
.pfilter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: clamp(1.25rem, 2.5vw, 2rem); }
.chip { display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; padding: .55rem .95rem; border: 1.5px solid var(--ink); background: transparent; cursor: pointer;
  font: 500 .75rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; transition: background .18s var(--ease), color .18s var(--ease), transform .16s var(--ease); }
.chip span { color: var(--steel); }
.chip[aria-pressed="true"] { background: var(--brick); border-color: var(--brick); color: var(--on-brick); }
.chip[aria-pressed="true"] span { color: rgba(255,255,255,.78); }
.chip:active { transform: scale(.97); }
.pgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(.75rem, 1.6vw, 1.25rem); }
.pcard { grid-column: span 2; }
.pcard.is-big { grid-column: span 3; }
.pcard[hidden] { display: none; }
.pcard button { display: flex; flex-direction: column; width: 100%; height: 100%; padding: 0; border: 1.5px solid var(--ink); background: var(--paper); color: inherit; text-align: left; cursor: zoom-in; transition: transform .16s var(--ease); }
.pcard button:active { transform: scale(.985); }
.pcard__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink); border-bottom: 1.5px solid var(--ink); }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.pcard__meta { display: grid; gap: .3rem; padding: .85rem 1rem 1rem; }
.pcard__name { font: 600 clamp(1rem, 1.35vw, 1.2rem)/1.2 var(--sans); letter-spacing: -.015em; }
.pcard.is-big .pcard__name { font-size: clamp(1.15rem, 1.8vw, 1.5rem); }
.ppager { display: flex; justify-content: center; align-items: center; gap: .5rem; margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.ppager[hidden] { display: none; }
.ppager__pages { display: flex; gap: .5rem; }
.ppager button { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 .5rem; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font: 600 .95rem/1 var(--sans); cursor: pointer; transition: background-color .16s var(--ease), color .16s var(--ease), transform .16s var(--ease); }
.ppager button[aria-current="page"] { background: var(--brick); border-color: var(--brick); color: var(--on-brick); }
.ppager button:active:not(:disabled) { transform: scale(.95); }
.ppager button:disabled { opacity: .3; cursor: default; }
.ppager__arrow svg { width: 18px; height: 18px; }
.ppager__count { display: none; min-width: 5ch; text-align: center; font: 600 .95rem/1 var(--sans); }
html:not(.js) .pfilter, html:not(.js) .ppager { display: none; }

/* contact: strip + full-width form */
.contact__intro { margin: 0; max-width: 34ch; color: var(--ink-2); }
.cstrip, .form { max-width: 1020px; margin-left: auto; margin-right: auto; }
.cstrip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1.5px solid var(--ink); border-bottom: 0; background: var(--panel); }
.cstrip > * { display: grid; gap: .4rem; padding: 1.1rem 1.2rem 1.2rem; }
.cstrip > * + * { border-left: 1px solid var(--line); }
.cstrip b { font: 600 clamp(1.05rem, 1.6vw, 1.35rem)/1.2 var(--sans); letter-spacing: -.01em; overflow-wrap: anywhere; }
.form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--paper); border: 1.5px solid var(--ink); }
.field { display: grid; gap: .3rem; padding: .9rem 1.1rem 1rem; border-bottom: 1px solid var(--line); }
.field:not(.field--full) { border-right: 1px solid var(--line); }
.field:nth-child(4) { border-right: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font: 500 .7rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--steel); }
.field input, .field textarea, .field select { width: 100%; border: 0; background: transparent; padding: .35rem 0; border-radius: 0; outline: none; }
.field:focus-within { background: #fbf8f4; box-shadow: inset 4px 0 0 var(--brick); }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23121212' stroke-width='1.6'/%3E%3C/svg%3E") right .2rem center / 12px no-repeat; }
.field textarea { resize: vertical; min-height: 130px; }
.consent { grid-column: 1 / -1; display: flex; gap: .7rem; align-items: start; padding: 1rem 1.1rem; font-size: .9rem; color: var(--ink-2); border-bottom: 1px solid var(--line); cursor: pointer; }
.consent input { margin: .1rem 0 0; width: 22px; height: 22px; accent-color: var(--ink); flex: none; }
.consent a { text-decoration: underline; text-underline-offset: 3px; }
.form__foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1rem 1.1rem; }
.form__status { margin: 0; font-size: .92rem; }
.form__status.ok { color: #1f6b2a; }
.form__status.err { color: #a3241b; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* footer */
.footer { background: var(--ink); color: rgba(236,235,230,.72); padding: clamp(3rem, 6vw, 4.5rem) 0 1.5rem; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(236,235,230,.16); }
.footer .logo { color: var(--paper); }
.footer .logo__svg { height: 56px; }
.footer h2 { margin: 0 0 1rem; font: 500 .72rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--brick-light); }
.footer address { font-style: normal; line-height: 1.75; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer button.linklike { background: none; border: 0; padding: 0; cursor: pointer; color: inherit; text-align: left; }
.footer__bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.25rem; font: 500 .72rem/1.4 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: rgba(236,235,230,.66); }

/* legal pages */
.legal { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(4rem, 8vw, 6rem); }
.legal h1 { margin: .6rem 0 clamp(2rem, 4vw, 3rem); padding-bottom: 1rem; border-bottom: 1.5px solid var(--ink); font: 700 clamp(1.8rem, 4.4vw, 3.4rem)/1 var(--sans); letter-spacing: -.03em; text-transform: uppercase; overflow-wrap: anywhere; }
.prose { max-width: 72ch; color: var(--ink-2); }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li { margin-bottom: .45em; }
.prose h2 { margin: 2.6em 0 .9em; color: var(--ink); font: 700 clamp(1.2rem, 2vw, 1.5rem)/1.2 var(--sans); letter-spacing: -.02em; text-transform: uppercase; }
.prose h3 { margin: 2em 0 .6em; color: var(--ink); font: 600 1.05rem/1.3 var(--sans); text-transform: uppercase; }
.prose h4 { margin: 1.6em 0 .5em; color: var(--ink); font: 500 .8rem/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.prose h2:first-child { margin-top: 0; }
.faq__list { max-width: 72ch; border-top: 1px solid var(--line); }
.faq__item { padding: clamp(1.25rem, 2.5vw, 1.75rem) 0; border-bottom: 1px solid var(--line); }
.faq__item h2 { margin: 0 0 .6rem; color: var(--ink); font: 600 clamp(1.1rem, 1.7vw, 1.35rem)/1.25 var(--sans); letter-spacing: -.015em; }
.faq__item p { margin: 0; color: var(--ink-2); }
.faq__cta { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin-top: clamp(2rem, 4vw, 3rem); }
.faq__cta p { flex-basis: 100%; margin: 0 0 .25rem; color: var(--ink); font-weight: 600; }
.prose a { text-decoration: underline; text-decoration-color: var(--brick); text-decoration-thickness: 3px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.prose .btn { text-decoration: none; margin-top: 1rem; }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 90; background: rgba(12,12,12,.95); display: none; align-items: center; justify-content: center; overscroll-behavior: contain;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); }
.lb.is-open { display: flex; animation: lbIn .2s var(--ease); }
.lb.is-open img { animation: lbImg .25s var(--ease); }
@keyframes lbIn { from { opacity: 0; } }
@keyframes lbImg { from { opacity: 0; transform: scale(.97); } }
.lb img { max-width: calc(100vw - 8rem); max-height: calc(100dvh - 8rem); object-fit: contain; }
.lb button { position: absolute; width: 52px; height: 52px; display: grid; place-items: center; background: var(--paper); color: var(--ink); border: 0; cursor: pointer; }
.lb button svg { width: 22px; height: 22px; }
.lb__close { top: 1rem; right: 1rem; }
.lb__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb__next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lb__count { position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%); color: var(--paper); font: 500 .75rem/1 var(--mono); letter-spacing: .1em; }

/* cookie banner */
.cookie { position: fixed; left: calc(1rem + env(safe-area-inset-left, 0px)); bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); z-index: 80; width: min(440px, calc(100vw - 2rem));
  background: var(--panel); border: 1.5px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); padding: 1.25rem; font-size: .88rem; line-height: 1.55;
  transform: translateY(calc(100% + 3rem)); transition: transform .22s var(--ease); }
.cookie.is-on { transform: none; transition-duration: .45s; }
.cookie h2 { margin: 0 0 .6rem; font: 500 .75rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.cookie p { margin: 0 0 1rem; color: var(--ink-2); }
.cookie a { text-decoration: underline; text-underline-offset: 3px; }
.cookie__prefs { display: none; margin: 0 0 1rem; border-top: 1px solid var(--line); }
.cookie.show-prefs .cookie__prefs { display: block; }
.cookie__row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.cookie__row strong { font-weight: 600; }
.cookie__row span { color: var(--steel); font-size: .8rem; }
.toggle { position: relative; width: 42px; height: 24px; flex: none; }
.toggle input { opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; position: relative; z-index: 1; }
.toggle i { position: absolute; inset: 0; background: rgba(18,18,18,.2); transition: background .2s; }
.toggle i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: var(--panel); transition: transform .2s var(--ease); }
.toggle input:checked + i { background: var(--brick); }
.toggle input:checked + i::after { transform: translateX(18px); background: var(--panel); }
.cookie__btns { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.btn--cookie { flex: 1; justify-content: center; min-height: 44px; padding: .75rem .9rem; background: var(--ink); color: var(--paper); }
.cookie__link { background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 44px; padding: 0 .25rem; font: 500 .75rem/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; }

/* reveal */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* hover: real pointers only */
@media (hover: hover) and (pointer: fine) {
  .btn--brick:hover { background: var(--brick-deep); border-color: var(--brick-deep); color: var(--on-brick); }
  .btn--ink:hover, .btn--line:hover { background: var(--brick); border-color: var(--brick); color: var(--on-brick); }
  .btn:hover svg { transform: translateX(3px); }
  .nav a:not(.btn):hover::before { transform: scale(1); }
  .svc__tab:hover:not([aria-selected="true"]) { background: rgba(18,18,18,.05); }
  .svc__lead:hover img, .thumbs button:hover img { transform: scale(1.04); }
  .chip:hover:not([aria-pressed="true"]) { background: var(--ink); color: var(--paper); }
  .chip:hover:not([aria-pressed="true"]) span { color: rgba(236,235,230,.7); }
  .pcard button:hover img { transform: scale(1.04); }
  .ppager button:hover:not(:disabled):not([aria-current="page"]) { background: var(--ink); color: var(--paper); }
  .cstrip a:hover b { text-decoration: underline; text-decoration-color: var(--brick); text-decoration-thickness: 3px; text-underline-offset: 4px; }
  .footer a:hover, .footer button.linklike:hover { color: var(--brick-light); }
  .lb button:hover { background: var(--brick); color: var(--on-brick); }
  .btn--cookie:hover { background: var(--brick); color: var(--on-brick); }
  .topbar a:hover { text-decoration: underline; text-decoration-color: var(--brick-light); text-decoration-thickness: 3px; text-underline-offset: 4px; }
}

/* responsive */
@media (max-width: 1024px) {
  .slider { height: auto; aspect-ratio: 16 / 10; }
  .slider__bar { right: var(--gutter); width: auto; left: var(--gutter); }
  .slider__cap { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .hero__wrap { position: static; display: block; padding: 0 var(--gutter); margin-top: -2.5rem; position: relative; z-index: 2; }
  .tblock { width: 100%; box-shadow: 6px 6px 0 rgba(18,18,18,.9); }
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pcard, .pcard.is-big { grid-column: span 1; }
  .form { grid-template-columns: 1fr 1fr; }
  .field:nth-child(2) { border-right: 0; }
  .field:nth-child(4) { border-right: 0; }
  .svc { grid-template-columns: 1fr; }
  .svc__list { position: static; display: flex; overflow-x: auto; border-top: 0; border-bottom: 1.5px solid var(--ink); scroll-snap-type: x mandatory; scrollbar-width: none; }
  .svc__list::-webkit-scrollbar { display: none; }
  .svc__list li { flex: none; scroll-snap-align: start; }
  .svc__tab { grid-template-columns: auto; gap: .6rem; border-bottom: 0; padding: .9rem 1rem; white-space: nowrap; }
  .svc__tab i { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .topbar .mono:first-child { display: none; }
  .topbar .wrap { justify-content: flex-end; }
  .header__in { height: 64px; }
  .burger { display: block; z-index: 2; }
  .logo { position: relative; z-index: 2; }
  .nav { position: fixed; inset: 0; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; padding: calc(64px + env(safe-area-inset-top, 0px) + 1rem) var(--gutter) 1rem; background: var(--paper);
    opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), visibility .25s; overscroll-behavior: contain; }
  .nav a:not(.btn) { font-size: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 1.5rem; justify-content: center; }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .nav > * { opacity: 0; transform: translateY(8px); transition: opacity .25s var(--ease), transform .25s var(--ease); }
  .menu-open .nav > * { opacity: 1; transform: none; }
  .menu-open .nav > :nth-child(2) { transition-delay: .04s; }
  .menu-open .nav > :nth-child(3) { transition-delay: .08s; }
  .menu-open .nav > :nth-child(4) { transition-delay: .12s; }
  .svc__body { grid-template-columns: 1fr; }
  .svc__copy { border-right: 0; border-bottom: 1px solid var(--line); }
  .svc__media { order: -1; }
  .hero__wrap { margin-top: 0; padding: 0; }
  .tblock { border-left: 0; border-right: 0; box-shadow: none; }
  .tblock__specs { grid-template-columns: 1fr; }
  .tblock__specs > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .slider__bar { bottom: .75rem; }
  .pfilter { flex-wrap: nowrap; overflow-x: auto; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 2px; scrollbar-width: none; scroll-padding: 0 var(--gutter); }
  .pfilter::-webkit-scrollbar { display: none; }
  .chip { flex: none; white-space: nowrap; }
  .pgrid { grid-template-columns: 1fr; }
  .ppager__pages { display: none; }
  .ppager__count { display: block; }
  .cstrip { grid-template-columns: 1fr; }
  .cstrip > * + * { border-left: 0; border-top: 1px solid var(--line); }
  .form { grid-template-columns: 1fr; }
  .field:not(.field--full) { border-right: 0; }
  .footer__grid { grid-template-columns: 1fr; }
  .lb img { max-width: 100vw; max-height: calc(100dvh - 9rem); }
  .lb__prev, .lb__next { top: auto; bottom: .75rem; transform: none; }
  .head { flex-direction: column; align-items: start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .nav > * { transform: none !important; }
  .slider__dot.is-on::after { animation: none; transform: scaleX(1); }
  .svc__lead img, .thumbs img, .pcard__img img { transition: none; }
}

/* mobile: no backdrop-filter on the header, it would trap the fixed menu inside the header box */
@media (max-width: 760px) {
  .header { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .header { background: var(--paper); }
}

/* mobile: one rule per section is enough — the heading stands on its own, lists and boxes carry their own edges */
@media (max-width: 760px) {
  .head { border-bottom: 0; padding-bottom: 0; }
  .svc__list { border-bottom: 0; }
  .projects { border-bottom: 0; }
}
