/*
 * ME Design — front-end stylesheet
 *
 * One file, no framework, RTL-first. The design language follows the studio's
 * own: full-bleed alternating image/text panels, a sand accent, restrained
 * type with wide tracking on the display lines, and photography doing the
 * talking. Everything here replaces 34 Elementor stylesheets.
 */

/* ================================================================= base */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	overflow-x: clip;
}

html.intro-locked,
html.intro-locked body {
	overflow: hidden;
}

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

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

body {
	margin: 0;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}

img,
video {
	max-width: 100%;
	height: auto;
}

/* ========================================================= intro curtain */

/*
 * A black curtain with the studio mark, shown once per session. It sits over
 * the page rather than replacing it, so the content is always in the DOM for
 * crawlers, and a hard timeout in app.js guarantees it can never trap anyone.
 */
#medesign-intro {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: grid;
	place-items: center;
	background: #000;
	transition: opacity 700ms ease, visibility 700ms ease;
}

#medesign-intro.is-gone {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

#medesign-intro.is-instant {
	transition: none;
}

.intro__mark {
	width: min(140px, 32vw);
	height: auto;
	opacity: 0;
	transform: scale(0.94);
	animation: intro-mark 1400ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.intro__rule {
	position: absolute;
	inset-block-end: 22%;
	inline-size: min(150px, 30vw);
	block-size: 1px;
	background: rgb(204 187 161 / 35%);
	overflow: hidden;
}

.intro__rule::after {
	content: "";
	position: absolute;
	inset-block: 0;
	inset-inline-start: 0;
	inline-size: 0;
	background: var(--wp--preset--color--sand);
	animation: intro-bar 2200ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes intro-mark {
	to {
		opacity: 1;
		transform: scale(1);
	}
}

@keyframes intro-bar {
	to {
		inline-size: 100%;
	}
}

/* ================================================================= a11y */

/*
 * Hide by clipping, not by pushing off-canvas: a -9999px offset still counts
 * toward the document's scroll width and produced horizontal scroll in RTL.
 */
.skip-link:not(:focus) {
	position: absolute;
	inline-size: 1px;
	block-size: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.skip-link:focus {
	position: fixed;
	inset-inline-start: 0;
	top: 0;
	z-index: 10000;
	inline-size: auto;
	block-size: auto;
	clip-path: none;
	padding: 0.75rem 1.25rem;
	background: var(--wp--preset--color--black);
	color: var(--wp--preset--color--white);
	text-decoration: none;
}

:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 2px solid var(--wp--preset--color--sand-dark);
	outline-offset: 3px;
}

@media (max-width: 781px) {
	.wp-block-button__link,
	.wp-block-navigation a {
		min-height: 44px;
		display: inline-flex;
		align-items: center;
	}
}

/* =============================================================== header */

/*
 * Transparent over the hero, solid once you scroll. The studio's own header
 * did this and it is most of why the opening reads as a photograph rather
 * than a web page with a picture on it.
 */
.site-header {
	position: fixed;
	inset-inline: 0;
	top: 0;
	z-index: 100;
	background: transparent;
	transition: background 300ms ease, box-shadow 300ms ease, padding 300ms ease;
}

/*
 * A fixed header is outside the normal flow, so it never inherits the layout
 * container's centring — its inner row has to constrain itself or the logo
 * runs off the edge of the screen.
 */
.site-header > .wp-block-group {
	max-inline-size: var(--wp--style--global--wide-size, 1250px);
	margin-inline: auto;
	padding-inline: var(--wp--preset--spacing--30);
	inline-size: 100%;
}

/* Sit below the admin bar when it is present, or the logo is clipped. */
body.admin-bar .site-header {
	top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar .site-header {
		top: 46px;
	}
}

body:not(.has-hero) .site-header,
.site-header.is-solid {
	background: var(--wp--preset--color--white);
	box-shadow: 0 1px 0 rgb(0 0 0 / 7%);
}

.site-header.is-scrolled {
	box-shadow: 0 2px 18px rgb(0 0 0 / 9%);
}

.site-header .wp-block-site-logo img {
	max-height: 44px;
	width: auto;
	transition: filter 300ms ease;
}

/* The full lockup does not fit beside a menu button on a phone. */
@media (max-width: 600px) {
	.site-header .wp-block-site-logo img {
		max-height: 34px;
	}

	.site-header > .wp-block-group {
		padding-inline: var(--wp--preset--spacing--20);
	}
}

/*
 * Knock the logo white over the photograph, and pure black once the header
 * turns solid — the gold lockup renders muddy against white and reads as if
 * it were low resolution.
 */
body.has-hero .site-header:not(.is-solid) .wp-block-site-logo img {
	filter: brightness(0) invert(1);
}

/* Same filter function list on both sides so the swap can interpolate. */
.site-header.is-solid .wp-block-site-logo img,
body:not(.has-hero) .site-header .wp-block-site-logo img {
	filter: brightness(0) invert(0);
}

body.has-hero .site-header:not(.is-solid) :is(.wp-block-navigation a, .header-phone, .header-phone a) {
	color: #fff;
}

body.has-hero .site-header:not(.is-solid) .wp-block-navigation__responsive-container-open svg {
	fill: #fff;
}

/* --------------------------------------------------- header socials + CTA */

.header-social {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.header-social a {
	display: grid;
	place-items: center;
	inline-size: 34px;
	block-size: 34px;
	color: var(--wp--preset--color--black);
	transition: color 200ms ease, transform 200ms ease;
}

.header-social svg {
	inline-size: 19px;
	block-size: 19px;
	fill: currentcolor;
}

.header-social a:hover {
	color: var(--wp--preset--color--sand-dark);
	transform: translateY(-1px);
}

body.has-hero .site-header:not(.is-solid) .header-social a {
	color: #fff;
}

body.has-hero .site-header:not(.is-solid) .header-social a:hover {
	color: var(--wp--preset--color--sand);
}

/* ------------------------------------------------- language switcher */

/*
 * Three codes on one line, the current one marked. It sits between the
 * socials and the CTA and wears the header's colour whatever state the
 * header is in — white over the hero, ink once solid.
 */
.lang-switch ul {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.lang-switch li + li::before {
	content: "";
	display: inline-block;
	inline-size: 1px;
	block-size: 10px;
	margin-inline-end: 0.5rem;
	background: currentcolor;
	opacity: 0.28;
	vertical-align: -1px;
}

.lang-switch a {
	font-size: var(--wp--preset--font-size--xs);
	letter-spacing: 0.12em;
	text-decoration: none;
	color: inherit;
	opacity: 0.55;
	transition: opacity 200ms ease;
}

.lang-switch a:hover,
.lang-switch a:focus-visible {
	opacity: 1;
}

.lang-switch .is-current a {
	opacity: 1;
	text-decoration: underline;
	text-underline-offset: 0.35em;
	text-decoration-thickness: 1px;
	text-decoration-color: var(--wp--preset--color--sand-dark);
}

body.has-hero .site-header:not(.is-solid) .lang-switch {
	color: #fff;
}

/*
 * The plugin's floating WhatsApp button sits at z-index 9000 and was covering
 * the last item of the open menu. A floating action button has no business on
 * top of a full-screen menu — it steps aside while the drawer is open and is
 * back the moment it closes. WordPress marks the open state on <html>.
 */
html.has-modal-open .joinchat {
	opacity: 0;
	pointer-events: none;
}

/*
 * Two copies exist: one in the header bar and one injected into the drawer,
 * because the bar is hidden behind the burger on a phone. Exactly one is ever
 * shown — the drawer copy stays out of the way until the drawer is open.
 */
.wp-block-navigation__responsive-container:not(.is-menu-open) .lang-switch {
	display: none;
}

@media (max-width: 781px) {
	/* Beside the burger the codes crowd the logo, so on a phone the
	   switcher moves into the drawer where there is room for it. */
	.site-header > .wp-block-group > .header-nav-side > .lang-switch {
		display: none;
	}
}

/* Inside the drawer it reads as a row of its own above the menu. */
.wp-block-navigation__responsive-container.is-menu-open .lang-switch {
	margin-block-end: var(--wp--preset--spacing--20);
	padding-block-end: 0.6rem;
	border-block-end: 1px solid var(--wp--preset--color--line);
	color: var(--wp--preset--color--ink);
}

.wp-block-navigation__responsive-container.is-menu-open .lang-switch a {
	font-size: var(--wp--preset--font-size--sm);
}

/*
 * The CTA sits at the far inline-end of the bar — visually left in RTL.
 * Scoped through .site-header so it outranks the site-wide button rule,
 * which is declared later in this file at the same specificity.
 */
.site-header .header-cta .wp-block-button > .wp-block-button__link {
	padding: 0.42rem 0.95rem;
	font-size: 0.72rem;
	letter-spacing: 0.06em;
	line-height: 1.35;
	min-height: 0;
	white-space: nowrap;
	background: var(--wp--preset--color--black);
	color: #fff;
}

body.has-hero .site-header:not(.is-solid) .header-cta .wp-block-button__link {
	background: #fff;
	color: var(--wp--preset--color--black);
}

body.has-hero .site-header:not(.is-solid) .header-cta .wp-block-button__link:hover {
	background: var(--wp--preset--color--sand);
	color: var(--wp--preset--color--ink);
}

@media (max-width: 900px) {
	.header-social {
		display: none;
	}
}

@media (max-width: 600px) {
	.header-cta {
		display: none;
	}
}

.header-phone {
	font-size: var(--wp--preset--font-size--sm);
	letter-spacing: 0.04em;
	white-space: nowrap;
}

.header-phone a {
	text-decoration: none;
	color: inherit;
}

.header-phone strong {
	display: block;
	font-size: var(--wp--preset--font-size--md);
	font-weight: 400;
	letter-spacing: 0.06em;
}

@media (max-width: 900px) {
	.header-phone {
		display: none;
	}
}

/* Content must clear the fixed header on pages with no hero. */
body:not(.has-hero) .wp-site-blocks > main {
	padding-block-start: 84px;
}

/*
 * The theme's global block gap was adding 24px above <main> — a white strip
 * over the hero — and 24px between every band, breaking the run of full-bleed
 * panels. Sections butt directly against each other by design.
 */
.wp-site-blocks > main,
.wp-site-blocks > header,
.wp-site-blocks > footer {
	margin-block: 0;
}

.entry-content > * {
	margin-block: 0;
}

.entry-content > .alignfull + .alignfull,
.entry-content > .split + .split,
.entry-content > .section + .section {
	margin-block-start: 0;
}

/* =========================================================== navigation */

.wp-block-navigation {
	font-size: var(--wp--preset--font-size--sm);
	letter-spacing: 0.03em;
}

.wp-block-navigation a {
	text-decoration: none;
	position: relative;
	padding-block: 0.4rem;
}

.wp-block-navigation .wp-block-navigation-item > a::after {
	content: "";
	position: absolute;
	inset-block-end: 0;
	inset-inline-start: 0;
	inline-size: 0;
	block-size: 1px;
	background: currentcolor;
	transition: inline-size 260ms cubic-bezier(0.4, 0, 0.2, 1);
}

.wp-block-navigation .wp-block-navigation-item > a:hover::after,
.wp-block-navigation .current-menu-item > a::after {
	inline-size: 100%;
}

/*
 * The services dropdown is a white panel that opens under a header which is
 * white-on-transparent over the hero — so it inherited white text on white.
 * Its colours are declared here outright and do not follow the header state.
 */
.wp-block-navigation .wp-block-navigation__submenu-container {
	border: 0;
	background: #fff;
	box-shadow: 0 18px 44px rgb(0 0 0 / 14%);
	padding-block: 0.4rem;
	min-inline-size: 250px;
}

.site-header .wp-block-navigation__submenu-container a,
body.has-hero .site-header:not(.is-solid) .wp-block-navigation__submenu-container a {
	color: var(--wp--preset--color--ink);
	padding: 0.62rem 1.1rem;
	transition: background 200ms ease, color 200ms ease;
}

.site-header .wp-block-navigation__submenu-container a:hover,
.site-header .wp-block-navigation__submenu-container a:focus-visible,
body.has-hero .site-header:not(.is-solid) .wp-block-navigation__submenu-container a:hover {
	background: var(--wp--preset--color--off-white);
	color: var(--wp--preset--color--black);
}

/* The sliding underline belongs to the top row; inside the panel the hover
   tint already carries the state, and the rule looked like a stray artefact. */
.wp-block-navigation__submenu-container .wp-block-navigation-item > a::after {
	content: none;
}

/* ------------------------------------------------- mobile drawer */

/*
 * The open drawer is a white overlay, and it was inheriting the white text
 * the header wears over the hero — every top-level item was invisible. Its
 * colours are set here and do not follow the header state either.
 */
.wp-block-navigation__responsive-container.is-menu-open {
	background: #fff;
	/*
	 * The drawer is a fixed, full-height box, so trailing padding cannot make
	 * it scroll — the content simply has to fit.
	 */
	padding: 2rem var(--wp--preset--spacing--30) 4rem;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.wp-block-navigation__responsive-container.is-menu-open a,
body.has-hero .site-header:not(.is-solid)
	.wp-block-navigation__responsive-container.is-menu-open a {
	color: var(--wp--preset--color--ink);
}

/*
 * WordPress aligns the drawer with `align-items: flex-end`, which was written
 * for LTR. On a column flex in RTL the cross-axis end is the LEFT, so the
 * whole menu sat against the wrong edge. Stretching instead puts the text at
 * the reading edge and makes every row a full-width tap target.
 */
/* `!important` matches core, which declares the drawer's alignment that way. */
.wp-block-navigation__responsive-container.is-menu-open
	.wp-block-navigation__responsive-container-content,
.wp-block-navigation__responsive-container.is-menu-open
	.wp-block-navigation__container,
.wp-block-navigation__responsive-container.is-menu-open
	.wp-block-navigation__submenu-container,
/*
 * The item itself matters as much as the lists: an <li> holding a submenu is
 * a flex column with `align-items: flex-end`, which shrank the nested <ul> to
 * its content and pushed it to the left. That is what broke the six service
 * links into a narrow column drifting away from the menu above them.
 */
.wp-block-navigation__responsive-container.is-menu-open
	.wp-block-navigation-item {
	align-items: stretch !important;
	inline-size: 100%;
	gap: 0;
	text-align: start;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item > a {
	inline-size: 100%;
}

.wp-block-navigation__responsive-container.is-menu-open
	.wp-block-navigation__container > .wp-block-navigation-item > a {
	font-size: var(--wp--preset--font-size--md);
	padding-block: 0.6rem;
}

/*
 * Inside the drawer the submenu is not a floating panel — it is an indented
 * continuation of the list, so it drops the card treatment.
 *
 * Core gives it 32px of padding on BOTH sides plus 15px on each link, which
 * pushed the six service pages into a narrow centred column floating away
 * from the items above them. `!important` is needed because core declares
 * that padding at a specificity this cannot otherwise reach.
 */
.wp-block-navigation__responsive-container.is-menu-open
	.wp-block-navigation__submenu-container {
	box-shadow: none;
	background: transparent;
	min-inline-size: 0;
	padding-block: 0.35rem 0.75rem !important;
	padding-inline: var(--wp--preset--spacing--30) 0 !important;
	border-inline-start: 1px solid var(--wp--preset--color--line);
	margin-inline-start: 0;
}

.wp-block-navigation__responsive-container.is-menu-open
	.wp-block-navigation__submenu-container a {
	padding-block: 0.45rem !important;
	padding-inline: 0 !important;
	font-size: var(--wp--preset--font-size--sm);
	color: var(--wp--preset--color--muted);
}

/* A parent in the drawer labels the group beneath it rather than competing
   with it — the sub-items are the real destinations. */
.wp-block-navigation__responsive-container.is-menu-open
	.wp-block-navigation-item.has-child > a {
	font-size: var(--wp--preset--font-size--xs);
	letter-spacing: 0.2em;
	color: var(--wp--preset--color--sand-dark);
}

.wp-block-navigation__responsive-container.is-menu-open
	.wp-block-navigation__submenu-icon {
	display: none;
}

/* ========================================================== full bleed */

/*
 * `.alignfull` is styled by WordPress against the layout container, which
 * already accounts for RTL and the root padding. Reproducing that with
 * calc(50% - 50vw) drifted by the padding amount and pushed the page sideways
 * on mobile — so these elements simply wear the class instead.
 */
.split,
.display-band {
	inline-size: 100vw;
	max-inline-size: 100vw;
	margin-inline: calc(50% - 50vw);
}

/* ================================================================= hero */

.hero {
	position: relative;
	overflow: hidden;
}

.hero.wp-block-cover::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background:
		linear-gradient(to bottom, rgb(0 0 0 / 55%) 0%, rgb(0 0 0 / 18%) 34%, rgb(0 0 0 / 72%) 100%);
}

.hero .wp-block-cover__inner-container {
	position: relative;
	z-index: 2;
	max-inline-size: 900px;
	margin-inline: auto;
	padding-inline: var(--wp--preset--spacing--30);
	text-align: center;
}

/* ------------------------------------------------------ hero slideshow */

/*
 * The eight photographs the client picked, crossfading. CSS-only — no
 * carousel library, no layout shift, and the first frame is a normal <img>
 * so it still serves as the LCP element.
 */
.hero__slides {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
}

.hero__slides img {
	position: absolute;
	inset: 0;
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
	opacity: 0;
	animation: hero-fade 40s linear infinite;
}

.hero__slides img:nth-child(1) { animation-delay: 0s; }
.hero__slides img:nth-child(2) { animation-delay: 5s; }
.hero__slides img:nth-child(3) { animation-delay: 10s; }
.hero__slides img:nth-child(4) { animation-delay: 15s; }
.hero__slides img:nth-child(5) { animation-delay: 20s; }
.hero__slides img:nth-child(6) { animation-delay: 25s; }
.hero__slides img:nth-child(7) { animation-delay: 30s; }
.hero__slides img:nth-child(8) { animation-delay: 35s; }

@keyframes hero-fade {
	0%    { opacity: 0; }
	2.5%  { opacity: 1; }
	12.5% { opacity: 1; }
	15%   { opacity: 0; }
	100%  { opacity: 0; }
}

/* Anyone who asked for less motion just gets the first frame. */
@media (prefers-reduced-motion: reduce) {
	.hero__slides img {
		animation: none;
		opacity: 0;
	}

	.hero__slides img:first-child {
		opacity: 1;
	}
}

/* ==================================================== video band */

/*
 * The showreel that used to sit in the second section. It is a 13 MB file,
 * so it only ever autoplays on a wide screen and on a connection that has
 * not asked to save data — everywhere else the poster frame stands in.
 */
.video-band {
	position: relative;
	min-block-size: min(78vh, 680px);
	display: grid;
	place-items: center;
	overflow: hidden;
	isolation: isolate;
	background: var(--wp--preset--color--ink);
}

.video-band__media {
	position: absolute;
	inset: 0;
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
	z-index: -2;
}

.video-band::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(to bottom, rgb(0 0 0 / 45%), rgb(0 0 0 / 62%));
}

.video-band__inner {
	position: relative;
	text-align: center;
	color: #fff;
	padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--30);
	max-inline-size: 900px;
}

.video-band__inner :is(h2, h3) {
	color: #fff;
	font-weight: 200;
	margin-block: 0 var(--wp--preset--spacing--20);
}

.video-band__badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: var(--wp--preset--font-size--xs);
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--wp--preset--color--sand);
	margin-block-end: var(--wp--preset--spacing--20);
}

.video-band__badge::before {
	content: "";
	inline-size: 7px;
	block-size: 7px;
	border-radius: 50%;
	background: #e2342f;
	animation: live-pulse 2s ease-in-out infinite;
}

@keyframes live-pulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50%      { opacity: 0.45; transform: scale(0.82); }
}

