/* =========================================================================
   Masinawerk Design — "blueprint" theme (Archivo / IBM Plex Mono, near-black)
   ========================================================================= */

:root {
	--bg: #0a0a0a;
	--panel: #0d0d0d;
	--panel-2: #0f0f0f;
	--panel-3: #131313;
	--panel-4: #161616;
	--ink: #f5f5f5;
	--muted: #c4c4c4;
	--dim: #9a9a9a;
	--mono-dim: #7a7a7a;
	--line: rgba(255, 255, 255, 0.08);
	--line-2: rgba(255, 255, 255, 0.14);
	--accent: #c03e8e;
	--accent-hover: #d763ac;

	--sans: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

	--maxw: 1240px;
	--pad: 28px;
	--header-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--sans);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--accent); color: var(--bg); }
h1, h2, h3 { margin: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
.section { padding-block: clamp(72px, 10vw, 120px); }
.section[id] { scroll-margin-top: var(--header-h); }
.section--panel { border-top: 1px solid var(--line); background: var(--panel); }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--accent); color: var(--bg); padding: 12px 20px; }
.skip-link:focus { left: 12px; top: 12px; }

/* ---- Shared type helpers ------------------------------------------------ */
.h2 { font-weight: 800; font-size: clamp(32px, 4vw, 50px); line-height: 1.02; letter-spacing: -0.02em; text-transform: uppercase; }
.tag {
	display: inline-flex; align-items: center; gap: 12px;
	font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
	margin: 0 0 22px;
}
.tag--accent { color: var(--accent); }
.tag__rule { width: 28px; height: 1px; background: var(--accent); }
.accent { color: var(--accent); }

.section__head { margin-bottom: 56px; }
.section__head--center { text-align: center; }
.section__head--center .tag { justify-content: center; }
.section__head--split { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section__note { margin: 0; max-width: 42ch; color: var(--dim); font-size: 15px; line-height: 1.6; }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 16px 28px; font-weight: 700; font-size: 15px; letter-spacing: 0.04em;
	border: 1px solid transparent; transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.btn--accent { background: var(--accent); color: var(--bg); }
.btn--accent:hover { background: var(--accent-hover); }
.btn--outline { border-color: rgba(255, 255, 255, 0.3); color: var(--ink); }
.btn--outline:hover { border-color: #fff; background: rgba(255, 255, 255, 0.06); }
.btn--dark { background: var(--bg); color: #fff; }
.btn--dark:hover { background: #1c1c1c; }
.btn--ink-outline { border-color: rgba(10, 10, 10, 0.35); color: var(--bg); }
.btn--ink-outline:hover { background: rgba(10, 10, 10, 0.08); }

/* ---- Header ------------------------------------------------------------- */
.site-header {
	position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--header-h);
	display: flex; align-items: center;
	background: rgba(10, 10, 10, 0.72); backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 16px; }
.brand__logo { height: 30px; width: auto; }
.brand__divider { width: 1px; height: 26px; background: rgba(255, 255, 255, 0.16); }
.brand__meta { font-family: var(--mono); font-size: 10px; letter-spacing: 0.26em; color: var(--mono-dim); line-height: 1.5; }

.nav { display: flex; align-items: center; gap: 30px; font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: #c9c9c9; }
.nav > a { transition: color .2s; }
.nav > a:hover { color: var(--accent); }
.nav__cta { color: var(--bg); }
.nav__cta:hover { color: var(--bg); }

.mw-lang { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.mw-lang__item a { padding: 4px 7px; color: var(--mono-dim); transition: color .2s, background .2s; }
.mw-lang__item a:hover { color: var(--ink); }
.mw-lang__item.is-current a { color: var(--bg); background: var(--accent); }

.nav-toggle { display: none; width: 44px; height: 40px; background: transparent; border: 0; position: relative; }
.nav-toggle span { position: absolute; left: 9px; right: 9px; height: 2px; background: var(--ink); transition: transform .3s, opacity .2s; }
.nav-toggle span:nth-child(1) { top: 13px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 25px; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---- Hero --------------------------------------------------------------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.35) contrast(1.05) brightness(0.72); }
.hero__scrim { position: absolute; inset: 0; background:
	linear-gradient(180deg, rgba(10, 10, 10, 0.55) 0%, rgba(10, 10, 10, 0.35) 40%, rgba(10, 10, 10, 0.92) 100%),
	linear-gradient(90deg, rgba(10, 10, 10, 0.75) 0%, rgba(10, 10, 10, 0.15) 55%, transparent 100%); }
.hero__coords { position: absolute; top: 104px; right: var(--pad); font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; color: rgba(255, 255, 255, 0.4); text-align: right; line-height: 1.9; }
.hero__inner { position: relative; z-index: 1; padding-bottom: 76px; padding-top: 96px; }
.hero__title { font-weight: 900; font-size: clamp(44px, 7.2vw, 104px); line-height: 0.95; letter-spacing: -0.02em; text-transform: uppercase; max-width: 14ch; }
.hero__sub { margin: 28px 0 0; max-width: 56ch; font-size: clamp(16px, 1.5vw, 20px); line-height: 1.6; color: var(--muted); }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 38px; }

/* ---- Marquee ------------------------------------------------------------ */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--panel); overflow: hidden; padding: 18px 0; }
.marquee__track { display: flex; width: max-content; white-space: nowrap; animation: mw-marquee 32s linear infinite; }
.marquee__run { display: flex; align-items: center; gap: 34px; padding-right: 34px; font-family: var(--mono); font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; color: #8a8a8a; }
.marquee__sep { color: var(--accent); }
@keyframes mw-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---- Stats -------------------------------------------------------------- */
.stats-band { padding-block: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border-left: 1px solid var(--line); }
.stats__item { padding: 52px 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); }
.stats__value { font-weight: 900; font-size: clamp(40px, 4.5vw, 60px); line-height: 1; letter-spacing: -0.02em; }
.stats__label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mono-dim); margin-top: 14px; }

