/*
 * Um Wauw: the lounge, a few words, the five of us, and the mirror wall that
 * shows people they have come to the right place. Nothing moves.
 */
.wab { --pad: max(var(--wauw-gutter), calc((100vw - 96rem) / 2)); --gap: clamp(1rem, 2vw, 2rem); --line: color-mix(in srgb, var(--wp--preset--color--contrast) 45%, transparent); overflow-x: clip; font-size: 1.0625rem; line-height: 1.65; font-variant-numeric: lining-nums; }
.wab img { display: block; max-width: none; }
.wab :is(h1, h2, h3, p) { margin: 0; }
.wab :is(h1, h2, h3) { font-family: var(--wx-display); font-weight: 400; letter-spacing: -0.015em; overflow-wrap: break-word; }
.wab h1 { font-size: var(--wx-title); line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
.wab h1 span { display: block; }
.wab h2 { font-size: clamp(1.75rem, 2.8vw, 2.5rem); line-height: 1.15; }
.wab .wx-btn { text-decoration: none; }
.wab-act { display: flex; flex-wrap: wrap; gap: 0.75rem 1.75rem; align-items: center; }
.wab-link { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 600; text-decoration: underline 1px; text-decoration-color: var(--line); text-underline-offset: 0.4em; transition: text-decoration-color 0.2s; }
.wab-link:hover { text-decoration-color: currentColor; }

/* ---------- The door ---------- */
.wab-door { height: 62vw; overflow: hidden; background: #cfc3b2; }
.wab-door img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }

/* ---------- Hello ---------- */
.wab-hello { display: grid; padding: 2.25rem var(--pad) 0; }
.wab-hello__say { display: grid; gap: 1.25rem; align-content: start; max-width: 34rem; margin-top: 1.1rem; }
.wab-lede { font-family: var(--wx-display); font-size: clamp(1.4rem, 2.2vw, 2rem); line-height: 1.32; text-wrap: balance; }
.wab-hello__say .wab-act { margin-top: 0.5rem; }
/* The upper third of the portrait is empty wall, so the crop sits low. */
.wab-hello__crew { width: 100%; height: auto; margin-top: 2.75rem; aspect-ratio: 1; object-fit: cover; object-position: 50% 58%; }

/* ---------- The rooms ---------- */
.wab-rooms { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); padding: var(--gap) var(--pad) 0; }
.wab-rooms img { width: 100%; height: auto; }
.wab-rooms img:first-child { grid-column: 1 / -1; }

/* ---------- Us ---------- */
.wab-us { padding: clamp(4rem, 8vw, 7.5rem) var(--pad); }
.wab-team { display: grid; gap: 2.5rem; margin-top: clamp(1.75rem, 3vw, 2.75rem); }
.wab-p { display: grid; grid-template-columns: 44% 1fr; gap: 1rem 1.15rem; align-content: start; align-items: end; scroll-margin-top: calc(var(--wauw-header) + var(--wp-admin--admin-bar--height, 0px) + 1.25rem); }
/* Five photographers' distances become one: --z is the zoom, --cx and --cy the middle of the face. */
.wab-p__face { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: #eceae6; }
.wab-p__face img { position: absolute; top: calc(30% - var(--cy) * var(--z) * var(--r, 1.5) * 80%); left: calc(50% - var(--cx) * var(--z) * 100%); width: calc(var(--z) * 100%); height: auto; }
.wab-p h3 { font-size: clamp(1.4rem, 1.9vw, 1.7rem); line-height: 1.2; }
.wab-p__name p { margin-top: 0.3rem; color: var(--wp--preset--color--accent-4); font-weight: 500; line-height: 1.4; }
.wab-p__name span { white-space: nowrap; }
.wab-p__text { grid-column: 1 / -1; max-width: 38rem; }
.wab-p__text > p + p { margin-top: 0.85rem; }
.wab-p__off { font-weight: 600; }
/* Five people leave one cell empty wherever there are two or three to a row. */
.wab-team__room { display: none; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; background: #cfc3b2; }
.wab-team__room img { width: 100%; height: 100%; object-fit: cover; object-position: 46% 50%; }

/* ---------- Come ---------- */
.wab-come img { width: 100%; height: 78vw; object-fit: cover; object-position: 88% 40%; }
.wab-come__text { display: grid; gap: 1rem; justify-items: start; padding: 2.5rem var(--pad) 3.5rem; }

@media (min-width: 701px) {
	.wab-door { height: min(46vw, 56svh); }
	.wab-hello { grid-template-columns: repeat(12, 1fr); grid-template-rows: auto 1fr; column-gap: var(--gap); padding-top: clamp(2.5rem, 3.5vw, 3.5rem); }
	.wab-hello h1 { grid-column: 1 / 8; }
	.wab-hello__say { grid-column: 1 / 7; grid-row: 2; margin-top: 1.5rem; }
	.wab-hello__crew { grid-column: 8 / -1; grid-row: 1 / 3; margin: 0; }
	/* Widths in the photos' own proportions: one height, nothing cropped. */
	.wab-rooms { grid-template-columns: 1.4993fr 0.667fr 0.667fr; padding-top: clamp(3.5rem, 6vw, 5.5rem); }
	.wab-rooms img:first-child { grid-column: auto; }
	.wab-team { grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 4vw, 4rem) var(--gap); }
	.wab-p { grid-template-columns: 1fr; gap: 1.15rem; }
	.wab-p__text { grid-column: auto; }
	.wab-team__room { display: block; align-self: start; }
	.wab-come { display: grid; grid-template-columns: repeat(12, 1fr); align-items: center; }
	.wab-come img { grid-column: 1 / 8; height: clamp(24rem, 40vw, 42rem); }
	.wab-come__text { grid-column: 8 / -1; padding-block: 2rem; padding-left: clamp(2rem, 5vw, 5.5rem); }
}

@media (min-width: 1001px) {
	.wab-team { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
	.wab-link { transition: none; }
}