@media (max-width: 781px) {
	.video-band {
		min-block-size: min(62vh, 460px);
	}
}

.hero__mark {
	inline-size: min(150px, 34vw);
	margin-inline: auto;
	margin-block-end: var(--wp--preset--spacing--30);
	filter: brightness(0) invert(1);
	opacity: 0.96;
}

.hero h1 {
	color: #fff;
	font-weight: 200;
	letter-spacing: 0.01em;
	text-shadow: 0 2px 30px rgb(0 0 0 / 45%);
	text-wrap: balance;
	margin-block: 0;
}

.hero p {
	color: rgb(255 255 255 / 92%);
	text-shadow: 0 1px 16px rgb(0 0 0 / 55%);
	max-inline-size: 60ch;
	margin-inline: auto;
	text-wrap: pretty;
}

/* Scroll cue */
.hero__cue {
	position: absolute;
	inset-block-end: 26px;
	inset-inline: 0;
	z-index: 3;
	display: grid;
	place-items: center;
	pointer-events: none;
}

.hero__cue span {
	inline-size: 1px;
	block-size: 46px;
	background: linear-gradient(to bottom, transparent, rgb(255 255 255 / 80%));
	animation: cue 2400ms ease-in-out infinite;
}

@keyframes cue {
	0%, 100% { opacity: 0.25; transform: scaleY(0.6); transform-origin: top; }
	50%      { opacity: 1;    transform: scaleY(1);   transform-origin: top; }
}