/* ---- About -------------------------------------------------------------- */
.about__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 64px; align-items: start; }
.specs { margin: 34px 0 0; display: flex; flex-direction: column; gap: 12px; }
.specs__row { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); font-family: var(--mono); font-size: 13px; }
.specs__key { color: var(--mono-dim); letter-spacing: 0.08em; margin: 0; text-transform: uppercase; }
.specs__val { margin: 0; text-align: right; }
.about__body { font-size: 17px; line-height: 1.75; color: var(--muted); display: flex; flex-direction: column; gap: 22px; }
.about__body p { margin: 0; }
.quote { margin: 14px 0 0; padding: 24px 28px; border-left: 3px solid var(--accent); background: var(--panel-3); font-weight: 700; font-size: 22px; line-height: 1.35; color: var(--ink); }

/* ---- Services ----------------------------------------------------------- */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.svc { background: var(--panel); padding: 38px 32px; display: flex; flex-direction: column; gap: 22px; transition: background .25s; }
.svc:hover { background: #141414; }
.svc__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.svc__icon { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; background: #1a1a1a; border: 1px solid rgba(255, 255, 255, 0.1); }
.svc__icon img { width: 32px; height: 32px; object-fit: contain; filter: brightness(0) invert(1); }
.svc__num { font-family: var(--mono); font-size: 12px; color: #4a4a4a; }
.svc__title { font-weight: 700; font-size: 21px; line-height: 1.2; letter-spacing: -0.01em; }
.svc__list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.svc__list li { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 13px; color: #b0b0b0; }
.svc__dot { width: 5px; height: 5px; background: var(--accent); flex-shrink: 0; }
.svc__body { color: #b0b0b0; font-size: 15px; line-height: 1.6; }
.svc__body p { margin: 0; }

/* ---- References --------------------------------------------------------- */
.logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
/* White logo chips read on the dark section and work for every logo format. */
.logo { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; padding: 28px 34px; background: #ffffff; border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.logo:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(0, 0, 0, 0.8); }
.logo a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.logo__img { max-width: 100%; max-height: 110px; width: auto; height: auto; object-fit: contain; filter: grayscale(1); opacity: 0.72; transition: filter .25s, opacity .25s; }
.logo:hover .logo__img { filter: none; opacity: 1; }
.logo__name { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.06em; font-size: 15px; color: #333; text-align: center; }

/* ---- Gallery ------------------------------------------------------------ */
.gallery__feature { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; margin-bottom: 16px; }
.gallery__video { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.gallery__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gallery__note { display: flex; flex-direction: column; justify-content: center; gap: 16px; background: var(--panel-3); padding: 36px; border: 1px solid var(--line); }
.gallery__note .tag { margin: 0; }
.gallery__note p { margin: 0; font-size: 18px; line-height: 1.5; color: #d0d0d0; }
.gallery__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.gallery__cell { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--panel-4); margin: 0; }
.gallery__link { display: block; width: 100%; height: 100%; position: relative; cursor: zoom-in; }
.gallery__cell img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .3s; filter: grayscale(0.2); }
.gallery__link:hover img, .gallery__link:focus-visible img { transform: scale(1.06); filter: none; }
/* Zoom affordance on hover. */
.gallery__zoom { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; background: rgba(10, 10, 10, 0.35); transition: opacity .25s; }
.gallery__zoom::before, .gallery__zoom::after { content: ""; position: absolute; background: #fff; box-shadow: 0 0 0 6px rgba(10, 10, 10, 0.15); }
.gallery__zoom::before { width: 34px; height: 2px; }
.gallery__zoom::after { width: 2px; height: 34px; }
.gallery__link:hover .gallery__zoom, .gallery__link:focus-visible .gallery__zoom { opacity: 1; }

/* ---- Lightbox ----------------------------------------------------------- */
body.mw-lb-lock { overflow: hidden; }
.mw-lb { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; background: rgba(8, 8, 8, 0.94); padding: clamp(16px, 4vw, 56px); }
.mw-lb.is-open { display: flex; }
.mw-lb__figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 16px; cursor: zoom-out; }
.mw-lb__img { max-width: min(1200px, 92vw); max-height: 82vh; width: auto; height: auto; object-fit: contain; border: 1px solid var(--line); background: #000; cursor: default; }
.mw-lb__cap { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: #c9c9c9; }
.mw-lb__close, .mw-lb__nav { position: fixed; background: rgba(255, 255, 255, 0.08); color: #fff; border: 1px solid var(--line-2); width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; line-height: 1; transition: background .2s, border-color .2s; }
.mw-lb__close:hover, .mw-lb__nav:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.mw-lb__close { top: 24px; right: 24px; font-size: 30px; }
.mw-lb__nav { top: 50%; transform: translateY(-50%); font-size: 34px; }
.mw-lb__prev { left: 24px; }
.mw-lb__next { right: 24px; }
.mw-lb__count { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; color: var(--mono-dim); }
@media (max-width: 640px) {
	.mw-lb__nav { width: 44px; height: 44px; font-size: 26px; }
	.mw-lb__prev { left: 10px; }
	.mw-lb__next { right: 10px; }
	.mw-lb__close { top: 12px; right: 12px; }
}
@media (prefers-reduced-motion: reduce) {
	.gallery__cell img { transition: none; }
}

/* ---- CTA band ----------------------------------------------------------- */
.cta { background: var(--accent); color: var(--bg); }
.cta__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 56px; align-items: center; padding-block: 88px; }
.cta .tag { opacity: 0.7; color: var(--bg); }
.cta__title { font-weight: 900; font-size: clamp(34px, 4.4vw, 54px); line-height: 0.98; letter-spacing: -0.02em; text-transform: uppercase; overflow-wrap: break-word; }
.cta__aside { display: flex; flex-direction: column; gap: 20px; }
.cta__text { margin: 0; font-size: 18px; line-height: 1.55; font-weight: 500; max-width: 44ch; }
.cta__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---- Contact ------------------------------------------------------------ */
.contact__title { margin-bottom: 56px; }
.contact__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; align-items: start; }
.contact__cards { display: flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.contact__card { background: var(--panel-2); padding: 32px; }
.contact__label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; color: var(--mono-dim); margin-bottom: 12px; text-transform: uppercase; }
.contact__label--accent { color: var(--accent); }
.contact__addr { font-style: normal; font-size: 16px; line-height: 1.7; color: var(--muted); }
.contact__addr p { margin: 0; }
.contact__email { display: inline-block; margin-top: 14px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--accent); padding-bottom: 2px; }
.contact__phone { display: block; font-weight: 700; font-size: 22px; letter-spacing: -0.01em; }
.contact__pmail { display: inline-block; margin-top: 8px; font-size: 14px; color: var(--dim); }
.contact__pmail:hover { color: var(--accent); }

.contact__form { background: var(--panel-3); border: 1px solid var(--line); padding: 36px; }
.contact__form .contact__label { margin-bottom: 18px; }

/* Contact Form 7 (design theme) */
.contact__form .wpcf7-form p { margin: 0 0 16px; }
.contact__form label { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mono-dim); }
.contact__form input[type="text"], .contact__form input[type="email"], .contact__form input[type="tel"], .contact__form textarea {
	width: 100%; margin-top: 8px; background: var(--bg); border: 1px solid var(--line-2); color: var(--ink);
	padding: 14px 16px; font-family: var(--sans); font-size: 15px; outline: none; transition: border-color .2s;
}
.contact__form input:focus, .contact__form textarea:focus { border-color: var(--accent); }
.contact__form textarea { min-height: 130px; resize: vertical; }
.contact__form input::placeholder, .contact__form textarea::placeholder { color: rgba(245, 245, 245, 0.35); }
.wpcf7-submit { background: var(--accent); color: var(--bg); border: 0; padding: 16px 28px; font-family: var(--sans); font-weight: 700; font-size: 15px; letter-spacing: 0.04em; transition: background .2s; }
.wpcf7-submit:hover { background: var(--accent-hover); }
.wpcf7-spinner { margin-left: 10px; }
.wpcf7 .wpcf7-response-output { margin: 10px 0 0; padding: 12px 16px; font-size: 14px; }

.contact__map { margin-top: 48px; aspect-ratio: 24 / 9; overflow: hidden; border: 1px solid var(--line); filter: grayscale(1) invert(0.92) contrast(0.9); }
.contact__map iframe { width: 100%; height: 100%; border: 0; }

/* ---- Footer ------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg); }
.site-footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-block: 44px; }
.site-footer__logo { height: 22px; width: auto; }
.site-footer__meta { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: #6a6a6a; }

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 940px) {
	.nav-toggle { display: block; }
	.nav {
		position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
		background: rgba(10, 10, 10, 0.98); border-bottom: 1px solid var(--line);
		max-height: 0; overflow: hidden; transition: max-height .35s ease; padding: 0 var(--pad);
	}
	.nav.is-open { max-height: 80vh; padding-block: 8px 20px; }
	.nav > a { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
	.nav__cta { justify-content: center; margin-top: 14px; border-bottom: 0; }
	.nav__lang { padding: 14px 0 0; }
	.gallery__feature { grid-template-columns: 1fr; }
	.hero__coords { display: none; }
}
@media (max-width: 640px) {
	.section__head--split { align-items: flex-start; }
	.svc-grid, .logos { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
	.svc-grid, .logos { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.marquee__track { animation: none; }
}
