/* Bureau Stekke — site styles. Proportions measured on the previous site at 1280, 1440 and 1920 px:
   it has no maximum width, margins are 9 % of the window and tall images follow the window height. */
:root {
	--black: #000;
	--white: #fff;
	--mist: #e9eaed;
	--muted: #6b6f7d;
	--ink: #1a1a1a;
	--display: "Red Hat Display", system-ui, sans-serif;
	--gutter: max(20px, 9vw);
	--inset: calc(var(--gutter) + 2.1vw); /* text aligned slightly inside the margin, as on the home page */
	--header-h: 87px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 0.2em; }
/* Hover effects of the previous site (read in its stylesheets): links turn grey and are underlined. */
a:hover { color: #707070; text-decoration: underline; }
:is(h1, h2, h3) a:hover { text-decoration: none; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * { margin-block: 0; }
.wrap { width: calc(100% - 2 * var(--gutter)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--white); color: var(--black); padding: 10px 16px; }
.skip-link:focus { left: 8px; }

/* Header: black brand block on the left half, menu on the right */
.site-header { display: grid; grid-template-columns: 50% 1fr; min-height: var(--header-h); background: var(--white); position: relative; z-index: 20; }
.site-header__brand { background: var(--black); display: flex; align-items: center; padding-left: var(--gutter); padding-right: 20px; }
.site-header__brand img { width: min(417px, 100%); }
.site-nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 36px 0 30px; font-family: var(--display); }
.site-nav__menu { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 1.0625rem; font-weight: 500; }
.site-nav a { text-decoration: none; }
.site-nav a:hover, .site-nav__menu a[aria-current] { color: #999; text-decoration: none; }
.site-nav__langs { display: flex; gap: 18px; font-size: 0.8125rem; }
.site-nav__langs a { color: #767676; }
.site-nav__langs a[aria-current] { color: var(--ink); font-weight: 600; }
.menu-toggle { display: none; }

/* Shared pieces */
.eyebrow { font-family: var(--display); font-weight: 400; font-size: 1.0625rem; letter-spacing: 0.02em; text-transform: uppercase; color: var(--muted); margin-bottom: 40px; }
.page-title { font-family: var(--display); font-weight: 400; font-size: clamp(1.75rem, 2.6vw, 2.25rem); text-transform: uppercase; letter-spacing: 0.01em; line-height: 1.2; }
.arrow-link { display: inline-flex; gap: 10px; align-items: baseline; font-family: var(--display); font-weight: 600; font-size: 0.9375rem; text-decoration: none; }
.arrow-link:hover { color: #999; text-decoration: none; }
.more-link { font-family: var(--display); font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.more-link:hover { color: #000; text-decoration: none; border-bottom-color: #eee; }
.button-outline { font: 500 0.875rem var(--display); letter-spacing: 0.04em; text-transform: uppercase; background: var(--white); color: var(--ink); border: 1px solid var(--ink); padding: 11px 24px; cursor: pointer; }
.button-outline:hover { background: var(--black); color: var(--white); }

/* Home */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 67fr) minmax(0, 33fr); }
.hero__slides { position: absolute; inset: 0; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 2s; }
.hero__img.is-on { opacity: 1; }
.hero__content { display: contents; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top right, rgb(0 0 0 / 0.62), rgb(0 0 0 / 0) 60%); }
.hero__content > * { z-index: 1; }
/* The title block has a fixed height and its text sits at the bottom, so a longer title (Dutch, four lines) does not push the card down. */
.hero__content > h1 { grid-column: 1 / -1; position: relative; display: flex; align-items: flex-end; box-sizing: border-box; min-height: calc(75vh - var(--header-h)); color: var(--white); font-weight: 600; font-size: clamp(1.5rem, 2.35vw, 2.25rem); line-height: 1.35; padding: 100px 20px 2.6vw var(--inset); }
.hero__content > h1 span { display: block; max-width: 35vw; }
.hero__content > .wp-block-columns { grid-column: 1; position: relative; background: var(--white); margin: 0; padding: 3.4vw 5vw 4.6vw var(--inset); gap: 5vw; font-size: 0.8125rem; }
.hero__content > .wp-block-columns p { margin-bottom: 1.2em; }
.hero__content a { font-family: var(--display); font-weight: 600; text-decoration: none; }
.hero__content a::before { content: "→"; margin-right: 10px; }
.hero__content a:hover { color: #999; text-decoration: none; }
.home-projects { padding: 6.4vw 0 6.6vw; }
.home-projects .cards { gap: 32px 2px; }
.home-projects .arrow-link, .home-news .arrow-link { margin-top: 50px; }
.home-news { background: var(--mist); padding: 6.4vw 0 6vw; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 2.2vw; }
.card__link { text-decoration: none; display: block; }
.card__img { display: block; overflow: hidden; aspect-ratio: 10 / 7; background: #d9dbe0; }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__link:hover { color: inherit; text-decoration: none; }
.card__link:hover .card__img img { filter: opacity(0.3); }
.card__title { font-size: 1.25rem; font-weight: 600; margin-top: 24px; }
.card__cat { color: #767676; font-size: 0.8125rem; margin: 4px 0 0; }
.card[hidden], .news-card[hidden] { display: none; }

.teasers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 5vw; padding-inline: 1vw; }
.teaser { font-size: 0.8125rem; }
.teaser__date { color: #767676; margin-bottom: 6px; }
.teaser__title { font-size: 1.25rem; margin-bottom: 10px; }
.teaser__title a { text-decoration: none; }
.teaser__title a:hover { text-decoration: none; }

/* Listings: projects and news */
.listing { background: var(--mist); padding: 3.9vw 0 6vw; }
.listing__intro { margin: 26px 0 40px; }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 5px; margin-bottom: 32px; }
.filters__btn { font: 400 0.8125rem var(--display); background: var(--white); color: var(--ink); border: 0; padding: 18px 10px; cursor: pointer; }
.filters__btn[aria-pressed="true"], .filters__btn:hover { background: var(--black); color: var(--white); }
.listing__more { text-align: center; margin: 44px 0 0; }
.listing--news .button-outline { border-color: transparent; text-transform: none; }
.listing--news .button-outline:hover { background: #eee; color: var(--ink); }
.listing--news .wrap { max-width: 1160px; }
.news-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.8vw; margin-top: 40px; }
.news-card { background: var(--white); font-size: 0.875rem; }
.news-card__img { display: block; aspect-ratio: 15 / 8; overflow: hidden; background: #d9dbe0; }
.news-card__img img { width: 100%; height: 100%; object-fit: cover; }
.news-card:hover .news-card__img img { filter: opacity(0.7); }
.news-card__body { padding: 20px 20px 24px; }
.news-card__title { font-size: 1.25rem; }
.news-card__title a { text-decoration: none; }
.news-card__title a:hover { text-decoration: none; }
.news-card__year { color: #767676; margin: 6px 0 8px; }

/* Project */
.project__hero { position: relative; display: grid; grid-template-columns: minmax(0, 60fr) minmax(0, 40fr); background: #d9dbe0; }
.project__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.project__title { grid-column: 1; position: relative; background: var(--white); margin-top: clamp(240px, 33vw, 62vh); padding: 2.6vw 30px 2.4vw calc(var(--gutter) + 1vw); }
.project__title h1 { font-size: clamp(1.75rem, 2.6vw, 2.25rem); font-weight: 600; }
.project__text { background: var(--black); color: var(--white); width: 60%; padding: 4.6vw 7vw 5vw calc(var(--gutter) + 1vw); }
.project__text { font-size: 1.0625rem; }
.project__text p:last-child { margin-bottom: 0; }
.project__gallery { background: var(--mist); padding: 6.4vw 0 7.4vw; }
.masonry { columns: 4; column-gap: 3.2vw; }
.masonry a { display: block; position: relative; margin-bottom: 3.2vw; break-inside: avoid; overflow: hidden; }
.masonry img { width: 100%; transition: transform 0.5s ease; }
.masonry a:hover img { transform: scale(1.3); }
.masonry__plus { position: absolute; inset: 0; display: grid; place-items: center; color: var(--white); font: 300 2.4rem/1 var(--display); opacity: 0; transition: opacity 0.5s ease; }
.masonry a:hover .masonry__plus { opacity: 1; }
/* With JavaScript, photos are dealt row by row into columns, as on the previous site. */
.masonry.is-dealt { columns: auto; display: flex; gap: 3.2vw; align-items: flex-start; }
.masonry__col { flex: 1 1 0; min-width: 0; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: rgb(0 0 0 / 0.92); width: 100vw; height: 100dvh; max-width: none; max-height: none; }
.lightbox::backdrop { background: rgb(0 0 0 / 0.92); }
.lightbox img { position: absolute; inset: 60px 70px; width: calc(100% - 140px); height: calc(100% - 120px); object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: var(--white); font: 400 2rem/1 var(--display); padding: 14px 18px; cursor: pointer; }
.lightbox [data-close] { top: 6px; right: 10px; }
.lightbox [data-prev] { left: 6px; top: 50%; translate: 0 -50%; }
.lightbox [data-next] { right: 6px; top: 50%; translate: 0 -50%; }

/* News item: text card on the left, large photograph on the right (from the middle of the window), starting above the card */
.news-item { background: var(--mist); padding-top: 4.2vw; }
.back-link { font-family: var(--display); font-size: 0.9375rem; text-transform: uppercase; color: var(--muted); text-decoration: none; display: inline-flex; gap: 10px; padding-left: 4vw; }
.back-link:hover { color: #999; text-decoration: none; }
.news-item__title { font-size: clamp(1.75rem, 2.5vw, 2.5rem); font-weight: 500; margin: 1.2vw 0 1.4vw; padding-left: 4vw; max-width: 39vw; }
.news-item__card { display: grid; grid-template-columns: 29vw minmax(0, 1fr); gap: 8vw; background: var(--white); padding: 3.4vw 0 4.2vw 5vw; margin-left: -1vw; margin-right: calc(-1 * var(--gutter)); }
.news-item__text { font-size: 1.0625rem; line-height: 1.85; }
.news-item__img { margin-top: -9.1vw; padding-right: 8vw; }
.news-item__img img { width: 100%; }
.news-item .home-news { padding-top: 6.4vw; }
.news-item .home-news .wrap { padding-inline: 12vw; }
.news-item .teasers { padding-inline: 0; gap: 40px 4vw; }

/* Office page: staggered text cards and photographs. On the previous site the positions and the image sizes follow
   the window (%), while the text blocks, the card heights and the overlaps are fixed (px): same here. */
.bureau { background: var(--mist); padding-bottom: 6vw; }
.bureau__content { display: grid; grid-template-columns: 50% 50%; }
.bureau__content > * { margin: 0; grid-column: 1 / -1; position: relative; }
.bureau__content > .wp-block-group { background: var(--white); padding: 62px 60px 60px; font-size: 0.9375rem; }
.bureau__content > .wp-block-group > * { max-width: 440px; }
.bureau__content > .wp-block-group h2 { font-size: 1.375rem; margin-bottom: 26px; }
.bureau__content > .wp-block-group p:last-child { margin-bottom: 0; }
.bureau__content > .wp-block-image img { width: 100%; height: 100%; object-fit: cover; }
.bureau__content > .wp-block-group:nth-of-type(1) { grid-column: 1; background: none; padding: 96px 30px 80px max(20px, calc(50vw - 580px)); }
.bureau__content > .wp-block-group:nth-of-type(1) h1 { font-family: var(--display); font-weight: 400; font-size: 2.25rem; text-transform: uppercase; line-height: 1.25; margin-bottom: 30px; }
.bureau__content > .wp-block-image:nth-of-type(1) { grid-column: 2; height: auto; min-height: 573px; } /* stretches with the introduction, as on the previous site */
.bureau__content > .wp-block-image:nth-of-type(1) img { position: absolute; inset: 0; }
.bureau__content > .wp-block-group:nth-of-type(2) { margin-left: 41.6%; min-height: 420px; }
.bureau__content > .wp-block-image:nth-of-type(2) { width: 80%; height: 36vw; }
.bureau__content > .wp-block-group:nth-of-type(3) { width: 50%; padding-left: max(20px, calc(50vw - 480px)); min-height: 566px; }
.bureau__content > .wp-block-image:nth-of-type(3) { margin: -188px 0 0 25.5%; width: 56.7%; height: 33vw; z-index: 1; }
.bureau__content > .wp-block-group:nth-of-type(4) { margin: -98px 0 0 48.3%; min-height: 635px; z-index: 2; }
.bureau__content > .wp-block-image:nth-of-type(4) { margin: -240px 0 0 1%; width: 74.3%; height: 35.9vw; z-index: 3; }
.bureau__links { display: flex; gap: 6vw; justify-content: center; padding-top: 6vw; }
.bureau__links p { margin: 0; font-size: 0.9375rem; }
.bureau__links .arrow-link { margin-top: 10px; }

/* References */
.refs { background: var(--mist); }
.refs__top { display: grid; grid-template-columns: 1fr 1fr; }
.refs__title { padding: 0 20px 2vw max(20px, calc(50vw - 580px)); align-self: center; }
.refs__img { height: 31.4vw; }
.refs__img img { width: 100%; height: 100%; object-fit: cover; }
.refs__card { background: var(--white); margin-left: 30%; padding: 2.8vw 2.1vw 2.4vw; }
.references { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 2vw; font-family: var(--display); font-size: 1.0625rem; line-height: 1.3; }
.references li { padding-bottom: 30px; }
.references a { display: block; font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: #767676; text-decoration: none; margin-top: 6px; }
.references a:hover { color: #707070; text-decoration: underline; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; }
.contact__info { padding: 5.2vw 40px 5.6vw var(--gutter); font-size: 0.875rem; }
.contact__info .page-title { margin-bottom: 26px; }
.contact__info p { margin-bottom: 0.7em; }
.contact__info a { text-decoration: none; }
.contact__info a:hover { color: #707070; text-decoration: underline; }
.contact__social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 44px; }
.contact__social a { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--mist); font: 700 1.25rem var(--display); }
.contact__social a:hover { background: var(--black); color: var(--white); text-decoration: none; }
.contact__form { background: var(--mist); padding: 5.2vw var(--gutter) 5.2vw 5vw; }
.contact__form h2 { font-size: 1.5rem; margin-bottom: 40px; }
.form label { display: block; font-family: var(--display); font-size: 0.8125rem; text-transform: uppercase; margin-bottom: 8px; }
.form input[type="text"], .form input[type="email"], .form textarea { width: 100%; font: inherit; padding: 9px 12px; border: 1px solid #c9ccd4; background: var(--white); color: var(--ink); }
.form textarea { resize: vertical; }
.form__consent label { display: inline; text-transform: none; font-size: 0.875rem; }
.form__trap { position: absolute; left: -9999px; }
.form-notice { padding: 12px 16px; background: var(--white); border-left: 4px solid var(--black); }
/* Map: loaded from Google only when the visitor asks for it. */
.contact__map { grid-column: 1 / -1; height: 31.3vw; min-height: 300px; background: #dfe3e8 linear-gradient(135deg, #e7eaee 25%, #dfe3e8 25% 50%, #e7eaee 50% 75%, #dfe3e8 75%) 0 0 / 120px 120px; display: grid; place-items: center; }
.contact__map iframe { width: 100%; height: 100%; border: 0; }
.contact__map p { margin: 0; display: grid; gap: 14px; justify-items: center; font-family: var(--display); }

/* Plain pages (privacy policy): as on the previous site, small text on the grey background, full width, no visible title. */
.plain { background: var(--mist); padding: 2.4vw 0 5vw; }
.plain__card { font-size: 1rem; line-height: 1.52; }
.plain__card :where(h2, h3) { font-size: 1.5rem; font-weight: 700; margin: 1.2em 0 0.45em; }
.plain__card h4 { font: 400 0.8125rem var(--display); text-transform: uppercase; color: var(--muted); margin: 1.2em 0 0.4em; }
.plain__card p { margin-bottom: 0.75em; }
.plain__card :where(ul, ol) { list-style: revert; padding-left: 1.4em; margin-bottom: 1em; }
.plain__card a { overflow-wrap: anywhere; }

/* Footer */
.site-footer { background: var(--black); color: var(--white); padding: 5.2vw 0 26px; font-family: var(--display); }
.site-footer__cols { display: grid; grid-template-columns: 28.4fr 27.8fr 26fr; gap: 20px; }
.site-footer__title { font-size: 0.875rem; font-weight: 500; text-transform: uppercase; color: #9b9b9b; margin-bottom: 26px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer li { margin-bottom: 6px; }
.site-footer__privacy { margin-top: 44px; font-size: 0.8125rem; }
.site-footer__privacy a { text-decoration: underline; }
.site-footer__legal { text-align: center; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; margin: 50px 0 0; }

@media (max-width: 1100px) {
	.site-header { grid-template-columns: 42% 1fr; }
	.site-nav { padding: 10px 20px; }
	.site-nav__menu { font-size: 0.9375rem; gap: 2px 16px; }
	.masonry { columns: 3; }
	.project__text { width: 75%; }
	.news-item__card { grid-template-columns: 33vw minmax(0, 1fr); gap: 4vw; }
	.news-item .home-news .wrap { padding-inline: 4vw; }
}
@media (max-width: 800px) {
	/* Phone layout measured on the previous site at 390 px: 8.5 % margins, 14 px text, tall images with the white card overlapping. */
	:root { --header-h: 64px; --gutter: 8.5vw; --inset: 8.5vw; }
	body { font-size: 0.875rem; }
	.site-header { grid-template-columns: 1fr auto; background: var(--black); }
	.site-header__brand { padding-block: 14px; }
	.menu-toggle { display: grid; place-items: center; width: 64px; background: var(--black); border: 0; cursor: pointer; }
	.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after { display: block; width: 26px; height: 2px; background: var(--white); content: ""; position: relative; }
	.menu-toggle__bars::before { position: absolute; top: -8px; }
	.menu-toggle__bars::after { position: absolute; top: 8px; }
	.site-nav { display: none; grid-column: 1 / -1; background: var(--white); flex-direction: column; align-items: flex-start; padding: 24px var(--gutter) 28px; }
	.site-nav.is-open { display: flex; }
	.site-nav__menu { flex-direction: column; gap: 14px; font-size: 1.125rem; }
	.hero { grid-template-columns: minmax(0, 90fr) minmax(0, 10fr); }
	.hero__content > h1 { min-height: calc(66vh - var(--header-h)); padding: 80px 16vw 44px var(--gutter); font-size: 1.1875rem; }
	.hero__content > h1 span { max-width: none; }
	.plain__card { font-size: 0.875rem; }
	.plain__card :where(h2, h3) { font-size: 1.25rem; }
	.hero__content > .wp-block-columns { padding: 40px 30px 34px var(--gutter); gap: 22px; font-size: 0.8125rem; }
	.cards, .home-projects .cards, .teasers, .news-cards { grid-template-columns: 1fr; gap: 32px; }
	.teasers { padding-inline: 0; }
	.home-projects, .home-news, .project__gallery, .listing { padding-block: 56px; }
	.project__hero { grid-template-columns: minmax(0, 85fr) minmax(0, 15fr); }
	.project__title { margin-top: calc(62vh - var(--header-h)); padding: 26px 20px 24px var(--gutter); }
	.project__title h1 { font-size: 1.5rem; }
	.project__text { width: 100%; padding: 56px var(--gutter); font-size: 0.875rem; }
	.masonry { columns: 1; }
	.masonry a { margin-bottom: 14px; }
	.masonry.is-dealt { gap: 14px; }
	.lightbox img { inset: 56px 8px; width: calc(100% - 16px); height: calc(100% - 112px); }
	.news-item { padding-top: 40px; }
	.back-link, .news-item__title { padding-left: 0; max-width: none; }
	.news-item__title { margin-block: 14px 20px; }
	.news-item__card { grid-template-columns: 1fr; padding: 36px var(--gutter); margin-inline: calc(-1 * var(--gutter)); gap: 30px; }
	.news-item__img { margin-top: 0; padding-right: 0; order: -1; }
	.news-item .home-news { padding-top: 56px; }
	.news-item .home-news .wrap { padding-inline: 0; }
	.bureau__content { display: block; }
	.bureau__content > .wp-block-group:nth-of-type(n) { width: 90%; min-height: 0; margin: -9vw 0 0; padding: 56px var(--gutter) 60px; z-index: 1; }
	.bureau__content > .wp-block-group:nth-of-type(1) { width: auto; margin: 0; padding: 64px var(--gutter) 60px; }
	.bureau__content > .wp-block-group > * { max-width: none; }
	.bureau__content > .wp-block-image:nth-of-type(n) { width: auto; height: auto; min-height: 0; aspect-ratio: 39 / 42; margin: 0; z-index: 0; }
	.bureau__content > .wp-block-image:nth-of-type(1) img { position: static; }
	.bureau__content > .wp-block-group:nth-of-type(1) h1 { font-size: 1.75rem; }
	.news-item__text { font-size: 1rem; }
	.bureau__links { flex-direction: column; gap: 18px; align-items: flex-start; padding-top: 50px; }
	.refs__top, .contact { grid-template-columns: 1fr; }
	.refs__title { padding: 50px var(--gutter); }
	.refs__img { height: auto; aspect-ratio: 3 / 2; }
	.refs__card { margin-left: 0; padding: 40px var(--gutter); }
	.references { grid-template-columns: 1fr; }
	.contact__info, .contact__form { padding: 44px var(--gutter); }
	.plain { padding: 30px 0 56px; }
	.contact__map { height: 320px; }
	.site-footer { padding-top: 56px; }
	.site-footer__cols { grid-template-columns: 1fr; gap: 36px; }
}
@media (min-width: 801px) and (max-width: 1000px) {
	.references { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; }
}