/* ============================================================ utilities */

.section {
	padding-block: clamp(2.25rem, 4vw, 3.75rem);
}

/*
 * Consecutive plain text bands read as one chapter run, so the gap between
 * them is a single measure of air, not two stacked paddings.
 */
.section + .section {
	padding-block-start: 0;
}

/* A band that changes colour or carries media keeps its full breathing room. */
.section.has-background + .section.has-background,
.section.has-background,
.media-band,
.section.has-background + .section {
	padding-block: clamp(2.75rem, 5vw, 4.5rem);
}

.eyebrow {
	font-size: var(--wp--preset--font-size--xs);
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--wp--preset--color--sand-dark);
	margin-block-end: 0.9rem;
}

/* The studio's signature: a short rule centred beneath the label. */
.eyebrow.has-text-align-center::after {
	content: "";
	display: block;
	inline-size: 42px;
	block-size: 1px;
	background: var(--wp--preset--color--sand-dark);
	margin: 0.7rem auto 0;
}

.eyebrow:not(.has-text-align-center)::after {
	content: "";
	display: block;
	inline-size: 42px;
	block-size: 1px;
	background: var(--wp--preset--color--sand-dark);
	margin-block-start: 0.7rem;
}

.lead {
	font-size: var(--wp--preset--font-size--md);
	color: var(--wp--preset--color--muted);
	max-inline-size: 66ch;
	text-wrap: pretty;
}

.section > h2,
.section > .wp-block-heading {
	text-wrap: balance;
	margin-block-end: var(--wp--preset--spacing--20);
	font-weight: 300;
}

/*
 * Reading measure. The content width is 820px, which at body size runs to
 * roughly ninety characters a line — far past comfortable for Hebrew prose.
 * Headings may use the full width; running text is pulled back to ~68ch.
 */
.section > p,
.section > ul,
.section > ol {
	max-inline-size: 68ch;
	font-size: var(--wp--preset--font-size--md);
	line-height: 1.8;
}

.section > h3 {
	margin-block: var(--wp--preset--spacing--40) var(--wp--preset--spacing--10);
	font-weight: 400;
}

/* First paragraph after a section heading carries a little more presence. */
.section > h2 + p {
	font-size: var(--wp--preset--font-size--lg);
	line-height: 1.65;
	color: var(--wp--preset--color--muted);
	max-inline-size: 62ch;
}

/*
 * `p.statement`, not `.statement`: as a direct child of a band it was losing
 * to `.section > p` above and rendering at body size, which is why the About
 * page opened flat instead of on a statement.
 */
p.statement,
.statement {
	max-inline-size: 30ch;
	font-size: var(--wp--preset--font-size--xxxl);
	line-height: 1.25;
	font-weight: 200;
	text-wrap: balance;
	margin-block-end: var(--wp--preset--spacing--50);
}

.statement strong {
	font-weight: 700;
}

/* Reveal on scroll */
.will-reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
		transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.will-reveal.is-in {
	opacity: 1;
	transform: none;
}

/* ====================================================== split panels */

/*
 * The core layout: an edge-to-edge half of photograph against a half of
 * type. No gutters, no card, no shadow — the image runs to the edge of the
 * screen. Alternating direction gives the page its rhythm.
 */
.split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: stretch;
	min-block-size: min(72vh, 620px);
}

/*
 * A grid item's automatic minimum is its content's min-content width, and the
 * feature list inside carries a 300px track floor. On a phone that forced the
 * whole panel to 474px inside a 390px screen and pushed 99px of it off the
 * left edge, where `overflow-x: clip` quietly cut it off. Zeroing the minimum
 * lets the column shrink to the screen as it should.
 */
.split > * {
	min-inline-size: 0;
}

.split__media {
	position: relative;
	overflow: hidden;
	background: var(--wp--preset--color--sand-light);
}

.split__media img {
	position: absolute;
	inset: 0;
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
}

.split__text {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	padding: clamp(2.5rem, 5vw, 5rem) clamp(1.5rem, 5vw, 5rem);
	background: var(--wp--preset--color--white);
}

.split--sand .split__text {
	background: color-mix(in srgb, var(--wp--preset--color--sand) 42%, #fff);
}

.split--ink .split__text {
	background: var(--wp--preset--color--ink);
	color: rgb(255 255 255 / 84%);
}

.split--ink .split__text :is(h2, h3) {
	color: #fff;
}

.split__text > * {
	max-inline-size: 46ch;
}

/*
 * A centred column reads well for a sentence or two, but a six-item list
 * inside one leaves the text ragged against a centred heading. When the
 * panel carries a list, the whole column aligns to the reading edge.
 */
.split__text:has(.feature-list) {
	align-items: flex-start;
	text-align: start;
}

.split__text .feature-list {
	gap: 0.85rem;
	inline-size: 100%;
}

.split__text h2 {
	font-weight: 300;
	margin-block: 0 var(--wp--preset--spacing--20);
}

.split__text p {
	margin-block: 0 var(--wp--preset--spacing--20);
}

/* Reverse the photo side on alternating panels. */
.split--flip .split__media {
	order: 2;
}

@media (max-width: 900px) {
	.split {
		grid-template-columns: 1fr;
		min-block-size: 0;
	}

	.split__media {
		min-block-size: 58vw;
	}

	.split--flip .split__media {
		order: 0;
	}
}

/* ================================================== outlined button */

/*
 * One button language across the site: compact, black, quiet tracking.
 * The outline variant is the same shape with a hairline instead of a fill.
 */
.wp-block-button > .wp-block-button__link {
	font-size: var(--wp--preset--font-size--xs);
	letter-spacing: 0.1em;
	padding: 0.78rem 1.7rem;
	border-radius: 0;
	line-height: 1.3;
	transition: background 220ms ease, color 220ms ease, border-color 220ms ease;
}

.wp-block-button.is-style-outline > .wp-block-button__link {
	border: 1px solid var(--wp--preset--color--black);
	background: transparent;
	color: var(--wp--preset--color--black);
	text-transform: none;
	padding: 0.72rem 1.7rem;
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--wp--preset--color--black);
	border-color: var(--wp--preset--color--black);
	color: #fff;
}

.split--ink .is-style-outline > .wp-block-button__link:hover {
	background: #fff;
	border-color: #fff;
	color: var(--wp--preset--color--ink);
}

.wp-block-button:not(.is-style-outline) > .wp-block-button__link {
	background: var(--wp--preset--color--black);
	color: #fff;
	text-transform: none;
}

.wp-block-button:not(.is-style-outline) > .wp-block-button__link:hover {
	background: var(--wp--preset--color--sand-dark);
	color: #fff;
}

/*
 * On a photograph the filled button has to be the light one — a black fill
 * disappears into a dark hero while the outline beside it reads louder,
 * which inverts the intended hierarchy.
 */
.hero .wp-block-button:not(.is-style-outline) > .wp-block-button__link,
.display-band .wp-block-button:not(.is-style-outline) > .wp-block-button__link {
	background: #fff;
	color: var(--wp--preset--color--black);
}

.hero .wp-block-button:not(.is-style-outline) > .wp-block-button__link:hover,
.display-band .wp-block-button:not(.is-style-outline) > .wp-block-button__link:hover {
	background: var(--wp--preset--color--sand);
	color: var(--wp--preset--color--ink);
}

.hero .is-style-outline > .wp-block-button__link {
	color: #fff;
	border-color: rgb(255 255 255 / 70%);
}

.hero .is-style-outline > .wp-block-button__link:hover {
	background: rgb(255 255 255 / 95%);
	border-color: #fff;
	color: var(--wp--preset--color--black);
}

/* ============================================================== cards */

.card {
	display: flex;
	flex-direction: column;
	background: transparent;
	block-size: 100%;
}

.card__media {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	margin: 0;
	background: var(--wp--preset--color--sand-light);
}

.card__media img {
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
	transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.card:hover .card__media img {
	transform: scale(1.05);
}

.card__body {
	padding-block: var(--wp--preset--spacing--20) 0;
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	flex: 1;
}

.card--boxed .card__body {
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--20);
	background: #fff;
}

/*
 * A text-only card has no photograph to give it an edge, so without a rule
 * the grid reads as loose paragraphs. One hairline above each — the same
 * mark used down the feature lists — is enough to separate them.
 */
.card--note {
	border-block-start: 1px solid var(--wp--preset--color--line);
	padding-block-start: var(--wp--preset--spacing--20);
}

.card--note .card__body {
	padding-block-start: 0;
	gap: 0.55rem;
}

.card--note .card__body h3 {
	font-size: var(--wp--preset--font-size--md);
}

.card__index {
	display: block;
	font-size: var(--wp--preset--font-size--xs);
	letter-spacing: 0.16em;
	color: var(--wp--preset--color--sand-dark);
}

.card__body > :is(h2, h3) {
	margin: 0;
	line-height: 1.25;
	font-weight: 400;
}

.card__body p {
	margin: 0;
}

.card__body :is(h2, h3) a,
.wp-block-post-title a,
.tile {
	text-decoration: none;
	color: inherit;
}

.card:hover .card__body :is(h2, h3) a,
.card:hover .wp-block-post-title a {
	text-decoration: underline;
	text-underline-offset: 0.24em;
	text-decoration-thickness: 1px;
}

.card__link {
	margin-block-start: auto;
	font-size: var(--wp--preset--font-size--xs);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--sand-dark);
}

.card__link a {
	text-decoration: none;
	color: inherit;
}

/* =============================================================== tiles */

.tile {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 3 / 4;
	isolation: isolate;
	background: var(--wp--preset--color--ink);
	block-size: 100%;
}

/* Keep the tile grid to whole rows of three so no row is left half-empty. */
@media (min-width: 900px) {
	.tiles-grid.is-layout-grid {
		grid-template-columns: repeat(3, 1fr) !important;
	}
}

@media (min-width: 600px) and (max-width: 899px) {
	.tiles-grid.is-layout-grid {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

.tile img {
	position: absolute;
	inset: 0;
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
	transition: transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
}

.tile::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgb(0 0 0 / 78%) 0%, rgb(0 0 0 / 18%) 52%, rgb(0 0 0 / 6%) 100%);
	transition: background 400ms ease;
}

.tile:hover img,
.tile:focus-visible img {
	transform: scale(1.07);
}

.tile:hover::after {
	background: linear-gradient(to top, rgb(0 0 0 / 86%) 0%, rgb(0 0 0 / 34%) 58%, rgb(0 0 0 / 14%) 100%);
}

.tile__label {
	position: absolute;
	z-index: 2;
	inset-inline: 0;
	inset-block-end: 0;
	padding: var(--wp--preset--spacing--30);
	color: #fff;
	font-size: var(--wp--preset--font-size--lg);
	font-weight: 300;
	line-height: 1.2;
}

.tile__label small {
	display: block;
	font-size: var(--wp--preset--font-size--xs);
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--wp--preset--color--sand);
	margin-block-end: 0.4rem;
}

/* ====================================================== display band */

/*
 * The wide-tracked headline over a dark photograph. This is the studio's
 * strongest visual signature and it carries the whole lower half of the page.
 */
.display-band {
	position: relative;
	min-block-size: min(74vh, 640px);
	display: grid;
	place-items: center;
	overflow: hidden;
	isolation: isolate;
}

.display-band img.display-band__bg {
	position: absolute;
	inset: 0;
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
	z-index: -2;
}

.display-band::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgb(0 0 0 / 52%);
}

.display-band__inner {
	text-align: center;
	padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--30);
	color: #fff;
	max-inline-size: 1100px;
}

.display-band__kicker {
	font-size: var(--wp--preset--font-size--lg);
	font-weight: 300;
	letter-spacing: 0.04em;
	margin-block-end: var(--wp--preset--spacing--20);
	opacity: 0.9;
}

/*
 * theme.json colours every heading black, and that wins over a colour set on
 * the wrapper — which left this headline invisible against its own photograph.
 * Both the band and the hero state their colour on the element itself.
 */
.display-band__title,
.display-band__inner :is(h1, h2, h3),
.hero .wp-block-cover__inner-container :is(h1, h2) {
	color: #fff;
}

.display-band__title {
	font-size: clamp(1.6rem, 4.2vw, 3.5rem);
	line-height: 1.14;
	font-weight: 200;
	letter-spacing: 0.12em;
	margin-block: 0 var(--wp--preset--spacing--40);
	text-wrap: balance;
	text-shadow: 0 2px 26px rgb(0 0 0 / 45%);
}

/* Latin sets in caps; Hebrew has no case, so tracking alone carries it. */
.display-band__title:lang(en) {
	text-transform: uppercase;
}

/* ======================================================== logo strip */

/*
 * The loose flex row left the logos at wildly different optical sizes and
 * ragged on the last line. A grid of equal cells with a hairline between them
 * gives each mark the same room and reads as a credential wall.
 */
/*
 * A continuous right-to-left marquee rather than a static grid: it reads as
 * a longer client list than the twelve marks actually shown, and it fills
 * the full width without a ragged last row. The track is duplicated so the
 * loop has no visible seam.
 */
.logo-marquee {
	inline-size: 100vw;
	max-inline-size: 100vw;
	margin-inline: calc(50% - 50vw);
	overflow: hidden;
	position: relative;
	padding-block: clamp(1.25rem, 3vw, 2.25rem);
	-webkit-mask-image: linear-gradient(to left, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(to left, transparent, #000 8%, #000 92%, transparent);
}

.logo-marquee__track {
	display: flex;
	align-items: center;
	gap: clamp(2.5rem, 6vw, 6rem);
	inline-size: max-content;
	animation: marquee 46s linear infinite;
}

.logo-marquee:hover .logo-marquee__track {
	animation-play-state: paused;
}

/* Content flows RTL, so the track travels toward the inline-end. */
@keyframes marquee {
	from { transform: translateX(0); }
	to   { transform: translateX(50%); }
}

@media (prefers-reduced-motion: reduce) {
	.logo-marquee__track {
		animation: none;
		flex-wrap: wrap;
		justify-content: center;
		inline-size: 100%;
	}
}

.logo-strip__cell {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	min-inline-size: 120px;
}

.logo-strip img {
	max-block-size: 42px;
	max-inline-size: 100%;
	inline-size: auto;
	object-fit: contain;
	filter: grayscale(1);
	opacity: 0.55;
	transition: opacity 260ms ease, filter 260ms ease;
}

.logo-strip__cell:hover img {
	filter: grayscale(0);
	opacity: 1;
}

.logo-marquee img {
	max-block-size: 46px;
	inline-size: auto;
	object-fit: contain;
	filter: grayscale(1);
	opacity: 0.5;
	transition: opacity 260ms ease, filter 260ms ease;
}

.logo-marquee img:hover {
	filter: grayscale(0);
	opacity: 1;
}

/* ============================================================== icons */

.mdi {
	flex-shrink: 0;
	vertical-align: middle;
}

/* Icon sitting above a card heading. */
.card__icon {
	color: var(--wp--preset--color--sand-dark);
	margin-block-end: 0.65rem;
}

/* Small circular icon used beside contact details. */
.icon-chip {
	display: inline-grid;
	place-items: center;
	inline-size: 42px;
	block-size: 42px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 50%;
	color: var(--wp--preset--color--sand-dark);
	flex-shrink: 0;
	transition: background 240ms ease, color 240ms ease, border-color 240ms ease;
}

a:hover > .icon-chip,
.contact-line:hover .icon-chip {
	background: var(--wp--preset--color--black);
	border-color: var(--wp--preset--color--black);
	color: #fff;
}

/* A value row: icon, then label and text. */
.value-row {
	display: flex;
	align-items: flex-start;
	gap: 0.9rem;
}

.value-row__body strong {
	display: block;
	font-weight: 400;
	margin-block-end: 0.2rem;
}

.value-row__body span {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--sm);
}

/* ========================================================= process rail */

/*
 * Six stages, laid out as a measured drawing and scrolled sideways.
 *
 * They will not fit a screen, so the strip is a real scroll container:
 * swipe, trackpad, arrow keys and the two buttons all drive it. The rule
 * running above the stages doubles as the position indicator — the dark
 * portion is how much of the process you have seen.
 *
 * --rail-p arrives from app.js. If that never runs, the fallback leaves the
 * rule drawn and every stage legible, and the strip still scrolls natively.
 */
.rail {
	--rail-p: 1;

	position: relative;
}

.rail__viewport {
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x proximity;
	scroll-behavior: smooth;
	scrollbar-width: none;          /* replaced by .rail__bar below */
	padding-block: var(--wp--preset--spacing--30) 0.25rem;
}

.rail__viewport::-webkit-scrollbar {
	display: none;
}

/*
 * A soft edge where the strip runs off screen, so the cut-off reads as "more
 * this way" rather than as a broken column. The mask lifts once you reach the
 * end, and the rule above it is deliberately left un-masked — it is the
 * position indicator and needs to stay readable to the edge.
 */
.rail--ready .rail__viewport {
	mask-image: linear-gradient(to left, #000 88%, transparent 100%);
}

.rail--ready .rail__viewport.is-end {
	mask-image: none;
}

/*
 * English and Russian read the other way, so everything that encodes a
 * direction has to turn with them: the fade belongs on the side the strip
 * runs off, the progress line grows from the left, and the chevrons point
 * the way they actually travel. `body.is-ltr` is set in inc/i18n.php.
 */
.is-ltr .rail--ready .rail__viewport {
	mask-image: linear-gradient(to right, #000 88%, transparent 100%);
}

.is-ltr .rail__strip::after,
.is-ltr .rail__bar i {
	transform-origin: left center;
}

.is-ltr .rail__btn svg {
	transform: scaleX(-1);
}

.rail__viewport:focus-visible {
	outline: 2px solid var(--wp--preset--color--sand-dark);
	outline-offset: 6px;
}

.rail__strip {
	position: relative;
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(268px, 1fr);
	gap: var(--wp--preset--spacing--40);
	min-inline-size: 100%;
}

/* The track, and the portion of it already covered. */
.rail__strip::before,
.rail__strip::after {
	content: "";
	position: absolute;
	inset-block-start: 0;
	inset-inline: 0;
	block-size: 1px;
}

.rail__strip::before {
	background: var(--wp--preset--color--line);
}

.rail__strip::after {
	background: var(--wp--preset--color--black);
	transform: scaleX(var(--rail-p));
	transform-origin: right center;   /* RTL: the line advances right to left */
	transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.rail:not(.is-in) .rail__strip::after {
	transform: scaleX(0);
}

.rail__step {
	position: relative;
	scroll-snap-align: start;
	padding-inline-end: var(--wp--preset--spacing--20);
}

/* A short tick dropping from the track, marking where each stage begins. */
.rail__tick {
	position: absolute;
	inset-block-start: calc(var(--wp--preset--spacing--30) * -1);
	inset-inline-start: 0;
	inline-size: 1px;
	block-size: 0;
	background: var(--wp--preset--color--black);
	transition: block-size 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.rail__step.is-on .rail__tick {
	block-size: var(--wp--preset--spacing--30);
}

.rail__n {
	display: block;
	font-size: var(--wp--preset--font-size--xs);
	letter-spacing: 0.22em;
	color: var(--wp--preset--color--line);
	margin-block-end: 0.9rem;
	transition: color 520ms ease;
}

.rail__step.is-on .rail__n {
	color: var(--wp--preset--color--sand-dark);
}

.rail__step h3 {
	font-size: var(--wp--preset--font-size--lg);
	font-weight: 400;
	margin-block: 0 0.45rem;
	line-height: 1.25;
}

.rail__step p {
	margin: 0;
	font-size: var(--wp--preset--font-size--sm);
	color: var(--wp--preset--color--muted);
	line-height: 1.7;
}

/* ------------------------------------------------- rail controls */

.rail__nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--30);
	margin-block-start: var(--wp--preset--spacing--30);
}

/*
 * The native scrollbar is hidden, so this stands in for it: a hairline the
 * width of the rail with a dark segment showing the visible portion. It is
 * decorative — the buttons and the scroll container carry the interaction.
 */
.rail__bar {
	position: relative;
	flex: 1;
	block-size: 1px;
	background: var(--wp--preset--color--line);
}

.rail__bar i {
	position: absolute;
	inset-block: 0;
	inset-inline-start: 0;
	inline-size: 100%;
	background: var(--wp--preset--color--sand-dark);
	transform: scaleX(var(--rail-visible, 1)) translateX(var(--rail-offset, 0%));
	transform-origin: right center;
	transition: transform 220ms ease;
}

.rail__buttons {
	display: flex;
	gap: 0.5rem;
}

.rail__btn {
	inline-size: 2.5rem;
	block-size: 2.5rem;
	display: grid;
	place-items: center;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 50%;
	background: transparent;
	color: var(--wp--preset--color--ink);
	cursor: pointer;
	transition: background 220ms ease, border-color 220ms ease,
		color 220ms ease, opacity 220ms ease;
}

.rail__btn:hover:not([disabled]) {
	background: var(--wp--preset--color--black);
	border-color: var(--wp--preset--color--black);
	color: #fff;
}

.rail__btn[disabled] {
	opacity: 0.3;
	cursor: default;
}

/* Without JS there is nothing for the buttons to do; the strip still scrolls. */
.rail:not(.rail--ready) .rail__buttons {
	display: none;
}

@media (max-width: 600px) {
	.rail__strip {
		grid-auto-columns: minmax(76vw, 1fr);
		gap: var(--wp--preset--spacing--30);
	}
}

/*
 * No scroll-linked motion: the rule is drawn in full and every stage is on,
 * including the ticks, which otherwise wait on a class that never arrives.
 * The strip is still scrollable — that is navigation, not decoration.
 */
@media (prefers-reduced-motion: reduce) {
	.rail__viewport {
		scroll-behavior: auto;
	}

	.rail__strip::after,
	.rail:not(.is-in) .rail__strip::after {
		transform: scaleX(1);
	}

	.rail__n {
		color: var(--wp--preset--color--sand-dark);
	}

	.rail__tick {
		block-size: var(--wp--preset--spacing--30);
	}
}

/*
 * Most projects have no body copy, and an empty post-content still occupied a
 * band's worth of padding between the hero and the gallery. The wrapper takes
 * itself out when there is nothing inside it.
 */
.project-brief:not(:has(.entry-content > *)) {
	display: none;
}

/*
 * A band whose only job is to hold an optional block. Both the project
 * gallery and the article gallery render nothing when the post has no images,
 * which otherwise left a band of padding around an empty div.
 */
.section--auto:not(:has(*)) {
	display: none;
}

/* Over a darkened photograph, sand-dark is too close to the background. */
.hero .eyebrow,
.hero .wp-block-post-terms {
	color: var(--wp--preset--color--sand);
}

.hero .eyebrow::after,
.hero .wp-block-post-terms::after {
	background: var(--wp--preset--color--sand);
}

.hero .wp-block-post-terms a {
	color: inherit;
	text-decoration: none;
}

/* ======================================================== showcase carousel */

/*
 * The portfolio as a run of frames rather than a grid: the centred project is
 * large and its neighbours are cut by the edges of the screen, so the work
 * reads as continuing in both directions. Same controller as the process
 * rail — it is a native scroll container first, buttons second.
 */
.showcase {
	inline-size: 100vw;
	max-inline-size: 100vw;
	margin-inline: calc(50% - 50vw);
}

.showcase__viewport {
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	padding-block: 0;
}

.showcase__viewport::-webkit-scrollbar {
	display: none;
}

.showcase__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 62vw;
	gap: var(--wp--preset--spacing--30);
	/*
	 * The frame is 62vw and the gutters 15vw, so a centred project leaves
	 * about 8vw of its neighbour showing on each side — the run of work reads
	 * as continuing past the screen in both directions rather than stopping.
	 */
	padding-inline: 15vw;
}

.showcase__item {
	scroll-snap-align: center;
}

.showcase__media {
	display: block;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: var(--wp--preset--color--sand-light);
}

.showcase__media img {
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
	transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.showcase__item:hover .showcase__media img {
	transform: scale(1.03);
}

.showcase__item h3 {
	margin-block: var(--wp--preset--spacing--20) 0;
	font-size: var(--wp--preset--font-size--lg);
	font-weight: 400;
	text-align: start;
}

.showcase__item h3 a {
	color: inherit;
	text-decoration: none;
}

.showcase__item:hover h3 a {
	text-decoration: underline;
	text-underline-offset: 0.24em;
}

/* The controls sit back inside the page grid rather than at the screen edge. */
.showcase .rail__nav {
	max-inline-size: var(--wp--style--global--wide-size, 1250px);
	margin-inline: auto;
	padding-inline: var(--wp--preset--spacing--30);
}

@media (max-width: 900px) {
	.showcase__track {
		grid-auto-columns: 82vw;
		padding-inline: 9vw;
	}
}

/*
 * The press pieces exist only in Hebrew. On the English and Russian pages the
 * headline is translated but the link still leads to the Hebrew original, so
 * the destination language is stated rather than left as a surprise.
 */
.media-item__lang {
	font-style: normal;
	opacity: 0.6;
}

/* ========================================================== founder note */

/*
 * The studio's own words at the foot of a service page — kept verbatim,
 * including the signature as the client wrote it.
 */
.founder {
	max-inline-size: 62ch;
	margin: 0 auto;
	text-align: center;
}

.founder__mark {
	display: block;
	color: var(--wp--preset--color--sand-dark);
	font-size: clamp(2.75rem, 6vw, 4rem);
	line-height: 0.6;
	margin-block-end: 1.2rem;
	opacity: 0.7;
}

.founder blockquote {
	margin: 0;
	font-size: var(--wp--preset--font-size--md);
	line-height: 1.85;
	font-weight: 300;
	color: var(--wp--preset--color--graphite);
}

.founder figcaption {
	margin-block-start: var(--wp--preset--spacing--20);
	font-size: var(--wp--preset--font-size--xs);
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--wp--preset--color--sand-dark);
}

/* ==================================================== article (single post) */

/*
 * None of these pieces had any styling at all — the intro, the quick answer,
 * the pull quote and the summary all rendered as bare divs at full page
 * width, which is why the article pages read as unformatted text.
 *
 * Everything here is held to one reading measure and given the same marks
 * the rest of the site uses: hairlines, an eyebrow label, sand accents.
 */
/*
 * The article and its margin. On a wide screen the body keeps its reading
 * measure and the aside sits beside it; below that the aside drops under the
 * article, where it reads as a footer to it rather than as furniture.
 */
/*
 * The article column is sized to the reading measure rather than to whatever
 * is left over — a `1fr` track left the text hugging its own edge with a few
 * hundred pixels of nothing between it and the aside.
 */
.article-shell {
	display: grid;
	grid-template-columns: minmax(0, 72ch) 290px;
	justify-content: center;
	gap: clamp(2rem, 4vw, 4.5rem);
	align-items: start;
}

.article > * {
	max-inline-size: 72ch;
}

.article-aside__inner {
	position: sticky;
	inset-block-start: 104px;
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--40);
}

@media (max-width: 1000px) {
	.article-shell {
		grid-template-columns: 1fr;
	}

	.article > * {
		margin-inline: auto;
	}

	.article-aside__inner {
		position: static;
	}

	/* The contents list is only worth its space while the article is beside
	   it; stacked under the piece it is a list of things already read. */
	.article-aside .toc {
		display: none;
	}
}

/* ------------------------------------------------------- contents list */

.toc__title {
	font-size: var(--wp--preset--font-size--xs);
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--wp--preset--color--sand-dark);
	margin-block: 0 0.9rem;
	padding-block-end: 0.7rem;
	border-block-end: 1px solid var(--wp--preset--color--line);
}

.toc ol,
.aside-links ul {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: toc;
}

.toc li,
.aside-links li {
	margin-block-end: 0.55rem;
}

.toc a,
.aside-links a {
	display: block;
	font-size: var(--wp--preset--font-size--sm);
	line-height: 1.5;
	color: var(--wp--preset--color--muted);
	text-decoration: none;
	transition: color 200ms ease;
}

.toc a::before {
	counter-increment: toc;
	content: counter(toc, decimal-leading-zero) "  ";
	color: var(--wp--preset--color--sand-dark);
	font-size: var(--wp--preset--font-size--xs);
	letter-spacing: 0.1em;
}

.toc a:hover,
.aside-links a:hover {
	color: var(--wp--preset--color--black);
}

/* ------------------------------------------------------------ aside card */

.aside-card {
	padding: var(--wp--preset--spacing--30);
	background: var(--wp--preset--color--ink);
	color: rgb(255 255 255 / 82%);
}

.aside-card .eyebrow {
	color: var(--wp--preset--color--sand);
	margin-block-end: 0.7rem;
}

.aside-card .eyebrow::after {
	background: var(--wp--preset--color--sand);
}

.aside-card__lead {
	color: #fff;
	font-size: var(--wp--preset--font-size--md);
	line-height: 1.4;
	font-weight: 300;
	margin-block: 0 0.6rem;
}

.aside-card__note {
	font-size: var(--wp--preset--font-size--sm);
	margin-block: 0 var(--wp--preset--spacing--20);
}

.aside-card__cta {
	display: block;
	text-align: center;
	padding: 0.75rem 1rem;
	background: #fff;
	color: var(--wp--preset--color--black);
	font-size: var(--wp--preset--font-size--sm);
	text-decoration: none;
	transition: opacity 200ms ease;
}

.aside-card__cta:hover {
	opacity: 0.86;
}

.aside-card__tel {
	display: block;
	text-align: center;
	margin-block-start: 0.8rem;
	font-size: var(--wp--preset--font-size--sm);
	letter-spacing: 0.08em;
	color: #fff;
	text-decoration: none;
}

/* --------------------------------------------------------- author box */

/*
 * Who wrote this. On a studio's blog the answer is the studio, so the box
 * carries the mark and points at the about page rather than inventing a
 * person the site does not otherwise name.
 */
.author-box {
	display: grid;
	grid-template-columns: 92px minmax(0, 1fr);
	gap: var(--wp--preset--spacing--30);
	align-items: start;
	max-inline-size: 72ch;
	margin-block-start: var(--wp--preset--spacing--50);
	padding-block-start: var(--wp--preset--spacing--30);
	border-block-start: 1px solid var(--wp--preset--color--black);
}

.author-box__mark {
	display: grid;
	place-items: center;
	padding: 0.9rem;
	background: var(--wp--preset--color--ink);
	aspect-ratio: 1;
}

.author-box__mark img {
	inline-size: 100%;
	block-size: auto;
	filter: brightness(0) invert(1);
}

.author-box__body h2 {
	font-size: var(--wp--preset--font-size--lg);
	font-weight: 400;
	text-align: start;
	margin-block: 0 0.5rem;
	border: 0;
	padding: 0;
}

.author-box__body p {
	font-size: var(--wp--preset--font-size--sm);
	line-height: 1.75;
	color: var(--wp--preset--color--muted);
	margin-block: 0;
}

.author-box__link {
	margin-block-start: 0.8rem !important;
}

.author-box__link a {
	color: var(--wp--preset--color--black);
	text-decoration-color: var(--wp--preset--color--sand-dark);
	text-underline-offset: 0.24em;
}

@media (max-width: 560px) {
	.author-box {
		grid-template-columns: 1fr;
	}

	.author-box__mark {
		inline-size: 84px;
		aspect-ratio: 1;
	}
}

/* -------------------------------------------------------- infographic */

/* Every article ships with one purpose-made graphic. It is the widest thing
   in the column, so it gets air above and below rather than a frame. */
.infographic {
	margin-block: var(--wp--preset--spacing--40);
	max-inline-size: 72ch;
}

.infographic img {
	inline-size: 100%;
	block-size: auto;
	display: block;
}

.infographic figcaption {
	margin-block-start: 0.7rem;
	font-size: var(--wp--preset--font-size--xs);
	letter-spacing: 0.1em;
	color: var(--wp--preset--color--muted);
}

.article .entry-content > * {
	margin-block-end: var(--wp--preset--spacing--20);
}

.article .entry-content :is(h2, h3) {
	text-align: start;
	font-weight: 300;
}

.article .entry-content h2 {
	font-size: var(--wp--preset--font-size--xxl);
	margin-block: var(--wp--preset--spacing--50) var(--wp--preset--spacing--20);
	padding-block-start: var(--wp--preset--spacing--20);
	border-block-start: 1px solid var(--wp--preset--color--line);
}

.article .entry-content h3 {
	font-size: var(--wp--preset--font-size--lg);
	margin-block: var(--wp--preset--spacing--40) var(--wp--preset--spacing--10);
}

.article .entry-content p,
.article .entry-content li {
	line-height: 1.85;
}

.article .entry-content :is(ul, ol) {
	padding-inline-start: 1.15rem;
	margin-block-end: var(--wp--preset--spacing--30);
}

.article .entry-content li {
	margin-block-end: 0.5rem;
}

.article .entry-content a {
	color: inherit;
	text-decoration-color: var(--wp--preset--color--sand-dark);
	text-underline-offset: 0.22em;
}

.article .entry-content img {
	block-size: auto;
	margin-block: var(--wp--preset--spacing--30);
}

/* The opening paragraph, set larger than the body it introduces. */
.article-intro {
	font-size: var(--wp--preset--font-size--md);
	line-height: 1.8;
	color: var(--wp--preset--color--graphite);
	margin-block-end: var(--wp--preset--spacing--40);
}

.article-intro > :first-child { margin-block-start: 0; }
.article-intro > :last-child { margin-block-end: 0; }

/*
 * The short answer, boxed and labelled. This is the passage most likely to
 * be lifted into a search or assistant summary, so it is worth setting apart
 * rather than leaving buried in the run of text.
 */
.quick-answer {
	position: relative;
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--30)
		var(--wp--preset--spacing--30) var(--wp--preset--spacing--30);
	border-inline-start: 2px solid var(--wp--preset--color--sand-dark);
	background: var(--wp--preset--color--off-white);
	margin-block-end: var(--wp--preset--spacing--50);
}

.quick-answer::before {
	content: "בקצרה";
	display: block;
	font-size: var(--wp--preset--font-size--xs);
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--wp--preset--color--sand-dark);
	margin-block-end: 0.6rem;
}

.quick-answer > :last-child { margin-block-end: 0; }

/* Borrows the pull quote's voice, one measure narrower. */
.pull-quote {
	margin-block: var(--wp--preset--spacing--50);
	padding-block: var(--wp--preset--spacing--30);
	border-block: 1px solid var(--wp--preset--color--line);
	text-align: center;
	font-size: var(--wp--preset--font-size--xl);
	font-weight: 200;
	line-height: 1.4;
	text-wrap: balance;
}

.pull-quote > :last-child { margin-block-end: 0; }

/* The closing summary, labelled the same way as the quick answer. */
.summary {
	max-inline-size: 72ch;
	margin-inline: auto;
	margin-block-end: var(--wp--preset--spacing--50);
	padding-block-start: var(--wp--preset--spacing--20);
	border-block-start: 1px solid var(--wp--preset--color--sand-dark);
}

.summary::before {
	content: "לסיכום";
	display: block;
	font-size: var(--wp--preset--font-size--xs);
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--wp--preset--color--sand-dark);
	margin-block-end: 0.8rem;
}

.summary > :last-child { margin-block-end: 0; }

.article-date {
	color: rgb(255 255 255 / 72%);
	letter-spacing: 0.18em;
	margin-block-start: 0.9rem;
}

/* An article headline is longer than a page title and needs less scale. */
.hero--article h1 {
	font-size: clamp(1.75rem, 3.4vw, 3rem);
	max-inline-size: 22ch;
	margin-inline: auto;
}

/* ============================================= project gallery (single) */

/*
 * The gallery IS the project — forty to seventy-eight photographs of the
 * finished work. Four across at 340px made a contact sheet of it; two across
 * with real air between them lets each frame be looked at.
 */
.project-gallery {
	display: grid;
	gap: var(--wp--preset--spacing--30);
}

.project-gallery--1 { grid-template-columns: 1fr; }
.project-gallery--2 { grid-template-columns: repeat(2, 1fr); }
.project-gallery--3 { grid-template-columns: repeat(3, 1fr); }
.project-gallery--4 { grid-template-columns: repeat(4, 1fr); }

.project-gallery figure {
	margin: 0;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: var(--wp--preset--color--sand-light);
}

/* Every sixth frame runs the full width — a change of pace down a long
   gallery, and the wide shots are usually the ones worth dwelling on. */
.project-gallery--2 figure:nth-child(6n + 1) {
	grid-column: 1 / -1;
	aspect-ratio: 16 / 9;
}

.project-gallery img {
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
	transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-gallery figure:hover img {
	transform: scale(1.03);
}

@media (max-width: 782px) {
	.project-gallery,
	.project-gallery--2,
	.project-gallery--3,
	.project-gallery--4 {
		grid-template-columns: 1fr;
		gap: var(--wp--preset--spacing--20);
	}

	.project-gallery--2 figure:nth-child(6n + 1) {
		aspect-ratio: 3 / 2;
	}
}

/* ================================================================= FAQ */

.faq {
	border-block-start: 1px solid var(--wp--preset--color--line);
	max-inline-size: 900px;
	margin-inline: auto;
}

.faq details {
	border-block-end: 1px solid var(--wp--preset--color--line);
}

.faq summary {
	cursor: pointer;
	padding-block: var(--wp--preset--spacing--30);
	font-size: var(--wp--preset--font-size--md);
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	transition: color 200ms ease;
}

.faq summary:hover {
	color: var(--wp--preset--color--sand-dark);
}

.faq summary::-webkit-details-marker {
	display: none;
}

.faq summary::after {
	content: "+";
	font-size: 1.4em;
	font-weight: 200;
	line-height: 1;
	color: var(--wp--preset--color--sand-dark);
	transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
	flex-shrink: 0;
}

.faq details[open] summary::after {
	transform: rotate(45deg);
}

.faq__answer {
	padding-block-end: var(--wp--preset--spacing--30);
	color: var(--wp--preset--color--muted);
	max-inline-size: 78ch;
}

/* ========================================================== media band */

/*
 * Press coverage. The broadcast pieces (Channel 12, Channel 13) are the
 * strongest trust signal the studio has, so they get a band of their own
 * rather than being lost among the article cards.
 */
.media-band {
	background: var(--wp--preset--color--ink);
	color: rgb(255 255 255 / 80%);
}

.media-band :is(h2, h3) {
	color: #fff;
}

.media-band .eyebrow {
	color: var(--wp--preset--color--sand);
}

.media-band .eyebrow::after {
	background: var(--wp--preset--color--sand);
}

.media-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
	gap: 1px;
	background: rgb(255 255 255 / 12%);
	border: 1px solid rgb(255 255 255 / 12%);
}

.media-item {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	padding: var(--wp--preset--spacing--30);
	background: var(--wp--preset--color--ink);
	text-decoration: none;
	color: inherit;
	transition: background 260ms ease;
}

.media-item:hover {
	background: #262626;
}

.media-item__outlet {
	font-size: var(--wp--preset--font-size--xs);
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--wp--preset--color--sand);
}

.media-item__title {
	font-size: var(--wp--preset--font-size--md);
	font-weight: 300;
	line-height: 1.35;
	color: #fff;
}

.media-item__go {
	margin-block-start: auto;
	font-size: var(--wp--preset--font-size--xs);
	color: rgb(255 255 255 / 60%);
}

.media-item:hover .media-item__go {
	color: var(--wp--preset--color--sand);
}

/* Broadcast pieces carry a little more weight than the print ones. */
.media-item--broadcast {
	background: #1f1f1f;
}

.media-item--broadcast .media-item__outlet {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

.media-item--broadcast .media-item__outlet::before {
	content: "";
	inline-size: 7px;
	block-size: 7px;
	border-radius: 50%;
	background: #e2342f;
}

/* ====================================================== plate / figure */

/*
 * A full-bleed photograph used as a break between chapters, captioned in the
 * corner like a plate in an architecture monograph. The number is set in the
 * margin so the page reads as a document about buildings, not a brochure.
 */
.plate {
	position: relative;
	inline-size: 100vw;
	max-inline-size: 100vw;
	margin-inline: calc(50% - 50vw);
	overflow: hidden;
	background: var(--wp--preset--color--sand-light);
}

.plate img {
	inline-size: 100%;
	block-size: clamp(260px, 52vh, 560px);
	object-fit: cover;
	display: block;
}

.plate__caption {
	position: absolute;
	inset-block-end: 0;
	inset-inline-start: 0;
	padding: 0.85rem 1.35rem;
	background: rgb(0 0 0 / 62%);
	color: #fff;
	font-size: var(--wp--preset--font-size--xs);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	display: flex;
	align-items: center;
	gap: 0.7rem;
}

.plate__caption b {
	color: var(--wp--preset--color--sand);
	font-weight: 400;
}

/* ======================================================= ghost numeral */

/*
 * Oversized outlined numerals marking each chapter. Purely decorative, so
 * they are aria-hidden and sit behind the heading.
 */
.chapter {
	position: relative;
	margin-block-start: clamp(2rem, 4vw, 3.25rem);
}

.chapter:first-child {
	margin-block-start: 0;
}

.chapter h2 {
	position: relative;
	z-index: 1;
	margin-block: 0 var(--wp--preset--spacing--20);
}

/*
 * `z-index: -1` painted the numeral behind the band's own background, so on
 * every coloured band it vanished entirely. The heading is lifted above it
 * instead, and the stroke is dark enough to actually register.
 */
.chapter__num {
	position: absolute;
	inset-block-start: -0.35em;
	inset-inline-start: -0.12em;
	font-size: clamp(3.5rem, 8vw, 6.5rem);
	line-height: 1;
	font-weight: 700;
	color: transparent;
	-webkit-text-stroke: 1px var(--wp--preset--color--sand-dark);
	opacity: 0.55;
	pointer-events: none;
	user-select: none;
}

/* ========================================================== spec sheet */

/*
 * The project facts, set like the title block on a drawing sheet: hairline
 * rules, a label column, no decoration.
 */
/*
 * The project data, set like the title block of a drawing sheet.
 *
 * It used to be one narrow column of label/value rows, which left two thirds
 * of a desktop screen empty beside it. Now the entries sit three across and
 * each carries its own rule, so an incomplete last row still reads as
 * deliberate rather than as a broken table.
 */
.spec {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
	max-inline-size: none;
	margin: 0;
	text-align: start;
}

@media (max-width: 900px) {
	.spec { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
	.spec { grid-template-columns: 1fr; }
}

.spec__row {
	padding-block-start: 0.85rem;
	border-block-start: 1px solid var(--wp--preset--color--line);
	font-size: var(--wp--preset--font-size--sm);
}

.spec__row dt {
	font-size: var(--wp--preset--font-size--xs);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
	margin: 0 0 0.35rem;
}

.spec__row dd {
	margin: 0;
	line-height: 1.6;
}

/* Rows that are a single figure — the number is the point, so it is set at
   display size rather than at body size like a table cell. */
.spec--figures .spec__row dd {
	font-size: var(--wp--preset--font-size--xxxl);
	font-weight: 200;
	line-height: 1.1;
}

/* ========================================================== pull quote */

.pull {
	position: relative;
	max-inline-size: 46ch;
	margin-inline: auto;
	text-align: center;
	padding-block: var(--wp--preset--spacing--30);
}

/* A typographic mark. Sand on a sand-light field was all but invisible. */
.pull__mark {
	display: block;
	color: var(--wp--preset--color--sand-dark);
	font-size: clamp(2.75rem, 6vw, 4rem);
	line-height: 0.6;
	margin-block-end: 1.1rem;
	opacity: 0.7;
}

.pull p {
	font-size: var(--wp--preset--font-size--xxl);
	line-height: 1.32;
	font-weight: 200;
	text-wrap: balance;
	margin: 0;
}

.pull cite {
	display: block;
	margin-block-start: var(--wp--preset--spacing--20);
	font-style: normal;
	font-size: var(--wp--preset--font-size--xs);
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--wp--preset--color--sand-dark);
}

/* ========================================================= quote wall */

/*
 * Testimonials run from three lines to fifteen. A grid would stretch every
 * row to its tallest cell and leave the page full of holes, so they flow
 * down columns instead and pack against one another.
 */
.quote-wall {
	column-count: 3;
	column-gap: var(--wp--preset--spacing--40);
}

.quote-card {
	break-inside: avoid;
	margin: 0 0 var(--wp--preset--spacing--40);
	padding-block-start: var(--wp--preset--spacing--20);
	border-block-start: 1px solid var(--wp--preset--color--line);
}

.quote-card blockquote {
	margin: 0;
	font-size: var(--wp--preset--font-size--sm);
	line-height: 1.75;
	color: var(--wp--preset--color--graphite);
}

.quote-card figcaption {
	margin-block-start: 0.8rem;
	font-size: var(--wp--preset--font-size--xs);
	letter-spacing: 0.16em;
	color: var(--wp--preset--color--sand-dark);
}

.quote-card figcaption::before {
	content: "— ";
}

@media (max-width: 900px) {
	.quote-wall { column-count: 2; }
}

@media (max-width: 600px) {
	.quote-wall { column-count: 1; }
}

/* ====================================================== service areas */

/*
 * Where the studio works, as a set of plain markers. "Are you even in my
 * area" is the question a visitor answers before they bother writing, and it
 * was buried in a row of the contact table.
 */
.areas {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	justify-content: center;
}

.areas li {
	padding: 0.5rem 1.1rem;
	border: 1px solid var(--wp--preset--color--line);
	font-size: var(--wp--preset--font-size--sm);
	color: var(--wp--preset--color--graphite);
	background: #fff;
}

/* ======================================================= feature list */

/* A benefits list where each line carries an icon rather than a bullet. */
.feature-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
	gap: var(--wp--preset--spacing--30);
}

/* One benefit per line on a phone — two never fitted anyway. */
@media (max-width: 900px) {
	.feature-list {
		grid-template-columns: 1fr;
		gap: var(--wp--preset--spacing--20);
	}
}

.feature-list li {
	display: flex;
	align-items: flex-start;
	gap: 0.7rem;
	font-size: var(--wp--preset--font-size--sm);
	line-height: 1.6;
}

/*
 * A rule, not an icon. Repeating one topical glyph down a six-item list said
 * nothing about any individual line — a hairline marker is quieter and does
 * not pretend to mean something.
 */
.feature-list li::before {
	content: "";
	flex: 0 0 auto;
	inline-size: 14px;
	block-size: 1px;
	background: var(--wp--preset--color--sand-dark);
	margin-block-start: 0.75em;
}

/* =========================================================== lead form */

/*
 * The form band was reading as an afterthought above the footer. A light
 * sand field, a rule above it and a proper heading make it the close of the
 * page rather than a leftover.
 */
/*
 * The form used to float alone in a sand field, which read as detached. It
 * now sits inside a two-column close: the studio's details and reassurances
 * on one side, the form on the other, sharing one card.
 */
.contact-close {
	display: grid;
	grid-template-columns: 0.85fr 1.15fr;
	align-items: stretch;
	max-inline-size: 1100px;
	margin-inline: auto;
	background: #fff;
	box-shadow: 0 24px 60px rgb(0 0 0 / 9%);
	overflow: hidden;
}

.contact-close__aside {
	background: var(--wp--preset--color--ink);
	color: rgb(255 255 255 / 80%);
	padding: clamp(1.75rem, 3.5vw, 3rem);
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--30);
}

.contact-close__aside h2 {
	color: #fff;
	font-weight: 200;
	margin-block: 0;
	font-size: var(--wp--preset--font-size--xxl);
	line-height: 1.2;
}

.contact-close__aside .eyebrow {
	color: var(--wp--preset--color--sand);
	margin-block-end: 0;
}

.contact-close__aside .eyebrow::after {
	background: var(--wp--preset--color--sand);
}

.contact-line {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	color: inherit;
	text-decoration: none;
	font-size: var(--wp--preset--font-size--sm);
}

.contact-close__aside .icon-chip {
	border-color: rgb(255 255 255 / 25%);
	color: var(--wp--preset--color--sand);
	inline-size: 38px;
	block-size: 38px;
}

.contact-close__aside .contact-line:hover .icon-chip {
	background: var(--wp--preset--color--sand);
	border-color: var(--wp--preset--color--sand);
	color: var(--wp--preset--color--ink);
}

.contact-close__reassure {
	margin-block-start: auto;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	font-size: var(--wp--preset--font-size--xs);
	color: rgb(255 255 255 / 62%);
}

.contact-close__reassure span {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.contact-close__reassure .mdi {
	color: var(--wp--preset--color--sand);
}

.contact-form {
	max-inline-size: none;
	margin-inline: 0;
	background: #fff;
	padding: clamp(1.75rem, 3.5vw, 3rem);
	box-shadow: none;
}

.contact-form > h2:first-child {
	margin-block-start: 0;
}

@media (max-width: 860px) {
	.contact-close {
		grid-template-columns: 1fr;
	}
}

.lead-form__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
	gap: var(--wp--preset--spacing--20);
	margin-block: var(--wp--preset--spacing--30);
}

.field {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.field--wide {
	grid-column: 1 / -1;
}

.field label {
	font-size: var(--wp--preset--font-size--xs);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

.field input,
.field select,
.field textarea {
	font: inherit;
	font-size: var(--wp--preset--font-size--base);
	color: var(--wp--preset--color--graphite);
	background: transparent;
	border: 0;
	border-block-end: 1px solid var(--wp--preset--color--line);
	border-radius: 0;
	padding: 0.7rem 0.1rem;
	inline-size: 100%;
	min-block-size: 46px;
	transition: border-color 240ms ease;
}

.field textarea {
	min-block-size: 6rem;
	resize: vertical;
}

.field :is(input, select, textarea):focus {
	border-block-end-color: var(--wp--preset--color--sand-dark);
	outline: none;
}

.field :is(input, select, textarea):focus-visible {
	outline: 2px solid var(--wp--preset--color--sand-dark);
	outline-offset: 3px;
}

.lead-form__hp {
	position: absolute;
	inline-size: 1px;
	block-size: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* The submit sits at the start of the line — the right edge in Hebrew. */
.lead-form__submit {
	margin-block: 0;
	text-align: start;
}

.contact-form,
.lead-form {
	text-align: start;
}

.lead-form__submit button {
	cursor: pointer;
	border: 0;
	inline-size: auto;
	min-block-size: 48px;
	letter-spacing: 0.1em;
	font-size: var(--wp--preset--font-size--xs);
	padding: 0.9rem 2.4rem;
	background: var(--wp--preset--color--black);
	color: #fff;
	transition: background 220ms ease;
}

.lead-form__submit button:hover {
	background: var(--wp--preset--color--sand-dark);
}

.lead-form__note {
	font-size: var(--wp--preset--font-size--xs);
	color: var(--wp--preset--color--muted);
	margin-block-start: var(--wp--preset--spacing--20);
}

.form-notice {
	padding: 0.9rem 1.1rem;
	margin-block: var(--wp--preset--spacing--20);
	border-inline-start: 3px solid;
	font-size: var(--wp--preset--font-size--sm);
}

.form-notice--ok {
	border-color: #2f7d4f;
	background: #eef7f1;
	color: #1e5334;
}

.form-notice--error {
	border-color: #b3261e;
	background: #fdeeed;
	color: #8c1d18;
}

/* ============================================================== footer */

.site-footer {
	background: var(--wp--preset--color--ink);
	color: rgb(255 255 255 / 78%);
	margin-block-start: 0;
}

.wp-site-blocks > footer,
.wp-site-blocks > .wp-block-template-part:last-child {
	margin-block-start: 0;
}

/* Footer nav is a list, not a stack of buttons — tighten the rhythm. */
.site-footer .wp-block-navigation {
	--wp--style--block-gap: 0.55rem;
	gap: 0.55rem;
}

.site-footer .wp-block-navigation .wp-block-navigation-item > a::after {
	display: none;
}

.site-footer .wp-block-navigation a:hover {
	color: var(--wp--preset--color--sand);
}

.site-footer .wp-block-site-logo img {
	filter: brightness(0) invert(1);
	opacity: 0.9;
}

.site-footer a {
	color: rgb(255 255 255 / 78%);
	text-decoration: none;
	transition: color 200ms ease;
}

.site-footer a:hover {
	color: var(--wp--preset--color--sand);
}

.site-footer h2 {
	font-size: var(--wp--preset--font-size--xs);
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--wp--preset--color--sand);
	font-weight: 400;
	margin-block-end: var(--wp--preset--spacing--20);
}

.footer-social {
	display: flex;
	gap: 0.6rem;
	margin-block-start: var(--wp--preset--spacing--20);
	padding: 0;
	list-style: none;
}

.footer-social a {
	display: grid;
	place-items: center;
	inline-size: 36px;
	block-size: 36px;
	border: 1px solid rgb(255 255 255 / 22%);
	transition: background 220ms ease, border-color 220ms ease;
}

.footer-social svg {
	inline-size: 17px;
	block-size: 17px;
	fill: currentcolor;
}

.footer-social a:hover {
	background: var(--wp--preset--color--sand);
	border-color: var(--wp--preset--color--sand);
	color: var(--wp--preset--color--ink);
}

/* --------------------------------------------------- footer press list */

.footer-press {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

.footer-press a {
	display: block;
	font-size: var(--wp--preset--font-size--sm);
	line-height: 1.4;
}

.footer-press__outlet {
	display: block;
	font-size: var(--wp--preset--font-size--xs);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgb(255 255 255 / 45%);
	margin-block-end: 0.15rem;
}

/* Broadcast credits get the accent — they are the strongest proof. */
.footer-press__outlet.is-tv {
	color: var(--wp--preset--color--sand);
	display: flex;
	align-items: center;
	gap: 0.35rem;
}

.footer-press__outlet.is-tv::before {
	content: "";
	inline-size: 6px;
	block-size: 6px;
	border-radius: 50%;
	background: #e2342f;
}

/* ==================================================== floating contact */

.contact-rail {
	position: fixed;
	inset-inline-end: 1rem;
	inset-block-end: calc(1rem + env(safe-area-inset-bottom, 0px));
	z-index: 90;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.contact-rail a {
	inline-size: 48px;
	block-size: 48px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--wp--preset--color--black);
	color: #fff;
	box-shadow: 0 2px 12px rgb(0 0 0 / 22%);
	transition: transform 200ms ease;
}

.contact-rail a:hover {
	transform: scale(1.06);
}

/* =============================================================== print */

@media print {
	.site-header,
	.site-footer,
	.contact-rail,
	#medesign-intro {
		display: none;
	}
}

/* ============================================================ founders */

/*
 * Marianna and Evgeni. An about page for a two-person studio that never shows
 * the two people is a brochure; these are their own photographs from the
 * original site, brought back and given room.
 */
.founders {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--40);
	align-items: end;
}

.founders__figure {
	margin: 0;
}

.founders__figure img {
	inline-size: 100%;
	block-size: auto;
	display: block;
	aspect-ratio: 3 / 4;
	object-fit: cover;
}

/* The second frame sits a little lower, so the pair reads as a composition
   rather than as two cells of a table. */
.founders__figure:last-child {
	margin-block-start: var(--wp--preset--spacing--50);
}

/*
 * Both photographs show the two of them, so the names belong to the pair
 * rather than to either frame — captioning one "Marianna" and the other
 * "Evgeni" would have told the reader something untrue.
 */
.founders__names {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--40);
	max-inline-size: 1100px;
	margin-block-start: var(--wp--preset--spacing--40);
}

.founders__who {
	padding-block-start: 0.85rem;
	border-block-start: 1px solid var(--wp--preset--color--line);
	text-align: start;
}

.founders__who b {
	display: block;
	font-size: var(--wp--preset--font-size--lg);
	font-weight: 400;
	line-height: 1.3;
}

.founders__who span {
	display: block;
	margin-block-start: 0.3rem;
	font-size: var(--wp--preset--font-size--xs);
	letter-spacing: 0.14em;
	color: var(--wp--preset--color--sand-dark);
}

@media (max-width: 700px) {
	.founders__names {
		grid-template-columns: 1fr;
		gap: var(--wp--preset--spacing--20);
	}
}

@media (max-width: 700px) {
	.founders {
		grid-template-columns: 1fr;
	}

	.founders__figure:nth-child(n + 2) {
		display: none;
	}
}

/* ----------------------------------------------------------- signature */

/*
 * A line that types itself out, then a mark that draws itself under it.
 *
 * The words are real text in the DOM and are fully readable with the styles
 * or the script missing — the animation only ever hides text it is about to
 * show, and never text that has not been shown yet.
 */
.signature {
	max-inline-size: 34ch;
	margin: var(--wp--preset--spacing--60) auto 0;
	text-align: center;
}

.signature__line {
	display: inline-block;
	font-size: var(--wp--preset--font-size--xl);
	font-weight: 200;
	line-height: 1.5;
	white-space: pre-wrap;
}

/* Only once the script has taken charge does anything get hidden. */
.signature.is-armed .signature__line {
	visibility: hidden;
}

.signature.is-armed .signature__typed {
	visibility: visible;
}

.signature__caret {
	display: none;
	inline-size: 1px;
	block-size: 1.05em;
	margin-inline-start: 0.12em;
	background: var(--wp--preset--color--sand-dark);
	vertical-align: -0.16em;
	animation: sig-blink 1s steps(1) infinite;
}

.signature.is-armed .signature__caret {
	display: inline-block;
}

.signature.is-done .signature__caret {
	animation: none;
	opacity: 0;
	transition: opacity 600ms ease 400ms;
}

@keyframes sig-blink {
	0%, 50% { opacity: 1; }
	50.01%, 100% { opacity: 0; }
}

.signature__mark {
	display: block;
	margin-block-start: var(--wp--preset--spacing--30);
}

/*
 * The studio's own mark, not a drawn stand-in. It is uncovered from the top
 * once the line has finished typing — a wipe reads as a stamp coming down,
 * where a fade alone would just look like a slow image.
 *
 * Everything here is a progressive enhancement: with the script blocked the
 * `is-armed` class is never added and the logo is simply present, in full.
 */
.signature__logo {
	inline-size: clamp(112px, 16vw, 150px);
	block-size: auto;
	margin-inline: auto;
}

.signature.is-armed .signature__logo {
	clip-path: inset(0 0 100% 0);
	opacity: 0;
	transform: translateY(-6px);
}

.signature.is-writing .signature__logo {
	clip-path: inset(0 0 0 0);
	opacity: 1;
	transform: none;
	transition:
		clip-path 900ms cubic-bezier(0.6, 0, 0.3, 1),
		opacity 500ms ease,
		transform 900ms cubic-bezier(0.6, 0, 0.3, 1);
}

.signature__role {
	margin-block-start: var(--wp--preset--spacing--20);
	font-size: var(--wp--preset--font-size--xs);
	letter-spacing: 0.2em;
	color: var(--wp--preset--color--muted);
}

@media (prefers-reduced-motion: reduce) {
	.signature.is-armed .signature__line { visibility: visible; }
	.signature.is-armed .signature__typed { display: none; }
	.signature.is-armed .signature__caret { display: none; }

	.signature.is-armed .signature__logo,
	.signature.is-writing .signature__logo {
		clip-path: none;
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* ============================================================= lightbox */

/*
 * Click a project photograph to see it properly, and page through the set.
 *
 * The gallery links stay ordinary links to the full-size file, so the feature
 * degrades to "opens the image" without the script, and middle-click and
 * right-click behave the way people expect.
 */
.project-gallery a.lb {
	display: block;
	inline-size: 100%;
	block-size: 100%;
	cursor: zoom-in;
}

.lightbox {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: grid;
	grid-template-rows: 1fr auto;
	background: rgb(10 10 10 / 96%);
	opacity: 0;
	visibility: hidden;
	transition: opacity 260ms ease, visibility 260ms ease;
}

.lightbox.is-open {
	opacity: 1;
	visibility: visible;
}

.lightbox__stage {
	position: relative;
	display: grid;
	place-items: center;
	padding: clamp(2.5rem, 6vw, 4rem);
	min-block-size: 0;
	overflow: hidden;
}

/*
 * Sized against the viewport rather than against the stage. A percentage
 * height on a grid item resolves against a box that is itself content-sized,
 * so the picture grew past the row and covered the pager underneath it.
 */
.lightbox__img {
	max-inline-size: 100%;
	max-block-size: calc(100vh - 12rem);
	max-block-size: calc(100dvh - 12rem);
	inline-size: auto;
	block-size: auto;
	object-fit: contain;
	opacity: 0;
	transition: opacity 260ms ease;
}

.lightbox__img.is-ready {
	opacity: 1;
}

.lightbox__bar {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--wp--preset--spacing--30);
	padding-block-end: clamp(1.25rem, 3vw, 2rem);
	color: rgb(255 255 255 / 80%);
	font-size: var(--wp--preset--font-size--xs);
	letter-spacing: 0.16em;
}

.lightbox__btn {
	inline-size: 3rem;
	block-size: 3rem;
	display: grid;
	place-items: center;
	border: 1px solid rgb(255 255 255 / 26%);
	border-radius: 50%;
	background: transparent;
	color: #fff;
	cursor: pointer;
	transition: background 200ms ease, border-color 200ms ease, opacity 200ms ease;
}

.lightbox__btn:hover:not([disabled]) {
	background: rgb(255 255 255 / 12%);
	border-color: rgb(255 255 255 / 55%);
}

.lightbox__btn[disabled] {
	opacity: 0.28;
	cursor: default;
}

.lightbox__close {
	position: absolute;
	inset-block-start: clamp(0.9rem, 2.5vw, 1.6rem);
	inset-inline-end: clamp(0.9rem, 2.5vw, 1.6rem);
	inline-size: 2.75rem;
	block-size: 2.75rem;
	display: grid;
	place-items: center;
	border: 0;
	background: transparent;
	color: #fff;
	cursor: pointer;
	opacity: 0.75;
	transition: opacity 200ms ease;
}

.lightbox__close:hover {
	opacity: 1;
}

.lightbox__count {
	min-inline-size: 5.5ch;
	text-align: center;
	font-variant-numeric: tabular-nums;
	/* "1 / 42" is a counter, not a sentence — bidi reordering turned it into
	   "42 / 1" on the Hebrew pages. */
	direction: ltr;
	unicode-bidi: isolate;
}

/* The arrows point the way the gallery reads. */
.is-ltr .lightbox__btn svg {
	transform: scaleX(-1);
}

@media (prefers-reduced-motion: reduce) {
	.lightbox,
	.lightbox__img {
		transition: none;
	}
}
